move rule-transformer.js to /src/utils
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
|||||||
BRAND_NAMES,
|
BRAND_NAMES,
|
||||||
isValidBrand,
|
isValidBrand,
|
||||||
getBrandProfile
|
getBrandProfile
|
||||||
} from '../../../../scripts/modules/rule-transformer.js';
|
} from '../../../../src/utils/rule-transformer.js';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import figlet from 'figlet';
|
|||||||
import boxen from 'boxen';
|
import boxen from 'boxen';
|
||||||
import gradient from 'gradient-string';
|
import gradient from 'gradient-string';
|
||||||
import { isSilentMode } from './modules/utils.js';
|
import { isSilentMode } from './modules/utils.js';
|
||||||
import { convertAllRulesToBrandRules } from './modules/rule-transformer.js';
|
import { convertAllRulesToBrandRules } from '../src/utils/rule-transformer.js';
|
||||||
import { runInteractiveRulesSetup } from '../src/utils/rules-setup.js';
|
import { runInteractiveRulesSetup } from '../src/utils/rules-setup.js';
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
|
|
||||||
@@ -748,7 +748,7 @@ function createProjectStructure(
|
|||||||
// Import MCP configuration helper
|
// Import MCP configuration helper
|
||||||
import { setupMCPConfiguration } from '../src/utils/mcp-utils.js';
|
import { setupMCPConfiguration } from '../src/utils/mcp-utils.js';
|
||||||
// Import centralized brand profile logic
|
// Import centralized brand profile logic
|
||||||
import { BRAND_PROFILES, BRAND_NAMES } from './modules/rule-transformer.js';
|
import { BRAND_PROFILES, BRAND_NAMES } from '../src/utils/rule-transformer.js';
|
||||||
|
|
||||||
// Dynamically generate availableBrandRules from BRAND_NAMES and brand profiles
|
// Dynamically generate availableBrandRules from BRAND_NAMES and brand profiles
|
||||||
const availableBrandRules = BRAND_NAMES.map((name) => {
|
const availableBrandRules = BRAND_NAMES.map((name) => {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ import {
|
|||||||
BRAND_NAMES,
|
BRAND_NAMES,
|
||||||
isValidBrand,
|
isValidBrand,
|
||||||
getBrandProfile
|
getBrandProfile
|
||||||
} from './rule-transformer.js';
|
} from '../../src/utils/rule-transformer.js';
|
||||||
import { runInteractiveRulesSetup } from '../../src/utils/rules-setup.js';
|
import { runInteractiveRulesSetup } from '../../src/utils/rules-setup.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
*/
|
*/
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { log } from './utils.js';
|
import { log } from '../../scripts/modules/utils.js';
|
||||||
|
|
||||||
// Import the shared MCP configuration helper
|
// Import the shared MCP configuration helper
|
||||||
import { setupMCPConfiguration } from '../../src/utils/mcp-utils.js';
|
import { setupMCPConfiguration } from './mcp-utils.js';
|
||||||
|
|
||||||
// --- Centralized Brand Helpers ---
|
// --- Centralized Brand Helpers ---
|
||||||
import { clineProfile, cursorProfile, rooProfile, windsurfProfile } from '../profiles/index.js';
|
import { clineProfile, cursorProfile, rooProfile, windsurfProfile } from '../../scripts/profiles/index.js';
|
||||||
|
|
||||||
export const BRAND_PROFILES = {
|
export const BRAND_PROFILES = {
|
||||||
cline: clineProfile,
|
cline: clineProfile,
|
||||||
@@ -335,4 +335,4 @@ export {
|
|||||||
convertAllRulesToBrandRules,
|
convertAllRulesToBrandRules,
|
||||||
convertRuleToBrandRule,
|
convertRuleToBrandRule,
|
||||||
removeBrandRules
|
removeBrandRules
|
||||||
};
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import readline from 'readline';
|
import readline from 'readline';
|
||||||
import inquirer from 'inquirer';
|
import inquirer from 'inquirer';
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import { BRAND_PROFILES, BRAND_NAMES } from '../../scripts/modules/rule-transformer.js';
|
import { BRAND_PROFILES, BRAND_NAMES } from './rule-transformer.js';
|
||||||
|
|
||||||
// Dynamically generate availableBrandRules from BRAND_NAMES and brand profiles
|
// Dynamically generate availableBrandRules from BRAND_NAMES and brand profiles
|
||||||
const availableBrandRules = BRAND_NAMES.map((name) => {
|
const availableBrandRules = BRAND_NAMES.map((name) => {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { dirname } from 'path';
|
|||||||
import {
|
import {
|
||||||
convertRuleToBrandRule,
|
convertRuleToBrandRule,
|
||||||
convertAllRulesToBrandRules
|
convertAllRulesToBrandRules
|
||||||
} from '../../scripts/modules/rule-transformer.js';
|
} from '../../src/utils/rule-transformer.js';
|
||||||
import * as cursorProfile from '../../scripts/profiles/cursor.js';
|
import * as cursorProfile from '../../scripts/profiles/cursor.js';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { dirname } from 'path';
|
|||||||
import {
|
import {
|
||||||
convertRuleToBrandRule,
|
convertRuleToBrandRule,
|
||||||
convertAllRulesToBrandRules
|
convertAllRulesToBrandRules
|
||||||
} from '../../scripts/modules/rule-transformer.js';
|
} from '../../src/utils/rule-transformer.js';
|
||||||
import * as rooProfile from '../../scripts/profiles/roo.js';
|
import * as rooProfile from '../../scripts/profiles/roo.js';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import fs from 'fs';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
import { dirname } from 'path';
|
import { dirname } from 'path';
|
||||||
import { convertRuleToBrandRule } from '../../scripts/modules/rule-transformer.js';
|
import { convertRuleToBrandRule } from '../../src/utils/rule-transformer.js';
|
||||||
import * as windsurfProfile from '../../scripts/profiles/windsurf.js';
|
import * as windsurfProfile from '../../scripts/profiles/windsurf.js';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
|||||||
Reference in New Issue
Block a user