@treasuredata/tdx 2026.6.3 → 2026.6.5

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 (249) 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.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-move-command.d.ts +19 -0
  45. package/dist/commands/segment-move-command.d.ts.map +1 -0
  46. package/dist/commands/segment-move-command.js +1 -0
  47. package/dist/commands/segment-move-command.js.map +1 -0
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-update-command.js +1 -1
  51. package/dist/commands/segment-use-command.js +1 -1
  52. package/dist/commands/segment-validate-command.js +1 -1
  53. package/dist/commands/segments.js +1 -1
  54. package/dist/commands/show.js +1 -1
  55. package/dist/commands/status-command.js +1 -1
  56. package/dist/commands/table-deleted.js +1 -1
  57. package/dist/commands/tables.js +1 -1
  58. package/dist/commands/unset-command.js +1 -1
  59. package/dist/commands/upgrade-command.js +1 -1
  60. package/dist/commands/use-command.js +1 -1
  61. package/dist/commands/user-command.js +1 -1
  62. package/dist/commands/work-command.js +1 -1
  63. package/dist/commands/workflow-command.js +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.d.ts +14 -0
  67. package/dist/core/config.d.ts.map +1 -1
  68. package/dist/core/config.js +1 -1
  69. package/dist/core/config.js.map +1 -1
  70. package/dist/core/connection-cache.js +1 -1
  71. package/dist/core/constants.js +1 -1
  72. package/dist/core/credential-cache.js +1 -1
  73. package/dist/core/global-context.js +1 -1
  74. package/dist/core/keychain.js +1 -1
  75. package/dist/core/oauth-keychain.js +1 -1
  76. package/dist/core/oauth.js +1 -1
  77. package/dist/core/profile.js +1 -1
  78. package/dist/core/project-config.d.ts +1 -0
  79. package/dist/core/project-config.d.ts.map +1 -1
  80. package/dist/core/project-config.js +1 -1
  81. package/dist/core/project-config.js.map +1 -1
  82. package/dist/core/session.js +1 -1
  83. package/dist/core/user-cache.js +1 -1
  84. package/dist/core/version.js +1 -1
  85. package/dist/index.js +1 -1
  86. package/dist/mcp/server.js +1 -1
  87. package/dist/mcp/tools/index.js +1 -1
  88. package/dist/mcp/tools/tdx-run.js +1 -1
  89. package/dist/mcp/tools/tdx-search.d.ts.map +1 -1
  90. package/dist/mcp/tools/tdx-search.js +1 -1
  91. package/dist/mcp/tools/tdx-search.js.map +1 -1
  92. package/dist/mcp/tools/work-create-item.js +1 -1
  93. package/dist/mcp/utils.js +1 -1
  94. package/dist/proxy/claude-usage-tracker.js +1 -1
  95. package/dist/proxy/passthrough-server.js +1 -1
  96. package/dist/proxy/sse-usage-parser.js +1 -1
  97. package/dist/sdk/agent/agent-config.js +1 -1
  98. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  99. package/dist/sdk/agent/agent-yaml.js +1 -1
  100. package/dist/sdk/agent/test/evaluator.js +1 -1
  101. package/dist/sdk/agent/test/executor.js +1 -1
  102. package/dist/sdk/agent/test/index.js +1 -1
  103. package/dist/sdk/agent/test/output.js +1 -1
  104. package/dist/sdk/agent/test/parser.js +1 -1
  105. package/dist/sdk/agent/tool-target-registry.js +1 -1
  106. package/dist/sdk/api.js +1 -1
  107. package/dist/sdk/cas/cas-api-client.js +1 -1
  108. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  109. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  110. package/dist/sdk/cas/index.js +1 -1
  111. package/dist/sdk/cas/pull-workflow.js +1 -1
  112. package/dist/sdk/cas/push-workflow.js +1 -1
  113. package/dist/sdk/client/cdp-api-client.d.ts +18 -0
  114. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  115. package/dist/sdk/client/cdp-api-client.js +1 -1
  116. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  117. package/dist/sdk/client/delivery-api-client.js +1 -1
  118. package/dist/sdk/client/endpoints.js +1 -1
  119. package/dist/sdk/client/engage-api-client.js +1 -1
  120. package/dist/sdk/client/http-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js +1 -1
  122. package/dist/sdk/client/oauth-refresh.js +1 -1
  123. package/dist/sdk/client/rate-limiter.js +1 -1
  124. package/dist/sdk/client/td-api-client.js +1 -1
  125. package/dist/sdk/client/trino-api-client.js +1 -1
  126. package/dist/sdk/client/workflow-client.js +1 -1
  127. package/dist/sdk/connection-validator.js +1 -1
  128. package/dist/sdk/connection.js +1 -1
  129. package/dist/sdk/delivery.js +1 -1
  130. package/dist/sdk/engage/campaign-pull.js +1 -1
  131. package/dist/sdk/engage/campaign-push.js +1 -1
  132. package/dist/sdk/engage/campaign-validator.js +1 -1
  133. package/dist/sdk/engage/campaign-yaml.js +1 -1
  134. package/dist/sdk/engage/template-pull.js +1 -1
  135. package/dist/sdk/engage/template-push.js +1 -1
  136. package/dist/sdk/engage/template-validator.js +1 -1
  137. package/dist/sdk/engage/template-yaml.js +1 -1
  138. package/dist/sdk/engage/types/campaign-def.js +1 -1
  139. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  140. package/dist/sdk/engage/types/template-schema.js +1 -1
  141. package/dist/sdk/engage.js +1 -1
  142. package/dist/sdk/errors.js +1 -1
  143. package/dist/sdk/index.js +1 -1
  144. package/dist/sdk/io/index.js +1 -1
  145. package/dist/sdk/io/node-filesystem.js +1 -1
  146. package/dist/sdk/job.js +1 -1
  147. package/dist/sdk/journey.js +1 -1
  148. package/dist/sdk/llm/chat-cache.js +1 -1
  149. package/dist/sdk/llm/index.js +1 -1
  150. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  151. package/dist/sdk/llm/model-factors.js +1 -1
  152. package/dist/sdk/llm/user-settings.js +1 -1
  153. package/dist/sdk/personalization.js +1 -1
  154. package/dist/sdk/policy.js +1 -1
  155. package/dist/sdk/query/deleted-table-validation.js +1 -1
  156. package/dist/sdk/query/index.js +1 -1
  157. package/dist/sdk/query/sql-parser.js +1 -1
  158. package/dist/sdk/realtime.js +1 -1
  159. package/dist/sdk/schedule.js +1 -1
  160. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  161. package/dist/sdk/segment/fields-display.js +1 -1
  162. package/dist/sdk/segment/file-discovery.js +1 -1
  163. package/dist/sdk/segment/journey-utils.js +1 -1
  164. package/dist/sdk/segment/journey-validator.js +1 -1
  165. package/dist/sdk/segment/journey-yaml.js +1 -1
  166. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  167. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  168. package/dist/sdk/segment/pull-workflow.js +1 -1
  169. package/dist/sdk/segment/push-recovery.js +1 -1
  170. package/dist/sdk/segment/push-workflow.js +1 -1
  171. package/dist/sdk/segment/resolution-context.js +1 -1
  172. package/dist/sdk/segment/segment-path-parser.js +1 -1
  173. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  174. package/dist/sdk/segment/segment-validator.js +1 -1
  175. package/dist/sdk/segment/target-resolution.js +1 -1
  176. package/dist/sdk/segment/tdx-config.js +1 -1
  177. package/dist/sdk/segment/types/activation-schema.js +1 -1
  178. package/dist/sdk/segment/types/journey-def.js +1 -1
  179. package/dist/sdk/segment/types/journey-schema.js +1 -1
  180. package/dist/sdk/segment/types/segment-def.js +1 -1
  181. package/dist/sdk/segment/types/segment-schema.js +1 -1
  182. package/dist/sdk/segment/validate-files.js +1 -1
  183. package/dist/sdk/segment/yaml-validator.js +1 -1
  184. package/dist/sdk/segment.d.ts +28 -1
  185. package/dist/sdk/segment.d.ts.map +1 -1
  186. package/dist/sdk/segment.js +1 -1
  187. package/dist/sdk/segment.js.map +1 -1
  188. package/dist/sdk/types/cdp.d.ts +15 -0
  189. package/dist/sdk/types/cdp.d.ts.map +1 -1
  190. package/dist/sdk/types/index.d.ts +1 -1
  191. package/dist/sdk/types/index.d.ts.map +1 -1
  192. package/dist/sdk/types/index.js +1 -1
  193. package/dist/sdk/types/index.js.map +1 -1
  194. package/dist/sdk/types/progress.js +1 -1
  195. package/dist/sdk/types/workspace.js +1 -1
  196. package/dist/sdk/user.js +1 -1
  197. package/dist/sdk/util/format-detector.js +1 -1
  198. package/dist/sdk/util/formatters.js +1 -1
  199. package/dist/sdk/util/index.js +1 -1
  200. package/dist/sdk/util/paginate.js +1 -1
  201. package/dist/sdk/util/tree-formatter.js +1 -1
  202. package/dist/sdk/workflow/archive-validation.js +1 -1
  203. package/dist/sdk/workflow/clone-workflow.js +1 -1
  204. package/dist/sdk/workflow/index.js +1 -1
  205. package/dist/sdk/workflow/pull-workflow.js +1 -1
  206. package/dist/sdk/workflow/push-workflow.js +1 -1
  207. package/dist/sdk/workflow/task-graph.js +1 -1
  208. package/dist/sdk/workflow/tdx-config.js +1 -1
  209. package/dist/sdk/workflow/workflow-utils.js +1 -1
  210. package/dist/sdk/workspace/access-tracker.js +1 -1
  211. package/dist/sdk/workspace/frontmatter.js +1 -1
  212. package/dist/sdk/workspace/git.js +1 -1
  213. package/dist/sdk/workspace/index.js +1 -1
  214. package/dist/sdk/workspace/templates.js +1 -1
  215. package/dist/sdk/workspace/weekly.js +1 -1
  216. package/dist/sdk/workspace/wikilinks.js +1 -1
  217. package/dist/test-utils/command-runner.js +1 -1
  218. package/dist/test-utils/factories.js +1 -1
  219. package/dist/test-utils/fixtures.js +1 -1
  220. package/dist/test-utils/http-mock.js +1 -1
  221. package/dist/test-utils/index.js +1 -1
  222. package/dist/utils/async.js +1 -1
  223. package/dist/utils/colors.js +1 -1
  224. package/dist/utils/diff.js +1 -1
  225. package/dist/utils/file-permissions.js +1 -1
  226. package/dist/utils/file-reader.js +1 -1
  227. package/dist/utils/github-releases.js +1 -1
  228. package/dist/utils/global-cache.js +1 -1
  229. package/dist/utils/json-loader.js +1 -1
  230. package/dist/utils/local-cache.js +1 -1
  231. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  232. package/dist/utils/logger/formatters/index.js +1 -1
  233. package/dist/utils/logger/handlers/console-handler.js +1 -1
  234. package/dist/utils/logger/handlers/file-handler.js +1 -1
  235. package/dist/utils/logger/handlers/index.js +1 -1
  236. package/dist/utils/logger/handlers/null-handler.js +1 -1
  237. package/dist/utils/logger/index.js +1 -1
  238. package/dist/utils/logger/logger.js +1 -1
  239. package/dist/utils/logger/types.js +1 -1
  240. package/dist/utils/option-validation.js +1 -1
  241. package/dist/utils/process.js +1 -1
  242. package/dist/utils/prompt.js +1 -1
  243. package/dist/utils/spinner.js +1 -1
  244. package/dist/utils/sse-parser.js +1 -1
  245. package/dist/utils/string-utils.js +1 -1
  246. package/dist/utils/table-ref-parser.js +1 -1
  247. package/dist/utils/tdx-logger.js +1 -1
  248. package/dist/utils/version-check.js +1 -1
  249. package/package.json +1 -1
@@ -1 +1 @@
1
- const a239_0x4f1f90=a239_0x1446;(function(_0x3f2c28,_0x36cb98){const _0x9e59ef=a239_0x1446,_0x2e247c=_0x3f2c28();while(!![]){try{const _0x34fbe5=-parseInt(_0x9e59ef(0x13f))/0x1*(-parseInt(_0x9e59ef(0x16b))/0x2)+-parseInt(_0x9e59ef(0x151))/0x3*(-parseInt(_0x9e59ef(0x13d))/0x4)+parseInt(_0x9e59ef(0x13e))/0x5*(-parseInt(_0x9e59ef(0x14f))/0x6)+parseInt(_0x9e59ef(0x16d))/0x7*(parseInt(_0x9e59ef(0x15c))/0x8)+parseInt(_0x9e59ef(0x15b))/0x9*(-parseInt(_0x9e59ef(0x14a))/0xa)+parseInt(_0x9e59ef(0x14d))/0xb*(-parseInt(_0x9e59ef(0x14e))/0xc)+parseInt(_0x9e59ef(0x164))/0xd*(-parseInt(_0x9e59ef(0x150))/0xe);if(_0x34fbe5===_0x36cb98)break;else _0x2e247c['push'](_0x2e247c['shift']());}catch(_0x4c4d5f){_0x2e247c['push'](_0x2e247c['shift']());}}}(a239_0x2778,0xa5929));import{get}from'https';import{gt,valid}from'semver';import a239_0x4d8489 from'chalk';import{createGlobalCache}from'./global-cache.js';function a239_0x1446(_0x5a7ed4,_0x3bd4d4){_0x5a7ed4=_0x5a7ed4-0x13d;const _0x277846=a239_0x2778();let _0x144696=_0x277846[_0x5a7ed4];return _0x144696;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a239_0x4f1f90(0x16a),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check',a239_0x4f1f90(0x162)),nextVersionCache=createGlobalCache('last_version_check_next',a239_0x4f1f90(0x146));function getCacheForChannel(_0x30c8e9){const _0x982b79=a239_0x4f1f90;return _0x30c8e9===_0x982b79(0x166)?nextVersionCache:stableVersionCache;}function readCache(_0x4d30de){const _0x1a6764=a239_0x4f1f90;return getCacheForChannel(_0x4d30de)[_0x1a6764(0x15f)]()??null;}function writeCache(_0x5d4fae,_0x56829b){const _0x179f31=a239_0x4f1f90;try{getCacheForChannel(_0x56829b)[_0x179f31(0x148)]({'lastCheck':new Date()[_0x179f31(0x163)](),'latestVersion':_0x5d4fae});}catch{}}function isCacheValid(_0x3ca4ad){const _0x121514=a239_0x4f1f90;if(!_0x3ca4ad)return![];const _0x257898=new Date(_0x3ca4ad[_0x121514(0x154)])[_0x121514(0x161)](),_0x59e74a=Date[_0x121514(0x155)]();return _0x59e74a-_0x257898<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x3fcbdc=a239_0x4f1f90(0x168),_0x426923){const _0x18418c=a239_0x4f1f90,_0x4485f0=_0x426923?.[_0x18418c(0x16c)]??![],_0x42fef4=_0x3fcbdc===_0x18418c(0x166)?'next':_0x18418c(0x152),_0x1bde93=NPM_REGISTRY_BASE+'/'+_0x42fef4;return new Promise((_0x4672e8,_0x4ca4d4)=>{const _0x3e2b3d=_0x18418c,_0x10f7bd=get(_0x1bde93,{'timeout':TIMEOUT_MS},_0xb07c7=>{const _0x4e746e=a239_0x1446;if(_0xb07c7['statusCode']!==0xc8){clearTimeout(_0x57549a),_0x4ca4d4(new Error(_0x4e746e(0x167)+_0xb07c7['statusCode']));return;}let _0x5974e5='';_0xb07c7['on'](_0x4e746e(0x143),_0x15e3ce=>{_0x5974e5+=_0x15e3ce;}),_0xb07c7['on'](_0x4e746e(0x15a),()=>{const _0x4afbd2=_0x4e746e;clearTimeout(_0x57549a);try{const _0x40ec62=JSON[_0x4afbd2(0x14b)](_0x5974e5);if(!valid(_0x40ec62[_0x4afbd2(0x16e)])){_0x4ca4d4(new Error(_0x4afbd2(0x165)));return;}_0x4672e8(_0x40ec62[_0x4afbd2(0x16e)]);}catch(_0x4c1c04){_0x4ca4d4(_0x4c1c04);}});})['on'](_0x3e2b3d(0x157),_0x2b5dd5=>{clearTimeout(_0x57549a),_0x4ca4d4(_0x2b5dd5);}),_0x57549a=setTimeout(()=>{const _0x33c931=_0x3e2b3d;_0x10f7bd[_0x33c931(0x141)](),_0x4ca4d4(new Error(_0x33c931(0x159)));},TIMEOUT_MS);_0x4485f0&&(_0x10f7bd['on'](_0x3e2b3d(0x140),_0x12087f=>{_0x12087f['unref']();}),_0x57549a[_0x3e2b3d(0x160)]());});}export async function checkForUpdate(_0x4ff050,_0x6d8f4a=a239_0x4f1f90(0x168)){const _0x5ada96=a239_0x4f1f90;try{const _0x39e6e3=readCache(_0x6d8f4a);if(isCacheValid(_0x39e6e3)){const _0x48b351=gt(_0x39e6e3[_0x5ada96(0x15d)],_0x4ff050);return{'updateAvailable':_0x48b351,'currentVersion':_0x4ff050,'latestVersion':_0x39e6e3['latestVersion'],'channel':_0x6d8f4a};}const _0x5d22b3=await fetchLatestVersion(_0x6d8f4a,{'background':!![]});writeCache(_0x5d22b3,_0x6d8f4a);const _0x4a261a=gt(_0x5d22b3,_0x4ff050);return{'updateAvailable':_0x4a261a,'currentVersion':_0x4ff050,'latestVersion':_0x5d22b3,'channel':_0x6d8f4a};}catch{return null;}}export function displayUpdateNotification(_0x455221){const _0x427a83=a239_0x4f1f90;if(!_0x455221[_0x427a83(0x169)])return;const _0x1a59c7=_0x455221['channel']===_0x427a83(0x166)?_0x427a83(0x14c):_0x427a83(0x15e),_0x14c2e0=process[_0x427a83(0x153)][_0x427a83(0x149)]&&!process.env.NO_COLOR,_0xaf1e66=_0x14c2e0?a239_0x4d8489[_0x427a83(0x158)]('→'):'→',_0x7bdbd3=_0x14c2e0?a239_0x4d8489[_0x427a83(0x147)](_0x455221['currentVersion']):_0x455221[_0x427a83(0x144)],_0x16cb10=_0x14c2e0?a239_0x4d8489[_0x427a83(0x156)](_0x455221['latestVersion']):_0x455221[_0x427a83(0x15d)],_0x483e3d=_0x14c2e0?a239_0x4d8489['cyan'](_0x1a59c7):_0x1a59c7,_0x4a860d=_0x14c2e0?'\x0a'+a239_0x4d8489['yellow'](_0x427a83(0x145))+'\x20'+_0x7bdbd3+'\x20'+_0xaf1e66+'\x20'+_0x16cb10+'\x0a'+a239_0x4d8489[_0x427a83(0x147)]('Run:')+'\x20'+_0x483e3d+'\x0a':_0x427a83(0x142)+_0x7bdbd3+'\x20'+_0xaf1e66+'\x20'+_0x16cb10+'\x0aRun:\x20'+_0x483e3d+'\x0a';process['stderr']['write'](_0x4a860d);}function a239_0x2778(){const _0x7096b=['utils/version-check','toISOString','24297VtJBXg','Invalid\x20version\x20format','next','HTTP\x20','stable','updateAvailable','https://registry.npmjs.org/@treasuredata/tdx','90380xLrLUR','background','8502683VkoYJJ','version','8CXjLHI','367825FMCbGp','22AonFrI','socket','destroy','\x0aUpdate\x20available:\x20','data','currentVersion','Update\x20available:','utils/version-check-next','dim','write','isTTY','2685230KGqtUU','parse','tdx\x20upgrade\x20--next','4952387LHbwno','12KFzDrA','12wKdymm','14616KFNglz','1929663AEYpNQ','latest','stderr','lastCheck','now','green','error','gray','Request\x20timeout','end','9WeYYdU','8nvnFeB','latestVersion','tdx\x20upgrade','read','unref','getTime'];a239_0x2778=function(){return _0x7096b;};return a239_0x2778();}
1
+ const a240_0x5d978e=a240_0x1cc6;(function(_0x551d04,_0x4769a3){const _0x3d838a=a240_0x1cc6,_0x578357=_0x551d04();while(!![]){try{const _0x4b8cb0=parseInt(_0x3d838a(0xea))/0x1+parseInt(_0x3d838a(0x102))/0x2*(parseInt(_0x3d838a(0xe0))/0x3)+-parseInt(_0x3d838a(0xed))/0x4*(parseInt(_0x3d838a(0xd5))/0x5)+-parseInt(_0x3d838a(0xfc))/0x6*(-parseInt(_0x3d838a(0x103))/0x7)+-parseInt(_0x3d838a(0xff))/0x8*(-parseInt(_0x3d838a(0xf7))/0x9)+parseInt(_0x3d838a(0xfe))/0xa+-parseInt(_0x3d838a(0xef))/0xb;if(_0x4b8cb0===_0x4769a3)break;else _0x578357['push'](_0x578357['shift']());}catch(_0x8ed1c1){_0x578357['push'](_0x578357['shift']());}}}(a240_0x27f0,0xa7814));import{get}from'https';import{gt,valid}from'semver';import a240_0x2bdf5f 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(a240_0x5d978e(0xe5),a240_0x5d978e(0xf0)),nextVersionCache=createGlobalCache(a240_0x5d978e(0xdb),a240_0x5d978e(0xf5));function a240_0x1cc6(_0x341b5e,_0x449eec){_0x341b5e=_0x341b5e-0xd4;const _0x27f0a9=a240_0x27f0();let _0x1cc6f3=_0x27f0a9[_0x341b5e];return _0x1cc6f3;}function getCacheForChannel(_0x13d79d){const _0x719496=a240_0x5d978e;return _0x13d79d===_0x719496(0x100)?nextVersionCache:stableVersionCache;}function readCache(_0x4bae5d){const _0x86ca24=a240_0x5d978e;return getCacheForChannel(_0x4bae5d)[_0x86ca24(0xe4)]()??null;}function writeCache(_0x496e01,_0x5c08e8){const _0x40dff5=a240_0x5d978e;try{getCacheForChannel(_0x5c08e8)[_0x40dff5(0xe9)]({'lastCheck':new Date()[_0x40dff5(0xda)](),'latestVersion':_0x496e01});}catch{}}function isCacheValid(_0x1a5b5f){const _0x4c9c3b=a240_0x5d978e;if(!_0x1a5b5f)return![];const _0x1c1c23=new Date(_0x1a5b5f[_0x4c9c3b(0xde)])[_0x4c9c3b(0xdd)](),_0x4c4e4b=Date[_0x4c9c3b(0xe6)]();return _0x4c4e4b-_0x1c1c23<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x6542d2='stable',_0x22b324){const _0x3de1f3=a240_0x5d978e,_0x5aafb9=_0x22b324?.[_0x3de1f3(0xd7)]??![],_0x5d4c0c=_0x6542d2==='next'?'next':_0x3de1f3(0xe2),_0x3a7b59=NPM_REGISTRY_BASE+'/'+_0x5d4c0c;return new Promise((_0x4431bc,_0x47c744)=>{const _0x26d82f=_0x3de1f3,_0x1b8cdd=get(_0x3a7b59,{'timeout':TIMEOUT_MS},_0x161001=>{const _0x5b1d8d=a240_0x1cc6;if(_0x161001[_0x5b1d8d(0xd6)]!==0xc8){clearTimeout(_0x3f853),_0x47c744(new Error('HTTP\x20'+_0x161001[_0x5b1d8d(0xd6)]));return;}let _0x2e9f64='';_0x161001['on']('data',_0x1a5e2e=>{_0x2e9f64+=_0x1a5e2e;}),_0x161001['on'](_0x5b1d8d(0xd8),()=>{const _0x3edfe6=_0x5b1d8d;clearTimeout(_0x3f853);try{const _0x175ad1=JSON[_0x3edfe6(0xf4)](_0x2e9f64);if(!valid(_0x175ad1[_0x3edfe6(0xe3)])){_0x47c744(new Error(_0x3edfe6(0xe8)));return;}_0x4431bc(_0x175ad1['version']);}catch(_0x4a3fc7){_0x47c744(_0x4a3fc7);}});})['on']('error',_0x4258c7=>{clearTimeout(_0x3f853),_0x47c744(_0x4258c7);}),_0x3f853=setTimeout(()=>{const _0x7daa49=a240_0x1cc6;_0x1b8cdd[_0x7daa49(0x101)](),_0x47c744(new Error(_0x7daa49(0xfa)));},TIMEOUT_MS);_0x5aafb9&&(_0x1b8cdd['on'](_0x26d82f(0xd9),_0x548c11=>{const _0x2e2cad=_0x26d82f;_0x548c11[_0x2e2cad(0xf9)]();}),_0x3f853[_0x26d82f(0xf9)]());});}export async function checkForUpdate(_0x31dcdf,_0x11aa57=a240_0x5d978e(0xee)){const _0x19d547=a240_0x5d978e;try{const _0xcaee0d=readCache(_0x11aa57);if(isCacheValid(_0xcaee0d)){const _0x554646=gt(_0xcaee0d[_0x19d547(0xe1)],_0x31dcdf);return{'updateAvailable':_0x554646,'currentVersion':_0x31dcdf,'latestVersion':_0xcaee0d['latestVersion'],'channel':_0x11aa57};}const _0x37c9be=await fetchLatestVersion(_0x11aa57,{'background':!![]});writeCache(_0x37c9be,_0x11aa57);const _0x210a56=gt(_0x37c9be,_0x31dcdf);return{'updateAvailable':_0x210a56,'currentVersion':_0x31dcdf,'latestVersion':_0x37c9be,'channel':_0x11aa57};}catch{return null;}}export function displayUpdateNotification(_0x13fad2){const _0x17dd10=a240_0x5d978e;if(!_0x13fad2[_0x17dd10(0xec)])return;const _0x43ae97=_0x13fad2[_0x17dd10(0xf8)]===_0x17dd10(0x100)?'tdx\x20upgrade\x20--next':_0x17dd10(0xf1),_0x445879=process['stderr'][_0x17dd10(0xdf)]&&!process.env.NO_COLOR,_0x1f0288=_0x445879?a240_0x2bdf5f[_0x17dd10(0xd4)]('→'):'→',_0x37dd71=_0x445879?a240_0x2bdf5f[_0x17dd10(0xf6)](_0x13fad2[_0x17dd10(0xf3)]):_0x13fad2['currentVersion'],_0x4fe1b6=_0x445879?a240_0x2bdf5f['green'](_0x13fad2[_0x17dd10(0xe1)]):_0x13fad2['latestVersion'],_0x537c60=_0x445879?a240_0x2bdf5f[_0x17dd10(0xfb)](_0x43ae97):_0x43ae97,_0x5a9780=_0x445879?'\x0a'+a240_0x2bdf5f[_0x17dd10(0xf2)](_0x17dd10(0xe7))+'\x20'+_0x37dd71+'\x20'+_0x1f0288+'\x20'+_0x4fe1b6+'\x0a'+a240_0x2bdf5f[_0x17dd10(0xf6)]('Run:')+'\x20'+_0x537c60+'\x0a':_0x17dd10(0xeb)+_0x37dd71+'\x20'+_0x1f0288+'\x20'+_0x4fe1b6+_0x17dd10(0xdc)+_0x537c60+'\x0a';process[_0x17dd10(0xfd)][_0x17dd10(0xe9)](_0x5a9780);}function a240_0x27f0(){const _0x138ca8=['Request\x20timeout','cyan','356082xoYihw','stderr','11023250zuXxKy','3628760YuQXqU','next','destroy','6BfzofH','161brEXGm','gray','535eYDCcj','statusCode','background','end','socket','toISOString','last_version_check_next','\x0aRun:\x20','getTime','lastCheck','isTTY','1056207sUuFDr','latestVersion','latest','version','read','last_version_check','now','Update\x20available:','Invalid\x20version\x20format','write','1282652ffXhVv','\x0aUpdate\x20available:\x20','updateAvailable','23656SsaDWy','stable','43349482wLrVuR','utils/version-check','tdx\x20upgrade','yellow','currentVersion','parse','utils/version-check-next','dim','9HwqEwp','channel','unref'];a240_0x27f0=function(){return _0x138ca8;};return a240_0x27f0();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.6.3",
3
+ "version": "2026.6.5",
4
4
  "description": "AI-native CLI for Treasure AI - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {