@treasuredata/tdx 2026.3.25 → 2026.3.27

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 (208) 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/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.d.ts.map +1 -1
  65. package/dist/core/oauth.js +1 -1
  66. package/dist/core/oauth.js.map +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/utils.js +1 -1
  78. package/dist/proxy/claude-usage-tracker.js +1 -1
  79. package/dist/proxy/passthrough-server.js +1 -1
  80. package/dist/proxy/sse-usage-parser.js +1 -1
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/agent/test/evaluator.js +1 -1
  85. package/dist/sdk/agent/test/executor.js +1 -1
  86. package/dist/sdk/agent/test/index.js +1 -1
  87. package/dist/sdk/agent/test/output.js +1 -1
  88. package/dist/sdk/agent/test/parser.js +1 -1
  89. package/dist/sdk/agent/tool-target-registry.js +1 -1
  90. package/dist/sdk/api.js +1 -1
  91. package/dist/sdk/client/cdp-api-client.js +1 -1
  92. package/dist/sdk/client/delivery-api-client.js +1 -1
  93. package/dist/sdk/client/endpoints.js +1 -1
  94. package/dist/sdk/client/engage-api-client.js +1 -1
  95. package/dist/sdk/client/http-client.js +1 -1
  96. package/dist/sdk/client/llm-api-client.js +1 -1
  97. package/dist/sdk/client/oauth-refresh.js +1 -1
  98. package/dist/sdk/client/rate-limiter.js +1 -1
  99. package/dist/sdk/client/td-api-client.js +1 -1
  100. package/dist/sdk/client/trino-api-client.js +1 -1
  101. package/dist/sdk/client/workflow-client.js +1 -1
  102. package/dist/sdk/connection-validator.js +1 -1
  103. package/dist/sdk/connection.js +1 -1
  104. package/dist/sdk/delivery.js +1 -1
  105. package/dist/sdk/engage/campaign-pull.js +1 -1
  106. package/dist/sdk/engage/campaign-push.js +1 -1
  107. package/dist/sdk/engage/campaign-validator.js +1 -1
  108. package/dist/sdk/engage/campaign-yaml.js +1 -1
  109. package/dist/sdk/engage/template-pull.js +1 -1
  110. package/dist/sdk/engage/template-push.js +1 -1
  111. package/dist/sdk/engage/template-validator.js +1 -1
  112. package/dist/sdk/engage/template-yaml.js +1 -1
  113. package/dist/sdk/engage/types/campaign-def.js +1 -1
  114. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  115. package/dist/sdk/engage/types/template-schema.js +1 -1
  116. package/dist/sdk/engage.js +1 -1
  117. package/dist/sdk/errors.js +1 -1
  118. package/dist/sdk/index.js +1 -1
  119. package/dist/sdk/io/index.js +1 -1
  120. package/dist/sdk/io/node-filesystem.js +1 -1
  121. package/dist/sdk/job.js +1 -1
  122. package/dist/sdk/journey.js +1 -1
  123. package/dist/sdk/llm/chat-cache.js +1 -1
  124. package/dist/sdk/llm/index.js +1 -1
  125. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  126. package/dist/sdk/llm/model-factors.js +1 -1
  127. package/dist/sdk/personalization.js +1 -1
  128. package/dist/sdk/policy.js +1 -1
  129. package/dist/sdk/query/index.js +1 -1
  130. package/dist/sdk/query/sql-parser.js +1 -1
  131. package/dist/sdk/realtime.js +1 -1
  132. package/dist/sdk/schedule.js +1 -1
  133. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  134. package/dist/sdk/segment/fields-display.js +1 -1
  135. package/dist/sdk/segment/file-discovery.js +1 -1
  136. package/dist/sdk/segment/journey-utils.js +1 -1
  137. package/dist/sdk/segment/journey-validator.js +1 -1
  138. package/dist/sdk/segment/journey-yaml.js +1 -1
  139. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  140. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/pull-workflow.js +1 -1
  142. package/dist/sdk/segment/push-recovery.js +1 -1
  143. package/dist/sdk/segment/push-workflow.js +1 -1
  144. package/dist/sdk/segment/resolution-context.js +1 -1
  145. package/dist/sdk/segment/segment-path-parser.js +1 -1
  146. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  147. package/dist/sdk/segment/segment-validator.js +1 -1
  148. package/dist/sdk/segment/target-resolution.js +1 -1
  149. package/dist/sdk/segment/tdx-config.js +1 -1
  150. package/dist/sdk/segment/types/activation-schema.js +1 -1
  151. package/dist/sdk/segment/types/journey-def.js +1 -1
  152. package/dist/sdk/segment/types/journey-schema.js +1 -1
  153. package/dist/sdk/segment/types/segment-def.js +1 -1
  154. package/dist/sdk/segment/types/segment-schema.js +1 -1
  155. package/dist/sdk/segment/validate-files.js +1 -1
  156. package/dist/sdk/segment/yaml-validator.js +1 -1
  157. package/dist/sdk/segment.d.ts +5 -0
  158. package/dist/sdk/segment.d.ts.map +1 -1
  159. package/dist/sdk/segment.js +1 -1
  160. package/dist/sdk/segment.js.map +1 -1
  161. package/dist/sdk/types/index.js +1 -1
  162. package/dist/sdk/types/progress.js +1 -1
  163. package/dist/sdk/user.js +1 -1
  164. package/dist/sdk/util/format-detector.js +1 -1
  165. package/dist/sdk/util/formatters.js +1 -1
  166. package/dist/sdk/util/index.js +1 -1
  167. package/dist/sdk/util/paginate.js +1 -1
  168. package/dist/sdk/util/tree-formatter.js +1 -1
  169. package/dist/sdk/workflow/archive-validation.js +1 -1
  170. package/dist/sdk/workflow/clone-workflow.js +1 -1
  171. package/dist/sdk/workflow/index.js +1 -1
  172. package/dist/sdk/workflow/pull-workflow.js +1 -1
  173. package/dist/sdk/workflow/push-workflow.js +1 -1
  174. package/dist/sdk/workflow/tdx-config.js +1 -1
  175. package/dist/sdk/workflow/workflow-utils.js +1 -1
  176. package/dist/test-utils/command-runner.js +1 -1
  177. package/dist/test-utils/factories.js +1 -1
  178. package/dist/test-utils/fixtures.js +1 -1
  179. package/dist/test-utils/http-mock.js +1 -1
  180. package/dist/test-utils/index.js +1 -1
  181. package/dist/utils/async.js +1 -1
  182. package/dist/utils/colors.js +1 -1
  183. package/dist/utils/diff.js +1 -1
  184. package/dist/utils/file-permissions.js +1 -1
  185. package/dist/utils/file-reader.js +1 -1
  186. package/dist/utils/github-releases.js +1 -1
  187. package/dist/utils/global-cache.js +1 -1
  188. package/dist/utils/json-loader.js +1 -1
  189. package/dist/utils/local-cache.js +1 -1
  190. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  191. package/dist/utils/logger/formatters/index.js +1 -1
  192. package/dist/utils/logger/handlers/console-handler.js +1 -1
  193. package/dist/utils/logger/handlers/file-handler.js +1 -1
  194. package/dist/utils/logger/handlers/index.js +1 -1
  195. package/dist/utils/logger/handlers/null-handler.js +1 -1
  196. package/dist/utils/logger/index.js +1 -1
  197. package/dist/utils/logger/logger.js +1 -1
  198. package/dist/utils/logger/types.js +1 -1
  199. package/dist/utils/option-validation.js +1 -1
  200. package/dist/utils/process.js +1 -1
  201. package/dist/utils/prompt.js +1 -1
  202. package/dist/utils/spinner.js +1 -1
  203. package/dist/utils/sse-parser.js +1 -1
  204. package/dist/utils/string-utils.js +1 -1
  205. package/dist/utils/table-ref-parser.js +1 -1
  206. package/dist/utils/tdx-logger.js +1 -1
  207. package/dist/utils/version-check.js +1 -1
  208. package/package.json +1 -1
@@ -1 +1 @@
1
- const a49_0xf2d16=a49_0x4e40;(function(_0x5002be,_0x32bf71){const _0x2b8e61=a49_0x4e40,_0x5072b3=_0x5002be();while(!![]){try{const _0x2f7bd8=parseInt(_0x2b8e61(0x14f))/0x1*(-parseInt(_0x2b8e61(0x147))/0x2)+-parseInt(_0x2b8e61(0x15b))/0x3*(parseInt(_0x2b8e61(0x145))/0x4)+parseInt(_0x2b8e61(0x146))/0x5+parseInt(_0x2b8e61(0x159))/0x6*(-parseInt(_0x2b8e61(0x151))/0x7)+-parseInt(_0x2b8e61(0x152))/0x8*(-parseInt(_0x2b8e61(0x153))/0x9)+parseInt(_0x2b8e61(0x142))/0xa+-parseInt(_0x2b8e61(0x162))/0xb*(parseInt(_0x2b8e61(0x15a))/0xc);if(_0x2f7bd8===_0x32bf71)break;else _0x5072b3['push'](_0x5072b3['shift']());}catch(_0x4e8276){_0x5072b3['push'](_0x5072b3['shift']());}}}(a49_0x1499,0xcee68));import{gt}from'semver';import a49_0x4894f1 from'chalk';import{BaseCommand}from'./command.js';import{getVersion,isDevVersion}from'../core/version.js';import{loadReleaseChannel}from'../core/config.js';import{fetchLatestVersion}from'../utils/version-check.js';import{crossSpawn}from'../utils/process.js';const PACKAGE_NAME='@treasuredata/tdx';export function detectPackageManager(){const _0x40cb55=a49_0x4e40,_0x565761=process['execPath'][_0x40cb55(0x143)](),_0x1eaae7=process[_0x40cb55(0x141)][0x1]??'';if(_0x565761[_0x40cb55(0x13f)](_0x40cb55(0x14a))||_0x1eaae7[_0x40cb55(0x13f)](_0x40cb55(0x140)))return _0x40cb55(0x14a);if(_0x1eaae7['includes'](_0x40cb55(0x160)))return _0x40cb55(0x160);if(_0x1eaae7[_0x40cb55(0x13f)]('yarn'))return _0x40cb55(0x14b);return _0x40cb55(0x13d);}export function buildInstallArgs(_0xadf574,_0x27e343){const _0xe665dd=a49_0x4e40;switch(_0xadf574){case _0xe665dd(0x14b):return[_0xe665dd(0x154),_0xe665dd(0x167),_0x27e343];case _0xe665dd(0x160):return[_0xe665dd(0x167),'-g',_0x27e343];default:return[_0xe665dd(0x14e),'-g',_0x27e343];}}function a49_0x4e40(_0x4ad7aa,_0x27c7b1){_0x4ad7aa=_0x4ad7aa-0x13a;const _0x1499a0=a49_0x1499();let _0x4e403c=_0x1499a0[_0x4ad7aa];return _0x4e403c;}export class UpgradeCommand extends BaseCommand{[a49_0xf2d16(0x163)]='upgrade';['description']='Upgrade\x20tdx\x20to\x20the\x20latest\x20version';async[a49_0xf2d16(0x14d)](_0x5e7895){const _0x30a6b5=a49_0xf2d16,{options:_0x9aee3a,args:_0x6b5a8f}=_0x5e7895,_0xc64c74=!!_0x9aee3a['dryRun'],{next:_0x27e371,method:_0x56aa6d}=_0x9aee3a,_0x3edfeb=_0x27e371?_0x30a6b5(0x150):loadReleaseChannel(),_0x16a1f2=_0x3edfeb==='next'?_0x30a6b5(0x150):_0x30a6b5(0x15c),_0x32d237=_0x6b5a8f[0x0]?String(_0x6b5a8f[0x0])['replace'](/^v/,''):undefined,_0x39db94=getVersion();if(isDevVersion())return console[_0x30a6b5(0x157)](a49_0x4894f1[_0x30a6b5(0x144)](_0x30a6b5(0x161))),console[_0x30a6b5(0x157)](a49_0x4894f1['dim'](_0x30a6b5(0x15f)+_0x39db94)),0x1;let _0x488cf8;if(_0x32d237)_0x488cf8=_0x32d237,console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x13e)](_0x30a6b5(0x14c))+'\x20'+_0x39db94),console[_0x30a6b5(0x164)](a49_0x4894f1['dim'](_0x30a6b5(0x15e))+'\x20\x20'+a49_0x4894f1[_0x30a6b5(0x165)](_0x32d237)),console[_0x30a6b5(0x164)]();else{console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x13e)](_0x30a6b5(0x156)+PACKAGE_NAME+'@'+_0x16a1f2+_0x30a6b5(0x13b)));try{_0x488cf8=await fetchLatestVersion(_0x3edfeb);}catch(_0x11dee8){return console['error'](a49_0x4894f1[_0x30a6b5(0x155)](_0x30a6b5(0x13a)+(_0x11dee8 instanceof Error?_0x11dee8['message']:String(_0x11dee8)))),0x1;}if(!gt(_0x488cf8,_0x39db94))return console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x165)](_0x30a6b5(0x168)+_0x39db94+').')),0x0;console['log'](a49_0x4894f1[_0x30a6b5(0x13e)](_0x30a6b5(0x14c))+'\x20'+_0x39db94),console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x13e)]('Latest\x20version:')+'\x20\x20'+a49_0x4894f1[_0x30a6b5(0x165)](_0x488cf8)),console[_0x30a6b5(0x164)]();}const _0x5352c1=_0x56aa6d??detectPackageManager(),_0x567e84=_0x32d237?PACKAGE_NAME+'@'+_0x32d237:PACKAGE_NAME+'@'+_0x16a1f2,_0x39c668=buildInstallArgs(_0x5352c1,_0x567e84);if(_0xc64c74)return console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x13e)]('Would\x20run:')),console['log']('\x20\x20'+a49_0x4894f1[_0x30a6b5(0x148)](_0x5352c1+'\x20'+_0x39c668[_0x30a6b5(0x15d)]('\x20'))),0x0;return console[_0x30a6b5(0x164)](a49_0x4894f1[_0x30a6b5(0x13e)](_0x30a6b5(0x149))+'\x20'+_0x5352c1+'\x20'+_0x39c668[_0x30a6b5(0x15d)]('\x20')),console[_0x30a6b5(0x164)](),new Promise(_0x332c35=>{const _0x394dd4=_0x30a6b5,_0x1d11fe=crossSpawn(_0x5352c1,_0x39c668,{'stdio':'inherit'});_0x1d11fe['on']('close',_0x273297=>{const _0xbc737e=a49_0x4e40;console[_0xbc737e(0x164)](),_0x273297===0x0?console[_0xbc737e(0x164)](a49_0x4894f1[_0xbc737e(0x165)]('Successfully\x20upgraded\x20to\x20'+_0x567e84)):console[_0xbc737e(0x157)](a49_0x4894f1[_0xbc737e(0x155)](_0xbc737e(0x158)+_0x273297+').')),_0x332c35(_0x273297??0x1);}),_0x1d11fe['on'](_0x394dd4(0x157),_0x33f80f=>{const _0x4184b9=_0x394dd4;console[_0x4184b9(0x157)](a49_0x4894f1[_0x4184b9(0x155)](_0x4184b9(0x166)+_0x5352c1+':\x20'+_0x33f80f[_0x4184b9(0x13c)])),_0x332c35(0x1);});});}}function a49_0x1499(){const _0x3b26f4=['Upgrade\x20failed\x20(exit\x20code\x20','1146858nrFsjm','4772220MKFkIW','3cSMsjI','latest','join','Target\x20version:','Current\x20version:\x20','pnpm','Upgrade\x20is\x20not\x20available\x20for\x20development\x20versions.','55yDXqCY','name','log','green','Failed\x20to\x20run\x20','add','Already\x20up\x20to\x20date\x20(','Failed\x20to\x20check\x20for\x20updates:\x20','...','message','npm','dim','includes','.bun/','argv','16183430pLzMvp','toLowerCase','yellow','109636nXSdwK','6800335wKaRyS','6976UxYLoD','cyan','Running:','bun','yarn','Current\x20version:','execute','install','92QYtpui','next','35RAeazC','9291992MDhxTQ','9MDCyCb','global','red','Checking\x20','error'];a49_0x1499=function(){return _0x3b26f4;};return a49_0x1499();}
1
+ const a49_0x157b48=a49_0x4622;function a49_0x1845(){const _0x5e71ce=['9OwmBuU','log','22zoXINW','.bun/','toLowerCase','error','Upgrade\x20failed\x20(exit\x20code\x20','Already\x20up\x20to\x20date\x20(','name','301ZSDwUC','Would\x20run:','cyan','2614781zWJmVI','Successfully\x20upgraded\x20to\x20','Latest\x20version:','5976Uiyvla','global','1644948VtbBVv','1004TELJqM','yellow','Checking\x20','add','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','bun','2VINVIa','pnpm','yarn','npm','912995AQLnfL','install','Current\x20version:\x20','inherit','latest','includes','dryRun','green','Failed\x20to\x20check\x20for\x20updates:\x20','Target\x20version:','397753WLsebA','close','description','red','dim','join','message','Running:','Current\x20version:','4098970FXLPjW','next','...','18968QUATNo','12BPbMLc','replace'];a49_0x1845=function(){return _0x5e71ce;};return a49_0x1845();}function a49_0x4622(_0x35455d,_0x35c541){_0x35455d=_0x35455d-0xa4;const _0x184566=a49_0x1845();let _0x4622e4=_0x184566[_0x35455d];return _0x4622e4;}(function(_0x29e21f,_0x5c2886){const _0x25bbf2=a49_0x4622,_0x2a5f2e=_0x29e21f();while(!![]){try{const _0x32187b=parseInt(_0x25bbf2(0xa7))/0x1*(parseInt(_0x25bbf2(0xce))/0x2)+-parseInt(_0x25bbf2(0xc5))/0x3*(parseInt(_0x25bbf2(0xc8))/0x4)+parseInt(_0x25bbf2(0xd2))/0x5*(parseInt(_0x25bbf2(0xb4))/0x6)+-parseInt(_0x25bbf2(0xbf))/0x7*(-parseInt(_0x25bbf2(0xb3))/0x8)+parseInt(_0x25bbf2(0xb6))/0x9*(parseInt(_0x25bbf2(0xb0))/0xa)+parseInt(_0x25bbf2(0xb8))/0xb*(-parseInt(_0x25bbf2(0xc7))/0xc)+-parseInt(_0x25bbf2(0xc2))/0xd;if(_0x32187b===_0x5c2886)break;else _0x2a5f2e['push'](_0x2a5f2e['shift']());}catch(_0x4f8cbd){_0x2a5f2e['push'](_0x2a5f2e['shift']());}}}(a49_0x1845,0x491fa));import{gt}from'semver';import a49_0x84f698 from'chalk';import{BaseCommand}from'./command.js';import{getVersion,isDevVersion}from'../core/version.js';import{loadReleaseChannel}from'../core/config.js';import{fetchLatestVersion}from'../utils/version-check.js';import{crossSpawn}from'../utils/process.js';const PACKAGE_NAME='@treasuredata/tdx';export function detectPackageManager(){const _0x16828d=a49_0x4622,_0x530b48=process['execPath'][_0x16828d(0xba)](),_0x46da0f=process['argv'][0x1]??'';if(_0x530b48[_0x16828d(0xd7)](_0x16828d(0xcd))||_0x46da0f[_0x16828d(0xd7)](_0x16828d(0xb9)))return _0x16828d(0xcd);if(_0x46da0f[_0x16828d(0xd7)](_0x16828d(0xcf)))return _0x16828d(0xcf);if(_0x46da0f[_0x16828d(0xd7)](_0x16828d(0xd0)))return _0x16828d(0xd0);return _0x16828d(0xd1);}export function buildInstallArgs(_0x460204,_0x4af50c){const _0x3b90e6=a49_0x4622;switch(_0x460204){case _0x3b90e6(0xd0):return[_0x3b90e6(0xc6),_0x3b90e6(0xcb),_0x4af50c];case _0x3b90e6(0xcf):return['add','-g',_0x4af50c];default:return[_0x3b90e6(0xd3),'-g',_0x4af50c];}}export class UpgradeCommand extends BaseCommand{[a49_0x157b48(0xbe)]='upgrade';[a49_0x157b48(0xa9)]=a49_0x157b48(0xcc);async['execute'](_0x28a719){const _0x442704=a49_0x157b48,{options:_0x97bba6,args:_0x295abb}=_0x28a719,_0x543d8b=!!_0x97bba6[_0x442704(0xd8)],{next:_0x2f7682,method:_0x41bfb7}=_0x97bba6,_0x4b7ba4=_0x2f7682?_0x442704(0xb1):loadReleaseChannel(),_0x29bf7a=_0x4b7ba4===_0x442704(0xb1)?_0x442704(0xb1):_0x442704(0xd6),_0x41e6d7=_0x295abb[0x0]?String(_0x295abb[0x0])[_0x442704(0xb5)](/^v/,''):undefined,_0x75fd04=getVersion();if(isDevVersion())return console[_0x442704(0xbb)](a49_0x84f698[_0x442704(0xc9)]('Upgrade\x20is\x20not\x20available\x20for\x20development\x20versions.')),console['error'](a49_0x84f698[_0x442704(0xab)](_0x442704(0xd4)+_0x75fd04)),0x1;let _0x16e256;if(_0x41e6d7)_0x16e256=_0x41e6d7,console[_0x442704(0xb7)](a49_0x84f698['dim'](_0x442704(0xaf))+'\x20'+_0x75fd04),console[_0x442704(0xb7)](a49_0x84f698[_0x442704(0xab)](_0x442704(0xa6))+'\x20\x20'+a49_0x84f698[_0x442704(0xa4)](_0x41e6d7)),console[_0x442704(0xb7)]();else{console['log'](a49_0x84f698['dim'](_0x442704(0xca)+PACKAGE_NAME+'@'+_0x29bf7a+_0x442704(0xb2)));try{_0x16e256=await fetchLatestVersion(_0x4b7ba4);}catch(_0xea9125){return console[_0x442704(0xbb)](a49_0x84f698[_0x442704(0xaa)](_0x442704(0xa5)+(_0xea9125 instanceof Error?_0xea9125[_0x442704(0xad)]:String(_0xea9125)))),0x1;}if(!gt(_0x16e256,_0x75fd04))return console[_0x442704(0xb7)](a49_0x84f698[_0x442704(0xa4)](_0x442704(0xbd)+_0x75fd04+').')),0x0;console[_0x442704(0xb7)](a49_0x84f698['dim'](_0x442704(0xaf))+'\x20'+_0x75fd04),console[_0x442704(0xb7)](a49_0x84f698[_0x442704(0xab)](_0x442704(0xc4))+'\x20\x20'+a49_0x84f698[_0x442704(0xa4)](_0x16e256)),console[_0x442704(0xb7)]();}const _0x4c4029=_0x41bfb7??detectPackageManager(),_0x379b84=_0x41e6d7?PACKAGE_NAME+'@'+_0x41e6d7:PACKAGE_NAME+'@'+_0x29bf7a,_0x32629f=buildInstallArgs(_0x4c4029,_0x379b84);if(_0x543d8b)return console['log'](a49_0x84f698['dim'](_0x442704(0xc0))),console[_0x442704(0xb7)]('\x20\x20'+a49_0x84f698[_0x442704(0xc1)](_0x4c4029+'\x20'+_0x32629f[_0x442704(0xac)]('\x20'))),0x0;return console[_0x442704(0xb7)](a49_0x84f698[_0x442704(0xab)](_0x442704(0xae))+'\x20'+_0x4c4029+'\x20'+_0x32629f[_0x442704(0xac)]('\x20')),console['log'](),new Promise(_0x54b435=>{const _0x41de01=_0x442704,_0x47224a=crossSpawn(_0x4c4029,_0x32629f,{'stdio':_0x41de01(0xd5)});_0x47224a['on'](_0x41de01(0xa8),_0x3fbc47=>{const _0x465150=_0x41de01;console[_0x465150(0xb7)](),_0x3fbc47===0x0?console[_0x465150(0xb7)](a49_0x84f698[_0x465150(0xa4)](_0x465150(0xc3)+_0x379b84)):console['error'](a49_0x84f698[_0x465150(0xaa)](_0x465150(0xbc)+_0x3fbc47+').')),_0x54b435(_0x3fbc47??0x1);}),_0x47224a['on']('error',_0x5ad4c6=>{const _0x2af313=_0x41de01;console[_0x2af313(0xbb)](a49_0x84f698['red']('Failed\x20to\x20run\x20'+_0x4c4029+':\x20'+_0x5ad4c6['message'])),_0x54b435(0x1);});});}}
@@ -1 +1 @@
1
- const a50_0x3d8c2b=a50_0x1070;function a50_0x58a3(){const _0x335f0d=['description','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20','\x27\x20to\x20save\x20permanently','database','Set\x20session-level\x20context','\x27\x20does\x20not\x20exist','length','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20release_channel\x20<stable|next>\x20\x20#\x20Set\x20release\x20channel\x0a','profile','Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20release_channel','Use\x20--default\x20with\x20site,\x20profile,\x20or\x20release_channel\x20to\x20save\x20permanently','site','319333PQFKTC','269523NclRfx','Session\x20agent\x20set\x20to:\x20','default','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','displayWithSources','Session\x20site\x20set\x20to:\x20','\x0aUse\x20\x27tdx\x20engage\x20workspace\x20list\x27\x20to\x20see\x20available\x20workspaces','\x0aUpdate\x20notifications\x20will\x20check\x20the\x20@latest\x20(stable)\x20channel.','INVALID_ARGUMENT','Session\x20database\x20set\x20to:\x20','green','\x27...','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a','Install\x20the\x20latest\x20next\x20version:\x20npm\x20install\x20-g\x20@treasuredata/tdx@next','1676995aQgjWh','Session\x20profile\x20set\x20to:\x20','session','20dcOWZU','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','debug','code','Error:\x20Profile\x20\x27','1097196eLzwBS','engage_workspace','next','14KlImZQ','log','cleared','NOT_FOUND','validate','\x0aUpdate\x20notifications\x20will\x20now\x20check\x20the\x20@next\x20channel.','Verifying\x20workspace\x20\x27','91509bpDyJy','tdx.json','1495912xorHwI','join','567776UMUKnX','Invalid\x20resource:\x20','llm_agent','execute','\x0aSaved\x20to:\x20','agent','Invalid\x20release\x20channel:\x20','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20','Session\x20llm_project\x20set\x20to:\x20','Default\x20site\x20set\x20to:\x20','display','(session:\x20','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20release_channel\x0a','Error:\x20','Release\x20channel\x20set\x20to:\x20','Default\x20profile\x20set\x20to:\x20','llm_project','parent_segment','resolveWorkspaceId','includes','7iaWnzJ','.\x20Must\x20be\x20\x27stable\x27\x20or\x20\x27next\x27.','error','dim','engage','message','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27,\x20\x27profile\x27,\x20or\x20\x27release_channel\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20current\x20context\x0a','release_channel','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20profile\x20<value>\x20\x20#\x20Save\x20default\x20profile\x20to\x20config\x0a','tdx'];a50_0x58a3=function(){return _0x335f0d;};return a50_0x58a3();}function a50_0x1070(_0xc31b0f,_0x49bdcc){_0xc31b0f=_0xc31b0f-0x8f;const _0x58a372=a50_0x58a3();let _0x107035=_0x58a372[_0xc31b0f];return _0x107035;}(function(_0x2db39d,_0x24ac08){const _0x114f08=a50_0x1070,_0x576217=_0x2db39d();while(!![]){try{const _0xddd2ff=parseInt(_0x114f08(0xa7))/0x1+parseInt(_0x114f08(0xc1))/0x2*(-parseInt(_0x114f08(0xc8))/0x3)+parseInt(_0x114f08(0xca))/0x4+-parseInt(_0x114f08(0xb6))/0x5+parseInt(_0x114f08(0xbe))/0x6*(parseInt(_0x114f08(0xe0))/0x7)+-parseInt(_0x114f08(0xcc))/0x8+parseInt(_0x114f08(0xa8))/0x9*(-parseInt(_0x114f08(0xb9))/0xa);if(_0xddd2ff===_0x24ac08)break;else _0x576217['push'](_0x576217['shift']());}catch(_0x3bd1b8){_0x576217['push'](_0x576217['shift']());}}}(a50_0x58a3,0x2ff27));import{BaseCommand}from'./command.js';import{saveSessionContext,getSessionID,cleanExpiredSessions,clearSessionContext}from'../core/session.js';import{profileExists,saveActiveProfileToUserConfig,saveDefaultSiteToUserConfig}from'../core/profile.js';import{GlobalContext}from'../core/global-context.js';import{parseAgentRef}from'../sdk/agent/agent-ref-parser.js';import{getConfigDir,saveReleaseChannel}from'../core/config.js';import{SDKError,ErrorCode}from'../sdk/errors.js';import{withSpinner}from'../utils/spinner.js';import a50_0x26f542 from'chalk';import*as a50_0x3c044a from'node:path';export class UseCommand extends BaseCommand{['name']='use';[a50_0x3d8c2b(0x9b)]=a50_0x3d8c2b(0x9f);[a50_0x3d8c2b(0xc5)](_0x3167cc){const _0x15deb3=a50_0x3d8c2b,{args:_0x8f1c9b,options:_0x37907e}=_0x3167cc,_0x34dd69=_0x37907e[_0x15deb3(0xaa)];if(_0x8f1c9b[_0x15deb3(0xa1)]===0x0)return undefined;if(_0x8f1c9b[_0x15deb3(0xa1)]===0x1)return _0x15deb3(0xab)+_0x15deb3(0x95)+_0x15deb3(0x98)+_0x15deb3(0xb4)+_0x15deb3(0x99)+_0x15deb3(0xa2)+_0x15deb3(0xd8)+_0x15deb3(0xba);const _0x5f45ae=_0x8f1c9b[0x0],_0x37a357=[_0x15deb3(0xa6),_0x15deb3(0x9e),_0x15deb3(0xdd),_0x15deb3(0xdc),_0x15deb3(0xd1),_0x15deb3(0xa3),_0x15deb3(0xbf),_0x15deb3(0x96)];if(!_0x37a357[_0x15deb3(0xdf)](_0x5f45ae))return _0x15deb3(0xcd)+_0x5f45ae+'.\x20Must\x20be\x20one\x20of:\x20'+_0x37a357[_0x15deb3(0xcb)](',\x20');if(_0x34dd69&&_0x5f45ae!=='site'&&_0x5f45ae!==_0x15deb3(0xa3)&&_0x5f45ae!=='release_channel')return _0x15deb3(0x94);if(_0x5f45ae===_0x15deb3(0x96)&&!_0x34dd69)return'release_channel\x20requires\x20--default.\x20Usage:\x20tdx\x20use\x20--default\x20release_channel\x20<stable|next>';if(_0x5f45ae===_0x15deb3(0x96)){const _0x22c513=_0x8f1c9b[0x1];if(_0x22c513!=='stable'&&_0x22c513!==_0x15deb3(0xc0))return _0x15deb3(0xd2)+_0x22c513+_0x15deb3(0x8f);}return undefined;}async[a50_0x3d8c2b(0xcf)](_0x1c87cb){const _0x55b275=a50_0x3d8c2b,{args:_0x5e4594,options:_0x3e94b0}=_0x1c87cb,_0x2916e4=_0x3e94b0[_0x55b275(0xbb)],_0x5ddb5d=_0x3e94b0['clear'],_0x18af50=_0x3e94b0[_0x55b275(0xaa)];cleanExpiredSessions();try{if(_0x5ddb5d){clearSessionContext(_0x3e94b0[_0x55b275(0xb8)]);const _0xb9360f=getSessionID(_0x3e94b0['session']);return console[_0x55b275(0xc2)]('Session\x20context\x20'+a50_0x26f542[_0x55b275(0xb2)](_0x55b275(0xc3))+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0xb9360f+')')),0x0;}if(_0x5e4594[_0x55b275(0xa1)]===0x0){const _0x122901=new GlobalContext(_0x3e94b0);return _0x2916e4?_0x122901[_0x55b275(0xac)]():_0x122901[_0x55b275(0xd6)](),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)]('\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>')),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xa4))),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xa5))),0x0;}const _0x2d39b9=_0x5e4594[0x0],_0x62c869=_0x5e4594[0x1],_0x55ddcd=a50_0x3c044a[_0x55b275(0xcb)](getConfigDir(),_0x55b275(0xc9));if(_0x18af50){if(_0x2d39b9===_0x55b275(0xa6))return saveDefaultSiteToUserConfig(_0x62c869),console['log'](_0x55b275(0xd5)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)),console[_0x55b275(0xc2)](a50_0x26f542['dim']('\x0aSaved\x20to:\x20'+_0x55ddcd)),0x0;if(_0x2d39b9===_0x55b275(0xa3)){if(!profileExists(_0x62c869))return console[_0x55b275(0x90)](_0x55b275(0xbd)+_0x62c869+_0x55b275(0xa0)),console[_0x55b275(0x90)](_0x55b275(0x97)),0x1;return saveActiveProfileToUserConfig(_0x62c869),console['log'](_0x55b275(0xdb)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)]('\x0aSaved\x20to:\x20'+_0x55ddcd)),0x0;}if(_0x2d39b9==='release_channel')return saveReleaseChannel(_0x62c869),console[_0x55b275(0xc2)](_0x55b275(0xda)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd0)+_0x55ddcd)),_0x62c869===_0x55b275(0xc0)?(console['log'](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xc6))),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xb5)))):console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xaf))),0x0;}if(_0x2d39b9===_0x55b275(0xa6)){const _0x334b9c=getSessionID(_0x3e94b0[_0x55b275(0xb8)]);return saveSessionContext({'site':_0x62c869},_0x3e94b0['session']),console[_0x55b275(0xc2)](_0x55b275(0xad)+a50_0x26f542['green'](_0x62c869)+'\x20'+a50_0x26f542['dim'](_0x55b275(0xd7)+_0x334b9c+')')),console['log'](a50_0x26f542['dim'](_0x55b275(0xd3)+_0x62c869+_0x55b275(0x9d))),0x0;}if(_0x2d39b9===_0x55b275(0xa3)){if(!profileExists(_0x62c869))return console[_0x55b275(0x90)](_0x55b275(0xbd)+_0x62c869+_0x55b275(0xa0)),console[_0x55b275(0x90)](_0x55b275(0x97)),0x1;const _0x375726=getSessionID(_0x3e94b0[_0x55b275(0xb8)]);return saveSessionContext({'profile':_0x62c869},_0x3e94b0['session']),console[_0x55b275(0xc2)](_0x55b275(0xb7)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x375726+')')),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)](_0x55b275(0x9c)+_0x62c869+_0x55b275(0x9d))),0x0;}const _0x43ecfa={},_0x1aa7f1=getSessionID(_0x3e94b0['session']);switch(_0x2d39b9){case _0x55b275(0x9e):_0x43ecfa['database']=_0x62c869,console['log'](_0x55b275(0xb1)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)+'\x20'+a50_0x26f542[_0x55b275(0x91)]('(session:\x20'+_0x1aa7f1+')'));break;case _0x55b275(0xdd):_0x43ecfa['parent_segment']=_0x62c869,console[_0x55b275(0xc2)]('Session\x20parent_segment\x20set\x20to:\x20'+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x1aa7f1+')'));break;case'llm_project':_0x43ecfa[_0x55b275(0xdc)]=_0x62c869,console[_0x55b275(0xc2)](_0x55b275(0xd4)+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)+'\x20'+a50_0x26f542['dim'](_0x55b275(0xd7)+_0x1aa7f1+')'));break;case _0x55b275(0xd1):{const {projectName:_0x255f7d,agentName:_0x269917}=parseAgentRef(_0x62c869);_0x269917?(_0x43ecfa[_0x55b275(0xdc)]=_0x255f7d,_0x43ecfa[_0x55b275(0xce)]=_0x269917,console[_0x55b275(0xc2)](_0x55b275(0xd4)+a50_0x26f542[_0x55b275(0xb2)](_0x255f7d)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x1aa7f1+')')),console['log'](_0x55b275(0xa9)+a50_0x26f542[_0x55b275(0xb2)](_0x269917)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x1aa7f1+')'))):(_0x43ecfa['llm_agent']=_0x62c869,console[_0x55b275(0xc2)](_0x55b275(0xa9)+a50_0x26f542['green'](_0x62c869)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x1aa7f1+')')));break;}case'engage_workspace':{try{await withSpinner(_0x55b275(0xc7)+_0x62c869+_0x55b275(0xb3),()=>_0x1c87cb[_0x55b275(0x9a)][_0x55b275(0x92)][_0x55b275(0xde)](_0x62c869));}catch(_0x390c87){if(_0x390c87 instanceof SDKError&&(_0x390c87[_0x55b275(0xbc)]===ErrorCode[_0x55b275(0xc4)]||_0x390c87[_0x55b275(0xbc)]===ErrorCode[_0x55b275(0xb0)]))return console[_0x55b275(0x90)]('Error:\x20'+_0x390c87[_0x55b275(0x93)]),console[_0x55b275(0x90)](_0x55b275(0xae)),0x1;throw _0x390c87;}_0x43ecfa[_0x55b275(0xbf)]=_0x62c869,console[_0x55b275(0xc2)]('Session\x20engage_workspace\x20set\x20to:\x20'+a50_0x26f542[_0x55b275(0xb2)](_0x62c869)+'\x20'+a50_0x26f542[_0x55b275(0x91)](_0x55b275(0xd7)+_0x1aa7f1+')'));break;}}return saveSessionContext(_0x43ecfa,_0x3e94b0['session']),console[_0x55b275(0xc2)](a50_0x26f542[_0x55b275(0x91)]('\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides')),0x0;}catch(_0x45930a){return _0x45930a instanceof Error&&console[_0x55b275(0x90)](_0x55b275(0xd9)+_0x45930a['message']),0x1;}}}
1
+ const a50_0x61d0ab=a50_0x1733;(function(_0x1b499e,_0x3f7f85){const _0x1f8681=a50_0x1733,_0x3f87d5=_0x1b499e();while(!![]){try{const _0x569d28=-parseInt(_0x1f8681(0xcc))/0x1+parseInt(_0x1f8681(0xb6))/0x2+parseInt(_0x1f8681(0xba))/0x3+-parseInt(_0x1f8681(0xc8))/0x4*(-parseInt(_0x1f8681(0xaf))/0x5)+-parseInt(_0x1f8681(0x9a))/0x6*(parseInt(_0x1f8681(0xb9))/0x7)+parseInt(_0x1f8681(0xac))/0x8+parseInt(_0x1f8681(0xca))/0x9;if(_0x569d28===_0x3f7f85)break;else _0x3f87d5['push'](_0x3f87d5['shift']());}catch(_0x29697c){_0x3f87d5['push'](_0x3f87d5['shift']());}}}(a50_0x3a59,0x850fa));import{BaseCommand}from'./command.js';import{saveSessionContext,getSessionID,cleanExpiredSessions,clearSessionContext}from'../core/session.js';import{profileExists,saveActiveProfileToUserConfig,saveDefaultSiteToUserConfig}from'../core/profile.js';import{GlobalContext}from'../core/global-context.js';import{parseAgentRef}from'../sdk/agent/agent-ref-parser.js';import{getConfigDir,saveReleaseChannel}from'../core/config.js';function a50_0x1733(_0x276a26,_0x9a4434){_0x276a26=_0x276a26-0x93;const _0x3a5917=a50_0x3a59();let _0x17330d=_0x3a5917[_0x276a26];return _0x17330d;}import{SDKError,ErrorCode}from'../sdk/errors.js';import{withSpinner}from'../utils/spinner.js';import a50_0x35af20 from'chalk';import*as a50_0x62b792 from'node:path';function a50_0x3a59(){const _0x4e85ae=['Set\x20session-level\x20context','release_channel','site','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20release_channel\x20<stable|next>\x20\x20#\x20Set\x20release\x20channel\x0a','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','debug','message','Session\x20parent_segment\x20set\x20to:\x20','\x0aSaved\x20to:\x20','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','Session\x20site\x20set\x20to:\x20','engage_workspace','resolveWorkspaceId','error','engage','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a','stable','Session\x20context\x20','35556TpeGYN','join','green','\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>','execute','length','displayWithSources','code','cleared','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27,\x20\x27profile\x27,\x20or\x20\x27release_channel\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20release_channel\x0a','.\x20Must\x20be\x20\x27stable\x27\x20or\x20\x27next\x27.','clear','release_channel\x20requires\x20--default.\x20Usage:\x20tdx\x20use\x20--default\x20release_channel\x20<stable|next>','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','Session\x20profile\x20set\x20to:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20current\x20context\x0a','Error:\x20','5548120orcKns','Error:\x20Profile\x20\x27','description','1289345vvYYaN','Default\x20site\x20set\x20to:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20profile\x20<value>\x20\x20#\x20Save\x20default\x20profile\x20to\x20config\x0a','Invalid\x20resource:\x20','profile','\x0aUse\x20\x27tdx\x20engage\x20workspace\x20list\x27\x20to\x20see\x20available\x20workspaces','Session\x20database\x20set\x20to:\x20','391762oXcAhT','Session\x20agent\x20set\x20to:\x20','parent_segment','455keJsgU','29826VNWnLP','tdx.json','log','\x27\x20to\x20save\x20permanently','Session\x20llm_project\x20set\x20to:\x20','Default\x20profile\x20set\x20to:\x20','\x27...','Install\x20the\x20latest\x20next\x20version:\x20npm\x20install\x20-g\x20@treasuredata/tdx@next','use','\x27\x20does\x20not\x20exist','INVALID_ARGUMENT','\x0aUpdate\x20notifications\x20will\x20now\x20check\x20the\x20@next\x20channel.','Session\x20engage_workspace\x20set\x20to:\x20','agent','4VlGpGu','default','5485077eHvOEI','next','836452WurkCU','(session:\x20','Use\x20--default\x20with\x20site,\x20profile,\x20or\x20release_channel\x20to\x20save\x20permanently','dim','session','includes','database','display','.\x20Must\x20be\x20one\x20of:\x20','name','llm_project','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20'];a50_0x3a59=function(){return _0x4e85ae;};return a50_0x3a59();}export class UseCommand extends BaseCommand{[a50_0x61d0ab(0xd5)]=a50_0x61d0ab(0xc2);[a50_0x61d0ab(0xae)]=a50_0x61d0ab(0xd8);['validate'](_0x56b347){const _0x530a35=a50_0x61d0ab,{args:_0x49bbc3,options:_0x3c2b0a}=_0x56b347,_0x47cc21=_0x3c2b0a[_0x530a35(0xc9)];if(_0x49bbc3[_0x530a35(0x9f)]===0x0)return undefined;if(_0x49bbc3[_0x530a35(0x9f)]===0x1)return'Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a'+_0x530a35(0xaa)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a'+_0x530a35(0x97)+_0x530a35(0xb1)+_0x530a35(0xdb)+_0x530a35(0xa4)+_0x530a35(0xa8);const _0x5422e6=_0x49bbc3[0x0],_0x5a2c34=['site',_0x530a35(0xd2),_0x530a35(0xb8),_0x530a35(0xd6),_0x530a35(0xc7),_0x530a35(0xb3),_0x530a35(0x93),_0x530a35(0xd9)];if(!_0x5a2c34[_0x530a35(0xd1)](_0x5422e6))return _0x530a35(0xb2)+_0x5422e6+_0x530a35(0xd4)+_0x5a2c34[_0x530a35(0x9b)](',\x20');if(_0x47cc21&&_0x5422e6!=='site'&&_0x5422e6!==_0x530a35(0xb3)&&_0x5422e6!=='release_channel')return _0x530a35(0xa3);if(_0x5422e6===_0x530a35(0xd9)&&!_0x47cc21)return _0x530a35(0xa7);if(_0x5422e6===_0x530a35(0xd9)){const _0x164f70=_0x49bbc3[0x1];if(_0x164f70!==_0x530a35(0x98)&&_0x164f70!=='next')return'Invalid\x20release\x20channel:\x20'+_0x164f70+_0x530a35(0xa5);}return undefined;}async[a50_0x61d0ab(0x9e)](_0xd9aec1){const _0x496138=a50_0x61d0ab,{args:_0x4bcdc2,options:_0x38a1bf}=_0xd9aec1,_0xc3d3d4=_0x38a1bf[_0x496138(0xdd)],_0x3e2007=_0x38a1bf[_0x496138(0xa6)],_0x4f35aa=_0x38a1bf[_0x496138(0xc9)];cleanExpiredSessions();try{if(_0x3e2007){clearSessionContext(_0x38a1bf[_0x496138(0xd0)]);const _0x4fd9e3=getSessionID(_0x38a1bf[_0x496138(0xd0)]);return console['log'](_0x496138(0x99)+a50_0x35af20['green'](_0x496138(0xa2))+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x4fd9e3+')')),0x0;}if(_0x4bcdc2[_0x496138(0x9f)]===0x0){const _0x423f55=new GlobalContext(_0x38a1bf);return _0xc3d3d4?_0x423f55[_0x496138(0xa0)]():_0x423f55[_0x496138(0xd3)](),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0x9d))),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)]('Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20release_channel')),console[_0x496138(0xbc)](a50_0x35af20['dim'](_0x496138(0xce))),0x0;}const _0x2f35bd=_0x4bcdc2[0x0],_0x59b7b2=_0x4bcdc2[0x1],_0x4e5c2b=a50_0x62b792['join'](getConfigDir(),_0x496138(0xbb));if(_0x4f35aa){if(_0x2f35bd===_0x496138(0xda))return saveDefaultSiteToUserConfig(_0x59b7b2),console[_0x496138(0xbc)](_0x496138(0xb0)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xe0)+_0x4e5c2b)),0x0;if(_0x2f35bd===_0x496138(0xb3)){if(!profileExists(_0x59b7b2))return console[_0x496138(0x95)](_0x496138(0xad)+_0x59b7b2+_0x496138(0xc3)),console[_0x496138(0x95)](_0x496138(0xe1)),0x1;return saveActiveProfileToUserConfig(_0x59b7b2),console[_0x496138(0xbc)](_0x496138(0xbf)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xe0)+_0x4e5c2b)),0x0;}if(_0x2f35bd===_0x496138(0xd9))return saveReleaseChannel(_0x59b7b2),console[_0x496138(0xbc)]('Release\x20channel\x20set\x20to:\x20'+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xe0)+_0x4e5c2b)),_0x59b7b2===_0x496138(0xcb)?(console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xc5))),console['log'](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xc1)))):console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)]('\x0aUpdate\x20notifications\x20will\x20check\x20the\x20@latest\x20(stable)\x20channel.')),0x0;}if(_0x2f35bd==='site'){const _0x2661f2=getSessionID(_0x38a1bf[_0x496138(0xd0)]);return saveSessionContext({'site':_0x59b7b2},_0x38a1bf[_0x496138(0xd0)]),console[_0x496138(0xbc)](_0x496138(0xe2)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20['dim'](_0x496138(0xcd)+_0x2661f2+')')),console['log'](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xd7)+_0x59b7b2+'\x27\x20to\x20save\x20permanently')),0x0;}if(_0x2f35bd===_0x496138(0xb3)){if(!profileExists(_0x59b7b2))return console[_0x496138(0x95)]('Error:\x20Profile\x20\x27'+_0x59b7b2+_0x496138(0xc3)),console[_0x496138(0x95)](_0x496138(0xe1)),0x1;const _0x436b32=getSessionID(_0x38a1bf[_0x496138(0xd0)]);return saveSessionContext({'profile':_0x59b7b2},_0x38a1bf[_0x496138(0xd0)]),console[_0x496138(0xbc)](_0x496138(0xa9)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x436b32+')')),console[_0x496138(0xbc)](a50_0x35af20['dim']('\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20'+_0x59b7b2+_0x496138(0xbd))),0x0;}const _0x1a7ce1={},_0x570973=getSessionID(_0x38a1bf[_0x496138(0xd0)]);switch(_0x2f35bd){case _0x496138(0xd2):_0x1a7ce1[_0x496138(0xd2)]=_0x59b7b2,console['log'](_0x496138(0xb5)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20['dim'](_0x496138(0xcd)+_0x570973+')'));break;case'parent_segment':_0x1a7ce1[_0x496138(0xb8)]=_0x59b7b2,console[_0x496138(0xbc)](_0x496138(0xdf)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')'));break;case _0x496138(0xd6):_0x1a7ce1[_0x496138(0xd6)]=_0x59b7b2,console[_0x496138(0xbc)](_0x496138(0xbe)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')'));break;case _0x496138(0xc7):{const {projectName:_0x2c2a2f,agentName:_0xbb8018}=parseAgentRef(_0x59b7b2);_0xbb8018?(_0x1a7ce1[_0x496138(0xd6)]=_0x2c2a2f,_0x1a7ce1['llm_agent']=_0xbb8018,console[_0x496138(0xbc)](_0x496138(0xbe)+a50_0x35af20[_0x496138(0x9c)](_0x2c2a2f)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')')),console['log'](_0x496138(0xb7)+a50_0x35af20[_0x496138(0x9c)](_0xbb8018)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')'))):(_0x1a7ce1['llm_agent']=_0x59b7b2,console['log']('Session\x20agent\x20set\x20to:\x20'+a50_0x35af20['green'](_0x59b7b2)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')')));break;}case _0x496138(0x93):{try{await withSpinner('Verifying\x20workspace\x20\x27'+_0x59b7b2+_0x496138(0xc0),()=>_0xd9aec1['tdx'][_0x496138(0x96)][_0x496138(0x94)](_0x59b7b2));}catch(_0x56aaa2){if(_0x56aaa2 instanceof SDKError&&(_0x56aaa2[_0x496138(0xa1)]===ErrorCode['NOT_FOUND']||_0x56aaa2[_0x496138(0xa1)]===ErrorCode[_0x496138(0xc4)]))return console['error']('Error:\x20'+_0x56aaa2[_0x496138(0xde)]),console['error'](_0x496138(0xb4)),0x1;throw _0x56aaa2;}_0x1a7ce1[_0x496138(0x93)]=_0x59b7b2,console[_0x496138(0xbc)](_0x496138(0xc6)+a50_0x35af20[_0x496138(0x9c)](_0x59b7b2)+'\x20'+a50_0x35af20[_0x496138(0xcf)](_0x496138(0xcd)+_0x570973+')'));break;}}return saveSessionContext(_0x1a7ce1,_0x38a1bf[_0x496138(0xd0)]),console[_0x496138(0xbc)](a50_0x35af20[_0x496138(0xcf)](_0x496138(0xdc))),0x0;}catch(_0x5cd29c){return _0x5cd29c instanceof Error&&console['error'](_0x496138(0xab)+_0x5cd29c[_0x496138(0xde)]),0x1;}}}
@@ -1 +1 @@
1
- const a51_0x204805=a51_0x5285;(function(_0x439cbd,_0x4062e6){const _0x59e3fb=a51_0x5285,_0x277777=_0x439cbd();while(!![]){try{const _0x9c1b59=parseInt(_0x59e3fb(0xdf))/0x1*(parseInt(_0x59e3fb(0xc0))/0x2)+-parseInt(_0x59e3fb(0xcf))/0x3+-parseInt(_0x59e3fb(0xc3))/0x4+parseInt(_0x59e3fb(0xd5))/0x5+parseInt(_0x59e3fb(0xc9))/0x6+-parseInt(_0x59e3fb(0xd8))/0x7*(parseInt(_0x59e3fb(0xbf))/0x8)+parseInt(_0x59e3fb(0xdc))/0x9;if(_0x9c1b59===_0x4062e6)break;else _0x277777['push'](_0x277777['shift']());}catch(_0x381761){_0x277777['push'](_0x277777['shift']());}}}(a51_0x2974,0xd21d2));function a51_0x5285(_0xd9a81d,_0x165e20){_0xd9a81d=_0xd9a81d-0xba;const _0x29748f=a51_0x2974();let _0x528584=_0x29748f[_0xd9a81d];return _0x528584;}import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a51_0x2974(){const _0x478f62=['11610PyNExA','name','✔\x20Found\x20','5178776lhzviu','getCurrent','user\x20list','execute','localeCompare','\x20(owner)','8042676iStQGa','email','administrator','Unknown','Fetching\x20user\x20info...','yellow','689787OxMxfH','length','error','message','\x20\x20Cause:\x20','Show\x20current\x20user\x20information','4536150oDLXQg','Error:\x20','verbose','132657DbtLSP','\x20user','log','description','3928491PvJToU','user','data','115taLaQy','Listing\x20users...','\x20(admin)','account_owner','cause','list','408hhbtWc'];a51_0x2974=function(){return _0x478f62;};return a51_0x2974();}import{handleSDKOutput,handleSingleObjectOutput,isStructuredFormat}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import a51_0x13b754 from'chalk';export class UserCommand extends BaseCommand{[a51_0x204805(0xc1)]=a51_0x204805(0xdd);[a51_0x204805(0xdb)]=a51_0x204805(0xd4);async[a51_0x204805(0xc6)](_0x3a1c30){const _0x5651cd=a51_0x204805,{options:_0x2e0c1d,tdx:_0x141f65}=_0x3a1c30;try{const _0x449075=await withSpinner(_0x5651cd(0xcd),()=>_0x141f65[_0x5651cd(0xdd)][_0x5651cd(0xc4)](),{'verbose':_0x2e0c1d[_0x5651cd(0xd7)]}),_0x160969=_0x449075[_0x5651cd(0xde)];return await handleSingleObjectOutput(_0x160969,_0x2e0c1d),0x0;}catch(_0x4346ef){if(_0x4346ef instanceof SDKError)return console[_0x5651cd(0xd1)](_0x5651cd(0xd6)+_0x4346ef[_0x5651cd(0xd2)]),_0x4346ef[_0x5651cd(0xbd)]&&console['error'](_0x5651cd(0xd3)+_0x4346ef[_0x5651cd(0xbd)]),0x1;throw _0x4346ef;}}}export class UserListCommand extends BaseCommand{['name']=a51_0x204805(0xc5);[a51_0x204805(0xdb)]='List\x20all\x20users\x20in\x20the\x20account';async[a51_0x204805(0xc6)](_0x488771){const _0x4df653=a51_0x204805,{options:_0x102eae,tdx:_0x40d287}=_0x488771;try{const _0x25a399=await withSpinner(_0x4df653(0xba),()=>_0x40d287['user'][_0x4df653(0xbe)](),{'verbose':_0x102eae[_0x4df653(0xd7)]}),_0x554a1a=_0x25a399[_0x4df653(0xde)];console['error'](_0x4df653(0xc2)+_0x554a1a[_0x4df653(0xd0)]+_0x4df653(0xd9)+(_0x554a1a[_0x4df653(0xd0)]!==0x1?'s':''));if(isStructuredFormat(_0x102eae))await handleSDKOutput(_0x554a1a,_0x102eae);else{const _0x499823=[..._0x554a1a]['sort']((_0x248f61,_0x4c24de)=>String(_0x248f61['name']??'')[_0x4df653(0xc7)](String(_0x4c24de['name']??'')));for(const _0x40307e of _0x499823){const _0x3afaa3=_0x40307e[_0x4df653(0xbc)]?a51_0x13b754['yellow'](_0x4df653(0xc8)):_0x40307e[_0x4df653(0xcb)]?a51_0x13b754[_0x4df653(0xce)](_0x4df653(0xbb)):'',_0x3fbec2=_0x40307e[_0x4df653(0xca)]&&_0x40307e['email']!==_0x40307e[_0x4df653(0xc1)]?a51_0x13b754['dim']('\x20<'+_0x40307e[_0x4df653(0xca)]+'>'):'';console[_0x4df653(0xda)]('👤\x20'+(_0x40307e[_0x4df653(0xc1)]??_0x4df653(0xcc))+_0x3fbec2+_0x3afaa3);}}return 0x0;}catch(_0x573cd1){if(_0x573cd1 instanceof SDKError)return console[_0x4df653(0xd1)](_0x4df653(0xd6)+_0x573cd1['message']),_0x573cd1['cause']&&console[_0x4df653(0xd1)](_0x4df653(0xd3)+_0x573cd1[_0x4df653(0xbd)]),0x1;throw _0x573cd1;}}}
1
+ const a51_0x1a723f=a51_0x5b85;function a51_0x5b85(_0xf9b0f0,_0x174d46){_0xf9b0f0=_0xf9b0f0-0x1ad;const _0x526907=a51_0x5269();let _0x5b858f=_0x526907[_0xf9b0f0];return _0x5b858f;}(function(_0x4ac6f6,_0x215f17){const _0x503c89=a51_0x5b85,_0xc7898=_0x4ac6f6();while(!![]){try{const _0x7b2f2a=parseInt(_0x503c89(0x1b4))/0x1+-parseInt(_0x503c89(0x1cc))/0x2*(parseInt(_0x503c89(0x1b1))/0x3)+parseInt(_0x503c89(0x1cb))/0x4*(-parseInt(_0x503c89(0x1c9))/0x5)+parseInt(_0x503c89(0x1c1))/0x6+parseInt(_0x503c89(0x1ba))/0x7+parseInt(_0x503c89(0x1c0))/0x8*(-parseInt(_0x503c89(0x1bb))/0x9)+parseInt(_0x503c89(0x1b6))/0xa;if(_0x7b2f2a===_0x215f17)break;else _0xc7898['push'](_0xc7898['shift']());}catch(_0x364540){_0xc7898['push'](_0xc7898['shift']());}}}(a51_0x5269,0x52a01));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput,handleSingleObjectOutput,isStructuredFormat}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import a51_0x24c30a from'chalk';export class UserCommand extends BaseCommand{['name']=a51_0x1a723f(0x1c5);[a51_0x1a723f(0x1bd)]=a51_0x1a723f(0x1b0);async[a51_0x1a723f(0x1ca)](_0x3ff877){const _0x5ebd1c=a51_0x1a723f,{options:_0x14d366,tdx:_0x385d9b}=_0x3ff877;try{const _0x28974c=await withSpinner(_0x5ebd1c(0x1d1),()=>_0x385d9b['user'][_0x5ebd1c(0x1cd)](),{'verbose':_0x14d366[_0x5ebd1c(0x1c6)]}),_0x426842=_0x28974c[_0x5ebd1c(0x1ad)];return await handleSingleObjectOutput(_0x426842,_0x14d366),0x0;}catch(_0xcb5af0){if(_0xcb5af0 instanceof SDKError)return console['error'](_0x5ebd1c(0x1b8)+_0xcb5af0[_0x5ebd1c(0x1b3)]),_0xcb5af0['cause']&&console[_0x5ebd1c(0x1bf)]('\x20\x20Cause:\x20'+_0xcb5af0[_0x5ebd1c(0x1d2)]),0x1;throw _0xcb5af0;}}}function a51_0x5269(){const _0x1b1335=['919170azhgCd','4048839dtUXKb','\x20\x20Cause:\x20','description','List\x20all\x20users\x20in\x20the\x20account','error','8BJRdnG','756330pkQgLI','\x20(admin)','👤\x20','account_owner','user','verbose','\x20(owner)','\x20user','12490VeKLvK','execute','400MPdBpo','1468QWRWWe','getCurrent','user\x20list','administrator','yellow','Fetching\x20user\x20info...','cause','data','✔\x20Found\x20','localeCompare','Show\x20current\x20user\x20information','1737vHSxfK','list','message','162817jlZYXS','email','10429080ZJTcZL','Unknown','Error:\x20','name'];a51_0x5269=function(){return _0x1b1335;};return a51_0x5269();}export class UserListCommand extends BaseCommand{[a51_0x1a723f(0x1b9)]=a51_0x1a723f(0x1ce);[a51_0x1a723f(0x1bd)]=a51_0x1a723f(0x1be);async[a51_0x1a723f(0x1ca)](_0x3ed527){const _0x4053f7=a51_0x1a723f,{options:_0x5834b8,tdx:_0x4a0ceb}=_0x3ed527;try{const _0x4b01ad=await withSpinner('Listing\x20users...',()=>_0x4a0ceb[_0x4053f7(0x1c5)][_0x4053f7(0x1b2)](),{'verbose':_0x5834b8[_0x4053f7(0x1c6)]}),_0x171fd4=_0x4b01ad[_0x4053f7(0x1ad)];console[_0x4053f7(0x1bf)](_0x4053f7(0x1ae)+_0x171fd4['length']+_0x4053f7(0x1c8)+(_0x171fd4['length']!==0x1?'s':''));if(isStructuredFormat(_0x5834b8))await handleSDKOutput(_0x171fd4,_0x5834b8);else{const _0x50f5de=[..._0x171fd4]['sort']((_0x2b6a3d,_0xf2b596)=>String(_0x2b6a3d[_0x4053f7(0x1b9)]??'')[_0x4053f7(0x1af)](String(_0xf2b596[_0x4053f7(0x1b9)]??'')));for(const _0x3ceda5 of _0x50f5de){const _0x548689=_0x3ceda5[_0x4053f7(0x1c4)]?a51_0x24c30a[_0x4053f7(0x1d0)](_0x4053f7(0x1c7)):_0x3ceda5[_0x4053f7(0x1cf)]?a51_0x24c30a[_0x4053f7(0x1d0)](_0x4053f7(0x1c2)):'',_0x2ce38f=_0x3ceda5['email']&&_0x3ceda5[_0x4053f7(0x1b5)]!==_0x3ceda5['name']?a51_0x24c30a['dim']('\x20<'+_0x3ceda5[_0x4053f7(0x1b5)]+'>'):'';console['log'](_0x4053f7(0x1c3)+(_0x3ceda5[_0x4053f7(0x1b9)]??_0x4053f7(0x1b7))+_0x2ce38f+_0x548689);}}return 0x0;}catch(_0x5d9261){if(_0x5d9261 instanceof SDKError)return console[_0x4053f7(0x1bf)]('Error:\x20'+_0x5d9261[_0x4053f7(0x1b3)]),_0x5d9261[_0x4053f7(0x1d2)]&&console[_0x4053f7(0x1bf)](_0x4053f7(0x1bc)+_0x5d9261[_0x4053f7(0x1d2)]),0x1;throw _0x5d9261;}}}