@crewkit/cli 0.1.8 → 0.1.10

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 (50) hide show
  1. package/README.md +72 -50
  2. package/bin/crewkit +23 -0
  3. package/lib/getBinary.js +88 -0
  4. package/package.json +42 -86
  5. package/scripts/postinstall.js +38 -0
  6. package/bin/dev.cmd +0 -3
  7. package/bin/dev.js +0 -5
  8. package/bin/run.cmd +0 -3
  9. package/bin/run.js +0 -5
  10. package/dist/base-command.d.ts +0 -15
  11. package/dist/base-command.js +0 -1
  12. package/dist/commands/auth/dev-login.d.ts +0 -7
  13. package/dist/commands/auth/dev-login.js +0 -1
  14. package/dist/commands/auth/login.d.ts +0 -6
  15. package/dist/commands/auth/login.js +0 -1
  16. package/dist/commands/auth/logout.d.ts +0 -6
  17. package/dist/commands/auth/logout.js +0 -1
  18. package/dist/commands/auth/status.d.ts +0 -6
  19. package/dist/commands/auth/status.js +0 -1
  20. package/dist/commands/chat.d.ts +0 -19
  21. package/dist/commands/chat.js +0 -1
  22. package/dist/commands/code.d.ts +0 -11
  23. package/dist/commands/code.js +0 -1
  24. package/dist/commands/feedback.d.ts +0 -17
  25. package/dist/commands/feedback.js +0 -1
  26. package/dist/commands/init.d.ts +0 -13
  27. package/dist/commands/init.js +0 -1
  28. package/dist/config/api.d.ts +0 -18
  29. package/dist/config/api.js +0 -1
  30. package/dist/index.d.ts +0 -1
  31. package/dist/index.js +0 -1
  32. package/dist/lib/sentry.d.ts +0 -17
  33. package/dist/lib/sentry.js +0 -1
  34. package/dist/services/agent-sync.d.ts +0 -30
  35. package/dist/services/agent-sync.js +0 -1
  36. package/dist/services/api-client.d.ts +0 -44
  37. package/dist/services/api-client.js +0 -1
  38. package/dist/services/auth-manager.d.ts +0 -41
  39. package/dist/services/auth-manager.js +0 -1
  40. package/dist/services/backup.d.ts +0 -20
  41. package/dist/services/backup.js +0 -1
  42. package/dist/services/checksum.d.ts +0 -40
  43. package/dist/services/checksum.js +0 -1
  44. package/dist/services/git-remote-detector.d.ts +0 -40
  45. package/dist/services/git-remote-detector.js +0 -1
  46. package/dist/services/update-checker.d.ts +0 -38
  47. package/dist/services/update-checker.js +0 -1
  48. package/dist/types/api.d.ts +0 -74
  49. package/dist/types/api.js +0 -1
  50. package/oclif.manifest.json +0 -289
@@ -1,41 +0,0 @@
1
- import type { CrewkitApiClient } from './api-client.js';
2
- export interface AuthTokens {
3
- accessToken: string;
4
- refreshToken?: string;
5
- }
6
- export declare class AuthManager {
7
- private apiClient;
8
- constructor(apiClient: CrewkitApiClient);
9
- /**
10
- * Clear all stored tokens
11
- */
12
- clearTokens(): Promise<void>;
13
- /**
14
- * Get stored access token
15
- */
16
- getAccessToken(): Promise<null | string>;
17
- /**
18
- * Get stored refresh token
19
- */
20
- getRefreshToken(): Promise<null | string>;
21
- /**
22
- * Get stored tokens
23
- */
24
- getTokens(): Promise<AuthTokens | null>;
25
- /**
26
- * Check if user is authenticated
27
- */
28
- isAuthenticated(): Promise<boolean>;
29
- /**
30
- * Perform device flow authentication
31
- */
32
- loginWithDeviceFlow(onDeviceCode: (deviceCode: string, userCode: string, verificationUri: string) => void): Promise<AuthTokens>;
33
- /**
34
- * Restore authentication from stored tokens
35
- */
36
- restoreAuth(): Promise<boolean>;
37
- /**
38
- * Store tokens in keychain
39
- */
40
- storeTokens(tokens: AuthTokens): Promise<void>;
41
- }
@@ -1 +0,0 @@
1
- function _0x459d(_0x43f947,_0x491185){const _0x5db9ac=_0xc336();return _0x459d=function(_0x161b75,_0x28115f){_0x161b75=_0x161b75-(-0x21aa+-0x9*0x128+0x136*0x25);let _0xcbbaf9=_0x5db9ac[_0x161b75];if(_0x459d['TSvQje']===undefined){var _0x1cd8df=function(_0x5013fc){const _0x5348a6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3032dc='',_0x1d47c7='';for(let _0x3d9408=0x6bb+0x5*0x23b+0x8f1*-0x2,_0x451a69,_0x1dc56e,_0x51533b=0xa*-0x1e1+0x52*-0x1+0x4c7*0x4;_0x1dc56e=_0x5013fc['charAt'](_0x51533b++);~_0x1dc56e&&(_0x451a69=_0x3d9408%(-0x7*-0x37b+0x477*-0x4+0xb*-0x97)?_0x451a69*(-0x1*-0x2154+0x1d35+-0x3e49)+_0x1dc56e:_0x1dc56e,_0x3d9408++%(-0x116f+-0x35*0x86+0x2d31))?_0x3032dc+=String['fromCharCode'](-0x19aa+0x125f*-0x2+-0x3f67*-0x1&_0x451a69>>(-(0x19a9*-0x1+0x1c1*0xa+-0x821*-0x1)*_0x3d9408&0x1*0x346+-0x1a97+-0x1*-0x1757)):-0x25cc+0x162a+0xfa2){_0x1dc56e=_0x5348a6['indexOf'](_0x1dc56e);}for(let _0x5478fd=-0x1a7e+-0x68*-0x35+-0x5*-0xfe,_0xbb09a=_0x3032dc['length'];_0x5478fd<_0xbb09a;_0x5478fd++){_0x1d47c7+='%'+('00'+_0x3032dc['charCodeAt'](_0x5478fd)['toString'](-0x5f5+0x1cd+0x438))['slice'](-(-0xac2+0x1225+-0x761));}return decodeURIComponent(_0x1d47c7);};_0x459d['JpjyBv']=_0x1cd8df,_0x43f947=arguments,_0x459d['TSvQje']=!![];}const _0x3bc58e=_0x5db9ac[-0x13de+0x9*-0x39e+0x346c],_0x49de46=_0x161b75+_0x3bc58e,_0x3f8ad9=_0x43f947[_0x49de46];return!_0x3f8ad9?(_0xcbbaf9=_0x459d['JpjyBv'](_0xcbbaf9),_0x43f947[_0x49de46]=_0xcbbaf9):_0xcbbaf9=_0x3f8ad9,_0xcbbaf9;},_0x459d(_0x43f947,_0x491185);}(function(_0x4b35bf,_0xf70f16){const _0x4527eb={_0x5f268d:0xa5,_0x13dc3c:0x8e,_0x49a5df:0xac,_0x9ae633:0x37,_0x2a10ad:0x40,_0x258347:0xc0,_0x591fb8:0x96,_0x174993:0x99,_0x4c73df:0x96,_0x47db9f:0x84,_0x47bc89:0xa8,_0x33d2a6:0x53,_0x535422:0x3b,_0x2b4077:0x56,_0x492b9d:0x36,_0x3b0537:0x1d,_0x2eab90:0x1b,_0xb72aa2:0xe},_0x12eced={_0x340eb9:0xaa},_0x22f538={_0x2962b8:0x16d};function _0x210b8f(_0x523eff,_0x52f4ba,_0x251d45,_0xeae4f0){return _0x459d(_0x52f4ba- -_0x22f538._0x2962b8,_0xeae4f0);}const _0x410603=_0x4b35bf();function _0x33baf6(_0x2f0162,_0x2b388c,_0x508798,_0xd06a66){return _0x459d(_0x2b388c- -_0x12eced._0x340eb9,_0x508798);}while(!![]){try{const _0x284337=-parseInt(_0x210b8f(-0x97,-_0x4527eb._0x5f268d,-_0x4527eb._0x13dc3c,-_0x4527eb._0x49a5df))/(0x18d1*-0x1+0x60+0x1872)+-parseInt(_0x33baf6(0x40,0x33,0x23,0x4d))/(-0x1*-0x112a+-0x2*0x11f5+0x12c2)*(-parseInt(_0x33baf6(0x36,_0x4527eb._0x9ae633,0x1b,_0x4527eb._0x2a10ad))/(0x13d7+0xaf7+-0x1ecb))+parseInt(_0x210b8f(-_0x4527eb._0x258347,-0xae,-0xb7,-0xca))/(-0x19*0x14f+0x1*-0x1+0x105e*0x2)+parseInt(_0x210b8f(-_0x4527eb._0x591fb8,-_0x4527eb._0x174993,-0x9e,-_0x4527eb._0x4c73df))/(0x11a*0x5+-0x1*0x78b+0x20e)+-parseInt(_0x210b8f(-_0x4527eb._0x47db9f,-0x9a,-0xb4,-_0x4527eb._0x47bc89))/(-0x1477*0x1+0x616*-0x1+0x1a93)*(-parseInt(_0x33baf6(_0x4527eb._0x33d2a6,_0x4527eb._0x535422,_0x4527eb._0x2b4077,0x43))/(0x1237+-0x1d99*0x1+0x17*0x7f))+parseInt(_0x33baf6(_0x4527eb._0x492b9d,_0x4527eb._0x3b0537,0xd,0x29))/(0x458+-0x1c36+0x17e6)+-parseInt(_0x33baf6(0xc,_0x4527eb._0x2eab90,_0x4527eb._0x2eab90,_0x4527eb._0xb72aa2))/(0x6*0x477+0x2*-0x1078+0x62f*0x1);if(_0x284337===_0xf70f16)break;else _0x410603['push'](_0x410603['shift']());}catch(_0x48982e){_0x410603['push'](_0x410603['shift']());}}}(_0xc336,-0x9b7+0x17f1a*-0x5+-0x1*-0xcc5d1));import{Entry}from'@napi-rs/keyring';const SERVICE_NAME=_0x391bed(0x409,0x405,0x40c,0x3ff)+'i';function _0x391bed(_0x2515eb,_0x582dd9,_0x328f88,_0x1a1cb6){return _0x459d(_0x2515eb-0x32d,_0x582dd9);}function _0x1484e7(_0x5f1061,_0x899def,_0x2a8c61,_0x4b18ed){const _0x965a79={_0x2cff5f:0x81};return _0x459d(_0x2a8c61- -_0x965a79._0x2cff5f,_0x5f1061);}function _0xc336(){const _0x45becf=['Aw9Ux3bLBMrPBG','y0T6BNO','yxv0Ag9YAxPHDa','yxbPq2XPzw50','Aw50zxj2ywW','C012y28','B25FDxjP','rgv2AwnLignVza','CMvMCMvZAfrVAW','B2jQzwn0','C3rVCMvuB2TLBG','Cg9SBezVCLrVAW','zxHWAxjLzf90BW','mtGYnZiXnNLbEfvvsG','z2v0ugfZC3DVCG','v3jwzvO','zxHWAxjLC19PBG','CMvMCMvZAf90BW','BwvZC2fNzq','mtaXmJmZmdHuzffiuKS','CMvZDg9Yzuf1Da','nta3mdi3mLbireT0AW','otq2mZjfywLRs00','z2v0qwnJzxnZva','ywnJzxnZvg9Rzq','C2v0ugfZC3DVCG','DMLJzuf1DgG','z2v0vg9Rzw5Z','C1rVA2vU','AxnbDxrOzw50Aq','B2TLBG','vg9Rzw4','C2v0qwnJzxnZva','mtqYmJaWqK5QyMnc','ndy4otq1vKTiEgzQ','z2v0uMvMCMvZAa','A2vU','Dg1YAu8','ywnJzxnZlxrVAW','CMvMCMvZAc10BW','Aw5PDgLHDgvezq','y2f0zwq','y3jLD2TPDc1JBa','mK9YzxDxyq','D29Yza','Aw5JBhvKzxm','u2zsANe','mta2nJC0owH0zeXOrW','zgv2AwnLx2nVza','DMvYAwzPy2f0Aq','zgvSzxrLugfZCW','n2DzDvjOsq','ywnJzxnZx3rVAW','qujzrey','y2vPBa','CeDpsvi'];_0xc336=function(){return _0x45becf;};return _0xc336();}const ACCESS_TOKEN_KEY=_0x391bed(0x405,0x41f,0x404,0x3f7)+'en',REFRESH_TOKEN_KEY=_0x391bed(0x406,0x40b,0x401,0x41c)+_0x391bed(0x403,0x41c,0x409,0x41a),accessTokenEntry=new Entry(SERVICE_NAME,ACCESS_TOKEN_KEY),refreshTokenEntry=new Entry(SERVICE_NAME,REFRESH_TOKEN_KEY);export class AuthManager{[_0x1484e7(0x6c,0x5b,0x6c,0x5b)];constructor(_0x40ac23){const _0x4a9f54={_0x2c5ee3:0x3f8,_0x858fb1:0x3ea,_0x53797b:0x3fa},_0x5a8fd1={_0x674244:0x17,_0x1140ff:0x1b5,_0x5474e4:0x4d};function _0x28a9b9(_0x309e93,_0x1e6275,_0x5c9739,_0x2742cf){return _0x391bed(_0x309e93- -_0x5a8fd1._0x674244,_0x1e6275,_0x5c9739-_0x5a8fd1._0x1140ff,_0x2742cf-_0x5a8fd1._0x5474e4);}this[_0x28a9b9(0x403,_0x4a9f54._0x2c5ee3,_0x4a9f54._0x858fb1,_0x4a9f54._0x53797b)]=_0x40ac23;}async['clearToken'+'s'](){const _0x41c724={_0x5e73fd:0x139,_0x3c08fa:0x110,_0x2082c3:0x11a,_0x2fbb8a:0x127,_0x58b516:0x100,_0x46182f:0xe6,_0x1b0ab6:0x105,_0x292ec5:0x140,_0x47ec37:0x10c,_0x241790:0xfb},_0x5306f7={_0x5de085:0x12f},_0x367f70={_0x2fe700:0xbd};function _0x451578(_0x2f98f2,_0x2cbc35,_0x11d8be,_0x56b4de){return _0x1484e7(_0x56b4de,_0x2cbc35-0x55,_0x2cbc35-_0x367f70._0x2fe700,_0x56b4de-0xa8);}try{accessTokenEntry[_0x451578(_0x41c724._0x5e73fd,0x120,0x10b,_0x41c724._0x3c08fa)+_0x451578(0x111,_0x41c724._0x2082c3,0x122,_0x41c724._0x2fbb8a)]();}catch{}function _0x25fe2b(_0x5e47a5,_0x3c225c,_0x37b5e7,_0x197cf9){return _0x1484e7(_0x197cf9,_0x3c225c-0x125,_0x37b5e7- -0x163,_0x197cf9-_0x5306f7._0x5de085);}try{refreshTokenEntry[_0x25fe2b(-0xf7,-0xea,-_0x41c724._0x58b516,-_0x41c724._0x46182f)+_0x451578(0x100,0x11a,_0x41c724._0x1b0ab6,0x10b)]();}catch{}this[_0x451578(0x119,0x129,0x10f,_0x41c724._0x292ec5)]['clearAcces'+_0x25fe2b(-_0x41c724._0x47ec37,-0x124,-0x116,-_0x41c724._0x241790)]();}async['getAccessT'+_0x1484e7(0x56,0x43,0x4f,0x68)](){const _0x4a16f0={_0x4caca3:0x3c0,_0x18963b:0x3d4},_0x4d6145={_0xe63dbd:0x23};function _0x427b47(_0x297348,_0x1966b3,_0x5d61de,_0x161a42){return _0x391bed(_0x297348- -0x2d,_0x161a42,_0x5d61de-_0x4d6145._0xe63dbd,_0x161a42-0x1a4);}try{return accessTokenEntry[_0x427b47(_0x4a16f0._0x4caca3,0x3a5,0x3ca,_0x4a16f0._0x18963b)+'d']();}catch{return null;}}async[_0x1484e7(0x49,0x61,0x54,0x55)+_0x391bed(0x3fe,0x408,0x417,0x3e6)](){const _0x3b854a={_0x4060cb:0x398,_0xdcae4c:0x38a,_0x43b3d4:0x3a8},_0x397d0a={_0x12bb1:0x359};function _0x4f6d4b(_0x1aec62,_0x5b3bf1,_0x50876c,_0x1ab2a9){return _0x1484e7(_0x50876c,_0x5b3bf1-0x28,_0x5b3bf1-_0x397d0a._0x12bb1,_0x1ab2a9-0x1e0);}try{return refreshTokenEntry[_0x4f6d4b(0x38f,_0x3b854a._0x4060cb,_0x3b854a._0xdcae4c,_0x3b854a._0x43b3d4)+'d']();}catch{return null;}}async[_0x1484e7(0x4b,0x5d,0x4c,0x5d)](){const _0x162e5a={_0x22827e:0x1bf,_0x19c71c:0x1e7,_0x18115b:0x1c4,_0x3f6a29:0x1df,_0x19be8e:0x1be,_0x5d64a6:0x1c8},_0x51a04d={_0x5c0cc0:0xfb},_0x588c27={_0x4cef00:0x152};function _0xa3a4f3(_0xf196fa,_0x4abf60,_0x3afd06,_0x33cff9){return _0x391bed(_0x4abf60- -0x5c2,_0x3afd06,_0x3afd06-0x3e,_0x33cff9-_0x588c27._0x4cef00);}const _0x2b256d={'tmriO':function(_0x542058,_0x4ed8d4){return _0x542058||_0x4ed8d4;}},_0x5e2ee3=await this[_0xa3a4f3(-_0x162e5a._0x22827e,-0x1cc,-_0x162e5a._0x19c71c,-0x1b8)+'oken']();if(!_0x5e2ee3)return null;const _0x735be8=await this['getRefresh'+_0xa3a4f3(-0x1cf,-_0x162e5a._0x18115b,-0x1b2,-_0x162e5a._0x3f6a29)]();function _0x5ced07(_0x583afc,_0x24994d,_0xc42024,_0x1e4188){return _0x1484e7(_0x583afc,_0x24994d-0x1a1,_0x1e4188-0x337,_0x1e4188-_0x51a04d._0x5c0cc0);}return{'accessToken':_0x5e2ee3,'refreshToken':_0x2b256d[_0xa3a4f3(-0x1cb,-_0x162e5a._0x19be8e,-_0x162e5a._0x5d64a6,-0x1af)](_0x735be8,undefined)};}async[_0x391bed(0x3fc,0x3f6,0x410,0x40d)+_0x1484e7(0x65,0x76,0x5a,0x62)](){const _0x1fc26d={_0x2810f1:0x2aa,_0x586572:0x3c2,_0x1b5096:0x3a7,_0xf0485c:0x3b6,_0xd28b81:0x2c8,_0x42d925:0x2e3},_0x3fdb74={_0x4243c5:0x1b7},_0x4ce6ef={_0x320970:0x13b,_0x3a2a1a:0xb1},_0x5e395e={'sMvco':function(_0x37e8b6,_0xdad4b4){return _0x37e8b6!==_0xdad4b4;}},_0x1bc290=await this[_0x5d3877(0x2a1,0x2b6,_0x1fc26d._0x2810f1,0x2bb)+_0x533671(_0x1fc26d._0x586572,_0x1fc26d._0x1b5096,0x38f,_0x1fc26d._0xf0485c)]();function _0x5d3877(_0x5a621f,_0x2f7519,_0x323e11,_0x4c575e){return _0x391bed(_0x4c575e- -_0x4ce6ef._0x320970,_0x323e11,_0x323e11-_0x4ce6ef._0x3a2a1a,_0x4c575e-0x45);}function _0x533671(_0x331914,_0x133569,_0x5bfac0,_0x24db13){return _0x391bed(_0x133569- -0x56,_0x5bfac0,_0x5bfac0-0x12e,_0x24db13-_0x3fdb74._0x4243c5);}return _0x5e395e[_0x5d3877(0x2f2,_0x1fc26d._0xd28b81,_0x1fc26d._0x42d925,0x2e1)](_0x1bc290,null);}async['loginWithD'+'eviceFlow'](_0x2593d1){const _0x5c8fe2={_0x282063:0xa4,_0x32a751:0x26f,_0x162b86:0x27f,_0x109e71:0x86,_0x3eaac9:0x7e,_0x112ca4:0x7c,_0x15f2c2:0x8d,_0x3b770e:0xa7,_0x675e5e:0x280,_0x47cf11:0x265,_0x64eba4:0x257,_0x17eb5:0x285,_0x4cf8d:0x256,_0x582004:0x26d,_0x17642e:0x231,_0x2f019d:0x237,_0x46b1f2:0xba,_0x4ed71e:0xbf,_0x427cea:0xc8,_0x379cf8:0x22b,_0x25847f:0x230,_0x531791:0x96,_0x4c1b8d:0xa9,_0x15c0b2:0x250,_0x4421e5:0x24c,_0x21f448:0x262,_0xfbfef0:0x71,_0x4a9ab0:0x256,_0x389a06:0x8e,_0x186722:0xa8,_0x559f34:0x24f,_0x4902b9:0x24a,_0x1e4470:0x273,_0x16da37:0x269,_0x34481a:0x260,_0xa713e2:0x23f,_0x4fa366:0x243,_0x53fee5:0x227,_0x18aeaf:0x246,_0x279dcf:0x247,_0x1e8038:0xbb,_0x41c95d:0xad,_0x52468a:0xac,_0x4ea8b6:0xa1,_0xfb19a:0x269,_0xa0e721:0x26c,_0x32fcb8:0x263,_0x18f151:0x81,_0x13564b:0x25c,_0xc2dd68:0x240,_0x1795c0:0x26e,_0x3c04e6:0x27a,_0x594c7d:0x28b,_0x3104ad:0x27e,_0x139810:0x277},_0x20f6a3={_0x44f122:0x1ab,_0x4a2f3b:0x1a1},_0x25b5a2={_0x3f58e3:0x107},_0x292738={_0x537ca4:0x107},_0x3d2f82={_0x178bb8:0x1ab,_0x2e8b49:0x79},_0x34a354={'pGOIR':function(_0x4c4bd6,_0xab7a53,_0x2cf6ff){return _0x4c4bd6(_0xab7a53,_0x2cf6ff);},'cKznz':function(_0x4d276c,_0x7306b1){return _0x4d276c/_0x7306b1;},'mgpxk':function(_0x38f64a,_0x19fa49){return _0x38f64a<_0x19fa49;},'ABYDF':_0x2945db(0xa2,_0x5c8fe2._0x282063,0xbc,0xb5),'ESYHI':function(_0x16de39,_0x36100d){return _0x16de39 in _0x36100d;},'WrVeZ':'message','oxpvW':function(_0x161e12,_0x5e1114){return _0x161e12(_0x5e1114);},'SfRjq':'access_den'+'ied'},_0x386580=await this[_0x19f7e1(_0x5c8fe2._0x32a751,_0x5c8fe2._0x162b86,_0x5c8fe2._0x32a751,0x25e)][_0x2945db(0x92,0x95,0x96,0x9c)+_0x2945db(_0x5c8fe2._0x109e71,_0x5c8fe2._0x3eaac9,_0x5c8fe2._0x112ca4,0x8e)]();function _0x19f7e1(_0x5c9f91,_0x9c2661,_0x5cdac2,_0x4404cc){return _0x391bed(_0x5cdac2- -_0x3d2f82._0x178bb8,_0x4404cc,_0x5cdac2-_0x3d2f82._0x2e8b49,_0x4404cc-0xa8);}function _0x2945db(_0x1246fa,_0x41c0cc,_0x5c85d6,_0x33b6ff){return _0x1484e7(_0x5c85d6,_0x41c0cc-0x195,_0x33b6ff-0x43,_0x33b6ff-_0x292738._0x537ca4);}_0x2593d1(_0x386580[_0x2945db(_0x5c8fe2._0x15f2c2,0xa1,_0x5c8fe2._0x3b770e,0xa4)+'e'],_0x386580['user_code'],_0x386580[_0x19f7e1(_0x5c8fe2._0x675e5e,0x27e,_0x5c8fe2._0x47cf11,0x280)+_0x19f7e1(_0x5c8fe2._0x64eba4,_0x5c8fe2._0x17eb5,0x272,_0x5c8fe2._0x4cf8d)]);const _0x3016d2=Math[_0x19f7e1(0x24e,0x285,0x26a,0x27f)](_0x34a354[_0x19f7e1(0x27e,0x26e,_0x5c8fe2._0x582004,0x274)](_0x386580[_0x19f7e1(0x23e,_0x5c8fe2._0x17642e,0x244,_0x5c8fe2._0x2f019d)],_0x386580[_0x2945db(_0x5c8fe2._0x46b1f2,_0x5c8fe2._0x4ed71e,_0x5c8fe2._0x427cea,0xb0)]));let _0xf5f013=0x2e*0x65+-0xb2*0x30+0xf3a;while(_0x34a354['mgpxk'](_0xf5f013,_0x3016d2)){_0xf5f013++;try{const _0x35382d=await this['apiClient'][_0x19f7e1(_0x5c8fe2._0x379cf8,_0x5c8fe2._0x25847f,0x23f,0x245)+'en'](_0x386580[_0x2945db(_0x5c8fe2._0x46b1f2,_0x5c8fe2._0x531791,_0x5c8fe2._0x4c1b8d,_0x5c8fe2._0x282063)+'e']);return await this[_0x19f7e1(_0x5c8fe2._0x15c0b2,0x236,0x23e,_0x5c8fe2._0x4421e5)+'s']({'accessToken':_0x35382d[_0x19f7e1(0x25e,_0x5c8fe2._0x21f448,0x268,0x250)+'en'],'refreshToken':_0x35382d[_0x2945db(0x78,_0x5c8fe2._0xfbfef0,0xa0,0x85)+_0x19f7e1(_0x5c8fe2._0x4a9ab0,_0x5c8fe2._0x4a9ab0,0x258,0x25e)]}),{'accessToken':_0x35382d[_0x2945db(0x96,_0x5c8fe2._0x3b770e,_0x5c8fe2._0x389a06,_0x5c8fe2._0x186722)+'en'],'refreshToken':_0x35382d[_0x19f7e1(_0x5c8fe2._0x559f34,_0x5c8fe2._0x4902b9,0x245,0x244)+_0x19f7e1(0x244,0x267,0x258,0x26a)]};}catch(_0x2f48e7){if(_0x2f48e7&&typeof _0x2f48e7===_0x34a354[_0x19f7e1(0x269,_0x5c8fe2._0x1e4470,_0x5c8fe2._0x16da37,_0x5c8fe2._0x34481a)]&&_0x34a354['ESYHI'](_0x34a354[_0x19f7e1(_0x5c8fe2._0xa713e2,0x24c,_0x5c8fe2._0x4fa366,_0x5c8fe2._0x53fee5)],_0x2f48e7)){const _0x430322=_0x34a354['oxpvW'](String,_0x2f48e7[_0x19f7e1(0x254,0x24a,_0x5c8fe2._0x18aeaf,_0x5c8fe2._0x279dcf)]);if(_0x430322[_0x2945db(_0x5c8fe2._0x1e8038,_0x5c8fe2._0x41c95d,_0x5c8fe2._0x52468a,_0x5c8fe2._0x4ea8b6)](_0x19f7e1(0x257,0x278,0x26e,0x260)+_0x19f7e1(_0x5c8fe2._0xfb19a,0x25f,_0x5c8fe2._0xa0e721,0x266)+'g')){await new Promise(_0x909dde=>{function _0x516b4a(_0x454833,_0xc8d787,_0x4e7273,_0x1ffd27){return _0x2945db(_0x454833-0x4f,_0xc8d787-0x17b,_0x1ffd27,_0x4e7273-_0x25b5a2._0x3f58e3);}_0x34a354[_0x516b4a(0x1c6,_0x20f6a3._0x44f122,0x1b2,_0x20f6a3._0x4a2f3b)](setTimeout,_0x909dde,_0x386580['interval']*(-0xf*0x118+-0x1ee9+0x3339));});continue;}if(_0x430322[_0x19f7e1(_0x5c8fe2._0x32fcb8,0x25e,0x261,_0x5c8fe2._0x1e4470)](_0x2945db(_0x5c8fe2._0x18f151,0x68,0x6a,0x80)+_0x19f7e1(_0x5c8fe2._0x13564b,_0x5c8fe2._0xc2dd68,0x258,0x26b))||_0x430322['includes'](_0x34a354[_0x19f7e1(0x24b,_0x5c8fe2._0x1795c0,_0x5c8fe2._0x21f448,_0x5c8fe2._0x3c04e6)]))throw _0x2f48e7;}throw _0x2f48e7;}}throw new Error(_0x19f7e1(_0x5c8fe2._0x594c7d,_0x5c8fe2._0x3104ad,0x273,_0x5c8fe2._0x139810)+'e\x20expired');}async[_0x1484e7(0x58,0x3b,0x45,0x38)+'h'](){const _0x422ab7={_0x42ed99:0x304,_0x4b05f3:0x2ef,_0x3280a6:0x2ff,_0x4097fc:0x2fe,_0x2e5924:0x2f5,_0xb7072b:0x224,_0x40f425:0x207,_0x34c395:0x243,_0x5bb193:0x22b},_0x296885={_0x593399:0x6fe,_0x48175a:0x11b},_0x38fb42={_0x45b1ce:0x6b,_0x56813d:0x274,_0x247612:0x1d};function _0x2481ef(_0x47a047,_0x203948,_0x5d70ed,_0x4ed20){return _0x1484e7(_0x4ed20,_0x203948-_0x38fb42._0x45b1ce,_0x203948- -_0x38fb42._0x56813d,_0x4ed20-_0x38fb42._0x247612);}const _0x345251=await this[_0x14ef9c(-_0x422ab7._0x42ed99,-_0x422ab7._0x4b05f3,-_0x422ab7._0x3280a6,-0x2f5)]();function _0x14ef9c(_0x2ceb75,_0x2e5427,_0x377654,_0x3b2500){return _0x391bed(_0x2ceb75- -_0x296885._0x593399,_0x377654,_0x377654-0xe9,_0x3b2500-_0x296885._0x48175a);}if(!_0x345251)return![];return this[_0x14ef9c(-0x2e4,-_0x422ab7._0x4097fc,-_0x422ab7._0x2e5924,-0x2e5)][_0x2481ef(-_0x422ab7._0xb7072b,-0x223,-_0x422ab7._0x40f425,-0x23a)+'oken'](_0x345251[_0x2481ef(-_0x422ab7._0x34c395,-_0x422ab7._0x5bb193,-0x217,-0x247)+'n']),!![];}async[_0x391bed(0x3e9,0x3fe,0x3e9,0x3e9)+'s'](_0x213530){const _0x25d485={_0x46b32b:0x226,_0x5bb2db:0x229,_0x3f3ccf:0x1f9,_0x58ce9b:0x210,_0x91ce0c:0x220,_0x8268ed:0x214,_0x4a8f9d:0x383,_0x27bed2:0x377,_0x5178f4:0x38f,_0x3e06c6:0x3a8,_0x429e9c:0x1fb,_0x1ea92a:0x1f7,_0x363f29:0x1fc,_0xa244fa:0x356,_0xfe5200:0x37e,_0xc539ce:0x37f,_0x2d0ad8:0x367},_0x3013eb={_0x1a7f7f:0x31e},_0x43b780={_0x2f4888:0x66,_0x5dd2c2:0x26a,_0x2af4ba:0x13c};accessTokenEntry[_0x5713a3(-0x220,-_0x25d485._0x46b32b,-_0x25d485._0x5bb2db,-0x204)+'d'](_0x213530['accessToke'+'n']);function _0x5713a3(_0x22cb91,_0x5c7560,_0x132b26,_0xcfe938){return _0x1484e7(_0x132b26,_0x5c7560-_0x43b780._0x2f4888,_0x22cb91- -_0x43b780._0x5dd2c2,_0xcfe938-_0x43b780._0x2af4ba);}function _0x703d2b(_0x77fc14,_0x495748,_0x14c217,_0x5bffdd){return _0x1484e7(_0x495748,_0x495748-0x10b,_0x14c217-_0x3013eb._0x1a7f7f,_0x5bffdd-0x15d);}_0x213530[_0x5713a3(-_0x25d485._0x3f3ccf,-0x20b,-0x1f7,-_0x25d485._0x58ce9b)+'en']&&refreshTokenEntry[_0x5713a3(-_0x25d485._0x91ce0c,-0x23c,-_0x25d485._0x8268ed,-0x236)+'d'](_0x213530[_0x703d2b(_0x25d485._0x4a8f9d,_0x25d485._0x27bed2,_0x25d485._0x5178f4,_0x25d485._0x3e06c6)+'en']),this[_0x5713a3(-0x1fe,-_0x25d485._0x429e9c,-_0x25d485._0x1ea92a,-_0x25d485._0x363f29)][_0x703d2b(0x36a,0x35a,0x36f,_0x25d485._0xa244fa)+'oken'](_0x213530[_0x703d2b(_0x25d485._0xfe5200,_0x25d485._0xc539ce,_0x25d485._0x2d0ad8,0x363)+'n']);}}
@@ -1,20 +0,0 @@
1
- export declare class BackupService {
2
- private backupDir;
3
- constructor(backupDir?: string);
4
- /**
5
- * Backup a file with timestamp
6
- */
7
- backup(filePath: string, agentName: string): Promise<string>;
8
- /**
9
- * Get the most recent backup for an agent
10
- */
11
- getLatest(agentName: string): Promise<null | string>;
12
- /**
13
- * List all backups for an agent
14
- */
15
- listBackups(agentName: string): Promise<string[]>;
16
- /**
17
- * Restore from a specific backup
18
- */
19
- restore(agentName: string, backupFile: string): Promise<string>;
20
- }
@@ -1 +0,0 @@
1
- (function(_0x4240b1,_0x3e1278){const _0xb21890={_0x43f5ec:0x134,_0x139e6f:0x12f,_0x5c9ddb:0x138,_0x542d11:0x13e,_0x3a6b98:0x12a,_0x25d388:0x4a1,_0x2a1664:0x149,_0x58f158:0x13b,_0x45673d:0x11c,_0x872cac:0x126,_0x5a2f36:0x127,_0x21f6b9:0x121,_0x162d04:0x11d,_0x24b1aa:0x111,_0x8e763e:0x114,_0x177a2e:0x129},_0x233636={_0x4f1c60:0x350},_0x5463fe={_0x58cb95:0x289};function _0x4213f4(_0x53f1ff,_0x447e25,_0x58e72e,_0x401764){return _0x525f(_0x447e25- -_0x5463fe._0x58cb95,_0x58e72e);}const _0x6a8b1f=_0x4240b1();function _0x468aa3(_0x39992d,_0x5ec119,_0x4f3cad,_0x236f40){return _0x525f(_0x236f40-_0x233636._0x4f1c60,_0x39992d);}while(!![]){try{const _0x1d6b1b=-parseInt(_0x4213f4(-_0xb21890._0x43f5ec,-_0xb21890._0x139e6f,-_0xb21890._0x5c9ddb,-_0xb21890._0x542d11))/(0x438+-0x10*-0x137+-0x17a7)*(parseInt(_0x4213f4(-0x12f,-_0xb21890._0x3a6b98,-0x11b,-0x11b))/(-0x16*-0x17b+0x1ad1+-0x3b61))+parseInt(_0x468aa3(0x4b7,0x4ad,0x4a4,0x4a8))/(-0xa40+0x3*0xb10+-0x16ed)+-parseInt(_0x468aa3(_0xb21890._0x25d388,0x4a9,0x496,0x49f))/(-0x9c6+-0x207b*-0x1+-0x16b1)*(parseInt(_0x4213f4(-_0xb21890._0x2a1664,-_0xb21890._0x58f158,-_0xb21890._0x2a1664,-0x132))/(-0x1*0x2525+0x17d*0x19+-0xb))+parseInt(_0x468aa3(0x49e,0x4a5,0x4ab,0x4ac))/(0x183+-0x10b1+0xe*0x116)+-parseInt(_0x4213f4(-_0xb21890._0x45673d,-0x11c,-0x11f,-0x10d))/(0x2388+-0x57c+-0x1e05)*(parseInt(_0x4213f4(-_0xb21890._0x872cac,-_0xb21890._0x5a2f36,-_0xb21890._0x21f6b9,-_0xb21890._0x162d04))/(-0x29*-0x40+0x102b+-0x3c5*0x7))+parseInt(_0x4213f4(-0x12a,-0x120,-_0xb21890._0x24b1aa,-_0xb21890._0x8e763e))/(-0x9ef+0x1b1a+-0x1122)+parseInt(_0x4213f4(-0x142,-0x135,-0x12f,-_0xb21890._0x177a2e))/(-0x3ec*0x8+-0x361+-0x1*-0x22cb);if(_0x1d6b1b===_0x3e1278)break;else _0x6a8b1f['push'](_0x6a8b1f['shift']());}catch(_0x197dfa){_0x6a8b1f['push'](_0x6a8b1f['shift']());}}}(_0x2ae1,-0x14c382+0x1bc30+0x2*0xfb8db));function _0x2ae1(){const _0x47cdf6=['yMfJA3vWrgLY','ode5ndqZmK9jB0HiyG','tKvItg4','CMvZDg9Yzq','BwTKAxi','BgLZDejHy2T1Ca','BgvUz3rO','z2v0tgf0zxn0','mtqWntK4owPYsw5LAW','zw5KC1DPDgG','ru5pru5u','CMvHzezPBgu','n2Heq2DvDW','lMnSyxvKzs8UyG','mteWvxjXCMjW','mtm0nZmYwLzqzxPz','lM1K','svrQD3e','AM9PBG','yMfJA3vW','mZq0ody2me1QzurVAW','DxrMoa','ywnRDxbZ','y29Kzq','mZK5mdi5mw1yCfjYzq','AK10Dvq','mJmWnMnlAKPmtW','CMvHzgrPCG','nJK5mtiWmezbCgX2ra','CMv2zxjZzq','D3jPDgvgAwXL','mZyYs1HgEK1t','C29YDa'];_0x2ae1=function(){return _0x47cdf6;};return _0x2ae1();}import{promises as _0x117624}from'node:fs';function _0x40a0b8(_0x1b438f,_0x3ce88b,_0xd382b5,_0x3ebe62){return _0x525f(_0x3ebe62-0x2a0,_0xd382b5);}import _0x437ff2 from'node:path';function _0x525f(_0x4c34a1,_0x4acd6e){const _0x347187=_0x2ae1();return _0x525f=function(_0x498884,_0x4acb78){_0x498884=_0x498884-(0x123c+0x2*-0x7a2+-0x1aa*0x1);let _0x50610d=_0x347187[_0x498884];if(_0x525f['TUfPub']===undefined){var _0x4709fc=function(_0x34a84c){const _0x22e0c3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x361cff='',_0x40c502='';for(let _0x4744de=0x97b*0x1+-0x1948+0xfcd,_0x3b6eda,_0x5f31ff,_0x20997b=0x37b+-0x1b5a+0x123*0x15;_0x5f31ff=_0x34a84c['charAt'](_0x20997b++);~_0x5f31ff&&(_0x3b6eda=_0x4744de%(0x1ae0*0x1+-0x3e0+-0xb7e*0x2)?_0x3b6eda*(-0x373*-0x1+0xca2+-0xfd5)+_0x5f31ff:_0x5f31ff,_0x4744de++%(0x539*-0x2+-0x42b+-0x217*-0x7))?_0x361cff+=String['fromCharCode'](0x26*0x5f+0x1f42+-0x29*0x115&_0x3b6eda>>(-(0x782+-0x1*-0xf43+-0x1*0x16c3)*_0x4744de&0x46*-0x7f+0x1cd+-0x7*-0x4b5)):0xa4d+-0xf06+0x4b9){_0x5f31ff=_0x22e0c3['indexOf'](_0x5f31ff);}for(let _0x10beed=-0x920+0x18d1+-0xfb1*0x1,_0x4ee119=_0x361cff['length'];_0x10beed<_0x4ee119;_0x10beed++){_0x40c502+='%'+('00'+_0x361cff['charCodeAt'](_0x10beed)['toString'](0x11*-0xac+0x1e28+-0xef*0x14))['slice'](-(-0x119e*-0x2+-0x3b*-0x5b+-0x3833));}return decodeURIComponent(_0x40c502);};_0x525f['SEuaQs']=_0x4709fc,_0x4c34a1=arguments,_0x525f['TUfPub']=!![];}const _0x41610a=_0x347187[-0x3*-0x935+-0x18a1+0x17f*-0x2],_0x173e5f=_0x498884+_0x41610a,_0x439d86=_0x4c34a1[_0x173e5f];return!_0x439d86?(_0x50610d=_0x525f['SEuaQs'](_0x50610d),_0x4c34a1[_0x173e5f]=_0x50610d):_0x50610d=_0x439d86,_0x50610d;},_0x525f(_0x4c34a1,_0x4acd6e);}function _0x458fc8(_0x32d992,_0x7c0728,_0x556b5a,_0x5d3d5d){const _0x199407={_0x2f0a74:0x165};return _0x525f(_0x5d3d5d- -_0x199407._0x2f0a74,_0x556b5a);}export class BackupService{[_0x458fc8(0xc,0xb,0x1,-0x4)];constructor(_0x4aebe5=_0x458fc8(0x14,0x17,0x11,0x9)+_0x458fc8(-0x11,-0x1b,-0x1b,-0xf)){const _0x4b1525={_0x55e2d1:0x277},_0x419900={_0x3a9c7b:0x1d4,_0x14ba80:0x271};function _0x449a12(_0x5708a7,_0x3201b6,_0x1d8d90,_0x4f1b67){return _0x458fc8(_0x5708a7-0xde,_0x3201b6-_0x419900._0x3a9c7b,_0x1d8d90,_0x4f1b67- -_0x419900._0x14ba80);}this[_0x449a12(-0x272,-_0x4b1525._0x55e2d1,-_0x4b1525._0x55e2d1,-0x275)]=_0x4aebe5;}async[_0x458fc8(-0xe,-0x1d,-0xd,-0x12)](_0x3e129a,_0x16fb2a){const _0x7f52f3={_0x43cbc4:0x202,_0xfc10f3:0x1fc,_0xf15f64:0x1f5,_0x4e94a2:0x1ee,_0x3b74a2:0x346,_0x245fd6:0x340,_0xa4673:0x33c,_0x22df57:0x341,_0x6a473e:0x213,_0xafabbc:0x21a,_0x2db79b:0x1fd,_0x2a0c48:0x1fc,_0x38baed:0x20b,_0x49630c:0x34a},_0x3bbc14={_0x107773:0x1e3,_0x342c1a:0x164,_0x49129b:0x1fc},_0x4adb8e={_0x566275:0xe5,_0x2bc0f3:0x354},_0x4e3661={'ITjwq':_0x3b2f9b(-0x20d,-_0x7f52f3._0x43cbc4,-0x20c,-0x212)},_0x3d9ad7=await _0x117624[_0x3b2f9b(-0x1ff,-_0x7f52f3._0xfc10f3,-_0x7f52f3._0xf15f64,-_0x7f52f3._0x4e94a2)](_0x3e129a,_0x4e3661[_0x3b88b8(0x342,_0x7f52f3._0x3b74a2,_0x7f52f3._0x245fd6,0x340)]);function _0x3b88b8(_0x54b2a8,_0x42f78b,_0x20dfd9,_0x4ed915){return _0x458fc8(_0x54b2a8-_0x4adb8e._0x566275,_0x42f78b-0x36,_0x42f78b,_0x20dfd9-_0x4adb8e._0x2bc0f3);}const _0x15ff2b=new Date()['toISOStrin'+'g']()['replaceAll'](':','-')['split']('.')[0xdff*0x1+0x1352+-0x2151],_0x2fea5f=_0x437ff2[_0x3b88b8(_0x7f52f3._0x245fd6,_0x7f52f3._0xa4673,_0x7f52f3._0x22df57,0x34c)](this['backupDir'],_0x16fb2a,_0x15ff2b+_0x3b2f9b(-0x20c,-_0x7f52f3._0x6a473e,-0x211,-_0x7f52f3._0xafabbc));await _0x117624[_0x3b2f9b(-_0x7f52f3._0x2db79b,-0x1f7,-_0x7f52f3._0x2a0c48,-_0x7f52f3._0x38baed)](_0x437ff2['dirname'](_0x2fea5f),{'recursive':!![]}),await _0x117624[_0x3b88b8(_0x7f52f3._0x49630c,0x34a,0x34d,0x359)](_0x2fea5f,_0x3d9ad7,'utf8');function _0x3b2f9b(_0x2c6817,_0x1bca1f,_0x3f73ad,_0x1b1a68){return _0x458fc8(_0x2c6817-_0x3bbc14._0x107773,_0x1bca1f-_0x3bbc14._0x342c1a,_0x1b1a68,_0x3f73ad- -_0x3bbc14._0x49129b);}return _0x2fea5f;}async[_0x458fc8(0x4,0x11,0xf,0x3)](_0x3db83a){const _0x56bf2d={_0x2ecb0a:0x483,_0x3d93ae:0x480,_0x2ee26a:0x522,_0x58c074:0x530,_0x18ef05:0x512,_0x3ed457:0x50f,_0x17942a:0x518},_0x13b71f={_0x1ceced:0x16c,_0x11416c:0x520},_0xa4671c={_0x3fb15b:0x15b};function _0x41615b(_0x393f1c,_0x472e74,_0x108978,_0x509793){return _0x458fc8(_0x393f1c-_0xa4671c._0x3fb15b,_0x472e74-0x11e,_0x108978,_0x472e74-0x486);}const _0x48f29a=await this[_0x41615b(_0x56bf2d._0x2ecb0a,0x487,0x480,_0x56bf2d._0x3d93ae)+'s'](_0x3db83a);function _0x465fb5(_0x5111ea,_0x8efbfa,_0x1ced48,_0x5457c9){return _0x458fc8(_0x5111ea-0xcb,_0x8efbfa-_0x13b71f._0x1ceced,_0x1ced48,_0x8efbfa-_0x13b71f._0x11416c);}if(_0x48f29a[_0x465fb5(0x528,_0x56bf2d._0x2ee26a,_0x56bf2d._0x58c074,_0x56bf2d._0x18ef05)]===0x198e+-0x18e4+-0xaa)return null;return this[_0x465fb5(_0x56bf2d._0x3ed457,0x51f,0x525,_0x56bf2d._0x17942a)](_0x3db83a,_0x48f29a[-0x1258+0x1e6e+-0xdd*0xe]);}async[_0x40a0b8(0x40e,0x416,0x3fe,0x406)+'s'](_0x39d92b){const _0x5136c7={_0x4340f0:0xaf,_0x1c275d:0x97,_0x2ad637:0xa4,_0x53e611:0xb2,_0x31f066:0x29,_0x2a967a:0x35,_0x7a5f70:0x32,_0x44a16b:0x2d,_0x11b7c8:0x91,_0x35d236:0x99,_0xdffb6:0x3c,_0x4fd4ee:0x26,_0x1d9f50:0x90,_0x17f5dd:0x9d,_0x1b00b1:0x9a,_0x256d79:0x9c,_0x3b9da1:0x9f,_0x4f5e05:0x38,_0x2524d9:0x33,_0x5acc93:0x30},_0x52799a={_0x495dbc:0x110},_0x54fb79={_0x48545d:0x6b,_0x8f6fa3:0xa5,_0x1d4ab9:0x496};function _0x33ae3b(_0x40bd71,_0x15e42b,_0x410c3a,_0x2c1bbe){return _0x40a0b8(_0x40bd71-_0x54fb79._0x48545d,_0x15e42b-_0x54fb79._0x8f6fa3,_0x2c1bbe,_0x410c3a- -_0x54fb79._0x1d4ab9);}function _0x567e8e(_0xac294a,_0x53c90d,_0x34a8d9,_0x25d4e0){return _0x458fc8(_0xac294a-_0x52799a._0x495dbc,_0x53c90d-0xbf,_0xac294a,_0x25d4e0- -0x2a);}const _0x1e339d={'NEbLn':function(_0x208940,_0x84dae8){return _0x208940===_0x84dae8;},'jMtuT':'object'},_0xd62970=_0x437ff2[_0x33ae3b(-_0x5136c7._0x4340f0,-_0x5136c7._0x1c275d,-_0x5136c7._0x2ad637,-_0x5136c7._0x53e611)](this[_0x567e8e(-0x3a,-_0x5136c7._0x31f066,-_0x5136c7._0x2a967a,-0x2e)],_0x39d92b);try{const _0x412198=await _0x117624[_0x567e8e(-0x40,-0x28,-_0x5136c7._0x7a5f70,-0x34)](_0xd62970);return _0x412198['filter'](_0x3cd64a=>_0x3cd64a[_0x567e8e(-0x15,-0x18,-0x28,-0x25)](_0x567e8e(-0x4d,-0x34,-0x38,-0x3f)))[_0x567e8e(-_0x5136c7._0x31f066,-0x1e,-_0x5136c7._0x44a16b,-0x2f)]()[_0x33ae3b(-0x9a,-_0x5136c7._0x11b7c8,-_0x5136c7._0x35d236,-0xaa)]();}catch(_0x1ce309){if(_0x1ce309&&_0x1e339d[_0x567e8e(-0x37,-_0x5136c7._0xdffb6,-_0x5136c7._0x4fd4ee,-0x2c)](typeof _0x1ce309,_0x1e339d[_0x33ae3b(-0x8d,-_0x5136c7._0x1d9f50,-_0x5136c7._0x17f5dd,-0x99)])&&_0x33ae3b(-_0x5136c7._0x1b00b1,-_0x5136c7._0x256d79,-_0x5136c7._0x3b9da1,-0xa8)in _0x1ce309&&_0x1ce309[_0x567e8e(-0x31,-0x38,-0x31,-_0x5136c7._0x4f5e05)]===_0x567e8e(-_0x5136c7._0x2524d9,-0x2d,-_0x5136c7._0x5acc93,-0x24))return[];throw _0x1ce309;}}async[_0x40a0b8(0x404,0x3f4,0x3fc,0x404)](_0x2bb2c7,_0x5ce865){const _0x2a7aa9={_0x2b0a1c:0x17c,_0x24accb:0x17c,_0xb8468a:0x181,_0x3fb32b:0x185},_0x454f4d={_0x2fd84f:0x73},_0x47cf86={_0x288a1e:0x66},_0x127068=_0x437ff2['join'](this[_0x50e355(_0x2a7aa9._0x2b0a1c,_0x2a7aa9._0x24accb,_0x2a7aa9._0xb8468a,_0x2a7aa9._0x3fb32b)],_0x2bb2c7,_0x5ce865);function _0x34545a(_0x5a650d,_0x44596c,_0x193455,_0x3cdd00){return _0x40a0b8(_0x5a650d-_0x47cf86._0x288a1e,_0x44596c-0x8b,_0x3cdd00,_0x193455- -0x1df);}function _0x50e355(_0x5e3dd6,_0x4a0684,_0x4f6375,_0x5a2fb9){return _0x40a0b8(_0x5e3dd6-_0x454f4d._0x2fd84f,_0x4a0684-0x197,_0x5a2fb9,_0x5e3dd6- -0x285);}return _0x117624[_0x50e355(0x187,0x193,0x185,0x17b)](_0x127068,'utf8');}}
@@ -1,40 +0,0 @@
1
- export declare class ChecksumService {
2
- private hashFilePath;
3
- constructor();
4
- /**
5
- * Clear all stored hashes (useful for testing or reset)
6
- */
7
- clearAll(): Promise<void>;
8
- /**
9
- * Delete hash for specific agent
10
- */
11
- deleteHash(agentName: string): Promise<void>;
12
- /**
13
- * Get stored hash for an agent
14
- */
15
- getStoredHash(agentName: string): Promise<null | string>;
16
- /**
17
- * Check if file has been modified since last sync
18
- */
19
- hasChanged(agentName: string, filePath: string): Promise<boolean>;
20
- /**
21
- * Calculate SHA-256 hash of content string
22
- */
23
- hashContent(content: string): string;
24
- /**
25
- * Calculate SHA-256 hash of a file
26
- */
27
- hashFile(filePath: string): Promise<string>;
28
- /**
29
- * Store hash for an agent
30
- */
31
- storeHash(agentName: string, hash: string): Promise<void>;
32
- /**
33
- * Load hash storage from disk
34
- */
35
- private loadHashStorage;
36
- /**
37
- * Save hash storage to disk
38
- */
39
- private saveHashStorage;
40
- }
@@ -1 +0,0 @@
1
- (function(_0x22d3e4,_0x2f9035){const _0x3ec425={_0x2c4328:0x6d,_0x3cf63c:0x5a,_0x437ac2:0x67,_0x4eface:0x132,_0x46965e:0x142,_0x404f00:0x13a,_0x4219fd:0x6b,_0x53a506:0x59,_0x151adf:0x12c,_0x1128c0:0x12d,_0x2a7888:0x43,_0x375c62:0x128,_0x3dee3b:0x13c,_0x25265c:0x12a,_0x3fdfd9:0x135,_0x315399:0x49,_0x4c57cd:0x56,_0x2df0e0:0x39,_0x511266:0x45,_0x377652:0x48,_0x4ec42b:0x130,_0x35ef44:0x4c,_0x946ebc:0x4c,_0x783a7d:0x60},_0xe10c9f={_0x144f61:0xc9},_0x5d2cad={_0x5cbcdb:0x1b2},_0x4fbf3b=_0x22d3e4();function _0x1ac1d5(_0x2ff6b0,_0xf7db9a,_0x20ccc8,_0x4b60ad){return _0x56e6(_0x20ccc8- -_0x5d2cad._0x5cbcdb,_0x4b60ad);}function _0xff2a26(_0x25853b,_0x18a29d,_0xc43797,_0x590668){return _0x56e6(_0x590668- -_0xe10c9f._0x144f61,_0xc43797);}while(!![]){try{const _0x1e285b=-parseInt(_0x1ac1d5(_0x3ec425._0x2c4328,0x55,_0x3ec425._0x3cf63c,_0x3ec425._0x437ac2))/(0xd58+-0xb2a+-0x22d)*(-parseInt(_0xff2a26(0x12d,0x147,0x134,_0x3ec425._0x4eface))/(-0xc7*0x17+0x1051+0x192))+parseInt(_0xff2a26(0x124,_0x3ec425._0x46965e,_0x3ec425._0x404f00,0x136))/(0x1473+0x553*0x1+-0x19c3)*(parseInt(_0x1ac1d5(0x59,_0x3ec425._0x4219fd,_0x3ec425._0x53a506,0x54))/(0x3*0x5ff+-0x1aa5+0x6*0x172))+-parseInt(_0xff2a26(_0x3ec425._0x151adf,_0x3ec425._0x1128c0,0x12a,0x125))/(0x2ac+0x13db+-0x1682)*(-parseInt(_0x1ac1d5(0x34,0x31,_0x3ec425._0x2a7888,0x56))/(0x1f7a+0x386+0x197*-0x16))+-parseInt(_0xff2a26(0x126,_0x3ec425._0x375c62,_0x3ec425._0x3dee3b,_0x3ec425._0x25265c))/(0x1990+0x25e*0xa+-0x3135)*(parseInt(_0xff2a26(0x148,_0x3ec425._0x3fdfd9,0x126,0x13c))/(-0xa2e*0x1+-0x120b*-0x1+-0x7d5))+parseInt(_0x1ac1d5(_0x3ec425._0x315399,0x4c,_0x3ec425._0x4c57cd,0x58))/(-0x12c8+0x44*-0x67+0x2e2d*0x1)*(parseInt(_0x1ac1d5(0x4c,0x53,0x4a,0x50))/(0x2356+0xff9+-0x3345))+parseInt(_0x1ac1d5(_0x3ec425._0x2df0e0,_0x3ec425._0x511266,_0x3ec425._0x377652,_0x3ec425._0x315399))/(0x2bb+0x1517+-0x17c7)*(parseInt(_0xff2a26(_0x3ec425._0x46965e,_0x3ec425._0x4ec42b,0x147,0x146))/(-0x81f+0x18dd+0x2*-0x859))+-parseInt(_0x1ac1d5(_0x3ec425._0x35ef44,0x3c,_0x3ec425._0x946ebc,_0x3ec425._0x783a7d))/(-0x8*-0x46f+0x175f+-0xbc2*0x5);if(_0x1e285b===_0x2f9035)break;else _0x4fbf3b['push'](_0x4fbf3b['shift']());}catch(_0x55b215){_0x4fbf3b['push'](_0x4fbf3b['shift']());}}}(_0x16ae,-0x65d5*0x17+0xc8ed*0xb+-0x1*-0x55805));import{createHash}from'node:crypto';import{promises as _0x261b56}from'node:fs';import _0x34488c from'node:os';function _0xf35b04(_0x2e3041,_0x2f7b94,_0x312a89,_0x4da9db){return _0x56e6(_0x2e3041- -0x10e,_0x4da9db);}import _0x2188a6 from'node:path';function _0x1026cd(_0x1bc881,_0x405fc4,_0x395c9a,_0x19339c){const _0x714af4={_0x568e88:0x252};return _0x56e6(_0x395c9a-_0x714af4._0x568e88,_0x405fc4);}function _0x56e6(_0x404ef8,_0x213dfa){const _0x36ba86=_0x16ae();return _0x56e6=function(_0x4821e6,_0x20a6d5){_0x4821e6=_0x4821e6-(-0x1190+0x9*-0x10c+0x1ce4);let _0x15007c=_0x36ba86[_0x4821e6];if(_0x56e6['ltUzXv']===undefined){var _0x1063b2=function(_0x4e048c){const _0x574825='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54ae59='',_0x3bcfe2='';for(let _0x2bf874=-0x1*0xaac+0x228a+0x5*-0x4c6,_0x524e23,_0x111a80,_0x211a45=0x1f1*0x9+0x211a+-0xb*0x499;_0x111a80=_0x4e048c['charAt'](_0x211a45++);~_0x111a80&&(_0x524e23=_0x2bf874%(-0x1ef7*-0x1+0x427*-0x4+-0xe57)?_0x524e23*(-0x18af+-0x3*0x3eb+-0x496*-0x8)+_0x111a80:_0x111a80,_0x2bf874++%(0x1178+-0x254e+0x13da))?_0x54ae59+=String['fromCharCode'](-0x2*0xb99+0x1bac+-0x37b&_0x524e23>>(-(0x1e8d+-0x2503+0x678)*_0x2bf874&0x19bd*-0x1+0xd44+-0xc7f*-0x1)):-0x6b+0x1066*-0x1+0x10d1){_0x111a80=_0x574825['indexOf'](_0x111a80);}for(let _0x49449f=-0x1*-0x1c2e+-0x267c+0xa4e,_0x1232ad=_0x54ae59['length'];_0x49449f<_0x1232ad;_0x49449f++){_0x3bcfe2+='%'+('00'+_0x54ae59['charCodeAt'](_0x49449f)['toString'](-0xee0*-0x1+0x1fd6+0x6aa*-0x7))['slice'](-(0x1*-0xdc1+0xe8b+-0xc8));}return decodeURIComponent(_0x3bcfe2);};_0x56e6['ZoSAmR']=_0x1063b2,_0x404ef8=arguments,_0x56e6['ltUzXv']=!![];}const _0x3c849b=_0x36ba86[0xb*-0x109+0x1680+0xb1d*-0x1],_0x3090da=_0x4821e6+_0x3c849b,_0x116709=_0x404ef8[_0x3090da];return!_0x116709?(_0x15007c=_0x56e6['ZoSAmR'](_0x15007c),_0x404ef8[_0x3090da]=_0x15007c):_0x15007c=_0x116709,_0x15007c;},_0x56e6(_0x404ef8,_0x213dfa);}function _0x16ae(){const _0x242b57=['mujdt25VBG','Bg9HzeHHC2HtDa','AM9PBG','ndHpCMXsqui','B2jQzwn0','B05HvLa','DxbKyxrL','AgfZAenVBNrLBG','DxrMoa','Agv4','CMvHzezPBgu','B3jHz2u','z2v0u3rVCMvKsa','mtGYmZq4nwzAy1jrBW','BwTKAxi','AgfZq2HHBMDLza','CuLRCMC','y29Kzq','mtrpwxHrs2O','D3jPDgvgAwXL','nLn3s3LVBa','y3jLD2TPDa','yxnO','CgfYC2u','ru5pru5u','ndqWmdK5BfD1rg1w','mta4nJyYmLjmvwn4wq','mtb6uhnizK4','AgfZAgvZlMPZBW','mtu5mduYmJDVq2fctuG','mti2sNvwz2vX','zgvSzxrLsgfZAa','zgLNzxn0','C2f2zuHHC2HtDa','Ag9TzwrPCG','lMnHy2HL','mtmWndq4oeDXtgPoBa','y2XLyxjbBgW','C3zlDfy','mZu5mJa0ngXRsKL5tG','AgfZAezPBgvqyq','DNvOv04','mZC5odHeCxDZtxm'];_0x16ae=function(){return _0x242b57;};return _0x16ae();}export class ChecksumService{[_0x1026cd(0x45c,0x447,0x45b,0x469)+'th'];constructor(){const _0x195aeb={_0x1f27ec:0x127,_0x53cdeb:0x123,_0x222c80:0x126,_0xb8c47f:0x10e,_0x589512:0x109,_0x35237e:0x11d,_0x3cceae:0x50c,_0x238512:0x51a,_0x3e2c3a:0x512,_0x326fb0:0x119,_0xb41a2e:0x12a,_0x58f945:0x119,_0x41f166:0x113,_0x3e8a4c:0x113,_0x43affd:0x4f7},_0x7e12dd={_0x4c4c48:0x4},_0x5e4222={_0x22d44b:0xfc};function _0x325742(_0x5cc3d6,_0x17fe8f,_0x388322,_0x4ea5b3){return _0x1026cd(_0x5cc3d6-0x166,_0x5cc3d6,_0x4ea5b3-0xbd,_0x4ea5b3-_0x5e4222._0x22d44b);}const _0x9e3afd={'oNaVP':_0x16f34f(-0x118,-_0x195aeb._0x1f27ec,-_0x195aeb._0x53cdeb,-0x113),'svKtV':_0x16f34f(-_0x195aeb._0x222c80,-0x125,-0x139,-0x11c)},_0x56292e=_0x2188a6[_0x16f34f(-_0x195aeb._0xb8c47f,-_0x195aeb._0x589512,-0x118,-_0x195aeb._0x35237e)](_0x34488c[_0x325742(0x521,_0x195aeb._0x3cceae,_0x195aeb._0x238512,_0x195aeb._0x3e2c3a)](),_0x9e3afd[_0x16f34f(-0x10b,-_0x195aeb._0x326fb0,-0x104,-0x10b)],_0x9e3afd[_0x16f34f(-0x115,-_0x195aeb._0xb41a2e,-0x119,-_0x195aeb._0x58f945)]);function _0x16f34f(_0x25ed69,_0x130ab3,_0x44cde5,_0x1f9ae9){return _0x1026cd(_0x25ed69-_0x7e12dd._0x4c4c48,_0x130ab3,_0x25ed69- -0x56e,_0x1f9ae9-0x27);}this[_0x16f34f(-_0x195aeb._0x41f166,-0x10f,-_0x195aeb._0x3e8a4c,-0x10e)+'th']=_0x2188a6['join'](_0x56292e,_0x325742(_0x195aeb._0x43affd,0x4f6,0x50d,_0x195aeb._0x3cceae)+'n');}async[_0x1026cd(0x448,0x450,0x458,0x44e)](){const _0xc4b54c={_0x58c325:0x2a1,_0x31f8bc:0x293},_0x434849={_0x2b17e9:0x1a5,_0x125e0b:0x1cd},_0x13a953={_0x4564f7:0x190};function _0x2b9604(_0x408c1a,_0x20809f,_0x309ec9,_0x46186c){return _0x1026cd(_0x408c1a-0x2d,_0x408c1a,_0x309ec9- -0x465,_0x46186c-_0x13a953._0x4564f7);}function _0x5c7c0f(_0x590711,_0x434dca,_0x5d9c6b,_0x4cd201){return _0x1026cd(_0x590711-0x5f,_0x590711,_0x434dca- -_0x434849._0x2b17e9,_0x4cd201-_0x434849._0x125e0b);}await this[_0x5c7c0f(0x29a,0x2af,0x2c5,0x2a1)+_0x5c7c0f(_0xc4b54c._0x58c325,0x299,_0xc4b54c._0x31f8bc,0x2a9)]({});}async[_0xf35b04(0xf2,0xe9,0xfd,0xf1)](_0x3ec050){const _0x4eba9e={_0x447f94:0x448,_0x263ec8:0x447,_0x1d348b:0x434,_0x359ef0:0x441},_0x218521={_0x2a2e1f:0x180},_0x28cfe9={_0x166eb3:0x9},_0x1a136f=await this['loadHashSt'+_0x5797fa(0x451,_0x4eba9e._0x447f94,_0x4eba9e._0x263ec8,_0x4eba9e._0x1d348b)]();function _0x5797fa(_0x177990,_0x425d5a,_0x21a59a,_0x2f8523){return _0x1026cd(_0x177990-0xbc,_0x425d5a,_0x21a59a-_0x28cfe9._0x166eb3,_0x2f8523-0x12c);}function _0x1c8e7b(_0x3c264b,_0x2e6408,_0x30f951,_0x20a314){return _0x1026cd(_0x3c264b-0x3a,_0x30f951,_0x3c264b-0x5f,_0x20a314-_0x218521._0x2a2e1f);}delete _0x1a136f[_0x3ec050],await this['saveHashSt'+_0x5797fa(0x441,_0x4eba9e._0x359ef0,_0x4eba9e._0x263ec8,0x454)](_0x1a136f);}async[_0x1026cd(0x434,0x448,0x43f,0x451)+_0x1026cd(0x45f,0x44f,0x449,0x44c)](_0x5e04d6){const _0x37a3f6={_0x48c7da:0x20,_0x4098fc:0xe,_0x846a12:0x31},_0x120b27={_0x5db56d:0x453,_0x140480:0x70,_0x212255:0x71},_0x558e62={_0x6fb4ac:0x9};function _0x121298(_0x40dea8,_0x3b57d2,_0x237a08,_0x4d8d48){return _0xf35b04(_0x3b57d2- -0x10d,_0x3b57d2-0xaf,_0x237a08-_0x558e62._0x6fb4ac,_0x40dea8);}function _0x1a53e6(_0x5a0c84,_0x5a2912,_0x47604b,_0x3fb56d){return _0xf35b04(_0x5a2912-_0x120b27._0x5db56d,_0x5a2912-_0x120b27._0x140480,_0x47604b-_0x120b27._0x212255,_0x5a0c84);}try{const _0x44fe86=await this[_0x121298(-_0x37a3f6._0x48c7da,-_0x37a3f6._0x4098fc,-0xb,0x1)+_0x121298(-0x1e,-0x2f,-_0x37a3f6._0x846a12,-0x2d)]();return _0x44fe86[_0x5e04d6]||null;}catch{return null;}}async[_0xf35b04(0xe2,0xeb,0xe4,0xdd)](_0x2e93f0,_0x1a3c79){const _0x14d927={_0x4f4d1a:0x594,_0x1210cc:0x593,_0x34bf0d:0x599,_0x23c790:0x5b0,_0x517894:0x59e},_0x3f16c5={_0xb6b54d:0x187},_0x350f77={_0x339c43:0x4b5,_0x377e9d:0x1af},_0x59dc14={'UAtds':function(_0x1a2644,_0x27143e){return _0x1a2644!==_0x27143e;}},_0x28f6a5=await this['hashFile'](_0x1a3c79),_0x169cc2=await this[_0x325256(_0x14d927._0x4f4d1a,0x58a,_0x14d927._0x1210cc,_0x14d927._0x34bf0d)+_0x325256(0x59e,_0x14d927._0x23c790,_0x14d927._0x517894,0x5ab)](_0x2e93f0);function _0x325256(_0x3cc8e8,_0x42dad2,_0x3f31ac,_0x208169){return _0xf35b04(_0x3cc8e8-_0x350f77._0x339c43,_0x42dad2-_0x350f77._0x377e9d,_0x3f31ac-0x58,_0x3f31ac);}if(!_0x169cc2)return![];function _0x5af4e1(_0x57bc80,_0x4991d9,_0x3093f4,_0x2b101a){return _0x1026cd(_0x57bc80-0x143,_0x57bc80,_0x2b101a- -0x50f,_0x2b101a-_0x3f16c5._0xb6b54d);}return _0x59dc14['UAtds'](_0x28f6a5,_0x169cc2);}[_0x1026cd(0x431,0x428,0x43a,0x44d)+'t'](_0x2056db){const _0x5e1570={_0x1bb24b:0x421,_0x224757:0x436,_0x2fef4a:0x441,_0x135e92:0x1cb,_0xb6701f:0x1c5,_0x423e3f:0x1b7,_0x2d7709:0x3f9},_0x2cb37d={_0x17d942:0x2e,_0xb6a35e:0xa3},_0x17e8f5={_0x4c14ef:0x2aa,_0x52877a:0xf4,_0x263e4a:0x12};function _0x35ca78(_0x4029e8,_0x6b2ede,_0x6264cf,_0x10485b){return _0xf35b04(_0x6264cf- -_0x17e8f5._0x4c14ef,_0x6b2ede-_0x17e8f5._0x52877a,_0x6264cf-_0x17e8f5._0x263e4a,_0x6b2ede);}const _0xd9fc8d={'iGAjQ':'sha256'};function _0x3724ba(_0x216922,_0x4d6b0c,_0x68095,_0x4d2373){return _0x1026cd(_0x216922-0x1a5,_0x216922,_0x68095- -_0x2cb37d._0x17d942,_0x4d2373-_0x2cb37d._0xb6a35e);}return createHash(_0xd9fc8d['iGAjQ'])[_0x3724ba(0x445,_0x5e1570._0x1bb24b,_0x5e1570._0x224757,_0x5e1570._0x2fef4a)](_0x2056db)[_0x35ca78(-_0x5e1570._0x135e92,-_0x5e1570._0xb6701f,-_0x5e1570._0x423e3f,-0x1a7)](_0x3724ba(0x41d,0x406,0x40e,_0x5e1570._0x2d7709));}async['hashFile'](_0x1a3aa4){const _0x2c581f={_0x5a0e60:0xac},_0x16dca6={_0x47c68d:0x31},_0x4578c6=await _0x261b56[_0xad6199(0x99,0xac,0xbe,_0x2c581f._0x5a0e60)](_0x1a3aa4,'utf8');function _0xad6199(_0x3318c7,_0x3956da,_0x4342f3,_0xa2fe1f){return _0xf35b04(_0x3956da- -_0x16dca6._0x47c68d,_0x3956da-0x35,_0x4342f3-0x1e3,_0xa2fe1f);}return this['hashConten'+'t'](_0x4578c6);}async['storeHash'](_0x473abf,_0x56303f){const _0xbbdd41={_0x1a22c1:0x584,_0x4be817:0x57d,_0x3054e8:0x554,_0x473f02:0x563,_0x2a1b5f:0x562,_0x3d0af9:0x573,_0x3f9864:0x58f,_0x2db1d1:0x4d5,_0x40ecf7:0x4cd,_0x5b0032:0x4d6},_0x14cae5={_0x72cede:0x140,_0x1037e9:0x17b},_0x3d3f94={_0x37b2d5:0x1b1,_0x372476:0x1d},_0x25ec36=await this[_0x42990b(0x596,0x579,_0xbbdd41._0x1a22c1,_0xbbdd41._0x4be817)+_0x42990b(0x572,_0xbbdd41._0x3054e8,_0xbbdd41._0x473f02,_0xbbdd41._0x2a1b5f)]();function _0x42990b(_0x63259,_0x3d3f61,_0x2adfb4,_0xf277b){return _0xf35b04(_0x2adfb4-0x485,_0x3d3f61-_0x3d3f94._0x37b2d5,_0x2adfb4-_0x3d3f94._0x372476,_0x63259);}_0x25ec36[_0x473abf]=_0x56303f;function _0x2540d6(_0x1974bf,_0x55d3c5,_0x3a6ed3,_0x111487){return _0xf35b04(_0x111487-0x3f8,_0x55d3c5-_0x14cae5._0x72cede,_0x3a6ed3-_0x14cae5._0x1037e9,_0x3a6ed3);}await this[_0x42990b(_0xbbdd41._0x3d0af9,_0xbbdd41._0x3f9864,0x579,0x56a)+_0x2540d6(_0xbbdd41._0x2db1d1,_0xbbdd41._0x40ecf7,_0xbbdd41._0x5b0032,0x4d6)](_0x25ec36);}async[_0xf35b04(0xff,0xf0,0x110,0x108)+_0x1026cd(0x43a,0x442,0x43e,0x43d)](){const _0x3ca713={_0x4559e2:0x119,_0x2cfa62:0x223,_0x290753:0x226,_0x32a3fc:0x113,_0x429f25:0x10b,_0x4ddcbc:0xf6,_0x3aba0e:0x10d,_0x1fe216:0x104,_0x7438f9:0x225,_0x19fb6f:0xff,_0x32745f:0x105,_0x4eb733:0x10b,_0x59c8ed:0x10a,_0x1c1814:0x125},_0x2b4a47={_0x339e8e:0x9c},_0x15b297={_0x2b69c3:0x1c3,_0x38685b:0x33f,_0x345771:0xfe};function _0x2676ec(_0x34b0f6,_0x5652d6,_0x49d14a,_0x32bb4a){return _0x1026cd(_0x34b0f6-_0x15b297._0x2b69c3,_0x34b0f6,_0x5652d6- -_0x15b297._0x38685b,_0x32bb4a-_0x15b297._0x345771);}const _0x2e2855={'ZjuFQ':'utf8','qIkrg':function(_0x1f8d1c,_0x346688){return _0x1f8d1c===_0x346688;},'yyeaW':function(_0x1fcd7e,_0x12c131){return _0x1fcd7e in _0x12c131;},'vuhWN':_0x2676ec(0xf6,0x10c,_0x3ca713._0x4559e2,0xff)};function _0x59b842(_0x53cdd8,_0x518f2b,_0x325e94,_0x255b29){return _0xf35b04(_0x53cdd8-0x128,_0x518f2b-_0x2b4a47._0x339e8e,_0x325e94-0xbb,_0x518f2b);}try{const _0x545fef=await _0x261b56['readFile'](this[_0x59b842(_0x3ca713._0x2cfa62,0x22a,0x22e,_0x3ca713._0x290753)+'th'],_0x2e2855['ZjuFQ']);return JSON[_0x2676ec(_0x3ca713._0x32a3fc,_0x3ca713._0x429f25,_0x3ca713._0x4ddcbc,_0x3ca713._0x3aba0e)](_0x545fef);}catch(_0x3dd16){if(_0x3dd16&&_0x2e2855[_0x2676ec(0xff,_0x3ca713._0x1fe216,_0x3ca713._0x4ddcbc,0xf2)](typeof _0x3dd16,_0x59b842(0x22a,0x22f,0x21f,_0x3ca713._0x7438f9))&&_0x2e2855['yyeaW']('code',_0x3dd16)&&_0x3dd16[_0x2676ec(_0x3ca713._0x19fb6f,_0x3ca713._0x32745f,_0x3ca713._0x4eb733,_0x3ca713._0x1fe216)]===_0x2e2855[_0x2676ec(_0x3ca713._0x59c8ed,0x11d,_0x3ca713._0x1c1814,0x123)])return{};throw _0x3dd16;}}async[_0x1026cd(0x463,0x45b,0x454,0x44b)+_0xf35b04(0xde,0xcf,0xd5,0xd8)](_0x59753a){const _0x5508d1={_0x2b0332:0x383,_0x3cd4e0:0x395,_0x56a200:0x390,_0x4f87ff:0x4e7,_0xeb5380:0x4db,_0x2806a3:0x4cc,_0x2cff7c:0x4dd,_0x12437b:0x380,_0xa1370a:0x387,_0x4fa171:0x4d4,_0x307791:0x4e6,_0x3afaf9:0x4d0},_0x4d8fe1={_0x171900:0x29a,_0x3cf332:0x16e,_0xd4d1fc:0x101},_0x1edf9c={_0x4081c3:0x3fa,_0xeb64bc:0x17f};function _0x20df9b(_0x4707e8,_0x41c7de,_0x44abf0,_0x191200){return _0xf35b04(_0x41c7de-_0x1edf9c._0x4081c3,_0x41c7de-_0x1edf9c._0xeb64bc,_0x44abf0-0x14e,_0x44abf0);}const _0x3a8e0e=_0x2188a6['dirname'](this[_0xddf3b5(0x39c,_0x5508d1._0x2b0332,_0x5508d1._0x3cd4e0,_0x5508d1._0x56a200)+'th']);function _0xddf3b5(_0x4a3527,_0x1f917c,_0x500bd6,_0x2c6dc7){return _0xf35b04(_0x500bd6-_0x4d8fe1._0x171900,_0x1f917c-_0x4d8fe1._0x3cf332,_0x500bd6-_0x4d8fe1._0xd4d1fc,_0x2c6dc7);}await _0x261b56[_0x20df9b(_0x5508d1._0x4f87ff,_0x5508d1._0xeb5380,_0x5508d1._0x2806a3,_0x5508d1._0x2cff7c)](_0x3a8e0e,{'recursive':!![]}),await _0x261b56[_0xddf3b5(0x38e,0x38d,_0x5508d1._0x12437b,_0x5508d1._0x56a200)](this[_0xddf3b5(0x38d,0x3a8,0x395,_0x5508d1._0xa1370a)+'th'],JSON['stringify'](_0x59753a,null,0xaf3*-0x3+-0x24d*-0xd+0x2f2),_0x20df9b(_0x5508d1._0x4fa171,0x4d5,_0x5508d1._0x307791,_0x5508d1._0x3afaf9));}}
@@ -1,40 +0,0 @@
1
- export interface ProjectIdentifier {
2
- org: string;
3
- project: string;
4
- }
5
- export interface AgentConfig {
6
- org: string;
7
- project: string;
8
- }
9
- export declare const GitRemoteDetector: {
10
- /**
11
- * Get project identifier from .agent/config.yml or git remote
12
- * Prioritizes .agent/config.yml if it exists
13
- */
14
- detect(cwd?: string): Promise<null | ProjectIdentifier>;
15
- /**
16
- * Detect project from git remote URL
17
- * Supports: github.com:org/repo, github.com/org/repo, gitlab.com, bitbucket.org
18
- */
19
- detectFromGit(cwd?: string): Promise<null | ProjectIdentifier>;
20
- /**
21
- * Walk up directory tree to find .agent/config.yml
22
- * Returns the config and the directory it was found in
23
- */
24
- findAgentConfig(startDir?: string): Promise<null | {
25
- config: AgentConfig;
26
- configPath: string;
27
- }>;
28
- /**
29
- * Check if currently in a git repository
30
- */
31
- isGitRepo(cwd?: string): Promise<boolean>;
32
- /**
33
- * Parse various git remote URL formats:
34
- * - git@github.com:org/repo.git
35
- * - https://github.com/org/repo.git
36
- * - git@gitlab.com:org/repo.git
37
- * - https://gitlab.com/org/repo
38
- */
39
- parseRemoteUrl(remote: string): null | ProjectIdentifier;
40
- };
@@ -1 +0,0 @@
1
- (function(_0x46e6e2,_0x455b91){const _0x6d0778={_0x5c0214:0x57,_0x328397:0x49,_0xfa38ce:0x3e,_0x382647:0x2d,_0x31b164:0x43,_0x4bd51a:0x44,_0x514bd8:0x4d,_0x49fb73:0x3a,_0x5efdd6:0x2b,_0x2ac841:0x36,_0x51614d:0x4e,_0x4de23b:0x4b,_0x48287f:0x5b,_0x5b3360:0x3b,_0x1b3aab:0x29,_0x4f49b6:0x39,_0x2eb02d:0x55,_0x46cbd5:0x4b,_0x16604c:0x3a,_0x5e8116:0x58},_0x3950ce={_0x5ba1af:0x88},_0x183bbf={_0x167784:0x11f};function _0x2df28(_0x4a9d0f,_0x1dc29b,_0x59a052,_0x190299){return _0x1317(_0x1dc29b- -_0x183bbf._0x167784,_0x59a052);}function _0x56cfe5(_0x26707f,_0x35d10b,_0x4adf38,_0x2826a7){return _0x1317(_0x35d10b- -_0x3950ce._0x5ba1af,_0x26707f);}const _0x4b2d47=_0x46e6e2();while(!![]){try{const _0x2a719b=parseInt(_0x2df28(-_0x6d0778._0x5c0214,-0x54,-_0x6d0778._0x328397,-0x61))/(-0x1653+-0x355+0x19a9)*(parseInt(_0x2df28(-0x2e,-_0x6d0778._0xfa38ce,-_0x6d0778._0x382647,-_0x6d0778._0x31b164))/(0x1*0x8b5+-0x10*-0xeb+-0x1763))+-parseInt(_0x2df28(-0x43,-0x52,-0x45,-_0x6d0778._0x4bd51a))/(0x4*0x685+0x236e+-0x3d7f)+parseInt(_0x2df28(-0x42,-_0x6d0778._0x514bd8,-0x50,-0x3f))/(-0x3e7*0x3+-0x2477*-0x1+-0x1*0x18be)+parseInt(_0x56cfe5(0x46,_0x6d0778._0x49fb73,_0x6d0778._0x5efdd6,0x2d))/(0xd*0x89+0x230a+-0x36*0xc7)+parseInt(_0x56cfe5(0x43,0x44,_0x6d0778._0x2ac841,0x44))/(-0x182d+-0x1eba+0x124f*0x3)*(-parseInt(_0x56cfe5(_0x6d0778._0x51614d,_0x6d0778._0x4de23b,_0x6d0778._0x48287f,_0x6d0778._0x51614d))/(0x7b7+0x8a0+0x1d0*-0x9))+-parseInt(_0x56cfe5(0x3f,_0x6d0778._0x5b3360,_0x6d0778._0x1b3aab,_0x6d0778._0x4f49b6))/(0x12f0+0x15ef+-0x7b*0x55)*(-parseInt(_0x56cfe5(_0x6d0778._0x51614d,_0x6d0778._0x2eb02d,0x53,0x47))/(0x1*0x883+-0xb00*-0x1+-0x22a*0x9))+-parseInt(_0x56cfe5(_0x6d0778._0x46cbd5,0x47,_0x6d0778._0x16604c,_0x6d0778._0x5e8116))/(-0x1*0x1273+0x1102+0x17b*0x1);if(_0x2a719b===_0x455b91)break;else _0x4b2d47['push'](_0x4b2d47['shift']());}catch(_0xe92112){_0x4b2d47['push'](_0x4b2d47['shift']());}}}(_0x1168,-0x88a18*-0x1+-0x68fdc*-0x1+-0x8c28f));function _0x2f80c0(_0x40bd07,_0x104040,_0x544416,_0x47975a){const _0x133696={_0x572107:0x2cd};return _0x1317(_0x47975a- -_0x133696._0x572107,_0x104040);}import*as _0xaa907e from'js-yaml';import{exec}from'node:child_process';function _0x1317(_0x372b58,_0x39e693){const _0x3a2863=_0x1168();return _0x1317=function(_0x52bf1a,_0x110c21){_0x52bf1a=_0x52bf1a-(-0x23a5+0x2609+-0x1a4);let _0x59cd83=_0x3a2863[_0x52bf1a];if(_0x1317['MqjzWx']===undefined){var _0x22a1a7=function(_0x32ea02){const _0x46bde6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ccbe1='',_0x4bf201='';for(let _0x8135c1=0x1*0x252d+-0x2*-0xcc4+0x14e7*-0x3,_0x1add8f,_0x525d65,_0x566361=-0x2111+-0x196a*-0x1+0x7a7;_0x525d65=_0x32ea02['charAt'](_0x566361++);~_0x525d65&&(_0x1add8f=_0x8135c1%(0x191a+0x1395+0x2cab*-0x1)?_0x1add8f*(-0x8a4+-0x15b6+0x1e9a)+_0x525d65:_0x525d65,_0x8135c1++%(-0x14ef+-0x235*-0x5+0x9ea))?_0x5ccbe1+=String['fromCharCode'](0xd*-0x6a+-0x2*-0x119b+-0x1cd5&_0x1add8f>>(-(-0x15*0x10d+0x1161*0x1+-0x1*-0x4b2)*_0x8135c1&0x796+-0x3*-0x5e3+0x1939*-0x1)):0x13*-0xfd+0x31*0x9d+-0xb46){_0x525d65=_0x46bde6['indexOf'](_0x525d65);}for(let _0x44ccb1=0x1*-0x1709+-0x10*-0x263+-0xf27*0x1,_0x40ab8f=_0x5ccbe1['length'];_0x44ccb1<_0x40ab8f;_0x44ccb1++){_0x4bf201+='%'+('00'+_0x5ccbe1['charCodeAt'](_0x44ccb1)['toString'](0xfcc+-0x21a8+-0x4*-0x47b))['slice'](-(-0x1202*0x1+0x826+0x9de));}return decodeURIComponent(_0x4bf201);};_0x1317['yNeTxf']=_0x22a1a7,_0x372b58=arguments,_0x1317['MqjzWx']=!![];}const _0x33e29a=_0x3a2863[-0x1*0xb3f+0x1*-0x11bd+0x1cfc],_0x55665a=_0x52bf1a+_0x33e29a,_0x5e6a24=_0x372b58[_0x55665a];return!_0x5e6a24?(_0x59cd83=_0x1317['yNeTxf'](_0x59cd83),_0x372b58[_0x55665a]=_0x59cd83):_0x59cd83=_0x5e6a24,_0x59cd83;},_0x1317(_0x372b58,_0x39e693);}function _0x1168(){const _0x41c9f5=['y29UzMLNlNLTBa','lNvYBa','ndq2mZCZv2TfDLrn','lMfNzw50','CMvHzezPBgu','ChjVAMvJDa','mJj6wwPsC0q','vKLeDhq','rKzuALC','y3DK','CNnLic0TAxmTAq','otC2mtm1tujUzKPS','ndboEg5vt0O','wKDbq3q','Bwf0y2G','y29UzMLN','Bg9Hza','shzwzw4','r2L0','DxrMoa','nZi3nff3u2jMEq','nLPorxPLAG','mtGXndy0s0XMsg1T','ic0Tz2v0ihjLBq','mZi2mdeXmgn0s1vowG','zgLYBMfTzq','z2L0ignVBMzPzW','mJe1mti2mgHQzMrJCG','mtGXmJy3mvDWA0nACq','zMLUzefNzw50qW','lxrYzwu','zvvYBa','AM9PBG','B3rLlM9YAwDPBG','CgfYC2u','B3jN'];_0x1168=function(){return _0x41c9f5;};return _0x1168();}function _0x1390dd(_0x19119d,_0x396e33,_0xfdab6,_0x350e45){return _0x1317(_0xfdab6-0x374,_0x350e45);}import*as _0x3374ec from'node:fs/promises';import _0x548448 from'node:path';import{promisify}from'node:util';const execAsync=promisify(exec);export const GitRemoteDetector={async 'detect'(_0x501e57=process['cwd']()){const _0x30982b={_0x3e5403:0x1bc,_0x29508c:0x242,_0x50346b:0x248,_0xcc9e21:0x251,_0x1e25c4:0x1b6,_0x5a1b13:0x1a4},_0x13e853={_0x1bc350:0xed};function _0x7fbe8e(_0x25b708,_0x1b2ce7,_0x493627,_0x57f3bf){return _0x1317(_0x1b2ce7-_0x13e853._0x1bc350,_0x25b708);}const _0x1ce26b=await this[_0x7fbe8e(0x1bb,0x1c1,0x1b2,_0x30982b._0x3e5403)+'onfig'](_0x501e57);function _0x551c7c(_0x3e6e8e,_0x3e194c,_0x10c775,_0x4491d8){return _0x1317(_0x3e6e8e-0x168,_0x3e194c);}if(_0x1ce26b)return{'org':_0x1ce26b[_0x551c7c(0x22e,0x237,0x226,0x225)][_0x551c7c(_0x30982b._0x29508c,0x23c,_0x30982b._0x50346b,_0x30982b._0xcc9e21)],'project':_0x1ce26b['config']['project']};return this['detectFrom'+_0x7fbe8e(0x1bb,_0x30982b._0x1e25c4,_0x30982b._0x5a1b13,0x1b9)](_0x501e57);},async 'detectFromGit'(_0x5eb855=process[_0x1390dd(0x445,0x435,0x434,0x438)]()){const _0x16fcbb={_0x3ee02d:0x1f1,_0x385e71:0x1e0,_0x5846b2:0x1e4,_0x34fff2:0x36c,_0x14524a:0x365,_0x5e44c2:0x1ea,_0x44bd88:0x1ed,_0x8faa4b:0x1f5,_0x52bc91:0x38c,_0x5373c6:0x36d,_0x13ffb1:0x37e,_0x268a22:0x1fa,_0x32d1d7:0x1f4,_0x41e2a2:0x383,_0x22b464:0x384,_0x113132:0x378,_0x21a52b:0x378},_0x4fc97e={_0x3b1f4a:0x154};function _0x4b2760(_0x18635c,_0x536710,_0x900f67,_0x5e1d68){return _0x1390dd(_0x18635c-_0x4fc97e._0x3b1f4a,_0x536710-0x1c5,_0x18635c- -0x636,_0x536710);}const _0x27d8cd={'HvVen':function(_0x4e6935,_0x21ad88,_0x239774){return _0x4e6935(_0x21ad88,_0x239774);},'VIDtt':_0x4b2760(-_0x16fcbb._0x3ee02d,-0x1eb,-_0x16fcbb._0x385e71,-_0x16fcbb._0x5846b2)+_0x10739a(_0x16fcbb._0x34fff2,0x36b,_0x16fcbb._0x14524a,0x370)+_0x4b2760(-_0x16fcbb._0x5e44c2,-_0x16fcbb._0x44bd88,-_0x16fcbb._0x8faa4b,-0x1ee)+_0x10739a(_0x16fcbb._0x52bc91,_0x16fcbb._0x5373c6,0x389,_0x16fcbb._0x13ffb1)};function _0x10739a(_0x5119c7,_0x364052,_0x484804,_0x100c1c){return _0x1390dd(_0x5119c7-0x99,_0x364052-0xa0,_0x100c1c- -0xd2,_0x364052);}try{const {stdout:_0x4f964d}=await _0x27d8cd[_0x4b2760(-_0x16fcbb._0x268a22,-_0x16fcbb._0x32d1d7,-0x1f4,-0x1f0)](execAsync,_0x27d8cd[_0x10739a(0x37a,_0x16fcbb._0x41e2a2,0x38f,_0x16fcbb._0x22b464)],{'cwd':_0x5eb855}),_0x41bf38=_0x4f964d['trim']();return this['parseRemot'+_0x10739a(0x368,_0x16fcbb._0x113132,0x37f,_0x16fcbb._0x21a52b)](_0x41bf38);}catch{return null;}},async 'findAgentConfig'(_0x52ba0e=process[_0x2f80c0(-0x201,-0x213,-0x1ff,-0x20d)]()){const _0x51be85={_0x9f0ed:0x428,_0x1c99fc:0x176,_0x5b6259:0x16a,_0x5282fd:0x160,_0x441747:0x179,_0x4c0fc9:0x426,_0x4ec473:0x172,_0x2f6f69:0x152,_0x964636:0x157,_0x13b823:0x14c,_0x4548bd:0x432,_0x44db29:0x426,_0x2d8a3e:0x43d,_0x3b5c79:0x428,_0x4f54fe:0x439,_0x17c473:0x428,_0x535d5f:0x421},_0x59bf81={_0xee7be4:0x8b},_0x43dcb0={_0xadbb0d:0xa1,_0x3a029c:0x1c},_0x36d048={'ZGACt':_0x1bc615(0x422,0x430,_0x51be85._0x9f0ed,0x41b)};let _0x36dd98=_0x548448['resolve'](_0x52ba0e);const {root:_0x55b4a5}=_0x548448[_0x140e8b(0x16a,0x16d,0x174,0x16c)](_0x36dd98);function _0x1bc615(_0x5a2cc3,_0xffefd5,_0x2196b0,_0x271c38){return _0x1390dd(_0x5a2cc3-0x11b,_0xffefd5-_0x43dcb0._0xadbb0d,_0x5a2cc3- -_0x43dcb0._0x3a029c,_0xffefd5);}function _0x140e8b(_0x3a1783,_0x598a3e,_0x388408,_0x1b72d5){return _0x2f80c0(_0x3a1783-0x110,_0x388408,_0x388408-_0x59bf81._0xee7be4,_0x1b72d5-0x360);}while(_0x36dd98!==_0x55b4a5){const _0x21444b=_0x548448[_0x140e8b(_0x51be85._0x1c99fc,0x163,0x15f,_0x51be85._0x5b6259)](_0x36dd98,_0x140e8b(0x165,_0x51be85._0x5282fd,_0x51be85._0x441747,0x171),_0x1bc615(0x433,0x442,_0x51be85._0x4c0fc9,0x440));try{const _0xc31e65=await _0x3374ec[_0x140e8b(0x160,0x16e,0x174,_0x51be85._0x4ec473)](_0x21444b,_0x36d048[_0x140e8b(0x159,_0x51be85._0x2f6f69,0x167,_0x51be85._0x964636)]),_0x306af1=_0xaa907e[_0x140e8b(0x151,_0x51be85._0x13b823,_0x51be85._0x5282fd,0x15a)](_0xc31e65);if(_0x306af1[_0x1bc615(_0x51be85._0x4548bd,0x432,0x43e,_0x51be85._0x44db29)]&&_0x306af1[_0x1bc615(0x438,0x430,0x438,_0x51be85._0x2d8a3e)])return{'config':_0x306af1,'configPath':_0x21444b};}catch{}_0x36dd98=_0x548448[_0x1bc615(_0x51be85._0x3b5c79,_0x51be85._0x4f54fe,_0x51be85._0x17c473,_0x51be85._0x535d5f)](_0x36dd98);}return null;},async 'isGitRepo'(_0x2f05d6=process['cwd']()){const _0x3839fa={_0x3c2b8f:0x224,_0x31ae2a:0x21e,_0x51def9:0x23f,_0x10b1d5:0x22e,_0x55a8f8:0x1ac,_0x10f7bc:0x1b4},_0x2e51ab={_0x47844c:0xd3},_0x21f3cc={_0x4f14bb:0x1d3,_0x10c68f:0x2a0};function _0x3ccb3f(_0x55bfc9,_0x3d4a0e,_0x2432a5,_0x1134b9){return _0x1390dd(_0x55bfc9-0x177,_0x3d4a0e-_0x21f3cc._0x4f14bb,_0x55bfc9- -_0x21f3cc._0x10c68f,_0x1134b9);}function _0x4814d2(_0x396d8f,_0x1909a9,_0x592004,_0x176632){return _0x1390dd(_0x396d8f-0x97,_0x1909a9-_0x2e51ab._0x47844c,_0x1909a9- -0x211,_0x592004);}const _0x53542a={'oYvKF':function(_0x2423a7,_0x564f12,_0x366401){return _0x2423a7(_0x564f12,_0x366401);},'FFTjW':'git\x20rev-pa'+_0x4814d2(0x217,_0x3839fa._0x3c2b8f,_0x3839fa._0x31ae2a,0x222)+'nside-work'+_0x4814d2(_0x3839fa._0x51def9,0x238,0x226,_0x3839fa._0x10b1d5)};try{return await _0x53542a['oYvKF'](execAsync,_0x53542a[_0x3ccb3f(0x1b7,_0x3839fa._0x55a8f8,0x1b1,_0x3839fa._0x10f7bc)],{'cwd':_0x2f05d6}),!![];}catch{return![];}},'parseRemoteUrl'(_0x2441f4){const _0x5bb562={_0x5465f7:0x1f3,_0x3476ba:0x2e6},_0x23b2dd={_0x25ecc3:0x10e,_0x12f2fc:0x178},_0x682033={_0x14e3c4:0x101};function _0x4f5ed3(_0x46e454,_0x2a8773,_0x41c7d6,_0x2a9a13){return _0x1390dd(_0x46e454-_0x682033._0x14e3c4,_0x2a8773-0x28,_0x2a9a13- -0x63c,_0x41c7d6);}const _0xce944a=_0x2441f4[_0x4f5ed3(-0x208,-0x20a,-_0x5bb562._0x5465f7,-0x203)](/git@[^:]+:([^/]+)\/([^.]+)(?:\.git)?/);if(_0xce944a)return{'org':_0xce944a[0x1fa5*-0x1+0x1*-0x2515+0x44bb],'project':_0xce944a[0x2141*-0x1+0xf7*0x1a+0x7*0x12b]};const _0x28930c=_0x2441f4[_0xb93868(-_0x5bb562._0x3476ba,-0x2f4,-0x2f3,-0x2d7)](/https?:\/\/[^/]+\/([^/]+)\/([^.]+)(?:\.git)?/);function _0xb93868(_0x36a597,_0x5deb05,_0x2a4d48,_0xa22f5e){return _0x1390dd(_0x36a597-_0x23b2dd._0x25ecc3,_0x5deb05-_0x23b2dd._0x12f2fc,_0x36a597- -0x71f,_0x2a4d48);}if(_0x28930c)return{'org':_0x28930c[0x2*-0x6dd+0x7*0x2+-0x185*-0x9],'project':_0x28930c[-0x242+0x59f*-0x3+0x1321]};return null;}};
@@ -1,38 +0,0 @@
1
- export declare class UpdateChecker {
2
- private cacheFile;
3
- private checkInterval;
4
- private currentVersion;
5
- private packageName;
6
- constructor();
7
- /**
8
- * Static method to run the check without blocking
9
- * Call this at the start of commands
10
- */
11
- static notifyIfUpdateAvailable(): Promise<void>;
12
- /**
13
- * Check for updates and display a message if available
14
- * This runs asynchronously and doesn't block the command
15
- */
16
- checkForUpdates(): Promise<void>;
17
- /**
18
- * Display a friendly update message
19
- */
20
- private displayUpdateMessage;
21
- /**
22
- * Get the latest version from npm registry
23
- */
24
- private getLatestVersion;
25
- /**
26
- * Compare two semantic versions
27
- */
28
- private isNewerVersion;
29
- /**
30
- * Check if we should run the update check
31
- * Returns true if last check was more than 24 hours ago
32
- */
33
- private shouldCheck;
34
- /**
35
- * Update the last check time
36
- */
37
- private updateCheckTime;
38
- }
@@ -1 +0,0 @@
1
- function _0x1c23(_0x463779,_0x5b2c9f){const _0x124fa3=_0xb745();return _0x1c23=function(_0x51037d,_0x26361a){_0x51037d=_0x51037d-(0x2c3+0x1d14+-0x1de9);let _0x26da48=_0x124fa3[_0x51037d];if(_0x1c23['HrhttT']===undefined){var _0x162c7a=function(_0x1533cf){const _0x144511='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1231b7='',_0x267186='';for(let _0x89af94=0x14cc+-0x125*-0x2+-0x1716,_0x55f3fe,_0x1cc9bd,_0x2608e7=0xf71+-0x16e7+-0xa*-0xbf;_0x1cc9bd=_0x1533cf['charAt'](_0x2608e7++);~_0x1cc9bd&&(_0x55f3fe=_0x89af94%(-0x4*-0x371+-0x5*0x30e+0x186)?_0x55f3fe*(-0x217b+0x104e+0x116d)+_0x1cc9bd:_0x1cc9bd,_0x89af94++%(-0x153d+0x164f+-0x10e))?_0x1231b7+=String['fromCharCode'](0x931*0x1+-0xf*-0xa1+-0x1*0x11a1&_0x55f3fe>>(-(-0x1cb2+0x12aa+0xa*0x101)*_0x89af94&-0x260b+0x1*-0x130a+0x391b)):-0x4*0x6f3+0x6f7*-0x4+0x37a8){_0x1cc9bd=_0x144511['indexOf'](_0x1cc9bd);}for(let _0x898578=-0x33f*0xb+0x1e6d+0x548,_0x5f3c01=_0x1231b7['length'];_0x898578<_0x5f3c01;_0x898578++){_0x267186+='%'+('00'+_0x1231b7['charCodeAt'](_0x898578)['toString'](0x2069+0x7*-0x1fb+-0x127c))['slice'](-(0x151f*0x1+-0xd2c+-0x6b*0x13));}return decodeURIComponent(_0x267186);};_0x1c23['AQQRKW']=_0x162c7a,_0x463779=arguments,_0x1c23['HrhttT']=!![];}const _0x5dc5a7=_0x124fa3[-0xe43+0x2409+0x15c6*-0x1],_0x2adc57=_0x51037d+_0x5dc5a7,_0x217901=_0x463779[_0x2adc57];return!_0x217901?(_0x26da48=_0x1c23['AQQRKW'](_0x26da48),_0x463779[_0x2adc57]=_0x26da48):_0x26da48=_0x217901,_0x26da48;},_0x1c23(_0x463779,_0x5b2c9f);}(function(_0x31ad81,_0x4c4e44){const _0x255ae8={_0x58ef3a:0x21e,_0x2013ea:0x208,_0x218304:0x5bb,_0x22290d:0x5a2,_0x907799:0x5b4,_0x2d0d2b:0x5b4,_0x4e77c1:0x5a4,_0x3d358c:0x585,_0x20ae9f:0x5bd,_0x5c6572:0x246,_0x2fd947:0x221,_0x4322cb:0x5af,_0x29f733:0x587,_0x457f5d:0x5b7,_0x32ade0:0x20d,_0x2e9094:0x1e7,_0x18d380:0x233,_0x241ab0:0x244,_0xeb60e7:0x23d};function _0x223e87(_0x214354,_0x156c57,_0x286c81,_0x4bafbb){return _0x1c23(_0x214354-0x39f,_0x156c57);}function _0x9421f5(_0x209f9b,_0x5529f8,_0x1a0de7,_0xe7a127){return _0x1c23(_0x5529f8-0x16,_0x209f9b);}const _0x28428d=_0x31ad81();while(!![]){try{const _0x4420ee=-parseInt(_0x9421f5(_0x255ae8._0x58ef3a,_0x255ae8._0x2013ea,0x1ed,0x219))/(-0x16+0x106b+0x26*-0x6e)+parseInt(_0x223e87(0x5c3,_0x255ae8._0x218304,_0x255ae8._0x22290d,_0x255ae8._0x907799))/(0x1a21+0x2*0x660+-0x26df)*(parseInt(_0x223e87(0x5c1,_0x255ae8._0x22290d,0x5ae,_0x255ae8._0x2d0d2b))/(-0x47*-0x5e+-0x19fe+-0x11*0x1))+-parseInt(_0x223e87(_0x255ae8._0x4e77c1,_0x255ae8._0x3d358c,_0x255ae8._0x20ae9f,0x5a1))/(0xfde+0x1d3*0x7+-0x1c9f)*(parseInt(_0x9421f5(0x23e,_0x255ae8._0x5c6572,0x25a,0x242))/(0x10a*0xd+-0x17*-0xa1+-0x1bf4*0x1))+-parseInt(_0x9421f5(0x21c,0x21e,0x211,_0x255ae8._0x2fd947))/(0x1*-0x14c6+0xf03+-0x5c9*-0x1)*(-parseInt(_0x223e87(0x596,_0x255ae8._0x4322cb,_0x255ae8._0x29f733,_0x255ae8._0x457f5d))/(0x4*0x2b4+-0x10e1+-0x4*-0x186))+parseInt(_0x9421f5(0x216,0x220,0x20d,0x21f))/(-0x2302+0x1338+0x32*0x51)+-parseInt(_0x9421f5(0x1ef,0x20a,_0x255ae8._0x32ade0,_0x255ae8._0x2e9094))/(-0xf3f*-0x2+-0x60b+-0x186a)+parseInt(_0x9421f5(_0x255ae8._0x18d380,_0x255ae8._0x241ab0,0x239,_0x255ae8._0xeb60e7))/(0x36*-0x9a+0x1ca4+0x3e2);if(_0x4420ee===_0x4c4e44)break;else _0x28428d['push'](_0x28428d['shift']());}catch(_0x39132a){_0x28428d['push'](_0x28428d['shift']());}}}(_0xb745,0x43b5*-0x16+-0x7d988+-0x28*-0x8cab));import _0x3f48ff from'axios';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function _0xb745(){const _0x283e6d=['zgf0zuf2ywLSyq','yxzHAwXHyMXLoG','zgf0zxm','t2rKBKC','ndK1A21Wve9M','BgP1zvu','ode1nenyDK9kCW','y2HLy2TjBNrLCG','y2HLy2TgB3jvCa','z2v0tgf0zxn0vG','se9nrq','BgfZDenOzwnR','C3rYAw5NAwz5','y2SUANnVBG','lwCG','BwfW','ntG2otC1mhzIuvHrCG','C2LVBG','nZq2mg1TA1HguG','C2HVDwXKq2HLyW','vMXHr2u','zgLYBMfTzq','CgfJA2fNzu5HBq','CMvWzwf0','DxjS','A1rPBwu','nZq4otyXA3HiAxr0','yxrLtwvZC2fNzq','mZq5odu4ofP2v0zmwq','v1zzs20','DMfS','ntzZsMTLtwq','DxbKyxrLq2HLyW','BM93','yxbWBgLJyxrPBW','CgfYC2u','Bgf0zxn0','BI9QC29U','lMnYzxDRAxq','uu5Iuxm','y2f0y2G','Ahr0Chm6lY9Yzq','Dg9ju09tDhjPBG','z2v0vgLTzq','Bg9N','otCYCgTuseXW','y3vYCMvUDfzLCG','AM9PBG','mJe4mZm0wgzVvxnV','wgDkEMK','mZK1mZa0ogjktuneCW','DMvYC2LVBG','BgvUz3rO','DxrMoa','4PscicbsDw46ig5W','twDUwKS','Agn0DNe','z2LZDhj5lM5WBq','DxbKyxrLlwnOzq','vvnfuLbst0zjta','y2fJAgvgAwXL','BsbPBNn0ywXSia','AxnozxDLCLzLCG','zw52','ANmUB3jNlW','z2v0','iokgKIa','zxjZAw9U','zgLZCgXHEvvWza','BM90Awz5swzvCa'];_0xb745=function(){return _0x283e6d;};return _0xb745();}function _0x3e5e27(_0x58b1c0,_0x4c10a1,_0xa7f564,_0x37eab4){return _0x1c23(_0x4c10a1- -0x9a,_0x58b1c0);}function _0x437604(_0x4f8647,_0x1346ea,_0x121fda,_0x13cc0a){return _0x1c23(_0x4f8647- -0x2d5,_0x121fda);}import _0x3b00ed from'node:path';import{fileURLToPath}from'node:url';export class UpdateChecker{[_0x3e5e27(0x196,0x17a,0x180,0x15e)];[_0x437604(-0xb0,-0x93,-0xbc,-0xb2)+_0x3e5e27(0x172,0x15c,0x15a,0x13c)]=(0x138d+-0x19cf+0x65a)*(0x257a+0x13d2*0x1+-0x8*0x722)*(-0x99c+-0x8*-0x3a+-0x404*-0x2)*(0xfba+0x19e1*-0x1+0xe0f);[_0x437604(-0xcf,-0xdb,-0xaf,-0xc5)+_0x437604(-0xa6,-0xb3,-0xa7,-0xa3)];[_0x3e5e27(0x14e,0x154,0x141,0x13a)+'e'];constructor(){const _0x2b3265={_0x59a150:0x492,_0x189be9:0x4a2,_0x452482:0x495,_0x5e21e2:0xa3,_0x3add0e:0x97,_0x5cd0ab:0x8a,_0x5b2b50:0x73,_0x2fece1:0x45e,_0x211630:0x7f,_0x7cc5e8:0x70,_0x112ba5:0xa2,_0x395843:0x8d,_0x375739:0x4a9,_0x20b247:0x490,_0x2a0496:0x45b,_0x28d29d:0x471,_0x310992:0xa8,_0x29c1e6:0x93,_0x8116f7:0x55,_0x4f5d50:0x6c,_0x2bfb57:0x85,_0x908e46:0x77,_0x1195bf:0x485,_0x196d1d:0x47c,_0x121037:0x4a1,_0x4e2dd3:0x497,_0x340c04:0x48a,_0x2b96b3:0x6d,_0x3599bc:0x71,_0x15c4ca:0x83,_0x1c9301:0x62,_0x3cc4ea:0x494,_0x24dbda:0x46b,_0x265c5c:0x481,_0xe16da8:0x5a,_0x390ab7:0x7b},_0x3175cb={_0x3377a5:0x31d,_0x371595:0x1db},_0x291843={_0x57ee51:0x141,_0x7b2edc:0x1df,_0x2e097b:0x1b0},_0x1e24b3={'vgdKv':'../../pack'+'age.json','OddnG':function(_0x68b23,_0x489c90,_0x4241aa){return _0x68b23(_0x489c90,_0x4241aa);},'MgnZK':_0x10498f(_0x2b3265._0x59a150,_0x2b3265._0x189be9,0x47b,_0x2b3265._0x452482)+_0x4474f6(_0x2b3265._0x5e21e2,0xa4,0x79,_0x2b3265._0x3add0e)},_0x3a5bd4=fileURLToPath(new URL('.',import.meta[_0x10498f(0x461,0x47d,0x468,0x473)]));function _0x4474f6(_0x39544a,_0x2c4ad0,_0x93d98e,_0x924539){return _0x437604(_0x924539-_0x291843._0x57ee51,_0x2c4ad0-_0x291843._0x7b2edc,_0x2c4ad0,_0x924539-_0x291843._0x2e097b);}function _0x10498f(_0x406a6f,_0x20771e,_0x302f15,_0xfdbbeb){return _0x3e5e27(_0x302f15,_0xfdbbeb-_0x3175cb._0x3377a5,_0x302f15-_0x3175cb._0x371595,_0xfdbbeb-0x3d);}const _0x377d6a=_0x3b00ed[_0x4474f6(0x94,0x74,_0x2b3265._0x5cd0ab,_0x2b3265._0x5b2b50)](_0x3a5bd4,_0x1e24b3['vgdKv']),_0x4840d4=JSON[_0x10498f(0x463,_0x2b3265._0x2fece1,0x49d,0x47e)](_0x1e24b3[_0x4474f6(_0x2b3265._0x211630,_0x2b3265._0x7cc5e8,_0x2b3265._0x112ba5,_0x2b3265._0x395843)](readFileSync,_0x377d6a,_0x10498f(_0x2b3265._0x375739,0x4a1,0x471,_0x2b3265._0x20b247)));this[_0x10498f(0x47b,_0x2b3265._0x2a0496,0x47a,_0x2b3265._0x28d29d)+'e']=_0x4840d4['name'],this['currentVer'+_0x4474f6(_0x2b3265._0x310992,0x7d,_0x2b3265._0x29c1e6,0x9b)]=_0x4840d4[_0x4474f6(_0x2b3265._0x8116f7,_0x2b3265._0x4f5d50,_0x2b3265._0x2bfb57,_0x2b3265._0x908e46)],this[_0x10498f(_0x2b3265._0x1195bf,_0x2b3265._0x196d1d,_0x2b3265._0x121037,_0x2b3265._0x4e2dd3)]=_0x3b00ed[_0x10498f(0x47b,0x47b,0x469,_0x2b3265._0x340c04)](process[_0x4474f6(_0x2b3265._0x2b96b3,_0x2b3265._0x3599bc,0x90,_0x2b3265._0x15c4ca)][_0x4474f6(0x75,0x87,0x9e,0x94)]||process['env'][_0x4474f6(0xa0,_0x2b3265._0x1c9301,0x8e,0x7f)+'E']||'',_0x10498f(_0x2b3265._0x3cc4ea,0x48f,_0x2b3265._0x24dbda,_0x2b3265._0x265c5c),_0x1e24b3[_0x4474f6(0x7d,0x95,_0x2b3265._0xe16da8,_0x2b3265._0x390ab7)]);}static async[_0x3e5e27(0x17e,0x183,0x16a,0x173)+_0x3e5e27(0x185,0x184,0x177,0x192)+'ble'](){const _0x40150a={_0x5aca50:0x130,_0x5b0c72:0x152,_0x124b06:0x14d,_0x555c75:0x450,_0x5d7bd8:0x45e},_0x225aa9={_0x433b8d:0x51b,_0x52c957:0x18a,_0x4aefcc:0x5f},_0x1cdf39={_0x3ed2fb:0x33};function _0x35db51(_0x7a207d,_0x2bfd28,_0xdfcbed,_0x124395){return _0x3e5e27(_0x7a207d,_0x2bfd28- -0x2bc,_0xdfcbed-0x144,_0x124395-_0x1cdf39._0x3ed2fb);}function _0x43c7ee(_0x5af162,_0x5dc0f0,_0x55c7a4,_0x233c93){return _0x437604(_0x5dc0f0-_0x225aa9._0x433b8d,_0x5dc0f0-_0x225aa9._0x52c957,_0x233c93,_0x233c93-_0x225aa9._0x4aefcc);}const _0x42b81d=new UpdateChecker();_0x42b81d[_0x35db51(-0x13b,-_0x40150a._0x5aca50,-_0x40150a._0x5b0c72,-_0x40150a._0x124b06)+'dates']()[_0x43c7ee(_0x40150a._0x555c75,0x446,0x454,_0x40150a._0x5d7bd8)](()=>{});}async[_0x3e5e27(0x184,0x18c,0x1ab,0x19f)+_0x437604(-0xb5,-0xc1,-0x9a,-0xb7)](){const _0x1e82df={_0x4ccbe0:0x4de,_0x333223:0x4d0,_0x195f3f:0x4d7,_0x39c478:0x4cc,_0x496fb8:0x4d9,_0x14fa4b:0x4d5,_0xc52e67:0xa8,_0x2a416c:0xae,_0x40c417:0xb5,_0x4077ad:0x92,_0x3389c4:0x69,_0x1d9064:0x7c,_0x3a0f51:0x79,_0x15cb4b:0x7c,_0x489817:0x7a,_0x33bdc8:0x48e},_0x1c7020={_0x410c44:0x20e,_0x31cd26:0x2a};function _0x417298(_0x566394,_0x5d411c,_0x576118,_0x2516e2){return _0x3e5e27(_0x5d411c,_0x2516e2- -_0x1c7020._0x410c44,_0x576118-_0x1c7020._0x31cd26,_0x2516e2-0xc0);}function _0x5e3471(_0x34d884,_0x261092,_0x37e092,_0x4e901d){return _0x3e5e27(_0x37e092,_0x261092-0x358,_0x37e092-0x92,_0x4e901d-0xc5);}try{if(!this[_0x5e3471(_0x1e82df._0x4ccbe0,0x4ef,_0x1e82df._0x333223,_0x1e82df._0x195f3f)+'k']())return;const _0x5a3b8e=await this[_0x5e3471(0x4fb,0x4e5,0x4e0,_0x1e82df._0x39c478)+_0x5e3471(0x4d8,_0x1e82df._0x496fb8,_0x1e82df._0x14fa4b,0x4b6)]();_0x5a3b8e&&this[_0x417298(-_0x1e82df._0xc52e67,-_0x1e82df._0x2a416c,-_0x1e82df._0x40c417,-_0x1e82df._0x4077ad)+_0x417298(-_0x1e82df._0x3389c4,-0x7e,-_0x1e82df._0x1d9064,-_0x1e82df._0x3a0f51)](_0x5a3b8e,this['currentVer'+_0x417298(-_0x1e82df._0x15cb4b,-_0x1e82df._0x489817,-0x7e,-_0x1e82df._0x3a0f51)])&&this['displayUpd'+_0x5e3471(0x4c1,0x4b1,0x4ae,_0x1e82df._0x33bdc8)](_0x5a3b8e),this[_0x5e3471(0x4cf,0x4b6,0x4c3,_0x1e82df._0x496fb8)+'kTime']();}catch{}}[_0x437604(-0xb9,-0xbe,-0xcd,-0xcf)+_0x3e5e27(0x16d,0x159,0x14c,0x14c)](_0x241c14){const _0x1672aa={_0x345deb:0x3a,_0x1d9cfa:0x34,_0x4dd86b:0x39,_0x4a7f4a:0x30,_0xf70a39:0x21,_0x7e6516:0x3a,_0xd54961:0x244,_0x5ea6e5:0x22f,_0x331fdb:0x20b,_0x3cfc16:0x223,_0x40c832:0x208,_0x396cff:0x236,_0x51a5c4:0x237,_0x5bf5aa:0x23a,_0x3903ff:0x21a,_0x54eb6c:0x206,_0x141ef1:0x226,_0x53581a:0x6,_0xadca6a:0x2,_0x49a218:0x223,_0x4d3808:0x9,_0x178b78:0x229,_0x26cb1e:0x20e,_0x19ffa5:0x23c,_0x2e2c26:0x39,_0x2c1e5c:0x235,_0x4dac11:0x221,_0x53a7b1:0x203,_0x2c8abb:0x22b,_0x41dbb0:0x21c,_0xca91da:0x238,_0x399b65:0x232,_0x2e37d8:0x238,_0xa2d4ab:0x233,_0x3ea0ab:0x249,_0x32e8f9:0x224,_0x52ba46:0x20c,_0x235e66:0x201,_0x6347f0:0x1ec,_0x23d9e4:0x15,_0x55c813:0x2b,_0x34d177:0x21c,_0x5bf710:0x20c,_0x287984:0x220,_0x3a831e:0x20b,_0x2f6293:0x2a,_0x40d4bd:0xc,_0xbb127:0x206,_0x4fecdb:0x1f5,_0x1245e7:0x8,_0x565c08:0x22,_0x2303ac:0x31},_0xe28a4f={_0x1dfdc0:0x18b},_0x3586fd={_0x48e3ca:0x2f2,_0x17910a:0x121},_0x504a7d={'ljueU':function(_0x2f43f6,_0x8b769b){return _0x2f43f6-_0x8b769b;},'hctvq':function(_0x398ffe,_0x3a625e){return _0x398ffe-_0x3a625e;},'QNbQs':function(_0x1766e6,_0x13598e){return _0x1766e6-_0x13598e;}},_0x38283d=-0x1e2f+-0x1ead*-0x1+-0x42,_0x5c625e='─'[_0x4a268e(-0x3d,-0x36,-0x36,-_0x1672aa._0x345deb)](_0x38283d);console['log'](''),console['log']('┌'+_0x5c625e+'┐'),console[_0x4a268e(-0xc,-_0x1672aa._0x1d9cfa,-0x21,-0x36)]('│'+'\x20'[_0x4a268e(-0x25,-0x35,-0x36,-_0x1672aa._0x4dd86b)](_0x38283d)+'│'),console[_0x4a268e(-_0x1672aa._0x4a7f4a,-0x41,-_0x1672aa._0xf70a39,-_0x1672aa._0x7e6516)]('│\x20\x20Update\x20'+_0x513256(_0x1672aa._0xd54961,0x23c,0x258,_0x1672aa._0x5ea6e5)+'\x20'+this[_0x513256(_0x1672aa._0x331fdb,_0x1672aa._0x3cfc16,0x23f,_0x1672aa._0x40c832)+'sion']+_0x513256(_0x1672aa._0x396cff,_0x1672aa._0x51a5c4,_0x1672aa._0x5bf5aa,_0x1672aa._0x3903ff)+_0x241c14+'\x20'[_0x513256(_0x1672aa._0x54eb6c,0x20c,0x1ea,_0x1672aa._0x141ef1)](_0x504a7d['ljueU'](_0x504a7d[_0x4a268e(-0x6,-_0x1672aa._0x53581a,-_0x1672aa._0xadca6a,-0x14)](_0x38283d-(0x2*-0xfa9+-0x329*-0x1+0x1c47),this[_0x513256(0x230,_0x1672aa._0x49a218,0x213,0x23b)+_0x4a268e(0x8,-0x2,0xa,-_0x1672aa._0x4d3808)][_0x513256(_0x1672aa._0x396cff,_0x1672aa._0x178b78,_0x1672aa._0x26cb1e,_0x1672aa._0x19ffa5)]),_0x241c14['length']))+'│'),console[_0x4a268e(-0x6,-_0x1672aa._0x2e2c26,-_0x1672aa._0xf70a39,0x2)]('│'+'\x20'['repeat'](_0x38283d)+'│'),console[_0x513256(_0x1672aa._0x2c1e5c,_0x1672aa._0x4dac11,0x229,_0x1672aa._0x53a7b1)](_0x513256(0x213,_0x1672aa._0x2c8abb,_0x1672aa._0x41dbb0,0x21e)+_0x513256(_0x1672aa._0xca91da,_0x1672aa._0x399b65,_0x1672aa._0x2e37d8,_0x1672aa._0xa2d4ab)+_0x513256(_0x1672aa._0x2e37d8,_0x1672aa._0x3ea0ab,0x256,0x238)+this[_0x4a268e(-0x4c,-0x22,-0x37,-0x33)+'e']+'\x20'[_0x513256(_0x1672aa._0x32e8f9,_0x1672aa._0x52ba46,_0x1672aa._0x235e66,_0x1672aa._0x6347f0)](_0x504a7d[_0x4a268e(0x9,-0x18,-_0x1672aa._0x23d9e4,-_0x1672aa._0x55c813)](_0x504a7d[_0x513256(0x23b,_0x1672aa._0x34d177,_0x1672aa._0x5bf710,0x211)](_0x38283d,0x21*0xbd+-0x2*0xf22+-0x100*-0x6),this[_0x513256(_0x1672aa._0x287984,_0x1672aa._0x3a831e,0x224,0x20a)+'e'][_0x4a268e(-0x15,-0x36,-0x19,-_0x1672aa._0x23d9e4)]))+'│');function _0x513256(_0x3cd235,_0x2cc8d0,_0x3ed170,_0x2104f2){return _0x437604(_0x2cc8d0-_0x3586fd._0x48e3ca,_0x2cc8d0-0x35,_0x3cd235,_0x2104f2-_0x3586fd._0x17910a);}console[_0x4a268e(-_0x1672aa._0x2f6293,-0x12,-0x21,-_0x1672aa._0x40d4bd)]('│'+'\x20'[_0x513256(0x20c,0x20c,_0x1672aa._0xbb127,_0x1672aa._0x4fecdb)](_0x38283d)+'│');function _0x4a268e(_0xb12e35,_0x3e9313,_0x293ffe,_0x1c96d9){return _0x3e5e27(_0x1c96d9,_0x293ffe- -_0xe28a4f._0x1dfdc0,_0x293ffe-0x1d3,_0x1c96d9-0x144);}console[_0x4a268e(-0x33,-_0x1672aa._0x1245e7,-0x21,-_0x1672aa._0x55c813)]('└'+_0x5c625e+'┘'),console[_0x4a268e(-0x1b,-_0x1672aa._0x565c08,-0x21,-_0x1672aa._0x2303ac)]('');}async[_0x437604(-0xae,-0x9e,-0xc6,-0x93)+_0x437604(-0xba,-0xa0,-0xd7,-0xc7)](){const _0x5721df={_0x212718:0x369,_0x3154f8:0x368,_0x199afc:0x372,_0x158c61:0x37e,_0x32616b:0x3a5,_0x48a844:0x38e,_0x27ac7f:0x1c3,_0x2a87d0:0x1c9,_0xed39fd:0x1bf,_0xecd020:0x1ca,_0x1e8315:0x1cb,_0x1b4322:0x3ac,_0x4dc836:0x1e6,_0xa8cc9b:0x1db,_0x58ae98:0x1e6,_0x28b64b:0x1e1},_0x4237e5={_0x20a9ea:0x341,_0x407056:0xa7},_0x592f63={_0x180236:0x62,_0x16a4ef:0x188},_0x1faf55={'WVYKm':_0x2e1c30(0x390,_0x5721df._0x212718,0x36f,0x353)+_0x2e1c30(0x357,_0x5721df._0x3154f8,_0x5721df._0x199afc,_0x5721df._0x158c61)};function _0x2e1c30(_0x4ea387,_0x1f6446,_0x466cff,_0x3d0bac){return _0x437604(_0x466cff-0x44a,_0x1f6446-_0x592f63._0x180236,_0x4ea387,_0x3d0bac-_0x592f63._0x16a4ef);}function _0x5b79e9(_0x25e5a3,_0x5766dd,_0x1af749,_0x271831){return _0x3e5e27(_0x25e5a3,_0x1af749- -_0x4237e5._0x20a9ea,_0x1af749-0xda,_0x271831-_0x4237e5._0x407056);}try{const _0xe6e2f8=await _0x3f48ff[_0x2e1c30(_0x5721df._0x32616b,0x3a3,_0x5721df._0x48a844,0x38d)](_0x5b79e9(-0x1c0,-_0x5721df._0x27ac7f,-0x1da,-_0x5721df._0x2a87d0)+_0x5b79e9(-0x1e4,-_0x5721df._0xed39fd,-_0x5721df._0xecd020,-_0x5721df._0x1e8315)+_0x2e1c30(0x378,_0x5721df._0x1b4322,0x38d,0x375)+this[_0x5b79e9(-0x1f5,-_0x5721df._0x1e8315,-0x1ed,-_0x5721df._0x4dc836)+'e'],{'headers':{'Accept':_0x1faf55[_0x5b79e9(-_0x5721df._0xa8cc9b,-0x1c6,-_0x5721df._0x58ae98,-0x200)]},'timeout':0x7d0});return _0xe6e2f8['data']['dist-tags'][_0x5b79e9(-_0x5721df._0x28b64b,-0x1df,-0x1df,-0x1fc)];}catch{return null;}}['isNewerVer'+'sion'](_0x3d8d67,_0xf4f0c){const _0x55af3e={_0x3ebae6:0x3d4,_0x591279:0x3ac},_0x3feb18={_0x3184a6:0xca,_0x4e74da:0x1a0},_0x3c3670=_0x3d8d67['split']('.')[_0x3e9692(_0x55af3e._0x3ebae6,0x3bc,0x3b1,0x3be)](Number);function _0x4d83d6(_0x40e511,_0xc53b1e,_0x33fe74,_0x45797c){return _0x3e5e27(_0x33fe74,_0xc53b1e- -0x74,_0x33fe74-0x193,_0x45797c-0x6);}function _0x3e9692(_0x16d494,_0x28caf4,_0x773b07,_0x5005da){return _0x3e5e27(_0x28caf4,_0x773b07-0x21e,_0x773b07-_0x3feb18._0x3184a6,_0x5005da-_0x3feb18._0x4e74da);}const _0x260db8=_0xf4f0c['split']('.')[_0x3e9692(_0x55af3e._0x591279,0x3c4,0x3b1,0x3c8)](Number);for(let _0x17bdc7=0x767*0x2+-0xe11+-0xbd;_0x17bdc7<0x7*-0xad+-0x1b1b+0x1fd9;_0x17bdc7++){const _0x3ac521=_0x3c3670[_0x17bdc7]||-0x3*-0x7ed+0x3b*0x49+-0x1*0x289a,_0x4b6c79=_0x260db8[_0x17bdc7]||0x89*0x23+0x1519+0x2*-0x13ea;if(_0x3ac521>_0x4b6c79)return!![];if(_0x3ac521<_0x4b6c79)return![];}return![];}['shouldChec'+'k'](){const _0x7f23f5={_0x2bdc94:0x2f3,_0x1f0e5f:0x2e0,_0x3e617e:0x2d9,_0x2c7eff:0x2cd,_0x17b287:0x83,_0x3e4974:0x4b,_0x520a17:0x85,_0x3376db:0x30b,_0x5f43ac:0x30f,_0x31c427:0x2e9,_0x5a29a9:0x50,_0x213c74:0x5c,_0x153693:0x5c,_0x29d248:0x7f,_0x464a61:0x8b,_0x15a54b:0x80,_0x4a4cce:0x71},_0x5d47e6={_0xd2eaeb:0x3bb};function _0x355056(_0x568c61,_0x19b7f2,_0x3ab895,_0x2ee4ec){return _0x437604(_0x3ab895-_0x5d47e6._0xd2eaeb,_0x19b7f2-0x17c,_0x568c61,_0x2ee4ec-0x6d);}const _0x12bde9={'hoNjy':_0x355056(0x2dd,0x2dd,_0x7f23f5._0x2bdc94,_0x7f23f5._0x1f0e5f),'VlaGe':function(_0x33a896,_0x321e1d){return _0x33a896>_0x321e1d;}};function _0x3a9d68(_0xe0dee4,_0x2ee682,_0x29b615,_0x41d4c6){return _0x3e5e27(_0x41d4c6,_0xe0dee4- -0x1e7,_0x29b615-0x192,_0x41d4c6-0x1f1);}try{const _0x510369=JSON[_0x355056(_0x7f23f5._0x3e617e,0x2f3,0x2e1,_0x7f23f5._0x2c7eff)](readFileSync(this[_0x3a9d68(-0x6d,-_0x7f23f5._0x17b287,-_0x7f23f5._0x3e4974,-_0x7f23f5._0x520a17)],_0x12bde9['hoNjy'])),_0x31f176=new Date(_0x510369[_0x355056(_0x7f23f5._0x3376db,0x2f8,_0x7f23f5._0x5f43ac,0x301)])[_0x355056(0x2d4,0x2e9,_0x7f23f5._0x31c427,_0x7f23f5._0x1f0e5f)](),_0x32f3d6=Date[_0x355056(0x2da,_0x7f23f5._0x2bdc94,0x2df,0x2d8)]();return _0x12bde9[_0x3a9d68(-0x4f,-_0x7f23f5._0x5a29a9,-0x31,-0x70)](_0x32f3d6-_0x31f176,this[_0x3a9d68(-_0x7f23f5._0x213c74,-0x41,-_0x7f23f5._0x153693,-_0x7f23f5._0x29d248)+_0x3a9d68(-_0x7f23f5._0x464a61,-_0x7f23f5._0x15a54b,-_0x7f23f5._0x4a4cce,-0x88)]);}catch{return!![];}}['updateChec'+_0x437604(-0xe4,-0x105,-0xea,-0xe6)](){const _0x3c3933={_0x1279d3:0xc6,_0x638f61:0xde,_0x81d49d:0x3e4,_0x33e1ca:0x3e9,_0x43f1dc:0xb4,_0x1cfd55:0xb8},_0x416dfd={_0x111b7c:0x0},_0x484e53={_0x344d70:0x181,_0x33a57d:0x6b};function _0x341891(_0x5130f4,_0x60fc58,_0x1aac13,_0x3b896a){return _0x437604(_0x3b896a-0x474,_0x60fc58-_0x484e53._0x344d70,_0x60fc58,_0x3b896a-_0x484e53._0x33a57d);}const _0x180af7={'XgJzi':function(_0x4c0126,_0x45b778){return _0x4c0126(_0x45b778);},'eQXOs':function(_0xcd25e7,_0x5af674,_0x381411){return _0xcd25e7(_0x5af674,_0x381411);}};function _0x12cf2(_0x26a6f8,_0x4e9645,_0x4bd4c0,_0x380c5c){return _0x437604(_0x4bd4c0-_0x416dfd._0x111b7c,_0x4e9645-0x56,_0x4e9645,_0x380c5c-0xcc);}try{const _0x4b7df2=_0x3b00ed[_0x12cf2(-0xad,-0xa6,-0xa2,-0xa5)](this['cacheFile']);!_0x180af7[_0x12cf2(-0xda,-_0x3c3933._0x1279d3,-0xcc,-_0x3c3933._0x638f61)](existsSync,_0x4b7df2)&&_0x180af7['eQXOs'](mkdirSync,_0x4b7df2,{'recursive':!![]}),writeFileSync(this['cacheFile'],JSON[_0x341891(_0x3c3933._0x81d49d,0x3de,_0x3c3933._0x33e1ca,0x3c9)]({'lastCheck':new Date()[_0x12cf2(-_0x3c3933._0x43f1dc,-0xc2,-0xd3,-_0x3c3933._0x1cfd55)+'g']()}),'utf8');}catch{}}}
@@ -1,74 +0,0 @@
1
- export interface Agent {
2
- description?: string;
3
- name: string;
4
- version: string;
5
- }
6
- export interface EffectiveAgentConfig {
7
- content: string;
8
- name: string;
9
- sources: {
10
- base?: string;
11
- org?: string;
12
- project?: string;
13
- role?: string;
14
- };
15
- version: string;
16
- }
17
- export interface AgentModification {
18
- agent_name: string;
19
- modified_at: string;
20
- new_content: string;
21
- old_content: string;
22
- }
23
- export interface Experiment {
24
- agent_name: string;
25
- control_config: string;
26
- created_at: string;
27
- slug: string;
28
- status: 'active' | 'completed' | 'deployed';
29
- variant_config: string;
30
- }
31
- export interface ExperimentMetrics {
32
- control_avg_cost: number;
33
- control_sessions: number;
34
- control_success_rate: number;
35
- slug: string;
36
- statistical_significance: number;
37
- variant_avg_cost: number;
38
- variant_sessions: number;
39
- variant_success_rate: number;
40
- }
41
- export interface Session {
42
- agent_name: string;
43
- agent_version: string;
44
- ended_at?: string;
45
- id: string;
46
- outcome: 'failure' | 'in_progress' | 'success';
47
- started_at: string;
48
- total_cost: number;
49
- total_turns: number;
50
- }
51
- export interface AuthDeviceResponse {
52
- device_code: string;
53
- expires_in: number;
54
- interval: number;
55
- user_code: string;
56
- verification_uri: string;
57
- }
58
- export interface AuthTokenResponse {
59
- access_token: string;
60
- expires_in: number;
61
- refresh_token?: string;
62
- token_type: 'Bearer';
63
- }
64
- export interface ApiError {
65
- error: string;
66
- message: string;
67
- status: number;
68
- }
69
- export interface User {
70
- email: string;
71
- id: string;
72
- organization: string;
73
- role: 'admin' | 'entry_level' | 'intermediate' | 'junior' | 'manager' | 'senior';
74
- }
package/dist/types/api.js DELETED
@@ -1 +0,0 @@
1
- export{};