freestyle-sandboxes 0.0.67 → 0.0.69
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/ai/inde.d.cts +1 -1
- package/dist/ai/inde.d.mts +1 -1
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/inde.d.cts +103 -25
- package/dist/inde.d.mts +103 -25
- package/dist/index.cjs +249 -12
- package/dist/index.d.cts +103 -25
- package/dist/index.d.mts +103 -25
- package/dist/index.mjs +249 -12
- package/dist/langgraph/inde.d.cts +1 -1
- package/dist/langgraph/inde.d.mts +1 -1
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/inde.d.cts +1 -1
- package/dist/mastra/inde.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/react/dev-server/index..d.cts +23 -2
- package/dist/react/dev-server/index..d.mts +23 -2
- package/dist/react/dev-server/index.d.cts +23 -2
- package/dist/react/dev-server/index.d.mts +23 -2
- package/dist/types.gen-wmZuN8DG.d.ts +1197 -0
- package/dist/utils/inde.d.cts +1 -1
- package/dist/utils/inde.d.mts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +48 -16
- package/openapi/types.gen.ts +119 -30
- package/openapi.json +1 -1
- package/package.json +2 -1
- package/src/dev-server.ts +92 -0
- package/src/index.ts +319 -27
- package/src/react/dev-server/index.tsx +3 -3
- package/tsconfig.json +2 -1
package/dist/ai/inde.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bG as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-wmZuN8DG.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/inde.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bG as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-wmZuN8DG.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bG as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-wmZuN8DG.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bG as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-wmZuN8DG.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/inde.d.cts
CHANGED
|
@@ -1,22 +1,100 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-
|
|
2
|
-
export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DnsRecord, a4 as DnsRecordData, a5 as DnsRecordKind, a6 as DomainVerificationRequest, a7 as ExecRequest, a8 as ExecuteLogEntry, a9 as ExecuteRunInfo, aa as ExecuteRunState, ab as FileReadContent, ad as FreestyleCloudstateDeployConfiguration, ae as FreestyleCloudstateDeployErrorResponse, af as FreestyleDeleteDomainVerificationRequest, ag as FreestyleDeployWebErrorResponse, ah as FreestyleDeployWebPayload, ai as FreestyleDeployWebPayloadV2, aj as FreestyleDomainVerificationRequest, ak as FreestyleExecuteScriptParams, al as FreestyleFile, am as FreestyleGetLogsResponse, an as FreestyleJavaScriptLog, ao as FreestyleLogResponseObject, ap as FreestyleNetworkPermission, ar as FreestyleVerifyDomainRequest, as as GitCommitPushRequest, at as GitRepositoryTrigger,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-wmZuN8DG.js';
|
|
2
|
+
export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DnsRecord, a4 as DnsRecordData, a5 as DnsRecordKind, a6 as DomainVerificationRequest, a7 as ExecRequest, a8 as ExecuteLogEntry, a9 as ExecuteRunInfo, aa as ExecuteRunState, ab as FileReadContent, ad as FreestyleCloudstateDeployConfiguration, ae as FreestyleCloudstateDeployErrorResponse, af as FreestyleDeleteDomainVerificationRequest, ag as FreestyleDeployWebErrorResponse, ah as FreestyleDeployWebPayload, ai as FreestyleDeployWebPayloadV2, aj as FreestyleDomainVerificationRequest, ak as FreestyleExecuteScriptParams, al as FreestyleFile, am as FreestyleGetLogsResponse, an as FreestyleJavaScriptLog, ao as FreestyleLogResponseObject, ap as FreestyleNetworkPermission, ar as FreestyleVerifyDomainRequest, as as GitCommitPushRequest, at as GitReference, au as GitRepositoryTrigger, ax as GrantPermissionRequest, aR as HandleBackupCloudstateData, aS as HandleBackupCloudstateError, bb as HandleCreateDomainVerificationData, bc as HandleCreateDomainVerificationError, c3 as HandleCreateGitTokenData, c5 as HandleCreateGitTokenError, c4 as HandleCreateGitTokenResponse, cx as HandleCreateGitTriggerData, cy as HandleCreateGitTriggerError, bL as HandleCreateIdentityError, bK as HandleCreateIdentityResponse, aW as HandleCreateRecordData, aY as HandleCreateRecordError, aX as HandleCreateRecordResponse, cb as HandleCreateRepoData, cd as HandleCreateRepoError, cc as HandleCreateRepoResponse, b6 as HandleDeleteDomainMappingData, b8 as HandleDeleteDomainMappingError, b7 as HandleDeleteDomainMappingResponse, bd as HandleDeleteDomainVerificationData, be as HandleDeleteDomainVerificationError, cz as HandleDeleteGitTriggerData, cB as HandleDeleteGitTriggerError, cA as HandleDeleteGitTriggerResponse, bM as HandleDeleteIdentityData, bN as HandleDeleteIdentityError, aZ as HandleDeleteRecordData, a$ as HandleDeleteRecordError, a_ as HandleDeleteRecordResponse, ce as HandleDeleteRepoData, cf as HandleDeleteRepoError, aO as HandleDeployCloudstateData, aQ as HandleDeployCloudstateError, aP as HandleDeployCloudstateResponse, cH as HandleDeployWebData, cJ as HandleDeployWebError, cI as HandleDeployWebResponse, cK as HandleDeployWebV2Data, cM as HandleDeployWebV2Error, cL as HandleDeployWebV2Response, bR as HandleDescribePermissionData, bT as HandleDescribePermissionError, bS as HandleDescribePermissionResponse, bx as HandleDevServerStatusData, bz as HandleDevServerStatusError, by as HandleDevServerStatusResponse, bf as HandleEphemeralDevServerData, bh as HandleEphemeralDevServerError, bg as HandleEphemeralDevServerResponse, bi as HandleExecOnEphemeralDevServerData, bk as HandleExecOnEphemeralDevServerError, bj as HandleExecOnEphemeralDevServerResponse, bE as HandleExecuteScriptData, bG as HandleExecuteScriptError, bF as HandleExecuteScriptResponse, cg as HandleGetBlobData, ci as HandleGetBlobError, ch as HandleGetBlobResponse, cj as HandleGetCommitData, cl as HandleGetCommitError, ck as HandleGetCommitResponse, bC as HandleGetExecuteRunData, bD as HandleGetExecuteRunError, cC as HandleGetLogsData, cD as HandleGetLogsError, cm as HandleGetRefBranchData, co as HandleGetRefBranchError, cn as HandleGetRefBranchResponse, cE as HandleGetRefTagData, cG as HandleGetRefTagError, cF as HandleGetRefTagResponse, cp as HandleGetTagData, cr as HandleGetTagError, cq as HandleGetTagResponse, cs as HandleGetTreeData, cu as HandleGetTreeError, ct as HandleGetTreeResponse, cP as HandleGetWebDeployDetailsData, br as HandleGitCommitPushData, bt as HandleGitCommitPushError, bs as HandleGitCommitPushResponse, bU as HandleGrantPermissionData, bV as HandleGrantPermissionError, b3 as HandleInsertDomainMappingData, b5 as HandleInsertDomainMappingError, b4 as HandleInsertDomainMappingResponse, b9 as HandleListDomainVerificationRequestsError, b2 as HandleListDomainsError, bA as HandleListExecuteRunsData, bB as HandleListExecuteRunsError, c0 as HandleListGitTokensData, c2 as HandleListGitTokensError, c1 as HandleListGitTokensResponse, cv as HandleListGitTriggersData, cw as HandleListGitTriggersError, bH as HandleListIdentitiesData, bJ as HandleListIdentitiesError, bI as HandleListIdentitiesResponse, bO as HandleListPermissionsData, bQ as HandleListPermissionsError, bP as HandleListPermissionsResponse, aT as HandleListRecordsData, aV as HandleListRecordsError, aU as HandleListRecordsResponse, c9 as HandleListRepositoriesData, ca as HandleListRepositoriesError, cN as HandleListWebDeploysData, cO as HandleListWebDeploysError, bo as HandleReadFileFromEphemeralDevServerData, bq as HandleReadFileFromEphemeralDevServerError, bp as HandleReadFileFromEphemeralDevServerResponse, c6 as HandleRevokeGitTokenData, c8 as HandleRevokeGitTokenError, c7 as HandleRevokeGitTokenResponse, bW as HandleRevokePermissionData, bY as HandleRevokePermissionError, bX as HandleRevokePermissionResponse, bu as HandleShutdownDevServerData, bw as HandleShutdownDevServerError, bv as HandleShutdownDevServerResponse, bZ as HandleUpdatePermissionData, b$ as HandleUpdatePermissionError, b_ as HandleUpdatePermissionResponse, ba as HandleVerifyDomainData, b0 as HandleVerifyWildcardData, b1 as HandleVerifyWildcardError, bl as HandleWriteFileFromEphemeralDevServerData, bn as HandleWriteFileFromEphemeralDevServerError, bm as HandleWriteFileFromEphemeralDevServerResponse, ay as InternalServerError, az as ListRecordsResponse, aA as NetworkPermissionData, aB as ReadFileRequest, aC as RepositoryInfo, aD as RevokeGitTokenRequest, aE as ShutdownDevServerRequest, aF as Signature, aG as TagObject, aH as TagTarget, aI as TreeEntry, aK as TreeObject, aL as UpdatePermissionRequest, aM as Visibility, aN as WriteFileRequest, aq as action, aw as action2, av as event, Z as kind, a0 as kind2, ac as kind3, W as type, aJ as type2 } from './types.gen-wmZuN8DG.js';
|
|
3
3
|
|
|
4
|
+
interface FreestyleDevServer {
|
|
5
|
+
/**
|
|
6
|
+
* The URL for the dev server's HTTP API.
|
|
7
|
+
*/
|
|
8
|
+
ephemeralUrl: string;
|
|
9
|
+
/**
|
|
10
|
+
* The URL to the MCP endpoint for the dev server.
|
|
11
|
+
*/
|
|
12
|
+
mcpEphemeralUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* The URL for the VSCode server running in the dev server.
|
|
15
|
+
*/
|
|
16
|
+
codeServerUrl: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the dev server was just created.
|
|
19
|
+
*/
|
|
20
|
+
isNew: boolean;
|
|
21
|
+
fs: FreestyleDevServerFilesystem;
|
|
22
|
+
process: FreestyleDevServerProcess;
|
|
23
|
+
/**
|
|
24
|
+
* Get the status of the dev server
|
|
25
|
+
*/
|
|
26
|
+
status(): Promise<{
|
|
27
|
+
installing: boolean;
|
|
28
|
+
devRunning: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Commit and push changes to the dev server repository
|
|
32
|
+
* @param message The commit message
|
|
33
|
+
*/
|
|
34
|
+
commitAndPush(message: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Shutdown the dev server
|
|
37
|
+
*/
|
|
38
|
+
shutdown(): Promise<{
|
|
39
|
+
success: boolean;
|
|
40
|
+
message: string;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
interface FreestyleDevServerFilesystem {
|
|
44
|
+
/**
|
|
45
|
+
* List files in the dev server directory
|
|
46
|
+
*/
|
|
47
|
+
ls(path?: string): Promise<Array<string>>;
|
|
48
|
+
/**
|
|
49
|
+
* Read a file from the dev server
|
|
50
|
+
* @param path The path to the file
|
|
51
|
+
* @param encoding The encoding to use (defaults to utf-8)
|
|
52
|
+
*/
|
|
53
|
+
readFile(path: string, encoding?: string): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Write a file to the dev server
|
|
56
|
+
* @param path The path to write to
|
|
57
|
+
* @param content The content to write
|
|
58
|
+
* @param encoding The encoding to use (defaults to utf-8)
|
|
59
|
+
*/
|
|
60
|
+
writeFile(path: string, content: string | ArrayBufferLike, encoding?: string): Promise<void>;
|
|
61
|
+
watch(): AsyncGenerator<{
|
|
62
|
+
eventType: string;
|
|
63
|
+
filename: string;
|
|
64
|
+
}>;
|
|
65
|
+
}
|
|
66
|
+
interface FreestyleDevServerProcess {
|
|
67
|
+
/**
|
|
68
|
+
* Execute a command on the dev server
|
|
69
|
+
* @param cmd The command to execute
|
|
70
|
+
* @param background Whether to run the command in the background
|
|
71
|
+
*/
|
|
72
|
+
exec(cmd: string, background?: boolean): Promise<{
|
|
73
|
+
id: string;
|
|
74
|
+
isNew: boolean;
|
|
75
|
+
stdout?: string[];
|
|
76
|
+
stderr?: string[];
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type Options = {
|
|
81
|
+
/**
|
|
82
|
+
* The base URL for the API.
|
|
83
|
+
*/
|
|
84
|
+
baseUrl?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The API key to use for requests.
|
|
87
|
+
*/
|
|
88
|
+
apiKey?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Custom Headers to be sent with each request.
|
|
91
|
+
*/
|
|
92
|
+
headers?: Record<string, string>;
|
|
93
|
+
};
|
|
4
94
|
declare class FreestyleSandboxes {
|
|
5
95
|
private client;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* The base URL for the API.
|
|
9
|
-
*/
|
|
10
|
-
baseUrl?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The API key to use for requests.
|
|
13
|
-
*/
|
|
14
|
-
apiKey: string;
|
|
15
|
-
/**
|
|
16
|
-
* Custom Headers to be sent with each request.
|
|
17
|
-
*/
|
|
18
|
-
headers?: Record<string, string>;
|
|
19
|
-
});
|
|
96
|
+
options: Options;
|
|
97
|
+
constructor(options?: Options);
|
|
20
98
|
/**
|
|
21
99
|
* Execute a script in a sandbox.
|
|
22
100
|
*/
|
|
@@ -186,18 +264,18 @@ declare class FreestyleSandboxes {
|
|
|
186
264
|
*/
|
|
187
265
|
repoUrl?: string;
|
|
188
266
|
repoId?: string;
|
|
267
|
+
/**
|
|
268
|
+
* @deprecated
|
|
269
|
+
*/
|
|
189
270
|
repo?: string;
|
|
190
271
|
baseId?: string;
|
|
191
272
|
devCommand?: string;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
devCommandRunning: boolean;
|
|
199
|
-
installCommandRunning: boolean;
|
|
200
|
-
}>;
|
|
273
|
+
preDevCommandOnce?: string;
|
|
274
|
+
envVars?: Record<string, string>;
|
|
275
|
+
computeClass?: string;
|
|
276
|
+
timeout?: number;
|
|
277
|
+
}): Promise<FreestyleDevServer>;
|
|
278
|
+
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
201
279
|
}
|
|
202
280
|
|
|
203
281
|
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/inde.d.mts
CHANGED
|
@@ -1,22 +1,100 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-
|
|
2
|
-
export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DnsRecord, a4 as DnsRecordData, a5 as DnsRecordKind, a6 as DomainVerificationRequest, a7 as ExecRequest, a8 as ExecuteLogEntry, a9 as ExecuteRunInfo, aa as ExecuteRunState, ab as FileReadContent, ad as FreestyleCloudstateDeployConfiguration, ae as FreestyleCloudstateDeployErrorResponse, af as FreestyleDeleteDomainVerificationRequest, ag as FreestyleDeployWebErrorResponse, ah as FreestyleDeployWebPayload, ai as FreestyleDeployWebPayloadV2, aj as FreestyleDomainVerificationRequest, ak as FreestyleExecuteScriptParams, al as FreestyleFile, am as FreestyleGetLogsResponse, an as FreestyleJavaScriptLog, ao as FreestyleLogResponseObject, ap as FreestyleNetworkPermission, ar as FreestyleVerifyDomainRequest, as as GitCommitPushRequest, at as GitRepositoryTrigger,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-wmZuN8DG.js';
|
|
2
|
+
export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DnsRecord, a4 as DnsRecordData, a5 as DnsRecordKind, a6 as DomainVerificationRequest, a7 as ExecRequest, a8 as ExecuteLogEntry, a9 as ExecuteRunInfo, aa as ExecuteRunState, ab as FileReadContent, ad as FreestyleCloudstateDeployConfiguration, ae as FreestyleCloudstateDeployErrorResponse, af as FreestyleDeleteDomainVerificationRequest, ag as FreestyleDeployWebErrorResponse, ah as FreestyleDeployWebPayload, ai as FreestyleDeployWebPayloadV2, aj as FreestyleDomainVerificationRequest, ak as FreestyleExecuteScriptParams, al as FreestyleFile, am as FreestyleGetLogsResponse, an as FreestyleJavaScriptLog, ao as FreestyleLogResponseObject, ap as FreestyleNetworkPermission, ar as FreestyleVerifyDomainRequest, as as GitCommitPushRequest, at as GitReference, au as GitRepositoryTrigger, ax as GrantPermissionRequest, aR as HandleBackupCloudstateData, aS as HandleBackupCloudstateError, bb as HandleCreateDomainVerificationData, bc as HandleCreateDomainVerificationError, c3 as HandleCreateGitTokenData, c5 as HandleCreateGitTokenError, c4 as HandleCreateGitTokenResponse, cx as HandleCreateGitTriggerData, cy as HandleCreateGitTriggerError, bL as HandleCreateIdentityError, bK as HandleCreateIdentityResponse, aW as HandleCreateRecordData, aY as HandleCreateRecordError, aX as HandleCreateRecordResponse, cb as HandleCreateRepoData, cd as HandleCreateRepoError, cc as HandleCreateRepoResponse, b6 as HandleDeleteDomainMappingData, b8 as HandleDeleteDomainMappingError, b7 as HandleDeleteDomainMappingResponse, bd as HandleDeleteDomainVerificationData, be as HandleDeleteDomainVerificationError, cz as HandleDeleteGitTriggerData, cB as HandleDeleteGitTriggerError, cA as HandleDeleteGitTriggerResponse, bM as HandleDeleteIdentityData, bN as HandleDeleteIdentityError, aZ as HandleDeleteRecordData, a$ as HandleDeleteRecordError, a_ as HandleDeleteRecordResponse, ce as HandleDeleteRepoData, cf as HandleDeleteRepoError, aO as HandleDeployCloudstateData, aQ as HandleDeployCloudstateError, aP as HandleDeployCloudstateResponse, cH as HandleDeployWebData, cJ as HandleDeployWebError, cI as HandleDeployWebResponse, cK as HandleDeployWebV2Data, cM as HandleDeployWebV2Error, cL as HandleDeployWebV2Response, bR as HandleDescribePermissionData, bT as HandleDescribePermissionError, bS as HandleDescribePermissionResponse, bx as HandleDevServerStatusData, bz as HandleDevServerStatusError, by as HandleDevServerStatusResponse, bf as HandleEphemeralDevServerData, bh as HandleEphemeralDevServerError, bg as HandleEphemeralDevServerResponse, bi as HandleExecOnEphemeralDevServerData, bk as HandleExecOnEphemeralDevServerError, bj as HandleExecOnEphemeralDevServerResponse, bE as HandleExecuteScriptData, bG as HandleExecuteScriptError, bF as HandleExecuteScriptResponse, cg as HandleGetBlobData, ci as HandleGetBlobError, ch as HandleGetBlobResponse, cj as HandleGetCommitData, cl as HandleGetCommitError, ck as HandleGetCommitResponse, bC as HandleGetExecuteRunData, bD as HandleGetExecuteRunError, cC as HandleGetLogsData, cD as HandleGetLogsError, cm as HandleGetRefBranchData, co as HandleGetRefBranchError, cn as HandleGetRefBranchResponse, cE as HandleGetRefTagData, cG as HandleGetRefTagError, cF as HandleGetRefTagResponse, cp as HandleGetTagData, cr as HandleGetTagError, cq as HandleGetTagResponse, cs as HandleGetTreeData, cu as HandleGetTreeError, ct as HandleGetTreeResponse, cP as HandleGetWebDeployDetailsData, br as HandleGitCommitPushData, bt as HandleGitCommitPushError, bs as HandleGitCommitPushResponse, bU as HandleGrantPermissionData, bV as HandleGrantPermissionError, b3 as HandleInsertDomainMappingData, b5 as HandleInsertDomainMappingError, b4 as HandleInsertDomainMappingResponse, b9 as HandleListDomainVerificationRequestsError, b2 as HandleListDomainsError, bA as HandleListExecuteRunsData, bB as HandleListExecuteRunsError, c0 as HandleListGitTokensData, c2 as HandleListGitTokensError, c1 as HandleListGitTokensResponse, cv as HandleListGitTriggersData, cw as HandleListGitTriggersError, bH as HandleListIdentitiesData, bJ as HandleListIdentitiesError, bI as HandleListIdentitiesResponse, bO as HandleListPermissionsData, bQ as HandleListPermissionsError, bP as HandleListPermissionsResponse, aT as HandleListRecordsData, aV as HandleListRecordsError, aU as HandleListRecordsResponse, c9 as HandleListRepositoriesData, ca as HandleListRepositoriesError, cN as HandleListWebDeploysData, cO as HandleListWebDeploysError, bo as HandleReadFileFromEphemeralDevServerData, bq as HandleReadFileFromEphemeralDevServerError, bp as HandleReadFileFromEphemeralDevServerResponse, c6 as HandleRevokeGitTokenData, c8 as HandleRevokeGitTokenError, c7 as HandleRevokeGitTokenResponse, bW as HandleRevokePermissionData, bY as HandleRevokePermissionError, bX as HandleRevokePermissionResponse, bu as HandleShutdownDevServerData, bw as HandleShutdownDevServerError, bv as HandleShutdownDevServerResponse, bZ as HandleUpdatePermissionData, b$ as HandleUpdatePermissionError, b_ as HandleUpdatePermissionResponse, ba as HandleVerifyDomainData, b0 as HandleVerifyWildcardData, b1 as HandleVerifyWildcardError, bl as HandleWriteFileFromEphemeralDevServerData, bn as HandleWriteFileFromEphemeralDevServerError, bm as HandleWriteFileFromEphemeralDevServerResponse, ay as InternalServerError, az as ListRecordsResponse, aA as NetworkPermissionData, aB as ReadFileRequest, aC as RepositoryInfo, aD as RevokeGitTokenRequest, aE as ShutdownDevServerRequest, aF as Signature, aG as TagObject, aH as TagTarget, aI as TreeEntry, aK as TreeObject, aL as UpdatePermissionRequest, aM as Visibility, aN as WriteFileRequest, aq as action, aw as action2, av as event, Z as kind, a0 as kind2, ac as kind3, W as type, aJ as type2 } from './types.gen-wmZuN8DG.js';
|
|
3
3
|
|
|
4
|
+
interface FreestyleDevServer {
|
|
5
|
+
/**
|
|
6
|
+
* The URL for the dev server's HTTP API.
|
|
7
|
+
*/
|
|
8
|
+
ephemeralUrl: string;
|
|
9
|
+
/**
|
|
10
|
+
* The URL to the MCP endpoint for the dev server.
|
|
11
|
+
*/
|
|
12
|
+
mcpEphemeralUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* The URL for the VSCode server running in the dev server.
|
|
15
|
+
*/
|
|
16
|
+
codeServerUrl: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the dev server was just created.
|
|
19
|
+
*/
|
|
20
|
+
isNew: boolean;
|
|
21
|
+
fs: FreestyleDevServerFilesystem;
|
|
22
|
+
process: FreestyleDevServerProcess;
|
|
23
|
+
/**
|
|
24
|
+
* Get the status of the dev server
|
|
25
|
+
*/
|
|
26
|
+
status(): Promise<{
|
|
27
|
+
installing: boolean;
|
|
28
|
+
devRunning: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Commit and push changes to the dev server repository
|
|
32
|
+
* @param message The commit message
|
|
33
|
+
*/
|
|
34
|
+
commitAndPush(message: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Shutdown the dev server
|
|
37
|
+
*/
|
|
38
|
+
shutdown(): Promise<{
|
|
39
|
+
success: boolean;
|
|
40
|
+
message: string;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
interface FreestyleDevServerFilesystem {
|
|
44
|
+
/**
|
|
45
|
+
* List files in the dev server directory
|
|
46
|
+
*/
|
|
47
|
+
ls(path?: string): Promise<Array<string>>;
|
|
48
|
+
/**
|
|
49
|
+
* Read a file from the dev server
|
|
50
|
+
* @param path The path to the file
|
|
51
|
+
* @param encoding The encoding to use (defaults to utf-8)
|
|
52
|
+
*/
|
|
53
|
+
readFile(path: string, encoding?: string): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Write a file to the dev server
|
|
56
|
+
* @param path The path to write to
|
|
57
|
+
* @param content The content to write
|
|
58
|
+
* @param encoding The encoding to use (defaults to utf-8)
|
|
59
|
+
*/
|
|
60
|
+
writeFile(path: string, content: string | ArrayBufferLike, encoding?: string): Promise<void>;
|
|
61
|
+
watch(): AsyncGenerator<{
|
|
62
|
+
eventType: string;
|
|
63
|
+
filename: string;
|
|
64
|
+
}>;
|
|
65
|
+
}
|
|
66
|
+
interface FreestyleDevServerProcess {
|
|
67
|
+
/**
|
|
68
|
+
* Execute a command on the dev server
|
|
69
|
+
* @param cmd The command to execute
|
|
70
|
+
* @param background Whether to run the command in the background
|
|
71
|
+
*/
|
|
72
|
+
exec(cmd: string, background?: boolean): Promise<{
|
|
73
|
+
id: string;
|
|
74
|
+
isNew: boolean;
|
|
75
|
+
stdout?: string[];
|
|
76
|
+
stderr?: string[];
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type Options = {
|
|
81
|
+
/**
|
|
82
|
+
* The base URL for the API.
|
|
83
|
+
*/
|
|
84
|
+
baseUrl?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The API key to use for requests.
|
|
87
|
+
*/
|
|
88
|
+
apiKey?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Custom Headers to be sent with each request.
|
|
91
|
+
*/
|
|
92
|
+
headers?: Record<string, string>;
|
|
93
|
+
};
|
|
4
94
|
declare class FreestyleSandboxes {
|
|
5
95
|
private client;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* The base URL for the API.
|
|
9
|
-
*/
|
|
10
|
-
baseUrl?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The API key to use for requests.
|
|
13
|
-
*/
|
|
14
|
-
apiKey: string;
|
|
15
|
-
/**
|
|
16
|
-
* Custom Headers to be sent with each request.
|
|
17
|
-
*/
|
|
18
|
-
headers?: Record<string, string>;
|
|
19
|
-
});
|
|
96
|
+
options: Options;
|
|
97
|
+
constructor(options?: Options);
|
|
20
98
|
/**
|
|
21
99
|
* Execute a script in a sandbox.
|
|
22
100
|
*/
|
|
@@ -186,18 +264,18 @@ declare class FreestyleSandboxes {
|
|
|
186
264
|
*/
|
|
187
265
|
repoUrl?: string;
|
|
188
266
|
repoId?: string;
|
|
267
|
+
/**
|
|
268
|
+
* @deprecated
|
|
269
|
+
*/
|
|
189
270
|
repo?: string;
|
|
190
271
|
baseId?: string;
|
|
191
272
|
devCommand?: string;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
devCommandRunning: boolean;
|
|
199
|
-
installCommandRunning: boolean;
|
|
200
|
-
}>;
|
|
273
|
+
preDevCommandOnce?: string;
|
|
274
|
+
envVars?: Record<string, string>;
|
|
275
|
+
computeClass?: string;
|
|
276
|
+
timeout?: number;
|
|
277
|
+
}): Promise<FreestyleDevServer>;
|
|
278
|
+
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
201
279
|
}
|
|
202
280
|
|
|
203
281
|
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|