@indexnetwork/cli 0.10.5-rc.25.1 → 0.10.6-rc.27.1
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 +10 -10
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -768,12 +768,12 @@ var TOOL_DESCRIPTIONS = {
|
|
|
768
768
|
create_intent_index: "Saving signal to index...",
|
|
769
769
|
read_intent_indexes: "Fetching signals in index...",
|
|
770
770
|
delete_intent_index: "Removing signal from index...",
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
771
|
+
read_networks: "Checking your communities...",
|
|
772
|
+
create_network: "Creating a new community...",
|
|
773
|
+
update_network: "Updating community...",
|
|
774
|
+
delete_network: "Deleting community...",
|
|
775
|
+
create_network_membership: "Adding member to community...",
|
|
776
|
+
read_network_memberships: "Fetching community memberships...",
|
|
777
777
|
discover_opportunities: "Searching for relevant connections...",
|
|
778
778
|
list_opportunities: "Listing your opportunities...",
|
|
779
779
|
update_opportunity: "Updating opportunity status...",
|
|
@@ -1924,8 +1924,8 @@ async function discoverIntroduction(client, userA, userB, hint, json) {
|
|
|
1924
1924
|
if (!json)
|
|
1925
1925
|
info("Gathering data for introduction...");
|
|
1926
1926
|
const [membershipsA, membershipsB] = await Promise.all([
|
|
1927
|
-
client.callTool("
|
|
1928
|
-
client.callTool("
|
|
1927
|
+
client.callTool("read_network_memberships", { userId: userA }),
|
|
1928
|
+
client.callTool("read_network_memberships", { userId: userB })
|
|
1929
1929
|
]);
|
|
1930
1930
|
if (!membershipsA.success || !membershipsB.success) {
|
|
1931
1931
|
const err = membershipsA.error ?? membershipsB.error ?? "Failed to read memberships";
|
|
@@ -2295,7 +2295,7 @@ async function networkUpdate(client, id, options, json) {
|
|
|
2295
2295
|
error("Provide at least --title or --prompt. Usage: index network update <id> [--title <t>] [--prompt <p>]", 1);
|
|
2296
2296
|
return;
|
|
2297
2297
|
}
|
|
2298
|
-
const result = await client.callTool("
|
|
2298
|
+
const result = await client.callTool("update_network", { networkId: id, settings });
|
|
2299
2299
|
if (json) {
|
|
2300
2300
|
console.log(JSON.stringify(result));
|
|
2301
2301
|
return;
|
|
@@ -2311,7 +2311,7 @@ async function networkDelete(client, id, json) {
|
|
|
2311
2311
|
error("Usage: index network delete <id>", 1);
|
|
2312
2312
|
return;
|
|
2313
2313
|
}
|
|
2314
|
-
const result = await client.callTool("
|
|
2314
|
+
const result = await client.callTool("delete_network", { networkId: id });
|
|
2315
2315
|
if (json) {
|
|
2316
2316
|
console.log(JSON.stringify(result));
|
|
2317
2317
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indexnetwork/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-rc.27.1",
|
|
4
4
|
"description": "Command-line interface for Index Network",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"publish:all": "bun scripts/publish.ts"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@indexnetwork/cli-linux-x64": "0.10.
|
|
24
|
-
"@indexnetwork/cli-linux-arm64": "0.10.
|
|
25
|
-
"@indexnetwork/cli-darwin-x64": "0.10.
|
|
26
|
-
"@indexnetwork/cli-darwin-arm64": "0.10.
|
|
23
|
+
"@indexnetwork/cli-linux-x64": "0.10.6-rc.27.1",
|
|
24
|
+
"@indexnetwork/cli-linux-arm64": "0.10.6-rc.27.1",
|
|
25
|
+
"@indexnetwork/cli-darwin-x64": "0.10.6-rc.27.1",
|
|
26
|
+
"@indexnetwork/cli-darwin-arm64": "0.10.6-rc.27.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/bun": "latest"
|