@jagreehal/shepherd 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@jagreehal/shepherd",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Agent skills that drive a PR to merge-ready: a review swarm, thread triage, CI repair, and a loop that hands the result to stamp.",
5
5
  "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "github:jagreehal/shepherd"
9
- },
6
+ "repository": "github:jagreehal/shepherd",
10
7
  "type": "module",
11
8
  "bin": {
12
9
  "shepherd": "./src/cli.ts"
@@ -28,7 +25,17 @@
28
25
  "publishConfig": {
29
26
  "access": "public"
30
27
  },
28
+ "scripts": {
29
+ "test": "bun test",
30
+ "typecheck": "tsc --noEmit",
31
+ "check": "bun run lint && bun run typecheck && bun test",
32
+ "lint": "oxlint src",
33
+ "changeset": "changeset",
34
+ "version-packages": "changeset version",
35
+ "release": "changeset publish"
36
+ },
31
37
  "devDependencies": {
38
+ "@changesets/cli": "^3.0.3",
32
39
  "@oxlint/plugins": "1.78.0",
33
40
  "@types/bun": "^1.2.0",
34
41
  "oxlint": "1.78.0",
@@ -37,11 +44,5 @@
37
44
  "dependencies": {
38
45
  "yaml": "^2.6.0",
39
46
  "zod": "^4.0.0"
40
- },
41
- "scripts": {
42
- "test": "bun test",
43
- "typecheck": "tsc --noEmit",
44
- "check": "bun run lint && bun run typecheck && bun test",
45
- "lint": "oxlint src"
46
47
  }
47
- }
48
+ }
@@ -45,6 +45,9 @@ machine and stops there:
45
45
  commit status, no stamp. Steps 3 to 5 do not run.
46
46
  - **No commits.** Fixes land in the working tree; the developer reviews and
47
47
  commits them. If the tree has a merge or rebase in progress, stop and say so.
48
+ - **The fix mode decides the steps.** Under `fixes.mode: suggest`, run one
49
+ round of swarm only, with no triage and no simplify, and report `reviewed`
50
+ with the findings. Under `local` or `push`, run the loop below.
48
51
 
49
52
  One local iteration:
50
53
 
@@ -107,8 +107,10 @@ It answers `accept`, `reject`, `reject: design`, or `needs-more-evidence`, with
107
107
  a reason. `reject: design` defers the thread to the user with both options
108
108
  stated.
109
109
 
110
- - **accept:** re-dispatch the original runner with permission to apply exactly
111
- that change; the usual checks must still pass.
110
+ - **accept:** start a new foreground runner whose brief carries exactly that
111
+ change and the permission to apply it; the usual checks must still pass.
112
+ Resuming the original runner with a message runs it in the background, so
113
+ start a new one.
112
114
  - **reject:** leave the code alone and note it in the summary.
113
115
  - **needs-more-evidence:** gather it, or climb one more rung.
114
116
 
package/src/cli.ts CHANGED
File without changes
package/src/config.ts CHANGED
@@ -26,7 +26,7 @@ export type Lens = z.infer<typeof LensSchema>;
26
26
  // `provider/model` on OpenCode (`opencode-go/deepseek-v4-flash`). shepherd never maps one to another.
27
27
  export const ModelId = z.string().min(1);
28
28
 
29
- /** The steps a recipe can run: shepherd's own runners and stamp's verdict, nothing else yet. */
29
+ /** The steps a recipe can run: shepherd's own runners and stamp's verdict. */
30
30
  export const STEPS = ["swarm", "triage", "simplify", "ci-repair", "stamp", "incident"] as const;
31
31
 
32
32
  type Step = (typeof STEPS)[number];