mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 07:03:48 +00:00
feat: acp http adapter
This commit is contained in:
parent
2ba630c180
commit
b4c8564cb2
217 changed files with 18785 additions and 17400 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