omnius 1.0.240 → 1.0.241

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
@@ -597464,7 +597464,7 @@ var init_call_agent = __esm({
597464
597464
  ts: Date.now(),
597465
597465
  source: "call",
597466
597466
  sourceId: clientId,
597467
- summary: `Responded: ${summary.slice(0, 100)}`
597467
+ summary: `Responded: ${summary}`
597468
597468
  });
597469
597469
  return { success: true, output: summary };
597470
597470
  }
@@ -597485,7 +597485,7 @@ var init_call_agent = __esm({
597485
597485
  if (event.type === "tool_result") {
597486
597486
  const toolName = event.toolName ?? "unknown";
597487
597487
  const success = event.success ?? false;
597488
- const content = String(event.content ?? "").slice(0, 100);
597488
+ const content = String(event.content ?? "");
597489
597489
  this.emit("toolResult", toolName, success, content);
597490
597490
  feed.push({
597491
597491
  ts: Date.now(),
@@ -616691,7 +616691,7 @@ function describeToolCall(toolName, args, personality = 2, emotion, stark = fals
616691
616691
  }
616692
616692
  function extractResultDigest(toolName, content) {
616693
616693
  if (!content || content.length < 5) return "";
616694
- const text2 = content.slice(0, 2e3);
616694
+ const text2 = content.slice(0, 8e3);
616695
616695
  const nuggets = [];
616696
616696
  const ethMatch = text2.match(/([\d.]+)\s*ETH/i);
616697
616697
  if (ethMatch) nuggets.push(`${ethMatch[1]} ETH`);
@@ -616735,8 +616735,8 @@ function extractResultDigest(toolName, content) {
616735
616735
  const contentDigest = extractContentSummary(text2, toolName);
616736
616736
  if (contentDigest) nuggets.push(contentDigest);
616737
616737
  }
616738
- const digest3 = nuggets.slice(0, 3).join(", ");
616739
- return digest3.length > 100 ? digest3.slice(0, 97) + "..." : digest3;
616738
+ const digest3 = nuggets.slice(0, 5).join(", ");
616739
+ return digest3.length > 400 ? digest3.slice(0, 397) + "..." : digest3;
616740
616740
  }
616741
616741
  function extractContentSummary(text2, toolName) {
616742
616742
  let cleaned = text2.replace(/^\s*\d+[│|:→]\s*/gm, "").replace(/\d{4}-\d{2}-\d{2}T[\d:.]+Z?\s*/g, "").replace(/^[\s*#=-]+$/gm, "").replace(/```[\s\S]*?```/g, "").replace(
@@ -616750,9 +616750,9 @@ function extractContentSummary(text2, toolName) {
616750
616750
  if (/^(\/|\.\/)/.test(line)) continue;
616751
616751
  if (/^\s*[{<]/.test(line)) continue;
616752
616752
  let summary = line;
616753
- if (summary.length > 80) {
616754
- const cut = summary.lastIndexOf(" ", 80);
616755
- summary = summary.slice(0, cut > 20 ? cut : 80);
616753
+ if (summary.length > 400) {
616754
+ const cut = summary.lastIndexOf(" ", 400);
616755
+ summary = summary.slice(0, cut > 20 ? cut : 400);
616756
616756
  }
616757
616757
  if (summary.length > 0 && !(summary.length > 1 && summary[0] === summary[0].toUpperCase() && summary[1] === summary[1].toUpperCase())) {
616758
616758
  summary = summary.charAt(0).toLowerCase() + summary.slice(1);
@@ -616838,15 +616838,14 @@ function describeToolResult(toolName, success, personality = 2, resultContent, e
616838
616838
  }
616839
616839
  function describeTaskComplete(summary, completed, personality = 2, _stark = false) {
616840
616840
  const tier = getTier(personality);
616841
- const truncated = summary.length > 200 ? summary.slice(0, 200) + "..." : summary;
616842
616841
  if (!completed) {
616843
- if (truncated) {
616844
- return tier === "terse" ? `Incomplete: ${truncated}` : `Could not finish. ${truncated}`;
616842
+ if (summary) {
616843
+ return tier === "terse" ? `Incomplete: ${summary}` : `Could not finish. ${summary}`;
616845
616844
  }
616846
616845
  return `Task ended without completion, no summary was provided`;
616847
616846
  }
616848
- if (truncated) {
616849
- return truncated;
616847
+ if (summary) {
616848
+ return summary;
616850
616849
  }
616851
616850
  return `Task completed, but no summary was generated to describe the outcome`;
616852
616851
  }
@@ -617635,16 +617634,19 @@ except Exception as exc:
617635
617634
  /**
617636
617635
  * Split long text into sentence-sized chunks suitable for ONNX TTS.
617637
617636
  * Splits on: newlines (list items, paragraphs), then sentence-ending
617638
- * punctuation (.!?). Short text (<= 200 chars) passes through unchanged.
617637
+ * punctuation (.!?). If no split point is found the full text is kept
617638
+ * as a single chunk — no data is ever silently dropped.
617639
617639
  */
617640
617640
  chunkText(text2) {
617641
- if (text2.length <= 200) return [text2];
617641
+ if (!text2) return [];
617642
+ const MAX_CHUNK = 800;
617643
+ if (text2.length <= MAX_CHUNK) return [text2];
617642
617644
  const chunks = [];
617643
617645
  const lines = text2.split(/\n+/);
617644
617646
  for (const line of lines) {
617645
617647
  const trimmed = line.replace(/^[\s\-*•]+/, "").trim();
617646
617648
  if (!trimmed) continue;
617647
- if (trimmed.length <= 200) {
617649
+ if (trimmed.length <= MAX_CHUNK) {
617648
617650
  chunks.push(trimmed);
617649
617651
  } else {
617650
617652
  const sentences = trimmed.split(/(?<=[.!?])\s+/);
@@ -617654,7 +617656,7 @@ except Exception as exc:
617654
617656
  }
617655
617657
  }
617656
617658
  }
617657
- return chunks.length > 0 ? chunks : [text2.slice(0, 200)];
617659
+ return chunks.length > 0 ? chunks : [text2];
617658
617660
  }
617659
617661
  // -------------------------------------------------------------------------
617660
617662
  // Queue drain
@@ -694427,7 +694429,7 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
694427
694429
  },
694428
694430
  onAgentSpeech(text2) {
694429
694431
  writeContent(
694430
- () => renderInfo(`\x1B[38;5;37m[agent]\x1B[0m ${text2.slice(0, 120)}`)
694432
+ () => renderInfo(`\x1B[38;5;37m[agent]\x1B[0m ${truncateByLines(text2, 5, 600)}`)
694431
694433
  );
694432
694434
  },
694433
694435
  // Keep state changes silent
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.240",
3
+ "version": "1.0.241",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.240",
9
+ "version": "1.0.241",
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.240",
3
+ "version": "1.0.241",
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",