fraim-framework 2.0.1 → 2.0.2

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 +27 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim-framework",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "FRAIM v2: Framework for Rigor-based AI Management - Transform from solo developer to AI manager orchestrating production-ready code with enterprise-grade discipline",
5
5
  "main": "index.js",
6
6
  "bin": {
package/setup.js CHANGED
@@ -802,4 +802,30 @@ Owner: <agent>
802
802
  ]`;
803
803
  writeFile('labels.json', labelsContent);
804
804
  logSuccess('Created labels.json');
805
- }
805
+ }
806
+
807
+ // Export the main setup function
808
+ function runSetup() {
809
+ console.log('šŸš€ Setting up FRAIM in current repository...\n');
810
+
811
+ try {
812
+ createProjectStructure();
813
+ console.log('\nāœ… FRAIM setup complete!');
814
+ console.log('šŸŽÆ Your repository is now ready for AI agent management.');
815
+ console.log('šŸ“š Next steps:');
816
+ console.log(' 1. Customize .ai-agents/rules/architecture.md for your project');
817
+ console.log(' 2. Update .ai-agents/scripts/cleanup-branch.ts with your cleanup logic');
818
+ console.log(' 3. Copy scripts from sample_package.json to your package.json');
819
+ console.log(' 4. Start creating issues with phase labels!');
820
+ } catch (error) {
821
+ console.error('āŒ Setup failed:', error.message);
822
+ throw error;
823
+ }
824
+ }
825
+
826
+ // If this file is run directly, execute setup
827
+ if (require.main === module) {
828
+ runSetup();
829
+ }
830
+
831
+ module.exports = { runSetup };