omnius 1.0.96 → 1.0.97
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 +13 -13
- 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":
|
|
@@ -564086,13 +564086,13 @@ function isRawJsonDump(line) {
|
|
|
564086
564086
|
}
|
|
564087
564087
|
function highlightToolOutput(line) {
|
|
564088
564088
|
if (line.startsWith("+") && !line.startsWith("+++")) return c3.green(line);
|
|
564089
|
-
if (line.startsWith("-") && !line.startsWith("---")) return c3.
|
|
564089
|
+
if (line.startsWith("-") && !line.startsWith("---")) return c3.magenta(line);
|
|
564090
564090
|
if (line.startsWith("@@")) return c3.cyan(line);
|
|
564091
564091
|
if (line.startsWith("---") || line.startsWith("+++")) return c3.bold(line);
|
|
564092
|
-
if (/error/i.test(line) && !/0 error/i.test(line)) return c3.
|
|
564092
|
+
if (/error/i.test(line) && !/0 error/i.test(line)) return c3.magenta(line);
|
|
564093
564093
|
if (/warning/i.test(line) && !/0 warning/i.test(line)) return c3.yellow(line);
|
|
564094
564094
|
if (/\bpass(ed|ing)?\b/i.test(line)) return c3.green(line);
|
|
564095
|
-
if (/\bfail(ed|ing|ure)?\b/i.test(line)) return c3.
|
|
564095
|
+
if (/\bfail(ed|ing|ure)?\b/i.test(line)) return c3.magenta(line);
|
|
564096
564096
|
const formatted = formatInlineMarkdown(line);
|
|
564097
564097
|
if (formatted !== line) return formatted;
|
|
564098
564098
|
return c3.dim(line);
|
|
@@ -567178,7 +567178,7 @@ ${this.formatConnectionInfo()}`);
|
|
|
567178
567178
|
const uptimeSec = Math.floor((Date.now() - s2.startedAt) / 1e3);
|
|
567179
567179
|
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
567180
|
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.
|
|
567181
|
+
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.magenta("error") : c3.yellow("standby")}`);
|
|
567182
567182
|
lines.push(` ${c3.cyan("Uptime".padEnd(18))} ${uptimeStr}`);
|
|
567183
567183
|
lines.push(` ${c3.cyan("Total requests".padEnd(18))} ${s2.totalRequests}`);
|
|
567184
567184
|
lines.push(` ${c3.cyan("Active conns".padEnd(18))} ${s2.activeConnections}`);
|
|
@@ -567669,7 +567669,7 @@ ${this.formatConnectionInfo()}`);
|
|
|
567669
567669
|
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
567670
|
const modeTag = this._passthrough ? c3.dim("(libp2p passthrough)") : c3.dim("(libp2p)");
|
|
567671
567671
|
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.
|
|
567672
|
+
lines.push(` ${c3.cyan("Status".padEnd(18))} ${s2.status === "active" ? c3.green("active") : s2.status === "error" ? c3.magenta("error") : c3.yellow("standby")}`);
|
|
567673
567673
|
lines.push(` ${c3.cyan("Transport".padEnd(18))} libp2p${this._passthrough ? " (passthrough)" : ""}`);
|
|
567674
567674
|
lines.push(` ${c3.cyan("Peer ID".padEnd(18))} ${this._peerId ?? "n/a"}`);
|
|
567675
567675
|
lines.push(` ${c3.cyan("Uptime".padEnd(18))} ${uptimeStr}`);
|
|
@@ -581480,7 +581480,7 @@ var init_drop_panel = __esm({
|
|
|
581480
581480
|
dim: (t2) => ansi4("38;5;250", t2),
|
|
581481
581481
|
cyan: (t2) => ansi4("36", t2),
|
|
581482
581482
|
green: (t2) => ansi4("32", t2),
|
|
581483
|
-
red: (t2) => ansi4("
|
|
581483
|
+
red: (t2) => ansi4("35", t2),
|
|
581484
581484
|
yellow: (t2) => ansi4("33", t2)
|
|
581485
581485
|
};
|
|
581486
581486
|
}
|
|
@@ -600367,7 +600367,7 @@ function renderOllamaCleanupReport(report2, opts) {
|
|
|
600367
600367
|
if (report2.errors && report2.errors.length > 0) {
|
|
600368
600368
|
safeLog("");
|
|
600369
600369
|
for (const err of report2.errors) {
|
|
600370
|
-
safeLog(` ${c3.
|
|
600370
|
+
safeLog(` ${c3.magenta(`PID ${err.pid}: ${err.error}`)}`);
|
|
600371
600371
|
}
|
|
600372
600372
|
}
|
|
600373
600373
|
if (!opts.scanOnly && opts.dryRun) {
|
|
@@ -600406,7 +600406,7 @@ async function handleMcp(subcommand, ctx3) {
|
|
|
600406
600406
|
}
|
|
600407
600407
|
renderInfo(`MCP servers (${conns.length}):`);
|
|
600408
600408
|
for (const conn of conns) {
|
|
600409
|
-
const status = conn.status === "connected" ? c3.green("●") : c3.
|
|
600409
|
+
const status = conn.status === "connected" ? c3.green("●") : c3.magenta("●");
|
|
600410
600410
|
renderInfo(` ${status} ${conn.name} [${conn.tools.length} tools]`);
|
|
600411
600411
|
}
|
|
600412
600412
|
return;
|
|
@@ -600461,7 +600461,7 @@ async function showMcpMainMenu(ctx3) {
|
|
|
600461
600461
|
const conn = conns.find((c9) => c9.name === name10);
|
|
600462
600462
|
const persisted = cfg.mcpServers[name10];
|
|
600463
600463
|
const status = conn?.status ?? (persisted ? "disconnected" : "missing");
|
|
600464
|
-
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.
|
|
600464
|
+
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.magenta("●") : c3.yellow("●");
|
|
600465
600465
|
const toolCount = conn?.tools?.length ?? 0;
|
|
600466
600466
|
const transport = persisted ? "command" in persisted ? "stdio" : persisted.type ?? "http" : "?";
|
|
600467
600467
|
const detail = `${transport} ${toolCount} tools status: ${status}${conn?.error ? " — " + String(conn.error).slice(0, 40) : ""}`;
|
|
@@ -600624,7 +600624,7 @@ async function showMcpDetailMenu(ctx3, serverName) {
|
|
|
600624
600624
|
});
|
|
600625
600625
|
skipKeys.push("hdr_name");
|
|
600626
600626
|
const status = conn?.status ?? "disconnected";
|
|
600627
|
-
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.
|
|
600627
|
+
const dot = status === "connected" ? c3.green("●") : status === "failed" ? c3.magenta("●") : c3.yellow("●");
|
|
600628
600628
|
items.push({
|
|
600629
600629
|
key: "info_status",
|
|
600630
600630
|
label: ` ${dot} status: ${status}${conn?.error ? " — " + String(conn.error).slice(0, 80) : ""}`,
|
|
@@ -602084,7 +602084,7 @@ async function showExposeDashboard(gateway, rl, ctx3) {
|
|
|
602084
602084
|
const activeDot = activeConns > 0 ? c3.green(`● ${activeConns}`) : c3.dim("0");
|
|
602085
602085
|
lines.push("");
|
|
602086
602086
|
lines.push(
|
|
602087
|
-
` ${c3.dim("Req")} ${c3.bold(String(totalReqs))} ${c3.dim("Active")} ${activeDot} ${c3.dim("Err")} ${errors > 0 ? c3.
|
|
602087
|
+
` ${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
602088
|
);
|
|
602089
602089
|
if (s2.budgetTokensTotal > 0) {
|
|
602090
602090
|
const pct = Math.round(
|
|
@@ -614734,7 +614734,7 @@ function renderTelegramSubAgentComplete(username, summary) {
|
|
|
614734
614734
|
}
|
|
614735
614735
|
function renderTelegramSubAgentError(username, error) {
|
|
614736
614736
|
const preview = error.length > 80 ? error.slice(0, 77) + "..." : error;
|
|
614737
|
-
process.stdout.write(` ${c3.dim("│")} ${c3.
|
|
614737
|
+
process.stdout.write(` ${c3.dim("│")} ${c3.magenta("✘")} @${username}: ${c3.dim(preview)}
|
|
614738
614738
|
`);
|
|
614739
614739
|
}
|
|
614740
614740
|
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.97",
|
|
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.97",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED