@treasuredata/tdx 2026.8.5 → 2026.8.6

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 (276) hide show
  1. package/README.md +1 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/build-info.json +3 -3
  4. package/dist/cli-categories.d.ts +1 -1
  5. package/dist/cli-categories.js +1 -1
  6. package/dist/cli-categories.js.map +1 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +1 -1
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/agent-command.js +1 -1
  12. package/dist/commands/agent-test-command.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/auth-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/codex-command.d.ts +51 -0
  22. package/dist/commands/codex-command.d.ts.map +1 -0
  23. package/dist/commands/codex-command.js +1 -0
  24. package/dist/commands/codex-command.js.map +1 -0
  25. package/dist/commands/command.js +1 -1
  26. package/dist/commands/connection-command.js +1 -1
  27. package/dist/commands/databases.js +1 -1
  28. package/dist/commands/delivery-command.js +1 -1
  29. package/dist/commands/describe.js +1 -1
  30. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  31. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  32. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  33. package/dist/commands/engage-campaign-pull-command.js +1 -1
  34. package/dist/commands/engage-campaign-push-command.js +1 -1
  35. package/dist/commands/engage-campaign-validate-command.js +1 -1
  36. package/dist/commands/engage-command.d.ts.map +1 -1
  37. package/dist/commands/engage-command.js +1 -1
  38. package/dist/commands/engage-command.js.map +1 -1
  39. package/dist/commands/engage-template-pull-command.js +1 -1
  40. package/dist/commands/engage-template-push-command.js +1 -1
  41. package/dist/commands/engage-template-validate-command.js +1 -1
  42. package/dist/commands/job-command.js +1 -1
  43. package/dist/commands/journey-command.js +1 -1
  44. package/dist/commands/journey-validate-command.js +1 -1
  45. package/dist/commands/llm-command.js +1 -1
  46. package/dist/commands/mcp-command.js +1 -1
  47. package/dist/commands/p13n-command.js +1 -1
  48. package/dist/commands/parent-segment-command.js +1 -1
  49. package/dist/commands/policy-command.js +1 -1
  50. package/dist/commands/profile-command.js +1 -1
  51. package/dist/commands/profiles-command.js +1 -1
  52. package/dist/commands/query-command.js +1 -1
  53. package/dist/commands/schedule-command.js +1 -1
  54. package/dist/commands/segment-command.js +1 -1
  55. package/dist/commands/segment-create-command.js +1 -1
  56. package/dist/commands/segment-fields-command.js +1 -1
  57. package/dist/commands/segment-move-command.js +1 -1
  58. package/dist/commands/segment-pull-command.js +1 -1
  59. package/dist/commands/segment-push-command.js +1 -1
  60. package/dist/commands/segment-update-command.js +1 -1
  61. package/dist/commands/segment-use-command.js +1 -1
  62. package/dist/commands/segment-validate-command.js +1 -1
  63. package/dist/commands/segments.js +1 -1
  64. package/dist/commands/show.js +1 -1
  65. package/dist/commands/status-command.js +1 -1
  66. package/dist/commands/table-deleted.js +1 -1
  67. package/dist/commands/tables.js +1 -1
  68. package/dist/commands/unset-command.js +1 -1
  69. package/dist/commands/upgrade-command.js +1 -1
  70. package/dist/commands/use-command.js +1 -1
  71. package/dist/commands/user-command.js +1 -1
  72. package/dist/commands/work-command.js +1 -1
  73. package/dist/commands/workflow-command.js +1 -1
  74. package/dist/core/auth.js +1 -1
  75. package/dist/core/command-output.js +1 -1
  76. package/dist/core/config.js +1 -1
  77. package/dist/core/connection-cache.js +1 -1
  78. package/dist/core/constants.js +1 -1
  79. package/dist/core/credential-cache.js +1 -1
  80. package/dist/core/global-context.js +1 -1
  81. package/dist/core/keychain.js +1 -1
  82. package/dist/core/oauth-keychain.js +1 -1
  83. package/dist/core/oauth.js +1 -1
  84. package/dist/core/profile.js +1 -1
  85. package/dist/core/project-config.js +1 -1
  86. package/dist/core/session.js +1 -1
  87. package/dist/core/site-mismatch.js +1 -1
  88. package/dist/core/user-cache.js +1 -1
  89. package/dist/core/version.d.ts +3 -3
  90. package/dist/core/version.d.ts.map +1 -1
  91. package/dist/core/version.js +1 -1
  92. package/dist/core/version.js.map +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/mcp/server.js +1 -1
  95. package/dist/mcp/tools/index.js +1 -1
  96. package/dist/mcp/tools/tdx-run.js +1 -1
  97. package/dist/mcp/tools/tdx-search.js +1 -1
  98. package/dist/mcp/tools/work-create-item.js +1 -1
  99. package/dist/mcp/utils.js +1 -1
  100. package/dist/proxy/claude-usage-tracker.js +1 -1
  101. package/dist/proxy/passthrough-server.js +1 -1
  102. package/dist/proxy/sse-usage-parser.js +1 -1
  103. package/dist/sdk/agent/agent-config.js +1 -1
  104. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/test/evaluator.js +1 -1
  107. package/dist/sdk/agent/test/executor.js +1 -1
  108. package/dist/sdk/agent/test/index.js +1 -1
  109. package/dist/sdk/agent/test/output.js +1 -1
  110. package/dist/sdk/agent/test/parser.js +1 -1
  111. package/dist/sdk/agent/tool-target-registry.js +1 -1
  112. package/dist/sdk/api.js +1 -1
  113. package/dist/sdk/auth-token.js +1 -1
  114. package/dist/sdk/cas/cas-api-client.js +1 -1
  115. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  116. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  117. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  118. package/dist/sdk/cas/cas-segment-schema.js +1 -1
  119. package/dist/sdk/cas/cas-segment-validator.js +1 -1
  120. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  121. package/dist/sdk/cas/index.js +1 -1
  122. package/dist/sdk/cas/pull-workflow.js +1 -1
  123. package/dist/sdk/cas/push-workflow.js +1 -1
  124. package/dist/sdk/cas/validate-files.js +1 -1
  125. package/dist/sdk/client/cdp-api-client.js +1 -1
  126. package/dist/sdk/client/delivery-api-client.js +1 -1
  127. package/dist/sdk/client/endpoints.js +1 -1
  128. package/dist/sdk/client/engage-api-client.js +1 -1
  129. package/dist/sdk/client/http-client.js +1 -1
  130. package/dist/sdk/client/llm-api-client.js +1 -1
  131. package/dist/sdk/client/oauth-refresh.js +1 -1
  132. package/dist/sdk/client/p13n-studio-api-client.js +1 -1
  133. package/dist/sdk/client/rate-limiter.js +1 -1
  134. package/dist/sdk/client/td-api-client.js +1 -1
  135. package/dist/sdk/client/trino-api-client.js +1 -1
  136. package/dist/sdk/client/workflow-client.js +1 -1
  137. package/dist/sdk/connection-validator.js +1 -1
  138. package/dist/sdk/connection.js +1 -1
  139. package/dist/sdk/delivery.js +1 -1
  140. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  141. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  142. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  143. package/dist/sdk/engage/always-on-campaign-yaml.d.ts.map +1 -1
  144. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  145. package/dist/sdk/engage/always-on-campaign-yaml.js.map +1 -1
  146. package/dist/sdk/engage/campaign-pull.js +1 -1
  147. package/dist/sdk/engage/campaign-push.js +1 -1
  148. package/dist/sdk/engage/campaign-validator.js +1 -1
  149. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  150. package/dist/sdk/engage/campaign-yaml.js +1 -1
  151. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  152. package/dist/sdk/engage/template-pull.js +1 -1
  153. package/dist/sdk/engage/template-push.js +1 -1
  154. package/dist/sdk/engage/template-validator.js +1 -1
  155. package/dist/sdk/engage/template-yaml.d.ts.map +1 -1
  156. package/dist/sdk/engage/template-yaml.js +1 -1
  157. package/dist/sdk/engage/template-yaml.js.map +1 -1
  158. package/dist/sdk/engage/types/always-on-campaign-schema.d.ts +1 -0
  159. package/dist/sdk/engage/types/always-on-campaign-schema.d.ts.map +1 -1
  160. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  161. package/dist/sdk/engage/types/campaign-def.js +1 -1
  162. package/dist/sdk/engage/types/campaign-schema.d.ts +2 -0
  163. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  164. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  165. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  166. package/dist/sdk/engage/types/template-schema.d.ts +1 -0
  167. package/dist/sdk/engage/types/template-schema.d.ts.map +1 -1
  168. package/dist/sdk/engage/types/template-schema.js +1 -1
  169. package/dist/sdk/engage/types/template-schema.js.map +1 -1
  170. package/dist/sdk/engage.js +1 -1
  171. package/dist/sdk/errors.js +1 -1
  172. package/dist/sdk/index.js +1 -1
  173. package/dist/sdk/io/index.js +1 -1
  174. package/dist/sdk/io/node-filesystem.js +1 -1
  175. package/dist/sdk/job.js +1 -1
  176. package/dist/sdk/journey.js +1 -1
  177. package/dist/sdk/llm/chat-cache.js +1 -1
  178. package/dist/sdk/llm/index.js +1 -1
  179. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  180. package/dist/sdk/llm/model-factors.js +1 -1
  181. package/dist/sdk/llm/user-settings.js +1 -1
  182. package/dist/sdk/p13n-studio.js +1 -1
  183. package/dist/sdk/personalization.js +1 -1
  184. package/dist/sdk/policy.js +1 -1
  185. package/dist/sdk/query/deleted-table-validation.js +1 -1
  186. package/dist/sdk/query/index.js +1 -1
  187. package/dist/sdk/query/sql-parser.js +1 -1
  188. package/dist/sdk/realtime.js +1 -1
  189. package/dist/sdk/schedule.js +1 -1
  190. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  191. package/dist/sdk/segment/fields-display.js +1 -1
  192. package/dist/sdk/segment/file-discovery.js +1 -1
  193. package/dist/sdk/segment/journey-utils.js +1 -1
  194. package/dist/sdk/segment/journey-validator.js +1 -1
  195. package/dist/sdk/segment/journey-yaml.js +1 -1
  196. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  197. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  198. package/dist/sdk/segment/pull-workflow.js +1 -1
  199. package/dist/sdk/segment/push-recovery.js +1 -1
  200. package/dist/sdk/segment/push-workflow.js +1 -1
  201. package/dist/sdk/segment/resolution-context.js +1 -1
  202. package/dist/sdk/segment/segment-path-parser.js +1 -1
  203. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  204. package/dist/sdk/segment/segment-validator.js +1 -1
  205. package/dist/sdk/segment/target-resolution.js +1 -1
  206. package/dist/sdk/segment/tdx-config.js +1 -1
  207. package/dist/sdk/segment/types/activation-schema.js +1 -1
  208. package/dist/sdk/segment/types/journey-def.js +1 -1
  209. package/dist/sdk/segment/types/journey-schema.js +1 -1
  210. package/dist/sdk/segment/types/segment-def.js +1 -1
  211. package/dist/sdk/segment/types/segment-schema.js +1 -1
  212. package/dist/sdk/segment/validate-files.js +1 -1
  213. package/dist/sdk/segment/yaml-validator.js +1 -1
  214. package/dist/sdk/segment.js +1 -1
  215. package/dist/sdk/types/engage.d.ts +8 -0
  216. package/dist/sdk/types/engage.d.ts.map +1 -1
  217. package/dist/sdk/types/index.js +1 -1
  218. package/dist/sdk/types/progress.js +1 -1
  219. package/dist/sdk/types/workspace.js +1 -1
  220. package/dist/sdk/user.js +1 -1
  221. package/dist/sdk/util/format-detector.js +1 -1
  222. package/dist/sdk/util/formatters.js +1 -1
  223. package/dist/sdk/util/index.js +1 -1
  224. package/dist/sdk/util/paginate.js +1 -1
  225. package/dist/sdk/util/tree-formatter.js +1 -1
  226. package/dist/sdk/util/tree-search.js +1 -1
  227. package/dist/sdk/workflow/archive-validation.js +1 -1
  228. package/dist/sdk/workflow/clone-workflow.js +1 -1
  229. package/dist/sdk/workflow/index.js +1 -1
  230. package/dist/sdk/workflow/pull-workflow.js +1 -1
  231. package/dist/sdk/workflow/push-workflow.js +1 -1
  232. package/dist/sdk/workflow/task-graph.js +1 -1
  233. package/dist/sdk/workflow/tdx-config.js +1 -1
  234. package/dist/sdk/workflow/workflow-utils.js +1 -1
  235. package/dist/sdk/workspace/access-tracker.js +1 -1
  236. package/dist/sdk/workspace/frontmatter.js +1 -1
  237. package/dist/sdk/workspace/git.js +1 -1
  238. package/dist/sdk/workspace/index.js +1 -1
  239. package/dist/sdk/workspace/templates.js +1 -1
  240. package/dist/sdk/workspace/weekly.js +1 -1
  241. package/dist/sdk/workspace/wikilinks.js +1 -1
  242. package/dist/test-utils/command-runner.js +1 -1
  243. package/dist/test-utils/factories.js +1 -1
  244. package/dist/test-utils/fixtures.js +1 -1
  245. package/dist/test-utils/http-mock.js +1 -1
  246. package/dist/test-utils/index.js +1 -1
  247. package/dist/utils/async.js +1 -1
  248. package/dist/utils/claude-code-state.js +1 -1
  249. package/dist/utils/colors.js +1 -1
  250. package/dist/utils/diff.js +1 -1
  251. package/dist/utils/file-permissions.js +1 -1
  252. package/dist/utils/file-reader.js +1 -1
  253. package/dist/utils/github-releases.js +1 -1
  254. package/dist/utils/global-cache.js +1 -1
  255. package/dist/utils/json-loader.js +1 -1
  256. package/dist/utils/local-cache.js +1 -1
  257. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  258. package/dist/utils/logger/formatters/index.js +1 -1
  259. package/dist/utils/logger/handlers/console-handler.js +1 -1
  260. package/dist/utils/logger/handlers/file-handler.js +1 -1
  261. package/dist/utils/logger/handlers/index.js +1 -1
  262. package/dist/utils/logger/handlers/null-handler.js +1 -1
  263. package/dist/utils/logger/index.js +1 -1
  264. package/dist/utils/logger/logger.js +1 -1
  265. package/dist/utils/logger/types.js +1 -1
  266. package/dist/utils/option-validation.js +1 -1
  267. package/dist/utils/process.js +1 -1
  268. package/dist/utils/prompt.js +1 -1
  269. package/dist/utils/proxy-fetch.js +1 -1
  270. package/dist/utils/spinner.js +1 -1
  271. package/dist/utils/sse-parser.js +1 -1
  272. package/dist/utils/string-utils.js +1 -1
  273. package/dist/utils/table-ref-parser.js +1 -1
  274. package/dist/utils/tdx-logger.js +1 -1
  275. package/dist/utils/version-check.js +1 -1
  276. package/package.json +2 -47
@@ -1 +1 @@
1
- function a262_0x1e0e(_0x436501,_0x1fafe6){_0x436501=_0x436501-0x19b;const _0x1dfaf7=a262_0x1dfa();let _0x1e0e33=_0x1dfaf7[_0x436501];return _0x1e0e33;}const a262_0x26e7c4=a262_0x1e0e;(function(_0x1233c1,_0x40711d){const _0x822c57=a262_0x1e0e,_0x42e649=_0x1233c1();while(!![]){try{const _0x4adca0=-parseInt(_0x822c57(0x1b6))/0x1*(-parseInt(_0x822c57(0x1aa))/0x2)+parseInt(_0x822c57(0x1b7))/0x3+parseInt(_0x822c57(0x1a5))/0x4*(-parseInt(_0x822c57(0x1ac))/0x5)+parseInt(_0x822c57(0x19d))/0x6*(-parseInt(_0x822c57(0x1c3))/0x7)+parseInt(_0x822c57(0x1ae))/0x8*(-parseInt(_0x822c57(0x1a1))/0x9)+parseInt(_0x822c57(0x1ad))/0xa+parseInt(_0x822c57(0x1af))/0xb;if(_0x4adca0===_0x40711d)break;else _0x42e649['push'](_0x42e649['shift']());}catch(_0x3c82db){_0x42e649['push'](_0x42e649['shift']());}}}(a262_0x1dfa,0xe4931));function a262_0x1dfa(){const _0x42d738=['63iNbKEt','now','stable','Request\x20timeout','4BTxkSk','tdx\x20upgrade','cyan','tdx\x20upgrade\x20--next','\x0aRun:\x20','2kUixTk','last_version_check_next','1994365XAedhG','332170ZvWTST','618568ZkFtkk','13790403toEkRJ','updateAvailable','toISOString','isTTY','dim','stderr','unref','590297sdRCrU','2172447ARguaO','destroy','yellow','error','write','channel','gray','version','\x0aUpdate\x20available:\x20','latestVersion','statusCode','socket','7qLVpVC','Update\x20available:','utils/version-check','last_version_check','currentVersion','4349850yKrGEx','next','read','HTTP\x20'];a262_0x1dfa=function(){return _0x42d738;};return a262_0x1dfa();}import{get}from'https';import{gt,valid}from'semver';import a262_0x599e6d 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(a262_0x26e7c4(0x19b),a262_0x26e7c4(0x1c5)),nextVersionCache=createGlobalCache(a262_0x26e7c4(0x1ab),'utils/version-check-next');function getCacheForChannel(_0x2baf35){return _0x2baf35==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x2208ff){const _0x4b7036=a262_0x26e7c4;return getCacheForChannel(_0x2208ff)[_0x4b7036(0x19f)]()??null;}function writeCache(_0x10edc3,_0x1a6693){const _0x3c957b=a262_0x26e7c4;try{getCacheForChannel(_0x1a6693)[_0x3c957b(0x1bb)]({'lastCheck':new Date()[_0x3c957b(0x1b1)](),'latestVersion':_0x10edc3});}catch{}}function isCacheValid(_0x432849){const _0x1ce456=a262_0x26e7c4;if(!_0x432849)return![];const _0xc921a1=new Date(_0x432849['lastCheck'])['getTime'](),_0x427475=Date[_0x1ce456(0x1a2)]();return _0x427475-_0xc921a1<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x127b5f='stable',_0x560906){const _0x1486f8=a262_0x26e7c4,_0x3f6b23=_0x560906?.['background']??![],_0x1e9a22=_0x127b5f===_0x1486f8(0x19e)?_0x1486f8(0x19e):'latest',_0x5c443c=NPM_REGISTRY_BASE+'/'+_0x1e9a22;return new Promise((_0x593ce3,_0x32b6eb)=>{const _0x51084c=_0x1486f8,_0x3ebdba=get(_0x5c443c,{'timeout':TIMEOUT_MS},_0x567eb4=>{const _0x265cc2=a262_0x1e0e;if(_0x567eb4['statusCode']!==0xc8){clearTimeout(_0x223d0d),_0x32b6eb(new Error(_0x265cc2(0x1a0)+_0x567eb4[_0x265cc2(0x1c1)]));return;}let _0xcaeb06='';_0x567eb4['on']('data',_0x53c155=>{_0xcaeb06+=_0x53c155;}),_0x567eb4['on']('end',()=>{const _0xe9a813=_0x265cc2;clearTimeout(_0x223d0d);try{const _0x5e9419=JSON['parse'](_0xcaeb06);if(!valid(_0x5e9419[_0xe9a813(0x1be)])){_0x32b6eb(new Error('Invalid\x20version\x20format'));return;}_0x593ce3(_0x5e9419[_0xe9a813(0x1be)]);}catch(_0x59b49f){_0x32b6eb(_0x59b49f);}});})['on'](_0x51084c(0x1ba),_0x5d0b25=>{clearTimeout(_0x223d0d),_0x32b6eb(_0x5d0b25);}),_0x223d0d=setTimeout(()=>{const _0xeed2e1=_0x51084c;_0x3ebdba[_0xeed2e1(0x1b8)](),_0x32b6eb(new Error(_0xeed2e1(0x1a4)));},TIMEOUT_MS);_0x3f6b23&&(_0x3ebdba['on'](_0x51084c(0x1c2),_0x75b60=>{const _0x22b6d1=_0x51084c;_0x75b60[_0x22b6d1(0x1b5)]();}),_0x223d0d[_0x51084c(0x1b5)]());});}export async function checkForUpdate(_0x1ad8a2,_0x2ecd92=a262_0x26e7c4(0x1a3)){const _0x44d6a3=a262_0x26e7c4;try{const _0x4c8d33=readCache(_0x2ecd92);if(isCacheValid(_0x4c8d33)){const _0x3fb210=gt(_0x4c8d33[_0x44d6a3(0x1c0)],_0x1ad8a2);return{'updateAvailable':_0x3fb210,'currentVersion':_0x1ad8a2,'latestVersion':_0x4c8d33[_0x44d6a3(0x1c0)],'channel':_0x2ecd92};}const _0x418348=await fetchLatestVersion(_0x2ecd92,{'background':!![]});writeCache(_0x418348,_0x2ecd92);const _0x29e97b=gt(_0x418348,_0x1ad8a2);return{'updateAvailable':_0x29e97b,'currentVersion':_0x1ad8a2,'latestVersion':_0x418348,'channel':_0x2ecd92};}catch{return null;}}export function displayUpdateNotification(_0x5aa01f){const _0x13303c=a262_0x26e7c4;if(!_0x5aa01f[_0x13303c(0x1b0)])return;const _0x47725a=_0x5aa01f[_0x13303c(0x1bc)]==='next'?_0x13303c(0x1a8):_0x13303c(0x1a6),_0x255c4e=process[_0x13303c(0x1b4)][_0x13303c(0x1b2)]&&!process.env.NO_COLOR,_0x34fe34=_0x255c4e?a262_0x599e6d[_0x13303c(0x1bd)]('→'):'→',_0x24f018=_0x255c4e?a262_0x599e6d['dim'](_0x5aa01f[_0x13303c(0x19c)]):_0x5aa01f[_0x13303c(0x19c)],_0x52d23b=_0x255c4e?a262_0x599e6d['green'](_0x5aa01f[_0x13303c(0x1c0)]):_0x5aa01f['latestVersion'],_0x1150fd=_0x255c4e?a262_0x599e6d[_0x13303c(0x1a7)](_0x47725a):_0x47725a,_0x5748ed=_0x255c4e?'\x0a'+a262_0x599e6d[_0x13303c(0x1b9)](_0x13303c(0x1c4))+'\x20'+_0x24f018+'\x20'+_0x34fe34+'\x20'+_0x52d23b+'\x0a'+a262_0x599e6d[_0x13303c(0x1b3)]('Run:')+'\x20'+_0x1150fd+'\x0a':_0x13303c(0x1bf)+_0x24f018+'\x20'+_0x34fe34+'\x20'+_0x52d23b+_0x13303c(0x1a9)+_0x1150fd+'\x0a';process[_0x13303c(0x1b4)][_0x13303c(0x1bb)](_0x5748ed);}
1
+ const a263_0x156932=a263_0x3d17;(function(_0x38be52,_0x58d9b7){const _0x369da7=a263_0x3d17,_0x2ab060=_0x38be52();while(!![]){try{const _0x2e436c=parseInt(_0x369da7(0x95))/0x1+-parseInt(_0x369da7(0x89))/0x2+parseInt(_0x369da7(0xa7))/0x3*(parseInt(_0x369da7(0x87))/0x4)+-parseInt(_0x369da7(0xa0))/0x5+parseInt(_0x369da7(0x8c))/0x6*(parseInt(_0x369da7(0xad))/0x7)+parseInt(_0x369da7(0x9d))/0x8*(parseInt(_0x369da7(0xa9))/0x9)+-parseInt(_0x369da7(0x94))/0xa;if(_0x2e436c===_0x58d9b7)break;else _0x2ab060['push'](_0x2ab060['shift']());}catch(_0x1139ea){_0x2ab060['push'](_0x2ab060['shift']());}}}(a263_0x3faa,0xdfc2d));function a263_0x3d17(_0x434201,_0x1a6b20){_0x434201=_0x434201-0x86;const _0x3faa0d=a263_0x3faa();let _0x3d1702=_0x3faa0d[_0x434201];return _0x3d1702;}import{get}from'https';function a263_0x3faa(){const _0x57ae26=['\x0aUpdate\x20available:\x20','9BrYMOf','Run:','2187279qDMjCs','latest','version','cyan','138677Mpfkmc','unref','read','1275656OAJMWW','last_version_check','989012RViBwl','HTTP\x20','currentVersion','366IGJpGr','tdx\x20upgrade','Request\x20timeout','isTTY','dim','latestVersion','stderr','statusCode','13148620kcUzLz','804035fvDCzy','socket','write','Update\x20available:','Invalid\x20version\x20format','stable','utils/version-check','next','32OfttNJ','utils/version-check-next','toISOString','6077395eiuCvw','now','channel','tdx\x20upgrade\x20--next','https://registry.npmjs.org/@treasuredata/tdx','updateAvailable'];a263_0x3faa=function(){return _0x57ae26;};return a263_0x3faa();}import{gt,valid}from'semver';import a263_0x1b8c83 from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a263_0x156932(0xa4),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache(a263_0x156932(0x88),a263_0x156932(0x9b)),nextVersionCache=createGlobalCache('last_version_check_next',a263_0x156932(0x9e));function getCacheForChannel(_0x2676c8){return _0x2676c8==='next'?nextVersionCache:stableVersionCache;}function readCache(_0x5d86){const _0x5333c5=a263_0x156932;return getCacheForChannel(_0x5d86)[_0x5333c5(0x86)]()??null;}function writeCache(_0x2e6d59,_0x49b6d9){const _0x3af498=a263_0x156932;try{getCacheForChannel(_0x49b6d9)['write']({'lastCheck':new Date()[_0x3af498(0x9f)](),'latestVersion':_0x2e6d59});}catch{}}function isCacheValid(_0x50c9e0){const _0x3929c8=a263_0x156932;if(!_0x50c9e0)return![];const _0x5447ee=new Date(_0x50c9e0['lastCheck'])['getTime'](),_0x41fd80=Date[_0x3929c8(0xa1)]();return _0x41fd80-_0x5447ee<CACHE_DURATION_MS;}export function fetchLatestVersion(_0x1303f8=a263_0x156932(0x9a),_0xbfbeac){const _0x4f2776=a263_0x156932,_0x1c4a9f=_0xbfbeac?.['background']??![],_0x3372fe=_0x1303f8===_0x4f2776(0x9c)?_0x4f2776(0x9c):_0x4f2776(0xaa),_0x12714f=NPM_REGISTRY_BASE+'/'+_0x3372fe;return new Promise((_0x571e43,_0x45eb66)=>{const _0x5e7b4a=_0x4f2776,_0x468f7f=get(_0x12714f,{'timeout':TIMEOUT_MS},_0x52ac04=>{const _0x4968b1=a263_0x3d17;if(_0x52ac04[_0x4968b1(0x93)]!==0xc8){clearTimeout(_0x4060db),_0x45eb66(new Error(_0x4968b1(0x8a)+_0x52ac04['statusCode']));return;}let _0x22b95f='';_0x52ac04['on']('data',_0x229720=>{_0x22b95f+=_0x229720;}),_0x52ac04['on']('end',()=>{const _0x4670ff=_0x4968b1;clearTimeout(_0x4060db);try{const _0x4cab6c=JSON['parse'](_0x22b95f);if(!valid(_0x4cab6c[_0x4670ff(0xab)])){_0x45eb66(new Error(_0x4670ff(0x99)));return;}_0x571e43(_0x4cab6c[_0x4670ff(0xab)]);}catch(_0x479942){_0x45eb66(_0x479942);}});})['on']('error',_0x4c2d22=>{clearTimeout(_0x4060db),_0x45eb66(_0x4c2d22);}),_0x4060db=setTimeout(()=>{const _0xf42da6=a263_0x3d17;_0x468f7f['destroy'](),_0x45eb66(new Error(_0xf42da6(0x8e)));},TIMEOUT_MS);_0x1c4a9f&&(_0x468f7f['on'](_0x5e7b4a(0x96),_0x4396cf=>{const _0x5de53e=_0x5e7b4a;_0x4396cf[_0x5de53e(0xae)]();}),_0x4060db['unref']());});}export async function checkForUpdate(_0x430017,_0x1a4efc=a263_0x156932(0x9a)){const _0xc5bba4=a263_0x156932;try{const _0x1bb1af=readCache(_0x1a4efc);if(isCacheValid(_0x1bb1af)){const _0x50cffc=gt(_0x1bb1af[_0xc5bba4(0x91)],_0x430017);return{'updateAvailable':_0x50cffc,'currentVersion':_0x430017,'latestVersion':_0x1bb1af[_0xc5bba4(0x91)],'channel':_0x1a4efc};}const _0x27736c=await fetchLatestVersion(_0x1a4efc,{'background':!![]});writeCache(_0x27736c,_0x1a4efc);const _0x48b5b8=gt(_0x27736c,_0x430017);return{'updateAvailable':_0x48b5b8,'currentVersion':_0x430017,'latestVersion':_0x27736c,'channel':_0x1a4efc};}catch{return null;}}export function displayUpdateNotification(_0x216940){const _0x489fdb=a263_0x156932;if(!_0x216940[_0x489fdb(0xa5)])return;const _0x3b07c3=_0x216940[_0x489fdb(0xa2)]==='next'?_0x489fdb(0xa3):_0x489fdb(0x8d),_0x2687e2=process[_0x489fdb(0x92)][_0x489fdb(0x8f)]&&!process.env.NO_COLOR,_0x16ed16=_0x2687e2?a263_0x1b8c83['gray']('→'):'→',_0x39ea6d=_0x2687e2?a263_0x1b8c83[_0x489fdb(0x90)](_0x216940[_0x489fdb(0x8b)]):_0x216940[_0x489fdb(0x8b)],_0x7b5c5b=_0x2687e2?a263_0x1b8c83['green'](_0x216940['latestVersion']):_0x216940[_0x489fdb(0x91)],_0x11e910=_0x2687e2?a263_0x1b8c83[_0x489fdb(0xac)](_0x3b07c3):_0x3b07c3,_0x30150a=_0x2687e2?'\x0a'+a263_0x1b8c83['yellow'](_0x489fdb(0x98))+'\x20'+_0x39ea6d+'\x20'+_0x16ed16+'\x20'+_0x7b5c5b+'\x0a'+a263_0x1b8c83[_0x489fdb(0x90)](_0x489fdb(0xa8))+'\x20'+_0x11e910+'\x0a':_0x489fdb(0xa6)+_0x39ea6d+'\x20'+_0x16ed16+'\x20'+_0x7b5c5b+'\x0aRun:\x20'+_0x11e910+'\x0a';process['stderr'][_0x489fdb(0x97)](_0x30150a);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "2026.8.5",
3
+ "version": "2026.8.6",
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": {
@@ -29,7 +29,7 @@
29
29
  "scripts": {
30
30
  "build:info": "node scripts/generate-build-info.mjs",
31
31
  "build:ts": "pnpm run build:info && tsc && chmod +x dist/bin.js && cp src/build-info.json dist/build-info.json && cp -r src/sdk/workspace/builtin-schedules dist/sdk/workspace/builtin-schedules && node -e \"require('fs').copyFileSync('dist/bin.js','dist/tdx')\"",
32
- "build:install": "pnpm run build:ts && pnpm link --global",
32
+ "build:install": "pnpm run build:ts && node scripts/install-dev.mjs",
33
33
  "build:obfuscate": "javascript-obfuscator ./dist --output ./dist",
34
34
  "build": "pnpm run build:ts && pnpm run build:obfuscate",
35
35
  "prepare": "lefthook install || echo 'lefthook not installed, skipping hooks'",
@@ -112,50 +112,5 @@
112
112
  "typedoc-vitepress-theme": "^1.1.2",
113
113
  "typescript": "^6.0.3",
114
114
  "vitest": "^4.0.6"
115
- },
116
- "pnpm": {
117
- "overrides": {
118
- "dompurify": "^3.4.12",
119
- "vite-plugin-singlefile>vite": "^8.0.8",
120
- "vitepress-plugin-mermaid>vitepress": "2.0.0-alpha.17",
121
- "qs@>=6.11.1 <6.15.2": "^6.15.2",
122
- "ip-address@<=10.1.0": "^10.1.1",
123
- "@xmldom/xmldom@<0.8.13": "^0.8.13",
124
- "fast-uri@<3.1.4": "^3.1.4",
125
- "hono@<4.12.27": "^4.12.27",
126
- "@hono/node-server@<2.0.5": "^2.0.5",
127
- "js-yaml@>=4.0.0 <4.3.0": "^4.3.0",
128
- "tar@<7.5.21": "^7.5.21",
129
- "body-parser@>=2.0.0 <2.3.0": "^2.3.0",
130
- "find-my-way@<9.7.0": "^9.7.0",
131
- "@babel/core@<=7.29.0": "^7.29.6",
132
- "app-builder-lib@<26.15.0": "^26.15.0",
133
- "builder-util-runtime@<9.7.0": "^9.7.0"
134
- },
135
- "onlyBuiltDependencies": [
136
- "@evilmartians/lefthook",
137
- "@napi-rs/canvas",
138
- "@napi-rs/keyring",
139
- "@recallai/desktop-sdk",
140
- "electron",
141
- "electron-winstaller",
142
- "esbuild",
143
- "javascript-obfuscator"
144
- ],
145
- "supportedArchitectures": {
146
- "os": [
147
- "darwin",
148
- "linux",
149
- "win32"
150
- ],
151
- "cpu": [
152
- "x64",
153
- "arm64"
154
- ],
155
- "libc": [
156
- "glibc",
157
- "musl"
158
- ]
159
- }
160
115
  }
161
116
  }