freestyle-sandboxes 0.0.83 → 0.0.85
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 +45 -4
- package/dist/inde.d.mts +45 -4
- package/dist/{index-CGc0kRd_.cjs → index-BBXyg0JQ.cjs} +5 -9
- package/dist/index-BQHqnjZK.mjs +3231 -0
- package/dist/index-CEEa9WHp.cjs +3238 -0
- package/dist/{index-jh-93svX.mjs → index-DCF70Xbq.mjs} +5 -9
- package/dist/index.cjs +172 -9
- package/dist/index.d.cts +45 -4
- package/dist/index.d.mts +45 -4
- package/dist/index.mjs +172 -9
- package/dist/langgraph/inde.d.cts +1 -1
- package/dist/langgraph/inde.d.mts +1 -1
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/inde.d.cts +1 -1
- package/dist/mastra/inde.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/types.gen-1sd31qLV.d.ts +172 -0
- package/dist/types.gen-627pxroW.d.ts +830 -0
- package/dist/types.gen-BCdfx7yt.d.ts +760 -0
- package/dist/{types.gen-0bQ5Wn0o.d.ts → types.gen-BVXmFV7d.d.ts} +17 -18
- package/dist/types.gen-BWwhCgTX.d.ts +1462 -0
- package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
- package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
- package/dist/types.gen-BqN1t03N.d.ts +842 -0
- package/dist/types.gen-BtK6PMQy.d.ts +195 -0
- package/dist/types.gen-C03gaIPq.d.ts +297 -0
- package/dist/{types.gen-BJArgpto.d.ts → types.gen-CIf3ciN7.d.ts} +5 -2
- package/dist/types.gen-CMuCas4r.d.ts +183 -0
- package/dist/{types.gen-DxZanGNF.d.ts → types.gen-CZUnqmzP.d.ts} +6 -9
- package/dist/types.gen-CnEkmbco.d.ts +314 -0
- package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
- package/dist/types.gen-DHmdEOOa.d.ts +172 -0
- package/dist/{types.gen-CfrGF-JI.d.ts → types.gen-DLYohMJT.d.ts} +1 -1
- package/dist/types.gen-DbTb_SrD.d.ts +156 -0
- package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
- package/dist/types.gen-DyY7Deri.d.ts +138 -0
- package/dist/types.gen-MBZCvIhE.d.ts +311 -0
- package/dist/types.gen-YhJAHBw8.d.ts +233 -0
- package/dist/types.gen-cCnnhnB6.d.ts +182 -0
- package/dist/types.gen-mg_JNXrq.d.ts +830 -0
- package/dist/types.gen-uDTr6v-7.d.ts +731 -0
- package/dist/utils/inde.d.cts +1 -1
- package/dist/utils/inde.d.mts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/index.ts +44 -44
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, b$ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BWwhCgTX.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, b$ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BWwhCgTX.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, b$ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BWwhCgTX.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, b$ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BWwhCgTX.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 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-
|
|
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, S as SetDefaultBranchRequest, J as HandleGetContentsResponse, K as GetGithubSyncResponse } from './types.gen-BWwhCgTX.js';
|
|
2
|
+
export { O as AccessTokenInfo, N as AccessibleRepository, P as Behavior, Q as BlobEncoding, R as BlobObject, T as BranchDetails, U as CommitObject, V as CommitParent, W as CommitTree, cH as ConfigureGithubSyncData, cJ as ConfigureGithubSyncError, X as ConfigureGithubSyncRequest, cI as ConfigureGithubSyncResponse, Y as CreateDomainMappingRequest, Z as CreateRecordParams, $ as CreateRepoRequest, a0 as CreateRepositoryRequest, a2 as CustomBuildOptions, M as DeploymentBuildOptions, a3 as DeploymentLogEntry, a5 as DeploymentState, a6 as DevServer, a8 as DevServerRequest, a9 as DevServerStatusRequest, aa as DevServerWatchFilesRequest, ab as DnsRecord, ac as DnsRecordData, ad as DnsRecordKind, ae as DomainVerificationRequest, af as ExecRequest, ag as ExecuteLogEntry, ah as ExecuteRunInfo, ai as ExecuteRunState, aj as FileReadContent, al as FreestyleCloudstateDeployConfiguration, am as FreestyleCloudstateDeployErrorResponse, an as FreestyleDeleteDomainVerificationRequest, ao as FreestyleDeployWebErrorResponse, ap as FreestyleDeployWebPayload, aq as FreestyleDeployWebPayloadV2, ar as FreestyleDomainVerificationRequest, as as FreestyleExecuteScriptParams, at as FreestyleFile, au as FreestyleGetLogsResponse, av as FreestyleJavaScriptLog, aw as FreestyleLogResponseObject, ax as FreestyleNetworkPermission, az as FreestyleVerifyDomainRequest, aA as GetDefaultBranchResponse, cF as GetGithubSyncData, cG as GetGithubSyncError, aB as GitCommitPushRequest, aC as GitContents, aE as GitContentsDirEntryItem, aH as GitReference, aI as GitRepositoryTrigger, aF as GithubRepoSyncConfig, aG as GithubSyncConfigResponse, aL as GrantPermissionRequest, b7 as HandleBackupCloudstateData, b8 as HandleBackupCloudstateError, bt as HandleCreateDomainVerificationData, bu as HandleCreateDomainVerificationError, co as HandleCreateGitTokenData, cq as HandleCreateGitTokenError, cp as HandleCreateGitTokenResponse, dc as HandleCreateGitTriggerData, dd as HandleCreateGitTriggerError, c4 as HandleCreateIdentityError, c3 as HandleCreateIdentityResponse, bc as HandleCreateRecordData, be as HandleCreateRecordError, bd as HandleCreateRecordResponse, cw as HandleCreateRepoData, cy as HandleCreateRepoError, cx as HandleCreateRepoResponse, bo as HandleDeleteDomainMappingData, bq as HandleDeleteDomainMappingError, bp as HandleDeleteDomainMappingResponse, bv as HandleDeleteDomainVerificationData, bw as HandleDeleteDomainVerificationError, de as HandleDeleteGitTriggerData, dg as HandleDeleteGitTriggerError, df as HandleDeleteGitTriggerResponse, c5 as HandleDeleteIdentityData, c6 as HandleDeleteIdentityError, bf as HandleDeleteRecordData, bh as HandleDeleteRecordError, bg as HandleDeleteRecordResponse, cN as HandleDeleteRepoData, cO as HandleDeleteRepoError, b4 as HandleDeployCloudstateData, b6 as HandleDeployCloudstateError, b5 as HandleDeployCloudstateResponse, dm as HandleDeployWebData, dp as HandleDeployWebError, dn as HandleDeployWebResponse, dq as HandleDeployWebV2Data, ds as HandleDeployWebV2Error, dr as HandleDeployWebV2Response, ca as HandleDescribePermissionData, cc as HandleDescribePermissionError, cb as HandleDescribePermissionResponse, bP as HandleDevServerStatusData, bR as HandleDevServerStatusError, bQ as HandleDevServerStatusResponse, d7 as HandleDownloadTarballData, d9 as HandleDownloadTarballError, d8 as HandleDownloadTarballResponse, dh as HandleDownloadZipData, dj as HandleDownloadZipError, di as HandleDownloadZipResponse, bx as HandleEphemeralDevServerData, bz as HandleEphemeralDevServerError, by as HandleEphemeralDevServerResponse, bA as HandleExecOnEphemeralDevServerData, bC as HandleExecOnEphemeralDevServerError, bB as HandleExecOnEphemeralDevServerResponse, bZ as HandleExecuteScriptData, b$ as HandleExecuteScriptError, b_ as HandleExecuteScriptResponse, cR as HandleGetBlobData, cT as HandleGetBlobError, cS as HandleGetBlobResponse, cU as HandleGetCommitData, cW as HandleGetCommitError, cV as HandleGetCommitResponse, cP as HandleGetContentsData, cQ as HandleGetContentsError, cz as HandleGetDefaultBranchData, cB as HandleGetDefaultBranchError, cA as HandleGetDefaultBranchResponse, bX as HandleGetExecuteRunData, bY as HandleGetExecuteRunError, dk as HandleGetLogsData, dl as HandleGetLogsError, cX as HandleGetRefBranchData, cZ as HandleGetRefBranchError, cY as HandleGetRefBranchResponse, c_ as HandleGetRefTagData, d0 as HandleGetRefTagError, c$ as HandleGetRefTagResponse, d1 as HandleGetTagData, d3 as HandleGetTagError, d2 as HandleGetTagResponse, d4 as HandleGetTreeData, d6 as HandleGetTreeError, d5 as HandleGetTreeResponse, dv as HandleGetWebDeployDetailsData, bJ as HandleGitCommitPushData, bL as HandleGitCommitPushError, bK as HandleGitCommitPushResponse, cd as HandleGrantPermissionData, ce as HandleGrantPermissionError, bl as HandleInsertDomainMappingData, bn as HandleInsertDomainMappingError, bm as HandleInsertDomainMappingResponse, br as HandleListDomainVerificationRequestsError, bk as HandleListDomainsError, bV as HandleListExecuteRunsData, bW as HandleListExecuteRunsError, cl as HandleListGitTokensData, cn as HandleListGitTokensError, cm as HandleListGitTokensResponse, da as HandleListGitTriggersData, db as HandleListGitTriggersError, c0 as HandleListIdentitiesData, c2 as HandleListIdentitiesError, c1 as HandleListIdentitiesResponse, c7 as HandleListPermissionsData, c9 as HandleListPermissionsError, c8 as HandleListPermissionsResponse, b9 as HandleListRecordsData, bb as HandleListRecordsError, ba as HandleListRecordsResponse, cu as HandleListRepositoriesData, cv as HandleListRepositoriesError, dt as HandleListWebDeploysData, du as HandleListWebDeploysError, bG as HandleReadFileFromEphemeralDevServerData, bI as HandleReadFileFromEphemeralDevServerError, bH as HandleReadFileFromEphemeralDevServerResponse, cr as HandleRevokeGitTokenData, ct as HandleRevokeGitTokenError, cs as HandleRevokeGitTokenResponse, cf as HandleRevokePermissionData, ch as HandleRevokePermissionError, cg as HandleRevokePermissionResponse, cC as HandleSetDefaultBranchData, cE as HandleSetDefaultBranchError, cD as HandleSetDefaultBranchResponse, bM as HandleShutdownDevServerData, bO as HandleShutdownDevServerError, bN as HandleShutdownDevServerResponse, ci as HandleUpdatePermissionData, ck as HandleUpdatePermissionError, cj as HandleUpdatePermissionResponse, bs as HandleVerifyDomainData, bi as HandleVerifyWildcardData, bj as HandleVerifyWildcardError, bS as HandleWatchDevServerFilesData, bU as HandleWatchDevServerFilesError, bT as HandleWatchDevServerFilesResponse, bD as HandleWriteFileFromEphemeralDevServerData, bF as HandleWriteFileFromEphemeralDevServerError, bE as HandleWriteFileFromEphemeralDevServerResponse, aM as InternalServerError, aN as ListRecordsResponse, aO as NetworkPermissionData, aP as ReadFileEphemeralDevServerResponses, aQ as ReadFileRequest, cK as RemoveGithubSyncData, cM as RemoveGithubSyncError, cL as RemoveGithubSyncResponse, aR as RepositoryInfo, aS as RepositoryMetadata, aT as RevokeGitTokenRequest, aU as SetDefaultBranchResponse, aV as ShutdownDevServerRequest, aW as Signature, aX as TagDetails, aY as TagObject, aZ as TagTarget, a_ as TreeEntry, b0 as TreeObject, b1 as UpdatePermissionRequest, b2 as Visibility, b3 as WriteFileRequest, ay as action, aK as action2, aJ as event, a4 as kind, a7 as kind2, ak as kind3, _ as type, a1 as type2, aD as type3, a$ as type4 } from './types.gen-BWwhCgTX.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -155,6 +155,7 @@ declare class FreestyleSandboxes {
|
|
|
155
155
|
* @returns The domain verification token.
|
|
156
156
|
*/
|
|
157
157
|
createDomainVerificationRequest(domain: string): Promise<HandleCreateDomainVerificationResponse>;
|
|
158
|
+
verifyDomainVerificationRequest(id: string): Promise<HandleVerifyDomainResponse>;
|
|
158
159
|
/**
|
|
159
160
|
* Verify a domain. Note, this requires the domain verification token to be already set up.
|
|
160
161
|
* @param domain The domain to verify.
|
|
@@ -172,9 +173,10 @@ declare class FreestyleSandboxes {
|
|
|
172
173
|
/**
|
|
173
174
|
* Create a new git repository.
|
|
174
175
|
*/
|
|
175
|
-
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
176
177
|
name?: string;
|
|
177
178
|
public?: boolean;
|
|
179
|
+
defaultBranch?: string;
|
|
178
180
|
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
179
181
|
/**
|
|
180
182
|
* List git repositories.
|
|
@@ -274,6 +276,45 @@ declare class FreestyleSandboxes {
|
|
|
274
276
|
deleteGitTrigger({ triggerId }: {
|
|
275
277
|
triggerId: string;
|
|
276
278
|
}): Promise<void>;
|
|
279
|
+
/**
|
|
280
|
+
* Set the default branch for a git repository.
|
|
281
|
+
*/
|
|
282
|
+
setGitRepoDefaultBranch({ repoId, defaultBranch, }: SetDefaultBranchRequest & {
|
|
283
|
+
repoId: string;
|
|
284
|
+
}): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Get the default branch for a git repository.
|
|
287
|
+
*/
|
|
288
|
+
getGitRepoDefaultBranch({ repoId, }: {
|
|
289
|
+
repoId: string;
|
|
290
|
+
}): Promise<string>;
|
|
291
|
+
/**
|
|
292
|
+
* Get the contents of a git repository at the given path.
|
|
293
|
+
*/
|
|
294
|
+
getGitRepoContents({ repoId, path, ref, }: {
|
|
295
|
+
repoId: string;
|
|
296
|
+
path?: string;
|
|
297
|
+
ref?: string;
|
|
298
|
+
}): Promise<HandleGetContentsResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* Configure a git repository to sync with GitHub.
|
|
301
|
+
*/
|
|
302
|
+
configureGitRepoGitHubSync({ repoId, githubRepoName, }: {
|
|
303
|
+
repoId: string;
|
|
304
|
+
githubRepoName: string;
|
|
305
|
+
}): Promise<void>;
|
|
306
|
+
/**
|
|
307
|
+
* Remove the GitHub sync configuration for a git repository.
|
|
308
|
+
*/
|
|
309
|
+
removeGitRepoGitHubSync({ repoId }: {
|
|
310
|
+
repoId: string;
|
|
311
|
+
}): Promise<void>;
|
|
312
|
+
/**
|
|
313
|
+
* Get the GitHub sync configuration for a git repository.
|
|
314
|
+
*/
|
|
315
|
+
getGitRepoGitHubSyncConfig({ repoId, }: {
|
|
316
|
+
repoId: any;
|
|
317
|
+
}): Promise<GetGithubSyncResponse | null>;
|
|
277
318
|
/**
|
|
278
319
|
* Request a dev server for a repository. If a dev server is already running
|
|
279
320
|
* for that repository, it will return a url to that server. Dev servers are
|
|
@@ -300,4 +341,4 @@ declare class FreestyleSandboxes {
|
|
|
300
341
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
301
342
|
}
|
|
302
343
|
|
|
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 };
|
|
344
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
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 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-
|
|
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, S as SetDefaultBranchRequest, J as HandleGetContentsResponse, K as GetGithubSyncResponse } from './types.gen-BWwhCgTX.js';
|
|
2
|
+
export { O as AccessTokenInfo, N as AccessibleRepository, P as Behavior, Q as BlobEncoding, R as BlobObject, T as BranchDetails, U as CommitObject, V as CommitParent, W as CommitTree, cH as ConfigureGithubSyncData, cJ as ConfigureGithubSyncError, X as ConfigureGithubSyncRequest, cI as ConfigureGithubSyncResponse, Y as CreateDomainMappingRequest, Z as CreateRecordParams, $ as CreateRepoRequest, a0 as CreateRepositoryRequest, a2 as CustomBuildOptions, M as DeploymentBuildOptions, a3 as DeploymentLogEntry, a5 as DeploymentState, a6 as DevServer, a8 as DevServerRequest, a9 as DevServerStatusRequest, aa as DevServerWatchFilesRequest, ab as DnsRecord, ac as DnsRecordData, ad as DnsRecordKind, ae as DomainVerificationRequest, af as ExecRequest, ag as ExecuteLogEntry, ah as ExecuteRunInfo, ai as ExecuteRunState, aj as FileReadContent, al as FreestyleCloudstateDeployConfiguration, am as FreestyleCloudstateDeployErrorResponse, an as FreestyleDeleteDomainVerificationRequest, ao as FreestyleDeployWebErrorResponse, ap as FreestyleDeployWebPayload, aq as FreestyleDeployWebPayloadV2, ar as FreestyleDomainVerificationRequest, as as FreestyleExecuteScriptParams, at as FreestyleFile, au as FreestyleGetLogsResponse, av as FreestyleJavaScriptLog, aw as FreestyleLogResponseObject, ax as FreestyleNetworkPermission, az as FreestyleVerifyDomainRequest, aA as GetDefaultBranchResponse, cF as GetGithubSyncData, cG as GetGithubSyncError, aB as GitCommitPushRequest, aC as GitContents, aE as GitContentsDirEntryItem, aH as GitReference, aI as GitRepositoryTrigger, aF as GithubRepoSyncConfig, aG as GithubSyncConfigResponse, aL as GrantPermissionRequest, b7 as HandleBackupCloudstateData, b8 as HandleBackupCloudstateError, bt as HandleCreateDomainVerificationData, bu as HandleCreateDomainVerificationError, co as HandleCreateGitTokenData, cq as HandleCreateGitTokenError, cp as HandleCreateGitTokenResponse, dc as HandleCreateGitTriggerData, dd as HandleCreateGitTriggerError, c4 as HandleCreateIdentityError, c3 as HandleCreateIdentityResponse, bc as HandleCreateRecordData, be as HandleCreateRecordError, bd as HandleCreateRecordResponse, cw as HandleCreateRepoData, cy as HandleCreateRepoError, cx as HandleCreateRepoResponse, bo as HandleDeleteDomainMappingData, bq as HandleDeleteDomainMappingError, bp as HandleDeleteDomainMappingResponse, bv as HandleDeleteDomainVerificationData, bw as HandleDeleteDomainVerificationError, de as HandleDeleteGitTriggerData, dg as HandleDeleteGitTriggerError, df as HandleDeleteGitTriggerResponse, c5 as HandleDeleteIdentityData, c6 as HandleDeleteIdentityError, bf as HandleDeleteRecordData, bh as HandleDeleteRecordError, bg as HandleDeleteRecordResponse, cN as HandleDeleteRepoData, cO as HandleDeleteRepoError, b4 as HandleDeployCloudstateData, b6 as HandleDeployCloudstateError, b5 as HandleDeployCloudstateResponse, dm as HandleDeployWebData, dp as HandleDeployWebError, dn as HandleDeployWebResponse, dq as HandleDeployWebV2Data, ds as HandleDeployWebV2Error, dr as HandleDeployWebV2Response, ca as HandleDescribePermissionData, cc as HandleDescribePermissionError, cb as HandleDescribePermissionResponse, bP as HandleDevServerStatusData, bR as HandleDevServerStatusError, bQ as HandleDevServerStatusResponse, d7 as HandleDownloadTarballData, d9 as HandleDownloadTarballError, d8 as HandleDownloadTarballResponse, dh as HandleDownloadZipData, dj as HandleDownloadZipError, di as HandleDownloadZipResponse, bx as HandleEphemeralDevServerData, bz as HandleEphemeralDevServerError, by as HandleEphemeralDevServerResponse, bA as HandleExecOnEphemeralDevServerData, bC as HandleExecOnEphemeralDevServerError, bB as HandleExecOnEphemeralDevServerResponse, bZ as HandleExecuteScriptData, b$ as HandleExecuteScriptError, b_ as HandleExecuteScriptResponse, cR as HandleGetBlobData, cT as HandleGetBlobError, cS as HandleGetBlobResponse, cU as HandleGetCommitData, cW as HandleGetCommitError, cV as HandleGetCommitResponse, cP as HandleGetContentsData, cQ as HandleGetContentsError, cz as HandleGetDefaultBranchData, cB as HandleGetDefaultBranchError, cA as HandleGetDefaultBranchResponse, bX as HandleGetExecuteRunData, bY as HandleGetExecuteRunError, dk as HandleGetLogsData, dl as HandleGetLogsError, cX as HandleGetRefBranchData, cZ as HandleGetRefBranchError, cY as HandleGetRefBranchResponse, c_ as HandleGetRefTagData, d0 as HandleGetRefTagError, c$ as HandleGetRefTagResponse, d1 as HandleGetTagData, d3 as HandleGetTagError, d2 as HandleGetTagResponse, d4 as HandleGetTreeData, d6 as HandleGetTreeError, d5 as HandleGetTreeResponse, dv as HandleGetWebDeployDetailsData, bJ as HandleGitCommitPushData, bL as HandleGitCommitPushError, bK as HandleGitCommitPushResponse, cd as HandleGrantPermissionData, ce as HandleGrantPermissionError, bl as HandleInsertDomainMappingData, bn as HandleInsertDomainMappingError, bm as HandleInsertDomainMappingResponse, br as HandleListDomainVerificationRequestsError, bk as HandleListDomainsError, bV as HandleListExecuteRunsData, bW as HandleListExecuteRunsError, cl as HandleListGitTokensData, cn as HandleListGitTokensError, cm as HandleListGitTokensResponse, da as HandleListGitTriggersData, db as HandleListGitTriggersError, c0 as HandleListIdentitiesData, c2 as HandleListIdentitiesError, c1 as HandleListIdentitiesResponse, c7 as HandleListPermissionsData, c9 as HandleListPermissionsError, c8 as HandleListPermissionsResponse, b9 as HandleListRecordsData, bb as HandleListRecordsError, ba as HandleListRecordsResponse, cu as HandleListRepositoriesData, cv as HandleListRepositoriesError, dt as HandleListWebDeploysData, du as HandleListWebDeploysError, bG as HandleReadFileFromEphemeralDevServerData, bI as HandleReadFileFromEphemeralDevServerError, bH as HandleReadFileFromEphemeralDevServerResponse, cr as HandleRevokeGitTokenData, ct as HandleRevokeGitTokenError, cs as HandleRevokeGitTokenResponse, cf as HandleRevokePermissionData, ch as HandleRevokePermissionError, cg as HandleRevokePermissionResponse, cC as HandleSetDefaultBranchData, cE as HandleSetDefaultBranchError, cD as HandleSetDefaultBranchResponse, bM as HandleShutdownDevServerData, bO as HandleShutdownDevServerError, bN as HandleShutdownDevServerResponse, ci as HandleUpdatePermissionData, ck as HandleUpdatePermissionError, cj as HandleUpdatePermissionResponse, bs as HandleVerifyDomainData, bi as HandleVerifyWildcardData, bj as HandleVerifyWildcardError, bS as HandleWatchDevServerFilesData, bU as HandleWatchDevServerFilesError, bT as HandleWatchDevServerFilesResponse, bD as HandleWriteFileFromEphemeralDevServerData, bF as HandleWriteFileFromEphemeralDevServerError, bE as HandleWriteFileFromEphemeralDevServerResponse, aM as InternalServerError, aN as ListRecordsResponse, aO as NetworkPermissionData, aP as ReadFileEphemeralDevServerResponses, aQ as ReadFileRequest, cK as RemoveGithubSyncData, cM as RemoveGithubSyncError, cL as RemoveGithubSyncResponse, aR as RepositoryInfo, aS as RepositoryMetadata, aT as RevokeGitTokenRequest, aU as SetDefaultBranchResponse, aV as ShutdownDevServerRequest, aW as Signature, aX as TagDetails, aY as TagObject, aZ as TagTarget, a_ as TreeEntry, b0 as TreeObject, b1 as UpdatePermissionRequest, b2 as Visibility, b3 as WriteFileRequest, ay as action, aK as action2, aJ as event, a4 as kind, a7 as kind2, ak as kind3, _ as type, a1 as type2, aD as type3, a$ as type4 } from './types.gen-BWwhCgTX.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -155,6 +155,7 @@ declare class FreestyleSandboxes {
|
|
|
155
155
|
* @returns The domain verification token.
|
|
156
156
|
*/
|
|
157
157
|
createDomainVerificationRequest(domain: string): Promise<HandleCreateDomainVerificationResponse>;
|
|
158
|
+
verifyDomainVerificationRequest(id: string): Promise<HandleVerifyDomainResponse>;
|
|
158
159
|
/**
|
|
159
160
|
* Verify a domain. Note, this requires the domain verification token to be already set up.
|
|
160
161
|
* @param domain The domain to verify.
|
|
@@ -172,9 +173,10 @@ declare class FreestyleSandboxes {
|
|
|
172
173
|
/**
|
|
173
174
|
* Create a new git repository.
|
|
174
175
|
*/
|
|
175
|
-
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
176
177
|
name?: string;
|
|
177
178
|
public?: boolean;
|
|
179
|
+
defaultBranch?: string;
|
|
178
180
|
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
179
181
|
/**
|
|
180
182
|
* List git repositories.
|
|
@@ -274,6 +276,45 @@ declare class FreestyleSandboxes {
|
|
|
274
276
|
deleteGitTrigger({ triggerId }: {
|
|
275
277
|
triggerId: string;
|
|
276
278
|
}): Promise<void>;
|
|
279
|
+
/**
|
|
280
|
+
* Set the default branch for a git repository.
|
|
281
|
+
*/
|
|
282
|
+
setGitRepoDefaultBranch({ repoId, defaultBranch, }: SetDefaultBranchRequest & {
|
|
283
|
+
repoId: string;
|
|
284
|
+
}): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Get the default branch for a git repository.
|
|
287
|
+
*/
|
|
288
|
+
getGitRepoDefaultBranch({ repoId, }: {
|
|
289
|
+
repoId: string;
|
|
290
|
+
}): Promise<string>;
|
|
291
|
+
/**
|
|
292
|
+
* Get the contents of a git repository at the given path.
|
|
293
|
+
*/
|
|
294
|
+
getGitRepoContents({ repoId, path, ref, }: {
|
|
295
|
+
repoId: string;
|
|
296
|
+
path?: string;
|
|
297
|
+
ref?: string;
|
|
298
|
+
}): Promise<HandleGetContentsResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* Configure a git repository to sync with GitHub.
|
|
301
|
+
*/
|
|
302
|
+
configureGitRepoGitHubSync({ repoId, githubRepoName, }: {
|
|
303
|
+
repoId: string;
|
|
304
|
+
githubRepoName: string;
|
|
305
|
+
}): Promise<void>;
|
|
306
|
+
/**
|
|
307
|
+
* Remove the GitHub sync configuration for a git repository.
|
|
308
|
+
*/
|
|
309
|
+
removeGitRepoGitHubSync({ repoId }: {
|
|
310
|
+
repoId: string;
|
|
311
|
+
}): Promise<void>;
|
|
312
|
+
/**
|
|
313
|
+
* Get the GitHub sync configuration for a git repository.
|
|
314
|
+
*/
|
|
315
|
+
getGitRepoGitHubSyncConfig({ repoId, }: {
|
|
316
|
+
repoId: any;
|
|
317
|
+
}): Promise<GetGithubSyncResponse | null>;
|
|
277
318
|
/**
|
|
278
319
|
* Request a dev server for a repository. If a dev server is already running
|
|
279
320
|
* for that repository, it will return a url to that server. Dev servers are
|
|
@@ -300,4 +341,4 @@ declare class FreestyleSandboxes {
|
|
|
300
341
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
301
342
|
}
|
|
302
343
|
|
|
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 };
|
|
344
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
@@ -3169,12 +3169,11 @@ 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 }) => {
|
|
3173
3173
|
try {
|
|
3174
3174
|
const res = await api.executeScript(script, config);
|
|
3175
3175
|
if (config.onResult) {
|
|
3176
3176
|
await config.onResult({
|
|
3177
|
-
toolCallId,
|
|
3178
3177
|
result: res,
|
|
3179
3178
|
input: {
|
|
3180
3179
|
script,
|
|
@@ -3217,13 +3216,10 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
3217
3216
|
`)
|
|
3218
3217
|
}),
|
|
3219
3218
|
execute: async ({ files }) => {
|
|
3220
|
-
const new_files = Object.keys(files).reduce(
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
},
|
|
3225
|
-
{}
|
|
3226
|
-
);
|
|
3219
|
+
const new_files = Object.keys(files).reduce((acc, key) => {
|
|
3220
|
+
acc[key] = { content: files[key] };
|
|
3221
|
+
return acc;
|
|
3222
|
+
}, {});
|
|
3227
3223
|
try {
|
|
3228
3224
|
const res = await api.deployWeb(
|
|
3229
3225
|
{
|