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.
@@ -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
- await run("recall", async () => {
6602
- const memories = await client.recall("test-battery");
6603
- if (memories.length === 0)
6604
- throw new Error("no memories found");
6605
- return `${memories.length} result(s)`;
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", "test-value-" + Date.now());
6617
+ await client.setState("test-e2e-key", stateVal);
6609
6618
  return "key written";
6610
6619
  });
6611
6620
  await run("state get", async () => {
6612
- const result = await client.getState("test-key");
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 (!String(result.value).startsWith("test-value-"))
6616
- throw new Error("wrong value");
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=F48ABC56B328BF2F64756E2164756E21
10258
+ //# debugId=4716EED4C57CA53A64756E2164756E21