woozlit 2.2.1 → 2.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.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/bin/woozlit +179 -0
  3. package/package.json +10 -78
  4. package/postinstall.mjs +102 -0
  5. package/README.md +0 -108
  6. package/dist/auth/login.d.ts +0 -4
  7. package/dist/auth/login.js +0 -1
  8. package/dist/browser/index.d.ts +0 -78
  9. package/dist/browser/index.js +0 -1
  10. package/dist/browser/server.d.ts +0 -13
  11. package/dist/browser/server.js +0 -1
  12. package/dist/browser/tools.d.ts +0 -13
  13. package/dist/browser/tools.js +0 -1
  14. package/dist/chat/agent.d.ts +0 -1
  15. package/dist/chat/agent.js +0 -1
  16. package/dist/config/mcp.d.ts +0 -21
  17. package/dist/config/mcp.js +0 -1
  18. package/dist/config/settings.d.ts +0 -10
  19. package/dist/config/settings.js +0 -1
  20. package/dist/discord/client.d.ts +0 -3
  21. package/dist/discord/client.js +0 -1
  22. package/dist/discord/config.d.ts +0 -5
  23. package/dist/discord/config.js +0 -1
  24. package/dist/discord/index.d.ts +0 -3
  25. package/dist/discord/index.js +0 -1
  26. package/dist/discord/setup.d.ts +0 -1
  27. package/dist/discord/setup.js +0 -1
  28. package/dist/email/config.d.ts +0 -31
  29. package/dist/email/config.js +0 -1
  30. package/dist/email/index.d.ts +0 -3
  31. package/dist/email/index.js +0 -1
  32. package/dist/email/service.d.ts +0 -4
  33. package/dist/email/service.js +0 -1
  34. package/dist/email/setup.d.ts +0 -1
  35. package/dist/email/setup.js +0 -1
  36. package/dist/github/api.d.ts +0 -25
  37. package/dist/github/api.js +0 -1
  38. package/dist/github/auth.d.ts +0 -4
  39. package/dist/github/auth.js +0 -1
  40. package/dist/github/auto-setup.d.ts +0 -1
  41. package/dist/github/auto-setup.js +0 -1
  42. package/dist/github/index.d.ts +0 -1
  43. package/dist/github/index.js +0 -1
  44. package/dist/github/manual-setup.d.ts +0 -1
  45. package/dist/github/manual-setup.js +0 -1
  46. package/dist/index.d.ts +0 -2
  47. package/dist/index.js +0 -2
  48. package/dist/mcp-servers/computer-use.d.ts +0 -1
  49. package/dist/mcp-servers/computer-use.js +0 -1
  50. package/dist/services/bot-manager.d.ts +0 -13
  51. package/dist/services/bot-manager.js +0 -1
  52. package/dist/services/notifications.d.ts +0 -4
  53. package/dist/services/notifications.js +0 -1
  54. package/dist/services/voice-agent.d.ts +0 -6
  55. package/dist/services/voice-agent.js +0 -1
  56. package/dist/telegram/bot.d.ts +0 -3
  57. package/dist/telegram/bot.js +0 -1
  58. package/dist/telegram/config.d.ts +0 -12
  59. package/dist/telegram/config.js +0 -1
  60. package/dist/telegram/index.d.ts +0 -3
  61. package/dist/telegram/index.js +0 -1
  62. package/dist/telegram/reminders.d.ts +0 -11
  63. package/dist/telegram/reminders.js +0 -1
  64. package/dist/telegram/setup.d.ts +0 -1
  65. package/dist/telegram/setup.js +0 -1
  66. package/dist/tools/command.d.ts +0 -23
  67. package/dist/tools/command.js +0 -1
  68. package/dist/tools/file.d.ts +0 -79
  69. package/dist/tools/file.js +0 -1
  70. package/dist/tools/git.d.ts +0 -30
  71. package/dist/tools/git.js +0 -1
  72. package/dist/tools/index.d.ts +0 -10
  73. package/dist/tools/index.js +0 -1
  74. package/dist/tools/knowledge.d.ts +0 -4
  75. package/dist/tools/knowledge.js +0 -1
  76. package/dist/tools/mcp.d.ts +0 -10
  77. package/dist/tools/mcp.js +0 -1
  78. package/dist/tools/network.d.ts +0 -10
  79. package/dist/tools/network.js +0 -1
  80. package/dist/tools/project.d.ts +0 -54
  81. package/dist/tools/project.js +0 -1
  82. package/dist/tools/rollback.d.ts +0 -21
  83. package/dist/tools/rollback.js +0 -1
  84. package/dist/tools/rules.d.ts +0 -4
  85. package/dist/tools/rules.js +0 -1
  86. package/dist/tools/system.d.ts +0 -33
  87. package/dist/tools/system.js +0 -1
  88. package/dist/twilio/config.d.ts +0 -11
  89. package/dist/twilio/config.js +0 -1
  90. package/dist/twilio/index.d.ts +0 -3
  91. package/dist/twilio/index.js +0 -1
  92. package/dist/twilio/server.d.ts +0 -5
  93. package/dist/twilio/server.js +0 -1
  94. package/dist/twilio/setup.d.ts +0 -1
  95. package/dist/twilio/setup.js +0 -1
  96. package/dist/ui/output.d.ts +0 -28
  97. package/dist/ui/output.js +0 -1
  98. package/dist/ui/select.d.ts +0 -3
  99. package/dist/ui/select.js +0 -1
  100. package/dist/ui/themes.d.ts +0 -25
  101. package/dist/ui/themes.js +0 -1
  102. package/dist/utils/api.d.ts +0 -22
  103. package/dist/utils/api.js +0 -1
  104. package/dist/utils/chat-history.d.ts +0 -15
  105. package/dist/utils/chat-history.js +0 -1
  106. package/dist/utils/history.d.ts +0 -3
  107. package/dist/utils/history.js +0 -1
  108. package/dist/utils/mcp-installer.d.ts +0 -1
  109. package/dist/utils/mcp-installer.js +0 -1
  110. package/dist/utils/platform.d.ts +0 -7
  111. package/dist/utils/platform.js +0 -1
  112. package/dist/utils/storage.d.ts +0 -23
  113. package/dist/utils/storage.js +0 -1
  114. package/dist/utils/update-check.d.ts +0 -5
  115. package/dist/utils/update-check.js +0 -1
  116. package/dist/utils/updater.d.ts +0 -2
  117. package/dist/utils/updater.js +0 -1
  118. package/dist/verify_repro.d.ts +0 -4
  119. package/dist/verify_repro.js +0 -1
@@ -1 +0,0 @@
1
- const a52_0x458d2c=a52_0x2fb0;(function(_0x58737b,_0x2066e0){const _0x2e7bf2=a52_0x2fb0,_0x337c24=_0x58737b();while(!![]){try{const _0x1a9ed7=-parseInt(_0x2e7bf2(0x1d2))/0x1+-parseInt(_0x2e7bf2(0x1d5))/0x2*(-parseInt(_0x2e7bf2(0x1c4))/0x3)+-parseInt(_0x2e7bf2(0x1c8))/0x4*(parseInt(_0x2e7bf2(0x1d7))/0x5)+parseInt(_0x2e7bf2(0x1c6))/0x6+-parseInt(_0x2e7bf2(0x1cd))/0x7*(-parseInt(_0x2e7bf2(0x1cb))/0x8)+-parseInt(_0x2e7bf2(0x1d0))/0x9+parseInt(_0x2e7bf2(0x1cc))/0xa*(parseInt(_0x2e7bf2(0x1d6))/0xb);if(_0x1a9ed7===_0x2066e0)break;else _0x337c24['push'](_0x337c24['shift']());}catch(_0x476d31){_0x337c24['push'](_0x337c24['shift']());}}}(a52_0x3ae3,0xef6b7));function a52_0x3ae3(){const _0x12c860=['481364DlJpYh','arch','macos','3187386XINXMA','635063NxxwQF','5yULQDp','win32','Windows','3EWjzYd','platform','4734546lbqJql','darwin','658292mqOfmS','Linux','sudo\x20','16EwKIyO','50HeTLJt','162834kVMuTJ','linux','windows','9822357BwQlVw','macOS'];a52_0x3ae3=function(){return _0x12c860;};return a52_0x3ae3();}const platform=process[a52_0x458d2c(0x1c5)],arch=process[a52_0x458d2c(0x1d3)];export function getPlatform(){const _0x57f234=a52_0x458d2c;if(platform===_0x57f234(0x1d8))return _0x57f234(0x1cf);if(platform==='darwin')return _0x57f234(0x1d4);return'linux';}export function getArch(){return arch;}export function isWindows(){const _0x588691=a52_0x458d2c;return platform===_0x588691(0x1d8);}function a52_0x2fb0(_0x45cba1,_0x2e9f90){_0x45cba1=_0x45cba1-0x1c4;const _0x3ae311=a52_0x3ae3();let _0x2fb0d2=_0x3ae311[_0x45cba1];return _0x2fb0d2;}export function isMac(){const _0x147e41=a52_0x458d2c;return platform===_0x147e41(0x1c7);}export function isLinux(){const _0xbd5f8e=a52_0x458d2c;return platform===_0xbd5f8e(0x1ce);}export function getShellPrefix(){const _0x20a7de=a52_0x458d2c;return isWindows()?'':_0x20a7de(0x1ca);}export function getPlatformInfo(){const _0x509e66=a52_0x458d2c,_0x51c82f=getPlatform(),_0x5a3bdc=_0x51c82f===_0x509e66(0x1cf)?_0x509e66(0x1d9):_0x51c82f==='macos'?_0x509e66(0x1d1):_0x509e66(0x1c9);return _0x5a3bdc+'\x20('+arch+')';}
@@ -1,23 +0,0 @@
1
- export declare function getToken(): string | undefined;
2
- export declare function setToken(token: string): void;
3
- export declare function clearToken(): void;
4
- export declare function getUser(): {
5
- userId?: string;
6
- email?: string;
7
- displayName?: string;
8
- };
9
- export declare function setUser(userId: string, email: string, displayName: string): void;
10
- export declare function clearUser(): void;
11
- export declare function getSelectedModel(): string;
12
- export declare function setSelectedModel(model: string): void;
13
- export declare function getTheme(): string;
14
- export declare function setTheme(themeId: string): void;
15
- export declare function getRules(): string[];
16
- export declare function addRule(rule: string): void;
17
- export declare function clearRules(): void;
18
- export declare function getKnowledge(): string[];
19
- export declare function addKnowledge(preset: string): void;
20
- export declare function clearKnowledge(): void;
21
- export declare function isLoggedIn(): boolean;
22
- export declare function logout(): void;
23
- export declare function wipeAll(): void;
@@ -1 +0,0 @@
1
- const a53_0x19186e=a53_0x2295;(function(_0x1fdf92,_0xd0b885){const _0x468d0e=a53_0x2295,_0x241a57=_0x1fdf92();while(!![]){try{const _0x205b07=-parseInt(_0x468d0e(0x16e))/0x1*(parseInt(_0x468d0e(0x15f))/0x2)+parseInt(_0x468d0e(0x16f))/0x3*(parseInt(_0x468d0e(0x16d))/0x4)+-parseInt(_0x468d0e(0x161))/0x5+parseInt(_0x468d0e(0x167))/0x6+parseInt(_0x468d0e(0x166))/0x7+parseInt(_0x468d0e(0x175))/0x8*(parseInt(_0x468d0e(0x15c))/0x9)+-parseInt(_0x468d0e(0x171))/0xa*(parseInt(_0x468d0e(0x15a))/0xb);if(_0x205b07===_0xd0b885)break;else _0x241a57['push'](_0x241a57['shift']());}catch(_0x418c51){_0x241a57['push'](_0x241a57['shift']());}}}(a53_0x4bf5,0x3c4a5));import a53_0x12baa2 from'conf';const config=new a53_0x12baa2({'projectName':a53_0x19186e(0x16c)});export function getToken(){const _0x47e99f=a53_0x19186e;return config[_0x47e99f(0x168)](_0x47e99f(0x15d));}export function setToken(_0x2637ca){const _0x41dbd1=a53_0x19186e;config[_0x41dbd1(0x169)](_0x41dbd1(0x15d),_0x2637ca);}export function clearToken(){const _0x22335b=a53_0x19186e;config[_0x22335b(0x162)](_0x22335b(0x15d));}export function getUser(){const _0x13336a=a53_0x19186e;return{'userId':config[_0x13336a(0x168)]('userId'),'email':config['get'](_0x13336a(0x16a)),'displayName':config['get'](_0x13336a(0x15b))};}export function setUser(_0x198db4,_0x4ce27f,_0x942377){const _0x18465f=a53_0x19186e;config[_0x18465f(0x169)](_0x18465f(0x170),_0x198db4),config[_0x18465f(0x169)](_0x18465f(0x16a),_0x4ce27f),config[_0x18465f(0x169)]('displayName',_0x942377);}export function clearUser(){const _0x5bafbc=a53_0x19186e;config[_0x5bafbc(0x162)](_0x5bafbc(0x170)),config[_0x5bafbc(0x162)](_0x5bafbc(0x16a)),config['delete'](_0x5bafbc(0x15b));}export function getSelectedModel(){const _0x5b6a8c=a53_0x19186e;return config[_0x5b6a8c(0x168)](_0x5b6a8c(0x173))||'gemini-2.5-flash';}export function setSelectedModel(_0x48e269){const _0xbe58a4=a53_0x19186e;config['set'](_0xbe58a4(0x173),_0x48e269);}export function getTheme(){const _0x3f52ac=a53_0x19186e;return config['get'](_0x3f52ac(0x160))||_0x3f52ac(0x172);}export function setTheme(_0x292b25){const _0x32a20a=a53_0x19186e;config[_0x32a20a(0x169)](_0x32a20a(0x160),_0x292b25);}export function getRules(){const _0x5187c5=a53_0x19186e;return config[_0x5187c5(0x168)](_0x5187c5(0x174))||[];}export function addRule(_0x58bc42){const _0x42aee3=a53_0x19186e,_0x5871a6=getRules();_0x5871a6['push'](_0x58bc42),config[_0x42aee3(0x169)](_0x42aee3(0x174),_0x5871a6);}function a53_0x2295(_0x1eaa1e,_0x4fd14e){_0x1eaa1e=_0x1eaa1e-0x159;const _0x4bf5d7=a53_0x4bf5();let _0x2295c6=_0x4bf5d7[_0x1eaa1e];return _0x2295c6;}export function clearRules(){const _0x2ec74b=a53_0x19186e;config[_0x2ec74b(0x169)](_0x2ec74b(0x174),[]);}export function getKnowledge(){const _0x30a9bf=a53_0x19186e,_0x127e9d=config['get'](_0x30a9bf(0x159));if(!_0x127e9d||_0x127e9d['length']===0x0){const _0x1fd3a7=[_0x30a9bf(0x164),_0x30a9bf(0x16b),'Default\x20to\x20Server\x20Components.\x20Only\x20add\x20\x27use\x20client\x27\x20when\x20hooks\x20(useState,\x20useEffect)\x20or\x20DOM\x20event\x20listeners\x20are\x20strictly\x20necessary.',_0x30a9bf(0x165),_0x30a9bf(0x163)];return config[_0x30a9bf(0x169)](_0x30a9bf(0x159),_0x1fd3a7),_0x1fd3a7;}return _0x127e9d||[];}export function addKnowledge(_0x1020d5){const _0x4180ba=a53_0x19186e,_0x56a224=getKnowledge();_0x56a224['push'](_0x1020d5),config[_0x4180ba(0x169)]('knowledge',_0x56a224);}export function clearKnowledge(){const _0x178319=a53_0x19186e;config[_0x178319(0x169)](_0x178319(0x159),[]);}export function isLoggedIn(){const _0x1edf5b=a53_0x19186e;return!!config[_0x1edf5b(0x168)]('token')&&!!config[_0x1edf5b(0x168)]('userId');}export function logout(){clearToken(),clearUser();}export function wipeAll(){const _0x6b9f13=a53_0x19186e;config[_0x6b9f13(0x15e)]();}function a53_0x4bf5(){const _0x231a22=['343531pWVYHI','57myptfj','userId','210wzVGbL','woozlit_blue','selectedModel','rules','40kouuPZ','knowledge','81433mlKQgr','displayName','449037nEdMPF','token','clear','2cvjfTc','theme','2052470IirIRG','delete','Follow\x20mobile-first\x20responsive\x20design\x20patterns.\x20Build\x20clean,\x20minimal\x20UI\x20components\x20using\x20Tailwind\x20CSS.','You\x20are\x20an\x20expert\x20Next.js\x2015,\x20React\x2019,\x20and\x20Tailwind\x20CSS\x20developer.','Use\x20Server\x20Actions\x20for\x20data\x20mutations\x20and\x20fetching.\x20Avoid\x20traditional\x20API\x20routes\x20unless\x20building\x20external\x20standard\x20REST\x20endpoints.','2160746dyBYiE','2308176xNJTTZ','get','set','email','Use\x20the\x20App\x20Router\x20(app/\x20directory)\x20exclusively.\x20Avoid\x20the\x20pages/\x20directory.','woozlit-cli','44968WGjEiG'];a53_0x4bf5=function(){return _0x231a22;};return a53_0x4bf5();}
@@ -1,5 +0,0 @@
1
- /**
2
- * Checks if a new version of the CLI is available on npm
3
- * Prints a notification box if true
4
- */
5
- export declare function checkForUpdate(): Promise<void>;
@@ -1 +0,0 @@
1
- function a54_0x11b7(){const _0x3764f1=['child_process','154044QJLmLT','\x20\x20Update\x20Available!\x20','map','521552MsCrzP','log','exit','2488504WIlSiM','split','2.2.0','json','https://registry.npmjs.org/woozlit','application/json','\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.','8466687kVeBge','green','5sADNTT','red','error','repeat','npm\x20install\x20-g\x20woozlit','...','yellow','1437543ycKKJW','3043938ZPSwXA','1142336HWKWIo','28EmNOcj','dist-tags','dim','inherit','\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit','timeout'];a54_0x11b7=function(){return _0x3764f1;};return a54_0x11b7();}const a54_0x2ff96d=a54_0x3257;function a54_0x3257(_0x3add2c,_0xe40a92){_0x3add2c=_0x3add2c-0xe5;const _0x11b770=a54_0x11b7();let _0x3257dd=_0x11b770[_0x3add2c];return _0x3257dd;}(function(_0x2217bd,_0x5a961b){const _0x574bca=a54_0x3257,_0x3e88c8=_0x2217bd();while(!![]){try{const _0x3705a9=parseInt(_0x574bca(0xf4))/0x1+-parseInt(_0x574bca(0xf1))/0x2+-parseInt(_0x574bca(0xe7))/0x3+-parseInt(_0x574bca(0xf7))/0x4*(parseInt(_0x574bca(0x100))/0x5)+-parseInt(_0x574bca(0xe8))/0x6+parseInt(_0x574bca(0xea))/0x7*(parseInt(_0x574bca(0xe9))/0x8)+parseInt(_0x574bca(0xfe))/0x9;if(_0x3705a9===_0x5a961b)break;else _0x3e88c8['push'](_0x3e88c8['shift']());}catch(_0x28db30){_0x3e88c8['push'](_0x3e88c8['shift']());}}}(a54_0x11b7,0x54ea3));import a54_0x15a294 from'chalk';const CURRENT_VERSION=a54_0x2ff96d(0xf9);export async function checkForUpdate(){const _0x2faa3b=a54_0x2ff96d;try{const _0x3e4f3e=await fetch(_0x2faa3b(0xfb),{'headers':{'Accept':_0x2faa3b(0xfc)},'signal':AbortSignal[_0x2faa3b(0xef)](0x5dc)});if(!_0x3e4f3e['ok'])return;const _0x29124d=await _0x3e4f3e[_0x2faa3b(0xfa)](),_0x3d7053=_0x29124d[_0x2faa3b(0xeb)]?.['latest'];_0x3d7053&&_0x3d7053!==CURRENT_VERSION&&(isNewer(_0x3d7053,CURRENT_VERSION)&&printUpdateBox(_0x3d7053,CURRENT_VERSION));}catch{}}function isNewer(_0x363331,_0x3599e1){const _0x58fdb0=a54_0x2ff96d,_0x3b6d31=_0x363331[_0x58fdb0(0xf8)]('.')[_0x58fdb0(0xf3)](Number),_0x4a63c9=_0x3599e1['split']('.')['map'](Number);for(let _0x59881c=0x0;_0x59881c<0x3;_0x59881c++){if(_0x3b6d31[_0x59881c]>_0x4a63c9[_0x59881c])return!![];if(_0x3b6d31[_0x59881c]<_0x4a63c9[_0x59881c])return![];}return![];}function printUpdateBox(_0x28b738,_0x32c9d2){const _0x11c24b=a54_0x2ff96d,_0x31039f=a54_0x15a294[_0x11c24b(0xe6)]('─'[_0x11c24b(0x103)](0x32));console['log'](),console[_0x11c24b(0xf5)](_0x31039f),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xe6)](_0x11c24b(0xf2)+a54_0x15a294[_0x11c24b(0xec)](_0x32c9d2)+'\x20→\x20'+a54_0x15a294[_0x11c24b(0xff)](_0x28b738))),console[_0x11c24b(0xf5)](a54_0x15a294['gray']('\x20\x20Auto-updating\x20to\x20version\x20'+_0x28b738+_0x11c24b(0xe5))),console[_0x11c24b(0xf5)](_0x31039f),console[_0x11c24b(0xf5)]();try{const {execSync:_0x182732}=require(_0x11c24b(0xf0));_0x182732(_0x11c24b(0x104),{'stdio':_0x11c24b(0xed)}),console[_0x11c24b(0xf5)](),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xff)]('\x20\x20✔\x20Woozlit\x20updated\x20successfully!')),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xec)](_0x11c24b(0xfd))),console[_0x11c24b(0xf5)](),process[_0x11c24b(0xf6)](0x0);}catch(_0x45674a){console[_0x11c24b(0x102)](a54_0x15a294[_0x11c24b(0x101)](_0x11c24b(0xee)));}}
@@ -1,2 +0,0 @@
1
- export declare function checkForUpdates(currentVersion: string): Promise<void>;
2
- export declare function performUpdate(): Promise<boolean>;
@@ -1 +0,0 @@
1
- (function(_0xd49231,_0x1b4ecd){const _0x2699ec=a55_0x2aec,_0x4acff0=_0xd49231();while(!![]){try{const _0x234439=-parseInt(_0x2699ec(0x18b))/0x1*(parseInt(_0x2699ec(0x19b))/0x2)+parseInt(_0x2699ec(0x18e))/0x3+-parseInt(_0x2699ec(0x18f))/0x4*(parseInt(_0x2699ec(0x195))/0x5)+parseInt(_0x2699ec(0x183))/0x6+parseInt(_0x2699ec(0x198))/0x7+-parseInt(_0x2699ec(0x181))/0x8+parseInt(_0x2699ec(0x19c))/0x9;if(_0x234439===_0x1b4ecd)break;else _0x4acff0['push'](_0x4acff0['shift']());}catch(_0x190fde){_0x4acff0['push'](_0x4acff0['shift']());}}}(a55_0x2f69,0xb6aff));import*as a55_0x55260d from'../ui/output.js';function a55_0x2aec(_0x1a5af8,_0x215104){_0x1a5af8=_0x1a5af8-0x17c;const _0x2f694a=a55_0x2f69();let _0x2aec36=_0x2f694a[_0x1a5af8];return _0x2aec36;}const UPDATE_URL='https://cli.woozlit.com';export async function checkForUpdates(_0x1f98f6){const _0x43eaaa=a55_0x2aec;try{const _0x1ad2c1=await fetch(UPDATE_URL+_0x43eaaa(0x18a),{'signal':AbortSignal[_0x43eaaa(0x190)](0x1388)});if(!_0x1ad2c1['ok'])return;const _0x5a1670=await _0x1ad2c1[_0x43eaaa(0x186)]();_0x5a1670['version']!==_0x1f98f6&&isNewer(_0x5a1670[_0x43eaaa(0x194)],_0x1f98f6)&&(a55_0x55260d['warn'](_0x43eaaa(0x191)+_0x1f98f6+'\x20->\x20v'+_0x5a1670['version']),a55_0x55260d[_0x43eaaa(0x19a)](_0x43eaaa(0x17d)));}catch{}}export async function performUpdate(){const _0x1210c0=a55_0x2aec;try{a55_0x55260d[_0x1210c0(0x197)](_0x1210c0(0x180));const _0x5a6b2c=await fetch(UPDATE_URL+_0x1210c0(0x18a),{'signal':AbortSignal[_0x1210c0(0x190)](0x2710)});if(!_0x5a6b2c['ok'])return a55_0x55260d['error']('Failed\x20to\x20check\x20for\x20updates'),![];const _0x3cad8f=await _0x5a6b2c['json'](),_0x1994d4=process[_0x1210c0(0x187)];let _0x329c8a='';if(_0x1994d4===_0x1210c0(0x196))_0x329c8a=_0x3cad8f[_0x1210c0(0x199)]['win'];else{if(_0x1994d4==='darwin')_0x329c8a=_0x3cad8f['downloads'][_0x1210c0(0x189)];else _0x329c8a=_0x3cad8f[_0x1210c0(0x199)][_0x1210c0(0x19d)];}if(!_0x329c8a)return a55_0x55260d[_0x1210c0(0x185)]('No\x20download\x20available\x20for\x20your\x20platform'),![];a55_0x55260d['info']('Downloading\x20v'+_0x3cad8f[_0x1210c0(0x194)]+'...');const _0x559c5b=_0x1994d4===_0x1210c0(0x196),_0x5d618a=_0x559c5b?'.exe':'',_0x4cf7cd=_0x1210c0(0x18c)+_0x5d618a,_0x3f7c59=_0x1210c0(0x192)+_0x5d618a,_0x10ad16=await fetch(_0x329c8a,{'signal':AbortSignal['timeout'](0xea60)});if(!_0x10ad16['ok'])return a55_0x55260d[_0x1210c0(0x185)](_0x1210c0(0x17e)),![];const {writeFileSync:_0x45bf36,renameSync:_0x347d23,chmodSync:_0x46d1eb}=await import('fs'),_0x67f946=Buffer['from'](await _0x10ad16[_0x1210c0(0x182)]()),_0x1e234b=process[_0x1210c0(0x184)][0x0],{dirname:_0x26bc3f,join:_0x4059b8}=await import(_0x1210c0(0x188)),_0x41b90d=_0x26bc3f(_0x1e234b),_0x3c180e=_0x4059b8(_0x41b90d,_0x3f7c59);_0x45bf36(_0x3c180e,_0x67f946);if(!_0x559c5b)_0x46d1eb(_0x3c180e,0x1ed);try{_0x347d23(_0x1e234b,_0x4059b8(_0x41b90d,'woozlit_old'+_0x5d618a)),_0x347d23(_0x3c180e,_0x4059b8(_0x41b90d,_0x4cf7cd));}catch{_0x347d23(_0x3c180e,_0x4059b8(_0x41b90d,_0x4cf7cd));}return a55_0x55260d['success']('Updated\x20to\x20v'+_0x3cad8f[_0x1210c0(0x194)]),!![];}catch(_0x12fec5){return a55_0x55260d[_0x1210c0(0x185)]('Update\x20failed:\x20'+_0x12fec5),![];}}function isNewer(_0x157b32,_0xe535e0){const _0x5de20b=a55_0x2aec,_0x257fe9=_0x157b32['split']('.')[_0x5de20b(0x17c)](Number),_0x31ce39=_0xe535e0[_0x5de20b(0x18d)]('.')['map'](Number);for(let _0x34e68e=0x0;_0x34e68e<Math[_0x5de20b(0x17f)](_0x257fe9[_0x5de20b(0x193)],_0x31ce39[_0x5de20b(0x193)]);_0x34e68e++){const _0x455654=_0x257fe9[_0x34e68e]||0x0,_0x448fd9=_0x31ce39[_0x34e68e]||0x0;if(_0x455654>_0x448fd9)return!![];if(_0x455654<_0x448fd9)return![];}return![];}function a55_0x2f69(){const _0x48ee40=['Checking\x20for\x20updates...','8113616OUaIml','arrayBuffer','4608768unRnwx','argv','error','json','platform','path','mac','/version.json','88134qbNfKS','woozlit','split','4025379EgIxun','24XdILIx','timeout','Update\x20available:\x20v','woozlit_new','length','version','187890qFgSSm','win32','info','4919565SRSnpd','downloads','dim','20pKmfxO','509229SridZn','linux','map','\x20\x20Run:\x20woozlit\x20update','Download\x20failed','max'];a55_0x2f69=function(){return _0x48ee40;};return a55_0x2f69();}
@@ -1,4 +0,0 @@
1
- declare const response = "<text>Hello world</text>";
2
- declare const cleanResponse: string;
3
- declare const responseWithReasoning = "<reasoning>Thinking...</reasoning><text>Target content</text>";
4
- declare const cleanResponse2: string;