@standardagents/builder 0.17.0-next.a4b7340 → 0.17.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 +4090 -2311
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/ApiKeysView.js +1 -1
- package/dist/client/CompositionView.js +5 -5
- package/dist/client/CopyButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/client/DataTable.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/client/MarketplaceView.js +1 -0
- package/dist/client/ThreadInspectorPane.vue_vue_type_script_setup_true_lang.js +15 -19
- package/dist/client/ThreadsView.js +1 -1
- package/dist/client/ToolsView.js +1 -1
- package/dist/client/assets/MarketplaceView.css +1 -0
- package/dist/client/assets/ThreadInspectorPane.css +1 -1
- package/dist/client/assets/img/favicon.svg +10 -2
- package/dist/client/assets/index.css +1 -1
- package/dist/client/copy.js +1 -0
- package/dist/client/index.js +3 -3
- package/dist/client/package.js +1 -0
- package/dist/client/timeAgo.js +1 -0
- package/dist/client/vendor.js +46 -44
- package/dist/client/vue.js +1 -1
- package/dist/{index-EaxysUHv.d.ts → index-Dx1js-H1.d.ts} +24 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +308 -65
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +49 -0
- package/dist/plugin.js.map +1 -1
- package/dist/runtime.d.ts +10 -7
- package/dist/runtime.js +259 -65
- package/dist/runtime.js.map +1 -1
- package/dist/test.d.ts +1 -1
- package/package.json +7 -5
|
@@ -447,6 +447,8 @@ interface FlowState {
|
|
|
447
447
|
stoppedBy?: "a" | "b";
|
|
448
448
|
stopReason?: string;
|
|
449
449
|
stopReasonCode?: string;
|
|
450
|
+
sessionStopped?: boolean;
|
|
451
|
+
sessionStopResult?: string;
|
|
450
452
|
forcedNextSide?: "side_a" | "side_b";
|
|
451
453
|
pendingForceTurn?: "side_a" | "side_b";
|
|
452
454
|
abortController?: AbortController;
|
|
@@ -510,6 +512,24 @@ interface FlowState {
|
|
|
510
512
|
* Undefined means no restriction (global context or tool without uses).
|
|
511
513
|
*/
|
|
512
514
|
currentToolUses?: string[];
|
|
515
|
+
/**
|
|
516
|
+
* Tool call currently executing. Used to associate runtime side effects,
|
|
517
|
+
* such as parent notifications, with the real tool result message.
|
|
518
|
+
*/
|
|
519
|
+
currentToolCall?: {
|
|
520
|
+
id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* Parent notifications emitted during tool execution. These are UI/runtime
|
|
525
|
+
* metadata only; parent delivery itself is handled by ThreadState.notifyParent.
|
|
526
|
+
*/
|
|
527
|
+
parentNotifications?: Array<{
|
|
528
|
+
content: string;
|
|
529
|
+
toolCallId?: string | null;
|
|
530
|
+
toolName?: string | null;
|
|
531
|
+
created_at: number;
|
|
532
|
+
}>;
|
|
513
533
|
/**
|
|
514
534
|
* Cached parent thread ID for this execution context.
|
|
515
535
|
*/
|
|
@@ -648,6 +668,8 @@ interface LLMResponse {
|
|
|
648
668
|
};
|
|
649
669
|
/** @internal Provider instance reference for async metadata fetching */
|
|
650
670
|
_provider?: unknown;
|
|
671
|
+
/** @internal True when the request routed through the Standard Agents platform passthrough */
|
|
672
|
+
_viaPlatform?: boolean;
|
|
651
673
|
/** @internal Provider response ID for async metadata fetching */
|
|
652
674
|
_providerResponseId?: string;
|
|
653
675
|
/** @internal Aggregate response for logging */
|
|
@@ -707,6 +729,8 @@ interface FlowResult {
|
|
|
707
729
|
stoppedBy?: "a" | "b";
|
|
708
730
|
stopReason?: string;
|
|
709
731
|
stopReasonCode?: string;
|
|
732
|
+
sessionStopped?: boolean;
|
|
733
|
+
sessionStopResult?: string;
|
|
710
734
|
stepCount: number;
|
|
711
735
|
stream: ReadableStream<Uint8Array>;
|
|
712
736
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelDefinition, AgentDefinition } from './runtime.js';
|
|
2
2
|
export { AgentBuilderEnv, AuthContext, AuthUser, BroadcastOptions, CodeExecutionBridge, DurableAgentBuilder, DurableThread, FlowStateSdk, FlowStateWithSdk, ImageContextConfig, InjectMessageOptions, LLMProviderInterface, NamespaceResolutionError, PromptContent, PromptDefinition, PromptIncludePart, PromptPart, PromptToolConfig, Provider, ProviderContentPart, ProviderFilePart, ProviderImagePart, ProviderRegistry, ProviderTextPart, SessionToolBinding, SessionToolConfig, SideConfig, SubagentToolConfig, SubpromptConfig, ThreadRegistryEntry, ToolConfig, UpdateThreadParams, User, authenticate, buildImageDescription, cat, createNamespaceContext, emitThreadEvent, enhanceFlowState, exists, find, forceTurn, generateImageDescription, getFileStats, getMessages, getMessagesToSummarize, getShortName, getThumbnail, getUnsummarizedImageAttachments, getVisibleAgentNames, getVisibleModelNames, getVisiblePromptNames, getVisibleToolNames, grep, hasImageAttachments, head, injectMessage, isQualifiedName, linkFile, mkdir, optimizeImageContext, parseQualifiedName, qualifyName, queueTool, readFile, readdir, reloadHistory, replaceImagesWithDescriptions, requireAdmin, requireAuth, resolveAgent, resolveHook, resolveModel, resolvePrompt, resolveTool, rmdir, stat, tail, unlink, updateThread, writeFile, writeImage } from './runtime.js';
|
|
3
3
|
export { AgentPluginOptions, agentbuilder, builder } from './plugin.js';
|
|
4
|
-
export { A as Agent, m as AttachmentRef, f as BuilderThreadEndpointHandler, B as Controller, a as ControllerContext, E as Env, l as FileRecord, n as FileStats, j as FlowResult, F as FlowState, G as GrepResult, p as ImageContentPart, I as ImageMetadata, L as LLMResponse, M as Message, r as MessageContent, q as MultimodalContent, R as RequestContext, S as StorageBackend, k as TelemetryEvent, o as TextContentPart, b as ThreadEndpointContext, e as ThreadEnv, g as ThreadInstance, h as ThreadMetadata, T as ToolCall, i as ToolResult, c as createThreadEndpointHandler, d as defineController } from './index-
|
|
4
|
+
export { A as Agent, m as AttachmentRef, f as BuilderThreadEndpointHandler, B as Controller, a as ControllerContext, E as Env, l as FileRecord, n as FileStats, j as FlowResult, F as FlowState, G as GrepResult, p as ImageContentPart, I as ImageMetadata, L as LLMResponse, M as Message, r as MessageContent, q as MultimodalContent, R as RequestContext, S as StorageBackend, k as TelemetryEvent, o as TextContentPart, b as ThreadEndpointContext, e as ThreadEnv, g as ThreadInstance, h as ThreadMetadata, T as ToolCall, i as ToolResult, c as createThreadEndpointHandler, d as defineController } from './index-Dx1js-H1.js';
|
|
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
|
export { C as ConstituentItem, D as DiscoveredPackage, N as NamespacedRegistry, P as PackingAnalysis, a as PackingOptions, b as PackingResult, c as UnpackOptions, d as UnpackResult } from './types-Bpe7IANZ.js';
|
|
7
7
|
export { D as DiscoveryConfig, P as PackageDiscoveryService, d as discoverPackages } from './discovery-DiMJWisl.js';
|