@wipcomputer/wip-ai-devops-toolbox 1.9.33 → 1.9.35

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,40 @@
31
31
 
32
32
 
33
33
 
34
+
35
+ ## 1.9.35 (2026-03-16)
36
+
37
+ # GitHub Packages publish from public repo
38
+
39
+ **Date:** 2026-03-16
40
+ **Closes:** #193
41
+
42
+ ## What changed
43
+
44
+ `deploy-public.sh` now publishes to GitHub Packages from the public repo clone after the npm publish step. Previously, GitHub Packages were only published from the private repo during `wip-release`, so they showed on the private repo's Packages tab. Users couldn't see them.
45
+
46
+ Now packages show on the public repo's Packages tab where users expect to find them. Uses `gh auth token` for authentication (already available from the gh CLI).
47
+
48
+ ## Why
49
+
50
+ The Packages tab on public repos was empty. Users visiting wipcomputer/wip-ldm-os or wipcomputer/wip-ai-devops-toolbox saw no packages even though they were published. The packages existed but were linked to the private repo.
51
+
52
+ ## 1.9.34 (2026-03-16)
53
+
54
+ # GitHub Packages publish from public repo
55
+
56
+ **Date:** 2026-03-16
57
+ **Closes:** #193
58
+
59
+ ## What changed
60
+
61
+ `deploy-public.sh` now publishes to GitHub Packages from the public repo clone after the npm publish step. Previously, GitHub Packages were only published from the private repo during `wip-release`, so they showed on the private repo's Packages tab. Users couldn't see them.
62
+
63
+ Now packages show on the public repo's Packages tab where users expect to find them. Uses `gh auth token` for authentication (already available from the gh CLI).
64
+
65
+ ## Why
66
+
67
+ The Packages tab on public repos was empty. Users visiting wipcomputer/wip-ldm-os or wipcomputer/wip-ai-devops-toolbox saw no packages even though they were published. The packages existed but were linked to the private repo.
34
68
 
35
69
  ## 1.9.33 (2026-03-15)
36
70
 
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.33"
8
+ version: "1.9.35"
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.33",
3
+ "version": "1.9.35",
4
4
  "type": "module",
5
5
  "description": "The complete AI DevOps toolkit for AI-assisted development teams.",
6
6
  "license": "MIT",
@@ -158,7 +158,14 @@ if $DRY_RUN; then
158
158
  exit 0
159
159
  fi
160
160
 
161
- git commit -m "$COMMIT_MSG (from $COMMIT_HASH)"
161
+ git commit -m "$(cat <<COMMITEOF
162
+ $COMMIT_MSG (from $COMMIT_HASH)
163
+
164
+ Co-Authored-By: Parker Todd Brooks <parkertoddbrooks@users.noreply.github.com>
165
+ Co-Authored-By: Lēsa <lesaai@icloud.com>
166
+ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
167
+ COMMITEOF
168
+ )"
162
169
 
163
170
  if [[ "$EMPTY_REPO" == "true" ]]; then
164
171
  # Empty repo: push directly to main (no base branch to PR against)
@@ -285,7 +292,40 @@ if [[ -n "${VERSION:-}" ]]; then
285
292
  done
286
293
  fi
287
294
 
288
- cd - > /dev/null
295
+ # Publish to GitHub Packages from public repo (#193)
296
+ echo "Publishing to GitHub Packages from public repo..."
297
+ GH_TOKEN=$(gh auth token 2>/dev/null || echo "")
298
+ if [[ -n "$GH_TOKEN" ]]; then
299
+ cd "$NPM_TMPDIR/public"
300
+
301
+ # Root package
302
+ if [[ "$IS_PRIVATE" != "true" ]]; then
303
+ echo "//npm.pkg.github.com/:_authToken=${GH_TOKEN}" > .npmrc
304
+ npm publish --registry https://npm.pkg.github.com/ --access public 2>/dev/null && echo " ✓ Published root to GitHub Packages" || echo " ✗ Root GitHub Packages publish failed (non-fatal)"
305
+ rm -f .npmrc
306
+ fi
307
+
308
+ # Sub-tools
309
+ if [[ -d "tools" ]]; then
310
+ for TOOL_DIR in tools/*/; do
311
+ if [[ -f "${TOOL_DIR}package.json" ]]; then
312
+ TOOL_PRIVATE=$(node -p "require('./${TOOL_DIR}package.json').private || false" 2>/dev/null)
313
+ if [[ "$TOOL_PRIVATE" != "true" ]]; then
314
+ TOOL_NAME=$(node -p "require('./${TOOL_DIR}package.json').name" 2>/dev/null)
315
+ echo "//npm.pkg.github.com/:_authToken=${GH_TOKEN}" > "${TOOL_DIR}.npmrc"
316
+ (cd "$TOOL_DIR" && npm publish --registry https://npm.pkg.github.com/ --access public 2>/dev/null) && echo " ✓ Published $TOOL_NAME to GitHub Packages" || echo " ✗ GitHub Packages failed for $TOOL_NAME (non-fatal)"
317
+ rm -f "${TOOL_DIR}.npmrc"
318
+ fi
319
+ fi
320
+ done
321
+ fi
322
+
323
+ cd - > /dev/null
324
+ else
325
+ echo " ! gh auth token not found. Skipping GitHub Packages publish."
326
+ fi
327
+
328
+ cd - > /dev/null 2>/dev/null || true
289
329
  else
290
330
  echo " ! npm Token not found in 1Password. Skipping npm publish."
291
331
  fi
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/deploy-public",
3
- "version": "1.9.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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"
@@ -205,10 +205,30 @@ async function main() {
205
205
  repoDir = process.env.CWD || process.cwd();
206
206
  }
207
207
 
208
- // Check if the target repo is on main
208
+ // Check if the target repo is on main AND if we're in a worktree
209
209
  const branch = getCurrentBranch(repoDir);
210
- if (!branch || (branch !== 'main' && branch !== 'master')) {
211
- // Not on main, allow everything
210
+ const worktree = isInWorktree(repoDir);
211
+
212
+ if (!branch) {
213
+ // Not in a git repo, allow
214
+ process.exit(0);
215
+ }
216
+
217
+ if (branch !== 'main' && branch !== 'master' && worktree) {
218
+ // On a branch AND in a worktree. Correct workflow. Allow.
219
+ process.exit(0);
220
+ }
221
+
222
+ if (branch !== 'main' && branch !== 'master' && !worktree) {
223
+ // On a branch but NOT in a worktree. Block writes.
224
+ const isWriteOp = WRITE_TOOLS.has(toolName) ||
225
+ (toolName === BASH_TOOL && command &&
226
+ BLOCKED_BASH_PATTERNS.some(p => p.test(command)) &&
227
+ !ALLOWED_BASH_PATTERNS.some(p => p.test(command)));
228
+ if (isWriteOp) {
229
+ deny(`BLOCKED: On branch "${branch}" but not in a worktree. Use: git worktree add ../my-worktree -b ${branch}`);
230
+ process.exit(0);
231
+ }
212
232
  process.exit(0);
213
233
  }
214
234
 
@@ -216,7 +236,7 @@ async function main() {
216
236
 
217
237
  // Block Write/Edit tools entirely on main
218
238
  if (WRITE_TOOLS.has(toolName)) {
219
- deny(`BLOCKED: Cannot ${toolName} while on main branch. Create a branch first: git checkout -b cc-mini/your-feature. Or use a worktree.`);
239
+ deny(`BLOCKED: Cannot ${toolName} while on main branch. Use a worktree: git worktree add ../my-worktree -b cc-mini/your-feature`);
220
240
  process.exit(0);
221
241
  }
222
242
 
@@ -238,7 +258,7 @@ async function main() {
238
258
  if (ap.test(command)) { isAllowed = true; break; }
239
259
  }
240
260
  if (!isAllowed) {
241
- deny(`BLOCKED: Cannot run "${command.substring(0, 60)}..." on main branch. Create a branch first.`);
261
+ deny(`BLOCKED: Cannot run "${command.substring(0, 60)}..." on main branch. Use a worktree: git worktree add ../my-worktree -b cc-mini/your-feature`);
242
262
  process.exit(0);
243
263
  }
244
264
  }
@@ -253,7 +273,7 @@ async function main() {
253
273
  if (ap.test(command)) { isAllowed = true; break; }
254
274
  }
255
275
  if (!isAllowed) {
256
- deny(`BLOCKED: Cannot run file-modifying command on main branch. Create a branch first.`);
276
+ deny(`BLOCKED: Cannot run file-modifying command on main branch. Use a worktree: git worktree add ../my-worktree -b cc-mini/your-feature`);
257
277
  process.exit(0);
258
278
  }
259
279
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-branch-guard",
3
- "version": "1.9.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-readme-format",
3
- "version": "1.9.33",
3
+ "version": "1.9.35",
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": {
@@ -941,7 +941,7 @@ export async function release({ repoPath, level, notes, notesSource, dryRun, noP
941
941
  console.log(` [dry run] Would commit and tag v${newVersion}`);
942
942
  if (!noPublish) {
943
943
  console.log(` [dry run] Would publish to npm (@wipcomputer scope)`);
944
- console.log(` [dry run] Would publish to GitHub Packages`);
944
+ console.log(` [dry run] GitHub Packages: handled by deploy-public.sh`);
945
945
  console.log(` [dry run] Would create GitHub release v${newVersion}`);
946
946
  if (hasSkill) console.log(` [dry run] Would publish to ClawHub`);
947
947
  // Skill-to-website dry run (auto-detects SKILL.md, no config needed)
@@ -1043,15 +1043,11 @@ export async function release({ repoPath, level, notes, notesSource, dryRun, noP
1043
1043
  console.log(` ✗ npm publish failed: ${e.message}`);
1044
1044
  }
1045
1045
 
1046
- // 7. GitHub Packages
1047
- try {
1048
- publishGitHubPackages(repoPath);
1049
- distResults.push({ target: 'GitHub Packages', status: 'ok', detail: `${newVersion}` });
1050
- console.log(` Published to GitHub Packages`);
1051
- } catch (e) {
1052
- distResults.push({ target: 'GitHub Packages', status: 'failed', detail: e.message });
1053
- console.log(` ✗ GitHub Packages publish failed: ${e.message}`);
1054
- }
1046
+ // 7. GitHub Packages ... SKIPPED from private repos.
1047
+ // deploy-public.sh publishes to GitHub Packages from the public repo clone.
1048
+ // Publishing from private ties the package to the private repo, making it
1049
+ // invisible on the public repo's Packages tab. (#53)
1050
+ console.log(` - GitHub Packages: handled by deploy-public.sh (from public repo)`);
1055
1051
 
1056
1052
  // 8. GitHub release
1057
1053
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-release",
3
- "version": "1.9.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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.33",
3
+ "version": "1.9.35",
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",