@remnic/plugin-openclaw 1.0.9 → 1.0.10
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 +16 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60687,6 +60687,20 @@ async function recordObjectiveStateSnapshotsFromAgentMessages(options) {
|
|
|
60687
60687
|
return { snapshots, filePaths };
|
|
60688
60688
|
}
|
|
60689
60689
|
|
|
60690
|
+
// ../../src/qmd-availability-probe.ts
|
|
60691
|
+
async function probeQmdAvailability(host) {
|
|
60692
|
+
const qmd = host?.qmd;
|
|
60693
|
+
let available = typeof qmd?.isAvailable === "function" ? Boolean(qmd.isAvailable()) : false;
|
|
60694
|
+
if (!available && typeof qmd?.probe === "function") {
|
|
60695
|
+
try {
|
|
60696
|
+
available = Boolean(await qmd.probe());
|
|
60697
|
+
} catch {
|
|
60698
|
+
available = false;
|
|
60699
|
+
}
|
|
60700
|
+
}
|
|
60701
|
+
return available;
|
|
60702
|
+
}
|
|
60703
|
+
|
|
60690
60704
|
// ../../src/index.ts
|
|
60691
60705
|
import { readFile as readFile54, realpath as realpath5, writeFile as writeFile46 } from "fs/promises";
|
|
60692
60706
|
import { readFileSync as readFileSync6 } from "fs";
|
|
@@ -64746,7 +64760,7 @@ Keep the reflection grounded in the evidence below.
|
|
|
64746
64760
|
},
|
|
64747
64761
|
async probeEmbeddingAvailability() {
|
|
64748
64762
|
if (!remnicUsesQmd) return { ok: true };
|
|
64749
|
-
const qmdAvailable =
|
|
64763
|
+
const qmdAvailable = await probeQmdAvailability(orchestrator);
|
|
64750
64764
|
if (qmdAvailable) return { ok: true };
|
|
64751
64765
|
const qmdDebug = typeof orchestrator.qmd?.debugStatus === "function" ? orchestrator.qmd.debugStatus() : void 0;
|
|
64752
64766
|
return {
|
|
@@ -64756,7 +64770,7 @@ Keep the reflection grounded in the evidence below.
|
|
|
64756
64770
|
},
|
|
64757
64771
|
async probeVectorAvailability() {
|
|
64758
64772
|
if (!remnicUsesQmd) return false;
|
|
64759
|
-
return
|
|
64773
|
+
return probeQmdAvailability(orchestrator);
|
|
64760
64774
|
},
|
|
64761
64775
|
async close() {
|
|
64762
64776
|
}
|