freestyle-sandboxes 0.0.76 → 0.0.77
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 +34 -12
- package/dist/inde.d.mts +34 -12
- package/dist/{index-BBXyg0JQ.cjs → index-CGc0kRd_.cjs} +9 -5
- package/dist/{index-DCF70Xbq.mjs → index-jh-93svX.mjs} +9 -5
- package/dist/index.cjs +17 -6
- package/dist/index.d.cts +34 -12
- package/dist/index.d.mts +34 -12
- package/dist/index.mjs +17 -6
- 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-BVXmFV7d.d.ts → types.gen-0bQ5Wn0o.d.ts} +18 -17
- package/dist/{types.gen-CIf3ciN7.d.ts → types.gen-BJArgpto.d.ts} +2 -5
- package/dist/{types.gen-DLYohMJT.d.ts → types.gen-CfrGF-JI.d.ts} +1 -1
- package/dist/{types.gen-BbekD8Sd.d.ts → types.gen-DkFlXKTr.d.ts} +266 -31
- package/dist/{types.gen-CZUnqmzP.d.ts → types.gen-DxZanGNF.d.ts} +9 -6
- 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 +22 -11
- package/openapi/types.gen.ts +80 -20
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/dev-server.ts +3 -0
- package/src/index.ts +86 -55
- package/dist/index-BQHqnjZK.mjs +0 -3231
- package/dist/index-CEEa9WHp.cjs +0 -3238
- package/dist/types.gen-1sd31qLV.d.ts +0 -172
- package/dist/types.gen-627pxroW.d.ts +0 -830
- package/dist/types.gen-BCdfx7yt.d.ts +0 -760
- package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
- package/dist/types.gen-BqN1t03N.d.ts +0 -842
- package/dist/types.gen-BtK6PMQy.d.ts +0 -195
- package/dist/types.gen-C03gaIPq.d.ts +0 -297
- package/dist/types.gen-CMuCas4r.d.ts +0 -183
- package/dist/types.gen-CnEkmbco.d.ts +0 -314
- package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
- package/dist/types.gen-DHmdEOOa.d.ts +0 -172
- package/dist/types.gen-DbTb_SrD.d.ts +0 -156
- package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
- package/dist/types.gen-DyY7Deri.d.ts +0 -138
- package/dist/types.gen-MBZCvIhE.d.ts +0 -311
- package/dist/types.gen-YhJAHBw8.d.ts +0 -233
- package/dist/types.gen-cCnnhnB6.d.ts +0 -182
- package/dist/types.gen-mg_JNXrq.d.ts +0 -830
- package/dist/types.gen-uDTr6v-7.d.ts +0 -731
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, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.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, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.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, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.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, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.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,5 +1,5 @@
|
|
|
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
|
|
2
|
-
export {
|
|
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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
|
|
|
20
20
|
isNew: boolean;
|
|
21
21
|
fs: FreestyleDevServerFilesystem;
|
|
22
22
|
process: FreestyleDevServerProcess;
|
|
23
|
+
devCommandRunning: boolean;
|
|
24
|
+
installCommandRunning: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Get the status of the dev server
|
|
25
27
|
*/
|
|
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
77
79
|
}>;
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
80
108
|
type Options = {
|
|
81
109
|
/**
|
|
82
110
|
* The base URL for the API.
|
|
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
144
172
|
/**
|
|
145
173
|
* Create a new git repository.
|
|
146
174
|
*/
|
|
147
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
148
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
149
177
|
public?: boolean;
|
|
150
|
-
|
|
151
|
-
type: "git";
|
|
152
|
-
url: string;
|
|
153
|
-
branch?: string;
|
|
154
|
-
depth?: number;
|
|
155
|
-
};
|
|
156
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
157
179
|
/**
|
|
158
180
|
* List git repositories.
|
|
159
181
|
*/
|
|
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
278
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
279
301
|
}
|
|
280
302
|
|
|
281
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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 };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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,5 +1,5 @@
|
|
|
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
|
|
2
|
-
export {
|
|
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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
|
|
|
20
20
|
isNew: boolean;
|
|
21
21
|
fs: FreestyleDevServerFilesystem;
|
|
22
22
|
process: FreestyleDevServerProcess;
|
|
23
|
+
devCommandRunning: boolean;
|
|
24
|
+
installCommandRunning: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Get the status of the dev server
|
|
25
27
|
*/
|
|
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
77
79
|
}>;
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
80
108
|
type Options = {
|
|
81
109
|
/**
|
|
82
110
|
* The base URL for the API.
|
|
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
144
172
|
/**
|
|
145
173
|
* Create a new git repository.
|
|
146
174
|
*/
|
|
147
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
148
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
149
177
|
public?: boolean;
|
|
150
|
-
|
|
151
|
-
type: "git";
|
|
152
|
-
url: string;
|
|
153
|
-
branch?: string;
|
|
154
|
-
depth?: number;
|
|
155
|
-
};
|
|
156
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
157
179
|
/**
|
|
158
180
|
* List git repositories.
|
|
159
181
|
*/
|
|
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
278
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
279
301
|
}
|
|
280
302
|
|
|
281
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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 };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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 };
|
|
@@ -3169,11 +3169,12 @@ const executeTool = (config) => {
|
|
|
3169
3169
|
return tool({
|
|
3170
3170
|
description: executeCodeDescription(envVars, nodeModules),
|
|
3171
3171
|
parameters: executeCodeSchema,
|
|
3172
|
-
execute: async ({ script, ...otherParams }) => {
|
|
3172
|
+
execute: async ({ script, ...otherParams }, { toolCallId }) => {
|
|
3173
3173
|
try {
|
|
3174
3174
|
const res = await api.executeScript(script, config);
|
|
3175
3175
|
if (config.onResult) {
|
|
3176
3176
|
await config.onResult({
|
|
3177
|
+
toolCallId,
|
|
3177
3178
|
result: res,
|
|
3178
3179
|
input: {
|
|
3179
3180
|
script,
|
|
@@ -3216,10 +3217,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
3216
3217
|
`)
|
|
3217
3218
|
}),
|
|
3218
3219
|
execute: async ({ files }) => {
|
|
3219
|
-
const new_files = Object.keys(files).reduce(
|
|
3220
|
-
acc
|
|
3221
|
-
|
|
3222
|
-
|
|
3220
|
+
const new_files = Object.keys(files).reduce(
|
|
3221
|
+
(acc, key) => {
|
|
3222
|
+
acc[key] = { content: files[key] };
|
|
3223
|
+
return acc;
|
|
3224
|
+
},
|
|
3225
|
+
{}
|
|
3226
|
+
);
|
|
3223
3227
|
try {
|
|
3224
3228
|
const res = await api.deployWeb(
|
|
3225
3229
|
{
|
|
@@ -3167,11 +3167,12 @@ const executeTool = (config) => {
|
|
|
3167
3167
|
return tool({
|
|
3168
3168
|
description: executeCodeDescription(envVars, nodeModules),
|
|
3169
3169
|
parameters: executeCodeSchema,
|
|
3170
|
-
execute: async ({ script, ...otherParams }) => {
|
|
3170
|
+
execute: async ({ script, ...otherParams }, { toolCallId }) => {
|
|
3171
3171
|
try {
|
|
3172
3172
|
const res = await api.executeScript(script, config);
|
|
3173
3173
|
if (config.onResult) {
|
|
3174
3174
|
await config.onResult({
|
|
3175
|
+
toolCallId,
|
|
3175
3176
|
result: res,
|
|
3176
3177
|
input: {
|
|
3177
3178
|
script,
|
|
@@ -3214,10 +3215,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
3214
3215
|
`)
|
|
3215
3216
|
}),
|
|
3216
3217
|
execute: async ({ files }) => {
|
|
3217
|
-
const new_files = Object.keys(files).reduce(
|
|
3218
|
-
acc
|
|
3219
|
-
|
|
3220
|
-
|
|
3218
|
+
const new_files = Object.keys(files).reduce(
|
|
3219
|
+
(acc, key) => {
|
|
3220
|
+
acc[key] = { content: files[key] };
|
|
3221
|
+
return acc;
|
|
3222
|
+
},
|
|
3223
|
+
{}
|
|
3224
|
+
);
|
|
3221
3225
|
try {
|
|
3222
3226
|
const res = await api.deployWeb(
|
|
3223
3227
|
{
|
package/dist/index.cjs
CHANGED
|
@@ -63,6 +63,12 @@ const handleExecOnEphemeralDevServer = (options) => {
|
|
|
63
63
|
url: "/ephemeral/v1/dev-servers/exec"
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
+
const handleWriteFileFromEphemeralDevServer = (options) => {
|
|
67
|
+
return (options?.client ?? client).put({
|
|
68
|
+
...options,
|
|
69
|
+
url: "/ephemeral/v1/dev-servers/files/{*filepath}"
|
|
70
|
+
});
|
|
71
|
+
};
|
|
66
72
|
const handleReadFileFromEphemeralDevServer = (options) => {
|
|
67
73
|
return (options?.client ?? client).post({
|
|
68
74
|
...options,
|
|
@@ -494,14 +500,16 @@ ${response.error.message}`);
|
|
|
494
500
|
async createGitRepository({
|
|
495
501
|
name,
|
|
496
502
|
public: pub = false,
|
|
497
|
-
source
|
|
503
|
+
source,
|
|
504
|
+
import: _import
|
|
498
505
|
}) {
|
|
499
506
|
const response = await handleCreateRepo({
|
|
500
507
|
client: this.client,
|
|
501
508
|
body: {
|
|
502
509
|
name,
|
|
503
510
|
public: pub,
|
|
504
|
-
source
|
|
511
|
+
source,
|
|
512
|
+
import: _import
|
|
505
513
|
}
|
|
506
514
|
});
|
|
507
515
|
if (response.data) {
|
|
@@ -995,17 +1003,20 @@ ${response.error.message}`);
|
|
|
995
1003
|
},
|
|
996
1004
|
async writeFile(path, content, encoding = "utf-8") {
|
|
997
1005
|
const contentStr = typeof content === "string" ? content : Buffer.from(content).toString(encoding);
|
|
998
|
-
await
|
|
999
|
-
|
|
1006
|
+
const response2 = await handleWriteFileFromEphemeralDevServer({
|
|
1007
|
+
client,
|
|
1008
|
+
path: {
|
|
1009
|
+
filepath: path
|
|
1010
|
+
},
|
|
1000
1011
|
body: {
|
|
1001
1012
|
devServer: devServerInstance,
|
|
1002
1013
|
content: contentStr,
|
|
1003
1014
|
encoding
|
|
1004
1015
|
}
|
|
1005
1016
|
});
|
|
1006
|
-
if (
|
|
1017
|
+
if (response2.error) {
|
|
1007
1018
|
throw new Error(
|
|
1008
|
-
`Failed to write file: ${JSON.stringify(
|
|
1019
|
+
`Failed to write file: ${JSON.stringify(response2.error)}`
|
|
1009
1020
|
);
|
|
1010
1021
|
}
|
|
1011
1022
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
export {
|
|
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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
|
|
|
20
20
|
isNew: boolean;
|
|
21
21
|
fs: FreestyleDevServerFilesystem;
|
|
22
22
|
process: FreestyleDevServerProcess;
|
|
23
|
+
devCommandRunning: boolean;
|
|
24
|
+
installCommandRunning: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Get the status of the dev server
|
|
25
27
|
*/
|
|
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
77
79
|
}>;
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
80
108
|
type Options = {
|
|
81
109
|
/**
|
|
82
110
|
* The base URL for the API.
|
|
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
144
172
|
/**
|
|
145
173
|
* Create a new git repository.
|
|
146
174
|
*/
|
|
147
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
148
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
149
177
|
public?: boolean;
|
|
150
|
-
|
|
151
|
-
type: "git";
|
|
152
|
-
url: string;
|
|
153
|
-
branch?: string;
|
|
154
|
-
depth?: number;
|
|
155
|
-
};
|
|
156
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
157
179
|
/**
|
|
158
180
|
* List git repositories.
|
|
159
181
|
*/
|
|
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
278
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
279
301
|
}
|
|
280
302
|
|
|
281
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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 };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, 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 };
|