@treasuredata/tdx 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +2 -2
- package/dist/cli.js +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.d.ts.map +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/llm-api-client.js.map +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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x467f35,_0x324fa8){const _0x324ead=a86_0x3208,_0x266949=_0x467f35();while(!![]){try{const _0x1b8542=-parseInt(_0x324ead(0x167))/0x1*(parseInt(_0x324ead(0x161))/0x2)+-parseInt(_0x324ead(0x14c))/0x3*(parseInt(_0x324ead(0x162))/0x4)+parseInt(_0x324ead(0x149))/0x5+-parseInt(_0x324ead(0x165))/0x6*(-parseInt(_0x324ead(0x157))/0x7)+parseInt(_0x324ead(0x14e))/0x8*(parseInt(_0x324ead(0x156))/0x9)+parseInt(_0x324ead(0x16e))/0xa+-parseInt(_0x324ead(0x151))/0xb*(parseInt(_0x324ead(0x15b))/0xc);if(_0x1b8542===_0x324fa8)break;else _0x266949['push'](_0x266949['shift']());}catch(_0x67aaa){_0x266949['push'](_0x266949['shift']());}}}(a86_0x39ae,0xe11ab));import{formatRows}from'./formatters.js';import a86_0x5c437f from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};function a86_0x3208(_0x45d3b7,_0x422723){const _0x39ae6e=a86_0x39ae();return a86_0x3208=function(_0x320884,_0x2b2260){_0x320884=_0x320884-0x148;let _0x428d9d=_0x39ae6e[_0x320884];return _0x428d9d;},a86_0x3208(_0x45d3b7,_0x422723);}export function formatTree(_0x1e448f,_0x575e3e={},_0x2c2b45=0x0,_0x29f0d2=''){const _0x468d52=a86_0x3208,_0x1a209a={...DEFAULT_OPTIONS,..._0x575e3e},_0x4df42b=[],_0x2c6890=[..._0x1e448f][_0x468d52(0x15a)]((_0x4a372e,_0xaadd21)=>_0x4a372e['name'][_0x468d52(0x16b)](_0xaadd21[_0x468d52(0x164)]));for(let _0x1d900f=0x0;_0x1d900f<_0x2c6890[_0x468d52(0x160)];_0x1d900f++){const _0x49cb33=_0x2c6890[_0x1d900f],_0x2d5907=_0x1d900f===_0x2c6890[_0x468d52(0x160)]-0x1;let _0x23b048='';_0x2c2b45>0x0&&(_0x23b048+=_0x29f0d2);_0x1a209a[_0x468d52(0x15d)]&&_0x2c2b45>0x0&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)](_0x2d5907?'└──\x20':'├──\x20'));_0x1a209a[_0x468d52(0x14d)]&&(_0x23b048+=_0x49cb33[_0x468d52(0x163)]===_0x468d52(0x16c)?_0x468d52(0x154):_0x468d52(0x16d));_0x23b048+=_0x49cb33['name'];if(_0x1a209a[_0x468d52(0x15f)]){if(_0x49cb33[_0x468d52(0x163)]==='folder'){const _0x29f3b8=[];_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x16a)]&&_0x29f3b8['push'](_0x49cb33[_0x468d52(0x14b)]['segmentCount']+_0x468d52(0x159)+(_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x16a)]!==0x1?'s':'')),_0x49cb33['metadata'][_0x468d52(0x14f)]&&_0x29f3b8[_0x468d52(0x155)](_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x14f)]+'\x20folder'+(_0x49cb33[_0x468d52(0x14b)][_0x468d52(0x14f)]!==0x1?'s':'')),_0x29f3b8['length']>0x0&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)]('\x20('+_0x29f3b8[_0x468d52(0x166)](',\x20')+')'));}else _0x49cb33[_0x468d52(0x163)]===_0x468d52(0x14a)&&_0x49cb33[_0x468d52(0x152)]!==undefined&&(_0x23b048+=a86_0x5c437f[_0x468d52(0x15c)]('\x20('+formatRows(_0x49cb33[_0x468d52(0x152)])+')'));}_0x4df42b[_0x468d52(0x155)](_0x23b048);if(_0x49cb33[_0x468d52(0x169)]&&_0x49cb33[_0x468d52(0x169)][_0x468d52(0x160)]>0x0){let _0x2d9464;if(_0x2c2b45===0x0)_0x2d9464='';else _0x1a209a['showTreeLines']?_0x2d9464=_0x29f0d2+(_0x2d5907?_0x468d52(0x150):a86_0x5c437f[_0x468d52(0x15c)]('│')+_0x468d52(0x148)):_0x2d9464=_0x29f0d2+_0x1a209a[_0x468d52(0x158)];const _0x572138=formatTree(_0x49cb33[_0x468d52(0x169)],_0x1a209a,_0x2c2b45+0x1,_0x2d9464);_0x4df42b[_0x468d52(0x155)](_0x572138);}}return _0x4df42b[_0x468d52(0x166)]('\x0a');}export function formatFlatList(_0x1f8f02,_0x493b16,_0x29d09a={}){const _0x25368a=a86_0x3208,_0xa4e69f={...DEFAULT_OPTIONS,..._0x29d09a},_0x14d9bf=[];for(const _0x2d42cd of _0x1f8f02){_0x14d9bf['push']({'name':_0x2d42cd[_0x25368a(0x164)],'icon':_0xa4e69f['showIcons']?'📁':'','metadata':undefined});}for(const _0x5e5511 of _0x493b16){const _0x42df12=_0xa4e69f[_0x25368a(0x15f)]&&_0x5e5511[_0x25368a(0x152)]!==undefined?a86_0x5c437f[_0x25368a(0x15c)]('\x20('+formatRows(_0x5e5511[_0x25368a(0x152)])+')'):'';_0x14d9bf[_0x25368a(0x155)]({'name':_0x5e5511[_0x25368a(0x164)],'icon':_0xa4e69f[_0x25368a(0x14d)]?'🎯':'','metadata':_0x42df12});}_0x14d9bf['sort']((_0x391731,_0x1ec05e)=>_0x391731[_0x25368a(0x164)][_0x25368a(0x16b)](_0x1ec05e[_0x25368a(0x164)]));if(_0x14d9bf[_0x25368a(0x160)]===0x0)return _0x25368a(0x168);const _0x10fc19=_0x14d9bf[_0x25368a(0x15e)](_0x2acce4=>{const _0x387526=_0x25368a,_0x2a756d=_0x2acce4[_0x387526(0x153)]?_0x2acce4[_0x387526(0x153)]+'\x20':'',_0x4e5949=_0x2acce4[_0x387526(0x14b)]||'';return''+_0x2a756d+_0x2acce4['name']+_0x4e5949;});return _0x10fc19[_0x25368a(0x166)]('\x0a');}function a86_0x39ae(){const _0x255c82=['map','showMetadata','length','838iQcZLl','19468bgoFNy','type','name','2346KcshSq','join','1827NPHwDD','(empty)','children','segmentCount','localeCompare','folder','🎯\x20','15319160FUuBLv','\x20\x20\x20','2980710yHuBhb','segment','metadata','687cjwkGB','showIcons','376CAiIaD','folderCount','\x20\x20\x20\x20','2611411FvIilE','population','icon','📁\x20','push','26955rvCBGu','13797NprPwK','indent','\x20segment','sort','12tkoLXc','dim','showTreeLines'];a86_0x39ae=function(){return _0x255c82;};return a86_0x39ae();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1aed3f,_0x51ece9){const _0x222263=a87_0xa4b9,_0x31ea6a=_0x1aed3f();while(!![]){try{const _0x512e02=parseInt(_0x222263(0x139))/0x1+-parseInt(_0x222263(0x127))/0x2+parseInt(_0x222263(0x128))/0x3+-parseInt(_0x222263(0x130))/0x4+parseInt(_0x222263(0x123))/0x5+parseInt(_0x222263(0x134))/0x6*(parseInt(_0x222263(0x13b))/0x7)+parseInt(_0x222263(0x125))/0x8;if(_0x512e02===_0x51ece9)break;else _0x31ea6a['push'](_0x31ea6a['shift']());}catch(_0x40a4ae){_0x31ea6a['push'](_0x31ea6a['shift']());}}}(a87_0xd00d,0xd8174));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a87_0x11ad14 from'chalk';function a87_0xa4b9(_0x56085d,_0x754e5e){const _0xd00de8=a87_0xd00d();return a87_0xa4b9=function(_0xa4b970,_0x211642){_0xa4b970=_0xa4b970-0x11b;let _0x46928a=_0xd00de8[_0xa4b970];return _0x46928a;},a87_0xa4b9(_0x56085d,_0x754e5e);}import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x52f9af=getCacheDir();return join(_0x52f9af,'last_version_check');}function a87_0xd00d(){const _0x11146c=['414618eSrRHk','gray','707pxyPAZ','green','yellow','Run:','env','data','currentVersion','utf-8','Update\x20available:','version','statusCode','isTTY','now','stringify','updateAvailable','1389335KDdqNv','Invalid\x20version\x20format','499416pdUgkx','dim','79288RpSZNP','1040772mRBxhh','npm\x20install\x20-g\x20@treasuredata/tdx@latest','cyan','stderr','HTTP\x20','end','getTime','destroy','808124PDrWHx','parse','NO_COLOR','Request\x20timeout','1482wEOEem','lastCheck','\x0aRun:\x20','write','latestVersion'];a87_0xd00d=function(){return _0x11146c;};return a87_0xd00d();}function readCache(){const _0xcd8f85=a87_0xa4b9;try{const _0x5a8732=getCacheFilePath(),_0xb95439=readFileSync(_0x5a8732,_0xcd8f85(0x11b));return JSON[_0xcd8f85(0x131)](_0xb95439);}catch{return null;}}function writeCache(_0x2c0052){const _0xaeb8eb=a87_0xa4b9;try{const _0x2b036a=getCacheDir();mkdirSync(_0x2b036a,{'recursive':!![]});const _0x27f7c9={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2c0052},_0x3595aa=getCacheFilePath();writeFileSync(_0x3595aa,JSON[_0xaeb8eb(0x121)](_0x27f7c9,null,0x2),_0xaeb8eb(0x11b));}catch{}}function isCacheValid(_0x23e5ab){const _0x488548=a87_0xa4b9;if(!_0x23e5ab)return![];const _0x239354=new Date(_0x23e5ab[_0x488548(0x135)])[_0x488548(0x12e)](),_0x35675e=Date[_0x488548(0x120)]();return _0x35675e-_0x239354<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4947d4,_0x281f5b)=>{const _0x2d72b2=get(NPM_REGISTRY_URL,_0x6060e1=>{const _0x25d0bf=a87_0xa4b9;if(_0x6060e1[_0x25d0bf(0x11e)]!==0xc8){clearTimeout(_0x5de96a),_0x281f5b(new Error(_0x25d0bf(0x12c)+_0x6060e1[_0x25d0bf(0x11e)]));return;}let _0x4f3c01='';_0x6060e1['on'](_0x25d0bf(0x140),_0x58b077=>{_0x4f3c01+=_0x58b077;}),_0x6060e1['on'](_0x25d0bf(0x12d),()=>{const _0x5e42d9=_0x25d0bf;clearTimeout(_0x5de96a);try{const _0x25f293=JSON[_0x5e42d9(0x131)](_0x4f3c01);if(!valid(_0x25f293[_0x5e42d9(0x11d)])){_0x281f5b(new Error(_0x5e42d9(0x124)));return;}_0x4947d4(_0x25f293[_0x5e42d9(0x11d)]);}catch(_0xd62200){_0x281f5b(_0xd62200);}});})['on']('error',_0x5e2d21=>{clearTimeout(_0x5de96a),_0x281f5b(_0x5e2d21);}),_0x5de96a=setTimeout(()=>{const _0xabedc8=a87_0xa4b9;_0x2d72b2[_0xabedc8(0x12f)](),_0x281f5b(new Error(_0xabedc8(0x133)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x55f2cb){const _0x402f0a=a87_0xa4b9;try{const _0x257073=readCache();if(isCacheValid(_0x257073)){const _0x7932b4=gt(_0x257073[_0x402f0a(0x138)],_0x55f2cb);return{'updateAvailable':_0x7932b4,'currentVersion':_0x55f2cb,'latestVersion':_0x257073[_0x402f0a(0x138)]};}const _0x15476d=await fetchLatestVersion();writeCache(_0x15476d);const _0x4ab712=gt(_0x15476d,_0x55f2cb);return{'updateAvailable':_0x4ab712,'currentVersion':_0x55f2cb,'latestVersion':_0x15476d};}catch{return null;}}export function displayUpdateNotification(_0x4f904e){const _0x59850c=a87_0xa4b9;if(!_0x4f904e[_0x59850c(0x122)])return;const _0x19acc7=process['stderr'][_0x59850c(0x11f)]&&!process[_0x59850c(0x13f)][_0x59850c(0x132)],_0x3f99df=_0x19acc7?a87_0x11ad14[_0x59850c(0x13a)]('→'):'→',_0x4b68f4=_0x19acc7?a87_0x11ad14[_0x59850c(0x126)](_0x4f904e[_0x59850c(0x141)]):_0x4f904e[_0x59850c(0x141)],_0x4842c5=_0x19acc7?a87_0x11ad14[_0x59850c(0x13c)](_0x4f904e[_0x59850c(0x138)]):_0x4f904e[_0x59850c(0x138)],_0x1c60c6=_0x19acc7?a87_0x11ad14[_0x59850c(0x12a)](_0x59850c(0x129)):_0x59850c(0x129),_0x5b27c5=_0x19acc7?'\x0a'+a87_0x11ad14[_0x59850c(0x13d)](_0x59850c(0x11c))+'\x20'+_0x4b68f4+'\x20'+_0x3f99df+'\x20'+_0x4842c5+'\x0a'+a87_0x11ad14[_0x59850c(0x126)](_0x59850c(0x13e))+'\x20'+_0x1c60c6+'\x0a':'\x0aUpdate\x20available:\x20'+_0x4b68f4+'\x20'+_0x3f99df+'\x20'+_0x4842c5+_0x59850c(0x136)+_0x1c60c6+'\x0a';process[_0x59850c(0x12b)][_0x59850c(0x137)](_0x5b27c5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x4873(_0x85cfd4,_0x1bf337){const _0x57de92=a88_0x57de();return a88_0x4873=function(_0x4873e1,_0x1b2d7d){_0x4873e1=_0x4873e1-0x15b;let _0x348094=_0x57de92[_0x4873e1];return _0x348094;},a88_0x4873(_0x85cfd4,_0x1bf337);}(function(_0x3e15fc,_0x42a820){const _0x1de891=a88_0x4873,_0x451a1c=_0x3e15fc();while(!![]){try{const _0x36c9dc=-parseInt(_0x1de891(0x15d))/0x1+parseInt(_0x1de891(0x15c))/0x2*(-parseInt(_0x1de891(0x15b))/0x3)+parseInt(_0x1de891(0x161))/0x4+-parseInt(_0x1de891(0x162))/0x5+parseInt(_0x1de891(0x165))/0x6*(-parseInt(_0x1de891(0x160))/0x7)+parseInt(_0x1de891(0x164))/0x8+-parseInt(_0x1de891(0x15f))/0x9*(-parseInt(_0x1de891(0x15e))/0xa);if(_0x36c9dc===_0x42a820)break;else _0x451a1c['push'](_0x451a1c['shift']());}catch(_0x5dfc61){_0x451a1c['push'](_0x451a1c['shift']());}}}(a88_0x57de,0xc7392));function a88_0x57de(){const _0x99432=['2030OMHKpS','4964076prdBIE','2510960hwOAtC','.digdag','5524832RKjTLv','7932VQDPvN','2894739cJpsYB','2RWXyxn','554897JANynH','678830qfScAo','171TDRoPE'];a88_0x57de=function(){return _0x99432;};return a88_0x57de();}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x31c1fb){const _0x27a4b2=a88_0x4873;if(_0x31c1fb===_0x27a4b2(0x163))return!![];if(_0x31c1fb['startsWith']('.'))return![];return!![];}
|