@weave-apps/sdk 0.1.3 → 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.
- package/bin/init.js +5 -5
- package/package.json +1 -1
package/bin/init.js
CHANGED
|
@@ -254,13 +254,13 @@ if (fs.existsSync(readmePath)) {
|
|
|
254
254
|
console.warn('⚠️ Warning: README.md template not found in SDK templates');
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
// Copy
|
|
258
|
-
const specPath = path.join(__dirname, '..', 'templates', '
|
|
257
|
+
// Copy WEAVE_SPEC.md from SDK templates
|
|
258
|
+
const specPath = path.join(__dirname, '..', 'templates', 'WEAVE_SPEC.md');
|
|
259
259
|
if (fs.existsSync(specPath)) {
|
|
260
260
|
const specContent = fs.readFileSync(specPath, 'utf8');
|
|
261
|
-
fs.writeFileSync(path.join(projectDir, '
|
|
261
|
+
fs.writeFileSync(path.join(projectDir, 'WEAVE_SPEC.md'), specContent);
|
|
262
262
|
} else {
|
|
263
|
-
console.warn('⚠️ Warning:
|
|
263
|
+
console.warn('⚠️ Warning: WEAVE_SPEC.md not found in SDK templates');
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
// Create .gitignore
|
|
@@ -279,7 +279,7 @@ console.log(' ├── src/');
|
|
|
279
279
|
console.log(' │ └── app.ts');
|
|
280
280
|
console.log(' ├── package.json');
|
|
281
281
|
console.log(' ├── tsconfig.json (extends SDK config)');
|
|
282
|
-
console.log(' ├──
|
|
282
|
+
console.log(' ├── WEAVE_SPEC.md (AI assistant guide)');
|
|
283
283
|
console.log(' └── README.md\n');
|
|
284
284
|
console.log('🚀 Next steps:');
|
|
285
285
|
console.log(` cd ${appName}`);
|