@treasuredata/tdx 2026.4.18 → 2026.4.19

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 (252) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-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/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.d.ts +38 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-command.js.map +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/parent-segment-command.js +1 -1
  39. package/dist/commands/policy-command.js +1 -1
  40. package/dist/commands/profile-command.js +1 -1
  41. package/dist/commands/profiles-command.js +1 -1
  42. package/dist/commands/query-command.js +1 -1
  43. package/dist/commands/schedule-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.js +1 -1
  48. package/dist/commands/segment-push-command.js +1 -1
  49. package/dist/commands/segment-update-command.js +1 -1
  50. package/dist/commands/segment-use-command.js +1 -1
  51. package/dist/commands/segment-validate-command.js +1 -1
  52. package/dist/commands/segments.js +1 -1
  53. package/dist/commands/show.js +1 -1
  54. package/dist/commands/status-command.js +1 -1
  55. package/dist/commands/tables.js +1 -1
  56. package/dist/commands/unset-command.js +1 -1
  57. package/dist/commands/upgrade-command.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/work-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/tools/work-create-item.js +1 -1
  83. package/dist/mcp/utils.js +1 -1
  84. package/dist/proxy/claude-usage-tracker.js +1 -1
  85. package/dist/proxy/passthrough-server.js +1 -1
  86. package/dist/proxy/sse-usage-parser.js +1 -1
  87. package/dist/sdk/agent/agent-config.js +1 -1
  88. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  89. package/dist/sdk/agent/agent-yaml.js +1 -1
  90. package/dist/sdk/agent/test/evaluator.js +1 -1
  91. package/dist/sdk/agent/test/executor.js +1 -1
  92. package/dist/sdk/agent/test/index.js +1 -1
  93. package/dist/sdk/agent/test/output.js +1 -1
  94. package/dist/sdk/agent/test/parser.js +1 -1
  95. package/dist/sdk/agent/tool-target-registry.js +1 -1
  96. package/dist/sdk/api.js +1 -1
  97. package/dist/sdk/cas/cas-api-client.js +1 -1
  98. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  99. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  100. package/dist/sdk/cas/index.js +1 -1
  101. package/dist/sdk/cas/pull-workflow.js +1 -1
  102. package/dist/sdk/cas/push-workflow.js +1 -1
  103. package/dist/sdk/client/cdp-api-client.js +1 -1
  104. package/dist/sdk/client/delivery-api-client.js +1 -1
  105. package/dist/sdk/client/endpoints.js +1 -1
  106. package/dist/sdk/client/engage-api-client.d.ts +26 -1
  107. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  108. package/dist/sdk/client/engage-api-client.js +1 -1
  109. package/dist/sdk/client/engage-api-client.js.map +1 -1
  110. package/dist/sdk/client/http-client.d.ts +1 -1
  111. package/dist/sdk/client/http-client.d.ts.map +1 -1
  112. package/dist/sdk/client/http-client.js +1 -1
  113. package/dist/sdk/client/http-client.js.map +1 -1
  114. package/dist/sdk/client/llm-api-client.js +1 -1
  115. package/dist/sdk/client/oauth-refresh.js +1 -1
  116. package/dist/sdk/client/rate-limiter.js +1 -1
  117. package/dist/sdk/client/td-api-client.js +1 -1
  118. package/dist/sdk/client/trino-api-client.js +1 -1
  119. package/dist/sdk/client/workflow-client.js +1 -1
  120. package/dist/sdk/connection-validator.js +1 -1
  121. package/dist/sdk/connection.js +1 -1
  122. package/dist/sdk/delivery.js +1 -1
  123. package/dist/sdk/engage/campaign-pull.js +1 -1
  124. package/dist/sdk/engage/campaign-push.js +1 -1
  125. package/dist/sdk/engage/campaign-validator.js +1 -1
  126. package/dist/sdk/engage/campaign-validator.js.map +1 -1
  127. package/dist/sdk/engage/campaign-yaml.d.ts +1 -1
  128. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  129. package/dist/sdk/engage/campaign-yaml.js +1 -1
  130. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  131. package/dist/sdk/engage/template-pull.js +1 -1
  132. package/dist/sdk/engage/template-push.js +1 -1
  133. package/dist/sdk/engage/template-validator.js +1 -1
  134. package/dist/sdk/engage/template-yaml.js +1 -1
  135. package/dist/sdk/engage/types/campaign-def.d.ts +2 -2
  136. package/dist/sdk/engage/types/campaign-def.d.ts.map +1 -1
  137. package/dist/sdk/engage/types/campaign-def.js +1 -1
  138. package/dist/sdk/engage/types/campaign-def.js.map +1 -1
  139. package/dist/sdk/engage/types/campaign-schema.d.ts +256 -8
  140. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  141. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  143. package/dist/sdk/engage/types/template-schema.js +1 -1
  144. package/dist/sdk/engage.d.ts +28 -1
  145. package/dist/sdk/engage.d.ts.map +1 -1
  146. package/dist/sdk/engage.js +1 -1
  147. package/dist/sdk/engage.js.map +1 -1
  148. package/dist/sdk/errors.js +1 -1
  149. package/dist/sdk/index.d.ts +1 -1
  150. package/dist/sdk/index.d.ts.map +1 -1
  151. package/dist/sdk/index.js +1 -1
  152. package/dist/sdk/index.js.map +1 -1
  153. package/dist/sdk/io/index.js +1 -1
  154. package/dist/sdk/io/node-filesystem.js +1 -1
  155. package/dist/sdk/job.js +1 -1
  156. package/dist/sdk/journey.js +1 -1
  157. package/dist/sdk/llm/chat-cache.js +1 -1
  158. package/dist/sdk/llm/index.js +1 -1
  159. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  160. package/dist/sdk/llm/model-factors.js +1 -1
  161. package/dist/sdk/personalization.js +1 -1
  162. package/dist/sdk/policy.js +1 -1
  163. package/dist/sdk/query/index.js +1 -1
  164. package/dist/sdk/query/sql-parser.js +1 -1
  165. package/dist/sdk/realtime.js +1 -1
  166. package/dist/sdk/schedule.js +1 -1
  167. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  168. package/dist/sdk/segment/fields-display.js +1 -1
  169. package/dist/sdk/segment/file-discovery.js +1 -1
  170. package/dist/sdk/segment/journey-utils.js +1 -1
  171. package/dist/sdk/segment/journey-validator.js +1 -1
  172. package/dist/sdk/segment/journey-yaml.js +1 -1
  173. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  174. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  175. package/dist/sdk/segment/pull-workflow.js +1 -1
  176. package/dist/sdk/segment/push-recovery.js +1 -1
  177. package/dist/sdk/segment/push-workflow.js +1 -1
  178. package/dist/sdk/segment/resolution-context.js +1 -1
  179. package/dist/sdk/segment/segment-path-parser.js +1 -1
  180. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  181. package/dist/sdk/segment/segment-validator.js +1 -1
  182. package/dist/sdk/segment/target-resolution.js +1 -1
  183. package/dist/sdk/segment/tdx-config.js +1 -1
  184. package/dist/sdk/segment/types/activation-schema.js +1 -1
  185. package/dist/sdk/segment/types/journey-def.js +1 -1
  186. package/dist/sdk/segment/types/journey-schema.js +1 -1
  187. package/dist/sdk/segment/types/segment-def.js +1 -1
  188. package/dist/sdk/segment/types/segment-schema.js +1 -1
  189. package/dist/sdk/segment/validate-files.js +1 -1
  190. package/dist/sdk/segment/yaml-validator.js +1 -1
  191. package/dist/sdk/segment.js +1 -1
  192. package/dist/sdk/types/engage.d.ts +125 -1
  193. package/dist/sdk/types/engage.d.ts.map +1 -1
  194. package/dist/sdk/types/index.d.ts +1 -1
  195. package/dist/sdk/types/index.d.ts.map +1 -1
  196. package/dist/sdk/types/index.js +1 -1
  197. package/dist/sdk/types/index.js.map +1 -1
  198. package/dist/sdk/types/progress.js +1 -1
  199. package/dist/sdk/types/workspace.js +1 -1
  200. package/dist/sdk/user.js +1 -1
  201. package/dist/sdk/util/format-detector.js +1 -1
  202. package/dist/sdk/util/formatters.js +1 -1
  203. package/dist/sdk/util/index.js +1 -1
  204. package/dist/sdk/util/paginate.js +1 -1
  205. package/dist/sdk/util/tree-formatter.js +1 -1
  206. package/dist/sdk/workflow/archive-validation.js +1 -1
  207. package/dist/sdk/workflow/clone-workflow.js +1 -1
  208. package/dist/sdk/workflow/index.js +1 -1
  209. package/dist/sdk/workflow/pull-workflow.js +1 -1
  210. package/dist/sdk/workflow/push-workflow.js +1 -1
  211. package/dist/sdk/workflow/tdx-config.js +1 -1
  212. package/dist/sdk/workflow/workflow-utils.js +1 -1
  213. package/dist/sdk/workspace/access-tracker.js +1 -1
  214. package/dist/sdk/workspace/frontmatter.js +1 -1
  215. package/dist/sdk/workspace/git.js +1 -1
  216. package/dist/sdk/workspace/index.js +1 -1
  217. package/dist/sdk/workspace/templates.js +1 -1
  218. package/dist/sdk/workspace/weekly.js +1 -1
  219. package/dist/sdk/workspace/wikilinks.js +1 -1
  220. package/dist/test-utils/command-runner.js +1 -1
  221. package/dist/test-utils/factories.js +1 -1
  222. package/dist/test-utils/fixtures.js +1 -1
  223. package/dist/test-utils/http-mock.js +1 -1
  224. package/dist/test-utils/index.js +1 -1
  225. package/dist/utils/async.js +1 -1
  226. package/dist/utils/colors.js +1 -1
  227. package/dist/utils/diff.js +1 -1
  228. package/dist/utils/file-permissions.js +1 -1
  229. package/dist/utils/file-reader.js +1 -1
  230. package/dist/utils/github-releases.js +1 -1
  231. package/dist/utils/global-cache.js +1 -1
  232. package/dist/utils/json-loader.js +1 -1
  233. package/dist/utils/local-cache.js +1 -1
  234. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  235. package/dist/utils/logger/formatters/index.js +1 -1
  236. package/dist/utils/logger/handlers/console-handler.js +1 -1
  237. package/dist/utils/logger/handlers/file-handler.js +1 -1
  238. package/dist/utils/logger/handlers/index.js +1 -1
  239. package/dist/utils/logger/handlers/null-handler.js +1 -1
  240. package/dist/utils/logger/index.js +1 -1
  241. package/dist/utils/logger/logger.js +1 -1
  242. package/dist/utils/logger/types.js +1 -1
  243. package/dist/utils/option-validation.js +1 -1
  244. package/dist/utils/process.js +1 -1
  245. package/dist/utils/prompt.js +1 -1
  246. package/dist/utils/spinner.js +1 -1
  247. package/dist/utils/sse-parser.js +1 -1
  248. package/dist/utils/string-utils.js +1 -1
  249. package/dist/utils/table-ref-parser.js +1 -1
  250. package/dist/utils/tdx-logger.js +1 -1
  251. package/dist/utils/version-check.js +1 -1
  252. package/package.json +1 -1
@@ -1 +1 @@
1
- const a235_0x5d3c72=a235_0xc49d;(function(_0x3e65e6,_0x51ea02){const _0x4e06e1=a235_0xc49d,_0x57e9fa=_0x3e65e6();while(!![]){try{const _0x33c067=parseInt(_0x4e06e1(0x8c))/0x1+-parseInt(_0x4e06e1(0xb1))/0x2*(-parseInt(_0x4e06e1(0xa0))/0x3)+parseInt(_0x4e06e1(0x8f))/0x4*(-parseInt(_0x4e06e1(0x99))/0x5)+parseInt(_0x4e06e1(0x9a))/0x6+parseInt(_0x4e06e1(0x9f))/0x7*(parseInt(_0x4e06e1(0x9c))/0x8)+-parseInt(_0x4e06e1(0x92))/0x9*(-parseInt(_0x4e06e1(0x98))/0xa)+-parseInt(_0x4e06e1(0xb5))/0xb;if(_0x33c067===_0x51ea02)break;else _0x57e9fa['push'](_0x57e9fa['shift']());}catch(_0x47443b){_0x57e9fa['push'](_0x57e9fa['shift']());}}}(a235_0x1b10,0xe44cb));import{get}from'https';function a235_0xc49d(_0x1018f9,_0x290a50){_0x1018f9=_0x1018f9-0x8b;const _0x1b102a=a235_0x1b10();let _0xc49d0a=_0x1b102a[_0x1018f9];return _0xc49d0a;}function a235_0x1b10(){const _0x6997c3=['green','read','3750ZhwuUy','195ZMQvga','9565374lRumxt','write','9398216cGlOiA','error','tdx\x20upgrade','7kvtfbe','6crRCCq','now','version','parse','gray','cyan','background','utils/version-check-next','unref','statusCode','toISOString','\x0aRun:\x20','Invalid\x20version\x20format','lastCheck','utils/version-check','HTTP\x20','next','1777754NUrlKu','Update\x20available:','\x0aUpdate\x20available:\x20','getTime','52028328xQzUDz','destroy','dim','latestVersion','last_version_check','19672iXhMhU','data','stderr','75984rzxarj','isTTY','Request\x20timeout','44145CTGQRl','Run:','yellow','channel'];a235_0x1b10=function(){return _0x6997c3;};return a235_0x1b10();}import{gt,valid}from'semver';import a235_0x511556 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE='https://registry.npmjs.org/@treasuredata/tdx',TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x5d3c72(0x8b),a235_0x5d3c72(0xae)),nextVersionCache=createGlobalCache('last_version_check_next',a235_0x5d3c72(0xa7));function getCacheForChannel(_0x5ad4a3){const _0xc47ba6=a235_0x5d3c72;return _0x5ad4a3===_0xc47ba6(0xb0)?nextVersionCache:stableVersionCache;}function readCache(_0x5295dc){const _0xd2b94c=a235_0x5d3c72;return getCacheForChannel(_0x5295dc)[_0xd2b94c(0x97)]()??null;}function writeCache(_0x5c1a03,_0x1ee80b){const _0x4f4906=a235_0x5d3c72;try{getCacheForChannel(_0x1ee80b)['write']({'lastCheck':new Date()[_0x4f4906(0xaa)](),'latestVersion':_0x5c1a03});}catch{}}function isCacheValid(_0x314d4e){const _0x42ee70=a235_0x5d3c72;if(!_0x314d4e)return![];const _0x38ff05=new Date(_0x314d4e[_0x42ee70(0xad)])[_0x42ee70(0xb4)](),_0x284b6c=Date[_0x42ee70(0xa1)]();return _0x284b6c-_0x38ff05<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x48a92b='stable',_0x51e0ff){const _0xd0cad4=a235_0x5d3c72,_0x127041=_0x51e0ff?.[_0xd0cad4(0xa6)]??![],_0x57703d=_0x48a92b===_0xd0cad4(0xb0)?'next':'latest',_0x50b987=NPM_REGISTRY_BASE+'/'+_0x57703d;return new Promise((_0x2c7d50,_0x1b39de)=>{const _0x21052d=_0xd0cad4,_0x15af0e=get(_0x50b987,{'timeout':TIMEOUT_MS},_0x3d2d8c=>{const _0x1a12d5=a235_0xc49d;if(_0x3d2d8c[_0x1a12d5(0xa9)]!==0xc8){clearTimeout(_0x4728bf),_0x1b39de(new Error(_0x1a12d5(0xaf)+_0x3d2d8c['statusCode']));return;}let _0x10483f='';_0x3d2d8c['on'](_0x1a12d5(0x8d),_0x23d86e=>{_0x10483f+=_0x23d86e;}),_0x3d2d8c['on']('end',()=>{const _0x48fc46=_0x1a12d5;clearTimeout(_0x4728bf);try{const _0x18d2b0=JSON[_0x48fc46(0xa3)](_0x10483f);if(!valid(_0x18d2b0['version'])){_0x1b39de(new Error(_0x48fc46(0xac)));return;}_0x2c7d50(_0x18d2b0[_0x48fc46(0xa2)]);}catch(_0x259373){_0x1b39de(_0x259373);}});})['on'](_0x21052d(0x9d),_0x24515a=>{clearTimeout(_0x4728bf),_0x1b39de(_0x24515a);}),_0x4728bf=setTimeout(()=>{const _0x43d59d=_0x21052d;_0x15af0e[_0x43d59d(0xb6)](),_0x1b39de(new Error(_0x43d59d(0x91)));},TIMEOUT_MS);_0x127041&&(_0x15af0e['on']('socket',_0x50ee5e=>{_0x50ee5e['unref']();}),_0x4728bf[_0x21052d(0xa8)]());});}export async function checkForUpdate(_0xdb762d,_0x3f21aa='stable'){const _0x45e51e=a235_0x5d3c72;try{const _0x59c204=readCache(_0x3f21aa);if(isCacheValid(_0x59c204)){const _0x3663ea=gt(_0x59c204['latestVersion'],_0xdb762d);return{'updateAvailable':_0x3663ea,'currentVersion':_0xdb762d,'latestVersion':_0x59c204[_0x45e51e(0xb8)],'channel':_0x3f21aa};}const _0x2b814c=await fetchLatestVersion(_0x3f21aa,{'background':!![]});writeCache(_0x2b814c,_0x3f21aa);const _0x55d200=gt(_0x2b814c,_0xdb762d);return{'updateAvailable':_0x55d200,'currentVersion':_0xdb762d,'latestVersion':_0x2b814c,'channel':_0x3f21aa};}catch{return null;}}export function displayUpdateNotification(_0x2e93e7){const _0x2faa45=a235_0x5d3c72;if(!_0x2e93e7['updateAvailable'])return;const _0x5db352=_0x2e93e7[_0x2faa45(0x95)]===_0x2faa45(0xb0)?'tdx\x20upgrade\x20--next':_0x2faa45(0x9e),_0x2d28ac=process[_0x2faa45(0x8e)][_0x2faa45(0x90)]&&!process.env.NO_COLOR,_0x1c63be=_0x2d28ac?a235_0x511556[_0x2faa45(0xa4)]('→'):'→',_0x42d27a=_0x2d28ac?a235_0x511556[_0x2faa45(0xb7)](_0x2e93e7['currentVersion']):_0x2e93e7['currentVersion'],_0x211be0=_0x2d28ac?a235_0x511556[_0x2faa45(0x96)](_0x2e93e7[_0x2faa45(0xb8)]):_0x2e93e7[_0x2faa45(0xb8)],_0x5cba34=_0x2d28ac?a235_0x511556[_0x2faa45(0xa5)](_0x5db352):_0x5db352,_0x494ce9=_0x2d28ac?'\x0a'+a235_0x511556[_0x2faa45(0x94)](_0x2faa45(0xb2))+'\x20'+_0x42d27a+'\x20'+_0x1c63be+'\x20'+_0x211be0+'\x0a'+a235_0x511556[_0x2faa45(0xb7)](_0x2faa45(0x93))+'\x20'+_0x5cba34+'\x0a':_0x2faa45(0xb3)+_0x42d27a+'\x20'+_0x1c63be+'\x20'+_0x211be0+_0x2faa45(0xab)+_0x5cba34+'\x0a';process[_0x2faa45(0x8e)][_0x2faa45(0x9b)](_0x494ce9);}
1
+ const a235_0x1736c9=a235_0x68ae;(function(_0x4227c7,_0x9f6b4d){const _0x5030a4=a235_0x68ae,_0x40f686=_0x4227c7();while(!![]){try{const _0x113438=-parseInt(_0x5030a4(0x201))/0x1*(-parseInt(_0x5030a4(0x1ff))/0x2)+parseInt(_0x5030a4(0x1fa))/0x3*(-parseInt(_0x5030a4(0x1f5))/0x4)+-parseInt(_0x5030a4(0x1e9))/0x5*(parseInt(_0x5030a4(0x1e0))/0x6)+-parseInt(_0x5030a4(0x1da))/0x7*(parseInt(_0x5030a4(0x1ef))/0x8)+parseInt(_0x5030a4(0x1f9))/0x9*(parseInt(_0x5030a4(0x1ec))/0xa)+-parseInt(_0x5030a4(0x1ea))/0xb*(parseInt(_0x5030a4(0x1db))/0xc)+-parseInt(_0x5030a4(0x1e5))/0xd*(-parseInt(_0x5030a4(0x204))/0xe);if(_0x113438===_0x9f6b4d)break;else _0x40f686['push'](_0x40f686['shift']());}catch(_0x3301d3){_0x40f686['push'](_0x40f686['shift']());}}}(a235_0xba24,0xd8153));import{get}from'https';import{gt,valid}from'semver';import a235_0x3a38a6 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a235_0x1736c9(0x1ed),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x1736c9(0x1eb),a235_0x1736c9(0x20a)),nextVersionCache=createGlobalCache(a235_0x1736c9(0x1e8),a235_0x1736c9(0x1e1));function getCacheForChannel(_0x73346c){return _0x73346c==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x1d0ef5){const _0x4a7813=a235_0x1736c9;return getCacheForChannel(_0x1d0ef5)[_0x4a7813(0x1f4)]()??null;}function writeCache(_0x159c42,_0x34075f){const _0x512b42=a235_0x1736c9;try{getCacheForChannel(_0x34075f)['write']({'lastCheck':new Date()[_0x512b42(0x208)](),'latestVersion':_0x159c42});}catch{}}function isCacheValid(_0x493ac8){const _0x170f42=a235_0x1736c9;if(!_0x493ac8)return![];const _0x471e45=new Date(_0x493ac8[_0x170f42(0x1f8)])[_0x170f42(0x1ee)](),_0x53942a=Date['now']();return _0x53942a-_0x471e45<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x52d0f4=a235_0x1736c9(0x206),_0x7b0b){const _0x445095=a235_0x1736c9,_0x3707d2=_0x7b0b?.['background']??![],_0x44730a=_0x52d0f4===_0x445095(0x1e3)?'next':'latest',_0x18b3e4=NPM_REGISTRY_BASE+'/'+_0x44730a;return new Promise((_0x3607f5,_0x4d16e5)=>{const _0x505436=_0x445095,_0x4eb1f5=get(_0x18b3e4,{'timeout':TIMEOUT_MS},_0x5ee783=>{const _0x3eea60=a235_0x68ae;if(_0x5ee783[_0x3eea60(0x1fe)]!==0xc8){clearTimeout(_0x2b87cb),_0x4d16e5(new Error(_0x3eea60(0x1e6)+_0x5ee783[_0x3eea60(0x1fe)]));return;}let _0x343f86='';_0x5ee783['on'](_0x3eea60(0x1de),_0x11ebf2=>{_0x343f86+=_0x11ebf2;}),_0x5ee783['on'](_0x3eea60(0x202),()=>{const _0xabfe6=_0x3eea60;clearTimeout(_0x2b87cb);try{const _0x5ceacf=JSON[_0xabfe6(0x1e4)](_0x343f86);if(!valid(_0x5ceacf[_0xabfe6(0x1dc)])){_0x4d16e5(new Error(_0xabfe6(0x209)));return;}_0x3607f5(_0x5ceacf['version']);}catch(_0x1921b3){_0x4d16e5(_0x1921b3);}});})['on'](_0x505436(0x1fd),_0x1c82cc=>{clearTimeout(_0x2b87cb),_0x4d16e5(_0x1c82cc);}),_0x2b87cb=setTimeout(()=>{_0x4eb1f5['destroy'](),_0x4d16e5(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x3707d2&&(_0x4eb1f5['on']('socket',_0x403e3b=>{const _0x2148db=_0x505436;_0x403e3b[_0x2148db(0x203)]();}),_0x2b87cb[_0x505436(0x203)]());});}function a235_0x68ae(_0x4b7544,_0x451139){_0x4b7544=_0x4b7544-0x1da;const _0xba243e=a235_0xba24();let _0x68ae4=_0xba243e[_0x4b7544];return _0x68ae4;}export async function checkForUpdate(_0x709aee,_0x5394a5=a235_0x1736c9(0x206)){const _0x3df24b=a235_0x1736c9;try{const _0x1d6396=readCache(_0x5394a5);if(isCacheValid(_0x1d6396)){const _0x5c96bf=gt(_0x1d6396[_0x3df24b(0x205)],_0x709aee);return{'updateAvailable':_0x5c96bf,'currentVersion':_0x709aee,'latestVersion':_0x1d6396[_0x3df24b(0x205)],'channel':_0x5394a5};}const _0x958840=await fetchLatestVersion(_0x5394a5,{'background':!![]});writeCache(_0x958840,_0x5394a5);const _0x2de2a3=gt(_0x958840,_0x709aee);return{'updateAvailable':_0x2de2a3,'currentVersion':_0x709aee,'latestVersion':_0x958840,'channel':_0x5394a5};}catch{return null;}}export function displayUpdateNotification(_0x2c2ab7){const _0x4e3bd5=a235_0x1736c9;if(!_0x2c2ab7['updateAvailable'])return;const _0x132a13=_0x2c2ab7[_0x4e3bd5(0x1fc)]===_0x4e3bd5(0x1e3)?_0x4e3bd5(0x1df):_0x4e3bd5(0x1f2),_0x5c4737=process['stderr'][_0x4e3bd5(0x207)]&&!process.env.NO_COLOR,_0x9f31ae=_0x5c4737?a235_0x3a38a6[_0x4e3bd5(0x1fb)]('→'):'→',_0x2d6449=_0x5c4737?a235_0x3a38a6['dim'](_0x2c2ab7[_0x4e3bd5(0x200)]):_0x2c2ab7[_0x4e3bd5(0x200)],_0x9324dc=_0x5c4737?a235_0x3a38a6[_0x4e3bd5(0x1f0)](_0x2c2ab7[_0x4e3bd5(0x205)]):_0x2c2ab7[_0x4e3bd5(0x205)],_0x20bb38=_0x5c4737?a235_0x3a38a6[_0x4e3bd5(0x20b)](_0x132a13):_0x132a13,_0x767fc=_0x5c4737?'\x0a'+a235_0x3a38a6[_0x4e3bd5(0x1dd)](_0x4e3bd5(0x1e2))+'\x20'+_0x2d6449+'\x20'+_0x9f31ae+'\x20'+_0x9324dc+'\x0a'+a235_0x3a38a6['dim'](_0x4e3bd5(0x1f3))+'\x20'+_0x20bb38+'\x0a':_0x4e3bd5(0x1f6)+_0x2d6449+'\x20'+_0x9f31ae+'\x20'+_0x9324dc+_0x4e3bd5(0x1f7)+_0x20bb38+'\x0a';process[_0x4e3bd5(0x1e7)][_0x4e3bd5(0x1f1)](_0x767fc);}function a235_0xba24(){const _0x1b34ce=['channel','error','statusCode','540Xkomkk','currentVersion','5767OkEnfL','end','unref','42OQHeaw','latestVersion','stable','isTTY','toISOString','Invalid\x20version\x20format','utils/version-check','cyan','4060XnVMjN','48MviqUV','version','yellow','data','tdx\x20upgrade\x20--next','273198CxCwmi','utils/version-check-next','Update\x20available:','next','parse','1244997icZPXX','HTTP\x20','stderr','last_version_check_next','5DXadtv','4544408bWNumc','last_version_check','16361420lzStDN','https://registry.npmjs.org/@treasuredata/tdx','getTime','10136mRjeoB','green','write','tdx\x20upgrade','Run:','read','4364BqMyzV','\x0aUpdate\x20available:\x20','\x0aRun:\x20','lastCheck','9WFGuqZ','447cKazqF','gray'];a235_0xba24=function(){return _0x1b34ce;};return a235_0xba24();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.4.18",
3
+ "version": "2026.4.19",
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": {