shipwright-cli 1.10.0 → 2.0.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.
Files changed (108) hide show
  1. package/README.md +114 -36
  2. package/completions/_shipwright +212 -32
  3. package/completions/shipwright.bash +97 -25
  4. package/docs/strategy/01-market-research.md +619 -0
  5. package/docs/strategy/02-mission-and-brand.md +587 -0
  6. package/docs/strategy/03-gtm-and-roadmap.md +759 -0
  7. package/docs/strategy/QUICK-START.txt +289 -0
  8. package/docs/strategy/README.md +172 -0
  9. package/package.json +4 -2
  10. package/scripts/sw +208 -1
  11. package/scripts/sw-activity.sh +500 -0
  12. package/scripts/sw-adaptive.sh +925 -0
  13. package/scripts/sw-adversarial.sh +1 -1
  14. package/scripts/sw-architecture-enforcer.sh +1 -1
  15. package/scripts/sw-auth.sh +613 -0
  16. package/scripts/sw-autonomous.sh +664 -0
  17. package/scripts/sw-changelog.sh +704 -0
  18. package/scripts/sw-checkpoint.sh +1 -1
  19. package/scripts/sw-ci.sh +602 -0
  20. package/scripts/sw-cleanup.sh +1 -1
  21. package/scripts/sw-code-review.sh +637 -0
  22. package/scripts/sw-connect.sh +1 -1
  23. package/scripts/sw-context.sh +605 -0
  24. package/scripts/sw-cost.sh +1 -1
  25. package/scripts/sw-daemon.sh +432 -130
  26. package/scripts/sw-dashboard.sh +1 -1
  27. package/scripts/sw-db.sh +540 -0
  28. package/scripts/sw-decompose.sh +539 -0
  29. package/scripts/sw-deps.sh +551 -0
  30. package/scripts/sw-developer-simulation.sh +1 -1
  31. package/scripts/sw-discovery.sh +412 -0
  32. package/scripts/sw-docs-agent.sh +539 -0
  33. package/scripts/sw-docs.sh +1 -1
  34. package/scripts/sw-doctor.sh +59 -1
  35. package/scripts/sw-dora.sh +615 -0
  36. package/scripts/sw-durable.sh +710 -0
  37. package/scripts/sw-e2e-orchestrator.sh +535 -0
  38. package/scripts/sw-eventbus.sh +393 -0
  39. package/scripts/sw-feedback.sh +471 -0
  40. package/scripts/sw-fix.sh +1 -1
  41. package/scripts/sw-fleet-discover.sh +567 -0
  42. package/scripts/sw-fleet-viz.sh +404 -0
  43. package/scripts/sw-fleet.sh +8 -1
  44. package/scripts/sw-github-app.sh +596 -0
  45. package/scripts/sw-github-checks.sh +1 -1
  46. package/scripts/sw-github-deploy.sh +1 -1
  47. package/scripts/sw-github-graphql.sh +1 -1
  48. package/scripts/sw-guild.sh +569 -0
  49. package/scripts/sw-heartbeat.sh +1 -1
  50. package/scripts/sw-hygiene.sh +559 -0
  51. package/scripts/sw-incident.sh +617 -0
  52. package/scripts/sw-init.sh +88 -1
  53. package/scripts/sw-instrument.sh +699 -0
  54. package/scripts/sw-intelligence.sh +1 -1
  55. package/scripts/sw-jira.sh +1 -1
  56. package/scripts/sw-launchd.sh +363 -28
  57. package/scripts/sw-linear.sh +1 -1
  58. package/scripts/sw-logs.sh +1 -1
  59. package/scripts/sw-loop.sh +64 -3
  60. package/scripts/sw-memory.sh +1 -1
  61. package/scripts/sw-mission-control.sh +487 -0
  62. package/scripts/sw-model-router.sh +545 -0
  63. package/scripts/sw-otel.sh +596 -0
  64. package/scripts/sw-oversight.sh +689 -0
  65. package/scripts/sw-pipeline-composer.sh +1 -1
  66. package/scripts/sw-pipeline-vitals.sh +1 -1
  67. package/scripts/sw-pipeline.sh +687 -24
  68. package/scripts/sw-pm.sh +693 -0
  69. package/scripts/sw-pr-lifecycle.sh +522 -0
  70. package/scripts/sw-predictive.sh +1 -1
  71. package/scripts/sw-prep.sh +1 -1
  72. package/scripts/sw-ps.sh +1 -1
  73. package/scripts/sw-public-dashboard.sh +798 -0
  74. package/scripts/sw-quality.sh +595 -0
  75. package/scripts/sw-reaper.sh +1 -1
  76. package/scripts/sw-recruit.sh +573 -0
  77. package/scripts/sw-regression.sh +642 -0
  78. package/scripts/sw-release-manager.sh +736 -0
  79. package/scripts/sw-release.sh +706 -0
  80. package/scripts/sw-remote.sh +1 -1
  81. package/scripts/sw-replay.sh +520 -0
  82. package/scripts/sw-retro.sh +691 -0
  83. package/scripts/sw-scale.sh +444 -0
  84. package/scripts/sw-security-audit.sh +505 -0
  85. package/scripts/sw-self-optimize.sh +1 -1
  86. package/scripts/sw-session.sh +1 -1
  87. package/scripts/sw-setup.sh +1 -1
  88. package/scripts/sw-standup.sh +712 -0
  89. package/scripts/sw-status.sh +1 -1
  90. package/scripts/sw-strategic.sh +658 -0
  91. package/scripts/sw-stream.sh +450 -0
  92. package/scripts/sw-swarm.sh +583 -0
  93. package/scripts/sw-team-stages.sh +511 -0
  94. package/scripts/sw-templates.sh +1 -1
  95. package/scripts/sw-testgen.sh +515 -0
  96. package/scripts/sw-tmux-pipeline.sh +554 -0
  97. package/scripts/sw-tmux.sh +1 -1
  98. package/scripts/sw-trace.sh +485 -0
  99. package/scripts/sw-tracker-github.sh +188 -0
  100. package/scripts/sw-tracker-jira.sh +172 -0
  101. package/scripts/sw-tracker-linear.sh +251 -0
  102. package/scripts/sw-tracker.sh +117 -2
  103. package/scripts/sw-triage.sh +603 -0
  104. package/scripts/sw-upgrade.sh +1 -1
  105. package/scripts/sw-ux.sh +677 -0
  106. package/scripts/sw-webhook.sh +627 -0
  107. package/scripts/sw-widgets.sh +530 -0
  108. package/scripts/sw-worktree.sh +1 -1
@@ -8,7 +8,7 @@
8
8
  # ║ ║
9
9
  # ║ --deploy Detect platform and generate deployed.json template ║
10
10
  # ╚═══════════════════════════════════════════════════════════════════════════╝
11
- VERSION="1.10.0"
11
+ VERSION="2.0.0"
12
12
  set -euo pipefail
13
13
  trap 'echo "ERROR: $BASH_SOURCE:$LINENO exited with status $?" >&2' ERR
14
14
 
@@ -196,6 +196,93 @@ if [[ -d "$PIPELINES_SRC" ]]; then
196
196
  success "Installed ${pip_count} pipeline templates → ~/.shipwright/pipelines/"
197
197
  fi
198
198
 
199
+ # ─── Shell Completions ────────────────────────────────────────────────────────
200
+ # Detect shell type and install completions to the correct location
201
+ SHELL_TYPE=""
202
+ if [[ -n "${ZSH_VERSION:-}" ]]; then
203
+ SHELL_TYPE="zsh"
204
+ elif [[ -n "${BASH_VERSION:-}" ]]; then
205
+ SHELL_TYPE="bash"
206
+ else
207
+ # Try to detect from $SHELL env var
208
+ if [[ "$SHELL" == *"zsh"* ]]; then
209
+ SHELL_TYPE="zsh"
210
+ elif [[ "$SHELL" == *"bash"* ]]; then
211
+ SHELL_TYPE="bash"
212
+ fi
213
+ fi
214
+
215
+ COMPLETIONS_SRC="$REPO_DIR/completions"
216
+ install_completions=0
217
+
218
+ if [[ -z "$SHELL_TYPE" ]]; then
219
+ warn "Could not detect shell type — skipping completions installation"
220
+ elif [[ "$SHELL_TYPE" == "zsh" ]]; then
221
+ # Install zsh completion to ~/.zsh/completions/
222
+ ZSH_COMPLETION_DIR="$HOME/.zsh/completions"
223
+ if [[ -f "$COMPLETIONS_SRC/_shipwright" ]]; then
224
+ mkdir -p "$ZSH_COMPLETION_DIR"
225
+ cp "$COMPLETIONS_SRC/_shipwright" "$ZSH_COMPLETION_DIR/_shipwright"
226
+ chmod 644 "$ZSH_COMPLETION_DIR/_shipwright"
227
+
228
+ # Ensure fpath includes the completions directory
229
+ if [[ -f "$HOME/.zshrc" ]]; then
230
+ if ! grep -q "fpath.*\.zsh/completions" "$HOME/.zshrc" 2>/dev/null; then
231
+ {
232
+ echo ""
233
+ echo "# Shipwright shell completions"
234
+ echo "fpath+=~/.zsh/completions"
235
+ } >> "$HOME/.zshrc"
236
+ info "Added ~/.zsh/completions to fpath in ~/.zshrc"
237
+ fi
238
+ else
239
+ # Create minimal .zshrc with fpath
240
+ {
241
+ echo "# Shipwright shell completions"
242
+ echo "fpath+=~/.zsh/completions"
243
+ echo "autoload -Uz compinit && compinit"
244
+ } > "$HOME/.zshrc"
245
+ info "Created ~/.zshrc with completions"
246
+ fi
247
+
248
+ success "Installed zsh completions → ~/.zsh/completions/_shipwright"
249
+ install_completions=1
250
+ fi
251
+ elif [[ "$SHELL_TYPE" == "bash" ]]; then
252
+ # Install bash completion to ~/.local/share/bash-completion/completions/ (Linux/macOS)
253
+ BASH_COMPLETION_DIR="$HOME/.local/share/bash-completion/completions"
254
+ if [[ -f "$COMPLETIONS_SRC/shipwright.bash" ]]; then
255
+ mkdir -p "$BASH_COMPLETION_DIR"
256
+ cp "$COMPLETIONS_SRC/shipwright.bash" "$BASH_COMPLETION_DIR/shipwright"
257
+ chmod 644 "$BASH_COMPLETION_DIR/shipwright"
258
+
259
+ # Also try to add to .bashrc for systems without bash-completion infrastructure
260
+ if [[ -f "$HOME/.bashrc" ]]; then
261
+ if ! grep -q "bash-completion/completions" "$HOME/.bashrc" 2>/dev/null && \
262
+ ! grep -q "source.*shipwright.bash" "$HOME/.bashrc" 2>/dev/null; then
263
+ {
264
+ echo ""
265
+ echo "# Shipwright shell completions"
266
+ echo "[[ -r $HOME/.local/share/bash-completion/completions/shipwright ]] && source $HOME/.local/share/bash-completion/completions/shipwright"
267
+ } >> "$HOME/.bashrc"
268
+ info "Added completion source to ~/.bashrc"
269
+ fi
270
+ fi
271
+
272
+ success "Installed bash completions → ~/.local/share/bash-completion/completions/shipwright"
273
+ install_completions=1
274
+ fi
275
+ fi
276
+
277
+ if [[ $install_completions -eq 1 ]]; then
278
+ echo -e " ${DIM}Reload your shell config to activate:${RESET}"
279
+ if [[ "$SHELL_TYPE" == "zsh" ]]; then
280
+ echo -e " ${DIM}source ~/.zshrc${RESET}"
281
+ elif [[ "$SHELL_TYPE" == "bash" ]]; then
282
+ echo -e " ${DIM}source ~/.bashrc${RESET}"
283
+ fi
284
+ fi
285
+
199
286
  # ─── Claude Code Settings ────────────────────────────────────────────────────
200
287
  CLAUDE_DIR="$HOME/.claude"
201
288
  SETTINGS_FILE="$CLAUDE_DIR/settings.json"