freestyle-sandboxes 0.0.93 → 0.0.95

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 (65) 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 +16 -6
  6. package/dist/inde.d.mts +16 -6
  7. package/dist/index.cjs +19 -8
  8. package/dist/index.d.cts +16 -6
  9. package/dist/index.d.mts +16 -6
  10. package/dist/index.mjs +19 -8
  11. package/dist/langgraph/inde.d.cts +1 -1
  12. package/dist/langgraph/inde.d.mts +1 -1
  13. package/dist/langgraph/index.d.cts +1 -1
  14. package/dist/langgraph/index.d.mts +1 -1
  15. package/dist/mastra/inde.d.cts +1 -1
  16. package/dist/mastra/inde.d.mts +1 -1
  17. package/dist/mastra/index.d.cts +1 -1
  18. package/dist/mastra/index.d.mts +1 -1
  19. package/dist/{types.gen-CG8tIO9M.d.ts → types.gen-DKjMRuu5.d.ts} +448 -43
  20. package/dist/utils/inde.d.cts +1 -1
  21. package/dist/utils/inde.d.mts +1 -1
  22. package/dist/utils/index.d.cts +1 -1
  23. package/dist/utils/index.d.mts +1 -1
  24. package/openapi/sdk.gen.ts +234 -1
  25. package/openapi/types.gen.ts +389 -19
  26. package/openapi.json +1 -1
  27. package/package.json +1 -1
  28. package/src/index.ts +22 -1
  29. package/dist/index-BBXyg0JQ.cjs +0 -3253
  30. package/dist/index-BQHqnjZK.mjs +0 -3231
  31. package/dist/index-CEEa9WHp.cjs +0 -3238
  32. package/dist/index-D1ulQeJR.mjs +0 -3247
  33. package/dist/index-DCF70Xbq.mjs +0 -3246
  34. package/dist/index-H7UNEAjs.cjs +0 -3254
  35. package/dist/index.d-CXx1AdyW.d.ts +0 -4210
  36. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  37. package/dist/types.gen-627pxroW.d.ts +0 -830
  38. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  39. package/dist/types.gen-BVXmFV7d.d.ts +0 -1299
  40. package/dist/types.gen-BWwhCgTX.d.ts +0 -1462
  41. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  42. package/dist/types.gen-BbekD8Sd.d.ts +0 -1119
  43. package/dist/types.gen-BpWMzgc3.d.ts +0 -1493
  44. package/dist/types.gen-BqN1t03N.d.ts +0 -842
  45. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  46. package/dist/types.gen-BuhQ5LpB.d.ts +0 -764
  47. package/dist/types.gen-BzRtj_TA.d.ts +0 -725
  48. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  49. package/dist/types.gen-CIf3ciN7.d.ts +0 -807
  50. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  51. package/dist/types.gen-CWa4Mw0J.d.ts +0 -1493
  52. package/dist/types.gen-CZUnqmzP.d.ts +0 -789
  53. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  54. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  55. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  56. package/dist/types.gen-DLYohMJT.d.ts +0 -382
  57. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  58. package/dist/types.gen-DkFlXKTr.d.ts +0 -1354
  59. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  60. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  61. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  62. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  63. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  64. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  65. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
package/dist/index.mjs CHANGED
@@ -82,13 +82,13 @@ const handleExecOnEphemeralDevServer = (options) => {
82
82
  const handleWriteFileFromEphemeralDevServer = (options) => {
83
83
  return (options?.client ?? client).put({
84
84
  ...options,
85
- url: "/ephemeral/v1/dev-servers/files/{*filepath}"
85
+ url: "/ephemeral/v1/dev-servers/files/{filepath}"
86
86
  });
87
87
  };
88
88
  const handleReadFileFromEphemeralDevServer = (options) => {
89
89
  return (options?.client ?? client).post({
90
90
  ...options,
91
- url: "/ephemeral/v1/dev-servers/files/{*filepath}"
91
+ url: "/ephemeral/v1/dev-servers/files/{filepath}"
92
92
  });
93
93
  };
94
94
  const handleGitCommitPush = (options) => {
@@ -238,7 +238,7 @@ const handleDeleteRepo = (options) => {
238
238
  const handleGetContents = (options) => {
239
239
  return (options?.client ?? client).get({
240
240
  ...options,
241
- url: "/git/v1/repo/{repo}/contents/{*path}"
241
+ url: "/git/v1/repo/{repo}/contents/{path}"
242
242
  });
243
243
  };
244
244
  const handleListGitTriggers = (options) => {
@@ -627,7 +627,8 @@ ${response.error.message}`);
627
627
  public: pub = false,
628
628
  source,
629
629
  import: _import,
630
- defaultBranch
630
+ defaultBranch,
631
+ devServers
631
632
  }) {
632
633
  const response = await handleCreateRepo({
633
634
  client: this.client,
@@ -636,7 +637,8 @@ ${response.error.message}`);
636
637
  public: pub,
637
638
  source,
638
639
  import: _import,
639
- defaultBranch
640
+ defaultBranch,
641
+ devServers
640
642
  }
641
643
  });
642
644
  if (response.data) {
@@ -932,11 +934,15 @@ ${response.error.message}`);
932
934
  /**
933
935
  * Delete a git trigger.
934
936
  */
935
- async deleteGitTrigger({ triggerId }) {
937
+ async deleteGitTrigger({
938
+ triggerId,
939
+ repo
940
+ }) {
936
941
  const response = await handleDeleteGitTrigger({
937
942
  client: this.client,
938
943
  path: {
939
- trigger: triggerId
944
+ trigger: triggerId,
945
+ repo
940
946
  }
941
947
  });
942
948
  if (response.data) {
@@ -995,6 +1001,7 @@ ${response.error.message}`);
995
1001
  client: this.client,
996
1002
  path: {
997
1003
  repo: repoId,
1004
+ path: path ?? "",
998
1005
  "*path": path ?? null
999
1006
  },
1000
1007
  query: {
@@ -1109,7 +1116,8 @@ ${response.error.message}`);
1109
1116
  const data = response.data;
1110
1117
  const devServerInstance = {
1111
1118
  repoId: options.repoId || options.repo || "",
1112
- kind: "repo"
1119
+ kind: "repo",
1120
+ gitRef: options.gitRef
1113
1121
  };
1114
1122
  const client = this.client;
1115
1123
  const that = this;
@@ -1166,6 +1174,7 @@ ${response.error.message}`);
1166
1174
  const response2 = await handleReadFileFromEphemeralDevServer({
1167
1175
  client,
1168
1176
  path: {
1177
+ filepath: path,
1169
1178
  "*filepath": path
1170
1179
  },
1171
1180
  body: {
@@ -1229,6 +1238,7 @@ ${response.error.message}`);
1229
1238
  const response2 = await handleReadFileFromEphemeralDevServer({
1230
1239
  client,
1231
1240
  path: {
1241
+ filepath: path,
1232
1242
  "*filepath": path
1233
1243
  },
1234
1244
  body: {
@@ -1249,6 +1259,7 @@ ${response.error.message}`);
1249
1259
  const response2 = await handleWriteFileFromEphemeralDevServer({
1250
1260
  client,
1251
1261
  path: {
1262
+ filepath: path,
1252
1263
  "*filepath": path
1253
1264
  },
1254
1265
  body: {
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
2
2
  import * as z3 from 'zod/v3';
3
3
  import { z } from 'zod/v3';
4
4
  import * as z4 from 'zod/v4/core';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
2
2
  import * as z3 from 'zod/v3';
3
3
  import { z } from 'zod/v3';
4
4
  import * as z4 from 'zod/v4/core';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
2
2
  import * as z3 from 'zod/v3';
3
3
  import { z } from 'zod/v3';
4
4
  import * as z4 from 'zod/v4/core';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
2
2
  import * as z3 from 'zod/v3';
3
3
  import { z } from 'zod/v3';
4
4
  import * as z4 from 'zod/v4/core';
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
5
5
  import { EventEmitter } from 'events';
6
6
  import { ServerResponse, IncomingMessage } from 'http';
7
7
  import { WorkerOptions } from 'worker_threads';
8
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
8
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
9
9
  import 'node:http';
10
10
 
11
11
  // Type definitions for pino-std-serializers 2.4
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
5
5
  import { EventEmitter } from 'events';
6
6
  import { ServerResponse, IncomingMessage } from 'http';
7
7
  import { WorkerOptions } from 'worker_threads';
8
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
8
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
9
9
  import 'node:http';
10
10
 
11
11
  // Type definitions for pino-std-serializers 2.4
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
5
5
  import { EventEmitter } from 'events';
6
6
  import { ServerResponse, IncomingMessage } from 'http';
7
7
  import { WorkerOptions } from 'worker_threads';
8
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
8
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
9
9
  import 'node:http';
10
10
 
11
11
  // Type definitions for pino-std-serializers 2.4
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
5
5
  import { EventEmitter } from 'events';
6
6
  import { ServerResponse, IncomingMessage } from 'http';
7
7
  import { WorkerOptions } from 'worker_threads';
8
- import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-CG8tIO9M.js';
8
+ import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DKjMRuu5.js';
9
9
  import 'node:http';
10
10
 
11
11
  // Type definitions for pino-std-serializers 2.4