@react-grab/cli 0.1.10 → 0.1.11

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 (3) hide show
  1. package/dist/cli.cjs +19 -14
  2. package/dist/cli.js +19 -14
  3. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -541,7 +541,8 @@ var AGENTS = [
541
541
  "codex",
542
542
  "gemini",
543
543
  "amp",
544
- "ami"
544
+ "ami",
545
+ "droid"
545
546
  ];
546
547
  var AGENT_NAMES = {
547
548
  "claude-code": "Claude Code",
@@ -550,7 +551,8 @@ var AGENT_NAMES = {
550
551
  codex: "Codex",
551
552
  gemini: "Gemini",
552
553
  amp: "Amp",
553
- ami: "Ami"
554
+ ami: "Ami",
555
+ droid: "Droid"
554
556
  };
555
557
  var NEXT_APP_ROUTER_SCRIPT = `{process.env.NODE_ENV === "development" && (
556
558
  <Script
@@ -1842,7 +1844,10 @@ var previewCdnTransform = (projectRoot, framework, nextRouterType, targetCdnDoma
1842
1844
  }
1843
1845
  const originalContent = fs.readFileSync(filePath, "utf-8");
1844
1846
  const newContent = originalContent.replace(
1845
- /\/\/[^/\s"']+(?=\/(?:@?react-grab))/g,
1847
+ /(https?:)?\/\/[^/\s"']+(?=\/(?:@?react-grab))/g,
1848
+ `//${targetCdnDomain}`
1849
+ ).replace(
1850
+ /(https?:)?\/\/[^/\s"']*react-grab[^/\s"']*\.com(?=\/script\.js)/g,
1846
1851
  `//${targetCdnDomain}`
1847
1852
  );
1848
1853
  if (newContent === originalContent) {
@@ -1863,7 +1868,7 @@ var previewCdnTransform = (projectRoot, framework, nextRouterType, targetCdnDoma
1863
1868
  };
1864
1869
 
1865
1870
  // src/commands/add.ts
1866
- var VERSION = "0.1.10";
1871
+ var VERSION = "0.1.11";
1867
1872
  var formatInstalledAgentNames = (agents) => agents.map((agent) => AGENT_NAMES[agent] || agent).join(", ");
1868
1873
  var add = new commander.Command().name("add").alias("install").description("add an agent integration").argument("[agent]", `agent to add (${AGENTS.join(", ")})`).option("-y, --yes", "skip confirmation prompts", false).option(
1869
1874
  "-c, --cwd <cwd>",
@@ -1959,7 +1964,7 @@ var add = new commander.Command().name("add").alias("install").description("add
1959
1964
  const { agent } = await prompts({
1960
1965
  type: "select",
1961
1966
  name: "agent",
1962
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
1967
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
1963
1968
  choices: availableAgents.map((availableAgent) => ({
1964
1969
  title: AGENT_NAMES[availableAgent],
1965
1970
  value: availableAgent
@@ -2199,7 +2204,7 @@ var MAX_KEY_HOLD_DURATION_MS = 2e3;
2199
2204
  var MAX_CONTEXT_LINES = 50;
2200
2205
 
2201
2206
  // src/commands/configure.ts
2202
- var VERSION2 = "0.1.10";
2207
+ var VERSION2 = "0.1.11";
2203
2208
  var isMac = process.platform === "darwin";
2204
2209
  var META_LABEL = isMac ? "Cmd" : "Win";
2205
2210
  var ALT_LABEL = isMac ? "Option" : "Alt";
@@ -2755,7 +2760,7 @@ var uninstallPackagesWithFeedback = (packages, packageManager, projectRoot) => {
2755
2760
  };
2756
2761
 
2757
2762
  // src/commands/init.ts
2758
- var VERSION3 = "0.1.10";
2763
+ var VERSION3 = "0.1.11";
2759
2764
  var REPORT_URL = "https://react-grab.com/api/report-cli";
2760
2765
  var DOCS_URL = "https://github.com/aidenybai/react-grab";
2761
2766
  var reportToCli = (type, config, error) => {
@@ -2811,7 +2816,7 @@ var formatActivationKeyDisplay2 = (activationKey) => {
2811
2816
  };
2812
2817
  var init = new commander.Command().name("init").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option(
2813
2818
  "-a, --agent <agent>",
2814
- "agent integration (claude-code, cursor, opencode, codex, gemini, amp)"
2819
+ "agent integration (claude-code, cursor, opencode, codex, gemini, amp, droid)"
2815
2820
  ).option(
2816
2821
  "-k, --key <key>",
2817
2822
  "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)"
@@ -3035,7 +3040,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
3035
3040
  const { wantAddAgent } = await prompts({
3036
3041
  type: "confirm",
3037
3042
  name: "wantAddAgent",
3038
- message: `Would you like to add an ${highlighter.info("agent integration")}?`,
3043
+ message: `Would you like to connect React Grab to a ${highlighter.info("coding agent")}? ${highlighter.dim("(optional)")}`,
3039
3044
  initial: false
3040
3045
  });
3041
3046
  if (wantAddAgent === void 0) {
@@ -3046,7 +3051,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
3046
3051
  const { agent } = await prompts({
3047
3052
  type: "select",
3048
3053
  name: "agent",
3049
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
3054
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
3050
3055
  choices: [
3051
3056
  ...availableAgents.map((innerAgent) => ({
3052
3057
  title: getAgentName(innerAgent),
@@ -3357,7 +3362,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
3357
3362
  const { wantAddAgent } = await prompts({
3358
3363
  type: "confirm",
3359
3364
  name: "wantAddAgent",
3360
- message: `Would you like to add an ${highlighter.info("agent integration")}?`,
3365
+ message: `Would you like to connect React Grab to a ${highlighter.info("coding agent")}? ${highlighter.dim("(optional)")}`,
3361
3366
  initial: false
3362
3367
  });
3363
3368
  if (wantAddAgent === void 0) {
@@ -3368,7 +3373,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
3368
3373
  const { agent } = await prompts({
3369
3374
  type: "select",
3370
3375
  name: "agent",
3371
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
3376
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
3372
3377
  choices: [
3373
3378
  ...AGENTS.map((innerAgent) => ({
3374
3379
  title: getAgentName(innerAgent),
@@ -3491,7 +3496,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
3491
3496
  reportToCli("error", void 0, error);
3492
3497
  }
3493
3498
  });
3494
- var VERSION4 = "0.1.10";
3499
+ var VERSION4 = "0.1.11";
3495
3500
  var remove = new commander.Command().name("remove").description("remove an agent integration").argument(
3496
3501
  "[agent]",
3497
3502
  "agent to remove (claude-code, cursor, opencode, codex, gemini, amp, ami)"
@@ -3670,7 +3675,7 @@ var remove = new commander.Command().name("remove").description("remove an agent
3670
3675
  });
3671
3676
 
3672
3677
  // src/cli.ts
3673
- var VERSION5 = "0.1.10";
3678
+ var VERSION5 = "0.1.11";
3674
3679
  var VERSION_API_URL = "https://www.react-grab.com/api/version";
3675
3680
  process.on("SIGINT", () => process.exit(0));
3676
3681
  process.on("SIGTERM", () => process.exit(0));
package/dist/cli.js CHANGED
@@ -533,7 +533,8 @@ var AGENTS = [
533
533
  "codex",
534
534
  "gemini",
535
535
  "amp",
536
- "ami"
536
+ "ami",
537
+ "droid"
537
538
  ];
538
539
  var AGENT_NAMES = {
539
540
  "claude-code": "Claude Code",
@@ -542,7 +543,8 @@ var AGENT_NAMES = {
542
543
  codex: "Codex",
543
544
  gemini: "Gemini",
544
545
  amp: "Amp",
545
- ami: "Ami"
546
+ ami: "Ami",
547
+ droid: "Droid"
546
548
  };
547
549
  var NEXT_APP_ROUTER_SCRIPT = `{process.env.NODE_ENV === "development" && (
548
550
  <Script
@@ -1834,7 +1836,10 @@ var previewCdnTransform = (projectRoot, framework, nextRouterType, targetCdnDoma
1834
1836
  }
1835
1837
  const originalContent = readFileSync(filePath, "utf-8");
1836
1838
  const newContent = originalContent.replace(
1837
- /\/\/[^/\s"']+(?=\/(?:@?react-grab))/g,
1839
+ /(https?:)?\/\/[^/\s"']+(?=\/(?:@?react-grab))/g,
1840
+ `//${targetCdnDomain}`
1841
+ ).replace(
1842
+ /(https?:)?\/\/[^/\s"']*react-grab[^/\s"']*\.com(?=\/script\.js)/g,
1838
1843
  `//${targetCdnDomain}`
1839
1844
  );
1840
1845
  if (newContent === originalContent) {
@@ -1855,7 +1860,7 @@ var previewCdnTransform = (projectRoot, framework, nextRouterType, targetCdnDoma
1855
1860
  };
1856
1861
 
1857
1862
  // src/commands/add.ts
1858
- var VERSION = "0.1.10";
1863
+ var VERSION = "0.1.11";
1859
1864
  var formatInstalledAgentNames = (agents) => agents.map((agent) => AGENT_NAMES[agent] || agent).join(", ");
1860
1865
  var add = new Command().name("add").alias("install").description("add an agent integration").argument("[agent]", `agent to add (${AGENTS.join(", ")})`).option("-y, --yes", "skip confirmation prompts", false).option(
1861
1866
  "-c, --cwd <cwd>",
@@ -1951,7 +1956,7 @@ var add = new Command().name("add").alias("install").description("add an agent i
1951
1956
  const { agent } = await prompts({
1952
1957
  type: "select",
1953
1958
  name: "agent",
1954
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
1959
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
1955
1960
  choices: availableAgents.map((availableAgent) => ({
1956
1961
  title: AGENT_NAMES[availableAgent],
1957
1962
  value: availableAgent
@@ -2191,7 +2196,7 @@ var MAX_KEY_HOLD_DURATION_MS = 2e3;
2191
2196
  var MAX_CONTEXT_LINES = 50;
2192
2197
 
2193
2198
  // src/commands/configure.ts
2194
- var VERSION2 = "0.1.10";
2199
+ var VERSION2 = "0.1.11";
2195
2200
  var isMac = process.platform === "darwin";
2196
2201
  var META_LABEL = isMac ? "Cmd" : "Win";
2197
2202
  var ALT_LABEL = isMac ? "Option" : "Alt";
@@ -2747,7 +2752,7 @@ var uninstallPackagesWithFeedback = (packages, packageManager, projectRoot) => {
2747
2752
  };
2748
2753
 
2749
2754
  // src/commands/init.ts
2750
- var VERSION3 = "0.1.10";
2755
+ var VERSION3 = "0.1.11";
2751
2756
  var REPORT_URL = "https://react-grab.com/api/report-cli";
2752
2757
  var DOCS_URL = "https://github.com/aidenybai/react-grab";
2753
2758
  var reportToCli = (type, config, error) => {
@@ -2803,7 +2808,7 @@ var formatActivationKeyDisplay2 = (activationKey) => {
2803
2808
  };
2804
2809
  var init = new Command().name("init").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option(
2805
2810
  "-a, --agent <agent>",
2806
- "agent integration (claude-code, cursor, opencode, codex, gemini, amp)"
2811
+ "agent integration (claude-code, cursor, opencode, codex, gemini, amp, droid)"
2807
2812
  ).option(
2808
2813
  "-k, --key <key>",
2809
2814
  "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)"
@@ -3027,7 +3032,7 @@ var init = new Command().name("init").description("initialize React Grab in your
3027
3032
  const { wantAddAgent } = await prompts({
3028
3033
  type: "confirm",
3029
3034
  name: "wantAddAgent",
3030
- message: `Would you like to add an ${highlighter.info("agent integration")}?`,
3035
+ message: `Would you like to connect React Grab to a ${highlighter.info("coding agent")}? ${highlighter.dim("(optional)")}`,
3031
3036
  initial: false
3032
3037
  });
3033
3038
  if (wantAddAgent === void 0) {
@@ -3038,7 +3043,7 @@ var init = new Command().name("init").description("initialize React Grab in your
3038
3043
  const { agent } = await prompts({
3039
3044
  type: "select",
3040
3045
  name: "agent",
3041
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
3046
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
3042
3047
  choices: [
3043
3048
  ...availableAgents.map((innerAgent) => ({
3044
3049
  title: getAgentName(innerAgent),
@@ -3349,7 +3354,7 @@ var init = new Command().name("init").description("initialize React Grab in your
3349
3354
  const { wantAddAgent } = await prompts({
3350
3355
  type: "confirm",
3351
3356
  name: "wantAddAgent",
3352
- message: `Would you like to add an ${highlighter.info("agent integration")}?`,
3357
+ message: `Would you like to connect React Grab to a ${highlighter.info("coding agent")}? ${highlighter.dim("(optional)")}`,
3353
3358
  initial: false
3354
3359
  });
3355
3360
  if (wantAddAgent === void 0) {
@@ -3360,7 +3365,7 @@ var init = new Command().name("init").description("initialize React Grab in your
3360
3365
  const { agent } = await prompts({
3361
3366
  type: "select",
3362
3367
  name: "agent",
3363
- message: `Which ${highlighter.info("agent integration")} would you like to add?`,
3368
+ message: `Which ${highlighter.info("coding agent")} would you like to connect?`,
3364
3369
  choices: [
3365
3370
  ...AGENTS.map((innerAgent) => ({
3366
3371
  title: getAgentName(innerAgent),
@@ -3483,7 +3488,7 @@ var init = new Command().name("init").description("initialize React Grab in your
3483
3488
  reportToCli("error", void 0, error);
3484
3489
  }
3485
3490
  });
3486
- var VERSION4 = "0.1.10";
3491
+ var VERSION4 = "0.1.11";
3487
3492
  var remove = new Command().name("remove").description("remove an agent integration").argument(
3488
3493
  "[agent]",
3489
3494
  "agent to remove (claude-code, cursor, opencode, codex, gemini, amp, ami)"
@@ -3662,7 +3667,7 @@ var remove = new Command().name("remove").description("remove an agent integrati
3662
3667
  });
3663
3668
 
3664
3669
  // src/cli.ts
3665
- var VERSION5 = "0.1.10";
3670
+ var VERSION5 = "0.1.11";
3666
3671
  var VERSION_API_URL = "https://www.react-grab.com/api/version";
3667
3672
  process.on("SIGINT", () => process.exit(0));
3668
3673
  process.on("SIGTERM", () => process.exit(0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-grab/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "bin": {
5
5
  "react-grab": "./dist/cli.js"
6
6
  },