pmpt-cli 1.14.13 → 1.14.14

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.
@@ -51,7 +51,7 @@ export async function cmdSave(fileOrPath) {
51
51
  p.cancel('Save cancelled.');
52
52
  process.exit(0);
53
53
  }
54
- const note = summary.trim() || undefined;
54
+ const note = typeof summary === 'string' ? summary.trim() || undefined : undefined;
55
55
  // Write summary to pmpt.md Snapshot Log before snapshot
56
56
  if (note) {
57
57
  const pmptMdPath = join(docsDir, 'pmpt.md');
package/dist/mcp.js CHANGED
@@ -123,6 +123,10 @@ server.tool('pmpt_save', 'Save a snapshot of .pmpt/docs/ files. Call after compl
123
123
  '',
124
124
  '## Decisions',
125
125
  '',
126
+ '## Constraints',
127
+ '',
128
+ '## Lessons',
129
+ '',
126
130
  ].join('\n');
127
131
  writeFileSync(pmptMdPath, skeleton, 'utf-8');
128
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmpt-cli",
3
- "version": "1.14.13",
3
+ "version": "1.14.14",
4
4
  "description": "Record and share your AI-driven product development journey",
5
5
  "type": "module",
6
6
  "bin": {