@standardagents/builder 0.12.8 → 0.13.0-next.c55f029
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/built-in-routes.js +5424 -1448
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/assets/index.css +1 -1
- package/dist/client/index.js +30 -30
- package/dist/client/vendor.js +1 -1
- package/dist/client/vue.js +1 -1
- package/dist/{discovery-CpMs68Yx.d.ts → discovery-DVviz3By.d.ts} +3 -1
- package/dist/{index-DkbUJ4MM.d.ts → index-T0gR5l-G.d.ts} +228 -4
- package/dist/index.d.ts +338 -17
- package/dist/index.js +8098 -2394
- package/dist/index.js.map +1 -1
- package/dist/packing.d.ts +35 -3
- package/dist/packing.js +245 -12
- package/dist/packing.js.map +1 -1
- package/dist/plugin.js +1161 -331
- package/dist/plugin.js.map +1 -1
- package/dist/test.d.ts +2 -2
- package/dist/{types-pLkJx8vg.d.ts → types-DH3Egc5l.d.ts} +27 -5
- package/package.json +4 -4
package/dist/test.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProviderFactoryConfig, LLMProviderInterface, ProviderRequest, ProviderResponse, ProviderStreamChunk } from '@standardagents/spec';
|
|
2
|
-
import { l as ToolCall } from './index-
|
|
2
|
+
import { l as ToolCall } from './index-T0gR5l-G.js';
|
|
3
3
|
import '@cloudflare/workers-types';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-DH3Egc5l.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* TestScript - Fluent builder for defining deterministic LLM response sequences.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefinitionLoader, AgentDefinition, PackageSignature, PackedMeta } from '@standardagents/spec';
|
|
1
|
+
import { DefinitionLoader, AgentDefinition, PackageSignature, EffectDefinition, MarkedThreadEndpoint, Controller, PackedMeta } from '@standardagents/spec';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Packing system types for Standard Agents builder.
|
|
@@ -26,6 +26,10 @@ interface DiscoveredPackage {
|
|
|
26
26
|
path: string;
|
|
27
27
|
/** All entry agent names (for multiple entry points) */
|
|
28
28
|
entryAgents: string[];
|
|
29
|
+
/** Optional packed effect names (for example, `send_email`) */
|
|
30
|
+
effects?: string[];
|
|
31
|
+
/** Optional packed thread endpoint keys (for example, `status.get`) */
|
|
32
|
+
threadEndpoints?: string[];
|
|
29
33
|
/** Package description (optional) */
|
|
30
34
|
description?: string;
|
|
31
35
|
}
|
|
@@ -76,6 +80,8 @@ type ModelDefBase = {
|
|
|
76
80
|
* Base type for hook definitions in the registry.
|
|
77
81
|
*/
|
|
78
82
|
type HookDefBase = ((...args: unknown[]) => Promise<unknown>) | Record<string, unknown>;
|
|
83
|
+
type EffectDefBase = EffectDefinition<any, any>;
|
|
84
|
+
type ThreadEndpointDefBase = MarkedThreadEndpoint | Controller;
|
|
79
85
|
/**
|
|
80
86
|
* Registry of items within a single namespace.
|
|
81
87
|
*
|
|
@@ -88,6 +94,16 @@ interface NamespaceItems {
|
|
|
88
94
|
tools: Record<string, DefinitionLoader<ToolDefBase>>;
|
|
89
95
|
models: Record<string, DefinitionLoader<ModelDefBase>>;
|
|
90
96
|
hooks: Record<string, DefinitionLoader<HookDefBase>>;
|
|
97
|
+
/**
|
|
98
|
+
* Packed effect handlers keyed by effect name.
|
|
99
|
+
* Optional for backward compatibility with previously packed packages.
|
|
100
|
+
*/
|
|
101
|
+
effects?: Record<string, DefinitionLoader<EffectDefBase>>;
|
|
102
|
+
/**
|
|
103
|
+
* Packed thread endpoint handlers keyed by packed route key.
|
|
104
|
+
* Optional for backward compatibility with previously packed packages.
|
|
105
|
+
*/
|
|
106
|
+
threadEndpoints?: Record<string, DefinitionLoader<ThreadEndpointDefBase>>;
|
|
91
107
|
}
|
|
92
108
|
/**
|
|
93
109
|
* Registry for a packed package namespace.
|
|
@@ -124,7 +140,9 @@ interface PackingAnalysis {
|
|
|
124
140
|
tools: ConstituentItem[];
|
|
125
141
|
models: ConstituentItem[];
|
|
126
142
|
hooks: ConstituentItem[];
|
|
143
|
+
effects: ConstituentItem[];
|
|
127
144
|
agents: ConstituentItem[];
|
|
145
|
+
threadEndpoints: ConstituentItem[];
|
|
128
146
|
};
|
|
129
147
|
/** Items shared with other unpacked agents */
|
|
130
148
|
shared: {
|
|
@@ -132,6 +150,8 @@ interface PackingAnalysis {
|
|
|
132
150
|
tools: string[];
|
|
133
151
|
models: string[];
|
|
134
152
|
hooks: string[];
|
|
153
|
+
effects: string[];
|
|
154
|
+
threadEndpoints: string[];
|
|
135
155
|
};
|
|
136
156
|
/** Any warnings or issues found during analysis */
|
|
137
157
|
warnings: string[];
|
|
@@ -147,7 +167,7 @@ interface ConstituentItem {
|
|
|
147
167
|
/** Absolute file path */
|
|
148
168
|
filePath: string;
|
|
149
169
|
/** How the item was discovered */
|
|
150
|
-
discoveredVia: 'static' | 'uses' | 'manual' | 'prompt-tools' | 'prompt-includes' | 'agent-prompt';
|
|
170
|
+
discoveredVia: 'static' | 'uses' | 'manual' | 'prompt-tools' | 'prompt-includes' | 'agent-prompt' | 'effect' | 'thread-endpoint';
|
|
151
171
|
/** Other agents sharing this item (if any) */
|
|
152
172
|
sharedWith: string[];
|
|
153
173
|
/** Parent item key (e.g., "prompt:customer_support") that discovered this item */
|
|
@@ -160,7 +180,7 @@ interface ItemSelection {
|
|
|
160
180
|
/** Item name */
|
|
161
181
|
name: string;
|
|
162
182
|
/** Type of item */
|
|
163
|
-
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook';
|
|
183
|
+
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook' | 'effect' | 'thread-endpoint';
|
|
164
184
|
/** Absolute file path */
|
|
165
185
|
filePath: string;
|
|
166
186
|
/** Whether to extract (remove from source) or copy (keep in source) */
|
|
@@ -196,6 +216,8 @@ interface PackingOptions {
|
|
|
196
216
|
prompts?: string[];
|
|
197
217
|
models?: string[];
|
|
198
218
|
hooks?: string[];
|
|
219
|
+
effects?: string[];
|
|
220
|
+
threadEndpoints?: string[];
|
|
199
221
|
};
|
|
200
222
|
/** User selections for each item (extract vs copy) */
|
|
201
223
|
itemSelections?: ItemSelection[];
|
|
@@ -249,7 +271,7 @@ interface UnpackableItem {
|
|
|
249
271
|
/** Item name */
|
|
250
272
|
name: string;
|
|
251
273
|
/** Item type */
|
|
252
|
-
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook';
|
|
274
|
+
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook' | 'effect' | 'thread-endpoint';
|
|
253
275
|
/** Target file path in agents/ directory */
|
|
254
276
|
targetPath: string;
|
|
255
277
|
/** Whether this item already exists in the global namespace */
|
|
@@ -279,7 +301,7 @@ interface UnpackItemSelection {
|
|
|
279
301
|
/** Item name */
|
|
280
302
|
name: string;
|
|
281
303
|
/** Item type */
|
|
282
|
-
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook';
|
|
304
|
+
type: 'agent' | 'prompt' | 'tool' | 'model' | 'hook' | 'effect' | 'thread-endpoint';
|
|
283
305
|
/** Action to take */
|
|
284
306
|
action: 'generate' | 'skip';
|
|
285
307
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standardagents/builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-next.c55f029",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"rollup": "^4.0.0",
|
|
73
73
|
"rollup-plugin-esbuild": "^6.0.0",
|
|
74
74
|
"zod": "^4.0.17",
|
|
75
|
-
"@standardagents/sip": "0.
|
|
76
|
-
"@standardagents/spec": "0.
|
|
75
|
+
"@standardagents/sip": "0.13.0-next.c55f029",
|
|
76
|
+
"@standardagents/spec": "0.13.0-next.c55f029"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@cloudflare/vitest-pool-workers": "^0.10.14",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"vue": "^3.5.13",
|
|
110
110
|
"vue-router": "^4.5.0",
|
|
111
111
|
"vue-tsc": "^2.0.0",
|
|
112
|
-
"@standardagents/vue": "0.
|
|
112
|
+
"@standardagents/vue": "0.13.0-next.c55f029"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
115
|
"vite": "^7.0.0",
|