claudemesh-cli 1.0.0-alpha.22 → 1.0.0-alpha.24
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 +26 -30
- package/dist/entrypoints/cli.js.map +4 -4
- package/package.json +3 -3
package/dist/entrypoints/cli.js
CHANGED
|
@@ -908,9 +908,12 @@ var init_facade6 = __esm(() => {
|
|
|
908
908
|
});
|
|
909
909
|
|
|
910
910
|
// src/services/invite/generate.ts
|
|
911
|
+
var BROKER_HTTP2;
|
|
911
912
|
var init_generate = __esm(() => {
|
|
912
913
|
init_facade2();
|
|
913
914
|
init_facade6();
|
|
915
|
+
init_urls();
|
|
916
|
+
BROKER_HTTP2 = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
914
917
|
});
|
|
915
918
|
// src/services/invite/errors.ts
|
|
916
919
|
var init_errors3 = () => {};
|
|
@@ -4412,7 +4415,7 @@ async function createMesh2(name, opts) {
|
|
|
4412
4415
|
path: "/cli/mesh/create",
|
|
4413
4416
|
method: "POST",
|
|
4414
4417
|
body: { user_id: userId, name, pubkey: kp.publicKey, ...opts },
|
|
4415
|
-
baseUrl:
|
|
4418
|
+
baseUrl: BROKER_HTTP3
|
|
4416
4419
|
});
|
|
4417
4420
|
const mesh = {
|
|
4418
4421
|
meshId: result.id,
|
|
@@ -4427,14 +4430,14 @@ async function createMesh2(name, opts) {
|
|
|
4427
4430
|
setMeshConfig(result.slug, mesh);
|
|
4428
4431
|
return { slug: result.slug, id: result.id };
|
|
4429
4432
|
}
|
|
4430
|
-
var
|
|
4433
|
+
var BROKER_HTTP3;
|
|
4431
4434
|
var init_create = __esm(() => {
|
|
4432
4435
|
init_facade2();
|
|
4433
4436
|
init_facade6();
|
|
4434
4437
|
init_facade7();
|
|
4435
4438
|
init_facade5();
|
|
4436
4439
|
init_urls();
|
|
4437
|
-
|
|
4440
|
+
BROKER_HTTP3 = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
4438
4441
|
});
|
|
4439
4442
|
|
|
4440
4443
|
// src/services/mesh/rename.ts
|
|
@@ -4568,7 +4571,7 @@ async function runList() {
|
|
|
4568
4571
|
if (userId) {
|
|
4569
4572
|
const res = await request({
|
|
4570
4573
|
path: `/cli/meshes?user_id=${userId}`,
|
|
4571
|
-
baseUrl:
|
|
4574
|
+
baseUrl: BROKER_HTTP4
|
|
4572
4575
|
});
|
|
4573
4576
|
serverMeshes = res.meshes ?? [];
|
|
4574
4577
|
}
|
|
@@ -4624,14 +4627,14 @@ async function runList() {
|
|
|
4624
4627
|
console.log(dim(` Config: ${getConfigPath()}`));
|
|
4625
4628
|
console.log("");
|
|
4626
4629
|
}
|
|
4627
|
-
var
|
|
4630
|
+
var BROKER_HTTP4;
|
|
4628
4631
|
var init_list2 = __esm(() => {
|
|
4629
4632
|
init_facade5();
|
|
4630
4633
|
init_facade6();
|
|
4631
4634
|
init_facade2();
|
|
4632
4635
|
init_urls();
|
|
4633
4636
|
init_styles();
|
|
4634
|
-
|
|
4637
|
+
BROKER_HTTP4 = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
4635
4638
|
});
|
|
4636
4639
|
|
|
4637
4640
|
// src/commands/delete-mesh.ts
|
|
@@ -4661,7 +4664,7 @@ async function isOwner(slug, userId) {
|
|
|
4661
4664
|
try {
|
|
4662
4665
|
const res = await request({
|
|
4663
4666
|
path: `/cli/meshes?user_id=${userId}`,
|
|
4664
|
-
baseUrl:
|
|
4667
|
+
baseUrl: BROKER_HTTP5
|
|
4665
4668
|
});
|
|
4666
4669
|
return res.meshes?.find((m) => m.slug === slug)?.is_owner ?? false;
|
|
4667
4670
|
} catch {
|
|
@@ -4720,7 +4723,7 @@ async function deleteMesh(slug, opts = {}) {
|
|
|
4720
4723
|
path: `/cli/mesh/${slug}`,
|
|
4721
4724
|
method: "DELETE",
|
|
4722
4725
|
body: { user_id: userId },
|
|
4723
|
-
baseUrl:
|
|
4726
|
+
baseUrl: BROKER_HTTP5
|
|
4724
4727
|
});
|
|
4725
4728
|
console.log(` ${green(icons.check)} Deleted "${slug}" from server.`);
|
|
4726
4729
|
} catch (err) {
|
|
@@ -4755,7 +4758,7 @@ async function deleteMesh(slug, opts = {}) {
|
|
|
4755
4758
|
}
|
|
4756
4759
|
return EXIT.SUCCESS;
|
|
4757
4760
|
}
|
|
4758
|
-
var
|
|
4761
|
+
var BROKER_HTTP5;
|
|
4759
4762
|
var init_delete_mesh = __esm(() => {
|
|
4760
4763
|
init_facade5();
|
|
4761
4764
|
init_facade11();
|
|
@@ -4764,7 +4767,7 @@ var init_delete_mesh = __esm(() => {
|
|
|
4764
4767
|
init_urls();
|
|
4765
4768
|
init_styles();
|
|
4766
4769
|
init_exit_codes();
|
|
4767
|
-
|
|
4770
|
+
BROKER_HTTP5 = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
4768
4771
|
});
|
|
4769
4772
|
|
|
4770
4773
|
// src/commands/rename.ts
|
|
@@ -6562,7 +6565,7 @@ async function runTest() {
|
|
|
6562
6565
|
await run("server list", async () => {
|
|
6563
6566
|
const res = await request({
|
|
6564
6567
|
path: `/cli/meshes?user_id=${userId}`,
|
|
6565
|
-
baseUrl:
|
|
6568
|
+
baseUrl: BROKER_HTTP6
|
|
6566
6569
|
});
|
|
6567
6570
|
const found = res.meshes?.find((m) => m.slug === meshSlug);
|
|
6568
6571
|
if (!found)
|
|
@@ -6593,25 +6596,18 @@ async function runTest() {
|
|
|
6593
6596
|
});
|
|
6594
6597
|
let memoryId = null;
|
|
6595
6598
|
await run("remember", async () => {
|
|
6596
|
-
memoryId = await client.remember("test
|
|
6599
|
+
memoryId = await client.remember("integration test battery memory probe", ["test", "e2e"]);
|
|
6597
6600
|
if (!memoryId)
|
|
6598
6601
|
throw new Error("no memory ID returned");
|
|
6599
6602
|
return `stored (${memoryId.slice(0, 8)}…)`;
|
|
6600
6603
|
});
|
|
6601
|
-
{
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
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
|
-
}
|
|
6604
|
+
await run("recall", async () => {
|
|
6605
|
+
await new Promise((r) => setTimeout(r, 500));
|
|
6606
|
+
const memories = await client.recall("integration test battery");
|
|
6607
|
+
if (memories.length === 0)
|
|
6608
|
+
throw new Error("no memories found");
|
|
6609
|
+
return `${memories.length} result(s)`;
|
|
6610
|
+
});
|
|
6615
6611
|
const stateVal = "test-value-" + Date.now();
|
|
6616
6612
|
await run("state set", async () => {
|
|
6617
6613
|
await client.setState("test-e2e-key", stateVal);
|
|
@@ -6643,7 +6639,7 @@ async function runTest() {
|
|
|
6643
6639
|
path: `/cli/mesh/${meshSlug}`,
|
|
6644
6640
|
method: "DELETE",
|
|
6645
6641
|
body: { user_id: userId },
|
|
6646
|
-
baseUrl:
|
|
6642
|
+
baseUrl: BROKER_HTTP6
|
|
6647
6643
|
});
|
|
6648
6644
|
leaveMesh(meshSlug);
|
|
6649
6645
|
return `deleted "${meshSlug}" from server + local`;
|
|
@@ -6660,7 +6656,7 @@ async function runTest() {
|
|
|
6660
6656
|
console.log("");
|
|
6661
6657
|
return failed > 0 ? EXIT.INTERNAL_ERROR : EXIT.SUCCESS;
|
|
6662
6658
|
}
|
|
6663
|
-
var
|
|
6659
|
+
var BROKER_HTTP6, results;
|
|
6664
6660
|
var init_test = __esm(() => {
|
|
6665
6661
|
init_facade6();
|
|
6666
6662
|
init_facade11();
|
|
@@ -6672,7 +6668,7 @@ var init_test = __esm(() => {
|
|
|
6672
6668
|
init_facade13();
|
|
6673
6669
|
init_styles();
|
|
6674
6670
|
init_exit_codes();
|
|
6675
|
-
|
|
6671
|
+
BROKER_HTTP6 = URLS.BROKER.replace("wss://", "https://").replace("ws://", "http://").replace("/ws", "");
|
|
6676
6672
|
results = [];
|
|
6677
6673
|
});
|
|
6678
6674
|
|
|
@@ -10255,4 +10251,4 @@ main().catch((err) => {
|
|
|
10255
10251
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
10256
10252
|
});
|
|
10257
10253
|
|
|
10258
|
-
//# debugId=
|
|
10254
|
+
//# debugId=6A19DF82AEFA71D664756E2164756E21
|