@wipcomputer/wip-ai-devops-toolbox 1.9.27 → 1.9.29

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 CHANGED
@@ -31,6 +31,70 @@
31
31
 
32
32
 
33
33
 
34
+
35
+ ## 1.9.29 (2026-03-15)
36
+
37
+ # Release notes must be a file on disk
38
+
39
+ **Date:** 2026-03-15
40
+
41
+ ## What changed
42
+
43
+ wip-release no longer accepts the `--notes` flag. Release notes MUST come from a file on disk:
44
+
45
+ 1. `RELEASE-NOTES-v{version}.md` in repo root (auto-detected)
46
+ 2. `ai/dev-updates/YYYY-MM-DD--description.md` (auto-detected)
47
+ 3. `--notes-file=path` (explicit file path)
48
+
49
+ If no file exists, the release is blocked. The gate scaffolds a template (`RELEASE-NOTES-v{version}.md`) so the agent has something to fill in.
50
+
51
+ ## Why
52
+
53
+ The `--notes` flag was the root cause of every bad release note. Agents passed one-liners like `--notes="fix bug"` and the gate let them through. Even after we added length checks and changelog detection, agents found ways around it. The flag was an escape hatch that undermined the entire system.
54
+
55
+ The file-on-disk requirement solves three problems:
56
+ 1. **Reviewability.** The file is on the branch. It shows up in the PR diff. Parker can read and approve the release notes before merge.
57
+ 2. **Quality.** Writing a file forces the agent to think about what changed and why. A flag encourages one-liners.
58
+ 3. **History.** The file is committed to git. The release notes are part of the repo history, not a transient CLI argument.
59
+
60
+ ## What agents need to do
61
+
62
+ Before running `wip-release`:
63
+ 1. Write `RELEASE-NOTES-v{version}.md` or `ai/dev-updates/YYYY-MM-DD--description.md`
64
+ 2. Commit it on the branch
65
+ 3. The file shows up in the PR for review
66
+ 4. After merge to main, `wip-release` auto-detects it
67
+
68
+ If the agent forgets, `wip-release` blocks and scaffolds a template.
69
+
70
+ ## 1.9.28 (2026-03-15)
71
+
72
+ # Release Notes Quality Gate
73
+
74
+ **Date:** 2026-03-15
75
+
76
+ ## What changed
77
+
78
+ wip-release now blocks ALL releases (patch, minor, major) if the release notes are bad. Previously, patch releases only warned. Now they block.
79
+
80
+ The gate checks:
81
+ - Notes must be at least 50 characters
82
+ - Notes can't look like a changelog entry ("fix: ...", "add: ...", "update: ...")
83
+ - Minor/major still require a file (not --notes flag)
84
+
85
+ If the gate blocks, it tells you exactly how to fix it: write a RELEASE-NOTES file, write a dev update, or use --notes with at least 50 chars of real description.
86
+
87
+ ## Why
88
+
89
+ Release notes were consistently garbage. One-liner --notes flags like "Fix bug" or "Update docs" sailed through on patch releases. The warnings were ignored by both humans and agents. Every release page on GitHub had thin, useless notes that didn't explain what changed or why.
90
+
91
+ ## Also in this release
92
+
93
+ - wip-repo-init templates renamed from ai/ to templates/ so they ship with npm install (deploy-public.sh was stripping them)
94
+ - SKILL.md restart notice after install (hooks need session restart)
95
+ - SPEC.md and TECHNICAL.md updated with all 17 tools and LDM OS links
96
+ - Branch guard matcher fix (catches Bash + NotebookEdit)
97
+ - Forced Git Worktrees and Branch Guard sections added to SKILL.md
34
98
 
35
99
  ## 1.9.27 (2026-03-15)
36
100
 
package/SKILL.md CHANGED
@@ -5,7 +5,7 @@ license: MIT
5
5
  interface: [cli, module, mcp, skill, hook, plugin]
6
6
  metadata:
7
7
  display-name: "WIP AI DevOps Toolbox"
8
- version: "1.9.27"
8
+ version: "1.9.29"
9
9
  homepage: "https://github.com/wipcomputer/wip-ai-devops-toolbox"
10
10
  author: "Parker Todd Brooks"
11
11
  category: dev-tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ai-devops-toolbox",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "The complete AI DevOps toolkit for AI-assisted development teams.",
6
6
  "license": "MIT",
@@ -18,12 +18,29 @@
18
18
 
19
19
  set -euo pipefail
20
20
 
21
- PRIVATE_REPO="$1"
22
- PUBLIC_REPO="$2"
21
+ PRIVATE_REPO="${1:-}"
22
+ PUBLIC_REPO="${2:-}"
23
+ DRY_RUN=false
24
+
25
+ # Parse flags
26
+ for arg in "$@"; do
27
+ case "$arg" in
28
+ --dry-run) DRY_RUN=true ;;
29
+ esac
30
+ done
31
+
32
+ # Strip flags from positional args
33
+ ARGS=()
34
+ for arg in "$@"; do
35
+ [[ "$arg" == --* ]] || ARGS+=("$arg")
36
+ done
37
+ PRIVATE_REPO="${ARGS[0]:-}"
38
+ PUBLIC_REPO="${ARGS[1]:-}"
23
39
 
24
40
  if [[ -z "$PRIVATE_REPO" || -z "$PUBLIC_REPO" ]]; then
25
- echo "Usage: bash deploy-public.sh <private-repo-path> <public-github-repo>"
41
+ echo "Usage: bash deploy-public.sh <private-repo-path> <public-github-repo> [--dry-run]"
26
42
  echo "Example: bash deploy-public.sh /path/to/memory-crystal wipcomputer/memory-crystal"
43
+ echo " bash deploy-public.sh /path/to/memory-crystal wipcomputer/memory-crystal --dry-run"
27
44
  exit 1
28
45
  fi
29
46
 
@@ -123,6 +140,24 @@ fi
123
140
  BRANCH="$HARNESS_ID/deploy-$(date +%Y%m%d-%H%M%S)"
124
141
 
125
142
  git add -A
143
+
144
+ # Dry-run: show what would be deployed, then stop
145
+ if $DRY_RUN; then
146
+ echo ""
147
+ echo " Dry run: deploy-public.sh"
148
+ echo " ────────────────────────────────────"
149
+ echo " Source: $PRIVATE_REPO"
150
+ echo " Target: $PUBLIC_REPO"
151
+ echo " Commit: $COMMIT_MSG ($COMMIT_HASH)"
152
+ echo ""
153
+ echo " Files that would change:"
154
+ git diff --cached --stat 2>/dev/null || git diff --stat HEAD 2>/dev/null || echo " (new files)"
155
+ git ls-files --others --exclude-standard | head -20 | while read f; do echo " + $f"; done
156
+ echo ""
157
+ echo " Dry run complete. No changes pushed."
158
+ exit 0
159
+ fi
160
+
126
161
  git commit -m "$COMMIT_MSG (from $COMMIT_HASH)"
127
162
 
128
163
  if [[ "$EMPTY_REPO" == "true" ]]; then
@@ -159,6 +159,11 @@ prune_branches() {
159
159
  if [[ $count -le $KEEP_COUNT ]]; then
160
160
  echo " ✓ KEEP $branch"
161
161
  else
162
+ # Safety: verify branch is actually merged into main before deleting
163
+ if ! git merge-base --is-ancestor "origin/$branch" origin/main 2>/dev/null; then
164
+ echo " ! SKIP $branch (NOT merged into main despite --merged suffix)"
165
+ continue
166
+ fi
162
167
  if $DRY_RUN; then
163
168
  echo " [dry-run] DELETE $branch"
164
169
  else
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/deploy-public",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "Private-to-public repo sync. Excludes ai/ folder, creates PR, merges, cleans up branches.",
5
5
  "bin": {
6
6
  "deploy-public": "./deploy-public.sh"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/post-merge-rename",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "Post-merge branch renaming. Appends --merged-YYYY-MM-DD to preserve history.",
5
5
  "bin": {
6
6
  "post-merge-rename": "./post-merge-rename.sh"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-branch-guard",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "PreToolUse hook that blocks all writes on main branch. Forces agents to work on branches or worktrees.",
5
5
  "type": "module",
6
6
  "main": "guard.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-file-guard",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "Hook that blocks destructive edits to protected identity files. For Claude Code CLI and OpenClaw.",
6
6
  "main": "guard.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-license-guard",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "License compliance for your own repos. Ensures correct copyright, dual-license blocks, and LICENSE files.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-license-hook",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "License rug-pull detection and dependency license compliance for open source projects",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",
@@ -337,6 +337,26 @@ if (DEPLOY) {
337
337
  process.exit(1);
338
338
  }
339
339
 
340
+ // Safety: init files must be reviewed (committed or modified) before deploy.
341
+ // If all init files are untracked (just generated, never reviewed), block.
342
+ try {
343
+ const { execSync } = await import('node:child_process');
344
+ const initFiles = readdirSync(repoPath).filter(f => f.startsWith('README-init-'));
345
+ const allUntracked = initFiles.every(f => {
346
+ try {
347
+ const status = execSync(`git status --porcelain "${f}"`, { cwd: repoPath, encoding: 'utf8' }).trim();
348
+ return status.startsWith('??');
349
+ } catch { return false; }
350
+ });
351
+ if (allUntracked && initFiles.length > 0) {
352
+ fail('Init files have not been reviewed. They are all untracked (just generated).');
353
+ console.log(' Review the README-init-*.md files, edit as needed, then git add them before deploying.');
354
+ console.log(' Or commit them first so there is a review trail.');
355
+ process.exit(1);
356
+ }
357
+ } catch {}
358
+
359
+
340
360
  const date = new Date().toISOString().slice(0, 10);
341
361
  const aiTrash = join(repoPath, 'ai', '_trash');
342
362
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-readme-format",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "Reformat any repo's README to follow the WIP Computer standard. Agent-first, human-readable.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -119,12 +119,12 @@ Flags:
119
119
  --skip-stale-check Skip stale remote branch check
120
120
  --skip-worktree-check Skip worktree guard (allow release from worktree)
121
121
 
122
- Release notes (highest priority wins, files ALWAYS beat --notes flag):
123
- 1. --notes-file=path Explicit file path (always wins)
124
- 2. RELEASE-NOTES-v{ver}.md In repo root (wins over --notes)
125
- 3. ai/dev-updates/YYYY-MM-DD* Today's dev update (wins over --notes if longer)
126
- 4. --notes="text" Fallback only (use for repos without release notes files)
127
- Written notes on disk always take priority over a CLI one-liner.
122
+ Release notes (REQUIRED, must be a file on disk):
123
+ 1. --notes-file=path Explicit file path
124
+ 2. RELEASE-NOTES-v{ver}.md In repo root (auto-detected)
125
+ 3. ai/dev-updates/YYYY-MM-DD* Today's dev update (auto-detected)
126
+ The --notes flag is NOT accepted. Write a file. Commit it on your branch.
127
+ The file shows up in the PR diff so it can be reviewed before merge.
128
128
 
129
129
  Skill publish to website:
130
130
  Add .publish-skill.json to repo root: { "name": "my-tool" }
@@ -227,23 +227,27 @@ function checkReleaseNotes(notes, notesSource, level) {
227
227
  const issues = [];
228
228
 
229
229
  if (!notes) {
230
- issues.push('No release notes provided. Write a RELEASE-NOTES-v{version}.md or ai/dev-updates/ file.');
230
+ issues.push('No release notes found. A file is REQUIRED.');
231
+ issues.push('Write RELEASE-NOTES-v{version}.md or ai/dev-updates/YYYY-MM-DD--description.md');
232
+ issues.push('Commit it on your branch so it is reviewable in the PR.');
231
233
  return { ok: false, issues, block: true };
232
234
  }
233
235
 
234
- // Notes too short. All levels blocked.
235
- if (notes.length < 50) {
236
- issues.push('Release notes are too short (under 50 chars). Explain what changed and why.');
237
- issues.push('Write a RELEASE-NOTES-v{version}.md or ai/dev-updates/ file.');
236
+ // HARD RULE: release notes must come from a file on disk.
237
+ // --notes flag is NOT accepted. Write a file. Commit it. Review it.
238
+ if (notesSource === 'flag') {
239
+ issues.push('Release notes must come from a file, not the --notes flag.');
240
+ issues.push('Write RELEASE-NOTES-v{version}.md or ai/dev-updates/YYYY-MM-DD--description.md');
241
+ issues.push('Commit it on your branch so it is reviewable in the PR before merge.');
242
+ return { ok: false, issues, block: true };
238
243
  }
239
244
 
240
- // Bare --notes flag for minor/major is never acceptable.
241
- if (notesSource === 'flag' && (level === 'minor' || level === 'major')) {
242
- issues.push('Minor/major releases require a file, not --notes flag.');
243
- issues.push('Write RELEASE-NOTES-v{version}.md (dashes not dots) and commit it.');
245
+ // Notes too short.
246
+ if (notes.length < 50) {
247
+ issues.push('Release notes are too short (under 50 chars). Explain what changed and why.');
244
248
  }
245
249
 
246
- // Check for changelog-style one-liners regardless of source
250
+ // Check for changelog-style one-liners
247
251
  const looksLikeChangelog = /^(fix|add|update|remove|bump|chore|refactor|docs?)[\s:]/i.test(notes);
248
252
  if (looksLikeChangelog && notes.length < 100) {
249
253
  issues.push('Notes look like a changelog entry, not a narrative. Explain the impact.');
@@ -252,6 +256,44 @@ function checkReleaseNotes(notes, notesSource, level) {
252
256
  return { ok: issues.length === 0, issues, block: issues.length > 0 };
253
257
  }
254
258
 
259
+ /**
260
+ * Scaffold a RELEASE-NOTES-v{version}.md template if one doesn't exist.
261
+ * Called when the release notes gate blocks. Gives the agent a file to fill in.
262
+ */
263
+ export function scaffoldReleaseNotes(repoPath, version) {
264
+ const dashed = version.replace(/\./g, '-');
265
+ const notesPath = join(repoPath, `RELEASE-NOTES-v${dashed}.md`);
266
+ if (existsSync(notesPath)) return notesPath;
267
+
268
+ const pkg = JSON.parse(readFileSync(join(repoPath, 'package.json'), 'utf8'));
269
+ const name = pkg.name?.replace(/^@[^/]+\//, '') || basename(repoPath);
270
+
271
+ const template = `# Release Notes: ${name} v${version}
272
+
273
+ **One-line summary of what this release does**
274
+
275
+ ## What changed
276
+
277
+ Describe the changes. Not a commit list. Explain:
278
+ - What was built or fixed
279
+ - Why it matters
280
+ - What the user should know
281
+
282
+ ## Why
283
+
284
+ What problem does this solve? What was broken or missing?
285
+
286
+ ## How to verify
287
+
288
+ \`\`\`bash
289
+ # Commands to test the changes
290
+ \`\`\`
291
+ `;
292
+
293
+ writeFileSync(notesPath, template);
294
+ return notesPath;
295
+ }
296
+
255
297
  /**
256
298
  * Check if a file was modified in commits since the last git tag.
257
299
  */
@@ -783,11 +825,10 @@ export async function release({ repoPath, level, notes, notesSource, dryRun, noP
783
825
  console.log(` ✗ Release notes blocked:`);
784
826
  for (const issue of notesCheck.issues) console.log(` - ${issue}`);
785
827
  console.log('');
786
- console.log(' Release notes must explain what changed and why.');
787
- console.log(' Options:');
788
- console.log(' 1. Write RELEASE-NOTES-v{version}.md (dashes not dots) and commit it');
789
- console.log(' 2. Write ai/dev-updates/YYYY-MM-DD--description.md and commit it');
790
- console.log(' 3. Use --notes="at least 50 chars explaining the change and its impact"');
828
+ // Scaffold a template so the agent has something to fill in
829
+ const templatePath = scaffoldReleaseNotes(repoPath, newVersion);
830
+ console.log(` Scaffolded template: ${basename(templatePath)}`);
831
+ console.log(' Fill it in, commit, then run wip-release again.');
791
832
  console.log('');
792
833
  return { currentVersion, newVersion, dryRun: false, failed: true };
793
834
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-release",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "One-command release pipeline. Bumps version, updates changelog + SKILL.md, publishes to npm + GitHub.",
6
6
  "main": "core.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-repo-init",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "Scaffold the standard ai/ directory structure in any repo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-repo-permissions-hook",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "Repo visibility guard. Blocks repos from going public without a -private counterpart.",
6
6
  "main": "core.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-repos",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "Repo manifest reconciler. Single source of truth for repo organization. Like prettier for folder structure.",
6
6
  "main": "core.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/universal-installer",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "type": "module",
5
5
  "description": "The Universal Interface specification for agent-native software. Teaches your AI how to build repos with every interface: CLI, Module, MCP Server, OpenClaw Plugin, Skill, Claude Code Hook.",
6
6
  "main": "detect.mjs",