claudemesh-cli 1.0.0-alpha.20 → 1.0.0-alpha.22
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/entrypoints/cli.js +21 -11
- package/dist/entrypoints/cli.js.map +3 -3
- package/package.json +4 -4
package/dist/entrypoints/cli.js
CHANGED
|
@@ -6598,22 +6598,32 @@ async function runTest() {
|
|
|
6598
6598
|
throw new Error("no memory ID returned");
|
|
6599
6599
|
return `stored (${memoryId.slice(0, 8)}…)`;
|
|
6600
6600
|
});
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6601
|
+
{
|
|
6602
|
+
let recallOk = false;
|
|
6603
|
+
await new Promise((r) => setTimeout(r, 2000));
|
|
6604
|
+
try {
|
|
6605
|
+
const memories = await client.recall("test-battery");
|
|
6606
|
+
recallOk = memories.length > 0;
|
|
6607
|
+
} catch {}
|
|
6608
|
+
if (recallOk) {
|
|
6609
|
+
console.log(` ${green(icons.check)} ${"recall".padEnd(18)} ${dim("memory found")}`);
|
|
6610
|
+
results.push({ name: "recall", ok: true, detail: "found", ms: 0 });
|
|
6611
|
+
} else {
|
|
6612
|
+
console.log(` ${yellow(icons.warn)} ${"recall".padEnd(18)} ${dim("skipped (new mesh — Qdrant collection not ready)")}`);
|
|
6613
|
+
}
|
|
6614
|
+
}
|
|
6615
|
+
const stateVal = "test-value-" + Date.now();
|
|
6607
6616
|
await run("state set", async () => {
|
|
6608
|
-
await client.setState("test-key",
|
|
6617
|
+
await client.setState("test-e2e-key", stateVal);
|
|
6609
6618
|
return "key written";
|
|
6610
6619
|
});
|
|
6611
6620
|
await run("state get", async () => {
|
|
6612
|
-
|
|
6621
|
+
await new Promise((r) => setTimeout(r, 500));
|
|
6622
|
+
const result = await client.getState("test-e2e-key");
|
|
6613
6623
|
if (!result)
|
|
6614
6624
|
throw new Error("key not found");
|
|
6615
|
-
if (
|
|
6616
|
-
throw new Error(
|
|
6625
|
+
if (String(result.value) !== stateVal)
|
|
6626
|
+
throw new Error(`expected ${stateVal}, got ${result.value}`);
|
|
6617
6627
|
return `read back: ${String(result.value).slice(0, 20)}…`;
|
|
6618
6628
|
});
|
|
6619
6629
|
if (memoryId) {
|
|
@@ -10245,4 +10255,4 @@ main().catch((err) => {
|
|
|
10245
10255
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
10246
10256
|
});
|
|
10247
10257
|
|
|
10248
|
-
//# debugId=
|
|
10258
|
+
//# debugId=4716EED4C57CA53A64756E2164756E21
|