@treasuredata/tdx 0.7.0 → 0.7.1
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pwd-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +4 -2
package/dist/utils/chat-cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176d60,_0x3d2b10){const _0xc40373=a77_0x2bf3,_0xc42536=_0x176d60();while(!![]){try{const _0x1f67a7=-parseInt(_0xc40373(0x11a))/0x1*(-parseInt(_0xc40373(0x118))/0x2)+-parseInt(_0xc40373(0x116))/0x3+-parseInt(_0xc40373(0x125))/0x4*(-parseInt(_0xc40373(0x11b))/0x5)+-parseInt(_0xc40373(0x11e))/0x6*(-parseInt(_0xc40373(0x119))/0x7)+-parseInt(_0xc40373(0x11f))/0x8+-parseInt(_0xc40373(0x117))/0x9*(parseInt(_0xc40373(0x115))/0xa)+parseInt(_0xc40373(0x124))/0xb*(parseInt(_0xc40373(0x123))/0xc);if(_0x1f67a7===_0x3d2b10)break;else _0xc42536['push'](_0xc42536['shift']());}catch(_0x56c41c){_0xc42536['push'](_0xc42536['shift']());}}}(a77_0x78a7,0xb8249));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function a77_0x78a7(){const _0x14b281=['3680034ZrQSYw','9046888ScDuCN','utf-8','.cache','last_chat_id','69792SbtHNm','693fsUJhu','280292DZSgvR','9919310HDutTH','4035282lGalhb','9tvBhkX','376poiowo','14Hpowzn','6157DGKtPo','105yJXmeb','cwd','tdx'];a77_0x78a7=function(){return _0x14b281;};return a77_0x78a7();}function getCacheDir(){const _0x10395e=a77_0x2bf3;return join(process[_0x10395e(0x11c)](),_0x10395e(0x121),_0x10395e(0x11d));}function getLastChatIdPath(){const _0x33bf56=a77_0x2bf3;return join(getCacheDir(),_0x33bf56(0x122));}function ensureCacheDir(){const _0x363e25=getCacheDir();!existsSync(_0x363e25)&&mkdirSync(_0x363e25,{'recursive':!![]});}export function saveLastChatId(_0x2a00d7){const _0x20af20=a77_0x2bf3;ensureCacheDir();const _0x3f32d3=getLastChatIdPath();writeFileSync(_0x3f32d3,_0x2a00d7,_0x20af20(0x120));}export function loadLastChatId(){const _0x41f124=getLastChatIdPath();if(!existsSync(_0x41f124))return undefined;try{const _0x1a6bf6=readFileSync(_0x41f124,'utf-8')['trim']();return _0x1a6bf6||undefined;}catch{return undefined;}}function a77_0x2bf3(_0x4ae17a,_0xa413ee){const _0x78a7ef=a77_0x78a7();return a77_0x2bf3=function(_0x2bf33b,_0x5db660){_0x2bf33b=_0x2bf33b-0x115;let _0x23f4c9=_0x78a7ef[_0x2bf33b];return _0x23f4c9;},a77_0x2bf3(_0x4ae17a,_0xa413ee);}export function clearLastChatId(){const _0x254cd6=a77_0x2bf3,_0x427b5a=getLastChatIdPath();if(existsSync(_0x427b5a))try{writeFileSync(_0x427b5a,'',_0x254cd6(0x120));}catch{}}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a78_0x1cc8(){const _0x4b674b=['noColor','env','length','entries','1241160JQSJtO','blue','isTTY','map','dim','1302702ZXoJKa','number','NO_COLOR','color','35521890ZpBffd','3zepoyE','213846poQleH','3942076pblVLQ','object','string','join','806992nqBqTb','isArray','null','yellow','2061608MWheev','repeat','9ePkypi','14WVJIeJ','stringify','boolean'];a78_0x1cc8=function(){return _0x4b674b;};return a78_0x1cc8();}(function(_0x5d5c6,_0x1834e8){const _0x5a3824=a78_0x1165,_0x297fa5=_0x5d5c6();while(!![]){try{const _0x1f7811=parseInt(_0x5a3824(0x89))/0x1*(-parseInt(_0x5a3824(0x71))/0x2)+-parseInt(_0x5a3824(0x84))/0x3+-parseInt(_0x5a3824(0x8b))/0x4+parseInt(_0x5a3824(0x7f))/0x5+-parseInt(_0x5a3824(0x8a))/0x6*(parseInt(_0x5a3824(0x78))/0x7)+-parseInt(_0x5a3824(0x75))/0x8*(parseInt(_0x5a3824(0x77))/0x9)+parseInt(_0x5a3824(0x88))/0xa;if(_0x1f7811===_0x1834e8)break;else _0x297fa5['push'](_0x297fa5['shift']());}catch(_0x2b856a){_0x297fa5['push'](_0x297fa5['shift']());}}}(a78_0x1cc8,0xcd5ed));import{Chalk}from'chalk';export function shouldUseColor(_0x3aba7f={}){const _0x1a29b7=a78_0x1165;if(_0x3aba7f[_0x1a29b7(0x7b)]===!![])return![];if(_0x3aba7f[_0x1a29b7(0x87)]===!![])return!![];if(process[_0x1a29b7(0x7c)][_0x1a29b7(0x86)]!==undefined)return![];return process['stdout'][_0x1a29b7(0x81)]??![];}export function getChalk(_0xe58b76={}){if(shouldUseColor(_0xe58b76))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x56bc87,_0x3e48ee={}){return getChalk(_0x3e48ee)['dim'](_0x56bc87);}export function colorHeader(_0x227ba0,_0x1ab603={}){return getChalk(_0x1ab603)['cyan'](_0x227ba0);}export function colorType(_0xdb2e1d,_0x53cb46={}){const _0x513f53=a78_0x1165;return getChalk(_0x53cb46)[_0x513f53(0x83)](_0xdb2e1d);}export function colorJSONKey(_0x4c3b32,_0x20c243={}){const _0x5e8794=a78_0x1165;return getChalk(_0x20c243)[_0x5e8794(0x80)](_0x4c3b32);}export function colorJSONString(_0x100271,_0x5a444f={}){return getChalk(_0x5a444f)['green'](_0x100271);}export function colorJSONNumber(_0x3ee543,_0x36d6bf={}){return getChalk(_0x36d6bf)['cyan'](_0x3ee543);}export function colorJSONBoolean(_0x2d04a7,_0x18a9ed={}){const _0x29c0e9=a78_0x1165;return getChalk(_0x18a9ed)[_0x29c0e9(0x74)](_0x2d04a7);}function a78_0x1165(_0x2b3a19,_0x70d87c){const _0x1cc86f=a78_0x1cc8();return a78_0x1165=function(_0x1165d7,_0x4e32c4){_0x1165d7=_0x1165d7-0x70;let _0x41349d=_0x1cc86f[_0x1165d7];return _0x41349d;},a78_0x1165(_0x2b3a19,_0x70d87c);}export function colorJSONNull(_0x515a33,_0x35b775={}){return getChalk(_0x35b775)['dim'](_0x515a33);}export function colorizeJSONCompact(_0x5ec2af,_0x24b717={}){const _0x423a61=a78_0x1165;if(!shouldUseColor(_0x24b717))return JSON['stringify'](_0x5ec2af);if(_0x5ec2af===null)return colorJSONNull(_0x423a61(0x73),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x7a))return colorJSONBoolean(String(_0x5ec2af),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x85))return colorJSONNumber(String(_0x5ec2af),_0x24b717);if(typeof _0x5ec2af===_0x423a61(0x8d))return colorJSONString(JSON['stringify'](_0x5ec2af),_0x24b717);if(Array[_0x423a61(0x72)](_0x5ec2af)){if(_0x5ec2af[_0x423a61(0x7d)]===0x0)return'[]';const _0x562ab0=_0x5ec2af['map'](_0x2c560a=>colorizeJSONCompact(_0x2c560a,_0x24b717));return'['+_0x562ab0[_0x423a61(0x70)](',')+']';}if(typeof _0x5ec2af===_0x423a61(0x8c)){const _0x413016=Object[_0x423a61(0x7e)](_0x5ec2af);if(_0x413016[_0x423a61(0x7d)]===0x0)return'{}';const _0x49320e=_0x413016[_0x423a61(0x82)](([_0x362aaf,_0x5bf9cc])=>{const _0x18352c=colorJSONKey(JSON['stringify'](_0x362aaf),_0x24b717),_0x44fb91=colorizeJSONCompact(_0x5bf9cc,_0x24b717);return _0x18352c+':'+_0x44fb91;});return'{'+_0x49320e[_0x423a61(0x70)](',')+'}';}return String(_0x5ec2af);}export function colorizeJSON(_0x1b2c3f,_0x3470d4={},_0x43110d=0x0){const _0x9712a=a78_0x1165;if(!shouldUseColor(_0x3470d4))return JSON['stringify'](_0x1b2c3f,null,0x2);const _0x4d3b76='\x20'[_0x9712a(0x76)](_0x43110d),_0x28b97e=_0x43110d+0x2;if(_0x1b2c3f===null)return colorJSONNull(_0x9712a(0x73),_0x3470d4);if(typeof _0x1b2c3f==='boolean')return colorJSONBoolean(String(_0x1b2c3f),_0x3470d4);if(typeof _0x1b2c3f==='number')return colorJSONNumber(String(_0x1b2c3f),_0x3470d4);if(typeof _0x1b2c3f===_0x9712a(0x8d))return colorJSONString(JSON[_0x9712a(0x79)](_0x1b2c3f),_0x3470d4);if(Array[_0x9712a(0x72)](_0x1b2c3f)){if(_0x1b2c3f['length']===0x0)return'[]';const _0x2ae509=_0x1b2c3f['map'](_0xf7edde=>{const _0x3a687d=_0x9712a,_0x254635=colorizeJSON(_0xf7edde,_0x3470d4,_0x28b97e);return''+'\x20'[_0x3a687d(0x76)](_0x28b97e)+_0x254635;});return'[\x0a'+_0x2ae509[_0x9712a(0x70)](',\x0a')+('\x0a'+_0x4d3b76+']');}if(typeof _0x1b2c3f===_0x9712a(0x8c)){const _0x4ff49a=Object[_0x9712a(0x7e)](_0x1b2c3f);if(_0x4ff49a[_0x9712a(0x7d)]===0x0)return'{}';const _0x1340c1=_0x4ff49a[_0x9712a(0x82)](([_0x571806,_0x562506])=>{const _0x12a442=colorJSONKey(JSON['stringify'](_0x571806),_0x3470d4),_0x4946c1=colorizeJSON(_0x562506,_0x3470d4,_0x28b97e);return''+'\x20'['repeat'](_0x28b97e)+_0x12a442+':\x20'+_0x4946c1;});return'{\x0a'+_0x1340c1[_0x9712a(0x70)](',\x0a')+('\x0a'+_0x4d3b76+'}');}return String(_0x1b2c3f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x195029,_0x1dabbb){const _0x27889c=a79_0x4fff,_0xcd3a5=_0x195029();while(!![]){try{const _0x3cb13c=-parseInt(_0x27889c(0x217))/0x1*(-parseInt(_0x27889c(0x1e8))/0x2)+parseInt(_0x27889c(0x214))/0x3*(-parseInt(_0x27889c(0x1ec))/0x4)+parseInt(_0x27889c(0x203))/0x5*(-parseInt(_0x27889c(0x202))/0x6)+parseInt(_0x27889c(0x20c))/0x7+parseInt(_0x27889c(0x20e))/0x8*(-parseInt(_0x27889c(0x205))/0x9)+parseInt(_0x27889c(0x1d9))/0xa+parseInt(_0x27889c(0x21b))/0xb;if(_0x3cb13c===_0x1dabbb)break;else _0xcd3a5['push'](_0xcd3a5['shift']());}catch(_0x5d1008){_0xcd3a5['push'](_0xcd3a5['shift']());}}}(a79_0x32e5,0x84161));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a79_0x3963f6 from'chalk';function a79_0x32e5(){const _0x895ec9=['isInteger','-FXRSn','json','keys','error','number','spawn','debug','query','1507314OzXyVM','5EoeGpF','boolean','9731709hlSGKA','object','map','[error]','push','[rule]','─┴─','2715412YmzxyP','format','8RaefHp','length','limit','entries','log','tsv','153606rtEUYD','forEach','stdout','2289LEGHWC','inherit','jsonl','No\x20data','13241382loeDGL','pipe','stderr','bold','2983760DcbIYg','[query]','table','bigint','blue','noColor','resolve','[logs]','red','max','cmdout','repeat','split','magenta','double','254LwVTpO','[params]','end','sdk-result','24Xzibvx','output','stringify','yellow','join','varchar','rule','padEnd','trim','stdin','filter','─┬─','params'];a79_0x32e5=function(){return _0x895ec9;};return a79_0x32e5();}import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x74ae2){const _0x248879=a79_0x4fff;return{'format':_0x74ae2['format']||'table','output':_0x74ae2['output']||'','limit':_0x74ae2[_0x248879(0x210)],'color':_0x74ae2['color'],'noColor':_0x74ae2[_0x248879(0x1de)]};}function convertSDKResultToQueryResult(_0x70516f){const _0x387396=a79_0x4fff,_0x4a5f9a=[];if(_0x70516f['length']>0x0){const _0x56642f=_0x70516f[0x0];for(const [_0x272e2b,_0x4fd170]of Object['entries'](_0x56642f)){let _0x530889=_0x387396(0x1f1);if(typeof _0x4fd170===_0x387396(0x1fe))_0x530889=Number[_0x387396(0x1f9)](_0x4fd170)?_0x387396(0x1dc):_0x387396(0x1e7);else{if(typeof _0x4fd170===_0x387396(0x204))_0x530889=_0x387396(0x204);else _0x4fd170===null&&(_0x530889=_0x387396(0x1f1));}_0x4a5f9a[_0x387396(0x209)]({'name':_0x272e2b,'type':_0x530889});}}return{'queryId':_0x387396(0x1eb),'columns':_0x4a5f9a,'data':_0x70516f,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x70516f[_0x387396(0x20f)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x200b79,_0x4a0daa){const _0x1deae0=convertSDKResultToQueryResult(_0x200b79);return formatQueryOutput(_0x1deae0,_0x4a0daa);}function a79_0x4fff(_0x543da1,_0x5311c8){const _0x32e5f6=a79_0x32e5();return a79_0x4fff=function(_0x4ffff6,_0x16665f){_0x4ffff6=_0x4ffff6-0x1d7;let _0x2b74c5=_0x32e5f6[_0x4ffff6];return _0x2b74c5;},a79_0x4fff(_0x543da1,_0x5311c8);}export async function formatQueryOutput(_0x2b9d9c,_0x5e1635){const _0x5f3c1a=a79_0x4fff,{format:_0x3840f5,limit:_0x36711c,output:_0x537b4f,color:_0x100b72,noColor:_0x23fa1b}=_0x5e1635,_0x814007=Boolean(_0x537b4f)&&!_0x100b72,_0x502d1d={'color':_0x100b72,'noColor':_0x23fa1b||_0x814007};if(_0x3840f5===_0x5f3c1a(0x1db)){const _0x3a3927=shouldUseLess(_0x3840f5,_0x537b4f);return formatAsTable(_0x2b9d9c,_0x36711c,_0x3a3927,_0x502d1d);}else{if(_0x3840f5==='json')return formatAsJSON(_0x2b9d9c,_0x502d1d);else return _0x3840f5==='jsonl'?formatAsJSONL(_0x2b9d9c,_0x502d1d):formatQueryResult(_0x2b9d9c,_0x3840f5);}}function shouldUseLess(_0x344eac,_0x31669f){const _0x16d107=a79_0x4fff;return _0x344eac==='table'&&process[_0x16d107(0x216)]['isTTY']&&!_0x31669f;}export function resolveOutputOptions(_0x360144){const _0x3a20af=a79_0x4fff,_0x3133bf=resolveOutputFormat(_0x360144['format'],_0x360144['output'],_0x3a20af(0x1db));let _0x2039cc=typeof _0x360144[_0x3a20af(0x210)]===_0x3a20af(0x1fe)?_0x360144[_0x3a20af(0x210)]:parseInt(_0x360144['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x22c3c8=_0x360144[_0x3a20af(0x1ed)]||'';return shouldUseLess(_0x3133bf,_0x22c3c8)&&(_0x2039cc=Infinity),{'format':_0x3133bf,'output':_0x22c3c8,'limit':_0x2039cc,'color':_0x360144['color'],'noColor':_0x360144[_0x3a20af(0x1de)]};}export function writeOutput(_0x251cef,_0x37914b,_0x322b50){const _0x567c74=a79_0x4fff;return _0x37914b?(writeFileSync(_0x37914b,_0x251cef),console[_0x567c74(0x1fd)]('Results\x20saved\x20to\x20'+_0x37914b),Promise['resolve']()):shouldUseLess(_0x322b50||'','')?new Promise(_0x5ef686=>{const _0x11d469=_0x567c74,_0x10e5a0=spawn('less',[_0x11d469(0x1fa)],{'stdio':[_0x11d469(0x21c),'inherit',_0x11d469(0x218)]});let _0x1b54b8=![];_0x10e5a0['on']('error',()=>{const _0x5ce35a=_0x11d469;!_0x1b54b8&&(_0x1b54b8=!![],console[_0x5ce35a(0x212)](_0x251cef),_0x5ef686());}),_0x10e5a0['on']('close',()=>{!_0x1b54b8&&(_0x1b54b8=!![],_0x5ef686());}),_0x10e5a0['on'](_0x11d469(0x1ff),()=>{const _0x15cd24=_0x11d469;!_0x1b54b8&&_0x10e5a0[_0x15cd24(0x1f5)]&&(_0x10e5a0[_0x15cd24(0x1f5)]['on'](_0x15cd24(0x1fd),()=>{}),_0x10e5a0['stdin']['write'](_0x251cef),_0x10e5a0[_0x15cd24(0x1f5)][_0x15cd24(0x1ea)]());}),!_0x10e5a0['stdin']&&(!_0x1b54b8&&(_0x1b54b8=!![],console[_0x11d469(0x212)](_0x251cef),_0x5ef686()));}):(console[_0x567c74(0x212)](_0x251cef),Promise[_0x567c74(0x1df)]());}export async function handleSDKOutput(_0x12a779,_0x1e6103){const _0xfd86e5=a79_0x4fff,_0x29c37a=resolveOutputOptions(_0x1e6103),_0x24162b=await formatSDKOutput(_0x12a779,_0x29c37a);await writeOutput(_0x24162b,_0x29c37a[_0xfd86e5(0x1ed)]||undefined,_0x29c37a[_0xfd86e5(0x20d)]);}export async function handleQueryOutput(_0x37ff8b,_0x67ab2a){const _0x3157c9=a79_0x4fff,_0x559f71=resolveOutputOptions(_0x67ab2a),_0x4665cf=await formatQueryOutput(_0x37ff8b,_0x559f71);await writeOutput(_0x4665cf,_0x559f71[_0x3157c9(0x1ed)]||undefined,_0x559f71[_0x3157c9(0x20d)]);}async function formatSingleObject(_0x4bfdea,_0x11abe6){const _0x302fa3=a79_0x4fff,{format:_0x3419cd,color:_0x2cb0c2,noColor:_0x9482b2}=_0x11abe6,_0x8b83cb={'color':_0x2cb0c2,'noColor':_0x9482b2};if(_0x3419cd===_0x302fa3(0x1fb)){if(shouldUseColor(_0x8b83cb))return colorizeJSON(_0x4bfdea,_0x8b83cb);return JSON['stringify'](_0x4bfdea,null,0x2);}else{if(_0x3419cd===_0x302fa3(0x219)){if(shouldUseColor(_0x8b83cb))return colorizeJSONCompact(_0x4bfdea,_0x8b83cb);return JSON[_0x302fa3(0x1ee)](_0x4bfdea);}else{if(_0x3419cd===_0x302fa3(0x213))return Object[_0x302fa3(0x211)](_0x4bfdea)[_0x302fa3(0x207)](([_0x201339,_0x4175f0])=>_0x201339+'\x09'+_0x4175f0)[_0x302fa3(0x1f0)]('\x0a');else{const _0x3faf7e=Object[_0x302fa3(0x211)](_0x4bfdea);if(_0x3faf7e[_0x302fa3(0x20f)]===0x0)return _0x302fa3(0x21a);const _0x4d0cd9=_0x4bfdea['debug'],_0x3ce2fb=_0x4bfdea['query'],_0x130936=_0x4bfdea[_0x302fa3(0x1f8)],_0x12e23f=_0x4bfdea[_0x302fa3(0x1f2)],_0xdc2271=_0x3ce2fb?typeof _0x3ce2fb==='string'?_0x3ce2fb:JSON[_0x302fa3(0x1ee)](_0x3ce2fb,null,0x2):undefined,_0x1f76b0=_0x130936&&Object[_0x302fa3(0x1fc)](_0x130936)['length']>0x0?JSON[_0x302fa3(0x1ee)](_0x130936,null,0x2):undefined,_0x129b97=_0x12e23f&&Object['keys'](_0x12e23f)['length']>0x0?JSON['stringify'](_0x12e23f,null,0x2):undefined,_0x19b3fa=_0x3faf7e[_0x302fa3(0x1f6)](([_0x4b1d5a])=>_0x4b1d5a!==_0x302fa3(0x200)&&_0x4b1d5a!==_0x302fa3(0x201)&&_0x4b1d5a!=='params'&&_0x4b1d5a!==_0x302fa3(0x1f2)),_0x5e06cd=Math[_0x302fa3(0x1e2)](..._0x19b3fa[_0x302fa3(0x207)](([_0x282bb3])=>_0x282bb3[_0x302fa3(0x20f)])),_0x1a6c96=Math[_0x302fa3(0x1e2)](..._0x19b3fa[_0x302fa3(0x207)](([,_0x1637c6])=>{const _0xe0f48e=_0x302fa3;try{const _0x386548=_0x1637c6===null||_0x1637c6===undefined?'':typeof _0x1637c6==='object'?JSON[_0xe0f48e(0x1ee)](_0x1637c6):String(_0x1637c6),_0x453003=_0x386548[_0xe0f48e(0x1e5)]('\x0a');return Math[_0xe0f48e(0x1e2)](..._0x453003['map'](_0x1b3828=>_0x1b3828[_0xe0f48e(0x20f)]),0x0);}catch{return 0x0;}}),0x14),_0x1ac16e=[];_0x1ac16e[_0x302fa3(0x209)](colorBorder('┌─'+'─'[_0x302fa3(0x1e4)](_0x5e06cd)+_0x302fa3(0x1f7)+'─'[_0x302fa3(0x1e4)](_0x1a6c96)+'─┐',_0x8b83cb)),_0x19b3fa[_0x302fa3(0x215)](([_0x3c362e,_0x1f1425])=>{const _0x10f3f0=_0x302fa3;let _0xcfdf31;try{_0xcfdf31=_0x1f1425===null||_0x1f1425===undefined?'':typeof _0x1f1425===_0x10f3f0(0x206)?JSON[_0x10f3f0(0x1ee)](_0x1f1425):String(_0x1f1425);}catch{_0xcfdf31='[Object]';}const _0x2d7528=_0x3c362e[_0x10f3f0(0x1f3)](_0x5e06cd),_0x385d51=_0xcfdf31[_0x10f3f0(0x1e5)]('\x0a');_0x385d51[_0x10f3f0(0x215)]((_0x2cf5fe,_0x56edd1)=>{const _0x21f484=_0x10f3f0,_0x14ce38=colorBorder('│',_0x8b83cb);_0x56edd1===0x0?_0x1ac16e['push'](_0x14ce38+'\x20'+_0x2d7528+'\x20'+_0x14ce38+'\x20'+_0x2cf5fe['padEnd'](_0x1a6c96)+'\x20'+_0x14ce38):_0x1ac16e['push'](_0x14ce38+'\x20'+'\x20'[_0x21f484(0x1e4)](_0x5e06cd)+'\x20'+_0x14ce38+'\x20'+_0x2cf5fe[_0x21f484(0x1f3)](_0x1a6c96)+'\x20'+_0x14ce38);});}),_0x1ac16e[_0x302fa3(0x209)](colorBorder('└─'+'─'[_0x302fa3(0x1e4)](_0x5e06cd)+_0x302fa3(0x20b)+'─'[_0x302fa3(0x1e4)](_0x1a6c96)+'─┘',_0x8b83cb));_0xdc2271&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1ef)][_0x302fa3(0x1d8)](_0x302fa3(0x1da)))),_0x1ac16e[_0x302fa3(0x209)](_0xdc2271));_0x1f76b0&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1dd)]['bold'](_0x302fa3(0x1e9)))),_0x1ac16e[_0x302fa3(0x209)](_0x1f76b0));_0x129b97&&(_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1e6)][_0x302fa3(0x1d8)](_0x302fa3(0x20a)))),_0x1ac16e[_0x302fa3(0x209)](_0x129b97));if(_0x4d0cd9){if(_0x4d0cd9[_0x302fa3(0x1d7)]){_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6[_0x302fa3(0x1e1)][_0x302fa3(0x1d8)](_0x302fa3(0x208))));const _0x1a00db=_0x4d0cd9[_0x302fa3(0x1d7)]['split']('\x0a');_0x1a00db[_0x302fa3(0x215)](_0x373734=>{const _0xb9ca9d=_0x302fa3;_0x373734[_0xb9ca9d(0x1f4)]()&&_0x1ac16e['push'](_0x373734);});}if(_0x4d0cd9['cmdout']){_0x1ac16e[_0x302fa3(0x209)](''),_0x1ac16e[_0x302fa3(0x209)](String(a79_0x3963f6['cyan'][_0x302fa3(0x1d8)](_0x302fa3(0x1e0))));const _0x5e250b=_0x4d0cd9[_0x302fa3(0x1e3)][_0x302fa3(0x1e5)]('\x0a');_0x5e250b[_0x302fa3(0x215)](_0x57bceb=>{const _0x112db2=_0x302fa3;_0x57bceb[_0x112db2(0x1f4)]()&&_0x1ac16e[_0x112db2(0x209)](_0x57bceb);});}}return _0x1ac16e[_0x302fa3(0x1f0)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x2f5e4b,_0x4973af){const _0x57a3e9=a79_0x4fff,_0x284f06=resolveOutputOptions(_0x4973af),_0x5540ca=await formatSingleObject(_0x2f5e4b,_0x284f06);await writeOutput(_0x5540ca,_0x284f06['output']||undefined,_0x284f06[_0x57a3e9(0x20d)]);}
|
|
1
|
+
(function(_0x54dd0d,_0x5d487f){const _0x4e6519=a79_0xcfea,_0x449a85=_0x54dd0d();while(!![]){try{const _0xa02f7c=-parseInt(_0x4e6519(0xae))/0x1+-parseInt(_0x4e6519(0xa6))/0x2+-parseInt(_0x4e6519(0xc5))/0x3+-parseInt(_0x4e6519(0xb4))/0x4+-parseInt(_0x4e6519(0xc3))/0x5+-parseInt(_0x4e6519(0x91))/0x6*(parseInt(_0x4e6519(0xc7))/0x7)+parseInt(_0x4e6519(0x9e))/0x8;if(_0xa02f7c===_0x5d487f)break;else _0x449a85['push'](_0x449a85['shift']());}catch(_0xd5ff16){_0x449a85['push'](_0x449a85['shift']());}}}(a79_0x1ca7,0xbc46d));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';function a79_0xcfea(_0x2e9921,_0x30bb57){const _0x1ca747=a79_0x1ca7();return a79_0xcfea=function(_0xcfeaf9,_0x4f95f9){_0xcfeaf9=_0xcfeaf9-0x87;let _0x325487=_0x1ca747[_0xcfeaf9];return _0x325487;},a79_0xcfea(_0x2e9921,_0x30bb57);}import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a79_0x1ca7(){const _0x32e18d=['inherit','-FXRSn','797872TSUUgH','log','noColor','params','resolve','object','error','debug','format','blue','sdk-result','push','─┬─','json','[logs]','6899370llkmdA','FINISHED','2146476irjyJD','─┴─','7369579xLheMv','Results\x20saved\x20to\x20','stringify','bold','split','tsv','stdin','repeat','table','stderr','jsonl','[query]','6XhWVRc','magenta','length','filter','rule','red','pipe','stdout','forEach','bigint','[params]','No\x20data','join','55003896pEdyAe','color','limit','query','number','max','map','end','2982684AOwyOx','output','varchar','cyan','[rule]','write','spawn','cmdout','1265333JuRIFx','isTTY','padEnd','yellow'];a79_0x1ca7=function(){return _0x32e18d;};return a79_0x1ca7();}import a79_0x1f6a3b from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x3128a3){const _0x282a8a=a79_0xcfea;return{'format':_0x3128a3[_0x282a8a(0xbc)]||_0x282a8a(0x8d),'output':_0x3128a3[_0x282a8a(0xa7)]||'','limit':_0x3128a3[_0x282a8a(0xa0)],'color':_0x3128a3[_0x282a8a(0x9f)],'noColor':_0x3128a3[_0x282a8a(0xb6)]};}function convertSDKResultToQueryResult(_0x5902fe){const _0x140ed5=a79_0xcfea,_0x4f0c73=[];if(_0x5902fe[_0x140ed5(0x93)]>0x0){const _0x52bf37=_0x5902fe[0x0];for(const [_0x26cff9,_0x3c1098]of Object['entries'](_0x52bf37)){let _0x29a8f9='varchar';if(typeof _0x3c1098===_0x140ed5(0xa2))_0x29a8f9=Number['isInteger'](_0x3c1098)?_0x140ed5(0x9a):'double';else{if(typeof _0x3c1098==='boolean')_0x29a8f9='boolean';else _0x3c1098===null&&(_0x29a8f9=_0x140ed5(0xa8));}_0x4f0c73[_0x140ed5(0xbf)]({'name':_0x26cff9,'type':_0x29a8f9});}}return{'queryId':_0x140ed5(0xbe),'columns':_0x4f0c73,'data':_0x5902fe,'stats':{'state':_0x140ed5(0xc4),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x5902fe['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x276979,_0x31012){const _0x186f9f=convertSDKResultToQueryResult(_0x276979);return formatQueryOutput(_0x186f9f,_0x31012);}export async function formatQueryOutput(_0x397a4e,_0x1db892){const _0x3cab35=a79_0xcfea,{format:_0x119917,limit:_0x2add23,output:_0x1bc542,color:_0x54ad07,noColor:_0x52cdee}=_0x1db892,_0x1f1473=Boolean(_0x1bc542)&&!_0x54ad07,_0x2761b5={'color':_0x54ad07,'noColor':_0x52cdee||_0x1f1473};if(_0x119917==='table'){const _0x1344f0=shouldUseLess(_0x119917,_0x1bc542);return formatAsTable(_0x397a4e,_0x2add23,_0x1344f0,_0x2761b5);}else{if(_0x119917===_0x3cab35(0xc1))return formatAsJSON(_0x397a4e,_0x2761b5);else return _0x119917===_0x3cab35(0x8f)?formatAsJSONL(_0x397a4e,_0x2761b5):formatQueryResult(_0x397a4e,_0x119917);}}function shouldUseLess(_0x5f476a,_0x396f0f){const _0x1c0883=a79_0xcfea;return _0x5f476a===_0x1c0883(0x8d)&&process[_0x1c0883(0x98)][_0x1c0883(0xaf)]&&!_0x396f0f;}export function resolveOutputOptions(_0x5534fb){const _0x1c1695=a79_0xcfea,_0x3a06d8=resolveOutputFormat(_0x5534fb[_0x1c1695(0xbc)],_0x5534fb[_0x1c1695(0xa7)],_0x1c1695(0x8d));let _0x523d39=typeof _0x5534fb[_0x1c1695(0xa0)]===_0x1c1695(0xa2)?_0x5534fb[_0x1c1695(0xa0)]:parseInt(_0x5534fb[_0x1c1695(0xa0)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2489e4=_0x5534fb[_0x1c1695(0xa7)]||'';return shouldUseLess(_0x3a06d8,_0x2489e4)&&(_0x523d39=Infinity),{'format':_0x3a06d8,'output':_0x2489e4,'limit':_0x523d39,'color':_0x5534fb[_0x1c1695(0x9f)],'noColor':_0x5534fb[_0x1c1695(0xb6)]};}export function writeOutput(_0x4a6d3b,_0x640b7,_0x83687a){const _0x90c25b=a79_0xcfea;return _0x640b7?(writeFileSync(_0x640b7,_0x4a6d3b),console[_0x90c25b(0xba)](_0x90c25b(0xc8)+_0x640b7),Promise[_0x90c25b(0xb8)]()):shouldUseLess(_0x83687a||'','')?new Promise(_0x106675=>{const _0x2ac8f1=_0x90c25b,_0x4a6b56=spawn('less',[_0x2ac8f1(0xb3)],{'stdio':[_0x2ac8f1(0x97),_0x2ac8f1(0xb2),_0x2ac8f1(0xb2)]});let _0x44e0c1=![];_0x4a6b56['on'](_0x2ac8f1(0xba),()=>{!_0x44e0c1&&(_0x44e0c1=!![],console['log'](_0x4a6d3b),_0x106675());}),_0x4a6b56['on']('close',()=>{!_0x44e0c1&&(_0x44e0c1=!![],_0x106675());}),_0x4a6b56['on'](_0x2ac8f1(0xac),()=>{const _0x35d2de=_0x2ac8f1;!_0x44e0c1&&_0x4a6b56[_0x35d2de(0x8b)]&&(_0x4a6b56['stdin']['on'](_0x35d2de(0xba),()=>{}),_0x4a6b56[_0x35d2de(0x8b)][_0x35d2de(0xab)](_0x4a6d3b),_0x4a6b56[_0x35d2de(0x8b)][_0x35d2de(0xa5)]());}),!_0x4a6b56[_0x2ac8f1(0x8b)]&&(!_0x44e0c1&&(_0x44e0c1=!![],console[_0x2ac8f1(0xb5)](_0x4a6d3b),_0x106675()));}):(console[_0x90c25b(0xb5)](_0x4a6d3b),Promise['resolve']());}export async function handleSDKOutput(_0xddda52,_0xa2e4ea){const _0x4038e0=a79_0xcfea,_0x151bea=resolveOutputOptions(_0xa2e4ea),_0x1bc7ce=await formatSDKOutput(_0xddda52,_0x151bea);await writeOutput(_0x1bc7ce,_0x151bea[_0x4038e0(0xa7)]||undefined,_0x151bea[_0x4038e0(0xbc)]);}export async function handleQueryOutput(_0x2e45c8,_0x2a95bd){const _0x5bf85c=a79_0xcfea,_0x47d939=resolveOutputOptions(_0x2a95bd),_0x56d750=await formatQueryOutput(_0x2e45c8,_0x47d939);await writeOutput(_0x56d750,_0x47d939[_0x5bf85c(0xa7)]||undefined,_0x47d939['format']);}async function formatSingleObject(_0x5a8017,_0x48f358){const _0x59e138=a79_0xcfea,{format:_0x46ca43,color:_0x41d753,noColor:_0x5d9881}=_0x48f358,_0x26a822={'color':_0x41d753,'noColor':_0x5d9881};if(_0x46ca43===_0x59e138(0xc1)){if(shouldUseColor(_0x26a822))return colorizeJSON(_0x5a8017,_0x26a822);return JSON[_0x59e138(0x87)](_0x5a8017,null,0x2);}else{if(_0x46ca43===_0x59e138(0x8f)){if(shouldUseColor(_0x26a822))return colorizeJSONCompact(_0x5a8017,_0x26a822);return JSON['stringify'](_0x5a8017);}else{if(_0x46ca43===_0x59e138(0x8a))return Object['entries'](_0x5a8017)['map'](([_0x412607,_0x2b03c4])=>_0x412607+'\x09'+_0x2b03c4)[_0x59e138(0x9d)]('\x0a');else{const _0x2491cc=Object['entries'](_0x5a8017);if(_0x2491cc[_0x59e138(0x93)]===0x0)return _0x59e138(0x9c);const _0x5115b2=_0x5a8017['debug'],_0x2b80b4=_0x5a8017[_0x59e138(0xa1)],_0x274ddb=_0x5a8017[_0x59e138(0xb7)],_0x27363a=_0x5a8017[_0x59e138(0x95)],_0x233ae6=_0x2b80b4?typeof _0x2b80b4==='string'?_0x2b80b4:JSON[_0x59e138(0x87)](_0x2b80b4,null,0x2):undefined,_0x15c98d=_0x274ddb&&Object['keys'](_0x274ddb)[_0x59e138(0x93)]>0x0?JSON[_0x59e138(0x87)](_0x274ddb,null,0x2):undefined,_0x10b4fe=_0x27363a&&Object['keys'](_0x27363a)['length']>0x0?JSON[_0x59e138(0x87)](_0x27363a,null,0x2):undefined,_0x46377a=_0x2491cc[_0x59e138(0x94)](([_0x49fb6b])=>_0x49fb6b!==_0x59e138(0xbb)&&_0x49fb6b!=='query'&&_0x49fb6b!==_0x59e138(0xb7)&&_0x49fb6b!=='rule'),_0x13fe57=Math[_0x59e138(0xa3)](..._0x46377a['map'](([_0x57cd59])=>_0x57cd59[_0x59e138(0x93)])),_0x5982e5=Math[_0x59e138(0xa3)](..._0x46377a[_0x59e138(0xa4)](([,_0x642799])=>{const _0x2db8ac=_0x59e138;try{const _0x5d35ac=_0x642799===null||_0x642799===undefined?'':typeof _0x642799==='object'?JSON[_0x2db8ac(0x87)](_0x642799):String(_0x642799),_0x513dbb=_0x5d35ac[_0x2db8ac(0x89)]('\x0a');return Math[_0x2db8ac(0xa3)](..._0x513dbb['map'](_0x3d9575=>_0x3d9575[_0x2db8ac(0x93)]),0x0);}catch{return 0x0;}}),0x14),_0x2470d5=[];_0x2470d5[_0x59e138(0xbf)](colorBorder('┌─'+'─'['repeat'](_0x13fe57)+_0x59e138(0xc0)+'─'[_0x59e138(0x8c)](_0x5982e5)+'─┐',_0x26a822)),_0x46377a['forEach'](([_0x331fa1,_0x1457f2])=>{const _0x588d19=_0x59e138;let _0x5d8561;try{_0x5d8561=_0x1457f2===null||_0x1457f2===undefined?'':typeof _0x1457f2===_0x588d19(0xb9)?JSON[_0x588d19(0x87)](_0x1457f2):String(_0x1457f2);}catch{_0x5d8561='[Object]';}const _0x2d0697=_0x331fa1['padEnd'](_0x13fe57),_0x3609b4=_0x5d8561[_0x588d19(0x89)]('\x0a');_0x3609b4['forEach']((_0x1b00d0,_0x10a1b2)=>{const _0x5b8a83=_0x588d19,_0x4a157d=colorBorder('│',_0x26a822);_0x10a1b2===0x0?_0x2470d5[_0x5b8a83(0xbf)](_0x4a157d+'\x20'+_0x2d0697+'\x20'+_0x4a157d+'\x20'+_0x1b00d0[_0x5b8a83(0xb0)](_0x5982e5)+'\x20'+_0x4a157d):_0x2470d5[_0x5b8a83(0xbf)](_0x4a157d+'\x20'+'\x20'[_0x5b8a83(0x8c)](_0x13fe57)+'\x20'+_0x4a157d+'\x20'+_0x1b00d0[_0x5b8a83(0xb0)](_0x5982e5)+'\x20'+_0x4a157d);});}),_0x2470d5['push'](colorBorder('└─'+'─'[_0x59e138(0x8c)](_0x13fe57)+_0x59e138(0xc6)+'─'[_0x59e138(0x8c)](_0x5982e5)+'─┘',_0x26a822));_0x233ae6&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0xb1)][_0x59e138(0x88)](_0x59e138(0x90)))),_0x2470d5[_0x59e138(0xbf)](_0x233ae6));_0x15c98d&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0xbd)]['bold'](_0x59e138(0x9b)))),_0x2470d5[_0x59e138(0xbf)](_0x15c98d));_0x10b4fe&&(_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0x92)][_0x59e138(0x88)](_0x59e138(0xaa)))),_0x2470d5['push'](_0x10b4fe));if(_0x5115b2){if(_0x5115b2[_0x59e138(0x8e)]){_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5[_0x59e138(0xbf)](String(a79_0x1f6a3b[_0x59e138(0x96)][_0x59e138(0x88)]('[error]')));const _0x3a4476=_0x5115b2[_0x59e138(0x8e)][_0x59e138(0x89)]('\x0a');_0x3a4476[_0x59e138(0x99)](_0x25d321=>{_0x25d321['trim']()&&_0x2470d5['push'](_0x25d321);});}if(_0x5115b2[_0x59e138(0xad)]){_0x2470d5[_0x59e138(0xbf)](''),_0x2470d5['push'](String(a79_0x1f6a3b[_0x59e138(0xa9)]['bold'](_0x59e138(0xc2))));const _0x30878f=_0x5115b2['cmdout']['split']('\x0a');_0x30878f[_0x59e138(0x99)](_0x3fc768=>{const _0x3955c1=_0x59e138;_0x3fc768['trim']()&&_0x2470d5[_0x3955c1(0xbf)](_0x3fc768);});}}return _0x2470d5[_0x59e138(0x9d)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x174466,_0x849e2d){const _0x5bc65d=resolveOutputOptions(_0x849e2d),_0x48169b=await formatSingleObject(_0x174466,_0x5bc65d);await writeOutput(_0x48169b,_0x5bc65d['output']||undefined,_0x5bc65d['format']);}
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x151bcc,_0x17f589){const _0x8e2a99=a80_0xe14c,_0x2a2042=_0x151bcc();while(!![]){try{const _0xb30956=parseInt(_0x8e2a99(0xfa))/0x1+-parseInt(_0x8e2a99(0xfd))/0x2*(parseInt(_0x8e2a99(0xf7))/0x3)+-parseInt(_0x8e2a99(0xfe))/0x4+parseInt(_0x8e2a99(0x101))/0x5*(parseInt(_0x8e2a99(0xfc))/0x6)+parseInt(_0x8e2a99(0xf8))/0x7*(parseInt(_0x8e2a99(0x100))/0x8)+parseInt(_0x8e2a99(0xff))/0x9*(-parseInt(_0x8e2a99(0xfb))/0xa)+-parseInt(_0x8e2a99(0xf6))/0xb;if(_0xb30956===_0x17f589)break;else _0x2a2042['push'](_0x2a2042['shift']());}catch(_0x5783cd){_0x2a2042['push'](_0x2a2042['shift']());}}}(a80_0x5f36,0x283b6));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a80_0x5f36(){const _0x3fe235=['5082TVNtXM','number','197680nAnpTA','448150ylUsbu','1703742jMZPit','66NfgktN','122388VOZuEh','9WvJbvw','2656JJWArH','5GTxKhB','4900214ZduVvV','3363axXqCZ'];a80_0x5f36=function(){return _0x3fe235;};return a80_0x5f36();}function a80_0xe14c(_0x1a8719,_0x47a3b5){const _0x5f3620=a80_0x5f36();return a80_0xe14c=function(_0xe14cad,_0x3aa6e1){_0xe14cad=_0xe14cad-0xf6;let _0x509033=_0x5f3620[_0xe14cad];return _0x509033;},a80_0xe14c(_0x1a8719,_0x47a3b5);}export function resolveLimit(_0x19b185,_0x4c0e6e){const _0x1a15eb=a80_0xe14c;if(_0x19b185===undefined)return _0x4c0e6e;if(typeof _0x19b185===_0x1a15eb(0xf9))return _0x19b185;return parseInt(_0x19b185,0xa);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a81_0x42fe(){const _0x303225=['dim','type','460152WuAVuo','repeat','added','red','min','add','72dtMBBP','1952115PEgCEM','3425264UhJsbC','split','696183DBKQkC','old','new','fill','green','forEach','182147PYbQzq','content','some','\x20-\x20','has','removed','max','\x20\x20\x20','padStart','length','unchanged','cyan','\x20\x20...','unshift','push','1562980JFFiZp','map','3090296DuEQAC','\x20+\x20'];a81_0x42fe=function(){return _0x303225;};return a81_0x42fe();}function a81_0x9c14(_0x4f8324,_0x1056dd){const _0x42fed4=a81_0x42fe();return a81_0x9c14=function(_0x9c1487,_0x3d2a67){_0x9c1487=_0x9c1487-0x148;let _0x13db12=_0x42fed4[_0x9c1487];return _0x13db12;},a81_0x9c14(_0x4f8324,_0x1056dd);}(function(_0x30fd34,_0x2d78d1){const _0x480644=a81_0x9c14,_0x57e2e4=_0x30fd34();while(!![]){try{const _0x5ef802=parseInt(_0x480644(0x152))/0x1+-parseInt(_0x480644(0x169))/0x2+parseInt(_0x480644(0x14f))/0x3+parseInt(_0x480644(0x148))/0x4+parseInt(_0x480644(0x167))/0x5+parseInt(_0x480644(0x14e))/0x6*(parseInt(_0x480644(0x158))/0x7)+parseInt(_0x480644(0x150))/0x8;if(_0x5ef802===_0x2d78d1)break;else _0x57e2e4['push'](_0x57e2e4['shift']());}catch(_0x2dffc9){_0x57e2e4['push'](_0x57e2e4['shift']());}}}(a81_0x42fe,0xecc38));import a81_0x537649 from'chalk';export function generateDiff(_0xec6401,_0x24070f){const _0x3f11e7=a81_0x9c14,_0x4bfa18=_0xec6401[_0x3f11e7(0x151)]('\x0a'),_0x48e20e=_0x24070f['split']('\x0a'),_0x2b40be=[],_0x857e56=computeLCS(_0x4bfa18,_0x48e20e);let _0x128ab6=0x0,_0x34823f=0x0,_0x54306c=0x0;while(_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]||_0x34823f<_0x48e20e[_0x3f11e7(0x161)]){if(_0x54306c<_0x857e56[_0x3f11e7(0x161)]&&_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]&&_0x4bfa18[_0x128ab6]===_0x857e56[_0x54306c])_0x34823f<_0x48e20e[_0x3f11e7(0x161)]&&_0x48e20e[_0x34823f]===_0x857e56[_0x54306c]?(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x162),'content':_0x4bfa18[_0x128ab6]}),_0x128ab6++,_0x34823f++,_0x54306c++):(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x14a),'content':_0x48e20e[_0x34823f]}),_0x34823f++);else{if(_0x54306c<_0x857e56[_0x3f11e7(0x161)]&&_0x34823f<_0x48e20e['length']&&_0x48e20e[_0x34823f]===_0x857e56[_0x54306c])_0x2b40be[_0x3f11e7(0x166)]({'type':'removed','content':_0x4bfa18[_0x128ab6]}),_0x128ab6++;else{if(_0x128ab6<_0x4bfa18[_0x3f11e7(0x161)]&&(_0x54306c>=_0x857e56[_0x3f11e7(0x161)]||_0x4bfa18[_0x128ab6]!==_0x857e56[_0x54306c]))_0x2b40be['push']({'type':_0x3f11e7(0x15d),'content':_0x4bfa18[_0x128ab6]}),_0x128ab6++;else _0x34823f<_0x48e20e[_0x3f11e7(0x161)]&&(_0x2b40be[_0x3f11e7(0x166)]({'type':_0x3f11e7(0x14a),'content':_0x48e20e[_0x34823f]}),_0x34823f++);}}}return _0x2b40be;}function computeLCS(_0x3c69c7,_0x1f3278){const _0x3273ba=a81_0x9c14,_0x158e60=_0x3c69c7[_0x3273ba(0x161)],_0x5c7dff=_0x1f3278[_0x3273ba(0x161)],_0x49ecc0=Array(_0x158e60+0x1)[_0x3273ba(0x155)](null)[_0x3273ba(0x168)](()=>Array(_0x5c7dff+0x1)[_0x3273ba(0x155)](0x0));for(let _0x1a5c87=0x1;_0x1a5c87<=_0x158e60;_0x1a5c87++){for(let _0x553c7b=0x1;_0x553c7b<=_0x5c7dff;_0x553c7b++){_0x3c69c7[_0x1a5c87-0x1]===_0x1f3278[_0x553c7b-0x1]?_0x49ecc0[_0x1a5c87][_0x553c7b]=_0x49ecc0[_0x1a5c87-0x1][_0x553c7b-0x1]+0x1:_0x49ecc0[_0x1a5c87][_0x553c7b]=Math[_0x3273ba(0x15e)](_0x49ecc0[_0x1a5c87-0x1][_0x553c7b],_0x49ecc0[_0x1a5c87][_0x553c7b-0x1]);}}const _0x5157bb=[];let _0x3c1335=_0x158e60,_0x156033=_0x5c7dff;while(_0x3c1335>0x0&&_0x156033>0x0){if(_0x3c69c7[_0x3c1335-0x1]===_0x1f3278[_0x156033-0x1])_0x5157bb[_0x3273ba(0x165)](_0x3c69c7[_0x3c1335-0x1]),_0x3c1335--,_0x156033--;else _0x49ecc0[_0x3c1335-0x1][_0x156033]>_0x49ecc0[_0x3c1335][_0x156033-0x1]?_0x3c1335--:_0x156033--;}return _0x5157bb;}export function formatDiffWithColors(_0x46ad2f,_0x4290ad=0x3){const _0x1ec026=a81_0x9c14,_0x4088c5=new Set();_0x46ad2f[_0x1ec026(0x157)]((_0x53e210,_0x20d9e4)=>{const _0x417798=_0x1ec026;_0x53e210[_0x417798(0x16c)]!=='unchanged'&&_0x4088c5[_0x417798(0x14d)](_0x20d9e4);});if(_0x4088c5['size']===0x0)return'';const _0x18ec87=new Set();for(const _0x3cfd6b of _0x4088c5){for(let _0x1402fd=Math['max'](0x0,_0x3cfd6b-_0x4290ad);_0x1402fd<=Math[_0x1ec026(0x14c)](_0x46ad2f[_0x1ec026(0x161)]-0x1,_0x3cfd6b+_0x4290ad);_0x1402fd++){_0x18ec87[_0x1ec026(0x14d)](_0x1402fd);}}const _0x524f1c=[];let _0xecaaa9=-0x1;const _0x5a07ae=_0x46ad2f['length'],_0x560ca6=Math[_0x1ec026(0x15e)](0x3,String(_0x5a07ae)['length']),_0x17fe66=[];let _0x137c8a=0x0,_0x55d1b8=0x0;for(const _0x3b9648 of _0x46ad2f){if(_0x3b9648['type']===_0x1ec026(0x15d))_0x137c8a++,_0x17fe66[_0x1ec026(0x166)]({'old':_0x137c8a,'new':0x0});else _0x3b9648[_0x1ec026(0x16c)]===_0x1ec026(0x14a)?(_0x55d1b8++,_0x17fe66[_0x1ec026(0x166)]({'old':0x0,'new':_0x55d1b8})):(_0x137c8a++,_0x55d1b8++,_0x17fe66[_0x1ec026(0x166)]({'old':_0x137c8a,'new':_0x55d1b8}));}for(let _0x159fff=0x0;_0x159fff<_0x46ad2f[_0x1ec026(0x161)];_0x159fff++){if(!_0x18ec87[_0x1ec026(0x15c)](_0x159fff))continue;_0xecaaa9!==-0x1&&_0x159fff>_0xecaaa9+0x1&&_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x163)](_0x1ec026(0x164)));_0xecaaa9=_0x159fff;const _0x1891fc=_0x46ad2f[_0x159fff],_0x2e2bd=_0x17fe66[_0x159fff],_0x186315=_0x2e2bd[_0x1ec026(0x153)]>0x0?String(_0x2e2bd[_0x1ec026(0x153)])[_0x1ec026(0x160)](_0x560ca6):'\x20'[_0x1ec026(0x149)](_0x560ca6),_0x3f5111=_0x2e2bd[_0x1ec026(0x154)]>0x0?String(_0x2e2bd[_0x1ec026(0x154)])['padStart'](_0x560ca6):'\x20'[_0x1ec026(0x149)](_0x560ca6);switch(_0x1891fc['type']){case _0x1ec026(0x15d):_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x14b)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x15b)+_0x1891fc[_0x1ec026(0x159)]));break;case _0x1ec026(0x14a):_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x156)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x16a)+_0x1891fc[_0x1ec026(0x159)]));break;default:_0x524f1c[_0x1ec026(0x166)](a81_0x537649[_0x1ec026(0x16b)](_0x186315+'\x20'+_0x3f5111+_0x1ec026(0x15f)+_0x1891fc['content']));break;}}return _0x524f1c['join']('\x0a');}export function hasChanges(_0x5c6b48){const _0x322438=a81_0x9c14;return _0x5c6b48[_0x322438(0x15a)](_0x12d688=>_0x12d688['type']!==_0x322438(0x162));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a82_0x59fe(_0x1f1833,_0x257668){const _0x3651c4=a82_0x3651();return a82_0x59fe=function(_0x59fe39,_0x2567a6){_0x59fe39=_0x59fe39-0xa6;let _0x29e983=_0x3651c4[_0x59fe39];return _0x29e983;},a82_0x59fe(_0x1f1833,_0x257668);}(function(_0x50b97b,_0x2d7e63){const _0x566864=a82_0x59fe,_0x4b88f6=_0x50b97b();while(!![]){try{const _0x4b6f4e=-parseInt(_0x566864(0xc5))/0x1*(-parseInt(_0x566864(0xb7))/0x2)+-parseInt(_0x566864(0xcd))/0x3*(-parseInt(_0x566864(0xcf))/0x4)+parseInt(_0x566864(0xd4))/0x5+parseInt(_0x566864(0xc2))/0x6+-parseInt(_0x566864(0xad))/0x7+parseInt(_0x566864(0xbe))/0x8*(parseInt(_0x566864(0xc4))/0x9)+-parseInt(_0x566864(0xcc))/0xa*(parseInt(_0x566864(0xbc))/0xb);if(_0x4b6f4e===_0x2d7e63)break;else _0x4b88f6['push'](_0x4b88f6['shift']());}catch(_0x1591e9){_0x4b88f6['push'](_0x4b88f6['shift']());}}}(a82_0x3651,0x4f31e));function a82_0x3651(){const _0x494897=['1320888aXqzkI','Attributes','27ZPjjJl','22241arAFjt','Behaviors','error','map','setJobId','entries','trim','10vteELa','6hiJRbq','behavior','512188GVOPgV','verbose','sort','length','columns','2458865pQJZZN','\x20\x20\x20\x20','size','localeCompare','type','behaviorName','get','data','dim','3918971bSdupB','Schema\x20query:\x0a','default','push','parentColumn','varchar','source','execute','name','column_name','12ljQXtD','attribute','parentTableName','YES','startsWith','8209399iUtTMc','information_schema','1410888gyBpDH','filter','key','\x0a)\x20AS\x20segment_query\x20LIMIT\x200'];a82_0x3651=function(){return _0x494897;};return a82_0x3651();}import a82_0x11d25d from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x536bff){const _0x2ef23a=a82_0x59fe,_0x2ed330=_0x536bff[_0x2ef23a(0xd3)][_0x2ef23a(0xc8)](_0x188987=>({'column_name':_0x188987[_0x2ef23a(0xb5)],'column_type':_0x188987[_0x2ef23a(0xa8)],'null':_0x2ef23a(0xba),'key':null,'default':null,'extra':null}));return{..._0x536bff,'columns':[{'name':_0x2ef23a(0xb6),'type':'varchar'},{'name':'column_type','type':'varchar'},{'name':'null','type':_0x2ef23a(0xb2)},{'name':_0x2ef23a(0xc0),'type':'varchar'},{'name':_0x2ef23a(0xaf),'type':'varchar'},{'name':'extra','type':'varchar'}],'data':_0x2ed330};}export async function executeSchemaQuery(_0x4a0ee9,_0xcf6852,_0x4896b9){const _0x2d1f77=a82_0x59fe,_0x3edc80=_0x4a0ee9[_0x2d1f77(0xcb)]()['replace'](/;+$/,''),_0x115c34='SELECT\x20*\x20FROM\x20(\x0a'+_0x3edc80+_0x2d1f77(0xc1);_0x4896b9[_0x2d1f77(0xd0)]&&console[_0x2d1f77(0xc7)](_0x2d1f77(0xae)+_0x115c34);const _0x4d0edb=await withQuerySpinner('Fetching\x20schema...',async _0x58d16a=>{const _0x3fced3=_0x2d1f77,_0x351fca=await _0xcf6852['query'][_0x3fced3(0xb4)](_0x115c34,{'catalog':'td','schema':_0x3fced3(0xbd),'onJobId':_0x1e00ac=>{const _0x22e180=_0x3fced3;_0x58d16a[_0x22e180(0xc9)](_0x1e00ac);}});return _0x351fca;},{'verbose':_0x4896b9[_0x2d1f77(0xd0)]});return buildSchemaResult(_0x4d0edb[_0x2d1f77(0xab)]);}export function displayFieldsHumanReadable(_0x33b8a6,_0x44373e){const _0xd5190a=a82_0x59fe,_0x272cf4=_0x33b8a6[_0xd5190a(0xbf)](_0xca9516=>_0xca9516[_0xd5190a(0xb3)]===_0xd5190a(0xb8)),_0x3c2158=_0x33b8a6['filter'](_0xd17fbf=>_0xd17fbf[_0xd5190a(0xb3)]===_0xd5190a(0xce)),_0x3a98f1=new Map();for(const _0x34d425 of _0x272cf4){const _0x1255e5=_0x34d425[_0xd5190a(0xb9)]||'Unknown',_0x34eebb=_0x3a98f1[_0xd5190a(0xaa)](_0x1255e5)||[];_0x34eebb[_0xd5190a(0xb0)](_0x34d425),_0x3a98f1['set'](_0x1255e5,_0x34eebb);}const _0x34040b=new Map();for(const _0x3a58a8 of _0x3c2158){const _0x1170b6=_0x3a58a8[_0xd5190a(0xa9)]||'Unknown',_0x5c27ff=_0x34040b[_0xd5190a(0xaa)](_0x1170b6)||[];_0x5c27ff[_0xd5190a(0xb0)](_0x3a58a8),_0x34040b['set'](_0x1170b6,_0x5c27ff);}console['error']('\x0a'+a82_0x11d25d['bold'](_0x44373e));if(_0x3a98f1['size']>0x0){console[_0xd5190a(0xc7)]('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc3)));const _0x207650=[..._0x3a98f1[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x50389b,_0x5ee71b)=>_0x50389b[0x0]['localeCompare'](_0x5ee71b[0x0]));for(const [_0x1e7d0f,_0x3c1a47]of _0x207650){console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x1e7d0f));const _0x11428c=[..._0x3c1a47][_0xd5190a(0xd1)]((_0x269361,_0x2d9bd0)=>_0x269361[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x2d9bd0[_0xd5190a(0xb5)]));for(const _0x2a83a3 of _0x11428c){const _0x378cf9=_0x2a83a3[_0xd5190a(0xb1)]&&_0x2a83a3[_0xd5190a(0xb1)]!==_0x2a83a3['name']?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2a83a3['parentColumn']+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x2a83a3['name']+_0x378cf9+':\x20'+a82_0x11d25d['cyan'](_0x2a83a3[_0xd5190a(0xa8)]));}}}if(_0x34040b[_0xd5190a(0xa6)]>0x0){console['error']('\x0a'+a82_0x11d25d[_0xd5190a(0xac)](_0xd5190a(0xc6)));const _0x19283a=[..._0x34040b[_0xd5190a(0xca)]()][_0xd5190a(0xd1)]((_0x57067f,_0x3e82c2)=>_0x57067f[0x0]['localeCompare'](_0x3e82c2[0x0]));for(const [_0x50840f,_0x286960]of _0x19283a){const _0x27962f=_0x286960[0x0],_0x3df54b=_0x27962f?.[_0xd5190a(0xb9)]||'';console[_0xd5190a(0xc7)]('\x20\x20'+a82_0x11d25d['bold'](_0x50840f)+(_0x3df54b?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x3df54b+')'):''));const _0x5f0a9e=[..._0x286960][_0xd5190a(0xd1)]((_0x1994e3,_0x1892e1)=>_0x1994e3[_0xd5190a(0xb5)][_0xd5190a(0xa7)](_0x1892e1[_0xd5190a(0xb5)]));for(const _0x2c64e7 of _0x5f0a9e){const _0x58e8dd=_0x2c64e7[_0xd5190a(0xb5)][_0xd5190a(0xbb)](_0x50840f+'.')?_0x2c64e7[_0xd5190a(0xb5)]['slice'](_0x50840f[_0xd5190a(0xd2)]+0x1):_0x2c64e7[_0xd5190a(0xb5)],_0xd1584d=_0x2c64e7[_0xd5190a(0xb1)]&&_0x2c64e7[_0xd5190a(0xb1)]!==_0x58e8dd?'\x20'+a82_0x11d25d[_0xd5190a(0xac)]('('+_0x2c64e7[_0xd5190a(0xb1)]+')'):'';console[_0xd5190a(0xc7)](_0xd5190a(0xd5)+_0x58e8dd+_0xd1584d+':\x20'+a82_0x11d25d['cyan'](_0x2c64e7[_0xd5190a(0xa8)]));}}}console[_0xd5190a(0xc7)]('');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x31ab(){const _0x2146ca=['toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1977387tGwNcB','343125NovUGj','dirname','3480WmxBxP','12355oBbFtA','mode','2aCigLc','writeFileSync','warn','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','statSync','2399864vZIkQG','existsSync','4247040fNtEdo','Warning:\x20','2220273FlDsNH','550170asyJdW','chmodSync','60tgXnst'];a83_0x31ab=function(){return _0x2146ca;};return a83_0x31ab();}(function(_0x1836c6,_0x1f0886){const _0x298c5f=a83_0x1a8b,_0x42702b=_0x1836c6();while(!![]){try{const _0x3e8194=-parseInt(_0x298c5f(0x116))/0x1+parseInt(_0x298c5f(0x121))/0x2*(parseInt(_0x298c5f(0x11b))/0x3)+parseInt(_0x298c5f(0x128))/0x4+parseInt(_0x298c5f(0x11c))/0x5*(parseInt(_0x298c5f(0x118))/0x6)+-parseInt(_0x298c5f(0x11f))/0x7*(parseInt(_0x298c5f(0x11e))/0x8)+parseInt(_0x298c5f(0x115))/0x9+-parseInt(_0x298c5f(0x113))/0xa;if(_0x3e8194===_0x1f0886)break;else _0x42702b['push'](_0x42702b['shift']());}catch(_0x5174c2){_0x42702b['push'](_0x42702b['shift']());}}}(a83_0x31ab,0x6db71));import*as a83_0x12a4a2 from'node:fs';import*as a83_0x40af7a from'node:path';function a83_0x1a8b(_0xc32a89,_0x14f9a2){const _0x31ab79=a83_0x31ab();return a83_0x1a8b=function(_0x1a8bfe,_0x521982){_0x1a8bfe=_0x1a8bfe-0x112;let _0x11df67=_0x31ab79[_0x1a8bfe];return _0x11df67;},a83_0x1a8b(_0xc32a89,_0x14f9a2);}export function setSecureFilePermissions(_0x416408){const _0x2c60e3=a83_0x1a8b;try{a83_0x12a4a2[_0x2c60e3(0x117)](_0x416408,0x180);}catch{console[_0x2c60e3(0x123)](_0x2c60e3(0x11a)+_0x416408);}}export function setSecureDirectoryPermissions(_0x3265ab){const _0x252004=a83_0x1a8b;try{a83_0x12a4a2[_0x252004(0x117)](_0x3265ab,0x1c0);}catch{console[_0x252004(0x123)](_0x252004(0x11a)+_0x3265ab);}}export function createSecureDirectory(_0x52e9c9){const _0x46fad5=a83_0x1a8b;!a83_0x12a4a2[_0x46fad5(0x112)](_0x52e9c9)&&(a83_0x12a4a2[_0x46fad5(0x124)](_0x52e9c9,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x52e9c9));}export function validateSecureFilePermissions(_0xb51c69){const _0x403aa3=a83_0x1a8b;try{const _0x153878=a83_0x12a4a2[_0x403aa3(0x127)](_0xb51c69),_0x59fe7e=_0x153878[_0x403aa3(0x120)]&0x1ff,_0x3fe803=(_0x59fe7e&0x3f)!==0x0;if(_0x3fe803)return console[_0x403aa3(0x123)](_0x403aa3(0x114)+_0xb51c69+'\x20has\x20insecure\x20permissions\x20('+_0x59fe7e[_0x403aa3(0x119)](0x8)+_0x403aa3(0x126)+_0x403aa3(0x125)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x491f58,_0x4e08d4){const _0x3fca61=a83_0x1a8b,_0x39ef45=a83_0x40af7a[_0x3fca61(0x11d)](_0x491f58);createSecureDirectory(_0x39ef45),a83_0x12a4a2[_0x3fca61(0x122)](_0x491f58,_0x4e08d4,{'mode':0x180}),setSecureFilePermissions(_0x491f58);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x317d27,_0x3a39fa){const _0xbc631f=a84_0x1ae5,_0x40492a=_0x317d27();while(!![]){try{const _0x4a2176=parseInt(_0xbc631f(0x1e0))/0x1+parseInt(_0xbc631f(0x1e3))/0x2*(-parseInt(_0xbc631f(0x1e1))/0x3)+parseInt(_0xbc631f(0x1ee))/0x4*(-parseInt(_0xbc631f(0x1e6))/0x5)+parseInt(_0xbc631f(0x1df))/0x6+parseInt(_0xbc631f(0x1e2))/0x7*(-parseInt(_0xbc631f(0x1ed))/0x8)+parseInt(_0xbc631f(0x1e5))/0x9*(parseInt(_0xbc631f(0x1eb))/0xa)+parseInt(_0xbc631f(0x1e8))/0xb;if(_0x4a2176===_0x3a39fa)break;else _0x40492a['push'](_0x40492a['shift']());}catch(_0x28ffb8){_0x40492a['push'](_0x40492a['shift']());}}}(a84_0x267f,0xb49a1));export function detectFormatFromExtension(_0x19b880){const _0x503af0=a84_0x1ae5,_0x36ea14=_0x19b880[_0x503af0(0x1e7)]()['split']('.')['pop']();switch(_0x36ea14){case _0x503af0(0x1e4):return _0x503af0(0x1e4);case _0x503af0(0x1ef):return _0x503af0(0x1ef);case _0x503af0(0x1ec):case _0x503af0(0x1e9):return _0x503af0(0x1ec);case _0x503af0(0x1f0):case'text':return _0x503af0(0x1ea);default:return undefined;}}function a84_0x267f(){const _0x21d479=['626hgklLK','json','9fuhXDJ','50980mfxkuN','toLowerCase','13368839bPYHMG','tab','table','10078230adCEsJ','tsv','812872FYwsrK','324IhBbpk','jsonl','txt','2469858GBhjbN','676569CBHuie','12837GGcFeA','28wRrKZW'];a84_0x267f=function(){return _0x21d479;};return a84_0x267f();}function a84_0x1ae5(_0x2825ae,_0x52c163){const _0x267f39=a84_0x267f();return a84_0x1ae5=function(_0x1ae52c,_0x5129f9){_0x1ae52c=_0x1ae52c-0x1df;let _0x47b113=_0x267f39[_0x1ae52c];return _0x47b113;},a84_0x1ae5(_0x2825ae,_0x52c163);}export function resolveOutputFormat(_0x1a8444,_0x5146c8,_0x113ad9){if(_0x1a8444)return _0x1a8444;if(_0x5146c8){const _0xe2ac65=detectFormatFromExtension(_0x5146c8);if(_0xe2ac65)return _0xe2ac65;}return _0x113ad9;}
|
package/dist/utils/formatters.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe8e20c,_0x570327){const _0x1cdbf7=a85_0x2af6,_0x4df4b1=_0xe8e20c();while(!![]){try{const _0x4e0922=-parseInt(_0x1cdbf7(0x1ed))/0x1*(-parseInt(_0x1cdbf7(0x1fd))/0x2)+parseInt(_0x1cdbf7(0x21e))/0x3+parseInt(_0x1cdbf7(0x1f6))/0x4+parseInt(_0x1cdbf7(0x21d))/0x5*(-parseInt(_0x1cdbf7(0x207))/0x6)+parseInt(_0x1cdbf7(0x216))/0x7+parseInt(_0x1cdbf7(0x1f3))/0x8+-parseInt(_0x1cdbf7(0x224))/0x9;if(_0x4e0922===_0x570327)break;else _0x4df4b1['push'](_0x4df4b1['shift']());}catch(_0x403d8b){_0x4df4b1['push'](_0x4df4b1['shift']());}}}(a85_0x109e,0x43f64));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 a85_0x2af6(_0x4d3938,_0xde5c17){const _0x109e1a=a85_0x109e();return a85_0x2af6=function(_0x2af676,_0x1f9562){_0x2af676=_0x2af676-0x1ed;let _0x42bd12=_0x109e1a[_0x2af676];return _0x42bd12;},a85_0x2af6(_0x4d3938,_0xde5c17);}function getTerminalWidth(){const _0x22f5bd=a85_0x2af6;return process[_0x22f5bd(0x1f7)][_0x22f5bd(0x1f1)]||Infinity;}export function formatAsTable(_0x1a44d1,_0x4cabba=DEFAULT_MAX_DISPLAY_ROWS,_0x492f09=![],_0x1a01b8={}){const _0x3df6e8=a85_0x2af6;if(_0x1a44d1[_0x3df6e8(0x21c)][_0x3df6e8(0x1ee)]===0x0)return _0x3df6e8(0x1fa);const _0x314245=_0x1a44d1[_0x3df6e8(0x1f1)][_0x3df6e8(0x201)](_0x59454c=>_0x59454c[_0x3df6e8(0x20d)]),_0x225a4f=_0x1a44d1[_0x3df6e8(0x1f1)][_0x3df6e8(0x201)](_0x469a65=>simplifyType(_0x469a65[_0x3df6e8(0x204)])),_0x51dbbd=_0x1a44d1['data'][_0x3df6e8(0x1ef)](0x0,_0x4cabba),_0x581e02=_0x1a44d1['data'][_0x3df6e8(0x1ee)],_0x3de2b6=_0x581e02>_0x4cabba,_0x342eec=[],_0x141ef1=getTerminalWidth(),_0x2f5474=_0x141ef1!==Infinity,_0x3ffae4=0x32;let _0x11c762=_0x314245[_0x3df6e8(0x201)]((_0xc230a1,_0x5748b8)=>{const _0x5009b3=_0x3df6e8,_0x53fc44=stringWidth(_0x225a4f[_0x5748b8]),_0x432315=Math['max'](..._0x51dbbd[_0x5009b3(0x201)](_0x3bd286=>{const _0x570651=_0x3bd286[_0xc230a1];return stringWidth(formatValue(_0x570651));})),_0x1e33f7=Math[_0x5009b3(0x218)](stringWidth(_0xc230a1),_0x53fc44,_0x432315);return _0x492f09?_0x1e33f7:Math[_0x5009b3(0x1f2)](_0x1e33f7,_0x3ffae4);});if(_0x2f5474&&!_0x492f09&&_0x314245[_0x3df6e8(0x1ee)]>0x0){const _0x70dd5b=_0x2fbe42=>{let _0x24d587=0x1;for(const _0x459638 of _0x2fbe42){_0x24d587+=_0x459638+0x3;}return _0x24d587+0x1;};let _0x499652=_0x70dd5b(_0x11c762);if(_0x499652>_0x141ef1){const _0x21199f=0x3;for(let _0x1d5166=_0x11c762[_0x3df6e8(0x1ee)]-0x1;_0x1d5166>=0x0;_0x1d5166--){_0x499652=_0x70dd5b(_0x11c762);if(_0x499652<=_0x141ef1)break;const _0x48aeeb=_0x11c762[_0x1d5166],_0x16116a=_0x499652-_0x141ef1,_0x29db0c=_0x48aeeb-_0x21199f,_0x5b924f=Math[_0x3df6e8(0x1f2)](_0x16116a,_0x29db0c);_0x5b924f>0x0&&(_0x11c762[_0x1d5166]=_0x48aeeb-_0x5b924f);}}}const _0x5a995f=_0x314245,_0x23e517=_0x225a4f,_0x4c5526=_0x11c762,_0x1974a5=_0x11c762;_0x342eec[_0x3df6e8(0x1ff)](colorBorder('┌'+_0x1974a5[_0x3df6e8(0x201)](_0x1a2070=>'─'[_0x3df6e8(0x210)](_0x1a2070+0x2))[_0x3df6e8(0x1f4)]('┬')+'┐',_0x1a01b8));const _0x1d6346=_0x5a995f[_0x3df6e8(0x201)]((_0x20f8ce,_0x20129f)=>centerAlign(_0x20f8ce,_0x4c5526[_0x20129f]));_0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x1d6346['join']('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8));const _0x407b30=_0x23e517['map']((_0x1cc70e,_0x1dcfac)=>colorType(centerAlign(_0x1cc70e,_0x4c5526[_0x1dcfac]),_0x1a01b8));_0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x407b30[_0x3df6e8(0x1f4)]('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8)),_0x342eec['push'](colorBorder('├'+_0x1974a5[_0x3df6e8(0x201)](_0x4fcb62=>'─'[_0x3df6e8(0x210)](_0x4fcb62+0x2))[_0x3df6e8(0x1f4)]('┼')+'┤',_0x1a01b8));const _0x236843=(_0x3bc9f1,_0x4efd2e)=>{const _0x1e4fd6=_0x3df6e8,_0x45ad23=stringWidth(_0x3bc9f1);if(_0x45ad23<=_0x4efd2e)return _0x3bc9f1;let _0x239c04=_0x3bc9f1;while(stringWidth(_0x239c04+'…')>_0x4efd2e&&_0x239c04[_0x1e4fd6(0x1ee)]>0x0){_0x239c04=_0x239c04['slice'](0x0,-0x1);}return _0x239c04+'…';};_0x51dbbd[_0x3df6e8(0x214)](_0xe72444=>{const _0x476359=_0x3df6e8,_0x1ffc40=_0x314245[_0x476359(0x201)]((_0x1ca64a,_0x4455ad)=>{const _0x182593=_0x476359,_0x35a727=_0xe72444[_0x1ca64a],_0x2d6395=formatValue(_0x35a727),_0x5d30dd=_0x4c5526[_0x4455ad],_0x484c4f=_0x236843(_0x2d6395,_0x5d30dd),_0x5f392d=typeof _0x35a727===_0x182593(0x223)||typeof _0x35a727===_0x182593(0x1f8)&&/^-?\d+$/[_0x182593(0x215)](_0x35a727);return _0x5f392d?padStart(_0x484c4f,_0x5d30dd):padEnd(_0x484c4f,_0x5d30dd);});_0x342eec['push'](colorBorder('│',_0x1a01b8)+'\x20'+_0x1ffc40['join']('\x20'+colorBorder('│',_0x1a01b8)+'\x20')+'\x20'+colorBorder('│',_0x1a01b8));});const _0x44531d=_0x1974a5['reduce']((_0x27203d,_0x242d5e)=>_0x27203d+_0x242d5e+0x3,-0x1);_0x342eec[_0x3df6e8(0x1ff)](colorBorder('├'+_0x1974a5[_0x3df6e8(0x201)](_0x284260=>'─'[_0x3df6e8(0x210)](_0x284260+0x2))['join']('┴')+'┤',_0x1a01b8));let _0xfd4c2e;_0x3de2b6?_0xfd4c2e=_0x581e02+'\x20rows\x20('+_0x4cabba+_0x3df6e8(0x1fe):_0xfd4c2e=_0x581e02+_0x3df6e8(0x213)+(_0x581e02===0x1?'':'s');const _0x2c32d1=_0xfd4c2e[_0x3df6e8(0x221)](_0x44531d-0x2);return _0x342eec[_0x3df6e8(0x1ff)](colorBorder('│',_0x1a01b8)+'\x20'+_0x2c32d1+'\x20'+colorBorder('│',_0x1a01b8)),_0x342eec[_0x3df6e8(0x1ff)](colorBorder('└'+'─'[_0x3df6e8(0x210)](_0x44531d)+'┘',_0x1a01b8)),_0x342eec['join']('\x0a');}function simplifyType(_0x5bc354){const _0x2f9d01=a85_0x2af6,_0x98bfdc={'varchar':_0x2f9d01(0x1f8),'bigint':_0x2f9d01(0x202),'integer':_0x2f9d01(0x20c),'double':'double','boolean':_0x2f9d01(0x1fb),'date':_0x2f9d01(0x222),'timestamp':_0x2f9d01(0x1fc),'array':_0x2f9d01(0x206),'map':_0x2f9d01(0x201),'row':_0x2f9d01(0x20a)},_0x10ce92=_0x5bc354['toLowerCase']();for(const [_0x3d0628,_0xdfbc8b]of Object[_0x2f9d01(0x21b)](_0x98bfdc)){if(_0x10ce92[_0x2f9d01(0x1f9)](_0x3d0628))return _0xdfbc8b;}return _0x5bc354[_0x2f9d01(0x1ee)]>0xa?_0x5bc354[_0x2f9d01(0x1f0)](0x0,0xa):_0x5bc354;}export function formatAsJSON(_0xb2b525,_0x174ea4={}){const _0x58719e=a85_0x2af6;if(_0xb2b525['data']['length']===0x0)return'[]';if(shouldUseColor(_0x174ea4))return colorizeJSON(_0xb2b525[_0x58719e(0x21c)],_0x174ea4);const _0x5b2e13=_0xb2b525['data'][_0x58719e(0x201)](_0x657ca5=>'\x20\x20'+JSON[_0x58719e(0x21a)](_0x657ca5));return'[\x0a'+_0x5b2e13[_0x58719e(0x1f4)](',\x0a')+'\x0a]';}function a85_0x109e(){const _0x2e5501=['array','156bDWWVr','json','toFixed','row','jsonl','int','name','false','replace','repeat','toString','tsv','\x20row','forEach','test','2372209cwHFkb','floor','max','true','stringify','entries','data','89090pMGLSN','1576551oozxiz','pow','boolean','padEnd','date','number','9392499QoMLtU','3lYgnBB','length','slice','substring','columns','min','3012184zkOeLd','join','log','1730164WUZQZP','stdout','string','startsWith','No\x20rows\x20returned','bool','timestamp','74522AQdVdO','\x20shown)','push','toISOString','map','long','object','type','0\x20B'];a85_0x109e=function(){return _0x2e5501;};return a85_0x109e();}export function formatAsJSONL(_0xc7b459,_0x573f8b={}){const _0x221946=a85_0x2af6;if(_0xc7b459['data']['length']===0x0)return'';if(shouldUseColor(_0x573f8b))return _0xc7b459[_0x221946(0x21c)][_0x221946(0x201)](_0x34bb59=>colorizeJSONCompact(_0x34bb59,_0x573f8b))[_0x221946(0x1f4)]('\x0a');return _0xc7b459[_0x221946(0x21c)]['map'](_0x232dd4=>JSON[_0x221946(0x21a)](_0x232dd4))[_0x221946(0x1f4)]('\x0a');}export function formatAsTSV(_0x2f43cf){const _0x299de0=a85_0x2af6;if(_0x2f43cf[_0x299de0(0x21c)]['length']===0x0)return'';const _0x477e36=[],_0x3445a6=_0x2f43cf['columns'][_0x299de0(0x201)](_0x18e14e=>_0x18e14e[_0x299de0(0x20d)]);return _0x477e36['push'](_0x3445a6['join']('\x09')),_0x2f43cf[_0x299de0(0x21c)][_0x299de0(0x214)](_0x59fbdd=>{const _0x452355=_0x299de0,_0x1a729e=_0x3445a6[_0x452355(0x201)](_0xaa94fb=>{const _0x59292c=_0x59fbdd[_0xaa94fb];return formatValueForTSV(_0x59292c);});_0x477e36[_0x452355(0x1ff)](_0x1a729e[_0x452355(0x1f4)]('\x09'));}),_0x477e36[_0x299de0(0x1f4)]('\x0a');}function formatValue(_0x3354d9){const _0x9728e3=a85_0x2af6;if(_0x3354d9===null||_0x3354d9===undefined)return'';if(typeof _0x3354d9===_0x9728e3(0x1f8)){const _0x15cc4c=_0x3354d9[_0x9728e3(0x20f)](/\n/g,'\x5cn')[_0x9728e3(0x20f)](/\r/g,'\x5cr')[_0x9728e3(0x20f)](/\t/g,'\x5ct');return _0x15cc4c;}if(typeof _0x3354d9===_0x9728e3(0x223))return String(_0x3354d9);if(typeof _0x3354d9==='boolean')return _0x3354d9?_0x9728e3(0x219):_0x9728e3(0x20e);if(_0x3354d9 instanceof Date)return _0x3354d9[_0x9728e3(0x200)]();if(typeof _0x3354d9===_0x9728e3(0x203))return JSON['stringify'](_0x3354d9);return String(_0x3354d9);}function formatValueForTSV(_0x2fda9e){const _0x5d2c3d=a85_0x2af6;if(_0x2fda9e===null||_0x2fda9e===undefined)return'';if(typeof _0x2fda9e===_0x5d2c3d(0x1f8))return _0x2fda9e[_0x5d2c3d(0x20f)](/\t/g,'\x5ct')[_0x5d2c3d(0x20f)](/\n/g,'\x5cn');if(typeof _0x2fda9e===_0x5d2c3d(0x223)||typeof _0x2fda9e===_0x5d2c3d(0x220))return String(_0x2fda9e);if(_0x2fda9e instanceof Date)return _0x2fda9e[_0x5d2c3d(0x200)]();if(typeof _0x2fda9e===_0x5d2c3d(0x203))return JSON[_0x5d2c3d(0x21a)](_0x2fda9e);return String(_0x2fda9e);}export function formatQueryResult(_0x97f23e,_0x567b44){const _0x391890=a85_0x2af6;switch(_0x567b44){case'table':return formatAsTable(_0x97f23e);case _0x391890(0x208):return formatAsJSON(_0x97f23e);case _0x391890(0x20b):return formatAsJSONL(_0x97f23e);case _0x391890(0x212):return formatAsTSV(_0x97f23e);default:return formatAsJSON(_0x97f23e);}}export function formatBytes(_0x2d06d0){const _0x2812af=a85_0x2af6;if(_0x2d06d0===0x0)return _0x2812af(0x205);const _0x91b936=['B','KB','MB','GB','TB'],_0x1caebf=0x400,_0x494e6a=Math[_0x2812af(0x217)](Math[_0x2812af(0x1f5)](_0x2d06d0)/Math[_0x2812af(0x1f5)](_0x1caebf)),_0x2857f6=_0x2d06d0/Math['pow'](_0x1caebf,_0x494e6a),_0xc6186b=_0x2857f6>=0xa?0x1:0x2;return _0x2857f6[_0x2812af(0x209)](_0xc6186b)+'\x20'+_0x91b936[_0x494e6a];}export function formatRows(_0x4833e2){const _0x2f6180=a85_0x2af6;if(_0x4833e2==null)return'-';if(_0x4833e2===0x0)return'0';if(_0x4833e2<0x3e8)return _0x4833e2[_0x2f6180(0x211)]();const _0x4e7fa1=['','K','M','B','T'],_0x2af266=0x3e8,_0x4745d5=Math['floor'](Math[_0x2f6180(0x1f5)](_0x4833e2)/Math['log'](_0x2af266)),_0xfe8d29=_0x4833e2/Math[_0x2f6180(0x21f)](_0x2af266,_0x4745d5),_0xa7e832=_0xfe8d29>=0xa?0x1:0x2;return''+_0xfe8d29[_0x2f6180(0x209)](_0xa7e832)+_0x4e7fa1[_0x4745d5];}
|
|
1
|
+
(function(_0x3da911,_0x373687){const _0xde121e=a85_0x229f,_0x56d224=_0x3da911();while(!![]){try{const _0x4850a8=-parseInt(_0xde121e(0x189))/0x1*(parseInt(_0xde121e(0x17e))/0x2)+parseInt(_0xde121e(0x18f))/0x3+-parseInt(_0xde121e(0x174))/0x4*(-parseInt(_0xde121e(0x18c))/0x5)+-parseInt(_0xde121e(0x18b))/0x6*(parseInt(_0xde121e(0x178))/0x7)+parseInt(_0xde121e(0x16b))/0x8+parseInt(_0xde121e(0x17f))/0x9+-parseInt(_0xde121e(0x18e))/0xa*(parseInt(_0xde121e(0x16c))/0xb);if(_0x4850a8===_0x373687)break;else _0x56d224['push'](_0x56d224['shift']());}catch(_0x54cdaf){_0x56d224['push'](_0x56d224['shift']());}}}(a85_0x3d7c,0x717ff));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a85_0x3d7c(){const _0x39e62a=['replace','substring','forEach','\x20rows\x20(','370692XUypXw','5133339zVjOVK','object','columns','pow','\x20row','No\x20rows\x20returned','array','\x20shown)','repeat','slice','2GDSXeV','boolean','6rNYMMH','5ZJmwaB','tsv','30vLmDQd','407862mRVoWC','data','table','0\x20B','startsWith','jsonl','row','length','date','false','min','stringify','number','7034144SwsdjL','2499112oYBRGM','toString','stdout','map','push','toFixed','join','entries','456004SsmeIA','max','floor','long','1277017DyeIPK','log'];a85_0x3d7c=function(){return _0x39e62a;};return a85_0x3d7c();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x6df167=a85_0x229f;return process[_0x6df167(0x16e)][_0x6df167(0x181)]||Infinity;}export function formatAsTable(_0x39dcf9,_0x46d90b=DEFAULT_MAX_DISPLAY_ROWS,_0x2f66c0=![],_0x379a1a={}){const _0x5bdadf=a85_0x229f;if(_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)]===0x0)return _0x5bdadf(0x184);const _0x54eb17=_0x39dcf9[_0x5bdadf(0x181)][_0x5bdadf(0x16f)](_0x4b4e8e=>_0x4b4e8e['name']),_0x55cbc4=_0x39dcf9['columns'][_0x5bdadf(0x16f)](_0x380c11=>simplifyType(_0x380c11['type'])),_0x68aadd=_0x39dcf9['data'][_0x5bdadf(0x188)](0x0,_0x46d90b),_0x481bd2=_0x39dcf9[_0x5bdadf(0x190)][_0x5bdadf(0x165)],_0x28582c=_0x481bd2>_0x46d90b,_0x1d23ac=[],_0x39599f=getTerminalWidth(),_0x59e5e1=_0x39599f!==Infinity,_0x1f245d=0x32;let _0x16b7ab=_0x54eb17[_0x5bdadf(0x16f)]((_0x24ba34,_0x25eda3)=>{const _0x5759a6=_0x5bdadf,_0x4e8e1a=stringWidth(_0x55cbc4[_0x25eda3]),_0x1b4e17=Math[_0x5759a6(0x175)](..._0x68aadd['map'](_0x5dc4c7=>{const _0x50552d=_0x5dc4c7[_0x24ba34];return stringWidth(formatValue(_0x50552d));})),_0x2070dd=Math[_0x5759a6(0x175)](stringWidth(_0x24ba34),_0x4e8e1a,_0x1b4e17);return _0x2f66c0?_0x2070dd:Math['min'](_0x2070dd,_0x1f245d);});if(_0x59e5e1&&!_0x2f66c0&&_0x54eb17[_0x5bdadf(0x165)]>0x0){const _0x22b912=_0xc2feeb=>{let _0x8db591=0x1;for(const _0x376721 of _0xc2feeb){_0x8db591+=_0x376721+0x3;}return _0x8db591+0x1;};let _0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2>_0x39599f){const _0x2ec735=0x3;for(let _0x87798e=_0x16b7ab[_0x5bdadf(0x165)]-0x1;_0x87798e>=0x0;_0x87798e--){_0x5f3bc2=_0x22b912(_0x16b7ab);if(_0x5f3bc2<=_0x39599f)break;const _0x4bd31f=_0x16b7ab[_0x87798e],_0x3ec83b=_0x5f3bc2-_0x39599f,_0x222e40=_0x4bd31f-_0x2ec735,_0x397cbb=Math[_0x5bdadf(0x168)](_0x3ec83b,_0x222e40);_0x397cbb>0x0&&(_0x16b7ab[_0x87798e]=_0x4bd31f-_0x397cbb);}}}const _0x23ad12=_0x54eb17,_0x5a1f13=_0x55cbc4,_0x579e8c=_0x16b7ab,_0x5fafd2=_0x16b7ab;_0x1d23ac['push'](colorBorder('┌'+_0x5fafd2[_0x5bdadf(0x16f)](_0x12bfbf=>'─'['repeat'](_0x12bfbf+0x2))[_0x5bdadf(0x172)]('┬')+'┐',_0x379a1a));const _0x5ced88=_0x23ad12[_0x5bdadf(0x16f)]((_0xcb870b,_0x1df1fc)=>centerAlign(_0xcb870b,_0x579e8c[_0x1df1fc]));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x5ced88[_0x5bdadf(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));const _0x2878ec=_0x5a1f13[_0x5bdadf(0x16f)]((_0x266a1f,_0x85775)=>colorType(centerAlign(_0x266a1f,_0x579e8c[_0x85775]),_0x379a1a));_0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x2878ec['join']('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac['push'](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x49522e=>'─'[_0x5bdadf(0x187)](_0x49522e+0x2))[_0x5bdadf(0x172)]('┼')+'┤',_0x379a1a));const _0x8750da=(_0x17362f,_0x131793)=>{const _0x5aa453=_0x5bdadf,_0x5ab06f=stringWidth(_0x17362f);if(_0x5ab06f<=_0x131793)return _0x17362f;let _0x3026aa=_0x17362f;while(stringWidth(_0x3026aa+'…')>_0x131793&&_0x3026aa[_0x5aa453(0x165)]>0x0){_0x3026aa=_0x3026aa[_0x5aa453(0x188)](0x0,-0x1);}return _0x3026aa+'…';};_0x68aadd[_0x5bdadf(0x17c)](_0x337455=>{const _0xa85bd5=_0x5bdadf,_0x51d0ce=_0x54eb17['map']((_0x51b9d9,_0x51e701)=>{const _0x251650=a85_0x229f,_0x59c9b3=_0x337455[_0x51b9d9],_0x36cbdb=formatValue(_0x59c9b3),_0x10c5bc=_0x579e8c[_0x51e701],_0x1b0f8c=_0x8750da(_0x36cbdb,_0x10c5bc),_0x397ea1=typeof _0x59c9b3===_0x251650(0x16a)||typeof _0x59c9b3==='string'&&/^-?\d+$/['test'](_0x59c9b3);return _0x397ea1?padStart(_0x1b0f8c,_0x10c5bc):padEnd(_0x1b0f8c,_0x10c5bc);});_0x1d23ac['push'](colorBorder('│',_0x379a1a)+'\x20'+_0x51d0ce[_0xa85bd5(0x172)]('\x20'+colorBorder('│',_0x379a1a)+'\x20')+'\x20'+colorBorder('│',_0x379a1a));});const _0x19f5fd=_0x5fafd2['reduce']((_0x12a3d9,_0x2c2216)=>_0x12a3d9+_0x2c2216+0x3,-0x1);_0x1d23ac[_0x5bdadf(0x170)](colorBorder('├'+_0x5fafd2[_0x5bdadf(0x16f)](_0x2d6f28=>'─'[_0x5bdadf(0x187)](_0x2d6f28+0x2))[_0x5bdadf(0x172)]('┴')+'┤',_0x379a1a));let _0x4773d6;_0x28582c?_0x4773d6=_0x481bd2+_0x5bdadf(0x17d)+_0x46d90b+_0x5bdadf(0x186):_0x4773d6=_0x481bd2+_0x5bdadf(0x183)+(_0x481bd2===0x1?'':'s');const _0x1ab273=_0x4773d6['padEnd'](_0x19f5fd-0x2);return _0x1d23ac[_0x5bdadf(0x170)](colorBorder('│',_0x379a1a)+'\x20'+_0x1ab273+'\x20'+colorBorder('│',_0x379a1a)),_0x1d23ac[_0x5bdadf(0x170)](colorBorder('└'+'─'[_0x5bdadf(0x187)](_0x19f5fd)+'┘',_0x379a1a)),_0x1d23ac['join']('\x0a');}function simplifyType(_0x453e2f){const _0x2cc3de=a85_0x229f,_0x3ce160={'varchar':'string','bigint':_0x2cc3de(0x177),'integer':'int','double':'double','boolean':'bool','date':_0x2cc3de(0x166),'timestamp':'timestamp','array':_0x2cc3de(0x185),'map':_0x2cc3de(0x16f),'row':_0x2cc3de(0x164)},_0xfb1f45=_0x453e2f['toLowerCase']();for(const [_0x1e6474,_0x5093a1]of Object[_0x2cc3de(0x173)](_0x3ce160)){if(_0xfb1f45[_0x2cc3de(0x193)](_0x1e6474))return _0x5093a1;}return _0x453e2f[_0x2cc3de(0x165)]>0xa?_0x453e2f[_0x2cc3de(0x17b)](0x0,0xa):_0x453e2f;}export function formatAsJSON(_0x315839,_0x160a03={}){const _0x3be8c7=a85_0x229f;if(_0x315839['data'][_0x3be8c7(0x165)]===0x0)return'[]';if(shouldUseColor(_0x160a03))return colorizeJSON(_0x315839[_0x3be8c7(0x190)],_0x160a03);const _0x5b65b9=_0x315839[_0x3be8c7(0x190)][_0x3be8c7(0x16f)](_0x57beb9=>'\x20\x20'+JSON[_0x3be8c7(0x169)](_0x57beb9));return'[\x0a'+_0x5b65b9[_0x3be8c7(0x172)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2c5ff6,_0x81ce6={}){const _0x447de8=a85_0x229f;if(_0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x165)]===0x0)return'';if(shouldUseColor(_0x81ce6))return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0xee305d=>colorizeJSONCompact(_0xee305d,_0x81ce6))[_0x447de8(0x172)]('\x0a');return _0x2c5ff6[_0x447de8(0x190)][_0x447de8(0x16f)](_0x387937=>JSON[_0x447de8(0x169)](_0x387937))[_0x447de8(0x172)]('\x0a');}export function formatAsTSV(_0x29c336){const _0x5852d6=a85_0x229f;if(_0x29c336[_0x5852d6(0x190)][_0x5852d6(0x165)]===0x0)return'';const _0x40759e=[],_0x52b8aa=_0x29c336[_0x5852d6(0x181)][_0x5852d6(0x16f)](_0x2574bb=>_0x2574bb['name']);return _0x40759e[_0x5852d6(0x170)](_0x52b8aa[_0x5852d6(0x172)]('\x09')),_0x29c336['data'][_0x5852d6(0x17c)](_0x15b4d1=>{const _0x4e16f5=_0x5852d6,_0x316e79=_0x52b8aa['map'](_0x4a458a=>{const _0xd40a44=_0x15b4d1[_0x4a458a];return formatValueForTSV(_0xd40a44);});_0x40759e['push'](_0x316e79[_0x4e16f5(0x172)]('\x09'));}),_0x40759e[_0x5852d6(0x172)]('\x0a');}function formatValue(_0x1025fe){const _0x5d4fab=a85_0x229f;if(_0x1025fe===null||_0x1025fe===undefined)return'';if(typeof _0x1025fe==='string'){const _0x4f4916=_0x1025fe[_0x5d4fab(0x17a)](/\n/g,'\x5cn')[_0x5d4fab(0x17a)](/\r/g,'\x5cr')[_0x5d4fab(0x17a)](/\t/g,'\x5ct');return _0x4f4916;}if(typeof _0x1025fe===_0x5d4fab(0x16a))return String(_0x1025fe);if(typeof _0x1025fe===_0x5d4fab(0x18a))return _0x1025fe?'true':_0x5d4fab(0x167);if(_0x1025fe instanceof Date)return _0x1025fe['toISOString']();if(typeof _0x1025fe===_0x5d4fab(0x180))return JSON['stringify'](_0x1025fe);return String(_0x1025fe);}function formatValueForTSV(_0x4a9f2e){const _0xf769=a85_0x229f;if(_0x4a9f2e===null||_0x4a9f2e===undefined)return'';if(typeof _0x4a9f2e==='string')return _0x4a9f2e[_0xf769(0x17a)](/\t/g,'\x5ct')[_0xf769(0x17a)](/\n/g,'\x5cn');if(typeof _0x4a9f2e===_0xf769(0x16a)||typeof _0x4a9f2e===_0xf769(0x18a))return String(_0x4a9f2e);if(_0x4a9f2e instanceof Date)return _0x4a9f2e['toISOString']();if(typeof _0x4a9f2e==='object')return JSON[_0xf769(0x169)](_0x4a9f2e);return String(_0x4a9f2e);}export function formatQueryResult(_0x1527ff,_0x4bb75d){const _0x2a47f4=a85_0x229f;switch(_0x4bb75d){case _0x2a47f4(0x191):return formatAsTable(_0x1527ff);case'json':return formatAsJSON(_0x1527ff);case _0x2a47f4(0x163):return formatAsJSONL(_0x1527ff);case _0x2a47f4(0x18d):return formatAsTSV(_0x1527ff);default:return formatAsJSON(_0x1527ff);}}function a85_0x229f(_0x14acc2,_0x48a39e){const _0x3d7cdf=a85_0x3d7c();return a85_0x229f=function(_0x229f52,_0x592fab){_0x229f52=_0x229f52-0x163;let _0x43f4f3=_0x3d7cdf[_0x229f52];return _0x43f4f3;},a85_0x229f(_0x14acc2,_0x48a39e);}export function formatBytes(_0x495199){const _0x438460=a85_0x229f;if(_0x495199===0x0)return _0x438460(0x192);const _0x24becb=['B','KB','MB','GB','TB'],_0x2768cb=0x400,_0x36cfd1=Math[_0x438460(0x176)](Math[_0x438460(0x179)](_0x495199)/Math['log'](_0x2768cb)),_0x362a91=_0x495199/Math[_0x438460(0x182)](_0x2768cb,_0x36cfd1),_0x20be4b=_0x362a91>=0xa?0x1:0x2;return _0x362a91[_0x438460(0x171)](_0x20be4b)+'\x20'+_0x24becb[_0x36cfd1];}export function formatRows(_0x5025d9){const _0x720ca=a85_0x229f;if(_0x5025d9==null)return'-';if(_0x5025d9===0x0)return'0';if(_0x5025d9<0x3e8)return _0x5025d9[_0x720ca(0x16d)]();const _0x3ce492=['','K','M','B','T'],_0x4f828b=0x3e8,_0x2a6f88=Math[_0x720ca(0x176)](Math[_0x720ca(0x179)](_0x5025d9)/Math['log'](_0x4f828b)),_0x271a40=_0x5025d9/Math['pow'](_0x4f828b,_0x2a6f88),_0x26ea2e=_0x271a40>=0xa?0x1:0x2;return''+_0x271a40[_0x720ca(0x171)](_0x26ea2e)+_0x3ce492[_0x2a6f88];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x534d15,_0x38e0b1){const _0x594eb2=a86_0x5ca2,_0x5a7ef8=_0x534d15();while(!![]){try{const _0x41562d=-parseInt(_0x594eb2(0x1ca))/0x1*(-parseInt(_0x594eb2(0x1cd))/0x2)+-parseInt(_0x594eb2(0x1cc))/0x3*(-parseInt(_0x594eb2(0x1ce))/0x4)+parseInt(_0x594eb2(0x1d1))/0x5*(-parseInt(_0x594eb2(0x1d8))/0x6)+-parseInt(_0x594eb2(0x1d6))/0x7+-parseInt(_0x594eb2(0x1cb))/0x8*(-parseInt(_0x594eb2(0x1d4))/0x9)+parseInt(_0x594eb2(0x1d9))/0xa+-parseInt(_0x594eb2(0x1d3))/0xb;if(_0x41562d===_0x38e0b1)break;else _0x5a7ef8['push'](_0x5a7ef8['shift']());}catch(_0x54a5a5){_0x5a7ef8['push'](_0x5a7ef8['shift']());}}}(a86_0x25ee,0x25597));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x26bf6b,_0x17bb17){const _0x1b2b54=a86_0x5ca2;try{if(_0x17bb17){const _0x1419f9=await readFile(_0x26bf6b,'utf-8');try{return JSON[_0x1b2b54(0x1d7)](_0x1419f9);}catch(_0x186b50){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1b2b54(0x1c9)+_0x26bf6b+_0x1b2b54(0x1db)+(_0x186b50 instanceof Error?_0x186b50['message']:String(_0x186b50)));}}else try{return JSON[_0x1b2b54(0x1d7)](_0x26bf6b);}catch(_0x37c397){throw new SDKError(ErrorCode[_0x1b2b54(0x1d5)],_0x1b2b54(0x1dc)+(_0x37c397 instanceof Error?_0x37c397['message']:String(_0x37c397)));}}catch(_0x2ad894){if(_0x2ad894 instanceof SDKError)throw _0x2ad894;if(_0x2ad894 instanceof Error&&_0x1b2b54(0x1c7)in _0x2ad894){const _0x6c1317=_0x2ad894;if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1c6))throw new SDKError(ErrorCode[_0x1b2b54(0x1d2)],'File\x20not\x20found:\x20'+_0x26bf6b);else{if(_0x6c1317[_0x1b2b54(0x1c7)]===_0x1b2b54(0x1cf))throw new SDKError(ErrorCode[_0x1b2b54(0x1da)],_0x1b2b54(0x1c8)+_0x26bf6b);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2ad894 instanceof Error?_0x2ad894[_0x1b2b54(0x1d0)]:String(_0x2ad894)));}}function a86_0x5ca2(_0x2f1838,_0x3c0a3b){const _0x25ee20=a86_0x25ee();return a86_0x5ca2=function(_0x5ca2d9,_0x1db60b){_0x5ca2d9=_0x5ca2d9-0x1c6;let _0x48cd9a=_0x25ee20[_0x5ca2d9];return _0x48cd9a;},a86_0x5ca2(_0x2f1838,_0x3c0a3b);}function a86_0x25ee(){const _0x1592cb=['message','1380vKnoUh','NOT_FOUND','5833135tWcJjv','273231KgRoqR','INVALID_ARGUMENT','1574279djZaef','parse','2034ctucPE','2954010vPfUpY','PERMISSION_DENIED','\x27:\x20','Invalid\x20JSON\x20string:\x20','ENOENT','code','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','124661iAvqzb','64wrFYjs','3seGuyM','4wlutwP','856536mkFtgy','EACCES'];a86_0x25ee=function(){return _0x1592cb;};return a86_0x25ee();}export async function loadJSONFromOptions(_0x24a3db,_0xeafd44){const _0x3fffa3=a86_0x5ca2;if(_0x24a3db&&_0xeafd44)throw new SDKError(ErrorCode[_0x3fffa3(0x1d5)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x24a3db)return await loadJSON(_0x24a3db,![]);if(_0xeafd44)return await loadJSON(_0xeafd44,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x426f9d,_0x595375){const _0x248764=a87_0x5e6b,_0x47de90=_0x426f9d();while(!![]){try{const _0x3560dd=parseInt(_0x248764(0x179))/0x1*(-parseInt(_0x248764(0x175))/0x2)+parseInt(_0x248764(0x17a))/0x3*(-parseInt(_0x248764(0x176))/0x4)+parseInt(_0x248764(0x172))/0x5*(-parseInt(_0x248764(0x16f))/0x6)+parseInt(_0x248764(0x17e))/0x7+-parseInt(_0x248764(0x16d))/0x8+-parseInt(_0x248764(0x170))/0x9+parseInt(_0x248764(0x17b))/0xa*(parseInt(_0x248764(0x171))/0xb);if(_0x3560dd===_0x595375)break;else _0x47de90['push'](_0x47de90['shift']());}catch(_0x543db9){_0x47de90['push'](_0x47de90['shift']());}}}(a87_0x56ed,0xad3ac));export function canCreateAgent(_0x1c31cb,_0x31fd08){const _0x3756d5=a87_0x5e6b;for(const _0x5379bc of _0x1c31cb[_0x3756d5(0x17c)][_0x3756d5(0x173)]){if(_0x5379bc[_0x3756d5(0x16e)]&&!_0x31fd08['has'](_0x5379bc[_0x3756d5(0x16e)]))return![];}return!![];}function a87_0x56ed(){const _0xc4673d=['554544jvbdAP','10450qemIBh','attributes','map','6100731klAAwF','4090552kcuatv','targetAgentId','48684NCeUsO','11046204BPPtfy','47729aIEDlR','845LySeyh','tools','1.0','1693814BXEhzN','16nIYaRL','targetKnowledgeBaseId','get','1RiRljJ'];a87_0x56ed=function(){return _0xc4673d;};return a87_0x56ed();}function a87_0x5e6b(_0x4d4fd5,_0x457fc5){const _0x56edb8=a87_0x56ed();return a87_0x5e6b=function(_0x5e6b15,_0xdaabee){_0x5e6b15=_0x5e6b15-0x16d;let _0xc9d366=_0x56edb8[_0x5e6b15];return _0xc9d366;},a87_0x5e6b(_0x4d4fd5,_0x457fc5);}export function remapToolIds(_0x332fc3,_0x502461,_0x20c2dc){const _0x36bb65=a87_0x5e6b;return _0x332fc3[_0x36bb65(0x17d)](_0x20d557=>({..._0x20d557,'targetKnowledgeBaseId':_0x20d557[_0x36bb65(0x177)]?_0x502461[_0x36bb65(0x178)](_0x20d557[_0x36bb65(0x177)])||_0x20d557['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x20d557[_0x36bb65(0x16e)]?_0x20c2dc['get'](_0x20d557[_0x36bb65(0x16e)])||_0x20d557['targetAgentId']:undefined}));}export function remapVariableIds(_0x1ac819,_0x47eae2){const _0x3c3b20=a87_0x5e6b;return _0x1ac819['map'](_0x1e797a=>({..._0x1e797a,'targetKnowledgeBaseId':_0x47eae2[_0x3c3b20(0x178)](_0x1e797a[_0x3c3b20(0x177)])||_0x1e797a[_0x3c3b20(0x177)]}));}export function isSupportedBackupVersion(_0xeb652b){const _0x5bd435=a87_0x5e6b;return _0xeb652b===_0x5bd435(0x174);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x5569(){const _0x585808=['6ZmXBJX','4863780ddhUva','claude-4.5-haiku','305324KdLhBU','claude-4.5-sonnet','match','1019834UUdURx','11ZbKMGm','765nlaXck','1820696FuBUtq','126328IuMDuP','486RlHDQI','11329250DWlpkv','7028YjnDoh','toLowerCase'];a88_0x5569=function(){return _0x585808;};return a88_0x5569();}const a88_0xa9613b=a88_0x4a0b;(function(_0x310e77,_0x584ae3){const _0x1ff2e6=a88_0x4a0b,_0x16ef90=_0x310e77();while(!![]){try{const _0x5b0b1b=-parseInt(_0x1ff2e6(0x153))/0x1+parseInt(_0x1ff2e6(0x150))/0x2*(-parseInt(_0x1ff2e6(0x14d))/0x3)+parseInt(_0x1ff2e6(0x156))/0x4+-parseInt(_0x1ff2e6(0x14e))/0x5+parseInt(_0x1ff2e6(0x158))/0x6*(parseInt(_0x1ff2e6(0x14b))/0x7)+parseInt(_0x1ff2e6(0x157))/0x8*(parseInt(_0x1ff2e6(0x155))/0x9)+parseInt(_0x1ff2e6(0x14a))/0xa*(parseInt(_0x1ff2e6(0x154))/0xb);if(_0x5b0b1b===_0x584ae3)break;else _0x16ef90['push'](_0x16ef90['shift']());}catch(_0x288220){_0x16ef90['push'](_0x16ef90['shift']());}}}(a88_0x5569,0xae410));function a88_0x4a0b(_0x15cf3e,_0x226e40){const _0x5569ad=a88_0x5569();return a88_0x4a0b=function(_0x4a0bf8,_0x3145fa){_0x4a0bf8=_0x4a0bf8-0x14a;let _0x220beb=_0x5569ad[_0x4a0bf8];return _0x220beb;},a88_0x4a0b(_0x15cf3e,_0x226e40);}const MODEL_ALIASES={'haiku':a88_0xa9613b(0x14f),'sonnet':a88_0xa9613b(0x151)};export function extractModelAlias(_0x474a81){const _0x3bba5b=a88_0xa9613b,_0x412274=_0x474a81[_0x3bba5b(0x152)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x412274)return _0x412274[0x1][_0x3bba5b(0x14c)]();return _0x474a81;}export function resolveModelAlias(_0x3d5612){const _0x2a2876=a88_0xa9613b;return MODEL_ALIASES[_0x3d5612[_0x2a2876(0x14c)]()]||_0x3d5612;}export function getModelAliases(){return{...MODEL_ALIASES};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fd21d,_0x298ca3){const _0x5b5029=a89_0x563f,_0x2fc38f=_0x4fd21d();while(!![]){try{const _0x4c8c7a=parseInt(_0x5b5029(0x110))/0x1+-parseInt(_0x5b5029(0x119))/0x2+-parseInt(_0x5b5029(0x114))/0x3*(parseInt(_0x5b5029(0x11c))/0x4)+parseInt(_0x5b5029(0x116))/0x5*(-parseInt(_0x5b5029(0x124))/0x6)+parseInt(_0x5b5029(0x10e))/0x7*(parseInt(_0x5b5029(0x120))/0x8)+parseInt(_0x5b5029(0x113))/0x9*(-parseInt(_0x5b5029(0x11a))/0xa)+parseInt(_0x5b5029(0x123))/0xb;if(_0x4c8c7a===_0x298ca3)break;else _0x2fc38f['push'](_0x2fc38f['shift']());}catch(_0x4e3505){_0x2fc38f['push'](_0x2fc38f['shift']());}}}(a89_0x4806,0xf307d));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1aca45){const _0x189edf=a89_0x563f,_0x500804=_0x1aca45[_0x189edf(0x115)]();if(MODEL_FACTORS[_0x500804])return MODEL_FACTORS[_0x500804];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x127)))return MODEL_FACTORS[_0x189edf(0x127)];if(_0x500804[_0x189edf(0x126)](_0x189edf(0x122)))return MODEL_FACTORS[_0x189edf(0x122)];if(_0x500804[_0x189edf(0x126)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x189edf(0x127)];}export function getContextLimit(_0x3f95d5){const _0x402fde=a89_0x563f,_0x2d41a5=_0x3f95d5[_0x402fde(0x115)]();if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x127)))return CONTEXT_LIMITS[_0x402fde(0x127)];if(_0x2d41a5[_0x402fde(0x126)](_0x402fde(0x122)))return CONTEXT_LIMITS[_0x402fde(0x122)];if(_0x2d41a5['includes'](_0x402fde(0x11f)))return CONTEXT_LIMITS[_0x402fde(0x11f)];return CONTEXT_LIMITS[_0x402fde(0x111)];}function a89_0x4806(){const _0x5427b5=['3800268lOMYma','69730ZFSIir','en-US','14404FwhFTX','4-5','Sonnet\x204','opus','1624VMOwvV','toLocaleString','haiku','22509124HRWsSo','24tsqEHl','Haiku\x204.5','includes','sonnet','Haiku\x204','Opus\x204.5','57554EpJhjH','round','522025exJRXG','default','Opus\x204','342GgCaiC','678TqyACS','toLowerCase','328735RgTsMX','4.5','Claude'];a89_0x4806=function(){return _0x5427b5;};return a89_0x4806();}export function calculateChatUnit(_0x44f1e1,_0x1f60cc,_0x1f7fc5){return(_0x44f1e1+_0x1f60cc)/0x1388*_0x1f7fc5;}export function calculateCredits(_0x5514cb){return _0x5514cb/0x2904;}export function getModelDisplayName(_0xdd32f7){const _0x3ae76a=a89_0x563f,_0x1afe8f=_0xdd32f7[_0x3ae76a(0x115)]();if(_0x1afe8f['includes']('sonnet')){if(_0x1afe8f[_0x3ae76a(0x126)]('4-5')||_0x1afe8f['includes'](_0x3ae76a(0x117)))return'Sonnet\x204.5';return _0x3ae76a(0x11e);}if(_0x1afe8f[_0x3ae76a(0x126)]('haiku')){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f['includes']('4.5'))return _0x3ae76a(0x125);return _0x3ae76a(0x128);}if(_0x1afe8f['includes'](_0x3ae76a(0x11f))){if(_0x1afe8f['includes'](_0x3ae76a(0x11d))||_0x1afe8f[_0x3ae76a(0x126)](_0x3ae76a(0x117)))return _0x3ae76a(0x10d);return _0x3ae76a(0x112);}return _0x3ae76a(0x118);}export function formatTokenCount(_0x1e6047){const _0x792fbe=a89_0x563f;return _0x1e6047[_0x792fbe(0x121)](_0x792fbe(0x11b));}function a89_0x563f(_0x5a4bd6,_0x544cf0){const _0x480618=a89_0x4806();return a89_0x563f=function(_0x563f64,_0x4d8e08){_0x563f64=_0x563f64-0x10d;let _0x432165=_0x480618[_0x563f64];return _0x432165;},a89_0x563f(_0x5a4bd6,_0x544cf0);}export function calculateContextPercentage(_0x56963c,_0x8b28fa){const _0x98535f=a89_0x563f,_0xb9509a=getContextLimit(_0x8b28fa);return Math[_0x98535f(0x10f)](_0x56963c/_0xb9509a*0x64);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x515709,_0x34323c){const _0x43b49c=a90_0x1117,_0x313569=_0x515709();while(!![]){try{const _0x5e845d=-parseInt(_0x43b49c(0x18d))/0x1+-parseInt(_0x43b49c(0x189))/0x2+-parseInt(_0x43b49c(0x18f))/0x3+-parseInt(_0x43b49c(0x185))/0x4+-parseInt(_0x43b49c(0x18b))/0x5*(parseInt(_0x43b49c(0x192))/0x6)+parseInt(_0x43b49c(0x190))/0x7*(parseInt(_0x43b49c(0x183))/0x8)+-parseInt(_0x43b49c(0x188))/0x9*(-parseInt(_0x43b49c(0x18e))/0xa);if(_0x5e845d===_0x34323c)break;else _0x313569['push'](_0x313569['shift']());}catch(_0x7b7886){_0x313569['push'](_0x313569['shift']());}}}(a90_0x3748,0xc81bd));export function validateLimitOption(_0x1c81cd){const _0x264967=a90_0x1117;if(!Number['isInteger'](_0x1c81cd))return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x18a)};if(_0x1c81cd<=0x0)return{'isValid':![],'error':_0x264967(0x193)+_0x1c81cd+_0x264967(0x186)};return{'isValid':!![],'value':_0x1c81cd};}function a90_0x1117(_0xab309a,_0x2ab71c){const _0x3748f7=a90_0x3748();return a90_0x1117=function(_0x111786,_0x1ee572){_0x111786=_0x111786-0x183;let _0x3eb38e=_0x3748f7[_0x111786];return _0x3eb38e;},a90_0x1117(_0xab309a,_0x2ab71c);}function a90_0x3748(){const _0x24f35d=['.\x20Must\x20be\x20an\x20integer.','76470nhVlNd','.\x20Must\x20be\x20a\x20positive\x20number.','230517SDXwUF','2192520LSglyx','394158yXhMdV','42SEVCBM','.\x20Must\x20be\x20a\x20number.','426raDKLQ','Invalid\x20limit\x20value:\x20','923504eWpAGM','Invalid\x20timeout\x20value:\x20','3805100eEKELF','.\x20Must\x20be\x20a\x20positive\x20integer.','number','162lBvEgV','2840934mzdJtm'];a90_0x3748=function(){return _0x24f35d;};return a90_0x3748();}export function validateTimeoutOption(_0xa4eecb,_0x529b53=0x1e){const _0x2f11c8=a90_0x1117;if(_0xa4eecb===undefined)return{'isValid':!![],'value':_0x529b53};const _0x3daea8=typeof _0xa4eecb===_0x2f11c8(0x187)?_0xa4eecb:parseFloat(_0xa4eecb);if(isNaN(_0x3daea8))return{'isValid':![],'error':_0x2f11c8(0x184)+_0xa4eecb+_0x2f11c8(0x191)};if(_0x3daea8<=0x0)return{'isValid':![],'error':_0x2f11c8(0x184)+_0x3daea8+_0x2f11c8(0x18c)};return{'isValid':!![],'value':_0x3daea8};}
|
package/dist/utils/port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x5f40(_0x596cf5,_0x31fe61){const _0x2dc4a9=a91_0x2dc4();return a91_0x5f40=function(_0x5f4004,_0xce6b62){_0x5f4004=_0x5f4004-0xee;let _0x72eb1e=_0x2dc4a9[_0x5f4004];return _0x72eb1e;},a91_0x5f40(_0x596cf5,_0x31fe61);}(function(_0x1686db,_0x3fd6a0){const _0x1bbe27=a91_0x5f40,_0x418ace=_0x1686db();while(!![]){try{const _0x59f0ee=parseInt(_0x1bbe27(0xfc))/0x1+parseInt(_0x1bbe27(0xf4))/0x2+-parseInt(_0x1bbe27(0xf7))/0x3*(parseInt(_0x1bbe27(0xef))/0x4)+-parseInt(_0x1bbe27(0xf8))/0x5*(-parseInt(_0x1bbe27(0xf2))/0x6)+-parseInt(_0x1bbe27(0xf3))/0x7+parseInt(_0x1bbe27(0x101))/0x8*(parseInt(_0x1bbe27(0xf9))/0x9)+-parseInt(_0x1bbe27(0xfb))/0xa*(-parseInt(_0x1bbe27(0xff))/0xb);if(_0x59f0ee===_0x3fd6a0)break;else _0x418ace['push'](_0x418ace['shift']());}catch(_0x42e475){_0x418ace['push'](_0x418ace['shift']());}}}(a91_0x2dc4,0x61575));import{createServer}from'node:net';export async function isPortAvailable(_0x3164cf){return new Promise(_0x298753=>{const _0x595a34=a91_0x5f40,_0x29d8d7=createServer();_0x29d8d7[_0x595a34(0xf6)](_0x595a34(0xf5),_0x24f75a=>{const _0x22131d=_0x595a34;_0x24f75a['code']===_0x22131d(0xee)?_0x298753(![]):_0x298753(![]);}),_0x29d8d7['once'](_0x595a34(0xfa),()=>{const _0x3f58c8=_0x595a34;_0x29d8d7[_0x3f58c8(0xfd)](),_0x298753(!![]);}),_0x29d8d7[_0x595a34(0xf1)](_0x3164cf,_0x595a34(0xfe));});}function a91_0x2dc4(){const _0x57685b=['349692LUNOHk','error','once','1839oTxlBC','10ixcJym','90VdFyGg','listening','1206300tGVmQS','715675MPFYsh','close','0.0.0.0','11LdPNDR','\x20and\x20','107288AsksMM','EADDRINUSE','2404fFboFG','No\x20available\x20port\x20found\x20between\x20','listen','665358NAuJzF','4199475SvPUJD'];a91_0x2dc4=function(){return _0x57685b;};return a91_0x2dc4();}export async function findAvailablePort(_0x13808a=0xfa0,_0x2400c5=0x64){const _0x66cacd=a91_0x5f40;for(let _0x97a6de=0x0;_0x97a6de<_0x2400c5;_0x97a6de++){const _0x530a31=_0x13808a+_0x97a6de;if(await isPortAvailable(_0x530a31))return _0x530a31;}throw new Error(_0x66cacd(0xf0)+_0x13808a+_0x66cacd(0x100)+(_0x13808a+_0x2400c5-0x1));}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x23413d=a92_0x5947;(function(_0x299da4,_0xc97d1a){const _0x21b396=a92_0x5947,_0xb23021=_0x299da4();while(!![]){try{const _0x49c364=-parseInt(_0x21b396(0x148))/0x1*(-parseInt(_0x21b396(0x131))/0x2)+parseInt(_0x21b396(0x147))/0x3+-parseInt(_0x21b396(0x146))/0x4+parseInt(_0x21b396(0x14b))/0x5+-parseInt(_0x21b396(0x13b))/0x6*(-parseInt(_0x21b396(0x13d))/0x7)+parseInt(_0x21b396(0x15a))/0x8+-parseInt(_0x21b396(0x15c))/0x9;if(_0x49c364===_0xc97d1a)break;else _0xb23021['push'](_0xb23021['shift']());}catch(_0x158279){_0xb23021['push'](_0xb23021['shift']());}}}(a92_0x33fb,0xc1013));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x23413d(0x156),a92_0x23413d(0x155),'sh',a92_0x23413d(0x138),a92_0x23413d(0x13e),a92_0x23413d(0x143),a92_0x23413d(0x14c),a92_0x23413d(0x134),a92_0x23413d(0x132),a92_0x23413d(0x15f),'nu',a92_0x23413d(0x15e),'elvish',a92_0x23413d(0x137)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a92_0x23413d(0x14e),a92_0x23413d(0x149),'cursor']);function getProcessInfoWindows(_0x72c238){const _0x5e3b9c=a92_0x23413d;try{const _0x437129=execSync(_0x5e3b9c(0x13f)+_0x72c238+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x5e3b9c(0x13c),'windowsHide':!![]})[_0x5e3b9c(0x136)](),_0x53317c=_0x437129[_0x5e3b9c(0x144)]('\x0a')[_0x5e3b9c(0x142)](_0x5c1ca3=>_0x5c1ca3[_0x5e3b9c(0x136)]());if(_0x53317c[_0x5e3b9c(0x140)]<0x2)return null;const _0xcf23d5=_0x53317c[_0x53317c[_0x5e3b9c(0x140)]-0x1][_0x5e3b9c(0x144)](',');if(_0xcf23d5[_0x5e3b9c(0x140)]<0x3)return null;const _0x4cdbb8=_0xcf23d5[0x1]?.[_0x5e3b9c(0x136)]()||'',_0x587b20=parseInt(_0xcf23d5[0x2]?.[_0x5e3b9c(0x136)]()||'0',0xa);if(isNaN(_0x587b20)||!_0x4cdbb8)return null;return{'pid':_0x72c238,'ppid':_0x587b20,'comm':_0x4cdbb8[_0x5e3b9c(0x157)](/\.exe$/i,'')};}catch(_0x432a8c){return process[_0x5e3b9c(0x152)][_0x5e3b9c(0x145)]&&console[_0x5e3b9c(0x133)](_0x5e3b9c(0x15d)+_0x72c238+_0x5e3b9c(0x160),_0x432a8c),null;}}function getProcessInfoPosix(_0x34f044){const _0x5dcb91=a92_0x23413d;try{const _0x30382c=execSync(_0x5dcb91(0x153)+_0x34f044+_0x5dcb91(0x139),{'encoding':_0x5dcb91(0x13c)})['trim'](),[_0x3edc61,..._0x3b17db]=_0x30382c['split'](/\s+/),_0x85c2e4=parseInt(_0x3edc61,0xa),_0x22c87e=_0x3b17db[_0x5dcb91(0x15b)]('\x20');if(isNaN(_0x85c2e4))return null;return{'pid':_0x34f044,'ppid':_0x85c2e4,'comm':_0x22c87e};}catch(_0x31c3b5){return process[_0x5dcb91(0x152)][_0x5dcb91(0x145)]&&console[_0x5dcb91(0x133)](_0x5dcb91(0x15d)+_0x34f044+_0x5dcb91(0x141),_0x31c3b5),null;}}function getProcessInfo(_0x58984c){const _0x2858c5=a92_0x23413d;if(process[_0x2858c5(0x158)]==='win32')return getProcessInfoWindows(_0x58984c);return getProcessInfoPosix(_0x58984c);}function a92_0x33fb(){const _0x39ffac=['comm','1518520dJIHcp','csh',',\x20using\x20fallback','claude','ppid',')\x20spawned\x20by\x20','pid','env','ps\x20-p\x20','kill','zsh','bash','replace','platform','has','11249208OQQpIU','join','23292009vFWHFK','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','ion','powershell','\x20on\x20Windows:','299614dENELJ','pwsh','error','dash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','trim','xonsh','fish','\x20-o\x20ppid=,comm=','pop','16926vQBuzI','utf-8','2303RQZPnG','ksh','wmic\x20process\x20where\x20ProcessId=','length','\x20on\x20POSIX:','filter','tcsh','split','DEBUG','1116552hCnKUC','2160324KEFFLE','2xKweMR','code'];a92_0x33fb=function(){return _0x39ffac;};return a92_0x33fb();}function a92_0x5947(_0x23516c,_0x2033cf){const _0x33fb26=a92_0x33fb();return a92_0x5947=function(_0x594732,_0x54a1c7){_0x594732=_0x594732-0x131;let _0x1b2f2a=_0x33fb26[_0x594732];return _0x1b2f2a;},a92_0x5947(_0x23516c,_0x2033cf);}function getBasename(_0x44c654){const _0x414cac=a92_0x23413d;return _0x44c654[_0x414cac(0x157)](/^-/,'')[_0x414cac(0x144)]('/')[_0x414cac(0x13a)]()?.['toLowerCase']()||'';}function isShell(_0x3adfe5){const _0x568d35=a92_0x23413d;return SHELL_NAMES[_0x568d35(0x159)](getBasename(_0x3adfe5));}function isEphemeralShellSpawner(_0x169906){const _0x46e97d=a92_0x23413d;return EPHEMERAL_SHELL_SPAWNERS[_0x46e97d(0x159)](getBasename(_0x169906));}let cachedShellPID;function findShellPID(){const _0xb95db7=a92_0x23413d;let _0x12c5c5=process[_0xb95db7(0x14f)];const _0x529381=0xa;let _0x1d706b=0x0;while(_0x1d706b<_0x529381){const _0x53d7d2=getProcessInfo(_0x12c5c5);if(!_0x53d7d2){process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)](_0xb95db7(0x135)+_0x12c5c5+_0xb95db7(0x14d));break;}if(isShell(_0x53d7d2[_0xb95db7(0x14a)])){const _0x5b86ca=getProcessInfo(_0x53d7d2[_0xb95db7(0x14f)]);if(_0x5b86ca&&isEphemeralShellSpawner(_0x5b86ca[_0xb95db7(0x14a)])){process['env'][_0xb95db7(0x145)]&&console[_0xb95db7(0x133)]('Found\x20ephemeral\x20shell\x20'+_0x53d7d2[_0xb95db7(0x151)]+'\x20('+_0x53d7d2[_0xb95db7(0x14a)]+_0xb95db7(0x150)+_0x5b86ca[_0xb95db7(0x14a)]+',\x20continuing\x20up');_0x12c5c5=_0x53d7d2['ppid'],_0x1d706b++;continue;}return _0x53d7d2['pid'];}if(_0x53d7d2[_0xb95db7(0x14f)]===0x0||_0x53d7d2[_0xb95db7(0x14f)]===0x1){if(isShell(_0x53d7d2['comm']))return _0x53d7d2['pid'];break;}_0x12c5c5=_0x53d7d2[_0xb95db7(0x14f)],_0x1d706b++;}return process[_0xb95db7(0x152)][_0xb95db7(0x145)]&&console['error']('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x11a56c){const _0x6d21b5=a92_0x23413d;try{return process[_0x6d21b5(0x154)](_0x11a56c,0x0),!![];}catch{return![];}}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1db066,_0x34934b){const _0x174163=a93_0x55a1,_0x22bb04=_0x1db066();while(!![]){try{const _0x2606ee=-parseInt(_0x174163(0x12f))/0x1*(parseInt(_0x174163(0x143))/0x2)+parseInt(_0x174163(0x139))/0x3+-parseInt(_0x174163(0x13c))/0x4+-parseInt(_0x174163(0x138))/0x5+parseInt(_0x174163(0x137))/0x6*(parseInt(_0x174163(0x12d))/0x7)+-parseInt(_0x174163(0x141))/0x8+parseInt(_0x174163(0x12c))/0x9;if(_0x2606ee===_0x34934b)break;else _0x22bb04['push'](_0x22bb04['shift']());}catch(_0x40fdd4){_0x22bb04['push'](_0x22bb04['shift']());}}}(a93_0x60dd,0xd1a9a));import*as a93_0x28b909 from'readline';export async function confirm(_0x4d053a){const _0x1d9764=a93_0x55a1,_0xd84473=a93_0x28b909[_0x1d9764(0x13a)]({'input':process[_0x1d9764(0x12b)],'output':process[_0x1d9764(0x135)]});return new Promise(_0x46b607=>{const _0x252d0f=_0x1d9764;_0xd84473[_0x252d0f(0x131)](_0x4d053a+_0x252d0f(0x133),_0x5c9b08=>{const _0x5a7381=_0x252d0f;_0xd84473[_0x5a7381(0x130)](),_0x46b607(_0x5c9b08[_0x5a7381(0x12e)]()==='y'||_0x5c9b08['toLowerCase']()===_0x5a7381(0x13e));});});}function a93_0x55a1(_0x49a200,_0x4ea815){const _0x60ddba=a93_0x60dd();return a93_0x55a1=function(_0x55a10e,_0x4bbed0){_0x55a10e=_0x55a10e-0x12a;let _0x2d6766=_0x60ddba[_0x55a10e];return _0x2d6766;},a93_0x55a1(_0x49a200,_0x4ea815);}export async function confirmKey(_0x128ebb){const _0x4e1064=a93_0x55a1;if(!process['stdin'][_0x4e1064(0x132)])return![];return process['stderr'][_0x4e1064(0x134)](_0x128ebb+_0x4e1064(0x13b)),new Promise(_0x25138d=>{const _0x4f1111=_0x4e1064,_0x5e2b1f=process['stdin'];_0x5e2b1f['setRawMode'](!![]),_0x5e2b1f['resume'](),_0x5e2b1f[_0x4f1111(0x140)](_0x4f1111(0x142));const _0x4d63b1=_0x40496b=>{const _0x2df3da=_0x4f1111;_0x5e2b1f['setRawMode'](![]),_0x5e2b1f[_0x2df3da(0x13d)](),_0x5e2b1f[_0x2df3da(0x13f)]('data',_0x4d63b1);if(_0x40496b==='\x1b'){process[_0x2df3da(0x136)]['write']('\x0a'),_0x25138d(![]);return;}_0x40496b==='\x03'&&(process[_0x2df3da(0x136)][_0x2df3da(0x134)]('\x0a'),process[_0x2df3da(0x12a)](0x82));if(_0x40496b['toLowerCase']()==='y'){process[_0x2df3da(0x136)][_0x2df3da(0x134)]('y\x0a'),_0x25138d(!![]);return;}process['stderr'][_0x2df3da(0x134)]('\x0a'),_0x25138d(![]);};_0x5e2b1f['on'](_0x4f1111(0x144),_0x4d63b1);});}function a93_0x60dd(){const _0x3dcf6d=['4407016FRflxQ','pause','yes','removeListener','setEncoding','89904tuLfRg','utf8','34jOZZHS','data','exit','stdin','13569714cfLpTe','466522rZVKGW','toLowerCase','29831GWugPw','close','question','isTTY','\x20(y/N):\x20','write','stdout','stderr','132hQNuCQ','7595310fPQDaB','3072003PVYJoU','createInterface','\x20[y/N]\x20'];a93_0x60dd=function(){return _0x3dcf6d;};return a93_0x60dd();}
|