Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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].
[email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ npx cursor-ops version
### Base Configuration (.cursor)
```json
{
"version": "1.2.0",
"version": "1.2.1",
"rules": [
{
"name": "enforceNaming",
Expand Down Expand Up @@ -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 🚀
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
28 changes: 24 additions & 4 deletions lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand All @@ -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 };
Expand All @@ -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()}`;
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion templates/.cursor/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.0",
"version": "1.2.1",
"rules": [
{
"name": "base",
Expand Down