freestyle-sandboxes 0.0.60 → 0.0.61

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 (38) hide show
  1. package/.env +1 -0
  2. package/dist/inde.d.cts +2 -1
  3. package/dist/inde.d.mts +2 -1
  4. package/dist/index.cjs +4 -2
  5. package/dist/index.d.cts +2 -1
  6. package/dist/index.d.mts +2 -1
  7. package/dist/index.mjs +4 -2
  8. package/dist/{types.gen-DyY7Deri.d.ts → types.gen-BoJEFWW-.d.ts} +1 -55
  9. package/package.json +2 -2
  10. package/src/index.ts +4 -1
  11. package/dist/index-BBXyg0JQ.cjs +0 -3253
  12. package/dist/index-BQHqnjZK.mjs +0 -3231
  13. package/dist/index-CEEa9WHp.cjs +0 -3238
  14. package/dist/index-D1ulQeJR.mjs +0 -3247
  15. package/dist/index-DCF70Xbq.mjs +0 -3246
  16. package/dist/index-H7UNEAjs.cjs +0 -3254
  17. package/dist/index.d-CXx1AdyW.d.ts +0 -4210
  18. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  19. package/dist/types.gen-627pxroW.d.ts +0 -830
  20. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  21. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  22. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  23. package/dist/types.gen-BuhQ5LpB.d.ts +0 -764
  24. package/dist/types.gen-BzRtj_TA.d.ts +0 -725
  25. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  26. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  27. package/dist/types.gen-CZUnqmzP.d.ts +0 -789
  28. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  29. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  30. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  31. package/dist/types.gen-DLYohMJT.d.ts +0 -382
  32. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  33. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  34. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  35. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  36. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  37. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  38. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
package/.env ADDED
@@ -0,0 +1 @@
1
+ FREESTYLE_API_KEY=RoZ4n8eAY4ChcgdKV89LjY-Fhvp6Rzqx27bZ4BjHaVf7qpEw7vA7MekK84DdGgZYkR2
package/dist/inde.d.cts CHANGED
@@ -180,13 +180,14 @@ declare class FreestyleSandboxes {
180
180
  * ephemeral so you should call this function every time you need a url. Do
181
181
  * not store the url in your database!
182
182
  */
183
- requestDevServer({ repoUrl, repoId, }: {
183
+ requestDevServer({ repoUrl, repoId, baseId, }: {
184
184
  /**
185
185
  * @deprecated
186
186
  */
187
187
  repoUrl?: string;
188
188
  repoId?: string;
189
189
  repo?: string;
190
+ baseId?: string;
190
191
  }): Promise<{
191
192
  mcpEphemeralUrl: any;
192
193
  ephemeralUrl: string;
package/dist/inde.d.mts CHANGED
@@ -180,13 +180,14 @@ declare class FreestyleSandboxes {
180
180
  * ephemeral so you should call this function every time you need a url. Do
181
181
  * not store the url in your database!
182
182
  */
183
- requestDevServer({ repoUrl, repoId, }: {
183
+ requestDevServer({ repoUrl, repoId, baseId, }: {
184
184
  /**
185
185
  * @deprecated
186
186
  */
187
187
  repoUrl?: string;
188
188
  repoId?: string;
189
189
  repo?: string;
190
+ baseId?: string;
190
191
  }): Promise<{
191
192
  mcpEphemeralUrl: any;
192
193
  ephemeralUrl: string;
package/dist/index.cjs CHANGED
@@ -779,7 +779,8 @@ ${response.error.message}`);
779
779
  */
780
780
  async requestDevServer({
781
781
  repoUrl,
782
- repoId
782
+ repoId,
783
+ baseId
783
784
  }) {
784
785
  function formatHook(serverUrl, repoUrl2) {
785
786
  const hook = serverUrl + "/__freestyle_dev_server/update/git?repo=" + encodeURIComponent(repoUrl2);
@@ -790,7 +791,8 @@ ${response.error.message}`);
790
791
  body: {
791
792
  // @ts-ignore
792
793
  repo: repoUrl,
793
- repoId
794
+ repoId,
795
+ baseId
794
796
  }
795
797
  });
796
798
  if (response.data.isNew) {
package/dist/index.d.cts CHANGED
@@ -180,13 +180,14 @@ declare class FreestyleSandboxes {
180
180
  * ephemeral so you should call this function every time you need a url. Do
181
181
  * not store the url in your database!
182
182
  */
183
- requestDevServer({ repoUrl, repoId, }: {
183
+ requestDevServer({ repoUrl, repoId, baseId, }: {
184
184
  /**
185
185
  * @deprecated
186
186
  */
187
187
  repoUrl?: string;
188
188
  repoId?: string;
189
189
  repo?: string;
190
+ baseId?: string;
190
191
  }): Promise<{
191
192
  mcpEphemeralUrl: any;
192
193
  ephemeralUrl: string;
package/dist/index.d.mts CHANGED
@@ -180,13 +180,14 @@ declare class FreestyleSandboxes {
180
180
  * ephemeral so you should call this function every time you need a url. Do
181
181
  * not store the url in your database!
182
182
  */
183
- requestDevServer({ repoUrl, repoId, }: {
183
+ requestDevServer({ repoUrl, repoId, baseId, }: {
184
184
  /**
185
185
  * @deprecated
186
186
  */
187
187
  repoUrl?: string;
188
188
  repoId?: string;
189
189
  repo?: string;
190
+ baseId?: string;
190
191
  }): Promise<{
191
192
  mcpEphemeralUrl: any;
192
193
  ephemeralUrl: string;
package/dist/index.mjs CHANGED
@@ -777,7 +777,8 @@ ${response.error.message}`);
777
777
  */
778
778
  async requestDevServer({
779
779
  repoUrl,
780
- repoId
780
+ repoId,
781
+ baseId
781
782
  }) {
782
783
  function formatHook(serverUrl, repoUrl2) {
783
784
  const hook = serverUrl + "/__freestyle_dev_server/update/git?repo=" + encodeURIComponent(repoUrl2);
@@ -788,7 +789,8 @@ ${response.error.message}`);
788
789
  body: {
789
790
  // @ts-ignore
790
791
  repo: repoUrl,
791
- repoId
792
+ repoId,
793
+ baseId
792
794
  }
793
795
  });
794
796
  if (response.data.isNew) {
@@ -10,9 +10,6 @@ type FreestyleCloudstateDeployConfiguration = {
10
10
  [key: string]: (string);
11
11
  };
12
12
  };
13
- type FreestyleCloudstateDeployErrorResponse = {
14
- message: string;
15
- };
16
13
  type FreestyleCloudstateDeployRequest = {
17
14
  classes: string;
18
15
  config?: FreestyleCloudstateDeployConfiguration;
@@ -50,36 +47,12 @@ type FreestyleDeployWebConfiguration = {
50
47
  [key: string]: (string);
51
48
  } | null;
52
49
  };
53
- type FreestyleDeployWebErrorResponse = {
54
- message: string;
55
- };
56
- type FreestyleDeployWebPayload = {
57
- /**
58
- * The files to deploy, a map of file paths to file contents, e.g. { \"index.js\": {\"content\": \"your main\", \"encoding\": \"utf-8\"}, \"file2.js\": {\"content\": \"your helper\" } }
59
- *
60
- * **Do not include node modules in this bundle, they will not work**. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
61
- */
62
- files: {
63
- [key: string]: FreestyleFile;
64
- };
65
- config?: FreestyleDeployWebConfiguration;
66
- };
67
50
  type FreestyleDeployWebSuccessResponse = {
68
51
  projectId: string;
69
52
  };
70
- type FreestyleExecureScriptResultError = {
71
- error: string;
72
- };
73
53
  type FreestyleExecureScriptResultSuccess = {
74
54
  result: unknown;
75
55
  };
76
- type FreestyleExecuteScriptParams = {
77
- /**
78
- * The JavaScript or TypeScript script to execute
79
- */
80
- script: string;
81
- config?: FreestyleExecuteScriptParamsConfiguration;
82
- };
83
56
  type FreestyleExecuteScriptParamsConfiguration = {
84
57
  /**
85
58
  * The environment variables to set for the script
@@ -102,37 +75,10 @@ type FreestyleExecuteScriptParamsConfiguration = {
102
75
  */
103
76
  timeout?: (string) | null;
104
77
  };
105
- type FreestyleFile = {
106
- /**
107
- * The content of the file
108
- */
109
- content: string;
110
- /**
111
- * The encoding of the file. Either **utf-8** or **base64**
112
- */
113
- encoding?: string;
114
- };
115
78
  type FreestyleLogResponseObject = {
116
79
  message: string;
117
80
  };
118
- type HandleDeployCloudstateData = {
119
- body: FreestyleCloudstateDeployRequest;
120
- };
121
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
122
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
123
81
  type HandleBackupCloudstateResponse = (Array<(number)>);
124
- type HandleBackupCloudstateError = (unknown);
125
- type HandleExecuteScriptData = {
126
- body: FreestyleExecuteScriptParams;
127
- };
128
- type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
129
- type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
130
- type HandleDeployWebData = {
131
- body: FreestyleDeployWebPayload;
132
- };
133
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
134
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
135
82
  type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
136
- type HandleGetLogsError = unknown;
137
83
 
138
- export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, FreestyleCloudstateDeployConfiguration as g, FreestyleCloudstateDeployErrorResponse as h, FreestyleDeployWebErrorResponse as i, FreestyleDeployWebPayload as j, FreestyleExecureScriptResultError as k, FreestyleExecuteScriptParams as l, FreestyleFile as m, FreestyleLogResponseObject as n, HandleDeployCloudstateData as o, HandleDeployCloudstateResponse as p, HandleDeployCloudstateError as q, HandleBackupCloudstateError as r, HandleExecuteScriptData as s, HandleExecuteScriptResponse as t, HandleExecuteScriptError as u, HandleDeployWebData as v, HandleDeployWebResponse as w, HandleDeployWebError as x, HandleGetLogsError as y };
84
+ export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -106,4 +106,4 @@
106
106
  "zod": "^3.24.1"
107
107
  },
108
108
  "packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
109
- }
109
+ }
package/src/index.ts CHANGED
@@ -800,12 +800,14 @@ export class FreestyleSandboxes {
800
800
  async requestDevServer({
801
801
  repoUrl,
802
802
  repoId,
803
+ baseId,
803
804
  }: {
804
805
  /**
805
806
  * @deprecated
806
807
  */
807
808
  repoUrl?: string,
808
- repoId?: string, repo?: string
809
+ repoId?: string, repo?: string,
810
+ baseId?: string,
809
811
  }) {
810
812
  function formatHook(serverUrl: string, repoUrl: string) {
811
813
  const hook =
@@ -821,6 +823,7 @@ export class FreestyleSandboxes {
821
823
  // @ts-ignore
822
824
  repo: repoUrl,
823
825
  repoId: repoId,
826
+ baseId: baseId
824
827
  },
825
828
  });
826
829