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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.js +15 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim-framework",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "FRAIM: Framework for Rigor-based AI Management - Where humans become AI managers through rigorous methodology",
5
5
  "main": "index.js",
6
6
  "bin": {
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
- if (fs.existsSync('agents/cursor')) {
253
- copyDirectory('agents/cursor', '.cursor');
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('agents/cursor directory not found, skipping .cursor creation');
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
- if (fs.existsSync('agents/windsurf')) {
261
- copyDirectory('agents/windsurf', '.windsurf');
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('agents/windsurf directory not found, skipping .windsurf creation');
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
- if (fs.existsSync('agents/claude/CLAUDE.md')) {
269
- const claudeContent = fs.readFileSync('agents/claude/CLAUDE.md', 'utf8');
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('agents/claude/CLAUDE.md not found, skipping CLAUDE.md creation');
279
+ logWarning(`agents/claude/CLAUDE.md not found at ${claudeSrc}, skipping CLAUDE.md creation`);
274
280
  }
275
281
  }
276
282