@treasuredata/tdx 0.4.5 → 0.4.6
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/build-info.json +2 -2
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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/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/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.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/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/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 +1 -1
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x4a091d=a89_0x3e19;(function(_0x2f5293,_0x43031e){const _0x30d054=a89_0x3e19,_0x1de929=_0x2f5293();while(!![]){try{const _0x3ebf30=-parseInt(_0x30d054(0x178))/0x1+-parseInt(_0x30d054(0x16c))/0x2*(-parseInt(_0x30d054(0x1a1))/0x3)+-parseInt(_0x30d054(0x166))/0x4+parseInt(_0x30d054(0x189))/0x5*(-parseInt(_0x30d054(0x175))/0x6)+-parseInt(_0x30d054(0x196))/0x7*(-parseInt(_0x30d054(0x1a4))/0x8)+-parseInt(_0x30d054(0x169))/0x9+-parseInt(_0x30d054(0x19c))/0xa*(-parseInt(_0x30d054(0x173))/0xb);if(_0x3ebf30===_0x43031e)break;else _0x1de929['push'](_0x1de929['shift']());}catch(_0x374c52){_0x1de929['push'](_0x1de929['shift']());}}}(a89_0x42d0,0x5fe7e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a89_0x42d0(){const _0x1565c6=['message','tdx-','mtime','toISOString','ERROR','write','cause','182xpBGUK','logStream','info','.gz','fileOnly','getMinutes','30vmmzON','red','Warning:\x20Error\x20writing\x20to\x20tdx.log:','.log','padStart','1533dzLITF','getHours','error','205528wjwnpf','gray','close','1218316jesBgb','tdx.log','TRACE','2593512CKrAxD','map','getMonth','1898QKXxQK','getSeconds','logLevel','includes','rotateOldLogs','WARN','test','4172179lpZQqV','.cache','5298UPBpUJ','logs','getDate','758618bzIzbl','Warning:\x20Failed\x20to\x20compress\x20','trace','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','warn','Proxy\x20session\x20ended','toString','stack','DEBUG','tdx','log','abs','floor','split','getTimezoneOffset','getMilliseconds','name','3095ZHUxHC','debug','INFO','logDir','getLogPath','end'];a89_0x42d0=function(){return _0x1565c6;};return a89_0x42d0();}function a89_0x3e19(_0x92738,_0x45235d){const _0x42d0d2=a89_0x42d0();return a89_0x3e19=function(_0x3e19c1,_0x3b5f8e){_0x3e19c1=_0x3e19c1-0x166;let _0x55456f=_0x42d0d2[_0x3e19c1];return _0x55456f;},a89_0x3e19(_0x92738,_0x45235d);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x4e5053 from'chalk';function safeStringify(_0xdba028){const _0x2f6629=a89_0x3e19;if(typeof _0xdba028==='string')return _0xdba028;if(_0xdba028 instanceof Error)return _0xdba028[_0x2f6629(0x17f)]||_0xdba028[_0x2f6629(0x188)]+':\x20'+_0xdba028[_0x2f6629(0x18f)];try{return JSON['stringify'](_0xdba028,(_0x5429a2,_0x3f12ef)=>{const _0x2d8526=_0x2f6629;if(_0x3f12ef instanceof Error)return{'name':_0x3f12ef[_0x2d8526(0x188)],'message':_0x3f12ef['message'],'stack':_0x3f12ef[_0x2d8526(0x17f)],'cause':_0x3f12ef[_0x2d8526(0x195)]};return _0x3f12ef;});}catch{return String(_0xdba028);}}function getTimezoneOffset(){const _0x1f7238=a89_0x3e19,_0x412321=-new Date()[_0x1f7238(0x186)](),_0x4df58d=Math[_0x1f7238(0x184)](Math['abs'](_0x412321)/0x3c),_0x2867ed=Math[_0x1f7238(0x183)](_0x412321)%0x3c,_0x2efacf=_0x412321>=0x0?'+':'-';return''+_0x2efacf+_0x4df58d[_0x1f7238(0x17e)]()['padStart'](0x2,'0')+_0x2867ed[_0x1f7238(0x17e)]()[_0x1f7238(0x1a0)](0x2,'0');}function formatTimestamp(){const _0x3bee6f=a89_0x3e19,_0x5b7b15=new Date(),_0x1bdca7=_0x5b7b15['getFullYear'](),_0x3afd9f=(_0x5b7b15[_0x3bee6f(0x16b)]()+0x1)['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0x226c61=_0x5b7b15[_0x3bee6f(0x177)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x243b73=_0x5b7b15[_0x3bee6f(0x1a2)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xaf31bc=_0x5b7b15[_0x3bee6f(0x19b)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x308c1c=_0x5b7b15[_0x3bee6f(0x16d)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xce8571=_0x5b7b15[_0x3bee6f(0x187)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x3,'0'),_0x450f1b=getTimezoneOffset();return _0x1bdca7+'-'+_0x3afd9f+'-'+_0x226c61+'\x20'+_0x243b73+':'+_0xaf31bc+':'+_0x308c1c+'.'+_0xce8571+_0x450f1b;}function formatColoredLogEntry(_0x5157db,_0xf9cb5b){const _0x51c0f2=a89_0x3e19,_0x2e9d7a=formatTimestamp(),_0x153409=_0xf9cb5b[_0x51c0f2(0x16a)](safeStringify)['join']('\x20'),_0x571e41=a89_0x4e5053[_0x51c0f2(0x1a5)](_0x2e9d7a);let _0x403088;switch(_0x5157db){case _0x51c0f2(0x198):_0x403088=a89_0x4e5053['cyan']('['+_0x5157db+']\x20');break;case _0x51c0f2(0x17c):_0x403088=a89_0x4e5053['yellow']('['+_0x5157db+']\x20');break;case'error':_0x403088=a89_0x4e5053[_0x51c0f2(0x19d)]('['+_0x5157db+']');break;case _0x51c0f2(0x18a):_0x403088=a89_0x4e5053[_0x51c0f2(0x1a5)]('['+_0x5157db+']');break;default:_0x403088='['+_0x5157db+']';}return _0x571e41+'\x20'+_0x403088+'\x20'+_0x153409;}export var LogLevel;(function(_0x206fa3){const _0xd293b1=a89_0x3e19;_0x206fa3[_0x206fa3[_0xd293b1(0x168)]=-0x2]='TRACE',_0x206fa3[_0x206fa3[_0xd293b1(0x180)]=-0x1]=_0xd293b1(0x180),_0x206fa3[_0x206fa3[_0xd293b1(0x18b)]=0x0]=_0xd293b1(0x18b),_0x206fa3[_0x206fa3[_0xd293b1(0x171)]=0x1]=_0xd293b1(0x171),_0x206fa3[_0x206fa3['ERROR']=0x2]=_0xd293b1(0x193);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x4a091d(0x197)];[a89_0x4a091d(0x18c)];[a89_0x4a091d(0x16e)];['fileOnly'];constructor(_0x421508=LogLevel[a89_0x4a091d(0x18b)],_0x3d28e3=![]){const _0x3eae98=a89_0x4a091d;this[_0x3eae98(0x18c)]=join(homedir(),_0x3eae98(0x174),_0x3eae98(0x181),_0x3eae98(0x176)),this['logLevel']=_0x421508,this['fileOnly']=_0x3d28e3;}async['init'](){const _0x416534=a89_0x4a091d;try{await mkdir(this[_0x416534(0x18c)],{'recursive':!![]}),await this[_0x416534(0x170)]();const _0x2621e1=join(this[_0x416534(0x18c)],_0x416534(0x167));this[_0x416534(0x197)]=createWriteStream(_0x2621e1,{'flags':'a'}),this[_0x416534(0x197)]['on'](_0x416534(0x1a3),_0xe593a3=>{const _0x381c85=_0x416534;console[_0x381c85(0x1a3)](_0x381c85(0x19e),_0xe593a3[_0x381c85(0x18f)]);});}catch(_0x4eb46c){console[_0x416534(0x1a3)](_0x416534(0x17b),_0x4eb46c);}}async[a89_0x4a091d(0x170)](){const _0x22671c=a89_0x4a091d;try{const _0x1d75d4=await readdir(this['logDir']),_0x4b58f=new Date()[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x1d75d4[_0x22671c(0x16f)](_0x22671c(0x167))){const _0x18eb8f=join(this['logDir'],_0x22671c(0x167)),_0x2f7235=await stat(_0x18eb8f),_0x354f27=new Date(_0x2f7235[_0x22671c(0x191)])[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x354f27<_0x4b58f){const _0x3d14f4=join(this['logDir'],_0x22671c(0x190)+_0x354f27+_0x22671c(0x19f));await rename(_0x18eb8f,_0x3d14f4);}}const _0x3ccf2f=await readdir(this[_0x22671c(0x18c)]),_0x1d3954=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x9c5ec=_0x3ccf2f['filter'](_0x36f54e=>_0x1d3954[_0x22671c(0x172)](_0x36f54e));for(const _0x34ea0d of _0x9c5ec){const _0xf4abfd=join(this[_0x22671c(0x18c)],_0x34ea0d),_0x48592c=join(this['logDir'],_0x34ea0d+_0x22671c(0x199));try{await pipeline(createReadStream(_0xf4abfd),createGzip(),createWriteStream(_0x48592c)),await unlink(_0xf4abfd);}catch(_0x49dd7e){console[_0x22671c(0x1a3)](_0x22671c(0x179)+_0x34ea0d+':',_0x49dd7e);}}}catch{}}[a89_0x4a091d(0x18a)](..._0x2bf9df){const _0x1a16e2=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x1a16e2(0x180)])return;const _0x1202ba=formatColoredLogEntry(_0x1a16e2(0x18a),_0x2bf9df);this[_0x1a16e2(0x197)]?.[_0x1a16e2(0x194)](_0x1202ba+'\x0a');}[a89_0x4a091d(0x17a)](..._0x1e2a31){const _0x41f5c9=a89_0x4a091d;if(this[_0x41f5c9(0x16e)]>LogLevel['TRACE'])return;const _0x578e1f=formatColoredLogEntry(_0x41f5c9(0x17a),_0x1e2a31);this['logStream']?.['write'](_0x578e1f+'\x0a');}[a89_0x4a091d(0x198)](..._0x5a2d64){const _0x13fa88=a89_0x4a091d;if(this[_0x13fa88(0x16e)]>LogLevel[_0x13fa88(0x18b)])return;const _0x155f3e=formatColoredLogEntry(_0x13fa88(0x198),_0x5a2d64);!this['fileOnly']&&console[_0x13fa88(0x182)](_0x155f3e),this[_0x13fa88(0x197)]?.[_0x13fa88(0x194)](_0x155f3e+'\x0a');}['warn'](..._0x21e628){const _0x497a7e=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x497a7e(0x171)])return;const _0x50407d=formatColoredLogEntry(_0x497a7e(0x17c),_0x21e628);!this[_0x497a7e(0x19a)]&&console[_0x497a7e(0x1a3)](_0x50407d),this[_0x497a7e(0x197)]?.[_0x497a7e(0x194)](_0x50407d+'\x0a');}['error'](..._0x302cc7){const _0xacee0d=a89_0x4a091d,_0x27a58e=formatColoredLogEntry(_0xacee0d(0x1a3),_0x302cc7);!this[_0xacee0d(0x19a)]&&console[_0xacee0d(0x1a3)](_0x27a58e),this['logStream']?.[_0xacee0d(0x194)](_0x27a58e+'\x0a');}async[a89_0x4a091d(0x1a6)](){const _0x447c5b=a89_0x4a091d;return this[_0x447c5b(0x198)](_0x447c5b(0x17d)),new Promise(_0x224b84=>{const _0x1a7dce=_0x447c5b;this['logStream']?this[_0x1a7dce(0x197)][_0x1a7dce(0x18e)](()=>{_0x224b84();}):_0x224b84();});}[a89_0x4a091d(0x18d)](){const _0x2db494=a89_0x4a091d;return join(this['logDir'],_0x2db494(0x167));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51e1a0,_0x364e8d){const _0x4ed0e0=a90_0x4a41,_0x2bc3f2=_0x51e1a0();while(!![]){try{const _0x7f6d93=parseInt(_0x4ed0e0(0x1bf))/0x1+-parseInt(_0x4ed0e0(0x1be))/0x2+parseInt(_0x4ed0e0(0x1b4))/0x3+-parseInt(_0x4ed0e0(0x1b7))/0x4*(parseInt(_0x4ed0e0(0x1cc))/0x5)+parseInt(_0x4ed0e0(0x1d0))/0x6*(parseInt(_0x4ed0e0(0x1b0))/0x7)+parseInt(_0x4ed0e0(0x1ae))/0x8*(parseInt(_0x4ed0e0(0x1bd))/0x9)+-parseInt(_0x4ed0e0(0x1ce))/0xa*(parseInt(_0x4ed0e0(0x1c9))/0xb);if(_0x7f6d93===_0x364e8d)break;else _0x2bc3f2['push'](_0x2bc3f2['shift']());}catch(_0x4dec9c){_0x2bc3f2['push'](_0x2bc3f2['shift']());}}}(a90_0x2a54,0xb19c0));function a90_0x2a54(){const _0x5b2981=['population','map','210195nyAxdo','1970556ESctFn','211027KtVDNV','join','name','showTreeLines','icon','segmentCount','segment','\x20\x20\x20','folderCount','\x20\x20\x20\x20','15466935djldjt','localeCompare','length','186715rYlWVT','🎯\x20','10tRFwct','(empty)','96xOGePM','type','392OBVxvz','metadata','626787WhMLtO','children','folder','├──\x20','2672754zmMEpH','push','\x20folder','60ZzxqME','showIcons','dim','sort'];a90_0x2a54=function(){return _0x5b2981;};return a90_0x2a54();}import{formatRows}from'./formatters.js';function a90_0x4a41(_0x264912,_0x55b528){const _0x2a54af=a90_0x2a54();return a90_0x4a41=function(_0x4a4128,_0x5e5de6){_0x4a4128=_0x4a4128-0x1ae;let _0x7041db=_0x2a54af[_0x4a4128];return _0x7041db;},a90_0x4a41(_0x264912,_0x55b528);}import a90_0x578692 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x5582cb,_0x391835={},_0x1402b5=0x0,_0x224caf=''){const _0x5e1fa5=a90_0x4a41,_0x3990dd={...DEFAULT_OPTIONS,..._0x391835},_0x1ec065=[],_0x5f4b46=[..._0x5582cb][_0x5e1fa5(0x1ba)]((_0x5326fd,_0x221fc8)=>_0x5326fd[_0x5e1fa5(0x1c1)][_0x5e1fa5(0x1ca)](_0x221fc8[_0x5e1fa5(0x1c1)]));for(let _0xf3f7eb=0x0;_0xf3f7eb<_0x5f4b46[_0x5e1fa5(0x1cb)];_0xf3f7eb++){const _0x472f3b=_0x5f4b46[_0xf3f7eb],_0x4070fa=_0xf3f7eb===_0x5f4b46['length']-0x1;let _0x404f16='';_0x1402b5>0x0&&(_0x404f16+=_0x224caf);_0x3990dd[_0x5e1fa5(0x1c2)]&&_0x1402b5>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)](_0x4070fa?'└──\x20':_0x5e1fa5(0x1b3)));_0x3990dd['showIcons']&&(_0x404f16+=_0x472f3b['type']===_0x5e1fa5(0x1b2)?'📁\x20':_0x5e1fa5(0x1cd));_0x404f16+=_0x472f3b[_0x5e1fa5(0x1c1)];if(_0x3990dd['showMetadata']){if(_0x472f3b[_0x5e1fa5(0x1d1)]===_0x5e1fa5(0x1b2)){const _0x3286db=[];_0x472f3b['metadata'][_0x5e1fa5(0x1c4)]&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]+'\x20segment'+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]!==0x1?'s':'')),_0x472f3b['metadata']['folderCount']&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]+_0x5e1fa5(0x1b6)+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]!==0x1?'s':'')),_0x3286db[_0x5e1fa5(0x1cb)]>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+_0x3286db[_0x5e1fa5(0x1c0)](',\x20')+')'));}else _0x472f3b['type']===_0x5e1fa5(0x1c5)&&_0x472f3b['population']!==undefined&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+formatRows(_0x472f3b[_0x5e1fa5(0x1bb)])+')'));}_0x1ec065[_0x5e1fa5(0x1b5)](_0x404f16);if(_0x472f3b[_0x5e1fa5(0x1b1)]&&_0x472f3b[_0x5e1fa5(0x1b1)]['length']>0x0){let _0x1349a9;if(_0x1402b5===0x0)_0x1349a9='';else _0x3990dd[_0x5e1fa5(0x1c2)]?_0x1349a9=_0x224caf+(_0x4070fa?_0x5e1fa5(0x1c8):a90_0x578692[_0x5e1fa5(0x1b9)]('│')+_0x5e1fa5(0x1c6)):_0x1349a9=_0x224caf+_0x3990dd['indent'];const _0x3f2537=formatTree(_0x472f3b[_0x5e1fa5(0x1b1)],_0x3990dd,_0x1402b5+0x1,_0x1349a9);_0x1ec065['push'](_0x3f2537);}}return _0x1ec065['join']('\x0a');}export function formatFlatList(_0xaa585e,_0x38a139,_0x34a4c8={}){const _0x59929e=a90_0x4a41,_0x14a12e={...DEFAULT_OPTIONS,..._0x34a4c8},_0x4d89db=[];for(const _0x5c2e80 of _0xaa585e){_0x4d89db[_0x59929e(0x1b5)]({'name':_0x5c2e80['name'],'icon':_0x14a12e['showIcons']?'📁':'','metadata':undefined});}for(const _0x33e24c of _0x38a139){const _0x18a4c7=_0x14a12e['showMetadata']&&_0x33e24c['population']!==undefined?a90_0x578692[_0x59929e(0x1b9)]('\x20('+formatRows(_0x33e24c[_0x59929e(0x1bb)])+')'):'';_0x4d89db[_0x59929e(0x1b5)]({'name':_0x33e24c[_0x59929e(0x1c1)],'icon':_0x14a12e[_0x59929e(0x1b8)]?'🎯':'','metadata':_0x18a4c7});}_0x4d89db['sort']((_0xc7eb46,_0xbe2ca6)=>_0xc7eb46[_0x59929e(0x1c1)]['localeCompare'](_0xbe2ca6[_0x59929e(0x1c1)]));if(_0x4d89db[_0x59929e(0x1cb)]===0x0)return _0x59929e(0x1cf);const _0x26093b=_0x4d89db[_0x59929e(0x1bc)](_0x5a9fef=>{const _0x317dd9=_0x59929e,_0x10e940=_0x5a9fef[_0x317dd9(0x1c3)]?_0x5a9fef[_0x317dd9(0x1c3)]+'\x20':'',_0x45bc44=_0x5a9fef[_0x317dd9(0x1af)]||'';return''+_0x10e940+_0x5a9fef['name']+_0x45bc44;});return _0x26093b[_0x59929e(0x1c0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x6afa3b=a91_0x2197;function a91_0x4aa6(){const _0x19cbb4=['8749806yZZSHN','now','5aXpYbZ','getTime','statusCode','6pwMzjL','gray','1080557bGnRsO','\x0aUpdate\x20available:\x20','67330IvCQTm','toISOString','2077446YsGgIp','env','12119346XKSXeo','data','latestVersion','utf-8','3566584AFCEIY','Update\x20available:','currentVersion','66EFlEWs','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','isTTY','end','https://registry.npmjs.org/@treasuredata/tdx/latest','stderr','yellow','lastCheck','2vdAEHo','green','93364yixRMy','last_version_check','Run:','version','error','stringify','dim','updateAvailable','\x0aRun:\x20','NO_COLOR','parse'];a91_0x4aa6=function(){return _0x19cbb4;};return a91_0x4aa6();}(function(_0x2423ab,_0x450588){const _0x2f2197=a91_0x2197,_0x3bf1fa=_0x2423ab();while(!![]){try{const _0x39484a=-parseInt(_0x2f2197(0x193))/0x1*(-parseInt(_0x2f2197(0x17f))/0x2)+-parseInt(_0x2f2197(0x191))/0x3*(parseInt(_0x2f2197(0x181))/0x4)+-parseInt(_0x2f2197(0x18e))/0x5*(parseInt(_0x2f2197(0x18c))/0x6)+parseInt(_0x2f2197(0x197))/0x7+-parseInt(_0x2f2197(0x173))/0x8+parseInt(_0x2f2197(0x199))/0x9+parseInt(_0x2f2197(0x195))/0xa*(-parseInt(_0x2f2197(0x176))/0xb);if(_0x39484a===_0x450588)break;else _0x3bf1fa['push'](_0x3bf1fa['shift']());}catch(_0x55d4ea){_0x3bf1fa['push'](_0x3bf1fa['shift']());}}}(a91_0x4aa6,0xb2e35));function a91_0x2197(_0x40dfa7,_0x12fc36){const _0x4aa6de=a91_0x4aa6();return a91_0x2197=function(_0x2197ed,_0x18c6e0){_0x2197ed=_0x2197ed-0x171;let _0x2f9cec=_0x4aa6de[_0x2197ed];return _0x2f9cec;},a91_0x2197(_0x40dfa7,_0x12fc36);}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a91_0x4ce1fe from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x6afa3b(0x17b),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x43df61=a91_0x6afa3b,_0x2d58f5=getCacheDir();return join(_0x2d58f5,_0x43df61(0x182));}function readCache(){const _0x4e0084=a91_0x6afa3b;try{const _0xff3a56=getCacheFilePath(),_0x4684fd=readFileSync(_0xff3a56,_0x4e0084(0x172));return JSON[_0x4e0084(0x18b)](_0x4684fd);}catch{return null;}}function writeCache(_0x30b4e8){const _0x3adbf2=a91_0x6afa3b;try{const _0x3c5306=getCacheDir();mkdirSync(_0x3c5306,{'recursive':!![]});const _0x2e42f6={'lastCheck':new Date()[_0x3adbf2(0x196)](),'latestVersion':_0x30b4e8},_0x2266d1=getCacheFilePath();writeFileSync(_0x2266d1,JSON[_0x3adbf2(0x186)](_0x2e42f6,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x2d5b88){const _0x1411cc=a91_0x6afa3b;if(!_0x2d5b88)return![];const _0x11935a=new Date(_0x2d5b88[_0x1411cc(0x17e)])[_0x1411cc(0x18f)](),_0x4a9d2d=Date[_0x1411cc(0x18d)]();return _0x4a9d2d-_0x11935a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1a7540,_0x4c6fe3)=>{const _0xb6292e=a91_0x2197,_0x52db33=get(NPM_REGISTRY_URL,_0x43dd89=>{const _0x3eb8ff=a91_0x2197;if(_0x43dd89[_0x3eb8ff(0x190)]!==0xc8){clearTimeout(_0x5b73bb),_0x4c6fe3(new Error('HTTP\x20'+_0x43dd89[_0x3eb8ff(0x190)]));return;}let _0x508238='';_0x43dd89['on'](_0x3eb8ff(0x19a),_0x3a6264=>{_0x508238+=_0x3a6264;}),_0x43dd89['on'](_0x3eb8ff(0x17a),()=>{const _0x2638bf=_0x3eb8ff;clearTimeout(_0x5b73bb);try{const _0x5f1d52=JSON[_0x2638bf(0x18b)](_0x508238);if(!valid(_0x5f1d52['version'])){_0x4c6fe3(new Error('Invalid\x20version\x20format'));return;}_0x1a7540(_0x5f1d52[_0x2638bf(0x184)]);}catch(_0x42451b){_0x4c6fe3(_0x42451b);}});})['on'](_0xb6292e(0x185),_0x241106=>{clearTimeout(_0x5b73bb),_0x4c6fe3(_0x241106);}),_0x5b73bb=setTimeout(()=>{_0x52db33['destroy'](),_0x4c6fe3(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4d4e36){const _0x4518f3=a91_0x6afa3b;try{const _0x21d9a2=readCache();if(isCacheValid(_0x21d9a2)){const _0xab8756=gt(_0x21d9a2[_0x4518f3(0x171)],_0x4d4e36);return{'updateAvailable':_0xab8756,'currentVersion':_0x4d4e36,'latestVersion':_0x21d9a2['latestVersion']};}const _0x4c8d93=await fetchLatestVersion();writeCache(_0x4c8d93);const _0x5e2619=gt(_0x4c8d93,_0x4d4e36);return{'updateAvailable':_0x5e2619,'currentVersion':_0x4d4e36,'latestVersion':_0x4c8d93};}catch{return null;}}export function displayUpdateNotification(_0x19dfdf){const _0x55e1e5=a91_0x6afa3b;if(!_0x19dfdf[_0x55e1e5(0x188)])return;const _0x2c2d55=process[_0x55e1e5(0x17c)][_0x55e1e5(0x179)]&&!process[_0x55e1e5(0x198)][_0x55e1e5(0x18a)],_0x367e50=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x192)]('→'):'→',_0x32cdf2=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x187)](_0x19dfdf[_0x55e1e5(0x175)]):_0x19dfdf[_0x55e1e5(0x175)],_0x216620=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x180)](_0x19dfdf[_0x55e1e5(0x171)]):_0x19dfdf[_0x55e1e5(0x171)],_0x5dc3c6=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x177)](_0x55e1e5(0x178)):_0x55e1e5(0x178),_0x44060e=_0x2c2d55?'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x17d)](_0x55e1e5(0x174))+'\x20'+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x187)](_0x55e1e5(0x183))+'\x20'+_0x5dc3c6+'\x0a':_0x55e1e5(0x194)+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+_0x55e1e5(0x189)+_0x5dc3c6+'\x0a';process['stderr']['write'](_0x44060e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a92_0x7f63(_0x19dad2,_0x3ae822){const _0x1d1956=a92_0x1d19();return a92_0x7f63=function(_0x7f6388,_0xed2c5d){_0x7f6388=_0x7f6388-0x76;let _0x74c66d=_0x1d1956[_0x7f6388];return _0x74c66d;},a92_0x7f63(_0x19dad2,_0x3ae822);}const a92_0x5e88db=a92_0x7f63;(function(_0x12a2d1,_0x1744ca){const _0x4e0a95=a92_0x7f63,_0x31e687=_0x12a2d1();while(!![]){try{const _0x4dd42d=-parseInt(_0x4e0a95(0x7e))/0x1+-parseInt(_0x4e0a95(0x83))/0x2+parseInt(_0x4e0a95(0x78))/0x3*(-parseInt(_0x4e0a95(0x80))/0x4)+-parseInt(_0x4e0a95(0x76))/0x5*(parseInt(_0x4e0a95(0x7c))/0x6)+-parseInt(_0x4e0a95(0x82))/0x7*(-parseInt(_0x4e0a95(0x77))/0x8)+parseInt(_0x4e0a95(0x79))/0x9+-parseInt(_0x4e0a95(0x81))/0xa*(-parseInt(_0x4e0a95(0x7b))/0xb);if(_0x4dd42d===_0x1744ca)break;else _0x31e687['push'](_0x31e687['shift']());}catch(_0x5e014b){_0x31e687['push'](_0x31e687['shift']());}}}(a92_0x1d19,0x972e5));export const WORKFLOW_FILE_EXTENSION=a92_0x5e88db(0x7d);export function shouldIncludeInArchive(_0x46691b){const _0x4abb57=a92_0x5e88db;if(_0x46691b===_0x4abb57(0x7a))return!![];if(_0x46691b[_0x4abb57(0x7f)]('.'))return![];return!![];}function a92_0x1d19(){const _0x213f41=['104jQGMab','15IevqEk','9350163EqmIIp','.digdag','46354TCHrBB','54JNFwxz','.dig','649090YyKSFz','startsWith','323740mfgaho','290YGWPvZ','534583HckIFa','870160RrCpvt','25460YnaWQu'];a92_0x1d19=function(){return _0x213f41;};return a92_0x1d19();}
|