@sendblue/cli 0.6.0 → 0.6.1

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.
@@ -34,7 +34,7 @@ export async function loginCommand() {
34
34
  type: 'text',
35
35
  name: 'email',
36
36
  message: 'Email',
37
- validate: (v) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v) || 'Enter a valid email'
37
+ validate: (v) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/.test(v) || 'Enter a valid email'
38
38
  }, { onCancel });
39
39
  // Step 2: Send verification code
40
40
  const sendSpinner = ora({ text: 'Sending verification code...', indent: 2 }).start();
@@ -42,7 +42,7 @@ export async function setupCommand() {
42
42
  type: 'text',
43
43
  name: 'email',
44
44
  message: 'Email',
45
- validate: (v) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v) || 'Enter a valid email'
45
+ validate: (v) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/.test(v) || 'Enter a valid email'
46
46
  }, { onCancel });
47
47
  // Step 2: Send verification code
48
48
  const sendSpinner = ora({ text: 'Sending verification code...', indent: 2 }).start();
@@ -1,50 +1,105 @@
1
1
  import chalk from 'chalk';
2
2
  const blue = chalk.hex('#0088FF');
3
- export function printLogo() {
4
- // Cloud/bubble shape with small circle top-right, matching Sendblue logo
5
- const b = blue('█');
6
- const h = blue('');
7
- const l = blue('');
3
+ /*
4
+ export function printLogo(): void {
5
+ // Chat bubble with small satellite circle, matching Sendblue logo
6
+ const b = blue('')
7
+ const h = blue('')
8
+ const l = blue('▄')
8
9
  const logo = [
9
- ` ${l}${l}${l} `,
10
- ` ${l}${l}${l}${l} ${b}${b}${b} `,
11
- ` ${l}${b}${b}${b}${b}${b}${l} ${h}${h}${h} `,
12
- ` ${l}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
13
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
14
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
15
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} `,
16
- ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${h} `,
17
- ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${h} `,
18
- ` ${h}${h}${h}${h}${h}${h}${h} `,
19
- ];
10
+ ` ${l}${l}`,
11
+ ` ${l}${l}${l}${l}${l}${l}${l} ${l}${l}${l}`,
12
+ ` ${l}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${b}${b}${b}${b}${b}${b}`,
13
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${b}${b}${b}${b}${b}${b}`,
14
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${h}${h}${h}`,
15
+ ` ${l}${l}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
16
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
17
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
18
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
19
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
20
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
21
+ ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${h}`,
22
+ ` ${h}${h}${h} ${h}${h}${h}${h}${h}${h}${h} ${h}${h}`,
23
+ ` ${h}${h}${h}${h}${h}`,
24
+ ]
20
25
  for (const line of logo) {
21
- console.log(` ${line}`);
26
+ console.log(` ${line}`)
27
+ }
28
+ console.log()
29
+ console.log(blue.bold(' sendblue'))
30
+ console.log(chalk.dim(' iMessage for agents'))
31
+ console.log()
32
+ }
33
+ */
34
+ export function printLogo() {
35
+ const lines = [
36
+ '███████╗███████╗███╗ ██╗██████╗',
37
+ '██╔════╝██╔════╝████╗ ██║██╔══██╗',
38
+ '███████╗█████╗ ██╔██╗ ██║██║ ██║',
39
+ '╚════██║██╔══╝ ██║╚██╗██║██║ ██║',
40
+ '███████║███████╗██║ ╚████║██████╔╝',
41
+ '╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝',
42
+ '',
43
+ '██████╗ ██╗ ██╗ ██╗███████╗',
44
+ '██╔══██╗██║ ██║ ██║██╔════╝',
45
+ '██████╔╝██║ ██║ ██║█████╗',
46
+ '██╔══██╗██║ ██║ ██║██╔══╝',
47
+ '██████╔╝███████╗╚██████╔╝███████╗',
48
+ '╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝',
49
+ ];
50
+ for (const line of lines) {
51
+ console.log(blue(line));
22
52
  }
23
53
  console.log();
24
- console.log(blue.bold(' sendblue'));
25
- console.log(chalk.dim(' iMessage for agents'));
54
+ console.log(chalk.dim(' iMessage for agents'));
26
55
  console.log();
27
56
  }
28
- export function getLogo() {
29
- const b = blue('█');
30
- const h = blue('');
31
- const l = blue('');
57
+ /*
58
+ export function getLogo(): string {
59
+ const b = blue('')
60
+ const h = blue('')
61
+ const l = blue('▄')
32
62
  const lines = [
33
- ` ${l}${l}${l} `,
34
- ` ${l}${l}${l}${l} ${b}${b}${b} `,
35
- ` ${l}${b}${b}${b}${b}${b}${l} ${h}${h}${h} `,
36
- ` ${l}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
37
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
38
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${l} `,
39
- ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} `,
40
- ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${h} `,
41
- ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${h} `,
42
- ` ${h}${h}${h}${h}${h}${h}${h} `,
63
+ ` ${l}${l}`,
64
+ ` ${l}${l}${l}${l}${l}${l}${l} ${l}${l}${l}`,
65
+ ` ${l}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${b}${b}${b}${b}${b}${b}`,
66
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${b}${b}${b}${b}${b}${b}`,
67
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b} ${h}${h}${h}`,
68
+ ` ${l}${l}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
69
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
70
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
71
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
72
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
73
+ ` ${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}`,
74
+ ` ${h}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${b}${h}`,
75
+ ` ${h}${h}${h} ${h}${h}${h}${h}${h}${h}${h} ${h}${h}`,
76
+ ` ${h}${h}${h}${h}${h}`,
43
77
  ``,
44
- blue.bold(' sendblue'),
45
- chalk.dim(' iMessage for agents'),
78
+ blue.bold(' Sendblue'),
79
+ chalk.dim(' iMessage for agents'),
80
+ ]
81
+ return '\n' + lines.map(l => ` ${l}`).join('\n') + '\n'
82
+ }
83
+ */
84
+ export function getLogo() {
85
+ const lines = [
86
+ '███████╗███████╗███╗ ██╗██████╗',
87
+ '██╔════╝██╔════╝████╗ ██║██╔══██╗',
88
+ '███████╗█████╗ ██╔██╗ ██║██║ ██║',
89
+ '╚════██║██╔══╝ ██║╚██╗██║██║ ██║',
90
+ '███████║███████╗██║ ╚████║██████╔╝',
91
+ '╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝',
92
+ '',
93
+ '██████╗ ██╗ ██╗ ██╗███████╗',
94
+ '██╔══██╗██║ ██║ ██║██╔════╝',
95
+ '██████╔╝██║ ██║ ██║█████╗',
96
+ '██╔══██╗██║ ██║ ██║██╔══╝',
97
+ '██████╔╝███████╗╚██████╔╝███████╗',
98
+ '╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝',
99
+ '',
100
+ chalk.dim(' iMessage for agents'),
46
101
  ];
47
- return '\n' + lines.map(l => ` ${l}`).join('\n') + '\n';
102
+ return '\n' + lines.map(l => blue(l)).join('\n') + '\n';
48
103
  }
49
104
  export function normalizeNumber(input) {
50
105
  // Strip non-digit chars except leading +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendblue/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Sendblue CLI — iMessage numbers for agents",
5
5
  "type": "module",
6
6
  "bin": {