@morning-start/dsh-code-toolkit 0.0.0-stage → 0.27.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/CHANGELOG.md +375 -0
- package/LICENSE +35 -0
- package/README.md +252 -2
- package/agents/caption/AGENT.md +165 -0
- package/agents/caption/examples/dispatch.md +83 -0
- package/agents/caption/examples/loop.md +66 -0
- package/agents/caption/examples/theater.md +40 -0
- package/agents/caption/references/dispatch.md +128 -0
- package/agents/caption/references/evidence.md +82 -0
- package/agents/caption/references/experts.md +141 -0
- package/agents/caption/references/flows.md +97 -0
- package/agents/caption/references/loop.md +75 -0
- package/agents/pua/AGENT.md +66 -0
- package/agents/pua/examples/run.md +41 -0
- package/agents/pua/references/flavors.md +33 -0
- package/agents/pua/references/methodology.md +32 -0
- package/agents/review/AGENT.md +112 -0
- package/agents/review/examples/clean.md +40 -0
- package/agents/review/examples/findings.md +49 -0
- package/agents/review/references/evidence.md +33 -0
- package/agents/review/references/output.md +59 -0
- package/agents/review/references/rubric.md +43 -0
- package/agents/review/references/severity.md +45 -0
- package/agents/scrub/AGENT.md +130 -0
- package/agents/scrub/examples/clean.md +70 -0
- package/agents/scrub/examples/report.md +66 -0
- package/agents/scrub/references/false-positives.md +92 -0
- package/agents/scrub/references/patterns.md +52 -0
- package/agents/scrub/references/redaction.md +53 -0
- package/agents/simplify/AGENT.md +160 -0
- package/agents/simplify/examples/apply.md +60 -0
- package/agents/simplify/examples/plan.md +65 -0
- package/agents/simplify/references/anti-patterns.md +45 -0
- package/agents/simplify/references/behavior-preservation.md +41 -0
- package/agents/simplify/references/conventions.md +34 -0
- package/agents/simplify/references/operations.md +51 -0
- package/agents/simplify/references/verification.md +74 -0
- package/cordis.patch.yml +23 -0
- package/icon.svg +8 -0
- package/index.js +207 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +62 -4
- package/src/command.js +328 -0
- package/src/delivery.js +48 -0
- package/src/i18n.js +164 -0
- package/src/journal.js +56 -0
- package/src/pua.js +48 -0
- package/src/report.js +202 -0
- package/src/runtime.js +94 -0
- package/src/selection.js +258 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.27.1 — 2026-11-26
|
|
4
|
+
|
|
5
|
+
- The plugin detail page now falls back to the README. The host renders a detail
|
|
6
|
+
document's Markdown without images, so the single-image `docs/DETAIL*.md` the
|
|
7
|
+
plugin spec asks for showed up as one line of alt text — emptier than the
|
|
8
|
+
README. Removed `meta.detail`, both detail documents and the preview image;
|
|
9
|
+
`docs/` is gone from the package.
|
|
10
|
+
- Verified in a headless browser against an isolated instance: the icon renders
|
|
11
|
+
in light and dark at row and card size, the detail page shows the Chinese
|
|
12
|
+
description and the README, and nothing overflows at 390 px.
|
|
13
|
+
- 88 deterministic checks.
|
|
14
|
+
|
|
15
|
+
## 0.27.0 — 2026-11-25
|
|
16
|
+
|
|
17
|
+
- Caption can now create experts **during** the run, not only at the start. A
|
|
18
|
+
new "Creating experts mid-run" section puts the decision inside the loop:
|
|
19
|
+
write the brief in the ledger, pick the lane, dispatch and keep working (or
|
|
20
|
+
wait, for a build expert), merge against the brief, run the whole gate, record
|
|
21
|
+
the entry.
|
|
22
|
+
- `references/experts.md` gained the triggers (unfamiliar subsystem, a rule you
|
|
23
|
+
cannot verify from code, width, a risky change), the anti-triggers, and the
|
|
24
|
+
lifecycle table that names the quiet failure at each stage.
|
|
25
|
+
- 86 deterministic checks.
|
|
26
|
+
|
|
27
|
+
## 0.26.1 — 2026-11-25
|
|
28
|
+
|
|
29
|
+
- `/code-review` has its own input hint: it names the default scope (uncommitted,
|
|
30
|
+
or the branch when clean), `--branch`, and that it fixes by default while
|
|
31
|
+
`report` keeps the report-only behaviour. The shared scope hint no longer
|
|
32
|
+
describes it.
|
|
33
|
+
|
|
34
|
+
## 0.26.0 — 2026-11-25
|
|
35
|
+
|
|
36
|
+
- `/code-review` now fixes what it finds. The default run reports and then fixes
|
|
37
|
+
the findings it can prove, re-running the gate after each fix and reverting any
|
|
38
|
+
fix that turns it red; `report` keeps the old report-only behaviour.
|
|
39
|
+
- The review persona gained a Mode section and a `fixed` array in its output
|
|
40
|
+
schema (title, file, change, verified_by), rendered as a "Fixed" section after
|
|
41
|
+
the findings.
|
|
42
|
+
- 85 deterministic checks.
|
|
43
|
+
|
|
44
|
+
## 0.25.0 — 2026-11-25
|
|
45
|
+
|
|
46
|
+
- `--branch <ref>` picks which branch to compare against; the default is still
|
|
47
|
+
the base branch (`origin/HEAD` → `origin/main` → `main` → `master`, first one
|
|
48
|
+
that is not HEAD). `--base` stays as a synonym.
|
|
49
|
+
- An explicit `--branch` is honoured even when the working tree is dirty — the
|
|
50
|
+
person asked for that comparison, not for the working tree. The default scope
|
|
51
|
+
still follows the tree.
|
|
52
|
+
- 84 deterministic checks.
|
|
53
|
+
|
|
54
|
+
## 0.24.0 — 2026-11-25
|
|
55
|
+
|
|
56
|
+
- `/code-review` with no arguments now follows what the person is working on: a
|
|
57
|
+
dirty tree reviews **the uncommitted work**, a clean tree reviews **what the
|
|
58
|
+
branch adds on top of its base**, and a branch with no base reviews the last 5
|
|
59
|
+
commits. Reviewing the committed work while uncommitted edits sat unreviewed
|
|
60
|
+
was the wrong default.
|
|
61
|
+
- The receipt names the scope it landed on (`working tree vs HEAD`,
|
|
62
|
+
`HEAD vs main`, `last 5 commits`, `whole project`), so the two cases are
|
|
63
|
+
distinguishable without opening the report.
|
|
64
|
+
- 83 deterministic checks.
|
|
65
|
+
|
|
66
|
+
## 0.23.0 — 2026-11-25
|
|
67
|
+
|
|
68
|
+
- The receipt now says what actually happened instead of one generic line. Four
|
|
69
|
+
cases: handed to this session, handed to an isolated agent, a plan first (no
|
|
70
|
+
files change), or a plan first from an isolated agent. "已提交" told the person
|
|
71
|
+
nothing about where the task went or whether files would change.
|
|
72
|
+
- Menu descriptions match the defaults again: simplify and scrub say they write,
|
|
73
|
+
review says it is read-only.
|
|
74
|
+
- 82 deterministic checks.
|
|
75
|
+
|
|
76
|
+
## 0.22.0 — 2026-11-25
|
|
77
|
+
|
|
78
|
+
- Every command now delivers the same way. `/code-caption` and `/pua` used to
|
|
79
|
+
steer with `source: { kind: 'user' }`, so the host rendered the whole protocol
|
|
80
|
+
as a green user bubble; they now use the plugin's own source kind, like the
|
|
81
|
+
task commands, and the UI folds them into one request card.
|
|
82
|
+
- Simplification pass over the plugin's own source: the two delivery paths share
|
|
83
|
+
one scope resolution, the duplicated minute-to-ms converters are one function,
|
|
84
|
+
`branch` and `base` scope instructions are one branch, and the message builders
|
|
85
|
+
share one wrapper. Net −51 lines, no behaviour change.
|
|
86
|
+
- 81 deterministic checks.
|
|
87
|
+
|
|
88
|
+
## 0.21.0 — 2026-11-25
|
|
89
|
+
|
|
90
|
+
- `/code-simplify` and `/code-scrub` now execute the plan the person approved:
|
|
91
|
+
an apply run picks up the last finished `report` for the same command and scope
|
|
92
|
+
and carries it into the task, instead of re-deriving a second plan that may
|
|
93
|
+
disagree with the first. The task tells the agent to stop and report if the
|
|
94
|
+
plan is wrong or stale rather than substituting its own.
|
|
95
|
+
- The plan expires after `planMaxAgeMinutes` (default 60, `0` disables) — a plan
|
|
96
|
+
older than the tree it describes is worse than no plan.
|
|
97
|
+
- Verified in an isolated `dsh web` instance: `/code-scrub report` on a clean
|
|
98
|
+
repository reported no findings with masked patterns, `/code-simplify report`
|
|
99
|
+
and apply both refused to invent work, and `/pua huawei` steered the protocol.
|
|
100
|
+
- 81 deterministic checks.
|
|
101
|
+
|
|
102
|
+
## 0.20.0 — 2026-11-25
|
|
103
|
+
|
|
104
|
+
- Caption now opens with a choice of two flows: **changing code** (requirement →
|
|
105
|
+
investigate → propose → human approves → execute → test → human confirms →
|
|
106
|
+
update the docs) and **changing documentation** (requirement → investigate →
|
|
107
|
+
propose → human approves → execute → summarize). `references/flows.md` gives
|
|
108
|
+
each step's product and its exit condition, the rules that keep it honest, and
|
|
109
|
+
how to choose when a change touches both.
|
|
110
|
+
- The approval gate is stated as a hard stop in the protocol: a plan nobody read
|
|
111
|
+
is not an approval. The flow is recorded in the ledger head.
|
|
112
|
+
- 79 deterministic checks.
|
|
113
|
+
|
|
114
|
+
## 0.19.0 — 2026-11-25
|
|
115
|
+
|
|
116
|
+
- Caption now teaches how to write an expert into a dispatch brief:
|
|
117
|
+
`references/experts.md` gives the five parts (identity and bar, inputs, what
|
|
118
|
+
counts as a finding, what does not, output shape), the rules that make one
|
|
119
|
+
usable, and a weak/strong pair on the same slice. The protocol and the dispatch
|
|
120
|
+
reference both point at it.
|
|
121
|
+
- No new mechanism: an expert is still a paragraph in the brief. The plugin does
|
|
122
|
+
not store, name or reuse experts — that would make a light command heavy.
|
|
123
|
+
- 78 deterministic checks.
|
|
124
|
+
|
|
125
|
+
## 0.18.0 — 2026-11-25
|
|
126
|
+
|
|
127
|
+
- A `sub` run that hangs — typically an approval nobody answers — no longer blocks
|
|
128
|
+
the session forever: past `runTimeoutMinutes` (default 30, `0` disables) the
|
|
129
|
+
slot is released and the next command may start.
|
|
130
|
+
- Verified in an isolated `dsh web` instance: the caption loop drove a real agent
|
|
131
|
+
(read the ledger first, wrote it, proved its guard red then green, committed),
|
|
132
|
+
and `/code-review sub` produced a report the shell delivered back into the
|
|
133
|
+
session.
|
|
134
|
+
- 77 deterministic checks.
|
|
135
|
+
|
|
136
|
+
## 0.17.0 — 2026-11-25
|
|
137
|
+
|
|
138
|
+
- `/code-caption` no longer re-injects its 5 KB protocol on a second run in the
|
|
139
|
+
same session: the shell records an `installed` journal entry, and the repeat
|
|
140
|
+
carries only the task, the ledger path and a pointer to the protocol already in
|
|
141
|
+
the conversation.
|
|
142
|
+
- The caption ledger directory is configurable (`ledgerDirectory`; relative paths
|
|
143
|
+
resolve against the project) and the receipt names the real path. An empty
|
|
144
|
+
value fails at load.
|
|
145
|
+
- Caption's dispatch section now names the two mechanisms the plugin actually
|
|
146
|
+
offers — `subagent` / `subagent_fork` and the plugin's own `… sub` — and forbids
|
|
147
|
+
mixing them on one slice; the reference explains that `sub` runs are
|
|
148
|
+
single-flight while `subagent` dispatches are not.
|
|
149
|
+
- 76 deterministic checks.
|
|
150
|
+
|
|
151
|
+
## 0.16.0 — 2026-11-24
|
|
152
|
+
|
|
153
|
+
- The review default no longer produces an empty scope. "Current branch" now
|
|
154
|
+
ignores a base ref that already equals HEAD; when the branch has no distinct
|
|
155
|
+
base (work happens on main), the scope falls back to the **last 5 commits**
|
|
156
|
+
instead of a diff of nothing.
|
|
157
|
+
- Empty scopes are caught before a run: a clean working tree with no base returns
|
|
158
|
+
"nothing to review" with the flags that would fix it, instead of spending a
|
|
159
|
+
turn.
|
|
160
|
+
- The in-session path now tells the agent to read `AGENT.md` first and, for
|
|
161
|
+
structured commands, to write the human Markdown report instead of the JSON
|
|
162
|
+
envelope (only the isolated path returns JSON, which the shell renders).
|
|
163
|
+
- 73 deterministic checks.
|
|
164
|
+
|
|
165
|
+
## 0.15.0 — 2026-11-24
|
|
166
|
+
|
|
167
|
+
- Every command now runs on empty input with a sensible default:
|
|
168
|
+
`/code-review` reviews the current branch against its base (auto-detected
|
|
169
|
+
`origin/HEAD` / `main` / `master`), `/code-simplify` and `/code-scrub` work on
|
|
170
|
+
the whole project and write, `/code-caption` continues the task already in the
|
|
171
|
+
conversation, `/pua` uses the default flavor.
|
|
172
|
+
- Commands can declare their own default scope (`defaultScope`), so review's
|
|
173
|
+
"current branch" and simplify's "whole project" coexist in the same shell.
|
|
174
|
+
- 71 deterministic checks.
|
|
175
|
+
|
|
176
|
+
## 0.14.0 — 2026-11-24
|
|
177
|
+
|
|
178
|
+
- Every command now has a default that needs no input: scope is the **whole
|
|
179
|
+
project on the current branch**, the executor is the current session, and the
|
|
180
|
+
mode is **write** (add `report` for a plan, `sub` for an isolated agent). The
|
|
181
|
+
scope picker is gone — `--files` / `--base` / `--commit` / custom text still
|
|
182
|
+
narrow it.
|
|
183
|
+
- `/code-review` stays read-only by nature; `report` is a no-op there.
|
|
184
|
+
- 71 deterministic checks.
|
|
185
|
+
|
|
186
|
+
## 0.13.0 — 2026-11-24
|
|
187
|
+
|
|
188
|
+
- No more apply/report question. `/code-simplify` and `/code-scrub` now **write by
|
|
189
|
+
default**; add the word `report` to get a plan instead (`/code-simplify report`,
|
|
190
|
+
`/code-simplify sub report --base main`). `sub` and `report` are positional
|
|
191
|
+
words, so they compose.
|
|
192
|
+
- The question helper, its i18n copy and its test are gone; the flag parser
|
|
193
|
+
(`splitFlags`) covers both modifiers and is tested.
|
|
194
|
+
- 70 deterministic checks.
|
|
195
|
+
|
|
196
|
+
## 0.12.0 — 2026-11-24
|
|
197
|
+
|
|
198
|
+
- Extracted the session-interaction ability into one `SessionCommand` class
|
|
199
|
+
(`src/command.js`). Every command — review, simplify, scrub, caption, pua,
|
|
200
|
+
status, cancel — is now a declaration registered through it: `kind` is `task`
|
|
201
|
+
(scope + inline or isolated delivery), `inject` (text into the session), or
|
|
202
|
+
`local` (journal/status). Immediate settlement, scope selection, the apply
|
|
203
|
+
question, failure delivery and journal states live in one place instead of
|
|
204
|
+
once per handler.
|
|
205
|
+
- A test asserts `index.js` no longer registers commands directly, so the shell
|
|
206
|
+
stays the only entry.
|
|
207
|
+
- 71 deterministic checks.
|
|
208
|
+
|
|
209
|
+
## 0.11.0 — 2026-11-24
|
|
210
|
+
|
|
211
|
+
- `/code-review`, `/code-simplify` and `/code-scrub` now run **in the current
|
|
212
|
+
session** by default: the command resolves the scope, then queues the task as a
|
|
213
|
+
user message and the agent works visibly. Add `sub` to hand the task to the
|
|
214
|
+
isolated agent instead (`/code-review sub`, `/code-simplify sub --base main`).
|
|
215
|
+
- The in-session path writes a `submitted` journal entry; `/code-status` reports
|
|
216
|
+
it, and a failed run is still delivered as a message.
|
|
217
|
+
- 70 deterministic checks.
|
|
218
|
+
|
|
219
|
+
## 0.10.0 — 2026-11-24
|
|
220
|
+
|
|
221
|
+
- Added `/pua [flavor]`: installs the PUA protocol into the current session — three
|
|
222
|
+
red lines (evidence before "done", verify before blaming, exhaust the five steps
|
|
223
|
+
before "I can't"), L0–L4 escalation, the five-step method, and the iceberg rule.
|
|
224
|
+
`/pua list` lists the eight flavors; a flavor changes the tone, not the rules.
|
|
225
|
+
- The protocol lives in `agents/pua/` (AGENT.md, flavors, methodology, example).
|
|
226
|
+
- Case `10-pua-recovery`: a stale port in `.env.test` whose error looks like "the
|
|
227
|
+
service is down"; the run has to change method and paste evidence instead of
|
|
228
|
+
blaming the environment.
|
|
229
|
+
- 69 deterministic checks. The case is defined but has not been run against a model.
|
|
230
|
+
|
|
231
|
+
## 0.9.0 — 2026-11-24
|
|
232
|
+
|
|
233
|
+
- The three spawn commands settle immediately: the handler returns a receipt and
|
|
234
|
+
the composer clears at once, instead of staying read-only for the whole run.
|
|
235
|
+
The report is delivered afterwards as a queued user message (`agent.followup`)
|
|
236
|
+
that tells the model to relay it verbatim — the shape `dsh-code-review` and
|
|
237
|
+
`dsh-simplify` use.
|
|
238
|
+
- A failed run is delivered too, so a cleared box is never a silent box.
|
|
239
|
+
- `/code-status` and `/code-cancel` still work; the journal is unchanged.
|
|
240
|
+
- The message is built locally in `src/delivery.js` (mirroring
|
|
241
|
+
`createUserMessage`) because a `link:`-installed plugin cannot resolve host
|
|
242
|
+
packages from its real path.
|
|
243
|
+
- 62 deterministic checks.
|
|
244
|
+
|
|
245
|
+
## 0.8.1 — 2026-11-24
|
|
246
|
+
|
|
247
|
+
- Fixed `cannot get property "userQuestions" without inject`: the prompt helper
|
|
248
|
+
read `ctx.userQuestions` directly, which Cordis rejects unless the service is
|
|
249
|
+
declared in `inject`. The service is optional (headless hosts have no UI), so
|
|
250
|
+
every access now goes through `ctx.get`.
|
|
251
|
+
- The eval harness now awaits the async tests it had been firing unawaited, so a
|
|
252
|
+
late failure can no longer print "0 failed" and then exit 1. 61 checks, not 58.
|
|
253
|
+
|
|
254
|
+
## 0.8.0 — 2026-11-24
|
|
255
|
+
|
|
256
|
+
- Reverted the detached execution from 0.5.1. Without `input`, picking a command
|
|
257
|
+
from the `/` menu executed it immediately and Tab acted like Enter, so there
|
|
258
|
+
was no way to insert the token and keep typing. That is worse than the freeze
|
|
259
|
+
it fixed.
|
|
260
|
+
- The three spawn commands declare `input` again, so `--files` / `--base` /
|
|
261
|
+
`--commit` / `--apply` work again. The "report only or rewrite" question stays
|
|
262
|
+
for runs that do not pass `--apply`.
|
|
263
|
+
- The known cost is documented rather than hidden: after Enter the composer
|
|
264
|
+
stays read-only until the handler settles, which for a review is the whole
|
|
265
|
+
run. The host ties insert-on-pick and execute-on-pick to the same flag; having
|
|
266
|
+
both needs a client-side contribution.
|
|
267
|
+
- 57 deterministic checks; the guard now asserts that every command declares
|
|
268
|
+
`input`.
|
|
269
|
+
|
|
270
|
+
## 0.7.0 — 2026-11-24
|
|
271
|
+
|
|
272
|
+
- `/code-simplify` learned from two real runs. The first (95 files, no test
|
|
273
|
+
suite) produced 17 items that were mostly unused imports, pushed the
|
|
274
|
+
interesting duplications into a flat "not handled" list, and claimed a full
|
|
275
|
+
read of files it had only searched. The second run failed on anchors and on a
|
|
276
|
+
file it could not write.
|
|
277
|
+
- The plan now ranks by value, groups mechanical items, and reports coverage as
|
|
278
|
+
`read in full` / `searched only`.
|
|
279
|
+
- No gate, no apply: the project's tests, or a characterization baseline when
|
|
280
|
+
there are none (compile + import smoke + real entry points with hashed output +
|
|
281
|
+
a pinned input/output table). If no baseline can be built, the run returns the
|
|
282
|
+
plan and names what is missing.
|
|
283
|
+
- Apply works in batches, re-runs the gate after each, confirms the anchor is
|
|
284
|
+
unique, reads the edit back, and reports a failed write instead of retrying it.
|
|
285
|
+
- "Not handled" is classified: defect / behaviour-risk / too-big / intentional.
|
|
286
|
+
- 57 deterministic checks. The change is a protocol edit and has not been scored
|
|
287
|
+
against the eval cases again.
|
|
288
|
+
|
|
289
|
+
## 0.6.0 — 2026-11-24
|
|
290
|
+
|
|
291
|
+
- `/code-caption` can dispatch subagents, under a two-lane rule: analysis is
|
|
292
|
+
read-only and may fan out; build writes and needs exclusive paths, with shared
|
|
293
|
+
files (barrels, indexes, configs, lockfiles, shared tests) owned by exactly one
|
|
294
|
+
agent — normally the integrator. A brief that does not say what may be written
|
|
295
|
+
is an invitation to collide.
|
|
296
|
+
- After merging, the integrator runs the whole gate: a green per-agent gate does
|
|
297
|
+
not mean the merged tree is green. Each dispatch is recorded in the ledger
|
|
298
|
+
(lane, paths, gate, merged or rejected).
|
|
299
|
+
- 56 deterministic checks. The dispatch behaviour is not yet measured by a model
|
|
300
|
+
run: `09-caption-dispatch` is defined (two modules, one shared fixture and one
|
|
301
|
+
barrel) but has never been scored, and `08-caption-loop` does not exercise it.
|
|
302
|
+
|
|
303
|
+
## 0.5.1 — 2026-11-24
|
|
304
|
+
|
|
305
|
+
- Fixed the composer keeping the text after Enter. `/code-review`,
|
|
306
|
+
`/code-simplify` and `/code-scrub` declared `input`, which makes the client
|
|
307
|
+
treat the line as a claimed command: the draft stays read-only until the
|
|
308
|
+
handler settles — and these handlers await a whole subagent run. They now run
|
|
309
|
+
detached: the token is consumed on Enter, the box clears, and the result
|
|
310
|
+
arrives as a command flow node.
|
|
311
|
+
- Consequence: the three commands take no arguments any more. Scope is the
|
|
312
|
+
existing picker; "report only or rewrite" is a second question. A regression
|
|
313
|
+
test now fails if one of them declares `input` again.
|
|
314
|
+
- `/code-caption` keeps its `input` hint: its handler steers and returns
|
|
315
|
+
immediately.
|
|
316
|
+
|
|
317
|
+
## 0.5.0 — 2026-11-24
|
|
318
|
+
|
|
319
|
+
- Added `/code-caption`: it installs an explicit working loop into the current
|
|
320
|
+
session instead of spawning an agent. The loop is observe → one step → verify
|
|
321
|
+
→ prove a new guard → record a caption and commit → re-plan, and it exists
|
|
322
|
+
because a long task loses the thread under compaction: which command ran, what
|
|
323
|
+
it printed, which route already failed.
|
|
324
|
+
- The ledger (`docs/caption/<slug>.md`) is the durable memory, with one entry per
|
|
325
|
+
iteration and an outcome of `done`, `dead end`, or `unverified`.
|
|
326
|
+
- This is the first command here that is not an isolated-agent pass, and the
|
|
327
|
+
first that depends on `agent.steer`. The rest of the plugin is unchanged.
|
|
328
|
+
- Case `08-caption-loop`: two failing tests where the obvious fix leaves the
|
|
329
|
+
second one red, so the run has to record a dead end instead of claiming a
|
|
330
|
+
clean sweep.
|
|
331
|
+
- 53 deterministic checks.
|
|
332
|
+
|
|
333
|
+
## 0.4.0 — 2026-11-24
|
|
334
|
+
|
|
335
|
+
- Renamed to `@morning-start/dsh-code-toolkit` (plugin id
|
|
336
|
+
`morning-start-code-toolkit`). "Code quality" described two of the three
|
|
337
|
+
passes; a toolkit is what it is. Commands are unchanged.
|
|
338
|
+
- Display title is now 代码工具箱 / Code Toolkit, matching the scope: review,
|
|
339
|
+
simplify, scrub.
|
|
340
|
+
- The rename is finished everywhere it is observable: the journal directory is
|
|
341
|
+
`$DSH_HOME/code-toolkit/`, question ids are `code-toolkit-*`, and the command
|
|
342
|
+
descriptions say "code-toolkit task". A test now fails if `code-quality`
|
|
343
|
+
reappears outside this changelog, and another fails if `package.json`,
|
|
344
|
+
`cordis.patch.yml`, and `index.js` disagree on the name.
|
|
345
|
+
|
|
346
|
+
## 0.3.0 — 2026-11-24
|
|
347
|
+
|
|
348
|
+
- Added `/code-scrub`: finds credentials, account identifiers, and local paths,
|
|
349
|
+
and reports them masked — a report that repeats the secret has only moved the
|
|
350
|
+
leak. `--apply` redacts with the replacement shape each file type needs, then
|
|
351
|
+
verifies.
|
|
352
|
+
- The scrubber's hard part is the false positive: `process.env.API_KEY`,
|
|
353
|
+
`<your-key>`, public author metadata, and `sk-test-not-real` are all decoys in
|
|
354
|
+
case 07, which expects an empty report.
|
|
355
|
+
- 43 deterministic checks, seven fixture cases, and `evals/results/iteration-2.md`.
|
|
356
|
+
|
|
357
|
+
## 0.2.0 — 2026-11-24
|
|
358
|
+
|
|
359
|
+
- Personas are layered like a skill: `agents/<role>/AGENT.md` plus
|
|
360
|
+
`references/` and `examples/` that the child agent reads on demand.
|
|
361
|
+
- Review output follows the Codex JSON schema; `src/report.js` parses it and
|
|
362
|
+
renders priority tags with `file:line` links, falling back to the raw reply.
|
|
363
|
+
- Base-branch scope resolves the merge base, including the case where the local
|
|
364
|
+
base is behind its upstream.
|
|
365
|
+
- Results are written to `$DSH_HOME/code-quality/`, so `/code-status` survives a
|
|
366
|
+
restart and reports an interrupted run as interrupted.
|
|
367
|
+
- Locale follows the host's `locale.preference` across the eight official
|
|
368
|
+
languages; an explicit `locale` in config still wins.
|
|
369
|
+
- Added `evals/`: 41 deterministic checks, five fixture cases with labels, a
|
|
370
|
+
scorer, an acceptance protocol, and the first recorded iteration.
|
|
371
|
+
|
|
372
|
+
## 0.1.0
|
|
373
|
+
|
|
374
|
+
- First version: `/code-review`, `/code-simplify`, `/code-status`,
|
|
375
|
+
`/code-cancel`, scope selection, and isolated spawn-agent execution.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 morning-start
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Third-party material reproduced in this repository:
|
|
26
|
+
|
|
27
|
+
- `agents/review/references/rubric.md` restates the review guidelines from
|
|
28
|
+
OpenAI Codex (`codex-rs/prompts/src/review_request.rs`, commit a592c38c),
|
|
29
|
+
Apache License 2.0.
|
|
30
|
+
- `agents/simplify/references/anti-patterns.md` restates the balance rules from
|
|
31
|
+
the code-simplifier agent in `anthropics/claude-plugins-official` (commit
|
|
32
|
+
5cec6716), which is distributed under the MIT License.
|
|
33
|
+
|
|
34
|
+
Each file states its own source at the top. The MIT License above covers this
|
|
35
|
+
plugin's own code and prose; the upstream material keeps its original license.
|