@treasuredata/tdx 2026.4.5 → 2026.4.7

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 (231) 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.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.d.ts +3 -0
  168. package/dist/sdk/types/workspace.d.ts.map +1 -1
  169. package/dist/sdk/types/workspace.js +1 -1
  170. package/dist/sdk/types/workspace.js.map +1 -1
  171. package/dist/sdk/user.js +1 -1
  172. package/dist/sdk/util/format-detector.js +1 -1
  173. package/dist/sdk/util/formatters.js +1 -1
  174. package/dist/sdk/util/index.js +1 -1
  175. package/dist/sdk/util/paginate.js +1 -1
  176. package/dist/sdk/util/tree-formatter.js +1 -1
  177. package/dist/sdk/workflow/archive-validation.js +1 -1
  178. package/dist/sdk/workflow/clone-workflow.js +1 -1
  179. package/dist/sdk/workflow/index.js +1 -1
  180. package/dist/sdk/workflow/pull-workflow.js +1 -1
  181. package/dist/sdk/workflow/push-workflow.js +1 -1
  182. package/dist/sdk/workflow/tdx-config.js +1 -1
  183. package/dist/sdk/workflow/workflow-utils.js +1 -1
  184. package/dist/sdk/workspace/access-tracker.d.ts.map +1 -1
  185. package/dist/sdk/workspace/access-tracker.js +1 -1
  186. package/dist/sdk/workspace/access-tracker.js.map +1 -1
  187. package/dist/sdk/workspace/frontmatter.js +1 -1
  188. package/dist/sdk/workspace/git.js +1 -1
  189. package/dist/sdk/workspace/index.d.ts +1 -1
  190. package/dist/sdk/workspace/index.d.ts.map +1 -1
  191. package/dist/sdk/workspace/index.js +1 -1
  192. package/dist/sdk/workspace/index.js.map +1 -1
  193. package/dist/sdk/workspace/templates.js +1 -1
  194. package/dist/sdk/workspace/weekly.js +1 -1
  195. package/dist/sdk/workspace/wikilinks.d.ts +2 -0
  196. package/dist/sdk/workspace/wikilinks.d.ts.map +1 -1
  197. package/dist/sdk/workspace/wikilinks.js +1 -1
  198. package/dist/sdk/workspace/wikilinks.js.map +1 -1
  199. package/dist/test-utils/command-runner.js +1 -1
  200. package/dist/test-utils/factories.js +1 -1
  201. package/dist/test-utils/fixtures.js +1 -1
  202. package/dist/test-utils/http-mock.js +1 -1
  203. package/dist/test-utils/index.js +1 -1
  204. package/dist/utils/async.js +1 -1
  205. package/dist/utils/colors.js +1 -1
  206. package/dist/utils/diff.js +1 -1
  207. package/dist/utils/file-permissions.js +1 -1
  208. package/dist/utils/file-reader.js +1 -1
  209. package/dist/utils/github-releases.js +1 -1
  210. package/dist/utils/global-cache.js +1 -1
  211. package/dist/utils/json-loader.js +1 -1
  212. package/dist/utils/local-cache.js +1 -1
  213. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  214. package/dist/utils/logger/formatters/index.js +1 -1
  215. package/dist/utils/logger/handlers/console-handler.js +1 -1
  216. package/dist/utils/logger/handlers/file-handler.js +1 -1
  217. package/dist/utils/logger/handlers/index.js +1 -1
  218. package/dist/utils/logger/handlers/null-handler.js +1 -1
  219. package/dist/utils/logger/index.js +1 -1
  220. package/dist/utils/logger/logger.js +1 -1
  221. package/dist/utils/logger/types.js +1 -1
  222. package/dist/utils/option-validation.js +1 -1
  223. package/dist/utils/process.js +1 -1
  224. package/dist/utils/prompt.js +1 -1
  225. package/dist/utils/spinner.js +1 -1
  226. package/dist/utils/sse-parser.js +1 -1
  227. package/dist/utils/string-utils.js +1 -1
  228. package/dist/utils/table-ref-parser.js +1 -1
  229. package/dist/utils/tdx-logger.js +1 -1
  230. package/dist/utils/version-check.js +1 -1
  231. package/package.json +1 -1
@@ -1 +1 @@
1
- function a235_0x21d7(_0x234f9d,_0x544410){_0x234f9d=_0x234f9d-0x1cc;const _0x1f617c=a235_0x1f61();let _0x21d744=_0x1f617c[_0x234f9d];return _0x21d744;}const a235_0x537a7f=a235_0x21d7;(function(_0x1fc81c,_0x3f1617){const _0x569932=a235_0x21d7,_0x2d3f9a=_0x1fc81c();while(!![]){try{const _0x529904=-parseInt(_0x569932(0x1ea))/0x1+parseInt(_0x569932(0x1cc))/0x2+parseInt(_0x569932(0x1ec))/0x3*(-parseInt(_0x569932(0x1e1))/0x4)+-parseInt(_0x569932(0x1e9))/0x5*(-parseInt(_0x569932(0x1dd))/0x6)+parseInt(_0x569932(0x1ce))/0x7*(-parseInt(_0x569932(0x1d3))/0x8)+-parseInt(_0x569932(0x1da))/0x9*(-parseInt(_0x569932(0x1f3))/0xa)+parseInt(_0x569932(0x1d0))/0xb*(parseInt(_0x569932(0x1dc))/0xc);if(_0x529904===_0x3f1617)break;else _0x2d3f9a['push'](_0x2d3f9a['shift']());}catch(_0x23e9dd){_0x2d3f9a['push'](_0x2d3f9a['shift']());}}}(a235_0x1f61,0x2fcf2));import{get}from'https';import{gt,valid}from'semver';import a235_0x5f5b2d from'chalk';function a235_0x1f61(){const _0x467362=['socket','unref','\x0aRun:\x20','424mrPCAr','utils/version-check','Invalid\x20version\x20format','stable','Request\x20timeout','last_version_check','yellow','error','15wjbJGZ','155157NCXpgP','gray','4149suXvsE','next','updateAvailable','now','getTime','parse','write','970ntqNVd','version','dim','channel','utils/version-check-next','end','latestVersion','112206gwHQHT','cyan','7aLrKzh','stderr','55PgMPOL','statusCode','HTTP\x20','2372504brHiVm','lastCheck','Update\x20available:','last_version_check_next','toISOString','isTTY','tdx\x20upgrade\x20--next','17163bUhwna','green','1014984HQtnjt','260304jzfUsv'];a235_0x1f61=function(){return _0x467362;};return a235_0x1f61();}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_0x537a7f(0x1e6),a235_0x537a7f(0x1e2)),nextVersionCache=createGlobalCache(a235_0x537a7f(0x1d6),a235_0x537a7f(0x1f7));function getCacheForChannel(_0x30ab3c){return _0x30ab3c==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x4c3575){return getCacheForChannel(_0x4c3575)['read']()??null;}function writeCache(_0x48acdd,_0x20e923){const _0x2a3a01=a235_0x537a7f;try{getCacheForChannel(_0x20e923)[_0x2a3a01(0x1f2)]({'lastCheck':new Date()[_0x2a3a01(0x1d7)](),'latestVersion':_0x48acdd});}catch{}}function isCacheValid(_0xebd655){const _0x1b0dc8=a235_0x537a7f;if(!_0xebd655)return![];const _0x1c2b7f=new Date(_0xebd655[_0x1b0dc8(0x1d4)])[_0x1b0dc8(0x1f0)](),_0x382cfa=Date[_0x1b0dc8(0x1ef)]();return _0x382cfa-_0x1c2b7f<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x3b97d6=a235_0x537a7f(0x1e4)){const _0x1060ad=a235_0x537a7f,_0x1da431=_0x3b97d6===_0x1060ad(0x1ed)?_0x1060ad(0x1ed):'latest',_0x489b77=NPM_REGISTRY_BASE+'/'+_0x1da431;return new Promise((_0x432e53,_0x467602)=>{const _0x2442be=_0x1060ad,_0x35ef55=get(_0x489b77,{'timeout':TIMEOUT_MS},_0x3dba71=>{const _0x1b845a=a235_0x21d7;if(_0x3dba71[_0x1b845a(0x1d1)]!==0xc8){clearTimeout(_0x35c3ff),_0x467602(new Error(_0x1b845a(0x1d2)+_0x3dba71[_0x1b845a(0x1d1)]));return;}let _0x399c34='';_0x3dba71['on']('data',_0x59c037=>{_0x399c34+=_0x59c037;}),_0x3dba71['on'](_0x1b845a(0x1f8),()=>{const _0x307962=_0x1b845a;clearTimeout(_0x35c3ff);try{const _0x43c62f=JSON[_0x307962(0x1f1)](_0x399c34);if(!valid(_0x43c62f[_0x307962(0x1f4)])){_0x467602(new Error(_0x307962(0x1e3)));return;}_0x432e53(_0x43c62f[_0x307962(0x1f4)]);}catch(_0x22ce5a){_0x467602(_0x22ce5a);}});})['on'](_0x2442be(0x1e8),_0x3afe8c=>{clearTimeout(_0x35c3ff),_0x467602(_0x3afe8c);});_0x35ef55['on'](_0x2442be(0x1de),_0xa1ef00=>{const _0x11df1f=_0x2442be;_0xa1ef00[_0x11df1f(0x1df)]();});const _0x35c3ff=setTimeout(()=>{const _0x420df8=_0x2442be;_0x35ef55['destroy'](),_0x467602(new Error(_0x420df8(0x1e5)));},TIMEOUT_MS);_0x35c3ff[_0x2442be(0x1df)]();});}export async function checkForUpdate(_0x41464e,_0x2b7308='stable'){const _0x57680b=a235_0x537a7f;try{const _0x2e6f1b=readCache(_0x2b7308);if(isCacheValid(_0x2e6f1b)){const _0x16e8ff=gt(_0x2e6f1b[_0x57680b(0x1f9)],_0x41464e);return{'updateAvailable':_0x16e8ff,'currentVersion':_0x41464e,'latestVersion':_0x2e6f1b[_0x57680b(0x1f9)],'channel':_0x2b7308};}const _0x4aa83d=await fetchLatestVersion(_0x2b7308);writeCache(_0x4aa83d,_0x2b7308);const _0x3d05ab=gt(_0x4aa83d,_0x41464e);return{'updateAvailable':_0x3d05ab,'currentVersion':_0x41464e,'latestVersion':_0x4aa83d,'channel':_0x2b7308};}catch{return null;}}export function displayUpdateNotification(_0x55e0ba){const _0x206af2=a235_0x537a7f;if(!_0x55e0ba[_0x206af2(0x1ee)])return;const _0x29df5a=_0x55e0ba[_0x206af2(0x1f6)]===_0x206af2(0x1ed)?_0x206af2(0x1d9):'tdx\x20upgrade',_0x443814=process[_0x206af2(0x1cf)][_0x206af2(0x1d8)]&&!process.env.NO_COLOR,_0x1fa2b2=_0x443814?a235_0x5f5b2d[_0x206af2(0x1eb)]('→'):'→',_0x5b26f3=_0x443814?a235_0x5f5b2d['dim'](_0x55e0ba['currentVersion']):_0x55e0ba['currentVersion'],_0x1935a2=_0x443814?a235_0x5f5b2d[_0x206af2(0x1db)](_0x55e0ba[_0x206af2(0x1f9)]):_0x55e0ba[_0x206af2(0x1f9)],_0x8de489=_0x443814?a235_0x5f5b2d[_0x206af2(0x1cd)](_0x29df5a):_0x29df5a,_0x2b7813=_0x443814?'\x0a'+a235_0x5f5b2d[_0x206af2(0x1e7)](_0x206af2(0x1d5))+'\x20'+_0x5b26f3+'\x20'+_0x1fa2b2+'\x20'+_0x1935a2+'\x0a'+a235_0x5f5b2d[_0x206af2(0x1f5)]('Run:')+'\x20'+_0x8de489+'\x0a':'\x0aUpdate\x20available:\x20'+_0x5b26f3+'\x20'+_0x1fa2b2+'\x20'+_0x1935a2+_0x206af2(0x1e0)+_0x8de489+'\x0a';process['stderr'][_0x206af2(0x1f2)](_0x2b7813);}
1
+ const a235_0x251c89=a235_0x47c9;(function(_0x2ab25c,_0x5eb8da){const _0x78d40c=a235_0x47c9,_0xd64ee0=_0x2ab25c();while(!![]){try{const _0x69716e=-parseInt(_0x78d40c(0x18b))/0x1*(-parseInt(_0x78d40c(0x189))/0x2)+parseInt(_0x78d40c(0x194))/0x3+parseInt(_0x78d40c(0x1ac))/0x4*(parseInt(_0x78d40c(0x182))/0x5)+-parseInt(_0x78d40c(0x18f))/0x6*(-parseInt(_0x78d40c(0x190))/0x7)+parseInt(_0x78d40c(0x1a1))/0x8*(-parseInt(_0x78d40c(0x19c))/0x9)+parseInt(_0x78d40c(0x1ae))/0xa+parseInt(_0x78d40c(0x180))/0xb*(-parseInt(_0x78d40c(0x197))/0xc);if(_0x69716e===_0x5eb8da)break;else _0xd64ee0['push'](_0xd64ee0['shift']());}catch(_0x2ed813){_0xd64ee0['push'](_0xd64ee0['shift']());}}}(a235_0x1af3,0x1f296));import{get}from'https';import{gt,valid}from'semver';import a235_0x254730 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a235_0x251c89(0x181),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check',a235_0x251c89(0x185)),nextVersionCache=createGlobalCache('last_version_check_next',a235_0x251c89(0x195));function a235_0x1af3(){const _0x2b6e9d=['stderr','latestVersion','\x0aUpdate\x20available:\x20','Request\x20timeout','end','statusCode','Invalid\x20version\x20format','cyan','read','4CbbBAX','error','747250VFpjbu','2981ggVspP','https://registry.npmjs.org/@treasuredata/tdx','239805vrJvqe','\x0aRun:\x20','parse','utils/version-check','latest','version','isTTY','42824vFzdPa','stable','1aSSrDo','currentVersion','gray','toISOString','54222KWGQZJ','14lDeDky','write','updateAvailable','next','331899vhsOMW','utils/version-check-next','tdx\x20upgrade\x20--next','732jMwTbd','data','HTTP\x20','channel','lastCheck','1157724MCyyJe','destroy','now','yellow','Update\x20available:','8bVRrAT','tdx\x20upgrade'];a235_0x1af3=function(){return _0x2b6e9d;};return a235_0x1af3();}function getCacheForChannel(_0x433653){return _0x433653==='next'?nextVersionCache:stableVersionCache;}function a235_0x47c9(_0x20b015,_0x13f30d){_0x20b015=_0x20b015-0x180;const _0x1af3db=a235_0x1af3();let _0x47c90e=_0x1af3db[_0x20b015];return _0x47c90e;}function readCache(_0x2e269f){const _0x36713b=a235_0x251c89;return getCacheForChannel(_0x2e269f)[_0x36713b(0x1ab)]()??null;}function writeCache(_0x19f64f,_0x519b48){const _0x3138d4=a235_0x251c89;try{getCacheForChannel(_0x519b48)[_0x3138d4(0x191)]({'lastCheck':new Date()[_0x3138d4(0x18e)](),'latestVersion':_0x19f64f});}catch{}}function isCacheValid(_0x2a9444){const _0xd3a766=a235_0x251c89;if(!_0x2a9444)return![];const _0x47de94=new Date(_0x2a9444[_0xd3a766(0x19b)])['getTime'](),_0x5c991a=Date[_0xd3a766(0x19e)]();return _0x5c991a-_0x47de94<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x5e4ba7=a235_0x251c89(0x18a)){const _0x4b159b=a235_0x251c89,_0x364cc2=_0x5e4ba7===_0x4b159b(0x193)?_0x4b159b(0x193):_0x4b159b(0x186),_0x103e3b=NPM_REGISTRY_BASE+'/'+_0x364cc2;return new Promise((_0x1b9c97,_0xd5d189)=>{const _0xc471ad=_0x4b159b,_0x2c9862=get(_0x103e3b,{'timeout':TIMEOUT_MS},_0x5dd6bc=>{const _0x5bf2d4=a235_0x47c9;if(_0x5dd6bc[_0x5bf2d4(0x1a8)]!==0xc8){clearTimeout(_0x3cfee8),_0xd5d189(new Error(_0x5bf2d4(0x199)+_0x5dd6bc[_0x5bf2d4(0x1a8)]));return;}let _0x4ea781='';_0x5dd6bc['on'](_0x5bf2d4(0x198),_0x376bd2=>{_0x4ea781+=_0x376bd2;}),_0x5dd6bc['on'](_0x5bf2d4(0x1a7),()=>{const _0x1ffc4=_0x5bf2d4;clearTimeout(_0x3cfee8);try{const _0x425af0=JSON[_0x1ffc4(0x184)](_0x4ea781);if(!valid(_0x425af0[_0x1ffc4(0x187)])){_0xd5d189(new Error(_0x1ffc4(0x1a9)));return;}_0x1b9c97(_0x425af0[_0x1ffc4(0x187)]);}catch(_0x5a032e){_0xd5d189(_0x5a032e);}});})['on'](_0xc471ad(0x1ad),_0x107db8=>{clearTimeout(_0x3cfee8),_0xd5d189(_0x107db8);});_0x2c9862['on']('socket',_0x4db722=>{_0x4db722['unref']();});const _0x3cfee8=setTimeout(()=>{const _0x37201e=_0xc471ad;_0x2c9862[_0x37201e(0x19d)](),_0xd5d189(new Error(_0x37201e(0x1a6)));},TIMEOUT_MS);_0x3cfee8['unref']();});}export async function checkForUpdate(_0x525a69,_0x5ea647=a235_0x251c89(0x18a)){const _0x3ac3ff=a235_0x251c89;try{const _0x4746c7=readCache(_0x5ea647);if(isCacheValid(_0x4746c7)){const _0x263cae=gt(_0x4746c7[_0x3ac3ff(0x1a4)],_0x525a69);return{'updateAvailable':_0x263cae,'currentVersion':_0x525a69,'latestVersion':_0x4746c7[_0x3ac3ff(0x1a4)],'channel':_0x5ea647};}const _0x5706e2=await fetchLatestVersion(_0x5ea647);writeCache(_0x5706e2,_0x5ea647);const _0x4880f1=gt(_0x5706e2,_0x525a69);return{'updateAvailable':_0x4880f1,'currentVersion':_0x525a69,'latestVersion':_0x5706e2,'channel':_0x5ea647};}catch{return null;}}export function displayUpdateNotification(_0x128f87){const _0x3e61ee=a235_0x251c89;if(!_0x128f87[_0x3e61ee(0x192)])return;const _0x19b872=_0x128f87[_0x3e61ee(0x19a)]==='next'?_0x3e61ee(0x196):_0x3e61ee(0x1a2),_0x1a586c=process['stderr'][_0x3e61ee(0x188)]&&!process.env.NO_COLOR,_0x23be43=_0x1a586c?a235_0x254730[_0x3e61ee(0x18d)]('→'):'→',_0x1e27a6=_0x1a586c?a235_0x254730['dim'](_0x128f87[_0x3e61ee(0x18c)]):_0x128f87[_0x3e61ee(0x18c)],_0xc96391=_0x1a586c?a235_0x254730['green'](_0x128f87[_0x3e61ee(0x1a4)]):_0x128f87[_0x3e61ee(0x1a4)],_0x66044d=_0x1a586c?a235_0x254730[_0x3e61ee(0x1aa)](_0x19b872):_0x19b872,_0x542cbe=_0x1a586c?'\x0a'+a235_0x254730[_0x3e61ee(0x19f)](_0x3e61ee(0x1a0))+'\x20'+_0x1e27a6+'\x20'+_0x23be43+'\x20'+_0xc96391+'\x0a'+a235_0x254730['dim']('Run:')+'\x20'+_0x66044d+'\x0a':_0x3e61ee(0x1a5)+_0x1e27a6+'\x20'+_0x23be43+'\x20'+_0xc96391+_0x3e61ee(0x183)+_0x66044d+'\x0a';process[_0x3e61ee(0x1a3)][_0x3e61ee(0x191)](_0x542cbe);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.4.5",
3
+ "version": "2026.4.7",
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": {