claudemesh-cli 1.0.0-alpha.20 → 1.0.0-alpha.21
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
CHANGED
|
@@ -6599,21 +6599,24 @@ async function runTest() {
|
|
|
6599
6599
|
return `stored (${memoryId.slice(0, 8)}…)`;
|
|
6600
6600
|
});
|
|
6601
6601
|
await run("recall", async () => {
|
|
6602
|
+
await new Promise((r) => setTimeout(r, 1500));
|
|
6602
6603
|
const memories = await client.recall("test-battery");
|
|
6603
6604
|
if (memories.length === 0)
|
|
6604
6605
|
throw new Error("no memories found");
|
|
6605
6606
|
return `${memories.length} result(s)`;
|
|
6606
6607
|
});
|
|
6608
|
+
const stateVal = "test-value-" + Date.now();
|
|
6607
6609
|
await run("state set", async () => {
|
|
6608
|
-
await client.setState("test-key",
|
|
6610
|
+
await client.setState("test-e2e-key", stateVal);
|
|
6609
6611
|
return "key written";
|
|
6610
6612
|
});
|
|
6611
6613
|
await run("state get", async () => {
|
|
6612
|
-
|
|
6614
|
+
await new Promise((r) => setTimeout(r, 500));
|
|
6615
|
+
const result = await client.getState("test-e2e-key");
|
|
6613
6616
|
if (!result)
|
|
6614
6617
|
throw new Error("key not found");
|
|
6615
|
-
if (
|
|
6616
|
-
throw new Error(
|
|
6618
|
+
if (String(result.value) !== stateVal)
|
|
6619
|
+
throw new Error(`expected ${stateVal}, got ${result.value}`);
|
|
6617
6620
|
return `read back: ${String(result.value).slice(0, 20)}…`;
|
|
6618
6621
|
});
|
|
6619
6622
|
if (memoryId) {
|
|
@@ -10245,4 +10248,4 @@ main().catch((err) => {
|
|
|
10245
10248
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
10246
10249
|
});
|
|
10247
10250
|
|
|
10248
|
-
//# debugId=
|
|
10251
|
+
//# debugId=F343024732ED857564756E2164756E21
|