@townco/apiclient 0.0.38 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/server.d.ts +33 -3
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { FileObject } from "@supabase/storage-js";
2
2
  import type { z } from "zod";
3
+ export declare const createSupabaseClient: (tok?: string | undefined) => import("@supabase/supabase-js").SupabaseClient<any, "public", "public", any, any>;
3
4
  export declare const createContext: ({ req }: {
4
5
  req: Request;
5
6
  }) => Promise<{
@@ -65,7 +66,7 @@ export type MachineProcess = {
65
66
  listenPorts: number[];
66
67
  };
67
68
  export declare const getMachineProcesses: (flyAppName: string) => Promise<MachineProcess[]>;
68
- declare const AgentDefinitionSchema: z.ZodObject<{
69
+ export declare const AgentDefinitionSchema: z.ZodObject<{
69
70
  version: z.ZodOptional<z.ZodString>;
70
71
  description: z.ZodOptional<z.ZodString>;
71
72
  systemPrompt: z.ZodNullable<z.ZodString>;
@@ -89,7 +90,9 @@ declare const AgentDefinitionSchema: z.ZodObject<{
89
90
  url: z.ZodString;
90
91
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
91
92
  }, z.core.$strip>>>;
93
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
94
  }, z.core.$strip>>>;
95
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
96
  }, z.core.$strip>;
94
97
  export declare const router: import("@trpc/server").TRPCBuiltRouter<{
95
98
  ctx: {
@@ -151,6 +154,32 @@ export declare const router: import("@trpc/server").TRPCBuiltRouter<{
151
154
  };
152
155
  meta: object;
153
156
  }>;
157
+ deployResearcher: import("@trpc/server").TRPCSubscriptionProcedure<{
158
+ input: {
159
+ agentName: string;
160
+ shedUrl: string;
161
+ mcps?: {
162
+ name: string;
163
+ transport: "http";
164
+ url: string;
165
+ headers?: Record<string, string> | undefined;
166
+ }[] | undefined;
167
+ };
168
+ output: AsyncIterable<{
169
+ status: string;
170
+ error?: never;
171
+ agentUrl?: never;
172
+ } | {
173
+ error: unknown;
174
+ status?: never;
175
+ agentUrl?: never;
176
+ } | {
177
+ error?: never;
178
+ status: string;
179
+ agentUrl: string;
180
+ }, void, unknown>;
181
+ meta: object;
182
+ }>;
154
183
  deploy: import("@trpc/server").TRPCSubscriptionProcedure<{
155
184
  input: {
156
185
  agent: string;
@@ -187,7 +216,9 @@ export declare const router: import("@trpc/server").TRPCBuiltRouter<{
187
216
  url: string;
188
217
  headers?: Record<string, string> | undefined;
189
218
  }[] | undefined;
219
+ tools?: string[] | undefined;
190
220
  }[] | undefined;
221
+ tools?: string[] | undefined;
191
222
  };
192
223
  });
193
224
  output: AsyncIterable<{
@@ -202,7 +233,7 @@ export declare const router: import("@trpc/server").TRPCBuiltRouter<{
202
233
  error?: never;
203
234
  status: string;
204
235
  agentUrl: string;
205
- }, void, any>;
236
+ }, void, unknown>;
206
237
  meta: object;
207
238
  }>;
208
239
  "library.create": import("@trpc/server").TRPCMutationProcedure<{
@@ -409,4 +440,3 @@ export interface AgentDefinitionRecord {
409
440
  user_id: string;
410
441
  }
411
442
  export type AppRouter = typeof router;
412
- export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@townco/apiclient",
3
3
  "type": "module",
4
- "version": "0.0.38",
4
+ "version": "0.0.40",
5
5
  "description": "apiclient",
6
6
  "license": "UNLICENSED",
7
7
  "main": "./dist/index.js",