freestyle-sandboxes 0.0.34 → 0.0.36

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.
@@ -1,10 +1,28 @@
1
- import { createTool } from '@mastra/core';
2
1
  import { z } from 'zod';
3
- import { executeCodeDescription, executeCodeSchema } from '../ai/index.mjs';
2
+ import { e as executeCodeDescription, a as executeCodeSchema } from '../index-BQHqnjZK.mjs';
4
3
  import { FreestyleSandboxes } from '../index.mjs';
5
- import 'ai';
6
4
  import '@hey-api/client-fetch';
7
5
 
6
+ var Tool = class {
7
+ id;
8
+ description;
9
+ inputSchema;
10
+ outputSchema;
11
+ execute;
12
+ mastra;
13
+ constructor(opts) {
14
+ this.id = opts.id;
15
+ this.description = opts.description;
16
+ this.inputSchema = opts.inputSchema;
17
+ this.outputSchema = opts.outputSchema;
18
+ this.execute = opts.execute;
19
+ this.mastra = opts.mastra;
20
+ }
21
+ };
22
+ function createTool(opts) {
23
+ return new Tool(opts);
24
+ }
25
+
8
26
  const executeTool = (config) => {
9
27
  const description = executeCodeDescription(
10
28
  Object.keys(config.envVars ?? {}).join(", "),
@@ -2,7 +2,7 @@
2
2
 
3
3
  var glob = require('glob');
4
4
  var fs = require('fs/promises');
5
- var fsSync = require('fs');
5
+ var require$$0 = require('fs');
6
6
  var path = require('path');
7
7
 
8
8
  function _interopNamespaceDefault(e) {
@@ -23,7 +23,7 @@ function _interopNamespaceDefault(e) {
23
23
  }
24
24
 
25
25
  var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
26
- var fsSync__namespace = /*#__PURE__*/_interopNamespaceDefault(fsSync);
26
+ var require$$0__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$0);
27
27
  var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
28
28
 
29
29
  const prepareDirForDeployment = async (directory) => {
@@ -32,7 +32,8 @@ const prepareDirForDeployment = async (directory) => {
32
32
  cwd: directory,
33
33
  nodir: true,
34
34
  ignore: ["**/node_modules/**"],
35
- absolute: false
35
+ absolute: false,
36
+ dot: true
36
37
  });
37
38
  for (const relativePath of patterns) {
38
39
  try {
@@ -57,12 +58,13 @@ const prepareDirForDeploymentSync = (directory) => {
57
58
  cwd: directory,
58
59
  nodir: true,
59
60
  ignore: ["**/node_modules/**"],
60
- absolute: false
61
+ absolute: false,
62
+ dot: true
61
63
  });
62
64
  for (const relativePath of patterns) {
63
65
  try {
64
66
  const filePath = path__namespace.join(directory, relativePath);
65
- const content = fsSync__namespace.readFileSync(filePath, "base64");
67
+ const content = require$$0__namespace.readFileSync(filePath, "base64");
66
68
  files[relativePath] = {
67
69
  content,
68
70
  encoding: "base64"
@@ -1,6 +1,6 @@
1
1
  import { glob, globSync } from 'glob';
2
2
  import * as fs from 'fs/promises';
3
- import * as fsSync from 'fs';
3
+ import * as require$$0 from 'fs';
4
4
  import * as path from 'path';
5
5
 
6
6
  const prepareDirForDeployment = async (directory) => {
@@ -9,7 +9,8 @@ const prepareDirForDeployment = async (directory) => {
9
9
  cwd: directory,
10
10
  nodir: true,
11
11
  ignore: ["**/node_modules/**"],
12
- absolute: false
12
+ absolute: false,
13
+ dot: true
13
14
  });
14
15
  for (const relativePath of patterns) {
15
16
  try {
@@ -34,12 +35,13 @@ const prepareDirForDeploymentSync = (directory) => {
34
35
  cwd: directory,
35
36
  nodir: true,
36
37
  ignore: ["**/node_modules/**"],
37
- absolute: false
38
+ absolute: false,
39
+ dot: true
38
40
  });
39
41
  for (const relativePath of patterns) {
40
42
  try {
41
43
  const filePath = path.join(directory, relativePath);
42
- const content = fsSync.readFileSync(filePath, "base64");
44
+ const content = require$$0.readFileSync(filePath, "base64");
43
45
  files[relativePath] = {
44
46
  content,
45
47
  encoding: "base64"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -67,16 +67,16 @@
67
67
  "description": "",
68
68
  "devDependencies": {
69
69
  "@hey-api/openapi-ts": "^0.60.1",
70
- "pkgroll": "^2.6.0"
71
- },
72
- "dependencies": {
73
- "@hey-api/client-fetch": "^0.5.7",
70
+ "pkgroll": "^2.6.0",
74
71
  "@langchain/core": "^0.3.38",
75
72
  "@langchain/langgraph": "^0.2.44",
76
73
  "@mastra/core": "^0.6.0",
77
74
  "ai": "^4.0.25",
75
+ "humanlayer": "^0.7.0"
76
+ },
77
+ "dependencies": {
78
+ "@hey-api/client-fetch": "^0.5.7",
78
79
  "glob": "^11.0.1",
79
- "humanlayer": "^0.7.0",
80
80
  "openai": "^4.77.3",
81
81
  "openapi": "^1.0.1",
82
82
  "zod": "^3.24.1"
@@ -14,6 +14,7 @@ export const prepareDirForDeployment = async (
14
14
  nodir: true,
15
15
  ignore: ["**/node_modules/**"],
16
16
  absolute: false,
17
+ dot: true,
17
18
  });
18
19
 
19
20
  for (const relativePath of patterns) {
@@ -45,6 +46,7 @@ export const prepareDirForDeploymentSync = (
45
46
  nodir: true,
46
47
  ignore: ["**/node_modules/**"],
47
48
  absolute: false,
49
+ dot: true,
48
50
  });
49
51
 
50
52
  for (const relativePath of patterns) {