pmpt-cli 1.14.15 → 1.14.17

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.
@@ -1,6 +1,6 @@
1
1
  import * as p from '@clack/prompts';
2
2
  import { join, dirname, resolve, sep } from 'path';
3
- import { existsSync, mkdirSync, writeFileSync, readFileSync, readdirSync } from 'fs';
3
+ import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
4
4
  import { isInitialized, getConfigDir, getHistoryDir, getDocsDir, initializeProject } from '../lib/config.js';
5
5
  import { validatePmptFile, isSafeFilename } from '../lib/pmptFile.js';
6
6
  import { fetchPmptFile, trackClone } from '../lib/api.js';
@@ -110,7 +110,8 @@ export async function cmdClone(slug) {
110
110
  const pmptDir = getConfigDir(projectPath);
111
111
  const historyDir = getHistoryDir(projectPath);
112
112
  const docsDir = getDocsDir(projectPath);
113
- restoreHistory(historyDir, pmptData.history);
113
+ // History is not restored — user's journey starts fresh from v1.
114
+ // The version summary is embedded in pmpt.ai.md for AI reference.
114
115
  if (pmptData.docs) {
115
116
  restoreDocs(docsDir, pmptData.docs);
116
117
  }
@@ -175,16 +176,13 @@ export async function cmdClone(slug) {
175
176
  answers: pmptData.plan,
176
177
  }, null, 2), 'utf-8');
177
178
  }
178
- let versionCount = 0;
179
- if (existsSync(historyDir)) {
180
- versionCount = readdirSync(historyDir).filter((d) => d.startsWith('v')).length;
181
- }
182
179
  importSpinner.stop('Restore complete!');
183
180
  // Track clone event (fire-and-forget)
184
181
  trackClone(slug);
185
182
  p.note([
186
183
  `Project: ${pmptData.meta.projectName}`,
187
- `Versions: ${versionCount}`,
184
+ `Cloned from: @${pmptData.meta.author || 'unknown'} (${pmptData.history.length} versions)`,
185
+ `Your history: starts fresh from v1`,
188
186
  `Location: ${pmptDir}`,
189
187
  ].join('\n'), 'Clone Summary');
190
188
  // Copy AI prompt to clipboard
@@ -88,12 +88,24 @@ ${contextSection}${techSection}
88
88
 
89
89
  ## Instructions for AI
90
90
 
91
- This is a **remix** of an existing project. Build my version based on the differentiation above.
91
+ This is a **remix** of an existing project. Before building anything, do the following:
92
92
 
93
- 1. Read the original project below to understand the structure and approach.
94
- 2. Build MY version — same core concept, but with my differentiation applied throughout.
95
- 3. Do NOT copy content verbatim. Adapt everything to fit my context.
96
- 4. Start with core features first, then iterate.
93
+ **Step 1 Understand & Clarify (do this first)**
94
+
95
+ Read my "My Version" section above and the original project below carefully, then ask me clarifying questions. Specifically, identify:
96
+ - Anything in my differentiation that is ambiguous or unclear
97
+ - Information that would be needed to build my version but is not provided
98
+ - Assumptions you would have to make — ask instead of assuming
99
+ - Any conflict between my twist and the original that needs resolution
100
+
101
+ Ask all your questions in a single message. Wait for my answers before proceeding.
102
+
103
+ **Step 2 — Build**
104
+
105
+ After I answer your questions, build MY version based on the differentiation and my answers.
106
+ - Same core concept as the original, but with my differentiation applied throughout
107
+ - Do NOT copy content verbatim. Adapt everything to fit my context
108
+ - Start with core features first, then iterate
97
109
 
98
110
  ### Documentation Rule
99
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmpt-cli",
3
- "version": "1.14.15",
3
+ "version": "1.14.17",
4
4
  "description": "Record and share your AI-driven product development journey",
5
5
  "type": "module",
6
6
  "bin": {