History

return schemas

Rhys Sullivan committed 7 months ago

Commit ea110d91 parent 639f6fa1 file · +7 −2Browse files

Unified · Split

packages/core/storage-postgres/src/tool-registry.ts+7−2
@@ -8,7 +8,7 @@ import { eq, and, inArray, sql } from "drizzle-orm"; · 7 unmodified lines
8import type { ToolId } from "@executor/sdk";8import type { ToolId } from "@executor/sdk";
9import type { DrizzleDb } from "./types";9import type { DrizzleDb } from "./types";
10import { ToolNotFoundError, ToolInvocationError, ToolRegistration } from "@executor/sdk";10import { ToolNotFoundError, ToolInvocationError, ToolRegistration } from "@executor/sdk";
11import { buildToolTypeScriptPreview } from "@executor/sdk";11import { buildToolTypeScriptPreview, reattachDefs } from "@executor/sdk";
12import type { ToolInvoker, ToolListFilter, InvokeOptions, RuntimeToolHandler } from "@executor/sdk";12import type { ToolInvoker, ToolListFilter, InvokeOptions, RuntimeToolHandler } from "@executor/sdk";
13 13
14import { tools, toolDefinitions } from "./schema";14import { tools, toolDefinitions } from "./schema";
@@ -105,7 +105,12 @@ export const makePgToolRegistry = (db: DrizzleDb, organizationId: string) => { · 90 unmodified lines
105 outputSchema: t.outputSchema,105 outputSchema: t.outputSchema,
106 defs,106 defs,
107 });107 });
108 return { id: t.id, ...typeScriptPreview };108 return {
109 id: t.id,
110 ...typeScriptPreview,
111 inputSchema: t.inputSchema ? reattachDefs(t.inputSchema, defs) : undefined,
112 outputSchema: t.outputSchema ? reattachDefs(t.outputSchema, defs) : undefined,
113 };
109 }),114 }),
110 115
111 definitions: () =>116 definitions: () =>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t