@tangle-network/sandbox 1.0.82 → 1.0.84
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/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-DSH8Pk0G.d.ts → agent-run-outcome-HyzLlfb7.d.ts} +1 -1
- package/dist/{client-Y9cDHFCK.js → client-B2eSBVFj.js} +2 -2
- package/dist/{client-Dj2a5_-h.d.ts → client-Y8hjzpdv.d.ts} +4 -4
- package/dist/{core-BZ7j7Zs4.js → core-BBecAr2M.js} +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/core.js +3 -3
- package/dist/{index-DYfzb66L.d.ts → index-Bqu-Zp7j.d.ts} +22 -67
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -5
- package/dist/{interactive-controller-CwZEKLoB.js → interactive-controller-BdGvy0jq.js} +13 -1
- package/dist/{interactive-controller-C_-HAO3O.d.ts → interactive-controller-DjNtSQHC.d.ts} +1 -1
- package/dist/{lines-DLnmGtVn.d.ts → lines-rqwQmFq-.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{preview-DukN0Vae.d.ts → preview-Q4wJz1Yl.d.ts} +3 -3
- package/dist/{public-templates-GxaDb0VI.d.ts → public-templates-CPwaavCU.d.ts} +1 -1
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +1 -1
- package/dist/{sandbox-DsrgiKaI.js → sandbox-BdWInunU.js} +502 -161
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CEo9teUQ.js → tangle-DjCQ1Un6.js} +1 -1
- package/dist/{types-swiuUX_L.d.ts → types-D9bXe-vp.d.ts} +158 -127
- package/package.json +6 -6
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-Bqu-Zp7j.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-DjCQ1Un6.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-BdWInunU.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-BStusQVc.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BXgE8UHJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
@@ -1626,36 +1626,166 @@ declare const sandboxEnvRecoveryViewSchema: z.ZodObject<{
|
|
|
1626
1626
|
}, z.core.$strict>;
|
|
1627
1627
|
type SandboxEnvRecoveryView = z.infer<typeof sandboxEnvRecoveryViewSchema>;
|
|
1628
1628
|
//#endregion
|
|
1629
|
+
//#region ../../../packages/runtime-contracts/dist/generated/sandbox-operations.d.ts
|
|
1630
|
+
declare const CodeLanguageSchema: z.ZodEnum<{
|
|
1631
|
+
typescript: "typescript";
|
|
1632
|
+
python: "python";
|
|
1633
|
+
bash: "bash";
|
|
1634
|
+
node: "node";
|
|
1635
|
+
}>;
|
|
1636
|
+
type CodeLanguage = z.infer<typeof CodeLanguageSchema>;
|
|
1637
|
+
declare const CodeResultPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1638
|
+
type: z.ZodLiteral<"text">;
|
|
1639
|
+
value: z.ZodString;
|
|
1640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1641
|
+
type: z.ZodLiteral<"json">;
|
|
1642
|
+
value: z.ZodUnknown;
|
|
1643
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1644
|
+
type: z.ZodLiteral<"image">;
|
|
1645
|
+
format: z.ZodEnum<{
|
|
1646
|
+
png: "png";
|
|
1647
|
+
jpeg: "jpeg";
|
|
1648
|
+
svg: "svg";
|
|
1649
|
+
}>;
|
|
1650
|
+
data: z.ZodString;
|
|
1651
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1652
|
+
type: z.ZodLiteral<"html">;
|
|
1653
|
+
value: z.ZodString;
|
|
1654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1655
|
+
type: z.ZodLiteral<"dataframe">;
|
|
1656
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1657
|
+
name: z.ZodString;
|
|
1658
|
+
dtype: z.ZodString;
|
|
1659
|
+
}, z.core.$strip>>;
|
|
1660
|
+
rows: z.ZodArray<z.ZodArray<z.ZodUnknown>>;
|
|
1661
|
+
truncated: z.ZodBoolean;
|
|
1662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1663
|
+
type: z.ZodLiteral<"error">;
|
|
1664
|
+
name: z.ZodString;
|
|
1665
|
+
message: z.ZodString;
|
|
1666
|
+
traceback: z.ZodOptional<z.ZodString>;
|
|
1667
|
+
}, z.core.$strip>], "type">;
|
|
1668
|
+
type CodeResultPart = z.infer<typeof CodeResultPartSchema>;
|
|
1669
|
+
declare const ExecResultSchema: z.ZodObject<{
|
|
1670
|
+
exitCode: z.ZodNumber;
|
|
1671
|
+
stdout: z.ZodString;
|
|
1672
|
+
stderr: z.ZodString;
|
|
1673
|
+
}, z.core.$strip>;
|
|
1674
|
+
type ExecResult = z.infer<typeof ExecResultSchema>;
|
|
1675
|
+
declare const CodeExecutionResultSchema: z.ZodObject<{
|
|
1676
|
+
exitCode: z.ZodNumber;
|
|
1677
|
+
stdout: z.ZodString;
|
|
1678
|
+
stderr: z.ZodString;
|
|
1679
|
+
durationMs: z.ZodNumber;
|
|
1680
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1681
|
+
type: z.ZodLiteral<"text">;
|
|
1682
|
+
value: z.ZodString;
|
|
1683
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1684
|
+
type: z.ZodLiteral<"json">;
|
|
1685
|
+
value: z.ZodUnknown;
|
|
1686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1687
|
+
type: z.ZodLiteral<"image">;
|
|
1688
|
+
format: z.ZodEnum<{
|
|
1689
|
+
png: "png";
|
|
1690
|
+
jpeg: "jpeg";
|
|
1691
|
+
svg: "svg";
|
|
1692
|
+
}>;
|
|
1693
|
+
data: z.ZodString;
|
|
1694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1695
|
+
type: z.ZodLiteral<"html">;
|
|
1696
|
+
value: z.ZodString;
|
|
1697
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1698
|
+
type: z.ZodLiteral<"dataframe">;
|
|
1699
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1700
|
+
name: z.ZodString;
|
|
1701
|
+
dtype: z.ZodString;
|
|
1702
|
+
}, z.core.$strip>>;
|
|
1703
|
+
rows: z.ZodArray<z.ZodArray<z.ZodUnknown>>;
|
|
1704
|
+
truncated: z.ZodBoolean;
|
|
1705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1706
|
+
type: z.ZodLiteral<"error">;
|
|
1707
|
+
name: z.ZodString;
|
|
1708
|
+
message: z.ZodString;
|
|
1709
|
+
traceback: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
}, z.core.$strip>], "type">>;
|
|
1711
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1712
|
+
name: z.ZodString;
|
|
1713
|
+
message: z.ZodString;
|
|
1714
|
+
traceback: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
}, z.core.$strip>>;
|
|
1716
|
+
}, z.core.$strip>;
|
|
1717
|
+
type CodeExecutionResult = z.infer<typeof CodeExecutionResultSchema>;
|
|
1718
|
+
declare const ProcessStatusWireSchema: z.ZodObject<{
|
|
1719
|
+
pid: z.ZodNumber;
|
|
1720
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
command: z.ZodString;
|
|
1722
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
running: z.ZodBoolean;
|
|
1724
|
+
exitCode: z.ZodNumber;
|
|
1725
|
+
exitSignal: z.ZodOptional<z.ZodString>;
|
|
1726
|
+
startedAt: z.ZodString;
|
|
1727
|
+
exitedAt: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
}, z.core.$strip>;
|
|
1729
|
+
type ProcessStatusWire = z.infer<typeof ProcessStatusWireSchema>;
|
|
1730
|
+
declare const FileWriteResultSchema: z.ZodObject<{
|
|
1731
|
+
path: z.ZodString;
|
|
1732
|
+
hash: z.ZodString;
|
|
1733
|
+
size: z.ZodNumber;
|
|
1734
|
+
mtime: z.ZodNumber;
|
|
1735
|
+
preconditionsApplied: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1736
|
+
ifAbsent: "ifAbsent";
|
|
1737
|
+
ifHash: "ifHash";
|
|
1738
|
+
}>>>;
|
|
1739
|
+
}, z.core.$strip>;
|
|
1740
|
+
type FileWriteResult$1 = z.infer<typeof FileWriteResultSchema>;
|
|
1741
|
+
declare const FileReadResultSchema: z.ZodObject<{
|
|
1742
|
+
path: z.ZodString;
|
|
1743
|
+
content: z.ZodString;
|
|
1744
|
+
encoding: z.ZodEnum<{
|
|
1745
|
+
base64: "base64";
|
|
1746
|
+
utf8: "utf8";
|
|
1747
|
+
}>;
|
|
1748
|
+
hash: z.ZodString;
|
|
1749
|
+
size: z.ZodNumber;
|
|
1750
|
+
mtime: z.ZodNumber;
|
|
1751
|
+
}, z.core.$strip>;
|
|
1752
|
+
type FileReadResult$1 = z.infer<typeof FileReadResultSchema>;
|
|
1753
|
+
declare const FileTreeResponseSchema: z.ZodObject<{
|
|
1754
|
+
success: z.ZodLiteral<true>;
|
|
1755
|
+
data: z.ZodObject<{
|
|
1756
|
+
root: z.ZodString;
|
|
1757
|
+
directories: z.ZodArray<z.ZodString>;
|
|
1758
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1759
|
+
path: z.ZodString;
|
|
1760
|
+
size: z.ZodNumber;
|
|
1761
|
+
mtime: z.ZodNumber;
|
|
1762
|
+
}, z.core.$strip>>;
|
|
1763
|
+
stats: z.ZodObject<{
|
|
1764
|
+
totalDirectories: z.ZodNumber;
|
|
1765
|
+
totalFiles: z.ZodNumber;
|
|
1766
|
+
scanDurationMs: z.ZodNumber;
|
|
1767
|
+
truncated: z.ZodBoolean;
|
|
1768
|
+
}, z.core.$strip>;
|
|
1769
|
+
}, z.core.$strip>;
|
|
1770
|
+
}, z.core.$strip>;
|
|
1771
|
+
type FileTreeResponse = z.infer<typeof FileTreeResponseSchema>;
|
|
1772
|
+
declare const FileRenameResultSchema: z.ZodObject<{
|
|
1773
|
+
sourcePath: z.ZodString;
|
|
1774
|
+
destinationPath: z.ZodString;
|
|
1775
|
+
}, z.core.$strip>;
|
|
1776
|
+
type FileRenameResult$1 = z.infer<typeof FileRenameResultSchema>;
|
|
1777
|
+
//#endregion
|
|
1629
1778
|
//#region ../../../packages/runtime-contracts/dist/sandbox-wire-types.d.ts
|
|
1630
1779
|
/** Lifecycle state of an agent session inside a sandbox. */
|
|
1631
1780
|
type SessionStatus = "queued" | "running" | "completed" | "failed" | "cancelled";
|
|
1632
|
-
/** Languages supported by the persistent code kernel. */
|
|
1633
|
-
type CodeLanguage = "python" | "node" | "typescript" | "bash";
|
|
1634
1781
|
/** Select retained process records by their exact-process launch identity. */
|
|
1635
1782
|
interface ProcessListOptions {
|
|
1636
1783
|
idempotencyKey?: string;
|
|
1637
1784
|
}
|
|
1638
|
-
|
|
1639
|
-
interface ProcessStatus {
|
|
1640
|
-
/** Process ID */
|
|
1641
|
-
pid: number;
|
|
1642
|
-
/** Opaque exact-process launch identity when one was supplied. */
|
|
1643
|
-
idempotencyKey?: string;
|
|
1644
|
-
/** Command that was executed */
|
|
1645
|
-
command: string;
|
|
1646
|
-
/** Working directory */
|
|
1647
|
-
cwd?: string;
|
|
1648
|
-
/** Whether the process is still running */
|
|
1649
|
-
running: boolean;
|
|
1650
|
-
/** Exit code (-1 if still running) */
|
|
1651
|
-
exitCode: number;
|
|
1652
|
-
/** Signal that killed the process (if any) */
|
|
1653
|
-
exitSignal?: string;
|
|
1654
|
-
/** When the process started */
|
|
1785
|
+
type ProcessStatus = Omit<ProcessStatusWire, "startedAt" | "exitedAt"> & {
|
|
1655
1786
|
startedAt: Date;
|
|
1656
|
-
/** When the process exited (if exited) */
|
|
1657
1787
|
exitedAt?: Date;
|
|
1658
|
-
}
|
|
1788
|
+
};
|
|
1659
1789
|
/** Full process information including environment. */
|
|
1660
1790
|
interface ProcessInfo extends ProcessStatus {
|
|
1661
1791
|
/** Environment variables used */
|
|
@@ -2894,58 +3024,6 @@ interface HttpClient {
|
|
|
2894
3024
|
}
|
|
2895
3025
|
//#endregion
|
|
2896
3026
|
//#region src/types/code-execution.d.ts
|
|
2897
|
-
/**
|
|
2898
|
-
* One structured result produced by a runCode() call. The kernel emits these
|
|
2899
|
-
* alongside stdout — matplotlib figures arrive as `image`, pandas DataFrames
|
|
2900
|
-
* as `dataframe`, explicit `display(value)` calls as `json` or `html`, and
|
|
2901
|
-
* uncaught exceptions as `error` plus an `error` field on the result.
|
|
2902
|
-
*/
|
|
2903
|
-
type CodeResultPart = {
|
|
2904
|
-
type: "text";
|
|
2905
|
-
value: string;
|
|
2906
|
-
} | {
|
|
2907
|
-
type: "json";
|
|
2908
|
-
value: unknown;
|
|
2909
|
-
} | {
|
|
2910
|
-
type: "image";
|
|
2911
|
-
format: "png" | "jpeg" | "svg"; /** base64-encoded image bytes (no `data:` prefix). */
|
|
2912
|
-
data: string;
|
|
2913
|
-
} | {
|
|
2914
|
-
type: "html";
|
|
2915
|
-
value: string;
|
|
2916
|
-
} | {
|
|
2917
|
-
type: "dataframe";
|
|
2918
|
-
columns: {
|
|
2919
|
-
name: string;
|
|
2920
|
-
dtype: string;
|
|
2921
|
-
}[];
|
|
2922
|
-
rows: unknown[][];
|
|
2923
|
-
truncated: boolean;
|
|
2924
|
-
} | {
|
|
2925
|
-
type: "error";
|
|
2926
|
-
name: string;
|
|
2927
|
-
message: string;
|
|
2928
|
-
traceback?: string;
|
|
2929
|
-
};
|
|
2930
|
-
/**
|
|
2931
|
-
* Outcome of a single runCode() call.
|
|
2932
|
-
*
|
|
2933
|
-
* `stdout`/`stderr` are the user-visible streams with frame markers stripped.
|
|
2934
|
-
* `results` is the structured-result list. `error` is set when user code
|
|
2935
|
-
* raised; the kernel itself stays alive and the next call reuses its state.
|
|
2936
|
-
*/
|
|
2937
|
-
interface CodeExecutionResult {
|
|
2938
|
-
exitCode: number;
|
|
2939
|
-
stdout: string;
|
|
2940
|
-
stderr: string;
|
|
2941
|
-
durationMs: number;
|
|
2942
|
-
results: CodeResultPart[];
|
|
2943
|
-
error?: {
|
|
2944
|
-
name: string;
|
|
2945
|
-
message: string;
|
|
2946
|
-
traceback?: string;
|
|
2947
|
-
};
|
|
2948
|
-
}
|
|
2949
3027
|
/** Options for `box.runCode()`. */
|
|
2950
3028
|
interface CodeExecutionOptions {
|
|
2951
3029
|
/** Session scope: kernels persist variables across calls with the same id. */
|
|
@@ -3343,17 +3421,6 @@ interface PublishPublicTemplateVersionOptions {
|
|
|
3343
3421
|
}
|
|
3344
3422
|
//#endregion
|
|
3345
3423
|
//#region src/types/exec.d.ts
|
|
3346
|
-
/**
|
|
3347
|
-
* Result of executing a command.
|
|
3348
|
-
*/
|
|
3349
|
-
interface ExecResult {
|
|
3350
|
-
/** Exit code (0 = success) */
|
|
3351
|
-
exitCode: number;
|
|
3352
|
-
/** Standard output */
|
|
3353
|
-
stdout: string;
|
|
3354
|
-
/** Standard error */
|
|
3355
|
-
stderr: string;
|
|
3356
|
-
}
|
|
3357
3424
|
/**
|
|
3358
3425
|
* Options for executing a string command through a non-login POSIX shell.
|
|
3359
3426
|
* The command inherits the sandbox runtime environment.
|
|
@@ -3457,29 +3524,14 @@ interface FileInfo {
|
|
|
3457
3524
|
accessTime: Date;
|
|
3458
3525
|
}
|
|
3459
3526
|
/** File metadata returned by the recursive workspace tree endpoint. */
|
|
3460
|
-
|
|
3461
|
-
path: string;
|
|
3462
|
-
size: number;
|
|
3463
|
-
/** File modification time as Unix milliseconds. */
|
|
3464
|
-
mtime: number;
|
|
3465
|
-
}
|
|
3527
|
+
type FileTreeFile = FileTreeResponse["data"]["files"][number];
|
|
3466
3528
|
/** Options for recursively scanning a workspace tree. */
|
|
3467
3529
|
interface FileTreeOptions {
|
|
3468
3530
|
sessionId?: string;
|
|
3469
3531
|
maxDepth?: number;
|
|
3470
3532
|
}
|
|
3471
3533
|
/** Recursive workspace tree with scan statistics. */
|
|
3472
|
-
|
|
3473
|
-
root: string;
|
|
3474
|
-
directories: string[];
|
|
3475
|
-
files: FileTreeFile[];
|
|
3476
|
-
stats: {
|
|
3477
|
-
totalDirectories: number;
|
|
3478
|
-
totalFiles: number;
|
|
3479
|
-
scanDurationMs: number;
|
|
3480
|
-
truncated: boolean;
|
|
3481
|
-
};
|
|
3482
|
-
}
|
|
3534
|
+
type FileTreeResult = FileTreeResponse["data"];
|
|
3483
3535
|
/** Options for measuring aggregate workspace storage usage. */
|
|
3484
3536
|
interface FileUsageOptions {
|
|
3485
3537
|
/** Task session id for session-specific workspace isolation. */
|
|
@@ -3558,15 +3610,7 @@ interface FileUsageResult {
|
|
|
3558
3610
|
};
|
|
3559
3611
|
}
|
|
3560
3612
|
/** File content and metadata returned by a batch read. */
|
|
3561
|
-
|
|
3562
|
-
path: string;
|
|
3563
|
-
content: string;
|
|
3564
|
-
encoding: "utf8" | "base64";
|
|
3565
|
-
hash: string;
|
|
3566
|
-
size: number;
|
|
3567
|
-
/** File modification time as Unix milliseconds. */
|
|
3568
|
-
mtime: number;
|
|
3569
|
-
}
|
|
3613
|
+
type FileReadResult = FileReadResult$1;
|
|
3570
3614
|
/** One file that could not be read during a partial-success batch. */
|
|
3571
3615
|
interface FileReadError {
|
|
3572
3616
|
path: string;
|
|
@@ -3589,24 +3633,11 @@ interface FileReadBatchResult {
|
|
|
3589
3633
|
};
|
|
3590
3634
|
}
|
|
3591
3635
|
/** Metadata returned after a successful file write. */
|
|
3592
|
-
|
|
3593
|
-
path: string;
|
|
3594
|
-
hash: string;
|
|
3595
|
-
size: number;
|
|
3596
|
-
/** File modification time as Unix milliseconds. */
|
|
3597
|
-
mtime: number;
|
|
3598
|
-
/** Encoding echoed by runtimes that include it in write responses. */
|
|
3636
|
+
type FileWriteResult = FileWriteResult$1 & {
|
|
3599
3637
|
encoding?: "utf8" | "base64";
|
|
3600
|
-
|
|
3601
|
-
preconditionsApplied?: ("ifHash" | "ifAbsent")[];
|
|
3602
|
-
}
|
|
3638
|
+
};
|
|
3603
3639
|
/** Metadata returned after a successful file or directory rename. */
|
|
3604
|
-
|
|
3605
|
-
/** Previous path, relative to the workspace when applicable. */
|
|
3606
|
-
sourcePath: string;
|
|
3607
|
-
/** New path, relative to the workspace when applicable. */
|
|
3608
|
-
destinationPath: string;
|
|
3609
|
-
}
|
|
3640
|
+
type FileRenameResult = FileRenameResult$1;
|
|
3610
3641
|
/**
|
|
3611
3642
|
* Options for uploading files.
|
|
3612
3643
|
*/
|
|
@@ -8285,4 +8316,4 @@ interface SnapshotInfo {
|
|
|
8285
8316
|
remoteSync?: SnapshotRemoteSync;
|
|
8286
8317
|
}
|
|
8287
8318
|
//#endregion
|
|
8288
|
-
export { CompletedTurnPayload as $, RawEvidenceBoxExportOptions as $a,
|
|
8319
|
+
export { CompletedTurnPayload as $, RawEvidenceBoxExportOptions as $a, EventStreamOptions as $i, TeeAttestationReport as $n, SearchOptions as $r, ReapExpiredSandboxFleetsResult as $t, SandboxIdentity as A, ProvisionStatus as Aa, ManagedProcessState as Ai, SandboxFleetUsage as An, DownloadResult as Ar, TaskSessionProfile as At, ProcessSignal as B, ProcessStatus as Ba, WaitForRolloutOptions as Bi, SandboxPortBinding as Bn, FileTreeResult as Br, FleetDispatchCancelResult as Bt, WorkspaceOperationLookup as C, McpServerConfig as Ca, NonHostAgentDriverConfig as Ci, SandboxFleetProfileRef as Cn, BackendType as Co, GitAuth as Cr, SessionMessageAdmission as Ct, ProvisionResult as D, RolloutScorer as Da, ManagedProcessRecord as Di, SandboxFleetTraceEvent as Dn, parseBackendType as Do, DeleteOptions as Dr, TaskSessionCommitResult as Dt, ProvisionEvent as E, RolloutChildResult as Ea, ManagedProcessOptions as Ei, SandboxFleetTraceBundle as En, EffectiveBackendSource as Eo, ChunkedUploadResult as Er, TaskSessionChanges as Et, EnsureDevServerOptions as F, GpuLeaseStatus as Fa, ForkIdempotency as Fi, ListSandboxOptions as Fn, FileReadResult as Fr, CreateSandboxFleetWithCoordinatorOptions as Ft, GitBranch as G, ExecResult as Ga, AgentRunStatus as Gi, SandboxTerminalCreateOptions as Gn, MkdirOptions as Gr, FleetExecDispatchResult as Gt, PreviewLinkInfo as H, CodeExecutionResult as Ha, BatchRunOptions as Hi, SandboxRunGeneration as Hn, FileUsageResult as Hr, FleetDispatchResultBufferOptions as Ht, ExactProcessSpawnOptions as I, WorkspaceImagePublishInput as Ia, ForkLookupOptions as Ii, SSHCommandDescriptor as In, FileRenameResult as Ir, FleetAgentId as It, GitStatus as J, NativeStoreHomeCopy as Ja, DurablePlan as Ji, SandboxTerminalRequestOptions as Jn, UploadProgress as Jr, FleetPromptDispatchResult as Jt, GitCommit as K, SandboxEnvRecovery as Ka, AgentToolInvocation as Ki, SandboxTerminalInfo as Kn, RenameOptions as Kr, FleetMachineId as Kt, Process as L, WorkspaceImagePublishResult as La, Rollout as Li, SSHCredentials as Ln, FileSystem as Lr, FleetAgentPlacement as Lt, UsageInfo as M, GpuLeaseProviderName as Ma, SdkTimingHook as Mi, SandboxFleetWorkspaceReconcileResult as Mn, FileReadBatchOptions as Mr, AttachSandboxFleetMachineOptions as Mt, WaitForOptions as N, GpuLeaseProviderState as Na, BranchOptions as Ni, SandboxFleetWorkspaceRestoreResult as Nn, FileReadBatchResult as Nr, CreateSandboxFleetOptions as Nt, ProvisionStep as O, RolloutStatus as Oa, ManagedProcessResumeOptions as Oi, SandboxFleetTraceExport as On, DownloadOptions as Or, TaskSessionFileChange as Ot, DevServerInfo as P, GpuLeaseProviderStatus as Pa, ForkCounts as Pi, SandboxFleetWorkspaceSnapshotResult as Pn, FileReadError as Pr, CreateSandboxFleetTokenOptions as Pt, CommitTaskSessionOptions as Q, RawEvidenceBoxDirectoryExport as Qa, DurablePlanSnapshot as Qi, TeeAttestationOptions as Qn, SearchMatch as Qr, ReapExpiredSandboxFleetsOptions as Qt, ProcessLogEntry as R, ProcessInfo as Ra, RolloutOptions as Ri, SandboxConnection as Rn, FileTreeFile as Rr, FleetAgentResult as Rt, StopOptions as S, BackendStatus as Sa, HostAgentRuntimeBackend as Si, SandboxFleetPolicy as Sn, ALL_BACKEND_TYPES as So, MAX_EGRESS_DENIALS_LIMIT as Sr, SessionMessage as St, SshKeysManager as T, SecretInfo as Ta, ManagedProcessJobs as Ti, SandboxFleetToken as Tn, EffectiveBackendProfile as To, ChunkedUploadOptions as Tr, SessionResultOptions as Tt, PreviewLinkManager as U, CodeLanguage as Ua, AgentApprovalRequirement as Ui, SandboxRuntimeHealth as Un, FileWriteResult as Ur, FleetDispatchStreamOptions as Ut, ProcessSpawnOptions as V, SessionStatus as Va, BatchBackend as Vi, SandboxPortPreviewLink as Vn, FileUsageOptions as Vr, FleetDispatchResultBuffer as Vt, PreviewLinkWaitOptions as W, CodeResultPart as Wa, AgentQuestionRequest as Wi, SandboxTerminalAttachOptions as Wn, ListOptions as Wr, FleetExecDispatchOptions as Wt, FleetDriveTurnRequest as X, RawEvidenceArchiveManifestNative as Xa, DurablePlanDecisionResult as Xi, StartupDiagnostics as Xn, WriteManyFile as Xr, FleetRunOptions as Xt, FleetDriveTurnOutcome as Y, RawEvidenceArchiveManifest as Ya, DurablePlanDecisionOptions as Yi, SandboxTerminals as Yn, WriteFileOptions as Yr, FleetRunEvent as Yt, TokenRefreshHandler as Z, RawEvidenceBoxArchiveManifest as Za, DurablePlanFollowUpResume as Zi, StartupOperation as Zn, WriteManyOptions as Zr, ListSandboxFleetOptions as Zt, SnapshotInfo as _, BackendConfig as _a, GpuLeaseExecResult as _i, SandboxFleetManifest as _n, BatchBackendStats as _o, NetworkConfig as _r, SessionFailureReason as _t, DeleteMatchingSandboxesResult as a, PromptInputPart as aa, SandboxEnvironment as ai, SandboxFleetArtifactSpec as an, RawEvidenceUnavailable as ao, CreateSandboxOptions as ar, DispatchPromptOptions as at, SnapshotRemoteSync as b, BackendMcpServerStatus as ba, GpuLeaseProvidersOptions as bi, SandboxFleetParent as bn, BatchSidecarGroup as bo, EgressPolicy as br, SessionInterruptOptions as bt, SandboxDeleteOptions as c, SandboxEvent as ca, CreateGpuLeaseOptions as ci, SandboxFleetDispatchResponse as cn, DECLARED_SECRET_HOSTS_ENV_VAR as co, SandboxShapesInfo as cr, ListMessagesOptions as ct, SandboxOperationKind as d, SandboxTraceEvent as da, DriverInfo as di, SandboxFleetInfo as dn, parseDeclaredSecretsEnv as do, SandboxShape as dr, SendSessionMessageRequest as dt, IntelligenceReport as ea, ExecOptions as ei, ReconcileSandboxFleetsOptions as en, RawEvidenceDirectoryExport as eo, TeeAttestationResponse as er, CompletedTurnResult as et, SandboxOperationState as f, SandboxTraceExport as fa, DriverType as fi, SandboxFleetIntelligenceEnvelope as fn, BatchResult as fo, SandboxShapePreset as fr, SentSessionMessage as ft, SnapshotIdempotency as g, BackendCapabilities as ga, GpuLeaseExecOptions as gi, SandboxFleetMachineSpec as gn, PublicBatchRunRequestInput as go, EgressManager as gr, SessionExecutionStatus as gt, SnapshotDeleteOutcome as h, TurnBackendConfig as ha, GpuLeaseCommandResult as hi, SandboxFleetMachineRecord as hn, PublicBatchRunRequest as ho, StorageConfig as hr, SessionExecutionInfo as ht, DeleteMatchingSandboxesOptions as i, IntelligenceReportWindow as ia, PublishPublicTemplateVersionOptions as ii, SandboxFleetArtifact as in, RawEvidenceRecordsFile as io, CreateRequestOptions as ir, CreateTaskSessionOptions as it, SubscriptionInfo as j, GPU_LEASE_PROVIDER_NAMES as ja, HttpClient as ji, SandboxFleetWorkspace as jn, FileInfo as jr, TurnDriveResult as jt, ResumeOptions as k, RolloutTurnPart as ka, ManagedProcessSpec as ki, SandboxFleetTraceOptions as kn, DownloadProgress as kr, TaskSessionInfo as kt, SandboxDeleteOutcome as l, SandboxIntelligenceEnvelope as la, DockerDriverConfig as li, SandboxFleetDriverCapability as ln, assertDeclaredSecretsHeld as lo, SandboxStatus as lr, PublicProfileConflict as lt, SnapshotDeleteAcknowledgement as m, TokenUsage as ma, GpuLeaseBilling as mi, SandboxFleetMachineMeteredUsage as mn, BatchTaskInput as mo, SandboxRuntimeCapabilities as mr, SessionEventStreamOptions as mt, DeleteMatchingSandboxResult as n, IntelligenceReportCompareTo as na, PublicTemplateVersionInfo as ni, SandboxFleetAgent as nn, RawEvidenceNativeFile as no, TeePublicKeyResponse as nr, ConversationTurnResult as nt, RestoreSnapshotOptions as o, PromptOptions as oa, AcceleratorKind as oi, SandboxFleetCostEstimate as on, baseProxyToken as oo, SandboxConfig as or, DispatchedSession as ot, SandboxRemovalState as p, SandboxTraceOptions as pa, GpuLease as pi, SandboxFleetMachine as pn, BatchTaskResult as po, SandboxResourceUsage as pr, SessionBackendCredentials as pt, GitDiff as q, SandboxEnvRecoveryView as qa, CreateIntelligenceReportOptions as qi, SandboxTerminalManager as qn, UploadOptions as qr, FleetPromptDispatchOptions as qt, DeleteMatchingSandboxesFilter as r, IntelligenceReportSubjectType as ra, PublishPublicTemplateOptions as ri, SandboxFleetAgentSpec as rn, RawEvidencePayloadFile as ro, TerminalStream as rr, CreateSessionOptions as rt, SandboxDeleteAcknowledgement as s, PromptResult as sa, AttachGpuLeaseOptions as si, SandboxFleetDispatchFailureClass as sn, InteractionResolutionAcknowledgement as so, SandboxResources as sr, DriveTurnOptions as st, DeleteMatchingSandboxOutcome as t, IntelligenceReportBudget as ta, PublicTemplateInfo as ti, ReconcileSandboxFleetsResult as tn, RawEvidenceExportOptions as to, TeePublicKey as tr, ConversationTurnOptions as tt, SandboxOperationInfo as u, SandboxTraceBundle as ua, DriverConfig as ui, SandboxFleetDriverTimings as un, declaredSecretBaseToken as uo, SecretBinding as ur, SendSessionMessageOptions as ut, SnapshotOptions as v, BackendInfo as va, GpuLeaseManager as vi, SandboxFleetManifestMachine as vn, BatchEvent as vo, NetworkManager as vr, SessionForkOptions as vt, SecretsManager as w, RouterRoutingOptions as wa, CodeExecutionOptions as wi, SandboxFleetSpend as wn, EffectiveBackend as wo, GitConfig as wr, SessionMessageInputPart as wt, SnapshotResult as x, BackendRuntimeConfigUpdate as xa, HostAgentDriverConfig as xi, SandboxFleetPlacement as xn, BatchTaskUsage as xo, EgressDenial as xr, SessionListOptions as xt, SnapshotProvenance as y, BackendManager as ya, GpuLeaseProviders as yi, SandboxFleetOperationsSummary as yn, BatchEventDataMap as yo, SandboxEgressUsage as yr, SessionInfo as yt, ProcessManager as z, ProcessListOptions as za, RolloutStartResult as zi, SandboxInfo as zn, FileTreeOptions as zr, FleetAgentRunStatus as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.84",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.33",
|
|
156
|
-
"@repo/shared": "0.0.0",
|
|
157
|
-
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
158
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
157
|
+
"@tangle-network/agent-profile-materialize": "0.27.1",
|
|
159
158
|
"@tangle-network/cli-agent-registry": "0.14.0",
|
|
160
|
-
"@tangle-network/runtime-contracts": "0.20.0"
|
|
159
|
+
"@tangle-network/runtime-contracts": "0.20.0",
|
|
160
|
+
"@repo/shared": "0.0.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-
|
|
163
|
+
"sourceSha": "03a54d261d28941b69b618ccf91bb8f8854adf35",
|
|
164
|
+
"mergedAt": "2026-10-29T04:04:35-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|