open-agents-ai 0.187.391 → 0.187.392
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.js +94 -47
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -124793,7 +124793,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
124793
124793
|
"../../../node_modules/undici/lib/mock/snapshot-recorder.js"(exports, module) {
|
|
124794
124794
|
"use strict";
|
|
124795
124795
|
var { writeFile: writeFile21, readFile: readFile22, mkdir: mkdir16 } = __require("node:fs/promises");
|
|
124796
|
-
var { dirname:
|
|
124796
|
+
var { dirname: dirname34, resolve: resolve41 } = __require("node:path");
|
|
124797
124797
|
var { setTimeout: setTimeout3, clearTimeout: clearTimeout3 } = __require("node:timers");
|
|
124798
124798
|
var { InvalidArgumentError, UndiciError } = require_errors2();
|
|
124799
124799
|
var { hashId, isUrlExcludedFactory, normalizeHeaders, createHeaderFilters } = require_snapshot_utils();
|
|
@@ -125024,7 +125024,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
125024
125024
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
125025
125025
|
}
|
|
125026
125026
|
const resolvedPath = resolve41(path5);
|
|
125027
|
-
await mkdir16(
|
|
125027
|
+
await mkdir16(dirname34(resolvedPath), { recursive: true });
|
|
125028
125028
|
const data = Array.from(this.#snapshots.entries()).map(([hash, snapshot]) => ({
|
|
125029
125029
|
hash,
|
|
125030
125030
|
snapshot
|
|
@@ -238674,15 +238674,15 @@ var init_ls = __esm({
|
|
|
238674
238674
|
});
|
|
238675
238675
|
|
|
238676
238676
|
// ../../../node_modules/@helia/unixfs/dist/src/commands/mkdir.js
|
|
238677
|
-
async function mkdir5(parentCid,
|
|
238678
|
-
if (
|
|
238677
|
+
async function mkdir5(parentCid, dirname34, blockstore, options2 = {}) {
|
|
238678
|
+
if (dirname34.includes("/")) {
|
|
238679
238679
|
throw new InvalidParametersError4("Path must not have slashes");
|
|
238680
238680
|
}
|
|
238681
238681
|
const entry = await exporter2(parentCid, blockstore, options2);
|
|
238682
238682
|
if (entry.type !== "directory") {
|
|
238683
238683
|
throw new NotADirectoryError(`${parentCid.toString()} was not a UnixFS directory`);
|
|
238684
238684
|
}
|
|
238685
|
-
log16("creating %s",
|
|
238685
|
+
log16("creating %s", dirname34);
|
|
238686
238686
|
const metadata = new UnixFS({
|
|
238687
238687
|
type: "directory",
|
|
238688
238688
|
mode: options2.mode,
|
|
@@ -238698,9 +238698,9 @@ async function mkdir5(parentCid, dirname33, blockstore, options2 = {}) {
|
|
|
238698
238698
|
await blockstore.put(emptyDirCid, buf);
|
|
238699
238699
|
const [directory, pblink] = await Promise.all([
|
|
238700
238700
|
cidToDirectory(parentCid, blockstore, options2),
|
|
238701
|
-
cidToPBLink(emptyDirCid,
|
|
238701
|
+
cidToPBLink(emptyDirCid, dirname34, blockstore, options2)
|
|
238702
238702
|
]);
|
|
238703
|
-
log16("adding empty dir called %s to %c",
|
|
238703
|
+
log16("adding empty dir called %s to %c", dirname34, parentCid);
|
|
238704
238704
|
const result = await addLink(directory, pblink, blockstore, {
|
|
238705
238705
|
...options2,
|
|
238706
238706
|
allowOverwriting: options2.force
|
|
@@ -239199,8 +239199,8 @@ var init_unixfs2 = __esm({
|
|
|
239199
239199
|
async *ls(cid, options2 = {}) {
|
|
239200
239200
|
yield* ls(cid, this.components.blockstore, options2);
|
|
239201
239201
|
}
|
|
239202
|
-
async mkdir(cid,
|
|
239203
|
-
return mkdir5(cid,
|
|
239202
|
+
async mkdir(cid, dirname34, options2 = {}) {
|
|
239203
|
+
return mkdir5(cid, dirname34, this.components.blockstore, options2);
|
|
239204
239204
|
}
|
|
239205
239205
|
async rm(cid, path5, options2 = {}) {
|
|
239206
239206
|
return rm2(cid, path5, this.components.blockstore, options2);
|
|
@@ -470995,7 +470995,7 @@ var require_path_browserify = __commonJS({
|
|
|
470995
470995
|
_makeLong: function _makeLong(path5) {
|
|
470996
470996
|
return path5;
|
|
470997
470997
|
},
|
|
470998
|
-
dirname: function
|
|
470998
|
+
dirname: function dirname34(path5) {
|
|
470999
470999
|
assertPath(path5);
|
|
471000
471000
|
if (path5.length === 0) return ".";
|
|
471001
471001
|
var code8 = path5.charCodeAt(0);
|
|
@@ -529597,22 +529597,68 @@ __export(oa_directory_exports, {
|
|
|
529597
529597
|
writeIndexMeta: () => writeIndexMeta
|
|
529598
529598
|
});
|
|
529599
529599
|
import { existsSync as existsSync57, mkdirSync as mkdirSync32, readFileSync as readFileSync44, writeFileSync as writeFileSync29, readdirSync as readdirSync14, statSync as statSync17, unlinkSync as unlinkSync14, openSync as openSync2, closeSync as closeSync2 } from "node:fs";
|
|
529600
|
-
import { join as join75, relative as relative6, basename as basename13 } from "node:path";
|
|
529600
|
+
import { join as join75, relative as relative6, basename as basename13, dirname as dirname22 } from "node:path";
|
|
529601
529601
|
import { homedir as homedir25 } from "node:os";
|
|
529602
|
+
function findGitRoot(startDir) {
|
|
529603
|
+
let dir = startDir;
|
|
529604
|
+
const visited = /* @__PURE__ */ new Set();
|
|
529605
|
+
while (dir && !visited.has(dir)) {
|
|
529606
|
+
visited.add(dir);
|
|
529607
|
+
if (existsSync57(join75(dir, ".git"))) return dir;
|
|
529608
|
+
const parent = join75(dir, "..");
|
|
529609
|
+
if (parent === dir) break;
|
|
529610
|
+
dir = parent;
|
|
529611
|
+
}
|
|
529612
|
+
return null;
|
|
529613
|
+
}
|
|
529614
|
+
function findNearestExistingGitignore(startDir, gitRoot) {
|
|
529615
|
+
let dir = startDir;
|
|
529616
|
+
const visited = /* @__PURE__ */ new Set();
|
|
529617
|
+
while (dir && !visited.has(dir)) {
|
|
529618
|
+
visited.add(dir);
|
|
529619
|
+
const candidate = join75(dir, ".gitignore");
|
|
529620
|
+
if (existsSync57(candidate)) return candidate;
|
|
529621
|
+
if (dir === gitRoot) break;
|
|
529622
|
+
const parent = join75(dir, "..");
|
|
529623
|
+
if (parent === dir) break;
|
|
529624
|
+
dir = parent;
|
|
529625
|
+
}
|
|
529626
|
+
return null;
|
|
529627
|
+
}
|
|
529628
|
+
function normalizeIgnoreRule(rule) {
|
|
529629
|
+
return rule.trim().replace(/\\/g, "/").replace(/^\.\//, "").replace(/^\/+/, "").replace(/\/+$/, "");
|
|
529630
|
+
}
|
|
529631
|
+
function ensureOaIgnored(repoRoot) {
|
|
529632
|
+
const gitRoot = findGitRoot(repoRoot);
|
|
529633
|
+
if (!gitRoot) return;
|
|
529634
|
+
const gitignorePath = findNearestExistingGitignore(repoRoot, gitRoot);
|
|
529635
|
+
if (!gitignorePath) return;
|
|
529636
|
+
const gitignoreDir = dirname22(gitignorePath);
|
|
529637
|
+
const relDir = relative6(gitignoreDir || ".", repoRoot).replace(/\\/g, "/");
|
|
529638
|
+
const ignorePattern = relDir && relDir !== "." ? `${relDir}/.oa/` : ".oa/";
|
|
529639
|
+
const content = readFileSync44(gitignorePath, "utf-8");
|
|
529640
|
+
const normalizedTarget = normalizeIgnoreRule(ignorePattern);
|
|
529641
|
+
const alreadyIgnored = content.split(/\r?\n/).some((line) => {
|
|
529642
|
+
const trimmed = line.trim();
|
|
529643
|
+
if (!trimmed || trimmed.startsWith("#")) return false;
|
|
529644
|
+
return normalizeIgnoreRule(trimmed) === normalizedTarget;
|
|
529645
|
+
});
|
|
529646
|
+
if (alreadyIgnored) return;
|
|
529647
|
+
writeFileSync29(
|
|
529648
|
+
gitignorePath,
|
|
529649
|
+
(content.trimEnd() ? `${content.trimEnd()}
|
|
529650
|
+
` : "") + `${ignorePattern}
|
|
529651
|
+
`,
|
|
529652
|
+
"utf-8"
|
|
529653
|
+
);
|
|
529654
|
+
}
|
|
529602
529655
|
function initOaDirectory(repoRoot) {
|
|
529603
529656
|
const oaPath = join75(repoRoot, OA_DIR);
|
|
529604
529657
|
for (const sub of SUBDIRS) {
|
|
529605
529658
|
mkdirSync32(join75(oaPath, sub), { recursive: true });
|
|
529606
529659
|
}
|
|
529607
529660
|
try {
|
|
529608
|
-
|
|
529609
|
-
const settingsPattern = ".oa/settings.json";
|
|
529610
|
-
if (existsSync57(gitignorePath)) {
|
|
529611
|
-
const content = readFileSync44(gitignorePath, "utf-8");
|
|
529612
|
-
if (!content.includes(settingsPattern)) {
|
|
529613
|
-
writeFileSync29(gitignorePath, content.trimEnd() + "\n" + settingsPattern + "\n", "utf-8");
|
|
529614
|
-
}
|
|
529615
|
-
}
|
|
529661
|
+
ensureOaIgnored(repoRoot);
|
|
529616
529662
|
} catch {
|
|
529617
529663
|
}
|
|
529618
529664
|
return oaPath;
|
|
@@ -535612,7 +535658,7 @@ __export(personaplex_exports, {
|
|
|
535612
535658
|
stopPersonaPlex: () => stopPersonaPlex
|
|
535613
535659
|
});
|
|
535614
535660
|
import { existsSync as existsSync59, writeFileSync as writeFileSync30, readFileSync as readFileSync47, mkdirSync as mkdirSync33, copyFileSync as copyFileSync2, readdirSync as readdirSync15, statSync as statSync18 } from "node:fs";
|
|
535615
|
-
import { join as join77, dirname as
|
|
535661
|
+
import { join as join77, dirname as dirname23 } from "node:path";
|
|
535616
535662
|
import { homedir as homedir27 } from "node:os";
|
|
535617
535663
|
import { execSync as execSync46, spawn as spawn19 } from "node:child_process";
|
|
535618
535664
|
import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
@@ -536426,7 +536472,7 @@ function getShippedVoicesDir() {
|
|
|
536426
536472
|
// repo root
|
|
536427
536473
|
];
|
|
536428
536474
|
try {
|
|
536429
|
-
const modDir =
|
|
536475
|
+
const modDir = dirname23(fileURLToPath13(import.meta.url));
|
|
536430
536476
|
candidates.push(join77(modDir, "..", "..", "..", "voices", "personaplex"));
|
|
536431
536477
|
candidates.push(join77(modDir, "..", "..", "..", "..", "voices", "personaplex"));
|
|
536432
536478
|
} catch {
|
|
@@ -539475,7 +539521,7 @@ import { existsSync as existsSync63, readFileSync as readFileSync49, writeFileSy
|
|
|
539475
539521
|
import { join as join80 } from "node:path";
|
|
539476
539522
|
import { homedir as homedir29 } from "node:os";
|
|
539477
539523
|
import { fileURLToPath as fileURLToPath14 } from "node:url";
|
|
539478
|
-
import { dirname as
|
|
539524
|
+
import { dirname as dirname24 } from "node:path";
|
|
539479
539525
|
function getDaemonPort() {
|
|
539480
539526
|
const env2 = process.env["OA_HOST"];
|
|
539481
539527
|
if (env2) {
|
|
@@ -539524,7 +539570,7 @@ async function startDaemon() {
|
|
|
539524
539570
|
}
|
|
539525
539571
|
}
|
|
539526
539572
|
if (!oaScript) {
|
|
539527
|
-
const thisDir =
|
|
539573
|
+
const thisDir = dirname24(fileURLToPath14(import.meta.url));
|
|
539528
539574
|
const indexJs = join80(thisDir, "index.js");
|
|
539529
539575
|
if (existsSync63(indexJs)) oaScript = indexJs;
|
|
539530
539576
|
}
|
|
@@ -541371,7 +541417,7 @@ __export(voice_exports, {
|
|
|
541371
541417
|
resetNarrationContext: () => resetNarrationContext
|
|
541372
541418
|
});
|
|
541373
541419
|
import { existsSync as existsSync66, mkdirSync as mkdirSync37, writeFileSync as writeFileSync34, readFileSync as readFileSync51, unlinkSync as unlinkSync17, readdirSync as readdirSync16, statSync as statSync19 } from "node:fs";
|
|
541374
|
-
import { join as join83, dirname as
|
|
541420
|
+
import { join as join83, dirname as dirname25 } from "node:path";
|
|
541375
541421
|
import { homedir as homedir30, tmpdir as tmpdir20, platform as platform4 } from "node:os";
|
|
541376
541422
|
import { execSync as execSync49, spawn as nodeSpawn } from "node:child_process";
|
|
541377
541423
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -541428,7 +541474,7 @@ function luxttsInferScript() {
|
|
|
541428
541474
|
function writeDetectTorchScript(targetPath) {
|
|
541429
541475
|
if (existsSync66(targetPath)) return;
|
|
541430
541476
|
try {
|
|
541431
|
-
mkdirSync37(
|
|
541477
|
+
mkdirSync37(dirname25(targetPath), { recursive: true });
|
|
541432
541478
|
} catch {
|
|
541433
541479
|
}
|
|
541434
541480
|
const script = `#!/usr/bin/env python3
|
|
@@ -544335,12 +544381,12 @@ async function ensureVoiceDeps(ctx3) {
|
|
|
544335
544381
|
if (res?.log) renderInfo2(res.log.split("\n").slice(-3).join(" ").slice(0, 200));
|
|
544336
544382
|
}
|
|
544337
544383
|
if (typeof mod2.getVenvPython === "function") {
|
|
544338
|
-
const { dirname:
|
|
544384
|
+
const { dirname: dirname34 } = await import("node:path");
|
|
544339
544385
|
const { existsSync: existsSync91 } = await import("node:fs");
|
|
544340
544386
|
const venvPy = mod2.getVenvPython();
|
|
544341
544387
|
if (existsSync91(venvPy)) {
|
|
544342
544388
|
process.env.TRANSCRIBE_PYTHON = venvPy;
|
|
544343
|
-
const venvBin =
|
|
544389
|
+
const venvBin = dirname34(venvPy);
|
|
544344
544390
|
const sep2 = process.platform === "win32" ? ";" : ":";
|
|
544345
544391
|
const cur = process.env.PATH || "";
|
|
544346
544392
|
if (!cur.split(sep2).includes(venvBin)) {
|
|
@@ -550157,9 +550203,9 @@ async function handlePeerEndpoint(peerId, authKey, ctx3, local) {
|
|
|
550157
550203
|
if (models.length > 0) {
|
|
550158
550204
|
try {
|
|
550159
550205
|
const { writeFileSync: writeFileSync51, mkdirSync: mkdirSync58 } = await import("node:fs");
|
|
550160
|
-
const { join: join110, dirname:
|
|
550206
|
+
const { join: join110, dirname: dirname34 } = await import("node:path");
|
|
550161
550207
|
const cachePath = join110(ctx3.repoRoot || process.cwd(), ".oa", "nexus", "peer-models-cache.json");
|
|
550162
|
-
mkdirSync58(
|
|
550208
|
+
mkdirSync58(dirname34(cachePath), { recursive: true });
|
|
550163
550209
|
writeFileSync51(cachePath, JSON.stringify({
|
|
550164
550210
|
peerId,
|
|
550165
550211
|
cachedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -550729,10 +550775,10 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
550729
550775
|
try {
|
|
550730
550776
|
const { createRequire: createRequire7 } = await import("node:module");
|
|
550731
550777
|
const { fileURLToPath: fileURLToPath20 } = await import("node:url");
|
|
550732
|
-
const { dirname:
|
|
550778
|
+
const { dirname: dirname34, join: join110 } = await import("node:path");
|
|
550733
550779
|
const { existsSync: existsSync91 } = await import("node:fs");
|
|
550734
550780
|
const req2 = createRequire7(import.meta.url);
|
|
550735
|
-
const thisDir =
|
|
550781
|
+
const thisDir = dirname34(fileURLToPath20(import.meta.url));
|
|
550736
550782
|
const candidates = [
|
|
550737
550783
|
join110(thisDir, "..", "package.json"),
|
|
550738
550784
|
join110(thisDir, "..", "..", "package.json"),
|
|
@@ -555846,7 +555892,7 @@ var init_types = __esm({
|
|
|
555846
555892
|
// packages/cli/src/tui/p2p/secret-vault.ts
|
|
555847
555893
|
import { createCipheriv as createCipheriv3, createDecipheriv as createDecipheriv3, randomBytes as randomBytes18, scryptSync as scryptSync2, createHash as createHash8 } from "node:crypto";
|
|
555848
555894
|
import { readFileSync as readFileSync54, writeFileSync as writeFileSync37, existsSync as existsSync69, mkdirSync as mkdirSync40 } from "node:fs";
|
|
555849
|
-
import { dirname as
|
|
555895
|
+
import { dirname as dirname26 } from "node:path";
|
|
555850
555896
|
var PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX, CIPHER_ALGO, SALT_LEN, IV_LEN, KEY_LEN, SecretVault;
|
|
555851
555897
|
var init_secret_vault = __esm({
|
|
555852
555898
|
"packages/cli/src/tui/p2p/secret-vault.ts"() {
|
|
@@ -556053,7 +556099,7 @@ var init_secret_vault = __esm({
|
|
|
556053
556099
|
const encrypted = Buffer.concat([cipher.update(data, "utf8"), cipher.final()]);
|
|
556054
556100
|
const tag = cipher.getAuthTag();
|
|
556055
556101
|
const blob = Buffer.concat([salt, iv, tag, encrypted]);
|
|
556056
|
-
const dir =
|
|
556102
|
+
const dir = dirname26(this.storePath);
|
|
556057
556103
|
if (!existsSync69(dir)) mkdirSync40(dir, { recursive: true });
|
|
556058
556104
|
writeFileSync37(this.storePath, blob, { mode: 384 });
|
|
556059
556105
|
}
|
|
@@ -559245,7 +559291,7 @@ var init_edit_history = __esm({
|
|
|
559245
559291
|
|
|
559246
559292
|
// packages/cli/src/tui/promptLoader.ts
|
|
559247
559293
|
import { readFileSync as readFileSync58, existsSync as existsSync73 } from "node:fs";
|
|
559248
|
-
import { join as join91, dirname as
|
|
559294
|
+
import { join as join91, dirname as dirname27 } from "node:path";
|
|
559249
559295
|
import { fileURLToPath as fileURLToPath15 } from "node:url";
|
|
559250
559296
|
function loadPrompt3(promptPath, vars) {
|
|
559251
559297
|
let content = cache7.get(promptPath);
|
|
@@ -559265,7 +559311,7 @@ var init_promptLoader3 = __esm({
|
|
|
559265
559311
|
"packages/cli/src/tui/promptLoader.ts"() {
|
|
559266
559312
|
"use strict";
|
|
559267
559313
|
__filename5 = fileURLToPath15(import.meta.url);
|
|
559268
|
-
__dirname7 =
|
|
559314
|
+
__dirname7 = dirname27(__filename5);
|
|
559269
559315
|
devPath2 = join91(__dirname7, "..", "..", "prompts");
|
|
559270
559316
|
publishedPath2 = join91(__dirname7, "..", "prompts");
|
|
559271
559317
|
PROMPTS_DIR3 = existsSync73(devPath2) ? devPath2 : publishedPath2;
|
|
@@ -565184,7 +565230,7 @@ var init_audit_log = __esm({
|
|
|
565184
565230
|
// packages/cli/src/api/disk-task-output.ts
|
|
565185
565231
|
import { open } from "node:fs/promises";
|
|
565186
565232
|
import { existsSync as existsSync81, mkdirSync as mkdirSync50, statSync as statSync24 } from "node:fs";
|
|
565187
|
-
import { dirname as
|
|
565233
|
+
import { dirname as dirname29 } from "node:path";
|
|
565188
565234
|
import * as fsConstants from "node:constants";
|
|
565189
565235
|
var O_NOFOLLOW2, O_APPEND2, O_CREAT2, O_WRONLY2, OPEN_FLAGS_WRITE, OPEN_MODE, DiskTaskOutput;
|
|
565190
565236
|
var init_disk_task_output = __esm({
|
|
@@ -565203,7 +565249,7 @@ var init_disk_task_output = __esm({
|
|
|
565203
565249
|
fileSize = 0;
|
|
565204
565250
|
constructor(outputPath) {
|
|
565205
565251
|
this.path = outputPath;
|
|
565206
|
-
mkdirSync50(
|
|
565252
|
+
mkdirSync50(dirname29(outputPath), { recursive: true });
|
|
565207
565253
|
}
|
|
565208
565254
|
/** Queue content for async append. Non-blocking. */
|
|
565209
565255
|
append(chunk) {
|
|
@@ -572668,7 +572714,7 @@ var init_profiles = __esm({
|
|
|
572668
572714
|
// packages/cli/src/docker.ts
|
|
572669
572715
|
import { execSync as execSync54, spawn as spawn24 } from "node:child_process";
|
|
572670
572716
|
import { existsSync as existsSync86, mkdirSync as mkdirSync53, writeFileSync as writeFileSync46 } from "node:fs";
|
|
572671
|
-
import { join as join103, resolve as resolve35, dirname as
|
|
572717
|
+
import { join as join103, resolve as resolve35, dirname as dirname30 } from "node:path";
|
|
572672
572718
|
import { homedir as homedir38 } from "node:os";
|
|
572673
572719
|
import { fileURLToPath as fileURLToPath16 } from "node:url";
|
|
572674
572720
|
function getDockerDir() {
|
|
@@ -572679,7 +572725,7 @@ function getDockerDir() {
|
|
|
572679
572725
|
} catch {
|
|
572680
572726
|
}
|
|
572681
572727
|
try {
|
|
572682
|
-
const thisDir =
|
|
572728
|
+
const thisDir = dirname30(fileURLToPath16(import.meta.url));
|
|
572683
572729
|
return join103(thisDir, "..", "..", "..", "docker");
|
|
572684
572730
|
} catch {
|
|
572685
572731
|
}
|
|
@@ -573146,7 +573192,7 @@ import * as http5 from "node:http";
|
|
|
573146
573192
|
import * as https3 from "node:https";
|
|
573147
573193
|
import { createRequire as createRequire4 } from "node:module";
|
|
573148
573194
|
import { fileURLToPath as fileURLToPath17 } from "node:url";
|
|
573149
|
-
import { dirname as
|
|
573195
|
+
import { dirname as dirname31, join as join104, resolve as resolve36 } from "node:path";
|
|
573150
573196
|
import { homedir as homedir39 } from "node:os";
|
|
573151
573197
|
import { spawn as spawn25, execSync as execSync55 } from "node:child_process";
|
|
573152
573198
|
import { mkdirSync as mkdirSync54, writeFileSync as writeFileSync47, readFileSync as readFileSync69, readdirSync as readdirSync29, existsSync as existsSync87, watch as fsWatch3 } from "node:fs";
|
|
@@ -573155,7 +573201,7 @@ import { createHash as createHash12 } from "node:crypto";
|
|
|
573155
573201
|
function getVersion3() {
|
|
573156
573202
|
try {
|
|
573157
573203
|
const require3 = createRequire4(import.meta.url);
|
|
573158
|
-
const thisDir =
|
|
573204
|
+
const thisDir = dirname31(fileURLToPath17(import.meta.url));
|
|
573159
573205
|
const candidates = [
|
|
573160
573206
|
join104(thisDir, "..", "package.json"),
|
|
573161
573207
|
join104(thisDir, "..", "..", "package.json"),
|
|
@@ -574942,7 +574988,7 @@ async function handleV1Update(req2, res, requestId) {
|
|
|
574942
574988
|
}, { subject: req2._authUser ?? "anonymous" });
|
|
574943
574989
|
const fs4 = __require("node:fs");
|
|
574944
574990
|
const nodeBin = process.execPath;
|
|
574945
|
-
const nodeDir =
|
|
574991
|
+
const nodeDir = dirname31(nodeBin);
|
|
574946
574992
|
const { execSync: es } = __require("node:child_process");
|
|
574947
574993
|
const isWin2 = process.platform === "win32";
|
|
574948
574994
|
let npmBin = "";
|
|
@@ -574957,7 +575003,7 @@ async function handleV1Update(req2, res, requestId) {
|
|
|
574957
575003
|
const dir = join104(homedir39(), ".open-agents");
|
|
574958
575004
|
fs4.mkdirSync(dir, { recursive: true });
|
|
574959
575005
|
const logFd = fs4.openSync(logPath2, "w");
|
|
574960
|
-
const npmPrefix =
|
|
575006
|
+
const npmPrefix = dirname31(nodeDir);
|
|
574961
575007
|
let globalBinDir = "";
|
|
574962
575008
|
try {
|
|
574963
575009
|
if (isWin2) {
|
|
@@ -579071,7 +579117,7 @@ ${recentTurns}`
|
|
|
579071
579117
|
|
|
579072
579118
|
// packages/cli/src/tui/interactive.ts
|
|
579073
579119
|
import { cwd } from "node:process";
|
|
579074
|
-
import { resolve as resolve37, join as join105, dirname as
|
|
579120
|
+
import { resolve as resolve37, join as join105, dirname as dirname32, extname as extname12 } from "node:path";
|
|
579075
579121
|
import { createRequire as createRequire5 } from "node:module";
|
|
579076
579122
|
import { fileURLToPath as fileURLToPath18 } from "node:url";
|
|
579077
579123
|
import { readFileSync as readFileSync70, writeFileSync as writeFileSync48, appendFileSync as appendFileSync6, rmSync as rmSync5, readdirSync as readdirSync30, mkdirSync as mkdirSync55 } from "node:fs";
|
|
@@ -579091,7 +579137,7 @@ function formatTimeAgo(date) {
|
|
|
579091
579137
|
function getVersion4() {
|
|
579092
579138
|
try {
|
|
579093
579139
|
const require3 = createRequire5(import.meta.url);
|
|
579094
|
-
const thisDir =
|
|
579140
|
+
const thisDir = dirname32(fileURLToPath18(import.meta.url));
|
|
579095
579141
|
const candidates = [
|
|
579096
579142
|
join105(thisDir, "..", "package.json"),
|
|
579097
579143
|
join105(thisDir, "..", "..", "package.json"),
|
|
@@ -585047,6 +585093,7 @@ ${c3.dim("(Use /quit to exit)")}
|
|
|
585047
585093
|
}
|
|
585048
585094
|
async function runWithTUI(task, config, repoPath, callbacks) {
|
|
585049
585095
|
const repoRoot = resolve37(repoPath ?? cwd());
|
|
585096
|
+
initOaDirectory(repoRoot);
|
|
585050
585097
|
const needsSetup = isFirstRun() || !await isModelAvailable(config);
|
|
585051
585098
|
if (needsSetup && config.backendType === "ollama") {
|
|
585052
585099
|
const setupModel = await runSetupWizard(config);
|
|
@@ -586400,7 +586447,7 @@ init_typed_node_events();
|
|
|
586400
586447
|
import { parseArgs as nodeParseArgs2 } from "node:util";
|
|
586401
586448
|
import { createRequire as createRequire6 } from "node:module";
|
|
586402
586449
|
import { fileURLToPath as fileURLToPath19 } from "node:url";
|
|
586403
|
-
import { dirname as
|
|
586450
|
+
import { dirname as dirname33, join as join109 } from "node:path";
|
|
586404
586451
|
|
|
586405
586452
|
// packages/cli/src/cli.ts
|
|
586406
586453
|
init_typed_node_events();
|
|
@@ -586508,7 +586555,7 @@ init_output();
|
|
|
586508
586555
|
function getVersion5() {
|
|
586509
586556
|
try {
|
|
586510
586557
|
const require3 = createRequire6(import.meta.url);
|
|
586511
|
-
const pkgPath = join109(
|
|
586558
|
+
const pkgPath = join109(dirname33(fileURLToPath19(import.meta.url)), "..", "package.json");
|
|
586512
586559
|
const pkg = require3(pkgPath);
|
|
586513
586560
|
return pkg.version;
|
|
586514
586561
|
} catch {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.392",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.392",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED