omnius 1.0.285 → 1.0.286

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
@@ -609492,18 +609492,22 @@ ${CONTENT_BG_SEQ}`);
609492
609492
  });
609493
609493
  }
609494
609494
  hangingIndentForVisibleLine(visible, width) {
609495
- const capped = (n2) => " ".repeat(Math.max(0, Math.min(n2, width - 4)));
609496
609495
  const patterns = [
609497
609496
  /^(\s*(?:[│├└]\s*)?(?:[-*+○•]\s+))/,
609498
609497
  /^(\s*(?:[│├└]\s*)?(?:\d+[.)]\s+))/,
609499
609498
  /^(\s*(?:[│├└]\s*)?(?:>\s*))/,
609500
- /^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))/
609499
+ /^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))/,
609500
+ /^(\s*[│├└|]\s*)/
609501
609501
  ];
609502
609502
  for (const pattern of patterns) {
609503
609503
  const match = visible.match(pattern);
609504
- if (match?.[1]) return capped(match[1].length);
609504
+ if (match?.[1]) {
609505
+ const indent = match[1];
609506
+ return indent.slice(0, Math.min(indent.length, Math.max(0, width - 4)));
609507
+ }
609505
609508
  }
609506
- return capped(visible.match(/^\s*/)?.[0].length ?? 0);
609509
+ const leading = visible.match(/^\s*/)?.[0] ?? "";
609510
+ return leading.slice(0, Math.min(leading.length, Math.max(0, width - 4)));
609507
609511
  }
609508
609512
  visibleWrapRanges(visible, width, continuationIndent) {
609509
609513
  const ranges = [];
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.285",
3
+ "version": "1.0.286",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.285",
9
+ "version": "1.0.286",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.285",
3
+ "version": "1.0.286",
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/index.js",