@indexnetwork/cli 0.10.5 → 0.10.6

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -21
  2. 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
- read_indexes: "Checking your indexes...",
772
- create_index: "Creating a new index...",
773
- update_index: "Updating index...",
774
- delete_index: "Deleting index...",
775
- create_index_membership: "Adding member to index...",
776
- read_index_memberships: "Fetching index memberships...",
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...",
@@ -1242,38 +1242,38 @@ function opportunityCard(opp) {
1242
1242
  `);
1243
1243
  const st = opp.status ?? "unknown";
1244
1244
  const category = opp.interpretation?.category ?? "Uncategorized";
1245
- cardLine(`${BOLD}Status:${RESET} ${statusColor(st)}${st}${RESET}`, innerWidth);
1246
- cardLine(`${BOLD}Category:${RESET} ${category}`, innerWidth);
1245
+ cardLine(`${BOLD}Status:${RESET} ${statusColor(st)}${st}${RESET}`);
1246
+ cardLine(`${BOLD}Category:${RESET} ${category}`);
1247
1247
  if (opp.interpretation?.confidence != null) {
1248
1248
  const bar = confidenceBar(opp.interpretation.confidence);
1249
- cardLine(`${BOLD}Confidence:${RESET} ${bar}`, innerWidth);
1249
+ cardLine(`${BOLD}Confidence:${RESET} ${bar}`);
1250
1250
  }
1251
1251
  if (opp.actors && opp.actors.length > 0) {
1252
1252
  process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
1253
1253
  `);
1254
- cardLine(`${BOLD}Parties:${RESET}`, innerWidth);
1254
+ cardLine(`${BOLD}Parties:${RESET}`);
1255
1255
  for (const actor of opp.actors) {
1256
1256
  const name = actor.name ?? actor.userId;
1257
1257
  const role = roleLabel(actor.role);
1258
- cardLine(` ${name} ${role}`, innerWidth);
1258
+ cardLine(` ${name} ${role}`);
1259
1259
  }
1260
1260
  }
1261
1261
  if (opp.interpretation?.reasoning) {
1262
1262
  process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
1263
1263
  `);
1264
- cardLine(`${BOLD}Reasoning:${RESET}`, innerWidth);
1264
+ cardLine(`${BOLD}Reasoning:${RESET}`);
1265
1265
  const wrapped = wordWrap(opp.interpretation.reasoning, innerWidth - 4);
1266
1266
  for (const line of wrapped) {
1267
- cardLine(` ${AGENT_TEXT}${line}${RESET}`, innerWidth);
1267
+ cardLine(` ${AGENT_TEXT}${line}${RESET}`);
1268
1268
  }
1269
1269
  }
1270
1270
  if (opp.presentation) {
1271
1271
  process.stdout.write(` ${BLUE}|${RESET}${" ".repeat(innerWidth)}${BLUE}|${RESET}
1272
1272
  `);
1273
- cardLine(`${BOLD}Presentation:${RESET}`, innerWidth);
1273
+ cardLine(`${BOLD}Presentation:${RESET}`);
1274
1274
  const wrapped = wordWrap(opp.presentation, innerWidth - 4);
1275
1275
  for (const line of wrapped) {
1276
- cardLine(` ${AGENT_TEXT}${line}${RESET}`, innerWidth);
1276
+ cardLine(` ${AGENT_TEXT}${line}${RESET}`);
1277
1277
  }
1278
1278
  }
1279
1279
  if (opp.createdAt) {
@@ -1286,13 +1286,13 @@ function opportunityCard(opp) {
1286
1286
  hour: "2-digit",
1287
1287
  minute: "2-digit"
1288
1288
  });
1289
- cardLine(`${GRAY}Created: ${created}${RESET}`, innerWidth);
1289
+ cardLine(`${GRAY}Created: ${created}${RESET}`);
1290
1290
  }
1291
1291
  process.stdout.write(` ${BLUE}+${"─".repeat(width)}+${RESET}
1292
1292
 
1293
1293
  `);
1294
1294
  }
1295
- function cardLine(content, _innerWidth) {
1295
+ function cardLine(content) {
1296
1296
  process.stdout.write(` ${BLUE}|${RESET} ${content}
1297
1297
  `);
1298
1298
  }
@@ -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("read_index_memberships", { userId: userA }),
1928
- client.callTool("read_index_memberships", { userId: userB })
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("update_index", { networkId: id, settings });
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("delete_index", { networkId: id });
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.5",
3
+ "version": "0.10.6",
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.5",
24
- "@indexnetwork/cli-linux-arm64": "0.10.5",
25
- "@indexnetwork/cli-darwin-x64": "0.10.5",
26
- "@indexnetwork/cli-darwin-arm64": "0.10.5"
23
+ "@indexnetwork/cli-linux-x64": "0.10.6",
24
+ "@indexnetwork/cli-linux-arm64": "0.10.6",
25
+ "@indexnetwork/cli-darwin-x64": "0.10.6",
26
+ "@indexnetwork/cli-darwin-arm64": "0.10.6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "latest"