@r5n/sisyphus 0.3.39 → 0.3.42

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 (3) hide show
  1. package/README.md +112 -34
  2. package/dist/cli.js +378 -138
  3. package/package.json +2 -3
package/README.md CHANGED
@@ -60,20 +60,20 @@ sisyphus init --nonInteractive --tag latest
60
60
 
61
61
  ```bash
62
62
  # Interactive version creation
63
- sisyphus stone
63
+ sisyphus version
64
64
 
65
65
  # Quick version with commit message
66
- sisyphus stone "feat: add new feature" --packages @org/package-a:minor
66
+ sisyphus version "feat: add new feature" --packages @org/package-a:minor
67
67
 
68
68
  # Specific version bump
69
- sisyphus stone --packages @org/core:major @org/utils:patch
69
+ sisyphus version --packages @org/core:major @org/utils:patch
70
70
  ```
71
71
 
72
72
  ### 3. Roll Stones (Release)
73
73
 
74
74
  ```bash
75
75
  # Check pending releases
76
- sisyphus status
76
+ sisyphus check
77
77
 
78
78
  # Release with all features
79
79
  sisyphus roll --publish --github
@@ -88,60 +88,138 @@ sisyphus roll --dry-run
88
88
  Initialize Sisyphus in your project.
89
89
 
90
90
  **Options:**
91
+ - `-i, --ignore <packages>` - Packages to ignore (multiple allowed)
91
92
  - `-n, --nonInteractive` - Skip interactive prompts
92
93
  - `-o, --overwrite` - Overwrite existing configuration
93
94
  - `-s, --single` - Single package mode (non-monorepo)
94
- - `-i, --ignore <packages>` - Packages to ignore (multiple allowed)
95
95
  - `-t, --tag <tag>` - Default release tag (default: "latest")
96
96
 
97
- ### `sisyphus stone`
97
+ ### `sisyphus version`
98
98
  Create a new version stone (changeset).
99
99
 
100
100
  **Options:**
101
- - `-d, --dry-run` - Preview changes without creating stone
102
- - `-p, --packages <specs>` - Package version specs (e.g., "@org/pkg:minor")
101
+ - `-b, --bump <type>` - Bump type (major/minor/patch)
102
+ - `-d, --dryRun` - Preview changes without creating stone
103
+ - `-f, --filter <string>` - Filter packages by name
103
104
  - `-s, --snapshot` - Create snapshot versions
104
105
  - `-t, --tag <tag>` - Release tag (e.g., "beta", "alpha")
105
- - `-a, --all` - Include all packages
106
+ - `-y, --yes` - Skip confirmation prompt
106
107
 
107
108
  **Examples:**
108
109
  ```bash
109
- # Create stone with message
110
- sisyphus stone "fix: resolve memory leak"
110
+ # Create stone interactively
111
+ sisyphus version
111
112
 
112
- # Specify exact versions
113
- sisyphus stone --packages @org/core:2.0.0 @org/cli:minor
113
+ # Create stone with specific bump
114
+ sisyphus version --bump minor --filter @org/core
114
115
 
115
116
  # Snapshot release
116
- sisyphus stone --snapshot --tag dev
117
+ sisyphus version --snapshot --tag dev
118
+
119
+ # Skip confirmation
120
+ sisyphus version --yes
117
121
  ```
118
122
 
119
123
  ### `sisyphus roll`
120
124
  Process stones and release packages.
121
125
 
122
126
  **Options:**
123
- - `-d, --dry-run` - Preview release without publishing
124
- - `-p, --publish` - Publish to npm
127
+ - `-c, --changelog` - Generate changelog
128
+ - `-d, --dryRun` - Preview release without publishing
125
129
  - `-g, --github` - Create GitHub releases
126
- - `--npmToken <token>` - NPM authentication token
130
+ - `-n, --npm` - Publish to npm
131
+ - `-r, --changelogRoot` - Generate root changelog
132
+ - `-t, --withTags` - Create git tags
127
133
  - `--githubToken <token>` - GitHub authentication token
134
+ - `--npmToken <token>` - NPM authentication token
135
+ - `--rootTag <tag>` - Root package tag
128
136
 
129
- ### `sisyphus status`
137
+ ### `sisyphus check`
130
138
  Check current stones and package states.
131
139
 
140
+ **Options:**
141
+ - `--debug` - Show debug information
142
+ - `--json` - Output in JSON format
143
+
132
144
  **Output includes:**
133
145
  - Pending stones with version changes
134
146
  - Affected packages
135
147
  - Dependency updates
136
148
  - Last release information
137
149
 
150
+ ### `sisyphus preview`
151
+ Preview what versions will be after rolling stones.
152
+
153
+ **Options:**
154
+ - `-j, --json` - Output in JSON format
155
+ - `-v, --verbose` - Show additional information
156
+
157
+ ### `sisyphus prerelease`
158
+ Manage prerelease versions (alpha, beta, rc).
159
+
160
+ **Options:**
161
+ - `-t, --type <type>` - Prerelease type (alpha/beta/rc/canary/dev/next)
162
+ - `-b, --bump <type>` - Bump type (major/minor/patch)
163
+ - `-p, --promote` - Promote existing prereleases (interactive UI)
164
+ - `-f, --filter <string>` - Filter packages
165
+ - `-d, --dryRun` - Preview changes
166
+ - `-y, --yes` - Skip confirmation
167
+
168
+ **Promotion Flow:**
169
+ - **Alpha** → Beta, RC, or Stable
170
+ - **Beta** → RC or Stable
171
+ - **RC/Next** → Stable only
172
+
173
+ **Examples:**
174
+ ```bash
175
+ # Create beta prerelease
176
+ sisyphus prerelease --type beta --bump minor
177
+
178
+ # Promote prereleases (shows smart options)
179
+ sisyphus prerelease --promote
180
+
181
+ # Non-interactive prerelease
182
+ sisyphus prerelease --type alpha --bump patch --filter @org/core --yes
183
+ ```
184
+
185
+ ### `sisyphus stone`
186
+ Manage pending stones.
187
+
188
+ **Subcommands:**
189
+ - `list` - View all pending stones
190
+ - `show <id>` - Display stone content
191
+ - `delete <id>` - Remove a stone
192
+ - `edit <id>` - Modify stone message
193
+ - `merge` - Combine multiple stones
194
+
195
+ ### `sisyphus graph`
196
+ Visualize monorepo package dependencies.
197
+
198
+ **Options:**
199
+ - `-j, --json` - Output in JSON format
200
+ - `-f, --filter <string>` - Filter to specific package
201
+ - `-d, --depth <number>` - Limit depth of dependency tree
202
+ - `-v, --show-versions` - Display package versions
203
+
204
+ **Examples:**
205
+ ```bash
206
+ # Show full dependency graph
207
+ sisyphus graph
208
+
209
+ # Focus on specific package
210
+ sisyphus graph --filter @org/core
211
+
212
+ # Export as JSON
213
+ sisyphus graph --json > dependencies.json
214
+ ```
215
+
138
216
  ### `sisyphus help`
139
217
  Show help information for commands.
140
218
 
141
219
  ```bash
142
220
  sisyphus help
143
- sisyphus help stone
144
- sisyphus stone --help
221
+ sisyphus help version
222
+ sisyphus version --help
145
223
  ```
146
224
 
147
225
  ## 🔧 Configuration
@@ -161,7 +239,7 @@ Sisyphus uses `.sisyphus/config.json`:
161
239
 
162
240
  ```json
163
241
  {
164
- "$schema": "https://unpkg.com/@r5n/sisyphus/schema.json",
242
+ "$schema": "https://raw.githubusercontent.com/r5n-labs/clis/main/packages/sisyphus/schema.json",
165
243
  "tag": "latest",
166
244
  "ignore": ["packages/*-internal"],
167
245
  "single": false,
@@ -240,31 +318,31 @@ your-project/
240
318
 
241
319
  ```bash
242
320
  # Monday: Feature development
243
- sisyphus stone "feat: add user profiles" --packages @app/core:minor
321
+ sisyphus version --bump minor --filter @app/core
244
322
 
245
323
  # Tuesday: Bug fix
246
- sisyphus stone "fix: resolve login issue" --packages @app/auth:patch
324
+ sisyphus version --bump patch --filter @app/auth
247
325
 
248
326
  # Wednesday: Breaking change
249
- sisyphus stone "feat!: new API structure" --packages @app/api:major
327
+ sisyphus version --bump major --filter @app/api
250
328
 
251
329
  # Friday: Release everything
252
- sisyphus status # Review pending changes
253
- sisyphus roll --publish --github
330
+ sisyphus check # Review pending changes
331
+ sisyphus roll --npm --github --changelog
254
332
  ```
255
333
 
256
334
  ### Prerelease Workflow
257
335
 
258
336
  ```bash
259
337
  # Create beta versions
260
- sisyphus stone --packages @org/new-feature:minor --tag beta
338
+ sisyphus version --bump minor --filter @org/new-feature --tag beta
261
339
 
262
340
  # Roll beta release
263
- sisyphus roll --publish
341
+ sisyphus roll --npm
264
342
 
265
343
  # Later, promote to stable
266
- sisyphus stone --packages @org/new-feature:minor --tag latest
267
- sisyphus roll --publish
344
+ sisyphus version --bump minor --filter @org/new-feature --tag latest
345
+ sisyphus roll --npm
268
346
  ```
269
347
 
270
348
  ### CI/CD Integration
@@ -296,7 +374,7 @@ jobs:
296
374
 
297
375
  - name: Release
298
376
  if: steps.check.outputs.has_stones == 'true'
299
- run: bunx @r5n/sisyphus roll --publish --github
377
+ run: bunx @r5n/sisyphus roll --npm --github --changelog
300
378
  env:
301
379
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
302
380
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -313,7 +391,7 @@ jobs:
313
391
 
314
392
  ### Best Practices
315
393
 
316
- 1. Review stones before rolling (`sisyphus status`)
394
+ 1. Review stones before rolling (`sisyphus check`)
317
395
  2. Use dry-run mode for safety
318
396
  3. Commit stones to version control
319
397
  4. Set up branch protection for release branches
@@ -323,11 +401,11 @@ jobs:
323
401
  ### Common Issues
324
402
 
325
403
  1. **"No stones found"**
326
- - Create stones with `sisyphus stone` first
404
+ - Create stones with `sisyphus version` first
327
405
  - Check `.sisyphus/stones/` directory
328
406
 
329
407
  2. **"Package not found"**
330
- - Verify package name in stone command
408
+ - Verify package name in version command
331
409
  - Check if package is ignored in config
332
410
 
333
411
  3. **"Publish failed"**