@treasuredata/tdx 2026.8.1 → 2026.8.3

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 (258) 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-always-on-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-move-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/table-deleted.js +1 -1
  55. package/dist/commands/tables.js +1 -1
  56. package/dist/commands/unset-command.js +1 -1
  57. package/dist/commands/upgrade-command.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/work-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/site-mismatch.js +1 -1
  76. package/dist/core/user-cache.js +1 -1
  77. package/dist/core/version.js +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/mcp/server.js +1 -1
  80. package/dist/mcp/tools/index.js +1 -1
  81. package/dist/mcp/tools/tdx-run.js +1 -1
  82. package/dist/mcp/tools/tdx-search.js +1 -1
  83. package/dist/mcp/tools/work-create-item.js +1 -1
  84. package/dist/mcp/utils.js +1 -1
  85. package/dist/proxy/claude-usage-tracker.js +1 -1
  86. package/dist/proxy/passthrough-server.js +1 -1
  87. package/dist/proxy/sse-usage-parser.js +1 -1
  88. package/dist/sdk/agent/agent-config.js +1 -1
  89. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  90. package/dist/sdk/agent/agent-yaml.js +1 -1
  91. package/dist/sdk/agent/test/evaluator.js +1 -1
  92. package/dist/sdk/agent/test/executor.js +1 -1
  93. package/dist/sdk/agent/test/index.js +1 -1
  94. package/dist/sdk/agent/test/output.js +1 -1
  95. package/dist/sdk/agent/test/parser.js +1 -1
  96. package/dist/sdk/agent/tool-target-registry.js +1 -1
  97. package/dist/sdk/api.js +1 -1
  98. package/dist/sdk/auth-token.js +1 -1
  99. package/dist/sdk/cas/cas-api-client.d.ts +9 -3
  100. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
  101. package/dist/sdk/cas/cas-api-client.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.js.map +1 -1
  103. package/dist/sdk/cas/cas-audience-schema.d.ts +2 -0
  104. package/dist/sdk/cas/cas-audience-schema.d.ts.map +1 -1
  105. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  106. package/dist/sdk/cas/cas-audience-schema.js.map +1 -1
  107. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  108. package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -1
  109. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  110. package/dist/sdk/cas/cas-audience-yaml.js.map +1 -1
  111. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  112. package/dist/sdk/cas/index.d.ts +10 -0
  113. package/dist/sdk/cas/index.d.ts.map +1 -1
  114. package/dist/sdk/cas/index.js +1 -1
  115. package/dist/sdk/cas/index.js.map +1 -1
  116. package/dist/sdk/cas/pull-workflow.js +1 -1
  117. package/dist/sdk/cas/push-workflow.d.ts.map +1 -1
  118. package/dist/sdk/cas/push-workflow.js +1 -1
  119. package/dist/sdk/cas/push-workflow.js.map +1 -1
  120. package/dist/sdk/cas/types.d.ts +2 -0
  121. package/dist/sdk/cas/types.d.ts.map +1 -1
  122. package/dist/sdk/cas/validate-files.js +1 -1
  123. package/dist/sdk/client/cdp-api-client.js +1 -1
  124. package/dist/sdk/client/delivery-api-client.js +1 -1
  125. package/dist/sdk/client/endpoints.js +1 -1
  126. package/dist/sdk/client/engage-api-client.js +1 -1
  127. package/dist/sdk/client/http-client.js +1 -1
  128. package/dist/sdk/client/llm-api-client.js +1 -1
  129. package/dist/sdk/client/oauth-refresh.js +1 -1
  130. package/dist/sdk/client/rate-limiter.js +1 -1
  131. package/dist/sdk/client/td-api-client.js +1 -1
  132. package/dist/sdk/client/trino-api-client.js +1 -1
  133. package/dist/sdk/client/workflow-client.js +1 -1
  134. package/dist/sdk/connection-validator.js +1 -1
  135. package/dist/sdk/connection.js +1 -1
  136. package/dist/sdk/delivery.js +1 -1
  137. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  138. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  139. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  140. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  141. package/dist/sdk/engage/campaign-pull.js +1 -1
  142. package/dist/sdk/engage/campaign-push.js +1 -1
  143. package/dist/sdk/engage/campaign-validator.js +1 -1
  144. package/dist/sdk/engage/campaign-yaml.js +1 -1
  145. package/dist/sdk/engage/template-pull.js +1 -1
  146. package/dist/sdk/engage/template-push.js +1 -1
  147. package/dist/sdk/engage/template-validator.js +1 -1
  148. package/dist/sdk/engage/template-yaml.js +1 -1
  149. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  150. package/dist/sdk/engage/types/campaign-def.js +1 -1
  151. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  152. package/dist/sdk/engage/types/template-schema.js +1 -1
  153. package/dist/sdk/engage.js +1 -1
  154. package/dist/sdk/errors.js +1 -1
  155. package/dist/sdk/index.js +1 -1
  156. package/dist/sdk/io/index.js +1 -1
  157. package/dist/sdk/io/node-filesystem.js +1 -1
  158. package/dist/sdk/job.js +1 -1
  159. package/dist/sdk/journey.js +1 -1
  160. package/dist/sdk/llm/chat-cache.js +1 -1
  161. package/dist/sdk/llm/index.js +1 -1
  162. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  163. package/dist/sdk/llm/model-factors.js +1 -1
  164. package/dist/sdk/llm/user-settings.js +1 -1
  165. package/dist/sdk/personalization.js +1 -1
  166. package/dist/sdk/policy.js +1 -1
  167. package/dist/sdk/query/deleted-table-validation.js +1 -1
  168. package/dist/sdk/query/index.js +1 -1
  169. package/dist/sdk/query/sql-parser.js +1 -1
  170. package/dist/sdk/realtime.js +1 -1
  171. package/dist/sdk/schedule.js +1 -1
  172. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  173. package/dist/sdk/segment/fields-display.js +1 -1
  174. package/dist/sdk/segment/file-discovery.js +1 -1
  175. package/dist/sdk/segment/journey-utils.js +1 -1
  176. package/dist/sdk/segment/journey-validator.js +1 -1
  177. package/dist/sdk/segment/journey-yaml.js +1 -1
  178. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  179. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  180. package/dist/sdk/segment/pull-workflow.js +1 -1
  181. package/dist/sdk/segment/push-recovery.js +1 -1
  182. package/dist/sdk/segment/push-workflow.js +1 -1
  183. package/dist/sdk/segment/resolution-context.js +1 -1
  184. package/dist/sdk/segment/segment-path-parser.js +1 -1
  185. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  186. package/dist/sdk/segment/segment-validator.js +1 -1
  187. package/dist/sdk/segment/target-resolution.js +1 -1
  188. package/dist/sdk/segment/tdx-config.js +1 -1
  189. package/dist/sdk/segment/types/activation-schema.js +1 -1
  190. package/dist/sdk/segment/types/journey-def.js +1 -1
  191. package/dist/sdk/segment/types/journey-schema.js +1 -1
  192. package/dist/sdk/segment/types/segment-def.js +1 -1
  193. package/dist/sdk/segment/types/segment-schema.js +1 -1
  194. package/dist/sdk/segment/validate-files.js +1 -1
  195. package/dist/sdk/segment/yaml-validator.js +1 -1
  196. package/dist/sdk/segment.js +1 -1
  197. package/dist/sdk/types/cas.d.ts +4 -0
  198. package/dist/sdk/types/cas.d.ts.map +1 -1
  199. package/dist/sdk/types/index.js +1 -1
  200. package/dist/sdk/types/progress.js +1 -1
  201. package/dist/sdk/types/workspace.js +1 -1
  202. package/dist/sdk/user.js +1 -1
  203. package/dist/sdk/util/format-detector.js +1 -1
  204. package/dist/sdk/util/formatters.js +1 -1
  205. package/dist/sdk/util/index.js +1 -1
  206. package/dist/sdk/util/paginate.js +1 -1
  207. package/dist/sdk/util/tree-formatter.js +1 -1
  208. package/dist/sdk/util/tree-search.js +1 -1
  209. package/dist/sdk/workflow/archive-validation.js +1 -1
  210. package/dist/sdk/workflow/clone-workflow.js +1 -1
  211. package/dist/sdk/workflow/index.js +1 -1
  212. package/dist/sdk/workflow/pull-workflow.js +1 -1
  213. package/dist/sdk/workflow/push-workflow.js +1 -1
  214. package/dist/sdk/workflow/task-graph.js +1 -1
  215. package/dist/sdk/workflow/tdx-config.js +1 -1
  216. package/dist/sdk/workflow/workflow-utils.js +1 -1
  217. package/dist/sdk/workspace/access-tracker.js +1 -1
  218. package/dist/sdk/workspace/frontmatter.js +1 -1
  219. package/dist/sdk/workspace/git.js +1 -1
  220. package/dist/sdk/workspace/index.js +1 -1
  221. package/dist/sdk/workspace/templates.js +1 -1
  222. package/dist/sdk/workspace/weekly.js +1 -1
  223. package/dist/sdk/workspace/wikilinks.js +1 -1
  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/claude-code-state.js +1 -1
  231. package/dist/utils/colors.js +1 -1
  232. package/dist/utils/diff.js +1 -1
  233. package/dist/utils/file-permissions.js +1 -1
  234. package/dist/utils/file-reader.js +1 -1
  235. package/dist/utils/github-releases.js +1 -1
  236. package/dist/utils/global-cache.js +1 -1
  237. package/dist/utils/json-loader.js +1 -1
  238. package/dist/utils/local-cache.js +1 -1
  239. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  240. package/dist/utils/logger/formatters/index.js +1 -1
  241. package/dist/utils/logger/handlers/console-handler.js +1 -1
  242. package/dist/utils/logger/handlers/file-handler.js +1 -1
  243. package/dist/utils/logger/handlers/index.js +1 -1
  244. package/dist/utils/logger/handlers/null-handler.js +1 -1
  245. package/dist/utils/logger/index.js +1 -1
  246. package/dist/utils/logger/logger.js +1 -1
  247. package/dist/utils/logger/types.js +1 -1
  248. package/dist/utils/option-validation.js +1 -1
  249. package/dist/utils/process.js +1 -1
  250. package/dist/utils/prompt.js +1 -1
  251. package/dist/utils/proxy-fetch.js +1 -1
  252. package/dist/utils/spinner.js +1 -1
  253. package/dist/utils/sse-parser.js +1 -1
  254. package/dist/utils/string-utils.js +1 -1
  255. package/dist/utils/table-ref-parser.js +1 -1
  256. package/dist/utils/tdx-logger.js +1 -1
  257. package/dist/utils/version-check.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a256_0x19649d=a256_0x491f;(function(_0x567252,_0x563467){const _0x87210c=a256_0x491f,_0x451642=_0x567252();while(!![]){try{const _0x22dad9=-parseInt(_0x87210c(0x1f9))/0x1+parseInt(_0x87210c(0x1f6))/0x2*(-parseInt(_0x87210c(0x200))/0x3)+parseInt(_0x87210c(0x1e7))/0x4*(parseInt(_0x87210c(0x1e3))/0x5)+-parseInt(_0x87210c(0x1d5))/0x6+parseInt(_0x87210c(0x1f2))/0x7*(-parseInt(_0x87210c(0x1f3))/0x8)+-parseInt(_0x87210c(0x1ed))/0x9+parseInt(_0x87210c(0x1d2))/0xa;if(_0x22dad9===_0x563467)break;else _0x451642['push'](_0x451642['shift']());}catch(_0x54b1a3){_0x451642['push'](_0x451642['shift']());}}}(a256_0x3bb6,0x547ec));function a256_0x491f(_0x206809,_0x59c61f){_0x206809=_0x206809-0x1d0;const _0x3bb666=a256_0x3bb6();let _0x491f31=_0x3bb666[_0x206809];return _0x491f31;}import{get}from'https';import{gt,valid}from'semver';import a256_0x25ea8f from'chalk';function a256_0x3bb6(){const _0x4891eb=['17122jJucya','socket','stable','133280WVxYjj','last_version_check_next','yellow','HTTP\x20','end','latest','latestVersion','141FJmAqT','tdx\x20upgrade','https://registry.npmjs.org/@treasuredata/tdx','19340560fDxesA','channel','updateAvailable','3584712SeuiOv','currentVersion','data','error','version','\x0aUpdate\x20available:\x20','unref','write','dim','Request\x20timeout','green','getTime','last_version_check','lastCheck','275630MLvvvg','\x0aRun:\x20','Update\x20available:','background','44zDyOcY','tdx\x20upgrade\x20--next','now','statusCode','destroy','next','5059008CeuODK','toISOString','cyan','isTTY','utils/version-check','7KWKUia','3993112nqTLkK','stderr','utils/version-check-next'];a256_0x3bb6=function(){return _0x4891eb;};return a256_0x3bb6();}import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a256_0x19649d(0x1d1),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a256_0x19649d(0x1e1),a256_0x19649d(0x1f1)),nextVersionCache=createGlobalCache(a256_0x19649d(0x1fa),a256_0x19649d(0x1f5));function getCacheForChannel(_0x3eb12d){const _0x2ed9ca=a256_0x19649d;return _0x3eb12d===_0x2ed9ca(0x1ec)?nextVersionCache:stableVersionCache;}function readCache(_0x280453){return getCacheForChannel(_0x280453)['read']()??null;}function writeCache(_0x4735e8,_0x25dfe0){const _0x16b132=a256_0x19649d;try{getCacheForChannel(_0x25dfe0)[_0x16b132(0x1dc)]({'lastCheck':new Date()[_0x16b132(0x1ee)](),'latestVersion':_0x4735e8});}catch{}}function isCacheValid(_0x528e72){const _0x48fa66=a256_0x19649d;if(!_0x528e72)return![];const _0xa03a4e=new Date(_0x528e72[_0x48fa66(0x1e2)])[_0x48fa66(0x1e0)](),_0x14f776=Date[_0x48fa66(0x1e9)]();return _0x14f776-_0xa03a4e<CACHE_DURATION_MS;}export function fetchLatestVersion(_0xcb067c=a256_0x19649d(0x1f8),_0x1b5f44){const _0x9fe792=a256_0x19649d,_0x49e326=_0x1b5f44?.[_0x9fe792(0x1e6)]??![],_0x325d1d=_0xcb067c==='next'?'next':_0x9fe792(0x1fe),_0x1d7c44=NPM_REGISTRY_BASE+'/'+_0x325d1d;return new Promise((_0x4bb548,_0x154c95)=>{const _0x11a2e0=_0x9fe792,_0xf2db64=get(_0x1d7c44,{'timeout':TIMEOUT_MS},_0x1fb038=>{const _0x21c4fb=a256_0x491f;if(_0x1fb038[_0x21c4fb(0x1ea)]!==0xc8){clearTimeout(_0x3301f6),_0x154c95(new Error(_0x21c4fb(0x1fc)+_0x1fb038[_0x21c4fb(0x1ea)]));return;}let _0x1a770f='';_0x1fb038['on'](_0x21c4fb(0x1d7),_0x3745cf=>{_0x1a770f+=_0x3745cf;}),_0x1fb038['on'](_0x21c4fb(0x1fd),()=>{const _0x3f976a=_0x21c4fb;clearTimeout(_0x3301f6);try{const _0x31db96=JSON['parse'](_0x1a770f);if(!valid(_0x31db96[_0x3f976a(0x1d9)])){_0x154c95(new Error('Invalid\x20version\x20format'));return;}_0x4bb548(_0x31db96[_0x3f976a(0x1d9)]);}catch(_0x184225){_0x154c95(_0x184225);}});})['on'](_0x11a2e0(0x1d8),_0x134a84=>{clearTimeout(_0x3301f6),_0x154c95(_0x134a84);}),_0x3301f6=setTimeout(()=>{const _0x2c9d7b=_0x11a2e0;_0xf2db64[_0x2c9d7b(0x1eb)](),_0x154c95(new Error(_0x2c9d7b(0x1de)));},TIMEOUT_MS);_0x49e326&&(_0xf2db64['on'](_0x11a2e0(0x1f7),_0x1cfc11=>{const _0x23cc04=_0x11a2e0;_0x1cfc11[_0x23cc04(0x1db)]();}),_0x3301f6[_0x11a2e0(0x1db)]());});}export async function checkForUpdate(_0x95fa30,_0x564151='stable'){const _0x5211d5=a256_0x19649d;try{const _0x5945f0=readCache(_0x564151);if(isCacheValid(_0x5945f0)){const _0x5bb788=gt(_0x5945f0[_0x5211d5(0x1ff)],_0x95fa30);return{'updateAvailable':_0x5bb788,'currentVersion':_0x95fa30,'latestVersion':_0x5945f0['latestVersion'],'channel':_0x564151};}const _0x31e472=await fetchLatestVersion(_0x564151,{'background':!![]});writeCache(_0x31e472,_0x564151);const _0x4fa7b4=gt(_0x31e472,_0x95fa30);return{'updateAvailable':_0x4fa7b4,'currentVersion':_0x95fa30,'latestVersion':_0x31e472,'channel':_0x564151};}catch{return null;}}export function displayUpdateNotification(_0x43867b){const _0x58ff38=a256_0x19649d;if(!_0x43867b[_0x58ff38(0x1d4)])return;const _0x5a78f1=_0x43867b[_0x58ff38(0x1d3)]===_0x58ff38(0x1ec)?_0x58ff38(0x1e8):_0x58ff38(0x1d0),_0x16fa75=process[_0x58ff38(0x1f4)][_0x58ff38(0x1f0)]&&!process.env.NO_COLOR,_0x30daeb=_0x16fa75?a256_0x25ea8f['gray']('→'):'→',_0x1b1a57=_0x16fa75?a256_0x25ea8f[_0x58ff38(0x1dd)](_0x43867b[_0x58ff38(0x1d6)]):_0x43867b[_0x58ff38(0x1d6)],_0xe74f2c=_0x16fa75?a256_0x25ea8f[_0x58ff38(0x1df)](_0x43867b['latestVersion']):_0x43867b[_0x58ff38(0x1ff)],_0x976370=_0x16fa75?a256_0x25ea8f[_0x58ff38(0x1ef)](_0x5a78f1):_0x5a78f1,_0xee543f=_0x16fa75?'\x0a'+a256_0x25ea8f[_0x58ff38(0x1fb)](_0x58ff38(0x1e5))+'\x20'+_0x1b1a57+'\x20'+_0x30daeb+'\x20'+_0xe74f2c+'\x0a'+a256_0x25ea8f[_0x58ff38(0x1dd)]('Run:')+'\x20'+_0x976370+'\x0a':_0x58ff38(0x1da)+_0x1b1a57+'\x20'+_0x30daeb+'\x20'+_0xe74f2c+_0x58ff38(0x1e4)+_0x976370+'\x0a';process[_0x58ff38(0x1f4)][_0x58ff38(0x1dc)](_0xee543f);}
1
+ const a256_0x29d3e9=a256_0x1221;(function(_0xdba929,_0x3685a2){const _0x2b510c=a256_0x1221,_0x187aca=_0xdba929();while(!![]){try{const _0x52dd6b=parseInt(_0x2b510c(0x1c0))/0x1+-parseInt(_0x2b510c(0x1b0))/0x2*(parseInt(_0x2b510c(0x1c3))/0x3)+parseInt(_0x2b510c(0x1b8))/0x4*(-parseInt(_0x2b510c(0x1c2))/0x5)+parseInt(_0x2b510c(0x1b9))/0x6*(parseInt(_0x2b510c(0x1c1))/0x7)+-parseInt(_0x2b510c(0x1bb))/0x8*(parseInt(_0x2b510c(0x1ad))/0x9)+parseInt(_0x2b510c(0x1b7))/0xa+-parseInt(_0x2b510c(0x1d3))/0xb*(-parseInt(_0x2b510c(0x1cc))/0xc);if(_0x52dd6b===_0x3685a2)break;else _0x187aca['push'](_0x187aca['shift']());}catch(_0x5938eb){_0x187aca['push'](_0x187aca['shift']());}}}(a256_0x1040,0xdf840));function a256_0x1221(_0x5df821,_0x166ca0){_0x5df821=_0x5df821-0x1a8;const _0x104098=a256_0x1040();let _0x1221a7=_0x104098[_0x5df821];return _0x1221a7;}function a256_0x1040(){const _0x337d3d=['isTTY','\x0aUpdate\x20available:\x20','tdx\x20upgrade','latest','372beQbMH','stable','read','getTime','next','dim','unref','460867EmreeG','last_version_check_next','end','error','latestVersion','Invalid\x20version\x20format','stderr','HTTP\x20','gray','135JgSllc','updateAvailable','now','8GjPRLc','\x0aRun:\x20','background','cyan','Update\x20available:','parse','write','8445780VJZlkl','2405348hKbNZW','6DXxSGk','Run:','270856ztcNHV','currentVersion','toISOString','socket','destroy','123425rsGlML','6106282JnYUje','5uGwXLv','835818KPcqYX','lastCheck','Request\x20timeout','version','https://registry.npmjs.org/@treasuredata/tdx'];a256_0x1040=function(){return _0x337d3d;};return a256_0x1040();}import{get}from'https';import{gt,valid}from'semver';import a256_0x48a98e from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a256_0x29d3e9(0x1c7),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check','utils/version-check'),nextVersionCache=createGlobalCache(a256_0x29d3e9(0x1d4),'utils/version-check-next');function getCacheForChannel(_0x5aba6e){const _0xd742c1=a256_0x29d3e9;return _0x5aba6e===_0xd742c1(0x1d0)?nextVersionCache:stableVersionCache;}function readCache(_0x14fadc){const _0x1fa2da=a256_0x29d3e9;return getCacheForChannel(_0x14fadc)[_0x1fa2da(0x1ce)]()??null;}function writeCache(_0x513a0f,_0x5ce15d){const _0x596bd0=a256_0x29d3e9;try{getCacheForChannel(_0x5ce15d)['write']({'lastCheck':new Date()[_0x596bd0(0x1bd)](),'latestVersion':_0x513a0f});}catch{}}function isCacheValid(_0xbd636c){const _0x5c07a7=a256_0x29d3e9;if(!_0xbd636c)return![];const _0x534ad3=new Date(_0xbd636c[_0x5c07a7(0x1c4)])[_0x5c07a7(0x1cf)](),_0x3738b7=Date[_0x5c07a7(0x1af)]();return _0x3738b7-_0x534ad3<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x539eba=a256_0x29d3e9(0x1cd),_0x122d7c){const _0x3cb6b9=a256_0x29d3e9,_0x37b3c6=_0x122d7c?.[_0x3cb6b9(0x1b2)]??![],_0x38afea=_0x539eba===_0x3cb6b9(0x1d0)?_0x3cb6b9(0x1d0):_0x3cb6b9(0x1cb),_0x526cd9=NPM_REGISTRY_BASE+'/'+_0x38afea;return new Promise((_0x41d5a1,_0x33290f)=>{const _0x1e8415=_0x3cb6b9,_0x260e03=get(_0x526cd9,{'timeout':TIMEOUT_MS},_0x11795d=>{const _0x2b12a7=a256_0x1221;if(_0x11795d['statusCode']!==0xc8){clearTimeout(_0x3ffe63),_0x33290f(new Error(_0x2b12a7(0x1ab)+_0x11795d['statusCode']));return;}let _0x107d37='';_0x11795d['on']('data',_0x2969e2=>{_0x107d37+=_0x2969e2;}),_0x11795d['on'](_0x2b12a7(0x1d5),()=>{const _0x5564e1=_0x2b12a7;clearTimeout(_0x3ffe63);try{const _0x4b3497=JSON[_0x5564e1(0x1b5)](_0x107d37);if(!valid(_0x4b3497[_0x5564e1(0x1c6)])){_0x33290f(new Error(_0x5564e1(0x1a9)));return;}_0x41d5a1(_0x4b3497[_0x5564e1(0x1c6)]);}catch(_0x491a79){_0x33290f(_0x491a79);}});})['on'](_0x1e8415(0x1d6),_0x145582=>{clearTimeout(_0x3ffe63),_0x33290f(_0x145582);}),_0x3ffe63=setTimeout(()=>{const _0x444777=_0x1e8415;_0x260e03[_0x444777(0x1bf)](),_0x33290f(new Error(_0x444777(0x1c5)));},TIMEOUT_MS);_0x37b3c6&&(_0x260e03['on'](_0x1e8415(0x1be),_0x50f62c=>{const _0x5c7a55=_0x1e8415;_0x50f62c[_0x5c7a55(0x1d2)]();}),_0x3ffe63[_0x1e8415(0x1d2)]());});}export async function checkForUpdate(_0x2a7cbe,_0x905f31='stable'){const _0x564357=a256_0x29d3e9;try{const _0x537921=readCache(_0x905f31);if(isCacheValid(_0x537921)){const _0x30e231=gt(_0x537921['latestVersion'],_0x2a7cbe);return{'updateAvailable':_0x30e231,'currentVersion':_0x2a7cbe,'latestVersion':_0x537921[_0x564357(0x1a8)],'channel':_0x905f31};}const _0x4535d1=await fetchLatestVersion(_0x905f31,{'background':!![]});writeCache(_0x4535d1,_0x905f31);const _0x2c8f04=gt(_0x4535d1,_0x2a7cbe);return{'updateAvailable':_0x2c8f04,'currentVersion':_0x2a7cbe,'latestVersion':_0x4535d1,'channel':_0x905f31};}catch{return null;}}export function displayUpdateNotification(_0x39ebdc){const _0x193f07=a256_0x29d3e9;if(!_0x39ebdc[_0x193f07(0x1ae)])return;const _0x35087d=_0x39ebdc['channel']===_0x193f07(0x1d0)?'tdx\x20upgrade\x20--next':_0x193f07(0x1ca),_0x2997a2=process[_0x193f07(0x1aa)][_0x193f07(0x1c8)]&&!process.env.NO_COLOR,_0x11ceb7=_0x2997a2?a256_0x48a98e[_0x193f07(0x1ac)]('→'):'→',_0x9ce1e0=_0x2997a2?a256_0x48a98e['dim'](_0x39ebdc['currentVersion']):_0x39ebdc[_0x193f07(0x1bc)],_0xc9b19c=_0x2997a2?a256_0x48a98e['green'](_0x39ebdc[_0x193f07(0x1a8)]):_0x39ebdc[_0x193f07(0x1a8)],_0x2f9f59=_0x2997a2?a256_0x48a98e[_0x193f07(0x1b3)](_0x35087d):_0x35087d,_0x5392ad=_0x2997a2?'\x0a'+a256_0x48a98e['yellow'](_0x193f07(0x1b4))+'\x20'+_0x9ce1e0+'\x20'+_0x11ceb7+'\x20'+_0xc9b19c+'\x0a'+a256_0x48a98e[_0x193f07(0x1d1)](_0x193f07(0x1ba))+'\x20'+_0x2f9f59+'\x0a':_0x193f07(0x1c9)+_0x9ce1e0+'\x20'+_0x11ceb7+'\x20'+_0xc9b19c+_0x193f07(0x1b1)+_0x2f9f59+'\x0a';process['stderr'][_0x193f07(0x1b6)](_0x5392ad);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.8.1",
3
+ "version": "2026.8.3",
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": {