@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.
Files changed (111) 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/engage-api-client.d.ts +57 -0
  6. package/dist/client/engage-api-client.d.ts.map +1 -0
  7. package/dist/client/engage-api-client.js +1 -0
  8. package/dist/client/engage-api-client.js.map +1 -0
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.d.ts.map +1 -1
  11. package/dist/client/llm-api-client.js +1 -1
  12. package/dist/client/llm-api-client.js.map +1 -1
  13. package/dist/client/rate-limiter.js +1 -1
  14. package/dist/client/td-api-client.js +1 -1
  15. package/dist/client/trino-api-client.js +1 -1
  16. package/dist/client/workflow-client.js +1 -1
  17. package/dist/commands/activations.js +1 -1
  18. package/dist/commands/api-command.js +1 -1
  19. package/dist/commands/auth-command.js +1 -1
  20. package/dist/commands/chat-command.js +1 -1
  21. package/dist/commands/claude-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.d.ts +69 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -0
  28. package/dist/commands/engage-command.js +1 -0
  29. package/dist/commands/engage-command.js.map +1 -0
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/proxy/anthropic-adapter.js +1 -1
  57. package/dist/proxy/server.js +1 -1
  58. package/dist/proxy/session-cache.js +1 -1
  59. package/dist/sdk/api.js +1 -1
  60. package/dist/sdk/engage.d.ts +152 -0
  61. package/dist/sdk/engage.d.ts.map +1 -0
  62. package/dist/sdk/engage.js +1 -0
  63. package/dist/sdk/engage.js.map +1 -0
  64. package/dist/sdk/errors.js +1 -1
  65. package/dist/sdk/index.d.ts +7 -0
  66. package/dist/sdk/index.d.ts.map +1 -1
  67. package/dist/sdk/index.js +1 -1
  68. package/dist/sdk/index.js.map +1 -1
  69. package/dist/sdk/job.js +1 -1
  70. package/dist/sdk/llm.js +1 -1
  71. package/dist/sdk/query.js +1 -1
  72. package/dist/sdk/segment.js +1 -1
  73. package/dist/sdk/workflow.js +1 -1
  74. package/dist/types/endpoints.d.ts +4 -0
  75. package/dist/types/endpoints.d.ts.map +1 -1
  76. package/dist/types/endpoints.js +1 -1
  77. package/dist/types/endpoints.js.map +1 -1
  78. package/dist/types/engage.d.ts +340 -0
  79. package/dist/types/engage.d.ts.map +1 -0
  80. package/dist/types/engage.js +1 -0
  81. package/dist/types/engage.js.map +1 -0
  82. package/dist/types/index.d.ts +2 -1
  83. package/dist/types/index.d.ts.map +1 -1
  84. package/dist/types/index.js +1 -1
  85. package/dist/utils/agent-ref-parser.js +1 -1
  86. package/dist/utils/chat-cache.js +1 -1
  87. package/dist/utils/colors.js +1 -1
  88. package/dist/utils/command-output.js +1 -1
  89. package/dist/utils/constants.js +1 -1
  90. package/dist/utils/file-permissions.js +1 -1
  91. package/dist/utils/format-detector.js +1 -1
  92. package/dist/utils/formatters.js +1 -1
  93. package/dist/utils/json-loader.js +1 -1
  94. package/dist/utils/llm-backup-utils.js +1 -1
  95. package/dist/utils/model-aliases.js +1 -1
  96. package/dist/utils/option-validation.js +1 -1
  97. package/dist/utils/port.js +1 -1
  98. package/dist/utils/process.js +1 -1
  99. package/dist/utils/prompt.js +1 -1
  100. package/dist/utils/segment-path-parser.js +1 -1
  101. package/dist/utils/segment-ref-parser.js +1 -1
  102. package/dist/utils/spinner.js +1 -1
  103. package/dist/utils/sql-parser.js +1 -1
  104. package/dist/utils/sse-parser.js +1 -1
  105. package/dist/utils/string-utils.js +1 -1
  106. package/dist/utils/table-ref-parser.js +1 -1
  107. package/dist/utils/tdx-logger.js +1 -1
  108. package/dist/utils/tree-formatter.js +1 -1
  109. package/dist/utils/version-check.js +1 -1
  110. package/dist/utils/workflow-utils.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x228407,_0x1ab93e){const _0x1285fe=a86_0x3ec6,_0x106d59=_0x228407();while(!![]){try{const _0x34a17f=-parseInt(_0x1285fe(0x95))/0x1*(parseInt(_0x1285fe(0x98))/0x2)+-parseInt(_0x1285fe(0x76))/0x3*(parseInt(_0x1285fe(0x8d))/0x4)+-parseInt(_0x1285fe(0x92))/0x5+parseInt(_0x1285fe(0x87))/0x6*(-parseInt(_0x1285fe(0x97))/0x7)+parseInt(_0x1285fe(0x7a))/0x8+-parseInt(_0x1285fe(0x7f))/0x9+-parseInt(_0x1285fe(0x75))/0xa*(-parseInt(_0x1285fe(0x7d))/0xb);if(_0x34a17f===_0x1ab93e)break;else _0x106d59['push'](_0x106d59['shift']());}catch(_0x570974){_0x106d59['push'](_0x106d59['shift']());}}}(a86_0x5480,0xec9bf));import{formatRows}from'./formatters.js';function a86_0x5480(){const _0x312fda=['📁\x20','🎯\x20','length','showMetadata','showTreeLines','(empty)','\x20folder','30CseMcq','metadata','push','population','icon','type','428WixAvz','localeCompare','showIcons','folderCount','indent','8117140MvpRBI','\x20segment','sort','3541QamEvZ','children','2442783VihgnF','208vTzjdr','name','join','\x20\x20\x20\x20','7760FeIPXp','49713RfEhAL','segmentCount','├──\x20','folder','8635080fIwnNa','segment','└──\x20','83963LXECbi','dim','4714272utBgJb'];a86_0x5480=function(){return _0x312fda;};return a86_0x5480();}import a86_0x4e13c0 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x58b14d,_0xbb3914={},_0x3ede9a=0x0,_0x3a340b=''){const _0xb05085=a86_0x3ec6,_0x24a6e3={...DEFAULT_OPTIONS,..._0xbb3914},_0x26e495=[],_0x34b950=[..._0x58b14d]['sort']((_0x557043,_0x4043af)=>_0x557043[_0xb05085(0x72)]['localeCompare'](_0x4043af[_0xb05085(0x72)]));for(let _0x3858da=0x0;_0x3858da<_0x34b950['length'];_0x3858da++){const _0x439ab2=_0x34b950[_0x3858da],_0x48913d=_0x3858da===_0x34b950[_0xb05085(0x82)]-0x1;let _0x5959ba='';_0x3ede9a>0x0&&(_0x5959ba+=_0x3a340b);_0x24a6e3[_0xb05085(0x84)]&&_0x3ede9a>0x0&&(_0x5959ba+=a86_0x4e13c0[_0xb05085(0x7e)](_0x48913d?_0xb05085(0x7c):_0xb05085(0x78)));_0x24a6e3[_0xb05085(0x8f)]&&(_0x5959ba+=_0x439ab2[_0xb05085(0x8c)]===_0xb05085(0x79)?_0xb05085(0x80):_0xb05085(0x81));_0x5959ba+=_0x439ab2[_0xb05085(0x72)];if(_0x24a6e3[_0xb05085(0x83)]){if(_0x439ab2['type']===_0xb05085(0x79)){const _0x3dda77=[];_0x439ab2[_0xb05085(0x88)][_0xb05085(0x77)]&&_0x3dda77[_0xb05085(0x89)](_0x439ab2[_0xb05085(0x88)]['segmentCount']+_0xb05085(0x93)+(_0x439ab2['metadata'][_0xb05085(0x77)]!==0x1?'s':'')),_0x439ab2[_0xb05085(0x88)][_0xb05085(0x90)]&&_0x3dda77['push'](_0x439ab2[_0xb05085(0x88)][_0xb05085(0x90)]+_0xb05085(0x86)+(_0x439ab2['metadata']['folderCount']!==0x1?'s':'')),_0x3dda77['length']>0x0&&(_0x5959ba+=a86_0x4e13c0['dim']('\x20('+_0x3dda77[_0xb05085(0x73)](',\x20')+')'));}else _0x439ab2[_0xb05085(0x8c)]===_0xb05085(0x7b)&&_0x439ab2[_0xb05085(0x8a)]!==undefined&&(_0x5959ba+=a86_0x4e13c0[_0xb05085(0x7e)]('\x20('+formatRows(_0x439ab2[_0xb05085(0x8a)])+')'));}_0x26e495[_0xb05085(0x89)](_0x5959ba);if(_0x439ab2['children']&&_0x439ab2[_0xb05085(0x96)][_0xb05085(0x82)]>0x0){let _0x1a5e42;if(_0x3ede9a===0x0)_0x1a5e42='';else _0x24a6e3[_0xb05085(0x84)]?_0x1a5e42=_0x3a340b+(_0x48913d?_0xb05085(0x74):a86_0x4e13c0[_0xb05085(0x7e)]('│')+'\x20\x20\x20'):_0x1a5e42=_0x3a340b+_0x24a6e3[_0xb05085(0x91)];const _0x3baf0e=formatTree(_0x439ab2[_0xb05085(0x96)],_0x24a6e3,_0x3ede9a+0x1,_0x1a5e42);_0x26e495[_0xb05085(0x89)](_0x3baf0e);}}return _0x26e495[_0xb05085(0x73)]('\x0a');}function a86_0x3ec6(_0x4b4592,_0x428995){const _0x5480ae=a86_0x5480();return a86_0x3ec6=function(_0x3ec626,_0x2c4d16){_0x3ec626=_0x3ec626-0x72;let _0x14904c=_0x5480ae[_0x3ec626];return _0x14904c;},a86_0x3ec6(_0x4b4592,_0x428995);}export function formatFlatList(_0x513c05,_0x2a3aaf,_0x5475ab={}){const _0x4aea63=a86_0x3ec6,_0x57c01f={...DEFAULT_OPTIONS,..._0x5475ab},_0x3b31dd=[];for(const _0x5a3f54 of _0x513c05){_0x3b31dd[_0x4aea63(0x89)]({'name':_0x5a3f54[_0x4aea63(0x72)],'icon':_0x57c01f[_0x4aea63(0x8f)]?'📁':'','metadata':undefined});}for(const _0x375773 of _0x2a3aaf){const _0x219512=_0x57c01f[_0x4aea63(0x83)]&&_0x375773[_0x4aea63(0x8a)]!==undefined?a86_0x4e13c0['dim']('\x20('+formatRows(_0x375773[_0x4aea63(0x8a)])+')'):'';_0x3b31dd[_0x4aea63(0x89)]({'name':_0x375773[_0x4aea63(0x72)],'icon':_0x57c01f[_0x4aea63(0x8f)]?'🎯':'','metadata':_0x219512});}_0x3b31dd[_0x4aea63(0x94)]((_0x7a0f24,_0x160b73)=>_0x7a0f24[_0x4aea63(0x72)][_0x4aea63(0x8e)](_0x160b73['name']));if(_0x3b31dd[_0x4aea63(0x82)]===0x0)return _0x4aea63(0x85);const _0xe2d3f=_0x3b31dd['map'](_0x5d4ce9=>{const _0x42e5a1=_0x4aea63,_0x572afd=_0x5d4ce9['icon']?_0x5d4ce9[_0x42e5a1(0x8b)]+'\x20':'',_0x49efe5=_0x5d4ce9['metadata']||'';return''+_0x572afd+_0x5d4ce9[_0x42e5a1(0x72)]+_0x49efe5;});return _0xe2d3f[_0x4aea63(0x73)]('\x0a');}
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 a87_0x25150b=a87_0x3435;(function(_0x1721d7,_0x137469){const _0x569798=a87_0x3435,_0x444030=_0x1721d7();while(!![]){try{const _0x59f175=parseInt(_0x569798(0x104))/0x1*(parseInt(_0x569798(0xe5))/0x2)+parseInt(_0x569798(0xf9))/0x3+-parseInt(_0x569798(0x109))/0x4+-parseInt(_0x569798(0xf8))/0x5*(-parseInt(_0x569798(0x106))/0x6)+-parseInt(_0x569798(0xe3))/0x7+parseInt(_0x569798(0xec))/0x8*(-parseInt(_0x569798(0xf5))/0x9)+-parseInt(_0x569798(0x101))/0xa;if(_0x59f175===_0x137469)break;else _0x444030['push'](_0x444030['shift']());}catch(_0x5d9354){_0x444030['push'](_0x444030['shift']());}}}(a87_0x3bf1,0xcda18));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a87_0x15aa58 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a87_0x25150b(0xfb),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x4ae41c=a87_0x25150b,_0x47ad33=getCacheDir();return join(_0x47ad33,_0x4ae41c(0xf1));}function readCache(){const _0x392fc4=a87_0x25150b;try{const _0x58b185=getCacheFilePath(),_0x5cd361=readFileSync(_0x58b185,_0x392fc4(0xeb));return JSON[_0x392fc4(0x102)](_0x5cd361);}catch{return null;}}function writeCache(_0x54dfc9){const _0x1af3d9=a87_0x25150b;try{const _0x51f634=getCacheDir();mkdirSync(_0x51f634,{'recursive':!![]});const _0xc60aca={'lastCheck':new Date()[_0x1af3d9(0xff)](),'latestVersion':_0x54dfc9},_0xabca25=getCacheFilePath();writeFileSync(_0xabca25,JSON[_0x1af3d9(0x100)](_0xc60aca,null,0x2),_0x1af3d9(0xeb));}catch{}}function isCacheValid(_0x904cd4){const _0x1122aa=a87_0x25150b;if(!_0x904cd4)return![];const _0x48919f=new Date(_0x904cd4[_0x1122aa(0xe2)])[_0x1122aa(0xe7)](),_0x41817c=Date['now']();return _0x41817c-_0x48919f<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1d1afa,_0x26dd08)=>{const _0x230fee=a87_0x3435,_0x33999b=get(NPM_REGISTRY_URL,_0x367801=>{const _0x46d539=a87_0x3435;if(_0x367801['statusCode']!==0xc8){clearTimeout(_0x1cd6b2),_0x26dd08(new Error('HTTP\x20'+_0x367801[_0x46d539(0xe4)]));return;}let _0x53c131='';_0x367801['on'](_0x46d539(0x107),_0x875555=>{_0x53c131+=_0x875555;}),_0x367801['on'](_0x46d539(0xfe),()=>{const _0xde807e=_0x46d539;clearTimeout(_0x1cd6b2);try{const _0x9510d7=JSON['parse'](_0x53c131);if(!valid(_0x9510d7[_0xde807e(0xf4)])){_0x26dd08(new Error('Invalid\x20version\x20format'));return;}_0x1d1afa(_0x9510d7[_0xde807e(0xf4)]);}catch(_0x2c5a7f){_0x26dd08(_0x2c5a7f);}});})['on'](_0x230fee(0x105),_0x53f8ec=>{clearTimeout(_0x1cd6b2),_0x26dd08(_0x53f8ec);}),_0x1cd6b2=setTimeout(()=>{const _0x11206c=_0x230fee;_0x33999b[_0x11206c(0xea)](),_0x26dd08(new Error(_0x11206c(0xe9)));},TIMEOUT_MS);});}function a87_0x3435(_0x281821,_0x4beebe){const _0x3bf120=a87_0x3bf1();return a87_0x3435=function(_0x3435d8,_0x288eaf){_0x3435d8=_0x3435d8-0xe2;let _0x51907a=_0x3bf120[_0x3435d8];return _0x51907a;},a87_0x3435(_0x281821,_0x4beebe);}function a87_0x3bf1(){const _0x51e211=['5WhCttd','3842886zkvdgz','stderr','https://registry.npmjs.org/@treasuredata/tdx/latest','dim','write','end','toISOString','stringify','1316700HffOrF','parse','\x0aRun:\x20','20AvhDPE','error','4557414LoXXDe','data','yellow','1480920KFuOeO','lastCheck','3095869rDKZlZ','statusCode','121274EGGkIt','gray','getTime','currentVersion','Request\x20timeout','destroy','utf-8','1173472TTMhym','green','env','updateAvailable','NO_COLOR','last_version_check','cyan','latestVersion','version','90GHVfOG','npm\x20install\x20-g\x20@treasuredata/tdx@latest','Run:'];a87_0x3bf1=function(){return _0x51e211;};return a87_0x3bf1();}export async function checkForUpdate(_0x3fe800){const _0xa9be46=a87_0x25150b;try{const _0x20807b=readCache();if(isCacheValid(_0x20807b)){const _0x448837=gt(_0x20807b[_0xa9be46(0xf3)],_0x3fe800);return{'updateAvailable':_0x448837,'currentVersion':_0x3fe800,'latestVersion':_0x20807b[_0xa9be46(0xf3)]};}const _0x55bf64=await fetchLatestVersion();writeCache(_0x55bf64);const _0x358abc=gt(_0x55bf64,_0x3fe800);return{'updateAvailable':_0x358abc,'currentVersion':_0x3fe800,'latestVersion':_0x55bf64};}catch{return null;}}export function displayUpdateNotification(_0x1de6d6){const _0x3cccc6=a87_0x25150b;if(!_0x1de6d6[_0x3cccc6(0xef)])return;const _0x5e84ec=process[_0x3cccc6(0xfa)]['isTTY']&&!process[_0x3cccc6(0xee)][_0x3cccc6(0xf0)],_0x347358=_0x5e84ec?a87_0x15aa58[_0x3cccc6(0xe6)]('→'):'→',_0x5aa2ee=_0x5e84ec?a87_0x15aa58[_0x3cccc6(0xfc)](_0x1de6d6[_0x3cccc6(0xe8)]):_0x1de6d6[_0x3cccc6(0xe8)],_0x3ec492=_0x5e84ec?a87_0x15aa58[_0x3cccc6(0xed)](_0x1de6d6[_0x3cccc6(0xf3)]):_0x1de6d6[_0x3cccc6(0xf3)],_0x5841d1=_0x5e84ec?a87_0x15aa58[_0x3cccc6(0xf2)]('npm\x20install\x20-g\x20@treasuredata/tdx@latest'):_0x3cccc6(0xf6),_0x49d1db=_0x5e84ec?'\x0a'+a87_0x15aa58[_0x3cccc6(0x108)]('Update\x20available:')+'\x20'+_0x5aa2ee+'\x20'+_0x347358+'\x20'+_0x3ec492+'\x0a'+a87_0x15aa58['dim'](_0x3cccc6(0xf7))+'\x20'+_0x5841d1+'\x0a':'\x0aUpdate\x20available:\x20'+_0x5aa2ee+'\x20'+_0x347358+'\x20'+_0x3ec492+_0x3cccc6(0x103)+_0x5841d1+'\x0a';process[_0x3cccc6(0xfa)][_0x3cccc6(0xfd)](_0x49d1db);}
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 a88_0x5d6091=a88_0x1f37;(function(_0x339ae9,_0x36daf2){const _0x8c799b=a88_0x1f37,_0x5c779c=_0x339ae9();while(!![]){try{const _0x1952c8=-parseInt(_0x8c799b(0x1f1))/0x1+-parseInt(_0x8c799b(0x1e9))/0x2+-parseInt(_0x8c799b(0x1ec))/0x3+-parseInt(_0x8c799b(0x1e7))/0x4*(parseInt(_0x8c799b(0x1eb))/0x5)+parseInt(_0x8c799b(0x1ef))/0x6*(parseInt(_0x8c799b(0x1e8))/0x7)+parseInt(_0x8c799b(0x1f2))/0x8+-parseInt(_0x8c799b(0x1ee))/0x9*(-parseInt(_0x8c799b(0x1f0))/0xa);if(_0x1952c8===_0x36daf2)break;else _0x5c779c['push'](_0x5c779c['shift']());}catch(_0x19ab67){_0x5c779c['push'](_0x5c779c['shift']());}}}(a88_0x217c,0x754be));function a88_0x1f37(_0x548b5b,_0x49b192){const _0x217c1f=a88_0x217c();return a88_0x1f37=function(_0x1f3754,_0x475e84){_0x1f3754=_0x1f3754-0x1e7;let _0x49da9f=_0x217c1f[_0x1f3754];return _0x49da9f;},a88_0x1f37(_0x548b5b,_0x49b192);}function a88_0x217c(){const _0x5e4043=['.dig','324505hpnmPZ','2863803SGyBPz','.digdag','260262YAxKPF','38118eHXKzJ','970DowjAh','923247SFZyga','4895776AFnBPr','12fqeGMH','14GuaVxY','1753454IpMQmF'];a88_0x217c=function(){return _0x5e4043;};return a88_0x217c();}export const WORKFLOW_FILE_EXTENSION=a88_0x5d6091(0x1ea);export function shouldIncludeInArchive(_0x1877db){const _0x43cca5=a88_0x5d6091;if(_0x1877db===_0x43cca5(0x1ed))return!![];if(_0x1877db['startsWith']('.'))return![];return!![];}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.4.2",
3
+ "version": "0.4.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": {