@indexnetwork/cli 0.15.0-rc.64.1 → 0.16.0-rc.65.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 +9 -63
  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.16.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.16.0",
43
+ "@indexnetwork/cli-linux-arm64": "0.16.0",
44
+ "@indexnetwork/cli-darwin-x64": "0.16.0",
45
+ "@indexnetwork/cli-darwin-arm64": "0.16.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) {
@@ -2536,10 +2527,8 @@ async function conversationStream(client) {
2536
2527
  // src/contact.command.ts
2537
2528
  var CONTACT_HELP = `
2538
2529
  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
2530
+ index contact list List your contacts
2531
+ index contact remove <email> Remove a contact
2543
2532
  `;
2544
2533
  async function handleContact(client, subcommand, positionals, options) {
2545
2534
  if (!subcommand) {
@@ -2569,25 +2558,6 @@ async function handleContact(client, subcommand, positionals, options) {
2569
2558
  console.log();
2570
2559
  return;
2571
2560
  }
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
2561
  case "remove": {
2592
2562
  const email = positionals[0];
2593
2563
  if (!email) {
@@ -2617,24 +2587,6 @@ async function handleContact(client, subcommand, positionals, options) {
2617
2587
  success(`Removed ${email} from contacts.`);
2618
2588
  return;
2619
2589
  }
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
2590
  default: {
2639
2591
  if (options.json) {
2640
2592
  console.log(JSON.stringify({ error: `Unknown subcommand: ${subcommand}` }));
@@ -2806,8 +2758,6 @@ function renderHelp() {
2806
2758
  "--limit <n>",
2807
2759
  "--since <date>",
2808
2760
  "--json",
2809
- "--name <name>",
2810
- "--gmail",
2811
2761
  "--objective <text>",
2812
2762
  "--linkedin <url>",
2813
2763
  "--github <url>",
@@ -2851,7 +2801,7 @@ function renderHelp() {
2851
2801
  helpRowCmd(cmdLW, "conversation", "list · with · show · send · stream"),
2852
2802
  helpRowCmd(cmdLW, "network", "list · create · show · update · delete"),
2853
2803
  helpRowCont(cmdLW, "join · leave · invite"),
2854
- helpRowCmd(cmdLW, "contact", "list · add · remove · import"),
2804
+ helpRowCmd(cmdLW, "contact", "list · remove"),
2855
2805
  "",
2856
2806
  helpRowCmd(cmdLW, "scrape", "extract content from a URL"),
2857
2807
  helpRowCmd(cmdLW, "sync", "download your context locally"),
@@ -2865,8 +2815,6 @@ function renderHelp() {
2865
2815
  helpRowDim(optLW, "--limit <n>", "limit number of results"),
2866
2816
  helpRowDim(optLW, "--since <date>", "filter by ISO date or duration"),
2867
2817
  helpRowDim(optLW, "--json", "output raw JSON"),
2868
- helpRowDim(optLW, "--name <name>", "name for contact add"),
2869
- helpRowDim(optLW, "--gmail", "import contacts from Gmail"),
2870
2818
  helpRowDim(optLW, "--objective <text>", "objective for scrape command"),
2871
2819
  helpRowDim(optLW, "--linkedin <url>", "LinkedIn URL for profile create"),
2872
2820
  helpRowDim(optLW, "--github <url>", "GitHub URL for profile create"),
@@ -3016,9 +2964,7 @@ async function main() {
3016
2964
  return;
3017
2965
  case "contact":
3018
2966
  await handleContact(client, args.subcommand, args.positionals ?? [], {
3019
- json: args.json,
3020
- name: args.name,
3021
- gmail: args.gmail
2967
+ json: args.json
3022
2968
  });
3023
2969
  return;
3024
2970
  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.16.0-rc.65.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.16.0-rc.65.1",
24
+ "@indexnetwork/cli-linux-arm64": "0.16.0-rc.65.1",
25
+ "@indexnetwork/cli-darwin-x64": "0.16.0-rc.65.1",
26
+ "@indexnetwork/cli-darwin-arm64": "0.16.0-rc.65.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "1.3.14"