@react-grab/cli 0.0.82 → 0.0.83
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 +16 -14
- package/dist/cli.js +16 -14
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -242,7 +242,7 @@ var detectReactGrab = (projectRoot) => {
|
|
|
242
242
|
];
|
|
243
243
|
return filesToCheck.some(hasReactGrabInFile);
|
|
244
244
|
};
|
|
245
|
-
var AGENT_PACKAGES = ["@react-grab/claude-code", "@react-grab/cursor", "@react-grab/opencode", "@react-grab/codex", "@react-grab/gemini", "@react-grab/amp"];
|
|
245
|
+
var AGENT_PACKAGES = ["@react-grab/claude-code", "@react-grab/cursor", "@react-grab/opencode", "@react-grab/codex", "@react-grab/gemini", "@react-grab/amp", "@react-grab/ami", "@react-grab/instant"];
|
|
246
246
|
var detectUnsupportedFramework = (projectRoot) => {
|
|
247
247
|
const packageJsonPath = path.join(projectRoot, "package.json");
|
|
248
248
|
if (!fs.existsSync(packageJsonPath)) {
|
|
@@ -993,11 +993,11 @@ var AGENT_PREFIXES = {
|
|
|
993
993
|
amp: "npx @react-grab/amp@latest &&"
|
|
994
994
|
};
|
|
995
995
|
var previewPackageJsonTransform = (projectRoot, agent, installedAgents) => {
|
|
996
|
-
if (agent === "none" || agent === "ami") {
|
|
996
|
+
if (agent === "none" || agent === "ami" || agent === "instant") {
|
|
997
997
|
return {
|
|
998
998
|
success: true,
|
|
999
999
|
filePath: "",
|
|
1000
|
-
message: agent === "ami" ? "Ami does not require package.json modification
|
|
1000
|
+
message: agent === "ami" || agent === "instant" ? `${agent === "ami" ? "Ami" : "Instant"} does not require package.json modification` : "No agent selected, skipping package.json modification",
|
|
1001
1001
|
noChanges: true
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
@@ -1086,7 +1086,7 @@ var applyPackageJsonTransform = (result) => {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
|
|
1088
1088
|
// src/commands/add.ts
|
|
1089
|
-
var VERSION = "0.0.
|
|
1089
|
+
var VERSION = "0.0.83";
|
|
1090
1090
|
var AGENT_NAMES = {
|
|
1091
1091
|
"claude-code": "Claude Code",
|
|
1092
1092
|
cursor: "Cursor",
|
|
@@ -1094,9 +1094,10 @@ var AGENT_NAMES = {
|
|
|
1094
1094
|
codex: "Codex",
|
|
1095
1095
|
gemini: "Gemini",
|
|
1096
1096
|
amp: "Amp",
|
|
1097
|
-
ami: "Ami"
|
|
1097
|
+
ami: "Ami",
|
|
1098
|
+
instant: "Instant"
|
|
1098
1099
|
};
|
|
1099
|
-
var add = new commander.Command().name("add").description("add an agent integration").argument("[agent]", "agent to add (claude-code, cursor, opencode, codex, gemini, amp, ami)").option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1100
|
+
var add = new commander.Command().name("add").description("add an agent integration").argument("[agent]", "agent to add (claude-code, cursor, opencode, codex, gemini, amp, ami, instant)").option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1100
1101
|
"-c, --cwd <cwd>",
|
|
1101
1102
|
"working directory (defaults to current directory)",
|
|
1102
1103
|
process.cwd()
|
|
@@ -1118,7 +1119,7 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1118
1119
|
process.exit(1);
|
|
1119
1120
|
}
|
|
1120
1121
|
preflightSpinner.succeed();
|
|
1121
|
-
const availableAgents = ["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami"].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1122
|
+
const availableAgents = ["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami", "instant"].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1122
1123
|
if (availableAgents.length === 0) {
|
|
1123
1124
|
logger.break();
|
|
1124
1125
|
logger.success("All agent integrations are already installed.");
|
|
@@ -1127,10 +1128,10 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1127
1128
|
}
|
|
1128
1129
|
let agentIntegration;
|
|
1129
1130
|
if (agentArg) {
|
|
1130
|
-
if (!["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami"].includes(agentArg)) {
|
|
1131
|
+
if (!["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami", "instant"].includes(agentArg)) {
|
|
1131
1132
|
logger.break();
|
|
1132
1133
|
logger.error(`Invalid agent: ${agentArg}`);
|
|
1133
|
-
logger.error("Available agents: claude-code, cursor, opencode, codex, gemini, amp, ami");
|
|
1134
|
+
logger.error("Available agents: claude-code, cursor, opencode, codex, gemini, amp, ami, instant");
|
|
1134
1135
|
logger.break();
|
|
1135
1136
|
process.exit(1);
|
|
1136
1137
|
}
|
|
@@ -1278,7 +1279,7 @@ var add = new commander.Command().name("add").description("add an agent integrat
|
|
|
1278
1279
|
handleError(error);
|
|
1279
1280
|
}
|
|
1280
1281
|
});
|
|
1281
|
-
var VERSION2 = "0.0.
|
|
1282
|
+
var VERSION2 = "0.0.83";
|
|
1282
1283
|
var REPORT_URL = "https://react-grab.com/api/report-cli";
|
|
1283
1284
|
var DOCS_URL = "https://github.com/aidenybai/react-grab";
|
|
1284
1285
|
var reportToCli = async (type, config, error) => {
|
|
@@ -1318,7 +1319,7 @@ var UNSUPPORTED_FRAMEWORK_NAMES = {
|
|
|
1318
1319
|
};
|
|
1319
1320
|
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(
|
|
1320
1321
|
"-a, --agent <agent>",
|
|
1321
|
-
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, ami)"
|
|
1322
|
+
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, ami, instant)"
|
|
1322
1323
|
).option("--skip-install", "skip package installation", false).option(
|
|
1323
1324
|
"-c, --cwd <cwd>",
|
|
1324
1325
|
"working directory (defaults to current directory)",
|
|
@@ -1447,7 +1448,8 @@ var init = new commander.Command().name("init").description("initialize React Gr
|
|
|
1447
1448
|
{ title: "Codex", value: "codex" },
|
|
1448
1449
|
{ title: "Gemini", value: "gemini" },
|
|
1449
1450
|
{ title: "Amp", value: "amp" },
|
|
1450
|
-
{ title: "Ami", value: "ami" }
|
|
1451
|
+
{ title: "Ami", value: "ami" },
|
|
1452
|
+
{ title: "Instant", value: "instant" }
|
|
1451
1453
|
]
|
|
1452
1454
|
});
|
|
1453
1455
|
if (agent === void 0) {
|
|
@@ -1585,7 +1587,7 @@ var init = new commander.Command().name("init").description("initialize React Gr
|
|
|
1585
1587
|
await reportToCli("error", void 0, error);
|
|
1586
1588
|
}
|
|
1587
1589
|
});
|
|
1588
|
-
var VERSION3 = "0.0.
|
|
1590
|
+
var VERSION3 = "0.0.83";
|
|
1589
1591
|
var DEFAULT_PROXY_PORT = 2e3;
|
|
1590
1592
|
var REACT_GRAB_SCRIPT = '<script src="//unpkg.com/react-grab/dist/index.global.js"></script>';
|
|
1591
1593
|
var buildProviderScript = (provider) => `<script src="//unpkg.com/${provider}/dist/client.global.js"></script>`;
|
|
@@ -1806,7 +1808,7 @@ var start = new commander.Command().name("start").alias("proxy").description("st
|
|
|
1806
1808
|
});
|
|
1807
1809
|
|
|
1808
1810
|
// src/cli.ts
|
|
1809
|
-
var VERSION4 = "0.0.
|
|
1811
|
+
var VERSION4 = "0.0.83";
|
|
1810
1812
|
var VERSION_API_URL = "https://react-grab.com/api/version";
|
|
1811
1813
|
process.on("SIGINT", () => process.exit(0));
|
|
1812
1814
|
process.on("SIGTERM", () => process.exit(0));
|
package/dist/cli.js
CHANGED
|
@@ -234,7 +234,7 @@ var detectReactGrab = (projectRoot) => {
|
|
|
234
234
|
];
|
|
235
235
|
return filesToCheck.some(hasReactGrabInFile);
|
|
236
236
|
};
|
|
237
|
-
var AGENT_PACKAGES = ["@react-grab/claude-code", "@react-grab/cursor", "@react-grab/opencode", "@react-grab/codex", "@react-grab/gemini", "@react-grab/amp"];
|
|
237
|
+
var AGENT_PACKAGES = ["@react-grab/claude-code", "@react-grab/cursor", "@react-grab/opencode", "@react-grab/codex", "@react-grab/gemini", "@react-grab/amp", "@react-grab/ami", "@react-grab/instant"];
|
|
238
238
|
var detectUnsupportedFramework = (projectRoot) => {
|
|
239
239
|
const packageJsonPath = join(projectRoot, "package.json");
|
|
240
240
|
if (!existsSync(packageJsonPath)) {
|
|
@@ -985,11 +985,11 @@ var AGENT_PREFIXES = {
|
|
|
985
985
|
amp: "npx @react-grab/amp@latest &&"
|
|
986
986
|
};
|
|
987
987
|
var previewPackageJsonTransform = (projectRoot, agent, installedAgents) => {
|
|
988
|
-
if (agent === "none" || agent === "ami") {
|
|
988
|
+
if (agent === "none" || agent === "ami" || agent === "instant") {
|
|
989
989
|
return {
|
|
990
990
|
success: true,
|
|
991
991
|
filePath: "",
|
|
992
|
-
message: agent === "ami" ? "Ami does not require package.json modification
|
|
992
|
+
message: agent === "ami" || agent === "instant" ? `${agent === "ami" ? "Ami" : "Instant"} does not require package.json modification` : "No agent selected, skipping package.json modification",
|
|
993
993
|
noChanges: true
|
|
994
994
|
};
|
|
995
995
|
}
|
|
@@ -1078,7 +1078,7 @@ var applyPackageJsonTransform = (result) => {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
|
|
1080
1080
|
// src/commands/add.ts
|
|
1081
|
-
var VERSION = "0.0.
|
|
1081
|
+
var VERSION = "0.0.83";
|
|
1082
1082
|
var AGENT_NAMES = {
|
|
1083
1083
|
"claude-code": "Claude Code",
|
|
1084
1084
|
cursor: "Cursor",
|
|
@@ -1086,9 +1086,10 @@ var AGENT_NAMES = {
|
|
|
1086
1086
|
codex: "Codex",
|
|
1087
1087
|
gemini: "Gemini",
|
|
1088
1088
|
amp: "Amp",
|
|
1089
|
-
ami: "Ami"
|
|
1089
|
+
ami: "Ami",
|
|
1090
|
+
instant: "Instant"
|
|
1090
1091
|
};
|
|
1091
|
-
var add = new Command().name("add").description("add an agent integration").argument("[agent]", "agent to add (claude-code, cursor, opencode, codex, gemini, amp, ami)").option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1092
|
+
var add = new Command().name("add").description("add an agent integration").argument("[agent]", "agent to add (claude-code, cursor, opencode, codex, gemini, amp, ami, instant)").option("-y, --yes", "skip confirmation prompts", false).option(
|
|
1092
1093
|
"-c, --cwd <cwd>",
|
|
1093
1094
|
"working directory (defaults to current directory)",
|
|
1094
1095
|
process.cwd()
|
|
@@ -1110,7 +1111,7 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1110
1111
|
process.exit(1);
|
|
1111
1112
|
}
|
|
1112
1113
|
preflightSpinner.succeed();
|
|
1113
|
-
const availableAgents = ["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami"].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1114
|
+
const availableAgents = ["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami", "instant"].filter((agent) => !projectInfo.installedAgents.includes(agent));
|
|
1114
1115
|
if (availableAgents.length === 0) {
|
|
1115
1116
|
logger.break();
|
|
1116
1117
|
logger.success("All agent integrations are already installed.");
|
|
@@ -1119,10 +1120,10 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1119
1120
|
}
|
|
1120
1121
|
let agentIntegration;
|
|
1121
1122
|
if (agentArg) {
|
|
1122
|
-
if (!["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami"].includes(agentArg)) {
|
|
1123
|
+
if (!["claude-code", "cursor", "opencode", "codex", "gemini", "amp", "ami", "instant"].includes(agentArg)) {
|
|
1123
1124
|
logger.break();
|
|
1124
1125
|
logger.error(`Invalid agent: ${agentArg}`);
|
|
1125
|
-
logger.error("Available agents: claude-code, cursor, opencode, codex, gemini, amp, ami");
|
|
1126
|
+
logger.error("Available agents: claude-code, cursor, opencode, codex, gemini, amp, ami, instant");
|
|
1126
1127
|
logger.break();
|
|
1127
1128
|
process.exit(1);
|
|
1128
1129
|
}
|
|
@@ -1270,7 +1271,7 @@ var add = new Command().name("add").description("add an agent integration").argu
|
|
|
1270
1271
|
handleError(error);
|
|
1271
1272
|
}
|
|
1272
1273
|
});
|
|
1273
|
-
var VERSION2 = "0.0.
|
|
1274
|
+
var VERSION2 = "0.0.83";
|
|
1274
1275
|
var REPORT_URL = "https://react-grab.com/api/report-cli";
|
|
1275
1276
|
var DOCS_URL = "https://github.com/aidenybai/react-grab";
|
|
1276
1277
|
var reportToCli = async (type, config, error) => {
|
|
@@ -1310,7 +1311,7 @@ var UNSUPPORTED_FRAMEWORK_NAMES = {
|
|
|
1310
1311
|
};
|
|
1311
1312
|
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(
|
|
1312
1313
|
"-a, --agent <agent>",
|
|
1313
|
-
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, ami)"
|
|
1314
|
+
"agent integration (claude-code, cursor, opencode, codex, gemini, amp, ami, instant)"
|
|
1314
1315
|
).option("--skip-install", "skip package installation", false).option(
|
|
1315
1316
|
"-c, --cwd <cwd>",
|
|
1316
1317
|
"working directory (defaults to current directory)",
|
|
@@ -1439,7 +1440,8 @@ var init = new Command().name("init").description("initialize React Grab in your
|
|
|
1439
1440
|
{ title: "Codex", value: "codex" },
|
|
1440
1441
|
{ title: "Gemini", value: "gemini" },
|
|
1441
1442
|
{ title: "Amp", value: "amp" },
|
|
1442
|
-
{ title: "Ami", value: "ami" }
|
|
1443
|
+
{ title: "Ami", value: "ami" },
|
|
1444
|
+
{ title: "Instant", value: "instant" }
|
|
1443
1445
|
]
|
|
1444
1446
|
});
|
|
1445
1447
|
if (agent === void 0) {
|
|
@@ -1577,7 +1579,7 @@ var init = new Command().name("init").description("initialize React Grab in your
|
|
|
1577
1579
|
await reportToCli("error", void 0, error);
|
|
1578
1580
|
}
|
|
1579
1581
|
});
|
|
1580
|
-
var VERSION3 = "0.0.
|
|
1582
|
+
var VERSION3 = "0.0.83";
|
|
1581
1583
|
var DEFAULT_PROXY_PORT = 2e3;
|
|
1582
1584
|
var REACT_GRAB_SCRIPT = '<script src="//unpkg.com/react-grab/dist/index.global.js"></script>';
|
|
1583
1585
|
var buildProviderScript = (provider) => `<script src="//unpkg.com/${provider}/dist/client.global.js"></script>`;
|
|
@@ -1798,7 +1800,7 @@ var start = new Command().name("start").alias("proxy").description("start a prox
|
|
|
1798
1800
|
});
|
|
1799
1801
|
|
|
1800
1802
|
// src/cli.ts
|
|
1801
|
-
var VERSION4 = "0.0.
|
|
1803
|
+
var VERSION4 = "0.0.83";
|
|
1802
1804
|
var VERSION_API_URL = "https://react-grab.com/api/version";
|
|
1803
1805
|
process.on("SIGINT", () => process.exit(0));
|
|
1804
1806
|
process.on("SIGTERM", () => process.exit(0));
|