@react-grab/cli 0.0.86 → 0.0.88
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/cli.cjs +13 -16
- package/dist/cli.js +13 -16
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1327,7 +1327,7 @@ var applyOptionsTransform = (result) => {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
|
|
1329
1329
|
// src/commands/add.ts
|
|
1330
|
-
var VERSION = "0.0.
|
|
1330
|
+
var VERSION = "0.0.88";
|
|
1331
1331
|
var AGENT_NAMES = {
|
|
1332
1332
|
"claude-code": "Claude Code",
|
|
1333
1333
|
cursor: "Cursor",
|
|
@@ -1335,12 +1335,11 @@ var AGENT_NAMES = {
|
|
|
1335
1335
|
codex: "Codex",
|
|
1336
1336
|
gemini: "Gemini",
|
|
1337
1337
|
amp: "Amp",
|
|
1338
|
-
ami: "Ami",
|
|
1339
1338
|
"visual-edit": "Visual Edit"
|
|
1340
1339
|
};
|
|
1341
1340
|
var add = new commander.Command().name("add").description("add an agent integration").argument(
|
|
1342
1341
|
"[agent]",
|
|
1343
|
-
"agent to add (claude-code, cursor, opencode, codex, gemini, amp,
|
|
1342
|
+
"agent to add (claude-code, cursor, opencode, codex, gemini, amp, visual-edit)"
|
|
1344
1343
|
).option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1345
1344
|
"-c, --cwd <cwd>",
|
|
1346
1345
|
"working directory (defaults to current directory)",
|
|
@@ -1372,7 +1371,6 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1372
1371
|
"codex",
|
|
1373
1372
|
"gemini",
|
|
1374
1373
|
"amp",
|
|
1375
|
-
"ami",
|
|
1376
1374
|
"visual-edit"
|
|
1377
1375
|
].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1378
1376
|
if (availableAgents.length === 0) {
|
|
@@ -1390,13 +1388,12 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1390
1388
|
"codex",
|
|
1391
1389
|
"gemini",
|
|
1392
1390
|
"amp",
|
|
1393
|
-
"
|
|
1394
|
-
"instant"
|
|
1391
|
+
"visual-edit"
|
|
1395
1392
|
].includes(agentArg)) {
|
|
1396
1393
|
logger.break();
|
|
1397
1394
|
logger.error(`Invalid agent: ${agentArg}`);
|
|
1398
1395
|
logger.error(
|
|
1399
|
-
"Available agents: claude-code, cursor, opencode, codex, gemini, amp,
|
|
1396
|
+
"Available agents: claude-code, cursor, opencode, codex, gemini, amp, visual-edit"
|
|
1400
1397
|
);
|
|
1401
1398
|
logger.break();
|
|
1402
1399
|
process.exit(1);
|
|
@@ -1545,7 +1542,7 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1545
1542
|
handleError(error);
|
|
1546
1543
|
}
|
|
1547
1544
|
});
|
|
1548
|
-
var VERSION2 = "0.0.
|
|
1545
|
+
var VERSION2 = "0.0.88";
|
|
1549
1546
|
var MODIFIER_KEY_NAMES = {
|
|
1550
1547
|
metaKey: process.platform === "darwin" ? "\u2318 Command" : "\u229E Windows",
|
|
1551
1548
|
ctrlKey: "Ctrl",
|
|
@@ -1753,7 +1750,7 @@ var configure = new commander.Command().name("configure").alias("config").descri
|
|
|
1753
1750
|
handleError(error);
|
|
1754
1751
|
}
|
|
1755
1752
|
});
|
|
1756
|
-
var VERSION3 = "0.0.
|
|
1753
|
+
var VERSION3 = "0.0.88";
|
|
1757
1754
|
var REPORT_URL = "https://react-grab.com/api/report-cli";
|
|
1758
1755
|
var DOCS_URL = "https://github.com/aidenybai/react-grab";
|
|
1759
1756
|
var reportToCli = async (type, config, error) => {
|
|
@@ -1793,7 +1790,7 @@ var UNSUPPORTED_FRAMEWORK_NAMES = {
|
|
|
1793
1790
|
};
|
|
1794
1791
|
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(
|
|
1795
1792
|
"-a, --agent <agent>",
|
|
1796
|
-
"agent integration (claude-code, cursor, opencode, codex, gemini, amp,
|
|
1793
|
+
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, visual-edit)"
|
|
1797
1794
|
).option("--skip-install", "skip package installation", false).option(
|
|
1798
1795
|
"-c, --cwd <cwd>",
|
|
1799
1796
|
"working directory (defaults to current directory)",
|
|
@@ -1924,7 +1921,6 @@ var init = new commander.Command().name("init").description("initialize React Gr
|
|
|
1924
1921
|
{ title: "Codex", value: "codex" },
|
|
1925
1922
|
{ title: "Gemini", value: "gemini" },
|
|
1926
1923
|
{ title: "Amp", value: "amp" },
|
|
1927
|
-
{ title: "Ami", value: "ami" },
|
|
1928
1924
|
{ title: "Visual Edit", value: "visual-edit" }
|
|
1929
1925
|
]
|
|
1930
1926
|
});
|
|
@@ -2063,10 +2059,10 @@ var init = new commander.Command().name("init").description("initialize React Gr
|
|
|
2063
2059
|
await reportToCli("error", void 0, error);
|
|
2064
2060
|
}
|
|
2065
2061
|
});
|
|
2066
|
-
var VERSION4 = "0.0.
|
|
2062
|
+
var VERSION4 = "0.0.88";
|
|
2067
2063
|
var DEFAULT_PROXY_PORT = 2e3;
|
|
2068
|
-
var REACT_GRAB_SCRIPT = '<script src="
|
|
2069
|
-
var buildProviderScript = (provider) => `<script src="
|
|
2064
|
+
var REACT_GRAB_SCRIPT = '<script src="https://unpkg.com/react-grab/dist/index.global.js"></script>';
|
|
2065
|
+
var buildProviderScript = (provider) => `<script src="https://unpkg.com/${provider}/dist/client.global.js"></script>`;
|
|
2070
2066
|
var findAvailablePort = async (startingPort, hostname) => {
|
|
2071
2067
|
return new Promise((resolve) => {
|
|
2072
2068
|
const server = http.createServer();
|
|
@@ -2138,7 +2134,7 @@ var start = new commander.Command().name("start").alias("proxy").description("st
|
|
|
2138
2134
|
{ title: "Codex", value: "@react-grab/codex" },
|
|
2139
2135
|
{ title: "Gemini", value: "@react-grab/gemini" },
|
|
2140
2136
|
{ title: "Amp", value: "@react-grab/amp" },
|
|
2141
|
-
{ title: "
|
|
2137
|
+
{ title: "Visual Edit", value: "@react-grab/visual-edit" }
|
|
2142
2138
|
]
|
|
2143
2139
|
});
|
|
2144
2140
|
if (selectedProvider === void 0) {
|
|
@@ -2288,7 +2284,8 @@ var start = new commander.Command().name("start").alias("proxy").description("st
|
|
|
2288
2284
|
});
|
|
2289
2285
|
|
|
2290
2286
|
// src/cli.ts
|
|
2291
|
-
|
|
2287
|
+
process.noDeprecation = true;
|
|
2288
|
+
var VERSION5 = "0.0.88";
|
|
2292
2289
|
var VERSION_API_URL = "https://www.react-grab.com/api/version";
|
|
2293
2290
|
process.on("SIGINT", () => process.exit(0));
|
|
2294
2291
|
process.on("SIGTERM", () => process.exit(0));
|
package/dist/cli.js
CHANGED
|
@@ -1319,7 +1319,7 @@ var applyOptionsTransform = (result) => {
|
|
|
1319
1319
|
};
|
|
1320
1320
|
|
|
1321
1321
|
// src/commands/add.ts
|
|
1322
|
-
var VERSION = "0.0.
|
|
1322
|
+
var VERSION = "0.0.88";
|
|
1323
1323
|
var AGENT_NAMES = {
|
|
1324
1324
|
"claude-code": "Claude Code",
|
|
1325
1325
|
cursor: "Cursor",
|
|
@@ -1327,12 +1327,11 @@ var AGENT_NAMES = {
|
|
|
1327
1327
|
codex: "Codex",
|
|
1328
1328
|
gemini: "Gemini",
|
|
1329
1329
|
amp: "Amp",
|
|
1330
|
-
ami: "Ami",
|
|
1331
1330
|
"visual-edit": "Visual Edit"
|
|
1332
1331
|
};
|
|
1333
1332
|
var add = new Command().name("add").description("add an agent integration").argument(
|
|
1334
1333
|
"[agent]",
|
|
1335
|
-
"agent to add (claude-code, cursor, opencode, codex, gemini, amp,
|
|
1334
|
+
"agent to add (claude-code, cursor, opencode, codex, gemini, amp, visual-edit)"
|
|
1336
1335
|
).option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1337
1336
|
"-c, --cwd <cwd>",
|
|
1338
1337
|
"working directory (defaults to current directory)",
|
|
@@ -1364,7 +1363,6 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1364
1363
|
"codex",
|
|
1365
1364
|
"gemini",
|
|
1366
1365
|
"amp",
|
|
1367
|
-
"ami",
|
|
1368
1366
|
"visual-edit"
|
|
1369
1367
|
].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1370
1368
|
if (availableAgents.length === 0) {
|
|
@@ -1382,13 +1380,12 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1382
1380
|
"codex",
|
|
1383
1381
|
"gemini",
|
|
1384
1382
|
"amp",
|
|
1385
|
-
"
|
|
1386
|
-
"instant"
|
|
1383
|
+
"visual-edit"
|
|
1387
1384
|
].includes(agentArg)) {
|
|
1388
1385
|
logger.break();
|
|
1389
1386
|
logger.error(`Invalid agent: ${agentArg}`);
|
|
1390
1387
|
logger.error(
|
|
1391
|
-
"Available agents: claude-code, cursor, opencode, codex, gemini, amp,
|
|
1388
|
+
"Available agents: claude-code, cursor, opencode, codex, gemini, amp, visual-edit"
|
|
1392
1389
|
);
|
|
1393
1390
|
logger.break();
|
|
1394
1391
|
process.exit(1);
|
|
@@ -1537,7 +1534,7 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1537
1534
|
handleError(error);
|
|
1538
1535
|
}
|
|
1539
1536
|
});
|
|
1540
|
-
var VERSION2 = "0.0.
|
|
1537
|
+
var VERSION2 = "0.0.88";
|
|
1541
1538
|
var MODIFIER_KEY_NAMES = {
|
|
1542
1539
|
metaKey: process.platform === "darwin" ? "\u2318 Command" : "\u229E Windows",
|
|
1543
1540
|
ctrlKey: "Ctrl",
|
|
@@ -1745,7 +1742,7 @@ var configure = new Command().name("configure").alias("config").description("con
|
|
|
1745
1742
|
handleError(error);
|
|
1746
1743
|
}
|
|
1747
1744
|
});
|
|
1748
|
-
var VERSION3 = "0.0.
|
|
1745
|
+
var VERSION3 = "0.0.88";
|
|
1749
1746
|
var REPORT_URL = "https://react-grab.com/api/report-cli";
|
|
1750
1747
|
var DOCS_URL = "https://github.com/aidenybai/react-grab";
|
|
1751
1748
|
var reportToCli = async (type, config, error) => {
|
|
@@ -1785,7 +1782,7 @@ var UNSUPPORTED_FRAMEWORK_NAMES = {
|
|
|
1785
1782
|
};
|
|
1786
1783
|
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(
|
|
1787
1784
|
"-a, --agent <agent>",
|
|
1788
|
-
"agent integration (claude-code, cursor, opencode, codex, gemini, amp,
|
|
1785
|
+
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, visual-edit)"
|
|
1789
1786
|
).option("--skip-install", "skip package installation", false).option(
|
|
1790
1787
|
"-c, --cwd <cwd>",
|
|
1791
1788
|
"working directory (defaults to current directory)",
|
|
@@ -1916,7 +1913,6 @@ var init = new Command().name("init").description("initialize React Grab in your
|
|
|
1916
1913
|
{ title: "Codex", value: "codex" },
|
|
1917
1914
|
{ title: "Gemini", value: "gemini" },
|
|
1918
1915
|
{ title: "Amp", value: "amp" },
|
|
1919
|
-
{ title: "Ami", value: "ami" },
|
|
1920
1916
|
{ title: "Visual Edit", value: "visual-edit" }
|
|
1921
1917
|
]
|
|
1922
1918
|
});
|
|
@@ -2055,10 +2051,10 @@ var init = new Command().name("init").description("initialize React Grab in your
|
|
|
2055
2051
|
await reportToCli("error", void 0, error);
|
|
2056
2052
|
}
|
|
2057
2053
|
});
|
|
2058
|
-
var VERSION4 = "0.0.
|
|
2054
|
+
var VERSION4 = "0.0.88";
|
|
2059
2055
|
var DEFAULT_PROXY_PORT = 2e3;
|
|
2060
|
-
var REACT_GRAB_SCRIPT = '<script src="
|
|
2061
|
-
var buildProviderScript = (provider) => `<script src="
|
|
2056
|
+
var REACT_GRAB_SCRIPT = '<script src="https://unpkg.com/react-grab/dist/index.global.js"></script>';
|
|
2057
|
+
var buildProviderScript = (provider) => `<script src="https://unpkg.com/${provider}/dist/client.global.js"></script>`;
|
|
2062
2058
|
var findAvailablePort = async (startingPort, hostname) => {
|
|
2063
2059
|
return new Promise((resolve) => {
|
|
2064
2060
|
const server = createServer();
|
|
@@ -2130,7 +2126,7 @@ var start = new Command().name("start").alias("proxy").description("start a prox
|
|
|
2130
2126
|
{ title: "Codex", value: "@react-grab/codex" },
|
|
2131
2127
|
{ title: "Gemini", value: "@react-grab/gemini" },
|
|
2132
2128
|
{ title: "Amp", value: "@react-grab/amp" },
|
|
2133
|
-
{ title: "
|
|
2129
|
+
{ title: "Visual Edit", value: "@react-grab/visual-edit" }
|
|
2134
2130
|
]
|
|
2135
2131
|
});
|
|
2136
2132
|
if (selectedProvider === void 0) {
|
|
@@ -2280,7 +2276,8 @@ var start = new Command().name("start").alias("proxy").description("start a prox
|
|
|
2280
2276
|
});
|
|
2281
2277
|
|
|
2282
2278
|
// src/cli.ts
|
|
2283
|
-
|
|
2279
|
+
process.noDeprecation = true;
|
|
2280
|
+
var VERSION5 = "0.0.88";
|
|
2284
2281
|
var VERSION_API_URL = "https://www.react-grab.com/api/version";
|
|
2285
2282
|
process.on("SIGINT", () => process.exit(0));
|
|
2286
2283
|
process.on("SIGTERM", () => process.exit(0));
|