happy-coder 0.3.1-beta.1 → 0.3.1-beta.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.
Files changed (43) hide show
  1. package/dist/index.cjs +6 -4
  2. package/dist/index.mjs +6 -4
  3. package/package.json +7 -5
  4. package/dist/index-B2GqfEZV.cjs +0 -1564
  5. package/dist/index-QItBXhux.mjs +0 -1540
  6. package/dist/install-B0DnBGS_.mjs +0 -29
  7. package/dist/install-B2r_gX72.cjs +0 -109
  8. package/dist/install-C809w0Cj.cjs +0 -31
  9. package/dist/install-DEPy62QN.mjs +0 -97
  10. package/dist/install-GZIzyuIE.cjs +0 -99
  11. package/dist/install-HKe7dyS4.mjs +0 -107
  12. package/dist/run-BmEaINbl.cjs +0 -250
  13. package/dist/run-DMbKhYfb.mjs +0 -247
  14. package/dist/run-FBXkmmN7.mjs +0 -32
  15. package/dist/run-q2To6b-c.cjs +0 -34
  16. package/dist/types-BG9AgCI4.mjs +0 -875
  17. package/dist/types-BRICSarm.mjs +0 -870
  18. package/dist/types-BTQRfIr3.cjs +0 -892
  19. package/dist/types-BeUppqJU.cjs +0 -886
  20. package/dist/types-C6Wx_bRW.cjs +0 -886
  21. package/dist/types-CEvzGLMI.cjs +0 -882
  22. package/dist/types-CKUdOV6c.mjs +0 -875
  23. package/dist/types-CNuBtNA5.cjs +0 -884
  24. package/dist/types-Cg4664gs.cjs +0 -879
  25. package/dist/types-CkPUFpfr.cjs +0 -885
  26. package/dist/types-CzYKFAYa.mjs +0 -882
  27. package/dist/types-D39L8JSd.mjs +0 -850
  28. package/dist/types-D7u2DxfV.cjs +0 -893
  29. package/dist/types-DD9P_5rj.mjs +0 -868
  30. package/dist/types-DNu8okOb.mjs +0 -874
  31. package/dist/types-DYBiuNUQ.cjs +0 -883
  32. package/dist/types-Df5dlWLV.mjs +0 -871
  33. package/dist/types-fXgEaaqP.mjs +0 -861
  34. package/dist/types-hotUTaWz.cjs +0 -863
  35. package/dist/types-ikrrEcJm.mjs +0 -873
  36. package/dist/types-mykDX2xe.cjs +0 -872
  37. package/dist/types-tLWMaptR.mjs +0 -879
  38. package/dist/uninstall-BGgl5V8F.mjs +0 -29
  39. package/dist/uninstall-BWHglipH.mjs +0 -40
  40. package/dist/uninstall-C42CoSCI.cjs +0 -53
  41. package/dist/uninstall-CLkTtlMv.mjs +0 -51
  42. package/dist/uninstall-CdHMb6wi.cjs +0 -31
  43. package/dist/uninstall-FXyyAuGU.cjs +0 -42
@@ -1,29 +0,0 @@
1
- import { l as logger } from './types-BRICSarm.mjs';
2
- import { uninstall as uninstall$1 } from './uninstall-BWHglipH.mjs';
3
- import 'axios';
4
- import 'chalk';
5
- import 'fs';
6
- import 'node:os';
7
- import 'node:path';
8
- import 'node:fs/promises';
9
- import 'node:fs';
10
- import 'node:events';
11
- import 'socket.io-client';
12
- import 'zod';
13
- import 'node:crypto';
14
- import 'tweetnacl';
15
- import 'expo-server-sdk';
16
- import 'child_process';
17
-
18
- async function uninstall() {
19
- if (process.platform !== "darwin") {
20
- throw new Error("Daemon uninstallation is currently only supported on macOS");
21
- }
22
- if (process.getuid && process.getuid() !== 0) {
23
- throw new Error("Daemon uninstallation requires sudo privileges. Please run with sudo.");
24
- }
25
- logger.info("Uninstalling Happy CLI daemon for macOS...");
26
- await uninstall$1();
27
- }
28
-
29
- export { uninstall };
@@ -1,40 +0,0 @@
1
- import { existsSync, unlinkSync } from 'fs';
2
- import { execSync } from 'child_process';
3
- import { l as logger } from './types-BRICSarm.mjs';
4
- import 'axios';
5
- import 'chalk';
6
- import 'node:os';
7
- import 'node:path';
8
- import 'node:fs/promises';
9
- import 'node:fs';
10
- import 'node:events';
11
- import 'socket.io-client';
12
- import 'zod';
13
- import 'node:crypto';
14
- import 'tweetnacl';
15
- import 'expo-server-sdk';
16
-
17
- const PLIST_LABEL = "com.happy-cli.daemon";
18
- const PLIST_FILE = `/Library/LaunchDaemons/${PLIST_LABEL}.plist`;
19
- async function uninstall() {
20
- try {
21
- if (!existsSync(PLIST_FILE)) {
22
- logger.info("Daemon plist not found. Nothing to uninstall.");
23
- return;
24
- }
25
- try {
26
- execSync(`launchctl unload ${PLIST_FILE}`, { stdio: "inherit" });
27
- logger.info("Daemon stopped successfully");
28
- } catch (error) {
29
- logger.info("Failed to unload daemon (it might not be running)");
30
- }
31
- unlinkSync(PLIST_FILE);
32
- logger.info(`Removed daemon plist from ${PLIST_FILE}`);
33
- logger.info("Daemon uninstalled successfully");
34
- } catch (error) {
35
- logger.debug("Failed to uninstall daemon:", error);
36
- throw error;
37
- }
38
- }
39
-
40
- export { uninstall };
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var types = require('./types-mykDX2xe.cjs');
4
- var fs = require('fs');
5
- var child_process = require('child_process');
6
- require('axios');
7
- require('chalk');
8
- require('node:os');
9
- require('node:path');
10
- require('node:fs/promises');
11
- require('node:fs');
12
- require('node:events');
13
- require('socket.io-client');
14
- require('zod');
15
- require('node:crypto');
16
- require('tweetnacl');
17
- require('expo-server-sdk');
18
-
19
- const PLIST_LABEL = "com.happy-cli.daemon";
20
- const PLIST_FILE = `/Library/LaunchDaemons/${PLIST_LABEL}.plist`;
21
- async function uninstall$1() {
22
- try {
23
- if (!fs.existsSync(PLIST_FILE)) {
24
- types.logger.info("Daemon plist not found. Nothing to uninstall.");
25
- return;
26
- }
27
- try {
28
- child_process.execSync(`launchctl unload ${PLIST_FILE}`, { stdio: "inherit" });
29
- types.logger.info("Daemon stopped successfully");
30
- } catch (error) {
31
- types.logger.info("Failed to unload daemon (it might not be running)");
32
- }
33
- fs.unlinkSync(PLIST_FILE);
34
- types.logger.info(`Removed daemon plist from ${PLIST_FILE}`);
35
- types.logger.info("Daemon uninstalled successfully");
36
- } catch (error) {
37
- types.logger.debug("Failed to uninstall daemon:", error);
38
- throw error;
39
- }
40
- }
41
-
42
- async function uninstall() {
43
- if (process.platform !== "darwin") {
44
- throw new Error("Daemon uninstallation is currently only supported on macOS");
45
- }
46
- if (process.getuid && process.getuid() !== 0) {
47
- throw new Error("Daemon uninstallation requires sudo privileges. Please run with sudo.");
48
- }
49
- types.logger.info("Uninstalling Happy CLI daemon for macOS...");
50
- await uninstall$1();
51
- }
52
-
53
- exports.uninstall = uninstall;
@@ -1,51 +0,0 @@
1
- import { l as logger } from './types-fXgEaaqP.mjs';
2
- import { existsSync, unlinkSync } from 'fs';
3
- import { execSync } from 'child_process';
4
- import 'axios';
5
- import 'chalk';
6
- import 'node:os';
7
- import 'node:path';
8
- import 'node:fs/promises';
9
- import 'node:fs';
10
- import 'node:events';
11
- import 'socket.io-client';
12
- import 'zod';
13
- import 'node:crypto';
14
- import 'tweetnacl';
15
- import 'expo-server-sdk';
16
-
17
- const PLIST_LABEL = "com.happy-cli.daemon";
18
- const PLIST_FILE = `/Library/LaunchDaemons/${PLIST_LABEL}.plist`;
19
- async function uninstall$1() {
20
- try {
21
- if (!existsSync(PLIST_FILE)) {
22
- logger.info("Daemon plist not found. Nothing to uninstall.");
23
- return;
24
- }
25
- try {
26
- execSync(`launchctl unload ${PLIST_FILE}`, { stdio: "inherit" });
27
- logger.info("Daemon stopped successfully");
28
- } catch (error) {
29
- logger.info("Failed to unload daemon (it might not be running)");
30
- }
31
- unlinkSync(PLIST_FILE);
32
- logger.info(`Removed daemon plist from ${PLIST_FILE}`);
33
- logger.info("Daemon uninstalled successfully");
34
- } catch (error) {
35
- logger.debug("Failed to uninstall daemon:", error);
36
- throw error;
37
- }
38
- }
39
-
40
- async function uninstall() {
41
- if (process.platform !== "darwin") {
42
- throw new Error("Daemon uninstallation is currently only supported on macOS");
43
- }
44
- if (process.getuid && process.getuid() !== 0) {
45
- throw new Error("Daemon uninstallation requires sudo privileges. Please run with sudo.");
46
- }
47
- logger.info("Uninstalling Happy CLI daemon for macOS...");
48
- await uninstall$1();
49
- }
50
-
51
- export { uninstall };
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- var types = require('./types-DYBiuNUQ.cjs');
4
- var uninstall$1 = require('./uninstall-FXyyAuGU.cjs');
5
- require('axios');
6
- require('chalk');
7
- require('fs');
8
- require('node:os');
9
- require('node:path');
10
- require('node:fs/promises');
11
- require('node:fs');
12
- require('node:events');
13
- require('socket.io-client');
14
- require('zod');
15
- require('node:crypto');
16
- require('tweetnacl');
17
- require('expo-server-sdk');
18
- require('child_process');
19
-
20
- async function uninstall() {
21
- if (process.platform !== "darwin") {
22
- throw new Error("Daemon uninstallation is currently only supported on macOS");
23
- }
24
- if (process.getuid && process.getuid() !== 0) {
25
- throw new Error("Daemon uninstallation requires sudo privileges. Please run with sudo.");
26
- }
27
- types.logger.info("Uninstalling Happy CLI daemon for macOS...");
28
- await uninstall$1.uninstall();
29
- }
30
-
31
- exports.uninstall = uninstall;
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- var fs = require('fs');
4
- var child_process = require('child_process');
5
- var types = require('./types-DYBiuNUQ.cjs');
6
- require('axios');
7
- require('chalk');
8
- require('node:os');
9
- require('node:path');
10
- require('node:fs/promises');
11
- require('node:fs');
12
- require('node:events');
13
- require('socket.io-client');
14
- require('zod');
15
- require('node:crypto');
16
- require('tweetnacl');
17
- require('expo-server-sdk');
18
-
19
- const PLIST_LABEL = "com.happy-cli.daemon";
20
- const PLIST_FILE = `/Library/LaunchDaemons/${PLIST_LABEL}.plist`;
21
- async function uninstall() {
22
- try {
23
- if (!fs.existsSync(PLIST_FILE)) {
24
- types.logger.info("Daemon plist not found. Nothing to uninstall.");
25
- return;
26
- }
27
- try {
28
- child_process.execSync(`launchctl unload ${PLIST_FILE}`, { stdio: "inherit" });
29
- types.logger.info("Daemon stopped successfully");
30
- } catch (error) {
31
- types.logger.info("Failed to unload daemon (it might not be running)");
32
- }
33
- fs.unlinkSync(PLIST_FILE);
34
- types.logger.info(`Removed daemon plist from ${PLIST_FILE}`);
35
- types.logger.info("Daemon uninstalled successfully");
36
- } catch (error) {
37
- types.logger.debug("Failed to uninstall daemon:", error);
38
- throw error;
39
- }
40
- }
41
-
42
- exports.uninstall = uninstall;