@treasuredata/tdx 0.14.1 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) 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/api-command.js +1 -1
  8. package/dist/commands/auth-command.d.ts.map +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-command.js.map +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/describe.js +1 -1
  19. package/dist/commands/engage-command.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/journey-command.js +1 -1
  22. package/dist/commands/journey-validate-command.js +1 -1
  23. package/dist/commands/llm-command.js +1 -1
  24. package/dist/commands/llm-proxy.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/user-command.js +1 -1
  42. package/dist/commands/workflow-command.js +1 -1
  43. package/dist/core/auth.js +1 -1
  44. package/dist/core/command-output.js +1 -1
  45. package/dist/core/config.js +1 -1
  46. package/dist/core/connection-cache.js +1 -1
  47. package/dist/core/constants.js +1 -1
  48. package/dist/core/credential-cache.js +1 -1
  49. package/dist/core/global-context.js +1 -1
  50. package/dist/core/keychain.js +1 -1
  51. package/dist/core/profile.d.ts +15 -0
  52. package/dist/core/profile.d.ts.map +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/profile.js.map +1 -1
  55. package/dist/core/project-config.js +1 -1
  56. package/dist/core/session.js +1 -1
  57. package/dist/core/user-cache.js +1 -1
  58. package/dist/core/version.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/proxy/anthropic-adapter.js +1 -1
  61. package/dist/proxy/claude-usage-tracker.js +1 -1
  62. package/dist/proxy/context-signature.js +1 -1
  63. package/dist/proxy/conversation-utils.js +1 -1
  64. package/dist/proxy/passthrough-server.d.ts +13 -2
  65. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  66. package/dist/proxy/passthrough-server.js +1 -1
  67. package/dist/proxy/passthrough-server.js.map +1 -1
  68. package/dist/proxy/server.js +1 -1
  69. package/dist/proxy/session-cache.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/api.js +1 -1
  75. package/dist/sdk/client/cdp-api-client.js +1 -1
  76. package/dist/sdk/client/endpoints.js +1 -1
  77. package/dist/sdk/client/endpoints.js.map +1 -1
  78. package/dist/sdk/client/engage-api-client.js +1 -1
  79. package/dist/sdk/client/http-client.js +1 -1
  80. package/dist/sdk/client/llm-api-client.js +1 -1
  81. package/dist/sdk/client/rate-limiter.js +1 -1
  82. package/dist/sdk/client/td-api-client.js +1 -1
  83. package/dist/sdk/client/trino-api-client.js +1 -1
  84. package/dist/sdk/client/workflow-client.js +1 -1
  85. package/dist/sdk/connection-validator.js +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/engage.js +1 -1
  88. package/dist/sdk/errors.js +1 -1
  89. package/dist/sdk/index.js +1 -1
  90. package/dist/sdk/io/index.js +1 -1
  91. package/dist/sdk/io/node-filesystem.js +1 -1
  92. package/dist/sdk/job.js +1 -1
  93. package/dist/sdk/journey.js +1 -1
  94. package/dist/sdk/llm/chat-cache.js +1 -1
  95. package/dist/sdk/llm/index.js +1 -1
  96. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  97. package/dist/sdk/llm/model-aliases.js +1 -1
  98. package/dist/sdk/llm/model-factors.js +1 -1
  99. package/dist/sdk/query/index.js +1 -1
  100. package/dist/sdk/query/sql-parser.js +1 -1
  101. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  102. package/dist/sdk/segment/fields-display.js +1 -1
  103. package/dist/sdk/segment/file-discovery.js +1 -1
  104. package/dist/sdk/segment/journey-utils.js +1 -1
  105. package/dist/sdk/segment/journey-yaml.js +1 -1
  106. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  107. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  108. package/dist/sdk/segment/pull-workflow.js +1 -1
  109. package/dist/sdk/segment/push-workflow.js +1 -1
  110. package/dist/sdk/segment/resolution-context.js +1 -1
  111. package/dist/sdk/segment/segment-path-parser.js +1 -1
  112. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  113. package/dist/sdk/segment/target-resolution.js +1 -1
  114. package/dist/sdk/segment/tdx-config.js +1 -1
  115. package/dist/sdk/segment/validate-files.js +1 -1
  116. package/dist/sdk/segment/yaml-validator.js +1 -1
  117. package/dist/sdk/segment.js +1 -1
  118. package/dist/sdk/types/index.js +1 -1
  119. package/dist/sdk/types/progress.js +1 -1
  120. package/dist/sdk/user.js +1 -1
  121. package/dist/sdk/util/format-detector.js +1 -1
  122. package/dist/sdk/util/formatters.js +1 -1
  123. package/dist/sdk/util/index.js +1 -1
  124. package/dist/sdk/util/tree-formatter.js +1 -1
  125. package/dist/sdk/workflow/clone-workflow.js +1 -1
  126. package/dist/sdk/workflow/index.js +1 -1
  127. package/dist/sdk/workflow/pull-workflow.js +1 -1
  128. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  129. package/dist/sdk/workflow/push-workflow.js +1 -1
  130. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  131. package/dist/sdk/workflow/tdx-config.js +1 -1
  132. package/dist/sdk/workflow/workflow-utils.d.ts +60 -0
  133. package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -1
  134. package/dist/sdk/workflow/workflow-utils.js +1 -1
  135. package/dist/sdk/workflow/workflow-utils.js.map +1 -1
  136. package/dist/utils/async.js +1 -1
  137. package/dist/utils/colors.js +1 -1
  138. package/dist/utils/diff.js +1 -1
  139. package/dist/utils/file-permissions.js +1 -1
  140. package/dist/utils/json-loader.js +1 -1
  141. package/dist/utils/option-validation.js +1 -1
  142. package/dist/utils/port.js +1 -1
  143. package/dist/utils/process.js +1 -1
  144. package/dist/utils/prompt.js +1 -1
  145. package/dist/utils/spinner.js +1 -1
  146. package/dist/utils/sse-parser.js +1 -1
  147. package/dist/utils/string-utils.js +1 -1
  148. package/dist/utils/table-ref-parser.js +1 -1
  149. package/dist/utils/tdx-logger.js +1 -1
  150. package/dist/utils/version-check.js +1 -1
  151. package/package.json +2 -1
@@ -1 +1 @@
1
- const a32_0x571352=a32_0x399f;(function(_0x15aa0a,_0x2e0956){const _0x33cfa6=a32_0x399f,_0x7cfb1f=_0x15aa0a();while(!![]){try{const _0x38c751=parseInt(_0x33cfa6(0x11f))/0x1+parseInt(_0x33cfa6(0x12a))/0x2*(parseInt(_0x33cfa6(0x122))/0x3)+parseInt(_0x33cfa6(0x120))/0x4+parseInt(_0x33cfa6(0x13a))/0x5*(-parseInt(_0x33cfa6(0x140))/0x6)+parseInt(_0x33cfa6(0x114))/0x7*(-parseInt(_0x33cfa6(0x126))/0x8)+parseInt(_0x33cfa6(0x136))/0x9*(-parseInt(_0x33cfa6(0x13b))/0xa)+-parseInt(_0x33cfa6(0x13f))/0xb;if(_0x38c751===_0x2e0956)break;else _0x7cfb1f['push'](_0x7cfb1f['shift']());}catch(_0x2c2925){_0x7cfb1f['push'](_0x7cfb1f['shift']());}}}(a32_0x2e5c,0x1e4c5));import{BaseCommand}from'./command.js';import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';import{existsSync}from'fs';function a32_0x2e5c(){const _0x3ee358=['no_parent','15957XifZdV','log','warningCount','warnings','40JWwEEc','\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file','errorCode','helpText','90vBdpjF','message','\x20file(s)\x20with\x20errors,\x20','Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)','cwd','validCount','targetDir','invalidCount','execute','green','segment:validate','):\x20','757737GyXAjl','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','\x20file(s)\x20valid','dim','545tIwwOH','10btkSqM','verbose','\x20valid','file','480986jZQEmQ','10446uwDLoh','name','\x20error(s)','valid','yellow','Error:\x20No\x20YAML\x20files\x20found\x20in\x20','.yml','76797XZgtsh','description','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','endsWith','length','✔\x20All\x20','Error:\x20','red','filePath','error','Error:\x20Directory\x20not\x20found:\x20','10691yWehRj','986392IEhVDh'];a32_0x2e5c=function(){return _0x3ee358;};return a32_0x2e5c();}import a32_0x379c3b from'chalk';import{formatValidationResult}from'../sdk/segment/yaml-validator.js';import{validateYamlFiles,isValidationResult,calculateSummary}from'../sdk/segment/validate-files.js';function a32_0x399f(_0x11aa47,_0x4530b9){_0x11aa47=_0x11aa47-0x10e;const _0x2e5cb5=a32_0x2e5c();let _0x399f0f=_0x2e5cb5[_0x11aa47];return _0x399f0f;}export class SegmentValidateCommand extends BaseCommand{[a32_0x571352(0x10e)]=a32_0x571352(0x134);[a32_0x571352(0x115)]='Validate\x20segment\x20and\x20journey\x20YAML\x20files';async[a32_0x571352(0x132)](_0xc2ab8a){const _0x527622=a32_0x571352,{options:_0x6930d7,args:_0x2b4773}=_0xc2ab8a,_0x2b0113=_0x6930d7,_0x2d22c3=await resolveTarget({'arg':_0x2b4773[0x0],'contextParent':_0x6930d7['parentSegment'],'cwd':process[_0x527622(0x12e)]()});if(!isSuccessfulResolution(_0x2d22c3))return _0x2d22c3[_0x527622(0x128)]===_0x527622(0x121)?(console[_0x527622(0x11d)](a32_0x379c3b[_0x527622(0x111)](_0x527622(0x137))),console[_0x527622(0x11d)](_0x527622(0x12d)),console[_0x527622(0x11d)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20current\x20directory'),console[_0x527622(0x11d)](_0x527622(0x127))):(console['error'](a32_0x379c3b[_0x527622(0x11b)](_0x527622(0x11a)+_0x2d22c3[_0x527622(0x12b)]+'\x0a')),_0x2d22c3[_0x527622(0x129)]&&console[_0x527622(0x11d)](a32_0x379c3b['cyan'](_0x2d22c3[_0x527622(0x129)]))),0x1;const _0x4618e1=_0x2d22c3[_0x527622(0x130)],_0x1a91fa=_0x2d22c3['type']===_0x527622(0x13e)?_0x2d22c3[_0x527622(0x11c)]:undefined;if(!_0x1a91fa&&!existsSync(_0x4618e1))return console[_0x527622(0x11d)](a32_0x379c3b[_0x527622(0x11b)](_0x527622(0x11e)+_0x4618e1+'\x0a')),0x1;let _0x15c604;if(_0x1a91fa){if(!_0x1a91fa[_0x527622(0x117)](_0x527622(0x113))&&!_0x1a91fa['endsWith']('.yaml'))return console['error'](a32_0x379c3b['red'](_0x527622(0x116)+_0x1a91fa+'\x0a')),0x1;_0x15c604=[_0x1a91fa];}else _0x15c604=findYamlFiles(_0x4618e1);if(_0x15c604[_0x527622(0x118)]===0x0)return console[_0x527622(0x11d)](a32_0x379c3b[_0x527622(0x11b)](_0x527622(0x112)+_0x4618e1+'\x0a')),0x1;const _0x12b04e=validateYamlFiles(_0x15c604,_0x4618e1),_0x12f92f=calculateSummary(_0x12b04e);for(const _0x2dbadf of _0x12b04e){if(!isValidationResult(_0x2dbadf))continue;const {relativePath:_0xd4d630,source:_0x277ea2,result:_0x37783f,fileType:_0x2dd056}=_0x2dbadf,_0x27ea32=_0x2dd056;if(_0x37783f[_0x527622(0x110)]&&_0x37783f[_0x527622(0x125)][_0x527622(0x118)]===0x0)_0x2b0113[_0x527622(0x13c)]&&console[_0x527622(0x123)](a32_0x379c3b[_0x527622(0x133)]('✔\x20'+_0xd4d630)+a32_0x379c3b[_0x527622(0x139)]('\x20('+_0x27ea32+')'));else _0x37783f[_0x527622(0x110)]?(console[_0x527622(0x123)](a32_0x379c3b[_0x527622(0x111)]('⚠\x20'+_0xd4d630)+a32_0x379c3b['dim']('\x20('+_0x27ea32+'):\x20'+_0x37783f[_0x527622(0x125)][_0x527622(0x118)]+'\x20warning(s)')),console[_0x527622(0x123)](formatValidationResult(_0x37783f,_0x277ea2,_0xd4d630))):(console[_0x527622(0x123)](a32_0x379c3b[_0x527622(0x11b)]('✖\x20'+_0xd4d630)+a32_0x379c3b[_0x527622(0x139)]('\x20('+_0x27ea32+_0x527622(0x135)+_0x37783f['errors']['length']+_0x527622(0x10f))),console[_0x527622(0x123)](formatValidationResult(_0x37783f,_0x277ea2,_0xd4d630)));}return console['log'](''),_0x12f92f['hasErrors']?(console[_0x527622(0x123)](a32_0x379c3b['red']('Validation\x20failed:\x20'+_0x12f92f[_0x527622(0x131)]+_0x527622(0x12c)+_0x12f92f[_0x527622(0x12f)]+_0x527622(0x13d))),_0x12f92f[_0x527622(0x124)]>0x0&&console[_0x527622(0x123)](a32_0x379c3b[_0x527622(0x111)](_0x12f92f[_0x527622(0x124)]+'\x20warning(s)\x20found')),0x1):(console[_0x527622(0x123)](a32_0x379c3b[_0x527622(0x133)](_0x527622(0x119)+_0x12f92f[_0x527622(0x12f)]+_0x527622(0x138))),_0x12f92f['warningCount']>0x0&&console[_0x527622(0x123)](a32_0x379c3b['yellow'](_0x12f92f['warningCount']+'\x20warning(s)\x20found')),0x0);}}
1
+ const a32_0x27893a=a32_0x415f;(function(_0x38b40d,_0x553b32){const _0x154a8a=a32_0x415f,_0x12504a=_0x38b40d();while(!![]){try{const _0x1b690c=parseInt(_0x154a8a(0xdc))/0x1*(parseInt(_0x154a8a(0xca))/0x2)+-parseInt(_0x154a8a(0xf8))/0x3+parseInt(_0x154a8a(0xf9))/0x4+-parseInt(_0x154a8a(0xdb))/0x5+parseInt(_0x154a8a(0xeb))/0x6*(parseInt(_0x154a8a(0xc9))/0x7)+parseInt(_0x154a8a(0xe3))/0x8+-parseInt(_0x154a8a(0xe7))/0x9*(-parseInt(_0x154a8a(0xda))/0xa);if(_0x1b690c===_0x553b32)break;else _0x12504a['push'](_0x12504a['shift']());}catch(_0x1f0544){_0x12504a['push'](_0x12504a['shift']());}}}(a32_0x16ff,0x7d05e));import{BaseCommand}from'./command.js';import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';function a32_0x415f(_0x4d0e2e,_0x393552){_0x4d0e2e=_0x4d0e2e-0xc6;const _0x16ff58=a32_0x16ff();let _0x415f81=_0x16ff58[_0x4d0e2e];return _0x415f81;}import{existsSync}from'fs';import a32_0xb91fbc from'chalk';function a32_0x16ff(){const _0x179178=['errorCode','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','warnings','red','1019355KXDOOt','3347576qvrIVt','endsWith','valid','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','):\x20','56DJNuiK','12010pafFgs','invalidCount','targetDir','message','filePath','error','no_parent','\x20warning(s)','validCount','\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file','description','✔\x20All\x20','\x20file(s)\x20valid','yellow','cyan','cwd','10cSBKDl','4268530RCvBVN','1GsKqbS','log','\x20valid','segment:validate','\x20warning(s)\x20found','.yaml','.yml','2129912xxDbiA','length','Validate\x20segment\x20and\x20journey\x20YAML\x20files','verbose','2165535TpvpPw','execute','Error:\x20No\x20YAML\x20files\x20found\x20in\x20','warningCount','266874nFGKHf','\x20file(s)\x20with\x20errors,\x20','Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)','helpText','name','parentSegment','dim','green','errors'];a32_0x16ff=function(){return _0x179178;};return a32_0x16ff();}import{formatValidationResult}from'../sdk/segment/yaml-validator.js';import{validateYamlFiles,isValidationResult,calculateSummary}from'../sdk/segment/validate-files.js';export class SegmentValidateCommand extends BaseCommand{[a32_0x27893a(0xef)]=a32_0x27893a(0xdf);[a32_0x27893a(0xd4)]=a32_0x27893a(0xe5);async[a32_0x27893a(0xe8)](_0x5d8c6f){const _0x100c39=a32_0x27893a,{options:_0x2a2f17,args:_0x338b37}=_0x5d8c6f,_0x564c55=_0x2a2f17,_0xa291ff=await resolveTarget({'arg':_0x338b37[0x0],'contextParent':_0x2a2f17[_0x100c39(0xf0)],'cwd':process[_0x100c39(0xd9)]()});if(!isSuccessfulResolution(_0xa291ff))return _0xa291ff[_0x100c39(0xf4)]===_0x100c39(0xd0)?(console['error'](a32_0xb91fbc[_0x100c39(0xd7)](_0x100c39(0xc7))),console[_0x100c39(0xcf)](_0x100c39(0xed)),console['error']('\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20current\x20directory'),console[_0x100c39(0xcf)](_0x100c39(0xd3))):(console[_0x100c39(0xcf)](a32_0xb91fbc[_0x100c39(0xf7)]('Error:\x20'+_0xa291ff[_0x100c39(0xcd)]+'\x0a')),_0xa291ff[_0x100c39(0xee)]&&console[_0x100c39(0xcf)](a32_0xb91fbc[_0x100c39(0xd8)](_0xa291ff[_0x100c39(0xee)]))),0x1;const _0xb53e25=_0xa291ff[_0x100c39(0xcc)],_0x432d08=_0xa291ff['type']==='file'?_0xa291ff[_0x100c39(0xce)]:undefined;if(!_0x432d08&&!existsSync(_0xb53e25))return console[_0x100c39(0xcf)](a32_0xb91fbc[_0x100c39(0xf7)]('Error:\x20Directory\x20not\x20found:\x20'+_0xb53e25+'\x0a')),0x1;let _0x7dc7e3;if(_0x432d08){if(!_0x432d08[_0x100c39(0xfa)](_0x100c39(0xe2))&&!_0x432d08[_0x100c39(0xfa)](_0x100c39(0xe1)))return console['error'](a32_0xb91fbc[_0x100c39(0xf7)](_0x100c39(0xf5)+_0x432d08+'\x0a')),0x1;_0x7dc7e3=[_0x432d08];}else _0x7dc7e3=findYamlFiles(_0xb53e25);if(_0x7dc7e3[_0x100c39(0xe4)]===0x0)return console[_0x100c39(0xcf)](a32_0xb91fbc[_0x100c39(0xf7)](_0x100c39(0xe9)+_0xb53e25+'\x0a')),0x1;const _0x579180=validateYamlFiles(_0x7dc7e3,_0xb53e25),_0x115a06=calculateSummary(_0x579180);for(const _0x15e543 of _0x579180){if(!isValidationResult(_0x15e543))continue;const {relativePath:_0x5631aa,source:_0x34ad51,result:_0x1e4be9,fileType:_0x506ea1}=_0x15e543,_0x4da5e0=_0x506ea1;if(_0x1e4be9[_0x100c39(0xc6)]&&_0x1e4be9[_0x100c39(0xf6)][_0x100c39(0xe4)]===0x0)_0x564c55[_0x100c39(0xe6)]&&console[_0x100c39(0xdd)](a32_0xb91fbc[_0x100c39(0xf2)]('✔\x20'+_0x5631aa)+a32_0xb91fbc[_0x100c39(0xf1)]('\x20('+_0x4da5e0+')'));else _0x1e4be9[_0x100c39(0xc6)]?(console['log'](a32_0xb91fbc[_0x100c39(0xd7)]('⚠\x20'+_0x5631aa)+a32_0xb91fbc['dim']('\x20('+_0x4da5e0+_0x100c39(0xc8)+_0x1e4be9[_0x100c39(0xf6)]['length']+_0x100c39(0xd1))),console['log'](formatValidationResult(_0x1e4be9,_0x34ad51,_0x5631aa))):(console[_0x100c39(0xdd)](a32_0xb91fbc[_0x100c39(0xf7)]('✖\x20'+_0x5631aa)+a32_0xb91fbc[_0x100c39(0xf1)]('\x20('+_0x4da5e0+_0x100c39(0xc8)+_0x1e4be9[_0x100c39(0xf3)][_0x100c39(0xe4)]+'\x20error(s)')),console['log'](formatValidationResult(_0x1e4be9,_0x34ad51,_0x5631aa)));}return console[_0x100c39(0xdd)](''),_0x115a06['hasErrors']?(console['log'](a32_0xb91fbc[_0x100c39(0xf7)]('Validation\x20failed:\x20'+_0x115a06[_0x100c39(0xcb)]+_0x100c39(0xec)+_0x115a06[_0x100c39(0xd2)]+_0x100c39(0xde))),_0x115a06[_0x100c39(0xea)]>0x0&&console[_0x100c39(0xdd)](a32_0xb91fbc[_0x100c39(0xd7)](_0x115a06[_0x100c39(0xea)]+_0x100c39(0xe0))),0x1):(console['log'](a32_0xb91fbc[_0x100c39(0xf2)](_0x100c39(0xd5)+_0x115a06['validCount']+_0x100c39(0xd6))),_0x115a06['warningCount']>0x0&&console[_0x100c39(0xdd)](a32_0xb91fbc[_0x100c39(0xd7)](_0x115a06[_0x100c39(0xea)]+_0x100c39(0xe0))),0x0);}}
@@ -1 +1 @@
1
- function a33_0x4a20(){const _0x2d1715=['message','Parent\x20segment\x20context:\x20','test','Resolving\x20parent\x20segment\x20\x27','journey','error','/app/ps/','format','/j/da','3307924kAKiNH','listRecursive','site','filter','6382cfCgKf','map','81504jLcvNq','folder','/e/','log','parentSegment','706819ikMZqH','5166942ghMkJv','maxDepth','data','verbose','listUnifiedWithJourneys','listWithPattern','Parent\x20ID:\x20','resolvePathToResource','\x20segment','folders','jsonl','39NkXeWx',',\x20and\x20','\x20folder','type','sort','(not\x20set)','Recursive\x20mode:\x20enabled','\x27...','\x5c$&','(empty)','segment','9470SyeAFg','includes','dim','Set\x20a\x20parent\x20segment\x20context\x20first:','segments','\x20\x20Cause:\x20','replace','✔\x20Built\x20tree\x20with\x20','Folder/pattern\x20arg:\x20','\x20journey','No\x20items\x20match\x20pattern:\x20','648AuwnoX','Listing\x20folders,\x20segments,\x20and\x20journeys...','name','recursive','journeyBundleName','cause','Error:\x20No\x20parent\x20segment\x20context\x20set.','List\x20folders\x20and\x20child\x20segments','description','localeCompare','length','4480245RuaCXl','folderId','Error:\x20','✔\x20Found\x20','14377HcupOL','Folder\x20ID:\x20','journeys','parentId',']\x20matching\x20\x27','listUnified','5MYntSj','Building\x20hierarchy\x20tree...','Resolving\x20path\x20\x27','json','\x20matching\x20\x27'];a33_0x4a20=function(){return _0x2d1715;};return a33_0x4a20();}const a33_0x2934c5=a33_0x280d;(function(_0x72c785,_0x5dda19){const _0x37849d=a33_0x280d,_0x3f8371=_0x72c785();while(!![]){try{const _0x137c2c=-parseInt(_0x37849d(0x1eb))/0x1+-parseInt(_0x37849d(0x1e4))/0x2*(-parseInt(_0x37849d(0x1f7))/0x3)+parseInt(_0x37849d(0x1e0))/0x4*(parseInt(_0x37849d(0x1d2))/0x5)+-parseInt(_0x37849d(0x1ec))/0x6+parseInt(_0x37849d(0x1c8))/0x7+-parseInt(_0x37849d(0x1e6))/0x8*(parseInt(_0x37849d(0x1bd))/0x9)+parseInt(_0x37849d(0x202))/0xa*(parseInt(_0x37849d(0x1cc))/0xb);if(_0x137c2c===_0x5dda19)break;else _0x3f8371['push'](_0x3f8371['shift']());}catch(_0x52379b){_0x3f8371['push'](_0x3f8371['shift']());}}}(a33_0x4a20,0x6c92c));function a33_0x280d(_0xbb3de7,_0x5e72c8){_0xbb3de7=_0xbb3de7-0x1b9;const _0x4a2088=a33_0x4a20();let _0x280d23=_0x4a2088[_0xbb3de7];return _0x280d23;}import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import{formatFlatList,formatTree}from'../sdk/util/tree-formatter.js';import{getConsoleNextUrl}from'../sdk/client/endpoints.js';import a33_0x9b5ea7 from'chalk';export class SegmentsCommand extends BaseCommand{[a33_0x2934c5(0x1bf)]=a33_0x2934c5(0x206);[a33_0x2934c5(0x1c5)]=a33_0x2934c5(0x1c4);async['execute'](_0x458367){const _0x2c4135=a33_0x2934c5,{options:_0x23ad1a,args:_0x4164c9}=_0x458367,_0x108076=_0x23ad1a[_0x2c4135(0x1c0)],_0x324cd2=_0x4164c9[0x0];try{const _0x237eb4=_0x23ad1a[_0x2c4135(0x1ea)];_0x23ad1a[_0x2c4135(0x1ef)]&&(console['error']('Site:\x20'+_0x23ad1a[_0x2c4135(0x1e2)]),console[_0x2c4135(0x1dc)](_0x2c4135(0x1d8)+(_0x237eb4||_0x2c4135(0x1fc))),_0x324cd2&&console[_0x2c4135(0x1dc)](_0x2c4135(0x1ba)+_0x324cd2),_0x108076&&console['error'](_0x2c4135(0x1fd)));if(!_0x237eb4)return console[_0x2c4135(0x1dc)](_0x2c4135(0x1c3)),console[_0x2c4135(0x1dc)](''),console[_0x2c4135(0x1dc)](_0x2c4135(0x205)),console['error']('\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22'),console[_0x2c4135(0x1dc)]('\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22'),console['error'](''),console[_0x2c4135(0x1dc)]('Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.'),0x1;const _0x49983c=_0x324cd2&&(_0x324cd2[_0x2c4135(0x203)]('*')||_0x324cd2[_0x2c4135(0x203)]('?'));if(_0x49983c)return await this[_0x2c4135(0x1f1)](_0x458367,_0x237eb4,_0x324cd2);const _0x51fb3b=_0x324cd2?_0x237eb4+'/'+_0x324cd2:_0x237eb4;return _0x108076?await this['listRecursive'](_0x458367,_0x51fb3b):await this['listUnified'](_0x458367,_0x51fb3b);}catch(_0x34df97){if(_0x34df97 instanceof SDKError)return console[_0x2c4135(0x1dc)](_0x2c4135(0x1ca)+_0x34df97[_0x2c4135(0x1d7)]),_0x34df97[_0x2c4135(0x1c2)]&&console['error'](_0x2c4135(0x207)+_0x34df97[_0x2c4135(0x1c2)]),0x1;throw _0x34df97;}}async['listWithPattern'](_0x535022,_0x268266,_0xb353db){const _0x1f211e=a33_0x2934c5,{options:_0x139bfe,tdx:_0x4090f6}=_0x535022,_0x1c6d70=await withSpinner(_0x1f211e(0x1da)+_0x268266+_0x1f211e(0x1fe),()=>_0x4090f6[_0x1f211e(0x201)][_0x1f211e(0x1f3)](_0x268266),{'verbose':_0x139bfe[_0x1f211e(0x1ef)]}),_0x1025ac=_0x1c6d70[_0x1f211e(0x1ee)],_0x5127d0=await withSpinner(_0x1f211e(0x1be),()=>_0x4090f6[_0x1f211e(0x201)]['listUnifiedWithJourneys'](_0x1025ac['parentId'],_0x1025ac[_0x1f211e(0x1c9)]),{'verbose':_0x139bfe['verbose']}),{folders:_0x25fb52,segments:_0x37e96c,journeys:_0x70c537}=_0x5127d0[_0x1f211e(0x1ee)],_0x812c60=_0xb353db['replace'](/[.+^${}()|[\]\\]/g,_0x1f211e(0x1ff))[_0x1f211e(0x208)](/\*/g,'.*')[_0x1f211e(0x208)](/\?/g,'.'),_0x4cb3c2=new RegExp('^'+_0x812c60+'$','i'),_0x1aa0fc=_0x25fb52['filter'](_0x539ebe=>_0x4cb3c2[_0x1f211e(0x1d9)](_0x539ebe['name'])),_0x38c9d9=_0x37e96c[_0x1f211e(0x1e3)](_0x1eee44=>_0x4cb3c2['test'](_0x1eee44[_0x1f211e(0x1bf)])),_0x2a8bfa=_0x70c537[_0x1f211e(0x1e3)](_0x135f4d=>_0x4cb3c2['test'](_0x135f4d[_0x1f211e(0x1c1)])),_0x1abd21=_0x1aa0fc[_0x1f211e(0x1c7)]+_0x38c9d9[_0x1f211e(0x1c7)]+_0x2a8bfa['length'];console[_0x1f211e(0x1dc)](_0x1f211e(0x1cb)+_0x1aa0fc[_0x1f211e(0x1c7)]+_0x1f211e(0x1f9)+(_0x1aa0fc[_0x1f211e(0x1c7)]!==0x1?'s':'')+',\x20'+_0x38c9d9['length']+'\x20segment'+(_0x38c9d9['length']!==0x1?'s':'')+_0x1f211e(0x1f8)+_0x2a8bfa[_0x1f211e(0x1c7)]+'\x20journey'+(_0x2a8bfa[_0x1f211e(0x1c7)]!==0x1?'s':'')+_0x1f211e(0x1d6)+_0xb353db+'\x27');const _0x2b2b30=_0x519a9e=>{const _0x371c8b=_0x1f211e;return getConsoleNextUrl(_0x139bfe['site'],_0x371c8b(0x1dd)+_0x1025ac[_0x371c8b(0x1cf)]+'/e/'+_0x519a9e);},_0x5b67f9=_0x139bfe[_0x1f211e(0x1de)]===_0x1f211e(0x1d5)||_0x139bfe[_0x1f211e(0x1de)]===_0x1f211e(0x1f6);if(_0x5b67f9){const _0x22b72e=[..._0x1aa0fc[_0x1f211e(0x1e5)](_0x4086f6=>({..._0x4086f6,'type':'folder'})),..._0x38c9d9[_0x1f211e(0x1e5)](_0xf2c2ec=>({..._0xf2c2ec,'type':_0x1f211e(0x201),'url':_0x2b2b30(_0xf2c2ec['id'])})),..._0x2a8bfa['map'](_0x307c28=>({..._0x307c28,'name':_0x307c28['journeyBundleName'],'type':_0x1f211e(0x1db)}))]['sort']((_0x28ddfe,_0x5b714b)=>_0x28ddfe['name']['localeCompare'](_0x5b714b[_0x1f211e(0x1bf)]));await handleSDKOutput(_0x22b72e,_0x139bfe);}else{if(_0x1abd21===0x0)console['log'](_0x1f211e(0x1bc)+_0xb353db);else{console['log'](a33_0x9b5ea7[_0x1f211e(0x204)]('['+_0x268266+_0x1f211e(0x1d0)+_0xb353db+'\x27'));const _0x4fcd60=formatFlatList(_0x1aa0fc,_0x38c9d9,{'showMetadata':!![],'getSegmentUrl':_0x2b2b30},_0x2a8bfa);console[_0x1f211e(0x1e9)](_0x4fcd60);}}return 0x0;}async[a33_0x2934c5(0x1d1)](_0xa13789,_0x4cff3f){const _0x4f650a=a33_0x2934c5,{options:_0x64307b,tdx:_0x50e66b}=_0xa13789,_0x1f8cfc=await withSpinner(_0x4f650a(0x1d4)+_0x4cff3f+_0x4f650a(0x1fe),()=>_0x50e66b[_0x4f650a(0x201)][_0x4f650a(0x1f3)](_0x4cff3f),{'verbose':_0x64307b[_0x4f650a(0x1ef)]}),_0x5c961d=_0x1f8cfc[_0x4f650a(0x1ee)];_0x64307b[_0x4f650a(0x1ef)]&&(console[_0x4f650a(0x1dc)](_0x4f650a(0x1f2)+_0x5c961d['parentId']),_0x5c961d[_0x4f650a(0x1c9)]&&console[_0x4f650a(0x1dc)](_0x4f650a(0x1cd)+_0x5c961d['folderId']));const _0xbd8286=await withSpinner(_0x4f650a(0x1be),()=>_0x50e66b[_0x4f650a(0x201)][_0x4f650a(0x1f0)](_0x5c961d[_0x4f650a(0x1cf)],_0x5c961d['folderId']),{'verbose':_0x64307b['verbose']}),{folders:_0x592f31,segments:_0x5a1297,journeys:_0x4d03e4}=_0xbd8286['data'],_0x488a7e=_0x592f31['length']+_0x5a1297['length']+_0x4d03e4['length'];console[_0x4f650a(0x1dc)](_0x4f650a(0x1cb)+_0x592f31['length']+'\x20folder'+(_0x592f31[_0x4f650a(0x1c7)]!==0x1?'s':'')+',\x20'+_0x5a1297['length']+_0x4f650a(0x1f4)+(_0x5a1297[_0x4f650a(0x1c7)]!==0x1?'s':'')+_0x4f650a(0x1f8)+_0x4d03e4[_0x4f650a(0x1c7)]+_0x4f650a(0x1bb)+(_0x4d03e4[_0x4f650a(0x1c7)]!==0x1?'s':''));const _0x45079e=_0x65a88e=>{const _0x260895=_0x4f650a;return getConsoleNextUrl(_0x64307b[_0x260895(0x1e2)],'/app/ps/'+_0x5c961d[_0x260895(0x1cf)]+'/e/'+_0x65a88e);},_0x419c60=_0x37f23d=>{const _0x244802=_0x4f650a;return getConsoleNextUrl(_0x64307b[_0x244802(0x1e2)],'/app/ps/'+_0x5c961d['parentId']+'/e/'+_0x37f23d+_0x244802(0x1df));},_0x24b871=_0x64307b[_0x4f650a(0x1de)]===_0x4f650a(0x1d5)||_0x64307b[_0x4f650a(0x1de)]==='jsonl';if(_0x24b871){const _0x35b4ec=[..._0x592f31[_0x4f650a(0x1e5)](_0x2ba095=>({..._0x2ba095,'type':'folder'})),..._0x5a1297['map'](_0x42bf5a=>({..._0x42bf5a,'type':_0x4f650a(0x201),'url':_0x45079e(_0x42bf5a['id'])})),..._0x4d03e4[_0x4f650a(0x1e5)](_0x502cbf=>({..._0x502cbf,'name':_0x502cbf[_0x4f650a(0x1c1)],'type':'journey','url':_0x419c60(_0x502cbf['id'])}))][_0x4f650a(0x1fb)]((_0x3c6264,_0x3c678c)=>_0x3c6264[_0x4f650a(0x1bf)][_0x4f650a(0x1c6)](_0x3c678c[_0x4f650a(0x1bf)]));await handleSDKOutput(_0x35b4ec,_0x64307b);}else{if(_0x488a7e===0x0)console[_0x4f650a(0x1e9)](a33_0x9b5ea7['dim']('['+_0x4cff3f+']')),console[_0x4f650a(0x1e9)](_0x4f650a(0x200));else{console['log'](a33_0x9b5ea7['dim']('['+_0x4cff3f+']'));const _0x5171c9=formatFlatList(_0x592f31,_0x5a1297,{'showMetadata':!![],'getSegmentUrl':_0x45079e,'getJourneyUrl':_0x419c60},_0x4d03e4);console[_0x4f650a(0x1e9)](_0x5171c9);}}return 0x0;}async[a33_0x2934c5(0x1e1)](_0x4c9b09,_0x1a5fc4){const _0x3fb000=a33_0x2934c5,{options:_0x33124d,tdx:_0x33f8a7}=_0x4c9b09,_0x518847=await withSpinner(_0x3fb000(0x1d4)+_0x1a5fc4+_0x3fb000(0x1fe),()=>_0x33f8a7[_0x3fb000(0x201)][_0x3fb000(0x1f3)](_0x1a5fc4),{'verbose':_0x33124d['verbose']}),_0x5eb899=_0x518847[_0x3fb000(0x1ee)];_0x33124d['verbose']&&(console[_0x3fb000(0x1dc)](_0x3fb000(0x1f2)+_0x5eb899[_0x3fb000(0x1cf)]),_0x5eb899[_0x3fb000(0x1c9)]&&console['error']('Folder\x20ID:\x20'+_0x5eb899[_0x3fb000(0x1c9)]));const _0x3a4772=_0x33124d[_0x3fb000(0x1ed)]||0xa,_0x50442a=await withSpinner(_0x3fb000(0x1d3),()=>_0x33f8a7['segment'][_0x3fb000(0x1e1)](_0x5eb899[_0x3fb000(0x1cf)],_0x5eb899['folderId'],0x0,_0x3a4772),{'verbose':_0x33124d[_0x3fb000(0x1ef)]}),_0x2fa46b=_0x50442a[_0x3fb000(0x1ee)],_0x11d5c7=_0x4f5f2c=>{const _0x598447=_0x3fb000;let _0x9e1c00=0x0,_0x5b4e79=0x0,_0x3d28b2=0x0;for(const _0x5e0f46 of _0x4f5f2c){if(_0x5e0f46[_0x598447(0x1fa)]===_0x598447(0x1e7))_0x9e1c00++;else{if(_0x5e0f46[_0x598447(0x1fa)]===_0x598447(0x201))_0x5b4e79++;else{if(_0x5e0f46['type']===_0x598447(0x1db))_0x3d28b2++;}}if(_0x5e0f46['children']){const _0x3591ad=_0x11d5c7(_0x5e0f46['children']);_0x9e1c00+=_0x3591ad['folders'],_0x5b4e79+=_0x3591ad[_0x598447(0x206)],_0x3d28b2+=_0x3591ad[_0x598447(0x1ce)];}}return{'folders':_0x9e1c00,'segments':_0x5b4e79,'journeys':_0x3d28b2};},_0x2d5dce=_0x11d5c7(_0x2fa46b);console[_0x3fb000(0x1dc)](_0x3fb000(0x1b9)+_0x2d5dce[_0x3fb000(0x1f5)]+_0x3fb000(0x1f9)+(_0x2d5dce[_0x3fb000(0x1f5)]!==0x1?'s':'')+',\x20'+_0x2d5dce[_0x3fb000(0x206)]+_0x3fb000(0x1f4)+(_0x2d5dce['segments']!==0x1?'s':'')+_0x3fb000(0x1f8)+_0x2d5dce['journeys']+_0x3fb000(0x1bb)+(_0x2d5dce['journeys']!==0x1?'s':''));const _0x2b64de=_0x1ae847=>{const _0x4a79df=_0x3fb000;return getConsoleNextUrl(_0x33124d[_0x4a79df(0x1e2)],_0x4a79df(0x1dd)+_0x5eb899[_0x4a79df(0x1cf)]+_0x4a79df(0x1e8)+_0x1ae847);},_0x2aa3a0=_0x590943=>{const _0x57258d=_0x3fb000;return getConsoleNextUrl(_0x33124d['site'],_0x57258d(0x1dd)+_0x5eb899[_0x57258d(0x1cf)]+_0x57258d(0x1e8)+_0x590943+_0x57258d(0x1df));};if(_0x33124d[_0x3fb000(0x1de)]==='json'||_0x33124d[_0x3fb000(0x1de)]==='jsonl')await handleSDKOutput(_0x2fa46b,_0x33124d);else{console[_0x3fb000(0x1e9)](a33_0x9b5ea7[_0x3fb000(0x204)]('['+_0x1a5fc4+']'));const _0x31419f=formatTree(_0x2fa46b,{'showMetadata':!![],'getSegmentUrl':_0x2b64de,'getJourneyUrl':_0x2aa3a0});console[_0x3fb000(0x1e9)](_0x31419f);}return 0x0;}}
1
+ const a33_0x1a750b=a33_0x4cc8;(function(_0x53fd1a,_0x478d1f){const _0x3db292=a33_0x4cc8,_0xd7b143=_0x53fd1a();while(!![]){try{const _0x3a2a37=parseInt(_0x3db292(0xa8))/0x1+parseInt(_0x3db292(0xaa))/0x2*(parseInt(_0x3db292(0xc5))/0x3)+-parseInt(_0x3db292(0xd4))/0x4*(parseInt(_0x3db292(0xb5))/0x5)+-parseInt(_0x3db292(0xc6))/0x6*(-parseInt(_0x3db292(0xb6))/0x7)+-parseInt(_0x3db292(0xb3))/0x8+parseInt(_0x3db292(0xc8))/0x9*(parseInt(_0x3db292(0xd3))/0xa)+parseInt(_0x3db292(0xda))/0xb;if(_0x3a2a37===_0x478d1f)break;else _0xd7b143['push'](_0xd7b143['shift']());}catch(_0x1fb72d){_0xd7b143['push'](_0xd7b143['shift']());}}}(a33_0x7f37,0x81a97));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a33_0x4cc8(_0x29ea33,_0x2cfb1e){_0x29ea33=_0x29ea33-0xa0;const _0x7f378=a33_0x7f37();let _0x4cc8ee=_0x7f378[_0x29ea33];return _0x4cc8ee;}function a33_0x7f37(){const _0x2d3003=['\x20matching\x20\x27','log','children','✔\x20Built\x20tree\x20with\x20','Parent\x20ID:\x20','journeys','Set\x20a\x20parent\x20segment\x20context\x20first:','5390RWwkwl','24CvrIJx','segment','listUnified','folderId','test','message','1869252paETJP','/e/','format','\x20segment','Resolving\x20parent\x20segment\x20\x27','(not\x20set)','error','\x20journey','Folder\x20ID:\x20','segments','Site:\x20','Listing\x20folders,\x20segments,\x20and\x20journeys...','filter','Building\x20hierarchy\x20tree...','json','verbose','folders','dim','journeyBundleName','localeCompare','execute','type','folder','sort','(empty)','maxDepth','jsonl','✔\x20Found\x20','\x27...','Folder/pattern\x20arg:\x20','Resolving\x20path\x20\x27','map','927141MlWxfo','name','557246CkSPQL','Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.',']\x20matching\x20\x27','cause','Recursive\x20mode:\x20enabled','\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22','length','site','data','7143920RXMhrU','listWithPattern','455815alGcMO','25711MvgOvC','No\x20items\x20match\x20pattern:\x20','parentId','\x5c$&','journey','resolvePathToResource','\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22','Error:\x20','includes','\x20folder','replace','description','/j/da','listUnifiedWithJourneys','Error:\x20No\x20parent\x20segment\x20context\x20set.','6mjauwA','270eSHVUb','\x20\x20Cause:\x20','2529UgdlyA',',\x20and\x20','listRecursive','parentSegment'];a33_0x7f37=function(){return _0x2d3003;};return a33_0x7f37();}import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import{formatFlatList,formatTree}from'../sdk/util/tree-formatter.js';import{getConsoleNextUrl}from'../sdk/client/endpoints.js';import a33_0x53b097 from'chalk';export class SegmentsCommand extends BaseCommand{['name']=a33_0x1a750b(0xe3);[a33_0x1a750b(0xc1)]='List\x20folders\x20and\x20child\x20segments';async[a33_0x1a750b(0xee)](_0x57eed9){const _0x3c61e0=a33_0x1a750b,{options:_0x578aad,args:_0x16710d}=_0x57eed9,_0x2c4b4=_0x578aad['recursive'],_0x3a5443=_0x16710d[0x0];try{const _0x1063f9=_0x578aad[_0x3c61e0(0xcb)];_0x578aad[_0x3c61e0(0xe9)]&&(console['error'](_0x3c61e0(0xe4)+_0x578aad[_0x3c61e0(0xb1)]),console[_0x3c61e0(0xe0)]('Parent\x20segment\x20context:\x20'+(_0x1063f9||_0x3c61e0(0xdf))),_0x3a5443&&console['error'](_0x3c61e0(0xa5)+_0x3a5443),_0x2c4b4&&console[_0x3c61e0(0xe0)](_0x3c61e0(0xae)));if(!_0x1063f9)return console[_0x3c61e0(0xe0)](_0x3c61e0(0xc4)),console[_0x3c61e0(0xe0)](''),console[_0x3c61e0(0xe0)](_0x3c61e0(0xd2)),console[_0x3c61e0(0xe0)](_0x3c61e0(0xaf)),console[_0x3c61e0(0xe0)](_0x3c61e0(0xbc)),console[_0x3c61e0(0xe0)](''),console[_0x3c61e0(0xe0)](_0x3c61e0(0xab)),0x1;const _0x456319=_0x3a5443&&(_0x3a5443['includes']('*')||_0x3a5443[_0x3c61e0(0xbe)]('?'));if(_0x456319)return await this['listWithPattern'](_0x57eed9,_0x1063f9,_0x3a5443);const _0x20e42b=_0x3a5443?_0x1063f9+'/'+_0x3a5443:_0x1063f9;return _0x2c4b4?await this[_0x3c61e0(0xca)](_0x57eed9,_0x20e42b):await this[_0x3c61e0(0xd6)](_0x57eed9,_0x20e42b);}catch(_0x541c99){if(_0x541c99 instanceof SDKError)return console[_0x3c61e0(0xe0)](_0x3c61e0(0xbd)+_0x541c99[_0x3c61e0(0xd9)]),_0x541c99[_0x3c61e0(0xad)]&&console[_0x3c61e0(0xe0)](_0x3c61e0(0xc7)+_0x541c99[_0x3c61e0(0xad)]),0x1;throw _0x541c99;}}async[a33_0x1a750b(0xb4)](_0x1b5c38,_0xf70dff,_0x329e7e){const _0x4b3a91=a33_0x1a750b,{options:_0x5b32b1,tdx:_0x414c2}=_0x1b5c38,_0x54481f=await withSpinner(_0x4b3a91(0xde)+_0xf70dff+_0x4b3a91(0xa4),()=>_0x414c2['segment']['resolvePathToResource'](_0xf70dff),{'verbose':_0x5b32b1[_0x4b3a91(0xe9)]}),_0x4cc77d=_0x54481f[_0x4b3a91(0xb2)],_0x1815a8=await withSpinner(_0x4b3a91(0xe5),()=>_0x414c2[_0x4b3a91(0xd5)][_0x4b3a91(0xc3)](_0x4cc77d[_0x4b3a91(0xb8)],_0x4cc77d[_0x4b3a91(0xd7)]),{'verbose':_0x5b32b1['verbose']}),{folders:_0x29a0f1,segments:_0x3b426c,journeys:_0x553411}=_0x1815a8['data'],_0x297fb3=_0x329e7e['replace'](/[.+^${}()|[\]\\]/g,_0x4b3a91(0xb9))['replace'](/\*/g,'.*')[_0x4b3a91(0xc0)](/\?/g,'.'),_0x4064b2=new RegExp('^'+_0x297fb3+'$','i'),_0x2abe46=_0x29a0f1[_0x4b3a91(0xe6)](_0x3c846a=>_0x4064b2['test'](_0x3c846a['name'])),_0x1f4ffc=_0x3b426c[_0x4b3a91(0xe6)](_0x20e5f2=>_0x4064b2[_0x4b3a91(0xd8)](_0x20e5f2[_0x4b3a91(0xa9)])),_0x56d17f=_0x553411[_0x4b3a91(0xe6)](_0x69338d=>_0x4064b2['test'](_0x69338d[_0x4b3a91(0xec)])),_0x12eea6=_0x2abe46[_0x4b3a91(0xb0)]+_0x1f4ffc['length']+_0x56d17f['length'];console[_0x4b3a91(0xe0)](_0x4b3a91(0xa3)+_0x2abe46[_0x4b3a91(0xb0)]+_0x4b3a91(0xbf)+(_0x2abe46[_0x4b3a91(0xb0)]!==0x1?'s':'')+',\x20'+_0x1f4ffc[_0x4b3a91(0xb0)]+_0x4b3a91(0xdd)+(_0x1f4ffc[_0x4b3a91(0xb0)]!==0x1?'s':'')+_0x4b3a91(0xc9)+_0x56d17f[_0x4b3a91(0xb0)]+_0x4b3a91(0xe1)+(_0x56d17f['length']!==0x1?'s':'')+_0x4b3a91(0xcc)+_0x329e7e+'\x27');const _0x5ce17e=_0x5ecf9f=>{const _0x542c4a=_0x4b3a91;return getConsoleNextUrl(_0x5b32b1[_0x542c4a(0xb1)],'/app/ps/'+_0x4cc77d[_0x542c4a(0xb8)]+'/e/'+_0x5ecf9f);},_0x531079=_0x5b32b1[_0x4b3a91(0xdc)]===_0x4b3a91(0xe8)||_0x5b32b1['format']===_0x4b3a91(0xa2);if(_0x531079){const _0x181aeb=[..._0x2abe46[_0x4b3a91(0xa7)](_0xe950d4=>({..._0xe950d4,'type':'folder'})),..._0x1f4ffc[_0x4b3a91(0xa7)](_0x839dc2=>({..._0x839dc2,'type':_0x4b3a91(0xd5),'url':_0x5ce17e(_0x839dc2['id'])})),..._0x56d17f[_0x4b3a91(0xa7)](_0x4b1d39=>({..._0x4b1d39,'name':_0x4b1d39[_0x4b3a91(0xec)],'type':_0x4b3a91(0xba)}))]['sort']((_0x3435a8,_0x3e6ede)=>_0x3435a8[_0x4b3a91(0xa9)][_0x4b3a91(0xed)](_0x3e6ede[_0x4b3a91(0xa9)]));await handleSDKOutput(_0x181aeb,_0x5b32b1);}else{if(_0x12eea6===0x0)console[_0x4b3a91(0xcd)](_0x4b3a91(0xb7)+_0x329e7e);else{console[_0x4b3a91(0xcd)](a33_0x53b097[_0x4b3a91(0xeb)]('['+_0xf70dff+_0x4b3a91(0xac)+_0x329e7e+'\x27'));const _0x58b6da=formatFlatList(_0x2abe46,_0x1f4ffc,{'showMetadata':!![],'getSegmentUrl':_0x5ce17e},_0x56d17f);console[_0x4b3a91(0xcd)](_0x58b6da);}}return 0x0;}async[a33_0x1a750b(0xd6)](_0x5cbfd1,_0x1ee35e){const _0x23ac55=a33_0x1a750b,{options:_0x2d86c3,tdx:_0x389cf3}=_0x5cbfd1,_0x3850c0=await withSpinner('Resolving\x20path\x20\x27'+_0x1ee35e+_0x23ac55(0xa4),()=>_0x389cf3['segment'][_0x23ac55(0xbb)](_0x1ee35e),{'verbose':_0x2d86c3[_0x23ac55(0xe9)]}),_0x15b250=_0x3850c0[_0x23ac55(0xb2)];_0x2d86c3['verbose']&&(console[_0x23ac55(0xe0)](_0x23ac55(0xd0)+_0x15b250[_0x23ac55(0xb8)]),_0x15b250[_0x23ac55(0xd7)]&&console[_0x23ac55(0xe0)](_0x23ac55(0xe2)+_0x15b250[_0x23ac55(0xd7)]));const _0x3f62f2=await withSpinner(_0x23ac55(0xe5),()=>_0x389cf3['segment'][_0x23ac55(0xc3)](_0x15b250[_0x23ac55(0xb8)],_0x15b250[_0x23ac55(0xd7)]),{'verbose':_0x2d86c3[_0x23ac55(0xe9)]}),{folders:_0x997d64,segments:_0x4fd52a,journeys:_0x5e9ee6}=_0x3f62f2['data'],_0x5cd0b2=_0x997d64[_0x23ac55(0xb0)]+_0x4fd52a[_0x23ac55(0xb0)]+_0x5e9ee6[_0x23ac55(0xb0)];console[_0x23ac55(0xe0)](_0x23ac55(0xa3)+_0x997d64[_0x23ac55(0xb0)]+_0x23ac55(0xbf)+(_0x997d64[_0x23ac55(0xb0)]!==0x1?'s':'')+',\x20'+_0x4fd52a[_0x23ac55(0xb0)]+'\x20segment'+(_0x4fd52a[_0x23ac55(0xb0)]!==0x1?'s':'')+_0x23ac55(0xc9)+_0x5e9ee6[_0x23ac55(0xb0)]+_0x23ac55(0xe1)+(_0x5e9ee6[_0x23ac55(0xb0)]!==0x1?'s':''));const _0x1a0c1d=_0x42b063=>{const _0x58086b=_0x23ac55;return getConsoleNextUrl(_0x2d86c3['site'],'/app/ps/'+_0x15b250[_0x58086b(0xb8)]+_0x58086b(0xdb)+_0x42b063);},_0x1e848b=_0x21b2ef=>{const _0x207175=_0x23ac55;return getConsoleNextUrl(_0x2d86c3[_0x207175(0xb1)],'/app/ps/'+_0x15b250[_0x207175(0xb8)]+_0x207175(0xdb)+_0x21b2ef+'/j/da');},_0x555919=_0x2d86c3[_0x23ac55(0xdc)]===_0x23ac55(0xe8)||_0x2d86c3[_0x23ac55(0xdc)]==='jsonl';if(_0x555919){const _0x569a62=[..._0x997d64[_0x23ac55(0xa7)](_0xc5df94=>({..._0xc5df94,'type':_0x23ac55(0xf0)})),..._0x4fd52a['map'](_0x202e66=>({..._0x202e66,'type':_0x23ac55(0xd5),'url':_0x1a0c1d(_0x202e66['id'])})),..._0x5e9ee6[_0x23ac55(0xa7)](_0x513006=>({..._0x513006,'name':_0x513006['journeyBundleName'],'type':_0x23ac55(0xba),'url':_0x1e848b(_0x513006['id'])}))][_0x23ac55(0xf1)]((_0x595bc,_0x446958)=>_0x595bc[_0x23ac55(0xa9)][_0x23ac55(0xed)](_0x446958[_0x23ac55(0xa9)]));await handleSDKOutput(_0x569a62,_0x2d86c3);}else{if(_0x5cd0b2===0x0)console[_0x23ac55(0xcd)](a33_0x53b097[_0x23ac55(0xeb)]('['+_0x1ee35e+']')),console[_0x23ac55(0xcd)](_0x23ac55(0xa0));else{console[_0x23ac55(0xcd)](a33_0x53b097['dim']('['+_0x1ee35e+']'));const _0x105607=formatFlatList(_0x997d64,_0x4fd52a,{'showMetadata':!![],'getSegmentUrl':_0x1a0c1d,'getJourneyUrl':_0x1e848b},_0x5e9ee6);console[_0x23ac55(0xcd)](_0x105607);}}return 0x0;}async[a33_0x1a750b(0xca)](_0x91c8b2,_0x1a9831){const _0x37b73c=a33_0x1a750b,{options:_0x14c96e,tdx:_0x58e67f}=_0x91c8b2,_0x1b285c=await withSpinner(_0x37b73c(0xa6)+_0x1a9831+_0x37b73c(0xa4),()=>_0x58e67f[_0x37b73c(0xd5)][_0x37b73c(0xbb)](_0x1a9831),{'verbose':_0x14c96e[_0x37b73c(0xe9)]}),_0x32b6e7=_0x1b285c['data'];_0x14c96e[_0x37b73c(0xe9)]&&(console['error']('Parent\x20ID:\x20'+_0x32b6e7[_0x37b73c(0xb8)]),_0x32b6e7[_0x37b73c(0xd7)]&&console[_0x37b73c(0xe0)](_0x37b73c(0xe2)+_0x32b6e7[_0x37b73c(0xd7)]));const _0x13611f=_0x14c96e[_0x37b73c(0xa1)]||0xa,_0x420c91=await withSpinner(_0x37b73c(0xe7),()=>_0x58e67f['segment'][_0x37b73c(0xca)](_0x32b6e7[_0x37b73c(0xb8)],_0x32b6e7['folderId'],0x0,_0x13611f),{'verbose':_0x14c96e[_0x37b73c(0xe9)]}),_0xeeecc1=_0x420c91[_0x37b73c(0xb2)],_0x47ac38=_0x2247ae=>{const _0x4703b2=_0x37b73c;let _0x412548=0x0,_0x5b2f30=0x0,_0x10514f=0x0;for(const _0x23d337 of _0x2247ae){if(_0x23d337[_0x4703b2(0xef)]===_0x4703b2(0xf0))_0x412548++;else{if(_0x23d337[_0x4703b2(0xef)]===_0x4703b2(0xd5))_0x5b2f30++;else{if(_0x23d337['type']===_0x4703b2(0xba))_0x10514f++;}}if(_0x23d337[_0x4703b2(0xce)]){const _0x1dfbff=_0x47ac38(_0x23d337[_0x4703b2(0xce)]);_0x412548+=_0x1dfbff[_0x4703b2(0xea)],_0x5b2f30+=_0x1dfbff['segments'],_0x10514f+=_0x1dfbff[_0x4703b2(0xd1)];}}return{'folders':_0x412548,'segments':_0x5b2f30,'journeys':_0x10514f};},_0x373ebc=_0x47ac38(_0xeeecc1);console['error'](_0x37b73c(0xcf)+_0x373ebc[_0x37b73c(0xea)]+_0x37b73c(0xbf)+(_0x373ebc[_0x37b73c(0xea)]!==0x1?'s':'')+',\x20'+_0x373ebc[_0x37b73c(0xe3)]+'\x20segment'+(_0x373ebc['segments']!==0x1?'s':'')+_0x37b73c(0xc9)+_0x373ebc[_0x37b73c(0xd1)]+'\x20journey'+(_0x373ebc[_0x37b73c(0xd1)]!==0x1?'s':''));const _0x55256c=_0x22c622=>{const _0x289dd3=_0x37b73c;return getConsoleNextUrl(_0x14c96e[_0x289dd3(0xb1)],'/app/ps/'+_0x32b6e7[_0x289dd3(0xb8)]+'/e/'+_0x22c622);},_0x540546=_0xcddc20=>{const _0x366ce5=_0x37b73c;return getConsoleNextUrl(_0x14c96e[_0x366ce5(0xb1)],'/app/ps/'+_0x32b6e7[_0x366ce5(0xb8)]+_0x366ce5(0xdb)+_0xcddc20+_0x366ce5(0xc2));};if(_0x14c96e[_0x37b73c(0xdc)]===_0x37b73c(0xe8)||_0x14c96e[_0x37b73c(0xdc)]===_0x37b73c(0xa2))await handleSDKOutput(_0xeeecc1,_0x14c96e);else{console[_0x37b73c(0xcd)](a33_0x53b097[_0x37b73c(0xeb)]('['+_0x1a9831+']'));const _0x1023b6=formatTree(_0xeeecc1,{'showMetadata':!![],'getSegmentUrl':_0x55256c,'getJourneyUrl':_0x540546});console[_0x37b73c(0xcd)](_0x1023b6);}return 0x0;}}
@@ -1 +1 @@
1
- const a34_0x5876cb=a34_0x5503;(function(_0xcbc2dc,_0x906f37){const _0xc84777=a34_0x5503,_0x40d295=_0xcbc2dc();while(!![]){try{const _0x4b2b63=-parseInt(_0xc84777(0xf9))/0x1*(parseInt(_0xc84777(0x105))/0x2)+-parseInt(_0xc84777(0x10e))/0x3*(parseInt(_0xc84777(0xf6))/0x4)+parseInt(_0xc84777(0xfa))/0x5*(parseInt(_0xc84777(0x103))/0x6)+-parseInt(_0xc84777(0x115))/0x7+-parseInt(_0xc84777(0xff))/0x8+-parseInt(_0xc84777(0x113))/0x9+parseInt(_0xc84777(0x117))/0xa;if(_0x4b2b63===_0x906f37)break;else _0x40d295['push'](_0x40d295['shift']());}catch(_0x90e5d8){_0x40d295['push'](_0x40d295['shift']());}}}(a34_0x42e3,0xd3632));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';function a34_0x5503(_0x1a8352,_0x292bcf){_0x1a8352=_0x1a8352-0xec;const _0x42e3fc=a34_0x42e3();let _0x550301=_0x42e3fc[_0x1a8352];return _0x550301;}import{parseTableReference,validateTableDescribeReference}from'../utils/table-ref-parser.js';function a34_0x42e3(){const _0x517c41=['args','Database:\x20','catalog','site','12227697dchGuG','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>','5765851UyCsto','Too\x20many\x20arguments\x0aUsage:\x20tdx\x20show\x20<database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>\x0a\x0aRun\x20\x27tdx\x20show\x20--help\x27\x20for\x20more\x20options','47113720fZysfK','Limit:\x20','length','limit','showTable','description','message','\x20row','database','cause','Querying\x20','✔\x20Retrieved\x20','524ZuGzgg','verbose','Site:\x20','1CCfwQD','2524915uugjXs','validate','Show\x20table\x20contents','name','\x20from\x20','3621496lbAktR','Catalog:\x20','Usage:\x20tdx\x20show\x20<database.table>','query','12MYfQhr','✔\x20Query\x20successful\x20-\x200\x20rows\x20returned','1926290aeScDu','data','show','Error:\x20','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','table','Usage:\x20tdx\x20show\x20<database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--in\x20<database>\x0a\x0aRun\x20\x27tdx\x20show\x20--help\x27\x20for\x20more\x20options','error','\x20\x20Cause:\x20','28794eyJMlV'];a34_0x42e3=function(){return _0x517c41;};return a34_0x42e3();}import{withSpinner}from'../utils/spinner.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';export class ShowCommand extends BaseCommand{[a34_0x5876cb(0xfd)]=a34_0x5876cb(0x107);[a34_0x5876cb(0xef)]=a34_0x5876cb(0xfc);async['execute'](_0x164e70){const _0x4ce57d=a34_0x5876cb;return this[_0x4ce57d(0xee)](_0x164e70);}async[a34_0x5876cb(0xee)](_0x55fce7){const _0x1d3e6b=a34_0x5876cb,{options:_0xdf69b4,args:_0x3b8b0f,tdx:_0x34bc21}=_0x55fce7;let _0x3755e1;try{_0x3755e1=parseTableReference(_0x3b8b0f[0x0]);const _0x2da12f=_0xdf69b4['database'];!_0x3755e1[_0x1d3e6b(0xf2)]&&_0x2da12f&&(_0x3755e1[_0x1d3e6b(0xf2)]=_0x2da12f);const _0x594a10=validateTableDescribeReference(_0x3755e1);if(_0x594a10)return console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x108)+_0x594a10),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x101)),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x114)),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x109)),0x1;}catch(_0x29a721){return console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x108)+_0x29a721['message']),console[_0x1d3e6b(0x10c)]('Usage:\x20tdx\x20show\x20<database.table>'),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x114)),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x109)),0x1;}const _0x5f54da=_0x3755e1[_0x1d3e6b(0x111)],_0x311d70=_0x3755e1[_0x1d3e6b(0xf2)],_0x5a8784=_0x3755e1[_0x1d3e6b(0x10a)],_0x4b4fee=resolveLimit(_0xdf69b4[_0x1d3e6b(0xed)],DEFAULT_DISPLAY_LIMIT);try{_0xdf69b4[_0x1d3e6b(0xf7)]&&(console[_0x1d3e6b(0x10c)](_0x1d3e6b(0xf8)+_0xdf69b4[_0x1d3e6b(0x112)]),_0x5f54da&&console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x100)+_0x5f54da),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x110)+_0x311d70),console['error']('Table:\x20'+_0x5a8784),console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x118)+_0x4b4fee));const _0x17280e=_0x5f54da?_0x5f54da+'.'+_0x311d70+'.'+_0x5a8784:_0x311d70+'.'+_0x5a8784,_0x54d37a=await withSpinner(_0x1d3e6b(0xf4)+_0x17280e+'...',()=>_0x34bc21[_0x1d3e6b(0x102)]['showTable'](_0x311d70,_0x5a8784,_0x4b4fee,_0x5f54da),{'verbose':_0xdf69b4['verbose']}),_0x595a56=_0x54d37a[_0x1d3e6b(0x106)],_0x374bc4=_0x595a56[_0x1d3e6b(0x106)];return _0x374bc4[_0x1d3e6b(0xec)]===0x0?console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x104)):console[_0x1d3e6b(0x10c)](_0x1d3e6b(0xf5)+_0x374bc4['length']+_0x1d3e6b(0xf1)+(_0x374bc4[_0x1d3e6b(0xec)]!==0x1?'s':'')+_0x1d3e6b(0xfe)+_0x17280e),await handleSDKOutput(_0x374bc4,_0xdf69b4),0x0;}catch(_0x4a9843){if(_0x4a9843 instanceof SDKError)return console['error']('Error:\x20'+_0x4a9843[_0x1d3e6b(0xf0)]),_0x4a9843[_0x1d3e6b(0xf3)]&&console[_0x1d3e6b(0x10c)](_0x1d3e6b(0x10d)+_0x4a9843[_0x1d3e6b(0xf3)]),0x1;throw _0x4a9843;}}[a34_0x5876cb(0xfb)](_0x408a94){const _0x2d2991=a34_0x5876cb;if(_0x408a94[_0x2d2991(0x10f)][_0x2d2991(0xec)]===0x0)return _0x2d2991(0x10b);if(_0x408a94[_0x2d2991(0x10f)]['length']>0x1)return _0x2d2991(0x116);return undefined;}}
1
+ const a34_0x318abc=a34_0x44c6;(function(_0x145e72,_0x5de36b){const _0x1ce8f9=a34_0x44c6,_0x28ac4d=_0x145e72();while(!![]){try{const _0x83e8f2=parseInt(_0x1ce8f9(0x1db))/0x1+-parseInt(_0x1ce8f9(0x1d1))/0x2+parseInt(_0x1ce8f9(0x1e1))/0x3+-parseInt(_0x1ce8f9(0x1ed))/0x4*(-parseInt(_0x1ce8f9(0x1eb))/0x5)+parseInt(_0x1ce8f9(0x1ea))/0x6*(parseInt(_0x1ce8f9(0x1d5))/0x7)+parseInt(_0x1ce8f9(0x1e8))/0x8+-parseInt(_0x1ce8f9(0x1d7))/0x9;if(_0x83e8f2===_0x5de36b)break;else _0x28ac4d['push'](_0x28ac4d['shift']());}catch(_0x2b1a6f){_0x28ac4d['push'](_0x28ac4d['shift']());}}}(a34_0x16c1,0xbb8b9));function a34_0x16c1(){const _0x33542e=['args','\x20\x20Cause:\x20','query','21ulJxVH','error','11098854PBGgMS','site','catalog','cause','1402679ubOazm','showTable','...','description','Error:\x20','database','2450043qQDAtO','Too\x20many\x20arguments\x0aUsage:\x20tdx\x20show\x20<database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>\x0a\x0aRun\x20\x27tdx\x20show\x20--help\x27\x20for\x20more\x20options','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>','Querying\x20','Catalog:\x20','\x20from\x20','data','1676160dNgqPI','Usage:\x20tdx\x20show\x20<database.table>','236046QVlLxs','115uzBihh','verbose','4892GARNMj','validate','Usage:\x20tdx\x20show\x20<database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>\x0a\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--in\x20<database>\x0a\x0aRun\x20\x27tdx\x20show\x20--help\x27\x20for\x20more\x20options','message','length','name','limit','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','Database:\x20','table','execute','Limit:\x20','Table:\x20','✔\x20Query\x20successful\x20-\x200\x20rows\x20returned','1147282HAQkCj'];a34_0x16c1=function(){return _0x33542e;};return a34_0x16c1();}import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';import{parseTableReference,validateTableDescribeReference}from'../utils/table-ref-parser.js';import{withSpinner}from'../utils/spinner.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';function a34_0x44c6(_0x511b97,_0x393176){_0x511b97=_0x511b97-0x1c8;const _0x16c152=a34_0x16c1();let _0x44c6c9=_0x16c152[_0x511b97];return _0x44c6c9;}export class ShowCommand extends BaseCommand{[a34_0x318abc(0x1c8)]='show';[a34_0x318abc(0x1de)]='Show\x20table\x20contents';async[a34_0x318abc(0x1cd)](_0x176765){return this['showTable'](_0x176765);}async[a34_0x318abc(0x1dc)](_0x156c84){const _0x3a68d0=a34_0x318abc,{options:_0x3e8d3d,args:_0xcff61f,tdx:_0x163c40}=_0x156c84;let _0x53d5ae;try{_0x53d5ae=parseTableReference(_0xcff61f[0x0]);const _0x2ef7ed=_0x3e8d3d['database'];!_0x53d5ae[_0x3a68d0(0x1e0)]&&_0x2ef7ed&&(_0x53d5ae[_0x3a68d0(0x1e0)]=_0x2ef7ed);const _0x4fa05e=validateTableDescribeReference(_0x53d5ae);if(_0x4fa05e)return console['error'](_0x3a68d0(0x1df)+_0x4fa05e),console[_0x3a68d0(0x1d6)]('Usage:\x20tdx\x20show\x20<database.table>'),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1e3)),console[_0x3a68d0(0x1d6)]('\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>'),0x1;}catch(_0xf153eb){return console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1df)+_0xf153eb[_0x3a68d0(0x1f0)]),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1e9)),console['error'](_0x3a68d0(0x1e3)),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1ca)),0x1;}const _0x40a222=_0x53d5ae[_0x3a68d0(0x1d9)],_0x96f361=_0x53d5ae['database'],_0x5a9ac2=_0x53d5ae[_0x3a68d0(0x1cc)],_0x5f2f9d=resolveLimit(_0x3e8d3d[_0x3a68d0(0x1c9)],DEFAULT_DISPLAY_LIMIT);try{_0x3e8d3d['verbose']&&(console['error']('Site:\x20'+_0x3e8d3d[_0x3a68d0(0x1d8)]),_0x40a222&&console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1e5)+_0x40a222),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1cb)+_0x96f361),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1cf)+_0x5a9ac2),console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1ce)+_0x5f2f9d));const _0x31d5df=_0x40a222?_0x40a222+'.'+_0x96f361+'.'+_0x5a9ac2:_0x96f361+'.'+_0x5a9ac2,_0x14e70f=await withSpinner(_0x3a68d0(0x1e4)+_0x31d5df+_0x3a68d0(0x1dd),()=>_0x163c40[_0x3a68d0(0x1d4)][_0x3a68d0(0x1dc)](_0x96f361,_0x5a9ac2,_0x5f2f9d,_0x40a222),{'verbose':_0x3e8d3d[_0x3a68d0(0x1ec)]}),_0x556dbb=_0x14e70f[_0x3a68d0(0x1e7)],_0x37edd2=_0x556dbb[_0x3a68d0(0x1e7)];return _0x37edd2[_0x3a68d0(0x1f1)]===0x0?console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1d0)):console[_0x3a68d0(0x1d6)]('✔\x20Retrieved\x20'+_0x37edd2['length']+'\x20row'+(_0x37edd2['length']!==0x1?'s':'')+_0x3a68d0(0x1e6)+_0x31d5df),await handleSDKOutput(_0x37edd2,_0x3e8d3d),0x0;}catch(_0x44d271){if(_0x44d271 instanceof SDKError)return console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1df)+_0x44d271[_0x3a68d0(0x1f0)]),_0x44d271['cause']&&console[_0x3a68d0(0x1d6)](_0x3a68d0(0x1d3)+_0x44d271[_0x3a68d0(0x1da)]),0x1;throw _0x44d271;}}[a34_0x318abc(0x1ee)](_0x7a2040){const _0x14e3a9=a34_0x318abc;if(_0x7a2040[_0x14e3a9(0x1d2)]['length']===0x0)return _0x14e3a9(0x1ef);if(_0x7a2040[_0x14e3a9(0x1d2)][_0x14e3a9(0x1f1)]>0x1)return _0x14e3a9(0x1e2);return undefined;}}
@@ -1 +1 @@
1
- function a35_0x4131(){const _0x80206d=['limit','\x20\x20tdx\x20tables\x20\x22*.user*\x22\x20\x20\x20\x20\x20\x20\x20->\x20tables\x20matching\x20user*\x20across\x20databases','Note:\x20\x27','query','length','19072340NebtsJ','973fvNaRX','Database:\x20','2708295DqVYRt','6699366NwuiAL','Database\x20pattern:\x20','error','Database:\x20all','\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb','.*\x22','includes','site','\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases','\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20','\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27','database','47768LxrfFr','\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables','639ISGPRn','151616LmLJGp','Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27','cause','✔\x20Found\x20','List\x20tables\x20in\x20a\x20database','7324EegYQk','data','table','validate','Site:\x20','754638kWqyeG','verbose','Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:','Error:\x20','tables','✖\x20No\x20tables\x20found','description','4OwwJCz','\x20\x20tdx\x20tables\x20--in\x20mydb\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','Or\x20use\x20--in\x20flag:','\x20\x20Use:\x20tdx\x20tables\x20\x22','\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20','\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb'];a35_0x4131=function(){return _0x80206d;};return a35_0x4131();}const a35_0x3d8b8e=a35_0x2c32;(function(_0x241557,_0x11e225){const _0x3cf0f7=a35_0x2c32,_0x41879e=_0x241557();while(!![]){try{const _0x343c5d=-parseInt(_0x3cf0f7(0x177))/0x1*(-parseInt(_0x3cf0f7(0x188))/0x2)+parseInt(_0x3cf0f7(0x176))/0x3*(parseInt(_0x3cf0f7(0x17c))/0x4)+-parseInt(_0x3cf0f7(0x196))/0x5+parseInt(_0x3cf0f7(0x181))/0x6+-parseInt(_0x3cf0f7(0x194))/0x7*(parseInt(_0x3cf0f7(0x174))/0x8)+-parseInt(_0x3cf0f7(0x197))/0x9+parseInt(_0x3cf0f7(0x193))/0xa;if(_0x343c5d===_0x11e225)break;else _0x41879e['push'](_0x41879e['shift']());}catch(_0x3402f2){_0x41879e['push'](_0x41879e['shift']());}}}(a35_0x4131,0x94fc0));function a35_0x2c32(_0xfb34f4,_0x48c557){_0xfb34f4=_0xfb34f4-0x16b;const _0x41319a=a35_0x4131();let _0x2c32b8=_0x41319a[_0xfb34f4];return _0x2c32b8;}import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';import{parseTableReference}from'../utils/table-ref-parser.js';import{DEFAULT_LISTING_LIMIT,resolveLimit}from'../core/constants.js';import{withSpinner}from'../utils/spinner.js';export class TablesCommand extends BaseCommand{['name']=a35_0x3d8b8e(0x185);[a35_0x3d8b8e(0x187)]=a35_0x3d8b8e(0x17b);async['execute'](_0x2a782b){const _0x1d40ef=a35_0x3d8b8e,{options:_0x460ff7,args:_0x224fea,tdx:_0x2d59a5}=_0x2a782b;let _0x272eb6;if(_0x224fea[_0x1d40ef(0x192)]===0x0)_0x272eb6={'database':undefined,'table':undefined,'original':''};else{if(_0x224fea[_0x1d40ef(0x192)]===0x1)try{_0x272eb6=parseTableReference(_0x224fea[0x0]);if(_0x272eb6[_0x1d40ef(0x17e)]&&!_0x272eb6[_0x1d40ef(0x173)]&&!_0x272eb6[_0x1d40ef(0x17e)][_0x1d40ef(0x16e)]('*')&&!_0x272eb6[_0x1d40ef(0x17e)][_0x1d40ef(0x16e)]('?'))return console[_0x1d40ef(0x199)]('Error:\x20Pattern\x20\x27'+_0x224fea[0x0]+'\x27\x20is\x20ambiguous.'),console[_0x1d40ef(0x199)](_0x1d40ef(0x178)+_0x272eb6[_0x1d40ef(0x17e)]+'\x27?'),console[_0x1d40ef(0x199)](_0x1d40ef(0x18b)+_0x272eb6[_0x1d40ef(0x17e)]+_0x1d40ef(0x16d)),console['error'](_0x1d40ef(0x18c)+_0x272eb6[_0x1d40ef(0x17e)]),console[_0x1d40ef(0x199)](_0x1d40ef(0x171)+_0x272eb6[_0x1d40ef(0x17e)]),console[_0x1d40ef(0x199)](''),console[_0x1d40ef(0x199)](_0x1d40ef(0x190)+_0x224fea[0x0]+_0x1d40ef(0x172)+_0x272eb6['table']+'\x27\x20across\x20all\x20databases.'),0x1;}catch(_0x39ed75){return console[_0x1d40ef(0x199)](_0x1d40ef(0x184)+_0x39ed75['message']),0x1;}else return console[_0x1d40ef(0x199)](_0x1d40ef(0x183)),console[_0x1d40ef(0x199)](_0x1d40ef(0x170)),console['error'](_0x1d40ef(0x18d)),console[_0x1d40ef(0x199)](_0x1d40ef(0x16c)),console[_0x1d40ef(0x199)](_0x1d40ef(0x18f)),console[_0x1d40ef(0x199)](_0x1d40ef(0x18a)),console[_0x1d40ef(0x199)](_0x1d40ef(0x189)),0x1;}const _0x41e4cc=_0x460ff7[_0x1d40ef(0x173)];!_0x272eb6['database']&&_0x41e4cc&&(_0x272eb6[_0x1d40ef(0x173)]=_0x41e4cc);try{const _0x52b7f0=_0x271663=>_0x271663&&(_0x271663[_0x1d40ef(0x16e)]('*')||_0x271663[_0x1d40ef(0x16e)]('?')),_0xf83e4d=_0x52b7f0(_0x272eb6[_0x1d40ef(0x173)]);_0x460ff7[_0x1d40ef(0x182)]&&(console[_0x1d40ef(0x199)](_0x1d40ef(0x180)+_0x460ff7[_0x1d40ef(0x16f)]),_0x272eb6['database']?_0xf83e4d?console[_0x1d40ef(0x199)](_0x1d40ef(0x198)+_0x272eb6[_0x1d40ef(0x173)]):console[_0x1d40ef(0x199)](_0x1d40ef(0x195)+_0x272eb6[_0x1d40ef(0x173)]):console[_0x1d40ef(0x199)](_0x1d40ef(0x16b)),_0x272eb6[_0x1d40ef(0x17e)]&&console[_0x1d40ef(0x199)]('Table\x20pattern:\x20'+_0x272eb6[_0x1d40ef(0x17e)]));const _0x3fc1eb=_0x272eb6[_0x1d40ef(0x173)]&&!_0xf83e4d?_0x272eb6[_0x1d40ef(0x173)]:undefined,_0x23ee9d=_0xf83e4d?_0x272eb6[_0x1d40ef(0x173)]:undefined,_0x1dab2f=_0x272eb6[_0x1d40ef(0x17e)],_0x14e57c=resolveLimit(_0x460ff7[_0x1d40ef(0x18e)],DEFAULT_LISTING_LIMIT),_0x1f69ad=await withSpinner('Listing\x20tables...',()=>_0x2d59a5[_0x1d40ef(0x191)]['listTables'](_0x3fc1eb,_0x1dab2f,_0x23ee9d,_0x14e57c),{'verbose':_0x460ff7[_0x1d40ef(0x182)]}),_0x384717=_0x1f69ad[_0x1d40ef(0x17d)];if(_0x384717[_0x1d40ef(0x192)]===0x0&&_0x272eb6[_0x1d40ef(0x173)]&&!_0xf83e4d)return console[_0x1d40ef(0x199)](_0x1d40ef(0x186)),console['error']('Database\x20\x27'+_0x272eb6[_0x1d40ef(0x173)]+_0x1d40ef(0x175)),0x1;return console[_0x1d40ef(0x199)](_0x1d40ef(0x17a)+_0x384717[_0x1d40ef(0x192)]+'\x20table'+(_0x384717[_0x1d40ef(0x192)]!==0x1?'s':'')),await handleSDKOutput(_0x384717,{..._0x460ff7,'limit':_0x14e57c}),0x0;}catch(_0x693fed){if(_0x693fed instanceof SDKError)return console[_0x1d40ef(0x199)](_0x1d40ef(0x184)+_0x693fed['message']),_0x693fed[_0x1d40ef(0x179)]&&console[_0x1d40ef(0x199)]('\x20\x20Cause:\x20'+_0x693fed[_0x1d40ef(0x179)]),0x1;throw _0x693fed;}}[a35_0x3d8b8e(0x17f)](_0x288b3c){return undefined;}}
1
+ const a35_0x1422e9=a35_0x2845;(function(_0x4c2a90,_0xab91fe){const _0x46bac2=a35_0x2845,_0x573e80=_0x4c2a90();while(!![]){try{const _0x4eda5c=parseInt(_0x46bac2(0x1fa))/0x1+parseInt(_0x46bac2(0x1f2))/0x2*(-parseInt(_0x46bac2(0x1f4))/0x3)+parseInt(_0x46bac2(0x1de))/0x4*(-parseInt(_0x46bac2(0x202))/0x5)+parseInt(_0x46bac2(0x204))/0x6+-parseInt(_0x46bac2(0x1e4))/0x7+parseInt(_0x46bac2(0x1e9))/0x8+-parseInt(_0x46bac2(0x1ea))/0x9;if(_0x4eda5c===_0xab91fe)break;else _0x573e80['push'](_0x573e80['shift']());}catch(_0x19c7c5){_0x573e80['push'](_0x573e80['shift']());}}}(a35_0x10e4,0xd4080));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a35_0x10e4(){const _0x2c4980=['\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','13384824uFlkot','17606655NqHfsA','\x20\x20tdx\x20tables\x20--in\x20mydb\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20','execute','error','validate','Database\x20\x27','table','198614edwBkm','.*\x22','18uoCLbn','length','query','\x20\x20tdx\x20tables\x20\x22*.user*\x22\x20\x20\x20\x20\x20\x20\x20->\x20tables\x20matching\x20user*\x20across\x20databases','\x27\x20across\x20all\x20databases.','name','1461831lfQYPr','\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27','description','✖\x20No\x20tables\x20found','\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20','\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb','Database:\x20all','verbose','1103225ecvNpw','includes','9260706CwMHjT','Site:\x20','\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases','Table\x20pattern:\x20','cause','\x27\x20is\x20ambiguous.','Listing\x20tables...','✔\x20Found\x20','message','8raAWGj','Error:\x20Pattern\x20\x27','\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables','Database\x20pattern:\x20','limit','database','5715346ANsfeM','Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:','Database:\x20','Error:\x20'];a35_0x10e4=function(){return _0x2c4980;};return a35_0x10e4();}import{handleSDKOutput}from'../core/command-output.js';function a35_0x2845(_0x2430b4,_0x31bc67){_0x2430b4=_0x2430b4-0x1d6;const _0x10e42e=a35_0x10e4();let _0x284577=_0x10e42e[_0x2430b4];return _0x284577;}import{parseTableReference}from'../utils/table-ref-parser.js';import{DEFAULT_LISTING_LIMIT,resolveLimit}from'../core/constants.js';import{withSpinner}from'../utils/spinner.js';export class TablesCommand extends BaseCommand{[a35_0x1422e9(0x1f9)]='tables';[a35_0x1422e9(0x1fc)]='List\x20tables\x20in\x20a\x20database';async[a35_0x1422e9(0x1ed)](_0x2fccf7){const _0x2abe59=a35_0x1422e9,{options:_0x2a22d9,args:_0x5e9145,tdx:_0x260028}=_0x2fccf7;let _0x58614b;if(_0x5e9145['length']===0x0)_0x58614b={'database':undefined,'table':undefined,'original':''};else{if(_0x5e9145[_0x2abe59(0x1f5)]===0x1)try{_0x58614b=parseTableReference(_0x5e9145[0x0]);if(_0x58614b[_0x2abe59(0x1f1)]&&!_0x58614b['database']&&!_0x58614b[_0x2abe59(0x1f1)][_0x2abe59(0x203)]('*')&&!_0x58614b['table'][_0x2abe59(0x203)]('?'))return console[_0x2abe59(0x1ee)](_0x2abe59(0x1df)+_0x5e9145[0x0]+_0x2abe59(0x1da)),console[_0x2abe59(0x1ee)]('Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27'+_0x58614b[_0x2abe59(0x1f1)]+'\x27?'),console[_0x2abe59(0x1ee)]('\x20\x20Use:\x20tdx\x20tables\x20\x22'+_0x58614b[_0x2abe59(0x1f1)]+_0x2abe59(0x1f3)),console[_0x2abe59(0x1ee)](_0x2abe59(0x1ec)+_0x58614b[_0x2abe59(0x1f1)]),console[_0x2abe59(0x1ee)](_0x2abe59(0x1fe)+_0x58614b[_0x2abe59(0x1f1)]),console['error'](''),console['error']('Note:\x20\x27'+_0x5e9145[0x0]+_0x2abe59(0x1fb)+_0x58614b[_0x2abe59(0x1f1)]+_0x2abe59(0x1f8)),0x1;}catch(_0x202621){return console[_0x2abe59(0x1ee)](_0x2abe59(0x1e7)+_0x202621['message']),0x1;}else return console[_0x2abe59(0x1ee)](_0x2abe59(0x1e5)),console['error'](_0x2abe59(0x1d7)),console[_0x2abe59(0x1ee)](_0x2abe59(0x1e8)),console[_0x2abe59(0x1ee)](_0x2abe59(0x1ff)),console[_0x2abe59(0x1ee)](_0x2abe59(0x1f7)),console[_0x2abe59(0x1ee)]('Or\x20use\x20--in\x20flag:'),console['error'](_0x2abe59(0x1eb)),0x1;}const _0x43c90f=_0x2a22d9[_0x2abe59(0x1e3)];!_0x58614b[_0x2abe59(0x1e3)]&&_0x43c90f&&(_0x58614b[_0x2abe59(0x1e3)]=_0x43c90f);try{const _0x3e3a87=_0x344117=>_0x344117&&(_0x344117[_0x2abe59(0x203)]('*')||_0x344117[_0x2abe59(0x203)]('?')),_0xd1c97b=_0x3e3a87(_0x58614b[_0x2abe59(0x1e3)]);_0x2a22d9[_0x2abe59(0x201)]&&(console[_0x2abe59(0x1ee)](_0x2abe59(0x1d6)+_0x2a22d9['site']),_0x58614b[_0x2abe59(0x1e3)]?_0xd1c97b?console[_0x2abe59(0x1ee)](_0x2abe59(0x1e1)+_0x58614b[_0x2abe59(0x1e3)]):console['error'](_0x2abe59(0x1e6)+_0x58614b[_0x2abe59(0x1e3)]):console[_0x2abe59(0x1ee)](_0x2abe59(0x200)),_0x58614b['table']&&console[_0x2abe59(0x1ee)](_0x2abe59(0x1d8)+_0x58614b[_0x2abe59(0x1f1)]));const _0x10009e=_0x58614b[_0x2abe59(0x1e3)]&&!_0xd1c97b?_0x58614b[_0x2abe59(0x1e3)]:undefined,_0x31f288=_0xd1c97b?_0x58614b[_0x2abe59(0x1e3)]:undefined,_0x29540e=_0x58614b[_0x2abe59(0x1f1)],_0x5c6e9d=resolveLimit(_0x2a22d9[_0x2abe59(0x1e2)],DEFAULT_LISTING_LIMIT),_0xbb4d9d=await withSpinner(_0x2abe59(0x1db),()=>_0x260028[_0x2abe59(0x1f6)]['listTables'](_0x10009e,_0x29540e,_0x31f288,_0x5c6e9d),{'verbose':_0x2a22d9[_0x2abe59(0x201)]}),_0x1d3b97=_0xbb4d9d['data'];if(_0x1d3b97['length']===0x0&&_0x58614b[_0x2abe59(0x1e3)]&&!_0xd1c97b)return console['error'](_0x2abe59(0x1fd)),console[_0x2abe59(0x1ee)](_0x2abe59(0x1f0)+_0x58614b[_0x2abe59(0x1e3)]+_0x2abe59(0x1e0)),0x1;return console[_0x2abe59(0x1ee)](_0x2abe59(0x1dc)+_0x1d3b97[_0x2abe59(0x1f5)]+'\x20table'+(_0x1d3b97[_0x2abe59(0x1f5)]!==0x1?'s':'')),await handleSDKOutput(_0x1d3b97,{..._0x2a22d9,'limit':_0x5c6e9d}),0x0;}catch(_0x4df6b9){if(_0x4df6b9 instanceof SDKError)return console[_0x2abe59(0x1ee)](_0x2abe59(0x1e7)+_0x4df6b9[_0x2abe59(0x1dd)]),_0x4df6b9[_0x2abe59(0x1d9)]&&console['error']('\x20\x20Cause:\x20'+_0x4df6b9['cause']),0x1;throw _0x4df6b9;}}[a35_0x1422e9(0x1ef)](_0x4e49eb){return undefined;}}
@@ -1 +1 @@
1
- const a36_0x340393=a36_0x48a8;(function(_0x2d5499,_0x3c7fad){const _0xcf9792=a36_0x48a8,_0x45a99d=_0x2d5499();while(!![]){try{const _0x5444f6=-parseInt(_0xcf9792(0x163))/0x1*(parseInt(_0xcf9792(0x142))/0x2)+-parseInt(_0xcf9792(0x14e))/0x3+-parseInt(_0xcf9792(0x166))/0x4*(-parseInt(_0xcf9792(0x153))/0x5)+parseInt(_0xcf9792(0x149))/0x6*(parseInt(_0xcf9792(0x14c))/0x7)+parseInt(_0xcf9792(0x15b))/0x8*(parseInt(_0xcf9792(0x164))/0x9)+parseInt(_0xcf9792(0x16e))/0xa+parseInt(_0xcf9792(0x157))/0xb*(parseInt(_0xcf9792(0x168))/0xc);if(_0x5444f6===_0x3c7fad)break;else _0x45a99d['push'](_0x45a99d['shift']());}catch(_0x15c034){_0x45a99d['push'](_0x45a99d['shift']());}}}(a36_0x4ce3,0x89900));import{BaseCommand}from'./command.js';import{saveSessionContext,getCurrentSessionPID,cleanExpiredSessions,clearSessionContext}from'../core/session.js';import{profileExists}from'../core/profile.js';import{GlobalContext}from'../core/global-context.js';import{parseAgentRef}from'../sdk/agent/agent-ref-parser.js';function a36_0x4ce3(){const _0x287e9a=['Resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace','6XUIIGh','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','session','1032829hMmWJQ','parent_segment','1258560EMRCRl','use','execute','Session\x20agent\x20set\x20to:\x20','message','4145140jkSwiF','validate','clear','Session\x20profile\x20set\x20to:\x20','1341659bnPsIi','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','profile','length','24sqWeVr','dim','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','display','debug','database','log','1PjAgvc','82962nMVtFF','\x27\x20does\x20not\x20exist','4MrVLvv','\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','12CqdSOo','llm_project','Error:\x20Profile\x20\x27','Session\x20context\x20','.\x20Must\x20be\x20one\x20of:\x20','Session\x20llm_project\x20set\x20to:\x20','577510EXmtPB','llm_agent','agent','name','(session:\x20','join','engage_workspace','green','401946BvEHMp','description','includes','error','Session\x20parent_segment\x20set\x20to:\x20','toString'];a36_0x4ce3=function(){return _0x287e9a;};return a36_0x4ce3();}import a36_0x2fb51c from'chalk';function a36_0x48a8(_0x7696e8,_0x5205e7){_0x7696e8=_0x7696e8-0x13f;const _0x4ce323=a36_0x4ce3();let _0x48a831=_0x4ce323[_0x7696e8];return _0x48a831;}export class UseCommand extends BaseCommand{[a36_0x340393(0x171)]=a36_0x340393(0x14f);[a36_0x340393(0x143)]='Set\x20session-level\x20context';[a36_0x340393(0x154)](_0x208dfa){const _0x4c5616=a36_0x340393,{args:_0x20d51f}=_0x208dfa;if(_0x20d51f['length']===0x0)return undefined;if(_0x20d51f[_0x4c5616(0x15a)]===0x1)return _0x4c5616(0x158)+_0x4c5616(0x167)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a'+'\x0aResources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a'+_0x4c5616(0x15d);const _0x14dd5e=_0x20d51f[0x0],_0x2a175f=[_0x4c5616(0x161),_0x4c5616(0x14d),'llm_project',_0x4c5616(0x170),_0x4c5616(0x159),_0x4c5616(0x140)];if(!_0x2a175f[_0x4c5616(0x144)](_0x14dd5e))return'Invalid\x20resource:\x20'+_0x14dd5e+_0x4c5616(0x16c)+_0x2a175f[_0x4c5616(0x13f)](',\x20');return undefined;}async[a36_0x340393(0x150)](_0x5279d1){const _0x56541b=a36_0x340393,{args:_0x5eb46f,options:_0x458578}=_0x5279d1,_0x1cc7cc=_0x458578[_0x56541b(0x160)],_0x3c4823=_0x458578[_0x56541b(0x155)];cleanExpiredSessions();try{if(_0x3c4823){clearSessionContext(_0x458578[_0x56541b(0x14b)]);const _0x446344=_0x458578[_0x56541b(0x14b)]||getCurrentSessionPID()[_0x56541b(0x147)]();return console[_0x56541b(0x162)](_0x56541b(0x16b)+a36_0x2fb51c[_0x56541b(0x141)]('cleared')+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x446344+')')),0x0;}if(_0x5eb46f[_0x56541b(0x15a)]===0x0){const _0x456f22=new GlobalContext(_0x458578);return _0x1cc7cc?_0x456f22['displayWithSources']():_0x456f22[_0x56541b(0x15f)](),console['log'](a36_0x2fb51c[_0x56541b(0x15c)]('\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>')),console[_0x56541b(0x162)](a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x148))),0x0;}const _0x3d4088=_0x5eb46f[0x0],_0x779a7b=_0x5eb46f[0x1];if(_0x3d4088==='profile'){if(!profileExists(_0x779a7b))return console['error'](_0x56541b(0x16a)+_0x779a7b+_0x56541b(0x165)),console['error'](_0x56541b(0x15e)),0x1;const _0x4da5db=_0x458578[_0x56541b(0x14b)]||getCurrentSessionPID()[_0x56541b(0x147)]();return saveSessionContext({'profile':_0x779a7b},_0x458578[_0x56541b(0x14b)]),console[_0x56541b(0x162)](_0x56541b(0x156)+a36_0x2fb51c[_0x56541b(0x141)](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x4da5db+')')),console[_0x56541b(0x162)](a36_0x2fb51c['dim'](_0x56541b(0x14a))),0x0;}const _0x451d2c={},_0x45bbc1=_0x458578[_0x56541b(0x14b)]||getCurrentSessionPID()[_0x56541b(0x147)]();switch(_0x3d4088){case _0x56541b(0x161):_0x451d2c[_0x56541b(0x161)]=_0x779a7b,console[_0x56541b(0x162)]('Session\x20database\x20set\x20to:\x20'+a36_0x2fb51c[_0x56541b(0x141)](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x45bbc1+')'));break;case'parent_segment':_0x451d2c['parent_segment']=_0x779a7b,console['log'](_0x56541b(0x146)+a36_0x2fb51c[_0x56541b(0x141)](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x45bbc1+')'));break;case _0x56541b(0x169):_0x451d2c[_0x56541b(0x169)]=_0x779a7b,console[_0x56541b(0x162)](_0x56541b(0x16d)+a36_0x2fb51c[_0x56541b(0x141)](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x45bbc1+')'));break;case'agent':{const {projectName:_0xbbd359,agentName:_0x41feb5}=parseAgentRef(_0x779a7b);_0x41feb5?(_0x451d2c[_0x56541b(0x169)]=_0xbbd359,_0x451d2c['llm_agent']=_0x41feb5,console['log'](_0x56541b(0x16d)+a36_0x2fb51c[_0x56541b(0x141)](_0xbbd359)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x45bbc1+')')),console[_0x56541b(0x162)](_0x56541b(0x151)+a36_0x2fb51c[_0x56541b(0x141)](_0x41feb5)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)]('(session:\x20'+_0x45bbc1+')'))):(_0x451d2c[_0x56541b(0x16f)]=_0x779a7b,console[_0x56541b(0x162)](_0x56541b(0x151)+a36_0x2fb51c[_0x56541b(0x141)](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)]('(session:\x20'+_0x45bbc1+')')));break;}case _0x56541b(0x140):_0x451d2c[_0x56541b(0x140)]=_0x779a7b,console[_0x56541b(0x162)]('Session\x20engage_workspace\x20set\x20to:\x20'+a36_0x2fb51c['green'](_0x779a7b)+'\x20'+a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x172)+_0x45bbc1+')'));break;}return saveSessionContext(_0x451d2c,_0x458578[_0x56541b(0x14b)]),console[_0x56541b(0x162)](a36_0x2fb51c[_0x56541b(0x15c)](_0x56541b(0x14a))),0x0;}catch(_0x42849e){return _0x42849e instanceof Error&&console[_0x56541b(0x145)]('Error:\x20'+_0x42849e[_0x56541b(0x152)]),0x1;}}}
1
+ const a36_0x6dd20c=a36_0x7ca6;(function(_0x34fdd5,_0x29eadc){const _0x14a0af=a36_0x7ca6,_0x2bd259=_0x34fdd5();while(!![]){try{const _0xd9b8fb=-parseInt(_0x14a0af(0x1fe))/0x1+parseInt(_0x14a0af(0x201))/0x2+parseInt(_0x14a0af(0x1f4))/0x3+-parseInt(_0x14a0af(0x206))/0x4+parseInt(_0x14a0af(0x202))/0x5*(-parseInt(_0x14a0af(0x1fb))/0x6)+-parseInt(_0x14a0af(0x1ee))/0x7*(-parseInt(_0x14a0af(0x205))/0x8)+parseInt(_0x14a0af(0x1f9))/0x9;if(_0xd9b8fb===_0x29eadc)break;else _0x2bd259['push'](_0x2bd259['shift']());}catch(_0x30f8b5){_0x2bd259['push'](_0x2bd259['shift']());}}}(a36_0x36e3,0x74813));import{BaseCommand}from'./command.js';import{saveSessionContext,getCurrentSessionPID,cleanExpiredSessions,clearSessionContext}from'../core/session.js';import{profileExists}from'../core/profile.js';function a36_0x7ca6(_0x435831,_0x1fe743){_0x435831=_0x435831-0x1ec;const _0x36e37c=a36_0x36e3();let _0x7ca60f=_0x36e37c[_0x435831];return _0x7ca60f;}function a36_0x36e3(){const _0x42728a=['\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>','session','llm_agent','(session:\x20','Session\x20llm_project\x20set\x20to:\x20','Invalid\x20resource:\x20','log','error','database','\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','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','Resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace','includes','658IcEOqH','length','execute','message','clear','llm_project','1428993OQTGfL','display','.\x20Must\x20be\x20one\x20of:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a','description','12825639DkfrZI','displayWithSources','36RZfuUn','agent','\x27\x20does\x20not\x20exist','889050uiutyi','Session\x20engage_workspace\x20set\x20to:\x20','dim','16692Foyfxz','542335HZanhO','Session\x20database\x20set\x20to:\x20','debug','53008GcLfzp','2062148OlIieL','validate','green','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','engage_workspace','Session\x20agent\x20set\x20to:\x20','cleared','parent_segment','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','toString','Session\x20parent_segment\x20set\x20to:\x20','profile','use'];a36_0x36e3=function(){return _0x42728a;};return a36_0x36e3();}import{GlobalContext}from'../core/global-context.js';import{parseAgentRef}from'../sdk/agent/agent-ref-parser.js';import a36_0x2008ab from'chalk';export class UseCommand extends BaseCommand{['name']=a36_0x6dd20c(0x213);[a36_0x6dd20c(0x1f8)]='Set\x20session-level\x20context';[a36_0x6dd20c(0x207)](_0x1d85de){const _0x1a2823=a36_0x6dd20c,{args:_0x2a89d9}=_0x1d85de;if(_0x2a89d9[_0x1a2823(0x1ef)]===0x0)return undefined;if(_0x2a89d9[_0x1a2823(0x1ef)]===0x1)return _0x1a2823(0x209)+_0x1a2823(0x21d)+_0x1a2823(0x1f7)+'\x0aResources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a'+_0x1a2823(0x20a);const _0x518238=_0x2a89d9[0x0],_0x58453e=['database',_0x1a2823(0x20e),_0x1a2823(0x1f3),_0x1a2823(0x1fc),_0x1a2823(0x212),_0x1a2823(0x20b)];if(!_0x58453e[_0x1a2823(0x1ed)](_0x518238))return _0x1a2823(0x219)+_0x518238+_0x1a2823(0x1f6)+_0x58453e['join'](',\x20');return undefined;}async[a36_0x6dd20c(0x1f0)](_0x44e1f7){const _0x4946e0=a36_0x6dd20c,{args:_0x3d9658,options:_0x413e90}=_0x44e1f7,_0x1eb626=_0x413e90[_0x4946e0(0x204)],_0xc36046=_0x413e90[_0x4946e0(0x1f2)];cleanExpiredSessions();try{if(_0xc36046){clearSessionContext(_0x413e90[_0x4946e0(0x215)]);const _0x24dbfd=_0x413e90[_0x4946e0(0x215)]||getCurrentSessionPID()[_0x4946e0(0x210)]();return console[_0x4946e0(0x21a)]('Session\x20context\x20'+a36_0x2008ab[_0x4946e0(0x208)](_0x4946e0(0x20d))+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x24dbfd+')')),0x0;}if(_0x3d9658[_0x4946e0(0x1ef)]===0x0){const _0x316675=new GlobalContext(_0x413e90);return _0x1eb626?_0x316675[_0x4946e0(0x1fa)]():_0x316675[_0x4946e0(0x1f5)](),console[_0x4946e0(0x21a)](a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x214))),console[_0x4946e0(0x21a)](a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x1ec))),0x0;}const _0x55ac82=_0x3d9658[0x0],_0x44bd15=_0x3d9658[0x1];if(_0x55ac82===_0x4946e0(0x212)){if(!profileExists(_0x44bd15))return console['error']('Error:\x20Profile\x20\x27'+_0x44bd15+_0x4946e0(0x1fd)),console[_0x4946e0(0x21b)](_0x4946e0(0x21e)),0x1;const _0x1fe07d=_0x413e90[_0x4946e0(0x215)]||getCurrentSessionPID()[_0x4946e0(0x210)]();return saveSessionContext({'profile':_0x44bd15},_0x413e90[_0x4946e0(0x215)]),console[_0x4946e0(0x21a)]('Session\x20profile\x20set\x20to:\x20'+a36_0x2008ab[_0x4946e0(0x208)](_0x44bd15)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x1fe07d+')')),console[_0x4946e0(0x21a)](a36_0x2008ab['dim'](_0x4946e0(0x20f))),0x0;}const _0x62b6d5={},_0x57bb46=_0x413e90['session']||getCurrentSessionPID()[_0x4946e0(0x210)]();switch(_0x55ac82){case _0x4946e0(0x21c):_0x62b6d5[_0x4946e0(0x21c)]=_0x44bd15,console[_0x4946e0(0x21a)](_0x4946e0(0x203)+a36_0x2008ab[_0x4946e0(0x208)](_0x44bd15)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x57bb46+')'));break;case _0x4946e0(0x20e):_0x62b6d5[_0x4946e0(0x20e)]=_0x44bd15,console[_0x4946e0(0x21a)](_0x4946e0(0x211)+a36_0x2008ab['green'](_0x44bd15)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x57bb46+')'));break;case _0x4946e0(0x1f3):_0x62b6d5['llm_project']=_0x44bd15,console[_0x4946e0(0x21a)](_0x4946e0(0x218)+a36_0x2008ab[_0x4946e0(0x208)](_0x44bd15)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)]('(session:\x20'+_0x57bb46+')'));break;case _0x4946e0(0x1fc):{const {projectName:_0x36ed64,agentName:_0x4b1f50}=parseAgentRef(_0x44bd15);_0x4b1f50?(_0x62b6d5['llm_project']=_0x36ed64,_0x62b6d5['llm_agent']=_0x4b1f50,console[_0x4946e0(0x21a)](_0x4946e0(0x218)+a36_0x2008ab[_0x4946e0(0x208)](_0x36ed64)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x57bb46+')')),console[_0x4946e0(0x21a)](_0x4946e0(0x20c)+a36_0x2008ab[_0x4946e0(0x208)](_0x4b1f50)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)]('(session:\x20'+_0x57bb46+')'))):(_0x62b6d5[_0x4946e0(0x216)]=_0x44bd15,console[_0x4946e0(0x21a)](_0x4946e0(0x20c)+a36_0x2008ab[_0x4946e0(0x208)](_0x44bd15)+'\x20'+a36_0x2008ab['dim'](_0x4946e0(0x217)+_0x57bb46+')')));break;}case _0x4946e0(0x20b):_0x62b6d5[_0x4946e0(0x20b)]=_0x44bd15,console[_0x4946e0(0x21a)](_0x4946e0(0x1ff)+a36_0x2008ab[_0x4946e0(0x208)](_0x44bd15)+'\x20'+a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x217)+_0x57bb46+')'));break;}return saveSessionContext(_0x62b6d5,_0x413e90[_0x4946e0(0x215)]),console[_0x4946e0(0x21a)](a36_0x2008ab[_0x4946e0(0x200)](_0x4946e0(0x20f))),0x0;}catch(_0x563443){return _0x563443 instanceof Error&&console[_0x4946e0(0x21b)]('Error:\x20'+_0x563443[_0x4946e0(0x1f1)]),0x1;}}}
@@ -1 +1 @@
1
- const a37_0x5bfccd=a37_0x2a61;(function(_0x5e443f,_0x2395e7){const _0x267cb5=a37_0x2a61,_0x22524d=_0x5e443f();while(!![]){try{const _0x4df42d=parseInt(_0x267cb5(0x178))/0x1+-parseInt(_0x267cb5(0x17c))/0x2+-parseInt(_0x267cb5(0x177))/0x3+parseInt(_0x267cb5(0x170))/0x4*(-parseInt(_0x267cb5(0x17a))/0x5)+parseInt(_0x267cb5(0x183))/0x6+parseInt(_0x267cb5(0x17b))/0x7+parseInt(_0x267cb5(0x16c))/0x8;if(_0x4df42d===_0x2395e7)break;else _0x22524d['push'](_0x22524d['shift']());}catch(_0x24bab9){_0x22524d['push'](_0x22524d['shift']());}}}(a37_0x46c6,0xd7786));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput,handleSingleObjectOutput}from'../core/command-output.js';function a37_0x46c6(){const _0x49dcc0=['list','error','1193160kdYHhI','✔\x20Found\x20','name','Fetching\x20user\x20info...','2664EBJStH','description','Error:\x20','execute','message','user\x20list','verbose','1709979sLVoOg','1461668sVJSUs','data','5860ufgKbF','3889130qDhdbN','1203474qHKDeo','\x20user','cause','\x20\x20Cause:\x20','Listing\x20users...','length','user','4010670wWtRJV','List\x20all\x20users\x20in\x20the\x20account'];a37_0x46c6=function(){return _0x49dcc0;};return a37_0x46c6();}function a37_0x2a61(_0x29ea94,_0x38661d){_0x29ea94=_0x29ea94-0x16b;const _0x46c696=a37_0x46c6();let _0x2a6111=_0x46c696[_0x29ea94];return _0x2a6111;}import{withSpinner}from'../utils/spinner.js';export class UserCommand extends BaseCommand{[a37_0x5bfccd(0x16e)]=a37_0x5bfccd(0x182);['description']='Show\x20current\x20user\x20information';async[a37_0x5bfccd(0x173)](_0x3f8fb8){const _0x144e96=a37_0x5bfccd,{options:_0x2fd37e,tdx:_0x2dabbf}=_0x3f8fb8;try{const _0x4ef198=await withSpinner(_0x144e96(0x16f),()=>_0x2dabbf[_0x144e96(0x182)]['getCurrent'](),{'verbose':_0x2fd37e[_0x144e96(0x176)]}),_0x5503d7=_0x4ef198[_0x144e96(0x179)];return await handleSingleObjectOutput(_0x5503d7,_0x2fd37e),0x0;}catch(_0x3aed45){if(_0x3aed45 instanceof SDKError)return console[_0x144e96(0x16b)]('Error:\x20'+_0x3aed45[_0x144e96(0x174)]),_0x3aed45[_0x144e96(0x17e)]&&console[_0x144e96(0x16b)](_0x144e96(0x17f)+_0x3aed45[_0x144e96(0x17e)]),0x1;throw _0x3aed45;}}}export class UserListCommand extends BaseCommand{[a37_0x5bfccd(0x16e)]=a37_0x5bfccd(0x175);[a37_0x5bfccd(0x171)]=a37_0x5bfccd(0x184);async[a37_0x5bfccd(0x173)](_0x11ff89){const _0x5ef60a=a37_0x5bfccd,{options:_0x4b4ee1,tdx:_0x4cbd21}=_0x11ff89;try{const _0x1d75c6=await withSpinner(_0x5ef60a(0x180),()=>_0x4cbd21['user'][_0x5ef60a(0x185)](),{'verbose':_0x4b4ee1['verbose']}),_0x2d584b=_0x1d75c6[_0x5ef60a(0x179)];return console[_0x5ef60a(0x16b)](_0x5ef60a(0x16d)+_0x2d584b[_0x5ef60a(0x181)]+_0x5ef60a(0x17d)+(_0x2d584b[_0x5ef60a(0x181)]!==0x1?'s':'')),await handleSDKOutput(_0x2d584b,_0x4b4ee1),0x0;}catch(_0x2c2398){if(_0x2c2398 instanceof SDKError)return console[_0x5ef60a(0x16b)](_0x5ef60a(0x172)+_0x2c2398[_0x5ef60a(0x174)]),_0x2c2398[_0x5ef60a(0x17e)]&&console[_0x5ef60a(0x16b)](_0x5ef60a(0x17f)+_0x2c2398[_0x5ef60a(0x17e)]),0x1;throw _0x2c2398;}}}
1
+ const a37_0x5a60a5=a37_0x1cf1;function a37_0x3f89(){const _0x3f6ec8=['5sShaZt','9KwzEEV','1BQnlgB','4llAOKr','2970966CCdisq','Error:\x20','909265BmiLIQ','cause','error','628534grOfvs','2418230GIFZUE','\x20user','user','24etpOqQ','list','execute','✔\x20Found\x20','List\x20all\x20users\x20in\x20the\x20account','description','Fetching\x20user\x20info...','\x20\x20Cause:\x20','length','4055493KadZEe','user\x20list','name','5379SDaOzK','message','941907lSyHGv','data','getCurrent','11100xclwZW','verbose','Listing\x20users...'];a37_0x3f89=function(){return _0x3f6ec8;};return a37_0x3f89();}(function(_0x5702d4,_0x5aa22d){const _0x3c9498=a37_0x1cf1,_0x2b65e7=_0x5702d4();while(!![]){try{const _0x5c7ec7=parseInt(_0x3c9498(0x1ed))/0x1*(-parseInt(_0x3c9498(0x1d3))/0x2)+parseInt(_0x3c9498(0x1e5))/0x3*(parseInt(_0x3c9498(0x1ee))/0x4)+parseInt(_0x3c9498(0x1eb))/0x5*(-parseInt(_0x3c9498(0x1ef))/0x6)+parseInt(_0x3c9498(0x1d0))/0x7*(parseInt(_0x3c9498(0x1d7))/0x8)+-parseInt(_0x3c9498(0x1ec))/0x9*(-parseInt(_0x3c9498(0x1d4))/0xa)+-parseInt(_0x3c9498(0x1e3))/0xb*(-parseInt(_0x3c9498(0x1e8))/0xc)+-parseInt(_0x3c9498(0x1e0))/0xd;if(_0x5c7ec7===_0x5aa22d)break;else _0x2b65e7['push'](_0x2b65e7['shift']());}catch(_0x8796f){_0x2b65e7['push'](_0x2b65e7['shift']());}}}(a37_0x3f89,0x437bd));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput,handleSingleObjectOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';function a37_0x1cf1(_0xf7c7dc,_0x91b760){_0xf7c7dc=_0xf7c7dc-0x1cf;const _0x3f895e=a37_0x3f89();let _0x1cf105=_0x3f895e[_0xf7c7dc];return _0x1cf105;}export class UserCommand extends BaseCommand{[a37_0x5a60a5(0x1e2)]=a37_0x5a60a5(0x1d6);[a37_0x5a60a5(0x1dc)]='Show\x20current\x20user\x20information';async[a37_0x5a60a5(0x1d9)](_0x433d73){const _0x2defce=a37_0x5a60a5,{options:_0x592ea7,tdx:_0x28c94b}=_0x433d73;try{const _0x32dfbb=await withSpinner(_0x2defce(0x1dd),()=>_0x28c94b[_0x2defce(0x1d6)][_0x2defce(0x1e7)](),{'verbose':_0x592ea7[_0x2defce(0x1e9)]}),_0x3ec47e=_0x32dfbb[_0x2defce(0x1e6)];return await handleSingleObjectOutput(_0x3ec47e,_0x592ea7),0x0;}catch(_0x47a491){if(_0x47a491 instanceof SDKError)return console[_0x2defce(0x1d2)](_0x2defce(0x1cf)+_0x47a491[_0x2defce(0x1e4)]),_0x47a491[_0x2defce(0x1d1)]&&console['error'](_0x2defce(0x1de)+_0x47a491[_0x2defce(0x1d1)]),0x1;throw _0x47a491;}}}export class UserListCommand extends BaseCommand{[a37_0x5a60a5(0x1e2)]=a37_0x5a60a5(0x1e1);[a37_0x5a60a5(0x1dc)]=a37_0x5a60a5(0x1db);async['execute'](_0x50a6e5){const _0x244dcd=a37_0x5a60a5,{options:_0x23bab6,tdx:_0x23e52f}=_0x50a6e5;try{const _0xcc983a=await withSpinner(_0x244dcd(0x1ea),()=>_0x23e52f[_0x244dcd(0x1d6)][_0x244dcd(0x1d8)](),{'verbose':_0x23bab6[_0x244dcd(0x1e9)]}),_0x8aff47=_0xcc983a[_0x244dcd(0x1e6)];return console[_0x244dcd(0x1d2)](_0x244dcd(0x1da)+_0x8aff47[_0x244dcd(0x1df)]+_0x244dcd(0x1d5)+(_0x8aff47['length']!==0x1?'s':'')),await handleSDKOutput(_0x8aff47,_0x23bab6),0x0;}catch(_0x2c695f){if(_0x2c695f instanceof SDKError)return console['error'](_0x244dcd(0x1cf)+_0x2c695f[_0x244dcd(0x1e4)]),_0x2c695f[_0x244dcd(0x1d1)]&&console['error'](_0x244dcd(0x1de)+_0x2c695f[_0x244dcd(0x1d1)]),0x1;throw _0x2c695f;}}}