freestyle-sandboxes 0.0.96 → 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.
Files changed (69) hide show
  1. package/README.md +39 -48
  2. package/index.cjs +4362 -0
  3. package/index.d.cts +9401 -0
  4. package/index.d.mts +9401 -0
  5. package/index.mjs +4348 -0
  6. package/package.json +16 -109
  7. package/dist/ai/inde.d.cts +0 -75
  8. package/dist/ai/inde.d.mts +0 -75
  9. package/dist/ai/index.cjs +0 -13
  10. package/dist/ai/index.d.cts +0 -75
  11. package/dist/ai/index.d.mts +0 -75
  12. package/dist/ai/index.mjs +0 -4
  13. package/dist/expo/inde.d.cts +0 -6
  14. package/dist/expo/inde.d.mts +0 -6
  15. package/dist/expo/index.cjs +0 -319
  16. package/dist/expo/index.d.cts +0 -6
  17. package/dist/expo/index.d.mts +0 -6
  18. package/dist/expo/index.mjs +0 -297
  19. package/dist/inde.d.cts +0 -373
  20. package/dist/inde.d.mts +0 -373
  21. package/dist/index-BKAG8L-o.mjs +0 -3061
  22. package/dist/index-DuOpIaWc.cjs +0 -3068
  23. package/dist/index.cjs +0 -1329
  24. package/dist/index.d-9H_wnIbz.d.ts +0 -4223
  25. package/dist/index.d.cts +0 -373
  26. package/dist/index.d.mts +0 -373
  27. package/dist/index.mjs +0 -1327
  28. package/dist/langgraph/inde.d.cts +0 -4180
  29. package/dist/langgraph/inde.d.mts +0 -4180
  30. package/dist/langgraph/index.cjs +0 -17155
  31. package/dist/langgraph/index.d.cts +0 -4180
  32. package/dist/langgraph/index.d.mts +0 -4180
  33. package/dist/langgraph/index.mjs +0 -17153
  34. package/dist/mastra/inde.d.cts +0 -2623
  35. package/dist/mastra/inde.d.mts +0 -2623
  36. package/dist/mastra/index.cjs +0 -55
  37. package/dist/mastra/index.d.cts +0 -2623
  38. package/dist/mastra/index.d.mts +0 -2623
  39. package/dist/mastra/index.mjs +0 -53
  40. package/dist/react/dev-server/index..d.cts +0 -33
  41. package/dist/react/dev-server/index..d.mts +0 -33
  42. package/dist/react/dev-server/index.cjs +0 -148
  43. package/dist/react/dev-server/index.d.cts +0 -33
  44. package/dist/react/dev-server/index.d.mts +0 -33
  45. package/dist/react/dev-server/index.mjs +0 -145
  46. package/dist/types.gen-CJa21P0C.d.ts +0 -1902
  47. package/dist/types.gen-DKjMRuu5.d.ts +0 -1898
  48. package/dist/utils/inde.d.cts +0 -10
  49. package/dist/utils/inde.d.mts +0 -10
  50. package/dist/utils/index.cjs +0 -100
  51. package/dist/utils/index.d.cts +0 -10
  52. package/dist/utils/index.d.mts +0 -10
  53. package/dist/utils/index.mjs +0 -75
  54. package/openapi/index.ts +0 -3
  55. package/openapi/sdk.gen.ts +0 -929
  56. package/openapi/types.gen.ts +0 -2234
  57. package/openapi-ts.config.ts +0 -7
  58. package/openapi.json +0 -1
  59. package/src/ai/index.ts +0 -164
  60. package/src/dev-server.ts +0 -95
  61. package/src/expo/_expo_internals.ts +0 -389
  62. package/src/expo/index.ts +0 -26
  63. package/src/index.ts +0 -1459
  64. package/src/langgraph/index.ts +0 -33
  65. package/src/mastra/index.ts +0 -38
  66. package/src/react/dev-server/index.tsx +0 -195
  67. package/src/react/dev-server/types.ts +0 -5
  68. package/src/utils/index.ts +0 -97
  69. package/tsconfig.json +0 -8
@@ -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 };
@@ -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 };
@@ -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;
@@ -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 };
@@ -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 };
@@ -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
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export * from './sdk.gen';
3
- export * from './types.gen';