feat: update Makelore modules and conversations
This commit is contained in:
@@ -29,11 +29,6 @@ export interface EnsureBundledCourseSkillsOptions {
|
||||
sourceDir?: string;
|
||||
}
|
||||
|
||||
export interface EnsureBundledCourseAgentsOptions {
|
||||
managedConfigDir: string;
|
||||
sourceDir?: string;
|
||||
}
|
||||
|
||||
const WRAPPER_PLUGIN_NAME = 'superpowers-niancode.js';
|
||||
const SUPERPOWERS_REPO_DIR = 'superpowers';
|
||||
const SUPERPOWERS_BUNDLES_DIR = 'superpowers-bundles';
|
||||
@@ -68,12 +63,6 @@ export function resolveBundledCourseSkillsDir(input: BundledSuperpowersPathInput
|
||||
: join(input.appPath, '.opencode', 'skills');
|
||||
}
|
||||
|
||||
export function resolveBundledCourseAgentsDir(input: BundledSuperpowersPathInput): string {
|
||||
return input.isPackaged
|
||||
? join(input.resourcesPath, 'course-agents')
|
||||
: join(input.appPath, '.opencode', 'agent');
|
||||
}
|
||||
|
||||
export function getManagedOpencodeConfigDir(userDataDir: string): string {
|
||||
return join(userDataDir, 'opencode', 'niancode-config');
|
||||
}
|
||||
@@ -277,16 +266,3 @@ export function ensureBundledCourseSkills(options: EnsureBundledCourseSkillsOpti
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ensureBundledCourseAgents(options: EnsureBundledCourseAgentsOptions): boolean {
|
||||
const sourceDir = options.sourceDir?.trim();
|
||||
if (!sourceDir || !existsSync(sourceDir)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const targetAgentDir = join(options.managedConfigDir, 'agent');
|
||||
mkdirSync(targetAgentDir, { recursive: true });
|
||||
copyDirectorySync(sourceDir, targetAgentDir);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user