@eleboucher/opencode-memini 0.5.10 → 0.5.12
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/memini.js +6 -0
- package/package.json +1 -1
package/memini.js
CHANGED
|
@@ -446,6 +446,12 @@ export const MeminiPlugin = async ({ client, worktree, directory }, options) =>
|
|
|
446
446
|
`current workspace state and the user's instructions):`,
|
|
447
447
|
...fit.items,
|
|
448
448
|
];
|
|
449
|
+
// /v1/search sets `degraded: "keyword_only"` (plus a `note`) when the
|
|
450
|
+
// query embed was unavailable and it fell back to keyword-only matching;
|
|
451
|
+
// both are already on `result`, so surfacing them is a one-line addition.
|
|
452
|
+
if (result && result.degraded) {
|
|
453
|
+
lines.push(`[memini: ${result.note || "semantic search unavailable — results are keyword-only and may be incomplete"}]`);
|
|
454
|
+
}
|
|
449
455
|
if (fit.dropped > 0) lines.push(`[... ${fit.dropped} item(s) truncated by token budget]`);
|
|
450
456
|
// opencode's part schema requires ids to start with `prt`.
|
|
451
457
|
output.parts.unshift({
|