@fastgpt-sdk/sandbox-adapter 0.0.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.
@@ -0,0 +1,9 @@
1
+ import { SandboxException } from './SandboxException';
2
+ /**
3
+ * Thrown when an operation is attempted in an invalid sandbox state.
4
+ */
5
+ export declare class SandboxStateError extends SandboxException {
6
+ readonly currentState: string;
7
+ readonly requiredState?: string | undefined;
8
+ constructor(message: string, currentState: string, requiredState?: string | undefined);
9
+ }
@@ -0,0 +1,15 @@
1
+ import { SandboxException } from './SandboxException';
2
+ /**
3
+ * Thrown when an operation times out.
4
+ */
5
+ export declare class TimeoutError extends SandboxException {
6
+ readonly timeoutMs: number;
7
+ readonly operation: string;
8
+ constructor(message: string, timeoutMs: number, operation: string);
9
+ }
10
+ /**
11
+ * Thrown when waiting for sandbox readiness times out.
12
+ */
13
+ export declare class SandboxReadyTimeoutError extends SandboxException {
14
+ constructor(sandboxId: string, timeoutMs: number);
15
+ }
@@ -0,0 +1,7 @@
1
+ export { CommandExecutionError } from './CommandExecutionError';
2
+ export { ConnectionError } from './ConnectionError';
3
+ export { FeatureNotSupportedError } from './FeatureNotSupportedError';
4
+ export { type FileErrorCode, FileOperationError } from './FileOperationError';
5
+ export { type SandboxErrorCode, SandboxException } from './SandboxException';
6
+ export { SandboxStateError } from './SandboxStateError';
7
+ export { SandboxReadyTimeoutError, TimeoutError } from './TimeoutError';
@@ -0,0 +1,4 @@
1
+ export * from './adapters';
2
+ export * from './errors';
3
+ export * from './interfaces';
4
+ export * from './types';