tensorlake 0.5.126 → 0.5.127
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/applications/index.cjs +67 -58
- package/dist/applications/index.cjs.map +1 -1
- package/dist/applications/index.js +67 -58
- package/dist/applications/index.js.map +1 -1
- package/dist/function-agent/main.cjs +1 -1
- package/dist/function-agent/main.js +1 -1
- package/dist/function-executor/main.cjs +2 -2
- package/dist/function-executor/main.js +2 -2
- package/dist/index.cjs +302 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -9
- package/dist/index.d.ts +93 -9
- package/dist/index.js +277 -103
- package/dist/index.js.map +1 -1
- package/dist/sandbox-image.cjs +1 -1
- package/dist/sandbox-image.js +1 -1
- package/package.json +7 -7
- package/runtime/function-executor/manifest.json +5 -5
- package/runtime/function-executor/package/dist/function-executor/main.js +2 -2
- package/runtime/function-executor/package/npm-shrinkwrap.json +2 -2
- package/runtime/function-executor/package/package.json +1 -1
- package/runtime/typescript-function-runner/manifest.json +5 -5
- package/runtime/typescript-function-runner/package/dist/function-agent/main.js +1 -1
- package/runtime/typescript-function-runner/package/npm-shrinkwrap.json +20 -20
- package/runtime/typescript-function-runner/package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1433,12 +1433,89 @@ declare class CloudClient {
|
|
|
1433
1433
|
private secretCollectionPath;
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
+
/** Shared command runner for the separately installed local mount daemon. */
|
|
1437
|
+
declare class MountCli {
|
|
1438
|
+
private readonly command;
|
|
1439
|
+
private readonly envOverrides;
|
|
1440
|
+
private binary;
|
|
1441
|
+
constructor(command: "fs" | "git", envOverrides: Record<string, string>);
|
|
1442
|
+
private findCli;
|
|
1443
|
+
protected run(args: string[], timeoutMs?: number): Promise<string>;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
interface RepositoryMountOptions {
|
|
1447
|
+
/** Stateless read-only view; cannot be combined with publish or workspace. */
|
|
1448
|
+
readOnly?: boolean;
|
|
1449
|
+
/** Publish each explicit snapshot onto the mounted branch. */
|
|
1450
|
+
publish?: boolean;
|
|
1451
|
+
/** Resume a private workspace; cannot be combined with publish or readOnly. */
|
|
1452
|
+
workspace?: string;
|
|
1453
|
+
}
|
|
1454
|
+
interface RepositoryUnmountOptions {
|
|
1455
|
+
/** Delete the private server workspace after detaching. Defaults to false. */
|
|
1456
|
+
deleteWorkspace?: boolean;
|
|
1457
|
+
/** Drop unpublished local state. Defaults to false. */
|
|
1458
|
+
discard?: boolean;
|
|
1459
|
+
}
|
|
1460
|
+
/** Stable fields from `tl git status --json`, with the full payload in raw. */
|
|
1461
|
+
interface RepositoryMountStatus {
|
|
1462
|
+
path: string;
|
|
1463
|
+
repository: string | null;
|
|
1464
|
+
reference: string | null;
|
|
1465
|
+
workspaceId: string | null;
|
|
1466
|
+
state: string | null;
|
|
1467
|
+
localChanges: boolean | null;
|
|
1468
|
+
raw: Record<string, unknown>;
|
|
1469
|
+
}
|
|
1470
|
+
/** @internal CLI implementation; obtain mounts through RepositoryClient. */
|
|
1471
|
+
declare class GitCli extends MountCli {
|
|
1472
|
+
constructor(envOverrides: Record<string, string>);
|
|
1473
|
+
mount(target: string, localPath: string, options?: RepositoryMountOptions): Promise<RepositoryMount>;
|
|
1474
|
+
unmount(localPath: string, options?: RepositoryUnmountOptions): Promise<void>;
|
|
1475
|
+
status(localPath?: string): Promise<RepositoryMountStatus>;
|
|
1476
|
+
snapshot(path: string, message?: string): Promise<void>;
|
|
1477
|
+
sync(path: string, target?: string): Promise<void>;
|
|
1478
|
+
rebase(path: string, target: string, failOnConflict: boolean): Promise<void>;
|
|
1479
|
+
promote(path: string, branch: string, merge: boolean): Promise<void>;
|
|
1480
|
+
prefetch(path: string): Promise<void>;
|
|
1481
|
+
}
|
|
1482
|
+
/** A repository mounted on the machine running Node.js via the `tl` CLI daemon. */
|
|
1483
|
+
declare class RepositoryMount {
|
|
1484
|
+
private readonly cli;
|
|
1485
|
+
/** Initial source (`repo[:ref][//subtree]`); sync/rebase can change the base. */
|
|
1486
|
+
readonly target: string;
|
|
1487
|
+
readonly path: string;
|
|
1488
|
+
readonly readOnly: boolean;
|
|
1489
|
+
/** @internal Obtain instances via RepositoryClient.mount(). */
|
|
1490
|
+
constructor(cli: GitCli,
|
|
1491
|
+
/** Initial source (`repo[:ref][//subtree]`); sync/rebase can change the base. */
|
|
1492
|
+
target: string, path: string, readOnly: boolean);
|
|
1493
|
+
/** Inspect workspace state, pending changes, and daemon diagnostics. */
|
|
1494
|
+
status(): Promise<RepositoryMountStatus>;
|
|
1495
|
+
/** Materialize autosaved edits as a commit; publish mounts also update their branch. */
|
|
1496
|
+
snapshot(message?: string): Promise<void>;
|
|
1497
|
+
/** Refresh the current source, or switch an unsnapshotted workspace to a new base. */
|
|
1498
|
+
sync(target?: string): Promise<void>;
|
|
1499
|
+
/** Replay snapshots and pending edits onto another base. Conflicts become diff3 markers by default. */
|
|
1500
|
+
rebase(target: string, options?: {
|
|
1501
|
+
failOnConflict?: boolean;
|
|
1502
|
+
}): Promise<void>;
|
|
1503
|
+
/** Publish the workspace to a branch; merge allows landing when the branch moved. */
|
|
1504
|
+
promote(branch: string, options?: {
|
|
1505
|
+
merge?: boolean;
|
|
1506
|
+
}): Promise<void>;
|
|
1507
|
+
/** Download and verify the mounted working set for network-free reads. */
|
|
1508
|
+
prefetch(): Promise<void>;
|
|
1509
|
+
/** Detach, retaining the private workspace and unpublished state unless explicitly requested. */
|
|
1510
|
+
unmount(options?: RepositoryUnmountOptions): Promise<void>;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1436
1513
|
interface RepositoryClientOptions {
|
|
1437
1514
|
apiUrl?: string;
|
|
1438
1515
|
apiKey?: string;
|
|
1439
|
-
/** @deprecated Scope is selected by ingress for SDK API keys. */
|
|
1516
|
+
/** @deprecated Scope is selected by ingress for SDK API keys; used only by local `tl` mounts. */
|
|
1440
1517
|
organizationId?: string;
|
|
1441
|
-
/** @deprecated Scope is selected by ingress for SDK API keys. */
|
|
1518
|
+
/** @deprecated Scope is selected by ingress for SDK API keys; used only by local `tl` mounts. */
|
|
1442
1519
|
projectId?: string;
|
|
1443
1520
|
requestTimeout?: number;
|
|
1444
1521
|
timeoutMs?: number;
|
|
@@ -1597,10 +1674,21 @@ interface Operation {
|
|
|
1597
1674
|
declare class RepositoryClient {
|
|
1598
1675
|
private readonly native;
|
|
1599
1676
|
private readonly requestTimeoutMs;
|
|
1677
|
+
private readonly cli;
|
|
1600
1678
|
constructor(options?: RepositoryClientOptions);
|
|
1601
1679
|
static forCloud(options?: RepositoryClientOptions): RepositoryClient;
|
|
1602
1680
|
static fromEnv(): Promise<RepositoryClient>;
|
|
1603
1681
|
close(): void;
|
|
1682
|
+
/**
|
|
1683
|
+
* Mount `repo[:branch|tag|full-commit][//subtree]` to a local directory.
|
|
1684
|
+
* Requires the separately installed `tl` CLI with mount support. Mounts
|
|
1685
|
+
* live on the machine running Node.js and must be explicitly unmounted.
|
|
1686
|
+
*/
|
|
1687
|
+
mount(target: string, localPath: string, options?: RepositoryMountOptions): Promise<RepositoryMount>;
|
|
1688
|
+
/** Detach a local repository mount, optionally deleting its private workspace. */
|
|
1689
|
+
unmount(localPath: string, options?: RepositoryUnmountOptions): Promise<void>;
|
|
1690
|
+
/** Inspect a local mount; defaults to the mount containing the current directory. */
|
|
1691
|
+
mountStatus(localPath?: string): Promise<RepositoryMountStatus>;
|
|
1604
1692
|
url(repo: string): Promise<string>;
|
|
1605
1693
|
create(repo: string, options?: {
|
|
1606
1694
|
defaultBranch?: string;
|
|
@@ -1754,7 +1842,7 @@ declare class ReadOnlyMountNotSupportedError extends MountError {
|
|
|
1754
1842
|
constructor();
|
|
1755
1843
|
}
|
|
1756
1844
|
declare class CliNotFoundError extends MountError {
|
|
1757
|
-
constructor(detail: string);
|
|
1845
|
+
constructor(detail: string, command?: "fs" | "git mount");
|
|
1758
1846
|
}
|
|
1759
1847
|
|
|
1760
1848
|
/**
|
|
@@ -1800,12 +1888,8 @@ interface FilesystemClientOptions {
|
|
|
1800
1888
|
* mounts by invoking `tl fs mount/unmount/snapshot/status`. Everything else
|
|
1801
1889
|
* goes through the Rust core and does not need the CLI.
|
|
1802
1890
|
*/
|
|
1803
|
-
declare class FsCli {
|
|
1804
|
-
private binary;
|
|
1805
|
-
private readonly envOverrides;
|
|
1891
|
+
declare class FsCli extends MountCli {
|
|
1806
1892
|
constructor(envOverrides: Record<string, string>);
|
|
1807
|
-
private findCli;
|
|
1808
|
-
private run;
|
|
1809
1893
|
mount(filesystem: string, localPath: string, readonly: boolean): Promise<void>;
|
|
1810
1894
|
unmount(localPath: string, discard: boolean): Promise<void>;
|
|
1811
1895
|
snapshot(localPath: string, message?: string): Promise<void>;
|
|
@@ -2017,4 +2101,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2017
2101
|
constructor(message: string, functionName?: string);
|
|
2018
2102
|
}
|
|
2019
2103
|
|
|
2020
|
-
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, StartImageBuildRequest, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, UpsertSecretResponse, createFileSystem, deleteFileSystem, listFileSystems, sandboxUrlFromIngressEndpoint };
|
|
2104
|
+
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, StartImageBuildRequest, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, UpsertSecretResponse, createFileSystem, deleteFileSystem, listFileSystems, sandboxUrlFromIngressEndpoint };
|
package/dist/index.d.ts
CHANGED
|
@@ -1433,12 +1433,89 @@ declare class CloudClient {
|
|
|
1433
1433
|
private secretCollectionPath;
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
+
/** Shared command runner for the separately installed local mount daemon. */
|
|
1437
|
+
declare class MountCli {
|
|
1438
|
+
private readonly command;
|
|
1439
|
+
private readonly envOverrides;
|
|
1440
|
+
private binary;
|
|
1441
|
+
constructor(command: "fs" | "git", envOverrides: Record<string, string>);
|
|
1442
|
+
private findCli;
|
|
1443
|
+
protected run(args: string[], timeoutMs?: number): Promise<string>;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
interface RepositoryMountOptions {
|
|
1447
|
+
/** Stateless read-only view; cannot be combined with publish or workspace. */
|
|
1448
|
+
readOnly?: boolean;
|
|
1449
|
+
/** Publish each explicit snapshot onto the mounted branch. */
|
|
1450
|
+
publish?: boolean;
|
|
1451
|
+
/** Resume a private workspace; cannot be combined with publish or readOnly. */
|
|
1452
|
+
workspace?: string;
|
|
1453
|
+
}
|
|
1454
|
+
interface RepositoryUnmountOptions {
|
|
1455
|
+
/** Delete the private server workspace after detaching. Defaults to false. */
|
|
1456
|
+
deleteWorkspace?: boolean;
|
|
1457
|
+
/** Drop unpublished local state. Defaults to false. */
|
|
1458
|
+
discard?: boolean;
|
|
1459
|
+
}
|
|
1460
|
+
/** Stable fields from `tl git status --json`, with the full payload in raw. */
|
|
1461
|
+
interface RepositoryMountStatus {
|
|
1462
|
+
path: string;
|
|
1463
|
+
repository: string | null;
|
|
1464
|
+
reference: string | null;
|
|
1465
|
+
workspaceId: string | null;
|
|
1466
|
+
state: string | null;
|
|
1467
|
+
localChanges: boolean | null;
|
|
1468
|
+
raw: Record<string, unknown>;
|
|
1469
|
+
}
|
|
1470
|
+
/** @internal CLI implementation; obtain mounts through RepositoryClient. */
|
|
1471
|
+
declare class GitCli extends MountCli {
|
|
1472
|
+
constructor(envOverrides: Record<string, string>);
|
|
1473
|
+
mount(target: string, localPath: string, options?: RepositoryMountOptions): Promise<RepositoryMount>;
|
|
1474
|
+
unmount(localPath: string, options?: RepositoryUnmountOptions): Promise<void>;
|
|
1475
|
+
status(localPath?: string): Promise<RepositoryMountStatus>;
|
|
1476
|
+
snapshot(path: string, message?: string): Promise<void>;
|
|
1477
|
+
sync(path: string, target?: string): Promise<void>;
|
|
1478
|
+
rebase(path: string, target: string, failOnConflict: boolean): Promise<void>;
|
|
1479
|
+
promote(path: string, branch: string, merge: boolean): Promise<void>;
|
|
1480
|
+
prefetch(path: string): Promise<void>;
|
|
1481
|
+
}
|
|
1482
|
+
/** A repository mounted on the machine running Node.js via the `tl` CLI daemon. */
|
|
1483
|
+
declare class RepositoryMount {
|
|
1484
|
+
private readonly cli;
|
|
1485
|
+
/** Initial source (`repo[:ref][//subtree]`); sync/rebase can change the base. */
|
|
1486
|
+
readonly target: string;
|
|
1487
|
+
readonly path: string;
|
|
1488
|
+
readonly readOnly: boolean;
|
|
1489
|
+
/** @internal Obtain instances via RepositoryClient.mount(). */
|
|
1490
|
+
constructor(cli: GitCli,
|
|
1491
|
+
/** Initial source (`repo[:ref][//subtree]`); sync/rebase can change the base. */
|
|
1492
|
+
target: string, path: string, readOnly: boolean);
|
|
1493
|
+
/** Inspect workspace state, pending changes, and daemon diagnostics. */
|
|
1494
|
+
status(): Promise<RepositoryMountStatus>;
|
|
1495
|
+
/** Materialize autosaved edits as a commit; publish mounts also update their branch. */
|
|
1496
|
+
snapshot(message?: string): Promise<void>;
|
|
1497
|
+
/** Refresh the current source, or switch an unsnapshotted workspace to a new base. */
|
|
1498
|
+
sync(target?: string): Promise<void>;
|
|
1499
|
+
/** Replay snapshots and pending edits onto another base. Conflicts become diff3 markers by default. */
|
|
1500
|
+
rebase(target: string, options?: {
|
|
1501
|
+
failOnConflict?: boolean;
|
|
1502
|
+
}): Promise<void>;
|
|
1503
|
+
/** Publish the workspace to a branch; merge allows landing when the branch moved. */
|
|
1504
|
+
promote(branch: string, options?: {
|
|
1505
|
+
merge?: boolean;
|
|
1506
|
+
}): Promise<void>;
|
|
1507
|
+
/** Download and verify the mounted working set for network-free reads. */
|
|
1508
|
+
prefetch(): Promise<void>;
|
|
1509
|
+
/** Detach, retaining the private workspace and unpublished state unless explicitly requested. */
|
|
1510
|
+
unmount(options?: RepositoryUnmountOptions): Promise<void>;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1436
1513
|
interface RepositoryClientOptions {
|
|
1437
1514
|
apiUrl?: string;
|
|
1438
1515
|
apiKey?: string;
|
|
1439
|
-
/** @deprecated Scope is selected by ingress for SDK API keys. */
|
|
1516
|
+
/** @deprecated Scope is selected by ingress for SDK API keys; used only by local `tl` mounts. */
|
|
1440
1517
|
organizationId?: string;
|
|
1441
|
-
/** @deprecated Scope is selected by ingress for SDK API keys. */
|
|
1518
|
+
/** @deprecated Scope is selected by ingress for SDK API keys; used only by local `tl` mounts. */
|
|
1442
1519
|
projectId?: string;
|
|
1443
1520
|
requestTimeout?: number;
|
|
1444
1521
|
timeoutMs?: number;
|
|
@@ -1597,10 +1674,21 @@ interface Operation {
|
|
|
1597
1674
|
declare class RepositoryClient {
|
|
1598
1675
|
private readonly native;
|
|
1599
1676
|
private readonly requestTimeoutMs;
|
|
1677
|
+
private readonly cli;
|
|
1600
1678
|
constructor(options?: RepositoryClientOptions);
|
|
1601
1679
|
static forCloud(options?: RepositoryClientOptions): RepositoryClient;
|
|
1602
1680
|
static fromEnv(): Promise<RepositoryClient>;
|
|
1603
1681
|
close(): void;
|
|
1682
|
+
/**
|
|
1683
|
+
* Mount `repo[:branch|tag|full-commit][//subtree]` to a local directory.
|
|
1684
|
+
* Requires the separately installed `tl` CLI with mount support. Mounts
|
|
1685
|
+
* live on the machine running Node.js and must be explicitly unmounted.
|
|
1686
|
+
*/
|
|
1687
|
+
mount(target: string, localPath: string, options?: RepositoryMountOptions): Promise<RepositoryMount>;
|
|
1688
|
+
/** Detach a local repository mount, optionally deleting its private workspace. */
|
|
1689
|
+
unmount(localPath: string, options?: RepositoryUnmountOptions): Promise<void>;
|
|
1690
|
+
/** Inspect a local mount; defaults to the mount containing the current directory. */
|
|
1691
|
+
mountStatus(localPath?: string): Promise<RepositoryMountStatus>;
|
|
1604
1692
|
url(repo: string): Promise<string>;
|
|
1605
1693
|
create(repo: string, options?: {
|
|
1606
1694
|
defaultBranch?: string;
|
|
@@ -1754,7 +1842,7 @@ declare class ReadOnlyMountNotSupportedError extends MountError {
|
|
|
1754
1842
|
constructor();
|
|
1755
1843
|
}
|
|
1756
1844
|
declare class CliNotFoundError extends MountError {
|
|
1757
|
-
constructor(detail: string);
|
|
1845
|
+
constructor(detail: string, command?: "fs" | "git mount");
|
|
1758
1846
|
}
|
|
1759
1847
|
|
|
1760
1848
|
/**
|
|
@@ -1800,12 +1888,8 @@ interface FilesystemClientOptions {
|
|
|
1800
1888
|
* mounts by invoking `tl fs mount/unmount/snapshot/status`. Everything else
|
|
1801
1889
|
* goes through the Rust core and does not need the CLI.
|
|
1802
1890
|
*/
|
|
1803
|
-
declare class FsCli {
|
|
1804
|
-
private binary;
|
|
1805
|
-
private readonly envOverrides;
|
|
1891
|
+
declare class FsCli extends MountCli {
|
|
1806
1892
|
constructor(envOverrides: Record<string, string>);
|
|
1807
|
-
private findCli;
|
|
1808
|
-
private run;
|
|
1809
1893
|
mount(filesystem: string, localPath: string, readonly: boolean): Promise<void>;
|
|
1810
1894
|
unmount(localPath: string, discard: boolean): Promise<void>;
|
|
1811
1895
|
snapshot(localPath: string, message?: string): Promise<void>;
|
|
@@ -2017,4 +2101,4 @@ declare class RequestExecutionError extends Error {
|
|
|
2017
2101
|
constructor(message: string, functionName?: string);
|
|
2018
2102
|
}
|
|
2019
2103
|
|
|
2020
|
-
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, StartImageBuildRequest, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, UpsertSecretResponse, createFileSystem, deleteFileSystem, listFileSystems, sandboxUrlFromIngressEndpoint };
|
|
2104
|
+
export { ApplicationBuildContext, ApplicationBuildResponse, ApplicationManifest, ApplicationSummary, type ArchivedSandboxInfo, type AttachFileSystemOptions, BinaryPayload, type Branch, BuildInfo, BuildLogEntry, type CheckpointOptions, type CheckpointType, type ClaimSandboxOptions, CliNotFoundError, CloudClient, CloudClientOptions, type CommandResult, type CommitJobError, type CommitJobReadBack, type CommitJobStatus, type ConflictPath, type ConflictTerm, type ConnectDesktopOptions, type ConnectOptions, type ContainerResourcesInfo, ContainerState, type CopiedSandboxResponse, type CopySandboxOptions, type CopySandboxResponse, type CreateAndConnectOptions, CreateApplicationBuildRequest, type CreatePoolOptions, type CreatePtyOptions, type CreatePtySessionOptions, type CreateSandboxOptions, type CreateSandboxPoolResponse, type CreateSandboxResponse, type CreateSnapshotResponse, type CreateTunnelOptions, type DaemonInfo, Desktop, type DesktopDoubleClickOptions, type DesktopPointerOptions, type DirectoryEntry, type FileEntry, FileNotFoundInFilesystemError, FileSystem, type FileSystemMount, Filesystem, FilesystemAPIError, FilesystemClient, type FilesystemClientOptions, FilesystemError, type FilesystemFileRead, type FilesystemInfo, FilesystemMount, FilesystemNotFoundError, type FilesystemReadOptions, type FilesystemSnapshot, type FilesystemSnapshotInfo, type FilesystemStatus, type FilesystemVersion, type GPUResources, type GetOrCreateOptions, type GetOrCreateOutcome, type GetSandboxLogsOptions, type GitCredential, type GitRef, type GitRepository, type GpuModel, type GpuRequest, type HealthResponse, type ListArchivedSandboxesOptions, type ListArchivedSandboxesResponse, type ListDirectoryResponse, type ManagedProcessExit, type ManagedProcessHealthStatus, type ManagedProcessInfo, type ManagedProcessStatus, type MergeConflict, type MergeConflictRecord, type MergeEntry, type MergeOptions, type MergeReport, type MergeStats, MountError, type MountStatus, type MouseButton, type NetworkConfig, NewSecret, type Operation, type OperationRef, type OutputEvent, OutputMode, type OutputResponse, type PoolContainerInfo, PoolInUseError, PoolNotFoundError, type ProcessHealthCheck, type ProcessHealthCheckType, type ProcessInfo, ProcessStatus, type ProcessUser, type ProcessUserSpec, Pty, type PtyConnectionOptions, type PtyDataHandler, type PtyExitHandler, type PtySessionInfo, type PushReport, type PushWorktreeOptions, ReadOnlyMountNotSupportedError, RemoteAPIError, RepositoryClient, type RepositoryClientOptions, type RepositoryHandle, type RepositoryInfo, RepositoryMount, type RepositoryMountOptions, type RepositoryMountStatus, type RepositoryUnmountOptions, RequestExecutionError, RequestFailedError, RequestInput, RequestMetadata, RequestNotFinishedError, RequestOutput, type RestartPolicy, type RestartPolicyConfig, type RunOptions, Sandbox, SandboxClient, type SandboxClientOptions, SandboxConnectionError, SandboxError, SandboxException, type SandboxInfo, type SandboxLogLevel, type SandboxLogSignal, type SandboxLogsResponse, SandboxNotFoundError, type SandboxOptions, type SandboxPoolInfo, type SandboxPortAccess, type SandboxProcessLogFilter, type SandboxProcessLogFiltersResponse, SandboxStatus, SandboxTemplate, Secret, SecretsList, type SendSignalResponse, type SnapshotAndWaitOptions, type SnapshotInfo, type SnapshotOptions, SnapshotStatus, type SnapshotType, type SnapshotWaitCondition, StartImageBuildRequest, type StartProcessOptions, StdinMode, type SuspendResumeOptions, TcpTunnel, type TunnelAddress, type UpdatePoolOptions, UpsertSecretResponse, createFileSystem, deleteFileSystem, listFileSystems, sandboxUrlFromIngressEndpoint };
|