diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 55a0ad0..00ef7d4 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -26,7 +26,7 @@ A clear and concise description of what actually happened. - OS: [e.g. macOS, Windows, Linux] - Node.js Version: [e.g. 14.0.0] - npm Version: [e.g. 6.14.0] -- Cursor Ops Kit Version: [e.g. 1.2.0] +- Cursor Ops Kit Version: [e.g. 1.2.1] ## Additional Context Add any other context about the problem here. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 60f544d..c227f99 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -60,7 +60,7 @@ representative at an online or offline event. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at -[INSERT CONTACT METHOD]. +coc@liftoffllc.com. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/README.md b/README.md index 6e4c76b..1da1259 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ npx cursor-ops version ### Base Configuration (.cursor) ```json { - "version": "1.2.0", + "version": "1.2.1", "rules": [ { "name": "enforceNaming", @@ -182,4 +182,4 @@ Additional rules and overrides for specific roles. For bugs, feature requests, or contributions, please create an issue or submit a pull request. ## License -Developed by LiftOff LLC Engineering 🚀 +Developed by [LiftOff LLC](https://www.liftoffllc.com) Engineering 🚀 diff --git a/lib/init.js b/lib/init.js index 85eb2aa..0393b40 100644 --- a/lib/init.js +++ b/lib/init.js @@ -8,7 +8,7 @@ const role = process.argv[2]; const projectRoot = process.cwd(); const templateRoot = path.join(__dirname, '../templates'); -const CONFIG_VERSION = '1.2.0'; +const CONFIG_VERSION = '1.2.1'; // Track files that were copied for potential rollback const copiedFiles = []; diff --git a/lib/migrate.js b/lib/migrate.js index c5c7034..ad369b6 100644 --- a/lib/migrate.js +++ b/lib/migrate.js @@ -38,6 +38,26 @@ const MIGRATIONS = { } }); return config; + }, + '1.2.1': (config) => { + // Add any new required fields or transformations for 1.2.1 + if (!config.rules) { + config.rules = []; + } + // Ensure all rules have proper structure + config.rules.forEach(rule => { + if (!rule.severity) { + rule.severity = 'warning'; + } + if (!rule.enabled) { + rule.enabled = true; + } + // Add type field if missing + if (!rule.type) { + rule.type = 'base'; + } + }); + return config; } }; @@ -46,12 +66,12 @@ function migrateConfig(configPath) { const config = fs.readJsonSync(configPath); const currentVersion = config.version || '0.0.0'; - if (currentVersion === '1.2.0') { + if (currentVersion === '1.2.1') { debug(`Config ${path.relative(process.cwd(), configPath)} is already at latest version`); return true; } - info(`Migrating config from version ${currentVersion} to 1.2.0`); + info(`Migrating config from version ${currentVersion} to 1.2.1`); // Apply migrations in order let migratedConfig = { ...config }; @@ -63,7 +83,7 @@ function migrateConfig(configPath) { } // Update version - migratedConfig.version = '1.2.0'; + migratedConfig.version = '1.2.1'; // Create backup const backupPath = `${configPath}.pre-migration-${Date.now()}`; @@ -72,7 +92,7 @@ function migrateConfig(configPath) { // Write migrated config fs.writeJsonSync(configPath, migratedConfig, { spaces: 2 }); - success('Successfully migrated config to version 1.2.0'); + success('Successfully migrated config to version 1.2.1'); return true; } catch (err) { diff --git a/package-lock.json b/package-lock.json index dd955a6..d0069b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@liftoffllc/cursor-ops-kit", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@liftoffllc/cursor-ops-kit", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "dependencies": { "fs-extra": "^11.2.0", diff --git a/package.json b/package.json index 90347bd..40375c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@liftoffllc/cursor-ops-kit", - "version": "1.2.0", + "version": "1.2.1", "description": "A toolkit for managing Cursor AI configurations across different project roles", "main": "lib/init.js", "bin": { diff --git a/templates/.cursor/config.json b/templates/.cursor/config.json index 206fcc3..c9f4406 100644 --- a/templates/.cursor/config.json +++ b/templates/.cursor/config.json @@ -1,5 +1,5 @@ { - "version": "1.2.0", + "version": "1.2.1", "rules": [ { "name": "base",