@treasuredata/tdx 0.1.9 → 0.1.11

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 (76) hide show
  1. package/README.md +68 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.d.ts +21 -0
  15. package/dist/commands/claude-command.d.ts.map +1 -0
  16. package/dist/commands/claude-command.js +1 -0
  17. package/dist/commands/claude-command.js.map +1 -0
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/context-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/profiles-command.js +1 -1
  25. package/dist/commands/query-command.js +1 -1
  26. package/dist/commands/segment-command.js +1 -1
  27. package/dist/commands/segments.js +1 -1
  28. package/dist/commands/show.js +1 -1
  29. package/dist/commands/tables.js +1 -1
  30. package/dist/commands/use-command.js +1 -1
  31. package/dist/commands/workflow-command.js +1 -1
  32. package/dist/core/auth.js +1 -1
  33. package/dist/core/config.js +1 -1
  34. package/dist/core/global-context.js +1 -1
  35. package/dist/core/profile.js +1 -1
  36. package/dist/core/project-config.js +1 -1
  37. package/dist/core/session.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/proxy/anthropic-adapter.js +1 -1
  40. package/dist/proxy/server.js +1 -1
  41. package/dist/sdk/api.js +1 -1
  42. package/dist/sdk/database.js +1 -1
  43. package/dist/sdk/errors.d.ts +2 -0
  44. package/dist/sdk/errors.d.ts.map +1 -1
  45. package/dist/sdk/errors.js +1 -1
  46. package/dist/sdk/errors.js.map +1 -1
  47. package/dist/sdk/index.js +1 -1
  48. package/dist/sdk/llm.js +1 -1
  49. package/dist/sdk/query.js +1 -1
  50. package/dist/sdk/segment.js +1 -1
  51. package/dist/sdk/table.js +1 -1
  52. package/dist/sdk/workflow.js +1 -1
  53. package/dist/types/endpoints.js +1 -1
  54. package/dist/types/index.js +1 -1
  55. package/dist/utils/agent-ref-parser.js +1 -1
  56. package/dist/utils/chat-cache.js +1 -1
  57. package/dist/utils/colors.js +1 -1
  58. package/dist/utils/command-output.js +1 -1
  59. package/dist/utils/file-permissions.js +1 -1
  60. package/dist/utils/format-detector.js +1 -1
  61. package/dist/utils/formatters.js +1 -1
  62. package/dist/utils/model-aliases.js +1 -1
  63. package/dist/utils/option-validation.js +1 -1
  64. package/dist/utils/port.d.ts +18 -0
  65. package/dist/utils/port.d.ts.map +1 -0
  66. package/dist/utils/port.js +1 -0
  67. package/dist/utils/port.js.map +1 -0
  68. package/dist/utils/process.js +1 -1
  69. package/dist/utils/segment-ref-parser.js +1 -1
  70. package/dist/utils/spinner.js +1 -1
  71. package/dist/utils/sql-parser.js +1 -1
  72. package/dist/utils/sse-parser.js +1 -1
  73. package/dist/utils/string-utils.js +1 -1
  74. package/dist/utils/table-ref-parser.js +1 -1
  75. package/dist/utils/workflow-utils.js +1 -1
  76. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x12c3e4,_0x5bf618){const _0x2fa9b1=a49_0x50a9,_0x47f864=_0x12c3e4();while(!![]){try{const _0x51098d=parseInt(_0x2fa9b1(0x122))/0x1+-parseInt(_0x2fa9b1(0x121))/0x2+parseInt(_0x2fa9b1(0x123))/0x3*(-parseInt(_0x2fa9b1(0x11f))/0x4)+parseInt(_0x2fa9b1(0x119))/0x5*(parseInt(_0x2fa9b1(0x11e))/0x6)+parseInt(_0x2fa9b1(0x120))/0x7*(-parseInt(_0x2fa9b1(0x116))/0x8)+-parseInt(_0x2fa9b1(0x11b))/0x9*(-parseInt(_0x2fa9b1(0x11d))/0xa)+parseInt(_0x2fa9b1(0x124))/0xb;if(_0x51098d===_0x5bf618)break;else _0x47f864['push'](_0x47f864['shift']());}catch(_0xe14784){_0x47f864['push'](_0x47f864['shift']());}}}(a49_0x3eba,0x770e7));function a49_0x50a9(_0x2b91ad,_0x131e46){const _0x3ebad7=a49_0x3eba();return a49_0x50a9=function(_0x50a967,_0x11f2d2){_0x50a967=_0x50a967-0x116;let _0x31761c=_0x3ebad7[_0x50a967];return _0x31761c;},a49_0x50a9(_0x2b91ad,_0x131e46);}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x45a11f=a49_0x50a9;return join(process['cwd'](),_0x45a11f(0x117),_0x45a11f(0x11a));}function getLastChatIdPath(){const _0x181600=a49_0x50a9;return join(getCacheDir(),_0x181600(0x118));}function a49_0x3eba(){const _0x3d0798=['70ZePyAt','6UqcXUY','28NrnBjI','287pzFzwz','834120ORdvdA','406536hameUP','153183ZrOVqo','8480802RcPwAQ','trim','97776GouOWY','.cache','last_chat_id','210355KqilAh','tdx','698985IOYWEw','utf-8'];a49_0x3eba=function(){return _0x3d0798;};return a49_0x3eba();}function ensureCacheDir(){const _0x91ee66=getCacheDir();!existsSync(_0x91ee66)&&mkdirSync(_0x91ee66,{'recursive':!![]});}export function saveLastChatId(_0x1484b7){const _0x499e1a=a49_0x50a9;ensureCacheDir();const _0xb7f8fe=getLastChatIdPath();writeFileSync(_0xb7f8fe,_0x1484b7,_0x499e1a(0x11c));}export function loadLastChatId(){const _0x1f61c6=a49_0x50a9,_0x1c58a8=getLastChatIdPath();if(!existsSync(_0x1c58a8))return undefined;try{const _0x44b15e=readFileSync(_0x1c58a8,_0x1f61c6(0x11c))[_0x1f61c6(0x125)]();return _0x44b15e||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x5dfa03=a49_0x50a9,_0x388b76=getLastChatIdPath();if(existsSync(_0x388b76))try{writeFileSync(_0x388b76,'',_0x5dfa03(0x11c));}catch{}}
1
+ (function(_0x6624d7,_0x3e3d84){const _0xb0f9d6=a50_0x39e9,_0x157099=_0x6624d7();while(!![]){try{const _0x500f4c=parseInt(_0xb0f9d6(0x137))/0x1+-parseInt(_0xb0f9d6(0x13b))/0x2*(parseInt(_0xb0f9d6(0x12d))/0x3)+parseInt(_0xb0f9d6(0x131))/0x4*(parseInt(_0xb0f9d6(0x132))/0x5)+parseInt(_0xb0f9d6(0x12e))/0x6*(-parseInt(_0xb0f9d6(0x139))/0x7)+parseInt(_0xb0f9d6(0x138))/0x8*(parseInt(_0xb0f9d6(0x12c))/0x9)+-parseInt(_0xb0f9d6(0x13c))/0xa*(-parseInt(_0xb0f9d6(0x135))/0xb)+-parseInt(_0xb0f9d6(0x134))/0xc;if(_0x500f4c===_0x3e3d84)break;else _0x157099['push'](_0x157099['shift']());}catch(_0x3e5a5b){_0x157099['push'](_0x157099['shift']());}}}(a50_0x16fe,0x7ec08));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function a50_0x16fe(){const _0x12da4f=['cwd','tdx','4upegqh','984215qksNdu','trim','8372124zugKwL','363385BTGEOb','last_chat_id','346488roFuzs','5359456kGJsqj','511jfrUGj','utf-8','296dDmDxj','250GnknTZ','.cache','9ZiLdYf','1662xASmQH','60846XDobdw'];a50_0x16fe=function(){return _0x12da4f;};return a50_0x16fe();}function getCacheDir(){const _0xad347b=a50_0x39e9;return join(process[_0xad347b(0x12f)](),_0xad347b(0x13d),_0xad347b(0x130));}function a50_0x39e9(_0x190191,_0x4a6fa0){const _0x16fe3f=a50_0x16fe();return a50_0x39e9=function(_0x39e903,_0x543cfb){_0x39e903=_0x39e903-0x12c;let _0x2c703f=_0x16fe3f[_0x39e903];return _0x2c703f;},a50_0x39e9(_0x190191,_0x4a6fa0);}function getLastChatIdPath(){const _0x5a6eb2=a50_0x39e9;return join(getCacheDir(),_0x5a6eb2(0x136));}function ensureCacheDir(){const _0x3a0333=getCacheDir();!existsSync(_0x3a0333)&&mkdirSync(_0x3a0333,{'recursive':!![]});}export function saveLastChatId(_0x50c6d6){const _0x4b3d87=a50_0x39e9;ensureCacheDir();const _0x2e99e6=getLastChatIdPath();writeFileSync(_0x2e99e6,_0x50c6d6,_0x4b3d87(0x13a));}export function loadLastChatId(){const _0x1de617=a50_0x39e9,_0x4636c2=getLastChatIdPath();if(!existsSync(_0x4636c2))return undefined;try{const _0xf54811=readFileSync(_0x4636c2,_0x1de617(0x13a))[_0x1de617(0x133)]();return _0xf54811||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x57f2e6=getLastChatIdPath();if(existsSync(_0x57f2e6))try{writeFileSync(_0x57f2e6,'','utf-8');}catch{}}
@@ -1 +1 @@
1
- (function(_0x3cb68e,_0x57ca7a){const _0x1ece8e=a50_0x1d3f,_0x24c1b3=_0x3cb68e();while(!![]){try{const _0x4cc07f=-parseInt(_0x1ece8e(0x1c3))/0x1+parseInt(_0x1ece8e(0x1bb))/0x2+parseInt(_0x1ece8e(0x1c4))/0x3+-parseInt(_0x1ece8e(0x1bc))/0x4*(parseInt(_0x1ece8e(0x1d4))/0x5)+-parseInt(_0x1ece8e(0x1c9))/0x6+-parseInt(_0x1ece8e(0x1be))/0x7*(-parseInt(_0x1ece8e(0x1d7))/0x8)+-parseInt(_0x1ece8e(0x1c1))/0x9;if(_0x4cc07f===_0x57ca7a)break;else _0x24c1b3['push'](_0x24c1b3['shift']());}catch(_0x2634e8){_0x24c1b3['push'](_0x24c1b3['shift']());}}}(a50_0x306b,0x5c878));import{Chalk}from'chalk';function a50_0x1d3f(_0x2b3647,_0x3c880a){const _0x306bd4=a50_0x306b();return a50_0x1d3f=function(_0x1d3f13,_0x403e0f){_0x1d3f13=_0x1d3f13-0x1ba;let _0x59d19b=_0x306bd4[_0x1d3f13];return _0x59d19b;},a50_0x1d3f(_0x2b3647,_0x3c880a);}export function shouldUseColor(_0x383f1b={}){const _0x539103=a50_0x1d3f;if(_0x383f1b[_0x539103(0x1ce)]===!![])return![];if(_0x383f1b['color']===!![])return!![];if(process[_0x539103(0x1c0)][_0x539103(0x1c2)]!==undefined)return![];return process[_0x539103(0x1bf)][_0x539103(0x1bd)]??![];}function getChalk(_0x10ade5={}){if(shouldUseColor(_0x10ade5))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2f06a3,_0xfaee3a={}){const _0x221624=a50_0x1d3f;return getChalk(_0xfaee3a)[_0x221624(0x1d1)](_0x2f06a3);}export function colorHeader(_0x1546bf,_0xdb379={}){const _0x477cfb=a50_0x1d3f;return getChalk(_0xdb379)[_0x477cfb(0x1d0)](_0x1546bf);}function a50_0x306b(){const _0x89f60b=['dim','repeat','stringify','2205485eLIcqb','join','null','15408hAlWGI','map','738166GTdiLN','4lgEkdf','isTTY','1589PGZBGk','stdout','env','1734669xAeCxV','NO_COLOR','42801niSPqv','1077651kELLRi','green','yellow','number','isArray','659178tLlgMb','object','boolean','blue','string','noColor','length','cyan'];a50_0x306b=function(){return _0x89f60b;};return a50_0x306b();}export function colorType(_0x53a100,_0x4620ef={}){const _0x322df1=a50_0x1d3f;return getChalk(_0x4620ef)[_0x322df1(0x1d1)](_0x53a100);}export function colorJSONKey(_0x26afc5,_0xe24b5c={}){const _0x1e3044=a50_0x1d3f;return getChalk(_0xe24b5c)[_0x1e3044(0x1cc)](_0x26afc5);}export function colorJSONString(_0x1a90a7,_0x26cced={}){const _0x7ba76f=a50_0x1d3f;return getChalk(_0x26cced)[_0x7ba76f(0x1c5)](_0x1a90a7);}export function colorJSONNumber(_0x391029,_0x328328={}){const _0x5181d4=a50_0x1d3f;return getChalk(_0x328328)[_0x5181d4(0x1d0)](_0x391029);}export function colorJSONBoolean(_0x20c9cf,_0x55d8d1={}){const _0x796db4=a50_0x1d3f;return getChalk(_0x55d8d1)[_0x796db4(0x1c6)](_0x20c9cf);}export function colorJSONNull(_0x376486,_0x247a2b={}){const _0x164451=a50_0x1d3f;return getChalk(_0x247a2b)[_0x164451(0x1d1)](_0x376486);}export function colorizeJSONCompact(_0x14bc86,_0x5ccacb={}){const _0x5c15a4=a50_0x1d3f;if(!shouldUseColor(_0x5ccacb))return JSON[_0x5c15a4(0x1d3)](_0x14bc86);if(_0x14bc86===null)return colorJSONNull('null',_0x5ccacb);if(typeof _0x14bc86===_0x5c15a4(0x1cb))return colorJSONBoolean(String(_0x14bc86),_0x5ccacb);if(typeof _0x14bc86===_0x5c15a4(0x1c7))return colorJSONNumber(String(_0x14bc86),_0x5ccacb);if(typeof _0x14bc86===_0x5c15a4(0x1cd))return colorJSONString(JSON[_0x5c15a4(0x1d3)](_0x14bc86),_0x5ccacb);if(Array[_0x5c15a4(0x1c8)](_0x14bc86)){if(_0x14bc86[_0x5c15a4(0x1cf)]===0x0)return'[]';const _0x5f1db5=_0x14bc86['map'](_0xda10f2=>colorizeJSONCompact(_0xda10f2,_0x5ccacb));return'['+_0x5f1db5[_0x5c15a4(0x1d5)](',')+']';}if(typeof _0x14bc86===_0x5c15a4(0x1ca)){const _0x38e736=Object['entries'](_0x14bc86);if(_0x38e736[_0x5c15a4(0x1cf)]===0x0)return'{}';const _0x461b2c=_0x38e736[_0x5c15a4(0x1ba)](([_0xd4baab,_0x450212])=>{const _0x4403d9=colorJSONKey(JSON['stringify'](_0xd4baab),_0x5ccacb),_0x52fd88=colorizeJSONCompact(_0x450212,_0x5ccacb);return _0x4403d9+':'+_0x52fd88;});return'{'+_0x461b2c[_0x5c15a4(0x1d5)](',')+'}';}return String(_0x14bc86);}export function colorizeJSON(_0x3e2d52,_0x2cb431={},_0x49af95=0x0){const _0x34a624=a50_0x1d3f;if(!shouldUseColor(_0x2cb431))return JSON[_0x34a624(0x1d3)](_0x3e2d52,null,0x2);const _0x2de035='\x20'[_0x34a624(0x1d2)](_0x49af95),_0x176c19=_0x49af95+0x2;if(_0x3e2d52===null)return colorJSONNull(_0x34a624(0x1d6),_0x2cb431);if(typeof _0x3e2d52===_0x34a624(0x1cb))return colorJSONBoolean(String(_0x3e2d52),_0x2cb431);if(typeof _0x3e2d52===_0x34a624(0x1c7))return colorJSONNumber(String(_0x3e2d52),_0x2cb431);if(typeof _0x3e2d52===_0x34a624(0x1cd))return colorJSONString(JSON[_0x34a624(0x1d3)](_0x3e2d52),_0x2cb431);if(Array[_0x34a624(0x1c8)](_0x3e2d52)){if(_0x3e2d52[_0x34a624(0x1cf)]===0x0)return'[]';const _0x17e3f0=_0x3e2d52[_0x34a624(0x1ba)](_0x32ad59=>{const _0x5191e8=_0x34a624,_0x1fb71b=colorizeJSON(_0x32ad59,_0x2cb431,_0x176c19);return''+'\x20'[_0x5191e8(0x1d2)](_0x176c19)+_0x1fb71b;});return'[\x0a'+_0x17e3f0[_0x34a624(0x1d5)](',\x0a')+('\x0a'+_0x2de035+']');}if(typeof _0x3e2d52===_0x34a624(0x1ca)){const _0x5c2458=Object['entries'](_0x3e2d52);if(_0x5c2458[_0x34a624(0x1cf)]===0x0)return'{}';const _0x205714=_0x5c2458[_0x34a624(0x1ba)](([_0x3616e0,_0x312c20])=>{const _0x558250=_0x34a624,_0x1aa8fa=colorJSONKey(JSON[_0x558250(0x1d3)](_0x3616e0),_0x2cb431),_0x2203ec=colorizeJSON(_0x312c20,_0x2cb431,_0x176c19);return''+'\x20'[_0x558250(0x1d2)](_0x176c19)+_0x1aa8fa+':\x20'+_0x2203ec;});return'{\x0a'+_0x205714[_0x34a624(0x1d5)](',\x0a')+('\x0a'+_0x2de035+'}');}return String(_0x3e2d52);}
1
+ (function(_0x40485a,_0x453465){const _0xaee46b=a51_0xc1c4,_0x3bd385=_0x40485a();while(!![]){try{const _0x107395=-parseInt(_0xaee46b(0x1d6))/0x1*(parseInt(_0xaee46b(0x1d3))/0x2)+-parseInt(_0xaee46b(0x1d1))/0x3*(-parseInt(_0xaee46b(0x1ec))/0x4)+-parseInt(_0xaee46b(0x1ce))/0x5*(-parseInt(_0xaee46b(0x1d5))/0x6)+-parseInt(_0xaee46b(0x1e6))/0x7+parseInt(_0xaee46b(0x1df))/0x8+parseInt(_0xaee46b(0x1da))/0x9+parseInt(_0xaee46b(0x1ea))/0xa*(-parseInt(_0xaee46b(0x1d8))/0xb);if(_0x107395===_0x453465)break;else _0x3bd385['push'](_0x3bd385['shift']());}catch(_0x543c6f){_0x3bd385['push'](_0x3bd385['shift']());}}}(a51_0x4b1c,0xeddbb));import{Chalk}from'chalk';function a51_0xc1c4(_0x44a84e,_0x4e3857){const _0x4b1c0a=a51_0x4b1c();return a51_0xc1c4=function(_0xc1c4a9,_0x1df223){_0xc1c4a9=_0xc1c4a9-0x1ce;let _0x26fdd=_0x4b1c0a[_0xc1c4a9];return _0x26fdd;},a51_0xc1c4(_0x44a84e,_0x4e3857);}export function shouldUseColor(_0x364f3e={}){const _0x460de8=a51_0xc1c4;if(_0x364f3e[_0x460de8(0x1ee)]===!![])return![];if(_0x364f3e[_0x460de8(0x1dd)]===!![])return!![];if(process[_0x460de8(0x1d7)][_0x460de8(0x1d2)]!==undefined)return![];return process[_0x460de8(0x1cf)][_0x460de8(0x1db)]??![];}function getChalk(_0x2b4198={}){if(shouldUseColor(_0x2b4198))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x7dbddd,_0x34a59e={}){return getChalk(_0x34a59e)['dim'](_0x7dbddd);}export function colorHeader(_0xdc1185,_0x193ff8={}){const _0x90a802=a51_0xc1c4;return getChalk(_0x193ff8)[_0x90a802(0x1e4)](_0xdc1185);}export function colorType(_0x4ef2a6,_0x7faf85={}){const _0x2f98af=a51_0xc1c4;return getChalk(_0x7faf85)[_0x2f98af(0x1d9)](_0x4ef2a6);}export function colorJSONKey(_0x21d980,_0xd735ac={}){const _0x44a1b6=a51_0xc1c4;return getChalk(_0xd735ac)[_0x44a1b6(0x1e9)](_0x21d980);}export function colorJSONString(_0x27cd15,_0x200ce2={}){return getChalk(_0x200ce2)['green'](_0x27cd15);}function a51_0x4b1c(){const _0x4ee759=['noColor','1224095oQwCVy','stdout','length','3sAYpNd','NO_COLOR','19662TZozeY','boolean','42tFHstf','135IRUrcq','env','399784PzimzR','dim','8855352dYfbqK','isTTY','yellow','color','stringify','6175704fQZBNn','null','isArray','number','entries','cyan','join','13509797GnPqZv','repeat','string','blue','260QdXank','map','6826972LgOiMB','object'];a51_0x4b1c=function(){return _0x4ee759;};return a51_0x4b1c();}export function colorJSONNumber(_0x53fb27,_0x401e87={}){return getChalk(_0x401e87)['cyan'](_0x53fb27);}export function colorJSONBoolean(_0xc3ed08,_0x12db0c={}){const _0x243b23=a51_0xc1c4;return getChalk(_0x12db0c)[_0x243b23(0x1dc)](_0xc3ed08);}export function colorJSONNull(_0x5f3dda,_0x466bac={}){const _0x123850=a51_0xc1c4;return getChalk(_0x466bac)[_0x123850(0x1d9)](_0x5f3dda);}export function colorizeJSONCompact(_0x3c3eaa,_0x59ed3e={}){const _0x113d88=a51_0xc1c4;if(!shouldUseColor(_0x59ed3e))return JSON[_0x113d88(0x1de)](_0x3c3eaa);if(_0x3c3eaa===null)return colorJSONNull(_0x113d88(0x1e0),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1d4))return colorJSONBoolean(String(_0x3c3eaa),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1e2))return colorJSONNumber(String(_0x3c3eaa),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1e8))return colorJSONString(JSON[_0x113d88(0x1de)](_0x3c3eaa),_0x59ed3e);if(Array['isArray'](_0x3c3eaa)){if(_0x3c3eaa[_0x113d88(0x1d0)]===0x0)return'[]';const _0x8286a3=_0x3c3eaa[_0x113d88(0x1eb)](_0x1b16b2=>colorizeJSONCompact(_0x1b16b2,_0x59ed3e));return'['+_0x8286a3[_0x113d88(0x1e5)](',')+']';}if(typeof _0x3c3eaa===_0x113d88(0x1ed)){const _0x2b31f4=Object[_0x113d88(0x1e3)](_0x3c3eaa);if(_0x2b31f4[_0x113d88(0x1d0)]===0x0)return'{}';const _0x21c190=_0x2b31f4[_0x113d88(0x1eb)](([_0x1f5477,_0x3df32b])=>{const _0xc7226a=_0x113d88,_0x35916b=colorJSONKey(JSON[_0xc7226a(0x1de)](_0x1f5477),_0x59ed3e),_0x3ecc2d=colorizeJSONCompact(_0x3df32b,_0x59ed3e);return _0x35916b+':'+_0x3ecc2d;});return'{'+_0x21c190['join'](',')+'}';}return String(_0x3c3eaa);}export function colorizeJSON(_0x4e2f10,_0x300edd={},_0x42d4b2=0x0){const _0x2f53e1=a51_0xc1c4;if(!shouldUseColor(_0x300edd))return JSON[_0x2f53e1(0x1de)](_0x4e2f10,null,0x2);const _0x446612='\x20'['repeat'](_0x42d4b2),_0x2abbf2=_0x42d4b2+0x2;if(_0x4e2f10===null)return colorJSONNull(_0x2f53e1(0x1e0),_0x300edd);if(typeof _0x4e2f10===_0x2f53e1(0x1d4))return colorJSONBoolean(String(_0x4e2f10),_0x300edd);if(typeof _0x4e2f10===_0x2f53e1(0x1e2))return colorJSONNumber(String(_0x4e2f10),_0x300edd);if(typeof _0x4e2f10==='string')return colorJSONString(JSON[_0x2f53e1(0x1de)](_0x4e2f10),_0x300edd);if(Array[_0x2f53e1(0x1e1)](_0x4e2f10)){if(_0x4e2f10[_0x2f53e1(0x1d0)]===0x0)return'[]';const _0x134ed7=_0x4e2f10[_0x2f53e1(0x1eb)](_0x903809=>{const _0x459ef5=_0x2f53e1,_0x1913f3=colorizeJSON(_0x903809,_0x300edd,_0x2abbf2);return''+'\x20'[_0x459ef5(0x1e7)](_0x2abbf2)+_0x1913f3;});return'[\x0a'+_0x134ed7['join'](',\x0a')+('\x0a'+_0x446612+']');}if(typeof _0x4e2f10===_0x2f53e1(0x1ed)){const _0x319ef6=Object['entries'](_0x4e2f10);if(_0x319ef6[_0x2f53e1(0x1d0)]===0x0)return'{}';const _0x5e9578=_0x319ef6['map'](([_0x136da8,_0x106725])=>{const _0x1f9f30=_0x2f53e1,_0x21bc75=colorJSONKey(JSON[_0x1f9f30(0x1de)](_0x136da8),_0x300edd),_0x1f7e62=colorizeJSON(_0x106725,_0x300edd,_0x2abbf2);return''+'\x20'[_0x1f9f30(0x1e7)](_0x2abbf2)+_0x21bc75+':\x20'+_0x1f7e62;});return'{\x0a'+_0x5e9578['join'](',\x0a')+('\x0a'+_0x446612+'}');}return String(_0x4e2f10);}
@@ -1 +1 @@
1
- function a51_0x4b81(){const _0x3e8d43=['length','2361651eDgSGE','12572270oXCKNB','color','double','noColor','isInteger','format','table','error','entries','json','sdk-result','stdout','output','FINISHED','end','resolve','isTTY','close','less','6BnaKBz','pipe','717345yDAUpW','11fSVVGg','3408436bGNgQD','6882410hgAWEv','329196HApAKR','spawn','Results\x20saved\x20to\x20','boolean','log','number','11929FWmUbF','./formatters.js','limit','94IrEhkl','stdin','8VxhFNl'];a51_0x4b81=function(){return _0x3e8d43;};return a51_0x4b81();}(function(_0x93a752,_0x48c938){const _0x58ba5a=a51_0x3b2a,_0xd83836=_0x93a752();while(!![]){try{const _0x26a30c=parseInt(_0x58ba5a(0x1c4))/0x1*(parseInt(_0x58ba5a(0x1c7))/0x2)+parseInt(_0x58ba5a(0x1cb))/0x3+-parseInt(_0x58ba5a(0x1bc))/0x4+parseInt(_0x58ba5a(0x1bd))/0x5*(parseInt(_0x58ba5a(0x1b8))/0x6)+parseInt(_0x58ba5a(0x1be))/0x7+-parseInt(_0x58ba5a(0x1c9))/0x8*(-parseInt(_0x58ba5a(0x1ba))/0x9)+parseInt(_0x58ba5a(0x1cc))/0xa*(-parseInt(_0x58ba5a(0x1bb))/0xb);if(_0x26a30c===_0x48c938)break;else _0xd83836['push'](_0xd83836['shift']());}catch(_0x17823c){_0xd83836['push'](_0xd83836['shift']());}}}(a51_0x4b81,0xb517f));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x21252d){const _0x159fe0=a51_0x3b2a;return{'format':_0x21252d[_0x159fe0(0x1d1)]||_0x159fe0(0x1d2),'output':_0x21252d[_0x159fe0(0x1d8)]||'','limit':_0x21252d[_0x159fe0(0x1c6)],'color':_0x21252d['color'],'noColor':_0x21252d[_0x159fe0(0x1cf)]};}function convertSDKResultToQueryResult(_0x103033){const _0x579e3c=a51_0x3b2a,_0x18053a=[];if(_0x103033[_0x579e3c(0x1ca)]>0x0){const _0x564af4=_0x103033[0x0];for(const [_0x2d7400,_0x24b37d]of Object[_0x579e3c(0x1d4)](_0x564af4)){let _0x47bb33='varchar';if(typeof _0x24b37d===_0x579e3c(0x1c3))_0x47bb33=Number[_0x579e3c(0x1d0)](_0x24b37d)?'bigint':_0x579e3c(0x1ce);else{if(typeof _0x24b37d===_0x579e3c(0x1c1))_0x47bb33=_0x579e3c(0x1c1);else _0x24b37d===null&&(_0x47bb33='varchar');}_0x18053a['push']({'name':_0x2d7400,'type':_0x47bb33});}}return{'queryId':_0x579e3c(0x1d6),'columns':_0x18053a,'data':_0x103033,'stats':{'state':_0x579e3c(0x1d9),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x103033[_0x579e3c(0x1ca)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}function a51_0x3b2a(_0x5e1330,_0x1f7966){const _0x4b814e=a51_0x4b81();return a51_0x3b2a=function(_0x3b2a3a,_0x20f871){_0x3b2a3a=_0x3b2a3a-0x1b8;let _0x3ccb5d=_0x4b814e[_0x3b2a3a];return _0x3ccb5d;},a51_0x3b2a(_0x5e1330,_0x1f7966);}export async function formatSDKOutput(_0x470b94,_0xc2f26){const _0x3f1473=convertSDKResultToQueryResult(_0x470b94);return formatQueryOutput(_0x3f1473,_0xc2f26);}export async function formatQueryOutput(_0x2b7162,_0x5ab932){const _0xbb90b6=a51_0x3b2a,{format:_0x2f5a84,limit:_0x5cdc16,output:_0x526b8c,color:_0xbd7ea8,noColor:_0x43c88f}=_0x5ab932,_0x308473=Boolean(_0x526b8c)&&!_0xbd7ea8,_0x2d892d={'color':_0xbd7ea8,'noColor':_0x43c88f||_0x308473};if(_0x2f5a84==='table'){const {formatAsTable:_0x4b6d23}=await import(_0xbb90b6(0x1c5)),_0x20e16c=shouldUseLess(_0x2f5a84,_0x526b8c);return _0x4b6d23(_0x2b7162,_0x5cdc16,_0x20e16c,_0x2d892d);}else{if(_0x2f5a84===_0xbb90b6(0x1d5)){const {formatAsJSON:_0x2983cd}=await import(_0xbb90b6(0x1c5));return _0x2983cd(_0x2b7162,_0x2d892d);}else{if(_0x2f5a84==='jsonl'){const {formatAsJSONL:_0xb2b324}=await import(_0xbb90b6(0x1c5));return _0xb2b324(_0x2b7162,_0x2d892d);}else{const {formatQueryResult:_0x5a7164}=await import(_0xbb90b6(0x1c5));return _0x5a7164(_0x2b7162,_0x2f5a84);}}}}function shouldUseLess(_0x10ad78,_0x311ea4){const _0x3d8c06=a51_0x3b2a;return _0x10ad78===_0x3d8c06(0x1d2)&&process[_0x3d8c06(0x1d7)][_0x3d8c06(0x1dc)]&&!_0x311ea4;}export function resolveOutputOptions(_0x4ee226){const _0x39ad51=a51_0x3b2a,_0x18499e=resolveOutputFormat(_0x4ee226[_0x39ad51(0x1d1)],_0x4ee226['output'],'table');let _0x670643=typeof _0x4ee226[_0x39ad51(0x1c6)]===_0x39ad51(0x1c3)?_0x4ee226[_0x39ad51(0x1c6)]:parseInt(_0x4ee226['limit']||'40',0xa);const _0x17419b=_0x4ee226[_0x39ad51(0x1d8)]||'';return shouldUseLess(_0x18499e,_0x17419b)&&(_0x670643=Infinity),{'format':_0x18499e,'output':_0x17419b,'limit':_0x670643,'color':_0x4ee226[_0x39ad51(0x1cd)],'noColor':_0x4ee226['noColor']};}export function writeOutput(_0x44edce,_0x21d62f,_0x1e2e26){const _0x2c939e=a51_0x3b2a;return _0x21d62f?(writeFileSync(_0x21d62f,_0x44edce),console[_0x2c939e(0x1d3)](_0x2c939e(0x1c0)+_0x21d62f),Promise[_0x2c939e(0x1db)]()):shouldUseLess(_0x1e2e26||'','')?new Promise(_0x54354b=>{const _0x2cfb05=_0x2c939e,_0x9d0604=spawn(_0x2cfb05(0x1de),['-FXRSn'],{'stdio':[_0x2cfb05(0x1b9),'inherit','inherit']});let _0x15a4a1=![];_0x9d0604['on'](_0x2cfb05(0x1d3),()=>{const _0xd806ea=_0x2cfb05;!_0x15a4a1&&(_0x15a4a1=!![],console[_0xd806ea(0x1c2)](_0x44edce),_0x54354b());}),_0x9d0604['on'](_0x2cfb05(0x1dd),()=>{!_0x15a4a1&&(_0x15a4a1=!![],_0x54354b());}),_0x9d0604['on'](_0x2cfb05(0x1bf),()=>{const _0x2510c3=_0x2cfb05;!_0x15a4a1&&_0x9d0604[_0x2510c3(0x1c8)]&&(_0x9d0604['stdin']['on'](_0x2510c3(0x1d3),()=>{}),_0x9d0604['stdin']['write'](_0x44edce),_0x9d0604[_0x2510c3(0x1c8)][_0x2510c3(0x1da)]());}),!_0x9d0604[_0x2cfb05(0x1c8)]&&(!_0x15a4a1&&(_0x15a4a1=!![],console['log'](_0x44edce),_0x54354b()));}):(console[_0x2c939e(0x1c2)](_0x44edce),Promise[_0x2c939e(0x1db)]());}export async function handleSDKOutput(_0x2a767a,_0x2a02a2){const _0x8254fe=a51_0x3b2a,_0x800308=resolveOutputOptions(_0x2a02a2),_0x56f83b=await formatSDKOutput(_0x2a767a,_0x800308);await writeOutput(_0x56f83b,_0x800308[_0x8254fe(0x1d8)]||undefined,_0x800308['format']);}export async function handleQueryOutput(_0x1f785b,_0x22b782){const _0x1ffa30=a51_0x3b2a,_0x50066b=resolveOutputOptions(_0x22b782),_0x3513ca=await formatQueryOutput(_0x1f785b,_0x50066b);await writeOutput(_0x3513ca,_0x50066b[_0x1ffa30(0x1d8)]||undefined,_0x50066b[_0x1ffa30(0x1d1)]);}
1
+ (function(_0x42c0f0,_0x42bbc3){const _0xb65c76=a52_0x4ee4,_0x380003=_0x42c0f0();while(!![]){try{const _0x46a396=-parseInt(_0xb65c76(0x92))/0x1+parseInt(_0xb65c76(0xaf))/0x2+parseInt(_0xb65c76(0x93))/0x3+-parseInt(_0xb65c76(0xa4))/0x4+parseInt(_0xb65c76(0xa5))/0x5*(parseInt(_0xb65c76(0xa1))/0x6)+parseInt(_0xb65c76(0x96))/0x7*(parseInt(_0xb65c76(0xa3))/0x8)+-parseInt(_0xb65c76(0x9f))/0x9;if(_0x46a396===_0x42bbc3)break;else _0x380003['push'](_0x380003['shift']());}catch(_0x204061){_0x380003['push'](_0x380003['shift']());}}}(a52_0x1c06,0xe4daf));import{writeFileSync}from'fs';function a52_0x4ee4(_0x185586,_0x30e239){const _0x1c067c=a52_0x1c06();return a52_0x4ee4=function(_0x4ee4ee,_0x20263a){_0x4ee4ee=_0x4ee4ee-0x89;let _0x4708ac=_0x1c067c[_0x4ee4ee];return _0x4708ac;},a52_0x4ee4(_0x185586,_0x30e239);}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x4505d2){const _0x4eb6d7=a52_0x4ee4;return{'format':_0x4505d2[_0x4eb6d7(0x9b)]||_0x4eb6d7(0xae),'output':_0x4505d2[_0x4eb6d7(0xac)]||'','limit':_0x4505d2[_0x4eb6d7(0x9d)],'color':_0x4505d2['color'],'noColor':_0x4505d2[_0x4eb6d7(0xad)]};}function convertSDKResultToQueryResult(_0x4d8a48){const _0x3672a4=a52_0x4ee4,_0x42c934=[];if(_0x4d8a48[_0x3672a4(0xb0)]>0x0){const _0x9babf9=_0x4d8a48[0x0];for(const [_0x450c38,_0x2e5c87]of Object[_0x3672a4(0x9c)](_0x9babf9)){let _0x1ab3b7=_0x3672a4(0x8e);if(typeof _0x2e5c87===_0x3672a4(0xa0))_0x1ab3b7=Number[_0x3672a4(0x99)](_0x2e5c87)?'bigint':_0x3672a4(0x89);else{if(typeof _0x2e5c87===_0x3672a4(0xb1))_0x1ab3b7=_0x3672a4(0xb1);else _0x2e5c87===null&&(_0x1ab3b7=_0x3672a4(0x8e));}_0x42c934[_0x3672a4(0x91)]({'name':_0x450c38,'type':_0x1ab3b7});}}return{'queryId':_0x3672a4(0x97),'columns':_0x42c934,'data':_0x4d8a48,'stats':{'state':_0x3672a4(0x8a),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x4d8a48['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x3483b5,_0x195232){const _0xb7ae57=convertSDKResultToQueryResult(_0x3483b5);return formatQueryOutput(_0xb7ae57,_0x195232);}export async function formatQueryOutput(_0x3a7600,_0x50ccff){const _0x55d156=a52_0x4ee4,{format:_0x2e54ce,limit:_0x22058d,output:_0x2787b8,color:_0x152d07,noColor:_0x88b603}=_0x50ccff,_0x1e4dee=Boolean(_0x2787b8)&&!_0x152d07,_0x4de1a0={'color':_0x152d07,'noColor':_0x88b603||_0x1e4dee};if(_0x2e54ce===_0x55d156(0xae)){const {formatAsTable:_0x51aeaa}=await import('./formatters.js'),_0xedeae=shouldUseLess(_0x2e54ce,_0x2787b8);return _0x51aeaa(_0x3a7600,_0x22058d,_0xedeae,_0x4de1a0);}else{if(_0x2e54ce==='json'){const {formatAsJSON:_0x3991fa}=await import('./formatters.js');return _0x3991fa(_0x3a7600,_0x4de1a0);}else{if(_0x2e54ce===_0x55d156(0x8c)){const {formatAsJSONL:_0xe12250}=await import(_0x55d156(0x9e));return _0xe12250(_0x3a7600,_0x4de1a0);}else{const {formatQueryResult:_0x576897}=await import(_0x55d156(0x9e));return _0x576897(_0x3a7600,_0x2e54ce);}}}}function shouldUseLess(_0x59a553,_0x828a23){const _0x6c615c=a52_0x4ee4;return _0x59a553===_0x6c615c(0xae)&&process[_0x6c615c(0xa9)]['isTTY']&&!_0x828a23;}export function resolveOutputOptions(_0x2eaaff){const _0x430ab8=a52_0x4ee4,_0x44acc0=resolveOutputFormat(_0x2eaaff[_0x430ab8(0x9b)],_0x2eaaff[_0x430ab8(0xac)],_0x430ab8(0xae));let _0x1d1693=typeof _0x2eaaff[_0x430ab8(0x9d)]===_0x430ab8(0xa0)?_0x2eaaff[_0x430ab8(0x9d)]:parseInt(_0x2eaaff[_0x430ab8(0x9d)]||'40',0xa);const _0x3e57a2=_0x2eaaff[_0x430ab8(0xac)]||'';return shouldUseLess(_0x44acc0,_0x3e57a2)&&(_0x1d1693=Infinity),{'format':_0x44acc0,'output':_0x3e57a2,'limit':_0x1d1693,'color':_0x2eaaff[_0x430ab8(0xaa)],'noColor':_0x2eaaff['noColor']};}function a52_0x1c06(){const _0x57f92e=['table','2730320iACvlv','length','boolean','double','FINISHED','-FXRSn','jsonl','write','varchar','spawn','pipe','push','1202818TjEcMI','621642HcbpzZ','close','stdin','959630KbbXJl','sdk-result','log','isInteger','end','format','entries','limit','./formatters.js','1374993lWeyjK','number','3018tojaIe','resolve','80ybjDbl','3719824ENPWLj','2780lOBJTb','error','Results\x20saved\x20to\x20','inherit','stdout','color','less','output','noColor'];a52_0x1c06=function(){return _0x57f92e;};return a52_0x1c06();}export function writeOutput(_0x1923fc,_0x339033,_0x370bad){const _0xc3e532=a52_0x4ee4;return _0x339033?(writeFileSync(_0x339033,_0x1923fc),console['error'](_0xc3e532(0xa7)+_0x339033),Promise[_0xc3e532(0xa2)]()):shouldUseLess(_0x370bad||'','')?new Promise(_0x472add=>{const _0x2d1d6a=_0xc3e532,_0x25eac8=spawn(_0x2d1d6a(0xab),[_0x2d1d6a(0x8b)],{'stdio':[_0x2d1d6a(0x90),_0x2d1d6a(0xa8),_0x2d1d6a(0xa8)]});let _0x49a0d1=![];_0x25eac8['on'](_0x2d1d6a(0xa6),()=>{const _0x583d25=_0x2d1d6a;!_0x49a0d1&&(_0x49a0d1=!![],console[_0x583d25(0x98)](_0x1923fc),_0x472add());}),_0x25eac8['on'](_0x2d1d6a(0x94),()=>{!_0x49a0d1&&(_0x49a0d1=!![],_0x472add());}),_0x25eac8['on'](_0x2d1d6a(0x8f),()=>{const _0xe5e9f6=_0x2d1d6a;!_0x49a0d1&&_0x25eac8['stdin']&&(_0x25eac8[_0xe5e9f6(0x95)]['on'](_0xe5e9f6(0xa6),()=>{}),_0x25eac8[_0xe5e9f6(0x95)][_0xe5e9f6(0x8d)](_0x1923fc),_0x25eac8['stdin'][_0xe5e9f6(0x9a)]());}),!_0x25eac8[_0x2d1d6a(0x95)]&&(!_0x49a0d1&&(_0x49a0d1=!![],console[_0x2d1d6a(0x98)](_0x1923fc),_0x472add()));}):(console['log'](_0x1923fc),Promise[_0xc3e532(0xa2)]());}export async function handleSDKOutput(_0x34ffff,_0x3df066){const _0x182e9f=a52_0x4ee4,_0x3b8dba=resolveOutputOptions(_0x3df066),_0x8955ba=await formatSDKOutput(_0x34ffff,_0x3b8dba);await writeOutput(_0x8955ba,_0x3b8dba['output']||undefined,_0x3b8dba[_0x182e9f(0x9b)]);}export async function handleQueryOutput(_0x2aba44,_0x21a4e3){const _0x59f64e=a52_0x4ee4,_0x5e0a5c=resolveOutputOptions(_0x21a4e3),_0x28c72e=await formatQueryOutput(_0x2aba44,_0x5e0a5c);await writeOutput(_0x28c72e,_0x5e0a5c['output']||undefined,_0x5e0a5c[_0x59f64e(0x9b)]);}
@@ -1 +1 @@
1
- (function(_0x590e3a,_0x29e673){const _0x2eeb1d=a52_0xb125,_0x1e7a2b=_0x590e3a();while(!![]){try{const _0x279fc2=parseInt(_0x2eeb1d(0xc7))/0x1+parseInt(_0x2eeb1d(0xb1))/0x2*(parseInt(_0x2eeb1d(0xba))/0x3)+-parseInt(_0x2eeb1d(0xb7))/0x4*(-parseInt(_0x2eeb1d(0xc4))/0x5)+parseInt(_0x2eeb1d(0xb2))/0x6*(parseInt(_0x2eeb1d(0xb5))/0x7)+-parseInt(_0x2eeb1d(0xb8))/0x8*(-parseInt(_0x2eeb1d(0xc2))/0x9)+-parseInt(_0x2eeb1d(0xc0))/0xa*(parseInt(_0x2eeb1d(0xb6))/0xb)+-parseInt(_0x2eeb1d(0xbc))/0xc;if(_0x279fc2===_0x29e673)break;else _0x1e7a2b['push'](_0x1e7a2b['shift']());}catch(_0x442bbc){_0x1e7a2b['push'](_0x1e7a2b['shift']());}}}(a52_0x30a9,0xa951f));import*as a52_0x5a1c0c from'node:fs';function a52_0xb125(_0x3847be,_0xb1f516){const _0x30a90b=a52_0x30a9();return a52_0xb125=function(_0xb1256b,_0x1ead66){_0xb1256b=_0xb1256b-0xb1;let _0x1542b7=_0x30a90b[_0xb1256b];return _0x1542b7;},a52_0xb125(_0x3847be,_0xb1f516);}import*as a52_0x1ca46d from'node:path';export function setSecureFilePermissions(_0x465d04){const _0x34d739=a52_0xb125;try{a52_0x5a1c0c['chmodSync'](_0x465d04,0x180);}catch{console[_0x34d739(0xbd)](_0x34d739(0xb9)+_0x465d04);}}export function setSecureDirectoryPermissions(_0x279ef4){const _0x4dd3dd=a52_0xb125;try{a52_0x5a1c0c[_0x4dd3dd(0xc5)](_0x279ef4,0x1c0);}catch{console['warn'](_0x4dd3dd(0xb9)+_0x279ef4);}}export function createSecureDirectory(_0x50e632){const _0x1a9e10=a52_0xb125;!a52_0x5a1c0c['existsSync'](_0x50e632)&&(a52_0x5a1c0c[_0x1a9e10(0xbe)](_0x50e632,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x50e632));}export function validateSecureFilePermissions(_0x365903){const _0x121dea=a52_0xb125;try{const _0x484852=a52_0x5a1c0c['statSync'](_0x365903),_0x4322cb=_0x484852[_0x121dea(0xc3)]&0x1ff,_0x2438ce=(_0x4322cb&0x3f)!==0x0;if(_0x2438ce)return console[_0x121dea(0xbd)]('Warning:\x20'+_0x365903+_0x121dea(0xc6)+_0x4322cb[_0x121dea(0xc1)](0x8)+_0x121dea(0xbf)+_0x121dea(0xbb)),![];return!![];}catch{return!![];}}function a52_0x30a9(){const _0x313a6a=['6120KVfegx','dirname','writeFileSync','2758gInUYX','6303SDreNe','3544CuXLgp','552YtDcEJ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','60svwRww','Should\x20be\x200600\x20or\x20more\x20restrictive.','28527936YljkKw','warn','mkdirSync',').\x20','10310RAwRtQ','toString','135243McnlwV','mode','3005aeEMTz','chmodSync','\x20has\x20insecure\x20permissions\x20(','725797eHNlzN','96460qPbXzA'];a52_0x30a9=function(){return _0x313a6a;};return a52_0x30a9();}export function writeSecureFile(_0x17b329,_0x2c3d2a){const _0x2f5673=a52_0xb125,_0x3f4486=a52_0x1ca46d[_0x2f5673(0xb3)](_0x17b329);createSecureDirectory(_0x3f4486),a52_0x5a1c0c[_0x2f5673(0xb4)](_0x17b329,_0x2c3d2a,{'mode':0x180}),setSecureFilePermissions(_0x17b329);}
1
+ (function(_0x2031aa,_0x5cad44){const _0x45f4e3=a53_0x2be4,_0xfed5d1=_0x2031aa();while(!![]){try{const _0x2fe4c6=parseInt(_0x45f4e3(0xf0))/0x1*(-parseInt(_0x45f4e3(0xf1))/0x2)+-parseInt(_0x45f4e3(0xed))/0x3+-parseInt(_0x45f4e3(0xe6))/0x4*(-parseInt(_0x45f4e3(0xe9))/0x5)+-parseInt(_0x45f4e3(0xf7))/0x6*(-parseInt(_0x45f4e3(0xe8))/0x7)+parseInt(_0x45f4e3(0xeb))/0x8+parseInt(_0x45f4e3(0xfc))/0x9*(-parseInt(_0x45f4e3(0xfd))/0xa)+parseInt(_0x45f4e3(0xea))/0xb;if(_0x2fe4c6===_0x5cad44)break;else _0xfed5d1['push'](_0xfed5d1['shift']());}catch(_0x22b089){_0xfed5d1['push'](_0xfed5d1['shift']());}}}(a53_0x197f,0xb966a));import*as a53_0xbe58c5 from'node:fs';function a53_0x2be4(_0x2f81ab,_0xce7793){const _0x197f1c=a53_0x197f();return a53_0x2be4=function(_0x2be4c7,_0x2344bf){_0x2be4c7=_0x2be4c7-0xe6;let _0x3a6057=_0x197f1c[_0x2be4c7];return _0x3a6057;},a53_0x2be4(_0x2f81ab,_0xce7793);}import*as a53_0x32e344 from'node:path';export function setSecureFilePermissions(_0x12a1f0){const _0x1b79ca=a53_0x2be4;try{a53_0xbe58c5[_0x1b79ca(0xf4)](_0x12a1f0,0x180);}catch{console[_0x1b79ca(0xf8)](_0x1b79ca(0xf3)+_0x12a1f0);}}export function setSecureDirectoryPermissions(_0x5d837e){const _0x21ef49=a53_0x2be4;try{a53_0xbe58c5[_0x21ef49(0xf4)](_0x5d837e,0x1c0);}catch{console[_0x21ef49(0xf8)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5d837e);}}export function createSecureDirectory(_0x5a3b96){const _0x329214=a53_0x2be4;!a53_0xbe58c5['existsSync'](_0x5a3b96)&&(a53_0xbe58c5[_0x329214(0xf9)](_0x5a3b96,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5a3b96));}export function validateSecureFilePermissions(_0x3c7f6e){const _0x307f9f=a53_0x2be4;try{const _0x50d7d1=a53_0xbe58c5[_0x307f9f(0xfa)](_0x3c7f6e),_0x44f7a6=_0x50d7d1[_0x307f9f(0xfb)]&0x1ff,_0x38ec7b=(_0x44f7a6&0x3f)!==0x0;if(_0x38ec7b)return console[_0x307f9f(0xf8)](_0x307f9f(0xee)+_0x3c7f6e+_0x307f9f(0xec)+_0x44f7a6[_0x307f9f(0xf2)](0x8)+_0x307f9f(0xe7)+_0x307f9f(0xef)),![];return!![];}catch{return!![];}}function a53_0x197f(){const _0x1d4412=['1028965kTInFS','35KuMAFh','14102165EoTdpo','9543592LlyqJH','\x20has\x20insecure\x20permissions\x20(','3908043bKASiQ','Warning:\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','3VjXoEb','667578VfAPFz','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','dirname','writeFileSync','6wNUJSj','warn','mkdirSync','statSync','mode','746289meltjK','80OhGJGY','631348JayrnE',').\x20'];a53_0x197f=function(){return _0x1d4412;};return a53_0x197f();}export function writeSecureFile(_0x2ed9ce,_0xae0942){const _0x484d5b=a53_0x2be4,_0x287ca7=a53_0x32e344[_0x484d5b(0xf5)](_0x2ed9ce);createSecureDirectory(_0x287ca7),a53_0xbe58c5[_0x484d5b(0xf6)](_0x2ed9ce,_0xae0942,{'mode':0x180}),setSecureFilePermissions(_0x2ed9ce);}
@@ -1 +1 @@
1
- (function(_0x3dd74a,_0x2ba76d){const _0x199054=a53_0x1657,_0x29c72b=_0x3dd74a();while(!![]){try{const _0x3bfb28=-parseInt(_0x199054(0x140))/0x1*(parseInt(_0x199054(0x13e))/0x2)+-parseInt(_0x199054(0x142))/0x3+-parseInt(_0x199054(0x145))/0x4*(-parseInt(_0x199054(0x133))/0x5)+parseInt(_0x199054(0x138))/0x6+-parseInt(_0x199054(0x141))/0x7*(parseInt(_0x199054(0x139))/0x8)+-parseInt(_0x199054(0x13a))/0x9*(parseInt(_0x199054(0x13f))/0xa)+-parseInt(_0x199054(0x13b))/0xb*(-parseInt(_0x199054(0x136))/0xc);if(_0x3bfb28===_0x2ba76d)break;else _0x29c72b['push'](_0x29c72b['shift']());}catch(_0x1eee3a){_0x29c72b['push'](_0x29c72b['shift']());}}}(a53_0x19b7,0x49811));export function detectFormatFromExtension(_0x21ba6f){const _0x12d117=a53_0x1657,_0x52e976=_0x21ba6f[_0x12d117(0x144)]()[_0x12d117(0x137)]('.')[_0x12d117(0x135)]();switch(_0x52e976){case _0x12d117(0x146):return _0x12d117(0x146);case _0x12d117(0x13d):return _0x12d117(0x13d);case _0x12d117(0x134):case _0x12d117(0x132):return _0x12d117(0x134);case'txt':case _0x12d117(0x13c):return _0x12d117(0x143);default:return undefined;}}function a53_0x1657(_0x1d420b,_0xfa8a77){const _0x19b7cc=a53_0x19b7();return a53_0x1657=function(_0x1657cd,_0x79da36){_0x1657cd=_0x1657cd-0x132;let _0x190c8d=_0x19b7cc[_0x1657cd];return _0x190c8d;},a53_0x1657(_0x1d420b,_0xfa8a77);}function a53_0x19b7(){const _0x12f82a=['537840YzUEHH','8CHVxCb','52659ITQZCX','66PynhxV','text','jsonl','2OJYMbQ','530WeMXiM','173961kNRpcP','4095966UKcYYa','821874hXpUjk','table','toLowerCase','418892PdxPvY','json','tab','5GGMLSA','tsv','pop','2899740pYCuMZ','split'];a53_0x19b7=function(){return _0x12f82a;};return a53_0x19b7();}export function resolveOutputFormat(_0x31e35,_0x235fa9,_0x37fc76){if(_0x31e35)return _0x31e35;if(_0x235fa9){const _0x104f0f=detectFormatFromExtension(_0x235fa9);if(_0x104f0f)return _0x104f0f;}return _0x37fc76;}
1
+ function a54_0x1eab(_0x2db34b,_0x1c54ff){const _0x573f29=a54_0x573f();return a54_0x1eab=function(_0x1eab42,_0x44cb5e){_0x1eab42=_0x1eab42-0xa7;let _0x2b1269=_0x573f29[_0x1eab42];return _0x2b1269;},a54_0x1eab(_0x2db34b,_0x1c54ff);}(function(_0x351407,_0x58d50a){const _0x45fb91=a54_0x1eab,_0x1a9ff7=_0x351407();while(!![]){try{const _0xabfbe=parseInt(_0x45fb91(0xac))/0x1+parseInt(_0x45fb91(0xb1))/0x2*(-parseInt(_0x45fb91(0xaa))/0x3)+parseInt(_0x45fb91(0xb5))/0x4+-parseInt(_0x45fb91(0xae))/0x5*(parseInt(_0x45fb91(0xb3))/0x6)+parseInt(_0x45fb91(0xb2))/0x7+parseInt(_0x45fb91(0xab))/0x8+-parseInt(_0x45fb91(0xb4))/0x9;if(_0xabfbe===_0x58d50a)break;else _0x1a9ff7['push'](_0x1a9ff7['shift']());}catch(_0x4b801b){_0x1a9ff7['push'](_0x1a9ff7['shift']());}}}(a54_0x573f,0x43c02));function a54_0x573f(){const _0x39217d=['381399GjALPz','pop','5jFWKpt','tab','json','992QwDZMT','2378670PVTmXP','2233614IkxaGr','4868163zOtxjn','689652jEwFBu','text','tsv','table','jsonl','split','txt','1197TUiDtN','3959712YHqDgk'];a54_0x573f=function(){return _0x39217d;};return a54_0x573f();}export function detectFormatFromExtension(_0x4a9b7a){const _0x19b691=a54_0x1eab,_0x519089=_0x4a9b7a['toLowerCase']()[_0x19b691(0xa8)]('.')[_0x19b691(0xad)]();switch(_0x519089){case _0x19b691(0xb0):return _0x19b691(0xb0);case'jsonl':return _0x19b691(0xa7);case _0x19b691(0xb7):case _0x19b691(0xaf):return _0x19b691(0xb7);case _0x19b691(0xa9):case _0x19b691(0xb6):return _0x19b691(0xb8);default:return undefined;}}export function resolveOutputFormat(_0x5746cf,_0x783b6d,_0xdab938){if(_0x5746cf)return _0x5746cf;if(_0x783b6d){const _0x4940bd=detectFormatFromExtension(_0x783b6d);if(_0x4940bd)return _0x4940bd;}return _0xdab938;}
@@ -1 +1 @@
1
- (function(_0x4e9616,_0x417cba){const _0x4115bd=a54_0x5480,_0x5738b0=_0x4e9616();while(!![]){try{const _0x4067d9=-parseInt(_0x4115bd(0x12d))/0x1*(-parseInt(_0x4115bd(0x136))/0x2)+-parseInt(_0x4115bd(0x11b))/0x3+parseInt(_0x4115bd(0x13a))/0x4+-parseInt(_0x4115bd(0x12e))/0x5*(parseInt(_0x4115bd(0x128))/0x6)+-parseInt(_0x4115bd(0x10f))/0x7*(parseInt(_0x4115bd(0x126))/0x8)+parseInt(_0x4115bd(0x139))/0x9*(-parseInt(_0x4115bd(0x11a))/0xa)+-parseInt(_0x4115bd(0x11f))/0xb*(-parseInt(_0x4115bd(0x131))/0xc);if(_0x4067d9===_0x417cba)break;else _0x5738b0['push'](_0x5738b0['shift']());}catch(_0x50e21c){_0x5738b0['push'](_0x5738b0['shift']());}}}(a54_0x4c24,0x3d75f));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a54_0x5480(_0x467486,_0x169b29){const _0x4c24f0=a54_0x4c24();return a54_0x5480=function(_0x5480e1,_0x1841de){_0x5480e1=_0x5480e1-0x10a;let _0x61e365=_0x4c24f0[_0x5480e1];return _0x61e365;},a54_0x5480(_0x467486,_0x169b29);}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x1c9fa7=a54_0x5480;return process[_0x1c9fa7(0x13b)][_0x1c9fa7(0x137)]||Infinity;}export function formatAsTable(_0x34d96e,_0x46a868=DEFAULT_MAX_DISPLAY_ROWS,_0x37dce5=![],_0x49f831={}){const _0x355f64=a54_0x5480;if(_0x34d96e[_0x355f64(0x119)][_0x355f64(0x130)]===0x0)return _0x355f64(0x13c);const _0x4edf38=_0x34d96e[_0x355f64(0x137)]['map'](_0x39c810=>_0x39c810[_0x355f64(0x13d)]),_0x2018f8=_0x34d96e[_0x355f64(0x137)][_0x355f64(0x121)](_0x170390=>simplifyType(_0x170390[_0x355f64(0x123)])),_0x33475c=_0x34d96e[_0x355f64(0x119)][_0x355f64(0x129)](0x0,_0x46a868),_0x6ed9b8=_0x34d96e[_0x355f64(0x119)]['length'],_0x131454=_0x6ed9b8>_0x46a868,_0x31f47d=[],_0x5efc21=getTerminalWidth(),_0x5f1ee7=_0x5efc21!==Infinity,_0x48e313=0x32;let _0x8b9390=_0x4edf38[_0x355f64(0x121)]((_0xb4f692,_0x318b4a)=>{const _0x45a2ec=_0x355f64,_0x2980ca=stringWidth(_0x2018f8[_0x318b4a]),_0x292254=Math[_0x45a2ec(0x113)](..._0x33475c['map'](_0x177eb5=>{const _0x307c5c=_0x177eb5[_0xb4f692];return stringWidth(formatValue(_0x307c5c));})),_0x2ca79d=Math[_0x45a2ec(0x113)](stringWidth(_0xb4f692),_0x2980ca,_0x292254);return _0x37dce5?_0x2ca79d:Math[_0x45a2ec(0x133)](_0x2ca79d,_0x48e313);});if(_0x5f1ee7&&!_0x37dce5&&_0x4edf38[_0x355f64(0x130)]>0x0){const _0x47cb7d=_0x5185dd=>{let _0xfe24c9=0x1;for(const _0x4d9783 of _0x5185dd){_0xfe24c9+=_0x4d9783+0x3;}return _0xfe24c9+0x1;};let _0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c>_0x5efc21){const _0x5a330b=0x3;for(let _0x42373f=_0x8b9390[_0x355f64(0x130)]-0x1;_0x42373f>=0x0;_0x42373f--){_0x55ff7c=_0x47cb7d(_0x8b9390);if(_0x55ff7c<=_0x5efc21)break;const _0x3090b4=_0x8b9390[_0x42373f],_0x3aae40=_0x55ff7c-_0x5efc21,_0xff3e44=_0x3090b4-_0x5a330b,_0x219a29=Math[_0x355f64(0x133)](_0x3aae40,_0xff3e44);_0x219a29>0x0&&(_0x8b9390[_0x42373f]=_0x3090b4-_0x219a29);}}}const _0x426903=_0x4edf38,_0x5f2b97=_0x2018f8,_0x20f6a6=_0x8b9390,_0x1f86ba=_0x8b9390;_0x31f47d[_0x355f64(0x12c)](colorBorder('┌'+_0x1f86ba['map'](_0x577ebf=>'─'[_0x355f64(0x11d)](_0x577ebf+0x2))[_0x355f64(0x110)]('┬')+'┐',_0x49f831));const _0xc8c1e0=_0x426903[_0x355f64(0x121)]((_0x4ec0d7,_0x4613b6)=>centerAlign(_0x4ec0d7,_0x20f6a6[_0x4613b6]));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0xc8c1e0[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));const _0x237ebd=_0x5f2b97['map']((_0x13a316,_0x23ed04)=>colorType(centerAlign(_0x13a316,_0x20f6a6[_0x23ed04]),_0x49f831));_0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x237ebd[_0x355f64(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x177dba=>'─'[_0x355f64(0x11d)](_0x177dba+0x2))[_0x355f64(0x110)]('┼')+'┤',_0x49f831));const _0x386fdc=(_0x4e0e73,_0x53b344)=>{const _0x484602=_0x355f64,_0x60b2cc=stringWidth(_0x4e0e73);if(_0x60b2cc<=_0x53b344)return _0x4e0e73;let _0x8b5c7e=_0x4e0e73;while(stringWidth(_0x8b5c7e+'…')>_0x53b344&&_0x8b5c7e[_0x484602(0x130)]>0x0){_0x8b5c7e=_0x8b5c7e[_0x484602(0x129)](0x0,-0x1);}return _0x8b5c7e+'…';};_0x33475c[_0x355f64(0x11c)](_0x5e11e1=>{const _0x35eca8=_0x355f64,_0x54ccbd=_0x4edf38[_0x35eca8(0x121)]((_0x1d0124,_0x3e1a7d)=>{const _0x36936f=_0x35eca8,_0x2717a8=_0x5e11e1[_0x1d0124],_0x2937eb=formatValue(_0x2717a8),_0x32671c=_0x20f6a6[_0x3e1a7d],_0x4dc2e7=_0x386fdc(_0x2937eb,_0x32671c),_0x40613=typeof _0x2717a8==='number'||typeof _0x2717a8===_0x36936f(0x127)&&/^-?\d+$/[_0x36936f(0x111)](_0x2717a8);return _0x40613?padStart(_0x4dc2e7,_0x32671c):padEnd(_0x4dc2e7,_0x32671c);});_0x31f47d[_0x35eca8(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x54ccbd[_0x35eca8(0x110)]('\x20'+colorBorder('│',_0x49f831)+'\x20')+'\x20'+colorBorder('│',_0x49f831));});const _0x8c159d=_0x1f86ba[_0x355f64(0x10e)]((_0x4246a6,_0x104e4c)=>_0x4246a6+_0x104e4c+0x3,-0x1);_0x31f47d[_0x355f64(0x12c)](colorBorder('├'+_0x1f86ba[_0x355f64(0x121)](_0x258aa4=>'─'['repeat'](_0x258aa4+0x2))[_0x355f64(0x110)]('┴')+'┤',_0x49f831));let _0x405072;_0x131454?_0x405072=_0x6ed9b8+_0x355f64(0x135)+_0x46a868+_0x355f64(0x10d):_0x405072=_0x6ed9b8+_0x355f64(0x10b)+(_0x6ed9b8===0x1?'':'s');const _0x8c0712=_0x405072[_0x355f64(0x132)](_0x8c159d-0x2);return _0x31f47d[_0x355f64(0x12c)](colorBorder('│',_0x49f831)+'\x20'+_0x8c0712+'\x20'+colorBorder('│',_0x49f831)),_0x31f47d[_0x355f64(0x12c)](colorBorder('└'+'─'[_0x355f64(0x11d)](_0x8c159d)+'┘',_0x49f831)),_0x31f47d['join']('\x0a');}function a54_0x4c24(){const _0x2798b7=['stringify','toISOString','object','data','1450lsRoja','215682LGPIMN','forEach','repeat','startsWith','3338819GEbhcf','false','map','bool','type','tsv','number','1672PQktTU','string','29586IncjLn','slice','true','double','push','3WynYBH','285IdqQoP','timestamp','length','12CtFgQx','padEnd','min','substring','\x20rows\x20(','222962jswKck','columns','toLowerCase','810htBaXv','655644dvWONu','stdout','No\x20rows\x20returned','name','date','\x20row','replace','\x20shown)','reduce','6167ttGuWY','join','test','int','max','long','boolean'];a54_0x4c24=function(){return _0x2798b7;};return a54_0x4c24();}function simplifyType(_0x2d09c6){const _0x262eda=a54_0x5480,_0x51e001={'varchar':_0x262eda(0x127),'bigint':_0x262eda(0x114),'integer':_0x262eda(0x112),'double':_0x262eda(0x12b),'boolean':_0x262eda(0x122),'date':_0x262eda(0x10a),'timestamp':_0x262eda(0x12f),'array':'array','map':_0x262eda(0x121),'row':'row'},_0x6adbdb=_0x2d09c6[_0x262eda(0x138)]();for(const [_0x5edb9f,_0xa7e302]of Object['entries'](_0x51e001)){if(_0x6adbdb[_0x262eda(0x11e)](_0x5edb9f))return _0xa7e302;}return _0x2d09c6[_0x262eda(0x130)]>0xa?_0x2d09c6[_0x262eda(0x134)](0x0,0xa):_0x2d09c6;}export function formatAsJSON(_0x47d712,_0x4539a8={}){const _0x35eb4e=a54_0x5480;if(_0x47d712[_0x35eb4e(0x119)]['length']===0x0)return'[]';if(shouldUseColor(_0x4539a8))return colorizeJSON(_0x47d712['data'],_0x4539a8);const _0x572c66=_0x47d712[_0x35eb4e(0x119)][_0x35eb4e(0x121)](_0x26e435=>'\x20\x20'+JSON[_0x35eb4e(0x116)](_0x26e435));return'[\x0a'+_0x572c66[_0x35eb4e(0x110)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x3efae0,_0x4088cd={}){const _0x49500a=a54_0x5480;if(_0x3efae0['data'][_0x49500a(0x130)]===0x0)return'';if(shouldUseColor(_0x4088cd))return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x206766=>colorizeJSONCompact(_0x206766,_0x4088cd))['join']('\x0a');return _0x3efae0[_0x49500a(0x119)][_0x49500a(0x121)](_0x156914=>JSON[_0x49500a(0x116)](_0x156914))[_0x49500a(0x110)]('\x0a');}export function formatAsTSV(_0x4120ae){const _0x170661=a54_0x5480;if(_0x4120ae['data']['length']===0x0)return'';const _0x26845=[],_0x3e1348=_0x4120ae['columns'][_0x170661(0x121)](_0x1d1f5f=>_0x1d1f5f[_0x170661(0x13d)]);return _0x26845['push'](_0x3e1348['join']('\x09')),_0x4120ae[_0x170661(0x119)][_0x170661(0x11c)](_0x1b052d=>{const _0x32078f=_0x170661,_0x1bb7ef=_0x3e1348[_0x32078f(0x121)](_0x1419fa=>{const _0x5673c9=_0x1b052d[_0x1419fa];return formatValueForTSV(_0x5673c9);});_0x26845[_0x32078f(0x12c)](_0x1bb7ef[_0x32078f(0x110)]('\x09'));}),_0x26845['join']('\x0a');}function formatValue(_0x2b6434){const _0x1263d9=a54_0x5480;if(_0x2b6434===null||_0x2b6434===undefined)return'';if(typeof _0x2b6434===_0x1263d9(0x127)){const _0x4d0d09=_0x2b6434['replace'](/\n/g,'\x5cn')[_0x1263d9(0x10c)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x4d0d09;}if(typeof _0x2b6434===_0x1263d9(0x125))return String(_0x2b6434);if(typeof _0x2b6434===_0x1263d9(0x115))return _0x2b6434?_0x1263d9(0x12a):_0x1263d9(0x120);if(_0x2b6434 instanceof Date)return _0x2b6434['toISOString']();if(typeof _0x2b6434===_0x1263d9(0x118))return JSON[_0x1263d9(0x116)](_0x2b6434);return String(_0x2b6434);}function formatValueForTSV(_0x3a5e80){const _0x4c558e=a54_0x5480;if(_0x3a5e80===null||_0x3a5e80===undefined)return'';if(typeof _0x3a5e80==='string')return _0x3a5e80[_0x4c558e(0x10c)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3a5e80===_0x4c558e(0x125)||typeof _0x3a5e80===_0x4c558e(0x115))return String(_0x3a5e80);if(_0x3a5e80 instanceof Date)return _0x3a5e80[_0x4c558e(0x117)]();if(typeof _0x3a5e80===_0x4c558e(0x118))return JSON[_0x4c558e(0x116)](_0x3a5e80);return String(_0x3a5e80);}export function formatQueryResult(_0x464596,_0x28b287){const _0x131f5=a54_0x5480;switch(_0x28b287){case'table':return formatAsTable(_0x464596);case'json':return formatAsJSON(_0x464596);case'jsonl':return formatAsJSONL(_0x464596);case _0x131f5(0x124):return formatAsTSV(_0x464596);default:return formatAsJSON(_0x464596);}}
1
+ (function(_0x5b4a4e,_0x30318c){const _0x39a2a9=a55_0x4211,_0x1bde05=_0x5b4a4e();while(!![]){try{const _0x2ef9e3=-parseInt(_0x39a2a9(0x84))/0x1*(parseInt(_0x39a2a9(0x70))/0x2)+parseInt(_0x39a2a9(0x88))/0x3*(-parseInt(_0x39a2a9(0x7a))/0x4)+-parseInt(_0x39a2a9(0x98))/0x5+parseInt(_0x39a2a9(0x80))/0x6*(parseInt(_0x39a2a9(0x6d))/0x7)+parseInt(_0x39a2a9(0x93))/0x8*(-parseInt(_0x39a2a9(0x97))/0x9)+-parseInt(_0x39a2a9(0x8f))/0xa*(parseInt(_0x39a2a9(0x8c))/0xb)+parseInt(_0x39a2a9(0x79))/0xc;if(_0x2ef9e3===_0x30318c)break;else _0x1bde05['push'](_0x1bde05['shift']());}catch(_0x38d239){_0x1bde05['push'](_0x1bde05['shift']());}}}(a55_0x5fd6,0x3d977));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function a55_0x5fd6(){const _0x1de468=['20334576OXzMtH','4gvDgoK','string','json','date','forEach','entries','323106LxdVPK','jsonl','\x20shown)','timestamp','159nVwBOg','boolean','test','number','1297713PqZaLC','\x20rows\x20(','repeat','stringify','11wYkOUa','stdout','\x20row','4079890LYNwZz','bool','row','array','32wICqzq','push','type','false','182799MqtLon','1651005wkXoBk','columns','min','replace','max','data','long','length','14OCfsTW','table','startsWith','3748OBBnzP','true','reduce','slice','name','tsv','toLowerCase','join','map'];a55_0x5fd6=function(){return _0x1de468;};return a55_0x5fd6();}function getTerminalWidth(){const _0x2c3bc9=a55_0x4211;return process[_0x2c3bc9(0x8d)][_0x2c3bc9(0x99)]||Infinity;}export function formatAsTable(_0xa884b8,_0x462106=DEFAULT_MAX_DISPLAY_ROWS,_0x155acd=![],_0x395e53={}){const _0x1278ea=a55_0x4211;if(_0xa884b8[_0x1278ea(0x9d)][_0x1278ea(0x6c)]===0x0)return'No\x20rows\x20returned';const _0x364e08=_0xa884b8['columns']['map'](_0x12b6b5=>_0x12b6b5[_0x1278ea(0x74)]),_0xf18acb=_0xa884b8[_0x1278ea(0x99)][_0x1278ea(0x78)](_0x1770c0=>simplifyType(_0x1770c0[_0x1278ea(0x95)])),_0x1411f5=_0xa884b8[_0x1278ea(0x9d)][_0x1278ea(0x73)](0x0,_0x462106),_0x31d1ba=_0xa884b8[_0x1278ea(0x9d)]['length'],_0x4837af=_0x31d1ba>_0x462106,_0x4cb32c=[],_0x5692a8=getTerminalWidth(),_0x57ab73=_0x5692a8!==Infinity,_0x5ceeb3=0x32;let _0x4d5eb7=_0x364e08['map']((_0x72ae91,_0x412673)=>{const _0x53a3be=_0x1278ea,_0x6a2d48=stringWidth(_0xf18acb[_0x412673]),_0x4c44f8=Math[_0x53a3be(0x9c)](..._0x1411f5[_0x53a3be(0x78)](_0x272e53=>{const _0x356ecd=_0x272e53[_0x72ae91];return stringWidth(formatValue(_0x356ecd));})),_0x2ada67=Math[_0x53a3be(0x9c)](stringWidth(_0x72ae91),_0x6a2d48,_0x4c44f8);return _0x155acd?_0x2ada67:Math[_0x53a3be(0x9a)](_0x2ada67,_0x5ceeb3);});if(_0x57ab73&&!_0x155acd&&_0x364e08[_0x1278ea(0x6c)]>0x0){const _0x4a3ab6=_0x2ea706=>{let _0xfb904e=0x1;for(const _0xb0972c of _0x2ea706){_0xfb904e+=_0xb0972c+0x3;}return _0xfb904e+0x1;};let _0x1ee9e5=_0x4a3ab6(_0x4d5eb7);if(_0x1ee9e5>_0x5692a8){const _0x463e90=0x3;for(let _0x309046=_0x4d5eb7[_0x1278ea(0x6c)]-0x1;_0x309046>=0x0;_0x309046--){_0x1ee9e5=_0x4a3ab6(_0x4d5eb7);if(_0x1ee9e5<=_0x5692a8)break;const _0x8421de=_0x4d5eb7[_0x309046],_0x2ce148=_0x1ee9e5-_0x5692a8,_0xd1af02=_0x8421de-_0x463e90,_0x27671f=Math['min'](_0x2ce148,_0xd1af02);_0x27671f>0x0&&(_0x4d5eb7[_0x309046]=_0x8421de-_0x27671f);}}}const _0x1a5aec=_0x364e08,_0x3f35c0=_0xf18acb,_0xf28bb6=_0x4d5eb7,_0x48262d=_0x4d5eb7;_0x4cb32c[_0x1278ea(0x94)](colorBorder('┌'+_0x48262d[_0x1278ea(0x78)](_0x4aad98=>'─'[_0x1278ea(0x8a)](_0x4aad98+0x2))['join']('┬')+'┐',_0x395e53));const _0x2f3618=_0x1a5aec[_0x1278ea(0x78)]((_0x20c0a5,_0x805515)=>centerAlign(_0x20c0a5,_0xf28bb6[_0x805515]));_0x4cb32c[_0x1278ea(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x2f3618[_0x1278ea(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53));const _0x4b948b=_0x3f35c0[_0x1278ea(0x78)]((_0x4a201a,_0x3ff570)=>colorType(centerAlign(_0x4a201a,_0xf28bb6[_0x3ff570]),_0x395e53));_0x4cb32c['push'](colorBorder('│',_0x395e53)+'\x20'+_0x4b948b[_0x1278ea(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53)),_0x4cb32c[_0x1278ea(0x94)](colorBorder('├'+_0x48262d[_0x1278ea(0x78)](_0x254945=>'─'['repeat'](_0x254945+0x2))[_0x1278ea(0x77)]('┼')+'┤',_0x395e53));const _0x55f950=(_0x26ed18,_0xc39fe4)=>{const _0x24f484=_0x1278ea,_0x18851a=stringWidth(_0x26ed18);if(_0x18851a<=_0xc39fe4)return _0x26ed18;let _0x3ce88f=_0x26ed18;while(stringWidth(_0x3ce88f+'…')>_0xc39fe4&&_0x3ce88f['length']>0x0){_0x3ce88f=_0x3ce88f[_0x24f484(0x73)](0x0,-0x1);}return _0x3ce88f+'…';};_0x1411f5[_0x1278ea(0x7e)](_0x8e2924=>{const _0x356e75=_0x1278ea,_0x4186bb=_0x364e08[_0x356e75(0x78)]((_0x49dbb0,_0x2a50cb)=>{const _0x44975f=_0x356e75,_0x9960c6=_0x8e2924[_0x49dbb0],_0x5f3215=formatValue(_0x9960c6),_0x54915b=_0xf28bb6[_0x2a50cb],_0x45cf62=_0x55f950(_0x5f3215,_0x54915b),_0x2735ab=typeof _0x9960c6==='number'||typeof _0x9960c6===_0x44975f(0x7b)&&/^-?\d+$/[_0x44975f(0x86)](_0x9960c6);return _0x2735ab?padStart(_0x45cf62,_0x54915b):padEnd(_0x45cf62,_0x54915b);});_0x4cb32c[_0x356e75(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x4186bb[_0x356e75(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53));});const _0x3f4ba6=_0x48262d[_0x1278ea(0x72)]((_0x450188,_0x25b5ee)=>_0x450188+_0x25b5ee+0x3,-0x1);_0x4cb32c[_0x1278ea(0x94)](colorBorder('├'+_0x48262d[_0x1278ea(0x78)](_0x3868f3=>'─'[_0x1278ea(0x8a)](_0x3868f3+0x2))[_0x1278ea(0x77)]('┴')+'┤',_0x395e53));let _0x99c26b;_0x4837af?_0x99c26b=_0x31d1ba+_0x1278ea(0x89)+_0x462106+_0x1278ea(0x82):_0x99c26b=_0x31d1ba+_0x1278ea(0x8e)+(_0x31d1ba===0x1?'':'s');const _0x2d46f1=_0x99c26b['padEnd'](_0x3f4ba6-0x2);return _0x4cb32c[_0x1278ea(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x2d46f1+'\x20'+colorBorder('│',_0x395e53)),_0x4cb32c[_0x1278ea(0x94)](colorBorder('└'+'─'['repeat'](_0x3f4ba6)+'┘',_0x395e53)),_0x4cb32c['join']('\x0a');}function simplifyType(_0x3e3381){const _0x1dcbd5=a55_0x4211,_0x35443f={'varchar':_0x1dcbd5(0x7b),'bigint':_0x1dcbd5(0x9e),'integer':'int','double':'double','boolean':_0x1dcbd5(0x90),'date':_0x1dcbd5(0x7d),'timestamp':_0x1dcbd5(0x83),'array':_0x1dcbd5(0x92),'map':'map','row':_0x1dcbd5(0x91)},_0x46d92b=_0x3e3381[_0x1dcbd5(0x76)]();for(const [_0x3f770d,_0x28bfb8]of Object[_0x1dcbd5(0x7f)](_0x35443f)){if(_0x46d92b[_0x1dcbd5(0x6f)](_0x3f770d))return _0x28bfb8;}return _0x3e3381[_0x1dcbd5(0x6c)]>0xa?_0x3e3381['substring'](0x0,0xa):_0x3e3381;}export function formatAsJSON(_0xec01f2,_0x2c0ee8={}){const _0x47e08e=a55_0x4211;if(_0xec01f2[_0x47e08e(0x9d)][_0x47e08e(0x6c)]===0x0)return'[]';if(shouldUseColor(_0x2c0ee8))return colorizeJSON(_0xec01f2[_0x47e08e(0x9d)],_0x2c0ee8);const _0x271cea=_0xec01f2[_0x47e08e(0x9d)][_0x47e08e(0x78)](_0x1c2d56=>'\x20\x20'+JSON[_0x47e08e(0x8b)](_0x1c2d56));return'[\x0a'+_0x271cea[_0x47e08e(0x77)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x20189,_0x12f67c={}){const _0x270125=a55_0x4211;if(_0x20189[_0x270125(0x9d)][_0x270125(0x6c)]===0x0)return'';if(shouldUseColor(_0x12f67c))return _0x20189[_0x270125(0x9d)][_0x270125(0x78)](_0x225850=>colorizeJSONCompact(_0x225850,_0x12f67c))[_0x270125(0x77)]('\x0a');return _0x20189['data'][_0x270125(0x78)](_0x51023f=>JSON['stringify'](_0x51023f))[_0x270125(0x77)]('\x0a');}export function formatAsTSV(_0x5e457e){const _0x25b5f0=a55_0x4211;if(_0x5e457e[_0x25b5f0(0x9d)][_0x25b5f0(0x6c)]===0x0)return'';const _0xfdb790=[],_0xa58b6b=_0x5e457e[_0x25b5f0(0x99)][_0x25b5f0(0x78)](_0xfce829=>_0xfce829[_0x25b5f0(0x74)]);return _0xfdb790[_0x25b5f0(0x94)](_0xa58b6b[_0x25b5f0(0x77)]('\x09')),_0x5e457e[_0x25b5f0(0x9d)][_0x25b5f0(0x7e)](_0x599b08=>{const _0x25341a=_0x25b5f0,_0xed6e14=_0xa58b6b[_0x25341a(0x78)](_0x29d85b=>{const _0x432e22=_0x599b08[_0x29d85b];return formatValueForTSV(_0x432e22);});_0xfdb790[_0x25341a(0x94)](_0xed6e14[_0x25341a(0x77)]('\x09'));}),_0xfdb790[_0x25b5f0(0x77)]('\x0a');}function formatValue(_0x36db89){const _0x43d124=a55_0x4211;if(_0x36db89===null||_0x36db89===undefined)return'';if(typeof _0x36db89===_0x43d124(0x7b)){const _0x6e49f2=_0x36db89['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x43d124(0x9b)](/\t/g,'\x5ct');return _0x6e49f2;}if(typeof _0x36db89==='number')return String(_0x36db89);if(typeof _0x36db89===_0x43d124(0x85))return _0x36db89?_0x43d124(0x71):_0x43d124(0x96);if(_0x36db89 instanceof Date)return _0x36db89['toISOString']();if(typeof _0x36db89==='object')return JSON['stringify'](_0x36db89);return String(_0x36db89);}function formatValueForTSV(_0x3f27cc){const _0x8942bd=a55_0x4211;if(_0x3f27cc===null||_0x3f27cc===undefined)return'';if(typeof _0x3f27cc===_0x8942bd(0x7b))return _0x3f27cc[_0x8942bd(0x9b)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3f27cc===_0x8942bd(0x87)||typeof _0x3f27cc===_0x8942bd(0x85))return String(_0x3f27cc);if(_0x3f27cc instanceof Date)return _0x3f27cc['toISOString']();if(typeof _0x3f27cc==='object')return JSON[_0x8942bd(0x8b)](_0x3f27cc);return String(_0x3f27cc);}function a55_0x4211(_0x5c0386,_0x4bdd2d){const _0x5fd6ce=a55_0x5fd6();return a55_0x4211=function(_0x421123,_0x140ee1){_0x421123=_0x421123-0x6c;let _0x54abd6=_0x5fd6ce[_0x421123];return _0x54abd6;},a55_0x4211(_0x5c0386,_0x4bdd2d);}export function formatQueryResult(_0x3ec975,_0x3e4200){const _0xd4f5e5=a55_0x4211;switch(_0x3e4200){case _0xd4f5e5(0x6e):return formatAsTable(_0x3ec975);case _0xd4f5e5(0x7c):return formatAsJSON(_0x3ec975);case _0xd4f5e5(0x81):return formatAsJSONL(_0x3ec975);case _0xd4f5e5(0x75):return formatAsTSV(_0x3ec975);default:return formatAsJSON(_0x3ec975);}}
@@ -1 +1 @@
1
- const a55_0x159b4b=a55_0x11b3;(function(_0x8f0f8a,_0x8c8107){const _0x5ccecb=a55_0x11b3,_0x16f38b=_0x8f0f8a();while(!![]){try{const _0x2707ba=parseInt(_0x5ccecb(0xea))/0x1+-parseInt(_0x5ccecb(0xe6))/0x2*(-parseInt(_0x5ccecb(0xe7))/0x3)+-parseInt(_0x5ccecb(0xe0))/0x4*(-parseInt(_0x5ccecb(0xe8))/0x5)+parseInt(_0x5ccecb(0xe9))/0x6+parseInt(_0x5ccecb(0xe5))/0x7+parseInt(_0x5ccecb(0xe1))/0x8+-parseInt(_0x5ccecb(0xe4))/0x9;if(_0x2707ba===_0x8c8107)break;else _0x16f38b['push'](_0x16f38b['shift']());}catch(_0x4a6194){_0x16f38b['push'](_0x16f38b['shift']());}}}(a55_0xc152,0x3d8f8));function a55_0xc152(){const _0x13ab48=['22ydpwSg','100923OuTaKg','1563585Cpkfiq','1274586uxgfWy','308095gqxsfW','4TbKbPU','3083600KLMwXy','toLowerCase','claude-4.5-haiku','13697712LosXYH','1297632ZkCmZu'];a55_0xc152=function(){return _0x13ab48;};return a55_0xc152();}const MODEL_ALIASES={'haiku':a55_0x159b4b(0xe3),'sonnet':'claude-4.5-sonnet'};function a55_0x11b3(_0x5e055f,_0x46707b){const _0xc1523c=a55_0xc152();return a55_0x11b3=function(_0x11b382,_0x41dc8e){_0x11b382=_0x11b382-0xe0;let _0x1259e9=_0xc1523c[_0x11b382];return _0x1259e9;},a55_0x11b3(_0x5e055f,_0x46707b);}export function resolveModelAlias(_0x1d041c){const _0x3b9b98=a55_0x159b4b;return MODEL_ALIASES[_0x1d041c[_0x3b9b98(0xe2)]()]||_0x1d041c;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a56_0x23365e=a56_0x2dbe;(function(_0x230f6b,_0x4a82de){const _0x3eec1f=a56_0x2dbe,_0x1062e4=_0x230f6b();while(!![]){try{const _0x521737=parseInt(_0x3eec1f(0x10f))/0x1*(parseInt(_0x3eec1f(0x10a))/0x2)+-parseInt(_0x3eec1f(0x104))/0x3+parseInt(_0x3eec1f(0x103))/0x4+-parseInt(_0x3eec1f(0x106))/0x5+parseInt(_0x3eec1f(0x109))/0x6*(-parseInt(_0x3eec1f(0x10e))/0x7)+-parseInt(_0x3eec1f(0x10d))/0x8*(-parseInt(_0x3eec1f(0x105))/0x9)+parseInt(_0x3eec1f(0x10c))/0xa;if(_0x521737===_0x4a82de)break;else _0x1062e4['push'](_0x1062e4['shift']());}catch(_0x2f7d2a){_0x1062e4['push'](_0x1062e4['shift']());}}}(a56_0xfb5c,0x825cf));const MODEL_ALIASES={'haiku':a56_0x23365e(0x107),'sonnet':a56_0x23365e(0x108)};export function resolveModelAlias(_0x28d61a){const _0x1f27fc=a56_0x23365e;return MODEL_ALIASES[_0x28d61a[_0x1f27fc(0x10b)]()]||_0x28d61a;}function a56_0x2dbe(_0x4248b1,_0x9125d7){const _0xfb5cae=a56_0xfb5c();return a56_0x2dbe=function(_0x2dbec7,_0x22db21){_0x2dbec7=_0x2dbec7-0x103;let _0x3d4de4=_0xfb5cae[_0x2dbec7];return _0x3d4de4;},a56_0x2dbe(_0x4248b1,_0x9125d7);}function a56_0xfb5c(){const _0x18d02d=['1CsgYaw','3337752UMybvH','1476369oJrKTi','8256744LIpzPn','1116715fdXlrs','claude-4.5-haiku','claude-4.5-sonnet','157704nJucet','591388ybssNl','toLowerCase','1743930WDtkrj','8LpKRdj','259tbubHp'];a56_0xfb5c=function(){return _0x18d02d;};return a56_0xfb5c();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x1c310d,_0x83f2f2){const _0x4a991f=a56_0x7851,_0x3c90aa=_0x1c310d();while(!![]){try{const _0x4454f2=-parseInt(_0x4a991f(0x1d1))/0x1*(parseInt(_0x4a991f(0x1cd))/0x2)+parseInt(_0x4a991f(0x1c1))/0x3*(parseInt(_0x4a991f(0x1d0))/0x4)+-parseInt(_0x4a991f(0x1c3))/0x5+-parseInt(_0x4a991f(0x1c8))/0x6*(-parseInt(_0x4a991f(0x1c7))/0x7)+parseInt(_0x4a991f(0x1ce))/0x8*(parseInt(_0x4a991f(0x1c2))/0x9)+-parseInt(_0x4a991f(0x1cb))/0xa*(parseInt(_0x4a991f(0x1c4))/0xb)+parseInt(_0x4a991f(0x1c6))/0xc*(-parseInt(_0x4a991f(0x1c5))/0xd);if(_0x4454f2===_0x83f2f2)break;else _0x3c90aa['push'](_0x3c90aa['shift']());}catch(_0x135af6){_0x3c90aa['push'](_0x3c90aa['shift']());}}}(a56_0xb6d1,0xb4f3d));function a56_0x7851(_0xa6603a,_0x46891d){const _0xb6d11f=a56_0xb6d1();return a56_0x7851=function(_0x78511c,_0x24c3ad){_0x78511c=_0x78511c-0x1c1;let _0x3fa8be=_0xb6d11f[_0x78511c];return _0x3fa8be;},a56_0x7851(_0xa6603a,_0x46891d);}export function validateLimitOption(_0x606f9e){const _0x14647b=a56_0x7851;if(!Number['isInteger'](_0x606f9e))return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+'.\x20Must\x20be\x20an\x20integer.'};if(_0x606f9e<=0x0)return{'isValid':![],'error':_0x14647b(0x1ca)+_0x606f9e+_0x14647b(0x1cf)};return{'isValid':!![],'value':_0x606f9e};}function a56_0xb6d1(){const _0x1d6782=['1628235SbAczL','18oPhFxv','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','13862550FbqgFk','Invalid\x20timeout\x20value:\x20','92014WsOxqF','8SSfipJ','.\x20Must\x20be\x20a\x20positive\x20integer.','1716PUQqvX','7kXPSXs','4401TfYDJh','11763963sDFVKj','223805BTRJtd','11wxqbcy','13hZynLa','1680228pdxsLl'];a56_0xb6d1=function(){return _0x1d6782;};return a56_0xb6d1();}export function validateTimeoutOption(_0x126a93,_0x25cf31=0x1e){const _0x529fab=a56_0x7851;if(_0x126a93===undefined)return{'isValid':!![],'value':_0x25cf31};const _0x135029=typeof _0x126a93==='number'?_0x126a93:parseFloat(_0x126a93);if(isNaN(_0x135029))return{'isValid':![],'error':_0x529fab(0x1cc)+_0x126a93+_0x529fab(0x1c9)};if(_0x135029<=0x0)return{'isValid':![],'error':_0x529fab(0x1cc)+_0x135029+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x135029};}
1
+ (function(_0x4c9736,_0x2cacb1){const _0x524a11=a57_0x5287,_0xe53b07=_0x4c9736();while(!![]){try{const _0x338728=-parseInt(_0x524a11(0x1c2))/0x1+parseInt(_0x524a11(0x1c8))/0x2+parseInt(_0x524a11(0x1cf))/0x3+-parseInt(_0x524a11(0x1cc))/0x4+parseInt(_0x524a11(0x1cb))/0x5*(parseInt(_0x524a11(0x1ca))/0x6)+-parseInt(_0x524a11(0x1c5))/0x7+-parseInt(_0x524a11(0x1c4))/0x8*(parseInt(_0x524a11(0x1c7))/0x9);if(_0x338728===_0x2cacb1)break;else _0xe53b07['push'](_0xe53b07['shift']());}catch(_0x5aa9fa){_0xe53b07['push'](_0xe53b07['shift']());}}}(a57_0x208a,0x2d5ce));function a57_0x208a(){const _0xed8fd4=['647455aFIZTZ','1040288bWobHv','number','.\x20Must\x20be\x20a\x20positive\x20number.','892245eIEqIr','.\x20Must\x20be\x20a\x20number.','125616Oljeuz','Invalid\x20timeout\x20value:\x20','8BruNiz','1175650JVMKKM','isInteger','252603lLDIXC','422228NwcUcT','.\x20Must\x20be\x20an\x20integer.','12oqWcYh'];a57_0x208a=function(){return _0xed8fd4;};return a57_0x208a();}function a57_0x5287(_0x1ee3c5,_0x51a089){const _0x208acb=a57_0x208a();return a57_0x5287=function(_0x528779,_0x4b7c87){_0x528779=_0x528779-0x1c2;let _0xaade7e=_0x208acb[_0x528779];return _0xaade7e;},a57_0x5287(_0x1ee3c5,_0x51a089);}export function validateLimitOption(_0x2776ba){const _0x47d996=a57_0x5287;if(!Number[_0x47d996(0x1c6)](_0x2776ba))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2776ba+_0x47d996(0x1c9)};if(_0x2776ba<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2776ba+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x2776ba};}export function validateTimeoutOption(_0x2a8247,_0x48e0d9=0x1e){const _0x4afc41=a57_0x5287;if(_0x2a8247===undefined)return{'isValid':!![],'value':_0x48e0d9};const _0x4886b6=typeof _0x2a8247===_0x4afc41(0x1cd)?_0x2a8247:parseFloat(_0x2a8247);if(isNaN(_0x4886b6))return{'isValid':![],'error':_0x4afc41(0x1c3)+_0x2a8247+_0x4afc41(0x1d0)};if(_0x4886b6<=0x0)return{'isValid':![],'error':_0x4afc41(0x1c3)+_0x4886b6+_0x4afc41(0x1ce)};return{'isValid':!![],'value':_0x4886b6};}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Port availability utilities
3
+ */
4
+ /**
5
+ * Check if a port is available
6
+ * @param port - Port number to check
7
+ * @returns Promise<boolean> - True if port is available, false otherwise
8
+ */
9
+ export declare function isPortAvailable(port: number): Promise<boolean>;
10
+ /**
11
+ * Find an available port starting from a given port
12
+ * @param startPort - Starting port number (default: 4000)
13
+ * @param maxAttempts - Maximum number of ports to try (default: 100)
14
+ * @returns Promise<number> - Available port number
15
+ * @throws Error if no available port is found
16
+ */
17
+ export declare function findAvailablePort(startPort?: number, maxAttempts?: number): Promise<number>;
18
+ //# sourceMappingURL=port.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port.d.ts","sourceRoot":"","sources":["../../src/utils/port.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAmBpE;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,GAAE,MAAa,EACxB,WAAW,GAAE,MAAY,GACxB,OAAO,CAAC,MAAM,CAAC,CAWjB"}
@@ -0,0 +1 @@
1
+ (function(_0x4ef085,_0x2f212b){const _0x5e5d6c=a58_0xfb12,_0x37c031=_0x4ef085();while(!![]){try{const _0x5027ad=parseInt(_0x5e5d6c(0xf0))/0x1+-parseInt(_0x5e5d6c(0xec))/0x2*(parseInt(_0x5e5d6c(0xef))/0x3)+-parseInt(_0x5e5d6c(0xf3))/0x4+parseInt(_0x5e5d6c(0xee))/0x5+-parseInt(_0x5e5d6c(0xe7))/0x6+-parseInt(_0x5e5d6c(0xea))/0x7*(parseInt(_0x5e5d6c(0xed))/0x8)+-parseInt(_0x5e5d6c(0xe9))/0x9*(-parseInt(_0x5e5d6c(0xf2))/0xa);if(_0x5027ad===_0x2f212b)break;else _0x37c031['push'](_0x37c031['shift']());}catch(_0x2df83d){_0x37c031['push'](_0x37c031['shift']());}}}(a58_0x3b0a,0x82adf));function a58_0xfb12(_0x3ac74d,_0x4a1853){const _0x3b0a42=a58_0x3b0a();return a58_0xfb12=function(_0xfb1251,_0x4fa723){_0xfb1251=_0xfb1251-0xe5;let _0x41a9e6=_0x3b0a42[_0xfb1251];return _0x41a9e6;},a58_0xfb12(_0x3ac74d,_0x4a1853);}import{createServer}from'node:net';export async function isPortAvailable(_0x43e632){return new Promise(_0x3327dd=>{const _0x105b12=a58_0xfb12,_0xfcdc95=createServer();_0xfcdc95['once'](_0x105b12(0xf1),_0xaaa364=>{const _0x550d54=_0x105b12;_0xaaa364[_0x550d54(0xe6)]==='EADDRINUSE'?_0x3327dd(![]):_0x3327dd(![]);}),_0xfcdc95['once'](_0x105b12(0xe8),()=>{const _0x3020e8=_0x105b12;_0xfcdc95[_0x3020e8(0xeb)](),_0x3327dd(!![]);}),_0xfcdc95[_0x105b12(0xe5)](_0x43e632,'127.0.0.1');});}export async function findAvailablePort(_0x2820dc=0xfa0,_0x3987aa=0x64){for(let _0x33be6b=0x0;_0x33be6b<_0x3987aa;_0x33be6b++){const _0x120b2a=_0x2820dc+_0x33be6b;if(await isPortAvailable(_0x120b2a))return _0x120b2a;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x2820dc+'\x20and\x20'+(_0x2820dc+_0x3987aa-0x1));}function a58_0x3b0a(){const _0x45176d=['31146DbwYnc','28952FrNNlH','507500qRyZuT','129TLMDOk','916433KQXhWW','error','1990eQJmck','2288748bNSYwe','listen','code','4279308lWWWKG','listening','71991iptRhZ','231Rdftca','close'];a58_0x3b0a=function(){return _0x45176d;};return a58_0x3b0a();}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port.js","sourceRoot":"","sources":["../../src/utils/port.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAY;IAChD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;QAE9B,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAA0B,EAAE,EAAE;YAClD,IAAI,GAAG,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;gBAC9B,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE;YAC5B,MAAM,CAAC,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,YAAoB,IAAI,EACxB,cAAsB,GAAG;IAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;QAC3B,IAAI,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CACb,mCAAmC,SAAS,QAAQ,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,CAClF,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- function a57_0x280b(){var _0x4f8ccc=['7612LbMVeF','kill','137796eokLks','2429523DePLeW','ppid','778425gGbwbj','301554PPuxRh','329TlylNb','40557sbIzWW','8320USEmDe','6CiVXnR','1095BoLJDM','8IQvjSa'];a57_0x280b=function(){return _0x4f8ccc;};return a57_0x280b();}function a57_0x5d8d(_0x5d6e5,_0x2a624f){var _0x280b9a=a57_0x280b();return a57_0x5d8d=function(_0x5d8da7,_0x5cd4ab){_0x5d8da7=_0x5d8da7-0xe0;var _0x55406c=_0x280b9a[_0x5d8da7];return _0x55406c;},a57_0x5d8d(_0x5d6e5,_0x2a624f);}(function(_0x3da64c,_0x49d36c){var _0x238ff1=a57_0x5d8d,_0x44d68a=_0x3da64c();while(!![]){try{var _0x332836=-parseInt(_0x238ff1(0xe2))/0x1*(parseInt(_0x238ff1(0xeb))/0x2)+-parseInt(_0x238ff1(0xea))/0x3+-parseInt(_0x238ff1(0xe5))/0x4*(-parseInt(_0x238ff1(0xe3))/0x5)+parseInt(_0x238ff1(0xe7))/0x6*(parseInt(_0x238ff1(0xec))/0x7)+-parseInt(_0x238ff1(0xe4))/0x8*(-parseInt(_0x238ff1(0xe8))/0x9)+-parseInt(_0x238ff1(0xe1))/0xa+-parseInt(_0x238ff1(0xe0))/0xb;if(_0x332836===_0x49d36c)break;else _0x44d68a['push'](_0x44d68a['shift']());}catch(_0x318f1c){_0x44d68a['push'](_0x44d68a['shift']());}}}(a57_0x280b,0x91dca));export function getPPID(){var _0x2fc782=a57_0x5d8d;return process[_0x2fc782(0xe9)];}export function isProcessRunning(_0x5eaa22){var _0x11ecfd=a57_0x5d8d;try{return process[_0x11ecfd(0xe6)](_0x5eaa22,0x0),!![];}catch{return![];}}
1
+ (function(_0x1ecb9a,_0x26b916){var _0x46a5ec=a59_0x5b87,_0x5583ed=_0x1ecb9a();while(!![]){try{var _0x3edd85=parseInt(_0x46a5ec(0x16d))/0x1+-parseInt(_0x46a5ec(0x16f))/0x2+parseInt(_0x46a5ec(0x173))/0x3*(-parseInt(_0x46a5ec(0x16e))/0x4)+parseInt(_0x46a5ec(0x170))/0x5+-parseInt(_0x46a5ec(0x16a))/0x6*(parseInt(_0x46a5ec(0x16c))/0x7)+-parseInt(_0x46a5ec(0x171))/0x8+parseInt(_0x46a5ec(0x174))/0x9*(parseInt(_0x46a5ec(0x16b))/0xa);if(_0x3edd85===_0x26b916)break;else _0x5583ed['push'](_0x5583ed['shift']());}catch(_0xe46a8){_0x5583ed['push'](_0x5583ed['shift']());}}}(a59_0x2b0a,0x9e1ce));export function getPPID(){return process['ppid'];}function a59_0x5b87(_0x106965,_0x51edc1){var _0x2b0a9c=a59_0x2b0a();return a59_0x5b87=function(_0x5b87c9,_0x40a098){_0x5b87c9=_0x5b87c9-0x16a;var _0x519060=_0x2b0a9c[_0x5b87c9];return _0x519060;},a59_0x5b87(_0x106965,_0x51edc1);}function a59_0x2b0a(){var _0x418bb0=['710754cKhRBC','3123610kndutU','3182336ZFYHID','kill','111aYwCEh','9245214cKBmMe','4187532kWSBcD','20ytCheA','7kUUVEM','610796PbAQUB','128788OIPFzR'];a59_0x2b0a=function(){return _0x418bb0;};return a59_0x2b0a();}export function isProcessRunning(_0x2e6395){var _0x51d34d=a59_0x5b87;try{return process[_0x51d34d(0x172)](_0x2e6395,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a58_0x4565(_0x5af9ed,_0x3211f4){const _0x1fd33b=a58_0x1fd3();return a58_0x4565=function(_0x456564,_0x1848fa){_0x456564=_0x456564-0xf6;let _0x2d4dd7=_0x1fd33b[_0x456564];return _0x2d4dd7;},a58_0x4565(_0x5af9ed,_0x3211f4);}(function(_0x4fe5d2,_0x294dfc){const _0x49f719=a58_0x4565,_0x430165=_0x4fe5d2();while(!![]){try{const _0x1da186=-parseInt(_0x49f719(0xf8))/0x1+-parseInt(_0x49f719(0xfb))/0x2*(parseInt(_0x49f719(0xf7))/0x3)+-parseInt(_0x49f719(0x100))/0x4+-parseInt(_0x49f719(0xfa))/0x5*(parseInt(_0x49f719(0xfe))/0x6)+parseInt(_0x49f719(0xfd))/0x7+parseInt(_0x49f719(0xff))/0x8+-parseInt(_0x49f719(0x103))/0x9*(-parseInt(_0x49f719(0x102))/0xa);if(_0x1da186===_0x294dfc)break;else _0x430165['push'](_0x430165['shift']());}catch(_0x3612f2){_0x430165['push'](_0x430165['shift']());}}}(a58_0x1fd3,0x9de74));function a58_0x1fd3(){const _0x1011f7=['366LwlXGW','indexOf','2915318vnFcXj','23862MgztAc','2575264Hcdrrl','3638824UEkjIv','substring','30GUypHX','9761571QZCggq','Invalid\x20segment\x20reference\x20format:\x20','9264fdTark','625856fuEvOh','.\x20Parent\x20name\x20cannot\x20be\x20empty','1565ESQXBc'];a58_0x1fd3=function(){return _0x1011f7;};return a58_0x1fd3();}export function parseSegmentRef(_0x2ffcfd){const _0x538201=a58_0x4565,_0xcde3d1=_0x2ffcfd[_0x538201(0xfc)]('/');if(_0xcde3d1===-0x1)return{'parentId':_0x2ffcfd};if(_0xcde3d1===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2ffcfd+_0x538201(0xf9));const _0x424451=_0x2ffcfd[_0x538201(0x101)](0x0,_0xcde3d1),_0x595477=_0x2ffcfd[_0x538201(0x101)](_0xcde3d1+0x1);if(_0x595477==='')throw new Error(_0x538201(0xf6)+_0x2ffcfd+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x424451,'childId':_0x595477};}
1
+ (function(_0x411433,_0x3ece76){const _0x276720=a60_0x6f3e,_0x1c2e0d=_0x411433();while(!![]){try{const _0x11613b=-parseInt(_0x276720(0xd4))/0x1+-parseInt(_0x276720(0xd2))/0x2*(-parseInt(_0x276720(0xd5))/0x3)+-parseInt(_0x276720(0xd9))/0x4+parseInt(_0x276720(0xdb))/0x5*(-parseInt(_0x276720(0xd1))/0x6)+parseInt(_0x276720(0xcf))/0x7*(parseInt(_0x276720(0xd3))/0x8)+parseInt(_0x276720(0xd7))/0x9+parseInt(_0x276720(0xd0))/0xa;if(_0x11613b===_0x3ece76)break;else _0x1c2e0d['push'](_0x1c2e0d['shift']());}catch(_0x3891da){_0x1c2e0d['push'](_0x1c2e0d['shift']());}}}(a60_0x4410,0xc3585));function a60_0x6f3e(_0xa75fa4,_0x3abc05){const _0x441096=a60_0x4410();return a60_0x6f3e=function(_0x6f3e9e,_0x7ad157){_0x6f3e9e=_0x6f3e9e-0xcf;let _0x79d286=_0x441096[_0x6f3e9e];return _0x79d286;},a60_0x6f3e(_0xa75fa4,_0x3abc05);}function a60_0x4410(){const _0x73cb0=['81080zlUUBl','165957iIHFjA','443829zIbaHX','.\x20Child\x20name\x20cannot\x20be\x20empty','13062879CggnHQ','Invalid\x20segment\x20reference\x20format:\x20','5864360wCeNHP','substring','2621470jzSXDF','indexOf','98YWMWqG','7039030FJEglD','12iTZAtX','16BTYeQI'];a60_0x4410=function(){return _0x73cb0;};return a60_0x4410();}export function parseSegmentRef(_0x3fbd06){const _0x4cb51d=a60_0x6f3e,_0x185349=_0x3fbd06[_0x4cb51d(0xdc)]('/');if(_0x185349===-0x1)return{'parentId':_0x3fbd06};if(_0x185349===0x0)throw new Error(_0x4cb51d(0xd8)+_0x3fbd06+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x27e614=_0x3fbd06[_0x4cb51d(0xda)](0x0,_0x185349),_0x315315=_0x3fbd06['substring'](_0x185349+0x1);if(_0x315315==='')throw new Error(_0x4cb51d(0xd8)+_0x3fbd06+_0x4cb51d(0xd6));return{'parentId':_0x27e614,'childId':_0x315315};}
@@ -1 +1 @@
1
- (function(_0x2a431b,_0x59b3da){const _0x1d926e=a59_0x1b56,_0x4fd608=_0x2a431b();while(!![]){try{const _0x24334d=-parseInt(_0x1d926e(0x1a5))/0x1+-parseInt(_0x1d926e(0x194))/0x2+-parseInt(_0x1d926e(0x192))/0x3*(-parseInt(_0x1d926e(0x19f))/0x4)+parseInt(_0x1d926e(0x199))/0x5+-parseInt(_0x1d926e(0x1a0))/0x6*(parseInt(_0x1d926e(0x1a6))/0x7)+parseInt(_0x1d926e(0x197))/0x8*(-parseInt(_0x1d926e(0x1a2))/0x9)+parseInt(_0x1d926e(0x193))/0xa*(parseInt(_0x1d926e(0x18c))/0xb);if(_0x24334d===_0x59b3da)break;else _0x4fd608['push'](_0x4fd608['shift']());}catch(_0x3d0346){_0x4fd608['push'](_0x4fd608['shift']());}}}(a59_0x5a4b,0xa90a2));function a59_0x1b56(_0x2864a8,_0xdb57cc){const _0x5a4b00=a59_0x5a4b();return a59_0x1b56=function(_0x1b5644,_0x5e3cab){_0x1b5644=_0x1b5644-0x18b;let _0x597a18=_0x5a4b00[_0x1b5644];return _0x597a18;},a59_0x1b56(_0x2864a8,_0xdb57cc);}import a59_0x5116f1 from'ora';export function createCommandSpinner(_0x45f07b,_0x3affbf={}){const _0x40c494=a59_0x1b56,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3affbf;return a59_0x5116f1({'text':_0x45f07b,'color':_0x40c494(0x18e),'isEnabled':forceEnabled||process[_0x40c494(0x190)][_0x40c494(0x18f)]&&!verbose});}export async function withSpinner(_0x4c23c1,_0x11eb29,_0x392b2e={}){const _0x179de5=a59_0x1b56,_0x4a0176=_0x392b2e[_0x179de5(0x19e)]??(()=>Date['now']()),_0x2420ad=createCommandSpinner(_0x4c23c1,_0x392b2e);_0x2420ad[_0x179de5(0x195)]();const _0x5922eb=_0x4a0176();try{const _0x1e4344=await _0x11eb29(),_0x55f468=_0x4a0176()-_0x5922eb;return _0x2420ad[_0x179de5(0x1a4)](),{'data':_0x1e4344,'elapsedMs':_0x55f468};}catch(_0x2ee475){_0x2420ad[_0x179de5(0x1a4)]();throw _0x2ee475;}}function a59_0x5a4b(){const _0x5352d0=['jobId','cyan','isTTY','stdout','\x20[Job\x20ID:\x20','3MLDMCa','190qBCSzh','1153856KXfuLm','start','intervalFactory','4461432AGaVgs','now','5138450poptuA','extra','text','phase','...','clock','419412uXwKDx','237696eVoxpY','toFixed','9Wglway','isSpinning','stop','674770NGUNTU','105rpFcHQ','replace','1136740KPGIjD'];a59_0x5a4b=function(){return _0x5352d0;};return a59_0x5a4b();}export async function withQuerySpinner(_0x3c8c3d,_0x88e47c,_0x50d8e9={}){const _0x4557d9=a59_0x1b56,_0x526dd7=_0x50d8e9[_0x4557d9(0x19e)]??(()=>Date[_0x4557d9(0x198)]()),_0x42accb=_0x50d8e9[_0x4557d9(0x196)]??setInterval,_0x831097=createCommandSpinner(_0x3c8c3d,_0x50d8e9);_0x831097[_0x4557d9(0x195)]();const _0x33af03=_0x526dd7(),_0x139cb6=_0x3c8c3d[_0x4557d9(0x18b)](_0x4557d9(0x19d),''),_0x5e5a85={},_0x2954cc=()=>{const _0x30c8d5=_0x4557d9;if(!_0x831097[_0x30c8d5(0x1a3)])return;const _0x283973=((_0x526dd7()-_0x33af03)/0x3e8)[_0x30c8d5(0x1a1)](0x1),_0x3f1297=_0x5e5a85[_0x30c8d5(0x19c)]??_0x139cb6,_0x1635ea=_0x5e5a85[_0x30c8d5(0x18d)]?_0x30c8d5(0x191)+_0x5e5a85[_0x30c8d5(0x18d)]+']':'',_0x5e8b62=_0x5e5a85['extra']?'\x20'+_0x5e5a85['extra']:'';_0x831097[_0x30c8d5(0x19b)]=_0x3f1297+'\x20('+_0x283973+'s)'+_0x5e8b62+_0x1635ea;},_0x37cab1=_0x42accb(()=>{_0x2954cc();},0x3e8),_0x1473c7={'setPhase':_0xcce038=>{_0x5e5a85['phase']=_0xcce038,_0x2954cc();},'setJobId':_0x328d0e=>{const _0x1682af=_0x4557d9;_0x5e5a85[_0x1682af(0x18d)]=_0x328d0e,_0x2954cc();},'setExtra':_0xe7c03b=>{const _0x2d661e=_0x4557d9;_0x5e5a85[_0x2d661e(0x19a)]=_0xe7c03b,_0x2954cc();}};_0x2954cc();try{const _0x53aa8b=await _0x88e47c(_0x1473c7),_0x3926b9=_0x526dd7()-_0x33af03;return{'data':_0x53aa8b,'elapsedMs':_0x3926b9};}finally{clearInterval(_0x37cab1),_0x831097[_0x4557d9(0x1a4)]();}}export function formatElapsed(_0xbcaaf2){const _0xe4b4eb=a59_0x1b56;return(_0xbcaaf2/0x3e8)[_0xe4b4eb(0x1a1)](0x2)+'s';}
1
+ (function(_0x429848,_0xafc38d){const _0x596440=a61_0x2a15,_0x463ec8=_0x429848();while(!![]){try{const _0x595441=parseInt(_0x596440(0x19b))/0x1*(parseInt(_0x596440(0x1a4))/0x2)+-parseInt(_0x596440(0x193))/0x3*(parseInt(_0x596440(0x1a8))/0x4)+-parseInt(_0x596440(0x192))/0x5*(-parseInt(_0x596440(0x1a1))/0x6)+-parseInt(_0x596440(0x196))/0x7+-parseInt(_0x596440(0x19c))/0x8+-parseInt(_0x596440(0x191))/0x9*(-parseInt(_0x596440(0x19d))/0xa)+-parseInt(_0x596440(0x197))/0xb*(-parseInt(_0x596440(0x19a))/0xc);if(_0x595441===_0xafc38d)break;else _0x463ec8['push'](_0x463ec8['shift']());}catch(_0x2fd0e8){_0x463ec8['push'](_0x463ec8['shift']());}}}(a61_0x3156,0xb42d4));function a61_0x3156(){const _0x556759=['extra','1538184FaqWwn','stdout','5949HnXvaL','65xLUXTj','6HkvUeE','isSpinning','now','334523iCjLSj','1485ofsKGI','clock','start','2124eXyMwT','7TAsUOp','6041456yrRmlB','13900KidbKF','cyan','stop','jobId','474294BuSrPT','phase','replace','97070YdGmFI','...','toFixed'];a61_0x3156=function(){return _0x556759;};return a61_0x3156();}import a61_0x59adaa from'ora';function a61_0x2a15(_0x1fc10d,_0x2e570e){const _0x315608=a61_0x3156();return a61_0x2a15=function(_0x2a15f0,_0x5870c4){_0x2a15f0=_0x2a15f0-0x191;let _0x2dae6a=_0x315608[_0x2a15f0];return _0x2dae6a;},a61_0x2a15(_0x1fc10d,_0x2e570e);}export function createCommandSpinner(_0x1a8b72,_0x39afdc={}){const _0x4ad8d2=a61_0x2a15,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x39afdc;return a61_0x59adaa({'text':_0x1a8b72,'color':_0x4ad8d2(0x19e),'isEnabled':forceEnabled||process[_0x4ad8d2(0x1a9)]['isTTY']&&!verbose});}export async function withSpinner(_0x3606af,_0x1746db,_0x1b278b={}){const _0x1227dc=a61_0x2a15,_0x4ec56e=_0x1b278b[_0x1227dc(0x198)]??(()=>Date[_0x1227dc(0x195)]()),_0x545ada=createCommandSpinner(_0x3606af,_0x1b278b);_0x545ada[_0x1227dc(0x199)]();const _0x320611=_0x4ec56e();try{const _0xe074e4=await _0x1746db(),_0x2b659b=_0x4ec56e()-_0x320611;return _0x545ada[_0x1227dc(0x19f)](),{'data':_0xe074e4,'elapsedMs':_0x2b659b};}catch(_0x3b749c){_0x545ada[_0x1227dc(0x19f)]();throw _0x3b749c;}}export async function withQuerySpinner(_0x1a806e,_0xf33241,_0xb79864={}){const _0x551384=a61_0x2a15,_0x3171e1=_0xb79864[_0x551384(0x198)]??(()=>Date[_0x551384(0x195)]()),_0x40d289=_0xb79864['intervalFactory']??setInterval,_0x318949=createCommandSpinner(_0x1a806e,_0xb79864);_0x318949[_0x551384(0x199)]();const _0x1e59e1=_0x3171e1(),_0x37164f=_0x1a806e[_0x551384(0x1a3)](_0x551384(0x1a5),''),_0x3faf58={},_0x51bbd4=()=>{const _0x8692c9=_0x551384;if(!_0x318949[_0x8692c9(0x194)])return;const _0x313a55=((_0x3171e1()-_0x1e59e1)/0x3e8)[_0x8692c9(0x1a6)](0x1),_0x50d448=_0x3faf58['phase']??_0x37164f,_0x4569a0=_0x3faf58[_0x8692c9(0x1a0)]?'\x20[Job\x20ID:\x20'+_0x3faf58[_0x8692c9(0x1a0)]+']':'',_0xbe17be=_0x3faf58['extra']?'\x20'+_0x3faf58[_0x8692c9(0x1a7)]:'';_0x318949['text']=_0x50d448+'\x20('+_0x313a55+'s)'+_0xbe17be+_0x4569a0;},_0x5a10c8=_0x40d289(()=>{_0x51bbd4();},0x3e8),_0x9269ca={'setPhase':_0x37f1bd=>{const _0x444897=_0x551384;_0x3faf58[_0x444897(0x1a2)]=_0x37f1bd,_0x51bbd4();},'setJobId':_0x5c8c5a=>{const _0x45371a=_0x551384;_0x3faf58[_0x45371a(0x1a0)]=_0x5c8c5a,_0x51bbd4();},'setExtra':_0x269e4f=>{const _0x1bfd9c=_0x551384;_0x3faf58[_0x1bfd9c(0x1a7)]=_0x269e4f,_0x51bbd4();}};_0x51bbd4();try{const _0x3f1d94=await _0xf33241(_0x9269ca),_0x3a31b2=_0x3171e1()-_0x1e59e1;return{'data':_0x3f1d94,'elapsedMs':_0x3a31b2};}finally{clearInterval(_0x5a10c8),_0x318949[_0x551384(0x19f)]();}}export function formatElapsed(_0x27d099){return(_0x27d099/0x3e8)['toFixed'](0x2)+'s';}
@@ -1 +1 @@
1
- (function(_0x469505,_0x10a05f){const _0x126a2c=a60_0xecd0,_0x5023f5=_0x469505();while(!![]){try{const _0x9cf169=parseInt(_0x126a2c(0x126))/0x1*(-parseInt(_0x126a2c(0x12e))/0x2)+-parseInt(_0x126a2c(0x131))/0x3+-parseInt(_0x126a2c(0x11d))/0x4+parseInt(_0x126a2c(0x122))/0x5+parseInt(_0x126a2c(0x127))/0x6+parseInt(_0x126a2c(0x123))/0x7+parseInt(_0x126a2c(0x130))/0x8*(parseInt(_0x126a2c(0x129))/0x9);if(_0x9cf169===_0x10a05f)break;else _0x5023f5['push'](_0x5023f5['shift']());}catch(_0x106914){_0x5023f5['push'](_0x5023f5['shift']());}}}(a60_0x19c6,0x5f15e));import{readFileSync}from'fs';export function stripSqlComments(_0x34a677){const _0x4930c3=a60_0xecd0;let _0x907b27=_0x34a677[_0x4930c3(0x12b)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x907b27=_0x907b27[_0x4930c3(0x12b)](/--.*$/gm,''),_0x907b27['trim']();}function a60_0xecd0(_0x5cebe5,_0x59fd10){const _0x19c61b=a60_0x19c6();return a60_0xecd0=function(_0xecd082,_0x3210d9){_0xecd082=_0xecd082-0x11d;let _0x5f3d57=_0x19c61b[_0xecd082];return _0x5f3d57;},a60_0xecd0(_0x5cebe5,_0x59fd10);}function a60_0x19c6(){const _0x43805a=['map','filter','EACCES','Error\x20reading\x20file\x20\x27','804535TGOKbU','2658271ElnQqe','ENOENT','length','1OFmpFj','2883774NfgyVx','trim','3290499EJdMHO','code','replace','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','52124irWRpp','message','8VUFrfA','820986YrBQxJ','push','File\x20\x27','2790824PwPEiE'];a60_0x19c6=function(){return _0x43805a;};return a60_0x19c6();}function isEscaped(_0x103404,_0x1e2e09){let _0xb5c536=0x0;for(let _0x435fe9=_0x1e2e09-0x1;_0x435fe9>=0x0&&_0x103404[_0x435fe9]==='\x5c';_0x435fe9--){_0xb5c536++;}return _0xb5c536%0x2===0x1;}export function splitSqlStatements(_0x30aaea){const _0x3b4394=a60_0xecd0,_0x1f094f=stripSqlComments(_0x30aaea);if(!_0x1f094f)throw new Error(_0x3b4394(0x12c));const _0x364596=[];let _0x31e3e2='',_0x4c83b7=![],_0x1835ad=![],_0x3cdb49=![];for(let _0x5e2e5b=0x0;_0x5e2e5b<_0x30aaea[_0x3b4394(0x125)];_0x5e2e5b++){const _0x1d5681=_0x30aaea[_0x5e2e5b];if(_0x1d5681==='\x27'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x1835ad&&!_0x3cdb49)_0x4c83b7=!_0x4c83b7;else{if(_0x1d5681==='\x22'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x3cdb49)_0x1835ad=!_0x1835ad;else _0x1d5681==='`'&&!isEscaped(_0x30aaea,_0x5e2e5b)&&!_0x4c83b7&&!_0x1835ad&&(_0x3cdb49=!_0x3cdb49);}if(_0x1d5681===';'&&!_0x4c83b7&&!_0x1835ad&&!_0x3cdb49){const _0x3bc139=_0x31e3e2[_0x3b4394(0x128)]();_0x3bc139&&_0x364596[_0x3b4394(0x132)](_0x3bc139),_0x31e3e2='';}else _0x31e3e2+=_0x1d5681;}const _0xc33c28=_0x31e3e2[_0x3b4394(0x128)]();_0xc33c28&&_0x364596[_0x3b4394(0x132)](_0xc33c28);const _0xbaf54f=_0x364596[_0x3b4394(0x11e)](_0x3e8f75=>_0x3e8f75[_0x3b4394(0x128)]())[_0x3b4394(0x11f)](_0x3ca78c=>{const _0x5e68bc=_0x3b4394,_0x5e6ac3=stripSqlComments(_0x3ca78c);return _0x5e6ac3[_0x5e68bc(0x125)]>0x0;});if(_0xbaf54f[_0x3b4394(0x125)]===0x0)throw new Error(_0x3b4394(0x12c));return _0xbaf54f;}export function readFileContent(_0x236120){const _0x29a986=a60_0xecd0;try{return readFileSync(_0x236120,'utf-8');}catch(_0x4b1f0e){const _0x463cb3=_0x4b1f0e[_0x29a986(0x12a)];if(_0x463cb3===_0x29a986(0x124))throw new Error('File\x20\x27'+_0x236120+'\x27\x20not\x20found');else{if(_0x463cb3===_0x29a986(0x120))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x236120+'\x27');else throw new Error(_0x29a986(0x121)+_0x236120+'\x27:\x20'+_0x4b1f0e[_0x29a986(0x12f)]);}}}export function readSqlStatementsFromFile(_0x395cc7){const _0x3ae8b7=a60_0xecd0,_0x3b12de=readFileContent(_0x395cc7);try{return splitSqlStatements(_0x3b12de);}catch(_0x3b9a75){throw new Error(_0x3ae8b7(0x133)+_0x395cc7+'\x27\x20'+_0x3b9a75['message'][_0x3ae8b7(0x12d)]());}}
1
+ function a62_0xb9e2(_0x173b4e,_0x5548fb){const _0x15b1d0=a62_0x15b1();return a62_0xb9e2=function(_0xb9e2db,_0x302f52){_0xb9e2db=_0xb9e2db-0x1e5;let _0x5acf2d=_0x15b1d0[_0xb9e2db];return _0x5acf2d;},a62_0xb9e2(_0x173b4e,_0x5548fb);}(function(_0x191d87,_0x74cd1b){const _0x1a2c6f=a62_0xb9e2,_0x4cc8b2=_0x191d87();while(!![]){try{const _0x3585c0=parseInt(_0x1a2c6f(0x1ef))/0x1+parseInt(_0x1a2c6f(0x1e8))/0x2+-parseInt(_0x1a2c6f(0x1f9))/0x3*(parseInt(_0x1a2c6f(0x1fa))/0x4)+-parseInt(_0x1a2c6f(0x1ed))/0x5+parseInt(_0x1a2c6f(0x1f4))/0x6*(-parseInt(_0x1a2c6f(0x1ec))/0x7)+parseInt(_0x1a2c6f(0x1eb))/0x8+-parseInt(_0x1a2c6f(0x1f5))/0x9*(-parseInt(_0x1a2c6f(0x1e9))/0xa);if(_0x3585c0===_0x74cd1b)break;else _0x4cc8b2['push'](_0x4cc8b2['shift']());}catch(_0x1c36dc){_0x4cc8b2['push'](_0x4cc8b2['shift']());}}}(a62_0x15b1,0xec670));import{readFileSync}from'fs';export function stripSqlComments(_0xeb8948){const _0x5b1cf1=a62_0xb9e2;let _0x3501f1=_0xeb8948[_0x5b1cf1(0x1f6)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3501f1=_0x3501f1[_0x5b1cf1(0x1f6)](/--.*$/gm,''),_0x3501f1[_0x5b1cf1(0x1e5)]();}function isEscaped(_0x57e5d6,_0x333dc0){let _0x369d9f=0x0;for(let _0x51e756=_0x333dc0-0x1;_0x51e756>=0x0&&_0x57e5d6[_0x51e756]==='\x5c';_0x51e756--){_0x369d9f++;}return _0x369d9f%0x2===0x1;}export function splitSqlStatements(_0x4c77d6){const _0x3e96fe=a62_0xb9e2,_0x380ec5=stripSqlComments(_0x4c77d6);if(!_0x380ec5)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x5384f0=[];let _0x5c19f8='',_0x511e85=![],_0xb38465=![],_0x580713=![];for(let _0x5c915f=0x0;_0x5c915f<_0x4c77d6['length'];_0x5c915f++){const _0x339b6c=_0x4c77d6[_0x5c915f];if(_0x339b6c==='\x27'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0xb38465&&!_0x580713)_0x511e85=!_0x511e85;else{if(_0x339b6c==='\x22'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0x511e85&&!_0x580713)_0xb38465=!_0xb38465;else _0x339b6c==='`'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0x511e85&&!_0xb38465&&(_0x580713=!_0x580713);}if(_0x339b6c===';'&&!_0x511e85&&!_0xb38465&&!_0x580713){const _0x503538=_0x5c19f8[_0x3e96fe(0x1e5)]();_0x503538&&_0x5384f0[_0x3e96fe(0x1f1)](_0x503538),_0x5c19f8='';}else _0x5c19f8+=_0x339b6c;}const _0x3a5a99=_0x5c19f8[_0x3e96fe(0x1e5)]();_0x3a5a99&&_0x5384f0[_0x3e96fe(0x1f1)](_0x3a5a99);const _0x3d317e=_0x5384f0['map'](_0x3c0bcb=>_0x3c0bcb[_0x3e96fe(0x1e5)]())['filter'](_0x1bd0a3=>{const _0x5d97da=_0x3e96fe,_0x175b7b=stripSqlComments(_0x1bd0a3);return _0x175b7b[_0x5d97da(0x1f7)]>0x0;});if(_0x3d317e[_0x3e96fe(0x1f7)]===0x0)throw new Error(_0x3e96fe(0x1ea));return _0x3d317e;}function a62_0x15b1(){const _0x2680e1=['toLowerCase','EACCES','1832872LeqlVo','1770HxEFrK','Content\x20contains\x20no\x20SQL\x20statements','10006056tPwPjJ','1449oMRIwt','2462855IHlHbe','ENOENT','978910zfbdSx','message','push','Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','53406orjPjp','74484hCwifn','replace','length','utf-8','69PQFewv','227404gyJxSx','trim'];a62_0x15b1=function(){return _0x2680e1;};return a62_0x15b1();}export function readFileContent(_0x5e0e54){const _0x7bce5=a62_0xb9e2;try{return readFileSync(_0x5e0e54,_0x7bce5(0x1f8));}catch(_0x5c1ba6){const _0x327d96=_0x5c1ba6['code'];if(_0x327d96===_0x7bce5(0x1ee))throw new Error(_0x7bce5(0x1f3)+_0x5e0e54+'\x27\x20not\x20found');else{if(_0x327d96===_0x7bce5(0x1e7))throw new Error(_0x7bce5(0x1f2)+_0x5e0e54+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x5e0e54+'\x27:\x20'+_0x5c1ba6[_0x7bce5(0x1f0)]);}}}export function readSqlStatementsFromFile(_0x3de3ca){const _0x1c7b27=a62_0xb9e2,_0x3477f9=readFileContent(_0x3de3ca);try{return splitSqlStatements(_0x3477f9);}catch(_0x3eca1a){throw new Error('File\x20\x27'+_0x3de3ca+'\x27\x20'+_0x3eca1a[_0x1c7b27(0x1f0)][_0x1c7b27(0x1e6)]());}}
@@ -1 +1 @@
1
- function a61_0x26aa(_0x2641fb,_0x461441){const _0x50b49d=a61_0x50b4();return a61_0x26aa=function(_0x26aa2a,_0x6e8d3e){_0x26aa2a=_0x26aa2a-0x16f;let _0x67d39=_0x50b49d[_0x26aa2a];return _0x67d39;},a61_0x26aa(_0x2641fb,_0x461441);}(function(_0x380389,_0x4efd93){const _0x17499a=a61_0x26aa,_0x4f07ea=_0x380389();while(!![]){try{const _0x576fb3=-parseInt(_0x17499a(0x16f))/0x1*(parseInt(_0x17499a(0x171))/0x2)+-parseInt(_0x17499a(0x173))/0x3*(-parseInt(_0x17499a(0x175))/0x4)+parseInt(_0x17499a(0x17f))/0x5*(-parseInt(_0x17499a(0x17c))/0x6)+-parseInt(_0x17499a(0x17d))/0x7*(parseInt(_0x17499a(0x184))/0x8)+parseInt(_0x17499a(0x188))/0x9*(parseInt(_0x17499a(0x182))/0xa)+-parseInt(_0x17499a(0x183))/0xb*(-parseInt(_0x17499a(0x187))/0xc)+-parseInt(_0x17499a(0x181))/0xd*(-parseInt(_0x17499a(0x180))/0xe);if(_0x576fb3===_0x4efd93)break;else _0x4f07ea['push'](_0x4f07ea['shift']());}catch(_0x42c6bc){_0x4f07ea['push'](_0x4f07ea['shift']());}}}(a61_0x50b4,0x9000c));export async function*parseSSEStream(_0x4de63b){const _0x4bf671=a61_0x26aa;if(!_0x4de63b['body'])throw new Error(_0x4bf671(0x176));const _0x263a10=_0x4de63b[_0x4bf671(0x185)][_0x4bf671(0x17e)](),_0x288a0a=new TextDecoder();let _0x1486fc='',_0x34ef03={};try{while(!![]){const {done:_0x895ee2,value:_0x92a730}=await _0x263a10[_0x4bf671(0x179)]();if(_0x895ee2){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]));break;}_0x1486fc+=_0x288a0a[_0x4bf671(0x189)](_0x92a730,{'stream':!![]});const _0x2092d1=_0x1486fc[_0x4bf671(0x177)]('\x0a');_0x1486fc=_0x2092d1['pop']()||'';for(const _0x3ca3b9 of _0x2092d1){if(_0x3ca3b9[_0x4bf671(0x172)]()===''){_0x34ef03['data']&&(yield parseSSEData(_0x34ef03[_0x4bf671(0x186)]),_0x34ef03={});continue;}if(_0x3ca3b9['startsWith'](':'))continue;const _0x10d230=_0x3ca3b9[_0x4bf671(0x17a)](':');if(_0x10d230===-0x1)continue;const _0x10484d=_0x3ca3b9[_0x4bf671(0x170)](0x0,_0x10d230);let _0x4b9705=_0x3ca3b9[_0x4bf671(0x170)](_0x10d230+0x1);_0x4b9705['startsWith']('\x20')&&(_0x4b9705=_0x4b9705['slice'](0x1));switch(_0x10484d){case'event':_0x34ef03['event']=_0x4b9705;break;case _0x4bf671(0x186):_0x34ef03[_0x4bf671(0x186)]=_0x34ef03[_0x4bf671(0x186)]?_0x34ef03['data']+'\x0a'+_0x4b9705:_0x4b9705;break;case'id':_0x34ef03['id']=_0x4b9705;break;}}}}finally{_0x263a10[_0x4bf671(0x174)]();}}function parseSSEData(_0x2637d3){const _0x469775=a61_0x26aa;try{return JSON[_0x469775(0x178)](_0x2637d3);}catch(_0x519bfd){throw new Error(_0x469775(0x17b)+_0x2637d3,{'cause':_0x519bfd});}}function a61_0x50b4(){const _0x4d518e=['74583YXVBUm','decode','2jOrCKi','slice','1012492rgtsle','trim','1176krhwag','releaseLock','288CgaVtB','Response\x20body\x20is\x20null','split','parse','read','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','12QZDRLd','1673kYogeU','getReader','930130Nxuulj','1940918KvYUPf','156LaAndf','520lUlQXE','77WmXOgx','33080RUIeEH','body','data','1439748INOKSM'];a61_0x50b4=function(){return _0x4d518e;};return a61_0x50b4();}
1
+ function a63_0x3333(){const _0x3cf30c=['4595805VzGCcl','444160ACmXle','data','trim','74804NmVnmY','startsWith','Response\x20body\x20is\x20null','2407944asRwZz','33380dsBfGg','874300olRGBe','8heaaAq','39SSVzoy','getReader','decode','slice','484392KUBPCl','event','body','split'];a63_0x3333=function(){return _0x3cf30c;};return a63_0x3333();}function a63_0x38bf(_0x4d3dc8,_0xc5a083){const _0x333315=a63_0x3333();return a63_0x38bf=function(_0x38bf3a,_0x613cac){_0x38bf3a=_0x38bf3a-0x11b;let _0x8d6afd=_0x333315[_0x38bf3a];return _0x8d6afd;},a63_0x38bf(_0x4d3dc8,_0xc5a083);}(function(_0x2334e9,_0x5e09b0){const _0x18c866=a63_0x38bf,_0x466317=_0x2334e9();while(!![]){try{const _0x521f1a=-parseInt(_0x18c866(0x11b))/0x1*(-parseInt(_0x18c866(0x128))/0x2)+-parseInt(_0x18c866(0x11c))/0x3*(-parseInt(_0x18c866(0x12c))/0x4)+-parseInt(_0x18c866(0x12d))/0x5+parseInt(_0x18c866(0x120))/0x6+parseInt(_0x18c866(0x12b))/0x7+parseInt(_0x18c866(0x125))/0x8+-parseInt(_0x18c866(0x124))/0x9;if(_0x521f1a===_0x5e09b0)break;else _0x466317['push'](_0x466317['shift']());}catch(_0x543041){_0x466317['push'](_0x466317['shift']());}}}(a63_0x3333,0x316c8));export async function*parseSSEStream(_0x42030e){const _0x290739=a63_0x38bf;if(!_0x42030e['body'])throw new Error(_0x290739(0x12a));const _0x2cb104=_0x42030e[_0x290739(0x122)][_0x290739(0x11d)](),_0x6dee17=new TextDecoder();let _0x3e749d='',_0x416d69={};try{while(!![]){const {done:_0x258c36,value:_0x5aea24}=await _0x2cb104['read']();if(_0x258c36){_0x416d69[_0x290739(0x126)]&&(yield parseSSEData(_0x416d69['data']));break;}_0x3e749d+=_0x6dee17[_0x290739(0x11e)](_0x5aea24,{'stream':!![]});const _0x409680=_0x3e749d[_0x290739(0x123)]('\x0a');_0x3e749d=_0x409680['pop']()||'';for(const _0x507755 of _0x409680){if(_0x507755[_0x290739(0x127)]()===''){_0x416d69[_0x290739(0x126)]&&(yield parseSSEData(_0x416d69['data']),_0x416d69={});continue;}if(_0x507755[_0x290739(0x129)](':'))continue;const _0x245c80=_0x507755['indexOf'](':');if(_0x245c80===-0x1)continue;const _0x1acd5a=_0x507755['slice'](0x0,_0x245c80);let _0x921d64=_0x507755[_0x290739(0x11f)](_0x245c80+0x1);_0x921d64[_0x290739(0x129)]('\x20')&&(_0x921d64=_0x921d64[_0x290739(0x11f)](0x1));switch(_0x1acd5a){case _0x290739(0x121):_0x416d69[_0x290739(0x121)]=_0x921d64;break;case _0x290739(0x126):_0x416d69[_0x290739(0x126)]=_0x416d69[_0x290739(0x126)]?_0x416d69[_0x290739(0x126)]+'\x0a'+_0x921d64:_0x921d64;break;case'id':_0x416d69['id']=_0x921d64;break;}}}}finally{_0x2cb104['releaseLock']();}}function parseSSEData(_0x428055){try{return JSON['parse'](_0x428055);}catch(_0x4c7059){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x428055,{'cause':_0x4c7059});}}
@@ -1 +1 @@
1
- (function(_0x6ba05a,_0x11b35d){const _0x4aa59b=a62_0x3d98,_0x178b2f=_0x6ba05a();while(!![]){try{const _0x5b8d7b=-parseInt(_0x4aa59b(0x16f))/0x1*(-parseInt(_0x4aa59b(0x169))/0x2)+parseInt(_0x4aa59b(0x160))/0x3*(-parseInt(_0x4aa59b(0x157))/0x4)+-parseInt(_0x4aa59b(0x15b))/0x5+parseInt(_0x4aa59b(0x167))/0x6+parseInt(_0x4aa59b(0x15c))/0x7+parseInt(_0x4aa59b(0x16c))/0x8*(parseInt(_0x4aa59b(0x155))/0x9)+parseInt(_0x4aa59b(0x16d))/0xa*(-parseInt(_0x4aa59b(0x158))/0xb);if(_0x5b8d7b===_0x11b35d)break;else _0x178b2f['push'](_0x178b2f['shift']());}catch(_0x34e593){_0x178b2f['push'](_0x178b2f['shift']());}}}(a62_0x4662,0x5e02d));import a62_0xd9f56e from'string-width';export function stringWidth(_0x19936a){return a62_0xd9f56e(_0x19936a);}export function padEnd(_0x1088a7,_0x1a5fcb){const _0x240037=a62_0x3d98,_0xcfc639=stringWidth(_0x1088a7);if(_0xcfc639>=_0x1a5fcb)return _0x1088a7;return _0x1088a7+'\x20'[_0x240037(0x15a)](_0x1a5fcb-_0xcfc639);}export function padStart(_0xb22ee3,_0x3bde57){const _0x2f063c=a62_0x3d98,_0x28ee16=stringWidth(_0xb22ee3);if(_0x28ee16>=_0x3bde57)return _0xb22ee3;return'\x20'[_0x2f063c(0x15a)](_0x3bde57-_0x28ee16)+_0xb22ee3;}function a62_0x4662(){const _0x323d6c=['unknown','2XLOkKJ','random','USER','152OnCgOF','2770PdKugv','slice','721351GIIJpq','247950OdnAcY','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','1828724zCqqxV','17523roiJtv','toLowerCase','repeat','2148205WbNIGn','2664501ySvxYk','trim','toString','test','3pYwCyR','\x5c$&','length','Cannot\x20escape\x20empty\x20string\x20literal','replace','env','floor','526248ifyQXW'];a62_0x4662=function(){return _0x323d6c;};return a62_0x4662();}export function centerAlign(_0x298793,_0x58b58b){const _0x3416c5=a62_0x3d98,_0x4558ab=stringWidth(_0x298793);if(_0x4558ab>_0x58b58b){if(_0x58b58b<=0x1)return'…'['substring'](0x0,_0x58b58b);let _0x2714a4=_0x298793;while(stringWidth(_0x2714a4+'…')>_0x58b58b){_0x2714a4=_0x2714a4[_0x3416c5(0x16e)](0x0,-0x1);}return _0x2714a4+'…';}if(_0x4558ab===_0x58b58b)return _0x298793;const _0x33ad04=_0x58b58b-_0x4558ab,_0x59d04e=Math[_0x3416c5(0x166)](_0x33ad04/0x2),_0x2255ae=_0x33ad04-_0x59d04e;return'\x20'[_0x3416c5(0x15a)](_0x59d04e)+_0x298793+'\x20'['repeat'](_0x2255ae);}export function escapeStringLiteral(_0x1b50c3){const _0x19770f=a62_0x3d98;if(!_0x1b50c3||_0x1b50c3[_0x19770f(0x15d)]()['length']===0x0)throw new Error(_0x19770f(0x163));const _0x35b7c1=_0x1b50c3[_0x19770f(0x164)](/'/g,'\x27\x27');return'\x27'+_0x35b7c1+'\x27';}export function globToLike(_0x13b8ea){const _0x55e321=a62_0x3d98;let _0xf7ce66=_0x13b8ea[_0x55e321(0x164)](/\\/g,'\x5c\x5c')[_0x55e321(0x164)](/%/g,'\x5c%')[_0x55e321(0x164)](/_/g,'\x5c_');return _0xf7ce66=_0xf7ce66[_0x55e321(0x164)](/\*/g,'%')[_0x55e321(0x164)](/\?/g,'_'),_0xf7ce66;}export function buildLikePattern(_0x2c19cd){const _0x18d776=a62_0x3d98;if(!_0x2c19cd||_0x2c19cd['trim']()[_0x18d776(0x162)]===0x0)throw new Error(_0x18d776(0x156));const _0x24e59b=globToLike(_0x2c19cd),_0x3bba4c=_0x24e59b['replace'](/'/g,'\x27\x27');return'\x27'+_0x3bba4c+'\x27';}export function matchGlobPattern(_0x118a2b,_0x203121){const _0x178c1c=a62_0x3d98,_0x3de771=_0x203121[_0x178c1c(0x164)](/[.+^${}()|[\]\\]/g,_0x178c1c(0x161))[_0x178c1c(0x164)](/\*/g,'.*')[_0x178c1c(0x164)](/\?/g,'.'),_0xc4c7a8=new RegExp('^'+_0x3de771+'$');return _0xc4c7a8[_0x178c1c(0x15f)](_0x118a2b);}function a62_0x3d98(_0x50cf9d,_0x5a0d88){const _0x4662f3=a62_0x4662();return a62_0x3d98=function(_0x3d9827,_0x1e76af){_0x3d9827=_0x3d9827-0x155;let _0x1f3693=_0x4662f3[_0x3d9827];return _0x1f3693;},a62_0x3d98(_0x50cf9d,_0x5a0d88);}export function getSanitizedUsername(){const _0x151740=a62_0x3d98,_0x489ef6=process['env'][_0x151740(0x16b)]||process[_0x151740(0x165)]['USERNAME']||_0x151740(0x168);return _0x489ef6['replace'](/[^a-zA-Z0-9]/g,'')[_0x151740(0x159)]();}export function generateRandomHex(){const _0x40d784=a62_0x3d98,_0x5541fb=Math['floor'](Math[_0x40d784(0x16a)]()*0xfffff);return _0x5541fb[_0x40d784(0x15e)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x2fc60e,_0x37a191){const _0x583eb2=a64_0x11b4,_0x574df2=_0x2fc60e();while(!![]){try{const _0x3088b6=-parseInt(_0x583eb2(0xc5))/0x1*(parseInt(_0x583eb2(0xc7))/0x2)+parseInt(_0x583eb2(0xbc))/0x3*(-parseInt(_0x583eb2(0xbf))/0x4)+-parseInt(_0x583eb2(0xc2))/0x5*(-parseInt(_0x583eb2(0xcc))/0x6)+parseInt(_0x583eb2(0xc9))/0x7+parseInt(_0x583eb2(0xb3))/0x8+-parseInt(_0x583eb2(0xc6))/0x9+-parseInt(_0x583eb2(0xcb))/0xa*(parseInt(_0x583eb2(0xbb))/0xb);if(_0x3088b6===_0x37a191)break;else _0x574df2['push'](_0x574df2['shift']());}catch(_0x46fc3f){_0x574df2['push'](_0x574df2['shift']());}}}(a64_0x5d8b,0xc7f80));import a64_0x48f2fb from'string-width';export function stringWidth(_0x48290c){return a64_0x48f2fb(_0x48290c);}function a64_0x11b4(_0x3f4daa,_0x3339ed){const _0x5d8bd6=a64_0x5d8b();return a64_0x11b4=function(_0x11b4e8,_0x20e4e1){_0x11b4e8=_0x11b4e8-0xb3;let _0x3f7e62=_0x5d8bd6[_0x11b4e8];return _0x3f7e62;},a64_0x11b4(_0x3f4daa,_0x3339ed);}export function padEnd(_0x23f144,_0x28376b){const _0x5275f6=a64_0x11b4,_0x2e23e8=stringWidth(_0x23f144);if(_0x2e23e8>=_0x28376b)return _0x23f144;return _0x23f144+'\x20'[_0x5275f6(0xbe)](_0x28376b-_0x2e23e8);}export function padStart(_0x1d9b0b,_0x376058){const _0x195ada=a64_0x11b4,_0x4cf4e5=stringWidth(_0x1d9b0b);if(_0x4cf4e5>=_0x376058)return _0x1d9b0b;return'\x20'[_0x195ada(0xbe)](_0x376058-_0x4cf4e5)+_0x1d9b0b;}function a64_0x5d8b(){const _0x27352f=['unknown','padStart','replace','toString','11gtXHRf','78153REVFKu','env','repeat','152aenhTF','USERNAME','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','5HRLCOw','random','\x5c$&','230wXgRJo','305046GsCjEs','4038ivdFAv','test','7832223EiCYSU','USER','15764410KPAcBH','8334486DjcpnB','floor','11005960KCcrWw','trim','substring','length'];a64_0x5d8b=function(){return _0x27352f;};return a64_0x5d8b();}export function centerAlign(_0x4b6c45,_0xe3a707){const _0x44e86a=a64_0x11b4,_0x4d0fb0=stringWidth(_0x4b6c45);if(_0x4d0fb0>_0xe3a707){if(_0xe3a707<=0x1)return'…'[_0x44e86a(0xb5)](0x0,_0xe3a707);let _0x15e8f7=_0x4b6c45;while(stringWidth(_0x15e8f7+'…')>_0xe3a707){_0x15e8f7=_0x15e8f7['slice'](0x0,-0x1);}return _0x15e8f7+'…';}if(_0x4d0fb0===_0xe3a707)return _0x4b6c45;const _0x2aa90d=_0xe3a707-_0x4d0fb0,_0x160df3=Math[_0x44e86a(0xcd)](_0x2aa90d/0x2),_0x2fe523=_0x2aa90d-_0x160df3;return'\x20'[_0x44e86a(0xbe)](_0x160df3)+_0x4b6c45+'\x20'[_0x44e86a(0xbe)](_0x2fe523);}export function escapeStringLiteral(_0x4fded5){const _0xd1201e=a64_0x11b4;if(!_0x4fded5||_0x4fded5[_0xd1201e(0xb4)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x12b8be=_0x4fded5[_0xd1201e(0xb9)](/'/g,'\x27\x27');return'\x27'+_0x12b8be+'\x27';}export function globToLike(_0x18658f){const _0x20afd0=a64_0x11b4;let _0x4eb844=_0x18658f[_0x20afd0(0xb9)](/\\/g,'\x5c\x5c')[_0x20afd0(0xb9)](/%/g,'\x5c%')[_0x20afd0(0xb9)](/_/g,'\x5c_');return _0x4eb844=_0x4eb844[_0x20afd0(0xb9)](/\*/g,'%')['replace'](/\?/g,'_'),_0x4eb844;}export function buildLikePattern(_0x9379ee){const _0x46bfe9=a64_0x11b4;if(!_0x9379ee||_0x9379ee[_0x46bfe9(0xb4)]()[_0x46bfe9(0xb6)]===0x0)throw new Error(_0x46bfe9(0xc1));const _0x570403=globToLike(_0x9379ee),_0x3f9c1a=_0x570403[_0x46bfe9(0xb9)](/'/g,'\x27\x27');return'\x27'+_0x3f9c1a+'\x27';}export function matchGlobPattern(_0x2af1ee,_0x3b9d62){const _0x5a5a03=a64_0x11b4,_0x244b00=_0x3b9d62[_0x5a5a03(0xb9)](/[.+^${}()|[\]\\]/g,_0x5a5a03(0xc4))['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0x429acc=new RegExp('^'+_0x244b00+'$');return _0x429acc[_0x5a5a03(0xc8)](_0x2af1ee);}export function getSanitizedUsername(){const _0x4327e7=a64_0x11b4,_0x5c1f0f=process['env'][_0x4327e7(0xca)]||process[_0x4327e7(0xbd)][_0x4327e7(0xc0)]||_0x4327e7(0xb7);return _0x5c1f0f[_0x4327e7(0xb9)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x4c66a6=a64_0x11b4,_0x15e601=Math[_0x4c66a6(0xcd)](Math[_0x4c66a6(0xc3)]()*0xfffff);return _0x15e601[_0x4c66a6(0xba)](0x10)[_0x4c66a6(0xb8)](0x5,'0');}
@@ -1 +1 @@
1
- function a63_0x17be(){const _0x21f43a=['343059weDBHO','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','database','length','includes','775456RERCAM','1036260qXATVn','669310JVWGoE','push','trim','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','4YDhJhv','catalog','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','table','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','36370BUfEJN','173969uFczsY','198CtRINJ','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','join','3717252PDelKe','252xSeoHO'];a63_0x17be=function(){return _0x21f43a;};return a63_0x17be();}(function(_0x392851,_0x2a92b3){const _0x1bda03=a63_0x3c19,_0x5c4f83=_0x392851();while(!![]){try{const _0xb0d9ff=parseInt(_0x1bda03(0x77))/0x1+parseInt(_0x1bda03(0x84))/0x2+parseInt(_0x1bda03(0x7d))/0x3*(parseInt(_0x1bda03(0x8a))/0x4)+parseInt(_0x1bda03(0x92))/0x5*(parseInt(_0x1bda03(0x7c))/0x6)+parseInt(_0x1bda03(0x7b))/0x7+parseInt(_0x1bda03(0x83))/0x8+-parseInt(_0x1bda03(0x78))/0x9*(parseInt(_0x1bda03(0x85))/0xa);if(_0xb0d9ff===_0x2a92b3)break;else _0x5c4f83['push'](_0x5c4f83['shift']());}catch(_0x2a9cea){_0x5c4f83['push'](_0x5c4f83['shift']());}}}(a63_0x17be,0x414b6));function a63_0x3c19(_0x9c3e77,_0x37761d){const _0x17bec2=a63_0x17be();return a63_0x3c19=function(_0x3c19ca,_0x1ba050){_0x3c19ca=_0x3c19ca-0x77;let _0x1d0288=_0x17bec2[_0x3c19ca];return _0x1d0288;},a63_0x3c19(_0x9c3e77,_0x37761d);}function hasWildcard(_0x4e7c02){const _0x13d644=a63_0x3c19;return _0x4e7c02[_0x13d644(0x82)]('*')||_0x4e7c02[_0x13d644(0x82)]('?');}export function parseTableReference(_0x598751){const _0x88d2a6=a63_0x3c19;if(!_0x598751||_0x598751['trim']()[_0x88d2a6(0x81)]===0x0)throw new Error(_0x88d2a6(0x91));const _0x220aa1=_0x598751[_0x88d2a6(0x87)](),_0x25b4bb={'original':_0x220aa1},_0x400ea7=_0x220aa1[_0x88d2a6(0x7f)]('.');if(_0x400ea7[_0x88d2a6(0x81)]===0x1){const _0x524b1a=_0x400ea7[0x0];if(!_0x524b1a)throw new Error(_0x88d2a6(0x7e));_0x25b4bb[_0x88d2a6(0x8f)]=_0x524b1a;}else{if(_0x400ea7['length']===0x2){const [_0x59dbe4,_0x285f83]=_0x400ea7;if(!_0x59dbe4)throw new Error(_0x88d2a6(0x90));if(!_0x285f83)throw new Error(_0x88d2a6(0x8d));_0x25b4bb[_0x88d2a6(0x80)]=_0x59dbe4,_0x25b4bb[_0x88d2a6(0x8f)]=_0x285f83;}else{if(_0x400ea7[_0x88d2a6(0x81)]===0x3){const [_0x1e378f,_0x1c2f04,_0x4569e8]=_0x400ea7;if(!_0x1e378f||!_0x1c2f04||!_0x4569e8)throw new Error(_0x88d2a6(0x88));_0x25b4bb['catalog']=_0x1e378f,_0x25b4bb[_0x88d2a6(0x80)]=_0x1c2f04,_0x25b4bb['table']=_0x4569e8;}else throw new Error(_0x88d2a6(0x89));}}return _0x25b4bb;}export function formatTableReference(_0x1f50b9){const _0x987b55=a63_0x3c19,_0x4012a7=[];return _0x1f50b9[_0x987b55(0x8b)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9['catalog']),_0x1f50b9[_0x987b55(0x80)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x80)]),_0x1f50b9[_0x987b55(0x8f)]&&_0x4012a7[_0x987b55(0x86)](_0x1f50b9[_0x987b55(0x8f)]),_0x4012a7[_0x987b55(0x7a)]('.');}export function validateTableListReference(_0x200de6){return undefined;}export function validateTableDescribeReference(_0x6c994d){const _0xf04cb2=a63_0x3c19;if(!_0x6c994d['table'])return _0xf04cb2(0x8c);if(_0x6c994d['database']&&hasWildcard(_0x6c994d[_0xf04cb2(0x80)]))return _0xf04cb2(0x79);if(hasWildcard(_0x6c994d['table']))return _0xf04cb2(0x8e);return undefined;}
1
+ function a65_0x23ad(){const _0x3a9b32=['Table\x20name\x20is\x20required\x20for\x20describe\x20operation','419811Avwpvj','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','includes','414fEHRpd','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1276448ePfMlO','1660582lndsiH','47830owaZDt','5ogMDhL','length','split','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','6035232GohmXy','catalog','126cpfAja','769CHQlHX','48zWLkyQ','trim','66WlvJvx','613104mTGmeQ','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','push','database','join'];a65_0x23ad=function(){return _0x3a9b32;};return a65_0x23ad();}(function(_0x8f4e9a,_0x2021eb){const _0xfaa035=a65_0x432e,_0x5a7cc8=_0x8f4e9a();while(!![]){try{const _0x16e0de=parseInt(_0xfaa035(0xfd))/0x1*(-parseInt(_0xfaa035(0xfc))/0x2)+-parseInt(_0xfaa035(0x101))/0x3+parseInt(_0xfaa035(0x10d))/0x4*(-parseInt(_0xfaa035(0xf6))/0x5)+parseInt(_0xfaa035(0x100))/0x6*(parseInt(_0xfaa035(0x107))/0x7)+parseInt(_0xfaa035(0xfa))/0x8+parseInt(_0xfaa035(0x10b))/0x9*(parseInt(_0xfaa035(0xf5))/0xa)+parseInt(_0xfaa035(0xf4))/0xb*(-parseInt(_0xfaa035(0xfe))/0xc);if(_0x16e0de===_0x2021eb)break;else _0x5a7cc8['push'](_0x5a7cc8['shift']());}catch(_0x8a7513){_0x5a7cc8['push'](_0x5a7cc8['shift']());}}}(a65_0x23ad,0x6fe6e));function hasWildcard(_0x2a9992){const _0x40b651=a65_0x432e;return _0x2a9992[_0x40b651(0x10a)]('*')||_0x2a9992[_0x40b651(0x10a)]('?');}export function parseTableReference(_0x5856b8){const _0x46918d=a65_0x432e;if(!_0x5856b8||_0x5856b8[_0x46918d(0xff)]()[_0x46918d(0xf7)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x538c8b=_0x5856b8[_0x46918d(0xff)](),_0x1b096a={'original':_0x538c8b},_0x20f669=_0x538c8b[_0x46918d(0xf8)]('.');if(_0x20f669[_0x46918d(0xf7)]===0x1){const _0x21e9e3=_0x20f669[0x0];if(!_0x21e9e3)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1b096a['table']=_0x21e9e3;}else{if(_0x20f669[_0x46918d(0xf7)]===0x2){const [_0x5e1220,_0x1573d7]=_0x20f669;if(!_0x5e1220)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x1573d7)throw new Error(_0x46918d(0xf9));_0x1b096a['database']=_0x5e1220,_0x1b096a[_0x46918d(0x109)]=_0x1573d7;}else{if(_0x20f669[_0x46918d(0xf7)]===0x3){const [_0x4da1de,_0x5a672c,_0x27df9d]=_0x20f669;if(!_0x4da1de||!_0x5a672c||!_0x27df9d)throw new Error(_0x46918d(0x102));_0x1b096a[_0x46918d(0xfb)]=_0x4da1de,_0x1b096a[_0x46918d(0x104)]=_0x5a672c,_0x1b096a[_0x46918d(0x109)]=_0x27df9d;}else throw new Error(_0x46918d(0x10c));}}return _0x1b096a;}export function formatTableReference(_0x20687a){const _0x3b749b=a65_0x432e,_0x83ecd9=[];return _0x20687a[_0x3b749b(0xfb)]&&_0x83ecd9['push'](_0x20687a['catalog']),_0x20687a[_0x3b749b(0x104)]&&_0x83ecd9[_0x3b749b(0x103)](_0x20687a[_0x3b749b(0x104)]),_0x20687a['table']&&_0x83ecd9[_0x3b749b(0x103)](_0x20687a[_0x3b749b(0x109)]),_0x83ecd9[_0x3b749b(0x105)]('.');}function a65_0x432e(_0x2e7e2c,_0x5693e6){const _0x23ad27=a65_0x23ad();return a65_0x432e=function(_0x432ea6,_0x51e944){_0x432ea6=_0x432ea6-0xf4;let _0x5ea0f0=_0x23ad27[_0x432ea6];return _0x5ea0f0;},a65_0x432e(_0x2e7e2c,_0x5693e6);}export function validateTableListReference(_0x373e4d){return undefined;}export function validateTableDescribeReference(_0x9df721){const _0x5953da=a65_0x432e;if(!_0x9df721[_0x5953da(0x109)])return _0x5953da(0x106);if(_0x9df721[_0x5953da(0x104)]&&hasWildcard(_0x9df721[_0x5953da(0x104)]))return _0x5953da(0x108);if(hasWildcard(_0x9df721['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- function a64_0xea6b(){const _0x3e711c=['8328ZacFBc','102920HzVNwa','30gYfebc','.dig','732bVqdMC','.digdag','549765pDhjcD','7509kSPoPk','10hNEUjg','337843jDskaB','887928gqQPtV','startsWith','252FEhIYK','1126248XMWAQh'];a64_0xea6b=function(){return _0x3e711c;};return a64_0xea6b();}const a64_0x3151b0=a64_0x2e88;(function(_0x5e0e01,_0x535c87){const _0x2f7b7b=a64_0x2e88,_0x2d9172=_0x5e0e01();while(!![]){try{const _0x25f51e=-parseInt(_0x2f7b7b(0x16c))/0x1+parseInt(_0x2f7b7b(0x167))/0x2+parseInt(_0x2f7b7b(0x164))/0x3*(-parseInt(_0x2f7b7b(0x161))/0x4)+parseInt(_0x2f7b7b(0x165))/0x5*(parseInt(_0x2f7b7b(0x16a))/0x6)+-parseInt(_0x2f7b7b(0x169))/0x7*(parseInt(_0x2f7b7b(0x16b))/0x8)+-parseInt(_0x2f7b7b(0x163))/0x9+parseInt(_0x2f7b7b(0x16d))/0xa*(parseInt(_0x2f7b7b(0x166))/0xb);if(_0x25f51e===_0x535c87)break;else _0x2d9172['push'](_0x2d9172['shift']());}catch(_0x30a1a1){_0x2d9172['push'](_0x2d9172['shift']());}}}(a64_0xea6b,0x3d855));function a64_0x2e88(_0x14b34e,_0x43d225){const _0xea6ba5=a64_0xea6b();return a64_0x2e88=function(_0x2e88f9,_0x29b639){_0x2e88f9=_0x2e88f9-0x161;let _0x328759=_0xea6ba5[_0x2e88f9];return _0x328759;},a64_0x2e88(_0x14b34e,_0x43d225);}export const WORKFLOW_FILE_EXTENSION=a64_0x3151b0(0x16e);export function shouldIncludeInArchive(_0x3c968e){const _0x3c185f=a64_0x3151b0;if(_0x3c968e===_0x3c185f(0x162))return!![];if(_0x3c968e[_0x3c185f(0x168)]('.'))return![];return!![];}
1
+ function a66_0x1df1(_0x1b0384,_0x2868e2){const _0x1253e0=a66_0x1253();return a66_0x1df1=function(_0x1df12e,_0xd381ac){_0x1df12e=_0x1df12e-0xd0;let _0x2e5f21=_0x1253e0[_0x1df12e];return _0x2e5f21;},a66_0x1df1(_0x1b0384,_0x2868e2);}function a66_0x1253(){const _0x4e4577=['8ZYwkcB','startsWith','50RtYmlS','24686DGGMCJ','8808821SOdZfK','2174368NkkFQY','2184876yeGtrn','78oAIsOv','.digdag','3414771rZWbZT','2449320Yvnubn','1302282kQkIId'];a66_0x1253=function(){return _0x4e4577;};return a66_0x1253();}(function(_0x91c9c5,_0x2907e1){const _0xcb2b8=a66_0x1df1,_0x223c3c=_0x91c9c5();while(!![]){try{const _0x5d1fe1=parseInt(_0xcb2b8(0xd5))/0x1+-parseInt(_0xcb2b8(0xd9))/0x2*(-parseInt(_0xcb2b8(0xd1))/0x3)+-parseInt(_0xcb2b8(0xdb))/0x4+-parseInt(_0xcb2b8(0xd4))/0x5+-parseInt(_0xcb2b8(0xd0))/0x6+parseInt(_0xcb2b8(0xda))/0x7*(-parseInt(_0xcb2b8(0xd6))/0x8)+-parseInt(_0xcb2b8(0xd3))/0x9*(-parseInt(_0xcb2b8(0xd8))/0xa);if(_0x5d1fe1===_0x2907e1)break;else _0x223c3c['push'](_0x223c3c['shift']());}catch(_0x196f36){_0x223c3c['push'](_0x223c3c['shift']());}}}(a66_0x1253,0xd3022));export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1fdba1){const _0x40ebc2=a66_0x1df1;if(_0x1fdba1===_0x40ebc2(0xd2))return!![];if(_0x1fdba1[_0x40ebc2(0xd7)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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": {