@tangle-network/agent-app 0.47.13 → 0.47.14
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/sandbox/index.d.ts
CHANGED
|
@@ -613,6 +613,11 @@ export interface SandboxPromptTokenLimits {
|
|
|
613
613
|
export declare function applyPromptTokenLimits(profile: AgentProfile, limits: SandboxPromptTokenLimits): AgentProfile;
|
|
614
614
|
/** Define options for configuring and controlling a streaming sandbox prompt session */
|
|
615
615
|
export interface StreamSandboxPromptOptions {
|
|
616
|
+
/** Complete server-owned profile for this turn. Skips the shell's default composer.
|
|
617
|
+
* Credentials, admission, session identity, and interactions remain execution options.
|
|
618
|
+
* Explicit turn selections override this profile; otherwise its model and harness win
|
|
619
|
+
* over shell defaults. Never populate this field from an untrusted request body. */
|
|
620
|
+
profile?: AgentProfile;
|
|
616
621
|
sessionId?: string;
|
|
617
622
|
executionId?: string;
|
|
618
623
|
/** Stable idempotency key for one logical dispatch. Reuse it with the same
|
|
@@ -693,6 +698,22 @@ export interface SandboxStreamEvent {
|
|
|
693
698
|
}
|
|
694
699
|
/** Normalize raw sandbox events for shared agent-gateway consumers. */
|
|
695
700
|
export declare function adaptSandboxStream(events: AsyncIterable<unknown>): AsyncGenerator<SandboxStreamEvent>;
|
|
701
|
+
/** Configuration needed to prepare a turn without provisioning a workspace. */
|
|
702
|
+
export type SandboxPromptConfig = Pick<SandboxRuntimeConfig, 'provider' | 'deferProfileFiles' | 'promptBudget'> & Partial<Pick<SandboxRuntimeConfig, 'profile'>>;
|
|
703
|
+
/** Prepare one effective backend for SDK dispatch or product-specific transport.
|
|
704
|
+
* Supply a server-owned profile, or a shell composer for the default profile.
|
|
705
|
+
* Reuse the returned backend for preflight and dispatch so they inspect identical configuration.
|
|
706
|
+
*/
|
|
707
|
+
export declare function resolveSandboxPromptBackend(shell: SandboxPromptConfig, options: StreamSandboxPromptOptions, operation?: string): Promise<{
|
|
708
|
+
type: Harness;
|
|
709
|
+
profile: AgentProfile;
|
|
710
|
+
model?: ResolvedModel | undefined;
|
|
711
|
+
interactions?: {
|
|
712
|
+
question?: boolean;
|
|
713
|
+
permission?: boolean;
|
|
714
|
+
plan?: boolean;
|
|
715
|
+
} | undefined;
|
|
716
|
+
}>;
|
|
696
717
|
/** Resolve and stream AI-generated responses from a sandboxed environment based on input messages and options */
|
|
697
718
|
export declare function streamSandboxPrompt(shell: SandboxRuntimeConfig, box: SandboxInstance, message: string | PromptInputPart[], options?: StreamSandboxPromptOptions): AsyncGenerator<unknown>;
|
|
698
719
|
/**
|
package/dist/sandbox/index.js
CHANGED
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
resolveModel,
|
|
76
76
|
resolveModelSelection,
|
|
77
77
|
resolveSandboxClientCredentials,
|
|
78
|
+
resolveSandboxPromptBackend,
|
|
78
79
|
runForegroundSandboxSingleFlight,
|
|
79
80
|
runSandboxPrompt,
|
|
80
81
|
runSandboxToolPathSetup,
|
|
@@ -98,7 +99,7 @@ import {
|
|
|
98
99
|
workspaceSandboxRecoveryMessage,
|
|
99
100
|
workspaceSandboxRecoveryRecommendedActions,
|
|
100
101
|
writeProfileFilesToBox
|
|
101
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-3G4IUF3D.js";
|
|
102
103
|
import "../chunk-MCYJON3F.js";
|
|
103
104
|
import "../chunk-LWSJK546.js";
|
|
104
105
|
import "../chunk-P5PIAQVS.js";
|
|
@@ -184,6 +185,7 @@ export {
|
|
|
184
185
|
resolveModel,
|
|
185
186
|
resolveModelSelection,
|
|
186
187
|
resolveSandboxClientCredentials,
|
|
188
|
+
resolveSandboxPromptBackend,
|
|
187
189
|
runForegroundSandboxSingleFlight,
|
|
188
190
|
runSandboxPrompt,
|
|
189
191
|
runSandboxToolPathSetup,
|
package/package.json
CHANGED