@townco/apiclient 0.0.34 → 0.0.36
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.
- package/dist/index.d.ts +18 -2
- package/dist/server.d.ts +30 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,13 +57,29 @@ export declare const createClient: ({ shedUrl, accessToken, debug, }: {
|
|
|
57
57
|
}>;
|
|
58
58
|
deploy: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
59
59
|
input: {
|
|
60
|
-
sha256: string;
|
|
61
60
|
agent: string;
|
|
62
61
|
shedUrl: string;
|
|
63
62
|
agentUser?: string | undefined;
|
|
64
63
|
agentPass?: string | undefined;
|
|
65
64
|
env?: Record<string, string> | undefined;
|
|
66
|
-
}
|
|
65
|
+
} & ({
|
|
66
|
+
type: "repo-deploy";
|
|
67
|
+
sha256: string;
|
|
68
|
+
} | {
|
|
69
|
+
type: "definition-deploy";
|
|
70
|
+
definition: {
|
|
71
|
+
version?: string | undefined;
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
systemPrompt: string | null;
|
|
74
|
+
model: string;
|
|
75
|
+
mcps?: {
|
|
76
|
+
name: string;
|
|
77
|
+
transport: "http";
|
|
78
|
+
url: string;
|
|
79
|
+
headers?: Record<string, string> | undefined;
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
};
|
|
82
|
+
});
|
|
67
83
|
output: AsyncIterable<{
|
|
68
84
|
status: string;
|
|
69
85
|
error?: never;
|
package/dist/server.d.ts
CHANGED
|
@@ -65,6 +65,18 @@ export type MachineProcess = {
|
|
|
65
65
|
listenPorts: number[];
|
|
66
66
|
};
|
|
67
67
|
export declare const getMachineProcesses: (flyAppName: string) => Promise<MachineProcess[]>;
|
|
68
|
+
declare const AgentDefinitionSchema: z.ZodObject<{
|
|
69
|
+
version: z.ZodOptional<z.ZodString>;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
72
|
+
model: z.ZodString;
|
|
73
|
+
mcps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
transport: z.ZodLiteral<"http">;
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
68
80
|
export declare const router: import("@trpc/server").TRPCBuiltRouter<{
|
|
69
81
|
ctx: {
|
|
70
82
|
user: import("@supabase/supabase-js").User | null;
|
|
@@ -120,13 +132,29 @@ export declare const router: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
120
132
|
}>;
|
|
121
133
|
deploy: import("@trpc/server").TRPCSubscriptionProcedure<{
|
|
122
134
|
input: {
|
|
123
|
-
sha256: string;
|
|
124
135
|
agent: string;
|
|
125
136
|
shedUrl: string;
|
|
126
137
|
agentUser?: string | undefined;
|
|
127
138
|
agentPass?: string | undefined;
|
|
128
139
|
env?: Record<string, string> | undefined;
|
|
129
|
-
}
|
|
140
|
+
} & ({
|
|
141
|
+
type: "repo-deploy";
|
|
142
|
+
sha256: string;
|
|
143
|
+
} | {
|
|
144
|
+
type: "definition-deploy";
|
|
145
|
+
definition: {
|
|
146
|
+
version?: string | undefined;
|
|
147
|
+
description?: string | undefined;
|
|
148
|
+
systemPrompt: string | null;
|
|
149
|
+
model: string;
|
|
150
|
+
mcps?: {
|
|
151
|
+
name: string;
|
|
152
|
+
transport: "http";
|
|
153
|
+
url: string;
|
|
154
|
+
headers?: Record<string, string> | undefined;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
};
|
|
157
|
+
});
|
|
130
158
|
output: AsyncIterable<{
|
|
131
159
|
status: string;
|
|
132
160
|
error?: never;
|
|
@@ -310,17 +338,5 @@ export interface AgentDefinitionRecord {
|
|
|
310
338
|
source_object_id: string | null;
|
|
311
339
|
user_id: string;
|
|
312
340
|
}
|
|
313
|
-
declare const AgentDefinitionSchema: z.ZodObject<{
|
|
314
|
-
version: z.ZodOptional<z.ZodString>;
|
|
315
|
-
description: z.ZodOptional<z.ZodString>;
|
|
316
|
-
systemPrompt: z.ZodNullable<z.ZodString>;
|
|
317
|
-
model: z.ZodString;
|
|
318
|
-
mcps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
-
name: z.ZodString;
|
|
320
|
-
transport: z.ZodLiteral<"http">;
|
|
321
|
-
url: z.ZodString;
|
|
322
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
323
|
-
}, z.core.$strip>>>;
|
|
324
|
-
}, z.core.$strip>;
|
|
325
341
|
export type AppRouter = typeof router;
|
|
326
342
|
export {};
|