claude-sprint-gate 1.0.0 → 1.1.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.

Potentially problematic release.


This version of claude-sprint-gate might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +4 -10
  2. package/bin/ccsg.js +12 -15
  3. package/deploy.sh +14 -21
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -85,22 +85,16 @@ your-project/
85
85
  ### npx (recommended)
86
86
 
87
87
  ```bash
88
- npx ccsg
89
- ```
90
-
91
- With mission mode:
92
-
93
- ```bash
94
- npx ccsg --with-mission
88
+ npx claude-sprint-gate
95
89
  ```
96
90
 
97
91
  Global (all projects):
98
92
 
99
93
  ```bash
100
- npx ccsg --global
94
+ npx claude-sprint-gate --global
101
95
  ```
102
96
 
103
- That's it. Run it from your project directory and CCSG is installed.
97
+ That's it. Installs the hook, creates goal directories, and drops a `mission.md` template.
104
98
 
105
99
  ### curl (no Node required)
106
100
 
@@ -108,7 +102,7 @@ That's it. Run it from your project directory and CCSG is installed.
108
102
  curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash
109
103
  ```
110
104
 
111
- Add `--with-mission` or `--global` the same way: `| bash -s -- --with-mission`
105
+ Add `--global` the same way: `| bash -s -- --global`
112
106
 
113
107
  ### Manual setup
114
108
 
package/bin/ccsg.js CHANGED
@@ -16,10 +16,9 @@ if (flags.has("--help") || flags.has("-h")) {
16
16
  ccsg — Claude Code Sprint Gate
17
17
 
18
18
  Usage:
19
- npx ccsg Install into current project
20
- npx ccsg --with-mission Install + create mission.md
21
- npx ccsg --global Install for all projects
22
- npx ccsg --uninstall Remove from current project
19
+ npx claude-sprint-gate Install into current project
20
+ npx claude-sprint-gate --global Install for all projects
21
+ npx claude-sprint-gate --uninstall Remove from current project
23
22
  `);
24
23
  process.exit(0);
25
24
  }
@@ -160,16 +159,14 @@ First sprint. Define what needs to be built and verify it works.
160
159
  info("Created starter goal: goals-open/goal-sprint-v1.md");
161
160
  }
162
161
 
163
- // Mission template
164
- if (withMission) {
165
- const missionDest = path.join(root, "mission.md");
166
- if (!fs.existsSync(missionDest)) {
167
- const missionContent = await download("mission-template.md");
168
- fs.writeFileSync(missionDest, missionContent);
169
- info("Created mission.md — edit it to activate mission mode");
170
- } else {
171
- warn("mission.md already exists, skipping");
172
- }
162
+ // Mission template (always included)
163
+ const missionDest = path.join(root, "mission.md");
164
+ if (!fs.existsSync(missionDest)) {
165
+ const missionContent = await download("mission-template.md");
166
+ fs.writeFileSync(missionDest, missionContent);
167
+ info("Created mission.md — edit to set your product vision");
168
+ } else {
169
+ warn("mission.md already exists, skipping");
173
170
  }
174
171
  }
175
172
 
@@ -182,7 +179,7 @@ First sprint. Define what needs to be built and verify it works.
182
179
  console.log(" Hook: .claude/hooks/ccsg.sh");
183
180
  console.log(" Settings: .claude/settings.json");
184
181
  console.log(" Goals: goals-open/ → goals-completed/");
185
- if (withMission) console.log(" Mission: mission.md (edit to configure)");
182
+ console.log(" Mission: mission.md (edit to set your product vision)");
186
183
  }
187
184
  console.log(
188
185
  "\n Edit goals-open/goal-sprint-v1.md, then start Claude Code.\n"
package/deploy.sh CHANGED
@@ -5,11 +5,9 @@
5
5
  # Usage:
6
6
  # curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash
7
7
  # curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash -s -- --global
8
- # curl -fsSL https://raw.githubusercontent.com/panbergco/claude-code-sprint-gate/master/deploy.sh | bash -s -- --with-mission
9
8
  #
10
9
  # Flags:
11
10
  # --global Install to ~/.claude/ (all projects)
12
- # --with-mission Also download mission-template.md as mission.md
13
11
  # --uninstall Remove CCSG from current project
14
12
  #
15
13
 
@@ -31,21 +29,18 @@ error() { echo -e "${BOLD}${RED}[CCSG]${RESET} $1"; }
31
29
 
32
30
  # ── Parse flags ─────────────────────────────────────────────────────
33
31
  MODE="project"
34
- WITH_MISSION=false
35
32
  ACTION="install"
36
33
 
37
34
  for arg in "$@"; do
38
35
  case "$arg" in
39
- --global) MODE="global" ;;
40
- --with-mission) WITH_MISSION=true ;;
41
- --uninstall) ACTION="uninstall" ;;
36
+ --global) MODE="global" ;;
37
+ --uninstall) ACTION="uninstall" ;;
42
38
  --help|-h)
43
39
  echo "CCSG — Claude Code Sprint Gate (remote deploy)"
44
40
  echo ""
45
41
  echo "Usage:"
46
42
  echo " curl -fsSL $REPO_RAW/deploy.sh | bash"
47
43
  echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --global"
48
- echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --with-mission"
49
44
  echo " curl -fsSL $REPO_RAW/deploy.sh | bash -s -- --uninstall"
50
45
  exit 0
51
46
  ;;
@@ -156,19 +151,17 @@ STARTER
156
151
  info "Created starter goal: goals-open/goal-sprint-v1.md"
157
152
  fi
158
153
 
159
- # Mission template
160
- if [ "$WITH_MISSION" = true ]; then
161
- MISSION_DEST="$PROJECT_ROOT/mission.md"
162
- if [ ! -f "$MISSION_DEST" ]; then
163
- if command -v curl &>/dev/null; then
164
- curl -fsSL "$REPO_RAW/mission-template.md" -o "$MISSION_DEST"
165
- else
166
- wget -qO "$MISSION_DEST" "$REPO_RAW/mission-template.md"
167
- fi
168
- info "Created mission.md — edit it to activate mission mode"
154
+ # Mission template (always included)
155
+ MISSION_DEST="$PROJECT_ROOT/mission.md"
156
+ if [ ! -f "$MISSION_DEST" ]; then
157
+ if command -v curl &>/dev/null; then
158
+ curl -fsSL "$REPO_RAW/mission-template.md" -o "$MISSION_DEST"
169
159
  else
170
- warn "mission.md already exists, skipping"
160
+ wget -qO "$MISSION_DEST" "$REPO_RAW/mission-template.md"
171
161
  fi
162
+ info "Created mission.md — edit to set your product vision"
163
+ else
164
+ warn "mission.md already exists, skipping"
172
165
  fi
173
166
  fi
174
167
 
@@ -186,13 +179,13 @@ else
186
179
  echo -e " ${DIM}Hook:${RESET} .claude/hooks/ccsg.sh"
187
180
  echo -e " ${DIM}Settings:${RESET} .claude/settings.json"
188
181
  echo -e " ${DIM}Goals:${RESET} goals-open/ → goals-completed/"
189
- [ "$WITH_MISSION" = true ] && echo -e " ${DIM}Mission:${RESET} mission.md (edit to configure)"
182
+ echo -e " ${DIM}Mission:${RESET} mission.md (edit to set your product vision)"
190
183
  fi
191
184
 
192
185
  echo ""
193
186
  echo -e " ${DIM}Next:${RESET}"
194
- echo " 1. Edit goals-open/goal-sprint-v1.md with your sprint items"
195
- [ "$WITH_MISSION" = true ] && echo " 2. Edit mission.md with your product vision"
187
+ echo " 1. Edit mission.md with your product vision"
188
+ echo " 2. Edit goals-open/goal-sprint-v1.md with your sprint items"
196
189
  echo " Start Claude Code and the agent cannot stop until all items are done."
197
190
  echo ""
198
191
  echo -e " ${DIM}Repo:${RESET} https://github.com/panbergco/claude-code-sprint-gate"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-sprint-gate",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Claude Code Sprint Gate — sprint lifecycle manager with verification gates",
5
5
  "bin": {
6
6
  "ccsg": "bin/ccsg.js"