omnius 1.0.96 → 1.0.98
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 +19 -14
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -563779,7 +563779,7 @@ function buildToolContentRow(content, width, colorCode) {
|
|
|
563779
563779
|
function formatToolBoxLine(line, kind) {
|
|
563780
563780
|
switch (kind) {
|
|
563781
563781
|
case "error":
|
|
563782
|
-
return c3.
|
|
563782
|
+
return c3.magenta(line);
|
|
563783
563783
|
case "success":
|
|
563784
563784
|
return c3.green(line);
|
|
563785
563785
|
case "dim":
|
|
@@ -563967,7 +563967,12 @@ function buildToolResultBody(toolName, success, output, verbose) {
|
|
|
563967
563967
|
return codePreviewLines(output, 10);
|
|
563968
563968
|
}
|
|
563969
563969
|
if (toolName === "task_complete") {
|
|
563970
|
-
|
|
563970
|
+
const summary = output && output.trim() ? output : "Done";
|
|
563971
|
+
return summary.split("\n").map((line) => ({
|
|
563972
|
+
text: line,
|
|
563973
|
+
mode: "wrap",
|
|
563974
|
+
kind: "markdown"
|
|
563975
|
+
}));
|
|
563971
563976
|
}
|
|
563972
563977
|
const filtered = output.split("\n").filter((line) => {
|
|
563973
563978
|
const trimmed = line.trim();
|
|
@@ -564086,13 +564091,13 @@ function isRawJsonDump(line) {
|
|
|
564086
564091
|
}
|
|
564087
564092
|
function highlightToolOutput(line) {
|
|
564088
564093
|
if (line.startsWith("+") && !line.startsWith("+++")) return c3.green(line);
|
|
564089
|
-
if (line.startsWith("-") && !line.startsWith("---")) return c3.
|
|
564094
|
+
if (line.startsWith("-") && !line.startsWith("---")) return c3.magenta(line);
|
|
564090
564095
|
if (line.startsWith("@@")) return c3.cyan(line);
|
|
564091
564096
|
if (line.startsWith("---") || line.startsWith("+++")) return c3.bold(line);
|
|
564092
|
-
if (/error/i.test(line) && !/0 error/i.test(line)) return c3.
|
|
564097
|
+
if (/error/i.test(line) && !/0 error/i.test(line)) return c3.magenta(line);
|
|
564093
564098
|
if (/warning/i.test(line) && !/0 warning/i.test(line)) return c3.yellow(line);
|
|
564094
564099
|
if (/\bpass(ed|ing)?\b/i.test(line)) return c3.green(line);
|
|
564095
|
-
if (/\bfail(ed|ing|ure)?\b/i.test(line)) return c3.
|
|
564100
|
+
if (/\bfail(ed|ing|ure)?\b/i.test(line)) return c3.magenta(line);
|
|
564096
564101
|
const formatted = formatInlineMarkdown(line);
|
|
564097
564102
|
if (formatted !== line) return formatted;
|
|
564098
564103
|
return c3.dim(line);
|
|
@@ -567178,7 +567183,7 @@ ${this.formatConnectionInfo()}`);
|
|
|
567178
567183
|
const uptimeSec = Math.floor((Date.now() - s2.startedAt) / 1e3);
|
|
567179
567184
|
const uptimeStr = uptimeSec < 60 ? `${uptimeSec}s` : uptimeSec < 3600 ? `${Math.floor(uptimeSec / 60)}m ${uptimeSec % 60}s` : `${Math.floor(uptimeSec / 3600)}h ${Math.floor(uptimeSec % 3600 / 60)}m`;
|
|
567180
567185
|
lines.push(` ${c3.bold("Expose Gateway Stats")}`);
|
|
567181
|
-
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.
|
|
567186
|
+
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.magenta("error") : c3.yellow("standby")}`);
|
|
567182
567187
|
lines.push(` ${c3.cyan("Uptime".padEnd(18))} ${uptimeStr}`);
|
|
567183
567188
|
lines.push(` ${c3.cyan("Total requests".padEnd(18))} ${s2.totalRequests}`);
|
|
567184
567189
|
lines.push(` ${c3.cyan("Active conns".padEnd(18))} ${s2.activeConnections}`);
|
|
@@ -567669,7 +567674,7 @@ ${this.formatConnectionInfo()}`);
|
|
|
567669
567674
|
const uptimeStr = uptimeSec < 60 ? `${uptimeSec}s` : uptimeSec < 3600 ? `${Math.floor(uptimeSec / 60)}m ${uptimeSec % 60}s` : `${Math.floor(uptimeSec / 3600)}h ${Math.floor(uptimeSec % 3600 / 60)}m`;
|
|
567670
567675
|
const modeTag = this._passthrough ? c3.dim("(libp2p passthrough)") : c3.dim("(libp2p)");
|
|
567671
567676
|
lines.push(` ${c3.bold("Expose Gateway Stats")} ${modeTag}`);
|
|
567672
|
-
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.
|
|
567677
|
+
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.magenta("error") : c3.yellow("standby")}`);
|
|
567673
567678
|
lines.push(` ${c3.cyan("Transport".padEnd(18))} libp2p${this._passthrough ? " (passthrough)" : ""}`);
|
|
567674
567679
|
lines.push(` ${c3.cyan("Peer ID".padEnd(18))} ${this._peerId ?? "n/a"}`);
|
|
567675
567680
|
lines.push(` ${c3.cyan("Uptime".padEnd(18))} ${uptimeStr}`);
|
|
@@ -581480,7 +581485,7 @@ var init_drop_panel = __esm({
|
|
|
581480
581485
|
dim: (t2) => ansi4("38;5;250", t2),
|
|
581481
581486
|
cyan: (t2) => ansi4("36", t2),
|
|
581482
581487
|
green: (t2) => ansi4("32", t2),
|
|
581483
|
-
red: (t2) => ansi4("
|
|
581488
|
+
red: (t2) => ansi4("35", t2),
|
|
581484
581489
|
yellow: (t2) => ansi4("33", t2)
|
|
581485
581490
|
};
|
|
581486
581491
|
}
|
|
@@ -600367,7 +600372,7 @@ function renderOllamaCleanupReport(report2, opts) {
|
|
|
600367
600372
|
if (report2.errors && report2.errors.length > 0) {
|
|
600368
600373
|
safeLog("");
|
|
600369
600374
|
for (const err of report2.errors) {
|
|
600370
|
-
safeLog(` ${c3.
|
|
600375
|
+
safeLog(` ${c3.magenta(`PID ${err.pid}: ${err.error}`)}`);
|
|
600371
600376
|
}
|
|
600372
600377
|
}
|
|
600373
600378
|
if (!opts.scanOnly && opts.dryRun) {
|
|
@@ -600406,7 +600411,7 @@ async function handleMcp(subcommand, ctx3) {
|
|
|
600406
600411
|
}
|
|
600407
600412
|
renderInfo(`MCP servers (${conns.length}):`);
|
|
600408
600413
|
for (const conn of conns) {
|
|
600409
|
-
const status = conn.status === "connected" ? c3.green("●") : c3.
|
|
600414
|
+
const status = conn.status === "connected" ? c3.green("●") : c3.magenta("●");
|
|
600410
600415
|
renderInfo(` ${status} ${conn.name} [${conn.tools.length} tools]`);
|
|
600411
600416
|
}
|
|
600412
600417
|
return;
|
|
@@ -600461,7 +600466,7 @@ async function showMcpMainMenu(ctx3) {
|
|
|
600461
600466
|
const conn = conns.find((c9) => c9.name === name10);
|
|
600462
600467
|
const persisted = cfg.mcpServers[name10];
|
|
600463
600468
|
const status = conn?.status ?? (persisted ? "disconnected" : "missing");
|
|
600464
|
-
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.
|
|
600469
|
+
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.magenta("●") : c3.yellow("●");
|
|
600465
600470
|
const toolCount = conn?.tools?.length ?? 0;
|
|
600466
600471
|
const transport = persisted ? "command" in persisted ? "stdio" : persisted.type ?? "http" : "?";
|
|
600467
600472
|
const detail = `${transport} ${toolCount} tools status: ${status}${conn?.error ? " — " + String(conn.error).slice(0, 40) : ""}`;
|
|
@@ -600624,7 +600629,7 @@ async function showMcpDetailMenu(ctx3, serverName) {
|
|
|
600624
600629
|
});
|
|
600625
600630
|
skipKeys.push("hdr_name");
|
|
600626
600631
|
const status = conn?.status ?? "disconnected";
|
|
600627
|
-
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.
|
|
600632
|
+
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.magenta("●") : c3.yellow("●");
|
|
600628
600633
|
items.push({
|
|
600629
600634
|
key: "info_status",
|
|
600630
600635
|
label: ` ${dot} status: ${status}${conn?.error ? " — " + String(conn.error).slice(0, 80) : ""}`,
|
|
@@ -602084,7 +602089,7 @@ async function showExposeDashboard(gateway, rl, ctx3) {
|
|
|
602084
602089
|
const activeDot = activeConns > 0 ? c3.green(`● ${activeConns}`) : c3.dim("0");
|
|
602085
602090
|
lines.push("");
|
|
602086
602091
|
lines.push(
|
|
602087
|
-
` ${c3.dim("Req")} ${c3.bold(String(totalReqs))} ${c3.dim("Active")} ${activeDot} ${c3.dim("Err")} ${errors > 0 ? c3.
|
|
602092
|
+
` ${c3.dim("Req")} ${c3.bold(String(totalReqs))} ${c3.dim("Active")} ${activeDot} ${c3.dim("Err")} ${errors > 0 ? c3.magenta(String(errors)) : c3.dim("0")} ${c3.dim("Tok")} ↑${c3.cyan(fmtDashTokens(tokIn))} ↓${c3.cyan(fmtDashTokens(tokOut))}`
|
|
602088
602093
|
);
|
|
602089
602094
|
if (s2.budgetTokensTotal > 0) {
|
|
602090
602095
|
const pct = Math.round(
|
|
@@ -614734,7 +614739,7 @@ function renderTelegramSubAgentComplete(username, summary) {
|
|
|
614734
614739
|
}
|
|
614735
614740
|
function renderTelegramSubAgentError(username, error) {
|
|
614736
614741
|
const preview = error.length > 80 ? error.slice(0, 77) + "..." : error;
|
|
614737
|
-
process.stdout.write(` ${c3.dim("│")} ${c3.
|
|
614742
|
+
process.stdout.write(` ${c3.dim("│")} ${c3.magenta("✘")} @${username}: ${c3.dim(preview)}
|
|
614738
614743
|
`);
|
|
614739
614744
|
}
|
|
614740
614745
|
var TELEGRAM_TOOL_ACTION_GROUPS, TELEGRAM_TOOL_ACTION_GROUP, TELEGRAM_TOOL_MUTATING_GROUPS, DEFAULT_TELEGRAM_TOOL_GROUP_POLICY, TELEGRAM_TOOL_BUTTON_LABELS, TELEGRAM_SAFETY_PROMPT, ADMIN_DM_PROMPT, ADMIN_GROUP_PROMPT, TELEGRAM_PUBLIC_SOUL_PROFILE, TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT, TELEGRAM_PUBLIC_MEMORY_SCOPE_CONTRACT, TELEGRAM_PUBLIC_VISION_STACK_CONTRACT, GROUP_REPLY_DISCRETION_PROMPT, TELEGRAM_CHAT_MODE_PROMPT, ADMIN_CHAT_PROFILE_PROMPT, TELEGRAM_ACTION_RESPONSE_CONTRACT, TELEGRAM_EXTERNAL_ACQUISITION_CONTRACT, TELEGRAM_INTERACTION_DECISION_RESPONSE_FORMAT, TELEGRAM_STUCK_SELF_TALK_PREFIXES, TELEGRAM_CHAT_HISTORY_LIMIT, TELEGRAM_CONTEXT_RECENT_DEFAULT, TELEGRAM_CONTEXT_LINE_LIMIT, TELEGRAM_CONTEXT_SAMPLE_LIMIT, TELEGRAM_MEMORY_CARD_LIMIT, TELEGRAM_MEMORY_NOTE_LIMIT, TELEGRAM_ASSOCIATIVE_FACT_LIMIT, TELEGRAM_ASSOCIATIVE_USER_FACT_LIMIT, TELEGRAM_ASSOCIATIVE_ACTION_LIMIT, TELEGRAM_ASSOCIATIVE_RELATION_LIMIT, TELEGRAM_MEMORY_STOPWORDS, TELEGRAM_MEMORY_GENERIC_QUERY_TOKENS, TELEGRAM_SUB_AGENT_BOUNDED_OPTIONS, TELEGRAM_PUBLIC_HELP_COMMANDS2, TELEGRAM_REMINDER_SLASH_COMMANDS, TELEGRAM_REFLECTION_SLASH_COMMANDS, TELEGRAM_PUBLIC_BOT_COMMAND_NAMES, TELEGRAM_IMAGE_EXTENSIONS, MEDIA_CACHE_TTL_MS, TELEGRAM_CHANNEL_DMN_SWEEP_MS, TELEGRAM_CHANNEL_DMN_IDLE_AFTER_MS, TELEGRAM_CHANNEL_DMN_MIN_INTERVAL_MS, TELEGRAM_CHANNEL_DMN_MIN_MESSAGES, TELEGRAM_ALLOWED_UPDATES, TELEGRAM_PUBLIC_TOOL_QUOTAS, TelegramBridge;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.98",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.98",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED