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.
Files changed (60) hide show
  1. package/dist/ai/inde.d.cts +1 -1
  2. package/dist/ai/inde.d.mts +1 -1
  3. package/dist/ai/index.d.cts +1 -1
  4. package/dist/ai/index.d.mts +1 -1
  5. package/dist/inde.d.cts +103 -25
  6. package/dist/inde.d.mts +103 -25
  7. package/dist/index-BBXyg0JQ.cjs +3253 -0
  8. package/dist/index-BQHqnjZK.mjs +3231 -0
  9. package/dist/index-CEEa9WHp.cjs +3238 -0
  10. package/dist/index-D1ulQeJR.mjs +3247 -0
  11. package/dist/index-DCF70Xbq.mjs +3246 -0
  12. package/dist/index-H7UNEAjs.cjs +3254 -0
  13. package/dist/index.cjs +249 -12
  14. package/dist/index.d-CXx1AdyW.d.ts +4210 -0
  15. package/dist/index.d.cts +103 -25
  16. package/dist/index.d.mts +103 -25
  17. package/dist/index.mjs +249 -12
  18. package/dist/langgraph/inde.d.cts +1 -1
  19. package/dist/langgraph/inde.d.mts +1 -1
  20. package/dist/langgraph/index.d.cts +1 -1
  21. package/dist/langgraph/index.d.mts +1 -1
  22. package/dist/mastra/inde.d.cts +1 -1
  23. package/dist/mastra/inde.d.mts +1 -1
  24. package/dist/mastra/index.d.cts +1 -1
  25. package/dist/mastra/index.d.mts +1 -1
  26. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  27. package/dist/types.gen-627pxroW.d.ts +830 -0
  28. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  29. package/dist/types.gen-BVXmFV7d.d.ts +1299 -0
  30. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  31. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  32. package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
  33. package/dist/types.gen-BzRtj_TA.d.ts +725 -0
  34. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  35. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  36. package/dist/types.gen-CZUnqmzP.d.ts +789 -0
  37. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  38. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  39. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  40. package/dist/types.gen-DLYohMJT.d.ts +382 -0
  41. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  42. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  43. package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
  44. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  45. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  46. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  47. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  48. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  49. package/dist/utils/inde.d.cts +1 -1
  50. package/dist/utils/inde.d.mts +1 -1
  51. package/dist/utils/index.d.cts +1 -1
  52. package/dist/utils/index.d.mts +1 -1
  53. package/openapi/sdk.gen.ts +71 -10
  54. package/openapi/types.gen.ts +233 -28
  55. package/openapi.json +1 -1
  56. package/package.json +2 -2
  57. package/src/dev-server.ts +92 -0
  58. package/src/index.ts +319 -27
  59. package/src/react/dev-server/index.tsx +3 -3
  60. package/.env +0 -1
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bB as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BbekD8Sd.js';
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';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bB as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BbekD8Sd.js';
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';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bB as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BbekD8Sd.js';
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';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bB as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BbekD8Sd.js';
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-BbekD8Sd.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 GitRepositoryTrigger, aw as GrantPermissionRequest, aP as HandleBackupCloudstateData, aQ as HandleBackupCloudstateError, b9 as HandleCreateDomainVerificationData, ba as HandleCreateDomainVerificationError, b_ as HandleCreateGitTokenData, c0 as HandleCreateGitTokenError, b$ as HandleCreateGitTokenResponse, cp as HandleCreateGitTriggerData, cq as HandleCreateGitTriggerError, bG as HandleCreateIdentityError, bF as HandleCreateIdentityResponse, aU as HandleCreateRecordData, aW as HandleCreateRecordError, aV as HandleCreateRecordResponse, c6 as HandleCreateRepoData, c8 as HandleCreateRepoError, c7 as HandleCreateRepoResponse, b4 as HandleDeleteDomainMappingData, b6 as HandleDeleteDomainMappingError, b5 as HandleDeleteDomainMappingResponse, bb as HandleDeleteDomainVerificationData, bc as HandleDeleteDomainVerificationError, cr as HandleDeleteGitTriggerData, ct as HandleDeleteGitTriggerError, cs as HandleDeleteGitTriggerResponse, bH as HandleDeleteIdentityData, bI as HandleDeleteIdentityError, aX as HandleDeleteRecordData, aZ as HandleDeleteRecordError, aY as HandleDeleteRecordResponse, cl as HandleDeleteRepoData, cm as HandleDeleteRepoError, aM as HandleDeployCloudstateData, aO as HandleDeployCloudstateError, aN as HandleDeployCloudstateResponse, cw as HandleDeployWebData, cy as HandleDeployWebError, cx as HandleDeployWebResponse, cz as HandleDeployWebV2Data, cB as HandleDeployWebV2Error, cA as HandleDeployWebV2Response, bM as HandleDescribePermissionData, bO as HandleDescribePermissionError, bN as HandleDescribePermissionResponse, bs as HandleDevServerStatusData, bu as HandleDevServerStatusError, bt as HandleDevServerStatusResponse, bd as HandleEphemeralDevServerData, bf as HandleEphemeralDevServerError, be as HandleEphemeralDevServerResponse, bg as HandleExecOnEphemeralDevServerData, bi as HandleExecOnEphemeralDevServerError, bh as HandleExecOnEphemeralDevServerResponse, bz as HandleExecuteScriptData, bB as HandleExecuteScriptError, bA as HandleExecuteScriptResponse, c9 as HandleGetBlobData, cb as HandleGetBlobError, ca as HandleGetBlobResponse, cc as HandleGetCommitData, ce as HandleGetCommitError, cd as HandleGetCommitResponse, bx as HandleGetExecuteRunData, by as HandleGetExecuteRunError, cu as HandleGetLogsData, cv as HandleGetLogsError, cf as HandleGetTagData, ch as HandleGetTagError, cg as HandleGetTagResponse, ci as HandleGetTreeData, ck as HandleGetTreeError, cj as HandleGetTreeResponse, cE as HandleGetWebDeployDetailsData, bp as HandleGitCommitPushData, br as HandleGitCommitPushError, bq as HandleGitCommitPushResponse, bP as HandleGrantPermissionData, bQ as HandleGrantPermissionError, b1 as HandleInsertDomainMappingData, b3 as HandleInsertDomainMappingError, b2 as HandleInsertDomainMappingResponse, b7 as HandleListDomainVerificationRequestsError, b0 as HandleListDomainsError, bv as HandleListExecuteRunsData, bw as HandleListExecuteRunsError, bX as HandleListGitTokensData, bZ as HandleListGitTokensError, bY as HandleListGitTokensResponse, cn as HandleListGitTriggersData, co as HandleListGitTriggersError, bC as HandleListIdentitiesData, bE as HandleListIdentitiesError, bD as HandleListIdentitiesResponse, bJ as HandleListPermissionsData, bL as HandleListPermissionsError, bK as HandleListPermissionsResponse, aR as HandleListRecordsData, aT as HandleListRecordsError, aS as HandleListRecordsResponse, c4 as HandleListRepositoriesData, c5 as HandleListRepositoriesError, cC as HandleListWebDeploysData, cD as HandleListWebDeploysError, bm as HandleReadFileFromEphemeralDevServerData, bo as HandleReadFileFromEphemeralDevServerError, bn as HandleReadFileFromEphemeralDevServerResponse, c1 as HandleRevokeGitTokenData, c3 as HandleRevokeGitTokenError, c2 as HandleRevokeGitTokenResponse, bR as HandleRevokePermissionData, bT as HandleRevokePermissionError, bS as HandleRevokePermissionResponse, bU as HandleUpdatePermissionData, bW as HandleUpdatePermissionError, bV as HandleUpdatePermissionResponse, b8 as HandleVerifyDomainData, a_ as HandleVerifyWildcardData, a$ as HandleVerifyWildcardError, bj as HandleWriteFileFromEphemeralDevServerData, bl as HandleWriteFileFromEphemeralDevServerError, bk as HandleWriteFileFromEphemeralDevServerResponse, ax as InternalServerError, ay as ListRecordsResponse, az as NetworkPermissionData, aA as ReadFileRequest, aB as RepositoryInfo, aC as RevokeGitTokenRequest, aD as Signature, aE as TagObject, aF as TagTarget, aG as TreeEntry, aI as TreeObject, aJ as UpdatePermissionRequest, aK as Visibility, aL as WriteFileRequest, aq as action, av as action2, au as event, Z as kind, a0 as kind2, ac as kind3, W as type, aH as type2 } from './types.gen-BbekD8Sd.js';
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
- constructor(options: {
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
- }): Promise<{
193
- mcpEphemeralUrl: any;
194
- ephemeralUrl: string;
195
- codeServerUrl: any;
196
- url: string;
197
- isNew: boolean;
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-BbekD8Sd.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 GitRepositoryTrigger, aw as GrantPermissionRequest, aP as HandleBackupCloudstateData, aQ as HandleBackupCloudstateError, b9 as HandleCreateDomainVerificationData, ba as HandleCreateDomainVerificationError, b_ as HandleCreateGitTokenData, c0 as HandleCreateGitTokenError, b$ as HandleCreateGitTokenResponse, cp as HandleCreateGitTriggerData, cq as HandleCreateGitTriggerError, bG as HandleCreateIdentityError, bF as HandleCreateIdentityResponse, aU as HandleCreateRecordData, aW as HandleCreateRecordError, aV as HandleCreateRecordResponse, c6 as HandleCreateRepoData, c8 as HandleCreateRepoError, c7 as HandleCreateRepoResponse, b4 as HandleDeleteDomainMappingData, b6 as HandleDeleteDomainMappingError, b5 as HandleDeleteDomainMappingResponse, bb as HandleDeleteDomainVerificationData, bc as HandleDeleteDomainVerificationError, cr as HandleDeleteGitTriggerData, ct as HandleDeleteGitTriggerError, cs as HandleDeleteGitTriggerResponse, bH as HandleDeleteIdentityData, bI as HandleDeleteIdentityError, aX as HandleDeleteRecordData, aZ as HandleDeleteRecordError, aY as HandleDeleteRecordResponse, cl as HandleDeleteRepoData, cm as HandleDeleteRepoError, aM as HandleDeployCloudstateData, aO as HandleDeployCloudstateError, aN as HandleDeployCloudstateResponse, cw as HandleDeployWebData, cy as HandleDeployWebError, cx as HandleDeployWebResponse, cz as HandleDeployWebV2Data, cB as HandleDeployWebV2Error, cA as HandleDeployWebV2Response, bM as HandleDescribePermissionData, bO as HandleDescribePermissionError, bN as HandleDescribePermissionResponse, bs as HandleDevServerStatusData, bu as HandleDevServerStatusError, bt as HandleDevServerStatusResponse, bd as HandleEphemeralDevServerData, bf as HandleEphemeralDevServerError, be as HandleEphemeralDevServerResponse, bg as HandleExecOnEphemeralDevServerData, bi as HandleExecOnEphemeralDevServerError, bh as HandleExecOnEphemeralDevServerResponse, bz as HandleExecuteScriptData, bB as HandleExecuteScriptError, bA as HandleExecuteScriptResponse, c9 as HandleGetBlobData, cb as HandleGetBlobError, ca as HandleGetBlobResponse, cc as HandleGetCommitData, ce as HandleGetCommitError, cd as HandleGetCommitResponse, bx as HandleGetExecuteRunData, by as HandleGetExecuteRunError, cu as HandleGetLogsData, cv as HandleGetLogsError, cf as HandleGetTagData, ch as HandleGetTagError, cg as HandleGetTagResponse, ci as HandleGetTreeData, ck as HandleGetTreeError, cj as HandleGetTreeResponse, cE as HandleGetWebDeployDetailsData, bp as HandleGitCommitPushData, br as HandleGitCommitPushError, bq as HandleGitCommitPushResponse, bP as HandleGrantPermissionData, bQ as HandleGrantPermissionError, b1 as HandleInsertDomainMappingData, b3 as HandleInsertDomainMappingError, b2 as HandleInsertDomainMappingResponse, b7 as HandleListDomainVerificationRequestsError, b0 as HandleListDomainsError, bv as HandleListExecuteRunsData, bw as HandleListExecuteRunsError, bX as HandleListGitTokensData, bZ as HandleListGitTokensError, bY as HandleListGitTokensResponse, cn as HandleListGitTriggersData, co as HandleListGitTriggersError, bC as HandleListIdentitiesData, bE as HandleListIdentitiesError, bD as HandleListIdentitiesResponse, bJ as HandleListPermissionsData, bL as HandleListPermissionsError, bK as HandleListPermissionsResponse, aR as HandleListRecordsData, aT as HandleListRecordsError, aS as HandleListRecordsResponse, c4 as HandleListRepositoriesData, c5 as HandleListRepositoriesError, cC as HandleListWebDeploysData, cD as HandleListWebDeploysError, bm as HandleReadFileFromEphemeralDevServerData, bo as HandleReadFileFromEphemeralDevServerError, bn as HandleReadFileFromEphemeralDevServerResponse, c1 as HandleRevokeGitTokenData, c3 as HandleRevokeGitTokenError, c2 as HandleRevokeGitTokenResponse, bR as HandleRevokePermissionData, bT as HandleRevokePermissionError, bS as HandleRevokePermissionResponse, bU as HandleUpdatePermissionData, bW as HandleUpdatePermissionError, bV as HandleUpdatePermissionResponse, b8 as HandleVerifyDomainData, a_ as HandleVerifyWildcardData, a$ as HandleVerifyWildcardError, bj as HandleWriteFileFromEphemeralDevServerData, bl as HandleWriteFileFromEphemeralDevServerError, bk as HandleWriteFileFromEphemeralDevServerResponse, ax as InternalServerError, ay as ListRecordsResponse, az as NetworkPermissionData, aA as ReadFileRequest, aB as RepositoryInfo, aC as RevokeGitTokenRequest, aD as Signature, aE as TagObject, aF as TagTarget, aG as TreeEntry, aI as TreeObject, aJ as UpdatePermissionRequest, aK as Visibility, aL as WriteFileRequest, aq as action, av as action2, au as event, Z as kind, a0 as kind2, ac as kind3, W as type, aH as type2 } from './types.gen-BbekD8Sd.js';
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
- constructor(options: {
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
- }): Promise<{
193
- mcpEphemeralUrl: any;
194
- ephemeralUrl: string;
195
- codeServerUrl: any;
196
- url: string;
197
- isNew: boolean;
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 };