From ea6f556ed225ebf747130e7b6574fbc049c5e58f Mon Sep 17 00:00:00 2001 From: Antigravity Assistant Date: Fri, 1 May 2026 01:15:28 -0300 Subject: [PATCH] chore(workflow): fix generate-release github action collision for releases and remove any types --- .agents/workflows/generate-release.md | 4 ++-- open-sse/executors/default.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.agents/workflows/generate-release.md b/.agents/workflows/generate-release.md index c6107339bb..e127c832d4 100644 --- a/.agents/workflows/generate-release.md +++ b/.agents/workflows/generate-release.md @@ -263,8 +263,8 @@ NOTES=$(awk "/^## \\[$VERSION\\]/{flag=1; next} /^---/{if(flag) {flag=0; exit}} if [ -z "$NOTES" ]; then NOTES="OmniRoute v$VERSION Release"; fi git tag -a "v$VERSION" -m "Release v$VERSION" -git push origin --tags -gh release create "v$VERSION" --title "v$VERSION" --notes "$NOTES" --target main +git push origin "v$VERSION" +gh release create "v$VERSION" --repo diegosouzapw/OmniRoute --title "v$VERSION" --notes "$NOTES" --target main || gh release edit "v$VERSION" --repo diegosouzapw/OmniRoute --title "v$VERSION" --notes "$NOTES" ``` ### 14. 🐳 Trigger Docker Hub build (MANDATORY — keep npm and Docker in sync) diff --git a/open-sse/executors/default.ts b/open-sse/executors/default.ts index bbd814b8bc..0faee7c3cd 100644 --- a/open-sse/executors/default.ts +++ b/open-sse/executors/default.ts @@ -353,7 +353,7 @@ export class DefaultExecutor extends BaseExecutor { if (typeof withDefaults === "object" && withDefaults !== null && !Array.isArray(withDefaults)) { if (this.provider?.startsWith?.("anthropic-compatible-")) { if (Object.prototype.hasOwnProperty.call(withDefaults, "stream_options")) { - const withoutStreamOptions = { ...withDefaults } as Record; + const withoutStreamOptions = { ...withDefaults } as Record; delete withoutStreamOptions.stream_options; withDefaults = withoutStreamOptions; } @@ -365,12 +365,12 @@ export class DefaultExecutor extends BaseExecutor { withDefaults = { ...withDefaults, stream_options: { - ...((withDefaults as any).stream_options || {}), + ...(((withDefaults as Record).stream_options as object) || {}), include_usage: true, }, }; } else if (Object.prototype.hasOwnProperty.call(withDefaults, "stream_options")) { - const withoutStreamOptions = { ...withDefaults } as Record; + const withoutStreamOptions = { ...withDefaults } as Record; delete withoutStreamOptions.stream_options; withDefaults = withoutStreamOptions; } @@ -378,7 +378,10 @@ export class DefaultExecutor extends BaseExecutor { } if (this.provider === "qwen" && typeof withDefaults === "object" && withDefaults !== null) { - return sanitizeQwenThinkingToolChoice(withDefaults as any, "QwenExecutor"); + return sanitizeQwenThinkingToolChoice( + withDefaults as Record, + "QwenExecutor" + ); } return withDefaults; }