@treasuredata/tdx 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/{cdp-client.d.ts → cdp-api-client.d.ts} +5 -5
  5. package/dist/client/cdp-api-client.d.ts.map +1 -0
  6. package/dist/client/cdp-api-client.js +1 -0
  7. package/dist/client/cdp-api-client.js.map +1 -0
  8. package/dist/client/http-client.js +1 -1
  9. package/dist/client/{llm-client.d.ts → llm-api-client.d.ts} +5 -5
  10. package/dist/client/llm-api-client.d.ts.map +1 -0
  11. package/dist/client/llm-api-client.js +1 -0
  12. package/dist/client/llm-api-client.js.map +1 -0
  13. package/dist/client/rate-limiter.js +1 -1
  14. package/dist/client/{td-client.d.ts → td-api-client.d.ts} +8 -15
  15. package/dist/client/td-api-client.d.ts.map +1 -0
  16. package/dist/client/td-api-client.js +1 -0
  17. package/dist/client/td-api-client.js.map +1 -0
  18. package/dist/client/{trino-client.d.ts → trino-api-client.d.ts} +5 -5
  19. package/dist/client/trino-api-client.d.ts.map +1 -0
  20. package/dist/client/trino-api-client.js +1 -0
  21. package/dist/client/trino-api-client.js.map +1 -0
  22. package/dist/client/workflow-client.d.ts +4 -4
  23. package/dist/client/workflow-client.d.ts.map +1 -1
  24. package/dist/client/workflow-client.js +1 -1
  25. package/dist/client/workflow-client.js.map +1 -1
  26. package/dist/commands/activations.js +1 -1
  27. package/dist/commands/api-command.js +1 -1
  28. package/dist/commands/auth-command.js +1 -1
  29. package/dist/commands/auth-command.js.map +1 -1
  30. package/dist/commands/chat-command.js +1 -1
  31. package/dist/commands/claude-command.d.ts.map +1 -1
  32. package/dist/commands/claude-command.js +1 -1
  33. package/dist/commands/claude-command.js.map +1 -1
  34. package/dist/commands/command.js +1 -1
  35. package/dist/commands/context-command.js +1 -1
  36. package/dist/commands/databases.d.ts.map +1 -1
  37. package/dist/commands/databases.js +1 -1
  38. package/dist/commands/databases.js.map +1 -1
  39. package/dist/commands/describe.d.ts.map +1 -1
  40. package/dist/commands/describe.js +1 -1
  41. package/dist/commands/describe.js.map +1 -1
  42. package/dist/commands/job-command.js +1 -1
  43. package/dist/commands/llm-command.js +1 -1
  44. package/dist/commands/llm-proxy.js +1 -1
  45. package/dist/commands/parent-segment-command.js +1 -1
  46. package/dist/commands/profiles-command.js +1 -1
  47. package/dist/commands/query-command.js +1 -1
  48. package/dist/commands/query-command.js.map +1 -1
  49. package/dist/commands/segment-command.js +1 -1
  50. package/dist/commands/segment-command.js.map +1 -1
  51. package/dist/commands/segment-create-command.js +1 -1
  52. package/dist/commands/segment-fields-command.js +1 -1
  53. package/dist/commands/segment-pwd-command.js +1 -1
  54. package/dist/commands/segment-update-command.js +1 -1
  55. package/dist/commands/segment-use-command.js +1 -1
  56. package/dist/commands/segments.js +1 -1
  57. package/dist/commands/show.js +1 -1
  58. package/dist/commands/show.js.map +1 -1
  59. package/dist/commands/tables.d.ts.map +1 -1
  60. package/dist/commands/tables.js +1 -1
  61. package/dist/commands/tables.js.map +1 -1
  62. package/dist/commands/use-command.js +1 -1
  63. package/dist/commands/workflow-command.js +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/config.js +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/index.d.ts +4 -4
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/index.js.map +1 -1
  74. package/dist/proxy/anthropic-adapter.js +1 -1
  75. package/dist/proxy/server.js +1 -1
  76. package/dist/proxy/session-cache.js +1 -1
  77. package/dist/sdk/api.d.ts +3 -6
  78. package/dist/sdk/api.d.ts.map +1 -1
  79. package/dist/sdk/api.js +1 -1
  80. package/dist/sdk/api.js.map +1 -1
  81. package/dist/sdk/errors.js +1 -1
  82. package/dist/sdk/index.d.ts +77 -88
  83. package/dist/sdk/index.d.ts.map +1 -1
  84. package/dist/sdk/index.js +1 -1
  85. package/dist/sdk/index.js.map +1 -1
  86. package/dist/sdk/job.d.ts +10 -4
  87. package/dist/sdk/job.d.ts.map +1 -1
  88. package/dist/sdk/job.js +1 -1
  89. package/dist/sdk/job.js.map +1 -1
  90. package/dist/sdk/llm.d.ts +5 -4
  91. package/dist/sdk/llm.d.ts.map +1 -1
  92. package/dist/sdk/llm.js +1 -1
  93. package/dist/sdk/llm.js.map +1 -1
  94. package/dist/sdk/query.d.ts +176 -10
  95. package/dist/sdk/query.d.ts.map +1 -1
  96. package/dist/sdk/query.js +1 -1
  97. package/dist/sdk/query.js.map +1 -1
  98. package/dist/sdk/segment.d.ts +3 -3
  99. package/dist/sdk/segment.d.ts.map +1 -1
  100. package/dist/sdk/segment.js +1 -1
  101. package/dist/sdk/segment.js.map +1 -1
  102. package/dist/sdk/workflow.d.ts +4 -4
  103. package/dist/sdk/workflow.d.ts.map +1 -1
  104. package/dist/sdk/workflow.js +1 -1
  105. package/dist/sdk/workflow.js.map +1 -1
  106. package/dist/types/database.d.ts +25 -0
  107. package/dist/types/database.d.ts.map +1 -0
  108. package/dist/types/database.js +1 -0
  109. package/dist/types/database.js.map +1 -0
  110. package/dist/types/endpoints.js +1 -1
  111. package/dist/types/index.d.ts +3 -296
  112. package/dist/types/index.d.ts.map +1 -1
  113. package/dist/types/index.js +1 -1
  114. package/dist/types/job.d.ts +54 -0
  115. package/dist/types/job.d.ts.map +1 -0
  116. package/dist/types/job.js +1 -0
  117. package/dist/types/job.js.map +1 -0
  118. package/dist/types/llm.d.ts +226 -0
  119. package/dist/types/llm.d.ts.map +1 -0
  120. package/dist/types/llm.js +1 -0
  121. package/dist/types/llm.js.map +1 -0
  122. package/dist/utils/agent-ref-parser.js +1 -1
  123. package/dist/utils/chat-cache.js +1 -1
  124. package/dist/utils/colors.js +1 -1
  125. package/dist/utils/command-output.js +1 -1
  126. package/dist/utils/constants.js +1 -1
  127. package/dist/utils/file-permissions.js +1 -1
  128. package/dist/utils/format-detector.js +1 -1
  129. package/dist/utils/formatters.js +1 -1
  130. package/dist/utils/json-loader.js +1 -1
  131. package/dist/utils/model-aliases.js +1 -1
  132. package/dist/utils/option-validation.js +1 -1
  133. package/dist/utils/port.js +1 -1
  134. package/dist/utils/process.js +1 -1
  135. package/dist/utils/prompt.js +1 -1
  136. package/dist/utils/segment-path-parser.js +1 -1
  137. package/dist/utils/segment-ref-parser.js +1 -1
  138. package/dist/utils/spinner.d.ts +2 -2
  139. package/dist/utils/spinner.js +1 -1
  140. package/dist/utils/sql-parser.js +1 -1
  141. package/dist/utils/sse-parser.js +1 -1
  142. package/dist/utils/string-utils.js +1 -1
  143. package/dist/utils/table-ref-parser.js +1 -1
  144. package/dist/utils/tdx-logger.js +1 -1
  145. package/dist/utils/tdx-logger.js.map +1 -1
  146. package/dist/utils/tree-formatter.js +1 -1
  147. package/dist/utils/version-check.js +1 -1
  148. package/dist/utils/workflow-utils.js +1 -1
  149. package/package.json +1 -1
  150. package/dist/client/cdp-client.d.ts.map +0 -1
  151. package/dist/client/cdp-client.js +0 -1
  152. package/dist/client/cdp-client.js.map +0 -1
  153. package/dist/client/llm-client.d.ts.map +0 -1
  154. package/dist/client/llm-client.js +0 -1
  155. package/dist/client/llm-client.js.map +0 -1
  156. package/dist/client/td-client.d.ts.map +0 -1
  157. package/dist/client/td-client.js +0 -1
  158. package/dist/client/td-client.js.map +0 -1
  159. package/dist/client/trino-client.d.ts.map +0 -1
  160. package/dist/client/trino-client.js +0 -1
  161. package/dist/client/trino-client.js.map +0 -1
  162. package/dist/sdk/database.d.ts +0 -41
  163. package/dist/sdk/database.d.ts.map +0 -1
  164. package/dist/sdk/database.js +0 -1
  165. package/dist/sdk/database.js.map +0 -1
  166. package/dist/sdk/table.d.ts +0 -123
  167. package/dist/sdk/table.d.ts.map +0 -1
  168. package/dist/sdk/table.js +0 -1
  169. package/dist/sdk/table.js.map +0 -1
@@ -1 +1 @@
1
- function a61_0x27fa(){const _0x2ce297=['10fKUeba','trim','cwd','1042153iMtiMC','2014722UzAqCC','72119DhChEr','3005105EOAxzV','4QYtQNh','993117fqWvuf','2493yMOdnk','23447116fEpYLY','tdx','40cuZnev','last_chat_id','.cache','utf-8','13810YQMUTT'];a61_0x27fa=function(){return _0x2ce297;};return a61_0x27fa();}(function(_0x14ee27,_0x51936a){const _0x3b7aa2=a61_0x532e,_0x18fb05=_0x14ee27();while(!![]){try{const _0x1143bc=parseInt(_0x3b7aa2(0xc4))/0x1*(parseInt(_0x3b7aa2(0xbf))/0x2)+-parseInt(_0x3b7aa2(0xc7))/0x3+parseInt(_0x3b7aa2(0xc6))/0x4*(-parseInt(_0x3b7aa2(0xc5))/0x5)+parseInt(_0x3b7aa2(0xc3))/0x6+parseInt(_0x3b7aa2(0xc2))/0x7*(-parseInt(_0x3b7aa2(0xcb))/0x8)+-parseInt(_0x3b7aa2(0xc8))/0x9*(parseInt(_0x3b7aa2(0xbe))/0xa)+parseInt(_0x3b7aa2(0xc9))/0xb;if(_0x1143bc===_0x51936a)break;else _0x18fb05['push'](_0x18fb05['shift']());}catch(_0x433ea0){_0x18fb05['push'](_0x18fb05['shift']());}}}(a61_0x27fa,0xbbbb2));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0xafe837=a61_0x532e;return join(process[_0xafe837(0xc1)](),_0xafe837(0xcd),_0xafe837(0xca));}function getLastChatIdPath(){const _0x4d7520=a61_0x532e;return join(getCacheDir(),_0x4d7520(0xcc));}function ensureCacheDir(){const _0x21030b=getCacheDir();!existsSync(_0x21030b)&&mkdirSync(_0x21030b,{'recursive':!![]});}export function saveLastChatId(_0x26bca3){const _0x15a606=a61_0x532e;ensureCacheDir();const _0x48ee8f=getLastChatIdPath();writeFileSync(_0x48ee8f,_0x26bca3,_0x15a606(0xce));}function a61_0x532e(_0x43dabb,_0x4882eb){const _0x27faf5=a61_0x27fa();return a61_0x532e=function(_0x532ed0,_0x4fe31d){_0x532ed0=_0x532ed0-0xbe;let _0x523880=_0x27faf5[_0x532ed0];return _0x523880;},a61_0x532e(_0x43dabb,_0x4882eb);}export function loadLastChatId(){const _0x51b8c6=a61_0x532e,_0x2e846b=getLastChatIdPath();if(!existsSync(_0x2e846b))return undefined;try{const _0x8b84a6=readFileSync(_0x2e846b,_0x51b8c6(0xce))[_0x51b8c6(0xc0)]();return _0x8b84a6||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x31af19=a61_0x532e,_0x4a2007=getLastChatIdPath();if(existsSync(_0x4a2007))try{writeFileSync(_0x4a2007,'',_0x31af19(0xce));}catch{}}
1
+ function a62_0x1fcd(_0x2ac9b8,_0x56162e){const _0x5c0c56=a62_0x5c0c();return a62_0x1fcd=function(_0x1fcd99,_0x34df76){_0x1fcd99=_0x1fcd99-0xfb;let _0x12be41=_0x5c0c56[_0x1fcd99];return _0x12be41;},a62_0x1fcd(_0x2ac9b8,_0x56162e);}(function(_0x2f8cee,_0x11e970){const _0x518962=a62_0x1fcd,_0x4d7cb8=_0x2f8cee();while(!![]){try{const _0x5ac03d=-parseInt(_0x518962(0xfb))/0x1+-parseInt(_0x518962(0xfd))/0x2+-parseInt(_0x518962(0x101))/0x3+-parseInt(_0x518962(0x103))/0x4*(-parseInt(_0x518962(0xfe))/0x5)+parseInt(_0x518962(0x102))/0x6*(-parseInt(_0x518962(0x108))/0x7)+-parseInt(_0x518962(0x109))/0x8+-parseInt(_0x518962(0x100))/0x9*(-parseInt(_0x518962(0xfc))/0xa);if(_0x5ac03d===_0x11e970)break;else _0x4d7cb8['push'](_0x4d7cb8['shift']());}catch(_0x1ca5c8){_0x4d7cb8['push'](_0x4d7cb8['shift']());}}}(a62_0x5c0c,0x9b106));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';function a62_0x5c0c(){const _0x23557f=['.cache','21891051LpJhmb','3512844gNtFcq','13350OYqKuL','44BRNEZa','cwd','tdx','trim','utf-8','56GTjknp','1060640fSlpSx','1224346UFwjRb','10Konnbs','313140VHlykH','411385AOuoZF'];a62_0x5c0c=function(){return _0x23557f;};return a62_0x5c0c();}import{join}from'path';function getCacheDir(){const _0x2283ec=a62_0x1fcd;return join(process[_0x2283ec(0x104)](),_0x2283ec(0xff),_0x2283ec(0x105));}function getLastChatIdPath(){return join(getCacheDir(),'last_chat_id');}function ensureCacheDir(){const _0xffed19=getCacheDir();!existsSync(_0xffed19)&&mkdirSync(_0xffed19,{'recursive':!![]});}export function saveLastChatId(_0x4d3e1f){const _0x40caf0=a62_0x1fcd;ensureCacheDir();const _0x3a09d8=getLastChatIdPath();writeFileSync(_0x3a09d8,_0x4d3e1f,_0x40caf0(0x107));}export function loadLastChatId(){const _0x412a07=a62_0x1fcd,_0x16a32f=getLastChatIdPath();if(!existsSync(_0x16a32f))return undefined;try{const _0x4b0a08=readFileSync(_0x16a32f,_0x412a07(0x107))[_0x412a07(0x106)]();return _0x4b0a08||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x4d4396=a62_0x1fcd,_0x5ce079=getLastChatIdPath();if(existsSync(_0x5ce079))try{writeFileSync(_0x5ce079,'',_0x4d4396(0x107));}catch{}}
@@ -1 +1 @@
1
- function a62_0xb075(_0x302b70,_0x512bf9){const _0x182dc9=a62_0x182d();return a62_0xb075=function(_0xb07553,_0x402519){_0xb07553=_0xb07553-0x7e;let _0x2fbb9b=_0x182dc9[_0xb07553];return _0x2fbb9b;},a62_0xb075(_0x302b70,_0x512bf9);}(function(_0x46e8d9,_0x25e5a1){const _0xdba604=a62_0xb075,_0x1fe6ce=_0x46e8d9();while(!![]){try{const _0x3324f6=-parseInt(_0xdba604(0x8b))/0x1+parseInt(_0xdba604(0x98))/0x2*(-parseInt(_0xdba604(0x83))/0x3)+-parseInt(_0xdba604(0x85))/0x4*(parseInt(_0xdba604(0x92))/0x5)+parseInt(_0xdba604(0x93))/0x6*(parseInt(_0xdba604(0x8e))/0x7)+-parseInt(_0xdba604(0x8d))/0x8*(-parseInt(_0xdba604(0x87))/0x9)+parseInt(_0xdba604(0x95))/0xa*(-parseInt(_0xdba604(0x8f))/0xb)+parseInt(_0xdba604(0x7e))/0xc;if(_0x3324f6===_0x25e5a1)break;else _0x1fe6ce['push'](_0x1fe6ce['shift']());}catch(_0x1dfb17){_0x1fe6ce['push'](_0x1fe6ce['shift']());}}}(a62_0x182d,0x3a79b));import{Chalk}from'chalk';export function shouldUseColor(_0x285a77={}){const _0x251cb1=a62_0xb075;if(_0x285a77[_0x251cb1(0x99)]===!![])return![];if(_0x285a77[_0x251cb1(0x9d)]===!![])return!![];if(process[_0x251cb1(0x9a)][_0x251cb1(0x9c)]!==undefined)return![];return process[_0x251cb1(0x80)][_0x251cb1(0x7f)]??![];}export function getChalk(_0x5c944d={}){if(shouldUseColor(_0x5c944d))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5a6209,_0x4590ce={}){return getChalk(_0x4590ce)['dim'](_0x5a6209);}function a62_0x182d(){const _0x86847c=['isTTY','stdout','entries','dim','255723epougK','cyan','35272UPZhnw','yellow','36zKiWcN','boolean','length','join','154293FgZHRk','stringify','290344OcSmwN','56QjcwFf','42361LIjhZy','null','isArray','205ikcNTA','110508xpFFQg','map','470CMKxyQ','number','string','4pcxEwD','noColor','env','repeat','NO_COLOR','color','9771708TNPWdR'];a62_0x182d=function(){return _0x86847c;};return a62_0x182d();}export function colorHeader(_0x50fe0e,_0x58bab6={}){const _0x1c8a11=a62_0xb075;return getChalk(_0x58bab6)[_0x1c8a11(0x84)](_0x50fe0e);}export function colorType(_0x9de37a,_0x5c3c44={}){const _0x88f068=a62_0xb075;return getChalk(_0x5c3c44)[_0x88f068(0x82)](_0x9de37a);}export function colorJSONKey(_0x2464c0,_0xabc072={}){return getChalk(_0xabc072)['blue'](_0x2464c0);}export function colorJSONString(_0x341db7,_0x3a0144={}){return getChalk(_0x3a0144)['green'](_0x341db7);}export function colorJSONNumber(_0x361b22,_0x30cc19={}){const _0x4ecfdb=a62_0xb075;return getChalk(_0x30cc19)[_0x4ecfdb(0x84)](_0x361b22);}export function colorJSONBoolean(_0x199c5e,_0x393abe={}){const _0x35d7b2=a62_0xb075;return getChalk(_0x393abe)[_0x35d7b2(0x86)](_0x199c5e);}export function colorJSONNull(_0x60c561,_0x1a7cd9={}){return getChalk(_0x1a7cd9)['dim'](_0x60c561);}export function colorizeJSONCompact(_0x4870d8,_0x2bd959={}){const _0x33f6f0=a62_0xb075;if(!shouldUseColor(_0x2bd959))return JSON[_0x33f6f0(0x8c)](_0x4870d8);if(_0x4870d8===null)return colorJSONNull(_0x33f6f0(0x90),_0x2bd959);if(typeof _0x4870d8===_0x33f6f0(0x88))return colorJSONBoolean(String(_0x4870d8),_0x2bd959);if(typeof _0x4870d8===_0x33f6f0(0x96))return colorJSONNumber(String(_0x4870d8),_0x2bd959);if(typeof _0x4870d8===_0x33f6f0(0x97))return colorJSONString(JSON[_0x33f6f0(0x8c)](_0x4870d8),_0x2bd959);if(Array['isArray'](_0x4870d8)){if(_0x4870d8['length']===0x0)return'[]';const _0x1c6833=_0x4870d8[_0x33f6f0(0x94)](_0x5b5bfb=>colorizeJSONCompact(_0x5b5bfb,_0x2bd959));return'['+_0x1c6833[_0x33f6f0(0x8a)](',')+']';}if(typeof _0x4870d8==='object'){const _0x5094af=Object[_0x33f6f0(0x81)](_0x4870d8);if(_0x5094af[_0x33f6f0(0x89)]===0x0)return'{}';const _0x440f20=_0x5094af[_0x33f6f0(0x94)](([_0x1ac1d7,_0x3616ac])=>{const _0x410b1a=colorJSONKey(JSON['stringify'](_0x1ac1d7),_0x2bd959),_0x3a6037=colorizeJSONCompact(_0x3616ac,_0x2bd959);return _0x410b1a+':'+_0x3a6037;});return'{'+_0x440f20['join'](',')+'}';}return String(_0x4870d8);}export function colorizeJSON(_0x126c33,_0x388613={},_0x47086=0x0){const _0x106131=a62_0xb075;if(!shouldUseColor(_0x388613))return JSON[_0x106131(0x8c)](_0x126c33,null,0x2);const _0x3771a4='\x20'[_0x106131(0x9b)](_0x47086),_0xf492ac=_0x47086+0x2;if(_0x126c33===null)return colorJSONNull(_0x106131(0x90),_0x388613);if(typeof _0x126c33===_0x106131(0x88))return colorJSONBoolean(String(_0x126c33),_0x388613);if(typeof _0x126c33===_0x106131(0x96))return colorJSONNumber(String(_0x126c33),_0x388613);if(typeof _0x126c33===_0x106131(0x97))return colorJSONString(JSON[_0x106131(0x8c)](_0x126c33),_0x388613);if(Array[_0x106131(0x91)](_0x126c33)){if(_0x126c33[_0x106131(0x89)]===0x0)return'[]';const _0x5cbb8b=_0x126c33['map'](_0x913ba4=>{const _0x64c398=colorizeJSON(_0x913ba4,_0x388613,_0xf492ac);return''+'\x20'['repeat'](_0xf492ac)+_0x64c398;});return'[\x0a'+_0x5cbb8b[_0x106131(0x8a)](',\x0a')+('\x0a'+_0x3771a4+']');}if(typeof _0x126c33==='object'){const _0x3b670b=Object[_0x106131(0x81)](_0x126c33);if(_0x3b670b[_0x106131(0x89)]===0x0)return'{}';const _0x46ca37=_0x3b670b[_0x106131(0x94)](([_0x2a9790,_0x318e31])=>{const _0x22ec6b=_0x106131,_0x15b485=colorJSONKey(JSON[_0x22ec6b(0x8c)](_0x2a9790),_0x388613),_0x109944=colorizeJSON(_0x318e31,_0x388613,_0xf492ac);return''+'\x20'[_0x22ec6b(0x9b)](_0xf492ac)+_0x15b485+':\x20'+_0x109944;});return'{\x0a'+_0x46ca37[_0x106131(0x8a)](',\x0a')+('\x0a'+_0x3771a4+'}');}return String(_0x126c33);}
1
+ (function(_0xd9eb63,_0x383b27){const _0x4d0cbb=a63_0x5010,_0x2b2795=_0xd9eb63();while(!![]){try{const _0x5b1d18=-parseInt(_0x4d0cbb(0xad))/0x1*(-parseInt(_0x4d0cbb(0x94))/0x2)+parseInt(_0x4d0cbb(0x95))/0x3+-parseInt(_0x4d0cbb(0x9a))/0x4*(parseInt(_0x4d0cbb(0xaf))/0x5)+parseInt(_0x4d0cbb(0x99))/0x6*(-parseInt(_0x4d0cbb(0xa0))/0x7)+parseInt(_0x4d0cbb(0x93))/0x8*(-parseInt(_0x4d0cbb(0xaa))/0x9)+-parseInt(_0x4d0cbb(0x98))/0xa+parseInt(_0x4d0cbb(0xa4))/0xb;if(_0x5b1d18===_0x383b27)break;else _0x2b2795['push'](_0x2b2795['shift']());}catch(_0x4cc3bd){_0x2b2795['push'](_0x2b2795['shift']());}}}(a63_0x1045,0x79ac1));import{Chalk}from'chalk';function a63_0x5010(_0x1b7716,_0x527b70){const _0x1045c=a63_0x1045();return a63_0x5010=function(_0x50100f,_0xd948a6){_0x50100f=_0x50100f-0x90;let _0x482dab=_0x1045c[_0x50100f];return _0x482dab;},a63_0x5010(_0x1b7716,_0x527b70);}export function shouldUseColor(_0x39e59c={}){const _0x155e52=a63_0x5010;if(_0x39e59c[_0x155e52(0x9d)]===!![])return![];if(_0x39e59c['color']===!![])return!![];if(process[_0x155e52(0x9e)][_0x155e52(0xa6)]!==undefined)return![];return process[_0x155e52(0xa7)][_0x155e52(0x96)]??![];}function a63_0x1045(){const _0x3ed100=['length','noColor','env','string','28kyBIRx','repeat','number','boolean','23961806TUOySH','map','NO_COLOR','stdout','join','blue','101502QnoCrw','cyan','entries','2154UmvQJj','object','2878990hNFKGI','dim','green','stringify','120fiLhlh','20NHxypq','172551YSGAFz','isTTY','null','2556140NISHKU','1137678BBTeah','4dzdXoS','isArray'];a63_0x1045=function(){return _0x3ed100;};return a63_0x1045();}export function getChalk(_0x1ad2a6={}){if(shouldUseColor(_0x1ad2a6))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x224682,_0x19030d={}){const _0x4e484d=a63_0x5010;return getChalk(_0x19030d)[_0x4e484d(0x90)](_0x224682);}export function colorHeader(_0xfad990,_0x5d6f9a={}){const _0x8d3cbf=a63_0x5010;return getChalk(_0x5d6f9a)[_0x8d3cbf(0xab)](_0xfad990);}export function colorType(_0xcf1e38,_0x4481a7={}){const _0x35c8be=a63_0x5010;return getChalk(_0x4481a7)[_0x35c8be(0x90)](_0xcf1e38);}export function colorJSONKey(_0x4c377d,_0x55a474={}){const _0x45bedd=a63_0x5010;return getChalk(_0x55a474)[_0x45bedd(0xa9)](_0x4c377d);}export function colorJSONString(_0x60e67a,_0x29fdca={}){const _0x5d0741=a63_0x5010;return getChalk(_0x29fdca)[_0x5d0741(0x91)](_0x60e67a);}export function colorJSONNumber(_0x19f969,_0x543441={}){const _0x97582d=a63_0x5010;return getChalk(_0x543441)[_0x97582d(0xab)](_0x19f969);}export function colorJSONBoolean(_0x6984,_0x13a2a3={}){return getChalk(_0x13a2a3)['yellow'](_0x6984);}export function colorJSONNull(_0x1f46d0,_0x3e0eb9={}){const _0x27fc83=a63_0x5010;return getChalk(_0x3e0eb9)[_0x27fc83(0x90)](_0x1f46d0);}export function colorizeJSONCompact(_0x877872,_0x22296e={}){const _0x9adcc4=a63_0x5010;if(!shouldUseColor(_0x22296e))return JSON[_0x9adcc4(0x92)](_0x877872);if(_0x877872===null)return colorJSONNull(_0x9adcc4(0x97),_0x22296e);if(typeof _0x877872===_0x9adcc4(0xa3))return colorJSONBoolean(String(_0x877872),_0x22296e);if(typeof _0x877872===_0x9adcc4(0xa2))return colorJSONNumber(String(_0x877872),_0x22296e);if(typeof _0x877872===_0x9adcc4(0x9f))return colorJSONString(JSON['stringify'](_0x877872),_0x22296e);if(Array[_0x9adcc4(0x9b)](_0x877872)){if(_0x877872[_0x9adcc4(0x9c)]===0x0)return'[]';const _0x5d0bd9=_0x877872['map'](_0x48f94f=>colorizeJSONCompact(_0x48f94f,_0x22296e));return'['+_0x5d0bd9[_0x9adcc4(0xa8)](',')+']';}if(typeof _0x877872==='object'){const _0x2bcfc6=Object['entries'](_0x877872);if(_0x2bcfc6[_0x9adcc4(0x9c)]===0x0)return'{}';const _0x201028=_0x2bcfc6[_0x9adcc4(0xa5)](([_0xbb1ea0,_0x1a9f8d])=>{const _0x524196=colorJSONKey(JSON['stringify'](_0xbb1ea0),_0x22296e),_0x343d5f=colorizeJSONCompact(_0x1a9f8d,_0x22296e);return _0x524196+':'+_0x343d5f;});return'{'+_0x201028[_0x9adcc4(0xa8)](',')+'}';}return String(_0x877872);}export function colorizeJSON(_0x3d8bea,_0x182614={},_0xb5b604=0x0){const _0x3afa4d=a63_0x5010;if(!shouldUseColor(_0x182614))return JSON['stringify'](_0x3d8bea,null,0x2);const _0x427fcc='\x20'[_0x3afa4d(0xa1)](_0xb5b604),_0x47fe1e=_0xb5b604+0x2;if(_0x3d8bea===null)return colorJSONNull(_0x3afa4d(0x97),_0x182614);if(typeof _0x3d8bea==='boolean')return colorJSONBoolean(String(_0x3d8bea),_0x182614);if(typeof _0x3d8bea===_0x3afa4d(0xa2))return colorJSONNumber(String(_0x3d8bea),_0x182614);if(typeof _0x3d8bea===_0x3afa4d(0x9f))return colorJSONString(JSON['stringify'](_0x3d8bea),_0x182614);if(Array[_0x3afa4d(0x9b)](_0x3d8bea)){if(_0x3d8bea[_0x3afa4d(0x9c)]===0x0)return'[]';const _0x4832ca=_0x3d8bea['map'](_0x5c9fb7=>{const _0x362225=_0x3afa4d,_0x478ab7=colorizeJSON(_0x5c9fb7,_0x182614,_0x47fe1e);return''+'\x20'[_0x362225(0xa1)](_0x47fe1e)+_0x478ab7;});return'[\x0a'+_0x4832ca[_0x3afa4d(0xa8)](',\x0a')+('\x0a'+_0x427fcc+']');}if(typeof _0x3d8bea===_0x3afa4d(0xae)){const _0x44bbdf=Object[_0x3afa4d(0xac)](_0x3d8bea);if(_0x44bbdf[_0x3afa4d(0x9c)]===0x0)return'{}';const _0x9d001b=_0x44bbdf[_0x3afa4d(0xa5)](([_0x5c9ffe,_0x112516])=>{const _0x398229=_0x3afa4d,_0x10146e=colorJSONKey(JSON[_0x398229(0x92)](_0x5c9ffe),_0x182614),_0x43e588=colorizeJSON(_0x112516,_0x182614,_0x47fe1e);return''+'\x20'[_0x398229(0xa1)](_0x47fe1e)+_0x10146e+':\x20'+_0x43e588;});return'{\x0a'+_0x9d001b[_0x3afa4d(0xa8)](',\x0a')+('\x0a'+_0x427fcc+'}');}return String(_0x3d8bea);}
@@ -1 +1 @@
1
- (function(_0x2b099d,_0xb05fbb){const _0x28e2ea=a63_0x153a,_0x58b71d=_0x2b099d();while(!![]){try{const _0x4af104=parseInt(_0x28e2ea(0x11c))/0x1*(parseInt(_0x28e2ea(0xff))/0x2)+-parseInt(_0x28e2ea(0x120))/0x3+-parseInt(_0x28e2ea(0xfa))/0x4+-parseInt(_0x28e2ea(0x123))/0x5+-parseInt(_0x28e2ea(0x111))/0x6*(parseInt(_0x28e2ea(0x12c))/0x7)+parseInt(_0x28e2ea(0xfb))/0x8*(parseInt(_0x28e2ea(0xf8))/0x9)+parseInt(_0x28e2ea(0x103))/0xa;if(_0x4af104===_0xb05fbb)break;else _0x58b71d['push'](_0x58b71d['shift']());}catch(_0x477e3f){_0x58b71d['push'](_0x58b71d['shift']());}}}(a63_0x7964,0x47784));import{writeFileSync}from'fs';function a63_0x153a(_0xfa44ec,_0x2b9de8){const _0x796471=a63_0x7964();return a63_0x153a=function(_0x153aab,_0x523d25){_0x153aab=_0x153aab-0xf0;let _0x4a7535=_0x796471[_0x153aab];return _0x4a7535;},a63_0x153a(_0xfa44ec,_0x2b9de8);}import{spawn}from'child_process';function a63_0x7964(){const _0x159d9a=['less','map','max','10742sdOCpH','sdk-result','output','cyan','7396360XtsLot','limit','json','red','jsonl','yellow','noColor','push','color','end','boolean','[Object]','forEach','table','24BkPBmG','resolve','─┴─','[query]','stringify','object','cmdout','isTTY','bold','inherit','stdin','47CPCjGY','trim','number','pipe','786435kBsBWY','close','entries','1183320CGlucv','debug','stdout','[error]','format','split','log','stderr','join','674317sYPIGe','write','length','FINISHED','error','varchar','-FXRSn','Results\x20saved\x20to\x20','query','repeat','spawn','No\x20data','3203982FEvPEm','tsv','684792CuIrZA','8YbmPWM'];a63_0x7964=function(){return _0x159d9a;};return a63_0x7964();}import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a63_0x457ec8 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x14262d){const _0x47bb3a=a63_0x153a;return{'format':_0x14262d['format']||'table','output':_0x14262d['output']||'','limit':_0x14262d['limit'],'color':_0x14262d[_0x47bb3a(0x10b)],'noColor':_0x14262d[_0x47bb3a(0x109)]};}function convertSDKResultToQueryResult(_0x2232a1){const _0x13d77d=a63_0x153a,_0x5cea0a=[];if(_0x2232a1[_0x13d77d(0x12e)]>0x0){const _0x257d35=_0x2232a1[0x0];for(const [_0x1ed011,_0x217b9d]of Object[_0x13d77d(0x122)](_0x257d35)){let _0x36185c=_0x13d77d(0xf1);if(typeof _0x217b9d===_0x13d77d(0x11e))_0x36185c=Number['isInteger'](_0x217b9d)?'bigint':'double';else{if(typeof _0x217b9d===_0x13d77d(0x10d))_0x36185c=_0x13d77d(0x10d);else _0x217b9d===null&&(_0x36185c=_0x13d77d(0xf1));}_0x5cea0a[_0x13d77d(0x10a)]({'name':_0x1ed011,'type':_0x36185c});}}return{'queryId':_0x13d77d(0x100),'columns':_0x5cea0a,'data':_0x2232a1,'stats':{'state':_0x13d77d(0x12f),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x2232a1['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x28d697,_0x5d1571){const _0x293668=convertSDKResultToQueryResult(_0x28d697);return formatQueryOutput(_0x293668,_0x5d1571);}export async function formatQueryOutput(_0x415d1c,_0x2443fd){const _0x1e4859=a63_0x153a,{format:_0x225a66,limit:_0x598b15,output:_0x833aa,color:_0x7d8e9,noColor:_0x24b1c7}=_0x2443fd,_0x3d3a93=Boolean(_0x833aa)&&!_0x7d8e9,_0x3a5cc2={'color':_0x7d8e9,'noColor':_0x24b1c7||_0x3d3a93};if(_0x225a66===_0x1e4859(0x110)){const _0x9075bf=shouldUseLess(_0x225a66,_0x833aa);return formatAsTable(_0x415d1c,_0x598b15,_0x9075bf,_0x3a5cc2);}else{if(_0x225a66===_0x1e4859(0x105))return formatAsJSON(_0x415d1c,_0x3a5cc2);else return _0x225a66===_0x1e4859(0x107)?formatAsJSONL(_0x415d1c,_0x3a5cc2):formatQueryResult(_0x415d1c,_0x225a66);}}function shouldUseLess(_0x5359e5,_0x5b0323){const _0x28caab=a63_0x153a;return _0x5359e5==='table'&&process[_0x28caab(0x125)][_0x28caab(0x118)]&&!_0x5b0323;}export function resolveOutputOptions(_0x40c34b){const _0x47cc13=a63_0x153a,_0x8f5278=resolveOutputFormat(_0x40c34b[_0x47cc13(0x127)],_0x40c34b[_0x47cc13(0x101)],_0x47cc13(0x110));let _0x1ba632=typeof _0x40c34b[_0x47cc13(0x104)]===_0x47cc13(0x11e)?_0x40c34b['limit']:parseInt(_0x40c34b['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2c1d64=_0x40c34b[_0x47cc13(0x101)]||'';return shouldUseLess(_0x8f5278,_0x2c1d64)&&(_0x1ba632=Infinity),{'format':_0x8f5278,'output':_0x2c1d64,'limit':_0x1ba632,'color':_0x40c34b[_0x47cc13(0x10b)],'noColor':_0x40c34b[_0x47cc13(0x109)]};}export function writeOutput(_0x1b52dc,_0x39d2eb,_0x19b69c){const _0x4b976d=a63_0x153a;return _0x39d2eb?(writeFileSync(_0x39d2eb,_0x1b52dc),console[_0x4b976d(0xf0)](_0x4b976d(0xf3)+_0x39d2eb),Promise['resolve']()):shouldUseLess(_0x19b69c||'','')?new Promise(_0x56f466=>{const _0x43d5bd=_0x4b976d,_0x2be3a5=spawn(_0x43d5bd(0xfc),[_0x43d5bd(0xf2)],{'stdio':[_0x43d5bd(0x11f),_0x43d5bd(0x11a),_0x43d5bd(0x11a)]});let _0x3afb5f=![];_0x2be3a5['on']('error',()=>{const _0x2c6e82=_0x43d5bd;!_0x3afb5f&&(_0x3afb5f=!![],console[_0x2c6e82(0x129)](_0x1b52dc),_0x56f466());}),_0x2be3a5['on'](_0x43d5bd(0x121),()=>{!_0x3afb5f&&(_0x3afb5f=!![],_0x56f466());}),_0x2be3a5['on'](_0x43d5bd(0xf6),()=>{const _0x1044c1=_0x43d5bd;!_0x3afb5f&&_0x2be3a5[_0x1044c1(0x11b)]&&(_0x2be3a5[_0x1044c1(0x11b)]['on'](_0x1044c1(0xf0),()=>{}),_0x2be3a5['stdin'][_0x1044c1(0x12d)](_0x1b52dc),_0x2be3a5[_0x1044c1(0x11b)][_0x1044c1(0x10c)]());}),!_0x2be3a5[_0x43d5bd(0x11b)]&&(!_0x3afb5f&&(_0x3afb5f=!![],console[_0x43d5bd(0x129)](_0x1b52dc),_0x56f466()));}):(console[_0x4b976d(0x129)](_0x1b52dc),Promise[_0x4b976d(0x112)]());}export async function handleSDKOutput(_0x59a53a,_0x4d4b37){const _0x4f4cde=resolveOutputOptions(_0x4d4b37),_0x5c9e80=await formatSDKOutput(_0x59a53a,_0x4f4cde);await writeOutput(_0x5c9e80,_0x4f4cde['output']||undefined,_0x4f4cde['format']);}export async function handleQueryOutput(_0x5bdc7b,_0x24ba8b){const _0x240db3=a63_0x153a,_0xcf38e4=resolveOutputOptions(_0x24ba8b),_0x4cd216=await formatQueryOutput(_0x5bdc7b,_0xcf38e4);await writeOutput(_0x4cd216,_0xcf38e4[_0x240db3(0x101)]||undefined,_0xcf38e4[_0x240db3(0x127)]);}async function formatSingleObject(_0x54bdf8,_0x300b85){const _0x1f8e5a=a63_0x153a,{format:_0x1fbc58,color:_0x348884,noColor:_0x38154a}=_0x300b85,_0x83f53c={'color':_0x348884,'noColor':_0x38154a};if(_0x1fbc58===_0x1f8e5a(0x105)){if(shouldUseColor(_0x83f53c))return colorizeJSON(_0x54bdf8,_0x83f53c);return JSON[_0x1f8e5a(0x115)](_0x54bdf8,null,0x2);}else{if(_0x1fbc58==='jsonl'){if(shouldUseColor(_0x83f53c))return colorizeJSONCompact(_0x54bdf8,_0x83f53c);return JSON[_0x1f8e5a(0x115)](_0x54bdf8);}else{if(_0x1fbc58===_0x1f8e5a(0xf9))return Object[_0x1f8e5a(0x122)](_0x54bdf8)[_0x1f8e5a(0xfd)](([_0x27c2d0,_0x4f398d])=>_0x27c2d0+'\x09'+_0x4f398d)[_0x1f8e5a(0x12b)]('\x0a');else{const _0x51a569=Object['entries'](_0x54bdf8);if(_0x51a569[_0x1f8e5a(0x12e)]===0x0)return _0x1f8e5a(0xf7);const _0x118b4e=_0x54bdf8[_0x1f8e5a(0x124)],_0x29260d=_0x54bdf8[_0x1f8e5a(0xf4)],_0xe3ad1f=_0x29260d?typeof _0x29260d==='string'?_0x29260d:JSON[_0x1f8e5a(0x115)](_0x29260d,null,0x2):undefined,_0xeab1a6=_0x51a569['filter'](([_0x3328f9])=>_0x3328f9!==_0x1f8e5a(0x124)&&_0x3328f9!=='query'),_0x1b7456=Math[_0x1f8e5a(0xfe)](..._0xeab1a6[_0x1f8e5a(0xfd)](([_0xdbcb1a])=>_0xdbcb1a[_0x1f8e5a(0x12e)])),_0x374930=Math[_0x1f8e5a(0xfe)](..._0xeab1a6[_0x1f8e5a(0xfd)](([,_0x568040])=>{const _0x40a2ba=_0x1f8e5a;try{const _0x2fc020=_0x568040===null||_0x568040===undefined?'':typeof _0x568040===_0x40a2ba(0x116)?JSON['stringify'](_0x568040):String(_0x568040),_0x25ce9e=_0x2fc020['split']('\x0a');return Math['max'](..._0x25ce9e[_0x40a2ba(0xfd)](_0x72af6d=>_0x72af6d[_0x40a2ba(0x12e)]),0x0);}catch{return 0x0;}}),0x14),_0x2c9ee7=[];_0x2c9ee7['push'](colorBorder('┌─'+'─'[_0x1f8e5a(0xf5)](_0x1b7456)+'─┬─'+'─'['repeat'](_0x374930)+'─┐',_0x83f53c)),_0xeab1a6[_0x1f8e5a(0x10f)](([_0x450695,_0x4cc406])=>{const _0x20b871=_0x1f8e5a;let _0x139e35;try{_0x139e35=_0x4cc406===null||_0x4cc406===undefined?'':typeof _0x4cc406===_0x20b871(0x116)?JSON['stringify'](_0x4cc406):String(_0x4cc406);}catch{_0x139e35=_0x20b871(0x10e);}const _0x48ca17=_0x450695['padEnd'](_0x1b7456),_0x3ed1fc=_0x139e35[_0x20b871(0x128)]('\x0a');_0x3ed1fc[_0x20b871(0x10f)]((_0x5a0576,_0x23c740)=>{const _0x2d2244=_0x20b871,_0x359a87=colorBorder('│',_0x83f53c);_0x23c740===0x0?_0x2c9ee7['push'](_0x359a87+'\x20'+_0x48ca17+'\x20'+_0x359a87+'\x20'+_0x5a0576['padEnd'](_0x374930)+'\x20'+_0x359a87):_0x2c9ee7['push'](_0x359a87+'\x20'+'\x20'[_0x2d2244(0xf5)](_0x1b7456)+'\x20'+_0x359a87+'\x20'+_0x5a0576['padEnd'](_0x374930)+'\x20'+_0x359a87);});}),_0x2c9ee7[_0x1f8e5a(0x10a)](colorBorder('└─'+'─'[_0x1f8e5a(0xf5)](_0x1b7456)+_0x1f8e5a(0x113)+'─'[_0x1f8e5a(0xf5)](_0x374930)+'─┘',_0x83f53c));_0xe3ad1f&&(_0x2c9ee7['push'](''),_0x2c9ee7[_0x1f8e5a(0x10a)](String(a63_0x457ec8[_0x1f8e5a(0x108)][_0x1f8e5a(0x119)](_0x1f8e5a(0x114)))),_0x2c9ee7['push'](_0xe3ad1f));if(_0x118b4e){if(_0x118b4e[_0x1f8e5a(0x12a)]){_0x2c9ee7[_0x1f8e5a(0x10a)](''),_0x2c9ee7[_0x1f8e5a(0x10a)](String(a63_0x457ec8[_0x1f8e5a(0x106)][_0x1f8e5a(0x119)](_0x1f8e5a(0x126))));const _0x35bc40=_0x118b4e['stderr'][_0x1f8e5a(0x128)]('\x0a');_0x35bc40[_0x1f8e5a(0x10f)](_0x103304=>{const _0x36d47e=_0x1f8e5a;_0x103304[_0x36d47e(0x11d)]()&&_0x2c9ee7[_0x36d47e(0x10a)](_0x103304);});}if(_0x118b4e[_0x1f8e5a(0x117)]){_0x2c9ee7[_0x1f8e5a(0x10a)](''),_0x2c9ee7[_0x1f8e5a(0x10a)](String(a63_0x457ec8[_0x1f8e5a(0x102)]['bold']('[logs]')));const _0x55a0c0=_0x118b4e[_0x1f8e5a(0x117)][_0x1f8e5a(0x128)]('\x0a');_0x55a0c0[_0x1f8e5a(0x10f)](_0x8fab44=>{const _0x32827=_0x1f8e5a;_0x8fab44[_0x32827(0x11d)]()&&_0x2c9ee7[_0x32827(0x10a)](_0x8fab44);});}}return _0x2c9ee7[_0x1f8e5a(0x12b)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x2add1f,_0x1132fd){const _0x2e8563=a63_0x153a,_0x383d4a=resolveOutputOptions(_0x1132fd),_0x5a3a1b=await formatSingleObject(_0x2add1f,_0x383d4a);await writeOutput(_0x5a3a1b,_0x383d4a[_0x2e8563(0x101)]||undefined,_0x383d4a[_0x2e8563(0x127)]);}
1
+ (function(_0x5ddc88,_0x2f70b0){const _0x170b3f=a64_0x457e,_0x39b484=_0x5ddc88();while(!![]){try{const _0x51ef32=-parseInt(_0x170b3f(0xe7))/0x1*(parseInt(_0x170b3f(0xc2))/0x2)+-parseInt(_0x170b3f(0xd5))/0x3*(parseInt(_0x170b3f(0xe5))/0x4)+parseInt(_0x170b3f(0xb5))/0x5+parseInt(_0x170b3f(0xba))/0x6*(-parseInt(_0x170b3f(0xdd))/0x7)+parseInt(_0x170b3f(0xb2))/0x8+parseInt(_0x170b3f(0xca))/0x9*(-parseInt(_0x170b3f(0xd9))/0xa)+-parseInt(_0x170b3f(0xe8))/0xb*(-parseInt(_0x170b3f(0xde))/0xc);if(_0x51ef32===_0x2f70b0)break;else _0x39b484['push'](_0x39b484['shift']());}catch(_0x44e2cd){_0x39b484['push'](_0x39b484['shift']());}}}(a64_0x5438,0x8b9fb));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a64_0x18caad from'chalk';function a64_0x457e(_0x2a7075,_0x402fca){const _0x54383c=a64_0x5438();return a64_0x457e=function(_0x457ecd,_0x3f64f3){_0x457ecd=_0x457ecd-0xb1;let _0xff2969=_0x54383c[_0x457ecd];return _0xff2969;},a64_0x457e(_0x2a7075,_0x402fca);}function a64_0x5438(){const _0x296ce1=['map','[logs]','forEach','varchar','tsv','noColor','end','6iXwNsc','─┬─','No\x20data','limit','FINISHED','bigint','string','number','2538GUSDeF','max','[error]','stdin','padEnd','join','entries','inherit','close','boolean','query','1188471RDaCJV','bold','resolve','jsonl','40560AqaRjt','push','log','output','4977007uyiDhk','59916SKZyKB','─┴─','double','yellow','format','Results\x20saved\x20to\x20','filter','8SmlloU','table','279790iXjclP','5401iNRfkQ','error','spawn','debug','isTTY','stringify','write','pipe','less','object','split','9150016YnpAbb','stderr','length','2315305SzTmXc','repeat','red','stdout','sdk-result','6wYUFVD'];a64_0x5438=function(){return _0x296ce1;};return a64_0x5438();}import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x4e9b5c){const _0x5f2048=a64_0x457e;return{'format':_0x4e9b5c[_0x5f2048(0xe2)]||_0x5f2048(0xe6),'output':_0x4e9b5c[_0x5f2048(0xdc)]||'','limit':_0x4e9b5c[_0x5f2048(0xc5)],'color':_0x4e9b5c['color'],'noColor':_0x4e9b5c[_0x5f2048(0xc0)]};}function convertSDKResultToQueryResult(_0x53c0c0){const _0x44de1b=a64_0x457e,_0x19fccc=[];if(_0x53c0c0[_0x44de1b(0xb4)]>0x0){const _0x1a8eec=_0x53c0c0[0x0];for(const [_0x3ed9cb,_0x5a7a03]of Object[_0x44de1b(0xd0)](_0x1a8eec)){let _0x5d5c26=_0x44de1b(0xbe);if(typeof _0x5a7a03===_0x44de1b(0xc9))_0x5d5c26=Number['isInteger'](_0x5a7a03)?_0x44de1b(0xc7):_0x44de1b(0xe0);else{if(typeof _0x5a7a03===_0x44de1b(0xd3))_0x5d5c26=_0x44de1b(0xd3);else _0x5a7a03===null&&(_0x5d5c26=_0x44de1b(0xbe));}_0x19fccc[_0x44de1b(0xda)]({'name':_0x3ed9cb,'type':_0x5d5c26});}}return{'queryId':_0x44de1b(0xb9),'columns':_0x19fccc,'data':_0x53c0c0,'stats':{'state':_0x44de1b(0xc6),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x53c0c0['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x5ba873,_0x898dfc){const _0x3e24ea=convertSDKResultToQueryResult(_0x5ba873);return formatQueryOutput(_0x3e24ea,_0x898dfc);}export async function formatQueryOutput(_0x574924,_0x25faf9){const _0x80fdd0=a64_0x457e,{format:_0x3633c0,limit:_0x52cc5f,output:_0x3c482b,color:_0x5ece9e,noColor:_0x5555a9}=_0x25faf9,_0x90819=Boolean(_0x3c482b)&&!_0x5ece9e,_0x291b8d={'color':_0x5ece9e,'noColor':_0x5555a9||_0x90819};if(_0x3633c0===_0x80fdd0(0xe6)){const _0x350df9=shouldUseLess(_0x3633c0,_0x3c482b);return formatAsTable(_0x574924,_0x52cc5f,_0x350df9,_0x291b8d);}else{if(_0x3633c0==='json')return formatAsJSON(_0x574924,_0x291b8d);else return _0x3633c0===_0x80fdd0(0xd8)?formatAsJSONL(_0x574924,_0x291b8d):formatQueryResult(_0x574924,_0x3633c0);}}function shouldUseLess(_0x1b55c1,_0x4b1815){const _0x365cbe=a64_0x457e;return _0x1b55c1==='table'&&process[_0x365cbe(0xb8)][_0x365cbe(0xec)]&&!_0x4b1815;}export function resolveOutputOptions(_0x51b229){const _0x385e88=a64_0x457e,_0xc0012=resolveOutputFormat(_0x51b229[_0x385e88(0xe2)],_0x51b229[_0x385e88(0xdc)],_0x385e88(0xe6));let _0xf90ed1=typeof _0x51b229[_0x385e88(0xc5)]===_0x385e88(0xc9)?_0x51b229[_0x385e88(0xc5)]:parseInt(_0x51b229[_0x385e88(0xc5)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2ff7db=_0x51b229[_0x385e88(0xdc)]||'';return shouldUseLess(_0xc0012,_0x2ff7db)&&(_0xf90ed1=Infinity),{'format':_0xc0012,'output':_0x2ff7db,'limit':_0xf90ed1,'color':_0x51b229['color'],'noColor':_0x51b229[_0x385e88(0xc0)]};}export function writeOutput(_0x5d9acb,_0x1ac36f,_0x3e17b1){const _0x19431b=a64_0x457e;return _0x1ac36f?(writeFileSync(_0x1ac36f,_0x5d9acb),console[_0x19431b(0xe9)](_0x19431b(0xe3)+_0x1ac36f),Promise[_0x19431b(0xd7)]()):shouldUseLess(_0x3e17b1||'','')?new Promise(_0x48b36c=>{const _0x2468d7=_0x19431b,_0x23bd9f=spawn(_0x2468d7(0xf0),['-FXRSn'],{'stdio':[_0x2468d7(0xef),_0x2468d7(0xd1),_0x2468d7(0xd1)]});let _0x2bd2ef=![];_0x23bd9f['on']('error',()=>{const _0xca66da=_0x2468d7;!_0x2bd2ef&&(_0x2bd2ef=!![],console[_0xca66da(0xdb)](_0x5d9acb),_0x48b36c());}),_0x23bd9f['on'](_0x2468d7(0xd2),()=>{!_0x2bd2ef&&(_0x2bd2ef=!![],_0x48b36c());}),_0x23bd9f['on'](_0x2468d7(0xea),()=>{const _0x410fd2=_0x2468d7;!_0x2bd2ef&&_0x23bd9f[_0x410fd2(0xcd)]&&(_0x23bd9f['stdin']['on'](_0x410fd2(0xe9),()=>{}),_0x23bd9f[_0x410fd2(0xcd)][_0x410fd2(0xee)](_0x5d9acb),_0x23bd9f[_0x410fd2(0xcd)][_0x410fd2(0xc1)]());}),!_0x23bd9f['stdin']&&(!_0x2bd2ef&&(_0x2bd2ef=!![],console['log'](_0x5d9acb),_0x48b36c()));}):(console[_0x19431b(0xdb)](_0x5d9acb),Promise[_0x19431b(0xd7)]());}export async function handleSDKOutput(_0x4b07a4,_0x324f47){const _0xed17ec=a64_0x457e,_0x2653be=resolveOutputOptions(_0x324f47),_0x5276bb=await formatSDKOutput(_0x4b07a4,_0x2653be);await writeOutput(_0x5276bb,_0x2653be['output']||undefined,_0x2653be[_0xed17ec(0xe2)]);}export async function handleQueryOutput(_0x59d78d,_0x2b93e2){const _0x1625da=a64_0x457e,_0x4277d9=resolveOutputOptions(_0x2b93e2),_0xd98d35=await formatQueryOutput(_0x59d78d,_0x4277d9);await writeOutput(_0xd98d35,_0x4277d9[_0x1625da(0xdc)]||undefined,_0x4277d9[_0x1625da(0xe2)]);}async function formatSingleObject(_0x2db35a,_0x2969b9){const _0x447365=a64_0x457e,{format:_0x1eb9dc,color:_0x3ddac3,noColor:_0x397203}=_0x2969b9,_0x154a12={'color':_0x3ddac3,'noColor':_0x397203};if(_0x1eb9dc==='json'){if(shouldUseColor(_0x154a12))return colorizeJSON(_0x2db35a,_0x154a12);return JSON[_0x447365(0xed)](_0x2db35a,null,0x2);}else{if(_0x1eb9dc===_0x447365(0xd8)){if(shouldUseColor(_0x154a12))return colorizeJSONCompact(_0x2db35a,_0x154a12);return JSON[_0x447365(0xed)](_0x2db35a);}else{if(_0x1eb9dc===_0x447365(0xbf))return Object[_0x447365(0xd0)](_0x2db35a)['map'](([_0x364bff,_0x5d3d59])=>_0x364bff+'\x09'+_0x5d3d59)[_0x447365(0xcf)]('\x0a');else{const _0x7b3ada=Object[_0x447365(0xd0)](_0x2db35a);if(_0x7b3ada[_0x447365(0xb4)]===0x0)return _0x447365(0xc4);const _0x32aa3a=_0x2db35a[_0x447365(0xeb)],_0x34fed5=_0x2db35a['query'],_0x163e93=_0x34fed5?typeof _0x34fed5===_0x447365(0xc8)?_0x34fed5:JSON[_0x447365(0xed)](_0x34fed5,null,0x2):undefined,_0x571e43=_0x7b3ada[_0x447365(0xe4)](([_0x1195f0])=>_0x1195f0!==_0x447365(0xeb)&&_0x1195f0!==_0x447365(0xd4)),_0x26bfe2=Math[_0x447365(0xcb)](..._0x571e43[_0x447365(0xbb)](([_0x1975a5])=>_0x1975a5[_0x447365(0xb4)])),_0x3a3037=Math[_0x447365(0xcb)](..._0x571e43[_0x447365(0xbb)](([,_0x447ba2])=>{const _0x5dd300=_0x447365;try{const _0x309b1d=_0x447ba2===null||_0x447ba2===undefined?'':typeof _0x447ba2===_0x5dd300(0xf1)?JSON[_0x5dd300(0xed)](_0x447ba2):String(_0x447ba2),_0x122b04=_0x309b1d[_0x5dd300(0xb1)]('\x0a');return Math[_0x5dd300(0xcb)](..._0x122b04['map'](_0x4ff39b=>_0x4ff39b[_0x5dd300(0xb4)]),0x0);}catch{return 0x0;}}),0x14),_0x20e9ef=[];_0x20e9ef[_0x447365(0xda)](colorBorder('┌─'+'─'[_0x447365(0xb6)](_0x26bfe2)+_0x447365(0xc3)+'─'[_0x447365(0xb6)](_0x3a3037)+'─┐',_0x154a12)),_0x571e43[_0x447365(0xbd)](([_0x4c2623,_0x3f6cc5])=>{const _0x12358d=_0x447365;let _0x216605;try{_0x216605=_0x3f6cc5===null||_0x3f6cc5===undefined?'':typeof _0x3f6cc5==='object'?JSON[_0x12358d(0xed)](_0x3f6cc5):String(_0x3f6cc5);}catch{_0x216605='[Object]';}const _0x18857a=_0x4c2623[_0x12358d(0xce)](_0x26bfe2),_0x2fdc50=_0x216605[_0x12358d(0xb1)]('\x0a');_0x2fdc50['forEach']((_0x390d9d,_0x18e1ad)=>{const _0x4513f8=_0x12358d,_0x451ab9=colorBorder('│',_0x154a12);_0x18e1ad===0x0?_0x20e9ef[_0x4513f8(0xda)](_0x451ab9+'\x20'+_0x18857a+'\x20'+_0x451ab9+'\x20'+_0x390d9d[_0x4513f8(0xce)](_0x3a3037)+'\x20'+_0x451ab9):_0x20e9ef['push'](_0x451ab9+'\x20'+'\x20'[_0x4513f8(0xb6)](_0x26bfe2)+'\x20'+_0x451ab9+'\x20'+_0x390d9d[_0x4513f8(0xce)](_0x3a3037)+'\x20'+_0x451ab9);});}),_0x20e9ef['push'](colorBorder('└─'+'─'[_0x447365(0xb6)](_0x26bfe2)+_0x447365(0xdf)+'─'['repeat'](_0x3a3037)+'─┘',_0x154a12));_0x163e93&&(_0x20e9ef[_0x447365(0xda)](''),_0x20e9ef[_0x447365(0xda)](String(a64_0x18caad[_0x447365(0xe1)]['bold']('[query]'))),_0x20e9ef['push'](_0x163e93));if(_0x32aa3a){if(_0x32aa3a['stderr']){_0x20e9ef[_0x447365(0xda)](''),_0x20e9ef['push'](String(a64_0x18caad[_0x447365(0xb7)][_0x447365(0xd6)](_0x447365(0xcc))));const _0x25e8fd=_0x32aa3a[_0x447365(0xb3)][_0x447365(0xb1)]('\x0a');_0x25e8fd[_0x447365(0xbd)](_0x447c18=>{const _0xa84417=_0x447365;_0x447c18['trim']()&&_0x20e9ef[_0xa84417(0xda)](_0x447c18);});}if(_0x32aa3a['cmdout']){_0x20e9ef['push'](''),_0x20e9ef[_0x447365(0xda)](String(a64_0x18caad['cyan'][_0x447365(0xd6)](_0x447365(0xbc))));const _0x3b56b7=_0x32aa3a['cmdout'][_0x447365(0xb1)]('\x0a');_0x3b56b7['forEach'](_0x4661a4=>{const _0x4bd0ab=_0x447365;_0x4661a4['trim']()&&_0x20e9ef[_0x4bd0ab(0xda)](_0x4661a4);});}}return _0x20e9ef['join']('\x0a');}}}}export async function handleSingleObjectOutput(_0x4be86a,_0xc91870){const _0x5cc8b2=a64_0x457e,_0x160fba=resolveOutputOptions(_0xc91870),_0x3e3778=await formatSingleObject(_0x4be86a,_0x160fba);await writeOutput(_0x3e3778,_0x160fba[_0x5cc8b2(0xdc)]||undefined,_0x160fba[_0x5cc8b2(0xe2)]);}
@@ -1 +1 @@
1
- function a64_0x5764(_0x46e2ae,_0x51bf60){const _0x369c87=a64_0x369c();return a64_0x5764=function(_0x57640c,_0x4441be){_0x57640c=_0x57640c-0x19c;let _0x1ddc0f=_0x369c87[_0x57640c];return _0x1ddc0f;},a64_0x5764(_0x46e2ae,_0x51bf60);}(function(_0x25749f,_0x3a6377){const _0x33e132=a64_0x5764,_0x545c89=_0x25749f();while(!![]){try{const _0x4ca077=parseInt(_0x33e132(0x19c))/0x1*(-parseInt(_0x33e132(0x1a1))/0x2)+-parseInt(_0x33e132(0x1a3))/0x3+-parseInt(_0x33e132(0x19d))/0x4+-parseInt(_0x33e132(0x1a5))/0x5+parseInt(_0x33e132(0x1a2))/0x6*(-parseInt(_0x33e132(0x1a0))/0x7)+-parseInt(_0x33e132(0x1a4))/0x8*(parseInt(_0x33e132(0x19e))/0x9)+parseInt(_0x33e132(0x19f))/0xa;if(_0x4ca077===_0x3a6377)break;else _0x545c89['push'](_0x545c89['shift']());}catch(_0x286820){_0x545c89['push'](_0x545c89['shift']());}}}(a64_0x369c,0xf271c));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;function a64_0x369c(){const _0x2968aa=['5714121ojtduA','368nVCBLh','9057475qbSXrG','number','1139883YASxJO','7558440FgxhGR','33426iwmqGn','80984570KTOnBm','661031thWSQn','2hNOwBA','12kJKIOw'];a64_0x369c=function(){return _0x2968aa;};return a64_0x369c();}export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x269885,_0x3541bf){const _0xec172=a64_0x5764;if(_0x269885===undefined)return _0x3541bf;if(typeof _0x269885===_0xec172(0x1a6))return _0x269885;return parseInt(_0x269885,0xa);}
1
+ function a65_0x3181(){const _0x22e8ba=['40293GzFxVT','2lVAidL','16955zDCffg','4JTzJyr','126096SLlLBv','1770MHghGM','number','472369OxjDmc','1995711JxyZLX','4128418cBBqto','2720KAjwzr','7786728lhVfEQ','1210UxfbKL'];a65_0x3181=function(){return _0x22e8ba;};return a65_0x3181();}(function(_0x4c91db,_0x2dd781){const _0x2b5486=a65_0x5c73,_0x16d9d3=_0x4c91db();while(!![]){try{const _0x9e061e=-parseInt(_0x2b5486(0x148))/0x1*(-parseInt(_0x2b5486(0x14f))/0x2)+-parseInt(_0x2b5486(0x149))/0x3*(-parseInt(_0x2b5486(0x151))/0x4)+parseInt(_0x2b5486(0x150))/0x5*(parseInt(_0x2b5486(0x146))/0x6)+-parseInt(_0x2b5486(0x14a))/0x7+-parseInt(_0x2b5486(0x14c))/0x8+parseInt(_0x2b5486(0x14e))/0x9*(parseInt(_0x2b5486(0x14b))/0xa)+-parseInt(_0x2b5486(0x14d))/0xb*(parseInt(_0x2b5486(0x152))/0xc);if(_0x9e061e===_0x2dd781)break;else _0x16d9d3['push'](_0x16d9d3['shift']());}catch(_0x3bc4b9){_0x16d9d3['push'](_0x16d9d3['shift']());}}}(a65_0x3181,0x9b71c));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;function a65_0x5c73(_0x487f49,_0x204eb7){const _0x3181ec=a65_0x3181();return a65_0x5c73=function(_0x5c730b,_0x96b8b3){_0x5c730b=_0x5c730b-0x146;let _0x10a03d=_0x3181ec[_0x5c730b];return _0x10a03d;},a65_0x5c73(_0x487f49,_0x204eb7);}export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x61944c,_0x4485ea){const _0x53e83c=a65_0x5c73;if(_0x61944c===undefined)return _0x4485ea;if(typeof _0x61944c===_0x53e83c(0x147))return _0x61944c;return parseInt(_0x61944c,0xa);}
@@ -1 +1 @@
1
- (function(_0xa10673,_0x592475){const _0x38cbeb=a65_0x5634,_0x5163e3=_0xa10673();while(!![]){try{const _0x530a99=-parseInt(_0x38cbeb(0x1b2))/0x1*(-parseInt(_0x38cbeb(0x1aa))/0x2)+-parseInt(_0x38cbeb(0x1a9))/0x3+-parseInt(_0x38cbeb(0x1af))/0x4*(-parseInt(_0x38cbeb(0x1b8))/0x5)+-parseInt(_0x38cbeb(0x1ad))/0x6+parseInt(_0x38cbeb(0x1b3))/0x7+-parseInt(_0x38cbeb(0x1b6))/0x8*(parseInt(_0x38cbeb(0x1ac))/0x9)+parseInt(_0x38cbeb(0x1b5))/0xa;if(_0x530a99===_0x592475)break;else _0x5163e3['push'](_0x5163e3['shift']());}catch(_0x10f12e){_0x5163e3['push'](_0x5163e3['shift']());}}}(a65_0x34f1,0x77b4e));import*as a65_0x207a1e from'node:fs';import*as a65_0x5bad2d from'node:path';export function setSecureFilePermissions(_0x569d72){const _0x116eb5=a65_0x5634;try{a65_0x207a1e['chmodSync'](_0x569d72,0x180);}catch{console[_0x116eb5(0x1b9)](_0x116eb5(0x1b0)+_0x569d72);}}export function setSecureDirectoryPermissions(_0xcfc4af){const _0x3ed919=a65_0x5634;try{a65_0x207a1e['chmodSync'](_0xcfc4af,0x1c0);}catch{console[_0x3ed919(0x1b9)](_0x3ed919(0x1b0)+_0xcfc4af);}}export function createSecureDirectory(_0x4f3c53){const _0x28ca35=a65_0x5634;!a65_0x207a1e[_0x28ca35(0x1b4)](_0x4f3c53)&&(a65_0x207a1e[_0x28ca35(0x1ba)](_0x4f3c53,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x4f3c53));}function a65_0x34f1(){const _0x1247dd=['2264241TqlUgn','existsSync','7316510lDPdGe','32LEkwvh','statSync','620COMtVq','warn','mkdirSync','1567791BbJIDQ','1466hLmWPB','Should\x20be\x200600\x20or\x20more\x20restrictive.','1075959YZPAsj','2903028fiDzlB',').\x20','26764hzFprn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mode','123IdpNBH'];a65_0x34f1=function(){return _0x1247dd;};return a65_0x34f1();}export function validateSecureFilePermissions(_0x4122a7){const _0x4dda1c=a65_0x5634;try{const _0x6e85a1=a65_0x207a1e[_0x4dda1c(0x1b7)](_0x4122a7),_0x2e0f67=_0x6e85a1[_0x4dda1c(0x1b1)]&0x1ff,_0x456ed0=(_0x2e0f67&0x3f)!==0x0;if(_0x456ed0)return console[_0x4dda1c(0x1b9)]('Warning:\x20'+_0x4122a7+'\x20has\x20insecure\x20permissions\x20('+_0x2e0f67['toString'](0x8)+_0x4dda1c(0x1ae)+_0x4dda1c(0x1ab)),![];return!![];}catch{return!![];}}function a65_0x5634(_0x501aab,_0x58466d){const _0x34f1d7=a65_0x34f1();return a65_0x5634=function(_0x56346f,_0xf2ea55){_0x56346f=_0x56346f-0x1a9;let _0x2780df=_0x34f1d7[_0x56346f];return _0x2780df;},a65_0x5634(_0x501aab,_0x58466d);}export function writeSecureFile(_0x423cef,_0x75d3c7){const _0x1b9944=a65_0x5bad2d['dirname'](_0x423cef);createSecureDirectory(_0x1b9944),a65_0x207a1e['writeFileSync'](_0x423cef,_0x75d3c7,{'mode':0x180}),setSecureFilePermissions(_0x423cef);}
1
+ (function(_0x31f396,_0x58a53c){const _0x29f170=a66_0x3508,_0x560d55=_0x31f396();while(!![]){try{const _0x59959f=-parseInt(_0x29f170(0x189))/0x1+-parseInt(_0x29f170(0x187))/0x2*(-parseInt(_0x29f170(0x181))/0x3)+-parseInt(_0x29f170(0x17c))/0x4+parseInt(_0x29f170(0x185))/0x5+parseInt(_0x29f170(0x17a))/0x6+-parseInt(_0x29f170(0x17d))/0x7*(-parseInt(_0x29f170(0x183))/0x8)+parseInt(_0x29f170(0x17b))/0x9;if(_0x59959f===_0x58a53c)break;else _0x560d55['push'](_0x560d55['shift']());}catch(_0x417e91){_0x560d55['push'](_0x560d55['shift']());}}}(a66_0x1d72,0x3dcba));import*as a66_0x3e4434 from'node:fs';function a66_0x3508(_0x5ccf2a,_0xd7d2){const _0x1d7258=a66_0x1d72();return a66_0x3508=function(_0x3508dd,_0x4f4898){_0x3508dd=_0x3508dd-0x179;let _0x21551c=_0x1d7258[_0x3508dd];return _0x21551c;},a66_0x3508(_0x5ccf2a,_0xd7d2);}function a66_0x1d72(){const _0xf4356d=['659037CFoTvl','Should\x20be\x200600\x20or\x20more\x20restrictive.','64PfSboi','existsSync','1700475MfQDQN','mode','2sjwGcj','warn','403051DBgZGx',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','mkdirSync','2813514VMwwJm','674181cuAMhy','1906804Bodwnt','25606FqGmxh','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','toString'];a66_0x1d72=function(){return _0xf4356d;};return a66_0x1d72();}import*as a66_0xa8d45a from'node:path';export function setSecureFilePermissions(_0x3da920){const _0x34b319=a66_0x3508;try{a66_0x3e4434['chmodSync'](_0x3da920,0x180);}catch{console[_0x34b319(0x188)](_0x34b319(0x18b)+_0x3da920);}}export function setSecureDirectoryPermissions(_0x1dfc89){const _0x3bb332=a66_0x3508;try{a66_0x3e4434['chmodSync'](_0x1dfc89,0x1c0);}catch{console[_0x3bb332(0x188)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1dfc89);}}export function createSecureDirectory(_0x24cfc2){const _0xb256a6=a66_0x3508;!a66_0x3e4434[_0xb256a6(0x184)](_0x24cfc2)&&(a66_0x3e4434[_0xb256a6(0x179)](_0x24cfc2,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x24cfc2));}export function validateSecureFilePermissions(_0x51af50){const _0x51d48d=a66_0x3508;try{const _0x20bc3a=a66_0x3e4434['statSync'](_0x51af50),_0x588f19=_0x20bc3a[_0x51d48d(0x186)]&0x1ff,_0x165d90=(_0x588f19&0x3f)!==0x0;if(_0x165d90)return console[_0x51d48d(0x188)](_0x51d48d(0x17f)+_0x51af50+_0x51d48d(0x17e)+_0x588f19[_0x51d48d(0x180)](0x8)+_0x51d48d(0x18a)+_0x51d48d(0x182)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2c9a39,_0x44f50c){const _0x2d783b=a66_0x3508,_0x2ad0f8=a66_0xa8d45a[_0x2d783b(0x18c)](_0x2c9a39);createSecureDirectory(_0x2ad0f8),a66_0x3e4434['writeFileSync'](_0x2c9a39,_0x44f50c,{'mode':0x180}),setSecureFilePermissions(_0x2c9a39);}
@@ -1 +1 @@
1
- (function(_0x55e2a6,_0x5b9eb9){const _0x44407e=a66_0x46f0,_0x1e8df4=_0x55e2a6();while(!![]){try{const _0x18a265=parseInt(_0x44407e(0x6a))/0x1+-parseInt(_0x44407e(0x6c))/0x2+parseInt(_0x44407e(0x6d))/0x3*(parseInt(_0x44407e(0x77))/0x4)+parseInt(_0x44407e(0x78))/0x5+parseInt(_0x44407e(0x73))/0x6+-parseInt(_0x44407e(0x6e))/0x7*(-parseInt(_0x44407e(0x76))/0x8)+-parseInt(_0x44407e(0x71))/0x9*(parseInt(_0x44407e(0x79))/0xa);if(_0x18a265===_0x5b9eb9)break;else _0x1e8df4['push'](_0x1e8df4['shift']());}catch(_0x3bf554){_0x1e8df4['push'](_0x1e8df4['shift']());}}}(a66_0x419d,0x83a30));function a66_0x419d(){const _0x7891ef=['table','json','53456VIFTUX','21644KCgfSW','3015400glAeKW','2232620osebdT','jsonl','toLowerCase','708312khHXJZ','tsv','1743094wtjAbD','474ivJeqU','14QLJgpo','split','text','45stVYRy','tab','2084082LArTpm'];a66_0x419d=function(){return _0x7891ef;};return a66_0x419d();}export function detectFormatFromExtension(_0xe18584){const _0x33bdd9=a66_0x46f0,_0x583991=_0xe18584[_0x33bdd9(0x69)]()[_0x33bdd9(0x6f)]('.')['pop']();switch(_0x583991){case _0x33bdd9(0x75):return'json';case _0x33bdd9(0x68):return'jsonl';case _0x33bdd9(0x6b):case _0x33bdd9(0x72):return _0x33bdd9(0x6b);case'txt':case _0x33bdd9(0x70):return _0x33bdd9(0x74);default:return undefined;}}function a66_0x46f0(_0x14917a,_0x1b93ff){const _0x419dfb=a66_0x419d();return a66_0x46f0=function(_0x46f0a5,_0x12b328){_0x46f0a5=_0x46f0a5-0x68;let _0x6e4cb5=_0x419dfb[_0x46f0a5];return _0x6e4cb5;},a66_0x46f0(_0x14917a,_0x1b93ff);}export function resolveOutputFormat(_0x3f10c6,_0x22af75,_0xcef1a5){if(_0x3f10c6)return _0x3f10c6;if(_0x22af75){const _0x161ef4=detectFormatFromExtension(_0x22af75);if(_0x161ef4)return _0x161ef4;}return _0xcef1a5;}
1
+ (function(_0x309a6f,_0x59c5cf){const _0x410b4c=a67_0x26f5,_0x3274aa=_0x309a6f();while(!![]){try{const _0x1e0dbc=parseInt(_0x410b4c(0xec))/0x1+-parseInt(_0x410b4c(0xef))/0x2*(-parseInt(_0x410b4c(0xf4))/0x3)+-parseInt(_0x410b4c(0xf7))/0x4+parseInt(_0x410b4c(0xeb))/0x5+-parseInt(_0x410b4c(0xf3))/0x6*(-parseInt(_0x410b4c(0xe8))/0x7)+-parseInt(_0x410b4c(0xed))/0x8*(-parseInt(_0x410b4c(0xf2))/0x9)+-parseInt(_0x410b4c(0xf0))/0xa;if(_0x1e0dbc===_0x59c5cf)break;else _0x3274aa['push'](_0x3274aa['shift']());}catch(_0x69d76e){_0x3274aa['push'](_0x3274aa['shift']());}}}(a67_0x1fc8,0x1ef7d));function a67_0x26f5(_0x4c0088,_0x1cc17e){const _0x1fc8e3=a67_0x1fc8();return a67_0x26f5=function(_0x26f5ef,_0x258ec9){_0x26f5ef=_0x26f5ef-0xe8;let _0x4e6537=_0x1fc8e3[_0x26f5ef];return _0x4e6537;},a67_0x26f5(_0x4c0088,_0x1cc17e);}function a67_0x1fc8(){const _0x164178=['18jvujFz','306474HwbgVd','toLowerCase','tsv','513348cdGUxp','8799eKcRxB','jsonl','split','92545bFRzjY','64364UXqaua','104dvWjny','txt','4Wjivtk','743360nWJzZJ','text','26694KIXvua'];a67_0x1fc8=function(){return _0x164178;};return a67_0x1fc8();}export function detectFormatFromExtension(_0x1bf2c1){const _0x47ac35=a67_0x26f5,_0x259dfd=_0x1bf2c1[_0x47ac35(0xf5)]()[_0x47ac35(0xea)]('.')['pop']();switch(_0x259dfd){case'json':return'json';case _0x47ac35(0xe9):return'jsonl';case _0x47ac35(0xf6):case'tab':return _0x47ac35(0xf6);case _0x47ac35(0xee):case _0x47ac35(0xf1):return'table';default:return undefined;}}export function resolveOutputFormat(_0x7fc430,_0x19c8c6,_0x10296f){if(_0x7fc430)return _0x7fc430;if(_0x19c8c6){const _0x1058b4=detectFormatFromExtension(_0x19c8c6);if(_0x1058b4)return _0x1058b4;}return _0x10296f;}
@@ -1 +1 @@
1
- (function(_0x3113b,_0x197c48){const _0x171b1b=a67_0x52f1,_0x5166e3=_0x3113b();while(!![]){try{const _0x368455=parseInt(_0x171b1b(0xf1))/0x1+parseInt(_0x171b1b(0xe9))/0x2+-parseInt(_0x171b1b(0xe0))/0x3*(parseInt(_0x171b1b(0xdf))/0x4)+parseInt(_0x171b1b(0xe7))/0x5+parseInt(_0x171b1b(0x10a))/0x6*(-parseInt(_0x171b1b(0x105))/0x7)+-parseInt(_0x171b1b(0x106))/0x8*(-parseInt(_0x171b1b(0x112))/0x9)+-parseInt(_0x171b1b(0xef))/0xa;if(_0x368455===_0x197c48)break;else _0x5166e3['push'](_0x5166e3['shift']());}catch(_0xf18be3){_0x5166e3['push'](_0x5166e3['shift']());}}}(a67_0x2d91,0x98dc1));function a67_0x52f1(_0xbe8379,_0x14ac26){const _0x2d911e=a67_0x2d91();return a67_0x52f1=function(_0x52f1e9,_0x377fb8){_0x52f1e9=_0x52f1e9-0xde;let _0x137158=_0x2d911e[_0x52f1e9];return _0x137158;},a67_0x52f1(_0xbe8379,_0x14ac26);}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 getTerminalWidth(){const _0x467d01=a67_0x52f1;return process[_0x467d01(0x10f)][_0x467d01(0xe8)]||Infinity;}export function formatAsTable(_0x24128a,_0x23b6b4=DEFAULT_MAX_DISPLAY_ROWS,_0xd5fb34=![],_0x4c0180={}){const _0x2eb3e5=a67_0x52f1;if(_0x24128a['data'][_0x2eb3e5(0xe5)]===0x0)return'No\x20rows\x20returned';const _0x25ffc9=_0x24128a[_0x2eb3e5(0xe8)][_0x2eb3e5(0x10b)](_0x21824c=>_0x21824c['name']),_0xc611d3=_0x24128a['columns'][_0x2eb3e5(0x10b)](_0x34a6a4=>simplifyType(_0x34a6a4[_0x2eb3e5(0x101)])),_0x57cffd=_0x24128a['data']['slice'](0x0,_0x23b6b4),_0x49702c=_0x24128a[_0x2eb3e5(0x103)][_0x2eb3e5(0xe5)],_0x51ae3a=_0x49702c>_0x23b6b4,_0x22c1bf=[],_0x589ba2=getTerminalWidth(),_0x3ad082=_0x589ba2!==Infinity,_0x544a49=0x32;let _0x65ba1e=_0x25ffc9[_0x2eb3e5(0x10b)]((_0x3436a8,_0x75a630)=>{const _0x4ebc1f=_0x2eb3e5,_0x36a076=stringWidth(_0xc611d3[_0x75a630]),_0x301ff1=Math[_0x4ebc1f(0x113)](..._0x57cffd['map'](_0x17cb61=>{const _0x15b630=_0x17cb61[_0x3436a8];return stringWidth(formatValue(_0x15b630));})),_0x5e96d6=Math['max'](stringWidth(_0x3436a8),_0x36a076,_0x301ff1);return _0xd5fb34?_0x5e96d6:Math[_0x4ebc1f(0x109)](_0x5e96d6,_0x544a49);});if(_0x3ad082&&!_0xd5fb34&&_0x25ffc9['length']>0x0){const _0x4bd545=_0x29299f=>{let _0x5e8405=0x1;for(const _0x37af4a of _0x29299f){_0x5e8405+=_0x37af4a+0x3;}return _0x5e8405+0x1;};let _0xabf18b=_0x4bd545(_0x65ba1e);if(_0xabf18b>_0x589ba2){const _0x22a8ba=0x3;for(let _0x658308=_0x65ba1e[_0x2eb3e5(0xe5)]-0x1;_0x658308>=0x0;_0x658308--){_0xabf18b=_0x4bd545(_0x65ba1e);if(_0xabf18b<=_0x589ba2)break;const _0x1ace19=_0x65ba1e[_0x658308],_0x131c45=_0xabf18b-_0x589ba2,_0x1b832d=_0x1ace19-_0x22a8ba,_0x5c5da2=Math[_0x2eb3e5(0x109)](_0x131c45,_0x1b832d);_0x5c5da2>0x0&&(_0x65ba1e[_0x658308]=_0x1ace19-_0x5c5da2);}}}const _0x4ab926=_0x25ffc9,_0x4957b8=_0xc611d3,_0x5f0fc1=_0x65ba1e,_0x20e594=_0x65ba1e;_0x22c1bf['push'](colorBorder('┌'+_0x20e594[_0x2eb3e5(0x10b)](_0x2b7c69=>'─'[_0x2eb3e5(0xde)](_0x2b7c69+0x2))[_0x2eb3e5(0xf4)]('┬')+'┐',_0x4c0180));const _0x3801e2=_0x4ab926['map']((_0x57fb37,_0x25def6)=>centerAlign(_0x57fb37,_0x5f0fc1[_0x25def6]));_0x22c1bf['push'](colorBorder('│',_0x4c0180)+'\x20'+_0x3801e2[_0x2eb3e5(0xf4)]('\x20'+colorBorder('│',_0x4c0180)+'\x20')+'\x20'+colorBorder('│',_0x4c0180));const _0x4d4869=_0x4957b8['map']((_0x356a82,_0x1eb895)=>colorType(centerAlign(_0x356a82,_0x5f0fc1[_0x1eb895]),_0x4c0180));_0x22c1bf[_0x2eb3e5(0xfa)](colorBorder('│',_0x4c0180)+'\x20'+_0x4d4869[_0x2eb3e5(0xf4)]('\x20'+colorBorder('│',_0x4c0180)+'\x20')+'\x20'+colorBorder('│',_0x4c0180)),_0x22c1bf['push'](colorBorder('├'+_0x20e594[_0x2eb3e5(0x10b)](_0x4310a6=>'─'[_0x2eb3e5(0xde)](_0x4310a6+0x2))['join']('┼')+'┤',_0x4c0180));const _0xcf34c9=(_0x87bf0a,_0x53d4df)=>{const _0x5dcf62=_0x2eb3e5,_0x52abc9=stringWidth(_0x87bf0a);if(_0x52abc9<=_0x53d4df)return _0x87bf0a;let _0x547a9b=_0x87bf0a;while(stringWidth(_0x547a9b+'…')>_0x53d4df&&_0x547a9b[_0x5dcf62(0xe5)]>0x0){_0x547a9b=_0x547a9b[_0x5dcf62(0xe3)](0x0,-0x1);}return _0x547a9b+'…';};_0x57cffd['forEach'](_0x7f6bee=>{const _0x51a539=_0x2eb3e5,_0x23ade1=_0x25ffc9[_0x51a539(0x10b)]((_0x2e9ee0,_0x4b988d)=>{const _0x191e37=_0x51a539,_0x474945=_0x7f6bee[_0x2e9ee0],_0x3da499=formatValue(_0x474945),_0x2c7b9b=_0x5f0fc1[_0x4b988d],_0x3a06da=_0xcf34c9(_0x3da499,_0x2c7b9b),_0x3208e2=typeof _0x474945===_0x191e37(0xe1)||typeof _0x474945===_0x191e37(0x104)&&/^-?\d+$/['test'](_0x474945);return _0x3208e2?padStart(_0x3a06da,_0x2c7b9b):padEnd(_0x3a06da,_0x2c7b9b);});_0x22c1bf[_0x51a539(0xfa)](colorBorder('│',_0x4c0180)+'\x20'+_0x23ade1[_0x51a539(0xf4)]('\x20'+colorBorder('│',_0x4c0180)+'\x20')+'\x20'+colorBorder('│',_0x4c0180));});const _0x388f04=_0x20e594['reduce']((_0x4e3589,_0x1e4966)=>_0x4e3589+_0x1e4966+0x3,-0x1);_0x22c1bf['push'](colorBorder('├'+_0x20e594[_0x2eb3e5(0x10b)](_0xcbb2ea=>'─'['repeat'](_0xcbb2ea+0x2))[_0x2eb3e5(0xf4)]('┴')+'┤',_0x4c0180));let _0x5c97f6;_0x51ae3a?_0x5c97f6=_0x49702c+'\x20rows\x20('+_0x23b6b4+_0x2eb3e5(0xed):_0x5c97f6=_0x49702c+'\x20row'+(_0x49702c===0x1?'':'s');const _0x23c63d=_0x5c97f6[_0x2eb3e5(0xfb)](_0x388f04-0x2);return _0x22c1bf[_0x2eb3e5(0xfa)](colorBorder('│',_0x4c0180)+'\x20'+_0x23c63d+'\x20'+colorBorder('│',_0x4c0180)),_0x22c1bf[_0x2eb3e5(0xfa)](colorBorder('└'+'─'['repeat'](_0x388f04)+'┘',_0x4c0180)),_0x22c1bf[_0x2eb3e5(0xf4)]('\x0a');}function simplifyType(_0x497fd7){const _0x161bce=a67_0x52f1,_0x2c0332={'varchar':_0x161bce(0x104),'bigint':_0x161bce(0xe6),'integer':_0x161bce(0xf8),'double':_0x161bce(0x114),'boolean':'bool','date':_0x161bce(0xea),'timestamp':_0x161bce(0xee),'array':_0x161bce(0xf5),'map':_0x161bce(0x10b),'row':_0x161bce(0x102)},_0x301f24=_0x497fd7[_0x161bce(0x107)]();for(const [_0x3ff625,_0x42d663]of Object[_0x161bce(0x10c)](_0x2c0332)){if(_0x301f24[_0x161bce(0xf0)](_0x3ff625))return _0x42d663;}return _0x497fd7['length']>0xa?_0x497fd7[_0x161bce(0xf6)](0x0,0xa):_0x497fd7;}export function formatAsJSON(_0x21b71d,_0x48cedb={}){const _0x17dfd9=a67_0x52f1;if(_0x21b71d[_0x17dfd9(0x103)][_0x17dfd9(0xe5)]===0x0)return'[]';if(shouldUseColor(_0x48cedb))return colorizeJSON(_0x21b71d['data'],_0x48cedb);const _0x2982c5=_0x21b71d['data'][_0x17dfd9(0x10b)](_0x1ca09e=>'\x20\x20'+JSON[_0x17dfd9(0x108)](_0x1ca09e));return'[\x0a'+_0x2982c5[_0x17dfd9(0xf4)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x129ee7,_0x434e2d={}){const _0x4969d8=a67_0x52f1;if(_0x129ee7[_0x4969d8(0x103)]['length']===0x0)return'';if(shouldUseColor(_0x434e2d))return _0x129ee7[_0x4969d8(0x103)]['map'](_0x1ac69c=>colorizeJSONCompact(_0x1ac69c,_0x434e2d))['join']('\x0a');return _0x129ee7[_0x4969d8(0x103)][_0x4969d8(0x10b)](_0x86a7b0=>JSON['stringify'](_0x86a7b0))[_0x4969d8(0xf4)]('\x0a');}export function formatAsTSV(_0x13491d){const _0xc87114=a67_0x52f1;if(_0x13491d[_0xc87114(0x103)][_0xc87114(0xe5)]===0x0)return'';const _0x52f627=[],_0x8a3243=_0x13491d[_0xc87114(0xe8)][_0xc87114(0x10b)](_0x5a09d6=>_0x5a09d6[_0xc87114(0xf3)]);return _0x52f627[_0xc87114(0xfa)](_0x8a3243[_0xc87114(0xf4)]('\x09')),_0x13491d[_0xc87114(0x103)][_0xc87114(0x111)](_0x47ab01=>{const _0x55bdc8=_0xc87114,_0x27f20d=_0x8a3243[_0x55bdc8(0x10b)](_0x5b64f6=>{const _0x441528=_0x47ab01[_0x5b64f6];return formatValueForTSV(_0x441528);});_0x52f627[_0x55bdc8(0xfa)](_0x27f20d[_0x55bdc8(0xf4)]('\x09'));}),_0x52f627[_0xc87114(0xf4)]('\x0a');}function formatValue(_0x44316c){const _0x4523d7=a67_0x52f1;if(_0x44316c===null||_0x44316c===undefined)return'';if(typeof _0x44316c==='string'){const _0x365a2c=_0x44316c[_0x4523d7(0xfc)](/\n/g,'\x5cn')[_0x4523d7(0xfc)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x365a2c;}if(typeof _0x44316c===_0x4523d7(0xe1))return String(_0x44316c);if(typeof _0x44316c===_0x4523d7(0x110))return _0x44316c?_0x4523d7(0xec):_0x4523d7(0xfe);if(_0x44316c instanceof Date)return _0x44316c[_0x4523d7(0xe2)]();if(typeof _0x44316c===_0x4523d7(0x100))return JSON['stringify'](_0x44316c);return String(_0x44316c);}function formatValueForTSV(_0x802aca){const _0x53c55a=a67_0x52f1;if(_0x802aca===null||_0x802aca===undefined)return'';if(typeof _0x802aca===_0x53c55a(0x104))return _0x802aca[_0x53c55a(0xfc)](/\t/g,'\x5ct')[_0x53c55a(0xfc)](/\n/g,'\x5cn');if(typeof _0x802aca===_0x53c55a(0xe1)||typeof _0x802aca===_0x53c55a(0x110))return String(_0x802aca);if(_0x802aca instanceof Date)return _0x802aca[_0x53c55a(0xe2)]();if(typeof _0x802aca===_0x53c55a(0x100))return JSON[_0x53c55a(0x108)](_0x802aca);return String(_0x802aca);}export function formatQueryResult(_0x2cd1fe,_0x562e5b){const _0x53fec2=a67_0x52f1;switch(_0x562e5b){case _0x53fec2(0xf2):return formatAsTable(_0x2cd1fe);case _0x53fec2(0xff):return formatAsJSON(_0x2cd1fe);case'jsonl':return formatAsJSONL(_0x2cd1fe);case _0x53fec2(0xeb):return formatAsTSV(_0x2cd1fe);default:return formatAsJSON(_0x2cd1fe);}}export function formatBytes(_0x3fe011){const _0x349f08=a67_0x52f1;if(_0x3fe011===0x0)return _0x349f08(0xf7);const _0x119b64=['B','KB','MB','GB','TB'],_0x3345e1=0x400,_0x5e5f6f=Math[_0x349f08(0x10d)](Math['log'](_0x3fe011)/Math[_0x349f08(0xf9)](_0x3345e1)),_0x3eb62=_0x3fe011/Math[_0x349f08(0x10e)](_0x3345e1,_0x5e5f6f),_0x3652b7=_0x3eb62>=0xa?0x1:0x2;return _0x3eb62['toFixed'](_0x3652b7)+'\x20'+_0x119b64[_0x5e5f6f];}export function formatRows(_0x223ecc){const _0x1c6c38=a67_0x52f1;if(_0x223ecc==null)return'-';if(_0x223ecc===0x0)return'0';if(_0x223ecc<0x3e8)return _0x223ecc[_0x1c6c38(0xe4)]();const _0x1ec477=['','K','M','B','T'],_0x420eff=0x3e8,_0x26f8f2=Math[_0x1c6c38(0x10d)](Math[_0x1c6c38(0xf9)](_0x223ecc)/Math['log'](_0x420eff)),_0x4c6a3b=_0x223ecc/Math['pow'](_0x420eff,_0x26f8f2),_0x377180=_0x4c6a3b>=0xa?0x1:0x2;return''+_0x4c6a3b[_0x1c6c38(0xfd)](_0x377180)+_0x1ec477[_0x26f8f2];}function a67_0x2d91(){const _0x475da7=['object','type','row','data','string','7719761dOMSsC','53864rBeRcQ','toLowerCase','stringify','min','6nJnSad','map','entries','floor','pow','stdout','boolean','forEach','1629uWPSRy','max','double','repeat','904312AYspkQ','3RIytnv','number','toISOString','slice','toString','length','long','1625915HwMutV','columns','349810CSRAaf','date','tsv','true','\x20shown)','timestamp','7053620NOlVNI','startsWith','941615pzJdJD','table','name','join','array','substring','0\x20B','int','log','push','padEnd','replace','toFixed','false','json'];a67_0x2d91=function(){return _0x475da7;};return a67_0x2d91();}
1
+ (function(_0x33a850,_0x2e933c){const _0x61fe89=a68_0x4a39,_0x371b9f=_0x33a850();while(!![]){try{const _0x846f4c=parseInt(_0x61fe89(0xd8))/0x1+parseInt(_0x61fe89(0xbe))/0x2+-parseInt(_0x61fe89(0xe2))/0x3*(-parseInt(_0x61fe89(0xbd))/0x4)+-parseInt(_0x61fe89(0xe3))/0x5+parseInt(_0x61fe89(0xe1))/0x6+-parseInt(_0x61fe89(0xb8))/0x7*(-parseInt(_0x61fe89(0xc0))/0x8)+parseInt(_0x61fe89(0xde))/0x9*(-parseInt(_0x61fe89(0xb7))/0xa);if(_0x846f4c===_0x2e933c)break;else _0x371b9f['push'](_0x371b9f['shift']());}catch(_0x168952){_0x371b9f['push'](_0x371b9f['shift']());}}}(a68_0x1952,0xc125c));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 getTerminalWidth(){const _0x399d94=a68_0x4a39;return process[_0x399d94(0xd4)][_0x399d94(0xd9)]||Infinity;}export function formatAsTable(_0x18f1c6,_0x19c0ee=DEFAULT_MAX_DISPLAY_ROWS,_0x4408bc=![],_0x1eb0a1={}){const _0x4a5e32=a68_0x4a39;if(_0x18f1c6[_0x4a5e32(0xc9)]['length']===0x0)return _0x4a5e32(0xc6);const _0x42b484=_0x18f1c6[_0x4a5e32(0xd9)][_0x4a5e32(0xd0)](_0x260b9e=>_0x260b9e['name']),_0x1c26ed=_0x18f1c6['columns'][_0x4a5e32(0xd0)](_0xb6663a=>simplifyType(_0xb6663a[_0x4a5e32(0xb2)])),_0x333ea0=_0x18f1c6[_0x4a5e32(0xc9)][_0x4a5e32(0xdd)](0x0,_0x19c0ee),_0x3ee361=_0x18f1c6[_0x4a5e32(0xc9)][_0x4a5e32(0xbf)],_0x58481b=_0x3ee361>_0x19c0ee,_0x2c63d3=[],_0x154afd=getTerminalWidth(),_0x33d204=_0x154afd!==Infinity,_0x3bd37e=0x32;let _0x1bd227=_0x42b484[_0x4a5e32(0xd0)]((_0x1f62c8,_0x3c3104)=>{const _0x4c105c=_0x4a5e32,_0x4aee5a=stringWidth(_0x1c26ed[_0x3c3104]),_0x125168=Math[_0x4c105c(0xb3)](..._0x333ea0[_0x4c105c(0xd0)](_0x47b170=>{const _0x3b210d=_0x47b170[_0x1f62c8];return stringWidth(formatValue(_0x3b210d));})),_0x106b39=Math[_0x4c105c(0xb3)](stringWidth(_0x1f62c8),_0x4aee5a,_0x125168);return _0x4408bc?_0x106b39:Math[_0x4c105c(0xdf)](_0x106b39,_0x3bd37e);});if(_0x33d204&&!_0x4408bc&&_0x42b484[_0x4a5e32(0xbf)]>0x0){const _0x37887b=_0x216b7f=>{let _0x3dd748=0x1;for(const _0x15f359 of _0x216b7f){_0x3dd748+=_0x15f359+0x3;}return _0x3dd748+0x1;};let _0x4d23eb=_0x37887b(_0x1bd227);if(_0x4d23eb>_0x154afd){const _0x3ff88d=0x3;for(let _0x30543b=_0x1bd227[_0x4a5e32(0xbf)]-0x1;_0x30543b>=0x0;_0x30543b--){_0x4d23eb=_0x37887b(_0x1bd227);if(_0x4d23eb<=_0x154afd)break;const _0x54bdf6=_0x1bd227[_0x30543b],_0x55baf4=_0x4d23eb-_0x154afd,_0x4b9d6e=_0x54bdf6-_0x3ff88d,_0xcd603c=Math[_0x4a5e32(0xdf)](_0x55baf4,_0x4b9d6e);_0xcd603c>0x0&&(_0x1bd227[_0x30543b]=_0x54bdf6-_0xcd603c);}}}const _0x552fbf=_0x42b484,_0x3cf9d7=_0x1c26ed,_0x201399=_0x1bd227,_0x51b276=_0x1bd227;_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('┌'+_0x51b276[_0x4a5e32(0xd0)](_0x147a9b=>'─'[_0x4a5e32(0xb1)](_0x147a9b+0x2))[_0x4a5e32(0xe0)]('┬')+'┐',_0x1eb0a1));const _0x3b2e26=_0x552fbf['map']((_0xec4b7b,_0x2a9c49)=>centerAlign(_0xec4b7b,_0x201399[_0x2a9c49]));_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('│',_0x1eb0a1)+'\x20'+_0x3b2e26[_0x4a5e32(0xe0)]('\x20'+colorBorder('│',_0x1eb0a1)+'\x20')+'\x20'+colorBorder('│',_0x1eb0a1));const _0xd0881e=_0x3cf9d7[_0x4a5e32(0xd0)]((_0x21fb49,_0x18db19)=>colorType(centerAlign(_0x21fb49,_0x201399[_0x18db19]),_0x1eb0a1));_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('│',_0x1eb0a1)+'\x20'+_0xd0881e[_0x4a5e32(0xe0)]('\x20'+colorBorder('│',_0x1eb0a1)+'\x20')+'\x20'+colorBorder('│',_0x1eb0a1)),_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('├'+_0x51b276[_0x4a5e32(0xd0)](_0x8cbb1=>'─'[_0x4a5e32(0xb1)](_0x8cbb1+0x2))['join']('┼')+'┤',_0x1eb0a1));const _0x2ab0d6=(_0x9f0490,_0x5c473b)=>{const _0x38842d=_0x4a5e32,_0x3dddc9=stringWidth(_0x9f0490);if(_0x3dddc9<=_0x5c473b)return _0x9f0490;let _0x1f7377=_0x9f0490;while(stringWidth(_0x1f7377+'…')>_0x5c473b&&_0x1f7377[_0x38842d(0xbf)]>0x0){_0x1f7377=_0x1f7377['slice'](0x0,-0x1);}return _0x1f7377+'…';};_0x333ea0[_0x4a5e32(0xdc)](_0x50c710=>{const _0x25a97e=_0x4a5e32,_0x274565=_0x42b484[_0x25a97e(0xd0)]((_0x1de113,_0x3ecfbf)=>{const _0x382e87=_0x25a97e,_0x503fe0=_0x50c710[_0x1de113],_0x4f4e89=formatValue(_0x503fe0),_0x2964c6=_0x201399[_0x3ecfbf],_0x572c39=_0x2ab0d6(_0x4f4e89,_0x2964c6),_0x37ed79=typeof _0x503fe0==='number'||typeof _0x503fe0===_0x382e87(0xb9)&&/^-?\d+$/[_0x382e87(0xd3)](_0x503fe0);return _0x37ed79?padStart(_0x572c39,_0x2964c6):padEnd(_0x572c39,_0x2964c6);});_0x2c63d3[_0x25a97e(0xc3)](colorBorder('│',_0x1eb0a1)+'\x20'+_0x274565[_0x25a97e(0xe0)]('\x20'+colorBorder('│',_0x1eb0a1)+'\x20')+'\x20'+colorBorder('│',_0x1eb0a1));});const _0x5733c3=_0x51b276['reduce']((_0x9cccee,_0x5e8e12)=>_0x9cccee+_0x5e8e12+0x3,-0x1);_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('├'+_0x51b276[_0x4a5e32(0xd0)](_0x375bc9=>'─'['repeat'](_0x375bc9+0x2))['join']('┴')+'┤',_0x1eb0a1));let _0x1e74f7;_0x58481b?_0x1e74f7=_0x3ee361+'\x20rows\x20('+_0x19c0ee+_0x4a5e32(0xb6):_0x1e74f7=_0x3ee361+_0x4a5e32(0xcc)+(_0x3ee361===0x1?'':'s');const _0x4c000c=_0x1e74f7[_0x4a5e32(0xb5)](_0x5733c3-0x2);return _0x2c63d3[_0x4a5e32(0xc3)](colorBorder('│',_0x1eb0a1)+'\x20'+_0x4c000c+'\x20'+colorBorder('│',_0x1eb0a1)),_0x2c63d3[_0x4a5e32(0xc3)](colorBorder('└'+'─'['repeat'](_0x5733c3)+'┘',_0x1eb0a1)),_0x2c63d3[_0x4a5e32(0xe0)]('\x0a');}function simplifyType(_0x129b92){const _0x1769e7=a68_0x4a39,_0x45df56={'varchar':_0x1769e7(0xb9),'bigint':'long','integer':_0x1769e7(0xc7),'double':'double','boolean':'bool','date':_0x1769e7(0xba),'timestamp':_0x1769e7(0xb0),'array':_0x1769e7(0xc4),'map':'map','row':_0x1769e7(0xcb)},_0xd0260=_0x129b92[_0x1769e7(0xc5)]();for(const [_0x198010,_0x3f21d9]of Object[_0x1769e7(0xce)](_0x45df56)){if(_0xd0260[_0x1769e7(0xaf)](_0x198010))return _0x3f21d9;}return _0x129b92[_0x1769e7(0xbf)]>0xa?_0x129b92['substring'](0x0,0xa):_0x129b92;}export function formatAsJSON(_0x341f9e,_0xa0bc11={}){const _0x13ca54=a68_0x4a39;if(_0x341f9e['data'][_0x13ca54(0xbf)]===0x0)return'[]';if(shouldUseColor(_0xa0bc11))return colorizeJSON(_0x341f9e[_0x13ca54(0xc9)],_0xa0bc11);const _0x176ec7=_0x341f9e[_0x13ca54(0xc9)][_0x13ca54(0xd0)](_0x108b90=>'\x20\x20'+JSON[_0x13ca54(0xd6)](_0x108b90));return'[\x0a'+_0x176ec7[_0x13ca54(0xe0)](',\x0a')+'\x0a]';}function a68_0x4a39(_0x31d521,_0x45ff31){const _0x19522d=a68_0x1952();return a68_0x4a39=function(_0x4a39f7,_0x40f411){_0x4a39f7=_0x4a39f7-0xaf;let _0x1c1cc2=_0x19522d[_0x4a39f7];return _0x1c1cc2;},a68_0x4a39(_0x31d521,_0x45ff31);}export function formatAsJSONL(_0x35e5b2,_0x4cd29e={}){const _0x4ec0e5=a68_0x4a39;if(_0x35e5b2[_0x4ec0e5(0xc9)][_0x4ec0e5(0xbf)]===0x0)return'';if(shouldUseColor(_0x4cd29e))return _0x35e5b2[_0x4ec0e5(0xc9)][_0x4ec0e5(0xd0)](_0xd89def=>colorizeJSONCompact(_0xd89def,_0x4cd29e))[_0x4ec0e5(0xe0)]('\x0a');return _0x35e5b2[_0x4ec0e5(0xc9)][_0x4ec0e5(0xd0)](_0x24ca78=>JSON['stringify'](_0x24ca78))[_0x4ec0e5(0xe0)]('\x0a');}export function formatAsTSV(_0x7126b5){const _0x39a90f=a68_0x4a39;if(_0x7126b5[_0x39a90f(0xc9)][_0x39a90f(0xbf)]===0x0)return'';const _0x3a8c81=[],_0x510c97=_0x7126b5[_0x39a90f(0xd9)]['map'](_0x16a629=>_0x16a629['name']);return _0x3a8c81['push'](_0x510c97[_0x39a90f(0xe0)]('\x09')),_0x7126b5['data'][_0x39a90f(0xdc)](_0x246d3b=>{const _0x5c4a51=_0x39a90f,_0x35d387=_0x510c97[_0x5c4a51(0xd0)](_0x5cc014=>{const _0x23718c=_0x246d3b[_0x5cc014];return formatValueForTSV(_0x23718c);});_0x3a8c81[_0x5c4a51(0xc3)](_0x35d387[_0x5c4a51(0xe0)]('\x09'));}),_0x3a8c81[_0x39a90f(0xe0)]('\x0a');}function formatValue(_0x266012){const _0x1e28e4=a68_0x4a39;if(_0x266012===null||_0x266012===undefined)return'';if(typeof _0x266012===_0x1e28e4(0xb9)){const _0x12defa=_0x266012[_0x1e28e4(0xcf)](/\n/g,'\x5cn')[_0x1e28e4(0xcf)](/\r/g,'\x5cr')[_0x1e28e4(0xcf)](/\t/g,'\x5ct');return _0x12defa;}if(typeof _0x266012==='number')return String(_0x266012);if(typeof _0x266012===_0x1e28e4(0xbb))return _0x266012?_0x1e28e4(0xdb):'false';if(_0x266012 instanceof Date)return _0x266012[_0x1e28e4(0xbc)]();if(typeof _0x266012==='object')return JSON['stringify'](_0x266012);return String(_0x266012);}function formatValueForTSV(_0x4f571b){const _0x34ccbb=a68_0x4a39;if(_0x4f571b===null||_0x4f571b===undefined)return'';if(typeof _0x4f571b==='string')return _0x4f571b[_0x34ccbb(0xcf)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x4f571b===_0x34ccbb(0xc2)||typeof _0x4f571b===_0x34ccbb(0xbb))return String(_0x4f571b);if(_0x4f571b instanceof Date)return _0x4f571b[_0x34ccbb(0xbc)]();if(typeof _0x4f571b===_0x34ccbb(0xd7))return JSON[_0x34ccbb(0xd6)](_0x4f571b);return String(_0x4f571b);}export function formatQueryResult(_0x3ff278,_0x3675ef){const _0xfdf75b=a68_0x4a39;switch(_0x3675ef){case _0xfdf75b(0xda):return formatAsTable(_0x3ff278);case _0xfdf75b(0xb4):return formatAsJSON(_0x3ff278);case _0xfdf75b(0xd5):return formatAsJSONL(_0x3ff278);case _0xfdf75b(0xc1):return formatAsTSV(_0x3ff278);default:return formatAsJSON(_0x3ff278);}}export function formatBytes(_0xbd345a){const _0x3d6c27=a68_0x4a39;if(_0xbd345a===0x0)return _0x3d6c27(0xca);const _0x14f9e5=['B','KB','MB','GB','TB'],_0x59457e=0x400,_0x4a5126=Math[_0x3d6c27(0xd1)](Math[_0x3d6c27(0xc8)](_0xbd345a)/Math[_0x3d6c27(0xc8)](_0x59457e)),_0x5c42f4=_0xbd345a/Math['pow'](_0x59457e,_0x4a5126),_0x5acc16=_0x5c42f4>=0xa?0x1:0x2;return _0x5c42f4[_0x3d6c27(0xcd)](_0x5acc16)+'\x20'+_0x14f9e5[_0x4a5126];}export function formatRows(_0x55d3f2){const _0x12d980=a68_0x4a39;if(_0x55d3f2==null)return'-';if(_0x55d3f2===0x0)return'0';if(_0x55d3f2<0x3e8)return _0x55d3f2['toString']();const _0xc9909c=['','K','M','B','T'],_0x770e38=0x3e8,_0x1b8b31=Math['floor'](Math['log'](_0x55d3f2)/Math[_0x12d980(0xc8)](_0x770e38)),_0x4063ae=_0x55d3f2/Math[_0x12d980(0xd2)](_0x770e38,_0x1b8b31),_0x28fadd=_0x4063ae>=0xa?0x1:0x2;return''+_0x4063ae['toFixed'](_0x28fadd)+_0xc9909c[_0x1b8b31];}function a68_0x1952(){const _0x322681=['floor','pow','test','stdout','jsonl','stringify','object','1236626wuHQxm','columns','table','true','forEach','slice','316791JVWTLF','min','join','213480fOGrJk','9VBFita','6726655gewJmG','startsWith','timestamp','repeat','type','max','json','padEnd','\x20shown)','390wutsIp','77NqiQMh','string','date','boolean','toISOString','1870292ryOOgK','1639580tnGJac','length','10552AsQYOP','tsv','number','push','array','toLowerCase','No\x20rows\x20returned','int','log','data','0\x20B','row','\x20row','toFixed','entries','replace','map'];a68_0x1952=function(){return _0x322681;};return a68_0x1952();}
@@ -1 +1 @@
1
- (function(_0x4b1f58,_0x354735){const _0x1eb6cb=a68_0x9f59,_0x48cd2b=_0x4b1f58();while(!![]){try{const _0x34a9cf=parseInt(_0x1eb6cb(0x149))/0x1+parseInt(_0x1eb6cb(0x148))/0x2+parseInt(_0x1eb6cb(0x147))/0x3+parseInt(_0x1eb6cb(0x14e))/0x4+parseInt(_0x1eb6cb(0x140))/0x5*(-parseInt(_0x1eb6cb(0x14f))/0x6)+-parseInt(_0x1eb6cb(0x145))/0x7*(-parseInt(_0x1eb6cb(0x151))/0x8)+-parseInt(_0x1eb6cb(0x146))/0x9;if(_0x34a9cf===_0x354735)break;else _0x48cd2b['push'](_0x48cd2b['shift']());}catch(_0x2a1f7b){_0x48cd2b['push'](_0x48cd2b['shift']());}}}(a68_0xc708,0x8ae6f));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a68_0x9f59(_0x4f92ea,_0xff1910){const _0xc7087f=a68_0xc708();return a68_0x9f59=function(_0x9f59e9,_0x5e35a4){_0x9f59e9=_0x9f59e9-0x140;let _0x50512b=_0xc7087f[_0x9f59e9];return _0x50512b;},a68_0x9f59(_0x4f92ea,_0xff1910);}function a68_0xc708(){const _0x365ead=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','code','Permission\x20denied\x20reading\x20file:\x20','1697712GNnUja','192wDYaeH','Invalid\x20JSON\x20string:\x20','21696jwoJee','INTERNAL','EACCES','File\x20not\x20found:\x20','ENOENT','message','159910vuDTtu','PERMISSION_DENIED','\x27:\x20','INVALID_ARGUMENT','parse','35QzHnUh','14283693zlmQNG','3235095XqVGYp','2103086lCFJQO','611548gdaCuX','Invalid\x20JSON\x20in\x20file\x20\x27'];a68_0xc708=function(){return _0x365ead;};return a68_0xc708();}export async function loadJSON(_0x30e79e,_0x2a958a){const _0x41f016=a68_0x9f59;try{if(_0x2a958a){const _0x244092=await readFile(_0x30e79e,'utf-8');try{return JSON[_0x41f016(0x144)](_0x244092);}catch(_0xfc3add){throw new SDKError(ErrorCode[_0x41f016(0x143)],_0x41f016(0x14a)+_0x30e79e+_0x41f016(0x142)+(_0xfc3add instanceof Error?_0xfc3add[_0x41f016(0x156)]:String(_0xfc3add)));}}else try{return JSON[_0x41f016(0x144)](_0x30e79e);}catch(_0x3b1b3b){throw new SDKError(ErrorCode[_0x41f016(0x143)],_0x41f016(0x150)+(_0x3b1b3b instanceof Error?_0x3b1b3b[_0x41f016(0x156)]:String(_0x3b1b3b)));}}catch(_0x1fb340){if(_0x1fb340 instanceof SDKError)throw _0x1fb340;if(_0x1fb340 instanceof Error&&_0x41f016(0x14c)in _0x1fb340){const _0x1ef9b3=_0x1fb340;if(_0x1ef9b3[_0x41f016(0x14c)]===_0x41f016(0x155))throw new SDKError(ErrorCode['NOT_FOUND'],_0x41f016(0x154)+_0x30e79e);else{if(_0x1ef9b3['code']===_0x41f016(0x153))throw new SDKError(ErrorCode[_0x41f016(0x141)],_0x41f016(0x14d)+_0x30e79e);}}throw new SDKError(ErrorCode[_0x41f016(0x152)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1fb340 instanceof Error?_0x1fb340['message']:String(_0x1fb340)));}}export async function loadJSONFromOptions(_0xea76c7,_0x11b308){const _0x525073=a68_0x9f59;if(_0xea76c7&&_0x11b308)throw new SDKError(ErrorCode[_0x525073(0x143)],_0x525073(0x14b));if(_0xea76c7)return await loadJSON(_0xea76c7,![]);if(_0x11b308)return await loadJSON(_0x11b308,!![]);return undefined;}
1
+ function a69_0x5cbd(){const _0x4a6f06=['20976OCtLKL','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Invalid\x20JSON\x20string:\x20','File\x20not\x20found:\x20','utf-8','message','code','parse','1233hDEUra','136916HiFLKh','EACCES','INTERNAL','258lvnDPv','Failed\x20to\x20load\x20JSON:\x20','493260DsOaET','INVALID_ARGUMENT','32845tVjSSD','\x27:\x20','54357eGXuBq','1242380wuBHLv','ENOENT','68DKkugl','PERMISSION_DENIED','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2564527kvAUjT'];a69_0x5cbd=function(){return _0x4a6f06;};return a69_0x5cbd();}function a69_0x3d56(_0x4e4a78,_0x3e5568){const _0x5cbd09=a69_0x5cbd();return a69_0x3d56=function(_0x3d569e,_0x35cad2){_0x3d569e=_0x3d569e-0xfc;let _0x22af53=_0x5cbd09[_0x3d569e];return _0x22af53;},a69_0x3d56(_0x4e4a78,_0x3e5568);}(function(_0x313d02,_0x5bedb1){const _0x705561=a69_0x3d56,_0xaf821d=_0x313d02();while(!![]){try{const _0x210d31=parseInt(_0x705561(0x10c))/0x1+parseInt(_0x705561(0xfe))/0x2*(-parseInt(_0x705561(0x115))/0x3)+parseInt(_0x705561(0xfc))/0x4+parseInt(_0x705561(0x113))/0x5*(-parseInt(_0x705561(0x10f))/0x6)+parseInt(_0x705561(0x101))/0x7+-parseInt(_0x705561(0x102))/0x8*(-parseInt(_0x705561(0x10b))/0x9)+parseInt(_0x705561(0x111))/0xa;if(_0x210d31===_0x5bedb1)break;else _0xaf821d['push'](_0xaf821d['shift']());}catch(_0x5356db){_0xaf821d['push'](_0xaf821d['shift']());}}}(a69_0x5cbd,0x4f13b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x20264c,_0x15b2fe){const _0xfe6d91=a69_0x3d56;try{if(_0x15b2fe){const _0x182f43=await readFile(_0x20264c,_0xfe6d91(0x107));try{return JSON[_0xfe6d91(0x10a)](_0x182f43);}catch(_0x5e9411){throw new SDKError(ErrorCode[_0xfe6d91(0x112)],_0xfe6d91(0x104)+_0x20264c+_0xfe6d91(0x114)+(_0x5e9411 instanceof Error?_0x5e9411[_0xfe6d91(0x108)]:String(_0x5e9411)));}}else try{return JSON[_0xfe6d91(0x10a)](_0x20264c);}catch(_0x43220d){throw new SDKError(ErrorCode[_0xfe6d91(0x112)],_0xfe6d91(0x105)+(_0x43220d instanceof Error?_0x43220d[_0xfe6d91(0x108)]:String(_0x43220d)));}}catch(_0x478811){if(_0x478811 instanceof SDKError)throw _0x478811;if(_0x478811 instanceof Error&&'code'in _0x478811){const _0x5326f9=_0x478811;if(_0x5326f9['code']===_0xfe6d91(0xfd))throw new SDKError(ErrorCode['NOT_FOUND'],_0xfe6d91(0x106)+_0x20264c);else{if(_0x5326f9[_0xfe6d91(0x109)]===_0xfe6d91(0x10d))throw new SDKError(ErrorCode[_0xfe6d91(0xff)],_0xfe6d91(0x103)+_0x20264c);}}throw new SDKError(ErrorCode[_0xfe6d91(0x10e)],_0xfe6d91(0x110)+(_0x478811 instanceof Error?_0x478811[_0xfe6d91(0x108)]:String(_0x478811)));}}export async function loadJSONFromOptions(_0x4a1601,_0x21e851){const _0x1447f3=a69_0x3d56;if(_0x4a1601&&_0x21e851)throw new SDKError(ErrorCode[_0x1447f3(0x112)],_0x1447f3(0x100));if(_0x4a1601)return await loadJSON(_0x4a1601,![]);if(_0x21e851)return await loadJSON(_0x21e851,!![]);return undefined;}
@@ -1 +1 @@
1
- const a69_0x5c3ca2=a69_0x4c26;function a69_0x4c26(_0x469e6c,_0x9c2a5c){const _0x311956=a69_0x3119();return a69_0x4c26=function(_0x4c262f,_0x874e6f){_0x4c262f=_0x4c262f-0x1cf;let _0x12e9d8=_0x311956[_0x4c262f];return _0x12e9d8;},a69_0x4c26(_0x469e6c,_0x9c2a5c);}(function(_0xc2e4fe,_0x485b73){const _0x41a7c4=a69_0x4c26,_0xaf4d29=_0xc2e4fe();while(!![]){try{const _0x3cc61f=-parseInt(_0x41a7c4(0x1d2))/0x1*(-parseInt(_0x41a7c4(0x1d9))/0x2)+-parseInt(_0x41a7c4(0x1da))/0x3+parseInt(_0x41a7c4(0x1d1))/0x4*(-parseInt(_0x41a7c4(0x1dd))/0x5)+parseInt(_0x41a7c4(0x1d0))/0x6*(-parseInt(_0x41a7c4(0x1d3))/0x7)+-parseInt(_0x41a7c4(0x1d7))/0x8*(parseInt(_0x41a7c4(0x1d5))/0x9)+parseInt(_0x41a7c4(0x1d4))/0xa+parseInt(_0x41a7c4(0x1d8))/0xb*(parseInt(_0x41a7c4(0x1d6))/0xc);if(_0x3cc61f===_0x485b73)break;else _0xaf4d29['push'](_0xaf4d29['shift']());}catch(_0x365ce7){_0xaf4d29['push'](_0xaf4d29['shift']());}}}(a69_0x3119,0xed8d1));const MODEL_ALIASES={'haiku':a69_0x5c3ca2(0x1cf),'sonnet':a69_0x5c3ca2(0x1de)};export function extractModelAlias(_0x3757cc){const _0x4f65e8=a69_0x5c3ca2,_0x16cba9=_0x3757cc[_0x4f65e8(0x1dc)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x16cba9)return _0x16cba9[0x1][_0x4f65e8(0x1db)]();return _0x3757cc;}export function resolveModelAlias(_0x3c4888){const _0x31a4a7=a69_0x5c3ca2;return MODEL_ALIASES[_0x3c4888[_0x31a4a7(0x1db)]()]||_0x3c4888;}function a69_0x3119(){const _0x6ba8f3=['16280060jMekgt','509121ToKCnN','14820PJaCNQ','240VvDrQv','36806jYfVpJ','16AZWufO','564858CnWvxO','toLowerCase','match','739340XliUlv','claude-4.5-sonnet','claude-4.5-haiku','6HHUQMH','40RWVtJX','7318rFGLPw','10372705MzWLfu'];a69_0x3119=function(){return _0x6ba8f3;};return a69_0x3119();}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a70_0x587309=a70_0x1929;(function(_0x21e0df,_0x330ec6){const _0x441906=a70_0x1929,_0x4a89bd=_0x21e0df();while(!![]){try{const _0x45353a=-parseInt(_0x441906(0x156))/0x1*(-parseInt(_0x441906(0x15d))/0x2)+parseInt(_0x441906(0x15f))/0x3*(parseInt(_0x441906(0x15c))/0x4)+-parseInt(_0x441906(0x15b))/0x5*(-parseInt(_0x441906(0x161))/0x6)+parseInt(_0x441906(0x159))/0x7*(-parseInt(_0x441906(0x162))/0x8)+parseInt(_0x441906(0x15e))/0x9*(parseInt(_0x441906(0x164))/0xa)+parseInt(_0x441906(0x166))/0xb+parseInt(_0x441906(0x163))/0xc*(-parseInt(_0x441906(0x158))/0xd);if(_0x45353a===_0x330ec6)break;else _0x4a89bd['push'](_0x4a89bd['shift']());}catch(_0x147c3a){_0x4a89bd['push'](_0x4a89bd['shift']());}}}(a70_0x3974,0x22fc0));const MODEL_ALIASES={'haiku':a70_0x587309(0x165),'sonnet':a70_0x587309(0x157)};export function extractModelAlias(_0x2b1374){const _0x46d80a=a70_0x587309,_0x5f0da0=_0x2b1374[_0x46d80a(0x15a)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x5f0da0)return _0x5f0da0[0x1][_0x46d80a(0x160)]();return _0x2b1374;}function a70_0x3974(){const _0x5a67c2=['72084qDaoRz','60010xJYhTj','claude-4.5-haiku','522588nDeshQ','5349QNfppi','claude-4.5-sonnet','923cqECVL','70WrGlhD','match','175vDlIaN','124KBQmBM','30XRPAZj','45cRdpnv','24375QCKvXE','toLowerCase','36588SqRads','42608efVcYs'];a70_0x3974=function(){return _0x5a67c2;};return a70_0x3974();}export function resolveModelAlias(_0x38c79b){const _0x3f6c6e=a70_0x587309;return MODEL_ALIASES[_0x38c79b[_0x3f6c6e(0x160)]()]||_0x38c79b;}function a70_0x1929(_0x3cfd39,_0x488cf2){const _0x3974e6=a70_0x3974();return a70_0x1929=function(_0x192980,_0x5571a0){_0x192980=_0x192980-0x156;let _0x3e5004=_0x3974e6[_0x192980];return _0x3e5004;},a70_0x1929(_0x3cfd39,_0x488cf2);}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x7e65ff,_0x316afd){const _0x552a52=a70_0x2415,_0x4dc23f=_0x7e65ff();while(!![]){try{const _0x43a903=-parseInt(_0x552a52(0xf2))/0x1*(-parseInt(_0x552a52(0xfa))/0x2)+-parseInt(_0x552a52(0xf4))/0x3*(parseInt(_0x552a52(0xf9))/0x4)+parseInt(_0x552a52(0xf8))/0x5*(-parseInt(_0x552a52(0xf6))/0x6)+parseInt(_0x552a52(0xf7))/0x7*(parseInt(_0x552a52(0xfe))/0x8)+parseInt(_0x552a52(0xed))/0x9+-parseInt(_0x552a52(0xf0))/0xa*(parseInt(_0x552a52(0xec))/0xb)+parseInt(_0x552a52(0xfb))/0xc*(-parseInt(_0x552a52(0xef))/0xd);if(_0x43a903===_0x316afd)break;else _0x4dc23f['push'](_0x4dc23f['shift']());}catch(_0x3236df){_0x4dc23f['push'](_0x4dc23f['shift']());}}}(a70_0x4c83,0x97f23));export function validateLimitOption(_0xa31ed8){const _0x493ad7=a70_0x2415;if(!Number[_0x493ad7(0xfc)](_0xa31ed8))return{'isValid':![],'error':_0x493ad7(0xfd)+_0xa31ed8+'.\x20Must\x20be\x20an\x20integer.'};if(_0xa31ed8<=0x0)return{'isValid':![],'error':_0x493ad7(0xfd)+_0xa31ed8+_0x493ad7(0xf5)};return{'isValid':!![],'value':_0xa31ed8};}export function validateTimeoutOption(_0xc334d5,_0x4e61ff=0x1e){const _0x4abf51=a70_0x2415;if(_0xc334d5===undefined)return{'isValid':!![],'value':_0x4e61ff};const _0x357baf=typeof _0xc334d5==='number'?_0xc334d5:parseFloat(_0xc334d5);if(isNaN(_0x357baf))return{'isValid':![],'error':_0x4abf51(0xf1)+_0xc334d5+_0x4abf51(0xf3)};if(_0x357baf<=0x0)return{'isValid':![],'error':_0x4abf51(0xf1)+_0x357baf+_0x4abf51(0xee)};return{'isValid':!![],'value':_0x357baf};}function a70_0x2415(_0x2c9779,_0x48e52e){const _0x4c83c9=a70_0x4c83();return a70_0x2415=function(_0x2415a3,_0x48ee90){_0x2415a3=_0x2415a3-0xec;let _0x1d6f85=_0x4c83c9[_0x2415a3];return _0x1d6f85;},a70_0x2415(_0x2c9779,_0x48e52e);}function a70_0x4c83(){const _0xfbf1ab=['1021899OGkcEf','.\x20Must\x20be\x20a\x20positive\x20integer.','510882YlDDyi','105zunZDg','50aFCnSO','8JNPfkr','1155502tCCbGQ','25332iyvetN','isInteger','Invalid\x20limit\x20value:\x20','571432WdxsVD','65021IZqudo','8341767rZheJv','.\x20Must\x20be\x20a\x20positive\x20number.','1027JtxYAx','430vNVGiv','Invalid\x20timeout\x20value:\x20','1TyizCz','.\x20Must\x20be\x20a\x20number.'];a70_0x4c83=function(){return _0xfbf1ab;};return a70_0x4c83();}
1
+ function a71_0x33be(_0x470223,_0x317688){const _0x9f9617=a71_0x9f96();return a71_0x33be=function(_0x33be25,_0x1d7c1){_0x33be25=_0x33be25-0xb4;let _0x38a307=_0x9f9617[_0x33be25];return _0x38a307;},a71_0x33be(_0x470223,_0x317688);}(function(_0x5dfa3a,_0x56c1e2){const _0xc3a981=a71_0x33be,_0x135408=_0x5dfa3a();while(!![]){try{const _0x79457a=-parseInt(_0xc3a981(0xc2))/0x1+parseInt(_0xc3a981(0xbc))/0x2+-parseInt(_0xc3a981(0xc3))/0x3+-parseInt(_0xc3a981(0xb7))/0x4*(parseInt(_0xc3a981(0xbf))/0x5)+parseInt(_0xc3a981(0xbb))/0x6*(parseInt(_0xc3a981(0xb9))/0x7)+-parseInt(_0xc3a981(0xb8))/0x8+-parseInt(_0xc3a981(0xc1))/0x9*(-parseInt(_0xc3a981(0xb5))/0xa);if(_0x79457a===_0x56c1e2)break;else _0x135408['push'](_0x135408['shift']());}catch(_0x4bb863){_0x135408['push'](_0x135408['shift']());}}}(a71_0x9f96,0x266f0));function a71_0x9f96(){const _0x2b577a=['3303063ovZULz','170838VAskpo','209031sHxfwj','Invalid\x20limit\x20value:\x20','10QPAMtV','number','28ghfegw','1433648nXfaNT','14WOzpAL','.\x20Must\x20be\x20an\x20integer.','86442Owjvhn','505602iTdMdz','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','51055Wpgblu','.\x20Must\x20be\x20a\x20positive\x20integer.'];a71_0x9f96=function(){return _0x2b577a;};return a71_0x9f96();}export function validateLimitOption(_0x174780){const _0x335413=a71_0x33be;if(!Number['isInteger'](_0x174780))return{'isValid':![],'error':_0x335413(0xb4)+_0x174780+_0x335413(0xba)};if(_0x174780<=0x0)return{'isValid':![],'error':_0x335413(0xb4)+_0x174780+_0x335413(0xc0)};return{'isValid':!![],'value':_0x174780};}export function validateTimeoutOption(_0x101136,_0x48d944=0x1e){const _0x3b11bf=a71_0x33be;if(_0x101136===undefined)return{'isValid':!![],'value':_0x48d944};const _0x483387=typeof _0x101136===_0x3b11bf(0xb6)?_0x101136:parseFloat(_0x101136);if(isNaN(_0x483387))return{'isValid':![],'error':_0x3b11bf(0xbe)+_0x101136+'.\x20Must\x20be\x20a\x20number.'};if(_0x483387<=0x0)return{'isValid':![],'error':_0x3b11bf(0xbe)+_0x483387+_0x3b11bf(0xbd)};return{'isValid':!![],'value':_0x483387};}
@@ -1 +1 @@
1
- (function(_0x1fe156,_0x515e6d){const _0x4e7825=a71_0x3bc2,_0x502f50=_0x1fe156();while(!![]){try{const _0x2d8afe=-parseInt(_0x4e7825(0xc1))/0x1+parseInt(_0x4e7825(0xc0))/0x2+parseInt(_0x4e7825(0xc3))/0x3*(-parseInt(_0x4e7825(0xbd))/0x4)+parseInt(_0x4e7825(0xc6))/0x5+-parseInt(_0x4e7825(0xc9))/0x6+parseInt(_0x4e7825(0xbc))/0x7+-parseInt(_0x4e7825(0xc5))/0x8*(-parseInt(_0x4e7825(0xbf))/0x9);if(_0x2d8afe===_0x515e6d)break;else _0x502f50['push'](_0x502f50['shift']());}catch(_0x18aea2){_0x502f50['push'](_0x502f50['shift']());}}}(a71_0x8f6a,0xae57e));function a71_0x8f6a(){const _0x209145=['6694400eGnFGZ','No\x20available\x20port\x20found\x20between\x20','once','8028090gmMsOT','listen','code','\x20and\x20','1049923dxEshl','556HPDmcq','error','171XvQxLe','2713000CZoFwl','734439quQEwB','close','13224ksyuVI','EADDRINUSE','233224XKVivv'];a71_0x8f6a=function(){return _0x209145;};return a71_0x8f6a();}import{createServer}from'node:net';export async function isPortAvailable(_0x592c17){return new Promise(_0x2b2736=>{const _0x2916ea=a71_0x3bc2,_0x3b247d=createServer();_0x3b247d[_0x2916ea(0xc8)](_0x2916ea(0xbe),_0xdf3b84=>{const _0x1086cc=_0x2916ea;_0xdf3b84[_0x1086cc(0xcb)]===_0x1086cc(0xc4)?_0x2b2736(![]):_0x2b2736(![]);}),_0x3b247d[_0x2916ea(0xc8)]('listening',()=>{const _0x1eaa5d=_0x2916ea;_0x3b247d[_0x1eaa5d(0xc2)](),_0x2b2736(!![]);}),_0x3b247d[_0x2916ea(0xca)](_0x592c17,'0.0.0.0');});}function a71_0x3bc2(_0x4ce599,_0x45c273){const _0x8f6ad6=a71_0x8f6a();return a71_0x3bc2=function(_0x3bc2e4,_0x314882){_0x3bc2e4=_0x3bc2e4-0xbb;let _0x4cd054=_0x8f6ad6[_0x3bc2e4];return _0x4cd054;},a71_0x3bc2(_0x4ce599,_0x45c273);}export async function findAvailablePort(_0xe2774a=0xfa0,_0x4e1341=0x64){const _0x294a01=a71_0x3bc2;for(let _0x1dc206=0x0;_0x1dc206<_0x4e1341;_0x1dc206++){const _0x13e632=_0xe2774a+_0x1dc206;if(await isPortAvailable(_0x13e632))return _0x13e632;}throw new Error(_0x294a01(0xc7)+_0xe2774a+_0x294a01(0xbb)+(_0xe2774a+_0x4e1341-0x1));}
1
+ (function(_0x19805,_0x3cd00b){const _0x4fc2c9=a72_0x2549,_0x21ad78=_0x19805();while(!![]){try{const _0x2871ac=-parseInt(_0x4fc2c9(0x1d8))/0x1*(parseInt(_0x4fc2c9(0x1d6))/0x2)+parseInt(_0x4fc2c9(0x1e0))/0x3*(-parseInt(_0x4fc2c9(0x1d5))/0x4)+-parseInt(_0x4fc2c9(0x1ce))/0x5*(-parseInt(_0x4fc2c9(0x1e1))/0x6)+parseInt(_0x4fc2c9(0x1dd))/0x7*(parseInt(_0x4fc2c9(0x1dc))/0x8)+-parseInt(_0x4fc2c9(0x1d7))/0x9*(parseInt(_0x4fc2c9(0x1d2))/0xa)+parseInt(_0x4fc2c9(0x1d4))/0xb*(parseInt(_0x4fc2c9(0x1cf))/0xc)+parseInt(_0x4fc2c9(0x1d9))/0xd;if(_0x2871ac===_0x3cd00b)break;else _0x21ad78['push'](_0x21ad78['shift']());}catch(_0x569597){_0x21ad78['push'](_0x21ad78['shift']());}}}(a72_0x4b17,0xc2b35));import{createServer}from'node:net';function a72_0x2549(_0x318aee,_0xd29bb6){const _0x4b17e2=a72_0x4b17();return a72_0x2549=function(_0x25495a,_0x4ba70d){_0x25495a=_0x25495a-0x1ce;let _0x4218c8=_0x4b17e2[_0x25495a];return _0x4218c8;},a72_0x2549(_0x318aee,_0xd29bb6);}export async function isPortAvailable(_0x26928e){return new Promise(_0x7de375=>{const _0x129d3b=a72_0x2549,_0x8485ae=createServer();_0x8485ae[_0x129d3b(0x1d3)](_0x129d3b(0x1da),_0x2e66a4=>{const _0x33bc9f=_0x129d3b;_0x2e66a4[_0x33bc9f(0x1df)]===_0x33bc9f(0x1e2)?_0x7de375(![]):_0x7de375(![]);}),_0x8485ae[_0x129d3b(0x1d3)](_0x129d3b(0x1d1),()=>{const _0x421198=_0x129d3b;_0x8485ae[_0x421198(0x1d0)](),_0x7de375(!![]);}),_0x8485ae[_0x129d3b(0x1de)](_0x26928e,_0x129d3b(0x1e3));});}function a72_0x4b17(){const _0x2c8cd7=['EADDRINUSE','0.0.0.0','430mgyaNt','48FeVzQT','close','listening','16580mzSfsQ','once','378026egZlSF','72FxuARK','30dipjCD','3249kNGRcj','42635HLLlnb','14267110BYTTSW','error','\x20and\x20','3536EXvkTl','2611aVQInK','listen','code','52467wmmhaN','66318OnVnuW'];a72_0x4b17=function(){return _0x2c8cd7;};return a72_0x4b17();}export async function findAvailablePort(_0xee6f5c=0xfa0,_0x2f3b9a=0x64){const _0x4bd8cc=a72_0x2549;for(let _0x1508bd=0x0;_0x1508bd<_0x2f3b9a;_0x1508bd++){const _0x332043=_0xee6f5c+_0x1508bd;if(await isPortAvailable(_0x332043))return _0x332043;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0xee6f5c+_0x4bd8cc(0x1db)+(_0xee6f5c+_0x2f3b9a-0x1));}
@@ -1 +1 @@
1
- const a72_0x3cee19=a72_0x216e;(function(_0x46a896,_0x25f7cb){const _0x1f77df=a72_0x216e,_0x46f60a=_0x46a896();while(!![]){try{const _0x3419e3=parseInt(_0x1f77df(0x1c3))/0x1*(-parseInt(_0x1f77df(0x1a3))/0x2)+parseInt(_0x1f77df(0x1d3))/0x3+parseInt(_0x1f77df(0x1a7))/0x4+-parseInt(_0x1f77df(0x1cd))/0x5+parseInt(_0x1f77df(0x1b0))/0x6+parseInt(_0x1f77df(0x1d1))/0x7*(-parseInt(_0x1f77df(0x1c5))/0x8)+parseInt(_0x1f77df(0x1ae))/0x9*(parseInt(_0x1f77df(0x1af))/0xa);if(_0x3419e3===_0x25f7cb)break;else _0x46f60a['push'](_0x46f60a['shift']());}catch(_0x5173af){_0x46f60a['push'](_0x46f60a['shift']());}}}(a72_0xca32,0x1d76b));import{execSync}from'node:child_process';function a72_0x216e(_0x3ddf7b,_0x25458e){const _0xca3285=a72_0xca32();return a72_0x216e=function(_0x216e03,_0x2fb7bd){_0x216e03=_0x216e03-0x1a3;let _0x162116=_0xca3285[_0x216e03];return _0x162116;},a72_0x216e(_0x3ddf7b,_0x25458e);}const SHELL_NAMES=new Set([a72_0x3cee19(0x1ac),a72_0x3cee19(0x1c9),'sh',a72_0x3cee19(0x1b3),a72_0x3cee19(0x1b6),a72_0x3cee19(0x1b8),a72_0x3cee19(0x1a6),'dash',a72_0x3cee19(0x1b4),a72_0x3cee19(0x1c1),'nu','ion',a72_0x3cee19(0x1c6),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a72_0x3cee19(0x1be),a72_0x3cee19(0x1ca),a72_0x3cee19(0x1bc)]);function getProcessInfoWindows(_0x594c49){const _0x1c6327=a72_0x3cee19;try{const _0x4154b0=execSync(_0x1c6327(0x1c8)+_0x594c49+_0x1c6327(0x1a5),{'encoding':_0x1c6327(0x1b5),'windowsHide':!![]})[_0x1c6327(0x1cc)](),_0x45e556=_0x4154b0[_0x1c6327(0x1b1)]('\x0a')['filter'](_0x5aff1a=>_0x5aff1a['trim']());if(_0x45e556[_0x1c6327(0x1aa)]<0x2)return null;const _0x251cb6=_0x45e556[_0x45e556[_0x1c6327(0x1aa)]-0x1][_0x1c6327(0x1b1)](',');if(_0x251cb6['length']<0x3)return null;const _0x3566ba=_0x251cb6[0x1]?.[_0x1c6327(0x1cc)]()||'',_0x34f931=parseInt(_0x251cb6[0x2]?.[_0x1c6327(0x1cc)]()||'0',0xa);if(isNaN(_0x34f931)||!_0x3566ba)return null;return{'pid':_0x594c49,'ppid':_0x34f931,'comm':_0x3566ba[_0x1c6327(0x1cb)](/\.exe$/i,'')};}catch(_0x3ef66b){return process[_0x1c6327(0x1a4)][_0x1c6327(0x1ce)]&&console[_0x1c6327(0x1ab)](_0x1c6327(0x1c0)+_0x594c49+'\x20on\x20Windows:',_0x3ef66b),null;}}function getProcessInfoPosix(_0x3c6d5c){const _0x4519c5=a72_0x3cee19;try{const _0x39bbdd=execSync(_0x4519c5(0x1c2)+_0x3c6d5c+_0x4519c5(0x1ba),{'encoding':_0x4519c5(0x1b5)})[_0x4519c5(0x1cc)](),[_0x147e20,..._0x5986e2]=_0x39bbdd[_0x4519c5(0x1b1)](/\s+/),_0x5170aa=parseInt(_0x147e20,0xa),_0x14f60c=_0x5986e2['join']('\x20');if(isNaN(_0x5170aa))return null;return{'pid':_0x3c6d5c,'ppid':_0x5170aa,'comm':_0x14f60c};}catch(_0x58ea21){return process[_0x4519c5(0x1a4)][_0x4519c5(0x1ce)]&&console[_0x4519c5(0x1ab)](_0x4519c5(0x1c0)+_0x3c6d5c+_0x4519c5(0x1d2),_0x58ea21),null;}}function a72_0xca32(){const _0x3b292e=[',\x20continuing\x20up','\x20-o\x20ppid=,comm=','has','cursor','ppid','claude',',\x20using\x20fallback','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','powershell','ps\x20-p\x20','2vpRbSa','win32','299816ZlaNmZ','elvish','kill','wmic\x20process\x20where\x20ProcessId=','zsh','code','replace','trim','485720CIdmMi','DEBUG','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','pid','21JcPuBA','\x20on\x20POSIX:','232077QzZiMI','233726rdInqC','env','\x20get\x20ParentProcessId,Name\x20/format:csv','csh','317044SBNZwX','pop','comm','length','error','bash',')\x20spawned\x20by\x20','27OMJAXp','1281810fMbldf','136926tfiHNq','split','platform','fish','pwsh','utf-8','ksh','toLowerCase','tcsh'];a72_0xca32=function(){return _0x3b292e;};return a72_0xca32();}function getProcessInfo(_0x45ab88){const _0x20f240=a72_0x3cee19;if(process[_0x20f240(0x1b2)]===_0x20f240(0x1c4))return getProcessInfoWindows(_0x45ab88);return getProcessInfoPosix(_0x45ab88);}function getBasename(_0x6f943b){const _0x46b5c0=a72_0x3cee19;return _0x6f943b[_0x46b5c0(0x1cb)](/^-/,'')['split']('/')[_0x46b5c0(0x1a8)]()?.[_0x46b5c0(0x1b7)]()||'';}function isShell(_0x36275b){const _0x125eaf=a72_0x3cee19;return SHELL_NAMES[_0x125eaf(0x1bb)](getBasename(_0x36275b));}function isEphemeralShellSpawner(_0x4fdc1b){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x4fdc1b));}let cachedShellPID;function findShellPID(){const _0x53c127=a72_0x3cee19;let _0x570774=process[_0x53c127(0x1bd)];const _0x3a3db5=0xa;let _0x56e428=0x0;while(_0x56e428<_0x3a3db5){const _0x10edfb=getProcessInfo(_0x570774);if(!_0x10edfb){process['env'][_0x53c127(0x1ce)]&&console[_0x53c127(0x1ab)](_0x53c127(0x1cf)+_0x570774+_0x53c127(0x1bf));break;}if(isShell(_0x10edfb[_0x53c127(0x1a9)])){const _0xfb6148=getProcessInfo(_0x10edfb[_0x53c127(0x1bd)]);if(_0xfb6148&&isEphemeralShellSpawner(_0xfb6148[_0x53c127(0x1a9)])){process[_0x53c127(0x1a4)][_0x53c127(0x1ce)]&&console[_0x53c127(0x1ab)]('Found\x20ephemeral\x20shell\x20'+_0x10edfb[_0x53c127(0x1d0)]+'\x20('+_0x10edfb['comm']+_0x53c127(0x1ad)+_0xfb6148[_0x53c127(0x1a9)]+_0x53c127(0x1b9));_0x570774=_0x10edfb[_0x53c127(0x1bd)],_0x56e428++;continue;}return _0x10edfb[_0x53c127(0x1d0)];}if(_0x10edfb['ppid']===0x0||_0x10edfb[_0x53c127(0x1bd)]===0x1){if(isShell(_0x10edfb[_0x53c127(0x1a9)]))return _0x10edfb['pid'];break;}_0x570774=_0x10edfb['ppid'],_0x56e428++;}return process[_0x53c127(0x1a4)][_0x53c127(0x1ce)]&&console[_0x53c127(0x1ab)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x53c127(0x1bd)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4e57a8){const _0x4817e5=a72_0x3cee19;try{return process[_0x4817e5(0x1c7)](_0x4e57a8,0x0),!![];}catch{return![];}}
1
+ const a73_0x5a035d=a73_0x23be;(function(_0x1f2cbe,_0x1a3758){const _0xf1594e=a73_0x23be,_0x54bff3=_0x1f2cbe();while(!![]){try{const _0x41839e=parseInt(_0xf1594e(0x104))/0x1*(parseInt(_0xf1594e(0x11c))/0x2)+parseInt(_0xf1594e(0x12d))/0x3+parseInt(_0xf1594e(0x120))/0x4*(parseInt(_0xf1594e(0x117))/0x5)+-parseInt(_0xf1594e(0x113))/0x6+-parseInt(_0xf1594e(0x118))/0x7*(-parseInt(_0xf1594e(0x121))/0x8)+-parseInt(_0xf1594e(0x11a))/0x9+parseInt(_0xf1594e(0x123))/0xa*(-parseInt(_0xf1594e(0x124))/0xb);if(_0x41839e===_0x1a3758)break;else _0x54bff3['push'](_0x54bff3['shift']());}catch(_0x562c86){_0x54bff3['push'](_0x54bff3['shift']());}}}(a73_0x1f65,0xaebe4));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a73_0x5a035d(0x11e),a73_0x5a035d(0x112),'sh',a73_0x5a035d(0x108),'ksh','tcsh',a73_0x5a035d(0x133),'dash','pwsh',a73_0x5a035d(0x126),'nu',a73_0x5a035d(0x10c),a73_0x5a035d(0x105),a73_0x5a035d(0x110)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code',a73_0x5a035d(0x10f)]);function a73_0x23be(_0x5ba675,_0x36424f){const _0x1f653f=a73_0x1f65();return a73_0x23be=function(_0x23bee8,_0x2ba065){_0x23bee8=_0x23bee8-0x104;let _0x31acd0=_0x1f653f[_0x23bee8];return _0x31acd0;},a73_0x23be(_0x5ba675,_0x36424f);}function a73_0x1f65(){const _0x19e7a9=[',\x20continuing\x20up','length','filter','csh','comm','12YZnjNb','elvish','DEBUG','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','fish','trim','Found\x20ephemeral\x20shell\x20','env','ion','ps\x20-p\x20','\x20on\x20POSIX:','cursor','xonsh','pop','zsh','5747856drWYhs','replace','platform','toLowerCase','4500FhHxAk','5971BeyZUH',',\x20using\x20fallback','9681210WwaRfi','error','181882xtHiOl','split','bash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','5024FdPjZf','7760BhAoER','join','2960fVIhMT','52789DZBuRM','kill','powershell','pid','\x20on\x20Windows:',')\x20spawned\x20by\x20','utf-8','has','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','3362448mHOtsD','ppid','win32'];a73_0x1f65=function(){return _0x19e7a9;};return a73_0x1f65();}function getProcessInfoWindows(_0x3e6309){const _0x42d5ba=a73_0x5a035d;try{const _0x2d963a=execSync('wmic\x20process\x20where\x20ProcessId='+_0x3e6309+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x42d5ba(0x12a),'windowsHide':!![]})[_0x42d5ba(0x109)](),_0x327b63=_0x2d963a['split']('\x0a')[_0x42d5ba(0x132)](_0x451922=>_0x451922[_0x42d5ba(0x109)]());if(_0x327b63[_0x42d5ba(0x131)]<0x2)return null;const _0x4575cb=_0x327b63[_0x327b63[_0x42d5ba(0x131)]-0x1][_0x42d5ba(0x11d)](',');if(_0x4575cb['length']<0x3)return null;const _0x2be7ce=_0x4575cb[0x1]?.['trim']()||'',_0x1a079f=parseInt(_0x4575cb[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1a079f)||!_0x2be7ce)return null;return{'pid':_0x3e6309,'ppid':_0x1a079f,'comm':_0x2be7ce[_0x42d5ba(0x114)](/\.exe$/i,'')};}catch(_0x4c254f){return process[_0x42d5ba(0x10b)][_0x42d5ba(0x106)]&&console[_0x42d5ba(0x11b)](_0x42d5ba(0x107)+_0x3e6309+_0x42d5ba(0x128),_0x4c254f),null;}}function getProcessInfoPosix(_0x1d6a18){const _0x5b322f=a73_0x5a035d;try{const _0x5a4c15=execSync(_0x5b322f(0x10d)+_0x1d6a18+'\x20-o\x20ppid=,comm=',{'encoding':_0x5b322f(0x12a)})['trim'](),[_0x590acc,..._0x42606d]=_0x5a4c15[_0x5b322f(0x11d)](/\s+/),_0x1e9193=parseInt(_0x590acc,0xa),_0x435ad1=_0x42606d[_0x5b322f(0x122)]('\x20');if(isNaN(_0x1e9193))return null;return{'pid':_0x1d6a18,'ppid':_0x1e9193,'comm':_0x435ad1};}catch(_0x175ac1){return process[_0x5b322f(0x10b)][_0x5b322f(0x106)]&&console[_0x5b322f(0x11b)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x1d6a18+_0x5b322f(0x10e),_0x175ac1),null;}}function getProcessInfo(_0x231b3d){const _0x4af572=a73_0x5a035d;if(process[_0x4af572(0x115)]===_0x4af572(0x12f))return getProcessInfoWindows(_0x231b3d);return getProcessInfoPosix(_0x231b3d);}function getBasename(_0x245e8f){const _0x5679e0=a73_0x5a035d;return _0x245e8f[_0x5679e0(0x114)](/^-/,'')[_0x5679e0(0x11d)]('/')[_0x5679e0(0x111)]()?.[_0x5679e0(0x116)]()||'';}function isShell(_0x37c958){const _0x756672=a73_0x5a035d;return SHELL_NAMES[_0x756672(0x12b)](getBasename(_0x37c958));}function isEphemeralShellSpawner(_0x18002a){const _0x3a0690=a73_0x5a035d;return EPHEMERAL_SHELL_SPAWNERS[_0x3a0690(0x12b)](getBasename(_0x18002a));}let cachedShellPID;function findShellPID(){const _0x5c1fb0=a73_0x5a035d;let _0x214758=process['ppid'];const _0xbb5d39=0xa;let _0x44c615=0x0;while(_0x44c615<_0xbb5d39){const _0x265ff4=getProcessInfo(_0x214758);if(!_0x265ff4){process[_0x5c1fb0(0x10b)][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x11f)+_0x214758+_0x5c1fb0(0x119));break;}if(isShell(_0x265ff4['comm'])){const _0x58d045=getProcessInfo(_0x265ff4[_0x5c1fb0(0x12e)]);if(_0x58d045&&isEphemeralShellSpawner(_0x58d045[_0x5c1fb0(0x134)])){process['env'][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x10a)+_0x265ff4[_0x5c1fb0(0x127)]+'\x20('+_0x265ff4[_0x5c1fb0(0x134)]+_0x5c1fb0(0x129)+_0x58d045['comm']+_0x5c1fb0(0x130));_0x214758=_0x265ff4[_0x5c1fb0(0x12e)],_0x44c615++;continue;}return _0x265ff4[_0x5c1fb0(0x127)];}if(_0x265ff4[_0x5c1fb0(0x12e)]===0x0||_0x265ff4[_0x5c1fb0(0x12e)]===0x1){if(isShell(_0x265ff4['comm']))return _0x265ff4['pid'];break;}_0x214758=_0x265ff4[_0x5c1fb0(0x12e)],_0x44c615++;}return process[_0x5c1fb0(0x10b)][_0x5c1fb0(0x106)]&&console[_0x5c1fb0(0x11b)](_0x5c1fb0(0x12c)),process[_0x5c1fb0(0x12e)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x57c4b1){const _0x5116ca=a73_0x5a035d;try{return process[_0x5116ca(0x125)](_0x57c4b1,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x606e63,_0x1052fa){const _0x2e2511=a73_0x4730,_0x7cbfac=_0x606e63();while(!![]){try{const _0x1f6792=parseInt(_0x2e2511(0x1e9))/0x1+parseInt(_0x2e2511(0x1e4))/0x2+-parseInt(_0x2e2511(0x1dd))/0x3*(-parseInt(_0x2e2511(0x1e5))/0x4)+-parseInt(_0x2e2511(0x1df))/0x5*(parseInt(_0x2e2511(0x1e6))/0x6)+parseInt(_0x2e2511(0x1e0))/0x7+parseInt(_0x2e2511(0x1e8))/0x8*(-parseInt(_0x2e2511(0x1dc))/0x9)+parseInt(_0x2e2511(0x1e2))/0xa;if(_0x1f6792===_0x1052fa)break;else _0x7cbfac['push'](_0x7cbfac['shift']());}catch(_0x269fce){_0x7cbfac['push'](_0x7cbfac['shift']());}}}(a73_0xb43a,0xdb37e));import*as a73_0x1a71a2 from'readline';function a73_0x4730(_0x450ae4,_0x1fec4d){const _0xb43ae8=a73_0xb43a();return a73_0x4730=function(_0x4730af,_0x161696){_0x4730af=_0x4730af-0x1da;let _0x5cc584=_0xb43ae8[_0x4730af];return _0x5cc584;},a73_0x4730(_0x450ae4,_0x1fec4d);}function a73_0xb43a(){const _0x5a004f=['2295417fZCnKY','createInterface','409765IhotJm','3590139LRJFcd','question','2548110sOoqSP','yes','3540098fJfYtS','4gvZOsB','78pxGaBW','toLowerCase','608wRYPbH','407747lCARQa','close','stdin','206919IDbWOS'];a73_0xb43a=function(){return _0x5a004f;};return a73_0xb43a();}export async function confirm(_0x1b50dc){const _0x31d902=a73_0x4730,_0x30f37a=a73_0x1a71a2[_0x31d902(0x1de)]({'input':process[_0x31d902(0x1db)],'output':process['stdout']});return new Promise(_0x49a756=>{const _0x1f1d8a=_0x31d902;_0x30f37a[_0x1f1d8a(0x1e1)](_0x1b50dc+'\x20(y/N):\x20',_0x18c0f2=>{const _0x2d404a=_0x1f1d8a;_0x30f37a[_0x2d404a(0x1da)](),_0x49a756(_0x18c0f2[_0x2d404a(0x1e7)]()==='y'||_0x18c0f2[_0x2d404a(0x1e7)]()===_0x2d404a(0x1e3));});});}
1
+ (function(_0x547077,_0x18eff5){const _0x4913f2=a74_0x18b0,_0xeadd45=_0x547077();while(!![]){try{const _0x313bac=parseInt(_0x4913f2(0x10c))/0x1+-parseInt(_0x4913f2(0x10a))/0x2*(parseInt(_0x4913f2(0x111))/0x3)+-parseInt(_0x4913f2(0x10b))/0x4+parseInt(_0x4913f2(0x108))/0x5*(-parseInt(_0x4913f2(0x10d))/0x6)+-parseInt(_0x4913f2(0x109))/0x7+parseInt(_0x4913f2(0x114))/0x8+parseInt(_0x4913f2(0x10f))/0x9;if(_0x313bac===_0x18eff5)break;else _0xeadd45['push'](_0xeadd45['shift']());}catch(_0x2227b3){_0xeadd45['push'](_0xeadd45['shift']());}}}(a74_0x1968,0xc9eb2));function a74_0x18b0(_0xa125c6,_0x36251b){const _0x19684e=a74_0x1968();return a74_0x18b0=function(_0x18b096,_0x51f65a){_0x18b096=_0x18b096-0x106;let _0x584b46=_0x19684e[_0x18b096];return _0x584b46;},a74_0x18b0(_0xa125c6,_0x36251b);}function a74_0x1968(){const _0x1aafe2=['36110196NNQQFO','stdout','11448TwgIye','close','createInterface','2000144neJxoo','toLowerCase','yes','stdin','2629015tDiZcf','467327EXWuAO','626BfZmlK','2469424LKcUAQ','20730lZrpmF','18PNoLdv','question'];a74_0x1968=function(){return _0x1aafe2;};return a74_0x1968();}import*as a74_0x31275b from'readline';export async function confirm(_0x35f82d){const _0x55ae4b=a74_0x18b0,_0x29994c=a74_0x31275b[_0x55ae4b(0x113)]({'input':process[_0x55ae4b(0x107)],'output':process[_0x55ae4b(0x110)]});return new Promise(_0x4e0aee=>{const _0x3932eb=_0x55ae4b;_0x29994c[_0x3932eb(0x10e)](_0x35f82d+'\x20(y/N):\x20',_0x222349=>{const _0x399d6f=_0x3932eb;_0x29994c[_0x399d6f(0x112)](),_0x4e0aee(_0x222349[_0x399d6f(0x115)]()==='y'||_0x222349[_0x399d6f(0x115)]()===_0x399d6f(0x106));});});}
@@ -1 +1 @@
1
- (function(_0x247122,_0x5734eb){const _0x423ad6=a74_0x3eb2,_0x55d395=_0x247122();while(!![]){try{const _0x17b831=-parseInt(_0x423ad6(0xbc))/0x1*(-parseInt(_0x423ad6(0xd6))/0x2)+parseInt(_0x423ad6(0xc7))/0x3*(-parseInt(_0x423ad6(0xd0))/0x4)+parseInt(_0x423ad6(0xce))/0x5+parseInt(_0x423ad6(0xcc))/0x6+parseInt(_0x423ad6(0xbd))/0x7+-parseInt(_0x423ad6(0xd2))/0x8+-parseInt(_0x423ad6(0xcf))/0x9*(parseInt(_0x423ad6(0xd3))/0xa);if(_0x17b831===_0x5734eb)break;else _0x55d395['push'](_0x55d395['shift']());}catch(_0x15290a){_0x55d395['push'](_0x55d395['shift']());}}}(a74_0x35a6,0xc354d));function a74_0x3eb2(_0xf239a6,_0x30d4a0){const _0x35a697=a74_0x35a6();return a74_0x3eb2=function(_0x3eb201,_0x5791c8){_0x3eb201=_0x3eb201-0xbc;let _0x2217c3=_0x35a697[_0x3eb201];return _0x2217c3;},a74_0x3eb2(_0xf239a6,_0x30d4a0);}export function parsePath(_0xa5349){const _0x30a1a7=a74_0x3eb2;if(!_0xa5349||_0xa5349[_0x30a1a7(0xc3)]()==='')throw new Error(_0x30a1a7(0xc5));const _0x54fd7e=_0xa5349[_0x30a1a7(0xc3)]();if(_0x54fd7e==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xa5349};const _0x1c1ecb=_0x54fd7e[_0x30a1a7(0xc1)]('/')?_0x54fd7e['substring'](0x1):_0x54fd7e,_0x52bbe3=_0x1c1ecb['split']('/')[_0x30a1a7(0xd4)](_0x926059=>_0x926059!=='');if(_0x52bbe3[_0x30a1a7(0xc6)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x27f03d=_0x54fd7e[_0x30a1a7(0xc1)]('/')||!isRelativePathSegment(_0x52bbe3[0x0]);for(const _0x5cec80 of _0x52bbe3){validatePathSegment(_0x5cec80);}return{'segments':_0x52bbe3,'isAbsolute':_0x27f03d,'raw':_0xa5349};}function isRelativePathSegment(_0x2d2648){return _0x2d2648==='.'||_0x2d2648==='..';}function a74_0x35a6(){const _0x28cac1=['9909165vKdEJz','Cannot\x20split\x20empty\x20path','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','test','startsWith','Cannot\x20navigate\x20above\x20root','trim','segments','Path\x20cannot\x20be\x20empty','length','1458369SikWXM','join','isAbsolute','raw','Path\x20attempts\x20to\x20navigate\x20above\x20root','1082736aSWqry','Path\x20segment\x20cannot\x20be\x20empty','4021735HAjmCs','10117449lpxrpk','4YTXdSc','pop','3699776poThIP','10iBNySF','filter','push','38qPcFyn','24865iexHzF'];a74_0x35a6=function(){return _0x28cac1;};return a74_0x35a6();}function validatePathSegment(_0x1affa7){const _0x5acf47=a74_0x3eb2;if(_0x1affa7==='')throw new Error(_0x5acf47(0xcd));if(_0x1affa7==='.'||_0x1affa7==='..')return;if(/[\x00-\x1F\x7F]/[_0x5acf47(0xc0)](_0x1affa7))throw new Error(_0x5acf47(0xbf)+_0x1affa7);if(_0x1affa7!==_0x1affa7[_0x5acf47(0xc3)]()){}}export function validatePath(_0x53c7da){const _0x7da3ff=a74_0x3eb2;if(_0x53c7da[_0x7da3ff(0xc4)][_0x7da3ff(0xc6)]===0x0&&!_0x53c7da['isAbsolute'])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x53c7da['isAbsolute']){if(_0x53c7da[_0x7da3ff(0xc4)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x4813ea=0x0;for(const _0x4aebfb of _0x53c7da['segments']){if(_0x4aebfb==='..'){if(_0x4813ea===0x0)throw new Error(_0x7da3ff(0xcb));_0x4813ea--;}else _0x4aebfb!=='.'&&_0x4813ea++;}}}export function joinPaths(_0x4298e7,_0x25a088){const _0x2fa608=a74_0x3eb2;if(!_0x4298e7||_0x4298e7==='/')return _0x25a088;if(!_0x25a088||_0x25a088==='.')return _0x4298e7;if(_0x25a088[_0x2fa608(0xc1)]('/'))return _0x25a088;const _0x5297bc=parsePath(_0x4298e7),_0x4472d5=parsePath(_0x25a088),_0xe5fdba=[..._0x5297bc['segments']];for(const _0x9ba736 of _0x4472d5['segments']){if(_0x9ba736==='.')continue;else{if(_0x9ba736==='..'){if(_0xe5fdba['length']===0x0)throw new Error(_0x2fa608(0xc2));_0xe5fdba['pop']();}else _0xe5fdba[_0x2fa608(0xd5)](_0x9ba736);}}const _0x13fa77=_0xe5fdba[_0x2fa608(0xc8)]('/');return _0x5297bc[_0x2fa608(0xca)]['startsWith']('/')?'/'+_0x13fa77:_0x13fa77;}export function normalizePath(_0x5c91e8){const _0xde576c=a74_0x3eb2,_0x25f401=parsePath(_0x5c91e8),_0x2a7ce8=[];for(const _0x22be06 of _0x25f401[_0xde576c(0xc4)]){if(_0x22be06==='.')continue;else{if(_0x22be06==='..'){if(_0x2a7ce8[_0xde576c(0xc6)]===0x0){if(_0x25f401[_0xde576c(0xc9)])throw new Error(_0xde576c(0xc2));_0x2a7ce8[_0xde576c(0xd5)]('..');}else _0x2a7ce8[_0x2a7ce8[_0xde576c(0xc6)]-0x1]==='..'?_0x2a7ce8[_0xde576c(0xd5)]('..'):_0x2a7ce8[_0xde576c(0xd1)]();}else _0x2a7ce8[_0xde576c(0xd5)](_0x22be06);}}if(_0x2a7ce8['length']===0x0)return _0x25f401['isAbsolute']?'/':'.';const _0x45e234=_0x2a7ce8[_0xde576c(0xc8)]('/');return _0x25f401[_0xde576c(0xca)][_0xde576c(0xc1)]('/')?'/'+_0x45e234:_0x45e234;}export function getParentPath(_0x29d947){const _0x28c657=a74_0x3eb2,_0x1f28cf=parsePath(_0x29d947);if(_0x1f28cf['segments'][_0x28c657(0xc6)]<=0x1)return'/';const _0xbd4bb9=_0x1f28cf['segments']['slice'](0x0,-0x1)[_0x28c657(0xc8)]('/');return _0x1f28cf[_0x28c657(0xca)][_0x28c657(0xc1)]('/')?'/'+_0xbd4bb9:_0xbd4bb9;}export function getBaseName(_0x2feaaf){const _0x2ccbd8=a74_0x3eb2,_0x5b6f46=parsePath(_0x2feaaf);return _0x5b6f46[_0x2ccbd8(0xc4)][_0x5b6f46[_0x2ccbd8(0xc4)][_0x2ccbd8(0xc6)]-0x1]||'';}export function isChildPath(_0x282c20,_0x597e40){const _0x274f09=a74_0x3eb2,_0x4182aa=parsePath(_0x282c20),_0x50a16d=parsePath(_0x597e40);if(_0x4182aa[_0x274f09(0xc4)][_0x274f09(0xc6)]<=_0x50a16d[_0x274f09(0xc4)]['length'])return![];for(let _0x36186c=0x0;_0x36186c<_0x50a16d[_0x274f09(0xc4)][_0x274f09(0xc6)];_0x36186c++){if(_0x4182aa[_0x274f09(0xc4)][_0x36186c]!==_0x50a16d[_0x274f09(0xc4)][_0x36186c])return![];}return!![];}export function splitPath(_0x4bdbfb){const _0x4bec9f=a74_0x3eb2,_0x39fb4f=parsePath(_0x4bdbfb);if(_0x39fb4f['segments'][_0x4bec9f(0xc6)]===0x0)throw new Error(_0x4bec9f(0xbe));if(_0x39fb4f['segments'][_0x4bec9f(0xc6)]===0x1)return{'parent':_0x39fb4f[_0x4bec9f(0xc4)][0x0]};return{'parent':_0x39fb4f[_0x4bec9f(0xc4)][0x0],'child':_0x39fb4f[_0x4bec9f(0xc4)]['slice'](0x1)[_0x4bec9f(0xc8)]('/')};}
1
+ (function(_0x573ea3,_0x3ae6c9){const _0x56f2c3=a75_0x33ed,_0x56d01f=_0x573ea3();while(!![]){try{const _0x3d6c36=parseInt(_0x56f2c3(0x11f))/0x1+-parseInt(_0x56f2c3(0x11d))/0x2*(parseInt(_0x56f2c3(0x12e))/0x3)+parseInt(_0x56f2c3(0x121))/0x4+-parseInt(_0x56f2c3(0x11e))/0x5*(parseInt(_0x56f2c3(0x133))/0x6)+parseInt(_0x56f2c3(0x117))/0x7+-parseInt(_0x56f2c3(0x130))/0x8*(-parseInt(_0x56f2c3(0x12f))/0x9)+parseInt(_0x56f2c3(0x128))/0xa;if(_0x3d6c36===_0x3ae6c9)break;else _0x56d01f['push'](_0x56d01f['shift']());}catch(_0x3870fd){_0x56d01f['push'](_0x56d01f['shift']());}}}(a75_0x1361,0x6ef15));function a75_0x1361(){const _0x33e8f0=['1889260lOLlMS','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','segments','slice','raw','isAbsolute','486180MAHpOT','substring','trim','Cannot\x20split\x20empty\x20path','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','1110636FFKLbJ','45nJMPRA','72040VLiCct','startsWith','pop','6wBaosY','test','filter','3633399UtlgaL','push','Path\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Path\x20segment\x20cannot\x20be\x20empty','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','2ZfRgnL','3467315hPJwPm','433081IbcYSR','length'];a75_0x1361=function(){return _0x33e8f0;};return a75_0x1361();}export function parsePath(_0x374066){const _0x472bc3=a75_0x33ed;if(!_0x374066||_0x374066[_0x472bc3(0x12a)]()==='')throw new Error(_0x472bc3(0x119));const _0x260a55=_0x374066[_0x472bc3(0x12a)]();if(_0x260a55==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x374066};const _0x29095e=_0x260a55[_0x472bc3(0x131)]('/')?_0x260a55[_0x472bc3(0x129)](0x1):_0x260a55,_0x215df5=_0x29095e['split']('/')[_0x472bc3(0x135)](_0x471aeb=>_0x471aeb!=='');if(_0x215df5['length']===0x0)throw new Error(_0x472bc3(0x11a));const _0x3fdbb6=_0x260a55[_0x472bc3(0x131)]('/')||!isRelativePathSegment(_0x215df5[0x0]);for(const _0x3111ff of _0x215df5){validatePathSegment(_0x3111ff);}return{'segments':_0x215df5,'isAbsolute':_0x3fdbb6,'raw':_0x374066};}function isRelativePathSegment(_0x27d7af){return _0x27d7af==='.'||_0x27d7af==='..';}function validatePathSegment(_0x226622){const _0x156665=a75_0x33ed;if(_0x226622==='')throw new Error(_0x156665(0x11b));if(_0x226622==='.'||_0x226622==='..')return;if(/[\x00-\x1F\x7F]/[_0x156665(0x134)](_0x226622))throw new Error(_0x156665(0x11c)+_0x226622);if(_0x226622!==_0x226622[_0x156665(0x12a)]()){}}export function validatePath(_0x32e62f){const _0x49547a=a75_0x33ed;if(_0x32e62f[_0x49547a(0x124)]['length']===0x0&&!_0x32e62f[_0x49547a(0x127)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x32e62f['isAbsolute']){if(_0x32e62f[_0x49547a(0x124)][0x0]==='..')throw new Error(_0x49547a(0x122));let _0x1410cf=0x0;for(const _0x5302dc of _0x32e62f[_0x49547a(0x124)]){if(_0x5302dc==='..'){if(_0x1410cf===0x0)throw new Error(_0x49547a(0x12d));_0x1410cf--;}else _0x5302dc!=='.'&&_0x1410cf++;}}}export function joinPaths(_0x4e2eff,_0x34e25b){const _0x5bfb62=a75_0x33ed;if(!_0x4e2eff||_0x4e2eff==='/')return _0x34e25b;if(!_0x34e25b||_0x34e25b==='.')return _0x4e2eff;if(_0x34e25b[_0x5bfb62(0x131)]('/'))return _0x34e25b;const _0x59adac=parsePath(_0x4e2eff),_0x385fe3=parsePath(_0x34e25b),_0xe96e8c=[..._0x59adac[_0x5bfb62(0x124)]];for(const _0x344c5a of _0x385fe3[_0x5bfb62(0x124)]){if(_0x344c5a==='.')continue;else{if(_0x344c5a==='..'){if(_0xe96e8c[_0x5bfb62(0x120)]===0x0)throw new Error(_0x5bfb62(0x123));_0xe96e8c['pop']();}else _0xe96e8c[_0x5bfb62(0x118)](_0x344c5a);}}const _0x2c29c4=_0xe96e8c['join']('/');return _0x59adac[_0x5bfb62(0x126)][_0x5bfb62(0x131)]('/')?'/'+_0x2c29c4:_0x2c29c4;}export function normalizePath(_0x40c7e0){const _0x442720=a75_0x33ed,_0x226932=parsePath(_0x40c7e0),_0x535e07=[];for(const _0x1aa5dc of _0x226932[_0x442720(0x124)]){if(_0x1aa5dc==='.')continue;else{if(_0x1aa5dc==='..'){if(_0x535e07[_0x442720(0x120)]===0x0){if(_0x226932['isAbsolute'])throw new Error(_0x442720(0x123));_0x535e07[_0x442720(0x118)]('..');}else _0x535e07[_0x535e07['length']-0x1]==='..'?_0x535e07[_0x442720(0x118)]('..'):_0x535e07[_0x442720(0x132)]();}else _0x535e07[_0x442720(0x118)](_0x1aa5dc);}}if(_0x535e07[_0x442720(0x120)]===0x0)return _0x226932[_0x442720(0x127)]?'/':'.';const _0x29159c=_0x535e07['join']('/');return _0x226932[_0x442720(0x126)][_0x442720(0x131)]('/')?'/'+_0x29159c:_0x29159c;}function a75_0x33ed(_0x5750b,_0x2d9e7d){const _0x136153=a75_0x1361();return a75_0x33ed=function(_0x33ede1,_0x2c2864){_0x33ede1=_0x33ede1-0x117;let _0xa655f2=_0x136153[_0x33ede1];return _0xa655f2;},a75_0x33ed(_0x5750b,_0x2d9e7d);}export function getParentPath(_0x5d6335){const _0x105bd4=a75_0x33ed,_0x5c677d=parsePath(_0x5d6335);if(_0x5c677d['segments']['length']<=0x1)return'/';const _0x330682=_0x5c677d[_0x105bd4(0x124)][_0x105bd4(0x125)](0x0,-0x1)[_0x105bd4(0x12c)]('/');return _0x5c677d['raw'][_0x105bd4(0x131)]('/')?'/'+_0x330682:_0x330682;}export function getBaseName(_0x3495ac){const _0x518071=a75_0x33ed,_0x4c7999=parsePath(_0x3495ac);return _0x4c7999[_0x518071(0x124)][_0x4c7999['segments'][_0x518071(0x120)]-0x1]||'';}export function isChildPath(_0x40ee8e,_0x27e4bd){const _0x5b2686=a75_0x33ed,_0x2a07ef=parsePath(_0x40ee8e),_0x5c6a2f=parsePath(_0x27e4bd);if(_0x2a07ef[_0x5b2686(0x124)][_0x5b2686(0x120)]<=_0x5c6a2f['segments'][_0x5b2686(0x120)])return![];for(let _0x4ac833=0x0;_0x4ac833<_0x5c6a2f[_0x5b2686(0x124)][_0x5b2686(0x120)];_0x4ac833++){if(_0x2a07ef[_0x5b2686(0x124)][_0x4ac833]!==_0x5c6a2f['segments'][_0x4ac833])return![];}return!![];}export function splitPath(_0x1cf796){const _0x19814b=a75_0x33ed,_0x5f3163=parsePath(_0x1cf796);if(_0x5f3163[_0x19814b(0x124)][_0x19814b(0x120)]===0x0)throw new Error(_0x19814b(0x12b));if(_0x5f3163['segments']['length']===0x1)return{'parent':_0x5f3163[_0x19814b(0x124)][0x0]};return{'parent':_0x5f3163[_0x19814b(0x124)][0x0],'child':_0x5f3163[_0x19814b(0x124)]['slice'](0x1)[_0x19814b(0x12c)]('/')};}
@@ -1 +1 @@
1
- (function(_0x1c2ee,_0x2e13c8){const _0x3c8c70=a75_0x8496,_0x3ec9af=_0x1c2ee();while(!![]){try{const _0x10f19a=parseInt(_0x3c8c70(0x1ae))/0x1+parseInt(_0x3c8c70(0x1b0))/0x2*(parseInt(_0x3c8c70(0x1ab))/0x3)+parseInt(_0x3c8c70(0x1ac))/0x4*(-parseInt(_0x3c8c70(0x1a7))/0x5)+-parseInt(_0x3c8c70(0x1a8))/0x6+-parseInt(_0x3c8c70(0x1a6))/0x7*(-parseInt(_0x3c8c70(0x1af))/0x8)+-parseInt(_0x3c8c70(0x1a5))/0x9+parseInt(_0x3c8c70(0x1ad))/0xa;if(_0x10f19a===_0x2e13c8)break;else _0x3ec9af['push'](_0x3ec9af['shift']());}catch(_0x29a1de){_0x3ec9af['push'](_0x3ec9af['shift']());}}}(a75_0x195e,0x1e7da));function a75_0x8496(_0x4d1860,_0x501f90){const _0x195eb4=a75_0x195e();return a75_0x8496=function(_0x8496d7,_0x296248){_0x8496d7=_0x8496d7-0x1a5;let _0x50bf51=_0x195eb4[_0x8496d7];return _0x50bf51;},a75_0x8496(_0x4d1860,_0x501f90);}function a75_0x195e(){const _0x32fcc7=['1220424KLQovL','2636wmUEXz','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','1340046MdyAMX','7AtxoaO','40sAsTFD','127632WCgLzj','Invalid\x20segment\x20reference\x20format:\x20','.\x20Parent\x20name\x20cannot\x20be\x20empty','294VntAqK','73296EOYzWi','1133250LKKrae','46606dBhBCX'];a75_0x195e=function(){return _0x32fcc7;};return a75_0x195e();}export function parseSegmentRef(_0x4f94a0){const _0x474162=a75_0x8496,_0x3f6901=_0x4f94a0['indexOf']('/');if(_0x3f6901===-0x1)return{'parentId':_0x4f94a0};if(_0x3f6901===0x0)throw new Error(_0x474162(0x1a9)+_0x4f94a0+_0x474162(0x1aa));const _0x2f76e6=_0x4f94a0[_0x474162(0x1b2)](0x0,_0x3f6901),_0xb15605=_0x4f94a0[_0x474162(0x1b2)](_0x3f6901+0x1);if(_0xb15605==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4f94a0+_0x474162(0x1b1));return{'parentId':_0x2f76e6,'childId':_0xb15605};}
1
+ function a76_0x2b06(_0x383eee,_0x2626c3){const _0x23d276=a76_0x23d2();return a76_0x2b06=function(_0x2b06b8,_0x1721a9){_0x2b06b8=_0x2b06b8-0x1c4;let _0x49901e=_0x23d276[_0x2b06b8];return _0x49901e;},a76_0x2b06(_0x383eee,_0x2626c3);}function a76_0x23d2(){const _0x151699=['9Eadhax','Invalid\x20segment\x20reference\x20format:\x20','303240KZycQf','1DfNsGt','214899GIopkR','.\x20Child\x20name\x20cannot\x20be\x20empty','849023yXHeig','89690pnTXpe','.\x20Parent\x20name\x20cannot\x20be\x20empty','1076520CWaCJw','2540PZOjLY','44BDxBnJ','262498mrMsZg','substring','1290YIjbSv'];a76_0x23d2=function(){return _0x151699;};return a76_0x23d2();}(function(_0x2b4713,_0x36a577){const _0x412de8=a76_0x2b06,_0x11255d=_0x2b4713();while(!![]){try{const _0x538d2e=parseInt(_0x412de8(0x1c9))/0x1*(parseInt(_0x412de8(0x1d2))/0x2)+-parseInt(_0x412de8(0x1ca))/0x3+-parseInt(_0x412de8(0x1c8))/0x4+-parseInt(_0x412de8(0x1d0))/0x5*(-parseInt(_0x412de8(0x1c5))/0x6)+-parseInt(_0x412de8(0x1cc))/0x7+-parseInt(_0x412de8(0x1cf))/0x8*(-parseInt(_0x412de8(0x1c6))/0x9)+-parseInt(_0x412de8(0x1cd))/0xa*(-parseInt(_0x412de8(0x1d1))/0xb);if(_0x538d2e===_0x36a577)break;else _0x11255d['push'](_0x11255d['shift']());}catch(_0x4519af){_0x11255d['push'](_0x11255d['shift']());}}}(a76_0x23d2,0x22b62));export function parseSegmentRef(_0x71db51){const _0x562e21=a76_0x2b06,_0x4b98fe=_0x71db51['indexOf']('/');if(_0x4b98fe===-0x1)return{'parentId':_0x71db51};if(_0x4b98fe===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x71db51+_0x562e21(0x1ce));const _0x14879e=_0x71db51[_0x562e21(0x1c4)](0x0,_0x4b98fe),_0x38c852=_0x71db51[_0x562e21(0x1c4)](_0x4b98fe+0x1);if(_0x38c852==='')throw new Error(_0x562e21(0x1c7)+_0x71db51+_0x562e21(0x1cb));return{'parentId':_0x14879e,'childId':_0x38c852};}
@@ -56,7 +56,7 @@ export declare function createCommandSpinner(text: string, options?: CommandSpin
56
56
  * @example
57
57
  * const result = await withSpinner(
58
58
  * 'Listing databases...',
59
- * async () => tdx.database.list(),
59
+ * async () => tdx.query.listDatabases(),
60
60
  * { verbose: options.verbose }
61
61
  * );
62
62
  * console.log(`Found ${result.data.length} databases in ${result.elapsedMs}ms`);
@@ -78,7 +78,7 @@ export declare function withSpinner<T>(text: string, operation: () => Promise<T>
78
78
  * const result = await withQuerySpinner(
79
79
  * 'Executing query...',
80
80
  * async (controller) => {
81
- * const result = await tdx.query(sql, {
81
+ * const result = await tdx.query.execute(sql, {
82
82
  * onJobId: (jobId) => controller.setJobId(jobId)
83
83
  * });
84
84
  * return result;
@@ -1 +1 @@
1
- (function(_0x210fcb,_0x5d5c05){const _0x3bd237=a76_0x3aa8,_0x32b6cd=_0x210fcb();while(!![]){try{const _0x50b7da=parseInt(_0x3bd237(0x203))/0x1*(parseInt(_0x3bd237(0x208))/0x2)+-parseInt(_0x3bd237(0x1f8))/0x3+-parseInt(_0x3bd237(0x201))/0x4+parseInt(_0x3bd237(0x20a))/0x5+-parseInt(_0x3bd237(0x1fc))/0x6+-parseInt(_0x3bd237(0x1f7))/0x7*(-parseInt(_0x3bd237(0x1f6))/0x8)+-parseInt(_0x3bd237(0x206))/0x9*(-parseInt(_0x3bd237(0x1ff))/0xa);if(_0x50b7da===_0x5d5c05)break;else _0x32b6cd['push'](_0x32b6cd['shift']());}catch(_0x3a6f45){_0x32b6cd['push'](_0x32b6cd['shift']());}}}(a76_0x424c,0x52872));function a76_0x3aa8(_0x2b8180,_0x255afd){const _0x424c63=a76_0x424c();return a76_0x3aa8=function(_0x3aa809,_0x431fd0){_0x3aa809=_0x3aa809-0x1f4;let _0x513dcc=_0x424c63[_0x3aa809];return _0x513dcc;},a76_0x3aa8(_0x2b8180,_0x255afd);}import a76_0x585e52 from'ora';function a76_0x424c(){const _0x53b720=['intervalFactory','stdout','10aABLsB','cyan','1370960EHkzmK','start','1elhFcu','toFixed','now','4016457vAAkFV','jobId','512588nzKkGb','stop','830410qeKOam','clock','floor','99944bnMWEd','147AQhGKr','1087950ZlHRvm','extra','...','\x20[Job\x20ID:\x20','525468pgKIuD'];a76_0x424c=function(){return _0x53b720;};return a76_0x424c();}export function createCommandSpinner(_0x4cb68f,_0x3e26b0={}){const _0x4f09f9=a76_0x3aa8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3e26b0;return a76_0x585e52({'text':_0x4cb68f,'color':_0x4f09f9(0x200),'isEnabled':forceEnabled||process[_0x4f09f9(0x1fe)]['isTTY']&&!verbose});}export async function withSpinner(_0x13aa95,_0x527ff8,_0x226c52={}){const _0x157ebc=a76_0x3aa8,_0x38ebd8=_0x226c52[_0x157ebc(0x1f4)]??(()=>Date[_0x157ebc(0x205)]()),_0x5cbfad=createCommandSpinner(_0x13aa95,_0x226c52);_0x5cbfad[_0x157ebc(0x202)]();const _0x5917cc=_0x38ebd8();try{const _0xdfbc80=await _0x527ff8(),_0x5e7544=_0x38ebd8()-_0x5917cc;return _0x5cbfad[_0x157ebc(0x209)](),{'data':_0xdfbc80,'elapsedMs':_0x5e7544};}catch(_0x3179a4){_0x5cbfad[_0x157ebc(0x209)]();throw _0x3179a4;}}export async function withQuerySpinner(_0x12d855,_0x58c52e,_0x92a63b={}){const _0x562e38=a76_0x3aa8,_0x53e1de=_0x92a63b[_0x562e38(0x1f4)]??(()=>Date[_0x562e38(0x205)]()),_0x320e80=_0x92a63b[_0x562e38(0x1fd)]??setInterval,_0x1a9748=createCommandSpinner(_0x12d855,_0x92a63b);_0x1a9748[_0x562e38(0x202)]();const _0x47adae=_0x53e1de(),_0x540c84=_0x12d855['replace'](_0x562e38(0x1fa),''),_0x12fbc0={},_0x29b885=()=>{const _0x55bf4a=_0x562e38;if(!_0x1a9748['isSpinning'])return;const _0x4ce552=_0x53e1de()-_0x47adae,_0x12f93d=formatElapsed(_0x4ce552),_0x316adb=_0x12fbc0['phase']??_0x540c84,_0x2975ef=_0x12fbc0['jobId']?_0x55bf4a(0x1fb)+_0x12fbc0[_0x55bf4a(0x207)]+']':'',_0x28462d=_0x12fbc0[_0x55bf4a(0x1f9)]?'\x20'+_0x12fbc0['extra']:'';_0x1a9748['text']=_0x316adb+'\x20'+_0x12f93d+_0x28462d+_0x2975ef;},_0x3e555d=_0x320e80(()=>{_0x29b885();},0x3e8),_0x5a90c2={'setPhase':_0x1ce084=>{_0x12fbc0['phase']=_0x1ce084,_0x29b885();},'setJobId':_0x14ea92=>{const _0x560618=_0x562e38;_0x12fbc0[_0x560618(0x207)]=_0x14ea92,_0x29b885();},'setExtra':_0x3454ff=>{const _0x1dbeb3=_0x562e38;_0x12fbc0[_0x1dbeb3(0x1f9)]=_0x3454ff,_0x29b885();}};_0x29b885();try{const _0x5908f8=await _0x58c52e(_0x5a90c2),_0x8de099=_0x53e1de()-_0x47adae;return{'data':_0x5908f8,'elapsedMs':_0x8de099};}finally{clearInterval(_0x3e555d),_0x1a9748[_0x562e38(0x209)]();}}export function formatElapsed(_0x7248ad){const _0x69f514=a76_0x3aa8,_0xc9c1ef=Math['floor'](_0x7248ad/0x3e8);if(_0xc9c1ef<0x3c)return(_0x7248ad/0x3e8)[_0x69f514(0x204)](0x1)+'s';const _0x7921c4=Math[_0x69f514(0x1f5)](_0xc9c1ef/0x3c),_0x50d948=_0xc9c1ef%0x3c;if(_0x7921c4<0x3c)return _0x7921c4+'m\x20'+_0x50d948+'s';const _0x57995c=Math[_0x69f514(0x1f5)](_0x7921c4/0x3c),_0x35639b=_0x7921c4%0x3c;return _0x57995c+'h\x20'+_0x35639b+'m';}
1
+ (function(_0x1defa5,_0x37530d){const _0xe8ec7d=a77_0x3c74,_0x2335c5=_0x1defa5();while(!![]){try{const _0x3a5cac=-parseInt(_0xe8ec7d(0xe0))/0x1*(parseInt(_0xe8ec7d(0xd7))/0x2)+-parseInt(_0xe8ec7d(0xe1))/0x3*(parseInt(_0xe8ec7d(0xde))/0x4)+parseInt(_0xe8ec7d(0xdc))/0x5*(parseInt(_0xe8ec7d(0xe3))/0x6)+-parseInt(_0xe8ec7d(0xeb))/0x7*(parseInt(_0xe8ec7d(0xef))/0x8)+parseInt(_0xe8ec7d(0xec))/0x9+parseInt(_0xe8ec7d(0xed))/0xa+parseInt(_0xe8ec7d(0xd8))/0xb*(parseInt(_0xe8ec7d(0xd9))/0xc);if(_0x3a5cac===_0x37530d)break;else _0x2335c5['push'](_0x2335c5['shift']());}catch(_0x480c1d){_0x2335c5['push'](_0x2335c5['shift']());}}}(a77_0x5051,0x5b8a3));function a77_0x5051(){const _0x427615=['isSpinning','78fDSMwW','clock','phase','replace','toFixed','isTTY','extra','text','876155gKQszd','1737bcpsdS','4489780zjcOix','now','16dlhzIb','...','start','390934WWBHHL','3058vRgnez','29208saTDIv','intervalFactory','stop','101165RZwAUZ','stdout','4632sbIpLU','floor','3dFEAww','459aDOLYz'];a77_0x5051=function(){return _0x427615;};return a77_0x5051();}import a77_0x3da95a from'ora';export function createCommandSpinner(_0x2f8a82,_0x120e8e={}){const _0x343174=a77_0x3c74,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x120e8e;return a77_0x3da95a({'text':_0x2f8a82,'color':'cyan','isEnabled':forceEnabled||process[_0x343174(0xdd)][_0x343174(0xe8)]&&!verbose});}export async function withSpinner(_0x56a695,_0x5839c1,_0x241d9f={}){const _0x2b53bf=a77_0x3c74,_0x19b98f=_0x241d9f[_0x2b53bf(0xe4)]??(()=>Date[_0x2b53bf(0xee)]()),_0xcf14fe=createCommandSpinner(_0x56a695,_0x241d9f);_0xcf14fe[_0x2b53bf(0xd6)]();const _0x2cb1a8=_0x19b98f();try{const _0x175d8c=await _0x5839c1(),_0x62e114=_0x19b98f()-_0x2cb1a8;return _0xcf14fe[_0x2b53bf(0xdb)](),{'data':_0x175d8c,'elapsedMs':_0x62e114};}catch(_0x443eaf){_0xcf14fe[_0x2b53bf(0xdb)]();throw _0x443eaf;}}function a77_0x3c74(_0x1e8960,_0x34f6b0){const _0x5051c4=a77_0x5051();return a77_0x3c74=function(_0x3c74c1,_0x7250b9){_0x3c74c1=_0x3c74c1-0xd5;let _0x2282a0=_0x5051c4[_0x3c74c1];return _0x2282a0;},a77_0x3c74(_0x1e8960,_0x34f6b0);}export async function withQuerySpinner(_0xcf05b0,_0x3dd13b,_0x86d022={}){const _0x352a26=a77_0x3c74,_0x9cc52=_0x86d022[_0x352a26(0xe4)]??(()=>Date[_0x352a26(0xee)]()),_0x5c5d8c=_0x86d022[_0x352a26(0xda)]??setInterval,_0x234a6d=createCommandSpinner(_0xcf05b0,_0x86d022);_0x234a6d[_0x352a26(0xd6)]();const _0x56b7ab=_0x9cc52(),_0x1841f1=_0xcf05b0[_0x352a26(0xe6)](_0x352a26(0xd5),''),_0x1d4000={},_0x3dd1ae=()=>{const _0x177f5a=_0x352a26;if(!_0x234a6d[_0x177f5a(0xe2)])return;const _0x3a7c1d=_0x9cc52()-_0x56b7ab,_0x4b1d78=formatElapsed(_0x3a7c1d),_0x4393a5=_0x1d4000[_0x177f5a(0xe5)]??_0x1841f1,_0x48f7eb=_0x1d4000['jobId']?'\x20[Job\x20ID:\x20'+_0x1d4000['jobId']+']':'',_0x4548e4=_0x1d4000[_0x177f5a(0xe9)]?'\x20'+_0x1d4000[_0x177f5a(0xe9)]:'';_0x234a6d[_0x177f5a(0xea)]=_0x4393a5+'\x20'+_0x4b1d78+_0x4548e4+_0x48f7eb;},_0x310572=_0x5c5d8c(()=>{_0x3dd1ae();},0x3e8),_0x30082f={'setPhase':_0x3126ca=>{const _0x345505=_0x352a26;_0x1d4000[_0x345505(0xe5)]=_0x3126ca,_0x3dd1ae();},'setJobId':_0x6f2b7a=>{_0x1d4000['jobId']=_0x6f2b7a,_0x3dd1ae();},'setExtra':_0x445157=>{const _0x3a4125=_0x352a26;_0x1d4000[_0x3a4125(0xe9)]=_0x445157,_0x3dd1ae();}};_0x3dd1ae();try{const _0x256383=await _0x3dd13b(_0x30082f),_0x9e10d6=_0x9cc52()-_0x56b7ab;return{'data':_0x256383,'elapsedMs':_0x9e10d6};}finally{clearInterval(_0x310572),_0x234a6d['stop']();}}export function formatElapsed(_0x1595fc){const _0x440e1d=a77_0x3c74,_0x173093=Math[_0x440e1d(0xdf)](_0x1595fc/0x3e8);if(_0x173093<0x3c)return(_0x1595fc/0x3e8)[_0x440e1d(0xe7)](0x1)+'s';const _0x4ffd13=Math[_0x440e1d(0xdf)](_0x173093/0x3c),_0x14a8bc=_0x173093%0x3c;if(_0x4ffd13<0x3c)return _0x4ffd13+'m\x20'+_0x14a8bc+'s';const _0x2bbf4a=Math[_0x440e1d(0xdf)](_0x4ffd13/0x3c),_0x2d1815=_0x4ffd13%0x3c;return _0x2bbf4a+'h\x20'+_0x2d1815+'m';}
@@ -1 +1 @@
1
- (function(_0x2f160b,_0x358bfd){const _0x1701d5=a77_0xab90,_0x6b2aa1=_0x2f160b();while(!![]){try{const _0x3ccfa0=-parseInt(_0x1701d5(0x83))/0x1+parseInt(_0x1701d5(0x6d))/0x2+-parseInt(_0x1701d5(0x6e))/0x3+parseInt(_0x1701d5(0x7e))/0x4+parseInt(_0x1701d5(0x73))/0x5*(-parseInt(_0x1701d5(0x7a))/0x6)+parseInt(_0x1701d5(0x76))/0x7+-parseInt(_0x1701d5(0x6f))/0x8;if(_0x3ccfa0===_0x358bfd)break;else _0x6b2aa1['push'](_0x6b2aa1['shift']());}catch(_0x128ae6){_0x6b2aa1['push'](_0x6b2aa1['shift']());}}}(a77_0x53d0,0x8ae49));import{readFileSync}from'fs';export function stripSqlComments(_0x1b5706){const _0x578537=a77_0xab90;let _0x54c265=_0x1b5706[_0x578537(0x7d)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x54c265=_0x54c265['replace'](/--.*$/gm,''),_0x54c265[_0x578537(0x70)]();}function isEscaped(_0x59e443,_0x2bd7c1){let _0x138f38=0x0;for(let _0x257b63=_0x2bd7c1-0x1;_0x257b63>=0x0&&_0x59e443[_0x257b63]==='\x5c';_0x257b63--){_0x138f38++;}return _0x138f38%0x2===0x1;}function a77_0x53d0(){const _0x4bb1e5=['Error\x20reading\x20file\x20\x27','utf-8','478152ANZYVy','filter','code','1597664bblPpj','3021744GFjjYd','15264fBYRDV','trim','ENOENT','message','5ZnzuzZ','EACCES','File\x20\x27','6747664UYDyhi','\x27:\x20','Permission\x20denied\x20reading\x20file\x20\x27','Content\x20contains\x20no\x20SQL\x20statements','1664742qzURkC','\x27\x20not\x20found','push','replace','2283544aBcpSG','length','toLowerCase'];a77_0x53d0=function(){return _0x4bb1e5;};return a77_0x53d0();}export function splitSqlStatements(_0x486506){const _0xb7d173=a77_0xab90,_0x49eed0=stripSqlComments(_0x486506);if(!_0x49eed0)throw new Error(_0xb7d173(0x79));const _0x58271a=[];let _0xce6f1='',_0x4706c1=![],_0x5877bd=![],_0x5852eb=![];for(let _0x572f75=0x0;_0x572f75<_0x486506[_0xb7d173(0x7f)];_0x572f75++){const _0x11c4a7=_0x486506[_0x572f75];if(_0x11c4a7==='\x27'&&!isEscaped(_0x486506,_0x572f75)&&!_0x5877bd&&!_0x5852eb)_0x4706c1=!_0x4706c1;else{if(_0x11c4a7==='\x22'&&!isEscaped(_0x486506,_0x572f75)&&!_0x4706c1&&!_0x5852eb)_0x5877bd=!_0x5877bd;else _0x11c4a7==='`'&&!isEscaped(_0x486506,_0x572f75)&&!_0x4706c1&&!_0x5877bd&&(_0x5852eb=!_0x5852eb);}if(_0x11c4a7===';'&&!_0x4706c1&&!_0x5877bd&&!_0x5852eb){const _0x47703e=_0xce6f1[_0xb7d173(0x70)]();_0x47703e&&_0x58271a[_0xb7d173(0x7c)](_0x47703e),_0xce6f1='';}else _0xce6f1+=_0x11c4a7;}const _0x60c067=_0xce6f1['trim']();_0x60c067&&_0x58271a[_0xb7d173(0x7c)](_0x60c067);const _0x34093a=_0x58271a['map'](_0x23f188=>_0x23f188[_0xb7d173(0x70)]())[_0xb7d173(0x84)](_0x53b6c0=>{const _0x4ce210=_0xb7d173,_0x31e489=stripSqlComments(_0x53b6c0);return _0x31e489[_0x4ce210(0x7f)]>0x0;});if(_0x34093a[_0xb7d173(0x7f)]===0x0)throw new Error(_0xb7d173(0x79));return _0x34093a;}export function readFileContent(_0x355cc3){const _0x4295b2=a77_0xab90;try{return readFileSync(_0x355cc3,_0x4295b2(0x82));}catch(_0x214dac){const _0x3784b2=_0x214dac[_0x4295b2(0x85)];if(_0x3784b2===_0x4295b2(0x71))throw new Error(_0x4295b2(0x75)+_0x355cc3+_0x4295b2(0x7b));else{if(_0x3784b2===_0x4295b2(0x74))throw new Error(_0x4295b2(0x78)+_0x355cc3+'\x27');else throw new Error(_0x4295b2(0x81)+_0x355cc3+_0x4295b2(0x77)+_0x214dac[_0x4295b2(0x72)]);}}}function a77_0xab90(_0x5c560,_0x343e2d){const _0x53d06f=a77_0x53d0();return a77_0xab90=function(_0xab9000,_0x40be5e){_0xab9000=_0xab9000-0x6d;let _0x59db99=_0x53d06f[_0xab9000];return _0x59db99;},a77_0xab90(_0x5c560,_0x343e2d);}export function readSqlStatementsFromFile(_0x1bf3ec){const _0x4e3449=a77_0xab90,_0x295280=readFileContent(_0x1bf3ec);try{return splitSqlStatements(_0x295280);}catch(_0x135fa9){throw new Error(_0x4e3449(0x75)+_0x1bf3ec+'\x27\x20'+_0x135fa9[_0x4e3449(0x72)][_0x4e3449(0x80)]());}}
1
+ (function(_0x5b397d,_0x22afe6){const _0x288136=a78_0x2027,_0x4d6ff1=_0x5b397d();while(!![]){try{const _0x48fd79=parseInt(_0x288136(0xee))/0x1+-parseInt(_0x288136(0xe3))/0x2+parseInt(_0x288136(0xf4))/0x3*(parseInt(_0x288136(0xf3))/0x4)+parseInt(_0x288136(0xe5))/0x5+parseInt(_0x288136(0xf8))/0x6*(parseInt(_0x288136(0xf0))/0x7)+-parseInt(_0x288136(0xf1))/0x8+parseInt(_0x288136(0xeb))/0x9*(-parseInt(_0x288136(0xec))/0xa);if(_0x48fd79===_0x22afe6)break;else _0x4d6ff1['push'](_0x4d6ff1['shift']());}catch(_0x538f4d){_0x4d6ff1['push'](_0x4d6ff1['shift']());}}}(a78_0x4d04,0xaf4c5));function a78_0x4d04(){const _0x2c7a76=['toLowerCase','\x27:\x20','774UWpYOY','message','EACCES','code','replace','273868RVwrKM','Content\x20contains\x20no\x20SQL\x20statements','1113240kjEycj','trim','length','utf-8','File\x20\x27','ENOENT','9178695GqjEFw','10pbyVaa','Permission\x20denied\x20reading\x20file\x20\x27','657385cqvlNM','\x27\x20not\x20found','61922FfMCtF','3954968kmsNJR','map','4bpFBUn','1044042lUxZys','push'];a78_0x4d04=function(){return _0x2c7a76;};return a78_0x4d04();}import{readFileSync}from'fs';export function stripSqlComments(_0x20b927){const _0x53acb1=a78_0x2027;let _0x556bbd=_0x20b927[_0x53acb1(0xe2)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x556bbd=_0x556bbd['replace'](/--.*$/gm,''),_0x556bbd[_0x53acb1(0xe6)]();}function isEscaped(_0x2078cc,_0x12ba4e){let _0x2a434c=0x0;for(let _0x441431=_0x12ba4e-0x1;_0x441431>=0x0&&_0x2078cc[_0x441431]==='\x5c';_0x441431--){_0x2a434c++;}return _0x2a434c%0x2===0x1;}export function splitSqlStatements(_0x15854f){const _0x198f35=a78_0x2027,_0x374386=stripSqlComments(_0x15854f);if(!_0x374386)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x27fe1b=[];let _0x5beb71='',_0x3a8b9d=![],_0x1f3105=![],_0x517ff1=![];for(let _0x41249a=0x0;_0x41249a<_0x15854f[_0x198f35(0xe7)];_0x41249a++){const _0x47179d=_0x15854f[_0x41249a];if(_0x47179d==='\x27'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x1f3105&&!_0x517ff1)_0x3a8b9d=!_0x3a8b9d;else{if(_0x47179d==='\x22'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x517ff1)_0x1f3105=!_0x1f3105;else _0x47179d==='`'&&!isEscaped(_0x15854f,_0x41249a)&&!_0x3a8b9d&&!_0x1f3105&&(_0x517ff1=!_0x517ff1);}if(_0x47179d===';'&&!_0x3a8b9d&&!_0x1f3105&&!_0x517ff1){const _0x2f31fd=_0x5beb71[_0x198f35(0xe6)]();_0x2f31fd&&_0x27fe1b[_0x198f35(0xf5)](_0x2f31fd),_0x5beb71='';}else _0x5beb71+=_0x47179d;}const _0xd18bc3=_0x5beb71[_0x198f35(0xe6)]();_0xd18bc3&&_0x27fe1b[_0x198f35(0xf5)](_0xd18bc3);const _0xc51be1=_0x27fe1b[_0x198f35(0xf2)](_0x567894=>_0x567894[_0x198f35(0xe6)]())['filter'](_0x154f2c=>{const _0x41e884=_0x198f35,_0x3da1d6=stripSqlComments(_0x154f2c);return _0x3da1d6[_0x41e884(0xe7)]>0x0;});if(_0xc51be1[_0x198f35(0xe7)]===0x0)throw new Error(_0x198f35(0xe4));return _0xc51be1;}export function readFileContent(_0xe3c05a){const _0x566522=a78_0x2027;try{return readFileSync(_0xe3c05a,_0x566522(0xe8));}catch(_0x2470c4){const _0x1ad311=_0x2470c4[_0x566522(0xe1)];if(_0x1ad311===_0x566522(0xea))throw new Error(_0x566522(0xe9)+_0xe3c05a+_0x566522(0xef));else{if(_0x1ad311===_0x566522(0xe0))throw new Error(_0x566522(0xed)+_0xe3c05a+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0xe3c05a+_0x566522(0xf7)+_0x2470c4[_0x566522(0xdf)]);}}}function a78_0x2027(_0x331ae7,_0x38a988){const _0x4d043a=a78_0x4d04();return a78_0x2027=function(_0x202768,_0x29393c){_0x202768=_0x202768-0xdf;let _0x13d1c2=_0x4d043a[_0x202768];return _0x13d1c2;},a78_0x2027(_0x331ae7,_0x38a988);}export function readSqlStatementsFromFile(_0x112b97){const _0x29cf87=a78_0x2027,_0x595478=readFileContent(_0x112b97);try{return splitSqlStatements(_0x595478);}catch(_0x5cfc36){throw new Error('File\x20\x27'+_0x112b97+'\x27\x20'+_0x5cfc36[_0x29cf87(0xdf)][_0x29cf87(0xf6)]());}}
@@ -1 +1 @@
1
- (function(_0x1a371f,_0x4f08a0){const _0x28099e=a78_0x30bf,_0x42a56b=_0x1a371f();while(!![]){try{const _0x2ad987=-parseInt(_0x28099e(0x134))/0x1+-parseInt(_0x28099e(0x147))/0x2+-parseInt(_0x28099e(0x14d))/0x3*(-parseInt(_0x28099e(0x13a))/0x4)+parseInt(_0x28099e(0x13c))/0x5*(parseInt(_0x28099e(0x143))/0x6)+parseInt(_0x28099e(0x13e))/0x7+-parseInt(_0x28099e(0x138))/0x8*(parseInt(_0x28099e(0x137))/0x9)+-parseInt(_0x28099e(0x14b))/0xa*(-parseInt(_0x28099e(0x141))/0xb);if(_0x2ad987===_0x4f08a0)break;else _0x42a56b['push'](_0x42a56b['shift']());}catch(_0x58851f){_0x42a56b['push'](_0x42a56b['shift']());}}}(a78_0x5003,0x3a8f2));export async function*parseSSEStream(_0x5689b9,_0xc723f6){const _0x2b1c3e=a78_0x30bf;if(!_0x5689b9[_0x2b1c3e(0x136)])throw new Error(_0x2b1c3e(0x135));const _0x3afe11=_0x5689b9[_0x2b1c3e(0x136)][_0x2b1c3e(0x14a)](),_0x285cbc=new TextDecoder();let _0x36278d='',_0x2460b0={};try{while(!![]){const {done:_0x4a1ac6,value:_0x263023}=await _0x3afe11[_0x2b1c3e(0x149)]();if(_0x4a1ac6){if(_0x2460b0[_0x2b1c3e(0x140)]){_0xc723f6?.[_0x2b1c3e(0x142)](_0x2b1c3e(0x139)+_0x2460b0[_0x2b1c3e(0x140)]);const _0x8fcf28=parseSSEData(_0x2460b0[_0x2b1c3e(0x140)]);yield _0x8fcf28;}break;}_0x36278d+=_0x285cbc[_0x2b1c3e(0x144)](_0x263023,{'stream':!![]});const _0x2519a4=_0x36278d[_0x2b1c3e(0x148)]('\x0a');_0x36278d=_0x2519a4[_0x2b1c3e(0x14c)]()||'';for(const _0x44ab38 of _0x2519a4){if(_0x44ab38[_0x2b1c3e(0x146)]()===''){if(_0x2460b0[_0x2b1c3e(0x140)]){_0xc723f6?.[_0x2b1c3e(0x142)](_0x2b1c3e(0x139)+_0x2460b0['data']);const _0x4a9c3f=parseSSEData(_0x2460b0[_0x2b1c3e(0x140)]);yield _0x4a9c3f,_0x2460b0={};}continue;}if(_0x44ab38[_0x2b1c3e(0x13d)](':'))continue;const _0x4965fb=_0x44ab38[_0x2b1c3e(0x13b)](':');if(_0x4965fb===-0x1)continue;const _0x185a15=_0x44ab38[_0x2b1c3e(0x13f)](0x0,_0x4965fb);let _0x1c8d35=_0x44ab38[_0x2b1c3e(0x13f)](_0x4965fb+0x1);_0x1c8d35[_0x2b1c3e(0x13d)]('\x20')&&(_0x1c8d35=_0x1c8d35[_0x2b1c3e(0x13f)](0x1));switch(_0x185a15){case'event':_0x2460b0[_0x2b1c3e(0x133)]=_0x1c8d35;break;case _0x2b1c3e(0x140):_0x2460b0[_0x2b1c3e(0x140)]=_0x2460b0[_0x2b1c3e(0x140)]?_0x2460b0[_0x2b1c3e(0x140)]+'\x0a'+_0x1c8d35:_0x1c8d35;break;case'id':_0x2460b0['id']=_0x1c8d35;break;}}}}finally{_0x3afe11[_0x2b1c3e(0x14e)]();}}function a78_0x30bf(_0x12ba51,_0x3ba79c){const _0x500397=a78_0x5003();return a78_0x30bf=function(_0x30bf1f,_0x3f1fc1){_0x30bf1f=_0x30bf1f-0x133;let _0x465b57=_0x500397[_0x30bf1f];return _0x465b57;},a78_0x30bf(_0x12ba51,_0x3ba79c);}function parseSSEData(_0xb003d3){const _0x56dc04=a78_0x30bf;try{return JSON[_0x56dc04(0x145)](_0xb003d3);}catch(_0x979d5f){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0xb003d3,{'cause':_0x979d5f});}}function a78_0x5003(){const _0x2c42c7=['decode','parse','trim','147916VerZZi','split','read','getReader','10gwpYMC','pop','3sfwqOX','releaseLock','event','29583JAlpGL','Response\x20body\x20is\x20null','body','2470977GXPStm','8ZuFXvK','[LLM\x20API\x20SSE]\x20','96476NVPtSk','indexOf','729335ZCJZzd','startsWith','1797054lmrrFK','slice','data','499147tEsKSf','debug','12KJQzVo'];a78_0x5003=function(){return _0x2c42c7;};return a78_0x5003();}
1
+ function a79_0x3178(_0x363e76,_0x544f58){const _0x56924f=a79_0x5692();return a79_0x3178=function(_0x3178cc,_0x2627b1){_0x3178cc=_0x3178cc-0x1db;let _0x30b162=_0x56924f[_0x3178cc];return _0x30b162;},a79_0x3178(_0x363e76,_0x544f58);}(function(_0x4f7908,_0x3830dc){const _0x18213a=a79_0x3178,_0x2d01e9=_0x4f7908();while(!![]){try{const _0x423353=parseInt(_0x18213a(0x1db))/0x1+-parseInt(_0x18213a(0x1ed))/0x2+parseInt(_0x18213a(0x1ec))/0x3+parseInt(_0x18213a(0x1e9))/0x4+-parseInt(_0x18213a(0x1dc))/0x5+-parseInt(_0x18213a(0x1e7))/0x6+parseInt(_0x18213a(0x1e2))/0x7;if(_0x423353===_0x3830dc)break;else _0x2d01e9['push'](_0x2d01e9['shift']());}catch(_0x4bcb3f){_0x2d01e9['push'](_0x2d01e9['shift']());}}}(a79_0x5692,0x3a534));export async function*parseSSEStream(_0x2ae387,_0x4c9a22){const _0x2a57e8=a79_0x3178;if(!_0x2ae387[_0x2a57e8(0x1dd)])throw new Error(_0x2a57e8(0x1eb));const _0x4fffe4=_0x2ae387[_0x2a57e8(0x1dd)][_0x2a57e8(0x1e0)](),_0x2c716d=new TextDecoder();let _0xf3dd43='',_0x2e93bf={};try{while(!![]){const {done:_0x5878fb,value:_0x4024ee}=await _0x4fffe4[_0x2a57e8(0x1ea)]();if(_0x5878fb){if(_0x2e93bf['data']){_0x4c9a22?.[_0x2a57e8(0x1e1)]('[LLM\x20API\x20SSE]\x20'+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x1c6b0c=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x1c6b0c;}break;}_0xf3dd43+=_0x2c716d['decode'](_0x4024ee,{'stream':!![]});const _0x4ea2db=_0xf3dd43[_0x2a57e8(0x1de)]('\x0a');_0xf3dd43=_0x4ea2db[_0x2a57e8(0x1df)]()||'';for(const _0x4f1954 of _0x4ea2db){if(_0x4f1954['trim']()===''){if(_0x2e93bf[_0x2a57e8(0x1ef)]){_0x4c9a22?.[_0x2a57e8(0x1e1)](_0x2a57e8(0x1e4)+_0x2e93bf[_0x2a57e8(0x1ef)]);const _0x595702=parseSSEData(_0x2e93bf[_0x2a57e8(0x1ef)]);yield _0x595702,_0x2e93bf={};}continue;}if(_0x4f1954[_0x2a57e8(0x1e3)](':'))continue;const _0x29fd2c=_0x4f1954[_0x2a57e8(0x1ee)](':');if(_0x29fd2c===-0x1)continue;const _0x348ad1=_0x4f1954[_0x2a57e8(0x1e6)](0x0,_0x29fd2c);let _0x42acd5=_0x4f1954[_0x2a57e8(0x1e6)](_0x29fd2c+0x1);_0x42acd5[_0x2a57e8(0x1e3)]('\x20')&&(_0x42acd5=_0x42acd5['slice'](0x1));switch(_0x348ad1){case'event':_0x2e93bf['event']=_0x42acd5;break;case _0x2a57e8(0x1ef):_0x2e93bf[_0x2a57e8(0x1ef)]=_0x2e93bf[_0x2a57e8(0x1ef)]?_0x2e93bf[_0x2a57e8(0x1ef)]+'\x0a'+_0x42acd5:_0x42acd5;break;case'id':_0x2e93bf['id']=_0x42acd5;break;}}}}finally{_0x4fffe4['releaseLock']();}}function parseSSEData(_0x44e8f1){const _0x2a718a=a79_0x3178;try{return JSON[_0x2a718a(0x1e5)](_0x44e8f1);}catch(_0x5b8701){throw new Error(_0x2a718a(0x1e8)+_0x44e8f1,{'cause':_0x5b8701});}}function a79_0x5692(){const _0x5d6cfa=['1281470XiDQdB','body','split','pop','getReader','debug','1794835DKmZDK','startsWith','[LLM\x20API\x20SSE]\x20','parse','slice','1714062fUricj','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1599980AKGJpV','read','Response\x20body\x20is\x20null','38883bgPprN','684662GEKfhg','indexOf','data','453841yYOCKy'];a79_0x5692=function(){return _0x5d6cfa;};return a79_0x5692();}