remoat 0.2.2 → 0.2.3

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.
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Postinstall welcome message — shown after `npm install -g remoat`.
4
+ * Standalone script: no imports from the rest of the codebase.
5
+ */
6
+ declare const C: {
7
+ readonly reset: "\u001B[0m";
8
+ readonly bold: "\u001B[1m";
9
+ readonly dim: "\u001B[2m";
10
+ readonly cyan: "\u001B[36m";
11
+ readonly green: "\u001B[32m";
12
+ readonly yellow: "\u001B[33m";
13
+ };
14
+ declare const version: string;
15
+ declare const logo: string;
16
+ declare const width = 50;
17
+ declare const borderTop: string;
18
+ declare const borderBottom: string;
19
+ declare const pad: (s: string) => string;
20
+ declare const empty: string;
21
+ /** Length of a string ignoring ANSI escape codes. */
22
+ declare function visibleLength(s: string): number;
23
+ declare const lines: string[];
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ /**
4
+ * Postinstall welcome message — shown after `npm install -g remoat`.
5
+ * Standalone script: no imports from the rest of the codebase.
6
+ */
7
+ const C = {
8
+ reset: '\x1b[0m',
9
+ bold: '\x1b[1m',
10
+ dim: '\x1b[2m',
11
+ cyan: '\x1b[36m',
12
+ green: '\x1b[32m',
13
+ yellow: '\x1b[33m',
14
+ };
15
+ // Read version from package.json at runtime
16
+ const version = (() => {
17
+ try {
18
+ const pkg = require('../../package.json');
19
+ return pkg.version;
20
+ }
21
+ catch {
22
+ return 'unknown';
23
+ }
24
+ })();
25
+ const logo = [
26
+ `${C.cyan} . * .${C.reset}`,
27
+ `${C.cyan} __ z Z${C.reset}`,
28
+ `${C.cyan} * / o o\\________z${C.reset} *`,
29
+ `${C.cyan} \\ / |${C.reset}`,
30
+ `${C.cyan} | | ||---||${C.reset} .`,
31
+ `${C.cyan} _|___|_ || ||${C.reset}`,
32
+ ].join('\n');
33
+ const width = 50;
34
+ const borderTop = `╭${'─'.repeat(width)}╮`;
35
+ const borderBottom = `╰${'─'.repeat(width)}╯`;
36
+ const pad = (s) => `│ ${s}${''.padEnd(width - visibleLength(s) - 4)} │`;
37
+ const empty = `│${''.padEnd(width)}│`;
38
+ /** Length of a string ignoring ANSI escape codes. */
39
+ function visibleLength(s) {
40
+ return s.replace(/\x1b\[\d+m/g, '').length;
41
+ }
42
+ const lines = [
43
+ '',
44
+ borderTop,
45
+ empty,
46
+ ...logo.split('\n').map(l => pad(l)),
47
+ empty,
48
+ pad(`${C.bold}Remoat${C.reset} v${version}`),
49
+ pad(`${C.dim}Control Antigravity from your phone${C.reset}`),
50
+ empty,
51
+ pad(`${C.yellow}Quick start:${C.reset}`),
52
+ pad(` ${C.bold}1.${C.reset} ${C.green}remoat setup${C.reset} ${C.dim}— configure Telegram bot${C.reset}`),
53
+ pad(` ${C.bold}2.${C.reset} ${C.green}remoat open${C.reset} ${C.dim}— launch Antigravity + CDP${C.reset}`),
54
+ pad(` ${C.bold}3.${C.reset} ${C.green}remoat start${C.reset} ${C.dim}— start the bot${C.reset}`),
55
+ empty,
56
+ pad(`${C.dim}Troubleshoot: ${C.reset}${C.green}remoat doctor${C.reset}`),
57
+ pad(`${C.dim}GitHub: ${C.reset}${C.cyan}github.com/optimistengineer/Remoat${C.reset}`),
58
+ empty,
59
+ borderBottom,
60
+ '',
61
+ ];
62
+ console.log(lines.join('\n'));
63
+ //# sourceMappingURL=postinstall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":";;AAEA;;;GAGG;AAEH,MAAM,CAAC,GAAG;IACN,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;CACZ,CAAC;AAEX,4CAA4C;AAC5C,MAAM,OAAO,GAAG,CAAC,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AAC,KAAK,EAAE,CAAC;IACtF,KAAK;IACL,YAAY;IACZ,EAAE;CACL,CAAC;AAEF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remoat",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Control Antigravity from anywhere — a local Telegram Bot that lets you remotely operate Antigravity on your home PC from your smartphone.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -28,6 +28,7 @@
28
28
  "start:built": "node dist/bin/cli.js",
29
29
  "dev": "ts-node-dev --respawn src/bin/cli.ts",
30
30
  "docs:diagram": "mmdc -i docs/diagrams/architecture.mmd -o docs/images/architecture.svg -b transparent",
31
+ "postinstall": "node dist/bin/postinstall.js 2>/dev/null || true",
31
32
  "prepublishOnly": "npm run build && npm run test"
32
33
  },
33
34
  "keywords": [