feat(cursor): export skill injection helper and document auto-behaviors

Export ensureCursorSkillsInjected from the server entrypoint and add
a test for skill directory injection. Document the auto-inject and
auto-trust behaviors in the adapter notes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dotta
2026-03-05 08:35:59 -06:00
parent 1c9b7ef918
commit e1b24c1d5c
3 changed files with 106 additions and 1 deletions

View File

@@ -78,4 +78,6 @@ Notes:
- Runs are executed with: agent -p --output-format stream-json ...
- Prompts are passed as a final positional argument.
- Sessions are resumed with --resume when stored session cwd matches current cwd.
- Paperclip auto-injects local skills into "~/.cursor/skills" when missing, so Cursor can discover "$paperclip" and related skills on local runs.
- Paperclip auto-adds --trust unless one of --trust/--yolo/-f is already present in extraArgs.
`;

View File

@@ -1,4 +1,4 @@
export { execute } from "./execute.js";
export { execute, ensureCursorSkillsInjected } from "./execute.js";
export { testEnvironment } from "./test.js";
export { parseCursorJsonl, isCursorUnknownSessionError } from "./parse.js";
import type { AdapterSessionCodec } from "@paperclipai/adapter-utils";