@tangle-network/sandbox 0.3.0 → 0.4.2
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/LICENSE +11 -0
- package/dist/agent/index.d.ts +5 -7
- package/dist/agent/index.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/client-AnMAORoV.js +1 -0
- package/dist/{client-BuPZLOxS.d.ts → client-luMZjrob.d.ts} +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/collaboration-CRyb5e8F.js +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.js +1 -1
- package/dist/errors-CljiGR__.js +1 -1
- package/dist/{index-2gFsmmQs.d.ts → index-CEuQ9dBO.d.ts} +1 -1
- package/dist/index.d.ts +275 -5
- package/dist/index.js +1 -1
- package/dist/openai/index.d.ts +17 -1
- package/dist/openai/index.js +1 -1
- package/dist/{sandbox-CpK8etqP.d.ts → sandbox-0XVWuuJR.d.ts} +2 -33
- package/dist/sandbox-Ckh48QOL.js +1 -0
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/tangle-DmrMT7Hu.js +1 -0
- package/package.json +39 -88
- package/dist/client-BwRV2Zun.js +0 -1
- package/dist/platform-integrations.d.ts +0 -2
- package/dist/platform-integrations.js +0 -1
- package/dist/sandbox-DTup2jzz.js +0 -1
- package/dist/tangle-CnYnTRi6.js +0 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IntegrationActor, IntegrationManifest } from "@tangle-network/agent-integrations";
|
|
2
|
-
|
|
3
1
|
//#region src/agent-profile.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Provider-neutral agent profile types for public SDK consumers.
|
|
@@ -694,37 +692,6 @@ interface CreateSandboxOptions {
|
|
|
694
692
|
resources?: SandboxResources;
|
|
695
693
|
/** Environment variables injected into the sandbox */
|
|
696
694
|
env?: Record<string, string>;
|
|
697
|
-
/**
|
|
698
|
-
* Integration requirements the sandbox app needs at launch.
|
|
699
|
-
*
|
|
700
|
-
* The sandbox API resolves this manifest through id.tangle.tools,
|
|
701
|
-
* creates owner-scoped grants, and injects only a short-lived
|
|
702
|
-
* `TANGLE_INTEGRATION_BUNDLE` capability payload. Raw provider OAuth
|
|
703
|
-
* tokens and API keys never enter the sandbox environment.
|
|
704
|
-
*/
|
|
705
|
-
integrationManifest?: IntegrationManifest;
|
|
706
|
-
/**
|
|
707
|
-
* Existing platform grant ids to bind to this launch.
|
|
708
|
-
*
|
|
709
|
-
* Use this for installed templates or pre-consented apps where the
|
|
710
|
-
* installer owns the connection. The sandbox API still requires
|
|
711
|
-
* `integrationManifest` so platform can fail closed if a grant does not
|
|
712
|
-
* match the declared requirements.
|
|
713
|
-
*/
|
|
714
|
-
integrationGrantIds?: string[];
|
|
715
|
-
/**
|
|
716
|
-
* Grant durability for `integrationManifest`.
|
|
717
|
-
*
|
|
718
|
-
* `preview` scopes consent to this sandbox preview/session,
|
|
719
|
-
* `durable-app` is for installed/generated app instances, and
|
|
720
|
-
* `one-shot` is for a single workflow run.
|
|
721
|
-
*/
|
|
722
|
-
integrationGrantMode?: "preview" | "durable-app" | "one-shot";
|
|
723
|
-
/**
|
|
724
|
-
* Logical app/agent subject receiving the grant. When omitted, the
|
|
725
|
-
* sandbox itself is the grantee and runtime subject.
|
|
726
|
-
*/
|
|
727
|
-
integrationSubject?: IntegrationActor;
|
|
728
695
|
/**
|
|
729
696
|
* Maximum lifetime in seconds.
|
|
730
697
|
* Sandbox is automatically deleted after this time.
|
|
@@ -2089,6 +2056,7 @@ interface FleetExecDispatchResult {
|
|
|
2089
2056
|
message: string;
|
|
2090
2057
|
status?: number;
|
|
2091
2058
|
failureClass?: SandboxFleetDispatchFailureClass;
|
|
2059
|
+
retryAfterMs?: number;
|
|
2092
2060
|
};
|
|
2093
2061
|
}
|
|
2094
2062
|
interface FleetPromptDispatchOptions extends Pick<PromptOptions, "sessionId" | "model" | "backend" | "timeoutMs" | "context"> {
|
|
@@ -2115,6 +2083,7 @@ interface FleetPromptDispatchResult {
|
|
|
2115
2083
|
message: string;
|
|
2116
2084
|
status?: number;
|
|
2117
2085
|
failureClass?: SandboxFleetDispatchFailureClass;
|
|
2086
|
+
retryAfterMs?: number;
|
|
2118
2087
|
};
|
|
2119
2088
|
}
|
|
2120
2089
|
type SandboxFleetDispatchFailureClass = "oom" | "timeout" | "dependency" | "infra" | "model" | "user_code";
|