omnius 1.0.501 → 1.0.503
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 +44 -18
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -639045,6 +639045,19 @@ var init_status_bar = __esm({
|
|
|
639045
639045
|
return rawTotal;
|
|
639046
639046
|
}
|
|
639047
639047
|
}
|
|
639048
|
+
/**
|
|
639049
|
+
* The context-window value the OPERATOR-FACING gauge should measure against:
|
|
639050
|
+
* the REAL reported window from the provider/model, NOT the tier-capped
|
|
639051
|
+
* working window. A model advertising 262K must show its gauge against 262K
|
|
639052
|
+
* so "context used" reflects the true headroom the operator expects, not the
|
|
639053
|
+
* internal compaction ceiling. The capped value (effectiveContextTotal) is
|
|
639054
|
+
* still used for internal compaction/threshold logic; this is display-only.
|
|
639055
|
+
* Falls back to the raw window when unknown.
|
|
639056
|
+
*/
|
|
639057
|
+
reportedContextTotal(rawTotal) {
|
|
639058
|
+
if (rawTotal <= 0) return 0;
|
|
639059
|
+
return rawTotal;
|
|
639060
|
+
}
|
|
639048
639061
|
setModelName(name10) {
|
|
639049
639062
|
this.setHeaderIdentity(
|
|
639050
639063
|
name10,
|
|
@@ -641373,7 +641386,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
641373
641386
|
});
|
|
641374
641387
|
{
|
|
641375
641388
|
const ctxUsed = m2.estimatedContextTokens;
|
|
641376
|
-
const ctxTotal = this.
|
|
641389
|
+
const ctxTotal = this.reportedContextTotal(m2.contextWindowSize);
|
|
641377
641390
|
let ctxSuffix = "";
|
|
641378
641391
|
let ctxSuffixW = 0;
|
|
641379
641392
|
let ctxCompSuffix = "";
|
|
@@ -641742,7 +641755,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
641742
641755
|
/** Push current context window usage to the braille spinner */
|
|
641743
641756
|
pushSpinnerContextMetrics() {
|
|
641744
641757
|
const ctxUsed = this.metrics.estimatedContextTokens;
|
|
641745
|
-
const ctxTotal = this.
|
|
641758
|
+
const ctxTotal = this.reportedContextTotal(this.metrics.contextWindowSize);
|
|
641746
641759
|
const contextPct = ctxTotal > 0 ? Math.round(ctxUsed / ctxTotal * 100) : 0;
|
|
641747
641760
|
this._brailleSpinner.setMetrics({ contextPct });
|
|
641748
641761
|
}
|
|
@@ -743125,7 +743138,7 @@ function gatherMemorySnippets(root) {
|
|
|
743125
743138
|
return snippets;
|
|
743126
743139
|
}
|
|
743127
743140
|
async function createSteeringIntakeBackend(config, repoRoot) {
|
|
743128
|
-
const normalizeSteeringBaseUrl = (url) => url.replace(/\/
|
|
743141
|
+
const normalizeSteeringBaseUrl = (url) => url.replace(/\/v1\/?$/i, "").replace(/\/+$/, "");
|
|
743129
743142
|
if (config.backendType === "nexus") {
|
|
743130
743143
|
const nexusTool = new NexusTool(repoRoot);
|
|
743131
743144
|
await nexusTool.execute({ action: "connect" });
|
|
@@ -745719,21 +745732,34 @@ SEED PROMPT:
|
|
|
745719
745732
|
${seedText}`
|
|
745720
745733
|
].filter(Boolean).join("\n");
|
|
745721
745734
|
try {
|
|
745722
|
-
const
|
|
745723
|
-
|
|
745724
|
-
|
|
745725
|
-
|
|
745726
|
-
|
|
745727
|
-
|
|
745728
|
-
|
|
745729
|
-
|
|
745730
|
-
|
|
745731
|
-
|
|
745732
|
-
|
|
745733
|
-
|
|
745734
|
-
|
|
745735
|
-
|
|
745736
|
-
|
|
745735
|
+
const messages2 = [
|
|
745736
|
+
{
|
|
745737
|
+
role: "system",
|
|
745738
|
+
content: `You are a prompt-expansion engine. You rewrite a user's short seed prompt into a richer, unambiguous instruction that fully captures their intent. Return strict JSON only: {"enhancedPrompt": string}.`
|
|
745739
|
+
},
|
|
745740
|
+
{ role: "user", content: userPrompt }
|
|
745741
|
+
];
|
|
745742
|
+
let resp;
|
|
745743
|
+
try {
|
|
745744
|
+
resp = await backend.chatCompletion({
|
|
745745
|
+
messages: messages2,
|
|
745746
|
+
tools: [],
|
|
745747
|
+
temperature: 0.4,
|
|
745748
|
+
maxTokens: 1400,
|
|
745749
|
+
timeoutMs: 6e4,
|
|
745750
|
+
think: false,
|
|
745751
|
+
responseFormat: { type: "json_object" }
|
|
745752
|
+
});
|
|
745753
|
+
} catch {
|
|
745754
|
+
resp = await backend.chatCompletion({
|
|
745755
|
+
messages: messages2,
|
|
745756
|
+
tools: [],
|
|
745757
|
+
temperature: 0.4,
|
|
745758
|
+
maxTokens: 1400,
|
|
745759
|
+
timeoutMs: 6e4,
|
|
745760
|
+
think: false
|
|
745761
|
+
});
|
|
745762
|
+
}
|
|
745737
745763
|
const rawContent2 = resp.choices?.[0]?.message?.content ?? "";
|
|
745738
745764
|
if (!rawContent2) return null;
|
|
745739
745765
|
const enhanced = extractEnhancedPrompt(rawContent2);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.503",
|
|
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.503",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
|
@@ -5108,9 +5108,9 @@
|
|
|
5108
5108
|
}
|
|
5109
5109
|
},
|
|
5110
5110
|
"node_modules/lru-cache": {
|
|
5111
|
-
"version": "11.5.
|
|
5112
|
-
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.
|
|
5113
|
-
"integrity": "sha512-
|
|
5111
|
+
"version": "11.5.2",
|
|
5112
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz",
|
|
5113
|
+
"integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==",
|
|
5114
5114
|
"license": "BlueOak-1.0.0",
|
|
5115
5115
|
"engines": {
|
|
5116
5116
|
"node": "20 || >=22"
|
package/package.json
CHANGED