@treasuredata/tdx 2026.3.31 → 2026.3.33

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 (256) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-login-command.js +1 -1
  15. package/dist/commands/cas-command.js +1 -1
  16. package/dist/commands/cas-segment-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/databases.js +1 -1
  24. package/dist/commands/delivery-command.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-campaign-pull-command.js +1 -1
  27. package/dist/commands/engage-campaign-push-command.js +1 -1
  28. package/dist/commands/engage-campaign-validate-command.js +1 -1
  29. package/dist/commands/engage-command.js +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.d.ts +34 -0
  61. package/dist/commands/work-command.d.ts.map +1 -0
  62. package/dist/commands/work-command.js +1 -0
  63. package/dist/commands/work-command.js.map +1 -0
  64. package/dist/commands/workflow-command.js +1 -1
  65. package/dist/core/auth.js +1 -1
  66. package/dist/core/command-output.js +1 -1
  67. package/dist/core/config.js +1 -1
  68. package/dist/core/connection-cache.js +1 -1
  69. package/dist/core/constants.js +1 -1
  70. package/dist/core/credential-cache.js +1 -1
  71. package/dist/core/global-context.js +1 -1
  72. package/dist/core/keychain.js +1 -1
  73. package/dist/core/oauth-keychain.js +1 -1
  74. package/dist/core/oauth.js +1 -1
  75. package/dist/core/profile.js +1 -1
  76. package/dist/core/project-config.d.ts +2 -0
  77. package/dist/core/project-config.d.ts.map +1 -1
  78. package/dist/core/project-config.js +1 -1
  79. package/dist/core/project-config.js.map +1 -1
  80. package/dist/core/session.js +1 -1
  81. package/dist/core/user-cache.js +1 -1
  82. package/dist/core/version.js +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/mcp/server.js +1 -1
  85. package/dist/mcp/tools/index.js +1 -1
  86. package/dist/mcp/tools/tdx-run.js +1 -1
  87. package/dist/mcp/tools/tdx-search.js +1 -1
  88. package/dist/mcp/utils.js +1 -1
  89. package/dist/proxy/claude-usage-tracker.js +1 -1
  90. package/dist/proxy/passthrough-server.js +1 -1
  91. package/dist/proxy/sse-usage-parser.js +1 -1
  92. package/dist/sdk/agent/agent-config.js +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.js +1 -1
  95. package/dist/sdk/agent/test/evaluator.js +1 -1
  96. package/dist/sdk/agent/test/executor.js +1 -1
  97. package/dist/sdk/agent/test/index.js +1 -1
  98. package/dist/sdk/agent/test/output.js +1 -1
  99. package/dist/sdk/agent/test/parser.js +1 -1
  100. package/dist/sdk/agent/tool-target-registry.js +1 -1
  101. package/dist/sdk/api.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.js +1 -1
  103. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  104. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  105. package/dist/sdk/cas/index.js +1 -1
  106. package/dist/sdk/cas/pull-workflow.js +1 -1
  107. package/dist/sdk/cas/push-workflow.js +1 -1
  108. package/dist/sdk/client/cdp-api-client.js +1 -1
  109. package/dist/sdk/client/delivery-api-client.js +1 -1
  110. package/dist/sdk/client/endpoints.js +1 -1
  111. package/dist/sdk/client/engage-api-client.js +1 -1
  112. package/dist/sdk/client/http-client.js +1 -1
  113. package/dist/sdk/client/llm-api-client.js +1 -1
  114. package/dist/sdk/client/oauth-refresh.js +1 -1
  115. package/dist/sdk/client/rate-limiter.js +1 -1
  116. package/dist/sdk/client/td-api-client.js +1 -1
  117. package/dist/sdk/client/trino-api-client.js +1 -1
  118. package/dist/sdk/client/workflow-client.js +1 -1
  119. package/dist/sdk/connection-validator.js +1 -1
  120. package/dist/sdk/connection.js +1 -1
  121. package/dist/sdk/delivery.js +1 -1
  122. package/dist/sdk/engage/campaign-pull.js +1 -1
  123. package/dist/sdk/engage/campaign-push.js +1 -1
  124. package/dist/sdk/engage/campaign-validator.js +1 -1
  125. package/dist/sdk/engage/campaign-yaml.js +1 -1
  126. package/dist/sdk/engage/template-pull.js +1 -1
  127. package/dist/sdk/engage/template-push.js +1 -1
  128. package/dist/sdk/engage/template-validator.js +1 -1
  129. package/dist/sdk/engage/template-yaml.js +1 -1
  130. package/dist/sdk/engage/types/campaign-def.js +1 -1
  131. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  132. package/dist/sdk/engage/types/template-schema.js +1 -1
  133. package/dist/sdk/engage.js +1 -1
  134. package/dist/sdk/errors.js +1 -1
  135. package/dist/sdk/index.d.ts +1 -0
  136. package/dist/sdk/index.d.ts.map +1 -1
  137. package/dist/sdk/index.js +1 -1
  138. package/dist/sdk/index.js.map +1 -1
  139. package/dist/sdk/io/index.js +1 -1
  140. package/dist/sdk/io/node-filesystem.js +1 -1
  141. package/dist/sdk/job.js +1 -1
  142. package/dist/sdk/journey.js +1 -1
  143. package/dist/sdk/llm/chat-cache.js +1 -1
  144. package/dist/sdk/llm/index.js +1 -1
  145. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  146. package/dist/sdk/llm/model-factors.js +1 -1
  147. package/dist/sdk/personalization.js +1 -1
  148. package/dist/sdk/policy.js +1 -1
  149. package/dist/sdk/query/index.js +1 -1
  150. package/dist/sdk/query/sql-parser.js +1 -1
  151. package/dist/sdk/realtime.js +1 -1
  152. package/dist/sdk/schedule.js +1 -1
  153. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/fields-display.js +1 -1
  155. package/dist/sdk/segment/file-discovery.js +1 -1
  156. package/dist/sdk/segment/journey-utils.js +1 -1
  157. package/dist/sdk/segment/journey-validator.js +1 -1
  158. package/dist/sdk/segment/journey-yaml.js +1 -1
  159. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  160. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  161. package/dist/sdk/segment/pull-workflow.js +1 -1
  162. package/dist/sdk/segment/push-recovery.js +1 -1
  163. package/dist/sdk/segment/push-workflow.js +1 -1
  164. package/dist/sdk/segment/resolution-context.js +1 -1
  165. package/dist/sdk/segment/segment-path-parser.js +1 -1
  166. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  167. package/dist/sdk/segment/segment-validator.js +1 -1
  168. package/dist/sdk/segment/target-resolution.js +1 -1
  169. package/dist/sdk/segment/tdx-config.js +1 -1
  170. package/dist/sdk/segment/types/activation-schema.js +1 -1
  171. package/dist/sdk/segment/types/journey-def.js +1 -1
  172. package/dist/sdk/segment/types/journey-schema.js +1 -1
  173. package/dist/sdk/segment/types/segment-def.js +1 -1
  174. package/dist/sdk/segment/types/segment-schema.js +1 -1
  175. package/dist/sdk/segment/validate-files.js +1 -1
  176. package/dist/sdk/segment/yaml-validator.js +1 -1
  177. package/dist/sdk/segment.js +1 -1
  178. package/dist/sdk/types/index.d.ts +2 -0
  179. package/dist/sdk/types/index.d.ts.map +1 -1
  180. package/dist/sdk/types/index.js +1 -1
  181. package/dist/sdk/types/index.js.map +1 -1
  182. package/dist/sdk/types/progress.js +1 -1
  183. package/dist/sdk/types/workspace.d.ts +169 -0
  184. package/dist/sdk/types/workspace.d.ts.map +1 -0
  185. package/dist/sdk/types/workspace.js +1 -0
  186. package/dist/sdk/types/workspace.js.map +1 -0
  187. package/dist/sdk/user.js +1 -1
  188. package/dist/sdk/util/format-detector.js +1 -1
  189. package/dist/sdk/util/formatters.js +1 -1
  190. package/dist/sdk/util/index.js +1 -1
  191. package/dist/sdk/util/paginate.js +1 -1
  192. package/dist/sdk/util/tree-formatter.js +1 -1
  193. package/dist/sdk/workflow/archive-validation.js +1 -1
  194. package/dist/sdk/workflow/clone-workflow.js +1 -1
  195. package/dist/sdk/workflow/index.js +1 -1
  196. package/dist/sdk/workflow/pull-workflow.js +1 -1
  197. package/dist/sdk/workflow/push-workflow.js +1 -1
  198. package/dist/sdk/workflow/tdx-config.js +1 -1
  199. package/dist/sdk/workflow/workflow-utils.js +1 -1
  200. package/dist/sdk/workspace/frontmatter.d.ts +28 -0
  201. package/dist/sdk/workspace/frontmatter.d.ts.map +1 -0
  202. package/dist/sdk/workspace/frontmatter.js +1 -0
  203. package/dist/sdk/workspace/frontmatter.js.map +1 -0
  204. package/dist/sdk/workspace/git.d.ts +70 -0
  205. package/dist/sdk/workspace/git.d.ts.map +1 -0
  206. package/dist/sdk/workspace/git.js +1 -0
  207. package/dist/sdk/workspace/git.js.map +1 -0
  208. package/dist/sdk/workspace/index.d.ts +166 -0
  209. package/dist/sdk/workspace/index.d.ts.map +1 -0
  210. package/dist/sdk/workspace/index.js +1 -0
  211. package/dist/sdk/workspace/index.js.map +1 -0
  212. package/dist/sdk/workspace/templates.d.ts +17 -0
  213. package/dist/sdk/workspace/templates.d.ts.map +1 -0
  214. package/dist/sdk/workspace/templates.js +1 -0
  215. package/dist/sdk/workspace/templates.js.map +1 -0
  216. package/dist/sdk/workspace/weekly.d.ts +49 -0
  217. package/dist/sdk/workspace/weekly.d.ts.map +1 -0
  218. package/dist/sdk/workspace/weekly.js +1 -0
  219. package/dist/sdk/workspace/weekly.js.map +1 -0
  220. package/dist/sdk/workspace/wikilinks.d.ts +49 -0
  221. package/dist/sdk/workspace/wikilinks.d.ts.map +1 -0
  222. package/dist/sdk/workspace/wikilinks.js +1 -0
  223. package/dist/sdk/workspace/wikilinks.js.map +1 -0
  224. package/dist/test-utils/command-runner.js +1 -1
  225. package/dist/test-utils/factories.js +1 -1
  226. package/dist/test-utils/fixtures.js +1 -1
  227. package/dist/test-utils/http-mock.js +1 -1
  228. package/dist/test-utils/index.js +1 -1
  229. package/dist/utils/async.js +1 -1
  230. package/dist/utils/colors.js +1 -1
  231. package/dist/utils/diff.js +1 -1
  232. package/dist/utils/file-permissions.js +1 -1
  233. package/dist/utils/file-reader.js +1 -1
  234. package/dist/utils/github-releases.js +1 -1
  235. package/dist/utils/global-cache.js +1 -1
  236. package/dist/utils/json-loader.js +1 -1
  237. package/dist/utils/local-cache.js +1 -1
  238. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  239. package/dist/utils/logger/formatters/index.js +1 -1
  240. package/dist/utils/logger/handlers/console-handler.js +1 -1
  241. package/dist/utils/logger/handlers/file-handler.js +1 -1
  242. package/dist/utils/logger/handlers/index.js +1 -1
  243. package/dist/utils/logger/handlers/null-handler.js +1 -1
  244. package/dist/utils/logger/index.js +1 -1
  245. package/dist/utils/logger/logger.js +1 -1
  246. package/dist/utils/logger/types.js +1 -1
  247. package/dist/utils/option-validation.js +1 -1
  248. package/dist/utils/process.js +1 -1
  249. package/dist/utils/prompt.js +1 -1
  250. package/dist/utils/spinner.js +1 -1
  251. package/dist/utils/sse-parser.js +1 -1
  252. package/dist/utils/string-utils.js +1 -1
  253. package/dist/utils/table-ref-parser.js +1 -1
  254. package/dist/utils/tdx-logger.js +1 -1
  255. package/dist/utils/version-check.js +1 -1
  256. package/package.json +1 -1
@@ -1 +1 @@
1
- const a226_0x15f078=a226_0x38ce;function a226_0x38ce(_0x1b0e93,_0x2d4a45){_0x1b0e93=_0x1b0e93-0xdb;const _0x3365a6=a226_0x3365();let _0x38ceb3=_0x3365a6[_0x1b0e93];return _0x38ceb3;}(function(_0x3553b9,_0x38512b){const _0x5c3a8d=a226_0x38ce,_0x4e25d7=_0x3553b9();while(!![]){try{const _0x1b9d46=-parseInt(_0x5c3a8d(0xdb))/0x1*(parseInt(_0x5c3a8d(0xfb))/0x2)+parseInt(_0x5c3a8d(0x105))/0x3*(-parseInt(_0x5c3a8d(0xe8))/0x4)+-parseInt(_0x5c3a8d(0xed))/0x5+-parseInt(_0x5c3a8d(0xde))/0x6*(-parseInt(_0x5c3a8d(0x107))/0x7)+-parseInt(_0x5c3a8d(0xec))/0x8*(parseInt(_0x5c3a8d(0xfe))/0x9)+-parseInt(_0x5c3a8d(0xe2))/0xa+parseInt(_0x5c3a8d(0xe1))/0xb;if(_0x1b9d46===_0x38512b)break;else _0x4e25d7['push'](_0x4e25d7['shift']());}catch(_0x320872){_0x4e25d7['push'](_0x4e25d7['shift']());}}}(a226_0x3365,0x3543f));import{get}from'https';import{gt,valid}from'semver';function a226_0x3365(){const _0x377d0f=['\x0aUpdate\x20available:\x20','version','data','Update\x20available:','error','lastCheck','https://registry.npmjs.org/@treasuredata/tdx','gray','dim','destroy','last_version_check','2GDzkBe','parse','getTime','1705824cOgTPW','latestVersion','Invalid\x20version\x20format','yellow','unref','statusCode','channel','51gcddVr','currentVersion','35duwNCQ','125399jSUrsb','next','green','156780EhHaBF','updateAvailable','utils/version-check-next','12084919qJsLSC','578310BrwDQr','last_version_check_next','tdx\x20upgrade\x20--next','latest','tdx\x20upgrade','\x0aRun:\x20','62796NGBHUX','read','utils/version-check','stderr','8zQXJNZ','1857275DXWqZC','Request\x20timeout','stable'];a226_0x3365=function(){return _0x377d0f;};return a226_0x3365();}import a226_0x138fc9 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a226_0x15f078(0xf6),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a226_0x15f078(0xfa),a226_0x15f078(0xea)),nextVersionCache=createGlobalCache(a226_0x15f078(0xe3),a226_0x15f078(0xe0));function getCacheForChannel(_0x40b9dc){const _0x292c91=a226_0x15f078;return _0x40b9dc===_0x292c91(0xdc)?nextVersionCache:stableVersionCache;}function readCache(_0xf0077){const _0x1c39f8=a226_0x15f078;return getCacheForChannel(_0xf0077)[_0x1c39f8(0xe9)]()??null;}function writeCache(_0x1ad369,_0x351d76){try{getCacheForChannel(_0x351d76)['write']({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x1ad369});}catch{}}function isCacheValid(_0x194d3d){const _0x11a844=a226_0x15f078;if(!_0x194d3d)return![];const _0x150f74=new Date(_0x194d3d[_0x11a844(0xf5)])[_0x11a844(0xfd)](),_0x3b2d72=Date['now']();return _0x3b2d72-_0x150f74<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x1be965=a226_0x15f078(0xef)){const _0x4f7afb=a226_0x15f078,_0x1d0aa7=_0x1be965===_0x4f7afb(0xdc)?_0x4f7afb(0xdc):_0x4f7afb(0xe5),_0x1c8b63=NPM_REGISTRY_BASE+'/'+_0x1d0aa7;return new Promise((_0x4c73a8,_0x12d79b)=>{const _0x3cbceb=_0x4f7afb,_0x3e1717=get(_0x1c8b63,{'timeout':TIMEOUT_MS},_0x5077ff=>{const _0x535989=a226_0x38ce;if(_0x5077ff[_0x535989(0x103)]!==0xc8){clearTimeout(_0x535f96),_0x12d79b(new Error('HTTP\x20'+_0x5077ff['statusCode']));return;}let _0xf7c19f='';_0x5077ff['on'](_0x535989(0xf2),_0xc9caa=>{_0xf7c19f+=_0xc9caa;}),_0x5077ff['on']('end',()=>{const _0x3699f4=_0x535989;clearTimeout(_0x535f96);try{const _0x534e31=JSON[_0x3699f4(0xfc)](_0xf7c19f);if(!valid(_0x534e31[_0x3699f4(0xf1)])){_0x12d79b(new Error(_0x3699f4(0x100)));return;}_0x4c73a8(_0x534e31[_0x3699f4(0xf1)]);}catch(_0x3c0db9){_0x12d79b(_0x3c0db9);}});})['on'](_0x3cbceb(0xf4),_0x48cd19=>{clearTimeout(_0x535f96),_0x12d79b(_0x48cd19);});_0x3e1717['on']('socket',_0x5680c0=>{const _0x556336=_0x3cbceb;_0x5680c0[_0x556336(0x102)]();});const _0x535f96=setTimeout(()=>{const _0x2d957b=_0x3cbceb;_0x3e1717[_0x2d957b(0xf9)](),_0x12d79b(new Error(_0x2d957b(0xee)));},TIMEOUT_MS);_0x535f96['unref']();});}export async function checkForUpdate(_0x3170a5,_0x569f9c=a226_0x15f078(0xef)){const _0x289d50=a226_0x15f078;try{const _0x5f04ad=readCache(_0x569f9c);if(isCacheValid(_0x5f04ad)){const _0x2b5c7e=gt(_0x5f04ad[_0x289d50(0xff)],_0x3170a5);return{'updateAvailable':_0x2b5c7e,'currentVersion':_0x3170a5,'latestVersion':_0x5f04ad[_0x289d50(0xff)],'channel':_0x569f9c};}const _0x2dde39=await fetchLatestVersion(_0x569f9c);writeCache(_0x2dde39,_0x569f9c);const _0x22c4bf=gt(_0x2dde39,_0x3170a5);return{'updateAvailable':_0x22c4bf,'currentVersion':_0x3170a5,'latestVersion':_0x2dde39,'channel':_0x569f9c};}catch{return null;}}export function displayUpdateNotification(_0x3d77d1){const _0x89d17d=a226_0x15f078;if(!_0x3d77d1[_0x89d17d(0xdf)])return;const _0x28aab5=_0x3d77d1[_0x89d17d(0x104)]===_0x89d17d(0xdc)?_0x89d17d(0xe4):_0x89d17d(0xe6),_0x48579b=process[_0x89d17d(0xeb)]['isTTY']&&!process.env.NO_COLOR,_0x2f8443=_0x48579b?a226_0x138fc9[_0x89d17d(0xf7)]('→'):'→',_0x321693=_0x48579b?a226_0x138fc9[_0x89d17d(0xf8)](_0x3d77d1[_0x89d17d(0x106)]):_0x3d77d1[_0x89d17d(0x106)],_0x500263=_0x48579b?a226_0x138fc9[_0x89d17d(0xdd)](_0x3d77d1[_0x89d17d(0xff)]):_0x3d77d1[_0x89d17d(0xff)],_0x565c0a=_0x48579b?a226_0x138fc9['cyan'](_0x28aab5):_0x28aab5,_0x2b340a=_0x48579b?'\x0a'+a226_0x138fc9[_0x89d17d(0x101)](_0x89d17d(0xf3))+'\x20'+_0x321693+'\x20'+_0x2f8443+'\x20'+_0x500263+'\x0a'+a226_0x138fc9[_0x89d17d(0xf8)]('Run:')+'\x20'+_0x565c0a+'\x0a':_0x89d17d(0xf0)+_0x321693+'\x20'+_0x2f8443+'\x20'+_0x500263+_0x89d17d(0xe7)+_0x565c0a+'\x0a';process[_0x89d17d(0xeb)]['write'](_0x2b340a);}
1
+ const a234_0x1ae60d=a234_0x34d7;(function(_0x491ade,_0x3e5b4b){const _0x2f7ea6=a234_0x34d7,_0x3be25e=_0x491ade();while(!![]){try{const _0xd5b6be=parseInt(_0x2f7ea6(0x1f9))/0x1+parseInt(_0x2f7ea6(0x1f4))/0x2+parseInt(_0x2f7ea6(0x210))/0x3*(-parseInt(_0x2f7ea6(0x203))/0x4)+-parseInt(_0x2f7ea6(0x220))/0x5*(-parseInt(_0x2f7ea6(0x1fb))/0x6)+parseInt(_0x2f7ea6(0x1f1))/0x7+-parseInt(_0x2f7ea6(0x221))/0x8+-parseInt(_0x2f7ea6(0x1fc))/0x9*(parseInt(_0x2f7ea6(0x1f2))/0xa);if(_0xd5b6be===_0x3e5b4b)break;else _0x3be25e['push'](_0x3be25e['shift']());}catch(_0x300597){_0x3be25e['push'](_0x3be25e['shift']());}}}(a234_0x10e7,0x87237));import{get}from'https';function a234_0x34d7(_0x4250bf,_0x44e944){_0x4250bf=_0x4250bf-0x1f1;const _0x10e784=a234_0x10e7();let _0x34d783=_0x10e784[_0x4250bf];return _0x34d783;}function a234_0x10e7(){const _0x5096d1=['tdx\x20upgrade\x20--next','latestVersion','96OwifRE','parse','getTime','last_version_check','socket','data','HTTP\x20','Invalid\x20version\x20format','stable','lastCheck','dim','cyan','updateAvailable','55164LjOzWu','utils/version-check-next','latest','error','destroy','stderr','toISOString','https://registry.npmjs.org/@treasuredata/tdx','next','read','version','green','isTTY','statusCode','unref','write','5qdSTka','4442632BUiLhn','3439611WbwbUz','4210wVqNXa','\x0aRun:\x20','1499642bHKFkP','Update\x20available:','end','last_version_check_next','channel','463452JduPmO','utils/version-check','182046ASrWkf','3951KOxbzj','tdx\x20upgrade','yellow','currentVersion','now'];a234_0x10e7=function(){return _0x5096d1;};return a234_0x10e7();}import{gt,valid}from'semver';import a234_0x246509 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x1ae60d(0x217),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a234_0x1ae60d(0x206),a234_0x1ae60d(0x1fa)),nextVersionCache=createGlobalCache(a234_0x1ae60d(0x1f7),a234_0x1ae60d(0x211));function getCacheForChannel(_0x3e7d03){return _0x3e7d03==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x1cdbcd){const _0x186b41=a234_0x1ae60d;return getCacheForChannel(_0x1cdbcd)[_0x186b41(0x219)]()??null;}function writeCache(_0xa91382,_0x38cca8){const _0x3d9bf3=a234_0x1ae60d;try{getCacheForChannel(_0x38cca8)[_0x3d9bf3(0x21f)]({'lastCheck':new Date()[_0x3d9bf3(0x216)](),'latestVersion':_0xa91382});}catch{}}function isCacheValid(_0x4c220b){const _0x1970e0=a234_0x1ae60d;if(!_0x4c220b)return![];const _0x1c2e0c=new Date(_0x4c220b[_0x1970e0(0x20c)])[_0x1970e0(0x205)](),_0x38cf6a=Date[_0x1970e0(0x200)]();return _0x38cf6a-_0x1c2e0c<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x2c8dc0=a234_0x1ae60d(0x20b)){const _0x5c269a=a234_0x1ae60d,_0x2b5d9c=_0x2c8dc0===_0x5c269a(0x218)?_0x5c269a(0x218):_0x5c269a(0x212),_0x7bae77=NPM_REGISTRY_BASE+'/'+_0x2b5d9c;return new Promise((_0x12a112,_0x1d2dfa)=>{const _0x497603=_0x5c269a,_0x417cab=get(_0x7bae77,{'timeout':TIMEOUT_MS},_0x11ba25=>{const _0xbb8171=a234_0x34d7;if(_0x11ba25['statusCode']!==0xc8){clearTimeout(_0x116461),_0x1d2dfa(new Error(_0xbb8171(0x209)+_0x11ba25[_0xbb8171(0x21d)]));return;}let _0x1d5491='';_0x11ba25['on'](_0xbb8171(0x208),_0x96966c=>{_0x1d5491+=_0x96966c;}),_0x11ba25['on'](_0xbb8171(0x1f6),()=>{const _0x180e04=_0xbb8171;clearTimeout(_0x116461);try{const _0xa1971f=JSON[_0x180e04(0x204)](_0x1d5491);if(!valid(_0xa1971f[_0x180e04(0x21a)])){_0x1d2dfa(new Error(_0x180e04(0x20a)));return;}_0x12a112(_0xa1971f['version']);}catch(_0x11986b){_0x1d2dfa(_0x11986b);}});})['on'](_0x497603(0x213),_0x1ed032=>{clearTimeout(_0x116461),_0x1d2dfa(_0x1ed032);});_0x417cab['on'](_0x497603(0x207),_0x186296=>{const _0x1b2785=_0x497603;_0x186296[_0x1b2785(0x21e)]();});const _0x116461=setTimeout(()=>{const _0x1f8b6d=_0x497603;_0x417cab[_0x1f8b6d(0x214)](),_0x1d2dfa(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x116461[_0x497603(0x21e)]();});}export async function checkForUpdate(_0x1d4c78,_0x166fed=a234_0x1ae60d(0x20b)){const _0x5cdb48=a234_0x1ae60d;try{const _0x3b2b3c=readCache(_0x166fed);if(isCacheValid(_0x3b2b3c)){const _0x50d752=gt(_0x3b2b3c['latestVersion'],_0x1d4c78);return{'updateAvailable':_0x50d752,'currentVersion':_0x1d4c78,'latestVersion':_0x3b2b3c[_0x5cdb48(0x202)],'channel':_0x166fed};}const _0x3d3afa=await fetchLatestVersion(_0x166fed);writeCache(_0x3d3afa,_0x166fed);const _0x47b451=gt(_0x3d3afa,_0x1d4c78);return{'updateAvailable':_0x47b451,'currentVersion':_0x1d4c78,'latestVersion':_0x3d3afa,'channel':_0x166fed};}catch{return null;}}export function displayUpdateNotification(_0x1088a5){const _0x3867ee=a234_0x1ae60d;if(!_0x1088a5[_0x3867ee(0x20f)])return;const _0x105e92=_0x1088a5[_0x3867ee(0x1f8)]==='next'?_0x3867ee(0x201):_0x3867ee(0x1fd),_0x1e4be7=process[_0x3867ee(0x215)][_0x3867ee(0x21c)]&&!process.env.NO_COLOR,_0x579e9c=_0x1e4be7?a234_0x246509['gray']('→'):'→',_0x6276e7=_0x1e4be7?a234_0x246509[_0x3867ee(0x20d)](_0x1088a5['currentVersion']):_0x1088a5[_0x3867ee(0x1ff)],_0x47829a=_0x1e4be7?a234_0x246509[_0x3867ee(0x21b)](_0x1088a5[_0x3867ee(0x202)]):_0x1088a5['latestVersion'],_0x52ad4d=_0x1e4be7?a234_0x246509[_0x3867ee(0x20e)](_0x105e92):_0x105e92,_0x2a72ce=_0x1e4be7?'\x0a'+a234_0x246509[_0x3867ee(0x1fe)](_0x3867ee(0x1f5))+'\x20'+_0x6276e7+'\x20'+_0x579e9c+'\x20'+_0x47829a+'\x0a'+a234_0x246509['dim']('Run:')+'\x20'+_0x52ad4d+'\x0a':'\x0aUpdate\x20available:\x20'+_0x6276e7+'\x20'+_0x579e9c+'\x20'+_0x47829a+_0x3867ee(0x1f3)+_0x52ad4d+'\x0a';process['stderr'][_0x3867ee(0x21f)](_0x2a72ce);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.3.31",
3
+ "version": "2026.3.33",
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": {