@treasuredata/tdx 0.2.2 → 0.2.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 (92) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.d.ts +1 -0
  6. package/dist/client/llm-client.d.ts.map +1 -1
  7. package/dist/client/llm-client.js +1 -1
  8. package/dist/client/llm-client.js.map +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-client.js +1 -1
  11. package/dist/client/trino-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/context-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profiles-command.js +1 -1
  26. package/dist/commands/query-command.js +1 -1
  27. package/dist/commands/segment-command.js +1 -1
  28. package/dist/commands/segment-create-command.js +1 -1
  29. package/dist/commands/segment-fields-command.js +1 -1
  30. package/dist/commands/segment-pwd-command.js +1 -1
  31. package/dist/commands/segment-update-command.js +1 -1
  32. package/dist/commands/segment-use-command.js +1 -1
  33. package/dist/commands/segments.js +1 -1
  34. package/dist/commands/show.js +1 -1
  35. package/dist/commands/tables.js +1 -1
  36. package/dist/commands/use-command.js +1 -1
  37. package/dist/commands/workflow-command.js +1 -1
  38. package/dist/core/auth.js +1 -1
  39. package/dist/core/config.js +1 -1
  40. package/dist/core/global-context.js +1 -1
  41. package/dist/core/profile.js +1 -1
  42. package/dist/core/project-config.js +1 -1
  43. package/dist/core/session.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/proxy/anthropic-adapter.d.ts +9 -1
  46. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  47. package/dist/proxy/anthropic-adapter.js +1 -1
  48. package/dist/proxy/anthropic-adapter.js.map +1 -1
  49. package/dist/proxy/server.d.ts.map +1 -1
  50. package/dist/proxy/server.js +1 -1
  51. package/dist/proxy/server.js.map +1 -1
  52. package/dist/proxy/session-cache.js +1 -1
  53. package/dist/sdk/api.js +1 -1
  54. package/dist/sdk/database.js +1 -1
  55. package/dist/sdk/errors.js +1 -1
  56. package/dist/sdk/index.js +1 -1
  57. package/dist/sdk/job.js +1 -1
  58. package/dist/sdk/llm.js +1 -1
  59. package/dist/sdk/query.js +1 -1
  60. package/dist/sdk/segment.js +1 -1
  61. package/dist/sdk/table.js +1 -1
  62. package/dist/sdk/workflow.js +1 -1
  63. package/dist/types/anthropic.d.ts +3 -2
  64. package/dist/types/anthropic.d.ts.map +1 -1
  65. package/dist/types/endpoints.js +1 -1
  66. package/dist/types/index.js +1 -1
  67. package/dist/utils/agent-ref-parser.js +1 -1
  68. package/dist/utils/chat-cache.js +1 -1
  69. package/dist/utils/colors.js +1 -1
  70. package/dist/utils/command-output.js +1 -1
  71. package/dist/utils/constants.js +1 -1
  72. package/dist/utils/file-permissions.js +1 -1
  73. package/dist/utils/format-detector.js +1 -1
  74. package/dist/utils/formatters.js +1 -1
  75. package/dist/utils/json-loader.js +1 -1
  76. package/dist/utils/model-aliases.js +1 -1
  77. package/dist/utils/option-validation.js +1 -1
  78. package/dist/utils/port.js +1 -1
  79. package/dist/utils/process.js +1 -1
  80. package/dist/utils/prompt.js +1 -1
  81. package/dist/utils/segment-path-parser.js +1 -1
  82. package/dist/utils/segment-ref-parser.js +1 -1
  83. package/dist/utils/spinner.js +1 -1
  84. package/dist/utils/sql-parser.js +1 -1
  85. package/dist/utils/sse-parser.js +1 -1
  86. package/dist/utils/string-utils.js +1 -1
  87. package/dist/utils/table-ref-parser.js +1 -1
  88. package/dist/utils/tdx-logger.js +1 -1
  89. package/dist/utils/tree-formatter.js +1 -1
  90. package/dist/utils/version-check.js +1 -1
  91. package/dist/utils/workflow-utils.js +1 -1
  92. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x570e66,_0xb679c6){const _0x3cef39=a81_0x55e8,_0x12140f=_0x570e66();while(!![]){try{const _0x1dc595=-parseInt(_0x3cef39(0x10f))/0x1*(-parseInt(_0x3cef39(0x107))/0x2)+-parseInt(_0x3cef39(0x105))/0x3+parseInt(_0x3cef39(0xfc))/0x4+-parseInt(_0x3cef39(0x10b))/0x5*(parseInt(_0x3cef39(0xf8))/0x6)+parseInt(_0x3cef39(0x103))/0x7*(-parseInt(_0x3cef39(0x104))/0x8)+parseInt(_0x3cef39(0x101))/0x9*(-parseInt(_0x3cef39(0x10c))/0xa)+parseInt(_0x3cef39(0xf9))/0xb;if(_0x1dc595===_0xb679c6)break;else _0x12140f['push'](_0x12140f['shift']());}catch(_0x45e540){_0x12140f['push'](_0x12140f['shift']());}}}(a81_0x29d9,0xc0d78));import{formatRows}from'./formatters.js';import a81_0x40dc8b from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0xb19482,_0x4693c5={},_0x27023a=0x0,_0x37259d=''){const _0x435a60=a81_0x55e8,_0x3b804c={...DEFAULT_OPTIONS,..._0x4693c5},_0xea6eec=[],_0x5185b8=[..._0xb19482][_0x435a60(0xed)]((_0x23d822,_0x470ea7)=>_0x23d822['name'][_0x435a60(0xf3)](_0x470ea7[_0x435a60(0x106)]));for(let _0x37a0be=0x0;_0x37a0be<_0x5185b8[_0x435a60(0xf4)];_0x37a0be++){const _0x446cd3=_0x5185b8[_0x37a0be],_0x4867bc=_0x37a0be===_0x5185b8[_0x435a60(0xf4)]-0x1;let _0x5550d3='';_0x27023a>0x0&&(_0x5550d3+=_0x37259d);_0x3b804c[_0x435a60(0xf5)]&&_0x27023a>0x0&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)](_0x4867bc?'└──\x20':'├──\x20'));_0x3b804c['showIcons']&&(_0x5550d3+=_0x446cd3['type']===_0x435a60(0x100)?'📁\x20':'🎯\x20');_0x5550d3+=_0x446cd3[_0x435a60(0x106)];if(_0x3b804c[_0x435a60(0x108)]){if(_0x446cd3[_0x435a60(0xfe)]===_0x435a60(0x100)){const _0x1e9fd1=[];_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xf1)]&&_0x1e9fd1[_0x435a60(0x102)](_0x446cd3['metadata'][_0x435a60(0xf1)]+_0x435a60(0xef)+(_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xf1)]!==0x1?'s':'')),_0x446cd3['metadata'][_0x435a60(0xfb)]&&_0x1e9fd1[_0x435a60(0x102)](_0x446cd3[_0x435a60(0xfa)][_0x435a60(0xfb)]+'\x20folder'+(_0x446cd3['metadata'][_0x435a60(0xfb)]!==0x1?'s':'')),_0x1e9fd1[_0x435a60(0xf4)]>0x0&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)]('\x20('+_0x1e9fd1[_0x435a60(0xee)](',\x20')+')'));}else _0x446cd3[_0x435a60(0xfe)]===_0x435a60(0x10a)&&_0x446cd3[_0x435a60(0xf0)]!==undefined&&(_0x5550d3+=a81_0x40dc8b[_0x435a60(0xfd)]('\x20('+formatRows(_0x446cd3[_0x435a60(0xf0)])+')'));}_0xea6eec[_0x435a60(0x102)](_0x5550d3);if(_0x446cd3['children']&&_0x446cd3[_0x435a60(0x109)][_0x435a60(0xf4)]>0x0){let _0x5491c9;if(_0x27023a===0x0)_0x5491c9='';else _0x3b804c[_0x435a60(0xf5)]?_0x5491c9=_0x37259d+(_0x4867bc?_0x435a60(0x10e):a81_0x40dc8b[_0x435a60(0xfd)]('│')+_0x435a60(0xf7)):_0x5491c9=_0x37259d+_0x3b804c['indent'];const _0x2e4fb8=formatTree(_0x446cd3[_0x435a60(0x109)],_0x3b804c,_0x27023a+0x1,_0x5491c9);_0xea6eec['push'](_0x2e4fb8);}}return _0xea6eec[_0x435a60(0xee)]('\x0a');}function a81_0x55e8(_0x24e004,_0x2f6cd2){const _0x29d9ec=a81_0x29d9();return a81_0x55e8=function(_0x55e817,_0x780f6d){_0x55e817=_0x55e817-0xed;let _0x28e3ac=_0x29d9ec[_0x55e817];return _0x28e3ac;},a81_0x55e8(_0x24e004,_0x2f6cd2);}function a81_0x29d9(){const _0x4372a9=['showTreeLines','icon','\x20\x20\x20','1038BdBQxc','37251852xTDFJw','metadata','folderCount','1706960wIcyNY','dim','type','showIcons','folder','369RRFftk','push','6163087HcTgnR','8BYnoQw','810195MlsFYl','name','66KARPGF','showMetadata','children','segment','24300NmZaCw','263750rhKLyJ','map','\x20\x20\x20\x20','1493eIpdym','sort','join','\x20segment','population','segmentCount','(empty)','localeCompare','length'];a81_0x29d9=function(){return _0x4372a9;};return a81_0x29d9();}export function formatFlatList(_0x8ad22,_0x51eef9,_0x36f7c1={}){const _0x4f41b5=a81_0x55e8,_0x430ed7={...DEFAULT_OPTIONS,..._0x36f7c1},_0x58482d=[];for(const _0x372507 of _0x8ad22){_0x58482d[_0x4f41b5(0x102)]({'name':_0x372507['name'],'icon':_0x430ed7[_0x4f41b5(0xff)]?'📁':'','metadata':undefined});}for(const _0x23687f of _0x51eef9){const _0x28b319=_0x430ed7[_0x4f41b5(0x108)]&&_0x23687f[_0x4f41b5(0xf0)]!==undefined?a81_0x40dc8b[_0x4f41b5(0xfd)]('\x20('+formatRows(_0x23687f['population'])+')'):'';_0x58482d[_0x4f41b5(0x102)]({'name':_0x23687f[_0x4f41b5(0x106)],'icon':_0x430ed7['showIcons']?'🎯':'','metadata':_0x28b319});}_0x58482d[_0x4f41b5(0xed)]((_0x5e909c,_0x1b3a3e)=>_0x5e909c['name'][_0x4f41b5(0xf3)](_0x1b3a3e[_0x4f41b5(0x106)]));if(_0x58482d[_0x4f41b5(0xf4)]===0x0)return _0x4f41b5(0xf2);const _0x117890=_0x58482d[_0x4f41b5(0x10d)](_0x47a438=>{const _0x49874b=_0x4f41b5,_0xc05006=_0x47a438['icon']?_0x47a438[_0x49874b(0xf6)]+'\x20':'',_0x46a748=_0x47a438['metadata']||'';return''+_0xc05006+_0x47a438[_0x49874b(0x106)]+_0x46a748;});return _0x117890[_0x4f41b5(0xee)]('\x0a');}
1
+ (function(_0x4f2b3d,_0x5b1913){const _0xad8624=a81_0x514a,_0x166ba3=_0x4f2b3d();while(!![]){try{const _0x336d26=-parseInt(_0xad8624(0xce))/0x1+-parseInt(_0xad8624(0xdf))/0x2*(parseInt(_0xad8624(0xee))/0x3)+parseInt(_0xad8624(0xe5))/0x4+-parseInt(_0xad8624(0xd6))/0x5*(-parseInt(_0xad8624(0xe1))/0x6)+-parseInt(_0xad8624(0xd9))/0x7*(-parseInt(_0xad8624(0xe4))/0x8)+-parseInt(_0xad8624(0xe7))/0x9+parseInt(_0xad8624(0xdb))/0xa;if(_0x336d26===_0x5b1913)break;else _0x166ba3['push'](_0x166ba3['shift']());}catch(_0x5a6c38){_0x166ba3['push'](_0x166ba3['shift']());}}}(a81_0x541e,0x488f2));import{formatRows}from'./formatters.js';import a81_0x5c6417 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};function a81_0x514a(_0x4c2017,_0x2e263d){const _0x541ecb=a81_0x541e();return a81_0x514a=function(_0x514a8a,_0x547df4){_0x514a8a=_0x514a8a-0xcb;let _0x2847ee=_0x541ecb[_0x514a8a];return _0x2847ee;},a81_0x514a(_0x4c2017,_0x2e263d);}export function formatTree(_0x2357d6,_0x3a3e6f={},_0x21a563=0x0,_0x51a491=''){const _0x42470e=a81_0x514a,_0x22133c={...DEFAULT_OPTIONS,..._0x3a3e6f},_0x130a0d=[],_0x5e2c65=[..._0x2357d6][_0x42470e(0xcd)]((_0xfc837d,_0xf2cff)=>_0xfc837d[_0x42470e(0xde)][_0x42470e(0xd3)](_0xf2cff['name']));for(let _0x353883=0x0;_0x353883<_0x5e2c65[_0x42470e(0xd7)];_0x353883++){const _0x3a7a12=_0x5e2c65[_0x353883],_0x13e45d=_0x353883===_0x5e2c65[_0x42470e(0xd7)]-0x1;let _0x4778fa='';_0x21a563>0x0&&(_0x4778fa+=_0x51a491);_0x22133c[_0x42470e(0xcb)]&&_0x21a563>0x0&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)](_0x13e45d?'└──\x20':'├──\x20'));_0x22133c[_0x42470e(0xd2)]&&(_0x4778fa+=_0x3a7a12['type']===_0x42470e(0xd1)?_0x42470e(0xe9):_0x42470e(0xe6));_0x4778fa+=_0x3a7a12['name'];if(_0x22133c[_0x42470e(0xe2)]){if(_0x3a7a12[_0x42470e(0xdd)]===_0x42470e(0xd1)){const _0x3c7947=[];_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xe0)]&&_0x3c7947[_0x42470e(0xec)](_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xe0)]+_0x42470e(0xe3)+(_0x3a7a12[_0x42470e(0xe8)]['segmentCount']!==0x1?'s':'')),_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xd0)]&&_0x3c7947[_0x42470e(0xec)](_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xd0)]+_0x42470e(0xcc)+(_0x3a7a12['metadata'][_0x42470e(0xd0)]!==0x1?'s':'')),_0x3c7947[_0x42470e(0xd7)]>0x0&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)]('\x20('+_0x3c7947[_0x42470e(0xda)](',\x20')+')'));}else _0x3a7a12['type']===_0x42470e(0xcf)&&_0x3a7a12[_0x42470e(0xeb)]!==undefined&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)]('\x20('+formatRows(_0x3a7a12[_0x42470e(0xeb)])+')'));}_0x130a0d[_0x42470e(0xec)](_0x4778fa);if(_0x3a7a12[_0x42470e(0xd4)]&&_0x3a7a12[_0x42470e(0xd4)][_0x42470e(0xd7)]>0x0){let _0x259a62;if(_0x21a563===0x0)_0x259a62='';else _0x22133c[_0x42470e(0xcb)]?_0x259a62=_0x51a491+(_0x13e45d?_0x42470e(0xea):a81_0x5c6417[_0x42470e(0xd5)]('│')+'\x20\x20\x20'):_0x259a62=_0x51a491+_0x22133c[_0x42470e(0xef)];const _0x2f416d=formatTree(_0x3a7a12[_0x42470e(0xd4)],_0x22133c,_0x21a563+0x1,_0x259a62);_0x130a0d[_0x42470e(0xec)](_0x2f416d);}}return _0x130a0d[_0x42470e(0xda)]('\x0a');}function a81_0x541e(){const _0x1f135d=['\x20segment','432pTabLP','1345424ViaSGl','🎯\x20','5298147jYcbtN','metadata','📁\x20','\x20\x20\x20\x20','population','push','map','1177890ItMlzm','indent','showTreeLines','\x20folder','sort','442238WcxOtf','segment','folderCount','folder','showIcons','localeCompare','children','dim','160phVcva','length','(empty)','52262CSdLKQ','join','8878890zykcTj','icon','type','name','2cfZdkP','segmentCount','17502tFgtFi','showMetadata'];a81_0x541e=function(){return _0x1f135d;};return a81_0x541e();}export function formatFlatList(_0x167928,_0x13fa5c,_0x294bdb={}){const _0x237e0b=a81_0x514a,_0x4e41bd={...DEFAULT_OPTIONS,..._0x294bdb},_0x2e8cc3=[];for(const _0x4959c6 of _0x167928){_0x2e8cc3[_0x237e0b(0xec)]({'name':_0x4959c6[_0x237e0b(0xde)],'icon':_0x4e41bd[_0x237e0b(0xd2)]?'📁':'','metadata':undefined});}for(const _0x3a4bd5 of _0x13fa5c){const _0x47bac6=_0x4e41bd[_0x237e0b(0xe2)]&&_0x3a4bd5[_0x237e0b(0xeb)]!==undefined?a81_0x5c6417[_0x237e0b(0xd5)]('\x20('+formatRows(_0x3a4bd5[_0x237e0b(0xeb)])+')'):'';_0x2e8cc3[_0x237e0b(0xec)]({'name':_0x3a4bd5[_0x237e0b(0xde)],'icon':_0x4e41bd[_0x237e0b(0xd2)]?'🎯':'','metadata':_0x47bac6});}_0x2e8cc3['sort']((_0x259f6c,_0x1cdb1f)=>_0x259f6c['name'][_0x237e0b(0xd3)](_0x1cdb1f['name']));if(_0x2e8cc3[_0x237e0b(0xd7)]===0x0)return _0x237e0b(0xd8);const _0x246c57=_0x2e8cc3[_0x237e0b(0xed)](_0x2dc5d5=>{const _0x2ec892=_0x237e0b,_0x641b50=_0x2dc5d5[_0x2ec892(0xdc)]?_0x2dc5d5[_0x2ec892(0xdc)]+'\x20':'',_0x1ed90e=_0x2dc5d5['metadata']||'';return''+_0x641b50+_0x2dc5d5[_0x2ec892(0xde)]+_0x1ed90e;});return _0x246c57[_0x237e0b(0xda)]('\x0a');}
@@ -1 +1 @@
1
- function a82_0x442a(_0x3724d2,_0x56e286){const _0x4d26d2=a82_0x4d26();return a82_0x442a=function(_0x442a6e,_0x189bf8){_0x442a6e=_0x442a6e-0x152;let _0x3048ed=_0x4d26d2[_0x442a6e];return _0x3048ed;},a82_0x442a(_0x3724d2,_0x56e286);}(function(_0x5cd361,_0x49c92a){const _0x24c7c7=a82_0x442a,_0x24b627=_0x5cd361();while(!![]){try{const _0x258b6b=parseInt(_0x24c7c7(0x174))/0x1+parseInt(_0x24c7c7(0x171))/0x2+parseInt(_0x24c7c7(0x15e))/0x3+parseInt(_0x24c7c7(0x165))/0x4+-parseInt(_0x24c7c7(0x173))/0x5+parseInt(_0x24c7c7(0x170))/0x6*(-parseInt(_0x24c7c7(0x15b))/0x7)+-parseInt(_0x24c7c7(0x16f))/0x8;if(_0x258b6b===_0x49c92a)break;else _0x24b627['push'](_0x24b627['shift']());}catch(_0x2ff0f1){_0x24b627['push'](_0x24b627['shift']());}}}(a82_0x4d26,0x6a717));import{get}from'https';function a82_0x4d26(){const _0x1fd972=['123952IPNDWX','cyan','1555660NqPRXu','504835cNnNrH','Invalid\x20version\x20format','last_version_check','dim','Request\x20timeout','toISOString','\x0aRun:\x20','write','data','\x0aUpdate\x20available:\x20','green','npm\x20install\x20-g\x20@treasuredata/tdx@latest','70NXUybc','statusCode','currentVersion','1435314OSUBQj','version','utf-8','stderr','updateAvailable','isTTY','end','1858032ApZYKi','yellow','parse','Run:','NO_COLOR','now','destroy','Update\x20available:','latestVersion','getTime','1200672ATZVoK','367530bsjkCt'];a82_0x4d26=function(){return _0x1fd972;};return a82_0x4d26();}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a82_0x7157bc from'chalk';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 _0x37364f=a82_0x442a,_0x1b3b2d=getCacheDir();return join(_0x1b3b2d,_0x37364f(0x176));}function readCache(){const _0x3f1a00=a82_0x442a;try{const _0x494220=getCacheFilePath(),_0x5235b6=readFileSync(_0x494220,_0x3f1a00(0x160));return JSON['parse'](_0x5235b6);}catch{return null;}}function writeCache(_0x362fa6){const _0x520c90=a82_0x442a;try{const _0x26137c=getCacheDir();mkdirSync(_0x26137c,{'recursive':!![]});const _0x1d8916={'lastCheck':new Date()[_0x520c90(0x154)](),'latestVersion':_0x362fa6},_0x14815a=getCacheFilePath();writeFileSync(_0x14815a,JSON['stringify'](_0x1d8916,null,0x2),_0x520c90(0x160));}catch{}}function isCacheValid(_0x5c4455){const _0x2c2394=a82_0x442a;if(!_0x5c4455)return![];const _0x3bbe34=new Date(_0x5c4455['lastCheck'])[_0x2c2394(0x16e)](),_0x5a2e1a=Date[_0x2c2394(0x16a)]();return _0x5a2e1a-_0x3bbe34<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4da66a,_0xf2371f)=>{const _0x4ea478=get(NPM_REGISTRY_URL,_0xee6904=>{const _0x23865a=a82_0x442a;if(_0xee6904[_0x23865a(0x15c)]!==0xc8){clearTimeout(_0x21dfe7),_0xf2371f(new Error('HTTP\x20'+_0xee6904[_0x23865a(0x15c)]));return;}let _0x338475='';_0xee6904['on'](_0x23865a(0x157),_0x5eaee7=>{_0x338475+=_0x5eaee7;}),_0xee6904['on'](_0x23865a(0x164),()=>{const _0x1e241f=_0x23865a;clearTimeout(_0x21dfe7);try{const _0x3e12c2=JSON[_0x1e241f(0x167)](_0x338475);if(!valid(_0x3e12c2[_0x1e241f(0x15f)])){_0xf2371f(new Error(_0x1e241f(0x175)));return;}_0x4da66a(_0x3e12c2[_0x1e241f(0x15f)]);}catch(_0x5a7bfc){_0xf2371f(_0x5a7bfc);}});})['on']('error',_0x53faa3=>{clearTimeout(_0x21dfe7),_0xf2371f(_0x53faa3);}),_0x21dfe7=setTimeout(()=>{const _0x7bb069=a82_0x442a;_0x4ea478[_0x7bb069(0x16b)](),_0xf2371f(new Error(_0x7bb069(0x153)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x5e592b){const _0x960435=a82_0x442a;try{const _0x5a4b7c=readCache();if(isCacheValid(_0x5a4b7c)){const _0xdd603c=gt(_0x5a4b7c['latestVersion'],_0x5e592b);return{'updateAvailable':_0xdd603c,'currentVersion':_0x5e592b,'latestVersion':_0x5a4b7c[_0x960435(0x16d)]};}const _0x82aef=await fetchLatestVersion();writeCache(_0x82aef);const _0x4a4cf2=gt(_0x82aef,_0x5e592b);return{'updateAvailable':_0x4a4cf2,'currentVersion':_0x5e592b,'latestVersion':_0x82aef};}catch{return null;}}export function displayUpdateNotification(_0x332bf4){const _0x1bd22e=a82_0x442a;if(!_0x332bf4[_0x1bd22e(0x162)])return;const _0x1bd67e=process[_0x1bd22e(0x161)][_0x1bd22e(0x163)]&&!process['env'][_0x1bd22e(0x169)],_0x102a34=_0x1bd67e?a82_0x7157bc['gray']('→'):'→',_0x950c1a=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x152)](_0x332bf4['currentVersion']):_0x332bf4[_0x1bd22e(0x15d)],_0x16cc22=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x159)](_0x332bf4['latestVersion']):_0x332bf4[_0x1bd22e(0x16d)],_0x309c33=_0x1bd67e?a82_0x7157bc[_0x1bd22e(0x172)](_0x1bd22e(0x15a)):_0x1bd22e(0x15a),_0x55b973=_0x1bd67e?'\x0a'+a82_0x7157bc[_0x1bd22e(0x166)](_0x1bd22e(0x16c))+'\x20'+_0x950c1a+'\x20'+_0x102a34+'\x20'+_0x16cc22+'\x0a'+a82_0x7157bc[_0x1bd22e(0x152)](_0x1bd22e(0x168))+'\x20'+_0x309c33+'\x0a':_0x1bd22e(0x158)+_0x950c1a+'\x20'+_0x102a34+'\x20'+_0x16cc22+_0x1bd22e(0x155)+_0x309c33+'\x0a';process[_0x1bd22e(0x161)][_0x1bd22e(0x156)](_0x55b973);}
1
+ function a82_0x1dd7(){const _0x586237=['yellow','3881084IHYTZB','latestVersion','end','lastCheck','HTTP\x20','14344TfRfPy','npm\x20install\x20-g\x20@treasuredata/tdx@latest','utf-8','\x0aUpdate\x20available:\x20','177UzzsUK','\x0aRun:\x20','Update\x20available:','stringify','toISOString','https://registry.npmjs.org/@treasuredata/tdx/latest','parse','env','17329560edaEus','Invalid\x20version\x20format','getTime','dim','cyan','isTTY','5644341aaWIbF','337719yuLZKO','5602626znkOks','data','Run:','destroy','Request\x20timeout','gray','statusCode','updateAvailable','currentVersion','version','error','green','3332UjaWEy','5TpAtZv','now','10538ZhlFPa'];a82_0x1dd7=function(){return _0x586237;};return a82_0x1dd7();}const a82_0x2e3e81=a82_0x2ee3;(function(_0x51129b,_0x5b9658){const _0x3f881a=a82_0x2ee3,_0x445c6c=_0x51129b();while(!![]){try{const _0x223819=parseInt(_0x3f881a(0x114))/0x1+parseInt(_0x3f881a(0x124))/0x2*(parseInt(_0x3f881a(0x105))/0x3)+parseInt(_0x3f881a(0x126))/0x4+-parseInt(_0x3f881a(0x122))/0x5*(-parseInt(_0x3f881a(0x115))/0x6)+-parseInt(_0x3f881a(0x121))/0x7*(parseInt(_0x3f881a(0x101))/0x8)+parseInt(_0x3f881a(0x113))/0x9+-parseInt(_0x3f881a(0x10d))/0xa;if(_0x223819===_0x5b9658)break;else _0x445c6c['push'](_0x445c6c['shift']());}catch(_0x4d532f){_0x445c6c['push'](_0x445c6c['shift']());}}}(a82_0x1dd7,0x90dcd));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a82_0x2ee3(_0x2efc65,_0x4c0d80){const _0x1dd788=a82_0x1dd7();return a82_0x2ee3=function(_0x2ee322,_0x4ed94d){_0x2ee322=_0x2ee322-0xff;let _0x3134fc=_0x1dd788[_0x2ee322];return _0x3134fc;},a82_0x2ee3(_0x2efc65,_0x4c0d80);}import{gt,valid}from'semver';import a82_0x4a85e0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x2e3e81(0x10a),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x365860=getCacheDir();return join(_0x365860,'last_version_check');}function readCache(){const _0x73cf82=a82_0x2e3e81;try{const _0x1ab203=getCacheFilePath(),_0x50baa3=readFileSync(_0x1ab203,_0x73cf82(0x103));return JSON[_0x73cf82(0x10b)](_0x50baa3);}catch{return null;}}function writeCache(_0x18922f){const _0x3cd36a=a82_0x2e3e81;try{const _0x19fda2=getCacheDir();mkdirSync(_0x19fda2,{'recursive':!![]});const _0x5bdca7={'lastCheck':new Date()[_0x3cd36a(0x109)](),'latestVersion':_0x18922f},_0x1ac4d8=getCacheFilePath();writeFileSync(_0x1ac4d8,JSON[_0x3cd36a(0x108)](_0x5bdca7,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x38d7cf){const _0x37bb25=a82_0x2e3e81;if(!_0x38d7cf)return![];const _0x3a365a=new Date(_0x38d7cf[_0x37bb25(0xff)])[_0x37bb25(0x10f)](),_0x356020=Date[_0x37bb25(0x123)]();return _0x356020-_0x3a365a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x239829,_0xc99e66)=>{const _0x4e80c3=a82_0x2ee3,_0x2c57be=get(NPM_REGISTRY_URL,_0x5ad36d=>{const _0x3a1a23=a82_0x2ee3;if(_0x5ad36d['statusCode']!==0xc8){clearTimeout(_0x2f81ff),_0xc99e66(new Error(_0x3a1a23(0x100)+_0x5ad36d[_0x3a1a23(0x11b)]));return;}let _0x1c6a0c='';_0x5ad36d['on'](_0x3a1a23(0x116),_0x10ac37=>{_0x1c6a0c+=_0x10ac37;}),_0x5ad36d['on'](_0x3a1a23(0x128),()=>{const _0x3b0642=_0x3a1a23;clearTimeout(_0x2f81ff);try{const _0x5aa87d=JSON[_0x3b0642(0x10b)](_0x1c6a0c);if(!valid(_0x5aa87d['version'])){_0xc99e66(new Error(_0x3b0642(0x10e)));return;}_0x239829(_0x5aa87d[_0x3b0642(0x11e)]);}catch(_0x334368){_0xc99e66(_0x334368);}});})['on'](_0x4e80c3(0x11f),_0x152bd1=>{clearTimeout(_0x2f81ff),_0xc99e66(_0x152bd1);}),_0x2f81ff=setTimeout(()=>{const _0x168091=_0x4e80c3;_0x2c57be[_0x168091(0x118)](),_0xc99e66(new Error(_0x168091(0x119)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x14fc9d){const _0x4b097d=a82_0x2e3e81;try{const _0x2ac364=readCache();if(isCacheValid(_0x2ac364)){const _0x4de1ae=gt(_0x2ac364[_0x4b097d(0x127)],_0x14fc9d);return{'updateAvailable':_0x4de1ae,'currentVersion':_0x14fc9d,'latestVersion':_0x2ac364['latestVersion']};}const _0x41d2b2=await fetchLatestVersion();writeCache(_0x41d2b2);const _0x46dc7f=gt(_0x41d2b2,_0x14fc9d);return{'updateAvailable':_0x46dc7f,'currentVersion':_0x14fc9d,'latestVersion':_0x41d2b2};}catch{return null;}}export function displayUpdateNotification(_0x2fd2d1){const _0x404fa5=a82_0x2e3e81;if(!_0x2fd2d1[_0x404fa5(0x11c)])return;const _0x16d7c5=process['stderr'][_0x404fa5(0x112)]&&!process[_0x404fa5(0x10c)]['NO_COLOR'],_0x22aad6=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x11a)]('→'):'→',_0x40b29f=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x110)](_0x2fd2d1[_0x404fa5(0x11d)]):_0x2fd2d1[_0x404fa5(0x11d)],_0x5a335b=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x120)](_0x2fd2d1[_0x404fa5(0x127)]):_0x2fd2d1[_0x404fa5(0x127)],_0x521796=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x111)](_0x404fa5(0x102)):_0x404fa5(0x102),_0x2e8c1c=_0x16d7c5?'\x0a'+a82_0x4a85e0[_0x404fa5(0x125)](_0x404fa5(0x107))+'\x20'+_0x40b29f+'\x20'+_0x22aad6+'\x20'+_0x5a335b+'\x0a'+a82_0x4a85e0[_0x404fa5(0x110)](_0x404fa5(0x117))+'\x20'+_0x521796+'\x0a':_0x404fa5(0x104)+_0x40b29f+'\x20'+_0x22aad6+'\x20'+_0x5a335b+_0x404fa5(0x106)+_0x521796+'\x0a';process['stderr']['write'](_0x2e8c1c);}
@@ -1 +1 @@
1
- const a83_0x40202d=a83_0x815d;(function(_0x4f0165,_0x4743b1){const _0x1af26c=a83_0x815d,_0xe6559f=_0x4f0165();while(!![]){try{const _0x182331=parseInt(_0x1af26c(0x1d6))/0x1+-parseInt(_0x1af26c(0x1d0))/0x2+-parseInt(_0x1af26c(0x1d1))/0x3+parseInt(_0x1af26c(0x1da))/0x4*(parseInt(_0x1af26c(0x1d8))/0x5)+parseInt(_0x1af26c(0x1d9))/0x6+-parseInt(_0x1af26c(0x1d5))/0x7+parseInt(_0x1af26c(0x1d3))/0x8;if(_0x182331===_0x4743b1)break;else _0xe6559f['push'](_0xe6559f['shift']());}catch(_0x1c1fde){_0xe6559f['push'](_0xe6559f['shift']());}}}(a83_0x41cd,0x20b50));function a83_0x815d(_0x273c12,_0xa92dec){const _0x41cd6e=a83_0x41cd();return a83_0x815d=function(_0x815dad,_0x452f34){_0x815dad=_0x815dad-0x1d0;let _0x45c4c5=_0x41cd6e[_0x815dad];return _0x45c4c5;},a83_0x815d(_0x273c12,_0xa92dec);}export const WORKFLOW_FILE_EXTENSION=a83_0x40202d(0x1d4);export function shouldIncludeInArchive(_0x33d56c){const _0x166076=a83_0x40202d;if(_0x33d56c===_0x166076(0x1d2))return!![];if(_0x33d56c[_0x166076(0x1d7)]('.'))return![];return!![];}function a83_0x41cd(){const _0x2672cf=['445176pnujqw','271281uyTIil','.digdag','429504PBXtSE','.dig','316673jcuWcq','119804ROBnmd','startsWith','1500cEKGZv','562380BRzCzS','3000IscXCD'];a83_0x41cd=function(){return _0x2672cf;};return a83_0x41cd();}
1
+ (function(_0x2510c7,_0x14074e){const _0x1a950d=a83_0x2de6,_0x252a83=_0x2510c7();while(!![]){try{const _0x158cd2=parseInt(_0x1a950d(0x112))/0x1+-parseInt(_0x1a950d(0x116))/0x2*(-parseInt(_0x1a950d(0x110))/0x3)+-parseInt(_0x1a950d(0x113))/0x4+-parseInt(_0x1a950d(0x119))/0x5*(parseInt(_0x1a950d(0x11c))/0x6)+parseInt(_0x1a950d(0x111))/0x7*(-parseInt(_0x1a950d(0x117))/0x8)+parseInt(_0x1a950d(0x11b))/0x9+parseInt(_0x1a950d(0x114))/0xa*(parseInt(_0x1a950d(0x115))/0xb);if(_0x158cd2===_0x14074e)break;else _0x252a83['push'](_0x252a83['shift']());}catch(_0x42701a){_0x252a83['push'](_0x252a83['shift']());}}}(a83_0x20b3,0x352c2));export const WORKFLOW_FILE_EXTENSION='.dig';function a83_0x20b3(){const _0x58734d=['8YQJHzl','startsWith','714205esTMqU','.digdag','1274985rkGlMK','6rCAdNP','6BfWBVq','1137941EWkKhA','271907WpoGfO','1375436dIMzfC','2397310UkiaKC','11eRVLRc','213754EpkHaS'];a83_0x20b3=function(){return _0x58734d;};return a83_0x20b3();}function a83_0x2de6(_0x16143a,_0x3befca){const _0x20b325=a83_0x20b3();return a83_0x2de6=function(_0x2de6b1,_0xa9a329){_0x2de6b1=_0x2de6b1-0x110;let _0x2b003c=_0x20b325[_0x2de6b1];return _0x2b003c;},a83_0x2de6(_0x16143a,_0x3befca);}export function shouldIncludeInArchive(_0x3b65e5){const _0x4ab36c=a83_0x2de6;if(_0x3b65e5===_0x4ab36c(0x11a))return!![];if(_0x3b65e5[_0x4ab36c(0x118)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.2",
3
+ "version": "0.2.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": {