create-lore 0.1.2 → 0.1.4

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.
@@ -56,7 +56,13 @@ try {
56
56
 
57
57
  // -- Write .lore-config --
58
58
  const projectName = isPath ? path.basename(targetDir) : name;
59
- const config = { name: projectName, created: new Date().toISOString().split('T')[0] };
59
+ // Read version from the template's .lore-config so instances track their source version
60
+ const templateConfig = JSON.parse(fs.readFileSync(path.join(targetDir, '.lore-config'), 'utf8'));
61
+ const config = {
62
+ name: projectName,
63
+ version: templateConfig.version || '0.0.0',
64
+ created: new Date().toISOString().split('T')[0],
65
+ };
60
66
  fs.writeFileSync(path.join(targetDir, '.lore-config'), JSON.stringify(config, null, 2) + '\n');
61
67
 
62
68
  // -- Initialize git --
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lore",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Create a new Lore knowledge-persistent agent repo",
5
5
  "bin": {
6
6
  "create-lore": "bin/create-lore.js"