@supercheck/cli 0.1.1-rc.2 → 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/README.md +14 -4
- package/dist/bin/supercheck.js +413 -234
- package/dist/bin/supercheck.js.map +1 -1
- package/dist/{chunk-W54DX2I7.js → chunk-KIAFFV4V.js} +2 -2
- package/dist/{chunk-W54DX2I7.js.map → chunk-KIAFFV4V.js.map} +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/{prompt-BPDPYRS7.js → prompt-L3F2UJRB.js} +2 -2
- package/package.json +1 -1
- /package/dist/{prompt-BPDPYRS7.js.map → prompt-L3F2UJRB.js.map} +0 -0
|
@@ -5,7 +5,7 @@ async function confirmPrompt(message, opts = {}) {
|
|
|
5
5
|
const defaultYes = opts.default === true;
|
|
6
6
|
const hint = defaultYes ? "(yes/no) [yes]" : "(yes/no) [no]";
|
|
7
7
|
const { createInterface } = await import("readline");
|
|
8
|
-
const rl = createInterface({ input: process.stdin, output: process.
|
|
8
|
+
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
9
9
|
const answer = await new Promise((resolve) => {
|
|
10
10
|
rl.question(`${message} ${hint} `, resolve);
|
|
11
11
|
});
|
|
@@ -18,4 +18,4 @@ async function confirmPrompt(message, opts = {}) {
|
|
|
18
18
|
export {
|
|
19
19
|
confirmPrompt
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-KIAFFV4V.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/prompt.ts"],"sourcesContent":["/**\n * Shared confirmation prompt utility.\n * Standardizes all CLI prompts to use `(yes/no)` format.\n */\n\n/**\n * Prompt the user for a yes/no confirmation.\n *\n * @param message - The question to ask (e.g. \"Delete resource X?\")\n * @param opts.default - What pressing Enter (empty input) means.\n * `true` = default yes, `false` = default no (default: false)\n * @returns true if the user confirmed, false otherwise\n */\nexport async function confirmPrompt(\n message: string,\n opts: { default?: boolean } = {},\n): Promise<boolean> {\n const defaultYes = opts.default === true\n const hint = defaultYes ? '(yes/no) [yes]' : '(yes/no) [no]'\n\n const { createInterface } = await import('node:readline')\n const rl = createInterface({ input: process.stdin, output: process.
|
|
1
|
+
{"version":3,"sources":["../src/utils/prompt.ts"],"sourcesContent":["/**\n * Shared confirmation prompt utility.\n * Standardizes all CLI prompts to use `(yes/no)` format.\n */\n\n/**\n * Prompt the user for a yes/no confirmation.\n *\n * @param message - The question to ask (e.g. \"Delete resource X?\")\n * @param opts.default - What pressing Enter (empty input) means.\n * `true` = default yes, `false` = default no (default: false)\n * @returns true if the user confirmed, false otherwise\n */\nexport async function confirmPrompt(\n message: string,\n opts: { default?: boolean } = {},\n): Promise<boolean> {\n const defaultYes = opts.default === true\n const hint = defaultYes ? '(yes/no) [yes]' : '(yes/no) [no]'\n\n const { createInterface } = await import('node:readline')\n const rl = createInterface({ input: process.stdin, output: process.stderr })\n\n const answer = await new Promise<string>((resolve) => {\n rl.question(`${message} ${hint} `, resolve)\n })\n rl.close()\n\n const normalized = answer.trim().toLowerCase()\n\n // Empty input → use default\n if (normalized === '') return defaultYes\n\n // Accept yes/y and no/n\n return normalized === 'yes' || normalized === 'y'\n}\n"],"mappings":";;;AAaA,eAAsB,cACpB,SACA,OAA8B,CAAC,GACb;AAClB,QAAM,aAAa,KAAK,YAAY;AACpC,QAAM,OAAO,aAAa,mBAAmB;AAE7C,QAAM,EAAE,gBAAgB,IAAI,MAAM,OAAO,UAAe;AACxD,QAAM,KAAK,gBAAgB,EAAE,OAAO,QAAQ,OAAO,QAAQ,QAAQ,OAAO,CAAC;AAE3E,QAAM,SAAS,MAAM,IAAI,QAAgB,CAAC,YAAY;AACpD,OAAG,SAAS,GAAG,OAAO,IAAI,IAAI,KAAK,OAAO;AAAA,EAC5C,CAAC;AACD,KAAG,MAAM;AAET,QAAM,aAAa,OAAO,KAAK,EAAE,YAAY;AAG7C,MAAI,eAAe,GAAI,QAAO;AAG9B,SAAO,eAAe,SAAS,eAAe;AAChD;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -344,6 +344,7 @@ declare const statusPageDefinitionSchema: z.ZodObject<{
|
|
|
344
344
|
description: z.ZodOptional<z.ZodString>;
|
|
345
345
|
headline: z.ZodOptional<z.ZodString>;
|
|
346
346
|
supportUrl: z.ZodOptional<z.ZodString>;
|
|
347
|
+
language: z.ZodOptional<z.ZodString>;
|
|
347
348
|
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
348
349
|
/** Database UUID. Present for existing resources, omitted for new ones. */
|
|
349
350
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -401,6 +402,7 @@ declare const statusPageDefinitionSchema: z.ZodObject<{
|
|
|
401
402
|
subdomain?: string | undefined;
|
|
402
403
|
headline?: string | undefined;
|
|
403
404
|
supportUrl?: string | undefined;
|
|
405
|
+
language?: string | undefined;
|
|
404
406
|
components?: {
|
|
405
407
|
name: string;
|
|
406
408
|
id?: string | undefined;
|
|
@@ -427,6 +429,7 @@ declare const statusPageDefinitionSchema: z.ZodObject<{
|
|
|
427
429
|
subdomain?: string | undefined;
|
|
428
430
|
headline?: string | undefined;
|
|
429
431
|
supportUrl?: string | undefined;
|
|
432
|
+
language?: string | undefined;
|
|
430
433
|
components?: {
|
|
431
434
|
name: string;
|
|
432
435
|
id?: string | undefined;
|
|
@@ -636,6 +639,7 @@ declare const supercheckConfigSchema: z.ZodObject<{
|
|
|
636
639
|
description: z.ZodOptional<z.ZodString>;
|
|
637
640
|
headline: z.ZodOptional<z.ZodString>;
|
|
638
641
|
supportUrl: z.ZodOptional<z.ZodString>;
|
|
642
|
+
language: z.ZodOptional<z.ZodString>;
|
|
639
643
|
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
640
644
|
/** Database UUID. Present for existing resources, omitted for new ones. */
|
|
641
645
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -693,6 +697,7 @@ declare const supercheckConfigSchema: z.ZodObject<{
|
|
|
693
697
|
subdomain?: string | undefined;
|
|
694
698
|
headline?: string | undefined;
|
|
695
699
|
supportUrl?: string | undefined;
|
|
700
|
+
language?: string | undefined;
|
|
696
701
|
components?: {
|
|
697
702
|
name: string;
|
|
698
703
|
id?: string | undefined;
|
|
@@ -719,6 +724,7 @@ declare const supercheckConfigSchema: z.ZodObject<{
|
|
|
719
724
|
subdomain?: string | undefined;
|
|
720
725
|
headline?: string | undefined;
|
|
721
726
|
supportUrl?: string | undefined;
|
|
727
|
+
language?: string | undefined;
|
|
722
728
|
components?: {
|
|
723
729
|
name: string;
|
|
724
730
|
id?: string | undefined;
|
|
@@ -940,6 +946,7 @@ declare const supercheckConfigSchema: z.ZodObject<{
|
|
|
940
946
|
subdomain?: string | undefined;
|
|
941
947
|
headline?: string | undefined;
|
|
942
948
|
supportUrl?: string | undefined;
|
|
949
|
+
language?: string | undefined;
|
|
943
950
|
components?: {
|
|
944
951
|
name: string;
|
|
945
952
|
id?: string | undefined;
|
|
@@ -1052,6 +1059,7 @@ declare const supercheckConfigSchema: z.ZodObject<{
|
|
|
1052
1059
|
subdomain?: string | undefined;
|
|
1053
1060
|
headline?: string | undefined;
|
|
1054
1061
|
supportUrl?: string | undefined;
|
|
1062
|
+
language?: string | undefined;
|
|
1055
1063
|
components?: {
|
|
1056
1064
|
name: string;
|
|
1057
1065
|
id?: string | undefined;
|
package/package.json
CHANGED
|
File without changes
|