@treasuredata/tdx 0.4.1 → 0.4.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 (104) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-api-client.d.ts +129 -1
  7. package/dist/client/llm-api-client.d.ts.map +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/llm-api-client.js.map +1 -1
  10. package/dist/client/rate-limiter.js +1 -1
  11. package/dist/client/td-api-client.js +1 -1
  12. package/dist/client/trino-api-client.js +1 -1
  13. package/dist/client/workflow-client.js +1 -1
  14. package/dist/commands/activations.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/context-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/llm-command.d.ts +18 -0
  25. package/dist/commands/llm-command.d.ts.map +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/llm-command.js.map +1 -1
  28. package/dist/commands/llm-proxy.js +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/segment-command.js +1 -1
  33. package/dist/commands/segment-create-command.js +1 -1
  34. package/dist/commands/segment-fields-command.js +1 -1
  35. package/dist/commands/segment-pwd-command.js +1 -1
  36. package/dist/commands/segment-update-command.js +1 -1
  37. package/dist/commands/segment-use-command.js +1 -1
  38. package/dist/commands/segments.js +1 -1
  39. package/dist/commands/show.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/use-command.js +1 -1
  42. package/dist/commands/workflow-command.js +1 -1
  43. package/dist/core/auth.js +1 -1
  44. package/dist/core/config.js +1 -1
  45. package/dist/core/credential-cache.js +1 -1
  46. package/dist/core/global-context.js +1 -1
  47. package/dist/core/keychain.d.ts +19 -0
  48. package/dist/core/keychain.d.ts.map +1 -1
  49. package/dist/core/keychain.js +1 -1
  50. package/dist/core/keychain.js.map +1 -1
  51. package/dist/core/profile.js +1 -1
  52. package/dist/core/project-config.js +1 -1
  53. package/dist/core/session.js +1 -1
  54. package/dist/index.js +1 -1
  55. package/dist/proxy/anthropic-adapter.js +1 -1
  56. package/dist/proxy/server.js +1 -1
  57. package/dist/proxy/session-cache.js +1 -1
  58. package/dist/sdk/api.js +1 -1
  59. package/dist/sdk/errors.js +1 -1
  60. package/dist/sdk/index.js +1 -1
  61. package/dist/sdk/job.js +1 -1
  62. package/dist/sdk/llm.d.ts +90 -1
  63. package/dist/sdk/llm.d.ts.map +1 -1
  64. package/dist/sdk/llm.js +1 -1
  65. package/dist/sdk/llm.js.map +1 -1
  66. package/dist/sdk/query.js +1 -1
  67. package/dist/sdk/segment.js +1 -1
  68. package/dist/sdk/workflow.js +1 -1
  69. package/dist/types/endpoints.js +1 -1
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/index.d.ts.map +1 -1
  72. package/dist/types/index.js +1 -1
  73. package/dist/types/llm.d.ts +241 -0
  74. package/dist/types/llm.d.ts.map +1 -1
  75. package/dist/utils/agent-ref-parser.js +1 -1
  76. package/dist/utils/chat-cache.js +1 -1
  77. package/dist/utils/colors.js +1 -1
  78. package/dist/utils/command-output.js +1 -1
  79. package/dist/utils/constants.js +1 -1
  80. package/dist/utils/file-permissions.js +1 -1
  81. package/dist/utils/format-detector.js +1 -1
  82. package/dist/utils/formatters.js +1 -1
  83. package/dist/utils/json-loader.js +1 -1
  84. package/dist/utils/llm-backup-utils.d.ts +37 -0
  85. package/dist/utils/llm-backup-utils.d.ts.map +1 -0
  86. package/dist/utils/llm-backup-utils.js +1 -0
  87. package/dist/utils/llm-backup-utils.js.map +1 -0
  88. package/dist/utils/model-aliases.js +1 -1
  89. package/dist/utils/option-validation.js +1 -1
  90. package/dist/utils/port.js +1 -1
  91. package/dist/utils/process.js +1 -1
  92. package/dist/utils/prompt.js +1 -1
  93. package/dist/utils/segment-path-parser.js +1 -1
  94. package/dist/utils/segment-ref-parser.js +1 -1
  95. package/dist/utils/spinner.js +1 -1
  96. package/dist/utils/sql-parser.js +1 -1
  97. package/dist/utils/sse-parser.js +1 -1
  98. package/dist/utils/string-utils.js +1 -1
  99. package/dist/utils/table-ref-parser.js +1 -1
  100. package/dist/utils/tdx-logger.js +1 -1
  101. package/dist/utils/tree-formatter.js +1 -1
  102. package/dist/utils/version-check.js +1 -1
  103. package/dist/utils/workflow-utils.js +1 -1
  104. package/package.json +1 -1
@@ -1 +1 @@
1
- const a72_0x4cfcc6=a72_0xec15;(function(_0x200f9a,_0x66bd8f){const _0x13cd1f=a72_0xec15,_0xee2cab=_0x200f9a();while(!![]){try{const _0x202e9d=-parseInt(_0x13cd1f(0x75))/0x1*(-parseInt(_0x13cd1f(0x76))/0x2)+-parseInt(_0x13cd1f(0x74))/0x3*(parseInt(_0x13cd1f(0x77))/0x4)+parseInt(_0x13cd1f(0x72))/0x5*(parseInt(_0x13cd1f(0x79))/0x6)+parseInt(_0x13cd1f(0x70))/0x7+parseInt(_0x13cd1f(0x78))/0x8+parseInt(_0x13cd1f(0x6d))/0x9+parseInt(_0x13cd1f(0x73))/0xa*(-parseInt(_0x13cd1f(0x71))/0xb);if(_0x202e9d===_0x66bd8f)break;else _0xee2cab['push'](_0xee2cab['shift']());}catch(_0x381bea){_0xee2cab['push'](_0xee2cab['shift']());}}}(a72_0x40fa,0x6cd63));function a72_0x40fa(){const _0x337135=['10jChqSv','181480YbJBJj','3141hqfHNQ','2031AJIfVu','126XtVuuj','220BmpPjS','1395480nMxaKZ','1058982FiIooo','toLowerCase','3238083iPtDwd','claude-4.5-sonnet','claude-4.5-haiku','6199249ymBYVh','847RuxkMh'];a72_0x40fa=function(){return _0x337135;};return a72_0x40fa();}function a72_0xec15(_0xbca766,_0x108cf5){const _0x40faaa=a72_0x40fa();return a72_0xec15=function(_0xec15bc,_0x24efe6){_0xec15bc=_0xec15bc-0x6d;let _0x2611fb=_0x40faaa[_0xec15bc];return _0x2611fb;},a72_0xec15(_0xbca766,_0x108cf5);}const MODEL_ALIASES={'haiku':a72_0x4cfcc6(0x6f),'sonnet':a72_0x4cfcc6(0x6e)};export function extractModelAlias(_0x2262ed){const _0x3e8240=_0x2262ed['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x3e8240)return _0x3e8240[0x1]['toLowerCase']();return _0x2262ed;}export function resolveModelAlias(_0xa3938a){const _0x37ca86=a72_0x4cfcc6;return MODEL_ALIASES[_0xa3938a[_0x37ca86(0x7a)]()]||_0xa3938a;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a73_0xd8b22f=a73_0x15be;(function(_0x257f69,_0x15985a){const _0xe504c8=a73_0x15be,_0x285767=_0x257f69();while(!![]){try{const _0x398a17=parseInt(_0xe504c8(0x1fe))/0x1*(parseInt(_0xe504c8(0x1f8))/0x2)+-parseInt(_0xe504c8(0x1f7))/0x3*(parseInt(_0xe504c8(0x1f4))/0x4)+-parseInt(_0xe504c8(0x1f5))/0x5+parseInt(_0xe504c8(0x1fa))/0x6+-parseInt(_0xe504c8(0x1fc))/0x7*(parseInt(_0xe504c8(0x1f6))/0x8)+-parseInt(_0xe504c8(0x1fd))/0x9+parseInt(_0xe504c8(0x1ff))/0xa*(parseInt(_0xe504c8(0x200))/0xb);if(_0x398a17===_0x15985a)break;else _0x285767['push'](_0x285767['shift']());}catch(_0x45daca){_0x285767['push'](_0x285767['shift']());}}}(a73_0x3c3b,0xb0812));const MODEL_ALIASES={'haiku':a73_0xd8b22f(0x1f9),'sonnet':a73_0xd8b22f(0x1fb)};export function extractModelAlias(_0x101db2){const _0x37855c=a73_0xd8b22f,_0x256f22=_0x101db2['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x256f22)return _0x256f22[0x1][_0x37855c(0x201)]();return _0x101db2;}function a73_0x3c3b(){const _0x465ee2=['3011832SGNolQ','373817brawgS','40zSciVg','3278242MdipVR','toLowerCase','3703204PQvDUz','367405mXblXu','32OiwuLB','3XsRwpe','2qxhJcG','claude-4.5-haiku','6098514hZGqtA','claude-4.5-sonnet','919506xOjxTU'];a73_0x3c3b=function(){return _0x465ee2;};return a73_0x3c3b();}export function resolveModelAlias(_0x344a02){const _0x5a9981=a73_0xd8b22f;return MODEL_ALIASES[_0x344a02[_0x5a9981(0x201)]()]||_0x344a02;}function a73_0x15be(_0x11e25f,_0x361603){const _0x3c3b33=a73_0x3c3b();return a73_0x15be=function(_0x15be40,_0xe54caf){_0x15be40=_0x15be40-0x1f4;let _0x1e9b2d=_0x3c3b33[_0x15be40];return _0x1e9b2d;},a73_0x15be(_0x11e25f,_0x361603);}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x4b6caf,_0x5303f3){const _0x36a8dc=a73_0x380d,_0x163a56=_0x4b6caf();while(!![]){try{const _0x32dc73=parseInt(_0x36a8dc(0x199))/0x1+parseInt(_0x36a8dc(0x19c))/0x2*(parseInt(_0x36a8dc(0x194))/0x3)+-parseInt(_0x36a8dc(0x19a))/0x4+parseInt(_0x36a8dc(0x193))/0x5*(parseInt(_0x36a8dc(0x18d))/0x6)+-parseInt(_0x36a8dc(0x18e))/0x7*(parseInt(_0x36a8dc(0x196))/0x8)+-parseInt(_0x36a8dc(0x198))/0x9*(-parseInt(_0x36a8dc(0x191))/0xa)+parseInt(_0x36a8dc(0x192))/0xb;if(_0x32dc73===_0x5303f3)break;else _0x163a56['push'](_0x163a56['shift']());}catch(_0x4549a8){_0x163a56['push'](_0x163a56['shift']());}}}(a73_0x1015,0xbb351));function a73_0x1015(){const _0x5828bb=['6083990XTnqJP','35075RRtYWA','3VsfqNR','.\x20Must\x20be\x20a\x20positive\x20integer.','8VfxBCW','number','32634rpFniB','177829ZIvMTx','5225864GIbbBB','Invalid\x20timeout\x20value:\x20','1597210oKqVRQ','.\x20Must\x20be\x20a\x20number.','348ZKaKCy','7595623AjTbYN','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','3370IiQtdb'];a73_0x1015=function(){return _0x5828bb;};return a73_0x1015();}function a73_0x380d(_0x502ce8,_0x1d9f46){const _0x1015f0=a73_0x1015();return a73_0x380d=function(_0x380dfe,_0x21def4){_0x380dfe=_0x380dfe-0x18d;let _0xb0406e=_0x1015f0[_0x380dfe];return _0xb0406e;},a73_0x380d(_0x502ce8,_0x1d9f46);}export function validateLimitOption(_0xcc4a55){const _0x4815a2=a73_0x380d;if(!Number['isInteger'](_0xcc4a55))return{'isValid':![],'error':_0x4815a2(0x190)+_0xcc4a55+_0x4815a2(0x18f)};if(_0xcc4a55<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0xcc4a55+_0x4815a2(0x195)};return{'isValid':!![],'value':_0xcc4a55};}export function validateTimeoutOption(_0x38ad7c,_0x2e599a=0x1e){const _0x4f550=a73_0x380d;if(_0x38ad7c===undefined)return{'isValid':!![],'value':_0x2e599a};const _0x5241ed=typeof _0x38ad7c===_0x4f550(0x197)?_0x38ad7c:parseFloat(_0x38ad7c);if(isNaN(_0x5241ed))return{'isValid':![],'error':_0x4f550(0x19b)+_0x38ad7c+_0x4f550(0x19d)};if(_0x5241ed<=0x0)return{'isValid':![],'error':_0x4f550(0x19b)+_0x5241ed+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x5241ed};}
1
+ function a74_0xa99d(_0x3648d8,_0x57d1ad){const _0x1428f9=a74_0x1428();return a74_0xa99d=function(_0xa99d0a,_0x527839){_0xa99d0a=_0xa99d0a-0xc0;let _0x578462=_0x1428f9[_0xa99d0a];return _0x578462;},a74_0xa99d(_0x3648d8,_0x57d1ad);}function a74_0x1428(){const _0x1d6e08=['Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','77dpwvpP','2595596fcmsys','33612BiOATe','640600xNDyUD','103174bNdFLH','34725WuJtDH','.\x20Must\x20be\x20a\x20positive\x20integer.','294RrsPSV','11bkYfok','isInteger','2428527OTCBSk','2552sqaEfk','288vVJXIE','91730LnXhLS'];a74_0x1428=function(){return _0x1d6e08;};return a74_0x1428();}(function(_0x22fa23,_0x4202ab){const _0x10fe5d=a74_0xa99d,_0x222fad=_0x22fa23();while(!![]){try{const _0x4762e4=parseInt(_0x10fe5d(0xc6))/0x1*(-parseInt(_0x10fe5d(0xc2))/0x2)+parseInt(_0x10fe5d(0xc8))/0x3+-parseInt(_0x10fe5d(0xcf))/0x4+parseInt(_0x10fe5d(0xc3))/0x5*(parseInt(_0x10fe5d(0xc5))/0x6)+parseInt(_0x10fe5d(0xce))/0x7*(parseInt(_0x10fe5d(0xc1))/0x8)+-parseInt(_0x10fe5d(0xca))/0x9*(-parseInt(_0x10fe5d(0xcb))/0xa)+parseInt(_0x10fe5d(0xc9))/0xb*(-parseInt(_0x10fe5d(0xc0))/0xc);if(_0x4762e4===_0x4202ab)break;else _0x222fad['push'](_0x222fad['shift']());}catch(_0x2c7972){_0x222fad['push'](_0x222fad['shift']());}}}(a74_0x1428,0x6fd03));export function validateLimitOption(_0x5dedf1){const _0x42e6a7=a74_0xa99d;if(!Number[_0x42e6a7(0xc7)](_0x5dedf1))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5dedf1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5dedf1<=0x0)return{'isValid':![],'error':_0x42e6a7(0xcc)+_0x5dedf1+_0x42e6a7(0xc4)};return{'isValid':!![],'value':_0x5dedf1};}export function validateTimeoutOption(_0x33d6a9,_0x1abfe0=0x1e){const _0x3c247f=a74_0xa99d;if(_0x33d6a9===undefined)return{'isValid':!![],'value':_0x1abfe0};const _0x4b30f0=typeof _0x33d6a9==='number'?_0x33d6a9:parseFloat(_0x33d6a9);if(isNaN(_0x4b30f0))return{'isValid':![],'error':_0x3c247f(0xcd)+_0x33d6a9+'.\x20Must\x20be\x20a\x20number.'};if(_0x4b30f0<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4b30f0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4b30f0};}
@@ -1 +1 @@
1
- function a74_0x1e3e(){const _0x49e8da=['0.0.0.0','code','close','232188fOHSda','No\x20available\x20port\x20found\x20between\x20','3723995qzxFTM','2239959OTVKUq','EADDRINUSE','\x20and\x20','16903017BvvBmw','once','246FxCaFS','6241864hmYcCa','3522QagFMg','error','119cXYzbg','listen','10EChvMa','2318456OPKjlg'];a74_0x1e3e=function(){return _0x49e8da;};return a74_0x1e3e();}(function(_0x3513ee,_0xba0980){const _0x222fa6=a74_0x2857,_0x381d96=_0x3513ee();while(!![]){try{const _0x3c1d9b=-parseInt(_0x222fa6(0x72))/0x1*(parseInt(_0x222fa6(0x74))/0x2)+-parseInt(_0x222fa6(0x6d))/0x3+parseInt(_0x222fa6(0x79))/0x4+-parseInt(_0x222fa6(0x6c))/0x5+-parseInt(_0x222fa6(0x6a))/0x6*(-parseInt(_0x222fa6(0x76))/0x7)+-parseInt(_0x222fa6(0x73))/0x8+-parseInt(_0x222fa6(0x70))/0x9*(-parseInt(_0x222fa6(0x78))/0xa);if(_0x3c1d9b===_0xba0980)break;else _0x381d96['push'](_0x381d96['shift']());}catch(_0x3f9001){_0x381d96['push'](_0x381d96['shift']());}}}(a74_0x1e3e,0x6444e));import{createServer}from'node:net';function a74_0x2857(_0x24c51c,_0x4f41bc){const _0x1e3e80=a74_0x1e3e();return a74_0x2857=function(_0x285709,_0x3b47bd){_0x285709=_0x285709-0x69;let _0x532806=_0x1e3e80[_0x285709];return _0x532806;},a74_0x2857(_0x24c51c,_0x4f41bc);}export async function isPortAvailable(_0x451012){return new Promise(_0x1548c9=>{const _0x36c428=a74_0x2857,_0x35f93e=createServer();_0x35f93e[_0x36c428(0x71)](_0x36c428(0x75),_0x4cd31c=>{const _0xb04c83=_0x36c428;_0x4cd31c[_0xb04c83(0x7b)]===_0xb04c83(0x6e)?_0x1548c9(![]):_0x1548c9(![]);}),_0x35f93e[_0x36c428(0x71)]('listening',()=>{const _0x3deae2=_0x36c428;_0x35f93e[_0x3deae2(0x69)](),_0x1548c9(!![]);}),_0x35f93e[_0x36c428(0x77)](_0x451012,_0x36c428(0x7a));});}export async function findAvailablePort(_0x57b95e=0xfa0,_0x389b42=0x64){const _0x30189a=a74_0x2857;for(let _0x382fbe=0x0;_0x382fbe<_0x389b42;_0x382fbe++){const _0x1ed049=_0x57b95e+_0x382fbe;if(await isPortAvailable(_0x1ed049))return _0x1ed049;}throw new Error(_0x30189a(0x6b)+_0x57b95e+_0x30189a(0x6f)+(_0x57b95e+_0x389b42-0x1));}
1
+ function a75_0xcf70(_0x5059ec,_0x51733b){const _0x2e6758=a75_0x2e67();return a75_0xcf70=function(_0xcf70e7,_0x474177){_0xcf70e7=_0xcf70e7-0xec;let _0x45bc86=_0x2e6758[_0xcf70e7];return _0x45bc86;},a75_0xcf70(_0x5059ec,_0x51733b);}(function(_0x25752a,_0x253847){const _0x240c14=a75_0xcf70,_0x44b60b=_0x25752a();while(!![]){try{const _0x2a234f=-parseInt(_0x240c14(0xf4))/0x1+-parseInt(_0x240c14(0xec))/0x2*(parseInt(_0x240c14(0xf7))/0x3)+parseInt(_0x240c14(0xf0))/0x4*(-parseInt(_0x240c14(0xf3))/0x5)+parseInt(_0x240c14(0xfd))/0x6+parseInt(_0x240c14(0xf8))/0x7*(-parseInt(_0x240c14(0xf9))/0x8)+parseInt(_0x240c14(0xf1))/0x9*(-parseInt(_0x240c14(0xef))/0xa)+parseInt(_0x240c14(0xf2))/0xb;if(_0x2a234f===_0x253847)break;else _0x44b60b['push'](_0x44b60b['shift']());}catch(_0x1970cb){_0x44b60b['push'](_0x44b60b['shift']());}}}(a75_0x2e67,0x39a31));import{createServer}from'node:net';export async function isPortAvailable(_0x128a30){return new Promise(_0x3b0244=>{const _0x5ab188=a75_0xcf70,_0x574783=createServer();_0x574783['once'](_0x5ab188(0xf5),_0x4c1ca1=>{const _0x11a955=_0x5ab188;_0x4c1ca1[_0x11a955(0xfb)]===_0x11a955(0xed)?_0x3b0244(![]):_0x3b0244(![]);}),_0x574783[_0x5ab188(0xfc)]('listening',()=>{const _0x15c254=_0x5ab188;_0x574783[_0x15c254(0xff)](),_0x3b0244(!![]);}),_0x574783[_0x5ab188(0xfa)](_0x128a30,_0x5ab188(0xee));});}function a75_0x2e67(){const _0x281f6d=['643779SXbzCU','5165754HuWMJM','5qZWAOd','269912klyJAA','error','No\x20available\x20port\x20found\x20between\x20','201fRpNNf','1491QTcqmY','4200HsMnWK','listen','code','once','2652054tveait','\x20and\x20','close','5474fJScSt','EADDRINUSE','0.0.0.0','10nBWLat','155580MjhSJv'];a75_0x2e67=function(){return _0x281f6d;};return a75_0x2e67();}export async function findAvailablePort(_0x4f7147=0xfa0,_0x479202=0x64){const _0x54617c=a75_0xcf70;for(let _0x3ae116=0x0;_0x3ae116<_0x479202;_0x3ae116++){const _0x463b6f=_0x4f7147+_0x3ae116;if(await isPortAvailable(_0x463b6f))return _0x463b6f;}throw new Error(_0x54617c(0xf6)+_0x4f7147+_0x54617c(0xfe)+(_0x4f7147+_0x479202-0x1));}
@@ -1 +1 @@
1
- const a75_0x1510b7=a75_0x111d;function a75_0x5aaa(){const _0xda795a=['ppid','trim','win32','pwsh','env','cursor','length','comm','platform','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','powershell','282564CuzxTh','DEBUG','utf-8','722640EvLIjV','kill','\x20on\x20POSIX:','810452EjKQDU','toLowerCase','pid','119218jDRHmI','48sauISZ','3xzGnyx','170QjybFl','635914XeRIjU','Found\x20ephemeral\x20shell\x20','\x20on\x20Windows:','csh','\x20-o\x20ppid=,comm=','split','fish','bash','has','35TjaZWn','ps\x20-p\x20','913542gNsajJ','\x20get\x20ParentProcessId,Name\x20/format:csv','ksh','error','filter','code','4452eLiCcS','zsh','xonsh',')\x20spawned\x20by\x20','1835222NVnksO'];a75_0x5aaa=function(){return _0xda795a;};return a75_0x5aaa();}(function(_0x2eef02,_0x139908){const _0x291414=a75_0x111d,_0x9a7df9=_0x2eef02();while(!![]){try{const _0x3f4458=-parseInt(_0x291414(0x129))/0x1+-parseInt(_0x291414(0x110))/0x2*(parseInt(_0x291414(0x127))/0x3)+parseInt(_0x291414(0x122))/0x4+parseInt(_0x291414(0x104))/0x5*(-parseInt(_0x291414(0x11f))/0x6)+-parseInt(_0x291414(0x106))/0x7*(parseInt(_0x291414(0x126))/0x8)+parseInt(_0x291414(0x11c))/0x9*(-parseInt(_0x291414(0x128))/0xa)+-parseInt(_0x291414(0x125))/0xb*(-parseInt(_0x291414(0x10c))/0xc);if(_0x3f4458===_0x139908)break;else _0x9a7df9['push'](_0x9a7df9['shift']());}catch(_0x55829e){_0x9a7df9['push'](_0x9a7df9['shift']());}}}(a75_0x5aaa,0x7c8ba));function a75_0x111d(_0x5c69cf,_0x3568db){const _0x5aaaec=a75_0x5aaa();return a75_0x111d=function(_0x111d25,_0xa5165a){_0x111d25=_0x111d25-0xfc;let _0x23d58a=_0x5aaaec[_0x111d25];return _0x23d58a;},a75_0x111d(_0x5c69cf,_0x3568db);}import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a75_0x1510b7(0x102),a75_0x1510b7(0x10d),'sh',a75_0x1510b7(0x101),a75_0x1510b7(0x108),'tcsh',a75_0x1510b7(0xfe),'dash',a75_0x1510b7(0x114),a75_0x1510b7(0x11b),'nu','ion','elvish',a75_0x1510b7(0x10e)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a75_0x1510b7(0x10b),a75_0x1510b7(0x116)]);function getProcessInfoWindows(_0x4ff0b7){const _0xa5a7f7=a75_0x1510b7;try{const _0x2cf913=execSync('wmic\x20process\x20where\x20ProcessId='+_0x4ff0b7+_0xa5a7f7(0x107),{'encoding':_0xa5a7f7(0x11e),'windowsHide':!![]})[_0xa5a7f7(0x112)](),_0xa8f38a=_0x2cf913['split']('\x0a')[_0xa5a7f7(0x10a)](_0x299915=>_0x299915['trim']());if(_0xa8f38a['length']<0x2)return null;const _0x1ee6e9=_0xa8f38a[_0xa8f38a[_0xa5a7f7(0x117)]-0x1][_0xa5a7f7(0x100)](',');if(_0x1ee6e9[_0xa5a7f7(0x117)]<0x3)return null;const _0x11a767=_0x1ee6e9[0x1]?.[_0xa5a7f7(0x112)]()||'',_0xf101d3=parseInt(_0x1ee6e9[0x2]?.['trim']()||'0',0xa);if(isNaN(_0xf101d3)||!_0x11a767)return null;return{'pid':_0x4ff0b7,'ppid':_0xf101d3,'comm':_0x11a767['replace'](/\.exe$/i,'')};}catch(_0x328337){return process['env'][_0xa5a7f7(0x11d)]&&console['error'](_0xa5a7f7(0x11a)+_0x4ff0b7+_0xa5a7f7(0xfd),_0x328337),null;}}function getProcessInfoPosix(_0x3be86c){const _0x61f7bd=a75_0x1510b7;try{const _0x56cb06=execSync(_0x61f7bd(0x105)+_0x3be86c+_0x61f7bd(0xff),{'encoding':_0x61f7bd(0x11e)})[_0x61f7bd(0x112)](),[_0x36bbc4,..._0x5b0f3d]=_0x56cb06[_0x61f7bd(0x100)](/\s+/),_0x330321=parseInt(_0x36bbc4,0xa),_0x352602=_0x5b0f3d['join']('\x20');if(isNaN(_0x330321))return null;return{'pid':_0x3be86c,'ppid':_0x330321,'comm':_0x352602};}catch(_0x3ad596){return process[_0x61f7bd(0x115)]['DEBUG']&&console['error'](_0x61f7bd(0x11a)+_0x3be86c+_0x61f7bd(0x121),_0x3ad596),null;}}function getProcessInfo(_0x21219b){const _0x26d0f6=a75_0x1510b7;if(process[_0x26d0f6(0x119)]===_0x26d0f6(0x113))return getProcessInfoWindows(_0x21219b);return getProcessInfoPosix(_0x21219b);}function getBasename(_0x2fad15){const _0x440505=a75_0x1510b7;return _0x2fad15['replace'](/^-/,'')[_0x440505(0x100)]('/')['pop']()?.[_0x440505(0x123)]()||'';}function isShell(_0x15ef16){return SHELL_NAMES['has'](getBasename(_0x15ef16));}function isEphemeralShellSpawner(_0x1f44ed){const _0x2e44ff=a75_0x1510b7;return EPHEMERAL_SHELL_SPAWNERS[_0x2e44ff(0x103)](getBasename(_0x1f44ed));}let cachedShellPID;function findShellPID(){const _0x336d06=a75_0x1510b7;let _0x21c382=process[_0x336d06(0x111)];const _0xdb7ae4=0xa;let _0x47197f=0x0;while(_0x47197f<_0xdb7ae4){const _0x2f88bf=getProcessInfo(_0x21c382);if(!_0x2f88bf){process[_0x336d06(0x115)]['DEBUG']&&console['error']('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x21c382+',\x20using\x20fallback');break;}if(isShell(_0x2f88bf[_0x336d06(0x118)])){const _0x59a27d=getProcessInfo(_0x2f88bf[_0x336d06(0x111)]);if(_0x59a27d&&isEphemeralShellSpawner(_0x59a27d[_0x336d06(0x118)])){process['env'][_0x336d06(0x11d)]&&console['error'](_0x336d06(0xfc)+_0x2f88bf[_0x336d06(0x124)]+'\x20('+_0x2f88bf[_0x336d06(0x118)]+_0x336d06(0x10f)+_0x59a27d['comm']+',\x20continuing\x20up');_0x21c382=_0x2f88bf[_0x336d06(0x111)],_0x47197f++;continue;}return _0x2f88bf[_0x336d06(0x124)];}if(_0x2f88bf[_0x336d06(0x111)]===0x0||_0x2f88bf['ppid']===0x1){if(isShell(_0x2f88bf[_0x336d06(0x118)]))return _0x2f88bf[_0x336d06(0x124)];break;}_0x21c382=_0x2f88bf[_0x336d06(0x111)],_0x47197f++;}return process[_0x336d06(0x115)][_0x336d06(0x11d)]&&console[_0x336d06(0x109)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1b37d5){const _0x54cb91=a75_0x1510b7;try{return process[_0x54cb91(0x120)](_0x1b37d5,0x0),!![];}catch{return![];}}
1
+ const a76_0x1530db=a76_0x7afa;(function(_0x554dc6,_0x2dea1a){const _0x68ec60=a76_0x7afa,_0x515cf9=_0x554dc6();while(!![]){try{const _0x549acf=-parseInt(_0x68ec60(0x218))/0x1+-parseInt(_0x68ec60(0x213))/0x2+parseInt(_0x68ec60(0x20c))/0x3*(parseInt(_0x68ec60(0x1f4))/0x4)+parseInt(_0x68ec60(0x1f3))/0x5+-parseInt(_0x68ec60(0x216))/0x6+-parseInt(_0x68ec60(0x211))/0x7+parseInt(_0x68ec60(0x1f7))/0x8;if(_0x549acf===_0x2dea1a)break;else _0x515cf9['push'](_0x515cf9['shift']());}catch(_0x52f6d0){_0x515cf9['push'](_0x515cf9['shift']());}}}(a76_0x3ddb,0x1fc7d));function a76_0x3ddb(){const _0x28714d=['32812vWUzXl','Found\x20ephemeral\x20shell\x20','code','3950608gRdrXg','replace',')\x20spawned\x20by\x20','trim','comm','error','toLowerCase','length','pop','DEBUG','csh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ps\x20-p\x20','pwsh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','\x20-o\x20ppid=,comm=','powershell',',\x20continuing\x20up','utf-8','ppid','join','21OFcNyK','fish','env','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','claude','1458499UNmKQq','pid','87252cFgOel','win32','wmic\x20process\x20where\x20ProcessId=','686064MnwCfX','split','136586plZESr','\x20on\x20POSIX:','\x20get\x20ParentProcessId,Name\x20/format:csv','cursor','\x20on\x20Windows:','409195pNHuoW'];a76_0x3ddb=function(){return _0x28714d;};return a76_0x3ddb();}import{execSync}from'node:child_process';function a76_0x7afa(_0x1f30c2,_0x21207a){const _0x3ddb31=a76_0x3ddb();return a76_0x7afa=function(_0x7afaf7,_0x32c31f){_0x7afaf7=_0x7afaf7-0x1ef;let _0x4b75a0=_0x3ddb31[_0x7afaf7];return _0x4b75a0;},a76_0x7afa(_0x1f30c2,_0x21207a);}const SHELL_NAMES=new Set(['bash','zsh','sh',a76_0x1530db(0x20d),'ksh','tcsh',a76_0x1530db(0x201),'dash',a76_0x1530db(0x204),a76_0x1530db(0x207),'nu','ion','elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a76_0x1530db(0x210),a76_0x1530db(0x1f6),a76_0x1530db(0x1f1)]);function getProcessInfoWindows(_0x76a871){const _0x1d8496=a76_0x1530db;try{const _0x2cf9c4=execSync(_0x1d8496(0x215)+_0x76a871+_0x1d8496(0x1f0),{'encoding':_0x1d8496(0x209),'windowsHide':!![]})['trim'](),_0x24fcf=_0x2cf9c4['split']('\x0a')['filter'](_0x53db72=>_0x53db72[_0x1d8496(0x1fa)]());if(_0x24fcf['length']<0x2)return null;const _0x519075=_0x24fcf[_0x24fcf[_0x1d8496(0x1fe)]-0x1][_0x1d8496(0x217)](',');if(_0x519075[_0x1d8496(0x1fe)]<0x3)return null;const _0x3716d2=_0x519075[0x1]?.[_0x1d8496(0x1fa)]()||'',_0x1e4f6f=parseInt(_0x519075[0x2]?.[_0x1d8496(0x1fa)]()||'0',0xa);if(isNaN(_0x1e4f6f)||!_0x3716d2)return null;return{'pid':_0x76a871,'ppid':_0x1e4f6f,'comm':_0x3716d2['replace'](/\.exe$/i,'')};}catch(_0x481a9c){return process[_0x1d8496(0x20e)][_0x1d8496(0x200)]&&console['error'](_0x1d8496(0x205)+_0x76a871+_0x1d8496(0x1f2),_0x481a9c),null;}}function getProcessInfoPosix(_0x5cb4be){const _0x5a668b=a76_0x1530db;try{const _0x434610=execSync(_0x5a668b(0x203)+_0x5cb4be+_0x5a668b(0x206),{'encoding':_0x5a668b(0x209)})[_0x5a668b(0x1fa)](),[_0x4427d9,..._0x1680c4]=_0x434610[_0x5a668b(0x217)](/\s+/),_0x3e708e=parseInt(_0x4427d9,0xa),_0x2b25d6=_0x1680c4[_0x5a668b(0x20b)]('\x20');if(isNaN(_0x3e708e))return null;return{'pid':_0x5cb4be,'ppid':_0x3e708e,'comm':_0x2b25d6};}catch(_0x5bd5de){return process[_0x5a668b(0x20e)][_0x5a668b(0x200)]&&console[_0x5a668b(0x1fc)](_0x5a668b(0x205)+_0x5cb4be+_0x5a668b(0x1ef),_0x5bd5de),null;}}function getProcessInfo(_0x5dc602){const _0x26c214=a76_0x1530db;if(process['platform']===_0x26c214(0x214))return getProcessInfoWindows(_0x5dc602);return getProcessInfoPosix(_0x5dc602);}function getBasename(_0x2c1dfa){const _0x14f6a8=a76_0x1530db;return _0x2c1dfa[_0x14f6a8(0x1f8)](/^-/,'')[_0x14f6a8(0x217)]('/')[_0x14f6a8(0x1ff)]()?.[_0x14f6a8(0x1fd)]()||'';}function isShell(_0x2e980f){return SHELL_NAMES['has'](getBasename(_0x2e980f));}function isEphemeralShellSpawner(_0x36bff0){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x36bff0));}let cachedShellPID;function findShellPID(){const _0x9c7709=a76_0x1530db;let _0x5115fd=process[_0x9c7709(0x20a)];const _0x5410cc=0xa;let _0x50d860=0x0;while(_0x50d860<_0x5410cc){const _0x59aaab=getProcessInfo(_0x5115fd);if(!_0x59aaab){process[_0x9c7709(0x20e)][_0x9c7709(0x200)]&&console[_0x9c7709(0x1fc)](_0x9c7709(0x202)+_0x5115fd+',\x20using\x20fallback');break;}if(isShell(_0x59aaab[_0x9c7709(0x1fb)])){const _0x3236a8=getProcessInfo(_0x59aaab[_0x9c7709(0x20a)]);if(_0x3236a8&&isEphemeralShellSpawner(_0x3236a8[_0x9c7709(0x1fb)])){process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x1f5)+_0x59aaab[_0x9c7709(0x212)]+'\x20('+_0x59aaab['comm']+_0x9c7709(0x1f9)+_0x3236a8['comm']+_0x9c7709(0x208));_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;continue;}return _0x59aaab[_0x9c7709(0x212)];}if(_0x59aaab[_0x9c7709(0x20a)]===0x0||_0x59aaab[_0x9c7709(0x20a)]===0x1){if(isShell(_0x59aaab[_0x9c7709(0x1fb)]))return _0x59aaab['pid'];break;}_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;}return process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x20f)),process[_0x9c7709(0x20a)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4487fc){try{return process['kill'](_0x4487fc,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5f5874,_0x2b27a7){const _0x52d233=a76_0x3c22,_0x576743=_0x5f5874();while(!![]){try{const _0x442ae6=parseInt(_0x52d233(0x17c))/0x1*(parseInt(_0x52d233(0x187))/0x2)+-parseInt(_0x52d233(0x185))/0x3*(parseInt(_0x52d233(0x182))/0x4)+-parseInt(_0x52d233(0x17e))/0x5+-parseInt(_0x52d233(0x177))/0x6*(parseInt(_0x52d233(0x178))/0x7)+-parseInt(_0x52d233(0x17a))/0x8*(-parseInt(_0x52d233(0x17f))/0x9)+parseInt(_0x52d233(0x17b))/0xa+parseInt(_0x52d233(0x17d))/0xb*(-parseInt(_0x52d233(0x184))/0xc);if(_0x442ae6===_0x2b27a7)break;else _0x576743['push'](_0x576743['shift']());}catch(_0x3bd208){_0x576743['push'](_0x576743['shift']());}}}(a76_0x3e80,0xdc434));function a76_0x3c22(_0x1df49b,_0x40f394){const _0x3e801d=a76_0x3e80();return a76_0x3c22=function(_0x3c2298,_0x129798){_0x3c2298=_0x3c2298-0x177;let _0x3defd5=_0x3e801d[_0x3c2298];return _0x3defd5;},a76_0x3c22(_0x1df49b,_0x40f394);}import*as a76_0xe244d0 from'readline';function a76_0x3e80(){const _0x5390b7=['close','8754SnHksF','3297jOktaq','stdin','1216rDXqAG','14232420VtVQdq','202175AzKcAc','1925132PHOuOc','4973070TZtqvr','87750WGbTDI','stdout','\x20(y/N):\x20','40BrMicV','toLowerCase','108fbhWyV','48408raxgvi','question','14ZCUkCy','createInterface'];a76_0x3e80=function(){return _0x5390b7;};return a76_0x3e80();}export async function confirm(_0x5f4cb9){const _0x4f0f31=a76_0x3c22,_0x40da64=a76_0xe244d0[_0x4f0f31(0x188)]({'input':process[_0x4f0f31(0x179)],'output':process[_0x4f0f31(0x180)]});return new Promise(_0xaeb40f=>{const _0x1c526b=_0x4f0f31;_0x40da64[_0x1c526b(0x186)](_0x5f4cb9+_0x1c526b(0x181),_0x504a47=>{const _0x238cf0=_0x1c526b;_0x40da64[_0x238cf0(0x189)](),_0xaeb40f(_0x504a47['toLowerCase']()==='y'||_0x504a47[_0x238cf0(0x183)]()==='yes');});});}
1
+ (function(_0x5ea140,_0x5d8b01){const _0x3b9e14=a77_0x1dc5,_0x9df374=_0x5ea140();while(!![]){try{const _0x1e8c7d=parseInt(_0x3b9e14(0x8a))/0x1+parseInt(_0x3b9e14(0x83))/0x2*(parseInt(_0x3b9e14(0x88))/0x3)+-parseInt(_0x3b9e14(0x8b))/0x4*(-parseInt(_0x3b9e14(0x7d))/0x5)+-parseInt(_0x3b9e14(0x7f))/0x6+-parseInt(_0x3b9e14(0x86))/0x7*(-parseInt(_0x3b9e14(0x87))/0x8)+-parseInt(_0x3b9e14(0x85))/0x9+-parseInt(_0x3b9e14(0x81))/0xa;if(_0x1e8c7d===_0x5d8b01)break;else _0x9df374['push'](_0x9df374['shift']());}catch(_0x45a357){_0x9df374['push'](_0x9df374['shift']());}}}(a77_0x4b6d,0xafd5d));function a77_0x4b6d(){const _0x6f8ff9=['toLowerCase','stdin','240lAIoIQ','question','4187736JvQaRi','stdout','9561610xlkizw','createInterface','7726RjvEwF','\x20(y/N):\x20','558279iEmayt','14ctQmsf','567096qqiRcY','783NElcBJ','close','163248EoEMer','93592hRQYQb','yes'];a77_0x4b6d=function(){return _0x6f8ff9;};return a77_0x4b6d();}import*as a77_0x52cfce from'readline';function a77_0x1dc5(_0x4a083e,_0xd136e1){const _0x4b6d06=a77_0x4b6d();return a77_0x1dc5=function(_0x1dc5d8,_0x297356){_0x1dc5d8=_0x1dc5d8-0x7b;let _0x1ded66=_0x4b6d06[_0x1dc5d8];return _0x1ded66;},a77_0x1dc5(_0x4a083e,_0xd136e1);}export async function confirm(_0x503d06){const _0x5ca113=a77_0x1dc5,_0x26201f=a77_0x52cfce[_0x5ca113(0x82)]({'input':process[_0x5ca113(0x7c)],'output':process[_0x5ca113(0x80)]});return new Promise(_0x38930d=>{const _0x1dc52d=_0x5ca113;_0x26201f[_0x1dc52d(0x7e)](_0x503d06+_0x1dc52d(0x84),_0x7e45ec=>{const _0x27c1db=_0x1dc52d;_0x26201f[_0x27c1db(0x89)](),_0x38930d(_0x7e45ec[_0x27c1db(0x7b)]()==='y'||_0x7e45ec[_0x27c1db(0x7b)]()===_0x27c1db(0x8c));});});}
@@ -1 +1 @@
1
- (function(_0x3344b2,_0x6d8397){const _0x166c09=a77_0x25c5,_0x4a5df6=_0x3344b2();while(!![]){try{const _0x283979=parseInt(_0x166c09(0x94))/0x1+-parseInt(_0x166c09(0x82))/0x2+-parseInt(_0x166c09(0x7d))/0x3*(parseInt(_0x166c09(0x7a))/0x4)+parseInt(_0x166c09(0x80))/0x5*(-parseInt(_0x166c09(0x8d))/0x6)+parseInt(_0x166c09(0x79))/0x7*(parseInt(_0x166c09(0x83))/0x8)+parseInt(_0x166c09(0x7e))/0x9*(parseInt(_0x166c09(0x85))/0xa)+parseInt(_0x166c09(0x77))/0xb;if(_0x283979===_0x6d8397)break;else _0x4a5df6['push'](_0x4a5df6['shift']());}catch(_0x291f5c){_0x4a5df6['push'](_0x4a5df6['shift']());}}}(a77_0x553a,0x94ef2));export function parsePath(_0xd89845){const _0x2a67d6=a77_0x25c5;if(!_0xd89845||_0xd89845[_0x2a67d6(0x91)]()==='')throw new Error(_0x2a67d6(0x90));const _0x589e0d=_0xd89845[_0x2a67d6(0x91)]();if(_0x589e0d==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xd89845};const _0x34f5c8=_0x589e0d[_0x2a67d6(0x88)]('/')?_0x589e0d['substring'](0x1):_0x589e0d,_0x3d8b1b=_0x34f5c8[_0x2a67d6(0x95)]('/')['filter'](_0x12ccd1=>_0x12ccd1!=='');if(_0x3d8b1b[_0x2a67d6(0x84)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x427ad6=_0x589e0d[_0x2a67d6(0x88)]('/')||!isRelativePathSegment(_0x3d8b1b[0x0]);for(const _0x179db8 of _0x3d8b1b){validatePathSegment(_0x179db8);}return{'segments':_0x3d8b1b,'isAbsolute':_0x427ad6,'raw':_0xd89845};}function a77_0x25c5(_0x131a09,_0x501e00){const _0x553ae6=a77_0x553a();return a77_0x25c5=function(_0x25c55f,_0xa6f095){_0x25c55f=_0x25c55f-0x77;let _0x18919b=_0x553ae6[_0x25c55f];return _0x18919b;},a77_0x25c5(_0x131a09,_0x501e00);}function isRelativePathSegment(_0x484b3e){return _0x484b3e==='.'||_0x484b3e==='..';}function a77_0x553a(){const _0x5898c5=['25336927RkHFsT','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','5341OHpFse','92TsIpqq','test','join','134991RlESeH','18NWRwwH','segments','1013955adcRhs','isAbsolute','1501446XsBlPk','6728SGDSTQ','length','456590eNEfNh','Path\x20segment\x20cannot\x20be\x20empty','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','startsWith','pop','Relative\x20path\x20cannot\x20be\x20empty','Cannot\x20navigate\x20above\x20root','push','36pSRaZB','slice','Cannot\x20split\x20empty\x20path','Path\x20cannot\x20be\x20empty','trim','Path\x20attempts\x20to\x20navigate\x20above\x20root','raw','576076MYaaKP','split'];a77_0x553a=function(){return _0x5898c5;};return a77_0x553a();}function validatePathSegment(_0x40cfdd){const _0x486c67=a77_0x25c5;if(_0x40cfdd==='')throw new Error(_0x486c67(0x86));if(_0x40cfdd==='.'||_0x40cfdd==='..')return;if(/[\x00-\x1F\x7F]/[_0x486c67(0x7b)](_0x40cfdd))throw new Error(_0x486c67(0x87)+_0x40cfdd);if(_0x40cfdd!==_0x40cfdd['trim']()){}}export function validatePath(_0x5850b5){const _0x18c61e=a77_0x25c5;if(_0x5850b5[_0x18c61e(0x7f)][_0x18c61e(0x84)]===0x0&&!_0x5850b5[_0x18c61e(0x81)])throw new Error(_0x18c61e(0x8a));if(_0x5850b5[_0x18c61e(0x81)]){if(_0x5850b5[_0x18c61e(0x7f)][0x0]==='..')throw new Error(_0x18c61e(0x78));let _0x31f779=0x0;for(const _0x44138e of _0x5850b5[_0x18c61e(0x7f)]){if(_0x44138e==='..'){if(_0x31f779===0x0)throw new Error(_0x18c61e(0x92));_0x31f779--;}else _0x44138e!=='.'&&_0x31f779++;}}}export function joinPaths(_0x36a4d3,_0x53d731){const _0x5f5212=a77_0x25c5;if(!_0x36a4d3||_0x36a4d3==='/')return _0x53d731;if(!_0x53d731||_0x53d731==='.')return _0x36a4d3;if(_0x53d731[_0x5f5212(0x88)]('/'))return _0x53d731;const _0x3d56cb=parsePath(_0x36a4d3),_0x217586=parsePath(_0x53d731),_0x53c7a7=[..._0x3d56cb['segments']];for(const _0x3277b9 of _0x217586[_0x5f5212(0x7f)]){if(_0x3277b9==='.')continue;else{if(_0x3277b9==='..'){if(_0x53c7a7[_0x5f5212(0x84)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x53c7a7[_0x5f5212(0x89)]();}else _0x53c7a7[_0x5f5212(0x8c)](_0x3277b9);}}const _0xbde776=_0x53c7a7[_0x5f5212(0x7c)]('/');return _0x3d56cb[_0x5f5212(0x93)][_0x5f5212(0x88)]('/')?'/'+_0xbde776:_0xbde776;}export function normalizePath(_0xe3e707){const _0x583b48=a77_0x25c5,_0x4ac736=parsePath(_0xe3e707),_0x22d5f7=[];for(const _0x338b6f of _0x4ac736[_0x583b48(0x7f)]){if(_0x338b6f==='.')continue;else{if(_0x338b6f==='..'){if(_0x22d5f7[_0x583b48(0x84)]===0x0){if(_0x4ac736[_0x583b48(0x81)])throw new Error(_0x583b48(0x8b));_0x22d5f7[_0x583b48(0x8c)]('..');}else _0x22d5f7[_0x22d5f7[_0x583b48(0x84)]-0x1]==='..'?_0x22d5f7[_0x583b48(0x8c)]('..'):_0x22d5f7['pop']();}else _0x22d5f7[_0x583b48(0x8c)](_0x338b6f);}}if(_0x22d5f7[_0x583b48(0x84)]===0x0)return _0x4ac736[_0x583b48(0x81)]?'/':'.';const _0x46bc73=_0x22d5f7['join']('/');return _0x4ac736['raw'][_0x583b48(0x88)]('/')?'/'+_0x46bc73:_0x46bc73;}export function getParentPath(_0xb76d3){const _0x3070d6=a77_0x25c5,_0x7ee910=parsePath(_0xb76d3);if(_0x7ee910['segments']['length']<=0x1)return'/';const _0xaf5e6=_0x7ee910[_0x3070d6(0x7f)]['slice'](0x0,-0x1)[_0x3070d6(0x7c)]('/');return _0x7ee910[_0x3070d6(0x93)][_0x3070d6(0x88)]('/')?'/'+_0xaf5e6:_0xaf5e6;}export function getBaseName(_0x454d98){const _0x36b308=a77_0x25c5,_0x5c8b9f=parsePath(_0x454d98);return _0x5c8b9f[_0x36b308(0x7f)][_0x5c8b9f[_0x36b308(0x7f)][_0x36b308(0x84)]-0x1]||'';}export function isChildPath(_0x3a6d60,_0x3b21a9){const _0x1cfd63=a77_0x25c5,_0x3ca81d=parsePath(_0x3a6d60),_0x1d12cb=parsePath(_0x3b21a9);if(_0x3ca81d[_0x1cfd63(0x7f)][_0x1cfd63(0x84)]<=_0x1d12cb[_0x1cfd63(0x7f)]['length'])return![];for(let _0x337aec=0x0;_0x337aec<_0x1d12cb[_0x1cfd63(0x7f)][_0x1cfd63(0x84)];_0x337aec++){if(_0x3ca81d[_0x1cfd63(0x7f)][_0x337aec]!==_0x1d12cb['segments'][_0x337aec])return![];}return!![];}export function splitPath(_0x24934f){const _0x33e76a=a77_0x25c5,_0x38de8d=parsePath(_0x24934f);if(_0x38de8d[_0x33e76a(0x7f)]['length']===0x0)throw new Error(_0x33e76a(0x8f));if(_0x38de8d[_0x33e76a(0x7f)][_0x33e76a(0x84)]===0x1)return{'parent':_0x38de8d[_0x33e76a(0x7f)][0x0]};return{'parent':_0x38de8d[_0x33e76a(0x7f)][0x0],'child':_0x38de8d[_0x33e76a(0x7f)][_0x33e76a(0x8e)](0x1)['join']('/')};}
1
+ (function(_0x1b4ef4,_0x2b296b){const _0x441a08=a78_0x3714,_0x269c47=_0x1b4ef4();while(!![]){try{const _0x544e00=parseInt(_0x441a08(0xbc))/0x1*(parseInt(_0x441a08(0xca))/0x2)+-parseInt(_0x441a08(0xc6))/0x3*(parseInt(_0x441a08(0xce))/0x4)+-parseInt(_0x441a08(0xc9))/0x5*(-parseInt(_0x441a08(0xc2))/0x6)+-parseInt(_0x441a08(0xc4))/0x7+-parseInt(_0x441a08(0xb6))/0x8*(-parseInt(_0x441a08(0xbb))/0x9)+parseInt(_0x441a08(0xcf))/0xa*(parseInt(_0x441a08(0xbf))/0xb)+-parseInt(_0x441a08(0xcc))/0xc;if(_0x544e00===_0x2b296b)break;else _0x269c47['push'](_0x269c47['shift']());}catch(_0x37748a){_0x269c47['push'](_0x269c47['shift']());}}}(a78_0x3494,0xb40a8));export function parsePath(_0x11c8be){const _0x592802=a78_0x3714;if(!_0x11c8be||_0x11c8be['trim']()==='')throw new Error(_0x592802(0xc0));const _0x2b0e37=_0x11c8be[_0x592802(0xc5)]();if(_0x2b0e37==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x11c8be};const _0x4b26fc=_0x2b0e37[_0x592802(0xd1)]('/')?_0x2b0e37[_0x592802(0xc7)](0x1):_0x2b0e37,_0x5a0dd4=_0x4b26fc['split']('/')[_0x592802(0xcd)](_0x2cc00f=>_0x2cc00f!=='');if(_0x5a0dd4[_0x592802(0xb7)]===0x0)throw new Error(_0x592802(0xd3));const _0xcd58a9=_0x2b0e37[_0x592802(0xd1)]('/')||!isRelativePathSegment(_0x5a0dd4[0x0]);for(const _0x52b999 of _0x5a0dd4){validatePathSegment(_0x52b999);}return{'segments':_0x5a0dd4,'isAbsolute':_0xcd58a9,'raw':_0x11c8be};}function isRelativePathSegment(_0x26d058){return _0x26d058==='.'||_0x26d058==='..';}function validatePathSegment(_0x5b63fa){const _0x4d9695=a78_0x3714;if(_0x5b63fa==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x5b63fa==='.'||_0x5b63fa==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x5b63fa))throw new Error(_0x4d9695(0xbd)+_0x5b63fa);if(_0x5b63fa!==_0x5b63fa['trim']()){}}export function validatePath(_0x239d04){const _0x186dd3=a78_0x3714;if(_0x239d04[_0x186dd3(0xb9)][_0x186dd3(0xb7)]===0x0&&!_0x239d04['isAbsolute'])throw new Error(_0x186dd3(0xb8));if(_0x239d04[_0x186dd3(0xd0)]){if(_0x239d04[_0x186dd3(0xb9)][0x0]==='..')throw new Error(_0x186dd3(0xcb));let _0x5fb85b=0x0;for(const _0x128edc of _0x239d04[_0x186dd3(0xb9)]){if(_0x128edc==='..'){if(_0x5fb85b===0x0)throw new Error(_0x186dd3(0xc3));_0x5fb85b--;}else _0x128edc!=='.'&&_0x5fb85b++;}}}export function joinPaths(_0x13f2f3,_0x17af06){const _0x24b192=a78_0x3714;if(!_0x13f2f3||_0x13f2f3==='/')return _0x17af06;if(!_0x17af06||_0x17af06==='.')return _0x13f2f3;if(_0x17af06[_0x24b192(0xd1)]('/'))return _0x17af06;const _0xf8724a=parsePath(_0x13f2f3),_0x38a5a8=parsePath(_0x17af06),_0x134bf8=[..._0xf8724a[_0x24b192(0xb9)]];for(const _0xa279be of _0x38a5a8['segments']){if(_0xa279be==='.')continue;else{if(_0xa279be==='..'){if(_0x134bf8[_0x24b192(0xb7)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x134bf8[_0x24b192(0xc8)]();}else _0x134bf8[_0x24b192(0xd2)](_0xa279be);}}const _0x34aa6e=_0x134bf8[_0x24b192(0xbe)]('/');return _0xf8724a['raw'][_0x24b192(0xd1)]('/')?'/'+_0x34aa6e:_0x34aa6e;}function a78_0x3714(_0x146b96,_0x4de482){const _0x3494c0=a78_0x3494();return a78_0x3714=function(_0x3714d2,_0x27cb4c){_0x3714d2=_0x3714d2-0xb6;let _0xb82b68=_0x3494c0[_0x3714d2];return _0xb82b68;},a78_0x3714(_0x146b96,_0x4de482);}export function normalizePath(_0x4c8fe2){const _0x3554dc=a78_0x3714,_0x51e6b4=parsePath(_0x4c8fe2),_0x39937c=[];for(const _0x2b4ff7 of _0x51e6b4[_0x3554dc(0xb9)]){if(_0x2b4ff7==='.')continue;else{if(_0x2b4ff7==='..'){if(_0x39937c[_0x3554dc(0xb7)]===0x0){if(_0x51e6b4[_0x3554dc(0xd0)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x39937c[_0x3554dc(0xd2)]('..');}else _0x39937c[_0x39937c[_0x3554dc(0xb7)]-0x1]==='..'?_0x39937c[_0x3554dc(0xd2)]('..'):_0x39937c[_0x3554dc(0xc8)]();}else _0x39937c[_0x3554dc(0xd2)](_0x2b4ff7);}}if(_0x39937c['length']===0x0)return _0x51e6b4[_0x3554dc(0xd0)]?'/':'.';const _0x472ba5=_0x39937c[_0x3554dc(0xbe)]('/');return _0x51e6b4[_0x3554dc(0xba)][_0x3554dc(0xd1)]('/')?'/'+_0x472ba5:_0x472ba5;}export function getParentPath(_0x155636){const _0x5c8797=a78_0x3714,_0x1cfd48=parsePath(_0x155636);if(_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xb7)]<=0x1)return'/';const _0x3f4dfa=_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xc1)](0x0,-0x1)[_0x5c8797(0xbe)]('/');return _0x1cfd48[_0x5c8797(0xba)][_0x5c8797(0xd1)]('/')?'/'+_0x3f4dfa:_0x3f4dfa;}export function getBaseName(_0x4a6728){const _0x1ce1b1=a78_0x3714,_0x561eb5=parsePath(_0x4a6728);return _0x561eb5['segments'][_0x561eb5[_0x1ce1b1(0xb9)][_0x1ce1b1(0xb7)]-0x1]||'';}export function isChildPath(_0x328ac3,_0x326992){const _0x442979=a78_0x3714,_0x272ca7=parsePath(_0x328ac3),_0x42b63b=parsePath(_0x326992);if(_0x272ca7[_0x442979(0xb9)][_0x442979(0xb7)]<=_0x42b63b[_0x442979(0xb9)][_0x442979(0xb7)])return![];for(let _0x2227a8=0x0;_0x2227a8<_0x42b63b['segments']['length'];_0x2227a8++){if(_0x272ca7[_0x442979(0xb9)][_0x2227a8]!==_0x42b63b[_0x442979(0xb9)][_0x2227a8])return![];}return!![];}export function splitPath(_0x121f55){const _0x5c3b40=a78_0x3714,_0x1dab55=parsePath(_0x121f55);if(_0x1dab55['segments']['length']===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xb7)]===0x1)return{'parent':_0x1dab55['segments'][0x0]};return{'parent':_0x1dab55['segments'][0x0],'child':_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xc1)](0x1)[_0x5c3b40(0xbe)]('/')};}function a78_0x3494(){const _0x1a2803=['182439UUCVAV','7273XBGrNl','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','join','55jZnGhr','Path\x20cannot\x20be\x20empty','slice','6lhClZz','Path\x20attempts\x20to\x20navigate\x20above\x20root','3778362ypzpRQ','trim','2140491ykgVNa','substring','pop','7278935MPXFDW','50hKpLTu','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','25563888gwWUFd','filter','4CrqAlK','2209990EcXAzb','isAbsolute','startsWith','push','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','544gPEasY','length','Relative\x20path\x20cannot\x20be\x20empty','segments','raw'];a78_0x3494=function(){return _0x1a2803;};return a78_0x3494();}
@@ -1 +1 @@
1
- function a78_0x3c2c(){const _0x1e9a6d=['Invalid\x20segment\x20reference\x20format:\x20','4BsMqEl','substring','3847014RwJRBk','3802296FVJffq','118xEgjfG','734574mIUlgg','.\x20Parent\x20name\x20cannot\x20be\x20empty','45hxKMjZ','255128Ddupan','280qTMglW','4632410VEyveD','11iGlApG','indexOf','.\x20Child\x20name\x20cannot\x20be\x20empty','5263dVuVFM','2109740JtPgnJ'];a78_0x3c2c=function(){return _0x1e9a6d;};return a78_0x3c2c();}(function(_0x56bd5c,_0x4aae4a){const _0x5610f5=a78_0x9f03,_0xb04c3a=_0x56bd5c();while(!![]){try{const _0x3052b9=-parseInt(_0x5610f5(0xee))/0x1*(-parseInt(_0x5610f5(0xf5))/0x2)+-parseInt(_0x5610f5(0xf3))/0x3+-parseInt(_0x5610f5(0xf1))/0x4*(parseInt(_0x5610f5(0xea))/0x5)+parseInt(_0x5610f5(0xf6))/0x6+-parseInt(_0x5610f5(0xe9))/0x7*(-parseInt(_0x5610f5(0xf9))/0x8)+-parseInt(_0x5610f5(0xf8))/0x9*(-parseInt(_0x5610f5(0xef))/0xa)+-parseInt(_0x5610f5(0xeb))/0xb*(-parseInt(_0x5610f5(0xf4))/0xc);if(_0x3052b9===_0x4aae4a)break;else _0xb04c3a['push'](_0xb04c3a['shift']());}catch(_0x5f461e){_0xb04c3a['push'](_0xb04c3a['shift']());}}}(a78_0x3c2c,0xd4c46));function a78_0x9f03(_0x2f066b,_0x11f586){const _0x3c2cf2=a78_0x3c2c();return a78_0x9f03=function(_0x9f0358,_0x6595c7){_0x9f0358=_0x9f0358-0xe9;let _0x43626e=_0x3c2cf2[_0x9f0358];return _0x43626e;},a78_0x9f03(_0x2f066b,_0x11f586);}export function parseSegmentRef(_0x4cee53){const _0x8beea5=a78_0x9f03,_0xc7efbd=_0x4cee53[_0x8beea5(0xec)]('/');if(_0xc7efbd===-0x1)return{'parentId':_0x4cee53};if(_0xc7efbd===0x0)throw new Error(_0x8beea5(0xf0)+_0x4cee53+_0x8beea5(0xf7));const _0x54941d=_0x4cee53[_0x8beea5(0xf2)](0x0,_0xc7efbd),_0x56fb76=_0x4cee53['substring'](_0xc7efbd+0x1);if(_0x56fb76==='')throw new Error(_0x8beea5(0xf0)+_0x4cee53+_0x8beea5(0xed));return{'parentId':_0x54941d,'childId':_0x56fb76};}
1
+ (function(_0x5c130d,_0x4196a9){const _0x26eb0b=a79_0x5d9f,_0x428ad1=_0x5c130d();while(!![]){try{const _0x2d1de1=-parseInt(_0x26eb0b(0x1d3))/0x1*(parseInt(_0x26eb0b(0x1ce))/0x2)+-parseInt(_0x26eb0b(0x1c7))/0x3*(-parseInt(_0x26eb0b(0x1cf))/0x4)+parseInt(_0x26eb0b(0x1cb))/0x5+-parseInt(_0x26eb0b(0x1cd))/0x6+-parseInt(_0x26eb0b(0x1d2))/0x7+-parseInt(_0x26eb0b(0x1cc))/0x8*(-parseInt(_0x26eb0b(0x1d1))/0x9)+parseInt(_0x26eb0b(0x1c5))/0xa;if(_0x2d1de1===_0x4196a9)break;else _0x428ad1['push'](_0x428ad1['shift']());}catch(_0x58301f){_0x428ad1['push'](_0x428ad1['shift']());}}}(a79_0x55c7,0xf0223));function a79_0x5d9f(_0x4d5405,_0x5e05bf){const _0x55c7ce=a79_0x55c7();return a79_0x5d9f=function(_0x5d9f98,_0xedce44){_0x5d9f98=_0x5d9f98-0x1c5;let _0x19758f=_0x55c7ce[_0x5d9f98];return _0x19758f;},a79_0x5d9f(_0x4d5405,_0x5e05bf);}function a79_0x55c7(){const _0x3bbee0=['indexOf','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','9600615NjMdKk','2872xvzJvX','6108264bkjyAR','20814vZereW','8Vuhhyq','Invalid\x20segment\x20reference\x20format:\x20','4806SVHjYz','9254063jtuGuo','127szqFub','15700280FtziAz','.\x20Parent\x20name\x20cannot\x20be\x20empty','1445208yblWzu'];a79_0x55c7=function(){return _0x3bbee0;};return a79_0x55c7();}export function parseSegmentRef(_0x5da5d8){const _0xeefb68=a79_0x5d9f,_0x149b8f=_0x5da5d8[_0xeefb68(0x1c8)]('/');if(_0x149b8f===-0x1)return{'parentId':_0x5da5d8};if(_0x149b8f===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5da5d8+_0xeefb68(0x1c6));const _0x5a065d=_0x5da5d8[_0xeefb68(0x1ca)](0x0,_0x149b8f),_0x438d22=_0x5da5d8[_0xeefb68(0x1ca)](_0x149b8f+0x1);if(_0x438d22==='')throw new Error(_0xeefb68(0x1d0)+_0x5da5d8+_0xeefb68(0x1c9));return{'parentId':_0x5a065d,'childId':_0x438d22};}
@@ -1 +1 @@
1
- (function(_0x44f336,_0x31695b){const _0x43638d=a79_0x1671,_0x3ffb3d=_0x44f336();while(!![]){try{const _0x48628e=-parseInt(_0x43638d(0x6a))/0x1+parseInt(_0x43638d(0x80))/0x2+parseInt(_0x43638d(0x78))/0x3*(-parseInt(_0x43638d(0x7a))/0x4)+parseInt(_0x43638d(0x7d))/0x5*(parseInt(_0x43638d(0x6b))/0x6)+-parseInt(_0x43638d(0x7c))/0x7+parseInt(_0x43638d(0x70))/0x8*(-parseInt(_0x43638d(0x73))/0x9)+-parseInt(_0x43638d(0x6f))/0xa*(-parseInt(_0x43638d(0x7e))/0xb);if(_0x48628e===_0x31695b)break;else _0x3ffb3d['push'](_0x3ffb3d['shift']());}catch(_0x7b2016){_0x3ffb3d['push'](_0x3ffb3d['shift']());}}}(a79_0x5abb,0x3f4b2));import a79_0x24f75b from'ora';export function createCommandSpinner(_0x518435,_0x222d6c={}){const _0x1fb592=a79_0x1671,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x222d6c;return a79_0x24f75b({'text':_0x518435,'color':_0x1fb592(0x72),'isEnabled':forceEnabled||process[_0x1fb592(0x82)][_0x1fb592(0x7b)]&&!verbose});}function a79_0x1671(_0x2ba785,_0x3f5570){const _0x5abb4d=a79_0x5abb();return a79_0x1671=function(_0x1671fc,_0x11a44c){_0x1671fc=_0x1671fc-0x6a;let _0x4ea9cb=_0x5abb4d[_0x1671fc];return _0x4ea9cb;},a79_0x1671(_0x2ba785,_0x3f5570);}function a79_0x5abb(){const _0xf5524a=['extra','cyan','18099jnhrnO','start','toFixed','\x20[Job\x20ID:\x20','text','3309LbiPpl','clock','1588MAvbVG','isTTY','1435406AwNVQq','25eEzIRr','2483261CnNDgY','phase','368086hcDqVX','jobId','stdout','54305FQtwYQ','43644CPXVoV','floor','replace','now','40VfPYvC','664pqNqTA'];a79_0x5abb=function(){return _0xf5524a;};return a79_0x5abb();}export async function withSpinner(_0xbf7d62,_0x1ea4f0,_0x41360f={}){const _0xe349f4=a79_0x1671,_0x230a43=_0x41360f[_0xe349f4(0x79)]??(()=>Date[_0xe349f4(0x6e)]()),_0x4b1d72=createCommandSpinner(_0xbf7d62,_0x41360f);_0x4b1d72[_0xe349f4(0x74)]();const _0x5c6f5d=_0x230a43();try{const _0x1937df=await _0x1ea4f0(),_0x37f881=_0x230a43()-_0x5c6f5d;return _0x4b1d72['stop'](),{'data':_0x1937df,'elapsedMs':_0x37f881};}catch(_0x22dbbc){_0x4b1d72['stop']();throw _0x22dbbc;}}export async function withQuerySpinner(_0x49d5b5,_0x3f879f,_0x35a453={}){const _0x424e18=a79_0x1671,_0xae50dc=_0x35a453[_0x424e18(0x79)]??(()=>Date[_0x424e18(0x6e)]()),_0x1ccf52=_0x35a453['intervalFactory']??setInterval,_0x59baf5=createCommandSpinner(_0x49d5b5,_0x35a453);_0x59baf5[_0x424e18(0x74)]();const _0x2a8f6a=_0xae50dc(),_0x529950=_0x49d5b5[_0x424e18(0x6d)]('...',''),_0x4ef5d8={},_0x20a1f7=()=>{const _0x25b0aa=_0x424e18;if(!_0x59baf5['isSpinning'])return;const _0x1de40d=_0xae50dc()-_0x2a8f6a,_0x319f90=formatElapsed(_0x1de40d),_0x14f0af=_0x4ef5d8['phase']??_0x529950,_0x4355cd=_0x4ef5d8[_0x25b0aa(0x81)]?_0x25b0aa(0x76)+_0x4ef5d8[_0x25b0aa(0x81)]+']':'',_0x19d8f8=_0x4ef5d8[_0x25b0aa(0x71)]?'\x20'+_0x4ef5d8[_0x25b0aa(0x71)]:'';_0x59baf5[_0x25b0aa(0x77)]=_0x14f0af+'\x20'+_0x319f90+_0x19d8f8+_0x4355cd;},_0x35ddf1=_0x1ccf52(()=>{_0x20a1f7();},0x3e8),_0x2ad12f={'setPhase':_0x10b21e=>{const _0x55acc6=_0x424e18;_0x4ef5d8[_0x55acc6(0x7f)]=_0x10b21e,_0x20a1f7();},'setJobId':_0x3d4a3d=>{_0x4ef5d8['jobId']=_0x3d4a3d,_0x20a1f7();},'setExtra':_0x2ada99=>{const _0x3f50c0=_0x424e18;_0x4ef5d8[_0x3f50c0(0x71)]=_0x2ada99,_0x20a1f7();}};_0x20a1f7();try{const _0x5a772d=await _0x3f879f(_0x2ad12f),_0x41daee=_0xae50dc()-_0x2a8f6a;return{'data':_0x5a772d,'elapsedMs':_0x41daee};}finally{clearInterval(_0x35ddf1),_0x59baf5['stop']();}}export function formatElapsed(_0x47ce1c){const _0x185e7f=a79_0x1671,_0x372d0e=Math['floor'](_0x47ce1c/0x3e8);if(_0x372d0e<0x3c)return(_0x47ce1c/0x3e8)[_0x185e7f(0x75)](0x1)+'s';const _0x56ca91=Math[_0x185e7f(0x6c)](_0x372d0e/0x3c),_0x3ed66d=_0x372d0e%0x3c;if(_0x56ca91<0x3c)return _0x56ca91+'m\x20'+_0x3ed66d+'s';const _0x40ce25=Math['floor'](_0x56ca91/0x3c),_0xf20176=_0x56ca91%0x3c;return _0x40ce25+'h\x20'+_0xf20176+'m';}
1
+ function a80_0x21bd(_0x41a4bb,_0x106bc8){const _0x3841b4=a80_0x3841();return a80_0x21bd=function(_0x21bd80,_0x52976d){_0x21bd80=_0x21bd80-0x1de;let _0x3eef1e=_0x3841b4[_0x21bd80];return _0x3eef1e;},a80_0x21bd(_0x41a4bb,_0x106bc8);}(function(_0x293437,_0x5df41e){const _0x1f4a99=a80_0x21bd,_0x487cee=_0x293437();while(!![]){try{const _0x1376dd=parseInt(_0x1f4a99(0x1f7))/0x1+parseInt(_0x1f4a99(0x1f3))/0x2+-parseInt(_0x1f4a99(0x1df))/0x3*(parseInt(_0x1f4a99(0x1ed))/0x4)+-parseInt(_0x1f4a99(0x1ec))/0x5*(-parseInt(_0x1f4a99(0x1e9))/0x6)+parseInt(_0x1f4a99(0x1e3))/0x7*(-parseInt(_0x1f4a99(0x1ee))/0x8)+parseInt(_0x1f4a99(0x1de))/0x9*(parseInt(_0x1f4a99(0x1f8))/0xa)+-parseInt(_0x1f4a99(0x1e0))/0xb;if(_0x1376dd===_0x5df41e)break;else _0x487cee['push'](_0x487cee['shift']());}catch(_0x3cea03){_0x487cee['push'](_0x487cee['shift']());}}}(a80_0x3841,0x2674f));function a80_0x3841(){const _0x267fe6=['27loSKjZ','1487805yPDtww','isTTY','jobId','220339vMotOa','stop','toFixed','start','text','stdout','1236kEQDWp','\x20[Job\x20ID:\x20','cyan','1465rerBAQ','91108aMqJfj','8QuYqsM','intervalFactory','replace','clock','floor','329748qbUdCw','isSpinning','phase','now','78792fyHvIz','2252200ONrThw','extra','...','9vEqKkQ'];a80_0x3841=function(){return _0x267fe6;};return a80_0x3841();}import a80_0x2a76d6 from'ora';export function createCommandSpinner(_0x2b208e,_0x19b097={}){const _0x155507=a80_0x21bd,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x19b097;return a80_0x2a76d6({'text':_0x2b208e,'color':_0x155507(0x1eb),'isEnabled':forceEnabled||process[_0x155507(0x1e8)][_0x155507(0x1e1)]&&!verbose});}export async function withSpinner(_0x2c4e32,_0x1f8002,_0x4ada12={}){const _0x567815=a80_0x21bd,_0x11fdbc=_0x4ada12['clock']??(()=>Date[_0x567815(0x1f6)]()),_0x16df55=createCommandSpinner(_0x2c4e32,_0x4ada12);_0x16df55[_0x567815(0x1e6)]();const _0x5f4e72=_0x11fdbc();try{const _0xebac31=await _0x1f8002(),_0x1c071c=_0x11fdbc()-_0x5f4e72;return _0x16df55['stop'](),{'data':_0xebac31,'elapsedMs':_0x1c071c};}catch(_0x2200cd){_0x16df55[_0x567815(0x1e4)]();throw _0x2200cd;}}export async function withQuerySpinner(_0xf3fe75,_0x416a98,_0x3b4c4a={}){const _0x55bbb2=a80_0x21bd,_0x1ed10a=_0x3b4c4a[_0x55bbb2(0x1f1)]??(()=>Date[_0x55bbb2(0x1f6)]()),_0x3b76b6=_0x3b4c4a[_0x55bbb2(0x1ef)]??setInterval,_0x4c5334=createCommandSpinner(_0xf3fe75,_0x3b4c4a);_0x4c5334[_0x55bbb2(0x1e6)]();const _0x2f2e15=_0x1ed10a(),_0x3dc786=_0xf3fe75[_0x55bbb2(0x1f0)](_0x55bbb2(0x1fa),''),_0x47ac13={},_0x4fd5c3=()=>{const _0x5d477e=_0x55bbb2;if(!_0x4c5334[_0x5d477e(0x1f4)])return;const _0x30fd78=_0x1ed10a()-_0x2f2e15,_0x412a8a=formatElapsed(_0x30fd78),_0xf7a75a=_0x47ac13[_0x5d477e(0x1f5)]??_0x3dc786,_0x12e077=_0x47ac13['jobId']?_0x5d477e(0x1ea)+_0x47ac13[_0x5d477e(0x1e2)]+']':'',_0x4cd945=_0x47ac13[_0x5d477e(0x1f9)]?'\x20'+_0x47ac13['extra']:'';_0x4c5334[_0x5d477e(0x1e7)]=_0xf7a75a+'\x20'+_0x412a8a+_0x4cd945+_0x12e077;},_0x4fcfbf=_0x3b76b6(()=>{_0x4fd5c3();},0x3e8),_0x263db4={'setPhase':_0x162a26=>{const _0x285d12=_0x55bbb2;_0x47ac13[_0x285d12(0x1f5)]=_0x162a26,_0x4fd5c3();},'setJobId':_0x4c9da9=>{const _0x41787f=_0x55bbb2;_0x47ac13[_0x41787f(0x1e2)]=_0x4c9da9,_0x4fd5c3();},'setExtra':_0x37ecdd=>{const _0x58c6fa=_0x55bbb2;_0x47ac13[_0x58c6fa(0x1f9)]=_0x37ecdd,_0x4fd5c3();}};_0x4fd5c3();try{const _0x18d350=await _0x416a98(_0x263db4),_0xcfcb27=_0x1ed10a()-_0x2f2e15;return{'data':_0x18d350,'elapsedMs':_0xcfcb27};}finally{clearInterval(_0x4fcfbf),_0x4c5334[_0x55bbb2(0x1e4)]();}}export function formatElapsed(_0x30771a){const _0x1f3e57=a80_0x21bd,_0x21c4e9=Math[_0x1f3e57(0x1f2)](_0x30771a/0x3e8);if(_0x21c4e9<0x3c)return(_0x30771a/0x3e8)[_0x1f3e57(0x1e5)](0x1)+'s';const _0x48f991=Math['floor'](_0x21c4e9/0x3c),_0x19a1cb=_0x21c4e9%0x3c;if(_0x48f991<0x3c)return _0x48f991+'m\x20'+_0x19a1cb+'s';const _0x3ae56c=Math['floor'](_0x48f991/0x3c),_0x599f8a=_0x48f991%0x3c;return _0x3ae56c+'h\x20'+_0x599f8a+'m';}
@@ -1 +1 @@
1
- (function(_0x21a32d,_0x22a263){const _0x3abe84=a80_0x34e2,_0x2e1b34=_0x21a32d();while(!![]){try{const _0x38858d=-parseInt(_0x3abe84(0x7f))/0x1*(-parseInt(_0x3abe84(0x6c))/0x2)+-parseInt(_0x3abe84(0x7d))/0x3+-parseInt(_0x3abe84(0x6f))/0x4*(-parseInt(_0x3abe84(0x83))/0x5)+-parseInt(_0x3abe84(0x85))/0x6+-parseInt(_0x3abe84(0x87))/0x7*(parseInt(_0x3abe84(0x70))/0x8)+-parseInt(_0x3abe84(0x82))/0x9*(-parseInt(_0x3abe84(0x75))/0xa)+-parseInt(_0x3abe84(0x72))/0xb*(-parseInt(_0x3abe84(0x79))/0xc);if(_0x38858d===_0x22a263)break;else _0x2e1b34['push'](_0x2e1b34['shift']());}catch(_0xee63b2){_0x2e1b34['push'](_0x2e1b34['shift']());}}}(a80_0x4d8f,0x8ca2b));import{readFileSync}from'fs';export function stripSqlComments(_0x1880ac){const _0x4f1747=a80_0x34e2;let _0x339f7c=_0x1880ac[_0x4f1747(0x84)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x339f7c=_0x339f7c[_0x4f1747(0x84)](/--.*$/gm,''),_0x339f7c[_0x4f1747(0x77)]();}function a80_0x4d8f(){const _0x1f320f=['6357022CVkwfg','15322MDInmm','ENOENT','\x27\x20not\x20found','188cjGrXm','8nPwPUf','\x27:\x20','55eUEOgu','length','Content\x20contains\x20no\x20SQL\x20statements','5335090nUtqDB','code','trim','Error\x20reading\x20file\x20\x27','3238476ldndHy','toLowerCase','message','Permission\x20denied\x20reading\x20file\x20\x27','664470vuKCCk','File\x20\x27','47KKgspd','utf-8','push','18vNiqQz','200TxggGb','replace','6435906ctGSSU','map'];a80_0x4d8f=function(){return _0x1f320f;};return a80_0x4d8f();}function isEscaped(_0x17f3d6,_0x5c51d7){let _0x3b2a6b=0x0;for(let _0x1c8f99=_0x5c51d7-0x1;_0x1c8f99>=0x0&&_0x17f3d6[_0x1c8f99]==='\x5c';_0x1c8f99--){_0x3b2a6b++;}return _0x3b2a6b%0x2===0x1;}export function splitSqlStatements(_0x1a6215){const _0x587596=a80_0x34e2,_0x4928cd=stripSqlComments(_0x1a6215);if(!_0x4928cd)throw new Error(_0x587596(0x74));const _0x229975=[];let _0x512ad3='',_0x50dc5d=![],_0x3bd95d=![],_0x577071=![];for(let _0x3db265=0x0;_0x3db265<_0x1a6215['length'];_0x3db265++){const _0x1228fe=_0x1a6215[_0x3db265];if(_0x1228fe==='\x27'&&!isEscaped(_0x1a6215,_0x3db265)&&!_0x3bd95d&&!_0x577071)_0x50dc5d=!_0x50dc5d;else{if(_0x1228fe==='\x22'&&!isEscaped(_0x1a6215,_0x3db265)&&!_0x50dc5d&&!_0x577071)_0x3bd95d=!_0x3bd95d;else _0x1228fe==='`'&&!isEscaped(_0x1a6215,_0x3db265)&&!_0x50dc5d&&!_0x3bd95d&&(_0x577071=!_0x577071);}if(_0x1228fe===';'&&!_0x50dc5d&&!_0x3bd95d&&!_0x577071){const _0x50bebf=_0x512ad3[_0x587596(0x77)]();_0x50bebf&&_0x229975[_0x587596(0x81)](_0x50bebf),_0x512ad3='';}else _0x512ad3+=_0x1228fe;}const _0x1bd8b7=_0x512ad3[_0x587596(0x77)]();_0x1bd8b7&&_0x229975[_0x587596(0x81)](_0x1bd8b7);const _0x359034=_0x229975[_0x587596(0x86)](_0x2e6fca=>_0x2e6fca[_0x587596(0x77)]())['filter'](_0x8291e4=>{const _0x305e92=_0x587596,_0x293411=stripSqlComments(_0x8291e4);return _0x293411[_0x305e92(0x73)]>0x0;});if(_0x359034[_0x587596(0x73)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x359034;}function a80_0x34e2(_0x2ad9cd,_0x50bad4){const _0x4d8ff8=a80_0x4d8f();return a80_0x34e2=function(_0x34e275,_0x2c19ba){_0x34e275=_0x34e275-0x6c;let _0x79a398=_0x4d8ff8[_0x34e275];return _0x79a398;},a80_0x34e2(_0x2ad9cd,_0x50bad4);}export function readFileContent(_0x1e5f72){const _0x5bc359=a80_0x34e2;try{return readFileSync(_0x1e5f72,_0x5bc359(0x80));}catch(_0x8390f6){const _0x3bf5ea=_0x8390f6[_0x5bc359(0x76)];if(_0x3bf5ea===_0x5bc359(0x6d))throw new Error(_0x5bc359(0x7e)+_0x1e5f72+_0x5bc359(0x6e));else{if(_0x3bf5ea==='EACCES')throw new Error(_0x5bc359(0x7c)+_0x1e5f72+'\x27');else throw new Error(_0x5bc359(0x78)+_0x1e5f72+_0x5bc359(0x71)+_0x8390f6[_0x5bc359(0x7b)]);}}}export function readSqlStatementsFromFile(_0x1b7695){const _0x2d7b23=a80_0x34e2,_0x2adf91=readFileContent(_0x1b7695);try{return splitSqlStatements(_0x2adf91);}catch(_0x45793d){throw new Error(_0x2d7b23(0x7e)+_0x1b7695+'\x27\x20'+_0x45793d[_0x2d7b23(0x7b)][_0x2d7b23(0x7a)]());}}
1
+ (function(_0xb4fa79,_0x26255f){const _0x3ef57f=a81_0x57b8,_0x1febf8=_0xb4fa79();while(!![]){try{const _0x4e3a9d=parseInt(_0x3ef57f(0xb9))/0x1*(-parseInt(_0x3ef57f(0xc1))/0x2)+parseInt(_0x3ef57f(0xce))/0x3+-parseInt(_0x3ef57f(0xd0))/0x4+-parseInt(_0x3ef57f(0xc8))/0x5*(parseInt(_0x3ef57f(0xcf))/0x6)+-parseInt(_0x3ef57f(0xcb))/0x7+parseInt(_0x3ef57f(0xc3))/0x8*(-parseInt(_0x3ef57f(0xbd))/0x9)+parseInt(_0x3ef57f(0xba))/0xa*(parseInt(_0x3ef57f(0xc2))/0xb);if(_0x4e3a9d===_0x26255f)break;else _0x1febf8['push'](_0x1febf8['shift']());}catch(_0xe5c7e3){_0x1febf8['push'](_0x1febf8['shift']());}}}(a81_0x3496,0x7b3fd));function a81_0x57b8(_0x2eca0f,_0xef19f6){const _0x349638=a81_0x3496();return a81_0x57b8=function(_0x57b8c1,_0x4aef4a){_0x57b8c1=_0x57b8c1-0xb9;let _0x5235ff=_0x349638[_0x57b8c1];return _0x5235ff;},a81_0x57b8(_0x2eca0f,_0xef19f6);}import{readFileSync}from'fs';export function stripSqlComments(_0x26059b){const _0x44955e=a81_0x57b8;let _0x4b9f3d=_0x26059b[_0x44955e(0xcd)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4b9f3d=_0x4b9f3d[_0x44955e(0xcd)](/--.*$/gm,''),_0x4b9f3d['trim']();}function a81_0x3496(){const _0x3a5986=['168364tLUSfD','length','replace','2940168RgqjHp','5007282JPjglY','1750492YnCbvY','utf-8','731190YkJyxU','40GqiGCk','ENOENT','trim','82539rbwKbH','toLowerCase','map','message','2wllFxG','6008706ZbjJjY','552TgBLmm','filter','EACCES','push','Error\x20reading\x20file\x20\x27','5eVDQwy','Content\x20contains\x20no\x20SQL\x20statements','code'];a81_0x3496=function(){return _0x3a5986;};return a81_0x3496();}function isEscaped(_0x216b1f,_0x51b310){let _0x5f4e3a=0x0;for(let _0x433af1=_0x51b310-0x1;_0x433af1>=0x0&&_0x216b1f[_0x433af1]==='\x5c';_0x433af1--){_0x5f4e3a++;}return _0x5f4e3a%0x2===0x1;}export function splitSqlStatements(_0x1753b7){const _0x1b5f7c=a81_0x57b8,_0x591f6b=stripSqlComments(_0x1753b7);if(!_0x591f6b)throw new Error(_0x1b5f7c(0xc9));const _0x3db1ba=[];let _0x15e651='',_0x3b276d=![],_0x429a3b=![],_0x3c5a5e=![];for(let _0xdeaac1=0x0;_0xdeaac1<_0x1753b7['length'];_0xdeaac1++){const _0x5bf5cb=_0x1753b7[_0xdeaac1];if(_0x5bf5cb==='\x27'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x429a3b&&!_0x3c5a5e)_0x3b276d=!_0x3b276d;else{if(_0x5bf5cb==='\x22'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x3c5a5e)_0x429a3b=!_0x429a3b;else _0x5bf5cb==='`'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x429a3b&&(_0x3c5a5e=!_0x3c5a5e);}if(_0x5bf5cb===';'&&!_0x3b276d&&!_0x429a3b&&!_0x3c5a5e){const _0x1b4615=_0x15e651['trim']();_0x1b4615&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x1b4615),_0x15e651='';}else _0x15e651+=_0x5bf5cb;}const _0x30157c=_0x15e651[_0x1b5f7c(0xbc)]();_0x30157c&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x30157c);const _0xac13a3=_0x3db1ba[_0x1b5f7c(0xbf)](_0x105dbd=>_0x105dbd[_0x1b5f7c(0xbc)]())[_0x1b5f7c(0xc4)](_0x1894ce=>{const _0x38e309=_0x1b5f7c,_0x39ab04=stripSqlComments(_0x1894ce);return _0x39ab04[_0x38e309(0xcc)]>0x0;});if(_0xac13a3[_0x1b5f7c(0xcc)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0xac13a3;}export function readFileContent(_0x446770){const _0x46b00e=a81_0x57b8;try{return readFileSync(_0x446770,_0x46b00e(0xd1));}catch(_0x5e5574){const _0x357502=_0x5e5574[_0x46b00e(0xca)];if(_0x357502===_0x46b00e(0xbb))throw new Error('File\x20\x27'+_0x446770+'\x27\x20not\x20found');else{if(_0x357502===_0x46b00e(0xc5))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x446770+'\x27');else throw new Error(_0x46b00e(0xc7)+_0x446770+'\x27:\x20'+_0x5e5574[_0x46b00e(0xc0)]);}}}export function readSqlStatementsFromFile(_0x56d911){const _0x52fbb5=a81_0x57b8,_0x353d1c=readFileContent(_0x56d911);try{return splitSqlStatements(_0x353d1c);}catch(_0x15515c){throw new Error('File\x20\x27'+_0x56d911+'\x27\x20'+_0x15515c[_0x52fbb5(0xc0)][_0x52fbb5(0xbe)]());}}
@@ -1 +1 @@
1
- function a81_0x4fed(_0x2d7a87,_0xee2dac){const _0x1b028e=a81_0x1b02();return a81_0x4fed=function(_0x4fedd3,_0x22ee6c){_0x4fedd3=_0x4fedd3-0x1ee;let _0x211240=_0x1b028e[_0x4fedd3];return _0x211240;},a81_0x4fed(_0x2d7a87,_0xee2dac);}(function(_0x521a71,_0x167013){const _0x572eef=a81_0x4fed,_0x378dd9=_0x521a71();while(!![]){try{const _0x2074b8=parseInt(_0x572eef(0x1f5))/0x1+parseInt(_0x572eef(0x1fd))/0x2+-parseInt(_0x572eef(0x204))/0x3*(-parseInt(_0x572eef(0x200))/0x4)+-parseInt(_0x572eef(0x1ee))/0x5*(-parseInt(_0x572eef(0x1f1))/0x6)+parseInt(_0x572eef(0x1f6))/0x7*(-parseInt(_0x572eef(0x1fb))/0x8)+-parseInt(_0x572eef(0x1f0))/0x9+parseInt(_0x572eef(0x1fa))/0xa;if(_0x2074b8===_0x167013)break;else _0x378dd9['push'](_0x378dd9['shift']());}catch(_0x352ec9){_0x378dd9['push'](_0x378dd9['shift']());}}}(a81_0x1b02,0x4e4cc));function a81_0x1b02(){const _0x50d7a7=['6PIJJEL','getReader','body','startsWith','566328YraOHD','6433YpBgWv','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','read','1919540RxuRmA','5528jZSJpr','decode','220116pwAIzK','data','trim','5800WpBKpz','[LLM\x20API\x20SSE]\x20','slice','parse','246ZNRCPQ','1859510xcNLyX','debug','3630573xGSerB'];a81_0x1b02=function(){return _0x50d7a7;};return a81_0x1b02();}export async function*parseSSEStream(_0x1bef55,_0x5be334){const _0x5ae430=a81_0x4fed;if(!_0x1bef55['body'])throw new Error('Response\x20body\x20is\x20null');const _0x2490fa=_0x1bef55[_0x5ae430(0x1f3)][_0x5ae430(0x1f2)](),_0x3f6055=new TextDecoder();let _0x11f0a2='',_0x8da4f={};try{while(!![]){const {done:_0x289fb7,value:_0x3739ad}=await _0x2490fa[_0x5ae430(0x1f9)]();if(_0x289fb7){if(_0x8da4f[_0x5ae430(0x1fe)]){_0x5be334?.[_0x5ae430(0x1ef)](_0x5ae430(0x201)+_0x8da4f[_0x5ae430(0x1fe)]);const _0x56328f=parseSSEData(_0x8da4f['data']);yield _0x56328f;}break;}_0x11f0a2+=_0x3f6055[_0x5ae430(0x1fc)](_0x3739ad,{'stream':!![]});const _0x343890=_0x11f0a2[_0x5ae430(0x1f8)]('\x0a');_0x11f0a2=_0x343890['pop']()||'';for(const _0x2d0caf of _0x343890){if(_0x2d0caf[_0x5ae430(0x1ff)]()===''){if(_0x8da4f[_0x5ae430(0x1fe)]){_0x5be334?.[_0x5ae430(0x1ef)](_0x5ae430(0x201)+_0x8da4f[_0x5ae430(0x1fe)]);const _0x4fa985=parseSSEData(_0x8da4f['data']);yield _0x4fa985,_0x8da4f={};}continue;}if(_0x2d0caf[_0x5ae430(0x1f4)](':'))continue;const _0x5bb837=_0x2d0caf['indexOf'](':');if(_0x5bb837===-0x1)continue;const _0x12e0d7=_0x2d0caf[_0x5ae430(0x202)](0x0,_0x5bb837);let _0x438766=_0x2d0caf[_0x5ae430(0x202)](_0x5bb837+0x1);_0x438766[_0x5ae430(0x1f4)]('\x20')&&(_0x438766=_0x438766[_0x5ae430(0x202)](0x1));switch(_0x12e0d7){case'event':_0x8da4f['event']=_0x438766;break;case _0x5ae430(0x1fe):_0x8da4f[_0x5ae430(0x1fe)]=_0x8da4f['data']?_0x8da4f['data']+'\x0a'+_0x438766:_0x438766;break;case'id':_0x8da4f['id']=_0x438766;break;}}}}finally{_0x2490fa['releaseLock']();}}function parseSSEData(_0x3a2b14){const _0x5004f9=a81_0x4fed;try{return JSON[_0x5004f9(0x203)](_0x3a2b14);}catch(_0x2a9c74){throw new Error(_0x5004f9(0x1f7)+_0x3a2b14,{'cause':_0x2a9c74});}}
1
+ (function(_0x5f30cc,_0x5cc0c6){const _0x56dff0=a82_0xc99c,_0x40dcbd=_0x5f30cc();while(!![]){try{const _0x6ae4d2=-parseInt(_0x56dff0(0xf8))/0x1*(parseInt(_0x56dff0(0x108))/0x2)+-parseInt(_0x56dff0(0xf9))/0x3+-parseInt(_0x56dff0(0xf7))/0x4+parseInt(_0x56dff0(0x101))/0x5+parseInt(_0x56dff0(0x103))/0x6+-parseInt(_0x56dff0(0x102))/0x7*(-parseInt(_0x56dff0(0xfa))/0x8)+-parseInt(_0x56dff0(0xfc))/0x9*(-parseInt(_0x56dff0(0xf6))/0xa);if(_0x6ae4d2===_0x5cc0c6)break;else _0x40dcbd['push'](_0x40dcbd['shift']());}catch(_0x4852ce){_0x40dcbd['push'](_0x40dcbd['shift']());}}}(a82_0x4d59,0x3e486));export async function*parseSSEStream(_0x3eb9a7,_0xcf0418){const _0x35e59f=a82_0xc99c;if(!_0x3eb9a7[_0x35e59f(0xff)])throw new Error('Response\x20body\x20is\x20null');const _0x20d409=_0x3eb9a7[_0x35e59f(0xff)]['getReader'](),_0x5ddaa4=new TextDecoder();let _0x1388e3='',_0x36d469={};try{while(!![]){const {done:_0x2be01f,value:_0x22cd25}=await _0x20d409['read']();if(_0x2be01f){if(_0x36d469[_0x35e59f(0x109)]){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469[_0x35e59f(0x109)]);const _0x5c9c1f=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x5c9c1f;}break;}_0x1388e3+=_0x5ddaa4['decode'](_0x22cd25,{'stream':!![]});const _0x10fad4=_0x1388e3[_0x35e59f(0x106)]('\x0a');_0x1388e3=_0x10fad4[_0x35e59f(0xfb)]()||'';for(const _0x5522a2 of _0x10fad4){if(_0x5522a2[_0x35e59f(0x104)]()===''){if(_0x36d469['data']){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469['data']);const _0x3a8309=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x3a8309,_0x36d469={};}continue;}if(_0x5522a2[_0x35e59f(0xf4)](':'))continue;const _0x14c7df=_0x5522a2[_0x35e59f(0xf5)](':');if(_0x14c7df===-0x1)continue;const _0x22b21f=_0x5522a2['slice'](0x0,_0x14c7df);let _0x57da23=_0x5522a2[_0x35e59f(0xfd)](_0x14c7df+0x1);_0x57da23[_0x35e59f(0xf4)]('\x20')&&(_0x57da23=_0x57da23[_0x35e59f(0xfd)](0x1));switch(_0x22b21f){case'event':_0x36d469['event']=_0x57da23;break;case _0x35e59f(0x109):_0x36d469[_0x35e59f(0x109)]=_0x36d469[_0x35e59f(0x109)]?_0x36d469['data']+'\x0a'+_0x57da23:_0x57da23;break;case'id':_0x36d469['id']=_0x57da23;break;}}}}finally{_0x20d409[_0x35e59f(0x100)]();}}function a82_0xc99c(_0x5c70a8,_0x10e02f){const _0x4d5940=a82_0x4d59();return a82_0xc99c=function(_0xc99c7d,_0x1fac3b){_0xc99c7d=_0xc99c7d-0xf3;let _0x256722=_0x4d5940[_0xc99c7d];return _0x256722;},a82_0xc99c(_0x5c70a8,_0x10e02f);}function parseSSEData(_0x5d7cf2){const _0x37f5ba=a82_0xc99c;try{return JSON[_0x37f5ba(0xf3)](_0x5d7cf2);}catch(_0x5c4ad1){throw new Error(_0x37f5ba(0x105)+_0x5d7cf2,{'cause':_0x5c4ad1});}}function a82_0x4d59(){const _0x2e186f=['10pyzTjR','646728AQOCZv','38885wioKky','640197fDyuDD','8tJLZFn','pop','6396201NuAUGJ','slice','[LLM\x20API\x20SSE]\x20','body','releaseLock','222800dvLhQB','1678908QZsfqJ','376998futOKz','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','debug','22AxBfvI','data','parse','startsWith','indexOf'];a82_0x4d59=function(){return _0x2e186f;};return a82_0x4d59();}
@@ -1 +1 @@
1
- function a82_0x3a3b(_0x1fe070,_0x1e2ffc){const _0x201e76=a82_0x201e();return a82_0x3a3b=function(_0x3a3ba1,_0x9fef5){_0x3a3ba1=_0x3a3ba1-0x99;let _0x255342=_0x201e76[_0x3a3ba1];return _0x255342;},a82_0x3a3b(_0x1fe070,_0x1e2ffc);}(function(_0x5ca52b,_0xd5e13a){const _0x2fc89f=a82_0x3a3b,_0x2ab23c=_0x5ca52b();while(!![]){try{const _0x15086d=-parseInt(_0x2fc89f(0xaa))/0x1*(-parseInt(_0x2fc89f(0xa5))/0x2)+-parseInt(_0x2fc89f(0x9e))/0x3*(parseInt(_0x2fc89f(0xb0))/0x4)+parseInt(_0x2fc89f(0xad))/0x5+parseInt(_0x2fc89f(0xae))/0x6+parseInt(_0x2fc89f(0x9f))/0x7+parseInt(_0x2fc89f(0xac))/0x8+-parseInt(_0x2fc89f(0xa6))/0x9;if(_0x15086d===_0xd5e13a)break;else _0x2ab23c['push'](_0x2ab23c['shift']());}catch(_0xacbd74){_0x2ab23c['push'](_0x2ab23c['shift']());}}}(a82_0x201e,0xd889d));import a82_0x38cae6 from'string-width';export function stringWidth(_0x12215d){return a82_0x38cae6(_0x12215d);}export function padEnd(_0x3dcae3,_0xed1859){const _0x400a29=a82_0x3a3b,_0x8faf9f=stringWidth(_0x3dcae3);if(_0x8faf9f>=_0xed1859)return _0x3dcae3;return _0x3dcae3+'\x20'[_0x400a29(0x9b)](_0xed1859-_0x8faf9f);}export function padStart(_0x5d3e97,_0x2f0334){const _0xe80910=a82_0x3a3b,_0x17fdcb=stringWidth(_0x5d3e97);if(_0x17fdcb>=_0x2f0334)return _0x5d3e97;return'\x20'[_0xe80910(0x9b)](_0x2f0334-_0x17fdcb)+_0x5d3e97;}export function centerAlign(_0x34183f,_0xe819f7){const _0x404fab=a82_0x3a3b,_0x4a0d10=stringWidth(_0x34183f);if(_0x4a0d10>_0xe819f7){if(_0xe819f7<=0x1)return'…'['substring'](0x0,_0xe819f7);let _0x165f5a=_0x34183f;while(stringWidth(_0x165f5a+'…')>_0xe819f7){_0x165f5a=_0x165f5a[_0x404fab(0xa1)](0x0,-0x1);}return _0x165f5a+'…';}if(_0x4a0d10===_0xe819f7)return _0x34183f;const _0x5d1509=_0xe819f7-_0x4a0d10,_0x2da912=Math[_0x404fab(0xaf)](_0x5d1509/0x2),_0x3f38c8=_0x5d1509-_0x2da912;return'\x20'[_0x404fab(0x9b)](_0x2da912)+_0x34183f+'\x20'[_0x404fab(0x9b)](_0x3f38c8);}export function escapeStringLiteral(_0x1c97d4){const _0x22e145=a82_0x3a3b;if(!_0x1c97d4||_0x1c97d4[_0x22e145(0xa2)]()[_0x22e145(0x9d)]===0x0)throw new Error(_0x22e145(0x9a));const _0x5b0042=_0x1c97d4[_0x22e145(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x5b0042+'\x27';}export function globToLike(_0x57b40b){const _0x30010c=a82_0x3a3b;let _0xfb72ac=_0x57b40b[_0x30010c(0x9c)](/\\/g,'\x5c\x5c')[_0x30010c(0x9c)](/%/g,'\x5c%')[_0x30010c(0x9c)](/_/g,'\x5c_');return _0xfb72ac=_0xfb72ac['replace'](/\*/g,'%')[_0x30010c(0x9c)](/\?/g,'_'),_0xfb72ac;}export function buildLikePattern(_0x57c12f){const _0x1a388f=a82_0x3a3b;if(!_0x57c12f||_0x57c12f[_0x1a388f(0xa2)]()[_0x1a388f(0x9d)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x168383=globToLike(_0x57c12f),_0x4b059c=_0x168383[_0x1a388f(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x4b059c+'\x27';}export function matchGlobPattern(_0x2f09c4,_0x1468b1){const _0x5bc1dd=a82_0x3a3b,_0x3c8e02=_0x1468b1['replace'](/[.+^${}()|[\]\\]/g,_0x5bc1dd(0xa8))['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0x58b96b=new RegExp('^'+_0x3c8e02+'$');return _0x58b96b['test'](_0x2f09c4);}export function getSanitizedUsername(){const _0x2c7385=a82_0x3a3b,_0x32dc5e=process[_0x2c7385(0xab)]['USER']||process[_0x2c7385(0xab)][_0x2c7385(0xa3)]||_0x2c7385(0xa7);return _0x32dc5e['replace'](/[^a-zA-Z0-9]/g,'')[_0x2c7385(0xa0)]();}function a82_0x201e(){const _0x46e2ac=['random','Cannot\x20escape\x20empty\x20string\x20literal','repeat','replace','length','201lfJrQh','7329924BXzaWX','toLowerCase','slice','trim','USERNAME','padStart','190202gjOBcP','1150974IptXJL','unknown','\x5c$&','toString','2bTZQYl','env','6649024TQQeYR','1210065MjBywh','2795094wthSvJ','floor','105164OdXAVg'];a82_0x201e=function(){return _0x46e2ac;};return a82_0x201e();}export function generateRandomHex(){const _0x4a0ebd=a82_0x3a3b,_0x561b44=Math[_0x4a0ebd(0xaf)](Math[_0x4a0ebd(0x99)]()*0xfffff);return _0x561b44[_0x4a0ebd(0xa9)](0x10)[_0x4a0ebd(0xa4)](0x5,'0');}
1
+ (function(_0x31ad9f,_0x48bec7){const _0x17cb12=a83_0x3cae,_0x100c4c=_0x31ad9f();while(!![]){try{const _0x273b3b=-parseInt(_0x17cb12(0xa7))/0x1*(-parseInt(_0x17cb12(0xad))/0x2)+parseInt(_0x17cb12(0xb5))/0x3*(parseInt(_0x17cb12(0xac))/0x4)+-parseInt(_0x17cb12(0xa8))/0x5+-parseInt(_0x17cb12(0xb9))/0x6+parseInt(_0x17cb12(0xb8))/0x7*(parseInt(_0x17cb12(0xae))/0x8)+parseInt(_0x17cb12(0xa9))/0x9+parseInt(_0x17cb12(0xb6))/0xa*(-parseInt(_0x17cb12(0xb2))/0xb);if(_0x273b3b===_0x48bec7)break;else _0x100c4c['push'](_0x100c4c['shift']());}catch(_0x3c8861){_0x100c4c['push'](_0x100c4c['shift']());}}}(a83_0x40f1,0x30dd3));import a83_0x130466 from'string-width';function a83_0x3cae(_0x41d270,_0xeba413){const _0x40f17f=a83_0x40f1();return a83_0x3cae=function(_0x3caea9,_0x245259){_0x3caea9=_0x3caea9-0xa5;let _0x3423ca=_0x40f17f[_0x3caea9];return _0x3423ca;},a83_0x3cae(_0x41d270,_0xeba413);}function a83_0x40f1(){const _0xf9d10c=['287ATzULi','2258040gjvuVq','USERNAME','floor','slice','env','toString','Cannot\x20escape\x20empty\x20string\x20literal','238609otVmCO','1206975qERrtK','2615256IJJAQS','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','314908hWBZot','2RaIFpW','60608oMRkUW','unknown','trim','repeat','11shQhzM','replace','substring','3DQMzsl','1006540usOWVc','random'];a83_0x40f1=function(){return _0xf9d10c;};return a83_0x40f1();}export function stringWidth(_0x1d1bd5){return a83_0x130466(_0x1d1bd5);}export function padEnd(_0x23a70c,_0x527ac9){const _0x266681=a83_0x3cae,_0x388a11=stringWidth(_0x23a70c);if(_0x388a11>=_0x527ac9)return _0x23a70c;return _0x23a70c+'\x20'[_0x266681(0xb1)](_0x527ac9-_0x388a11);}export function padStart(_0x61bc6a,_0x489623){const _0x5d9abb=a83_0x3cae,_0x455d8=stringWidth(_0x61bc6a);if(_0x455d8>=_0x489623)return _0x61bc6a;return'\x20'[_0x5d9abb(0xb1)](_0x489623-_0x455d8)+_0x61bc6a;}export function centerAlign(_0x11265f,_0x15494d){const _0x1d2f5c=a83_0x3cae,_0x54ae77=stringWidth(_0x11265f);if(_0x54ae77>_0x15494d){if(_0x15494d<=0x1)return'…'[_0x1d2f5c(0xb4)](0x0,_0x15494d);let _0x8f31e9=_0x11265f;while(stringWidth(_0x8f31e9+'…')>_0x15494d){_0x8f31e9=_0x8f31e9[_0x1d2f5c(0xbc)](0x0,-0x1);}return _0x8f31e9+'…';}if(_0x54ae77===_0x15494d)return _0x11265f;const _0x5256df=_0x15494d-_0x54ae77,_0x4d7b7a=Math[_0x1d2f5c(0xbb)](_0x5256df/0x2),_0x2b00b3=_0x5256df-_0x4d7b7a;return'\x20'[_0x1d2f5c(0xb1)](_0x4d7b7a)+_0x11265f+'\x20'[_0x1d2f5c(0xb1)](_0x2b00b3);}export function escapeStringLiteral(_0x264544){const _0x4bdff2=a83_0x3cae;if(!_0x264544||_0x264544[_0x4bdff2(0xb0)]()['length']===0x0)throw new Error(_0x4bdff2(0xa6));const _0x223bf3=_0x264544['replace'](/'/g,'\x27\x27');return'\x27'+_0x223bf3+'\x27';}export function globToLike(_0x1ee44b){const _0x2eed3a=a83_0x3cae;let _0x4fbbb2=_0x1ee44b[_0x2eed3a(0xb3)](/\\/g,'\x5c\x5c')[_0x2eed3a(0xb3)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x4fbbb2=_0x4fbbb2[_0x2eed3a(0xb3)](/\*/g,'%')[_0x2eed3a(0xb3)](/\?/g,'_'),_0x4fbbb2;}export function buildLikePattern(_0x1f1309){const _0x4c8b13=a83_0x3cae;if(!_0x1f1309||_0x1f1309[_0x4c8b13(0xb0)]()['length']===0x0)throw new Error(_0x4c8b13(0xaa));const _0x51350c=globToLike(_0x1f1309),_0x517dfd=_0x51350c[_0x4c8b13(0xb3)](/'/g,'\x27\x27');return'\x27'+_0x517dfd+'\x27';}export function matchGlobPattern(_0x2e04d4,_0x1dc6ad){const _0x53a204=a83_0x3cae,_0x4d7fb7=_0x1dc6ad[_0x53a204(0xb3)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x53a204(0xb3)](/\*/g,'.*')[_0x53a204(0xb3)](/\?/g,'.'),_0x1a3bd9=new RegExp('^'+_0x4d7fb7+'$');return _0x1a3bd9['test'](_0x2e04d4);}export function getSanitizedUsername(){const _0x133796=a83_0x3cae,_0x2fd9e5=process['env']['USER']||process[_0x133796(0xbd)][_0x133796(0xba)]||_0x133796(0xaf);return _0x2fd9e5['replace'](/[^a-zA-Z0-9]/g,'')[_0x133796(0xab)]();}export function generateRandomHex(){const _0x1c500e=a83_0x3cae,_0x4be6bf=Math[_0x1c500e(0xbb)](Math[_0x1c500e(0xb7)]()*0xfffff);return _0x4be6bf[_0x1c500e(0xa5)](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- function a83_0x5294(){const _0x39f2d1=['includes','trim','14391553mJaOuF','length','6156040QWrrmU','join','catalog','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','25PcCxih','database','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','push','table','434498BmryTZ','278706BuieEg','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','112844ggpuLn','4200030QIPVMu','7969717KqHuJZ','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','6RkXtRv','12uVtSil','39gYhprU','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','30XTTSvE'];a83_0x5294=function(){return _0x39f2d1;};return a83_0x5294();}(function(_0x35a4c2,_0xf8b652){const _0x5704b0=a83_0x1624,_0x353822=_0x35a4c2();while(!![]){try{const _0x240a4e=-parseInt(_0x5704b0(0xde))/0x1*(-parseInt(_0x5704b0(0xe6))/0x2)+parseInt(_0x5704b0(0xe8))/0x3*(-parseInt(_0x5704b0(0xe2))/0x4)+-parseInt(_0x5704b0(0xd9))/0x5*(-parseInt(_0x5704b0(0xdf))/0x6)+-parseInt(_0x5704b0(0xe4))/0x7+parseInt(_0x5704b0(0xd5))/0x8+parseInt(_0x5704b0(0xe3))/0x9*(parseInt(_0x5704b0(0xeb))/0xa)+-parseInt(_0x5704b0(0xee))/0xb*(parseInt(_0x5704b0(0xe7))/0xc);if(_0x240a4e===_0xf8b652)break;else _0x353822['push'](_0x353822['shift']());}catch(_0x3bfa3c){_0x353822['push'](_0x353822['shift']());}}}(a83_0x5294,0xd9b13));function hasWildcard(_0x3fd8ab){const _0xb8961d=a83_0x1624;return _0x3fd8ab[_0xb8961d(0xec)]('*')||_0x3fd8ab['includes']('?');}export function parseTableReference(_0xaf4b8c){const _0x3ae4f6=a83_0x1624;if(!_0xaf4b8c||_0xaf4b8c[_0x3ae4f6(0xed)]()[_0x3ae4f6(0xd4)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x427cf6=_0xaf4b8c[_0x3ae4f6(0xed)](),_0x4e4548={'original':_0x427cf6},_0x4ef20b=_0x427cf6['split']('.');if(_0x4ef20b[_0x3ae4f6(0xd4)]===0x1){const _0x173f6d=_0x4ef20b[0x0];if(!_0x173f6d)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x4e4548['table']=_0x173f6d;}else{if(_0x4ef20b[_0x3ae4f6(0xd4)]===0x2){const [_0x265897,_0x3ad5e5]=_0x4ef20b;if(!_0x265897)throw new Error(_0x3ae4f6(0xd8));if(!_0x3ad5e5)throw new Error(_0x3ae4f6(0xe5));_0x4e4548[_0x3ae4f6(0xda)]=_0x265897,_0x4e4548[_0x3ae4f6(0xdd)]=_0x3ad5e5;}else{if(_0x4ef20b[_0x3ae4f6(0xd4)]===0x3){const [_0x4cdf13,_0x30d684,_0x3a47ca]=_0x4ef20b;if(!_0x4cdf13||!_0x30d684||!_0x3a47ca)throw new Error(_0x3ae4f6(0xe1));_0x4e4548[_0x3ae4f6(0xd7)]=_0x4cdf13,_0x4e4548[_0x3ae4f6(0xda)]=_0x30d684,_0x4e4548[_0x3ae4f6(0xdd)]=_0x3a47ca;}else throw new Error(_0x3ae4f6(0xdb));}}return _0x4e4548;}export function formatTableReference(_0x4013a7){const _0x99fd9d=a83_0x1624,_0x1f1b13=[];return _0x4013a7['catalog']&&_0x1f1b13[_0x99fd9d(0xdc)](_0x4013a7['catalog']),_0x4013a7[_0x99fd9d(0xda)]&&_0x1f1b13[_0x99fd9d(0xdc)](_0x4013a7[_0x99fd9d(0xda)]),_0x4013a7[_0x99fd9d(0xdd)]&&_0x1f1b13[_0x99fd9d(0xdc)](_0x4013a7[_0x99fd9d(0xdd)]),_0x1f1b13[_0x99fd9d(0xd6)]('.');}export function validateTableListReference(_0x51dff4){return undefined;}function a83_0x1624(_0xf35618,_0x3c9f51){const _0x529453=a83_0x5294();return a83_0x1624=function(_0x162494,_0x4d13ec){_0x162494=_0x162494-0xd4;let _0x3e37b4=_0x529453[_0x162494];return _0x3e37b4;},a83_0x1624(_0xf35618,_0x3c9f51);}export function validateTableDescribeReference(_0x350de6){const _0x337438=a83_0x1624;if(!_0x350de6['table'])return _0x337438(0xe9);if(_0x350de6[_0x337438(0xda)]&&hasWildcard(_0x350de6['database']))return _0x337438(0xea);if(hasWildcard(_0x350de6[_0x337438(0xdd)]))return _0x337438(0xe0);return undefined;}
1
+ (function(_0x54b8a0,_0x22032b){const _0x5e33ff=a84_0x5f2a,_0x216c0c=_0x54b8a0();while(!![]){try{const _0x1d7436=parseInt(_0x5e33ff(0xa8))/0x1+parseInt(_0x5e33ff(0xa3))/0x2*(-parseInt(_0x5e33ff(0xb2))/0x3)+-parseInt(_0x5e33ff(0xac))/0x4+-parseInt(_0x5e33ff(0xa2))/0x5+-parseInt(_0x5e33ff(0x9f))/0x6*(parseInt(_0x5e33ff(0xb0))/0x7)+parseInt(_0x5e33ff(0xad))/0x8+parseInt(_0x5e33ff(0xb1))/0x9;if(_0x1d7436===_0x22032b)break;else _0x216c0c['push'](_0x216c0c['shift']());}catch(_0xdaa8c7){_0x216c0c['push'](_0x216c0c['shift']());}}}(a84_0x51d2,0x2c43a));function a84_0x5f2a(_0x5c7458,_0x18013b){const _0x51d260=a84_0x51d2();return a84_0x5f2a=function(_0x5f2a5a,_0x52aca1){_0x5f2a5a=_0x5f2a5a-0x9c;let _0x2b18d2=_0x51d260[_0x5f2a5a];return _0x2b18d2;},a84_0x5f2a(_0x5c7458,_0x18013b);}function hasWildcard(_0x5cb234){const _0x12b930=a84_0x5f2a;return _0x5cb234[_0x12b930(0x9c)]('*')||_0x5cb234[_0x12b930(0x9c)]('?');}export function parseTableReference(_0x482c57){const _0x24544d=a84_0x5f2a;if(!_0x482c57||_0x482c57['trim']()[_0x24544d(0x9e)]===0x0)throw new Error(_0x24544d(0xa5));const _0x2dda79=_0x482c57[_0x24544d(0xa1)](),_0x39de7e={'original':_0x2dda79},_0x102bda=_0x2dda79[_0x24544d(0xae)]('.');if(_0x102bda['length']===0x1){const _0x3135fc=_0x102bda[0x0];if(!_0x3135fc)throw new Error(_0x24544d(0xb3));_0x39de7e[_0x24544d(0xa6)]=_0x3135fc;}else{if(_0x102bda['length']===0x2){const [_0x3876c8,_0x5a06c1]=_0x102bda;if(!_0x3876c8)throw new Error(_0x24544d(0xa0));if(!_0x5a06c1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x39de7e[_0x24544d(0xab)]=_0x3876c8,_0x39de7e[_0x24544d(0xa6)]=_0x5a06c1;}else{if(_0x102bda[_0x24544d(0x9e)]===0x3){const [_0x4310a5,_0x1994ad,_0x15f7df]=_0x102bda;if(!_0x4310a5||!_0x1994ad||!_0x15f7df)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x39de7e['catalog']=_0x4310a5,_0x39de7e[_0x24544d(0xab)]=_0x1994ad,_0x39de7e[_0x24544d(0xa6)]=_0x15f7df;}else throw new Error(_0x24544d(0xaf));}}return _0x39de7e;}function a84_0x51d2(){const _0x37e73c=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','catalog','44625muzztN','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','database','680056BeEntd','71776NaIxkM','split','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','98TQSZXD','7003665MiPOtD','6JiOWsF','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','length','51846hgMJAk','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','trim','1198230WLDyqg','119842JNbttt','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a84_0x51d2=function(){return _0x37e73c;};return a84_0x51d2();}export function formatTableReference(_0x5358ff){const _0x4382bc=a84_0x5f2a,_0x556832=[];return _0x5358ff['catalog']&&_0x556832[_0x4382bc(0xa9)](_0x5358ff[_0x4382bc(0xa7)]),_0x5358ff[_0x4382bc(0xab)]&&_0x556832['push'](_0x5358ff['database']),_0x5358ff[_0x4382bc(0xa6)]&&_0x556832['push'](_0x5358ff[_0x4382bc(0xa6)]),_0x556832['join']('.');}export function validateTableListReference(_0x5579b1){return undefined;}export function validateTableDescribeReference(_0xe39ee2){const _0x17e02d=a84_0x5f2a;if(!_0xe39ee2[_0x17e02d(0xa6)])return _0x17e02d(0xa4);if(_0xe39ee2[_0x17e02d(0xab)]&&hasWildcard(_0xe39ee2[_0x17e02d(0xab)]))return _0x17e02d(0x9d);if(hasWildcard(_0xe39ee2[_0x17e02d(0xa6)]))return _0x17e02d(0xaa);return undefined;}
@@ -1 +1 @@
1
- const a84_0x40811a=a84_0x5ce8;function a84_0x3a97(){const _0xe05470=['log','DEBUG','.cache','abs','getFullYear','getSeconds','message','INFO','test','150065eTILOp','tdx','80ticZBV','logDir','trace','logLevel','cause','end','1075698cZCuMP','fileOnly','padStart','10249386IindNa','toISOString','ERROR','stringify','split','22gVbepH','getDate','3YTROsu','rotateOldLogs','warn','name','getMilliseconds','204tQVRgm','logs','yellow','toString','21920YBDOgW','write','init','879209yMsTun','gray','34066dFwede','red','getHours','TRACE','debug','stack','error','.gz','string','info','4261070OiQmPi','filter','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','mtime','close','tdx.log','WARN','join','Warning:\x20Failed\x20to\x20compress\x20','logStream','.log'];a84_0x3a97=function(){return _0xe05470;};return a84_0x3a97();}(function(_0x32a49c,_0x2499db){const _0x248599=a84_0x5ce8,_0x3c3147=_0x32a49c();while(!![]){try{const _0x66535d=-parseInt(_0x248599(0xfc))/0x1+parseInt(_0x248599(0xfe))/0x2*(parseInt(_0x248599(0x12e))/0x3)+parseInt(_0x248599(0xf9))/0x4+parseInt(_0x248599(0x11c))/0x5*(parseInt(_0x248599(0xf5))/0x6)+-parseInt(_0x248599(0x127))/0x7+parseInt(_0x248599(0x11e))/0x8*(parseInt(_0x248599(0x124))/0x9)+parseInt(_0x248599(0x108))/0xa*(parseInt(_0x248599(0x12c))/0xb);if(_0x66535d===_0x2499db)break;else _0x3c3147['push'](_0x3c3147['shift']());}catch(_0x51cac1){_0x3c3147['push'](_0x3c3147['shift']());}}}(a84_0x3a97,0xb65e6));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a84_0x5ce8(_0x449ed9,_0x47ffcc){const _0x3a978b=a84_0x3a97();return a84_0x5ce8=function(_0x5ce8f0,_0x1cbfa4){_0x5ce8f0=_0x5ce8f0-0xf5;let _0x5c7ae0=_0x3a978b[_0x5ce8f0];return _0x5c7ae0;},a84_0x5ce8(_0x449ed9,_0x47ffcc);}import a84_0x4b722a from'chalk';function safeStringify(_0x4c0b8c){const _0x5d7823=a84_0x5ce8;if(typeof _0x4c0b8c===_0x5d7823(0x106))return _0x4c0b8c;if(_0x4c0b8c instanceof Error)return _0x4c0b8c[_0x5d7823(0x103)]||_0x4c0b8c['name']+':\x20'+_0x4c0b8c[_0x5d7823(0x119)];try{return JSON[_0x5d7823(0x12a)](_0x4c0b8c,(_0x13180d,_0x4b62dc)=>{const _0x29de87=_0x5d7823;if(_0x4b62dc instanceof Error)return{'name':_0x4b62dc[_0x29de87(0x131)],'message':_0x4b62dc[_0x29de87(0x119)],'stack':_0x4b62dc[_0x29de87(0x103)],'cause':_0x4b62dc[_0x29de87(0x122)]};return _0x4b62dc;});}catch{return String(_0x4c0b8c);}}function getTimezoneOffset(){const _0x1b6e44=a84_0x5ce8,_0x999a48=-new Date()['getTimezoneOffset'](),_0x4cddd9=Math['floor'](Math[_0x1b6e44(0x116)](_0x999a48)/0x3c),_0x39eb16=Math[_0x1b6e44(0x116)](_0x999a48)%0x3c,_0x2bb182=_0x999a48>=0x0?'+':'-';return''+_0x2bb182+_0x4cddd9['toString']()[_0x1b6e44(0x126)](0x2,'0')+_0x39eb16['toString']()[_0x1b6e44(0x126)](0x2,'0');}function formatTimestamp(){const _0x3f2113=a84_0x5ce8,_0x17b9c0=new Date(),_0x1eb215=_0x17b9c0[_0x3f2113(0x117)](),_0x2a000e=(_0x17b9c0['getMonth']()+0x1)['toString']()[_0x3f2113(0x126)](0x2,'0'),_0xb792d3=_0x17b9c0[_0x3f2113(0x12d)]()[_0x3f2113(0xf8)]()[_0x3f2113(0x126)](0x2,'0'),_0x169d20=_0x17b9c0[_0x3f2113(0x100)]()[_0x3f2113(0xf8)]()[_0x3f2113(0x126)](0x2,'0'),_0xfa6c6e=_0x17b9c0['getMinutes']()['toString']()[_0x3f2113(0x126)](0x2,'0'),_0x4df684=_0x17b9c0[_0x3f2113(0x118)]()[_0x3f2113(0xf8)]()[_0x3f2113(0x126)](0x2,'0'),_0x402c56=_0x17b9c0[_0x3f2113(0x132)]()[_0x3f2113(0xf8)]()[_0x3f2113(0x126)](0x3,'0'),_0x266690=getTimezoneOffset();return _0x1eb215+'-'+_0x2a000e+'-'+_0xb792d3+'\x20'+_0x169d20+':'+_0xfa6c6e+':'+_0x4df684+'.'+_0x402c56+_0x266690;}function formatColoredLogEntry(_0x29eeb1,_0x3991a2){const _0x5526b4=a84_0x5ce8,_0x4c411d=formatTimestamp(),_0x25fcf3=_0x3991a2['map'](safeStringify)[_0x5526b4(0x10f)]('\x20'),_0xd782f1=a84_0x4b722a[_0x5526b4(0xfd)](_0x4c411d);let _0x4cf35f;switch(_0x29eeb1){case'info':_0x4cf35f=a84_0x4b722a['cyan']('['+_0x29eeb1+']\x20');break;case _0x5526b4(0x130):_0x4cf35f=a84_0x4b722a[_0x5526b4(0xf7)]('['+_0x29eeb1+']\x20');break;case'error':_0x4cf35f=a84_0x4b722a[_0x5526b4(0xff)]('['+_0x29eeb1+']');break;case'debug':_0x4cf35f=a84_0x4b722a[_0x5526b4(0xfd)]('['+_0x29eeb1+']');break;default:_0x4cf35f='['+_0x29eeb1+']';}return _0xd782f1+'\x20'+_0x4cf35f+'\x20'+_0x25fcf3;}export var LogLevel;(function(_0x187dfe){const _0x54a831=a84_0x5ce8;_0x187dfe[_0x187dfe[_0x54a831(0x101)]=-0x2]='TRACE',_0x187dfe[_0x187dfe['DEBUG']=-0x1]=_0x54a831(0x114),_0x187dfe[_0x187dfe['INFO']=0x0]=_0x54a831(0x11a),_0x187dfe[_0x187dfe[_0x54a831(0x10e)]=0x1]=_0x54a831(0x10e),_0x187dfe[_0x187dfe[_0x54a831(0x129)]=0x2]=_0x54a831(0x129);}(LogLevel||(LogLevel={})));export class TDXLogger{[a84_0x40811a(0x111)];[a84_0x40811a(0x11f)];['logLevel'];[a84_0x40811a(0x125)];constructor(_0x4fb5e1=LogLevel['INFO'],_0x23087e=![]){const _0x5d5c2c=a84_0x40811a;this[_0x5d5c2c(0x11f)]=join(homedir(),_0x5d5c2c(0x115),_0x5d5c2c(0x11d),_0x5d5c2c(0xf6)),this['logLevel']=_0x4fb5e1,this[_0x5d5c2c(0x125)]=_0x23087e;}async[a84_0x40811a(0xfb)](){const _0x240e71=a84_0x40811a;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x240e71(0x12f)]();const _0x4c9a20=join(this['logDir'],_0x240e71(0x10d));this['logStream']=createWriteStream(_0x4c9a20,{'flags':'a'}),this[_0x240e71(0x111)]['on'](_0x240e71(0x104),_0x275895=>{const _0x4762d2=_0x240e71;console[_0x4762d2(0x104)]('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x275895[_0x4762d2(0x119)]);});}catch(_0x5a01e9){console['error'](_0x240e71(0x10a),_0x5a01e9);}}async[a84_0x40811a(0x12f)](){const _0x1a8f8f=a84_0x40811a;try{const _0x17a748=await readdir(this[_0x1a8f8f(0x11f)]),_0x4b6198=new Date()[_0x1a8f8f(0x128)]()[_0x1a8f8f(0x12b)]('T')[0x0];if(_0x17a748['includes'](_0x1a8f8f(0x10d))){const _0x77b7af=join(this['logDir'],'tdx.log'),_0x5b044a=await stat(_0x77b7af),_0x1d0576=new Date(_0x5b044a[_0x1a8f8f(0x10b)])[_0x1a8f8f(0x128)]()[_0x1a8f8f(0x12b)]('T')[0x0];if(_0x1d0576<_0x4b6198){const _0x4ce5ee=join(this[_0x1a8f8f(0x11f)],'tdx-'+_0x1d0576+_0x1a8f8f(0x112));await rename(_0x77b7af,_0x4ce5ee);}}const _0x33b3b8=await readdir(this[_0x1a8f8f(0x11f)]),_0x43e39c=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x315231=_0x33b3b8[_0x1a8f8f(0x109)](_0x1b1f02=>_0x43e39c[_0x1a8f8f(0x11b)](_0x1b1f02));for(const _0x23836c of _0x315231){const _0x4a4b9a=join(this[_0x1a8f8f(0x11f)],_0x23836c),_0x2458e0=join(this[_0x1a8f8f(0x11f)],_0x23836c+_0x1a8f8f(0x105));try{await pipeline(createReadStream(_0x4a4b9a),createGzip(),createWriteStream(_0x2458e0)),await unlink(_0x4a4b9a);}catch(_0x7e6fe1){console['error'](_0x1a8f8f(0x110)+_0x23836c+':',_0x7e6fe1);}}}catch{}}['debug'](..._0x162774){const _0x57345b=a84_0x40811a;if(this[_0x57345b(0x121)]>LogLevel[_0x57345b(0x114)])return;const _0x156ef5=formatColoredLogEntry(_0x57345b(0x102),_0x162774);this[_0x57345b(0x111)]?.[_0x57345b(0xfa)](_0x156ef5+'\x0a');}[a84_0x40811a(0x120)](..._0x165b2f){const _0x24fd41=a84_0x40811a;if(this[_0x24fd41(0x121)]>LogLevel[_0x24fd41(0x101)])return;const _0x483090=formatColoredLogEntry(_0x24fd41(0x120),_0x165b2f);this['logStream']?.['write'](_0x483090+'\x0a');}[a84_0x40811a(0x107)](..._0x1dbbac){const _0x4af285=a84_0x40811a;if(this[_0x4af285(0x121)]>LogLevel['INFO'])return;const _0x22e918=formatColoredLogEntry(_0x4af285(0x107),_0x1dbbac);!this['fileOnly']&&console[_0x4af285(0x113)](_0x22e918),this[_0x4af285(0x111)]?.[_0x4af285(0xfa)](_0x22e918+'\x0a');}['warn'](..._0x2d2145){const _0x38008a=a84_0x40811a;if(this['logLevel']>LogLevel[_0x38008a(0x10e)])return;const _0x104950=formatColoredLogEntry('warn',_0x2d2145);!this[_0x38008a(0x125)]&&console[_0x38008a(0x104)](_0x104950),this[_0x38008a(0x111)]?.[_0x38008a(0xfa)](_0x104950+'\x0a');}[a84_0x40811a(0x104)](..._0x30b2a3){const _0x275457=a84_0x40811a,_0x4721c9=formatColoredLogEntry('error',_0x30b2a3);!this[_0x275457(0x125)]&&console[_0x275457(0x104)](_0x4721c9),this[_0x275457(0x111)]?.[_0x275457(0xfa)](_0x4721c9+'\x0a');}async[a84_0x40811a(0x10c)](){return this['info']('Proxy\x20session\x20ended'),new Promise(_0x169cef=>{const _0x347b94=a84_0x5ce8;this[_0x347b94(0x111)]?this['logStream'][_0x347b94(0x123)](()=>{_0x169cef();}):_0x169cef();});}['getLogPath'](){return join(this['logDir'],'tdx.log');}}
1
+ const a85_0x22e6a8=a85_0x3cb0;(function(_0x48242a,_0x548f10){const _0x24e33f=a85_0x3cb0,_0x2f8c97=_0x48242a();while(!![]){try{const _0x2f14b7=parseInt(_0x24e33f(0x140))/0x1+parseInt(_0x24e33f(0x175))/0x2*(parseInt(_0x24e33f(0x14e))/0x3)+parseInt(_0x24e33f(0x171))/0x4*(-parseInt(_0x24e33f(0x14c))/0x5)+-parseInt(_0x24e33f(0x150))/0x6+-parseInt(_0x24e33f(0x159))/0x7*(parseInt(_0x24e33f(0x154))/0x8)+parseInt(_0x24e33f(0x177))/0x9*(parseInt(_0x24e33f(0x16e))/0xa)+parseInt(_0x24e33f(0x170))/0xb;if(_0x2f14b7===_0x548f10)break;else _0x2f8c97['push'](_0x2f8c97['shift']());}catch(_0x3d86ab){_0x2f8c97['push'](_0x2f8c97['shift']());}}}(a85_0x43f8,0xdc765));function a85_0x43f8(){const _0x5e6334=['getSeconds','floor','cause','tdx','split','logLevel','getMilliseconds','init','logStream','INFO','getFullYear','error','20AmnbNI','write','1109526EozEAX','8WKDQtt','getDate','ERROR','debug','110dHTPgS','name','7861716nOljAq','gray','cyan','TRACE','yellow','269936xZqKzE','Proxy\x20session\x20ended','warn','red','abs','logDir','log','stack','fileOnly','.cache','info','end','615670nkLWJy','getLogPath','62571KwWZgr','rotateOldLogs','9671544zMdsGl','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','string','DEBUG','2015120ydfuWS','logs','toString','message','map','14XdObVd','WARN','test','padStart','Warning:\x20Error\x20writing\x20to\x20tdx.log:','trace','close','getHours','tdx.log'];a85_0x43f8=function(){return _0x5e6334;};return a85_0x43f8();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a85_0x3cb0(_0x160801,_0x58a074){const _0x43f89a=a85_0x43f8();return a85_0x3cb0=function(_0x3cb0dc,_0x1f852a){_0x3cb0dc=_0x3cb0dc-0x13f;let _0x2e4cd9=_0x43f89a[_0x3cb0dc];return _0x2e4cd9;},a85_0x3cb0(_0x160801,_0x58a074);}import{pipeline}from'stream/promises';import a85_0x440fa2 from'chalk';function safeStringify(_0x319b4c){const _0x253e7c=a85_0x3cb0;if(typeof _0x319b4c===_0x253e7c(0x152))return _0x319b4c;if(_0x319b4c instanceof Error)return _0x319b4c[_0x253e7c(0x147)]||_0x319b4c['name']+':\x20'+_0x319b4c[_0x253e7c(0x157)];try{return JSON['stringify'](_0x319b4c,(_0x2d2c2d,_0x679569)=>{const _0x1952e6=_0x253e7c;if(_0x679569 instanceof Error)return{'name':_0x679569[_0x1952e6(0x176)],'message':_0x679569[_0x1952e6(0x157)],'stack':_0x679569['stack'],'cause':_0x679569[_0x1952e6(0x164)]};return _0x679569;});}catch{return String(_0x319b4c);}}function getTimezoneOffset(){const _0x111220=a85_0x3cb0,_0x45cd3c=-new Date()['getTimezoneOffset'](),_0x44b340=Math[_0x111220(0x163)](Math[_0x111220(0x144)](_0x45cd3c)/0x3c),_0x443ddb=Math[_0x111220(0x144)](_0x45cd3c)%0x3c,_0xe7bbdf=_0x45cd3c>=0x0?'+':'-';return''+_0xe7bbdf+_0x44b340[_0x111220(0x156)]()['padStart'](0x2,'0')+_0x443ddb['toString']()[_0x111220(0x15c)](0x2,'0');}function formatTimestamp(){const _0x3bb351=a85_0x3cb0,_0x506ef8=new Date(),_0x2c9bd7=_0x506ef8[_0x3bb351(0x16c)](),_0x1f3aa1=(_0x506ef8['getMonth']()+0x1)[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x52f642=_0x506ef8[_0x3bb351(0x172)]()[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x18e11f=_0x506ef8[_0x3bb351(0x160)]()[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x34ff21=_0x506ef8['getMinutes']()[_0x3bb351(0x156)]()['padStart'](0x2,'0'),_0x36c34e=_0x506ef8[_0x3bb351(0x162)]()['toString']()[_0x3bb351(0x15c)](0x2,'0'),_0x19ad43=_0x506ef8[_0x3bb351(0x168)]()[_0x3bb351(0x156)]()['padStart'](0x3,'0'),_0x2ccd92=getTimezoneOffset();return _0x2c9bd7+'-'+_0x1f3aa1+'-'+_0x52f642+'\x20'+_0x18e11f+':'+_0x34ff21+':'+_0x36c34e+'.'+_0x19ad43+_0x2ccd92;}function formatColoredLogEntry(_0x1f2050,_0x2dd5fb){const _0x3820d2=a85_0x3cb0,_0x143d57=formatTimestamp(),_0x4fac87=_0x2dd5fb[_0x3820d2(0x158)](safeStringify)['join']('\x20'),_0x505841=a85_0x440fa2[_0x3820d2(0x178)](_0x143d57);let _0x3bad30;switch(_0x1f2050){case _0x3820d2(0x14a):_0x3bad30=a85_0x440fa2[_0x3820d2(0x179)]('['+_0x1f2050+']\x20');break;case'warn':_0x3bad30=a85_0x440fa2[_0x3820d2(0x13f)]('['+_0x1f2050+']\x20');break;case _0x3820d2(0x16d):_0x3bad30=a85_0x440fa2[_0x3820d2(0x143)]('['+_0x1f2050+']');break;case _0x3820d2(0x174):_0x3bad30=a85_0x440fa2[_0x3820d2(0x178)]('['+_0x1f2050+']');break;default:_0x3bad30='['+_0x1f2050+']';}return _0x505841+'\x20'+_0x3bad30+'\x20'+_0x4fac87;}export var LogLevel;(function(_0x3bc925){const _0x2cc33e=a85_0x3cb0;_0x3bc925[_0x3bc925['TRACE']=-0x2]=_0x2cc33e(0x17a),_0x3bc925[_0x3bc925[_0x2cc33e(0x153)]=-0x1]=_0x2cc33e(0x153),_0x3bc925[_0x3bc925['INFO']=0x0]=_0x2cc33e(0x16b),_0x3bc925[_0x3bc925[_0x2cc33e(0x15a)]=0x1]=_0x2cc33e(0x15a),_0x3bc925[_0x3bc925[_0x2cc33e(0x173)]=0x2]=_0x2cc33e(0x173);}(LogLevel||(LogLevel={})));export class TDXLogger{[a85_0x22e6a8(0x16a)];['logDir'];['logLevel'];['fileOnly'];constructor(_0x5d6257=LogLevel[a85_0x22e6a8(0x16b)],_0x64419e=![]){const _0xcce08d=a85_0x22e6a8;this[_0xcce08d(0x145)]=join(homedir(),_0xcce08d(0x149),_0xcce08d(0x165),_0xcce08d(0x155)),this[_0xcce08d(0x167)]=_0x5d6257,this['fileOnly']=_0x64419e;}async[a85_0x22e6a8(0x169)](){const _0x332dcf=a85_0x22e6a8;try{await mkdir(this[_0x332dcf(0x145)],{'recursive':!![]}),await this[_0x332dcf(0x14f)]();const _0x3e7d47=join(this[_0x332dcf(0x145)],'tdx.log');this['logStream']=createWriteStream(_0x3e7d47,{'flags':'a'}),this[_0x332dcf(0x16a)]['on'](_0x332dcf(0x16d),_0x176566=>{const _0x43a544=_0x332dcf;console[_0x43a544(0x16d)](_0x43a544(0x15d),_0x176566[_0x43a544(0x157)]);});}catch(_0x519697){console[_0x332dcf(0x16d)](_0x332dcf(0x151),_0x519697);}}async[a85_0x22e6a8(0x14f)](){const _0x18f447=a85_0x22e6a8;try{const _0x4a290c=await readdir(this[_0x18f447(0x145)]),_0x4d6114=new Date()['toISOString']()[_0x18f447(0x166)]('T')[0x0];if(_0x4a290c['includes']('tdx.log')){const _0x30dc82=join(this['logDir'],_0x18f447(0x161)),_0x5958d6=await stat(_0x30dc82),_0x445c26=new Date(_0x5958d6['mtime'])['toISOString']()['split']('T')[0x0];if(_0x445c26<_0x4d6114){const _0x381a98=join(this[_0x18f447(0x145)],'tdx-'+_0x445c26+'.log');await rename(_0x30dc82,_0x381a98);}}const _0x23de92=await readdir(this[_0x18f447(0x145)]),_0x145ae3=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x49c6e7=_0x23de92['filter'](_0x10d06f=>_0x145ae3[_0x18f447(0x15b)](_0x10d06f));for(const _0x448ace of _0x49c6e7){const _0x358479=join(this[_0x18f447(0x145)],_0x448ace),_0x586c4b=join(this[_0x18f447(0x145)],_0x448ace+'.gz');try{await pipeline(createReadStream(_0x358479),createGzip(),createWriteStream(_0x586c4b)),await unlink(_0x358479);}catch(_0x129b96){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x448ace+':',_0x129b96);}}}catch{}}[a85_0x22e6a8(0x174)](..._0x2638ff){const _0x3a5686=a85_0x22e6a8;if(this[_0x3a5686(0x167)]>LogLevel[_0x3a5686(0x153)])return;const _0x264045=formatColoredLogEntry('debug',_0x2638ff);this['logStream']?.[_0x3a5686(0x16f)](_0x264045+'\x0a');}[a85_0x22e6a8(0x15e)](..._0x17d9b5){const _0x40264a=a85_0x22e6a8;if(this[_0x40264a(0x167)]>LogLevel[_0x40264a(0x17a)])return;const _0x50b5cd=formatColoredLogEntry(_0x40264a(0x15e),_0x17d9b5);this[_0x40264a(0x16a)]?.[_0x40264a(0x16f)](_0x50b5cd+'\x0a');}[a85_0x22e6a8(0x14a)](..._0x2205f3){const _0x1c6756=a85_0x22e6a8;if(this[_0x1c6756(0x167)]>LogLevel[_0x1c6756(0x16b)])return;const _0x578fc0=formatColoredLogEntry(_0x1c6756(0x14a),_0x2205f3);!this[_0x1c6756(0x148)]&&console[_0x1c6756(0x146)](_0x578fc0),this[_0x1c6756(0x16a)]?.['write'](_0x578fc0+'\x0a');}[a85_0x22e6a8(0x142)](..._0x857f2b){const _0x4bd43d=a85_0x22e6a8;if(this['logLevel']>LogLevel['WARN'])return;const _0x5b6be5=formatColoredLogEntry(_0x4bd43d(0x142),_0x857f2b);!this[_0x4bd43d(0x148)]&&console[_0x4bd43d(0x16d)](_0x5b6be5),this['logStream']?.[_0x4bd43d(0x16f)](_0x5b6be5+'\x0a');}[a85_0x22e6a8(0x16d)](..._0x37fe2e){const _0x16671d=a85_0x22e6a8,_0x38b1cc=formatColoredLogEntry('error',_0x37fe2e);!this['fileOnly']&&console[_0x16671d(0x16d)](_0x38b1cc),this[_0x16671d(0x16a)]?.[_0x16671d(0x16f)](_0x38b1cc+'\x0a');}async[a85_0x22e6a8(0x15f)](){const _0x9e3a0c=a85_0x22e6a8;return this[_0x9e3a0c(0x14a)](_0x9e3a0c(0x141)),new Promise(_0xfc2934=>{const _0x32455f=_0x9e3a0c;this[_0x32455f(0x16a)]?this[_0x32455f(0x16a)][_0x32455f(0x14b)](()=>{_0xfc2934();}):_0xfc2934();});}[a85_0x22e6a8(0x14d)](){const _0x43100f=a85_0x22e6a8;return join(this['logDir'],_0x43100f(0x161));}}
@@ -1 +1 @@
1
- (function(_0x1a1565,_0x432bda){const _0x182371=a85_0x1764,_0x5c34f6=_0x1a1565();while(!![]){try{const _0x76f490=-parseInt(_0x182371(0x191))/0x1+parseInt(_0x182371(0x19a))/0x2*(parseInt(_0x182371(0x17a))/0x3)+-parseInt(_0x182371(0x195))/0x4+parseInt(_0x182371(0x188))/0x5+-parseInt(_0x182371(0x18a))/0x6*(parseInt(_0x182371(0x197))/0x7)+parseInt(_0x182371(0x18d))/0x8+parseInt(_0x182371(0x182))/0x9;if(_0x76f490===_0x432bda)break;else _0x5c34f6['push'](_0x5c34f6['shift']());}catch(_0x18c17f){_0x5c34f6['push'](_0x5c34f6['shift']());}}}(a85_0x55fd,0x99859));import{formatRows}from'./formatters.js';import a85_0x4d5f86 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x747616,_0xd39985={},_0x4c6894=0x0,_0x3942f9=''){const _0x29596b=a85_0x1764,_0x4121f4={...DEFAULT_OPTIONS,..._0xd39985},_0x5589ed=[],_0x19a052=[..._0x747616]['sort']((_0x2f4f9d,_0x10b761)=>_0x2f4f9d[_0x29596b(0x17e)][_0x29596b(0x183)](_0x10b761[_0x29596b(0x17e)]));for(let _0x52dc97=0x0;_0x52dc97<_0x19a052[_0x29596b(0x17f)];_0x52dc97++){const _0x489fcb=_0x19a052[_0x52dc97],_0x223aac=_0x52dc97===_0x19a052['length']-0x1;let _0x5eca16='';_0x4c6894>0x0&&(_0x5eca16+=_0x3942f9);_0x4121f4[_0x29596b(0x196)]&&_0x4c6894>0x0&&(_0x5eca16+=a85_0x4d5f86[_0x29596b(0x193)](_0x223aac?_0x29596b(0x17b):_0x29596b(0x187)));_0x4121f4[_0x29596b(0x190)]&&(_0x5eca16+=_0x489fcb['type']===_0x29596b(0x192)?'📁\x20':_0x29596b(0x198));_0x5eca16+=_0x489fcb[_0x29596b(0x17e)];if(_0x4121f4[_0x29596b(0x181)]){if(_0x489fcb[_0x29596b(0x18e)]===_0x29596b(0x192)){const _0x520eae=[];_0x489fcb[_0x29596b(0x189)][_0x29596b(0x186)]&&_0x520eae[_0x29596b(0x17d)](_0x489fcb[_0x29596b(0x189)][_0x29596b(0x186)]+_0x29596b(0x199)+(_0x489fcb[_0x29596b(0x189)][_0x29596b(0x186)]!==0x1?'s':'')),_0x489fcb['metadata'][_0x29596b(0x18b)]&&_0x520eae[_0x29596b(0x17d)](_0x489fcb[_0x29596b(0x189)][_0x29596b(0x18b)]+'\x20folder'+(_0x489fcb['metadata'][_0x29596b(0x18b)]!==0x1?'s':'')),_0x520eae[_0x29596b(0x17f)]>0x0&&(_0x5eca16+=a85_0x4d5f86['dim']('\x20('+_0x520eae[_0x29596b(0x18c)](',\x20')+')'));}else _0x489fcb[_0x29596b(0x18e)]===_0x29596b(0x18f)&&_0x489fcb['population']!==undefined&&(_0x5eca16+=a85_0x4d5f86['dim']('\x20('+formatRows(_0x489fcb[_0x29596b(0x17c)])+')'));}_0x5589ed[_0x29596b(0x17d)](_0x5eca16);if(_0x489fcb['children']&&_0x489fcb[_0x29596b(0x184)][_0x29596b(0x17f)]>0x0){let _0x476a2b;if(_0x4c6894===0x0)_0x476a2b='';else _0x4121f4['showTreeLines']?_0x476a2b=_0x3942f9+(_0x223aac?_0x29596b(0x185):a85_0x4d5f86[_0x29596b(0x193)]('│')+'\x20\x20\x20'):_0x476a2b=_0x3942f9+_0x4121f4[_0x29596b(0x180)];const _0x459424=formatTree(_0x489fcb[_0x29596b(0x184)],_0x4121f4,_0x4c6894+0x1,_0x476a2b);_0x5589ed[_0x29596b(0x17d)](_0x459424);}}return _0x5589ed[_0x29596b(0x18c)]('\x0a');}function a85_0x1764(_0xc2a6f4,_0x5adbd5){const _0x55fdb3=a85_0x55fd();return a85_0x1764=function(_0x1764e2,_0x5dda46){_0x1764e2=_0x1764e2-0x17a;let _0x1b633d=_0x55fdb3[_0x1764e2];return _0x1b633d;},a85_0x1764(_0xc2a6f4,_0x5adbd5);}export function formatFlatList(_0x2e24a1,_0x63dd31,_0x12074e={}){const _0x54454b=a85_0x1764,_0x4c5b4d={...DEFAULT_OPTIONS,..._0x12074e},_0x239f1c=[];for(const _0x20d12e of _0x2e24a1){_0x239f1c[_0x54454b(0x17d)]({'name':_0x20d12e[_0x54454b(0x17e)],'icon':_0x4c5b4d[_0x54454b(0x190)]?'📁':'','metadata':undefined});}for(const _0x3dd127 of _0x63dd31){const _0x476e4a=_0x4c5b4d[_0x54454b(0x181)]&&_0x3dd127['population']!==undefined?a85_0x4d5f86['dim']('\x20('+formatRows(_0x3dd127[_0x54454b(0x17c)])+')'):'';_0x239f1c[_0x54454b(0x17d)]({'name':_0x3dd127['name'],'icon':_0x4c5b4d['showIcons']?'🎯':'','metadata':_0x476e4a});}_0x239f1c['sort']((_0x13387f,_0x301250)=>_0x13387f[_0x54454b(0x17e)][_0x54454b(0x183)](_0x301250[_0x54454b(0x17e)]));if(_0x239f1c[_0x54454b(0x17f)]===0x0)return _0x54454b(0x194);const _0x6bb1c1=_0x239f1c['map'](_0x3b01b9=>{const _0x262b1f=_0x54454b,_0x55fed4=_0x3b01b9[_0x262b1f(0x19b)]?_0x3b01b9['icon']+'\x20':'',_0x4c222f=_0x3b01b9['metadata']||'';return''+_0x55fed4+_0x3b01b9[_0x262b1f(0x17e)]+_0x4c222f;});return _0x6bb1c1[_0x54454b(0x18c)]('\x0a');}function a85_0x55fd(){const _0x28e66d=['🎯\x20','\x20segment','30oTQINz','icon','136644BiimXi','└──\x20','population','push','name','length','indent','showMetadata','6085845AmrSQi','localeCompare','children','\x20\x20\x20\x20','segmentCount','├──\x20','444675UhxNfL','metadata','12GmiVoE','folderCount','join','9373584CbPBkg','type','segment','showIcons','630110LgPMDB','folder','dim','(empty)','4905620nospTT','showTreeLines','471513gNLUFY'];a85_0x55fd=function(){return _0x28e66d;};return a85_0x55fd();}
1
+ (function(_0x467f35,_0x324fa8){const _0x324ead=a86_0x3208,_0x266949=_0x467f35();while(!![]){try{const _0x1b8542=-parseInt(_0x324ead(0x167))/0x1*(parseInt(_0x324ead(0x161))/0x2)+-parseInt(_0x324ead(0x14c))/0x3*(parseInt(_0x324ead(0x162))/0x4)+parseInt(_0x324ead(0x149))/0x5+-parseInt(_0x324ead(0x165))/0x6*(-parseInt(_0x324ead(0x157))/0x7)+parseInt(_0x324ead(0x14e))/0x8*(parseInt(_0x324ead(0x156))/0x9)+parseInt(_0x324ead(0x16e))/0xa+-parseInt(_0x324ead(0x151))/0xb*(parseInt(_0x324ead(0x15b))/0xc);if(_0x1b8542===_0x324fa8)break;else _0x266949['push'](_0x266949['shift']());}catch(_0x67aaa){_0x266949['push'](_0x266949['shift']());}}}(a86_0x39ae,0xe11ab));import{formatRows}from'./formatters.js';import a86_0x5c437f from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};function a86_0x3208(_0x45d3b7,_0x422723){const _0x39ae6e=a86_0x39ae();return a86_0x3208=function(_0x320884,_0x2b2260){_0x320884=_0x320884-0x148;let _0x428d9d=_0x39ae6e[_0x320884];return _0x428d9d;},a86_0x3208(_0x45d3b7,_0x422723);}export function formatTree(_0x1e448f,_0x575e3e={},_0x2c2b45=0x0,_0x29f0d2=''){const _0x468d52=a86_0x3208,_0x1a209a={...DEFAULT_OPTIONS,..._0x575e3e},_0x4df42b=[],_0x2c6890=[..._0x1e448f][_0x468d52(0x15a)]((_0x4a372e,_0xaadd21)=>_0x4a372e['name'][_0x468d52(0x16b)](_0xaadd21[_0x468d52(0x164)]));for(let _0x1d900f=0x0;_0x1d900f<_0x2c6890[_0x468d52(0x160)];_0x1d900f++){const _0x49cb33=_0x2c6890[_0x1d900f],_0x2d5907=_0x1d900f===_0x2c6890[_0x468d52(0x160)]-0x1;let _0x23b048='';_0x2c2b45>0x0&&(_0x23b048+=_0x29f0d2);_0x1a209a[_0x468d52(0x15d)]&&_0x2c2b45>0x0&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)](_0x2d5907?'└──\x20':'├──\x20'));_0x1a209a[_0x468d52(0x14d)]&&(_0x23b048+=_0x49cb33[_0x468d52(0x163)]===_0x468d52(0x16c)?_0x468d52(0x154):_0x468d52(0x16d));_0x23b048+=_0x49cb33['name'];if(_0x1a209a[_0x468d52(0x15f)]){if(_0x49cb33[_0x468d52(0x163)]==='folder'){const _0x29f3b8=[];_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x16a)]&&_0x29f3b8['push'](_0x49cb33[_0x468d52(0x14b)]['segmentCount']+_0x468d52(0x159)+(_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x16a)]!==0x1?'s':'')),_0x49cb33['metadata'][_0x468d52(0x14f)]&&_0x29f3b8[_0x468d52(0x155)](_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x14f)]+'\x20folder'+(_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x14f)]!==0x1?'s':'')),_0x29f3b8['length']>0x0&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)]('\x20('+_0x29f3b8[_0x468d52(0x166)](',\x20')+')'));}else _0x49cb33[_0x468d52(0x163)]===_0x468d52(0x14a)&&_0x49cb33[_0x468d52(0x152)]!==undefined&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)]('\x20('+formatRows(_0x49cb33[_0x468d52(0x152)])+')'));}_0x4df42b[_0x468d52(0x155)](_0x23b048);if(_0x49cb33[_0x468d52(0x169)]&&_0x49cb33[_0x468d52(0x169)][_0x468d52(0x160)]>0x0){let _0x2d9464;if(_0x2c2b45===0x0)_0x2d9464='';else _0x1a209a['showTreeLines']?_0x2d9464=_0x29f0d2+(_0x2d5907?_0x468d52(0x150):a86_0x5c437f[_0x468d52(0x15c)]('│')+_0x468d52(0x148)):_0x2d9464=_0x29f0d2+_0x1a209a[_0x468d52(0x158)];const _0x572138=formatTree(_0x49cb33[_0x468d52(0x169)],_0x1a209a,_0x2c2b45+0x1,_0x2d9464);_0x4df42b[_0x468d52(0x155)](_0x572138);}}return _0x4df42b[_0x468d52(0x166)]('\x0a');}export function formatFlatList(_0x1f8f02,_0x493b16,_0x29d09a={}){const _0x25368a=a86_0x3208,_0xa4e69f={...DEFAULT_OPTIONS,..._0x29d09a},_0x14d9bf=[];for(const _0x2d42cd of _0x1f8f02){_0x14d9bf['push']({'name':_0x2d42cd[_0x25368a(0x164)],'icon':_0xa4e69f['showIcons']?'📁':'','metadata':undefined});}for(const _0x5e5511 of _0x493b16){const _0x42df12=_0xa4e69f[_0x25368a(0x15f)]&&_0x5e5511[_0x25368a(0x152)]!==undefined?a86_0x5c437f[_0x25368a(0x15c)]('\x20('+formatRows(_0x5e5511[_0x25368a(0x152)])+')'):'';_0x14d9bf[_0x25368a(0x155)]({'name':_0x5e5511[_0x25368a(0x164)],'icon':_0xa4e69f[_0x25368a(0x14d)]?'🎯':'','metadata':_0x42df12});}_0x14d9bf['sort']((_0x391731,_0x1ec05e)=>_0x391731[_0x25368a(0x164)][_0x25368a(0x16b)](_0x1ec05e[_0x25368a(0x164)]));if(_0x14d9bf[_0x25368a(0x160)]===0x0)return _0x25368a(0x168);const _0x10fc19=_0x14d9bf[_0x25368a(0x15e)](_0x2acce4=>{const _0x387526=_0x25368a,_0x2a756d=_0x2acce4[_0x387526(0x153)]?_0x2acce4[_0x387526(0x153)]+'\x20':'',_0x4e5949=_0x2acce4[_0x387526(0x14b)]||'';return''+_0x2a756d+_0x2acce4['name']+_0x4e5949;});return _0x10fc19[_0x25368a(0x166)]('\x0a');}function a86_0x39ae(){const _0x255c82=['map','showMetadata','length','838iQcZLl','19468bgoFNy','type','name','2346KcshSq','join','1827NPHwDD','(empty)','children','segmentCount','localeCompare','folder','🎯\x20','15319160FUuBLv','\x20\x20\x20','2980710yHuBhb','segment','metadata','687cjwkGB','showIcons','376CAiIaD','folderCount','\x20\x20\x20\x20','2611411FvIilE','population','icon','📁\x20','push','26955rvCBGu','13797NprPwK','indent','\x20segment','sort','12tkoLXc','dim','showTreeLines'];a86_0x39ae=function(){return _0x255c82;};return a86_0x39ae();}
@@ -1 +1 @@
1
- (function(_0x2bb175,_0x5bf314){const _0x133386=a86_0x54a3,_0x5000ed=_0x2bb175();while(!![]){try{const _0x24384e=-parseInt(_0x133386(0xf3))/0x1+parseInt(_0x133386(0x108))/0x2+-parseInt(_0x133386(0x106))/0x3+parseInt(_0x133386(0x100))/0x4+-parseInt(_0x133386(0x104))/0x5+parseInt(_0x133386(0xec))/0x6*(-parseInt(_0x133386(0xf8))/0x7)+parseInt(_0x133386(0xfc))/0x8*(parseInt(_0x133386(0xf2))/0x9);if(_0x24384e===_0x5bf314)break;else _0x5000ed['push'](_0x5000ed['shift']());}catch(_0x1a3874){_0x5000ed['push'](_0x5000ed['shift']());}}}(a86_0x12bb,0x57aab));import{get}from'https';function a86_0x54a3(_0x28efa0,_0x23e1f1){const _0x12bb5=a86_0x12bb();return a86_0x54a3=function(_0x54a3ed,_0x2c43e7){_0x54a3ed=_0x54a3ed-0xe6;let _0x4236d6=_0x12bb5[_0x54a3ed];return _0x4236d6;},a86_0x54a3(_0x28efa0,_0x23e1f1);}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a86_0x194a1d from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x535974=a86_0x54a3,_0x5d7ca7=getCacheDir();return join(_0x5d7ca7,_0x535974(0x107));}function readCache(){const _0x35f155=a86_0x54a3;try{const _0x5b3fd8=getCacheFilePath(),_0x43df9b=readFileSync(_0x5b3fd8,_0x35f155(0xeb));return JSON[_0x35f155(0xf6)](_0x43df9b);}catch{return null;}}function writeCache(_0x18dc60){const _0x22d807=a86_0x54a3;try{const _0x3ff9a4=getCacheDir();mkdirSync(_0x3ff9a4,{'recursive':!![]});const _0x27c88e={'lastCheck':new Date()[_0x22d807(0xe8)](),'latestVersion':_0x18dc60},_0x7d277=getCacheFilePath();writeFileSync(_0x7d277,JSON[_0x22d807(0xe9)](_0x27c88e,null,0x2),_0x22d807(0xeb));}catch{}}function isCacheValid(_0x4a645a){const _0x6741f8=a86_0x54a3;if(!_0x4a645a)return![];const _0x330315=new Date(_0x4a645a[_0x6741f8(0xf7)])['getTime'](),_0x5855d7=Date[_0x6741f8(0xf0)]();return _0x5855d7-_0x330315<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x91f72c,_0x4b047f)=>{const _0x4874d2=a86_0x54a3,_0x56ec16=get(NPM_REGISTRY_URL,_0x21ad02=>{const _0x5df245=a86_0x54a3;if(_0x21ad02['statusCode']!==0xc8){clearTimeout(_0x1135a6),_0x4b047f(new Error('HTTP\x20'+_0x21ad02[_0x5df245(0x101)]));return;}let _0x83b812='';_0x21ad02['on']('data',_0x2886b1=>{_0x83b812+=_0x2886b1;}),_0x21ad02['on'](_0x5df245(0xfb),()=>{const _0x17e45c=_0x5df245;clearTimeout(_0x1135a6);try{const _0x394293=JSON[_0x17e45c(0xf6)](_0x83b812);if(!valid(_0x394293['version'])){_0x4b047f(new Error(_0x17e45c(0xfa)));return;}_0x91f72c(_0x394293['version']);}catch(_0x27975e){_0x4b047f(_0x27975e);}});})['on'](_0x4874d2(0xf4),_0x40c920=>{clearTimeout(_0x1135a6),_0x4b047f(_0x40c920);}),_0x1135a6=setTimeout(()=>{const _0x28192c=_0x4874d2;_0x56ec16[_0x28192c(0xfd)](),_0x4b047f(new Error(_0x28192c(0xf9)));},TIMEOUT_MS);});}export async function checkForUpdate(_0xfd1b80){const _0x1a478e=a86_0x54a3;try{const _0xc7e262=readCache();if(isCacheValid(_0xc7e262)){const _0x551ad7=gt(_0xc7e262[_0x1a478e(0x102)],_0xfd1b80);return{'updateAvailable':_0x551ad7,'currentVersion':_0xfd1b80,'latestVersion':_0xc7e262[_0x1a478e(0x102)]};}const _0x3dfd12=await fetchLatestVersion();writeCache(_0x3dfd12);const _0x26f187=gt(_0x3dfd12,_0xfd1b80);return{'updateAvailable':_0x26f187,'currentVersion':_0xfd1b80,'latestVersion':_0x3dfd12};}catch{return null;}}function a86_0x12bb(){const _0xe50597=['Request\x20timeout','Invalid\x20version\x20format','end','4152vtBScR','destroy','isTTY','Run:','575640oNwwav','statusCode','latestVersion','currentVersion','2976285pluNXu','Update\x20available:','1480983WGYORC','last_version_check','440954Ylpdfk','stderr','yellow','\x0aRun:\x20','toISOString','stringify','npm\x20install\x20-g\x20@treasuredata/tdx@latest','utf-8','12mxpnQM','\x0aUpdate\x20available:\x20','dim','env','now','updateAvailable','34011WMYGcn','291073jexjbc','error','cyan','parse','lastCheck','2053149kPsPDq'];a86_0x12bb=function(){return _0xe50597;};return a86_0x12bb();}export function displayUpdateNotification(_0x3e641e){const _0x289f8a=a86_0x54a3;if(!_0x3e641e[_0x289f8a(0xf1)])return;const _0x2a832f=process['stderr'][_0x289f8a(0xfe)]&&!process[_0x289f8a(0xef)]['NO_COLOR'],_0x1a4554=_0x2a832f?a86_0x194a1d['gray']('→'):'→',_0xb6cdb0=_0x2a832f?a86_0x194a1d[_0x289f8a(0xee)](_0x3e641e[_0x289f8a(0x103)]):_0x3e641e[_0x289f8a(0x103)],_0x41e30a=_0x2a832f?a86_0x194a1d['green'](_0x3e641e[_0x289f8a(0x102)]):_0x3e641e['latestVersion'],_0x2a3cfa=_0x2a832f?a86_0x194a1d[_0x289f8a(0xf5)]('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x289f8a(0xea),_0x369d84=_0x2a832f?'\x0a'+a86_0x194a1d[_0x289f8a(0xe6)](_0x289f8a(0x105))+'\x20'+_0xb6cdb0+'\x20'+_0x1a4554+'\x20'+_0x41e30a+'\x0a'+a86_0x194a1d[_0x289f8a(0xee)](_0x289f8a(0xff))+'\x20'+_0x2a3cfa+'\x0a':_0x289f8a(0xed)+_0xb6cdb0+'\x20'+_0x1a4554+'\x20'+_0x41e30a+_0x289f8a(0xe7)+_0x2a3cfa+'\x0a';process[_0x289f8a(0x109)]['write'](_0x369d84);}
1
+ (function(_0x1aed3f,_0x51ece9){const _0x222263=a87_0xa4b9,_0x31ea6a=_0x1aed3f();while(!![]){try{const _0x512e02=parseInt(_0x222263(0x139))/0x1+-parseInt(_0x222263(0x127))/0x2+parseInt(_0x222263(0x128))/0x3+-parseInt(_0x222263(0x130))/0x4+parseInt(_0x222263(0x123))/0x5+parseInt(_0x222263(0x134))/0x6*(parseInt(_0x222263(0x13b))/0x7)+parseInt(_0x222263(0x125))/0x8;if(_0x512e02===_0x51ece9)break;else _0x31ea6a['push'](_0x31ea6a['shift']());}catch(_0x40a4ae){_0x31ea6a['push'](_0x31ea6a['shift']());}}}(a87_0xd00d,0xd8174));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a87_0x11ad14 from'chalk';function a87_0xa4b9(_0x56085d,_0x754e5e){const _0xd00de8=a87_0xd00d();return a87_0xa4b9=function(_0xa4b970,_0x211642){_0xa4b970=_0xa4b970-0x11b;let _0x46928a=_0xd00de8[_0xa4b970];return _0x46928a;},a87_0xa4b9(_0x56085d,_0x754e5e);}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x52f9af=getCacheDir();return join(_0x52f9af,'last_version_check');}function a87_0xd00d(){const _0x11146c=['414618eSrRHk','gray','707pxyPAZ','green','yellow','Run:','env','data','currentVersion','utf-8','Update\x20available:','version','statusCode','isTTY','now','stringify','updateAvailable','1389335KDdqNv','Invalid\x20version\x20format','499416pdUgkx','dim','79288RpSZNP','1040772mRBxhh','npm\x20install\x20-g\x20@treasuredata/tdx@latest','cyan','stderr','HTTP\x20','end','getTime','destroy','808124PDrWHx','parse','NO_COLOR','Request\x20timeout','1482wEOEem','lastCheck','\x0aRun:\x20','write','latestVersion'];a87_0xd00d=function(){return _0x11146c;};return a87_0xd00d();}function readCache(){const _0xcd8f85=a87_0xa4b9;try{const _0x5a8732=getCacheFilePath(),_0xb95439=readFileSync(_0x5a8732,_0xcd8f85(0x11b));return JSON[_0xcd8f85(0x131)](_0xb95439);}catch{return null;}}function writeCache(_0x2c0052){const _0xaeb8eb=a87_0xa4b9;try{const _0x2b036a=getCacheDir();mkdirSync(_0x2b036a,{'recursive':!![]});const _0x27f7c9={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2c0052},_0x3595aa=getCacheFilePath();writeFileSync(_0x3595aa,JSON[_0xaeb8eb(0x121)](_0x27f7c9,null,0x2),_0xaeb8eb(0x11b));}catch{}}function isCacheValid(_0x23e5ab){const _0x488548=a87_0xa4b9;if(!_0x23e5ab)return![];const _0x239354=new Date(_0x23e5ab[_0x488548(0x135)])[_0x488548(0x12e)](),_0x35675e=Date[_0x488548(0x120)]();return _0x35675e-_0x239354<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4947d4,_0x281f5b)=>{const _0x2d72b2=get(NPM_REGISTRY_URL,_0x6060e1=>{const _0x25d0bf=a87_0xa4b9;if(_0x6060e1[_0x25d0bf(0x11e)]!==0xc8){clearTimeout(_0x5de96a),_0x281f5b(new Error(_0x25d0bf(0x12c)+_0x6060e1[_0x25d0bf(0x11e)]));return;}let _0x4f3c01='';_0x6060e1['on'](_0x25d0bf(0x140),_0x58b077=>{_0x4f3c01+=_0x58b077;}),_0x6060e1['on'](_0x25d0bf(0x12d),()=>{const _0x5e42d9=_0x25d0bf;clearTimeout(_0x5de96a);try{const _0x25f293=JSON[_0x5e42d9(0x131)](_0x4f3c01);if(!valid(_0x25f293[_0x5e42d9(0x11d)])){_0x281f5b(new Error(_0x5e42d9(0x124)));return;}_0x4947d4(_0x25f293[_0x5e42d9(0x11d)]);}catch(_0xd62200){_0x281f5b(_0xd62200);}});})['on']('error',_0x5e2d21=>{clearTimeout(_0x5de96a),_0x281f5b(_0x5e2d21);}),_0x5de96a=setTimeout(()=>{const _0xabedc8=a87_0xa4b9;_0x2d72b2[_0xabedc8(0x12f)](),_0x281f5b(new Error(_0xabedc8(0x133)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x55f2cb){const _0x402f0a=a87_0xa4b9;try{const _0x257073=readCache();if(isCacheValid(_0x257073)){const _0x7932b4=gt(_0x257073[_0x402f0a(0x138)],_0x55f2cb);return{'updateAvailable':_0x7932b4,'currentVersion':_0x55f2cb,'latestVersion':_0x257073[_0x402f0a(0x138)]};}const _0x15476d=await fetchLatestVersion();writeCache(_0x15476d);const _0x4ab712=gt(_0x15476d,_0x55f2cb);return{'updateAvailable':_0x4ab712,'currentVersion':_0x55f2cb,'latestVersion':_0x15476d};}catch{return null;}}export function displayUpdateNotification(_0x4f904e){const _0x59850c=a87_0xa4b9;if(!_0x4f904e[_0x59850c(0x122)])return;const _0x19acc7=process['stderr'][_0x59850c(0x11f)]&&!process[_0x59850c(0x13f)][_0x59850c(0x132)],_0x3f99df=_0x19acc7?a87_0x11ad14[_0x59850c(0x13a)]('→'):'→',_0x4b68f4=_0x19acc7?a87_0x11ad14[_0x59850c(0x126)](_0x4f904e[_0x59850c(0x141)]):_0x4f904e[_0x59850c(0x141)],_0x4842c5=_0x19acc7?a87_0x11ad14[_0x59850c(0x13c)](_0x4f904e[_0x59850c(0x138)]):_0x4f904e[_0x59850c(0x138)],_0x1c60c6=_0x19acc7?a87_0x11ad14[_0x59850c(0x12a)](_0x59850c(0x129)):_0x59850c(0x129),_0x5b27c5=_0x19acc7?'\x0a'+a87_0x11ad14[_0x59850c(0x13d)](_0x59850c(0x11c))+'\x20'+_0x4b68f4+'\x20'+_0x3f99df+'\x20'+_0x4842c5+'\x0a'+a87_0x11ad14[_0x59850c(0x126)](_0x59850c(0x13e))+'\x20'+_0x1c60c6+'\x0a':'\x0aUpdate\x20available:\x20'+_0x4b68f4+'\x20'+_0x3f99df+'\x20'+_0x4842c5+_0x59850c(0x136)+_0x1c60c6+'\x0a';process[_0x59850c(0x12b)][_0x59850c(0x137)](_0x5b27c5);}
@@ -1 +1 @@
1
- const a87_0x571943=a87_0x35b3;(function(_0x18a09c,_0x1537e8){const _0x5ead0d=a87_0x35b3,_0x5b017a=_0x18a09c();while(!![]){try{const _0x6c2fe2=-parseInt(_0x5ead0d(0xca))/0x1*(-parseInt(_0x5ead0d(0xd1))/0x2)+parseInt(_0x5ead0d(0xd5))/0x3*(parseInt(_0x5ead0d(0xcf))/0x4)+-parseInt(_0x5ead0d(0xd2))/0x5*(-parseInt(_0x5ead0d(0xd3))/0x6)+-parseInt(_0x5ead0d(0xcb))/0x7+parseInt(_0x5ead0d(0xd4))/0x8+parseInt(_0x5ead0d(0xcc))/0x9+parseInt(_0x5ead0d(0xd0))/0xa*(-parseInt(_0x5ead0d(0xce))/0xb);if(_0x6c2fe2===_0x1537e8)break;else _0x5b017a['push'](_0x5b017a['shift']());}catch(_0x4905b3){_0x5b017a['push'](_0x5b017a['shift']());}}}(a87_0x3ad9,0x6a3fa));export const WORKFLOW_FILE_EXTENSION=a87_0x571943(0xcd);function a87_0x3ad9(){const _0x218f61=['2644468DFTEpe','100570pZDlaC','2QJcWhK','655qLtcjU','10986BBpBwa','1391520EEwrph','3WDJZrm','.digdag','409177qemtIT','3298806KMVzwx','7744572fNVwub','.dig','1573MlSsQv'];a87_0x3ad9=function(){return _0x218f61;};return a87_0x3ad9();}function a87_0x35b3(_0x9cb664,_0x54ae73){const _0x3ad973=a87_0x3ad9();return a87_0x35b3=function(_0x35b3de,_0x12266d){_0x35b3de=_0x35b3de-0xc9;let _0x313398=_0x3ad973[_0x35b3de];return _0x313398;},a87_0x35b3(_0x9cb664,_0x54ae73);}export function shouldIncludeInArchive(_0x3e9973){const _0x405d5c=a87_0x571943;if(_0x3e9973===_0x405d5c(0xc9))return!![];if(_0x3e9973['startsWith']('.'))return![];return!![];}
1
+ function a88_0x4873(_0x85cfd4,_0x1bf337){const _0x57de92=a88_0x57de();return a88_0x4873=function(_0x4873e1,_0x1b2d7d){_0x4873e1=_0x4873e1-0x15b;let _0x348094=_0x57de92[_0x4873e1];return _0x348094;},a88_0x4873(_0x85cfd4,_0x1bf337);}(function(_0x3e15fc,_0x42a820){const _0x1de891=a88_0x4873,_0x451a1c=_0x3e15fc();while(!![]){try{const _0x36c9dc=-parseInt(_0x1de891(0x15d))/0x1+parseInt(_0x1de891(0x15c))/0x2*(-parseInt(_0x1de891(0x15b))/0x3)+parseInt(_0x1de891(0x161))/0x4+-parseInt(_0x1de891(0x162))/0x5+parseInt(_0x1de891(0x165))/0x6*(-parseInt(_0x1de891(0x160))/0x7)+parseInt(_0x1de891(0x164))/0x8+-parseInt(_0x1de891(0x15f))/0x9*(-parseInt(_0x1de891(0x15e))/0xa);if(_0x36c9dc===_0x42a820)break;else _0x451a1c['push'](_0x451a1c['shift']());}catch(_0x5dfc61){_0x451a1c['push'](_0x451a1c['shift']());}}}(a88_0x57de,0xc7392));function a88_0x57de(){const _0x99432=['2030OMHKpS','4964076prdBIE','2510960hwOAtC','.digdag','5524832RKjTLv','7932VQDPvN','2894739cJpsYB','2RWXyxn','554897JANynH','678830qfScAo','171TDRoPE'];a88_0x57de=function(){return _0x99432;};return a88_0x57de();}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x31c1fb){const _0x27a4b2=a88_0x4873;if(_0x31c1fb===_0x27a4b2(0x163))return!![];if(_0x31c1fb['startsWith']('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {