freestyle-sandboxes 0.0.97 → 0.1.0
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/README.md +39 -48
- package/index.cjs +4362 -0
- package/index.d.cts +9401 -0
- package/index.d.mts +9401 -0
- package/index.mjs +4348 -0
- package/package.json +16 -109
- package/dist/ai/inde.d.cts +0 -75
- package/dist/ai/inde.d.mts +0 -75
- package/dist/ai/index.cjs +0 -13
- package/dist/ai/index.d.cts +0 -75
- package/dist/ai/index.d.mts +0 -75
- package/dist/ai/index.mjs +0 -4
- package/dist/expo/inde.d.cts +0 -6
- package/dist/expo/inde.d.mts +0 -6
- package/dist/expo/index.cjs +0 -319
- package/dist/expo/index.d.cts +0 -6
- package/dist/expo/index.d.mts +0 -6
- package/dist/expo/index.mjs +0 -297
- package/dist/inde.d.cts +0 -373
- package/dist/inde.d.mts +0 -373
- package/dist/index-BKAG8L-o.mjs +0 -3061
- package/dist/index-DuOpIaWc.cjs +0 -3068
- package/dist/index.cjs +0 -1329
- package/dist/index.d-9H_wnIbz.d.ts +0 -4223
- package/dist/index.d.cts +0 -373
- package/dist/index.d.mts +0 -373
- package/dist/index.mjs +0 -1327
- package/dist/langgraph/inde.d.cts +0 -4180
- package/dist/langgraph/inde.d.mts +0 -4180
- package/dist/langgraph/index.cjs +0 -17155
- package/dist/langgraph/index.d.cts +0 -4180
- package/dist/langgraph/index.d.mts +0 -4180
- package/dist/langgraph/index.mjs +0 -17153
- package/dist/mastra/inde.d.cts +0 -2623
- package/dist/mastra/inde.d.mts +0 -2623
- package/dist/mastra/index.cjs +0 -55
- package/dist/mastra/index.d.cts +0 -2623
- package/dist/mastra/index.d.mts +0 -2623
- package/dist/mastra/index.mjs +0 -53
- package/dist/react/dev-server/index..d.cts +0 -33
- package/dist/react/dev-server/index..d.mts +0 -33
- package/dist/react/dev-server/index.cjs +0 -148
- package/dist/react/dev-server/index.d.cts +0 -33
- package/dist/react/dev-server/index.d.mts +0 -33
- package/dist/react/dev-server/index.mjs +0 -145
- package/dist/types.gen-CJa21P0C.d.ts +0 -1902
- package/dist/types.gen-DKjMRuu5.d.ts +0 -1898
- package/dist/utils/inde.d.cts +0 -10
- package/dist/utils/inde.d.mts +0 -10
- package/dist/utils/index.cjs +0 -100
- package/dist/utils/index.d.cts +0 -10
- package/dist/utils/index.d.mts +0 -10
- package/dist/utils/index.mjs +0 -75
- package/openapi/index.ts +0 -3
- package/openapi/sdk.gen.ts +0 -929
- package/openapi/types.gen.ts +0 -2234
- package/openapi-ts.config.ts +0 -7
- package/openapi.json +0 -1
- package/src/ai/index.ts +0 -164
- package/src/dev-server.ts +0 -95
- package/src/expo/_expo_internals.ts +0 -389
- package/src/expo/index.ts +0 -26
- package/src/index.ts +0 -1459
- package/src/langgraph/index.ts +0 -33
- package/src/mastra/index.ts +0 -38
- package/src/react/dev-server/index.tsx +0 -195
- package/src/react/dev-server/types.ts +0 -5
- package/src/utils/index.ts +0 -97
- package/tsconfig.json +0 -8
package/dist/utils/inde.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-CJa21P0C.js';
|
|
2
|
-
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
5
|
-
/**
|
|
6
|
-
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
7
|
-
*/
|
|
8
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
9
|
-
|
|
10
|
-
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/inde.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-CJa21P0C.js';
|
|
2
|
-
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
5
|
-
/**
|
|
6
|
-
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
7
|
-
*/
|
|
8
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
9
|
-
|
|
10
|
-
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/index.cjs
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var glob = require('glob');
|
|
4
|
-
var fs = require('fs/promises');
|
|
5
|
-
var require$$0 = require('fs');
|
|
6
|
-
var path = require('path');
|
|
7
|
-
|
|
8
|
-
function _interopNamespaceDefault(e) {
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n.default = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
26
|
-
var require$$0__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$0);
|
|
27
|
-
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
28
|
-
|
|
29
|
-
const prepareDirForDeployment = async (directory) => {
|
|
30
|
-
const files = {};
|
|
31
|
-
const patterns = await glob.glob("**/*", {
|
|
32
|
-
cwd: directory,
|
|
33
|
-
nodir: true,
|
|
34
|
-
ignore: ["**/node_modules/**"],
|
|
35
|
-
absolute: false,
|
|
36
|
-
dot: true,
|
|
37
|
-
posix: true
|
|
38
|
-
});
|
|
39
|
-
for (const relativePath of patterns) {
|
|
40
|
-
try {
|
|
41
|
-
const filePath = path__namespace.join(directory, relativePath);
|
|
42
|
-
const content = await fs__namespace.readFile(filePath, "base64");
|
|
43
|
-
files[relativePath] = {
|
|
44
|
-
content,
|
|
45
|
-
encoding: "base64"
|
|
46
|
-
};
|
|
47
|
-
} catch (error) {
|
|
48
|
-
console.error(`Error reading file ${relativePath}:`, error);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
kind: "files",
|
|
53
|
-
files
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
const prepareDirForDeploymentSync = (directory) => {
|
|
57
|
-
const files = {};
|
|
58
|
-
const patterns = glob.globSync("**/*", {
|
|
59
|
-
cwd: directory,
|
|
60
|
-
nodir: true,
|
|
61
|
-
ignore: ["**/node_modules/**"],
|
|
62
|
-
absolute: false,
|
|
63
|
-
dot: true,
|
|
64
|
-
posix: true
|
|
65
|
-
});
|
|
66
|
-
for (const relativePath of patterns) {
|
|
67
|
-
try {
|
|
68
|
-
const filePath = path__namespace.join(directory, relativePath);
|
|
69
|
-
const content = require$$0__namespace.readFileSync(filePath, "base64");
|
|
70
|
-
files[relativePath] = {
|
|
71
|
-
content,
|
|
72
|
-
encoding: "base64"
|
|
73
|
-
};
|
|
74
|
-
} catch (error) {
|
|
75
|
-
console.error(`Error reading file ${relativePath}:`, error);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
kind: "files",
|
|
80
|
-
files
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
const prepareNextJsForDeployment = async (directory) => {
|
|
84
|
-
const publicDir = path__namespace.join(directory, "public");
|
|
85
|
-
const nextPublicDestination = path__namespace.join(directory, ".next/standalone/public");
|
|
86
|
-
const staticDir = path__namespace.join(directory, ".next/static");
|
|
87
|
-
const nextStaticDestination = path__namespace.join(
|
|
88
|
-
directory,
|
|
89
|
-
".next/standalone/.next/static"
|
|
90
|
-
);
|
|
91
|
-
await fs__namespace.mkdir(nextPublicDestination, { recursive: true });
|
|
92
|
-
await fs__namespace.copyFile(publicDir, nextPublicDestination);
|
|
93
|
-
await fs__namespace.mkdir(nextStaticDestination, { recursive: true });
|
|
94
|
-
await fs__namespace.copyFile(staticDir, nextStaticDestination);
|
|
95
|
-
return await prepareDirForDeployment(directory);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
exports.prepareDirForDeployment = prepareDirForDeployment;
|
|
99
|
-
exports.prepareDirForDeploymentSync = prepareDirForDeploymentSync;
|
|
100
|
-
exports.prepareNextJsForDeployment = prepareNextJsForDeployment;
|
package/dist/utils/index.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-CJa21P0C.js';
|
|
2
|
-
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
5
|
-
/**
|
|
6
|
-
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
7
|
-
*/
|
|
8
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
9
|
-
|
|
10
|
-
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/index.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-CJa21P0C.js';
|
|
2
|
-
|
|
3
|
-
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
|
-
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
|
5
|
-
/**
|
|
6
|
-
* This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
|
|
7
|
-
*/
|
|
8
|
-
declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
9
|
-
|
|
10
|
-
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/dist/utils/index.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { glob, globSync } from 'glob';
|
|
2
|
-
import * as fs from 'fs/promises';
|
|
3
|
-
import * as require$$0 from 'fs';
|
|
4
|
-
import * as path from 'path';
|
|
5
|
-
|
|
6
|
-
const prepareDirForDeployment = async (directory) => {
|
|
7
|
-
const files = {};
|
|
8
|
-
const patterns = await glob("**/*", {
|
|
9
|
-
cwd: directory,
|
|
10
|
-
nodir: true,
|
|
11
|
-
ignore: ["**/node_modules/**"],
|
|
12
|
-
absolute: false,
|
|
13
|
-
dot: true,
|
|
14
|
-
posix: true
|
|
15
|
-
});
|
|
16
|
-
for (const relativePath of patterns) {
|
|
17
|
-
try {
|
|
18
|
-
const filePath = path.join(directory, relativePath);
|
|
19
|
-
const content = await fs.readFile(filePath, "base64");
|
|
20
|
-
files[relativePath] = {
|
|
21
|
-
content,
|
|
22
|
-
encoding: "base64"
|
|
23
|
-
};
|
|
24
|
-
} catch (error) {
|
|
25
|
-
console.error(`Error reading file ${relativePath}:`, error);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
kind: "files",
|
|
30
|
-
files
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
const prepareDirForDeploymentSync = (directory) => {
|
|
34
|
-
const files = {};
|
|
35
|
-
const patterns = globSync("**/*", {
|
|
36
|
-
cwd: directory,
|
|
37
|
-
nodir: true,
|
|
38
|
-
ignore: ["**/node_modules/**"],
|
|
39
|
-
absolute: false,
|
|
40
|
-
dot: true,
|
|
41
|
-
posix: true
|
|
42
|
-
});
|
|
43
|
-
for (const relativePath of patterns) {
|
|
44
|
-
try {
|
|
45
|
-
const filePath = path.join(directory, relativePath);
|
|
46
|
-
const content = require$$0.readFileSync(filePath, "base64");
|
|
47
|
-
files[relativePath] = {
|
|
48
|
-
content,
|
|
49
|
-
encoding: "base64"
|
|
50
|
-
};
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.error(`Error reading file ${relativePath}:`, error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
kind: "files",
|
|
57
|
-
files
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
const prepareNextJsForDeployment = async (directory) => {
|
|
61
|
-
const publicDir = path.join(directory, "public");
|
|
62
|
-
const nextPublicDestination = path.join(directory, ".next/standalone/public");
|
|
63
|
-
const staticDir = path.join(directory, ".next/static");
|
|
64
|
-
const nextStaticDestination = path.join(
|
|
65
|
-
directory,
|
|
66
|
-
".next/standalone/.next/static"
|
|
67
|
-
);
|
|
68
|
-
await fs.mkdir(nextPublicDestination, { recursive: true });
|
|
69
|
-
await fs.copyFile(publicDir, nextPublicDestination);
|
|
70
|
-
await fs.mkdir(nextStaticDestination, { recursive: true });
|
|
71
|
-
await fs.copyFile(staticDir, nextStaticDestination);
|
|
72
|
-
return await prepareDirForDeployment(directory);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
|
package/openapi/index.ts
DELETED