Skip to content

Move the Herdr scripts into poteto-mode/scripts/herdr (0.9.77) - #21

Merged
TiewKH merged 1 commit into
mainfrom
refactor/herdr-scripts-folder
Oct 9, 2026
Merged

TiewKH merged 1 commit into
mainfrom
refactor/herdr-scripts-folder

Conversation

@TiewKH

@TiewKH TiewKH commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

This PR moves the fork's Herdr scripts out of the flat poteto-mode/scripts/ directory and into a herdr/ folder. That matches upstream's layout for orch/ and watch-pr/, where a tool's folder carries its name and the files inside drop it.

Before After
scripts/herdr-dispatch.ts scripts/herdr/dispatch.ts
scripts/herdr-config.ts scripts/herdr/config.ts
scripts/configure-herdr.ts scripts/herdr/configure.ts
scripts/herdr-*.test.ts scripts/herdr/*.test.ts
  • The scripts keep the shared bootstrap.ts, package.json, and tsconfig.json. Only the relative imports changed, so behavior is the same.
  • herdr-tools.md, setup-pstack, the Agent gate hook, HERDR.md, README.md, CONTEXT.md, NOTICE.md, docs/reference.md, the Herdr tests, and the e2e script all name the new paths. CI's bun test orch watch-pr herdr filter still matches.
  • The runtime contract test now guards skills and playbooks against herdr/dispatch, where it used to check for herdr-dispatch.
  • The version moves to 0.9.77 and has a CHANGES entry. Upstream never touches these files, so the next sync is unaffected.

Test plan

  • bun tools/generate.mjs --check
  • node tests/herdr-runtime.test.mjs
  • bun run typecheck and Prettier in poteto-mode/scripts
  • bun test orch watch-pr herdr: all Herdr tests pass. One orch test fails ("parses Graphite output that carries colour codes"). It also fails on main on this machine.
  • bun test tests/: one failure, the 5 s timeout in log.test.mjs "40 concurrent writers". It also fails on main on this machine.
  • CI, including the real Herdr dispatch job

🤖 Generated with Claude Code

Follow upstream's orch/ and watch-pr/ layout: herdr-dispatch.ts,
herdr-config.ts, and configure-herdr.ts become herdr/dispatch.ts,
herdr/config.ts, and herdr/configure.ts, with their tests beside them.
Every skill, hook, doc, test, and CI path names the new location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TiewKH
TiewKH merged commit 9f0310e into main Oct 9, 2026
15 checks passed
@TiewKH
TiewKH deleted the refactor/herdr-scripts-folder branch October 9, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant