You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e02c8df
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/junior/tests/integration/annotation-cards.test.ts
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ const readResult = () => ({
58
58
afterEach(closeConversationFixture);
59
59
60
60
it("saves plugin object results once per reply, rejects them from reads, leaves background updates silent, and stores only Message card references",async()=>{
61
+
constsaveInputs: unknown[]=[];
61
62
constprevious=setPlugins([
62
63
defineJuniorPlugin({
63
64
manifest: {
@@ -83,7 +84,9 @@ it("saves plugin object results once per reply, rejects them from reads, leaves
83
84
status: z.string().optional(),
84
85
}),
85
86
outputSchema: pluginToolOutputSchema,
86
-
execute: ({ fail, timed_out, status })=>{
87
+
execute: (input)=>{
88
+
saveInputs.push(input);
89
+
const{ fail, timed_out, status }=input;
87
90
if(fail)thrownewError("Object update failed");
88
91
return{
89
92
timed_out,
@@ -121,7 +124,12 @@ it("saves plugin object results once per reply, rejects them from reads, leaves
0 commit comments