shipwright-cli 1.9.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/.claude/hooks/post-tool-use.sh +12 -5
- 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 +217 -2
- 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 +79 -1
- package/scripts/sw-ci.sh +602 -0
- package/scripts/sw-cleanup.sh +192 -7
- 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 +812 -138
- 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 +366 -31
- package/scripts/sw-linear.sh +1 -1
- package/scripts/sw-logs.sh +1 -1
- package/scripts/sw-loop.sh +507 -51
- package/scripts/sw-memory.sh +198 -3
- 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 +8 -8
- package/scripts/sw-pipeline-vitals.sh +1096 -0
- package/scripts/sw-pipeline.sh +2451 -180
- 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 +4 -3
- package/scripts/sw-public-dashboard.sh +798 -0
- package/scripts/sw-quality.sh +595 -0
- package/scripts/sw-reaper.sh +5 -3
- 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 +109 -8
- package/scripts/sw-session.sh +31 -9
- package/scripts/sw-setup.sh +1 -1
- package/scripts/sw-standup.sh +712 -0
- package/scripts/sw-status.sh +192 -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/templates/pipelines/autonomous.json +8 -1
- package/templates/pipelines/cost-aware.json +21 -0
- package/templates/pipelines/deployed.json +40 -6
- package/templates/pipelines/enterprise.json +16 -2
- package/templates/pipelines/fast.json +19 -0
- package/templates/pipelines/full.json +16 -2
- package/templates/pipelines/hotfix.json +19 -0
- package/templates/pipelines/standard.json +19 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
set -euo pipefail
|
|
7
7
|
trap 'echo "ERROR: $BASH_SOURCE:$LINENO exited with status $?" >&2' ERR
|
|
8
8
|
|
|
9
|
-
VERSION="
|
|
9
|
+
VERSION="2.0.0"
|
|
10
10
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
11
11
|
REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
12
12
|
|
|
@@ -114,7 +114,7 @@ composer_create_pipeline() {
|
|
|
114
114
|
else
|
|
115
115
|
repo_context="$ci_history"
|
|
116
116
|
fi
|
|
117
|
-
info "CI history: p90 duration=${p90_timeout}s — using for timeout tuning"
|
|
117
|
+
info "CI history: p90 duration=${p90_timeout}s — using for timeout tuning" >&2
|
|
118
118
|
fi
|
|
119
119
|
|
|
120
120
|
# Try intelligence-driven composition
|
|
@@ -122,7 +122,7 @@ composer_create_pipeline() {
|
|
|
122
122
|
[[ -n "$issue_analysis" ]] && \
|
|
123
123
|
type intelligence_compose_pipeline &>/dev/null; then
|
|
124
124
|
|
|
125
|
-
info "Composing pipeline with intelligence engine..."
|
|
125
|
+
info "Composing pipeline with intelligence engine..." >&2
|
|
126
126
|
|
|
127
127
|
local composed=""
|
|
128
128
|
composed=$(intelligence_compose_pipeline "$issue_analysis" "$repo_context" "$budget_json" 2>/dev/null) || true
|
|
@@ -138,7 +138,7 @@ composer_create_pipeline() {
|
|
|
138
138
|
|
|
139
139
|
local stage_count
|
|
140
140
|
stage_count=$(echo "$composed" | jq '.stages | length')
|
|
141
|
-
success "Composed pipeline: ${stage_count} stages"
|
|
141
|
+
success "Composed pipeline: ${stage_count} stages" >&2
|
|
142
142
|
|
|
143
143
|
emit_event "composer.created" \
|
|
144
144
|
"stages=${stage_count}" \
|
|
@@ -148,17 +148,17 @@ composer_create_pipeline() {
|
|
|
148
148
|
echo "$output_file"
|
|
149
149
|
return 0
|
|
150
150
|
else
|
|
151
|
-
warn "Intelligence pipeline failed validation, falling back to template"
|
|
151
|
+
warn "Intelligence pipeline failed validation, falling back to template" >&2
|
|
152
152
|
fi
|
|
153
153
|
else
|
|
154
|
-
warn "Intelligence composition returned invalid JSON, falling back to template"
|
|
154
|
+
warn "Intelligence composition returned invalid JSON, falling back to template" >&2
|
|
155
155
|
fi
|
|
156
156
|
fi
|
|
157
157
|
|
|
158
158
|
# Fallback: use static template
|
|
159
159
|
local fallback_template="${TEMPLATES_DIR}/standard.json"
|
|
160
160
|
if [[ -f "$fallback_template" ]]; then
|
|
161
|
-
info "Using fallback template: standard"
|
|
161
|
+
info "Using fallback template: standard" >&2
|
|
162
162
|
local tmp_file
|
|
163
163
|
tmp_file=$(mktemp "${output_file}.XXXXXX")
|
|
164
164
|
cp "$fallback_template" "$tmp_file"
|
|
@@ -173,7 +173,7 @@ composer_create_pipeline() {
|
|
|
173
173
|
return 0
|
|
174
174
|
fi
|
|
175
175
|
|
|
176
|
-
error "No templates available for fallback"
|
|
176
|
+
error "No templates available for fallback" >&2
|
|
177
177
|
return 1
|
|
178
178
|
}
|
|
179
179
|
|