@treasuredata/tdx 0.4.2 → 0.4.4
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.d.ts +57 -0
- package/dist/client/engage-api-client.d.ts.map +1 -0
- package/dist/client/engage-api-client.js +1 -0
- package/dist/client/engage-api-client.js.map +1 -0
- 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/engage-command.d.ts +69 -0
- package/dist/commands/engage-command.d.ts.map +1 -0
- package/dist/commands/engage-command.js +1 -0
- package/dist/commands/engage-command.js.map +1 -0
- 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.d.ts +152 -0
- package/dist/sdk/engage.d.ts.map +1 -0
- package/dist/sdk/engage.js +1 -0
- package/dist/sdk/engage.js.map +1 -0
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +7 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +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.d.ts +4 -0
- package/dist/types/endpoints.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/endpoints.js.map +1 -1
- package/dist/types/engage.d.ts +340 -0
- package/dist/types/engage.d.ts.map +1 -0
- package/dist/types/engage.js +1 -0
- package/dist/types/engage.js.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +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(_0x572acd,_0x1b2576){const _0x59eaf5=a90_0x487a,_0x27c5da=_0x572acd();while(!![]){try{const _0x358886=-parseInt(_0x59eaf5(0x92))/0x1+-parseInt(_0x59eaf5(0x86))/0x2+parseInt(_0x59eaf5(0x8b))/0x3+parseInt(_0x59eaf5(0x8d))/0x4+-parseInt(_0x59eaf5(0x83))/0x5*(parseInt(_0x59eaf5(0x95))/0x6)+-parseInt(_0x59eaf5(0xa4))/0x7+parseInt(_0x59eaf5(0xa3))/0x8;if(_0x358886===_0x1b2576)break;else _0x27c5da['push'](_0x27c5da['shift']());}catch(_0x5df8d1){_0x27c5da['push'](_0x27c5da['shift']());}}}(a90_0x5985,0x2c2be));import{formatRows}from'./formatters.js';function a90_0x5985(){const _0xeb0b99=['(empty)','length','type','showTreeLines','map','push','children','dim','1989544ipePhJ','704326eOlyxU','folderCount','5vIcKuK','├──\x20','join','232398HHYzit','\x20\x20\x20\x20','segment','showMetadata','folder','709443VXUrVN','sort','466640kJBBeK','metadata','population','icon','\x20segment','88344IotpfE','showIcons','localeCompare','694482EEGDrq','segmentCount','name','indent','\x20folder','🎯\x20'];a90_0x5985=function(){return _0xeb0b99;};return a90_0x5985();}import a90_0x562759 from'chalk';function a90_0x487a(_0x474887,_0x909061){const _0x59854e=a90_0x5985();return a90_0x487a=function(_0x487adc,_0x246962){_0x487adc=_0x487adc-0x82;let _0xa1bcf6=_0x59854e[_0x487adc];return _0xa1bcf6;},a90_0x487a(_0x474887,_0x909061);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x115812,_0x35cbfe={},_0x41ffe4=0x0,_0x4b2292=''){const _0x17e6d2=a90_0x487a,_0x46cd0c={...DEFAULT_OPTIONS,..._0x35cbfe},_0xf60c0f=[],_0x2ca39c=[..._0x115812][_0x17e6d2(0x8c)]((_0x4bcd64,_0x304bff)=>_0x4bcd64[_0x17e6d2(0x97)][_0x17e6d2(0x94)](_0x304bff[_0x17e6d2(0x97)]));for(let _0x4ee597=0x0;_0x4ee597<_0x2ca39c[_0x17e6d2(0x9c)];_0x4ee597++){const _0x47f017=_0x2ca39c[_0x4ee597],_0x41c8ea=_0x4ee597===_0x2ca39c[_0x17e6d2(0x9c)]-0x1;let _0x303938='';_0x41ffe4>0x0&&(_0x303938+=_0x4b2292);_0x46cd0c[_0x17e6d2(0x9e)]&&_0x41ffe4>0x0&&(_0x303938+=a90_0x562759[_0x17e6d2(0xa2)](_0x41c8ea?'└──\x20':_0x17e6d2(0x84)));_0x46cd0c[_0x17e6d2(0x93)]&&(_0x303938+=_0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x8a)?'📁\x20':_0x17e6d2(0x9a));_0x303938+=_0x47f017[_0x17e6d2(0x97)];if(_0x46cd0c['showMetadata']){if(_0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x8a)){const _0x41f777=[];_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x96)]&&_0x41f777['push'](_0x47f017['metadata'][_0x17e6d2(0x96)]+_0x17e6d2(0x91)+(_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x96)]!==0x1?'s':'')),_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]&&_0x41f777[_0x17e6d2(0xa0)](_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]+_0x17e6d2(0x99)+(_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]!==0x1?'s':'')),_0x41f777[_0x17e6d2(0x9c)]>0x0&&(_0x303938+=a90_0x562759['dim']('\x20('+_0x41f777[_0x17e6d2(0x85)](',\x20')+')'));}else _0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x88)&&_0x47f017[_0x17e6d2(0x8f)]!==undefined&&(_0x303938+=a90_0x562759['dim']('\x20('+formatRows(_0x47f017[_0x17e6d2(0x8f)])+')'));}_0xf60c0f[_0x17e6d2(0xa0)](_0x303938);if(_0x47f017['children']&&_0x47f017[_0x17e6d2(0xa1)][_0x17e6d2(0x9c)]>0x0){let _0x5aa88b;if(_0x41ffe4===0x0)_0x5aa88b='';else _0x46cd0c['showTreeLines']?_0x5aa88b=_0x4b2292+(_0x41c8ea?_0x17e6d2(0x87):a90_0x562759[_0x17e6d2(0xa2)]('│')+'\x20\x20\x20'):_0x5aa88b=_0x4b2292+_0x46cd0c[_0x17e6d2(0x98)];const _0x51bedd=formatTree(_0x47f017[_0x17e6d2(0xa1)],_0x46cd0c,_0x41ffe4+0x1,_0x5aa88b);_0xf60c0f[_0x17e6d2(0xa0)](_0x51bedd);}}return _0xf60c0f[_0x17e6d2(0x85)]('\x0a');}export function formatFlatList(_0x5bce60,_0x3538ef,_0x58019b={}){const _0x3665df=a90_0x487a,_0x4c4012={...DEFAULT_OPTIONS,..._0x58019b},_0xee3645=[];for(const _0x195e30 of _0x5bce60){_0xee3645[_0x3665df(0xa0)]({'name':_0x195e30[_0x3665df(0x97)],'icon':_0x4c4012[_0x3665df(0x93)]?'📁':'','metadata':undefined});}for(const _0x2bd396 of _0x3538ef){const _0x400d56=_0x4c4012[_0x3665df(0x89)]&&_0x2bd396['population']!==undefined?a90_0x562759['dim']('\x20('+formatRows(_0x2bd396[_0x3665df(0x8f)])+')'):'';_0xee3645[_0x3665df(0xa0)]({'name':_0x2bd396['name'],'icon':_0x4c4012[_0x3665df(0x93)]?'🎯':'','metadata':_0x400d56});}_0xee3645['sort']((_0x188993,_0x2a9e66)=>_0x188993[_0x3665df(0x97)]['localeCompare'](_0x2a9e66[_0x3665df(0x97)]));if(_0xee3645[_0x3665df(0x9c)]===0x0)return _0x3665df(0x9b);const _0x36e7f3=_0xee3645[_0x3665df(0x9f)](_0x577119=>{const _0x3dcd40=_0x3665df,_0x4db981=_0x577119[_0x3dcd40(0x90)]?_0x577119[_0x3dcd40(0x90)]+'\x20':'',_0x32bd89=_0x577119[_0x3dcd40(0x8e)]||'';return''+_0x4db981+_0x577119[_0x3dcd40(0x97)]+_0x32bd89;});return _0x36e7f3[_0x3665df(0x85)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x36d9dd=a91_0x5b9f;(function(_0x5c71fc,_0x525074){const _0x23688e=a91_0x5b9f,_0x3caf89=_0x5c71fc();while(!![]){try{const _0x39b0e8=-parseInt(_0x23688e(0x1d6))/0x1+-parseInt(_0x23688e(0x1d3))/0x2+-parseInt(_0x23688e(0x1d5))/0x3*(parseInt(_0x23688e(0x1ce))/0x4)+-parseInt(_0x23688e(0x1cf))/0x5*(parseInt(_0x23688e(0x1c5))/0x6)+parseInt(_0x23688e(0x1d0))/0x7*(parseInt(_0x23688e(0x1d7))/0x8)+-parseInt(_0x23688e(0x1da))/0x9*(parseInt(_0x23688e(0x1bf))/0xa)+parseInt(_0x23688e(0x1c2))/0xb;if(_0x39b0e8===_0x525074)break;else _0x3caf89['push'](_0x3caf89['shift']());}catch(_0x1a6ae0){_0x3caf89['push'](_0x3caf89['shift']());}}}(a91_0x14cc,0xb479d));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a91_0x14cc(){const _0xfb0972=['error','dim','47357409deJidJ','utf-8','end','942tvZixe','write','green','currentVersion','Run:','HTTP\x20','latestVersion','stderr','updateAvailable','4itnsGL','37475lXmELj','277067DotiUk','yellow','statusCode','1891678IhVLVC','parse','2062689YGXTHX','89428VHMKqv','104VFbjJq','Request\x20timeout','now','54fHfueq','Invalid\x20version\x20format','lastCheck','gray','\x0aUpdate\x20available:\x20','isTTY','npm\x20install\x20-g\x20@treasuredata/tdx@latest','destroy','env','data','https://registry.npmjs.org/@treasuredata/tdx/latest','Update\x20available:','version','last_version_check','NO_COLOR','1968330QMeHGT'];a91_0x14cc=function(){return _0xfb0972;};return a91_0x14cc();}import{join}from'path';import{gt,valid}from'semver';function a91_0x5b9f(_0x120cd8,_0xb75b2f){const _0x14cc8e=a91_0x14cc();return a91_0x5b9f=function(_0x5b9f14,_0x57bc73){_0x5b9f14=_0x5b9f14-0x1bf;let _0x387fd8=_0x14cc8e[_0x5b9f14];return _0x387fd8;},a91_0x5b9f(_0x120cd8,_0xb75b2f);}import a91_0x9a4b0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x36d9dd(0x1e4),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x319c18=a91_0x36d9dd,_0x478d40=getCacheDir();return join(_0x478d40,_0x319c18(0x1e7));}function readCache(){const _0x242917=a91_0x36d9dd;try{const _0x80b0b5=getCacheFilePath(),_0x4fc870=readFileSync(_0x80b0b5,_0x242917(0x1c3));return JSON[_0x242917(0x1d4)](_0x4fc870);}catch{return null;}}function writeCache(_0x4ff8cb){const _0x76a0d8=a91_0x36d9dd;try{const _0x6900b4=getCacheDir();mkdirSync(_0x6900b4,{'recursive':!![]});const _0x57141f={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x4ff8cb},_0x34d5e0=getCacheFilePath();writeFileSync(_0x34d5e0,JSON['stringify'](_0x57141f,null,0x2),_0x76a0d8(0x1c3));}catch{}}function isCacheValid(_0x1f7a5d){const _0x4ee28a=a91_0x36d9dd;if(!_0x1f7a5d)return![];const _0x1fa572=new Date(_0x1f7a5d[_0x4ee28a(0x1dc)])['getTime'](),_0x536a53=Date[_0x4ee28a(0x1d9)]();return _0x536a53-_0x1fa572<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4c5800,_0x227884)=>{const _0x5b3358=a91_0x5b9f,_0x287f8a=get(NPM_REGISTRY_URL,_0x3806ce=>{const _0x24487a=a91_0x5b9f;if(_0x3806ce[_0x24487a(0x1d2)]!==0xc8){clearTimeout(_0x3335e1),_0x227884(new Error(_0x24487a(0x1ca)+_0x3806ce[_0x24487a(0x1d2)]));return;}let _0x9e8ba9='';_0x3806ce['on'](_0x24487a(0x1e3),_0x2a4313=>{_0x9e8ba9+=_0x2a4313;}),_0x3806ce['on'](_0x24487a(0x1c4),()=>{const _0x215669=_0x24487a;clearTimeout(_0x3335e1);try{const _0x49b186=JSON[_0x215669(0x1d4)](_0x9e8ba9);if(!valid(_0x49b186[_0x215669(0x1e6)])){_0x227884(new Error(_0x215669(0x1db)));return;}_0x4c5800(_0x49b186[_0x215669(0x1e6)]);}catch(_0x5c94d9){_0x227884(_0x5c94d9);}});})['on'](_0x5b3358(0x1c0),_0x2de1e6=>{clearTimeout(_0x3335e1),_0x227884(_0x2de1e6);}),_0x3335e1=setTimeout(()=>{const _0x4bacb1=_0x5b3358;_0x287f8a[_0x4bacb1(0x1e1)](),_0x227884(new Error(_0x4bacb1(0x1d8)));},TIMEOUT_MS);});}export async function checkForUpdate(_0xa57bf5){const _0x430aa5=a91_0x36d9dd;try{const _0x165ab7=readCache();if(isCacheValid(_0x165ab7)){const _0x36914f=gt(_0x165ab7[_0x430aa5(0x1cb)],_0xa57bf5);return{'updateAvailable':_0x36914f,'currentVersion':_0xa57bf5,'latestVersion':_0x165ab7[_0x430aa5(0x1cb)]};}const _0x293854=await fetchLatestVersion();writeCache(_0x293854);const _0x424e9f=gt(_0x293854,_0xa57bf5);return{'updateAvailable':_0x424e9f,'currentVersion':_0xa57bf5,'latestVersion':_0x293854};}catch{return null;}}export function displayUpdateNotification(_0x26a243){const _0x57c776=a91_0x36d9dd;if(!_0x26a243[_0x57c776(0x1cd)])return;const _0x2139ff=process[_0x57c776(0x1cc)][_0x57c776(0x1df)]&&!process[_0x57c776(0x1e2)][_0x57c776(0x1e8)],_0xda1858=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1dd)]('→'):'→',_0x300a5c=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1c1)](_0x26a243['currentVersion']):_0x26a243[_0x57c776(0x1c8)],_0x1ee5bc=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1c7)](_0x26a243[_0x57c776(0x1cb)]):_0x26a243[_0x57c776(0x1cb)],_0x438149=_0x2139ff?a91_0x9a4b0['cyan'](_0x57c776(0x1e0)):_0x57c776(0x1e0),_0x10d69d=_0x2139ff?'\x0a'+a91_0x9a4b0[_0x57c776(0x1d1)](_0x57c776(0x1e5))+'\x20'+_0x300a5c+'\x20'+_0xda1858+'\x20'+_0x1ee5bc+'\x0a'+a91_0x9a4b0[_0x57c776(0x1c1)](_0x57c776(0x1c9))+'\x20'+_0x438149+'\x0a':_0x57c776(0x1de)+_0x300a5c+'\x20'+_0xda1858+'\x20'+_0x1ee5bc+'\x0aRun:\x20'+_0x438149+'\x0a';process[_0x57c776(0x1cc)][_0x57c776(0x1c6)](_0x10d69d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x5cb778=a92_0x46da;(function(_0x89fdce,_0x26c0b6){const _0x1fdaf8=a92_0x46da,_0x1fc0c=_0x89fdce();while(!![]){try{const _0x35827e=-parseInt(_0x1fdaf8(0xae))/0x1*(parseInt(_0x1fdaf8(0xaf))/0x2)+parseInt(_0x1fdaf8(0xb5))/0x3+parseInt(_0x1fdaf8(0xad))/0x4+parseInt(_0x1fdaf8(0xb6))/0x5*(parseInt(_0x1fdaf8(0xb4))/0x6)+parseInt(_0x1fdaf8(0xab))/0x7+-parseInt(_0x1fdaf8(0xb3))/0x8*(parseInt(_0x1fdaf8(0xb0))/0x9)+-parseInt(_0x1fdaf8(0xac))/0xa;if(_0x35827e===_0x26c0b6)break;else _0x1fc0c['push'](_0x1fc0c['shift']());}catch(_0x3bd1eb){_0x1fc0c['push'](_0x1fc0c['shift']());}}}(a92_0x316f,0x98f10));function a92_0x46da(_0xbf9964,_0x5f4abd){const _0x316f7f=a92_0x316f();return a92_0x46da=function(_0x46dab7,_0x165d8f){_0x46dab7=_0x46dab7-0xab;let _0x250fdc=_0x316f7f[_0x46dab7];return _0x250fdc;},a92_0x46da(_0xbf9964,_0x5f4abd);}export const WORKFLOW_FILE_EXTENSION=a92_0x5cb778(0xb1);export function shouldIncludeInArchive(_0x2d8f6d){const _0xa71e76=a92_0x5cb778;if(_0x2d8f6d===_0xa71e76(0xb2))return!![];if(_0x2d8f6d['startsWith']('.'))return![];return!![];}function a92_0x316f(){const _0x9aebb7=['7884zfDrRt','.dig','.digdag','1968meOLDB','18SuUssf','1721880PLyYGd','312955LjAbEA','6212472TfrOwp','6756930olKsGo','2794624iczELj','830248qLRaXM','2uQRfCS'];a92_0x316f=function(){return _0x9aebb7;};return a92_0x316f();}
|