@treasuredata/tdx 0.19.0 → 0.19.2
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/README.md +4 -8
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.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/connection-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/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-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-pull-command.js +1 -1
- package/dist/commands/segment-push-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/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.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/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.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/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.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/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.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/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.d.ts.map +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js.map +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.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/spinner.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/version-check.js +1 -1
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x571d29=a174_0x1921;(function(_0x50e852,_0x502a64){const _0x4fa8e5=a174_0x1921,_0xeed87d=_0x50e852();while(!![]){try{const _0x4f539a=-parseInt(_0x4fa8e5(0x7a))/0x1*(-parseInt(_0x4fa8e5(0x95))/0x2)+parseInt(_0x4fa8e5(0x6d))/0x3+parseInt(_0x4fa8e5(0x89))/0x4*(parseInt(_0x4fa8e5(0x8b))/0x5)+parseInt(_0x4fa8e5(0x73))/0x6+-parseInt(_0x4fa8e5(0x98))/0x7*(-parseInt(_0x4fa8e5(0x87))/0x8)+parseInt(_0x4fa8e5(0x7f))/0x9*(parseInt(_0x4fa8e5(0x8f))/0xa)+-parseInt(_0x4fa8e5(0x97))/0xb;if(_0x4f539a===_0x502a64)break;else _0xeed87d['push'](_0xeed87d['shift']());}catch(_0x526f95){_0xeed87d['push'](_0xeed87d['shift']());}}}(a174_0x1009,0x791f8));import{LogLevel as a174_0x23fb76,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a174_0x23fb76[a174_0x571d29(0x78)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x240a36){const _0x204e8d=a174_0x571d29;if(typeof _0x240a36===_0x204e8d(0x9a))return _0x240a36;if(_0x240a36 instanceof Error)return _0x240a36['stack']||_0x240a36[_0x204e8d(0x93)]+':\x20'+_0x240a36[_0x204e8d(0x6e)];try{return JSON[_0x204e8d(0x91)](_0x240a36,(_0x48ade2,_0x13d453)=>{const _0x33d8fa=_0x204e8d;if(_0x13d453 instanceof Error)return{'name':_0x13d453['name'],'message':_0x13d453[_0x33d8fa(0x6e)],'stack':_0x13d453[_0x33d8fa(0x99)],'cause':_0x13d453['cause']};return _0x13d453;});}catch{return String(_0x240a36);}}function a174_0x1921(_0x343eb0,_0x228809){_0x343eb0=_0x343eb0-0x66;const _0x1009d3=a174_0x1009();let _0x1921b2=_0x1009d3[_0x343eb0];return _0x1921b2;}function a174_0x1009(){const _0x1b3691=['split','timestamp','entries','handlers','debug','join','8jSnRKB','length','4SQADYq',']\x20[','3607210BIeYoj','defaultLevel','pendingRecords','shutdown','210VZrmGV','level','stringify','log','name','ERROR','14UOCYCJ','error','36577442SfctBE','5791562pHOvOa','stack','string','trace','clear','push','shouldLog','isInitialized','formatter','get','has','640560bNpelq','message','loggers','set','close','clearHandlers','3802548YLvKmG','WARN','map','addHandler','toISOString','INFO','component','138139NrCppr','levelOverrides','init','handle','initialized','196407sMEfSj','dispatch'];a174_0x1009=function(){return _0x1b3691;};return a174_0x1009();}export class Logger{[a174_0x571d29(0x79)];constructor(_0x2ed310){this['component']=_0x2ed310;}static['of'](_0x57e89f){const _0x2307a6=a174_0x571d29,_0x4b714b=typeof _0x57e89f===_0x2307a6(0x9a)?_0x57e89f:_0x57e89f[_0x2307a6(0x93)];let _0x2825fe=state[_0x2307a6(0x6f)][_0x2307a6(0x6b)](_0x4b714b);return!_0x2825fe&&(_0x2825fe=new Logger(_0x4b714b),state[_0x2307a6(0x6f)][_0x2307a6(0x70)](_0x4b714b,_0x2825fe)),_0x2825fe;}static async[a174_0x571d29(0x7c)](_0x25e243={}){const _0x3d0cdc=a174_0x571d29;state[_0x3d0cdc(0x8c)]=_0x25e243[_0x3d0cdc(0x8c)]??a174_0x23fb76[_0x3d0cdc(0x78)],state[_0x3d0cdc(0x84)]=_0x25e243[_0x3d0cdc(0x84)]??[],state[_0x3d0cdc(0x6a)]=_0x25e243[_0x3d0cdc(0x6a)]??null,state['levelOverrides'][_0x3d0cdc(0x66)]();if(_0x25e243[_0x3d0cdc(0x7b)])for(const [_0x10e27f,_0x5b39ea]of Object[_0x3d0cdc(0x83)](_0x25e243[_0x3d0cdc(0x7b)])){state[_0x3d0cdc(0x7b)][_0x3d0cdc(0x70)](_0x10e27f,_0x5b39ea);}for(const _0x3d4485 of state['handlers']){_0x3d4485['init']&&await _0x3d4485[_0x3d0cdc(0x7c)]();}state['initialized']=!![];for(const _0x79d201 of state['pendingRecords']){Logger[_0x3d0cdc(0x80)](_0x79d201);}state[_0x3d0cdc(0x8d)]=[];}static['setLogLevel'](_0x400c5c,_0x48cc3d){const _0x2364d7=a174_0x571d29;state[_0x2364d7(0x7b)][_0x2364d7(0x70)](_0x400c5c,_0x48cc3d);}static['setDefaultLevel'](_0x45aec8){const _0x20d84c=a174_0x571d29;state[_0x20d84c(0x8c)]=_0x45aec8;}static[a174_0x571d29(0x76)](_0x187aff){const _0x2cd498=a174_0x571d29;state[_0x2cd498(0x84)][_0x2cd498(0x67)](_0x187aff),state[_0x2cd498(0x7e)]&&_0x187aff[_0x2cd498(0x7c)]&&_0x187aff['init']();}static[a174_0x571d29(0x72)](){const _0x261bc5=a174_0x571d29;state[_0x261bc5(0x84)]=[];}static async[a174_0x571d29(0x8e)](){const _0x3df91f=a174_0x571d29;for(const _0x3ebe41 of state[_0x3df91f(0x84)]){_0x3ebe41[_0x3df91f(0x71)]&&await _0x3ebe41[_0x3df91f(0x71)]();}state[_0x3df91f(0x84)]=[],state[_0x3df91f(0x7e)]=![],state['loggers']['clear'](),state[_0x3df91f(0x8d)]=[];}static['reset'](){const _0x3a7edd=a174_0x571d29;state[_0x3a7edd(0x7e)]=![],state['defaultLevel']=a174_0x23fb76[_0x3a7edd(0x78)],state[_0x3a7edd(0x7b)][_0x3a7edd(0x66)](),state[_0x3a7edd(0x84)]=[],state[_0x3a7edd(0x6a)]=null,state['loggers'][_0x3a7edd(0x66)](),state[_0x3a7edd(0x8d)]=[];}static[a174_0x571d29(0x69)](){const _0x23ce65=a174_0x571d29;return state[_0x23ce65(0x7e)];}static['getEffectiveLevel'](_0x492a69){const _0xba1fc4=a174_0x571d29;if(state['levelOverrides'][_0xba1fc4(0x6c)](_0x492a69))return state[_0xba1fc4(0x7b)]['get'](_0x492a69);const _0x226f2b=_0x492a69[_0xba1fc4(0x81)]('.');for(let _0x4bf9b1=_0x226f2b[_0xba1fc4(0x88)]-0x1;_0x4bf9b1>0x0;_0x4bf9b1--){const _0x4d349f=_0x226f2b['slice'](0x0,_0x4bf9b1)[_0xba1fc4(0x86)]('.');if(state[_0xba1fc4(0x7b)]['has'](_0x4d349f))return state['levelOverrides'][_0xba1fc4(0x6b)](_0x4d349f);}return state[_0xba1fc4(0x8c)];}['shouldLog'](_0x1d3945){const _0x30c025=a174_0x571d29,_0x5250c3=Logger['getEffectiveLevel'](this[_0x30c025(0x79)]);return _0x1d3945>=_0x5250c3;}static['dispatch'](_0x33464a){const _0x2953c1=a174_0x571d29;for(const _0x36bcca of state[_0x2953c1(0x84)]){_0x36bcca[_0x2953c1(0x7d)](_0x33464a);}}['log'](_0x2c1fd2,_0x4c8314){const _0x2ced9e=a174_0x571d29;if(!this[_0x2ced9e(0x68)](_0x2c1fd2))return;const _0x1f9638=_0x4c8314[_0x2ced9e(0x75)](_0x2a8345=>typeof _0x2a8345==='function'?_0x2a8345():_0x2a8345),_0x25f029=_0x1f9638[_0x2ced9e(0x75)](safeStringify)[_0x2ced9e(0x86)]('\x20'),_0x12f287={'timestamp':new Date(),'level':_0x2c1fd2,'component':this['component'],'message':_0x25f029};if(!state[_0x2ced9e(0x7e)]){state['pendingRecords'][_0x2ced9e(0x88)]<MAX_PENDING_RECORDS&&state[_0x2ced9e(0x8d)]['push'](_0x12f287);return;}Logger[_0x2ced9e(0x80)](_0x12f287);}[a174_0x571d29(0x9b)](..._0x5f23ed){const _0x28ae17=a174_0x571d29;this[_0x28ae17(0x92)](a174_0x23fb76['TRACE'],_0x5f23ed);}[a174_0x571d29(0x85)](..._0x55cd99){this['log'](a174_0x23fb76['DEBUG'],_0x55cd99);}['info'](..._0x3c4110){const _0x213db2=a174_0x571d29;this[_0x213db2(0x92)](a174_0x23fb76[_0x213db2(0x78)],_0x3c4110);}['warn'](..._0x35d9a6){const _0x15e943=a174_0x571d29;this[_0x15e943(0x92)](a174_0x23fb76[_0x15e943(0x74)],_0x35d9a6);}[a174_0x571d29(0x96)](..._0x1e3562){const _0x167b22=a174_0x571d29;this[_0x167b22(0x92)](a174_0x23fb76[_0x167b22(0x94)],_0x1e3562);}static['getFormatter'](){const _0x5bea7d=a174_0x571d29;return state[_0x5bea7d(0x6a)];}static['format'](_0x181df7){const _0x495aa7=a174_0x571d29;if(state[_0x495aa7(0x6a)])return state['formatter']['format'](_0x181df7);return _0x181df7[_0x495aa7(0x82)][_0x495aa7(0x77)]()+'\x20['+logLevelToString(_0x181df7[_0x495aa7(0x90)])+_0x495aa7(0x8a)+_0x181df7[_0x495aa7(0x79)]+']\x20'+_0x181df7[_0x495aa7(0x6e)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c9949,_0x43f8ab){const _0x302b23=a175_0x5433,_0x3956d0=_0x1c9949();while(!![]){try{const _0x3efcfa=parseInt(_0x302b23(0xa6))/0x1*(parseInt(_0x302b23(0xa9))/0x2)+-parseInt(_0x302b23(0xa2))/0x3*(parseInt(_0x302b23(0xb0))/0x4)+-parseInt(_0x302b23(0xbf))/0x5*(-parseInt(_0x302b23(0xb3))/0x6)+-parseInt(_0x302b23(0xac))/0x7+-parseInt(_0x302b23(0xa5))/0x8+parseInt(_0x302b23(0xa3))/0x9*(-parseInt(_0x302b23(0xa7))/0xa)+-parseInt(_0x302b23(0xbd))/0xb*(-parseInt(_0x302b23(0x9f))/0xc);if(_0x3efcfa===_0x43f8ab)break;else _0x3956d0['push'](_0x3956d0['shift']());}catch(_0x3b2495){_0x3956d0['push'](_0x3956d0['shift']());}}}(a175_0xf956,0xacba4));export var LogLevel;(function(_0x3140b3){const _0x320dd9=a175_0x5433;_0x3140b3[_0x3140b3[_0x320dd9(0xa4)]=-0x2]=_0x320dd9(0xa4),_0x3140b3[_0x3140b3['DEBUG']=-0x1]='DEBUG',_0x3140b3[_0x3140b3[_0x320dd9(0xae)]=0x0]='INFO',_0x3140b3[_0x3140b3['WARN']=0x1]=_0x320dd9(0xab),_0x3140b3[_0x3140b3[_0x320dd9(0xb9)]=0x2]=_0x320dd9(0xb9);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x1addb3){const _0x500c70=a175_0x5433;switch(_0x1addb3[_0x500c70(0xbc)]()){case _0x500c70(0xa4):return LogLevel[_0x500c70(0xa4)];case _0x500c70(0xb4):return LogLevel['DEBUG'];case _0x500c70(0xae):return LogLevel[_0x500c70(0xae)];case _0x500c70(0xab):case _0x500c70(0xb2):return LogLevel['WARN'];case'ERROR':return LogLevel['ERROR'];default:return LogLevel['INFO'];}}function a175_0xf956(){const _0xc34109=['getTimezoneOffset','WARN','6844915oWIekg','getMinutes','INFO','floor','4351948BCTYKq','warn','WARNING','6744672FgPYfv','DEBUG','padStart','abs','getDate','getMilliseconds','ERROR','info','debug','toUpperCase','38291CsGXxs','getMonth','5JpMMAL','9924NUtTGw','getSeconds','toString','3ZflXts','737433oqgbHm','TRACE','8825320MWQRDq','258299SoKBiB','110cgUXRn','trace','6omZwSu'];a175_0xf956=function(){return _0xc34109;};return a175_0xf956();}function a175_0x5433(_0x44228c,_0x2a6497){_0x44228c=_0x44228c-0x9f;const _0xf95666=a175_0xf956();let _0x543365=_0xf95666[_0x44228c];return _0x543365;}export function logLevelToString(_0x419a71){const _0x95e381=a175_0x5433;switch(_0x419a71){case LogLevel['TRACE']:return _0x95e381(0xa8);case LogLevel['DEBUG']:return _0x95e381(0xbb);case LogLevel[_0x95e381(0xae)]:return'info';case LogLevel[_0x95e381(0xab)]:return _0x95e381(0xb1);case LogLevel[_0x95e381(0xb9)]:return'error';default:return _0x95e381(0xba);}}export function formatTimestamp(_0x55eea3){const _0x5134a2=a175_0x5433,_0x45aef0=_0x55eea3['getFullYear'](),_0x84f0ed=(_0x55eea3[_0x5134a2(0xbe)]()+0x1)['toString']()[_0x5134a2(0xb5)](0x2,'0'),_0x1f245a=_0x55eea3[_0x5134a2(0xb7)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x13c062=_0x55eea3['getHours']()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x3c1ca7=_0x55eea3[_0x5134a2(0xad)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x583b78=_0x55eea3[_0x5134a2(0xa0)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x1a6163=_0x55eea3[_0x5134a2(0xb8)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x3,'0'),_0x158719=-_0x55eea3[_0x5134a2(0xaa)](),_0x2fc87f=Math[_0x5134a2(0xaf)](Math[_0x5134a2(0xb6)](_0x158719)/0x3c),_0x50fe41=Math[_0x5134a2(0xb6)](_0x158719)%0x3c,_0x505531=_0x158719>=0x0?'+':'-',_0x32d256=''+_0x505531+_0x2fc87f[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0')+_0x50fe41[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0');return _0x45aef0+'-'+_0x84f0ed+'-'+_0x1f245a+'\x20'+_0x13c062+':'+_0x3c1ca7+':'+_0x583b78+'.'+_0x1a6163+_0x32d256;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a176_0x15d2(){const _0x4489c7=['2DNcXHU','.\x20Must\x20be\x20a\x20positive\x20integer.','36WaGYEs','2844198XPhCsn','275945ICEBzJ','1169WeGzwA','Invalid\x20timeout\x20value:\x20','12jEHXsI','12920NBbNTX','number','44XusrPT','62071djVyRE','79860qxZchl','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20number.','267921GehSFd','1105rUoXhP','532810KjSfIw','isInteger'];a176_0x15d2=function(){return _0x4489c7;};return a176_0x15d2();}(function(_0x47f41e,_0x5799b2){const _0x17a24d=a176_0x2f68,_0xc6ff7=_0x47f41e();while(!![]){try{const _0x4c8994=-parseInt(_0x17a24d(0x110))/0x1*(parseInt(_0x17a24d(0x105))/0x2)+parseInt(_0x17a24d(0x101))/0x3*(parseInt(_0x17a24d(0x10c))/0x4)+-parseInt(_0x17a24d(0x109))/0x5*(parseInt(_0x17a24d(0x107))/0x6)+parseInt(_0x17a24d(0x10a))/0x7*(parseInt(_0x17a24d(0x10d))/0x8)+-parseInt(_0x17a24d(0x108))/0x9+parseInt(_0x17a24d(0x103))/0xa*(-parseInt(_0x17a24d(0x10f))/0xb)+-parseInt(_0x17a24d(0xfe))/0xc*(-parseInt(_0x17a24d(0x102))/0xd);if(_0x4c8994===_0x5799b2)break;else _0xc6ff7['push'](_0xc6ff7['shift']());}catch(_0x27a680){_0xc6ff7['push'](_0xc6ff7['shift']());}}}(a176_0x15d2,0x2c2d6));function a176_0x2f68(_0x12a936,_0x291b54){_0x12a936=_0x12a936-0xfe;const _0x15d278=a176_0x15d2();let _0x2f681e=_0x15d278[_0x12a936];return _0x2f681e;}export function validateLimitOption(_0x10e397){const _0x58be23=a176_0x2f68;if(!Number[_0x58be23(0x104)](_0x10e397))return{'isValid':![],'error':_0x58be23(0xff)+_0x10e397+'.\x20Must\x20be\x20an\x20integer.'};if(_0x10e397<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x10e397+_0x58be23(0x106)};return{'isValid':!![],'value':_0x10e397};}export function validateTimeoutOption(_0x130e9b,_0x373e08=0x1e){const _0x3250c9=a176_0x2f68;if(_0x130e9b===undefined)return{'isValid':!![],'value':_0x373e08};const _0x25d23c=typeof _0x130e9b===_0x3250c9(0x10e)?_0x130e9b:parseFloat(_0x130e9b);if(isNaN(_0x25d23c))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x130e9b+'.\x20Must\x20be\x20a\x20number.'};if(_0x25d23c<=0x0)return{'isValid':![],'error':_0x3250c9(0x10b)+_0x25d23c+_0x3250c9(0x100)};return{'isValid':!![],'value':_0x25d23c};}
|
package/dist/utils/port.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ccd4f,_0x1109b0){const _0x56735d=a177_0x4987,_0xafdeae=_0x3ccd4f();while(!![]){try{const _0x5ea585=-parseInt(_0x56735d(0x19e))/0x1+parseInt(_0x56735d(0x1a7))/0x2+parseInt(_0x56735d(0x19d))/0x3*(-parseInt(_0x56735d(0x1a8))/0x4)+parseInt(_0x56735d(0x1a2))/0x5+parseInt(_0x56735d(0x1a3))/0x6*(parseInt(_0x56735d(0x19f))/0x7)+-parseInt(_0x56735d(0x1ac))/0x8+parseInt(_0x56735d(0x1a4))/0x9;if(_0x5ea585===_0x1109b0)break;else _0xafdeae['push'](_0xafdeae['shift']());}catch(_0x55c17c){_0xafdeae['push'](_0xafdeae['shift']());}}}(a177_0x2ee5,0xe2536));import{createServer}from'node:net';function a177_0x2ee5(){const _0x26bcd3=['listening','0.0.0.0','3345450TivwIm','21156PXazDW','2773458YDKHuw','error','listen','3205950YvcgFq','694788XHJpZj','No\x20available\x20port\x20found\x20between\x20','\x20and\x20','EADDRINUSE','13745784shdaIK','6LqHHkW','648906ejOkLA','2107rOUuZx'];a177_0x2ee5=function(){return _0x26bcd3;};return a177_0x2ee5();}function a177_0x4987(_0x7b375d,_0x41228d){_0x7b375d=_0x7b375d-0x19d;const _0x2ee5fe=a177_0x2ee5();let _0x4987e9=_0x2ee5fe[_0x7b375d];return _0x4987e9;}export async function isPortAvailable(_0x183e89){return new Promise(_0x2295be=>{const _0x1a6d63=a177_0x4987,_0x225f59=createServer();_0x225f59['once'](_0x1a6d63(0x1a5),_0x3b92ae=>{const _0x41f75c=_0x1a6d63;_0x3b92ae['code']===_0x41f75c(0x1ab)?_0x2295be(![]):_0x2295be(![]);}),_0x225f59['once'](_0x1a6d63(0x1a0),()=>{_0x225f59['close'](),_0x2295be(!![]);}),_0x225f59[_0x1a6d63(0x1a6)](_0x183e89,_0x1a6d63(0x1a1));});}export async function findAvailablePort(_0x2cbcef=0xfa0,_0xc0c8da=0x64){const _0x5a07df=a177_0x4987;for(let _0x3823e8=0x0;_0x3823e8<_0xc0c8da;_0x3823e8++){const _0x141b67=_0x2cbcef+_0x3823e8;if(await isPortAvailable(_0x141b67))return _0x141b67;}throw new Error(_0x5a07df(0x1a9)+_0x2cbcef+_0x5a07df(0x1aa)+(_0x2cbcef+_0xc0c8da-0x1));}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a178_0x1ec42=a178_0x27ec;(function(_0x5065e7,_0x17eb6b){const _0x26e160=a178_0x27ec,_0x1bd596=_0x5065e7();while(!![]){try{const _0x237114=-parseInt(_0x26e160(0x1e1))/0x1*(-parseInt(_0x26e160(0x21a))/0x2)+-parseInt(_0x26e160(0x1f1))/0x3+parseInt(_0x26e160(0x1f4))/0x4*(-parseInt(_0x26e160(0x202))/0x5)+parseInt(_0x26e160(0x20b))/0x6+-parseInt(_0x26e160(0x214))/0x7+parseInt(_0x26e160(0x1ee))/0x8+parseInt(_0x26e160(0x1fa))/0x9;if(_0x237114===_0x17eb6b)break;else _0x1bd596['push'](_0x1bd596['shift']());}catch(_0x2e90de){_0x1bd596['push'](_0x1bd596['shift']());}}}(a178_0x2bca,0x8f6f2));function a178_0x27ec(_0x314782,_0x59ba8a){_0x314782=_0x314782-0x1df;const _0x2bca48=a178_0x2bca();let _0x27ec42=_0x2bca48[_0x314782];return _0x27ec42;}import{execSync,spawn}from'node:child_process';function a178_0x2bca(){const _0x3f1a30=['has','88433XNODdz','start','toLowerCase','csh','powershell','trim','stdout','fish','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','comm','ppid','Unsupported\x20protocol:\x20','platform','7522040sbRXUK','which','data','1093392USDAnv','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','bash','412356UwQjbo','zsh','pid','exit','replace','error','1664910zeOLsS','win32','ps\x20-p\x20','toString','where.exe','ksh','https:','xdg-open','20kqNcSi','kill','join','utf-8','\x20-o\x20ppid=,comm=','pipe','stderr','Invalid\x20URL:\x20','pop','3864666tqRrQq','darwin','unref','protocol','open','claude','code','dash','isInteger','6549396hwKMjq','map','tcsh','ion','http:','split','12WXXXBp','ignore','cursor'];a178_0x2bca=function(){return _0x3f1a30;};return a178_0x2bca();}const SHELL_NAMES=new Set([a178_0x1ec42(0x1f3),a178_0x1ec42(0x1f5),'sh',a178_0x1ec42(0x1e8),a178_0x1ec42(0x1ff),a178_0x1ec42(0x216),a178_0x1ec42(0x1e4),a178_0x1ec42(0x212),'pwsh',a178_0x1ec42(0x1e5),'nu',a178_0x1ec42(0x217),'elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a178_0x1ec42(0x210),a178_0x1ec42(0x211),a178_0x1ec42(0x1df)]);function getProcessInfoWindows(_0x1cf005){const _0x3a334e=a178_0x1ec42;try{if(!Number[_0x3a334e(0x213)](_0x1cf005)||_0x1cf005<=0x0)return null;const _0x564065=_0x3a334e(0x1e9)+_0x1cf005+_0x3a334e(0x1f2),_0x291a0b=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x564065+'\x22',{'encoding':_0x3a334e(0x205),'windowsHide':!![],'stdio':[_0x3a334e(0x207),_0x3a334e(0x207),'pipe']})[_0x3a334e(0x1e6)]();if(!_0x291a0b)return null;const [_0x33101d,..._0xe68d51]=_0x291a0b[_0x3a334e(0x219)](','),_0x14c8d4=parseInt(_0x33101d,0xa),_0x472996=_0xe68d51[_0x3a334e(0x204)](',')[_0x3a334e(0x1e6)]();if(isNaN(_0x14c8d4)||!_0x472996)return null;return{'pid':_0x1cf005,'ppid':_0x14c8d4,'comm':_0x472996[_0x3a334e(0x1f8)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x32bb37){const _0x4bbfc8=a178_0x1ec42;try{const _0x5b1e24=0x400000;if(!Number[_0x4bbfc8(0x213)](_0x32bb37)||_0x32bb37<=0x0||_0x32bb37>_0x5b1e24)return null;const _0x22ffd5=execSync(_0x4bbfc8(0x1fc)+_0x32bb37+_0x4bbfc8(0x206),{'encoding':_0x4bbfc8(0x205),'stdio':'pipe'})[_0x4bbfc8(0x1e6)](),[_0x3e19a9,..._0xd5aa47]=_0x22ffd5['split'](/\s+/),_0x454ae2=parseInt(_0x3e19a9,0xa),_0x175919=_0xd5aa47['join']('\x20');if(isNaN(_0x454ae2))return null;return{'pid':_0x32bb37,'ppid':_0x454ae2,'comm':_0x175919};}catch{return null;}}function getProcessInfo(_0x591731){const _0x5408e1=a178_0x1ec42;if(process[_0x5408e1(0x1ed)]===_0x5408e1(0x1fb))return getProcessInfoWindows(_0x591731);return getProcessInfoPosix(_0x591731);}function getBasename(_0x51905b){const _0x510d8f=a178_0x1ec42;return _0x51905b['replace'](/^-/,'')[_0x510d8f(0x219)]('/')[_0x510d8f(0x20a)]()?.[_0x510d8f(0x1e3)]()||'';}function isShell(_0x31bdd6){const _0x3fe816=a178_0x1ec42;return SHELL_NAMES[_0x3fe816(0x1e0)](getBasename(_0x31bdd6));}function isEphemeralShellSpawner(_0x73d7fb){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x73d7fb));}let cachedShellPID;function findShellPID(){const _0x331a2e=a178_0x1ec42;if(process[_0x331a2e(0x1eb)]===undefined)return process[_0x331a2e(0x1f6)];let _0x4616a0=process[_0x331a2e(0x1eb)];const _0x2f919b=0xa;let _0x230022=0x0;while(_0x230022<_0x2f919b){const _0x1a3ffc=getProcessInfo(_0x4616a0);if(!_0x1a3ffc)break;if(isShell(_0x1a3ffc['comm'])){const _0x5a3727=getProcessInfo(_0x1a3ffc[_0x331a2e(0x1eb)]);if(_0x5a3727&&isEphemeralShellSpawner(_0x5a3727[_0x331a2e(0x1ea)])){_0x4616a0=_0x1a3ffc[_0x331a2e(0x1eb)],_0x230022++;continue;}return _0x1a3ffc[_0x331a2e(0x1f6)];}if(_0x1a3ffc[_0x331a2e(0x1eb)]===0x0||_0x1a3ffc[_0x331a2e(0x1eb)]===0x1){if(isShell(_0x1a3ffc[_0x331a2e(0x1ea)]))return _0x1a3ffc[_0x331a2e(0x1f6)];break;}_0x4616a0=_0x1a3ffc['ppid'],_0x230022++;}return process['ppid']!==undefined?process[_0x331a2e(0x1eb)]:process[_0x331a2e(0x1f6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x7fa5b){const _0x4849de=a178_0x1ec42;if(!Number[_0x4849de(0x213)](_0x7fa5b)||_0x7fa5b<=0x0)return![];try{return process[_0x4849de(0x203)](_0x7fa5b,0x0),!![];}catch{return![];}}export function openBrowser(_0x2cf714){const _0x2dba10=a178_0x1ec42;let _0x5a1d4e;try{_0x5a1d4e=new URL(_0x2cf714);}catch{throw new Error(_0x2dba10(0x209)+_0x2cf714);}if(_0x5a1d4e[_0x2dba10(0x20e)]!==_0x2dba10(0x218)&&_0x5a1d4e[_0x2dba10(0x20e)]!==_0x2dba10(0x200))throw new Error(_0x2dba10(0x1ec)+_0x5a1d4e[_0x2dba10(0x20e)]);const _0x30b515=_0x5a1d4e['href'],_0x3f3c4b=process[_0x2dba10(0x1ed)];if(_0x3f3c4b===_0x2dba10(0x1fb))spawn('cmd.exe',['/c',_0x2dba10(0x1e2),'',_0x30b515],{'detached':!![],'stdio':_0x2dba10(0x21b)})[_0x2dba10(0x20d)]();else{const _0x51b68f=_0x3f3c4b===_0x2dba10(0x20c)?_0x2dba10(0x20f):_0x2dba10(0x201);spawn(_0x51b68f,[_0x30b515],{'detached':!![],'stdio':_0x2dba10(0x21b)})['unref']();}}export function isWindows(){const _0x808ff7=a178_0x1ec42;return process[_0x808ff7(0x1ed)]===_0x808ff7(0x1fb);}export function getCrossSpawnOptions(_0x386faa){return{..._0x386faa??{},'shell':isWindows()};}export function escapeWindowsArg(_0x57f480){const _0x5ddb1c=a178_0x1ec42;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x57f480))return _0x57f480;const _0x47ab87=_0x57f480[_0x5ddb1c(0x1f8)](/"/g,'\x22\x22');return'\x22'+_0x47ab87+'\x22';}export function crossSpawn(_0x5292a5,_0x30517e,_0x1eeba9){const _0x4ed546=a178_0x1ec42;if(isWindows()){const _0x826a6=escapeWindowsArg(_0x5292a5),_0x164d7d=_0x30517e[_0x4ed546(0x215)](escapeWindowsArg),_0x4cbcf2=[_0x826a6,..._0x164d7d][_0x4ed546(0x204)]('\x20');return spawn(_0x4cbcf2,[],{..._0x1eeba9,'shell':!![]});}return spawn(_0x5292a5,_0x30517e,{..._0x1eeba9,'shell':![]});}export function gracefulExit(_0xbf3862=0x0){const _0x1bf82c=a178_0x1ec42;isWindows()?setImmediate(()=>process[_0x1bf82c(0x1f7)](_0xbf3862)):process[_0x1bf82c(0x1f7)](_0xbf3862);}export function findExecutable(_0x544da9,_0x46ee9f=0x1388){return new Promise(_0x48ed82=>{const _0x354e6e=a178_0x27ec,_0x49d905=isWindows()?_0x354e6e(0x1fe):_0x354e6e(0x1ef);let _0xfe65ae=![];const _0x360b1a=crossSpawn(_0x49d905,[_0x544da9],{'stdio':_0x354e6e(0x207)}),_0x59629d=setTimeout(()=>{const _0x25aa90=_0x354e6e;!_0xfe65ae&&(_0xfe65ae=!![],_0x360b1a[_0x25aa90(0x203)](),_0x48ed82(null));},_0x46ee9f);let _0x49dd4a='';_0x360b1a[_0x354e6e(0x1e7)]?.['on'](_0x354e6e(0x1f0),_0x37a2a8=>{const _0x585afb=_0x354e6e;_0x49dd4a+=_0x37a2a8[_0x585afb(0x1fd)]();}),_0x360b1a[_0x354e6e(0x208)]?.['on'](_0x354e6e(0x1f0),()=>{}),_0x360b1a['on'](_0x354e6e(0x1f7),_0xe885e7=>{const _0x1319c4=_0x354e6e;if(_0xfe65ae)return;_0xfe65ae=!![],clearTimeout(_0x59629d);if(_0xe885e7===0x0&&_0x49dd4a[_0x1319c4(0x1e6)]()){const _0x1a5948=_0x49dd4a[_0x1319c4(0x1e6)]()[_0x1319c4(0x219)](/\r?\n/)[0x0];_0x48ed82(_0x1a5948);}else _0x48ed82(null);}),_0x360b1a['on'](_0x354e6e(0x1f9),()=>{if(_0xfe65ae)return;_0xfe65ae=!![],clearTimeout(_0x59629d),_0x48ed82(null);});});}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c0cdc,_0x13820a){const _0x2eaad8=a179_0x3b56,_0x13b82d=_0x3c0cdc();while(!![]){try{const _0x500b83=parseInt(_0x2eaad8(0x86))/0x1*(parseInt(_0x2eaad8(0x8c))/0x2)+parseInt(_0x2eaad8(0x88))/0x3+-parseInt(_0x2eaad8(0x8f))/0x4*(parseInt(_0x2eaad8(0x8e))/0x5)+parseInt(_0x2eaad8(0x9d))/0x6*(-parseInt(_0x2eaad8(0x8b))/0x7)+parseInt(_0x2eaad8(0x8d))/0x8*(parseInt(_0x2eaad8(0x99))/0x9)+-parseInt(_0x2eaad8(0x97))/0xa+-parseInt(_0x2eaad8(0x9a))/0xb*(parseInt(_0x2eaad8(0x9b))/0xc);if(_0x500b83===_0x13820a)break;else _0x13b82d['push'](_0x13b82d['shift']());}catch(_0x1a77ef){_0x13b82d['push'](_0x13b82d['shift']());}}}(a179_0xd3f1,0x58732));function a179_0x3b56(_0x3dd3ed,_0x439d3f){_0x3dd3ed=_0x3dd3ed-0x84;const _0xd3f12a=a179_0xd3f1();let _0x3b564a=_0xd3f12a[_0x3dd3ed];return _0x3b564a;}import*as a179_0x4b489e from'readline';export function isInteractive(){const _0x275b86=a179_0x3b56;return process[_0x275b86(0x84)][_0x275b86(0x95)]===!![];}function a179_0xd3f1(){const _0x338b24=['90468qWYWmA','removeListener','30iIjonl','stdin','write','3Ipctzj','resume','2095728WyozRF','question','close','293629icPTtv','326034rQYMan','23768jCAkho','5xGZFev','1372952YWiute','createInterface','stderr','toLowerCase','\x20(y/N):\x20','stdout','isTTY','utf8','4488040SQKsKv','data','603WgxFaj','33puSIyu'];a179_0xd3f1=function(){return _0x338b24;};return a179_0xd3f1();}export async function confirm(_0x9a8df4){const _0x5d0b61=a179_0x3b56,_0x2807b0=a179_0x4b489e[_0x5d0b61(0x90)]({'input':process['stdin'],'output':process[_0x5d0b61(0x94)]});return new Promise(_0x191671=>{const _0x8133bc=_0x5d0b61;_0x2807b0[_0x8133bc(0x89)](_0x9a8df4+_0x8133bc(0x93),_0x3bde36=>{const _0x2df51c=_0x8133bc;_0x2807b0[_0x2df51c(0x8a)](),_0x191671(_0x3bde36[_0x2df51c(0x92)]()==='y'||_0x3bde36[_0x2df51c(0x92)]()==='yes');});});}export async function confirmKey(_0x33f867){const _0x281377=a179_0x3b56;if(!process[_0x281377(0x84)]['isTTY'])return![];return process['stderr'][_0x281377(0x85)](_0x33f867+'\x20[y/N]\x20'),new Promise(_0x42a563=>{const _0x206d86=_0x281377,_0x60898f=process['stdin'];_0x60898f['setRawMode'](!![]),_0x60898f[_0x206d86(0x87)](),_0x60898f['setEncoding'](_0x206d86(0x96));const _0x111a48=_0x238e77=>{const _0x5805a=_0x206d86;_0x60898f['setRawMode'](![]),_0x60898f['pause'](),_0x60898f[_0x5805a(0x9c)](_0x5805a(0x98),_0x111a48);if(_0x238e77==='\x1b'){process[_0x5805a(0x91)][_0x5805a(0x85)]('\x0a'),_0x42a563(![]);return;}_0x238e77==='\x03'&&(process[_0x5805a(0x91)]['write']('\x0a'),process['exit'](0x82));if(_0x238e77['toLowerCase']()==='y'){process[_0x5805a(0x91)][_0x5805a(0x85)]('y\x0a'),_0x42a563(!![]);return;}process[_0x5805a(0x91)][_0x5805a(0x85)]('\x0a'),_0x42a563(![]);};_0x60898f['on']('data',_0x111a48);});}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4447a9,_0x16665b){const _0x3057a8=a180_0x9913,_0xa91333=_0x4447a9();while(!![]){try{const _0x1ae303=-parseInt(_0x3057a8(0x73))/0x1+parseInt(_0x3057a8(0x82))/0x2*(parseInt(_0x3057a8(0x79))/0x3)+-parseInt(_0x3057a8(0x78))/0x4*(parseInt(_0x3057a8(0x7d))/0x5)+parseInt(_0x3057a8(0x74))/0x6*(parseInt(_0x3057a8(0x76))/0x7)+-parseInt(_0x3057a8(0x72))/0x8*(parseInt(_0x3057a8(0x81))/0x9)+parseInt(_0x3057a8(0x6d))/0xa*(-parseInt(_0x3057a8(0x7a))/0xb)+parseInt(_0x3057a8(0x85))/0xc;if(_0x1ae303===_0x16665b)break;else _0xa91333['push'](_0xa91333['shift']());}catch(_0x23a9c2){_0xa91333['push'](_0xa91333['shift']());}}}(a180_0x2f90,0xd8e1c));import a180_0x5092fe from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x122bd2,_0x3e8a36={}){const _0x4a3644=a180_0x9913,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3e8a36;return a180_0x5092fe({'text':_0x122bd2,'color':_0x4a3644(0x70),'stream':process[_0x4a3644(0x84)],'isEnabled':forceEnabled||process[_0x4a3644(0x84)][_0x4a3644(0x6e)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}function a180_0x9913(_0x2a2a8e,_0x357dfe){_0x2a2a8e=_0x2a2a8e-0x6a;const _0x2f90ef=a180_0x2f90();let _0x99137d=_0x2f90ef[_0x2a2a8e];return _0x99137d;}export async function withSpinner(_0x12f47c,_0x3b35dc,_0x3e55bf={}){const _0x2032b9=a180_0x9913,_0x539a3c=_0x3e55bf[_0x2032b9(0x7c)]??(()=>Date['now']()),_0x35b4f8=createCommandSpinner(_0x12f47c,_0x3e55bf);_0x35b4f8[_0x2032b9(0x77)]();const _0x1ee1db=_0x539a3c();try{const _0x2c62d9=await _0x3b35dc(),_0x437d3b=_0x539a3c()-_0x1ee1db;return _0x35b4f8[_0x2032b9(0x6c)](),{'data':_0x2c62d9,'elapsedMs':_0x437d3b};}catch(_0x2f8364){_0x35b4f8[_0x2032b9(0x6c)]();throw _0x2f8364;}}export async function withProgressSpinner(_0x5a1933,_0x2e0c7a,_0x2eff79={}){const _0x16aaf5=a180_0x9913,_0x3d9823=_0x2eff79['clock']??(()=>Date['now']()),_0xf6dc0=_0x2eff79['intervalFactory']??setInterval,_0x53affa=createCommandSpinner(_0x5a1933,_0x2eff79);_0x53affa['start']();const _0x5e73c5=_0x3d9823(),_0x450e29=_0x5a1933['replace'](_0x16aaf5(0x75),'')[_0x16aaf5(0x71)]()||_0x16aaf5(0x7e),_0x2f2d49={};let _0x1061ff=_0x5a1933;const _0xab6762=()=>{const _0x155557=_0x16aaf5;if(!_0x53affa[_0x155557(0x7f)])return;const _0x310bac=_0x3d9823()-_0x5e73c5,_0x391d98=formatElapsed(_0x310bac),_0x5e07ed=_0x2f2d49[_0x155557(0x83)]?.[_0x155557(0x71)]()||_0x450e29,_0x93884f=_0x2f2d49[_0x155557(0x80)]?_0x155557(0x6b)+_0x2f2d49[_0x155557(0x80)]+']':'',_0x1f6a84=_0x2f2d49[_0x155557(0x6a)]?'\x20'+_0x2f2d49[_0x155557(0x6a)]:'',_0x35c591=_0x5e07ed+'\x20'+_0x391d98+_0x1f6a84+_0x93884f;_0x35c591!==_0x1061ff&&_0x35c591[_0x155557(0x71)]()&&(_0x53affa[_0x155557(0x7b)]=_0x35c591,_0x1061ff=_0x35c591);},_0x334eaa=_0xf6dc0(()=>{_0xab6762();},0x3e8),_0x8f22={'setPhase':_0x659058=>{const _0x1a6925=_0x16aaf5;_0x2f2d49[_0x1a6925(0x83)]=_0x659058;const _0x49fac4=_0x659058?.[_0x1a6925(0x71)]()||_0x450e29,_0x517259=_0x3d9823()-_0x5e73c5,_0x163f18=formatElapsed(_0x517259),_0x33e985=_0x2f2d49[_0x1a6925(0x80)]?_0x1a6925(0x6b)+_0x2f2d49['jobId']+']':'',_0x1e45e4=_0x2f2d49[_0x1a6925(0x6a)]?'\x20'+_0x2f2d49[_0x1a6925(0x6a)]:'',_0x2cc70d=_0x49fac4+'\x20'+_0x163f18+_0x1e45e4+_0x33e985;_0x53affa['isSpinning']&&_0x2cc70d[_0x1a6925(0x71)]()&&(_0x53affa[_0x1a6925(0x7b)]=_0x2cc70d,_0x1061ff=_0x2cc70d);},'setJobId':_0x38c30d=>{const _0x1af82c=_0x16aaf5;_0x2f2d49[_0x1af82c(0x80)]=_0x38c30d,_0xab6762();},'setExtra':_0x79191e=>{const _0x3b5d7f=_0x16aaf5;_0x2f2d49[_0x3b5d7f(0x6a)]=_0x79191e,_0xab6762();}};_0xab6762();try{const _0x40882=await _0x2e0c7a(_0x8f22),_0x1012c8=_0x3d9823()-_0x5e73c5;return{'data':_0x40882,'elapsedMs':_0x1012c8};}finally{clearInterval(_0x334eaa),_0x53affa['stop']();}}function a180_0x2f90(){const _0x1ce1d0=['399782YbXGlT','36072ymRkWV','...','1778HqZSby','start','32QtITis','3xdWDzm','297RMGxcu','text','clock','148740KZFtHv','Processing','isSpinning','jobId','6190983saVsOI','1073908MoWQtI','phase','stderr','19423644CiMMIT','extra','\x20[Job\x20ID:\x20','stop','543940EfGTKa','isTTY','floor','cyan','trim','8JuJMIQ'];a180_0x2f90=function(){return _0x1ce1d0;};return a180_0x2f90();}export function formatElapsed(_0x1d1109){const _0x3adfde=a180_0x9913,_0x1f7560=Math[_0x3adfde(0x6f)](_0x1d1109/0x3e8);if(_0x1f7560<0x3c)return(_0x1d1109/0x3e8)['toFixed'](0x1)+'s';const _0x37ab2a=Math[_0x3adfde(0x6f)](_0x1f7560/0x3c),_0x3fb5c3=_0x1f7560%0x3c;if(_0x37ab2a<0x3c)return _0x37ab2a+'m\x20'+_0x3fb5c3+'s';const _0x3461bd=Math[_0x3adfde(0x6f)](_0x37ab2a/0x3c),_0x1188fc=_0x37ab2a%0x3c;return _0x3461bd+'h\x20'+_0x1188fc+'m';}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a181_0x188d(){const _0x4e48f6=['trim','Response\x20body\x20is\x20null','releaseLock','4080880GrcYIa','body','12LDPtWs','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','getReader','2342964xeIxYe','slice','data','1754854cwBnPC','505833EIADTb','startsWith','1NvfnoU','debug','1664095nYpNTv','9570636icMIVP','[LLM\x20API\x20SSE]\x20','4092690FDrONE','event','pop'];a181_0x188d=function(){return _0x4e48f6;};return a181_0x188d();}(function(_0x3a8eb7,_0x4f0796){const _0x202033=a181_0xe9c3,_0x4a4d26=_0x3a8eb7();while(!![]){try{const _0xa8665b=-parseInt(_0x202033(0x127))/0x1*(parseInt(_0x202033(0x124))/0x2)+parseInt(_0x202033(0x125))/0x3+parseInt(_0x202033(0x11e))/0x4*(parseInt(_0x202033(0x129))/0x5)+parseInt(_0x202033(0x121))/0x6+-parseInt(_0x202033(0x12c))/0x7+-parseInt(_0x202033(0x11c))/0x8+parseInt(_0x202033(0x12a))/0x9;if(_0xa8665b===_0x4f0796)break;else _0x4a4d26['push'](_0x4a4d26['shift']());}catch(_0x5dc9f8){_0x4a4d26['push'](_0x4a4d26['shift']());}}}(a181_0x188d,0x9e637));export async function*parseSSEStream(_0x452a29,_0x13f1cc){const _0x2b8a8c=a181_0xe9c3;if(!_0x452a29[_0x2b8a8c(0x11d)])throw new Error(_0x2b8a8c(0x11a));const _0x2b46fb=_0x452a29[_0x2b8a8c(0x11d)][_0x2b8a8c(0x120)](),_0x1ba3c9=new TextDecoder();let _0x486c77='',_0x2498d6={};try{while(!![]){const {done:_0x25252d,value:_0x405ab1}=await _0x2b46fb['read']();if(_0x25252d){if(_0x2498d6[_0x2b8a8c(0x123)]){_0x13f1cc?.[_0x2b8a8c(0x128)](_0x2b8a8c(0x12b)+_0x2498d6[_0x2b8a8c(0x123)]);const _0x576944=parseSSEData(_0x2498d6[_0x2b8a8c(0x123)]);yield _0x576944;}break;}_0x486c77+=_0x1ba3c9['decode'](_0x405ab1,{'stream':!![]});const _0x1e503c=_0x486c77['split']('\x0a');_0x486c77=_0x1e503c[_0x2b8a8c(0x118)]()||'';for(const _0x1b6cd2 of _0x1e503c){if(_0x1b6cd2[_0x2b8a8c(0x119)]()===''){if(_0x2498d6[_0x2b8a8c(0x123)]){_0x13f1cc?.[_0x2b8a8c(0x128)](_0x2b8a8c(0x12b)+_0x2498d6[_0x2b8a8c(0x123)]);const _0xe82bf7=parseSSEData(_0x2498d6[_0x2b8a8c(0x123)]);yield _0xe82bf7,_0x2498d6={};}continue;}if(_0x1b6cd2[_0x2b8a8c(0x126)](':'))continue;const _0x2faa96=_0x1b6cd2['indexOf'](':');if(_0x2faa96===-0x1)continue;const _0x5dcc17=_0x1b6cd2[_0x2b8a8c(0x122)](0x0,_0x2faa96);let _0x257434=_0x1b6cd2[_0x2b8a8c(0x122)](_0x2faa96+0x1);_0x257434[_0x2b8a8c(0x126)]('\x20')&&(_0x257434=_0x257434[_0x2b8a8c(0x122)](0x1));switch(_0x5dcc17){case _0x2b8a8c(0x12d):_0x2498d6[_0x2b8a8c(0x12d)]=_0x257434;break;case _0x2b8a8c(0x123):_0x2498d6[_0x2b8a8c(0x123)]=_0x2498d6[_0x2b8a8c(0x123)]?_0x2498d6['data']+'\x0a'+_0x257434:_0x257434;break;case'id':_0x2498d6['id']=_0x257434;break;}}}}finally{_0x2b46fb[_0x2b8a8c(0x11b)]();}}function a181_0xe9c3(_0x254cea,_0x392e04){_0x254cea=_0x254cea-0x118;const _0x188d96=a181_0x188d();let _0xe9c335=_0x188d96[_0x254cea];return _0xe9c335;}function parseSSEData(_0x27d5e2){const _0x1f2558=a181_0xe9c3;try{return JSON['parse'](_0x27d5e2);}catch(_0xc4da68){throw new Error(_0x1f2558(0x11f)+_0x27d5e2,{'cause':_0xc4da68});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x94e6e9,_0x4ac921){const _0x3696d7=a182_0x4fcf,_0x43a84f=_0x94e6e9();while(!![]){try{const _0x31f7ba=parseInt(_0x3696d7(0x1b5))/0x1*(-parseInt(_0x3696d7(0x1b9))/0x2)+parseInt(_0x3696d7(0x1a6))/0x3*(-parseInt(_0x3696d7(0x1ac))/0x4)+-parseInt(_0x3696d7(0x1a5))/0x5+parseInt(_0x3696d7(0x1ab))/0x6+-parseInt(_0x3696d7(0x1aa))/0x7+parseInt(_0x3696d7(0x1ad))/0x8*(-parseInt(_0x3696d7(0x1b0))/0x9)+-parseInt(_0x3696d7(0x1b6))/0xa*(-parseInt(_0x3696d7(0x1ae))/0xb);if(_0x31f7ba===_0x4ac921)break;else _0x43a84f['push'](_0x43a84f['shift']());}catch(_0x14c177){_0x43a84f['push'](_0x43a84f['shift']());}}}(a182_0x4106,0x1a44b));import a182_0x5995f5 from'string-width';function a182_0x4fcf(_0x4601b3,_0x475d3b){_0x4601b3=_0x4601b3-0x1a5;const _0x4106c9=a182_0x4106();let _0x4fcfd9=_0x4106c9[_0x4601b3];return _0x4fcfd9;}function a182_0x4106(){const _0x17f8b0=['1014035QCNBHe','floor','126QFBBZI','length','toLowerCase','repeat','Cannot\x20escape\x20empty\x20string\x20literal','2179ssgtSl','40ddihju','\x5c$&','toString','186kybBAe','replace','slice','94865kiOOHs','885jIyxok','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','padStart','10017HJLAjs','843750kWQeFi','92wFiJCN','98248EwBuWW'];a182_0x4106=function(){return _0x17f8b0;};return a182_0x4106();}export function stringWidth(_0x259593){return a182_0x5995f5(_0x259593);}export function padEnd(_0x18a0f9,_0x52efc4){const _0x1d8989=a182_0x4fcf,_0x15eccc=stringWidth(_0x18a0f9);if(_0x15eccc>=_0x52efc4)return _0x18a0f9;return _0x18a0f9+'\x20'[_0x1d8989(0x1b3)](_0x52efc4-_0x15eccc);}export function padStart(_0x535d0f,_0x32884a){const _0x924a59=a182_0x4fcf,_0x45298c=stringWidth(_0x535d0f);if(_0x45298c>=_0x32884a)return _0x535d0f;return'\x20'[_0x924a59(0x1b3)](_0x32884a-_0x45298c)+_0x535d0f;}export function centerAlign(_0x58edc1,_0x2180b0){const _0x894835=a182_0x4fcf,_0xddcbe3=stringWidth(_0x58edc1);if(_0xddcbe3>_0x2180b0){if(_0x2180b0<=0x1)return'…'['substring'](0x0,_0x2180b0);let _0x4d3b3e=_0x58edc1;while(stringWidth(_0x4d3b3e+'…')>_0x2180b0){_0x4d3b3e=_0x4d3b3e[_0x894835(0x1bb)](0x0,-0x1);}return _0x4d3b3e+'…';}if(_0xddcbe3===_0x2180b0)return _0x58edc1;const _0x2c6251=_0x2180b0-_0xddcbe3,_0x44a261=Math[_0x894835(0x1af)](_0x2c6251/0x2),_0x332c7c=_0x2c6251-_0x44a261;return'\x20'[_0x894835(0x1b3)](_0x44a261)+_0x58edc1+'\x20'[_0x894835(0x1b3)](_0x332c7c);}export function escapeStringLiteral(_0x19537){const _0x5d8230=a182_0x4fcf;if(!_0x19537||_0x19537['trim']()['length']===0x0)throw new Error(_0x5d8230(0x1b4));const _0x1eff89=_0x19537[_0x5d8230(0x1ba)](/'/g,'\x27\x27');return'\x27'+_0x1eff89+'\x27';}export function globToLike(_0x24083d){const _0x568d79=a182_0x4fcf;let _0x38203b=_0x24083d[_0x568d79(0x1ba)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x38203b=_0x38203b[_0x568d79(0x1ba)](/\*/g,'%')['replace'](/\?/g,'_'),_0x38203b;}export function buildLikePattern(_0x5578a7){const _0x21fd46=a182_0x4fcf;if(!_0x5578a7||_0x5578a7['trim']()[_0x21fd46(0x1b1)]===0x0)throw new Error(_0x21fd46(0x1a8));const _0x84779f=globToLike(_0x5578a7),_0x3d27bd=_0x84779f[_0x21fd46(0x1ba)](/'/g,'\x27\x27');return'\x27'+_0x3d27bd+'\x27';}export function matchGlobPattern(_0x329dec,_0x42e001){const _0x1f9c7d=a182_0x4fcf,_0x28bd3a=_0x42e001[_0x1f9c7d(0x1ba)](/[.+^${}()|[\]\\]/g,_0x1f9c7d(0x1b7))['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0xa47c64=new RegExp('^'+_0x28bd3a+'$');return _0xa47c64[_0x1f9c7d(0x1a7)](_0x329dec);}export function getSanitizedUsername(){const _0x1eda8d=a182_0x4fcf,_0x4c7f97=process.env.USER||process.env.USERNAME||'unknown';return _0x4c7f97[_0x1eda8d(0x1ba)](/[^a-zA-Z0-9]/g,'')[_0x1eda8d(0x1b2)]();}export function generateRandomHex(){const _0x4af9c9=a182_0x4fcf,_0x2b518d=Math[_0x4af9c9(0x1af)](Math['random']()*0xfffff);return _0x2b518d[_0x4af9c9(0x1b8)](0x10)[_0x4af9c9(0x1a9)](0x5,'0');}export function sanitizeFileName(_0x2d5903){const _0x25a303=a182_0x4fcf;return _0x2d5903['toLowerCase']()[_0x25a303(0x1ba)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x25a303(0x1ba)](/-+/g,'-')[_0x25a303(0x1ba)](/^-|-$/g,'');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23e8c8,_0x134f04){const _0x25f7ca=a183_0x2538,_0x33fb7d=_0x23e8c8();while(!![]){try{const _0x352219=parseInt(_0x25f7ca(0x167))/0x1*(parseInt(_0x25f7ca(0x16f))/0x2)+-parseInt(_0x25f7ca(0x169))/0x3*(parseInt(_0x25f7ca(0x170))/0x4)+parseInt(_0x25f7ca(0x16d))/0x5+-parseInt(_0x25f7ca(0x162))/0x6+parseInt(_0x25f7ca(0x175))/0x7*(-parseInt(_0x25f7ca(0x164))/0x8)+parseInt(_0x25f7ca(0x173))/0x9*(-parseInt(_0x25f7ca(0x166))/0xa)+parseInt(_0x25f7ca(0x160))/0xb*(parseInt(_0x25f7ca(0x174))/0xc);if(_0x352219===_0x134f04)break;else _0x33fb7d['push'](_0x33fb7d['shift']());}catch(_0x1f4d00){_0x33fb7d['push'](_0x33fb7d['shift']());}}}(a183_0x1b99,0xac485));function hasWildcard(_0x13d4ce){const _0x364ecb=a183_0x2538;return _0x13d4ce[_0x364ecb(0x172)]('*')||_0x13d4ce[_0x364ecb(0x172)]('?');}export function parseTableReference(_0x2b7c3b){const _0x5147c7=a183_0x2538;if(!_0x2b7c3b||_0x2b7c3b[_0x5147c7(0x163)]()[_0x5147c7(0x16e)]===0x0)throw new Error(_0x5147c7(0x15f));const _0x1efd8f=_0x2b7c3b[_0x5147c7(0x163)](),_0x148e28={'original':_0x1efd8f},_0x2424ec=_0x1efd8f['split']('.');if(_0x2424ec[_0x5147c7(0x16e)]===0x1){const _0x33114f=_0x2424ec[0x0];if(!_0x33114f)throw new Error(_0x5147c7(0x161));_0x148e28[_0x5147c7(0x165)]=_0x33114f;}else{if(_0x2424ec[_0x5147c7(0x16e)]===0x2){const [_0x5242e2,_0x1de748]=_0x2424ec;if(!_0x5242e2)throw new Error(_0x5147c7(0x168));if(!_0x1de748)throw new Error(_0x5147c7(0x16a));_0x148e28['database']=_0x5242e2,_0x148e28[_0x5147c7(0x165)]=_0x1de748;}else{if(_0x2424ec[_0x5147c7(0x16e)]===0x3){const [_0x2d187a,_0x32695,_0x192467]=_0x2424ec;if(!_0x2d187a||!_0x32695||!_0x192467)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x148e28[_0x5147c7(0x171)]=_0x2d187a,_0x148e28[_0x5147c7(0x15d)]=_0x32695,_0x148e28[_0x5147c7(0x165)]=_0x192467;}else throw new Error(_0x5147c7(0x16b));}}return _0x148e28;}function a183_0x2538(_0x2185e7,_0x206b6d){_0x2185e7=_0x2185e7-0x15d;const _0x1b9942=a183_0x1b99();let _0x25384e=_0x1b9942[_0x2185e7];return _0x25384e;}export function formatTableReference(_0x164603){const _0xcaba4b=a183_0x2538,_0xafa083=[];return _0x164603[_0xcaba4b(0x171)]&&_0xafa083[_0xcaba4b(0x16c)](_0x164603[_0xcaba4b(0x171)]),_0x164603[_0xcaba4b(0x15d)]&&_0xafa083[_0xcaba4b(0x16c)](_0x164603[_0xcaba4b(0x15d)]),_0x164603[_0xcaba4b(0x165)]&&_0xafa083[_0xcaba4b(0x16c)](_0x164603[_0xcaba4b(0x165)]),_0xafa083['join']('.');}function a183_0x1b99(){const _0x26c12c=['20tlraHx','40637XeZjzD','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','331662vSHVbh','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','push','6461165inMpxT','length','10ocseqL','44FLfrFl','catalog','includes','2740131UueMIL','4728cttIeG','7azZIce','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','54329FEEOHV','Pattern\x20cannot\x20be\x20just\x20a\x20dot','220740PuIBPa','trim','6991304AzzRAC','table'];a183_0x1b99=function(){return _0x26c12c;};return a183_0x1b99();}export function validateTableListReference(_0x28dda2){return undefined;}export function validateTableDescribeReference(_0x40c239){const _0x5513d4=a183_0x2538;if(!_0x40c239[_0x5513d4(0x165)])return _0x5513d4(0x15e);if(_0x40c239['database']&&hasWildcard(_0x40c239[_0x5513d4(0x15d)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x40c239[_0x5513d4(0x165)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a184_0x43bf26=a184_0x1491;function a184_0x1491(_0xb201c1,_0x13ab36){_0xb201c1=_0xb201c1-0xac;const _0x3b09dc=a184_0x3b09();let _0x14915d=_0x3b09dc[_0xb201c1];return _0x14915d;}(function(_0x2d912c,_0x395937){const _0x43e07c=a184_0x1491,_0x4b3440=_0x2d912c();while(!![]){try{const _0x37bdcf=parseInt(_0x43e07c(0xcd))/0x1+-parseInt(_0x43e07c(0xc7))/0x2*(parseInt(_0x43e07c(0xc0))/0x3)+parseInt(_0x43e07c(0xbe))/0x4+-parseInt(_0x43e07c(0xb0))/0x5*(parseInt(_0x43e07c(0xbf))/0x6)+parseInt(_0x43e07c(0xbb))/0x7*(parseInt(_0x43e07c(0xac))/0x8)+-parseInt(_0x43e07c(0xb1))/0x9*(parseInt(_0x43e07c(0xbc))/0xa)+-parseInt(_0x43e07c(0xb6))/0xb*(-parseInt(_0x43e07c(0xb3))/0xc);if(_0x37bdcf===_0x395937)break;else _0x4b3440['push'](_0x4b3440['shift']());}catch(_0x4274a1){_0x4b3440['push'](_0x4b3440['shift']());}}}(a184_0x3b09,0x441bb));import{join}from'path';function a184_0x3b09(){const _0x5d61f4=['30LfKkCE','logLevel','655428SkEqoF','242322bzwfsN','6kpQRCp','error','fileOnly','logs','tdx.log','INFO','logger','288386kBwhbY','getLogPath','logDir','debug','isInitialized','Session\x20ended','23059qmDYze','16vKhDGa','fileHandler','init','logFileName','25LIZafp','775224MmjLeo','trace','24HwhNMw','close','consoleHandler','3842432cihCXR','addHandler','info','warn','shutdown','497560OCaHia'];a184_0x3b09=function(){return _0x5d61f4;};return a184_0x3b09();}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';export{LogLevel}from'./logger/index.js';export class TDXLogger{[a184_0x43bf26(0xbd)];[a184_0x43bf26(0xc2)];[a184_0x43bf26(0xc9)];[a184_0x43bf26(0xaf)];[a184_0x43bf26(0xc6)];['fileHandler']=null;[a184_0x43bf26(0xb5)]=null;constructor(_0x468333=LogLevel[a184_0x43bf26(0xc5)],_0x58bb73=![],_0x363892,_0x2375c8=a184_0x43bf26(0xc4)){const _0x238035=a184_0x43bf26;this[_0x238035(0xbd)]=_0x468333,this[_0x238035(0xc2)]=_0x58bb73,this['logDir']=_0x363892||join(getGlobalCacheDir(),_0x238035(0xc3)),this[_0x238035(0xaf)]=_0x2375c8,this[_0x238035(0xc6)]=Logger['of']('tdx');}async[a184_0x43bf26(0xae)](){const _0xb44634=a184_0x43bf26,_0x7df568=join(this[_0xb44634(0xc9)],this[_0xb44634(0xaf)]);if(Logger[_0xb44634(0xcb)]()){!this['fileOnly']&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel['INFO'],'colors':!![]}),Logger[_0xb44634(0xb7)](this['consoleHandler']));return;}this[_0xb44634(0xad)]=new FileHandler({'filePath':_0x7df568});const _0x460fe7=[this[_0xb44634(0xad)]];!this['fileOnly']&&(this[_0xb44634(0xb5)]=new ConsoleHandler({'minLevel':LogLevel[_0xb44634(0xc5)],'colors':!![]}),_0x460fe7['push'](this[_0xb44634(0xb5)])),await Logger[_0xb44634(0xae)]({'defaultLevel':this[_0xb44634(0xbd)],'handlers':_0x460fe7,'formatter':new DefaultLogFormatter({'colors':!![]})});}['debug'](..._0x2c8d24){const _0x266a2b=a184_0x43bf26;this[_0x266a2b(0xc6)][_0x266a2b(0xca)](..._0x2c8d24);}[a184_0x43bf26(0xb2)](..._0x57221c){const _0x50747b=a184_0x43bf26;this[_0x50747b(0xc6)][_0x50747b(0xb2)](..._0x57221c);}[a184_0x43bf26(0xb8)](..._0x47b8a2){const _0x57658c=a184_0x43bf26;this[_0x57658c(0xc6)][_0x57658c(0xb8)](..._0x47b8a2);}['warn'](..._0x2d21c0){const _0x1a7c11=a184_0x43bf26;this[_0x1a7c11(0xc6)][_0x1a7c11(0xb9)](..._0x2d21c0);}[a184_0x43bf26(0xc1)](..._0x327af7){const _0x139e0c=a184_0x43bf26;this['logger'][_0x139e0c(0xc1)](..._0x327af7);}async[a184_0x43bf26(0xb4)](){const _0x4a63bd=a184_0x43bf26;this[_0x4a63bd(0xc6)][_0x4a63bd(0xb8)](_0x4a63bd(0xcc)),await Logger[_0x4a63bd(0xba)]();}[a184_0x43bf26(0xc8)](){const _0x696ea2=a184_0x43bf26;return join(this[_0x696ea2(0xc9)],this[_0x696ea2(0xaf)]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a185_0x3909(){const _0x36b8a4=['version','26436yyxHvB','Request\x20timeout','statusCode','\x0aUpdate\x20available:\x20','lastCheck','updateAvailable','yellow','read','destroy','gray','currentVersion','https://registry.npmjs.org/@treasuredata/tdx/latest','Run:','15783FvWwMw','7787754cpBJLn','1345AVlOQx','144dDiGcI','14058qBXFtQ','write','data','isTTY','stderr','217hAxLVL','getTime','dim','6791360uJCaXw','351335BiuyEL','utils/version-check','Invalid\x20version\x20format','4oEDESF','error','74216mcyICF','latestVersion','8922nnaUsb','parse','npm\x20install\x20-g\x20@treasuredata/tdx@latest','\x0aRun:\x20'];a185_0x3909=function(){return _0x36b8a4;};return a185_0x3909();}const a185_0x1f10c6=a185_0x3adf;(function(_0x5e1eea,_0x6bb487){const _0xa8df1b=a185_0x3adf,_0x171f4d=_0x5e1eea();while(!![]){try{const _0x4dddf6=parseInt(_0xa8df1b(0x14d))/0x1*(-parseInt(_0xa8df1b(0x150))/0x2)+-parseInt(_0xa8df1b(0x140))/0x3*(parseInt(_0xa8df1b(0x143))/0x4)+parseInt(_0xa8df1b(0x142))/0x5*(parseInt(_0xa8df1b(0x154))/0x6)+-parseInt(_0xa8df1b(0x149))/0x7*(parseInt(_0xa8df1b(0x152))/0x8)+-parseInt(_0xa8df1b(0x141))/0x9+-parseInt(_0xa8df1b(0x14c))/0xa+parseInt(_0xa8df1b(0x144))/0xb*(parseInt(_0xa8df1b(0x159))/0xc);if(_0x4dddf6===_0x6bb487)break;else _0x171f4d['push'](_0x171f4d['shift']());}catch(_0x148e1a){_0x171f4d['push'](_0x171f4d['shift']());}}}(a185_0x3909,0x77f4e));import{get}from'https';import{gt,valid}from'semver';import a185_0x553652 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a185_0x1f10c6(0x164),TIMEOUT_MS=0x7d0,versionCache=createGlobalCache('last_version_check',a185_0x1f10c6(0x14e));function readCache(){const _0xe30fbd=a185_0x1f10c6;return versionCache[_0xe30fbd(0x160)]()??null;}function a185_0x3adf(_0x38b82e,_0x924bfb){_0x38b82e=_0x38b82e-0x13f;const _0x3909f2=a185_0x3909();let _0x3adf57=_0x3909f2[_0x38b82e];return _0x3adf57;}function writeCache(_0x22412e){const _0x5b74b0=a185_0x1f10c6;try{versionCache[_0x5b74b0(0x145)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x22412e});}catch{}}function isCacheValid(_0x3c9357){const _0x190710=a185_0x1f10c6;if(!_0x3c9357)return![];const _0x16dd6f=new Date(_0x3c9357[_0x190710(0x15d)])[_0x190710(0x14a)](),_0xe3753f=Date['now']();return _0xe3753f-_0x16dd6f<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x11d60,_0xcdd2b2)=>{const _0x337660=a185_0x3adf,_0x185458=get(NPM_REGISTRY_URL,_0x4f56e9=>{const _0x4adeb9=a185_0x3adf;if(_0x4f56e9[_0x4adeb9(0x15b)]!==0xc8){clearTimeout(_0x486d57),_0xcdd2b2(new Error('HTTP\x20'+_0x4f56e9[_0x4adeb9(0x15b)]));return;}let _0x2c5dc1='';_0x4f56e9['on'](_0x4adeb9(0x146),_0xc605a5=>{_0x2c5dc1+=_0xc605a5;}),_0x4f56e9['on']('end',()=>{const _0x2b2601=_0x4adeb9;clearTimeout(_0x486d57);try{const _0x10f722=JSON[_0x2b2601(0x155)](_0x2c5dc1);if(!valid(_0x10f722[_0x2b2601(0x158)])){_0xcdd2b2(new Error(_0x2b2601(0x14f)));return;}_0x11d60(_0x10f722['version']);}catch(_0x243cdc){_0xcdd2b2(_0x243cdc);}});})['on'](_0x337660(0x151),_0x5d408c=>{clearTimeout(_0x486d57),_0xcdd2b2(_0x5d408c);}),_0x486d57=setTimeout(()=>{const _0x1e3c01=_0x337660;_0x185458[_0x1e3c01(0x161)](),_0xcdd2b2(new Error(_0x1e3c01(0x15a)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4647d9){const _0x269ad1=a185_0x1f10c6;try{const _0x47988e=readCache();if(isCacheValid(_0x47988e)){const _0x4a8c94=gt(_0x47988e[_0x269ad1(0x153)],_0x4647d9);return{'updateAvailable':_0x4a8c94,'currentVersion':_0x4647d9,'latestVersion':_0x47988e[_0x269ad1(0x153)]};}const _0x323aab=await fetchLatestVersion();writeCache(_0x323aab);const _0x18005c=gt(_0x323aab,_0x4647d9);return{'updateAvailable':_0x18005c,'currentVersion':_0x4647d9,'latestVersion':_0x323aab};}catch{return null;}}export function displayUpdateNotification(_0x2fb5fd){const _0x59d6f3=a185_0x1f10c6;if(!_0x2fb5fd[_0x59d6f3(0x15e)])return;const _0x5db3ee=process[_0x59d6f3(0x148)][_0x59d6f3(0x147)]&&!process.env.NO_COLOR,_0xafbf66=_0x5db3ee?a185_0x553652[_0x59d6f3(0x162)]('→'):'→',_0xe59fe1=_0x5db3ee?a185_0x553652[_0x59d6f3(0x14b)](_0x2fb5fd[_0x59d6f3(0x163)]):_0x2fb5fd[_0x59d6f3(0x163)],_0x1f96b0=_0x5db3ee?a185_0x553652['green'](_0x2fb5fd[_0x59d6f3(0x153)]):_0x2fb5fd[_0x59d6f3(0x153)],_0x58e965=_0x5db3ee?a185_0x553652['cyan'](_0x59d6f3(0x156)):_0x59d6f3(0x156),_0x32650b=_0x5db3ee?'\x0a'+a185_0x553652[_0x59d6f3(0x15f)]('Update\x20available:')+'\x20'+_0xe59fe1+'\x20'+_0xafbf66+'\x20'+_0x1f96b0+'\x0a'+a185_0x553652[_0x59d6f3(0x14b)](_0x59d6f3(0x13f))+'\x20'+_0x58e965+'\x0a':_0x59d6f3(0x15c)+_0xe59fe1+'\x20'+_0xafbf66+'\x20'+_0x1f96b0+_0x59d6f3(0x157)+_0x58e965+'\x0a';process[_0x59d6f3(0x148)][_0x59d6f3(0x145)](_0x32650b);}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treasuredata/tdx",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
"build": "npm run build:ts && npm run build:obfuscate",
|
|
34
34
|
"prepublishOnly": "npm run build",
|
|
35
35
|
"dev": "tsx src/bin.ts",
|
|
36
|
+
"studio:install": "npm install && npm --prefix tdx-studio install",
|
|
37
|
+
"studio:dev": "npm --prefix tdx-studio run dev",
|
|
36
38
|
"test": "vitest src/",
|
|
37
39
|
"test:build": "vitest run tests/cli-validation/",
|
|
38
40
|
"test:integration": "vitest --run tests/",
|