@treasuredata/tdx 0.9.6 → 0.9.7

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 (123) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/agent-command.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/tables.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/server.js +1 -1
  63. package/dist/proxy/session-cache.js +1 -1
  64. package/dist/sdk/agent/agent-yaml.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/connection-validator.js +1 -1
  67. package/dist/sdk/connection.js +1 -1
  68. package/dist/sdk/engage.js +1 -1
  69. package/dist/sdk/errors.js +1 -1
  70. package/dist/sdk/index.js +1 -1
  71. package/dist/sdk/job.js +1 -1
  72. package/dist/sdk/journey.js +1 -1
  73. package/dist/sdk/llm.js +1 -1
  74. package/dist/sdk/query.js +1 -1
  75. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  76. package/dist/sdk/segment/journey-yaml.d.ts +17 -11
  77. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  78. package/dist/sdk/segment/journey-yaml.js +1 -1
  79. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  80. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  81. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  82. package/dist/sdk/segment.js +1 -1
  83. package/dist/sdk/user.js +1 -1
  84. package/dist/sdk/workflow.js +1 -1
  85. package/dist/types/endpoints.js +1 -1
  86. package/dist/types/index.js +1 -1
  87. package/dist/utils/agent-config.js +1 -1
  88. package/dist/utils/agent-ref-parser.js +1 -1
  89. package/dist/utils/async.js +1 -1
  90. package/dist/utils/chat-cache.js +1 -1
  91. package/dist/utils/colors.js +1 -1
  92. package/dist/utils/command-output.js +1 -1
  93. package/dist/utils/constants.js +1 -1
  94. package/dist/utils/diff.js +1 -1
  95. package/dist/utils/fields-display.js +1 -1
  96. package/dist/utils/file-permissions.js +1 -1
  97. package/dist/utils/format-detector.js +1 -1
  98. package/dist/utils/formatters.js +1 -1
  99. package/dist/utils/journey-utils.d.ts +30 -0
  100. package/dist/utils/journey-utils.d.ts.map +1 -1
  101. package/dist/utils/journey-utils.js +1 -1
  102. package/dist/utils/journey-utils.js.map +1 -1
  103. package/dist/utils/json-loader.js +1 -1
  104. package/dist/utils/llm-backup-utils.js +1 -1
  105. package/dist/utils/model-aliases.js +1 -1
  106. package/dist/utils/model-factors.js +1 -1
  107. package/dist/utils/option-validation.js +1 -1
  108. package/dist/utils/port.js +1 -1
  109. package/dist/utils/process.js +1 -1
  110. package/dist/utils/prompt.js +1 -1
  111. package/dist/utils/segment-path-parser.js +1 -1
  112. package/dist/utils/segment-ref-parser.js +1 -1
  113. package/dist/utils/spinner.js +1 -1
  114. package/dist/utils/sql-parser.js +1 -1
  115. package/dist/utils/sse-parser.js +1 -1
  116. package/dist/utils/string-utils.js +1 -1
  117. package/dist/utils/table-ref-parser.js +1 -1
  118. package/dist/utils/tdx-config.js +1 -1
  119. package/dist/utils/tdx-logger.js +1 -1
  120. package/dist/utils/tree-formatter.js +1 -1
  121. package/dist/utils/version-check.js +1 -1
  122. package/dist/utils/workflow-utils.js +1 -1
  123. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x1c1acf=a2_0x476c;(function(_0x9243f0,_0x5431ac){const _0x42bcc6=a2_0x476c,_0x101ed7=_0x9243f0();while(!![]){try{const _0x71f706=-parseInt(_0x42bcc6(0x25c))/0x1+-parseInt(_0x42bcc6(0x122))/0x2+-parseInt(_0x42bcc6(0x2b0))/0x3+parseInt(_0x42bcc6(0x17e))/0x4+-parseInt(_0x42bcc6(0xf7))/0x5+parseInt(_0x42bcc6(0x2bb))/0x6+parseInt(_0x42bcc6(0x182))/0x7*(parseInt(_0x42bcc6(0x204))/0x8);if(_0x71f706===_0x5431ac)break;else _0x101ed7['push'](_0x101ed7['shift']());}catch(_0x445dfd){_0x101ed7['push'](_0x101ed7['shift']());}}}(a2_0x51da,0x8e762));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';function a2_0x476c(_0x28c4ca,_0xbe46d6){_0x28c4ca=_0x28c4ca-0xe0;const _0x51dacb=a2_0x51da();let _0x476c7d=_0x51dacb[_0x28c4ca];return _0x476c7d;}import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x1c1acf(0x233)](readFileSync(join(__dirname,'../package.json'),'utf-8'));let buildInfo={};try{buildInfo=JSON[a2_0x1c1acf(0x233)](readFileSync(join(__dirname,a2_0x1c1acf(0x10d)),a2_0x1c1acf(0x104)));}catch{}if(process['argv'][a2_0x1c1acf(0xfa)](a2_0x1c1acf(0x30a))){let versionOutput=a2_0x1c1acf(0x141)+packageJson[a2_0x1c1acf(0x2b1)];buildInfo[a2_0x1c1acf(0x2cc)]&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x1c1acf(0x1ab)]&&(versionOutput+=a2_0x1c1acf(0x203)+buildInfo[a2_0x1c1acf(0x1ab)]),console[a2_0x1c1acf(0x1ee)](versionOutput),process['exit'](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x1c1acf(0x2cc)]?description+=a2_0x1c1acf(0x2e5)+packageJson['version']+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x1c1acf(0x2e5)+packageJson[a2_0x1c1acf(0x2b1)];program[a2_0x1c1acf(0x1a1)](a2_0x1c1acf(0x2a7))[a2_0x1c1acf(0x1d0)](description),program[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x263),a2_0x1c1acf(0x1c7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x292),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2dc),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x200),a2_0x1c1acf(0x13d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x14b),a2_0x1c1acf(0x12b))[a2_0x1c1acf(0x288)]('--json',a2_0x1c1acf(0x210))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1c1acf(0x288)]('--tsv',a2_0x1c1acf(0x276))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x221),a2_0x1c1acf(0xfb))['option']('--limit\x20<number>',a2_0x1c1acf(0x1fe))['option'](a2_0x1c1acf(0x219),a2_0x1c1acf(0x209),![])[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xe6),a2_0x1c1acf(0x275),![])['option']('-v,\x20--verbose',a2_0x1c1acf(0x284),![])['option'](a2_0x1c1acf(0x1c2),a2_0x1c1acf(0x29c))[a2_0x1c1acf(0x288)]('--trace',a2_0x1c1acf(0x2d7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x138),a2_0x1c1acf(0x1b2),'30')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x28d),![])[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x309),![])[a2_0x1c1acf(0x288)]('--session\x20<id>',a2_0x1c1acf(0x1a6))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1fa),a2_0x1c1acf(0xe1))[a2_0x1c1acf(0x288)]('--in\x20<name>',a2_0x1c1acf(0x2d1))[a2_0x1c1acf(0x288)]('--parent-segment\x20<name>',a2_0x1c1acf(0x2a3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x107),a2_0x1c1acf(0x2b2)),program[a2_0x1c1acf(0x2d3)]({'formatHelp':(_0x1ae3b8,_0x49935a)=>{const _0x4e12eb=a2_0x1c1acf,_0x12a55a=_0x49935a[_0x4e12eb(0x30c)](_0x1ae3b8,_0x49935a),_0x2db4f1=0x2,_0x2df2bc=0x2;function _0x4bb38e(_0x2a6cfc){const _0x4304b7=_0x4e12eb,_0x105677=_0x2a6cfc;return!!(_0x105677[_0x4304b7(0x207)]||_0x105677[_0x4304b7(0x307)]);}function _0x17781b(_0x53c425,_0x5d527a){if(_0x5d527a){const _0x9e643c=''+_0x53c425['padEnd'](_0x12a55a+_0x2df2bc)+_0x5d527a;return _0x9e643c;}return _0x53c425;}function _0x4f3017(_0x2294ba){const _0x20c476=_0x4e12eb;return _0x2294ba['join']('\x0a')[_0x20c476(0x223)](/^/gm,'\x20'[_0x20c476(0x1af)](_0x2db4f1));}const _0x143822=[];_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x225)+_0x49935a[_0x4e12eb(0x24a)](_0x1ae3b8));const _0x4a5c28=_0x49935a[_0x4e12eb(0x252)](_0x1ae3b8);_0x4a5c28&&(_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4a5c28));const _0xd3a1d8=_0x1ae3b8['commands'][_0x4e12eb(0x15b)](_0x2fb62e=>!_0x4bb38e(_0x2fb62e));if(_0xd3a1d8[_0x4e12eb(0x130)]>0x0){if(_0x1ae3b8['name']()===_0x4e12eb(0x2a7)){const _0x27b5e0=_0x1ae3b8[_0x4e12eb(0x305)](),_0x22670e=!_0x27b5e0[_0x4e12eb(0x297)]&&process[_0x4e12eb(0x1f8)][_0x4e12eb(0x2af)],_0x11a4c4=COMMAND_CATEGORIES,_0xfc15e=(_0x3d0a1d,_0xe4601b)=>_0x22670e?_0xe4601b(_0x3d0a1d):_0x3d0a1d,_0x40ed6a=new Map();_0xd3a1d8['forEach'](_0x3b5119=>{const _0x3e75f8=_0x4e12eb;_0x40ed6a[_0x3e75f8(0x19a)](_0x3b5119[_0x3e75f8(0x1a1)](),_0x3b5119);}),_0x11a4c4[_0x4e12eb(0x1b7)](_0xb2543f=>{const _0x3c934b=_0x4e12eb,_0x2d5e8b=_0xb2543f[_0x3c934b(0x11a)][_0x3c934b(0xf2)](_0x32dbd8=>_0x40ed6a[_0x3c934b(0x1bc)](_0x32dbd8)??[]);if(_0x2d5e8b[_0x3c934b(0x130)]>0x0){_0x143822[_0x3c934b(0x1fc)](''),_0x143822[_0x3c934b(0x1fc)](_0xfc15e(_0xb2543f[_0x3c934b(0x1a1)]+':',_0xb2543f['colorFn']));const _0x51ee7b=_0x2d5e8b[_0x3c934b(0x2bd)](_0x3a2f86=>{const _0x528efe=_0x3c934b,_0x5cd693=_0x49935a[_0x528efe(0x27d)](_0x3a2f86),_0x460cc6=_0x49935a[_0x528efe(0x1a9)](_0x3a2f86);return _0x17781b(_0x5cd693,_0x460cc6);});_0x143822['push'](_0x4f3017(_0x51ee7b));}}),_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x17a));}else{const _0x3203d8=_0xd3a1d8[_0x4e12eb(0x2bd)](_0x22901b=>{const _0x384261=_0x4e12eb,_0x420f18=_0x49935a[_0x384261(0x27d)](_0x22901b),_0x952842=_0x49935a[_0x384261(0x1a9)](_0x22901b);return _0x17781b(_0x420f18,_0x952842);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x260)),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x3203d8));}}const _0x4b9ce1=_0x1ae3b8[_0x4e12eb(0x289)][_0x4e12eb(0x15b)](_0x190f60=>!_0x4bb38e(_0x190f60));if(_0x4b9ce1[_0x4e12eb(0x130)]>0x0){const _0x1ea154=_0x4b9ce1[_0x4e12eb(0x2bd)](_0x2c3279=>{const _0x2bbf5b=_0x4e12eb,_0x373d1f=_0x49935a['optionTerm'](_0x2c3279),_0x35f431=_0x49935a[_0x2bbf5b(0x1c1)](_0x2c3279);return _0x17781b(_0x373d1f,_0x35f431);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)]('Options:'),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x1ea154));}const _0x13ba57=(_0x1ae3b8[_0x4e12eb(0x231)]||[])[_0x4e12eb(0x15b)](_0x1b23e8=>!_0x4bb38e(_0x1b23e8));if(_0x13ba57[_0x4e12eb(0x130)]>0x0){const _0x29acc4=_0x13ba57[_0x4e12eb(0x2bd)](_0x4a7aa4=>{const _0x42e40e=_0x4e12eb,_0x37de73=_0x49935a[_0x42e40e(0x29f)](_0x4a7aa4),_0x2dd3ed=_0x49935a[_0x42e40e(0x2ed)](_0x4a7aa4);return _0x17781b(_0x37de73,_0x2dd3ed);});_0x143822[_0x4e12eb(0x1fc)](''),_0x143822[_0x4e12eb(0x1fc)](_0x4e12eb(0x1b6)),_0x143822[_0x4e12eb(0x1fc)](_0x4f3017(_0x29acc4));}return _0x143822[_0x4e12eb(0x1aa)]('\x0a');},'subcommandTerm':_0x10f997=>{const _0x6ce959=a2_0x1c1acf,_0xc236fa=(_0x10f997[_0x6ce959(0x231)]||[])[_0x6ce959(0x2bd)](_0x25b73b=>_0x25b73b[_0x6ce959(0x2f5)]?'<'+_0x25b73b[_0x6ce959(0x1a1)]()+'>':'['+_0x25b73b[_0x6ce959(0x1a1)]()+']')[_0x6ce959(0x1aa)]('\x20'),_0x4c0d7e=_0x10f997[_0x6ce959(0x24f)](),_0x465540=_0x4c0d7e[_0x6ce959(0x130)]>0x0?_0x10f997[_0x6ce959(0x1a1)]()+',\x20'+_0x4c0d7e[_0x6ce959(0x1aa)](',\x20'):_0x10f997[_0x6ce959(0x1a1)]();return _0xc236fa?_0x465540+'\x20'+_0xc236fa:_0x465540;}}),program[a2_0x1c1acf(0x216)](a2_0x1c1acf(0x2dd),_0xe45d82=>{const _0xdb4627=a2_0x1c1acf,_0x2e5271=_0xe45d82['opts']();if(_0x2e5271[_0xdb4627(0x308)]){const _0x3bbf90=resolve(_0x2e5271['directory']),_0x23a9f2=_0x3bbf90!==_0x2e5271['directory']?_0xdb4627(0x2cf)+_0x3bbf90+')':'';if(!existsSync(_0x3bbf90))throw new SDKError(ErrorCode[_0xdb4627(0x244)],_0xdb4627(0x25e)+_0x2e5271[_0xdb4627(0x308)]+_0x23a9f2,undefined,{'helpText':_0xdb4627(0x283)});const _0x4e7783=statSync(_0x3bbf90);if(!_0x4e7783[_0xdb4627(0x2ef)]())throw new SDKError(ErrorCode[_0xdb4627(0x244)],_0xdb4627(0x185)+_0x2e5271[_0xdb4627(0x308)]+_0x23a9f2,undefined,{'helpText':_0xdb4627(0x265)});process[_0xdb4627(0xe4)](_0x3bbf90);}if(!_0x2e5271[_0xdb4627(0x11b)]){if(_0x2e5271['table'])_0x2e5271[_0xdb4627(0x11b)]='table';else{if(_0x2e5271[_0xdb4627(0x294)])_0x2e5271['format']=_0xdb4627(0x294);else{if(_0x2e5271['jsonl'])_0x2e5271[_0xdb4627(0x11b)]=_0xdb4627(0x19e);else _0x2e5271[_0xdb4627(0x2c8)]&&(_0x2e5271[_0xdb4627(0x11b)]=_0xdb4627(0x2c8));}}}_0x2e5271['in']&&!_0x2e5271[_0xdb4627(0x171)]&&(_0x2e5271[_0xdb4627(0x171)]=_0x2e5271['in']);if(_0x2e5271[_0xdb4627(0x16c)])_0x2e5271['logLevel']=LogLevel[_0xdb4627(0x179)];else{if(_0x2e5271[_0xdb4627(0x18e)])_0x2e5271[_0xdb4627(0x102)]=LogLevel[_0xdb4627(0x2e6)];else _0x2e5271['logLevel']===undefined&&(_0x2e5271[_0xdb4627(0x102)]=LogLevel['INFO']);}});async function createTDXInstance(_0xcda86c){const _0x1f5d14=a2_0x1c1acf,_0x3366db=await GlobalContext[_0x1f5d14(0x2c3)](_0xcda86c);return _0x3366db['injectIntoOptions'](_0xcda86c),TDX[_0x1f5d14(0x258)]({'site':_0x3366db[_0x1f5d14(0xf6)],'apiKey':_0x3366db[_0x1f5d14(0x186)],'logLevel':_0x3366db['logLevel'],'profile':_0x3366db[_0x1f5d14(0x105)]});}const databaseCmd=program[a2_0x1c1acf(0x19c)]('database')['alias']('db')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x22a)),databaseListAction=async(_0x4f3df9,_0x441ba6)=>{const _0x4bd0d4=a2_0x1c1acf,_0x3e2d49=new DatabasesCommand(),_0x3afb77=program[_0x4bd0d4(0x305)](),_0x1c12e3=await createTDXInstance(_0x3afb77),_0x19ba1d=await _0x3e2d49[_0x4bd0d4(0x188)]({'options':{..._0x3afb77,..._0x441ba6},'args':_0x4f3df9?[_0x4f3df9]:[],'tdx':_0x1c12e3});process['exit'](_0x19ba1d);};databaseCmd['command'](a2_0x1c1acf(0x123))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf8),{'hidden':!![]})['description'](a2_0x1c1acf(0x27e))[a2_0x1c1acf(0x1e1)](databaseListAction),program[a2_0x1c1acf(0x19c)]('chat\x20[message...]')['description'](a2_0x1c1acf(0x160))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2c1),a2_0x1c1acf(0xf3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2de),a2_0x1c1acf(0x10c))[a2_0x1c1acf(0x1e1)](async(_0x24c8ac,_0x430d7c)=>{const _0x18010d=a2_0x1c1acf,_0x1aabd4=new ChatCommand(),_0x4752fd=program[_0x18010d(0x305)](),_0x5698b2=await createTDXInstance(_0x4752fd),_0x48a044=await _0x1aabd4[_0x18010d(0x188)]({'options':{..._0x4752fd,..._0x430d7c},'args':_0x24c8ac,'tdx':_0x5698b2});process['exit'](_0x48a044);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x1c1acf(0x271)](a2_0x1c1acf(0xe8))[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x166))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x154),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x26b),a2_0x1c1acf(0x242))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x20d),a2_0x1c1acf(0x1df))[a2_0x1c1acf(0x288)]('-H,\x20--header\x20<header>',a2_0x1c1acf(0x1ef),(_0x5c5163,_0x519691)=>{return _0x519691?[..._0x519691,_0x5c5163]:[_0x5c5163];})[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1be),a2_0x1c1acf(0x15c),'td')[a2_0x1c1acf(0x1e1)](async(_0x448a8,_0x3005a3)=>{const _0xad8d23=a2_0x1c1acf;if(!_0x448a8){apiCmd[_0xad8d23(0x20a)]();return;}const _0x58c12a=new ApiCommand(),_0x420aca=program[_0xad8d23(0x305)](),_0x1e6e80=await createTDXInstance(_0x420aca),_0x1c9673=await _0x58c12a[_0xad8d23(0x188)]({'options':{..._0x420aca,..._0x3005a3},'args':[_0x448a8],'tdx':_0x1e6e80});process['exit'](_0x1c9673);}),tableCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2c4))['description']('Table\x20management\x20commands'),tableListAction=async(_0x2d4815,_0x131e8c)=>{const _0x182a88=a2_0x1c1acf,_0x49a97e=new TablesCommand(),_0x194c10=program[_0x182a88(0x305)](),_0x20b50c=await createTDXInstance(_0x194c10);_0x131e8c['in']&&(_0x131e8c[_0x182a88(0x171)]=_0x131e8c['in']);const _0x13edf=await _0x49a97e['run']({'options':{..._0x194c10,..._0x131e8c},'args':_0x2d4815?[_0x2d4815]:[],'tdx':_0x20b50c});process[_0x182a88(0x28c)](_0x13edf);};tableCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')[a2_0x1c1acf(0x1d0)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x25d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),a2_0x1c1acf(0x2d1))[a2_0x1c1acf(0x1e1)](tableListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1f4),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x159))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x25d))[a2_0x1c1acf(0x288)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c1acf(0x1e1)](tableListAction),program['command'](a2_0x1c1acf(0x1c6))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x16f))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x278))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),a2_0x1c1acf(0x2d1))['action'](async(_0x56eaa0,_0x22b844)=>{const _0x50e1e0=a2_0x1c1acf,_0x58e0b9=new ShowCommand(),_0x3561d5=program[_0x50e1e0(0x305)](),_0x469e76=await createTDXInstance(_0x3561d5);_0x22b844['in']&&(_0x22b844['database']=_0x22b844['in']);const _0x48ae50=await _0x58e0b9[_0x50e1e0(0x188)]({'options':{..._0x3561d5,..._0x22b844},'args':_0x56eaa0?[_0x56eaa0]:[],'tdx':_0x469e76});process[_0x50e1e0(0x28c)](_0x48ae50);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2e4))[a2_0x1c1acf(0x14f)](a2_0x1c1acf(0x178))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1f9))['option'](a2_0x1c1acf(0x1a7),a2_0x1c1acf(0x278))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c1acf(0x1e1)](async(_0x3904dc,_0x507675)=>{const _0x3158f2=a2_0x1c1acf,_0x1a2bf7=new DescribeCommand(),_0x5d273f=program['opts'](),_0x24258c=await createTDXInstance(_0x5d273f);_0x507675['in']&&(_0x507675['database']=_0x507675['in']);const _0x485ad4=await _0x1a2bf7[_0x3158f2(0x188)]({'options':{..._0x5d273f,..._0x507675},'args':_0x3904dc?[_0x3904dc]:[],'tdx':_0x24258c});process['exit'](_0x485ad4);}),program[a2_0x1c1acf(0x19c)]('query\x20[sql]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2fb))['option']('-d,\x20--database\x20<database>','Database\x20to\x20query\x20(default:\x20information_schema)')['option'](a2_0x1c1acf(0x22b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option']('--catalog\x20<catalog>',a2_0x1c1acf(0xe5))['option'](a2_0x1c1acf(0x20d),a2_0x1c1acf(0x2ea))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x282),a2_0x1c1acf(0x273),'40')['action'](async(_0x4acadd,_0x3da074)=>{const _0x2b5fee=a2_0x1c1acf,_0x4ea0a8=new QueryCommand(),_0x34ba62=program[_0x2b5fee(0x305)](),_0x2db50e=await createTDXInstance(_0x34ba62);_0x3da074['in']&&(_0x3da074[_0x2b5fee(0x171)]=_0x3da074['in']);const _0x2d4173=await _0x4ea0a8[_0x2b5fee(0x188)]({'options':{..._0x34ba62,..._0x3da074},'args':_0x4acadd?[_0x4acadd]:[],'tdx':_0x2db50e});process['exit'](_0x2d4173);});const segmentCmd=program['command'](a2_0x1c1acf(0x27b))[a2_0x1c1acf(0x14f)]('sg')['description'](a2_0x1c1acf(0x29d)),segmentListAction=async(_0x52b1c3,_0x511387)=>{const _0x1636a5=a2_0x1c1acf,_0x34b9cd=new SegmentsCommand(),_0x17c7cb=program[_0x1636a5(0x305)](),_0x3f8602=await createTDXInstance(_0x17c7cb),_0x502ac6=await _0x34b9cd[_0x1636a5(0x188)]({'options':{..._0x17c7cb,..._0x511387},'args':_0x52b1c3?[_0x52b1c3]:[],'tdx':_0x3f8602});process[_0x1636a5(0x28c)](_0x502ac6);};segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x228))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x253))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x112),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x1c1acf(0x248),a2_0x1c1acf(0x1d6),'10')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0xef))['action'](segmentListAction),program[a2_0x1c1acf(0x19c)]('segments\x20[path]',{'hidden':!![]})['description'](a2_0x1c1acf(0x27f))['option'](a2_0x1c1acf(0x112),a2_0x1c1acf(0x2fd))['option'](a2_0x1c1acf(0x248),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option']('-w,\x20--web','Show\x20web\x20console\x20URLs\x20for\x20segments')['action'](segmentListAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xe0),{'hidden':!![]})[a2_0x1c1acf(0x1d0)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0xb5d053,_0x2483b0)=>{const _0x571cb4=a2_0x1c1acf,_0x3cb829=new SegmentUseCommand(),_0x4a6be3=program[_0x571cb4(0x305)](),_0x5e1956=await createTDXInstance(_0x4a6be3),_0x427bed=await _0x3cb829[_0x571cb4(0x188)]({'options':{..._0x4a6be3,..._0x2483b0},'args':[_0xb5d053],'tdx':_0x5e1956});process[_0x571cb4(0x28c)](_0x427bed);});const segmentViewAction=async(_0x24fd90,_0x298c88)=>{const _0x19f16a=a2_0x1c1acf,_0x3897d3=new SegmentViewCommand(),_0x332a73=program['opts'](),_0x592dde=await createTDXInstance(_0x332a73),_0x37668c=await _0x3897d3[_0x19f16a(0x188)]({'options':{..._0x332a73,..._0x298c88},'args':_0x24fd90?[_0x24fd90]:[],'tdx':_0x592dde});process[_0x19f16a(0x28c)](_0x37668c);};segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x280))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x314))['option'](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x243))[a2_0x1c1acf(0x1e1)](segmentViewAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x113),{'hidden':!![]})['alias']('describe')['option']('-w,\x20--web',a2_0x1c1acf(0x243))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x17c))['action'](segmentViewAction),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2b7))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2ce))['action'](async(_0xb85c88,_0x3a893b)=>{const _0x8cfd26=a2_0x1c1acf,_0x3d88b0=new SegmentDescCommand(),_0x49437e=program['opts'](),_0x278665=await createTDXInstance(_0x49437e),_0x570249=await _0x3d88b0[_0x8cfd26(0x188)]({'options':{..._0x49437e,..._0x3a893b},'args':_0xb85c88?[_0xb85c88]:[],'tdx':_0x278665});process['exit'](_0x570249);}),segmentCmd[a2_0x1c1acf(0x19c)]('show\x20[segment_name]')['description'](a2_0x1c1acf(0x245))[a2_0x1c1acf(0x1e1)](async(_0x32409b,_0x33d43e)=>{const _0x2f7b01=a2_0x1c1acf,_0x4a9416=new SegmentShowCommand(),_0x2e0926=program[_0x2f7b01(0x305)](),_0x48e327=await createTDXInstance(_0x2e0926),_0x1fb9f0=await _0x4a9416[_0x2f7b01(0x188)]({'options':{..._0x2e0926,..._0x33d43e},'args':_0x32409b?[_0x32409b]:[],'tdx':_0x48e327});process[_0x2f7b01(0x28c)](_0x1fb9f0);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2a4),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x20c))['action'](async(_0x20a5f7,_0x5d4883)=>{const _0x27b0f2=a2_0x1c1acf,_0x389e63=new SegmentFolderListCommand(),_0x1fab52=program[_0x27b0f2(0x305)](),_0xb1ee78=await createTDXInstance(_0x1fab52),_0x215007=await _0x389e63[_0x27b0f2(0x188)]({'options':{..._0x1fab52,..._0x5d4883},'args':[_0x20a5f7],'tdx':_0xb1ee78});process[_0x27b0f2(0x28c)](_0x215007);});const folderCmd=segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x110),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x317));folderCmd[a2_0x1c1acf(0x19c)]('show\x20<folder_ref>')[a2_0x1c1acf(0x1d0)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x1c1acf(0x1e1)](async(_0x402e86,_0x54d959)=>{const _0x4ea872=a2_0x1c1acf,_0x2f11a5=new SegmentFolderShowCommand(),_0x2b08a7=program[_0x4ea872(0x305)](),_0x537e03=await createTDXInstance(_0x2b08a7),_0x198c31=await _0x2f11a5[_0x4ea872(0x188)]({'options':{..._0x2b08a7,..._0x54d959},'args':[_0x402e86],'tdx':_0x537e03});process[_0x4ea872(0x28c)](_0x198c31);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x133))[a2_0x1c1acf(0x1d0)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x1c1acf(0x1e1)](async(_0x5f3efe,_0x4b7780)=>{const _0x38b17f=a2_0x1c1acf,_0x1e6674=new SegmentSQLCommand(),_0x4d022f=program[_0x38b17f(0x305)](),_0x563e89=await createTDXInstance(_0x4d022f),_0x4fb05e=await _0x1e6674[_0x38b17f(0x188)]({'options':{..._0x4d022f,..._0x4b7780},'args':_0x5f3efe?[_0x5f3efe]:[],'tdx':_0x563e89});process['exit'](_0x4fb05e);}),segmentCmd['command'](a2_0x1c1acf(0x109))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2b5))[a2_0x1c1acf(0x1e1)](async(_0x4e58c7,_0x47b3bb)=>{const _0x2e3edd=a2_0x1c1acf,_0x27ec30=new SegmentFieldsCommand(),_0x5e4967=program[_0x2e3edd(0x305)](),_0x4ffc02=await createTDXInstance(_0x5e4967),_0x3b1000=await _0x27ec30[_0x2e3edd(0x188)]({'options':{..._0x5e4967,..._0x47b3bb},'args':_0x4e58c7?[_0x4e58c7]:[],'tdx':_0x4ffc02});process[_0x2e3edd(0x28c)](_0x3b1000);}),segmentCmd[a2_0x1c1acf(0x19c)]('pull\x20[parent_or_file]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x238))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x309))['option'](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x28e))[a2_0x1c1acf(0x1e1)](async(_0x41fdd2,_0x4afe3a)=>{const _0x1b3aff=a2_0x1c1acf,_0xc67e03=new SegmentPullCommand(),_0x524b5b=program[_0x1b3aff(0x305)](),_0x1af4a6=await createTDXInstance(_0x524b5b),_0x4ac7ba=await _0xc67e03[_0x1b3aff(0x188)]({'options':{..._0x524b5b,..._0x4afe3a},'args':_0x41fdd2?[_0x41fdd2]:[],'tdx':_0x1af4a6});process['exit'](_0x4ac7ba);}),segmentCmd['command']('push\x20[parent_or_file]')[a2_0x1c1acf(0x1d0)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x1c1acf(0x288)]('--dry-run',a2_0x1c1acf(0x28e))['option']('--delete',a2_0x1c1acf(0x21c))[a2_0x1c1acf(0x1e1)](async(_0x309d69,_0x280a6e)=>{const _0x5dd83d=a2_0x1c1acf,_0x3d7ca0=new SegmentPushCommand(),_0x222817=program['opts'](),_0x33972c=await createTDXInstance(_0x222817),_0x648a32=await _0x3d7ca0[_0x5dd83d(0x188)]({'options':{..._0x222817,..._0x280a6e},'args':_0x309d69?[_0x309d69]:[],'tdx':_0x33972c});process[_0x5dd83d(0x28c)](_0x648a32);}),segmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x21d),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x14d))['option'](a2_0x1c1acf(0x286),a2_0x1c1acf(0x2d8))['option']('--rule\x20<json>','Filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x1c1acf(0x30e),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b3),a2_0x1c1acf(0x195))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x148),a2_0x1c1acf(0x1c8))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x169),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x1c1acf(0x288)]('--no-count-population',a2_0x1c1acf(0x259))[a2_0x1c1acf(0x1e1)](async(_0x3b5186,_0x36b730)=>{const _0x2ecf6f=a2_0x1c1acf,_0x4f0095=new SegmentCreateCommand(),_0x4798d8=program['opts'](),_0x4d76f3=await createTDXInstance(_0x4798d8),_0x132e74=await _0x4f0095['run']({'options':{..._0x4798d8,..._0x36b730},'args':[_0x3b5186],'tdx':_0x4d76f3});process[_0x2ecf6f(0x28c)](_0x132e74);}),segmentCmd['command'](a2_0x1c1acf(0x298),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x24b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x128),a2_0x1c1acf(0x293))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x312))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x17d),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x30e),a2_0x1c1acf(0x162))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b3),'Move\x20to\x20folder')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x148),a2_0x1c1acf(0x1c8))[a2_0x1c1acf(0x1e1)](async(_0x1ad80b,_0x13b8b8)=>{const _0x5b6075=a2_0x1c1acf,_0x1d7631=new SegmentUpdateCommand(),_0x514cc6=program[_0x5b6075(0x305)](),_0x300382=await createTDXInstance(_0x514cc6),_0x356330=await _0x1d7631['run']({'options':{..._0x514cc6,..._0x13b8b8},'args':[_0x1ad80b],'tdx':_0x300382});process[_0x5b6075(0x28c)](_0x356330);});const parentCmd=segmentCmd[a2_0x1c1acf(0x19c)]('parent',{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x187)),parentListAction=async(_0x5a2a06,_0x1cafd7)=>{const _0x18f626=new ParentSegmentListCommand(),_0x1071b7=program['opts'](),_0x267c09=await createTDXInstance(_0x1071b7),_0x46e1f2=await _0x18f626['run']({'options':{..._0x1071b7,..._0x1cafd7},'args':_0x5a2a06?[_0x5a2a06]:[],'tdx':_0x267c09});process['exit'](_0x46e1f2);};parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2bc))['action'](parentListAction),segmentCmd[a2_0x1c1acf(0x19c)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e3))[a2_0x1c1acf(0x1e1)](parentListAction),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xff))['option'](a2_0x1c1acf(0x1ed),a2_0x1c1acf(0x211))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))['action'](async(_0x55318c,_0x4fb9ff)=>{const _0x149f1a=a2_0x1c1acf,_0x482102=new ParentSegmentPullCommand(),_0x1a48bd=program[_0x149f1a(0x305)](),_0x500741=await createTDXInstance(_0x1a48bd),_0xd0841=await _0x482102[_0x149f1a(0x188)]({'options':{..._0x1a48bd,..._0x4fb9ff},'args':_0x55318c?[_0x55318c]:[],'tdx':_0x500741});process[_0x149f1a(0x28c)](_0xd0841);}),parentCmd[a2_0x1c1acf(0x19c)]('push\x20[file]')['description'](a2_0x1c1acf(0xeb))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](async(_0x7f7431,_0x2fe516)=>{const _0x103cb9=a2_0x1c1acf,_0x5b4e26=new ParentSegmentPushCommand(),_0x2be565=program[_0x103cb9(0x305)](),_0x51a828=await createTDXInstance(_0x2be565),_0x4175bc=await _0x5b4e26[_0x103cb9(0x188)]({'options':{..._0x2be565,..._0x2fe516},'args':_0x7f7431?[_0x7f7431]:[],'tdx':_0x51a828});process[_0x103cb9(0x28c)](_0x4175bc);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf0))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x269))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x239),a2_0x1c1acf(0x1d3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]',a2_0x1c1acf(0x117))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0xee))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x5e05a2,_0x4c5924)=>{const _0x34a0c8=a2_0x1c1acf,_0x2e18ca=new ParentSegmentValidateCommand(),_0x456652=program['opts'](),_0x338441=await createTDXInstance(_0x456652),_0x4dd9dc=await _0x2e18ca[_0x34a0c8(0x188)]({'options':{..._0x456652,..._0x4c5924},'args':_0x5e05a2?[_0x5e05a2]:[],'tdx':_0x338441});process['exit'](_0x4dd9dc);}),parentCmd[a2_0x1c1acf(0x19c)]('preview\x20[file]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x214))['option'](a2_0x1c1acf(0x239),a2_0x1c1acf(0x262))[a2_0x1c1acf(0x288)]('--attribute\x20[name]',a2_0x1c1acf(0x134))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21b),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0x29b))['option'](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x24efa2,_0x167861)=>{const _0x959d91=a2_0x1c1acf,_0x282cc0=new ParentSegmentPreviewCommand(),_0x2f5c73=program[_0x959d91(0x305)](),_0x255c68=await createTDXInstance(_0x2f5c73),_0x442572=await _0x282cc0[_0x959d91(0x188)]({'options':{..._0x2f5c73,..._0x167861},'args':_0x24efa2?[_0x24efa2]:[],'tdx':_0x255c68});process[_0x959d91(0x28c)](_0x442572);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x19f))['description'](a2_0x1c1acf(0xe7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))['action'](async(_0x5a8427,_0x71683d)=>{const _0x487cb6=a2_0x1c1acf,_0x3469d2=new ParentSegmentRunCommand(),_0x3c9ba9=program[_0x487cb6(0x305)](),_0x264454=await createTDXInstance(_0x3c9ba9),_0xd6052=await _0x3469d2['run']({'options':{..._0x3c9ba9,..._0x71683d},'args':_0x5a8427?[_0x5a8427]:[],'tdx':_0x264454});process[_0x487cb6(0x28c)](_0xd6052);});const parentSegmentCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x226))['alias']('ps')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x139));parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2bc))[a2_0x1c1acf(0x1e1)](parentListAction),parentSegmentCmd['command'](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x31b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1ed),'Output\x20file\x20path')['option'](a2_0x1c1acf(0x137),'Skip\x20confirmation\x20prompt')[a2_0x1c1acf(0x288)]('-u,\x20--use',a2_0x1c1acf(0x234))[a2_0x1c1acf(0x1e1)](async(_0x42369b,_0x1a3104)=>{const _0x26a874=a2_0x1c1acf,_0x599ad9=new ParentSegmentPullCommand(),_0x35cdab=program[_0x26a874(0x305)](),_0x552be0=await createTDXInstance(_0x35cdab),_0x1469e1=await _0x599ad9[_0x26a874(0x188)]({'options':{..._0x35cdab,..._0x1a3104},'args':_0x42369b?[_0x42369b]:[],'tdx':_0x552be0});process['exit'](_0x1469e1);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x175))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e7))['option'](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](async(_0x1a7fef,_0x4aae7c)=>{const _0x54ee9b=a2_0x1c1acf,_0x5e8b5c=new ParentSegmentPushCommand(),_0x10d7fb=program[_0x54ee9b(0x305)](),_0xc391b8=await createTDXInstance(_0x10d7fb),_0x32dffc=await _0x5e8b5c[_0x54ee9b(0x188)]({'options':{..._0x10d7fb,..._0x4aae7c},'args':_0x1a7fef?[_0x1a7fef]:[],'tdx':_0xc391b8});process['exit'](_0x32dffc);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x255))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x269))['option'](a2_0x1c1acf(0x239),a2_0x1c1acf(0x1d3))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),a2_0x1c1acf(0x23e))[a2_0x1c1acf(0x288)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x1c1acf(0x28a),a2_0x1c1acf(0xee))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))['action'](async(_0x50b162,_0x304ef8)=>{const _0x434564=a2_0x1c1acf,_0x2567d0=new ParentSegmentValidateCommand(),_0x59b14c=program[_0x434564(0x305)](),_0x19176d=await createTDXInstance(_0x59b14c),_0x54c21e=await _0x2567d0[_0x434564(0x188)]({'options':{..._0x59b14c,..._0x304ef8},'args':_0x50b162?[_0x50b162]:[],'tdx':_0x19176d});process[_0x434564(0x28c)](_0x54c21e);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2d5))['description'](a2_0x1c1acf(0x214))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x239),a2_0x1c1acf(0x262))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x184),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21b),a2_0x1c1acf(0x30b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x28a),a2_0x1c1acf(0x29b))['option'](a2_0x1c1acf(0x1a3),a2_0x1c1acf(0x29a),a2_0x1c1acf(0x1ec))[a2_0x1c1acf(0x1e1)](async(_0x70230b,_0x4bc7c3)=>{const _0x33820b=a2_0x1c1acf,_0xa6c4=new ParentSegmentPreviewCommand(),_0x1131f9=program[_0x33820b(0x305)](),_0x3f46e0=await createTDXInstance(_0x1131f9),_0x58b2dd=await _0xa6c4[_0x33820b(0x188)]({'options':{..._0x1131f9,..._0x4bc7c3},'args':_0x70230b?[_0x70230b]:[],'tdx':_0x3f46e0});process[_0x33820b(0x28c)](_0x58b2dd);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x19f))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xe7))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),'Skip\x20confirmation\x20prompt')[a2_0x1c1acf(0x1e1)](async(_0x43f483,_0x39d2bc)=>{const _0x451a03=a2_0x1c1acf,_0xb9651e=new ParentSegmentRunCommand(),_0x3b0a41=program['opts'](),_0x263913=await createTDXInstance(_0x3b0a41),_0xf19151=await _0xb9651e[_0x451a03(0x188)]({'options':{..._0x3b0a41,..._0x39d2bc},'args':_0x43f483?[_0x43f483]:[],'tdx':_0x263913});process[_0x451a03(0x28c)](_0xf19151);}),parentSegmentCmd['command'](a2_0x1c1acf(0x217))['description'](a2_0x1c1acf(0x189))['option']('--json',a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0xb58d51,_0x42cd61)=>{const _0x39c4c2=a2_0x1c1acf,_0x3519c2=new ParentSegmentFieldsCommand(),_0x22dd4b=program[_0x39c4c2(0x305)](),_0x2c4259=await createTDXInstance(_0x22dd4b),_0x43042c=await _0x3519c2[_0x39c4c2(0x188)]({'options':{..._0x22dd4b,..._0x42cd61},'args':_0xb58d51?[_0xb58d51]:[],'tdx':_0x2c4259});process[_0x39c4c2(0x28c)](_0x43042c);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x205))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x21f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x311))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)]('--jsonl',a2_0x1c1acf(0x1b1))['action'](async(_0x27ecb9,_0x173b0b)=>{const _0x4c38a8=a2_0x1c1acf,_0x30b31e=new ParentSegmentViewCommand(),_0x47670e=program['opts'](),_0x3274a1=await createTDXInstance(_0x47670e),_0x460b6b=await _0x30b31e[_0x4c38a8(0x188)]({'options':{..._0x47670e,..._0x173b0b},'args':_0x27ecb9?[_0x27ecb9]:[],'tdx':_0x3274a1});process['exit'](_0x460b6b);}),parentSegmentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x101))['description'](a2_0x1c1acf(0x13f))[a2_0x1c1acf(0x288)]('--json',a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),'Output\x20as\x20JSON\x20Lines')[a2_0x1c1acf(0x1e1)](async(_0x1abd1e,_0x3d57aa)=>{const _0xbef980=a2_0x1c1acf,_0x2a4b96=new ParentSegmentDescCommand(),_0x43f0c5=program[_0xbef980(0x305)](),_0x534ce7=await createTDXInstance(_0x43f0c5),_0x4f41a0=await _0x2a4b96['run']({'options':{..._0x43f0c5,..._0x3d57aa},'args':_0x1abd1e?[_0x1abd1e]:[],'tdx':_0x534ce7});process['exit'](_0x4f41a0);}),parentSegmentCmd[a2_0x1c1acf(0x19c)]('sql\x20[name]')['description'](a2_0x1c1acf(0x193))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))['option'](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0x5f2438,_0x42f878)=>{const _0x3fb31c=a2_0x1c1acf,_0x80d61d=new ParentSegmentSQLCommand(),_0x3e72e2=program['opts'](),_0x4fda0b=await createTDXInstance(_0x3e72e2),_0x5d221e=await _0x80d61d[_0x3fb31c(0x188)]({'options':{..._0x3e72e2,..._0x42f878},'args':_0x5f2438?[_0x5f2438]:[],'tdx':_0x4fda0b});process[_0x3fb31c(0x28c)](_0x5d221e);}),parentSegmentCmd['command'](a2_0x1c1acf(0x19b))['description'](a2_0x1c1acf(0x2ca))['option'](a2_0x1c1acf(0x215),a2_0x1c1acf(0x145))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x152),a2_0x1c1acf(0x10f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f8),a2_0x1c1acf(0x1b1))[a2_0x1c1acf(0x1e1)](async(_0x4ffce5,_0x49ffe2)=>{const _0x7025=a2_0x1c1acf,_0x179448=new ParentSegmentShowCommand(),_0x270772=program[_0x7025(0x305)](),_0x1a4828=await createTDXInstance(_0x270772),_0x35dc6c=await _0x179448[_0x7025(0x188)]({'options':{..._0x270772,..._0x49ffe2},'args':_0x4ffce5?[_0x4ffce5]:[],'tdx':_0x1a4828});process[_0x7025(0x28c)](_0x35dc6c);}),parentSegmentCmd['command']('use\x20[name]')[a2_0x1c1acf(0x1d0)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x1c1acf(0x1e1)](async(_0x2bd9d,_0x290386)=>{const _0x1d5024=a2_0x1c1acf,_0x4d4774=new UseCommand(),_0x5252d3=program[_0x1d5024(0x305)](),_0x17d451=_0x2bd9d?[_0x1d5024(0x12c),_0x2bd9d]:[],_0x35c6fe=await _0x4d4774[_0x1d5024(0x188)]({'options':{..._0x5252d3,..._0x290386},'args':_0x17d451,'tdx':null});process['exit'](_0x35c6fe);}),parentCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1b5))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x136),a2_0x1c1acf(0x270))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x261),a2_0x1c1acf(0x246))['option']('--description\x20<text>',a2_0x1c1acf(0x21e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x100),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x1c1acf(0x14e),a2_0x1c1acf(0x11f))[a2_0x1c1acf(0x288)]('--timezone\x20<tz>',a2_0x1c1acf(0x2a9))['option'](a2_0x1c1acf(0x11e),a2_0x1c1acf(0x2d4))['option'](a2_0x1c1acf(0x146),a2_0x1c1acf(0x15a))['option'](a2_0x1c1acf(0x1c4),a2_0x1c1acf(0x191))[a2_0x1c1acf(0x288)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x256),a2_0x1c1acf(0x1b0))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x12e),a2_0x1c1acf(0x19d))[a2_0x1c1acf(0x1e1)](async(_0x1ac719,_0x14cf27)=>{const _0x1836df=a2_0x1c1acf,_0xc2ccf7=new ParentSegmentCreateCommand(),_0x95c89e=program[_0x1836df(0x305)](),_0xc0708a=await createTDXInstance(_0x95c89e),_0xcd9f32=await _0xc2ccf7[_0x1836df(0x188)]({'options':{..._0x95c89e,..._0x14cf27},'args':[_0x1ac719],'tdx':_0xc0708a});process[_0x1836df(0x28c)](_0xcd9f32);}),parentCmd['command'](a2_0x1c1acf(0x2f4))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x201))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x312))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x100),a2_0x1c1acf(0x300))[a2_0x1c1acf(0x288)]('--schedule-option\x20<value>',a2_0x1c1acf(0x2e0))['option']('--timezone\x20<tz>',a2_0x1c1acf(0x192))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x206),a2_0x1c1acf(0x164))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x26e),a2_0x1c1acf(0x10b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b4),a2_0x1c1acf(0x281))[a2_0x1c1acf(0x288)]('--add-behaviors-file\x20<file>',a2_0x1c1acf(0x254))[a2_0x1c1acf(0x1e1)](async(_0x1228c3,_0x5e61dc)=>{const _0x379ba8=a2_0x1c1acf,_0x2959a9=new ParentSegmentUpdateCommand(),_0x44ba18=program[_0x379ba8(0x305)](),_0x271ad3=await createTDXInstance(_0x44ba18),_0x46ffc8=await _0x2959a9[_0x379ba8(0x188)]({'options':{..._0x44ba18,..._0x5e61dc},'args':[_0x1228c3],'tdx':_0x271ad3});process[_0x379ba8(0x28c)](_0x46ffc8);}),folderCmd[a2_0x1c1acf(0x19c)]('create\x20<parent_name>\x20<folder_name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x268))['option']('--description\x20<text>',a2_0x1c1acf(0x2db))['option'](a2_0x1c1acf(0x272),a2_0x1c1acf(0x2ab))[a2_0x1c1acf(0x1e1)](async(_0x376923,_0x3b227a,_0x5bd728)=>{const _0x4cb33e=a2_0x1c1acf,_0x507ac2=new SegmentFolderCreateCommand(),_0xce718c=program[_0x4cb33e(0x305)](),_0x330e96=await createTDXInstance(_0xce718c),_0xf99f95=await _0x507ac2['run']({'options':{..._0xce718c,..._0x5bd728},'args':[_0x376923,_0x3b227a],'tdx':_0x330e96});process[_0x4cb33e(0x28c)](_0xf99f95);}),program['command'](a2_0x1c1acf(0x124))[a2_0x1c1acf(0x1d0)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x1c1acf(0x1e1)](async(_0x25dccd,_0x4099b2)=>{const _0x362e39=a2_0x1c1acf,_0x2d39fd=new ActivationsCommand(),_0x4c49df=program[_0x362e39(0x305)](),_0x111a57=await createTDXInstance(_0x4c49df),_0x5bffc4=await _0x2d39fd[_0x362e39(0x188)]({'options':{..._0x4c49df,..._0x4099b2},'args':[_0x25dccd],'tdx':_0x111a57});process[_0x362e39(0x28c)](_0x5bffc4);});const workflowCmd=program['command'](a2_0x1c1acf(0x198))[a2_0x1c1acf(0x14f)]('wf')['description'](a2_0x1c1acf(0x17f)),wfProjectCmd=workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x27a))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e9)),wfProjectListAction=async(_0x2de6e2,_0x569149)=>{const _0x16788a=a2_0x1c1acf,_0xc75972=new WorkflowProjectsCommand(),_0x232de5=program[_0x16788a(0x305)](),_0x43c74d=await createTDXInstance(_0x232de5),_0x3d5417=await _0xc75972[_0x16788a(0x188)]({'options':{..._0x232de5,..._0x569149},'args':_0x2de6e2?[_0x2de6e2]:[],'tdx':_0x43c74d});process[_0x16788a(0x28c)](_0x3d5417);};wfProjectCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')['description'](a2_0x1c1acf(0x2c7))[a2_0x1c1acf(0x1e1)](wfProjectListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2fe))[a2_0x1c1acf(0x1d0)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1c1acf(0x1e1)](wfProjectListAction);const wfWorkflowListAction=async(_0x1fabf3,_0x59d398)=>{const _0x18f709=a2_0x1c1acf,_0x4a0074=new WorkflowWorkflowsCommand(),_0x117cb1=program[_0x18f709(0x305)](),_0x2f4c9b=await createTDXInstance(_0x117cb1),_0x4e79d0=await _0x4a0074[_0x18f709(0x188)]({'options':{..._0x117cb1,..._0x59d398},'args':_0x1fabf3?[_0x1fabf3]:[],'tdx':_0x2f4c9b});process[_0x18f709(0x28c)](_0x4e79d0);};workflowCmd['command'](a2_0x1c1acf(0x291))[a2_0x1c1acf(0x1d0)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x241))['description'](a2_0x1c1acf(0x2b4)),wfSessionListAction=async(_0x3cdee6,_0x311eb4)=>{const _0x1a45ce=a2_0x1c1acf,_0x35e7ec=new WorkflowSessionsCommand(),_0x4f886f=program[_0x1a45ce(0x305)](),_0x17c9a2=await createTDXInstance(_0x4f886f),_0x594aac=await _0x35e7ec[_0x1a45ce(0x188)]({'options':{..._0x4f886f,..._0x311eb4},'args':_0x3cdee6?[_0x3cdee6]:[],'tdx':_0x17c9a2});process[_0x1a45ce(0x28c)](_0x594aac);};wfSessionCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x212))[a2_0x1c1acf(0x1d0)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x11d),a2_0x1c1acf(0x2a5))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x153),a2_0x1c1acf(0x1f7))[a2_0x1c1acf(0x1e1)](wfSessionListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x240))['description'](a2_0x1c1acf(0x25b))[a2_0x1c1acf(0x288)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x1c1acf(0x11d),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x153),a2_0x1c1acf(0x1f7))[a2_0x1c1acf(0x1e1)](wfSessionListAction);const wfAttemptListAction=async(_0x17d224,_0xb61ad7)=>{const _0x51031e=a2_0x1c1acf,_0x4571d4=new WorkflowAttemptsCommand(),_0x389d3d=program[_0x51031e(0x305)](),_0x3ac949=await createTDXInstance(_0x389d3d),_0x43fb31=await _0x4571d4[_0x51031e(0x188)]({'options':{..._0x389d3d,..._0xb61ad7},'args':_0x17d224?[_0x17d224]:[],'tdx':_0x3ac949});process[_0x51031e(0x28c)](_0x43fb31);},attemptCmd=workflowCmd[a2_0x1c1acf(0x19c)]('attempt')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2e1))['argument'](a2_0x1c1acf(0x142),a2_0x1c1acf(0x1d7))[a2_0x1c1acf(0x1ca)]('[action]',a2_0x1c1acf(0x22d))[a2_0x1c1acf(0x1ca)](a2_0x1c1acf(0x18a),a2_0x1c1acf(0x1d2))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x213),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1d8),'Reason\x20for\x20killing\x20the\x20attempt')['option']('--resume-from\x20<task>',a2_0x1c1acf(0x172))[a2_0x1c1acf(0x288)]('--params\x20<json>',a2_0x1c1acf(0x299))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2be),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x302),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x1c1acf(0x1e1)](async(_0xcdecb5,_0x3b6db6,_0x35e0ac,_0xa45811)=>{const _0x548aa1=a2_0x1c1acf;if(_0xcdecb5===_0x548aa1(0x1fb)){await wfAttemptListAction(_0x3b6db6,_0xa45811);return;}if(!_0xcdecb5){attemptCmd['help']();return;}const _0x333a50=program[_0x548aa1(0x305)](),_0x53ad20=await createTDXInstance(_0x333a50);let _0x5109bf=0x0;if(!_0x3b6db6){const _0x486c07=new WorkflowAttemptCommand();_0x5109bf=await _0x486c07[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6===_0x548aa1(0xe2)){const _0x266af3=new WorkflowLogsCommand();_0x5109bf=await _0x266af3[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':_0x35e0ac?[_0xcdecb5,_0x35e0ac]:[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6===_0x548aa1(0x13b)){const _0x1b2944=new WorkflowTasksCommand();_0x5109bf=await _0x1b2944['run']({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6==='kill'){const _0xc26984=new WorkflowKillCommand();_0x5109bf=await _0xc26984[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0xcdecb5],'tdx':_0x53ad20});}else{if(_0x3b6db6==='retry'){const _0x4e883b=new WorkflowRetryCommand();_0x5109bf=await _0x4e883b[_0x548aa1(0x188)]({'options':{..._0x333a50,..._0xa45811},'args':[_0x548aa1(0x2f3)+_0xcdecb5],'tdx':_0x53ad20});}else console[_0x548aa1(0x155)](_0x548aa1(0xf4)+_0x3b6db6),console['error'](_0x548aa1(0x25a)),_0x5109bf=0x1;}}}}process[_0x548aa1(0x28c)](_0x5109bf);});attemptCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x212))['description'](a2_0x1c1acf(0x1f2))[a2_0x1c1acf(0x288)]('--include-retried','Include\x20retried\x20attempts')[a2_0x1c1acf(0x1e1)](wfAttemptListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x121))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2f0))['option'](a2_0x1c1acf(0x302),'Include\x20retried\x20attempts')[a2_0x1c1acf(0x1e1)](wfAttemptListAction),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x236))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2a8))['option'](a2_0x1c1acf(0x1bb),'Resume\x20from\x20specific\x20task')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1b8),a2_0x1c1acf(0x149))[a2_0x1c1acf(0x1e1)](async(_0x28d1df,_0xe60029)=>{const _0x212a3c=a2_0x1c1acf,_0x2fd597=new WorkflowRetryCommand(),_0x372aa2=program['opts'](),_0x1359b2=await createTDXInstance(_0x372aa2),_0x3564f8=await _0x2fd597[_0x212a3c(0x188)]({'options':{..._0x372aa2,..._0xe60029},'args':[_0x28d1df],'tdx':_0x1359b2});process['exit'](_0x3564f8);}),workflowCmd['command'](a2_0x1c1acf(0x2e7))['description'](a2_0x1c1acf(0x13c))['option'](a2_0x1c1acf(0x26c),a2_0x1c1acf(0x1db),(_0x3ac8b6,_0x27af86=[])=>[..._0x27af86,_0x3ac8b6],[])[a2_0x1c1acf(0x288)]('--session-time\x20<time>',a2_0x1c1acf(0x23f))['action'](async(_0x13d99c,_0x27f47f)=>{const _0x544fb7=a2_0x1c1acf,_0x223c1b=new WorkflowRunCommand(),_0x15017d=program[_0x544fb7(0x305)](),_0x41fc02=await createTDXInstance(_0x15017d),_0x40bb7e=await _0x223c1b[_0x544fb7(0x188)]({'options':{..._0x15017d,..._0x27f47f},'args':[_0x13d99c],'tdx':_0x41fc02});process[_0x544fb7(0x28c)](_0x40bb7e);}),workflowCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1ba))['description']('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x1c1acf(0x30d),a2_0x1c1acf(0x194))[a2_0x1c1acf(0x1e1)](async(_0x21bc66,_0x578222,_0x1d9e64)=>{const _0x48abbe=a2_0x1c1acf,_0x3069e1=new WorkflowDownloadCommand(),_0x4d4685=program['opts'](),_0x993475=await createTDXInstance(_0x4d4685),_0x34d097=await _0x3069e1[_0x48abbe(0x188)]({'options':{..._0x4d4685,..._0x1d9e64},'args':[_0x21bc66,_0x578222||'.'],'tdx':_0x993475});process[_0x48abbe(0x28c)](_0x34d097);}),workflowCmd['command'](a2_0x1c1acf(0x218))[a2_0x1c1acf(0x1d0)]('Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),'Override\x20project\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x30d),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2bf),a2_0x1c1acf(0x163))['action'](async(_0x11b225,_0x11201c)=>{const _0x3a69c6=a2_0x1c1acf,_0xabbf40=new WorkflowPushCommand(),_0x5d978c=program[_0x3a69c6(0x305)](),_0x3309de=await createTDXInstance(_0x5d978c),_0x1f679c=await _0xabbf40[_0x3a69c6(0x188)]({'options':{..._0x5d978c,..._0x11201c},'args':_0x11b225?[_0x11b225]:[],'tdx':_0x3309de});process[_0x3a69c6(0x28c)](_0x1f679c);}),workflowCmd['command']('delete\x20<project-name-or-id>')[a2_0x1c1acf(0x1d0)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1c1acf(0x1e1)](async(_0x479ac6,_0x145bdc)=>{const _0xd6ba78=a2_0x1c1acf,_0x225809=new WorkflowDeleteCommand(),_0xcb897f=program[_0xd6ba78(0x305)](),_0x5aa0f6=await createTDXInstance(_0xcb897f),_0x15e2c5=await _0x225809[_0xd6ba78(0x188)]({'options':{..._0xcb897f,..._0x145bdc},'args':[_0x479ac6],'tdx':_0x5aa0f6});process[_0xd6ba78(0x28c)](_0x15e2c5);});const jobCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x230))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2f6)),jobListAction=async _0x2c02fb=>{const _0x122802=a2_0x1c1acf,_0x12584d=new JobListCommand(),_0x2f174d=program['opts'](),_0x5e7888=await createTDXInstance(_0x2f174d),_0x49afd9=await _0x12584d[_0x122802(0x188)]({'options':{..._0x2f174d,..._0x2c02fb},'args':[],'tdx':_0x5e7888});process[_0x122802(0x28c)](_0x49afd9);};jobCmd['command'](a2_0x1c1acf(0x1fb))['description']('List\x20jobs')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ee),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x23a))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),a2_0x1c1acf(0x18c))[a2_0x1c1acf(0x1e1)](jobListAction),jobCmd['command'](a2_0x1c1acf(0x237))[a2_0x1c1acf(0x1d0)]('Show\x20job\x20details')[a2_0x1c1acf(0x1e1)](async(_0x5dddb2,_0x175149)=>{const _0x518eee=a2_0x1c1acf,_0x32f928=new JobShowCommand(),_0x52d837=program[_0x518eee(0x305)](),_0x9905c7=await createTDXInstance(_0x52d837),_0x56cba6=await _0x32f928[_0x518eee(0x188)]({'options':{..._0x52d837,..._0x175149},'args':[_0x5dddb2],'tdx':_0x9905c7});process[_0x518eee(0x28c)](_0x56cba6);}),jobCmd[a2_0x1c1acf(0x19c)]('kill\x20<job-id>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x168))[a2_0x1c1acf(0x1e1)](async(_0x536547,_0x4d4b81)=>{const _0x59e782=a2_0x1c1acf,_0x4aec69=new JobKillCommand(),_0x17da95=program[_0x59e782(0x305)](),_0x386bce=await createTDXInstance(_0x17da95),_0x22fc8b=await _0x4aec69[_0x59e782(0x188)]({'options':{..._0x17da95,..._0x4d4b81},'args':[_0x536547],'tdx':_0x386bce});process[_0x59e782(0x28c)](_0x22fc8b);}),jobCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1f6))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x158))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x24c),a2_0x1c1acf(0x10a),'trino')[a2_0x1c1acf(0x288)]('-f,\x20--file\x20<path>',a2_0x1c1acf(0x24e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x316),a2_0x1c1acf(0x115),'information_schema')[a2_0x1c1acf(0x1e1)](async(_0x580ef9,_0x2744b6)=>{const _0x997e70=a2_0x1c1acf,_0x199d80=new JobSubmitCommand(),_0x4ca1cf=program[_0x997e70(0x305)](),_0x374585=await createTDXInstance(_0x4ca1cf),_0x3f8791=await _0x199d80['run']({'options':{..._0x4ca1cf,..._0x2744b6},'args':_0x580ef9?[_0x580ef9]:[],'tdx':_0x374585});process['exit'](_0x3f8791);}),jobCmd['command']('result\x20<job-id>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xfc))[a2_0x1c1acf(0x1e1)](async(_0x2aaf08,_0x3756cc)=>{const _0x2ad8f4=a2_0x1c1acf,_0x3932d9=new JobResultCommand(),_0x51a6dd=program['opts'](),_0x5192e0=await createTDXInstance(_0x51a6dd),_0x5259e9=await _0x3932d9[_0x2ad8f4(0x188)]({'options':{..._0x51a6dd,..._0x3756cc},'args':[_0x2aaf08],'tdx':_0x5192e0});process['exit'](_0x5259e9);});const llmCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2f9))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x224));llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x250))[a2_0x1c1acf(0x1d0)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x1c1acf(0x1e1)](async(_0x5a9189,_0x4bc12a)=>{const _0x416784=a2_0x1c1acf,_0x503521=new LLMUseCommand(),_0x5b717e=program[_0x416784(0x305)](),_0x31db2e=await createTDXInstance(_0x5b717e),_0x32e65b=await _0x503521[_0x416784(0x188)]({'options':{..._0x5b717e,..._0x4bc12a},'args':[_0x5a9189],'tdx':_0x31db2e});process[_0x416784(0x28c)](_0x32e65b);}),llmCmd['command']('models')[a2_0x1c1acf(0x1d0)]('List\x20available\x20LLM\x20models')[a2_0x1c1acf(0x1e1)](async _0x52c7c1=>{const _0x3520ee=a2_0x1c1acf,_0x3bf3cf=new LLMModelsCommand(),_0x157822=program[_0x3520ee(0x305)](),_0x156dd3=await createTDXInstance(_0x157822),_0x5f5d9d=await _0x3bf3cf['run']({'options':{..._0x157822,..._0x52c7c1},'args':[],'tdx':_0x156dd3});process['exit'](_0x5f5d9d);});const projectCmd=llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x27a))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1c3)),llmProjectListAction=async(_0x101842,_0x2c6e01)=>{const _0x3545c0=a2_0x1c1acf,_0x3f5c93=new LLMProjectsCommand(),_0x3f16f2=program[_0x3545c0(0x305)](),_0x2e6c0f=await createTDXInstance(_0x3f16f2),_0x1430bb=await _0x3f5c93[_0x3545c0(0x188)]({'options':{..._0x3f16f2,..._0x2c6e01},'args':_0x101842?[_0x101842]:[],'tdx':_0x2e6c0f});process[_0x3545c0(0x28c)](_0x1430bb);};projectCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')['description'](a2_0x1c1acf(0x1f3))[a2_0x1c1acf(0x288)]('-w,\x20--web',a2_0x1c1acf(0x1bf))[a2_0x1c1acf(0x1e1)](llmProjectListAction),llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2fe))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x1bf))[a2_0x1c1acf(0x1e1)](llmProjectListAction),projectCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ac))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x249))[a2_0x1c1acf(0x1e1)](async(_0x473666,_0x2ba2f2)=>{const _0x2fdab0=a2_0x1c1acf,_0x4fe1ff=new LLMProjectCreateCommand(),_0x50c305=program[_0x2fdab0(0x305)](),_0x3b6647=await createTDXInstance(_0x50c305),_0x35e757=await _0x4fe1ff['run']({'options':{..._0x50c305,..._0x2ba2f2},'args':[_0x473666],'tdx':_0x3b6647});process[_0x2fdab0(0x28c)](_0x35e757);}),projectCmd['command']('delete\x20<name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2eb))[a2_0x1c1acf(0x1e1)](async(_0x55f485,_0x23e142)=>{const _0x45d86b=a2_0x1c1acf,_0x2787f3=new LLMProjectDeleteCommand(),_0x3a8b20=program[_0x45d86b(0x305)](),_0x2ffa67=await createTDXInstance(_0x3a8b20),_0x2112ee=await _0x2787f3[_0x45d86b(0x188)]({'options':{..._0x3a8b20,..._0x23e142},'args':[_0x55f485],'tdx':_0x2ffa67});process[_0x45d86b(0x28c)](_0x2112ee);}),projectCmd['command'](a2_0x1c1acf(0x1e4))[a2_0x1c1acf(0x1d0)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f2),a2_0x1c1acf(0x31a))['option'](a2_0x1c1acf(0x22e),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x1c1acf(0x1e1)](async(_0x36ba82,_0x25d4e4)=>{const _0x33c3f6=a2_0x1c1acf,_0x182aa9=new LLMProjectBackupCommand(),_0x390cc2=program['opts'](),_0x2fd104=await createTDXInstance(_0x390cc2),_0x19d07c=await _0x182aa9[_0x33c3f6(0x188)]({'options':{..._0x390cc2,..._0x25d4e4},'args':[_0x36ba82],'tdx':_0x2fd104});process[_0x33c3f6(0x28c)](_0x19d07c);}),projectCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x313))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1e5))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x251),a2_0x1c1acf(0x319))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x181))[a2_0x1c1acf(0x1e1)](async(_0xfff443,_0x1ad92c)=>{const _0x4089ac=a2_0x1c1acf,_0x3bf245=new LLMProjectRestoreCommand(),_0x10ec88=program['opts'](),_0x46fe7a=await createTDXInstance(_0x10ec88),_0x89a2c2=await _0x3bf245[_0x4089ac(0x188)]({'options':{..._0x10ec88,..._0x1ad92c},'args':[_0xfff443],'tdx':_0x46fe7a});process[_0x4089ac(0x28c)](_0x89a2c2);});const llmAgentListAction=async(_0x4097c3,_0x211dac)=>{const _0x216752=a2_0x1c1acf,_0x39c2b2=new LLMAgentsCommand(),_0x20f413=program[_0x216752(0x305)](),_0xa549ac=await createTDXInstance(_0x20f413),_0x36f627=await _0x39c2b2[_0x216752(0x188)]({'options':{..._0x20f413,..._0x211dac},'args':_0x4097c3?[_0x4097c3]:[],'tdx':_0xa549ac});process[_0x216752(0x28c)](_0x36f627);};llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x106))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0xf9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x170))[a2_0x1c1acf(0x1e1)](llmAgentListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x106))['description'](a2_0x1c1acf(0xf9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x170))[a2_0x1c1acf(0x1e1)](llmAgentListAction),llmCmd[a2_0x1c1acf(0x19c)]('history\x20[chat-id]')['description']('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xf1),a2_0x1c1acf(0x2a1))[a2_0x1c1acf(0x1e1)](async(_0x37662e,_0x3ceec3)=>{const _0x49d2f9=a2_0x1c1acf,_0x521def=new LLMHistoryCommand(),_0x214fd4=program['opts'](),_0x1ff2f5=await createTDXInstance(_0x214fd4),_0x3e2686=await _0x521def[_0x49d2f9(0x188)]({'options':{..._0x214fd4,..._0x3ceec3},'args':_0x37662e?[_0x37662e]:[],'tdx':_0x1ff2f5});process['exit'](_0x3e2686);}),llmCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1d9))[a2_0x1c1acf(0x1d0)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x1c1acf(0x288)]('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')[a2_0x1c1acf(0x288)]('--project\x20<name>',a2_0x1c1acf(0x2c9))['option'](a2_0x1c1acf(0x14c),a2_0x1c1acf(0x13e))[a2_0x1c1acf(0x1e1)](async _0x475cae=>{const _0xc7ceb1=a2_0x1c1acf,_0x2c324a=new LLMProxyCommand(),_0x4e4e03=program[_0xc7ceb1(0x305)](),_0x2b6b89=await createTDXInstance(_0x4e4e03),_0x3a4821={..._0x475cae,'port':_0x475cae[_0xc7ceb1(0x127)]?parseInt(_0x475cae[_0xc7ceb1(0x127)],0xa):undefined},_0x233697=await _0x2c324a[_0xc7ceb1(0x188)]({'options':{..._0x4e4e03,..._0x3a4821},'args':[],'tdx':_0x2b6b89});process[_0xc7ceb1(0x28c)](_0x233697);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x232))['usage'](a2_0x1c1acf(0x1e6))[a2_0x1c1acf(0x1d0)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option'](a2_0x1c1acf(0x2b8),a2_0x1c1acf(0x2a6),a2_0x1c1acf(0x140))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x220),a2_0x1c1acf(0x147))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x12d),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2c5),a2_0x1c1acf(0x196))[a2_0x1c1acf(0x22f)]()[a2_0x1c1acf(0x2ad)](!![])[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x1d5))[a2_0x1c1acf(0x1e1)](async(_0x385cbf,_0x53d002)=>{const _0x2dccaf=a2_0x1c1acf,_0x59ad7a=program[_0x2dccaf(0x305)](),_0x2c2d10=Array[_0x2dccaf(0x2b9)](_0x385cbf)?_0x385cbf:[];if(_0x2c2d10[0x0]===_0x2dccaf(0x108)){const _0x165586=new ClaudeStatuslineCommand(),_0x2814c1=await _0x165586[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10['slice'](0x1),'tdx':null});process[_0x2dccaf(0x28c)](_0x2814c1);}if(_0x2c2d10[0x0]===_0x2dccaf(0x167)){const _0x14bad3=new ClaudeUsageCommand(),_0x52935b=await _0x14bad3[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10[_0x2dccaf(0x165)](0x1),'tdx':null});process['exit'](_0x52935b);}const _0x26162=new ClaudeCommand(),_0x432603=await createTDXInstance(_0x59ad7a),_0x44842b=await _0x26162[_0x2dccaf(0x188)]({'options':{..._0x59ad7a,..._0x53d002},'args':_0x2c2d10,'tdx':_0x432603});process['exit'](_0x44842b);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x131))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1de))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x235),a2_0x1c1acf(0xe3))[a2_0x1c1acf(0x1e1)](async _0xde083d=>{const _0x1b72ad=a2_0x1c1acf,_0x5c86d9=new ContextCommand(),_0xf28884=program[_0x1b72ad(0x305)](),_0x3dd402=await _0x5c86d9[_0x1b72ad(0x188)]({'options':{..._0xf28884,..._0xde083d},'args':[],'tdx':null});process[_0x1b72ad(0x28c)](_0x3dd402);}),program[a2_0x1c1acf(0x19c)]('use\x20[resource]\x20[value]')['description'](a2_0x1c1acf(0x20e))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x235),'Clear\x20session\x20context')[a2_0x1c1acf(0x1e1)](async(_0x23a206,_0x3b4722,_0x52bb93)=>{const _0x4f99c0=a2_0x1c1acf,_0x11cf09=new UseCommand(),_0x4ce9f6=program[_0x4f99c0(0x305)](),_0x39122a=[];if(_0x23a206)_0x39122a[_0x4f99c0(0x1fc)](_0x23a206);if(_0x3b4722)_0x39122a[_0x4f99c0(0x1fc)](_0x3b4722);const _0x101d80=await _0x11cf09[_0x4f99c0(0x188)]({'options':{..._0x4ce9f6,..._0x52bb93},'args':_0x39122a,'tdx':null});process[_0x4f99c0(0x28c)](_0x101d80);}),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x10e))[a2_0x1c1acf(0x1d0)]('Interactive\x20chat\x20selector')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0xf1),'Show\x20the\x20most\x20recent\x20chat')[a2_0x1c1acf(0x1e1)](async _0x19289f=>{const _0xaf6e7a=a2_0x1c1acf,_0x3056aa=new ChatsCommand(),_0x17ef22=program[_0xaf6e7a(0x305)](),_0x1df0d9=await createTDXInstance(_0x17ef22),_0x2475e3=await _0x3056aa['run']({'options':{..._0x17ef22,..._0x19289f},'args':[],'tdx':_0x1df0d9});process[_0xaf6e7a(0x28c)](_0x2475e3);});const authCmd=program['command'](a2_0x1c1acf(0x190))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x24d));async function runAuthStatusCommand(_0xff1a68){const _0x13ff73=a2_0x1c1acf,_0x500a53=new AuthStatusCommand(),_0x61cd4a=program['opts'](),_0x23488e=await createTDXInstance(_0x61cd4a),_0x53a3b6=await _0x500a53['run']({'options':{..._0x61cd4a,..._0xff1a68},'args':[],'tdx':_0x23488e});process[_0x13ff73(0x28c)](_0x53a3b6);}authCmd[a2_0x1c1acf(0x1e1)](runAuthStatusCommand),authCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x264))['description'](a2_0x1c1acf(0x279))[a2_0x1c1acf(0x1e1)](runAuthStatusCommand),authCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x227))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x26f))[a2_0x1c1acf(0x177)](a2_0x1c1acf(0x2b3),a2_0x1c1acf(0x16d))[a2_0x1c1acf(0x1e1)](async _0x50985d=>{const _0x4bc938=a2_0x1c1acf,_0x47e697=new AuthSetupCommand(),_0x5185a0=program[_0x4bc938(0x305)](),_0x245c1f=await createTDXInstance(_0x5185a0),_0x11e834=await _0x47e697['run']({'options':{..._0x5185a0,..._0x50985d},'args':[],'tdx':_0x245c1f});process[_0x4bc938(0x28c)](_0x11e834);}),authCmd['command'](a2_0x1c1acf(0x180))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x161))['addHelpText']('after',a2_0x1c1acf(0x31d))['action'](async _0x224c28=>{const _0x13263d=a2_0x1c1acf,_0x56c83d=new AuthClearCommand(),_0x2f9f1f=program[_0x13263d(0x305)](),_0x1cc0ba=await _0x56c83d['run']({'options':{..._0x2f9f1f,..._0x224c28},'args':[],'tdx':null});process[_0x13263d(0x28c)](_0x1cc0ba);});const userCmd=program[a2_0x1c1acf(0x19c)]('user')['description']('User\x20management\x20commands'),userListAction=async _0x4bd3d0=>{const _0x4e7a6e=new UserListCommand(),_0x1ed2c3=program['opts'](),_0x163f6b=await createTDXInstance(_0x1ed2c3),_0x49825c=await _0x4e7a6e['run']({'options':{..._0x1ed2c3,..._0x4bd3d0},'args':[],'tdx':_0x163f6b});process['exit'](_0x49825c);};userCmd[a2_0x1c1acf(0x1e1)](async _0x59912f=>{const _0x30c328=a2_0x1c1acf,_0x27be1a=new UserCommand(),_0x1aa005=program['opts'](),_0x5db156=await createTDXInstance(_0x1aa005),_0x248a62=await _0x27be1a[_0x30c328(0x188)]({'options':{..._0x1aa005,..._0x59912f},'args':[],'tdx':_0x5db156});process[_0x30c328(0x28c)](_0x248a62);}),userCmd['command'](a2_0x1c1acf(0x1fb))[a2_0x1c1acf(0x1d0)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x1c1acf(0x1e1)](userListAction),program['command'](a2_0x1c1acf(0x257))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x274))[a2_0x1c1acf(0x1e1)](userListAction),program['command'](a2_0x1c1acf(0x135))['description']('List\x20all\x20available\x20profiles')[a2_0x1c1acf(0x1e1)](async _0x147520=>{const _0x15ae4e=a2_0x1c1acf,_0x2fea9c=new ProfilesCommand(),_0x1dcfa9=program['opts'](),_0x120612=await _0x2fea9c[_0x15ae4e(0x188)]({'options':{..._0x1dcfa9,..._0x147520},'args':[],'tdx':null});process[_0x15ae4e(0x28c)](_0x120612);});const engageCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x143))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1b9)),createEngageAction=_0x579860=>{return async(_0x556c8e,_0x4ce7f3)=>{const _0x43fe98=a2_0x476c,_0x312c8b=new _0x579860(),_0x5dfd58=program[_0x43fe98(0x305)](),_0x50ef0c=await createTDXInstance(_0x5dfd58),_0x3caeac=await _0x312c8b['run']({'options':{..._0x5dfd58,..._0x4ce7f3},'args':[_0x556c8e],'tdx':_0x50ef0c});process[_0x43fe98(0x28c)](_0x3caeac);};},createEngageNoArgAction=_0x5d8d0a=>{return async _0xb62ab3=>{const _0x5c773b=a2_0x476c,_0xfd3833=new _0x5d8d0a(),_0x426a82=program[_0x5c773b(0x305)](),_0x1952ce=await createTDXInstance(_0x426a82),_0x1f023a=await _0xfd3833[_0x5c773b(0x188)]({'options':{..._0x426a82,..._0xb62ab3},'args':[],'tdx':_0x1952ce});process[_0x5c773b(0x28c)](_0x1f023a);};},campaignCmd=engageCmd['command'](a2_0x1c1acf(0x2c2))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x208)),campaignListAction=async(_0x58e540,_0x5b645a)=>{const _0x35eb4c=a2_0x1c1acf,_0x4ae5d1=new EngageCampaignsCommand(),_0x4c04a4=program['opts'](),_0x1baecb=await createTDXInstance(_0x4c04a4),_0x19c53d=await _0x4ae5d1['run']({'options':{..._0x4c04a4,..._0x5b645a},'args':_0x58e540?[_0x58e540]:[],'tdx':_0x1baecb});process[_0x35eb4c(0x28c)](_0x19c53d);};function a2_0x51da(){const _0x14311d=['use\x20<name>','subcommandDescription','join','buildTime','Create\x20a\x20new\x20LLM\x20project','List\x20agents\x20in\x20current\x20project','Update\x20an\x20email\x20template','repeat','Customer\x20group\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','Set\x20operation\x20timeout\x20in\x20seconds','--folder\x20<name>','--add-behaviors\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Arguments:','forEach','--params\x20<json>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','download\x20<project-name>\x20[output-dir]','--from-task\x20<task>','get','HTML\x20template\x20content','--type\x20<api_type>','Show\x20console\x20URLs','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','optionDescription','--debug','LLM\x20project\x20management','--behaviors\x20<json>','journey','show\x20[table]','Change\x20to\x20directory\x20before\x20executing\x20command','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Starter\x20message','argument','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Output\x20directory','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Email\x20subject\x20template','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','description','workspaces\x20[pattern]','Task\x20name\x20for\x20logs\x20action','Show\x20only\x20master\x20table\x20validation','Agent\x20prompt/instructions','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Maximum\x20recursion\x20depth\x20(default:\x2010)','Attempt\x20ID','--reason\x20<text>','proxy','--segment\x20<path>','Workflow\x20parameter\x20(repeatable)','New\x20template\x20name','Resume\x20a\x20paused\x20journey','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','Read\x20request\x20body\x20from\x20file','templates\x20[pattern]','action','Include\x20execution\x20statistics','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','backup\x20<name>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','[options]\x20--\x20[claude-code-args...]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20existing\x20agent','Workflow\x20project\x20management','Show\x20agent\x20details','--json-columns\x20<cols>','-1d','-o,\x20--output\x20<file>','log','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Push\x20without\x20confirmation','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','tables\x20[pattern]','.dev','submit\x20[query]','End\x20time\x20filter\x20(ISO\x208601\x20format)','stdout','Describe\x20table\x20schema','-d,\x20--database\x20<name>','list','push','Data\x20connection\x20management\x20(for\x20activations/exports)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Campaign\x20description','--format\x20<format>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--starter-message\x20<text>','\x20-\x20built\x20','1336OYEooa','view\x20[name]','--add-attributes\x20<json>','_hidden','Campaign\x20management','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','help','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','-f,\x20--file\x20<path>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','requiredOption','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Output\x20file\x20path\x20(default:\x20<name>.yml)','list\x20[project]','--include-subtasks','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--limit\x20<n>','hook','fields\x20[name]','push\x20[project-name-or-dir]','--color','--status\x20<status>','--behavior\x20[name]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','create\x20<segment_name>','Parent\x20segment\x20description','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','-c,\x20--continue','--output\x20<file>','Pause\x20a\x20running\x20journey','replace','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Usage:\x20','parent-segment','setup','list\x20[path]','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Database\x20management\x20commands','--in\x20<database>','template','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--dry-run','allowUnknownOption','job','registeredArguments','claude\x20[args...]','parse','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--clear','retry\x20<session-id>','show\x20<job-id>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--master','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Show\x20connection\x20details\x20by\x20name','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Workspace\x20name\x20(required)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','sessions\x20[project]','session','Request\x20body\x20as\x20JSON\x20string','Open\x20segment\x20in\x20web\x20browser','INVALID_ARGUMENT','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Master\x20table\x20name','Resume\x20a\x20paused\x20campaign','--max-depth\x20<depth>','Project\x20description','commandUsage','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--job-type\x20<type>','Authentication\x20management','Read\x20query\x20from\x20file','aliases','use\x20<project-name>','--name\x20<new-name>','commandDescription','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Add\x20behaviors\x20from\x20JSON\x20file','validate\x20[name]','--customer-group\x20<json>','users','create','Skip\x20population\x20counting','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','649606JBTgVg','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Directory\x20does\x20not\x20exist:\x20','Plaintext\x20template\x20content','Commands:','--table\x20<table>','Show\x20master\x20table\x20sample\x20data','-C,\x20--directory\x20<path>','status','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','List\x20all\x20data\x20connections','--name\x20<name>','Create\x20segment\x20folder','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','clone\x20[source]','--data\x20<data>','--param\x20<key=value>','Open\x20journey\x20in\x20web\x20browser','--add-attributes-file\x20<file>','Setup\x20API\x20key\x20authentication\x20interactively','Master\x20database\x20name','summary','--parent-folder\x20<name>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Launch\x20a\x20campaign','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','project','segment','Show\x20workspace\x20details','subcommandTerm','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','view\x20[segment_name]','Add\x20behaviors\x20as\x20JSON\x20string','--limit\x20<rows>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Enable\x20verbose\x20logging','Maximum\x20tool\x20iterations\x20(default:\x204)','--description\x20<text>','Email\x20sender\x20ID\x20for\x20delivery','option','options','--enriched','Campaign\x20type\x20(email\x20or\x20push)','exit','Preview\x20operation\x20without\x20executing','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20web\x20console\x20URLs\x20for\x20journeys','workflows\x20[project]','-p,\x20--profile\x20<name>','New\x20segment\x20name','json','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Show\x20journey\x20statistics','noColor','update\x20<segment_name>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','CDP\x20segment\x20management\x20commands','launch\x20<name-or-id>','argumentTerm','Template\x20name','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Agent\x20description','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','folders\x20<parent_name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','tdx','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Timezone\x20(e.g.,\x20America/Los_Angeles)','--timezone\x20<tz>','Parent\x20folder\x20name\x20for\x20nested\x20folders','campaigns\x20[pattern]','allowExcessArguments','view\x20<name-or-path>','isTTY','2217957IquPvM','version','LLM\x20project\x20to\x20use\x20(overrides\x20context)','after','Workflow\x20session\x20management','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Overwrite\x20local\x20changes\x20without\x20confirmation','desc\x20[segment_name]','--model\x20<name>','isArray','--html\x20<html>','3907482HlupzZ','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','map','--force','--skip-validation','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--agent\x20<ref>','campaign','createAsync','table','--no-proxy','--include-stats','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','tsv','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20available\x20connector\x20types','gitRevision','--email-sender-id\x20<id>','Show\x20segment\x20schema\x20(column\x20types)','\x20(resolved\x20to\x20','--plaintext\x20<text>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','configureHelp','Attributes\x20as\x20JSON\x20string','preview\x20[name]','Show\x20journey\x20details','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Segment\x20description','agent','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Folder\x20description','--site\x20<site>','preAction','--new','--start-at\x20<datetime>','Updated\x20schedule\x20option','Workflow\x20attempt\x20management','--prompt\x20<text>','Create\x20a\x20new\x20campaign','describe\x20[table]',',\x20version\x20','DEBUG','run\x20<workflow>','List\x20journeys\x20in\x20current\x20context','Campaign\x20name','Read\x20SQL\x20query\x20from\x20file','Delete\x20an\x20LLM\x20project','catch','argumentDescription','jobs','isDirectory','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--workspace\x20<name>','-o,\x20--output\x20<folder>','attempt:','update\x20<name>','required','Job\x20management\x20commands','Editor\x20type','--jsonl','llm','--description\x20<desc>','Run\x20Trino\x20query\x20with\x20streaming\x20results','--stage\x20<name>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','projects\x20[pattern]','System\x20prompt/instructions\x20(default:\x20empty)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--include-retried','argv','0.7','opts','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','hidden','directory','Skip\x20confirmation\x20prompts','--version','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','padWidth','--revision\x20<revision>','--rule-file\x20<file>','Workspace\x20management','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Open\x20parent\x20segment\x20in\x20web\x20browser','Updated\x20description','restore\x20<folder>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','pull\x20[name]','--database\x20<name>','[DEPRECATED]\x20Segment\x20folder\x20management','delete\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Output\x20folder\x20(default:\x20{project_name}.llm)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','show\x20<agent-name>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','Create\x20an\x20email\x20template','use\x20<path>','Database\x20to\x20use\x20(overrides\x20context)','logs','Clear\x20session\x20context','chdir','Trino\x20catalog\x20(default:\x20td)','--no-color','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','resume\x20<name-or-id>','update\x20<agent-name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','create\x20<name>','Agent\x20name','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Show\x20web\x20console\x20URLs\x20for\x20segments','validate\x20[file]','--last','flatMap','Agent\x20reference\x20(project-name/agent-name)','Unknown\x20action:\x20','workspace','site','5206435osDzPP','databases\x20[pattern]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','includes','Save\x20output\x20to\x20file','Get\x20job\x20results','--subject\x20<subject>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--schedule-type\x20<type>','desc\x20[name]','logLevel','Email\x20template\x20management','utf-8','profile','agents\x20[pattern]','--llm-project\x20<name>','statusline','fields\x20[parent_name]','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Add\x20attributes\x20from\x20JSON\x20file','Start\x20a\x20new\x20chat\x20session','build-info.json','chats','Output\x20as\x20JSON','folder','claude-4.5-sonnet','-r,\x20--recursive','info\x20[segment_name]','--max-tool-iterations\x20<n>','Database\x20name\x20(default:\x20information_schema)','stats\x20<name-or-path>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--full','Skip\x20confirmation\x20prompt','commands','format','Workspace\x20name','--from\x20<timestamp>','--attributes\x20<json>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','stderr','attempts\x20[project]','1973340UWiznM','list\x20[pattern]','activations\x20<segment_name>','--system-prompt\x20<text>','update\x20<name-or-id>','port','--name\x20<new_name>','--editor-type\x20<type>','settings\x20<type>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','parent_segment','-r,\x20--resume','--customer-group-file\x20<file>','delete\x20<agent-name>','length','context','Delete\x20a\x20campaign','sql\x20[segment_name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','profiles','--database\x20<db>','-y,\x20--yes','--timeout\x20<seconds>','Parent\x20segment\x20management','LLM\x20agent\x20management','tasks','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','sonnet','tdx\x20','[attempt-id]','engage','Show\x20campaign\x20details','Limit\x20number\x20of\x20rows','--attributes-file\x20<file>','Continue\x20most\x20recent\x20conversation','--kind\x20<type>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','New\x20campaign\x20name','--table','--agent\x20<name>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--schedule-option\x20<value>','alias','Update\x20a\x20workspace','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--json','--to\x20<timestamp>','-X,\x20--method\x20<method>','error','duplicate\x20<name-or-id>','Delete\x20a\x20workspace','Submit\x20a\x20job','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Attributes\x20from\x20JSON\x20file','filter','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-n,\x20--name\x20<name>','--yes','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Remove\x20API\x20key\x20from\x20system\x20keychain','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Skip\x20validation\x20of\x20.dig\x20files','Add\x20attributes\x20as\x20JSON\x20string','slice','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','usage','Kill\x20a\x20job','--invisible','--type\x20<type>','Duplicate\x20a\x20campaign','trace','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','pull\x20[project]\x20[agent-name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Show\x20agent\x20chat\x20URLs','database','Resume\x20from\x20specific\x20task\x20(retry)','schema\x20<type>','Show\x20stats\x20for\x20specific\x20stage','push\x20[name]','pause\x20<name-or-path>','addHelpText','desc','TRACE','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','-f,\x20--force','Show\x20segment\x20details\x20(alias\x20for\x20view)','--rule\x20<json>','2577700iTPBlu','Workflow\x20(Digdag)\x20management\x20commands','clear','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','113372xXaOgf','pause\x20<name-or-id>','--attribute\x20[name]','Path\x20is\x20not\x20a\x20directory:\x20','apiKey','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','run','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','[task-name]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','New\x20workspace\x20name','debug','show\x20<name-or-id>','auth','Behaviors\x20as\x20JSON\x20string','Updated\x20timezone','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Folder\x20name\x20for\x20organization','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','connections','workflow','resume\x20<name-or-path>','set','show\x20[name]','command','Customer\x20group\x20from\x20JSON\x20file','jsonl','run\x20[name]','-w,\x20--web','name','Update\x20a\x20campaign','--interval\x20<range>','Workspace\x20description','Name\x20for\x20the\x20new\x20project\x20(required)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','-d,\x20--database\x20<database>'];a2_0x51da=function(){return _0x14311d;};return a2_0x51da();}campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x28f))[a2_0x1c1acf(0x288)]('--type\x20<type>',a2_0x1c1acf(0x1c0))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x21a),a2_0x1c1acf(0x15d))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](campaignListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ac))['description'](a2_0x1c1acf(0x2c0))['option'](a2_0x1c1acf(0x16a),a2_0x1c1acf(0x1c0))['option'](a2_0x1c1acf(0x21a),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](campaignListAction),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x144))[a2_0x1c1acf(0x288)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x118),a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')['description'](a2_0x1c1acf(0x2e3))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x2e9))['requiredOption'](a2_0x1c1acf(0x16a),a2_0x1c1acf(0x28b))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x23d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),a2_0x1c1acf(0x1ff))['option']('--segment\x20<path>',a2_0x1c1acf(0x1cf))[a2_0x1c1acf(0x288)]('--email-sender-id\x20<id>',a2_0x1c1acf(0x287))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1eb),a2_0x1c1acf(0xfe))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2df),a2_0x1c1acf(0x310))[a2_0x1c1acf(0x288)]('--timezone\x20<tz>',a2_0x1c1acf(0x306))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1a2))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x14a))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),a2_0x1c1acf(0x1ff))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1da),a2_0x1c1acf(0x1cf))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2cd),a2_0x1c1acf(0x287))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1eb),a2_0x1c1acf(0xfe))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2df),a2_0x1c1acf(0x310))['option'](a2_0x1c1acf(0x2aa),a2_0x1c1acf(0x306))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x132))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))['option'](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x1c1acf(0x29e))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x277))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x1c1acf(0x183))[a2_0x1c1acf(0x1d0)]('Pause\x20a\x20campaign')['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x1c1acf(0xe9))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x247))['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x156))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x16b))['option'](a2_0x1c1acf(0x2f1),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x22c))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x103)),templateListAction=async(_0x19b1b7,_0x5b5f3a)=>{const _0x279d5f=a2_0x1c1acf,_0x13dbcb=new EngageTemplatesCommand(),_0x394259=program[_0x279d5f(0x305)](),_0x3941f1=await createTDXInstance(_0x394259),_0x28fd69=await _0x13dbcb[_0x279d5f(0x188)]({'options':{..._0x394259,..._0x5b5f3a},'args':_0x19b1b7?[_0x19b1b7]:[],'tdx':_0x3941f1});process[_0x279d5f(0x28c)](_0x28fd69);};templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1cd))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x1e1)](templateListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1e0))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x151))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2f1),'Workspace\x20name')['action'](templateListAction),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))[a2_0x1c1acf(0x1d0)]('Show\x20email\x20template\x20details')['option'](a2_0x1c1acf(0x2f1),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x118),a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1c1acf(0x19c)]('create')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x31e))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x2a0))[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0xfd),'Email\x20subject\x20template')[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x2ba),a2_0x1c1acf(0x1bd))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x23d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2d0),a2_0x1c1acf(0x25f))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x129),a2_0x1c1acf(0x2f7))[a2_0x1c1acf(0x1e1)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ae))[a2_0x1c1acf(0x288)]('--workspace\x20<name>',a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x1dc))['option'](a2_0x1c1acf(0xfd),a2_0x1c1acf(0x1ce))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2ba),a2_0x1c1acf(0x1bd))[a2_0x1c1acf(0x288)]('--plaintext\x20<text>',a2_0x1c1acf(0x25f))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)]('Delete\x20an\x20email\x20template')[a2_0x1c1acf(0x288)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xf5))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x30f)),workspaceListAction=async(_0xcdfd52,_0x2f8b7c)=>{const _0x33a8a2=a2_0x1c1acf,_0x5a4339=new EngageWorkspacesCommand(),_0x4b5b99=program[_0x33a8a2(0x305)](),_0x145b61=await createTDXInstance(_0x4b5b99),_0x242aee=await _0x5a4339[_0x33a8a2(0x188)]({'options':{..._0x4b5b99,..._0x2f8b7c},'args':_0xcdfd52?[_0xcdfd52]:[],'tdx':_0x145b61});process['exit'](_0x242aee);};workspaceCmd['command'](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x18b))[a2_0x1c1acf(0x1e1)](workspaceListAction),engageCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1d1))['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x1c1acf(0x1e1)](workspaceListAction),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x18f))['description'](a2_0x1c1acf(0x27c))[a2_0x1c1acf(0x288)]('--full',a2_0x1c1acf(0x1f1))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x258))['description']('Create\x20a\x20workspace')[a2_0x1c1acf(0x20f)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x11c))[a2_0x1c1acf(0x288)]('--description\x20<desc>',a2_0x1c1acf(0x1a4))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x1c1acf(0x126))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x150))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x267),a2_0x1c1acf(0x18d))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2fa),'Workspace\x20description')[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x318))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x157))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15f),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1c1acf(0x1a8))[a2_0x1c1acf(0x1d0)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x1c1acf(0x1e1)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x1c1acf(0x19c)]('connection')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1fd)),connectionListAction=async _0x46bf56=>{const _0x1e11c6=a2_0x1c1acf,_0x3ea118=new ConnectionListCommand(),_0x4992db=program['opts'](),_0x2d6597=await createTDXInstance(_0x4992db),_0x5b3109=await _0x3ea118[_0x1e11c6(0x188)]({'options':{..._0x4992db,..._0x46bf56},'args':[],'tdx':_0x2d6597});process['exit'](_0x5b3109);};connectionCmd['command']('list')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x266))[a2_0x1c1acf(0x1e1)](connectionListAction),program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x197),{'hidden':!![]})[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x229))[a2_0x1c1acf(0x1e1)](connectionListAction),connectionCmd[a2_0x1c1acf(0x19c)]('show\x20<name>')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x23b))[a2_0x1c1acf(0x1e1)](async(_0x10d0da,_0xdb3fd6)=>{const _0x5a9ff8=new ConnectionShowCommand(),_0x378ef9=program['opts'](),_0x24d1d5=await createTDXInstance(_0x378ef9),_0x173c64=await _0x5a9ff8['run']({'options':{..._0x378ef9,..._0xdb3fd6},'args':[_0x10d0da],'tdx':_0x24d1d5});process['exit'](_0x173c64);}),connectionCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x173))['description']('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x1c1acf(0x1e1)](async(_0x36325d,_0x39537c)=>{const _0x4e3f87=a2_0x1c1acf,_0x3ebc86=new ConnectionSchemaCommand(),_0x4735f6=program['opts'](),_0x586d5e=await createTDXInstance(_0x4735f6),_0x53a6a7=await _0x3ebc86[_0x4e3f87(0x188)]({'options':{..._0x4735f6,..._0x39537c},'args':[_0x36325d],'tdx':_0x586d5e});process[_0x4e3f87(0x28c)](_0x53a6a7);}),connectionCmd['command']('types')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2cb))[a2_0x1c1acf(0x1e1)](async _0x1c802c=>{const _0x12fbb6=a2_0x1c1acf,_0x3bb53e=new ConnectionTypesCommand(),_0x14a33e=program[_0x12fbb6(0x305)](),_0x19f746=await createTDXInstance(_0x14a33e),_0x4c17d5=await _0x3bb53e[_0x12fbb6(0x188)]({'options':{..._0x14a33e,..._0x1c802c},'args':[],'tdx':_0x19f746});process[_0x12fbb6(0x28c)](_0x4c17d5);}),connectionCmd['command'](a2_0x1c1acf(0x12a))['description']('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x1c1acf(0x1e1)](async(_0x4fe21b,_0x2eeb88)=>{const _0x48edf1=a2_0x1c1acf,_0x445148=new ConnectionSettingsCommand(),_0x377d1b=program[_0x48edf1(0x305)](),_0x29a1dc=await createTDXInstance(_0x377d1b),_0x19872c=await _0x445148[_0x48edf1(0x188)]({'options':{..._0x377d1b,..._0x2eeb88},'args':[_0x4fe21b],'tdx':_0x29a1dc});process[_0x48edf1(0x28c)](_0x19872c);});const journeyCmd=program[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x1c5))[a2_0x1c1acf(0x1d0)]('CDP\x20Journey\x20Orchestration\x20commands');journeyCmd['command'](a2_0x1c1acf(0x123))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2e8))['option'](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x290))[a2_0x1c1acf(0x1e1)](async(_0x17e58a,_0x5eb61e)=>{const _0x1b2641=a2_0x1c1acf,_0x58f808=new JourneyListCommand(),_0x3d3d61=program[_0x1b2641(0x305)](),_0x591b9c=await createTDXInstance(_0x3d3d61),_0x17336a=await _0x58f808[_0x1b2641(0x188)]({'options':{..._0x3d3d61,..._0x5eb61e},'args':_0x17e58a?[_0x17e58a]:[],'tdx':_0x591b9c});process[_0x1b2641(0x28c)](_0x17336a);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x2ae))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x2d6))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x1a0),a2_0x1c1acf(0x26d))['option'](a2_0x1c1acf(0x2c6),a2_0x1c1acf(0x1e2))[a2_0x1c1acf(0x1e1)](async(_0x420e9a,_0x31122c)=>{const _0x8ee48=a2_0x1c1acf,_0x4b7ee9=new JourneyViewCommand(),_0x1f7caf=program['opts'](),_0x456ad5=await createTDXInstance(_0x1f7caf),_0x250c53=await _0x4b7ee9[_0x8ee48(0x188)]({'options':{..._0x1f7caf,..._0x31122c},'args':[_0x420e9a],'tdx':_0x456ad5});process[_0x8ee48(0x28c)](_0x250c53);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x116))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x296))['option'](a2_0x1c1acf(0x2fc),a2_0x1c1acf(0x174))[a2_0x1c1acf(0x1e1)](async(_0x2675b9,_0x43f1b9)=>{const _0x4c3a40=a2_0x1c1acf,_0x508a64=new JourneyStatsCommand(),_0x58c75b=program[_0x4c3a40(0x305)](),_0x1340cc=await createTDXInstance(_0x58c75b),_0x160fd2=await _0x508a64['run']({'options':{..._0x58c75b,..._0x43f1b9},'args':[_0x2675b9],'tdx':_0x1340cc});process[_0x4c3a40(0x28c)](_0x160fd2);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x176))['description'](a2_0x1c1acf(0x222))[a2_0x1c1acf(0x1e1)](async(_0x27cd4a,_0x9d97dc)=>{const _0x2cf73e=a2_0x1c1acf,_0x47d7a0=new JourneyPauseCommand(),_0x2001a2=program[_0x2cf73e(0x305)](),_0x240948=await createTDXInstance(_0x2001a2),_0x1bbde5=await _0x47d7a0[_0x2cf73e(0x188)]({'options':{..._0x2001a2,..._0x9d97dc},'args':[_0x27cd4a],'tdx':_0x240948});process[_0x2cf73e(0x28c)](_0x1bbde5);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x199))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1dd))[a2_0x1c1acf(0x1e1)](async(_0x119535,_0x312cda)=>{const _0xde9867=a2_0x1c1acf,_0x4fd45f=new JourneyResumeCommand(),_0xfbd39b=program['opts'](),_0xad69b3=await createTDXInstance(_0xfbd39b),_0x10d131=await _0x4fd45f['run']({'options':{..._0xfbd39b,..._0x312cda},'args':[_0x119535],'tdx':_0xad69b3});process[_0xde9867(0x28c)](_0x10d131);}),journeyCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x315))[a2_0x1c1acf(0x1d0)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x137),a2_0x1c1acf(0x119))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x22e),a2_0x1c1acf(0x2da))[a2_0x1c1acf(0x1e1)](async(_0x26d89c,_0x15c5ec)=>{const _0x130bf3=a2_0x1c1acf,_0x3734d9=new JourneyPullCommand(),_0x89f68=program[_0x130bf3(0x305)](),_0x5a95f6=await createTDXInstance(_0x89f68),_0x5a31d5=await _0x3734d9[_0x130bf3(0x188)]({'options':{..._0x89f68,..._0x15c5ec},'args':_0x26d89c?[_0x26d89c]:[],'tdx':_0x5a95f6});process[_0x130bf3(0x28c)](_0x5a31d5);}),journeyCmd[a2_0x1c1acf(0x19c)]('push\x20[target]')['description'](a2_0x1c1acf(0x20b))[a2_0x1c1acf(0x1e1)](async(_0x223675,_0x1cad6c)=>{const _0x5bafa5=a2_0x1c1acf,_0xf87291=new JourneyPushCommand(),_0x4f13e1=program[_0x5bafa5(0x305)](),_0x4c8bf1=await createTDXInstance(_0x4f13e1),_0x254d51=await _0xf87291['run']({'options':{..._0x4f13e1,..._0x1cad6c},'args':_0x223675?[_0x223675]:[],'tdx':_0x4c8bf1});process[_0x5bafa5(0x28c)](_0x254d51);});const agentSyncCmd=program['command'](a2_0x1c1acf(0x2d9))['description'](a2_0x1c1acf(0x13a));agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x16e))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1cb))[a2_0x1c1acf(0x288)]('-o,\x20--output\x20<dir>',a2_0x1c1acf(0x1cc))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x17b),a2_0x1c1acf(0x2b6))[a2_0x1c1acf(0x1e1)](async(_0x401bef,_0x5bd9d,_0x1b618e)=>{const _0x3ee7cf=a2_0x1c1acf,_0x1143c7=new AgentPullCommand(),_0xfac72e=program[_0x3ee7cf(0x305)](),_0xce23ad=await createTDXInstance(_0xfac72e),_0x4926a7=[];if(_0x401bef)_0x4926a7['push'](_0x401bef);if(_0x5bd9d)_0x4926a7[_0x3ee7cf(0x1fc)](_0x5bd9d);const _0x12071d=await _0x1143c7[_0x3ee7cf(0x188)]({'options':{..._0xfac72e,..._0x1b618e},'args':_0x4926a7,'tdx':_0xce23ad});process['exit'](_0x12071d);}),agentSyncCmd[a2_0x1c1acf(0x19c)]('push\x20[path]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x301))['option']('-f,\x20--force',a2_0x1c1acf(0x1f0))[a2_0x1c1acf(0x1e1)](async(_0x2f6934,_0x3ad59c)=>{const _0x53ab85=a2_0x1c1acf,_0x3ef5c9=new AgentPushCommand(),_0x4427b8=program[_0x53ab85(0x305)](),_0x55b31c=await createTDXInstance(_0x4427b8),_0x514f80=await _0x3ef5c9[_0x53ab85(0x188)]({'options':{..._0x4427b8,..._0x3ad59c},'args':_0x2f6934?[_0x2f6934]:[],'tdx':_0x55b31c});process[_0x53ab85(0x28c)](_0x514f80);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x26a))['description'](a2_0x1c1acf(0x23c))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x15e),a2_0x1c1acf(0x1a5))[a2_0x1c1acf(0x1e1)](async(_0x5c9fcf,_0x55a6f4)=>{const _0x4c0555=a2_0x1c1acf,_0x35f3e8=new AgentCloneCommand(),_0x20c969=program[_0x4c0555(0x305)](),_0x10ac7e=await createTDXInstance(_0x20c969),_0x2cba04=await _0x35f3e8['run']({'options':{..._0x20c969,..._0x55a6f4},'args':_0x5c9fcf?[_0x5c9fcf]:[],'tdx':_0x10ac7e});process[_0x4c0555(0x28c)](_0x2cba04);}),agentSyncCmd[a2_0x1c1acf(0x19c)]('list\x20[pattern]')[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ad))[a2_0x1c1acf(0x288)]('-w,\x20--web','Show\x20agent\x20chat\x20URLs')[a2_0x1c1acf(0x1e1)](llmAgentListAction),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x31c))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x1ea))['action'](async(_0x3bce25,_0x556eed)=>{const _0x3f9b56=a2_0x1c1acf,_0x2fadf9=new LLMAgentShowCommand(),_0x149cc2=program['opts'](),_0x57e752=await createTDXInstance(_0x149cc2),_0xadda52=await _0x2fadf9[_0x3f9b56(0x188)]({'options':{..._0x149cc2,..._0x556eed},'args':[_0x3bce25],'tdx':_0x57e752});process[_0x3f9b56(0x28c)](_0xadda52);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xec))[a2_0x1c1acf(0x1d0)](a2_0x1c1acf(0x295))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x125),a2_0x1c1acf(0x2ff))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2b8),a2_0x1c1acf(0x2d2),a2_0x1c1acf(0x111))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x202),a2_0x1c1acf(0x1c9))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x114),a2_0x1c1acf(0x285),'4')[a2_0x1c1acf(0x288)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x1c1acf(0x304))['action'](async(_0x681981,_0x1ce47e)=>{const _0x277383=a2_0x1c1acf,_0x2c300e=new LLMAgentCreateCommand(),_0x32c09e=program[_0x277383(0x305)](),_0x406b53=await createTDXInstance(_0x32c09e),_0x54b415=await _0x2c300e[_0x277383(0x188)]({'options':{..._0x32c09e,..._0x1ce47e},'args':[_0x681981],'tdx':_0x406b53});process['exit'](_0x54b415);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0xea))['description'](a2_0x1c1acf(0x1e8))[a2_0x1c1acf(0x288)]('--name\x20<text>',a2_0x1c1acf(0xed))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x2e2),a2_0x1c1acf(0x1d4))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x286),a2_0x1c1acf(0x2a2))[a2_0x1c1acf(0x288)](a2_0x1c1acf(0x202),'Starter\x20message')[a2_0x1c1acf(0x1e1)](async(_0x5c729d,_0x556021)=>{const _0x45b6ea=a2_0x1c1acf,_0x14ae9f=new LLMAgentUpdateCommand(),_0x41b3c8=program[_0x45b6ea(0x305)](),_0x434393=await createTDXInstance(_0x41b3c8),_0x5d4725=await _0x14ae9f['run']({'options':{..._0x41b3c8,..._0x556021},'args':[_0x5c729d],'tdx':_0x434393});process['exit'](_0x5d4725);}),agentSyncCmd[a2_0x1c1acf(0x19c)](a2_0x1c1acf(0x12f))['description']('Delete\x20an\x20agent')['action'](async(_0x44de56,_0x19c99a)=>{const _0x508161=a2_0x1c1acf,_0x58b843=new LLMAgentDeleteCommand(),_0x2e3100=program['opts'](),_0x4c5633=await createTDXInstance(_0x2e3100),_0x658aa0=await _0x58b843[_0x508161(0x188)]({'options':{..._0x2e3100,..._0x19c99a},'args':[_0x44de56],'tdx':_0x4c5633});process[_0x508161(0x28c)](_0x658aa0);});export{program};export function runCLI(){const _0xc12ecc=a2_0x1c1acf;program[_0xc12ecc(0x233)](process[_0xc12ecc(0x303)]);!process[_0xc12ecc(0x303)][_0xc12ecc(0x165)](0x2)[_0xc12ecc(0x130)]&&program['outputHelp']();const _0x4d5952=packageJson[_0xc12ecc(0x2b1)];process[_0xc12ecc(0x120)][_0xc12ecc(0x2af)]&&process[_0xc12ecc(0x303)][_0xc12ecc(0x130)]>0x2&&!_0x4d5952[_0xc12ecc(0xfa)](_0xc12ecc(0x1f5))&&checkForUpdate(_0x4d5952)['then'](_0x476b90=>{_0x476b90&&displayUpdateNotification(_0x476b90);})[_0xc12ecc(0x2ec)](()=>{});}
1
+ const a2_0x1eae26=a2_0x2e8a;(function(_0x3e26e1,_0x17fded){const _0x39fb63=a2_0x2e8a,_0x577d25=_0x3e26e1();while(!![]){try{const _0x849ad1=-parseInt(_0x39fb63(0x26b))/0x1*(-parseInt(_0x39fb63(0x349))/0x2)+parseInt(_0x39fb63(0x30e))/0x3*(-parseInt(_0x39fb63(0x3d9))/0x4)+-parseInt(_0x39fb63(0x265))/0x5+parseInt(_0x39fb63(0x356))/0x6*(parseInt(_0x39fb63(0x325))/0x7)+-parseInt(_0x39fb63(0x261))/0x8*(parseInt(_0x39fb63(0x1e7))/0x9)+parseInt(_0x39fb63(0x208))/0xa*(parseInt(_0x39fb63(0x1fa))/0xb)+-parseInt(_0x39fb63(0x243))/0xc;if(_0x849ad1===_0x17fded)break;else _0x577d25['push'](_0x577d25['shift']());}catch(_0x2dfcdb){_0x577d25['push'](_0x577d25['shift']());}}}(a2_0x39f8,0x23545));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowPushCommand,WorkflowDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';function a2_0x2e8a(_0x3d2dae,_0x4568b4){_0x3d2dae=_0x3d2dae-0x1d2;const _0x39f8cc=a2_0x39f8();let _0x2e8a56=_0x39f8cc[_0x3d2dae];return _0x2e8a56;}import{ProfilesCommand}from'./commands/profiles-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON[a2_0x1eae26(0x2d3)](readFileSync(join(__dirname,'../package.json'),a2_0x1eae26(0x35e)));let buildInfo={};try{buildInfo=JSON[a2_0x1eae26(0x2d3)](readFileSync(join(__dirname,a2_0x1eae26(0x3be)),a2_0x1eae26(0x35e)));}catch{}if(process['argv']['includes'](a2_0x1eae26(0x2be))){let versionOutput=a2_0x1eae26(0x399)+packageJson[a2_0x1eae26(0x3d3)];buildInfo['gitRevision']&&(versionOutput+='\x20('+buildInfo[a2_0x1eae26(0x369)]+')'),buildInfo[a2_0x1eae26(0x28d)]&&(versionOutput+=a2_0x1eae26(0x24f)+buildInfo[a2_0x1eae26(0x28d)]),console['log'](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x1eae26(0x3e4);buildInfo['gitRevision']?description+=',\x20version\x20'+packageJson[a2_0x1eae26(0x3d3)]+'\x20('+buildInfo[a2_0x1eae26(0x369)]+')':description+=',\x20version\x20'+packageJson[a2_0x1eae26(0x3d3)];program[a2_0x1eae26(0x30d)]('tdx')['description'](description),program['option'](a2_0x1eae26(0x3b9),a2_0x1eae26(0x3d4))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3db),a2_0x1eae26(0x2b4))['option'](a2_0x1eae26(0x2fe),a2_0x1eae26(0x1f3),a2_0x1eae26(0x206))['option'](a2_0x1eae26(0x271),a2_0x1eae26(0x366))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x227),a2_0x1eae26(0x210))['option'](a2_0x1eae26(0x2d0),a2_0x1eae26(0x236))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x224),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1eae26(0x1f7)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x31c),a2_0x1eae26(0x314))['option'](a2_0x1eae26(0x1f6),a2_0x1eae26(0x331))['option']('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x38a),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2c8),a2_0x1eae26(0x207),![])['option'](a2_0x1eae26(0x375),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x272),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x28f),a2_0x1eae26(0x2c9),'30')['option'](a2_0x1eae26(0x281),a2_0x1eae26(0x27b),![])[a2_0x1eae26(0x1f7)]('-y,\x20--yes',a2_0x1eae26(0x2c6),![])['option']('--session\x20<id>',a2_0x1eae26(0x2eb))['option']('-d,\x20--database\x20<name>','Database\x20to\x20use\x20(overrides\x20context)')['option']('--in\x20<name>',a2_0x1eae26(0x3b7))['option'](a2_0x1eae26(0x31b),a2_0x1eae26(0x29c))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x256),a2_0x1eae26(0x3e3)),program[a2_0x1eae26(0x21c)]({'formatHelp':(_0x474b11,_0x2175ad)=>{const _0x42d16e=a2_0x1eae26,_0x43b7c2=_0x2175ad['padWidth'](_0x474b11,_0x2175ad),_0x42c0be=0x2,_0x560c71=0x2;function _0x1e1be3(_0x101f0d){const _0x284258=a2_0x2e8a,_0x5618f8=_0x101f0d;return!!(_0x5618f8[_0x284258(0x1dc)]||_0x5618f8[_0x284258(0x2e6)]);}function _0x9b275b(_0x31728c,_0x576b8e){const _0x5449e9=a2_0x2e8a;if(_0x576b8e){const _0x97cb47=''+_0x31728c[_0x5449e9(0x3aa)](_0x43b7c2+_0x560c71)+_0x576b8e;return _0x97cb47;}return _0x31728c;}function _0x4c2447(_0x1cb095){const _0x4323bf=a2_0x2e8a;return _0x1cb095[_0x4323bf(0x263)]('\x0a')[_0x4323bf(0x3df)](/^/gm,'\x20'['repeat'](_0x42c0be));}const _0x247554=[];_0x247554[_0x42d16e(0x2a4)](_0x42d16e(0x307)+_0x2175ad[_0x42d16e(0x306)](_0x474b11));const _0x5929ae=_0x2175ad[_0x42d16e(0x230)](_0x474b11);_0x5929ae&&(_0x247554[_0x42d16e(0x2a4)](''),_0x247554['push'](_0x5929ae));const _0x4d7ed6=_0x474b11[_0x42d16e(0x342)][_0x42d16e(0x30f)](_0x232d9b=>!_0x1e1be3(_0x232d9b));if(_0x4d7ed6[_0x42d16e(0x244)]>0x0){if(_0x474b11[_0x42d16e(0x30d)]()===_0x42d16e(0x22f)){const _0xa60c57=_0x474b11[_0x42d16e(0x2a8)](),_0x3a392b=!_0xa60c57[_0x42d16e(0x257)]&&process['stdout'][_0x42d16e(0x32d)],_0x243960=COMMAND_CATEGORIES,_0xc87819=(_0x461dba,_0xb5e0da)=>_0x3a392b?_0xb5e0da(_0x461dba):_0x461dba,_0x2872b8=new Map();_0x4d7ed6[_0x42d16e(0x311)](_0x397e6f=>{const _0x4ede59=_0x42d16e;_0x2872b8[_0x4ede59(0x214)](_0x397e6f['name'](),_0x397e6f);}),_0x243960[_0x42d16e(0x311)](_0x1ae519=>{const _0x434ac5=_0x42d16e,_0x7080e5=_0x1ae519[_0x434ac5(0x342)][_0x434ac5(0x2ec)](_0x2c01da=>_0x2872b8['get'](_0x2c01da)??[]);if(_0x7080e5[_0x434ac5(0x244)]>0x0){_0x247554[_0x434ac5(0x2a4)](''),_0x247554[_0x434ac5(0x2a4)](_0xc87819(_0x1ae519[_0x434ac5(0x30d)]+':',_0x1ae519[_0x434ac5(0x3d5)]));const _0x2a725=_0x7080e5[_0x434ac5(0x22b)](_0x157ab2=>{const _0x1212c3=_0x434ac5,_0x253e68=_0x2175ad[_0x1212c3(0x39f)](_0x157ab2),_0x5ce958=_0x2175ad[_0x1212c3(0x33a)](_0x157ab2);return _0x9b275b(_0x253e68,_0x5ce958);});_0x247554[_0x434ac5(0x2a4)](_0x4c2447(_0x2a725));}}),_0x247554[_0x42d16e(0x2a4)](''),_0x247554[_0x42d16e(0x2a4)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x4d731a=_0x4d7ed6[_0x42d16e(0x22b)](_0x2d4440=>{const _0x975b7a=_0x42d16e,_0x54c9ea=_0x2175ad['subcommandTerm'](_0x2d4440),_0x21288d=_0x2175ad[_0x975b7a(0x33a)](_0x2d4440);return _0x9b275b(_0x54c9ea,_0x21288d);});_0x247554['push'](''),_0x247554[_0x42d16e(0x2a4)](_0x42d16e(0x2ac)),_0x247554[_0x42d16e(0x2a4)](_0x4c2447(_0x4d731a));}}const _0x233403=_0x474b11['options']['filter'](_0x3760f2=>!_0x1e1be3(_0x3760f2));if(_0x233403[_0x42d16e(0x244)]>0x0){const _0x5ebef1=_0x233403[_0x42d16e(0x22b)](_0x31ed57=>{const _0x5d408b=_0x42d16e,_0x3089ff=_0x2175ad['optionTerm'](_0x31ed57),_0x5827ec=_0x2175ad[_0x5d408b(0x3a8)](_0x31ed57);return _0x9b275b(_0x3089ff,_0x5827ec);});_0x247554['push'](''),_0x247554[_0x42d16e(0x2a4)](_0x42d16e(0x2ba)),_0x247554[_0x42d16e(0x2a4)](_0x4c2447(_0x5ebef1));}const _0x116c5b=(_0x474b11[_0x42d16e(0x2bd)]||[])[_0x42d16e(0x30f)](_0x45c580=>!_0x1e1be3(_0x45c580));if(_0x116c5b[_0x42d16e(0x244)]>0x0){const _0x55f020=_0x116c5b['map'](_0x221e9e=>{const _0x2ce1d0=_0x42d16e,_0x4c82cf=_0x2175ad['argumentTerm'](_0x221e9e),_0x3d302b=_0x2175ad[_0x2ce1d0(0x2b1)](_0x221e9e);return _0x9b275b(_0x4c82cf,_0x3d302b);});_0x247554[_0x42d16e(0x2a4)](''),_0x247554[_0x42d16e(0x2a4)](_0x42d16e(0x313)),_0x247554[_0x42d16e(0x2a4)](_0x4c2447(_0x55f020));}return _0x247554['join']('\x0a');},'subcommandTerm':_0x20ab56=>{const _0x3087e4=a2_0x1eae26,_0x33186e=(_0x20ab56[_0x3087e4(0x2bd)]||[])[_0x3087e4(0x22b)](_0x5d655b=>_0x5d655b[_0x3087e4(0x3a5)]?'<'+_0x5d655b[_0x3087e4(0x30d)]()+'>':'['+_0x5d655b['name']()+']')[_0x3087e4(0x263)]('\x20'),_0x20a75f=_0x20ab56[_0x3087e4(0x26f)](),_0x1ba3e3=_0x20a75f[_0x3087e4(0x244)]>0x0?_0x20ab56[_0x3087e4(0x30d)]()+',\x20'+_0x20a75f[_0x3087e4(0x263)](',\x20'):_0x20ab56[_0x3087e4(0x30d)]();return _0x33186e?_0x1ba3e3+'\x20'+_0x33186e:_0x1ba3e3;}}),program[a2_0x1eae26(0x2f6)]('preAction',_0x4d5db4=>{const _0x25bf88=a2_0x1eae26,_0x2e57f0=_0x4d5db4[_0x25bf88(0x2a8)]();if(_0x2e57f0[_0x25bf88(0x1eb)]){const _0x2b0f16=resolve(_0x2e57f0[_0x25bf88(0x1eb)]),_0x2f3cdb=_0x2b0f16!==_0x2e57f0[_0x25bf88(0x1eb)]?'\x20(resolved\x20to\x20'+_0x2b0f16+')':'';if(!existsSync(_0x2b0f16))throw new SDKError(ErrorCode[_0x25bf88(0x29e)],_0x25bf88(0x329)+_0x2e57f0[_0x25bf88(0x1eb)]+_0x2f3cdb,undefined,{'helpText':_0x25bf88(0x317)});const _0x183e95=statSync(_0x2b0f16);if(!_0x183e95[_0x25bf88(0x20c)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x25bf88(0x39c)+_0x2e57f0[_0x25bf88(0x1eb)]+_0x2f3cdb,undefined,{'helpText':_0x25bf88(0x2ed)});process['chdir'](_0x2b0f16);}if(!_0x2e57f0[_0x25bf88(0x3c0)]){if(_0x2e57f0[_0x25bf88(0x330)])_0x2e57f0[_0x25bf88(0x3c0)]=_0x25bf88(0x330);else{if(_0x2e57f0[_0x25bf88(0x2df)])_0x2e57f0[_0x25bf88(0x3c0)]='json';else{if(_0x2e57f0[_0x25bf88(0x2a6)])_0x2e57f0['format']=_0x25bf88(0x2a6);else _0x2e57f0[_0x25bf88(0x3fe)]&&(_0x2e57f0[_0x25bf88(0x3c0)]=_0x25bf88(0x3fe));}}}_0x2e57f0['in']&&!_0x2e57f0[_0x25bf88(0x321)]&&(_0x2e57f0[_0x25bf88(0x321)]=_0x2e57f0['in']);if(_0x2e57f0['trace'])_0x2e57f0[_0x25bf88(0x3e7)]=LogLevel[_0x25bf88(0x39e)];else{if(_0x2e57f0[_0x25bf88(0x352)])_0x2e57f0['logLevel']=LogLevel[_0x25bf88(0x247)];else _0x2e57f0['logLevel']===undefined&&(_0x2e57f0[_0x25bf88(0x3e7)]=LogLevel[_0x25bf88(0x2d4)]);}});async function createTDXInstance(_0x44d550){const _0x5308f4=a2_0x1eae26,_0x4d6c5b=await GlobalContext['createAsync'](_0x44d550);return _0x4d6c5b[_0x5308f4(0x3e6)](_0x44d550),TDX[_0x5308f4(0x2a9)]({'site':_0x4d6c5b[_0x5308f4(0x3f4)],'apiKey':_0x4d6c5b[_0x5308f4(0x278)],'logLevel':_0x4d6c5b['logLevel'],'profile':_0x4d6c5b['profile']});}const databaseCmd=program['command'](a2_0x1eae26(0x321))['alias']('db')[a2_0x1eae26(0x391)]('Database\x20management\x20commands'),databaseListAction=async(_0x292ca4,_0x12e5cb)=>{const _0x2f2a71=a2_0x1eae26,_0x4499c5=new DatabasesCommand(),_0xd418d1=program[_0x2f2a71(0x2a8)](),_0x426869=await createTDXInstance(_0xd418d1),_0x550f49=await _0x4499c5[_0x2f2a71(0x228)]({'options':{..._0xd418d1,..._0x12e5cb},'args':_0x292ca4?[_0x292ca4]:[],'tdx':_0x426869});process[_0x2f2a71(0x201)](_0x550f49);};databaseCmd['command'](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1eae26(0x1ea)](databaseListAction),program['command'](a2_0x1eae26(0x3b3),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x3a4))[a2_0x1eae26(0x1ea)](databaseListAction),program['command'](a2_0x1eae26(0x23f))[a2_0x1eae26(0x391)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option']('--agent\x20<ref>',a2_0x1eae26(0x334))[a2_0x1eae26(0x1f7)]('--new',a2_0x1eae26(0x336))[a2_0x1eae26(0x1ea)](async(_0x538701,_0x16e8cb)=>{const _0x1749e6=a2_0x1eae26,_0x5e9dec=new ChatCommand(),_0x39fea2=program[_0x1749e6(0x2a8)](),_0x2709af=await createTDXInstance(_0x39fea2),_0x237a3d=await _0x5e9dec['run']({'options':{..._0x39fea2,..._0x16e8cb},'args':_0x538701,'tdx':_0x2709af});process[_0x1749e6(0x201)](_0x237a3d);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x1eae26(0x401)](a2_0x1eae26(0x359))[a2_0x1eae26(0x2ef)](a2_0x1eae26(0x296),a2_0x1eae26(0x33c))['option'](a2_0x1eae26(0x235),a2_0x1eae26(0x1e3),a2_0x1eae26(0x20f))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1fe),a2_0x1eae26(0x32b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x357),a2_0x1eae26(0x370))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3d2),a2_0x1eae26(0x2cc),(_0x38e429,_0x49bfd2)=>{return _0x49bfd2?[..._0x49bfd2,_0x38e429]:[_0x38e429];})[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x38f),a2_0x1eae26(0x3e9),'td')[a2_0x1eae26(0x1ea)](async(_0x41002e,_0x22006b)=>{const _0x5c0b6c=a2_0x1eae26;if(!_0x41002e){apiCmd[_0x5c0b6c(0x38c)]();return;}const _0x3d2982=new ApiCommand(),_0x37d912=program[_0x5c0b6c(0x2a8)](),_0xbbc874=await createTDXInstance(_0x37d912),_0x561c07=await _0x3d2982[_0x5c0b6c(0x228)]({'options':{..._0x37d912,..._0x22006b},'args':[_0x41002e],'tdx':_0xbbc874});process[_0x5c0b6c(0x201)](_0x561c07);}),tableCmd=program['command'](a2_0x1eae26(0x330))['description'](a2_0x1eae26(0x28a)),tableListAction=async(_0x5307e8,_0x5e8a17)=>{const _0x33d7c7=a2_0x1eae26,_0x431d5d=new TablesCommand(),_0x5abb49=program[_0x33d7c7(0x2a8)](),_0x3b2840=await createTDXInstance(_0x5abb49);_0x5e8a17['in']&&(_0x5e8a17[_0x33d7c7(0x321)]=_0x5e8a17['in']);const _0x3f4d0a=await _0x431d5d[_0x33d7c7(0x228)]({'options':{..._0x5abb49,..._0x5e8a17},'args':_0x5307e8?[_0x5307e8]:[],'tdx':_0x3b2840});process['exit'](_0x3f4d0a);};tableCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)](a2_0x1eae26(0x23d))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x254),a2_0x1eae26(0x2b7))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1f8),a2_0x1eae26(0x3b7))[a2_0x1eae26(0x1ea)](tableListAction),program['command'](a2_0x1eae26(0x2dd),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x283))['option'](a2_0x1eae26(0x254),a2_0x1eae26(0x2b7))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1f8),a2_0x1eae26(0x3b7))['action'](tableListAction),program[a2_0x1eae26(0x3f0)]('show\x20[table]')[a2_0x1eae26(0x391)](a2_0x1eae26(0x34e))['option'](a2_0x1eae26(0x254),a2_0x1eae26(0x2fb))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1f8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1eae26(0x1ea)](async(_0x132fa5,_0x2bd8a2)=>{const _0x481cab=a2_0x1eae26,_0x24f374=new ShowCommand(),_0x175b8f=program['opts'](),_0x3b08f6=await createTDXInstance(_0x175b8f);_0x2bd8a2['in']&&(_0x2bd8a2[_0x481cab(0x321)]=_0x2bd8a2['in']);const _0x5bd5c0=await _0x24f374[_0x481cab(0x228)]({'options':{..._0x175b8f,..._0x2bd8a2},'args':_0x132fa5?[_0x132fa5]:[],'tdx':_0x3b08f6});process[_0x481cab(0x201)](_0x5bd5c0);}),program['command']('describe\x20[table]')['alias'](a2_0x1eae26(0x1fd))[a2_0x1eae26(0x391)]('Describe\x20table\x20schema')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x254),a2_0x1eae26(0x2fb))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1f8),a2_0x1eae26(0x3b7))[a2_0x1eae26(0x1ea)](async(_0xf9b6a1,_0x547081)=>{const _0x36a2cd=a2_0x1eae26,_0x4345d7=new DescribeCommand(),_0x4e1608=program['opts'](),_0x337f62=await createTDXInstance(_0x4e1608);_0x547081['in']&&(_0x547081[_0x36a2cd(0x321)]=_0x547081['in']);const _0x33ea5a=await _0x4345d7[_0x36a2cd(0x228)]({'options':{..._0x4e1608,..._0x547081},'args':_0xf9b6a1?[_0xf9b6a1]:[],'tdx':_0x337f62});process['exit'](_0x33ea5a);}),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2ea))['description'](a2_0x1eae26(0x3c1))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x254),a2_0x1eae26(0x339))[a2_0x1eae26(0x1f7)]('--in\x20<database>',a2_0x1eae26(0x3b7))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2fa),a2_0x1eae26(0x31e))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x357),'Read\x20SQL\x20query\x20from\x20file')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x347),a2_0x1eae26(0x3dc),'40')[a2_0x1eae26(0x1ea)](async(_0x1641cb,_0x89b4ba)=>{const _0x41ea6d=a2_0x1eae26,_0x4d4e92=new QueryCommand(),_0x2e7f47=program[_0x41ea6d(0x2a8)](),_0x1c6fef=await createTDXInstance(_0x2e7f47);_0x89b4ba['in']&&(_0x89b4ba[_0x41ea6d(0x321)]=_0x89b4ba['in']);const _0x23c650=await _0x4d4e92[_0x41ea6d(0x228)]({'options':{..._0x2e7f47,..._0x89b4ba},'args':_0x1641cb?[_0x1641cb]:[],'tdx':_0x1c6fef});process['exit'](_0x23c650);});const segmentCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x268))[a2_0x1eae26(0x341)]('sg')['description']('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x4eef00,_0x1ef208)=>{const _0x985b4f=a2_0x1eae26,_0x3a4ac1=new SegmentsCommand(),_0x476adf=program[_0x985b4f(0x2a8)](),_0x2d03d1=await createTDXInstance(_0x476adf),_0x3b4174=await _0x3a4ac1[_0x985b4f(0x228)]({'options':{..._0x476adf,..._0x1ef208},'args':_0x4eef00?[_0x4eef00]:[],'tdx':_0x2d03d1});process[_0x985b4f(0x201)](_0x3b4174);};segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x33b))['description'](a2_0x1eae26(0x27e))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2d9),a2_0x1eae26(0x1d7))[a2_0x1eae26(0x1f7)]('--max-depth\x20<depth>',a2_0x1eae26(0x32c),'10')[a2_0x1eae26(0x1f7)]('-w,\x20--web',a2_0x1eae26(0x2c2))['action'](segmentListAction),program[a2_0x1eae26(0x3f0)]('segments\x20[path]',{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x2c0))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2d9),a2_0x1eae26(0x1d7))[a2_0x1eae26(0x1f7)]('--max-depth\x20<depth>',a2_0x1eae26(0x32c),'10')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),'Show\x20web\x20console\x20URLs\x20for\x20segments')[a2_0x1eae26(0x1ea)](segmentListAction),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x22e),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x353))[a2_0x1eae26(0x1ea)](async(_0x560f9d,_0x46a05)=>{const _0x4c8eed=a2_0x1eae26,_0x4c47af=new SegmentUseCommand(),_0x266a93=program[_0x4c8eed(0x2a8)](),_0x113aaa=await createTDXInstance(_0x266a93),_0x2195b8=await _0x4c47af[_0x4c8eed(0x228)]({'options':{..._0x266a93,..._0x46a05},'args':[_0x560f9d],'tdx':_0x113aaa});process[_0x4c8eed(0x201)](_0x2195b8);});const segmentViewAction=async(_0x39b631,_0x564869)=>{const _0x576e84=a2_0x1eae26,_0x554e84=new SegmentViewCommand(),_0x15264e=program['opts'](),_0x5c29ca=await createTDXInstance(_0x15264e),_0x247fe0=await _0x554e84[_0x576e84(0x228)]({'options':{..._0x15264e,..._0x564869},'args':_0x39b631?[_0x39b631]:[],'tdx':_0x5c29ca});process[_0x576e84(0x201)](_0x247fe0);};segmentCmd['command'](a2_0x1eae26(0x2a1))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3c9))['option'](a2_0x1eae26(0x205),'Open\x20segment\x20in\x20web\x20browser')[a2_0x1eae26(0x1ea)](segmentViewAction),segmentCmd[a2_0x1eae26(0x3f0)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x1eae26(0x341)](a2_0x1eae26(0x2e5))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x25f))[a2_0x1eae26(0x391)](a2_0x1eae26(0x382))['action'](segmentViewAction),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3c2))[a2_0x1eae26(0x391)](a2_0x1eae26(0x299))[a2_0x1eae26(0x1ea)](async(_0x43caf9,_0x178557)=>{const _0x31998c=a2_0x1eae26,_0x3478b3=new SegmentDescCommand(),_0x8c2422=program[_0x31998c(0x2a8)](),_0x5e815a=await createTDXInstance(_0x8c2422),_0xe13306=await _0x3478b3[_0x31998c(0x228)]({'options':{..._0x8c2422,..._0x178557},'args':_0x43caf9?[_0x43caf9]:[],'tdx':_0x5e815a});process[_0x31998c(0x201)](_0xe13306);}),segmentCmd[a2_0x1eae26(0x3f0)]('show\x20[segment_name]')['description'](a2_0x1eae26(0x202))[a2_0x1eae26(0x1ea)](async(_0x1a6cfa,_0x252ff7)=>{const _0x368ffd=a2_0x1eae26,_0x112779=new SegmentShowCommand(),_0x4098b6=program[_0x368ffd(0x2a8)](),_0x497515=await createTDXInstance(_0x4098b6),_0x4a246e=await _0x112779['run']({'options':{..._0x4098b6,..._0x252ff7},'args':_0x1a6cfa?[_0x1a6cfa]:[],'tdx':_0x497515});process[_0x368ffd(0x201)](_0x4a246e);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2a5),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x211))['action'](async(_0x3c3f76,_0x2d2fb8)=>{const _0x4e1b4e=a2_0x1eae26,_0x59287a=new SegmentFolderListCommand(),_0x13f07b=program[_0x4e1b4e(0x2a8)](),_0x134ef6=await createTDXInstance(_0x13f07b),_0x1e7862=await _0x59287a['run']({'options':{..._0x13f07b,..._0x2d2fb8},'args':[_0x3c3f76],'tdx':_0x134ef6});process[_0x4e1b4e(0x201)](_0x1e7862);});const folderCmd=segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3ef),{'hidden':!![]})['description'](a2_0x1eae26(0x220));function a2_0x39f8(){const _0x141390=['forEach','list\x20[pattern]','Arguments:','Save\x20output\x20to\x20file','requiredOption','Show\x20job\x20details','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','allowUnknownOption','update\x20<segment_name>','Show\x20agent\x20chat\x20URLs','--parent-segment\x20<name>','--output\x20<file>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Trino\x20catalog\x20(default:\x20td)','usage','user','database','auth','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','98LPwMrZ','Workflow\x20parameter\x20(repeatable)','Show\x20console\x20URLs','error','Directory\x20does\x20not\x20exist:\x20','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Request\x20body\x20as\x20JSON\x20string','Maximum\x20recursion\x20depth\x20(default:\x2010)','isTTY','templates\x20[pattern]','models','table','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--description\x20<text>','port','Agent\x20reference\x20(project-name/agent-name)','--start-at\x20<datetime>','Start\x20a\x20new\x20chat\x20session','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Database\x20to\x20query\x20(default:\x20information_schema)','subcommandDescription','list\x20[path]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--behaviors-file\x20<file>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--master','alias','commands','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--job-type\x20<type>','attempt','catch','--limit\x20<rows>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','712EAiaMX','Workspace\x20name\x20(required)','retry','Parent\x20segment\x20description','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Skip\x20confirmation\x20prompt','validate\x20[name]','debug','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','settings\x20<type>','Update\x20an\x20email\x20template','77124BwnVQL','-f,\x20--file\x20<path>','trino','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--database\x20<name>','Open\x20journey\x20in\x20web\x20browser','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','--project\x20<name>','utf-8','update\x20<name>','claude-4.5-sonnet','llm','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Filtering\x20rule\x20from\x20JSON\x20file','--include-retried','Kill\x20a\x20job','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','workflow','gitRevision','--schedule-type\x20<type>','--revision\x20<revision>','clone\x20[source]','list\x20[project]','Show\x20web\x20console\x20URLs\x20for\x20journeys','argument','Read\x20request\x20body\x20from\x20file','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','New\x20segment\x20name','sonnet','--debug','-n,\x20--name\x20<name>','users','Output\x20directory','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20only\x20master\x20table\x20validation','Read\x20query\x20from\x20file','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--model\x20<name>','sessions\x20[project]','--segment\x20<path>','--add-behaviors-file\x20<file>','-o,\x20--output\x20<dir>','Show\x20segment\x20details\x20(alias\x20for\x20view)','Create\x20a\x20new\x20LLM\x20project','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','validate\x20[file]','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Project\x20description','clear','--no-color','logs','help','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--type\x20<api_type>','Timezone\x20(e.g.,\x20America/Los_Angeles)','description','Resume\x20a\x20paused\x20campaign','use\x20[resource]\x20[value]','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','includes','-1d','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow)','Add\x20behaviors\x20from\x20JSON\x20file','tdx\x20','pull\x20[project]\x20[agent-name]','--type\x20<type>','Path\x20is\x20not\x20a\x20directory:\x20','use\x20<name>','TRACE','subcommandTerm','--no-count-population','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--add-attributes\x20<json>','show\x20<job-id>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','required','parent','--force','optionDescription','Folder\x20name\x20for\x20organization','padEnd','[options]\x20--\x20[claude-code-args...]','Parent\x20segment\x20management','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Workflow\x20session\x20management','Email\x20template\x20management','view\x20[name]','workspaces\x20[pattern]','Show\x20agent\x20details','databases\x20[pattern]','Starter\x20message','run\x20[name]','Master\x20database\x20name','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Revision\x20name\x20(default:\x20timestamp)','-C,\x20--directory\x20<path>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','0.7','Email\x20subject\x20template','build-info.json','parent_segment','format','Run\x20Trino\x20query\x20with\x20streaming\x20results','desc\x20[segment_name]','--attribute\x20[name]','Workflow\x20attempt\x20management','End\x20time\x20filter\x20(ISO\x208601\x20format)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','claude\x20[args...]','Updated\x20description','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','project','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--starter-message\x20<text>','chats','--to\x20<timestamp>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--from\x20<timestamp>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','-H,\x20--header\x20<header>','version','Change\x20to\x20directory\x20before\x20executing\x20command','colorFn','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','stderr','1436nXvYdN','Output\x20as\x20JSON','-p,\x20--profile\x20<name>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','create\x20<segment_name>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','replace','--yes','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','pause\x20<name-or-path>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','injectIntoOptions','logLevel','Campaign\x20name','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--agent\x20<name>','sql\x20[name]','Move\x20to\x20folder','List\x20all\x20users\x20in\x20the\x20account','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','folder','command','use\x20<project-name>','--reason\x20<text>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','site','--session-time\x20<time>','agent','--workspace\x20<name>','Show\x20the\x20most\x20recent\x20chat','Delete\x20an\x20LLM\x20project','--parent-folder\x20<name>','Unknown\x20action:\x20','--status\x20<status>','--rule-file\x20<file>','tsv','slice','template','summary','Pause\x20a\x20running\x20journey','Editor\x20type','isArray','connection','Open\x20parent\x20segment\x20in\x20web\x20browser','profiles','push\x20[project-name-or-dir]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--attributes\x20<json>','Include\x20retried\x20attempts\x20(for\x20list)','New\x20workspace\x20name','-f,\x20--force','_hidden','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','preview\x20[name]','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Job\x20management\x20commands','show\x20[name]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Show\x20email\x20template\x20details','Include\x20retried\x20attempts','3411UYZZHv','use\x20[name]','Model\x20type\x20(default:\x20claude-4.5-sonnet)','action','directory','Create\x20a\x20workspace','List\x20all\x20data\x20connections','--timezone\x20<tz>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','connections','Duplicate\x20a\x20campaign','outputHelp','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','show\x20<name>','--limit\x20<number>','option','--in\x20<database>','Maximum\x20tool\x20iterations\x20(default:\x204)','33gbhmkU','--include-stats','--stage\x20<name>','desc','--data\x20<data>','Email\x20sender\x20ID\x20for\x20delivery','Campaign\x20description','exit','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--limit\x20<n>','Parent\x20folder\x20name\x20for\x20nested\x20folders','-w,\x20--web','us01','Enable\x20verbose\x20logging','829750NiHFGF','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--name\x20<name>','pull\x20[name]','isDirectory','Limit\x20number\x20of\x20rows','Create\x20segment\x20folder','GET','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Launch\x20a\x20campaign','[task-name]','set','create\x20<name>','Show\x20master\x20table\x20sample\x20data','Workspace\x20name','Output\x20folder\x20(default:\x20{project_name}.llm)','campaign','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Pull\x20child\x20segments\x20to\x20YAML\x20files','configureHelp','Customer\x20group\x20as\x20JSON\x20string','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','[DEPRECATED]\x20Segment\x20folder\x20management','Agent\x20name','New\x20template\x20name','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--jsonl','Workspace\x20description','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--table','run','List\x20jobs','--params\x20<json>','map','attempt:','--subject\x20<subject>','use\x20<path>','tdx','commandDescription','--email-sender-id\x20<id>','--param\x20<key=value>','Get\x20job\x20results','--no-proxy','-X,\x20--method\x20<method>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--full','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Update\x20a\x20workspace','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','chat\x20[message...]','parent-segment','--description\x20<desc>','desc\x20[name]','3132096LokUfP','length','--delete','List\x20available\x20connector\x20types','DEBUG','Include\x20subtasks\x20in\x20tasks\x20output','push\x20[target]','delete\x20<name-or-id>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--skip-validation','Add\x20attributes\x20from\x20JSON\x20file','then','\x20-\x20built\x20','Attributes\x20from\x20JSON\x20file','duplicate\x20<name-or-id>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','HTML\x20template\x20content','-d,\x20--database\x20<database>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--llm-project\x20<name>','noColor','kill','restore\x20<folder>','Create\x20an\x20email\x20template','Pause\x20a\x20campaign','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Push\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style:\x20cd\x20into\x20project,\x20then\x20push\x20<name>)','--add-behaviors\x20<json>','Open\x20segment\x20in\x20web\x20browser','Setup\x20API\x20key\x20authentication\x20interactively','1592yFufYl','Submit\x20a\x20job','join','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','87690TVdexJ','--name\x20<text>','Show\x20stats\x20for\x20specific\x20stage','segment','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Workflow\x20(Digdag)\x20management\x20commands','788vbXlUO','Interactive\x20chat\x20selector','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Task\x20name\x20for\x20logs\x20action','aliases','argv','--format\x20<format>','--trace','--kind\x20<type>','Overwrite\x20local\x20changes\x20without\x20confirmation','Behaviors\x20from\x20JSON\x20file','Show\x20journey\x20statistics','Show\x20connection\x20details\x20by\x20name','apiKey','fields\x20[parent_name]','Plaintext\x20template\x20content','Preview\x20operation\x20without\x20executing','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','--json-columns\x20<cols>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Campaign\x20type\x20(email\x20or\x20push)','activations\x20<segment_name>','--dry-run','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','run\x20<workflow>','--from-task\x20<task>','Attributes\x20as\x20JSON\x20string','update\x20<name-or-id>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--editor-type\x20<type>','Table\x20management\x20commands','Include\x20execution\x20statistics','Resume\x20from\x20specific\x20task','buildTime','Remove\x20API\x20key\x20from\x20system\x20keychain','--timeout\x20<seconds>','journey','--last','statusline','setup','Push\x20without\x20confirmation','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','after','sql\x20[segment_name]','--rule\x20<json>','Show\x20segment\x20schema\x20(column\x20types)','--plaintext\x20<text>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','stats\x20<name-or-path>','INVALID_ARGUMENT','--html\x20<html>','push\x20[file]','view\x20[segment_name]','-y,\x20--yes','-o,\x20--output\x20<file>','push','folders\x20<parent_name>','jsonl','List\x20all\x20available\x20profiles','opts','create','information_schema','Output\x20as\x20JSON\x20Lines','Commands:','List\x20available\x20LLM\x20models','Updated\x20timezone','Folder\x20description','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','argumentDescription','New\x20campaign\x20name','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','list','launch\x20<name-or-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','-r,\x20--resume','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Options:','--clear','--database\x20<db>','registeredArguments','--version','Action:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Update\x20an\x20existing\x20agent','Show\x20web\x20console\x20URLs\x20for\x20segments','--behavior\x20[name]','--max-tool-iterations\x20<n>','allowExcessArguments','Skip\x20confirmation\x20prompts','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','-v,\x20--verbose','Set\x20operation\x20timeout\x20in\x20seconds','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','push\x20[name]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Filtering\x20rule\x20as\x20JSON\x20string','resume\x20<name-or-id>','--folder\x20<name>','--json','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','-u,\x20--use','parse','INFO','push\x20[parent_or_file]','submit\x20[query]','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','history\x20[chat-id]','-r,\x20--recursive','backup\x20<name>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','attempts\x20[project]','tables\x20[pattern]','Add\x20attributes\x20as\x20JSON\x20string','json','Make\x20segment\x20invisible\x20(default:\x20visible)','LLM\x20project\x20management','JSON\x20columns\x20for\x20connector\x20(comma-separated)','proxy','agents\x20[pattern]','describe','hidden','-o,\x20--output\x20<folder>','--name\x20<new-name>','Authentication\x20management','query\x20[sql]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','flatMap','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','projects\x20[pattern]','addHelpText','--enriched','retry\x20<session-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--customer-group-file\x20<file>','.dev','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','hook','Delete\x20an\x20agent','Add\x20behaviors\x20as\x20JSON\x20string','show\x20<folder_ref>','--catalog\x20<catalog>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','schema\x20<type>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','--site\x20<site>','Delete\x20an\x20email\x20template','--schedule-option\x20<value>','session','delete\x20<name>','pull\x20[parent_or_file]','List\x20journeys\x20in\x20current\x20context','Update\x20a\x20campaign','commandUsage','Usage:\x20','--interval\x20<range>','Clear\x20session\x20context','Override\x20project\x20name','download\x20<project-name>\x20[output-dir]','Create\x20a\x20new\x20campaign','name','1761wwLzQS','filter','CDP\x20Journey\x20Orchestration\x20commands'];a2_0x39f8=function(){return _0x141390;};return a2_0x39f8();}folderCmd['command'](a2_0x1eae26(0x2f9))[a2_0x1eae26(0x391)](a2_0x1eae26(0x324))[a2_0x1eae26(0x1ea)](async(_0x2eeb2e,_0x516c4b)=>{const _0x2dc04d=a2_0x1eae26,_0x4374e3=new SegmentFolderShowCommand(),_0x968f81=program[_0x2dc04d(0x2a8)](),_0x474330=await createTDXInstance(_0x968f81),_0x16c561=await _0x4374e3[_0x2dc04d(0x228)]({'options':{..._0x968f81,..._0x516c4b},'args':[_0x2eeb2e],'tdx':_0x474330});process[_0x2dc04d(0x201)](_0x16c561);}),segmentCmd['command'](a2_0x1eae26(0x297))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2d7))[a2_0x1eae26(0x1ea)](async(_0x1f53e9,_0xd56870)=>{const _0x35b350=a2_0x1eae26,_0x3c4a73=new SegmentSQLCommand(),_0x375ac5=program['opts'](),_0x3daf4e=await createTDXInstance(_0x375ac5),_0x1d263e=await _0x3c4a73[_0x35b350(0x228)]({'options':{..._0x375ac5,..._0xd56870},'args':_0x1f53e9?[_0x1f53e9]:[],'tdx':_0x3daf4e});process[_0x35b350(0x201)](_0x1d263e);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x279))[a2_0x1eae26(0x391)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x1eae26(0x1ea)](async(_0x3c8f2c,_0x10efd0)=>{const _0x987c63=a2_0x1eae26,_0x5bfc9b=new SegmentFieldsCommand(),_0x7d036d=program['opts'](),_0x53e799=await createTDXInstance(_0x7d036d),_0xd966c1=await _0x5bfc9b[_0x987c63(0x228)]({'options':{..._0x7d036d,..._0x10efd0},'args':_0x3c8f2c?[_0x3c8f2c]:[],'tdx':_0x53e799});process[_0x987c63(0x201)](_0xd966c1);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x303))['description'](a2_0x1eae26(0x21b))['option'](a2_0x1eae26(0x2a2),a2_0x1eae26(0x2c6))['option'](a2_0x1eae26(0x281),a2_0x1eae26(0x3bb))['action'](async(_0x29963d,_0x945f99)=>{const _0x4747f7=a2_0x1eae26,_0x5d221b=new SegmentPullCommand(),_0xa5b339=program[_0x4747f7(0x2a8)](),_0x5e20ee=await createTDXInstance(_0xa5b339),_0x21848c=await _0x5d221b[_0x4747f7(0x228)]({'options':{..._0xa5b339,..._0x945f99},'args':_0x29963d?[_0x29963d]:[],'tdx':_0x5e20ee});process['exit'](_0x21848c);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2d5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x255))['option'](a2_0x1eae26(0x2a2),a2_0x1eae26(0x2c6))['option'](a2_0x1eae26(0x281),a2_0x1eae26(0x3bb))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x245),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x1eae26(0x1ea)](async(_0x5076a1,_0x42918a)=>{const _0x27573f=a2_0x1eae26,_0x36d18e=new SegmentPushCommand(),_0x48d834=program[_0x27573f(0x2a8)](),_0x3726a4=await createTDXInstance(_0x48d834),_0xdd73f3=await _0x36d18e['run']({'options':{..._0x48d834,..._0x42918a},'args':_0x5076a1?[_0x5076a1]:[],'tdx':_0x3726a4});process[_0x27573f(0x201)](_0xdd73f3);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3dd),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x264))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x332),'Segment\x20description')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x298),a2_0x1eae26(0x2cd))['option']('--rule-file\x20<file>',a2_0x1eae26(0x363))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2cf),a2_0x1eae26(0x3a9))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x273),a2_0x1eae26(0x2db))[a2_0x1eae26(0x1f7)]('--invisible',a2_0x1eae26(0x2e0))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3a0),'Skip\x20population\x20counting')[a2_0x1eae26(0x1ea)](async(_0x4ed00d,_0x126f75)=>{const _0x5f4710=a2_0x1eae26,_0x41eb4e=new SegmentCreateCommand(),_0x56bf61=program[_0x5f4710(0x2a8)](),_0x44de0e=await createTDXInstance(_0x56bf61),_0x158a4e=await _0x41eb4e[_0x5f4710(0x228)]({'options':{..._0x56bf61,..._0x126f75},'args':[_0x4ed00d],'tdx':_0x44de0e});process['exit'](_0x158a4e);}),segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x319),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x379))[a2_0x1eae26(0x1f7)]('--name\x20<new_name>',a2_0x1eae26(0x373))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x332),a2_0x1eae26(0x3c8))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x298),a2_0x1eae26(0x2b9))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3fd),a2_0x1eae26(0x3d1))[a2_0x1eae26(0x1f7)]('--folder\x20<name>',a2_0x1eae26(0x3ec))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x273),a2_0x1eae26(0x2db))['action'](async(_0x3af800,_0xf44833)=>{const _0x579932=a2_0x1eae26,_0x1512c9=new SegmentUpdateCommand(),_0x1a35df=program[_0x579932(0x2a8)](),_0x1eb56c=await createTDXInstance(_0x1a35df),_0x56e39c=await _0x1512c9['run']({'options':{..._0x1a35df,..._0xf44833},'args':[_0x3af800],'tdx':_0x1eb56c});process[_0x579932(0x201)](_0x56e39c);});const parentCmd=segmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3a6),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x387)),parentListAction=async(_0x5ba253,_0x675d56)=>{const _0x3095b8=a2_0x1eae26,_0x4a08d1=new ParentSegmentListCommand(),_0x14f421=program[_0x3095b8(0x2a8)](),_0x49a8d8=await createTDXInstance(_0x14f421),_0x3ee29f=await _0x4a08d1[_0x3095b8(0x228)]({'options':{..._0x14f421,..._0x675d56},'args':_0x5ba253?[_0x5ba253]:[],'tdx':_0x49a8d8});process[_0x3095b8(0x201)](_0x3ee29f);};parentCmd['command'](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x1eae26(0x1ea)](parentListAction),segmentCmd[a2_0x1eae26(0x3f0)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x2ca))[a2_0x1eae26(0x1ea)](parentListAction),parentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x20b))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2c7))[a2_0x1eae26(0x1f7)]('-o,\x20--output\x20<file>',a2_0x1eae26(0x384))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2a2),a2_0x1eae26(0x350))[a2_0x1eae26(0x1ea)](async(_0xdec5bb,_0x17fb62)=>{const _0x5f7627=a2_0x1eae26,_0x37c7ef=new ParentSegmentPullCommand(),_0x2fcfd4=program[_0x5f7627(0x2a8)](),_0x49dd51=await createTDXInstance(_0x2fcfd4),_0xe1c493=await _0x37c7ef[_0x5f7627(0x228)]({'options':{..._0x2fcfd4,..._0x17fb62},'args':_0xdec5bb?[_0xdec5bb]:[],'tdx':_0x49dd51});process[_0x5f7627(0x201)](_0xe1c493);}),parentCmd['command'](a2_0x1eae26(0x2a0))[a2_0x1eae26(0x391)](a2_0x1eae26(0x288))[a2_0x1eae26(0x1f7)]('-y,\x20--yes',a2_0x1eae26(0x350))['action'](async(_0x4018a2,_0x8b88d2)=>{const _0x347525=a2_0x1eae26,_0x531632=new ParentSegmentPushCommand(),_0x132467=program[_0x347525(0x2a8)](),_0x286fa7=await createTDXInstance(_0x132467),_0x4f07ad=await _0x531632[_0x347525(0x228)]({'options':{..._0x132467,..._0x8b88d2},'args':_0x4018a2?[_0x4018a2]:[],'tdx':_0x286fa7});process['exit'](_0x4f07ad);}),parentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x386))[a2_0x1eae26(0x391)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x340),a2_0x1eae26(0x37a))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3c3),a2_0x1eae26(0x3e5))['option']('--behavior\x20[name]',a2_0x1eae26(0x282))[a2_0x1eae26(0x1f7)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')['option'](a2_0x1eae26(0x308),a2_0x1eae26(0x23e),a2_0x1eae26(0x396))[a2_0x1eae26(0x1ea)](async(_0xbc63ee,_0x56937f)=>{const _0x40f904=a2_0x1eae26,_0x286051=new ParentSegmentValidateCommand(),_0x4fdf8b=program[_0x40f904(0x2a8)](),_0x3b8836=await createTDXInstance(_0x4fdf8b),_0x123649=await _0x286051[_0x40f904(0x228)]({'options':{..._0x4fdf8b,..._0x56937f},'args':_0xbc63ee?[_0xbc63ee]:[],'tdx':_0x3b8836});process[_0x40f904(0x201)](_0x123649);}),parentCmd['command']('preview\x20[file]')[a2_0x1eae26(0x391)](a2_0x1eae26(0x348))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x340),a2_0x1eae26(0x216))[a2_0x1eae26(0x1f7)]('--attribute\x20[name]',a2_0x1eae26(0x3d7))[a2_0x1eae26(0x1f7)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option']('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x308),a2_0x1eae26(0x23e),a2_0x1eae26(0x396))[a2_0x1eae26(0x1ea)](async(_0x13188a,_0x2df55e)=>{const _0x3cbd7c=a2_0x1eae26,_0x121b4a=new ParentSegmentPreviewCommand(),_0x48ec40=program[_0x3cbd7c(0x2a8)](),_0x12f5f1=await createTDXInstance(_0x48ec40),_0x22e56c=await _0x121b4a['run']({'options':{..._0x48ec40,..._0x2df55e},'args':_0x13188a?[_0x13188a]:[],'tdx':_0x12f5f1});process[_0x3cbd7c(0x201)](_0x22e56c);}),parentCmd['command'](a2_0x1eae26(0x3b5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x237))[a2_0x1eae26(0x1f7)]('-y,\x20--yes',a2_0x1eae26(0x350))[a2_0x1eae26(0x1ea)](async(_0x13c007,_0x3d363e)=>{const _0x535509=a2_0x1eae26,_0x597dad=new ParentSegmentRunCommand(),_0xb3cb27=program[_0x535509(0x2a8)](),_0x4fb9ce=await createTDXInstance(_0xb3cb27),_0x2ef217=await _0x597dad['run']({'options':{..._0xb3cb27,..._0x3d363e},'args':_0x13c007?[_0x13c007]:[],'tdx':_0x4fb9ce});process[_0x535509(0x201)](_0x2ef217);});const parentSegmentCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x240))['alias']('ps')[a2_0x1eae26(0x391)](a2_0x1eae26(0x3ac));parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x312))['description'](a2_0x1eae26(0x2d1))[a2_0x1eae26(0x1ea)](parentListAction),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x20b))[a2_0x1eae26(0x391)](a2_0x1eae26(0x1dd))['option'](a2_0x1eae26(0x2a3),'Output\x20file\x20path')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2a2),a2_0x1eae26(0x350))['option'](a2_0x1eae26(0x2d2),a2_0x1eae26(0x38d))[a2_0x1eae26(0x1ea)](async(_0xf6c050,_0x1cf837)=>{const _0xd80751=a2_0x1eae26,_0x447b7f=new ParentSegmentPullCommand(),_0x1765ae=program[_0xd80751(0x2a8)](),_0x37dd67=await createTDXInstance(_0x1765ae),_0x195e5a=await _0x447b7f[_0xd80751(0x228)]({'options':{..._0x1765ae,..._0x1cf837},'args':_0xf6c050?[_0xf6c050]:[],'tdx':_0x37dd67});process['exit'](_0x195e5a);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2cb))[a2_0x1eae26(0x391)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2a2),a2_0x1eae26(0x350))[a2_0x1eae26(0x1ea)](async(_0x1dba33,_0x51fecd)=>{const _0x531664=a2_0x1eae26,_0x43fb94=new ParentSegmentPushCommand(),_0x5ee418=program[_0x531664(0x2a8)](),_0x2c37fc=await createTDXInstance(_0x5ee418),_0x3fc419=await _0x43fb94[_0x531664(0x228)]({'options':{..._0x5ee418,..._0x51fecd},'args':_0x1dba33?[_0x1dba33]:[],'tdx':_0x2c37fc});process[_0x531664(0x201)](_0x3fc419);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x351))[a2_0x1eae26(0x391)](a2_0x1eae26(0x394))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x340),a2_0x1eae26(0x37a))['option'](a2_0x1eae26(0x3c3),a2_0x1eae26(0x3e5))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2c3),a2_0x1eae26(0x282))[a2_0x1eae26(0x1f7)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x308),a2_0x1eae26(0x23e),a2_0x1eae26(0x396))[a2_0x1eae26(0x1ea)](async(_0x566822,_0x354cc4)=>{const _0x4f71e3=a2_0x1eae26,_0x332650=new ParentSegmentValidateCommand(),_0x40d11a=program['opts'](),_0x1b499b=await createTDXInstance(_0x40d11a),_0x47576c=await _0x332650[_0x4f71e3(0x228)]({'options':{..._0x40d11a,..._0x354cc4},'args':_0x566822?[_0x566822]:[],'tdx':_0x1b499b});process[_0x4f71e3(0x201)](_0x47576c);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1df))[a2_0x1eae26(0x391)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x1eae26(0x340),a2_0x1eae26(0x216))['option'](a2_0x1eae26(0x3c3),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2c3),a2_0x1eae26(0x21f))['option'](a2_0x1eae26(0x2f0),a2_0x1eae26(0x33f))['option'](a2_0x1eae26(0x308),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x5d4642,_0x45708b)=>{const _0x16ed2f=a2_0x1eae26,_0x1861da=new ParentSegmentPreviewCommand(),_0x427ef9=program[_0x16ed2f(0x2a8)](),_0x37f464=await createTDXInstance(_0x427ef9),_0x2ebf04=await _0x1861da[_0x16ed2f(0x228)]({'options':{..._0x427ef9,..._0x45708b},'args':_0x5d4642?[_0x5d4642]:[],'tdx':_0x37f464});process[_0x16ed2f(0x201)](_0x2ebf04);}),parentSegmentCmd['command']('run\x20[name]')['description'](a2_0x1eae26(0x237))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2a2),a2_0x1eae26(0x350))['action'](async(_0x3d63b9,_0x194198)=>{const _0x5eee35=a2_0x1eae26,_0x2f2e1a=new ParentSegmentRunCommand(),_0x4d8484=program[_0x5eee35(0x2a8)](),_0x410853=await createTDXInstance(_0x4d8484),_0x2da0ab=await _0x2f2e1a['run']({'options':{..._0x4d8484,..._0x194198},'args':_0x3d63b9?[_0x3d63b9]:[],'tdx':_0x410853});process['exit'](_0x2da0ab);}),parentSegmentCmd[a2_0x1eae26(0x3f0)]('fields\x20[name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1eae26(0x1f7)]('--json',a2_0x1eae26(0x3da))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x224),a2_0x1eae26(0x2ab))[a2_0x1eae26(0x1ea)](async(_0x5cda23,_0x1b260c)=>{const _0x31d5e7=a2_0x1eae26,_0x452c5d=new ParentSegmentFieldsCommand(),_0x4c486a=program[_0x31d5e7(0x2a8)](),_0x54ea16=await createTDXInstance(_0x4c486a),_0x495507=await _0x452c5d['run']({'options':{..._0x4c486a,..._0x1b260c},'args':_0x5cda23?[_0x5cda23]:[],'tdx':_0x54ea16});process[_0x31d5e7(0x201)](_0x495507);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3b0))['description'](a2_0x1eae26(0x34f))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x1d4))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2d0),a2_0x1eae26(0x3da))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x224),a2_0x1eae26(0x2ab))[a2_0x1eae26(0x1ea)](async(_0x2219cd,_0x36d17f)=>{const _0x74233f=a2_0x1eae26,_0x1d9ffa=new ParentSegmentViewCommand(),_0x54880a=program[_0x74233f(0x2a8)](),_0x12c2cb=await createTDXInstance(_0x54880a),_0x573f94=await _0x1d9ffa[_0x74233f(0x228)]({'options':{..._0x54880a,..._0x36d17f},'args':_0x2219cd?[_0x2219cd]:[],'tdx':_0x12c2cb});process[_0x74233f(0x201)](_0x573f94);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x242))[a2_0x1eae26(0x391)](a2_0x1eae26(0x33d))[a2_0x1eae26(0x1f7)]('--json',a2_0x1eae26(0x3da))[a2_0x1eae26(0x1f7)]('--jsonl',a2_0x1eae26(0x2ab))[a2_0x1eae26(0x1ea)](async(_0x224194,_0x41cc48)=>{const _0x35b8ac=a2_0x1eae26,_0x554cd6=new ParentSegmentDescCommand(),_0x476417=program['opts'](),_0xbd3c2d=await createTDXInstance(_0x476417),_0x2649e7=await _0x554cd6[_0x35b8ac(0x228)]({'options':{..._0x476417,..._0x41cc48},'args':_0x224194?[_0x224194]:[],'tdx':_0xbd3c2d});process[_0x35b8ac(0x201)](_0x2649e7);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3eb))[a2_0x1eae26(0x391)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1eae26(0x1f7)]('--json',a2_0x1eae26(0x3da))['option'](a2_0x1eae26(0x224),'Output\x20as\x20JSON\x20Lines')[a2_0x1eae26(0x1ea)](async(_0x10ca46,_0x27d7cc)=>{const _0x4b1700=a2_0x1eae26,_0xaf6662=new ParentSegmentSQLCommand(),_0x24a36d=program['opts'](),_0x155b00=await createTDXInstance(_0x24a36d),_0x233fc3=await _0xaf6662[_0x4b1700(0x228)]({'options':{..._0x24a36d,..._0x27d7cc},'args':_0x10ca46?[_0x10ca46]:[],'tdx':_0x155b00});process[_0x4b1700(0x201)](_0x233fc3);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1e2))[a2_0x1eae26(0x391)](a2_0x1eae26(0x21e))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x203),a2_0x1eae26(0x20d))[a2_0x1eae26(0x1f7)]('--json',a2_0x1eae26(0x3da))['option']('--jsonl',a2_0x1eae26(0x2ab))['action'](async(_0x40a4b7,_0x549ea9)=>{const _0x3c7175=a2_0x1eae26,_0x41bb37=new ParentSegmentShowCommand(),_0x4a58c3=program[_0x3c7175(0x2a8)](),_0xf82826=await createTDXInstance(_0x4a58c3),_0xd1a66=await _0x41bb37[_0x3c7175(0x228)]({'options':{..._0x4a58c3,..._0x549ea9},'args':_0x40a4b7?[_0x40a4b7]:[],'tdx':_0xf82826});process['exit'](_0xd1a66);}),parentSegmentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1e8))['description']('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x1eae26(0x1ea)](async(_0x444b2f,_0x4f45c0)=>{const _0x4ade80=a2_0x1eae26,_0x260fc9=new UseCommand(),_0x3ab64d=program[_0x4ade80(0x2a8)](),_0x4a2f75=_0x444b2f?[_0x4ade80(0x3bf),_0x444b2f]:[],_0x5d0ed2=await _0x260fc9[_0x4ade80(0x228)]({'options':{..._0x3ab64d,..._0x4f45c0},'args':_0x4a2f75,'tdx':null});process['exit'](_0x5d0ed2);}),parentCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x215))['description'](a2_0x1eae26(0x21a))['requiredOption'](a2_0x1eae26(0x2bc),a2_0x1eae26(0x3b6))[a2_0x1eae26(0x315)]('--table\x20<table>','Master\x20table\x20name')[a2_0x1eae26(0x1f7)]('--description\x20<text>',a2_0x1eae26(0x34c))['option']('--schedule-type\x20<type>',a2_0x1eae26(0x1ef))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x300),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1ee),a2_0x1eae26(0x390))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1d8),a2_0x1eae26(0x286))[a2_0x1eae26(0x1f7)]('--attributes-file\x20<file>',a2_0x1eae26(0x250))['option']('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x33e),a2_0x1eae26(0x275))[a2_0x1eae26(0x1f7)]('--customer-group\x20<json>',a2_0x1eae26(0x21d))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2f3),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x1eae26(0x1ea)](async(_0x170049,_0x211033)=>{const _0x38d711=a2_0x1eae26,_0x193fce=new ParentSegmentCreateCommand(),_0x3a9c38=program[_0x38d711(0x2a8)](),_0x3746b4=await createTDXInstance(_0x3a9c38),_0x5a09f5=await _0x193fce[_0x38d711(0x228)]({'options':{..._0x3a9c38,..._0x211033},'args':[_0x170049],'tdx':_0x3746b4});process['exit'](_0x5a09f5);}),parentCmd['command'](a2_0x1eae26(0x35f))[a2_0x1eae26(0x391)](a2_0x1eae26(0x252))[a2_0x1eae26(0x1f7)]('--description\x20<text>','Updated\x20description')['option'](a2_0x1eae26(0x36a),a2_0x1eae26(0x2b0))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x300),'Updated\x20schedule\x20option')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1ee),a2_0x1eae26(0x2ae))['option'](a2_0x1eae26(0x3a2),a2_0x1eae26(0x2de))[a2_0x1eae26(0x1f7)]('--add-attributes-file\x20<file>',a2_0x1eae26(0x24d))['option'](a2_0x1eae26(0x25e),a2_0x1eae26(0x2f8))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x380),a2_0x1eae26(0x398))[a2_0x1eae26(0x1ea)](async(_0x11ae58,_0xa30156)=>{const _0x3787df=a2_0x1eae26,_0x3d908e=new ParentSegmentUpdateCommand(),_0x44792e=program[_0x3787df(0x2a8)](),_0x47d3ae=await createTDXInstance(_0x44792e),_0x57e69f=await _0x3d908e[_0x3787df(0x228)]({'options':{..._0x44792e,..._0xa30156},'args':[_0x11ae58],'tdx':_0x47d3ae});process[_0x3787df(0x201)](_0x57e69f);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')['description'](a2_0x1eae26(0x20e))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x332),a2_0x1eae26(0x2af))['option'](a2_0x1eae26(0x3fa),a2_0x1eae26(0x204))[a2_0x1eae26(0x1ea)](async(_0xbeeb4d,_0x2a38fb,_0x144452)=>{const _0x46cbe4=a2_0x1eae26,_0x33a686=new SegmentFolderCreateCommand(),_0x39d5e0=program[_0x46cbe4(0x2a8)](),_0x3a48ca=await createTDXInstance(_0x39d5e0),_0x5b3582=await _0x33a686[_0x46cbe4(0x228)]({'options':{..._0x39d5e0,..._0x144452},'args':[_0xbeeb4d,_0x2a38fb],'tdx':_0x3a48ca});process[_0x46cbe4(0x201)](_0x5b3582);}),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x280))[a2_0x1eae26(0x391)](a2_0x1eae26(0x29b))[a2_0x1eae26(0x1ea)](async(_0x2d4109,_0x512c93)=>{const _0x2d813c=a2_0x1eae26,_0x21cdf1=new ActivationsCommand(),_0x213953=program['opts'](),_0x28cd6e=await createTDXInstance(_0x213953),_0xa17de9=await _0x21cdf1[_0x2d813c(0x228)]({'options':{..._0x213953,..._0x512c93},'args':[_0x2d4109],'tdx':_0x28cd6e});process[_0x2d813c(0x201)](_0xa17de9);});const workflowCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x368))[a2_0x1eae26(0x341)]('wf')[a2_0x1eae26(0x391)](a2_0x1eae26(0x26a)),wfProjectCmd=workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3ca))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x2dedf7,_0x2b0176)=>{const _0x3dad46=a2_0x1eae26,_0x59c406=new WorkflowProjectsCommand(),_0x265337=program[_0x3dad46(0x2a8)](),_0x313d9f=await createTDXInstance(_0x265337),_0x54e844=await _0x59c406['run']({'options':{..._0x265337,..._0x2b0176},'args':_0x2dedf7?[_0x2dedf7]:[],'tdx':_0x313d9f});process['exit'](_0x54e844);};wfProjectCmd['command'](a2_0x1eae26(0x312))['description']('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1eae26(0x1ea)](wfProjectListAction),workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2ee))[a2_0x1eae26(0x391)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1eae26(0x1ea)](wfProjectListAction);const wfWorkflowListAction=async(_0x5ce8ea,_0x5c5db7)=>{const _0x4a82ca=a2_0x1eae26,_0x43fdbc=new WorkflowWorkflowsCommand(),_0x832403=program[_0x4a82ca(0x2a8)](),_0x207f20=await createTDXInstance(_0x832403),_0x2fa4d4=await _0x43fdbc[_0x4a82ca(0x228)]({'options':{..._0x832403,..._0x5c5db7},'args':_0x5ce8ea?[_0x5ce8ea]:[],'tdx':_0x207f20});process[_0x4a82ca(0x201)](_0x2fa4d4);};workflowCmd['command']('workflows\x20[project]')[a2_0x1eae26(0x391)](a2_0x1eae26(0x1e4))[a2_0x1eae26(0x1ea)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x1eae26(0x301))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3ae)),wfSessionListAction=async(_0x550501,_0x23132a)=>{const _0x5f4f75=a2_0x1eae26,_0x25dddd=new WorkflowSessionsCommand(),_0x77bf57=program['opts'](),_0x75d637=await createTDXInstance(_0x77bf57),_0x50b21b=await _0x25dddd['run']({'options':{..._0x77bf57,..._0x23132a},'args':_0x550501?[_0x550501]:[],'tdx':_0x75d637});process[_0x5f4f75(0x201)](_0x50b21b);};wfSessionCmd['command'](a2_0x1eae26(0x36d))[a2_0x1eae26(0x391)](a2_0x1eae26(0x32a))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3fc),a2_0x1eae26(0x367))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3d0),a2_0x1eae26(0x24b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3ce),a2_0x1eae26(0x3c5))[a2_0x1eae26(0x1ea)](wfSessionListAction),workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x37e))[a2_0x1eae26(0x391)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x1eae26(0x1f7)]('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3d0),a2_0x1eae26(0x24b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3ce),a2_0x1eae26(0x3c5))[a2_0x1eae26(0x1ea)](wfSessionListAction);const wfAttemptListAction=async(_0x560a1e,_0x4bed20)=>{const _0x556471=a2_0x1eae26,_0x32dde5=new WorkflowAttemptsCommand(),_0x10bb8e=program[_0x556471(0x2a8)](),_0x5b948c=await createTDXInstance(_0x10bb8e),_0x51494b=await _0x32dde5['run']({'options':{..._0x10bb8e,..._0x4bed20},'args':_0x560a1e?[_0x560a1e]:[],'tdx':_0x5b948c});process[_0x556471(0x201)](_0x51494b);},attemptCmd=workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x345))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3c4))[a2_0x1eae26(0x36f)]('[attempt-id]','Attempt\x20ID')[a2_0x1eae26(0x36f)]('[action]',a2_0x1eae26(0x2bf))[a2_0x1eae26(0x36f)](a2_0x1eae26(0x213),a2_0x1eae26(0x26e))[a2_0x1eae26(0x1f7)]('--include-subtasks',a2_0x1eae26(0x248))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f2),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x1eae26(0x1f7)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(retry)')['option']('--params\x20<json>',a2_0x1eae26(0x23a))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3a7),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x1eae26(0x364),a2_0x1eae26(0x1d9))['action'](async(_0x5aa6a2,_0x204faa,_0x5493a9,_0x519696)=>{const _0x25bebe=a2_0x1eae26;if(_0x5aa6a2===_0x25bebe(0x2b5)){await wfAttemptListAction(_0x204faa,_0x519696);return;}if(!_0x5aa6a2){attemptCmd[_0x25bebe(0x38c)]();return;}const _0x3e6b99=program[_0x25bebe(0x2a8)](),_0x9b4ab5=await createTDXInstance(_0x3e6b99);let _0xfd09f3=0x0;if(!_0x204faa){const _0x49b49e=new WorkflowAttemptCommand();_0xfd09f3=await _0x49b49e[_0x25bebe(0x228)]({'options':{..._0x3e6b99,..._0x519696},'args':[_0x5aa6a2],'tdx':_0x9b4ab5});}else{if(_0x204faa===_0x25bebe(0x38b)){const _0x32f3a9=new WorkflowLogsCommand();_0xfd09f3=await _0x32f3a9[_0x25bebe(0x228)]({'options':{..._0x3e6b99,..._0x519696},'args':_0x5493a9?[_0x5aa6a2,_0x5493a9]:[_0x5aa6a2],'tdx':_0x9b4ab5});}else{if(_0x204faa==='tasks'){const _0x39890e=new WorkflowTasksCommand();_0xfd09f3=await _0x39890e[_0x25bebe(0x228)]({'options':{..._0x3e6b99,..._0x519696},'args':[_0x5aa6a2],'tdx':_0x9b4ab5});}else{if(_0x204faa===_0x25bebe(0x258)){const _0x2978f3=new WorkflowKillCommand();_0xfd09f3=await _0x2978f3[_0x25bebe(0x228)]({'options':{..._0x3e6b99,..._0x519696},'args':[_0x5aa6a2],'tdx':_0x9b4ab5});}else{if(_0x204faa===_0x25bebe(0x34b)){const _0x52fc48=new WorkflowRetryCommand();_0xfd09f3=await _0x52fc48[_0x25bebe(0x228)]({'options':{..._0x3e6b99,..._0x519696},'args':[_0x25bebe(0x22c)+_0x5aa6a2],'tdx':_0x9b4ab5});}else console[_0x25bebe(0x328)](_0x25bebe(0x3fb)+_0x204faa),console['error'](_0x25bebe(0x34d)),_0xfd09f3=0x1;}}}}process[_0x25bebe(0x201)](_0xfd09f3);});attemptCmd['command'](a2_0x1eae26(0x36d))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3d6))['option'](a2_0x1eae26(0x364),a2_0x1eae26(0x1e6))[a2_0x1eae26(0x1ea)](wfAttemptListAction),workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2dc))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x364),a2_0x1eae26(0x1e6))[a2_0x1eae26(0x1ea)](wfAttemptListAction),workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2f1))[a2_0x1eae26(0x391)](a2_0x1eae26(0x27c))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x285),a2_0x1eae26(0x28c))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x22a),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x1eae26(0x1ea)](async(_0x57a520,_0x260484)=>{const _0x4ff717=a2_0x1eae26,_0x20c9b4=new WorkflowRetryCommand(),_0x361513=program[_0x4ff717(0x2a8)](),_0x683058=await createTDXInstance(_0x361513),_0x2e0275=await _0x20c9b4[_0x4ff717(0x228)]({'options':{..._0x361513,..._0x260484},'args':[_0x57a520],'tdx':_0x683058});process[_0x4ff717(0x201)](_0x2e0275);}),workflowCmd['command'](a2_0x1eae26(0x284))[a2_0x1eae26(0x391)](a2_0x1eae26(0x397))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x232),a2_0x1eae26(0x326),(_0x1e2959,_0x131dfd=[])=>[..._0x131dfd,_0x1e2959],[])[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f5),a2_0x1eae26(0x338))[a2_0x1eae26(0x1ea)](async(_0xa6aa33,_0x487fb1)=>{const _0x4632fa=a2_0x1eae26,_0x175c4c=new WorkflowRunCommand(),_0x3fc612=program[_0x4632fa(0x2a8)](),_0x7f6725=await createTDXInstance(_0x3fc612),_0x1888e3=await _0x175c4c[_0x4632fa(0x228)]({'options':{..._0x3fc612,..._0x487fb1},'args':[_0xa6aa33],'tdx':_0x7f6725});process[_0x4632fa(0x201)](_0x1888e3);}),workflowCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x30b))[a2_0x1eae26(0x391)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x36b),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x1eae26(0x1ea)](async(_0x5d7f52,_0x3664cc,_0x5d6899)=>{const _0x33f7a6=a2_0x1eae26,_0x25ef31=new WorkflowDownloadCommand(),_0xf5eafe=program['opts'](),_0x40bbd6=await createTDXInstance(_0xf5eafe),_0x1e399f=await _0x25ef31[_0x33f7a6(0x228)]({'options':{..._0xf5eafe,..._0x5d6899},'args':[_0x5d7f52,_0x3664cc||'.'],'tdx':_0x40bbd6});process[_0x33f7a6(0x201)](_0x1e399f);}),workflowCmd['command'](a2_0x1eae26(0x1d6))[a2_0x1eae26(0x391)](a2_0x1eae26(0x25d))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x20a),a2_0x1eae26(0x30a))['option'](a2_0x1eae26(0x36b),a2_0x1eae26(0x3b8))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x24c),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x10351f,_0x44ab38)=>{const _0x5b27e9=a2_0x1eae26,_0x39b899=new WorkflowPushCommand(),_0x552c92=program['opts'](),_0x3020a0=await createTDXInstance(_0x552c92),_0x329083=await _0x39b899[_0x5b27e9(0x228)]({'options':{..._0x552c92,..._0x44ab38},'args':_0x10351f?[_0x10351f]:[],'tdx':_0x3020a0});process[_0x5b27e9(0x201)](_0x329083);}),workflowCmd[a2_0x1eae26(0x3f0)]('delete\x20<project-name-or-id>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x295))[a2_0x1eae26(0x1ea)](async(_0x3697fb,_0x14b85f)=>{const _0x2ebe1d=a2_0x1eae26,_0x1f97a7=new WorkflowDeleteCommand(),_0x1acb2d=program['opts'](),_0x311d85=await createTDXInstance(_0x1acb2d),_0xc00a6e=await _0x1f97a7[_0x2ebe1d(0x228)]({'options':{..._0x1acb2d,..._0x14b85f},'args':[_0x3697fb],'tdx':_0x311d85});process[_0x2ebe1d(0x201)](_0xc00a6e);});const jobCmd=program[a2_0x1eae26(0x3f0)]('job')[a2_0x1eae26(0x391)](a2_0x1eae26(0x1e1)),jobListAction=async _0x1824b4=>{const _0x1df3b8=a2_0x1eae26,_0x5bade7=new JobListCommand(),_0x5d5c2e=program[_0x1df3b8(0x2a8)](),_0x227348=await createTDXInstance(_0x5d5c2e),_0x3265b4=await _0x5bade7['run']({'options':{..._0x5d5c2e,..._0x1824b4},'args':[],'tdx':_0x227348});process[_0x1df3b8(0x201)](_0x3265b4);};jobCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2b5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x229))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3fc),a2_0x1eae26(0x209))[a2_0x1eae26(0x1ea)](jobListAction),program[a2_0x1eae26(0x3f0)]('jobs',{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x226))[a2_0x1eae26(0x1f7)]('--status\x20<status>',a2_0x1eae26(0x209))[a2_0x1eae26(0x1ea)](jobListAction),jobCmd['command'](a2_0x1eae26(0x3a3))['description'](a2_0x1eae26(0x316))[a2_0x1eae26(0x1ea)](async(_0x1f7d3d,_0x87a91f)=>{const _0x1b02bf=a2_0x1eae26,_0x25d244=new JobShowCommand(),_0x3cd909=program['opts'](),_0x589da2=await createTDXInstance(_0x3cd909),_0x104551=await _0x25d244[_0x1b02bf(0x228)]({'options':{..._0x3cd909,..._0x87a91f},'args':[_0x1f7d3d],'tdx':_0x589da2});process[_0x1b02bf(0x201)](_0x104551);}),jobCmd['command']('kill\x20<job-id>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x365))[a2_0x1eae26(0x1ea)](async(_0x50652c,_0x7e1ab3)=>{const _0x25ae12=a2_0x1eae26,_0x3f1535=new JobKillCommand(),_0x515c9d=program['opts'](),_0x814c2d=await createTDXInstance(_0x515c9d),_0x3abba8=await _0x3f1535[_0x25ae12(0x228)]({'options':{..._0x515c9d,..._0x7e1ab3},'args':[_0x50652c],'tdx':_0x814c2d});process[_0x25ae12(0x201)](_0x3abba8);}),jobCmd['command'](a2_0x1eae26(0x2d6))[a2_0x1eae26(0x391)](a2_0x1eae26(0x262))['option'](a2_0x1eae26(0x344),a2_0x1eae26(0x223),a2_0x1eae26(0x358))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x357),a2_0x1eae26(0x37b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x35a),'Database\x20name\x20(default:\x20information_schema)',a2_0x1eae26(0x2aa))['action'](async(_0x48e352,_0xe12a42)=>{const _0x3fe69b=a2_0x1eae26,_0x5a61f1=new JobSubmitCommand(),_0x1b0fd9=program[_0x3fe69b(0x2a8)](),_0x5e7f03=await createTDXInstance(_0x1b0fd9),_0x55691b=await _0x5a61f1['run']({'options':{..._0x1b0fd9,..._0xe12a42},'args':_0x48e352?[_0x48e352]:[],'tdx':_0x5e7f03});process[_0x3fe69b(0x201)](_0x55691b);}),jobCmd[a2_0x1eae26(0x3f0)]('result\x20<job-id>')['description'](a2_0x1eae26(0x233))[a2_0x1eae26(0x1ea)](async(_0x15e437,_0x2c740e)=>{const _0x5c5e27=a2_0x1eae26,_0x26f728=new JobResultCommand(),_0x3f9818=program['opts'](),_0xf1b96e=await createTDXInstance(_0x3f9818),_0x2f9f68=await _0x26f728[_0x5c5e27(0x228)]({'options':{..._0x3f9818,..._0x2c740e},'args':[_0x15e437],'tdx':_0xf1b96e});process[_0x5c5e27(0x201)](_0x2f9f68);});const llmCmd=program['command'](a2_0x1eae26(0x361))[a2_0x1eae26(0x391)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3f1))['description'](a2_0x1eae26(0x2f5))[a2_0x1eae26(0x1ea)](async(_0x5042aa,_0x555908)=>{const _0x141abb=a2_0x1eae26,_0x907a9f=new LLMUseCommand(),_0x134eb4=program[_0x141abb(0x2a8)](),_0x1a5d5b=await createTDXInstance(_0x134eb4),_0x4a354b=await _0x907a9f[_0x141abb(0x228)]({'options':{..._0x134eb4,..._0x555908},'args':[_0x5042aa],'tdx':_0x1a5d5b});process[_0x141abb(0x201)](_0x4a354b);}),llmCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x32f))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2ad))[a2_0x1eae26(0x1ea)](async _0x3cba23=>{const _0x376c19=a2_0x1eae26,_0x5b73af=new LLMModelsCommand(),_0x3a7cef=program[_0x376c19(0x2a8)](),_0x57f972=await createTDXInstance(_0x3a7cef),_0x552696=await _0x5b73af[_0x376c19(0x228)]({'options':{..._0x3a7cef,..._0x3cba23},'args':[],'tdx':_0x57f972});process[_0x376c19(0x201)](_0x552696);});const projectCmd=llmCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3ca))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2e1)),llmProjectListAction=async(_0x579663,_0x5da4a6)=>{const _0xf6a577=a2_0x1eae26,_0x2a40fc=new LLMProjectsCommand(),_0x34408c=program[_0xf6a577(0x2a8)](),_0x39357b=await createTDXInstance(_0x34408c),_0x135653=await _0x2a40fc[_0xf6a577(0x228)]({'options':{..._0x34408c,..._0x5da4a6},'args':_0x579663?[_0x579663]:[],'tdx':_0x39357b});process[_0xf6a577(0x201)](_0x135653);};projectCmd['command'](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x327))[a2_0x1eae26(0x1ea)](llmProjectListAction),llmCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2ee))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['option'](a2_0x1eae26(0x205),a2_0x1eae26(0x327))[a2_0x1eae26(0x1ea)](llmProjectListAction),projectCmd['command'](a2_0x1eae26(0x215))['description'](a2_0x1eae26(0x383))[a2_0x1eae26(0x1f7)]('--description\x20<text>',a2_0x1eae26(0x388))[a2_0x1eae26(0x1ea)](async(_0x501cfd,_0x203f87)=>{const _0x2a62b6=a2_0x1eae26,_0x3ac1e9=new LLMProjectCreateCommand(),_0x34bec7=program['opts'](),_0x18536e=await createTDXInstance(_0x34bec7),_0xe714a3=await _0x3ac1e9[_0x2a62b6(0x228)]({'options':{..._0x34bec7,..._0x203f87},'args':[_0x501cfd],'tdx':_0x18536e});process[_0x2a62b6(0x201)](_0xe714a3);}),projectCmd['command'](a2_0x1eae26(0x302))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3f9))['action'](async(_0x360e35,_0x2492be)=>{const _0x2ed3bb=a2_0x1eae26,_0x4e5b68=new LLMProjectDeleteCommand(),_0xdbd6e0=program[_0x2ed3bb(0x2a8)](),_0x4e684b=await createTDXInstance(_0xdbd6e0),_0x5495bf=await _0x4e5b68[_0x2ed3bb(0x228)]({'options':{..._0xdbd6e0,..._0x2492be},'args':[_0x360e35],'tdx':_0x4e684b});process['exit'](_0x5495bf);}),projectCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2da))[a2_0x1eae26(0x391)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2e7),a2_0x1eae26(0x218))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x281),a2_0x1eae26(0x3de))[a2_0x1eae26(0x1ea)](async(_0x2fc84e,_0x179dcb)=>{const _0x1040e4=a2_0x1eae26,_0x3bcc0f=new LLMProjectBackupCommand(),_0x458cd8=program[_0x1040e4(0x2a8)](),_0xad383a=await createTDXInstance(_0x458cd8),_0x1ce2ba=await _0x3bcc0f[_0x1040e4(0x228)]({'options':{..._0x458cd8,..._0x179dcb},'args':[_0x2fc84e],'tdx':_0xad383a});process[_0x1040e4(0x201)](_0x1ce2ba);}),projectCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x259))[a2_0x1eae26(0x391)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2e8),a2_0x1eae26(0x2f2))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x281),a2_0x1eae26(0x3f3))['action'](async(_0x4687fc,_0x58445f)=>{const _0xfbd7e6=a2_0x1eae26,_0x2e14a1=new LLMProjectRestoreCommand(),_0x587365=program[_0xfbd7e6(0x2a8)](),_0x10416b=await createTDXInstance(_0x587365),_0x89df19=await _0x2e14a1[_0xfbd7e6(0x228)]({'options':{..._0x587365,..._0x58445f},'args':[_0x4687fc],'tdx':_0x10416b});process[_0xfbd7e6(0x201)](_0x89df19);});const llmAgentListAction=async(_0x5c2368,_0x4297a8)=>{const _0xa308f=a2_0x1eae26,_0x46a0d6=new LLMAgentsCommand(),_0xcbe90=program[_0xa308f(0x2a8)](),_0x3f5b72=await createTDXInstance(_0xcbe90),_0x4eb0e7=await _0x46a0d6[_0xa308f(0x228)]({'options':{..._0xcbe90,..._0x4297a8},'args':_0x5c2368?[_0x5c2368]:[],'tdx':_0x3f5b72});process[_0xa308f(0x201)](_0x4eb0e7);};llmCmd['command']('agents\x20[pattern]')['description'](a2_0x1eae26(0x3e1))['option']('-w,\x20--web',a2_0x1eae26(0x31a))[a2_0x1eae26(0x1ea)](llmAgentListAction),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2e4))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x31a))['action'](llmAgentListAction),llmCmd['command'](a2_0x1eae26(0x2d8))[a2_0x1eae26(0x391)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x291),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x1eae26(0x1ea)](async(_0x4f0f93,_0x3edbac)=>{const _0x203289=a2_0x1eae26,_0x2f0d07=new LLMHistoryCommand(),_0x6ee7c8=program[_0x203289(0x2a8)](),_0x45ca80=await createTDXInstance(_0x6ee7c8),_0x341803=await _0x2f0d07[_0x203289(0x228)]({'options':{..._0x6ee7c8,..._0x3edbac},'args':_0x4f0f93?[_0x4f0f93]:[],'tdx':_0x45ca80});process['exit'](_0x341803);}),llmCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2e3))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3ad))[a2_0x1eae26(0x1f7)]('--port\x20<number>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','4000')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x35d),a2_0x1eae26(0x3c6))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3ea),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x1eae26(0x1ea)](async _0x24ab02=>{const _0x324513=a2_0x1eae26,_0x26ff3f=new LLMProxyCommand(),_0x9572d1=program[_0x324513(0x2a8)](),_0x5087a4=await createTDXInstance(_0x9572d1),_0x2ac3c3={..._0x24ab02,'port':_0x24ab02[_0x324513(0x333)]?parseInt(_0x24ab02[_0x324513(0x333)],0xa):undefined},_0x3fe07c=await _0x26ff3f[_0x324513(0x228)]({'options':{..._0x9572d1,..._0x2ac3c3},'args':[],'tdx':_0x5087a4});process['exit'](_0x3fe07c);}),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3c7))[a2_0x1eae26(0x31f)](a2_0x1eae26(0x3ab))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3ee))['option'](a2_0x1eae26(0x37d),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x1eae26(0x374))['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2b8),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x234),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x1eae26(0x318)]()[a2_0x1eae26(0x2c5)](!![])[a2_0x1eae26(0x2ef)](a2_0x1eae26(0x296),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x2527ad,_0x3a1edd)=>{const _0x15053d=a2_0x1eae26,_0x302d91=program[_0x15053d(0x2a8)](),_0x513b16=Array[_0x15053d(0x1d2)](_0x2527ad)?_0x2527ad:[];if(_0x513b16[0x0]===_0x15053d(0x292)){const _0x2406c5=new ClaudeStatuslineCommand(),_0xdc8410=await _0x2406c5[_0x15053d(0x228)]({'options':{..._0x302d91,..._0x3a1edd},'args':_0x513b16['slice'](0x1),'tdx':null});process[_0x15053d(0x201)](_0xdc8410);}if(_0x513b16[0x0]===_0x15053d(0x31f)){const _0x21a9fb=new ClaudeUsageCommand(),_0x5c42d7=await _0x21a9fb[_0x15053d(0x228)]({'options':{..._0x302d91,..._0x3a1edd},'args':_0x513b16[_0x15053d(0x3ff)](0x1),'tdx':null});process['exit'](_0x5c42d7);}const _0x2ac259=new ClaudeCommand(),_0x3463ac=await createTDXInstance(_0x302d91),_0xed15ec=await _0x2ac259['run']({'options':{..._0x302d91,..._0x3a1edd},'args':_0x513b16,'tdx':_0x3463ac});process[_0x15053d(0x201)](_0xed15ec);}),program[a2_0x1eae26(0x3f0)]('context')['description']('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')['option']('--clear',a2_0x1eae26(0x309))[a2_0x1eae26(0x1ea)](async _0x899644=>{const _0x52b7f6=a2_0x1eae26,_0x5973d1=new ContextCommand(),_0x1a7b1b=program['opts'](),_0x402716=await _0x5973d1[_0x52b7f6(0x228)]({'options':{..._0x1a7b1b,..._0x899644},'args':[],'tdx':null});process[_0x52b7f6(0x201)](_0x402716);}),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x393))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3cf))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2bb),a2_0x1eae26(0x309))[a2_0x1eae26(0x1ea)](async(_0x1b38b6,_0x26f473,_0x1cad76)=>{const _0x403952=a2_0x1eae26,_0x1a4c8e=new UseCommand(),_0x60ecda=program[_0x403952(0x2a8)](),_0x10bc1b=[];if(_0x1b38b6)_0x10bc1b['push'](_0x1b38b6);if(_0x26f473)_0x10bc1b[_0x403952(0x2a4)](_0x26f473);const _0x439f30=await _0x1a4c8e[_0x403952(0x228)]({'options':{..._0x60ecda,..._0x1cad76},'args':_0x10bc1b,'tdx':null});process[_0x403952(0x201)](_0x439f30);}),program['command'](a2_0x1eae26(0x3cd))[a2_0x1eae26(0x391)](a2_0x1eae26(0x26c))[a2_0x1eae26(0x1f7)]('--last',a2_0x1eae26(0x3f8))[a2_0x1eae26(0x1ea)](async _0x249549=>{const _0x2740f6=a2_0x1eae26,_0x5a79c6=new ChatsCommand(),_0x4f4301=program[_0x2740f6(0x2a8)](),_0x4d27c0=await createTDXInstance(_0x4f4301),_0x5384f4=await _0x5a79c6[_0x2740f6(0x228)]({'options':{..._0x4f4301,..._0x249549},'args':[],'tdx':_0x4d27c0});process[_0x2740f6(0x201)](_0x5384f4);});const authCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x322))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2e9));async function runAuthStatusCommand(_0x190412){const _0x384594=a2_0x1eae26,_0x409e67=new AuthStatusCommand(),_0x149cd1=program[_0x384594(0x2a8)](),_0x1a63c3=await createTDXInstance(_0x149cd1),_0x2c347c=await _0x409e67[_0x384594(0x228)]({'options':{..._0x149cd1,..._0x190412},'args':[],'tdx':_0x1a63c3});process[_0x384594(0x201)](_0x2c347c);}authCmd['action'](runAuthStatusCommand),authCmd['command']('status')[a2_0x1eae26(0x391)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x1eae26(0x1ea)](runAuthStatusCommand),authCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x293))['description'](a2_0x1eae26(0x260))[a2_0x1eae26(0x2ef)](a2_0x1eae26(0x296),a2_0x1eae26(0x35c))[a2_0x1eae26(0x1ea)](async _0x477c8a=>{const _0x2cdd9e=a2_0x1eae26,_0x5aa86d=new AuthSetupCommand(),_0x4a9c9e=program[_0x2cdd9e(0x2a8)](),_0x35800b=await createTDXInstance(_0x4a9c9e),_0x5ade83=await _0x5aa86d[_0x2cdd9e(0x228)]({'options':{..._0x4a9c9e,..._0x477c8a},'args':[],'tdx':_0x35800b});process['exit'](_0x5ade83);}),authCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x389))['description'](a2_0x1eae26(0x28e))[a2_0x1eae26(0x2ef)](a2_0x1eae26(0x296),a2_0x1eae26(0x2fd))[a2_0x1eae26(0x1ea)](async _0x33814c=>{const _0x92369b=a2_0x1eae26,_0x3c293a=new AuthClearCommand(),_0x197730=program['opts'](),_0xc29e71=await _0x3c293a[_0x92369b(0x228)]({'options':{..._0x197730,..._0x33814c},'args':[],'tdx':null});process[_0x92369b(0x201)](_0xc29e71);});const userCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x320))[a2_0x1eae26(0x391)]('User\x20management\x20commands'),userListAction=async _0x36f2db=>{const _0x2cf8e9=a2_0x1eae26,_0x5d2317=new UserListCommand(),_0x1fb1f8=program[_0x2cf8e9(0x2a8)](),_0x5d7e94=await createTDXInstance(_0x1fb1f8),_0x28dc63=await _0x5d2317[_0x2cf8e9(0x228)]({'options':{..._0x1fb1f8,..._0x36f2db},'args':[],'tdx':_0x5d7e94});process[_0x2cf8e9(0x201)](_0x28dc63);};userCmd['action'](async _0x2cf14e=>{const _0x39d1ea=a2_0x1eae26,_0x11a958=new UserCommand(),_0x511cf8=program[_0x39d1ea(0x2a8)](),_0x31eee3=await createTDXInstance(_0x511cf8),_0x36458e=await _0x11a958[_0x39d1ea(0x228)]({'options':{..._0x511cf8,..._0x2cf14e},'args':[],'tdx':_0x31eee3});process[_0x39d1ea(0x201)](_0x36458e);}),userCmd[a2_0x1eae26(0x3f0)]('list')['description'](a2_0x1eae26(0x3ed))[a2_0x1eae26(0x1ea)](userListAction),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x377))['description'](a2_0x1eae26(0x37c))['action'](userListAction),program['command'](a2_0x1eae26(0x1d5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x2a7))[a2_0x1eae26(0x1ea)](async _0x50d009=>{const _0x169e83=a2_0x1eae26,_0x376a02=new ProfilesCommand(),_0xbb83eb=program[_0x169e83(0x2a8)](),_0x4df3e4=await _0x376a02[_0x169e83(0x228)]({'options':{..._0xbb83eb,..._0x50d009},'args':[],'tdx':null});process['exit'](_0x4df3e4);});const engageCmd=program[a2_0x1eae26(0x3f0)]('engage')[a2_0x1eae26(0x391)](a2_0x1eae26(0x3ba)),createEngageAction=_0x451937=>{return async(_0x2f3fd1,_0x4365e1)=>{const _0x5eb961=a2_0x2e8a,_0x3b098f=new _0x451937(),_0x975b93=program[_0x5eb961(0x2a8)](),_0x5c5cb7=await createTDXInstance(_0x975b93),_0x4ad11a=await _0x3b098f['run']({'options':{..._0x975b93,..._0x4365e1},'args':[_0x2f3fd1],'tdx':_0x5c5cb7});process['exit'](_0x4ad11a);};},createEngageNoArgAction=_0x55568e=>{return async _0x26f0eb=>{const _0x5d2a76=a2_0x2e8a,_0x1e0aad=new _0x55568e(),_0x580584=program['opts'](),_0x3a30b5=await createTDXInstance(_0x580584),_0x498b1f=await _0x1e0aad[_0x5d2a76(0x228)]({'options':{..._0x580584,..._0x26f0eb},'args':[],'tdx':_0x3a30b5});process[_0x5d2a76(0x201)](_0x498b1f);};},campaignCmd=engageCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x219))[a2_0x1eae26(0x391)]('Campaign\x20management'),campaignListAction=async(_0x71807,_0x5d64c9)=>{const _0x1dc929=a2_0x1eae26,_0x3d4113=new EngageCampaignsCommand(),_0x4898fa=program['opts'](),_0x3a5853=await createTDXInstance(_0x4898fa),_0xd9c97c=await _0x3d4113[_0x1dc929(0x228)]({'options':{..._0x4898fa,..._0x5d64c9},'args':_0x71807?[_0x71807]:[],'tdx':_0x3a5853});process[_0x1dc929(0x201)](_0xd9c97c);};campaignCmd['command'](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)](a2_0x1eae26(0x38e))[a2_0x1eae26(0x1f7)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x1eae26(0x3fc),a2_0x1eae26(0x269))['option'](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](campaignListAction),engageCmd[a2_0x1eae26(0x3f0)]('campaigns\x20[pattern]')[a2_0x1eae26(0x391)](a2_0x1eae26(0x385))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x39b),a2_0x1eae26(0x2b3))['option'](a2_0x1eae26(0x3fc),a2_0x1eae26(0x269))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](campaignListAction),campaignCmd[a2_0x1eae26(0x3f0)]('show\x20<name-or-id>')[a2_0x1eae26(0x391)]('Show\x20campaign\x20details')[a2_0x1eae26(0x1f7)]('--workspace\x20<name>',a2_0x1eae26(0x217))['option']('--full',a2_0x1eae26(0x3cb))[a2_0x1eae26(0x1ea)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x1eae26(0x2a9))[a2_0x1eae26(0x391)](a2_0x1eae26(0x30c))['requiredOption'](a2_0x1eae26(0x20a),a2_0x1eae26(0x3e8))['requiredOption'](a2_0x1eae26(0x39b),a2_0x1eae26(0x27f))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x34a))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x241),a2_0x1eae26(0x200))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x37f),a2_0x1eae26(0x337))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x231),a2_0x1eae26(0x1ff))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x27d),a2_0x1eae26(0x2e2))[a2_0x1eae26(0x1f7)]('--start-at\x20<datetime>',a2_0x1eae26(0x31d))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1ee),a2_0x1eae26(0x238))[a2_0x1eae26(0x1ea)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x287))[a2_0x1eae26(0x391)](a2_0x1eae26(0x305))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),'Workspace\x20name')[a2_0x1eae26(0x1f7)]('--name\x20<name>',a2_0x1eae26(0x2b2))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x241),a2_0x1eae26(0x200))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x37f),a2_0x1eae26(0x337))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x231),a2_0x1eae26(0x1ff))['option'](a2_0x1eae26(0x27d),a2_0x1eae26(0x2e2))['option'](a2_0x1eae26(0x335),a2_0x1eae26(0x31d))[a2_0x1eae26(0x1f7)]('--timezone\x20<tz>',a2_0x1eae26(0x238))[a2_0x1eae26(0x1ea)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x24a))[a2_0x1eae26(0x391)]('Delete\x20a\x20campaign')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))['option']('--yes',a2_0x1eae26(0x350))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2b6))[a2_0x1eae26(0x391)](a2_0x1eae26(0x212))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1eae26(0x3f0)]('pause\x20<name-or-id>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x25b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2ce))[a2_0x1eae26(0x391)](a2_0x1eae26(0x392))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x251))[a2_0x1eae26(0x391)](a2_0x1eae26(0x1f1))[a2_0x1eae26(0x1f7)]('--workspace\x20<name>',a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x1eae26(0x400))['description'](a2_0x1eae26(0x3af)),templateListAction=async(_0x4fde3a,_0x4316ec)=>{const _0x3b3a25=a2_0x1eae26,_0x5179df=new EngageTemplatesCommand(),_0x1a81e4=program[_0x3b3a25(0x2a8)](),_0x7b800c=await createTDXInstance(_0x1a81e4),_0x1bb14b=await _0x5179df['run']({'options':{..._0x1a81e4,..._0x4316ec},'args':_0x4fde3a?[_0x4fde3a]:[],'tdx':_0x7b800c});process[_0x3b3a25(0x201)](_0x1bb14b);};templateCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)](a2_0x1eae26(0x3a1))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))['action'](templateListAction),engageCmd['command'](a2_0x1eae26(0x32e))[a2_0x1eae26(0x391)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1ea)](templateListAction),templateCmd[a2_0x1eae26(0x3f0)]('show\x20<name-or-id>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x1e5))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x239),a2_0x1eae26(0x3cb))[a2_0x1eae26(0x1ea)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2a9))[a2_0x1eae26(0x391)](a2_0x1eae26(0x25a))['requiredOption'](a2_0x1eae26(0x20a),'Template\x20name')['requiredOption'](a2_0x1eae26(0x22d),a2_0x1eae26(0x3bd))[a2_0x1eae26(0x315)](a2_0x1eae26(0x29f),'HTML\x20template\x20content')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x34a))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x29a),'Plaintext\x20template\x20content')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x289),a2_0x1eae26(0x403))[a2_0x1eae26(0x1ea)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1eae26(0x3f0)]('update\x20<name-or-id>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x355))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3f7),a2_0x1eae26(0x217))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x20a),a2_0x1eae26(0x222))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x22d),a2_0x1eae26(0x3bd))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x29f),a2_0x1eae26(0x253))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x29a),a2_0x1eae26(0x27a))[a2_0x1eae26(0x1ea)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')['description'](a2_0x1eae26(0x2ff))['option']('--workspace\x20<name>',a2_0x1eae26(0x217))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3e0),a2_0x1eae26(0x350))[a2_0x1eae26(0x1ea)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1eae26(0x3f0)]('workspace')['description']('Workspace\x20management'),workspaceListAction=async(_0x944636,_0x47f46c)=>{const _0x5f261e=a2_0x1eae26,_0x579fdb=new EngageWorkspacesCommand(),_0xbaf8c2=program[_0x5f261e(0x2a8)](),_0x1085fe=await createTDXInstance(_0xbaf8c2),_0xfd28e6=await _0x579fdb[_0x5f261e(0x228)]({'options':{..._0xbaf8c2,..._0x47f46c},'args':_0x944636?[_0x944636]:[],'tdx':_0x1085fe});process[_0x5f261e(0x201)](_0xfd28e6);};workspaceCmd[a2_0x1eae26(0x3f0)]('list\x20[pattern]')[a2_0x1eae26(0x391)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x1eae26(0x1ea)](workspaceListAction),engageCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x3b1))[a2_0x1eae26(0x391)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x1eae26(0x1ea)](workspaceListAction),workspaceCmd[a2_0x1eae26(0x3f0)]('show\x20<name-or-id>')[a2_0x1eae26(0x391)]('Show\x20workspace\x20details')['option']('--full',a2_0x1eae26(0x3cb))[a2_0x1eae26(0x1ea)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command']('create')[a2_0x1eae26(0x391)](a2_0x1eae26(0x1ec))[a2_0x1eae26(0x315)](a2_0x1eae26(0x20a),a2_0x1eae26(0x217))[a2_0x1eae26(0x1f7)]('--description\x20<desc>',a2_0x1eae26(0x225))[a2_0x1eae26(0x1ea)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x287))[a2_0x1eae26(0x391)](a2_0x1eae26(0x23b))[a2_0x1eae26(0x1f7)]('--name\x20<name>',a2_0x1eae26(0x1da))[a2_0x1eae26(0x1f7)]('--description\x20<desc>',a2_0x1eae26(0x225))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x24a))[a2_0x1eae26(0x391)]('Delete\x20a\x20workspace')['option'](a2_0x1eae26(0x3e0),a2_0x1eae26(0x350))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1eae26(0x39d))[a2_0x1eae26(0x391)](a2_0x1eae26(0x371))[a2_0x1eae26(0x1ea)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1d3))[a2_0x1eae26(0x391)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x3fb9a7=>{const _0x3a41ae=a2_0x1eae26,_0x2a2061=new ConnectionListCommand(),_0x32812c=program[_0x3a41ae(0x2a8)](),_0x1ad117=await createTDXInstance(_0x32812c),_0x2f7df6=await _0x2a2061[_0x3a41ae(0x228)]({'options':{..._0x32812c,..._0x3fb9a7},'args':[],'tdx':_0x1ad117});process['exit'](_0x2f7df6);};connectionCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x2b5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x1ed))[a2_0x1eae26(0x1ea)](connectionListAction),program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1f0),{'hidden':!![]})[a2_0x1eae26(0x391)](a2_0x1eae26(0x323))[a2_0x1eae26(0x1ea)](connectionListAction),connectionCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x1f5))[a2_0x1eae26(0x391)](a2_0x1eae26(0x277))['action'](async(_0x3ac69b,_0x2225f6)=>{const _0x3bc924=a2_0x1eae26,_0x2b2249=new ConnectionShowCommand(),_0x5662ad=program[_0x3bc924(0x2a8)](),_0x3e3a2e=await createTDXInstance(_0x5662ad),_0x490234=await _0x2b2249[_0x3bc924(0x228)]({'options':{..._0x5662ad,..._0x2225f6},'args':[_0x3ac69b],'tdx':_0x3e3a2e});process[_0x3bc924(0x201)](_0x490234);}),connectionCmd['command'](a2_0x1eae26(0x2fc))[a2_0x1eae26(0x391)](a2_0x1eae26(0x1f4))[a2_0x1eae26(0x1ea)](async(_0x131ca4,_0x31ea47)=>{const _0x3a936b=a2_0x1eae26,_0xd6af87=new ConnectionSchemaCommand(),_0x30551a=program[_0x3a936b(0x2a8)](),_0x1f2985=await createTDXInstance(_0x30551a),_0x2382df=await _0xd6af87[_0x3a936b(0x228)]({'options':{..._0x30551a,..._0x31ea47},'args':[_0x131ca4],'tdx':_0x1f2985});process[_0x3a936b(0x201)](_0x2382df);}),connectionCmd[a2_0x1eae26(0x3f0)]('types')[a2_0x1eae26(0x391)](a2_0x1eae26(0x246))[a2_0x1eae26(0x1ea)](async _0x117964=>{const _0x333c32=a2_0x1eae26,_0x12534c=new ConnectionTypesCommand(),_0xef1689=program[_0x333c32(0x2a8)](),_0x57e7c7=await createTDXInstance(_0xef1689),_0x14516d=await _0x12534c[_0x333c32(0x228)]({'options':{..._0xef1689,..._0x117964},'args':[],'tdx':_0x57e7c7});process[_0x333c32(0x201)](_0x14516d);}),connectionCmd['command'](a2_0x1eae26(0x354))[a2_0x1eae26(0x391)](a2_0x1eae26(0x1e0))[a2_0x1eae26(0x1ea)](async(_0x1990ef,_0x2193e3)=>{const _0x258858=a2_0x1eae26,_0x4c949b=new ConnectionSettingsCommand(),_0x32c686=program[_0x258858(0x2a8)](),_0x2a51a7=await createTDXInstance(_0x32c686),_0x4bedcf=await _0x4c949b[_0x258858(0x228)]({'options':{..._0x32c686,..._0x2193e3},'args':[_0x1990ef],'tdx':_0x2a51a7});process[_0x258858(0x201)](_0x4bedcf);});const journeyCmd=program[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x290))[a2_0x1eae26(0x391)](a2_0x1eae26(0x310));journeyCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x312))[a2_0x1eae26(0x391)](a2_0x1eae26(0x304))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x36e))['action'](async(_0x34fc4d,_0x3103eb)=>{const _0x37e55c=a2_0x1eae26,_0x38d4d2=new JourneyListCommand(),_0x45c28e=program[_0x37e55c(0x2a8)](),_0xbc40c=await createTDXInstance(_0x45c28e),_0x5d44e5=await _0x38d4d2[_0x37e55c(0x228)]({'options':{..._0x45c28e,..._0x3103eb},'args':_0x34fc4d?[_0x34fc4d]:[],'tdx':_0xbc40c});process[_0x37e55c(0x201)](_0x5d44e5);}),journeyCmd['command']('view\x20<name-or-path>')[a2_0x1eae26(0x391)]('Show\x20journey\x20details')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x35b))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1fb),a2_0x1eae26(0x28b))[a2_0x1eae26(0x1ea)](async(_0x402bb3,_0x38315a)=>{const _0x50192b=a2_0x1eae26,_0x3ecbd7=new JourneyViewCommand(),_0x2a1968=program[_0x50192b(0x2a8)](),_0x4b5c66=await createTDXInstance(_0x2a1968),_0x13b816=await _0x3ecbd7[_0x50192b(0x228)]({'options':{..._0x2a1968,..._0x38315a},'args':[_0x402bb3],'tdx':_0x4b5c66});process[_0x50192b(0x201)](_0x13b816);}),journeyCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x29d))[a2_0x1eae26(0x391)](a2_0x1eae26(0x276))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1fc),a2_0x1eae26(0x267))[a2_0x1eae26(0x1ea)](async(_0x41750e,_0x2ded06)=>{const _0x38d53a=a2_0x1eae26,_0x143505=new JourneyStatsCommand(),_0x7c1a9f=program[_0x38d53a(0x2a8)](),_0x3848d0=await createTDXInstance(_0x7c1a9f),_0x531c8c=await _0x143505[_0x38d53a(0x228)]({'options':{..._0x7c1a9f,..._0x2ded06},'args':[_0x41750e],'tdx':_0x3848d0});process['exit'](_0x531c8c);}),journeyCmd['command'](a2_0x1eae26(0x3e2))[a2_0x1eae26(0x391)](a2_0x1eae26(0x402))[a2_0x1eae26(0x1ea)](async(_0x4eb46d,_0x3eaca9)=>{const _0x247c6d=a2_0x1eae26,_0x20b572=new JourneyPauseCommand(),_0x4f8458=program[_0x247c6d(0x2a8)](),_0x3c8d2f=await createTDXInstance(_0x4f8458),_0x4216f4=await _0x20b572['run']({'options':{..._0x4f8458,..._0x3eaca9},'args':[_0x4eb46d],'tdx':_0x3c8d2f});process['exit'](_0x4216f4);}),journeyCmd[a2_0x1eae26(0x3f0)]('resume\x20<name-or-path>')[a2_0x1eae26(0x391)]('Resume\x20a\x20paused\x20journey')[a2_0x1eae26(0x1ea)](async(_0x412d0d,_0x53646f)=>{const _0x2df1fb=a2_0x1eae26,_0x47af65=new JourneyResumeCommand(),_0x34de83=program[_0x2df1fb(0x2a8)](),_0x2d18db=await createTDXInstance(_0x34de83),_0x54f66d=await _0x47af65[_0x2df1fb(0x228)]({'options':{..._0x34de83,..._0x53646f},'args':[_0x412d0d],'tdx':_0x2d18db});process['exit'](_0x54f66d);}),journeyCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x20b))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')['option'](a2_0x1eae26(0x2a2),a2_0x1eae26(0x350))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x281),a2_0x1eae26(0x372))[a2_0x1eae26(0x1ea)](async(_0x26044c,_0x180fa4)=>{const _0x2aee21=a2_0x1eae26,_0x240df1=new JourneyPullCommand(),_0x5cb9dd=program[_0x2aee21(0x2a8)](),_0x40cc2d=await createTDXInstance(_0x5cb9dd),_0x4afb47=await _0x240df1[_0x2aee21(0x228)]({'options':{..._0x5cb9dd,..._0x180fa4},'args':_0x26044c?[_0x26044c]:[],'tdx':_0x40cc2d});process[_0x2aee21(0x201)](_0x4afb47);}),journeyCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x249))[a2_0x1eae26(0x391)](a2_0x1eae26(0x362))['action'](async(_0x5ba3e7,_0x45ce1e)=>{const _0x4c13cc=a2_0x1eae26,_0x740824=new JourneyPushCommand(),_0x31e3b1=program['opts'](),_0x1c96f9=await createTDXInstance(_0x31e3b1),_0x95f23d=await _0x740824[_0x4c13cc(0x228)]({'options':{..._0x31e3b1,..._0x45ce1e},'args':_0x5ba3e7?[_0x5ba3e7]:[],'tdx':_0x1c96f9});process['exit'](_0x95f23d);});const agentSyncCmd=program['command'](a2_0x1eae26(0x3f6))[a2_0x1eae26(0x391)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x39a))[a2_0x1eae26(0x391)](a2_0x1eae26(0x25c))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x381),a2_0x1eae26(0x378))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x1db),a2_0x1eae26(0x274))[a2_0x1eae26(0x1ea)](async(_0x16700b,_0x178e74,_0xc27a87)=>{const _0x4f32d9=a2_0x1eae26,_0x1a1a30=new AgentPullCommand(),_0x460a8=program[_0x4f32d9(0x2a8)](),_0x551fdb=await createTDXInstance(_0x460a8),_0x5f0de8=[];if(_0x16700b)_0x5f0de8[_0x4f32d9(0x2a4)](_0x16700b);if(_0x178e74)_0x5f0de8['push'](_0x178e74);const _0x3128c5=await _0x1a1a30[_0x4f32d9(0x228)]({'options':{..._0x460a8,..._0xc27a87},'args':_0x5f0de8,'tdx':_0x551fdb});process[_0x4f32d9(0x201)](_0x3128c5);}),agentSyncCmd['command']('push\x20[path]')['description'](a2_0x1eae26(0x26d))[a2_0x1eae26(0x1f7)]('-f,\x20--force',a2_0x1eae26(0x294))[a2_0x1eae26(0x1ea)](async(_0x40e514,_0x89be0b)=>{const _0x4c14d1=a2_0x1eae26,_0x4cf783=new AgentPushCommand(),_0x5cfc30=program[_0x4c14d1(0x2a8)](),_0x5c9e32=await createTDXInstance(_0x5cfc30),_0x1a903a=await _0x4cf783[_0x4c14d1(0x228)]({'options':{..._0x5cfc30,..._0x89be0b},'args':_0x40e514?[_0x40e514]:[],'tdx':_0x5c9e32});process[_0x4c14d1(0x201)](_0x1a903a);}),agentSyncCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x36c))[a2_0x1eae26(0x391)](a2_0x1eae26(0x343))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x376),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1eae26(0x1ea)](async(_0xea3f9d,_0x570ce0)=>{const _0x4ecae4=a2_0x1eae26,_0x416bf4=new AgentCloneCommand(),_0x266d02=program[_0x4ecae4(0x2a8)](),_0x4f9f30=await createTDXInstance(_0x266d02),_0x2bebb3=await _0x416bf4['run']({'options':{..._0x266d02,..._0x570ce0},'args':_0xea3f9d?[_0xea3f9d]:[],'tdx':_0x4f9f30});process[_0x4ecae4(0x201)](_0x2bebb3);}),agentSyncCmd[a2_0x1eae26(0x3f0)]('list\x20[pattern]')[a2_0x1eae26(0x391)]('List\x20agents\x20in\x20current\x20project')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x205),a2_0x1eae26(0x31a))['action'](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')['description'](a2_0x1eae26(0x3b2))['action'](async(_0x5e8e38,_0x273508)=>{const _0x5dcaa2=a2_0x1eae26,_0x77a1c9=new LLMAgentShowCommand(),_0x380109=program[_0x5dcaa2(0x2a8)](),_0x3b3ed4=await createTDXInstance(_0x380109),_0x4ba51e=await _0x77a1c9[_0x5dcaa2(0x228)]({'options':{..._0x380109,..._0x273508},'args':[_0x5e8e38],'tdx':_0x3b3ed4});process['exit'](_0x4ba51e);}),agentSyncCmd[a2_0x1eae26(0x3f0)](a2_0x1eae26(0x215))[a2_0x1eae26(0x391)](a2_0x1eae26(0x23c))[a2_0x1eae26(0x1f7)]('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x37d),a2_0x1eae26(0x1e9),a2_0x1eae26(0x360))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x3cc),a2_0x1eae26(0x3b4))[a2_0x1eae26(0x1f7)](a2_0x1eae26(0x2c4),a2_0x1eae26(0x1f9),'4')[a2_0x1eae26(0x1f7)]('--temperature\x20<n>',a2_0x1eae26(0x1de),a2_0x1eae26(0x3bc))[a2_0x1eae26(0x1ea)](async(_0x47a94f,_0x575c1b)=>{const _0x1a6004=a2_0x1eae26,_0x3df752=new LLMAgentCreateCommand(),_0x553d9d=program[_0x1a6004(0x2a8)](),_0x216466=await createTDXInstance(_0x553d9d),_0x501ae8=await _0x3df752[_0x1a6004(0x228)]({'options':{..._0x553d9d,..._0x575c1b},'args':[_0x47a94f],'tdx':_0x216466});process[_0x1a6004(0x201)](_0x501ae8);}),agentSyncCmd[a2_0x1eae26(0x3f0)]('update\x20<agent-name>')['description'](a2_0x1eae26(0x2c1))['option'](a2_0x1eae26(0x266),a2_0x1eae26(0x221))['option']('--prompt\x20<text>','Agent\x20prompt/instructions')['option'](a2_0x1eae26(0x332),'Agent\x20description')['option'](a2_0x1eae26(0x3cc),a2_0x1eae26(0x3b4))[a2_0x1eae26(0x1ea)](async(_0x23d1db,_0x49e825)=>{const _0xb66115=a2_0x1eae26,_0x558c4d=new LLMAgentUpdateCommand(),_0x50d7d3=program[_0xb66115(0x2a8)](),_0x4d7f35=await createTDXInstance(_0x50d7d3),_0x961622=await _0x558c4d['run']({'options':{..._0x50d7d3,..._0x49e825},'args':[_0x23d1db],'tdx':_0x4d7f35});process[_0xb66115(0x201)](_0x961622);}),agentSyncCmd[a2_0x1eae26(0x3f0)]('delete\x20<agent-name>')[a2_0x1eae26(0x391)](a2_0x1eae26(0x2f7))['action'](async(_0x176bb7,_0x554941)=>{const _0x4a21c6=a2_0x1eae26,_0x326157=new LLMAgentDeleteCommand(),_0x43dd50=program[_0x4a21c6(0x2a8)](),_0x279241=await createTDXInstance(_0x43dd50),_0x5c83bb=await _0x326157[_0x4a21c6(0x228)]({'options':{..._0x43dd50,..._0x554941},'args':[_0x176bb7],'tdx':_0x279241});process[_0x4a21c6(0x201)](_0x5c83bb);});export{program};export function runCLI(){const _0x2d7f59=a2_0x1eae26;program['parse'](process[_0x2d7f59(0x270)]);!process[_0x2d7f59(0x270)]['slice'](0x2)[_0x2d7f59(0x244)]&&program[_0x2d7f59(0x1f2)]();const _0x3a6097=packageJson[_0x2d7f59(0x3d3)];process[_0x2d7f59(0x3d8)][_0x2d7f59(0x32d)]&&process['argv']['length']>0x2&&!_0x3a6097[_0x2d7f59(0x395)](_0x2d7f59(0x2f4))&&checkForUpdate(_0x3a6097)[_0x2d7f59(0x24e)](_0x368a28=>{_0x368a28&&displayUpdateNotification(_0x368a28);})[_0x2d7f59(0x346)](()=>{});}