@treasuredata/tdx 2026.4.11 → 2026.4.12

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 (232) 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.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.d.ts +1 -0
  68. package/dist/core/profile.d.ts.map +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/profile.js.map +1 -1
  71. package/dist/core/project-config.js +1 -1
  72. package/dist/core/session.js +1 -1
  73. package/dist/core/user-cache.js +1 -1
  74. package/dist/core/version.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/mcp/server.js +1 -1
  77. package/dist/mcp/tools/index.js +1 -1
  78. package/dist/mcp/tools/tdx-run.js +1 -1
  79. package/dist/mcp/tools/tdx-search.js +1 -1
  80. package/dist/mcp/tools/work-create-item.js +1 -1
  81. package/dist/mcp/utils.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js +1 -1
  83. package/dist/proxy/passthrough-server.js +1 -1
  84. package/dist/proxy/sse-usage-parser.js +1 -1
  85. package/dist/sdk/agent/agent-config.js +1 -1
  86. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  87. package/dist/sdk/agent/agent-yaml.js +1 -1
  88. package/dist/sdk/agent/test/evaluator.js +1 -1
  89. package/dist/sdk/agent/test/executor.js +1 -1
  90. package/dist/sdk/agent/test/index.js +1 -1
  91. package/dist/sdk/agent/test/output.js +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/tool-target-registry.js +1 -1
  94. package/dist/sdk/api.js +1 -1
  95. package/dist/sdk/cas/cas-api-client.js +1 -1
  96. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  97. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  98. package/dist/sdk/cas/index.js +1 -1
  99. package/dist/sdk/cas/pull-workflow.js +1 -1
  100. package/dist/sdk/cas/push-workflow.js +1 -1
  101. package/dist/sdk/client/cdp-api-client.js +1 -1
  102. package/dist/sdk/client/delivery-api-client.js +1 -1
  103. package/dist/sdk/client/endpoints.js +1 -1
  104. package/dist/sdk/client/engage-api-client.js +1 -1
  105. package/dist/sdk/client/http-client.js +1 -1
  106. package/dist/sdk/client/llm-api-client.js +1 -1
  107. package/dist/sdk/client/oauth-refresh.js +1 -1
  108. package/dist/sdk/client/rate-limiter.js +1 -1
  109. package/dist/sdk/client/td-api-client.js +1 -1
  110. package/dist/sdk/client/trino-api-client.js +1 -1
  111. package/dist/sdk/client/workflow-client.js +1 -1
  112. package/dist/sdk/connection-validator.js +1 -1
  113. package/dist/sdk/connection.js +1 -1
  114. package/dist/sdk/delivery.js +1 -1
  115. package/dist/sdk/engage/campaign-pull.js +1 -1
  116. package/dist/sdk/engage/campaign-push.js +1 -1
  117. package/dist/sdk/engage/campaign-validator.js +1 -1
  118. package/dist/sdk/engage/campaign-yaml.js +1 -1
  119. package/dist/sdk/engage/template-pull.js +1 -1
  120. package/dist/sdk/engage/template-push.js +1 -1
  121. package/dist/sdk/engage/template-validator.js +1 -1
  122. package/dist/sdk/engage/template-yaml.js +1 -1
  123. package/dist/sdk/engage/types/campaign-def.js +1 -1
  124. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  125. package/dist/sdk/engage/types/template-schema.js +1 -1
  126. package/dist/sdk/engage.js +1 -1
  127. package/dist/sdk/errors.js +1 -1
  128. package/dist/sdk/index.js +1 -1
  129. package/dist/sdk/io/index.js +1 -1
  130. package/dist/sdk/io/node-filesystem.js +1 -1
  131. package/dist/sdk/job.js +1 -1
  132. package/dist/sdk/journey.d.ts +6 -0
  133. package/dist/sdk/journey.d.ts.map +1 -1
  134. package/dist/sdk/journey.js +1 -1
  135. package/dist/sdk/journey.js.map +1 -1
  136. package/dist/sdk/llm/chat-cache.js +1 -1
  137. package/dist/sdk/llm/index.js +1 -1
  138. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  139. package/dist/sdk/llm/model-factors.js +1 -1
  140. package/dist/sdk/personalization.js +1 -1
  141. package/dist/sdk/policy.js +1 -1
  142. package/dist/sdk/query/index.js +1 -1
  143. package/dist/sdk/query/sql-parser.js +1 -1
  144. package/dist/sdk/realtime.js +1 -1
  145. package/dist/sdk/schedule.js +1 -1
  146. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  147. package/dist/sdk/segment/fields-display.js +1 -1
  148. package/dist/sdk/segment/file-discovery.js +1 -1
  149. package/dist/sdk/segment/journey-utils.js +1 -1
  150. package/dist/sdk/segment/journey-validator.js +1 -1
  151. package/dist/sdk/segment/journey-yaml.js +1 -1
  152. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  153. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/pull-workflow.js +1 -1
  155. package/dist/sdk/segment/push-recovery.js +1 -1
  156. package/dist/sdk/segment/push-workflow.js +1 -1
  157. package/dist/sdk/segment/resolution-context.js +1 -1
  158. package/dist/sdk/segment/segment-path-parser.js +1 -1
  159. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  160. package/dist/sdk/segment/segment-validator.js +1 -1
  161. package/dist/sdk/segment/target-resolution.js +1 -1
  162. package/dist/sdk/segment/tdx-config.js +1 -1
  163. package/dist/sdk/segment/types/activation-schema.js +1 -1
  164. package/dist/sdk/segment/types/journey-def.js +1 -1
  165. package/dist/sdk/segment/types/journey-schema.js +1 -1
  166. package/dist/sdk/segment/types/segment-def.js +1 -1
  167. package/dist/sdk/segment/types/segment-schema.js +1 -1
  168. package/dist/sdk/segment/validate-files.js +1 -1
  169. package/dist/sdk/segment/yaml-validator.js +1 -1
  170. package/dist/sdk/segment.js +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/progress.js +1 -1
  173. package/dist/sdk/types/workspace.d.ts +2 -0
  174. package/dist/sdk/types/workspace.d.ts.map +1 -1
  175. package/dist/sdk/types/workspace.js +1 -1
  176. package/dist/sdk/user.js +1 -1
  177. package/dist/sdk/util/format-detector.js +1 -1
  178. package/dist/sdk/util/formatters.js +1 -1
  179. package/dist/sdk/util/index.js +1 -1
  180. package/dist/sdk/util/paginate.js +1 -1
  181. package/dist/sdk/util/tree-formatter.js +1 -1
  182. package/dist/sdk/workflow/archive-validation.js +1 -1
  183. package/dist/sdk/workflow/clone-workflow.js +1 -1
  184. package/dist/sdk/workflow/index.js +1 -1
  185. package/dist/sdk/workflow/pull-workflow.js +1 -1
  186. package/dist/sdk/workflow/push-workflow.js +1 -1
  187. package/dist/sdk/workflow/tdx-config.js +1 -1
  188. package/dist/sdk/workflow/workflow-utils.js +1 -1
  189. package/dist/sdk/workspace/access-tracker.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.d.ts.map +1 -1
  193. package/dist/sdk/workspace/index.js +1 -1
  194. package/dist/sdk/workspace/index.js.map +1 -1
  195. package/dist/sdk/workspace/templates.d.ts.map +1 -1
  196. package/dist/sdk/workspace/templates.js +1 -1
  197. package/dist/sdk/workspace/templates.js.map +1 -1
  198. package/dist/sdk/workspace/weekly.js +1 -1
  199. package/dist/sdk/workspace/wikilinks.js +1 -1
  200. package/dist/test-utils/command-runner.js +1 -1
  201. package/dist/test-utils/factories.js +1 -1
  202. package/dist/test-utils/fixtures.js +1 -1
  203. package/dist/test-utils/http-mock.js +1 -1
  204. package/dist/test-utils/index.js +1 -1
  205. package/dist/utils/async.js +1 -1
  206. package/dist/utils/colors.js +1 -1
  207. package/dist/utils/diff.js +1 -1
  208. package/dist/utils/file-permissions.js +1 -1
  209. package/dist/utils/file-reader.js +1 -1
  210. package/dist/utils/github-releases.js +1 -1
  211. package/dist/utils/global-cache.js +1 -1
  212. package/dist/utils/json-loader.js +1 -1
  213. package/dist/utils/local-cache.js +1 -1
  214. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  215. package/dist/utils/logger/formatters/index.js +1 -1
  216. package/dist/utils/logger/handlers/console-handler.js +1 -1
  217. package/dist/utils/logger/handlers/file-handler.js +1 -1
  218. package/dist/utils/logger/handlers/index.js +1 -1
  219. package/dist/utils/logger/handlers/null-handler.js +1 -1
  220. package/dist/utils/logger/index.js +1 -1
  221. package/dist/utils/logger/logger.js +1 -1
  222. package/dist/utils/logger/types.js +1 -1
  223. package/dist/utils/option-validation.js +1 -1
  224. package/dist/utils/process.js +1 -1
  225. package/dist/utils/prompt.js +1 -1
  226. package/dist/utils/spinner.js +1 -1
  227. package/dist/utils/sse-parser.js +1 -1
  228. package/dist/utils/string-utils.js +1 -1
  229. package/dist/utils/table-ref-parser.js +1 -1
  230. package/dist/utils/tdx-logger.js +1 -1
  231. package/dist/utils/version-check.js +1 -1
  232. package/package.json +1 -1
@@ -1 +1 @@
1
- const a235_0x390c6e=a235_0x1034;(function(_0x290ae4,_0x2841aa){const _0x305f26=a235_0x1034,_0x3d91dc=_0x290ae4();while(!![]){try{const _0x53b272=parseInt(_0x305f26(0xc0))/0x1*(-parseInt(_0x305f26(0xb3))/0x2)+parseInt(_0x305f26(0xcd))/0x3+parseInt(_0x305f26(0xaf))/0x4*(-parseInt(_0x305f26(0xd2))/0x5)+-parseInt(_0x305f26(0xc6))/0x6+-parseInt(_0x305f26(0xb8))/0x7+-parseInt(_0x305f26(0xb4))/0x8*(-parseInt(_0x305f26(0xd0))/0x9)+parseInt(_0x305f26(0xd3))/0xa*(parseInt(_0x305f26(0xbe))/0xb);if(_0x53b272===_0x2841aa)break;else _0x3d91dc['push'](_0x3d91dc['shift']());}catch(_0xcaca79){_0x3d91dc['push'](_0x3d91dc['shift']());}}}(a235_0x25f8,0xd5f30));import{get}from'https';import{gt,valid}from'semver';import a235_0x567c17 from'chalk';function a235_0x25f8(){const _0x5458a6=['6745018SGgmAn','parse','updateAvailable','green','destroy','currentVersion','48878159LpEFSy','latestVersion','1382158jJOdgs','write','next','\x0aUpdate\x20available:\x20','end','now','8392008xHbmnG','channel','error','toISOString','stderr','tdx\x20upgrade','Invalid\x20version\x20format','31434IirCQb','utils/version-check','lastCheck','1815102KFgJKu','\x0aRun:\x20','4208005eTtIIs','10bSceWc','statusCode','dim','read','version','background','last_version_check_next','last_version_check','latest','isTTY','unref','utils/version-check-next','4DvizhL','stable','gray','cyan','2dinsIf','40pGUQuv','socket','HTTP\x20','Run:'];a235_0x25f8=function(){return _0x5458a6;};return a235_0x25f8();}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_0x390c6e(0xda),a235_0x390c6e(0xce)),nextVersionCache=createGlobalCache(a235_0x390c6e(0xd9),a235_0x390c6e(0xae));function getCacheForChannel(_0x119f64){const _0x2b26c3=a235_0x390c6e;return _0x119f64===_0x2b26c3(0xc2)?nextVersionCache:stableVersionCache;}function readCache(_0x39dd82){const _0x2e7487=a235_0x390c6e;return getCacheForChannel(_0x39dd82)[_0x2e7487(0xd6)]()??null;}function writeCache(_0x5ea26b,_0x2b10bd){const _0x1b3e35=a235_0x390c6e;try{getCacheForChannel(_0x2b10bd)[_0x1b3e35(0xc1)]({'lastCheck':new Date()[_0x1b3e35(0xc9)](),'latestVersion':_0x5ea26b});}catch{}}function a235_0x1034(_0x89eee4,_0x3f3f3b){_0x89eee4=_0x89eee4-0xab;const _0x25f85b=a235_0x25f8();let _0x1034c7=_0x25f85b[_0x89eee4];return _0x1034c7;}function isCacheValid(_0x3085e5){const _0x29651e=a235_0x390c6e;if(!_0x3085e5)return![];const _0x593297=new Date(_0x3085e5[_0x29651e(0xcf)])['getTime'](),_0x5efb6d=Date[_0x29651e(0xc5)]();return _0x5efb6d-_0x593297<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2e997a='stable',_0x3eb77c){const _0x2b3119=a235_0x390c6e,_0x21e56d=_0x3eb77c?.[_0x2b3119(0xd8)]??![],_0x13bec9=_0x2e997a===_0x2b3119(0xc2)?_0x2b3119(0xc2):_0x2b3119(0xab),_0xce8915=NPM_REGISTRY_BASE+'/'+_0x13bec9;return new Promise((_0x480f39,_0x47d9f6)=>{const _0x4cb856=_0x2b3119,_0x1410c2=get(_0xce8915,{'timeout':TIMEOUT_MS},_0x8d2e29=>{const _0x77307c=a235_0x1034;if(_0x8d2e29['statusCode']!==0xc8){clearTimeout(_0x416ca3),_0x47d9f6(new Error(_0x77307c(0xb6)+_0x8d2e29[_0x77307c(0xd4)]));return;}let _0x3fa7f1='';_0x8d2e29['on']('data',_0x92cb7d=>{_0x3fa7f1+=_0x92cb7d;}),_0x8d2e29['on'](_0x77307c(0xc4),()=>{const _0x225462=_0x77307c;clearTimeout(_0x416ca3);try{const _0x5bff35=JSON[_0x225462(0xb9)](_0x3fa7f1);if(!valid(_0x5bff35[_0x225462(0xd7)])){_0x47d9f6(new Error(_0x225462(0xcc)));return;}_0x480f39(_0x5bff35[_0x225462(0xd7)]);}catch(_0xa2f070){_0x47d9f6(_0xa2f070);}});})['on'](_0x4cb856(0xc8),_0x19f197=>{clearTimeout(_0x416ca3),_0x47d9f6(_0x19f197);}),_0x416ca3=setTimeout(()=>{const _0x21bb77=_0x4cb856;_0x1410c2[_0x21bb77(0xbc)](),_0x47d9f6(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x21e56d&&(_0x1410c2['on'](_0x4cb856(0xb5),_0x11fb7a=>{const _0x56cc3a=_0x4cb856;_0x11fb7a[_0x56cc3a(0xad)]();}),_0x416ca3[_0x4cb856(0xad)]());});}export async function checkForUpdate(_0x81c264,_0x573ae9=a235_0x390c6e(0xb0)){const _0x14b040=a235_0x390c6e;try{const _0x305ba1=readCache(_0x573ae9);if(isCacheValid(_0x305ba1)){const _0x3842b1=gt(_0x305ba1['latestVersion'],_0x81c264);return{'updateAvailable':_0x3842b1,'currentVersion':_0x81c264,'latestVersion':_0x305ba1[_0x14b040(0xbf)],'channel':_0x573ae9};}const _0x400895=await fetchLatestVersion(_0x573ae9,{'background':!![]});writeCache(_0x400895,_0x573ae9);const _0x25ae9b=gt(_0x400895,_0x81c264);return{'updateAvailable':_0x25ae9b,'currentVersion':_0x81c264,'latestVersion':_0x400895,'channel':_0x573ae9};}catch{return null;}}export function displayUpdateNotification(_0x4ecaca){const _0x3fdf68=a235_0x390c6e;if(!_0x4ecaca[_0x3fdf68(0xba)])return;const _0x395e36=_0x4ecaca[_0x3fdf68(0xc7)]===_0x3fdf68(0xc2)?'tdx\x20upgrade\x20--next':_0x3fdf68(0xcb),_0x1d26b1=process[_0x3fdf68(0xca)][_0x3fdf68(0xac)]&&!process.env.NO_COLOR,_0x1f37bb=_0x1d26b1?a235_0x567c17[_0x3fdf68(0xb1)]('→'):'→',_0x28a57e=_0x1d26b1?a235_0x567c17[_0x3fdf68(0xd5)](_0x4ecaca[_0x3fdf68(0xbd)]):_0x4ecaca[_0x3fdf68(0xbd)],_0x519761=_0x1d26b1?a235_0x567c17[_0x3fdf68(0xbb)](_0x4ecaca[_0x3fdf68(0xbf)]):_0x4ecaca['latestVersion'],_0x483b4b=_0x1d26b1?a235_0x567c17[_0x3fdf68(0xb2)](_0x395e36):_0x395e36,_0x2ccbd1=_0x1d26b1?'\x0a'+a235_0x567c17['yellow']('Update\x20available:')+'\x20'+_0x28a57e+'\x20'+_0x1f37bb+'\x20'+_0x519761+'\x0a'+a235_0x567c17[_0x3fdf68(0xd5)](_0x3fdf68(0xb7))+'\x20'+_0x483b4b+'\x0a':_0x3fdf68(0xc3)+_0x28a57e+'\x20'+_0x1f37bb+'\x20'+_0x519761+_0x3fdf68(0xd1)+_0x483b4b+'\x0a';process[_0x3fdf68(0xca)]['write'](_0x2ccbd1);}
1
+ const a235_0x519df7=a235_0x57b0;(function(_0x5aefdc,_0x3d78b9){const _0x597318=a235_0x57b0,_0x4986e9=_0x5aefdc();while(!![]){try{const _0x2825c8=-parseInt(_0x597318(0x1f9))/0x1+parseInt(_0x597318(0x20d))/0x2+-parseInt(_0x597318(0x1fb))/0x3*(parseInt(_0x597318(0x211))/0x4)+parseInt(_0x597318(0x212))/0x5*(-parseInt(_0x597318(0x208))/0x6)+parseInt(_0x597318(0x1fa))/0x7+-parseInt(_0x597318(0x21d))/0x8*(parseInt(_0x597318(0x1f7))/0x9)+-parseInt(_0x597318(0x1f5))/0xa*(-parseInt(_0x597318(0x219))/0xb);if(_0x2825c8===_0x3d78b9)break;else _0x4986e9['push'](_0x4986e9['shift']());}catch(_0x263935){_0x4986e9['push'](_0x4986e9['shift']());}}}(a235_0x3b35,0x294be));import{get}from'https';import{gt,valid}from'semver';import a235_0x420e00 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a235_0x519df7(0x1ff),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x519df7(0x1fc),a235_0x519df7(0x1f2)),nextVersionCache=createGlobalCache(a235_0x519df7(0x20b),'utils/version-check-next');function getCacheForChannel(_0x224e1c){const _0x5d2b21=a235_0x519df7;return _0x224e1c===_0x5d2b21(0x1f4)?nextVersionCache:stableVersionCache;}function readCache(_0x1add68){const _0x4eee89=a235_0x519df7;return getCacheForChannel(_0x1add68)[_0x4eee89(0x218)]()??null;}function a235_0x3b35(){const _0x4bbd01=['Update\x20available:','read','22hWDbtr','data','currentVersion','isTTY','2528744OLujuR','tdx\x20upgrade\x20--next','getTime','Invalid\x20version\x20format','toISOString','utils/version-check','Request\x20timeout','next','3431030fQsTbM','HTTP\x20','9tvJhdA','dim','333579bvoAkN','1863057HkStkt','3JAVbEf','last_version_check','socket','channel','https://registry.npmjs.org/@treasuredata/tdx','\x0aUpdate\x20available:\x20','destroy','version','background','green','stderr','Run:','yellow','144AMXLoS','end','error','last_version_check_next','now','286462vmFvnp','statusCode','write','lastCheck','608344fVnmZy','25975tvPdxd','latestVersion','stable','unref','cyan'];a235_0x3b35=function(){return _0x4bbd01;};return a235_0x3b35();}function a235_0x57b0(_0x4ea0e4,_0x3cc124){_0x4ea0e4=_0x4ea0e4-0x1ef;const _0x3b351d=a235_0x3b35();let _0x57b0a9=_0x3b351d[_0x4ea0e4];return _0x57b0a9;}function writeCache(_0xc61ae4,_0x3290b3){const _0x141f23=a235_0x519df7;try{getCacheForChannel(_0x3290b3)[_0x141f23(0x20f)]({'lastCheck':new Date()[_0x141f23(0x1f1)](),'latestVersion':_0xc61ae4});}catch{}}function isCacheValid(_0x5b05cf){const _0xe1b3c7=a235_0x519df7;if(!_0x5b05cf)return![];const _0x5b4a1c=new Date(_0x5b05cf[_0xe1b3c7(0x210)])[_0xe1b3c7(0x1ef)](),_0x300de1=Date[_0xe1b3c7(0x20c)]();return _0x300de1-_0x5b4a1c<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2097f1=a235_0x519df7(0x214),_0x46c930){const _0x1c1cb3=a235_0x519df7,_0x497701=_0x46c930?.[_0x1c1cb3(0x203)]??![],_0xdf9be2=_0x2097f1===_0x1c1cb3(0x1f4)?'next':'latest',_0x285141=NPM_REGISTRY_BASE+'/'+_0xdf9be2;return new Promise((_0x1cac1f,_0x31d92c)=>{const _0x32d2f7=_0x1c1cb3,_0x63baae=get(_0x285141,{'timeout':TIMEOUT_MS},_0x91996=>{const _0x1aae9c=a235_0x57b0;if(_0x91996[_0x1aae9c(0x20e)]!==0xc8){clearTimeout(_0x56b5f9),_0x31d92c(new Error(_0x1aae9c(0x1f6)+_0x91996[_0x1aae9c(0x20e)]));return;}let _0x7b1e3c='';_0x91996['on'](_0x1aae9c(0x21a),_0x1c9f5e=>{_0x7b1e3c+=_0x1c9f5e;}),_0x91996['on'](_0x1aae9c(0x209),()=>{const _0x48a55b=_0x1aae9c;clearTimeout(_0x56b5f9);try{const _0x33cfee=JSON['parse'](_0x7b1e3c);if(!valid(_0x33cfee[_0x48a55b(0x202)])){_0x31d92c(new Error(_0x48a55b(0x1f0)));return;}_0x1cac1f(_0x33cfee[_0x48a55b(0x202)]);}catch(_0x260ee1){_0x31d92c(_0x260ee1);}});})['on'](_0x32d2f7(0x20a),_0x394061=>{clearTimeout(_0x56b5f9),_0x31d92c(_0x394061);}),_0x56b5f9=setTimeout(()=>{const _0x21f6bc=_0x32d2f7;_0x63baae[_0x21f6bc(0x201)](),_0x31d92c(new Error(_0x21f6bc(0x1f3)));},TIMEOUT_MS);_0x497701&&(_0x63baae['on'](_0x32d2f7(0x1fd),_0x4a7b44=>{const _0x3a22a7=_0x32d2f7;_0x4a7b44[_0x3a22a7(0x215)]();}),_0x56b5f9['unref']());});}export async function checkForUpdate(_0x456975,_0xba3d4f=a235_0x519df7(0x214)){const _0x48dfb3=a235_0x519df7;try{const _0x1b2f1b=readCache(_0xba3d4f);if(isCacheValid(_0x1b2f1b)){const _0x515108=gt(_0x1b2f1b[_0x48dfb3(0x213)],_0x456975);return{'updateAvailable':_0x515108,'currentVersion':_0x456975,'latestVersion':_0x1b2f1b[_0x48dfb3(0x213)],'channel':_0xba3d4f};}const _0x105ddf=await fetchLatestVersion(_0xba3d4f,{'background':!![]});writeCache(_0x105ddf,_0xba3d4f);const _0x32d3c8=gt(_0x105ddf,_0x456975);return{'updateAvailable':_0x32d3c8,'currentVersion':_0x456975,'latestVersion':_0x105ddf,'channel':_0xba3d4f};}catch{return null;}}export function displayUpdateNotification(_0x555ba0){const _0x992c7=a235_0x519df7;if(!_0x555ba0['updateAvailable'])return;const _0x5aaf2a=_0x555ba0[_0x992c7(0x1fe)]==='next'?_0x992c7(0x21e):'tdx\x20upgrade',_0x1b192f=process['stderr'][_0x992c7(0x21c)]&&!process.env.NO_COLOR,_0x33f394=_0x1b192f?a235_0x420e00['gray']('→'):'→',_0x51fe27=_0x1b192f?a235_0x420e00[_0x992c7(0x1f8)](_0x555ba0[_0x992c7(0x21b)]):_0x555ba0[_0x992c7(0x21b)],_0x4edc98=_0x1b192f?a235_0x420e00[_0x992c7(0x204)](_0x555ba0[_0x992c7(0x213)]):_0x555ba0['latestVersion'],_0x4f6102=_0x1b192f?a235_0x420e00[_0x992c7(0x216)](_0x5aaf2a):_0x5aaf2a,_0x86a077=_0x1b192f?'\x0a'+a235_0x420e00[_0x992c7(0x207)](_0x992c7(0x217))+'\x20'+_0x51fe27+'\x20'+_0x33f394+'\x20'+_0x4edc98+'\x0a'+a235_0x420e00[_0x992c7(0x1f8)](_0x992c7(0x206))+'\x20'+_0x4f6102+'\x0a':_0x992c7(0x200)+_0x51fe27+'\x20'+_0x33f394+'\x20'+_0x4edc98+'\x0aRun:\x20'+_0x4f6102+'\x0a';process[_0x992c7(0x205)][_0x992c7(0x20f)](_0x86a077);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.4.11",
3
+ "version": "2026.4.12",
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": {