mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
Add skill sync for remaining local adapters
This commit is contained in:
parent
b2c0f3f9a5
commit
e619e64433
18 changed files with 1284 additions and 262 deletions
|
|
@ -15,6 +15,7 @@ import {
|
|||
ensurePaperclipSkillSymlink,
|
||||
ensurePathInEnv,
|
||||
listPaperclipSkillEntries,
|
||||
readPaperclipSkillSyncPreference,
|
||||
removeMaintainerOnlySkillSymlinks,
|
||||
renderTemplate,
|
||||
joinPromptSections,
|
||||
|
|
@ -167,7 +168,14 @@ export async function execute(ctx: AdapterExecutionContext): Promise<AdapterExec
|
|||
const effectiveWorkspaceCwd = useConfiguredInsteadOfAgentHome ? "" : workspaceCwd;
|
||||
const cwd = effectiveWorkspaceCwd || configuredCwd || process.cwd();
|
||||
await ensureAbsoluteDirectory(cwd, { createIfMissing: true });
|
||||
await ensureCursorSkillsInjected(onLog);
|
||||
const cursorSkillEntries = await listPaperclipSkillEntries(__moduleDir);
|
||||
const cursorPreference = readPaperclipSkillSyncPreference(config);
|
||||
const desiredCursorSkillNames = cursorPreference.explicit
|
||||
? cursorPreference.desiredSkills
|
||||
: cursorSkillEntries.map((entry) => entry.name);
|
||||
await ensureCursorSkillsInjected(onLog, {
|
||||
skillsEntries: cursorSkillEntries.filter((entry) => desiredCursorSkillNames.includes(entry.name)),
|
||||
});
|
||||
|
||||
const envConfig = parseObject(config.env);
|
||||
const hasExplicitApiKey =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue