@treasuredata/tdx 0.25.0 → 0.25.2

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 (163) 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/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-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/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.js +1 -1
  77. package/dist/sdk/client/endpoints.js +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-factors.js +1 -1
  98. package/dist/sdk/query/index.js +1 -1
  99. package/dist/sdk/query/sql-parser.js +1 -1
  100. package/dist/sdk/schedule.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/archive-validation.js +1 -1
  126. package/dist/sdk/workflow/clone-workflow.js +1 -1
  127. package/dist/sdk/workflow/index.js +1 -1
  128. package/dist/sdk/workflow/pull-workflow.js +1 -1
  129. package/dist/sdk/workflow/push-workflow.js +1 -1
  130. package/dist/sdk/workflow/tdx-config.js +1 -1
  131. package/dist/sdk/workflow/workflow-utils.js +1 -1
  132. package/dist/test-utils/command-runner.js +1 -1
  133. package/dist/test-utils/factories.js +1 -1
  134. package/dist/test-utils/fixtures.js +1 -1
  135. package/dist/test-utils/http-mock.js +1 -1
  136. package/dist/test-utils/index.js +1 -1
  137. package/dist/utils/async.js +1 -1
  138. package/dist/utils/colors.js +1 -1
  139. package/dist/utils/diff.js +1 -1
  140. package/dist/utils/file-permissions.js +1 -1
  141. package/dist/utils/global-cache.js +1 -1
  142. package/dist/utils/json-loader.js +1 -1
  143. package/dist/utils/local-cache.js +1 -1
  144. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  145. package/dist/utils/logger/formatters/index.js +1 -1
  146. package/dist/utils/logger/handlers/console-handler.js +1 -1
  147. package/dist/utils/logger/handlers/file-handler.js +1 -1
  148. package/dist/utils/logger/handlers/index.js +1 -1
  149. package/dist/utils/logger/handlers/null-handler.js +1 -1
  150. package/dist/utils/logger/index.js +1 -1
  151. package/dist/utils/logger/logger.js +1 -1
  152. package/dist/utils/logger/types.js +1 -1
  153. package/dist/utils/option-validation.js +1 -1
  154. package/dist/utils/port.js +1 -1
  155. package/dist/utils/process.js +1 -1
  156. package/dist/utils/prompt.js +1 -1
  157. package/dist/utils/spinner.js +1 -1
  158. package/dist/utils/sse-parser.js +1 -1
  159. package/dist/utils/string-utils.js +1 -1
  160. package/dist/utils/table-ref-parser.js +1 -1
  161. package/dist/utils/tdx-logger.js +1 -1
  162. package/dist/utils/version-check.js +1 -1
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- const a32_0x33fe08=a32_0x3dbc;(function(_0xb9dd02,_0x53bd12){const _0x2391fb=a32_0x3dbc,_0x4bd3b1=_0xb9dd02();while(!![]){try{const _0x46a8d6=parseInt(_0x2391fb(0x167))/0x1+-parseInt(_0x2391fb(0x187))/0x2+-parseInt(_0x2391fb(0x16d))/0x3*(parseInt(_0x2391fb(0x18a))/0x4)+-parseInt(_0x2391fb(0x17d))/0x5+parseInt(_0x2391fb(0x161))/0x6*(parseInt(_0x2391fb(0x17c))/0x7)+parseInt(_0x2391fb(0x166))/0x8*(parseInt(_0x2391fb(0x169))/0x9)+-parseInt(_0x2391fb(0x181))/0xa*(-parseInt(_0x2391fb(0x165))/0xb);if(_0x46a8d6===_0x53bd12)break;else _0x4bd3b1['push'](_0x4bd3b1['shift']());}catch(_0x29e4a5){_0x4bd3b1['push'](_0x4bd3b1['shift']());}}}(a32_0x3c08,0x3b351));import{BaseCommand}from'./command.js';import{handleSDKOutput}from'../core/command-output.js';function a32_0x3c08(){const _0x9dc57=['4TdhSXu','INTERNAL','kind','length','\x20\x20\x20Path:\x20','error','description','228fPsABI','\x20\x20Use\x20`tdx\x20sg\x20push`\x20with\x20YAML\x20files\x20instead.\x0a','name','segmentId','24277mYOvdr','3176ELjBmi','193826zUrMoB','Examples:','7029rvALFp','Segment\x20ID:\x20','segment','parentId','954663kIqfLr','verbose','\x27...','folder','\x20\x20tdx\x20segment\x20update\x20\x22High\x20Value\x22\x20--rule\x20\x27...\x27\x20\x20#\x20Relative\x20to\x20context','segmentPath','Error:\x20Segment\x20path\x20or\x20name\x20is\x20required','Segment\x20ID\x20missing\x20from\x20resolved\x20path','Resolving\x20path\x20\x27','rule','Resolved\x20relative\x20path\x20to:\x20','type','execute','Parent\x20ID:\x20','Use:\x20tdx\x20segment\x20update\x20<path_to_segment>\x20[options]','49427jjZUhr','2104390leHjnq','segmentName','Resolved\x20folder\x20ID:\x20','Resolving\x20folder\x20\x27','2080SovBHx','resolvePathToResource','data','Update\x20existing\x20child\x20segment','⚠\x20Deprecation\x20warning:\x20`segment\x20update`\x20is\x20deprecated.','yellow','499290rGAxcA','includes','resolveFolderId'];a32_0x3c08=function(){return _0x9dc57;};return a32_0x3c08();}import{withSpinner}from'../utils/spinner.js';function a32_0x3dbc(_0x3317a6,_0x4da875){_0x3317a6=_0x3317a6-0x15d;const _0x3c085e=a32_0x3c08();let _0x3dbcff=_0x3c085e[_0x3317a6];return _0x3dbcff;}import{loadJSONFromOptions}from'../utils/json-loader.js';import{SDKError,ErrorCode}from'../sdk/index.js';import a32_0x2224ae from'chalk';export class SegmentUpdateCommand extends BaseCommand{['name']='segment:update';['description']=a32_0x33fe08(0x184);async[a32_0x33fe08(0x179)](_0x275704){const _0xa13fe4=a32_0x33fe08;console['error'](a32_0x2224ae['yellow'](_0xa13fe4(0x185))),console[_0xa13fe4(0x15f)](a32_0x2224ae[_0xa13fe4(0x186)](_0xa13fe4(0x162)));const {options:_0x2c4f42,args:_0x4c99d3,tdx:_0x274950}=_0x275704,_0x3e3413=_0x2c4f42;if(_0x4c99d3[_0xa13fe4(0x15d)]===0x0)return console['error'](_0xa13fe4(0x173)),console['error']('Usage:\x20tdx\x20segment\x20update\x20<path>\x20[options]'),console[_0xa13fe4(0x15f)](_0xa13fe4(0x168)),console['error']('\x20\x20tdx\x20segment\x20update\x20\x22My\x20Audience/High\x20Value\x22\x20--description\x20\x22...\x22'),console['error'](_0xa13fe4(0x171)),0x1;const _0x5b782f=_0x4c99d3[0x0],_0x326453=_0x2c4f42[_0xa13fe4(0x172)];let _0x1faf1c=_0x5b782f;_0x326453&&!_0x5b782f[_0xa13fe4(0x188)]('/')&&(_0x1faf1c=_0x326453+'/'+_0x5b782f,_0x3e3413[_0xa13fe4(0x16e)]&&console[_0xa13fe4(0x15f)](_0xa13fe4(0x177)+_0x1faf1c));const _0x265f39=await withSpinner(_0xa13fe4(0x175)+_0x1faf1c+'\x27...',()=>_0x274950[_0xa13fe4(0x16b)][_0xa13fe4(0x182)](_0x1faf1c),{'verbose':_0x3e3413['verbose']}),_0x4ea03e=_0x265f39[_0xa13fe4(0x183)];_0x3e3413[_0xa13fe4(0x16e)]&&console[_0xa13fe4(0x15f)]('Resolved\x20type:\x20'+_0x4ea03e[_0xa13fe4(0x178)]);if(_0x4ea03e[_0xa13fe4(0x178)]!==_0xa13fe4(0x16b))return console[_0xa13fe4(0x15f)]('Error:\x20Cannot\x20update\x20'+_0x4ea03e[_0xa13fe4(0x178)]+'.\x20Only\x20child\x20segments\x20can\x20be\x20updated.'),console['error'](_0xa13fe4(0x17b)),0x1;if(!_0x4ea03e[_0xa13fe4(0x164)])throw new SDKError(ErrorCode[_0xa13fe4(0x18b)],_0xa13fe4(0x174));const _0x2878e1=_0x4ea03e[_0xa13fe4(0x16c)],_0x2262dd=_0x4ea03e[_0xa13fe4(0x164)];_0x3e3413[_0xa13fe4(0x16e)]&&(console[_0xa13fe4(0x15f)](_0xa13fe4(0x17a)+_0x2878e1),console[_0xa13fe4(0x15f)](_0xa13fe4(0x16a)+_0x2262dd));let _0x5ede9f;if(_0x3e3413[_0xa13fe4(0x170)]){const _0x29da8d=_0x3e3413[_0xa13fe4(0x170)],_0x1b9849=await withSpinner(_0xa13fe4(0x180)+_0x29da8d+_0xa13fe4(0x16f),()=>_0x274950[_0xa13fe4(0x16b)][_0xa13fe4(0x189)](_0x2878e1,_0x29da8d),{'verbose':_0x3e3413[_0xa13fe4(0x16e)]});_0x5ede9f=parseInt(_0x1b9849['data'],0xa),_0x3e3413[_0xa13fe4(0x16e)]&&console[_0xa13fe4(0x15f)](_0xa13fe4(0x17f)+_0x5ede9f);}const _0x4ccd52=await loadJSONFromOptions(_0x3e3413[_0xa13fe4(0x176)],_0x3e3413['ruleFile']),_0x3e27c1={'name':_0x3e3413[_0xa13fe4(0x163)],'description':_0x3e3413[_0xa13fe4(0x160)],'rule':_0x4ccd52,'kind':_0x3e3413[_0xa13fe4(0x18c)]!==undefined?parseInt(_0x3e3413[_0xa13fe4(0x18c)],0xa):undefined,'segmentFolderId':_0x5ede9f},_0x5b6961=await withSpinner('Updating\x20segment\x20\x27'+_0x4ea03e[_0xa13fe4(0x17e)]+_0xa13fe4(0x16f),()=>_0x274950[_0xa13fe4(0x16b)]['updateSegmentById'](_0x2878e1,_0x2262dd,_0x3e27c1),{'verbose':_0x3e3413[_0xa13fe4(0x16e)]}),_0x4272ac=_0x5b6961[_0xa13fe4(0x183)];return console[_0xa13fe4(0x15f)]('✔\x20Updated\x20segment\x20\x27'+_0x4272ac[_0xa13fe4(0x163)]+'\x27'),_0x1faf1c!==_0x5b782f&&console['error'](_0xa13fe4(0x15e)+_0x1faf1c),await handleSDKOutput([_0x4272ac],_0x3e3413),0x0;}}
1
+ const a32_0x443b7b=a32_0x1c3d;(function(_0x47a5a1,_0x567dda){const _0xe796b4=a32_0x1c3d,_0x3fcf1a=_0x47a5a1();while(!![]){try{const _0x1b23e9=-parseInt(_0xe796b4(0xd5))/0x1+-parseInt(_0xe796b4(0xcf))/0x2+-parseInt(_0xe796b4(0xc2))/0x3*(-parseInt(_0xe796b4(0xc1))/0x4)+-parseInt(_0xe796b4(0xd1))/0x5*(-parseInt(_0xe796b4(0xbf))/0x6)+parseInt(_0xe796b4(0xb4))/0x7+-parseInt(_0xe796b4(0xc7))/0x8*(-parseInt(_0xe796b4(0xab))/0x9)+-parseInt(_0xe796b4(0xbd))/0xa;if(_0x1b23e9===_0x567dda)break;else _0x3fcf1a['push'](_0x3fcf1a['shift']());}catch(_0x66fe3f){_0x3fcf1a['push'](_0x3fcf1a['shift']());}}}(a32_0x4863,0x46759));import{BaseCommand}from'./command.js';import{handleSDKOutput}from'../core/command-output.js';function a32_0x4863(){const _0x2a5db6=['12WXcjPg','length','159076hrwtTk','30IKIpTG','error','\x20\x20\x20Path:\x20','⚠\x20Deprecation\x20warning:\x20`segment\x20update`\x20is\x20deprecated.','updateSegmentById','48qjzIZG','segmentId','Error:\x20Segment\x20path\x20or\x20name\x20is\x20required','.\x20Only\x20child\x20segments\x20can\x20be\x20updated.','description','execute','rule','Segment\x20ID:\x20','61004NZCAei','folder','521870aAEJCg','Resolved\x20relative\x20path\x20to:\x20','type','name','403683bgaqRG','segment','\x20\x20tdx\x20segment\x20update\x20\x22My\x20Audience/High\x20Value\x22\x20--description\x20\x22...\x22','Resolving\x20folder\x20\x27','yellow','Segment\x20ID\x20missing\x20from\x20resolved\x20path','Resolved\x20folder\x20ID:\x20','252459CaJoNb','includes','segmentPath','resolvePathToResource','Examples:','Parent\x20ID:\x20','data','\x27...','\x20\x20tdx\x20segment\x20update\x20\x22High\x20Value\x22\x20--rule\x20\x27...\x27\x20\x20#\x20Relative\x20to\x20context','1551536CAYgaJ','Error:\x20Cannot\x20update\x20','INTERNAL','kind','\x20\x20Use\x20`tdx\x20sg\x20push`\x20with\x20YAML\x20files\x20instead.\x0a','✔\x20Updated\x20segment\x20\x27','segmentName','segment:update','ruleFile','2736060yhRfWL','verbose'];a32_0x4863=function(){return _0x2a5db6;};return a32_0x4863();}function a32_0x1c3d(_0x4bb1aa,_0x82e849){_0x4bb1aa=_0x4bb1aa-0xab;const _0x4863a2=a32_0x4863();let _0x1c3d86=_0x4863a2[_0x4bb1aa];return _0x1c3d86;}import{withSpinner}from'../utils/spinner.js';import{loadJSONFromOptions}from'../utils/json-loader.js';import{SDKError,ErrorCode}from'../sdk/index.js';import a32_0x5da57e from'chalk';export class SegmentUpdateCommand extends BaseCommand{['name']=a32_0x443b7b(0xbb);[a32_0x443b7b(0xcb)]='Update\x20existing\x20child\x20segment';async[a32_0x443b7b(0xcc)](_0x388a2b){const _0x2af370=a32_0x443b7b;console['error'](a32_0x5da57e['yellow'](_0x2af370(0xc5))),console[_0x2af370(0xc3)](a32_0x5da57e[_0x2af370(0xd9)](_0x2af370(0xb8)));const {options:_0xb67894,args:_0x369867,tdx:_0x425c2b}=_0x388a2b,_0x298da3=_0xb67894;if(_0x369867[_0x2af370(0xc0)]===0x0)return console[_0x2af370(0xc3)](_0x2af370(0xc9)),console[_0x2af370(0xc3)]('Usage:\x20tdx\x20segment\x20update\x20<path>\x20[options]'),console[_0x2af370(0xc3)](_0x2af370(0xaf)),console[_0x2af370(0xc3)](_0x2af370(0xd7)),console['error'](_0x2af370(0xb3)),0x1;const _0x57135f=_0x369867[0x0],_0x117b21=_0xb67894[_0x2af370(0xad)];let _0x17d43d=_0x57135f;_0x117b21&&!_0x57135f[_0x2af370(0xac)]('/')&&(_0x17d43d=_0x117b21+'/'+_0x57135f,_0x298da3[_0x2af370(0xbe)]&&console[_0x2af370(0xc3)](_0x2af370(0xd2)+_0x17d43d));const _0x195b18=await withSpinner('Resolving\x20path\x20\x27'+_0x17d43d+'\x27...',()=>_0x425c2b[_0x2af370(0xd6)][_0x2af370(0xae)](_0x17d43d),{'verbose':_0x298da3[_0x2af370(0xbe)]}),_0x1ee7ef=_0x195b18[_0x2af370(0xb1)];_0x298da3[_0x2af370(0xbe)]&&console[_0x2af370(0xc3)]('Resolved\x20type:\x20'+_0x1ee7ef[_0x2af370(0xd3)]);if(_0x1ee7ef[_0x2af370(0xd3)]!==_0x2af370(0xd6))return console[_0x2af370(0xc3)](_0x2af370(0xb5)+_0x1ee7ef[_0x2af370(0xd3)]+_0x2af370(0xca)),console[_0x2af370(0xc3)]('Use:\x20tdx\x20segment\x20update\x20<path_to_segment>\x20[options]'),0x1;if(!_0x1ee7ef[_0x2af370(0xc8)])throw new SDKError(ErrorCode[_0x2af370(0xb6)],_0x2af370(0xda));const _0x20ff5f=_0x1ee7ef['parentId'],_0x5be35b=_0x1ee7ef[_0x2af370(0xc8)];_0x298da3[_0x2af370(0xbe)]&&(console[_0x2af370(0xc3)](_0x2af370(0xb0)+_0x20ff5f),console[_0x2af370(0xc3)](_0x2af370(0xce)+_0x5be35b));let _0x20c45a;if(_0x298da3[_0x2af370(0xd0)]){const _0x4fb044=_0x298da3[_0x2af370(0xd0)],_0x4b16c0=await withSpinner(_0x2af370(0xd8)+_0x4fb044+_0x2af370(0xb2),()=>_0x425c2b[_0x2af370(0xd6)]['resolveFolderId'](_0x20ff5f,_0x4fb044),{'verbose':_0x298da3[_0x2af370(0xbe)]});_0x20c45a=parseInt(_0x4b16c0[_0x2af370(0xb1)],0xa),_0x298da3[_0x2af370(0xbe)]&&console[_0x2af370(0xc3)](_0x2af370(0xdb)+_0x20c45a);}const _0x5c6b3=await loadJSONFromOptions(_0x298da3[_0x2af370(0xcd)],_0x298da3[_0x2af370(0xbc)]),_0x462320={'name':_0x298da3[_0x2af370(0xd4)],'description':_0x298da3['description'],'rule':_0x5c6b3,'kind':_0x298da3[_0x2af370(0xb7)]!==undefined?parseInt(_0x298da3[_0x2af370(0xb7)],0xa):undefined,'segmentFolderId':_0x20c45a},_0x4fbe65=await withSpinner('Updating\x20segment\x20\x27'+_0x1ee7ef[_0x2af370(0xba)]+_0x2af370(0xb2),()=>_0x425c2b[_0x2af370(0xd6)][_0x2af370(0xc6)](_0x20ff5f,_0x5be35b,_0x462320),{'verbose':_0x298da3[_0x2af370(0xbe)]}),_0x403080=_0x4fbe65[_0x2af370(0xb1)];return console[_0x2af370(0xc3)](_0x2af370(0xb9)+_0x403080[_0x2af370(0xd4)]+'\x27'),_0x17d43d!==_0x57135f&&console['error'](_0x2af370(0xc4)+_0x17d43d),await handleSDKOutput([_0x403080],_0x298da3),0x0;}}
@@ -1 +1 @@
1
- const a33_0x6b2ba3=a33_0x4cb2;(function(_0x5279ca,_0x51543c){const _0x44fef1=a33_0x4cb2,_0x255bc8=_0x5279ca();while(!![]){try{const _0x7ecbce=-parseInt(_0x44fef1(0xb2))/0x1+-parseInt(_0x44fef1(0xc0))/0x2+parseInt(_0x44fef1(0xdd))/0x3*(parseInt(_0x44fef1(0xd0))/0x4)+parseInt(_0x44fef1(0xbb))/0x5+parseInt(_0x44fef1(0xb3))/0x6+parseInt(_0x44fef1(0xdb))/0x7+parseInt(_0x44fef1(0xce))/0x8*(-parseInt(_0x44fef1(0xe1))/0x9);if(_0x7ecbce===_0x51543c)break;else _0x255bc8['push'](_0x255bc8['shift']());}catch(_0x24efb6){_0x255bc8['push'](_0x255bc8['shift']());}}}(a33_0x562b,0x7c36b));import{existsSync,statSync}from'fs';import a33_0xb41b2b from'chalk';import{BaseCommand}from'./command.js';import{saveSessionContext}from'../core/session.js';import{withSpinner}from'../utils/spinner.js';import{parsePath,normalizePath}from'../sdk/segment/segment-path-parser.js';import{findTdxConfig}from'../sdk/segment/tdx-config.js';function a33_0x4cb2(_0x55cd77,_0x34d8fe){_0x55cd77=_0x55cd77-0xb0;const _0x562bf3=a33_0x562b();let _0x4cb262=_0x562bf3[_0x55cd77];return _0x4cb262;}export class SegmentUseCommand extends BaseCommand{[a33_0x6b2ba3(0xc5)]=a33_0x6b2ba3(0xd1);[a33_0x6b2ba3(0xe4)]='Set\x20current\x20segment/folder\x20context\x20for\x20navigation';async[a33_0x6b2ba3(0xb9)](_0x5aba66){const _0x260a5b=a33_0x6b2ba3,{options:_0x34b0cb,args:_0x29e631,tdx:_0x1ddf20}=_0x5aba66;if(_0x29e631[_0x260a5b(0xbe)]===0x0)return console[_0x260a5b(0xb5)](a33_0xb41b2b['red'](_0x260a5b(0xe2))),console['error'](_0x260a5b(0xb7)),console[_0x260a5b(0xb5)](_0x260a5b(0xc8)),console[_0x260a5b(0xb5)](_0x260a5b(0xe7)),console[_0x260a5b(0xb5)]('\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience/Marketing\x22'),console[_0x260a5b(0xb5)](_0x260a5b(0xc2)),console[_0x260a5b(0xb5)](_0x260a5b(0xb4)),0x1;const _0x4241be=_0x29e631[0x0],_0x394897=_0x34b0cb[_0x260a5b(0xd5)];try{if(_0x4241be==='/')return saveSessionContext({'segment_path':undefined},_0x394897),console[_0x260a5b(0xd9)](a33_0xb41b2b[_0x260a5b(0xe9)](_0x260a5b(0xe0))),0x0;if(existsSync(_0x4241be)&&statSync(_0x4241be)[_0x260a5b(0xca)]()){let _0x586b57;try{_0x586b57=findTdxConfig(_0x4241be);}catch{return console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xd6)](_0x260a5b(0xcf)+_0x4241be)),console[_0x260a5b(0xb5)](a33_0xb41b2b['cyan'](_0x260a5b(0xbc))),0x1;}const _0x245f96=_0x586b57['config']['parent_segment'];return saveSessionContext({'segment_path':_0x245f96,'parent_segment':_0x245f96},_0x394897),console['log'](a33_0xb41b2b[_0x260a5b(0xe9)](_0x260a5b(0xd8)+a33_0xb41b2b[_0x260a5b(0xb8)](_0x245f96))),0x0;}const _0x40019c=_0x34b0cb['segmentPath'];let _0x543d14=_0x4241be;const _0x161434=parsePath(_0x4241be);if(!_0x161434[_0x260a5b(0xd3)]){if(!_0x40019c)return console['error'](a33_0xb41b2b['red'](_0x260a5b(0xd2))),console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xb8)](_0x260a5b(0xd7))),0x1;if(_0x4241be==='..'){const _0x268d09=_0x40019c[_0x260a5b(0xe6)]('/')[_0x260a5b(0xcb)](0x0,-0x1)['join']('/');_0x543d14=_0x268d09||'/';}else _0x4241be==='.'?_0x543d14=_0x40019c:_0x543d14=_0x40019c+'/'+_0x4241be;_0x34b0cb[_0x260a5b(0xc7)]&&console['error']('Resolved\x20relative\x20path\x20to:\x20'+_0x543d14);}if(_0x543d14==='/'||_0x543d14==='')return saveSessionContext({'segment_path':undefined},_0x394897),console[_0x260a5b(0xd9)](a33_0xb41b2b[_0x260a5b(0xe9)](_0x260a5b(0xe0))),0x0;_0x543d14=normalizePath(_0x543d14);const _0x37db84=parsePath(_0x543d14)[_0x260a5b(0xdf)];if(_0x37db84['length']===0x0)return saveSessionContext({'segment_path':undefined},_0x394897),console[_0x260a5b(0xd9)](a33_0xb41b2b['green'](_0x260a5b(0xe0))),0x0;_0x34b0cb[_0x260a5b(0xc7)]&&(console[_0x260a5b(0xb5)]('Site:\x20'+_0x34b0cb['site']),console['error'](_0x260a5b(0xd4)+_0x543d14));const _0x3a5955=await withSpinner(_0x260a5b(0xcd)+_0x543d14+_0x260a5b(0xe8),()=>_0x1ddf20['segment'][_0x260a5b(0xe3)](_0x543d14),{'verbose':_0x34b0cb['verbose']}),_0x2956b3=_0x3a5955['data'];_0x34b0cb[_0x260a5b(0xc7)]&&(console[_0x260a5b(0xb5)](_0x260a5b(0xb6)+_0x2956b3[_0x260a5b(0xc3)]),console[_0x260a5b(0xb5)](_0x260a5b(0xbd)+_0x2956b3[_0x260a5b(0xc4)]),_0x2956b3[_0x260a5b(0xcc)]&&console['error'](_0x260a5b(0xb0)+_0x2956b3[_0x260a5b(0xcc)]));if(_0x2956b3[_0x260a5b(0xc3)]===_0x260a5b(0xda))return console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xd6)](_0x260a5b(0xbf))),console['error'](_0x260a5b(0xde)),console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xb8)](_0x260a5b(0xc9)+_0x2956b3['parentName']+(_0x2956b3['folderPath']?'/'+_0x2956b3['folderPath'][_0x260a5b(0xdc)]('/'):''))),0x1;return saveSessionContext({'segment_path':_0x2956b3[_0x260a5b(0xb1)],'parent_segment':_0x2956b3[_0x260a5b(0xc6)]},_0x394897),console[_0x260a5b(0xd9)](a33_0xb41b2b[_0x260a5b(0xe9)](_0x260a5b(0xd8)+a33_0xb41b2b[_0x260a5b(0xb8)](_0x2956b3[_0x260a5b(0xb1)]))),_0x34b0cb[_0x260a5b(0xc7)]&&(console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xe5)](_0x260a5b(0xc1))),console[_0x260a5b(0xb5)](a33_0xb41b2b[_0x260a5b(0xe5)](_0x260a5b(0xba)))),0x0;}catch(_0xdc45e5){throw _0xdc45e5;}}}function a33_0x562b(){const _0x4b4492=['Parent\x20ID:\x20','length','Error:\x20Cannot\x20set\x20context\x20to\x20a\x20segment.','1425438TXmTJT','Use\x20\x22tdx\x20segments\x22\x20to\x20list\x20contents\x20in\x20this\x20context','\x20\x20tdx\x20segment\x20use\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20context','type','parentId','name','parentName','verbose','Examples:','Use:\x20tdx\x20segment\x20use\x20','isDirectory','slice','folderId','Resolving\x20path\x20\x27','25216ncooFK','Error:\x20No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','292mRwpgb','segment:use','Error:\x20No\x20context\x20set.\x20Cannot\x20use\x20relative\x20path.','isAbsolute','Target\x20path:\x20','session','red','Use\x20an\x20absolute\x20path\x20or\x20set\x20context\x20with:\x20tdx\x20segment\x20use\x20<parent_name>','✔\x20Context\x20set\x20to:\x20','log','segment','3825654pUPsvj','join','7143rPhRfm','Context\x20can\x20only\x20be\x20set\x20to\x20a\x20parent\x20segment\x20or\x20folder.','segments','✔\x20Context\x20cleared.\x20Back\x20to\x20root.','135GgtyFL','Error:\x20Path\x20is\x20required\x0a','resolvePathToResource','description','dim','split','\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience\x22','\x27...','green','Folder\x20ID:\x20','fullPath','207646wUstxZ','2404398dJkUEr','\x20\x20tdx\x20segment\x20use\x20..\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Go\x20to\x20parent','error','Resolved\x20path\x20type:\x20','Usage:\x20tdx\x20segment\x20use\x20<path>','cyan','execute','Use\x20\x22tdx\x20use\x22\x20to\x20see\x20all\x20context\x20parameters','1776780kuXLRx','Tip:\x20Run\x20`tdx\x20sg\x20pull\x20<parent_name>`\x20first\x20to\x20create\x20the\x20folder\x20structure'];a33_0x562b=function(){return _0x4b4492;};return a33_0x562b();}
1
+ const a33_0x5865fd=a33_0x4cd3;(function(_0x5235e6,_0x19f59c){const _0x427cdb=a33_0x4cd3,_0xd7814d=_0x5235e6();while(!![]){try{const _0x186e1b=parseInt(_0x427cdb(0x1ff))/0x1+-parseInt(_0x427cdb(0x1cb))/0x2*(parseInt(_0x427cdb(0x1d1))/0x3)+-parseInt(_0x427cdb(0x1cf))/0x4*(-parseInt(_0x427cdb(0x1f8))/0x5)+-parseInt(_0x427cdb(0x1d2))/0x6*(parseInt(_0x427cdb(0x1fa))/0x7)+parseInt(_0x427cdb(0x1d5))/0x8+-parseInt(_0x427cdb(0x1ef))/0x9*(-parseInt(_0x427cdb(0x1f2))/0xa)+-parseInt(_0x427cdb(0x1f6))/0xb;if(_0x186e1b===_0x19f59c)break;else _0xd7814d['push'](_0xd7814d['shift']());}catch(_0x188f64){_0xd7814d['push'](_0xd7814d['shift']());}}}(a33_0x5ba5,0x70e4e));import{existsSync,statSync}from'fs';import a33_0x108fc3 from'chalk';import{BaseCommand}from'./command.js';import{saveSessionContext}from'../core/session.js';import{withSpinner}from'../utils/spinner.js';function a33_0x4cd3(_0x3a1cc6,_0x4218b5){_0x3a1cc6=_0x3a1cc6-0x1ca;const _0x5ba588=a33_0x5ba5();let _0x4cd336=_0x5ba588[_0x3a1cc6];return _0x4cd336;}import{parsePath,normalizePath}from'../sdk/segment/segment-path-parser.js';import{findTdxConfig}from'../sdk/segment/tdx-config.js';export class SegmentUseCommand extends BaseCommand{[a33_0x5865fd(0x203)]=a33_0x5865fd(0x1d4);['description']=a33_0x5865fd(0x1ed);async['execute'](_0x2a14d4){const _0x3ace20=a33_0x5865fd,{options:_0x54fe0c,args:_0x23ad68,tdx:_0x407881}=_0x2a14d4;if(_0x23ad68['length']===0x0)return console[_0x3ace20(0x1d9)](a33_0x108fc3[_0x3ace20(0x1fb)](_0x3ace20(0x1cd))),console[_0x3ace20(0x1d9)](_0x3ace20(0x1ea)),console[_0x3ace20(0x1d9)](_0x3ace20(0x1e7)),console[_0x3ace20(0x1d9)]('\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience\x22'),console[_0x3ace20(0x1d9)]('\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience/Marketing\x22'),console[_0x3ace20(0x1d9)](_0x3ace20(0x202)),console[_0x3ace20(0x1d9)](_0x3ace20(0x1e5)),0x1;const _0x2a4e2=_0x23ad68[0x0],_0x22ae92=_0x54fe0c[_0x3ace20(0x1e0)];try{if(_0x2a4e2==='/')return saveSessionContext({'segment_path':undefined},_0x22ae92),console[_0x3ace20(0x1e8)](a33_0x108fc3[_0x3ace20(0x1ee)](_0x3ace20(0x1ca))),0x0;if(existsSync(_0x2a4e2)&&statSync(_0x2a4e2)[_0x3ace20(0x1e9)]()){let _0x1125df;try{_0x1125df=findTdxConfig(_0x2a4e2);}catch{return console['error'](a33_0x108fc3[_0x3ace20(0x1fb)](_0x3ace20(0x1fe)+_0x2a4e2)),console[_0x3ace20(0x1d9)](a33_0x108fc3[_0x3ace20(0x1f9)]('Tip:\x20Run\x20`tdx\x20sg\x20pull\x20<parent_name>`\x20first\x20to\x20create\x20the\x20folder\x20structure')),0x1;}const _0x2575df=_0x1125df[_0x3ace20(0x1ec)][_0x3ace20(0x204)];return saveSessionContext({'segment_path':_0x2575df,'parent_segment':_0x2575df},_0x22ae92),console[_0x3ace20(0x1e8)](a33_0x108fc3[_0x3ace20(0x1ee)]('✔\x20Context\x20set\x20to:\x20'+a33_0x108fc3[_0x3ace20(0x1f9)](_0x2575df))),0x0;}const _0x236698=_0x54fe0c[_0x3ace20(0x1dc)];let _0x45f3ed=_0x2a4e2;const _0x47628f=parsePath(_0x2a4e2);if(!_0x47628f[_0x3ace20(0x1de)]){if(!_0x236698)return console['error'](a33_0x108fc3[_0x3ace20(0x1fb)](_0x3ace20(0x1fc))),console[_0x3ace20(0x1d9)](a33_0x108fc3[_0x3ace20(0x1f9)](_0x3ace20(0x1df))),0x1;if(_0x2a4e2==='..'){const _0xedf484=_0x236698[_0x3ace20(0x1e4)]('/')['slice'](0x0,-0x1)[_0x3ace20(0x1d6)]('/');_0x45f3ed=_0xedf484||'/';}else _0x2a4e2==='.'?_0x45f3ed=_0x236698:_0x45f3ed=_0x236698+'/'+_0x2a4e2;_0x54fe0c[_0x3ace20(0x1e3)]&&console[_0x3ace20(0x1d9)](_0x3ace20(0x1fd)+_0x45f3ed);}if(_0x45f3ed==='/'||_0x45f3ed==='')return saveSessionContext({'segment_path':undefined},_0x22ae92),console[_0x3ace20(0x1e8)](a33_0x108fc3[_0x3ace20(0x1ee)](_0x3ace20(0x1ca))),0x0;_0x45f3ed=normalizePath(_0x45f3ed);const _0x34f9b1=parsePath(_0x45f3ed)[_0x3ace20(0x1e1)];if(_0x34f9b1['length']===0x0)return saveSessionContext({'segment_path':undefined},_0x22ae92),console[_0x3ace20(0x1e8)](a33_0x108fc3[_0x3ace20(0x1ee)]('✔\x20Context\x20cleared.\x20Back\x20to\x20root.')),0x0;_0x54fe0c[_0x3ace20(0x1e3)]&&(console[_0x3ace20(0x1d9)]('Site:\x20'+_0x54fe0c[_0x3ace20(0x1f3)]),console[_0x3ace20(0x1d9)](_0x3ace20(0x200)+_0x45f3ed));const _0x44dd50=await withSpinner(_0x3ace20(0x1eb)+_0x45f3ed+'\x27...',()=>_0x407881[_0x3ace20(0x1f0)][_0x3ace20(0x1f7)](_0x45f3ed),{'verbose':_0x54fe0c['verbose']}),_0x337758=_0x44dd50[_0x3ace20(0x1dd)];_0x54fe0c['verbose']&&(console[_0x3ace20(0x1d9)](_0x3ace20(0x1ce)+_0x337758[_0x3ace20(0x1d7)]),console[_0x3ace20(0x1d9)]('Parent\x20ID:\x20'+_0x337758['parentId']),_0x337758[_0x3ace20(0x1d3)]&&console[_0x3ace20(0x1d9)](_0x3ace20(0x1f4)+_0x337758[_0x3ace20(0x1d3)]));if(_0x337758['type']==='segment')return console['error'](a33_0x108fc3[_0x3ace20(0x1fb)](_0x3ace20(0x1db))),console[_0x3ace20(0x1d9)](_0x3ace20(0x1cc)),console[_0x3ace20(0x1d9)](a33_0x108fc3[_0x3ace20(0x1f9)](_0x3ace20(0x1d8)+_0x337758[_0x3ace20(0x201)]+(_0x337758['folderPath']?'/'+_0x337758[_0x3ace20(0x1f1)][_0x3ace20(0x1d6)]('/'):''))),0x1;return saveSessionContext({'segment_path':_0x337758[_0x3ace20(0x1e2)],'parent_segment':_0x337758['parentName']},_0x22ae92),console['log'](a33_0x108fc3[_0x3ace20(0x1ee)](_0x3ace20(0x1e6)+a33_0x108fc3['cyan'](_0x337758[_0x3ace20(0x1e2)]))),_0x54fe0c[_0x3ace20(0x1e3)]&&(console[_0x3ace20(0x1d9)](a33_0x108fc3['dim'](_0x3ace20(0x1da))),console[_0x3ace20(0x1d9)](a33_0x108fc3[_0x3ace20(0x1f5)](_0x3ace20(0x1d0)))),0x0;}catch(_0x31cf42){throw _0x31cf42;}}}function a33_0x5ba5(){const _0x58355c=['Resolved\x20path\x20type:\x20','4SRInCv','Use\x20\x22tdx\x20use\x22\x20to\x20see\x20all\x20context\x20parameters','917121QmnZUG','6RcocMv','folderId','segment:use','613888AlGhJD','join','type','Use:\x20tdx\x20segment\x20use\x20','error','Use\x20\x22tdx\x20segments\x22\x20to\x20list\x20contents\x20in\x20this\x20context','Error:\x20Cannot\x20set\x20context\x20to\x20a\x20segment.','segmentPath','data','isAbsolute','Use\x20an\x20absolute\x20path\x20or\x20set\x20context\x20with:\x20tdx\x20segment\x20use\x20<parent_name>','session','segments','fullPath','verbose','split','\x20\x20tdx\x20segment\x20use\x20..\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Go\x20to\x20parent','✔\x20Context\x20set\x20to:\x20','Examples:','log','isDirectory','Usage:\x20tdx\x20segment\x20use\x20<path>','Resolving\x20path\x20\x27','config','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','green','1226466NGIhDk','segment','folderPath','10BdUecc','site','Folder\x20ID:\x20','dim','1364154BJlhRG','resolvePathToResource','4340755OrZDzQ','cyan','3864623ECEIqP','red','Error:\x20No\x20context\x20set.\x20Cannot\x20use\x20relative\x20path.','Resolved\x20relative\x20path\x20to:\x20','Error:\x20No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','363063yizsoC','Target\x20path:\x20','parentName','\x20\x20tdx\x20segment\x20use\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20context','name','parent_segment','✔\x20Context\x20cleared.\x20Back\x20to\x20root.','2vOwiZy','Context\x20can\x20only\x20be\x20set\x20to\x20a\x20parent\x20segment\x20or\x20folder.','Error:\x20Path\x20is\x20required\x0a'];a33_0x5ba5=function(){return _0x58355c;};return a33_0x5ba5();}
@@ -1 +1 @@
1
- const a34_0x2faebb=a34_0x36de;(function(_0x3f2894,_0x2115ab){const _0x39cd63=a34_0x36de,_0x37d164=_0x3f2894();while(!![]){try{const _0x455370=parseInt(_0x39cd63(0x1ab))/0x1*(parseInt(_0x39cd63(0x1b2))/0x2)+parseInt(_0x39cd63(0x1a0))/0x3+parseInt(_0x39cd63(0x1a7))/0x4*(parseInt(_0x39cd63(0x186))/0x5)+parseInt(_0x39cd63(0x1a5))/0x6*(-parseInt(_0x39cd63(0x191))/0x7)+-parseInt(_0x39cd63(0x18c))/0x8*(-parseInt(_0x39cd63(0x187))/0x9)+parseInt(_0x39cd63(0x19a))/0xa+-parseInt(_0x39cd63(0x17f))/0xb;if(_0x455370===_0x2115ab)break;else _0x37d164['push'](_0x37d164['shift']());}catch(_0xa39c57){_0x37d164['push'](_0x37d164['shift']());}}}(a34_0x1126,0x65bd3));import{BaseCommand}from'./command.js';function a34_0x36de(_0xcc0c67,_0x588000){_0xcc0c67=_0xcc0c67-0x17c;const _0x112670=a34_0x1126();let _0x36deb1=_0x112670[_0xcc0c67];return _0x36deb1;}import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';import{existsSync}from'fs';import a34_0x4db120 from'chalk';import{formatValidationResult}from'../sdk/segment/yaml-validator.js';function a34_0x1126(){const _0x3b94d1=['Error:\x20No\x20YAML\x20files\x20found\x20in\x20','description','4354qmrfHq','verbose','execute','yellow','5917714PdVoAU','\x20warning(s)','name','cyan','targetDir','invalidCount','helpText','237740JOIRsJ','9VpOMnn','red','Validate\x20segment\x20and\x20journey\x20YAML\x20files','✔\x20All\x20','\x20valid','2580224RTyCEI','\x20file(s)\x20valid','green','Error:\x20Directory\x20not\x20found:\x20','.yml','761257vcmFXO','filePath','file','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','segment:validate','valid','\x20warning(s)\x20found','\x20error(s)','log','4454410aXMMhP','dim','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','Validation\x20failed:\x20','validCount','.yaml','1220109bhYiQH','\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','warnings','parentSegment','endsWith','36MLrepH','warningCount','8zcJqnf','):\x20','length','error','155cOlzjf','hasErrors','cwd','type','Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)'];a34_0x1126=function(){return _0x3b94d1;};return a34_0x1126();}import{validateYamlFiles,isValidationResult,calculateSummary}from'../sdk/segment/validate-files.js';export class SegmentValidateCommand extends BaseCommand{[a34_0x2faebb(0x181)]=a34_0x2faebb(0x195);[a34_0x2faebb(0x1b1)]=a34_0x2faebb(0x189);async[a34_0x2faebb(0x17d)](_0xfd4685){const _0x513456=a34_0x2faebb,{options:_0x1ea8ea,args:_0xebb309}=_0xfd4685,_0x1027f6=_0x1ea8ea,_0x4158ff=await resolveTarget({'arg':_0xebb309[0x0],'contextParent':_0x1ea8ea[_0x513456(0x1a3)],'cwd':process[_0x513456(0x1ad)]()});if(!isSuccessfulResolution(_0x4158ff))return _0x4158ff['errorCode']==='no_parent'?(console[_0x513456(0x1aa)](a34_0x4db120[_0x513456(0x17e)](_0x513456(0x19c))),console['error'](_0x513456(0x1af)),console[_0x513456(0x1aa)](_0x513456(0x1a1)),console[_0x513456(0x1aa)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file')):(console[_0x513456(0x1aa)](a34_0x4db120['red']('Error:\x20'+_0x4158ff['message']+'\x0a')),_0x4158ff[_0x513456(0x185)]&&console[_0x513456(0x1aa)](a34_0x4db120[_0x513456(0x182)](_0x4158ff['helpText']))),0x1;const _0x17cf97=_0x4158ff[_0x513456(0x183)],_0x27b2b2=_0x4158ff[_0x513456(0x1ae)]===_0x513456(0x193)?_0x4158ff[_0x513456(0x192)]:undefined;if(!_0x27b2b2&&!existsSync(_0x17cf97))return console[_0x513456(0x1aa)](a34_0x4db120[_0x513456(0x188)](_0x513456(0x18f)+_0x17cf97+'\x0a')),0x1;let _0x4a3a62;if(_0x27b2b2){if(!_0x27b2b2[_0x513456(0x1a4)](_0x513456(0x190))&&!_0x27b2b2[_0x513456(0x1a4)](_0x513456(0x19f)))return console[_0x513456(0x1aa)](a34_0x4db120[_0x513456(0x188)](_0x513456(0x194)+_0x27b2b2+'\x0a')),0x1;_0x4a3a62=[_0x27b2b2];}else _0x4a3a62=findYamlFiles(_0x17cf97);if(_0x4a3a62['length']===0x0)return console['error'](a34_0x4db120[_0x513456(0x188)](_0x513456(0x1b0)+_0x17cf97+'\x0a')),0x1;const _0x4e68d1=validateYamlFiles(_0x4a3a62,_0x17cf97),_0x5bcdc9=calculateSummary(_0x4e68d1);for(const _0x76b84d of _0x4e68d1){if(!isValidationResult(_0x76b84d))continue;const {relativePath:_0x46c035,source:_0x1dc81c,result:_0x35b823,fileType:_0x8e16f3}=_0x76b84d,_0x2729be=_0x8e16f3;if(_0x35b823[_0x513456(0x196)]&&_0x35b823[_0x513456(0x1a2)][_0x513456(0x1a9)]===0x0)_0x1027f6[_0x513456(0x17c)]&&console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x18e)]('✔\x20'+_0x46c035)+a34_0x4db120[_0x513456(0x19b)]('\x20('+_0x2729be+')'));else _0x35b823[_0x513456(0x196)]?(console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x17e)]('⚠\x20'+_0x46c035)+a34_0x4db120[_0x513456(0x19b)]('\x20('+_0x2729be+_0x513456(0x1a8)+_0x35b823['warnings'][_0x513456(0x1a9)]+_0x513456(0x180))),console[_0x513456(0x199)](formatValidationResult(_0x35b823,_0x1dc81c,_0x46c035))):(console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x188)]('✖\x20'+_0x46c035)+a34_0x4db120[_0x513456(0x19b)]('\x20('+_0x2729be+_0x513456(0x1a8)+_0x35b823['errors'][_0x513456(0x1a9)]+_0x513456(0x198))),console['log'](formatValidationResult(_0x35b823,_0x1dc81c,_0x46c035)));}return console[_0x513456(0x199)](''),_0x5bcdc9[_0x513456(0x1ac)]?(console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x188)](_0x513456(0x19d)+_0x5bcdc9[_0x513456(0x184)]+'\x20file(s)\x20with\x20errors,\x20'+_0x5bcdc9[_0x513456(0x19e)]+_0x513456(0x18b))),_0x5bcdc9[_0x513456(0x1a6)]>0x0&&console[_0x513456(0x199)](a34_0x4db120['yellow'](_0x5bcdc9[_0x513456(0x1a6)]+_0x513456(0x197))),0x1):(console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x18e)](_0x513456(0x18a)+_0x5bcdc9[_0x513456(0x19e)]+_0x513456(0x18d))),_0x5bcdc9[_0x513456(0x1a6)]>0x0&&console[_0x513456(0x199)](a34_0x4db120[_0x513456(0x17e)](_0x5bcdc9['warningCount']+_0x513456(0x197))),0x0);}}
1
+ const a34_0x37374=a34_0x31a3;(function(_0x590751,_0x26de25){const _0x5b4622=a34_0x31a3,_0x5b8a89=_0x590751();while(!![]){try{const _0x1737f7=parseInt(_0x5b4622(0xba))/0x1+-parseInt(_0x5b4622(0xb3))/0x2+-parseInt(_0x5b4622(0xab))/0x3+-parseInt(_0x5b4622(0x90))/0x4*(-parseInt(_0x5b4622(0xb9))/0x5)+-parseInt(_0x5b4622(0x9c))/0x6+-parseInt(_0x5b4622(0x91))/0x7+parseInt(_0x5b4622(0xaa))/0x8;if(_0x1737f7===_0x26de25)break;else _0x5b8a89['push'](_0x5b8a89['shift']());}catch(_0x5eb84e){_0x5b8a89['push'](_0x5b8a89['shift']());}}}(a34_0x35ed,0xaa512));import{BaseCommand}from'./command.js';import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';function a34_0x31a3(_0x56442d,_0x32964d){_0x56442d=_0x56442d-0x8c;const _0x35edab=a34_0x35ed();let _0x31a368=_0x35edab[_0x56442d];return _0x31a368;}function a34_0x35ed(){const _0xf50691=['green','errors','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','\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','5783748TMKVWj','dim','length','✔\x20All\x20','red','cyan','segment:validate','Error:\x20','warningCount','Validate\x20segment\x20and\x20journey\x20YAML\x20files','\x20file(s)\x20valid','errorCode','name','.yml','15312416yLHqyc','1785489dSZYWH','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)','Validation\x20failed:\x20','endsWith','Error:\x20Directory\x20not\x20found:\x20','description','invalidCount','1530792KukEKh','no_parent','\x20warning(s)\x20found','warnings','validCount','valid','15WGkjQB','196887acdbFx','hasErrors','\x20valid','error','\x20error(s)','verbose','type','filePath','1373228HYNpfI','831075eoCPwu','yellow','log','file','\x20warning(s)','):\x20','helpText'];a34_0x35ed=function(){return _0xf50691;};return a34_0x35ed();}import{existsSync}from'fs';import a34_0x2031b2 from'chalk';import{formatValidationResult}from'../sdk/segment/yaml-validator.js';import{validateYamlFiles,isValidationResult,calculateSummary}from'../sdk/segment/validate-files.js';export class SegmentValidateCommand extends BaseCommand{[a34_0x37374(0xa8)]=a34_0x37374(0xa2);[a34_0x37374(0xb1)]=a34_0x37374(0xa5);async['execute'](_0x1ca076){const _0x121802=a34_0x37374,{options:_0x2d9df7,args:_0x50b784}=_0x1ca076,_0x5ab405=_0x2d9df7,_0x485731=await resolveTarget({'arg':_0x50b784[0x0],'contextParent':_0x2d9df7['parentSegment'],'cwd':process['cwd']()});if(!isSuccessfulResolution(_0x485731))return _0x485731[_0x121802(0xa7)]===_0x121802(0xb4)?(console[_0x121802(0xbd)](a34_0x2031b2[_0x121802(0x92)](_0x121802(0x9a))),console[_0x121802(0xbd)](_0x121802(0xad)),console['error'](_0x121802(0x9b)),console[_0x121802(0xbd)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file')):(console[_0x121802(0xbd)](a34_0x2031b2[_0x121802(0xa0)](_0x121802(0xa3)+_0x485731['message']+'\x0a')),_0x485731[_0x121802(0x97)]&&console[_0x121802(0xbd)](a34_0x2031b2[_0x121802(0xa1)](_0x485731[_0x121802(0x97)]))),0x1;const _0x18b2a6=_0x485731['targetDir'],_0x5973c9=_0x485731[_0x121802(0x8e)]===_0x121802(0x94)?_0x485731[_0x121802(0x8f)]:undefined;if(!_0x5973c9&&!existsSync(_0x18b2a6))return console['error'](a34_0x2031b2[_0x121802(0xa0)](_0x121802(0xb0)+_0x18b2a6+'\x0a')),0x1;let _0x2edb0c;if(_0x5973c9){if(!_0x5973c9['endsWith'](_0x121802(0xa9))&&!_0x5973c9[_0x121802(0xaf)]('.yaml'))return console[_0x121802(0xbd)](a34_0x2031b2[_0x121802(0xa0)](_0x121802(0xac)+_0x5973c9+'\x0a')),0x1;_0x2edb0c=[_0x5973c9];}else _0x2edb0c=findYamlFiles(_0x18b2a6);if(_0x2edb0c[_0x121802(0x9e)]===0x0)return console[_0x121802(0xbd)](a34_0x2031b2['red']('Error:\x20No\x20YAML\x20files\x20found\x20in\x20'+_0x18b2a6+'\x0a')),0x1;const _0x271e89=validateYamlFiles(_0x2edb0c,_0x18b2a6),_0x552f6a=calculateSummary(_0x271e89);for(const _0x407bca of _0x271e89){if(!isValidationResult(_0x407bca))continue;const {relativePath:_0x19e0f1,source:_0x5706aa,result:_0x32ef62,fileType:_0x58aa00}=_0x407bca,_0x1a681c=_0x58aa00;if(_0x32ef62[_0x121802(0xb8)]&&_0x32ef62[_0x121802(0xb6)][_0x121802(0x9e)]===0x0)_0x5ab405[_0x121802(0x8d)]&&console[_0x121802(0x93)](a34_0x2031b2['green']('✔\x20'+_0x19e0f1)+a34_0x2031b2[_0x121802(0x9d)]('\x20('+_0x1a681c+')'));else _0x32ef62['valid']?(console[_0x121802(0x93)](a34_0x2031b2[_0x121802(0x92)]('⚠\x20'+_0x19e0f1)+a34_0x2031b2[_0x121802(0x9d)]('\x20('+_0x1a681c+_0x121802(0x96)+_0x32ef62[_0x121802(0xb6)][_0x121802(0x9e)]+_0x121802(0x95))),console[_0x121802(0x93)](formatValidationResult(_0x32ef62,_0x5706aa,_0x19e0f1))):(console[_0x121802(0x93)](a34_0x2031b2[_0x121802(0xa0)]('✖\x20'+_0x19e0f1)+a34_0x2031b2[_0x121802(0x9d)]('\x20('+_0x1a681c+_0x121802(0x96)+_0x32ef62[_0x121802(0x99)][_0x121802(0x9e)]+_0x121802(0x8c))),console['log'](formatValidationResult(_0x32ef62,_0x5706aa,_0x19e0f1)));}return console[_0x121802(0x93)](''),_0x552f6a[_0x121802(0xbb)]?(console[_0x121802(0x93)](a34_0x2031b2['red'](_0x121802(0xae)+_0x552f6a[_0x121802(0xb2)]+'\x20file(s)\x20with\x20errors,\x20'+_0x552f6a[_0x121802(0xb7)]+_0x121802(0xbc))),_0x552f6a[_0x121802(0xa4)]>0x0&&console['log'](a34_0x2031b2[_0x121802(0x92)](_0x552f6a[_0x121802(0xa4)]+_0x121802(0xb5))),0x1):(console[_0x121802(0x93)](a34_0x2031b2[_0x121802(0x98)](_0x121802(0x9f)+_0x552f6a['validCount']+_0x121802(0xa6))),_0x552f6a[_0x121802(0xa4)]>0x0&&console[_0x121802(0x93)](a34_0x2031b2[_0x121802(0x92)](_0x552f6a[_0x121802(0xa4)]+'\x20warning(s)\x20found')),0x0);}}
@@ -1 +1 @@
1
- const a35_0x6c0b22=a35_0x4a83;(function(_0xde8ea1,_0x1e1505){const _0x4eb018=a35_0x4a83,_0x20661b=_0xde8ea1();while(!![]){try{const _0x1ddb3f=parseInt(_0x4eb018(0x1f3))/0x1+parseInt(_0x4eb018(0x21f))/0x2+parseInt(_0x4eb018(0x1ed))/0x3+parseInt(_0x4eb018(0x203))/0x4*(-parseInt(_0x4eb018(0x216))/0x5)+parseInt(_0x4eb018(0x23d))/0x6*(-parseInt(_0x4eb018(0x228))/0x7)+-parseInt(_0x4eb018(0x1fa))/0x8+parseInt(_0x4eb018(0x205))/0x9;if(_0x1ddb3f===_0x1e1505)break;else _0x20661b['push'](_0x20661b['shift']());}catch(_0x3c83d9){_0x20661b['push'](_0x20661b['shift']());}}}(a35_0x3f5f,0xe7a55));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a35_0x4a83(_0x6e878f,_0x4e75bc){_0x6e878f=_0x6e878f-0x1ed;const _0x3f5f52=a35_0x3f5f();let _0x4a83bb=_0x3f5f52[_0x6e878f];return _0x4a83bb;}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';function a35_0x3f5f(){const _0x1ab4c7=['segments','format','Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.','1377455gVlYNm','includes','maxDepth','jsonl','test','journeyBundleName','\x20\x20Cause:\x20','4242552aItEYl','Error:\x20','localeCompare','\x20matching\x20\x27','Folder\x20ID:\x20','message','filter','Parent\x20ID:\x20','Set\x20a\x20parent\x20segment\x20context\x20first:','649088JPybxh','folderId','2576016hXMBYk','length','\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22','execute','type','verbose','\x20journey','Recursive\x20mode:\x20enabled','\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22','journey','dim','\x20folder','json','✔\x20Found\x20','segment','/app/ps/','(empty)','50yQtafs','Error:\x20No\x20parent\x20segment\x20context\x20set.','Folder/pattern\x20arg:\x20','children','listWithPattern','Resolving\x20parent\x20segment\x20\x27','folder','name','journeys','3379764XhkwvC','data','map','cause','site','(not\x20set)','Resolving\x20path\x20\x27','\x5c$&','Parent\x20segment\x20context:\x20','7ZzuvIA','replace','\x27...','List\x20folders\x20and\x20child\x20segments','parentSegment','✔\x20Built\x20tree\x20with\x20','listRecursive','Site:\x20','error','/e/','folders',',\x20and\x20','description','sort','resolvePathToResource','recursive','/j/da','listUnifiedWithJourneys','parentId','log','\x20segment','10231872uhaiaz','4360833BuXESY','listUnified',']\x20matching\x20\x27'];a35_0x3f5f=function(){return _0x1ab4c7;};return a35_0x3f5f();}import a35_0x2473e9 from'chalk';export class SegmentsCommand extends BaseCommand{['name']=a35_0x6c0b22(0x1f0);[a35_0x6c0b22(0x234)]=a35_0x6c0b22(0x22b);async[a35_0x6c0b22(0x208)](_0x559fd0){const _0xb59852=a35_0x6c0b22,{options:_0x49eb37,args:_0x4220d1}=_0x559fd0,_0x4ff568=_0x49eb37[_0xb59852(0x237)],_0x3f334a=_0x4220d1[0x0];try{const _0x5bccfa=_0x49eb37[_0xb59852(0x22c)];_0x49eb37['verbose']&&(console[_0xb59852(0x230)](_0xb59852(0x22f)+_0x49eb37[_0xb59852(0x223)]),console[_0xb59852(0x230)](_0xb59852(0x227)+(_0x5bccfa||_0xb59852(0x224))),_0x3f334a&&console[_0xb59852(0x230)](_0xb59852(0x218)+_0x3f334a),_0x4ff568&&console[_0xb59852(0x230)](_0xb59852(0x20c)));if(!_0x5bccfa)return console[_0xb59852(0x230)](_0xb59852(0x217)),console['error'](''),console[_0xb59852(0x230)](_0xb59852(0x202)),console['error'](_0xb59852(0x207)),console[_0xb59852(0x230)](_0xb59852(0x20d)),console[_0xb59852(0x230)](''),console[_0xb59852(0x230)](_0xb59852(0x1f2)),0x1;const _0x5a1164=_0x3f334a&&(_0x3f334a[_0xb59852(0x1f4)]('*')||_0x3f334a[_0xb59852(0x1f4)]('?'));if(_0x5a1164)return await this[_0xb59852(0x21a)](_0x559fd0,_0x5bccfa,_0x3f334a);const _0x4df08c=_0x3f334a?_0x5bccfa+'/'+_0x3f334a:_0x5bccfa;return _0x4ff568?await this['listRecursive'](_0x559fd0,_0x4df08c):await this[_0xb59852(0x1ee)](_0x559fd0,_0x4df08c);}catch(_0x2a9155){if(_0x2a9155 instanceof SDKError)return console[_0xb59852(0x230)](_0xb59852(0x1fb)+_0x2a9155[_0xb59852(0x1ff)]),_0x2a9155[_0xb59852(0x222)]&&console['error'](_0xb59852(0x1f9)+_0x2a9155[_0xb59852(0x222)]),0x1;throw _0x2a9155;}}async['listWithPattern'](_0x37c782,_0x4a7767,_0x53b566){const _0x3a3782=a35_0x6c0b22,{options:_0x178b4a,tdx:_0x110a53}=_0x37c782,_0x3028ec=await withSpinner(_0x3a3782(0x21b)+_0x4a7767+_0x3a3782(0x22a),()=>_0x110a53[_0x3a3782(0x213)]['resolvePathToResource'](_0x4a7767),{'verbose':_0x178b4a[_0x3a3782(0x20a)]}),_0x224a9e=_0x3028ec[_0x3a3782(0x220)],_0x5dcda3=await withSpinner('Listing\x20folders,\x20segments,\x20and\x20journeys...',()=>_0x110a53[_0x3a3782(0x213)][_0x3a3782(0x239)](_0x224a9e[_0x3a3782(0x23a)],_0x224a9e[_0x3a3782(0x204)]),{'verbose':_0x178b4a['verbose']}),{folders:_0x1e7a34,segments:_0x42fac7,journeys:_0x59bb52}=_0x5dcda3[_0x3a3782(0x220)],_0x234a54=_0x53b566[_0x3a3782(0x229)](/[.+^${}()|[\]\\]/g,_0x3a3782(0x226))[_0x3a3782(0x229)](/\*/g,'.*')[_0x3a3782(0x229)](/\?/g,'.'),_0x358b18=new RegExp('^'+_0x234a54+'$','i'),_0x47a00a=_0x1e7a34[_0x3a3782(0x200)](_0x58291a=>_0x358b18[_0x3a3782(0x1f7)](_0x58291a[_0x3a3782(0x21d)])),_0x1802e2=_0x42fac7[_0x3a3782(0x200)](_0x83398b=>_0x358b18[_0x3a3782(0x1f7)](_0x83398b[_0x3a3782(0x21d)])),_0x4a3145=_0x59bb52[_0x3a3782(0x200)](_0x20cb52=>_0x358b18[_0x3a3782(0x1f7)](_0x20cb52['journeyBundleName'])),_0x562a8f=_0x47a00a['length']+_0x1802e2[_0x3a3782(0x206)]+_0x4a3145['length'];console['error'](_0x3a3782(0x212)+_0x47a00a[_0x3a3782(0x206)]+'\x20folder'+(_0x47a00a[_0x3a3782(0x206)]!==0x1?'s':'')+',\x20'+_0x1802e2[_0x3a3782(0x206)]+'\x20segment'+(_0x1802e2[_0x3a3782(0x206)]!==0x1?'s':'')+_0x3a3782(0x233)+_0x4a3145[_0x3a3782(0x206)]+_0x3a3782(0x20b)+(_0x4a3145[_0x3a3782(0x206)]!==0x1?'s':'')+_0x3a3782(0x1fd)+_0x53b566+'\x27');const _0x3526be=_0x13ab15=>{const _0x3cac1a=_0x3a3782;return getConsoleNextUrl(_0x178b4a['site'],_0x3cac1a(0x214)+_0x224a9e[_0x3cac1a(0x23a)]+_0x3cac1a(0x231)+_0x13ab15);},_0x2a98be=_0x178b4a[_0x3a3782(0x1f1)]==='json'||_0x178b4a[_0x3a3782(0x1f1)]===_0x3a3782(0x1f6);if(_0x2a98be){const _0x408f05=[..._0x47a00a[_0x3a3782(0x221)](_0x52ff9a=>({..._0x52ff9a,'type':'folder'})),..._0x1802e2[_0x3a3782(0x221)](_0x3504b6=>({..._0x3504b6,'type':_0x3a3782(0x213),'url':_0x3526be(_0x3504b6['id'])})),..._0x4a3145[_0x3a3782(0x221)](_0x17950e=>({..._0x17950e,'name':_0x17950e['journeyBundleName'],'type':_0x3a3782(0x20e)}))][_0x3a3782(0x235)]((_0x35704b,_0x41f442)=>_0x35704b[_0x3a3782(0x21d)][_0x3a3782(0x1fc)](_0x41f442[_0x3a3782(0x21d)]));await handleSDKOutput(_0x408f05,_0x178b4a);}else{if(_0x562a8f===0x0)console[_0x3a3782(0x23b)]('No\x20items\x20match\x20pattern:\x20'+_0x53b566);else{console[_0x3a3782(0x23b)](a35_0x2473e9['dim']('['+_0x4a7767+_0x3a3782(0x1ef)+_0x53b566+'\x27'));const _0x303685=formatFlatList(_0x47a00a,_0x1802e2,{'showMetadata':!![],'getSegmentUrl':_0x3526be},_0x4a3145);console[_0x3a3782(0x23b)](_0x303685);}}return 0x0;}async['listUnified'](_0x379b95,_0x717ff9){const _0xd11070=a35_0x6c0b22,{options:_0x251655,tdx:_0xf9478e}=_0x379b95,_0x1a5059=await withSpinner(_0xd11070(0x225)+_0x717ff9+_0xd11070(0x22a),()=>_0xf9478e[_0xd11070(0x213)][_0xd11070(0x236)](_0x717ff9),{'verbose':_0x251655[_0xd11070(0x20a)]}),_0x2b3379=_0x1a5059['data'];_0x251655[_0xd11070(0x20a)]&&(console[_0xd11070(0x230)]('Parent\x20ID:\x20'+_0x2b3379[_0xd11070(0x23a)]),_0x2b3379['folderId']&&console[_0xd11070(0x230)]('Folder\x20ID:\x20'+_0x2b3379[_0xd11070(0x204)]));const _0x4d40d3=await withSpinner('Listing\x20folders,\x20segments,\x20and\x20journeys...',()=>_0xf9478e[_0xd11070(0x213)]['listUnifiedWithJourneys'](_0x2b3379[_0xd11070(0x23a)],_0x2b3379[_0xd11070(0x204)]),{'verbose':_0x251655[_0xd11070(0x20a)]}),{folders:_0x4e0375,segments:_0x504423,journeys:_0xcf032b}=_0x4d40d3['data'],_0x212590=_0x4e0375['length']+_0x504423[_0xd11070(0x206)]+_0xcf032b[_0xd11070(0x206)];console[_0xd11070(0x230)](_0xd11070(0x212)+_0x4e0375[_0xd11070(0x206)]+_0xd11070(0x210)+(_0x4e0375['length']!==0x1?'s':'')+',\x20'+_0x504423[_0xd11070(0x206)]+_0xd11070(0x23c)+(_0x504423['length']!==0x1?'s':'')+',\x20and\x20'+_0xcf032b[_0xd11070(0x206)]+_0xd11070(0x20b)+(_0xcf032b[_0xd11070(0x206)]!==0x1?'s':''));const _0x25a324=_0x36b83d=>{const _0x1a390b=_0xd11070;return getConsoleNextUrl(_0x251655[_0x1a390b(0x223)],'/app/ps/'+_0x2b3379['parentId']+_0x1a390b(0x231)+_0x36b83d);},_0x5f5e4c=_0x4a8e04=>{const _0xf27cec=_0xd11070;return getConsoleNextUrl(_0x251655['site'],_0xf27cec(0x214)+_0x2b3379['parentId']+_0xf27cec(0x231)+_0x4a8e04+_0xf27cec(0x238));},_0x3bbef6=_0x251655['format']===_0xd11070(0x211)||_0x251655[_0xd11070(0x1f1)]===_0xd11070(0x1f6);if(_0x3bbef6){const _0x14b4e4=[..._0x4e0375[_0xd11070(0x221)](_0x3ccd70=>({..._0x3ccd70,'type':_0xd11070(0x21c)})),..._0x504423[_0xd11070(0x221)](_0x5accc9=>({..._0x5accc9,'type':'segment','url':_0x25a324(_0x5accc9['id'])})),..._0xcf032b['map'](_0x11a534=>({..._0x11a534,'name':_0x11a534[_0xd11070(0x1f8)],'type':'journey','url':_0x5f5e4c(_0x11a534['id'])}))][_0xd11070(0x235)]((_0x11ef78,_0x2c0666)=>_0x11ef78[_0xd11070(0x21d)]['localeCompare'](_0x2c0666[_0xd11070(0x21d)]));await handleSDKOutput(_0x14b4e4,_0x251655);}else{if(_0x212590===0x0)console[_0xd11070(0x23b)](a35_0x2473e9['dim']('['+_0x717ff9+']')),console[_0xd11070(0x23b)](_0xd11070(0x215));else{console[_0xd11070(0x23b)](a35_0x2473e9[_0xd11070(0x20f)]('['+_0x717ff9+']'));const _0x5c6d8f=formatFlatList(_0x4e0375,_0x504423,{'showMetadata':!![],'getSegmentUrl':_0x25a324,'getJourneyUrl':_0x5f5e4c},_0xcf032b);console[_0xd11070(0x23b)](_0x5c6d8f);}}return 0x0;}async[a35_0x6c0b22(0x22e)](_0x5c8e7b,_0x2cb94d){const _0x42dc56=a35_0x6c0b22,{options:_0x5cc356,tdx:_0x42c572}=_0x5c8e7b,_0x4a1064=await withSpinner(_0x42dc56(0x225)+_0x2cb94d+'\x27...',()=>_0x42c572[_0x42dc56(0x213)][_0x42dc56(0x236)](_0x2cb94d),{'verbose':_0x5cc356['verbose']}),_0x55f355=_0x4a1064['data'];_0x5cc356[_0x42dc56(0x20a)]&&(console[_0x42dc56(0x230)](_0x42dc56(0x201)+_0x55f355[_0x42dc56(0x23a)]),_0x55f355[_0x42dc56(0x204)]&&console[_0x42dc56(0x230)](_0x42dc56(0x1fe)+_0x55f355[_0x42dc56(0x204)]));const _0x934cf3=_0x5cc356[_0x42dc56(0x1f5)]||0xa,_0x1ffb21=await withSpinner('Building\x20hierarchy\x20tree...',()=>_0x42c572['segment'][_0x42dc56(0x22e)](_0x55f355['parentId'],_0x55f355[_0x42dc56(0x204)],0x0,_0x934cf3),{'verbose':_0x5cc356[_0x42dc56(0x20a)]}),_0x314c4d=_0x1ffb21['data'],_0x52eb0f=_0x14b297=>{const _0x667201=_0x42dc56;let _0x17eb3c=0x0,_0x1ec1ad=0x0,_0x1b3014=0x0;for(const _0x1f163e of _0x14b297){if(_0x1f163e[_0x667201(0x209)]===_0x667201(0x21c))_0x17eb3c++;else{if(_0x1f163e['type']==='segment')_0x1ec1ad++;else{if(_0x1f163e[_0x667201(0x209)]===_0x667201(0x20e))_0x1b3014++;}}if(_0x1f163e[_0x667201(0x219)]){const _0x384f5e=_0x52eb0f(_0x1f163e[_0x667201(0x219)]);_0x17eb3c+=_0x384f5e[_0x667201(0x232)],_0x1ec1ad+=_0x384f5e['segments'],_0x1b3014+=_0x384f5e[_0x667201(0x21e)];}}return{'folders':_0x17eb3c,'segments':_0x1ec1ad,'journeys':_0x1b3014};},_0x402889=_0x52eb0f(_0x314c4d);console['error'](_0x42dc56(0x22d)+_0x402889[_0x42dc56(0x232)]+'\x20folder'+(_0x402889[_0x42dc56(0x232)]!==0x1?'s':'')+',\x20'+_0x402889['segments']+_0x42dc56(0x23c)+(_0x402889['segments']!==0x1?'s':'')+',\x20and\x20'+_0x402889[_0x42dc56(0x21e)]+_0x42dc56(0x20b)+(_0x402889['journeys']!==0x1?'s':''));const _0x4aa84b=_0x41b082=>{const _0x2dcae7=_0x42dc56;return getConsoleNextUrl(_0x5cc356['site'],'/app/ps/'+_0x55f355['parentId']+_0x2dcae7(0x231)+_0x41b082);},_0x2e9dfe=_0x5ab3b5=>{const _0x50e48a=_0x42dc56;return getConsoleNextUrl(_0x5cc356[_0x50e48a(0x223)],_0x50e48a(0x214)+_0x55f355[_0x50e48a(0x23a)]+'/e/'+_0x5ab3b5+_0x50e48a(0x238));};if(_0x5cc356[_0x42dc56(0x1f1)]===_0x42dc56(0x211)||_0x5cc356[_0x42dc56(0x1f1)]==='jsonl')await handleSDKOutput(_0x314c4d,_0x5cc356);else{console['log'](a35_0x2473e9[_0x42dc56(0x20f)]('['+_0x2cb94d+']'));const _0x166315=formatTree(_0x314c4d,{'showMetadata':!![],'getSegmentUrl':_0x4aa84b,'getJourneyUrl':_0x2e9dfe});console[_0x42dc56(0x23b)](_0x166315);}return 0x0;}}
1
+ const a35_0x1fb15e=a35_0x32cb;(function(_0x541a8d,_0x3ff363){const _0x5928e6=a35_0x32cb,_0x52ca83=_0x541a8d();while(!![]){try{const _0x4516c5=-parseInt(_0x5928e6(0x185))/0x1*(parseInt(_0x5928e6(0x17c))/0x2)+-parseInt(_0x5928e6(0x192))/0x3*(-parseInt(_0x5928e6(0x155))/0x4)+-parseInt(_0x5928e6(0x196))/0x5+-parseInt(_0x5928e6(0x176))/0x6+-parseInt(_0x5928e6(0x154))/0x7+parseInt(_0x5928e6(0x189))/0x8*(parseInt(_0x5928e6(0x19c))/0x9)+parseInt(_0x5928e6(0x194))/0xa*(parseInt(_0x5928e6(0x161))/0xb);if(_0x4516c5===_0x3ff363)break;else _0x52ca83['push'](_0x52ca83['shift']());}catch(_0x45b826){_0x52ca83['push'](_0x52ca83['shift']());}}}(a35_0x38b9,0x325c8));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';function a35_0x32cb(_0x3ef4b4,_0x107edd){_0x3ef4b4=_0x3ef4b4-0x153;const _0x38b904=a35_0x38b9();let _0x32cb2c=_0x38b904[_0x3ef4b4];return _0x32cb2c;}import{withSpinner}from'../utils/spinner.js';function a35_0x38b9(){const _0x6eaba3=['dim','error','/app/ps/','(not\x20set)','description','Parent\x20segment\x20context:\x20','\x20segment','jsonl','listWithPattern','cause','(empty)','data','folderId','map','resolvePathToResource','children','\x20journey','2007978HlnGDP','segments','\x20\x20Cause:\x20','\x27...','journey','/e/','77918fJoXGN','format','filter','journeyBundleName','folder','site','listRecursive','Recursive\x20mode:\x20enabled',',\x20and\x20','7YsSfSG','✔\x20Found\x20','Set\x20a\x20parent\x20segment\x20context\x20first:','folders','8lLMTWv','type','Site:\x20','Resolving\x20parent\x20segment\x20\x27','replace','Building\x20hierarchy\x20tree...','listUnifiedWithJourneys','Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.','Resolving\x20path\x20\x27','5631IeliPe','journeys','20HvVyAc','json','998525MEBZKI','Error:\x20No\x20parent\x20segment\x20context\x20set.','test','\x20folder','length','parentSegment','434493LpRhTl','localeCompare','log','Error:\x20','\x20matching\x20\x27','Listing\x20folders,\x20segments,\x20and\x20journeys...','2442741WmeutA','132QCXkHh','Folder\x20ID:\x20','listUnified','segment','sort','name','includes','parentId','message','\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22','No\x20items\x20match\x20pattern:\x20','recursive','6886583YErEnD','\x5c$&','verbose','maxDepth'];a35_0x38b9=function(){return _0x6eaba3;};return a35_0x38b9();}import{formatFlatList,formatTree}from'../sdk/util/tree-formatter.js';import{getConsoleNextUrl}from'../sdk/client/endpoints.js';import a35_0x362103 from'chalk';export class SegmentsCommand extends BaseCommand{[a35_0x1fb15e(0x15a)]='segments';[a35_0x1fb15e(0x169)]='List\x20folders\x20and\x20child\x20segments';async['execute'](_0x375853){const _0x188ba4=a35_0x1fb15e,{options:_0x1b702f,args:_0x741531}=_0x375853,_0x464d70=_0x1b702f[_0x188ba4(0x160)],_0x516e24=_0x741531[0x0];try{const _0x244624=_0x1b702f[_0x188ba4(0x19b)];_0x1b702f[_0x188ba4(0x163)]&&(console[_0x188ba4(0x166)](_0x188ba4(0x18b)+_0x1b702f['site']),console[_0x188ba4(0x166)](_0x188ba4(0x16a)+(_0x244624||_0x188ba4(0x168))),_0x516e24&&console[_0x188ba4(0x166)]('Folder/pattern\x20arg:\x20'+_0x516e24),_0x464d70&&console[_0x188ba4(0x166)](_0x188ba4(0x183)));if(!_0x244624)return console[_0x188ba4(0x166)](_0x188ba4(0x197)),console[_0x188ba4(0x166)](''),console[_0x188ba4(0x166)](_0x188ba4(0x187)),console[_0x188ba4(0x166)](_0x188ba4(0x15e)),console[_0x188ba4(0x166)]('\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22'),console['error'](''),console[_0x188ba4(0x166)](_0x188ba4(0x190)),0x1;const _0x1091b0=_0x516e24&&(_0x516e24[_0x188ba4(0x15b)]('*')||_0x516e24['includes']('?'));if(_0x1091b0)return await this['listWithPattern'](_0x375853,_0x244624,_0x516e24);const _0x198dda=_0x516e24?_0x244624+'/'+_0x516e24:_0x244624;return _0x464d70?await this[_0x188ba4(0x182)](_0x375853,_0x198dda):await this['listUnified'](_0x375853,_0x198dda);}catch(_0x8d6dae){if(_0x8d6dae instanceof SDKError)return console['error'](_0x188ba4(0x19f)+_0x8d6dae[_0x188ba4(0x15d)]),_0x8d6dae[_0x188ba4(0x16e)]&&console[_0x188ba4(0x166)](_0x188ba4(0x178)+_0x8d6dae['cause']),0x1;throw _0x8d6dae;}}async[a35_0x1fb15e(0x16d)](_0x23f647,_0x52d806,_0xc9e30){const _0x5e36fe=a35_0x1fb15e,{options:_0x111d04,tdx:_0x57c44d}=_0x23f647,_0x4fd874=await withSpinner(_0x5e36fe(0x18c)+_0x52d806+_0x5e36fe(0x179),()=>_0x57c44d[_0x5e36fe(0x158)][_0x5e36fe(0x173)](_0x52d806),{'verbose':_0x111d04[_0x5e36fe(0x163)]}),_0x107690=_0x4fd874[_0x5e36fe(0x170)],_0x3d3d22=await withSpinner(_0x5e36fe(0x153),()=>_0x57c44d[_0x5e36fe(0x158)][_0x5e36fe(0x18f)](_0x107690[_0x5e36fe(0x15c)],_0x107690[_0x5e36fe(0x171)]),{'verbose':_0x111d04[_0x5e36fe(0x163)]}),{folders:_0x35d3d3,segments:_0x1b01f3,journeys:_0x5d4658}=_0x3d3d22[_0x5e36fe(0x170)],_0x2450ff=_0xc9e30[_0x5e36fe(0x18d)](/[.+^${}()|[\]\\]/g,_0x5e36fe(0x162))[_0x5e36fe(0x18d)](/\*/g,'.*')[_0x5e36fe(0x18d)](/\?/g,'.'),_0x2e1434=new RegExp('^'+_0x2450ff+'$','i'),_0x38be51=_0x35d3d3[_0x5e36fe(0x17e)](_0x1371ce=>_0x2e1434[_0x5e36fe(0x198)](_0x1371ce[_0x5e36fe(0x15a)])),_0x3a4304=_0x1b01f3[_0x5e36fe(0x17e)](_0x200775=>_0x2e1434[_0x5e36fe(0x198)](_0x200775[_0x5e36fe(0x15a)])),_0x1fbb26=_0x5d4658[_0x5e36fe(0x17e)](_0xf069c0=>_0x2e1434[_0x5e36fe(0x198)](_0xf069c0['journeyBundleName'])),_0x4cc540=_0x38be51[_0x5e36fe(0x19a)]+_0x3a4304[_0x5e36fe(0x19a)]+_0x1fbb26[_0x5e36fe(0x19a)];console[_0x5e36fe(0x166)](_0x5e36fe(0x186)+_0x38be51[_0x5e36fe(0x19a)]+_0x5e36fe(0x199)+(_0x38be51['length']!==0x1?'s':'')+',\x20'+_0x3a4304[_0x5e36fe(0x19a)]+'\x20segment'+(_0x3a4304[_0x5e36fe(0x19a)]!==0x1?'s':'')+_0x5e36fe(0x184)+_0x1fbb26[_0x5e36fe(0x19a)]+_0x5e36fe(0x175)+(_0x1fbb26[_0x5e36fe(0x19a)]!==0x1?'s':'')+_0x5e36fe(0x1a0)+_0xc9e30+'\x27');const _0x2369e9=_0x2ae9a9=>{const _0x261ef0=_0x5e36fe;return getConsoleNextUrl(_0x111d04[_0x261ef0(0x181)],_0x261ef0(0x167)+_0x107690['parentId']+'/e/'+_0x2ae9a9);},_0x35f870=_0x111d04[_0x5e36fe(0x17d)]===_0x5e36fe(0x195)||_0x111d04[_0x5e36fe(0x17d)]===_0x5e36fe(0x16c);if(_0x35f870){const _0x1ff400=[..._0x38be51[_0x5e36fe(0x172)](_0x175ea8=>({..._0x175ea8,'type':_0x5e36fe(0x180)})),..._0x3a4304['map'](_0x163619=>({..._0x163619,'type':_0x5e36fe(0x158),'url':_0x2369e9(_0x163619['id'])})),..._0x1fbb26[_0x5e36fe(0x172)](_0x4f7a4c=>({..._0x4f7a4c,'name':_0x4f7a4c[_0x5e36fe(0x17f)],'type':'journey'}))]['sort']((_0x2d8ff7,_0x3e775c)=>_0x2d8ff7['name'][_0x5e36fe(0x19d)](_0x3e775c['name']));await handleSDKOutput(_0x1ff400,_0x111d04);}else{if(_0x4cc540===0x0)console[_0x5e36fe(0x19e)](_0x5e36fe(0x15f)+_0xc9e30);else{console[_0x5e36fe(0x19e)](a35_0x362103[_0x5e36fe(0x165)]('['+_0x52d806+']\x20matching\x20\x27'+_0xc9e30+'\x27'));const _0x19acce=formatFlatList(_0x38be51,_0x3a4304,{'showMetadata':!![],'getSegmentUrl':_0x2369e9},_0x1fbb26);console['log'](_0x19acce);}}return 0x0;}async[a35_0x1fb15e(0x157)](_0x5f5334,_0x3ad3e5){const _0x2bd88b=a35_0x1fb15e,{options:_0x30c909,tdx:_0x47fc8c}=_0x5f5334,_0x10169c=await withSpinner(_0x2bd88b(0x191)+_0x3ad3e5+_0x2bd88b(0x179),()=>_0x47fc8c[_0x2bd88b(0x158)][_0x2bd88b(0x173)](_0x3ad3e5),{'verbose':_0x30c909['verbose']}),_0x3da815=_0x10169c[_0x2bd88b(0x170)];_0x30c909['verbose']&&(console[_0x2bd88b(0x166)]('Parent\x20ID:\x20'+_0x3da815[_0x2bd88b(0x15c)]),_0x3da815[_0x2bd88b(0x171)]&&console[_0x2bd88b(0x166)](_0x2bd88b(0x156)+_0x3da815[_0x2bd88b(0x171)]));const _0x2d4a52=await withSpinner(_0x2bd88b(0x153),()=>_0x47fc8c[_0x2bd88b(0x158)]['listUnifiedWithJourneys'](_0x3da815[_0x2bd88b(0x15c)],_0x3da815[_0x2bd88b(0x171)]),{'verbose':_0x30c909[_0x2bd88b(0x163)]}),{folders:_0x3d55e1,segments:_0x558fd8,journeys:_0x502a2d}=_0x2d4a52[_0x2bd88b(0x170)],_0x2e7481=_0x3d55e1[_0x2bd88b(0x19a)]+_0x558fd8[_0x2bd88b(0x19a)]+_0x502a2d[_0x2bd88b(0x19a)];console['error'](_0x2bd88b(0x186)+_0x3d55e1[_0x2bd88b(0x19a)]+_0x2bd88b(0x199)+(_0x3d55e1[_0x2bd88b(0x19a)]!==0x1?'s':'')+',\x20'+_0x558fd8['length']+_0x2bd88b(0x16b)+(_0x558fd8['length']!==0x1?'s':'')+_0x2bd88b(0x184)+_0x502a2d[_0x2bd88b(0x19a)]+'\x20journey'+(_0x502a2d[_0x2bd88b(0x19a)]!==0x1?'s':''));const _0x67e44a=_0x1b4939=>{const _0x21c2d2=_0x2bd88b;return getConsoleNextUrl(_0x30c909['site'],'/app/ps/'+_0x3da815['parentId']+_0x21c2d2(0x17b)+_0x1b4939);},_0x368ce0=_0x4a33be=>{const _0x1dd337=_0x2bd88b;return getConsoleNextUrl(_0x30c909[_0x1dd337(0x181)],_0x1dd337(0x167)+_0x3da815[_0x1dd337(0x15c)]+_0x1dd337(0x17b)+_0x4a33be+'/j/da');},_0x46e869=_0x30c909[_0x2bd88b(0x17d)]==='json'||_0x30c909[_0x2bd88b(0x17d)]===_0x2bd88b(0x16c);if(_0x46e869){const _0xb67f84=[..._0x3d55e1[_0x2bd88b(0x172)](_0x3e423f=>({..._0x3e423f,'type':_0x2bd88b(0x180)})),..._0x558fd8[_0x2bd88b(0x172)](_0x471378=>({..._0x471378,'type':'segment','url':_0x67e44a(_0x471378['id'])})),..._0x502a2d[_0x2bd88b(0x172)](_0x5a807a=>({..._0x5a807a,'name':_0x5a807a[_0x2bd88b(0x17f)],'type':_0x2bd88b(0x17a),'url':_0x368ce0(_0x5a807a['id'])}))][_0x2bd88b(0x159)]((_0x234c07,_0x112f56)=>_0x234c07[_0x2bd88b(0x15a)]['localeCompare'](_0x112f56['name']));await handleSDKOutput(_0xb67f84,_0x30c909);}else{if(_0x2e7481===0x0)console[_0x2bd88b(0x19e)](a35_0x362103[_0x2bd88b(0x165)]('['+_0x3ad3e5+']')),console[_0x2bd88b(0x19e)](_0x2bd88b(0x16f));else{console[_0x2bd88b(0x19e)](a35_0x362103[_0x2bd88b(0x165)]('['+_0x3ad3e5+']'));const _0x4d432d=formatFlatList(_0x3d55e1,_0x558fd8,{'showMetadata':!![],'getSegmentUrl':_0x67e44a,'getJourneyUrl':_0x368ce0},_0x502a2d);console[_0x2bd88b(0x19e)](_0x4d432d);}}return 0x0;}async[a35_0x1fb15e(0x182)](_0x3a61f7,_0x384873){const _0x51b8c=a35_0x1fb15e,{options:_0x2a2d05,tdx:_0xfb762}=_0x3a61f7,_0x698bb6=await withSpinner('Resolving\x20path\x20\x27'+_0x384873+_0x51b8c(0x179),()=>_0xfb762[_0x51b8c(0x158)][_0x51b8c(0x173)](_0x384873),{'verbose':_0x2a2d05[_0x51b8c(0x163)]}),_0x10d506=_0x698bb6['data'];_0x2a2d05[_0x51b8c(0x163)]&&(console[_0x51b8c(0x166)]('Parent\x20ID:\x20'+_0x10d506[_0x51b8c(0x15c)]),_0x10d506[_0x51b8c(0x171)]&&console[_0x51b8c(0x166)](_0x51b8c(0x156)+_0x10d506[_0x51b8c(0x171)]));const _0x306442=_0x2a2d05[_0x51b8c(0x164)]||0xa,_0x36fb3e=await withSpinner(_0x51b8c(0x18e),()=>_0xfb762[_0x51b8c(0x158)][_0x51b8c(0x182)](_0x10d506[_0x51b8c(0x15c)],_0x10d506[_0x51b8c(0x171)],0x0,_0x306442),{'verbose':_0x2a2d05[_0x51b8c(0x163)]}),_0x3a39a9=_0x36fb3e['data'],_0x518fe8=_0x3d5952=>{const _0x59c68f=_0x51b8c;let _0x592f82=0x0,_0x4b67a7=0x0,_0x2f4b5e=0x0;for(const _0x597fee of _0x3d5952){if(_0x597fee[_0x59c68f(0x18a)]===_0x59c68f(0x180))_0x592f82++;else{if(_0x597fee[_0x59c68f(0x18a)]==='segment')_0x4b67a7++;else{if(_0x597fee[_0x59c68f(0x18a)]===_0x59c68f(0x17a))_0x2f4b5e++;}}if(_0x597fee[_0x59c68f(0x174)]){const _0xd10d30=_0x518fe8(_0x597fee[_0x59c68f(0x174)]);_0x592f82+=_0xd10d30[_0x59c68f(0x188)],_0x4b67a7+=_0xd10d30[_0x59c68f(0x177)],_0x2f4b5e+=_0xd10d30[_0x59c68f(0x193)];}}return{'folders':_0x592f82,'segments':_0x4b67a7,'journeys':_0x2f4b5e};},_0x2317b7=_0x518fe8(_0x3a39a9);console[_0x51b8c(0x166)]('✔\x20Built\x20tree\x20with\x20'+_0x2317b7[_0x51b8c(0x188)]+_0x51b8c(0x199)+(_0x2317b7[_0x51b8c(0x188)]!==0x1?'s':'')+',\x20'+_0x2317b7['segments']+'\x20segment'+(_0x2317b7[_0x51b8c(0x177)]!==0x1?'s':'')+_0x51b8c(0x184)+_0x2317b7[_0x51b8c(0x193)]+'\x20journey'+(_0x2317b7[_0x51b8c(0x193)]!==0x1?'s':''));const _0x5c5dc4=_0x2cbfcd=>{const _0x4243d2=_0x51b8c;return getConsoleNextUrl(_0x2a2d05['site'],_0x4243d2(0x167)+_0x10d506[_0x4243d2(0x15c)]+_0x4243d2(0x17b)+_0x2cbfcd);},_0x25a216=_0x51a6be=>{const _0x52ed7a=_0x51b8c;return getConsoleNextUrl(_0x2a2d05[_0x52ed7a(0x181)],_0x52ed7a(0x167)+_0x10d506['parentId']+_0x52ed7a(0x17b)+_0x51a6be+'/j/da');};if(_0x2a2d05[_0x51b8c(0x17d)]===_0x51b8c(0x195)||_0x2a2d05['format']===_0x51b8c(0x16c))await handleSDKOutput(_0x3a39a9,_0x2a2d05);else{console[_0x51b8c(0x19e)](a35_0x362103[_0x51b8c(0x165)]('['+_0x384873+']'));const _0x5b1865=formatTree(_0x3a39a9,{'showMetadata':!![],'getSegmentUrl':_0x5c5dc4,'getJourneyUrl':_0x25a216});console[_0x51b8c(0x19e)](_0x5b1865);}return 0x0;}}
@@ -1 +1 @@
1
- function a36_0x5e78(_0xe7e90f,_0x517c60){_0xe7e90f=_0xe7e90f-0x74;const _0x42f4d6=a36_0x42f4();let _0x5e78d7=_0x42f4d6[_0xe7e90f];return _0x5e78d7;}function a36_0x42f4(){const _0x6d1e93=['error','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','3040328XZTWAE','28827530PoYXTQ','1564438KjMNiw','showTable','162455rZfdZn','Table:\x20','\x20\x20Cause:\x20','252VgaZpc','24EHedZf','database','Catalog:\x20','\x20from\x20','site','table','5670423HYPNyF','11peAFoC','verbose','name','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','limit','✔\x20Retrieved\x20','1111803fbQpkl','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>','show','2xXiRSM','message','execute','data','3563580OZCaGp','Querying\x20','\x20row','...','Usage:\x20tdx\x20show\x20<database.table>','validate','length','Limit:\x20','args','description','Error:\x20','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'];a36_0x42f4=function(){return _0x6d1e93;};return a36_0x42f4();}const a36_0x26d440=a36_0x5e78;(function(_0x56d424,_0x46949e){const _0x464e6d=a36_0x5e78,_0x8d7932=_0x56d424();while(!![]){try{const _0x18e56d=-parseInt(_0x464e6d(0x87))/0x1*(-parseInt(_0x464e6d(0x9d))/0x2)+parseInt(_0x464e6d(0x77))/0x3+parseInt(_0x464e6d(0x85))/0x4+parseInt(_0x464e6d(0x89))/0x5*(parseInt(_0x464e6d(0x8c))/0x6)+parseInt(_0x464e6d(0x9a))/0x7*(-parseInt(_0x464e6d(0x8d))/0x8)+-parseInt(_0x464e6d(0x93))/0x9+-parseInt(_0x464e6d(0x86))/0xa*(parseInt(_0x464e6d(0x94))/0xb);if(_0x18e56d===_0x46949e)break;else _0x8d7932['push'](_0x8d7932['shift']());}catch(_0x10ed7d){_0x8d7932['push'](_0x8d7932['shift']());}}}(a36_0x42f4,0xd8ba3));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';export class ShowCommand extends BaseCommand{[a36_0x26d440(0x96)]=a36_0x26d440(0x9c);[a36_0x26d440(0x80)]='Show\x20table\x20contents';async[a36_0x26d440(0x75)](_0x7b3eda){const _0x2f78c1=a36_0x26d440;return this[_0x2f78c1(0x88)](_0x7b3eda);}async[a36_0x26d440(0x88)](_0x41bfcf){const _0x3190e3=a36_0x26d440,{options:_0x5bd916,args:_0x499ada,tdx:_0x584af5}=_0x41bfcf;let _0x2a6983;try{_0x2a6983=parseTableReference(_0x499ada[0x0]);const _0x45a502=_0x5bd916[_0x3190e3(0x8e)];!_0x2a6983[_0x3190e3(0x8e)]&&_0x45a502&&(_0x2a6983[_0x3190e3(0x8e)]=_0x45a502);const _0x409a9b=validateTableDescribeReference(_0x2a6983);if(_0x409a9b)return console[_0x3190e3(0x83)]('Error:\x20'+_0x409a9b),console[_0x3190e3(0x83)](_0x3190e3(0x7b)),console[_0x3190e3(0x83)](_0x3190e3(0x9b)),console[_0x3190e3(0x83)](_0x3190e3(0x97)),0x1;}catch(_0x51adc7){return console['error'](_0x3190e3(0x81)+_0x51adc7[_0x3190e3(0x74)]),console[_0x3190e3(0x83)](_0x3190e3(0x7b)),console[_0x3190e3(0x83)](_0x3190e3(0x9b)),console[_0x3190e3(0x83)](_0x3190e3(0x97)),0x1;}const _0x6db306=_0x2a6983['catalog'],_0xd3ba69=_0x2a6983[_0x3190e3(0x8e)],_0x3696a9=_0x2a6983[_0x3190e3(0x92)],_0x117eb4=resolveLimit(_0x5bd916[_0x3190e3(0x98)],DEFAULT_DISPLAY_LIMIT);try{_0x5bd916['verbose']&&(console['error']('Site:\x20'+_0x5bd916[_0x3190e3(0x91)]),_0x6db306&&console['error'](_0x3190e3(0x8f)+_0x6db306),console[_0x3190e3(0x83)]('Database:\x20'+_0xd3ba69),console[_0x3190e3(0x83)](_0x3190e3(0x8a)+_0x3696a9),console[_0x3190e3(0x83)](_0x3190e3(0x7e)+_0x117eb4));const _0x227b84=_0x6db306?_0x6db306+'.'+_0xd3ba69+'.'+_0x3696a9:_0xd3ba69+'.'+_0x3696a9,_0x18fe45=await withSpinner(_0x3190e3(0x78)+_0x227b84+_0x3190e3(0x7a),()=>_0x584af5['query'][_0x3190e3(0x88)](_0xd3ba69,_0x3696a9,_0x117eb4,_0x6db306),{'verbose':_0x5bd916[_0x3190e3(0x95)]}),_0x4f184c=_0x18fe45[_0x3190e3(0x76)],_0x145ed0=_0x4f184c[_0x3190e3(0x76)];return _0x145ed0['length']===0x0?console[_0x3190e3(0x83)]('✔\x20Query\x20successful\x20-\x200\x20rows\x20returned'):console[_0x3190e3(0x83)](_0x3190e3(0x99)+_0x145ed0[_0x3190e3(0x7d)]+_0x3190e3(0x79)+(_0x145ed0['length']!==0x1?'s':'')+_0x3190e3(0x90)+_0x227b84),await handleSDKOutput(_0x145ed0,_0x5bd916),0x0;}catch(_0x145023){if(_0x145023 instanceof SDKError)return console[_0x3190e3(0x83)](_0x3190e3(0x81)+_0x145023[_0x3190e3(0x74)]),_0x145023['cause']&&console[_0x3190e3(0x83)](_0x3190e3(0x8b)+_0x145023['cause']),0x1;throw _0x145023;}}[a36_0x26d440(0x7c)](_0x532487){const _0x2fd614=a36_0x26d440;if(_0x532487[_0x2fd614(0x7f)][_0x2fd614(0x7d)]===0x0)return _0x2fd614(0x84);if(_0x532487[_0x2fd614(0x7f)][_0x2fd614(0x7d)]>0x1)return _0x2fd614(0x82);return undefined;}}
1
+ const a36_0x173e67=a36_0x5eab;(function(_0x465f08,_0x571f58){const _0x634085=a36_0x5eab,_0x22e16b=_0x465f08();while(!![]){try{const _0x2596e7=-parseInt(_0x634085(0xca))/0x1+parseInt(_0x634085(0xbb))/0x2*(parseInt(_0x634085(0xb6))/0x3)+parseInt(_0x634085(0xc8))/0x4*(-parseInt(_0x634085(0xc4))/0x5)+parseInt(_0x634085(0xc9))/0x6+-parseInt(_0x634085(0xcb))/0x7*(parseInt(_0x634085(0xb9))/0x8)+parseInt(_0x634085(0xcf))/0x9*(-parseInt(_0x634085(0xbf))/0xa)+parseInt(_0x634085(0xb0))/0xb*(parseInt(_0x634085(0xb3))/0xc);if(_0x2596e7===_0x571f58)break;else _0x22e16b['push'](_0x22e16b['shift']());}catch(_0x302008){_0x22e16b['push'](_0x22e16b['shift']());}}}(a36_0x257c,0x49572));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';function a36_0x257c(){const _0x291ff7=['length','data','validate','2448370HIXdKU','error','\x20\x20Cause:\x20','name','Limit:\x20','5UzpRML','Table:\x20','show','Database:\x20','1035448uYXYVD','1786962VjwLhT','2834qgsIVh','1790929VaTiTx','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','cause','site','18cMKvNN','description','Site:\x20','execute','Querying\x20','Usage:\x20tdx\x20show\x20<database.table>','Catalog:\x20','✔\x20Query\x20successful\x20-\x200\x20rows\x20returned','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','Error:\x20','query','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>','✔\x20Retrieved\x20','showTable','55BGsSxJ','limit','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','1638348GbHIQm','catalog','args','3mMsiEu','Show\x20table\x20contents','database','16bMyUac','message','1165988epZjNr'];a36_0x257c=function(){return _0x291ff7;};return a36_0x257c();}import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';function a36_0x5eab(_0x443361,_0x34774b){_0x443361=_0x443361-0xae;const _0x257cca=a36_0x257c();let _0x5eab3=_0x257cca[_0x443361];return _0x5eab3;}export class ShowCommand extends BaseCommand{[a36_0x173e67(0xc2)]=a36_0x173e67(0xc6);[a36_0x173e67(0xd0)]=a36_0x173e67(0xb7);async[a36_0x173e67(0xd2)](_0x176ea1){return this['showTable'](_0x176ea1);}async[a36_0x173e67(0xaf)](_0x3b6863){const _0x240a58=a36_0x173e67,{options:_0x4627eb,args:_0x16ebef,tdx:_0x27c1cb}=_0x3b6863;let _0x4f118e;try{_0x4f118e=parseTableReference(_0x16ebef[0x0]);const _0x23ecd0=_0x4627eb[_0x240a58(0xb8)];!_0x4f118e[_0x240a58(0xb8)]&&_0x23ecd0&&(_0x4f118e['database']=_0x23ecd0);const _0x54829f=validateTableDescribeReference(_0x4f118e);if(_0x54829f)return console[_0x240a58(0xc0)](_0x240a58(0xd8)+_0x54829f),console[_0x240a58(0xc0)]('Usage:\x20tdx\x20show\x20<database.table>'),console[_0x240a58(0xc0)](_0x240a58(0xda)),console[_0x240a58(0xc0)](_0x240a58(0xcc)),0x1;}catch(_0x4840b6){return console['error'](_0x240a58(0xd8)+_0x4840b6[_0x240a58(0xba)]),console[_0x240a58(0xc0)](_0x240a58(0xd4)),console[_0x240a58(0xc0)](_0x240a58(0xda)),console[_0x240a58(0xc0)]('\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>'),0x1;}const _0x45f1a8=_0x4f118e[_0x240a58(0xb4)],_0x14b1de=_0x4f118e[_0x240a58(0xb8)],_0x4d0ba1=_0x4f118e['table'],_0x4453d3=resolveLimit(_0x4627eb[_0x240a58(0xb1)],DEFAULT_DISPLAY_LIMIT);try{_0x4627eb['verbose']&&(console[_0x240a58(0xc0)](_0x240a58(0xd1)+_0x4627eb[_0x240a58(0xce)]),_0x45f1a8&&console[_0x240a58(0xc0)](_0x240a58(0xd5)+_0x45f1a8),console['error'](_0x240a58(0xc7)+_0x14b1de),console[_0x240a58(0xc0)](_0x240a58(0xc5)+_0x4d0ba1),console[_0x240a58(0xc0)](_0x240a58(0xc3)+_0x4453d3));const _0x3ef642=_0x45f1a8?_0x45f1a8+'.'+_0x14b1de+'.'+_0x4d0ba1:_0x14b1de+'.'+_0x4d0ba1,_0x25c1d1=await withSpinner(_0x240a58(0xd3)+_0x3ef642+'...',()=>_0x27c1cb[_0x240a58(0xd9)]['showTable'](_0x14b1de,_0x4d0ba1,_0x4453d3,_0x45f1a8),{'verbose':_0x4627eb['verbose']}),_0x1b8f33=_0x25c1d1['data'],_0x736673=_0x1b8f33[_0x240a58(0xbd)];return _0x736673[_0x240a58(0xbc)]===0x0?console[_0x240a58(0xc0)](_0x240a58(0xd6)):console[_0x240a58(0xc0)](_0x240a58(0xae)+_0x736673[_0x240a58(0xbc)]+'\x20row'+(_0x736673[_0x240a58(0xbc)]!==0x1?'s':'')+'\x20from\x20'+_0x3ef642),await handleSDKOutput(_0x736673,_0x4627eb),0x0;}catch(_0x2ad58b){if(_0x2ad58b instanceof SDKError)return console[_0x240a58(0xc0)]('Error:\x20'+_0x2ad58b['message']),_0x2ad58b[_0x240a58(0xcd)]&&console[_0x240a58(0xc0)](_0x240a58(0xc1)+_0x2ad58b[_0x240a58(0xcd)]),0x1;throw _0x2ad58b;}}[a36_0x173e67(0xbe)](_0x480a7c){const _0x601f29=a36_0x173e67;if(_0x480a7c['args']['length']===0x0)return _0x601f29(0xb2);if(_0x480a7c[_0x601f29(0xb5)]['length']>0x1)return _0x601f29(0xd7);return undefined;}}
@@ -1 +1 @@
1
- const a37_0x2a8fb2=a37_0x5e1e;(function(_0x58f08a,_0x3a0450){const _0x5e3f0e=a37_0x5e1e,_0x53ed52=_0x58f08a();while(!![]){try{const _0x639937=parseInt(_0x5e3f0e(0xc6))/0x1*(parseInt(_0x5e3f0e(0xba))/0x2)+parseInt(_0x5e3f0e(0xaa))/0x3+parseInt(_0x5e3f0e(0xbc))/0x4+parseInt(_0x5e3f0e(0xa9))/0x5+parseInt(_0x5e3f0e(0xc1))/0x6*(-parseInt(_0x5e3f0e(0xb5))/0x7)+-parseInt(_0x5e3f0e(0xb4))/0x8+-parseInt(_0x5e3f0e(0xcc))/0x9*(parseInt(_0x5e3f0e(0xac))/0xa);if(_0x639937===_0x3a0450)break;else _0x53ed52['push'](_0x53ed52['shift']());}catch(_0x4dc550){_0x53ed52['push'](_0x53ed52['shift']());}}}(a37_0x4f20,0x5f961));import{BaseCommand,printAuthError}from'./command.js';function a37_0x5e1e(_0x2d9bdd,_0x2e9fb4){_0x2d9bdd=_0x2d9bdd-0xa1;const _0x4f20ca=a37_0x4f20();let _0x5e1e44=_0x4f20ca[_0x2d9bdd];return _0x5e1e44;}import{resolveAPIKeyAsync}from'../core/config.js';function a37_0x4f20(){const _0x2ebeb9=['Name:','85832secvII','TDX_PROFILE\x20env','No\x20credential\x20found','email','✗\x20Validation\x20failed:\x20','(from\x20','423fTvVgv','config','Account\x20ID:','site:\x20','CLI\x20flag','message','displayWithSources','name','filter','site','session','profileSource','3137300qoAOyc','1800666pDFpaf','✓\x20Authentication\x20successful\x0a','42260qHTnwj','account_id','\x20profile:\x20','bold','red','description','profile','status','5156632EZZpzL','21ZOfgQZ','log','dim','User:','jobs','8IiuHXa','tdx','510096UBycPr','execute','last_name','green','cyan','927624trHGxF','yellow','cli','error'];a37_0x4f20=function(){return _0x2ebeb9;};return a37_0x4f20();}import{HTTPClientError}from'../sdk/client/http-client.js';import{GlobalContext}from'../core/global-context.js';import a37_0x5600c4 from'chalk';export class StatusCommand extends BaseCommand{[a37_0x2a8fb2(0xa4)]=a37_0x2a8fb2(0xb3);[a37_0x2a8fb2(0xb1)]='Show\x20authentication\x20status\x20and\x20current\x20context';async[a37_0x2a8fb2(0xbd)](_0x37074d){const _0x18d88a=a37_0x2a8fb2,{options:_0x38e117,tdx:_0x513573}=_0x37074d,_0x13ee88=_0x38e117[_0x18d88a(0xa6)],_0x3d6daf=new GlobalContext(_0x38e117),_0x462ba3=_0x3d6daf[_0x18d88a(0xb2)],_0x37ca03=_0x3d6daf[_0x18d88a(0xa8)],_0xc88239=_0x37ca03===_0x18d88a(0xc3)?_0x18d88a(0xa1):_0x37ca03===_0x18d88a(0xa7)?_0x18d88a(0xa7):_0x37ca03==='env'?_0x18d88a(0xc7):_0x37ca03==='config'?_0x18d88a(0xcd):null,_0x22dbc8=_0x462ba3?a37_0x5600c4['cyan'](_0x462ba3):a37_0x5600c4[_0x18d88a(0xb7)]('N/A'),_0x40d490=_0xc88239?'\x20'+a37_0x5600c4[_0x18d88a(0xb7)](_0x18d88a(0xcb)+_0xc88239+')'):'';console[_0x18d88a(0xb6)](a37_0x5600c4['bold'](_0x18d88a(0xbb))+_0x18d88a(0xae)+_0x22dbc8+_0x40d490+'\x20'+a37_0x5600c4[_0x18d88a(0xb7)]('(')+_0x18d88a(0xcf)+a37_0x5600c4['cyan'](_0x13ee88)+a37_0x5600c4[_0x18d88a(0xb7)](')'));const _0x99572e=await resolveAPIKeyAsync(_0x13ee88,_0x462ba3);if(_0x99572e){const {source:_0x2021ef,isDeprecated:_0x1e5fad}=_0x99572e,_0x4d107f='Read\x20credential\x20from\x20'+a37_0x5600c4[_0x18d88a(0xc0)](_0x2021ef);console[_0x18d88a(0xb6)](_0x1e5fad?a37_0x5600c4[_0x18d88a(0xc2)](_0x4d107f):_0x4d107f);}else console[_0x18d88a(0xb6)](a37_0x5600c4['yellow'](_0x18d88a(0xc8)));let _0x269624=![];try{const _0x2676de=await _0x513573[_0x18d88a(0xb9)]['getUserInfo']();console[_0x18d88a(0xb6)](a37_0x5600c4[_0x18d88a(0xbf)](_0x18d88a(0xab))),console[_0x18d88a(0xb6)](a37_0x5600c4[_0x18d88a(0xaf)](_0x18d88a(0xb8))+'\x20'+a37_0x5600c4[_0x18d88a(0xc0)](_0x2676de[_0x18d88a(0xc9)]));if(_0x2676de['first_name']||_0x2676de[_0x18d88a(0xbe)]){const _0x491bbe=[_0x2676de['first_name'],_0x2676de['last_name']][_0x18d88a(0xa5)](Boolean)['join']('\x20');console['log'](a37_0x5600c4[_0x18d88a(0xaf)](_0x18d88a(0xc5))+'\x20'+_0x491bbe);}_0x2676de['account_id']&&console['log'](a37_0x5600c4[_0x18d88a(0xaf)](_0x18d88a(0xce))+'\x20'+a37_0x5600c4[_0x18d88a(0xc2)](_0x2676de[_0x18d88a(0xad)])),_0x269624=!![];}catch(_0x5a00c3){_0x5a00c3 instanceof HTTPClientError&&_0x5a00c3[_0x18d88a(0xb3)]===0x191?printAuthError(_0x5a00c3,!![],_0x462ba3):console[_0x18d88a(0xc4)](a37_0x5600c4[_0x18d88a(0xb0)](_0x18d88a(0xca)+(_0x5a00c3 instanceof Error?_0x5a00c3[_0x18d88a(0xa2)]:String(_0x5a00c3))));}return console[_0x18d88a(0xb6)](),_0x3d6daf[_0x18d88a(0xa3)](),_0x269624?0x0:0x1;}}
1
+ const a37_0x490596=a37_0x442a;(function(_0x37ac9f,_0x36d12c){const _0x54fba1=a37_0x442a,_0x2b99f7=_0x37ac9f();while(!![]){try{const _0x330daa=parseInt(_0x54fba1(0x138))/0x1*(-parseInt(_0x54fba1(0x12d))/0x2)+-parseInt(_0x54fba1(0x13d))/0x3+parseInt(_0x54fba1(0x13e))/0x4*(parseInt(_0x54fba1(0x120))/0x5)+parseInt(_0x54fba1(0x12b))/0x6*(-parseInt(_0x54fba1(0x146))/0x7)+parseInt(_0x54fba1(0x13f))/0x8+parseInt(_0x54fba1(0x130))/0x9+parseInt(_0x54fba1(0x139))/0xa;if(_0x330daa===_0x36d12c)break;else _0x2b99f7['push'](_0x2b99f7['shift']());}catch(_0x31e1b8){_0x2b99f7['push'](_0x2b99f7['shift']());}}}(a37_0x568a,0xf2e3d));function a37_0x442a(_0x49c2cd,_0x356482){_0x49c2cd=_0x49c2cd-0x11b;const _0x568a93=a37_0x568a();let _0x442a35=_0x568a93[_0x49c2cd];return _0x442a35;}import{BaseCommand,printAuthError}from'./command.js';import{resolveAPIKeyAsync}from'../core/config.js';import{HTTPClientError}from'../sdk/client/http-client.js';import{GlobalContext}from'../core/global-context.js';function a37_0x568a(){const _0x12334b=['1cdFfqd','10547540ClPnAP','profile','config','last_name','2293368idvCNl','1432rfvwnc','14957392FTlwiM','cyan','site','execute','displayWithSources','TDX_PROFILE\x20env','CLI\x20flag','21GvPuXt','error','yellow','No\x20credential\x20found','jobs','\x20profile:\x20','N/A','join','7970LyTMHS','green','(from\x20','name','tdx','dim','session','filter','first_name','Account\x20ID:','log','2731236jnsfCc','bold','3704146EIIbcX','Read\x20credential\x20from\x20','✗\x20Validation\x20failed:\x20','13337496zuYAYD','description','status','cli','profileSource','message','account_id','email'];a37_0x568a=function(){return _0x12334b;};return a37_0x568a();}import a37_0x1209d7 from'chalk';export class StatusCommand extends BaseCommand{[a37_0x490596(0x123)]=a37_0x490596(0x132);[a37_0x490596(0x131)]='Show\x20authentication\x20status\x20and\x20current\x20context';async[a37_0x490596(0x142)](_0x16324d){const _0x429d55=a37_0x490596,{options:_0x59f926,tdx:_0x48c4b7}=_0x16324d,_0x85e68f=_0x59f926[_0x429d55(0x141)],_0x1530bb=new GlobalContext(_0x59f926),_0x3cc422=_0x1530bb[_0x429d55(0x13a)],_0x4263ac=_0x1530bb[_0x429d55(0x134)],_0x3065d6=_0x4263ac===_0x429d55(0x133)?_0x429d55(0x145):_0x4263ac===_0x429d55(0x126)?_0x429d55(0x126):_0x4263ac==='env'?_0x429d55(0x144):_0x4263ac==='config'?_0x429d55(0x13b):null,_0x141de5=_0x3cc422?a37_0x1209d7[_0x429d55(0x140)](_0x3cc422):a37_0x1209d7[_0x429d55(0x125)](_0x429d55(0x11e)),_0x32a3d0=_0x3065d6?'\x20'+a37_0x1209d7[_0x429d55(0x125)](_0x429d55(0x122)+_0x3065d6+')'):'';console['log'](a37_0x1209d7[_0x429d55(0x12c)](_0x429d55(0x124))+_0x429d55(0x11d)+_0x141de5+_0x32a3d0+'\x20'+a37_0x1209d7['dim']('(')+'site:\x20'+a37_0x1209d7[_0x429d55(0x140)](_0x85e68f)+a37_0x1209d7[_0x429d55(0x125)](')'));const _0x4da59b=await resolveAPIKeyAsync(_0x85e68f,_0x3cc422);if(_0x4da59b){const {source:_0x41bb37,isDeprecated:_0x5083fe}=_0x4da59b,_0x38298b=_0x429d55(0x12e)+a37_0x1209d7[_0x429d55(0x140)](_0x41bb37);console['log'](_0x5083fe?a37_0x1209d7['yellow'](_0x38298b):_0x38298b);}else console[_0x429d55(0x12a)](a37_0x1209d7[_0x429d55(0x148)](_0x429d55(0x11b)));let _0x3130e2=![];try{const _0x4c91da=await _0x48c4b7[_0x429d55(0x11c)]['getUserInfo']();console[_0x429d55(0x12a)](a37_0x1209d7[_0x429d55(0x121)]('✓\x20Authentication\x20successful\x0a')),console[_0x429d55(0x12a)](a37_0x1209d7['bold']('User:')+'\x20'+a37_0x1209d7[_0x429d55(0x140)](_0x4c91da[_0x429d55(0x137)]));if(_0x4c91da[_0x429d55(0x128)]||_0x4c91da[_0x429d55(0x13c)]){const _0x2a0a33=[_0x4c91da[_0x429d55(0x128)],_0x4c91da[_0x429d55(0x13c)]][_0x429d55(0x127)](Boolean)[_0x429d55(0x11f)]('\x20');console[_0x429d55(0x12a)](a37_0x1209d7['bold']('Name:')+'\x20'+_0x2a0a33);}_0x4c91da['account_id']&&console[_0x429d55(0x12a)](a37_0x1209d7[_0x429d55(0x12c)](_0x429d55(0x129))+'\x20'+a37_0x1209d7[_0x429d55(0x148)](_0x4c91da[_0x429d55(0x136)])),_0x3130e2=!![];}catch(_0x4bce77){_0x4bce77 instanceof HTTPClientError&&_0x4bce77['status']===0x191?printAuthError(_0x4bce77,!![],_0x3cc422):console[_0x429d55(0x147)](a37_0x1209d7['red'](_0x429d55(0x12f)+(_0x4bce77 instanceof Error?_0x4bce77[_0x429d55(0x135)]:String(_0x4bce77))));}return console[_0x429d55(0x12a)](),_0x1530bb[_0x429d55(0x143)](),_0x3130e2?0x0:0x1;}}
@@ -1 +1 @@
1
- const a38_0x5200ee=a38_0x5b7b;(function(_0x2b738e,_0x306293){const _0x978f1c=a38_0x5b7b,_0x298e4a=_0x2b738e();while(!![]){try{const _0x3d0f49=-parseInt(_0x978f1c(0x141))/0x1+parseInt(_0x978f1c(0x143))/0x2+parseInt(_0x978f1c(0x168))/0x3*(-parseInt(_0x978f1c(0x145))/0x4)+parseInt(_0x978f1c(0x15d))/0x5+parseInt(_0x978f1c(0x147))/0x6+parseInt(_0x978f1c(0x157))/0x7*(-parseInt(_0x978f1c(0x167))/0x8)+parseInt(_0x978f1c(0x14e))/0x9;if(_0x3d0f49===_0x306293)break;else _0x298e4a['push'](_0x298e4a['shift']());}catch(_0x4b9e33){_0x298e4a['push'](_0x298e4a['shift']());}}}(a38_0x48e6,0xad217));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';function a38_0x48e6(){const _0x241f62=['error','Table\x20pattern:\x20','Database\x20\x27','includes','\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','length','Database:\x20','limit','3149528kvGTlu','1218276rQKJgH','database','data','Note:\x20\x27','table','✖\x20No\x20tables\x20found','verbose','1250364JObPYl','\x20\x20tdx\x20tables\x20--in\x20mydb\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','2006794qDDJMU','\x27\x20across\x20all\x20databases.','4TAkiXW','name','2553228FUzNvF','cause','execute','site','\x20table','Error:\x20','Site:\x20','6505047KSBEDJ','\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases','\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb','message','validate','tables','Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:','\x20\x20Cause:\x20','Or\x20use\x20--in\x20flag:','14wCjqAg','\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20','\x20\x20tdx\x20tables\x20\x22*.user*\x22\x20\x20\x20\x20\x20\x20\x20->\x20tables\x20matching\x20user*\x20across\x20databases','.*\x22','List\x20tables\x20in\x20a\x20database','\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables','5006315bIOmoO','Database:\x20all'];a38_0x48e6=function(){return _0x241f62;};return a38_0x48e6();}import{parseTableReference}from'../utils/table-ref-parser.js';function a38_0x5b7b(_0x53ab33,_0x25a763){_0x53ab33=_0x53ab33-0x140;const _0x48e6f3=a38_0x48e6();let _0x5b7be8=_0x48e6f3[_0x53ab33];return _0x5b7be8;}import{DEFAULT_LISTING_LIMIT,resolveLimit}from'../core/constants.js';import{withSpinner}from'../utils/spinner.js';export class TablesCommand extends BaseCommand{[a38_0x5200ee(0x146)]=a38_0x5200ee(0x153);['description']=a38_0x5200ee(0x15b);async[a38_0x5200ee(0x149)](_0x42ba12){const _0x4fa603=a38_0x5200ee,{options:_0x5bb9b9,args:_0x128a42,tdx:_0x12d466}=_0x42ba12;let _0x405763;if(_0x128a42[_0x4fa603(0x164)]===0x0)_0x405763={'database':undefined,'table':undefined,'original':''};else{if(_0x128a42[_0x4fa603(0x164)]===0x1)try{_0x405763=parseTableReference(_0x128a42[0x0]);if(_0x405763[_0x4fa603(0x16c)]&&!_0x405763[_0x4fa603(0x169)]&&!_0x405763[_0x4fa603(0x16c)][_0x4fa603(0x162)]('*')&&!_0x405763['table'][_0x4fa603(0x162)]('?'))return console['error']('Error:\x20Pattern\x20\x27'+_0x128a42[0x0]+'\x27\x20is\x20ambiguous.'),console[_0x4fa603(0x15f)]('Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27'+_0x405763[_0x4fa603(0x16c)]+'\x27?'),console[_0x4fa603(0x15f)]('\x20\x20Use:\x20tdx\x20tables\x20\x22'+_0x405763[_0x4fa603(0x16c)]+_0x4fa603(0x15a)),console[_0x4fa603(0x15f)]('\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20'+_0x405763[_0x4fa603(0x16c)]),console['error'](_0x4fa603(0x158)+_0x405763[_0x4fa603(0x16c)]),console[_0x4fa603(0x15f)](''),console['error'](_0x4fa603(0x16b)+_0x128a42[0x0]+'\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27'+_0x405763[_0x4fa603(0x16c)]+_0x4fa603(0x144)),0x1;}catch(_0x12ef8d){return console['error'](_0x4fa603(0x14c)+_0x12ef8d[_0x4fa603(0x151)]),0x1;}else return console[_0x4fa603(0x15f)](_0x4fa603(0x154)),console[_0x4fa603(0x15f)](_0x4fa603(0x14f)),console[_0x4fa603(0x15f)](_0x4fa603(0x163)),console['error'](_0x4fa603(0x150)),console['error'](_0x4fa603(0x159)),console[_0x4fa603(0x15f)](_0x4fa603(0x156)),console[_0x4fa603(0x15f)](_0x4fa603(0x142)),0x1;}const _0x151fa6=_0x5bb9b9['database'];!_0x405763[_0x4fa603(0x169)]&&_0x151fa6&&(_0x405763['database']=_0x151fa6);try{const _0x2639f6=_0x5840c4=>_0x5840c4&&(_0x5840c4[_0x4fa603(0x162)]('*')||_0x5840c4[_0x4fa603(0x162)]('?')),_0x2898b8=_0x2639f6(_0x405763[_0x4fa603(0x169)]);_0x5bb9b9[_0x4fa603(0x140)]&&(console[_0x4fa603(0x15f)](_0x4fa603(0x14d)+_0x5bb9b9[_0x4fa603(0x14a)]),_0x405763['database']?_0x2898b8?console[_0x4fa603(0x15f)]('Database\x20pattern:\x20'+_0x405763['database']):console[_0x4fa603(0x15f)](_0x4fa603(0x165)+_0x405763['database']):console['error'](_0x4fa603(0x15e)),_0x405763['table']&&console[_0x4fa603(0x15f)](_0x4fa603(0x160)+_0x405763[_0x4fa603(0x16c)]));const _0x422457=_0x405763['database']&&!_0x2898b8?_0x405763[_0x4fa603(0x169)]:undefined,_0xb406c5=_0x2898b8?_0x405763[_0x4fa603(0x169)]:undefined,_0x15b129=_0x405763['table'],_0x596a5b=resolveLimit(_0x5bb9b9[_0x4fa603(0x166)],DEFAULT_LISTING_LIMIT),_0x186bc6=await withSpinner('Listing\x20tables...',()=>_0x12d466['query']['listTables'](_0x422457,_0x15b129,_0xb406c5,_0x596a5b),{'verbose':_0x5bb9b9['verbose']}),_0x230cf=_0x186bc6[_0x4fa603(0x16a)];if(_0x230cf[_0x4fa603(0x164)]===0x0&&_0x405763[_0x4fa603(0x169)]&&!_0x2898b8)return console[_0x4fa603(0x15f)](_0x4fa603(0x16d)),console[_0x4fa603(0x15f)](_0x4fa603(0x161)+_0x405763[_0x4fa603(0x169)]+_0x4fa603(0x15c)),0x1;return console['error']('✔\x20Found\x20'+_0x230cf[_0x4fa603(0x164)]+_0x4fa603(0x14b)+(_0x230cf['length']!==0x1?'s':'')),await handleSDKOutput(_0x230cf,{..._0x5bb9b9,'limit':_0x596a5b}),0x0;}catch(_0x5e871){if(_0x5e871 instanceof SDKError)return console[_0x4fa603(0x15f)](_0x4fa603(0x14c)+_0x5e871[_0x4fa603(0x151)]),_0x5e871[_0x4fa603(0x148)]&&console[_0x4fa603(0x15f)](_0x4fa603(0x155)+_0x5e871[_0x4fa603(0x148)]),0x1;throw _0x5e871;}}[a38_0x5200ee(0x152)](_0x3e1aa9){return undefined;}}
1
+ const a38_0x3276cc=a38_0x4d81;function a38_0x4d81(_0x41c490,_0x3425d5){_0x41c490=_0x41c490-0x12b;const _0x4a4766=a38_0x4a47();let _0x4d8148=_0x4a4766[_0x41c490];return _0x4d8148;}function a38_0x4a47(){const _0x219639=['439964aUTdTv','query','listTables','\x20\x20Cause:\x20','cause','site','includes','\x27\x20is\x20ambiguous.','8VNlFeE','805510beobqR','tables','\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20','List\x20tables\x20in\x20a\x20database','Listing\x20tables...','315564iJZUQM','Database\x20\x27','260dukDjV','data','8gqRlGT','length','Database:\x20','\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27','Database\x20pattern:\x20','database','name','864387ivipIx','✖\x20No\x20tables\x20found','execute','Database:\x20all','\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables','message','\x20\x20tdx\x20tables\x20\x22*.user*\x22\x20\x20\x20\x20\x20\x20\x20->\x20tables\x20matching\x20user*\x20across\x20databases','\x20\x20tdx\x20tables\x20--in\x20mydb\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','Error:\x20','8884687cNtjys','limit','\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases','2974188PsZkUE','Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:','table','1781547QlvNVq','verbose','error','Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27'];a38_0x4a47=function(){return _0x219639;};return a38_0x4a47();}(function(_0x10d1c0,_0x10c868){const _0x160f80=a38_0x4d81,_0x290010=_0x10d1c0();while(!![]){try{const _0x4ea88d=parseInt(_0x160f80(0x132))/0x1+-parseInt(_0x160f80(0x151))/0x2+-parseInt(_0x160f80(0x14d))/0x3*(parseInt(_0x160f80(0x136))/0x4)+parseInt(_0x160f80(0x12d))/0x5+parseInt(_0x160f80(0x14a))/0x6+-parseInt(_0x160f80(0x147))/0x7*(parseInt(_0x160f80(0x12c))/0x8)+parseInt(_0x160f80(0x13d))/0x9*(parseInt(_0x160f80(0x134))/0xa);if(_0x4ea88d===_0x10c868)break;else _0x290010['push'](_0x290010['shift']());}catch(_0x3670b0){_0x290010['push'](_0x290010['shift']());}}}(a38_0x4a47,0xc17f1));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{[a38_0x3276cc(0x13c)]=a38_0x3276cc(0x12e);['description']=a38_0x3276cc(0x130);async[a38_0x3276cc(0x13f)](_0x204eb6){const _0x2e1c05=a38_0x3276cc,{options:_0x434837,args:_0x2fc46c,tdx:_0x5eb4d1}=_0x204eb6;let _0x1fa6a1;if(_0x2fc46c[_0x2e1c05(0x137)]===0x0)_0x1fa6a1={'database':undefined,'table':undefined,'original':''};else{if(_0x2fc46c[_0x2e1c05(0x137)]===0x1)try{_0x1fa6a1=parseTableReference(_0x2fc46c[0x0]);if(_0x1fa6a1[_0x2e1c05(0x14c)]&&!_0x1fa6a1[_0x2e1c05(0x13b)]&&!_0x1fa6a1['table'][_0x2e1c05(0x157)]('*')&&!_0x1fa6a1[_0x2e1c05(0x14c)][_0x2e1c05(0x157)]('?'))return console[_0x2e1c05(0x14f)]('Error:\x20Pattern\x20\x27'+_0x2fc46c[0x0]+_0x2e1c05(0x12b)),console['error'](_0x2e1c05(0x150)+_0x1fa6a1[_0x2e1c05(0x14c)]+'\x27?'),console['error']('\x20\x20Use:\x20tdx\x20tables\x20\x22'+_0x1fa6a1[_0x2e1c05(0x14c)]+'.*\x22'),console[_0x2e1c05(0x14f)](_0x2e1c05(0x12f)+_0x1fa6a1['table']),console[_0x2e1c05(0x14f)]('\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20'+_0x1fa6a1[_0x2e1c05(0x14c)]),console[_0x2e1c05(0x14f)](''),console[_0x2e1c05(0x14f)]('Note:\x20\x27'+_0x2fc46c[0x0]+_0x2e1c05(0x139)+_0x1fa6a1[_0x2e1c05(0x14c)]+'\x27\x20across\x20all\x20databases.'),0x1;}catch(_0x190ebb){return console[_0x2e1c05(0x14f)](_0x2e1c05(0x146)+_0x190ebb[_0x2e1c05(0x143)]),0x1;}else return console['error'](_0x2e1c05(0x14b)),console[_0x2e1c05(0x14f)](_0x2e1c05(0x149)),console['error'](_0x2e1c05(0x141)),console['error']('\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb'),console[_0x2e1c05(0x14f)](_0x2e1c05(0x144)),console[_0x2e1c05(0x14f)]('Or\x20use\x20--in\x20flag:'),console[_0x2e1c05(0x14f)](_0x2e1c05(0x145)),0x1;}const _0x49e505=_0x434837[_0x2e1c05(0x13b)];!_0x1fa6a1[_0x2e1c05(0x13b)]&&_0x49e505&&(_0x1fa6a1['database']=_0x49e505);try{const _0x464b9f=_0x220997=>_0x220997&&(_0x220997['includes']('*')||_0x220997[_0x2e1c05(0x157)]('?')),_0x528e8e=_0x464b9f(_0x1fa6a1[_0x2e1c05(0x13b)]);_0x434837[_0x2e1c05(0x14e)]&&(console['error']('Site:\x20'+_0x434837[_0x2e1c05(0x156)]),_0x1fa6a1[_0x2e1c05(0x13b)]?_0x528e8e?console[_0x2e1c05(0x14f)](_0x2e1c05(0x13a)+_0x1fa6a1[_0x2e1c05(0x13b)]):console['error'](_0x2e1c05(0x138)+_0x1fa6a1[_0x2e1c05(0x13b)]):console[_0x2e1c05(0x14f)](_0x2e1c05(0x140)),_0x1fa6a1[_0x2e1c05(0x14c)]&&console[_0x2e1c05(0x14f)]('Table\x20pattern:\x20'+_0x1fa6a1[_0x2e1c05(0x14c)]));const _0x680e1c=_0x1fa6a1[_0x2e1c05(0x13b)]&&!_0x528e8e?_0x1fa6a1[_0x2e1c05(0x13b)]:undefined,_0x50e3ec=_0x528e8e?_0x1fa6a1['database']:undefined,_0x479700=_0x1fa6a1[_0x2e1c05(0x14c)],_0x14fe2e=resolveLimit(_0x434837[_0x2e1c05(0x148)],DEFAULT_LISTING_LIMIT),_0x12f4ab=await withSpinner(_0x2e1c05(0x131),()=>_0x5eb4d1[_0x2e1c05(0x152)][_0x2e1c05(0x153)](_0x680e1c,_0x479700,_0x50e3ec,_0x14fe2e),{'verbose':_0x434837['verbose']}),_0xce5fc9=_0x12f4ab[_0x2e1c05(0x135)];if(_0xce5fc9[_0x2e1c05(0x137)]===0x0&&_0x1fa6a1[_0x2e1c05(0x13b)]&&!_0x528e8e)return console[_0x2e1c05(0x14f)](_0x2e1c05(0x13e)),console[_0x2e1c05(0x14f)](_0x2e1c05(0x133)+_0x1fa6a1[_0x2e1c05(0x13b)]+_0x2e1c05(0x142)),0x1;return console[_0x2e1c05(0x14f)]('✔\x20Found\x20'+_0xce5fc9[_0x2e1c05(0x137)]+'\x20table'+(_0xce5fc9[_0x2e1c05(0x137)]!==0x1?'s':'')),await handleSDKOutput(_0xce5fc9,{..._0x434837,'limit':_0x14fe2e}),0x0;}catch(_0x1ca480){if(_0x1ca480 instanceof SDKError)return console[_0x2e1c05(0x14f)]('Error:\x20'+_0x1ca480[_0x2e1c05(0x143)]),_0x1ca480[_0x2e1c05(0x155)]&&console[_0x2e1c05(0x14f)](_0x2e1c05(0x154)+_0x1ca480[_0x2e1c05(0x155)]),0x1;throw _0x1ca480;}}['validate'](_0x31a94f){return undefined;}}
@@ -1 +1 @@
1
- const a39_0x3b6377=a39_0x1b79;(function(_0x10f3fc,_0x5d2a68){const _0x5376ea=a39_0x1b79,_0x4108e1=_0x10f3fc();while(!![]){try{const _0x436294=parseInt(_0x5376ea(0xf3))/0x1*(-parseInt(_0x5376ea(0xea))/0x2)+-parseInt(_0x5376ea(0xfa))/0x3*(parseInt(_0x5376ea(0xd7))/0x4)+parseInt(_0x5376ea(0xd4))/0x5+-parseInt(_0x5376ea(0xec))/0x6+-parseInt(_0x5376ea(0xe4))/0x7*(-parseInt(_0x5376ea(0xe6))/0x8)+-parseInt(_0x5376ea(0xf6))/0x9*(-parseInt(_0x5376ea(0xdd))/0xa)+-parseInt(_0x5376ea(0xf4))/0xb*(-parseInt(_0x5376ea(0xd9))/0xc);if(_0x436294===_0x5d2a68)break;else _0x4108e1['push'](_0x4108e1['shift']());}catch(_0x30b128){_0x4108e1['push'](_0x4108e1['shift']());}}}(a39_0x243e,0xd9e69));import{BaseCommand}from'./command.js';function a39_0x1b79(_0x222979,_0xa318e7){_0x222979=_0x222979-0xd3;const _0x243e43=a39_0x243e();let _0x1b791f=_0x243e43[_0x222979];return _0x1b791f;}import{getSessionID,cleanExpiredSessions,clearSessionContextField}from'../core/session.js';import{clearDefaultSiteFromUserConfig,clearActiveProfileFromUserConfig}from'../core/profile.js';import{getConfigDir}from'../core/config.js';import a39_0x358aae from'chalk';import*as a39_0x4ae59b from'node:path';function a39_0x243e(){const _0x1f0aeb=['\x0aRun\x20\x27tdx\x20unset\x20--help\x27\x20for\x20more\x20options','9mZedSp','tdx.json','length','error','6zHfXfk','parent_segment','Clear\x20session-level\x20or\x20default\x20context\x20values','1180960WpvDaR','database','includes','3139156PmvRpi','cleared','12pWVMeV','Default\x20site\x20','green','.\x20Must\x20be\x20one\x20of:\x20','899150cRbsgj','Session\x20','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','log','engage_workspace','dim','\x0aUpdated:\x20','21JtGvee','site','1677736OSzyLz','Default\x20profile\x20','Usage:\x20tdx\x20unset\x20<resource>\x0a','agent','2vYKtKF','\x20\x20\x20\x20\x20\x20\x20tdx\x20unset\x20--default\x20<resource>\x20\x20#\x20Clear\x20default\x20from\x20config\x0a','10664316SMcncz','llm_project','profile','description','validate','llm_agent','default','1689951UkqzXt','54715958WBVxJR'];a39_0x243e=function(){return _0x1f0aeb;};return a39_0x243e();}export class UnsetCommand extends BaseCommand{['name']='unset';[a39_0x3b6377(0xef)]=a39_0x3b6377(0xd3);[a39_0x3b6377(0xf0)](_0x2bf718){const _0x3d2402=a39_0x3b6377,{args:_0x42c3ce,options:_0x2c0d58}=_0x2bf718,_0x4c9378=_0x2c0d58[_0x3d2402(0xf2)];if(_0x42c3ce[_0x3d2402(0xf8)]===0x0)return _0x3d2402(0xe8)+_0x3d2402(0xeb)+'\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a'+_0x3d2402(0xf5);const _0x5b054a=_0x42c3ce[0x0],_0x51a824=[_0x3d2402(0xe5),_0x3d2402(0xd5),_0x3d2402(0xfb),_0x3d2402(0xed),_0x3d2402(0xe9),_0x3d2402(0xee),_0x3d2402(0xe1)];if(!_0x51a824[_0x3d2402(0xd6)](_0x5b054a))return'Invalid\x20resource:\x20'+_0x5b054a+_0x3d2402(0xdc)+_0x51a824['join'](',\x20');if(_0x4c9378&&_0x5b054a!==_0x3d2402(0xe5)&&_0x5b054a!==_0x3d2402(0xee))return _0x3d2402(0xdf);return undefined;}async['execute'](_0xbd1a52){const _0x547a01=a39_0x3b6377,{args:_0x5d9ab0,options:_0x2ead0e}=_0xbd1a52,_0x4761c2=_0x2ead0e[_0x547a01(0xf2)];cleanExpiredSessions();try{const _0x5f0df2=_0x5d9ab0[0x0],_0x4bc366=a39_0x4ae59b['join'](getConfigDir(),_0x547a01(0xf7));if(_0x4761c2){if(_0x5f0df2===_0x547a01(0xe5))return clearDefaultSiteFromUserConfig(),console[_0x547a01(0xe0)](_0x547a01(0xda)+a39_0x358aae[_0x547a01(0xdb)](_0x547a01(0xd8))),console['log'](a39_0x358aae['dim'](_0x547a01(0xe3)+_0x4bc366)),0x0;if(_0x5f0df2===_0x547a01(0xee))return clearActiveProfileFromUserConfig(),console[_0x547a01(0xe0)](_0x547a01(0xe7)+a39_0x358aae[_0x547a01(0xdb)](_0x547a01(0xd8))),console[_0x547a01(0xe0)](a39_0x358aae[_0x547a01(0xe2)]('\x0aUpdated:\x20'+_0x4bc366)),0x0;}const _0x2648f7=getSessionID(_0x2ead0e['session']),_0x5c6fdb={'site':_0x547a01(0xe5),'database':'database','parent_segment':_0x547a01(0xfb),'llm_project':'llm_project','agent':_0x547a01(0xf1),'profile':_0x547a01(0xee),'engage_workspace':_0x547a01(0xe1)},_0x33e8ae=_0x5c6fdb[_0x5f0df2];return _0x33e8ae&&(clearSessionContextField(_0x33e8ae,_0x2ead0e['session']),console[_0x547a01(0xe0)](_0x547a01(0xde)+_0x5f0df2+'\x20'+a39_0x358aae['green']('cleared')+'\x20'+a39_0x358aae[_0x547a01(0xe2)]('(session:\x20'+_0x2648f7+')'))),0x0;}catch(_0x43ab68){return _0x43ab68 instanceof Error&&console[_0x547a01(0xf9)]('Error:\x20'+_0x43ab68['message']),0x1;}}}
1
+ const a39_0x476a1b=a39_0x32e9;(function(_0x4c2cdd,_0x5697f7){const _0x228338=a39_0x32e9,_0x528a95=_0x4c2cdd();while(!![]){try{const _0x4aa55a=parseInt(_0x228338(0x1f9))/0x1+-parseInt(_0x228338(0x1e7))/0x2+-parseInt(_0x228338(0x1dd))/0x3+parseInt(_0x228338(0x1ec))/0x4+parseInt(_0x228338(0x1df))/0x5+-parseInt(_0x228338(0x1fb))/0x6*(parseInt(_0x228338(0x1ea))/0x7)+-parseInt(_0x228338(0x1fc))/0x8*(-parseInt(_0x228338(0x1e2))/0x9);if(_0x4aa55a===_0x5697f7)break;else _0x528a95['push'](_0x528a95['shift']());}catch(_0x27c286){_0x528a95['push'](_0x528a95['shift']());}}}(a39_0x1c1d,0xac67c));import{BaseCommand}from'./command.js';import{getSessionID,cleanExpiredSessions,clearSessionContextField}from'../core/session.js';import{clearDefaultSiteFromUserConfig,clearActiveProfileFromUserConfig}from'../core/profile.js';function a39_0x32e9(_0x2265ed,_0x45f13f){_0x2265ed=_0x2265ed-0x1d3;const _0x1c1d5e=a39_0x1c1d();let _0x32e9ce=_0x1c1d5e[_0x2265ed];return _0x32e9ce;}import{getConfigDir}from'../core/config.js';import a39_0x11d3ab from'chalk';function a39_0x1c1d(){const _0x30ddeb=['error','Invalid\x20resource:\x20','135jjFksQ','log','\x20\x20\x20\x20\x20\x20\x20tdx\x20unset\x20--default\x20<resource>\x20\x20#\x20Clear\x20default\x20from\x20config\x0a','Default\x20site\x20','Session\x20','2589886nVCQdc','description','profile','4574829TVoYUM','engage_workspace','3638624mengbN','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','tdx.json','parent_segment','llm_project','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a','default','includes','database','join','Default\x20profile\x20','Error:\x20','agent','204834SKIBLQ','(session:\x20','6kBwHbn','973848NXxjAs','unset','validate','message','Clear\x20session-level\x20or\x20default\x20context\x20values','\x0aUpdated:\x20','site','llm_agent','session','.\x20Must\x20be\x20one\x20of:\x20','cleared','green','858819aqGANm','dim','2400ARMbgQ'];a39_0x1c1d=function(){return _0x30ddeb;};return a39_0x1c1d();}import*as a39_0x11717d from'node:path';export class UnsetCommand extends BaseCommand{['name']=a39_0x476a1b(0x1fd);[a39_0x476a1b(0x1e8)]=a39_0x476a1b(0x1d5);[a39_0x476a1b(0x1d3)](_0x38bbd9){const _0x294ffb=a39_0x476a1b,{args:_0x2ad1d6,options:_0xcfc333}=_0x38bbd9,_0x151078=_0xcfc333[_0x294ffb(0x1f2)];if(_0x2ad1d6['length']===0x0)return'Usage:\x20tdx\x20unset\x20<resource>\x0a'+_0x294ffb(0x1e4)+_0x294ffb(0x1f1)+'\x0aRun\x20\x27tdx\x20unset\x20--help\x27\x20for\x20more\x20options';const _0x3a0624=_0x2ad1d6[0x0],_0x2b00ab=[_0x294ffb(0x1d7),_0x294ffb(0x1f4),_0x294ffb(0x1ef),_0x294ffb(0x1f0),_0x294ffb(0x1f8),_0x294ffb(0x1e9),_0x294ffb(0x1eb)];if(!_0x2b00ab[_0x294ffb(0x1f3)](_0x3a0624))return _0x294ffb(0x1e1)+_0x3a0624+_0x294ffb(0x1da)+_0x2b00ab[_0x294ffb(0x1f5)](',\x20');if(_0x151078&&_0x3a0624!=='site'&&_0x3a0624!==_0x294ffb(0x1e9))return _0x294ffb(0x1ed);return undefined;}async['execute'](_0x4c32fd){const _0x26ec03=a39_0x476a1b,{args:_0x15d26c,options:_0x1ea76a}=_0x4c32fd,_0x217d2f=_0x1ea76a[_0x26ec03(0x1f2)];cleanExpiredSessions();try{const _0x151fe9=_0x15d26c[0x0],_0x45ed15=a39_0x11717d[_0x26ec03(0x1f5)](getConfigDir(),_0x26ec03(0x1ee));if(_0x217d2f){if(_0x151fe9==='site')return clearDefaultSiteFromUserConfig(),console[_0x26ec03(0x1e3)](_0x26ec03(0x1e5)+a39_0x11d3ab[_0x26ec03(0x1dc)]('cleared')),console[_0x26ec03(0x1e3)](a39_0x11d3ab[_0x26ec03(0x1de)](_0x26ec03(0x1d6)+_0x45ed15)),0x0;if(_0x151fe9===_0x26ec03(0x1e9))return clearActiveProfileFromUserConfig(),console[_0x26ec03(0x1e3)](_0x26ec03(0x1f6)+a39_0x11d3ab[_0x26ec03(0x1dc)](_0x26ec03(0x1db))),console[_0x26ec03(0x1e3)](a39_0x11d3ab['dim'](_0x26ec03(0x1d6)+_0x45ed15)),0x0;}const _0x78d66a=getSessionID(_0x1ea76a[_0x26ec03(0x1d9)]),_0x2257ff={'site':_0x26ec03(0x1d7),'database':'database','parent_segment':_0x26ec03(0x1ef),'llm_project':'llm_project','agent':_0x26ec03(0x1d8),'profile':_0x26ec03(0x1e9),'engage_workspace':_0x26ec03(0x1eb)},_0x531a0b=_0x2257ff[_0x151fe9];return _0x531a0b&&(clearSessionContextField(_0x531a0b,_0x1ea76a[_0x26ec03(0x1d9)]),console[_0x26ec03(0x1e3)](_0x26ec03(0x1e6)+_0x151fe9+'\x20'+a39_0x11d3ab['green'](_0x26ec03(0x1db))+'\x20'+a39_0x11d3ab[_0x26ec03(0x1de)](_0x26ec03(0x1fa)+_0x78d66a+')'))),0x0;}catch(_0x447bd8){return _0x447bd8 instanceof Error&&console[_0x26ec03(0x1e0)](_0x26ec03(0x1f7)+_0x447bd8[_0x26ec03(0x1d4)]),0x1;}}}
@@ -1 +1 @@
1
- const a40_0x1100c0=a40_0x48a5;(function(_0x97d17c,_0x48f076){const _0x4286da=a40_0x48a5,_0x55b6c1=_0x97d17c();while(!![]){try{const _0x56b606=parseInt(_0x4286da(0x10e))/0x1*(-parseInt(_0x4286da(0xce))/0x2)+parseInt(_0x4286da(0xf7))/0x3*(parseInt(_0x4286da(0xfa))/0x4)+-parseInt(_0x4286da(0xfc))/0x5*(-parseInt(_0x4286da(0xf6))/0x6)+-parseInt(_0x4286da(0xf8))/0x7*(-parseInt(_0x4286da(0xf4))/0x8)+-parseInt(_0x4286da(0x10b))/0x9*(-parseInt(_0x4286da(0xd1))/0xa)+parseInt(_0x4286da(0x10f))/0xb+-parseInt(_0x4286da(0xd6))/0xc;if(_0x56b606===_0x48f076)break;else _0x55b6c1['push'](_0x55b6c1['shift']());}catch(_0x452d5d){_0x55b6c1['push'](_0x55b6c1['shift']());}}}(a40_0x4658,0x25ffd));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';function a40_0x48a5(_0xaf5e4f,_0x338ce3){_0xaf5e4f=_0xaf5e4f-0xce;const _0x465826=a40_0x4658();let _0x48a53a=_0x465826[_0xaf5e4f];return _0x48a53a;}import{getConfigDir}from'../core/config.js';function a40_0x4658(){const _0x123238=['display','llm_agent','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a','tdx.json','description','Error:\x20','execute','site','Error:\x20Profile\x20\x27','join','Session\x20site\x20set\x20to:\x20','\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>','Session\x20parent_segment\x20set\x20to:\x20','16wvFkIC','engage_workspace','18sNowvw','6nnWgLx','1018843DFgMPk','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a','127496IroOVX','\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','4835kLsuNq','session','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','llm_project','validate','length','includes','green','error','cleared','profile','\x27\x20to\x20save\x20permanently','displayWithSources','agent','message','9vbAALk','Session\x20llm_project\x20set\x20to:\x20','Set\x20session-level\x20context','386jBhsqQ','157080udPCBr','90DGyfAg','debug','Session\x20database\x20set\x20to:\x20','1785130NLhMXB','\x27\x20does\x20not\x20exist','Session\x20profile\x20set\x20to:\x20','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','database','4530300WEueFi','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','default','dim','log','.\x20Must\x20be\x20one\x20of:\x20','Session\x20engage_workspace\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','clear','Default\x20site\x20set\x20to:\x20','Session\x20agent\x20set\x20to:\x20','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20','use','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','\x0aSaved\x20to:\x20','(session:\x20'];a40_0x4658=function(){return _0x123238;};return a40_0x4658();}import a40_0x1496c2 from'chalk';import*as a40_0x996582 from'node:path';export class UseCommand extends BaseCommand{['name']=a40_0x1100c0(0xe3);[a40_0x1100c0(0xeb)]=a40_0x1100c0(0x10d);[a40_0x1100c0(0x100)](_0x5e6a1d){const _0x323e2f=a40_0x1100c0,{args:_0x521f5e,options:_0x32ce60}=_0x5e6a1d,_0x5a7a5f=_0x32ce60['default'];if(_0x521f5e[_0x323e2f(0x101)]===0x0)return undefined;if(_0x521f5e[_0x323e2f(0x101)]===0x1)return _0x323e2f(0xe4)+_0x323e2f(0xfb)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a'+_0x323e2f(0xe9)+_0x323e2f(0xdd)+_0x323e2f(0xf9)+'\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options';const _0x262e7f=_0x521f5e[0x0],_0x2b50b8=[_0x323e2f(0xee),_0x323e2f(0xd5),'parent_segment',_0x323e2f(0xff),_0x323e2f(0x109),_0x323e2f(0x106),_0x323e2f(0xf5)];if(!_0x2b50b8[_0x323e2f(0x102)](_0x262e7f))return _0x323e2f(0xde)+_0x262e7f+_0x323e2f(0xdb)+_0x2b50b8[_0x323e2f(0xf0)](',\x20');if(_0x5a7a5f&&_0x262e7f!==_0x323e2f(0xee)&&_0x262e7f!=='profile')return _0x323e2f(0xfe);return undefined;}async[a40_0x1100c0(0xed)](_0x4f8190){const _0x391194=a40_0x1100c0,{args:_0x4c3a25,options:_0x319a6d}=_0x4f8190,_0x5124de=_0x319a6d[_0x391194(0xcf)],_0x50288f=_0x319a6d[_0x391194(0xdf)],_0x1c0446=_0x319a6d[_0x391194(0xd8)];cleanExpiredSessions();try{if(_0x50288f){clearSessionContext(_0x319a6d['session']);const _0x27d238=getSessionID(_0x319a6d['session']);return console[_0x391194(0xda)]('Session\x20context\x20'+a40_0x1496c2[_0x391194(0x103)](_0x391194(0x105))+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x27d238+')')),0x0;}if(_0x4c3a25[_0x391194(0x101)]===0x0){const _0x41e5d7=new GlobalContext(_0x319a6d);return _0x5124de?_0x41e5d7[_0x391194(0x108)]():_0x41e5d7[_0x391194(0xe7)](),console['log'](a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xf2))),console[_0x391194(0xda)](a40_0x1496c2[_0x391194(0xd9)]('Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace')),console[_0x391194(0xda)](a40_0x1496c2[_0x391194(0xd9)]('Use\x20--default\x20with\x20site\x20or\x20profile\x20to\x20save\x20permanently')),0x0;}const _0x45bb57=_0x4c3a25[0x0],_0x1ff88c=_0x4c3a25[0x1],_0x2be851=a40_0x996582['join'](getConfigDir(),_0x391194(0xea));if(_0x1c0446){if(_0x45bb57===_0x391194(0xee))return saveDefaultSiteToUserConfig(_0x1ff88c),console[_0x391194(0xda)](_0x391194(0xe0)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)),console['log'](a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe5)+_0x2be851)),0x0;if(_0x45bb57==='profile'){if(!profileExists(_0x1ff88c))return console[_0x391194(0x104)](_0x391194(0xef)+_0x1ff88c+_0x391194(0xd2)),console['error'](_0x391194(0xd7)),0x1;return saveActiveProfileToUserConfig(_0x1ff88c),console[_0x391194(0xda)]('Default\x20profile\x20set\x20to:\x20'+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)),console[_0x391194(0xda)](a40_0x1496c2['dim'](_0x391194(0xe5)+_0x2be851)),0x0;}}if(_0x45bb57==='site'){const _0x3b0970=getSessionID(_0x319a6d[_0x391194(0xfd)]);return saveSessionContext({'site':_0x1ff88c},_0x319a6d['session']),console[_0x391194(0xda)](_0x391194(0xf1)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x3b0970+')')),console[_0x391194(0xda)](a40_0x1496c2['dim']('\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20'+_0x1ff88c+_0x391194(0x107))),0x0;}if(_0x45bb57===_0x391194(0x106)){if(!profileExists(_0x1ff88c))return console['error'](_0x391194(0xef)+_0x1ff88c+_0x391194(0xd2)),console[_0x391194(0x104)](_0x391194(0xd7)),0x1;const _0x159ad0=getSessionID(_0x319a6d['session']);return saveSessionContext({'profile':_0x1ff88c},_0x319a6d[_0x391194(0xfd)]),console[_0x391194(0xda)](_0x391194(0xd3)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x159ad0+')')),console[_0x391194(0xda)](a40_0x1496c2['dim'](_0x391194(0xe2)+_0x1ff88c+_0x391194(0x107))),0x0;}const _0x3cb5fd={},_0x1cba76=getSessionID(_0x319a6d[_0x391194(0xfd)]);switch(_0x45bb57){case'database':_0x3cb5fd['database']=_0x1ff88c,console['log'](_0x391194(0xd0)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x1cba76+')'));break;case'parent_segment':_0x3cb5fd['parent_segment']=_0x1ff88c,console[_0x391194(0xda)](_0x391194(0xf3)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)]('(session:\x20'+_0x1cba76+')'));break;case'llm_project':_0x3cb5fd[_0x391194(0xff)]=_0x1ff88c,console['log']('Session\x20llm_project\x20set\x20to:\x20'+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2['dim']('(session:\x20'+_0x1cba76+')'));break;case _0x391194(0x109):{const {projectName:_0x5e86e1,agentName:_0x2b476f}=parseAgentRef(_0x1ff88c);_0x2b476f?(_0x3cb5fd[_0x391194(0xff)]=_0x5e86e1,_0x3cb5fd[_0x391194(0xe8)]=_0x2b476f,console[_0x391194(0xda)](_0x391194(0x10c)+a40_0x1496c2['green'](_0x5e86e1)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x1cba76+')')),console[_0x391194(0xda)](_0x391194(0xe1)+a40_0x1496c2[_0x391194(0x103)](_0x2b476f)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x1cba76+')'))):(_0x3cb5fd[_0x391194(0xe8)]=_0x1ff88c,console['log']('Session\x20agent\x20set\x20to:\x20'+a40_0x1496c2['green'](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)]('(session:\x20'+_0x1cba76+')')));break;}case _0x391194(0xf5):_0x3cb5fd[_0x391194(0xf5)]=_0x1ff88c,console[_0x391194(0xda)](_0x391194(0xdc)+a40_0x1496c2[_0x391194(0x103)](_0x1ff88c)+'\x20'+a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xe6)+_0x1cba76+')'));break;}return saveSessionContext(_0x3cb5fd,_0x319a6d['session']),console[_0x391194(0xda)](a40_0x1496c2[_0x391194(0xd9)](_0x391194(0xd4))),0x0;}catch(_0x4924df){return _0x4924df instanceof Error&&console[_0x391194(0x104)](_0x391194(0xec)+_0x4924df[_0x391194(0x10a)]),0x1;}}}
1
+ const a40_0x594a47=a40_0x37c0;function a40_0x37c0(_0x5b80c4,_0x48322f){_0x5b80c4=_0x5b80c4-0x70;const _0x2ebd7a=a40_0x2ebd();let _0x37c024=_0x2ebd7a[_0x5b80c4];return _0x37c024;}(function(_0x245437,_0x49b901){const _0x5a9c9b=a40_0x37c0,_0x1d5f15=_0x245437();while(!![]){try{const _0x386170=parseInt(_0x5a9c9b(0xa6))/0x1*(-parseInt(_0x5a9c9b(0x95))/0x2)+-parseInt(_0x5a9c9b(0x7b))/0x3*(parseInt(_0x5a9c9b(0x89))/0x4)+parseInt(_0x5a9c9b(0xa7))/0x5+-parseInt(_0x5a9c9b(0x79))/0x6+-parseInt(_0x5a9c9b(0x81))/0x7*(parseInt(_0x5a9c9b(0x98))/0x8)+-parseInt(_0x5a9c9b(0xae))/0x9+parseInt(_0x5a9c9b(0x8e))/0xa*(parseInt(_0x5a9c9b(0xaf))/0xb);if(_0x386170===_0x49b901)break;else _0x1d5f15['push'](_0x1d5f15['shift']());}catch(_0x3808c6){_0x1d5f15['push'](_0x1d5f15['shift']());}}}(a40_0x2ebd,0x2b511));function a40_0x2ebd(){const _0x463b05=['tdx.json','Error:\x20Profile\x20\x27','\x27\x20does\x20not\x20exist','use','10ITtDkh','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20','log','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a','llm_agent','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a','database','12nZGaTj','Session\x20profile\x20set\x20to:\x20','display','8rFjZzh','Session\x20llm_project\x20set\x20to:\x20','message','\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','\x27\x20to\x20save\x20permanently','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','Session\x20engage_workspace\x20set\x20to:\x20','engage_workspace','session','\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20','(session:\x20','\x0aSaved\x20to:\x20','site','13997AzUteQ','637960moYEYl','length','debug','cleared','error','join','default','684873mMXpgf','7040858ZMCsKs','includes','llm_project','description','Invalid\x20resource:\x20','Use\x20--default\x20with\x20site\x20or\x20profile\x20to\x20save\x20permanently','Set\x20session-level\x20context','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','dim','clear','parent_segment','.\x20Must\x20be\x20one\x20of:\x20','Default\x20profile\x20set\x20to:\x20','Session\x20site\x20set\x20to:\x20','validate','Session\x20context\x20','285300YlEDmH','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','281469MVtrCr','Default\x20site\x20set\x20to:\x20','execute','Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace','Session\x20agent\x20set\x20to:\x20','Session\x20parent_segment\x20set\x20to:\x20','2021551ZWwBOI','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','agent','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','green','profile','Error:\x20','name','4SPyRxI'];a40_0x2ebd=function(){return _0x463b05;};return a40_0x2ebd();}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}from'../core/config.js';import a40_0x2b1728 from'chalk';import*as a40_0x438880 from'node:path';export class UseCommand extends BaseCommand{[a40_0x594a47(0x88)]=a40_0x594a47(0x8d);[a40_0x594a47(0xb2)]=a40_0x594a47(0xb5);[a40_0x594a47(0x77)](_0x3852f9){const _0x19780d=a40_0x594a47,{args:_0xb26da4,options:_0x41f4b7}=_0x3852f9,_0x128c19=_0x41f4b7[_0x19780d(0xad)];if(_0xb26da4['length']===0x0)return undefined;if(_0xb26da4[_0x19780d(0xa8)]===0x1)return _0x19780d(0x7a)+_0x19780d(0x9b)+_0x19780d(0x91)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20profile\x20<value>\x20\x20#\x20Save\x20default\x20profile\x20to\x20config\x0a'+_0x19780d(0x93)+_0x19780d(0x84);const _0x74cf95=_0xb26da4[0x0],_0x50f056=[_0x19780d(0xa5),_0x19780d(0x94),'parent_segment',_0x19780d(0xb1),_0x19780d(0x83),'profile',_0x19780d(0x9f)];if(!_0x50f056[_0x19780d(0xb0)](_0x74cf95))return _0x19780d(0xb3)+_0x74cf95+_0x19780d(0x74)+_0x50f056[_0x19780d(0xac)](',\x20');if(_0x128c19&&_0x74cf95!==_0x19780d(0xa5)&&_0x74cf95!==_0x19780d(0x86))return _0x19780d(0x82);return undefined;}async[a40_0x594a47(0x7d)](_0x410e32){const _0xc6efaa=a40_0x594a47,{args:_0xf6c217,options:_0x5daa8e}=_0x410e32,_0x132b3c=_0x5daa8e[_0xc6efaa(0xa9)],_0x5b7d10=_0x5daa8e[_0xc6efaa(0x72)],_0x162790=_0x5daa8e['default'];cleanExpiredSessions();try{if(_0x5b7d10){clearSessionContext(_0x5daa8e['session']);const _0x4f6aaf=getSessionID(_0x5daa8e[_0xc6efaa(0xa0)]);return console[_0xc6efaa(0x90)](_0xc6efaa(0x78)+a40_0x2b1728[_0xc6efaa(0x85)](_0xc6efaa(0xaa))+'\x20'+a40_0x2b1728['dim'](_0xc6efaa(0xa3)+_0x4f6aaf+')')),0x0;}if(_0xf6c217['length']===0x0){const _0x2459db=new GlobalContext(_0x5daa8e);return _0x132b3c?_0x2459db['displayWithSources']():_0x2459db[_0xc6efaa(0x97)](),console['log'](a40_0x2b1728['dim'](_0xc6efaa(0xa1))),console['log'](a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0x7e))),console[_0xc6efaa(0x90)](a40_0x2b1728['dim'](_0xc6efaa(0xb4))),0x0;}const _0x5c4c16=_0xf6c217[0x0],_0x19011b=_0xf6c217[0x1],_0x5f13a4=a40_0x438880['join'](getConfigDir(),_0xc6efaa(0x8a));if(_0x162790){if(_0x5c4c16===_0xc6efaa(0xa5))return saveDefaultSiteToUserConfig(_0x19011b),console[_0xc6efaa(0x90)](_0xc6efaa(0x7c)+a40_0x2b1728['green'](_0x19011b)),console[_0xc6efaa(0x90)](a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa4)+_0x5f13a4)),0x0;if(_0x5c4c16===_0xc6efaa(0x86)){if(!profileExists(_0x19011b))return console[_0xc6efaa(0xab)](_0xc6efaa(0x8b)+_0x19011b+_0xc6efaa(0x8c)),console[_0xc6efaa(0xab)]('\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles'),0x1;return saveActiveProfileToUserConfig(_0x19011b),console[_0xc6efaa(0x90)](_0xc6efaa(0x75)+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)),console[_0xc6efaa(0x90)](a40_0x2b1728[_0xc6efaa(0x71)]('\x0aSaved\x20to:\x20'+_0x5f13a4)),0x0;}}if(_0x5c4c16===_0xc6efaa(0xa5)){const _0x39e104=getSessionID(_0x5daa8e['session']);return saveSessionContext({'site':_0x19011b},_0x5daa8e[_0xc6efaa(0xa0)]),console[_0xc6efaa(0x90)](_0xc6efaa(0x76)+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa3)+_0x39e104+')')),console[_0xc6efaa(0x90)](a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0x8f)+_0x19011b+_0xc6efaa(0x9c))),0x0;}if(_0x5c4c16===_0xc6efaa(0x86)){if(!profileExists(_0x19011b))return console['error'](_0xc6efaa(0x8b)+_0x19011b+_0xc6efaa(0x8c)),console['error'](_0xc6efaa(0x9d)),0x1;const _0x40d75a=getSessionID(_0x5daa8e[_0xc6efaa(0xa0)]);return saveSessionContext({'profile':_0x19011b},_0x5daa8e[_0xc6efaa(0xa0)]),console[_0xc6efaa(0x90)](_0xc6efaa(0x96)+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)+'\x20'+a40_0x2b1728['dim'](_0xc6efaa(0xa3)+_0x40d75a+')')),console[_0xc6efaa(0x90)](a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa2)+_0x19011b+_0xc6efaa(0x9c))),0x0;}const _0x3c88f2={},_0x159af3=getSessionID(_0x5daa8e[_0xc6efaa(0xa0)]);switch(_0x5c4c16){case _0xc6efaa(0x94):_0x3c88f2[_0xc6efaa(0x94)]=_0x19011b,console[_0xc6efaa(0x90)]('Session\x20database\x20set\x20to:\x20'+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa3)+_0x159af3+')'));break;case _0xc6efaa(0x73):_0x3c88f2[_0xc6efaa(0x73)]=_0x19011b,console[_0xc6efaa(0x90)](_0xc6efaa(0x80)+a40_0x2b1728['green'](_0x19011b)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)]('(session:\x20'+_0x159af3+')'));break;case _0xc6efaa(0xb1):_0x3c88f2['llm_project']=_0x19011b,console[_0xc6efaa(0x90)]('Session\x20llm_project\x20set\x20to:\x20'+a40_0x2b1728['green'](_0x19011b)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)]('(session:\x20'+_0x159af3+')'));break;case _0xc6efaa(0x83):{const {projectName:_0x2283ab,agentName:_0x3138be}=parseAgentRef(_0x19011b);_0x3138be?(_0x3c88f2['llm_project']=_0x2283ab,_0x3c88f2[_0xc6efaa(0x92)]=_0x3138be,console[_0xc6efaa(0x90)](_0xc6efaa(0x99)+a40_0x2b1728[_0xc6efaa(0x85)](_0x2283ab)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa3)+_0x159af3+')')),console[_0xc6efaa(0x90)](_0xc6efaa(0x7f)+a40_0x2b1728[_0xc6efaa(0x85)](_0x3138be)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)]('(session:\x20'+_0x159af3+')'))):(_0x3c88f2[_0xc6efaa(0x92)]=_0x19011b,console[_0xc6efaa(0x90)]('Session\x20agent\x20set\x20to:\x20'+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)+'\x20'+a40_0x2b1728['dim'](_0xc6efaa(0xa3)+_0x159af3+')')));break;}case'engage_workspace':_0x3c88f2[_0xc6efaa(0x9f)]=_0x19011b,console[_0xc6efaa(0x90)](_0xc6efaa(0x9e)+a40_0x2b1728[_0xc6efaa(0x85)](_0x19011b)+'\x20'+a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0xa3)+_0x159af3+')'));break;}return saveSessionContext(_0x3c88f2,_0x5daa8e[_0xc6efaa(0xa0)]),console[_0xc6efaa(0x90)](a40_0x2b1728[_0xc6efaa(0x71)](_0xc6efaa(0x70))),0x0;}catch(_0x1582d0){return _0x1582d0 instanceof Error&&console[_0xc6efaa(0xab)](_0xc6efaa(0x87)+_0x1582d0[_0xc6efaa(0x9a)]),0x1;}}}
@@ -1 +1 @@
1
- const a41_0x40c26b=a41_0xc1ef;(function(_0x20baa8,_0x37d93e){const _0x1a469b=a41_0xc1ef,_0x44ef2a=_0x20baa8();while(!![]){try{const _0x29a347=parseInt(_0x1a469b(0x1fc))/0x1*(-parseInt(_0x1a469b(0x1ea))/0x2)+-parseInt(_0x1a469b(0x1f7))/0x3+-parseInt(_0x1a469b(0x1fb))/0x4*(parseInt(_0x1a469b(0x1fa))/0x5)+parseInt(_0x1a469b(0x1ed))/0x6+parseInt(_0x1a469b(0x1eb))/0x7*(-parseInt(_0x1a469b(0x1f9))/0x8)+-parseInt(_0x1a469b(0x1f2))/0x9*(parseInt(_0x1a469b(0x1ec))/0xa)+parseInt(_0x1a469b(0x1f8))/0xb;if(_0x29a347===_0x37d93e)break;else _0x44ef2a['push'](_0x44ef2a['shift']());}catch(_0x1a0365){_0x44ef2a['push'](_0x44ef2a['shift']());}}}(a41_0x3ae6,0xaeb48));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 a41_0x3ae6(){const _0x6f4774=['name','error','9zPfJKW','\x20user','execute','length','List\x20all\x20users\x20in\x20the\x20account','2758575qBAAls','33923549BoAtnm','43192KczhqC','5ezGGce','646552WxyGqZ','1387877NwhQdO','Error:\x20','cause','user','✔\x20Found\x20','verbose','Fetching\x20user\x20info...','\x20\x20Cause:\x20','message','2orasrL','238ksSxYm','357940RSrzSO','1920198yAWcrz','data','Show\x20current\x20user\x20information'];a41_0x3ae6=function(){return _0x6f4774;};return a41_0x3ae6();}export class UserCommand extends BaseCommand{[a41_0x40c26b(0x1f0)]=a41_0x40c26b(0x1ff);['description']=a41_0x40c26b(0x1ef);async[a41_0x40c26b(0x1f4)](_0x5c2311){const _0x5943d6=a41_0x40c26b,{options:_0x146f6d,tdx:_0x12b335}=_0x5c2311;try{const _0x2d2f32=await withSpinner(_0x5943d6(0x1e7),()=>_0x12b335['user']['getCurrent'](),{'verbose':_0x146f6d[_0x5943d6(0x1e6)]}),_0x1437d6=_0x2d2f32['data'];return await handleSingleObjectOutput(_0x1437d6,_0x146f6d),0x0;}catch(_0x369b25){if(_0x369b25 instanceof SDKError)return console[_0x5943d6(0x1f1)](_0x5943d6(0x1fd)+_0x369b25[_0x5943d6(0x1e9)]),_0x369b25[_0x5943d6(0x1fe)]&&console[_0x5943d6(0x1f1)](_0x5943d6(0x1e8)+_0x369b25[_0x5943d6(0x1fe)]),0x1;throw _0x369b25;}}}function a41_0xc1ef(_0xb7d435,_0x585cff){_0xb7d435=_0xb7d435-0x1e5;const _0x3ae618=a41_0x3ae6();let _0xc1ef26=_0x3ae618[_0xb7d435];return _0xc1ef26;}export class UserListCommand extends BaseCommand{['name']='user\x20list';['description']=a41_0x40c26b(0x1f6);async[a41_0x40c26b(0x1f4)](_0x2b63f4){const _0x1ec58f=a41_0x40c26b,{options:_0x3595e2,tdx:_0xb1cdae}=_0x2b63f4;try{const _0x3a917c=await withSpinner('Listing\x20users...',()=>_0xb1cdae[_0x1ec58f(0x1ff)]['list'](),{'verbose':_0x3595e2['verbose']}),_0x45eb3c=_0x3a917c[_0x1ec58f(0x1ee)];return console[_0x1ec58f(0x1f1)](_0x1ec58f(0x1e5)+_0x45eb3c[_0x1ec58f(0x1f5)]+_0x1ec58f(0x1f3)+(_0x45eb3c[_0x1ec58f(0x1f5)]!==0x1?'s':'')),await handleSDKOutput(_0x45eb3c,_0x3595e2),0x0;}catch(_0x1cfe7b){if(_0x1cfe7b instanceof SDKError)return console['error']('Error:\x20'+_0x1cfe7b[_0x1ec58f(0x1e9)]),_0x1cfe7b[_0x1ec58f(0x1fe)]&&console['error'](_0x1ec58f(0x1e8)+_0x1cfe7b['cause']),0x1;throw _0x1cfe7b;}}}
1
+ function a41_0x2908(){const _0x1822dc=['\x20\x20Cause:\x20','description','233152oFpoch','1134856kwVdet','getCurrent','data','length','2HRTMSV','375288JREvjg','5hkqTfi','Show\x20current\x20user\x20information','user\x20list','user','Fetching\x20user\x20info...','✔\x20Found\x20','Listing\x20users...','verbose','name','\x20user','execute','List\x20all\x20users\x20in\x20the\x20account','1343928KihfyN','80861dpgdwX','1327928kyrPrN','list','cause','message','10KAUIPE','error','9TmstBu','4302133yjYpqb'];a41_0x2908=function(){return _0x1822dc;};return a41_0x2908();}const a41_0x32f3ea=a41_0x5d0d;(function(_0x127a3a,_0xe8e60d){const _0x328b13=a41_0x5d0d,_0x19c825=_0x127a3a();while(!![]){try{const _0x93bccc=parseInt(_0x328b13(0x106))/0x1*(-parseInt(_0x328b13(0xf7))/0x2)+-parseInt(_0x328b13(0xf8))/0x3+parseInt(_0x328b13(0xf2))/0x4+parseInt(_0x328b13(0xf9))/0x5*(parseInt(_0x328b13(0x105))/0x6)+-parseInt(_0x328b13(0x107))/0x7+parseInt(_0x328b13(0xf3))/0x8*(-parseInt(_0x328b13(0x10d))/0x9)+parseInt(_0x328b13(0x10b))/0xa*(parseInt(_0x328b13(0x10e))/0xb);if(_0x93bccc===_0xe8e60d)break;else _0x19c825['push'](_0x19c825['shift']());}catch(_0x40509b){_0x19c825['push'](_0x19c825['shift']());}}}(a41_0x2908,0x212b5));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a41_0x5d0d(_0x293962,_0x4c6089){_0x293962=_0x293962-0xf2;const _0x290819=a41_0x2908();let _0x5d0dbb=_0x290819[_0x293962];return _0x5d0dbb;}import{handleSDKOutput,handleSingleObjectOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';export class UserCommand extends BaseCommand{[a41_0x32f3ea(0x101)]=a41_0x32f3ea(0xfc);[a41_0x32f3ea(0x110)]=a41_0x32f3ea(0xfa);async[a41_0x32f3ea(0x103)](_0x12510c){const _0x2327f2=a41_0x32f3ea,{options:_0x3d9a43,tdx:_0x57b72e}=_0x12510c;try{const _0x33d0b4=await withSpinner(_0x2327f2(0xfd),()=>_0x57b72e[_0x2327f2(0xfc)][_0x2327f2(0xf4)](),{'verbose':_0x3d9a43[_0x2327f2(0x100)]}),_0x4d209e=_0x33d0b4[_0x2327f2(0xf5)];return await handleSingleObjectOutput(_0x4d209e,_0x3d9a43),0x0;}catch(_0x3f3f71){if(_0x3f3f71 instanceof SDKError)return console['error']('Error:\x20'+_0x3f3f71[_0x2327f2(0x10a)]),_0x3f3f71[_0x2327f2(0x109)]&&console[_0x2327f2(0x10c)](_0x2327f2(0x10f)+_0x3f3f71[_0x2327f2(0x109)]),0x1;throw _0x3f3f71;}}}export class UserListCommand extends BaseCommand{[a41_0x32f3ea(0x101)]=a41_0x32f3ea(0xfb);[a41_0x32f3ea(0x110)]=a41_0x32f3ea(0x104);async[a41_0x32f3ea(0x103)](_0x381f65){const _0x200c16=a41_0x32f3ea,{options:_0x4d2652,tdx:_0x3911db}=_0x381f65;try{const _0x45ce0e=await withSpinner(_0x200c16(0xff),()=>_0x3911db[_0x200c16(0xfc)][_0x200c16(0x108)](),{'verbose':_0x4d2652[_0x200c16(0x100)]}),_0x35c9fa=_0x45ce0e[_0x200c16(0xf5)];return console[_0x200c16(0x10c)](_0x200c16(0xfe)+_0x35c9fa[_0x200c16(0xf6)]+_0x200c16(0x102)+(_0x35c9fa[_0x200c16(0xf6)]!==0x1?'s':'')),await handleSDKOutput(_0x35c9fa,_0x4d2652),0x0;}catch(_0x396e30){if(_0x396e30 instanceof SDKError)return console[_0x200c16(0x10c)]('Error:\x20'+_0x396e30[_0x200c16(0x10a)]),_0x396e30['cause']&&console['error'](_0x200c16(0x10f)+_0x396e30[_0x200c16(0x109)]),0x1;throw _0x396e30;}}}