@treasuredata/tdx 0.19.1 → 0.19.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 (170) 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/llm-proxy.js +1 -1
  24. package/dist/commands/mcp-command.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/schedule-command.js +1 -1
  30. package/dist/commands/segment-command.js +1 -1
  31. package/dist/commands/segment-create-command.js +1 -1
  32. package/dist/commands/segment-fields-command.js +1 -1
  33. package/dist/commands/segment-pull-command.js +1 -1
  34. package/dist/commands/segment-push-command.js +1 -1
  35. package/dist/commands/segment-update-command.js +1 -1
  36. package/dist/commands/segment-use-command.js +1 -1
  37. package/dist/commands/segment-validate-command.js +1 -1
  38. package/dist/commands/segments.js +1 -1
  39. package/dist/commands/show.js +1 -1
  40. package/dist/commands/status-command.js +1 -1
  41. package/dist/commands/tables.js +1 -1
  42. package/dist/commands/unset-command.js +1 -1
  43. package/dist/commands/use-command.js +1 -1
  44. package/dist/commands/user-command.js +1 -1
  45. package/dist/commands/workflow-command.js +1 -1
  46. package/dist/core/auth.js +1 -1
  47. package/dist/core/command-output.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/constants.js +1 -1
  51. package/dist/core/credential-cache.js +1 -1
  52. package/dist/core/global-context.js +1 -1
  53. package/dist/core/keychain.js +1 -1
  54. package/dist/core/profile.js +1 -1
  55. package/dist/core/project-config.js +1 -1
  56. package/dist/core/session.js +1 -1
  57. package/dist/core/user-cache.js +1 -1
  58. package/dist/core/version.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/mcp/server.js +1 -1
  61. package/dist/mcp/tools/index.js +1 -1
  62. package/dist/mcp/tools/tdx-run.js +1 -1
  63. package/dist/mcp/tools/tdx-search.js +1 -1
  64. package/dist/mcp/utils.js +1 -1
  65. package/dist/proxy/anthropic-adapter.js +1 -1
  66. package/dist/proxy/claude-usage-tracker.js +1 -1
  67. package/dist/proxy/context-signature.js +1 -1
  68. package/dist/proxy/conversation-utils.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/server.js +1 -1
  71. package/dist/proxy/session-cache.js +1 -1
  72. package/dist/proxy/sse-usage-parser.js +1 -1
  73. package/dist/sdk/agent/agent-config.js +1 -1
  74. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  75. package/dist/sdk/agent/agent-yaml.js +1 -1
  76. package/dist/sdk/agent/test/evaluator.js +1 -1
  77. package/dist/sdk/agent/test/executor.js +1 -1
  78. package/dist/sdk/agent/test/index.js +1 -1
  79. package/dist/sdk/agent/test/output.js +1 -1
  80. package/dist/sdk/agent/test/parser.js +1 -1
  81. package/dist/sdk/api.js +1 -1
  82. package/dist/sdk/client/cdp-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/engage.js +1 -1
  94. package/dist/sdk/errors.js +1 -1
  95. package/dist/sdk/index.js +1 -1
  96. package/dist/sdk/io/index.js +1 -1
  97. package/dist/sdk/io/node-filesystem.js +1 -1
  98. package/dist/sdk/job.js +1 -1
  99. package/dist/sdk/journey.js +1 -1
  100. package/dist/sdk/llm/chat-cache.js +1 -1
  101. package/dist/sdk/llm/index.js +1 -1
  102. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  103. package/dist/sdk/llm/model-aliases.js +1 -1
  104. package/dist/sdk/llm/model-factors.js +1 -1
  105. package/dist/sdk/query/index.js +1 -1
  106. package/dist/sdk/query/sql-parser.js +1 -1
  107. package/dist/sdk/schedule.js +1 -1
  108. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  109. package/dist/sdk/segment/fields-display.js +1 -1
  110. package/dist/sdk/segment/file-discovery.js +1 -1
  111. package/dist/sdk/segment/journey-utils.js +1 -1
  112. package/dist/sdk/segment/journey-yaml.js +1 -1
  113. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  114. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  115. package/dist/sdk/segment/pull-workflow.js +1 -1
  116. package/dist/sdk/segment/push-workflow.js +1 -1
  117. package/dist/sdk/segment/resolution-context.js +1 -1
  118. package/dist/sdk/segment/segment-path-parser.js +1 -1
  119. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  120. package/dist/sdk/segment/target-resolution.js +1 -1
  121. package/dist/sdk/segment/tdx-config.js +1 -1
  122. package/dist/sdk/segment/validate-files.js +1 -1
  123. package/dist/sdk/segment/yaml-validator.js +1 -1
  124. package/dist/sdk/segment.js +1 -1
  125. package/dist/sdk/types/index.js +1 -1
  126. package/dist/sdk/types/progress.js +1 -1
  127. package/dist/sdk/user.js +1 -1
  128. package/dist/sdk/util/format-detector.js +1 -1
  129. package/dist/sdk/util/formatters.js +1 -1
  130. package/dist/sdk/util/index.js +1 -1
  131. package/dist/sdk/util/tree-formatter.js +1 -1
  132. package/dist/sdk/workflow/archive-validation.js +1 -1
  133. package/dist/sdk/workflow/clone-workflow.js +1 -1
  134. package/dist/sdk/workflow/index.js +1 -1
  135. package/dist/sdk/workflow/pull-workflow.js +1 -1
  136. package/dist/sdk/workflow/push-workflow.js +1 -1
  137. package/dist/sdk/workflow/tdx-config.js +1 -1
  138. package/dist/sdk/workflow/workflow-utils.js +1 -1
  139. package/dist/test-utils/command-runner.js +1 -1
  140. package/dist/test-utils/factories.js +1 -1
  141. package/dist/test-utils/fixtures.js +1 -1
  142. package/dist/test-utils/http-mock.js +1 -1
  143. package/dist/test-utils/index.js +1 -1
  144. package/dist/utils/async.js +1 -1
  145. package/dist/utils/colors.js +1 -1
  146. package/dist/utils/diff.js +1 -1
  147. package/dist/utils/file-permissions.js +1 -1
  148. package/dist/utils/global-cache.js +1 -1
  149. package/dist/utils/json-loader.js +1 -1
  150. package/dist/utils/local-cache.js +1 -1
  151. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  152. package/dist/utils/logger/formatters/index.js +1 -1
  153. package/dist/utils/logger/handlers/console-handler.js +1 -1
  154. package/dist/utils/logger/handlers/file-handler.js +1 -1
  155. package/dist/utils/logger/handlers/index.js +1 -1
  156. package/dist/utils/logger/handlers/null-handler.js +1 -1
  157. package/dist/utils/logger/index.js +1 -1
  158. package/dist/utils/logger/logger.js +1 -1
  159. package/dist/utils/logger/types.js +1 -1
  160. package/dist/utils/option-validation.js +1 -1
  161. package/dist/utils/port.js +1 -1
  162. package/dist/utils/process.js +1 -1
  163. package/dist/utils/prompt.js +1 -1
  164. package/dist/utils/spinner.js +1 -1
  165. package/dist/utils/sse-parser.js +1 -1
  166. package/dist/utils/string-utils.js +1 -1
  167. package/dist/utils/table-ref-parser.js +1 -1
  168. package/dist/utils/tdx-logger.js +1 -1
  169. package/dist/utils/version-check.js +1 -1
  170. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x1ed5ff=a33_0x48ce;(function(_0x5d126d,_0x18ad31){const _0x79c1c3=a33_0x48ce,_0x195e9e=_0x5d126d();while(!![]){try{const _0x4f52c3=parseInt(_0x79c1c3(0x150))/0x1+-parseInt(_0x79c1c3(0x156))/0x2*(parseInt(_0x79c1c3(0x160))/0x3)+-parseInt(_0x79c1c3(0x147))/0x4*(parseInt(_0x79c1c3(0x152))/0x5)+-parseInt(_0x79c1c3(0x15f))/0x6*(-parseInt(_0x79c1c3(0x15b))/0x7)+-parseInt(_0x79c1c3(0x169))/0x8*(-parseInt(_0x79c1c3(0x146))/0x9)+-parseInt(_0x79c1c3(0x170))/0xa+parseInt(_0x79c1c3(0x163))/0xb*(parseInt(_0x79c1c3(0x149))/0xc);if(_0x4f52c3===_0x18ad31)break;else _0x195e9e['push'](_0x195e9e['shift']());}catch(_0x3cdc70){_0x195e9e['push'](_0x195e9e['shift']());}}}(a33_0x52b6,0x1a8bd));import{BaseCommand}from'./command.js';import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';function a33_0x52b6(){const _0x1f5c11=['segmentName','length','description','\x20\x20Use\x20`tdx\x20sg\x20push`\x20with\x20YAML\x20files\x20instead.\x0a','424PqUcmU','Resolving\x20folder\x20\x27','name','Resolved\x20type:\x20','kind','verbose','segmentPath','482590XcOFTl','includes','Error:\x20Segment\x20path\x20or\x20name\x20is\x20required','segment','Segment\x20ID:\x20','rule','resolveFolderId','Usage:\x20tdx\x20segment\x20update\x20<path>\x20[options]','parentId','Resolving\x20path\x20\x27','error','19566jVywsp','92wmWKam','type','10416bQYxLO','Resolved\x20relative\x20path\x20to:\x20','\x20\x20\x20Path:\x20','⚠\x20Deprecation\x20warning:\x20`segment\x20update`\x20is\x20deprecated.','data','Use:\x20tdx\x20segment\x20update\x20<path_to_segment>\x20[options]','Examples:','203583MospsC','Resolved\x20folder\x20ID:\x20','38470tJgHre','updateSegmentById','execute','.\x20Only\x20child\x20segments\x20can\x20be\x20updated.','572xeuljK','ruleFile','yellow','✔\x20Updated\x20segment\x20\x27','\x27...','16681tdkjpn','resolvePathToResource','Update\x20existing\x20child\x20segment','segmentId','6wxPJmK','813FtAsgi','folder','segment:update','1144zAvLkK','Parent\x20ID:\x20'];a33_0x52b6=function(){return _0x1f5c11;};return a33_0x52b6();}function a33_0x48ce(_0x5340b3,_0xec6046){_0x5340b3=_0x5340b3-0x145;const _0x52b6a6=a33_0x52b6();let _0x48cefc=_0x52b6a6[_0x5340b3];return _0x48cefc;}import{loadJSONFromOptions}from'../utils/json-loader.js';import{SDKError,ErrorCode}from'../sdk/index.js';import a33_0x128927 from'chalk';export class SegmentUpdateCommand extends BaseCommand{[a33_0x1ed5ff(0x16b)]=a33_0x1ed5ff(0x162);[a33_0x1ed5ff(0x167)]=a33_0x1ed5ff(0x15d);async[a33_0x1ed5ff(0x154)](_0x4f3470){const _0x352b3e=a33_0x1ed5ff;console['error'](a33_0x128927[_0x352b3e(0x158)](_0x352b3e(0x14c))),console[_0x352b3e(0x145)](a33_0x128927['yellow'](_0x352b3e(0x168)));const {options:_0x442546,args:_0x2fa561,tdx:_0x6ae5d4}=_0x4f3470,_0x125e75=_0x442546;if(_0x2fa561[_0x352b3e(0x166)]===0x0)return console[_0x352b3e(0x145)](_0x352b3e(0x172)),console['error'](_0x352b3e(0x177)),console['error'](_0x352b3e(0x14f)),console[_0x352b3e(0x145)]('\x20\x20tdx\x20segment\x20update\x20\x22My\x20Audience/High\x20Value\x22\x20--description\x20\x22...\x22'),console['error']('\x20\x20tdx\x20segment\x20update\x20\x22High\x20Value\x22\x20--rule\x20\x27...\x27\x20\x20#\x20Relative\x20to\x20context'),0x1;const _0x5a25ba=_0x2fa561[0x0],_0x2c89ef=_0x442546[_0x352b3e(0x16f)];let _0x38ae88=_0x5a25ba;_0x2c89ef&&!_0x5a25ba[_0x352b3e(0x171)]('/')&&(_0x38ae88=_0x2c89ef+'/'+_0x5a25ba,_0x125e75[_0x352b3e(0x16e)]&&console[_0x352b3e(0x145)](_0x352b3e(0x14a)+_0x38ae88));const _0x48d306=await withSpinner(_0x352b3e(0x179)+_0x38ae88+_0x352b3e(0x15a),()=>_0x6ae5d4['segment'][_0x352b3e(0x15c)](_0x38ae88),{'verbose':_0x125e75['verbose']}),_0x5bed06=_0x48d306[_0x352b3e(0x14d)];_0x125e75['verbose']&&console[_0x352b3e(0x145)](_0x352b3e(0x16c)+_0x5bed06['type']);if(_0x5bed06[_0x352b3e(0x148)]!=='segment')return console['error']('Error:\x20Cannot\x20update\x20'+_0x5bed06[_0x352b3e(0x148)]+_0x352b3e(0x155)),console[_0x352b3e(0x145)](_0x352b3e(0x14e)),0x1;if(!_0x5bed06[_0x352b3e(0x15e)])throw new SDKError(ErrorCode['INTERNAL'],'Segment\x20ID\x20missing\x20from\x20resolved\x20path');const _0x80df03=_0x5bed06[_0x352b3e(0x178)],_0x4cf403=_0x5bed06[_0x352b3e(0x15e)];_0x125e75[_0x352b3e(0x16e)]&&(console[_0x352b3e(0x145)](_0x352b3e(0x164)+_0x80df03),console['error'](_0x352b3e(0x174)+_0x4cf403));let _0x38f12c;if(_0x125e75[_0x352b3e(0x161)]){const _0x28efb5=_0x125e75[_0x352b3e(0x161)],_0x112a8e=await withSpinner(_0x352b3e(0x16a)+_0x28efb5+_0x352b3e(0x15a),()=>_0x6ae5d4[_0x352b3e(0x173)][_0x352b3e(0x176)](_0x80df03,_0x28efb5),{'verbose':_0x125e75[_0x352b3e(0x16e)]});_0x38f12c=parseInt(_0x112a8e[_0x352b3e(0x14d)],0xa),_0x125e75[_0x352b3e(0x16e)]&&console[_0x352b3e(0x145)](_0x352b3e(0x151)+_0x38f12c);}const _0x2395f1=await loadJSONFromOptions(_0x125e75[_0x352b3e(0x175)],_0x125e75[_0x352b3e(0x157)]),_0x186c1b={'name':_0x125e75[_0x352b3e(0x16b)],'description':_0x125e75[_0x352b3e(0x167)],'rule':_0x2395f1,'kind':_0x125e75['kind']!==undefined?parseInt(_0x125e75[_0x352b3e(0x16d)],0xa):undefined,'segmentFolderId':_0x38f12c},_0x55b955=await withSpinner('Updating\x20segment\x20\x27'+_0x5bed06[_0x352b3e(0x165)]+_0x352b3e(0x15a),()=>_0x6ae5d4[_0x352b3e(0x173)][_0x352b3e(0x153)](_0x80df03,_0x4cf403,_0x186c1b),{'verbose':_0x125e75[_0x352b3e(0x16e)]}),_0x4decf4=_0x55b955[_0x352b3e(0x14d)];return console[_0x352b3e(0x145)](_0x352b3e(0x159)+_0x4decf4['name']+'\x27'),_0x38ae88!==_0x5a25ba&&console[_0x352b3e(0x145)](_0x352b3e(0x14b)+_0x38ae88),await handleSDKOutput([_0x4decf4],_0x125e75),0x0;}}
1
+ const a33_0x46ca41=a33_0x36e3;(function(_0x502b4b,_0x42f947){const _0x1300ff=a33_0x36e3,_0x56c4f9=_0x502b4b();while(!![]){try{const _0x431bfa=parseInt(_0x1300ff(0x106))/0x1*(parseInt(_0x1300ff(0x103))/0x2)+parseInt(_0x1300ff(0x102))/0x3+-parseInt(_0x1300ff(0xf9))/0x4+parseInt(_0x1300ff(0xe7))/0x5+-parseInt(_0x1300ff(0xec))/0x6*(-parseInt(_0x1300ff(0xed))/0x7)+parseInt(_0x1300ff(0xe3))/0x8+-parseInt(_0x1300ff(0xdd))/0x9;if(_0x431bfa===_0x42f947)break;else _0x56c4f9['push'](_0x56c4f9['shift']());}catch(_0x211f63){_0x56c4f9['push'](_0x56c4f9['shift']());}}}(a33_0x51c0,0xc7ad3));import{BaseCommand}from'./command.js';function a33_0x51c0(){const _0x53d372=['includes','Parent\x20ID:\x20','5294452jEioPR','segmentName','.\x20Only\x20child\x20segments\x20can\x20be\x20updated.','\x20\x20tdx\x20segment\x20update\x20\x22High\x20Value\x22\x20--rule\x20\x27...\x27\x20\x20#\x20Relative\x20to\x20context','verbose','Examples:','execute','yellow','data','4661904fVTsAR','4rLIROV','Update\x20existing\x20child\x20segment','name','96253XxAseu','Segment\x20ID\x20missing\x20from\x20resolved\x20path','Resolving\x20path\x20\x27','error','\x20\x20\x20Path:\x20','30678849fExFAr','length','Error:\x20Cannot\x20update\x20','segment','Resolved\x20type:\x20','Error:\x20Segment\x20path\x20or\x20name\x20is\x20required','7558552QUZQFj','Resolved\x20relative\x20path\x20to:\x20','segmentId','description','7529915qxjdyw','\x27...','✔\x20Updated\x20segment\x20\x27','parentId','segment:update','6Grkjqz','9470811CeoNwD','kind','type','\x20\x20tdx\x20segment\x20update\x20\x22My\x20Audience/High\x20Value\x22\x20--description\x20\x22...\x22','Resolving\x20folder\x20\x27','Usage:\x20tdx\x20segment\x20update\x20<path>\x20[options]','⚠\x20Deprecation\x20warning:\x20`segment\x20update`\x20is\x20deprecated.','Resolved\x20folder\x20ID:\x20','resolvePathToResource','Updating\x20segment\x20\x27'];a33_0x51c0=function(){return _0x53d372;};return a33_0x51c0();}import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import{loadJSONFromOptions}from'../utils/json-loader.js';import{SDKError,ErrorCode}from'../sdk/index.js';function a33_0x36e3(_0x1c5a00,_0x42687b){_0x1c5a00=_0x1c5a00-0xdb;const _0x51c061=a33_0x51c0();let _0x36e357=_0x51c061[_0x1c5a00];return _0x36e357;}import a33_0x3cfe13 from'chalk';export class SegmentUpdateCommand extends BaseCommand{[a33_0x46ca41(0x105)]=a33_0x46ca41(0xeb);[a33_0x46ca41(0xe6)]=a33_0x46ca41(0x104);async[a33_0x46ca41(0xff)](_0x4955d4){const _0x3310d0=a33_0x46ca41;console['error'](a33_0x3cfe13[_0x3310d0(0x100)](_0x3310d0(0xf3))),console[_0x3310d0(0xdb)](a33_0x3cfe13[_0x3310d0(0x100)]('\x20\x20Use\x20`tdx\x20sg\x20push`\x20with\x20YAML\x20files\x20instead.\x0a'));const {options:_0x152141,args:_0x3f4b7a,tdx:_0xe3be6f}=_0x4955d4,_0x3bcf69=_0x152141;if(_0x3f4b7a[_0x3310d0(0xde)]===0x0)return console[_0x3310d0(0xdb)](_0x3310d0(0xe2)),console[_0x3310d0(0xdb)](_0x3310d0(0xf2)),console[_0x3310d0(0xdb)](_0x3310d0(0xfe)),console[_0x3310d0(0xdb)](_0x3310d0(0xf0)),console[_0x3310d0(0xdb)](_0x3310d0(0xfc)),0x1;const _0x136390=_0x3f4b7a[0x0],_0x5e392d=_0x152141['segmentPath'];let _0xa9568f=_0x136390;_0x5e392d&&!_0x136390[_0x3310d0(0xf7)]('/')&&(_0xa9568f=_0x5e392d+'/'+_0x136390,_0x3bcf69[_0x3310d0(0xfd)]&&console[_0x3310d0(0xdb)](_0x3310d0(0xe4)+_0xa9568f));const _0x288a34=await withSpinner(_0x3310d0(0x108)+_0xa9568f+'\x27...',()=>_0xe3be6f['segment'][_0x3310d0(0xf5)](_0xa9568f),{'verbose':_0x3bcf69[_0x3310d0(0xfd)]}),_0x46025a=_0x288a34[_0x3310d0(0x101)];_0x3bcf69['verbose']&&console[_0x3310d0(0xdb)](_0x3310d0(0xe1)+_0x46025a[_0x3310d0(0xef)]);if(_0x46025a[_0x3310d0(0xef)]!==_0x3310d0(0xe0))return console[_0x3310d0(0xdb)](_0x3310d0(0xdf)+_0x46025a['type']+_0x3310d0(0xfb)),console[_0x3310d0(0xdb)]('Use:\x20tdx\x20segment\x20update\x20<path_to_segment>\x20[options]'),0x1;if(!_0x46025a['segmentId'])throw new SDKError(ErrorCode['INTERNAL'],_0x3310d0(0x107));const _0x4ebc29=_0x46025a[_0x3310d0(0xea)],_0x407857=_0x46025a[_0x3310d0(0xe5)];_0x3bcf69['verbose']&&(console[_0x3310d0(0xdb)](_0x3310d0(0xf8)+_0x4ebc29),console[_0x3310d0(0xdb)]('Segment\x20ID:\x20'+_0x407857));let _0x1e9348;if(_0x3bcf69['folder']){const _0x41efab=_0x3bcf69['folder'],_0x1ed412=await withSpinner(_0x3310d0(0xf1)+_0x41efab+'\x27...',()=>_0xe3be6f[_0x3310d0(0xe0)]['resolveFolderId'](_0x4ebc29,_0x41efab),{'verbose':_0x3bcf69[_0x3310d0(0xfd)]});_0x1e9348=parseInt(_0x1ed412['data'],0xa),_0x3bcf69[_0x3310d0(0xfd)]&&console[_0x3310d0(0xdb)](_0x3310d0(0xf4)+_0x1e9348);}const _0xe1dafb=await loadJSONFromOptions(_0x3bcf69['rule'],_0x3bcf69['ruleFile']),_0x37fd4b={'name':_0x3bcf69[_0x3310d0(0x105)],'description':_0x3bcf69['description'],'rule':_0xe1dafb,'kind':_0x3bcf69[_0x3310d0(0xee)]!==undefined?parseInt(_0x3bcf69[_0x3310d0(0xee)],0xa):undefined,'segmentFolderId':_0x1e9348},_0x46f413=await withSpinner(_0x3310d0(0xf6)+_0x46025a[_0x3310d0(0xfa)]+_0x3310d0(0xe8),()=>_0xe3be6f[_0x3310d0(0xe0)]['updateSegmentById'](_0x4ebc29,_0x407857,_0x37fd4b),{'verbose':_0x3bcf69['verbose']}),_0x34c69c=_0x46f413[_0x3310d0(0x101)];return console[_0x3310d0(0xdb)](_0x3310d0(0xe9)+_0x34c69c['name']+'\x27'),_0xa9568f!==_0x136390&&console[_0x3310d0(0xdb)](_0x3310d0(0xdc)+_0xa9568f),await handleSDKOutput([_0x34c69c],_0x3bcf69),0x0;}}
@@ -1 +1 @@
1
- const a34_0x3a7fe2=a34_0x27c0;(function(_0x5ba080,_0x30a70a){const _0x35c0bf=a34_0x27c0,_0x44eafb=_0x5ba080();while(!![]){try{const _0x5d06a7=parseInt(_0x35c0bf(0x93))/0x1+parseInt(_0x35c0bf(0x9b))/0x2*(parseInt(_0x35c0bf(0x8a))/0x3)+-parseInt(_0x35c0bf(0xb0))/0x4*(parseInt(_0x35c0bf(0x8f))/0x5)+parseInt(_0x35c0bf(0x95))/0x6*(parseInt(_0x35c0bf(0xb4))/0x7)+parseInt(_0x35c0bf(0xa6))/0x8+parseInt(_0x35c0bf(0x8d))/0x9+-parseInt(_0x35c0bf(0x9a))/0xa;if(_0x5d06a7===_0x30a70a)break;else _0x44eafb['push'](_0x44eafb['shift']());}catch(_0x17821a){_0x44eafb['push'](_0x44eafb['shift']());}}}(a34_0x5b7a,0xd5b02));import{existsSync,statSync}from'fs';import a34_0x517a14 from'chalk';import{BaseCommand}from'./command.js';function a34_0x5b7a(){const _0x5e8f59=['1342942CIRETY','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','5907588qBxAbH','Error:\x20Path\x20is\x20required\x0a','fullPath','session','verbose','33303340gDWMVk','866XNBjwN','segment','parent_segment','Folder\x20ID:\x20','slice','parentName','Resolving\x20path\x20\x27','data','Error:\x20No\x20context\x20set.\x20Cannot\x20use\x20relative\x20path.','\x27...','\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience\x22','294928CSOnIo','description','length','Use\x20\x22tdx\x20use\x22\x20to\x20see\x20all\x20context\x20parameters','folderId','Target\x20path:\x20','Context\x20can\x20only\x20be\x20set\x20to\x20a\x20parent\x20segment\x20or\x20folder.','Use\x20\x22tdx\x20segments\x22\x20to\x20list\x20contents\x20in\x20this\x20context','red','cyan','13672FpNayE','✔\x20Context\x20cleared.\x20Back\x20to\x20root.','name','folderPath','7sbpSar','Resolved\x20path\x20type:\x20','join','isDirectory','config','Resolved\x20relative\x20path\x20to:\x20','Use:\x20tdx\x20segment\x20use\x20','execute','error','Examples:','\x20\x20tdx\x20segment\x20use\x20..\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Go\x20to\x20parent','segment:use','split','dim','Use\x20an\x20absolute\x20path\x20or\x20set\x20context\x20with:\x20tdx\x20segment\x20use\x20<parent_name>','\x20\x20tdx\x20segment\x20use\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20context','11031rksLyB','✔\x20Context\x20set\x20to:\x20','log','9101403KngYVH','parentId','1115RTSnTe','green','Error:\x20Cannot\x20set\x20context\x20to\x20a\x20segment.','Parent\x20ID:\x20'];a34_0x5b7a=function(){return _0x5e8f59;};return a34_0x5b7a();}function a34_0x27c0(_0x4ae82f,_0x264d84){_0x4ae82f=_0x4ae82f-0x86;const _0x5b7ae8=a34_0x5b7a();let _0x27c0de=_0x5b7ae8[_0x4ae82f];return _0x27c0de;}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';export class SegmentUseCommand extends BaseCommand{[a34_0x3a7fe2(0xb2)]=a34_0x3a7fe2(0xbf);[a34_0x3a7fe2(0xa7)]=a34_0x3a7fe2(0x94);async[a34_0x3a7fe2(0xbb)](_0x5eb218){const _0x2e5194=a34_0x3a7fe2,{options:_0x5159b6,args:_0x6da920,tdx:_0x2e410f}=_0x5eb218;if(_0x6da920[_0x2e5194(0xa8)]===0x0)return console['error'](a34_0x517a14['red'](_0x2e5194(0x96))),console[_0x2e5194(0xbc)]('Usage:\x20tdx\x20segment\x20use\x20<path>'),console[_0x2e5194(0xbc)](_0x2e5194(0xbd)),console[_0x2e5194(0xbc)](_0x2e5194(0xa5)),console[_0x2e5194(0xbc)]('\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience/Marketing\x22'),console[_0x2e5194(0xbc)](_0x2e5194(0x89)),console[_0x2e5194(0xbc)](_0x2e5194(0xbe)),0x1;const _0x18a6fd=_0x6da920[0x0],_0x3e93c4=_0x5159b6[_0x2e5194(0x98)];try{if(_0x18a6fd==='/')return saveSessionContext({'segment_path':undefined},_0x3e93c4),console['log'](a34_0x517a14[_0x2e5194(0x90)](_0x2e5194(0xb1))),0x0;if(existsSync(_0x18a6fd)&&statSync(_0x18a6fd)[_0x2e5194(0xb7)]()){let _0x3d88fe;try{_0x3d88fe=findTdxConfig(_0x18a6fd);}catch{return console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0xae)]('Error:\x20No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x18a6fd)),console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0xaf)]('Tip:\x20Run\x20`tdx\x20sg\x20pull\x20<parent_name>`\x20first\x20to\x20create\x20the\x20folder\x20structure')),0x1;}const _0x2ff899=_0x3d88fe[_0x2e5194(0xb8)][_0x2e5194(0x9d)];return saveSessionContext({'segment_path':_0x2ff899,'parent_segment':_0x2ff899},_0x3e93c4),console[_0x2e5194(0x8c)](a34_0x517a14[_0x2e5194(0x90)](_0x2e5194(0x8b)+a34_0x517a14[_0x2e5194(0xaf)](_0x2ff899))),0x0;}const _0x5ef293=_0x5159b6['segmentPath'];let _0x35cc71=_0x18a6fd;const _0xcc4a6b=parsePath(_0x18a6fd);if(!_0xcc4a6b['isAbsolute']){if(!_0x5ef293)return console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0xae)](_0x2e5194(0xa3))),console['error'](a34_0x517a14['cyan'](_0x2e5194(0x88))),0x1;if(_0x18a6fd==='..'){const _0x5e9731=_0x5ef293[_0x2e5194(0x86)]('/')[_0x2e5194(0x9f)](0x0,-0x1)[_0x2e5194(0xb6)]('/');_0x35cc71=_0x5e9731||'/';}else _0x18a6fd==='.'?_0x35cc71=_0x5ef293:_0x35cc71=_0x5ef293+'/'+_0x18a6fd;_0x5159b6[_0x2e5194(0x99)]&&console[_0x2e5194(0xbc)](_0x2e5194(0xb9)+_0x35cc71);}if(_0x35cc71==='/'||_0x35cc71==='')return saveSessionContext({'segment_path':undefined},_0x3e93c4),console['log'](a34_0x517a14['green'](_0x2e5194(0xb1))),0x0;_0x35cc71=normalizePath(_0x35cc71);const _0x40e142=parsePath(_0x35cc71)['segments'];if(_0x40e142['length']===0x0)return saveSessionContext({'segment_path':undefined},_0x3e93c4),console['log'](a34_0x517a14['green'](_0x2e5194(0xb1))),0x0;_0x5159b6[_0x2e5194(0x99)]&&(console[_0x2e5194(0xbc)]('Site:\x20'+_0x5159b6['site']),console['error'](_0x2e5194(0xab)+_0x35cc71));const _0x31b673=await withSpinner(_0x2e5194(0xa1)+_0x35cc71+_0x2e5194(0xa4),()=>_0x2e410f[_0x2e5194(0x9c)]['resolvePathToResource'](_0x35cc71),{'verbose':_0x5159b6[_0x2e5194(0x99)]}),_0x2861ab=_0x31b673[_0x2e5194(0xa2)];_0x5159b6[_0x2e5194(0x99)]&&(console[_0x2e5194(0xbc)](_0x2e5194(0xb5)+_0x2861ab['type']),console[_0x2e5194(0xbc)](_0x2e5194(0x92)+_0x2861ab[_0x2e5194(0x8e)]),_0x2861ab[_0x2e5194(0xaa)]&&console['error'](_0x2e5194(0x9e)+_0x2861ab[_0x2e5194(0xaa)]));if(_0x2861ab['type']===_0x2e5194(0x9c))return console[_0x2e5194(0xbc)](a34_0x517a14['red'](_0x2e5194(0x91))),console['error'](_0x2e5194(0xac)),console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0xaf)](_0x2e5194(0xba)+_0x2861ab[_0x2e5194(0xa0)]+(_0x2861ab[_0x2e5194(0xb3)]?'/'+_0x2861ab[_0x2e5194(0xb3)][_0x2e5194(0xb6)]('/'):''))),0x1;return saveSessionContext({'segment_path':_0x2861ab['fullPath'],'parent_segment':_0x2861ab['parentName']},_0x3e93c4),console[_0x2e5194(0x8c)](a34_0x517a14[_0x2e5194(0x90)](_0x2e5194(0x8b)+a34_0x517a14[_0x2e5194(0xaf)](_0x2861ab[_0x2e5194(0x97)]))),_0x5159b6[_0x2e5194(0x99)]&&(console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0x87)](_0x2e5194(0xad))),console[_0x2e5194(0xbc)](a34_0x517a14[_0x2e5194(0x87)](_0x2e5194(0xa9)))),0x0;}catch(_0x1f5f06){throw _0x1f5f06;}}}
1
+ function a34_0x1a59(_0x549b83,_0x4b1e92){_0x549b83=_0x549b83-0xf6;const _0x5fc276=a34_0x5fc2();let _0x1a597e=_0x5fc276[_0x549b83];return _0x1a597e;}const a34_0x52f42f=a34_0x1a59;(function(_0x4db574,_0x513dcd){const _0x2e3043=a34_0x1a59,_0x29094a=_0x4db574();while(!![]){try{const _0x1268ae=-parseInt(_0x2e3043(0x124))/0x1*(parseInt(_0x2e3043(0xfd))/0x2)+-parseInt(_0x2e3043(0xf7))/0x3*(parseInt(_0x2e3043(0x127))/0x4)+parseInt(_0x2e3043(0x120))/0x5*(parseInt(_0x2e3043(0x12d))/0x6)+parseInt(_0x2e3043(0x114))/0x7+parseInt(_0x2e3043(0x108))/0x8+parseInt(_0x2e3043(0x116))/0x9+-parseInt(_0x2e3043(0x115))/0xa*(parseInt(_0x2e3043(0x10f))/0xb);if(_0x1268ae===_0x513dcd)break;else _0x29094a['push'](_0x29094a['shift']());}catch(_0x4b45ca){_0x29094a['push'](_0x29094a['shift']());}}}(a34_0x5fc2,0x39c99));import{existsSync,statSync}from'fs';import a34_0x23ee4a from'chalk';function a34_0x5fc2(){const _0x1f1fad=['parentName','log','data','2VtQZAa','isAbsolute','config','628bDCLfH','site','segmentPath','Use\x20an\x20absolute\x20path\x20or\x20set\x20context\x20with:\x20tdx\x20segment\x20use\x20<parent_name>','Set\x20current\x20segment/folder\x20context\x20for\x20navigation','\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience/Marketing\x22','6FFeeQm','folderPath','1266mIYnQn','join','\x20\x20tdx\x20segment\x20use\x20..\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Go\x20to\x20parent','fullPath','Use:\x20tdx\x20segment\x20use\x20','length','97774ionmRZ','Resolving\x20path\x20\x27','folderId','Parent\x20ID:\x20','red','type','execute','green','segment','error','Folder\x20ID:\x20','1707632VkHtcY','Resolved\x20path\x20type:\x20','parent_segment','Error:\x20No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','Tip:\x20Run\x20`tdx\x20sg\x20pull\x20<parent_name>`\x20first\x20to\x20create\x20the\x20folder\x20structure','verbose','\x20\x20tdx\x20segment\x20use\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20context','4972451vGjJyL','Use\x20\x22tdx\x20use\x22\x20to\x20see\x20all\x20context\x20parameters','description','\x20\x20tdx\x20segment\x20use\x20\x22My\x20Audience\x22','✔\x20Context\x20cleared.\x20Back\x20to\x20root.','2370186jMnLwE','20waSobz','3366576RKNozI','dim','Error:\x20Path\x20is\x20required\x0a','Usage:\x20tdx\x20segment\x20use\x20<path>','✔\x20Context\x20set\x20to:\x20','cyan','name','Error:\x20No\x20context\x20set.\x20Cannot\x20use\x20relative\x20path.','segment:use','Examples:','1893455bDgNYo'];a34_0x5fc2=function(){return _0x1f1fad;};return a34_0x5fc2();}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';export class SegmentUseCommand extends BaseCommand{[a34_0x52f42f(0x11c)]=a34_0x52f42f(0x11e);[a34_0x52f42f(0x111)]=a34_0x52f42f(0x12b);async[a34_0x52f42f(0x103)](_0x4f0d62){const _0x50c6c3=a34_0x52f42f,{options:_0x442d9f,args:_0x3bf276,tdx:_0x2694e7}=_0x4f0d62;if(_0x3bf276[_0x50c6c3(0xfc)]===0x0)return console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x101)](_0x50c6c3(0x118))),console[_0x50c6c3(0x106)](_0x50c6c3(0x119)),console[_0x50c6c3(0x106)](_0x50c6c3(0x11f)),console['error'](_0x50c6c3(0x112)),console['error'](_0x50c6c3(0x12c)),console[_0x50c6c3(0x106)](_0x50c6c3(0x10e)),console['error'](_0x50c6c3(0xf9)),0x1;const _0x58ed57=_0x3bf276[0x0],_0x1d355b=_0x442d9f['session'];try{if(_0x58ed57==='/')return saveSessionContext({'segment_path':undefined},_0x1d355b),console[_0x50c6c3(0x122)](a34_0x23ee4a['green'](_0x50c6c3(0x113))),0x0;if(existsSync(_0x58ed57)&&statSync(_0x58ed57)['isDirectory']()){let _0x2ca323;try{_0x2ca323=findTdxConfig(_0x58ed57);}catch{return console[_0x50c6c3(0x106)](a34_0x23ee4a['red'](_0x50c6c3(0x10b)+_0x58ed57)),console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x11b)](_0x50c6c3(0x10c))),0x1;}const _0x10f8b5=_0x2ca323[_0x50c6c3(0x126)][_0x50c6c3(0x10a)];return saveSessionContext({'segment_path':_0x10f8b5,'parent_segment':_0x10f8b5},_0x1d355b),console[_0x50c6c3(0x122)](a34_0x23ee4a[_0x50c6c3(0x104)](_0x50c6c3(0x11a)+a34_0x23ee4a[_0x50c6c3(0x11b)](_0x10f8b5))),0x0;}const _0xdd2b31=_0x442d9f[_0x50c6c3(0x129)];let _0x1ae556=_0x58ed57;const _0x594cbb=parsePath(_0x58ed57);if(!_0x594cbb[_0x50c6c3(0x125)]){if(!_0xdd2b31)return console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x101)](_0x50c6c3(0x11d))),console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x11b)](_0x50c6c3(0x12a))),0x1;if(_0x58ed57==='..'){const _0x34f6b9=_0xdd2b31['split']('/')['slice'](0x0,-0x1)[_0x50c6c3(0xf8)]('/');_0x1ae556=_0x34f6b9||'/';}else _0x58ed57==='.'?_0x1ae556=_0xdd2b31:_0x1ae556=_0xdd2b31+'/'+_0x58ed57;_0x442d9f[_0x50c6c3(0x10d)]&&console[_0x50c6c3(0x106)]('Resolved\x20relative\x20path\x20to:\x20'+_0x1ae556);}if(_0x1ae556==='/'||_0x1ae556==='')return saveSessionContext({'segment_path':undefined},_0x1d355b),console['log'](a34_0x23ee4a[_0x50c6c3(0x104)](_0x50c6c3(0x113))),0x0;_0x1ae556=normalizePath(_0x1ae556);const _0x191b75=parsePath(_0x1ae556)['segments'];if(_0x191b75[_0x50c6c3(0xfc)]===0x0)return saveSessionContext({'segment_path':undefined},_0x1d355b),console['log'](a34_0x23ee4a[_0x50c6c3(0x104)](_0x50c6c3(0x113))),0x0;_0x442d9f[_0x50c6c3(0x10d)]&&(console[_0x50c6c3(0x106)]('Site:\x20'+_0x442d9f[_0x50c6c3(0x128)]),console[_0x50c6c3(0x106)]('Target\x20path:\x20'+_0x1ae556));const _0x3d936c=await withSpinner(_0x50c6c3(0xfe)+_0x1ae556+'\x27...',()=>_0x2694e7['segment']['resolvePathToResource'](_0x1ae556),{'verbose':_0x442d9f['verbose']}),_0x2cd346=_0x3d936c[_0x50c6c3(0x123)];_0x442d9f[_0x50c6c3(0x10d)]&&(console[_0x50c6c3(0x106)](_0x50c6c3(0x109)+_0x2cd346[_0x50c6c3(0x102)]),console[_0x50c6c3(0x106)](_0x50c6c3(0x100)+_0x2cd346['parentId']),_0x2cd346[_0x50c6c3(0xff)]&&console[_0x50c6c3(0x106)](_0x50c6c3(0x107)+_0x2cd346[_0x50c6c3(0xff)]));if(_0x2cd346[_0x50c6c3(0x102)]===_0x50c6c3(0x105))return console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x101)]('Error:\x20Cannot\x20set\x20context\x20to\x20a\x20segment.')),console['error']('Context\x20can\x20only\x20be\x20set\x20to\x20a\x20parent\x20segment\x20or\x20folder.'),console['error'](a34_0x23ee4a['cyan'](_0x50c6c3(0xfb)+_0x2cd346[_0x50c6c3(0x121)]+(_0x2cd346['folderPath']?'/'+_0x2cd346[_0x50c6c3(0xf6)][_0x50c6c3(0xf8)]('/'):''))),0x1;return saveSessionContext({'segment_path':_0x2cd346[_0x50c6c3(0xfa)],'parent_segment':_0x2cd346[_0x50c6c3(0x121)]},_0x1d355b),console[_0x50c6c3(0x122)](a34_0x23ee4a[_0x50c6c3(0x104)]('✔\x20Context\x20set\x20to:\x20'+a34_0x23ee4a[_0x50c6c3(0x11b)](_0x2cd346[_0x50c6c3(0xfa)]))),_0x442d9f[_0x50c6c3(0x10d)]&&(console[_0x50c6c3(0x106)](a34_0x23ee4a['dim']('Use\x20\x22tdx\x20segments\x22\x20to\x20list\x20contents\x20in\x20this\x20context')),console[_0x50c6c3(0x106)](a34_0x23ee4a[_0x50c6c3(0x117)](_0x50c6c3(0x110)))),0x0;}catch(_0x57fff2){throw _0x57fff2;}}}
@@ -1 +1 @@
1
- const a35_0x2e8788=a35_0x55a9;(function(_0x1ab76a,_0x5a248b){const _0x54ebef=a35_0x55a9,_0x3f85a2=_0x1ab76a();while(!![]){try{const _0x3501f5=parseInt(_0x54ebef(0x12b))/0x1+parseInt(_0x54ebef(0x137))/0x2*(parseInt(_0x54ebef(0x152))/0x3)+parseInt(_0x54ebef(0x144))/0x4*(parseInt(_0x54ebef(0x14a))/0x5)+-parseInt(_0x54ebef(0x12d))/0x6+-parseInt(_0x54ebef(0x13f))/0x7*(-parseInt(_0x54ebef(0x12e))/0x8)+parseInt(_0x54ebef(0x134))/0x9*(-parseInt(_0x54ebef(0x143))/0xa)+parseInt(_0x54ebef(0x149))/0xb*(parseInt(_0x54ebef(0x13c))/0xc);if(_0x3501f5===_0x5a248b)break;else _0x3f85a2['push'](_0x3f85a2['shift']());}catch(_0x140513){_0x3f85a2['push'](_0x3f85a2['shift']());}}}(a35_0x9925,0x1b938));import{BaseCommand}from'./command.js';import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';import{existsSync}from'fs';function a35_0x55a9(_0x34fce6,_0x1880a1){_0x34fce6=_0x34fce6-0x128;const _0x9925cc=a35_0x9925();let _0x55a922=_0x9925cc[_0x34fce6];return _0x55a922;}function a35_0x9925(){const _0x2e9fc3=['cwd','yellow','\x20warning(s)','\x20warning(s)\x20found','\x20valid','Error:\x20','errorCode','endsWith','length','validCount','.yml','invalidCount','59221PHrlap','Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20','946464YhUqkM','126808UHPBCm','valid','\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','no_parent','filePath','log','45wifACW','error','hasErrors','96604aAKSwU','dim','\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file','errors','.yaml','12LVkgJh','targetDir','Validation\x20failed:\x20','7ZflOoY','verbose','warnings','✔\x20All\x20','10340apnasl','96372zBcDrF','green','Error:\x20Directory\x20not\x20found:\x20','type','message','1412389HuASCw','5pauEVw','helpText','parentSegment','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','name','red','\x20error(s)','warningCount','3bXqTnP'];a35_0x9925=function(){return _0x2e9fc3;};return a35_0x9925();}import a35_0x425249 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{[a35_0x2e8788(0x14e)]='segment:validate';['description']='Validate\x20segment\x20and\x20journey\x20YAML\x20files';async['execute'](_0x54b4a6){const _0x2f41f5=a35_0x2e8788,{options:_0x33b24f,args:_0x368489}=_0x54b4a6,_0x9baa7a=_0x33b24f,_0x14c292=await resolveTarget({'arg':_0x368489[0x0],'contextParent':_0x33b24f[_0x2f41f5(0x14c)],'cwd':process[_0x2f41f5(0x153)]()});if(!isSuccessfulResolution(_0x14c292))return _0x14c292[_0x2f41f5(0x159)]===_0x2f41f5(0x131)?(console[_0x2f41f5(0x135)](a35_0x425249[_0x2f41f5(0x154)](_0x2f41f5(0x14d))),console[_0x2f41f5(0x135)]('Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)'),console[_0x2f41f5(0x135)](_0x2f41f5(0x130)),console[_0x2f41f5(0x135)](_0x2f41f5(0x139))):(console[_0x2f41f5(0x135)](a35_0x425249[_0x2f41f5(0x14f)](_0x2f41f5(0x158)+_0x14c292[_0x2f41f5(0x148)]+'\x0a')),_0x14c292[_0x2f41f5(0x14b)]&&console['error'](a35_0x425249['cyan'](_0x14c292[_0x2f41f5(0x14b)]))),0x1;const _0x772a7c=_0x14c292[_0x2f41f5(0x13d)],_0x3e6586=_0x14c292[_0x2f41f5(0x147)]==='file'?_0x14c292[_0x2f41f5(0x132)]:undefined;if(!_0x3e6586&&!existsSync(_0x772a7c))return console[_0x2f41f5(0x135)](a35_0x425249[_0x2f41f5(0x14f)](_0x2f41f5(0x146)+_0x772a7c+'\x0a')),0x1;let _0x4ef55b;if(_0x3e6586){if(!_0x3e6586[_0x2f41f5(0x15a)](_0x2f41f5(0x129))&&!_0x3e6586[_0x2f41f5(0x15a)](_0x2f41f5(0x13b)))return console[_0x2f41f5(0x135)](a35_0x425249['red'](_0x2f41f5(0x12c)+_0x3e6586+'\x0a')),0x1;_0x4ef55b=[_0x3e6586];}else _0x4ef55b=findYamlFiles(_0x772a7c);if(_0x4ef55b[_0x2f41f5(0x15b)]===0x0)return console[_0x2f41f5(0x135)](a35_0x425249[_0x2f41f5(0x14f)]('Error:\x20No\x20YAML\x20files\x20found\x20in\x20'+_0x772a7c+'\x0a')),0x1;const _0x4508e5=validateYamlFiles(_0x4ef55b,_0x772a7c),_0xbaa7b9=calculateSummary(_0x4508e5);for(const _0x2c8a2c of _0x4508e5){if(!isValidationResult(_0x2c8a2c))continue;const {relativePath:_0x2ad25b,source:_0x3ebfad,result:_0x41ea2c,fileType:_0x1e131e}=_0x2c8a2c,_0x367033=_0x1e131e;if(_0x41ea2c[_0x2f41f5(0x12f)]&&_0x41ea2c[_0x2f41f5(0x141)][_0x2f41f5(0x15b)]===0x0)_0x9baa7a[_0x2f41f5(0x140)]&&console[_0x2f41f5(0x133)](a35_0x425249[_0x2f41f5(0x145)]('✔\x20'+_0x2ad25b)+a35_0x425249[_0x2f41f5(0x138)]('\x20('+_0x367033+')'));else _0x41ea2c[_0x2f41f5(0x12f)]?(console[_0x2f41f5(0x133)](a35_0x425249['yellow']('⚠\x20'+_0x2ad25b)+a35_0x425249[_0x2f41f5(0x138)]('\x20('+_0x367033+'):\x20'+_0x41ea2c[_0x2f41f5(0x141)][_0x2f41f5(0x15b)]+_0x2f41f5(0x155))),console[_0x2f41f5(0x133)](formatValidationResult(_0x41ea2c,_0x3ebfad,_0x2ad25b))):(console[_0x2f41f5(0x133)](a35_0x425249['red']('✖\x20'+_0x2ad25b)+a35_0x425249[_0x2f41f5(0x138)]('\x20('+_0x367033+'):\x20'+_0x41ea2c[_0x2f41f5(0x13a)][_0x2f41f5(0x15b)]+_0x2f41f5(0x150))),console[_0x2f41f5(0x133)](formatValidationResult(_0x41ea2c,_0x3ebfad,_0x2ad25b)));}return console[_0x2f41f5(0x133)](''),_0xbaa7b9[_0x2f41f5(0x136)]?(console['log'](a35_0x425249[_0x2f41f5(0x14f)](_0x2f41f5(0x13e)+_0xbaa7b9[_0x2f41f5(0x12a)]+'\x20file(s)\x20with\x20errors,\x20'+_0xbaa7b9[_0x2f41f5(0x128)]+_0x2f41f5(0x157))),_0xbaa7b9[_0x2f41f5(0x151)]>0x0&&console[_0x2f41f5(0x133)](a35_0x425249[_0x2f41f5(0x154)](_0xbaa7b9[_0x2f41f5(0x151)]+_0x2f41f5(0x156))),0x1):(console['log'](a35_0x425249[_0x2f41f5(0x145)](_0x2f41f5(0x142)+_0xbaa7b9['validCount']+'\x20file(s)\x20valid')),_0xbaa7b9[_0x2f41f5(0x151)]>0x0&&console['log'](a35_0x425249[_0x2f41f5(0x154)](_0xbaa7b9[_0x2f41f5(0x151)]+_0x2f41f5(0x156))),0x0);}}
1
+ function a35_0x54a0(){const _0x517832=['helpText','error','green','invalidCount','.yaml','\x20valid','):\x20','log','65Tpkyjv','red','\x20\x20\x20\x20\x20\x20\x20tdx\x20sg\x20validate\x20<file_path>\x20\x20#\x20Validate\x20specific\x20file','\x20warning(s)\x20found','endsWith','Validation\x20failed:\x20','warnings','length','parentSegment','Error:\x20','type','40mbxtQI','\x20file(s)\x20valid','\x20warning(s)','\x20error(s)','message','\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','no_parent','execute','24VFeXML','valid','dim','112870GHTVXl','473iWwhhK','warningCount','name','1614718rAKlje','Usage:\x20tdx\x20sg\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20all\x20(requires\x20context)','Error:\x20Directory\x20not\x20found:\x20','hasErrors','Error:\x20No\x20YAML\x20files\x20found\x20in\x20','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20sg\x20use\x20<parent_name>`\x20to\x20set\x20it.\x0a','filePath','validCount','2813076RVntwt','✔\x20All\x20','11531736YXUlCd','72264HfWAJp','yellow','.yml','targetDir','segment:validate','301071EnEPBH','44919ODICuA','verbose'];a35_0x54a0=function(){return _0x517832;};return a35_0x54a0();}const a35_0x4a8fe2=a35_0x5c2f;function a35_0x5c2f(_0x481346,_0x391a68){_0x481346=_0x481346-0x15a;const _0x54a025=a35_0x54a0();let _0x5c2f7a=_0x54a025[_0x481346];return _0x5c2f7a;}(function(_0xb17efb,_0x23a56d){const _0x2404dc=a35_0x5c2f,_0x386c0b=_0xb17efb();while(!![]){try{const _0x2a9730=parseInt(_0x2404dc(0x187))/0x1+-parseInt(_0x2404dc(0x176))/0x2+-parseInt(_0x2404dc(0x186))/0x3*(-parseInt(_0x2404dc(0x167))/0x4)+-parseInt(_0x2404dc(0x15c))/0x5*(parseInt(_0x2404dc(0x181))/0x6)+parseInt(_0x2404dc(0x17e))/0x7*(-parseInt(_0x2404dc(0x16f))/0x8)+parseInt(_0x2404dc(0x180))/0x9+parseInt(_0x2404dc(0x172))/0xa*(parseInt(_0x2404dc(0x173))/0xb);if(_0x2a9730===_0x23a56d)break;else _0x386c0b['push'](_0x386c0b['shift']());}catch(_0xbf3163){_0x386c0b['push'](_0x386c0b['shift']());}}}(a35_0x54a0,0x9d9df));import{BaseCommand}from'./command.js';import{resolveTarget,isSuccessfulResolution}from'../sdk/segment/target-resolution.js';import{findYamlFiles}from'../sdk/segment/file-discovery.js';import{existsSync}from'fs';import a35_0x1be99c 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{[a35_0x4a8fe2(0x175)]=a35_0x4a8fe2(0x185);['description']='Validate\x20segment\x20and\x20journey\x20YAML\x20files';async[a35_0x4a8fe2(0x16e)](_0x7212d1){const _0x562552=a35_0x4a8fe2,{options:_0x350d49,args:_0x545ce6}=_0x7212d1,_0x159863=_0x350d49,_0x439872=await resolveTarget({'arg':_0x545ce6[0x0],'contextParent':_0x350d49[_0x562552(0x164)],'cwd':process['cwd']()});if(!isSuccessfulResolution(_0x439872))return _0x439872['errorCode']===_0x562552(0x16d)?(console['error'](a35_0x1be99c['yellow'](_0x562552(0x17b))),console[_0x562552(0x18a)](_0x562552(0x177)),console['error'](_0x562552(0x16c)),console[_0x562552(0x18a)](_0x562552(0x15e))):(console[_0x562552(0x18a)](a35_0x1be99c['red'](_0x562552(0x165)+_0x439872[_0x562552(0x16b)]+'\x0a')),_0x439872[_0x562552(0x189)]&&console[_0x562552(0x18a)](a35_0x1be99c['cyan'](_0x439872[_0x562552(0x189)]))),0x1;const _0x46acdf=_0x439872[_0x562552(0x184)],_0x28581a=_0x439872[_0x562552(0x166)]==='file'?_0x439872[_0x562552(0x17c)]:undefined;if(!_0x28581a&&!existsSync(_0x46acdf))return console['error'](a35_0x1be99c['red'](_0x562552(0x178)+_0x46acdf+'\x0a')),0x1;let _0x36085a;if(_0x28581a){if(!_0x28581a[_0x562552(0x160)](_0x562552(0x183))&&!_0x28581a['endsWith'](_0x562552(0x18d)))return console['error'](a35_0x1be99c[_0x562552(0x15d)]('Error:\x20File\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension:\x20'+_0x28581a+'\x0a')),0x1;_0x36085a=[_0x28581a];}else _0x36085a=findYamlFiles(_0x46acdf);if(_0x36085a[_0x562552(0x163)]===0x0)return console[_0x562552(0x18a)](a35_0x1be99c[_0x562552(0x15d)](_0x562552(0x17a)+_0x46acdf+'\x0a')),0x1;const _0x123559=validateYamlFiles(_0x36085a,_0x46acdf),_0x1570a1=calculateSummary(_0x123559);for(const _0x1e2037 of _0x123559){if(!isValidationResult(_0x1e2037))continue;const {relativePath:_0x33ac14,source:_0x564aa7,result:_0x347c2a,fileType:_0x529e00}=_0x1e2037,_0x47f23b=_0x529e00;if(_0x347c2a[_0x562552(0x170)]&&_0x347c2a[_0x562552(0x162)]['length']===0x0)_0x159863[_0x562552(0x188)]&&console[_0x562552(0x15b)](a35_0x1be99c[_0x562552(0x18b)]('✔\x20'+_0x33ac14)+a35_0x1be99c[_0x562552(0x171)]('\x20('+_0x47f23b+')'));else _0x347c2a[_0x562552(0x170)]?(console[_0x562552(0x15b)](a35_0x1be99c[_0x562552(0x182)]('⚠\x20'+_0x33ac14)+a35_0x1be99c[_0x562552(0x171)]('\x20('+_0x47f23b+_0x562552(0x15a)+_0x347c2a[_0x562552(0x162)][_0x562552(0x163)]+_0x562552(0x169))),console[_0x562552(0x15b)](formatValidationResult(_0x347c2a,_0x564aa7,_0x33ac14))):(console['log'](a35_0x1be99c[_0x562552(0x15d)]('✖\x20'+_0x33ac14)+a35_0x1be99c[_0x562552(0x171)]('\x20('+_0x47f23b+_0x562552(0x15a)+_0x347c2a['errors'][_0x562552(0x163)]+_0x562552(0x16a))),console['log'](formatValidationResult(_0x347c2a,_0x564aa7,_0x33ac14)));}return console[_0x562552(0x15b)](''),_0x1570a1[_0x562552(0x179)]?(console[_0x562552(0x15b)](a35_0x1be99c[_0x562552(0x15d)](_0x562552(0x161)+_0x1570a1[_0x562552(0x18c)]+'\x20file(s)\x20with\x20errors,\x20'+_0x1570a1[_0x562552(0x17d)]+_0x562552(0x18e))),_0x1570a1[_0x562552(0x174)]>0x0&&console[_0x562552(0x15b)](a35_0x1be99c[_0x562552(0x182)](_0x1570a1[_0x562552(0x174)]+'\x20warning(s)\x20found')),0x1):(console[_0x562552(0x15b)](a35_0x1be99c['green'](_0x562552(0x17f)+_0x1570a1['validCount']+_0x562552(0x168))),_0x1570a1[_0x562552(0x174)]>0x0&&console[_0x562552(0x15b)](a35_0x1be99c[_0x562552(0x182)](_0x1570a1[_0x562552(0x174)]+_0x562552(0x15f))),0x0);}}
@@ -1 +1 @@
1
- const a36_0x21a93f=a36_0x4586;function a36_0x4586(_0x2d23e,_0x1727ae){_0x2d23e=_0x2d23e-0x174;const _0x30856f=a36_0x3085();let _0x45867e=_0x30856f[_0x2d23e];return _0x45867e;}(function(_0x14c90a,_0x19f5d7){const _0x4466d4=a36_0x4586,_0x352fc1=_0x14c90a();while(!![]){try{const _0x3813f3=parseInt(_0x4466d4(0x19d))/0x1+parseInt(_0x4466d4(0x182))/0x2*(parseInt(_0x4466d4(0x190))/0x3)+parseInt(_0x4466d4(0x1a7))/0x4+parseInt(_0x4466d4(0x199))/0x5+parseInt(_0x4466d4(0x1a9))/0x6*(-parseInt(_0x4466d4(0x1b7))/0x7)+parseInt(_0x4466d4(0x1a3))/0x8+-parseInt(_0x4466d4(0x1ab))/0x9*(parseInt(_0x4466d4(0x1bd))/0xa);if(_0x3813f3===_0x19f5d7)break;else _0x352fc1['push'](_0x352fc1['shift']());}catch(_0x446b8e){_0x352fc1['push'](_0x352fc1['shift']());}}}(a36_0x3085,0xe71c0));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import{formatFlatList,formatTree}from'../sdk/util/tree-formatter.js';import{getConsoleNextUrl}from'../sdk/client/endpoints.js';function a36_0x3085(){const _0x4a937c=['\x20folder','length','description','4000900SLRMew','maxDepth','606SGWCtW','localeCompare','18279783dqDfjy','error','format','message','type','Listing\x20folders,\x20segments,\x20and\x20journeys...','Folder\x20ID:\x20','/app/ps/','includes','Folder/pattern\x20arg:\x20','✔\x20Built\x20tree\x20with\x20','data','60641fxFPEv','journey','map','Parent\x20ID:\x20','folder','segments','10OXekmm','test','Resolving\x20path\x20\x27','Error:\x20No\x20parent\x20segment\x20context\x20set.','No\x20items\x20match\x20pattern:\x20','folders','execute','Site:\x20','journeys','filter','name','jsonl','\x20journey','Parent\x20segment\x20context:\x20','json','listUnified','listRecursive','✔\x20Found\x20','cause','\x27...','48332sWBdnB','\x20segment','verbose',']\x20matching\x20\x27','children','folderId','resolvePathToResource','segment','List\x20folders\x20and\x20child\x20segments','(not\x20set)','sort','site','recursive','/e/','75cnoQUO','journeyBundleName','\x5c$&','/j/da',',\x20and\x20','\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22','listWithPattern','Building\x20hierarchy\x20tree...','Error:\x20','5418670eplEki','Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.','listUnifiedWithJourneys','\x20matching\x20\x27','878349RxYDlu','Resolving\x20parent\x20segment\x20\x27','dim','parentId','replace','log','2289728nJPqJm'];a36_0x3085=function(){return _0x4a937c;};return a36_0x3085();}import a36_0x3d0924 from'chalk';export class SegmentsCommand extends BaseCommand{[a36_0x21a93f(0x178)]=a36_0x21a93f(0x1bc);[a36_0x21a93f(0x1a6)]=a36_0x21a93f(0x18a);async[a36_0x21a93f(0x174)](_0xb39b7c){const _0x12768a=a36_0x21a93f,{options:_0x588c14,args:_0x357d6b}=_0xb39b7c,_0x55dca1=_0x588c14[_0x12768a(0x18e)],_0x5f4b47=_0x357d6b[0x0];try{const _0x2c99ba=_0x588c14['parentSegment'];_0x588c14[_0x12768a(0x184)]&&(console[_0x12768a(0x1ac)](_0x12768a(0x175)+_0x588c14[_0x12768a(0x18d)]),console[_0x12768a(0x1ac)](_0x12768a(0x17b)+(_0x2c99ba||_0x12768a(0x18b))),_0x5f4b47&&console['error'](_0x12768a(0x1b4)+_0x5f4b47),_0x55dca1&&console[_0x12768a(0x1ac)]('Recursive\x20mode:\x20enabled'));if(!_0x2c99ba)return console[_0x12768a(0x1ac)](_0x12768a(0x1c0)),console['error'](''),console[_0x12768a(0x1ac)]('Set\x20a\x20parent\x20segment\x20context\x20first:'),console['error'](_0x12768a(0x195)),console['error']('\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22'),console[_0x12768a(0x1ac)](''),console[_0x12768a(0x1ac)](_0x12768a(0x19a)),0x1;const _0x1522ad=_0x5f4b47&&(_0x5f4b47['includes']('*')||_0x5f4b47[_0x12768a(0x1b3)]('?'));if(_0x1522ad)return await this[_0x12768a(0x196)](_0xb39b7c,_0x2c99ba,_0x5f4b47);const _0x53528b=_0x5f4b47?_0x2c99ba+'/'+_0x5f4b47:_0x2c99ba;return _0x55dca1?await this['listRecursive'](_0xb39b7c,_0x53528b):await this[_0x12768a(0x17d)](_0xb39b7c,_0x53528b);}catch(_0x413396){if(_0x413396 instanceof SDKError)return console[_0x12768a(0x1ac)](_0x12768a(0x198)+_0x413396[_0x12768a(0x1ae)]),_0x413396[_0x12768a(0x180)]&&console[_0x12768a(0x1ac)]('\x20\x20Cause:\x20'+_0x413396[_0x12768a(0x180)]),0x1;throw _0x413396;}}async['listWithPattern'](_0x1f342c,_0x468553,_0x2c7cc6){const _0xb69272=a36_0x21a93f,{options:_0x2b60af,tdx:_0x34f7dd}=_0x1f342c,_0x2534bf=await withSpinner(_0xb69272(0x19e)+_0x468553+_0xb69272(0x181),()=>_0x34f7dd[_0xb69272(0x189)][_0xb69272(0x188)](_0x468553),{'verbose':_0x2b60af[_0xb69272(0x184)]}),_0x371f97=_0x2534bf[_0xb69272(0x1b6)],_0x5335d5=await withSpinner(_0xb69272(0x1b0),()=>_0x34f7dd['segment'][_0xb69272(0x19b)](_0x371f97[_0xb69272(0x1a0)],_0x371f97[_0xb69272(0x187)]),{'verbose':_0x2b60af['verbose']}),{folders:_0x34ac9a,segments:_0x45181f,journeys:_0x84832f}=_0x5335d5[_0xb69272(0x1b6)],_0xc7594c=_0x2c7cc6['replace'](/[.+^${}()|[\]\\]/g,_0xb69272(0x192))['replace'](/\*/g,'.*')[_0xb69272(0x1a1)](/\?/g,'.'),_0x3b3b5a=new RegExp('^'+_0xc7594c+'$','i'),_0x48d204=_0x34ac9a[_0xb69272(0x177)](_0x3fa14a=>_0x3b3b5a[_0xb69272(0x1be)](_0x3fa14a[_0xb69272(0x178)])),_0x18f3c4=_0x45181f[_0xb69272(0x177)](_0x208078=>_0x3b3b5a[_0xb69272(0x1be)](_0x208078[_0xb69272(0x178)])),_0x3d018c=_0x84832f[_0xb69272(0x177)](_0x4f3d0d=>_0x3b3b5a[_0xb69272(0x1be)](_0x4f3d0d[_0xb69272(0x191)])),_0x1fce15=_0x48d204['length']+_0x18f3c4[_0xb69272(0x1a5)]+_0x3d018c[_0xb69272(0x1a5)];console[_0xb69272(0x1ac)](_0xb69272(0x17f)+_0x48d204[_0xb69272(0x1a5)]+_0xb69272(0x1a4)+(_0x48d204[_0xb69272(0x1a5)]!==0x1?'s':'')+',\x20'+_0x18f3c4['length']+_0xb69272(0x183)+(_0x18f3c4['length']!==0x1?'s':'')+_0xb69272(0x194)+_0x3d018c[_0xb69272(0x1a5)]+_0xb69272(0x17a)+(_0x3d018c[_0xb69272(0x1a5)]!==0x1?'s':'')+_0xb69272(0x19c)+_0x2c7cc6+'\x27');const _0x5f43d8=_0x5efe16=>{const _0x4691f1=_0xb69272;return getConsoleNextUrl(_0x2b60af[_0x4691f1(0x18d)],_0x4691f1(0x1b2)+_0x371f97[_0x4691f1(0x1a0)]+'/e/'+_0x5efe16);},_0x2b4885=_0x2b60af[_0xb69272(0x1ad)]===_0xb69272(0x17c)||_0x2b60af['format']==='jsonl';if(_0x2b4885){const _0x3c78f1=[..._0x48d204[_0xb69272(0x1b9)](_0x38273f=>({..._0x38273f,'type':_0xb69272(0x1bb)})),..._0x18f3c4[_0xb69272(0x1b9)](_0x5a6032=>({..._0x5a6032,'type':_0xb69272(0x189),'url':_0x5f43d8(_0x5a6032['id'])})),..._0x3d018c['map'](_0x1d2b45=>({..._0x1d2b45,'name':_0x1d2b45[_0xb69272(0x191)],'type':_0xb69272(0x1b8)}))][_0xb69272(0x18c)]((_0x1fa49e,_0x19a982)=>_0x1fa49e[_0xb69272(0x178)][_0xb69272(0x1aa)](_0x19a982['name']));await handleSDKOutput(_0x3c78f1,_0x2b60af);}else{if(_0x1fce15===0x0)console[_0xb69272(0x1a2)](_0xb69272(0x1c1)+_0x2c7cc6);else{console[_0xb69272(0x1a2)](a36_0x3d0924[_0xb69272(0x19f)]('['+_0x468553+_0xb69272(0x185)+_0x2c7cc6+'\x27'));const _0xe9a24d=formatFlatList(_0x48d204,_0x18f3c4,{'showMetadata':!![],'getSegmentUrl':_0x5f43d8},_0x3d018c);console[_0xb69272(0x1a2)](_0xe9a24d);}}return 0x0;}async[a36_0x21a93f(0x17d)](_0x2bea77,_0x3af960){const _0x4e62cf=a36_0x21a93f,{options:_0x280705,tdx:_0xdbf56d}=_0x2bea77,_0x5e5bcd=await withSpinner(_0x4e62cf(0x1bf)+_0x3af960+_0x4e62cf(0x181),()=>_0xdbf56d[_0x4e62cf(0x189)][_0x4e62cf(0x188)](_0x3af960),{'verbose':_0x280705[_0x4e62cf(0x184)]}),_0x1e15e5=_0x5e5bcd['data'];_0x280705[_0x4e62cf(0x184)]&&(console[_0x4e62cf(0x1ac)]('Parent\x20ID:\x20'+_0x1e15e5[_0x4e62cf(0x1a0)]),_0x1e15e5[_0x4e62cf(0x187)]&&console['error'](_0x4e62cf(0x1b1)+_0x1e15e5[_0x4e62cf(0x187)]));const _0x5ad820=await withSpinner(_0x4e62cf(0x1b0),()=>_0xdbf56d[_0x4e62cf(0x189)][_0x4e62cf(0x19b)](_0x1e15e5['parentId'],_0x1e15e5[_0x4e62cf(0x187)]),{'verbose':_0x280705[_0x4e62cf(0x184)]}),{folders:_0x5df703,segments:_0x155e15,journeys:_0x2deea6}=_0x5ad820[_0x4e62cf(0x1b6)],_0x3c96a1=_0x5df703[_0x4e62cf(0x1a5)]+_0x155e15[_0x4e62cf(0x1a5)]+_0x2deea6['length'];console[_0x4e62cf(0x1ac)](_0x4e62cf(0x17f)+_0x5df703[_0x4e62cf(0x1a5)]+'\x20folder'+(_0x5df703['length']!==0x1?'s':'')+',\x20'+_0x155e15[_0x4e62cf(0x1a5)]+'\x20segment'+(_0x155e15[_0x4e62cf(0x1a5)]!==0x1?'s':'')+',\x20and\x20'+_0x2deea6[_0x4e62cf(0x1a5)]+_0x4e62cf(0x17a)+(_0x2deea6[_0x4e62cf(0x1a5)]!==0x1?'s':''));const _0x5bd36d=_0x8f053b=>{const _0x1cfc2a=_0x4e62cf;return getConsoleNextUrl(_0x280705['site'],_0x1cfc2a(0x1b2)+_0x1e15e5[_0x1cfc2a(0x1a0)]+_0x1cfc2a(0x18f)+_0x8f053b);},_0x497b96=_0x1b4a59=>{const _0x73d5ff=_0x4e62cf;return getConsoleNextUrl(_0x280705[_0x73d5ff(0x18d)],'/app/ps/'+_0x1e15e5[_0x73d5ff(0x1a0)]+_0x73d5ff(0x18f)+_0x1b4a59+_0x73d5ff(0x193));},_0x2c711a=_0x280705['format']===_0x4e62cf(0x17c)||_0x280705['format']===_0x4e62cf(0x179);if(_0x2c711a){const _0xf309a7=[..._0x5df703[_0x4e62cf(0x1b9)](_0x369550=>({..._0x369550,'type':_0x4e62cf(0x1bb)})),..._0x155e15[_0x4e62cf(0x1b9)](_0x4f6941=>({..._0x4f6941,'type':_0x4e62cf(0x189),'url':_0x5bd36d(_0x4f6941['id'])})),..._0x2deea6['map'](_0x593f2a=>({..._0x593f2a,'name':_0x593f2a[_0x4e62cf(0x191)],'type':'journey','url':_0x497b96(_0x593f2a['id'])}))][_0x4e62cf(0x18c)]((_0x2748af,_0x40f7a7)=>_0x2748af[_0x4e62cf(0x178)][_0x4e62cf(0x1aa)](_0x40f7a7[_0x4e62cf(0x178)]));await handleSDKOutput(_0xf309a7,_0x280705);}else{if(_0x3c96a1===0x0)console[_0x4e62cf(0x1a2)](a36_0x3d0924[_0x4e62cf(0x19f)]('['+_0x3af960+']')),console[_0x4e62cf(0x1a2)]('(empty)');else{console[_0x4e62cf(0x1a2)](a36_0x3d0924[_0x4e62cf(0x19f)]('['+_0x3af960+']'));const _0x46456e=formatFlatList(_0x5df703,_0x155e15,{'showMetadata':!![],'getSegmentUrl':_0x5bd36d,'getJourneyUrl':_0x497b96},_0x2deea6);console[_0x4e62cf(0x1a2)](_0x46456e);}}return 0x0;}async[a36_0x21a93f(0x17e)](_0x36a202,_0x2ff9f5){const _0x364a13=a36_0x21a93f,{options:_0xcc77b4,tdx:_0x4d1d51}=_0x36a202,_0x4b667a=await withSpinner(_0x364a13(0x1bf)+_0x2ff9f5+_0x364a13(0x181),()=>_0x4d1d51[_0x364a13(0x189)]['resolvePathToResource'](_0x2ff9f5),{'verbose':_0xcc77b4[_0x364a13(0x184)]}),_0x300960=_0x4b667a[_0x364a13(0x1b6)];_0xcc77b4[_0x364a13(0x184)]&&(console[_0x364a13(0x1ac)](_0x364a13(0x1ba)+_0x300960[_0x364a13(0x1a0)]),_0x300960[_0x364a13(0x187)]&&console[_0x364a13(0x1ac)](_0x364a13(0x1b1)+_0x300960[_0x364a13(0x187)]));const _0x64d331=_0xcc77b4[_0x364a13(0x1a8)]||0xa,_0x3f84ec=await withSpinner(_0x364a13(0x197),()=>_0x4d1d51['segment'][_0x364a13(0x17e)](_0x300960[_0x364a13(0x1a0)],_0x300960[_0x364a13(0x187)],0x0,_0x64d331),{'verbose':_0xcc77b4[_0x364a13(0x184)]}),_0x2ade1f=_0x3f84ec[_0x364a13(0x1b6)],_0x12916a=_0x3011a8=>{const _0x331002=_0x364a13;let _0x3db82b=0x0,_0x5ebba9=0x0,_0x39dba7=0x0;for(const _0x3353fa of _0x3011a8){if(_0x3353fa[_0x331002(0x1af)]==='folder')_0x3db82b++;else{if(_0x3353fa[_0x331002(0x1af)]===_0x331002(0x189))_0x5ebba9++;else{if(_0x3353fa[_0x331002(0x1af)]===_0x331002(0x1b8))_0x39dba7++;}}if(_0x3353fa[_0x331002(0x186)]){const _0x5c0c35=_0x12916a(_0x3353fa[_0x331002(0x186)]);_0x3db82b+=_0x5c0c35[_0x331002(0x1c2)],_0x5ebba9+=_0x5c0c35[_0x331002(0x1bc)],_0x39dba7+=_0x5c0c35[_0x331002(0x176)];}}return{'folders':_0x3db82b,'segments':_0x5ebba9,'journeys':_0x39dba7};},_0x57db1b=_0x12916a(_0x2ade1f);console[_0x364a13(0x1ac)](_0x364a13(0x1b5)+_0x57db1b[_0x364a13(0x1c2)]+_0x364a13(0x1a4)+(_0x57db1b[_0x364a13(0x1c2)]!==0x1?'s':'')+',\x20'+_0x57db1b['segments']+_0x364a13(0x183)+(_0x57db1b[_0x364a13(0x1bc)]!==0x1?'s':'')+_0x364a13(0x194)+_0x57db1b[_0x364a13(0x176)]+_0x364a13(0x17a)+(_0x57db1b[_0x364a13(0x176)]!==0x1?'s':''));const _0xb251d0=_0x3f07c3=>{const _0x164def=_0x364a13;return getConsoleNextUrl(_0xcc77b4[_0x164def(0x18d)],'/app/ps/'+_0x300960['parentId']+_0x164def(0x18f)+_0x3f07c3);},_0xc1ffb6=_0x1ac651=>{const _0x4be062=_0x364a13;return getConsoleNextUrl(_0xcc77b4['site'],_0x4be062(0x1b2)+_0x300960[_0x4be062(0x1a0)]+_0x4be062(0x18f)+_0x1ac651+_0x4be062(0x193));};if(_0xcc77b4['format']==='json'||_0xcc77b4['format']===_0x364a13(0x179))await handleSDKOutput(_0x2ade1f,_0xcc77b4);else{console[_0x364a13(0x1a2)](a36_0x3d0924[_0x364a13(0x19f)]('['+_0x2ff9f5+']'));const _0x318de0=formatTree(_0x2ade1f,{'showMetadata':!![],'getSegmentUrl':_0xb251d0,'getJourneyUrl':_0xc1ffb6});console[_0x364a13(0x1a2)](_0x318de0);}return 0x0;}}
1
+ const a36_0xb978dc=a36_0x1dc0;(function(_0x30e6cc,_0x5468d1){const _0x4708e5=a36_0x1dc0,_0x1af5e9=_0x30e6cc();while(!![]){try{const _0x1f617d=parseInt(_0x4708e5(0x18e))/0x1+-parseInt(_0x4708e5(0x150))/0x2*(parseInt(_0x4708e5(0x165))/0x3)+-parseInt(_0x4708e5(0x14b))/0x4+-parseInt(_0x4708e5(0x155))/0x5+parseInt(_0x4708e5(0x18a))/0x6+parseInt(_0x4708e5(0x18c))/0x7*(parseInt(_0x4708e5(0x15e))/0x8)+parseInt(_0x4708e5(0x176))/0x9;if(_0x1f617d===_0x5468d1)break;else _0x1af5e9['push'](_0x1af5e9['shift']());}catch(_0x46f434){_0x1af5e9['push'](_0x1af5e9['shift']());}}}(a36_0x2735,0xe0c40));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';function a36_0x1dc0(_0x3ce8b9,_0x319e15){_0x3ce8b9=_0x3ce8b9-0x140;const _0x273526=a36_0x2735();let _0x1dc0ba=_0x273526[_0x3ce8b9];return _0x1dc0ba;}import{formatFlatList,formatTree}from'../sdk/util/tree-formatter.js';function a36_0x2735(){const _0x339e78=['execute','Listing\x20folders,\x20segments,\x20and\x20journeys...','folders','\x20\x20tdx\x20sg\x20pull\x20\x22My\x20Audience\x22','Recursive\x20mode:\x20enabled','listRecursive','data','\x5c$&','213880oEkSrR',',\x20and\x20','Parent\x20segment\x20context:\x20','folder','length','Resolving\x20path\x20\x27','test','9VVllLo','Error:\x20No\x20parent\x20segment\x20context\x20set.','verbose','(empty)','/j/da','Folder/pattern\x20arg:\x20','listWithPattern','\x20segment','(not\x20set)','children','segments','listUnifiedWithJourneys','name','error','filter','/e/','Resolving\x20parent\x20segment\x20\x27','15465942GRSwRE','Error:\x20','journeys','\x20\x20Cause:\x20','journey','\x27...','maxDepth','Building\x20hierarchy\x20tree...','message','/app/ps/','\x20\x20tdx\x20sg\x20use\x20\x22My\x20Audience\x22','✔\x20Built\x20tree\x20with\x20','format','listUnified','log','description','dim',']\x20matching\x20\x27','\x20folder','sort','2279046EwSHQA','journeyBundleName','119MpdXYH','replace','833905ohXEgI','recursive','json','\x20journey','No\x20items\x20match\x20pattern:\x20','Site:\x20','folderId','\x20matching\x20\x27','segment','parentSegment','jsonl','Parent\x20ID:\x20','site','3016588DlghkW','type','includes','map','parentId','1022738vmdHzX','Folder\x20ID:\x20','resolvePathToResource','localeCompare','cause','888925otnENx'];a36_0x2735=function(){return _0x339e78;};return a36_0x2735();}import{getConsoleNextUrl}from'../sdk/client/endpoints.js';import a36_0x4e32fb from'chalk';export class SegmentsCommand extends BaseCommand{[a36_0xb978dc(0x171)]=a36_0xb978dc(0x16f);[a36_0xb978dc(0x185)]='List\x20folders\x20and\x20child\x20segments';async[a36_0xb978dc(0x156)](_0x16cdd2){const _0x3534f4=a36_0xb978dc,{options:_0x47c3a6,args:_0x8839b5}=_0x16cdd2,_0x2fceb9=_0x47c3a6[_0x3534f4(0x18f)],_0x104c93=_0x8839b5[0x0];try{const _0x57314f=_0x47c3a6[_0x3534f4(0x147)];_0x47c3a6[_0x3534f4(0x167)]&&(console[_0x3534f4(0x172)](_0x3534f4(0x143)+_0x47c3a6[_0x3534f4(0x14a)]),console[_0x3534f4(0x172)](_0x3534f4(0x160)+(_0x57314f||_0x3534f4(0x16d))),_0x104c93&&console[_0x3534f4(0x172)](_0x3534f4(0x16a)+_0x104c93),_0x2fceb9&&console[_0x3534f4(0x172)](_0x3534f4(0x15a)));if(!_0x57314f)return console[_0x3534f4(0x172)](_0x3534f4(0x166)),console['error'](''),console[_0x3534f4(0x172)]('Set\x20a\x20parent\x20segment\x20context\x20first:'),console[_0x3534f4(0x172)](_0x3534f4(0x159)),console[_0x3534f4(0x172)](_0x3534f4(0x180)),console['error'](''),console[_0x3534f4(0x172)]('Use\x20tdx\x20ps\x20list\x20to\x20see\x20available\x20parent\x20segments.'),0x1;const _0x230ed0=_0x104c93&&(_0x104c93[_0x3534f4(0x14d)]('*')||_0x104c93[_0x3534f4(0x14d)]('?'));if(_0x230ed0)return await this[_0x3534f4(0x16b)](_0x16cdd2,_0x57314f,_0x104c93);const _0x54bacf=_0x104c93?_0x57314f+'/'+_0x104c93:_0x57314f;return _0x2fceb9?await this[_0x3534f4(0x15b)](_0x16cdd2,_0x54bacf):await this['listUnified'](_0x16cdd2,_0x54bacf);}catch(_0x1b9c96){if(_0x1b9c96 instanceof SDKError)return console[_0x3534f4(0x172)](_0x3534f4(0x177)+_0x1b9c96[_0x3534f4(0x17e)]),_0x1b9c96[_0x3534f4(0x154)]&&console[_0x3534f4(0x172)](_0x3534f4(0x179)+_0x1b9c96[_0x3534f4(0x154)]),0x1;throw _0x1b9c96;}}async[a36_0xb978dc(0x16b)](_0x477d1c,_0x3d8695,_0x2fdf0f){const _0x7580f7=a36_0xb978dc,{options:_0x569cb4,tdx:_0xe8e3a1}=_0x477d1c,_0xcb3eb3=await withSpinner(_0x7580f7(0x175)+_0x3d8695+_0x7580f7(0x17b),()=>_0xe8e3a1[_0x7580f7(0x146)][_0x7580f7(0x152)](_0x3d8695),{'verbose':_0x569cb4['verbose']}),_0x423f01=_0xcb3eb3[_0x7580f7(0x15c)],_0x22f961=await withSpinner(_0x7580f7(0x157),()=>_0xe8e3a1[_0x7580f7(0x146)][_0x7580f7(0x170)](_0x423f01[_0x7580f7(0x14f)],_0x423f01['folderId']),{'verbose':_0x569cb4[_0x7580f7(0x167)]}),{folders:_0xcb4fb2,segments:_0x45eb46,journeys:_0x34643e}=_0x22f961[_0x7580f7(0x15c)],_0x1d7d3f=_0x2fdf0f[_0x7580f7(0x18d)](/[.+^${}()|[\]\\]/g,_0x7580f7(0x15d))['replace'](/\*/g,'.*')[_0x7580f7(0x18d)](/\?/g,'.'),_0x28382f=new RegExp('^'+_0x1d7d3f+'$','i'),_0x300c21=_0xcb4fb2[_0x7580f7(0x173)](_0x3404ce=>_0x28382f[_0x7580f7(0x164)](_0x3404ce[_0x7580f7(0x171)])),_0x561c55=_0x45eb46[_0x7580f7(0x173)](_0xbf331d=>_0x28382f[_0x7580f7(0x164)](_0xbf331d['name'])),_0x1d8dbd=_0x34643e[_0x7580f7(0x173)](_0xb28b62=>_0x28382f[_0x7580f7(0x164)](_0xb28b62[_0x7580f7(0x18b)])),_0x430a2a=_0x300c21['length']+_0x561c55[_0x7580f7(0x162)]+_0x1d8dbd['length'];console[_0x7580f7(0x172)]('✔\x20Found\x20'+_0x300c21[_0x7580f7(0x162)]+_0x7580f7(0x188)+(_0x300c21[_0x7580f7(0x162)]!==0x1?'s':'')+',\x20'+_0x561c55[_0x7580f7(0x162)]+'\x20segment'+(_0x561c55[_0x7580f7(0x162)]!==0x1?'s':'')+_0x7580f7(0x15f)+_0x1d8dbd[_0x7580f7(0x162)]+_0x7580f7(0x141)+(_0x1d8dbd[_0x7580f7(0x162)]!==0x1?'s':'')+_0x7580f7(0x145)+_0x2fdf0f+'\x27');const _0x3caae6=_0x3aa0d4=>{const _0x5a47e8=_0x7580f7;return getConsoleNextUrl(_0x569cb4['site'],_0x5a47e8(0x17f)+_0x423f01[_0x5a47e8(0x14f)]+_0x5a47e8(0x174)+_0x3aa0d4);},_0x100c04=_0x569cb4[_0x7580f7(0x182)]===_0x7580f7(0x140)||_0x569cb4[_0x7580f7(0x182)]===_0x7580f7(0x148);if(_0x100c04){const _0x591923=[..._0x300c21['map'](_0x4ddf10=>({..._0x4ddf10,'type':_0x7580f7(0x161)})),..._0x561c55['map'](_0x5d18a1=>({..._0x5d18a1,'type':'segment','url':_0x3caae6(_0x5d18a1['id'])})),..._0x1d8dbd[_0x7580f7(0x14e)](_0x5d8812=>({..._0x5d8812,'name':_0x5d8812[_0x7580f7(0x18b)],'type':_0x7580f7(0x17a)}))][_0x7580f7(0x189)]((_0x1e8a62,_0x118816)=>_0x1e8a62['name'][_0x7580f7(0x153)](_0x118816[_0x7580f7(0x171)]));await handleSDKOutput(_0x591923,_0x569cb4);}else{if(_0x430a2a===0x0)console['log'](_0x7580f7(0x142)+_0x2fdf0f);else{console[_0x7580f7(0x184)](a36_0x4e32fb[_0x7580f7(0x186)]('['+_0x3d8695+_0x7580f7(0x187)+_0x2fdf0f+'\x27'));const _0x36d8c8=formatFlatList(_0x300c21,_0x561c55,{'showMetadata':!![],'getSegmentUrl':_0x3caae6},_0x1d8dbd);console['log'](_0x36d8c8);}}return 0x0;}async[a36_0xb978dc(0x183)](_0x13fea7,_0xc212f0){const _0x47b5ec=a36_0xb978dc,{options:_0x2ce116,tdx:_0x465e7e}=_0x13fea7,_0x457824=await withSpinner('Resolving\x20path\x20\x27'+_0xc212f0+'\x27...',()=>_0x465e7e[_0x47b5ec(0x146)][_0x47b5ec(0x152)](_0xc212f0),{'verbose':_0x2ce116[_0x47b5ec(0x167)]}),_0x3c4418=_0x457824['data'];_0x2ce116[_0x47b5ec(0x167)]&&(console[_0x47b5ec(0x172)](_0x47b5ec(0x149)+_0x3c4418[_0x47b5ec(0x14f)]),_0x3c4418[_0x47b5ec(0x144)]&&console[_0x47b5ec(0x172)](_0x47b5ec(0x151)+_0x3c4418[_0x47b5ec(0x144)]));const _0x477de8=await withSpinner('Listing\x20folders,\x20segments,\x20and\x20journeys...',()=>_0x465e7e[_0x47b5ec(0x146)][_0x47b5ec(0x170)](_0x3c4418[_0x47b5ec(0x14f)],_0x3c4418[_0x47b5ec(0x144)]),{'verbose':_0x2ce116[_0x47b5ec(0x167)]}),{folders:_0x108a65,segments:_0x23cb91,journeys:_0x223c52}=_0x477de8[_0x47b5ec(0x15c)],_0x14ae27=_0x108a65[_0x47b5ec(0x162)]+_0x23cb91[_0x47b5ec(0x162)]+_0x223c52['length'];console[_0x47b5ec(0x172)]('✔\x20Found\x20'+_0x108a65['length']+_0x47b5ec(0x188)+(_0x108a65[_0x47b5ec(0x162)]!==0x1?'s':'')+',\x20'+_0x23cb91[_0x47b5ec(0x162)]+_0x47b5ec(0x16c)+(_0x23cb91[_0x47b5ec(0x162)]!==0x1?'s':'')+_0x47b5ec(0x15f)+_0x223c52[_0x47b5ec(0x162)]+_0x47b5ec(0x141)+(_0x223c52[_0x47b5ec(0x162)]!==0x1?'s':''));const _0x4e01f4=_0x3a907d=>{const _0x16a258=_0x47b5ec;return getConsoleNextUrl(_0x2ce116[_0x16a258(0x14a)],_0x16a258(0x17f)+_0x3c4418[_0x16a258(0x14f)]+_0x16a258(0x174)+_0x3a907d);},_0x12cdc2=_0x3e979d=>{const _0x317c13=_0x47b5ec;return getConsoleNextUrl(_0x2ce116[_0x317c13(0x14a)],_0x317c13(0x17f)+_0x3c4418[_0x317c13(0x14f)]+_0x317c13(0x174)+_0x3e979d+_0x317c13(0x169));},_0x35fb4f=_0x2ce116[_0x47b5ec(0x182)]===_0x47b5ec(0x140)||_0x2ce116[_0x47b5ec(0x182)]==='jsonl';if(_0x35fb4f){const _0x33680c=[..._0x108a65['map'](_0x3347af=>({..._0x3347af,'type':_0x47b5ec(0x161)})),..._0x23cb91['map'](_0x45678d=>({..._0x45678d,'type':_0x47b5ec(0x146),'url':_0x4e01f4(_0x45678d['id'])})),..._0x223c52['map'](_0x3f09af=>({..._0x3f09af,'name':_0x3f09af[_0x47b5ec(0x18b)],'type':_0x47b5ec(0x17a),'url':_0x12cdc2(_0x3f09af['id'])}))][_0x47b5ec(0x189)]((_0x13dbb8,_0x1a0115)=>_0x13dbb8['name'][_0x47b5ec(0x153)](_0x1a0115[_0x47b5ec(0x171)]));await handleSDKOutput(_0x33680c,_0x2ce116);}else{if(_0x14ae27===0x0)console[_0x47b5ec(0x184)](a36_0x4e32fb[_0x47b5ec(0x186)]('['+_0xc212f0+']')),console[_0x47b5ec(0x184)](_0x47b5ec(0x168));else{console[_0x47b5ec(0x184)](a36_0x4e32fb['dim']('['+_0xc212f0+']'));const _0x31d254=formatFlatList(_0x108a65,_0x23cb91,{'showMetadata':!![],'getSegmentUrl':_0x4e01f4,'getJourneyUrl':_0x12cdc2},_0x223c52);console['log'](_0x31d254);}}return 0x0;}async['listRecursive'](_0x225e7c,_0x2c4f81){const _0x5717e8=a36_0xb978dc,{options:_0x124ca0,tdx:_0x492805}=_0x225e7c,_0x3c5c12=await withSpinner(_0x5717e8(0x163)+_0x2c4f81+'\x27...',()=>_0x492805[_0x5717e8(0x146)][_0x5717e8(0x152)](_0x2c4f81),{'verbose':_0x124ca0[_0x5717e8(0x167)]}),_0x58f014=_0x3c5c12[_0x5717e8(0x15c)];_0x124ca0['verbose']&&(console[_0x5717e8(0x172)]('Parent\x20ID:\x20'+_0x58f014['parentId']),_0x58f014[_0x5717e8(0x144)]&&console['error'](_0x5717e8(0x151)+_0x58f014[_0x5717e8(0x144)]));const _0x301257=_0x124ca0[_0x5717e8(0x17c)]||0xa,_0x5e167c=await withSpinner(_0x5717e8(0x17d),()=>_0x492805[_0x5717e8(0x146)][_0x5717e8(0x15b)](_0x58f014[_0x5717e8(0x14f)],_0x58f014[_0x5717e8(0x144)],0x0,_0x301257),{'verbose':_0x124ca0[_0x5717e8(0x167)]}),_0x2ecdcb=_0x5e167c[_0x5717e8(0x15c)],_0x4cda43=_0x1ce122=>{const _0x56229d=_0x5717e8;let _0x26f1de=0x0,_0x33e751=0x0,_0x5e5ede=0x0;for(const _0x1fc240 of _0x1ce122){if(_0x1fc240[_0x56229d(0x14c)]===_0x56229d(0x161))_0x26f1de++;else{if(_0x1fc240[_0x56229d(0x14c)]===_0x56229d(0x146))_0x33e751++;else{if(_0x1fc240['type']===_0x56229d(0x17a))_0x5e5ede++;}}if(_0x1fc240[_0x56229d(0x16e)]){const _0x1e70c7=_0x4cda43(_0x1fc240[_0x56229d(0x16e)]);_0x26f1de+=_0x1e70c7[_0x56229d(0x158)],_0x33e751+=_0x1e70c7['segments'],_0x5e5ede+=_0x1e70c7[_0x56229d(0x178)];}}return{'folders':_0x26f1de,'segments':_0x33e751,'journeys':_0x5e5ede};},_0x1c1f7f=_0x4cda43(_0x2ecdcb);console[_0x5717e8(0x172)](_0x5717e8(0x181)+_0x1c1f7f[_0x5717e8(0x158)]+_0x5717e8(0x188)+(_0x1c1f7f[_0x5717e8(0x158)]!==0x1?'s':'')+',\x20'+_0x1c1f7f[_0x5717e8(0x16f)]+_0x5717e8(0x16c)+(_0x1c1f7f['segments']!==0x1?'s':'')+_0x5717e8(0x15f)+_0x1c1f7f[_0x5717e8(0x178)]+_0x5717e8(0x141)+(_0x1c1f7f['journeys']!==0x1?'s':''));const _0x53fc2e=_0x1bd127=>{const _0x17855d=_0x5717e8;return getConsoleNextUrl(_0x124ca0[_0x17855d(0x14a)],'/app/ps/'+_0x58f014[_0x17855d(0x14f)]+'/e/'+_0x1bd127);},_0x1f5101=_0x5040ad=>{const _0x46ddd8=_0x5717e8;return getConsoleNextUrl(_0x124ca0['site'],_0x46ddd8(0x17f)+_0x58f014['parentId']+'/e/'+_0x5040ad+_0x46ddd8(0x169));};if(_0x124ca0[_0x5717e8(0x182)]===_0x5717e8(0x140)||_0x124ca0['format']===_0x5717e8(0x148))await handleSDKOutput(_0x2ecdcb,_0x124ca0);else{console[_0x5717e8(0x184)](a36_0x4e32fb['dim']('['+_0x2c4f81+']'));const _0x4d3054=formatTree(_0x2ecdcb,{'showMetadata':!![],'getSegmentUrl':_0x53fc2e,'getJourneyUrl':_0x1f5101});console['log'](_0x4d3054);}return 0x0;}}
@@ -1 +1 @@
1
- const a37_0x9030ac=a37_0x12be;(function(_0xd7254a,_0x17cabf){const _0x18f737=a37_0x12be,_0xbc9dad=_0xd7254a();while(!![]){try{const _0xc875d3=-parseInt(_0x18f737(0x18a))/0x1*(-parseInt(_0x18f737(0x17a))/0x2)+parseInt(_0x18f737(0x174))/0x3*(parseInt(_0x18f737(0x186))/0x4)+-parseInt(_0x18f737(0x169))/0x5*(-parseInt(_0x18f737(0x190))/0x6)+parseInt(_0x18f737(0x175))/0x7*(-parseInt(_0x18f737(0x189))/0x8)+parseInt(_0x18f737(0x179))/0x9*(parseInt(_0x18f737(0x194))/0xa)+parseInt(_0x18f737(0x182))/0xb+parseInt(_0x18f737(0x188))/0xc*(-parseInt(_0x18f737(0x191))/0xd);if(_0xc875d3===_0x17cabf)break;else _0xbc9dad['push'](_0xbc9dad['shift']());}catch(_0x28b062){_0xbc9dad['push'](_0xbc9dad['shift']());}}}(a37_0x141a,0xf2714));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a37_0x12be(_0x472c85,_0x13e348){_0x472c85=_0x472c85-0x169;const _0x141aab=a37_0x141a();let _0x12be2c=_0x141aab[_0x472c85];return _0x12be2c;}import{handleSDKOutput}from'../core/command-output.js';function a37_0x141a(){const _0x3abeb7=['limit','args','data','Show\x20table\x20contents','description','✔\x20Query\x20successful\x20-\x200\x20rows\x20returned','cause','site','length','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','2735445MPTYLQ','284998zhMkAj','catalog','Site:\x20','Error:\x20','1746GuUSDC','59868nSaItd','\x20\x20Cause:\x20','Usage:\x20tdx\x20show\x20<database.table>','database','Limit:\x20','Table:\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','16119873CmiGEO','Catalog:\x20','✔\x20Retrieved\x20','show','8KNjfkN','execute','6787164RDhXHE','376hUjpOv','59pBZlon','verbose','validate','query','showTable','error','1074qbmcDq','104ufWmeC','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>','59530JQxkox','34115WpanNH'];a37_0x141a=function(){return _0x3abeb7;};return a37_0x141a();}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{['name']=a37_0x9030ac(0x185);[a37_0x9030ac(0x16e)]=a37_0x9030ac(0x16d);async[a37_0x9030ac(0x187)](_0x59d45f){return this['showTable'](_0x59d45f);}async[a37_0x9030ac(0x18e)](_0x576f19){const _0x146aec=a37_0x9030ac,{options:_0x48ada1,args:_0x4eb574,tdx:_0x245f4b}=_0x576f19;let _0x3f69a6;try{_0x3f69a6=parseTableReference(_0x4eb574[0x0]);const _0x2b6b64=_0x48ada1['database'];!_0x3f69a6[_0x146aec(0x17d)]&&_0x2b6b64&&(_0x3f69a6[_0x146aec(0x17d)]=_0x2b6b64);const _0x49e47c=validateTableDescribeReference(_0x3f69a6);if(_0x49e47c)return console['error'](_0x146aec(0x178)+_0x49e47c),console[_0x146aec(0x18f)]('Usage:\x20tdx\x20show\x20<database.table>'),console[_0x146aec(0x18f)](_0x146aec(0x193)),console[_0x146aec(0x18f)](_0x146aec(0x192)),0x1;}catch(_0x2861f4){return console[_0x146aec(0x18f)]('Error:\x20'+_0x2861f4['message']),console[_0x146aec(0x18f)](_0x146aec(0x17c)),console[_0x146aec(0x18f)](_0x146aec(0x193)),console[_0x146aec(0x18f)](_0x146aec(0x192)),0x1;}const _0x164895=_0x3f69a6[_0x146aec(0x176)],_0x5cf843=_0x3f69a6[_0x146aec(0x17d)],_0x2113f9=_0x3f69a6['table'],_0x19fdce=resolveLimit(_0x48ada1[_0x146aec(0x16a)],DEFAULT_DISPLAY_LIMIT);try{_0x48ada1[_0x146aec(0x18b)]&&(console[_0x146aec(0x18f)](_0x146aec(0x177)+_0x48ada1[_0x146aec(0x171)]),_0x164895&&console[_0x146aec(0x18f)](_0x146aec(0x183)+_0x164895),console['error']('Database:\x20'+_0x5cf843),console['error'](_0x146aec(0x17f)+_0x2113f9),console[_0x146aec(0x18f)](_0x146aec(0x17e)+_0x19fdce));const _0x288b93=_0x164895?_0x164895+'.'+_0x5cf843+'.'+_0x2113f9:_0x5cf843+'.'+_0x2113f9,_0x122f2e=await withSpinner('Querying\x20'+_0x288b93+_0x146aec(0x180),()=>_0x245f4b[_0x146aec(0x18d)][_0x146aec(0x18e)](_0x5cf843,_0x2113f9,_0x19fdce,_0x164895),{'verbose':_0x48ada1[_0x146aec(0x18b)]}),_0x360f2d=_0x122f2e[_0x146aec(0x16c)],_0x2da395=_0x360f2d[_0x146aec(0x16c)];return _0x2da395[_0x146aec(0x172)]===0x0?console[_0x146aec(0x18f)](_0x146aec(0x16f)):console[_0x146aec(0x18f)](_0x146aec(0x184)+_0x2da395[_0x146aec(0x172)]+'\x20row'+(_0x2da395[_0x146aec(0x172)]!==0x1?'s':'')+'\x20from\x20'+_0x288b93),await handleSDKOutput(_0x2da395,_0x48ada1),0x0;}catch(_0x291e4e){if(_0x291e4e instanceof SDKError)return console[_0x146aec(0x18f)](_0x146aec(0x178)+_0x291e4e['message']),_0x291e4e['cause']&&console[_0x146aec(0x18f)](_0x146aec(0x17b)+_0x291e4e[_0x146aec(0x170)]),0x1;throw _0x291e4e;}}[a37_0x9030ac(0x18c)](_0x4cfe10){const _0x17e764=a37_0x9030ac;if(_0x4cfe10[_0x17e764(0x16b)][_0x17e764(0x172)]===0x0)return _0x17e764(0x173);if(_0x4cfe10[_0x17e764(0x16b)][_0x17e764(0x172)]>0x1)return _0x17e764(0x181);return undefined;}}
1
+ function a37_0x22e1(_0xe96951,_0x53a090){_0xe96951=_0xe96951-0x83;const _0x4e47e1=a37_0x4e47();let _0x22e14a=_0x4e47e1[_0xe96951];return _0x22e14a;}const a37_0x16f786=a37_0x22e1;(function(_0x124d22,_0x47f0bd){const _0x38e66a=a37_0x22e1,_0xd08a3a=_0x124d22();while(!![]){try{const _0x3c1d07=parseInt(_0x38e66a(0xa8))/0x1*(parseInt(_0x38e66a(0x8a))/0x2)+parseInt(_0x38e66a(0xa3))/0x3*(-parseInt(_0x38e66a(0x98))/0x4)+-parseInt(_0x38e66a(0x83))/0x5*(parseInt(_0x38e66a(0x89))/0x6)+-parseInt(_0x38e66a(0x8b))/0x7*(-parseInt(_0x38e66a(0x8f))/0x8)+parseInt(_0x38e66a(0xa5))/0x9*(parseInt(_0x38e66a(0x9d))/0xa)+parseInt(_0x38e66a(0x95))/0xb+-parseInt(_0x38e66a(0x8d))/0xc;if(_0x3c1d07===_0x47f0bd)break;else _0xd08a3a['push'](_0xd08a3a['shift']());}catch(_0x23c5ea){_0xd08a3a['push'](_0xd08a3a['shift']());}}}(a37_0x4e47,0x32155));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput}from'../core/command-output.js';function a37_0x4e47(){const _0x5f268b=['1289202oCIlGV','494588eUjrsh','125923USacCl','\x20row','4463760XDGZTV','catalog','88zEfsKk','data','showTable','✔\x20Retrieved\x20','execute','Error:\x20','3285634RAjtXv','Site:\x20','show','4iMYyVt','query','name','✔\x20Query\x20successful\x20-\x200\x20rows\x20returned','error','160GKwcOh','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','\x20\x20\x20or:\x20tdx\x20show\x20<table>\x20--database\x20<database>','Table:\x20','Querying\x20','verbose','565365zwJfAZ','message','133074oaTvmk','validate','Catalog:\x20','1OsqXGj','limit','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','\x20from\x20','Usage:\x20tdx\x20show\x20<database.table>','args','site','database','5aDXaNy','cause','length','Limit:\x20','description','\x20\x20\x20or:\x20tdx\x20show\x20<catalog.database.table>'];a37_0x4e47=function(){return _0x5f268b;};return a37_0x4e47();}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{[a37_0x16f786(0x9a)]=a37_0x16f786(0x97);[a37_0x16f786(0x87)]='Show\x20table\x20contents';async[a37_0x16f786(0x93)](_0xcbbcfc){return this['showTable'](_0xcbbcfc);}async[a37_0x16f786(0x91)](_0x1c5dcc){const _0x540674=a37_0x16f786,{options:_0x3d39bb,args:_0x5f55ae,tdx:_0x9ea498}=_0x1c5dcc;let _0x2ff9f4;try{_0x2ff9f4=parseTableReference(_0x5f55ae[0x0]);const _0x3b5d7a=_0x3d39bb[_0x540674(0xaf)];!_0x2ff9f4[_0x540674(0xaf)]&&_0x3b5d7a&&(_0x2ff9f4['database']=_0x3b5d7a);const _0x3f49ae=validateTableDescribeReference(_0x2ff9f4);if(_0x3f49ae)return console['error'](_0x540674(0x94)+_0x3f49ae),console[_0x540674(0x9c)](_0x540674(0xac)),console[_0x540674(0x9c)](_0x540674(0x88)),console[_0x540674(0x9c)](_0x540674(0x9f)),0x1;}catch(_0x2317c3){return console[_0x540674(0x9c)](_0x540674(0x94)+_0x2317c3[_0x540674(0xa4)]),console[_0x540674(0x9c)]('Usage:\x20tdx\x20show\x20<database.table>'),console[_0x540674(0x9c)](_0x540674(0x88)),console[_0x540674(0x9c)](_0x540674(0x9f)),0x1;}const _0x22118d=_0x2ff9f4[_0x540674(0x8e)],_0x2a2767=_0x2ff9f4[_0x540674(0xaf)],_0x3863e7=_0x2ff9f4['table'],_0x59545e=resolveLimit(_0x3d39bb[_0x540674(0xa9)],DEFAULT_DISPLAY_LIMIT);try{_0x3d39bb[_0x540674(0xa2)]&&(console[_0x540674(0x9c)](_0x540674(0x96)+_0x3d39bb[_0x540674(0xae)]),_0x22118d&&console[_0x540674(0x9c)](_0x540674(0xa7)+_0x22118d),console[_0x540674(0x9c)]('Database:\x20'+_0x2a2767),console[_0x540674(0x9c)](_0x540674(0xa0)+_0x3863e7),console[_0x540674(0x9c)](_0x540674(0x86)+_0x59545e));const _0x240ae1=_0x22118d?_0x22118d+'.'+_0x2a2767+'.'+_0x3863e7:_0x2a2767+'.'+_0x3863e7,_0xdc0452=await withSpinner(_0x540674(0xa1)+_0x240ae1+'...',()=>_0x9ea498[_0x540674(0x99)]['showTable'](_0x2a2767,_0x3863e7,_0x59545e,_0x22118d),{'verbose':_0x3d39bb[_0x540674(0xa2)]}),_0x487f7e=_0xdc0452[_0x540674(0x90)],_0x338437=_0x487f7e[_0x540674(0x90)];return _0x338437[_0x540674(0x85)]===0x0?console[_0x540674(0x9c)](_0x540674(0x9b)):console[_0x540674(0x9c)](_0x540674(0x92)+_0x338437['length']+_0x540674(0x8c)+(_0x338437[_0x540674(0x85)]!==0x1?'s':'')+_0x540674(0xab)+_0x240ae1),await handleSDKOutput(_0x338437,_0x3d39bb),0x0;}catch(_0x26ee7b){if(_0x26ee7b instanceof SDKError)return console[_0x540674(0x9c)](_0x540674(0x94)+_0x26ee7b[_0x540674(0xa4)]),_0x26ee7b[_0x540674(0x84)]&&console[_0x540674(0x9c)]('\x20\x20Cause:\x20'+_0x26ee7b[_0x540674(0x84)]),0x1;throw _0x26ee7b;}}[a37_0x16f786(0xa6)](_0xbfcda2){const _0x8b5261=a37_0x16f786;if(_0xbfcda2[_0x8b5261(0xad)]['length']===0x0)return _0x8b5261(0x9e);if(_0xbfcda2['args'][_0x8b5261(0x85)]>0x1)return _0x8b5261(0xaa);return undefined;}}
@@ -1 +1 @@
1
- const a38_0x2fedcc=a38_0x1409;(function(_0x3ddfbd,_0x180809){const _0x2964fb=a38_0x1409,_0x21b331=_0x3ddfbd();while(!![]){try{const _0xea79ad=-parseInt(_0x2964fb(0x1d9))/0x1*(parseInt(_0x2964fb(0x1c4))/0x2)+-parseInt(_0x2964fb(0x1c8))/0x3+-parseInt(_0x2964fb(0x1db))/0x4+-parseInt(_0x2964fb(0x1cf))/0x5*(parseInt(_0x2964fb(0x1d8))/0x6)+-parseInt(_0x2964fb(0x1c6))/0x7+parseInt(_0x2964fb(0x1e0))/0x8*(-parseInt(_0x2964fb(0x1e7))/0x9)+-parseInt(_0x2964fb(0x1d1))/0xa*(-parseInt(_0x2964fb(0x1d3))/0xb);if(_0xea79ad===_0x180809)break;else _0x21b331['push'](_0x21b331['shift']());}catch(_0x504d0d){_0x21b331['push'](_0x21b331['shift']());}}}(a38_0x47ba,0xe23e5));import{BaseCommand,printAuthError}from'./command.js';import{resolveAPIKeyAsync}from'../core/config.js';import{HTTPClientError}from'../sdk/client/http-client.js';function a38_0x1409(_0x98a774,_0x5a0faa){_0x98a774=_0x98a774-0x1c3;const _0x47bac5=a38_0x47ba();let _0x14097c=_0x47bac5[_0x98a774];return _0x14097c;}import{GlobalContext}from'../core/global-context.js';import a38_0x1ee200 from'chalk';export class StatusCommand extends BaseCommand{['name']=a38_0x2fedcc(0x1d5);['description']=a38_0x2fedcc(0x1e3);async['execute'](_0x2a213a){const _0x41eb00=a38_0x2fedcc,{options:_0x3e134e,tdx:_0x104d65}=_0x2a213a,_0x5d0937=_0x3e134e[_0x41eb00(0x1e2)],_0x4a1aed=_0x3e134e[_0x41eb00(0x1cb)],_0x2404dc=_0x4a1aed?a38_0x1ee200['cyan'](_0x4a1aed):a38_0x1ee200[_0x41eb00(0x1df)](_0x41eb00(0x1d2));console[_0x41eb00(0x1cd)](a38_0x1ee200[_0x41eb00(0x1dc)]('tdx')+_0x41eb00(0x1e1)+_0x2404dc+'\x20'+a38_0x1ee200[_0x41eb00(0x1df)]('(')+_0x41eb00(0x1c5)+a38_0x1ee200[_0x41eb00(0x1c3)](_0x5d0937)+a38_0x1ee200[_0x41eb00(0x1df)](')'));const _0x48a459=await resolveAPIKeyAsync(_0x5d0937,_0x4a1aed);if(_0x48a459){const {source:_0x386696,isDeprecated:_0x338900}=_0x48a459,_0x4d938e='Read\x20credential\x20from\x20'+a38_0x1ee200[_0x41eb00(0x1c3)](_0x386696);console['log'](_0x338900?a38_0x1ee200[_0x41eb00(0x1de)](_0x4d938e):_0x4d938e);}else console[_0x41eb00(0x1cd)](a38_0x1ee200[_0x41eb00(0x1de)]('No\x20credential\x20found'));let _0x5e9f98=![];try{const _0x144e60=await _0x104d65[_0x41eb00(0x1d6)][_0x41eb00(0x1dd)]();console[_0x41eb00(0x1cd)](a38_0x1ee200['green'](_0x41eb00(0x1ca))),console[_0x41eb00(0x1cd)](a38_0x1ee200[_0x41eb00(0x1dc)](_0x41eb00(0x1ce))+'\x20'+a38_0x1ee200[_0x41eb00(0x1c3)](_0x144e60[_0x41eb00(0x1cc)]));if(_0x144e60['first_name']||_0x144e60[_0x41eb00(0x1e5)]){const _0x3e9f90=[_0x144e60['first_name'],_0x144e60[_0x41eb00(0x1e5)]][_0x41eb00(0x1e6)](Boolean)[_0x41eb00(0x1d4)]('\x20');console[_0x41eb00(0x1cd)](a38_0x1ee200[_0x41eb00(0x1dc)](_0x41eb00(0x1e4))+'\x20'+_0x3e9f90);}_0x144e60[_0x41eb00(0x1da)]&&console[_0x41eb00(0x1cd)](a38_0x1ee200[_0x41eb00(0x1dc)]('Account\x20ID:')+'\x20'+a38_0x1ee200['yellow'](_0x144e60[_0x41eb00(0x1da)])),_0x5e9f98=!![];}catch(_0x2be68c){_0x2be68c instanceof HTTPClientError&&_0x2be68c[_0x41eb00(0x1d5)]===0x191?printAuthError(_0x2be68c,!![],_0x4a1aed):console[_0x41eb00(0x1c7)](a38_0x1ee200['red'](_0x41eb00(0x1d7)+(_0x2be68c instanceof Error?_0x2be68c[_0x41eb00(0x1d0)]:String(_0x2be68c))));}console[_0x41eb00(0x1cd)]();const _0x2bfd0a=new GlobalContext(_0x3e134e);return _0x2bfd0a[_0x41eb00(0x1c9)](),_0x5e9f98?0x0:0x1;}}function a38_0x47ba(){const _0x50b02b=['log','User:','6605utKHso','message','790IkWFZE','N/A','1095226FJrTYO','join','status','jobs','✗\x20Validation\x20failed:\x20','1158BgxEaf','23aSwwne','account_id','6850492DBMZXw','bold','getUserInfo','yellow','dim','16UlAvyr','\x20profile:\x20','site','Show\x20authentication\x20status\x20and\x20current\x20context','Name:','last_name','filter','4171347jZKUDs','cyan','107084EpKWFr','site:\x20','8746871PYzcxp','error','4690380CWLipx','displayWithSources','✓\x20Authentication\x20successful\x0a','profile','email'];a38_0x47ba=function(){return _0x50b02b;};return a38_0x47ba();}
1
+ const a38_0x322050=a38_0x23ff;(function(_0x2dd7c9,_0x142bb7){const _0x4fd5e=a38_0x23ff,_0x1e4708=_0x2dd7c9();while(!![]){try{const _0x36242c=-parseInt(_0x4fd5e(0x1dc))/0x1*(-parseInt(_0x4fd5e(0x1cf))/0x2)+parseInt(_0x4fd5e(0x1d9))/0x3*(parseInt(_0x4fd5e(0x1db))/0x4)+-parseInt(_0x4fd5e(0x1d8))/0x5+-parseInt(_0x4fd5e(0x1dd))/0x6+parseInt(_0x4fd5e(0x1e3))/0x7+parseInt(_0x4fd5e(0x1bc))/0x8+-parseInt(_0x4fd5e(0x1c1))/0x9*(parseInt(_0x4fd5e(0x1c3))/0xa);if(_0x36242c===_0x142bb7)break;else _0x1e4708['push'](_0x1e4708['shift']());}catch(_0x50fd32){_0x1e4708['push'](_0x1e4708['shift']());}}}(a38_0x3ed2,0x8261c));import{BaseCommand,printAuthError}from'./command.js';function a38_0x23ff(_0x4b6086,_0x33d1bb){_0x4b6086=_0x4b6086-0x1bb;const _0x3ed2b7=a38_0x3ed2();let _0x23ff9a=_0x3ed2b7[_0x4b6086];return _0x23ff9a;}import{resolveAPIKeyAsync}from'../core/config.js';import{HTTPClientError}from'../sdk/client/http-client.js';function a38_0x3ed2(){const _0x23bf43=['last_name','cyan','bold','Show\x20authentication\x20status\x20and\x20current\x20context','red','✓\x20Authentication\x20successful\x0a','filter','N/A','yellow','Name:','18wDFylJ','\x20profile:\x20','join','Read\x20credential\x20from\x20','status','Account\x20ID:','name','execute','site','4841430dwBqpb','507WkVUZs','✗\x20Validation\x20failed:\x20','15832xhorfX','87063JDAnZx','1751988icoioa','profile','getUserInfo','first_name','User:','email','5820066htGJIR','jobs','displayWithSources','6369088naLrcF','log','green','dim','message','11571435KTWDfH','error','10Nisrdv','No\x20credential\x20found'];a38_0x3ed2=function(){return _0x23bf43;};return a38_0x3ed2();}import{GlobalContext}from'../core/global-context.js';import a38_0x1f3a57 from'chalk';export class StatusCommand extends BaseCommand{[a38_0x322050(0x1d5)]=a38_0x322050(0x1d3);['description']=a38_0x322050(0x1c8);async[a38_0x322050(0x1d6)](_0x538ce4){const _0x374844=a38_0x322050,{options:_0x38f5ce,tdx:_0x2c7b39}=_0x538ce4,_0x5257dc=_0x38f5ce[_0x374844(0x1d7)],_0x38829d=_0x38f5ce[_0x374844(0x1de)],_0x265c12=_0x38829d?a38_0x1f3a57[_0x374844(0x1c6)](_0x38829d):a38_0x1f3a57[_0x374844(0x1bf)](_0x374844(0x1cc));console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1c7)]('tdx')+_0x374844(0x1d0)+_0x265c12+'\x20'+a38_0x1f3a57['dim']('(')+'site:\x20'+a38_0x1f3a57[_0x374844(0x1c6)](_0x5257dc)+a38_0x1f3a57['dim'](')'));const _0x244318=await resolveAPIKeyAsync(_0x5257dc,_0x38829d);if(_0x244318){const {source:_0x3f7069,isDeprecated:_0xfb9b7c}=_0x244318,_0x39224a=_0x374844(0x1d2)+a38_0x1f3a57[_0x374844(0x1c6)](_0x3f7069);console[_0x374844(0x1bd)](_0xfb9b7c?a38_0x1f3a57[_0x374844(0x1cd)](_0x39224a):_0x39224a);}else console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1cd)](_0x374844(0x1c4)));let _0x2c28a2=![];try{const _0x7f7f4c=await _0x2c7b39[_0x374844(0x1e4)][_0x374844(0x1df)]();console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1be)](_0x374844(0x1ca))),console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1c7)](_0x374844(0x1e1))+'\x20'+a38_0x1f3a57['cyan'](_0x7f7f4c[_0x374844(0x1e2)]));if(_0x7f7f4c[_0x374844(0x1e0)]||_0x7f7f4c[_0x374844(0x1c5)]){const _0x343917=[_0x7f7f4c[_0x374844(0x1e0)],_0x7f7f4c[_0x374844(0x1c5)]][_0x374844(0x1cb)](Boolean)[_0x374844(0x1d1)]('\x20');console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1c7)](_0x374844(0x1ce))+'\x20'+_0x343917);}_0x7f7f4c['account_id']&&console[_0x374844(0x1bd)](a38_0x1f3a57[_0x374844(0x1c7)](_0x374844(0x1d4))+'\x20'+a38_0x1f3a57[_0x374844(0x1cd)](_0x7f7f4c['account_id'])),_0x2c28a2=!![];}catch(_0x5e750b){_0x5e750b instanceof HTTPClientError&&_0x5e750b[_0x374844(0x1d3)]===0x191?printAuthError(_0x5e750b,!![],_0x38829d):console[_0x374844(0x1c2)](a38_0x1f3a57[_0x374844(0x1c9)](_0x374844(0x1da)+(_0x5e750b instanceof Error?_0x5e750b[_0x374844(0x1c0)]:String(_0x5e750b))));}console[_0x374844(0x1bd)]();const _0x450315=new GlobalContext(_0x38f5ce);return _0x450315[_0x374844(0x1bb)](),_0x2c28a2?0x0:0x1;}}
@@ -1 +1 @@
1
- function a39_0x2fc4(_0x485545,_0x16412b){_0x485545=_0x485545-0x190;const _0x550560=a39_0x5505();let _0x2fc421=_0x550560[_0x485545];return _0x2fc421;}const a39_0x3895c0=a39_0x2fc4;(function(_0x383cad,_0x131b21){const _0x59542b=a39_0x2fc4,_0x1888c2=_0x383cad();while(!![]){try{const _0x537b17=-parseInt(_0x59542b(0x199))/0x1*(parseInt(_0x59542b(0x1a2))/0x2)+parseInt(_0x59542b(0x1ab))/0x3*(parseInt(_0x59542b(0x193))/0x4)+parseInt(_0x59542b(0x19c))/0x5*(parseInt(_0x59542b(0x1b9))/0x6)+parseInt(_0x59542b(0x1b4))/0x7*(-parseInt(_0x59542b(0x19a))/0x8)+-parseInt(_0x59542b(0x195))/0x9+-parseInt(_0x59542b(0x1a8))/0xa+parseInt(_0x59542b(0x1ba))/0xb;if(_0x537b17===_0x131b21)break;else _0x1888c2['push'](_0x1888c2['shift']());}catch(_0x17bfdd){_0x1888c2['push'](_0x1888c2['shift']());}}}(a39_0x5505,0x8f33d));import{BaseCommand}from'./command.js';function a39_0x5505(){const _0x11acab=['Database\x20pattern:\x20','Database:\x20all','4840050ZTJewT','\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20','Database\x20\x27','994827NDGXkZ','\x20\x20tdx\x20tables\x20\x22*.user*\x22\x20\x20\x20\x20\x20\x20\x20->\x20tables\x20matching\x20user*\x20across\x20databases','.*\x22','Note:\x20\x27','query','description','\x20table','table','\x27\x20is\x20ambiguous.','5089lNijjN','Table\x20pattern:\x20','limit','execute','✖\x20No\x20tables\x20found','12QnWzBZ','30388996WeUpXi','Error:\x20','database','name','\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20','List\x20tables\x20in\x20a\x20database','Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27','message','\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb','Or\x20use\x20--in\x20flag:','4KOrnFu','\x27\x20across\x20all\x20databases.','4367853jLaWni','Error:\x20Pattern\x20\x27','\x20\x20Cause:\x20','cause','87ppyFxU','11736iDmWep','error','874645QuRiwY','verbose','listTables','length','✔\x20Found\x20','Database:\x20','18890CLHoRl','\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27','\x20\x20Use:\x20tdx\x20tables\x20\x22','includes'];a39_0x5505=function(){return _0x11acab;};return a39_0x5505();}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{[a39_0x3895c0(0x1bd)]='tables';[a39_0x3895c0(0x1b0)]=a39_0x3895c0(0x1bf);async[a39_0x3895c0(0x1b7)](_0x11456a){const _0x5366c1=a39_0x3895c0,{options:_0x4f7a99,args:_0x139723,tdx:_0x2b7665}=_0x11456a;let _0x5a6211;if(_0x139723[_0x5366c1(0x19f)]===0x0)_0x5a6211={'database':undefined,'table':undefined,'original':''};else{if(_0x139723[_0x5366c1(0x19f)]===0x1)try{_0x5a6211=parseTableReference(_0x139723[0x0]);if(_0x5a6211[_0x5366c1(0x1b2)]&&!_0x5a6211['database']&&!_0x5a6211[_0x5366c1(0x1b2)]['includes']('*')&&!_0x5a6211[_0x5366c1(0x1b2)][_0x5366c1(0x1a5)]('?'))return console['error'](_0x5366c1(0x196)+_0x139723[0x0]+_0x5366c1(0x1b3)),console[_0x5366c1(0x19b)](_0x5366c1(0x1c0)+_0x5a6211[_0x5366c1(0x1b2)]+'\x27?'),console[_0x5366c1(0x19b)](_0x5366c1(0x1a4)+_0x5a6211['table']+_0x5366c1(0x1ad)),console[_0x5366c1(0x19b)](_0x5366c1(0x1a9)+_0x5a6211[_0x5366c1(0x1b2)]),console['error'](_0x5366c1(0x1be)+_0x5a6211[_0x5366c1(0x1b2)]),console[_0x5366c1(0x19b)](''),console['error'](_0x5366c1(0x1ae)+_0x139723[0x0]+_0x5366c1(0x1a3)+_0x5a6211['table']+_0x5366c1(0x194)),0x1;}catch(_0x4b34bf){return console[_0x5366c1(0x19b)]('Error:\x20'+_0x4b34bf['message']),0x1;}else return console[_0x5366c1(0x19b)]('Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:'),console['error']('\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases'),console[_0x5366c1(0x19b)]('\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb'),console[_0x5366c1(0x19b)](_0x5366c1(0x191)),console[_0x5366c1(0x19b)](_0x5366c1(0x1ac)),console[_0x5366c1(0x19b)](_0x5366c1(0x192)),console['error']('\x20\x20tdx\x20tables\x20--in\x20mydb\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb'),0x1;}const _0x5ce3d1=_0x4f7a99[_0x5366c1(0x1bc)];!_0x5a6211[_0x5366c1(0x1bc)]&&_0x5ce3d1&&(_0x5a6211[_0x5366c1(0x1bc)]=_0x5ce3d1);try{const _0x51508e=_0x1c53d5=>_0x1c53d5&&(_0x1c53d5[_0x5366c1(0x1a5)]('*')||_0x1c53d5[_0x5366c1(0x1a5)]('?')),_0x1fdb5c=_0x51508e(_0x5a6211[_0x5366c1(0x1bc)]);_0x4f7a99[_0x5366c1(0x19d)]&&(console[_0x5366c1(0x19b)]('Site:\x20'+_0x4f7a99['site']),_0x5a6211[_0x5366c1(0x1bc)]?_0x1fdb5c?console[_0x5366c1(0x19b)](_0x5366c1(0x1a6)+_0x5a6211[_0x5366c1(0x1bc)]):console['error'](_0x5366c1(0x1a1)+_0x5a6211['database']):console['error'](_0x5366c1(0x1a7)),_0x5a6211['table']&&console[_0x5366c1(0x19b)](_0x5366c1(0x1b5)+_0x5a6211[_0x5366c1(0x1b2)]));const _0x1f752c=_0x5a6211['database']&&!_0x1fdb5c?_0x5a6211['database']:undefined,_0x281706=_0x1fdb5c?_0x5a6211[_0x5366c1(0x1bc)]:undefined,_0x556404=_0x5a6211[_0x5366c1(0x1b2)],_0x197f64=resolveLimit(_0x4f7a99[_0x5366c1(0x1b6)],DEFAULT_LISTING_LIMIT),_0x386202=await withSpinner('Listing\x20tables...',()=>_0x2b7665[_0x5366c1(0x1af)][_0x5366c1(0x19e)](_0x1f752c,_0x556404,_0x281706,_0x197f64),{'verbose':_0x4f7a99[_0x5366c1(0x19d)]}),_0x343b76=_0x386202['data'];if(_0x343b76[_0x5366c1(0x19f)]===0x0&&_0x5a6211[_0x5366c1(0x1bc)]&&!_0x1fdb5c)return console[_0x5366c1(0x19b)](_0x5366c1(0x1b8)),console['error'](_0x5366c1(0x1aa)+_0x5a6211[_0x5366c1(0x1bc)]+'\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables'),0x1;return console[_0x5366c1(0x19b)](_0x5366c1(0x1a0)+_0x343b76['length']+_0x5366c1(0x1b1)+(_0x343b76[_0x5366c1(0x19f)]!==0x1?'s':'')),await handleSDKOutput(_0x343b76,{..._0x4f7a99,'limit':_0x197f64}),0x0;}catch(_0x53559d){if(_0x53559d instanceof SDKError)return console[_0x5366c1(0x19b)](_0x5366c1(0x1bb)+_0x53559d[_0x5366c1(0x190)]),_0x53559d['cause']&&console['error'](_0x5366c1(0x197)+_0x53559d[_0x5366c1(0x198)]),0x1;throw _0x53559d;}}['validate'](_0x334b8f){return undefined;}}
1
+ const a39_0x8dbd08=a39_0x21c6;(function(_0x6f419a,_0xc1c270){const _0x45c370=a39_0x21c6,_0x77dd8a=_0x6f419a();while(!![]){try{const _0x13aa07=parseInt(_0x45c370(0x126))/0x1+-parseInt(_0x45c370(0x12c))/0x2+-parseInt(_0x45c370(0x143))/0x3+-parseInt(_0x45c370(0x140))/0x4*(-parseInt(_0x45c370(0x128))/0x5)+parseInt(_0x45c370(0x120))/0x6*(-parseInt(_0x45c370(0x138))/0x7)+parseInt(_0x45c370(0x146))/0x8+parseInt(_0x45c370(0x129))/0x9*(parseInt(_0x45c370(0x134))/0xa);if(_0x13aa07===_0xc1c270)break;else _0x77dd8a['push'](_0x77dd8a['shift']());}catch(_0x364199){_0x77dd8a['push'](_0x77dd8a['shift']());}}}(a39_0x4b57,0xce101));import{BaseCommand}from'./command.js';function a39_0x4b57(){const _0x522983=['\x20\x20tdx\x20tables\x20\x22mydb.*\x22\x20\x20\x20\x20\x20\x20\x20\x20->\x20all\x20tables\x20from\x20mydb','\x27\x20is\x20ambiguous.','5142992OrvOUG','Or\x20use\x20--in\x20flag:','\x20\x20Or:\x20\x20tdx\x20tables\x20--database\x20','Table\x20pattern:\x20','\x20\x20Cause:\x20','cause','name','114hYiXfa','\x20table','tables','error','limit','List\x20tables\x20in\x20a\x20database','1565253Tlofuc','Site:\x20','449600YQIJKQ','3789qVQVnQ','Database\x20pattern:\x20','length','554066kHuVhQ','site','listTables','.*\x22','Listing\x20tables...','\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','\x27\x20without\x20wildcards\x20would\x20search\x20for\x20tables\x20named\x20\x27','2990MsFrfQ','database','includes','query','67361gArTyd','\x27\x20may\x20not\x20exist\x20or\x20contains\x20no\x20tables','table','\x20\x20Use:\x20tdx\x20tables\x20\x22','Database\x20\x27','message','Did\x20you\x20mean\x20to\x20list\x20all\x20tables\x20from\x20database\x20\x27','verbose','16CCRGFa','data','✖\x20No\x20tables\x20found','4169349MJcGKV'];a39_0x4b57=function(){return _0x522983;};return a39_0x4b57();}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';function a39_0x21c6(_0x5dd350,_0x4589d3){_0x5dd350=_0x5dd350-0x11c;const _0x4b5772=a39_0x4b57();let _0x21c64e=_0x4b5772[_0x5dd350];return _0x21c64e;}import{withSpinner}from'../utils/spinner.js';export class TablesCommand extends BaseCommand{[a39_0x8dbd08(0x11f)]=a39_0x8dbd08(0x122);['description']=a39_0x8dbd08(0x125);async['execute'](_0x361518){const _0x50194b=a39_0x8dbd08,{options:_0x255018,args:_0x7ad71f,tdx:_0x4621b0}=_0x361518;let _0x2418e7;if(_0x7ad71f['length']===0x0)_0x2418e7={'database':undefined,'table':undefined,'original':''};else{if(_0x7ad71f[_0x50194b(0x12b)]===0x1)try{_0x2418e7=parseTableReference(_0x7ad71f[0x0]);if(_0x2418e7['table']&&!_0x2418e7[_0x50194b(0x135)]&&!_0x2418e7[_0x50194b(0x13a)][_0x50194b(0x136)]('*')&&!_0x2418e7[_0x50194b(0x13a)]['includes']('?'))return console['error']('Error:\x20Pattern\x20\x27'+_0x7ad71f[0x0]+_0x50194b(0x145)),console[_0x50194b(0x123)](_0x50194b(0x13e)+_0x2418e7['table']+'\x27?'),console[_0x50194b(0x123)](_0x50194b(0x13b)+_0x2418e7[_0x50194b(0x13a)]+_0x50194b(0x12f)),console['error']('\x20\x20Or:\x20\x20tdx\x20tables\x20--in\x20'+_0x2418e7['table']),console['error'](_0x50194b(0x148)+_0x2418e7['table']),console['error'](''),console[_0x50194b(0x123)]('Note:\x20\x27'+_0x7ad71f[0x0]+_0x50194b(0x133)+_0x2418e7[_0x50194b(0x13a)]+'\x27\x20across\x20all\x20databases.'),0x1;}catch(_0x51bc86){return console[_0x50194b(0x123)]('Error:\x20'+_0x51bc86[_0x50194b(0x13d)]),0x1;}else return console[_0x50194b(0x123)]('Error:\x20Too\x20many\x20arguments.\x20Use\x20single\x20argument:'),console[_0x50194b(0x123)]('\x20\x20tdx\x20tables\x20users\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20across\x20all\x20databases'),console[_0x50194b(0x123)](_0x50194b(0x144)),console['error']('\x20\x20tdx\x20tables\x20\x22mydb.users\x22\x20\x20\x20\x20->\x20table\x20\x22users\x22\x20in\x20database\x20mydb'),console[_0x50194b(0x123)](_0x50194b(0x131)),console[_0x50194b(0x123)](_0x50194b(0x147)),console['error'](_0x50194b(0x132)),0x1;}const _0x178f45=_0x255018[_0x50194b(0x135)];!_0x2418e7['database']&&_0x178f45&&(_0x2418e7['database']=_0x178f45);try{const _0x48ca26=_0xf79282=>_0xf79282&&(_0xf79282[_0x50194b(0x136)]('*')||_0xf79282[_0x50194b(0x136)]('?')),_0x42051c=_0x48ca26(_0x2418e7[_0x50194b(0x135)]);_0x255018['verbose']&&(console[_0x50194b(0x123)](_0x50194b(0x127)+_0x255018[_0x50194b(0x12d)]),_0x2418e7[_0x50194b(0x135)]?_0x42051c?console['error'](_0x50194b(0x12a)+_0x2418e7[_0x50194b(0x135)]):console['error']('Database:\x20'+_0x2418e7[_0x50194b(0x135)]):console[_0x50194b(0x123)]('Database:\x20all'),_0x2418e7[_0x50194b(0x13a)]&&console[_0x50194b(0x123)](_0x50194b(0x11c)+_0x2418e7[_0x50194b(0x13a)]));const _0x528174=_0x2418e7[_0x50194b(0x135)]&&!_0x42051c?_0x2418e7['database']:undefined,_0x7dc447=_0x42051c?_0x2418e7[_0x50194b(0x135)]:undefined,_0x1ff10e=_0x2418e7[_0x50194b(0x13a)],_0x434764=resolveLimit(_0x255018[_0x50194b(0x124)],DEFAULT_LISTING_LIMIT),_0x352303=await withSpinner(_0x50194b(0x130),()=>_0x4621b0[_0x50194b(0x137)][_0x50194b(0x12e)](_0x528174,_0x1ff10e,_0x7dc447,_0x434764),{'verbose':_0x255018[_0x50194b(0x13f)]}),_0x45cc4b=_0x352303[_0x50194b(0x141)];if(_0x45cc4b['length']===0x0&&_0x2418e7[_0x50194b(0x135)]&&!_0x42051c)return console[_0x50194b(0x123)](_0x50194b(0x142)),console[_0x50194b(0x123)](_0x50194b(0x13c)+_0x2418e7[_0x50194b(0x135)]+_0x50194b(0x139)),0x1;return console['error']('✔\x20Found\x20'+_0x45cc4b['length']+_0x50194b(0x121)+(_0x45cc4b[_0x50194b(0x12b)]!==0x1?'s':'')),await handleSDKOutput(_0x45cc4b,{..._0x255018,'limit':_0x434764}),0x0;}catch(_0xf04fc){if(_0xf04fc instanceof SDKError)return console[_0x50194b(0x123)]('Error:\x20'+_0xf04fc[_0x50194b(0x13d)]),_0xf04fc[_0x50194b(0x11e)]&&console[_0x50194b(0x123)](_0x50194b(0x11d)+_0xf04fc[_0x50194b(0x11e)]),0x1;throw _0xf04fc;}}['validate'](_0x1aec1f){return undefined;}}
@@ -1 +1 @@
1
- const a40_0x209b57=a40_0xe343;(function(_0x40ee1b,_0x166628){const _0x5855ad=a40_0xe343,_0x44e555=_0x40ee1b();while(!![]){try{const _0x3cc64b=-parseInt(_0x5855ad(0x1c3))/0x1*(-parseInt(_0x5855ad(0x1d5))/0x2)+parseInt(_0x5855ad(0x1cf))/0x3*(parseInt(_0x5855ad(0x1d9))/0x4)+-parseInt(_0x5855ad(0x1c7))/0x5+-parseInt(_0x5855ad(0x1da))/0x6+parseInt(_0x5855ad(0x1c0))/0x7+-parseInt(_0x5855ad(0x1ca))/0x8*(parseInt(_0x5855ad(0x1ba))/0x9)+parseInt(_0x5855ad(0x1d0))/0xa*(-parseInt(_0x5855ad(0x1cc))/0xb);if(_0x3cc64b===_0x166628)break;else _0x44e555['push'](_0x44e555['shift']());}catch(_0x194e8d){_0x44e555['push'](_0x44e555['shift']());}}}(a40_0x2cf2,0x490d7));function a40_0x2cf2(){const _0x183375=['agent','Default\x20profile\x20','1237830UzLeUp','150130qaoHVG','parent_segment','cleared','name','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','1564vZniOU','session','Error:\x20','join','4iNplDA','2854872oZBeHC','Default\x20site\x20','error','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a','site','log','toString','default','\x0aRun\x20\x27tdx\x20unset\x20--help\x27\x20for\x20more\x20options','\x20\x20\x20\x20\x20\x20\x20tdx\x20unset\x20--default\x20<resource>\x20\x20#\x20Clear\x20default\x20from\x20config\x0a','execute','\x0aUpdated:\x20','27AlDvfv','Session\x20','llm_agent','unset','engage_workspace','Invalid\x20resource:\x20','1913128TnvHnN','database','dim','241daHTvc','green','profile','llm_project','72875gKdPBp','Clear\x20session-level\x20or\x20default\x20context\x20values','includes','186008zojGmy','Usage:\x20tdx\x20unset\x20<resource>\x0a','11eYzyeO'];a40_0x2cf2=function(){return _0x183375;};return a40_0x2cf2();}import{BaseCommand}from'./command.js';import{getCurrentSessionPID,cleanExpiredSessions,clearSessionContextField}from'../core/session.js';import{clearDefaultSiteFromUserConfig,clearActiveProfileFromUserConfig}from'../core/profile.js';import{getConfigDir}from'../core/config.js';import a40_0x194169 from'chalk';function a40_0xe343(_0x3a806b,_0x836186){_0x3a806b=_0x3a806b-0x1af;const _0x2cf2dc=a40_0x2cf2();let _0xe343df=_0x2cf2dc[_0x3a806b];return _0xe343df;}import*as a40_0x2b44df from'node:path';export class UnsetCommand extends BaseCommand{[a40_0x209b57(0x1d3)]=a40_0x209b57(0x1bd);['description']=a40_0x209b57(0x1c8);['validate'](_0x2ed511){const _0x2ed7a9=a40_0x209b57,{args:_0x55bbff,options:_0x4a7102}=_0x2ed511,_0x3eb5c0=_0x4a7102['default'];if(_0x55bbff['length']===0x0)return _0x2ed7a9(0x1cb)+_0x2ed7a9(0x1b7)+_0x2ed7a9(0x1b1)+_0x2ed7a9(0x1b6);const _0x12cdb8=_0x55bbff[0x0],_0x4619dc=['site',_0x2ed7a9(0x1c1),_0x2ed7a9(0x1d1),_0x2ed7a9(0x1c6),_0x2ed7a9(0x1cd),'profile',_0x2ed7a9(0x1be)];if(!_0x4619dc[_0x2ed7a9(0x1c9)](_0x12cdb8))return _0x2ed7a9(0x1bf)+_0x12cdb8+'.\x20Must\x20be\x20one\x20of:\x20'+_0x4619dc[_0x2ed7a9(0x1d8)](',\x20');if(_0x3eb5c0&&_0x12cdb8!==_0x2ed7a9(0x1b2)&&_0x12cdb8!==_0x2ed7a9(0x1c5))return _0x2ed7a9(0x1d4);return undefined;}async[a40_0x209b57(0x1b8)](_0x491a71){const _0x522f3a=a40_0x209b57,{args:_0x5921b5,options:_0x3d8bf5}=_0x491a71,_0x513a4d=_0x3d8bf5[_0x522f3a(0x1b5)];cleanExpiredSessions();try{const _0x34fcb5=_0x5921b5[0x0],_0x279afd=a40_0x2b44df[_0x522f3a(0x1d8)](getConfigDir(),'tdx.json');if(_0x513a4d){if(_0x34fcb5===_0x522f3a(0x1b2))return clearDefaultSiteFromUserConfig(),console[_0x522f3a(0x1b3)](_0x522f3a(0x1af)+a40_0x194169['green'](_0x522f3a(0x1d2))),console[_0x522f3a(0x1b3)](a40_0x194169['dim'](_0x522f3a(0x1b9)+_0x279afd)),0x0;if(_0x34fcb5===_0x522f3a(0x1c5))return clearActiveProfileFromUserConfig(),console[_0x522f3a(0x1b3)](_0x522f3a(0x1ce)+a40_0x194169['green']('cleared')),console[_0x522f3a(0x1b3)](a40_0x194169[_0x522f3a(0x1c2)](_0x522f3a(0x1b9)+_0x279afd)),0x0;}const _0x3f3621=_0x3d8bf5[_0x522f3a(0x1d6)]||getCurrentSessionPID()[_0x522f3a(0x1b4)](),_0x3b2d63={'site':_0x522f3a(0x1b2),'database':_0x522f3a(0x1c1),'parent_segment':'parent_segment','llm_project':'llm_project','agent':_0x522f3a(0x1bc),'profile':_0x522f3a(0x1c5),'engage_workspace':_0x522f3a(0x1be)},_0x228207=_0x3b2d63[_0x34fcb5];return _0x228207&&(clearSessionContextField(_0x228207,_0x3d8bf5['session']),console[_0x522f3a(0x1b3)](_0x522f3a(0x1bb)+_0x34fcb5+'\x20'+a40_0x194169[_0x522f3a(0x1c4)](_0x522f3a(0x1d2))+'\x20'+a40_0x194169[_0x522f3a(0x1c2)]('(session:\x20'+_0x3f3621+')'))),0x0;}catch(_0x1041ec){return _0x1041ec instanceof Error&&console[_0x522f3a(0x1b0)](_0x522f3a(0x1d7)+_0x1041ec['message']),0x1;}}}
1
+ const a40_0x2e5374=a40_0x3a59;(function(_0x5e945f,_0x18fd05){const _0x3c8245=a40_0x3a59,_0x6be312=_0x5e945f();while(!![]){try{const _0x1074c0=parseInt(_0x3c8245(0x7b))/0x1+-parseInt(_0x3c8245(0x72))/0x2+parseInt(_0x3c8245(0x8b))/0x3+-parseInt(_0x3c8245(0x6d))/0x4+-parseInt(_0x3c8245(0x81))/0x5*(parseInt(_0x3c8245(0x80))/0x6)+-parseInt(_0x3c8245(0x6e))/0x7*(parseInt(_0x3c8245(0x7a))/0x8)+parseInt(_0x3c8245(0x7f))/0x9;if(_0x1074c0===_0x18fd05)break;else _0x6be312['push'](_0x6be312['shift']());}catch(_0x54f166){_0x6be312['push'](_0x6be312['shift']());}}}(a40_0x4388,0x91d28));function a40_0x3a59(_0x1d35af,_0x1ee912){_0x1d35af=_0x1d35af-0x6d;const _0x43886a=a40_0x4388();let _0x3a592f=_0x43886a[_0x1d35af];return _0x3a592f;}import{BaseCommand}from'./command.js';import{getCurrentSessionPID,cleanExpiredSessions,clearSessionContextField}from'../core/session.js';function a40_0x4388(){const _0x3e4ab6=['(session:\x20','engage_workspace','862608lwOkYw','7SjmMrA','\x0aUpdated:\x20','unset','llm_project','281772zqqLow','Clear\x20session-level\x20or\x20default\x20context\x20values','description','session','name','llm_agent','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','tdx.json','4298216NURYbr','672218tmOpwc','\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a','toString','join','6915528hnymXS','132uNHtus','61325yNLvkp','Invalid\x20resource:\x20','dim','site','message','length','log','green','\x0aRun\x20\x27tdx\x20unset\x20--help\x27\x20for\x20more\x20options','cleared','960969nRMMds','Session\x20','error','.\x20Must\x20be\x20one\x20of:\x20','execute','Usage:\x20tdx\x20unset\x20<resource>\x0a','agent','Default\x20site\x20','parent_segment','profile','default','Default\x20profile\x20','database'];a40_0x4388=function(){return _0x3e4ab6;};return a40_0x4388();}import{clearDefaultSiteFromUserConfig,clearActiveProfileFromUserConfig}from'../core/profile.js';import{getConfigDir}from'../core/config.js';import a40_0x5df56d from'chalk';import*as a40_0x30cd64 from'node:path';export class UnsetCommand extends BaseCommand{[a40_0x2e5374(0x76)]=a40_0x2e5374(0x70);[a40_0x2e5374(0x74)]=a40_0x2e5374(0x73);['validate'](_0x21c5a8){const _0x1e6a3a=a40_0x2e5374,{args:_0x198711,options:_0x127ba5}=_0x21c5a8,_0x38302a=_0x127ba5[_0x1e6a3a(0x95)];if(_0x198711[_0x1e6a3a(0x86)]===0x0)return _0x1e6a3a(0x90)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20unset\x20--default\x20<resource>\x20\x20#\x20Clear\x20default\x20from\x20config\x0a'+_0x1e6a3a(0x7c)+_0x1e6a3a(0x89);const _0x173b73=_0x198711[0x0],_0x39b473=[_0x1e6a3a(0x84),_0x1e6a3a(0x97),_0x1e6a3a(0x93),_0x1e6a3a(0x71),_0x1e6a3a(0x91),_0x1e6a3a(0x94),'engage_workspace'];if(!_0x39b473['includes'](_0x173b73))return _0x1e6a3a(0x82)+_0x173b73+_0x1e6a3a(0x8e)+_0x39b473['join'](',\x20');if(_0x38302a&&_0x173b73!==_0x1e6a3a(0x84)&&_0x173b73!==_0x1e6a3a(0x94))return _0x1e6a3a(0x78);return undefined;}async[a40_0x2e5374(0x8f)](_0x3bf496){const _0x46459c=a40_0x2e5374,{args:_0x5ea069,options:_0x1e1584}=_0x3bf496,_0x2e0faa=_0x1e1584[_0x46459c(0x95)];cleanExpiredSessions();try{const _0x426cbc=_0x5ea069[0x0],_0x43088f=a40_0x30cd64[_0x46459c(0x7e)](getConfigDir(),_0x46459c(0x79));if(_0x2e0faa){if(_0x426cbc===_0x46459c(0x84))return clearDefaultSiteFromUserConfig(),console[_0x46459c(0x87)](_0x46459c(0x92)+a40_0x5df56d[_0x46459c(0x88)](_0x46459c(0x8a))),console[_0x46459c(0x87)](a40_0x5df56d[_0x46459c(0x83)](_0x46459c(0x6f)+_0x43088f)),0x0;if(_0x426cbc==='profile')return clearActiveProfileFromUserConfig(),console[_0x46459c(0x87)](_0x46459c(0x96)+a40_0x5df56d[_0x46459c(0x88)](_0x46459c(0x8a))),console['log'](a40_0x5df56d[_0x46459c(0x83)](_0x46459c(0x6f)+_0x43088f)),0x0;}const _0x356591=_0x1e1584['session']||getCurrentSessionPID()[_0x46459c(0x7d)](),_0x528776={'site':_0x46459c(0x84),'database':_0x46459c(0x97),'parent_segment':_0x46459c(0x93),'llm_project':_0x46459c(0x71),'agent':_0x46459c(0x77),'profile':_0x46459c(0x94),'engage_workspace':_0x46459c(0x99)},_0x54ad80=_0x528776[_0x426cbc];return _0x54ad80&&(clearSessionContextField(_0x54ad80,_0x1e1584[_0x46459c(0x75)]),console[_0x46459c(0x87)](_0x46459c(0x8c)+_0x426cbc+'\x20'+a40_0x5df56d['green'](_0x46459c(0x8a))+'\x20'+a40_0x5df56d[_0x46459c(0x83)](_0x46459c(0x98)+_0x356591+')'))),0x0;}catch(_0x12b718){return _0x12b718 instanceof Error&&console[_0x46459c(0x8d)]('Error:\x20'+_0x12b718[_0x46459c(0x85)]),0x1;}}}
@@ -1 +1 @@
1
- const a41_0x5c6e60=a41_0x3b2a;(function(_0x4467d,_0xbc21f2){const _0xaeef86=a41_0x3b2a,_0x144708=_0x4467d();while(!![]){try{const _0x5842aa=-parseInt(_0xaeef86(0x201))/0x1+-parseInt(_0xaeef86(0x204))/0x2+parseInt(_0xaeef86(0x211))/0x3+-parseInt(_0xaeef86(0x1ec))/0x4+parseInt(_0xaeef86(0x209))/0x5*(parseInt(_0xaeef86(0x212))/0x6)+-parseInt(_0xaeef86(0x1ed))/0x7+parseInt(_0xaeef86(0x218))/0x8;if(_0x5842aa===_0xbc21f2)break;else _0x144708['push'](_0x144708['shift']());}catch(_0xd99e65){_0x144708['push'](_0x144708['shift']());}}}(a41_0x2c97,0xbc101));function a41_0x3b2a(_0x740b24,_0x4983c6){_0x740b24=_0x740b24-0x1e1;const _0x2c97f3=a41_0x2c97();let _0x3b2adc=_0x2c97f3[_0x740b24];return _0x3b2adc;}import{BaseCommand}from'./command.js';import{saveSessionContext,getCurrentSessionPID,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 a41_0x1ffc27 from'chalk';import*as a41_0xbfacda from'node:path';function a41_0x2c97(){const _0x56257c=['Error:\x20Profile\x20\x27','.\x20Must\x20be\x20one\x20of:\x20','\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>','engage_workspace','description','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','1505688CoJtat','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','Session\x20parent_segment\x20set\x20to:\x20','566344RAzluY','tdx.json','llm_project','Session\x20context\x20','clear','4587240hoMoAW','Error:\x20','Session\x20llm_project\x20set\x20to:\x20','Session\x20database\x20set\x20to:\x20','Session\x20engage_workspace\x20set\x20to:\x20','Use\x20--default\x20with\x20site\x20or\x20profile\x20to\x20save\x20permanently','Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace','execute','4025073XiqjDq','6mBGbzO','profile','\x0aSaved\x20to:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20current\x20context\x0a','Session\x20profile\x20set\x20to:\x20','message','15163136UWbGOU','(session:\x20','display','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','site','default','length','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20','\x27\x20does\x20not\x20exist','database','toString','validate','dim','Default\x20profile\x20set\x20to:\x20','join','log','\x27\x20to\x20save\x20permanently','Set\x20session-level\x20context','Session\x20agent\x20set\x20to:\x20','error','name','Default\x20site\x20set\x20to:\x20','Session\x20site\x20set\x20to:\x20','4572912krrNBa','3164966BsLBFf','Invalid\x20resource:\x20','displayWithSources','llm_agent','parent_segment','cleared','agent','debug','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a','session','green','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a','includes','use'];a41_0x2c97=function(){return _0x56257c;};return a41_0x2c97();}export class UseCommand extends BaseCommand{[a41_0x5c6e60(0x1e9)]=a41_0x5c6e60(0x1fa);[a41_0x5c6e60(0x1ff)]=a41_0x5c6e60(0x1e6);[a41_0x5c6e60(0x223)](_0x20cf0f){const _0x4ab3fc=a41_0x5c6e60,{args:_0x215d4e,options:_0x1b0178}=_0x20cf0f,_0x5c735d=_0x1b0178[_0x4ab3fc(0x21d)];if(_0x215d4e[_0x4ab3fc(0x21e)]===0x0)return undefined;if(_0x215d4e[_0x4ab3fc(0x21e)]===0x1)return'Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a'+_0x4ab3fc(0x215)+_0x4ab3fc(0x1f8)+_0x4ab3fc(0x1f5)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20profile\x20<value>\x20\x20#\x20Save\x20default\x20profile\x20to\x20config\x0a'+'\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a'+'\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options';const _0x246173=_0x215d4e[0x0],_0x464ca1=[_0x4ab3fc(0x21c),_0x4ab3fc(0x221),_0x4ab3fc(0x1f1),_0x4ab3fc(0x206),'agent',_0x4ab3fc(0x213),_0x4ab3fc(0x1fe)];if(!_0x464ca1[_0x4ab3fc(0x1f9)](_0x246173))return _0x4ab3fc(0x1ee)+_0x246173+_0x4ab3fc(0x1fc)+_0x464ca1['join'](',\x20');if(_0x5c735d&&_0x246173!=='site'&&_0x246173!=='profile')return _0x4ab3fc(0x200);return undefined;}async[a41_0x5c6e60(0x210)](_0x5346f0){const _0x2bbb79=a41_0x5c6e60,{args:_0x21bbda,options:_0x161205}=_0x5346f0,_0x599f52=_0x161205[_0x2bbb79(0x1f4)],_0x4f0643=_0x161205[_0x2bbb79(0x208)],_0x1fa674=_0x161205['default'];cleanExpiredSessions();try{if(_0x4f0643){clearSessionContext(_0x161205['session']);const _0x21a38f=_0x161205[_0x2bbb79(0x1f6)]||getCurrentSessionPID()['toString']();return console[_0x2bbb79(0x1e4)](_0x2bbb79(0x207)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x2bbb79(0x1f2))+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x219)+_0x21a38f+')')),0x0;}if(_0x21bbda[_0x2bbb79(0x21e)]===0x0){const _0xeb734=new GlobalContext(_0x161205);return _0x599f52?_0xeb734[_0x2bbb79(0x1ef)]():_0xeb734[_0x2bbb79(0x21a)](),console['log'](a41_0x1ffc27['dim'](_0x2bbb79(0x1fd))),console[_0x2bbb79(0x1e4)](a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x20f))),console[_0x2bbb79(0x1e4)](a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x20e))),0x0;}const _0x329469=_0x21bbda[0x0],_0x5a293f=_0x21bbda[0x1],_0x343b42=a41_0xbfacda[_0x2bbb79(0x1e3)](getConfigDir(),_0x2bbb79(0x205));if(_0x1fa674){if(_0x329469===_0x2bbb79(0x21c))return saveDefaultSiteToUserConfig(_0x5a293f),console['log'](_0x2bbb79(0x1ea)+a41_0x1ffc27['green'](_0x5a293f)),console[_0x2bbb79(0x1e4)](a41_0x1ffc27['dim'](_0x2bbb79(0x214)+_0x343b42)),0x0;if(_0x329469===_0x2bbb79(0x213)){if(!profileExists(_0x5a293f))return console[_0x2bbb79(0x1e8)](_0x2bbb79(0x1fb)+_0x5a293f+_0x2bbb79(0x220)),console[_0x2bbb79(0x1e8)](_0x2bbb79(0x21b)),0x1;return saveActiveProfileToUserConfig(_0x5a293f),console[_0x2bbb79(0x1e4)](_0x2bbb79(0x1e2)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)),console[_0x2bbb79(0x1e4)](a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x214)+_0x343b42)),0x0;}}if(_0x329469===_0x2bbb79(0x21c)){const _0x4a9bce=_0x161205['session']||getCurrentSessionPID()[_0x2bbb79(0x222)]();return saveSessionContext({'site':_0x5a293f},_0x161205[_0x2bbb79(0x1f6)]),console[_0x2bbb79(0x1e4)](_0x2bbb79(0x1eb)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x219)+_0x4a9bce+')')),console[_0x2bbb79(0x1e4)](a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x21f)+_0x5a293f+_0x2bbb79(0x1e5))),0x0;}if(_0x329469===_0x2bbb79(0x213)){if(!profileExists(_0x5a293f))return console[_0x2bbb79(0x1e8)](_0x2bbb79(0x1fb)+_0x5a293f+'\x27\x20does\x20not\x20exist'),console[_0x2bbb79(0x1e8)](_0x2bbb79(0x21b)),0x1;const _0x233da2=_0x161205[_0x2bbb79(0x1f6)]||getCurrentSessionPID()[_0x2bbb79(0x222)]();return saveSessionContext({'profile':_0x5a293f},_0x161205['session']),console[_0x2bbb79(0x1e4)](_0x2bbb79(0x216)+a41_0x1ffc27['green'](_0x5a293f)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x219)+_0x233da2+')')),console['log'](a41_0x1ffc27[_0x2bbb79(0x1e1)]('\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20'+_0x5a293f+_0x2bbb79(0x1e5))),0x0;}const _0x1c73b2={},_0x159878=_0x161205[_0x2bbb79(0x1f6)]||getCurrentSessionPID()[_0x2bbb79(0x222)]();switch(_0x329469){case _0x2bbb79(0x221):_0x1c73b2[_0x2bbb79(0x221)]=_0x5a293f,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x20c)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27['dim']('(session:\x20'+_0x159878+')'));break;case _0x2bbb79(0x1f1):_0x1c73b2[_0x2bbb79(0x1f1)]=_0x5a293f,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x203)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27['dim']('(session:\x20'+_0x159878+')'));break;case _0x2bbb79(0x206):_0x1c73b2[_0x2bbb79(0x206)]=_0x5a293f,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x20b)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x219)+_0x159878+')'));break;case _0x2bbb79(0x1f3):{const {projectName:_0x1111ed,agentName:_0x2e5e9a}=parseAgentRef(_0x5a293f);_0x2e5e9a?(_0x1c73b2[_0x2bbb79(0x206)]=_0x1111ed,_0x1c73b2['llm_agent']=_0x2e5e9a,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x20b)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x1111ed)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)]('(session:\x20'+_0x159878+')')),console['log'](_0x2bbb79(0x1e7)+a41_0x1ffc27['green'](_0x2e5e9a)+'\x20'+a41_0x1ffc27['dim'](_0x2bbb79(0x219)+_0x159878+')'))):(_0x1c73b2[_0x2bbb79(0x1f0)]=_0x5a293f,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x1e7)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)](_0x2bbb79(0x219)+_0x159878+')')));break;}case _0x2bbb79(0x1fe):_0x1c73b2[_0x2bbb79(0x1fe)]=_0x5a293f,console[_0x2bbb79(0x1e4)](_0x2bbb79(0x20d)+a41_0x1ffc27[_0x2bbb79(0x1f7)](_0x5a293f)+'\x20'+a41_0x1ffc27[_0x2bbb79(0x1e1)]('(session:\x20'+_0x159878+')'));break;}return saveSessionContext(_0x1c73b2,_0x161205['session']),console[_0x2bbb79(0x1e4)](a41_0x1ffc27['dim'](_0x2bbb79(0x202))),0x0;}catch(_0x189613){return _0x189613 instanceof Error&&console[_0x2bbb79(0x1e8)](_0x2bbb79(0x20a)+_0x189613[_0x2bbb79(0x217)]),0x1;}}}
1
+ const a41_0x551ada=a41_0x381a;(function(_0x3217c4,_0xd2adf7){const _0x24caa1=a41_0x381a,_0x3c1145=_0x3217c4();while(!![]){try{const _0x4115f6=-parseInt(_0x24caa1(0xbc))/0x1+-parseInt(_0x24caa1(0xb6))/0x2*(parseInt(_0x24caa1(0xb8))/0x3)+-parseInt(_0x24caa1(0xb7))/0x4*(-parseInt(_0x24caa1(0xa0))/0x5)+-parseInt(_0x24caa1(0x7f))/0x6+-parseInt(_0x24caa1(0xba))/0x7*(-parseInt(_0x24caa1(0xa2))/0x8)+-parseInt(_0x24caa1(0x9e))/0x9+-parseInt(_0x24caa1(0xad))/0xa*(-parseInt(_0x24caa1(0x84))/0xb);if(_0x4115f6===_0xd2adf7)break;else _0x3c1145['push'](_0x3c1145['shift']());}catch(_0x1d74d6){_0x3c1145['push'](_0x3c1145['shift']());}}}(a41_0x4ac3,0xa4cad));import{BaseCommand}from'./command.js';import{saveSessionContext,getCurrentSessionPID,cleanExpiredSessions,clearSessionContext}from'../core/session.js';function a41_0x381a(_0x39d130,_0x5da9b9){_0x39d130=_0x39d130-0x7d;const _0x4ac3c3=a41_0x4ac3();let _0x381ab7=_0x4ac3c3[_0x39d130];return _0x381ab7;}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';function a41_0x4ac3(){const _0x39dfde=['profile','Usage:\x20tdx\x20use\x20<resource>\x20<value>\x0a','debug','Default\x20site\x20set\x20to:\x20','site','9868LGAAoL','4yahxfg','123zgEoNn','llm_agent','7HsVAmA','length','667145hlqefv','engage_workspace','Error:\x20Profile\x20\x27','5432418tVCeti','error','session','name','display','77wYAxec','(session:\x20','parent_segment','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--clear\x20\x20\x20\x20\x20\x20#\x20Clear\x20session\x20context\x0a','Session\x20agent\x20set\x20to:\x20','displayWithSources','Session\x20site\x20set\x20to:\x20','Session\x20engage_workspace\x20set\x20to:\x20','\x27\x20to\x20save\x20permanently','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--clear\x27\x20to\x20clear\x20session\x20overrides','dim','execute','default','\x0aRun\x20\x27tdx\x20use\x20--help\x27\x20for\x20more\x20options','database','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20profile\x20<value>\x20\x20#\x20Save\x20default\x20profile\x20to\x20config\x0a','Set\x20session-level\x20context','Session\x20context\x20','Session\x20parent_segment\x20set\x20to:\x20','llm_project','\x27\x20does\x20not\x20exist','Invalid\x20resource:\x20','log','\x0aSaved\x20to:\x20','Session\x20database\x20set\x20to:\x20','green','1164897ZRyFZr','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20site\x20','4130290iahbqu','--default\x20can\x20only\x20be\x20used\x20with\x20\x27site\x27\x20or\x20\x27profile\x27.\x20Other\x20resources\x20are\x20session-level\x20only.','1210216BjaxqK','description','Session\x20llm_project\x20set\x20to:\x20','message','\x0aTip:\x20Use\x20\x27tdx\x20use\x20--default\x20profile\x20','validate','tdx.json','toString','\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles','join','\x20\x20\x20\x20\x20\x20\x20tdx\x20use\x20--default\x20site\x20<value>\x20\x20\x20\x20\x20#\x20Save\x20default\x20site\x20to\x20config\x0a','2288470kdmcVv','.\x20Must\x20be\x20one\x20of:\x20','Session\x20profile\x20set\x20to:\x20','clear'];a41_0x4ac3=function(){return _0x39dfde;};return a41_0x4ac3();}import a41_0x2b05ff from'chalk';import*as a41_0x40d0da from'node:path';export class UseCommand extends BaseCommand{[a41_0x551ada(0x82)]='use';[a41_0x551ada(0xa3)]=a41_0x551ada(0x94);[a41_0x551ada(0xa7)](_0x2f0e00){const _0x5afd5b=a41_0x551ada,{args:_0x47f1eb,options:_0x59bd81}=_0x2f0e00,_0x42032e=_0x59bd81[_0x5afd5b(0x90)];if(_0x47f1eb[_0x5afd5b(0xbb)]===0x0)return undefined;if(_0x47f1eb['length']===0x1)return _0x5afd5b(0xb2)+'\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'+_0x5afd5b(0x87)+_0x5afd5b(0xac)+_0x5afd5b(0x93)+'\x0aResources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace\x0a'+_0x5afd5b(0x91);const _0x5520a1=_0x47f1eb[0x0],_0x15d5c3=['site',_0x5afd5b(0x92),_0x5afd5b(0x86),_0x5afd5b(0x97),'agent',_0x5afd5b(0xb1),_0x5afd5b(0x7d)];if(!_0x15d5c3['includes'](_0x5520a1))return _0x5afd5b(0x99)+_0x5520a1+_0x5afd5b(0xae)+_0x15d5c3[_0x5afd5b(0xab)](',\x20');if(_0x42032e&&_0x5520a1!==_0x5afd5b(0xb5)&&_0x5520a1!==_0x5afd5b(0xb1))return _0x5afd5b(0xa1);return undefined;}async[a41_0x551ada(0x8f)](_0x4f74ad){const _0x70989c=a41_0x551ada,{args:_0x742991,options:_0x7c466a}=_0x4f74ad,_0x3252c4=_0x7c466a[_0x70989c(0xb3)],_0x532d03=_0x7c466a[_0x70989c(0xb0)],_0x39a4c6=_0x7c466a['default'];cleanExpiredSessions();try{if(_0x532d03){clearSessionContext(_0x7c466a[_0x70989c(0x81)]);const _0x4542d3=_0x7c466a['session']||getCurrentSessionPID()['toString']();return console[_0x70989c(0x9a)](_0x70989c(0x95)+a41_0x2b05ff[_0x70989c(0x9d)]('cleared')+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x4542d3+')')),0x0;}if(_0x742991[_0x70989c(0xbb)]===0x0){const _0xc374ac=new GlobalContext(_0x7c466a);return _0x3252c4?_0xc374ac[_0x70989c(0x89)]():_0xc374ac[_0x70989c(0x83)](),console[_0x70989c(0x9a)](a41_0x2b05ff[_0x70989c(0x8e)]('\x0aSet\x20context:\x20tdx\x20use\x20<resource>\x20<value>')),console[_0x70989c(0x9a)](a41_0x2b05ff[_0x70989c(0x8e)]('Resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace')),console['log'](a41_0x2b05ff[_0x70989c(0x8e)]('Use\x20--default\x20with\x20site\x20or\x20profile\x20to\x20save\x20permanently')),0x0;}const _0x27054c=_0x742991[0x0],_0x181f90=_0x742991[0x1],_0x59e66e=a41_0x40d0da[_0x70989c(0xab)](getConfigDir(),_0x70989c(0xa8));if(_0x39a4c6){if(_0x27054c===_0x70989c(0xb5))return saveDefaultSiteToUserConfig(_0x181f90),console['log'](_0x70989c(0xb4)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)),console[_0x70989c(0x9a)](a41_0x2b05ff[_0x70989c(0x8e)]('\x0aSaved\x20to:\x20'+_0x59e66e)),0x0;if(_0x27054c===_0x70989c(0xb1)){if(!profileExists(_0x181f90))return console['error'](_0x70989c(0x7e)+_0x181f90+_0x70989c(0x98)),console[_0x70989c(0x80)]('\x0aUse\x20\x27tdx\x20profiles\x27\x20to\x20see\x20available\x20profiles'),0x1;return saveActiveProfileToUserConfig(_0x181f90),console['log']('Default\x20profile\x20set\x20to:\x20'+a41_0x2b05ff['green'](_0x181f90)),console[_0x70989c(0x9a)](a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x9b)+_0x59e66e)),0x0;}}if(_0x27054c==='site'){const _0x1ea8e1=_0x7c466a[_0x70989c(0x81)]||getCurrentSessionPID()[_0x70989c(0xa9)]();return saveSessionContext({'site':_0x181f90},_0x7c466a['session']),console['log'](_0x70989c(0x8a)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x1ea8e1+')')),console[_0x70989c(0x9a)](a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x9f)+_0x181f90+_0x70989c(0x8c))),0x0;}if(_0x27054c===_0x70989c(0xb1)){if(!profileExists(_0x181f90))return console['error']('Error:\x20Profile\x20\x27'+_0x181f90+'\x27\x20does\x20not\x20exist'),console['error'](_0x70989c(0xaa)),0x1;const _0x5004f5=_0x7c466a[_0x70989c(0x81)]||getCurrentSessionPID()['toString']();return saveSessionContext({'profile':_0x181f90},_0x7c466a['session']),console[_0x70989c(0x9a)](_0x70989c(0xaf)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff['dim']('(session:\x20'+_0x5004f5+')')),console['log'](a41_0x2b05ff['dim'](_0x70989c(0xa6)+_0x181f90+_0x70989c(0x8c))),0x0;}const _0x5148df={},_0x467196=_0x7c466a[_0x70989c(0x81)]||getCurrentSessionPID()[_0x70989c(0xa9)]();switch(_0x27054c){case _0x70989c(0x92):_0x5148df['database']=_0x181f90,console['log'](_0x70989c(0x9c)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)]('(session:\x20'+_0x467196+')'));break;case'parent_segment':_0x5148df[_0x70989c(0x86)]=_0x181f90,console[_0x70989c(0x9a)](_0x70989c(0x96)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)]('(session:\x20'+_0x467196+')'));break;case _0x70989c(0x97):_0x5148df[_0x70989c(0x97)]=_0x181f90,console[_0x70989c(0x9a)](_0x70989c(0xa4)+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x467196+')'));break;case'agent':{const {projectName:_0x4a1f9d,agentName:_0x952ba7}=parseAgentRef(_0x181f90);_0x952ba7?(_0x5148df[_0x70989c(0x97)]=_0x4a1f9d,_0x5148df['llm_agent']=_0x952ba7,console['log'](_0x70989c(0xa4)+a41_0x2b05ff[_0x70989c(0x9d)](_0x4a1f9d)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)]('(session:\x20'+_0x467196+')')),console[_0x70989c(0x9a)](_0x70989c(0x88)+a41_0x2b05ff['green'](_0x952ba7)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x467196+')'))):(_0x5148df[_0x70989c(0xb9)]=_0x181f90,console[_0x70989c(0x9a)]('Session\x20agent\x20set\x20to:\x20'+a41_0x2b05ff[_0x70989c(0x9d)](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x467196+')')));break;}case'engage_workspace':_0x5148df[_0x70989c(0x7d)]=_0x181f90,console[_0x70989c(0x9a)](_0x70989c(0x8b)+a41_0x2b05ff['green'](_0x181f90)+'\x20'+a41_0x2b05ff[_0x70989c(0x8e)](_0x70989c(0x85)+_0x467196+')'));break;}return saveSessionContext(_0x5148df,_0x7c466a[_0x70989c(0x81)]),console[_0x70989c(0x9a)](a41_0x2b05ff['dim'](_0x70989c(0x8d))),0x0;}catch(_0x506f35){return _0x506f35 instanceof Error&&console['error']('Error:\x20'+_0x506f35[_0x70989c(0xa5)]),0x1;}}}
@@ -1 +1 @@
1
- const a42_0x2d0eb0=a42_0x5781;(function(_0x443754,_0x2a8397){const _0x24de9b=a42_0x5781,_0x50e930=_0x443754();while(!![]){try{const _0x52743d=parseInt(_0x24de9b(0x13c))/0x1+-parseInt(_0x24de9b(0x147))/0x2*(-parseInt(_0x24de9b(0x14d))/0x3)+-parseInt(_0x24de9b(0x13e))/0x4*(-parseInt(_0x24de9b(0x14f))/0x5)+-parseInt(_0x24de9b(0x151))/0x6*(-parseInt(_0x24de9b(0x155))/0x7)+parseInt(_0x24de9b(0x13f))/0x8*(-parseInt(_0x24de9b(0x14a))/0x9)+parseInt(_0x24de9b(0x143))/0xa*(parseInt(_0x24de9b(0x13d))/0xb)+-parseInt(_0x24de9b(0x14c))/0xc;if(_0x52743d===_0x2a8397)break;else _0x50e930['push'](_0x50e930['shift']());}catch(_0x135271){_0x50e930['push'](_0x50e930['shift']());}}}(a42_0x4b25,0x5187d));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a42_0x5781(_0x41fe60,_0x5f3759){_0x41fe60=_0x41fe60-0x13b;const _0x4b25b7=a42_0x4b25();let _0x57810a=_0x4b25b7[_0x41fe60];return _0x57810a;}import{handleSDKOutput,handleSingleObjectOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';export class UserCommand extends BaseCommand{[a42_0x2d0eb0(0x14b)]=a42_0x2d0eb0(0x148);[a42_0x2d0eb0(0x141)]=a42_0x2d0eb0(0x142);async[a42_0x2d0eb0(0x153)](_0x30c6b5){const _0x4ffc57=a42_0x2d0eb0,{options:_0x48d1d7,tdx:_0x4c2c8c}=_0x30c6b5;try{const _0x2b1157=await withSpinner(_0x4ffc57(0x152),()=>_0x4c2c8c[_0x4ffc57(0x148)][_0x4ffc57(0x150)](),{'verbose':_0x48d1d7[_0x4ffc57(0x146)]}),_0x15281a=_0x2b1157[_0x4ffc57(0x156)];return await handleSingleObjectOutput(_0x15281a,_0x48d1d7),0x0;}catch(_0x1a261a){if(_0x1a261a instanceof SDKError)return console[_0x4ffc57(0x14e)]('Error:\x20'+_0x1a261a[_0x4ffc57(0x145)]),_0x1a261a[_0x4ffc57(0x140)]&&console['error'](_0x4ffc57(0x144)+_0x1a261a[_0x4ffc57(0x140)]),0x1;throw _0x1a261a;}}}export class UserListCommand extends BaseCommand{[a42_0x2d0eb0(0x14b)]='user\x20list';[a42_0x2d0eb0(0x141)]=a42_0x2d0eb0(0x157);async[a42_0x2d0eb0(0x153)](_0x4dad80){const _0x3e0f61=a42_0x2d0eb0,{options:_0x43205b,tdx:_0x3218ac}=_0x4dad80;try{const _0x5c1261=await withSpinner('Listing\x20users...',()=>_0x3218ac[_0x3e0f61(0x148)]['list'](),{'verbose':_0x43205b['verbose']}),_0x1d21ec=_0x5c1261['data'];return console[_0x3e0f61(0x14e)](_0x3e0f61(0x13b)+_0x1d21ec[_0x3e0f61(0x149)]+_0x3e0f61(0x154)+(_0x1d21ec[_0x3e0f61(0x149)]!==0x1?'s':'')),await handleSDKOutput(_0x1d21ec,_0x43205b),0x0;}catch(_0x5cae0e){if(_0x5cae0e instanceof SDKError)return console[_0x3e0f61(0x14e)](_0x3e0f61(0x158)+_0x5cae0e['message']),_0x5cae0e['cause']&&console[_0x3e0f61(0x14e)]('\x20\x20Cause:\x20'+_0x5cae0e[_0x3e0f61(0x140)]),0x1;throw _0x5cae0e;}}}function a42_0x4b25(){const _0x310223=['687028jMVZhe','16VRvHeu','cause','description','Show\x20current\x20user\x20information','50QktKib','\x20\x20Cause:\x20','message','verbose','194QniGGf','user','length','174789oecHvF','name','20429496mQCekf','7110AeznAJ','error','5RPGpUg','getCurrent','439914MEPYAY','Fetching\x20user\x20info...','execute','\x20user','49YsHJtp','data','List\x20all\x20users\x20in\x20the\x20account','Error:\x20','✔\x20Found\x20','627084RFQldt','1173227FevRck'];a42_0x4b25=function(){return _0x310223;};return a42_0x4b25();}
1
+ const a42_0x5d1e89=a42_0x1219;(function(_0x1c98e6,_0x57067c){const _0x165f47=a42_0x1219,_0x83b268=_0x1c98e6();while(!![]){try{const _0x57ccb8=parseInt(_0x165f47(0x1f2))/0x1*(parseInt(_0x165f47(0x1ee))/0x2)+-parseInt(_0x165f47(0x1e7))/0x3*(parseInt(_0x165f47(0x1e4))/0x4)+-parseInt(_0x165f47(0x1f0))/0x5*(-parseInt(_0x165f47(0x1e2))/0x6)+-parseInt(_0x165f47(0x1e6))/0x7*(parseInt(_0x165f47(0x1eb))/0x8)+parseInt(_0x165f47(0x1ea))/0x9+-parseInt(_0x165f47(0x1e5))/0xa+-parseInt(_0x165f47(0x1d4))/0xb*(parseInt(_0x165f47(0x1dc))/0xc);if(_0x57ccb8===_0x57067c)break;else _0x83b268['push'](_0x83b268['shift']());}catch(_0x5276ef){_0x83b268['push'](_0x83b268['shift']());}}}(a42_0x3bc5,0x5c806));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';function a42_0x3bc5(){const _0x474183=['1029688ZpgPBd','✔\x20Found\x20','Show\x20current\x20user\x20information','user','Fetching\x20user\x20info...','message','execute','name','36jyIltO','getCurrent','Listing\x20users...','cause','user\x20list','description','954FqXEVo','\x20\x20Cause:\x20','44NsYEBz','2788760rPIARv','34223LDmURQ','24135JyHLWb','\x20user','length','5012298GclyaX','224FLSAwS','Error:\x20','error','2anmeYf','list','8015rCBhft','data','352174wbgIpR','verbose'];a42_0x3bc5=function(){return _0x474183;};return a42_0x3bc5();}import{handleSDKOutput,handleSingleObjectOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';function a42_0x1219(_0x32fc63,_0x17aadb){_0x32fc63=_0x32fc63-0x1d4;const _0x3bc5ab=a42_0x3bc5();let _0x1219eb=_0x3bc5ab[_0x32fc63];return _0x1219eb;}export class UserCommand extends BaseCommand{[a42_0x5d1e89(0x1db)]='user';[a42_0x5d1e89(0x1e1)]=a42_0x5d1e89(0x1d6);async[a42_0x5d1e89(0x1da)](_0x1623d2){const _0x5ec77a=a42_0x5d1e89,{options:_0x278ceb,tdx:_0x16dda7}=_0x1623d2;try{const _0x266313=await withSpinner(_0x5ec77a(0x1d8),()=>_0x16dda7[_0x5ec77a(0x1d7)][_0x5ec77a(0x1dd)](),{'verbose':_0x278ceb[_0x5ec77a(0x1f3)]}),_0x411a90=_0x266313['data'];return await handleSingleObjectOutput(_0x411a90,_0x278ceb),0x0;}catch(_0x3ab363){if(_0x3ab363 instanceof SDKError)return console[_0x5ec77a(0x1ed)](_0x5ec77a(0x1ec)+_0x3ab363['message']),_0x3ab363[_0x5ec77a(0x1df)]&&console[_0x5ec77a(0x1ed)](_0x5ec77a(0x1e3)+_0x3ab363[_0x5ec77a(0x1df)]),0x1;throw _0x3ab363;}}}export class UserListCommand extends BaseCommand{[a42_0x5d1e89(0x1db)]=a42_0x5d1e89(0x1e0);['description']='List\x20all\x20users\x20in\x20the\x20account';async[a42_0x5d1e89(0x1da)](_0x380c32){const _0x4216c5=a42_0x5d1e89,{options:_0x2d68ce,tdx:_0x218726}=_0x380c32;try{const _0x304363=await withSpinner(_0x4216c5(0x1de),()=>_0x218726['user'][_0x4216c5(0x1ef)](),{'verbose':_0x2d68ce[_0x4216c5(0x1f3)]}),_0x4bf773=_0x304363[_0x4216c5(0x1f1)];return console[_0x4216c5(0x1ed)](_0x4216c5(0x1d5)+_0x4bf773[_0x4216c5(0x1e9)]+_0x4216c5(0x1e8)+(_0x4bf773[_0x4216c5(0x1e9)]!==0x1?'s':'')),await handleSDKOutput(_0x4bf773,_0x2d68ce),0x0;}catch(_0x2ac49e){if(_0x2ac49e instanceof SDKError)return console['error'](_0x4216c5(0x1ec)+_0x2ac49e[_0x4216c5(0x1d9)]),_0x2ac49e['cause']&&console['error'](_0x4216c5(0x1e3)+_0x2ac49e['cause']),0x1;throw _0x2ac49e;}}}