open-agents-ai 0.187.57 → 0.187.58
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 +169 -91
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -85626,22 +85626,22 @@ var require_axios = __commonJS({
|
|
|
85626
85626
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
85627
85627
|
var xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
85628
85628
|
return new Promise(function dispatchXhrRequest(resolve39, reject) {
|
|
85629
|
-
const
|
|
85630
|
-
let requestData =
|
|
85631
|
-
const requestHeaders = AxiosHeaders$1.from(
|
|
85632
|
-
let { responseType, onUploadProgress, onDownloadProgress } =
|
|
85629
|
+
const _config3 = resolveConfig(config);
|
|
85630
|
+
let requestData = _config3.data;
|
|
85631
|
+
const requestHeaders = AxiosHeaders$1.from(_config3.headers).normalize();
|
|
85632
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config3;
|
|
85633
85633
|
let onCanceled;
|
|
85634
85634
|
let uploadThrottled, downloadThrottled;
|
|
85635
85635
|
let flushUpload, flushDownload;
|
|
85636
85636
|
function done() {
|
|
85637
85637
|
flushUpload && flushUpload();
|
|
85638
85638
|
flushDownload && flushDownload();
|
|
85639
|
-
|
|
85640
|
-
|
|
85639
|
+
_config3.cancelToken && _config3.cancelToken.unsubscribe(onCanceled);
|
|
85640
|
+
_config3.signal && _config3.signal.removeEventListener("abort", onCanceled);
|
|
85641
85641
|
}
|
|
85642
85642
|
let request = new XMLHttpRequest();
|
|
85643
|
-
request.open(
|
|
85644
|
-
request.timeout =
|
|
85643
|
+
request.open(_config3.method.toUpperCase(), _config3.url, true);
|
|
85644
|
+
request.timeout = _config3.timeout;
|
|
85645
85645
|
function onloadend() {
|
|
85646
85646
|
if (!request) {
|
|
85647
85647
|
return;
|
|
@@ -85699,10 +85699,10 @@ var require_axios = __commonJS({
|
|
|
85699
85699
|
request = null;
|
|
85700
85700
|
};
|
|
85701
85701
|
request.ontimeout = function handleTimeout() {
|
|
85702
|
-
let timeoutErrorMessage =
|
|
85703
|
-
const transitional =
|
|
85704
|
-
if (
|
|
85705
|
-
timeoutErrorMessage =
|
|
85702
|
+
let timeoutErrorMessage = _config3.timeout ? "timeout of " + _config3.timeout + "ms exceeded" : "timeout exceeded";
|
|
85703
|
+
const transitional = _config3.transitional || transitionalDefaults;
|
|
85704
|
+
if (_config3.timeoutErrorMessage) {
|
|
85705
|
+
timeoutErrorMessage = _config3.timeoutErrorMessage;
|
|
85706
85706
|
}
|
|
85707
85707
|
reject(
|
|
85708
85708
|
new AxiosError$1(
|
|
@@ -85720,11 +85720,11 @@ var require_axios = __commonJS({
|
|
|
85720
85720
|
request.setRequestHeader(key, val);
|
|
85721
85721
|
});
|
|
85722
85722
|
}
|
|
85723
|
-
if (!utils$1.isUndefined(
|
|
85724
|
-
request.withCredentials = !!
|
|
85723
|
+
if (!utils$1.isUndefined(_config3.withCredentials)) {
|
|
85724
|
+
request.withCredentials = !!_config3.withCredentials;
|
|
85725
85725
|
}
|
|
85726
85726
|
if (responseType && responseType !== "json") {
|
|
85727
|
-
request.responseType =
|
|
85727
|
+
request.responseType = _config3.responseType;
|
|
85728
85728
|
}
|
|
85729
85729
|
if (onDownloadProgress) {
|
|
85730
85730
|
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
@@ -85735,7 +85735,7 @@ var require_axios = __commonJS({
|
|
|
85735
85735
|
request.upload.addEventListener("progress", uploadThrottled);
|
|
85736
85736
|
request.upload.addEventListener("loadend", flushUpload);
|
|
85737
85737
|
}
|
|
85738
|
-
if (
|
|
85738
|
+
if (_config3.cancelToken || _config3.signal) {
|
|
85739
85739
|
onCanceled = (cancel) => {
|
|
85740
85740
|
if (!request) {
|
|
85741
85741
|
return;
|
|
@@ -85744,12 +85744,12 @@ var require_axios = __commonJS({
|
|
|
85744
85744
|
request.abort();
|
|
85745
85745
|
request = null;
|
|
85746
85746
|
};
|
|
85747
|
-
|
|
85748
|
-
if (
|
|
85749
|
-
|
|
85747
|
+
_config3.cancelToken && _config3.cancelToken.subscribe(onCanceled);
|
|
85748
|
+
if (_config3.signal) {
|
|
85749
|
+
_config3.signal.aborted ? onCanceled() : _config3.signal.addEventListener("abort", onCanceled);
|
|
85750
85750
|
}
|
|
85751
85751
|
}
|
|
85752
|
-
const protocol = parseProtocol(
|
|
85752
|
+
const protocol = parseProtocol(_config3.url);
|
|
85753
85753
|
if (protocol && platform6.protocols.indexOf(protocol) === -1) {
|
|
85754
85754
|
reject(
|
|
85755
85755
|
new AxiosError$1(
|
|
@@ -271208,7 +271208,7 @@ function formatDuration2(ms) {
|
|
|
271208
271208
|
const secs = Math.floor(totalSecs % 60);
|
|
271209
271209
|
return `${mins}m ${secs}s`;
|
|
271210
271210
|
}
|
|
271211
|
-
var isTTY2, c3,
|
|
271211
|
+
var isTTY2, c3, _emojisEnabled, _colorsEnabled, MD, TOOL_ICONS, TOOL_LABELS, accent, accentBright, accentDim, accentWarm, accentSoft, TOOL_COLORS, _contentWriteHook, SLASH_COMMANDS;
|
|
271212
271212
|
var init_render = __esm({
|
|
271213
271213
|
"packages/cli/dist/tui/render.js"() {
|
|
271214
271214
|
"use strict";
|
|
@@ -271227,19 +271227,7 @@ var init_render = __esm({
|
|
|
271227
271227
|
bgBlue: (t2) => ansi2("44", t2),
|
|
271228
271228
|
bgGreen: (t2) => ansi2("42", t2)
|
|
271229
271229
|
};
|
|
271230
|
-
|
|
271231
|
-
pink: (t2) => fg256(218, t2),
|
|
271232
|
-
peach: (t2) => fg256(216, t2),
|
|
271233
|
-
lavender: (t2) => fg256(183, t2),
|
|
271234
|
-
mint: (t2) => fg256(158, t2),
|
|
271235
|
-
sky: (t2) => fg256(117, t2),
|
|
271236
|
-
coral: (t2) => fg256(209, t2),
|
|
271237
|
-
lilac: (t2) => fg256(177, t2),
|
|
271238
|
-
sage: (t2) => fg256(151, t2),
|
|
271239
|
-
butter: (t2) => fg256(229, t2),
|
|
271240
|
-
ice: (t2) => fg256(153, t2)
|
|
271241
|
-
};
|
|
271242
|
-
_emojisEnabled = true;
|
|
271230
|
+
_emojisEnabled = false;
|
|
271243
271231
|
_colorsEnabled = true;
|
|
271244
271232
|
MD = {
|
|
271245
271233
|
heading1: 75,
|
|
@@ -271333,37 +271321,42 @@ var init_render = __esm({
|
|
|
271333
271321
|
// User interaction
|
|
271334
271322
|
ask_user: "Ask user"
|
|
271335
271323
|
};
|
|
271324
|
+
accent = (t2) => fg256(178, t2);
|
|
271325
|
+
accentBright = (t2) => fg256(220, t2);
|
|
271326
|
+
accentDim = (t2) => fg256(136, t2);
|
|
271327
|
+
accentWarm = (t2) => fg256(214, t2);
|
|
271328
|
+
accentSoft = (t2) => fg256(180, t2);
|
|
271336
271329
|
TOOL_COLORS = {
|
|
271337
|
-
file_read:
|
|
271338
|
-
file_write:
|
|
271339
|
-
file_edit:
|
|
271340
|
-
shell:
|
|
271341
|
-
grep_search:
|
|
271342
|
-
find_files:
|
|
271343
|
-
list_directory:
|
|
271344
|
-
web_search:
|
|
271345
|
-
web_fetch:
|
|
271346
|
-
memory_read:
|
|
271347
|
-
memory_write:
|
|
271348
|
-
task_complete:
|
|
271349
|
-
aiwg_setup:
|
|
271350
|
-
aiwg_health:
|
|
271351
|
-
aiwg_workflow:
|
|
271352
|
-
batch_edit:
|
|
271353
|
-
codebase_map:
|
|
271354
|
-
diagnostic:
|
|
271355
|
-
git_info:
|
|
271356
|
-
background_run:
|
|
271357
|
-
task_status:
|
|
271358
|
-
task_output:
|
|
271359
|
-
task_stop:
|
|
271360
|
-
sub_agent:
|
|
271361
|
-
image_read:
|
|
271362
|
-
screenshot:
|
|
271363
|
-
ocr:
|
|
271364
|
-
transcribe_file:
|
|
271365
|
-
transcribe_url:
|
|
271366
|
-
ask_user:
|
|
271330
|
+
file_read: accentSoft,
|
|
271331
|
+
file_write: accentWarm,
|
|
271332
|
+
file_edit: accentWarm,
|
|
271333
|
+
shell: accentBright,
|
|
271334
|
+
grep_search: accentDim,
|
|
271335
|
+
find_files: accentDim,
|
|
271336
|
+
list_directory: accentDim,
|
|
271337
|
+
web_search: accent,
|
|
271338
|
+
web_fetch: accent,
|
|
271339
|
+
memory_read: accentSoft,
|
|
271340
|
+
memory_write: accentSoft,
|
|
271341
|
+
task_complete: accentBright,
|
|
271342
|
+
aiwg_setup: accentDim,
|
|
271343
|
+
aiwg_health: accentDim,
|
|
271344
|
+
aiwg_workflow: accentDim,
|
|
271345
|
+
batch_edit: accentWarm,
|
|
271346
|
+
codebase_map: accentDim,
|
|
271347
|
+
diagnostic: accentWarm,
|
|
271348
|
+
git_info: accentDim,
|
|
271349
|
+
background_run: accent,
|
|
271350
|
+
task_status: accent,
|
|
271351
|
+
task_output: accent,
|
|
271352
|
+
task_stop: accent,
|
|
271353
|
+
sub_agent: accentBright,
|
|
271354
|
+
image_read: accentSoft,
|
|
271355
|
+
screenshot: accentSoft,
|
|
271356
|
+
ocr: accentSoft,
|
|
271357
|
+
transcribe_file: accentWarm,
|
|
271358
|
+
transcribe_url: accentWarm,
|
|
271359
|
+
ask_user: accentBright
|
|
271367
271360
|
};
|
|
271368
271361
|
_contentWriteHook = null;
|
|
271369
271362
|
SLASH_COMMANDS = [
|
|
@@ -276696,6 +276689,57 @@ var init_oa_directory = __esm({
|
|
|
276696
276689
|
}
|
|
276697
276690
|
});
|
|
276698
276691
|
|
|
276692
|
+
// packages/cli/dist/tui/theme.js
|
|
276693
|
+
function setThemeMode(mode) {
|
|
276694
|
+
_config2 = { ...PRESETS[mode] };
|
|
276695
|
+
}
|
|
276696
|
+
function getThemeConfig() {
|
|
276697
|
+
return _config2;
|
|
276698
|
+
}
|
|
276699
|
+
var PRESETS, _config2;
|
|
276700
|
+
var init_theme = __esm({
|
|
276701
|
+
"packages/cli/dist/tui/theme.js"() {
|
|
276702
|
+
"use strict";
|
|
276703
|
+
PRESETS = {
|
|
276704
|
+
system: {
|
|
276705
|
+
mode: "system",
|
|
276706
|
+
bg: -1,
|
|
276707
|
+
// terminal default background
|
|
276708
|
+
accent: -1,
|
|
276709
|
+
// terminal default foreground
|
|
276710
|
+
textPrimary: -1,
|
|
276711
|
+
// terminal default foreground
|
|
276712
|
+
textDim: 245,
|
|
276713
|
+
// slightly dim
|
|
276714
|
+
boxColor: -1
|
|
276715
|
+
// terminal default foreground
|
|
276716
|
+
},
|
|
276717
|
+
branding: {
|
|
276718
|
+
mode: "branding",
|
|
276719
|
+
bg: 0,
|
|
276720
|
+
// black
|
|
276721
|
+
accent: 178,
|
|
276722
|
+
// #ffae00 yellow
|
|
276723
|
+
textPrimary: 178,
|
|
276724
|
+
// #ffae00 yellow
|
|
276725
|
+
textDim: 240,
|
|
276726
|
+
// grey
|
|
276727
|
+
boxColor: 178
|
|
276728
|
+
// #ffae00 yellow
|
|
276729
|
+
},
|
|
276730
|
+
custom: {
|
|
276731
|
+
mode: "custom",
|
|
276732
|
+
bg: 0,
|
|
276733
|
+
accent: 178,
|
|
276734
|
+
textPrimary: 252,
|
|
276735
|
+
textDim: 245,
|
|
276736
|
+
boxColor: 252
|
|
276737
|
+
}
|
|
276738
|
+
};
|
|
276739
|
+
_config2 = { ...PRESETS.branding };
|
|
276740
|
+
}
|
|
276741
|
+
});
|
|
276742
|
+
|
|
276699
276743
|
// packages/cli/dist/tui/overlay-lock.js
|
|
276700
276744
|
var overlay_lock_exports = {};
|
|
276701
276745
|
__export(overlay_lock_exports, {
|
|
@@ -285603,6 +285647,12 @@ async function handleSlashCommand(input, ctx3) {
|
|
|
285603
285647
|
await showConfigEditor(ctx3);
|
|
285604
285648
|
return "handled";
|
|
285605
285649
|
}
|
|
285650
|
+
case "color":
|
|
285651
|
+
case "colors":
|
|
285652
|
+
case "theme": {
|
|
285653
|
+
await showColorMenu(ctx3);
|
|
285654
|
+
return "handled";
|
|
285655
|
+
}
|
|
285606
285656
|
case "cost":
|
|
285607
285657
|
case "costs":
|
|
285608
285658
|
if (ctx3.costTracker) {
|
|
@@ -288213,6 +288263,40 @@ The session corrections MUST become hard rules in the SKILL.md Rules section.`;
|
|
|
288213
288263
|
}
|
|
288214
288264
|
}
|
|
288215
288265
|
}
|
|
288266
|
+
async function showColorMenu(_ctx) {
|
|
288267
|
+
const currentConfig = getThemeConfig();
|
|
288268
|
+
const items = [
|
|
288269
|
+
{
|
|
288270
|
+
key: "system",
|
|
288271
|
+
label: `System defaults${currentConfig.mode === "system" ? " (active)" : ""}`,
|
|
288272
|
+
detail: "Inherit terminal fg/bg colors"
|
|
288273
|
+
},
|
|
288274
|
+
{
|
|
288275
|
+
key: "branding",
|
|
288276
|
+
label: `OA Branding${currentConfig.mode === "branding" ? " (active)" : ""}`,
|
|
288277
|
+
detail: "#ffae00 accent on black"
|
|
288278
|
+
},
|
|
288279
|
+
{
|
|
288280
|
+
key: "custom",
|
|
288281
|
+
label: `Custom${currentConfig.mode === "custom" ? " (active)" : ""}`,
|
|
288282
|
+
detail: "User-defined overrides"
|
|
288283
|
+
}
|
|
288284
|
+
];
|
|
288285
|
+
const result = await tuiSelect({
|
|
288286
|
+
items,
|
|
288287
|
+
title: "Color Theme"
|
|
288288
|
+
});
|
|
288289
|
+
if (!result || result.key === "cancel")
|
|
288290
|
+
return;
|
|
288291
|
+
setThemeMode(result.key);
|
|
288292
|
+
renderInfo(`Theme set to: ${result.key}`);
|
|
288293
|
+
try {
|
|
288294
|
+
const settings = loadGlobalSettings();
|
|
288295
|
+
settings.colorTheme = result.key;
|
|
288296
|
+
saveGlobalSettings(settings);
|
|
288297
|
+
} catch {
|
|
288298
|
+
}
|
|
288299
|
+
}
|
|
288216
288300
|
async function showConfigEditor(ctx3) {
|
|
288217
288301
|
const merged = { ...loadGlobalSettings(), ...loadProjectSettings(ctx3.repoRoot) };
|
|
288218
288302
|
const pendingChanges = {};
|
|
@@ -291084,6 +291168,7 @@ var init_commands = __esm({
|
|
|
291084
291168
|
init_dist8();
|
|
291085
291169
|
init_updater();
|
|
291086
291170
|
init_oa_directory();
|
|
291171
|
+
init_theme();
|
|
291087
291172
|
init_setup();
|
|
291088
291173
|
init_listen();
|
|
291089
291174
|
init_dist();
|
|
@@ -299242,13 +299327,6 @@ var init_text_selection = __esm({
|
|
|
299242
299327
|
}
|
|
299243
299328
|
});
|
|
299244
299329
|
|
|
299245
|
-
// packages/cli/dist/tui/theme.js
|
|
299246
|
-
var init_theme = __esm({
|
|
299247
|
-
"packages/cli/dist/tui/theme.js"() {
|
|
299248
|
-
"use strict";
|
|
299249
|
-
}
|
|
299250
|
-
});
|
|
299251
|
-
|
|
299252
299330
|
// packages/cli/dist/tui/status-bar.js
|
|
299253
299331
|
import { readFileSync as readFileSync45 } from "node:fs";
|
|
299254
299332
|
function setTerminalTitle(task, version4) {
|
|
@@ -301014,8 +301092,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301014
301092
|
buildMetricsLine() {
|
|
301015
301093
|
const m2 = this.metrics;
|
|
301016
301094
|
const termWidth = getTermWidth();
|
|
301017
|
-
const
|
|
301018
|
-
const pipe3 =
|
|
301095
|
+
const pastel = (code8, s2) => `${PANEL_BG_SEQ}\x1B[38;5;${code8}m${s2}\x1B[0m${PANEL_BG_SEQ}`;
|
|
301096
|
+
const pipe3 = pastel(60, " \u2502 ");
|
|
301019
301097
|
const pipeW = 3;
|
|
301020
301098
|
const sections = [];
|
|
301021
301099
|
const compactOrder = [];
|
|
@@ -301029,8 +301107,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301029
301107
|
const effectiveOut = this.effectiveCompletionTokens;
|
|
301030
301108
|
const tokOutRaw = effectiveOut > 0 ? effectiveOut : Math.ceil(m2.totalTokens > 0 ? m2.totalTokens - m2.promptTokens : m2.estimatedContextTokens * 0.3);
|
|
301031
301109
|
const tokOutVal = Math.max(0, tokOutRaw);
|
|
301032
|
-
const tokExpanded =
|
|
301033
|
-
const tokCompact =
|
|
301110
|
+
const tokExpanded = pastel(117, "\u2191") + c3.bold(tokInRaw.toLocaleString()) + " " + pastel(151, "\u2193") + c3.bold(tokOutVal.toLocaleString());
|
|
301111
|
+
const tokCompact = pastel(117, "\u2191") + c3.bold(_StatusBar.compactNum(tokInRaw)) + " " + pastel(151, "\u2193") + c3.bold(_StatusBar.compactNum(tokOutVal));
|
|
301034
301112
|
const tokExpW = 1 + tokInRaw.toLocaleString().length + 1 + 1 + tokOutVal.toLocaleString().length;
|
|
301035
301113
|
const tokCompW = 1 + _StatusBar.compactNum(tokInRaw).length + 1 + 1 + _StatusBar.compactNum(tokOutVal).length;
|
|
301036
301114
|
sections.push({ expanded: tokExpanded, compact: tokCompact, expandedW: tokExpW, compactW: tokCompW, empty: false });
|
|
@@ -301062,14 +301140,14 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301062
301140
|
if (this._modelName) {
|
|
301063
301141
|
const paramMatch = this._modelName.match(/(\d+\.?\d*[bBmM])/);
|
|
301064
301142
|
const paramStr = paramMatch ? paramMatch[1] : this._modelName.split(":")[0]?.split("/").pop() ?? this._modelName;
|
|
301065
|
-
const modelExpanded =
|
|
301066
|
-
const modelCompact = (capParts.length > 0 ?
|
|
301143
|
+
const modelExpanded = pastel(146, this._modelName) + (capsStr ? " " + pastel(183, capParts.join(" ")) : "") + ctxSuffix;
|
|
301144
|
+
const modelCompact = (capParts.length > 0 ? pastel(183, capParts.join(" ")) : pastel(146, paramStr)) + ctxCompSuffix;
|
|
301067
301145
|
const expW = this._modelName.length + capsVisW + ctxSuffixW;
|
|
301068
301146
|
const compW = (capParts.length > 0 ? capParts.length * 2 + (capParts.length - 1) : paramStr.length) + ctxCompSuffixW;
|
|
301069
301147
|
modelSectionIdx = sections.length;
|
|
301070
301148
|
sections.push({ expanded: modelExpanded, compact: modelCompact, expandedW: expW, compactW: compW, empty: false });
|
|
301071
301149
|
} else if (capParts.length > 0) {
|
|
301072
|
-
const capsOnly =
|
|
301150
|
+
const capsOnly = pastel(183, capParts.join(" ")) + ctxCompSuffix;
|
|
301073
301151
|
const capsOnlyW = capParts.length * 2 + (capParts.length - 1) + ctxCompSuffixW;
|
|
301074
301152
|
sections.push({ expanded: capsOnly, compact: capsOnly, expandedW: capsOnlyW, compactW: capsOnlyW, empty: false });
|
|
301075
301153
|
} else if (ctxTotal > 0) {
|
|
@@ -301081,13 +301159,13 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301081
301159
|
const snrColor = snrPct >= 70 ? c3.green : snrPct >= 40 ? c3.yellow : c3.red;
|
|
301082
301160
|
const dPrimeStr = this._snr.dPrime.toFixed(1);
|
|
301083
301161
|
const capStr = this._snr.capacityWarning ? c3.red(" !CAP") : "";
|
|
301084
|
-
const snrExpanded =
|
|
301162
|
+
const snrExpanded = pastel(183, "SNR ") + snrColor(c3.bold(`${snrPct}%`)) + c3.dim(` d'${dPrimeStr}`) + capStr;
|
|
301085
301163
|
const snrCompact = snrColor(`${snrPct}%`);
|
|
301086
301164
|
const expW = 4 + `${snrPct}%`.length + 3 + dPrimeStr.length + (this._snr.capacityWarning ? 5 : 0);
|
|
301087
301165
|
sections.push({ expanded: snrExpanded, compact: snrCompact, expandedW: expW, compactW: `${snrPct}%`.length, empty: false });
|
|
301088
301166
|
}
|
|
301089
301167
|
if (this._emotion) {
|
|
301090
|
-
const emotionExpanded = this._emotion.emoji + " " +
|
|
301168
|
+
const emotionExpanded = this._emotion.emoji + " " + pastel(183, this._emotion.label);
|
|
301091
301169
|
const emotionCompact = this._emotion.emoji;
|
|
301092
301170
|
sections.push({
|
|
301093
301171
|
expanded: emotionExpanded,
|
|
@@ -301102,7 +301180,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301102
301180
|
if (ratio > 0) {
|
|
301103
301181
|
const ratioStr = ratio >= 10 ? `${Math.round(ratio)}x` : `${ratio.toFixed(1)}x`;
|
|
301104
301182
|
const ratioColor = ratio >= 2 ? c3.green : ratio >= 1 ? c3.yellow : c3.red;
|
|
301105
|
-
const speedExpanded =
|
|
301183
|
+
const speedExpanded = pastel(218, "Exp ") + ratioColor(c3.bold(ratioStr));
|
|
301106
301184
|
sections.push({
|
|
301107
301185
|
expanded: speedExpanded,
|
|
301108
301186
|
compact: speedExpanded,
|
|
@@ -301114,7 +301192,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301114
301192
|
}
|
|
301115
301193
|
if (m2.hasPricing && m2.estimatedCost !== void 0) {
|
|
301116
301194
|
const costStr = m2.estimatedCost < 0.01 ? `$${m2.estimatedCost.toFixed(4)}` : m2.estimatedCost < 1 ? `$${m2.estimatedCost.toFixed(3)}` : `$${m2.estimatedCost.toFixed(2)}`;
|
|
301117
|
-
const costExpanded =
|
|
301195
|
+
const costExpanded = pastel(222, "Cost ") + c3.bold(costStr);
|
|
301118
301196
|
const costCompact = c3.bold(costStr);
|
|
301119
301197
|
sections.push({
|
|
301120
301198
|
expanded: costExpanded,
|
|
@@ -301137,8 +301215,8 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301137
301215
|
const visibleReqs = Array.from(this._expose.modelUsage.entries()).filter(([m3]) => !INTERNAL_CAPS.has(m3)).reduce((sum, [, n2]) => sum + n2, 0);
|
|
301138
301216
|
const reqStr = visibleReqs > 0 ? ` ${visibleReqs}req` : "";
|
|
301139
301217
|
const connStr = this._expose.activeConnections > 0 ? ` ${this._expose.activeConnections}conn` : "";
|
|
301140
|
-
const exposeExpanded = statusEmoji +
|
|
301141
|
-
const exposeCompact = statusEmoji + (modelStr ?
|
|
301218
|
+
const exposeExpanded = statusEmoji + pastel(183, (modelStr ? " " + modelStr : "") + reqStr + connStr);
|
|
301219
|
+
const exposeCompact = statusEmoji + (modelStr ? pastel(183, " " + modelStr) : "");
|
|
301142
301220
|
const expFullStr = (modelStr ? " " + modelStr : "") + reqStr + connStr;
|
|
301143
301221
|
const expCompStr = modelStr ? " " + modelStr : "";
|
|
301144
301222
|
sections.push({
|
|
@@ -301153,7 +301231,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301153
301231
|
const um = this._unifiedMetrics ?? getInstantSnapshot();
|
|
301154
301232
|
const rm3 = um.hardware;
|
|
301155
301233
|
const isLocal = um.source === "local";
|
|
301156
|
-
const srcTag = isLocal ?
|
|
301234
|
+
const srcTag = isLocal ? pastel(120, "L") : pastel(117, "R");
|
|
301157
301235
|
const srcW = 1;
|
|
301158
301236
|
let hwExpStr = "";
|
|
301159
301237
|
let hwCompStr = "";
|
|
@@ -301201,7 +301279,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301201
301279
|
const net5 = um.network;
|
|
301202
301280
|
const rxStr = formatRate(net5.rxBytesPerSec);
|
|
301203
301281
|
const txStr = formatRate(net5.txBytesPerSec);
|
|
301204
|
-
const netExpStr = ` ${
|
|
301282
|
+
const netExpStr = ` ${pastel(116, "\u2193" + rxStr)} ${pastel(218, "\u2191" + txStr)}`;
|
|
301205
301283
|
const netCompStr = netExpStr;
|
|
301206
301284
|
const netW = 1 + 1 + rxStr.length + 1 + 1 + txStr.length;
|
|
301207
301285
|
const sysExpanded = srcTag + " " + hwExpStr + netExpStr;
|
|
@@ -301215,15 +301293,15 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301215
301293
|
});
|
|
301216
301294
|
}
|
|
301217
301295
|
if (this._recording) {
|
|
301218
|
-
const dot = this._recBlink ?
|
|
301296
|
+
const dot = this._recBlink ? pastel(210, "\u25CF") : " ";
|
|
301219
301297
|
const countdown = this._countdown > 0 ? c3.dim(` ${this._countdown}s`) : "";
|
|
301220
|
-
const recStr = dot +
|
|
301298
|
+
const recStr = dot + pastel(210, " REC") + countdown;
|
|
301221
301299
|
const recW = 1 + 4 + (this._countdown > 0 ? 1 + `${this._countdown}s`.length : 0);
|
|
301222
301300
|
sections.push({ expanded: recStr, compact: recStr, expandedW: recW, compactW: recW, empty: false });
|
|
301223
301301
|
}
|
|
301224
301302
|
if (this._version) {
|
|
301225
301303
|
versionSectionIdx = sections.length;
|
|
301226
|
-
const vStr =
|
|
301304
|
+
const vStr = pastel(245, "v" + this._version);
|
|
301227
301305
|
const vW = 1 + this._version.length;
|
|
301228
301306
|
sections.push({ expanded: vStr, compact: vStr, expandedW: vW, compactW: vW, empty: false });
|
|
301229
301307
|
}
|
|
@@ -312397,7 +312475,7 @@ __export(index_repo_exports, {
|
|
|
312397
312475
|
import { resolve as resolve37 } from "node:path";
|
|
312398
312476
|
import { existsSync as existsSync66, statSync as statSync17 } from "node:fs";
|
|
312399
312477
|
import { cwd as cwd2 } from "node:process";
|
|
312400
|
-
async function indexRepoCommand(opts,
|
|
312478
|
+
async function indexRepoCommand(opts, _config3) {
|
|
312401
312479
|
const repoRoot = resolve37(opts.repoPath ?? cwd2());
|
|
312402
312480
|
printHeader("Index Repository");
|
|
312403
312481
|
printInfo(`Indexing: ${repoRoot}`);
|
|
@@ -312751,7 +312829,7 @@ function handleShow(opts, config) {
|
|
|
312751
312829
|
}
|
|
312752
312830
|
}
|
|
312753
312831
|
}
|
|
312754
|
-
function handleSet(opts,
|
|
312832
|
+
function handleSet(opts, _config3) {
|
|
312755
312833
|
const { key, value: value2 } = opts;
|
|
312756
312834
|
if (!key) {
|
|
312757
312835
|
printError("Usage: open-agents config set KEY VALUE [--local]");
|
package/package.json
CHANGED