Bundle artifact upload helper with Paperclip skill
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user