peaks-cli 1.2.1 → 1.2.2

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.
@@ -274,10 +274,11 @@ export function registerCoreAndArtifactCommands(program, io) {
274
274
  .description('Extract stable project memory from skill artifacts into project .peaks/memory')
275
275
  .requiredOption('--project <path>', 'target project root')
276
276
  .requiredOption('--artifact <path...>', 'skill artifact paths inside the project')
277
- .option('--dry-run', 'preview writes without changing files', true)
278
- .option('--apply', 'write extracted memories into project .peaks/memory')).action((options) => {
277
+ .option('--dry-run', 'preview writes without changing files')
278
+ .option('--apply', 'write extracted memories into project .peaks/memory (default behavior)')).action((options) => {
279
279
  try {
280
- const result = executeProjectMemoryExtract({ projectRoot: options.project, artifactPaths: options.artifact, apply: options.apply === true });
280
+ const shouldApply = options.dryRun !== true;
281
+ const result = executeProjectMemoryExtract({ projectRoot: options.project, artifactPaths: options.artifact, apply: shouldApply });
281
282
  printResult(io, ok('memory.extract', summarizeProjectMemoryExtractResult(result)), options.json);
282
283
  }
283
284
  catch (error) {
@@ -290,10 +291,11 @@ export function registerCoreAndArtifactCommands(program, io) {
290
291
  .description('Back up project .peaks/memory into the artifact workspace')
291
292
  .requiredOption('--project <path>', 'target project root')
292
293
  .requiredOption('--workspace <path>', 'artifact workspace path')
293
- .option('--dry-run', 'preview copies without changing files', true)
294
- .option('--apply', 'copy project .peaks/memory into artifact workspace backup')).action((options) => {
294
+ .option('--dry-run', 'preview copies without changing files')
295
+ .option('--apply', 'copy project .peaks/memory into artifact workspace backup (default behavior)')).action((options) => {
295
296
  try {
296
- const result = executeProjectMemoryBackup({ projectRoot: options.project, artifactWorkspacePath: options.workspace, apply: options.apply === true });
297
+ const shouldApply = options.dryRun !== true;
298
+ const result = executeProjectMemoryBackup({ projectRoot: options.project, artifactWorkspacePath: options.workspace, apply: shouldApply });
297
299
  printResult(io, ok('memory.sync', summarizeProjectMemoryBackupResult(result)), options.json);
298
300
  }
299
301
  catch (error) {
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "1.2.1";
1
+ export declare const CLI_VERSION = "1.2.2";
@@ -1 +1 @@
1
- export const CLI_VERSION = "1.2.1";
1
+ export const CLI_VERSION = "1.2.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peaks-cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Peaks CLI and short skill family for Claude Code automation.",
5
5
  "author": "SquabbyZ",
6
6
  "license": "MIT",
@@ -118,7 +118,7 @@ Stable memory body.
118
118
  <!-- peaks-memory:end -->
119
119
  ```
120
120
 
121
- The primary write target is the target project's `.peaks/memory`. Use `peaks memory extract --project <path> --artifact <artifact> --apply` only after the user or active profile allows durable project memory writes.
121
+ The primary write target is the target project's `.peaks/memory`. Use `peaks memory extract --project <path> --artifact <artifact>` to write durable project memories; pass `--dry-run` to preview without writing.
122
122
 
123
123
  ## Matt Pocock skills integration
124
124
 
@@ -190,13 +190,13 @@ peaks understand show --project <repo> --json
190
190
  # 4. Discover external capabilities before recommending memory or context tools
191
191
  peaks capabilities --json
192
192
 
193
- # 5. Memory extraction — dry-run by default, apply only when authorized
194
- peaks memory extract --project <repo> --artifact <artifact-path> --dry-run --json
195
- peaks memory extract --project <repo> --artifact <artifact-path> --apply --json
193
+ # 5. Memory extraction — writes by default, use --dry-run to preview
194
+ peaks memory extract --project <repo> --artifact <artifact-path> --json
195
+ peaks memory extract --project <repo> --artifact <artifact-path> --dry-run --json # preview only
196
196
  peaks skill presence:clear --project <repo> # handoff capsule complete, remove presence indicator
197
197
  ```
198
198
 
199
- The final `--apply` call requires explicit user or profile authorization. Without it, keep the capsule under `.peaks/<session-id>/txt/` and reference artifact paths from other roles instead of duplicating their content.
199
+ The default `peaks memory extract` call writes to `.peaks/memory`. Pass `--dry-run` to preview without writing.
200
200
 
201
201
  ### Transition verification gates (MANDATORY — run the command, see the output)
202
202