@indexnetwork/cli 0.15.0-rc.64.1 → 0.17.0-rc.66.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -68
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import { spawn } from "node:child_process";
19
19
  // package.json
20
20
  var package_default = {
21
21
  name: "@indexnetwork/cli",
22
- version: "0.15.0",
22
+ version: "0.17.0",
23
23
  description: "Command-line interface for Index Network",
24
24
  license: "MIT",
25
25
  type: "module",
@@ -39,10 +39,10 @@ var package_default = {
39
39
  "publish:all": "bun scripts/publish.ts"
40
40
  },
41
41
  optionalDependencies: {
42
- "@indexnetwork/cli-linux-x64": "0.15.0",
43
- "@indexnetwork/cli-linux-arm64": "0.15.0",
44
- "@indexnetwork/cli-darwin-x64": "0.15.0",
45
- "@indexnetwork/cli-darwin-arm64": "0.15.0"
42
+ "@indexnetwork/cli-linux-x64": "0.17.0",
43
+ "@indexnetwork/cli-linux-arm64": "0.17.0",
44
+ "@indexnetwork/cli-darwin-x64": "0.17.0",
45
+ "@indexnetwork/cli-darwin-arm64": "0.17.0"
46
46
  },
47
47
  devDependencies: {
48
48
  "@types/bun": "1.3.14"
@@ -123,12 +123,6 @@ function parseArgs(args) {
123
123
  } else if (arg === "--json") {
124
124
  result.json = true;
125
125
  i++;
126
- } else if (arg === "--name") {
127
- result.name = args[i + 1];
128
- i += 2;
129
- } else if (arg === "--gmail") {
130
- result.gmail = true;
131
- i++;
132
126
  } else if (arg === "--objective") {
133
127
  result.objective = args[i + 1];
134
128
  i += 2;
@@ -975,10 +969,7 @@ var TOOL_DESCRIPTIONS = {
975
969
  update_opportunity: "Updating opportunity status...",
976
970
  scrape_url: "Reading content from URL...",
977
971
  read_docs: "Looking up documentation...",
978
- import_gmail_contacts: "Importing Gmail contacts...",
979
- import_contacts: "Importing contacts...",
980
972
  list_contacts: "Listing your contacts...",
981
- add_contact: "Adding contact...",
982
973
  remove_contact: "Removing contact..."
983
974
  };
984
975
  function humanizeToolName(name) {
@@ -1237,9 +1228,8 @@ function profileCard(data) {
1237
1228
  lines.push("");
1238
1229
  lines.push(hline);
1239
1230
  const displayName = data.name ?? "(unnamed)";
1240
- const ghostTag = data.isGhost ? ` ${YELLOW}[ghost]${RESET}` : "";
1241
- const nameContent = `${BOLD}${WHITE}${displayName}${RESET}${ghostTag}`;
1242
- lines.push(` ${border("|")} ${nameContent}${padTo(W - 2, stripAnsi(displayName + (data.isGhost ? " [ghost]" : "")))}${border("|")}`);
1231
+ const nameContent = `${BOLD}${WHITE}${displayName}${RESET}`;
1232
+ lines.push(` ${border("|")} ${nameContent}${padTo(W - 2, stripAnsi(displayName))}${border("|")}`);
1243
1233
  if (data.intro) {
1244
1234
  lines.push(` ${border("|")}${" ".repeat(W)}${border("|")}`);
1245
1235
  const wrapped = wordWrap(data.intro, W - 4);
@@ -1283,8 +1273,7 @@ function contactTable(contacts) {
1283
1273
  const header = ` ${"Name".padEnd(nameWidth)} Email`;
1284
1274
  console.log(`${BOLD}${header}${RESET}`);
1285
1275
  for (const c of contacts) {
1286
- const ghost = c.isGhost ? ` ${DIM}(ghost)${RESET}` : "";
1287
- console.log(` ${c.name.padEnd(nameWidth)} ${c.email}${ghost}`);
1276
+ console.log(` ${c.name.padEnd(nameWidth)} ${c.email}`);
1288
1277
  }
1289
1278
  }
1290
1279
  function intentTable(intents) {
@@ -2536,10 +2525,8 @@ async function conversationStream(client) {
2536
2525
  // src/contact.command.ts
2537
2526
  var CONTACT_HELP = `
2538
2527
  Usage:
2539
- index contact list List your contacts
2540
- index contact add <email> [--name <n>] Add a contact by email
2541
- index contact remove <email> Remove a contact
2542
- index contact import --gmail Import contacts from Gmail
2528
+ index contact list List your contacts
2529
+ index contact remove <email> Remove a contact
2543
2530
  `;
2544
2531
  async function handleContact(client, subcommand, positionals, options) {
2545
2532
  if (!subcommand) {
@@ -2569,25 +2556,6 @@ async function handleContact(client, subcommand, positionals, options) {
2569
2556
  console.log();
2570
2557
  return;
2571
2558
  }
2572
- case "add": {
2573
- const email = positionals[0];
2574
- if (!email) {
2575
- error("Missing email. Usage: index contact add <email>", 1);
2576
- return;
2577
- }
2578
- const result = await client.callTool("add_contact", { email, name: options.name });
2579
- if (options.json) {
2580
- console.log(JSON.stringify(result));
2581
- return;
2582
- }
2583
- if (!result.success) {
2584
- error(result.error ?? "Failed to add contact", 1);
2585
- return;
2586
- }
2587
- const data = result.data;
2588
- success(data.message);
2589
- return;
2590
- }
2591
2559
  case "remove": {
2592
2560
  const email = positionals[0];
2593
2561
  if (!email) {
@@ -2617,24 +2585,6 @@ async function handleContact(client, subcommand, positionals, options) {
2617
2585
  success(`Removed ${email} from contacts.`);
2618
2586
  return;
2619
2587
  }
2620
- case "import": {
2621
- if (options.gmail) {
2622
- const result = await client.callTool("import_gmail_contacts", {});
2623
- if (options.json) {
2624
- console.log(JSON.stringify(result));
2625
- return;
2626
- }
2627
- if (!result.success) {
2628
- error(result.error ?? "Failed to import Gmail contacts", 1);
2629
- return;
2630
- }
2631
- const data = result.data;
2632
- success(data.message);
2633
- } else {
2634
- error("Specify import source: --gmail", 1);
2635
- }
2636
- return;
2637
- }
2638
2588
  default: {
2639
2589
  if (options.json) {
2640
2590
  console.log(JSON.stringify({ error: `Unknown subcommand: ${subcommand}` }));
@@ -2806,8 +2756,6 @@ function renderHelp() {
2806
2756
  "--limit <n>",
2807
2757
  "--since <date>",
2808
2758
  "--json",
2809
- "--name <name>",
2810
- "--gmail",
2811
2759
  "--objective <text>",
2812
2760
  "--linkedin <url>",
2813
2761
  "--github <url>",
@@ -2851,7 +2799,7 @@ function renderHelp() {
2851
2799
  helpRowCmd(cmdLW, "conversation", "list · with · show · send · stream"),
2852
2800
  helpRowCmd(cmdLW, "network", "list · create · show · update · delete"),
2853
2801
  helpRowCont(cmdLW, "join · leave · invite"),
2854
- helpRowCmd(cmdLW, "contact", "list · add · remove · import"),
2802
+ helpRowCmd(cmdLW, "contact", "list · remove"),
2855
2803
  "",
2856
2804
  helpRowCmd(cmdLW, "scrape", "extract content from a URL"),
2857
2805
  helpRowCmd(cmdLW, "sync", "download your context locally"),
@@ -2865,8 +2813,6 @@ function renderHelp() {
2865
2813
  helpRowDim(optLW, "--limit <n>", "limit number of results"),
2866
2814
  helpRowDim(optLW, "--since <date>", "filter by ISO date or duration"),
2867
2815
  helpRowDim(optLW, "--json", "output raw JSON"),
2868
- helpRowDim(optLW, "--name <name>", "name for contact add"),
2869
- helpRowDim(optLW, "--gmail", "import contacts from Gmail"),
2870
2816
  helpRowDim(optLW, "--objective <text>", "objective for scrape command"),
2871
2817
  helpRowDim(optLW, "--linkedin <url>", "LinkedIn URL for profile create"),
2872
2818
  helpRowDim(optLW, "--github <url>", "GitHub URL for profile create"),
@@ -3016,9 +2962,7 @@ async function main() {
3016
2962
  return;
3017
2963
  case "contact":
3018
2964
  await handleContact(client, args.subcommand, args.positionals ?? [], {
3019
- json: args.json,
3020
- name: args.name,
3021
- gmail: args.gmail
2965
+ json: args.json
3022
2966
  });
3023
2967
  return;
3024
2968
  case "scrape":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/cli",
3
- "version": "0.15.0-rc.64.1",
3
+ "version": "0.17.0-rc.66.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.15.0-rc.64.1",
24
- "@indexnetwork/cli-linux-arm64": "0.15.0-rc.64.1",
25
- "@indexnetwork/cli-darwin-x64": "0.15.0-rc.64.1",
26
- "@indexnetwork/cli-darwin-arm64": "0.15.0-rc.64.1"
23
+ "@indexnetwork/cli-linux-x64": "0.17.0-rc.66.1",
24
+ "@indexnetwork/cli-linux-arm64": "0.17.0-rc.66.1",
25
+ "@indexnetwork/cli-darwin-x64": "0.17.0-rc.66.1",
26
+ "@indexnetwork/cli-darwin-arm64": "0.17.0-rc.66.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "1.3.14"