freestyle-sandboxes 0.0.41 → 0.0.43
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/index.cjs +1 -1
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.mts +2 -2
- package/dist/ai/index.mjs +1 -1
- package/dist/expo/index.cjs +1 -1
- package/dist/expo/index.d.cts +1 -1
- package/dist/expo/index.d.mts +1 -1
- package/dist/expo/index.mjs +1 -1
- package/dist/index-BKAG8L-o.mjs +3061 -0
- package/dist/index-DuOpIaWc.cjs +3068 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d-9H_wnIbz.d.ts +4223 -0
- package/dist/index.d.cts +8 -4
- package/dist/index.d.mts +8 -4
- package/dist/index.mjs +3 -0
- package/dist/langgraph/index.cjs +1 -1
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/langgraph/index.mjs +1 -1
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.d.cts +2 -2
- package/dist/mastra/index.d.mts +2 -2
- package/dist/mastra/index.mjs +1 -1
- package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/package.json +2 -2
- package/src/expo/index.ts +1 -1
- package/src/index.ts +14 -2
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-DDYpuDzZ.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-DDYpuDzZ.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freestyle-sandboxes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@langchain/core": "^0.3.38",
|
|
81
81
|
"@langchain/langgraph": "^0.2.44",
|
|
82
82
|
"@mastra/core": "^0.6.0",
|
|
83
|
-
"ai": "^4.
|
|
83
|
+
"ai": "^4.3.4",
|
|
84
84
|
"humanlayer": "^0.7.0",
|
|
85
85
|
"pkgroll": "^2.6.0"
|
|
86
86
|
},
|
package/src/expo/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { serveStatic } from "hono/deno";
|
|
|
8
8
|
export const freestyleExpoServer = ({
|
|
9
9
|
CLIENT_BUILD_DIR = path.join(process.cwd(), "dist/client"),
|
|
10
10
|
SERVER_BUILD_DIR = path.join(process.cwd(), "dist/server"),
|
|
11
|
-
}) => {
|
|
11
|
+
} = {}) => {
|
|
12
12
|
// // Expo handler
|
|
13
13
|
const expoHandler = createRequestHandler(SERVER_BUILD_DIR);
|
|
14
14
|
|
package/src/index.ts
CHANGED
|
@@ -29,10 +29,12 @@ import type {
|
|
|
29
29
|
HandleVerifyDomainResponse,
|
|
30
30
|
ListGitTokensResponseSuccess,
|
|
31
31
|
ListPermissionResponseSuccess,
|
|
32
|
+
BuildOptions,
|
|
32
33
|
} from "../openapi/index.ts";
|
|
33
34
|
|
|
34
35
|
export type {
|
|
35
36
|
AccessLevel,
|
|
37
|
+
BuildOptions,
|
|
36
38
|
CreatedToken,
|
|
37
39
|
CreateRepositoryResponseSuccess,
|
|
38
40
|
DescribePermissionResponseSuccess,
|
|
@@ -134,13 +136,23 @@ export class FreestyleSandboxes {
|
|
|
134
136
|
*/
|
|
135
137
|
async deployWeb(
|
|
136
138
|
source: sandbox_openapi.DeploymentSource,
|
|
137
|
-
config?: FreestyleDeployWebConfiguration
|
|
139
|
+
config?: Omit<FreestyleDeployWebConfiguration, "build"> & {
|
|
140
|
+
build?:
|
|
141
|
+
| BuildOptions
|
|
142
|
+
| (Omit<BuildOptions, "command"> & {
|
|
143
|
+
command: string | string[];
|
|
144
|
+
});
|
|
145
|
+
}
|
|
138
146
|
): Promise<FreestyleDeployWebSuccessResponseV2> {
|
|
147
|
+
if (Array.isArray(config.build.command)) {
|
|
148
|
+
config.build.command = config.build.command.join(" && ") as string;
|
|
149
|
+
}
|
|
150
|
+
|
|
139
151
|
const response = await sandbox_openapi.handleDeployWebV2({
|
|
140
152
|
client: this.client,
|
|
141
153
|
body: {
|
|
142
154
|
source: source,
|
|
143
|
-
config: config,
|
|
155
|
+
config: config as FreestyleDeployWebConfiguration,
|
|
144
156
|
},
|
|
145
157
|
});
|
|
146
158
|
if (response.data) {
|