@botbotgo/agent-harness 0.0.73 → 0.0.74
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 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.73";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.73";
|
package/dist/resource/sources.js
CHANGED
|
@@ -67,6 +67,7 @@ async function packAndExtract(packageSpec, cacheKey) {
|
|
|
67
67
|
const root = sourceCacheDir(cacheKey);
|
|
68
68
|
const extractRoot = path.join(root, "extract");
|
|
69
69
|
const packageRoot = path.join(extractRoot, "package");
|
|
70
|
+
const npmCacheRoot = path.join(root, ".npm-cache");
|
|
70
71
|
const tarballMarker = path.join(root, ".tarball-path");
|
|
71
72
|
if (existsSync(path.join(packageRoot, "package.json"))) {
|
|
72
73
|
const tarballPath = existsSync(tarballMarker) ? (await readFile(tarballMarker, "utf8")).trim() : undefined;
|
|
@@ -77,9 +78,14 @@ async function packAndExtract(packageSpec, cacheKey) {
|
|
|
77
78
|
}
|
|
78
79
|
await mkdir(root, { recursive: true });
|
|
79
80
|
await mkdir(extractRoot, { recursive: true });
|
|
81
|
+
await mkdir(npmCacheRoot, { recursive: true });
|
|
80
82
|
const packed = await execFileAsync("npm", ["pack", packageSpec, "--silent"], {
|
|
81
83
|
cwd: root,
|
|
82
84
|
maxBuffer: 1024 * 1024 * 10,
|
|
85
|
+
env: {
|
|
86
|
+
...process.env,
|
|
87
|
+
NPM_CONFIG_CACHE: npmCacheRoot,
|
|
88
|
+
},
|
|
83
89
|
});
|
|
84
90
|
const tarballName = packed.stdout.trim().split(/\r?\n/).filter(Boolean).at(-1);
|
|
85
91
|
if (!tarballName) {
|