fraim-framework 1.0.6 → 1.0.7
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/package.json +1 -1
- package/setup.js +15 -9
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -248,29 +248,35 @@ jobs:
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
function createAgentFolders() {
|
|
251
|
+
// Get the directory where this script is located (FRAIM package directory)
|
|
252
|
+
const fraimDir = __dirname;
|
|
253
|
+
|
|
251
254
|
// Create .cursor folder at top level with all contents
|
|
252
|
-
|
|
253
|
-
|
|
255
|
+
const cursorSrc = path.join(fraimDir, 'agents', 'cursor');
|
|
256
|
+
if (fs.existsSync(cursorSrc)) {
|
|
257
|
+
copyDirectory(cursorSrc, '.cursor');
|
|
254
258
|
logSuccess('Created .cursor folder with all contents');
|
|
255
259
|
} else {
|
|
256
|
-
logWarning(
|
|
260
|
+
logWarning(`agents/cursor directory not found at ${cursorSrc}, skipping .cursor creation`);
|
|
257
261
|
}
|
|
258
262
|
|
|
259
263
|
// Create .windsurf folder at top level with all contents
|
|
260
|
-
|
|
261
|
-
|
|
264
|
+
const windsurfSrc = path.join(fraimDir, 'agents', 'windsurf');
|
|
265
|
+
if (fs.existsSync(windsurfSrc)) {
|
|
266
|
+
copyDirectory(windsurfSrc, '.windsurf');
|
|
262
267
|
logSuccess('Created .windsurf folder with all contents');
|
|
263
268
|
} else {
|
|
264
|
-
logWarning(
|
|
269
|
+
logWarning(`agents/windsurf directory not found at ${windsurfSrc}, skipping .windsurf creation`);
|
|
265
270
|
}
|
|
266
271
|
|
|
267
272
|
// Create CLAUDE.md at top level
|
|
268
|
-
|
|
269
|
-
|
|
273
|
+
const claudeSrc = path.join(fraimDir, 'agents', 'claude', 'CLAUDE.md');
|
|
274
|
+
if (fs.existsSync(claudeSrc)) {
|
|
275
|
+
const claudeContent = fs.readFileSync(claudeSrc, 'utf8');
|
|
270
276
|
writeFile('CLAUDE.md', claudeContent);
|
|
271
277
|
logSuccess('Created CLAUDE.md at top level');
|
|
272
278
|
} else {
|
|
273
|
-
logWarning(
|
|
279
|
+
logWarning(`agents/claude/CLAUDE.md not found at ${claudeSrc}, skipping CLAUDE.md creation`);
|
|
274
280
|
}
|
|
275
281
|
}
|
|
276
282
|
|