@skitterbyte/skitterspec-github 2.12.0 → 2.15.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/assets/core/env.config.md +22 -2
- package/assets/review/page.html +2 -1
- package/assets/rules/offered-unblocks.md +22 -0
- package/assets/rules/spec-reports.md +24 -0
- package/assets/skills/no-spec/SKILL.md +5 -0
- package/assets/skills/spec-complete/SKILL.md +5 -1
- package/assets/skills/spec-diff/SKILL.md +5 -0
- package/assets/skills/spec-idea/SKILL.md +5 -0
- package/assets/skills/spec-start/SKILL.md +6 -2
- package/assets/skills/spec-to-main/SKILL.md +5 -1
- package/package.json +1 -1
- package/src/cli.js +191 -36
- package/src/env/base.js +21 -5
- package/src/env/basepin.js +62 -0
- package/src/env/config.js +37 -1
- package/src/env/resolve.js +66 -13
- package/src/env/review.js +95 -5
- package/src/env/reviewers.js +5 -4
- package/src/env/serve.js +3 -0
- package/src/env/supervise.js +71 -9
- package/src/ideacmd.js +11 -1
|
@@ -325,8 +325,11 @@ through to a documented conservative default; see the field notes below.
|
|
|
325
325
|
// - git's glob does not cross "/": "rc/*" matches rc/2026-11 but not
|
|
326
326
|
// rc/a/b. Spell each segment ("20??/Q?").
|
|
327
327
|
// - No match REFUSES, naming `spec-env base` — it never falls back to
|
|
328
|
-
// origin/HEAD, because zero matches usually means "not
|
|
329
|
-
// the default branch is exactly where a rolling base must
|
|
328
|
+
// origin/HEAD UNASKED, because zero matches usually means "not
|
|
329
|
+
// fetched", and the default branch is exactly where a rolling base must
|
|
330
|
+
// not land by accident. Between rcs (one merged, the next not cut) the
|
|
331
|
+
// refusal OFFERS `baseBranchFallback` below; accepting it pins that
|
|
332
|
+
// branch locally until a match appears, for every command at once.
|
|
330
333
|
// - Newest-by-date is only right when one rc is live at a time (the next
|
|
331
334
|
// is cut after the last merges). If your rcs overlap, pin `baseBranch`.
|
|
332
335
|
// - A spec that outlived a roll lands on the new rc; the integrate plan
|
|
@@ -336,6 +339,17 @@ through to a documented conservative default; see the field notes below.
|
|
|
336
339
|
// `spec-env base` lists the matches, the base, and specs on an older one.
|
|
337
340
|
"baseBranchPattern": "",
|
|
338
341
|
|
|
342
|
+
// The branch OFFERED as the base while `baseBranchPattern` matches nothing —
|
|
343
|
+
// the gap between one rc merging and the next being cut. Empty = the
|
|
344
|
+
// remote's default branch (`<land.remote>/HEAD`). It is never used unasked:
|
|
345
|
+
// the refusal offers it, and accepting (`spec-env base --use-fallback`)
|
|
346
|
+
// writes a local, gitignored pin in `.spec-env/base-pin.json` that clears
|
|
347
|
+
// itself the moment a branch matches again. Name a branch here when you
|
|
348
|
+
// release from something other than the default (a test branch). A value
|
|
349
|
+
// that names no branch, or neither resolving, means no offer — a plain
|
|
350
|
+
// refusal, because a guessed base is worse. Ignored without a pattern.
|
|
351
|
+
"baseBranchFallback": "",
|
|
352
|
+
|
|
339
353
|
// How a finished branch reaches the base branch.
|
|
340
354
|
// strategy: "ff" (default) — trunk-based: rebase + local `merge --ff-only`,
|
|
341
355
|
// exactly as always; nothing below applies.
|
|
@@ -523,6 +537,12 @@ through to a documented conservative default; see the field notes below.
|
|
|
523
537
|
// "local" — you are at the machine holding the page; it binds 127.0.0.1.
|
|
524
538
|
// "remote" — you are not; it binds every interface so the page opens.
|
|
525
539
|
// "detect" — work it out (the default); cannot-tell binds 127.0.0.1.
|
|
540
|
+
// SKITTERSPEC_READER=local|remote in the environment outranks this key: a
|
|
541
|
+
// wrapper that runs the engine on another machine (a VM's `prlctl exec`)
|
|
542
|
+
// speaks for that machine alone. A reader on another machine — this key or
|
|
543
|
+
// that variable set to "remote", ssh, or a Windows session with no desktop
|
|
544
|
+
// (no SESSIONNAME: `prlctl exec`, sshd, a scheduled task) — gets no `local` tier while
|
|
545
|
+
// `network` has a URL, since 127.0.0.1 is the engine's machine.
|
|
526
546
|
// An explicit "local"/"remote" is BELIEVED WITHOUT SNIFFING: you know where
|
|
527
547
|
// you are reading, and no signal outranks being told. Detection is only the
|
|
528
548
|
// default, and it has three outcomes rather than two — local, remote, and
|
package/assets/review/page.html
CHANGED
|
@@ -3373,7 +3373,8 @@ a.ticket:hover { border-color: var(--accent); }
|
|
|
3373
3373
|
part(data.branch)
|
|
3374
3374
|
sep()
|
|
3375
3375
|
part(data.mode === 'branch'
|
|
3376
|
-
? 'everything since ' + data.base + (data.fellBack ? ' (working tree clean)' : '')
|
|
3376
|
+
? 'everything since ' + data.base + (data.fellBack ? ' (working tree clean)' : '') +
|
|
3377
|
+
(data.baseGap ? ' — ' + data.baseGap : '')
|
|
3377
3378
|
: data.mode === 'docs'
|
|
3378
3379
|
? "the spec's own documents"
|
|
3379
3380
|
: 'uncommitted work')
|
|
@@ -55,6 +55,28 @@ offer's `label`, and Cancel.
|
|
|
55
55
|
something easier-sounding, never pre-select it, and never add a third option. A
|
|
56
56
|
bypass that arrives pre-selected is a bypass by default wearing a question mark.
|
|
57
57
|
|
|
58
|
+
### A worked `satisfy`: the gap between release branches
|
|
59
|
+
|
|
60
|
+
Under `baseBranchPattern`, a base nobody can resolve refuses — and where the
|
|
61
|
+
last release branch has merged and the next is not yet cut, that refusal is the
|
|
62
|
+
normal state of the repo for a while, not a mistake. So the engine declares:
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"blocked": true,
|
|
67
|
+
"reason": "no branch matches 20??/Q? — run spec-env base to fetch",
|
|
68
|
+
"offer": { "kind": "satisfy", "label": "Use master as the base for now", "command": "skitterspec spec-env base --use-fallback" }
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Text output carries the same thing as an `offer:` line under the refusal. On
|
|
73
|
+
the pick, run the command and retry the command that refused. It is `satisfy`
|
|
74
|
+
because it gives the guard what it asked for — a base — and the pick is kept as
|
|
75
|
+
a local pin that every command then honours, so it is asked once per gap rather
|
|
76
|
+
than once per command. The pin clears itself when a branch matches again, so
|
|
77
|
+
nothing about it needs recording. No fallback resolvable means no `offer`, and
|
|
78
|
+
the refusal stands alone.
|
|
79
|
+
|
|
58
80
|
## A bypass is offered once per obligation
|
|
59
81
|
|
|
60
82
|
The engine enforces this; a skill does not count anything. Spend the offer by
|
|
@@ -164,6 +164,30 @@ on. Dropping the line is what left a reader who had walked out of the house with
|
|
|
164
164
|
nothing on screen to tell them a remote page was even possible — they could not
|
|
165
165
|
ask for what they could not see.
|
|
166
166
|
|
|
167
|
+
**One exception: a reader on another machine sees no `local` line.** This is
|
|
168
|
+
the third amendment, and it argues from the rule's own reason. The rule keeps a
|
|
169
|
+
line so the reader can see a door they could ask to have opened. But when the
|
|
170
|
+
engine runs on one machine and the reader is on another — a wrapper running it
|
|
171
|
+
inside a VM, or an ssh session — `127.0.0.1` is the engine's machine, not the
|
|
172
|
+
reader's. That door never opens, whatever anyone asks. It was also first in the
|
|
173
|
+
stack, the link habit reaches for, and it cost a timeout on every review. So the
|
|
174
|
+
engine hides it, on `SKITTERSPEC_READER=remote` (`local` outranks everything
|
|
175
|
+
below it), the committed `review.reader`, ssh, or a Windows session with no
|
|
176
|
+
desktop (no `SESSIONNAME`, which is what `prlctl exec`, the OpenSSH server and a
|
|
177
|
+
scheduled task all look like). It hides it only
|
|
178
|
+
when `network` has a URL to take its place; otherwise the line stays and says
|
|
179
|
+
it is unreachable.
|
|
180
|
+
|
|
181
|
+
**That last signal is detection, allowed here for what a wrong guess costs.** The network URL is the same server, so it opens from
|
|
182
|
+
the engine's own machine too. A reader wrongly judged to be elsewhere gets the
|
|
183
|
+
second-best link, never a page that will not open. Detection has done harm
|
|
184
|
+
before when it decided whether to *serve*, because a wrong guess there removed
|
|
185
|
+
the verdict loop. Nothing like that is at stake here. The skill still decides
|
|
186
|
+
nothing. A tier marked `hidden` in `--json` is absent from the printed stack, so
|
|
187
|
+
copying the stack still produces the right banner. The holding line names the
|
|
188
|
+
engine's `covers` — *the wait covers network* — never a door the stack did not
|
|
189
|
+
show.
|
|
190
|
+
|
|
167
191
|
**The `network` tier may carry alternates, and they are part of it — not a fourth tier.**
|
|
168
192
|
The engine offers the other addresses this machine has (a
|
|
169
193
|
tailnet one, for a reader off the wifi) as `also:` lines under `network`, each
|
|
@@ -45,6 +45,11 @@ things answering to one name is how a teardown removes the wrong tree.
|
|
|
45
45
|
skitterspec spec-env nospec <name>
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
A refusal naming `no branch matches <pattern>` that carries an `offer:` line
|
|
49
|
+
is the gap between release branches: relay it, then offer it as
|
|
50
|
+
`.claude/rules/offered-unblocks.md` describes — its label and Cancel — and on
|
|
51
|
+
the pick run `skitterspec spec-env base --use-fallback` and retry.
|
|
52
|
+
|
|
48
53
|
It records the name as a **specless branch** and prints the plan. Run the
|
|
49
54
|
`git worktree add` it prints, then move this session into the worktree with a
|
|
50
55
|
plain `cd` and run the `then, run:` line where there is one:
|
|
@@ -439,7 +439,11 @@ is finished — e.g. to run a later phase in CI or a shared test env? Use
|
|
|
439
439
|
relay it verbatim in the `Landed` row so the reader sees where the work went.
|
|
440
440
|
|
|
441
441
|
A refusal naming `no branch matches <pattern>` means no release candidate is
|
|
442
|
-
visible
|
|
442
|
+
visible. Where it carries an `offer:` line it is the gap between release
|
|
443
|
+
branches: relay it, then offer it as `.claude/rules/offered-unblocks.md`
|
|
444
|
+
describes — its label and Cancel — and on the pick run
|
|
445
|
+
`skitterspec spec-env base --use-fallback` and retry the land. With no offer
|
|
446
|
+
it is usually not fetched: relay it, stop with `⏸`, and name
|
|
443
447
|
`skitterspec spec-env base` (it fetches and lists) as the next step.
|
|
444
448
|
3. **Run the after-land commands.** Where the plan ends with a
|
|
445
449
|
`then, in the primary checkout (<path>), run:` section — the project's
|
|
@@ -470,6 +470,11 @@ skitterspec spec-env review <spec> --run-reviewers # …and run review.reviewe
|
|
|
470
470
|
skitterspec spec-env review serve # every spec, on localhost
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
+
A refusal naming `no branch matches <pattern>` that carries an `offer:` line
|
|
474
|
+
is the gap between release branches: relay it, then offer it as
|
|
475
|
+
`.claude/rules/offered-unblocks.md` describes — its label and Cancel — and on
|
|
476
|
+
the pick run `skitterspec spec-env base --use-fallback` and render again.
|
|
477
|
+
|
|
473
478
|
**`--run-reviewers` is opt-in here, and a BARE `/spec-diff` MUST NOT PASS IT.**
|
|
474
479
|
`/spec-next` runs the project's configured reviewers once per phase, where the
|
|
475
480
|
cost is paid against work that is finished. This skill answers at any point,
|
|
@@ -62,6 +62,11 @@ branch and that is always the operator's call.
|
|
|
62
62
|
**A refused capture loses nothing.** The engine prints the text back. Put it in
|
|
63
63
|
the `Why` row verbatim so the user can copy it.
|
|
64
64
|
|
|
65
|
+
A refusal naming `no branch matches <pattern>` that carries an `offer:` line
|
|
66
|
+
is the gap between release branches: relay it, then offer it as
|
|
67
|
+
`.claude/rules/offered-unblocks.md` describes — its label and Cancel — and on
|
|
68
|
+
the pick run `skitterspec spec-env base --use-fallback` and retry.
|
|
69
|
+
|
|
65
70
|
## 3. List
|
|
66
71
|
|
|
67
72
|
```
|
|
@@ -156,8 +156,12 @@ render says so. On **`--plan`** this step does not run at all.
|
|
|
156
156
|
the primary checkout is not on the newest release candidate the plan says
|
|
157
157
|
`fork: <base> (the base — the primary checkout is on <old>)` and forks from
|
|
158
158
|
it. Relay that line in the `Branch` row. A refusal naming
|
|
159
|
-
`no branch matches <pattern>` means no release candidate is visible
|
|
160
|
-
|
|
159
|
+
`no branch matches <pattern>` means no release candidate is visible. Where
|
|
160
|
+
it carries an `offer:` line it is the gap between release branches: relay
|
|
161
|
+
it, then offer it as `.claude/rules/offered-unblocks.md` describes — its
|
|
162
|
+
label and Cancel — and on the pick run
|
|
163
|
+
`skitterspec spec-env base --use-fallback` and re-run `up`. With no offer it
|
|
164
|
+
is usually not fetched: relay it, stop with `⏸`, and name
|
|
161
165
|
`skitterspec spec-env base` (it fetches and lists) as the next step.
|
|
162
166
|
|
|
163
167
|
2. **Trust the worktree.** `spec-env up` wrote the printed `trusted:` root into
|
|
@@ -112,7 +112,11 @@ can carry two more things, and both are the engine's to say:
|
|
|
112
112
|
relay it verbatim in the `Landed` row so the reader sees where the work went.
|
|
113
113
|
|
|
114
114
|
A refusal naming `no branch matches <pattern>` means no release candidate is
|
|
115
|
-
visible
|
|
115
|
+
visible. Where it carries an `offer:` line it is the gap between release
|
|
116
|
+
branches: relay it, then offer it as `.claude/rules/offered-unblocks.md`
|
|
117
|
+
describes — its label and Cancel — and on the pick run
|
|
118
|
+
`skitterspec spec-env base --use-fallback` and retry the land. With no offer it
|
|
119
|
+
is usually not fetched: relay it, stop with `⏸`, and name
|
|
116
120
|
`skitterspec spec-env base` (it fetches and lists) as the next step.
|
|
117
121
|
|
|
118
122
|
**Then run the after-land commands.** Where the plan ends with a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skitterbyte/skitterspec-github",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Spec-driven development for Claude Code, with one-way GitHub sync — a superset of @skitterbyte/skitterspec: the base filesystem workflow plus /spec-status · /spec-push · /spec-claim and the spec-sync CLI, mirroring specs to GitHub Issues, sub-issues and a Projects v2 board, with GitHub Releases. The repo is canonical; GitHub is a generated mirror. Install this OR the base OR one other superset — exactly one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|