mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
chore: fix bad merge
This commit is contained in:
parent
1dd45908a3
commit
94353f7696
205 changed files with 19244 additions and 14866 deletions
17
sdks/typescript/scripts/patch-openapi-types.mjs
Normal file
17
sdks/typescript/scripts/patch-openapi-types.mjs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { readFileSync, writeFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
const target = resolve(process.cwd(), "src/generated/openapi.ts");
|
||||
let source = readFileSync(target, "utf8");
|
||||
|
||||
const replacements = [
|
||||
["components[\"schemas\"][\"McpCommand\"]", "string"],
|
||||
["components[\"schemas\"][\"McpOAuthConfigOrDisabled\"]", "Record<string, unknown> | null"],
|
||||
["components[\"schemas\"][\"McpRemoteTransport\"]", "string"],
|
||||
];
|
||||
|
||||
for (const [from, to] of replacements) {
|
||||
source = source.split(from).join(to);
|
||||
}
|
||||
|
||||
writeFileSync(target, source);
|
||||
Loading…
Add table
Add a link
Reference in a new issue