@skitterbyte/skitterspec-github 3.2.2 → 3.2.4

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.
@@ -1997,6 +1997,10 @@ a.ticket:hover { border-color: var(--accent); }
1997
1997
  // because `Commit & Continue` names a next phase a spec with no phase files
1998
1998
  // does not have. Same three buttons as `refresh`, a different subject.
1999
1999
  fix: ['commit', 'changes', 'discuss'],
2000
+ // A PHASE STOPPED AT ITS MANUAL STEPS: the code half commits so it can go
2001
+ // live and be tested; the steps come next, so there is nothing to Continue
2002
+ // into. `/spec-next` §3 renders it, and arms nothing.
2003
+ manual: ['commit', 'changes', 'discuss'],
2000
2004
  // A KEPT PHASE of an autonomous run: the run committed it and carried on,
2001
2005
  // so there is nothing to decide here — it is read, not answered.
2002
2006
  snapshot: [],
@@ -353,28 +353,55 @@ Then build it, following the project rules in `.claude/rules/*.md` and `CLAUDE.m
353
353
  - Never hardcode dates in tests; never run destructive commands against a real
354
354
  database — use the project's test database only.
355
355
 
356
- ### Manual steps — list them, then ask
356
+ ### Manual steps — list them, end the turn, ask when they come back
357
357
 
358
358
  Some tasks are a person's to do: every task in an **Issue** spec, and any task
359
359
  you cannot perform yourself — operate a UI, check a device, confirm something
360
360
  on a board, run a manual test pass. That is a **judgment**, not a marker: there
361
361
  is no `(manual)` tag to look for, and a spec written before this rule has none.
362
362
 
363
- Build the tasks before the first manual one as usual. Then **stop at it** and
364
- print **every remaining manual step of this phase, verbatim and numbered**, as a
365
- plain markdown list in the conversation — never fenced, and
366
- **never only the phase file's path**. A pointer to the file sends the reader
367
- out of the terminal to find out what to do, which is the failure this exists to
368
- fix; the steps themselves are what they act on.
363
+ Build the tasks before the first manual one as usual, to green.
364
+ Then **stop at it** and print
365
+ **every remaining manual step of this phase, verbatim and numbered** —
366
+ never fenced, and **never only the phase file's path**. A pointer to the file
367
+ sends the reader out of the terminal to find out what to do, which is the
368
+ failure this exists to fix; the steps themselves are what they act on.
369
369
 
370
370
  **Steps you had to write are saved first.** When the phase file holds only a
371
371
  vague manual task — "check it on the running host" — and you wrote the steps
372
372
  yourself, add them under that task as numbered sub-checkboxes **before** you
373
- ask. The conversation does not survive a `/clear`, and a later run that makes
374
- up its own set lists different steps from the ones the reader was shown. A
375
- phase whose manual steps are already tasks is left as it is.
376
-
377
- Then ask one question, with three answers:
373
+ list them. The conversation does not survive a `/clear`, and a later run that
374
+ makes up its own set lists different steps from the ones the reader was shown.
375
+ A phase whose manual steps are already tasks is left as it is.
376
+
377
+ **The first listing ends the turn, and asks no question.** Asking in the same
378
+ turn fails twice over (ereqs, 2026-11-24): the harness's question dialog can
379
+ cover the text before it, so the reader sees "how did it go?" with no steps;
380
+ and the work is not reachable yet — uncommitted in this worktree, not live, not
381
+ on the base branch — so nothing could have been tested. The stop is a report:
382
+
383
+ 1. **Render the page for the code built so far**, only where the project has
384
+ isolation: `skitterspec spec-env review <spec> --buttons manual`. The
385
+ `manual` set offers `Commit` and drops `Commit & Continue`: the code half
386
+ commits so `/spec-live` can take a clean tree, and what follows is a
387
+ person's testing, not a build. It **does not arm** the gate — the phase did
388
+ not end. Committing part of a phase is deliberate here, unlike a `midrun`
389
+ page: the manual steps test this code, and it cannot be reached until it is
390
+ committed. Wait for the verdict as §5 does, under its banner; a `Commit`
391
+ runs through `/spec-diff` §2a.
392
+ 2. **End `⚠️`**, `Why` the phase stopped at its manual steps. `Next` first
393
+ names how to reach the work — `/commit`, then `/spec-live`; or
394
+ `/commit`, then `/spec-to-main` where live refuses the branch (it touches
395
+ migrations, which would change the shared database) or a step needs it on
396
+ the base branch — then the steps a row each, then a closing row: *tell me
397
+ how it went, or `/spec-next`*. The rows follow
398
+ `.claude/rules/spec-reports.md`, *Open manual steps are rows*.
399
+
400
+ **The operator's next message is the answer** — "all done", "step 5 failed:
401
+ …" — read as one of the three below. Or a later `/spec-next` finds the steps
402
+ still unticked: re-list them, and now that the operator has come back, ask.
403
+ A picker carries the steps **inside the question text**,
404
+ never only in the text before it. The three answers:
378
405
 
379
406
  - **All done** — tick those steps and carry on to the end of the phase.
380
407
  - **Some failed** — the picker cannot list the steps (it holds four options and
@@ -384,16 +411,10 @@ Then ask one question, with three answers:
384
411
  never switch.
385
412
  - **Not yet** — tick nothing.
386
413
 
387
- This is the mid-run question `.claude/rules/spec-reports.md` already allows —
388
- whether a person did something is a question you cannot answer yourself — so it
389
- needs no new shape in the report.
390
-
391
- **Some failed or Not yet leaves the phase `🔄`, and stops the run there.** Code
392
- tasks after an unconfirmed step are not built past it, and the phase did not
393
- end: **skip §4's done-marking and §5 entirely** — no page, no arm, no wait.
394
- End `⚠️` and name `/spec-next` in `Next`; it re-lists the same unticked steps.
395
- Its `Next` lists the open steps a row each, copied from the phase file —
396
- `.claude/rules/spec-reports.md`, *Open manual steps are rows*.
414
+ **The stop, Some failed and Not yet leave the phase `🔄`, and stop the run there.** Code tasks after an unconfirmed step are not built past it, and the
415
+ phase did not end: **skip §4's done-marking and §5's committing render** — on
416
+ an answer, no page, no arm, no wait. End `⚠️` and name `/spec-next` in `Next`;
417
+ it re-lists the same unticked steps, a row each, copied from the phase file.
397
418
 
398
419
  ## 4. Record progress
399
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skitterbyte/skitterspec-github",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
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",
package/src/cli.js CHANGED
@@ -8143,6 +8143,17 @@ function liveRebaseTarget(dir, config, base) {
8143
8143
 
8144
8144
  // Take the running instance: rebase the spec's branch onto base, free it from its
8145
8145
  // worktree, and check it out in the primary checkout so the dev server reloads it.
8146
+ // A TAKE THAT DID NOT HAPPEN SAYS SO FIRST. Every outcome used to open
8147
+ // `spec-env live take: …`, so a one-line refusal read like the success line,
8148
+ // and an operator (ereqs, 2026-11-24) went to test a feature that was never
8149
+ // switched in. The marker leads, the consequence follows, the reason after.
8150
+ function notLive(folder, why) {
8151
+ return (
8152
+ `✖ NOT LIVE — spec-env live take refused ${folder}; nothing switched, ` +
8153
+ `the running instance is unchanged.\n\n ${why}\n`
8154
+ )
8155
+ }
8156
+
8146
8157
  async function specEnvLiveTake(dir, config, specArg, flags = {}) {
8147
8158
  const spec = resolveSpecWithWorktree(dir, config, specArg)
8148
8159
 
@@ -8230,7 +8241,7 @@ async function specEnvLiveTake(dir, config, specArg, flags = {}) {
8230
8241
  // entitled to the same way out — so the refusal prints what it would have
8231
8242
  // offered rather than making a harness the only route to it.
8232
8243
  process.stdout.write(
8233
- `spec-env live take: blocked — ${plan.reason}.\n` +
8244
+ notLive(spec.folder, `blocked — ${plan.reason}.`) +
8234
8245
  (plan.offer ? ` ${plan.offer.label}: ${plan.offer.command}\n` : ''),
8235
8246
  )
8236
8247
  return
@@ -8247,17 +8258,20 @@ async function specEnvLiveTake(dir, config, specArg, flags = {}) {
8247
8258
  const started = runGit(spec.worktreePath, ['rebase', '--show-current-patch']).ok
8248
8259
  if (started) runGit(spec.worktreePath, ['rebase', '--abort'])
8249
8260
  process.stdout.write(
8250
- started
8251
- ? `spec-env live take: rebase of ${spec.branch} onto ${onto} hit conflicts — ` +
8252
- `resolve them in ${spec.worktreePath}, then retry.\n`
8253
- : `spec-env live take: rebase of ${spec.branch} onto ${onto} could not start — ` +
8254
- `git said:\n ${reb.err.split('\n').join('\n ')}\n`,
8261
+ notLive(
8262
+ spec.folder,
8263
+ started
8264
+ ? `rebase of ${spec.branch} onto ${onto} hit conflicts — ` +
8265
+ `resolve them in ${spec.worktreePath}, then retry.`
8266
+ : `rebase of ${spec.branch} onto ${onto} could not start — ` +
8267
+ `git said:\n ${reb.err.split('\n').join('\n ')}`,
8268
+ ),
8255
8269
  )
8256
8270
  return
8257
8271
  }
8258
8272
  const det = runGit(spec.worktreePath, ['switch', '--detach'])
8259
8273
  if (!det.ok) {
8260
- process.stdout.write(`spec-env live take: could not detach the worktree — ${det.err}\n`)
8274
+ process.stdout.write(notLive(spec.folder, `could not detach the worktree — ${det.err}`))
8261
8275
  return
8262
8276
  }
8263
8277
  const co = runGit(dir, ['checkout', spec.branch])
@@ -8265,8 +8279,7 @@ async function specEnvLiveTake(dir, config, specArg, flags = {}) {
8265
8279
  // Roll the detach back so the worktree keeps its branch.
8266
8280
  runGit(spec.worktreePath, ['switch', spec.branch])
8267
8281
  process.stdout.write(
8268
- `spec-env live take: could not check out ${spec.branch} in the primary ` +
8269
- `checkout — ${co.err}\n`,
8282
+ notLive(spec.folder, `could not check out ${spec.branch} in the primary checkout — ${co.err}`),
8270
8283
  )
8271
8284
  return
8272
8285
  }
package/src/env/review.js CHANGED
@@ -984,7 +984,10 @@ const COMMITTING = ['commit', 'commit-continue', 'commit-start', 'commit-land',
984
984
  // at all, because the run committed that phase and carried on. `final` is the
985
985
  // page an autonomous run ends on under `pause`: `complete`, `push`, `pr`, plus
986
986
  // `changes` and `discuss`.
987
- const BUTTON_SETS = ['committing', 'midrun', 'authoring', 'refresh', 'nospec', 'fix', 'snapshot', 'final']
987
+ // `manual` is a phase stopped at its manual steps: its code half is green and
988
+ // must be committed before `/spec-live` will take it, and what follows is a
989
+ // person's testing, not a build — so `Commit`, never `Commit & Continue`.
990
+ const BUTTON_SETS = ['committing', 'midrun', 'authoring', 'refresh', 'nospec', 'fix', 'manual', 'snapshot', 'final']
988
991
  const DEFAULT_BUTTON_SET = 'committing'
989
992
 
990
993
  /**
package/src/env/serve.js CHANGED
@@ -531,7 +531,9 @@ function receivePass(dir, config, spec, blob) {
531
531
  */
532
532
  // `final` too: the run's last render declared it, and a served re-render
533
533
  // must keep offering the ending rather than fall back to `Commit`.
534
- const NARROWING_SETS = ['midrun', 'refresh', 'fix', 'final']
534
+ // `manual` narrows the same way `fix` does: a served re-render of a phase
535
+ // stopped at its manual steps must not hand back `Commit & Continue`.
536
+ const NARROWING_SETS = ['midrun', 'refresh', 'fix', 'manual', 'final']
535
537
 
536
538
  function buttonsForView(viewKind, spec, recorded) {
537
539
  if (NARROWING_SETS.includes(recorded)) return recorded
package/src/provider.js CHANGED
@@ -90,6 +90,67 @@ function registerConfiguredProvider({ cwd, envConfig, idea, resolve = resolvePac
90
90
  return { provider: p.name, registered: 'config' }
91
91
  }
92
92
 
93
+ // The configured provider's own bin, installed beside the base or in the
94
+ // project, or null when it is not installed. `candidates` narrows where to
95
+ // look: an install takes only the published superset, since the workspace
96
+ // source package's assets are uncomposed and its bin refuses to install them.
97
+ function providerBin(p, dir, resolve, candidates = p.candidates) {
98
+ const bin = join('bin', `skitterspec-${p.name}.js`)
99
+ for (const [pkg] of candidates) {
100
+ const root = resolve(pkg, [__dirname, dir])
101
+ if (root && existsSync(join(root, bin))) return join(root, bin)
102
+ }
103
+ return null
104
+ }
105
+
106
+ /**
107
+ * Run `init`, `update`, `enable` or `uninstall` for a project with a provider
108
+ * configured through that provider's own bin. The install set is a
109
+ * distribution's own `assets/`, and the base's lacks the provider's skills,
110
+ * seams and docs — so the base installing it would prune and rewrite them
111
+ * (bug-base-update-clobbers-provider). `update --all` is not forwarded: it
112
+ * runs each project's own distribution itself.
113
+ *
114
+ * `target` is the folder the verb acts on (`--dir`, else its positional,
115
+ * else cwd). Returns the exit status, or `null` when the base installs as it
116
+ * always has: another verb, or no provider configured.
117
+ *
118
+ * WHAT WOULD FOOL THIS: a provider installed where Node's resolution cannot
119
+ * see it from the base or the project reads as not installed — and the verb is
120
+ * refused, naming the package, rather than falling back to the base set. Two
121
+ * provider configs is a project this cannot read, refused the same way.
122
+ */
123
+ const INSTALL_VERBS = ['init', 'update', 'enable', 'uninstall']
124
+
125
+ function forwardInstallCommand({ cwd, argv, target = cwd, resolve = resolvePackage, warn = () => {}, spawn = spawnSync }) {
126
+ const [cmd, ...rest] = argv
127
+ if (!INSTALL_VERBS.includes(cmd)) return null
128
+ if (cmd === 'update' && rest.includes('--all')) return null
129
+ if (rest.includes('--help') || rest.includes('-h')) return null
130
+ const dir = projectDir(target)
131
+ if (!dir) return null
132
+ const configured = PROVIDERS.filter((p) => existsSync(join(dir, p.configFile)))
133
+ if (configured.length === 0) return null
134
+ if (configured.length > 1) {
135
+ warn(
136
+ `skitterspec: more than one ticketing provider is configured here (${configured.map((p) => p.configFile).join(', ')}) — ` +
137
+ `${cmd} refused: keep one, then run it again`,
138
+ )
139
+ return 1
140
+ }
141
+ const p = configured[0]
142
+ const bin = providerBin(p, dir, resolve, p.candidates.slice(0, 1))
143
+ if (bin) {
144
+ const r = spawn(process.execPath, [bin, ...argv], { cwd, stdio: 'inherit' })
145
+ return r.status ?? 1
146
+ }
147
+ warn(
148
+ `skitterspec: ${cmd} refused — ${p.configFile} is here but @skitterbyte/skitterspec-${p.name} is not installed beside this one, ` +
149
+ `and the base set would overwrite its skills. Install it alongside @skitterbyte/skitterspec, at the latest of each.`,
150
+ )
151
+ return 1
152
+ }
153
+
93
154
  /**
94
155
  * Run a verb the base does not ship (`commands`, e.g. `spec-sync`) on the
95
156
  * provider configured in the project at or above `cwd`, through that
@@ -119,13 +180,10 @@ function forwardProviderCommand({
119
180
  const configured = PROVIDERS.filter((p) => existsSync(join(dir, p.configFile)))
120
181
  if (configured.length !== 1) return null
121
182
  const p = configured[0]
122
- const bin = join('bin', `skitterspec-${p.name}.js`)
123
- for (const [pkg] of p.candidates) {
124
- const root = resolve(pkg, [__dirname, dir])
125
- if (root && existsSync(join(root, bin))) {
126
- const r = spawn(process.execPath, [join(root, bin), ...argv], { cwd, stdio: 'inherit' })
127
- return r.status ?? 1
128
- }
183
+ const bin = providerBin(p, dir, resolve)
184
+ if (bin) {
185
+ const r = spawn(process.execPath, [bin, ...argv], { cwd, stdio: 'inherit' })
186
+ return r.status ?? 1
129
187
  }
130
188
  warn(
131
189
  `skitterspec: ${cmd} needs @skitterbyte/skitterspec-${p.name} installed beside this one — ` +
@@ -134,4 +192,4 @@ function forwardProviderCommand({
134
192
  return 1
135
193
  }
136
194
 
137
- module.exports = { registerConfiguredProvider, forwardProviderCommand, PROVIDERS }
195
+ module.exports = { registerConfiguredProvider, forwardProviderCommand, forwardInstallCommand, INSTALL_VERBS, PROVIDERS }
package/src/updateall.js CHANGED
@@ -62,16 +62,16 @@ function inPrimary(dir, git) {
62
62
  }
63
63
 
64
64
  /**
65
- * The distribution that owns a project: what its manifest recorded, else the
66
- * provider whose config is in `specs/.core/`, else the base. Inferred only for
67
- * manifests written before the field existed.
65
+ * The distribution that owns a project: the one provider whose config is in
66
+ * `specs/.core/`, else what its manifest recorded, else the base. The config
67
+ * wins because a bare base `update` used to rewrite the manifest's field to
68
+ * the base (bug-base-update-clobbers-provider), so the field alone can name
69
+ * the wrong set; two configs is unreadable, and the manifest decides.
68
70
  */
69
71
  function distributionOf(dir, manifest, exists) {
70
- if (manifest.distribution) return manifest.distribution
71
- for (const p of PROVIDERS) {
72
- if (exists(path.join(dir, 'specs', '.core', `${p}.config.json`))) return `${BASE}-${p}`
73
- }
74
- return BASE
72
+ const configured = PROVIDERS.filter((p) => exists(path.join(dir, 'specs', '.core', `${p}.config.json`)))
73
+ if (configured.length === 1) return `${BASE}-${configured[0]}`
74
+ return manifest.distribution || BASE
75
75
  }
76
76
 
77
77
  const binOf = (pkg) => pkg.replace(/^@skitterbyte\//, '')