omnius 1.0.202 → 1.0.203
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 +3 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -625839,8 +625839,7 @@ function loadMemoryContext(repoRoot, task = "", taskEmbedding) {
|
|
|
625839
625839
|
const bucketLines = [header];
|
|
625840
625840
|
for (const e2 of eligible) {
|
|
625841
625841
|
const label = bucket.multiTopic ? `${e2.topic}.${e2.key}` : e2.key;
|
|
625842
|
-
|
|
625843
|
-
bucketLines.push(` ${label}${score}: ${truncateProjectContextText(trimMemoryValueMetadata(e2.value), 220, "")}`);
|
|
625842
|
+
bucketLines.push(` ${label}: ${truncateProjectContextText(trimMemoryValueMetadata(e2.value), 220, "")}`);
|
|
625844
625843
|
}
|
|
625845
625844
|
const block = bucketLines.join("\n");
|
|
625846
625845
|
if (usedChars + block.length + 1 > charBudget) {
|
|
@@ -625896,12 +625895,12 @@ function loadUnifiedMemoryContext(repoRoot, task = "", taskEmbedding) {
|
|
|
625896
625895
|
metadata: { source: "project-context", scoreBreakdown: item.match.scoreBreakdown }
|
|
625897
625896
|
})));
|
|
625898
625897
|
store2.recordAccess(promptItems.map((item) => item.match.item.id));
|
|
625899
|
-
const lines = ["
|
|
625898
|
+
const lines = ["Relevant memory (ordered by retrieval score, highest first):"];
|
|
625900
625899
|
for (const item of promptItems) {
|
|
625901
625900
|
const match = item.match;
|
|
625902
625901
|
const label = match.item.title || `${match.item.kind}:${match.item.id.slice(0, 8)}`;
|
|
625903
625902
|
lines.push(
|
|
625904
|
-
`[${match.scope.name}/${label}]
|
|
625903
|
+
`[${match.scope.name}/${label}] ` + truncateProjectContextText(trimMemoryValueMetadata(item.text ?? ""), 320, "")
|
|
625905
625904
|
);
|
|
625906
625905
|
}
|
|
625907
625906
|
if (plan.some((item) => item.mode !== "prompt_text")) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.203",
|
|
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.203",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED