veracarto 0.1.1 → 0.1.2
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/index.js +4 -18
- package/dist/cli/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -41953,10 +41953,9 @@ function Onboarding({ forceStep, onDone }) {
|
|
|
41953
41953
|
const { exit } = use_app_default();
|
|
41954
41954
|
const [step, setStep] = (0, import_react24.useState)("welcome");
|
|
41955
41955
|
const [error, setError] = (0, import_react24.useState)("");
|
|
41956
|
-
const
|
|
41956
|
+
const serverUrl = process.env.VERACARTO_SERVER_URL || "https://api.veracarto.com";
|
|
41957
41957
|
const [email, setEmail] = (0, import_react24.useState)("");
|
|
41958
|
-
const [
|
|
41959
|
-
const [editingEmail, setEditingEmail] = (0, import_react24.useState)(false);
|
|
41958
|
+
const [editingEmail, setEditingEmail] = (0, import_react24.useState)(true);
|
|
41960
41959
|
const [projectId, setProjectId] = (0, import_react24.useState)("");
|
|
41961
41960
|
const [editingProjectId, setEditingProjectId] = (0, import_react24.useState)(true);
|
|
41962
41961
|
const [gcpConnected, setGcpConnected] = (0, import_react24.useState)(false);
|
|
@@ -41985,8 +41984,6 @@ function Onboarding({ forceStep, onDone }) {
|
|
|
41985
41984
|
if (configExists()) {
|
|
41986
41985
|
const config = getConfig();
|
|
41987
41986
|
if (config) {
|
|
41988
|
-
setServerUrl(config.server);
|
|
41989
|
-
setEditingServer(false);
|
|
41990
41987
|
getStatus().then((status) => {
|
|
41991
41988
|
if (status.gcpConnected) {
|
|
41992
41989
|
setGcpConnected(true);
|
|
@@ -42085,7 +42082,6 @@ function Onboarding({ forceStep, onDone }) {
|
|
|
42085
42082
|
if (input === "b") {
|
|
42086
42083
|
if (step === "gcp" && !loading) {
|
|
42087
42084
|
setStep("welcome");
|
|
42088
|
-
setEditingServer(false);
|
|
42089
42085
|
setEditingEmail(true);
|
|
42090
42086
|
}
|
|
42091
42087
|
if (step === "github" && !githubPolling) {
|
|
@@ -42254,17 +42250,7 @@ function Onboarding({ forceStep, onDone }) {
|
|
|
42254
42250
|
setError(e.message);
|
|
42255
42251
|
}
|
|
42256
42252
|
}
|
|
42257
|
-
return /* @__PURE__ */ import_react24.default.createElement(Box_default, { flexDirection: "column" }, step === "welcome" && /* @__PURE__ */ import_react24.default.createElement(Box_default, { flexDirection: "column", borderStyle: "single", paddingX: 2, paddingY: 1, width }, /* @__PURE__ */ import_react24.default.createElement(Text, { bold: true, color: "white" }, "VERACARTO"), /* @__PURE__ */ import_react24.default.createElement(Text, { color: "#888888" }, "security findings, down to what matters"), /* @__PURE__ */ import_react24.default.createElement(Text, null, " "),
|
|
42258
|
-
build_default,
|
|
42259
|
-
{
|
|
42260
|
-
value: serverUrl,
|
|
42261
|
-
onChange: setServerUrl,
|
|
42262
|
-
onSubmit: () => {
|
|
42263
|
-
setEditingServer(false);
|
|
42264
|
-
setEditingEmail(true);
|
|
42265
|
-
}
|
|
42266
|
-
}
|
|
42267
|
-
)), !editingServer && /* @__PURE__ */ import_react24.default.createElement(Text, { color: "#888888" }, "Server: ", serverUrl), /* @__PURE__ */ import_react24.default.createElement(Text, null, " "), editingEmail && !editingServer && /* @__PURE__ */ import_react24.default.createElement(Box_default, null, /* @__PURE__ */ import_react24.default.createElement(Text, null, "Email: "), /* @__PURE__ */ import_react24.default.createElement(
|
|
42253
|
+
return /* @__PURE__ */ import_react24.default.createElement(Box_default, { flexDirection: "column" }, step === "welcome" && /* @__PURE__ */ import_react24.default.createElement(Box_default, { flexDirection: "column", borderStyle: "single", paddingX: 2, paddingY: 1, width }, /* @__PURE__ */ import_react24.default.createElement(Text, { bold: true, color: "white" }, "VERACARTO"), /* @__PURE__ */ import_react24.default.createElement(Text, { color: "#888888" }, "security findings, down to what matters"), /* @__PURE__ */ import_react24.default.createElement(Text, null, " "), editingEmail && /* @__PURE__ */ import_react24.default.createElement(Box_default, null, /* @__PURE__ */ import_react24.default.createElement(Text, null, "Email: "), /* @__PURE__ */ import_react24.default.createElement(
|
|
42268
42254
|
build_default,
|
|
42269
42255
|
{
|
|
42270
42256
|
value: email,
|
|
@@ -45051,7 +45037,7 @@ var {
|
|
|
45051
45037
|
// src/cli/index.ts
|
|
45052
45038
|
init_config();
|
|
45053
45039
|
var program2 = new Command();
|
|
45054
|
-
program2.name("veracarto").description("Security findings, down to what matters").version("0.1.
|
|
45040
|
+
program2.name("veracarto").description("Security findings, down to what matters").version("0.1.2");
|
|
45055
45041
|
program2.command("init").description("Interactive onboarding wizard").option("--step <step>", "Jump to a specific step (gcp, github, slack)").action(async (opts) => {
|
|
45056
45042
|
const { runInit: runInit2 } = await init_init().then(() => init_exports);
|
|
45057
45043
|
await runInit2(opts.step);
|