@treasuredata/tdx 2026.4.9 → 2026.4.10

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 (228) 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.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +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-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/unset-command.js +1 -1
  54. package/dist/commands/upgrade-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/work-command.js +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.js +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/project-config.js +1 -1
  71. package/dist/core/session.js +1 -1
  72. package/dist/core/user-cache.js +1 -1
  73. package/dist/core/version.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/mcp/server.js +1 -1
  76. package/dist/mcp/tools/index.js +1 -1
  77. package/dist/mcp/tools/tdx-run.js +1 -1
  78. package/dist/mcp/tools/tdx-search.js +1 -1
  79. package/dist/mcp/tools/work-create-item.js +1 -1
  80. package/dist/mcp/utils.js +1 -1
  81. package/dist/proxy/claude-usage-tracker.js +1 -1
  82. package/dist/proxy/passthrough-server.js +1 -1
  83. package/dist/proxy/sse-usage-parser.js +1 -1
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/agent/test/evaluator.js +1 -1
  88. package/dist/sdk/agent/test/executor.js +1 -1
  89. package/dist/sdk/agent/test/index.js +1 -1
  90. package/dist/sdk/agent/test/output.js +1 -1
  91. package/dist/sdk/agent/test/parser.js +1 -1
  92. package/dist/sdk/agent/tool-target-registry.js +1 -1
  93. package/dist/sdk/api.js +1 -1
  94. package/dist/sdk/cas/cas-api-client.js +1 -1
  95. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  96. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  97. package/dist/sdk/cas/index.js +1 -1
  98. package/dist/sdk/cas/pull-workflow.js +1 -1
  99. package/dist/sdk/cas/push-workflow.js +1 -1
  100. package/dist/sdk/client/cdp-api-client.js +1 -1
  101. package/dist/sdk/client/delivery-api-client.js +1 -1
  102. package/dist/sdk/client/endpoints.js +1 -1
  103. package/dist/sdk/client/engage-api-client.js +1 -1
  104. package/dist/sdk/client/http-client.js +1 -1
  105. package/dist/sdk/client/llm-api-client.js +1 -1
  106. package/dist/sdk/client/oauth-refresh.js +1 -1
  107. package/dist/sdk/client/rate-limiter.js +1 -1
  108. package/dist/sdk/client/td-api-client.js +1 -1
  109. package/dist/sdk/client/trino-api-client.js +1 -1
  110. package/dist/sdk/client/workflow-client.js +1 -1
  111. package/dist/sdk/connection-validator.js +1 -1
  112. package/dist/sdk/connection.js +1 -1
  113. package/dist/sdk/delivery.js +1 -1
  114. package/dist/sdk/engage/campaign-pull.js +1 -1
  115. package/dist/sdk/engage/campaign-push.js +1 -1
  116. package/dist/sdk/engage/campaign-validator.js +1 -1
  117. package/dist/sdk/engage/campaign-yaml.js +1 -1
  118. package/dist/sdk/engage/template-pull.js +1 -1
  119. package/dist/sdk/engage/template-push.js +1 -1
  120. package/dist/sdk/engage/template-validator.js +1 -1
  121. package/dist/sdk/engage/template-yaml.js +1 -1
  122. package/dist/sdk/engage/types/campaign-def.js +1 -1
  123. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  124. package/dist/sdk/engage/types/template-schema.js +1 -1
  125. package/dist/sdk/engage.js +1 -1
  126. package/dist/sdk/errors.js +1 -1
  127. package/dist/sdk/index.js +1 -1
  128. package/dist/sdk/io/index.js +1 -1
  129. package/dist/sdk/io/node-filesystem.js +1 -1
  130. package/dist/sdk/job.js +1 -1
  131. package/dist/sdk/journey.js +1 -1
  132. package/dist/sdk/llm/chat-cache.js +1 -1
  133. package/dist/sdk/llm/index.js +1 -1
  134. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  135. package/dist/sdk/llm/model-factors.js +1 -1
  136. package/dist/sdk/personalization.js +1 -1
  137. package/dist/sdk/policy.js +1 -1
  138. package/dist/sdk/query/index.js +1 -1
  139. package/dist/sdk/query/sql-parser.js +1 -1
  140. package/dist/sdk/realtime.js +1 -1
  141. package/dist/sdk/schedule.js +1 -1
  142. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  143. package/dist/sdk/segment/fields-display.js +1 -1
  144. package/dist/sdk/segment/file-discovery.js +1 -1
  145. package/dist/sdk/segment/journey-utils.js +1 -1
  146. package/dist/sdk/segment/journey-validator.js +1 -1
  147. package/dist/sdk/segment/journey-yaml.js +1 -1
  148. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  149. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  150. package/dist/sdk/segment/pull-workflow.js +1 -1
  151. package/dist/sdk/segment/push-recovery.js +1 -1
  152. package/dist/sdk/segment/push-workflow.js +1 -1
  153. package/dist/sdk/segment/resolution-context.js +1 -1
  154. package/dist/sdk/segment/segment-path-parser.js +1 -1
  155. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  156. package/dist/sdk/segment/segment-validator.js +1 -1
  157. package/dist/sdk/segment/target-resolution.js +1 -1
  158. package/dist/sdk/segment/tdx-config.js +1 -1
  159. package/dist/sdk/segment/types/activation-schema.js +1 -1
  160. package/dist/sdk/segment/types/journey-def.js +1 -1
  161. package/dist/sdk/segment/types/journey-schema.js +1 -1
  162. package/dist/sdk/segment/types/segment-def.js +1 -1
  163. package/dist/sdk/segment/types/segment-schema.js +1 -1
  164. package/dist/sdk/segment/validate-files.js +1 -1
  165. package/dist/sdk/segment/yaml-validator.js +1 -1
  166. package/dist/sdk/segment.js +1 -1
  167. package/dist/sdk/types/index.js +1 -1
  168. package/dist/sdk/types/progress.js +1 -1
  169. package/dist/sdk/types/workspace.js +1 -1
  170. package/dist/sdk/user.js +1 -1
  171. package/dist/sdk/util/format-detector.js +1 -1
  172. package/dist/sdk/util/formatters.js +1 -1
  173. package/dist/sdk/util/index.js +1 -1
  174. package/dist/sdk/util/paginate.js +1 -1
  175. package/dist/sdk/util/tree-formatter.js +1 -1
  176. package/dist/sdk/workflow/archive-validation.js +1 -1
  177. package/dist/sdk/workflow/clone-workflow.js +1 -1
  178. package/dist/sdk/workflow/index.js +1 -1
  179. package/dist/sdk/workflow/pull-workflow.js +1 -1
  180. package/dist/sdk/workflow/push-workflow.js +1 -1
  181. package/dist/sdk/workflow/tdx-config.js +1 -1
  182. package/dist/sdk/workflow/workflow-utils.js +1 -1
  183. package/dist/sdk/workspace/access-tracker.js +1 -1
  184. package/dist/sdk/workspace/frontmatter.js +1 -1
  185. package/dist/sdk/workspace/git.d.ts +52 -0
  186. package/dist/sdk/workspace/git.d.ts.map +1 -1
  187. package/dist/sdk/workspace/git.js +1 -1
  188. package/dist/sdk/workspace/git.js.map +1 -1
  189. package/dist/sdk/workspace/index.d.ts +14 -0
  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.js +1 -1
  196. package/dist/test-utils/command-runner.js +1 -1
  197. package/dist/test-utils/factories.js +1 -1
  198. package/dist/test-utils/fixtures.js +1 -1
  199. package/dist/test-utils/http-mock.js +1 -1
  200. package/dist/test-utils/index.js +1 -1
  201. package/dist/utils/async.js +1 -1
  202. package/dist/utils/colors.js +1 -1
  203. package/dist/utils/diff.js +1 -1
  204. package/dist/utils/file-permissions.js +1 -1
  205. package/dist/utils/file-reader.js +1 -1
  206. package/dist/utils/github-releases.js +1 -1
  207. package/dist/utils/global-cache.js +1 -1
  208. package/dist/utils/json-loader.js +1 -1
  209. package/dist/utils/local-cache.js +1 -1
  210. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  211. package/dist/utils/logger/formatters/index.js +1 -1
  212. package/dist/utils/logger/handlers/console-handler.js +1 -1
  213. package/dist/utils/logger/handlers/file-handler.js +1 -1
  214. package/dist/utils/logger/handlers/index.js +1 -1
  215. package/dist/utils/logger/handlers/null-handler.js +1 -1
  216. package/dist/utils/logger/index.js +1 -1
  217. package/dist/utils/logger/logger.js +1 -1
  218. package/dist/utils/logger/types.js +1 -1
  219. package/dist/utils/option-validation.js +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/prompt.js +1 -1
  222. package/dist/utils/spinner.js +1 -1
  223. package/dist/utils/sse-parser.js +1 -1
  224. package/dist/utils/string-utils.js +1 -1
  225. package/dist/utils/table-ref-parser.js +1 -1
  226. package/dist/utils/tdx-logger.js +1 -1
  227. package/dist/utils/version-check.js +1 -1
  228. package/package.json +2 -1
@@ -1 +1 @@
1
- const a235_0x41251a=a235_0x1fef;(function(_0x5c81fd,_0x975ad9){const _0x5b841f=a235_0x1fef,_0x1e3fdb=_0x5c81fd();while(!![]){try{const _0x352958=-parseInt(_0x5b841f(0x8e))/0x1*(parseInt(_0x5b841f(0xb0))/0x2)+-parseInt(_0x5b841f(0xa9))/0x3*(-parseInt(_0x5b841f(0xb5))/0x4)+parseInt(_0x5b841f(0xac))/0x5*(-parseInt(_0x5b841f(0xaa))/0x6)+-parseInt(_0x5b841f(0xb6))/0x7+parseInt(_0x5b841f(0x9e))/0x8+-parseInt(_0x5b841f(0xa8))/0x9*(-parseInt(_0x5b841f(0xb7))/0xa)+parseInt(_0x5b841f(0xb2))/0xb;if(_0x352958===_0x975ad9)break;else _0x1e3fdb['push'](_0x1e3fdb['shift']());}catch(_0x28b2ca){_0x1e3fdb['push'](_0x1e3fdb['shift']());}}}(a235_0x16e2,0xf40ef));import{get}from'https';import{gt,valid}from'semver';import a235_0xb514cc from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a235_0x41251a(0xb8),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a235_0x41251a(0xa4),'utils/version-check'),nextVersionCache=createGlobalCache(a235_0x41251a(0x94),a235_0x41251a(0x97));function getCacheForChannel(_0x318f14){const _0x3c9347=a235_0x41251a;return _0x318f14===_0x3c9347(0xa1)?nextVersionCache:stableVersionCache;}function readCache(_0x29b864){const _0x169101=a235_0x41251a;return getCacheForChannel(_0x29b864)[_0x169101(0xa5)]()??null;}function writeCache(_0x182886,_0x6b242d){const _0x338164=a235_0x41251a;try{getCacheForChannel(_0x6b242d)[_0x338164(0x93)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x182886});}catch{}}function a235_0x16e2(){const _0x3ffdc2=['29784fBnnZw','error','670Jctxzc','channel','now','currentVersion','3092GFaWQL','destroy','14323507hkWapj','Request\x20timeout','yellow','144GdPdxZ','12373858opJoSX','114320onnXMr','https://registry.npmjs.org/@treasuredata/tdx','gray','parse','stable','updateAvailable','479QOLXqF','\x0aUpdate\x20available:\x20','unref','tdx\x20upgrade','stderr','write','last_version_check_next','dim','\x0aRun:\x20','utils/version-check-next','socket','cyan','lastCheck','statusCode','latest','end','5284080jGrgLZ','isTTY','green','next','version','HTTP\x20','last_version_check','read','Run:','latestVersion','738GffQyH','106083PvZfPL'];a235_0x16e2=function(){return _0x3ffdc2;};return a235_0x16e2();}function isCacheValid(_0x22f56d){const _0xff416d=a235_0x41251a;if(!_0x22f56d)return![];const _0x4f51a1=new Date(_0x22f56d[_0xff416d(0x9a)])['getTime'](),_0x2125a7=Date[_0xff416d(0xae)]();return _0x2125a7-_0x4f51a1<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x47d91f=a235_0x41251a(0x8c),_0x62e60c){const _0x15d165=a235_0x41251a,_0x11a305=_0x62e60c?.['background']??![],_0x7ca328=_0x47d91f===_0x15d165(0xa1)?'next':_0x15d165(0x9c),_0xed6c6c=NPM_REGISTRY_BASE+'/'+_0x7ca328;return new Promise((_0x4ff0e7,_0x5831ef)=>{const _0x3d5371=_0x15d165,_0x1b1840=get(_0xed6c6c,{'timeout':TIMEOUT_MS},_0x4d4f21=>{const _0x974722=a235_0x1fef;if(_0x4d4f21['statusCode']!==0xc8){clearTimeout(_0xeb373b),_0x5831ef(new Error(_0x974722(0xa3)+_0x4d4f21[_0x974722(0x9b)]));return;}let _0x2c18f7='';_0x4d4f21['on']('data',_0x2a9acc=>{_0x2c18f7+=_0x2a9acc;}),_0x4d4f21['on'](_0x974722(0x9d),()=>{const _0x28910b=_0x974722;clearTimeout(_0xeb373b);try{const _0x97b52c=JSON[_0x28910b(0xba)](_0x2c18f7);if(!valid(_0x97b52c[_0x28910b(0xa2)])){_0x5831ef(new Error('Invalid\x20version\x20format'));return;}_0x4ff0e7(_0x97b52c[_0x28910b(0xa2)]);}catch(_0x51ad40){_0x5831ef(_0x51ad40);}});})['on'](_0x3d5371(0xab),_0x5f4678=>{clearTimeout(_0xeb373b),_0x5831ef(_0x5f4678);}),_0xeb373b=setTimeout(()=>{const _0x12bcff=_0x3d5371;_0x1b1840[_0x12bcff(0xb1)](),_0x5831ef(new Error(_0x12bcff(0xb3)));},TIMEOUT_MS);_0x11a305&&(_0x1b1840['on'](_0x3d5371(0x98),_0xcee588=>{const _0x47ea1d=_0x3d5371;_0xcee588[_0x47ea1d(0x90)]();}),_0xeb373b[_0x3d5371(0x90)]());});}function a235_0x1fef(_0x4027bb,_0x32474e){_0x4027bb=_0x4027bb-0x8c;const _0x16e212=a235_0x16e2();let _0x1fef7c=_0x16e212[_0x4027bb];return _0x1fef7c;}export async function checkForUpdate(_0xfa0080,_0x451ebb='stable'){const _0x3349f6=a235_0x41251a;try{const _0x3385c8=readCache(_0x451ebb);if(isCacheValid(_0x3385c8)){const _0x961897=gt(_0x3385c8[_0x3349f6(0xa7)],_0xfa0080);return{'updateAvailable':_0x961897,'currentVersion':_0xfa0080,'latestVersion':_0x3385c8[_0x3349f6(0xa7)],'channel':_0x451ebb};}const _0x4c7812=await fetchLatestVersion(_0x451ebb,{'background':!![]});writeCache(_0x4c7812,_0x451ebb);const _0x555924=gt(_0x4c7812,_0xfa0080);return{'updateAvailable':_0x555924,'currentVersion':_0xfa0080,'latestVersion':_0x4c7812,'channel':_0x451ebb};}catch{return null;}}export function displayUpdateNotification(_0x48a225){const _0x284437=a235_0x41251a;if(!_0x48a225[_0x284437(0x8d)])return;const _0x22a278=_0x48a225[_0x284437(0xad)]===_0x284437(0xa1)?'tdx\x20upgrade\x20--next':_0x284437(0x91),_0x41725e=process[_0x284437(0x92)][_0x284437(0x9f)]&&!process.env.NO_COLOR,_0x36c43b=_0x41725e?a235_0xb514cc[_0x284437(0xb9)]('→'):'→',_0x20e902=_0x41725e?a235_0xb514cc[_0x284437(0x95)](_0x48a225[_0x284437(0xaf)]):_0x48a225['currentVersion'],_0x131bc7=_0x41725e?a235_0xb514cc[_0x284437(0xa0)](_0x48a225[_0x284437(0xa7)]):_0x48a225[_0x284437(0xa7)],_0x524bdc=_0x41725e?a235_0xb514cc[_0x284437(0x99)](_0x22a278):_0x22a278,_0x1fe5c4=_0x41725e?'\x0a'+a235_0xb514cc[_0x284437(0xb4)]('Update\x20available:')+'\x20'+_0x20e902+'\x20'+_0x36c43b+'\x20'+_0x131bc7+'\x0a'+a235_0xb514cc[_0x284437(0x95)](_0x284437(0xa6))+'\x20'+_0x524bdc+'\x0a':_0x284437(0x8f)+_0x20e902+'\x20'+_0x36c43b+'\x20'+_0x131bc7+_0x284437(0x96)+_0x524bdc+'\x0a';process['stderr']['write'](_0x1fe5c4);}
1
+ function a235_0x4ac3(_0x3d34d5,_0x3a2f79){_0x3d34d5=_0x3d34d5-0xb5;const _0x23dd0a=a235_0x23dd();let _0x4ac324=_0x23dd0a[_0x3d34d5];return _0x4ac324;}const a235_0x17faad=a235_0x4ac3;(function(_0x541b1a,_0x12d771){const _0x4198ec=a235_0x4ac3,_0x298695=_0x541b1a();while(!![]){try{const _0x49c2c3=parseInt(_0x4198ec(0xcf))/0x1*(parseInt(_0x4198ec(0xdb))/0x2)+parseInt(_0x4198ec(0xd4))/0x3*(parseInt(_0x4198ec(0xd6))/0x4)+parseInt(_0x4198ec(0xb7))/0x5*(-parseInt(_0x4198ec(0xbf))/0x6)+parseInt(_0x4198ec(0xca))/0x7+parseInt(_0x4198ec(0xbd))/0x8*(-parseInt(_0x4198ec(0xb9))/0x9)+parseInt(_0x4198ec(0xcc))/0xa+-parseInt(_0x4198ec(0xba))/0xb;if(_0x49c2c3===_0x12d771)break;else _0x298695['push'](_0x298695['shift']());}catch(_0x11745d){_0x298695['push'](_0x298695['shift']());}}}(a235_0x23dd,0x6e2c4));import{get}from'https';import{gt,valid}from'semver';import a235_0x3835a2 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(a235_0x17faad(0xb5),'utils/version-check'),nextVersionCache=createGlobalCache('last_version_check_next','utils/version-check-next');function getCacheForChannel(_0x2a2d6a){return _0x2a2d6a==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x2d20f5){return getCacheForChannel(_0x2d20f5)['read']()??null;}function writeCache(_0x154e5d,_0x8bcdd7){const _0x36661c=a235_0x17faad;try{getCacheForChannel(_0x8bcdd7)[_0x36661c(0xce)]({'lastCheck':new Date()['toISOString'](),'latestVersion':_0x154e5d});}catch{}}function isCacheValid(_0x224074){const _0x1438c1=a235_0x17faad;if(!_0x224074)return![];const _0x47bcdf=new Date(_0x224074[_0x1438c1(0xb6)])['getTime'](),_0x23f5b0=Date[_0x1438c1(0xc0)]();return _0x23f5b0-_0x47bcdf<CACHE_DURATION_MS;}function a235_0x23dd(){const _0x15d6c6=['destroy','parse','stable','next','error','background','Run:','\x0aUpdate\x20available:\x20','statusCode','164003bqOGUP','HTTP\x20','2023850wWXCrH','Update\x20available:','write','453tLtxbu','tdx\x20upgrade\x20--next','dim','unref','latest','1119fODNcM','currentVersion','2156TOnMFs','version','tdx\x20upgrade','stderr','updateAvailable','1374FuvtkU','end','gray','last_version_check','lastCheck','1765xvuSYI','latestVersion','12933VtztHv','1836373HXiRnc','data','yellow','288VhLAkM','green','1158JODHga','now'];a235_0x23dd=function(){return _0x15d6c6;};return a235_0x23dd();}export function fetchLatestVersion(_0x3be5a4=a235_0x17faad(0xc3),_0x135d2e){const _0x359803=a235_0x17faad,_0x32086b=_0x135d2e?.[_0x359803(0xc6)]??![],_0x2f8826=_0x3be5a4===_0x359803(0xc4)?'next':_0x359803(0xd3),_0x302981=NPM_REGISTRY_BASE+'/'+_0x2f8826;return new Promise((_0x21f180,_0x5a5d38)=>{const _0x5ff910=_0x359803,_0x309742=get(_0x302981,{'timeout':TIMEOUT_MS},_0x1b3245=>{const _0x4860a6=a235_0x4ac3;if(_0x1b3245['statusCode']!==0xc8){clearTimeout(_0x2f8baa),_0x5a5d38(new Error(_0x4860a6(0xcb)+_0x1b3245[_0x4860a6(0xc9)]));return;}let _0xe3b72f='';_0x1b3245['on'](_0x4860a6(0xbb),_0x6da2c5=>{_0xe3b72f+=_0x6da2c5;}),_0x1b3245['on'](_0x4860a6(0xdc),()=>{const _0x20c029=_0x4860a6;clearTimeout(_0x2f8baa);try{const _0x4dde49=JSON[_0x20c029(0xc2)](_0xe3b72f);if(!valid(_0x4dde49[_0x20c029(0xd7)])){_0x5a5d38(new Error('Invalid\x20version\x20format'));return;}_0x21f180(_0x4dde49[_0x20c029(0xd7)]);}catch(_0x2ad2ca){_0x5a5d38(_0x2ad2ca);}});})['on'](_0x5ff910(0xc5),_0x568f34=>{clearTimeout(_0x2f8baa),_0x5a5d38(_0x568f34);}),_0x2f8baa=setTimeout(()=>{const _0x13fbfd=_0x5ff910;_0x309742[_0x13fbfd(0xc1)](),_0x5a5d38(new Error('Request\x20timeout'));},TIMEOUT_MS);_0x32086b&&(_0x309742['on']('socket',_0xec4757=>{const _0x1dd9e5=_0x5ff910;_0xec4757[_0x1dd9e5(0xd2)]();}),_0x2f8baa['unref']());});}export async function checkForUpdate(_0x5cd0ff,_0x4a6ab6=a235_0x17faad(0xc3)){const _0x4c99b0=a235_0x17faad;try{const _0x4c97ba=readCache(_0x4a6ab6);if(isCacheValid(_0x4c97ba)){const _0x5ea7a5=gt(_0x4c97ba['latestVersion'],_0x5cd0ff);return{'updateAvailable':_0x5ea7a5,'currentVersion':_0x5cd0ff,'latestVersion':_0x4c97ba[_0x4c99b0(0xb8)],'channel':_0x4a6ab6};}const _0x44ac90=await fetchLatestVersion(_0x4a6ab6,{'background':!![]});writeCache(_0x44ac90,_0x4a6ab6);const _0x280c0d=gt(_0x44ac90,_0x5cd0ff);return{'updateAvailable':_0x280c0d,'currentVersion':_0x5cd0ff,'latestVersion':_0x44ac90,'channel':_0x4a6ab6};}catch{return null;}}export function displayUpdateNotification(_0x4cb268){const _0x1b6bee=a235_0x17faad;if(!_0x4cb268[_0x1b6bee(0xda)])return;const _0x42e016=_0x4cb268['channel']===_0x1b6bee(0xc4)?_0x1b6bee(0xd0):_0x1b6bee(0xd8),_0x239c4e=process[_0x1b6bee(0xd9)]['isTTY']&&!process.env.NO_COLOR,_0x5eeb9c=_0x239c4e?a235_0x3835a2[_0x1b6bee(0xdd)]('→'):'→',_0x11dccb=_0x239c4e?a235_0x3835a2[_0x1b6bee(0xd1)](_0x4cb268['currentVersion']):_0x4cb268[_0x1b6bee(0xd5)],_0x54b361=_0x239c4e?a235_0x3835a2[_0x1b6bee(0xbe)](_0x4cb268['latestVersion']):_0x4cb268[_0x1b6bee(0xb8)],_0x15be1b=_0x239c4e?a235_0x3835a2['cyan'](_0x42e016):_0x42e016,_0x6c76d6=_0x239c4e?'\x0a'+a235_0x3835a2[_0x1b6bee(0xbc)](_0x1b6bee(0xcd))+'\x20'+_0x11dccb+'\x20'+_0x5eeb9c+'\x20'+_0x54b361+'\x0a'+a235_0x3835a2[_0x1b6bee(0xd1)](_0x1b6bee(0xc7))+'\x20'+_0x15be1b+'\x0a':_0x1b6bee(0xc8)+_0x11dccb+'\x20'+_0x5eeb9c+'\x20'+_0x54b361+'\x0aRun:\x20'+_0x15be1b+'\x0a';process['stderr'][_0x1b6bee(0xce)](_0x6c76d6);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.4.9",
3
+ "version": "2026.4.10",
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": {
@@ -37,6 +37,7 @@
37
37
  "studio:install": "npm install && npm --prefix studio install",
38
38
  "studio": "npm run studio:install && npm --prefix studio run dev",
39
39
  "studio:dev": "npm --prefix studio run dev",
40
+ "ios:generate": "cd ios && xcodegen generate",
40
41
  "test": "vitest src/",
41
42
  "test:build": "vitest run tests/cli-validation/",
42
43
  "test:integration": "vitest --run tests/",