mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-19 20:10:39 +09:00
Bundle artifact upload helper with Paperclip skill
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
e7cdd0f8c5
commit
c4bb68c14b
8 changed files with 18 additions and 14 deletions
|
|
@ -702,7 +702,7 @@ describe.sequential("agent skill routes", () => {
|
|||
expect(mockAgentInstructionsService.materializeManagedBundle).toHaveBeenCalledWith(
|
||||
expect.any(Object),
|
||||
expect.objectContaining({
|
||||
"AGENTS.md": expect.stringContaining("scripts/paperclip-upload-artifact.sh"),
|
||||
"AGENTS.md": expect.stringContaining("skills/paperclip/scripts/paperclip-upload-artifact.sh"),
|
||||
}),
|
||||
expect.any(Object),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@ describe("paperclip skill utils", () => {
|
|||
expect(skillBody).toContain("POST");
|
||||
expect(skillBody).toContain("/api/companies/$PAPERCLIP_COMPANY_ID/issues/$PAPERCLIP_TASK_ID/attachments");
|
||||
expect(skillBody).toContain("/api/issues/$PAPERCLIP_TASK_ID/work-products");
|
||||
await expect(
|
||||
fs.access(path.resolve("skills/paperclip/scripts/paperclip-upload-artifact.sh")),
|
||||
).resolves.toBeUndefined();
|
||||
await expect(fs.access(path.resolve("scripts/paperclip-upload-artifact.sh"))).rejects.toThrow();
|
||||
});
|
||||
|
||||
it("marks skills with required: false in SKILL.md frontmatter as optional", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue