@xn-intenton-z2a/agentic-lib 7.1.95 → 7.1.96
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/package.json
CHANGED
|
@@ -337,23 +337,10 @@ export async function discussions(context) {
|
|
|
337
337
|
// Guard: never dispatch workflows from the SDK repo itself (agentic-lib)
|
|
338
338
|
const isSdkRepo = process.env.GITHUB_REPOSITORY === "xn-intenton-z2a/agentic-lib";
|
|
339
339
|
|
|
340
|
-
// Request supervisor evaluation
|
|
340
|
+
// Request supervisor evaluation — dispatch is handled by the bot workflow's
|
|
341
|
+
// dispatch-supervisor job, so we just log the action here to avoid double dispatch.
|
|
341
342
|
if (action === "request-supervisor") {
|
|
342
|
-
|
|
343
|
-
core.info("Skipping supervisor dispatch — running in SDK repo");
|
|
344
|
-
} else {
|
|
345
|
-
try {
|
|
346
|
-
await octokit.rest.actions.createWorkflowDispatch({
|
|
347
|
-
...context.repo,
|
|
348
|
-
workflow_id: "agentic-lib-workflow.yml",
|
|
349
|
-
ref: "main",
|
|
350
|
-
inputs: { message: actionArg || "Discussion bot referral" },
|
|
351
|
-
});
|
|
352
|
-
core.info(`Dispatched supervisor with message: ${actionArg}`);
|
|
353
|
-
} catch (err) {
|
|
354
|
-
core.warning(`Failed to dispatch supervisor: ${err.message}`);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
343
|
+
core.info(`Supervisor requested with message: ${actionArg || "Discussion bot referral"} (dispatch handled by bot workflow)`);
|
|
357
344
|
}
|
|
358
345
|
|
|
359
346
|
// Stop automation
|