feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -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;
}