History

fix tests and typecheck

Rhys Sullivan committed 8 months ago

Commit c19b06c1 parent c82db0d1 file · +19 −15Browse files

Unified · Split

apps/executor/src/server/server.test.ts+19−15
@@ -22,7 +22,7 @@ import { · 21 unmodified lines
2222 controlPlaneOpenApiSpec,
2323 type ControlPlaneClient,
2424 buildLocalSourceArtifact,
25− catalogSyncResultFromMcpManifestEntries,
25+ catalogSyncResultFromMcpManifest,
2626 deriveLocalInstallation,
2727 type ResolveExecutionEnvironment,
2828 resolveLocalWorkspaceContext,
@@ -142,24 +142,28 @@ const writeConfiguredLocalMcpSource = (input: { · 113 unmodified lines
142142 updatedAt: Date.now(),
143143 };
144144
145− const syncResult = catalogSyncResultFromMcpManifestEntries({
145+ const syncResult = catalogSyncResultFromMcpManifest({
146146 source,
147147 endpoint: input.endpoint,
148− manifestEntries: [{
149− toolId: "gated_echo",
150− toolName: "gated_echo",
151− description: "Asks for approval before echoing a value",
152− inputSchema: {
153− type: "object",
154− properties: {
155− value: {
156− type: "string",
148+ manifest: {
149+ version: 2,
150+ server: null,
151+ tools: [{
152+ toolId: "gated_echo",
153+ toolName: "gated_echo",
154+ description: "Asks for approval before echoing a value",
155+ inputSchema: {
156+ type: "object",
157+ properties: {
158+ value: {
159+ type: "string",
160+ },
157161 },
162+ required: ["value"],
163+ additionalProperties: false,
158164 },
159− required: ["value"],
160− additionalProperties: false,
161− },
162− }],
165+ }],
166+ },
163167 });
164168
165169 yield* writeLocalSourceArtifact({