@indexnetwork/cli 0.10.3 → 0.10.4-rc.20.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 +6 -7
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -774,8 +774,8 @@ var TOOL_DESCRIPTIONS = {
|
|
|
774
774
|
delete_index: "Deleting index...",
|
|
775
775
|
create_index_membership: "Adding member to index...",
|
|
776
776
|
read_index_memberships: "Fetching index memberships...",
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
discover_opportunities: "Searching for relevant connections...",
|
|
778
|
+
list_opportunities: "Listing your opportunities...",
|
|
779
779
|
update_opportunity: "Updating opportunity status...",
|
|
780
780
|
scrape_url: "Reading content from URL...",
|
|
781
781
|
read_docs: "Looking up documentation...",
|
|
@@ -783,8 +783,7 @@ var TOOL_DESCRIPTIONS = {
|
|
|
783
783
|
import_contacts: "Importing contacts...",
|
|
784
784
|
list_contacts: "Listing your contacts...",
|
|
785
785
|
add_contact: "Adding contact...",
|
|
786
|
-
remove_contact: "Removing contact..."
|
|
787
|
-
send_opportunity: "Sending opportunity..."
|
|
786
|
+
remove_contact: "Removing contact..."
|
|
788
787
|
};
|
|
789
788
|
function humanizeToolName(name) {
|
|
790
789
|
return TOOL_DESCRIPTIONS[name] ?? name.replace(/_/g, " ") + "...";
|
|
@@ -1847,7 +1846,7 @@ async function handleOpportunity(client, subcommand, options) {
|
|
|
1847
1846
|
} else if (options.target) {
|
|
1848
1847
|
if (!options.json)
|
|
1849
1848
|
info("Discovering opportunities...");
|
|
1850
|
-
const result = await client.callTool("
|
|
1849
|
+
const result = await client.callTool("discover_opportunities", {
|
|
1851
1850
|
targetUserId: options.target,
|
|
1852
1851
|
searchQuery: query
|
|
1853
1852
|
});
|
|
@@ -1866,7 +1865,7 @@ async function handleOpportunity(client, subcommand, options) {
|
|
|
1866
1865
|
} else {
|
|
1867
1866
|
if (!options.json)
|
|
1868
1867
|
info("Discovering opportunities...");
|
|
1869
|
-
const result = await client.callTool("
|
|
1868
|
+
const result = await client.callTool("discover_opportunities", { searchQuery: query });
|
|
1870
1869
|
if (options.json) {
|
|
1871
1870
|
console.log(JSON.stringify(result));
|
|
1872
1871
|
return;
|
|
@@ -1990,7 +1989,7 @@ async function discoverIntroduction(client, userA, userB, hint, json) {
|
|
|
1990
1989
|
];
|
|
1991
1990
|
if (!json)
|
|
1992
1991
|
dim(" Profiles and intents gathered. Creating introduction...");
|
|
1993
|
-
const result = await client.callTool("
|
|
1992
|
+
const result = await client.callTool("discover_opportunities", {
|
|
1994
1993
|
partyUserIds: [userA, userB],
|
|
1995
1994
|
entities,
|
|
1996
1995
|
...hint ? { hint } : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indexnetwork/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4-rc.20.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.4-rc.20.1",
|
|
24
|
+
"@indexnetwork/cli-linux-arm64": "0.10.4-rc.20.1",
|
|
25
|
+
"@indexnetwork/cli-darwin-x64": "0.10.4-rc.20.1",
|
|
26
|
+
"@indexnetwork/cli-darwin-arm64": "0.10.4-rc.20.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/bun": "latest"
|