agent-yes 1.60.2 → 1.60.3
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.
|
@@ -902,7 +902,7 @@ function tryCatch(catchFn, fn) {
|
|
|
902
902
|
//#endregion
|
|
903
903
|
//#region package.json
|
|
904
904
|
var name = "agent-yes";
|
|
905
|
-
var version = "1.60.
|
|
905
|
+
var version = "1.60.3";
|
|
906
906
|
|
|
907
907
|
//#endregion
|
|
908
908
|
//#region ts/pty-fix.ts
|
|
@@ -1264,7 +1264,7 @@ const globalAgentRegistry = new AgentRegistry();
|
|
|
1264
1264
|
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region ts/installEnv.ts
|
|
1267
|
-
const installDir = path$1.join(import.meta.dir, "..");
|
|
1267
|
+
const installDir = path$1.join(import.meta.dirname ?? import.meta.dir, "..");
|
|
1268
1268
|
function parseEnvContent(content) {
|
|
1269
1269
|
const result = {};
|
|
1270
1270
|
for (const line of content.split("\n")) {
|
|
@@ -1949,4 +1949,4 @@ const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
|
|
|
1949
1949
|
|
|
1950
1950
|
//#endregion
|
|
1951
1951
|
export { AgentContext as a, PidStore as c, config as i, removeControlCharacters as l, CLIS_CONFIG as n, name as o, agentYes as r, version as s, SUPPORTED_CLIS as t };
|
|
1952
|
-
//# sourceMappingURL=SUPPORTED_CLIS-
|
|
1952
|
+
//# sourceMappingURL=SUPPORTED_CLIS-BHDvBHvX.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
2
|
+
import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BHDvBHvX.js";
|
|
3
3
|
import "./agent-yes.config-B-sre0vp.js";
|
|
4
4
|
import { t as logger } from "./logger-CY9ormLF.js";
|
|
5
5
|
import { argv } from "process";
|
|
@@ -262,7 +262,7 @@ function getBinaryName() {
|
|
|
262
262
|
* Get the directory where binaries are stored
|
|
263
263
|
*/
|
|
264
264
|
function getBinDir() {
|
|
265
|
-
const packageBinDir = path.resolve(import.meta.dir, "../bin");
|
|
265
|
+
const packageBinDir = path.resolve(import.meta.dirname ?? import.meta.dir, "../bin");
|
|
266
266
|
if (existsSync(packageBinDir)) return packageBinDir;
|
|
267
267
|
const cacheDir = process.env.AGENT_YES_CACHE_DIR || path.join(process.env.XDG_CACHE_HOME || path.join(process.env.HOME || "/tmp", ".cache"), "agent-yes");
|
|
268
268
|
return path.join(cacheDir, "bin");
|
|
@@ -275,8 +275,8 @@ function findRustBinary(verbose = false) {
|
|
|
275
275
|
binaryName.replace(/\.exe$/, "");
|
|
276
276
|
const searchPaths = [
|
|
277
277
|
path.join(getBinDir(), binaryName),
|
|
278
|
-
path.resolve(import.meta.dir, "../rs/target/release/agent-yes"),
|
|
279
|
-
path.resolve(import.meta.dir, "../rs/target/debug/agent-yes"),
|
|
278
|
+
path.resolve(import.meta.dirname ?? import.meta.dir, "../rs/target/release/agent-yes"),
|
|
279
|
+
path.resolve(import.meta.dirname ?? import.meta.dir, "../rs/target/debug/agent-yes"),
|
|
280
280
|
path.join(getBinDir(), binaryName)
|
|
281
281
|
];
|
|
282
282
|
if (verbose) {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-
|
|
1
|
+
import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-BHDvBHvX.js";
|
|
2
2
|
import "./logger-CY9ormLF.js";
|
|
3
3
|
|
|
4
4
|
export { AgentContext, CLIS_CONFIG, config, agentYes as default, removeControlCharacters };
|
package/package.json
CHANGED
package/ts/installEnv.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { readFile } from "node:fs/promises";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
// Install dir is one level up from this file (ts/ -> package root)
|
|
5
|
-
|
|
5
|
+
// import.meta.dirname works in Node >=21 and Bun; import.meta.dir is Bun-only
|
|
6
|
+
const installDir = path.join(import.meta.dirname ?? import.meta.dir, "..");
|
|
6
7
|
|
|
7
8
|
function parseEnvContent(content: string): Record<string, string> {
|
|
8
9
|
const result: Record<string, string> = {};
|
package/ts/rustBinary.ts
CHANGED
|
@@ -39,7 +39,7 @@ export function getBinaryName(): string {
|
|
|
39
39
|
*/
|
|
40
40
|
export function getBinDir(): string {
|
|
41
41
|
// First check for binaries in the npm package
|
|
42
|
-
const packageBinDir = path.resolve(import.meta.dir, "../bin");
|
|
42
|
+
const packageBinDir = path.resolve(import.meta.dirname ?? import.meta.dir, "../bin");
|
|
43
43
|
if (existsSync(packageBinDir)) {
|
|
44
44
|
return packageBinDir;
|
|
45
45
|
}
|
|
@@ -67,8 +67,8 @@ export function findRustBinary(verbose = false): string | undefined {
|
|
|
67
67
|
path.join(getBinDir(), binaryName),
|
|
68
68
|
|
|
69
69
|
// 2. Check relative to this script (in the repo during development)
|
|
70
|
-
path.resolve(import.meta.dir, "../rs/target/release/agent-yes"),
|
|
71
|
-
path.resolve(import.meta.dir, "../rs/target/debug/agent-yes"),
|
|
70
|
+
path.resolve(import.meta.dirname ?? import.meta.dir, "../rs/target/release/agent-yes"),
|
|
71
|
+
path.resolve(import.meta.dirname ?? import.meta.dir, "../rs/target/debug/agent-yes"),
|
|
72
72
|
|
|
73
73
|
// 3. Check in user's cache directory
|
|
74
74
|
path.join(getBinDir(), binaryName),
|