freestyle-sandboxes 0.0.68 → 0.0.70
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-BBXyg0JQ.cjs +3253 -0
- package/dist/index-BQHqnjZK.mjs +3231 -0
- package/dist/index-CEEa9WHp.cjs +3238 -0
- package/dist/index-D1ulQeJR.mjs +3247 -0
- package/dist/index-DCF70Xbq.mjs +3246 -0
- package/dist/index-H7UNEAjs.cjs +3254 -0
- package/dist/index.cjs +249 -12
- package/dist/index.d-CXx1AdyW.d.ts +4210 -0
- 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/types.gen-1sd31qLV.d.ts +172 -0
- package/dist/types.gen-627pxroW.d.ts +830 -0
- package/dist/types.gen-BCdfx7yt.d.ts +760 -0
- package/dist/types.gen-BVXmFV7d.d.ts +1299 -0
- package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
- package/dist/types.gen-BtK6PMQy.d.ts +195 -0
- package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
- package/dist/types.gen-BzRtj_TA.d.ts +725 -0
- package/dist/types.gen-C03gaIPq.d.ts +297 -0
- package/dist/types.gen-CMuCas4r.d.ts +183 -0
- package/dist/types.gen-CZUnqmzP.d.ts +789 -0
- package/dist/types.gen-CnEkmbco.d.ts +314 -0
- package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
- package/dist/types.gen-DHmdEOOa.d.ts +172 -0
- package/dist/types.gen-DLYohMJT.d.ts +382 -0
- package/dist/types.gen-DbTb_SrD.d.ts +156 -0
- package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
- package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
- package/dist/types.gen-MBZCvIhE.d.ts +311 -0
- package/dist/types.gen-YhJAHBw8.d.ts +233 -0
- package/dist/types.gen-cCnnhnB6.d.ts +182 -0
- package/dist/types.gen-mg_JNXrq.d.ts +830 -0
- package/dist/types.gen-uDTr6v-7.d.ts +731 -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 +71 -10
- package/openapi/types.gen.ts +233 -28
- package/openapi.json +1 -1
- package/package.json +2 -2
- package/src/dev-server.ts +92 -0
- package/src/index.ts +319 -27
- package/src/react/dev-server/index.tsx +3 -3
- package/.env +0 -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, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.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, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.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, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.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, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.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
|
|
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-BVXmFV7d.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 DevServerWatchFilesRequest, a4 as DnsRecord, a5 as DnsRecordData, a6 as DnsRecordKind, a7 as DomainVerificationRequest, a8 as ExecRequest, a9 as ExecuteLogEntry, aa as ExecuteRunInfo, ab as ExecuteRunState, ac as FileReadContent, ae as FreestyleCloudstateDeployConfiguration, af as FreestyleCloudstateDeployErrorResponse, ag as FreestyleDeleteDomainVerificationRequest, ah as FreestyleDeployWebErrorResponse, ai as FreestyleDeployWebPayload, aj as FreestyleDeployWebPayloadV2, ak as FreestyleDomainVerificationRequest, al as FreestyleExecuteScriptParams, am as FreestyleFile, an as FreestyleGetLogsResponse, ao as FreestyleJavaScriptLog, ap as FreestyleLogResponseObject, aq as FreestyleNetworkPermission, as as FreestyleVerifyDomainRequest, at as GitCommitPushRequest, au as GitContents, aw as GitContentsDirEntryItem, ax as GitReference, ay as GitRepositoryTrigger, aB as GrantPermissionRequest, aW as HandleBackupCloudstateData, aX as HandleBackupCloudstateError, bg as HandleCreateDomainVerificationData, bh as HandleCreateDomainVerificationError, cb as HandleCreateGitTokenData, cd as HandleCreateGitTokenError, cc as HandleCreateGitTokenResponse, cL as HandleCreateGitTriggerData, cM as HandleCreateGitTriggerError, bT as HandleCreateIdentityError, bS as HandleCreateIdentityResponse, a$ as HandleCreateRecordData, b1 as HandleCreateRecordError, b0 as HandleCreateRecordResponse, cj as HandleCreateRepoData, cl as HandleCreateRepoError, ck as HandleCreateRepoResponse, bb as HandleDeleteDomainMappingData, bd as HandleDeleteDomainMappingError, bc as HandleDeleteDomainMappingResponse, bi as HandleDeleteDomainVerificationData, bj as HandleDeleteDomainVerificationError, cN as HandleDeleteGitTriggerData, cP as HandleDeleteGitTriggerError, cO as HandleDeleteGitTriggerResponse, bU as HandleDeleteIdentityData, bV as HandleDeleteIdentityError, b2 as HandleDeleteRecordData, b4 as HandleDeleteRecordError, b3 as HandleDeleteRecordResponse, cm as HandleDeleteRepoData, cn as HandleDeleteRepoError, aT as HandleDeployCloudstateData, aV as HandleDeployCloudstateError, aU as HandleDeployCloudstateResponse, cV as HandleDeployWebData, cX as HandleDeployWebError, cW as HandleDeployWebResponse, cY as HandleDeployWebV2Data, c_ as HandleDeployWebV2Error, cZ as HandleDeployWebV2Response, bZ as HandleDescribePermissionData, b$ as HandleDescribePermissionError, b_ as HandleDescribePermissionResponse, bC as HandleDevServerStatusData, bE as HandleDevServerStatusError, bD as HandleDevServerStatusResponse, cG as HandleDownloadTarballData, cI as HandleDownloadTarballError, cH as HandleDownloadTarballResponse, bk as HandleEphemeralDevServerData, bm as HandleEphemeralDevServerError, bl as HandleEphemeralDevServerResponse, bn as HandleExecOnEphemeralDevServerData, bp as HandleExecOnEphemeralDevServerError, bo as HandleExecOnEphemeralDevServerResponse, bM as HandleExecuteScriptData, bO as HandleExecuteScriptError, bN as HandleExecuteScriptResponse, cr as HandleGetBlobData, ct as HandleGetBlobError, cs as HandleGetBlobResponse, cu as HandleGetCommitData, cw as HandleGetCommitError, cv as HandleGetCommitResponse, co as HandleGetContentsData, cq as HandleGetContentsError, cp as HandleGetContentsResponse, bK as HandleGetExecuteRunData, bL as HandleGetExecuteRunError, cQ as HandleGetLogsData, cR as HandleGetLogsError, cx as HandleGetRefBranchData, cz as HandleGetRefBranchError, cy as HandleGetRefBranchResponse, cS as HandleGetRefTagData, cU as HandleGetRefTagError, cT as HandleGetRefTagResponse, cA as HandleGetTagData, cC as HandleGetTagError, cB as HandleGetTagResponse, cD as HandleGetTreeData, cF as HandleGetTreeError, cE as HandleGetTreeResponse, d1 as HandleGetWebDeployDetailsData, bw as HandleGitCommitPushData, by as HandleGitCommitPushError, bx as HandleGitCommitPushResponse, c0 as HandleGrantPermissionData, c1 as HandleGrantPermissionError, b8 as HandleInsertDomainMappingData, ba as HandleInsertDomainMappingError, b9 as HandleInsertDomainMappingResponse, be as HandleListDomainVerificationRequestsError, b7 as HandleListDomainsError, bI as HandleListExecuteRunsData, bJ as HandleListExecuteRunsError, c8 as HandleListGitTokensData, ca as HandleListGitTokensError, c9 as HandleListGitTokensResponse, cJ as HandleListGitTriggersData, cK as HandleListGitTriggersError, bP as HandleListIdentitiesData, bR as HandleListIdentitiesError, bQ as HandleListIdentitiesResponse, bW as HandleListPermissionsData, bY as HandleListPermissionsError, bX as HandleListPermissionsResponse, aY as HandleListRecordsData, a_ as HandleListRecordsError, aZ as HandleListRecordsResponse, ch as HandleListRepositoriesData, ci as HandleListRepositoriesError, c$ as HandleListWebDeploysData, d0 as HandleListWebDeploysError, bt as HandleReadFileFromEphemeralDevServerData, bv as HandleReadFileFromEphemeralDevServerError, bu as HandleReadFileFromEphemeralDevServerResponse, ce as HandleRevokeGitTokenData, cg as HandleRevokeGitTokenError, cf as HandleRevokeGitTokenResponse, c2 as HandleRevokePermissionData, c4 as HandleRevokePermissionError, c3 as HandleRevokePermissionResponse, bz as HandleShutdownDevServerData, bB as HandleShutdownDevServerError, bA as HandleShutdownDevServerResponse, c5 as HandleUpdatePermissionData, c7 as HandleUpdatePermissionError, c6 as HandleUpdatePermissionResponse, bf as HandleVerifyDomainData, b5 as HandleVerifyWildcardData, b6 as HandleVerifyWildcardError, bF as HandleWatchDevServerFilesData, bH as HandleWatchDevServerFilesError, bG as HandleWatchDevServerFilesResponse, bq as HandleWriteFileFromEphemeralDevServerData, bs as HandleWriteFileFromEphemeralDevServerError, br as HandleWriteFileFromEphemeralDevServerResponse, aC as InternalServerError, aD as ListRecordsResponse, aE as NetworkPermissionData, aF as ReadFileEphemeralDevServerResponses, aG as ReadFileRequest, aH as RepositoryInfo, aI as RevokeGitTokenRequest, aJ as ShutdownDevServerRequest, aK as Signature, aL as TagObject, aM as TagTarget, aN as TreeEntry, aP as TreeObject, aQ as UpdatePermissionRequest, aR as Visibility, aS as WriteFileRequest, ar as action, aA as action2, az as event, Z as kind, a0 as kind2, ad as kind3, W as type, av as type2, aO as type3 } from './types.gen-BVXmFV7d.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
|
|
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-BVXmFV7d.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 DevServerWatchFilesRequest, a4 as DnsRecord, a5 as DnsRecordData, a6 as DnsRecordKind, a7 as DomainVerificationRequest, a8 as ExecRequest, a9 as ExecuteLogEntry, aa as ExecuteRunInfo, ab as ExecuteRunState, ac as FileReadContent, ae as FreestyleCloudstateDeployConfiguration, af as FreestyleCloudstateDeployErrorResponse, ag as FreestyleDeleteDomainVerificationRequest, ah as FreestyleDeployWebErrorResponse, ai as FreestyleDeployWebPayload, aj as FreestyleDeployWebPayloadV2, ak as FreestyleDomainVerificationRequest, al as FreestyleExecuteScriptParams, am as FreestyleFile, an as FreestyleGetLogsResponse, ao as FreestyleJavaScriptLog, ap as FreestyleLogResponseObject, aq as FreestyleNetworkPermission, as as FreestyleVerifyDomainRequest, at as GitCommitPushRequest, au as GitContents, aw as GitContentsDirEntryItem, ax as GitReference, ay as GitRepositoryTrigger, aB as GrantPermissionRequest, aW as HandleBackupCloudstateData, aX as HandleBackupCloudstateError, bg as HandleCreateDomainVerificationData, bh as HandleCreateDomainVerificationError, cb as HandleCreateGitTokenData, cd as HandleCreateGitTokenError, cc as HandleCreateGitTokenResponse, cL as HandleCreateGitTriggerData, cM as HandleCreateGitTriggerError, bT as HandleCreateIdentityError, bS as HandleCreateIdentityResponse, a$ as HandleCreateRecordData, b1 as HandleCreateRecordError, b0 as HandleCreateRecordResponse, cj as HandleCreateRepoData, cl as HandleCreateRepoError, ck as HandleCreateRepoResponse, bb as HandleDeleteDomainMappingData, bd as HandleDeleteDomainMappingError, bc as HandleDeleteDomainMappingResponse, bi as HandleDeleteDomainVerificationData, bj as HandleDeleteDomainVerificationError, cN as HandleDeleteGitTriggerData, cP as HandleDeleteGitTriggerError, cO as HandleDeleteGitTriggerResponse, bU as HandleDeleteIdentityData, bV as HandleDeleteIdentityError, b2 as HandleDeleteRecordData, b4 as HandleDeleteRecordError, b3 as HandleDeleteRecordResponse, cm as HandleDeleteRepoData, cn as HandleDeleteRepoError, aT as HandleDeployCloudstateData, aV as HandleDeployCloudstateError, aU as HandleDeployCloudstateResponse, cV as HandleDeployWebData, cX as HandleDeployWebError, cW as HandleDeployWebResponse, cY as HandleDeployWebV2Data, c_ as HandleDeployWebV2Error, cZ as HandleDeployWebV2Response, bZ as HandleDescribePermissionData, b$ as HandleDescribePermissionError, b_ as HandleDescribePermissionResponse, bC as HandleDevServerStatusData, bE as HandleDevServerStatusError, bD as HandleDevServerStatusResponse, cG as HandleDownloadTarballData, cI as HandleDownloadTarballError, cH as HandleDownloadTarballResponse, bk as HandleEphemeralDevServerData, bm as HandleEphemeralDevServerError, bl as HandleEphemeralDevServerResponse, bn as HandleExecOnEphemeralDevServerData, bp as HandleExecOnEphemeralDevServerError, bo as HandleExecOnEphemeralDevServerResponse, bM as HandleExecuteScriptData, bO as HandleExecuteScriptError, bN as HandleExecuteScriptResponse, cr as HandleGetBlobData, ct as HandleGetBlobError, cs as HandleGetBlobResponse, cu as HandleGetCommitData, cw as HandleGetCommitError, cv as HandleGetCommitResponse, co as HandleGetContentsData, cq as HandleGetContentsError, cp as HandleGetContentsResponse, bK as HandleGetExecuteRunData, bL as HandleGetExecuteRunError, cQ as HandleGetLogsData, cR as HandleGetLogsError, cx as HandleGetRefBranchData, cz as HandleGetRefBranchError, cy as HandleGetRefBranchResponse, cS as HandleGetRefTagData, cU as HandleGetRefTagError, cT as HandleGetRefTagResponse, cA as HandleGetTagData, cC as HandleGetTagError, cB as HandleGetTagResponse, cD as HandleGetTreeData, cF as HandleGetTreeError, cE as HandleGetTreeResponse, d1 as HandleGetWebDeployDetailsData, bw as HandleGitCommitPushData, by as HandleGitCommitPushError, bx as HandleGitCommitPushResponse, c0 as HandleGrantPermissionData, c1 as HandleGrantPermissionError, b8 as HandleInsertDomainMappingData, ba as HandleInsertDomainMappingError, b9 as HandleInsertDomainMappingResponse, be as HandleListDomainVerificationRequestsError, b7 as HandleListDomainsError, bI as HandleListExecuteRunsData, bJ as HandleListExecuteRunsError, c8 as HandleListGitTokensData, ca as HandleListGitTokensError, c9 as HandleListGitTokensResponse, cJ as HandleListGitTriggersData, cK as HandleListGitTriggersError, bP as HandleListIdentitiesData, bR as HandleListIdentitiesError, bQ as HandleListIdentitiesResponse, bW as HandleListPermissionsData, bY as HandleListPermissionsError, bX as HandleListPermissionsResponse, aY as HandleListRecordsData, a_ as HandleListRecordsError, aZ as HandleListRecordsResponse, ch as HandleListRepositoriesData, ci as HandleListRepositoriesError, c$ as HandleListWebDeploysData, d0 as HandleListWebDeploysError, bt as HandleReadFileFromEphemeralDevServerData, bv as HandleReadFileFromEphemeralDevServerError, bu as HandleReadFileFromEphemeralDevServerResponse, ce as HandleRevokeGitTokenData, cg as HandleRevokeGitTokenError, cf as HandleRevokeGitTokenResponse, c2 as HandleRevokePermissionData, c4 as HandleRevokePermissionError, c3 as HandleRevokePermissionResponse, bz as HandleShutdownDevServerData, bB as HandleShutdownDevServerError, bA as HandleShutdownDevServerResponse, c5 as HandleUpdatePermissionData, c7 as HandleUpdatePermissionError, c6 as HandleUpdatePermissionResponse, bf as HandleVerifyDomainData, b5 as HandleVerifyWildcardData, b6 as HandleVerifyWildcardError, bF as HandleWatchDevServerFilesData, bH as HandleWatchDevServerFilesError, bG as HandleWatchDevServerFilesResponse, bq as HandleWriteFileFromEphemeralDevServerData, bs as HandleWriteFileFromEphemeralDevServerError, br as HandleWriteFileFromEphemeralDevServerResponse, aC as InternalServerError, aD as ListRecordsResponse, aE as NetworkPermissionData, aF as ReadFileEphemeralDevServerResponses, aG as ReadFileRequest, aH as RepositoryInfo, aI as RevokeGitTokenRequest, aJ as ShutdownDevServerRequest, aK as Signature, aL as TagObject, aM as TagTarget, aN as TreeEntry, aP as TreeObject, aQ as UpdatePermissionRequest, aR as Visibility, aS as WriteFileRequest, ar as action, aA as action2, az as event, Z as kind, a0 as kind2, ad as kind3, W as type, av as type2, aO as type3 } from './types.gen-BVXmFV7d.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 };
|