godpowers 2.4.2 → 2.4.3

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +9 -6
  3. package/RELEASE.md +33 -33
  4. package/agents/god-orchestrator.md +31 -1255
  5. package/bin/install.js +22 -19
  6. package/lib/command-families.js +10 -2
  7. package/package.json +3 -2
  8. package/references/orchestration/GOD-NEXT-RUNBOOK.md +32 -0
  9. package/references/orchestration/GOD-ORCHESTRATOR-RUNBOOK.md +1259 -0
  10. package/references/orchestration/README.md +6 -0
  11. package/references/shared/DASHBOARD-CONTRACT.md +93 -0
  12. package/references/shared/LOCKING.md +15 -0
  13. package/references/shared/README.md +2 -0
  14. package/routing/god-roadmap-check.yaml +1 -1
  15. package/skills/god-arch.md +1 -12
  16. package/skills/god-build.md +1 -12
  17. package/skills/god-deploy.md +1 -12
  18. package/skills/god-design.md +1 -12
  19. package/skills/god-feature.md +1 -12
  20. package/skills/god-harden.md +1 -12
  21. package/skills/god-hotfix.md +1 -12
  22. package/skills/god-launch.md +1 -12
  23. package/skills/god-link.md +1 -12
  24. package/skills/god-migrate.md +1 -3
  25. package/skills/god-next.md +34 -410
  26. package/skills/god-observe.md +1 -12
  27. package/skills/god-prd.md +1 -12
  28. package/skills/god-redo.md +1 -12
  29. package/skills/god-refactor.md +1 -12
  30. package/skills/god-repair.md +1 -12
  31. package/skills/god-repo.md +1 -12
  32. package/skills/god-restore.md +1 -12
  33. package/skills/god-roadmap-check.md +5 -0
  34. package/skills/god-roadmap.md +1 -12
  35. package/skills/god-rollback.md +1 -12
  36. package/skills/god-scan.md +1 -12
  37. package/skills/god-skip.md +1 -12
  38. package/skills/god-stack.md +1 -12
  39. package/skills/god-status.md +27 -204
  40. package/skills/god-story-build.md +1 -12
  41. package/skills/god-story-close.md +1 -12
  42. package/skills/god-story.md +1 -12
  43. package/skills/god-sync.md +1 -12
  44. package/skills/god-undo.md +1 -12
  45. package/skills/god-update-deps.md +1 -12
  46. package/skills/god-upgrade.md +1 -12
package/bin/install.js CHANGED
@@ -187,25 +187,20 @@ function runExtensionScaffoldCommand(opts) {
187
187
  }
188
188
  }
189
189
 
190
+ const COMMAND_RUNNERS = {
191
+ status: runDashboardCommand,
192
+ next: runDashboardCommand,
193
+ 'quick-proof': runQuickProofCommand,
194
+ 'automation-status': runAutomationCommand,
195
+ 'automation-setup': runAutomationCommand,
196
+ dogfood: runDogfoodCommand,
197
+ 'extension-scaffold': runExtensionScaffoldCommand
198
+ };
199
+
190
200
  function runCommand(opts) {
191
- if (opts.command === 'status' || opts.command === 'next') {
192
- runDashboardCommand(opts);
193
- return true;
194
- }
195
- if (opts.command === 'quick-proof') {
196
- runQuickProofCommand(opts);
197
- return true;
198
- }
199
- if (opts.command === 'automation-status' || opts.command === 'automation-setup') {
200
- runAutomationCommand(opts);
201
- return true;
202
- }
203
- if (opts.command === 'dogfood') {
204
- runDogfoodCommand(opts);
205
- return true;
206
- }
207
- if (opts.command === 'extension-scaffold') {
208
- runExtensionScaffoldCommand(opts);
201
+ const runner = COMMAND_RUNNERS[opts.command];
202
+ if (runner) {
203
+ runner(opts);
209
204
  return true;
210
205
  }
211
206
  return false;
@@ -299,11 +294,19 @@ function main() {
299
294
  }
300
295
  }
301
296
 
302
- main();
297
+ if (require.main === module) {
298
+ main();
299
+ }
303
300
 
304
301
  module.exports = {
305
302
  showHelp,
303
+ COMMAND_RUNNERS,
306
304
  runCommand,
305
+ runAutomationCommand,
306
+ runDashboardCommand,
307
+ runDogfoodCommand,
308
+ runQuickProofCommand,
309
+ runExtensionScaffoldCommand,
307
310
  applyDefaultRuntimeSelection,
308
311
  runInstall,
309
312
  runUninstall,
@@ -119,7 +119,6 @@ const COMMAND_FAMILIES = [
119
119
  '/god-upgrade',
120
120
  '/god-context',
121
121
  '/god-context-scan',
122
- '/god-roadmap-check',
123
122
  '/god-roadmap-update'
124
123
  ]
125
124
  },
@@ -198,6 +197,15 @@ const COMMAND_FAMILIES = [
198
197
  '/god-help',
199
198
  '/god-version'
200
199
  ]
200
+ },
201
+ {
202
+ id: 'compatibility',
203
+ label: 'Compatibility',
204
+ purpose: 'Deprecated full-profile commands kept for backward compatibility.',
205
+ visibility: 'hidden',
206
+ commands: [
207
+ '/god-roadmap-check'
208
+ ]
201
209
  }
202
210
  ];
203
211
 
@@ -279,7 +287,7 @@ function familyForCommand(command) {
279
287
  return COMMAND_FAMILIES.find((family) => family.commands.includes(command)) || null;
280
288
  }
281
289
 
282
- function renderFamilyCards(families = COMMAND_FAMILIES) {
290
+ function renderFamilyCards(families = COMMAND_FAMILIES.filter((family) => family.visibility !== 'hidden')) {
283
291
  return families.map((family) => (
284
292
  `${family.label}: ${family.purpose} (${family.commands.join(', ')})`
285
293
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godpowers",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "AI-powered development system: 112 slash commands and 40 specialist agents that take a project from raw idea to hardened production. Runs inside Claude Code, Codex, Cursor, Windsurf, Gemini, and 10+ other AI coding tools.",
5
5
  "bin": {
6
6
  "godpowers": "./bin/install.js"
@@ -23,9 +23,10 @@
23
23
  "test:diff": "node scripts/test-artifact-diff.js",
24
24
  "test:e2e": "node tests/integration/full-arc.test.js",
25
25
  "coverage": "c8 --reporter=text --reporter=lcov node scripts/run-tests.js",
26
+ "coverage:lib": "c8 --include=lib/**/*.js --check-coverage --lines 90 --reporter=text node scripts/run-tests.js",
26
27
  "test:audit": "npm audit --omit=dev && git diff --check && npm run test:surface",
27
28
  "pack:check": "node scripts/check-package-contents.js",
28
- "release:check": "npm test && npm run test:audit && npm run pack:check",
29
+ "release:check": "npm run coverage:lib && npm run test:audit && npm run pack:check",
29
30
  "lint": "node scripts/static-check.js"
30
31
  },
31
32
  "keywords": [
@@ -0,0 +1,32 @@
1
+ # God Next Runbook
2
+
3
+ This reference owns the detailed process notes for `/god-next`. The skill file stays a concise dispatch contract.
4
+
5
+ ## Invocation modes
6
+
7
+ 1. Post-completion routing reads `routing/<just-completed>.yaml`, applies success-path and conditional-next rules, runs any configured standards gate, and announces the next command.
8
+ 2. Pre-flight routing reads `routing/<target>.yaml`, evaluates prerequisites, and offers auto-completable prerequisites before the target command runs.
9
+ 3. Standalone routing reads disk state, uses `lib/router.js` for structural next steps, then uses recipes when the project is already in steady state.
10
+ 4. Intent-based routing uses `lib/recipes.js` for fuzzy text, ranked recipes, and state-aware command sequences.
11
+
12
+ ## Data sources
13
+
14
+ Use runtime routing YAML, recipes, `lib/command-families.js`, `lib/router.js`, `lib/dashboard.js`, state.json, PROGRESS.md, CHECKPOINT.md, and completed artifacts.
15
+
16
+ Read `.godpowers/prep/INITIAL-FINDINGS.md` and `.godpowers/prep/IMPORTED-CONTEXT.md` when present. Treat them as preparation context only.
17
+
18
+ ## Route detail
19
+
20
+ When the suggestion is based on state.json, show a three-line path ahead: current state, next command, and the following gate if known.
21
+
22
+ When prerequisites are missing, name the missing prerequisite, the auto-completable command when available, and the exact decision needed from the user.
23
+
24
+ When a standards gate fails, show the failures, suggest `/god-redo` with feedback or `/god-skip` with a reason, and do not auto-progress.
25
+
26
+ ## Edge cases
27
+
28
+ State drift routes to `/god-repair`. Safe sync blockers route to `/god-reconcile Release Truth And Safe Sync` before deploy, observe, harden, launch, broad migration, or resume work.
29
+
30
+ Unresolved Critical harden findings block launch in default mode and under `--yolo`.
31
+
32
+ In steady state, use the work-family ladders before raw route order so feature, hotfix, refactor, docs, dependency, audit, hygiene, and preflight intents resolve to the narrowest useful command.