@standardagents/builder 0.8.1

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/client.d.ts ADDED
@@ -0,0 +1,73 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ /**
4
+ * Type declarations for Standard Agents virtual modules and SDK types
5
+ *
6
+ * Note: The AgentBuilder namespace is declared in @standardagents/builder/dist/index.d.ts
7
+ * and can be augmented by the user's .agents/types.d.ts generated file.
8
+ */
9
+
10
+ declare module 'virtual:@standardagents/router' {
11
+ /**
12
+ * Main router function that handles all Standard Agents requests
13
+ * @param request - The incoming HTTP request
14
+ * @param env - Cloudflare Workers environment bindings
15
+ * @returns Response or null if no route matched
16
+ */
17
+ export function router(request: Request, env: Env): Promise<Response | null>;
18
+ }
19
+
20
+ declare module 'virtual:@standardagents-tools' {
21
+ /**
22
+ * Registry of all discovered tools
23
+ * Maps tool name to loader function
24
+ */
25
+ export const tools: Record<
26
+ string,
27
+ () => Promise<[string, any, (...args: any[]) => Promise<any>]>
28
+ >;
29
+ }
30
+
31
+ declare module 'virtual:@standardagents-hooks' {
32
+ /**
33
+ * Registry of all discovered hooks
34
+ * Maps hook name to loader function
35
+ */
36
+ export const hooks: Record<string, () => Promise<any>>;
37
+ }
38
+
39
+ declare module 'virtual:@standardagents-models' {
40
+ /**
41
+ * Registry of all discovered model definitions
42
+ * Maps model name to loader function
43
+ */
44
+ export const models: Record<string, () => Promise<any>>;
45
+ /**
46
+ * List of all available model names
47
+ */
48
+ export const modelNames: string[];
49
+ }
50
+
51
+ declare module 'virtual:@standardagents-prompts' {
52
+ /**
53
+ * Registry of all discovered prompt definitions
54
+ * Maps prompt name to loader function
55
+ */
56
+ export const prompts: Record<string, () => Promise<any>>;
57
+ /**
58
+ * List of all available prompt names
59
+ */
60
+ export const promptNames: string[];
61
+ }
62
+
63
+ declare module 'virtual:@standardagents-agents' {
64
+ /**
65
+ * Registry of all discovered agent definitions
66
+ * Maps agent name to loader function
67
+ */
68
+ export const agents: Record<string, () => Promise<any>>;
69
+ /**
70
+ * List of all available agent names
71
+ */
72
+ export const agentNames: string[];
73
+ }