@treasuredata/tdx 0.3.2 → 0.3.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.
Files changed (83) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-api-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-api-client.js +1 -1
  9. package/dist/client/trino-api-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/context-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/parent-segment-command.js +1 -1
  24. package/dist/commands/profiles-command.js +1 -1
  25. package/dist/commands/query-command.js +1 -1
  26. package/dist/commands/segment-command.js +1 -1
  27. package/dist/commands/segment-create-command.js +1 -1
  28. package/dist/commands/segment-fields-command.js +1 -1
  29. package/dist/commands/segment-pwd-command.js +1 -1
  30. package/dist/commands/segment-update-command.js +1 -1
  31. package/dist/commands/segment-use-command.js +1 -1
  32. package/dist/commands/segments.js +1 -1
  33. package/dist/commands/show.js +1 -1
  34. package/dist/commands/tables.js +1 -1
  35. package/dist/commands/use-command.js +1 -1
  36. package/dist/commands/workflow-command.js +1 -1
  37. package/dist/core/auth.js +1 -1
  38. package/dist/core/config.js +1 -1
  39. package/dist/core/global-context.js +1 -1
  40. package/dist/core/profile.js +1 -1
  41. package/dist/core/project-config.js +1 -1
  42. package/dist/core/session.js +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/proxy/anthropic-adapter.js +1 -1
  45. package/dist/proxy/server.js +1 -1
  46. package/dist/proxy/session-cache.js +1 -1
  47. package/dist/sdk/api.js +1 -1
  48. package/dist/sdk/errors.js +1 -1
  49. package/dist/sdk/index.js +1 -1
  50. package/dist/sdk/job.js +1 -1
  51. package/dist/sdk/llm.js +1 -1
  52. package/dist/sdk/query.js +1 -1
  53. package/dist/sdk/segment.js +1 -1
  54. package/dist/sdk/workflow.js +1 -1
  55. package/dist/types/endpoints.js +1 -1
  56. package/dist/types/index.js +1 -1
  57. package/dist/utils/agent-ref-parser.js +1 -1
  58. package/dist/utils/chat-cache.js +1 -1
  59. package/dist/utils/colors.js +1 -1
  60. package/dist/utils/command-output.js +1 -1
  61. package/dist/utils/constants.js +1 -1
  62. package/dist/utils/file-permissions.js +1 -1
  63. package/dist/utils/format-detector.js +1 -1
  64. package/dist/utils/formatters.js +1 -1
  65. package/dist/utils/json-loader.js +1 -1
  66. package/dist/utils/model-aliases.js +1 -1
  67. package/dist/utils/option-validation.js +1 -1
  68. package/dist/utils/port.js +1 -1
  69. package/dist/utils/process.js +1 -1
  70. package/dist/utils/prompt.js +1 -1
  71. package/dist/utils/segment-path-parser.js +1 -1
  72. package/dist/utils/segment-ref-parser.js +1 -1
  73. package/dist/utils/spinner.js +1 -1
  74. package/dist/utils/sql-parser.js +1 -1
  75. package/dist/utils/sse-parser.js +1 -1
  76. package/dist/utils/string-utils.js +1 -1
  77. package/dist/utils/table-ref-parser.js +1 -1
  78. package/dist/utils/tdx-logger.js +1 -1
  79. package/dist/utils/tdx-logger.js.map +1 -1
  80. package/dist/utils/tree-formatter.js +1 -1
  81. package/dist/utils/version-check.js +1 -1
  82. package/dist/utils/workflow-utils.js +1 -1
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- const a84_0x534a8a=a84_0x583f;(function(_0x2cd941,_0x604052){const _0x4a82f8=a84_0x583f,_0x37ede9=_0x2cd941();while(!![]){try{const _0x3ecb79=-parseInt(_0x4a82f8(0xbb))/0x1+parseInt(_0x4a82f8(0xba))/0x2+parseInt(_0x4a82f8(0xbc))/0x3+parseInt(_0x4a82f8(0xc5))/0x4+-parseInt(_0x4a82f8(0xb0))/0x5*(parseInt(_0x4a82f8(0xc7))/0x6)+-parseInt(_0x4a82f8(0xb1))/0x7+parseInt(_0x4a82f8(0xcc))/0x8*(parseInt(_0x4a82f8(0xb3))/0x9);if(_0x3ecb79===_0x604052)break;else _0x37ede9['push'](_0x37ede9['shift']());}catch(_0xed3e04){_0x37ede9['push'](_0x37ede9['shift']());}}}(a84_0x1fcb,0x498b4));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x574ad2 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a84_0x534a8a(0xc6),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x3d7c02=a84_0x534a8a,_0x5335ab=getCacheDir();return join(_0x5335ab,_0x3d7c02(0xbe));}function a84_0x583f(_0x4981b2,_0x101bde){const _0x1fcb15=a84_0x1fcb();return a84_0x583f=function(_0x583f5c,_0x348247){_0x583f5c=_0x583f5c-0xaa;let _0x82033f=_0x1fcb15[_0x583f5c];return _0x82033f;},a84_0x583f(_0x4981b2,_0x101bde);}function readCache(){const _0x145c0d=a84_0x534a8a;try{const _0x330a79=getCacheFilePath(),_0x25b3e0=readFileSync(_0x330a79,'utf-8');return JSON[_0x145c0d(0xac)](_0x25b3e0);}catch{return null;}}function writeCache(_0x259aa1){const _0x496878=a84_0x534a8a;try{const _0xf5c919=getCacheDir();mkdirSync(_0xf5c919,{'recursive':!![]});const _0x24b53f={'lastCheck':new Date()[_0x496878(0xc1)](),'latestVersion':_0x259aa1},_0x308121=getCacheFilePath();writeFileSync(_0x308121,JSON[_0x496878(0xca)](_0x24b53f,null,0x2),_0x496878(0xc0));}catch{}}function isCacheValid(_0x34d9e8){const _0x46e525=a84_0x534a8a;if(!_0x34d9e8)return![];const _0x24af5b=new Date(_0x34d9e8[_0x46e525(0xc4)])[_0x46e525(0xce)](),_0x1232b3=Date[_0x46e525(0xb9)]();return _0x1232b3-_0x24af5b<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4a8fe6,_0x20f8e3)=>{const _0x333edd=a84_0x583f,_0x9fa672=get(NPM_REGISTRY_URL,_0x1ff33b=>{const _0x2f37ae=a84_0x583f;if(_0x1ff33b[_0x2f37ae(0xc2)]!==0xc8){clearTimeout(_0xee9600),_0x20f8e3(new Error(_0x2f37ae(0xc8)+_0x1ff33b[_0x2f37ae(0xc2)]));return;}let _0x4601cb='';_0x1ff33b['on']('data',_0x579477=>{_0x4601cb+=_0x579477;}),_0x1ff33b['on']('end',()=>{const _0x6bc77=_0x2f37ae;clearTimeout(_0xee9600);try{const _0x344cd1=JSON[_0x6bc77(0xac)](_0x4601cb);if(!valid(_0x344cd1[_0x6bc77(0xae)])){_0x20f8e3(new Error(_0x6bc77(0xab)));return;}_0x4a8fe6(_0x344cd1[_0x6bc77(0xae)]);}catch(_0x3e0fca){_0x20f8e3(_0x3e0fca);}});})['on'](_0x333edd(0xad),_0x4539f8=>{clearTimeout(_0xee9600),_0x20f8e3(_0x4539f8);}),_0xee9600=setTimeout(()=>{const _0x88d9e3=_0x333edd;_0x9fa672[_0x88d9e3(0xd0)](),_0x20f8e3(new Error(_0x88d9e3(0xb6)));},TIMEOUT_MS);});}function a84_0x1fcb(){const _0x200156=['Run:','6259632mICtyO','stderr','getTime','updateAvailable','destroy','Update\x20available:','isTTY','Invalid\x20version\x20format','parse','error','version','\x0aUpdate\x20available:\x20','335iCRmkJ','1923964mFjaAU','\x0aRun:\x20','9uafIUU','dim','currentVersion','Request\x20timeout','NO_COLOR','npm\x20install\x20-g\x20@treasuredata/tdx@latest','now','636152XtryVf','467167iLuoiY','503877KkZBtf','gray','last_version_check','green','utf-8','toISOString','statusCode','latestVersion','lastCheck','1137740QfalWm','https://registry.npmjs.org/@treasuredata/tdx/latest','45642LbVjGB','HTTP\x20','env','stringify'];a84_0x1fcb=function(){return _0x200156;};return a84_0x1fcb();}export async function checkForUpdate(_0x224d4e){const _0x3b7127=a84_0x534a8a;try{const _0x586bd3=readCache();if(isCacheValid(_0x586bd3)){const _0x165913=gt(_0x586bd3['latestVersion'],_0x224d4e);return{'updateAvailable':_0x165913,'currentVersion':_0x224d4e,'latestVersion':_0x586bd3[_0x3b7127(0xc3)]};}const _0x2d4f78=await fetchLatestVersion();writeCache(_0x2d4f78);const _0x262a94=gt(_0x2d4f78,_0x224d4e);return{'updateAvailable':_0x262a94,'currentVersion':_0x224d4e,'latestVersion':_0x2d4f78};}catch{return null;}}export function displayUpdateNotification(_0x3df6e6){const _0x48e542=a84_0x534a8a;if(!_0x3df6e6[_0x48e542(0xcf)])return;const _0x2262c3=process[_0x48e542(0xcd)][_0x48e542(0xaa)]&&!process[_0x48e542(0xc9)][_0x48e542(0xb7)],_0x603af1=_0x2262c3?a84_0x574ad2[_0x48e542(0xbd)]('→'):'→',_0x5f0129=_0x2262c3?a84_0x574ad2[_0x48e542(0xb4)](_0x3df6e6['currentVersion']):_0x3df6e6[_0x48e542(0xb5)],_0x329d50=_0x2262c3?a84_0x574ad2[_0x48e542(0xbf)](_0x3df6e6['latestVersion']):_0x3df6e6[_0x48e542(0xc3)],_0x277b7f=_0x2262c3?a84_0x574ad2['cyan'](_0x48e542(0xb8)):_0x48e542(0xb8),_0x5e9504=_0x2262c3?'\x0a'+a84_0x574ad2['yellow'](_0x48e542(0xd1))+'\x20'+_0x5f0129+'\x20'+_0x603af1+'\x20'+_0x329d50+'\x0a'+a84_0x574ad2['dim'](_0x48e542(0xcb))+'\x20'+_0x277b7f+'\x0a':_0x48e542(0xaf)+_0x5f0129+'\x20'+_0x603af1+'\x20'+_0x329d50+_0x48e542(0xb2)+_0x277b7f+'\x0a';process[_0x48e542(0xcd)]['write'](_0x5e9504);}
1
+ function a84_0x37cc(_0x42501e,_0x524587){const _0x5daa7d=a84_0x5daa();return a84_0x37cc=function(_0x37cc94,_0x107f20){_0x37cc94=_0x37cc94-0x8c;let _0x4e21df=_0x5daa7d[_0x37cc94];return _0x4e21df;},a84_0x37cc(_0x42501e,_0x524587);}(function(_0x2ba4be,_0x4b6379){const _0xd6046b=a84_0x37cc,_0xd55cf=_0x2ba4be();while(!![]){try{const _0x55c72e=parseInt(_0xd6046b(0x91))/0x1*(parseInt(_0xd6046b(0x9f))/0x2)+parseInt(_0xd6046b(0x9e))/0x3+parseInt(_0xd6046b(0xad))/0x4*(parseInt(_0xd6046b(0xab))/0x5)+parseInt(_0xd6046b(0x8c))/0x6+parseInt(_0xd6046b(0x93))/0x7+parseInt(_0xd6046b(0x90))/0x8+-parseInt(_0xd6046b(0x8f))/0x9;if(_0x55c72e===_0x4b6379)break;else _0xd55cf['push'](_0xd55cf['shift']());}catch(_0x18c22a){_0xd55cf['push'](_0xd55cf['shift']());}}}(a84_0x5daa,0xd1a81));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a84_0x17bbef from'chalk';import{getCacheDir}from'../core/config.js';function a84_0x5daa(){const _0x5d1fbe=['stderr','error','Invalid\x20version\x20format','HTTP\x20','gray','Update\x20available:','latestVersion','env','3273429fyhZdt','22xaGbfp','lastCheck','now','npm\x20install\x20-g\x20@treasuredata/tdx@latest','getTime','destroy','last_version_check','end','version','Run:','cyan','isTTY','267590hLVCbu','currentVersion','88ZqAbvQ','parse','NO_COLOR','\x0aUpdate\x20available:\x20','utf-8','2706102ofOrQy','yellow','updateAvailable','34677432aWeMHE','6551376YbWaVa','53373fPNovt','toISOString','4103540dTbZuz','\x0aRun:\x20','dim'];a84_0x5daa=function(){return _0x5d1fbe;};return a84_0x5daa();}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL='https://registry.npmjs.org/@treasuredata/tdx/latest',TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x908eb3=a84_0x37cc,_0x46db76=getCacheDir();return join(_0x46db76,_0x908eb3(0xa5));}function readCache(){const _0x4b2410=a84_0x37cc;try{const _0x124356=getCacheFilePath(),_0x1453b5=readFileSync(_0x124356,_0x4b2410(0xb1));return JSON[_0x4b2410(0xae)](_0x1453b5);}catch{return null;}}function writeCache(_0x5e5a63){const _0x5652a2=a84_0x37cc;try{const _0x1dc19f=getCacheDir();mkdirSync(_0x1dc19f,{'recursive':!![]});const _0x4332a5={'lastCheck':new Date()[_0x5652a2(0x92)](),'latestVersion':_0x5e5a63},_0x2872b1=getCacheFilePath();writeFileSync(_0x2872b1,JSON['stringify'](_0x4332a5,null,0x2),_0x5652a2(0xb1));}catch{}}function isCacheValid(_0x5072cd){const _0x417706=a84_0x37cc;if(!_0x5072cd)return![];const _0x11133a=new Date(_0x5072cd[_0x417706(0xa0)])[_0x417706(0xa3)](),_0x58263=Date[_0x417706(0xa1)]();return _0x58263-_0x11133a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x49f61b,_0x2e2d72)=>{const _0x436fc5=a84_0x37cc,_0x2972d6=get(NPM_REGISTRY_URL,_0x571edf=>{const _0x2f31c3=a84_0x37cc;if(_0x571edf['statusCode']!==0xc8){clearTimeout(_0xf58985),_0x2e2d72(new Error(_0x2f31c3(0x99)+_0x571edf['statusCode']));return;}let _0x581e63='';_0x571edf['on']('data',_0x288e66=>{_0x581e63+=_0x288e66;}),_0x571edf['on'](_0x2f31c3(0xa6),()=>{const _0x1d53ca=_0x2f31c3;clearTimeout(_0xf58985);try{const _0x15971c=JSON[_0x1d53ca(0xae)](_0x581e63);if(!valid(_0x15971c[_0x1d53ca(0xa7)])){_0x2e2d72(new Error(_0x1d53ca(0x98)));return;}_0x49f61b(_0x15971c[_0x1d53ca(0xa7)]);}catch(_0x36892e){_0x2e2d72(_0x36892e);}});})['on'](_0x436fc5(0x97),_0x24846b=>{clearTimeout(_0xf58985),_0x2e2d72(_0x24846b);}),_0xf58985=setTimeout(()=>{const _0x104f9b=_0x436fc5;_0x2972d6[_0x104f9b(0xa4)](),_0x2e2d72(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x324293){const _0x7b69de=a84_0x37cc;try{const _0x1ee337=readCache();if(isCacheValid(_0x1ee337)){const _0xee4714=gt(_0x1ee337[_0x7b69de(0x9c)],_0x324293);return{'updateAvailable':_0xee4714,'currentVersion':_0x324293,'latestVersion':_0x1ee337[_0x7b69de(0x9c)]};}const _0x54970a=await fetchLatestVersion();writeCache(_0x54970a);const _0x38edf1=gt(_0x54970a,_0x324293);return{'updateAvailable':_0x38edf1,'currentVersion':_0x324293,'latestVersion':_0x54970a};}catch{return null;}}export function displayUpdateNotification(_0x48a85a){const _0x4dc866=a84_0x37cc;if(!_0x48a85a[_0x4dc866(0x8e)])return;const _0x3663fe=process[_0x4dc866(0x96)][_0x4dc866(0xaa)]&&!process[_0x4dc866(0x9d)][_0x4dc866(0xaf)],_0x9ac365=_0x3663fe?a84_0x17bbef[_0x4dc866(0x9a)]('→'):'→',_0x4f7e05=_0x3663fe?a84_0x17bbef[_0x4dc866(0x95)](_0x48a85a[_0x4dc866(0xac)]):_0x48a85a[_0x4dc866(0xac)],_0x31511b=_0x3663fe?a84_0x17bbef['green'](_0x48a85a[_0x4dc866(0x9c)]):_0x48a85a[_0x4dc866(0x9c)],_0x53ec55=_0x3663fe?a84_0x17bbef[_0x4dc866(0xa9)](_0x4dc866(0xa2)):_0x4dc866(0xa2),_0x1bab35=_0x3663fe?'\x0a'+a84_0x17bbef[_0x4dc866(0x8d)](_0x4dc866(0x9b))+'\x20'+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+'\x0a'+a84_0x17bbef[_0x4dc866(0x95)](_0x4dc866(0xa8))+'\x20'+_0x53ec55+'\x0a':_0x4dc866(0xb0)+_0x4f7e05+'\x20'+_0x9ac365+'\x20'+_0x31511b+_0x4dc866(0x94)+_0x53ec55+'\x0a';process[_0x4dc866(0x96)]['write'](_0x1bab35);}
@@ -1 +1 @@
1
- const a85_0x602810=a85_0x4299;(function(_0x123c55,_0x39646f){const _0x24f110=a85_0x4299,_0x39aa69=_0x123c55();while(!![]){try{const _0x284164=-parseInt(_0x24f110(0x18f))/0x1*(-parseInt(_0x24f110(0x191))/0x2)+-parseInt(_0x24f110(0x189))/0x3+-parseInt(_0x24f110(0x185))/0x4*(-parseInt(_0x24f110(0x18a))/0x5)+parseInt(_0x24f110(0x187))/0x6*(parseInt(_0x24f110(0x18e))/0x7)+-parseInt(_0x24f110(0x18d))/0x8+parseInt(_0x24f110(0x18b))/0x9+parseInt(_0x24f110(0x192))/0xa*(-parseInt(_0x24f110(0x190))/0xb);if(_0x284164===_0x39646f)break;else _0x39aa69['push'](_0x39aa69['shift']());}catch(_0x5664ac){_0x39aa69['push'](_0x39aa69['shift']());}}}(a85_0x50f7,0xb6271));function a85_0x4299(_0x50988a,_0x3e72eb){const _0x50f7f5=a85_0x50f7();return a85_0x4299=function(_0x429981,_0xc0251){_0x429981=_0x429981-0x185;let _0x1033df=_0x50f7f5[_0x429981];return _0x1033df;},a85_0x4299(_0x50988a,_0x3e72eb);}function a85_0x50f7(){const _0x437a99=['56510UsNMxo','42996NUVqgQ','.digdag','494268qLYbgI','.dig','2738520UuGIvo','605YRNooZ','8800434owjKtv','startsWith','3854184IiNmNQ','70EdQUpi','221dgJYzl','4202tYWdll','10834paVyKX'];a85_0x50f7=function(){return _0x437a99;};return a85_0x50f7();}export const WORKFLOW_FILE_EXTENSION=a85_0x602810(0x188);export function shouldIncludeInArchive(_0x153222){const _0x151d7b=a85_0x602810;if(_0x153222===_0x151d7b(0x186))return!![];if(_0x153222[_0x151d7b(0x18c)]('.'))return![];return!![];}
1
+ function a85_0x77ac(_0x3398ef,_0xd08dd8){const _0x1d7283=a85_0x1d72();return a85_0x77ac=function(_0x77acc3,_0x582de9){_0x77acc3=_0x77acc3-0x13d;let _0x499843=_0x1d7283[_0x77acc3];return _0x499843;},a85_0x77ac(_0x3398ef,_0xd08dd8);}(function(_0xc18cfe,_0x5417b8){const _0x3e87c3=a85_0x77ac,_0x40c6fa=_0xc18cfe();while(!![]){try{const _0x585a61=-parseInt(_0x3e87c3(0x148))/0x1*(parseInt(_0x3e87c3(0x13e))/0x2)+-parseInt(_0x3e87c3(0x143))/0x3+-parseInt(_0x3e87c3(0x147))/0x4*(parseInt(_0x3e87c3(0x13f))/0x5)+parseInt(_0x3e87c3(0x146))/0x6*(parseInt(_0x3e87c3(0x145))/0x7)+-parseInt(_0x3e87c3(0x13d))/0x8*(parseInt(_0x3e87c3(0x142))/0x9)+parseInt(_0x3e87c3(0x141))/0xa+parseInt(_0x3e87c3(0x140))/0xb;if(_0x585a61===_0x5417b8)break;else _0x40c6fa['push'](_0x40c6fa['shift']());}catch(_0x3d5781){_0x40c6fa['push'](_0x40c6fa['shift']());}}}(a85_0x1d72,0x265cc));export const WORKFLOW_FILE_EXTENSION='.dig';function a85_0x1d72(){const _0x3ee792=['30332IzOXex','5wdHNyL','6165654PqFbQc','238130WEldnK','414uQyFyW','196284RywWox','.digdag','399665mtZhmA','6LSzMoh','671288eqffVX','2zXuIWb','38384tNPZRM'];a85_0x1d72=function(){return _0x3ee792;};return a85_0x1d72();}export function shouldIncludeInArchive(_0x3a65a7){const _0x157bfc=a85_0x77ac;if(_0x3a65a7===_0x157bfc(0x144))return!![];if(_0x3a65a7['startsWith']('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
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": {