freestyle-sandboxes 0.0.29 → 0.0.30
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.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ declare const executeCodeDescription: (envVars: string, nodeModules: string) =>
|
|
|
20
20
|
*/
|
|
21
21
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
22
22
|
apiKey: string;
|
|
23
|
-
}) => ai.
|
|
23
|
+
}) => ai.Tool<z.ZodObject<{
|
|
24
24
|
script: z.ZodString;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
script?: string;
|
|
@@ -44,7 +44,7 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
44
44
|
*/
|
|
45
45
|
declare const deployWebTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
46
46
|
apiKey: string;
|
|
47
|
-
}) => ai.
|
|
47
|
+
}) => ai.Tool<z.ZodObject<{
|
|
48
48
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
files?: Record<string, string>;
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ declare const executeCodeDescription: (envVars: string, nodeModules: string) =>
|
|
|
20
20
|
*/
|
|
21
21
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
22
22
|
apiKey: string;
|
|
23
|
-
}) => ai.
|
|
23
|
+
}) => ai.Tool<z.ZodObject<{
|
|
24
24
|
script: z.ZodString;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
script?: string;
|
|
@@ -44,7 +44,7 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
44
44
|
*/
|
|
45
45
|
declare const deployWebTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
46
46
|
apiKey: string;
|
|
47
|
-
}) => ai.
|
|
47
|
+
}) => ai.Tool<z.ZodObject<{
|
|
48
48
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
files?: Record<string, string>;
|
package/dist/langgraph/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FreestyleSandboxes } from '../index.mjs';
|
|
2
2
|
import { DynamicStructuredTool } from '@langchain/core/tools';
|
|
3
|
-
import {
|
|
3
|
+
import { executeCodeSchema, executeCodeDescription } from '../ai/index.mjs';
|
|
4
4
|
import '@hey-api/client-fetch';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import 'zod';
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as _mastra_core_tools from '@mastra/core/tools';
|
|
1
2
|
import * as _mastra_core from '@mastra/core';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BzRtj_TA.js';
|
|
4
5
|
|
|
5
6
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
6
7
|
apiKey: string;
|
|
7
|
-
}) =>
|
|
8
|
+
}) => _mastra_core_tools.Tool<z.ZodObject<{
|
|
8
9
|
script: z.ZodString;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
script?: string;
|
|
@@ -40,6 +41,6 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
40
41
|
script?: string;
|
|
41
42
|
}, {
|
|
42
43
|
script?: string;
|
|
43
|
-
}
|
|
44
|
+
}>>, unknown>;
|
|
44
45
|
|
|
45
46
|
export { executeTool };
|
package/dist/mastra/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as _mastra_core_tools from '@mastra/core/tools';
|
|
1
2
|
import * as _mastra_core from '@mastra/core';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BzRtj_TA.js';
|
|
4
5
|
|
|
5
6
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
6
7
|
apiKey: string;
|
|
7
|
-
}) =>
|
|
8
|
+
}) => _mastra_core_tools.Tool<z.ZodObject<{
|
|
8
9
|
script: z.ZodString;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
script?: string;
|
|
@@ -40,6 +41,6 @@ declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration &
|
|
|
40
41
|
script?: string;
|
|
41
42
|
}, {
|
|
42
43
|
script?: string;
|
|
43
|
-
}
|
|
44
|
+
}>>, unknown>;
|
|
44
45
|
|
|
45
46
|
export { executeTool };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freestyle-sandboxes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@hey-api/client-fetch": "^0.5.7",
|
|
74
74
|
"@langchain/core": "^0.3.38",
|
|
75
75
|
"@langchain/langgraph": "^0.2.44",
|
|
76
|
-
"@mastra/core": "^0.
|
|
76
|
+
"@mastra/core": "^0.6.0",
|
|
77
77
|
"ai": "^4.0.25",
|
|
78
78
|
"glob": "^11.0.1",
|
|
79
79
|
"humanlayer": "^0.7.0",
|
package/src/mastra/index.ts
CHANGED
|
@@ -7,11 +7,11 @@ import { FreestyleSandboxes } from "..";
|
|
|
7
7
|
export const executeTool = (
|
|
8
8
|
config: FreestyleExecuteScriptParamsConfiguration & {
|
|
9
9
|
apiKey: string;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
) => {
|
|
12
12
|
const description = executeCodeDescription(
|
|
13
13
|
Object.keys(config.envVars ?? {}).join(", "),
|
|
14
|
-
Object.keys(config.nodeModules ?? {}).join(", ")
|
|
14
|
+
Object.keys(config.nodeModules ?? {}).join(", ")
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
const client = new FreestyleSandboxes({
|
|
@@ -30,7 +30,7 @@ export const executeTool = (
|
|
|
30
30
|
z.object({
|
|
31
31
|
message: z.string(),
|
|
32
32
|
type: z.string(),
|
|
33
|
-
})
|
|
33
|
+
})
|
|
34
34
|
),
|
|
35
35
|
result: z.unknown(),
|
|
36
36
|
}),
|