agent-neckbeard 1.1.3 → 1.1.4
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/index.cjs +5 -3
- package/dist/index.js +5 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -44,7 +44,9 @@ var import_node_url = require("url");
|
|
|
44
44
|
var import_node_fs = require("fs");
|
|
45
45
|
var import_node_path = require("path");
|
|
46
46
|
var import_node_module = require("module");
|
|
47
|
-
|
|
47
|
+
function readPackageJson(path) {
|
|
48
|
+
return JSON.parse((0, import_node_fs.readFileSync)(path, "utf8"));
|
|
49
|
+
}
|
|
48
50
|
var getEsbuild = () => import("esbuild");
|
|
49
51
|
var getE2b = () => import("e2b");
|
|
50
52
|
var getDaytona = () => import("@daytona/sdk");
|
|
@@ -131,7 +133,7 @@ async function resolvePackageInfo(importPath, resolveDir) {
|
|
|
131
133
|
while (true) {
|
|
132
134
|
const candidate = (0, import_node_path.join)(root, "package.json");
|
|
133
135
|
if ((0, import_node_fs.existsSync)(candidate)) {
|
|
134
|
-
const candidatePackageJson =
|
|
136
|
+
const candidatePackageJson = readPackageJson(candidate);
|
|
135
137
|
if (candidatePackageJson.name === packageName) {
|
|
136
138
|
packageJsonPath = candidate;
|
|
137
139
|
break;
|
|
@@ -142,7 +144,7 @@ async function resolvePackageInfo(importPath, resolveDir) {
|
|
|
142
144
|
root = parent;
|
|
143
145
|
}
|
|
144
146
|
if (!packageJsonPath) return null;
|
|
145
|
-
const packageJson =
|
|
147
|
+
const packageJson = readPackageJson(packageJsonPath);
|
|
146
148
|
if (!packageJson.name || !packageJson.version) return null;
|
|
147
149
|
root = (0, import_node_path.dirname)(packageJsonPath);
|
|
148
150
|
return {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,9 @@ import { fileURLToPath } from "url";
|
|
|
3
3
|
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
|
4
4
|
import { dirname, join, relative, resolve } from "path";
|
|
5
5
|
import { builtinModules, createRequire } from "module";
|
|
6
|
-
|
|
6
|
+
function readPackageJson(path) {
|
|
7
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
8
|
+
}
|
|
7
9
|
var getEsbuild = () => import("esbuild");
|
|
8
10
|
var getE2b = () => import("e2b");
|
|
9
11
|
var getDaytona = () => import("@daytona/sdk");
|
|
@@ -90,7 +92,7 @@ async function resolvePackageInfo(importPath, resolveDir) {
|
|
|
90
92
|
while (true) {
|
|
91
93
|
const candidate = join(root, "package.json");
|
|
92
94
|
if (existsSync(candidate)) {
|
|
93
|
-
const candidatePackageJson =
|
|
95
|
+
const candidatePackageJson = readPackageJson(candidate);
|
|
94
96
|
if (candidatePackageJson.name === packageName) {
|
|
95
97
|
packageJsonPath = candidate;
|
|
96
98
|
break;
|
|
@@ -101,7 +103,7 @@ async function resolvePackageInfo(importPath, resolveDir) {
|
|
|
101
103
|
root = parent;
|
|
102
104
|
}
|
|
103
105
|
if (!packageJsonPath) return null;
|
|
104
|
-
const packageJson =
|
|
106
|
+
const packageJson = readPackageJson(packageJsonPath);
|
|
105
107
|
if (!packageJson.name || !packageJson.version) return null;
|
|
106
108
|
root = dirname(packageJsonPath);
|
|
107
109
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-neckbeard",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Deploy AI agents to E2B and Daytona sandboxes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"test:e2e": "npm run build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.e2e.config.mjs --runInBand",
|
|
34
34
|
"test:e2e:e2b": "npm run build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.e2e.config.mjs --runInBand --testNamePattern=\"live E2B smoke tests\"",
|
|
35
35
|
"test:e2e:daytona": "npm run build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.e2e.config.mjs --runInBand --testNamePattern=\"live Daytona smoke tests\"",
|
|
36
|
+
"test:cjs": "npm run build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config jest.config.mjs --testPathPattern=cjs-build",
|
|
36
37
|
"typecheck": "tsc --noEmit -p tsconfig.test.json",
|
|
37
38
|
"prepare": "npm run build"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@daytona/sdk": "^0.164.0",
|
|
41
42
|
"e2b": "^2.2.0",
|
|
42
|
-
"esbuild": "^0.24.0"
|
|
43
|
-
"pkg-types": "^2.3.0"
|
|
43
|
+
"esbuild": "^0.24.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"zod": "^3.0.0 || ^4.0.0"
|