freestyle-sandboxes 0.0.77 → 0.0.79
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/inde.d.cts +1 -0
- package/dist/inde.d.mts +1 -0
- 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 +15 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +15 -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-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/package.json +1 -1
- package/src/index.ts +58 -40
- package/src/temp.ts +0 -10
package/dist/inde.d.cts
CHANGED
|
@@ -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.
|
package/dist/inde.d.mts
CHANGED
|
@@ -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.
|
|
@@ -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
|
{
|