opencode-gitlab-duo-agentic-custom-tools 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -359,16 +359,12 @@ async function createPluginHooks(input) {
|
|
|
359
359
|
always: ["*"],
|
|
360
360
|
metadata: {}
|
|
361
361
|
});
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
if (Array.isArray(payload)) {
|
|
369
|
-
return JSON.stringify(payload, null, 2);
|
|
370
|
-
}
|
|
371
|
-
return "[]";
|
|
362
|
+
const response = await input.client.session.todo({
|
|
363
|
+
path: { id: ctx.sessionID },
|
|
364
|
+
throwOnError: true
|
|
365
|
+
});
|
|
366
|
+
const payload = response.data ?? [];
|
|
367
|
+
return JSON.stringify(payload, null, 2);
|
|
372
368
|
}
|
|
373
369
|
})
|
|
374
370
|
},
|