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.
- package/README.md +114 -36
- package/completions/_shipwright +212 -32
- package/completions/shipwright.bash +97 -25
- package/docs/strategy/01-market-research.md +619 -0
- package/docs/strategy/02-mission-and-brand.md +587 -0
- package/docs/strategy/03-gtm-and-roadmap.md +759 -0
- package/docs/strategy/QUICK-START.txt +289 -0
- package/docs/strategy/README.md +172 -0
- package/package.json +4 -2
- package/scripts/sw +208 -1
- package/scripts/sw-activity.sh +500 -0
- package/scripts/sw-adaptive.sh +925 -0
- package/scripts/sw-adversarial.sh +1 -1
- package/scripts/sw-architecture-enforcer.sh +1 -1
- package/scripts/sw-auth.sh +613 -0
- package/scripts/sw-autonomous.sh +664 -0
- package/scripts/sw-changelog.sh +704 -0
- package/scripts/sw-checkpoint.sh +1 -1
- package/scripts/sw-ci.sh +602 -0
- package/scripts/sw-cleanup.sh +1 -1
- package/scripts/sw-code-review.sh +637 -0
- package/scripts/sw-connect.sh +1 -1
- package/scripts/sw-context.sh +605 -0
- package/scripts/sw-cost.sh +1 -1
- package/scripts/sw-daemon.sh +432 -130
- package/scripts/sw-dashboard.sh +1 -1
- package/scripts/sw-db.sh +540 -0
- package/scripts/sw-decompose.sh +539 -0
- package/scripts/sw-deps.sh +551 -0
- package/scripts/sw-developer-simulation.sh +1 -1
- package/scripts/sw-discovery.sh +412 -0
- package/scripts/sw-docs-agent.sh +539 -0
- package/scripts/sw-docs.sh +1 -1
- package/scripts/sw-doctor.sh +59 -1
- package/scripts/sw-dora.sh +615 -0
- package/scripts/sw-durable.sh +710 -0
- package/scripts/sw-e2e-orchestrator.sh +535 -0
- package/scripts/sw-eventbus.sh +393 -0
- package/scripts/sw-feedback.sh +471 -0
- package/scripts/sw-fix.sh +1 -1
- package/scripts/sw-fleet-discover.sh +567 -0
- package/scripts/sw-fleet-viz.sh +404 -0
- package/scripts/sw-fleet.sh +8 -1
- package/scripts/sw-github-app.sh +596 -0
- package/scripts/sw-github-checks.sh +1 -1
- package/scripts/sw-github-deploy.sh +1 -1
- package/scripts/sw-github-graphql.sh +1 -1
- package/scripts/sw-guild.sh +569 -0
- package/scripts/sw-heartbeat.sh +1 -1
- package/scripts/sw-hygiene.sh +559 -0
- package/scripts/sw-incident.sh +617 -0
- package/scripts/sw-init.sh +88 -1
- package/scripts/sw-instrument.sh +699 -0
- package/scripts/sw-intelligence.sh +1 -1
- package/scripts/sw-jira.sh +1 -1
- package/scripts/sw-launchd.sh +363 -28
- package/scripts/sw-linear.sh +1 -1
- package/scripts/sw-logs.sh +1 -1
- package/scripts/sw-loop.sh +64 -3
- package/scripts/sw-memory.sh +1 -1
- package/scripts/sw-mission-control.sh +487 -0
- package/scripts/sw-model-router.sh +545 -0
- package/scripts/sw-otel.sh +596 -0
- package/scripts/sw-oversight.sh +689 -0
- package/scripts/sw-pipeline-composer.sh +1 -1
- package/scripts/sw-pipeline-vitals.sh +1 -1
- package/scripts/sw-pipeline.sh +687 -24
- package/scripts/sw-pm.sh +693 -0
- package/scripts/sw-pr-lifecycle.sh +522 -0
- package/scripts/sw-predictive.sh +1 -1
- package/scripts/sw-prep.sh +1 -1
- package/scripts/sw-ps.sh +1 -1
- package/scripts/sw-public-dashboard.sh +798 -0
- package/scripts/sw-quality.sh +595 -0
- package/scripts/sw-reaper.sh +1 -1
- package/scripts/sw-recruit.sh +573 -0
- package/scripts/sw-regression.sh +642 -0
- package/scripts/sw-release-manager.sh +736 -0
- package/scripts/sw-release.sh +706 -0
- package/scripts/sw-remote.sh +1 -1
- package/scripts/sw-replay.sh +520 -0
- package/scripts/sw-retro.sh +691 -0
- package/scripts/sw-scale.sh +444 -0
- package/scripts/sw-security-audit.sh +505 -0
- package/scripts/sw-self-optimize.sh +1 -1
- package/scripts/sw-session.sh +1 -1
- package/scripts/sw-setup.sh +1 -1
- package/scripts/sw-standup.sh +712 -0
- package/scripts/sw-status.sh +1 -1
- package/scripts/sw-strategic.sh +658 -0
- package/scripts/sw-stream.sh +450 -0
- package/scripts/sw-swarm.sh +583 -0
- package/scripts/sw-team-stages.sh +511 -0
- package/scripts/sw-templates.sh +1 -1
- package/scripts/sw-testgen.sh +515 -0
- package/scripts/sw-tmux-pipeline.sh +554 -0
- package/scripts/sw-tmux.sh +1 -1
- package/scripts/sw-trace.sh +485 -0
- package/scripts/sw-tracker-github.sh +188 -0
- package/scripts/sw-tracker-jira.sh +172 -0
- package/scripts/sw-tracker-linear.sh +251 -0
- package/scripts/sw-tracker.sh +117 -2
- package/scripts/sw-triage.sh +603 -0
- package/scripts/sw-upgrade.sh +1 -1
- package/scripts/sw-ux.sh +677 -0
- package/scripts/sw-webhook.sh +627 -0
- package/scripts/sw-widgets.sh +530 -0
- package/scripts/sw-worktree.sh +1 -1
package/scripts/sw-init.sh
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# ║ ║
|
|
9
9
|
# ║ --deploy Detect platform and generate deployed.json template ║
|
|
10
10
|
# ╚═══════════════════════════════════════════════════════════════════════════╝
|
|
11
|
-
VERSION="
|
|
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"
|