@standardagents/builder 0.13.2 → 0.14.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/dist/built-in-routes.js +168 -189
- package/dist/built-in-routes.js.map +1 -1
- package/dist/{index-8zDQpR2z.d.ts → index-CGbIvNZQ.d.ts} +18 -18
- package/dist/index.d.ts +4 -16
- package/dist/index.js +233 -244
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +20 -30
- package/dist/plugin.js.map +1 -1
- package/dist/test.d.ts +1 -1
- package/package.json +4 -4
|
@@ -91,30 +91,30 @@ interface Agent {
|
|
|
91
91
|
side_a_stop_tool: string | null;
|
|
92
92
|
side_a_stop_tool_response_property: string | null;
|
|
93
93
|
side_a_max_steps: number | null;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
side_a_session_stop_tool: string | null;
|
|
95
|
+
side_a_session_stop_message_property: string | null;
|
|
96
|
+
side_a_session_stop_attachments_property: string | null;
|
|
97
|
+
side_a_session_fail_tool: string | null;
|
|
98
|
+
side_a_session_fail_message_property: string | null;
|
|
99
|
+
side_a_session_fail_attachments_property: string | null;
|
|
100
|
+
side_a_session_status_tool: string | null;
|
|
101
|
+
side_a_session_status_message_property: string | null;
|
|
102
|
+
side_a_session_status_attachments_property: string | null;
|
|
103
103
|
side_b_label: string | null;
|
|
104
104
|
side_b_agent_prompt: string | null;
|
|
105
105
|
side_b_stop_on_response: boolean;
|
|
106
106
|
side_b_stop_tool: string | null;
|
|
107
107
|
side_b_stop_tool_response_property: string | null;
|
|
108
108
|
side_b_max_steps: number | null;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
side_b_session_stop_tool: string | null;
|
|
110
|
+
side_b_session_stop_message_property: string | null;
|
|
111
|
+
side_b_session_stop_attachments_property: string | null;
|
|
112
|
+
side_b_session_fail_tool: string | null;
|
|
113
|
+
side_b_session_fail_message_property: string | null;
|
|
114
|
+
side_b_session_fail_attachments_property: string | null;
|
|
115
|
+
side_b_session_status_tool: string | null;
|
|
116
|
+
side_b_session_status_message_property: string | null;
|
|
117
|
+
side_b_session_status_attachments_property: string | null;
|
|
118
118
|
hooks?: string[];
|
|
119
119
|
}
|
|
120
120
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AgentPluginOptions, agentbuilder } from './plugin.js';
|
|
2
|
-
import { T as ThreadEnv, a as ThreadMetadata, F as FileRecord, b as FlowState, M as Message, c as FileStats, G as GrepResult, A as AttachmentRef, d as MessageContent, E as Env, e as ThreadInstance } from './index-
|
|
3
|
-
export { k as Agent, j as BuilderThreadEndpointHandler, B as Controller, h as ControllerContext, n as FlowResult, q as ImageContentPart, I as ImageMetadata, L as LLMResponse, r as MultimodalContent, R as RequestContext, S as StorageBackend, o as TelemetryEvent, p as TextContentPart, i as ThreadEndpointContext, l as ToolCall, m as ToolResult, g as createThreadEndpointHandler, f as defineController } from './index-
|
|
2
|
+
import { T as ThreadEnv, a as ThreadMetadata, F as FileRecord, b as FlowState, M as Message, c as FileStats, G as GrepResult, A as AttachmentRef, d as MessageContent, E as Env, e as ThreadInstance } from './index-CGbIvNZQ.js';
|
|
3
|
+
export { k as Agent, j as BuilderThreadEndpointHandler, B as Controller, h as ControllerContext, n as FlowResult, q as ImageContentPart, I as ImageMetadata, L as LLMResponse, r as MultimodalContent, R as RequestContext, S as StorageBackend, o as TelemetryEvent, p as TextContentPart, i as ThreadEndpointContext, l as ToolCall, m as ToolResult, g as createThreadEndpointHandler, f as defineController } from './index-CGbIvNZQ.js';
|
|
4
4
|
import { SubagentRegistryEntry, QueueMessageInput, ModelDefinition as ModelDefinition$1, ToolArgs, PromptTextPart, PromptEnvPart, VariableDefinition, SubpromptConfig as SubpromptConfig$1, PromptToolConfig as PromptToolConfig$1, SubagentToolConfig as SubagentToolConfig$1, ReasoningConfig, SideConfig as SideConfig$1, LLMProviderInterface, ContentPart, TextPart, ImagePart, FilePart, NamespaceContext, DefinitionLoader } from '@standardagents/spec';
|
|
5
5
|
export { AgentType, DefinitionLoader, GlobalNamespaceContext, HookSignatures, ImageContent, ModelCapabilities, ModelProvider, NamespaceContext, PackageSignature, PackedExports, PackedMeta, PackedMetadata, PackedNamespaceContext, PromptInput, PromptTextPart, ProviderAssistantMessage, ProviderError, ProviderErrorCode, ProviderFactory, ProviderFactoryConfig, ProviderFinishReason, ProviderGeneratedImage, ProviderMessage, ProviderMessageContent, ModelCapabilities as ProviderModelCapabilities, ProviderReasoningDetail, ProviderRequest, ProviderResponse, ProviderStreamChunk, ProviderSystemMessage, ProviderTool, ProviderToolCallPart, ProviderToolMessage, ProviderToolResultContent, ProviderUsage, ProviderUserMessage, ReasoningConfig, StructuredPrompt, TextContent, Tool, ToolArgs, ToolArgsNode, ToolArgsRawShape, ToolContent, belongsToPackage, defineAgent, defineHook, defineModel, definePrompt, defineTool, isPacked, isVisibleInNamespace, mapReasoningLevel } from '@standardagents/spec';
|
|
6
6
|
import { DurableObject } from 'cloudflare:workers';
|
|
@@ -593,7 +593,7 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
|
|
|
593
593
|
tool_results: string | null;
|
|
594
594
|
is_complete: boolean;
|
|
595
595
|
created_at: number;
|
|
596
|
-
}>;
|
|
596
|
+
} | null>;
|
|
597
597
|
/**
|
|
598
598
|
* Get thread metadata (RPC method)
|
|
599
599
|
*/
|
|
@@ -1650,7 +1650,7 @@ interface SessionToolConfig {
|
|
|
1650
1650
|
* Session lifecycle binding (string shorthand or explicit object form).
|
|
1651
1651
|
*/
|
|
1652
1652
|
type SessionToolBinding = AgentBuilder.Callables | SessionToolConfig;
|
|
1653
|
-
interface SideConfig extends Omit<SideConfig$1, 'prompt' | 'stopTool' | 'sessionStop' | 'sessionFail' | 'sessionStatus'
|
|
1653
|
+
interface SideConfig extends Omit<SideConfig$1, 'prompt' | 'stopTool' | 'sessionStop' | 'sessionFail' | 'sessionStatus'> {
|
|
1654
1654
|
/**
|
|
1655
1655
|
* The prompt to use for this side (type-safe with autocomplete).
|
|
1656
1656
|
* Must reference a prompt defined in agents/prompts/.
|
|
@@ -1677,18 +1677,6 @@ interface SideConfig extends Omit<SideConfig$1, 'prompt' | 'stopTool' | 'session
|
|
|
1677
1677
|
* Supports shorthand string or explicit message/attachment mapping object.
|
|
1678
1678
|
*/
|
|
1679
1679
|
sessionStatus?: SessionToolBinding;
|
|
1680
|
-
/**
|
|
1681
|
-
* @deprecated Use sessionStop instead.
|
|
1682
|
-
*/
|
|
1683
|
-
endSessionTool?: AgentBuilder.Callables;
|
|
1684
|
-
/**
|
|
1685
|
-
* @deprecated Use sessionFail instead.
|
|
1686
|
-
*/
|
|
1687
|
-
failSessionTool?: AgentBuilder.Callables;
|
|
1688
|
-
/**
|
|
1689
|
-
* @deprecated Use sessionStatus instead.
|
|
1690
|
-
*/
|
|
1691
|
-
statusTool?: AgentBuilder.Callables;
|
|
1692
1680
|
/**
|
|
1693
1681
|
* Enable manual stop condition handling via hooks.
|
|
1694
1682
|
* Builder-specific feature for custom stop logic.
|