omnius 1.0.592 → 1.0.594

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 CHANGED
@@ -294588,9 +294588,9 @@ import { fileURLToPath as fileURLToPath6 } from "node:url";
294588
294588
  import { homedir as homedir13, tmpdir as tmpdir10 } from "node:os";
294589
294589
  function findOcrScript() {
294590
294590
  const thisDir = dirname17(fileURLToPath6(import.meta.url));
294591
- const devPath3 = resolve32(thisDir, "../../scripts/ocr-advanced.py");
294592
- if (existsSync52(devPath3))
294593
- return devPath3;
294591
+ const devPath2 = resolve32(thisDir, "../../scripts/ocr-advanced.py");
294592
+ if (existsSync52(devPath2))
294593
+ return devPath2;
294594
294594
  const bundledPath = resolve32(thisDir, "../scripts/ocr-advanced.py");
294595
294595
  if (existsSync52(bundledPath))
294596
294596
  return bundledPath;
@@ -295802,9 +295802,9 @@ import { join as join63, resolve as resolve34, dirname as dirname19 } from "node
295802
295802
  import { fileURLToPath as fileURLToPath8 } from "node:url";
295803
295803
  function findAutoresearchScript(scriptName) {
295804
295804
  const thisDir = dirname19(fileURLToPath8(import.meta.url));
295805
- const devPath3 = resolve34(thisDir, "../../scripts", scriptName);
295806
- if (existsSync54(devPath3))
295807
- return devPath3;
295805
+ const devPath2 = resolve34(thisDir, "../../scripts", scriptName);
295806
+ if (existsSync54(devPath2))
295807
+ return devPath2;
295808
295808
  const bundledPath = resolve34(thisDir, "../scripts", scriptName);
295809
295809
  if (existsSync54(bundledPath))
295810
295810
  return bundledPath;
@@ -657614,10 +657614,19 @@ var init_render2 = __esm({
657614
657614
  import { readFileSync as readFileSync107, existsSync as existsSync130 } from "node:fs";
657615
657615
  import { join as join140, dirname as dirname44 } from "node:path";
657616
657616
  import { fileURLToPath as fileURLToPath19 } from "node:url";
657617
+ function resolvePromptsDir(baseDir, promptPath = "code.md") {
657618
+ const devPath2 = join140(baseDir, "..", "templates");
657619
+ const publishedPath2 = join140(baseDir, "..", "prompts", "templates");
657620
+ if (existsSync130(join140(publishedPath2, promptPath)))
657621
+ return publishedPath2;
657622
+ if (existsSync130(join140(devPath2, promptPath)))
657623
+ return devPath2;
657624
+ return existsSync130(publishedPath2) ? publishedPath2 : devPath2;
657625
+ }
657617
657626
  function loadPrompt2(promptPath, vars) {
657618
657627
  let content = cache6.get(promptPath);
657619
657628
  if (content === void 0) {
657620
- const fullPath = join140(PROMPTS_DIR2, promptPath);
657629
+ const fullPath = join140(resolvePromptsDir(__dirname5, promptPath), promptPath);
657621
657630
  if (!existsSync130(fullPath)) {
657622
657631
  throw new Error(`Prompt file not found: ${fullPath}`);
657623
657632
  }
@@ -657628,15 +657637,13 @@ function loadPrompt2(promptPath, vars) {
657628
657637
  return content;
657629
657638
  return content.replace(/\{\{(\w+)\}\}/g, (_, key) => vars[key] ?? `{{${key}}}`);
657630
657639
  }
657631
- var __filename4, __dirname5, devPath, publishedPath, PROMPTS_DIR2, cache6;
657640
+ var __filename4, __dirname5, PROMPTS_DIR2, cache6;
657632
657641
  var init_promptLoader2 = __esm({
657633
657642
  "packages/prompts/dist/promptLoader.js"() {
657634
657643
  "use strict";
657635
657644
  __filename4 = fileURLToPath19(import.meta.url);
657636
657645
  __dirname5 = dirname44(__filename4);
657637
- devPath = join140(__dirname5, "..", "templates");
657638
- publishedPath = join140(__dirname5, "..", "prompts", "templates");
657639
- PROMPTS_DIR2 = existsSync130(devPath) ? devPath : publishedPath;
657646
+ PROMPTS_DIR2 = resolvePromptsDir(__dirname5);
657640
657647
  cache6 = /* @__PURE__ */ new Map();
657641
657648
  }
657642
657649
  });
@@ -706623,14 +706630,14 @@ function loadPrompt3(promptPath, vars) {
706623
706630
  if (!vars) return content;
706624
706631
  return content.replace(/\{\{(\w+)\}\}/g, (_, key) => vars[key] ?? `{{${key}}}`);
706625
706632
  }
706626
- var __filename5, __dirname6, devPath2, publishedPath2, PROMPTS_DIR3, cache7;
706633
+ var __filename5, __dirname6, devPath, publishedPath, PROMPTS_DIR3, cache7;
706627
706634
  var init_promptLoader3 = __esm({
706628
706635
  "packages/cli/src/tui/promptLoader.ts"() {
706629
706636
  __filename5 = fileURLToPath23(import.meta.url);
706630
706637
  __dirname6 = dirname54(__filename5);
706631
- devPath2 = join165(__dirname6, "..", "..", "prompts");
706632
- publishedPath2 = join165(__dirname6, "..", "prompts");
706633
- PROMPTS_DIR3 = existsSync156(devPath2) ? devPath2 : publishedPath2;
706638
+ devPath = join165(__dirname6, "..", "..", "prompts");
706639
+ publishedPath = join165(__dirname6, "..", "prompts");
706640
+ PROMPTS_DIR3 = existsSync156(devPath) ? devPath : publishedPath;
706634
706641
  cache7 = /* @__PURE__ */ new Map();
706635
706642
  }
706636
706643
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.592",
3
+ "version": "1.0.594",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.592",
9
+ "version": "1.0.594",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
@@ -1077,14 +1077,14 @@
1077
1077
  }
1078
1078
  },
1079
1079
  "node_modules/@libp2p/peer-record": {
1080
- "version": "9.0.13",
1081
- "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-9.0.13.tgz",
1082
- "integrity": "sha512-lkdZUNC6h86YECpRE3dB4GLYSiLLuXFBleiM01oEmWtAdTCfRd+vRqNkguSoC6R3tGk/YWRm7cfz39ATPuq7zQ==",
1080
+ "version": "9.0.14",
1081
+ "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-9.0.14.tgz",
1082
+ "integrity": "sha512-MFMJ+O9DJTYvHcjam2JN6U7enV5EvSlT+h5c2h3NNBW9L/tc6P3qNZOjq8WcTJxNi+U/5zRi4bVVsYa9qXTQyA==",
1083
1083
  "license": "Apache-2.0 OR MIT",
1084
1084
  "dependencies": {
1085
1085
  "@libp2p/crypto": "^5.1.21",
1086
1086
  "@libp2p/interface": "^3.2.5",
1087
- "@libp2p/peer-id": "^6.0.12",
1087
+ "@libp2p/peer-id": "^6.0.13",
1088
1088
  "@multiformats/multiaddr": "^13.0.3",
1089
1089
  "multiformats": "^14.0.0",
1090
1090
  "protons-runtime": "^7.0.0",
@@ -1358,19 +1358,19 @@
1358
1358
  }
1359
1359
  },
1360
1360
  "node_modules/@libp2p/webrtc": {
1361
- "version": "6.0.27",
1362
- "resolved": "https://registry.npmjs.org/@libp2p/webrtc/-/webrtc-6.0.27.tgz",
1363
- "integrity": "sha512-/t3noeXsi7qOLdTyyDWe8ZwOYr08kIzTDRkKuLXUFWqh3F/9hNDKL8dHb+AetrrBeBNxOSTXXHtSiugNKXP3Lg==",
1361
+ "version": "6.0.28",
1362
+ "resolved": "https://registry.npmjs.org/@libp2p/webrtc/-/webrtc-6.0.28.tgz",
1363
+ "integrity": "sha512-UayKxGoA0M2x1BkkI5QeJ8GhHAud6zLuYleY3YPBizXl3m2qyBp4ayOXyLAs1F2aDYNGy4n006T5C5ttAPwznw==",
1364
1364
  "license": "Apache-2.0 OR MIT",
1365
1365
  "dependencies": {
1366
1366
  "@chainsafe/is-ip": "^2.1.0",
1367
1367
  "@chainsafe/libp2p-noise": "^17.0.0",
1368
1368
  "@libp2p/crypto": "^5.1.21",
1369
1369
  "@libp2p/interface": "^3.2.5",
1370
- "@libp2p/interface-internal": "^3.1.9",
1371
- "@libp2p/keychain": "^6.1.4",
1372
- "@libp2p/peer-id": "^6.0.12",
1373
- "@libp2p/utils": "^7.3.0",
1370
+ "@libp2p/interface-internal": "^3.1.10",
1371
+ "@libp2p/keychain": "^6.1.5",
1372
+ "@libp2p/peer-id": "^6.0.13",
1373
+ "@libp2p/utils": "^7.3.1",
1374
1374
  "@multiformats/multiaddr": "^13.0.3",
1375
1375
  "@multiformats/multiaddr-matcher": "^3.0.2",
1376
1376
  "@peculiar/webcrypto": "^1.5.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.592",
3
+ "version": "1.0.594",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/library.js",