@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 +73 -0
- package/dist/built-in-routes.js +2333 -0
- package/dist/built-in-routes.js.map +1 -0
- package/dist/client/agents/monacoeditorwork/json.worker.bundle.js +21320 -0
- package/dist/client/assets/codicon.ttf +0 -0
- package/dist/client/assets/editor.worker-CdtUXE0K.js +12 -0
- package/dist/client/assets/img/meta.svg +19 -0
- package/dist/client/assets/img/moonshotai.svg +4 -0
- package/dist/client/assets/img/zai.svg +219 -0
- package/dist/client/assets/index.css +1 -0
- package/dist/client/assets/json.worker-C21G4-GD.js +49 -0
- package/dist/client/assets/monaco.css +1 -0
- package/dist/client/index.html +38 -0
- package/dist/client/index.js +39 -0
- package/dist/client/monaco.js +1508 -0
- package/dist/client/vendor.js +1 -0
- package/dist/client/vue.js +143 -0
- package/dist/index.d.ts +2962 -0
- package/dist/index.js +11016 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp.js +663 -0
- package/dist/mcp.js.map +1 -0
- package/dist/plugin.d.ts +14 -0
- package/dist/plugin.js +3183 -0
- package/dist/plugin.js.map +1 -0
- package/dist/rou3.js +157 -0
- package/dist/rou3.js.map +1 -0
- package/package.json +97 -0
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
|
+
}
|