@treasuredata/tdx 0.28.2 → 0.28.4

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 (184) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-validate-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/mcp-command.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profile-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/schedule-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pull-command.js +1 -1
  37. package/dist/commands/segment-push-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segment-validate-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/status-command.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/unset-command.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/command-output.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/connection-cache.js +1 -1
  53. package/dist/core/constants.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/core/version.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/mcp/server.js +1 -1
  64. package/dist/mcp/tools/index.js +1 -1
  65. package/dist/mcp/tools/tdx-run.js +1 -1
  66. package/dist/mcp/tools/tdx-search.js +1 -1
  67. package/dist/mcp/utils.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/agent/test/evaluator.js +1 -1
  75. package/dist/sdk/agent/test/executor.js +1 -1
  76. package/dist/sdk/agent/test/index.js +1 -1
  77. package/dist/sdk/agent/test/output.js +1 -1
  78. package/dist/sdk/agent/test/parser.js +1 -1
  79. package/dist/sdk/agent/tool-target-registry.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/client/cdp-api-client.js +1 -1
  82. package/dist/sdk/client/delivery-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/delivery.js +1 -1
  94. package/dist/sdk/engage/campaign-pull.js +1 -1
  95. package/dist/sdk/engage/campaign-push.js +1 -1
  96. package/dist/sdk/engage/campaign-validator.js +1 -1
  97. package/dist/sdk/engage/campaign-yaml.js +1 -1
  98. package/dist/sdk/engage/types/campaign-def.js +1 -1
  99. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  100. package/dist/sdk/engage.js +1 -1
  101. package/dist/sdk/errors.js +1 -1
  102. package/dist/sdk/index.js +1 -1
  103. package/dist/sdk/io/index.js +1 -1
  104. package/dist/sdk/io/node-filesystem.js +1 -1
  105. package/dist/sdk/job.js +1 -1
  106. package/dist/sdk/journey.js +1 -1
  107. package/dist/sdk/llm/chat-cache.js +1 -1
  108. package/dist/sdk/llm/index.js +1 -1
  109. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  110. package/dist/sdk/llm/model-factors.js +1 -1
  111. package/dist/sdk/personalization.js +1 -1
  112. package/dist/sdk/query/index.js +1 -1
  113. package/dist/sdk/query/sql-parser.js +1 -1
  114. package/dist/sdk/realtime.js +1 -1
  115. package/dist/sdk/schedule.js +1 -1
  116. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  117. package/dist/sdk/segment/fields-display.js +1 -1
  118. package/dist/sdk/segment/file-discovery.js +1 -1
  119. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  120. package/dist/sdk/segment/journey-utils.js +1 -1
  121. package/dist/sdk/segment/journey-utils.js.map +1 -1
  122. package/dist/sdk/segment/journey-validator.js +1 -1
  123. package/dist/sdk/segment/journey-validator.js.map +1 -1
  124. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  125. package/dist/sdk/segment/journey-yaml.js +1 -1
  126. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  127. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  128. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  129. package/dist/sdk/segment/pull-workflow.js +1 -1
  130. package/dist/sdk/segment/push-recovery.js +1 -1
  131. package/dist/sdk/segment/push-workflow.js +1 -1
  132. package/dist/sdk/segment/resolution-context.js +1 -1
  133. package/dist/sdk/segment/segment-path-parser.js +1 -1
  134. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  135. package/dist/sdk/segment/target-resolution.js +1 -1
  136. package/dist/sdk/segment/tdx-config.js +1 -1
  137. package/dist/sdk/segment/validate-files.js +1 -1
  138. package/dist/sdk/segment/yaml-validator.js +1 -1
  139. package/dist/sdk/segment.js +1 -1
  140. package/dist/sdk/types/index.js +1 -1
  141. package/dist/sdk/types/progress.js +1 -1
  142. package/dist/sdk/user.js +1 -1
  143. package/dist/sdk/util/format-detector.js +1 -1
  144. package/dist/sdk/util/formatters.js +1 -1
  145. package/dist/sdk/util/index.js +1 -1
  146. package/dist/sdk/util/tree-formatter.js +1 -1
  147. package/dist/sdk/workflow/archive-validation.js +1 -1
  148. package/dist/sdk/workflow/clone-workflow.js +1 -1
  149. package/dist/sdk/workflow/index.js +1 -1
  150. package/dist/sdk/workflow/pull-workflow.js +1 -1
  151. package/dist/sdk/workflow/push-workflow.js +1 -1
  152. package/dist/sdk/workflow/tdx-config.js +1 -1
  153. package/dist/sdk/workflow/workflow-utils.js +1 -1
  154. package/dist/test-utils/command-runner.js +1 -1
  155. package/dist/test-utils/factories.js +1 -1
  156. package/dist/test-utils/fixtures.js +1 -1
  157. package/dist/test-utils/http-mock.js +1 -1
  158. package/dist/test-utils/index.js +1 -1
  159. package/dist/utils/async.js +1 -1
  160. package/dist/utils/colors.js +1 -1
  161. package/dist/utils/diff.js +1 -1
  162. package/dist/utils/file-permissions.js +1 -1
  163. package/dist/utils/global-cache.js +1 -1
  164. package/dist/utils/json-loader.js +1 -1
  165. package/dist/utils/local-cache.js +1 -1
  166. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  167. package/dist/utils/logger/formatters/index.js +1 -1
  168. package/dist/utils/logger/handlers/console-handler.js +1 -1
  169. package/dist/utils/logger/handlers/file-handler.js +1 -1
  170. package/dist/utils/logger/handlers/index.js +1 -1
  171. package/dist/utils/logger/handlers/null-handler.js +1 -1
  172. package/dist/utils/logger/index.js +1 -1
  173. package/dist/utils/logger/logger.js +1 -1
  174. package/dist/utils/logger/types.js +1 -1
  175. package/dist/utils/option-validation.js +1 -1
  176. package/dist/utils/process.js +1 -1
  177. package/dist/utils/prompt.js +1 -1
  178. package/dist/utils/spinner.js +1 -1
  179. package/dist/utils/sse-parser.js +1 -1
  180. package/dist/utils/string-utils.js +1 -1
  181. package/dist/utils/table-ref-parser.js +1 -1
  182. package/dist/utils/tdx-logger.js +1 -1
  183. package/dist/utils/version-check.js +1 -1
  184. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x1c592c=a2_0x1583;(function(_0xfe5787,_0x559f90){const _0x96713b=a2_0x1583,_0x2b6c9f=_0xfe5787();while(!![]){try{const _0x17dbab=-parseInt(_0x96713b(0x2f6))/0x1+parseInt(_0x96713b(0x33b))/0x2*(parseInt(_0x96713b(0x1c9))/0x3)+parseInt(_0x96713b(0x2ff))/0x4*(-parseInt(_0x96713b(0x140))/0x5)+parseInt(_0x96713b(0x1da))/0x6*(parseInt(_0x96713b(0x33d))/0x7)+-parseInt(_0x96713b(0xc9))/0x8*(parseInt(_0x96713b(0x275))/0x9)+-parseInt(_0x96713b(0x2f8))/0xa+parseInt(_0x96713b(0xfb))/0xb;if(_0x17dbab===_0x559f90)break;else _0x2b6c9f['push'](_0x2b6c9f['shift']());}catch(_0x4973e1){_0x2b6c9f['push'](_0x2b6c9f['shift']());}}}(a2_0x209c,0x9ba55));import{Command}from'commander';import{existsSync,statSync}from'fs';import{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{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}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,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}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{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.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{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-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{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x1c592c(0x2ea)][a2_0x1c592c(0x341)](a2_0x1c592c(0x2ce))){let versionOutput=a2_0x1c592c(0x36b)+currentVersion;buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x1c592c(0x2c0)])&&(versionOutput+='\x20('+buildInfo[a2_0x1c592c(0x2c0)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x1c592c(0x1be)+buildInfo[a2_0x1c592c(0x238)]),console['log'](versionOutput),process[a2_0x1c592c(0x1d2)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x1c592c(0x11b);buildInfo['gitRevision']&&!currentVersion[a2_0x1c592c(0x341)](buildInfo['gitRevision'])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x1c592c(0x2c0)]+')':description+=a2_0x1c592c(0x33f)+currentVersion;program[a2_0x1c592c(0x26e)]('tdx')[a2_0x1c592c(0x28f)](description),program['option'](a2_0x1c592c(0x1f8),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x1c592c(0x2a1)]('-p,\x20--profile\x20<name>',a2_0x1c592c(0x23f))['option'](a2_0x1c592c(0x277),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x138),a2_0x1c592c(0x35c))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2e8),a2_0x1c592c(0x1cd))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x205),a2_0x1c592c(0x37e))['option'](a2_0x1c592c(0x162),a2_0x1c592c(0x2d3))['option'](a2_0x1c592c(0x2a2),a2_0x1c592c(0x14b))['option']('--output\x20<file>',a2_0x1c592c(0x2b6))[a2_0x1c592c(0x2a1)]('--limit\x20<number>',a2_0x1c592c(0x2a6))[a2_0x1c592c(0x2a1)]('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x1c592c(0x2a1)]('--no-color',a2_0x1c592c(0x1cc),![])[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x240),a2_0x1c592c(0x2e6),![])['option'](a2_0x1c592c(0x31a),a2_0x1c592c(0x144))['option']('--trace',a2_0x1c592c(0x119))[a2_0x1c592c(0x2a1)]('--timeout\x20<seconds>',a2_0x1c592c(0x20b),'30')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0x31e),![])[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1db),'Skip\x20confirmation\x20prompts',![])[a2_0x1c592c(0x2a1)]('--session\x20<id>',a2_0x1c592c(0x261))['option'](a2_0x1c592c(0x37f),a2_0x1c592c(0x114))[a2_0x1c592c(0x2a1)]('--llm-project\x20<name>',a2_0x1c592c(0x338)),program[a2_0x1c592c(0x2af)]({'formatHelp':(_0x328afc,_0x7abbf1)=>{const _0x5e708c=a2_0x1c592c,_0x3c1c00=_0x7abbf1[_0x5e708c(0x109)](_0x328afc,_0x7abbf1),_0x3970ba=0x2,_0x5870b7=0x2;function _0x409ed4(_0xd89831){const _0x3f7b1=_0xd89831;return!!(_0x3f7b1['_hidden']||_0x3f7b1['hidden']);}function _0xaedc(_0x482bbf,_0x31262f){const _0x4dbab2=_0x5e708c;if(_0x31262f){const _0x25973c=''+_0x482bbf[_0x4dbab2(0x283)](_0x3c1c00+_0x5870b7)+_0x31262f;return _0x25973c;}return _0x482bbf;}function _0x1136e1(_0x3a3bde){const _0x5c9d14=_0x5e708c;return _0x3a3bde[_0x5c9d14(0x23e)]('\x0a')[_0x5c9d14(0x216)](/^/gm,'\x20'['repeat'](_0x3970ba));}const _0x27493e=[];_0x27493e[_0x5e708c(0x171)](_0x5e708c(0xea)+_0x7abbf1[_0x5e708c(0x342)](_0x328afc));const _0x401d68=_0x7abbf1[_0x5e708c(0x374)](_0x328afc);_0x401d68&&(_0x27493e[_0x5e708c(0x171)](''),_0x27493e[_0x5e708c(0x171)](_0x401d68));const _0x5e19d2=_0x328afc['commands'][_0x5e708c(0x1ee)](_0x4ba9b0=>!_0x409ed4(_0x4ba9b0));if(_0x5e19d2['length']>0x0){if(_0x328afc[_0x5e708c(0x26e)]()===_0x5e708c(0x379)){const _0x3e89ac=_0x328afc[_0x5e708c(0x127)](),_0x4bfb11=!_0x3e89ac[_0x5e708c(0x1a3)]&&process[_0x5e708c(0x135)]['isTTY'],_0x25f13c=COMMAND_CATEGORIES,_0x3505ec=(_0x381bdd,_0xe08832)=>_0x4bfb11?_0xe08832(_0x381bdd):_0x381bdd,_0x1cab97=new Map();_0x5e19d2[_0x5e708c(0x384)](_0x6753b4=>{const _0x26524d=_0x5e708c;_0x1cab97[_0x26524d(0x231)](_0x6753b4[_0x26524d(0x26e)](),_0x6753b4);}),_0x25f13c[_0x5e708c(0x384)](_0x207198=>{const _0x41b6bd=_0x5e708c,_0x300738=_0x207198[_0x41b6bd(0xe2)][_0x41b6bd(0x33a)](_0x43cc32=>_0x1cab97[_0x41b6bd(0x1bf)](_0x43cc32)??[]);if(_0x300738['length']>0x0){_0x27493e[_0x41b6bd(0x171)](''),_0x27493e[_0x41b6bd(0x171)](_0x3505ec(_0x207198[_0x41b6bd(0x26e)]+':',_0x207198[_0x41b6bd(0x197)]));const _0x597348=_0x300738[_0x41b6bd(0x13a)](_0x2202bf=>{const _0x4dc05f=_0x41b6bd,_0x4f1a8e=_0x7abbf1['subcommandTerm'](_0x2202bf),_0xed31e0=_0x7abbf1[_0x4dc05f(0x30b)](_0x2202bf);return _0xaedc(_0x4f1a8e,_0xed31e0);});_0x27493e[_0x41b6bd(0x171)](_0x1136e1(_0x597348));}}),_0x27493e['push'](''),_0x27493e['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x2516a0=_0x5e19d2['map'](_0x58d1a7=>{const _0x28d97e=_0x5e708c,_0x547f86=_0x7abbf1[_0x28d97e(0x362)](_0x58d1a7),_0x232eb0=_0x7abbf1[_0x28d97e(0x30b)](_0x58d1a7);return _0xaedc(_0x547f86,_0x232eb0);});_0x27493e[_0x5e708c(0x171)](''),_0x27493e[_0x5e708c(0x171)](_0x5e708c(0xd7)),_0x27493e[_0x5e708c(0x171)](_0x1136e1(_0x2516a0));}}if(showBriefHelp&&_0x328afc['name']()===_0x5e708c(0x379))_0x27493e[_0x5e708c(0x171)](''),_0x27493e['push'](_0x5e708c(0x1bc));else{const _0x5077d2=_0x328afc[_0x5e708c(0x212)][_0x5e708c(0x1ee)](_0x3ac897=>!_0x409ed4(_0x3ac897));if(_0x5077d2[_0x5e708c(0x115)]>0x0){const _0x204ecb=_0x5077d2[_0x5e708c(0x13a)](_0x5b6801=>{const _0x2b1037=_0x5e708c,_0x4cc2d4=_0x7abbf1[_0x2b1037(0xd6)](_0x5b6801),_0x4c36b9=_0x7abbf1[_0x2b1037(0x346)](_0x5b6801);return _0xaedc(_0x4cc2d4,_0x4c36b9);});_0x27493e[_0x5e708c(0x171)](''),_0x27493e[_0x5e708c(0x171)](_0x5e708c(0x11a)),_0x27493e[_0x5e708c(0x171)](_0x1136e1(_0x204ecb));}}const _0x2eb6ca=(_0x328afc[_0x5e708c(0x2ae)]||[])[_0x5e708c(0x1ee)](_0x416958=>!_0x409ed4(_0x416958));if(_0x2eb6ca[_0x5e708c(0x115)]>0x0){const _0x429809=_0x2eb6ca[_0x5e708c(0x13a)](_0x1c8a42=>{const _0x21bc4e=_0x5e708c,_0x485461=_0x7abbf1[_0x21bc4e(0x29f)](_0x1c8a42),_0x15786b=_0x7abbf1[_0x21bc4e(0x15e)](_0x1c8a42);return _0xaedc(_0x485461,_0x15786b);});_0x27493e[_0x5e708c(0x171)](''),_0x27493e[_0x5e708c(0x171)](_0x5e708c(0x304)),_0x27493e[_0x5e708c(0x171)](_0x1136e1(_0x429809));}return _0x27493e[_0x5e708c(0x23e)]('\x0a')+'\x0a';},'subcommandTerm':_0x1aa494=>{const _0x5f1340=a2_0x1c592c,_0x4482f6=(_0x1aa494['registeredArguments']||[])[_0x5f1340(0x13a)](_0x3888ec=>_0x3888ec[_0x5f1340(0x35d)]?'<'+_0x3888ec[_0x5f1340(0x26e)]()+'>':'['+_0x3888ec['name']()+']')['join']('\x20'),_0x4d3c32=_0x1aa494['aliases'](),_0x15b946=_0x4d3c32['length']>0x0?_0x1aa494[_0x5f1340(0x26e)]()+',\x20'+_0x4d3c32[_0x5f1340(0x23e)](',\x20'):_0x1aa494[_0x5f1340(0x26e)]();return _0x4482f6?_0x15b946+'\x20'+_0x4482f6:_0x15b946;}}),program['hook'](a2_0x1c592c(0x2b3),_0x2f0534=>{const _0x372d59=a2_0x1c592c,_0x48c433=_0x2f0534[_0x372d59(0x127)]();if(_0x48c433[_0x372d59(0x30f)]){const _0x4c0799=resolve(_0x48c433[_0x372d59(0x30f)]),_0x110d59=_0x4c0799!==_0x48c433[_0x372d59(0x30f)]?_0x372d59(0x1e5)+_0x4c0799+')':'';if(!existsSync(_0x4c0799))throw new SDKError(ErrorCode[_0x372d59(0x270)],_0x372d59(0xd4)+_0x48c433['directory']+_0x110d59,undefined,{'helpText':_0x372d59(0x21b)});const _0x150c87=statSync(_0x4c0799);if(!_0x150c87['isDirectory']())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x372d59(0x1c4)+_0x48c433[_0x372d59(0x30f)]+_0x110d59,undefined,{'helpText':_0x372d59(0x210)});process[_0x372d59(0x16b)](_0x4c0799);}if(!_0x48c433[_0x372d59(0x271)]){if(_0x48c433[_0x372d59(0x242)])_0x48c433[_0x372d59(0x271)]=_0x372d59(0x242);else{if(_0x48c433[_0x372d59(0x25e)])_0x48c433[_0x372d59(0x271)]=_0x372d59(0x25e);else{if(_0x48c433[_0x372d59(0x18d)])_0x48c433[_0x372d59(0x271)]='jsonl';else _0x48c433[_0x372d59(0x263)]&&(_0x48c433['format']=_0x372d59(0x263));}}}if(_0x48c433['trace'])_0x48c433[_0x372d59(0x265)]=LogLevel[_0x372d59(0x104)];else{if(_0x48c433[_0x372d59(0x347)])_0x48c433[_0x372d59(0x265)]=LogLevel[_0x372d59(0x2d0)];else _0x48c433[_0x372d59(0x265)]===undefined&&(_0x48c433['logLevel']=LogLevel['INFO']);}});async function createTDXInstance(_0xf1704c){const _0x418e43=a2_0x1c592c,_0x2b122a=await GlobalContext[_0x418e43(0x1b7)](_0xf1704c);return _0x2b122a['injectIntoOptions'](_0xf1704c),TDX['create']({'site':_0x2b122a[_0x418e43(0x2c7)],'apiKey':_0x2b122a[_0x418e43(0x233)],'logLevel':_0x2b122a[_0x418e43(0x265)],'profile':_0x2b122a[_0x418e43(0x1d8)]});}const databaseCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x10f))[a2_0x1c592c(0x180)]('db')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x330)),databaseListAction=async(_0x23ca92,_0x4b65c3)=>{const _0x3bf4db=a2_0x1c592c,_0x5b512f=new DatabasesCommand(),_0x14169c=program[_0x3bf4db(0x127)](),_0x20afe6=await createTDXInstance(_0x14169c),_0x2b768d=await _0x5b512f[_0x3bf4db(0x1b8)]({'options':{..._0x14169c,..._0x4b65c3},'args':_0x23ca92?[_0x23ca92]:[],'tdx':_0x20afe6});gracefulExit(_0x2b768d);};databaseCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1c592c(0x1fa)](databaseListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x316),{'hidden':!![]})[a2_0x1c592c(0x28f)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program[a2_0x1c592c(0x331)]('chat\x20[message...]')['description'](a2_0x1c592c(0x1f9))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x15a),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2a4),a2_0x1c592c(0x173))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x286),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x327),a2_0x1c592c(0x34d))[a2_0x1c592c(0x1fa)](async(_0x325a49,_0x13f7e8)=>{const _0x409255=a2_0x1c592c,_0xe7fb01=program[_0x409255(0x127)](),_0x58e0c6=await createTDXInstance(_0xe7fb01);if(_0x325a49[0x0]===_0x409255(0xdb)){const _0x3a3b7f=new ChatCreateCommand();gracefulExit(await _0x3a3b7f['run']({'options':{..._0xe7fb01,..._0x13f7e8},'args':_0x325a49[_0x409255(0x1d3)](0x1),'tdx':_0x58e0c6}));return;}const _0x29bb2d=new ChatCommand(),_0x3aaf87=await _0x29bb2d[_0x409255(0x1b8)]({'options':{..._0xe7fb01,..._0x13f7e8},'args':_0x325a49,'tdx':_0x58e0c6});gracefulExit(_0x3aaf87);});const apiCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x151))[a2_0x1c592c(0x22f)](a2_0x1c592c(0x105))[a2_0x1c592c(0x1b9)](a2_0x1c592c(0x289),a2_0x1c592c(0x371))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1ab),a2_0x1c592c(0x202),a2_0x1c592c(0x21a))[a2_0x1c592c(0x2a1)]('--data\x20<data>',a2_0x1c592c(0x1ff))[a2_0x1c592c(0x2a1)]('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x24d),a2_0x1c592c(0x15b),(_0x47a09e,_0x202af2)=>{return _0x202af2?[..._0x202af2,_0x47a09e]:[_0x47a09e];})[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x23d),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x1c592c(0x1fa)](async(_0x22c9cf,_0x352135)=>{const _0x5ec362=a2_0x1c592c;if(!_0x22c9cf){apiCmd[_0x5ec362(0xf3)]();return;}const _0xe1a57e=new ApiCommand(),_0x547aae=program['opts'](),_0x5edeb0=await createTDXInstance(_0x547aae),_0xe7c68f=await _0xe1a57e[_0x5ec362(0x1b8)]({'options':{..._0x547aae,..._0x352135},'args':[_0x22c9cf],'tdx':_0x5edeb0});gracefulExit(_0xe7c68f);});program['command'](a2_0x1c592c(0x28c))['description']('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')['addHelpText'](a2_0x1c592c(0x289),a2_0x1c592c(0x30e))[a2_0x1c592c(0x1fa)](async _0x1bb781=>{const _0x214532=a2_0x1c592c,_0x4ecd6f=new MCPCommand(),_0xe2b8bd=program[_0x214532(0x127)](),_0x31d34b=await createTDXInstance(_0xe2b8bd),_0x145cd7=await _0x4ecd6f[_0x214532(0x1b8)]({'options':{..._0xe2b8bd,..._0x1bb781},'args':[],'tdx':_0x31d34b});gracefulExit(_0x145cd7);});const tableCmd=program['command'](a2_0x1c592c(0x242))[a2_0x1c592c(0x28f)]('Table\x20management\x20commands'),tableListAction=async(_0x266507,_0x28bf36)=>{const _0x4cfc51=a2_0x1c592c,_0x11bb4e=new TablesCommand(),_0xa91db=program[_0x4cfc51(0x127)](),_0x19d695=await createTDXInstance(_0xa91db);_0x28bf36['in']&&(_0x28bf36['database']=_0x28bf36['in']);const _0x5ec8e1=await _0x11bb4e[_0x4cfc51(0x1b8)]({'options':{..._0xa91db,..._0x28bf36},'args':_0x266507?[_0x266507]:[],'tdx':_0x19d695});gracefulExit(_0x5ec8e1);};tableCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x26a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x349),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c592c(0x1fa)](tableListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x296),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0xef))['option']('-d,\x20--database\x20<database>',a2_0x1c592c(0x351))['option']('--in\x20<database>',a2_0x1c592c(0x255))[a2_0x1c592c(0x1fa)](tableListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x163))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xd0))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x26a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x349),a2_0x1c592c(0x255))[a2_0x1c592c(0x1fa)](async(_0x5ac333,_0x3d502c)=>{const _0x1a8336=a2_0x1c592c,_0x3649ae=new ShowCommand(),_0x128cc1=program[_0x1a8336(0x127)](),_0x9a6945=await createTDXInstance(_0x128cc1);_0x3d502c['in']&&(_0x3d502c[_0x1a8336(0x10f)]=_0x3d502c['in']);const _0x23f6cc=await _0x3649ae[_0x1a8336(0x1b8)]({'options':{..._0x128cc1,..._0x3d502c},'args':_0x5ac333?[_0x5ac333]:[],'tdx':_0x9a6945});gracefulExit(_0x23f6cc);}),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x12e))[a2_0x1c592c(0x180)](a2_0x1c592c(0x369))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x23c))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x26a),a2_0x1c592c(0x2cc))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x349),a2_0x1c592c(0x255))['action'](async(_0x5d760f,_0x4f8d9f)=>{const _0x3f5c96=a2_0x1c592c,_0x457ea5=new DescribeCommand(),_0x15d3b5=program[_0x3f5c96(0x127)](),_0x12a614=await createTDXInstance(_0x15d3b5);_0x4f8d9f['in']&&(_0x4f8d9f[_0x3f5c96(0x10f)]=_0x4f8d9f['in']);const _0x23b018=await _0x457ea5[_0x3f5c96(0x1b8)]({'options':{..._0x15d3b5,..._0x4f8d9f},'args':_0x5d760f?[_0x5d760f]:[],'tdx':_0x12a614});gracefulExit(_0x23b018);}),program[a2_0x1c592c(0x331)]('query\x20[sql]')['description'](a2_0x1c592c(0x164))['option'](a2_0x1c592c(0x26a),a2_0x1c592c(0x201))[a2_0x1c592c(0x2a1)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2fc),a2_0x1c592c(0x2fe))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xff),a2_0x1c592c(0x323))['option'](a2_0x1c592c(0x232),a2_0x1c592c(0x13f),'40')[a2_0x1c592c(0x1fa)](async(_0x14da06,_0x5c9c41)=>{const _0x521ac4=a2_0x1c592c,_0x3f7abd=new QueryCommand(),_0x3ae04e=program[_0x521ac4(0x127)](),_0x143ce6=await createTDXInstance(_0x3ae04e);_0x5c9c41['in']&&(_0x5c9c41[_0x521ac4(0x10f)]=_0x5c9c41['in']);const _0x205d05=await _0x3f7abd[_0x521ac4(0x1b8)]({'options':{..._0x3ae04e,..._0x5c9c41},'args':_0x14da06?[_0x14da06]:[],'tdx':_0x143ce6});gracefulExit(_0x205d05);});const segmentCmd=program['command'](a2_0x1c592c(0x133))[a2_0x1c592c(0x180)]('sg')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x37a)),segmentListAction=async(_0xd8c697,_0x2e3b87)=>{const _0x465de6=a2_0x1c592c,_0x4dc704=new SegmentsCommand(),_0x1ee8ef=program['opts'](),_0x4fb9d6=await createTDXInstance(_0x1ee8ef),_0xc723ba=await _0x4dc704[_0x465de6(0x1b8)]({'options':{..._0x1ee8ef,..._0x2e3b87},'args':_0xd8c697?[_0xd8c697]:[],'tdx':_0x4fb9d6});gracefulExit(_0xc723ba);};segmentCmd[a2_0x1c592c(0x331)]('list\x20[path]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x116))['option'](a2_0x1c592c(0x1e7),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x1c592c(0x31f),a2_0x1c592c(0x236),'10')[a2_0x1c592c(0x1fa)](segmentListAction),program['command'](a2_0x1c592c(0x2d7),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x36f))['option']('-r,\x20--recursive',a2_0x1c592c(0x2ee))[a2_0x1c592c(0x2a1)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x1c592c(0x1fa)](segmentListAction),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x177),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x167))[a2_0x1c592c(0x1fa)](async(_0x2a0e7f,_0x38ebbe)=>{const _0x57bfe3=a2_0x1c592c,_0xfc4046=new SegmentUseCommand(),_0x39f44f=program[_0x57bfe3(0x127)](),_0x555146=await createTDXInstance(_0x39f44f),_0x294208=await _0xfc4046[_0x57bfe3(0x1b8)]({'options':{..._0x39f44f,..._0x38ebbe},'args':[_0x2a0e7f],'tdx':_0x555146});gracefulExit(_0x294208);});const segmentViewAction=async(_0x129801,_0x43e365)=>{const _0x233103=a2_0x1c592c,_0xd555e3=new SegmentViewCommand(),_0x1b0475=program[_0x233103(0x127)](),_0x34d7a7=await createTDXInstance(_0x1b0475),_0x62a0a8=await _0xd555e3['run']({'options':{..._0x1b0475,..._0x43e365},'args':_0x129801?[_0x129801]:[],'tdx':_0x34d7a7});gracefulExit(_0x62a0a8);};segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x29a))['description'](a2_0x1c592c(0x175))['option'](a2_0x1c592c(0x14e),a2_0x1c592c(0x276))[a2_0x1c592c(0x1fa)](segmentViewAction),segmentCmd['command'](a2_0x1c592c(0x159),{'hidden':!![]})[a2_0x1c592c(0x180)](a2_0x1c592c(0x294))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x14e),a2_0x1c592c(0x276))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x12d))[a2_0x1c592c(0x1fa)](segmentViewAction),segmentCmd['command']('desc\x20[segment_name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x209))[a2_0x1c592c(0x1fa)](async(_0x50f6a9,_0x1dcfab)=>{const _0xc66601=new SegmentDescCommand(),_0x191d25=program['opts'](),_0x4b9987=await createTDXInstance(_0x191d25),_0x1b7850=await _0xc66601['run']({'options':{..._0x191d25,..._0x1dcfab},'args':_0x50f6a9?[_0x50f6a9]:[],'tdx':_0x4b9987});gracefulExit(_0x1b7850);}),segmentCmd['command'](a2_0x1c592c(0x1dd))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x353))[a2_0x1c592c(0x1fa)](async(_0x375ee0,_0x1f7338)=>{const _0x216a85=a2_0x1c592c,_0x33a351=new SegmentShowCommand(),_0x6f3cfa=program[_0x216a85(0x127)](),_0x36a1d7=await createTDXInstance(_0x6f3cfa),_0x459573=await _0x33a351[_0x216a85(0x1b8)]({'options':{..._0x6f3cfa,..._0x1f7338},'args':_0x375ee0?[_0x375ee0]:[],'tdx':_0x36a1d7});gracefulExit(_0x459573);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})['description'](a2_0x1c592c(0x18b))['action'](async(_0x1a7af1,_0x136d4e)=>{const _0x23cc27=a2_0x1c592c,_0x173331=new SegmentFolderListCommand(),_0x42b14c=program[_0x23cc27(0x127)](),_0xb8495c=await createTDXInstance(_0x42b14c),_0x14204d=await _0x173331[_0x23cc27(0x1b8)]({'options':{..._0x42b14c,..._0x136d4e},'args':[_0x1a7af1],'tdx':_0xb8495c});gracefulExit(_0x14204d);});const folderCmd=segmentCmd[a2_0x1c592c(0x331)]('folder',{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x25d));folderCmd[a2_0x1c592c(0x331)]('show\x20<folder_ref>')['description'](a2_0x1c592c(0x194))[a2_0x1c592c(0x1fa)](async(_0x433c9f,_0x3f4cff)=>{const _0x10b546=a2_0x1c592c,_0x177513=new SegmentFolderShowCommand(),_0x18b217=program['opts'](),_0x16b410=await createTDXInstance(_0x18b217),_0x5ec29a=await _0x177513[_0x10b546(0x1b8)]({'options':{..._0x18b217,..._0x3f4cff},'args':[_0x433c9f],'tdx':_0x16b410});gracefulExit(_0x5ec29a);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x27f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x111))[a2_0x1c592c(0x1fa)](async(_0x125ca5,_0x5024c9)=>{const _0x52f3a5=a2_0x1c592c,_0x2853d6=new SegmentSQLCommand(),_0x50b037=program[_0x52f3a5(0x127)](),_0x4fafae=await createTDXInstance(_0x50b037),_0x44f6f2=await _0x2853d6[_0x52f3a5(0x1b8)]({'options':{..._0x50b037,..._0x5024c9},'args':_0x125ca5?[_0x125ca5]:[],'tdx':_0x4fafae});gracefulExit(_0x44f6f2);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x18a))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x15d))[a2_0x1c592c(0x1fa)](async(_0x29a3c0,_0x1f4cc6)=>{const _0x732f6c=a2_0x1c592c,_0x2fe7f9=new SegmentFieldsCommand(),_0x3a37ca=program[_0x732f6c(0x127)](),_0x1485d4=await createTDXInstance(_0x3a37ca),_0x2d071d=await _0x2fe7f9[_0x732f6c(0x1b8)]({'options':{..._0x3a37ca,..._0x1f4cc6},'args':_0x29a3c0?[_0x29a3c0]:[],'tdx':_0x1485d4});gracefulExit(_0x2d071d);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xca))['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option']('--dry-run',a2_0x1c592c(0x30c))[a2_0x1c592c(0x1fa)](async(_0x5f2a6a,_0x3d9b20)=>{const _0xf33ad4=a2_0x1c592c,_0x57b66a=new SegmentPullCommand(),_0x48aee5=program[_0xf33ad4(0x127)](),_0x16dd3d=await createTDXInstance(_0x48aee5),_0x79acac=await _0x57b66a[_0xf33ad4(0x1b8)]({'options':{..._0x48aee5,..._0x3d9b20},'args':_0x5f2a6a?[_0x5f2a6a]:[],'tdx':_0x16dd3d});gracefulExit(_0x79acac);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x228))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1f4))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1c592c(0x2a1)]('--delete',a2_0x1c592c(0x335))[a2_0x1c592c(0x1fa)](async(_0x4fbcda,_0x5e3433)=>{const _0x5bec3f=a2_0x1c592c,_0x3272fc=new SegmentPushCommand(),_0x59ad48=program[_0x5bec3f(0x127)](),_0x2b6894=await createTDXInstance(_0x59ad48),_0x1e227a=await _0x3272fc[_0x5bec3f(0x1b8)]({'options':{..._0x59ad48,..._0x5e3433},'args':_0x4fbcda?[_0x4fbcda]:[],'tdx':_0x2b6894});gracefulExit(_0x1e227a);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1d9))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x35a))[a2_0x1c592c(0x1fa)](async(_0x3d185f,_0x4e2113)=>{const _0x4bb63d=a2_0x1c592c,_0x5e58c9=new SegmentValidateCommand(),_0x3e7657=program[_0x4bb63d(0x127)](),_0x1effc4=await createTDXInstance(_0x3e7657),_0x194c03=await _0x5e58c9['run']({'options':{..._0x3e7657,..._0x4e2113},'args':_0x3d185f?[_0x3d185f]:[],'tdx':_0x1effc4});gracefulExit(_0x194c03);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x35e),{'hidden':!![]})['description']('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x1c592c(0x2a1)]('--description\x20<text>',a2_0x1c592c(0x303))['option'](a2_0x1c592c(0x1f5),a2_0x1c592c(0x128))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xf4),a2_0x1c592c(0x20f))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x24e),a2_0x1c592c(0x274))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1fe),a2_0x1c592c(0x24a))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xe8),a2_0x1c592c(0x234))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2b7),a2_0x1c592c(0x375))[a2_0x1c592c(0x1fa)](async(_0x3c4731,_0x95f7c6)=>{const _0x5d50a3=a2_0x1c592c,_0x27e590=new SegmentCreateCommand(),_0x4d6f32=program[_0x5d50a3(0x127)](),_0x4a843a=await createTDXInstance(_0x4d6f32),_0x121909=await _0x27e590['run']({'options':{..._0x4d6f32,..._0x95f7c6},'args':[_0x3c4731],'tdx':_0x4a843a});gracefulExit(_0x121909);}),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x350),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2d4))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1ac),a2_0x1c592c(0x1ca))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x112),a2_0x1c592c(0x130))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1f5),a2_0x1c592c(0x377))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xf4),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x24e),'Move\x20to\x20folder')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1fe),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x1c592c(0x1fa)](async(_0x264c2f,_0x3d0842)=>{const _0x5cb3cb=a2_0x1c592c,_0xd29d11=new SegmentUpdateCommand(),_0x69e0af=program[_0x5cb3cb(0x127)](),_0x5cd5e0=await createTDXInstance(_0x69e0af),_0x29d8e8=await _0xd29d11[_0x5cb3cb(0x1b8)]({'options':{..._0x69e0af,..._0x3d0842},'args':[_0x264c2f],'tdx':_0x5cd5e0});gracefulExit(_0x29d8e8);});const parentCmd=segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x295),{'hidden':!![]})['description'](a2_0x1c592c(0x259)),parentListAction=async(_0x47bbe2,_0x2f4a1c)=>{const _0x2c555b=new ParentSegmentListCommand(),_0x1a2e8c=program['opts'](),_0x33a4bd=await createTDXInstance(_0x1a2e8c),_0x359bd4=await _0x2c555b['run']({'options':{..._0x1a2e8c,..._0x2f4a1c},'args':_0x47bbe2?[_0x47bbe2]:[],'tdx':_0x33a4bd});gracefulExit(_0x359bd4);};parentCmd['command'](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x24f))[a2_0x1c592c(0x1fa)](parentListAction),segmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2fd),{'hidden':!![]})['description'](a2_0x1c592c(0xdd))[a2_0x1c592c(0x1fa)](parentListAction),parentCmd[a2_0x1c592c(0x331)]('pull\x20[name]')['description'](a2_0x1c592c(0x310))[a2_0x1c592c(0x2a1)]('-o,\x20--output\x20<file>',a2_0x1c592c(0xde))[a2_0x1c592c(0x1fa)](async(_0x23bc18,_0x467435)=>{const _0x1f509a=a2_0x1c592c,_0x1d6c0d=new ParentSegmentPullCommand(),_0x2a2fb1=program[_0x1f509a(0x127)](),_0x38f710=await createTDXInstance(_0x2a2fb1),_0x54003d=await _0x1d6c0d[_0x1f509a(0x1b8)]({'options':{..._0x2a2fb1,..._0x467435},'args':_0x23bc18?[_0x23bc18]:[],'tdx':_0x38f710});gracefulExit(_0x54003d);}),parentCmd['command']('push\x20[file]')[a2_0x1c592c(0x28f)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['action'](async(_0x32cd17,_0x5effd1)=>{const _0x3e6d5e=a2_0x1c592c,_0x40993f=new ParentSegmentPushCommand(),_0x10681b=program[_0x3e6d5e(0x127)](),_0x1546e4=await createTDXInstance(_0x10681b),_0x583410=await _0x40993f[_0x3e6d5e(0x1b8)]({'options':{..._0x10681b,..._0x5effd1},'args':_0x32cd17?[_0x32cd17]:[],'tdx':_0x1546e4});gracefulExit(_0x583410);}),parentCmd['command'](a2_0x1c592c(0x376))['description'](a2_0x1c592c(0x143))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x13e),a2_0x1c592c(0x229))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2d8),a2_0x1c592c(0x121))['option'](a2_0x1c592c(0x252),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x1c592c(0x204),a2_0x1c592c(0xe0))['option'](a2_0x1c592c(0x1d4),a2_0x1c592c(0x30a),a2_0x1c592c(0x17a))[a2_0x1c592c(0x1fa)](async(_0x1d7166,_0x7b446a)=>{const _0xff06f8=new ParentSegmentValidateCommand(),_0x412ccc=program['opts'](),_0x528200=await createTDXInstance(_0x412ccc),_0x3a390e=await _0xff06f8['run']({'options':{..._0x412ccc,..._0x7b446a},'args':_0x1d7166?[_0x1d7166]:[],'tdx':_0x528200});gracefulExit(_0x3a390e);}),parentCmd['command'](a2_0x1c592c(0xd5))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1e4))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x13e),a2_0x1c592c(0x34b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2d8),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x1c592c(0x2a1)]('--behavior\x20[name]',a2_0x1c592c(0x258))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x204),a2_0x1c592c(0x21f))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1d4),a2_0x1c592c(0x30a),'-1d')[a2_0x1c592c(0x1fa)](async(_0x485b22,_0x2e0915)=>{const _0x3cbe2c=a2_0x1c592c,_0x33e5dc=new ParentSegmentPreviewCommand(),_0x28b8bd=program['opts'](),_0x2a86f0=await createTDXInstance(_0x28b8bd),_0x3cfea=await _0x33e5dc[_0x3cbe2c(0x1b8)]({'options':{..._0x28b8bd,..._0x2e0915},'args':_0x485b22?[_0x485b22]:[],'tdx':_0x2a86f0});gracefulExit(_0x3cfea);}),parentCmd[a2_0x1c592c(0x331)]('run\x20[name]')[a2_0x1c592c(0x28f)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x1c592c(0x1fa)](async(_0x74a664,_0x49e0ac)=>{const _0x452200=a2_0x1c592c,_0x2d5123=new ParentSegmentRunCommand(),_0x591b6a=program['opts'](),_0x439f0d=await createTDXInstance(_0x591b6a),_0x5ee5e6=await _0x2d5123[_0x452200(0x1b8)]({'options':{..._0x591b6a,..._0x49e0ac},'args':_0x74a664?[_0x74a664]:[],'tdx':_0x439f0d});gracefulExit(_0x5ee5e6);});const parentSegmentCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x324))['alias']('ps')['description'](a2_0x1c592c(0xf1));parentSegmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x24f))[a2_0x1c592c(0x1fa)](parentListAction),parentSegmentCmd['command'](a2_0x1c592c(0x313))[a2_0x1c592c(0x28f)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1c592c(0x2a1)]('-o,\x20--output\x20<file>',a2_0x1c592c(0xe5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x215),a2_0x1c592c(0x266))[a2_0x1c592c(0x1fa)](async(_0x5c1dec,_0x378131)=>{const _0x56cb0e=a2_0x1c592c,_0x813d63=new ParentSegmentPullCommand(),_0x5b7e33=program['opts'](),_0x46349c=await createTDXInstance(_0x5b7e33),_0x244c7a=await _0x813d63[_0x56cb0e(0x1b8)]({'options':{..._0x5b7e33,..._0x378131},'args':_0x5c1dec?[_0x5c1dec]:[],'tdx':_0x46349c});gracefulExit(_0x244c7a);}),parentSegmentCmd['command'](a2_0x1c592c(0x1c2))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x31b))['action'](async(_0x19772a,_0x5652b6)=>{const _0x842a0e=a2_0x1c592c,_0x532a5d=new ParentSegmentPushCommand(),_0x3308a6=program[_0x842a0e(0x127)](),_0x3bb970=await createTDXInstance(_0x3308a6),_0x5ab372=await _0x532a5d[_0x842a0e(0x1b8)]({'options':{..._0x3308a6,..._0x5652b6},'args':_0x19772a?[_0x19772a]:[],'tdx':_0x3bb970});gracefulExit(_0x5ab372);}),parentSegmentCmd['command'](a2_0x1c592c(0x1f0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x143))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x13e),a2_0x1c592c(0x229))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2d8),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x252),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x204),a2_0x1c592c(0xe0))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1d4),a2_0x1c592c(0x30a),a2_0x1c592c(0x17a))[a2_0x1c592c(0x1fa)](async(_0xa68e57,_0x214fb0)=>{const _0x3ada81=a2_0x1c592c,_0x2506af=new ParentSegmentValidateCommand(),_0x2867a9=program[_0x3ada81(0x127)](),_0x37148f=await createTDXInstance(_0x2867a9),_0x98201b=await _0x2506af['run']({'options':{..._0x2867a9,..._0x214fb0},'args':_0xa68e57?[_0xa68e57]:[],'tdx':_0x37148f});gracefulExit(_0x98201b);}),parentSegmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xcc))[a2_0x1c592c(0x28f)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x1c592c(0x2a1)]('--master',a2_0x1c592c(0x34b))[a2_0x1c592c(0x2a1)]('--attribute\x20[name]',a2_0x1c592c(0x150))[a2_0x1c592c(0x2a1)]('--behavior\x20[name]',a2_0x1c592c(0x258))['option']('--enriched',a2_0x1c592c(0x21f))['option'](a2_0x1c592c(0x1d4),a2_0x1c592c(0x30a),a2_0x1c592c(0x17a))[a2_0x1c592c(0x1fa)](async(_0x56af6e,_0x1b92cf)=>{const _0x23172a=a2_0x1c592c,_0x134b13=new ParentSegmentPreviewCommand(),_0x44a1a1=program[_0x23172a(0x127)](),_0x77f8bd=await createTDXInstance(_0x44a1a1),_0x51163a=await _0x134b13['run']({'options':{..._0x44a1a1,..._0x1b92cf},'args':_0x56af6e?[_0x56af6e]:[],'tdx':_0x77f8bd});gracefulExit(_0x51163a);}),parentSegmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x364))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x15f))[a2_0x1c592c(0x1fa)](async(_0xd859a0,_0x44940c)=>{const _0x1cd791=a2_0x1c592c,_0x39cc7e=new ParentSegmentRunCommand(),_0x2168ca=program[_0x1cd791(0x127)](),_0x2ad782=await createTDXInstance(_0x2168ca),_0x3eec0b=await _0x39cc7e[_0x1cd791(0x1b8)]({'options':{..._0x2168ca,..._0x44940c},'args':_0xd859a0?[_0xd859a0]:[],'tdx':_0x2ad782});gracefulExit(_0x3eec0b);}),parentSegmentCmd[a2_0x1c592c(0x331)]('fields\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1a9))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x205),a2_0x1c592c(0x2aa))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x162),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x31382c,_0x4fd00b)=>{const _0x20deb6=a2_0x1c592c,_0x55ca2a=new ParentSegmentFieldsCommand(),_0x1367c7=program[_0x20deb6(0x127)](),_0x2ae83a=await createTDXInstance(_0x1367c7),_0x23ebc8=await _0x55ca2a[_0x20deb6(0x1b8)]({'options':{..._0x1367c7,..._0x4fd00b},'args':_0x31382c?[_0x31382c]:[],'tdx':_0x2ae83a});gracefulExit(_0x23ebc8);}),parentSegmentCmd['command']('view\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2bd))[a2_0x1c592c(0x2a1)]('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')['option']('--json','Output\x20as\x20JSON')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x162),'Output\x20as\x20JSON\x20Lines')[a2_0x1c592c(0x1fa)](async(_0x5c0c7d,_0x2fd80d)=>{const _0x6d2685=new ParentSegmentViewCommand(),_0xf1f57c=program['opts'](),_0x214c6a=await createTDXInstance(_0xf1f57c),_0x20b96b=await _0x6d2685['run']({'options':{..._0xf1f57c,..._0x2fd80d},'args':_0x5c0c7d?[_0x5c0c7d]:[],'tdx':_0x214c6a});gracefulExit(_0x20b96b);}),parentSegmentCmd[a2_0x1c592c(0x331)]('desc\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x17b))[a2_0x1c592c(0x2a1)]('-o,\x20--output\x20<file>',a2_0x1c592c(0xe5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x205),a2_0x1c592c(0x2aa))[a2_0x1c592c(0x2a1)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0x1a994d,_0x5ba6e5)=>{const _0x4c2add=new ParentSegmentDescCommand(),_0x283a2c=program['opts'](),_0x3b875a=await createTDXInstance(_0x283a2c),_0xfd232=await _0x4c2add['run']({'options':{..._0x283a2c,..._0x5ba6e5},'args':_0x1a994d?[_0x1a994d]:[],'tdx':_0x3b875a});gracefulExit(_0xfd232);}),parentSegmentCmd[a2_0x1c592c(0x331)]('sql\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x253))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x205),a2_0x1c592c(0x2aa))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x162),a2_0x1c592c(0x257))['action'](async(_0x5df293,_0x278f06)=>{const _0x3c7ef9=a2_0x1c592c,_0xe5db68=new ParentSegmentSQLCommand(),_0x420dce=program['opts'](),_0x43695b=await createTDXInstance(_0x420dce),_0x4f8b5d=await _0xe5db68[_0x3c7ef9(0x1b8)]({'options':{..._0x420dce,..._0x278f06},'args':_0x5df293?[_0x5df293]:[],'tdx':_0x43695b});gracefulExit(_0x4f8b5d);}),parentSegmentCmd['command'](a2_0x1c592c(0x11e))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1f2))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2ad),a2_0x1c592c(0x256))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x205),a2_0x1c592c(0x2aa))[a2_0x1c592c(0x2a1)]('--jsonl',a2_0x1c592c(0x257))[a2_0x1c592c(0x1fa)](async(_0x465b9f,_0x3f024d)=>{const _0x51634c=a2_0x1c592c,_0x14db8d=new ParentSegmentShowCommand(),_0x3eb25c=program[_0x51634c(0x127)](),_0x51e715=await createTDXInstance(_0x3eb25c),_0x8da9c1=await _0x14db8d[_0x51634c(0x1b8)]({'options':{..._0x3eb25c,..._0x3f024d},'args':_0x465b9f?[_0x465b9f]:[],'tdx':_0x51e715});gracefulExit(_0x8da9c1);}),parentSegmentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xe4))['description'](a2_0x1c592c(0x2ab))[a2_0x1c592c(0x1fa)](async(_0x1eb775,_0x2f9a23)=>{const _0x2257e6=a2_0x1c592c,_0x5e9faf=new UseCommand(),_0x548dbc=program[_0x2257e6(0x127)](),_0x3efcf9=_0x1eb775?[_0x2257e6(0x182),_0x1eb775]:[],_0xf011a5=await _0x5e9faf[_0x2257e6(0x1b8)]({'options':{..._0x548dbc,..._0x2f9a23},'args':_0x3efcf9,'tdx':null});gracefulExit(_0xf011a5);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x20d));psRtCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x383))[a2_0x1c592c(0x1fa)](async(_0x2622a1,_0x223f76)=>{const _0x5933e9=a2_0x1c592c,_0x48d8f8=new PSRtListCommand(),_0x3c8453=program[_0x5933e9(0x127)](),_0x11e656=await createTDXInstance(_0x3c8453),_0x1ea0d3=await _0x48d8f8[_0x5933e9(0x1b8)]({'options':{..._0x3c8453,..._0x223f76},'args':_0x2622a1?[_0x2622a1]:[],'tdx':_0x11e656});gracefulExit(_0x1ea0d3);}),psRtCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1f0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1dc))['action'](async(_0x3cba4c,_0x541ed3)=>{const _0x84d5ba=a2_0x1c592c,_0x381a64=new PSRtValidateCommand(),_0x40926d=program['opts'](),_0x19ede1=await createTDXInstance(_0x40926d),_0x472984=await _0x381a64[_0x84d5ba(0x1b8)]({'options':{..._0x40926d,..._0x541ed3},'args':_0x3cba4c?[_0x3cba4c]:[],'tdx':_0x19ede1});gracefulExit(_0x472984);});const parentRtCmd=parentCmd[a2_0x1c592c(0x331)]('rt',{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x20d));parentRtCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x1c592c(0x1fa)](async(_0x1b5675,_0xbc66eb)=>{const _0x214ac4=a2_0x1c592c,_0x5114fe=new PSRtListCommand(),_0xbdbe14=program[_0x214ac4(0x127)](),_0x58459c=await createTDXInstance(_0xbdbe14),_0x3895f9=await _0x5114fe[_0x214ac4(0x1b8)]({'options':{..._0xbdbe14,..._0xbc66eb},'args':_0x1b5675?[_0x1b5675]:[],'tdx':_0x58459c});gracefulExit(_0x3895f9);}),parentRtCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1f0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1dc))[a2_0x1c592c(0x1fa)](async(_0x40a8c3,_0x537bdd)=>{const _0x5337e3=a2_0x1c592c,_0x4eeee2=new PSRtValidateCommand(),_0x2da20a=program[_0x5337e3(0x127)](),_0x189067=await createTDXInstance(_0x2da20a),_0x51f491=await _0x4eeee2[_0x5337e3(0x1b8)]({'options':{..._0x2da20a,..._0x537bdd},'args':_0x40a8c3?[_0x40a8c3]:[],'tdx':_0x189067});gracefulExit(_0x51f491);});function a2_0x1583(_0xa00ec4,_0x1f6fd5){_0xa00ec4=_0xa00ec4-0xc7;const _0x209cdd=a2_0x209c();let _0x158322=_0x209cdd[_0xa00ec4];return _0x158322;}const psPzCmd=parentSegmentCmd[a2_0x1c592c(0x331)]('pz')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x118));psPzCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x293))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x251))['action'](async(_0x13b402,_0x434f09)=>{const _0x3882d8=a2_0x1c592c,_0x1519ed=new PSPzListCommand(),_0x1f7e59=program['opts'](),_0x4095e8=await createTDXInstance(_0x1f7e59),_0x4955ab=await _0x1519ed[_0x3882d8(0x1b8)]({'options':{..._0x1f7e59,..._0x434f09},'args':_0x13b402?[_0x13b402]:[],'tdx':_0x4095e8});gracefulExit(_0x4955ab);}),psPzCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x13c))['description'](a2_0x1c592c(0x10e))['action'](async(_0x1b328c,_0x4baeee)=>{const _0xcb60fb=new PSPzInitCommand(),_0x17e8c4=program['opts'](),_0x28a5aa=await createTDXInstance(_0x17e8c4),_0x409de7=await _0xcb60fb['run']({'options':{..._0x17e8c4,..._0x4baeee},'args':_0x1b328c?[_0x1b328c]:[],'tdx':_0x28a5aa});gracefulExit(_0x409de7);});const parentPzCmd=parentCmd[a2_0x1c592c(0x331)]('pz',{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x118));parentPzCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x293))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x251))['action'](async(_0x3e0887,_0x17339f)=>{const _0xd4a08c=a2_0x1c592c,_0x281d2e=new PSPzListCommand(),_0x29e22a=program[_0xd4a08c(0x127)](),_0x2b927f=await createTDXInstance(_0x29e22a),_0x47144d=await _0x281d2e[_0xd4a08c(0x1b8)]({'options':{..._0x29e22a,..._0x17339f},'args':_0x3e0887?[_0x3e0887]:[],'tdx':_0x2b927f});gracefulExit(_0x47144d);}),parentPzCmd[a2_0x1c592c(0x331)]('init\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x10e))[a2_0x1c592c(0x1fa)](async(_0x23db72,_0x129591)=>{const _0x4cd426=a2_0x1c592c,_0x258b5d=new PSPzInitCommand(),_0x4de51d=program[_0x4cd426(0x127)](),_0x5e109b=await createTDXInstance(_0x4de51d),_0x3e6df0=await _0x258b5d['run']({'options':{..._0x4de51d,..._0x129591},'args':_0x23db72?[_0x23db72]:[],'tdx':_0x5e109b});gracefulExit(_0x3e6df0);}),parentCmd[a2_0x1c592c(0x331)]('create\x20<name>')['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption']('--database\x20<db>',a2_0x1c592c(0x237))[a2_0x1c592c(0x317)](a2_0x1c592c(0x305),a2_0x1c592c(0xcd))[a2_0x1c592c(0x2a1)]('--description\x20<text>',a2_0x1c592c(0x34c))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1d6),a2_0x1c592c(0x16e))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x101),a2_0x1c592c(0x27b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x157),a2_0x1c592c(0x1e6))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x32f),'Attributes\x20as\x20JSON\x20string')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x158),'Attributes\x20from\x20JSON\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xd1),'Behaviors\x20as\x20JSON\x20string')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x239),'Behaviors\x20from\x20JSON\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x320),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x30d),a2_0x1c592c(0x2ed))[a2_0x1c592c(0x1fa)](async(_0x2511a9,_0x351670)=>{const _0x4178f1=a2_0x1c592c,_0x10a8c7=new ParentSegmentCreateCommand(),_0x3809a9=program[_0x4178f1(0x127)](),_0x20caa5=await createTDXInstance(_0x3809a9),_0x30497c=await _0x10a8c7[_0x4178f1(0x1b8)]({'options':{..._0x3809a9,..._0x351670},'args':[_0x2511a9],'tdx':_0x20caa5});gracefulExit(_0x30497c);}),parentCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x213))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xfe))['option'](a2_0x1c592c(0x112),a2_0x1c592c(0x130))[a2_0x1c592c(0x2a1)]('--schedule-type\x20<type>',a2_0x1c592c(0x1e0))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x101),a2_0x1c592c(0x2a0))['option'](a2_0x1c592c(0x157),a2_0x1c592c(0x12b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x373),a2_0x1c592c(0x23b))['option'](a2_0x1c592c(0x332),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x21e),a2_0x1c592c(0x336))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x302),a2_0x1c592c(0x198))[a2_0x1c592c(0x1fa)](async(_0x1d75fb,_0x4227bc)=>{const _0x4edb5f=a2_0x1c592c,_0x100c23=new ParentSegmentUpdateCommand(),_0x3451a2=program[_0x4edb5f(0x127)](),_0x420966=await createTDXInstance(_0x3451a2),_0x13ecea=await _0x100c23[_0x4edb5f(0x1b8)]({'options':{..._0x3451a2,..._0x4227bc},'args':[_0x1d75fb],'tdx':_0x420966});gracefulExit(_0x13ecea);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0x1c592c(0x28f)]('Create\x20segment\x20folder')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x112),a2_0x1c592c(0x12a))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x22a),a2_0x1c592c(0x28e))['action'](async(_0x57c93b,_0x40a07f,_0x2f09e8)=>{const _0x444716=a2_0x1c592c,_0x449636=new SegmentFolderCreateCommand(),_0x483219=program['opts'](),_0x41c560=await createTDXInstance(_0x483219),_0x1610b8=await _0x449636[_0x444716(0x1b8)]({'options':{..._0x483219,..._0x2f09e8},'args':[_0x57c93b,_0x40a07f],'tdx':_0x41c560});gracefulExit(_0x1610b8);}),program['command'](a2_0x1c592c(0xc8))[a2_0x1c592c(0x28f)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')['action'](async(_0x1eafac,_0x2cc614)=>{const _0x36ca38=a2_0x1c592c,_0x4c8d70=new ActivationsCommand(),_0xd9244e=program['opts'](),_0x254f33=await createTDXInstance(_0xd9244e),_0x2861a7=await _0x4c8d70[_0x36ca38(0x1b8)]({'options':{..._0xd9244e,..._0x2cc614},'args':[_0x1eafac],'tdx':_0x254f33});gracefulExit(_0x2861a7);});const workflowCmd=program[a2_0x1c592c(0x331)]('workflow')[a2_0x1c592c(0x180)]('wf')[a2_0x1c592c(0x28f)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x345))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2f9)),wfProjectListAction=async(_0x10f635,_0x3f62c8)=>{const _0xaa8351=a2_0x1c592c,_0x43b2f9=new WorkflowProjectsCommand(),_0x4eafcd=program[_0xaa8351(0x127)](),_0x530924=await createTDXInstance(_0x4eafcd),_0x149e3d=await _0x43b2f9[_0xaa8351(0x1b8)]({'options':{..._0x4eafcd,..._0x3f62c8},'args':_0x10f635?[_0x10f635]:[],'tdx':_0x530924});gracefulExit(_0x149e3d);};wfProjectCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1c592c(0x1fa)](wfProjectListAction),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2c8))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x321))[a2_0x1c592c(0x1fa)](wfProjectListAction);const wfWorkflowListAction=async(_0x332106,_0x11910d)=>{const _0x48615a=a2_0x1c592c,_0x44b25a=new WorkflowWorkflowsCommand(),_0x217705=program[_0x48615a(0x127)](),_0x16cbc7=await createTDXInstance(_0x217705),_0x50c2d9=await _0x44b25a['run']({'options':{..._0x217705,..._0x11910d},'args':_0x332106?[_0x332106]:[],'tdx':_0x16cbc7});gracefulExit(_0x50c2d9);};workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x28d))[a2_0x1c592c(0x28f)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x1c592c(0x1fa)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x142))[a2_0x1c592c(0x28f)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x1f392b,_0xc0747)=>{const _0x28f82d=a2_0x1c592c,_0x4335f9=new WorkflowSessionsCommand(),_0x3c57e3=program[_0x28f82d(0x127)](),_0x340449=await createTDXInstance(_0x3c57e3),_0x2ff42a=await _0x4335f9[_0x28f82d(0x1b8)]({'options':{..._0x3c57e3,..._0xc0747},'args':_0x1f392b?[_0x1f392b]:[],'tdx':_0x340449});gracefulExit(_0x2ff42a);};wfSessionCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x14a))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x314))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1a1),a2_0x1c592c(0x355))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1c3),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x230),a2_0x1c592c(0x26d))[a2_0x1c592c(0x1fa)](wfSessionListAction),workflowCmd[a2_0x1c592c(0x331)]('sessions\x20[project]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0xdc))[a2_0x1c592c(0x2a1)]('--status\x20<status>',a2_0x1c592c(0x355))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1c3),a2_0x1c592c(0x37b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x230),a2_0x1c592c(0x26d))[a2_0x1c592c(0x1fa)](wfSessionListAction);const wfAttemptListAction=async(_0x5e6aa1,_0xbe6242)=>{const _0x2f52dc=a2_0x1c592c,_0x41b997=new WorkflowAttemptsCommand(),_0x4c110d=program[_0x2f52dc(0x127)](),_0x3fe1a1=await createTDXInstance(_0x4c110d),_0x3d4a90=await _0x41b997[_0x2f52dc(0x1b8)]({'options':{..._0x4c110d,..._0xbe6242},'args':_0x5e6aa1?[_0x5e6aa1]:[],'tdx':_0x3fe1a1});gracefulExit(_0x3d4a90);},attemptCmd=workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xe3))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x108))['argument'](a2_0x1c592c(0xfc),a2_0x1c592c(0x211))[a2_0x1c592c(0x2de)](a2_0x1c592c(0x2a9),a2_0x1c592c(0x218))[a2_0x1c592c(0x2de)](a2_0x1c592c(0x29b),a2_0x1c592c(0xe6))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2be),a2_0x1c592c(0x354))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x35f),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x370),a2_0x1c592c(0x2e1))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1ad),a2_0x1c592c(0x220))['option'](a2_0x1c592c(0x124),a2_0x1c592c(0x359))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x147),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x1c592c(0x1fa)](async(_0x32d45f,_0x4980b3,_0x3c71fe,_0x10b879)=>{const _0x5d1c92=a2_0x1c592c;if(_0x32d45f===_0x5d1c92(0x309)){await wfAttemptListAction(_0x4980b3,_0x10b879);return;}if(!_0x32d45f){attemptCmd[_0x5d1c92(0xf3)]();return;}const _0x414773=program['opts'](),_0x1ab6ca=await createTDXInstance(_0x414773);let _0xe8909c=0x0;if(!_0x4980b3){const _0xb75be1=new WorkflowAttemptCommand();_0xe8909c=await _0xb75be1[_0x5d1c92(0x1b8)]({'options':{..._0x414773,..._0x10b879},'args':[_0x32d45f],'tdx':_0x1ab6ca});}else{if(_0x4980b3==='logs'){const _0x33cf0e=new WorkflowLogsCommand();_0xe8909c=await _0x33cf0e[_0x5d1c92(0x1b8)]({'options':{..._0x414773,..._0x10b879},'args':_0x3c71fe?[_0x32d45f,_0x3c71fe]:[_0x32d45f],'tdx':_0x1ab6ca});}else{if(_0x4980b3==='tasks'){const _0x3d3f1d=new WorkflowTasksCommand();_0xe8909c=await _0x3d3f1d['run']({'options':{..._0x414773,..._0x10b879},'args':[_0x32d45f],'tdx':_0x1ab6ca});}else{if(_0x4980b3==='kill'){const _0x43f35e=new WorkflowKillCommand();_0xe8909c=await _0x43f35e['run']({'options':{..._0x414773,..._0x10b879},'args':[_0x32d45f],'tdx':_0x1ab6ca});}else{if(_0x4980b3===_0x5d1c92(0x23a)){const _0x1d047b=new WorkflowRetryCommand();_0xe8909c=await _0x1d047b[_0x5d1c92(0x1b8)]({'options':{..._0x414773,..._0x10b879},'args':[_0x5d1c92(0xe1)+_0x32d45f],'tdx':_0x1ab6ca});}else console[_0x5d1c92(0x186)]('Unknown\x20action:\x20'+_0x4980b3),console['error'](_0x5d1c92(0x2bc)),_0xe8909c=0x1;}}}}gracefulExit(_0xe8909c);});attemptCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x14a))['description'](a2_0x1c592c(0x25a))['option'](a2_0x1c592c(0x147),a2_0x1c592c(0x102))[a2_0x1c592c(0x1fa)](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1b5))[a2_0x1c592c(0x2a1)]('--include-retried','Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x184))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2e5))[a2_0x1c592c(0x2a1)]('--follow',a2_0x1c592c(0x129))[a2_0x1c592c(0x2a1)]('--session-id\x20<id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x26b),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x1c592c(0x1fa)](async(_0x42c372,_0x5e21b4)=>{const _0x3010fc=a2_0x1c592c,_0x242174=new WorkflowTimelineCommand(),_0x42f154=program[_0x3010fc(0x127)](),_0x18cc30=await createTDXInstance(_0x42f154),_0x48d2fe=await _0x242174[_0x3010fc(0x1b8)]({'options':{..._0x42f154,..._0x5e21b4},'args':_0x42c372?[_0x42c372]:[],'tdx':_0x18cc30});gracefulExit(_0x48d2fe);}),workflowCmd['command'](a2_0x1c592c(0x246))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x27a))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x10b),'Resume\x20from\x20specific\x20task')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1ad),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x1c592c(0x1fa)](async(_0xf36b3b,_0x3a5daa)=>{const _0x2490c1=new WorkflowRetryCommand(),_0x4eebe8=program['opts'](),_0xf3ac1=await createTDXInstance(_0x4eebe8),_0x4cefe7=await _0x2490c1['run']({'options':{..._0x4eebe8,..._0x3a5daa},'args':[_0xf36b3b],'tdx':_0xf3ac1});gracefulExit(_0x4cefe7);}),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1d1))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x260))[a2_0x1c592c(0x2a1)]('--param\x20<key=value>',a2_0x1c592c(0x183),(_0x32eb61,_0x5dcb3c=[])=>[..._0x5dcb3c,_0x32eb61],[])[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xee),a2_0x1c592c(0x2cb))['action'](async(_0x31b019,_0x2e3063)=>{const _0x100f1a=a2_0x1c592c,_0x3ead25=new WorkflowRunCommand(),_0x382c96=program[_0x100f1a(0x127)](),_0x42e867=await createTDXInstance(_0x382c96),_0x172333=await _0x3ead25[_0x100f1a(0x1b8)]({'options':{..._0x382c96,..._0x2e3063},'args':_0x31b019?[_0x31b019]:[],'tdx':_0x42e867});gracefulExit(_0x172333);}),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2e0))[a2_0x1c592c(0x28f)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option']('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x1c592c(0x1fa)](async(_0x3b57a5,_0x354624,_0x565c7e)=>{const _0x532824=a2_0x1c592c,_0x2772aa=new WorkflowDownloadCommand(),_0x117020=program[_0x532824(0x127)](),_0x26b17d=await createTDXInstance(_0x117020),_0x5f2b86=await _0x2772aa['run']({'options':{..._0x117020,..._0x565c7e},'args':[_0x3b57a5,_0x354624||'.'],'tdx':_0x26b17d});gracefulExit(_0x5f2b86);}),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x26f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x17e))[a2_0x1c592c(0x2a1)]('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')['option'](a2_0x1c592c(0x146),a2_0x1c592c(0xcb))['action'](async(_0x1ce46b,_0xeb08b3,_0x585fb7)=>{const _0x27b36f=a2_0x1c592c,_0xa66c2c=new WorkflowPullCommand(),_0x1de05a=program[_0x27b36f(0x127)](),_0x1eea02=await createTDXInstance(_0x1de05a),_0x4b371b=await _0xa66c2c[_0x27b36f(0x1b8)]({'options':{..._0x1de05a,..._0x585fb7},'args':_0xeb08b3?[_0x1ce46b,_0xeb08b3]:[_0x1ce46b],'tdx':_0x1eea02});gracefulExit(_0x4b371b);}),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x217))['description'](a2_0x1c592c(0xf2))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x113),a2_0x1c592c(0x372))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0x366))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x14f),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x5b6b61,_0x180f09)=>{const _0x2fad6f=a2_0x1c592c,_0x118485=new WorkflowPushCommand(),_0x2734ee=program[_0x2fad6f(0x127)](),_0x504d9e=await createTDXInstance(_0x2734ee),_0x52e4bd=await _0x118485[_0x2fad6f(0x1b8)]({'options':{..._0x2734ee,..._0x180f09},'args':_0x5b6b61?[_0x5b6b61]:[],'tdx':_0x504d9e});gracefulExit(_0x52e4bd);}),workflowCmd['command'](a2_0x1c592c(0x1d0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2dd))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x154),a2_0x1c592c(0x196))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x113),a2_0x1c592c(0x2a3))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x14f),a2_0x1c592c(0x153))[a2_0x1c592c(0x1fa)](async(_0x58fc5d,_0x584c06)=>{const _0x1795cc=a2_0x1c592c,_0x13ca4d=new WorkflowUploadCommand(),_0x47c426=program[_0x1795cc(0x127)](),_0x1b11d6=await createTDXInstance(_0x47c426),_0x567ba9=await _0x13ca4d['run']({'options':{..._0x47c426,..._0x584c06},'args':_0x58fc5d?[_0x58fc5d]:[],'tdx':_0x1b11d6});gracefulExit(_0x567ba9);}),workflowCmd[a2_0x1c592c(0x331)]('clone\x20[source-dir]')['description'](a2_0x1c592c(0x357))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x154),a2_0x1c592c(0x168))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x113),a2_0x1c592c(0x372))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0xd9))[a2_0x1c592c(0x2a1)]('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x1c592c(0x1fa)](async(_0x545f0c,_0x2f3a1c)=>{const _0x1c8c5c=a2_0x1c592c,_0xe8c1b3=new WorkflowCloneCommand(),_0x3c4fa4=program[_0x1c8c5c(0x127)](),_0xb4af8d=await createTDXInstance(_0x3c4fa4),_0x259f04=await _0xe8c1b3[_0x1c8c5c(0x1b8)]({'options':{..._0x3c4fa4,..._0x2f3a1c},'args':_0x545f0c?[_0x545f0c]:[],'tdx':_0xb4af8d});gracefulExit(_0x259f04);}),workflowCmd[a2_0x1c592c(0x331)]('delete\x20<project-name-or-id>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x21c))[a2_0x1c592c(0x1fa)](async(_0x2cd035,_0x17797f)=>{const _0x10ede5=a2_0x1c592c,_0x1a41ce=new WorkflowDeleteCommand(),_0x2580a4=program[_0x10ede5(0x127)](),_0x18ff20=await createTDXInstance(_0x2580a4),_0x3b9a3d=await _0x1a41ce[_0x10ede5(0x1b8)]({'options':{..._0x2580a4,..._0x17797f},'args':[_0x2cd035],'tdx':_0x18ff20});gracefulExit(_0x3b9a3d);}),workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1a7))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x288))[a2_0x1c592c(0x2a1)]('--clear',a2_0x1c592c(0x1b3))[a2_0x1c592c(0x1fa)](async(_0x4152ec,_0x590662)=>{const _0x203a0e=a2_0x1c592c,_0x366cb6=new WorkflowUseCommand(),_0x253226=program[_0x203a0e(0x127)](),_0x2529d5=await createTDXInstance(_0x253226),_0x35b02f=await _0x366cb6[_0x203a0e(0x1b8)]({'options':{..._0x253226,..._0x590662},'args':_0x4152ec?[_0x4152ec]:[],'tdx':_0x2529d5});gracefulExit(_0x35b02f);});const wfSecretsCmd=workflowCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x245))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1b6));wfSecretsCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x14a))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x32e))[a2_0x1c592c(0x1fa)](async(_0x3ad890,_0x1afb69)=>{const _0x19d120=a2_0x1c592c,_0x29df7f=new WorkflowSecretsListCommand(),_0x205b8c=program['opts'](),_0x38fae8=await createTDXInstance(_0x205b8c),_0x409397=await _0x29df7f[_0x19d120(0x1b8)]({'options':{..._0x205b8c,..._0x1afb69},'args':_0x3ad890?[_0x3ad890]:[],'tdx':_0x38fae8});gracefulExit(_0x409397);}),wfSecretsCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x12c))[a2_0x1c592c(0x28f)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')[a2_0x1c592c(0x1fa)](async(_0xea9dfa,_0x73c56)=>{const _0x132d77=a2_0x1c592c,_0x46d66e=new WorkflowSecretsSetCommand(),_0x416f7d=program[_0x132d77(0x127)](),_0x24f746=await createTDXInstance(_0x416f7d),_0x517c23=await _0x46d66e[_0x132d77(0x1b8)]({'options':{..._0x416f7d,..._0x73c56},'args':_0xea9dfa,'tdx':_0x24f746});gracefulExit(_0x517c23);}),wfSecretsCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x117))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1f6))[a2_0x1c592c(0x1fa)](async(_0x4ce339,_0x41eba4)=>{const _0x43ca50=new WorkflowSecretsDeleteCommand(),_0x3fa493=program['opts'](),_0xc407d0=await createTDXInstance(_0x3fa493),_0x22ceca=await _0x43ca50['run']({'options':{..._0x3fa493,..._0x41eba4},'args':_0x4ce339,'tdx':_0xc407d0});gracefulExit(_0x22ceca);});const jobCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x36e))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x279)),jobListAction=async _0x15d648=>{const _0x45be8c=a2_0x1c592c,_0x577bdb=new JobListCommand(),_0x4f40d5=program[_0x45be8c(0x127)](),_0x23103e=await createTDXInstance(_0x4f40d5),_0x366bc7=await _0x577bdb[_0x45be8c(0x1b8)]({'options':{..._0x4f40d5,..._0x15d648},'args':[],'tdx':_0x23103e});gracefulExit(_0x366bc7);};function a2_0x209c(){const _0xc6a591=['--include-history','--prompt\x20<text>','upload\x20[project-name-or-dir]','run\x20[workflow]','exit','slice','--interval\x20<range>','Query\x20engine\x20version','--schedule-type\x20<type>','beefree','profile','validate\x20[target]','1305558iiRssx','-y,\x20--yes','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','show\x20[segment_name]','Delete\x20a\x20scheduled\x20query','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Maximum\x20tool\x20iterations\x20(default:\x204)','show\x20<name-or-id>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','\x20(resolved\x20to\x20','Timezone\x20(e.g.,\x20America/Los_Angeles)','-r,\x20--recursive','restore\x20<folder>','Workspace\x20management','templates\x20[pattern]','update\x20<name-or-id>','List\x20available\x20connector\x20types','history\x20<name>','filter','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','validate\x20[name]','Show\x20the\x20most\x20recent\x20chat','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--job-type\x20<type>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--rule\x20<json>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Campaign\x20name','-C,\x20--directory\x20<path>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','action','settings\x20<type>','Validate\x20journey\x20YAML\x20files\x20locally','--from\x20<n>','--kind\x20<type>','Request\x20body\x20as\x20JSON\x20string','Delete\x20an\x20email\x20template','Database\x20to\x20query\x20(default:\x20information_schema)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','versions\x20<name-or-path>','--enriched','--json','Update\x20an\x20existing\x20agent','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20segment\x20schema\x20(column\x20types)','claude-4.5-sonnet','Set\x20operation\x20timeout\x20in\x20seconds','Setup\x20API\x20key\x20authentication\x20interactively','RT\x202.0\x20configuration\x20management','pull\x20[project]\x20[agent-name]','Filtering\x20rule\x20from\x20JSON\x20file','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Attempt\x20ID','options','update\x20<name>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-u,\x20--use','replace','push\x20[source-dir]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','senders\x20[pattern]','GET','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--clear','--add-behaviors\x20<json>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','pause\x20<name-or-id>','models','-n,\x20--name\x20<name>','Show\x20stats\x20for\x20specific\x20stage','Continue\x20most\x20recent\x20conversation','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','push\x20[parent_or_file]','Show\x20only\x20master\x20table\x20validation','--parent-folder\x20<name>','Pull\x20campaigns\x20to\x20YAML\x20files','HTML\x20template\x20content','statusline','users','summary','--to\x20<timestamp>','set','--limit\x20<rows>','apiKey','Make\x20segment\x20invisible\x20(default:\x20visible)','Create\x20an\x20email\x20template','Maximum\x20recursion\x20depth\x20(default:\x2010)','Master\x20database\x20name','buildTime','--behaviors-file\x20<file>','retry','Add\x20attributes\x20as\x20JSON\x20string','Describe\x20table\x20schema','--type\x20<api_type>','join','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-v,\x20--verbose','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','table','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Template\x20name','secrets','retry\x20<session-id>','version','Duplicate\x20a\x20campaign','--name\x20<text>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','\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','--subject\x20<subject>','-H,\x20--header\x20<header>','--folder\x20<name>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20all\x20versions\x20of\x20a\x20journey','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','--behavior\x20[name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','CDP\x20Journey\x20Orchestration\x20commands','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Limit\x20number\x20of\x20rows','Output\x20as\x20JSON\x20Lines','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Delete\x20an\x20LLM\x20project','Invalid\x20--limit\x20value:\x20\x22','[DEPRECATED]\x20Segment\x20folder\x20management','json','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','activations\x20<name-or-path>','tsv','outputHelp','logLevel','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--reeval','Open\x20journey\x20in\x20web\x20browser','\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','-d,\x20--database\x20<database>','--attempt-id\x20<id>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','End\x20time\x20filter\x20(ISO\x208601\x20format)','name','pull\x20<project>\x20[target-dir]','INVALID_ARGUMENT','format','\x22.\x20Must\x20be\x20a\x20number.','--help','Folder\x20name\x20for\x20organization','8649WHOjqL','Open\x20segment\x20in\x20web\x20browser','--site\x20<site>','--version\x20<number>','Job\x20management\x20commands','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--type\x20<type>','Plaintext\x20template\x20content','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','sql\x20[segment_name]','Delete\x20a\x20workspace','delete\x20<name>','push\x20[path]','padEnd','Maximum\x20number\x20of\x20nodes','Pause\x20a\x20running\x20journey','--chat-id\x20<id>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','after','campaign','--time\x20<iso8601>','mcp','workflows\x20[project]','Parent\x20folder\x20name\x20for\x20nested\x20folders','description','--name\x20<new-name>','Read\x20query\x20from\x20file','Generate\x20test\x20conversations\x20without\x20evaluation','list\x20[name]','describe','parent','tables\x20[pattern]','Delete\x20an\x20agent','--plaintext\x20<text>','history\x20[chat-id]','view\x20[segment_name]','[task-name]','allowUnknownOption','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','User\x20management\x20commands','argumentTerm','Updated\x20schedule\x20option','option','--tsv','Revision\x20name\x20(default:\x20timestamp)','--new','--full','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Database\x20name','--in\x20<db>','[action]','Output\x20as\x20JSON','Set\x20or\x20show\x20parent\x20segment\x20context','-o,\x20--output\x20<folder>','--limit\x20<n>','registeredArguments','configureHelp','backup\x20<name>','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Push\x20without\x20confirmation','preAction','stats\x20<name-or-path>','stringify','Save\x20output\x20to\x20file','--no-count-population','delete\x20<agent-name>','Cron\x20expression\x20for\x20scheduling','Job\x20priority\x20(-2\x20to\x202)','_hidden','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--include-subtasks','-o,\x20--output\x20<dir>','gitRevision','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','show\x20<name>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','New\x20campaign\x20name','Resume\x20a\x20paused\x20journey','isTTY','site','projects\x20[pattern]','List\x20journeys\x20(alias\x20for\x20journey\x20list)','--last','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','create\x20[name]','--version','-f,\x20--force','DEBUG','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','-c,\x20--continue','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Set\x20a\x20profile\x20configuration\x20value','Validate\x20campaign\x20YAML\x20files\x20locally','segments\x20[path]','--attribute\x20[name]','Data\x20connection\x20management\x20(for\x20activations/exports)','--json-columns\x20<cols>','engage_workspace','schema\x20<type>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','argument','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','download\x20<project-name>\x20[output-dir]','Resume\x20from\x20specific\x20task\x20(retry)','Workspace\x20description','Update\x20an\x20email\x20template','List\x20all\x20available\x20profiles','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Enable\x20verbose\x20logging','result\x20<job-id>','--table','Timezone\x20for\x20cron\x20(default:\x20UTC)','argv','Output\x20directory','template','Customer\x20group\x20from\x20JSON\x20file','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Show\x20workspace\x20details','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','jobs','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Resume\x20a\x20conversation\x20(shows\x20selector)','--email-sender-id\x20<id>','Update\x20a\x20scheduled\x20query','246914YaQVtt','connections','5328110JiGZNK','Workflow\x20project\x20management','-a,\x20--agent\x20<name>','Email\x20sender\x20ID\x20for\x20delivery','--catalog\x20<catalog>','parents\x20[pattern]','Trino\x20catalog\x20(default:\x20td)','133688Xapvgb','Query\x20type:\x20trino\x20or\x20hive','resume\x20<name-or-id>','--add-behaviors-file\x20<file>','Segment\x20description','Arguments:','--table\x20<table>','test\x20[path]','List\x20all\x20users\x20in\x20the\x20account','--delay\x20<seconds>','list','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','subcommandDescription','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--customer-group-file\x20<file>','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','directory','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Agent\x20description','--to\x20<date>','pull\x20[name]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Agent\x20name','databases\x20[pattern]','requiredOption','Parse\x20and\x20validate\x20without\x20executing','Remove\x20API\x20key\x20from\x20system\x20keychain','--debug','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Include\x20raw\x20history\x20data\x20in\x20output','\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','Preview\x20operation\x20without\x20executing','--max-depth\x20<depth>','--customer-group\x20<json>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--engine-version\x20<version>','Read\x20SQL\x20query\x20from\x20file','parent-segment','Show\x20authentication\x20status\x20and\x20current\x20context','Skip\x20confirmation\x20prompt','--stream','...','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','-d,\x20--database\x20<db>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Show\x20agent\x20details','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','List\x20secret\x20keys\x20for\x20a\x20project','--attributes\x20<json>','Database\x20management\x20commands','command','--add-attributes-file\x20<file>','List\x20agents\x20in\x20current\x20project','--priority\x20<-2~2>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Add\x20behaviors\x20as\x20JSON\x20string','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','campaigns\x20[pattern]','flatMap','3646oTankR','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','21EBpESu','Pause\x20a\x20campaign',',\x20version\x20','Run\x20a\x20scheduled\x20query\x20immediately','includes','commandUsage','Invalid\x20editor\x20type:\x20','information_schema','project','optionDescription','debug','Campaign\x20management','--in\x20<database>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Show\x20master\x20table\x20sample\x20data','Parent\x20segment\x20description','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','stderr','list\x20[pattern]','update\x20<segment_name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--retry-limit\x20<0~32>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Include\x20subtasks\x20in\x20tasks\x20output','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','use\x20[resource]\x20[value]','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Force\x20retry\x20even\x20if\x20not\x20failed','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','remove\x20<name>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','required','create\x20<segment_name>','--reason\x20<text>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--temperature\x20<n>','subcommandTerm','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','run\x20[name]','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Preview\x20changes\x20without\x20pushing','--from\x20<date>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','desc','Ending\x20offset\x20(default:\x2020)','tdx\x20','Email\x20subject\x20template','Output\x20folder\x20(default:\x20{project_name}.llm)','job','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--resume-from\x20<task>','\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','Custom\x20revision\x20name\x20(default:\x20timestamp)','--add-attributes\x20<json>','commandDescription','Skip\x20population\x20counting','validate\x20[file]','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','List\x20all\x20data\x20connections','tdx','CDP\x20segment\x20management\x20commands','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--segment\x20<path>','setup','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--parent-segment\x20<name>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','workspace','isArray','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','forEach','then','activations\x20<segment_name>','40BjQmym','pull\x20[parent_or_file]','Preview\x20changes\x20without\x20writing\x20files','preview\x20[name]','Master\x20table\x20name','New\x20workspace\x20name','New\x20template\x20name','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--behaviors\x20<json>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Submit\x20a\x20job','Directory\x20does\x20not\x20exist:\x20','preview\x20[file]','optionTerm','Commands:','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Preview\x20without\x20creating\x20the\x20project','Starting\x20offset\x20(default:\x200)','create','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Output\x20file\x20path\x20(default:\x20<name>.yml)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','attempt:','commands','attempt','use\x20[name]','Output\x20file\x20path','Task\x20name\x20for\x20logs\x20action','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--invisible','split','Usage:\x20','--name\x20<names>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20available\x20LLM\x20models','--session-time\x20<time>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','user','Parent\x20segment\x20management','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','help','--rule-file\x20<file>','llm','Resume\x20a\x20paused\x20campaign','Delivery\x20operations\x20(email\x20senders)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','types','Campaign\x20type\x20(email\x20or\x20push)','6516928ibTNhX','[attempt-id]','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','-f,\x20--file\x20<path>','List\x20activations\x20for\x20a\x20journey','--schedule-option\x20<value>','Include\x20retried\x20attempts','journey','TRACE','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','Create\x20a\x20scheduled\x20query','Workflow\x20attempt\x20management','padWidth','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--from-task\x20<task>','--start-at\x20<datetime>','Workspace\x20name','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','database','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--description\x20<text>','--revision\x20<revision>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','length','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','delete\x20<args...>','Personalization\x20service\x20management','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Options:','AI-native\x20CLI\x20for\x20Treasure\x20Data','agents\x20[pattern]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','show\x20[name]','delivery','schedule','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--limit\x20<number>','Scheduled\x20query\x20management\x20commands','--force','--default','create\x20<name>','opts','Filtering\x20rule\x20as\x20JSON\x20string','Follow/watch\x20timeline\x20for\x20running\x20attempts','Folder\x20description','Updated\x20timezone','set\x20<args...>','Show\x20segment\x20details\x20(alias\x20for\x20view)','describe\x20[table]','trino','Updated\x20description','Get\x20job\x20results','--tags\x20<tags>','segment','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','stdout','auth','create\x20<name-or-path>','--format\x20<format>','Create\x20a\x20new\x20profile','map','List\x20journeys\x20in\x20current\x20context','init\x20[name]','use\x20<name>','--master','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','45RzDPgB','--cron\x20<expression>','session','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Workspace\x20name\x20(required)','--dry-run','--include-retried','Email\x20template\x20management','_list-commands','list\x20[project]','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Launch\x20a\x20campaign','--description\x20<desc>','-w,\x20--web','--skip-validation','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','api\x20[endpoint]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Skip\x20validation\x20of\x20.dig\x20files','--name\x20<name>','Show\x20all\x20files\x20including\x20valid\x20ones','Timezone\x20for\x20cron','--timezone\x20<tz>','--attributes-file\x20<file>','info\x20[segment_name]','--agent\x20<ref>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','argumentDescription','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','System\x20prompt/instructions\x20(default:\x20empty)','Show\x20schedule\x20details','--jsonl','show\x20[table]','Run\x20Trino\x20query\x20with\x20streaming\x20results','Delay\x20in\x20seconds\x20before\x20execution','Project\x20description','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Name\x20for\x20the\x20new\x20project\x20(required)','Run\x20tests\x20for\x20an\x20LLM\x20agent','LLM\x20project\x20management','chdir','Remove\x20a\x20profile','--workspace\x20<name>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','flags','--database\x20<name>','push','traffic\x20<name-or-path>','Start\x20a\x20new\x20chat\x20session','--starter-message\x20<text>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Create\x20a\x20workspace','use\x20<path>','--result\x20<target>','find','-1d','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20a\x20workspace','Interactive\x20chat\x20selector','Pull\x20workflow\x20project\x20to\x20local\x20folder','resume\x20<name-or-path>','alias','Result\x20output\x20destination\x20URL','parent_segment','Workflow\x20parameter\x20(repeatable)','timeline\x20[project.workflow]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','error','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','pull\x20[workspace-name]','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','fields\x20[parent_name]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Journey\x20version\x20management','jsonl','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','kill\x20<job-id>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','set\x20<key=value>','usage','Campaign\x20description','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Export\x20journey(s)\x20as\x20YAML\x20files','Override\x20project\x20name','colorFn','Add\x20behaviors\x20from\x20JSON\x20file','long','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','submit\x20[query]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','clone\x20[source]','launch\x20<name-or-id>','--no-proxy','show\x20<agent-name>','--status\x20<status>','show\x20<job-id>','noColor','Show\x20email\x20template\x20details','Pull\x20specific\x20campaign\x20by\x20name','Authentication\x20management','use\x20[project]','parse','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20job\x20details','-X,\x20--method\x20<method>','--name\x20<new_name>','--params\x20<json>','delete\x20<name-or-id>','--max-tool-iterations\x20<n>','--editor-type\x20<type>','--result\x20<url>','--yes','Clear\x20workflow\x20project\x20context','Run\x20specific\x20tests\x20(comma-separated)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Manage\x20workflow\x20project\x20secrets','createAsync','run','addHelpText','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','claude\x20[args...]','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','--verbose','\x20-\x20built\x20','get','Include\x20execution\x20statistics','Model\x20type\x20(default:\x20claude-4.5-sonnet)','push\x20[name]','--from\x20<timestamp>','Path\x20is\x20not\x20a\x20directory:\x20','push\x20[target]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','-r,\x20--resume','Starter\x20message','786VNmqbV','New\x20segment\x20name','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)'];a2_0x209c=function(){return _0xc6a591;};return a2_0x209c();}jobCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x309))[a2_0x1c592c(0x28f)]('List\x20jobs')[a2_0x1c592c(0x2a1)]('--status\x20<status>',a2_0x1c592c(0x15c))[a2_0x1c592c(0x1fa)](jobListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x2f1),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x134))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1a1),a2_0x1c592c(0x15c))['action'](jobListAction),jobCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1a2))['description'](a2_0x1c592c(0x1aa))['action'](async(_0x323726,_0xa0877)=>{const _0x1dee79=a2_0x1c592c,_0x4cae8f=new JobShowCommand(),_0x17e66f=program[_0x1dee79(0x127)](),_0x1e5c45=await createTDXInstance(_0x17e66f),_0x3279eb=await _0x4cae8f['run']({'options':{..._0x17e66f,..._0xa0877},'args':[_0x323726],'tdx':_0x1e5c45});gracefulExit(_0x3279eb);}),jobCmd['command'](a2_0x1c592c(0x18f))['description']('Kill\x20a\x20job')[a2_0x1c592c(0x1fa)](async(_0x41cda5,_0x4e3d12)=>{const _0x21b760=a2_0x1c592c,_0x1913fe=new JobKillCommand(),_0x2510cb=program[_0x21b760(0x127)](),_0x4c9e0b=await createTDXInstance(_0x2510cb),_0x111855=await _0x1913fe[_0x21b760(0x1b8)]({'options':{..._0x2510cb,..._0x4e3d12},'args':[_0x41cda5],'tdx':_0x4c9e0b});gracefulExit(_0x111855);}),jobCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x19b))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xd3))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1f3),a2_0x1c592c(0xe7),a2_0x1c592c(0x12f))['option'](a2_0x1c592c(0xff),'Read\x20query\x20from\x20file')['option'](a2_0x1c592c(0x170),'Database\x20name\x20(default:\x20information_schema)',a2_0x1c592c(0x344))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x178),a2_0x1c592c(0xfd))['action'](async(_0x458bbb,_0x50b0bc)=>{const _0x101829=a2_0x1c592c,_0x4a64f6=new JobSubmitCommand(),_0x1dca5e=program[_0x101829(0x127)](),_0x3884a6=await createTDXInstance(_0x1dca5e),_0x20021b=await _0x4a64f6[_0x101829(0x1b8)]({'options':{..._0x1dca5e,..._0x50b0bc},'args':_0x458bbb?[_0x458bbb]:[],'tdx':_0x3884a6});gracefulExit(_0x20021b);}),jobCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2e7))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x131))['action'](async(_0x87b60d,_0x266660)=>{const _0xf975b9=a2_0x1c592c,_0x486d50=new JobResultCommand(),_0x408778=program[_0xf975b9(0x127)](),_0x4f215a=await createTDXInstance(_0x408778),_0x3007ad=await _0x486d50['run']({'options':{..._0x408778,..._0x266660},'args':[_0x87b60d],'tdx':_0x4f215a});gracefulExit(_0x3007ad);});const scheduleCmd=jobCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x120))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x123));scheduleCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x18e))[a2_0x1c592c(0x1fa)](async(_0x51c7df,_0x3e9057)=>{const _0x105ad1=a2_0x1c592c,_0x379249=new ScheduleListCommand(),_0x4e0cbc=program[_0x105ad1(0x127)](),_0xa504e2=await createTDXInstance(_0x4e0cbc),_0x39a985=await _0x379249[_0x105ad1(0x1b8)]({'options':{..._0x4e0cbc,..._0x3e9057},'args':_0x51c7df?[_0x51c7df]:[],'tdx':_0xa504e2});gracefulExit(_0x39a985);}),scheduleCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2c2))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x161))[a2_0x1c592c(0x1fa)](async(_0x2188f4,_0x53cecf)=>{const _0x1ccf5d=new ScheduleShowCommand(),_0x373f29=program['opts'](),_0x5303a6=await createTDXInstance(_0x373f29),_0x46ade3=await _0x1ccf5d['run']({'options':{..._0x373f29,..._0x53cecf},'args':[_0x2188f4],'tdx':_0x5303a6});gracefulExit(_0x46ade3);}),scheduleCmd[a2_0x1c592c(0x331)]('create\x20<name>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x107))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x32a),'Database\x20name\x20(required)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2a8),a2_0x1c592c(0x255))[a2_0x1c592c(0x317)]('-f,\x20--file\x20<path>',a2_0x1c592c(0x291))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x300),a2_0x1c592c(0x12f))[a2_0x1c592c(0x2a1)]('--cron\x20<expression>',a2_0x1c592c(0x2b9))[a2_0x1c592c(0x2a1)]('--timezone\x20<tz>',a2_0x1c592c(0x2e9))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x308),a2_0x1c592c(0x165))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x334),a2_0x1c592c(0x2ba))['option'](a2_0x1c592c(0x352),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x322),a2_0x1c592c(0x1d5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1b1),a2_0x1c592c(0x181))[a2_0x1c592c(0x1fa)](async(_0x4588de,_0xf2bdc5)=>{const _0x2fc283=a2_0x1c592c,_0x1824fd=new ScheduleCreateCommand(),_0x48842f=program[_0x2fc283(0x127)](),_0x2dc755=await createTDXInstance(_0x48842f);_0xf2bdc5['in']&&(_0xf2bdc5[_0x2fc283(0x10f)]=_0xf2bdc5['in']);const _0x48dba4=await _0x1824fd[_0x2fc283(0x1b8)]({'options':{..._0x48842f,..._0xf2bdc5},'args':[_0x4588de],'tdx':_0x2dc755});gracefulExit(_0x48dba4);}),scheduleCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x213))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2f5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x32a),a2_0x1c592c(0x2a7))[a2_0x1c592c(0x2a1)]('--in\x20<db>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0xff),'Read\x20query\x20from\x20file')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x300))['option'](a2_0x1c592c(0x141),'Cron\x20expression\x20for\x20scheduling')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x157),a2_0x1c592c(0x156))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x308),'Delay\x20in\x20seconds\x20before\x20execution')['option']('--priority\x20<-2~2>',a2_0x1c592c(0x2ba))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x352),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x1c592c(0x2a1)]('--engine-version\x20<version>',a2_0x1c592c(0x1d5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1b1),a2_0x1c592c(0x181))[a2_0x1c592c(0x1fa)](async(_0x325908,_0x211828)=>{const _0xb23aa0=a2_0x1c592c,_0x223e60=new ScheduleUpdateCommand(),_0x3b9c83=program['opts'](),_0x145df5=await createTDXInstance(_0x3b9c83);_0x211828['in']&&(_0x211828[_0xb23aa0(0x10f)]=_0x211828['in']);const _0x2edf44=await _0x223e60[_0xb23aa0(0x1b8)]({'options':{..._0x3b9c83,..._0x211828},'args':[_0x325908],'tdx':_0x145df5});gracefulExit(_0x2edf44);}),scheduleCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x281))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1de))[a2_0x1c592c(0x1fa)](async(_0x3465ca,_0x4eb037)=>{const _0xdcd558=a2_0x1c592c,_0x23f321=new ScheduleDeleteCommand(),_0x183a0e=program[_0xdcd558(0x127)](),_0x3f2287=await createTDXInstance(_0x183a0e),_0x4e83a8=await _0x23f321['run']({'options':{..._0x183a0e,..._0x4eb037},'args':[_0x3465ca],'tdx':_0x3f2287});gracefulExit(_0x4e83a8);}),scheduleCmd[a2_0x1c592c(0x331)]('run\x20<name>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x340))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x28b),'Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)')[a2_0x1c592c(0x2a1)]('--num\x20<1-10>',a2_0x1c592c(0x2b1))[a2_0x1c592c(0x1fa)](async(_0x5c03dc,_0xf110d7)=>{const _0x9dad06=a2_0x1c592c,_0x4edcc5=new ScheduleRunCommand(),_0x185c0b=program['opts'](),_0x3f366d=await createTDXInstance(_0x185c0b),_0x18cd8c=await _0x4edcc5[_0x9dad06(0x1b8)]({'options':{..._0x185c0b,..._0xf110d7},'args':[_0x5c03dc],'tdx':_0x3f366d});gracefulExit(_0x18cd8c);}),scheduleCmd['command'](a2_0x1c592c(0x1ed))[a2_0x1c592c(0x28f)]('Show\x20schedule\x20execution\x20history')['option'](a2_0x1c592c(0x1fd),a2_0x1c592c(0xda))[a2_0x1c592c(0x2a1)]('--to\x20<n>',a2_0x1c592c(0x36a))[a2_0x1c592c(0x1fa)](async(_0x26f26e,_0x1f78c2)=>{const _0x534d29=a2_0x1c592c,_0x253f82=new ScheduleHistoryCommand(),_0x2f00b1=program[_0x534d29(0x127)](),_0x34d2c4=await createTDXInstance(_0x2f00b1),_0x2e2080=await _0x253f82[_0x534d29(0x1b8)]({'options':{..._0x2f00b1,..._0x1f78c2},'args':[_0x26f26e],'tdx':_0x34d2c4});gracefulExit(_0x2e2080);});const llmCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0xf5))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x214));llmCmd[a2_0x1c592c(0x331)]('use\x20<project-name>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1e1))[a2_0x1c592c(0x1fa)](async(_0x57809e,_0x483e96)=>{const _0x98cf1c=a2_0x1c592c,_0x3d0e06=new LLMUseCommand(),_0x251724=program['opts'](),_0x1415fd=await createTDXInstance(_0x251724),_0x4ab784=await _0x3d0e06[_0x98cf1c(0x1b8)]({'options':{..._0x251724,..._0x483e96},'args':[_0x57809e],'tdx':_0x1415fd});gracefulExit(_0x4ab784);}),llmCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x222))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xed))[a2_0x1c592c(0x1fa)](async _0xf5e043=>{const _0x1ed11d=a2_0x1c592c,_0x23f947=new LLMModelsCommand(),_0x29914c=program[_0x1ed11d(0x127)](),_0x5d180b=await createTDXInstance(_0x29914c),_0x12dd26=await _0x23f947[_0x1ed11d(0x1b8)]({'options':{..._0x29914c,..._0xf5e043},'args':[],'tdx':_0x5d180b});gracefulExit(_0x12dd26);});const projectCmd=llmCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x345))['description'](a2_0x1c592c(0x16a)),llmProjectListAction=async(_0x15e314,_0x32638a)=>{const _0x365565=a2_0x1c592c,_0x21f3e9=new LLMProjectsCommand(),_0x513c5b=program[_0x365565(0x127)](),_0xd05c85=await createTDXInstance(_0x513c5b),_0x14bb2d=await _0x21f3e9[_0x365565(0x1b8)]({'options':{..._0x513c5b,..._0x32638a},'args':_0x15e314?[_0x15e314]:[],'tdx':_0xd05c85});gracefulExit(_0x14bb2d);};projectCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2c1))[a2_0x1c592c(0x1fa)](llmProjectListAction),llmCmd['command'](a2_0x1c592c(0x2c8))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1c592c(0x1fa)](llmProjectListAction),projectCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x126))['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x112),a2_0x1c592c(0x166))[a2_0x1c592c(0x1fa)](async(_0x40baee,_0x28e56f)=>{const _0xff420b=a2_0x1c592c,_0x29b536=new LLMProjectCreateCommand(),_0x1ce1c9=program[_0xff420b(0x127)](),_0x5cedef=await createTDXInstance(_0x1ce1c9),_0xf7722c=await _0x29b536[_0xff420b(0x1b8)]({'options':{..._0x1ce1c9,..._0x28e56f},'args':[_0x40baee],'tdx':_0x5cedef});gracefulExit(_0xf7722c);}),projectCmd[a2_0x1c592c(0x331)]('delete\x20<name>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x25b))[a2_0x1c592c(0x1fa)](async(_0x16ca21,_0x47a9bf)=>{const _0x213a3d=a2_0x1c592c,_0x11ef37=new LLMProjectDeleteCommand(),_0x50e8bb=program[_0x213a3d(0x127)](),_0x4ff752=await createTDXInstance(_0x50e8bb),_0xd9d88e=await _0x11ef37[_0x213a3d(0x1b8)]({'options':{..._0x50e8bb,..._0x47a9bf},'args':[_0x16ca21],'tdx':_0x4ff752});gracefulExit(_0xd9d88e);}),projectCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2b0))[a2_0x1c592c(0x28f)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')['option'](a2_0x1c592c(0x2ac),a2_0x1c592c(0x36d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0x33c))['action'](async(_0x12bfb0,_0x4eceac)=>{const _0x5d08e9=a2_0x1c592c,_0x2e7b87=new LLMProjectBackupCommand(),_0x23feaf=program[_0x5d08e9(0x127)](),_0x206eff=await createTDXInstance(_0x23feaf),_0x3214b9=await _0x2e7b87['run']({'options':{..._0x23feaf,..._0x4eceac},'args':[_0x12bfb0],'tdx':_0x206eff});gracefulExit(_0x3214b9);}),projectCmd['command'](a2_0x1c592c(0x1e8))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x27e))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x290),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0x208))['action'](async(_0x50c4b7,_0x3dab16)=>{const _0x48152c=a2_0x1c592c,_0x48c67d=new LLMProjectRestoreCommand(),_0x38007c=program[_0x48152c(0x127)](),_0x3c5a6b=await createTDXInstance(_0x38007c),_0x53f7ec=await _0x48c67d['run']({'options':{..._0x38007c,..._0x3dab16},'args':[_0x50c4b7],'tdx':_0x3c5a6b});gracefulExit(_0x53f7ec);});const llmAgentListAction=async(_0x58b4c6,_0x3afc19)=>{const _0x528b24=a2_0x1c592c,_0x3294ba=new LLMAgentsCommand(),_0x4d41c8=program[_0x528b24(0x127)](),_0x287e60=await createTDXInstance(_0x4d41c8),_0x2e9980=await _0x3294ba['run']({'options':{..._0x4d41c8,..._0x3afc19},'args':_0x58b4c6?[_0x58b4c6]:[],'tdx':_0x287e60});gracefulExit(_0x2e9980);};llmCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x11c))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x10a))[a2_0x1c592c(0x1fa)](llmAgentListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x11c))[a2_0x1c592c(0x28f)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['action'](llmAgentListAction),llmCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x299))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xec))['option'](a2_0x1c592c(0x2ca),a2_0x1c592c(0x190))['action'](async(_0x197ac0,_0x279814)=>{const _0x337d67=a2_0x1c592c,_0x2660c7=new LLMHistoryCommand(),_0xf39014=program[_0x337d67(0x127)](),_0x43a984=await createTDXInstance(_0xf39014),_0xd2095f=await _0x2660c7[_0x337d67(0x1b8)]({'options':{..._0xf39014,..._0x279814},'args':_0x197ac0?[_0x197ac0]:[],'tdx':_0x43a984});gracefulExit(_0xd2095f);});isExperimentalAvailable()&&llmCmd['command']('log\x20<chat-id>')['description']('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x1c592c(0x1fa)](async(_0x5d9e86,_0xe1aafc)=>{const _0x489948=a2_0x1c592c,_0x12f8fd=new LLMLogCommand(),_0x4221c7=program['opts'](),_0x2a2749=await createTDXInstance(_0x4221c7),_0x556dfb=await _0x12f8fd[_0x489948(0x1b8)]({'options':{..._0x4221c7,..._0xe1aafc},'args':[_0x5d9e86],'tdx':_0x2a2749});gracefulExit(_0x556dfb);});program[a2_0x1c592c(0x331)](a2_0x1c592c(0x1bb))[a2_0x1c592c(0x192)]('[options]\x20--\x20[claude-code-args...]')['description'](a2_0x1c592c(0x189))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2d2),a2_0x1c592c(0x225))['option'](a2_0x1c592c(0x1c7),a2_0x1c592c(0x2f3))['option'](a2_0x1c592c(0x19f),a2_0x1c592c(0x152))[a2_0x1c592c(0x29c)]()['allowExcessArguments'](!![])['addHelpText']('after',a2_0x1c592c(0x269))[a2_0x1c592c(0x1fa)](async(_0x5b007e,_0x5cb484)=>{const _0x594328=a2_0x1c592c,_0x38a836=program[_0x594328(0x127)](),_0x51aa74=Array[_0x594328(0x382)](_0x5b007e)?_0x5b007e:[];if(_0x51aa74[0x0]===_0x594328(0x22d)){const _0x5c3e1a=new ClaudeStatuslineCommand(),_0x82a1ea=await _0x5c3e1a[_0x594328(0x1b8)]({'options':{..._0x38a836,..._0x5cb484},'args':_0x51aa74['slice'](0x1),'tdx':null});gracefulExit(_0x82a1ea);}if(_0x51aa74[0x0]===_0x594328(0x192)){const _0x16be19=new ClaudeUsageCommand(),_0x31231f=await _0x16be19[_0x594328(0x1b8)]({'options':{..._0x38a836,..._0x5cb484},'args':_0x51aa74['slice'](0x1),'tdx':null});gracefulExit(_0x31231f);}const _0x299999=new ClaudeCommand(),_0x51f468=await createTDXInstance(_0x38a836),_0x2e842b=await _0x299999[_0x594328(0x1b8)]({'options':{..._0x38a836,..._0x5cb484},'args':_0x51aa74,'tdx':_0x51f468});gracefulExit(_0x2e842b);}),program['command'](a2_0x1c592c(0x356))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x34a))['option'](a2_0x1c592c(0x21d),'Clear\x20session\x20context')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x125),a2_0x1c592c(0x241))[a2_0x1c592c(0x1fa)](async(_0x30f28a,_0x15fa1a,_0x33ff29)=>{const _0x3cd817=a2_0x1c592c,_0x5f02e9=new UseCommand(),_0x4516e1=program[_0x3cd817(0x127)](),_0x404c9c=[];if(_0x30f28a)_0x404c9c[_0x3cd817(0x171)](_0x30f28a);if(_0x15fa1a)_0x404c9c[_0x3cd817(0x171)](_0x15fa1a);const _0x30a3a4=_0x30f28a===_0x3cd817(0x2db),_0xde65e8=_0x30a3a4?await createTDXInstance(_0x4516e1):null,_0x41a82b=await _0x5f02e9[_0x3cd817(0x1b8)]({'options':{..._0x4516e1,..._0x33ff29},'args':_0x404c9c,'tdx':_0xde65e8});gracefulExit(_0x41a82b);}),program[a2_0x1c592c(0x331)]('status')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x325))[a2_0x1c592c(0x1fa)](async _0x51d852=>{const _0x26996e=a2_0x1c592c,_0x1cb694=new StatusCommand(),_0x22c33d=program['opts'](),_0x25c28e=await createTDXInstance(_0x22c33d),_0x53f601=await _0x1cb694[_0x26996e(0x1b8)]({'options':{..._0x22c33d,..._0x51d852},'args':[],'tdx':_0x25c28e});gracefulExit(_0x53f601);}),program[a2_0x1c592c(0x331)]('unset\x20<resource>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x380))[a2_0x1c592c(0x2a1)]('--default',a2_0x1c592c(0x2df))['action'](async(_0x42ea04,_0x3c321a)=>{const _0x4bfef3=a2_0x1c592c,_0x8f74d=new UnsetCommand(),_0x409c9c=program['opts'](),_0x4a711a=await _0x8f74d[_0x4bfef3(0x1b8)]({'options':{..._0x409c9c,..._0x3c321a},'args':[_0x42ea04],'tdx':null});gracefulExit(_0x4a711a);}),program[a2_0x1c592c(0x331)]('chats')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x17d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2ca),a2_0x1c592c(0x1f1))['action'](async _0x47fcd3=>{const _0x1f48ab=a2_0x1c592c,_0x4c67c9=new ChatsCommand(),_0x549021=program['opts'](),_0x327046=await createTDXInstance(_0x549021),_0x4f782c=await _0x4c67c9[_0x1f48ab(0x1b8)]({'options':{..._0x549021,..._0x47fcd3},'args':[],'tdx':_0x327046});gracefulExit(_0x4f782c);});const authCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x136))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1a6));async function runAuthStatusCommand(_0xed2227){const _0x42281a=a2_0x1c592c,_0x58fded=new AuthStatusCommand(),_0x5ee347=program[_0x42281a(0x127)](),_0x2d4316=await createTDXInstance(_0x5ee347),_0x26a17c=await _0x58fded['run']({'options':{..._0x5ee347,..._0xed2227},'args':[],'tdx':_0x2d4316});gracefulExit(_0x26a17c);}authCmd[a2_0x1c592c(0x1fa)](runAuthStatusCommand),authCmd['command']('status')[a2_0x1c592c(0x28f)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')['action'](runAuthStatusCommand),authCmd['command'](a2_0x1c592c(0x37d))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x20c))[a2_0x1c592c(0x1b9)](a2_0x1c592c(0x289),a2_0x1c592c(0x31d))[a2_0x1c592c(0x1fa)](async _0x2a113a=>{const _0x518ebc=a2_0x1c592c,_0x2e13b5=new AuthSetupCommand(),_0x5f55b6=program[_0x518ebc(0x127)](),_0x32eb05=await createTDXInstance(_0x5f55b6),_0x2a8e55=await _0x2e13b5[_0x518ebc(0x1b8)]({'options':{..._0x5f55b6,..._0x2a113a},'args':[],'tdx':_0x32eb05});gracefulExit(_0x2a8e55);}),authCmd[a2_0x1c592c(0x331)]('clear')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x319))['addHelpText']('after',a2_0x1c592c(0x24b))['action'](async _0x108563=>{const _0xfcacc6=a2_0x1c592c,_0x2a7b26=new AuthClearCommand(),_0x12cd55=program['opts'](),_0x4049ad=await _0x2a7b26[_0xfcacc6(0x1b8)]({'options':{..._0x12cd55,..._0x108563},'args':[],'tdx':null});gracefulExit(_0x4049ad);});const userCmd=program['command'](a2_0x1c592c(0xf0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x29e)),userListAction=async _0x529199=>{const _0x505259=new UserListCommand(),_0x2d257b=program['opts'](),_0x502f8b=await createTDXInstance(_0x2d257b),_0x503124=await _0x505259['run']({'options':{..._0x2d257b,..._0x529199},'args':[],'tdx':_0x502f8b});gracefulExit(_0x503124);};userCmd['action'](async _0x12bfc8=>{const _0x3860a6=a2_0x1c592c,_0x1da95d=new UserCommand(),_0x3b1c53=program['opts'](),_0x1de4ac=await createTDXInstance(_0x3b1c53),_0x980ebe=await _0x1da95d[_0x3860a6(0x1b8)]({'options':{..._0x3b1c53,..._0x12bfc8},'args':[],'tdx':_0x1de4ac});gracefulExit(_0x980ebe);}),userCmd['command'](a2_0x1c592c(0x309))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x307))['action'](userListAction),program['command'](a2_0x1c592c(0x22e))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2c3))[a2_0x1c592c(0x1fa)](userListAction),program[a2_0x1c592c(0x331)]('profiles')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2e4))[a2_0x1c592c(0x1fa)](async _0x2e8b7c=>{const _0x28d422=new ProfilesCommand(),_0x16a234=program['opts'](),_0x5eef23=await _0x28d422['run']({'options':{..._0x16a234,..._0x2e8b7c},'args':[],'tdx':null});gracefulExit(_0x5eef23);});const profileCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x1d8))['description'](a2_0x1c592c(0x187));profileCmd[a2_0x1c592c(0x1fa)](()=>{const _0xde1a21=a2_0x1c592c;profileCmd[_0xde1a21(0x264)]();});const profileListAction=async _0x256ad8=>{const _0x1eeead=a2_0x1c592c,_0xf142ca=new ProfilesCommand(),_0x1a2558=program[_0x1eeead(0x127)](),_0x77b112=await _0xf142ca[_0x1eeead(0x1b8)]({'options':{..._0x1a2558,..._0x256ad8},'args':[],'tdx':null});gracefulExit(_0x77b112);};profileCmd[a2_0x1c592c(0x331)]('list')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2e4))[a2_0x1c592c(0x1fa)](profileListAction),profileCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2cd))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x139))[a2_0x1c592c(0x1b9)](a2_0x1c592c(0x289),a2_0x1c592c(0x19c))[a2_0x1c592c(0x1fa)](async(_0x415602,_0xb53930)=>{const _0x3df755=a2_0x1c592c,_0x389606=new ProfileCreateCommand(),_0x1e7b10=program[_0x3df755(0x127)](),_0x47065e=await _0x389606[_0x3df755(0x1b8)]({'options':{..._0x1e7b10,..._0xb53930},'args':_0x415602?[_0x415602]:[],'tdx':null});gracefulExit(_0x47065e);}),profileCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x35b))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x16c))['addHelpText'](a2_0x1c592c(0x289),a2_0x1c592c(0x329))['action'](async(_0x2c337a,_0x26dcaa)=>{const _0x236e0a=a2_0x1c592c,_0x4b6669=new ProfileRemoveCommand(),_0x41f0dc=program[_0x236e0a(0x127)](),_0x4e2c01=await _0x4b6669[_0x236e0a(0x1b8)]({'options':{..._0x41f0dc,..._0x26dcaa},'args':[_0x2c337a],'tdx':null});gracefulExit(_0x4e2c01);}),profileCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x191))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2d5))['addHelpText'](a2_0x1c592c(0x289),a2_0x1c592c(0xd8))[a2_0x1c592c(0x1fa)](async(_0x196445,_0x585d79)=>{const _0x3e615b=a2_0x1c592c,_0x582691=new ProfileSetCommand(),_0x125e0c=program[_0x3e615b(0x127)](),_0x469bf7=await _0x582691[_0x3e615b(0x1b8)]({'options':{..._0x125e0c,..._0x585d79},'args':[_0x196445],'tdx':null});gracefulExit(_0x469bf7);}),profileCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x13d))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1ba))['option'](a2_0x1c592c(0x125),a2_0x1c592c(0x241))['addHelpText'](a2_0x1c592c(0x289),a2_0x1c592c(0x2d1))[a2_0x1c592c(0x1fa)](async(_0x3716bd,_0x491797)=>{const _0x28096c=a2_0x1c592c,_0x440b10=new ProfileUseCommand(),_0x5485ff=program[_0x28096c(0x127)](),_0x50a4a8=await _0x440b10[_0x28096c(0x1b8)]({'options':{..._0x5485ff,..._0x491797},'args':[_0x3716bd],'tdx':null});gracefulExit(_0x50a4a8);});const engageCmd=program[a2_0x1c592c(0x331)]('engage')[a2_0x1c592c(0x28f)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x49f697=>{return async(_0x323696,_0x44c2cb)=>{const _0xcab969=a2_0x1583,_0x3b8191=new _0x49f697(),_0x4f6367=program['opts'](),_0x3e9f96=await createTDXInstance(_0x4f6367),_0x46fd20=await _0x3b8191[_0xcab969(0x1b8)]({'options':{..._0x4f6367,..._0x44c2cb},'args':[_0x323696],'tdx':_0x3e9f96});gracefulExit(_0x46fd20);};},createEngageNoArgAction=_0x48f181=>{return async _0xdebbac=>{const _0xb77e62=a2_0x1583,_0x4e700e=new _0x48f181(),_0x238885=program[_0xb77e62(0x127)](),_0x3a6e74=await createTDXInstance(_0x238885),_0x48dfc8=await _0x4e700e[_0xb77e62(0x1b8)]({'options':{..._0x238885,..._0xdebbac},'args':[],'tdx':_0x3a6e74});gracefulExit(_0x48dfc8);};},createEngageListAction=_0x42d4a7=>{return async(_0x4562fc,_0x34f6f9)=>{const _0x44924a=a2_0x1583,_0x3169e5=new _0x42d4a7(),_0x2fd226=program[_0x44924a(0x127)](),_0x3df9a1=await createTDXInstance(_0x2fd226),_0x4ab2c3=await _0x3169e5[_0x44924a(0x1b8)]({'options':{..._0x2fd226,..._0x34f6f9},'args':_0x4562fc?[_0x4562fc]:[],'tdx':_0x3df9a1});gracefulExit(_0x4ab2c3);};},campaignCmd=engageCmd['command'](a2_0x1c592c(0x28a))['description'](a2_0x1c592c(0x348));campaignCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x26c))['option'](a2_0x1c592c(0x1a1),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x1c592c(0x2a1)]('--workspace\x20<name>',a2_0x1c592c(0x10d))[a2_0x1c592c(0x1fa)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x1c592c(0x339))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x32d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x26c))[a2_0x1c592c(0x2a1)]('--status\x20<status>',a2_0x1c592c(0x226))['option'](a2_0x1c592c(0x16d),'Workspace\x20name')['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd['command']('show\x20<name-or-id>')[a2_0x1c592c(0x28f)]('Show\x20campaign\x20details')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2a5),a2_0x1c592c(0x11d))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xdb))[a2_0x1c592c(0x28f)]('Create\x20a\x20new\x20campaign')[a2_0x1c592c(0x317)]('--name\x20<name>',a2_0x1c592c(0x1f7))['requiredOption'](a2_0x1c592c(0x27c),a2_0x1c592c(0xfa))['option'](a2_0x1c592c(0x16d),a2_0x1c592c(0x145))['option']('--description\x20<desc>',a2_0x1c592c(0x193))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x37c),a2_0x1c592c(0x110))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2f4),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x1c592c(0x2da),a2_0x1c592c(0xf8))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x10c),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x157),a2_0x1c592c(0x337))[a2_0x1c592c(0x1fa)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1eb))['description']('Update\x20a\x20campaign')[a2_0x1c592c(0x2a1)]('--workspace\x20<name>',a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x154),a2_0x1c592c(0x2c4))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x14d),a2_0x1c592c(0x193))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x37c),a2_0x1c592c(0x110))['option'](a2_0x1c592c(0x2f4),a2_0x1c592c(0x2fb))['option']('--json-columns\x20<cols>',a2_0x1c592c(0xf8))['option'](a2_0x1c592c(0x10c),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x157),a2_0x1c592c(0x337))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')['description']('Delete\x20a\x20campaign')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1b2),a2_0x1c592c(0x326))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x1c592c(0x19e))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x14c))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x221))['description'](a2_0x1c592c(0x33e))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x301))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xf6))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),'Workspace\x20name')[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x248))['option'](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))['action'](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x188))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x22b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x154),a2_0x1c592c(0x1a5))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x26c))['option'](a2_0x1c592c(0x146),a2_0x1c592c(0x368))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1c5))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1cb))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),'Workspace\x20name')[a2_0x1c592c(0x2a1)]('--dry-run',a2_0x1c592c(0x207))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignPushCommand)),campaignCmd['command'](a2_0x1c592c(0x1d9))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2d6))['option'](a2_0x1c592c(0x1bd),a2_0x1c592c(0x155))[a2_0x1c592c(0x1fa)](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd['command'](a2_0x1c592c(0x2ec))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x148));templateCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x25f))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x1fa)](createEngageListAction(EngageTemplatesCommand)),engageCmd['command'](a2_0x1c592c(0x1ea))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x360))[a2_0x1c592c(0x2a1)]('--workspace\x20<name>','Workspace\x20name')[a2_0x1c592c(0x1fa)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1e3))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1a4))[a2_0x1c592c(0x2a1)]('--workspace\x20<name>',a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2a5),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1c592c(0x1fa)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command']('create')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x235))[a2_0x1c592c(0x317)](a2_0x1c592c(0x154),a2_0x1c592c(0x244))[a2_0x1c592c(0x317)](a2_0x1c592c(0x24c),a2_0x1c592c(0x36c))[a2_0x1c592c(0x317)]('--html\x20<html>',a2_0x1c592c(0x22c))[a2_0x1c592c(0x2a1)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x1c592c(0x2a1)]('--plaintext\x20<text>',a2_0x1c592c(0x27d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1b0),a2_0x1c592c(0x19a),_0x22f7dd=>{const _0x190609=a2_0x1c592c;if(![_0x190609(0x1d7),'grapesjs'][_0x190609(0x341)](_0x22f7dd))throw new SDKError(ErrorCode[_0x190609(0x270)],_0x190609(0x343)+_0x22f7dd+_0x190609(0x227));return _0x22f7dd;})[a2_0x1c592c(0x1fa)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x1c592c(0x1eb))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2e3))[a2_0x1c592c(0x2a1)]('--workspace\x20<name>',a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)]('--name\x20<name>',a2_0x1c592c(0xcf))['option'](a2_0x1c592c(0x24c),a2_0x1c592c(0x36c))['option']('--html\x20<html>','HTML\x20template\x20content')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x298),'Plaintext\x20template\x20content')['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x1c592c(0x1ae))['description'](a2_0x1c592c(0x200))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))['option']('--yes',a2_0x1c592c(0x326))[a2_0x1c592c(0x1fa)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x381))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1e9));workspaceCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1c6))[a2_0x1c592c(0x1fa)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x1c592c(0x331)]('workspaces\x20[pattern]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x363))[a2_0x1c592c(0x1fa)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1e3))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2ef))['option'](a2_0x1c592c(0x2a5),a2_0x1c592c(0x11d))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1c592c(0x331)]('create')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x176))[a2_0x1c592c(0x317)]('--name\x20<name>',a2_0x1c592c(0x10d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x14d),a2_0x1c592c(0x2e2))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1eb))['description'](a2_0x1c592c(0x17c))[a2_0x1c592c(0x2a1)]('--name\x20<name>',a2_0x1c592c(0xce))['option'](a2_0x1c592c(0x14d),a2_0x1c592c(0x2e2))[a2_0x1c592c(0x1fa)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1c592c(0x331)]('delete\x20<name-or-id>')['description'](a2_0x1c592c(0x280))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1b2),a2_0x1c592c(0x326))[a2_0x1c592c(0x1fa)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1c592c(0x13d))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2f0))[a2_0x1c592c(0x1fa)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x11f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xf7));deliveryCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x219))[a2_0x1c592c(0x28f)]('List\x20email\x20senders')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x16d),a2_0x1c592c(0x10d))[a2_0x1c592c(0x1fa)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x1c592c(0x331)]('connection')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2d9)),connectionListAction=async _0x46c8b0=>{const _0x18f74a=a2_0x1c592c,_0x294c9e=new ConnectionListCommand(),_0x3f1918=program['opts'](),_0x47e195=await createTDXInstance(_0x3f1918),_0x2ec5e1=await _0x294c9e[_0x18f74a(0x1b8)]({'options':{..._0x3f1918,..._0x46c8b0},'args':[],'tdx':_0x47e195});gracefulExit(_0x2ec5e1);};connectionCmd['command'](a2_0x1c592c(0x309))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x378))[a2_0x1c592c(0x1fa)](connectionListAction),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x2f7),{'hidden':!![]})[a2_0x1c592c(0x28f)](a2_0x1c592c(0x287))['action'](connectionListAction),connectionCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2c2))['description']('Show\x20connection\x20details\x20by\x20name')[a2_0x1c592c(0x1fa)](async(_0x211191,_0x3f7c54)=>{const _0x139a4c=new ConnectionShowCommand(),_0x20c1ff=program['opts'](),_0x35c69f=await createTDXInstance(_0x20c1ff),_0x376deb=await _0x139a4c['run']({'options':{..._0x20c1ff,..._0x3f7c54},'args':[_0x211191],'tdx':_0x35c69f});gracefulExit(_0x376deb);}),connectionCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2dc))[a2_0x1c592c(0x28f)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x1c592c(0x1fa)](async(_0x3d7965,_0x6dde29)=>{const _0x1f905c=a2_0x1c592c,_0x34f2a4=new ConnectionSchemaCommand(),_0x30a5ea=program[_0x1f905c(0x127)](),_0x55e459=await createTDXInstance(_0x30a5ea),_0x3c75ed=await _0x34f2a4[_0x1f905c(0x1b8)]({'options':{..._0x30a5ea,..._0x6dde29},'args':[_0x3d7965],'tdx':_0x55e459});gracefulExit(_0x3c75ed);}),connectionCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0xf9))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1ec))[a2_0x1c592c(0x1fa)](async _0x197c11=>{const _0x2aab5d=a2_0x1c592c,_0xa817ad=new ConnectionTypesCommand(),_0x96e80f=program[_0x2aab5d(0x127)](),_0x274f6c=await createTDXInstance(_0x96e80f),_0x12f71e=await _0xa817ad[_0x2aab5d(0x1b8)]({'options':{..._0x96e80f,..._0x197c11},'args':[],'tdx':_0x274f6c});gracefulExit(_0x12f71e);}),connectionCmd['command'](a2_0x1c592c(0x1fb))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2f2))['action'](async(_0x568047,_0x2cd082)=>{const _0x1a5145=a2_0x1c592c,_0x2b52fc=new ConnectionSettingsCommand(),_0x59cce2=program['opts'](),_0x989c6b=await createTDXInstance(_0x59cce2),_0x4fe32f=await _0x2b52fc[_0x1a5145(0x1b8)]({'options':{..._0x59cce2,..._0x2cd082},'args':[_0x568047],'tdx':_0x989c6b});gracefulExit(_0x4fe32f);});const journeyCmd=program[a2_0x1c592c(0x331)](a2_0x1c592c(0x103))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x254)),journeyListAction=async(_0x47ddd2,_0x22fdc4)=>{const _0x19f40b=a2_0x1c592c,_0x41591f=new JourneyListCommand(),_0x969f6c=program[_0x19f40b(0x127)](),_0x4fb0f1=await createTDXInstance(_0x969f6c),_0x3d540a=await _0x41591f[_0x19f40b(0x1b8)]({'options':{..._0x969f6c,..._0x22fdc4},'args':_0x47ddd2?[_0x47ddd2]:[],'tdx':_0x4fb0f1});gracefulExit(_0x3d540a);};journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x34f))['description'](a2_0x1c592c(0x13b))[a2_0x1c592c(0x1fa)](journeyListAction),journeyCmd[a2_0x1c592c(0x331)]('view\x20<name-or-path>')[a2_0x1c592c(0x28f)]('Show\x20journey\x20details')['option'](a2_0x1c592c(0x14e),a2_0x1c592c(0x268))[a2_0x1c592c(0x2a1)]('--include-stats',a2_0x1c592c(0x1c0))[a2_0x1c592c(0x1fa)](async(_0x457421,_0x3ec2b2)=>{const _0x205356=a2_0x1c592c,_0x2ede1f=new JourneyViewCommand(),_0x3db027=program[_0x205356(0x127)](),_0xdf1be3=await createTDXInstance(_0x3db027),_0x28b055=await _0x2ede1f[_0x205356(0x1b8)]({'options':{..._0x3db027,..._0x3ec2b2},'args':[_0x457421],'tdx':_0xdf1be3});gracefulExit(_0x28b055);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2b4))[a2_0x1c592c(0x28f)]('Show\x20journey\x20statistics')[a2_0x1c592c(0x2a1)]('--stage\x20<name>',a2_0x1c592c(0x224))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x367),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option'](a2_0x1c592c(0x312),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option'](a2_0x1c592c(0x1ce),a2_0x1c592c(0x31c))[a2_0x1c592c(0x1fa)](async(_0x1d6cd7,_0xf40b2d)=>{const _0x2288ec=a2_0x1c592c,_0x888767=new JourneyStatsCommand(),_0x59212c=program[_0x2288ec(0x127)](),_0x5d9e90=await createTDXInstance(_0x59212c),_0x4c5609=await _0x888767[_0x2288ec(0x1b8)]({'options':{..._0x59212c,..._0xf40b2d},'args':[_0x1d6cd7],'tdx':_0x5d9e90});gracefulExit(_0x4c5609);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x172))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1ef))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x27c),a2_0x1c592c(0x243))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x367),a2_0x1c592c(0x29d))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x312),a2_0x1c592c(0x358))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x122),a2_0x1c592c(0x284),_0xbfd574=>{const _0x12c3cc=a2_0x1c592c,_0x1a0f78=parseInt(_0xbfd574,0xa);if(isNaN(_0x1a0f78))throw new Error(_0x12c3cc(0x25c)+_0xbfd574+_0x12c3cc(0x272));return _0x1a0f78;})[a2_0x1c592c(0x1fa)](async(_0x34b623,_0x4d11b6)=>{const _0xea95bb=a2_0x1c592c,_0x5ae4af=new JourneyTrafficCommand(),_0x43cce7=program[_0xea95bb(0x127)](),_0x4f5632=await createTDXInstance(_0x43cce7),_0x1ca3d0=await _0x5ae4af['run']({'options':{..._0x43cce7,..._0x4d11b6},'args':[_0x34b623],'tdx':_0x4f5632});gracefulExit(_0x1ca3d0);}),journeyCmd[a2_0x1c592c(0x331)]('pause\x20<name-or-path>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x285))[a2_0x1c592c(0x1fa)](async(_0x150119,_0x1a392f)=>{const _0x8161d5=a2_0x1c592c,_0x202cdf=new JourneyPauseCommand(),_0x28d57e=program[_0x8161d5(0x127)](),_0x13f40e=await createTDXInstance(_0x28d57e),_0x7d2af4=await _0x202cdf[_0x8161d5(0x1b8)]({'options':{..._0x28d57e,..._0x1a392f},'args':[_0x150119],'tdx':_0x13f40e});gracefulExit(_0x7d2af4);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x17f))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x2c5))[a2_0x1c592c(0x1fa)](async(_0x19f0f4,_0x3967f5)=>{const _0x207d4f=a2_0x1c592c,_0x25f351=new JourneyResumeCommand(),_0x287eed=program[_0x207d4f(0x127)](),_0x415490=await createTDXInstance(_0x287eed),_0x43a727=await _0x25f351[_0x207d4f(0x1b8)]({'options':{..._0x287eed,..._0x3967f5},'args':[_0x19f0f4],'tdx':_0x415490});gracefulExit(_0x43a727);}),journeyCmd[a2_0x1c592c(0x331)]('pull\x20[name]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x195))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0xdf))[a2_0x1c592c(0x1fa)](async(_0x5b0ac2,_0x26021a)=>{const _0x2c4b28=a2_0x1c592c,_0x14d3e2=new JourneyPullCommand(),_0x574303=program[_0x2c4b28(0x127)](),_0x22ef2f=await createTDXInstance(_0x574303),_0x369710=await _0x14d3e2[_0x2c4b28(0x1b8)]({'options':{..._0x574303,..._0x26021a},'args':_0x5b0ac2?[_0x5b0ac2]:[],'tdx':_0x22ef2f});gracefulExit(_0x369710);}),journeyCmd[a2_0x1c592c(0x331)]('push\x20[target]')['description']('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x1c592c(0x1fa)](async(_0x1e9aa3,_0x209b22)=>{const _0x35de8d=a2_0x1c592c,_0xed3a81=new JourneyPushCommand(),_0xb51e1e=program['opts'](),_0x23ed3f=await createTDXInstance(_0xb51e1e),_0x2eff96=await _0xed3a81[_0x35de8d(0x1b8)]({'options':{..._0xb51e1e,..._0x209b22},'args':_0x1e9aa3?[_0x1e9aa3]:[],'tdx':_0x23ed3f});gracefulExit(_0x2eff96);}),journeyCmd['command']('columns\x20<name-or-path>')['description']('Show\x20journey\x20table\x20column-to-step\x20mapping')[a2_0x1c592c(0x1fa)](async(_0x2ecbdd,_0x256018)=>{const _0x25100e=a2_0x1c592c,_0x597e8d=new JourneyColumnsCommand(),_0x1dfcc8=program[_0x25100e(0x127)](),_0x2086f9=await createTDXInstance(_0x1dfcc8),_0x5442d7=await _0x597e8d[_0x25100e(0x1b8)]({'options':{..._0x1dfcc8,..._0x256018},'args':[_0x2ecbdd],'tdx':_0x2086f9});gracefulExit(_0x5442d7);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x262))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x100))[a2_0x1c592c(0x1fa)](async(_0x1f1a06,_0x1f05c6)=>{const _0x184907=a2_0x1c592c,_0x2c4d18=new JourneyActivationsCommand(),_0x26e941=program[_0x184907(0x127)](),_0x59cc87=await createTDXInstance(_0x26e941),_0x228cae=await _0x2c4d18[_0x184907(0x1b8)]({'options':{..._0x26e941,..._0x1f05c6},'args':[_0x1f1a06],'tdx':_0x59cc87});gracefulExit(_0x228cae);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x203))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x250))['action'](async(_0x33d6e5,_0x5cfe82)=>{const _0x551fa1=a2_0x1c592c,_0x23383a=new JourneyVersionsCommand(),_0x2e5e71=program[_0x551fa1(0x127)](),_0xbb138e=await createTDXInstance(_0x2e5e71),_0x5007a8=await _0x23383a[_0x551fa1(0x1b8)]({'options':{..._0x2e5e71,..._0x5cfe82},'args':[_0x33d6e5],'tdx':_0xbb138e});gracefulExit(_0x5007a8);});const journeyVersionCmd=journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x247))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x18c));journeyVersionCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x137))[a2_0x1c592c(0x28f)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x1c592c(0x1fa)](async(_0x220d84,_0x397a9e)=>{const _0x10bcb6=a2_0x1c592c,_0x23ff32=new JourneyVersionCreateCommand(),_0x449a1a=program[_0x10bcb6(0x127)](),_0x25261b=await createTDXInstance(_0x449a1a),_0x54f35f=await _0x23ff32['run']({'options':{..._0x449a1a,..._0x397a9e},'args':[_0x220d84],'tdx':_0x25261b});gracefulExit(_0x54f35f);}),journeyVersionCmd[a2_0x1c592c(0x331)]('view\x20<name-or-path>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x365))[a2_0x1c592c(0x317)](a2_0x1c592c(0x278),'Version\x20number\x20to\x20view')[a2_0x1c592c(0x1fa)](async(_0x207426,_0x30df4b)=>{const _0x3065fa=a2_0x1c592c,_0x2d27d1=new JourneyVersionViewCommand(),_0x7589e8=program['opts'](),_0x4fcd60=await createTDXInstance(_0x7589e8),_0x2f2b91=await _0x2d27d1[_0x3065fa(0x1b8)]({'options':{..._0x7589e8,..._0x30df4b},'args':[_0x207426],'tdx':_0x4fcd60});gracefulExit(_0x2f2b91);}),journeyCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1d9))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1fc))[a2_0x1c592c(0x1fa)](async(_0xd8589a,_0x4daa12)=>{const _0x48f2d5=a2_0x1c592c,_0x45491e=new JourneyValidateCommand(),_0x3d6a58=program[_0x48f2d5(0x127)](),_0x5dd847=await createTDXInstance(_0x3d6a58),_0x13e624=await _0x45491e[_0x48f2d5(0x1b8)]({'options':{..._0x3d6a58,..._0x4daa12},'args':_0xd8589a?[_0xd8589a]:[],'tdx':_0x5dd847});gracefulExit(_0x13e624);}),program[a2_0x1c592c(0x331)]('journeys\x20[pattern]')['description'](a2_0x1c592c(0x2c9))['action'](journeyListAction);const agentSyncCmd=program[a2_0x1c592c(0x331)]('agent')[a2_0x1c592c(0x28f)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x20e))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x32b))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2bf),a2_0x1c592c(0x2eb))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2cf),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2fa),'Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x1c592c(0x1fa)](async(_0x563fe6,_0xfa9da0,_0x49df99)=>{const _0x133ece=a2_0x1c592c,_0x35af6=new AgentPullCommand(),_0x5030d4=program[_0x133ece(0x127)](),_0x35621e=await createTDXInstance(_0x5030d4),_0x391a28=[];if(_0x563fe6)_0x391a28[_0x133ece(0x171)](_0x563fe6);if(_0xfa9da0)_0x391a28[_0x133ece(0x171)](_0xfa9da0);const _0x21ccc3=await _0x35af6[_0x133ece(0x1b8)]({'options':{..._0x5030d4,..._0x49df99},'args':_0x391a28,'tdx':_0x35621e});gracefulExit(_0x21ccc3);}),agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x282))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x185))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x2cf),a2_0x1c592c(0x2b2))[a2_0x1c592c(0x1fa)](async(_0x21857b,_0x3b238c)=>{const _0x49ca28=a2_0x1c592c,_0x5430e1=new AgentPushCommand(),_0x551a1f=program[_0x49ca28(0x127)](),_0x4f63c6=await createTDXInstance(_0x551a1f),_0x34ba58=await _0x5430e1['run']({'options':{..._0x551a1f,..._0x3b238c},'args':_0x21857b?[_0x21857b]:[],'tdx':_0x4f63c6});gracefulExit(_0x34ba58);}),agentSyncCmd['command'](a2_0x1c592c(0x19d))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x1df))['option'](a2_0x1c592c(0x223),'Name\x20for\x20the\x20new\x20project\x20(required)')['action'](async(_0x25219a,_0x5148d0)=>{const _0x5a95d2=a2_0x1c592c,_0x27da04=new AgentCloneCommand(),_0x1bcde0=program[_0x5a95d2(0x127)](),_0x23e3b7=await createTDXInstance(_0x1bcde0),_0x37907e=await _0x27da04[_0x5a95d2(0x1b8)]({'options':{..._0x1bcde0,..._0x5148d0},'args':_0x25219a?[_0x25219a]:[],'tdx':_0x23e3b7});gracefulExit(_0x37907e);}),agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x306))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x169))['option'](a2_0x1c592c(0xeb),a2_0x1c592c(0x1b4))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x132),'Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x146),a2_0x1c592c(0x318))[a2_0x1c592c(0x2a1)]('--no-eval',a2_0x1c592c(0x292))['option'](a2_0x1c592c(0x267),a2_0x1c592c(0x106))[a2_0x1c592c(0x1fa)](async(_0x1dad87,_0x4effe6)=>{const _0x2c4f1d=new AgentTestCommand(),_0x123db3=program['opts'](),_0xb9ea23=await createTDXInstance(_0x123db3),_0xf10f47=await _0x2c4f1d['run']({'options':{..._0x123db3,..._0x4effe6},'args':_0x1dad87?[_0x1dad87]:[],'tdx':_0xb9ea23});gracefulExit(_0xf10f47);}),agentSyncCmd[a2_0x1c592c(0x331)]('list\x20[pattern]')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x333))[a2_0x1c592c(0x1fa)](llmAgentListAction),agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x1a0))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x32c))[a2_0x1c592c(0x1fa)](async(_0x177167,_0x4371fb)=>{const _0x3ea1c9=a2_0x1c592c,_0x5d548e=new LLMAgentShowCommand(),_0xcc48e6=program['opts'](),_0x46a604=await createTDXInstance(_0xcc48e6),_0x51b21d=await _0x5d548e[_0x3ea1c9(0x1b8)]({'options':{..._0xcc48e6,..._0x4371fb},'args':[_0x177167],'tdx':_0x46a604});gracefulExit(_0x51b21d);}),agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x126))[a2_0x1c592c(0x28f)](a2_0x1c592c(0xd2))[a2_0x1c592c(0x2a1)]('--system-prompt\x20<text>',a2_0x1c592c(0x160))[a2_0x1c592c(0x2a1)]('--model\x20<name>',a2_0x1c592c(0x1c1),a2_0x1c592c(0x20a))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x174),a2_0x1c592c(0x1c8))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x1af),a2_0x1c592c(0x1e2),'4')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x361),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')[a2_0x1c592c(0x1fa)](async(_0x36be94,_0x1d5052)=>{const _0xb05cc7=a2_0x1c592c,_0x3b977a=new LLMAgentCreateCommand(),_0x10fbc7=program[_0xb05cc7(0x127)](),_0x28808f=await createTDXInstance(_0x10fbc7),_0x3589e5=await _0x3b977a[_0xb05cc7(0x1b8)]({'options':{..._0x10fbc7,..._0x1d5052},'args':[_0x36be94],'tdx':_0x28808f});gracefulExit(_0x3589e5);}),agentSyncCmd[a2_0x1c592c(0x331)]('update\x20<agent-name>')[a2_0x1c592c(0x28f)](a2_0x1c592c(0x206))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x249),a2_0x1c592c(0x315))['option'](a2_0x1c592c(0x1cf),'Agent\x20prompt/instructions')[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x112),a2_0x1c592c(0x311))[a2_0x1c592c(0x2a1)](a2_0x1c592c(0x174),a2_0x1c592c(0x1c8))['action'](async(_0x4ba897,_0x4255ad)=>{const _0x2d28d4=a2_0x1c592c,_0xe67a8=new LLMAgentUpdateCommand(),_0x59a4c5=program[_0x2d28d4(0x127)](),_0x1e43ea=await createTDXInstance(_0x59a4c5),_0x642afe=await _0xe67a8[_0x2d28d4(0x1b8)]({'options':{..._0x59a4c5,..._0x4255ad},'args':[_0x4ba897],'tdx':_0x1e43ea});gracefulExit(_0x642afe);}),agentSyncCmd[a2_0x1c592c(0x331)](a2_0x1c592c(0x2b8))[a2_0x1c592c(0x28f)](a2_0x1c592c(0x297))[a2_0x1c592c(0x1fa)](async(_0x44687d,_0x1693cc)=>{const _0x5e5c6f=a2_0x1c592c,_0x1a5282=new LLMAgentDeleteCommand(),_0x462228=program[_0x5e5c6f(0x127)](),_0x28800f=await createTDXInstance(_0x462228),_0x2bcdba=await _0x1a5282[_0x5e5c6f(0x1b8)]({'options':{..._0x462228,..._0x1693cc},'args':[_0x44687d],'tdx':_0x28800f});gracefulExit(_0x2bcdba);}),program[a2_0x1c592c(0x331)](a2_0x1c592c(0x149),{'hidden':!![]})[a2_0x1c592c(0x1fa)](()=>{const _0x4763c9=a2_0x1c592c;function _0x31b204(_0x2c86fe,_0xd2c438){const _0x2c5255=a2_0x1583,_0x1144c0=[];for(const _0x5cd61a of _0x2c86fe[_0x2c5255(0xe2)]){if(_0x5cd61a[_0x2c5255(0x2bb)])continue;const _0x201698=_0xd2c438?_0xd2c438+'\x20'+_0x5cd61a[_0x2c5255(0x26e)]():_0x5cd61a[_0x2c5255(0x26e)](),_0x3e2223=_0x201698[_0x2c5255(0xe9)]('\x20')[0x0],_0x410567=COMMAND_CATEGORIES[_0x2c5255(0x179)](_0x10376b=>_0x10376b[_0x2c5255(0xe2)][_0x2c5255(0x341)](_0x3e2223)),_0xdedb39=_0x410567?.[_0x2c5255(0x26e)]??'';if(_0x5cd61a[_0x2c5255(0xe2)][_0x2c5255(0x115)]>0x0)_0x1144c0[_0x2c5255(0x171)](..._0x31b204(_0x5cd61a,_0x201698));else{const _0x2ff8de=(_0x5cd61a[_0x2c5255(0x2ae)]||[])['map'](_0x5d25c9=>{const _0x39c72e=_0x2c5255,_0x36f11d=_0x5d25c9['variadic']?_0x5d25c9[_0x39c72e(0x26e)]()+_0x39c72e(0x328):_0x5d25c9[_0x39c72e(0x26e)]();return _0x5d25c9[_0x39c72e(0x35d)]?'<'+_0x36f11d+'>':'['+_0x36f11d+']';})[_0x2c5255(0x23e)]('\x20'),_0x5b4e37=_0x5cd61a[_0x2c5255(0x212)]['filter'](_0x4e729d=>!_0x4e729d['hidden']&&_0x4e729d[_0x2c5255(0x199)]!==_0x2c5255(0x273))[_0x2c5255(0x13a)](_0x123b34=>({'flags':_0x123b34[_0x2c5255(0x16f)],'description':_0x123b34[_0x2c5255(0x28f)]}));_0x1144c0[_0x2c5255(0x171)]({'name':_0x201698,'description':_0x5cd61a[_0x2c5255(0x28f)](),'group':_0xdedb39,'usage':_0x2ff8de,'options':_0x5b4e37});}}return _0x1144c0;}console['log'](JSON[_0x4763c9(0x2b5)](_0x31b204(program,''))),process[_0x4763c9(0x1d2)](0x0);});export{program};export function runCLI(){const _0x13c5d2=a2_0x1c592c,_0xb95ccc=!process[_0x13c5d2(0x2ea)][_0x13c5d2(0x1d3)](0x2)[_0x13c5d2(0x115)];showBriefHelp=_0xb95ccc,program[_0x13c5d2(0x1a8)](process['argv']);_0xb95ccc&&program[_0x13c5d2(0x264)]();if(process[_0x13c5d2(0x34e)][_0x13c5d2(0x2c6)]&&process[_0x13c5d2(0x2ea)][_0x13c5d2(0x115)]>0x2&&!isDevVersion()){const _0x3c79aa=loadReleaseChannel();checkForUpdate(currentVersion,_0x3c79aa)[_0x13c5d2(0xc7)](_0x98e948=>{_0x98e948&&displayUpdateNotification(_0x98e948);})['catch'](()=>{});}}
1
+ const a2_0x46ebb0=a2_0x17f4;(function(_0xe61b95,_0xaa716a){const _0x39f4cf=a2_0x17f4,_0x30dec6=_0xe61b95();while(!![]){try{const _0x5b0382=-parseInt(_0x39f4cf(0x118))/0x1+-parseInt(_0x39f4cf(0x147))/0x2+parseInt(_0x39f4cf(0x106))/0x3*(-parseInt(_0x39f4cf(0x38c))/0x4)+parseInt(_0x39f4cf(0x16a))/0x5*(-parseInt(_0x39f4cf(0x214))/0x6)+parseInt(_0x39f4cf(0x249))/0x7+parseInt(_0x39f4cf(0x243))/0x8*(-parseInt(_0x39f4cf(0x258))/0x9)+-parseInt(_0x39f4cf(0x1ed))/0xa*(-parseInt(_0x39f4cf(0x1f2))/0xb);if(_0x5b0382===_0xaa716a)break;else _0x30dec6['push'](_0x30dec6['shift']());}catch(_0x17c939){_0x30dec6['push'](_0x30dec6['shift']());}}}(a2_0x4dc1,0x30e7b));import{Command}from'commander';import{existsSync,statSync}from'fs';import{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{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}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,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}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{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.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{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-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{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x46ebb0(0x252)]('--version')){let versionOutput=a2_0x46ebb0(0x277)+currentVersion;buildInfo[a2_0x46ebb0(0x196)]&&!currentVersion['includes'](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x46ebb0(0x196)]+')'),buildInfo[a2_0x46ebb0(0x1f1)]&&(versionOutput+=a2_0x46ebb0(0x312)+buildInfo[a2_0x46ebb0(0x1f1)]),console[a2_0x46ebb0(0x2eb)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x46ebb0(0x22d);buildInfo[a2_0x46ebb0(0x196)]&&!currentVersion[a2_0x46ebb0(0x252)](buildInfo[a2_0x46ebb0(0x196)])?description+=a2_0x46ebb0(0x338)+currentVersion+'\x20('+buildInfo[a2_0x46ebb0(0x196)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x46ebb0(0x25c))['description'](description),program[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2cf),a2_0x46ebb0(0x2b5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1af),a2_0x46ebb0(0x105))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x320),a2_0x46ebb0(0x1b9),a2_0x46ebb0(0x324))[a2_0x46ebb0(0x25e)]('--format\x20<format>',a2_0x46ebb0(0x1ab))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2dc),a2_0x46ebb0(0x16d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x207))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x30e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x264),a2_0x46ebb0(0x390))[a2_0x46ebb0(0x25e)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2b4),a2_0x46ebb0(0x275))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x235),a2_0x46ebb0(0x1de),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x150),a2_0x46ebb0(0x35c),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x241),a2_0x46ebb0(0x23a),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e2),a2_0x46ebb0(0x2a2))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a9),a2_0x46ebb0(0x231))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x36c),a2_0x46ebb0(0x37a),'30')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x232),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x274),a2_0x46ebb0(0x318),![])[a2_0x46ebb0(0x25e)]('--session\x20<id>',a2_0x46ebb0(0x240))['option']('--parent-segment\x20<name>',a2_0x46ebb0(0x170))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x181),a2_0x46ebb0(0x15d)),program[a2_0x46ebb0(0x1d7)]({'formatHelp':(_0x8fb512,_0xfce493)=>{const _0x1d0721=a2_0x46ebb0,_0x384d51=_0xfce493[_0x1d0721(0x1a4)](_0x8fb512,_0xfce493),_0x3060af=0x2,_0x231853=0x2;function _0x2faa99(_0x5d52a9){const _0x426cd8=_0x1d0721,_0x305cde=_0x5d52a9;return!!(_0x305cde[_0x426cd8(0x32c)]||_0x305cde['hidden']);}function _0x3f17d2(_0x13716b,_0x23093a){const _0x3394e3=_0x1d0721;if(_0x23093a){const _0x31d5db=''+_0x13716b[_0x3394e3(0x1b8)](_0x384d51+_0x231853)+_0x23093a;return _0x31d5db;}return _0x13716b;}function _0xa56dc6(_0x530d0b){const _0x5524f2=_0x1d0721;return _0x530d0b[_0x5524f2(0x1bd)]('\x0a')[_0x5524f2(0x12d)](/^/gm,'\x20'[_0x5524f2(0x144)](_0x3060af));}const _0x3cdf45=[];_0x3cdf45['push'](_0x1d0721(0x32b)+_0xfce493[_0x1d0721(0x340)](_0x8fb512));const _0x3af9c8=_0xfce493[_0x1d0721(0x361)](_0x8fb512);_0x3af9c8&&(_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x3af9c8));const _0x30c63f=_0x8fb512[_0x1d0721(0x362)][_0x1d0721(0x25a)](_0x51df10=>!_0x2faa99(_0x51df10));if(_0x30c63f[_0x1d0721(0x2cc)]>0x0){if(_0x8fb512['name']()===_0x1d0721(0x25c)){const _0x201f8f=_0x8fb512['opts'](),_0x18a15=!_0x201f8f[_0x1d0721(0x102)]&&process[_0x1d0721(0x104)][_0x1d0721(0x20c)],_0x40cb14=COMMAND_CATEGORIES,_0x37dafb=(_0x3dc0c3,_0x11538e)=>_0x18a15?_0x11538e(_0x3dc0c3):_0x3dc0c3,_0x7c68f9=new Map();_0x30c63f[_0x1d0721(0x2cd)](_0x41b15a=>{const _0x3702dd=_0x1d0721;_0x7c68f9[_0x3702dd(0x169)](_0x41b15a[_0x3702dd(0x271)](),_0x41b15a);}),_0x40cb14[_0x1d0721(0x2cd)](_0x45c194=>{const _0x373344=_0x1d0721,_0x1b6903=_0x45c194[_0x373344(0x362)][_0x373344(0x39b)](_0x1a15eb=>_0x7c68f9[_0x373344(0x225)](_0x1a15eb)??[]);if(_0x1b6903[_0x373344(0x2cc)]>0x0){_0x3cdf45[_0x373344(0x2fb)](''),_0x3cdf45[_0x373344(0x2fb)](_0x37dafb(_0x45c194[_0x373344(0x271)]+':',_0x45c194[_0x373344(0x2ad)]));const _0x379d2d=_0x1b6903[_0x373344(0x329)](_0x2862c7=>{const _0x57765e=_0x373344,_0x1c26af=_0xfce493[_0x57765e(0x1fe)](_0x2862c7),_0x25e265=_0xfce493['subcommandDescription'](_0x2862c7);return _0x3f17d2(_0x1c26af,_0x25e265);});_0x3cdf45[_0x373344(0x2fb)](_0xa56dc6(_0x379d2d));}}),_0x3cdf45['push'](''),_0x3cdf45[_0x1d0721(0x2fb)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x3fa5bd=_0x30c63f[_0x1d0721(0x329)](_0x4106bb=>{const _0x31ed0b=_0x1d0721,_0x14d47d=_0xfce493[_0x31ed0b(0x1fe)](_0x4106bb),_0xd1e036=_0xfce493[_0x31ed0b(0x280)](_0x4106bb);return _0x3f17d2(_0x14d47d,_0xd1e036);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)]('Commands:'),_0x3cdf45[_0x1d0721(0x2fb)](_0xa56dc6(_0x3fa5bd));}}if(showBriefHelp&&_0x8fb512[_0x1d0721(0x271)]()===_0x1d0721(0x25c))_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x1d0721(0x1dc));else{const _0x392704=_0x8fb512[_0x1d0721(0x108)][_0x1d0721(0x25a)](_0x28016d=>!_0x2faa99(_0x28016d));if(_0x392704[_0x1d0721(0x2cc)]>0x0){const _0x10d81e=_0x392704[_0x1d0721(0x329)](_0x3847d2=>{const _0x44d756=_0x1d0721,_0x3653e1=_0xfce493[_0x44d756(0x1b5)](_0x3847d2),_0x1526cb=_0xfce493[_0x44d756(0x272)](_0x3847d2);return _0x3f17d2(_0x3653e1,_0x1526cb);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45['push']('Options:'),_0x3cdf45['push'](_0xa56dc6(_0x10d81e));}}const _0x45cca7=(_0x8fb512['registeredArguments']||[])[_0x1d0721(0x25a)](_0x1f1adc=>!_0x2faa99(_0x1f1adc));if(_0x45cca7[_0x1d0721(0x2cc)]>0x0){const _0x22331c=_0x45cca7[_0x1d0721(0x329)](_0x4ef89d=>{const _0x5df359=_0x1d0721,_0xec513f=_0xfce493[_0x5df359(0x1c5)](_0x4ef89d),_0x52b179=_0xfce493[_0x5df359(0x393)](_0x4ef89d);return _0x3f17d2(_0xec513f,_0x52b179);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x1d0721(0x34c)),_0x3cdf45['push'](_0xa56dc6(_0x22331c));}return _0x3cdf45['join']('\x0a')+'\x0a';},'subcommandTerm':_0x552e48=>{const _0x2a1f3c=a2_0x46ebb0,_0x1bb37d=(_0x552e48[_0x2a1f3c(0x113)]||[])['map'](_0x1de4f6=>_0x1de4f6[_0x2a1f3c(0x2f9)]?'<'+_0x1de4f6[_0x2a1f3c(0x271)]()+'>':'['+_0x1de4f6[_0x2a1f3c(0x271)]()+']')[_0x2a1f3c(0x1bd)]('\x20'),_0x1c7d21=_0x552e48['aliases'](),_0x725797=_0x1c7d21['length']>0x0?_0x552e48[_0x2a1f3c(0x271)]()+',\x20'+_0x1c7d21['join'](',\x20'):_0x552e48[_0x2a1f3c(0x271)]();return _0x1bb37d?_0x725797+'\x20'+_0x1bb37d:_0x725797;}}),program['hook'](a2_0x46ebb0(0x2db),_0x2d24a2=>{const _0x346cfe=a2_0x46ebb0,_0x4798b8=_0x2d24a2[_0x346cfe(0x224)]();if(_0x4798b8[_0x346cfe(0x200)]){const _0x484cb2=resolve(_0x4798b8[_0x346cfe(0x200)]),_0x5da318=_0x484cb2!==_0x4798b8[_0x346cfe(0x200)]?'\x20(resolved\x20to\x20'+_0x484cb2+')':'';if(!existsSync(_0x484cb2))throw new SDKError(ErrorCode[_0x346cfe(0x19a)],_0x346cfe(0x1f6)+_0x4798b8[_0x346cfe(0x200)]+_0x5da318,undefined,{'helpText':_0x346cfe(0x2e0)});const _0x43d379=statSync(_0x484cb2);if(!_0x43d379['isDirectory']())throw new SDKError(ErrorCode[_0x346cfe(0x19a)],_0x346cfe(0x14a)+_0x4798b8[_0x346cfe(0x200)]+_0x5da318,undefined,{'helpText':_0x346cfe(0x184)});process['chdir'](_0x484cb2);}if(!_0x4798b8[_0x346cfe(0x33b)]){if(_0x4798b8[_0x346cfe(0x212)])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x212);else{if(_0x4798b8['json'])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x2b0);else{if(_0x4798b8[_0x346cfe(0x360)])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x360);else _0x4798b8[_0x346cfe(0x358)]&&(_0x4798b8['format']=_0x346cfe(0x358));}}}if(_0x4798b8['trace'])_0x4798b8[_0x346cfe(0x159)]=LogLevel['TRACE'];else{if(_0x4798b8[_0x346cfe(0x351)])_0x4798b8[_0x346cfe(0x159)]=LogLevel[_0x346cfe(0x356)];else _0x4798b8[_0x346cfe(0x159)]===undefined&&(_0x4798b8[_0x346cfe(0x159)]=LogLevel[_0x346cfe(0x352)]);}});async function createTDXInstance(_0x22b250){const _0x5bc809=a2_0x46ebb0,_0x3d91a4=await GlobalContext[_0x5bc809(0x263)](_0x22b250);return _0x3d91a4['injectIntoOptions'](_0x22b250),TDX[_0x5bc809(0x1d2)]({'site':_0x3d91a4[_0x5bc809(0x1db)],'apiKey':_0x3d91a4[_0x5bc809(0x202)],'logLevel':_0x3d91a4['logLevel'],'profile':_0x3d91a4['profile']});}const databaseCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x31c))[a2_0x46ebb0(0x1c8)]('db')[a2_0x46ebb0(0x218)]('Database\x20management\x20commands'),databaseListAction=async(_0x536bf6,_0x49e49a)=>{const _0x512bef=a2_0x46ebb0,_0x5e7384=new DatabasesCommand(),_0x319bde=program['opts'](),_0x2fd735=await createTDXInstance(_0x319bde),_0x37f853=await _0x5e7384[_0x512bef(0x13f)]({'options':{..._0x319bde,..._0x49e49a},'args':_0x536bf6?[_0x536bf6]:[],'tdx':_0x2fd735});gracefulExit(_0x37f853);};databaseCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')['description'](a2_0x46ebb0(0x2f3))[a2_0x46ebb0(0x209)](databaseListAction),program[a2_0x46ebb0(0x1b4)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x46ebb0(0x321))[a2_0x46ebb0(0x209)](databaseListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x143))[a2_0x46ebb0(0x218)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x46ebb0(0x157),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')['option'](a2_0x46ebb0(0x1d3),a2_0x46ebb0(0x246))['option'](a2_0x46ebb0(0x284),a2_0x46ebb0(0x205))['option'](a2_0x46ebb0(0x30b),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x46ebb0(0x209)](async(_0x58dc95,_0x35094c)=>{const _0x323c64=a2_0x46ebb0,_0x9b5423=program['opts'](),_0x5ccc52=await createTDXInstance(_0x9b5423);if(_0x58dc95[0x0]===_0x323c64(0x1d2)){const _0x5d72dc=new ChatCreateCommand();gracefulExit(await _0x5d72dc[_0x323c64(0x13f)]({'options':{..._0x9b5423,..._0x35094c},'args':_0x58dc95[_0x323c64(0x342)](0x1),'tdx':_0x5ccc52}));return;}const _0x55214d=new ChatCommand(),_0x348417=await _0x55214d[_0x323c64(0x13f)]({'options':{..._0x9b5423,..._0x35094c},'args':_0x58dc95,'tdx':_0x5ccc52});gracefulExit(_0x348417);});const apiCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x307))[a2_0x46ebb0(0x398)](a2_0x46ebb0(0x20f))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x31f))[a2_0x46ebb0(0x25e)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x46ebb0(0x21e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x11d),a2_0x46ebb0(0x367))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x1f7))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x28d),a2_0x46ebb0(0x2f4),(_0x59d737,_0x533771)=>{return _0x533771?[..._0x533771,_0x59d737]:[_0x59d737];})[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x251),a2_0x46ebb0(0x2e5),'td')[a2_0x46ebb0(0x209)](async(_0x571411,_0x3158e0)=>{const _0x2b20af=a2_0x46ebb0;if(!_0x571411){apiCmd[_0x2b20af(0x39d)]();return;}const _0x2e5a21=new ApiCommand(),_0x4d92f2=program['opts'](),_0xf6d7ea=await createTDXInstance(_0x4d92f2),_0x1d394d=await _0x2e5a21['run']({'options':{..._0x4d92f2,..._0x3158e0},'args':[_0x571411],'tdx':_0xf6d7ea});gracefulExit(_0x1d394d);});program['command']('mcp')['description'](a2_0x46ebb0(0x195))['addHelpText']('after','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a')['action'](async _0x564799=>{const _0x1e0afc=a2_0x46ebb0,_0xe208ac=new MCPCommand(),_0x11bbc4=program[_0x1e0afc(0x224)](),_0xf5d7d=await createTDXInstance(_0x11bbc4),_0x23d4ed=await _0xe208ac[_0x1e0afc(0x13f)]({'options':{..._0x11bbc4,..._0x564799},'args':[],'tdx':_0xf5d7d});gracefulExit(_0x23d4ed);});const tableCmd=program[a2_0x46ebb0(0x1b4)]('table')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10b)),tableListAction=async(_0x3b2c0f,_0x2853a0)=>{const _0x180738=a2_0x46ebb0,_0x20f136=new TablesCommand(),_0xc6022=program['opts'](),_0x3f0ddc=await createTDXInstance(_0xc6022);_0x2853a0['in']&&(_0x2853a0[_0x180738(0x31c)]=_0x2853a0['in']);const _0x4ed81f=await _0x20f136[_0x180738(0x13f)]({'options':{..._0xc6022,..._0x2853a0},'args':_0x3b2c0f?[_0x3b2c0f]:[],'tdx':_0x3f0ddc});gracefulExit(_0x4ed81f);};tableCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x145))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x32a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x209)](tableListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1cb),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x317))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))['action'](tableListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x180))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x22f))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<database>',a2_0x46ebb0(0x1c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))['action'](async(_0x2f261b,_0x56f542)=>{const _0x34f3cb=a2_0x46ebb0,_0x382b0e=new ShowCommand(),_0x3c29fe=program[_0x34f3cb(0x224)](),_0x219b53=await createTDXInstance(_0x3c29fe);_0x56f542['in']&&(_0x56f542[_0x34f3cb(0x31c)]=_0x56f542['in']);const _0x250f8a=await _0x382b0e[_0x34f3cb(0x13f)]({'options':{..._0x3c29fe,..._0x56f542},'args':_0x2f261b?[_0x2f261b]:[],'tdx':_0x219b53});gracefulExit(_0x250f8a);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x17e))[a2_0x46ebb0(0x1c8)]('desc')['description'](a2_0x46ebb0(0x194))['option'](a2_0x46ebb0(0x32a),a2_0x46ebb0(0x1c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x46ebb0(0x209)](async(_0x4e8944,_0x56a156)=>{const _0x48e7c9=a2_0x46ebb0,_0x4d6bd4=new DescribeCommand(),_0x12bcea=program['opts'](),_0x3e3eb5=await createTDXInstance(_0x12bcea);_0x56a156['in']&&(_0x56a156[_0x48e7c9(0x31c)]=_0x56a156['in']);const _0xb8d071=await _0x4d6bd4[_0x48e7c9(0x13f)]({'options':{..._0x12bcea,..._0x56a156},'args':_0x4e8944?[_0x4e8944]:[],'tdx':_0x3e3eb5});gracefulExit(_0xb8d071);}),program['command'](a2_0x46ebb0(0x36e))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')['option'](a2_0x46ebb0(0x32a),a2_0x46ebb0(0x267))[a2_0x46ebb0(0x25e)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x33d),'Trino\x20catalog\x20(default:\x20td)')[a2_0x46ebb0(0x25e)]('-f,\x20--file\x20<path>',a2_0x46ebb0(0x15e))['option'](a2_0x46ebb0(0x28f),a2_0x46ebb0(0x2e6),'40')[a2_0x46ebb0(0x209)](async(_0x31dcb1,_0x1cd99a)=>{const _0x53d90c=a2_0x46ebb0,_0x1546de=new QueryCommand(),_0x2d6f86=program[_0x53d90c(0x224)](),_0x18b298=await createTDXInstance(_0x2d6f86);_0x1cd99a['in']&&(_0x1cd99a[_0x53d90c(0x31c)]=_0x1cd99a['in']);const _0x46eb28=await _0x1546de[_0x53d90c(0x13f)]({'options':{..._0x2d6f86,..._0x1cd99a},'args':_0x31dcb1?[_0x31dcb1]:[],'tdx':_0x18b298});gracefulExit(_0x46eb28);});const segmentCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x283))['alias']('sg')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2df)),segmentListAction=async(_0x28d097,_0x4d7eff)=>{const _0x1e5472=a2_0x46ebb0,_0x40a2f6=new SegmentsCommand(),_0x499411=program[_0x1e5472(0x224)](),_0x156d78=await createTDXInstance(_0x499411),_0x20e105=await _0x40a2f6[_0x1e5472(0x13f)]({'options':{..._0x499411,..._0x4d7eff},'args':_0x28d097?[_0x28d097]:[],'tdx':_0x156d78});gracefulExit(_0x20e105);};segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x16c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x304),a2_0x46ebb0(0x1ec))['option'](a2_0x46ebb0(0x193),a2_0x46ebb0(0x370),'10')[a2_0x46ebb0(0x209)](segmentListAction),program[a2_0x46ebb0(0x1b4)]('segments\x20[path]',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x107))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x304),a2_0x46ebb0(0x1ec))[a2_0x46ebb0(0x25e)]('--max-depth\x20<depth>',a2_0x46ebb0(0x370),'10')[a2_0x46ebb0(0x209)](segmentListAction),segmentCmd[a2_0x46ebb0(0x1b4)]('use\x20<path>',{'hidden':!![]})['description'](a2_0x46ebb0(0x25b))[a2_0x46ebb0(0x209)](async(_0x22f9ec,_0xc8a01f)=>{const _0x412319=a2_0x46ebb0,_0x42367d=new SegmentUseCommand(),_0xa2bcfc=program['opts'](),_0x5ac8f6=await createTDXInstance(_0xa2bcfc),_0x4969c5=await _0x42367d[_0x412319(0x13f)]({'options':{..._0xa2bcfc,..._0xc8a01f},'args':[_0x22f9ec],'tdx':_0x5ac8f6});gracefulExit(_0x4969c5);});const segmentViewAction=async(_0x33293c,_0x27a025)=>{const _0x4bde57=a2_0x46ebb0,_0x35cd9c=new SegmentViewCommand(),_0x26373f=program['opts'](),_0x30717b=await createTDXInstance(_0x26373f),_0x32cc58=await _0x35cd9c[_0x4bde57(0x13f)]({'options':{..._0x26373f,..._0x27a025},'args':_0x33293c?[_0x33293c]:[],'tdx':_0x30717b});gracefulExit(_0x32cc58);};segmentCmd['command'](a2_0x46ebb0(0x1fd))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x3ad))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x288),a2_0x46ebb0(0x117))[a2_0x46ebb0(0x209)](segmentViewAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2e4),{'hidden':!![]})['alias'](a2_0x46ebb0(0x2ec))[a2_0x46ebb0(0x25e)]('-w,\x20--web',a2_0x46ebb0(0x117))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1cd))[a2_0x46ebb0(0x209)](segmentViewAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x32f))['description'](a2_0x46ebb0(0x39a))[a2_0x46ebb0(0x209)](async(_0x26cd7a,_0x8f1f55)=>{const _0x5099a6=a2_0x46ebb0,_0x182e19=new SegmentDescCommand(),_0x4f12c1=program['opts'](),_0x162a2f=await createTDXInstance(_0x4f12c1),_0x490b2e=await _0x182e19[_0x5099a6(0x13f)]({'options':{..._0x4f12c1,..._0x8f1f55},'args':_0x26cd7a?[_0x26cd7a]:[],'tdx':_0x162a2f});gracefulExit(_0x490b2e);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x37c))['description']('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x46ebb0(0x209)](async(_0x5998d2,_0x1c081f)=>{const _0x4c371f=a2_0x46ebb0,_0x241f28=new SegmentShowCommand(),_0x163a92=program[_0x4c371f(0x224)](),_0x221a74=await createTDXInstance(_0x163a92),_0x558066=await _0x241f28['run']({'options':{..._0x163a92,..._0x1c081f},'args':_0x5998d2?[_0x5998d2]:[],'tdx':_0x221a74});gracefulExit(_0x558066);}),segmentCmd['command'](a2_0x46ebb0(0x337),{'hidden':!![]})[a2_0x46ebb0(0x218)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x831ba4,_0x23f996)=>{const _0x5d8033=a2_0x46ebb0,_0x3dbd84=new SegmentFolderListCommand(),_0x4b87bb=program[_0x5d8033(0x224)](),_0x10c674=await createTDXInstance(_0x4b87bb),_0x39fbe6=await _0x3dbd84[_0x5d8033(0x13f)]({'options':{..._0x4b87bb,..._0x23f996},'args':[_0x831ba4],'tdx':_0x10c674});gracefulExit(_0x39fbe6);});const folderCmd=segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x18f),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2de));folderCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x366))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x297))[a2_0x46ebb0(0x209)](async(_0x58b53c,_0xd957a4)=>{const _0x1ada38=a2_0x46ebb0,_0x3974f5=new SegmentFolderShowCommand(),_0x3e6d71=program[_0x1ada38(0x224)](),_0x54e9fa=await createTDXInstance(_0x3e6d71),_0x3b718d=await _0x3974f5[_0x1ada38(0x13f)]({'options':{..._0x3e6d71,..._0xd957a4},'args':[_0x58b53c],'tdx':_0x54e9fa});gracefulExit(_0x3b718d);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x120))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x21f))[a2_0x46ebb0(0x209)](async(_0x506352,_0x571978)=>{const _0x19e888=a2_0x46ebb0,_0x3a2b9d=new SegmentSQLCommand(),_0x32ceb6=program['opts'](),_0xc9bdb2=await createTDXInstance(_0x32ceb6),_0x2cb51c=await _0x3a2b9d[_0x19e888(0x13f)]({'options':{..._0x32ceb6,..._0x571978},'args':_0x506352?[_0x506352]:[],'tdx':_0xc9bdb2});gracefulExit(_0x2cb51c);}),segmentCmd['command']('fields\x20[parent_name]')['description'](a2_0x46ebb0(0x110))['action'](async(_0x31a44c,_0x1eda1e)=>{const _0x136a96=a2_0x46ebb0,_0x5215eb=new SegmentFieldsCommand(),_0xc59778=program[_0x136a96(0x224)](),_0x122c98=await createTDXInstance(_0xc59778),_0x5ccc97=await _0x5215eb[_0x136a96(0x13f)]({'options':{..._0xc59778,..._0x1eda1e},'args':_0x31a44c?[_0x31a44c]:[],'tdx':_0x122c98});gracefulExit(_0x5ccc97);}),segmentCmd['command'](a2_0x46ebb0(0x265))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x26a))['option'](a2_0x46ebb0(0x285),a2_0x46ebb0(0x29c))[a2_0x46ebb0(0x209)](async(_0x438a02,_0x3ee83d)=>{const _0x44b2e2=a2_0x46ebb0,_0x978603=new SegmentPullCommand(),_0x2a991f=program[_0x44b2e2(0x224)](),_0x432411=await createTDXInstance(_0x2a991f),_0x1726d2=await _0x978603[_0x44b2e2(0x13f)]({'options':{..._0x2a991f,..._0x3ee83d},'args':_0x438a02?[_0x438a02]:[],'tdx':_0x432411});gracefulExit(_0x1726d2);}),segmentCmd[a2_0x46ebb0(0x1b4)]('push\x20[parent_or_file]')[a2_0x46ebb0(0x218)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x347),a2_0x46ebb0(0x24e))['action'](async(_0xaba13e,_0x44093b)=>{const _0x39d68a=a2_0x46ebb0,_0x43a723=new SegmentPushCommand(),_0x55b4f4=program[_0x39d68a(0x224)](),_0x4b4908=await createTDXInstance(_0x55b4f4),_0x46b22a=await _0x43a723[_0x39d68a(0x13f)]({'options':{..._0x55b4f4,..._0x44093b},'args':_0xaba13e?[_0xaba13e]:[],'tdx':_0x4b4908});gracefulExit(_0x46b22a);}),segmentCmd['command'](a2_0x46ebb0(0x139))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x309))[a2_0x46ebb0(0x209)](async(_0x579b13,_0x371a34)=>{const _0x2c642c=a2_0x46ebb0,_0x2ac83b=new SegmentValidateCommand(),_0x38555c=program[_0x2c642c(0x224)](),_0x25d9f1=await createTDXInstance(_0x38555c),_0x5d19b1=await _0x2ac83b[_0x2c642c(0x13f)]({'options':{..._0x38555c,..._0x371a34},'args':_0x579b13?[_0x579b13]:[],'tdx':_0x25d9f1});gracefulExit(_0x5d19b1);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c8),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2af))['option']('--description\x20<text>',a2_0x46ebb0(0x188))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x29a),a2_0x46ebb0(0x199))['option'](a2_0x46ebb0(0x363),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a6),a2_0x46ebb0(0x12a))[a2_0x46ebb0(0x25e)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x364),a2_0x46ebb0(0x1a9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x149),a2_0x46ebb0(0x134))[a2_0x46ebb0(0x209)](async(_0x52117c,_0x3520c4)=>{const _0x2fd71c=a2_0x46ebb0,_0x577e65=new SegmentCreateCommand(),_0x37bb1e=program[_0x2fd71c(0x224)](),_0x2b6701=await createTDXInstance(_0x37bb1e),_0x447d22=await _0x577e65[_0x2fd71c(0x13f)]({'options':{..._0x37bb1e,..._0x3520c4},'args':[_0x52117c],'tdx':_0x2b6701});gracefulExit(_0x447d22);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x336),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x296))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1a6),'New\x20segment\x20name')['option'](a2_0x46ebb0(0x287),'Updated\x20description')['option'](a2_0x46ebb0(0x29a),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x46ebb0(0x25e)]('--rule-file\x20<file>',a2_0x46ebb0(0x215))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a6),a2_0x46ebb0(0x291))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x343),a2_0x46ebb0(0x256))[a2_0x46ebb0(0x209)](async(_0x1ca87c,_0x17d38e)=>{const _0x5da22c=a2_0x46ebb0,_0x23e85a=new SegmentUpdateCommand(),_0x4203b4=program[_0x5da22c(0x224)](),_0x2ef4b7=await createTDXInstance(_0x4203b4),_0x35d725=await _0x23e85a[_0x5da22c(0x13f)]({'options':{..._0x4203b4,..._0x17d38e},'args':[_0x1ca87c],'tdx':_0x2ef4b7});gracefulExit(_0x35d725);});const parentCmd=segmentCmd[a2_0x46ebb0(0x1b4)]('parent',{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x3bc1bf,_0x4d0846)=>{const _0x34b6b6=a2_0x46ebb0,_0x211669=new ParentSegmentListCommand(),_0x5682c2=program[_0x34b6b6(0x224)](),_0x599b70=await createTDXInstance(_0x5682c2),_0x23598d=await _0x211669[_0x34b6b6(0x13f)]({'options':{..._0x5682c2,..._0x4d0846},'args':_0x3bc1bf?[_0x3bc1bf]:[],'tdx':_0x599b70});gracefulExit(_0x23598d);};parentCmd['command'](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x203))[a2_0x46ebb0(0x209)](parentListAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x239),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1fb))[a2_0x46ebb0(0x209)](parentListAction),parentCmd['command'](a2_0x46ebb0(0x1da))[a2_0x46ebb0(0x218)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x217))['action'](async(_0x1b0103,_0x242827)=>{const _0x5b606b=a2_0x46ebb0,_0x23518d=new ParentSegmentPullCommand(),_0x5d1b25=program[_0x5b606b(0x224)](),_0x420f4e=await createTDXInstance(_0x5d1b25),_0x2beebf=await _0x23518d[_0x5b606b(0x13f)]({'options':{..._0x5d1b25,..._0x242827},'args':_0x1b0103?[_0x1b0103]:[],'tdx':_0x420f4e});gracefulExit(_0x2beebf);}),parentCmd[a2_0x46ebb0(0x1b4)]('push\x20[file]')[a2_0x46ebb0(0x218)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x46ebb0(0x209)](async(_0x448506,_0x2a9545)=>{const _0x3c65f1=new ParentSegmentPushCommand(),_0x2a3c07=program['opts'](),_0x2ed714=await createTDXInstance(_0x2a3c07),_0x32f45d=await _0x3c65f1['run']({'options':{..._0x2a3c07,..._0x2a9545},'args':_0x448506?[_0x448506]:[],'tdx':_0x2ed714});gracefulExit(_0x32f45d);}),parentCmd['command'](a2_0x46ebb0(0x162))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x279))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x222),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x46ebb0(0x3a8),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x255))[a2_0x46ebb0(0x25e)]('--interval\x20<range>',a2_0x46ebb0(0x11a),a2_0x46ebb0(0x137))[a2_0x46ebb0(0x209)](async(_0x29932,_0x152751)=>{const _0x507339=a2_0x46ebb0,_0x105ec6=new ParentSegmentValidateCommand(),_0x15e047=program[_0x507339(0x224)](),_0x34e5d7=await createTDXInstance(_0x15e047),_0x15f63e=await _0x105ec6[_0x507339(0x13f)]({'options':{..._0x15e047,..._0x152751},'args':_0x29932?[_0x29932]:[],'tdx':_0x34e5d7});gracefulExit(_0x15f63e);}),parentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x153))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x322))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x222),a2_0x46ebb0(0x183))[a2_0x46ebb0(0x25e)]('--attribute\x20[name]',a2_0x46ebb0(0x138))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x290),a2_0x46ebb0(0x35b))[a2_0x46ebb0(0x25e)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x46ebb0(0x3b0),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x46ebb0(0x137))['action'](async(_0x4e3c17,_0x46b108)=>{const _0x4bcbfd=a2_0x46ebb0,_0x41bb36=new ParentSegmentPreviewCommand(),_0x12c592=program[_0x4bcbfd(0x224)](),_0x49e49c=await createTDXInstance(_0x12c592),_0x1dc0d3=await _0x41bb36['run']({'options':{..._0x12c592,..._0x46b108},'args':_0x4e3c17?[_0x4e3c17]:[],'tdx':_0x49e49c});gracefulExit(_0x1dc0d3);}),parentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x177))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x388))['action'](async(_0x363b02,_0x1ba4e4)=>{const _0x305039=a2_0x46ebb0,_0x4ad715=new ParentSegmentRunCommand(),_0x213bbc=program[_0x305039(0x224)](),_0x19847c=await createTDXInstance(_0x213bbc),_0xf9cdfa=await _0x4ad715['run']({'options':{..._0x213bbc,..._0x1ba4e4},'args':_0x363b02?[_0x363b02]:[],'tdx':_0x19847c});gracefulExit(_0xf9cdfa);});const parentSegmentCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b6))[a2_0x46ebb0(0x1c8)]('ps')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x37d));parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x203))[a2_0x46ebb0(0x209)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x27f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x216))['option'](a2_0x46ebb0(0x213),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x46ebb0(0x209)](async(_0x4750eb,_0x3d1500)=>{const _0x11cd38=a2_0x46ebb0,_0x5dd32b=new ParentSegmentPullCommand(),_0x52b9a2=program[_0x11cd38(0x224)](),_0x1b0860=await createTDXInstance(_0x52b9a2),_0x46f8c4=await _0x5dd32b[_0x11cd38(0x13f)]({'options':{..._0x52b9a2,..._0x3d1500},'args':_0x4750eb?[_0x4750eb]:[],'tdx':_0x1b0860});gracefulExit(_0x46f8c4);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)]('push\x20[name]')[a2_0x46ebb0(0x218)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x446cf7,_0x739902)=>{const _0x47ef0c=a2_0x46ebb0,_0x4e48fb=new ParentSegmentPushCommand(),_0x475f9c=program[_0x47ef0c(0x224)](),_0x1d00eb=await createTDXInstance(_0x475f9c),_0x3ecff9=await _0x4e48fb[_0x47ef0c(0x13f)]({'options':{..._0x475f9c,..._0x739902},'args':_0x446cf7?[_0x446cf7]:[],'tdx':_0x1d00eb});gracefulExit(_0x3ecff9);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x279))['option'](a2_0x46ebb0(0x222),a2_0x46ebb0(0x2c5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a8),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x46ebb0(0x290),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x255))[a2_0x46ebb0(0x25e)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x46ebb0(0x137))['action'](async(_0x238386,_0x5a582c)=>{const _0x4904a8=a2_0x46ebb0,_0x1ef9bb=new ParentSegmentValidateCommand(),_0x3e95ea=program['opts'](),_0x150922=await createTDXInstance(_0x3e95ea),_0x3ef331=await _0x1ef9bb[_0x4904a8(0x13f)]({'options':{..._0x3e95ea,..._0x5a582c},'args':_0x238386?[_0x238386]:[],'tdx':_0x150922});gracefulExit(_0x3ef331);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x206))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x322))['option'](a2_0x46ebb0(0x222),a2_0x46ebb0(0x183))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a8),a2_0x46ebb0(0x138))[a2_0x46ebb0(0x25e)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x392))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3b0),a2_0x46ebb0(0x11a),a2_0x46ebb0(0x137))[a2_0x46ebb0(0x209)](async(_0x4a3963,_0x4e0293)=>{const _0x1572a0=a2_0x46ebb0,_0x508df2=new ParentSegmentPreviewCommand(),_0x2699d9=program[_0x1572a0(0x224)](),_0x3b85e5=await createTDXInstance(_0x2699d9),_0x2935a7=await _0x508df2[_0x1572a0(0x13f)]({'options':{..._0x2699d9,..._0x4e0293},'args':_0x4a3963?[_0x4a3963]:[],'tdx':_0x3b85e5});gracefulExit(_0x2935a7);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x177))[a2_0x46ebb0(0x218)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['action'](async(_0x57a2c1,_0xef1e6b)=>{const _0x46c237=a2_0x46ebb0,_0x3204c0=new ParentSegmentRunCommand(),_0x500ad0=program[_0x46c237(0x224)](),_0x414d98=await createTDXInstance(_0x500ad0),_0x5abfb7=await _0x3204c0[_0x46c237(0x13f)]({'options':{..._0x500ad0,..._0xef1e6b},'args':_0x57a2c1?[_0x57a2c1]:[],'tdx':_0x414d98});gracefulExit(_0x5abfb7);}),parentSegmentCmd['command'](a2_0x46ebb0(0x2bf))['description'](a2_0x46ebb0(0x233))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x592b56,_0x13f1fe)=>{const _0x239ed2=a2_0x46ebb0,_0xa10196=new ParentSegmentFieldsCommand(),_0xbb9d8=program[_0x239ed2(0x224)](),_0x4ea19e=await createTDXInstance(_0xbb9d8),_0x419a11=await _0xa10196[_0x239ed2(0x13f)]({'options':{..._0xbb9d8,..._0x13f1fe},'args':_0x592b56?[_0x592b56]:[],'tdx':_0x4ea19e});gracefulExit(_0x419a11);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x349))[a2_0x46ebb0(0x218)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),'Output\x20as\x20JSON')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),'Output\x20as\x20JSON\x20Lines')[a2_0x46ebb0(0x209)](async(_0xbd9ec0,_0xc1ef12)=>{const _0x289363=a2_0x46ebb0,_0x22fb63=new ParentSegmentViewCommand(),_0x587d17=program[_0x289363(0x224)](),_0x440dcf=await createTDXInstance(_0x587d17),_0x4d930e=await _0x22fb63[_0x289363(0x13f)]({'options':{..._0x587d17,..._0xc1ef12},'args':_0xbd9ec0?[_0xbd9ec0]:[],'tdx':_0x440dcf});gracefulExit(_0x4d930e);}),parentSegmentCmd['command'](a2_0x46ebb0(0x29f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x14c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x216))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)]('--jsonl',a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x25ed0a,_0x58bfe9)=>{const _0x1fbb5e=a2_0x46ebb0,_0x353ee9=new ParentSegmentDescCommand(),_0x17692c=program['opts'](),_0xb34eba=await createTDXInstance(_0x17692c),_0x5a58c3=await _0x353ee9[_0x1fbb5e(0x13f)]({'options':{..._0x17692c,..._0x58bfe9},'args':_0x25ed0a?[_0x25ed0a]:[],'tdx':_0xb34eba});gracefulExit(_0x5a58c3);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1ce))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x3ae))[a2_0x46ebb0(0x25e)]('--json','Output\x20as\x20JSON')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x3d9b73,_0x95a6ad)=>{const _0x149740=a2_0x46ebb0,_0x4ea767=new ParentSegmentSQLCommand(),_0x5b8f36=program[_0x149740(0x224)](),_0x15bbc4=await createTDXInstance(_0x5b8f36),_0x20516b=await _0x4ea767['run']({'options':{..._0x5b8f36,..._0x95a6ad},'args':_0x3d9b73?[_0x3d9b73]:[],'tdx':_0x15bbc4});gracefulExit(_0x20516b);}),parentSegmentCmd['command'](a2_0x46ebb0(0x38a))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x28b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x140),a2_0x46ebb0(0x238))[a2_0x46ebb0(0x25e)]('--json',a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0xdef516,_0x1f62cb)=>{const _0x1c9ea8=a2_0x46ebb0,_0x1347bc=new ParentSegmentShowCommand(),_0x229e9c=program[_0x1c9ea8(0x224)](),_0x4e484c=await createTDXInstance(_0x229e9c),_0x3d249a=await _0x1347bc['run']({'options':{..._0x229e9c,..._0x1f62cb},'args':_0xdef516?[_0xdef516]:[],'tdx':_0x4e484c});gracefulExit(_0x3d249a);}),parentSegmentCmd['command'](a2_0x46ebb0(0x28c))['description']('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x4b1d74,_0x8c8102)=>{const _0x47437f=a2_0x46ebb0,_0x1da661=new UseCommand(),_0x4ec933=program['opts'](),_0x1d67e8=_0x4b1d74?['parent_segment',_0x4b1d74]:[],_0x442a31=await _0x1da661[_0x47437f(0x13f)]({'options':{..._0x4ec933,..._0x8c8102},'args':_0x1d67e8,'tdx':null});gracefulExit(_0x442a31);});const psRtCmd=parentSegmentCmd[a2_0x46ebb0(0x1b4)]('rt')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10f));psRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x46ebb0(0x209)](async(_0x56a0b7,_0x3914c8)=>{const _0x244a6c=a2_0x46ebb0,_0x3f9db1=new PSRtListCommand(),_0x502706=program[_0x244a6c(0x224)](),_0x150272=await createTDXInstance(_0x502706),_0x262c35=await _0x3f9db1['run']({'options':{..._0x502706,..._0x3914c8},'args':_0x56a0b7?[_0x56a0b7]:[],'tdx':_0x150272});gracefulExit(_0x262c35);}),psRtCmd['command'](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x15a))['action'](async(_0x1f1b8d,_0x4959fc)=>{const _0x2630a8=a2_0x46ebb0,_0x3703d1=new PSRtValidateCommand(),_0xf1992b=program[_0x2630a8(0x224)](),_0x4c37ad=await createTDXInstance(_0xf1992b),_0x451a8b=await _0x3703d1[_0x2630a8(0x13f)]({'options':{..._0xf1992b,..._0x4959fc},'args':_0x1f1b8d?[_0x1f1b8d]:[],'tdx':_0x4c37ad});gracefulExit(_0x451a8b);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10f));parentRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))['description'](a2_0x46ebb0(0x100))[a2_0x46ebb0(0x209)](async(_0xf857d8,_0x153c29)=>{const _0x1aa401=a2_0x46ebb0,_0x5326d8=new PSRtListCommand(),_0x3a15f3=program['opts'](),_0xaf79f3=await createTDXInstance(_0x3a15f3),_0x1e7ade=await _0x5326d8[_0x1aa401(0x13f)]({'options':{..._0x3a15f3,..._0x153c29},'args':_0xf857d8?[_0xf857d8]:[],'tdx':_0xaf79f3});gracefulExit(_0x1e7ade);}),parentRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x15a))[a2_0x46ebb0(0x209)](async(_0x448240,_0x47b2e6)=>{const _0x13ac67=a2_0x46ebb0,_0x5bc392=new PSRtValidateCommand(),_0x279407=program[_0x13ac67(0x224)](),_0x44c5f2=await createTDXInstance(_0x279407),_0x49810c=await _0x5bc392[_0x13ac67(0x13f)]({'options':{..._0x279407,..._0x47b2e6},'args':_0x448240?[_0x448240]:[],'tdx':_0x44c5f2});gracefulExit(_0x49810c);});const psPzCmd=parentSegmentCmd['command']('pz')['description'](a2_0x46ebb0(0x1e1));psPzCmd[a2_0x46ebb0(0x1b4)]('list\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x191))['action'](async(_0x2a1ff8,_0x64ce51)=>{const _0x2f85a6=a2_0x46ebb0,_0xc35ea8=new PSPzListCommand(),_0x559741=program[_0x2f85a6(0x224)](),_0x2e9e18=await createTDXInstance(_0x559741),_0x135e44=await _0xc35ea8[_0x2f85a6(0x13f)]({'options':{..._0x559741,..._0x64ce51},'args':_0x2a1ff8?[_0x2a1ff8]:[],'tdx':_0x2e9e18});gracefulExit(_0x135e44);}),psPzCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x344))[a2_0x46ebb0(0x218)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x2bcb2d,_0x4d0429)=>{const _0x3cb85b=a2_0x46ebb0,_0x41b236=new PSPzInitCommand(),_0x155612=program['opts'](),_0x44bf82=await createTDXInstance(_0x155612),_0x21c4ba=await _0x41b236[_0x3cb85b(0x13f)]({'options':{..._0x155612,..._0x4d0429},'args':_0x2bcb2d?[_0x2bcb2d]:[],'tdx':_0x44bf82});gracefulExit(_0x21c4ba);});const parentPzCmd=parentCmd[a2_0x46ebb0(0x1b4)]('pz',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1e1));parentPzCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x305))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x191))[a2_0x46ebb0(0x209)](async(_0x323981,_0x1b4cfb)=>{const _0x3da0d1=a2_0x46ebb0,_0x1e2171=new PSPzListCommand(),_0x6ad49e=program[_0x3da0d1(0x224)](),_0x4288eb=await createTDXInstance(_0x6ad49e),_0x5c514f=await _0x1e2171['run']({'options':{..._0x6ad49e,..._0x1b4cfb},'args':_0x323981?[_0x323981]:[],'tdx':_0x4288eb});gracefulExit(_0x5c514f);}),parentPzCmd[a2_0x46ebb0(0x1b4)]('init\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x38d))[a2_0x46ebb0(0x209)](async(_0x6984c6,_0x22c40b)=>{const _0xab7b64=a2_0x46ebb0,_0x595dc6=new PSPzInitCommand(),_0x2c5781=program[_0xab7b64(0x224)](),_0x40e26e=await createTDXInstance(_0x2c5781),_0x316287=await _0x595dc6[_0xab7b64(0x13f)]({'options':{..._0x2c5781,..._0x22c40b},'args':_0x6984c6?[_0x6984c6]:[],'tdx':_0x40e26e});gracefulExit(_0x316287);}),parentCmd['command'](a2_0x46ebb0(0x378))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x247))['requiredOption'](a2_0x46ebb0(0xfd),'Master\x20database\x20name')[a2_0x46ebb0(0x1ef)]('--table\x20<table>',a2_0x46ebb0(0x1ee))[a2_0x46ebb0(0x25e)]('--description\x20<text>',a2_0x46ebb0(0x1e3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x371),a2_0x46ebb0(0x29d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16b),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x2be))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1ba),a2_0x46ebb0(0x27c))['option'](a2_0x46ebb0(0x103),a2_0x46ebb0(0x26f))['option'](a2_0x46ebb0(0x346),a2_0x46ebb0(0x226))['option'](a2_0x46ebb0(0x3ab),a2_0x46ebb0(0x112))[a2_0x46ebb0(0x25e)]('--customer-group\x20<json>',a2_0x46ebb0(0x111))['option'](a2_0x46ebb0(0x18b),a2_0x46ebb0(0x1d0))[a2_0x46ebb0(0x209)](async(_0x4e4a39,_0x3f9368)=>{const _0x46a57b=a2_0x46ebb0,_0x5d8342=new ParentSegmentCreateCommand(),_0x3d799b=program[_0x46a57b(0x224)](),_0x8a6eaa=await createTDXInstance(_0x3d799b),_0x4b8a6e=await _0x5d8342[_0x46a57b(0x13f)]({'options':{..._0x3d799b,..._0x3f9368},'args':[_0x4e4a39],'tdx':_0x8a6eaa});gracefulExit(_0x4b8a6e);}),parentCmd['command']('update\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1e4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),a2_0x46ebb0(0x10e))['option'](a2_0x46ebb0(0x371),a2_0x46ebb0(0x1a0))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16b),'Updated\x20schedule\x20option')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x1f0))['option'](a2_0x46ebb0(0x23d),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x46ebb0(0x382),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19b),a2_0x46ebb0(0x2c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x161),a2_0x46ebb0(0x36b))['action'](async(_0x17351f,_0x569480)=>{const _0xf17516=a2_0x46ebb0,_0x1dd7ea=new ParentSegmentUpdateCommand(),_0x4df750=program['opts'](),_0xb1d695=await createTDXInstance(_0x4df750),_0x375e4d=await _0x1dd7ea[_0xf17516(0x13f)]({'options':{..._0x4df750,..._0x569480},'args':[_0x17351f],'tdx':_0xb1d695});gracefulExit(_0x375e4d);}),folderCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x15c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x174))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),'Folder\x20description')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x119),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x46ebb0(0x209)](async(_0x5d9b68,_0x2fbd6a,_0x4f40f6)=>{const _0x5dbe01=a2_0x46ebb0,_0x17cadc=new SegmentFolderCreateCommand(),_0x155c60=program['opts'](),_0x45744b=await createTDXInstance(_0x155c60),_0x41abba=await _0x17cadc[_0x5dbe01(0x13f)]({'options':{..._0x155c60,..._0x4f40f6},'args':[_0x5d9b68,_0x2fbd6a],'tdx':_0x45744b});gracefulExit(_0x41abba);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x21b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x266))[a2_0x46ebb0(0x209)](async(_0x5ad967,_0x1efcb4)=>{const _0x1bd04b=a2_0x46ebb0,_0x243cf1=new ActivationsCommand(),_0x4fa963=program['opts'](),_0xe0f271=await createTDXInstance(_0x4fa963),_0xd82fc1=await _0x243cf1[_0x1bd04b(0x13f)]({'options':{..._0x4fa963,..._0x1efcb4},'args':[_0x5ad967],'tdx':_0xe0f271});gracefulExit(_0xd82fc1);});const workflowCmd=program['command'](a2_0x46ebb0(0x319))['alias']('wf')['description'](a2_0x46ebb0(0x2d1)),wfProjectCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x303))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x381)),wfProjectListAction=async(_0x44dad2,_0x33ddcc)=>{const _0xe0e33f=new WorkflowProjectsCommand(),_0x475c4a=program['opts'](),_0x1a7fd8=await createTDXInstance(_0x475c4a),_0x2d7663=await _0xe0e33f['run']({'options':{..._0x475c4a,..._0x33ddcc},'args':_0x44dad2?[_0x44dad2]:[],'tdx':_0x1a7fd8});gracefulExit(_0x2d7663);};wfProjectCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')['description'](a2_0x46ebb0(0x21d))[a2_0x46ebb0(0x209)](wfProjectListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x234))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x151))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x287a03,_0x6cd28a)=>{const _0x56dcbe=a2_0x46ebb0,_0x3ddf63=new WorkflowWorkflowsCommand(),_0x5eb155=program[_0x56dcbe(0x224)](),_0x4a3613=await createTDXInstance(_0x5eb155),_0x2a8e2d=await _0x3ddf63[_0x56dcbe(0x13f)]({'options':{..._0x5eb155,..._0x6cd28a},'args':_0x287a03?[_0x287a03]:[],'tdx':_0x4a3613});gracefulExit(_0x2a8e2d);};function a2_0x17f4(_0x2c401a,_0x13c95e){_0x2c401a=_0x2c401a-0xfc;const _0x4dc11a=a2_0x4dc1();let _0x17f405=_0x4dc11a[_0x2c401a];return _0x17f405;}workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x28e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x18e))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x383))['description'](a2_0x46ebb0(0x36a)),wfSessionListAction=async(_0x3e5822,_0x50818d)=>{const _0x2f713d=a2_0x46ebb0,_0x399a7e=new WorkflowSessionsCommand(),_0x1f4f59=program[_0x2f713d(0x224)](),_0x565bfc=await createTDXInstance(_0x1f4f59),_0x2a9917=await _0x399a7e[_0x2f713d(0x13f)]({'options':{..._0x1f4f59,..._0x50818d},'args':_0x3e5822?[_0x3e5822]:[],'tdx':_0x565bfc});gracefulExit(_0x2a9917);};wfSessionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x28a))[a2_0x46ebb0(0x25e)]('--status\x20<status>',a2_0x46ebb0(0x334))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x399),a2_0x46ebb0(0x24f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x237),a2_0x46ebb0(0x2ea))[a2_0x46ebb0(0x209)](wfSessionListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x310))[a2_0x46ebb0(0x218)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option']('--status\x20<status>',a2_0x46ebb0(0x334))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x399),a2_0x46ebb0(0x24f))[a2_0x46ebb0(0x25e)]('--to\x20<timestamp>',a2_0x46ebb0(0x2ea))[a2_0x46ebb0(0x209)](wfSessionListAction);const wfAttemptListAction=async(_0x3c2afa,_0x56517c)=>{const _0x3fa129=a2_0x46ebb0,_0x11a410=new WorkflowAttemptsCommand(),_0x2e45d9=program[_0x3fa129(0x224)](),_0x379e0f=await createTDXInstance(_0x2e45d9),_0x90440a=await _0x11a410[_0x3fa129(0x13f)]({'options':{..._0x2e45d9,..._0x56517c},'args':_0x3c2afa?[_0x3c2afa]:[],'tdx':_0x379e0f});gracefulExit(_0x90440a);},attemptCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b1))['description'](a2_0x46ebb0(0x365))[a2_0x46ebb0(0x13b)]('[attempt-id]',a2_0x46ebb0(0x253))[a2_0x46ebb0(0x13b)](a2_0x46ebb0(0x29b),a2_0x46ebb0(0x1d5))['argument'](a2_0x46ebb0(0x1c6),a2_0x46ebb0(0x261))[a2_0x46ebb0(0x25e)]('--include-subtasks',a2_0x46ebb0(0x1e5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1d8),a2_0x46ebb0(0x2e8))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x25f),a2_0x46ebb0(0x2ba))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e3),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x46ebb0(0x25e)]('--force',a2_0x46ebb0(0x2fa))['option'](a2_0x46ebb0(0x229),a2_0x46ebb0(0x152))['action'](async(_0x44015c,_0x54b8ea,_0x2894ba,_0x33be6e)=>{const _0x26a88f=a2_0x46ebb0;if(_0x44015c===_0x26a88f(0x306)){await wfAttemptListAction(_0x54b8ea,_0x33be6e);return;}if(!_0x44015c){attemptCmd[_0x26a88f(0x39d)]();return;}const _0x3155c1=program[_0x26a88f(0x224)](),_0x40aa89=await createTDXInstance(_0x3155c1);let _0x3dffea=0x0;if(!_0x54b8ea){const _0x5016a8=new WorkflowAttemptCommand();_0x3dffea=await _0x5016a8[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea==='logs'){const _0x435562=new WorkflowLogsCommand();_0x3dffea=await _0x435562[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':_0x2894ba?[_0x44015c,_0x2894ba]:[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea===_0x26a88f(0x374)){const _0x342130=new WorkflowTasksCommand();_0x3dffea=await _0x342130[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea===_0x26a88f(0x1ea)){const _0x69948a=new WorkflowKillCommand();_0x3dffea=await _0x69948a[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea==='retry'){const _0xee3f4f=new WorkflowRetryCommand();_0x3dffea=await _0xee3f4f[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':['attempt:'+_0x44015c],'tdx':_0x40aa89});}else console[_0x26a88f(0x201)]('Unknown\x20action:\x20'+_0x54b8ea),console[_0x26a88f(0x201)](_0x26a88f(0x33e)),_0x3dffea=0x1;}}}}gracefulExit(_0x3dffea);});attemptCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x154))['option'](a2_0x46ebb0(0x229),a2_0x46ebb0(0x10d))[a2_0x46ebb0(0x209)](wfAttemptListAction),workflowCmd[a2_0x46ebb0(0x1b4)]('attempts\x20[project]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x14e))[a2_0x46ebb0(0x25e)]('--include-retried',a2_0x46ebb0(0x10d))[a2_0x46ebb0(0x209)](wfAttemptListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x32d))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x33a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x269),a2_0x46ebb0(0x1a5))[a2_0x46ebb0(0x25e)]('--session-id\x20<id>',a2_0x46ebb0(0x160))['option'](a2_0x46ebb0(0x391),a2_0x46ebb0(0x328))[a2_0x46ebb0(0x209)](async(_0x50b55f,_0x4a6124)=>{const _0x4ff198=a2_0x46ebb0,_0x6a3d23=new WorkflowTimelineCommand(),_0x4ecdb0=program[_0x4ff198(0x224)](),_0x490e7d=await createTDXInstance(_0x4ecdb0),_0xd43ad1=await _0x6a3d23[_0x4ff198(0x13f)]({'options':{..._0x4ecdb0,..._0x4a6124},'args':_0x50b55f?[_0x50b55f]:[],'tdx':_0x490e7d});gracefulExit(_0xd43ad1);}),workflowCmd['command'](a2_0x46ebb0(0x123))['description'](a2_0x46ebb0(0x387))[a2_0x46ebb0(0x25e)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e3),a2_0x46ebb0(0x190))[a2_0x46ebb0(0x209)](async(_0x62c7ca,_0x5c018d)=>{const _0x4d62d9=new WorkflowRetryCommand(),_0x25351e=program['opts'](),_0x50731a=await createTDXInstance(_0x25351e),_0x5493e9=await _0x4d62d9['run']({'options':{..._0x25351e,..._0x5c018d},'args':[_0x62c7ca],'tdx':_0x50731a});gracefulExit(_0x5493e9);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2f6))[a2_0x46ebb0(0x218)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34b),'Workflow\x20parameter\x20(repeatable)',(_0x1e542b,_0x3ecb49=[])=>[..._0x3ecb49,_0x1e542b],[])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1a3),a2_0x46ebb0(0x172))[a2_0x46ebb0(0x209)](async(_0x8c875e,_0x24241d)=>{const _0x4a8ea8=a2_0x46ebb0,_0x396136=new WorkflowRunCommand(),_0x1359d7=program['opts'](),_0x55799a=await createTDXInstance(_0x1359d7),_0x5b41a7=await _0x396136[_0x4a8ea8(0x13f)]({'options':{..._0x1359d7,..._0x24241d},'args':_0x8c875e?[_0x8c875e]:[],'tdx':_0x55799a});gracefulExit(_0x5b41a7);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1f3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x101))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x46ebb0(0x209)](async(_0xaec034,_0x5f0693,_0x4676e7)=>{const _0x35ca6d=a2_0x46ebb0,_0x6933c9=new WorkflowDownloadCommand(),_0xfa626b=program[_0x35ca6d(0x224)](),_0x4a400c=await createTDXInstance(_0xfa626b),_0x942d35=await _0x6933c9[_0x35ca6d(0x13f)]({'options':{..._0xfa626b,..._0x4676e7},'args':[_0xaec034,_0x5f0693||'.'],'tdx':_0x4a400c});gracefulExit(_0x942d35);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x376))['description'](a2_0x46ebb0(0x254))['option'](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x168))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x31d))[a2_0x46ebb0(0x209)](async(_0x13623e,_0x499139,_0x3319cf)=>{const _0x4eb584=a2_0x46ebb0,_0x3aa37b=new WorkflowPullCommand(),_0x37a8bf=program[_0x4eb584(0x224)](),_0x46b08a=await createTDXInstance(_0x37a8bf),_0xe59aaa=await _0x3aa37b[_0x4eb584(0x13f)]({'options':{..._0x37a8bf,..._0x3319cf},'args':_0x499139?[_0x13623e,_0x499139]:[_0x13623e],'tdx':_0x46b08a});gracefulExit(_0xe59aaa);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x34a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x2ef))['option'](a2_0x46ebb0(0x285),a2_0x46ebb0(0x245))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x133),a2_0x46ebb0(0x37b))['action'](async(_0x1b3853,_0x52a617)=>{const _0x4a4978=a2_0x46ebb0,_0x512727=new WorkflowPushCommand(),_0x552173=program[_0x4a4978(0x224)](),_0x1ab58d=await createTDXInstance(_0x552173),_0x38d9c4=await _0x512727[_0x4a4978(0x13f)]({'options':{..._0x552173,..._0x52a617},'args':_0x1b3853?[_0x1b3853]:[],'tdx':_0x1ab58d});gracefulExit(_0x38d9c4);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x299))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x34e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ca),'Override\x20project\x20name')['option'](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x13d))[a2_0x46ebb0(0x25e)]('--skip-validation',a2_0x46ebb0(0x37b))[a2_0x46ebb0(0x209)](async(_0x20022c,_0x2dcec2)=>{const _0x3e569f=a2_0x46ebb0,_0x103551=new WorkflowUploadCommand(),_0x4290d7=program[_0x3e569f(0x224)](),_0x58f838=await createTDXInstance(_0x4290d7),_0x5fd9f0=await _0x103551[_0x3e569f(0x13f)]({'options':{..._0x4290d7,..._0x2dcec2},'args':_0x20022c?[_0x20022c]:[],'tdx':_0x58f838});gracefulExit(_0x5fd9f0);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2dd))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2ae))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x39e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),'Custom\x20revision\x20name\x20(default:\x20timestamp)')['option']('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x46ebb0(0x25e)]('--skip-validation',a2_0x46ebb0(0x37b))[a2_0x46ebb0(0x209)](async(_0x35df7a,_0x20cd54)=>{const _0x408c60=a2_0x46ebb0,_0x764d25=new WorkflowCloneCommand(),_0x5c3ae3=program[_0x408c60(0x224)](),_0x182ebd=await createTDXInstance(_0x5c3ae3),_0x49b6c5=await _0x764d25['run']({'options':{..._0x5c3ae3,..._0x20cd54},'args':_0x35df7a?[_0x35df7a]:[],'tdx':_0x182ebd});gracefulExit(_0x49b6c5);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2d2))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x176))['action'](async(_0x2b9bd5,_0x5238b4)=>{const _0x369d5e=new WorkflowDeleteCommand(),_0x91b8cc=program['opts'](),_0x206232=await createTDXInstance(_0x91b8cc),_0x519105=await _0x369d5e['run']({'options':{..._0x91b8cc,..._0x5238b4},'args':[_0x2b9bd5],'tdx':_0x206232});gracefulExit(_0x519105);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x31b))[a2_0x46ebb0(0x218)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2c0),a2_0x46ebb0(0x359))[a2_0x46ebb0(0x209)](async(_0x5cf1ef,_0x4ac99f)=>{const _0x42137d=a2_0x46ebb0,_0x21ee54=new WorkflowUseCommand(),_0x428854=program[_0x42137d(0x224)](),_0x3b1d8a=await createTDXInstance(_0x428854),_0x182c55=await _0x21ee54[_0x42137d(0x13f)]({'options':{..._0x428854,..._0x4ac99f},'args':_0x5cf1ef?[_0x5cf1ef]:[],'tdx':_0x3b1d8a});gracefulExit(_0x182c55);});const wfSecretsCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3a5))['description'](a2_0x46ebb0(0x1d9));wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x24d))[a2_0x46ebb0(0x209)](async(_0x299776,_0x4c432a)=>{const _0x405efc=a2_0x46ebb0,_0x41e604=new WorkflowSecretsListCommand(),_0x137f53=program['opts'](),_0x255668=await createTDXInstance(_0x137f53),_0x139a24=await _0x41e604[_0x405efc(0x13f)]({'options':{..._0x137f53,..._0x4c432a},'args':_0x299776?[_0x299776]:[],'tdx':_0x255668});gracefulExit(_0x139a24);}),wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x116))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1ad))['action'](async(_0x433942,_0x2a3553)=>{const _0x13c9c0=a2_0x46ebb0,_0x2c6ac2=new WorkflowSecretsSetCommand(),_0x218bc1=program['opts'](),_0x3061d8=await createTDXInstance(_0x218bc1),_0x3ece5b=await _0x2c6ac2[_0x13c9c0(0x13f)]({'options':{..._0x218bc1,..._0x2a3553},'args':_0x433942,'tdx':_0x3061d8});gracefulExit(_0x3ece5b);}),wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x286))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')['action'](async(_0x16370d,_0x33a193)=>{const _0x3339ec=a2_0x46ebb0,_0x5618cd=new WorkflowSecretsDeleteCommand(),_0x275b96=program[_0x3339ec(0x224)](),_0x31ebd1=await createTDXInstance(_0x275b96),_0x462f3e=await _0x5618cd[_0x3339ec(0x13f)]({'options':{..._0x275b96,..._0x33a193},'args':_0x16370d,'tdx':_0x31ebd1});gracefulExit(_0x462f3e);});const jobCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3af))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x31a)),jobListAction=async _0x521d53=>{const _0x1e6aaf=a2_0x46ebb0,_0x47a27e=new JobListCommand(),_0x44ebb3=program[_0x1e6aaf(0x224)](),_0x40e80b=await createTDXInstance(_0x44ebb3),_0x1f27a6=await _0x47a27e[_0x1e6aaf(0x13f)]({'options':{..._0x44ebb3,..._0x521d53},'args':[],'tdx':_0x40e80b});gracefulExit(_0x1f27a6);};jobCmd['command'](a2_0x46ebb0(0x306))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x311))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x163),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x46ebb0(0x209)](jobListAction),program['command'](a2_0x46ebb0(0x21a),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x357))['option']('--status\x20<status>',a2_0x46ebb0(0x1e6))[a2_0x46ebb0(0x209)](jobListAction),jobCmd[a2_0x46ebb0(0x1b4)]('show\x20<job-id>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0xff))['action'](async(_0x5e1186,_0x39676d)=>{const _0x4da47f=a2_0x46ebb0,_0x14dbb2=new JobShowCommand(),_0x1073c6=program[_0x4da47f(0x224)](),_0x24a6a6=await createTDXInstance(_0x1073c6),_0x2f3b69=await _0x14dbb2[_0x4da47f(0x13f)]({'options':{..._0x1073c6,..._0x39676d},'args':[_0x5e1186],'tdx':_0x24a6a6});gracefulExit(_0x2f3b69);}),jobCmd[a2_0x46ebb0(0x1b4)]('kill\x20<job-id>')['description'](a2_0x46ebb0(0x221))[a2_0x46ebb0(0x209)](async(_0x419367,_0x3964bd)=>{const _0x50d638=a2_0x46ebb0,_0x10ea9b=new JobKillCommand(),_0x473040=program[_0x50d638(0x224)](),_0x2a5b7c=await createTDXInstance(_0x473040),_0xb43029=await _0x10ea9b[_0x50d638(0x13f)]({'options':{..._0x473040,..._0x3964bd},'args':[_0x419367],'tdx':_0x2a5b7c});gracefulExit(_0xb43029);}),jobCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1ff))[a2_0x46ebb0(0x218)]('Submit\x20a\x20job')['option'](a2_0x46ebb0(0x20a),a2_0x46ebb0(0x33f),a2_0x46ebb0(0x273))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x35d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x369),a2_0x46ebb0(0x20d),'information_schema')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1aa),a2_0x46ebb0(0x35f))['action'](async(_0x446c5b,_0x30e280)=>{const _0x3f65e1=a2_0x46ebb0,_0xb627d9=new JobSubmitCommand(),_0x4981d8=program['opts'](),_0x2b470b=await createTDXInstance(_0x4981d8),_0x57566f=await _0xb627d9[_0x3f65e1(0x13f)]({'options':{..._0x4981d8,..._0x30e280},'args':_0x446c5b?[_0x446c5b]:[],'tdx':_0x2b470b});gracefulExit(_0x57566f);}),jobCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x175))[a2_0x46ebb0(0x218)]('Get\x20job\x20results')[a2_0x46ebb0(0x209)](async(_0xc9c702,_0x2096af)=>{const _0x5d565c=a2_0x46ebb0,_0x5cd50a=new JobResultCommand(),_0x3b8f38=program[_0x5d565c(0x224)](),_0x3a67b9=await createTDXInstance(_0x3b8f38),_0x1f3f0e=await _0x5cd50a['run']({'options':{..._0x3b8f38,..._0x2096af},'args':[_0xc9c702],'tdx':_0x3a67b9});gracefulExit(_0x1f3f0e);});const scheduleCmd=jobCmd['command']('schedule')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b2));scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')[a2_0x46ebb0(0x209)](async(_0x3b440b,_0x3ab363)=>{const _0x29726b=a2_0x46ebb0,_0x3a0e29=new ScheduleListCommand(),_0x4e320f=program[_0x29726b(0x224)](),_0x25cde6=await createTDXInstance(_0x4e320f),_0x236f46=await _0x3a0e29[_0x29726b(0x13f)]({'options':{..._0x4e320f,..._0x3ab363},'args':_0x3b440b?[_0x3b440b]:[],'tdx':_0x25cde6});gracefulExit(_0x236f46);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x22a))[a2_0x46ebb0(0x218)]('Show\x20schedule\x20details')[a2_0x46ebb0(0x209)](async(_0x15e045,_0x12f6db)=>{const _0x4f6f75=a2_0x46ebb0,_0x4248d4=new ScheduleShowCommand(),_0x5f7cd6=program['opts'](),_0x49d67c=await createTDXInstance(_0x5f7cd6),_0xd8bf91=await _0x4248d4[_0x4f6f75(0x13f)]({'options':{..._0x5f7cd6,..._0x12f6db},'args':[_0x15e045],'tdx':_0x49d67c});gracefulExit(_0xd8bf91);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('create\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2bb))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<db>',a2_0x46ebb0(0x2a3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x14f),a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x35d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x155),a2_0x46ebb0(0x273))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a1),a2_0x46ebb0(0x185))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x1ae))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a8),a2_0x46ebb0(0x1f9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x339),a2_0x46ebb0(0x20b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x121),a2_0x46ebb0(0x242))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x12c),a2_0x46ebb0(0x3a0))['option'](a2_0x46ebb0(0x292),a2_0x46ebb0(0x2fd))[a2_0x46ebb0(0x209)](async(_0x12ea3c,_0x3869f)=>{const _0x22ec24=a2_0x46ebb0,_0x3a04bf=new ScheduleCreateCommand(),_0x2c57b5=program[_0x22ec24(0x224)](),_0x1b0928=await createTDXInstance(_0x2c57b5);_0x3869f['in']&&(_0x3869f[_0x22ec24(0x31c)]=_0x3869f['in']);const _0x120f64=await _0x3a04bf['run']({'options':{..._0x2c57b5,..._0x3869f},'args':[_0x12ea3c],'tdx':_0x1b0928});gracefulExit(_0x120f64);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('update\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1fc))['option'](a2_0x46ebb0(0x1dd),a2_0x46ebb0(0x1ac))[a2_0x46ebb0(0x25e)]('--in\x20<db>',a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),'Read\x20query\x20from\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x155))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a1),a2_0x46ebb0(0x185))[a2_0x46ebb0(0x25e)]('--timezone\x20<tz>','Timezone\x20for\x20cron')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a8),a2_0x46ebb0(0x1f9))['option'](a2_0x46ebb0(0x339),a2_0x46ebb0(0x20b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x121),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x12c),a2_0x46ebb0(0x3a0))[a2_0x46ebb0(0x25e)]('--result\x20<url>',a2_0x46ebb0(0x2fd))[a2_0x46ebb0(0x209)](async(_0x11c2a8,_0x3b0f1e)=>{const _0x3e5b4a=a2_0x46ebb0,_0x3b44bd=new ScheduleUpdateCommand(),_0x42647a=program[_0x3e5b4a(0x224)](),_0x4e3884=await createTDXInstance(_0x42647a);_0x3b0f1e['in']&&(_0x3b0f1e['database']=_0x3b0f1e['in']);const _0x1ff959=await _0x3b44bd['run']({'options':{..._0x42647a,..._0x3b0f1e},'args':[_0x11c2a8],'tdx':_0x4e3884});gracefulExit(_0x1ff959);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x368))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x156))[a2_0x46ebb0(0x209)](async(_0x167b43,_0x27e7f1)=>{const _0xbe50f2=a2_0x46ebb0,_0x4445ba=new ScheduleDeleteCommand(),_0x38e245=program[_0xbe50f2(0x224)](),_0x47b5ce=await createTDXInstance(_0x38e245),_0x10664c=await _0x4445ba[_0xbe50f2(0x13f)]({'options':{..._0x38e245,..._0x27e7f1},'args':[_0x167b43],'tdx':_0x47b5ce});gracefulExit(_0x10664c);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x276))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c3))[a2_0x46ebb0(0x25e)]('--time\x20<iso8601>',a2_0x46ebb0(0x21c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x316),a2_0x46ebb0(0x30f))['action'](async(_0x4702b4,_0x1502a0)=>{const _0x5dd0c1=a2_0x46ebb0,_0x5ab154=new ScheduleRunCommand(),_0x2d2e4b=program[_0x5dd0c1(0x224)](),_0x794ce1=await createTDXInstance(_0x2d2e4b),_0x49ba76=await _0x5ab154[_0x5dd0c1(0x13f)]({'options':{..._0x2d2e4b,..._0x1502a0},'args':[_0x4702b4],'tdx':_0x794ce1});gracefulExit(_0x49ba76);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('history\x20<name>')['description']('Show\x20schedule\x20execution\x20history')[a2_0x46ebb0(0x25e)]('--from\x20<n>',a2_0x46ebb0(0x20e))[a2_0x46ebb0(0x25e)]('--to\x20<n>',a2_0x46ebb0(0x2f5))[a2_0x46ebb0(0x209)](async(_0x3367c4,_0x58bb40)=>{const _0x5a901a=a2_0x46ebb0,_0x356c58=new ScheduleHistoryCommand(),_0x4a4631=program[_0x5a901a(0x224)](),_0xc084=await createTDXInstance(_0x4a4631),_0x43404f=await _0x356c58[_0x5a901a(0x13f)]({'options':{..._0x4a4631,..._0x58bb40},'args':[_0x3367c4],'tdx':_0xc084});gracefulExit(_0x43404f);});const llmCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x348))[a2_0x46ebb0(0x218)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x46ebb0(0x30a))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x394))[a2_0x46ebb0(0x209)](async(_0x20b7bc,_0x36a300)=>{const _0x5d8a19=a2_0x46ebb0,_0x20fe68=new LLMUseCommand(),_0x49337c=program[_0x5d8a19(0x224)](),_0x34dcb3=await createTDXInstance(_0x49337c),_0x7b2758=await _0x20fe68[_0x5d8a19(0x13f)]({'options':{..._0x49337c,..._0x36a300},'args':[_0x20b7bc],'tdx':_0x34dcb3});gracefulExit(_0x7b2758);}),llmCmd['command'](a2_0x46ebb0(0x270))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2a1))[a2_0x46ebb0(0x209)](async _0x402e25=>{const _0x2d77d9=a2_0x46ebb0,_0x5153dc=new LLMModelsCommand(),_0x5675b3=program['opts'](),_0x2f17ef=await createTDXInstance(_0x5675b3),_0xb6e427=await _0x5153dc[_0x2d77d9(0x13f)]({'options':{..._0x5675b3,..._0x402e25},'args':[],'tdx':_0x2f17ef});gracefulExit(_0xb6e427);});const projectCmd=llmCmd['command'](a2_0x46ebb0(0x303))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2bd)),llmProjectListAction=async(_0x22427b,_0x463178)=>{const _0x5ec423=a2_0x46ebb0,_0x2e1366=new LLMProjectsCommand(),_0xe78885=program[_0x5ec423(0x224)](),_0x465d25=await createTDXInstance(_0xe78885),_0x2ec9ee=await _0x2e1366[_0x5ec423(0x13f)]({'options':{..._0xe78885,..._0x463178},'args':_0x22427b?[_0x22427b]:[],'tdx':_0x465d25});gracefulExit(_0x2ec9ee);};projectCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1be))[a2_0x46ebb0(0x209)](llmProjectListAction),llmCmd['command'](a2_0x46ebb0(0x234))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x13a))[a2_0x46ebb0(0x209)](llmProjectListAction),projectCmd['command'](a2_0x46ebb0(0x378))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x345))[a2_0x46ebb0(0x25e)]('--description\x20<text>',a2_0x46ebb0(0x262))[a2_0x46ebb0(0x209)](async(_0x251001,_0x34159d)=>{const _0x3fc73a=a2_0x46ebb0,_0x216595=new LLMProjectCreateCommand(),_0x4fb630=program[_0x3fc73a(0x224)](),_0x1b4519=await createTDXInstance(_0x4fb630),_0xfb593b=await _0x216595[_0x3fc73a(0x13f)]({'options':{..._0x4fb630,..._0x34159d},'args':[_0x251001],'tdx':_0x1b4519});gracefulExit(_0xfb593b);}),projectCmd[a2_0x46ebb0(0x1b4)]('delete\x20<name>')[a2_0x46ebb0(0x218)]('Delete\x20an\x20LLM\x20project')[a2_0x46ebb0(0x209)](async(_0x165171,_0x4dd576)=>{const _0x353bc1=a2_0x46ebb0,_0x282f76=new LLMProjectDeleteCommand(),_0x1c2b3c=program[_0x353bc1(0x224)](),_0x9ff674=await createTDXInstance(_0x1c2b3c),_0x5389fa=await _0x282f76[_0x353bc1(0x13f)]({'options':{..._0x1c2b3c,..._0x4dd576},'args':[_0x165171],'tdx':_0x9ff674});gracefulExit(_0x5389fa);}),projectCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x136))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1b0))['option'](a2_0x46ebb0(0x1d6),a2_0x46ebb0(0x26e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x46ebb0(0x209)](async(_0x3b6281,_0x1300bb)=>{const _0x2828f3=a2_0x46ebb0,_0x270c9e=new LLMProjectBackupCommand(),_0x5e1858=program[_0x2828f3(0x224)](),_0x4b01fe=await createTDXInstance(_0x5e1858),_0x4d5bee=await _0x270c9e[_0x2828f3(0x13f)]({'options':{..._0x5e1858,..._0x1300bb},'args':[_0x3b6281],'tdx':_0x4b01fe});gracefulExit(_0x4d5bee);}),projectCmd[a2_0x46ebb0(0x1b4)]('restore\x20<folder>')[a2_0x46ebb0(0x218)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x354),a2_0x46ebb0(0x27e))['option'](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x46ebb0(0x209)](async(_0x3c891c,_0x35fc6b)=>{const _0xa4a324=a2_0x46ebb0,_0xd57d13=new LLMProjectRestoreCommand(),_0x5b2c8b=program[_0xa4a324(0x224)](),_0x847eca=await createTDXInstance(_0x5b2c8b),_0x2e20c3=await _0xd57d13[_0xa4a324(0x13f)]({'options':{..._0x5b2c8b,..._0x35fc6b},'args':[_0x3c891c],'tdx':_0x847eca});gracefulExit(_0x2e20c3);});const llmAgentListAction=async(_0x949407,_0x2064f5)=>{const _0x35de98=a2_0x46ebb0,_0x5cf7f7=new LLMAgentsCommand(),_0x2131af=program[_0x35de98(0x224)](),_0x2dfe77=await createTDXInstance(_0x2131af),_0x561ac4=await _0x5cf7f7[_0x35de98(0x13f)]({'options':{..._0x2131af,..._0x2064f5},'args':_0x949407?[_0x949407]:[],'tdx':_0x2dfe77});gracefulExit(_0x561ac4);};llmCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x335))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x24a))['action'](llmAgentListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x335))['description'](a2_0x46ebb0(0x24a))['action'](llmAgentListAction),llmCmd['command']('history\x20[chat-id]')[a2_0x46ebb0(0x218)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')['option'](a2_0x46ebb0(0x2a5),a2_0x46ebb0(0x2d7))[a2_0x46ebb0(0x209)](async(_0x5b71bc,_0x4e4988)=>{const _0x57ded3=a2_0x46ebb0,_0x3de3ef=new LLMHistoryCommand(),_0x4c4220=program[_0x57ded3(0x224)](),_0x1392b1=await createTDXInstance(_0x4c4220),_0x12d6c0=await _0x3de3ef[_0x57ded3(0x13f)]({'options':{..._0x4c4220,..._0x4e4988},'args':_0x5b71bc?[_0x5b71bc]:[],'tdx':_0x1392b1});gracefulExit(_0x12d6c0);});isExperimentalAvailable()&&llmCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b7))[a2_0x46ebb0(0x218)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x46ebb0(0x209)](async(_0x2b726b,_0x3166a3)=>{const _0x1f8949=a2_0x46ebb0,_0x4e1511=new LLMLogCommand(),_0x946542=program[_0x1f8949(0x224)](),_0x1fc879=await createTDXInstance(_0x946542),_0x1aa388=await _0x4e1511[_0x1f8949(0x13f)]({'options':{..._0x946542,..._0x3166a3},'args':[_0x2b726b],'tdx':_0x1fc879});gracefulExit(_0x1aa388);});program[a2_0x46ebb0(0x1b4)]('claude\x20[args...]')[a2_0x46ebb0(0x38b)](a2_0x46ebb0(0x1e2))[a2_0x46ebb0(0x218)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')['option']('-r,\x20--resume',a2_0x46ebb0(0x189))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x39f),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x46ebb0(0x11e)]()[a2_0x46ebb0(0x314)](!![])[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x327))[a2_0x46ebb0(0x209)](async(_0x365d75,_0x4e09cf)=>{const _0x1f2e40=a2_0x46ebb0,_0x53f163=program[_0x1f2e40(0x224)](),_0x5cc9da=Array['isArray'](_0x365d75)?_0x365d75:[];if(_0x5cc9da[0x0]===_0x1f2e40(0x3a7)){const _0x297175=new ClaudeStatuslineCommand(),_0x14ff84=await _0x297175[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da[_0x1f2e40(0x342)](0x1),'tdx':null});gracefulExit(_0x14ff84);}if(_0x5cc9da[0x0]==='usage'){const _0x55dd60=new ClaudeUsageCommand(),_0x4b6373=await _0x55dd60[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da[_0x1f2e40(0x342)](0x1),'tdx':null});gracefulExit(_0x4b6373);}const _0x149e3a=new ClaudeCommand(),_0x32e0c9=await createTDXInstance(_0x53f163),_0x52b073=await _0x149e3a[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da,'tdx':_0x32e0c9});gracefulExit(_0x52b073);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1fa))[a2_0x46ebb0(0x218)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2c0),a2_0x46ebb0(0x1c1))['option'](a2_0x46ebb0(0x2e1),a2_0x46ebb0(0x146))[a2_0x46ebb0(0x209)](async(_0xf799ff,_0x5f0fb3,_0x2c959c)=>{const _0x15616e=a2_0x46ebb0,_0x50f80f=new UseCommand(),_0x705222=program[_0x15616e(0x224)](),_0x320a7b=[];if(_0xf799ff)_0x320a7b[_0x15616e(0x2fb)](_0xf799ff);if(_0x5f0fb3)_0x320a7b[_0x15616e(0x2fb)](_0x5f0fb3);const _0x28c763=_0xf799ff==='engage_workspace',_0xdd5c2f=_0x28c763?await createTDXInstance(_0x705222):null,_0x3006e5=await _0x50f80f['run']({'options':{..._0x705222,..._0x2c959c},'args':_0x320a7b,'tdx':_0xdd5c2f});gracefulExit(_0x3006e5);}),program['command']('status')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x18c))[a2_0x46ebb0(0x209)](async _0xa2f6f8=>{const _0x1f4a00=a2_0x46ebb0,_0x169c8b=new StatusCommand(),_0x928931=program[_0x1f4a00(0x224)](),_0x25116a=await createTDXInstance(_0x928931),_0x949bce=await _0x169c8b[_0x1f4a00(0x13f)]({'options':{..._0x928931,..._0xa2f6f8},'args':[],'tdx':_0x25116a});gracefulExit(_0x949bce);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x14b))['description'](a2_0x46ebb0(0x18d))['option'](a2_0x46ebb0(0x2e1),a2_0x46ebb0(0x2aa))[a2_0x46ebb0(0x209)](async(_0x29cf1b,_0x5934e0)=>{const _0x3a9ac9=a2_0x46ebb0,_0x2406d7=new UnsetCommand(),_0xddb958=program[_0x3a9ac9(0x224)](),_0x47f957=await _0x2406d7[_0x3a9ac9(0x13f)]({'options':{..._0xddb958,..._0x5934e0},'args':[_0x29cf1b],'tdx':null});gracefulExit(_0x47f957);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x11b))['description']('Interactive\x20chat\x20selector')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a5),a2_0x46ebb0(0x301))[a2_0x46ebb0(0x209)](async _0x27c6d0=>{const _0x1e2f19=a2_0x46ebb0,_0x5692c4=new ChatsCommand(),_0x5207bc=program[_0x1e2f19(0x224)](),_0x2d3348=await createTDXInstance(_0x5207bc),_0x41e5ad=await _0x5692c4['run']({'options':{..._0x5207bc,..._0x27c6d0},'args':[],'tdx':_0x2d3348});gracefulExit(_0x41e5ad);});const authCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x228))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x372));async function runAuthStatusCommand(_0x4fd620){const _0x32edb3=a2_0x46ebb0,_0x2394b6=new AuthStatusCommand(),_0x45fde0=program[_0x32edb3(0x224)](),_0x42c2b1=await createTDXInstance(_0x45fde0),_0x5a212f=await _0x2394b6[_0x32edb3(0x13f)]({'options':{..._0x45fde0,..._0x4fd620},'args':[],'tdx':_0x42c2b1});gracefulExit(_0x5a212f);}authCmd[a2_0x46ebb0(0x209)](runAuthStatusCommand),authCmd['command'](a2_0x46ebb0(0x1a1))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x23c))['action'](runAuthStatusCommand),authCmd[a2_0x46ebb0(0x1b4)]('setup')['description']('Setup\x20API\x20key\x20authentication\x20interactively')['addHelpText'](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x23f))[a2_0x46ebb0(0x209)](async _0x5e56b2=>{const _0x284dc8=a2_0x46ebb0,_0x51ada8=new AuthSetupCommand(),_0x567f85=program['opts'](),_0x2ebd1a=await createTDXInstance(_0x567f85),_0x16ee54=await _0x51ada8[_0x284dc8(0x13f)]({'options':{..._0x567f85,..._0x5e56b2},'args':[],'tdx':_0x2ebd1a});gracefulExit(_0x16ee54);}),authCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x353))['description'](a2_0x46ebb0(0x165))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x1a2))[a2_0x46ebb0(0x209)](async _0x2cbad8=>{const _0x2b54ec=a2_0x46ebb0,_0x2c124a=new AuthClearCommand(),_0x585acb=program[_0x2b54ec(0x224)](),_0x1d3b20=await _0x2c124a['run']({'options':{..._0x585acb,..._0x2cbad8},'args':[],'tdx':null});gracefulExit(_0x1d3b20);});const userCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1e0))['description'](a2_0x46ebb0(0x1b7)),userListAction=async _0x340da9=>{const _0x31d1cf=a2_0x46ebb0,_0x344134=new UserListCommand(),_0x223d73=program['opts'](),_0x546fd1=await createTDXInstance(_0x223d73),_0xda2b3=await _0x344134[_0x31d1cf(0x13f)]({'options':{..._0x223d73,..._0x340da9},'args':[],'tdx':_0x546fd1});gracefulExit(_0xda2b3);};userCmd['action'](async _0x5816ec=>{const _0x341719=a2_0x46ebb0,_0x2a1b58=new UserCommand(),_0x5d93f2=program[_0x341719(0x224)](),_0x5784f1=await createTDXInstance(_0x5d93f2),_0xac5290=await _0x2a1b58['run']({'options':{..._0x5d93f2,..._0x5816ec},'args':[],'tdx':_0x5784f1});gracefulExit(_0xac5290);}),userCmd[a2_0x46ebb0(0x1b4)]('list')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x29e))[a2_0x46ebb0(0x209)](userListAction),program[a2_0x46ebb0(0x1b4)]('users')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x395))[a2_0x46ebb0(0x209)](userListAction),program[a2_0x46ebb0(0x1b4)]('profiles')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x124))[a2_0x46ebb0(0x209)](async _0x3fd66f=>{const _0x305c64=a2_0x46ebb0,_0x2f2609=new ProfilesCommand(),_0x38d653=program[_0x305c64(0x224)](),_0x31845e=await _0x2f2609['run']({'options':{..._0x38d653,..._0x3fd66f},'args':[],'tdx':null});gracefulExit(_0x31845e);});const profileCmd=program[a2_0x46ebb0(0x1b4)]('profile')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2c1));profileCmd['action'](()=>{const _0x41cd32=a2_0x46ebb0;profileCmd[_0x41cd32(0x131)]();});const profileListAction=async _0x2de17b=>{const _0x356d2c=a2_0x46ebb0,_0x4c408b=new ProfilesCommand(),_0x5d9979=program[_0x356d2c(0x224)](),_0x5b16b5=await _0x4c408b[_0x356d2c(0x13f)]({'options':{..._0x5d9979,..._0x2de17b},'args':[],'tdx':null});gracefulExit(_0x5b16b5);};profileCmd[a2_0x46ebb0(0x1b4)]('list')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x124))[a2_0x46ebb0(0x209)](profileListAction),profileCmd['command']('create\x20[name]')['description'](a2_0x46ebb0(0x1bc))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x282))['action'](async(_0x271107,_0x4df7d0)=>{const _0x2d5910=a2_0x46ebb0,_0x280535=new ProfileCreateCommand(),_0x8f619e=program[_0x2d5910(0x224)](),_0x1b1639=await _0x280535['run']({'options':{..._0x8f619e,..._0x4df7d0},'args':_0x271107?[_0x271107]:[],'tdx':null});gracefulExit(_0x1b1639);}),profileCmd[a2_0x46ebb0(0x1b4)]('remove\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x350))['addHelpText']('after',a2_0x46ebb0(0x32e))['action'](async(_0x2e07de,_0x5e7419)=>{const _0x2e9ddb=a2_0x46ebb0,_0x12c723=new ProfileRemoveCommand(),_0x20356b=program[_0x2e9ddb(0x224)](),_0x4bb684=await _0x12c723[_0x2e9ddb(0x13f)]({'options':{..._0x20356b,..._0x5e7419},'args':[_0x2e07de],'tdx':null});gracefulExit(_0x4bb684);}),profileCmd[a2_0x46ebb0(0x1b4)]('set\x20<key=value>')[a2_0x46ebb0(0x218)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x46ebb0(0x209)](async(_0x3f16cd,_0x192ff0)=>{const _0x5d7267=a2_0x46ebb0,_0x11e284=new ProfileSetCommand(),_0x52e169=program[_0x5d7267(0x224)](),_0x2a9dd2=await _0x11e284[_0x5d7267(0x13f)]({'options':{..._0x52e169,..._0x192ff0},'args':[_0x3f16cd],'tdx':null});gracefulExit(_0x2a9dd2);}),profileCmd[a2_0x46ebb0(0x1b4)]('use\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b3))[a2_0x46ebb0(0x25e)]('--default',a2_0x46ebb0(0x146))['addHelpText']('after',a2_0x46ebb0(0x2ab))['action'](async(_0x1ca124,_0x2d350c)=>{const _0x4bde0c=a2_0x46ebb0,_0x561f05=new ProfileUseCommand(),_0x414b46=program[_0x4bde0c(0x224)](),_0x909a1c=await _0x561f05[_0x4bde0c(0x13f)]({'options':{..._0x414b46,..._0x2d350c},'args':[_0x1ca124],'tdx':null});gracefulExit(_0x909a1c);});const engageCmd=program['command'](a2_0x46ebb0(0x173))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x179)),createEngageAction=_0x4531df=>{return async(_0x1e239b,_0x322a4e)=>{const _0x5ee627=a2_0x17f4,_0x26d65d=new _0x4531df(),_0x22396e=program['opts'](),_0x2966b2=await createTDXInstance(_0x22396e),_0x412595=await _0x26d65d[_0x5ee627(0x13f)]({'options':{..._0x22396e,..._0x322a4e},'args':[_0x1e239b],'tdx':_0x2966b2});gracefulExit(_0x412595);};},createEngageNoArgAction=_0xf53ba9=>{return async _0x350b8d=>{const _0x5a4c45=a2_0x17f4,_0x583a30=new _0xf53ba9(),_0x2853ca=program[_0x5a4c45(0x224)](),_0x11dbdc=await createTDXInstance(_0x2853ca),_0x215bde=await _0x583a30[_0x5a4c45(0x13f)]({'options':{..._0x2853ca,..._0x350b8d},'args':[],'tdx':_0x11dbdc});gracefulExit(_0x215bde);};},createEngageListAction=_0x172a7b=>{return async(_0xd7e052,_0x1be9cc)=>{const _0x525322=a2_0x17f4,_0x3db7ac=new _0x172a7b(),_0xd91b62=program[_0x525322(0x224)](),_0x30c31f=await createTDXInstance(_0xd91b62),_0x49f5a2=await _0x3db7ac['run']({'options':{..._0xd91b62,..._0x1be9cc},'args':_0xd7e052?[_0xd7e052]:[],'tdx':_0x30c31f});gracefulExit(_0x49f5a2);};},campaignCmd=engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x38e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2e7));campaignCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x204))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x24b))['option'](a2_0x46ebb0(0x163),a2_0x46ebb0(0x2c4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x46ebb0(0x12f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x389))[a2_0x46ebb0(0x25e)]('--type\x20<type>',a2_0x46ebb0(0x24b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x163),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2bc))['description'](a2_0x46ebb0(0x15b))['option'](a2_0x46ebb0(0x355),'Workspace\x20name')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1e8),a2_0x46ebb0(0x219))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1d2))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2f1))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x330))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x2fe))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x211))[a2_0x46ebb0(0x25e)]('--description\x20<desc>',a2_0x46ebb0(0x25d))['option'](a2_0x46ebb0(0x2da),a2_0x46ebb0(0x2ed))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x197),a2_0x46ebb0(0x10c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x260),a2_0x46ebb0(0x130))['option'](a2_0x46ebb0(0x1eb),a2_0x46ebb0(0x1c4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x46ebb0(0x209)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x208))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['option']('--name\x20<name>',a2_0x46ebb0(0x1cc))['option'](a2_0x46ebb0(0x2f8),a2_0x46ebb0(0x25d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2da),a2_0x46ebb0(0x2ed))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x197),a2_0x46ebb0(0x10c))['option']('--json-columns\x20<cols>',a2_0x46ebb0(0x130))[a2_0x46ebb0(0x25e)]('--start-at\x20<datetime>',a2_0x46ebb0(0x1c4))['option']('--timezone\x20<tz>',a2_0x46ebb0(0x11c))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c7))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17c))['option']('--workspace\x20<name>',a2_0x46ebb0(0x323))['option'](a2_0x46ebb0(0x1f5),a2_0x46ebb0(0x380))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x36f))[a2_0x46ebb0(0x218)]('Launch\x20a\x20campaign')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x293))['description'](a2_0x46ebb0(0x17f))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x46ebb0(0x1b4)]('resume\x20<name-or-id>')[a2_0x46ebb0(0x218)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x46ebb0(0x1bf))['description'](a2_0x46ebb0(0x187))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)]('pull\x20[workspace-name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x315))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--name\x20<name>',a2_0x46ebb0(0x2a0))['option'](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x24b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x308))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x30c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x186))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--dry-run',a2_0x46ebb0(0x192))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x139))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x37f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x210),a2_0x46ebb0(0x278))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x109))['description'](a2_0x46ebb0(0x142));templateCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17b))['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2a7))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2d5))['option'](a2_0x46ebb0(0x355),'Workspace\x20name')[a2_0x46ebb0(0x209)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('show\x20<name-or-id>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x384))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--full',a2_0x46ebb0(0x219))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('create')[a2_0x46ebb0(0x218)]('Create\x20an\x20email\x20template')['requiredOption'](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x2f0))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x341),a2_0x46ebb0(0x11f))['requiredOption'](a2_0x46ebb0(0x125),'HTML\x20template\x20content')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x211))['option']('--plaintext\x20<text>',a2_0x46ebb0(0x1cf))['option'](a2_0x46ebb0(0x19c),a2_0x46ebb0(0x1d4),_0x591be3=>{const _0x4d7126=a2_0x46ebb0;if(![_0x4d7126(0x1a7),_0x4d7126(0x126)][_0x4d7126(0x252)](_0x591be3))throw new SDKError(ErrorCode[_0x4d7126(0x19a)],'Invalid\x20editor\x20type:\x20'+_0x591be3+_0x4d7126(0x39c));return _0x591be3;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('update\x20<name-or-id>')[a2_0x46ebb0(0x218)]('Update\x20an\x20email\x20template')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['option'](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x16e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x341),a2_0x46ebb0(0x11f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x125),a2_0x46ebb0(0x34f))['option']('--plaintext\x20<text>',a2_0x46ebb0(0x1cf))[a2_0x46ebb0(0x209)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c7))[a2_0x46ebb0(0x218)]('Delete\x20an\x20email\x20template')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1f5),a2_0x46ebb0(0x380))[a2_0x46ebb0(0x209)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2d0));function a2_0x4dc1(){const _0x649f3b=['view\x20<name-or-path>','argv','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Output\x20folder\x20(default:\x20{project_name}.llm)','Attributes\x20from\x20JSON\x20file','models','name','optionDescription','trino','-y,\x20--yes','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','run\x20<name>','tdx\x20','Show\x20all\x20files\x20including\x20valid\x20ones','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Invalid\x20--limit\x20value:\x20\x22','Agent\x20name','Attributes\x20as\x20JSON\x20string','Output\x20directory','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','subcommandDescription','View\x20a\x20specific\x20version\x20of\x20a\x20journey','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','segment','--chat-id\x20<id>','--dry-run','delete\x20<args...>','--description\x20<text>','-w,\x20--web','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20[name]','-H,\x20--header\x20<header>','workflows\x20[project]','--limit\x20<rows>','--behavior\x20[name]','Move\x20to\x20folder','--result\x20<url>','pause\x20<name-or-id>','list\x20[project]','delivery','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','agent','upload\x20[project-name-or-dir]','--rule\x20<json>','[action]','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20all\x20users\x20in\x20the\x20account','desc\x20[name]','Pull\x20specific\x20campaign\x20by\x20name','List\x20available\x20LLM\x20models','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Database\x20name\x20(required)','exit','--last','pause\x20<name-or-path>','templates\x20[pattern]','--delay\x20<seconds>','Resume\x20a\x20paused\x20journey','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','pull\x20[project]\x20[agent-name]','colorFn','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','json','attempt','Scheduled\x20query\x20management\x20commands','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','--limit\x20<number>','Change\x20to\x20directory\x20before\x20executing\x20command','parent-segment','log\x20<chat-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--reeval','Resume\x20from\x20specific\x20task\x20(retry)','Create\x20a\x20scheduled\x20query','show\x20<name-or-id>','LLM\x20project\x20management','Timezone\x20(e.g.,\x20America/Los_Angeles)','fields\x20[name]','--clear','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Agent\x20description','Parse\x20and\x20validate\x20without\x20executing','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Show\x20only\x20master\x20table\x20validation','Delivery\x20operations\x20(email\x20senders)','delete\x20<name-or-id>','create\x20<segment_name>','Add\x20behaviors\x20as\x20JSON\x20string','--name\x20<name>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','length','forEach','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','-C,\x20--directory\x20<path>','Workspace\x20management','Workflow\x20(Digdag)\x20management\x20commands','delete\x20<project-name-or-id>','Output\x20as\x20JSON','Workspace\x20description','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','List\x20all\x20versions\x20of\x20a\x20journey','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','journeys\x20[pattern]','--segment\x20<path>','preAction','--table','clone\x20[source-dir]','[DEPRECATED]\x20Segment\x20folder\x20management','CDP\x20segment\x20management\x20commands','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--default','--debug','--params\x20<json>','info\x20[segment_name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Campaign\x20management','Reason\x20for\x20killing\x20the\x20attempt','Show\x20journey\x20table\x20column-to-step\x20mapping','End\x20time\x20filter\x20(ISO\x208601\x20format)','log','describe','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','versions\x20<name-or-path>','Custom\x20revision\x20name\x20(default:\x20timestamp)','Template\x20name','Create\x20a\x20new\x20campaign','after','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Ending\x20offset\x20(default:\x2020)','run\x20[workflow]','Run\x20specific\x20tests\x20(comma-separated)','--description\x20<desc>','required','Force\x20retry\x20even\x20if\x20not\x20failed','push','parse','Result\x20output\x20destination\x20URL','Campaign\x20type\x20(email\x20or\x20push)','-n,\x20--name\x20<name>','\x22.\x20Must\x20be\x20a\x20number.','Show\x20the\x20most\x20recent\x20chat','Update\x20an\x20existing\x20agent','project','-r,\x20--recursive','list\x20[name]','list','api\x20[endpoint]','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','use\x20<project-name>','--stream','push\x20[target]','workspaces\x20[pattern]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','sessions\x20[project]','List\x20jobs','\x20-\x20built\x20','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','allowExcessArguments','Pull\x20campaigns\x20to\x20YAML\x20files','--num\x20<1-10>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Skip\x20confirmation\x20prompts','workflow','Job\x20management\x20commands','use\x20[project]','database','Preview\x20changes\x20without\x20writing\x20files','--include-history','\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','--site\x20<site>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Workspace\x20name','us01','--enriched','senders\x20[pattern]','\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','Show\x20timeline\x20for\x20specific\x20attempt','map','-d,\x20--database\x20<database>','Usage:\x20','_hidden','timeline\x20[project.workflow]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','desc\x20[segment_name]','Campaign\x20name','Show\x20agent\x20details','_list-commands','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','agents\x20[pattern]','update\x20<segment_name>','folders\x20<parent_name>',',\x20version\x20','--priority\x20<-2~2>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','format','--system-prompt\x20<text>','--catalog\x20<catalog>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','commandUsage','--subject\x20<subject>','slice','--kind\x20<type>','init\x20[name]','Create\x20a\x20new\x20LLM\x20project','--behaviors\x20<json>','--delete','llm','view\x20[name]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','--param\x20<key=value>','Arguments:','--json','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','HTML\x20template\x20content','Remove\x20a\x20profile','debug','INFO','clear','--name\x20<new-name>','--workspace\x20<name>','DEBUG','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','tsv','Clear\x20workflow\x20project\x20context','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Read\x20query\x20from\x20file','--include-stats','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','jsonl','commandDescription','commands','--rule-file\x20<file>','--invisible','Workflow\x20attempt\x20management','show\x20<folder_ref>','Request\x20body\x20as\x20JSON\x20string','delete\x20<name>','--database\x20<name>','Workflow\x20session\x20management','Add\x20behaviors\x20from\x20JSON\x20file','--timeout\x20<seconds>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','query\x20[sql]','launch\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','--schedule-type\x20<type>','Authentication\x20management','--stage\x20<name>','tasks','delete\x20<agent-name>','pull\x20<project>\x20[target-dir]','test\x20[path]','create\x20<name>','-f,\x20--file\x20<path>','Set\x20operation\x20timeout\x20in\x20seconds','Skip\x20validation\x20of\x20.dig\x20files','show\x20[segment_name]','Parent\x20segment\x20management','--model\x20<name>','Validate\x20campaign\x20YAML\x20files\x20locally','Skip\x20confirmation\x20prompt','Workflow\x20project\x20management','--add-attributes-file\x20<file>','session','Show\x20email\x20template\x20details','List\x20journeys\x20(alias\x20for\x20journey\x20list)','split','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','show\x20[name]','usage','68eHRNVq','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','campaign','List\x20email\x20senders','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--attempt-id\x20<id>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','argumentDescription','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Run\x20tests\x20for\x20an\x20LLM\x20agent','summary','--from\x20<timestamp>','Show\x20segment\x20schema\x20(column\x20types)','flatMap','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','help','Name\x20for\x20the\x20new\x20project\x20(required)','--no-proxy','Query\x20engine\x20version','--cron\x20<expression>','stringify','Overwrite\x20local\x20changes\x20without\x20confirmation','Include\x20execution\x20statistics','secrets','--folder\x20<name>','statusline','--attribute\x20[name]','--trace','push\x20[path]','--behaviors-file\x20<file>','--timezone\x20<tz>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','job','--interval\x20<range>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','-a,\x20--agent\x20<name>','traffic\x20<name-or-path>','--database\x20<db>','--help','Show\x20job\x20details','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','noColor','--attributes-file\x20<file>','stdout','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','3360RBpBFH','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','options','template','Generate\x20test\x20conversations\x20without\x20evaluation','Table\x20management\x20commands','Email\x20sender\x20ID\x20for\x20delivery','Include\x20retried\x20attempts','Updated\x20description','RT\x202.0\x20configuration\x20management','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Customer\x20group\x20as\x20JSON\x20string','Behaviors\x20from\x20JSON\x20file','registeredArguments','hidden','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','set\x20<args...>','Open\x20segment\x20in\x20web\x20browser','82276JoaWKx','--parent-folder\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','chats','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--data\x20<data>','allowUnknownOption','Email\x20subject\x20template','sql\x20[segment_name]','--retry-limit\x20<0~32>','Maximum\x20number\x20of\x20nodes','retry\x20<session-id>','List\x20all\x20available\x20profiles','--html\x20<html>','grapesjs','--in\x20<database>','Show\x20connection\x20details\x20by\x20name','Output\x20as\x20JSON\x20Lines','Folder\x20name\x20for\x20organization','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--engine-version\x20<version>','replace','Push\x20without\x20confirmation','campaigns\x20[pattern]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','outputHelp','List\x20agents\x20in\x20current\x20project','--skip-validation','Skip\x20population\x20counting','--to\x20<date>','backup\x20<name>','-1d','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','validate\x20[target]','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','argument','Delete\x20an\x20agent','Revision\x20name\x20(default:\x20timestamp)','Agent\x20prompt/instructions','run','--limit\x20<n>','Delete\x20a\x20workspace','Email\x20template\x20management','chat\x20[message...]','repeat','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','153108bCQlVd','--name\x20<text>','--no-count-population','Path\x20is\x20not\x20a\x20directory:\x20','unset\x20<resource>','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','update\x20<agent-name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--in\x20<db>','--no-color','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Include\x20retried\x20attempts\x20(for\x20list)','preview\x20[file]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Query\x20type:\x20trino\x20or\x20hive','Delete\x20a\x20scheduled\x20query','--agent\x20<ref>','Include\x20raw\x20history\x20data\x20in\x20output','logLevel','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Show\x20campaign\x20details','create\x20<parent_name>\x20<folder_name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Read\x20SQL\x20query\x20from\x20file','catch','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--add-behaviors-file\x20<file>','validate\x20[file]','--status\x20<status>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Remove\x20API\x20key\x20from\x20system\x20keychain','LLM\x20agent\x20management','System\x20prompt/instructions\x20(default:\x20empty)','Pull\x20specific\x20revision\x20(default:\x20latest)','set','215juWYlv','--schedule-option\x20<value>','list\x20[path]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','New\x20template\x20name','--revision\x20<revision>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--from\x20<date>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','engage','Create\x20segment\x20folder','result\x20<job-id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','run\x20[name]','connection','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Starter\x20message','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Delete\x20a\x20campaign','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','describe\x20[table]','Pause\x20a\x20campaign','show\x20[table]','--llm-project\x20<name>','addHelpText','Show\x20master\x20table\x20sample\x20data','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Cron\x20expression\x20for\x20scheduling','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Duplicate\x20a\x20campaign','Segment\x20description','Resume\x20a\x20conversation\x20(shows\x20selector)','stats\x20<name-or-path>','--customer-group-file\x20<file>','Show\x20authentication\x20status\x20and\x20current\x20context','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','folder','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','--max-depth\x20<depth>','Describe\x20table\x20schema','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','gitRevision','--email-sender-id\x20<id>','connections','Filtering\x20rule\x20as\x20JSON\x20string','INVALID_ARGUMENT','--add-behaviors\x20<json>','--editor-type\x20<type>','-o,\x20--output\x20<file>','-f,\x20--force','clone\x20[source]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','status','\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','--session-time\x20<time>','padWidth','Follow/watch\x20timeline\x20for\x20running\x20attempts','--name\x20<new_name>','beefree','Update\x20a\x20workspace','Make\x20segment\x20invisible\x20(default:\x20visible)','--result\x20<target>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Database\x20name','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Timezone\x20for\x20cron\x20(default:\x20UTC)','-p,\x20--profile\x20<name>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--max-tool-iterations\x20<n>','Show\x20workspace\x20details','update\x20<name-or-id>','command','optionTerm','columns\x20<name-or-path>','User\x20management\x20commands','padEnd','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--attributes\x20<json>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Create\x20a\x20new\x20profile','join','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','duplicate\x20<name-or-id>','--type\x20<type>','Clear\x20session\x20context','List\x20journeys\x20in\x20current\x20context','Run\x20a\x20scheduled\x20query\x20immediately','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','argumentTerm','[task-name]','List\x20available\x20connector\x20types','alias','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','tables\x20[pattern]','New\x20campaign\x20name','Show\x20segment\x20details\x20(alias\x20for\x20view)','sql\x20[name]','Plaintext\x20template\x20content','Customer\x20group\x20from\x20JSON\x20file','flags','create','--new','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','-o,\x20--output\x20<folder>','configureHelp','--reason\x20<text>','Manage\x20workflow\x20project\x20secrets','pull\x20[name]','site','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','-d,\x20--database\x20<db>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','list\x20[pattern]','user','Personalization\x20service\x20management','[options]\x20--\x20[claude-code-args...]','Parent\x20segment\x20description','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Include\x20subtasks\x20in\x20tasks\x20output','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--full','stderr','kill','--start-at\x20<datetime>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','683930JfzNxS','Master\x20table\x20name','requiredOption','Updated\x20timezone','buildTime','165QoenQK','download\x20<project-name>\x20[output-dir]','-o,\x20--output\x20<dir>','--yes','Directory\x20does\x20not\x20exist:\x20','Read\x20request\x20body\x20from\x20file','Journey\x20version\x20management','Delay\x20in\x20seconds\x20before\x20execution','use\x20[resource]\x20[value]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Update\x20a\x20scheduled\x20query','view\x20[segment_name]','subcommandTerm','submit\x20[query]','directory','error','apiKey','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','preview\x20[name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Update\x20a\x20campaign','action','--job-type\x20<type>','Job\x20priority\x20(-2\x20to\x202)','isTTY','Database\x20name\x20(default:\x20information_schema)','Starting\x20offset\x20(default:\x200)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--verbose','Workspace\x20name\x20(required)','table','-u,\x20--use','50346KWDAhh','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Output\x20file\x20path','Output\x20file\x20path\x20(default:\x20<name>.yml)','description','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','jobs','activations\x20<segment_name>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','GET','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','version','Kill\x20a\x20job','--master','--no-eval','opts','get','Behaviors\x20as\x20JSON\x20string','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','auth','--include-retried','show\x20<name>','Show\x20journey\x20details','--version\x20<number>','AI-native\x20CLI\x20for\x20Treasure\x20Data','0.7','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Version\x20number\x20to\x20view','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Preview\x20operation\x20without\x20executing','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','projects\x20[pattern]','--color','resume\x20<name-or-path>','--to\x20<timestamp>','Limit\x20number\x20of\x20rows','parents\x20[pattern]','Enable\x20verbose\x20logging','List\x20activations\x20for\x20a\x20journey','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--add-attributes\x20<json>','create\x20<name-or-path>','\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','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','-v,\x20--verbose','Retry\x20limit\x20(0\x20to\x2032)','6104XjkpZg','--temperature\x20<n>','Preview\x20changes\x20without\x20pushing','Start\x20a\x20new\x20chat\x20session','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','421876OcCSpY','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','New\x20workspace\x20name','List\x20secret\x20keys\x20for\x20a\x20project','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--jsonl','--type\x20<api_type>','includes','Attempt\x20ID','Pull\x20workflow\x20project\x20to\x20local\x20folder','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Show\x20journey\x20statistics','4095yfdfrG','--tags\x20<tags>','filter','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','tdx','Campaign\x20description','option','--resume-from\x20<task>','--json-columns\x20<cols>','Task\x20name\x20for\x20logs\x20action','Project\x20description','createAsync','--tsv','pull\x20[parent_or_file]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Database\x20to\x20query\x20(default:\x20information_schema)','validate\x20[name]','--follow','Pull\x20child\x20segments\x20to\x20YAML\x20files'];a2_0x4dc1=function(){return _0x649f3b;};return a2_0x4dc1();}workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x35a))[a2_0x46ebb0(0x209)](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command'](a2_0x46ebb0(0x30d))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x313))[a2_0x46ebb0(0x209)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)]('show\x20<name-or-id>')['description'](a2_0x46ebb0(0x1b2))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1e8),a2_0x46ebb0(0x219))[a2_0x46ebb0(0x209)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1d2))[a2_0x46ebb0(0x218)]('Create\x20a\x20workspace')[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2f8),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1a8))['option']('--name\x20<name>',a2_0x46ebb0(0x24c))['option']('--description\x20<desc>',a2_0x46ebb0(0x2d4))[a2_0x46ebb0(0x209)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x46ebb0(0x2c7))['description'](a2_0x46ebb0(0x141))[a2_0x46ebb0(0x25e)]('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)]('use\x20<name>')['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x295))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2c6));deliveryCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x326))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x38f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program['command'](a2_0x46ebb0(0x178))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x5c77f9=>{const _0x271a7a=a2_0x46ebb0,_0x5784a7=new ConnectionListCommand(),_0x53f018=program[_0x271a7a(0x224)](),_0x38112c=await createTDXInstance(_0x53f018),_0x4284d5=await _0x5784a7[_0x271a7a(0x13f)]({'options':{..._0x53f018,..._0x5c77f9},'args':[],'tdx':_0x38112c});gracefulExit(_0x4284d5);};connectionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x306))[a2_0x46ebb0(0x218)]('List\x20all\x20data\x20connections')['action'](connectionListAction),program['command'](a2_0x46ebb0(0x198),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x164))[a2_0x46ebb0(0x209)](connectionListAction),connectionCmd[a2_0x46ebb0(0x1b4)]('show\x20<name>')['description'](a2_0x46ebb0(0x128))[a2_0x46ebb0(0x209)](async(_0x1be678,_0x3f75a8)=>{const _0x2260bf=a2_0x46ebb0,_0x493d4e=new ConnectionShowCommand(),_0x151e45=program[_0x2260bf(0x224)](),_0x59406e=await createTDXInstance(_0x151e45),_0x369418=await _0x493d4e[_0x2260bf(0x13f)]({'options':{..._0x151e45,..._0x3f75a8},'args':[_0x1be678],'tdx':_0x59406e});gracefulExit(_0x369418);}),connectionCmd['command']('schema\x20<type>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x227))[a2_0x46ebb0(0x209)](async(_0x209b09,_0xab87e3)=>{const _0x357c65=a2_0x46ebb0,_0x5ebab2=new ConnectionSchemaCommand(),_0x3e0b82=program[_0x357c65(0x224)](),_0x1521d4=await createTDXInstance(_0x3e0b82),_0x136400=await _0x5ebab2[_0x357c65(0x13f)]({'options':{..._0x3e0b82,..._0xab87e3},'args':[_0x209b09],'tdx':_0x1521d4});gracefulExit(_0x136400);}),connectionCmd[a2_0x46ebb0(0x1b4)]('types')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c7))[a2_0x46ebb0(0x209)](async _0x290980=>{const _0x324891=a2_0x46ebb0,_0x48f3c2=new ConnectionTypesCommand(),_0x41090a=program[_0x324891(0x224)](),_0x3b17d0=await createTDXInstance(_0x41090a),_0x399f74=await _0x48f3c2[_0x324891(0x13f)]({'options':{..._0x41090a,..._0x290980},'args':[],'tdx':_0x3b17d0});gracefulExit(_0x399f74);}),connectionCmd['command']('settings\x20<type>')[a2_0x46ebb0(0x218)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x46ebb0(0x209)](async(_0x420067,_0x38f3f9)=>{const _0x5b9f52=a2_0x46ebb0,_0x315c11=new ConnectionSettingsCommand(),_0x457160=program[_0x5b9f52(0x224)](),_0x4d69e8=await createTDXInstance(_0x457160),_0x5ea55b=await _0x315c11[_0x5b9f52(0x13f)]({'options':{..._0x457160,..._0x38f3f9},'args':[_0x420067],'tdx':_0x4d69e8});gracefulExit(_0x5ea55b);});const journeyCmd=program[a2_0x46ebb0(0x1b4)]('journey')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1ca)),journeyListAction=async(_0x2ae079,_0x588c49)=>{const _0x393cd8=a2_0x46ebb0,_0x1a3753=new JourneyListCommand(),_0x218fc5=program[_0x393cd8(0x224)](),_0x444437=await createTDXInstance(_0x218fc5),_0x2bd4ca=await _0x1a3753[_0x393cd8(0x13f)]({'options':{..._0x218fc5,..._0x588c49},'args':_0x2ae079?[_0x2ae079]:[],'tdx':_0x444437});gracefulExit(_0x2bd4ca);};journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c2))['action'](journeyListAction),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x26b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x22b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x288),'Open\x20journey\x20in\x20web\x20browser')['option'](a2_0x46ebb0(0x35e),a2_0x46ebb0(0x3a4))[a2_0x46ebb0(0x209)](async(_0x4fcc54,_0x171c78)=>{const _0x2edb4b=a2_0x46ebb0,_0x1218ac=new JourneyViewCommand(),_0x3a0679=program[_0x2edb4b(0x224)](),_0xd61276=await createTDXInstance(_0x3a0679),_0x23787d=await _0x1218ac[_0x2edb4b(0x13f)]({'options':{..._0x3a0679,..._0x171c78},'args':[_0x4fcc54],'tdx':_0xd61276});gracefulExit(_0x23787d);}),journeyCmd['command'](a2_0x46ebb0(0x18a))['description'](a2_0x46ebb0(0x257))['option'](a2_0x46ebb0(0x373),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x46ebb0(0x25e)]('--from\x20<date>',a2_0x46ebb0(0x26d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x135),a2_0x46ebb0(0x396))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x31e),a2_0x46ebb0(0x158))['action'](async(_0x52ed88,_0x2fd6a4)=>{const _0x246b6d=a2_0x46ebb0,_0x31dfdf=new JourneyStatsCommand(),_0x3ca389=program[_0x246b6d(0x224)](),_0x4a0188=await createTDXInstance(_0x3ca389),_0x31e8c1=await _0x31dfdf[_0x246b6d(0x13f)]({'options':{..._0x3ca389,..._0x2fd6a4},'args':[_0x52ed88],'tdx':_0x4a0188});gracefulExit(_0x31e8c1);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0xfc))['description']('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')['option'](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x115))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x171),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x135),a2_0x46ebb0(0x396))['option'](a2_0x46ebb0(0x2b4),a2_0x46ebb0(0x122),_0x2202a2=>{const _0x16a297=a2_0x46ebb0,_0x43a6c6=parseInt(_0x2202a2,0xa);if(isNaN(_0x43a6c6))throw new Error(_0x16a297(0x27a)+_0x2202a2+_0x16a297(0x300));return _0x43a6c6;})[a2_0x46ebb0(0x209)](async(_0x41a8ff,_0x596f85)=>{const _0x45174e=a2_0x46ebb0,_0x46431c=new JourneyTrafficCommand(),_0x7648a7=program[_0x45174e(0x224)](),_0x4d1a96=await createTDXInstance(_0x7648a7),_0x30f945=await _0x46431c[_0x45174e(0x13f)]({'options':{..._0x7648a7,..._0x596f85},'args':[_0x41a8ff],'tdx':_0x4d1a96});gracefulExit(_0x30f945);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2a6))['description']('Pause\x20a\x20running\x20journey')[a2_0x46ebb0(0x209)](async(_0x1619d6,_0x50fc29)=>{const _0x4ae47e=a2_0x46ebb0,_0x376ba0=new JourneyPauseCommand(),_0x35c403=program[_0x4ae47e(0x224)](),_0x3cd35b=await createTDXInstance(_0x35c403),_0x1e1b32=await _0x376ba0[_0x4ae47e(0x13f)]({'options':{..._0x35c403,..._0x50fc29},'args':[_0x1619d6],'tdx':_0x3cd35b});gracefulExit(_0x1e1b32);}),journeyCmd['command'](a2_0x46ebb0(0x236))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2a9))['action'](async(_0xd8ae1e,_0x1895b9)=>{const _0x21a9ad=a2_0x46ebb0,_0x390e54=new JourneyResumeCommand(),_0x34e816=program['opts'](),_0x422b5f=await createTDXInstance(_0x34e816),_0x2c886a=await _0x390e54[_0x21a9ad(0x13f)]({'options':{..._0x34e816,..._0x1895b9},'args':[_0xd8ae1e],'tdx':_0x422b5f});gracefulExit(_0x2c886a);}),journeyCmd[a2_0x46ebb0(0x1b4)]('pull\x20[name]')[a2_0x46ebb0(0x218)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x46ebb0(0x209)](async(_0x4b8283,_0x537535)=>{const _0x19d566=a2_0x46ebb0,_0x13dfb8=new JourneyPullCommand(),_0x2ba9e3=program[_0x19d566(0x224)](),_0x3fc72a=await createTDXInstance(_0x2ba9e3),_0x28887b=await _0x13dfb8[_0x19d566(0x13f)]({'options':{..._0x2ba9e3,..._0x537535},'args':_0x4b8283?[_0x4b8283]:[],'tdx':_0x3fc72a});gracefulExit(_0x28887b);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x30c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2ce))[a2_0x46ebb0(0x209)](async(_0x3d6df7,_0x4a3c89)=>{const _0x26d6c6=a2_0x46ebb0,_0x8a5e1d=new JourneyPushCommand(),_0x5a067a=program[_0x26d6c6(0x224)](),_0x4d5372=await createTDXInstance(_0x5a067a),_0x5930d1=await _0x8a5e1d[_0x26d6c6(0x13f)]({'options':{..._0x5a067a,..._0x4a3c89},'args':_0x3d6df7?[_0x3d6df7]:[],'tdx':_0x4d5372});gracefulExit(_0x5930d1);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b6))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2e9))[a2_0x46ebb0(0x209)](async(_0x26eca6,_0x17af87)=>{const _0x4b0b02=a2_0x46ebb0,_0x133a3c=new JourneyColumnsCommand(),_0x3f40b2=program[_0x4b0b02(0x224)](),_0x5e8be9=await createTDXInstance(_0x3f40b2),_0x28df21=await _0x133a3c['run']({'options':{..._0x3f40b2,..._0x17af87},'args':[_0x26eca6],'tdx':_0x5e8be9});gracefulExit(_0x28df21);}),journeyCmd['command']('activations\x20<name-or-path>')['description'](a2_0x46ebb0(0x23b))[a2_0x46ebb0(0x209)](async(_0x2513c2,_0x1ae7b9)=>{const _0x474e05=a2_0x46ebb0,_0xee10ae=new JourneyActivationsCommand(),_0x2d7463=program[_0x474e05(0x224)](),_0x29e9cd=await createTDXInstance(_0x2d7463),_0x3bebd0=await _0xee10ae[_0x474e05(0x13f)]({'options':{..._0x2d7463,..._0x1ae7b9},'args':[_0x2513c2],'tdx':_0x29e9cd});gracefulExit(_0x3bebd0);}),journeyCmd['command'](a2_0x46ebb0(0x2ee))['description'](a2_0x46ebb0(0x2d6))[a2_0x46ebb0(0x209)](async(_0x13540f,_0x2f104f)=>{const _0x306ed8=a2_0x46ebb0,_0xfbbd4b=new JourneyVersionsCommand(),_0x399ecf=program[_0x306ed8(0x224)](),_0x3297e5=await createTDXInstance(_0x399ecf),_0xa5aa82=await _0xfbbd4b[_0x306ed8(0x13f)]({'options':{..._0x399ecf,..._0x2f104f},'args':[_0x13540f],'tdx':_0x3297e5});gracefulExit(_0xa5aa82);});const journeyVersionCmd=journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x220))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1f8));journeyVersionCmd['command'](a2_0x46ebb0(0x23e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x333))['action'](async(_0x408392,_0x2e698a)=>{const _0x365df2=a2_0x46ebb0,_0x25d057=new JourneyVersionCreateCommand(),_0x11eae3=program[_0x365df2(0x224)](),_0x21d374=await createTDXInstance(_0x11eae3),_0x2e7360=await _0x25d057[_0x365df2(0x13f)]({'options':{..._0x11eae3,..._0x2e698a},'args':[_0x408392],'tdx':_0x21d374});gracefulExit(_0x2e7360);}),journeyVersionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x26b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x281))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x22c),a2_0x46ebb0(0x230))['action'](async(_0x3dc930,_0xf5a784)=>{const _0x4eb93e=a2_0x46ebb0,_0x81f9fe=new JourneyVersionViewCommand(),_0x44afba=program[_0x4eb93e(0x224)](),_0xf2446a=await createTDXInstance(_0x44afba),_0x183416=await _0x81f9fe[_0x4eb93e(0x13f)]({'options':{..._0x44afba,..._0xf5a784},'args':[_0x3dc930],'tdx':_0xf2446a});gracefulExit(_0x183416);}),journeyCmd[a2_0x46ebb0(0x1b4)]('validate\x20[target]')[a2_0x46ebb0(0x218)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x46ebb0(0x209)](async(_0x2e51e8,_0x10b848)=>{const _0x57d13b=a2_0x46ebb0,_0x2ecea7=new JourneyValidateCommand(),_0x400f18=program['opts'](),_0x1f0e37=await createTDXInstance(_0x400f18),_0x458bfd=await _0x2ecea7[_0x57d13b(0x13f)]({'options':{..._0x400f18,..._0x10b848},'args':_0x2e51e8?[_0x2e51e8]:[],'tdx':_0x1f0e37});gracefulExit(_0x458bfd);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2d9))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x385))[a2_0x46ebb0(0x209)](journeyListAction);const agentSyncCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x298))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x166));agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2ac))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b8))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1f4),a2_0x46ebb0(0x27d))[a2_0x46ebb0(0x25e)]('-f,\x20--force',a2_0x46ebb0(0x3a3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3b2),a2_0x46ebb0(0x2d8))[a2_0x46ebb0(0x209)](async(_0x571f6a,_0x58f133,_0x3bc1b5)=>{const _0x30ecb0=a2_0x46ebb0,_0x273bf0=new AgentPullCommand(),_0x29c896=program[_0x30ecb0(0x224)](),_0x447d1b=await createTDXInstance(_0x29c896),_0x1b839b=[];if(_0x571f6a)_0x1b839b[_0x30ecb0(0x2fb)](_0x571f6a);if(_0x58f133)_0x1b839b[_0x30ecb0(0x2fb)](_0x58f133);const _0x1a2a2e=await _0x273bf0[_0x30ecb0(0x13f)]({'options':{..._0x29c896,..._0x3bc1b5},'args':_0x1b839b,'tdx':_0x447d1b});gracefulExit(_0x1a2a2e);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3aa))['description'](a2_0x46ebb0(0x2cb))['option'](a2_0x46ebb0(0x19e),a2_0x46ebb0(0x12e))[a2_0x46ebb0(0x209)](async(_0x3c84e2,_0x496ca7)=>{const _0x7c4050=a2_0x46ebb0,_0xaa18d=new AgentPushCommand(),_0x1d4627=program[_0x7c4050(0x224)](),_0x141edd=await createTDXInstance(_0x1d4627),_0x1f5328=await _0xaa18d[_0x7c4050(0x13f)]({'options':{..._0x1d4627,..._0x496ca7},'args':_0x3c84e2?[_0x3c84e2]:[],'tdx':_0x141edd});gracefulExit(_0x1f5328);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x19f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x289))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ff),a2_0x46ebb0(0x39e))[a2_0x46ebb0(0x209)](async(_0x535830,_0x538950)=>{const _0x24becc=a2_0x46ebb0,_0xe95604=new AgentCloneCommand(),_0xdaf732=program[_0x24becc(0x224)](),_0x151fd4=await createTDXInstance(_0xdaf732),_0x38ca76=await _0xe95604[_0x24becc(0x13f)]({'options':{..._0xdaf732,..._0x538950},'args':_0x535830?[_0x535830]:[],'tdx':_0x151fd4});gracefulExit(_0x38ca76);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x377))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x397))[a2_0x46ebb0(0x25e)]('--name\x20<names>',a2_0x46ebb0(0x2f7))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x259),a2_0x46ebb0(0x36d))['option']('--dry-run',a2_0x46ebb0(0x2c3))['option'](a2_0x46ebb0(0x223),a2_0x46ebb0(0x10a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2b9),a2_0x46ebb0(0x248))[a2_0x46ebb0(0x209)](async(_0xf8cae6,_0x8abd1b)=>{const _0x9befac=a2_0x46ebb0,_0x55757=new AgentTestCommand(),_0x3e2687=program['opts'](),_0x49dd37=await createTDXInstance(_0x3e2687),_0x5bb7c2=await _0x55757[_0x9befac(0x13f)]({'options':{..._0x3e2687,..._0x8abd1b},'args':_0xf8cae6?[_0xf8cae6]:[],'tdx':_0x49dd37});gracefulExit(_0x5bb7c2);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))['description'](a2_0x46ebb0(0x132))[a2_0x46ebb0(0x209)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x331))[a2_0x46ebb0(0x209)](async(_0x28d308,_0x5cbdb6)=>{const _0x16d64f=a2_0x46ebb0,_0x18ac04=new LLMAgentShowCommand(),_0x5c312d=program['opts'](),_0x7fff50=await createTDXInstance(_0x5c312d),_0x316e9f=await _0x18ac04[_0x16d64f(0x13f)]({'options':{..._0x5c312d,..._0x5cbdb6},'args':[_0x28d308],'tdx':_0x7fff50});gracefulExit(_0x316e9f);}),agentSyncCmd[a2_0x46ebb0(0x1b4)]('create\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1bb))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x33c),a2_0x46ebb0(0x167))['option'](a2_0x46ebb0(0x37e),a2_0x46ebb0(0x12b),'claude-4.5-sonnet')[a2_0x46ebb0(0x25e)]('--starter-message\x20<text>',a2_0x46ebb0(0x17a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1b1),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x46ebb0(0x244),a2_0x46ebb0(0x1e7),a2_0x46ebb0(0x22e))[a2_0x46ebb0(0x209)](async(_0x9a2eb8,_0xa11237)=>{const _0x23a56f=a2_0x46ebb0,_0xaed8b4=new LLMAgentCreateCommand(),_0x1c8274=program[_0x23a56f(0x224)](),_0x4d8ce5=await createTDXInstance(_0x1c8274),_0xcf1508=await _0xaed8b4[_0x23a56f(0x13f)]({'options':{..._0x1c8274,..._0xa11237},'args':[_0x9a2eb8],'tdx':_0x4d8ce5});gracefulExit(_0xcf1508);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x14d))['description'](a2_0x46ebb0(0x302))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x148),a2_0x46ebb0(0x27b))[a2_0x46ebb0(0x25e)]('--prompt\x20<text>',a2_0x46ebb0(0x13e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),a2_0x46ebb0(0x2c2))['option']('--starter-message\x20<text>',a2_0x46ebb0(0x17a))[a2_0x46ebb0(0x209)](async(_0xdde51b,_0x301016)=>{const _0x2c98ae=a2_0x46ebb0,_0x9c66e8=new LLMAgentUpdateCommand(),_0x2c26da=program['opts'](),_0x3b1f74=await createTDXInstance(_0x2c26da),_0x213901=await _0x9c66e8[_0x2c98ae(0x13f)]({'options':{..._0x2c26da,..._0x301016},'args':[_0xdde51b],'tdx':_0x3b1f74});gracefulExit(_0x213901);}),agentSyncCmd['command'](a2_0x46ebb0(0x375))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x13c))[a2_0x46ebb0(0x209)](async(_0x523b46,_0x1640ac)=>{const _0x510266=a2_0x46ebb0,_0x288502=new LLMAgentDeleteCommand(),_0x432027=program[_0x510266(0x224)](),_0xa1eafd=await createTDXInstance(_0x432027),_0x46c10a=await _0x288502[_0x510266(0x13f)]({'options':{..._0x432027,..._0x1640ac},'args':[_0x523b46],'tdx':_0xa1eafd});gracefulExit(_0x46c10a);}),program['command'](a2_0x46ebb0(0x332),{'hidden':!![]})[a2_0x46ebb0(0x209)](()=>{const _0x42ecbf=a2_0x46ebb0;function _0x2fcccf(_0x2ec6c8,_0x926f00){const _0x44ca18=a2_0x17f4,_0x2c6033=[];for(const _0x542605 of _0x2ec6c8[_0x44ca18(0x362)]){if(_0x542605['_hidden'])continue;const _0x28a7c7=_0x926f00?_0x926f00+'\x20'+_0x542605[_0x44ca18(0x271)]():_0x542605[_0x44ca18(0x271)](),_0x373ee9=_0x28a7c7[_0x44ca18(0x386)]('\x20')[0x0],_0x334bdd=COMMAND_CATEGORIES['find'](_0x1811e4=>_0x1811e4[_0x44ca18(0x362)]['includes'](_0x373ee9)),_0x1566a2=_0x334bdd?.[_0x44ca18(0x271)]??'';if(_0x542605['commands'][_0x44ca18(0x2cc)]>0x0)_0x2c6033['push'](..._0x2fcccf(_0x542605,_0x28a7c7));else{const _0x28e42d=(_0x542605[_0x44ca18(0x113)]||[])[_0x44ca18(0x329)](_0x40b7e7=>{const _0xa4bc68=_0x44ca18,_0x1118bc=_0x40b7e7['variadic']?_0x40b7e7[_0xa4bc68(0x271)]()+'...':_0x40b7e7[_0xa4bc68(0x271)]();return _0x40b7e7['required']?'<'+_0x1118bc+'>':'['+_0x1118bc+']';})[_0x44ca18(0x1bd)]('\x20'),_0x435c44=_0x542605[_0x44ca18(0x108)][_0x44ca18(0x25a)](_0x2ef2e8=>!_0x2ef2e8[_0x44ca18(0x114)]&&_0x2ef2e8['long']!==_0x44ca18(0xfe))[_0x44ca18(0x329)](_0x6e8133=>({'flags':_0x6e8133[_0x44ca18(0x1d1)],'description':_0x6e8133[_0x44ca18(0x218)]}));_0x2c6033[_0x44ca18(0x2fb)]({'name':_0x28a7c7,'description':_0x542605['description'](),'group':_0x1566a2,'usage':_0x28e42d,'options':_0x435c44});}}return _0x2c6033;}console[_0x42ecbf(0x2eb)](JSON[_0x42ecbf(0x3a2)](_0x2fcccf(program,''))),process[_0x42ecbf(0x2a4)](0x0);});export{program};export function runCLI(){const _0x3734a0=a2_0x46ebb0,_0x2a1b11=!process[_0x3734a0(0x26c)][_0x3734a0(0x342)](0x2)['length'];showBriefHelp=_0x2a1b11,program[_0x3734a0(0x2fc)](process[_0x3734a0(0x26c)]);_0x2a1b11&&program['outputHelp']();if(process[_0x3734a0(0x1e9)]['isTTY']&&process[_0x3734a0(0x26c)]['length']>0x2&&!isDevVersion()){const _0x43e1d2=loadReleaseChannel();checkForUpdate(currentVersion,_0x43e1d2)['then'](_0x1ae7e6=>{_0x1ae7e6&&displayUpdateNotification(_0x1ae7e6);})[_0x3734a0(0x15f)](()=>{});}}