patchy-cli 0.0.17 → 0.0.18

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 (2) hide show
  1. package/README.md +70 -4
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -260,18 +260,17 @@ Note: `patchy generate` is destructive and will remove any unneeded files in the
260
260
 
261
261
  ### `patchy apply`
262
262
 
263
- Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order, with each patch set committed automatically.
263
+ Apply patch files from `patches/` into `target_repo`. Patch sets are applied in alphabetical order.
264
264
 
265
265
  ```sh
266
- patchy apply [--only <patch-set>] [--until <patch-set>] [--all] [--edit] [--target-repo] [--patches-dir] [--dry-run]
266
+ patchy apply [--only <patch-set>] [--until <patch-set>] [--auto-commit=<mode>] [--target-repo] [--patches-dir] [--dry-run]
267
267
  ```
268
268
 
269
269
  | Flag | Description |
270
270
  |------|-------------|
271
271
  | `--only <name>` | Apply only the specified patch set |
272
272
  | `--until <name>` | Apply patch sets up to and including the specified one |
273
- | `--all` | Commit all patch sets without prompting |
274
- | `--edit` | Leave the last patch set uncommitted for manual review |
273
+ | `--auto-commit=<mode>` | Control auto-commit behavior: `all` (commit everything), `interactive` (prompt on last, default), `skip-last` (leave last uncommitted), `off` (commit nothing) |
275
274
 
276
275
  ### `patchy repo reset`
277
276
 
@@ -298,6 +297,73 @@ patchy base # Interactive
298
297
  patchy base abc123def # Set base_revision to the specified SHA or tag
299
298
  ```
300
299
 
300
+ ### `patchy prime`
301
+
302
+ Prints a prompt you can include in your `AGENTS.md` / `CLAUDE.md`.
303
+
304
+ Tell your agent to run:
305
+ ```sh
306
+ patchy prime
307
+ ```
308
+
309
+ Or include it directly:
310
+ ```sh
311
+ patchy prime >> CLAUDE.md
312
+ ```
313
+
314
+ Outputs a brief description of Patchy, key paths, and essential commands to help AI coding agents understand your project's patch workflow.
315
+
316
+ ### `patchy config get <key>`
317
+
318
+ Output a single config value (raw, no label). Useful for shell scripts.
319
+
320
+ ```sh
321
+ patchy config get target_repo_path # /home/user/project/clones/my-repo
322
+ patchy config get patch_set # 001-feature
323
+ patchy config get verbose # false
324
+ ```
325
+
326
+ **Available keys:**
327
+
328
+ | Key | Description |
329
+ |-----|-------------|
330
+ | `source_repo` | Git URL or local file path |
331
+ | `target_repo` | Repository name or path |
332
+ | `clones_dir` | Directory for clones |
333
+ | `patches_dir` | Directory for patches |
334
+ | `patch_set` | Current patch set name |
335
+ | `base_revision` | Base SHA or tag |
336
+ | `upstream_branch` | Remote branch to track |
337
+ | `hook_prefix` | Hook script prefix |
338
+ | `verbose` | Verbose mode ("true"/"false") |
339
+ | `clones_dir_path` | Absolute path to clones directory |
340
+ | `target_repo_path` | Absolute path to target repository |
341
+ | `patches_dir_path` | Absolute path to patches directory |
342
+ | `patch_set_path` | Absolute path to current patch set |
343
+
344
+ - Unknown keys exit with code 1
345
+ - Unset raw keys exit with code 1
346
+ - Unset computed keys (e.g., `patch_set_path` when `patch_set` is not set) output an empty line
347
+
348
+ ### `patchy config list`
349
+
350
+ Output all config values as aligned key-value pairs.
351
+
352
+ ```sh
353
+ patchy config list
354
+ # source_repo https://github.com/example/repo.git
355
+ # target_repo my-repo
356
+ # clones_dir ./clones
357
+ # patches_dir ./patches
358
+ # patch_set 001-feature
359
+ # verbose false
360
+ # clones_dir_path /home/user/project/clones
361
+ # target_repo_path /home/user/project/clones/my-repo
362
+ # ...
363
+ ```
364
+
365
+ Only defined values are shown. Computed path values are resolved to absolute paths.
366
+
301
367
  ## License
302
368
 
303
369
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchy-cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "A CLI tool for managing Git patch workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -64,11 +64,11 @@
64
64
  "url": "https://github.com/richardgill/patchy"
65
65
  },
66
66
  "optionalDependencies": {
67
- "patchy-cli-linux-x64": "0.0.17",
68
- "patchy-cli-linux-arm64": "0.0.17",
69
- "patchy-cli-darwin-x64": "0.0.17",
70
- "patchy-cli-darwin-arm64": "0.0.17",
71
- "patchy-cli-windows-x64": "0.0.17"
67
+ "patchy-cli-linux-x64": "0.0.18",
68
+ "patchy-cli-linux-arm64": "0.0.18",
69
+ "patchy-cli-darwin-x64": "0.0.18",
70
+ "patchy-cli-darwin-arm64": "0.0.18",
71
+ "patchy-cli-windows-x64": "0.0.18"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"