@treasuredata/tdx 2026.4.11 → 2026.4.12

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 (232) 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/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.d.ts +1 -0
  68. package/dist/core/profile.d.ts.map +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/profile.js.map +1 -1
  71. package/dist/core/project-config.js +1 -1
  72. package/dist/core/session.js +1 -1
  73. package/dist/core/user-cache.js +1 -1
  74. package/dist/core/version.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/mcp/server.js +1 -1
  77. package/dist/mcp/tools/index.js +1 -1
  78. package/dist/mcp/tools/tdx-run.js +1 -1
  79. package/dist/mcp/tools/tdx-search.js +1 -1
  80. package/dist/mcp/tools/work-create-item.js +1 -1
  81. package/dist/mcp/utils.js +1 -1
  82. package/dist/proxy/claude-usage-tracker.js +1 -1
  83. package/dist/proxy/passthrough-server.js +1 -1
  84. package/dist/proxy/sse-usage-parser.js +1 -1
  85. package/dist/sdk/agent/agent-config.js +1 -1
  86. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  87. package/dist/sdk/agent/agent-yaml.js +1 -1
  88. package/dist/sdk/agent/test/evaluator.js +1 -1
  89. package/dist/sdk/agent/test/executor.js +1 -1
  90. package/dist/sdk/agent/test/index.js +1 -1
  91. package/dist/sdk/agent/test/output.js +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/tool-target-registry.js +1 -1
  94. package/dist/sdk/api.js +1 -1
  95. package/dist/sdk/cas/cas-api-client.js +1 -1
  96. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  97. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  98. package/dist/sdk/cas/index.js +1 -1
  99. package/dist/sdk/cas/pull-workflow.js +1 -1
  100. package/dist/sdk/cas/push-workflow.js +1 -1
  101. package/dist/sdk/client/cdp-api-client.js +1 -1
  102. package/dist/sdk/client/delivery-api-client.js +1 -1
  103. package/dist/sdk/client/endpoints.js +1 -1
  104. package/dist/sdk/client/engage-api-client.js +1 -1
  105. package/dist/sdk/client/http-client.js +1 -1
  106. package/dist/sdk/client/llm-api-client.js +1 -1
  107. package/dist/sdk/client/oauth-refresh.js +1 -1
  108. package/dist/sdk/client/rate-limiter.js +1 -1
  109. package/dist/sdk/client/td-api-client.js +1 -1
  110. package/dist/sdk/client/trino-api-client.js +1 -1
  111. package/dist/sdk/client/workflow-client.js +1 -1
  112. package/dist/sdk/connection-validator.js +1 -1
  113. package/dist/sdk/connection.js +1 -1
  114. package/dist/sdk/delivery.js +1 -1
  115. package/dist/sdk/engage/campaign-pull.js +1 -1
  116. package/dist/sdk/engage/campaign-push.js +1 -1
  117. package/dist/sdk/engage/campaign-validator.js +1 -1
  118. package/dist/sdk/engage/campaign-yaml.js +1 -1
  119. package/dist/sdk/engage/template-pull.js +1 -1
  120. package/dist/sdk/engage/template-push.js +1 -1
  121. package/dist/sdk/engage/template-validator.js +1 -1
  122. package/dist/sdk/engage/template-yaml.js +1 -1
  123. package/dist/sdk/engage/types/campaign-def.js +1 -1
  124. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  125. package/dist/sdk/engage/types/template-schema.js +1 -1
  126. package/dist/sdk/engage.js +1 -1
  127. package/dist/sdk/errors.js +1 -1
  128. package/dist/sdk/index.js +1 -1
  129. package/dist/sdk/io/index.js +1 -1
  130. package/dist/sdk/io/node-filesystem.js +1 -1
  131. package/dist/sdk/job.js +1 -1
  132. package/dist/sdk/journey.d.ts +6 -0
  133. package/dist/sdk/journey.d.ts.map +1 -1
  134. package/dist/sdk/journey.js +1 -1
  135. package/dist/sdk/journey.js.map +1 -1
  136. package/dist/sdk/llm/chat-cache.js +1 -1
  137. package/dist/sdk/llm/index.js +1 -1
  138. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  139. package/dist/sdk/llm/model-factors.js +1 -1
  140. package/dist/sdk/personalization.js +1 -1
  141. package/dist/sdk/policy.js +1 -1
  142. package/dist/sdk/query/index.js +1 -1
  143. package/dist/sdk/query/sql-parser.js +1 -1
  144. package/dist/sdk/realtime.js +1 -1
  145. package/dist/sdk/schedule.js +1 -1
  146. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  147. package/dist/sdk/segment/fields-display.js +1 -1
  148. package/dist/sdk/segment/file-discovery.js +1 -1
  149. package/dist/sdk/segment/journey-utils.js +1 -1
  150. package/dist/sdk/segment/journey-validator.js +1 -1
  151. package/dist/sdk/segment/journey-yaml.js +1 -1
  152. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  153. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/pull-workflow.js +1 -1
  155. package/dist/sdk/segment/push-recovery.js +1 -1
  156. package/dist/sdk/segment/push-workflow.js +1 -1
  157. package/dist/sdk/segment/resolution-context.js +1 -1
  158. package/dist/sdk/segment/segment-path-parser.js +1 -1
  159. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  160. package/dist/sdk/segment/segment-validator.js +1 -1
  161. package/dist/sdk/segment/target-resolution.js +1 -1
  162. package/dist/sdk/segment/tdx-config.js +1 -1
  163. package/dist/sdk/segment/types/activation-schema.js +1 -1
  164. package/dist/sdk/segment/types/journey-def.js +1 -1
  165. package/dist/sdk/segment/types/journey-schema.js +1 -1
  166. package/dist/sdk/segment/types/segment-def.js +1 -1
  167. package/dist/sdk/segment/types/segment-schema.js +1 -1
  168. package/dist/sdk/segment/validate-files.js +1 -1
  169. package/dist/sdk/segment/yaml-validator.js +1 -1
  170. package/dist/sdk/segment.js +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/progress.js +1 -1
  173. package/dist/sdk/types/workspace.d.ts +2 -0
  174. package/dist/sdk/types/workspace.d.ts.map +1 -1
  175. package/dist/sdk/types/workspace.js +1 -1
  176. package/dist/sdk/user.js +1 -1
  177. package/dist/sdk/util/format-detector.js +1 -1
  178. package/dist/sdk/util/formatters.js +1 -1
  179. package/dist/sdk/util/index.js +1 -1
  180. package/dist/sdk/util/paginate.js +1 -1
  181. package/dist/sdk/util/tree-formatter.js +1 -1
  182. package/dist/sdk/workflow/archive-validation.js +1 -1
  183. package/dist/sdk/workflow/clone-workflow.js +1 -1
  184. package/dist/sdk/workflow/index.js +1 -1
  185. package/dist/sdk/workflow/pull-workflow.js +1 -1
  186. package/dist/sdk/workflow/push-workflow.js +1 -1
  187. package/dist/sdk/workflow/tdx-config.js +1 -1
  188. package/dist/sdk/workflow/workflow-utils.js +1 -1
  189. package/dist/sdk/workspace/access-tracker.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.d.ts.map +1 -1
  193. package/dist/sdk/workspace/index.js +1 -1
  194. package/dist/sdk/workspace/index.js.map +1 -1
  195. package/dist/sdk/workspace/templates.d.ts.map +1 -1
  196. package/dist/sdk/workspace/templates.js +1 -1
  197. package/dist/sdk/workspace/templates.js.map +1 -1
  198. package/dist/sdk/workspace/weekly.js +1 -1
  199. package/dist/sdk/workspace/wikilinks.js +1 -1
  200. package/dist/test-utils/command-runner.js +1 -1
  201. package/dist/test-utils/factories.js +1 -1
  202. package/dist/test-utils/fixtures.js +1 -1
  203. package/dist/test-utils/http-mock.js +1 -1
  204. package/dist/test-utils/index.js +1 -1
  205. package/dist/utils/async.js +1 -1
  206. package/dist/utils/colors.js +1 -1
  207. package/dist/utils/diff.js +1 -1
  208. package/dist/utils/file-permissions.js +1 -1
  209. package/dist/utils/file-reader.js +1 -1
  210. package/dist/utils/github-releases.js +1 -1
  211. package/dist/utils/global-cache.js +1 -1
  212. package/dist/utils/json-loader.js +1 -1
  213. package/dist/utils/local-cache.js +1 -1
  214. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  215. package/dist/utils/logger/formatters/index.js +1 -1
  216. package/dist/utils/logger/handlers/console-handler.js +1 -1
  217. package/dist/utils/logger/handlers/file-handler.js +1 -1
  218. package/dist/utils/logger/handlers/index.js +1 -1
  219. package/dist/utils/logger/handlers/null-handler.js +1 -1
  220. package/dist/utils/logger/index.js +1 -1
  221. package/dist/utils/logger/logger.js +1 -1
  222. package/dist/utils/logger/types.js +1 -1
  223. package/dist/utils/option-validation.js +1 -1
  224. package/dist/utils/process.js +1 -1
  225. package/dist/utils/prompt.js +1 -1
  226. package/dist/utils/spinner.js +1 -1
  227. package/dist/utils/sse-parser.js +1 -1
  228. package/dist/utils/string-utils.js +1 -1
  229. package/dist/utils/table-ref-parser.js +1 -1
  230. package/dist/utils/tdx-logger.js +1 -1
  231. package/dist/utils/version-check.js +1 -1
  232. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3547a0=a2_0x39b3;(function(_0xef3bcf,_0x3b0f84){const _0x2fc1c7=a2_0x39b3,_0x29b173=_0xef3bcf();while(!![]){try{const _0x4ef9d2=parseInt(_0x2fc1c7(0x476))/0x1+parseInt(_0x2fc1c7(0x1e9))/0x2+-parseInt(_0x2fc1c7(0x217))/0x3*(-parseInt(_0x2fc1c7(0x2a3))/0x4)+parseInt(_0x2fc1c7(0x42e))/0x5+parseInt(_0x2fc1c7(0x33c))/0x6+-parseInt(_0x2fc1c7(0x200))/0x7*(parseInt(_0x2fc1c7(0x1bc))/0x8)+-parseInt(_0x2fc1c7(0x37c))/0x9*(parseInt(_0x2fc1c7(0x4b2))/0xa);if(_0x4ef9d2===_0x3b0f84)break;else _0x29b173['push'](_0x29b173['shift']());}catch(_0x421f66){_0x29b173['push'](_0x29b173['shift']());}}}(a2_0x4e7d,0x66ba1));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,PSRtJnListCommand,PSRtJnPauseCommand,PSRtJnResumeCommand,PSRtConfigVersionCommand,PSPzServiceListCommand,PSPzServiceCreateCommand,PSPzServiceShowCommand,PSPzServiceDeleteCommand,PSPzServiceUpdateCommand,PSPzServiceTokenCreateCommand,PSPzServiceTokenDeleteCommand,PSPzListCommand,PSPzShowCommand,PSPzDeleteCommand,PSPzCreateCommand,PSPzPatchCommand,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,WorkflowSchedulesCommand,WorkflowScheduleEnableCommand,WorkflowScheduleDisableCommand}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,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,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{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-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,ProfileDeleteCommand,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{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-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_0x3547a0(0x266)][a2_0x3547a0(0x23e)]('--version')){let versionOutput=a2_0x3547a0(0x4bf)+currentVersion;buildInfo[a2_0x3547a0(0x367)]&&!currentVersion[a2_0x3547a0(0x23e)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x3547a0(0x367)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x3547a0(0x380)+buildInfo[a2_0x3547a0(0x371)]),console[a2_0x3547a0(0x20c)](versionOutput),process[a2_0x3547a0(0x343)](0x0);}const program=new Command();export function mergeCommandOptions(_0x52dba9,_0x15096d){const _0x326350=a2_0x3547a0,_0xe71ece={..._0x52dba9};for(const [_0x5eff63,_0x11e2ba]of Object[_0x326350(0x26f)](_0x15096d)){_0x11e2ba!==undefined&&(_0xe71ece[_0x5eff63]=_0x11e2ba);}return _0xe71ece;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x3547a0(0x367)]&&!currentVersion[a2_0x3547a0(0x23e)](buildInfo['gitRevision'])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x3547a0(0x367)]+')':description+=a2_0x3547a0(0x3e7)+currentVersion;program[a2_0x3547a0(0x391)](a2_0x3547a0(0x257))[a2_0x3547a0(0x1cf)](description),program[a2_0x3547a0(0x381)]('-C,\x20--directory\x20<path>','Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1f1),a2_0x3547a0(0x268))['option'](a2_0x3547a0(0x357),'TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x3547a0(0x38f))['option'](a2_0x3547a0(0x23b),a2_0x3547a0(0x26e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x30a),a2_0x3547a0(0x3cc))[a2_0x3547a0(0x381)](a2_0x3547a0(0x23a),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2e4),a2_0x3547a0(0x48f))[a2_0x3547a0(0x381)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2a7),'Save\x20output\x20to\x20file')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2fb),a2_0x3547a0(0x31b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x309),a2_0x3547a0(0x3c9),![])[a2_0x3547a0(0x381)](a2_0x3547a0(0x47b),a2_0x3547a0(0x490),![])[a2_0x3547a0(0x381)]('-v,\x20--verbose',a2_0x3547a0(0x280),![])[a2_0x3547a0(0x381)](a2_0x3547a0(0x39c),a2_0x3547a0(0x413))[a2_0x3547a0(0x381)](a2_0x3547a0(0x45b),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x300),a2_0x3547a0(0x46f),'30')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),'Preview\x20operation\x20without\x20executing',![])[a2_0x3547a0(0x381)]('-y,\x20--yes',a2_0x3547a0(0x26b),![])[a2_0x3547a0(0x381)](a2_0x3547a0(0x2f2),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')['option'](a2_0x3547a0(0x454),a2_0x3547a0(0x4b3))[a2_0x3547a0(0x381)](a2_0x3547a0(0x227),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x3547a0(0x354)]({'formatHelp':(_0x42c3b0,_0x46a8f0)=>{const _0x33d4c5=a2_0x3547a0,_0x2be283=_0x46a8f0[_0x33d4c5(0x20f)](_0x42c3b0,_0x46a8f0),_0x59c605=0x2,_0x1f0e9b=0x2;function _0x38d260(_0x1de507){const _0x42277f=_0x33d4c5,_0xbe2bdf=_0x1de507;return!!(_0xbe2bdf['_hidden']||_0xbe2bdf[_0x42277f(0x1a7)]);}function _0x343bf4(_0x159994,_0x4d1675){const _0x1ffb08=_0x33d4c5;if(_0x4d1675){const _0x54fe7f=''+_0x159994[_0x1ffb08(0x305)](_0x2be283+_0x1f0e9b)+_0x4d1675;return _0x54fe7f;}return _0x159994;}function _0x580311(_0x129b0d){const _0x1de9ec=_0x33d4c5;return _0x129b0d[_0x1de9ec(0x245)]('\x0a')['replace'](/^/gm,'\x20'[_0x1de9ec(0x30d)](_0x59c605));}const _0x34ccc4=[];_0x34ccc4[_0x33d4c5(0x494)](_0x33d4c5(0x3f8)+_0x46a8f0[_0x33d4c5(0x327)](_0x42c3b0));const _0x5602c0=_0x46a8f0['commandDescription'](_0x42c3b0);_0x5602c0&&(_0x34ccc4['push'](''),_0x34ccc4[_0x33d4c5(0x494)](_0x5602c0));const _0x5336d3=_0x42c3b0[_0x33d4c5(0x3e3)][_0x33d4c5(0x2a2)](_0x51323e=>!_0x38d260(_0x51323e));if(_0x5336d3[_0x33d4c5(0x2c3)]>0x0){if(_0x42c3b0[_0x33d4c5(0x391)]()===_0x33d4c5(0x257)){const _0xf99f7f=_0x42c3b0[_0x33d4c5(0x355)](),_0x4ac164=!_0xf99f7f[_0x33d4c5(0x486)]&&process[_0x33d4c5(0x34b)][_0x33d4c5(0x1f2)],_0x526148=COMMAND_CATEGORIES,_0x58d85b=(_0x452a9b,_0x18ce21)=>_0x4ac164?_0x18ce21(_0x452a9b):_0x452a9b,_0x36b9a7=new Map();_0x5336d3['forEach'](_0x3f8750=>{const _0x14e7a3=_0x33d4c5;_0x36b9a7[_0x14e7a3(0x425)](_0x3f8750[_0x14e7a3(0x391)](),_0x3f8750);}),_0x526148[_0x33d4c5(0x2f6)](_0x3b54b3=>{const _0x43ff04=_0x33d4c5,_0x475fc3=_0x3b54b3[_0x43ff04(0x3e3)]['flatMap'](_0x33f3c3=>_0x36b9a7[_0x43ff04(0x374)](_0x33f3c3)??[]);if(_0x475fc3[_0x43ff04(0x2c3)]>0x0){_0x34ccc4[_0x43ff04(0x494)](''),_0x34ccc4[_0x43ff04(0x494)](_0x58d85b(_0x3b54b3['name']+':',_0x3b54b3[_0x43ff04(0x1f8)]));const _0x1273c9=_0x475fc3[_0x43ff04(0x2c2)](_0x343e81=>{const _0xfa34f0=_0x43ff04,_0x5d3061=_0x46a8f0[_0xfa34f0(0x37d)](_0x343e81),_0x45503e=_0x46a8f0[_0xfa34f0(0x3d3)](_0x343e81);return _0x343bf4(_0x5d3061,_0x45503e);});_0x34ccc4[_0x43ff04(0x494)](_0x580311(_0x1273c9));}}),_0x34ccc4[_0x33d4c5(0x494)](''),_0x34ccc4['push'](_0x33d4c5(0x4a5));}else{const _0x5567bd=_0x5336d3[_0x33d4c5(0x2c2)](_0x306bd1=>{const _0xda3767=_0x46a8f0['subcommandTerm'](_0x306bd1),_0x48e47a=_0x46a8f0['subcommandDescription'](_0x306bd1);return _0x343bf4(_0xda3767,_0x48e47a);});_0x34ccc4[_0x33d4c5(0x494)](''),_0x34ccc4[_0x33d4c5(0x494)](_0x33d4c5(0x446)),_0x34ccc4[_0x33d4c5(0x494)](_0x580311(_0x5567bd));}}if(showBriefHelp&&_0x42c3b0[_0x33d4c5(0x391)]()===_0x33d4c5(0x257))_0x34ccc4[_0x33d4c5(0x494)](''),_0x34ccc4[_0x33d4c5(0x494)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x518dc8=_0x42c3b0[_0x33d4c5(0x1df)][_0x33d4c5(0x2a2)](_0x18a164=>!_0x38d260(_0x18a164));if(_0x518dc8[_0x33d4c5(0x2c3)]>0x0){const _0x47c3b2=_0x518dc8[_0x33d4c5(0x2c2)](_0x1867df=>{const _0x1e6f4c=_0x33d4c5,_0x1f1a18=_0x46a8f0['optionTerm'](_0x1867df),_0x18113b=_0x46a8f0[_0x1e6f4c(0x2b0)](_0x1867df);return _0x343bf4(_0x1f1a18,_0x18113b);});_0x34ccc4[_0x33d4c5(0x494)](''),_0x34ccc4[_0x33d4c5(0x494)](_0x33d4c5(0x1a5)),_0x34ccc4['push'](_0x580311(_0x47c3b2));}}const _0x4a8ca2=(_0x42c3b0[_0x33d4c5(0x2a1)]||[])[_0x33d4c5(0x2a2)](_0x2dae0e=>!_0x38d260(_0x2dae0e));if(_0x4a8ca2[_0x33d4c5(0x2c3)]>0x0){const _0x46b545=_0x4a8ca2[_0x33d4c5(0x2c2)](_0x3fc9c0=>{const _0x29e963=_0x33d4c5,_0x3b1fb6=_0x46a8f0[_0x29e963(0x499)](_0x3fc9c0),_0x2c8d4d=_0x46a8f0[_0x29e963(0x28f)](_0x3fc9c0);return _0x343bf4(_0x3b1fb6,_0x2c8d4d);});_0x34ccc4[_0x33d4c5(0x494)](''),_0x34ccc4[_0x33d4c5(0x494)](_0x33d4c5(0x3c4)),_0x34ccc4[_0x33d4c5(0x494)](_0x580311(_0x46b545));}return _0x34ccc4[_0x33d4c5(0x245)]('\x0a')+'\x0a';},'subcommandTerm':_0x3cad7a=>{const _0x48926a=a2_0x3547a0,_0x522f25=(_0x3cad7a['registeredArguments']||[])[_0x48926a(0x2c2)](_0x54cfe0=>_0x54cfe0[_0x48926a(0x2ce)]?'<'+_0x54cfe0[_0x48926a(0x391)]()+'>':'['+_0x54cfe0['name']()+']')[_0x48926a(0x245)]('\x20'),_0x4f6983=_0x3cad7a[_0x48926a(0x210)](),_0x1eed1b=_0x4f6983['length']>0x0?_0x3cad7a[_0x48926a(0x391)]()+',\x20'+_0x4f6983[_0x48926a(0x245)](',\x20'):_0x3cad7a[_0x48926a(0x391)]();return _0x522f25?_0x1eed1b+'\x20'+_0x522f25:_0x1eed1b;}}),program[a2_0x3547a0(0x464)](a2_0x3547a0(0x27c),_0x455c44=>{const _0x49981c=a2_0x3547a0,_0x37cc34=_0x455c44[_0x49981c(0x355)]();if(_0x37cc34[_0x49981c(0x41e)]){const _0x436658=resolve(_0x37cc34[_0x49981c(0x41e)]),_0x583338=_0x436658!==_0x37cc34[_0x49981c(0x41e)]?_0x49981c(0x224)+_0x436658+')':'';if(!existsSync(_0x436658))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x49981c(0x39d)+_0x37cc34['directory']+_0x583338,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x296495=statSync(_0x436658);if(!_0x296495[_0x49981c(0x4c6)]())throw new SDKError(ErrorCode[_0x49981c(0x396)],_0x49981c(0x1d4)+_0x37cc34[_0x49981c(0x41e)]+_0x583338,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x49981c(0x303)](_0x436658);}if(!_0x37cc34[_0x49981c(0x366)]){if(_0x37cc34[_0x49981c(0x2d9)])_0x37cc34[_0x49981c(0x366)]='table';else{if(_0x37cc34[_0x49981c(0x364)])_0x37cc34[_0x49981c(0x366)]=_0x49981c(0x364);else{if(_0x37cc34[_0x49981c(0x457)])_0x37cc34[_0x49981c(0x366)]=_0x49981c(0x457);else _0x37cc34[_0x49981c(0x35f)]&&(_0x37cc34[_0x49981c(0x366)]=_0x49981c(0x35f));}}}if(_0x37cc34[_0x49981c(0x3a3)])_0x37cc34[_0x49981c(0x471)]=LogLevel[_0x49981c(0x36f)];else{if(_0x37cc34['debug'])_0x37cc34[_0x49981c(0x471)]=LogLevel[_0x49981c(0x477)];else _0x37cc34[_0x49981c(0x471)]===undefined&&(_0x37cc34['logLevel']=LogLevel[_0x49981c(0x3f6)]);}});async function createTDXInstance(_0xade485){const _0x4cb8f9=a2_0x3547a0,_0x2d2d11=await GlobalContext[_0x4cb8f9(0x433)](_0xade485);_0x2d2d11['injectIntoOptions'](_0xade485);const _0x200c0c=Number(_0xade485['timeout']),_0x5090ba=!isNaN(_0x200c0c)&&_0x200c0c>0x0?_0x200c0c*0x3e8:undefined;return TDX[_0x4cb8f9(0x26d)]({'site':_0x2d2d11['site'],'apiKey':_0x2d2d11[_0x4cb8f9(0x2f3)],'accessToken':_0x2d2d11[_0x4cb8f9(0x1e0)],'logLevel':_0x2d2d11[_0x4cb8f9(0x471)],'profile':_0x2d2d11[_0x4cb8f9(0x2a0)],'timeout':_0x5090ba});}const databaseCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2bd))['alias']('db')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x276)),databaseListAction=async(_0x323847,_0x5483a1)=>{const _0x341eac=a2_0x3547a0,_0x4a3038=new DatabasesCommand(),_0x4238b6=program[_0x341eac(0x355)](),_0x4414df=await createTDXInstance(_0x4238b6),_0x5a6810=await _0x4a3038[_0x341eac(0x437)]({'options':{..._0x4238b6,..._0x5483a1},'args':_0x323847?[_0x323847]:[],'tdx':_0x4414df});gracefulExit(_0x5a6810);};databaseCmd['command'](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x415))[a2_0x3547a0(0x320)](databaseListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x262),{'hidden':!![]})[a2_0x3547a0(0x1cf)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x3547a0(0x320)](databaseListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x472))['description'](a2_0x3547a0(0x4b1))['option']('--agent\x20<ref>',a2_0x3547a0(0x4c8))[a2_0x3547a0(0x381)]('--new',a2_0x3547a0(0x4ac))[a2_0x3547a0(0x381)]('--chat-id\x20<id>',a2_0x3547a0(0x3c2))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2ca),a2_0x3547a0(0x22d))[a2_0x3547a0(0x320)](async(_0x4258d0,_0x5d95b3)=>{const _0x268c53=a2_0x3547a0,_0x337232=program['opts'](),_0x155917=await createTDXInstance(_0x337232);if(_0x4258d0[0x0]==='create'){const _0x4009aa=new ChatCreateCommand();gracefulExit(await _0x4009aa[_0x268c53(0x437)]({'options':{..._0x337232,..._0x5d95b3},'args':_0x4258d0['slice'](0x1),'tdx':_0x155917}));return;}const _0x44a44e=new ChatCommand(),_0x1ebacc=await _0x44a44e['run']({'options':{..._0x337232,..._0x5d95b3},'args':_0x4258d0,'tdx':_0x155917});gracefulExit(_0x1ebacc);});const apiCmd=program[a2_0x3547a0(0x24c)]('api\x20[endpoint]')['summary']('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3547a0(0x4b4)](a2_0x3547a0(0x48d),a2_0x3547a0(0x1ed))[a2_0x3547a0(0x381)](a2_0x3547a0(0x4c2),a2_0x3547a0(0x4b0),'GET')['option'](a2_0x3547a0(0x330),a2_0x3547a0(0x38b))['option'](a2_0x3547a0(0x30e),'Read\x20request\x20body\x20from\x20file')[a2_0x3547a0(0x381)]('-H,\x20--header\x20<header>',a2_0x3547a0(0x4a7),(_0x40533d,_0x434e25)=>{return _0x434e25?[..._0x434e25,_0x40533d]:[_0x40533d];})[a2_0x3547a0(0x381)]('--type\x20<api_type>',a2_0x3547a0(0x3fc),'td')['action'](async(_0x1744ac,_0x5c37b6)=>{const _0x1ffa7d=a2_0x3547a0;if(!_0x1744ac){apiCmd[_0x1ffa7d(0x2c0)]();return;}const _0x3d6663=new ApiCommand(),_0x486439=program[_0x1ffa7d(0x355)](),_0x25eddd=await createTDXInstance(_0x486439),_0x129bc7=await _0x3d6663[_0x1ffa7d(0x437)]({'options':{..._0x486439,..._0x5c37b6},'args':[_0x1744ac],'tdx':_0x25eddd});gracefulExit(_0x129bc7);});program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x488))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1e6))[a2_0x3547a0(0x4b4)](a2_0x3547a0(0x48d),a2_0x3547a0(0x1dc))['action'](async _0x526c4b=>{const _0x345c0c=a2_0x3547a0,_0x6b7876=new MCPCommand(),_0x3033e6=program['opts'](),_0x420019=await createTDXInstance(_0x3033e6),_0x1b44d1=await _0x6b7876[_0x345c0c(0x437)]({'options':{..._0x3033e6,..._0x526c4b},'args':[],'tdx':_0x420019});gracefulExit(_0x1b44d1);});const tableCmd=program[a2_0x3547a0(0x24c)]('table')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2e0)),tableListAction=async(_0xaa523f,_0x74b17)=>{const _0xa35156=a2_0x3547a0,_0x264c00=new TablesCommand(),_0x9e66c2=program[_0xa35156(0x355)](),_0x9a89cc=await createTDXInstance(_0x9e66c2);_0x74b17['in']&&(_0x74b17[_0xa35156(0x2bd)]=_0x74b17['in']);const _0x2e5c40=await _0x264c00[_0xa35156(0x437)]({'options':{..._0x9e66c2,..._0x74b17},'args':_0xaa523f?[_0xaa523f]:[],'tdx':_0x9a89cc});gracefulExit(_0x2e5c40);};tableCmd['command'](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x240))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1db),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3547a0(0x320)](tableListAction),program[a2_0x3547a0(0x24c)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x465))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24d),a2_0x3547a0(0x458))['option'](a2_0x3547a0(0x1db),a2_0x3547a0(0x3eb))[a2_0x3547a0(0x320)](tableListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2c4))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4a8))[a2_0x3547a0(0x381)]('-d,\x20--database\x20<database>',a2_0x3547a0(0x3bd))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1db),a2_0x3547a0(0x3eb))[a2_0x3547a0(0x320)](async(_0x37d29e,_0x3e0ff9)=>{const _0x9d4cea=a2_0x3547a0,_0x53cde7=new ShowCommand(),_0x548fc0=program[_0x9d4cea(0x355)](),_0x334ca=await createTDXInstance(_0x548fc0);_0x3e0ff9['in']&&(_0x3e0ff9[_0x9d4cea(0x2bd)]=_0x3e0ff9['in']);const _0x329416=await _0x53cde7[_0x9d4cea(0x437)]({'options':{..._0x548fc0,..._0x3e0ff9},'args':_0x37d29e?[_0x37d29e]:[],'tdx':_0x334ca});gracefulExit(_0x329416);}),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3a2))[a2_0x3547a0(0x339)](a2_0x3547a0(0x420))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x397))[a2_0x3547a0(0x381)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1db),a2_0x3547a0(0x3eb))[a2_0x3547a0(0x320)](async(_0x5466ea,_0x2ae50f)=>{const _0x3fd68e=a2_0x3547a0,_0x33490f=new DescribeCommand(),_0x5684dd=program[_0x3fd68e(0x355)](),_0x214b03=await createTDXInstance(_0x5684dd);_0x2ae50f['in']&&(_0x2ae50f[_0x3fd68e(0x2bd)]=_0x2ae50f['in']);const _0x2e5a20=await _0x33490f['run']({'options':{..._0x5684dd,..._0x2ae50f},'args':_0x5466ea?[_0x5466ea]:[],'tdx':_0x214b03});gracefulExit(_0x2e5a20);}),program['command'](a2_0x3547a0(0x3fb))['description'](a2_0x3547a0(0x1ac))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24d),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1db),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x239),a2_0x3547a0(0x1e5))[a2_0x3547a0(0x381)](a2_0x3547a0(0x30e),a2_0x3547a0(0x3ca))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ff),a2_0x3547a0(0x1d7))[a2_0x3547a0(0x320)](async(_0xfd297b,_0x5b669)=>{const _0x112766=a2_0x3547a0,_0x475576=new QueryCommand(),_0x39cb61=program[_0x112766(0x355)](),_0x266898=await createTDXInstance(_0x39cb61);_0x5b669['in']&&(_0x5b669['database']=_0x5b669['in']);const _0x22eb87=await _0x475576[_0x112766(0x437)]({'options':mergeCommandOptions(_0x39cb61,_0x5b669),'args':_0xfd297b?[_0xfd297b]:[],'tdx':_0x266898});gracefulExit(_0x22eb87);});const segmentCmd=program[a2_0x3547a0(0x24c)]('segment')['alias']('sg')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x32c)),segmentListAction=async(_0x1f3b14,_0x2dbf43)=>{const _0x3ae053=a2_0x3547a0,_0x337a1c=new SegmentsCommand(),_0x841e8a=program[_0x3ae053(0x355)](),_0x4d6b66=await createTDXInstance(_0x841e8a),_0x329d64=await _0x337a1c['run']({'options':{..._0x841e8a,..._0x2dbf43},'args':_0x1f3b14?[_0x1f3b14]:[],'tdx':_0x4d6b66});gracefulExit(_0x329d64);};segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ae))[a2_0x3547a0(0x1cf)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x3547a0(0x230),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option']('--max-depth\x20<depth>',a2_0x3547a0(0x25a),'10')[a2_0x3547a0(0x320)](segmentListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x279),{'hidden':!![]})['description'](a2_0x3547a0(0x345))[a2_0x3547a0(0x381)](a2_0x3547a0(0x230),a2_0x3547a0(0x3e5))[a2_0x3547a0(0x381)](a2_0x3547a0(0x463),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x3547a0(0x320)](segmentListAction),segmentCmd['command'](a2_0x3547a0(0x282),{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1b9))[a2_0x3547a0(0x320)](async(_0x58bc1b,_0x5a48dd)=>{const _0x56849e=a2_0x3547a0,_0x23a590=new SegmentUseCommand(),_0x179d9f=program[_0x56849e(0x355)](),_0x507835=await createTDXInstance(_0x179d9f),_0x3add4e=await _0x23a590[_0x56849e(0x437)]({'options':{..._0x179d9f,..._0x5a48dd},'args':[_0x58bc1b],'tdx':_0x507835});gracefulExit(_0x3add4e);});const segmentViewAction=async(_0x3f828a,_0x390ca6)=>{const _0x17889d=a2_0x3547a0,_0x54486e=new SegmentViewCommand(),_0x390853=program[_0x17889d(0x355)](),_0x5ee3cd=await createTDXInstance(_0x390853),_0x3d0616=await _0x54486e[_0x17889d(0x437)]({'options':{..._0x390853,..._0x390ca6},'args':_0x3f828a?[_0x3f828a]:[],'tdx':_0x5ee3cd});gracefulExit(_0x3d0616);};segmentCmd[a2_0x3547a0(0x24c)]('view\x20[segment_name]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x288))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ec),a2_0x3547a0(0x3bb))[a2_0x3547a0(0x320)](segmentViewAction),segmentCmd['command'](a2_0x3547a0(0x220),{'hidden':!![]})[a2_0x3547a0(0x339)]('describe')['option'](a2_0x3547a0(0x1ec),a2_0x3547a0(0x3bb))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x429))['action'](segmentViewAction),segmentCmd[a2_0x3547a0(0x24c)]('desc\x20[segment_name]')['description'](a2_0x3547a0(0x439))[a2_0x3547a0(0x320)](async(_0x25bf08,_0x5659c5)=>{const _0xf820d3=a2_0x3547a0,_0x2e5f2f=new SegmentDescCommand(),_0x55d016=program['opts'](),_0x27f864=await createTDXInstance(_0x55d016),_0x5a8036=await _0x2e5f2f[_0xf820d3(0x437)]({'options':{..._0x55d016,..._0x5659c5},'args':_0x25bf08?[_0x25bf08]:[],'tdx':_0x27f864});gracefulExit(_0x5a8036);}),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x234))[a2_0x3547a0(0x1cf)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3547a0(0x320)](async(_0x1a9746,_0x498136)=>{const _0x89ebbc=a2_0x3547a0,_0x29bf2f=new SegmentShowCommand(),_0x110e3a=program[_0x89ebbc(0x355)](),_0x37727b=await createTDXInstance(_0x110e3a),_0x32b690=await _0x29bf2f[_0x89ebbc(0x437)]({'options':{..._0x110e3a,..._0x498136},'args':_0x1a9746?[_0x1a9746]:[],'tdx':_0x37727b});gracefulExit(_0x32b690);}),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x259),{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x308))[a2_0x3547a0(0x320)](async(_0x9376b7,_0x2d5b11)=>{const _0x5ef17f=a2_0x3547a0,_0xc5c028=new SegmentFolderListCommand(),_0x3bda63=program[_0x5ef17f(0x355)](),_0x4f5f37=await createTDXInstance(_0x3bda63),_0x36128a=await _0xc5c028[_0x5ef17f(0x437)]({'options':{..._0x3bda63,..._0x2d5b11},'args':[_0x9376b7],'tdx':_0x4f5f37});gracefulExit(_0x36128a);});const folderCmd=segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x337),{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1ea));folderCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x236))['description'](a2_0x3547a0(0x498))['action'](async(_0x24d5d7,_0x41e61d)=>{const _0x58fbed=a2_0x3547a0,_0x39ea65=new SegmentFolderShowCommand(),_0x557cb1=program[_0x58fbed(0x355)](),_0x29e34e=await createTDXInstance(_0x557cb1),_0x1143ce=await _0x39ea65['run']({'options':{..._0x557cb1,..._0x41e61d},'args':[_0x24d5d7],'tdx':_0x29e34e});gracefulExit(_0x1143ce);}),segmentCmd[a2_0x3547a0(0x24c)]('sql\x20[segment_name]')[a2_0x3547a0(0x1cf)]('Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)')['option']('--path\x20<file-path>',a2_0x3547a0(0x2a4))['action'](async(_0x5dd185,_0x2365a3)=>{const _0x30d366=a2_0x3547a0,_0x271c0c=new SegmentSQLCommand(),_0x34d70c=program[_0x30d366(0x355)](),_0x32e014=await createTDXInstance(_0x34d70c),_0x25af34=await _0x271c0c['run']({'options':{..._0x34d70c,..._0x2365a3},'args':_0x5dd185?[_0x5dd185]:[],'tdx':_0x32e014});gracefulExit(_0x25af34);}),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x269))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x26c))[a2_0x3547a0(0x320)](async(_0x58e9df,_0x246609)=>{const _0x4d3c05=new SegmentFieldsCommand(),_0x2685ae=program['opts'](),_0x2434d2=await createTDXInstance(_0x2685ae),_0x29c5f3=await _0x4d3c05['run']({'options':{..._0x2685ae,..._0x246609},'args':_0x58e9df?[_0x58e9df]:[],'tdx':_0x2434d2});gracefulExit(_0x29c5f3);}),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1cb))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x43d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x378))['action'](async(_0x15f8dd,_0x18d958)=>{const _0x5ea671=a2_0x3547a0,_0x5a48ad=new SegmentPullCommand(),_0xd09cae=program[_0x5ea671(0x355)](),_0x4d6ca7=await createTDXInstance(_0xd09cae),_0x2c7a98=await _0x5a48ad['run']({'options':{..._0xd09cae,..._0x18d958},'args':_0x15f8dd?[_0x15f8dd]:[],'tdx':_0x4d6ca7});gracefulExit(_0x2c7a98);}),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x278))[a2_0x3547a0(0x1cf)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option'](a2_0x3547a0(0x2b2),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3547a0(0x381)](a2_0x3547a0(0x455),a2_0x3547a0(0x478))[a2_0x3547a0(0x320)](async(_0x2521e2,_0x36a9eb)=>{const _0x207190=a2_0x3547a0,_0x3ef7ac=new SegmentPushCommand(),_0x2b2897=program['opts'](),_0x4b3087=await createTDXInstance(_0x2b2897),_0x23ed86=await _0x3ef7ac[_0x207190(0x437)]({'options':{..._0x2b2897,..._0x36a9eb},'args':_0x2521e2?[_0x2521e2]:[],'tdx':_0x4b3087});gracefulExit(_0x23ed86);}),segmentCmd['command'](a2_0x3547a0(0x3ef))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1b7))[a2_0x3547a0(0x320)](async(_0x516c3a,_0xd0eb96)=>{const _0x1455a2=a2_0x3547a0,_0x187ce0=new SegmentValidateCommand(),_0x4adf09=program[_0x1455a2(0x355)](),_0x247e5f=await createTDXInstance(_0x4adf09),_0x788b8b=await _0x187ce0[_0x1455a2(0x437)]({'options':{..._0x4adf09,..._0xd0eb96},'args':_0x516c3a?[_0x516c3a]:[],'tdx':_0x247e5f});gracefulExit(_0x788b8b);}),segmentCmd[a2_0x3547a0(0x24c)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x304))[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),a2_0x3547a0(0x461))[a2_0x3547a0(0x381)]('--rule\x20<json>','Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3547a0(0x381)](a2_0x3547a0(0x3b1),a2_0x3547a0(0x44a))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1f5),'Folder\x20name\x20for\x20organization')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2a5),a2_0x3547a0(0x2d4))[a2_0x3547a0(0x381)](a2_0x3547a0(0x34e),a2_0x3547a0(0x419))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2ed),a2_0x3547a0(0x2da))['action'](async(_0x33623c,_0xbd45af)=>{const _0x48245f=new SegmentCreateCommand(),_0x1577d2=program['opts'](),_0x3f05b6=await createTDXInstance(_0x1577d2),_0x5ace4c=await _0x48245f['run']({'options':{..._0x1577d2,..._0xbd45af},'args':[_0x33623c],'tdx':_0x3f05b6});gracefulExit(_0x5ace4c);}),segmentCmd[a2_0x3547a0(0x24c)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x34d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2cb),a2_0x3547a0(0x44f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),a2_0x3547a0(0x2ee))[a2_0x3547a0(0x381)]('--rule\x20<json>',a2_0x3547a0(0x2e6))[a2_0x3547a0(0x381)]('--rule-file\x20<file>',a2_0x3547a0(0x4c1))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1f5),a2_0x3547a0(0x1d1))['option']('--kind\x20<type>',a2_0x3547a0(0x2d4))[a2_0x3547a0(0x320)](async(_0x1bb9a0,_0x2c6977)=>{const _0x15797f=a2_0x3547a0,_0x1285ee=new SegmentUpdateCommand(),_0x2d4e49=program['opts'](),_0x352703=await createTDXInstance(_0x2d4e49),_0x3ca121=await _0x1285ee[_0x15797f(0x437)]({'options':{..._0x2d4e49,..._0x2c6977},'args':[_0x1bb9a0],'tdx':_0x352703});gracefulExit(_0x3ca121);});const parentCmd=segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1d6),{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x41c)),parentListAction=async(_0x196be2,_0x5a9af2)=>{const _0x157ac6=a2_0x3547a0,_0x2a1f0d=new ParentSegmentListCommand(),_0x2f7eb8=program['opts'](),_0x24d0fa=await createTDXInstance(_0x2f7eb8),_0xba6bc=await _0x2a1f0d[_0x157ac6(0x437)]({'options':{..._0x2f7eb8,..._0x5a9af2},'args':_0x196be2?[_0x196be2]:[],'tdx':_0x24d0fa});gracefulExit(_0xba6bc);};parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x3547a0(0x320)](parentListAction),segmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x21a),{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3547a0(0x320)](parentListAction),parentCmd[a2_0x3547a0(0x24c)]('pull\x20[name]')[a2_0x3547a0(0x1cf)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x3547a0(0x381)](a2_0x3547a0(0x27d),a2_0x3547a0(0x28b))[a2_0x3547a0(0x320)](async(_0xba9260,_0x10adb8)=>{const _0x24bd1b=a2_0x3547a0,_0x27cd71=new ParentSegmentPullCommand(),_0x2a5eeb=program[_0x24bd1b(0x355)](),_0x225d06=await createTDXInstance(_0x2a5eeb),_0x59fd65=await _0x27cd71['run']({'options':{..._0x2a5eeb,..._0x10adb8},'args':_0xba9260?[_0xba9260]:[],'tdx':_0x225d06});gracefulExit(_0x59fd65);}),parentCmd[a2_0x3547a0(0x24c)]('push\x20[file]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1c1))[a2_0x3547a0(0x320)](async(_0x2d4ce5,_0x596626)=>{const _0x5daba8=a2_0x3547a0,_0x143503=new ParentSegmentPushCommand(),_0x54d792=program[_0x5daba8(0x355)](),_0x2a17b2=await createTDXInstance(_0x54d792),_0x63e419=await _0x143503[_0x5daba8(0x437)]({'options':{..._0x54d792,..._0x596626},'args':_0x2d4ce5?[_0x2d4ce5]:[],'tdx':_0x2a17b2});gracefulExit(_0x63e419);}),parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x329))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1ca))['option'](a2_0x3547a0(0x263),a2_0x3547a0(0x38e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1a6),a2_0x3547a0(0x3ed))['option'](a2_0x3547a0(0x314),a2_0x3547a0(0x46b))[a2_0x3547a0(0x381)]('--enriched',a2_0x3547a0(0x2f1))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1bb),a2_0x3547a0(0x412),'-1d')[a2_0x3547a0(0x320)](async(_0x17b0ab,_0x378e0b)=>{const _0x5b0d17=a2_0x3547a0,_0x521f58=new ParentSegmentValidateCommand(),_0x4d603b=program[_0x5b0d17(0x355)](),_0x3d23d7=await createTDXInstance(_0x4d603b),_0xcbde=await _0x521f58['run']({'options':{..._0x4d603b,..._0x378e0b},'args':_0x17b0ab?[_0x17b0ab]:[],'tdx':_0x3d23d7});gracefulExit(_0xcbde);}),parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x35e))['description'](a2_0x3547a0(0x285))[a2_0x3547a0(0x381)]('--master',a2_0x3547a0(0x360))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1a6),a2_0x3547a0(0x448))['option'](a2_0x3547a0(0x314),a2_0x3547a0(0x3f0))['option']('--enriched',a2_0x3547a0(0x296))['option'](a2_0x3547a0(0x1bb),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3547a0(0x3a6))['action'](async(_0x396980,_0x3f4417)=>{const _0x48a128=a2_0x3547a0,_0x1f4769=new ParentSegmentPreviewCommand(),_0xc4c6c9=program['opts'](),_0x56e820=await createTDXInstance(_0xc4c6c9),_0x23b100=await _0x1f4769[_0x48a128(0x437)]({'options':{..._0xc4c6c9,..._0x3f4417},'args':_0x396980?[_0x396980]:[],'tdx':_0x56e820});gracefulExit(_0x23b100);}),parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x258))[a2_0x3547a0(0x1cf)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3547a0(0x320)](async(_0x1ad1bd,_0x47ba19)=>{const _0x5f36a1=a2_0x3547a0,_0x5e8ab6=new ParentSegmentRunCommand(),_0x499c4a=program[_0x5f36a1(0x355)](),_0x323c36=await createTDXInstance(_0x499c4a),_0x4ac2e4=await _0x5e8ab6[_0x5f36a1(0x437)]({'options':{..._0x499c4a,..._0x47ba19},'args':_0x1ad1bd?[_0x1ad1bd]:[],'tdx':_0x323c36});gracefulExit(_0x4ac2e4);});const parentSegmentCmd=program['command']('parent-segment')[a2_0x3547a0(0x339)]('ps')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1e7));parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x21f))['action'](parentListAction),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x352))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x219))[a2_0x3547a0(0x381)](a2_0x3547a0(0x27d),'Output\x20file\x20path')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2d7),a2_0x3547a0(0x21b))['action'](async(_0x20777b,_0x32b43c)=>{const _0x291ee9=a2_0x3547a0,_0x4b8134=new ParentSegmentPullCommand(),_0xa05b76=program[_0x291ee9(0x355)](),_0xc30829=await createTDXInstance(_0xa05b76),_0x23efe7=await _0x4b8134[_0x291ee9(0x437)]({'options':{..._0xa05b76,..._0x32b43c},'args':_0x20777b?[_0x20777b]:[],'tdx':_0xc30829});gracefulExit(_0x23efe7);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x24a))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x31c))['action'](async(_0x1855db,_0x3c01b3)=>{const _0x353db7=a2_0x3547a0,_0x3a8adf=new ParentSegmentPushCommand(),_0x180000=program[_0x353db7(0x355)](),_0x53d5d2=await createTDXInstance(_0x180000),_0x19e009=await _0x3a8adf[_0x353db7(0x437)]({'options':{..._0x180000,..._0x3c01b3},'args':_0x1855db?[_0x1855db]:[],'tdx':_0x53d5d2});gracefulExit(_0x19e009);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1eb))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x3547a0(0x263),a2_0x3547a0(0x38e))['option']('--attribute\x20[name]',a2_0x3547a0(0x3ed))[a2_0x3547a0(0x381)](a2_0x3547a0(0x314),a2_0x3547a0(0x46b))['option']('--enriched',a2_0x3547a0(0x2f1))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1bb),a2_0x3547a0(0x412),'-1d')['action'](async(_0xf13c7,_0x5ba90d)=>{const _0x24b538=a2_0x3547a0,_0x3d2baf=new ParentSegmentValidateCommand(),_0x47c36f=program['opts'](),_0x3a1fd6=await createTDXInstance(_0x47c36f),_0x3bb56c=await _0x3d2baf[_0x24b538(0x437)]({'options':{..._0x47c36f,..._0x5ba90d},'args':_0xf13c7?[_0xf13c7]:[],'tdx':_0x3a1fd6});gracefulExit(_0x3bb56c);}),parentSegmentCmd[a2_0x3547a0(0x24c)]('preview\x20[name]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x285))[a2_0x3547a0(0x381)]('--master',a2_0x3547a0(0x360))['option'](a2_0x3547a0(0x1a6),a2_0x3547a0(0x448))[a2_0x3547a0(0x381)](a2_0x3547a0(0x314),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1a1),a2_0x3547a0(0x296))[a2_0x3547a0(0x381)]('--interval\x20<range>',a2_0x3547a0(0x412),a2_0x3547a0(0x3a6))['action'](async(_0xd1835a,_0xc7ecd)=>{const _0x57ab8e=a2_0x3547a0,_0x153a79=new ParentSegmentPreviewCommand(),_0x153fa3=program[_0x57ab8e(0x355)](),_0x2c916d=await createTDXInstance(_0x153fa3),_0x1bf1f6=await _0x153a79[_0x57ab8e(0x437)]({'options':{..._0x153fa3,..._0xc7ecd},'args':_0xd1835a?[_0xd1835a]:[],'tdx':_0x2c916d});gracefulExit(_0x1bf1f6);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x258))['description'](a2_0x3547a0(0x201))['action'](async(_0x1f2963,_0xbc2190)=>{const _0x4c0c39=a2_0x3547a0,_0xc2c390=new ParentSegmentRunCommand(),_0x1856dc=program['opts'](),_0x4db7f9=await createTDXInstance(_0x1856dc),_0x40e258=await _0xc2c390[_0x4c0c39(0x437)]({'options':{..._0x1856dc,..._0xbc2190},'args':_0x1f2963?[_0x1f2963]:[],'tdx':_0x4db7f9});gracefulExit(_0x40e258);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ba))['description'](a2_0x3547a0(0x27e))['option'](a2_0x3547a0(0x23a),a2_0x3547a0(0x325))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2e4),a2_0x3547a0(0x451))[a2_0x3547a0(0x320)](async(_0x4c48b9,_0x777d19)=>{const _0x2630aa=a2_0x3547a0,_0x565139=new ParentSegmentFieldsCommand(),_0x3e7a4f=program[_0x2630aa(0x355)](),_0x4bfd6f=await createTDXInstance(_0x3e7a4f),_0x5a65a8=await _0x565139[_0x2630aa(0x437)]({'options':{..._0x3e7a4f,..._0x777d19},'args':_0x4c48b9?[_0x4c48b9]:[],'tdx':_0x4bfd6f});gracefulExit(_0x5a65a8);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x338))['description'](a2_0x3547a0(0x362))['option']('-w,\x20--web',a2_0x3547a0(0x1c2))[a2_0x3547a0(0x381)](a2_0x3547a0(0x23a),a2_0x3547a0(0x325))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2e4),a2_0x3547a0(0x451))[a2_0x3547a0(0x320)](async(_0x3fea0e,_0x8fef77)=>{const _0x2958ce=a2_0x3547a0,_0xd62e75=new ParentSegmentViewCommand(),_0x1d8cf6=program['opts'](),_0x548542=await createTDXInstance(_0x1d8cf6),_0x40d317=await _0xd62e75[_0x2958ce(0x437)]({'options':{..._0x1d8cf6,..._0x8fef77},'args':_0x3fea0e?[_0x3fea0e]:[],'tdx':_0x548542});gracefulExit(_0x40d317);}),parentSegmentCmd[a2_0x3547a0(0x24c)]('desc\x20[name]')[a2_0x3547a0(0x1cf)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x27d),'Output\x20file\x20path')[a2_0x3547a0(0x381)](a2_0x3547a0(0x23a),a2_0x3547a0(0x325))['option'](a2_0x3547a0(0x2e4),a2_0x3547a0(0x451))[a2_0x3547a0(0x320)](async(_0x41bec4,_0x54571f)=>{const _0x395b37=a2_0x3547a0,_0x3b0690=new ParentSegmentDescCommand(),_0x4a6641=program[_0x395b37(0x355)](),_0x3de6c1=await createTDXInstance(_0x4a6641),_0x5521d9=await _0x3b0690[_0x395b37(0x437)]({'options':{..._0x4a6641,..._0x54571f},'args':_0x41bec4?[_0x41bec4]:[],'tdx':_0x3de6c1});gracefulExit(_0x5521d9);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1ad))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x28d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x23a),a2_0x3547a0(0x325))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2e4),a2_0x3547a0(0x451))[a2_0x3547a0(0x320)](async(_0x5bdd23,_0x66c32)=>{const _0x4e85d7=a2_0x3547a0,_0xe371c3=new ParentSegmentSQLCommand(),_0x4f9157=program[_0x4e85d7(0x355)](),_0x210ab8=await createTDXInstance(_0x4f9157),_0x36d552=await _0xe371c3[_0x4e85d7(0x437)]({'options':{..._0x4f9157,..._0x66c32},'args':_0x5bdd23?[_0x5bdd23]:[],'tdx':_0x210ab8});gracefulExit(_0x36d552);}),parentSegmentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x265))['description'](a2_0x3547a0(0x2e5))['option']('--limit\x20<n>',a2_0x3547a0(0x39b))['option'](a2_0x3547a0(0x23a),a2_0x3547a0(0x325))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2e4),a2_0x3547a0(0x451))[a2_0x3547a0(0x320)](async(_0x52a4c1,_0x7d1064)=>{const _0x184ce5=a2_0x3547a0,_0x375e2b=new ParentSegmentShowCommand(),_0x183cbe=program['opts'](),_0x254130=await createTDXInstance(_0x183cbe),_0x92601d=await _0x375e2b[_0x184ce5(0x437)]({'options':{..._0x183cbe,..._0x7d1064},'args':_0x52a4c1?[_0x52a4c1]:[],'tdx':_0x254130});gracefulExit(_0x92601d);}),parentSegmentCmd['command']('use\x20[name]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2b9))[a2_0x3547a0(0x320)](async(_0x1c6d5d,_0x132d08)=>{const _0x58efe3=a2_0x3547a0,_0x3f9075=new UseCommand(),_0x5f268c=program[_0x58efe3(0x355)](),_0x460eee=_0x1c6d5d?[_0x58efe3(0x4a1),_0x1c6d5d]:[],_0xf10f42=await _0x3f9075[_0x58efe3(0x437)]({'options':{..._0x5f268c,..._0x132d08},'args':_0x460eee,'tdx':null});gracefulExit(_0xf10f42);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x3547a0(0x1cf)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x3547a0(0x24c)]('list\x20[pattern]')[a2_0x3547a0(0x1cf)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x3547a0(0x320)](async(_0x5e2cb2,_0x8a733f)=>{const _0x3a2582=a2_0x3547a0,_0xfa857e=new PSRtListCommand(),_0x26ed94=program[_0x3a2582(0x355)](),_0x54cd06=await createTDXInstance(_0x26ed94),_0x403900=await _0xfa857e[_0x3a2582(0x437)]({'options':{..._0x26ed94,..._0x8a733f},'args':_0x5e2cb2?[_0x5e2cb2]:[],'tdx':_0x54cd06});gracefulExit(_0x403900);}),psRtCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1eb))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x286))[a2_0x3547a0(0x320)](async(_0x4664ea,_0x23070c)=>{const _0x277c2f=a2_0x3547a0,_0xce3157=new PSRtValidateCommand(),_0x38c775=program[_0x277c2f(0x355)](),_0x1085b2=await createTDXInstance(_0x38c775),_0x45b518=await _0xce3157[_0x277c2f(0x437)]({'options':{..._0x38c775,..._0x23070c},'args':_0x4664ea?[_0x4664ea]:[],'tdx':_0x1085b2});gracefulExit(_0x45b518);}),psRtCmd['command'](a2_0x3547a0(0x291))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1fb))[a2_0x3547a0(0x320)](async(_0x5e0baf,_0x1c6e58)=>{const _0x1add4a=a2_0x3547a0,_0x924e46=new PSRtConfigVersionCommand(),_0x14baea=program['opts'](),_0x554bae=await createTDXInstance(_0x14baea),_0x242cb4=await _0x924e46[_0x1add4a(0x437)]({'options':{..._0x14baea,..._0x1c6e58},'args':_0x5e0baf?[_0x5e0baf]:[],'tdx':_0x554bae});gracefulExit(_0x242cb4);});const psRtJnCmd=psRtCmd[a2_0x3547a0(0x24c)]('jn')['description'](a2_0x3547a0(0x385));psRtJnCmd[a2_0x3547a0(0x24c)]('list\x20[name]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x483))['action'](async(_0x34261b,_0x8ff378)=>{const _0x440c7b=a2_0x3547a0,_0x196649=new PSRtJnListCommand(),_0x209ac7=program[_0x440c7b(0x355)](),_0x16e638=await createTDXInstance(_0x209ac7),_0x324e58=await _0x196649[_0x440c7b(0x437)]({'options':{..._0x209ac7,..._0x8ff378},'args':_0x34261b?[_0x34261b]:[],'tdx':_0x16e638});gracefulExit(_0x324e58);}),psRtJnCmd['command']('pause_activations\x20<journeyId>')[a2_0x3547a0(0x1cf)]('Pause\x20activations\x20in\x20an\x20RT\x20journey')['action'](async(_0x49d34e,_0x538045)=>{const _0x5bcb30=a2_0x3547a0,_0x54415d=new PSRtJnPauseCommand(),_0x46e6ee=program['opts'](),_0xf02f71=await createTDXInstance(_0x46e6ee),_0x29ecd7=await _0x54415d[_0x5bcb30(0x437)]({'options':{..._0x46e6ee,..._0x538045},'args':[_0x49d34e],'tdx':_0xf02f71});gracefulExit(_0x29ecd7);}),psRtJnCmd['command'](a2_0x3547a0(0x38a))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x470))[a2_0x3547a0(0x320)](async(_0x1e9444,_0xeb3726)=>{const _0x5e1344=a2_0x3547a0,_0x8a22c9=new PSRtJnResumeCommand(),_0x443712=program['opts'](),_0x878f35=await createTDXInstance(_0x443712),_0x3ad017=await _0x8a22c9[_0x5e1344(0x437)]({'options':{..._0x443712,..._0xeb3726},'args':[_0x1e9444],'tdx':_0x878f35});gracefulExit(_0x3ad017);});const parentRtCmd=parentCmd[a2_0x3547a0(0x24c)]('rt',{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x390));parentRtCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x5da107,_0x130b6c)=>{const _0x3c0714=a2_0x3547a0,_0x296eef=new PSRtListCommand(),_0x2dab0f=program[_0x3c0714(0x355)](),_0x397484=await createTDXInstance(_0x2dab0f),_0x524dda=await _0x296eef['run']({'options':{..._0x2dab0f,..._0x130b6c},'args':_0x5da107?[_0x5da107]:[],'tdx':_0x397484});gracefulExit(_0x524dda);}),parentRtCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1eb))['description'](a2_0x3547a0(0x286))['action'](async(_0xe482c7,_0x46dc54)=>{const _0x25e645=a2_0x3547a0,_0x3b69fd=new PSRtValidateCommand(),_0x2daa32=program[_0x25e645(0x355)](),_0x2efbd4=await createTDXInstance(_0x2daa32),_0x59506d=await _0x3b69fd['run']({'options':{..._0x2daa32,..._0x46dc54},'args':_0xe482c7?[_0xe482c7]:[],'tdx':_0x2efbd4});gracefulExit(_0x59506d);});const psPzCmd=parentSegmentCmd[a2_0x3547a0(0x24c)]('pz')[a2_0x3547a0(0x1cf)]('Personalization\x20management');psPzCmd['command'](a2_0x3547a0(0x1ce))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x31e))[a2_0x3547a0(0x320)](async(_0x54bebe,_0x5eed32)=>{const _0x16d92e=a2_0x3547a0,_0x17643c=new PSPzListCommand(),_0x871488=program['opts'](),_0xf06a74=await createTDXInstance(_0x871488),_0xbe49c7=await _0x17643c[_0x16d92e(0x437)]({'options':{..._0x871488,..._0x5eed32},'args':_0x54bebe?[_0x54bebe]:[],'tdx':_0xf06a74});gracefulExit(_0xbe49c7);}),psPzCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x4a0))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x44d))[a2_0x3547a0(0x320)](async(_0x35efa4,_0x7fb064)=>{const _0x27a67d=new PSPzShowCommand(),_0x33021b=program['opts'](),_0x13614e=await createTDXInstance(_0x33021b),_0x21c675=await _0x27a67d['run']({'options':{..._0x33021b,..._0x7fb064},'args':[_0x35efa4],'tdx':_0x13614e});gracefulExit(_0x21c675);}),psPzCmd['command']('delete\x20<personalization_id>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x459))[a2_0x3547a0(0x320)](async(_0x572eff,_0x512404)=>{const _0x525dd1=a2_0x3547a0,_0xf6610=new PSPzDeleteCommand(),_0x161a1a=program[_0x525dd1(0x355)](),_0x5144cb=await createTDXInstance(_0x161a1a),_0x51f070=await _0xf6610[_0x525dd1(0x437)]({'options':{..._0x161a1a,..._0x512404},'args':[_0x572eff],'tdx':_0x5144cb});gracefulExit(_0x51f070);}),psPzCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x26d))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x431))[a2_0x3547a0(0x381)](a2_0x3547a0(0x44e),a2_0x3547a0(0x3b5))[a2_0x3547a0(0x381)]('--description\x20<text>','Personalization\x20description')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1d0),a2_0x3547a0(0x1a0))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2dd),a2_0x3547a0(0x297))[a2_0x3547a0(0x381)](a2_0x3547a0(0x33e),a2_0x3547a0(0x1b1))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3d9),a2_0x3547a0(0x445))[a2_0x3547a0(0x320)](async _0x14d9ab=>{const _0x5a15ce=a2_0x3547a0,_0x414db8=new PSPzCreateCommand(),_0x265ecf=program[_0x5a15ce(0x355)](),_0x5b1f32=await createTDXInstance(_0x265ecf),_0x3669e2=await _0x414db8['run']({'options':{..._0x265ecf,..._0x14d9ab},'args':[],'tdx':_0x5b1f32});gracefulExit(_0x3669e2);}),psPzCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x290))['description'](a2_0x3547a0(0x261))[a2_0x3547a0(0x381)]('--name\x20<text>',a2_0x3547a0(0x3b5))['option'](a2_0x3547a0(0x356),'Personalization\x20description')[a2_0x3547a0(0x381)](a2_0x3547a0(0x33e),a2_0x3547a0(0x1b1))['option']('--file\x20<path>',a2_0x3547a0(0x445))['action'](async(_0x17b704,_0x1db9a2)=>{const _0x53226f=new PSPzPatchCommand(),_0x9d31f4=program['opts'](),_0x1feb19=await createTDXInstance(_0x9d31f4),_0x803bc1=await _0x53226f['run']({'options':{..._0x9d31f4,..._0x1db9a2},'args':[_0x17b704],'tdx':_0x1feb19});gracefulExit(_0x803bc1);});const psPzServiceCmd=psPzCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x388))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x29e));psPzServiceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1ce))['description'](a2_0x3547a0(0x442))[a2_0x3547a0(0x320)](async(_0x2334df,_0x49522c)=>{const _0x280f2c=a2_0x3547a0,_0x58de1f=new PSPzServiceListCommand(),_0xcf78b0=program[_0x280f2c(0x355)](),_0x522a11=await createTDXInstance(_0xcf78b0),_0x1c9861=await _0x58de1f['run']({'options':{..._0xcf78b0,..._0x49522c},'args':_0x2334df?[_0x2334df]:[],'tdx':_0x522a11});gracefulExit(_0x1c9861);}),psPzServiceCmd[a2_0x3547a0(0x24c)]('create\x20<name>\x20[parent_segment]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2b6))[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),'Service\x20description')[a2_0x3547a0(0x381)](a2_0x3547a0(0x421),a2_0x3547a0(0x2de))[a2_0x3547a0(0x320)](async(_0xa6cacd,_0x2f7a97,_0xcede67)=>{const _0x47850c=a2_0x3547a0,_0x174828=new PSPzServiceCreateCommand(),_0x556f50=program[_0x47850c(0x355)](),_0x1ae71f=await createTDXInstance(_0x556f50),_0x199378=await _0x174828[_0x47850c(0x437)]({'options':{..._0x556f50,..._0xcede67},'args':_0x2f7a97?[_0xa6cacd,_0x2f7a97]:[_0xa6cacd],'tdx':_0x1ae71f});gracefulExit(_0x199378);}),psPzServiceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2ef))[a2_0x3547a0(0x1cf)]('Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)')['action'](async(_0xcaf2ef,_0x9cffde,_0x52bdc0)=>{const _0x14b9cd=a2_0x3547a0,_0x129c6e=new PSPzServiceShowCommand(),_0x3d5d01=program[_0x14b9cd(0x355)](),_0x2c4fe0=await createTDXInstance(_0x3d5d01),_0x91a60f=await _0x129c6e[_0x14b9cd(0x437)]({'options':{..._0x3d5d01,..._0x52bdc0},'args':_0x9cffde?[_0xcaf2ef,_0x9cffde]:[_0xcaf2ef],'tdx':_0x2c4fe0});gracefulExit(_0x91a60f);}),psPzServiceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x32b))['description'](a2_0x3547a0(0x3e6))['action'](async(_0x5b4b5d,_0x2789d1,_0x5bb159)=>{const _0x4d48b0=a2_0x3547a0,_0x580ae7=new PSPzServiceDeleteCommand(),_0x175e9f=program[_0x4d48b0(0x355)](),_0x41df06=await createTDXInstance(_0x175e9f),_0x119235=await _0x580ae7[_0x4d48b0(0x437)]({'options':{..._0x175e9f,..._0x5bb159},'args':_0x2789d1?[_0x5b4b5d,_0x2789d1]:[_0x5b4b5d],'tdx':_0x41df06});gracefulExit(_0x119235);}),psPzServiceCmd[a2_0x3547a0(0x24c)]('update\x20<service_id>\x20[parent_segment]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x403))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x406),'New\x20service\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),'New\x20service\x20description')[a2_0x3547a0(0x320)](async(_0x52889e,_0x3fee2b,_0x47fa1e)=>{const _0x19852b=a2_0x3547a0,_0x1283ab=new PSPzServiceUpdateCommand(),_0x4fc356=program[_0x19852b(0x355)](),_0x44b9df=await createTDXInstance(_0x4fc356),_0x5803c0=await _0x1283ab[_0x19852b(0x437)]({'options':{..._0x4fc356,..._0x47fa1e},'args':_0x3fee2b?[_0x52889e,_0x3fee2b]:[_0x52889e],'tdx':_0x44b9df});gracefulExit(_0x5803c0);}),psPzServiceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x32e))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x307))[a2_0x3547a0(0x320)](async(_0x1cacf6,_0x1d25cf)=>{const _0x39efc4=a2_0x3547a0,_0x2c4d17=new PSPzInitCommand(),_0x18ca1d=program['opts'](),_0x3a4385=await createTDXInstance(_0x18ca1d),_0x57e7bb=await _0x2c4d17[_0x39efc4(0x437)]({'options':{..._0x18ca1d,..._0x1d25cf},'args':_0x1cacf6?[_0x1cacf6]:[],'tdx':_0x3a4385});gracefulExit(_0x57e7bb);});const psPzServiceTokenCmd=psPzServiceCmd['command'](a2_0x3547a0(0x3d1))['description'](a2_0x3547a0(0x1f4));psPzServiceTokenCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x485))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x248))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3c1),a2_0x3547a0(0x1b4))[a2_0x3547a0(0x381)]('--description\x20<text>','Token\x20description')[a2_0x3547a0(0x320)](async(_0x2cf0f2,_0x2f660c,_0x3dd448,_0x1060d5)=>{const _0x473f62=a2_0x3547a0,_0x127aaa=new PSPzServiceTokenCreateCommand(),_0x28f323=program[_0x473f62(0x355)](),_0x584467=await createTDXInstance(_0x28f323),_0x57b7f0=await _0x127aaa[_0x473f62(0x437)]({'options':{..._0x28f323,..._0x1060d5},'args':_0x3dd448?[_0x2cf0f2,_0x2f660c,_0x3dd448]:[_0x2cf0f2,_0x2f660c],'tdx':_0x584467});gracefulExit(_0x57b7f0);}),psPzServiceTokenCmd['command']('delete\x20<token_id>\x20[parent_segment]')['description'](a2_0x3547a0(0x401))[a2_0x3547a0(0x320)](async(_0x40c51f,_0x4f5a71,_0x2a8aee)=>{const _0x59f955=a2_0x3547a0,_0x267e9a=new PSPzServiceTokenDeleteCommand(),_0x56fe44=program['opts'](),_0x3c1333=await createTDXInstance(_0x56fe44),_0x3b8b2e=await _0x267e9a[_0x59f955(0x437)]({'options':{..._0x56fe44,..._0x2a8aee},'args':_0x4f5a71?[_0x40c51f,_0x4f5a71]:[_0x40c51f],'tdx':_0x3c1333});gracefulExit(_0x3b8b2e);}),parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x427))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3e2))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x238),'Master\x20database\x20name')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x474),a2_0x3547a0(0x1ae))[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),a2_0x3547a0(0x244))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2bf),a2_0x3547a0(0x353))[a2_0x3547a0(0x381)](a2_0x3547a0(0x32f),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x3547a0(0x381)]('--timezone\x20<tz>',a2_0x3547a0(0x3d6))[a2_0x3547a0(0x381)]('--attributes\x20<json>',a2_0x3547a0(0x251))[a2_0x3547a0(0x381)](a2_0x3547a0(0x21c),a2_0x3547a0(0x293))[a2_0x3547a0(0x381)](a2_0x3547a0(0x36c),a2_0x3547a0(0x479))[a2_0x3547a0(0x381)](a2_0x3547a0(0x313),a2_0x3547a0(0x2fd))[a2_0x3547a0(0x381)]('--customer-group\x20<json>',a2_0x3547a0(0x387))[a2_0x3547a0(0x381)]('--customer-group-file\x20<file>',a2_0x3547a0(0x209))['action'](async(_0x1a2b66,_0x148e32)=>{const _0x4ababc=a2_0x3547a0,_0x3eb1b0=new ParentSegmentCreateCommand(),_0x5d273d=program[_0x4ababc(0x355)](),_0x35ba62=await createTDXInstance(_0x5d273d),_0x1323e2=await _0x3eb1b0[_0x4ababc(0x437)]({'options':{..._0x5d273d,..._0x148e32},'args':[_0x1a2b66],'tdx':_0x35ba62});gracefulExit(_0x1323e2);}),parentCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x484))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3b7))[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),'Updated\x20description')['option'](a2_0x3547a0(0x2bf),a2_0x3547a0(0x212))['option'](a2_0x3547a0(0x32f),'Updated\x20schedule\x20option')[a2_0x3547a0(0x381)](a2_0x3547a0(0x480),a2_0x3547a0(0x2b8))[a2_0x3547a0(0x381)](a2_0x3547a0(0x253),a2_0x3547a0(0x2f9))['option'](a2_0x3547a0(0x335),a2_0x3547a0(0x20a))['option']('--add-behaviors\x20<json>',a2_0x3547a0(0x495))[a2_0x3547a0(0x381)](a2_0x3547a0(0x250),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x3547a0(0x320)](async(_0x351446,_0x31d3eb)=>{const _0x1c3724=a2_0x3547a0,_0x45b7bc=new ParentSegmentUpdateCommand(),_0x15a02a=program[_0x1c3724(0x355)](),_0x226dc1=await createTDXInstance(_0x15a02a),_0x423a24=await _0x45b7bc[_0x1c3724(0x437)]({'options':{..._0x15a02a,..._0x31d3eb},'args':[_0x351446],'tdx':_0x226dc1});gracefulExit(_0x423a24);}),folderCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3bc))[a2_0x3547a0(0x1cf)]('Create\x20segment\x20folder')['option'](a2_0x3547a0(0x356),a2_0x3547a0(0x4c0))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1e4),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x3547a0(0x320)](async(_0x4118b5,_0x31781e,_0x253e1e)=>{const _0x571e9b=a2_0x3547a0,_0x285e59=new SegmentFolderCreateCommand(),_0x3cfd19=program[_0x571e9b(0x355)](),_0x114c07=await createTDXInstance(_0x3cfd19),_0x219a10=await _0x285e59[_0x571e9b(0x437)]({'options':{..._0x3cfd19,..._0x253e1e},'args':[_0x4118b5,_0x31781e],'tdx':_0x114c07});gracefulExit(_0x219a10);}),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2c5))['description'](a2_0x3547a0(0x2b4))[a2_0x3547a0(0x320)](async(_0x195e79,_0x51d3fe)=>{const _0x4f7a91=a2_0x3547a0,_0x33f99f=new ActivationsCommand(),_0x210c5a=program[_0x4f7a91(0x355)](),_0x4505d7=await createTDXInstance(_0x210c5a),_0x21aae3=await _0x33f99f['run']({'options':{..._0x210c5a,..._0x51d3fe},'args':[_0x195e79],'tdx':_0x4505d7});gracefulExit(_0x21aae3);});const workflowCmd=program['command'](a2_0x3547a0(0x41f))[a2_0x3547a0(0x339)]('wf')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1cd)),wfProjectCmd=workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x4c4))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x389)),wfProjectListAction=async(_0x1b9d91,_0x5dc39d)=>{const _0x330f3c=a2_0x3547a0,_0x267dc9=new WorkflowProjectsCommand(),_0x4e9b72=program[_0x330f3c(0x355)](),_0x146a94=await createTDXInstance(_0x4e9b72),_0x3ceef3=await _0x267dc9[_0x330f3c(0x437)]({'options':{..._0x4e9b72,..._0x5dc39d},'args':_0x1b9d91?[_0x1b9d91]:[],'tdx':_0x146a94});gracefulExit(_0x3ceef3);};wfProjectCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))['description'](a2_0x3547a0(0x3e9))['action'](wfProjectListAction),workflowCmd['command'](a2_0x3547a0(0x29f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2aa))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x1bbf30,_0x2ff51b)=>{const _0xb1626b=a2_0x3547a0,_0x3c84fe=new WorkflowWorkflowsCommand(),_0x2cdd96=program['opts'](),_0x2c207c=await createTDXInstance(_0x2cdd96),_0x3be66d=await _0x3c84fe[_0xb1626b(0x437)]({'options':{..._0x2cdd96,..._0x2ff51b},'args':_0x1bbf30?[_0x1bbf30]:[],'tdx':_0x2c207c});gracefulExit(_0x3be66d);};function a2_0x4e7d(){const _0x3abfc1=['Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','restore\x20<folder>','Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)','show\x20<policy>','--skip-validation','--name\x20<name>','view\x20<name-or-path>','Push\x20without\x20confirmation','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--dir\x20<dir>','Custom\x20revision\x20name\x20(default:\x20timestamp)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','[task-name]','create\x20[name]','llm','allowExcessArguments','Pull\x20campaigns\x20to\x20YAML\x20files','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','-a,\x20--agent\x20<name>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Make\x20segment\x20invisible\x20(default:\x20visible)','split','Starter\x20message','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','delete\x20<project-name-or-id>','directory','workflow','desc','--public','senders\x20[pattern]','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','set\x20<key=value>','set','List\x20available\x20connector\x20types','create\x20<name>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20segment\x20details\x20(alias\x20for\x20view)','--from-task\x20<task>','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','--last','pull\x20<project>\x20[target-dir]','2257175SGvoFH','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','catch','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','attempts\x20[project]','createAsync','use\x20<project-name>','Show\x20timeline\x20for\x20specific\x20attempt','Comma-separated\x20tags','run','download\x20<project-name>\x20[output-dir]','Show\x20segment\x20schema\x20(column\x20types)','Show\x20items\x20updated\x20within\x20N\x20days','show\x20<job-id>','--result\x20<url>','Pull\x20child\x20segments\x20to\x20YAML\x20files','Manage\x20workflow\x20schedules\x20(enable/disable)','Enable\x20a\x20disabled\x20workflow\x20schedule','chats','Always-on\x20campaign\x20management','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','variadic','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Commands:','--to\x20<timestamp>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--starter-message\x20<text>','Filtering\x20rule\x20from\x20JSON\x20file','Read\x20HTML\x20template\x20from\x20file','--version\x20<number>','Show\x20a\x20specific\x20realtime\x20personalization','--name\x20<text>','New\x20segment\x20name','Show\x20agent\x20details','Output\x20as\x20JSON\x20Lines','Overwrite\x20existing\x20profile','Pause\x20a\x20running\x20journey','--parent-segment\x20<name>','--delete','List\x20jobs','jsonl','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Delete\x20a\x20realtime\x20personalization','new\x20<title>','--trace','Disable\x20a\x20workflow\x20schedule','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Resume\x20a\x20conversation\x20(shows\x20selector)','Task\x20name\x20for\x20logs\x20action','Delivery\x20operations\x20(email\x20senders)','Segment\x20description','--include-retried','--max-depth\x20<depth>','hook','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','setup','Maximum\x20tool\x20iterations\x20(default:\x204)','result\x20<job-id>','--temperature\x20<n>','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','attempt','policy','show\x20<name-or-id>','Set\x20operation\x20timeout\x20in\x20seconds','Resume\x20activations\x20in\x20an\x20RT\x20journey','logLevel','chat\x20[message...]','status','--table\x20<table>','clone\x20[source]','439597yZGvol','DEBUG','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Behaviors\x20as\x20JSON\x20string','Push\x20YAML\x20files\x20to\x20CAS\x20API','--no-color','Show\x20workspace\x20details','HTML\x20template\x20content','--include-history','beefree','--timezone\x20<tz>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','update\x20<name>','create\x20<name>\x20<service_id>\x20[parent_segment]','noColor','Document\x20body\x20text','mcp','show\x20<name>','New\x20campaign\x20name','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','log\x20<chat-id>','after','LLM\x20project\x20management','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--revision\x20<revision>','session','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','push','Add\x20behaviors\x20as\x20JSON\x20string','Enable\x20UTM\x20tracking','--include-stats','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','argumentTerm','Apply\x20a\x20template','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Invalid\x20editor\x20type:\x20','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','show\x20<personalization_id>','parent_segment','-r,\x20--resume','Attempt\x20ID','Validate\x20template\x20YAML\x20files\x20locally','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','schema\x20<type>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Override\x20project\x20name','backup\x20<name>','Include\x20retried\x20attempts\x20(for\x20list)','Start\x20a\x20new\x20chat\x20session','run\x20[workflow]','Create\x20a\x20scheduled\x20query','upgrade','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','1826190Dxqrmm','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','addHelpText','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Include\x20execution\x20statistics','List\x20all\x20workflow\x20schedules','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','profiles','push\x20[path]','Clear\x20workflow\x20project\x20context','journey','View\x20a\x20specific\x20version\x20of\x20a\x20journey','tdx\x20','Folder\x20description','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','-X,\x20--method\x20<method>','Show\x20email\x20template\x20details','project','connections','isDirectory','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','--enriched','Agent\x20name','Journey\x20version\x20management','Preview\x20composable\x20segment\x20query\x20on\x20CDW','Options:','--attribute\x20[name]','hidden','Run\x20tests\x20for\x20an\x20LLM\x20agent','Job\x20priority\x20(-2\x20to\x202)','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','Include\x20all\x20items\x20(no\x20stale\x20filtering)','Run\x20Trino\x20query\x20with\x20streaming\x20results','sql\x20[name]','Master\x20table\x20name','Pull\x20specific\x20campaign\x20by\x20name','list\x20[project]','Sections\x20as\x20an\x20inline\x20JSON\x20array','workspace','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Skip\x20validation\x20of\x20.dig\x20files','parse','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','[attempt-id]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','desc\x20[name]','--interval\x20<range>','1136112whaMgv','Show\x20connection\x20details\x20by\x20name','stderr','Read\x20query\x20from\x20file','...','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Open\x20parent\x20segment\x20in\x20web\x20browser','-o,\x20--output\x20<folder>','Show\x20journey\x20details','claude-4.5-sonnet','Delete\x20an\x20LLM\x20project','Cron\x20expression\x20for\x20scheduling','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--subject\x20<subject>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','pull\x20[parent_or_file]','delete\x20<agent-name>','Workflow\x20(Digdag)\x20management\x20commands','list\x20[name]','description','--audience-id\x20<id>','Move\x20to\x20folder','long','Workspace\x20management','Path\x20is\x20not\x20a\x20directory:\x20','tasks','parent','Maximum\x20rows\x20to\x20display','--retry-limit\x20<0~32>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','--in\x20<database>','\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,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','--system-prompt\x20<text>','--num\x20<1-10>','options','accessToken','List\x20email\x20senders','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Name\x20for\x20the\x20new\x20project\x20(required)','--parent-folder\x20<name>','Trino\x20catalog\x20(default:\x20td)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Parent\x20segment\x20management','timeline\x20[project.workflow]','1207860XraPkS','[DEPRECATED]\x20Segment\x20folder\x20management','validate\x20[name]','-w,\x20--web','\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','--plaintext\x20<text>','--time\x20<iso8601>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','-p,\x20--profile\x20<name>','isTTY','enable\x20<id>','Personalization\x20service\x20token\x20management','--folder\x20<name>','--delay\x20<seconds>','resume\x20<name-or-id>','colorFn','claude\x20[args...]','cas','Get\x20current\x20RT\x20configuration\x20version\x20status','-o,\x20--output\x20<dir>','isArray','Delete\x20an\x20agent','--limit\x20<rows>','35DAXLfe','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','\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\x20\x20$\x20tdx\x20profile\x20create\x20prod\x20-f\x20\x20\x20\x20\x20\x20#\x20Overwrite\x20existing\x20\x27prod\x27\x20profile\x0a','template','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','use\x20[resource]\x20[value]','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','Customer\x20group\x20from\x20JSON\x20file','Add\x20attributes\x20from\x20JSON\x20file','Create\x20a\x20new\x20always-on\x20campaign','log','trino','Database\x20name\x20(required)','padWidth','aliases','Kill\x20a\x20job','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','find','--tags\x20<tags>','preview\x20<segment_name>','Run\x20a\x20scheduled\x20query\x20immediately','219YpNkfu','Unknown\x20action:\x20','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','parents\x20[pattern]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--attributes-file\x20<file>','Ending\x20offset\x20(default:\x2020)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','info\x20[segment_name]','Delete\x20a\x20profile','use\x20<name>','workflows\x20[project]','\x20(resolved\x20to\x20','--attempt-id\x20<id>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--llm-project\x20<name>','versions\x20<name-or-path>','Show\x20job\x20details','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a','Campaign\x20description','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Initial\x20status','journeys\x20[pattern]','-r,\x20--recursive','pull\x20[workspace-name]','--priority\x20<-2~2>','Starting\x20offset\x20(default:\x200)','show\x20[segment_name]','--default','show\x20<folder_ref>','Query\x20engine\x20version','--database\x20<db>','--catalog\x20<catalog>','--json','--format\x20<format>','\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','Retry\x20limit\x20(0\x20to\x2032)','includes','Show\x20Kanban\x20board\x20view\x20of\x20tasks','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--kind\x20<kind>','--param\x20<key=value>','disable\x20<id>','Parent\x20segment\x20description','join','List\x20activations\x20for\x20a\x20journey','--template\x20<name>','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','list\x20[pattern]','push\x20[name]','--workspace\x20<name>','command','-d,\x20--database\x20<database>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','--yes','--add-behaviors-file\x20<file>','Attributes\x20as\x20JSON\x20string','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--add-attributes\x20<json>','Duplicate\x20a\x20campaign','-d,\x20--database\x20<db>','login','tdx','run\x20[name]','folders\x20<parent_name>','Maximum\x20recursion\x20depth\x20(default:\x2010)','campaign','pause\x20<name-or-path>','clear','work','settings\x20<type>','--model\x20<name>','Update\x20a\x20realtime\x20personalization\x20entity','databases\x20[pattern]','--master','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','show\x20[name]','argv','-y,\x20--yes','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','fields\x20[parent_name]','create\x20<name-or-path>','Skip\x20confirmation\x20prompts','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','create','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','entries','--max-tool-iterations\x20<n>','--follow','Delete\x20a\x20campaign','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--job-type\x20<type>','Database\x20management\x20commands','Run\x20specific\x20tests\x20(comma-separated)','push\x20[parent_or_file]','segments\x20[path]','history\x20<name>','--from\x20<date>','preAction','-o,\x20--output\x20<file>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','always-on-campaign','Enable\x20verbose\x20logging','agents\x20[pattern]','use\x20<path>','Workflow\x20attempt\x20management','Email\x20subject\x20template','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Workspace\x20name\x20(required)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','stringify','Pull\x20templates\x20to\x20YAML\x20files','Output\x20file\x20path\x20(default:\x20<name>.yml)','board','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','argumentDescription','patch\x20<personalization_id>','configuration_versions\x20[name]','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Attributes\x20from\x20JSON\x20file','--type\x20<type>','duplicate\x20<name-or-id>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','Update\x20an\x20email\x20template','set\x20<args...>','Plaintext\x20template\x20content','pause\x20<name-or-id>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','List\x20secret\x20keys\x20for\x20a\x20project','Personalization\x20service\x20management','projects\x20[pattern]','profile','registeredArguments','filter','29644DhlWXn','YAML\x20file\x20path\x20for\x20unpushed\x20segment','--kind\x20<type>','User\x20management\x20commands','--output\x20<file>','pull\x20[project]\x20[agent-name]','show\x20<agent-name>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--email-sender-id\x20<id>','retry\x20<session-id>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','attempt:','--status\x20<status>','optionDescription','-f,\x20--force','--dry-run','--account-name\x20<name>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--github\x20<owner/repo>','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Updated\x20timezone','Set\x20or\x20show\x20parent\x20segment\x20context','--from\x20<timestamp>','List\x20journeys\x20in\x20current\x20context','delete\x20<name-or-id>','database','Project\x20description','--schedule-type\x20<type>','help','--body\x20<body>','map','length','show\x20[table]','activations\x20<segment_name>','List\x20composable\x20audiences','Revision\x20name\x20(default:\x20timestamp)','secrets','Show\x20all\x20files\x20including\x20valid\x20ones','--stream','--name\x20<new_name>','Pull\x20workflow\x20project\x20to\x20local\x20folder','Open\x20a\x20document\x20in\x20$EDITOR','required','slice','Manage\x20workflow\x20project\x20secrets','Pull\x20specific\x20template\x20by\x20name','Name\x20for\x20the\x20duplicated\x20campaign','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','argument','types','-u,\x20--use','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','table','Skip\x20population\x20counting','Validate\x20journey\x20YAML\x20files\x20locally','List\x20all\x20versions\x20of\x20a\x20journey','--folder-id\x20<id>','Make\x20service\x20public\x20(default:\x20private)','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Table\x20management\x20commands','list','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--help','--jsonl','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','item','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','error','requiredOption','--no-count-population','Updated\x20description','show\x20<service_id>\x20[parent_segment]','\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--session\x20<id>','apiKey','schedule','information_schema','forEach','Job\x20management\x20commands','Maximum\x20number\x20of\x20nodes','Add\x20attributes\x20as\x20JSON\x20string','Create\x20a\x20new\x20document','--limit\x20<number>','--clear','Behaviors\x20from\x20JSON\x20file','Include\x20retried\x20attempts','Interactive\x20chat\x20selector','--timeout\x20<seconds>','--verbose','--stage\x20<name>','chdir','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','padEnd','--html-file\x20<path>','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--color','--table','--to\x20<date>','Submit\x20a\x20job','repeat','-f,\x20--file\x20<path>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Campaign\x20type\x20(email\x20or\x20push)','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','Generate\x20test\x20conversations\x20without\x20evaluation','--behaviors-file\x20<file>','--behavior\x20[name]','Update\x20a\x20campaign','Remove\x20API\x20key\x20from\x20system\x20keychain','open\x20<name>','Clear\x20session\x20context','Show\x20authentication\x20status\x20and\x20current\x20context','--session-time\x20<time>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','--from\x20<n>','action','List\x20all\x20users\x20in\x20the\x20account','--no-proxy','update\x20<name-or-id>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Output\x20as\x20JSON','usage','commandUsage','Model\x20type\x20(default:\x20claude-4.5-sonnet)','validate\x20[file]','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','delete\x20<service_id>\x20[parent_segment]','CDP\x20segment\x20management\x20commands','Workspace\x20description','init\x20[name]','--schedule-option\x20<value>','--data\x20<data>','always-on-campaigns\x20[pattern]','Workflow\x20parameter\x20(repeatable)','Resume\x20a\x20paused\x20always-on\x20campaign','Launch\x20a\x20campaign','--add-attributes-file\x20<file>','New\x20workspace\x20name','folder','view\x20[name]','alias','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Delete\x20a\x20workspace','3334956lRFIfd','--all','--sections\x20<json>','update\x20<agent-name>','--json-columns\x20<cols>','Resume\x20a\x20paused\x20journey','--full','exit','--params\x20<json>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','resume\x20<name-or-path>','Force\x20retry\x20even\x20if\x20not\x20failed','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Result\x20output\x20destination\x20URL','stdout','Show\x20schedule\x20execution\x20history','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--invisible','push\x20[target]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Invalid\x20--limit\x20value:\x20\x22','pull\x20[name]','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','configureHelp','opts','--description\x20<text>','--site\x20<site>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','launch\x20<name-or-id>','--cron\x20<expression>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','preview\x20[file]','tsv','Show\x20master\x20table\x20sample\x20data','Continue\x20most\x20recent\x20conversation','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20a\x20scheduled\x20query','json','Skip\x20confirmation\x20prompt','format','gitRevision','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--description\x20<desc>','Agent\x20description','Create\x20a\x20new\x20campaign','--behaviors\x20<json>','Template\x20name','--enable-utm-tracking','TRACE','Resume\x20from\x20specific\x20task\x20(retry)','buildTime','--resume-from\x20<task>','Preview\x20changes\x20without\x20pushing','get','Access\x20control\x20policy\x20commands','Initialize\x20a\x20new\x20workspace','grapesjs','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','use\x20[project]','connection','[options]\x20--\x20[claude-code-args...]','72OHJNka','subcommandTerm','List\x20agents\x20in\x20current\x20project','links\x20<name>','\x20-\x20built\x20','option','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','0.7','--in\x20<db>','RT\x20Journey\x20management','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','Customer\x20group\x20as\x20JSON\x20string','service','Workflow\x20project\x20management','resume_activations\x20<journeyId>','Request\x20body\x20as\x20JSON\x20string','engage','outputHelp','Show\x20only\x20master\x20table\x20validation','us01','RT\x202.0\x20configuration\x20management','name','List\x20composable\x20segments\x20for\x20an\x20audience','--priority\x20<priority>','--next','kill','INVALID_ARGUMENT','Describe\x20table\x20schema','allowUnknownOption','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','delivery','Limit\x20number\x20of\x20rows','--debug','Directory\x20does\x20not\x20exist:\x20','List\x20all\x20available\x20profiles','Workspace\x20name','Show\x20journey\x20statistics','--segment\x20<path>','describe\x20[table]','trace','List\x20available\x20LLM\x20models','--to\x20<n>','-1d','System\x20prompt/instructions\x20(default:\x20empty)','--assignee\x20<assignee>','Query\x20type:\x20trino\x20or\x20hive','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--force','--audience\x20<name>','job','list\x20[path]','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Show\x20journey\x20table\x20column-to-step\x20mapping','--rule-file\x20<file>','schedules','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','--reason\x20<text>','Personalization\x20name','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Parse\x20and\x20validate\x20without\x20executing','_list-commands','fields\x20[name]','Open\x20segment\x20in\x20web\x20browser','create\x20<parent_name>\x20<folder_name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','audience','Email\x20sender\x20ID\x20for\x20delivery','-c,\x20--continue','--allowed-ips\x20<ips>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','sessions\x20[project]','Arguments:','--html\x20<html>','jobs','Delete\x20an\x20email\x20template','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Read\x20SQL\x20query\x20from\x20file','Validate\x20campaign\x20YAML\x20files\x20locally','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Timezone\x20for\x20cron\x20(default:\x20UTC)','--result\x20<target>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','submit\x20[query]','token','CDP\x20Journey\x20Orchestration\x20commands','subcommandDescription','Create\x20a\x20new\x20agent\x20in\x20current\x20project','AI-native\x20work\x20management','Timezone\x20(e.g.,\x20America/Los_Angeles)','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','Open\x20journey\x20in\x20web\x20browser','--file\x20<path>','Get\x20job\x20results','Priority\x20(critical,\x20high,\x20medium,\x20low)','Export\x20journey(s)\x20as\x20YAML\x20files','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','upgrade\x20[version]','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','version','stats\x20<name-or-path>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','commands','Include\x20subtasks\x20in\x20tasks\x20output','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)',',\x20version\x20','Campaign\x20name','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Delay\x20in\x20seconds\x20before\x20execution','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Target\x20directory\x20for\x20YAML\x20files','validate\x20[target]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Include\x20raw\x20history\x20data\x20in\x20output','Show\x20document\x20details','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Check\x20for\x20updates\x20without\x20installing','--start-at\x20<datetime>','INFO','--days\x20<n>','Usage:\x20','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','Create\x20a\x20new\x20profile','query\x20[sql]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Campaign\x20management','Resume\x20a\x20paused\x20campaign','Composable\x20audience\x20name','Scheduled\x20query\x20management\x20commands'];a2_0x4e7d=function(){return _0x3abfc1;};return a2_0x4e7d();}workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x223))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2e8))[a2_0x3547a0(0x320)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x492))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x320fa7,_0x4a137f)=>{const _0x9fb078=a2_0x3547a0,_0x5daa72=new WorkflowSessionsCommand(),_0x1f27e1=program[_0x9fb078(0x355)](),_0x9a32b0=await createTDXInstance(_0x1f27e1),_0x19bc47=await _0x5daa72[_0x9fb078(0x437)]({'options':{..._0x1f27e1,..._0x4a137f},'args':_0x320fa7?[_0x320fa7]:[],'tdx':_0x9a32b0});gracefulExit(_0x19bc47);};wfSessionCmd['command'](a2_0x3547a0(0x1b0))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x48b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2af),a2_0x3547a0(0x2e2))[a2_0x3547a0(0x381)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x447),a2_0x3547a0(0x3ea))['action'](wfSessionListAction),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3c3))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x481))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2af),a2_0x3547a0(0x2e2))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2ba),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x447),a2_0x3547a0(0x3ea))[a2_0x3547a0(0x320)](wfSessionListAction);const wfAttemptListAction=async(_0x642fea,_0x323d3c)=>{const _0x26dd0b=a2_0x3547a0,_0x958af0=new WorkflowAttemptsCommand(),_0x2108ce=program['opts'](),_0x196134=await createTDXInstance(_0x2108ce),_0x482a6b=await _0x958af0[_0x26dd0b(0x437)]({'options':{..._0x2108ce,..._0x323d3c},'args':_0x642fea?[_0x642fea]:[],'tdx':_0x196134});gracefulExit(_0x482a6b);},attemptCmd=workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x46c))['description'](a2_0x3547a0(0x283))['argument'](a2_0x3547a0(0x1b8),a2_0x3547a0(0x4a3))[a2_0x3547a0(0x2d5)]('[action]',a2_0x3547a0(0x2b7))['argument'](a2_0x3547a0(0x40d),a2_0x3547a0(0x45f))[a2_0x3547a0(0x381)]('--include-subtasks',a2_0x3547a0(0x3e4))['option'](a2_0x3547a0(0x3b4),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x3547a0(0x381)](a2_0x3547a0(0x372),a2_0x3547a0(0x370))[a2_0x3547a0(0x381)](a2_0x3547a0(0x344),a2_0x3547a0(0x1f0))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3ab),a2_0x3547a0(0x348))[a2_0x3547a0(0x381)]('--include-retried',a2_0x3547a0(0x4ab))['action'](async(_0x2ea867,_0x49456b,_0x492b1a,_0x5abf63)=>{const _0x5f1d72=a2_0x3547a0;if(_0x2ea867==='list'){await wfAttemptListAction(_0x49456b,_0x5abf63);return;}if(!_0x2ea867){attemptCmd[_0x5f1d72(0x2c0)]();return;}const _0x7fba28=program[_0x5f1d72(0x355)](),_0x554671=await createTDXInstance(_0x7fba28);let _0x1de6fd=0x0;if(!_0x49456b){const _0x28f4fb=new WorkflowAttemptCommand();_0x1de6fd=await _0x28f4fb['run']({'options':{..._0x7fba28,..._0x5abf63},'args':[_0x2ea867],'tdx':_0x554671});}else{if(_0x49456b==='logs'){const _0xb1e775=new WorkflowLogsCommand();_0x1de6fd=await _0xb1e775[_0x5f1d72(0x437)]({'options':{..._0x7fba28,..._0x5abf63},'args':_0x492b1a?[_0x2ea867,_0x492b1a]:[_0x2ea867],'tdx':_0x554671});}else{if(_0x49456b===_0x5f1d72(0x1d5)){const _0x2f2528=new WorkflowTasksCommand();_0x1de6fd=await _0x2f2528[_0x5f1d72(0x437)]({'options':{..._0x7fba28,..._0x5abf63},'args':[_0x2ea867],'tdx':_0x554671});}else{if(_0x49456b===_0x5f1d72(0x395)){const _0x3ab4bd=new WorkflowKillCommand();_0x1de6fd=await _0x3ab4bd[_0x5f1d72(0x437)]({'options':{..._0x7fba28,..._0x5abf63},'args':[_0x2ea867],'tdx':_0x554671});}else{if(_0x49456b==='retry'){const _0x540cd2=new WorkflowRetryCommand();_0x1de6fd=await _0x540cd2[_0x5f1d72(0x437)]({'options':{..._0x7fba28,..._0x5abf63},'args':[_0x5f1d72(0x2ae)+_0x2ea867],'tdx':_0x554671});}else console[_0x5f1d72(0x2eb)](_0x5f1d72(0x218)+_0x49456b),console[_0x5f1d72(0x2eb)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x1de6fd=0x1;}}}}gracefulExit(_0x1de6fd);});attemptCmd[a2_0x3547a0(0x24c)]('list\x20[project]')['description'](a2_0x3547a0(0x368))['option'](a2_0x3547a0(0x462),a2_0x3547a0(0x2fe))[a2_0x3547a0(0x320)](wfAttemptListAction),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x432))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x462),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1e8))['description'](a2_0x3547a0(0x35c))[a2_0x3547a0(0x381)](a2_0x3547a0(0x271),'Follow/watch\x20timeline\x20for\x20running\x20attempts')['option']('--session-id\x20<id>',a2_0x3547a0(0x28e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x225),a2_0x3547a0(0x435))[a2_0x3547a0(0x320)](async(_0x288948,_0x26c804)=>{const _0x1cac92=a2_0x3547a0,_0x14a00a=new WorkflowTimelineCommand(),_0x4f2555=program['opts'](),_0x216304=await createTDXInstance(_0x4f2555),_0x4599b2=await _0x14a00a[_0x1cac92(0x437)]({'options':{..._0x4f2555,..._0x26c804},'args':_0x288948?[_0x288948]:[],'tdx':_0x216304});gracefulExit(_0x4599b2);}),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2ac))['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x3547a0(0x42a),'Resume\x20from\x20specific\x20task')[a2_0x3547a0(0x381)]('--params\x20<json>',a2_0x3547a0(0x49d))[a2_0x3547a0(0x320)](async(_0x232024,_0x33bb1d)=>{const _0x42ea03=new WorkflowRetryCommand(),_0x3ebdfc=program['opts'](),_0x4bb10f=await createTDXInstance(_0x3ebdfc),_0x513079=await _0x42ea03['run']({'options':{..._0x3ebdfc,..._0x33bb1d},'args':[_0x232024],'tdx':_0x4bb10f});gracefulExit(_0x513079);}),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x4ad))['description'](a2_0x3547a0(0x30f))['option'](a2_0x3547a0(0x242),a2_0x3547a0(0x332),(_0x37374a,_0x2f8fdf=[])=>[..._0x2f8fdf,_0x37374a],[])[a2_0x3547a0(0x381)](a2_0x3547a0(0x31a),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x3547a0(0x320)](async(_0x22d0a5,_0x8848)=>{const _0x2f4401=a2_0x3547a0,_0x48b91a=new WorkflowRunCommand(),_0x81e1d6=program[_0x2f4401(0x355)](),_0xfe6d47=await createTDXInstance(_0x81e1d6),_0x3ab669=await _0x48b91a[_0x2f4401(0x437)]({'options':{..._0x81e1d6,..._0x8848},'args':_0x22d0a5?[_0x22d0a5]:[],'tdx':_0xfe6d47});gracefulExit(_0x3ab669);}),workflowCmd['command'](a2_0x3547a0(0x438))['description'](a2_0x3547a0(0x1d9))['option']('--revision\x20<revision>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)')['action'](async(_0x14ed04,_0x4b71eb,_0x1785ed)=>{const _0x38cefb=a2_0x3547a0,_0x37b21a=new WorkflowDownloadCommand(),_0x3a96b3=program[_0x38cefb(0x355)](),_0x26c8b7=await createTDXInstance(_0x3a96b3),_0x28cd78=await _0x37b21a[_0x38cefb(0x437)]({'options':{..._0x3a96b3,..._0x1785ed},'args':[_0x14ed04,_0x4b71eb||'.'],'tdx':_0x26c8b7});gracefulExit(_0x28cd78);}),workflowCmd['command'](a2_0x3547a0(0x42d))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2cc))[a2_0x3547a0(0x381)](a2_0x3547a0(0x491),'Pull\x20specific\x20revision\x20(default:\x20latest)')['option'](a2_0x3547a0(0x2b2),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x3547a0(0x320)](async(_0xf6cb90,_0xe90d50,_0x3c8bce)=>{const _0x272ec1=a2_0x3547a0,_0x32809d=new WorkflowPullCommand(),_0x35fbc8=program[_0x272ec1(0x355)](),_0x355ea9=await createTDXInstance(_0x35fbc8),_0x5e596e=await _0x32809d[_0x272ec1(0x437)]({'options':{..._0x35fbc8,..._0x3c8bce},'args':_0xe90d50?[_0xf6cb90,_0xe90d50]:[_0xf6cb90],'tdx':_0x355ea9});gracefulExit(_0x5e596e);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x443))[a2_0x3547a0(0x381)](a2_0x3547a0(0x491),a2_0x3547a0(0x40b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x373))[a2_0x3547a0(0x381)](a2_0x3547a0(0x405),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x362c4b,_0x97414a)=>{const _0x517e80=a2_0x3547a0,_0x4e3a02=new WorkflowPushCommand(),_0x2735b4=program['opts'](),_0x291835=await createTDXInstance(_0x2735b4),_0x28ce2b=await _0x4e3a02[_0x517e80(0x437)]({'options':{..._0x2735b4,..._0x97414a},'args':_0x362c4b?[_0x362c4b]:[],'tdx':_0x291835});gracefulExit(_0x28ce2b);}),workflowCmd['command']('upload\x20[project-name-or-dir]')['description']('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x406),a2_0x3547a0(0x4a9))[a2_0x3547a0(0x381)]('--revision\x20<revision>',a2_0x3547a0(0x2c7))['option'](a2_0x3547a0(0x405),a2_0x3547a0(0x1b5))[a2_0x3547a0(0x320)](async(_0x4f6363,_0x4ea88b)=>{const _0xcbb313=a2_0x3547a0,_0x282e0b=new WorkflowUploadCommand(),_0x16f04b=program[_0xcbb313(0x355)](),_0x318aa2=await createTDXInstance(_0x16f04b),_0x28d1f0=await _0x282e0b[_0xcbb313(0x437)]({'options':{..._0x16f04b,..._0x4ea88b},'args':_0x4f6363?[_0x4f6363]:[],'tdx':_0x318aa2});gracefulExit(_0x28d1f0);}),workflowCmd['command']('clone\x20[source-dir]')[a2_0x3547a0(0x1cf)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3547a0(0x381)]('--name\x20<name>',a2_0x3547a0(0x1e3))[a2_0x3547a0(0x381)](a2_0x3547a0(0x491),a2_0x3547a0(0x40b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3547a0(0x381)]('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3547a0(0x320)](async(_0x11a13a,_0x32fa36)=>{const _0x49e658=a2_0x3547a0,_0x449114=new WorkflowCloneCommand(),_0x540453=program['opts'](),_0x3dffc9=await createTDXInstance(_0x540453),_0x1ec0b9=await _0x449114[_0x49e658(0x437)]({'options':{..._0x540453,..._0x32fa36},'args':_0x11a13a?[_0x11a13a]:[],'tdx':_0x3dffc9});gracefulExit(_0x1ec0b9);}),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x41d))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x33a))[a2_0x3547a0(0x320)](async(_0x316866,_0x31e7e8)=>{const _0x316a06=a2_0x3547a0,_0x241eec=new WorkflowDeleteCommand(),_0x27d2e2=program[_0x316a06(0x355)](),_0x257ff3=await createTDXInstance(_0x27d2e2),_0x59918e=await _0x241eec[_0x316a06(0x437)]({'options':{..._0x27d2e2,..._0x31e7e8},'args':[_0x316866],'tdx':_0x257ff3});gracefulExit(_0x59918e);}),workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x379))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x423))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2fc),a2_0x3547a0(0x4bc))[a2_0x3547a0(0x320)](async(_0x284c5d,_0x50f3b6)=>{const _0x18abcb=a2_0x3547a0,_0x55cca0=new WorkflowUseCommand(),_0x33dcc6=program['opts'](),_0x387d12=await createTDXInstance(_0x33dcc6),_0x4bd3d4=await _0x55cca0[_0x18abcb(0x437)]({'options':{..._0x33dcc6,..._0x50f3b6},'args':_0x284c5d?[_0x284c5d]:[],'tdx':_0x387d12});gracefulExit(_0x4bd3d4);});const wfSecretsCmd=workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2c8))['description'](a2_0x3547a0(0x2d0));wfSecretsCmd[a2_0x3547a0(0x24c)]('list\x20[project]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x29d))[a2_0x3547a0(0x320)](async(_0x1564e1,_0x5bf00b)=>{const _0x3ccf26=a2_0x3547a0,_0x5b592e=new WorkflowSecretsListCommand(),_0xfaf290=program[_0x3ccf26(0x355)](),_0x2a17e8=await createTDXInstance(_0xfaf290),_0x2f66d8=await _0x5b592e[_0x3ccf26(0x437)]({'options':{..._0xfaf290,..._0x5bf00b},'args':_0x1564e1?[_0x1564e1]:[],'tdx':_0x2a17e8});gracefulExit(_0x2f66d8);}),wfSecretsCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x299))[a2_0x3547a0(0x1cf)]('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')['action'](async(_0x405015,_0x4ae091)=>{const _0xf06e90=a2_0x3547a0,_0x334060=new WorkflowSecretsSetCommand(),_0x395497=program[_0xf06e90(0x355)](),_0x39582a=await createTDXInstance(_0x395497),_0x1f680d=await _0x334060[_0xf06e90(0x437)]({'options':{..._0x395497,..._0x4ae091},'args':_0x405015,'tdx':_0x39582a});gracefulExit(_0x1f680d);}),wfSecretsCmd[a2_0x3547a0(0x24c)]('delete\x20<args...>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x252))['action'](async(_0x357c8d,_0x45abe3)=>{const _0x2f442a=a2_0x3547a0,_0x285ac9=new WorkflowSecretsDeleteCommand(),_0x29e7d7=program['opts'](),_0x22c710=await createTDXInstance(_0x29e7d7),_0x5c52bc=await _0x285ac9[_0x2f442a(0x437)]({'options':{..._0x29e7d7,..._0x45abe3},'args':_0x357c8d,'tdx':_0x22c710});gracefulExit(_0x5c52bc);});const wfScheduleCmd=workflowCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2f4))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x43e));wfScheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1f3))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x43f))[a2_0x3547a0(0x320)](async(_0x5d6f8c,_0x69a77)=>{const _0x2df405=a2_0x3547a0,_0x29fcea=new WorkflowScheduleEnableCommand(),_0x129b8b=program[_0x2df405(0x355)](),_0x428c86=await createTDXInstance(_0x129b8b),_0x14bb91=await _0x29fcea[_0x2df405(0x437)]({'options':{..._0x129b8b,..._0x69a77},'args':[_0x5d6f8c],'tdx':_0x428c86});gracefulExit(_0x14bb91);}),wfScheduleCmd['command'](a2_0x3547a0(0x243))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x45c))['action'](async(_0x30d727,_0x57754f)=>{const _0x40b616=a2_0x3547a0,_0x2ba15c=new WorkflowScheduleDisableCommand(),_0xead191=program[_0x40b616(0x355)](),_0x172f6b=await createTDXInstance(_0xead191),_0x1e3c3e=await _0x2ba15c[_0x40b616(0x437)]({'options':{..._0xead191,..._0x57754f},'args':[_0x30d727],'tdx':_0x172f6b});gracefulExit(_0x1e3c3e);}),workflowCmd['command'](a2_0x3547a0(0x3b2))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4b7))[a2_0x3547a0(0x320)](async _0x46c271=>{const _0x5192e3=a2_0x3547a0,_0xdcdf4e=new WorkflowSchedulesCommand(),_0x2a78bc=program[_0x5192e3(0x355)](),_0x5f96d4=await createTDXInstance(_0x2a78bc),_0x46d531=await _0xdcdf4e[_0x5192e3(0x437)]({'options':{..._0x2a78bc,..._0x46c271},'args':[],'tdx':_0x5f96d4});gracefulExit(_0x46d531);});const jobCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ad))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2f7)),jobListAction=async _0x199b57=>{const _0xdb347f=a2_0x3547a0,_0x372197=new JobListCommand(),_0x2bca2c=program[_0xdb347f(0x355)](),_0x4b56dd=await createTDXInstance(_0x2bca2c),_0x11c983=await _0x372197[_0xdb347f(0x437)]({'options':{..._0x2bca2c,..._0x199b57},'args':[],'tdx':_0x4b56dd});gracefulExit(_0x11c983);};jobCmd[a2_0x3547a0(0x24c)]('list')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x456))[a2_0x3547a0(0x381)]('--status\x20<status>',a2_0x3547a0(0x382))[a2_0x3547a0(0x320)](jobListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3c6),{'hidden':!![]})[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x226))['option'](a2_0x3547a0(0x2af),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x3547a0(0x320)](jobListAction),jobCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x43b))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x229))[a2_0x3547a0(0x320)](async(_0x54055a,_0x4d0197)=>{const _0x1fe26a=a2_0x3547a0,_0x367f9b=new JobShowCommand(),_0x261c8=program['opts'](),_0xd24ace=await createTDXInstance(_0x261c8),_0x3e5196=await _0x367f9b[_0x1fe26a(0x437)]({'options':{..._0x261c8,..._0x4d0197},'args':[_0x54055a],'tdx':_0xd24ace});gracefulExit(_0x3e5196);}),jobCmd[a2_0x3547a0(0x24c)]('kill\x20<job-id>')['description'](a2_0x3547a0(0x211))[a2_0x3547a0(0x320)](async(_0x554417,_0x20dc31)=>{const _0x52bf40=a2_0x3547a0,_0x2fd9a7=new JobKillCommand(),_0x3338e9=program[_0x52bf40(0x355)](),_0x51a61d=await createTDXInstance(_0x3338e9),_0x395021=await _0x2fd9a7[_0x52bf40(0x437)]({'options':{..._0x3338e9,..._0x20dc31},'args':[_0x554417],'tdx':_0x51a61d});gracefulExit(_0x395021);}),jobCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3d0))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x30c))[a2_0x3547a0(0x381)](a2_0x3547a0(0x275),a2_0x3547a0(0x2e7),a2_0x3547a0(0x20d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x30e),a2_0x3547a0(0x1bf))['option']('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x3547a0(0x2f5))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3ce),a2_0x3547a0(0x3b3))[a2_0x3547a0(0x320)](async(_0xa7834c,_0x45664c)=>{const _0xcb13bc=a2_0x3547a0,_0x561cb8=new JobSubmitCommand(),_0x1d7499=program[_0xcb13bc(0x355)](),_0x5ed642=await createTDXInstance(_0x1d7499),_0x5184a7=await _0x561cb8[_0xcb13bc(0x437)]({'options':{..._0x1d7499,..._0x45664c},'args':_0xa7834c?[_0xa7834c]:[],'tdx':_0x5ed642});gracefulExit(_0x5184a7);}),jobCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x468))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3da))[a2_0x3547a0(0x320)](async(_0xb24bcf,_0x3b1097)=>{const _0x540ff2=a2_0x3547a0,_0x2ac653=new JobResultCommand(),_0x362564=program[_0x540ff2(0x355)](),_0x414cb4=await createTDXInstance(_0x362564),_0x57a517=await _0x2ac653[_0x540ff2(0x437)]({'options':{..._0x362564,..._0x3b1097},'args':[_0xb24bcf],'tdx':_0x414cb4});gracefulExit(_0x57a517);});const scheduleCmd=jobCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2f4))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x400));scheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x42b))[a2_0x3547a0(0x320)](async(_0x247576,_0x122d6e)=>{const _0x4ff694=a2_0x3547a0,_0x539b6a=new ScheduleListCommand(),_0x86faa3=program[_0x4ff694(0x355)](),_0x51c742=await createTDXInstance(_0x86faa3),_0x35a20c=await _0x539b6a[_0x4ff694(0x437)]({'options':{..._0x86faa3,..._0x122d6e},'args':_0x247576?[_0x247576]:[],'tdx':_0x51c742});gracefulExit(_0x35a20c);}),scheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x489))[a2_0x3547a0(0x1cf)]('Show\x20schedule\x20details')[a2_0x3547a0(0x320)](async(_0x14fb83,_0x4bc1c6)=>{const _0x52ae3e=a2_0x3547a0,_0x435e3b=new ScheduleShowCommand(),_0x4c93e8=program[_0x52ae3e(0x355)](),_0x4a46bd=await createTDXInstance(_0x4c93e8),_0x1c6997=await _0x435e3b[_0x52ae3e(0x437)]({'options':{..._0x4c93e8,..._0x4bc1c6},'args':[_0x14fb83],'tdx':_0x4a46bd});gracefulExit(_0x1c6997);}),scheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x427))['description'](a2_0x3547a0(0x4ae))['option'](a2_0x3547a0(0x255),a2_0x3547a0(0x20e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x384),a2_0x3547a0(0x3eb))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x30e),'Read\x20query\x20from\x20file')['option'](a2_0x3547a0(0x294),'Query\x20type:\x20trino\x20or\x20hive',a2_0x3547a0(0x20d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x35a),a2_0x3547a0(0x1c7))[a2_0x3547a0(0x381)](a2_0x3547a0(0x480),a2_0x3547a0(0x3cd))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1f6),a2_0x3547a0(0x3ec))[a2_0x3547a0(0x381)](a2_0x3547a0(0x232),a2_0x3547a0(0x1a9))['option'](a2_0x3547a0(0x1d8),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x3547a0(0x381)]('--engine-version\x20<version>',a2_0x3547a0(0x237))[a2_0x3547a0(0x381)](a2_0x3547a0(0x43c),a2_0x3547a0(0x34a))[a2_0x3547a0(0x320)](async(_0x2fd8a9,_0x25c1f3)=>{const _0x1b0ce3=a2_0x3547a0,_0x4057d6=new ScheduleCreateCommand(),_0x5b6512=program[_0x1b0ce3(0x355)](),_0x156943=await createTDXInstance(_0x5b6512);_0x25c1f3['in']&&(_0x25c1f3['database']=_0x25c1f3['in']);const _0x4729c2=await _0x4057d6[_0x1b0ce3(0x437)]({'options':{..._0x5b6512,..._0x25c1f3},'args':[_0x2fd8a9],'tdx':_0x156943});gracefulExit(_0x4729c2);}),scheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x484))['description'](a2_0x3547a0(0x363))[a2_0x3547a0(0x381)](a2_0x3547a0(0x255),'Database\x20name')['option'](a2_0x3547a0(0x384),a2_0x3547a0(0x3eb))[a2_0x3547a0(0x381)](a2_0x3547a0(0x30e),'Read\x20query\x20from\x20file')[a2_0x3547a0(0x381)](a2_0x3547a0(0x294),a2_0x3547a0(0x3a9))[a2_0x3547a0(0x381)](a2_0x3547a0(0x35a),a2_0x3547a0(0x1c7))['option'](a2_0x3547a0(0x480),'Timezone\x20for\x20cron')[a2_0x3547a0(0x381)]('--delay\x20<seconds>',a2_0x3547a0(0x3ec))[a2_0x3547a0(0x381)](a2_0x3547a0(0x232),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1d8),a2_0x3547a0(0x23d))[a2_0x3547a0(0x381)]('--engine-version\x20<version>',a2_0x3547a0(0x237))['option'](a2_0x3547a0(0x43c),a2_0x3547a0(0x34a))['action'](async(_0x38c5b0,_0x90c242)=>{const _0x43c3ce=a2_0x3547a0,_0x512077=new ScheduleUpdateCommand(),_0x4e6a46=program['opts'](),_0x4225e5=await createTDXInstance(_0x4e6a46);_0x90c242['in']&&(_0x90c242['database']=_0x90c242['in']);const _0x3a20d2=await _0x512077[_0x43c3ce(0x437)]({'options':{..._0x4e6a46,..._0x90c242},'args':[_0x38c5b0],'tdx':_0x4225e5});gracefulExit(_0x3a20d2);}),scheduleCmd[a2_0x3547a0(0x24c)]('delete\x20<name>')['description']('Delete\x20a\x20scheduled\x20query')[a2_0x3547a0(0x320)](async(_0x4d2608,_0x38fba9)=>{const _0x55fa2e=a2_0x3547a0,_0x2d3e88=new ScheduleDeleteCommand(),_0x4da6ff=program['opts'](),_0x5bef74=await createTDXInstance(_0x4da6ff),_0x309800=await _0x2d3e88[_0x55fa2e(0x437)]({'options':{..._0x4da6ff,..._0x38fba9},'args':[_0x4d2608],'tdx':_0x5bef74});gracefulExit(_0x309800);}),scheduleCmd[a2_0x3547a0(0x24c)]('run\x20<name>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x216))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ef),a2_0x3547a0(0x22a))['option'](a2_0x3547a0(0x1de),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x3547a0(0x320)](async(_0x12a862,_0xae2f18)=>{const _0x47c8d9=a2_0x3547a0,_0x295233=new ScheduleRunCommand(),_0x29e120=program[_0x47c8d9(0x355)](),_0x47b4f7=await createTDXInstance(_0x29e120),_0x40e836=await _0x295233[_0x47c8d9(0x437)]({'options':{..._0x29e120,..._0xae2f18},'args':[_0x12a862],'tdx':_0x47b4f7});gracefulExit(_0x40e836);}),scheduleCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x27a))['description'](a2_0x3547a0(0x34c))['option'](a2_0x3547a0(0x31f),a2_0x3547a0(0x233))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3a5),a2_0x3547a0(0x21d))[a2_0x3547a0(0x320)](async(_0x3a89f9,_0x5cc9b9)=>{const _0x550172=a2_0x3547a0,_0x3753cd=new ScheduleHistoryCommand(),_0x73703f=program[_0x550172(0x355)](),_0x39ded8=await createTDXInstance(_0x73703f),_0x33f0f9=await _0x3753cd[_0x550172(0x437)]({'options':{..._0x73703f,..._0x5cc9b9},'args':[_0x3a89f9],'tdx':_0x39ded8});gracefulExit(_0x33f0f9);});const llmCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x40f))[a2_0x3547a0(0x1cf)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x3547a0(0x434))[a2_0x3547a0(0x1cf)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3547a0(0x320)](async(_0x47ffea,_0xef7d46)=>{const _0x562dc1=a2_0x3547a0,_0x2ca571=new LLMUseCommand(),_0x41c519=program[_0x562dc1(0x355)](),_0x899c45=await createTDXInstance(_0x41c519),_0x1330fc=await _0x2ca571[_0x562dc1(0x437)]({'options':{..._0x41c519,..._0xef7d46},'args':[_0x47ffea],'tdx':_0x899c45});gracefulExit(_0x1330fc);}),llmCmd[a2_0x3547a0(0x24c)]('models')['description'](a2_0x3547a0(0x3a4))[a2_0x3547a0(0x320)](async _0xd9782a=>{const _0x21b43a=a2_0x3547a0,_0x11d709=new LLMModelsCommand(),_0x13caf2=program[_0x21b43a(0x355)](),_0x59008e=await createTDXInstance(_0x13caf2),_0x29aaf1=await _0x11d709[_0x21b43a(0x437)]({'options':{..._0x13caf2,..._0xd9782a},'args':[],'tdx':_0x59008e});gracefulExit(_0x29aaf1);});const projectCmd=llmCmd['command'](a2_0x3547a0(0x4c4))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x48e)),llmProjectListAction=async(_0x2e7d4e,_0x2a1b14)=>{const _0x49336f=a2_0x3547a0,_0x53607d=new LLMProjectsCommand(),_0x2cb7fe=program[_0x49336f(0x355)](),_0xed49ac=await createTDXInstance(_0x2cb7fe),_0x3c9e7d=await _0x53607d[_0x49336f(0x437)]({'options':{..._0x2cb7fe,..._0x2a1b14},'args':_0x2e7d4e?[_0x2e7d4e]:[],'tdx':_0xed49ac});gracefulExit(_0x3c9e7d);};projectCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x274))[a2_0x3547a0(0x320)](llmProjectListAction),llmCmd['command'](a2_0x3547a0(0x29f))[a2_0x3547a0(0x1cf)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3547a0(0x320)](llmProjectListAction),projectCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x427))[a2_0x3547a0(0x1cf)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x3547a0(0x381)]('--description\x20<text>',a2_0x3547a0(0x2be))[a2_0x3547a0(0x320)](async(_0x508366,_0xcbe97a)=>{const _0x520130=a2_0x3547a0,_0x4f461a=new LLMProjectCreateCommand(),_0x17ee69=program['opts'](),_0x2d963c=await createTDXInstance(_0x17ee69),_0x6e9685=await _0x4f461a[_0x520130(0x437)]({'options':{..._0x17ee69,..._0xcbe97a},'args':[_0x508366],'tdx':_0x2d963c});gracefulExit(_0x6e9685);}),projectCmd[a2_0x3547a0(0x24c)]('delete\x20<name>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1c6))[a2_0x3547a0(0x320)](async(_0x55f0ec,_0x5c2076)=>{const _0x4f6120=a2_0x3547a0,_0x290cc9=new LLMProjectDeleteCommand(),_0x1fb107=program[_0x4f6120(0x355)](),_0x390916=await createTDXInstance(_0x1fb107),_0x123802=await _0x290cc9[_0x4f6120(0x437)]({'options':{..._0x1fb107,..._0x5c2076},'args':[_0x55f0ec],'tdx':_0x390916});gracefulExit(_0x123802);}),projectCmd['command'](a2_0x3547a0(0x4aa))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x324))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1c3),a2_0x3547a0(0x414))['option'](a2_0x3547a0(0x2b2),a2_0x3547a0(0x358))['action'](async(_0x3f90ff,_0x35ab16)=>{const _0x57524b=a2_0x3547a0,_0x384b8e=new LLMProjectBackupCommand(),_0x3ec5be=program['opts'](),_0x1de549=await createTDXInstance(_0x3ec5be),_0x443379=await _0x384b8e[_0x57524b(0x437)]({'options':{..._0x3ec5be,..._0x35ab16},'args':[_0x3f90ff],'tdx':_0x1de549});gracefulExit(_0x443379);}),projectCmd['command'](a2_0x3547a0(0x402))['description'](a2_0x3547a0(0x21e))[a2_0x3547a0(0x381)]('--name\x20<new-name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x3547a0(0x381)]('--dry-run',a2_0x3547a0(0x2d8))['action'](async(_0x46959a,_0x309dcd)=>{const _0x35ca3=a2_0x3547a0,_0x448f99=new LLMProjectRestoreCommand(),_0x4aeea2=program[_0x35ca3(0x355)](),_0x39c72d=await createTDXInstance(_0x4aeea2),_0x45465d=await _0x448f99['run']({'options':{..._0x4aeea2,..._0x309dcd},'args':[_0x46959a],'tdx':_0x39c72d});gracefulExit(_0x45465d);});const llmAgentListAction=async(_0x255e67,_0x474d02)=>{const _0x4f49b5=a2_0x3547a0,_0x2eba77=new LLMAgentsCommand(),_0x401cf7=program[_0x4f49b5(0x355)](),_0x4a84be=await createTDXInstance(_0x401cf7),_0xc27156=await _0x2eba77[_0x4f49b5(0x437)]({'options':{..._0x401cf7,..._0x474d02},'args':_0x255e67?[_0x255e67]:[],'tdx':_0x4a84be});gracefulExit(_0xc27156);};llmCmd[a2_0x3547a0(0x24c)]('agents\x20[pattern]')['description'](a2_0x3547a0(0x35d))[a2_0x3547a0(0x320)](llmAgentListAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x281))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x35d))[a2_0x3547a0(0x320)](llmAgentListAction),llmCmd[a2_0x3547a0(0x24c)]('history\x20[chat-id]')['description'](a2_0x3547a0(0x264))['option'](a2_0x3547a0(0x42c),a2_0x3547a0(0x409))['action'](async(_0x2ae16f,_0x5e11bc)=>{const _0x427583=a2_0x3547a0,_0x4a6af8=new LLMHistoryCommand(),_0x21eba0=program[_0x427583(0x355)](),_0x33a91b=await createTDXInstance(_0x21eba0),_0x59a16b=await _0x4a6af8['run']({'options':{..._0x21eba0,..._0x5e11bc},'args':_0x2ae16f?[_0x2ae16f]:[],'tdx':_0x33a91b});gracefulExit(_0x59a16b);});isExperimentalAvailable()&&llmCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x48c))[a2_0x3547a0(0x1cf)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x3547a0(0x320)](async(_0x3c0d1a,_0x2f2e4d)=>{const _0x3f8340=a2_0x3547a0,_0x4e76b3=new LLMLogCommand(),_0x24889e=program[_0x3f8340(0x355)](),_0x31f05f=await createTDXInstance(_0x24889e),_0x5d76e6=await _0x4e76b3[_0x3f8340(0x437)]({'options':{..._0x24889e,..._0x2f2e4d},'args':[_0x3c0d1a],'tdx':_0x31f05f});gracefulExit(_0x5d76e6);});program['command'](a2_0x3547a0(0x1f9))[a2_0x3547a0(0x326)](a2_0x3547a0(0x37b))['description'](a2_0x3547a0(0x1b3))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3c0),a2_0x3547a0(0x361))[a2_0x3547a0(0x381)](a2_0x3547a0(0x4a2),a2_0x3547a0(0x45e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x322),a2_0x3547a0(0x45d))[a2_0x3547a0(0x398)]()[a2_0x3547a0(0x410)](!![])[a2_0x3547a0(0x4b4)](a2_0x3547a0(0x48d),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x272117,_0x364610)=>{const _0x34f63b=a2_0x3547a0,_0x217722=program[_0x34f63b(0x355)](),_0x13e5e9=Array[_0x34f63b(0x1fd)](_0x272117)?_0x272117:[];if(_0x13e5e9[0x0]==='statusline'){const _0x233e0c=new ClaudeStatuslineCommand(),_0x5409cb=await _0x233e0c[_0x34f63b(0x437)]({'options':{..._0x217722,..._0x364610},'args':_0x13e5e9[_0x34f63b(0x2cf)](0x1),'tdx':null});gracefulExit(_0x5409cb);}if(_0x13e5e9[0x0]===_0x34f63b(0x326)){const _0x4c2633=new ClaudeUsageCommand(),_0x93b6c=await _0x4c2633['run']({'options':{..._0x217722,..._0x364610},'args':_0x13e5e9[_0x34f63b(0x2cf)](0x1),'tdx':null});gracefulExit(_0x93b6c);}const _0x471ba3=new ClaudeCommand(),_0x6d5957=await createTDXInstance(_0x217722),_0x297b3a=await _0x471ba3['run']({'options':{..._0x217722,..._0x364610},'args':_0x13e5e9,'tdx':_0x6d5957});gracefulExit(_0x297b3a);}),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x207))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x417))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2fc),a2_0x3547a0(0x318))['option']('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3547a0(0x320)](async(_0x31270d,_0x3a021b,_0x344ae7)=>{const _0x201b6f=a2_0x3547a0,_0x1cfa31=new UseCommand(),_0x11c957=program[_0x201b6f(0x355)](),_0x1346dc=[];if(_0x31270d)_0x1346dc[_0x201b6f(0x494)](_0x31270d);if(_0x3a021b)_0x1346dc[_0x201b6f(0x494)](_0x3a021b);const _0x3148c8=_0x31270d==='engage_workspace',_0x104133=_0x3148c8?await createTDXInstance(_0x11c957):null,_0x574c19=await _0x1cfa31[_0x201b6f(0x437)]({'options':{..._0x11c957,..._0x344ae7},'args':_0x1346dc,'tdx':_0x104133});gracefulExit(_0x574c19);}),program[a2_0x3547a0(0x24c)]('status')['description'](a2_0x3547a0(0x319))[a2_0x3547a0(0x320)](async _0x5a56bd=>{const _0x4d3620=a2_0x3547a0,_0x4f881d=new StatusCommand(),_0x2bdfaf=program[_0x4d3620(0x355)](),_0x1b6779=await createTDXInstance(_0x2bdfaf),_0x43ec75=await _0x4f881d[_0x4d3620(0x437)]({'options':{..._0x2bdfaf,..._0x5a56bd},'args':[],'tdx':_0x1b6779});gracefulExit(_0x43ec75);}),program['command'](a2_0x3547a0(0x3de))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3f9))[a2_0x3547a0(0x381)]('--dry-run',a2_0x3547a0(0x3f4))['option'](a2_0x3547a0(0x394),'Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel')[a2_0x3547a0(0x381)]('--method\x20<pm>',a2_0x3547a0(0x493))[a2_0x3547a0(0x320)](async(_0x54817d,_0x37b950)=>{const _0x404134=a2_0x3547a0,_0x39e04f=new UpgradeCommand(),_0x3eaabb=program['opts'](),_0x484bb3=await _0x39e04f[_0x404134(0x437)]({'options':{..._0x3eaabb,..._0x37b950},'args':_0x54817d?[_0x54817d]:[],'tdx':null});gracefulExit(_0x484bb3);}),program[a2_0x3547a0(0x24c)]('unset\x20<resource>')[a2_0x3547a0(0x1cf)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x235),a2_0x3547a0(0x206))['action'](async(_0x4ef8a2,_0x282b28)=>{const _0x575234=a2_0x3547a0,_0x700343=new UnsetCommand(),_0x10833c=program['opts'](),_0x1a5500=await _0x700343[_0x575234(0x437)]({'options':{..._0x10833c,..._0x282b28},'args':[_0x4ef8a2],'tdx':null});gracefulExit(_0x1a5500);}),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x440))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2ff))[a2_0x3547a0(0x381)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x3547a0(0x320)](async _0x4c8a54=>{const _0x31f118=new ChatsCommand(),_0x52148e=program['opts'](),_0x3a2e6e=await createTDXInstance(_0x52148e),_0x392e47=await _0x31f118['run']({'options':{..._0x52148e,..._0x4c8a54},'args':[],'tdx':_0x3a2e6e});gracefulExit(_0x392e47);});const authCmd=program[a2_0x3547a0(0x24c)]('auth')['description']('Authentication\x20management');async function runAuthStatusCommand(_0x5c3db1){const _0x31b855=a2_0x3547a0,_0x10aa7e=new AuthStatusCommand(),_0x5575b4=program[_0x31b855(0x355)](),_0x67e0da=await createTDXInstance(_0x5575b4),_0x3195c7=await _0x10aa7e[_0x31b855(0x437)]({'options':{..._0x5575b4,..._0x5c3db1},'args':[],'tdx':_0x67e0da});gracefulExit(_0x3195c7);}authCmd[a2_0x3547a0(0x320)](runAuthStatusCommand),authCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x473))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4b9))[a2_0x3547a0(0x320)](runAuthStatusCommand);async function authSetupAction(_0x3e4e4d){const _0x14b54e=a2_0x3547a0,_0x246fb1=new AuthSetupCommand(),_0x1f0c26=program[_0x14b54e(0x355)](),_0x443290=await createTDXInstance(_0x1f0c26),_0x40121c=await _0x246fb1[_0x14b54e(0x437)]({'options':{..._0x1f0c26,..._0x3e4e4d},'args':[],'tdx':_0x443290});gracefulExit(_0x40121c);}authCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x466))[a2_0x3547a0(0x1cf)]('Setup\x20API\x20key\x20authentication\x20interactively')['option'](a2_0x3547a0(0x2b3),a2_0x3547a0(0x1aa))['addHelpText']('after','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x3547a0(0x320)](authSetupAction),authCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x256),{'hidden':!![]})[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b3),a2_0x3547a0(0x1aa))[a2_0x3547a0(0x320)](authSetupAction),authCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x25d))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x316))[a2_0x3547a0(0x4b4)](a2_0x3547a0(0x48d),a2_0x3547a0(0x23c))[a2_0x3547a0(0x320)](async _0x99feda=>{const _0x4bb7ea=a2_0x3547a0,_0x51f00d=new AuthClearCommand(),_0x3a1830=program[_0x4bb7ea(0x355)](),_0xf07843=await _0x51f00d['run']({'options':{..._0x3a1830,..._0x99feda},'args':[],'tdx':null});gracefulExit(_0xf07843);});const userCmd=program[a2_0x3547a0(0x24c)]('user')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2a6)),userListAction=async _0x26915f=>{const _0x1dce93=new UserListCommand(),_0x25ba4d=program['opts'](),_0x20aefa=await createTDXInstance(_0x25ba4d),_0x18f60c=await _0x1dce93['run']({'options':{..._0x25ba4d,..._0x26915f},'args':[],'tdx':_0x20aefa});gracefulExit(_0x18f60c);};userCmd[a2_0x3547a0(0x320)](async _0x17c18a=>{const _0x304e63=a2_0x3547a0,_0x2e07a8=new UserCommand(),_0x41fcf3=program[_0x304e63(0x355)](),_0x1a9efe=await createTDXInstance(_0x41fcf3),_0x17734c=await _0x2e07a8['run']({'options':{..._0x41fcf3,..._0x17c18a},'args':[],'tdx':_0x1a9efe});gracefulExit(_0x17734c);}),userCmd[a2_0x3547a0(0x24c)]('list')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x321))[a2_0x3547a0(0x320)](userListAction),program[a2_0x3547a0(0x24c)]('users')[a2_0x3547a0(0x1cf)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')['action'](userListAction);function a2_0x39b3(_0x44c0d4,_0x214c10){_0x44c0d4=_0x44c0d4-0x1a0;const _0x4e7db4=a2_0x4e7d();let _0x39b371=_0x4e7db4[_0x44c0d4];return _0x39b371;}const policyCmd=program['command'](a2_0x3547a0(0x46d))['description'](a2_0x3547a0(0x375));policyCmd[a2_0x3547a0(0x320)](async _0x2cdeb5=>{const _0x323536=new PolicyCommand(),_0x4ecb77=program['opts'](),_0x53beea=await createTDXInstance(_0x4ecb77),_0x2ef26d=await _0x323536['run']({'options':{..._0x4ecb77,..._0x2cdeb5},'args':[],'tdx':_0x53beea});gracefulExit(_0x2ef26d);}),policyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2e1))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x49c))['action'](async _0x17898a=>{const _0x35678e=a2_0x3547a0,_0x4aafee=new PolicyListCommand(),_0x4e6a7f=program[_0x35678e(0x355)](),_0x51ef1c=await createTDXInstance(_0x4e6a7f),_0x61a20b=await _0x4aafee['run']({'options':{..._0x4e6a7f,..._0x17898a},'args':[],'tdx':_0x51ef1c});gracefulExit(_0x61a20b);}),policyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x404))['description']('Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)')[a2_0x3547a0(0x320)](async(_0xf07d78,_0x6005d9)=>{const _0x35e33b=a2_0x3547a0,_0x1bb2a4=new PolicyShowCommand(),_0x41aa22=program[_0x35e33b(0x355)](),_0x3d1bf1=await createTDXInstance(_0x41aa22),_0x2e596b=await _0x1bb2a4[_0x35e33b(0x437)]({'options':{..._0x41aa22,..._0x6005d9},'args':[_0xf07d78],'tdx':_0x3d1bf1});gracefulExit(_0x2e596b);}),program['command'](a2_0x3547a0(0x4ba))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x39e))[a2_0x3547a0(0x320)](async _0x473f57=>{const _0x3af502=a2_0x3547a0,_0x45663e=new ProfilesCommand(),_0x28ef61=program[_0x3af502(0x355)](),_0x5b4baf=await _0x45663e[_0x3af502(0x437)]({'options':{..._0x28ef61,..._0x473f57},'args':[],'tdx':null});gracefulExit(_0x5b4baf);});const profileCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2a0))[a2_0x3547a0(0x1cf)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x3547a0(0x320)](()=>{const _0x5c62fa=a2_0x3547a0;profileCmd[_0x5c62fa(0x38d)]();});const profileListAction=async _0x1af0b0=>{const _0x1107da=a2_0x3547a0,_0xba4812=new ProfilesCommand(),_0x5d5d3d=program[_0x1107da(0x355)](),_0x3e936b=await _0xba4812['run']({'options':{..._0x5d5d3d,..._0x1af0b0},'args':[],'tdx':null});gracefulExit(_0x3e936b);};profileCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2e1))[a2_0x3547a0(0x1cf)]('List\x20all\x20available\x20profiles')['action'](profileListAction),profileCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x40e))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3fa))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b3),a2_0x3547a0(0x1aa))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b1),a2_0x3547a0(0x452))['addHelpText'](a2_0x3547a0(0x48d),a2_0x3547a0(0x203))[a2_0x3547a0(0x320)](async(_0xd07dc0,_0x3f7763)=>{const _0x8bac59=a2_0x3547a0,_0x2d90e4=new ProfileCreateCommand(),_0x7a36e3=program[_0x8bac59(0x355)](),_0x2cf5fa=await _0x2d90e4[_0x8bac59(0x437)]({'options':{..._0x7a36e3,..._0x3f7763},'args':_0xd07dc0?[_0xd07dc0]:[],'tdx':null});gracefulExit(_0x2cf5fa);});async function profileDeleteAction(_0x43d8ad,_0x188e94){const _0x569666=a2_0x3547a0,_0x5c838b=new ProfileDeleteCommand(),_0x421eb8=program['opts'](),_0x40a8c1=await _0x5c838b[_0x569666(0x437)]({'options':{..._0x421eb8,..._0x188e94},'args':[_0x43d8ad],'tdx':null});gracefulExit(_0x40a8c1);}profileCmd[a2_0x3547a0(0x24c)]('delete\x20<name>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x221))['addHelpText']('after',a2_0x3547a0(0x22b))[a2_0x3547a0(0x320)](profileDeleteAction),profileCmd['command']('remove\x20<name>',{'hidden':!![]})[a2_0x3547a0(0x320)](profileDeleteAction),profileCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x424))['description']('Set\x20a\x20profile\x20configuration\x20value')[a2_0x3547a0(0x4b4)](a2_0x3547a0(0x48d),a2_0x3547a0(0x2f0))[a2_0x3547a0(0x320)](async(_0x54f374,_0x2e281b)=>{const _0x2a9f5a=a2_0x3547a0,_0x41bc94=new ProfileSetCommand(),_0x1182fb=program[_0x2a9f5a(0x355)](),_0xe57dbd=await _0x41bc94['run']({'options':{..._0x1182fb,..._0x2e281b},'args':[_0x54f374],'tdx':null});gracefulExit(_0xe57dbd);}),profileCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x222))[a2_0x3547a0(0x1cf)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x235),a2_0x3547a0(0x399))[a2_0x3547a0(0x4b4)]('after','\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')[a2_0x3547a0(0x320)](async(_0x29c6c3,_0x215b08)=>{const _0x58591b=a2_0x3547a0,_0x19249a=new ProfileUseCommand(),_0xb3f5b=program[_0x58591b(0x355)](),_0x168812=await _0x19249a[_0x58591b(0x437)]({'options':{..._0xb3f5b,..._0x215b08},'args':[_0x29c6c3],'tdx':null});gracefulExit(_0x168812);});const engageCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x38c))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x428)),createEngageAction=_0x54a6d7=>{return async(_0xd9b083,_0x102fad)=>{const _0x280b9c=a2_0x39b3,_0x4abc26=new _0x54a6d7(),_0x17bfb6=program[_0x280b9c(0x355)](),_0x141999=await createTDXInstance(_0x17bfb6),_0x2c7669=await _0x4abc26[_0x280b9c(0x437)]({'options':{..._0x17bfb6,..._0x102fad},'args':[_0xd9b083],'tdx':_0x141999});gracefulExit(_0x2c7669);};},createEngageNoArgAction=_0x3c6f86=>{return async _0x321287=>{const _0x4bd8ad=new _0x3c6f86(),_0x5cb88e=program['opts'](),_0x110a9b=await createTDXInstance(_0x5cb88e),_0x577efd=await _0x4bd8ad['run']({'options':{..._0x5cb88e,..._0x321287},'args':[],'tdx':_0x110a9b});gracefulExit(_0x577efd);};},createEngageListAction=_0x5e71c0=>{return async(_0xca1420,_0x16b97a)=>{const _0x20308c=a2_0x39b3,_0x373c0c=new _0x5e71c0(),_0x499d64=program[_0x20308c(0x355)](),_0xfb247f=await createTDXInstance(_0x499d64),_0xe196c3=await _0x373c0c['run']({'options':{..._0x499d64,..._0x16b97a},'args':_0xca1420?[_0xca1420]:[],'tdx':_0xfb247f});gracefulExit(_0xe196c3);};},campaignCmd=engageCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x25b))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3fd));campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x294),a2_0x3547a0(0x350))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2af),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x3547a0(0x24b),'Workspace\x20name')['action'](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x3547a0(0x24c)]('campaigns\x20[pattern]')['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option'](a2_0x3547a0(0x294),a2_0x3547a0(0x350))['option'](a2_0x3547a0(0x2af),a2_0x3547a0(0x205))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x46e))[a2_0x3547a0(0x1cf)]('Show\x20campaign\x20details')[a2_0x3547a0(0x381)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x342),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x26d))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x36b))['requiredOption'](a2_0x3547a0(0x406),a2_0x3547a0(0x3e8))[a2_0x3547a0(0x2ec)]('--type\x20<type>',a2_0x3547a0(0x310))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))['option'](a2_0x3547a0(0x369),a2_0x3547a0(0x22c))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3a1),a2_0x3547a0(0x4b5))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2ab),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x3547a0(0x340),a2_0x3547a0(0x3f3))['option'](a2_0x3547a0(0x3f5),a2_0x3547a0(0x3aa))[a2_0x3547a0(0x381)](a2_0x3547a0(0x480),a2_0x3547a0(0x3cf))[a2_0x3547a0(0x320)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x323))['description'](a2_0x3547a0(0x315))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))['option'](a2_0x3547a0(0x406),'New\x20campaign\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x369),a2_0x3547a0(0x22c))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3a1),a2_0x3547a0(0x4b5))[a2_0x3547a0(0x381)]('--email-sender-id\x20<id>',a2_0x3547a0(0x3bf))[a2_0x3547a0(0x381)](a2_0x3547a0(0x340),a2_0x3547a0(0x3f3))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3f5),a2_0x3547a0(0x3aa))[a2_0x3547a0(0x381)](a2_0x3547a0(0x480),a2_0x3547a0(0x3cf))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2bc))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x272))['option']('--workspace\x20<name>',a2_0x3547a0(0x39f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24f),a2_0x3547a0(0x365))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3547a0(0x359))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x334))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x3547a0(0x1cf)]('Pause\x20a\x20campaign')[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1f7))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3fe))['option']('--workspace\x20<name>',a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x254))[a2_0x3547a0(0x381)]('--workspace\x20<name>',a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x3547a0(0x231))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x411))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),'Workspace\x20name')['option']('--name\x20<name>',a2_0x3547a0(0x1af))[a2_0x3547a0(0x381)]('--type\x20<type>',a2_0x3547a0(0x350))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x1e2))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x34f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x42f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),'Workspace\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x273))[a2_0x3547a0(0x320)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ef))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3cb))[a2_0x3547a0(0x381)](a2_0x3547a0(0x301),a2_0x3547a0(0x2c9))['action'](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x27f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x441));alwaysOnCampaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x249))['description'](a2_0x3547a0(0x3c8))[a2_0x3547a0(0x381)]('--type\x20<type>',a2_0x3547a0(0x350))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2af),a2_0x3547a0(0x29c))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))[a2_0x3547a0(0x320)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x3547a0(0x331))['description'](a2_0x3547a0(0x208))[a2_0x3547a0(0x381)]('--type\x20<type>',a2_0x3547a0(0x350))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2af),a2_0x3547a0(0x29c))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))[a2_0x3547a0(0x320)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)]('show\x20<name-or-id>')[a2_0x3547a0(0x1cf)]('Show\x20always-on\x20campaign\x20details')['requiredOption'](a2_0x3547a0(0x24b),'Workspace\x20name\x20(required)')['option']('--full',a2_0x3547a0(0x418))[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)]('create')['description'](a2_0x3547a0(0x20b))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x406),a2_0x3547a0(0x3e8))['requiredOption']('--type\x20<type>',a2_0x3547a0(0x310))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))['option']('--description\x20<desc>',a2_0x3547a0(0x22c))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3a1),a2_0x3547a0(0x482))['option']('--enable-utm-tracking','Enable\x20UTM\x20tracking')[a2_0x3547a0(0x320)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)]('update\x20<name-or-id>')['description']('Update\x20an\x20always-on\x20campaign')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))['option']('--name\x20<name>',a2_0x3547a0(0x48a))[a2_0x3547a0(0x381)](a2_0x3547a0(0x369),a2_0x3547a0(0x22c))[a2_0x3547a0(0x381)]('--segment\x20<path>',a2_0x3547a0(0x482))[a2_0x3547a0(0x381)](a2_0x3547a0(0x36e),a2_0x3547a0(0x496))['action'](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)]('delete\x20<name-or-id>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x31d))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x359))[a2_0x3547a0(0x1cf)]('Launch\x20an\x20always-on\x20campaign')[a2_0x3547a0(0x2ec)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x29b))[a2_0x3547a0(0x1cf)]('Pause\x20an\x20always-on\x20campaign')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1f7))['description'](a2_0x3547a0(0x333))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),'Workspace\x20name\x20(required)')[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x3547a0(0x24c)]('finish\x20<name-or-id>')[a2_0x3547a0(0x1cf)]('Finish\x20an\x20always-on\x20campaign')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x24b),a2_0x3547a0(0x287))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24f),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd['command'](a2_0x3547a0(0x295))[a2_0x3547a0(0x1cf)]('Duplicate\x20an\x20always-on\x20campaign')[a2_0x3547a0(0x2ec)]('--workspace\x20<name>',a2_0x3547a0(0x287))['requiredOption'](a2_0x3547a0(0x406),a2_0x3547a0(0x2d2))[a2_0x3547a0(0x320)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x204))['description']('Email\x20template\x20management');templateCmd['command']('list\x20[pattern]')['description'](a2_0x3547a0(0x202))['option'](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x3547a0(0x24c)]('templates\x20[pattern]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x292))['option'](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x320)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x46e))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4c3))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x342),a2_0x3547a0(0x418))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x26d))[a2_0x3547a0(0x1cf)]('Create\x20an\x20email\x20template')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x406),a2_0x3547a0(0x36d))[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x1c9),a2_0x3547a0(0x284))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3c5),'HTML\x20template\x20content')[a2_0x3547a0(0x381)](a2_0x3547a0(0x306),'Read\x20HTML\x20template\x20from\x20file')[a2_0x3547a0(0x381)]('--workspace\x20<name>',a2_0x3547a0(0x287))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ee),a2_0x3547a0(0x29a))[a2_0x3547a0(0x381)]('--editor-type\x20<type>',a2_0x3547a0(0x2ea),_0x29abac=>{const _0x4651f9=a2_0x3547a0;if(![_0x4651f9(0x47f),_0x4651f9(0x377)][_0x4651f9(0x23e)](_0x29abac))throw new SDKError(ErrorCode[_0x4651f9(0x396)],_0x4651f9(0x49e)+_0x29abac+_0x4651f9(0x3af));return _0x29abac;})[a2_0x3547a0(0x320)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x323))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x298))['option'](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x406),'New\x20template\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x1c9),a2_0x3547a0(0x284))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3c5),a2_0x3547a0(0x47d))[a2_0x3547a0(0x381)](a2_0x3547a0(0x306),a2_0x3547a0(0x44b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ee),'Plaintext\x20template\x20content')[a2_0x3547a0(0x320)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('pull\x20[workspace]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x28a))['option'](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))['option']('--name\x20<name>',a2_0x3547a0(0x2d1))[a2_0x3547a0(0x381)]('-y,\x20--yes',a2_0x3547a0(0x365))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x3547a0(0x320)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command']('push\x20[target]')['description'](a2_0x3547a0(0x1da))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),'Workspace\x20name')[a2_0x3547a0(0x381)](a2_0x3547a0(0x267),'Skip\x20confirmation\x20prompt')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')[a2_0x3547a0(0x320)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ef))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4a4))[a2_0x3547a0(0x381)](a2_0x3547a0(0x301),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x3547a0(0x320)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2bc))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3c7))['option'](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24f),'Skip\x20confirmation\x20prompt')[a2_0x3547a0(0x320)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3547a0(0x1b2))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1d3));workspaceCmd[a2_0x3547a0(0x24c)]('list\x20[pattern]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2df))[a2_0x3547a0(0x320)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x3547a0(0x24c)]('workspaces\x20[pattern]')['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x3547a0(0x320)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x46e))['description'](a2_0x3547a0(0x47c))['option'](a2_0x3547a0(0x342),a2_0x3547a0(0x418))[a2_0x3547a0(0x320)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x26d))['description']('Create\x20a\x20workspace')[a2_0x3547a0(0x2ec)](a2_0x3547a0(0x406),a2_0x3547a0(0x39f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x369),a2_0x3547a0(0x32d))[a2_0x3547a0(0x320)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x323))['description']('Update\x20a\x20workspace')[a2_0x3547a0(0x381)](a2_0x3547a0(0x406),a2_0x3547a0(0x336))[a2_0x3547a0(0x381)]('--description\x20<desc>',a2_0x3547a0(0x32d))[a2_0x3547a0(0x320)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3547a0(0x24c)]('delete\x20<name-or-id>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x33b))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24f),a2_0x3547a0(0x365))[a2_0x3547a0(0x320)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x222))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4c7))[a2_0x3547a0(0x320)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x39a))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x460));deliveryCmd['command'](a2_0x3547a0(0x422))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1e1))[a2_0x3547a0(0x381)](a2_0x3547a0(0x24b),a2_0x3547a0(0x39f))['action'](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x37a))[a2_0x3547a0(0x1cf)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x40946c=>{const _0x5615ee=a2_0x3547a0,_0xf0ac1a=new ConnectionListCommand(),_0x2d6aa5=program[_0x5615ee(0x355)](),_0x37b060=await createTDXInstance(_0x2d6aa5),_0x59f2be=await _0xf0ac1a[_0x5615ee(0x437)]({'options':{..._0x2d6aa5,..._0x40946c},'args':[],'tdx':_0x37b060});gracefulExit(_0x59f2be);};connectionCmd[a2_0x3547a0(0x24c)]('list')[a2_0x3547a0(0x1cf)]('List\x20all\x20data\x20connections')[a2_0x3547a0(0x320)](connectionListAction),program['command'](a2_0x3547a0(0x4c5),{'hidden':!![]})['description'](a2_0x3547a0(0x2ad))[a2_0x3547a0(0x320)](connectionListAction),connectionCmd[a2_0x3547a0(0x24c)]('show\x20<name>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1bd))[a2_0x3547a0(0x320)](async(_0x2fc294,_0x3c6565)=>{const _0x3f9102=a2_0x3547a0,_0x3a3019=new ConnectionShowCommand(),_0x2a47a2=program['opts'](),_0x1a52b5=await createTDXInstance(_0x2a47a2),_0x457ddc=await _0x3a3019[_0x3f9102(0x437)]({'options':{..._0x2a47a2,..._0x3c6565},'args':[_0x2fc294],'tdx':_0x1a52b5});gracefulExit(_0x457ddc);}),connectionCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x4a6))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x346))[a2_0x3547a0(0x320)](async(_0x257851,_0x2dc4f7)=>{const _0x34b609=a2_0x3547a0,_0x1cf4ce=new ConnectionSchemaCommand(),_0x5a7f96=program[_0x34b609(0x355)](),_0x1c06c4=await createTDXInstance(_0x5a7f96),_0x9f6e58=await _0x1cf4ce[_0x34b609(0x437)]({'options':{..._0x5a7f96,..._0x2dc4f7},'args':[_0x257851],'tdx':_0x1c06c4});gracefulExit(_0x9f6e58);}),connectionCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2d6))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x426))[a2_0x3547a0(0x320)](async _0x40303b=>{const _0xb656b2=a2_0x3547a0,_0x90a168=new ConnectionTypesCommand(),_0x1d9799=program[_0xb656b2(0x355)](),_0x53fa8c=await createTDXInstance(_0x1d9799),_0x4b9f49=await _0x90a168[_0xb656b2(0x437)]({'options':{..._0x1d9799,..._0x40303b},'args':[],'tdx':_0x53fa8c});gracefulExit(_0x4b9f49);}),connectionCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x25f))['description']('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')['action'](async(_0x50faa9,_0x56db3a)=>{const _0xe2dc8a=a2_0x3547a0,_0x247f10=new ConnectionSettingsCommand(),_0x45edb8=program[_0xe2dc8a(0x355)](),_0x487664=await createTDXInstance(_0x45edb8),_0xfddaad=await _0x247f10['run']({'options':{..._0x45edb8,..._0x56db3a},'args':[_0x50faa9],'tdx':_0x487664});gracefulExit(_0xfddaad);});const casCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1fa))['description'](a2_0x3547a0(0x3dd));casCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2e1))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2c6))[a2_0x3547a0(0x320)](async _0x1396dc=>{const _0x4d4f1b=a2_0x3547a0,_0x45af4c=new CASListCommand(),_0x44fb85=program[_0x4d4f1b(0x355)](),_0x19b110=await createTDXInstance(_0x44fb85),_0x220d3b=await _0x45af4c[_0x4d4f1b(0x437)]({'options':{..._0x44fb85,..._0x1396dc},'args':[],'tdx':_0x19b110});gracefulExit(_0x220d3b);}),casCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1ba))[a2_0x3547a0(0x1cf)]('Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x4baff6,_0x410ce8)=>{const _0x4d5e58=a2_0x3547a0,_0x1798f2=new CASDescCommand(),_0x156fcf=program[_0x4d5e58(0x355)](),_0x203e6d=await createTDXInstance(_0x156fcf),_0x71506b=await _0x1798f2[_0x4d5e58(0x437)]({'options':{..._0x156fcf,..._0x410ce8},'args':_0x4baff6?[_0x4baff6]:[],'tdx':_0x203e6d});gracefulExit(_0x71506b);}),casCmd[a2_0x3547a0(0x24c)]('pull\x20[name]')['description'](a2_0x3547a0(0x311))[a2_0x3547a0(0x381)](a2_0x3547a0(0x40a),a2_0x3547a0(0x3ee))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x304d17,_0x19d7a4)=>{const _0x38fd02=a2_0x3547a0,_0x11d2f7=new CASPullCommand(),_0x3b4b88=program[_0x38fd02(0x355)](),_0xd8c44=await createTDXInstance(_0x3b4b88),_0x58bc99=await _0x11d2f7['run']({'options':{..._0x3b4b88,..._0x19d7a4},'args':_0x304d17?[_0x304d17]:[],'tdx':_0xd8c44});gracefulExit(_0x58bc99);}),casCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x34f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x47a))[a2_0x3547a0(0x381)]('--dry-run',a2_0x3547a0(0x378))[a2_0x3547a0(0x320)](async(_0x511fe8,_0x19451e)=>{const _0x1d08d7=a2_0x3547a0,_0x50fbcc=new CASPushCommand(),_0x3487df=program[_0x1d08d7(0x355)](),_0x3e3eb7=await createTDXInstance(_0x3487df),_0x5c54f1=await _0x50fbcc[_0x1d08d7(0x437)]({'options':{..._0x3487df,..._0x19451e},'args':_0x511fe8?[_0x511fe8]:[],'tdx':_0x3e3eb7});gracefulExit(_0x5c54f1);}),casCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x215))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1a4))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3ac),a2_0x3547a0(0x3ff))[a2_0x3547a0(0x320)](async(_0x2a1ca7,_0x173b14)=>{const _0x48b0cb=a2_0x3547a0,_0x1fa55d=new CASPreviewCommand(),_0xf0338f=program['opts'](),_0xaa485d=await createTDXInstance(_0xf0338f),_0x4d10d4=await _0x1fa55d['run']({'options':{..._0xf0338f,..._0x173b14},'args':[_0x2a1ca7,_0x173b14[_0x48b0cb(0x3be)]],'tdx':_0xaa485d});gracefulExit(_0x4d10d4);});const casSgCmd=casCmd[a2_0x3547a0(0x24c)]('sg')[a2_0x3547a0(0x1cf)]('Composable\x20segment\x20commands');casSgCmd['command']('list\x20[audience_name]')['description'](a2_0x3547a0(0x392))['action'](async(_0x40449e,_0x2a440a)=>{const _0x5b7241=a2_0x3547a0,_0x2663fa=new CASSegmentListCommand(),_0x4866c7=program[_0x5b7241(0x355)](),_0x415ebc=await createTDXInstance(_0x4866c7),_0x49ecec=await _0x2663fa[_0x5b7241(0x437)]({'options':{..._0x4866c7,..._0x2a440a},'args':_0x40449e?[_0x40449e]:[],'tdx':_0x415ebc});gracefulExit(_0x49ecec);});const journeyCmd=program['command'](a2_0x3547a0(0x4bd))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3d2)),journeyListAction=async(_0x4b4f16,_0xb8eb1c)=>{const _0x4da572=a2_0x3547a0,_0x1cbde2=new JourneyListCommand(),_0x298e7f=program[_0x4da572(0x355)](),_0x5c1acf=await createTDXInstance(_0x298e7f),_0x5bd07d=await _0x1cbde2[_0x4da572(0x437)]({'options':{..._0x298e7f,..._0xb8eb1c},'args':_0x4b4f16?[_0x4b4f16]:[],'tdx':_0x5c1acf});gracefulExit(_0x5bd07d);};journeyCmd['command'](a2_0x3547a0(0x249))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2bb))[a2_0x3547a0(0x320)](journeyListAction),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x407))['description'](a2_0x3547a0(0x1c4))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1ec),a2_0x3547a0(0x3d8))[a2_0x3547a0(0x381)](a2_0x3547a0(0x497),a2_0x3547a0(0x4b6))['action'](async(_0x3d6cb7,_0x532401)=>{const _0x2bd7dc=a2_0x3547a0,_0x448f91=new JourneyViewCommand(),_0x3789c5=program[_0x2bd7dc(0x355)](),_0x4e4332=await createTDXInstance(_0x3789c5),_0x28747d=await _0x448f91[_0x2bd7dc(0x437)]({'options':{..._0x3789c5,..._0x532401},'args':[_0x3d6cb7],'tdx':_0x4e4332});gracefulExit(_0x28747d);}),journeyCmd['command'](a2_0x3547a0(0x3e1))['description'](a2_0x3547a0(0x3a0))[a2_0x3547a0(0x381)](a2_0x3547a0(0x302),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x3547a0(0x381)](a2_0x3547a0(0x27b),a2_0x3547a0(0x35b))['option'](a2_0x3547a0(0x30b),a2_0x3547a0(0x32a))[a2_0x3547a0(0x381)](a2_0x3547a0(0x47e),a2_0x3547a0(0x3f1))[a2_0x3547a0(0x320)](async(_0x3d5cf9,_0x5cbe0f)=>{const _0x29e463=a2_0x3547a0,_0x5ddaca=new JourneyStatsCommand(),_0x248ec7=program[_0x29e463(0x355)](),_0xad8be2=await createTDXInstance(_0x248ec7),_0x3f5853=await _0x5ddaca[_0x29e463(0x437)]({'options':{..._0x248ec7,..._0x5cbe0f},'args':[_0x3d5cf9],'tdx':_0xad8be2});gracefulExit(_0x3f5853);}),journeyCmd['command']('traffic\x20<name-or-path>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x46a))[a2_0x3547a0(0x381)]('--type\x20<type>',a2_0x3547a0(0x349))['option']('--from\x20<date>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x3547a0(0x381)](a2_0x3547a0(0x30b),a2_0x3547a0(0x32a))[a2_0x3547a0(0x381)]('--limit\x20<number>',a2_0x3547a0(0x2f8),_0x81dc1b=>{const _0x41afad=a2_0x3547a0,_0x412480=parseInt(_0x81dc1b,0xa);if(isNaN(_0x412480))throw new Error(_0x41afad(0x351)+_0x81dc1b+'\x22.\x20Must\x20be\x20a\x20number.');return _0x412480;})[a2_0x3547a0(0x320)](async(_0x380948,_0x4002b4)=>{const _0x5dac7e=a2_0x3547a0,_0xba6f64=new JourneyTrafficCommand(),_0x235e0e=program[_0x5dac7e(0x355)](),_0xe4dfed=await createTDXInstance(_0x235e0e),_0x3e993a=await _0xba6f64[_0x5dac7e(0x437)]({'options':{..._0x235e0e,..._0x4002b4},'args':[_0x380948],'tdx':_0xe4dfed});gracefulExit(_0x3e993a);}),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x25c))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x453))[a2_0x3547a0(0x320)](async(_0x316e92,_0x2aef67)=>{const _0x2543d2=a2_0x3547a0,_0x829ed0=new JourneyPauseCommand(),_0x63dbb=program[_0x2543d2(0x355)](),_0x4375a6=await createTDXInstance(_0x63dbb),_0x2f26e8=await _0x829ed0['run']({'options':{..._0x63dbb,..._0x2aef67},'args':[_0x316e92],'tdx':_0x4375a6});gracefulExit(_0x2f26e8);}),journeyCmd['command'](a2_0x3547a0(0x347))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x341))[a2_0x3547a0(0x320)](async(_0x53dae4,_0x8aedfe)=>{const _0x2d7a78=a2_0x3547a0,_0x474cb4=new JourneyResumeCommand(),_0x2a6ad3=program[_0x2d7a78(0x355)](),_0x3a4e53=await createTDXInstance(_0x2a6ad3),_0x33ff58=await _0x474cb4[_0x2d7a78(0x437)]({'options':{..._0x2a6ad3,..._0x8aedfe},'args':[_0x53dae4],'tdx':_0x3a4e53});gracefulExit(_0x33ff58);}),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x352))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3dc))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x1c8))[a2_0x3547a0(0x320)](async(_0x313914,_0xdffcc0)=>{const _0x2a22c9=a2_0x3547a0,_0x4a5860=new JourneyPullCommand(),_0x25a8a9=program[_0x2a22c9(0x355)](),_0x10ea9b=await createTDXInstance(_0x25a8a9),_0xc6be47=await _0x4a5860[_0x2a22c9(0x437)]({'options':{..._0x25a8a9,..._0xdffcc0},'args':_0x313914?[_0x313914]:[],'tdx':_0x10ea9b});gracefulExit(_0xc6be47);}),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x34f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3df))[a2_0x3547a0(0x320)](async(_0x40400f,_0x1b3c1e)=>{const _0x2b73f5=a2_0x3547a0,_0x6b619=new JourneyPushCommand(),_0x4888a8=program['opts'](),_0x27b634=await createTDXInstance(_0x4888a8),_0x41fda6=await _0x6b619[_0x2b73f5(0x437)]({'options':{..._0x4888a8,..._0x1b3c1e},'args':_0x40400f?[_0x40400f]:[],'tdx':_0x27b634});gracefulExit(_0x41fda6);}),journeyCmd['command']('columns\x20<name-or-path>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3b0))['action'](async(_0x1d594c,_0x5eafda)=>{const _0x6db4c2=a2_0x3547a0,_0x51609e=new JourneyColumnsCommand(),_0x176a44=program['opts'](),_0x15e2cf=await createTDXInstance(_0x176a44),_0x16fefe=await _0x51609e[_0x6db4c2(0x437)]({'options':{..._0x176a44,..._0x5eafda},'args':[_0x1d594c],'tdx':_0x15e2cf});gracefulExit(_0x16fefe);}),journeyCmd[a2_0x3547a0(0x24c)]('activations\x20<name-or-path>')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x246))[a2_0x3547a0(0x320)](async(_0x32dc1d,_0x201788)=>{const _0x53946b=a2_0x3547a0,_0x21acc1=new JourneyActivationsCommand(),_0x454f7b=program[_0x53946b(0x355)](),_0x41b402=await createTDXInstance(_0x454f7b),_0x285939=await _0x21acc1[_0x53946b(0x437)]({'options':{..._0x454f7b,..._0x201788},'args':[_0x32dc1d],'tdx':_0x41b402});gracefulExit(_0x285939);}),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x228))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2dc))[a2_0x3547a0(0x320)](async(_0x597227,_0x44d095)=>{const _0x513232=a2_0x3547a0,_0x1d0591=new JourneyVersionsCommand(),_0x3edd0b=program[_0x513232(0x355)](),_0x1bfcb5=await createTDXInstance(_0x3edd0b),_0x4fa4d0=await _0x1d0591[_0x513232(0x437)]({'options':{..._0x3edd0b,..._0x44d095},'args':[_0x597227],'tdx':_0x1bfcb5});gracefulExit(_0x4fa4d0);});const journeyVersionCmd=journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3e0))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1a3));journeyVersionCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x26a))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x49b))[a2_0x3547a0(0x320)](async(_0x1ec8d7,_0x589297)=>{const _0x16345b=a2_0x3547a0,_0x3e2c83=new JourneyVersionCreateCommand(),_0xe62222=program[_0x16345b(0x355)](),_0x4d50ff=await createTDXInstance(_0xe62222),_0x7a10df=await _0x3e2c83[_0x16345b(0x437)]({'options':{..._0xe62222,..._0x589297},'args':[_0x1ec8d7],'tdx':_0x4d50ff});gracefulExit(_0x7a10df);}),journeyVersionCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x407))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x4be))['requiredOption'](a2_0x3547a0(0x44c),'Version\x20number\x20to\x20view')[a2_0x3547a0(0x320)](async(_0xa683d2,_0x5f0119)=>{const _0x122aa2=a2_0x3547a0,_0x56f144=new JourneyVersionViewCommand(),_0x9f47f8=program['opts'](),_0xaa44e0=await createTDXInstance(_0x9f47f8),_0x225d8d=await _0x56f144[_0x122aa2(0x437)]({'options':{..._0x9f47f8,..._0x5f0119},'args':[_0xa683d2],'tdx':_0xaa44e0});gracefulExit(_0x225d8d);}),journeyCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3ef))['description'](a2_0x3547a0(0x2db))[a2_0x3547a0(0x320)](async(_0x5ab7cb,_0x4b1d55)=>{const _0x5299ae=a2_0x3547a0,_0x5591d8=new JourneyValidateCommand(),_0x5a715a=program[_0x5299ae(0x355)](),_0xad9f53=await createTDXInstance(_0x5a715a),_0x4501e8=await _0x5591d8['run']({'options':{..._0x5a715a,..._0x4b1d55},'args':_0x5ab7cb?[_0x5ab7cb]:[],'tdx':_0xad9f53});gracefulExit(_0x4501e8);}),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x22f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x40c))['action'](journeyListAction);const agentSyncCmd=program[a2_0x3547a0(0x24c)]('agent')[a2_0x3547a0(0x1cf)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x3547a0(0x2a8))['description'](a2_0x3547a0(0x4b8))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1fc),'Output\x20directory')[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b1),'Overwrite\x20local\x20changes\x20without\x20confirmation')['option'](a2_0x3547a0(0x416),a2_0x3547a0(0x24e))[a2_0x3547a0(0x320)](async(_0x3612bf,_0x273d9b,_0x1343ad)=>{const _0x7ddf7f=a2_0x3547a0,_0x39173b=new AgentPullCommand(),_0x221ff6=program['opts'](),_0x4887d3=await createTDXInstance(_0x221ff6),_0x21d136=[];if(_0x3612bf)_0x21d136[_0x7ddf7f(0x494)](_0x3612bf);if(_0x273d9b)_0x21d136[_0x7ddf7f(0x494)](_0x273d9b);const _0x270d68=await _0x39173b[_0x7ddf7f(0x437)]({'options':{..._0x221ff6,..._0x1343ad},'args':_0x21d136,'tdx':_0x4887d3});gracefulExit(_0x270d68);}),agentSyncCmd['command'](a2_0x3547a0(0x4bb))['description'](a2_0x3547a0(0x49f))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b1),a2_0x3547a0(0x408))[a2_0x3547a0(0x320)](async(_0x5647e1,_0x23ad18)=>{const _0x49b4b6=a2_0x3547a0,_0x265238=new AgentPushCommand(),_0x3e5671=program[_0x49b4b6(0x355)](),_0x237aca=await createTDXInstance(_0x3e5671),_0x5d57cd=await _0x265238[_0x49b4b6(0x437)]({'options':{..._0x3e5671,..._0x23ad18},'args':_0x5647e1?[_0x5647e1]:[],'tdx':_0x237aca});gracefulExit(_0x5d57cd);}),agentSyncCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x475))[a2_0x3547a0(0x1cf)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option']('-n,\x20--name\x20<name>','Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3547a0(0x320)](async(_0x1b6a48,_0x389130)=>{const _0x576573=a2_0x3547a0,_0x149e6a=new AgentCloneCommand(),_0x2fc134=program[_0x576573(0x355)](),_0x40410b=await createTDXInstance(_0x2fc134),_0x4e52ef=await _0x149e6a['run']({'options':{..._0x2fc134,..._0x389130},'args':_0x1b6a48?[_0x1b6a48]:[],'tdx':_0x40410b});gracefulExit(_0x4e52ef);}),agentSyncCmd['command']('test\x20[path]')[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1a8))[a2_0x3547a0(0x381)]('--name\x20<names>',a2_0x3547a0(0x277))['option'](a2_0x3547a0(0x214),a2_0x3547a0(0x3b6))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b2),a2_0x3547a0(0x3b8))[a2_0x3547a0(0x381)]('--no-eval',a2_0x3547a0(0x312))[a2_0x3547a0(0x381)]('--reeval',a2_0x3547a0(0x3d7))[a2_0x3547a0(0x320)](async(_0x2b79ba,_0x11e0be)=>{const _0x11ad12=a2_0x3547a0,_0x1273f3=new AgentTestCommand(),_0x55dd44=program[_0x11ad12(0x355)](),_0x2f60ce=await createTDXInstance(_0x55dd44),_0x3b8c4c=await _0x1273f3[_0x11ad12(0x437)]({'options':{..._0x55dd44,..._0x11e0be},'args':_0x2b79ba?[_0x2b79ba]:[],'tdx':_0x2f60ce});gracefulExit(_0x3b8c4c);}),agentSyncCmd['command'](a2_0x3547a0(0x249))['description'](a2_0x3547a0(0x37e))[a2_0x3547a0(0x320)](llmAgentListAction),agentSyncCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x2a9))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x450))[a2_0x3547a0(0x320)](async(_0xc6e29d,_0x54046c)=>{const _0x8d1b5e=a2_0x3547a0,_0x1f800f=new LLMAgentShowCommand(),_0xc690f2=program[_0x8d1b5e(0x355)](),_0x565290=await createTDXInstance(_0xc690f2),_0x1e9d53=await _0x1f800f[_0x8d1b5e(0x437)]({'options':{..._0xc690f2,..._0x54046c},'args':[_0xc6e29d],'tdx':_0x565290});gracefulExit(_0x1e9d53);}),agentSyncCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x427))['description'](a2_0x3547a0(0x3d4))[a2_0x3547a0(0x381)](a2_0x3547a0(0x1dd),a2_0x3547a0(0x3a7))[a2_0x3547a0(0x381)](a2_0x3547a0(0x260),a2_0x3547a0(0x328),a2_0x3547a0(0x1c5))[a2_0x3547a0(0x381)]('--starter-message\x20<text>',a2_0x3547a0(0x41b))['option'](a2_0x3547a0(0x270),a2_0x3547a0(0x467),'4')[a2_0x3547a0(0x381)](a2_0x3547a0(0x469),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x3547a0(0x383))[a2_0x3547a0(0x320)](async(_0xe6765e,_0x428e05)=>{const _0x5c4e45=a2_0x3547a0,_0x260655=new LLMAgentCreateCommand(),_0xc83909=program[_0x5c4e45(0x355)](),_0x2e4d06=await createTDXInstance(_0xc83909),_0x32b1ba=await _0x260655[_0x5c4e45(0x437)]({'options':{..._0xc83909,..._0x428e05},'args':[_0xe6765e],'tdx':_0x2e4d06});gracefulExit(_0x32b1ba);}),agentSyncCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x33f))[a2_0x3547a0(0x1cf)]('Update\x20an\x20existing\x20agent')[a2_0x3547a0(0x381)](a2_0x3547a0(0x44e),a2_0x3547a0(0x1a2))[a2_0x3547a0(0x381)]('--prompt\x20<text>','Agent\x20prompt/instructions')[a2_0x3547a0(0x381)](a2_0x3547a0(0x356),a2_0x3547a0(0x36a))[a2_0x3547a0(0x381)](a2_0x3547a0(0x449),'Starter\x20message')[a2_0x3547a0(0x320)](async(_0x5e3f04,_0x4b1781)=>{const _0x952f0c=a2_0x3547a0,_0x1f3eea=new LLMAgentUpdateCommand(),_0x10fb29=program[_0x952f0c(0x355)](),_0x4f5c7e=await createTDXInstance(_0x10fb29),_0x3db390=await _0x1f3eea[_0x952f0c(0x437)]({'options':{..._0x10fb29,..._0x4b1781},'args':[_0x5e3f04],'tdx':_0x4f5c7e});gracefulExit(_0x3db390);}),agentSyncCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x1cc))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x1fe))[a2_0x3547a0(0x320)](async(_0x1ddf58,_0x50776b)=>{const _0x3beaec=a2_0x3547a0,_0x3658eb=new LLMAgentDeleteCommand(),_0x280297=program[_0x3beaec(0x355)](),_0x71a622=await createTDXInstance(_0x280297),_0xbbe326=await _0x3658eb[_0x3beaec(0x437)]({'options':{..._0x280297,..._0x50776b},'args':[_0x1ddf58],'tdx':_0x71a622});gracefulExit(_0xbbe326);});const workCmd=program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x25e))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3d5));workCmd[a2_0x3547a0(0x381)](a2_0x3547a0(0x3f7),a2_0x3547a0(0x43a))[a2_0x3547a0(0x381)](a2_0x3547a0(0x33d),a2_0x3547a0(0x1ab))[a2_0x3547a0(0x320)](workSummaryAction),workCmd['command'](a2_0x3547a0(0x32e))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x376))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2b5),a2_0x3547a0(0x386))[a2_0x3547a0(0x320)](workInitAction),workCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x45a))['description'](a2_0x3547a0(0x2fa))[a2_0x3547a0(0x381)](a2_0x3547a0(0x241),'Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)',a2_0x3547a0(0x2e9))[a2_0x3547a0(0x381)](a2_0x3547a0(0x214),a2_0x3547a0(0x436))[a2_0x3547a0(0x381)](a2_0x3547a0(0x393),a2_0x3547a0(0x3db))[a2_0x3547a0(0x381)](a2_0x3547a0(0x2c1),a2_0x3547a0(0x487))['option'](a2_0x3547a0(0x247),a2_0x3547a0(0x49a))['option'](a2_0x3547a0(0x2af),a2_0x3547a0(0x22e))[a2_0x3547a0(0x381)](a2_0x3547a0(0x3a8),'Assignee')[a2_0x3547a0(0x320)](workNewAction),workCmd[a2_0x3547a0(0x24c)]('move\x20<name>\x20<status>')['description']('Transition\x20a\x20task\x20to\x20a\x20new\x20status')[a2_0x3547a0(0x320)](workMoveAction),workCmd['command'](a2_0x3547a0(0x28c))['description'](a2_0x3547a0(0x23f))['option'](a2_0x3547a0(0x3f7),'Show\x20items\x20updated\x20within\x20N\x20days')[a2_0x3547a0(0x381)](a2_0x3547a0(0x33d),'Include\x20all\x20items\x20(no\x20stale\x20filtering)')[a2_0x3547a0(0x320)](workBoardAction),workCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x489))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x3f2))[a2_0x3547a0(0x320)](workShowAction),workCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x37f))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2d3))[a2_0x3547a0(0x320)](workLinksAction),workCmd[a2_0x3547a0(0x24c)](a2_0x3547a0(0x317))[a2_0x3547a0(0x1cf)](a2_0x3547a0(0x2cd))[a2_0x3547a0(0x320)](workOpenAction),program[a2_0x3547a0(0x24c)](a2_0x3547a0(0x3b9),{'hidden':!![]})['action'](()=>{const _0x60789=a2_0x3547a0;function _0x13cbc6(_0x43434f,_0x79604d){const _0x16affc=a2_0x39b3,_0x4ae218=[];for(const _0x32292b of _0x43434f[_0x16affc(0x3e3)]){if(_0x32292b['_hidden'])continue;const _0x1cd0f0=_0x79604d?_0x79604d+'\x20'+_0x32292b[_0x16affc(0x391)]():_0x32292b[_0x16affc(0x391)](),_0x557f58=_0x1cd0f0[_0x16affc(0x41a)]('\x20')[0x0],_0x8c4608=COMMAND_CATEGORIES[_0x16affc(0x213)](_0x5063e5=>_0x5063e5[_0x16affc(0x3e3)][_0x16affc(0x23e)](_0x557f58)),_0x9de297=_0x8c4608?.[_0x16affc(0x391)]??'';if(_0x32292b[_0x16affc(0x3e3)][_0x16affc(0x2c3)]>0x0)_0x4ae218[_0x16affc(0x494)](..._0x13cbc6(_0x32292b,_0x1cd0f0));else{const _0x379889=(_0x32292b[_0x16affc(0x2a1)]||[])[_0x16affc(0x2c2)](_0x5ab998=>{const _0x18e46c=_0x16affc,_0x4afe2d=_0x5ab998[_0x18e46c(0x444)]?_0x5ab998[_0x18e46c(0x391)]()+_0x18e46c(0x1c0):_0x5ab998['name']();return _0x5ab998['required']?'<'+_0x4afe2d+'>':'['+_0x4afe2d+']';})[_0x16affc(0x245)]('\x20'),_0x592e96=_0x32292b['options']['filter'](_0x2b1ebc=>!_0x2b1ebc[_0x16affc(0x1a7)]&&_0x2b1ebc[_0x16affc(0x1d2)]!==_0x16affc(0x2e3))['map'](_0x291b94=>({'flags':_0x291b94['flags'],'description':_0x291b94[_0x16affc(0x1cf)]}));_0x4ae218['push']({'name':_0x1cd0f0,'description':_0x32292b['description'](),'group':_0x9de297,'usage':_0x379889,'options':_0x592e96});}}return _0x4ae218;}console[_0x60789(0x20c)](JSON[_0x60789(0x289)](_0x13cbc6(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x3d0b8a=a2_0x3547a0,_0x26887d=!process[_0x3d0b8a(0x266)][_0x3d0b8a(0x2cf)](0x2)[_0x3d0b8a(0x2c3)];showBriefHelp=_0x26887d,program[_0x3d0b8a(0x1b6)](process['argv']);_0x26887d&&program[_0x3d0b8a(0x38d)]();const _0x16f5fd=process[_0x3d0b8a(0x266)][0x2]===_0x3d0b8a(0x4af);if(process[_0x3d0b8a(0x1be)][_0x3d0b8a(0x1f2)]&&process[_0x3d0b8a(0x266)][_0x3d0b8a(0x2c3)]>0x2&&!isDevVersion()&&!_0x16f5fd){const _0x16037f=loadReleaseChannel();checkForUpdate(currentVersion,_0x16037f)['then'](_0x3e63a1=>{_0x3e63a1&&displayUpdateNotification(_0x3e63a1);})[_0x3d0b8a(0x430)](()=>{});}}
1
+ const a2_0x9f465f=a2_0x23b4;(function(_0xe641d2,_0x3677ef){const _0x23c7f0=a2_0x23b4,_0xe03606=_0xe641d2();while(!![]){try{const _0x4309f7=parseInt(_0x23c7f0(0x359))/0x1+parseInt(_0x23c7f0(0x3b3))/0x2+-parseInt(_0x23c7f0(0x24b))/0x3+-parseInt(_0x23c7f0(0x30c))/0x4*(parseInt(_0x23c7f0(0x36a))/0x5)+parseInt(_0x23c7f0(0x2fd))/0x6+-parseInt(_0x23c7f0(0x151))/0x7+parseInt(_0x23c7f0(0x367))/0x8;if(_0x4309f7===_0x3677ef)break;else _0xe03606['push'](_0xe03606['shift']());}catch(_0x1d47e3){_0xe03606['push'](_0xe03606['shift']());}}}(a2_0x3d01,0x43d54));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,PSRtJnListCommand,PSRtJnPauseCommand,PSRtJnResumeCommand,PSRtConfigVersionCommand,PSPzServiceListCommand,PSPzServiceCreateCommand,PSPzServiceShowCommand,PSPzServiceDeleteCommand,PSPzServiceUpdateCommand,PSPzServiceTokenCreateCommand,PSPzServiceTokenDeleteCommand,PSPzListCommand,PSPzShowCommand,PSPzDeleteCommand,PSPzCreateCommand,PSPzPatchCommand,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,WorkflowSchedulesCommand,WorkflowScheduleEnableCommand,WorkflowScheduleDisableCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';function a2_0x23b4(_0xb6b285,_0x2272de){_0xb6b285=_0xb6b285-0xe1;const _0x3d0124=a2_0x3d01();let _0x23b4e2=_0x3d0124[_0xb6b285];return _0x23b4e2;}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,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,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{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-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,ProfileDeleteCommand,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{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';function a2_0x3d01(){const _0x4042c4=['INVALID_ARGUMENT','show\x20<job-id>','opts','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','configureHelp','flags','set','--behaviors\x20<json>','--from\x20<date>','--chat-id\x20<id>','error','update\x20<segment_name>','submit\x20[query]','replace','delete\x20<service_id>\x20[parent_segment]','workflow','Get\x20current\x20RT\x20configuration\x20version\x20status','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Master\x20table\x20name','isDirectory','--limit\x20<number>','RT\x202.0\x20configuration\x20management','Alias\x20for\x20--database\x20(natural\x20language\x20style)','secrets','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Set\x20a\x20profile\x20configuration\x20value','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','--html\x20<html>','--name\x20<text>','--llm-project\x20<name>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','show\x20<folder_ref>','delete\x20<personalization_id>','--customer-group\x20<json>','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','--kind\x20<kind>','senders\x20[pattern]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--retry-limit\x20<0~32>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','schedules','models','--timezone\x20<tz>','[action]','Show\x20only\x20master\x20table\x20validation','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Pull\x20workflow\x20project\x20to\x20local\x20folder','Parent\x20folder\x20name\x20for\x20nested\x20folders','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','New\x20segment\x20name','Create\x20a\x20new\x20profile','pull\x20[project]\x20[agent-name]','Job\x20management\x20commands','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','run\x20[workflow]','Manage\x20workflow\x20schedules\x20(enable/disable)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Update\x20a\x20scheduled\x20query','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Timezone\x20(e.g.,\x20America/Los_Angeles)','Preview\x20changes\x20without\x20writing\x20files','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Folder\x20name\x20for\x20organization','New\x20workspace\x20name','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','run\x20[name]','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','timeline\x20[project.workflow]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','1861608nexbfo','New\x20template\x20name','--description\x20<text>','journey','\x20-\x20built\x20','Add\x20attributes\x20as\x20JSON\x20string','--last','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','llm','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Pause\x20activations\x20in\x20an\x20RT\x20journey','Resume\x20a\x20paused\x20campaign','registeredArguments','tasks','--system-prompt\x20<text>','543428ngjlJd','activations\x20<name-or-path>','--customer-group-file\x20<file>','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','--tags\x20<tags>','remove\x20<name>','profile','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Invalid\x20--limit\x20value:\x20\x22','Scheduled\x20query\x20management\x20commands','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','pull\x20[workspace]','validate\x20[target]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','RT\x20Journey\x20management','GET','--public','--dry-run','--dir\x20<dir>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','name','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','Target\x20directory\x20for\x20YAML\x20files','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','template','stats\x20<name-or-path>','Pull\x20specific\x20revision\x20(default:\x20latest)','LLM\x20agent\x20management','Open\x20a\x20document\x20in\x20$EDITOR','pull\x20[workspace-name]','update\x20<service_id>\x20[parent_segment]','argv','-p,\x20--profile\x20<name>','us01','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','launch\x20<name-or-id>','Campaign\x20name','disable\x20<id>','info\x20[segment_name]','Delete\x20a\x20realtime\x20personalization','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Database\x20name\x20(required)','includes','--name\x20<name>','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','-1d','--parent-segment\x20<name>','tdx\x20','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','isTTY','Version\x20number\x20to\x20view','Delete\x20an\x20agent','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Path\x20is\x20not\x20a\x20directory:\x20','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--include-stats','board','LLM\x20project\x20to\x20use\x20(overrides\x20context)','activations\x20<segment_name>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--version\x20<number>','Personalization\x20name','Include\x20subtasks\x20in\x20tasks\x20output','[DEPRECATED]\x20Segment\x20folder\x20management','Interactive\x20chat\x20selector','desc\x20[name]','--force','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','fields\x20[parent_name]','List\x20composable\x20segments\x20for\x20an\x20audience','Access\x20control\x20policy\x20commands','--method\x20<pm>','--session\x20<id>','retry','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','parse','58219ZfzIiP','Parent\x20segment\x20description','Skip\x20confirmation\x20prompt','show\x20<service_id>\x20[parent_segment]','-v,\x20--verbose','Request\x20body\x20as\x20JSON\x20string','Workspace\x20name','User\x20management\x20commands','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Workspace\x20name\x20(required)','Disable\x20a\x20workflow\x20schedule','Parse\x20and\x20validate\x20without\x20executing','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Pull\x20child\x20segments\x20to\x20YAML\x20files','7609312sdcFJP','finish\x20<name-or-id>','create\x20<name>','15ciHEuf','Query\x20type:\x20trino\x20or\x20hive','--add-attributes-file\x20<file>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','-f,\x20--file\x20<path>','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','List\x20activations\x20for\x20a\x20journey','chat\x20[message...]','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Job\x20priority\x20(-2\x20to\x202)','trace','-c,\x20--continue','--color','-n,\x20--name\x20<name>','cas','journeys\x20[pattern]','AI-native\x20work\x20management','Show\x20always-on\x20campaign\x20details','--next','List\x20agents\x20in\x20current\x20project','Add\x20attributes\x20from\x20JSON\x20file','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','list\x20[pattern]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','run\x20<name>','create\x20<segment_name>','run','Data\x20connection\x20management\x20(for\x20activations/exports)','database','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--timeout\x20<seconds>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Show\x20campaign\x20details','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--follow','tsv','TRACE','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','filter','System\x20prompt/instructions\x20(default:\x20empty)','show\x20<name>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Create\x20a\x20workspace','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Launch\x20an\x20always-on\x20campaign','--add-behaviors-file\x20<file>','Update\x20a\x20realtime\x20personalization\x20entity','schedule','-a,\x20--agent\x20<name>','Pull\x20specific\x20campaign\x20by\x20name','--table\x20<table>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','resume\x20<name-or-path>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--html-file\x20<path>','-f,\x20--force','Validate\x20journey\x20YAML\x20files\x20locally','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','AI-native\x20CLI\x20for\x20Treasure\x20Data','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','--params\x20<json>','-r,\x20--recursive','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','job','--sections\x20<json>','slice','addHelpText','flatMap','Validate\x20template\x20YAML\x20files\x20locally','--param\x20<key=value>','717624UoEXVR','folder','--include-retried','list','--database\x20<name>','pause_activations\x20<journeyId>','map','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','workspaces\x20[pattern]','--account-name\x20<name>','Update\x20an\x20email\x20template','Maximum\x20rows\x20to\x20display','statusline','-r,\x20--resume','Workflow\x20attempt\x20management','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','help','jobs','Clear\x20session\x20context','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','update\x20<agent-name>','--clear','--reason\x20<text>','types','query\x20[sql]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','[attempt-id]','Project\x20description','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','buildTime','--attempt-id\x20<id>','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)',',\x20version\x20','Retry\x20limit\x20(0\x20to\x2032)','then','--master','pause\x20<name-or-id>','update\x20<name>','--github\x20<owner/repo>','kill\x20<job-id>','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20available\x20LLM\x20models','--default','--yes','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','alias','--status\x20<status>','--jsonl','audience','repeat','--max-depth\x20<depth>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','push','Directory\x20does\x20not\x20exist:\x20','_list-commands','--from\x20<n>','--temperature\x20<n>','use\x20[resource]\x20[value]','Include\x20raw\x20history\x20data\x20in\x20output','Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)','Starter\x20message','[options]\x20--\x20[claude-code-args...]','Query\x20engine\x20version','Workflow\x20session\x20management','--all','upload\x20[project-name-or-dir]','list\x20[name]','-d,\x20--database\x20<database>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','trino','delivery','--no-eval','Pause\x20a\x20running\x20journey','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','table','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Resume\x20activations\x20in\x20an\x20RT\x20journey','Commands:','Delay\x20in\x20seconds\x20before\x20execution','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Follow/watch\x20timeline\x20for\x20running\x20attempts','--allowed-ips\x20<ips>','Usage:\x20','Database\x20management\x20commands','project','Show\x20a\x20specific\x20realtime\x20personalization','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','summary','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Set\x20operation\x20timeout\x20in\x20seconds','isArray','auth','--plaintext\x20<text>','INFO','argumentTerm','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Overwrite\x20existing\x20profile','preview\x20[file]','site','Submit\x20a\x20job','--days\x20<n>','--name\x20<names>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Change\x20to\x20directory\x20before\x20executing\x20command','--full','Resume\x20from\x20specific\x20task\x20(retry)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Attributes\x20as\x20JSON\x20string','argumentDescription','Include\x20retried\x20attempts','Always-on\x20campaign\x20management','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--delete','CDP\x20Journey\x20Orchestration\x20commands','--model\x20<name>','--delay\x20<seconds>','Make\x20segment\x20invisible\x20(default:\x20visible)','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','backup\x20<name>','--engine-version\x20<version>','tdx','exit','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Run\x20a\x20scheduled\x20query\x20immediately','Export\x20journey(s)\x20as\x20YAML\x20files','Timezone\x20for\x20cron','Token\x20description','--editor-type\x20<type>','Show\x20segment\x20schema\x20(column\x20types)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','status','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Create\x20a\x20new\x20document','delete\x20<project-name-or-id>','--new','session','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','List\x20secret\x20keys\x20for\x20a\x20project','Update\x20an\x20always-on\x20campaign','--in\x20<database>','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','columns\x20<name-or-path>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','--description\x20<desc>','delete\x20<name>','describe','\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','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','configuration_versions\x20[name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--job-type\x20<type>','Plaintext\x20template\x20content','result\x20<job-id>','stdout','Skip\x20confirmation\x20prompts','--num\x20<1-10>','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','traffic\x20<name-or-path>','create\x20<name-or-path>','_hidden','--type\x20<type>','--audience-id\x20<id>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','-w,\x20--web','Pull\x20specific\x20template\x20by\x20name','Open\x20segment\x20in\x20web\x20browser','Open\x20journey\x20in\x20web\x20browser','Create\x20a\x20new\x20campaign','format','--add-behaviors\x20<json>','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','--json','-C,\x20--directory\x20<path>','Pause\x20an\x20always-on\x20campaign','use\x20[name]','Behaviors\x20from\x20JSON\x20file','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a','preAction','--invisible','Show\x20document\x20details','Delete\x20a\x20workspace','Show\x20workspace\x20details','Show\x20segment\x20details\x20(alias\x20for\x20view)','Updated\x20timezone','show\x20<policy>','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','Pause\x20a\x20campaign','Agent\x20prompt/instructions','length','--reeval','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','history\x20<name>','Maximum\x20tool\x20iterations\x20(default:\x204)','--parent-folder\x20<name>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Maximum\x20number\x20of\x20nodes','View\x20a\x20specific\x20version\x20of\x20a\x20journey','3130372LVvBqM','forEach','Ending\x20offset\x20(default:\x2020)','Service\x20description','\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Personalization\x20service\x20token\x20management','clear','command','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','--help','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','token','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','duplicate\x20<name-or-id>','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Personalization\x20description','Move\x20to\x20folder','--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Task\x20name\x20for\x20logs\x20action','Personalization\x20management','action','Clear\x20workflow\x20project\x20context','open\x20<name>','commandUsage','--tsv','--output\x20<file>','Preview\x20without\x20creating\x20the\x20project','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','-u,\x20--use','Create\x20a\x20scheduled\x20query','--segment\x20<path>','\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,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Email\x20template\x20management','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Reason\x20for\x20killing\x20the\x20attempt','optionDescription','Include\x20execution\x20statistics','Show\x20schedule\x20execution\x20history','Preview\x20composable\x20segment\x20query\x20on\x20CDW','resume\x20<name-or-id>','Show\x20email\x20template\x20details','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','show\x20<personalization_id>','subcommandTerm','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Maximum\x20recursion\x20depth\x20(default:\x2010)','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Remove\x20API\x20key\x20from\x20system\x20keychain','campaign','End\x20time\x20filter\x20(ISO\x208601\x20format)','Delete\x20a\x20scheduled\x20query','Skip\x20validation\x20of\x20.dig\x20files','use\x20<project-name>','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','hidden','Filtering\x20rule\x20as\x20JSON\x20string','apiKey','JSON\x20columns\x20for\x20connector\x20(comma-separated)','agents\x20[pattern]','--template\x20<name>','--trace','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','enable\x20<id>','--kind\x20<type>','--body\x20<body>','kill','--subject\x20<subject>','Email\x20sender\x20ID\x20for\x20delivery','CDP\x20segment\x20management\x20commands','Database\x20name\x20(default:\x20information_schema)','List\x20jobs','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Invalid\x20editor\x20type:\x20','schema\x20<type>','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','validate\x20[file]','Cron\x20expression\x20for\x20scheduling','stderr','Segment\x20description','Read\x20query\x20from\x20file','parents\x20[pattern]','commands','--no-count-population','List\x20all\x20users\x20in\x20the\x20account','Show\x20stats\x20for\x20specific\x20stage','Update\x20a\x20workspace','Database\x20name','pull\x20[name]','\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','Resume\x20a\x20paused\x20always-on\x20campaign','Attributes\x20from\x20JSON\x20file','claude-4.5-sonnet','-o,\x20--output\x20<folder>','timeout','--catalog\x20<catalog>','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Kill\x20a\x20job','engage_workspace','--no-proxy','Authentication\x20management','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','push\x20[parent_or_file]','Agent\x20name','--schedule-type\x20<type>','--priority\x20<-2~2>','service','set\x20<args...>','Options:','Enable\x20verbose\x20logging','Output\x20as\x20JSON\x20Lines','Manage\x20workflow\x20project\x20secrets','--max-tool-iterations\x20<n>','list\x20[path]','noColor','...','Continue\x20most\x20recent\x20conversation','Arguments:','stringify','List\x20journeys\x20in\x20current\x20context','--email-sender-id\x20<id>','use\x20[project]','Customer\x20group\x20from\x20JSON\x20file','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Timezone\x20for\x20cron\x20(default:\x20UTC)','describe\x20[table]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Campaign\x20management','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--verbose','Show\x20what\x20would\x20be\x20written\x20without\x20writing','information_schema','Show\x20Kanban\x20board\x20view\x20of\x20tasks','download\x20<project-name>\x20[output-dir]','connections','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','Resume\x20from\x20specific\x20task','beefree','Behaviors\x20as\x20JSON\x20string','Preview\x20operation\x20without\x20executing','Name\x20for\x20the\x20new\x20project\x20(required)','databases\x20[pattern]','Show\x20master\x20table\x20sample\x20data','Read\x20SQL\x20query\x20from\x20file','[EXPERIMENTAL]\x20Show\x20chat\x20log','pull\x20<project>\x20[target-dir]','--limit\x20<n>','workflows\x20[project]','--cron\x20<expression>','Show\x20the\x20most\x20recent\x20chat','--session-id\x20<id>','Document\x20body\x20text','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Workflow\x20parameter\x20(repeatable)','--include-subtasks','fields\x20[name]','--schedule-option\x20<value>','Updated\x20schedule\x20option','Read\x20request\x20body\x20from\x20file','--folder-id\x20<id>','list\x20[project]','work','--json-columns\x20<cols>','required','show\x20<name-or-id>','Campaign\x20type\x20(email\x20or\x20push)','Show\x20job\x20details','version','delete\x20<agent-name>','--site\x20<site>','Overwrite\x20local\x20changes\x20without\x20confirmation','join','projects\x20[pattern]','test\x20[path]','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','--database\x20<db>','padWidth','description','Campaign\x20description','init\x20[name]','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','split','Run\x20specific\x20tests\x20(comma-separated)','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','create','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','folders\x20<parent_name>','--include-history','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','--type\x20<api_type>','Revision\x20name\x20(default:\x20timestamp)','--file\x20<path>','upgrade','Duplicate\x20an\x20always-on\x20campaign','-d,\x20--database\x20<db>','--resume-from\x20<task>','after','--folder\x20<name>','List\x20email\x20senders','unset\x20<resource>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','clone\x20[source-dir]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--data\x20<data>','--to\x20<date>','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','-o,\x20--output\x20<file>','jsonl','Parent\x20segment\x20management','tables\x20[pattern]','upgrade\x20[version]','--name\x20<new_name>','--behavior\x20[name]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','show\x20[name]','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','update\x20<name-or-id>','Initial\x20status','Unknown\x20action:\x20','List\x20all\x20available\x20profiles','aliases','allowUnknownOption','long','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','patch\x20<personalization_id>','show\x20[table]','use\x20<path>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','List\x20composable\x20audiences','option','-y,\x20--yes','accessToken','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Delete\x20a\x20campaign','sql\x20[name]','push\x20[source-dir]','-H,\x20--header\x20<header>','Apply\x20a\x20template','always-on-campaigns\x20[pattern]','item','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','view\x20[segment_name]','1637556mSaTeT','Get\x20job\x20results','resume_activations\x20<journeyId>','HTML\x20template\x20content','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Pull\x20templates\x20to\x20YAML\x20files','directory','preview\x20[name]','Delete\x20an\x20email\x20template','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--start-at\x20<datetime>','sql\x20[segment_name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--to\x20<timestamp>','Show\x20items\x20updated\x20within\x20N\x20days','Output\x20as\x20JSON','logLevel','Set\x20or\x20show\x20parent\x20segment\x20context','--workspace\x20<name>','Workspace\x20description','use\x20<name>','always-on-campaign','create\x20<name>\x20<service_id>\x20[parent_segment]','debug','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--rule\x20<json>','LLM\x20project\x20management','options','Delivery\x20operations\x20(email\x20senders)','connection','--name\x20<new-name>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','desc\x20[segment_name]','outputHelp','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','gitRevision','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','0.7','Delete\x20a\x20profile','grapesjs','--agent\x20<ref>','json','New\x20campaign\x20name','usage','--enable-utm-tracking','Customer\x20group\x20as\x20JSON\x20string','--starter-message\x20<text>','--skip-validation','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','variadic','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[target]','--rule-file\x20<file>','Resume\x20a\x20conversation\x20(shows\x20selector)','Show\x20authentication\x20status\x20and\x20current\x20context','\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','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Sections\x20as\x20an\x20inline\x20JSON\x20array','pause\x20<name-or-path>','--revision\x20<revision>','optionTerm','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','-X,\x20--method\x20<method>','push\x20[file]','list\x20[audience_name]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Agent\x20description','attempt','Attempt\x20ID','Add\x20behaviors\x20as\x20JSON\x20string','--interval\x20<range>','Create\x20an\x20email\x20template','List\x20available\x20connector\x20types','history\x20[chat-id]','segment','view\x20[name]','Model\x20type\x20(default:\x20claude-4.5-sonnet)','hook','versions\x20<name-or-path>','restore\x20<folder>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','requiredOption','--no-color','log','delete\x20<name-or-id>','Finish\x20an\x20always-on\x20campaign','attempts\x20[project]','argument','New\x20service\x20description','--attribute\x20[name]','--assignee\x20<assignee>','Show\x20schedule\x20details','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','links\x20<name>','parent','api\x20[endpoint]','Resume\x20a\x20paused\x20journey','validate\x20[name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--priority\x20<priority>','--from\x20<timestamp>'];a2_0x3d01=function(){return _0x4042c4;};return a2_0x3d01();}import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-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_0x9f465f(0x337)]('--version')){let versionOutput=a2_0x9f465f(0x33c)+currentVersion;buildInfo[a2_0x9f465f(0x26f)]&&!currentVersion['includes'](buildInfo[a2_0x9f465f(0x26f)])&&(versionOutput+='\x20('+buildInfo[a2_0x9f465f(0x26f)]+')'),buildInfo[a2_0x9f465f(0x3d1)]&&(versionOutput+=a2_0x9f465f(0x301)+buildInfo[a2_0x9f465f(0x3d1)]),console['log'](versionOutput),process[a2_0x9f465f(0x100)](0x0);}const program=new Command();export function mergeCommandOptions(_0x3b1504,_0x5e8cd3){const _0x27b522={..._0x3b1504};for(const [_0xdb12ce,_0x2c79dc]of Object['entries'](_0x5e8cd3)){_0x2c79dc!==undefined&&(_0x27b522[_0xdb12ce]=_0x2c79dc);}return _0x27b522;}let showBriefHelp=![],description=a2_0x9f465f(0x3a6);buildInfo[a2_0x9f465f(0x26f)]&&!currentVersion[a2_0x9f465f(0x337)](buildInfo[a2_0x9f465f(0x26f)])?description+=a2_0x9f465f(0x3d4)+currentVersion+'\x20('+buildInfo[a2_0x9f465f(0x26f)]+')':description+=a2_0x9f465f(0x3d4)+currentVersion;program[a2_0x9f465f(0x321)]('tdx')[a2_0x9f465f(0x207)](description),program[a2_0x9f465f(0x23e)](a2_0x9f465f(0x138),a2_0x9f465f(0xed))['option'](a2_0x9f465f(0x32d),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1fe),a2_0x9f465f(0x225),a2_0x9f465f(0x32e))['option']('--format\x20<format>',a2_0x9f465f(0x2f7))[a2_0x9f465f(0x23e)]('--table',a2_0x9f465f(0x394))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x137),a2_0x9f465f(0x15d))[a2_0x9f465f(0x23e)]('--jsonl',a2_0x9f465f(0x24f))['option'](a2_0x9f465f(0x16a),a2_0x9f465f(0x3e8))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x16b),'Save\x20output\x20to\x20file')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2c6),a2_0x9f465f(0x2f1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x376),a2_0x9f465f(0x230),![])['option'](a2_0x9f465f(0x29f),a2_0x9f465f(0x407),![])[a2_0x9f465f(0x23e)](a2_0x9f465f(0x35d),a2_0x9f465f(0x1c2),![])['option']('--debug',a2_0x9f465f(0x3c6))['option'](a2_0x9f465f(0x191),a2_0x9f465f(0x2ee))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x389),a2_0x9f465f(0x413),'30')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x1e0),![])['option'](a2_0x9f465f(0x23f),a2_0x9f465f(0x126),![])['option'](a2_0x9f465f(0x355),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x33b),a2_0x9f465f(0x226))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2d1),a2_0x9f465f(0x346)),program[a2_0x9f465f(0x2b6)]({'formatHelp':(_0x33acc3,_0x5b2cbb)=>{const _0x1fd793=a2_0x9f465f,_0x352a23=_0x5b2cbb[_0x1fd793(0x206)](_0x33acc3,_0x5b2cbb),_0x118be9=0x2,_0x55db80=0x2;function _0x1032cc(_0x22d3d9){const _0x451da0=_0x1fd793,_0x8cfa9e=_0x22d3d9;return!!(_0x8cfa9e[_0x451da0(0x12b)]||_0x8cfa9e[_0x451da0(0x18b)]);}function _0x5c7711(_0x3177c3,_0x1d0a0e){if(_0x1d0a0e){const _0x571c89=''+_0x3177c3['padEnd'](_0x352a23+_0x55db80)+_0x1d0a0e;return _0x571c89;}return _0x3177c3;}function _0x3f1091(_0x520500){const _0x46fab0=_0x1fd793;return _0x520500[_0x46fab0(0x200)]('\x0a')[_0x46fab0(0x2bf)](/^/gm,'\x20'[_0x46fab0(0x3e6)](_0x118be9));}const _0x3fa9cc=[];_0x3fa9cc[_0x1fd793(0x3e9)](_0x1fd793(0x40b)+_0x5b2cbb[_0x1fd793(0x169)](_0x33acc3));const _0x3f5cdf=_0x5b2cbb['commandDescription'](_0x33acc3);_0x3f5cdf&&(_0x3fa9cc[_0x1fd793(0x3e9)](''),_0x3fa9cc[_0x1fd793(0x3e9)](_0x3f5cdf));const _0x464d1f=_0x33acc3[_0x1fd793(0x1a6)]['filter'](_0x206349=>!_0x1032cc(_0x206349));if(_0x464d1f['length']>0x0){if(_0x33acc3['name']()===_0x1fd793(0xff)){const _0x16043a=_0x33acc3[_0x1fd793(0x2b4)](),_0x2f6188=!_0x16043a[_0x1fd793(0x1c7)]&&process[_0x1fd793(0x125)][_0x1fd793(0x33e)],_0x207043=COMMAND_CATEGORIES,_0x19ef14=(_0x4181f6,_0x90acd9)=>_0x2f6188?_0x90acd9(_0x4181f6):_0x4181f6,_0x398f79=new Map();_0x464d1f[_0x1fd793(0x152)](_0x5cf7fb=>{const _0x25c2d6=_0x1fd793;_0x398f79[_0x25c2d6(0x2b8)](_0x5cf7fb[_0x25c2d6(0x321)](),_0x5cf7fb);}),_0x207043[_0x1fd793(0x152)](_0x2746b9=>{const _0x44d2c6=_0x1fd793,_0x244dbf=_0x2746b9[_0x44d2c6(0x1a6)][_0x44d2c6(0x3b0)](_0x151b92=>_0x398f79['get'](_0x151b92)??[]);if(_0x244dbf[_0x44d2c6(0x148)]>0x0){_0x3fa9cc['push'](''),_0x3fa9cc[_0x44d2c6(0x3e9)](_0x19ef14(_0x2746b9['name']+':',_0x2746b9['colorFn']));const _0x4f6c98=_0x244dbf['map'](_0x302044=>{const _0x2296da=_0x44d2c6,_0x611440=_0x5b2cbb[_0x2296da(0x17e)](_0x302044),_0xe3418a=_0x5b2cbb['subcommandDescription'](_0x302044);return _0x5c7711(_0x611440,_0xe3418a);});_0x3fa9cc[_0x44d2c6(0x3e9)](_0x3f1091(_0x4f6c98));}}),_0x3fa9cc['push'](''),_0x3fa9cc['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x10d286=_0x464d1f[_0x1fd793(0x3b9)](_0x2d949e=>{const _0x30fd50=_0x5b2cbb['subcommandTerm'](_0x2d949e),_0x423b00=_0x5b2cbb['subcommandDescription'](_0x2d949e);return _0x5c7711(_0x30fd50,_0x423b00);});_0x3fa9cc[_0x1fd793(0x3e9)](''),_0x3fa9cc[_0x1fd793(0x3e9)](_0x1fd793(0x403)),_0x3fa9cc[_0x1fd793(0x3e9)](_0x3f1091(_0x10d286));}}if(showBriefHelp&&_0x33acc3[_0x1fd793(0x321)]()===_0x1fd793(0xff))_0x3fa9cc[_0x1fd793(0x3e9)](''),_0x3fa9cc['push'](_0x1fd793(0x324));else{const _0x1c7c1c=_0x33acc3[_0x1fd793(0x266)][_0x1fd793(0x391)](_0x412af5=>!_0x1032cc(_0x412af5));if(_0x1c7c1c[_0x1fd793(0x148)]>0x0){const _0xe9a38d=_0x1c7c1c[_0x1fd793(0x3b9)](_0x14a0c8=>{const _0x3f2b42=_0x1fd793,_0x2f7c3f=_0x5b2cbb[_0x3f2b42(0x289)](_0x14a0c8),_0x642c08=_0x5b2cbb[_0x3f2b42(0x175)](_0x14a0c8);return _0x5c7711(_0x2f7c3f,_0x642c08);});_0x3fa9cc[_0x1fd793(0x3e9)](''),_0x3fa9cc[_0x1fd793(0x3e9)](_0x1fd793(0x1c1)),_0x3fa9cc[_0x1fd793(0x3e9)](_0x3f1091(_0xe9a38d));}}const _0x23e659=(_0x33acc3[_0x1fd793(0x309)]||[])['filter'](_0x3148ed=>!_0x1032cc(_0x3148ed));if(_0x23e659[_0x1fd793(0x148)]>0x0){const _0x4451b3=_0x23e659[_0x1fd793(0x3b9)](_0x72053c=>{const _0x820735=_0x1fd793,_0x1a5554=_0x5b2cbb[_0x820735(0xe3)](_0x72053c),_0x256501=_0x5b2cbb[_0x820735(0xf2)](_0x72053c);return _0x5c7711(_0x1a5554,_0x256501);});_0x3fa9cc[_0x1fd793(0x3e9)](''),_0x3fa9cc[_0x1fd793(0x3e9)](_0x1fd793(0x1ca)),_0x3fa9cc[_0x1fd793(0x3e9)](_0x3f1091(_0x4451b3));}return _0x3fa9cc[_0x1fd793(0x200)]('\x0a')+'\x0a';},'subcommandTerm':_0x3f636b=>{const _0x2d4002=a2_0x9f465f,_0x9633a8=(_0x3f636b['registeredArguments']||[])[_0x2d4002(0x3b9)](_0x10024b=>_0x10024b[_0x2d4002(0x1f8)]?'<'+_0x10024b[_0x2d4002(0x321)]()+'>':'['+_0x10024b[_0x2d4002(0x321)]()+']')[_0x2d4002(0x200)]('\x20'),_0x265685=_0x3f636b[_0x2d4002(0x235)](),_0x2759c2=_0x265685[_0x2d4002(0x148)]>0x0?_0x3f636b[_0x2d4002(0x321)]()+',\x20'+_0x265685[_0x2d4002(0x200)](',\x20'):_0x3f636b[_0x2d4002(0x321)]();return _0x9633a8?_0x2759c2+'\x20'+_0x9633a8:_0x2759c2;}}),program[a2_0x9f465f(0x29a)](a2_0x9f465f(0x13d),_0x227faf=>{const _0x1f3ea4=a2_0x9f465f,_0x2904e5=_0x227faf['opts']();if(_0x2904e5['directory']){const _0x3ff650=resolve(_0x2904e5[_0x1f3ea4(0x251)]),_0x51bef0=_0x3ff650!==_0x2904e5[_0x1f3ea4(0x251)]?'\x20(resolved\x20to\x20'+_0x3ff650+')':'';if(!existsSync(_0x3ff650))throw new SDKError(ErrorCode[_0x1f3ea4(0x2b2)],_0x1f3ea4(0x3ea)+_0x2904e5['directory']+_0x51bef0,undefined,{'helpText':_0x1f3ea4(0x412)});const _0x111d29=statSync(_0x3ff650);if(!_0x111d29[_0x1f3ea4(0x2c5)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1f3ea4(0x342)+_0x2904e5[_0x1f3ea4(0x251)]+_0x51bef0,undefined,{'helpText':_0x1f3ea4(0x14a)});process['chdir'](_0x3ff650);}if(!_0x2904e5[_0x1f3ea4(0x134)]){if(_0x2904e5[_0x1f3ea4(0x3ff)])_0x2904e5['format']=_0x1f3ea4(0x3ff);else{if(_0x2904e5[_0x1f3ea4(0x275)])_0x2904e5[_0x1f3ea4(0x134)]=_0x1f3ea4(0x275);else{if(_0x2904e5[_0x1f3ea4(0x228)])_0x2904e5[_0x1f3ea4(0x134)]='jsonl';else _0x2904e5[_0x1f3ea4(0x38e)]&&(_0x2904e5['format']=_0x1f3ea4(0x38e));}}}if(_0x2904e5[_0x1f3ea4(0x374)])_0x2904e5[_0x1f3ea4(0x25b)]=LogLevel[_0x1f3ea4(0x38f)];else{if(_0x2904e5[_0x1f3ea4(0x262)])_0x2904e5[_0x1f3ea4(0x25b)]=LogLevel['DEBUG'];else _0x2904e5[_0x1f3ea4(0x25b)]===undefined&&(_0x2904e5[_0x1f3ea4(0x25b)]=LogLevel[_0x1f3ea4(0xe2)]);}});async function createTDXInstance(_0x599f4c){const _0x5c36a1=a2_0x9f465f,_0x3e85fe=await GlobalContext['createAsync'](_0x599f4c);_0x3e85fe['injectIntoOptions'](_0x599f4c);const _0x1e85d2=Number(_0x599f4c[_0x5c36a1(0x1b2)]),_0x468968=!isNaN(_0x1e85d2)&&_0x1e85d2>0x0?_0x1e85d2*0x3e8:undefined;return TDX[_0x5c36a1(0x20f)]({'site':_0x3e85fe[_0x5c36a1(0xe7)],'apiKey':_0x3e85fe[_0x5c36a1(0x18d)],'accessToken':_0x3e85fe[_0x5c36a1(0x240)],'logLevel':_0x3e85fe[_0x5c36a1(0x25b)],'profile':_0x3e85fe[_0x5c36a1(0x312)],'timeout':_0x468968});}const databaseCmd=program['command'](a2_0x9f465f(0x386))[a2_0x9f465f(0x3e2)]('db')['description'](a2_0x9f465f(0x40c)),databaseListAction=async(_0x5670ef,_0x4ee37f)=>{const _0x18d6a0=a2_0x9f465f,_0x1dc76c=new DatabasesCommand(),_0x2b04e7=program[_0x18d6a0(0x2b4)](),_0x37f550=await createTDXInstance(_0x2b04e7),_0x196bf9=await _0x1dc76c[_0x18d6a0(0x384)]({'options':{..._0x2b04e7,..._0x4ee37f},'args':_0x5670ef?[_0x5670ef]:[],'tdx':_0x37f550});gracefulExit(_0x196bf9);};databaseCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))['description'](a2_0x9f465f(0x254))[a2_0x9f465f(0x166)](databaseListAction),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x1e2),{'hidden':!![]})['description'](a2_0x9f465f(0x37f))[a2_0x9f465f(0x166)](databaseListAction),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x371))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3a1))['option'](a2_0x9f465f(0x274),a2_0x9f465f(0x33d))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x110),'Start\x20a\x20new\x20chat\x20session')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2bb),a2_0x9f465f(0x2cd))[a2_0x9f465f(0x23e)]('--stream',a2_0x9f465f(0x2d6))[a2_0x9f465f(0x166)](async(_0x46ead3,_0x2b91b7)=>{const _0x16244e=a2_0x9f465f,_0x44fe47=program[_0x16244e(0x2b4)](),_0x4258ea=await createTDXInstance(_0x44fe47);if(_0x46ead3[0x0]===_0x16244e(0x20f)){const _0x28d853=new ChatCreateCommand();gracefulExit(await _0x28d853['run']({'options':{..._0x44fe47,..._0x2b91b7},'args':_0x46ead3[_0x16244e(0x3ae)](0x1),'tdx':_0x4258ea}));return;}const _0x2ffa61=new ChatCommand(),_0x1d66f3=await _0x2ffa61['run']({'options':{..._0x44fe47,..._0x2b91b7},'args':_0x46ead3,'tdx':_0x4258ea});gracefulExit(_0x1d66f3);});const apiCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x2ac))[a2_0x9f465f(0x410)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')['addHelpText']('after','\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')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x28b),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x9f465f(0x31b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x223),a2_0x9f465f(0x35e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x36e),a2_0x9f465f(0x1f3))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x245),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x2e99b8,_0x4d9e5d)=>{return _0x4d9e5d?[..._0x4d9e5d,_0x2e99b8]:[_0x2e99b8];})['option'](a2_0x9f465f(0x215),a2_0x9f465f(0xfc),'td')['action'](async(_0x460892,_0x2a9bc6)=>{const _0x36a6b6=a2_0x9f465f;if(!_0x460892){apiCmd['help']();return;}const _0x5cec7b=new ApiCommand(),_0x1f4159=program[_0x36a6b6(0x2b4)](),_0x56aa15=await createTDXInstance(_0x1f4159),_0x546b15=await _0x5cec7b[_0x36a6b6(0x384)]({'options':{..._0x1f4159,..._0x2a9bc6},'args':[_0x460892],'tdx':_0x56aa15});gracefulExit(_0x546b15);});program[a2_0x9f465f(0x158)]('mcp')[a2_0x9f465f(0x207)](a2_0x9f465f(0x136))[a2_0x9f465f(0x3af)](a2_0x9f465f(0x21c),a2_0x9f465f(0x171))['action'](async _0xf0c410=>{const _0x2da423=a2_0x9f465f,_0x14fb1b=new MCPCommand(),_0x2b9842=program['opts'](),_0x11ebdb=await createTDXInstance(_0x2b9842),_0x5cd5d1=await _0x14fb1b[_0x2da423(0x384)]({'options':{..._0x2b9842,..._0xf0c410},'args':[],'tdx':_0x11ebdb});gracefulExit(_0x5cd5d1);});const tableCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3ff))['description']('Table\x20management\x20commands'),tableListAction=async(_0x3f7ff9,_0x49216b)=>{const _0x4dfa2e=a2_0x9f465f,_0x2e7b36=new TablesCommand(),_0x4d2d4d=program[_0x4dfa2e(0x2b4)](),_0x2b7ef6=await createTDXInstance(_0x4d2d4d);_0x49216b['in']&&(_0x49216b['database']=_0x49216b['in']);const _0x1c6774=await _0x2e7b36[_0x4dfa2e(0x384)]({'options':{..._0x4d2d4d,..._0x49216b},'args':_0x3f7ff9?[_0x3f7ff9]:[],'tdx':_0x2b7ef6});gracefulExit(_0x1c6774);};tableCmd['command'](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x263))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3f8),a2_0x9f465f(0x189))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x115),a2_0x9f465f(0x2c8))[a2_0x9f465f(0x166)](tableListAction),program['command'](a2_0x9f465f(0x22a),{'hidden':!![]})['description'](a2_0x9f465f(0x20a))[a2_0x9f465f(0x23e)]('-d,\x20--database\x20<database>',a2_0x9f465f(0x189))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x115),a2_0x9f465f(0x2c8))['action'](tableListAction),program['command'](a2_0x9f465f(0x23a))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2af))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3f8),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x115),a2_0x9f465f(0x2c8))[a2_0x9f465f(0x166)](async(_0x5a9c47,_0x36283b)=>{const _0x215434=a2_0x9f465f,_0x6a2c36=new ShowCommand(),_0x5281ec=program['opts'](),_0x2097d5=await createTDXInstance(_0x5281ec);_0x36283b['in']&&(_0x36283b[_0x215434(0x386)]=_0x36283b['in']);const _0x10bd0c=await _0x6a2c36[_0x215434(0x384)]({'options':{..._0x5281ec,..._0x36283b},'args':_0x5a9c47?[_0x5a9c47]:[],'tdx':_0x2097d5});gracefulExit(_0x10bd0c);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x1d2))[a2_0x9f465f(0x3e2)]('desc')[a2_0x9f465f(0x207)]('Describe\x20table\x20schema')['option']('-d,\x20--database\x20<database>',a2_0x9f465f(0x39f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x115),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x2650ae,_0xe02481)=>{const _0x459d91=a2_0x9f465f,_0x1c3e46=new DescribeCommand(),_0x7d6082=program[_0x459d91(0x2b4)](),_0x426f02=await createTDXInstance(_0x7d6082);_0xe02481['in']&&(_0xe02481[_0x459d91(0x386)]=_0xe02481['in']);const _0x3ff8bf=await _0x1c3e46[_0x459d91(0x384)]({'options':{..._0x7d6082,..._0xe02481},'args':_0x2650ae?[_0x2650ae]:[],'tdx':_0x426f02});gracefulExit(_0x3ff8bf);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3cb))[a2_0x9f465f(0x207)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3f8),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x115),a2_0x9f465f(0x2c8))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1b3),'Trino\x20catalog\x20(default:\x20td)')['option'](a2_0x9f465f(0x36e),a2_0x9f465f(0x1e4))['option']('--limit\x20<rows>',a2_0x9f465f(0x3be))[a2_0x9f465f(0x166)](async(_0x281258,_0x2005a1)=>{const _0x24312f=a2_0x9f465f,_0xfd1753=new QueryCommand(),_0x5965bf=program[_0x24312f(0x2b4)](),_0xba01c7=await createTDXInstance(_0x5965bf);_0x2005a1['in']&&(_0x2005a1[_0x24312f(0x386)]=_0x2005a1['in']);const _0x543306=await _0xfd1753[_0x24312f(0x384)]({'options':mergeCommandOptions(_0x5965bf,_0x2005a1),'args':_0x281258?[_0x281258]:[],'tdx':_0xba01c7});gracefulExit(_0x543306);});const segmentCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x297))[a2_0x9f465f(0x3e2)]('sg')[a2_0x9f465f(0x207)](a2_0x9f465f(0x199)),segmentListAction=async(_0x1a6700,_0x238bd6)=>{const _0x2d9954=a2_0x9f465f,_0x47a8f4=new SegmentsCommand(),_0x3551ee=program[_0x2d9954(0x2b4)](),_0x5d8a85=await createTDXInstance(_0x3551ee),_0x2b510f=await _0x47a8f4[_0x2d9954(0x384)]({'options':{..._0x3551ee,..._0x238bd6},'args':_0x1a6700?[_0x1a6700]:[],'tdx':_0x5d8a85});gracefulExit(_0x2b510f);};segmentCmd['command'](a2_0x9f465f(0x1c6))['description'](a2_0x9f465f(0x3ba))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3a9),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x9f465f(0x23e)]('--max-depth\x20<depth>',a2_0x9f465f(0x180),'10')[a2_0x9f465f(0x166)](segmentListAction),program[a2_0x9f465f(0x158)]('segments\x20[path]',{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x38c))[a2_0x9f465f(0x23e)]('-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x9f465f(0x3e7),a2_0x9f465f(0x180),'10')[a2_0x9f465f(0x166)](segmentListAction),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x23b),{'hidden':!![]})['description'](a2_0x9f465f(0x335))[a2_0x9f465f(0x166)](async(_0x434e85,_0x489da4)=>{const _0x21eafd=a2_0x9f465f,_0x221864=new SegmentUseCommand(),_0x5711d8=program[_0x21eafd(0x2b4)](),_0x5c1e15=await createTDXInstance(_0x5711d8),_0x57b48b=await _0x221864[_0x21eafd(0x384)]({'options':{..._0x5711d8,..._0x489da4},'args':[_0x434e85],'tdx':_0x5c1e15});gracefulExit(_0x57b48b);});const segmentViewAction=async(_0x5340cc,_0xd08f1a)=>{const _0x312f65=a2_0x9f465f,_0x255764=new SegmentViewCommand(),_0x49f7d8=program['opts'](),_0x422dd3=await createTDXInstance(_0x49f7d8),_0x556fa7=await _0x255764[_0x312f65(0x384)]({'options':{..._0x49f7d8,..._0xd08f1a},'args':_0x5340cc?[_0x5340cc]:[],'tdx':_0x422dd3});gracefulExit(_0x556fa7);};segmentCmd['command'](a2_0x9f465f(0x24a))['description'](a2_0x9f465f(0x26a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12f),a2_0x9f465f(0x131))[a2_0x9f465f(0x166)](segmentViewAction),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x333),{'hidden':!![]})['alias'](a2_0x9f465f(0x11b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12f),a2_0x9f465f(0x131))['description'](a2_0x9f465f(0x142))[a2_0x9f465f(0x166)](segmentViewAction),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x26b))[a2_0x9f465f(0x207)](a2_0x9f465f(0x107))[a2_0x9f465f(0x166)](async(_0x256f83,_0x4510e2)=>{const _0x5495bf=a2_0x9f465f,_0x16f7c0=new SegmentDescCommand(),_0x26d1c7=program['opts'](),_0x504f1c=await createTDXInstance(_0x26d1c7),_0x27a6c4=await _0x16f7c0[_0x5495bf(0x384)]({'options':{..._0x26d1c7,..._0x4510e2},'args':_0x256f83?[_0x256f83]:[],'tdx':_0x504f1c});gracefulExit(_0x27a6c4);}),segmentCmd[a2_0x9f465f(0x158)]('show\x20[segment_name]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x319))['action'](async(_0x50b7f5,_0x1213cd)=>{const _0xa91187=a2_0x9f465f,_0x4ff48b=new SegmentShowCommand(),_0x466e85=program['opts'](),_0x46e706=await createTDXInstance(_0x466e85),_0x2be251=await _0x4ff48b[_0xa91187(0x384)]({'options':{..._0x466e85,..._0x1213cd},'args':_0x50b7f5?[_0x50b7f5]:[],'tdx':_0x46e706});gracefulExit(_0x2be251);}),segmentCmd['command'](a2_0x9f465f(0x211),{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x320))['action'](async(_0x48c492,_0x24cb30)=>{const _0xf85fb7=a2_0x9f465f,_0x14d242=new SegmentFolderListCommand(),_0x4e2f01=program[_0xf85fb7(0x2b4)](),_0x1184ff=await createTDXInstance(_0x4e2f01),_0x59ed10=await _0x14d242['run']({'options':{..._0x4e2f01,..._0x24cb30},'args':[_0x48c492],'tdx':_0x1184ff});gracefulExit(_0x59ed10);});const folderCmd=segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b4),{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x34c));folderCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2d3))[a2_0x9f465f(0x207)](a2_0x9f465f(0x17c))[a2_0x9f465f(0x166)](async(_0x2f7952,_0x1b47c9)=>{const _0xe08ee3=a2_0x9f465f,_0x3524ca=new SegmentFolderShowCommand(),_0x495ab2=program[_0xe08ee3(0x2b4)](),_0x21495c=await createTDXInstance(_0x495ab2),_0x2b1b09=await _0x3524ca[_0xe08ee3(0x384)]({'options':{..._0x495ab2,..._0x1b47c9},'args':[_0x2f7952],'tdx':_0x21495c});gracefulExit(_0x2b1b09);}),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x256))[a2_0x9f465f(0x207)]('Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)')['option']('--path\x20<file-path>','YAML\x20file\x20path\x20for\x20unpushed\x20segment')[a2_0x9f465f(0x166)](async(_0x17f6f0,_0x3d6fe6)=>{const _0xdc5a08=a2_0x9f465f,_0x5b8ffa=new SegmentSQLCommand(),_0x5e4e0d=program[_0xdc5a08(0x2b4)](),_0x2d2865=await createTDXInstance(_0x5e4e0d),_0x1a7e38=await _0x5b8ffa[_0xdc5a08(0x384)]({'options':{..._0x5e4e0d,..._0x3d6fe6},'args':_0x17f6f0?[_0x17f6f0]:[],'tdx':_0x2d2865});gracefulExit(_0x1a7e38);}),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x351))[a2_0x9f465f(0x207)](a2_0x9f465f(0x257))[a2_0x9f465f(0x166)](async(_0x25754e,_0x47e897)=>{const _0x48899f=a2_0x9f465f,_0x4e7657=new SegmentFieldsCommand(),_0x2608e0=program[_0x48899f(0x2b4)](),_0x55f54a=await createTDXInstance(_0x2608e0),_0x164673=await _0x4e7657[_0x48899f(0x384)]({'options':{..._0x2608e0,..._0x47e897},'args':_0x25754e?[_0x25754e]:[],'tdx':_0x55f54a});gracefulExit(_0x164673);}),segmentCmd[a2_0x9f465f(0x158)]('pull\x20[parent_or_file]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x366))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x3a5))[a2_0x9f465f(0x166)](async(_0x4ab643,_0x43a3b9)=>{const _0x35fb0e=a2_0x9f465f,_0x4d4499=new SegmentPullCommand(),_0x303ff7=program[_0x35fb0e(0x2b4)](),_0x20dc00=await createTDXInstance(_0x303ff7),_0x54f4b1=await _0x4d4499['run']({'options':{..._0x303ff7,..._0x43a3b9},'args':_0x4ab643?[_0x4ab643]:[],'tdx':_0x20dc00});gracefulExit(_0x54f4b1);}),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1bb))[a2_0x9f465f(0x207)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x9f465f(0x23e)](a2_0x9f465f(0xf6),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x9f465f(0x166)](async(_0x3b5dd4,_0xc17bf9)=>{const _0x3a0378=a2_0x9f465f,_0x380846=new SegmentPushCommand(),_0x18bb99=program[_0x3a0378(0x2b4)](),_0xb586d3=await createTDXInstance(_0x18bb99),_0x4a5105=await _0x380846['run']({'options':{..._0x18bb99,..._0xc17bf9},'args':_0x3b5dd4?[_0x3b5dd4]:[],'tdx':_0xb586d3});gracefulExit(_0x4a5105);}),segmentCmd[a2_0x9f465f(0x158)]('validate\x20[target]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x1d0))[a2_0x9f465f(0x166)](async(_0x34e342,_0x25fd18)=>{const _0x1631c2=a2_0x9f465f,_0x271979=new SegmentValidateCommand(),_0x2471bd=program['opts'](),_0x1d52b8=await createTDXInstance(_0x2471bd),_0x5b247b=await _0x271979[_0x1631c2(0x384)]({'options':{..._0x2471bd,..._0x25fd18},'args':_0x34e342?[_0x34e342]:[],'tdx':_0x1d52b8});gracefulExit(_0x5b247b);}),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x383),{'hidden':!![]})['description'](a2_0x9f465f(0x390))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x1a3))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x264),a2_0x9f465f(0x18c))['option']('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x21d),a2_0x9f465f(0x2f5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x194),a2_0x9f465f(0x406))['option'](a2_0x9f465f(0x13e),a2_0x9f465f(0xfa))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1a7),'Skip\x20population\x20counting')['action'](async(_0x487b58,_0x1e426b)=>{const _0xe47184=a2_0x9f465f,_0x6168fc=new SegmentCreateCommand(),_0x25fd69=program[_0xe47184(0x2b4)](),_0x45972e=await createTDXInstance(_0x25fd69),_0x2e3ec4=await _0x6168fc[_0xe47184(0x384)]({'options':{..._0x25fd69,..._0x1e426b},'args':[_0x487b58],'tdx':_0x45972e});gracefulExit(_0x2e3ec4);}),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2bd),{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x10b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x22c),a2_0x9f465f(0x2e5))['option']('--description\x20<text>','Updated\x20description')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x264),a2_0x9f465f(0x31f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x281),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x21d),a2_0x9f465f(0x161))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x194),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x9f465f(0x166)](async(_0x2f70b7,_0x246f03)=>{const _0x35a53c=a2_0x9f465f,_0x23d04c=new SegmentUpdateCommand(),_0x1fefba=program['opts'](),_0x2ef762=await createTDXInstance(_0x1fefba),_0x430c44=await _0x23d04c[_0x35a53c(0x384)]({'options':{..._0x1fefba,..._0x246f03},'args':[_0x2f70b7],'tdx':_0x2ef762});gracefulExit(_0x430c44);});const parentCmd=segmentCmd['command'](a2_0x9f465f(0x2ab),{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x112)),parentListAction=async(_0x5641b4,_0x8f4b7e)=>{const _0x4ecd23=a2_0x9f465f,_0x26c198=new ParentSegmentListCommand(),_0x4ebb9c=program[_0x4ecd23(0x2b4)](),_0x3480b7=await createTDXInstance(_0x4ebb9c),_0x258c31=await _0x26c198[_0x4ecd23(0x384)]({'options':{..._0x4ebb9c,..._0x8f4b7e},'args':_0x5641b4?[_0x5641b4]:[],'tdx':_0x3480b7});gracefulExit(_0x258c31);};parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x388))[a2_0x9f465f(0x166)](parentListAction),segmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1a5),{'hidden':!![]})['description'](a2_0x9f465f(0x23c))[a2_0x9f465f(0x166)](parentListAction),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1ac))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ef))[a2_0x9f465f(0x23e)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')['action'](async(_0x33124d,_0x22983c)=>{const _0x12fd43=a2_0x9f465f,_0x5daab9=new ParentSegmentPullCommand(),_0x484851=program[_0x12fd43(0x2b4)](),_0x194f73=await createTDXInstance(_0x484851),_0x1b7101=await _0x5daab9['run']({'options':{..._0x484851,..._0x22983c},'args':_0x33124d?[_0x33124d]:[],'tdx':_0x194f73});gracefulExit(_0x1b7101);}),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x28c))[a2_0x9f465f(0x207)](a2_0x9f465f(0x121))['action'](async(_0x2b73af,_0x1ff84f)=>{const _0x2c08d6=a2_0x9f465f,_0x3f0062=new ParentSegmentPushCommand(),_0x425cc9=program[_0x2c08d6(0x2b4)](),_0x34b8e9=await createTDXInstance(_0x425cc9),_0x4c24f2=await _0x3f0062[_0x2c08d6(0x384)]({'options':{..._0x425cc9,..._0x1ff84f},'args':_0x2b73af?[_0x2b73af]:[],'tdx':_0x34b8e9});gracefulExit(_0x4c24f2);}),parentCmd['command'](a2_0x9f465f(0x1a0))[a2_0x9f465f(0x207)](a2_0x9f465f(0x39e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3d7),a2_0x9f465f(0x2e0))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2a6),a2_0x9f465f(0x3e1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x22d),a2_0x9f465f(0x28a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x162),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x293),a2_0x9f465f(0x1ba),a2_0x9f465f(0x33a))[a2_0x9f465f(0x166)](async(_0x4582cd,_0x5a7998)=>{const _0x3b2a77=a2_0x9f465f,_0x2cb927=new ParentSegmentValidateCommand(),_0x7bbd22=program[_0x3b2a77(0x2b4)](),_0x54088a=await createTDXInstance(_0x7bbd22),_0x2ff0cf=await _0x2cb927[_0x3b2a77(0x384)]({'options':{..._0x7bbd22,..._0x5a7998},'args':_0x4582cd?[_0x4582cd]:[],'tdx':_0x54088a});gracefulExit(_0x2ff0cf);}),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0xe6))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x9f465f(0x3d7),a2_0x9f465f(0x1e3))['option'](a2_0x9f465f(0x2a6),a2_0x9f465f(0x222))[a2_0x9f465f(0x23e)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x9f465f(0x162),a2_0x9f465f(0xf0))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x293),a2_0x9f465f(0x1ba),'-1d')[a2_0x9f465f(0x166)](async(_0x5c3731,_0x592482)=>{const _0x5cbf3a=a2_0x9f465f,_0x4cfd5d=new ParentSegmentPreviewCommand(),_0x1c0d9d=program[_0x5cbf3a(0x2b4)](),_0x2cfe4a=await createTDXInstance(_0x1c0d9d),_0x1c72f4=await _0x4cfd5d[_0x5cbf3a(0x384)]({'options':{..._0x1c0d9d,..._0x592482},'args':_0x5c3731?[_0x5c3731]:[],'tdx':_0x2cfe4a});gracefulExit(_0x1c72f4);}),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2f8))[a2_0x9f465f(0x207)](a2_0x9f465f(0x350))[a2_0x9f465f(0x166)](async(_0x6bcae0,_0x4db31a)=>{const _0x5a0873=a2_0x9f465f,_0x29ec4b=new ParentSegmentRunCommand(),_0x2ffafe=program[_0x5a0873(0x2b4)](),_0x24b063=await createTDXInstance(_0x2ffafe),_0x1eec53=await _0x29ec4b['run']({'options':{..._0x2ffafe,..._0x4db31a},'args':_0x6bcae0?[_0x6bcae0]:[],'tdx':_0x24b063});gracefulExit(_0x1eec53);});const parentSegmentCmd=program['command']('parent-segment')[a2_0x9f465f(0x3e2)]('ps')[a2_0x9f465f(0x207)](a2_0x9f465f(0x229));parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x388))['action'](parentListAction),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1ac))[a2_0x9f465f(0x207)](a2_0x9f465f(0x341))[a2_0x9f465f(0x23e)]('-o,\x20--output\x20<file>','Output\x20file\x20path')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x16e),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x9f465f(0x166)](async(_0x4d4f1b,_0x54c9f3)=>{const _0x59042b=a2_0x9f465f,_0x30a00a=new ParentSegmentPullCommand(),_0x221a07=program[_0x59042b(0x2b4)](),_0x55d526=await createTDXInstance(_0x221a07),_0x4d94cf=await _0x30a00a[_0x59042b(0x384)]({'options':{..._0x221a07,..._0x54c9f3},'args':_0x4d4f1b?[_0x4d4f1b]:[],'tdx':_0x55d526});gracefulExit(_0x4d94cf);}),parentSegmentCmd[a2_0x9f465f(0x158)]('push\x20[name]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x11f))[a2_0x9f465f(0x166)](async(_0x54876d,_0x532341)=>{const _0x4b3ff1=new ParentSegmentPushCommand(),_0xcf6b2f=program['opts'](),_0x3696e1=await createTDXInstance(_0xcf6b2f),_0x23e8f3=await _0x4b3ff1['run']({'options':{..._0xcf6b2f,..._0x532341},'args':_0x54876d?[_0x54876d]:[],'tdx':_0x3696e1});gracefulExit(_0x23e8f3);}),parentSegmentCmd['command'](a2_0x9f465f(0x2ae))[a2_0x9f465f(0x207)](a2_0x9f465f(0x39e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3d7),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x9f465f(0x2a6),a2_0x9f465f(0x3e1))[a2_0x9f465f(0x23e)]('--behavior\x20[name]',a2_0x9f465f(0x28a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x162),a2_0x9f465f(0x163))['option'](a2_0x9f465f(0x293),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x9f465f(0x33a))[a2_0x9f465f(0x166)](async(_0x44a723,_0xb8590)=>{const _0x4412b5=a2_0x9f465f,_0x29314b=new ParentSegmentValidateCommand(),_0x204a77=program[_0x4412b5(0x2b4)](),_0x2bc22d=await createTDXInstance(_0x204a77),_0xe57512=await _0x29314b['run']({'options':{..._0x204a77,..._0xb8590},'args':_0x44a723?[_0x44a723]:[],'tdx':_0x2bc22d});gracefulExit(_0xe57512);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x252))[a2_0x9f465f(0x207)](a2_0x9f465f(0x15b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3d7),a2_0x9f465f(0x1e3))[a2_0x9f465f(0x23e)]('--attribute\x20[name]',a2_0x9f465f(0x222))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x22d),a2_0x9f465f(0x17f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x162),a2_0x9f465f(0xf0))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x293),a2_0x9f465f(0x1ba),'-1d')[a2_0x9f465f(0x166)](async(_0x30db1d,_0xd6e8a3)=>{const _0x24029c=a2_0x9f465f,_0x23d790=new ParentSegmentPreviewCommand(),_0xf0a0ed=program[_0x24029c(0x2b4)](),_0x1e1f58=await createTDXInstance(_0xf0a0ed),_0x5aec6b=await _0x23d790[_0x24029c(0x384)]({'options':{..._0xf0a0ed,..._0xd6e8a3},'args':_0x30db1d?[_0x30db1d]:[],'tdx':_0x1e1f58});gracefulExit(_0x5aec6b);}),parentSegmentCmd['command'](a2_0x9f465f(0x2f8))['description'](a2_0x9f465f(0x350))[a2_0x9f465f(0x166)](async(_0x407b7c,_0x3ee26c)=>{const _0x3b2cc8=a2_0x9f465f,_0x4cd4c1=new ParentSegmentRunCommand(),_0x2a6117=program[_0x3b2cc8(0x2b4)](),_0xf5466a=await createTDXInstance(_0x2a6117),_0x20be22=await _0x4cd4c1[_0x3b2cc8(0x384)]({'options':{..._0x2a6117,..._0x3ee26c},'args':_0x407b7c?[_0x407b7c]:[],'tdx':_0xf5466a});gracefulExit(_0x20be22);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f0))[a2_0x9f465f(0x207)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x137),a2_0x9f465f(0x25a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e4),a2_0x9f465f(0x1c3))[a2_0x9f465f(0x166)](async(_0x5c3fc3,_0x2f5124)=>{const _0x1214b2=a2_0x9f465f,_0x6d6991=new ParentSegmentFieldsCommand(),_0x1d617d=program['opts'](),_0x404be0=await createTDXInstance(_0x1d617d),_0x51307e=await _0x6d6991[_0x1214b2(0x384)]({'options':{..._0x1d617d,..._0x2f5124},'args':_0x5c3fc3?[_0x5c3fc3]:[],'tdx':_0x404be0});gracefulExit(_0x51307e);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x298))[a2_0x9f465f(0x207)](a2_0x9f465f(0x285))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12f),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x137),a2_0x9f465f(0x25a))[a2_0x9f465f(0x23e)]('--jsonl',a2_0x9f465f(0x1c3))[a2_0x9f465f(0x166)](async(_0x57044a,_0x3981ec)=>{const _0x1e9ac9=a2_0x9f465f,_0x2c41ff=new ParentSegmentViewCommand(),_0x17356f=program['opts'](),_0x55ad73=await createTDXInstance(_0x17356f),_0xc36e92=await _0x2c41ff[_0x1e9ac9(0x384)]({'options':{..._0x17356f,..._0x3981ec},'args':_0x57044a?[_0x57044a]:[],'tdx':_0x55ad73});gracefulExit(_0xc36e92);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x34e))['description']('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x227),'Output\x20file\x20path')['option'](a2_0x9f465f(0x137),a2_0x9f465f(0x25a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e4),'Output\x20as\x20JSON\x20Lines')[a2_0x9f465f(0x166)](async(_0x4d2260,_0x579efe)=>{const _0x382518=a2_0x9f465f,_0x1c5761=new ParentSegmentDescCommand(),_0x58da14=program['opts'](),_0x46a3bc=await createTDXInstance(_0x58da14),_0xacc6bb=await _0x1c5761[_0x382518(0x384)]({'options':{..._0x58da14,..._0x579efe},'args':_0x4d2260?[_0x4d2260]:[],'tdx':_0x46a3bc});gracefulExit(_0xacc6bb);}),parentSegmentCmd['command'](a2_0x9f465f(0x243))['description'](a2_0x9f465f(0x401))['option'](a2_0x9f465f(0x137),a2_0x9f465f(0x25a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e4),a2_0x9f465f(0x1c3))[a2_0x9f465f(0x166)](async(_0xab1ac8,_0x3c68c4)=>{const _0x48f86a=a2_0x9f465f,_0x85b52c=new ParentSegmentSQLCommand(),_0x23a603=program[_0x48f86a(0x2b4)](),_0x16b782=await createTDXInstance(_0x23a603),_0x4095fd=await _0x85b52c[_0x48f86a(0x384)]({'options':{..._0x23a603,..._0x3c68c4},'args':_0xab1ac8?[_0xab1ac8]:[],'tdx':_0x16b782});gracefulExit(_0x4095fd);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x22f))['description']('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1e7),'Limit\x20number\x20of\x20rows')[a2_0x9f465f(0x23e)]('--json',a2_0x9f465f(0x25a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e4),'Output\x20as\x20JSON\x20Lines')[a2_0x9f465f(0x166)](async(_0x738d01,_0x51a0fd)=>{const _0x179a45=a2_0x9f465f,_0x3fced0=new ParentSegmentShowCommand(),_0x567292=program[_0x179a45(0x2b4)](),_0x319256=await createTDXInstance(_0x567292),_0x168374=await _0x3fced0['run']({'options':{..._0x567292,..._0x51a0fd},'args':_0x738d01?[_0x738d01]:[],'tdx':_0x319256});gracefulExit(_0x168374);}),parentSegmentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x13a))[a2_0x9f465f(0x207)](a2_0x9f465f(0x25c))['action'](async(_0x208f08,_0x49c521)=>{const _0x1afe18=a2_0x9f465f,_0x1ac4d6=new UseCommand(),_0x490020=program[_0x1afe18(0x2b4)](),_0x356518=_0x208f08?['parent_segment',_0x208f08]:[],_0x2f45f8=await _0x1ac4d6[_0x1afe18(0x384)]({'options':{..._0x490020,..._0x49c521},'args':_0x356518,'tdx':null});gracefulExit(_0x2f45f8);});const psRtCmd=parentSegmentCmd['command']('rt')['description'](a2_0x9f465f(0x2c7));psRtCmd['command'](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x31ca40,_0x1526bf)=>{const _0x43e383=a2_0x9f465f,_0x520ca8=new PSRtListCommand(),_0x4551de=program[_0x43e383(0x2b4)](),_0x1d4d76=await createTDXInstance(_0x4551de),_0x2b7b59=await _0x520ca8['run']({'options':{..._0x4551de,..._0x1526bf},'args':_0x31ca40?[_0x31ca40]:[],'tdx':_0x1d4d76});gracefulExit(_0x2b7b59);}),psRtCmd['command'](a2_0x9f465f(0x2ae))[a2_0x9f465f(0x207)](a2_0x9f465f(0x15f))[a2_0x9f465f(0x166)](async(_0x5f17ed,_0x5e030f)=>{const _0x573341=a2_0x9f465f,_0x50c36f=new PSRtValidateCommand(),_0x12943a=program[_0x573341(0x2b4)](),_0x5b1635=await createTDXInstance(_0x12943a),_0x396c47=await _0x50c36f[_0x573341(0x384)]({'options':{..._0x12943a,..._0x5e030f},'args':_0x5f17ed?[_0x5f17ed]:[],'tdx':_0x5b1635});gracefulExit(_0x396c47);}),psRtCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x120))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2c2))['action'](async(_0x19bbea,_0x393d4d)=>{const _0x33e654=a2_0x9f465f,_0x47f2eb=new PSRtConfigVersionCommand(),_0x592509=program[_0x33e654(0x2b4)](),_0x4ac78b=await createTDXInstance(_0x592509),_0x37e16d=await _0x47f2eb[_0x33e654(0x384)]({'options':{..._0x592509,..._0x393d4d},'args':_0x19bbea?[_0x19bbea]:[],'tdx':_0x4ac78b});gracefulExit(_0x37e16d);});const psRtJnCmd=psRtCmd[a2_0x9f465f(0x158)]('jn')['description'](a2_0x9f465f(0x31a));psRtJnCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3f7))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ce))[a2_0x9f465f(0x166)](async(_0x165dff,_0x324bba)=>{const _0x3cc7ab=a2_0x9f465f,_0x512330=new PSRtJnListCommand(),_0x504364=program['opts'](),_0x4ba9f5=await createTDXInstance(_0x504364),_0x26e19a=await _0x512330[_0x3cc7ab(0x384)]({'options':{..._0x504364,..._0x324bba},'args':_0x165dff?[_0x165dff]:[],'tdx':_0x4ba9f5});gracefulExit(_0x26e19a);}),psRtJnCmd['command'](a2_0x9f465f(0x3b8))['description'](a2_0x9f465f(0x307))['action'](async(_0x106328,_0x1d219)=>{const _0x1f817a=a2_0x9f465f,_0x32bed2=new PSRtJnPauseCommand(),_0x383cdc=program[_0x1f817a(0x2b4)](),_0x2654cb=await createTDXInstance(_0x383cdc),_0x48f983=await _0x32bed2[_0x1f817a(0x384)]({'options':{..._0x383cdc,..._0x1d219},'args':[_0x106328],'tdx':_0x2654cb});gracefulExit(_0x48f983);}),psRtJnCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x24d))[a2_0x9f465f(0x207)](a2_0x9f465f(0x402))[a2_0x9f465f(0x166)](async(_0x506744,_0x37f5ea)=>{const _0x3c2d9f=a2_0x9f465f,_0x3c3044=new PSRtJnResumeCommand(),_0x466b17=program[_0x3c2d9f(0x2b4)](),_0x200e3f=await createTDXInstance(_0x466b17),_0x4a9e01=await _0x3c3044['run']({'options':{..._0x466b17,..._0x37f5ea},'args':[_0x506744],'tdx':_0x200e3f});gracefulExit(_0x4a9e01);});const parentRtCmd=parentCmd[a2_0x9f465f(0x158)]('rt',{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x2c7));parentRtCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3d0))[a2_0x9f465f(0x166)](async(_0x2b6b03,_0x550433)=>{const _0x4ff0cd=a2_0x9f465f,_0x200133=new PSRtListCommand(),_0x2e77af=program[_0x4ff0cd(0x2b4)](),_0x1f7e73=await createTDXInstance(_0x2e77af),_0x534e01=await _0x200133['run']({'options':{..._0x2e77af,..._0x550433},'args':_0x2b6b03?[_0x2b6b03]:[],'tdx':_0x1f7e73});gracefulExit(_0x534e01);}),parentRtCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2ae))[a2_0x9f465f(0x207)](a2_0x9f465f(0x15f))[a2_0x9f465f(0x166)](async(_0x38e358,_0x374f7e)=>{const _0x4814b7=a2_0x9f465f,_0x44ddd6=new PSRtValidateCommand(),_0x36a032=program[_0x4814b7(0x2b4)](),_0x28dc1e=await createTDXInstance(_0x36a032),_0x591650=await _0x44ddd6['run']({'options':{..._0x36a032,..._0x374f7e},'args':_0x38e358?[_0x38e358]:[],'tdx':_0x28dc1e});gracefulExit(_0x591650);});const psPzCmd=parentSegmentCmd[a2_0x9f465f(0x158)]('pz')[a2_0x9f465f(0x207)](a2_0x9f465f(0x165));psPzCmd['command'](a2_0x9f465f(0x3f7))[a2_0x9f465f(0x207)](a2_0x9f465f(0x214))[a2_0x9f465f(0x166)](async(_0x2e9c03,_0x48928c)=>{const _0x3ae4e2=a2_0x9f465f,_0x43ec4e=new PSPzListCommand(),_0x32c337=program['opts'](),_0x4760eb=await createTDXInstance(_0x32c337),_0x201fa2=await _0x43ec4e[_0x3ae4e2(0x384)]({'options':{..._0x32c337,..._0x48928c},'args':_0x2e9c03?[_0x2e9c03]:[],'tdx':_0x4760eb});gracefulExit(_0x201fa2);}),psPzCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x17d))[a2_0x9f465f(0x207)](a2_0x9f465f(0x40e))[a2_0x9f465f(0x166)](async(_0x91ff68,_0x2b92af)=>{const _0x5e2782=a2_0x9f465f,_0x2c5bcc=new PSPzShowCommand(),_0x4027db=program[_0x5e2782(0x2b4)](),_0x30199a=await createTDXInstance(_0x4027db),_0x4cd337=await _0x2c5bcc[_0x5e2782(0x384)]({'options':{..._0x4027db,..._0x2b92af},'args':[_0x91ff68],'tdx':_0x30199a});gracefulExit(_0x4cd337);}),psPzCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2d4))[a2_0x9f465f(0x207)](a2_0x9f465f(0x334))[a2_0x9f465f(0x166)](async(_0x2e0a24,_0x1ed2e4)=>{const _0xfac3a2=a2_0x9f465f,_0x52a009=new PSPzDeleteCommand(),_0x3d2b13=program[_0xfac3a2(0x2b4)](),_0x44a35a=await createTDXInstance(_0x3d2b13),_0x35eb9a=await _0x52a009[_0xfac3a2(0x384)]({'options':{..._0x3d2b13,..._0x1ed2e4},'args':[_0x2e0a24],'tdx':_0x44a35a});gracefulExit(_0x35eb9a);}),psPzCmd['command'](a2_0x9f465f(0x20f))['description'](a2_0x9f465f(0x145))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2d0),a2_0x9f465f(0x34a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x160))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12d),'Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1f4),'Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3ad),a2_0x9f465f(0x286))[a2_0x9f465f(0x23e)]('--file\x20<path>',a2_0x9f465f(0x30f))[a2_0x9f465f(0x166)](async _0xbda5ea=>{const _0x2d0d4c=a2_0x9f465f,_0x1291a0=new PSPzCreateCommand(),_0x3117dd=program[_0x2d0d4c(0x2b4)](),_0x1b20a7=await createTDXInstance(_0x3117dd),_0x4562d2=await _0x1291a0[_0x2d0d4c(0x384)]({'options':{..._0x3117dd,..._0xbda5ea},'args':[],'tdx':_0x1b20a7});gracefulExit(_0x4562d2);}),psPzCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x239))['description'](a2_0x9f465f(0x399))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2d0),a2_0x9f465f(0x34a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x160))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3ad),a2_0x9f465f(0x286))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x217),a2_0x9f465f(0x30f))[a2_0x9f465f(0x166)](async(_0x18c39c,_0x563667)=>{const _0x48aa03=a2_0x9f465f,_0x24693c=new PSPzPatchCommand(),_0xc713a5=program[_0x48aa03(0x2b4)](),_0x26a989=await createTDXInstance(_0xc713a5),_0x63bbcb=await _0x24693c[_0x48aa03(0x384)]({'options':{..._0xc713a5,..._0x563667},'args':[_0x18c39c],'tdx':_0x26a989});gracefulExit(_0x63bbcb);});const psPzServiceCmd=psPzCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1bf))[a2_0x9f465f(0x207)]('Personalization\x20service\x20management');psPzServiceCmd[a2_0x9f465f(0x158)]('list\x20[name]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x32f))['action'](async(_0x108d68,_0x2c1944)=>{const _0x2157db=a2_0x9f465f,_0x571cdc=new PSPzServiceListCommand(),_0x3219d1=program[_0x2157db(0x2b4)](),_0x50378b=await createTDXInstance(_0x3219d1),_0x15a1cd=await _0x571cdc[_0x2157db(0x384)]({'options':{..._0x3219d1,..._0x2c1944},'args':_0x108d68?[_0x108d68]:[],'tdx':_0x50378b});gracefulExit(_0x15a1cd);}),psPzServiceCmd['command']('create\x20<name>\x20[parent_segment]')[a2_0x9f465f(0x207)](a2_0x9f465f(0xfb))['option'](a2_0x9f465f(0x2ff),a2_0x9f465f(0x154))['option'](a2_0x9f465f(0x31c),'Make\x20service\x20public\x20(default:\x20private)')['action'](async(_0x46d177,_0x152c40,_0x244637)=>{const _0x506e03=a2_0x9f465f,_0x35a750=new PSPzServiceCreateCommand(),_0xfb2e83=program[_0x506e03(0x2b4)](),_0x29b4d5=await createTDXInstance(_0xfb2e83),_0x1f563a=await _0x35a750[_0x506e03(0x384)]({'options':{..._0xfb2e83,..._0x244637},'args':_0x152c40?[_0x46d177,_0x152c40]:[_0x46d177],'tdx':_0x29b4d5});gracefulExit(_0x1f563a);}),psPzServiceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x35c))[a2_0x9f465f(0x207)](a2_0x9f465f(0x20d))['action'](async(_0x4319f1,_0x1d8b57,_0x106609)=>{const _0x5e3950=a2_0x9f465f,_0x32cc0f=new PSPzServiceShowCommand(),_0x26aa0c=program[_0x5e3950(0x2b4)](),_0x5086d8=await createTDXInstance(_0x26aa0c),_0x533e35=await _0x32cc0f[_0x5e3950(0x384)]({'options':{..._0x26aa0c,..._0x106609},'args':_0x1d8b57?[_0x4319f1,_0x1d8b57]:[_0x4319f1],'tdx':_0x5086d8});gracefulExit(_0x533e35);}),psPzServiceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2c0))[a2_0x9f465f(0x207)](a2_0x9f465f(0x408))['action'](async(_0x543135,_0x2437eb,_0x4184ac)=>{const _0x375030=a2_0x9f465f,_0x3546cc=new PSPzServiceDeleteCommand(),_0x2b844f=program[_0x375030(0x2b4)](),_0x2a4e38=await createTDXInstance(_0x2b844f),_0x3d9854=await _0x3546cc[_0x375030(0x384)]({'options':{..._0x2b844f,..._0x4184ac},'args':_0x2437eb?[_0x543135,_0x2437eb]:[_0x543135],'tdx':_0x2a4e38});gracefulExit(_0x3d9854);}),psPzServiceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x32b))[a2_0x9f465f(0x207)]('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x9f465f(0x29e)]('--name\x20<name>','New\x20service\x20name')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x2a5))[a2_0x9f465f(0x166)](async(_0xf50ed8,_0x17a8b0,_0x5ca5bd)=>{const _0x484c45=a2_0x9f465f,_0x296a91=new PSPzServiceUpdateCommand(),_0x32e674=program[_0x484c45(0x2b4)](),_0x34ccdb=await createTDXInstance(_0x32e674),_0x5c1a8e=await _0x296a91['run']({'options':{..._0x32e674,..._0x5ca5bd},'args':_0x17a8b0?[_0xf50ed8,_0x17a8b0]:[_0xf50ed8],'tdx':_0x34ccdb});gracefulExit(_0x5c1a8e);}),psPzServiceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x209))[a2_0x9f465f(0x207)](a2_0x9f465f(0x27f))[a2_0x9f465f(0x166)](async(_0x3e5443,_0x5731b3)=>{const _0x5e48d9=a2_0x9f465f,_0x5ba906=new PSPzInitCommand(),_0x517f62=program['opts'](),_0x33cb7d=await createTDXInstance(_0x517f62),_0x39438c=await _0x5ba906[_0x5e48d9(0x384)]({'options':{..._0x517f62,..._0x5731b3},'args':_0x3e5443?[_0x3e5443]:[],'tdx':_0x33cb7d});gracefulExit(_0x39438c);});const psPzServiceTokenCmd=psPzServiceCmd['command'](a2_0x9f465f(0x15c))['description'](a2_0x9f465f(0x156));psPzServiceTokenCmd['command'](a2_0x9f465f(0x261))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ca))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x40a),a2_0x9f465f(0x306))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x105))[a2_0x9f465f(0x166)](async(_0x3acb16,_0xbca431,_0x9742eb,_0x22249b)=>{const _0x17367f=a2_0x9f465f,_0x1b61fe=new PSPzServiceTokenCreateCommand(),_0x3dd555=program['opts'](),_0xda9418=await createTDXInstance(_0x3dd555),_0x3bbd40=await _0x1b61fe[_0x17367f(0x384)]({'options':{..._0x3dd555,..._0x22249b},'args':_0x9742eb?[_0x3acb16,_0xbca431,_0x9742eb]:[_0x3acb16,_0xbca431],'tdx':_0xda9418});gracefulExit(_0x3bbd40);}),psPzServiceTokenCmd[a2_0x9f465f(0x158)]('delete\x20<token_id>\x20[parent_segment]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x3fe))['action'](async(_0x44c85e,_0x1c75d1,_0x399d37)=>{const _0x180994=a2_0x9f465f,_0x5a2240=new PSPzServiceTokenDeleteCommand(),_0x4d0324=program[_0x180994(0x2b4)](),_0x527ebd=await createTDXInstance(_0x4d0324),_0x3bef67=await _0x5a2240[_0x180994(0x384)]({'options':{..._0x4d0324,..._0x399d37},'args':_0x1c75d1?[_0x44c85e,_0x1c75d1]:[_0x44c85e],'tdx':_0x527ebd});gracefulExit(_0x3bef67);}),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x369))['description'](a2_0x9f465f(0x2fb))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x205),'Master\x20database\x20name')[a2_0x9f465f(0x29e)](a2_0x9f465f(0x39d),a2_0x9f465f(0x2c4))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x35a))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1bd),a2_0x9f465f(0x387))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1f1),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x9f465f(0x23e)]('--timezone\x20<tz>',a2_0x9f465f(0x2f2))[a2_0x9f465f(0x23e)]('--attributes\x20<json>',a2_0x9f465f(0xf1))[a2_0x9f465f(0x23e)]('--attributes-file\x20<file>',a2_0x9f465f(0x1af))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2b9),a2_0x9f465f(0x1df))[a2_0x9f465f(0x23e)]('--behaviors-file\x20<file>',a2_0x9f465f(0x13b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2d5),a2_0x9f465f(0x279))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x30e),a2_0x9f465f(0x1cf))['action'](async(_0x515925,_0x387dd9)=>{const _0xe843dd=a2_0x9f465f,_0x443a24=new ParentSegmentCreateCommand(),_0x37a98a=program[_0xe843dd(0x2b4)](),_0x25859b=await createTDXInstance(_0x37a98a),_0xa5c38a=await _0x443a24[_0xe843dd(0x384)]({'options':{..._0x37a98a,..._0x387dd9},'args':[_0x515925],'tdx':_0x25859b});gracefulExit(_0xa5c38a);}),parentCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3d9))[a2_0x9f465f(0x207)](a2_0x9f465f(0x213))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),'Updated\x20description')['option'](a2_0x9f465f(0x1bd),a2_0x9f465f(0x26e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1f1),a2_0x9f465f(0x1f2))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2de),a2_0x9f465f(0x143))['option']('--add-attributes\x20<json>',a2_0x9f465f(0x302))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x36c),a2_0x9f465f(0x37e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x135),a2_0x9f465f(0x292))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x398),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x9f465f(0x166)](async(_0x2d21d3,_0x53e1ef)=>{const _0x112781=a2_0x9f465f,_0x38db64=new ParentSegmentUpdateCommand(),_0x453c3f=program[_0x112781(0x2b4)](),_0x387a4e=await createTDXInstance(_0x453c3f),_0x32cc10=await _0x38db64[_0x112781(0x384)]({'options':{..._0x453c3f,..._0x53e1ef},'args':[_0x2d21d3],'tdx':_0x387a4e});gracefulExit(_0x32cc10);}),folderCmd[a2_0x9f465f(0x158)]('create\x20<parent_name>\x20<folder_name>')[a2_0x9f465f(0x207)]('Create\x20segment\x20folder')[a2_0x9f465f(0x23e)]('--description\x20<text>','Folder\x20description')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x14d),a2_0x9f465f(0x2e3))[a2_0x9f465f(0x166)](async(_0x82c14d,_0x5810e9,_0x1fb054)=>{const _0x12148d=a2_0x9f465f,_0x5a32be=new SegmentFolderCreateCommand(),_0x5b4ef9=program[_0x12148d(0x2b4)](),_0x4d1f5c=await createTDXInstance(_0x5b4ef9),_0x59f5df=await _0x5a32be[_0x12148d(0x384)]({'options':{..._0x5b4ef9,..._0x1fb054},'args':[_0x82c14d,_0x5810e9],'tdx':_0x4d1f5c});gracefulExit(_0x59f5df);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x347))[a2_0x9f465f(0x207)](a2_0x9f465f(0x304))[a2_0x9f465f(0x166)](async(_0x25672a,_0x4d6fc5)=>{const _0xdfeb08=a2_0x9f465f,_0xbd439b=new ActivationsCommand(),_0x3d2155=program[_0xdfeb08(0x2b4)](),_0x31f44f=await createTDXInstance(_0x3d2155),_0x452487=await _0xbd439b['run']({'options':{..._0x3d2155,..._0x4d6fc5},'args':[_0x25672a],'tdx':_0x31f44f});gracefulExit(_0x452487);});const workflowCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x2c1))[a2_0x9f465f(0x3e2)]('wf')[a2_0x9f465f(0x207)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd['command'](a2_0x9f465f(0x40d))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0xddc00,_0x33c343)=>{const _0x42b5f9=a2_0x9f465f,_0x3e894e=new WorkflowProjectsCommand(),_0x4b7611=program[_0x42b5f9(0x2b4)](),_0x1337ac=await createTDXInstance(_0x4b7611),_0x47baa9=await _0x3e894e[_0x42b5f9(0x384)]({'options':{..._0x4b7611,..._0x33c343},'args':_0xddc00?[_0xddc00]:[],'tdx':_0x1337ac});gracefulExit(_0x47baa9);};wfProjectCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x192))[a2_0x9f465f(0x166)](wfProjectListAction),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x201))[a2_0x9f465f(0x207)](a2_0x9f465f(0x28e))[a2_0x9f465f(0x166)](wfProjectListAction);const wfWorkflowListAction=async(_0x422875,_0x59dc45)=>{const _0x2d0bf3=new WorkflowWorkflowsCommand(),_0x1050b0=program['opts'](),_0x2940be=await createTDXInstance(_0x1050b0),_0x408e51=await _0x2d0bf3['run']({'options':{..._0x1050b0,..._0x59dc45},'args':_0x422875?[_0x422875]:[],'tdx':_0x2940be});gracefulExit(_0x408e51);};workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1e8))[a2_0x9f465f(0x207)](a2_0x9f465f(0x38a))[a2_0x9f465f(0x166)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x111))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3f4)),wfSessionListAction=async(_0x46076c,_0x288e27)=>{const _0x49f6e3=a2_0x9f465f,_0x48f5a8=new WorkflowSessionsCommand(),_0x1bf01b=program[_0x49f6e3(0x2b4)](),_0x35ba0c=await createTDXInstance(_0x1bf01b),_0x5f5cc3=await _0x48f5a8[_0x49f6e3(0x384)]({'options':{..._0x1bf01b,..._0x288e27},'args':_0x46076c?[_0x46076c]:[],'tdx':_0x35ba0c});gracefulExit(_0x5f5cc3);};wfSessionCmd['command'](a2_0x9f465f(0x1f5))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1b9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e3),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x9f465f(0x2b1),a2_0x9f465f(0x396))['option'](a2_0x9f465f(0x258),a2_0x9f465f(0x184))[a2_0x9f465f(0x166)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x14e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e3),a2_0x9f465f(0x3c2))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2b1),a2_0x9f465f(0x396))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x258),a2_0x9f465f(0x184))[a2_0x9f465f(0x166)](wfSessionListAction);const wfAttemptListAction=async(_0x7bdaf0,_0x4281dd)=>{const _0x915171=a2_0x9f465f,_0x29a3b4=new WorkflowAttemptsCommand(),_0xdf51bf=program['opts'](),_0x49c1cc=await createTDXInstance(_0xdf51bf),_0x57372d=await _0x29a3b4[_0x915171(0x384)]({'options':{..._0xdf51bf,..._0x4281dd},'args':_0x7bdaf0?[_0x7bdaf0]:[],'tdx':_0x49c1cc});gracefulExit(_0x57372d);},attemptCmd=workflowCmd['command'](a2_0x9f465f(0x290))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3c1))[a2_0x9f465f(0x2a4)](a2_0x9f465f(0x3ce),a2_0x9f465f(0x291))[a2_0x9f465f(0x2a4)](a2_0x9f465f(0x2df),a2_0x9f465f(0x348))[a2_0x9f465f(0x2a4)]('[task-name]',a2_0x9f465f(0x164))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1ef),a2_0x9f465f(0x34b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3c9),a2_0x9f465f(0x174))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x21b),a2_0x9f465f(0xef))['option'](a2_0x9f465f(0x3a8),a2_0x9f465f(0x1d5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x34f),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x9f465f(0x3b5),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x9f465f(0x166)](async(_0x263007,_0x205d46,_0x492fa1,_0x54e50b)=>{const _0x563fc5=a2_0x9f465f;if(_0x263007===_0x563fc5(0x3b6)){await wfAttemptListAction(_0x205d46,_0x54e50b);return;}if(!_0x263007){attemptCmd[_0x563fc5(0x3c3)]();return;}const _0x5c439b=program['opts'](),_0x2b7a6a=await createTDXInstance(_0x5c439b);let _0x15f81a=0x0;if(!_0x205d46){const _0x228f8b=new WorkflowAttemptCommand();_0x15f81a=await _0x228f8b[_0x563fc5(0x384)]({'options':{..._0x5c439b,..._0x54e50b},'args':[_0x263007],'tdx':_0x2b7a6a});}else{if(_0x205d46==='logs'){const _0xc77b68=new WorkflowLogsCommand();_0x15f81a=await _0xc77b68['run']({'options':{..._0x5c439b,..._0x54e50b},'args':_0x492fa1?[_0x263007,_0x492fa1]:[_0x263007],'tdx':_0x2b7a6a});}else{if(_0x205d46===_0x563fc5(0x30a)){const _0x4378e0=new WorkflowTasksCommand();_0x15f81a=await _0x4378e0[_0x563fc5(0x384)]({'options':{..._0x5c439b,..._0x54e50b},'args':[_0x263007],'tdx':_0x2b7a6a});}else{if(_0x205d46===_0x563fc5(0x196)){const _0x235f0c=new WorkflowKillCommand();_0x15f81a=await _0x235f0c[_0x563fc5(0x384)]({'options':{..._0x5c439b,..._0x54e50b},'args':[_0x263007],'tdx':_0x2b7a6a});}else{if(_0x205d46===_0x563fc5(0x356)){const _0x3af4bf=new WorkflowRetryCommand();_0x15f81a=await _0x3af4bf[_0x563fc5(0x384)]({'options':{..._0x5c439b,..._0x54e50b},'args':['attempt:'+_0x263007],'tdx':_0x2b7a6a});}else console[_0x563fc5(0x2bc)](_0x563fc5(0x233)+_0x205d46),console[_0x563fc5(0x2bc)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x15f81a=0x1;}}}}gracefulExit(_0x15f81a);});attemptCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f5))[a2_0x9f465f(0x207)](a2_0x9f465f(0x27c))['option']('--include-retried',a2_0x9f465f(0xf3))['action'](wfAttemptListAction),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2a3))[a2_0x9f465f(0x207)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x9f465f(0x23e)]('--include-retried','Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2fa))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1d3))['option'](a2_0x9f465f(0x38d),a2_0x9f465f(0x409))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1eb),a2_0x9f465f(0x411))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3d2),a2_0x9f465f(0x10c))[a2_0x9f465f(0x166)](async(_0x36cbdc,_0x445886)=>{const _0x47655c=new WorkflowTimelineCommand(),_0x3af7e1=program['opts'](),_0x20a73a=await createTDXInstance(_0x3af7e1),_0x1ee5bf=await _0x47655c['run']({'options':{..._0x3af7e1,..._0x445886},'args':_0x36cbdc?[_0x36cbdc]:[],'tdx':_0x20a73a});gracefulExit(_0x1ee5bf);}),workflowCmd[a2_0x9f465f(0x158)]('retry\x20<session-id>')['description'](a2_0x9f465f(0x249))[a2_0x9f465f(0x23e)]('--from-task\x20<task>',a2_0x9f465f(0x1dd))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3a8),a2_0x9f465f(0x2a9))[a2_0x9f465f(0x166)](async(_0x53084e,_0x31ead3)=>{const _0x33c854=a2_0x9f465f,_0x59a7fc=new WorkflowRetryCommand(),_0x353875=program[_0x33c854(0x2b4)](),_0x501320=await createTDXInstance(_0x353875),_0x354b49=await _0x59a7fc[_0x33c854(0x384)]({'options':{..._0x353875,..._0x31ead3},'args':[_0x53084e],'tdx':_0x501320});gracefulExit(_0x354b49);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2eb))[a2_0x9f465f(0x207)](a2_0x9f465f(0x27e))['option'](a2_0x9f465f(0x3b2),a2_0x9f465f(0x1ee),(_0x49914c,_0x426ec0=[])=>[..._0x426ec0,_0x49914c],[])['option']('--session-time\x20<time>',a2_0x9f465f(0x1ed))[a2_0x9f465f(0x166)](async(_0x421f66,_0x2e39ca)=>{const _0x5c3749=a2_0x9f465f,_0x348209=new WorkflowRunCommand(),_0x3dac05=program['opts'](),_0x286718=await createTDXInstance(_0x3dac05),_0x5944fb=await _0x348209[_0x5c3749(0x384)]({'options':{..._0x3dac05,..._0x2e39ca},'args':_0x421f66?[_0x421f66]:[],'tdx':_0x286718});gracefulExit(_0x5944fb);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1da))[a2_0x9f465f(0x207)](a2_0x9f465f(0x109))['option'](a2_0x9f465f(0x288),a2_0x9f465f(0x40f))[a2_0x9f465f(0x166)](async(_0x19cc87,_0x474d03,_0x25e693)=>{const _0x865ece=a2_0x9f465f,_0x53818a=new WorkflowDownloadCommand(),_0x412e02=program[_0x865ece(0x2b4)](),_0x8ddcd9=await createTDXInstance(_0x412e02),_0xedbbbd=await _0x53818a['run']({'options':{..._0x412e02,..._0x25e693},'args':[_0x19cc87,_0x474d03||'.'],'tdx':_0x8ddcd9});gracefulExit(_0xedbbbd);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1e6))['description'](a2_0x9f465f(0x2e2))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x288),a2_0x9f465f(0x327))[a2_0x9f465f(0x23e)]('--dry-run',a2_0x9f465f(0x2f3))[a2_0x9f465f(0x166)](async(_0xe0040d,_0x128d5d,_0x5dc8f7)=>{const _0x4d41e5=a2_0x9f465f,_0x3f8439=new WorkflowPullCommand(),_0x4a4650=program[_0x4d41e5(0x2b4)](),_0x4a7fa6=await createTDXInstance(_0x4a4650),_0x4ba49d=await _0x3f8439[_0x4d41e5(0x384)]({'options':{..._0x4a4650,..._0x5dc8f7},'args':_0x128d5d?[_0xe0040d,_0x128d5d]:[_0xe0040d],'tdx':_0x4a7fa6});gracefulExit(_0x4ba49d);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x244))[a2_0x9f465f(0x207)](a2_0x9f465f(0x188))[a2_0x9f465f(0x23e)]('--revision\x20<revision>','Custom\x20revision\x20name\x20(default:\x20timestamp)')['option'](a2_0x9f465f(0x31d),'Preview\x20changes\x20without\x20pushing')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x27b),a2_0x9f465f(0x186))[a2_0x9f465f(0x166)](async(_0x12eb0a,_0xc34be4)=>{const _0x235bf5=a2_0x9f465f,_0xf31c5=new WorkflowPushCommand(),_0x3a54bd=program[_0x235bf5(0x2b4)](),_0x4f95d5=await createTDXInstance(_0x3a54bd),_0x48e8c5=await _0xf31c5[_0x235bf5(0x384)]({'options':{..._0x3a54bd,..._0xc34be4},'args':_0x12eb0a?[_0x12eb0a]:[],'tdx':_0x4f95d5});gracefulExit(_0x48e8c5);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3f6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x29d))[a2_0x9f465f(0x23e)]('--name\x20<name>','Override\x20project\x20name')[a2_0x9f465f(0x23e)]('--revision\x20<revision>',a2_0x9f465f(0x216))['option'](a2_0x9f465f(0x27b),a2_0x9f465f(0x186))['action'](async(_0x31cb4d,_0x478fb7)=>{const _0x162269=a2_0x9f465f,_0x2e20a7=new WorkflowUploadCommand(),_0x59436b=program[_0x162269(0x2b4)](),_0x284e39=await createTDXInstance(_0x59436b),_0x2aabf0=await _0x2e20a7[_0x162269(0x384)]({'options':{..._0x59436b,..._0x478fb7},'args':_0x31cb4d?[_0x31cb4d]:[],'tdx':_0x284e39});gracefulExit(_0x2aabf0);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x221))['description']('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')['option'](a2_0x9f465f(0x338),a2_0x9f465f(0x1e1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x288),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x9f465f(0x23e)]('--dry-run',a2_0x9f465f(0x16c))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x27b),a2_0x9f465f(0x186))[a2_0x9f465f(0x166)](async(_0x3dc5b1,_0x4a96e7)=>{const _0x5bb7ed=a2_0x9f465f,_0x318c94=new WorkflowCloneCommand(),_0x55bbe4=program[_0x5bb7ed(0x2b4)](),_0xa213e7=await createTDXInstance(_0x55bbe4),_0x1fedb0=await _0x318c94[_0x5bb7ed(0x384)]({'options':{..._0x55bbe4,..._0x4a96e7},'args':_0x3dc5b1?[_0x3dc5b1]:[],'tdx':_0xa213e7});gracefulExit(_0x1fedb0);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x10f))[a2_0x9f465f(0x207)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x9f465f(0x166)](async(_0x24c7e3,_0x205345)=>{const _0x304a88=a2_0x9f465f,_0x311305=new WorkflowDeleteCommand(),_0x3c20f0=program[_0x304a88(0x2b4)](),_0x3bedff=await createTDXInstance(_0x3c20f0),_0x3311bf=await _0x311305[_0x304a88(0x384)]({'options':{..._0x3c20f0,..._0x205345},'args':[_0x24c7e3],'tdx':_0x3bedff});gracefulExit(_0x3311bf);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1ce))[a2_0x9f465f(0x207)](a2_0x9f465f(0x405))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3c8),a2_0x9f465f(0x167))[a2_0x9f465f(0x166)](async(_0x3097fc,_0x563cf9)=>{const _0x53749c=a2_0x9f465f,_0x3957be=new WorkflowUseCommand(),_0x1cbe94=program['opts'](),_0x5a2ea4=await createTDXInstance(_0x1cbe94),_0x41427d=await _0x3957be[_0x53749c(0x384)]({'options':{..._0x1cbe94,..._0x563cf9},'args':_0x3097fc?[_0x3097fc]:[],'tdx':_0x5a2ea4});gracefulExit(_0x41427d);});const wfSecretsCmd=workflowCmd['command'](a2_0x9f465f(0x2c9))['description'](a2_0x9f465f(0x1c4));wfSecretsCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f5))[a2_0x9f465f(0x207)](a2_0x9f465f(0x113))[a2_0x9f465f(0x166)](async(_0x3f13ec,_0x2f920e)=>{const _0x1c898d=a2_0x9f465f,_0x5088f3=new WorkflowSecretsListCommand(),_0xb99ff3=program[_0x1c898d(0x2b4)](),_0x2fa2d3=await createTDXInstance(_0xb99ff3),_0x30b7c4=await _0x5088f3[_0x1c898d(0x384)]({'options':{..._0xb99ff3,..._0x2f920e},'args':_0x3f13ec?[_0x3f13ec]:[],'tdx':_0x2fa2d3});gracefulExit(_0x30b7c4);}),wfSecretsCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1c0))[a2_0x9f465f(0x207)](a2_0x9f465f(0x322))[a2_0x9f465f(0x166)](async(_0x2da09e,_0x4fc5bf)=>{const _0x1745e2=a2_0x9f465f,_0x55d36a=new WorkflowSecretsSetCommand(),_0x6af0ee=program[_0x1745e2(0x2b4)](),_0x46d740=await createTDXInstance(_0x6af0ee),_0x9205e5=await _0x55d36a[_0x1745e2(0x384)]({'options':{..._0x6af0ee,..._0x4fc5bf},'args':_0x2da09e,'tdx':_0x46d740});gracefulExit(_0x9205e5);}),wfSecretsCmd[a2_0x9f465f(0x158)]('delete\x20<args...>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x36d))[a2_0x9f465f(0x166)](async(_0x329666,_0xba9fa9)=>{const _0x368649=new WorkflowSecretsDeleteCommand(),_0x1498b4=program['opts'](),_0x3b0a3f=await createTDXInstance(_0x1498b4),_0x552922=await _0x368649['run']({'options':{..._0x1498b4,..._0xba9fa9},'args':_0x329666,'tdx':_0x3b0a3f});gracefulExit(_0x552922);});const wfScheduleCmd=workflowCmd[a2_0x9f465f(0x158)]('schedule')[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ec));wfScheduleCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x193))[a2_0x9f465f(0x207)]('Enable\x20a\x20disabled\x20workflow\x20schedule')[a2_0x9f465f(0x166)](async(_0x4c8cf8,_0xcccb29)=>{const _0x3dd78c=a2_0x9f465f,_0x487857=new WorkflowScheduleEnableCommand(),_0x2e2e64=program[_0x3dd78c(0x2b4)](),_0x495840=await createTDXInstance(_0x2e2e64),_0x2c390e=await _0x487857[_0x3dd78c(0x384)]({'options':{..._0x2e2e64,..._0xcccb29},'args':[_0x4c8cf8],'tdx':_0x495840});gracefulExit(_0x2c390e);}),wfScheduleCmd['command'](a2_0x9f465f(0x332))[a2_0x9f465f(0x207)](a2_0x9f465f(0x363))['action'](async(_0x114255,_0x2723f7)=>{const _0x1b759a=a2_0x9f465f,_0x1c0775=new WorkflowScheduleDisableCommand(),_0xa9647d=program[_0x1b759a(0x2b4)](),_0x3c7756=await createTDXInstance(_0xa9647d),_0x578afb=await _0x1c0775['run']({'options':{..._0xa9647d,..._0x2723f7},'args':[_0x114255],'tdx':_0x3c7756});gracefulExit(_0x578afb);}),workflowCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2dc))[a2_0x9f465f(0x207)]('List\x20all\x20workflow\x20schedules')[a2_0x9f465f(0x166)](async _0x11d085=>{const _0x433ae9=new WorkflowSchedulesCommand(),_0x24096d=program['opts'](),_0x5c2af0=await createTDXInstance(_0x24096d),_0x49dccd=await _0x433ae9['run']({'options':{..._0x24096d,..._0x11d085},'args':[],'tdx':_0x5c2af0});gracefulExit(_0x49dccd);});const jobCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3ac))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2e8)),jobListAction=async _0x361ed4=>{const _0x39de3d=a2_0x9f465f,_0x31d295=new JobListCommand(),_0x1edf9b=program[_0x39de3d(0x2b4)](),_0x476a94=await createTDXInstance(_0x1edf9b),_0xa88dc8=await _0x31d295[_0x39de3d(0x384)]({'options':{..._0x1edf9b,..._0x361ed4},'args':[],'tdx':_0x476a94});gracefulExit(_0xa88dc8);};jobCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x19b))[a2_0x9f465f(0x23e)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x9f465f(0x166)](jobListAction),program['command'](a2_0x9f465f(0x3c4),{'hidden':!![]})[a2_0x9f465f(0x207)](a2_0x9f465f(0x2fc))[a2_0x9f465f(0x23e)]('--status\x20<status>',a2_0x9f465f(0x381))[a2_0x9f465f(0x166)](jobListAction),jobCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2b3))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1fb))['action'](async(_0x598318,_0x5ac683)=>{const _0x1c85d0=a2_0x9f465f,_0x5deb1a=new JobShowCommand(),_0x17d885=program[_0x1c85d0(0x2b4)](),_0x2e89cd=await createTDXInstance(_0x17d885),_0x4cf557=await _0x5deb1a[_0x1c85d0(0x384)]({'options':{..._0x17d885,..._0x5ac683},'args':[_0x598318],'tdx':_0x2e89cd});gracefulExit(_0x4cf557);}),jobCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3db))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1b5))[a2_0x9f465f(0x166)](async(_0x3c86aa,_0x1ef938)=>{const _0x9a15a3=a2_0x9f465f,_0x3288b9=new JobKillCommand(),_0x79eb9c=program[_0x9a15a3(0x2b4)](),_0x2e1377=await createTDXInstance(_0x79eb9c),_0x22c2ab=await _0x3288b9[_0x9a15a3(0x384)]({'options':{..._0x79eb9c,..._0x1ef938},'args':[_0x3c86aa],'tdx':_0x2e1377});gracefulExit(_0x22c2ab);}),jobCmd['command'](a2_0x9f465f(0x2be))[a2_0x9f465f(0x207)](a2_0x9f465f(0xe8))['option'](a2_0x9f465f(0x122),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x9f465f(0x3fa))['option']('-f,\x20--file\x20<path>',a2_0x9f465f(0x1a4))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3b7),a2_0x9f465f(0x19a),a2_0x9f465f(0x1d8))[a2_0x9f465f(0x23e)]('--result\x20<target>',a2_0x9f465f(0x3a7))['action'](async(_0x4c927d,_0x22a1e5)=>{const _0x4eac50=a2_0x9f465f,_0x267f43=new JobSubmitCommand(),_0x116144=program[_0x4eac50(0x2b4)](),_0x4a51ca=await createTDXInstance(_0x116144),_0x24b583=await _0x267f43[_0x4eac50(0x384)]({'options':{..._0x116144,..._0x22a1e5},'args':_0x4c927d?[_0x4c927d]:[],'tdx':_0x4a51ca});gracefulExit(_0x24b583);}),jobCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x124))[a2_0x9f465f(0x207)](a2_0x9f465f(0x24c))[a2_0x9f465f(0x166)](async(_0x1b9e35,_0x54d34d)=>{const _0xe2afeb=a2_0x9f465f,_0x19441f=new JobResultCommand(),_0x549167=program['opts'](),_0x26a521=await createTDXInstance(_0x549167),_0x46ee3f=await _0x19441f[_0xe2afeb(0x384)]({'options':{..._0x549167,..._0x54d34d},'args':[_0x1b9e35],'tdx':_0x26a521});gracefulExit(_0x46ee3f);});const scheduleCmd=jobCmd['command'](a2_0x9f465f(0x39a))['description'](a2_0x9f465f(0x315));scheduleCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x372))[a2_0x9f465f(0x166)](async(_0x1c8f0e,_0x23e2fc)=>{const _0x461ad5=a2_0x9f465f,_0x58ff98=new ScheduleListCommand(),_0x10b414=program[_0x461ad5(0x2b4)](),_0x4933cf=await createTDXInstance(_0x10b414),_0x5a7623=await _0x58ff98[_0x461ad5(0x384)]({'options':{..._0x10b414,..._0x23e2fc},'args':_0x1c8f0e?[_0x1c8f0e]:[],'tdx':_0x4933cf});gracefulExit(_0x5a7623);}),scheduleCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x393))['description'](a2_0x9f465f(0x2a8))[a2_0x9f465f(0x166)](async(_0x3c206c,_0x331823)=>{const _0x9c0ad4=a2_0x9f465f,_0x4d0325=new ScheduleShowCommand(),_0xbb8ec3=program['opts'](),_0x129123=await createTDXInstance(_0xbb8ec3),_0x19f6cd=await _0x4d0325[_0x9c0ad4(0x384)]({'options':{..._0xbb8ec3,..._0x331823},'args':[_0x3c206c],'tdx':_0x129123});gracefulExit(_0x19f6cd);}),scheduleCmd[a2_0x9f465f(0x158)]('create\x20<name>')['description'](a2_0x9f465f(0x16f))[a2_0x9f465f(0x23e)]('-d,\x20--database\x20<db>',a2_0x9f465f(0x336))[a2_0x9f465f(0x23e)]('--in\x20<db>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')['requiredOption']('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x36b),a2_0x9f465f(0x3fa))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1e9),'Cron\x20expression\x20for\x20scheduling')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2de),a2_0x9f465f(0x1d1))[a2_0x9f465f(0x23e)]('--delay\x20<seconds>',a2_0x9f465f(0x404))['option'](a2_0x9f465f(0x1be),a2_0x9f465f(0x373))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2da),a2_0x9f465f(0x3d5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xfe),'Query\x20engine\x20version')[a2_0x9f465f(0x23e)]('--result\x20<url>','Result\x20output\x20destination\x20URL')['action'](async(_0xd0c223,_0x3641d8)=>{const _0xbb6894=a2_0x9f465f,_0x44ba16=new ScheduleCreateCommand(),_0x58a40a=program['opts'](),_0x2fdc79=await createTDXInstance(_0x58a40a);_0x3641d8['in']&&(_0x3641d8[_0xbb6894(0x386)]=_0x3641d8['in']);const _0x2fef33=await _0x44ba16[_0xbb6894(0x384)]({'options':{..._0x58a40a,..._0x3641d8},'args':[_0xd0c223],'tdx':_0x2fdc79});gracefulExit(_0x2fef33);}),scheduleCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3d9))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2f0))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x21a),a2_0x9f465f(0x1ab))[a2_0x9f465f(0x23e)]('--in\x20<db>',a2_0x9f465f(0x2c8))[a2_0x9f465f(0x23e)]('-f,\x20--file\x20<path>',a2_0x9f465f(0x1a4))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x36b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1e9),a2_0x9f465f(0x1a1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2de),a2_0x9f465f(0x104))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xf9),a2_0x9f465f(0x404))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1be),a2_0x9f465f(0x373))['option']('--retry-limit\x20<0~32>',a2_0x9f465f(0x3d5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xfe),a2_0x9f465f(0x3f3))[a2_0x9f465f(0x23e)]('--result\x20<url>','Result\x20output\x20destination\x20URL')[a2_0x9f465f(0x166)](async(_0x47fa66,_0x5c4b24)=>{const _0x3cda2f=a2_0x9f465f,_0x51d3e9=new ScheduleUpdateCommand(),_0xf5569b=program[_0x3cda2f(0x2b4)](),_0x57c8f9=await createTDXInstance(_0xf5569b);_0x5c4b24['in']&&(_0x5c4b24[_0x3cda2f(0x386)]=_0x5c4b24['in']);const _0x2c67d1=await _0x51d3e9[_0x3cda2f(0x384)]({'options':{..._0xf5569b,..._0x5c4b24},'args':[_0x47fa66],'tdx':_0x57c8f9});gracefulExit(_0x2c67d1);}),scheduleCmd[a2_0x9f465f(0x158)]('delete\x20<name>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x185))[a2_0x9f465f(0x166)](async(_0x59a257,_0x52099a)=>{const _0x259c8f=a2_0x9f465f,_0xeae619=new ScheduleDeleteCommand(),_0x24802f=program[_0x259c8f(0x2b4)](),_0x1aed8e=await createTDXInstance(_0x24802f),_0x5da73b=await _0xeae619[_0x259c8f(0x384)]({'options':{..._0x24802f,..._0x52099a},'args':[_0x59a257],'tdx':_0x1aed8e});gracefulExit(_0x5da73b);}),scheduleCmd['command'](a2_0x9f465f(0x382))[a2_0x9f465f(0x207)](a2_0x9f465f(0x102))['option']('--time\x20<iso8601>',a2_0x9f465f(0x270))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x127),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x9f465f(0x166)](async(_0x1d912e,_0x3d41fc)=>{const _0x4f3005=a2_0x9f465f,_0x3c2729=new ScheduleRunCommand(),_0x1e8e13=program['opts'](),_0x1f10dc=await createTDXInstance(_0x1e8e13),_0x461a86=await _0x3c2729[_0x4f3005(0x384)]({'options':{..._0x1e8e13,..._0x3d41fc},'args':[_0x1d912e],'tdx':_0x1f10dc});gracefulExit(_0x461a86);}),scheduleCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x14b))['description'](a2_0x9f465f(0x177))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3ec),'Starting\x20offset\x20(default:\x200)')[a2_0x9f465f(0x23e)]('--to\x20<n>',a2_0x9f465f(0x153))['action'](async(_0x5ca09f,_0x32d2af)=>{const _0x169f0f=a2_0x9f465f,_0x5e3ab6=new ScheduleHistoryCommand(),_0xd0acca=program[_0x169f0f(0x2b4)](),_0x5f00d4=await createTDXInstance(_0xd0acca),_0x341761=await _0x5e3ab6[_0x169f0f(0x384)]({'options':{..._0xd0acca,..._0x32d2af},'args':[_0x5ca09f],'tdx':_0x5f00d4});gracefulExit(_0x341761);});const llmCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x305))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2e1));llmCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x187))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x9f465f(0x166)](async(_0x3301c8,_0x4e6b7e)=>{const _0x5dc4dd=a2_0x9f465f,_0x5e8165=new LLMUseCommand(),_0x10b009=program[_0x5dc4dd(0x2b4)](),_0x4e6be0=await createTDXInstance(_0x10b009),_0xfc2de9=await _0x5e8165[_0x5dc4dd(0x384)]({'options':{..._0x10b009,..._0x4e6b7e},'args':[_0x3301c8],'tdx':_0x4e6be0});gracefulExit(_0xfc2de9);}),llmCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2dd))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3de))['action'](async _0x1d8edb=>{const _0x3037ae=a2_0x9f465f,_0x3b17b1=new LLMModelsCommand(),_0x5e6082=program[_0x3037ae(0x2b4)](),_0x4b007f=await createTDXInstance(_0x5e6082),_0x4e4736=await _0x3b17b1['run']({'options':{..._0x5e6082,..._0x1d8edb},'args':[],'tdx':_0x4b007f});gracefulExit(_0x4e4736);});const projectCmd=llmCmd['command'](a2_0x9f465f(0x40d))[a2_0x9f465f(0x207)](a2_0x9f465f(0x265)),llmProjectListAction=async(_0x75cfa,_0x382d99)=>{const _0xd2d5af=a2_0x9f465f,_0x1218ad=new LLMProjectsCommand(),_0x1775e6=program['opts'](),_0x5a63be=await createTDXInstance(_0x1775e6),_0x55ae90=await _0x1218ad[_0xd2d5af(0x384)]({'options':{..._0x1775e6,..._0x382d99},'args':_0x75cfa?[_0x75cfa]:[],'tdx':_0x5a63be});gracefulExit(_0x55ae90);};projectCmd['command']('list\x20[pattern]')[a2_0x9f465f(0x207)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x201))[a2_0x9f465f(0x207)](a2_0x9f465f(0xe4))[a2_0x9f465f(0x166)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x9f465f(0x207)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x9f465f(0x23e)]('--description\x20<text>',a2_0x9f465f(0x3cf))[a2_0x9f465f(0x166)](async(_0x564d21,_0x149bad)=>{const _0x4cc2ab=a2_0x9f465f,_0x24b29e=new LLMProjectCreateCommand(),_0x155311=program['opts'](),_0x43a2b5=await createTDXInstance(_0x155311),_0x1a8a20=await _0x24b29e[_0x4cc2ab(0x384)]({'options':{..._0x155311,..._0x149bad},'args':[_0x564d21],'tdx':_0x43a2b5});gracefulExit(_0x1a8a20);}),projectCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x11a))[a2_0x9f465f(0x207)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x137b25,_0x5cbcc0)=>{const _0x4dd15d=a2_0x9f465f,_0x3768a7=new LLMProjectDeleteCommand(),_0x3efa9c=program[_0x4dd15d(0x2b4)](),_0x4f09f4=await createTDXInstance(_0x3efa9c),_0x24c8a3=await _0x3768a7[_0x4dd15d(0x384)]({'options':{..._0x3efa9c,..._0x5cbcc0},'args':[_0x137b25],'tdx':_0x4f09f4});gracefulExit(_0x24c8a3);}),projectCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0xfd))[a2_0x9f465f(0x207)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1b1),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0xf5))[a2_0x9f465f(0x166)](async(_0x27b3d3,_0x86e0d2)=>{const _0x21a688=a2_0x9f465f,_0x2b9272=new LLMProjectBackupCommand(),_0x446dfc=program[_0x21a688(0x2b4)](),_0x1f95ca=await createTDXInstance(_0x446dfc),_0x58c3b9=await _0x2b9272[_0x21a688(0x384)]({'options':{..._0x446dfc,..._0x86e0d2},'args':[_0x27b3d3],'tdx':_0x1f95ca});gracefulExit(_0x58c3b9);}),projectCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x29c))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2d2))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x269),a2_0x9f465f(0x2b5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')['action'](async(_0x4b99ea,_0x4ed686)=>{const _0x169801=a2_0x9f465f,_0x2ab1ba=new LLMProjectRestoreCommand(),_0x4b1032=program[_0x169801(0x2b4)](),_0x2e7aaa=await createTDXInstance(_0x4b1032),_0x17b824=await _0x2ab1ba[_0x169801(0x384)]({'options':{..._0x4b1032,..._0x4ed686},'args':[_0x4b99ea],'tdx':_0x2e7aaa});gracefulExit(_0x17b824);});const llmAgentListAction=async(_0x5888ed,_0x471bdb)=>{const _0x676f46=a2_0x9f465f,_0x375411=new LLMAgentsCommand(),_0x312181=program[_0x676f46(0x2b4)](),_0x4c59f1=await createTDXInstance(_0x312181),_0x1f9489=await _0x375411[_0x676f46(0x384)]({'options':{..._0x312181,..._0x471bdb},'args':_0x5888ed?[_0x5888ed]:[],'tdx':_0x4c59f1});gracefulExit(_0x1f9489);};llmCmd['command'](a2_0x9f465f(0x18f))[a2_0x9f465f(0x207)](a2_0x9f465f(0x365))[a2_0x9f465f(0x166)](llmAgentListAction),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x18f))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x9f465f(0x166)](llmAgentListAction),llmCmd['command'](a2_0x9f465f(0x296))[a2_0x9f465f(0x207)](a2_0x9f465f(0x361))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x303),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x3e2779,_0x146982)=>{const _0x130735=a2_0x9f465f,_0x380820=new LLMHistoryCommand(),_0x59dfea=program[_0x130735(0x2b4)](),_0x299a0b=await createTDXInstance(_0x59dfea),_0x317e03=await _0x380820[_0x130735(0x384)]({'options':{..._0x59dfea,..._0x146982},'args':_0x3e2779?[_0x3e2779]:[],'tdx':_0x299a0b});gracefulExit(_0x317e03);});isExperimentalAvailable()&&llmCmd[a2_0x9f465f(0x158)]('log\x20<chat-id>')['description'](a2_0x9f465f(0x1e5))['action'](async(_0x530676,_0x4160a8)=>{const _0x59935b=a2_0x9f465f,_0x3a222a=new LLMLogCommand(),_0x12f0b7=program[_0x59935b(0x2b4)](),_0x38d14a=await createTDXInstance(_0x12f0b7),_0x1811e2=await _0x3a222a[_0x59935b(0x384)]({'options':{..._0x12f0b7,..._0x4160a8},'args':[_0x530676],'tdx':_0x38d14a});gracefulExit(_0x1811e2);});program[a2_0x9f465f(0x158)]('claude\x20[args...]')['usage'](a2_0x9f465f(0x3f2))['description'](a2_0x9f465f(0xeb))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x375),a2_0x9f465f(0x1c9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3c0),a2_0x9f465f(0x282))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1b7),a2_0x9f465f(0x400))[a2_0x9f465f(0x236)]()['allowExcessArguments'](!![])[a2_0x9f465f(0x3af)](a2_0x9f465f(0x21c),a2_0x9f465f(0x11c))[a2_0x9f465f(0x166)](async(_0x4efe64,_0x51a76f)=>{const _0x56cfda=a2_0x9f465f,_0x2eface=program[_0x56cfda(0x2b4)](),_0x40ecb3=Array[_0x56cfda(0x414)](_0x4efe64)?_0x4efe64:[];if(_0x40ecb3[0x0]===_0x56cfda(0x3bf)){const _0x1b7256=new ClaudeStatuslineCommand(),_0x31021c=await _0x1b7256[_0x56cfda(0x384)]({'options':{..._0x2eface,..._0x51a76f},'args':_0x40ecb3[_0x56cfda(0x3ae)](0x1),'tdx':null});gracefulExit(_0x31021c);}if(_0x40ecb3[0x0]===_0x56cfda(0x277)){const _0x2e3651=new ClaudeUsageCommand(),_0x1c1888=await _0x2e3651[_0x56cfda(0x384)]({'options':{..._0x2eface,..._0x51a76f},'args':_0x40ecb3[_0x56cfda(0x3ae)](0x1),'tdx':null});gracefulExit(_0x1c1888);}const _0x36ff67=new ClaudeCommand(),_0x57215f=await createTDXInstance(_0x2eface),_0x83a40d=await _0x36ff67[_0x56cfda(0x384)]({'options':{..._0x2eface,..._0x51a76f},'args':_0x40ecb3,'tdx':_0x57215f});gracefulExit(_0x83a40d);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3ee))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2f4))['option'](a2_0x9f465f(0x3c8),a2_0x9f465f(0x3c5))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3df),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x9f465f(0x166)](async(_0x159005,_0x2821ef,_0x472d41)=>{const _0x23be6f=a2_0x9f465f,_0x43b2ab=new UseCommand(),_0x269033=program[_0x23be6f(0x2b4)](),_0x3167aa=[];if(_0x159005)_0x3167aa['push'](_0x159005);if(_0x2821ef)_0x3167aa[_0x23be6f(0x3e9)](_0x2821ef);const _0x32e9d5=_0x159005===_0x23be6f(0x1b6),_0x597070=_0x32e9d5?await createTDXInstance(_0x269033):null,_0x8c8fb=await _0x43b2ab[_0x23be6f(0x384)]({'options':{..._0x269033,..._0x472d41},'args':_0x3167aa,'tdx':_0x597070});gracefulExit(_0x8c8fb);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x10a))[a2_0x9f465f(0x207)](a2_0x9f465f(0x283))[a2_0x9f465f(0x166)](async _0x6c4013=>{const _0x56d243=a2_0x9f465f,_0x477be2=new StatusCommand(),_0x9b563c=program[_0x56d243(0x2b4)](),_0x4d58db=await createTDXInstance(_0x9b563c),_0x1ef170=await _0x477be2[_0x56d243(0x384)]({'options':{..._0x9b563c,..._0x6c4013},'args':[],'tdx':_0x4d58db});gracefulExit(_0x1ef170);}),program['command'](a2_0x9f465f(0x22b))[a2_0x9f465f(0x207)](a2_0x9f465f(0x339))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),'Check\x20for\x20updates\x20without\x20installing')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x37c),a2_0x9f465f(0x128))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x354),a2_0x9f465f(0x181))[a2_0x9f465f(0x166)](async(_0x24a0f3,_0x356cb2)=>{const _0x4b349b=a2_0x9f465f,_0x4dee59=new UpgradeCommand(),_0x47334c=program[_0x4b349b(0x2b4)](),_0x833665=await _0x4dee59[_0x4b349b(0x384)]({'options':{..._0x47334c,..._0x356cb2},'args':_0x24a0f3?[_0x24a0f3]:[],'tdx':null});gracefulExit(_0x833665);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x21f))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2f9))['option']('--default','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x9f465f(0x166)](async(_0x32c2f0,_0x1eba34)=>{const _0x2d8bfe=a2_0x9f465f,_0x1d2f61=new UnsetCommand(),_0x734d83=program[_0x2d8bfe(0x2b4)](),_0xa8a04e=await _0x1d2f61['run']({'options':{..._0x734d83,..._0x1eba34},'args':[_0x32c2f0],'tdx':null});gracefulExit(_0xa8a04e);}),program[a2_0x9f465f(0x158)]('chats')[a2_0x9f465f(0x207)](a2_0x9f465f(0x34d))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x303),a2_0x9f465f(0x1ea))[a2_0x9f465f(0x166)](async _0x500809=>{const _0x3fd455=a2_0x9f465f,_0x1d170b=new ChatsCommand(),_0x32b03b=program[_0x3fd455(0x2b4)](),_0x3b3086=await createTDXInstance(_0x32b03b),_0x582b9a=await _0x1d170b['run']({'options':{..._0x32b03b,..._0x500809},'args':[],'tdx':_0x3b3086});gracefulExit(_0x582b9a);});const authCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x415))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1b8));async function runAuthStatusCommand(_0x365ff4){const _0x5d4036=a2_0x9f465f,_0x25191c=new AuthStatusCommand(),_0x2f076b=program[_0x5d4036(0x2b4)](),_0x10cdb4=await createTDXInstance(_0x2f076b),_0x36b4b1=await _0x25191c[_0x5d4036(0x384)]({'options':{..._0x2f076b,..._0x365ff4},'args':[],'tdx':_0x10cdb4});gracefulExit(_0x36b4b1);}authCmd[a2_0x9f465f(0x166)](runAuthStatusCommand),authCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x10a))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x9f465f(0x166)](runAuthStatusCommand);async function authSetupAction(_0x16d925){const _0x2ec12d=a2_0x9f465f,_0x1826ce=new AuthSetupCommand(),_0x4748a7=program[_0x2ec12d(0x2b4)](),_0x394f03=await createTDXInstance(_0x4748a7),_0x332d15=await _0x1826ce[_0x2ec12d(0x384)]({'options':{..._0x4748a7,..._0x16d925},'args':[],'tdx':_0x394f03});gracefulExit(_0x332d15);}authCmd[a2_0x9f465f(0x158)]('setup')[a2_0x9f465f(0x207)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3bc),'Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login')[a2_0x9f465f(0x3af)]('after',a2_0x9f465f(0x18a))['action'](authSetupAction),authCmd[a2_0x9f465f(0x158)]('login',{'hidden':!![]})[a2_0x9f465f(0x23e)]('--account-name\x20<name>',a2_0x9f465f(0x116))[a2_0x9f465f(0x166)](authSetupAction),authCmd['command'](a2_0x9f465f(0x157))[a2_0x9f465f(0x207)](a2_0x9f465f(0x182))['addHelpText']('after',a2_0x9f465f(0x284))['action'](async _0x124b0d=>{const _0x1d56cf=a2_0x9f465f,_0xb0c2bd=new AuthClearCommand(),_0x4db74c=program[_0x1d56cf(0x2b4)](),_0x48ebb2=await _0xb0c2bd['run']({'options':{..._0x4db74c,..._0x124b0d},'args':[],'tdx':null});gracefulExit(_0x48ebb2);});const userCmd=program['command']('user')[a2_0x9f465f(0x207)](a2_0x9f465f(0x360)),userListAction=async _0x2cf6d8=>{const _0x433ab2=a2_0x9f465f,_0x19545a=new UserListCommand(),_0xa76934=program[_0x433ab2(0x2b4)](),_0x1b93a6=await createTDXInstance(_0xa76934),_0x385810=await _0x19545a[_0x433ab2(0x384)]({'options':{..._0xa76934,..._0x2cf6d8},'args':[],'tdx':_0x1b93a6});gracefulExit(_0x385810);};userCmd[a2_0x9f465f(0x166)](async _0x222bc3=>{const _0xbb4078=a2_0x9f465f,_0x2fc85b=new UserCommand(),_0x569e85=program['opts'](),_0x7d2f12=await createTDXInstance(_0x569e85),_0x5ae645=await _0x2fc85b[_0xbb4078(0x384)]({'options':{..._0x569e85,..._0x222bc3},'args':[],'tdx':_0x7d2f12});gracefulExit(_0x5ae645);}),userCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1a8))[a2_0x9f465f(0x166)](userListAction),program[a2_0x9f465f(0x158)]('users')[a2_0x9f465f(0x207)](a2_0x9f465f(0x22e))[a2_0x9f465f(0x166)](userListAction);const policyCmd=program['command']('policy')[a2_0x9f465f(0x207)](a2_0x9f465f(0x353));policyCmd['action'](async _0x57b007=>{const _0x2beb93=a2_0x9f465f,_0x3114e6=new PolicyCommand(),_0x40f34f=program[_0x2beb93(0x2b4)](),_0x261782=await createTDXInstance(_0x40f34f),_0x5e179e=await _0x3114e6[_0x2beb93(0x384)]({'options':{..._0x40f34f,..._0x57b007},'args':[],'tdx':_0x261782});gracefulExit(_0x5e179e);}),policyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b6))['description'](a2_0x9f465f(0x26d))[a2_0x9f465f(0x166)](async _0x3714aa=>{const _0x49fdaf=a2_0x9f465f,_0x3a9135=new PolicyListCommand(),_0x2c243b=program[_0x49fdaf(0x2b4)](),_0x1c7fb4=await createTDXInstance(_0x2c243b),_0x4f2289=await _0x3a9135['run']({'options':{..._0x2c243b,..._0x3714aa},'args':[],'tdx':_0x1c7fb4});gracefulExit(_0x4f2289);}),policyCmd['command'](a2_0x9f465f(0x144))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1b4))[a2_0x9f465f(0x166)](async(_0x59dd7f,_0x8555eb)=>{const _0x57e517=a2_0x9f465f,_0x2be5e9=new PolicyShowCommand(),_0x6728ac=program[_0x57e517(0x2b4)](),_0x3806c9=await createTDXInstance(_0x6728ac),_0x48ed76=await _0x2be5e9[_0x57e517(0x384)]({'options':{..._0x6728ac,..._0x8555eb},'args':[_0x59dd7f],'tdx':_0x3806c9});gracefulExit(_0x48ed76);}),program[a2_0x9f465f(0x158)]('profiles')[a2_0x9f465f(0x207)](a2_0x9f465f(0x234))[a2_0x9f465f(0x166)](async _0xb499c3=>{const _0x3f52f3=a2_0x9f465f,_0x48d871=new ProfilesCommand(),_0x459511=program[_0x3f52f3(0x2b4)](),_0x33d10e=await _0x48d871[_0x3f52f3(0x384)]({'options':{..._0x459511,..._0xb499c3},'args':[],'tdx':null});gracefulExit(_0x33d10e);});const profileCmd=program['command'](a2_0x9f465f(0x312))[a2_0x9f465f(0x207)](a2_0x9f465f(0x16d));profileCmd[a2_0x9f465f(0x166)](()=>{const _0x2a5c7f=a2_0x9f465f;profileCmd[_0x2a5c7f(0x26c)]();});const profileListAction=async _0xa64b7e=>{const _0x5b5bab=a2_0x9f465f,_0x328bfb=new ProfilesCommand(),_0x328e5f=program[_0x5b5bab(0x2b4)](),_0x198b8d=await _0x328bfb[_0x5b5bab(0x384)]({'options':{..._0x328e5f,..._0xa64b7e},'args':[],'tdx':null});gracefulExit(_0x198b8d);};profileCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x234))[a2_0x9f465f(0x166)](profileListAction),profileCmd[a2_0x9f465f(0x158)]('create\x20[name]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x2e6))['option']('--account-name\x20<name>','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login')['option'](a2_0x9f465f(0x3a3),a2_0x9f465f(0xe5))['addHelpText']('after','\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\x20\x20$\x20tdx\x20profile\x20create\x20prod\x20-f\x20\x20\x20\x20\x20\x20#\x20Overwrite\x20existing\x20\x27prod\x27\x20profile\x0a')['action'](async(_0x164ac3,_0x54facd)=>{const _0x2da514=a2_0x9f465f,_0x1967e8=new ProfileCreateCommand(),_0x321c0d=program[_0x2da514(0x2b4)](),_0x1d73e4=await _0x1967e8[_0x2da514(0x384)]({'options':{..._0x321c0d,..._0x54facd},'args':_0x164ac3?[_0x164ac3]:[],'tdx':null});gracefulExit(_0x1d73e4);});async function profileDeleteAction(_0x54ab73,_0x2e6dde){const _0x57a995=a2_0x9f465f,_0x5b9775=new ProfileDeleteCommand(),_0x55e90d=program[_0x57a995(0x2b4)](),_0x35d23=await _0x5b9775[_0x57a995(0x384)]({'options':{..._0x55e90d,..._0x2e6dde},'args':[_0x54ab73],'tdx':null});gracefulExit(_0x35d23);}profileCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x11a))[a2_0x9f465f(0x207)](a2_0x9f465f(0x272))['addHelpText'](a2_0x9f465f(0x21c),a2_0x9f465f(0x13c))[a2_0x9f465f(0x166)](profileDeleteAction),profileCmd['command'](a2_0x9f465f(0x311),{'hidden':!![]})[a2_0x9f465f(0x166)](profileDeleteAction),profileCmd[a2_0x9f465f(0x158)]('set\x20<key=value>')['description'](a2_0x9f465f(0x2cc))['addHelpText'](a2_0x9f465f(0x21c),a2_0x9f465f(0x155))['action'](async(_0x3cfa87,_0x115cab)=>{const _0x620d6a=a2_0x9f465f,_0xcc8ffe=new ProfileSetCommand(),_0x55676a=program[_0x620d6a(0x2b4)](),_0x39858b=await _0xcc8ffe['run']({'options':{..._0x55676a,..._0x115cab},'args':[_0x3cfa87],'tdx':null});gracefulExit(_0x39858b);}),profileCmd[a2_0x9f465f(0x158)]('use\x20<name>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x2e9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3df),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x9f465f(0x3af)]('after',a2_0x9f465f(0x1ad))[a2_0x9f465f(0x166)](async(_0x84a067,_0xcb7103)=>{const _0x313af8=a2_0x9f465f,_0x4429a1=new ProfileUseCommand(),_0x222f33=program[_0x313af8(0x2b4)](),_0x17bb82=await _0x4429a1['run']({'options':{..._0x222f33,..._0xcb7103},'args':[_0x84a067],'tdx':null});gracefulExit(_0x17bb82);});const engageCmd=program[a2_0x9f465f(0x158)]('engage')[a2_0x9f465f(0x207)](a2_0x9f465f(0x241)),createEngageAction=_0x1cda75=>{return async(_0x46df40,_0xd60cd7)=>{const _0x453cbb=a2_0x23b4,_0x22fb8e=new _0x1cda75(),_0x1e9817=program[_0x453cbb(0x2b4)](),_0x2b8819=await createTDXInstance(_0x1e9817),_0x2e6523=await _0x22fb8e[_0x453cbb(0x384)]({'options':{..._0x1e9817,..._0xd60cd7},'args':[_0x46df40],'tdx':_0x2b8819});gracefulExit(_0x2e6523);};},createEngageNoArgAction=_0x43fe26=>{return async _0xdbbf3b=>{const _0x8dfd4d=a2_0x23b4,_0x21d972=new _0x43fe26(),_0x3d0cab=program[_0x8dfd4d(0x2b4)](),_0x2622c4=await createTDXInstance(_0x3d0cab),_0x57e05a=await _0x21d972[_0x8dfd4d(0x384)]({'options':{..._0x3d0cab,..._0xdbbf3b},'args':[],'tdx':_0x2622c4});gracefulExit(_0x57e05a);};},createEngageListAction=_0x1a9ff5=>{return async(_0x5ce244,_0x5caf5a)=>{const _0x2009a6=a2_0x23b4,_0x311e14=new _0x1a9ff5(),_0xf8ab15=program[_0x2009a6(0x2b4)](),_0x465412=await createTDXInstance(_0xf8ab15),_0x41e9e4=await _0x311e14[_0x2009a6(0x384)]({'options':{..._0xf8ab15,..._0x5caf5a},'args':_0x5ce244?[_0x5ce244]:[],'tdx':_0x465412});gracefulExit(_0x41e9e4);};},campaignCmd=engageCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x183))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1d4));campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x108))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e3),a2_0x9f465f(0x343))['option'](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x166)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x9f465f(0x158)]('campaigns\x20[pattern]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x17b))[a2_0x9f465f(0x23e)]('--type\x20<type>',a2_0x9f465f(0x108))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e3),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option']('--workspace\x20<name>',a2_0x9f465f(0x35f))[a2_0x9f465f(0x166)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f9))[a2_0x9f465f(0x207)](a2_0x9f465f(0x38b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),'Workspace\x20name')['option'](a2_0x9f465f(0xee),a2_0x9f465f(0x3cc))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x9f465f(0x158)]('create')['description'](a2_0x9f465f(0x133))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x338),'Campaign\x20name')[a2_0x9f465f(0x29e)](a2_0x9f465f(0x12c),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))['option'](a2_0x9f465f(0x119),a2_0x9f465f(0x208))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x170),a2_0x9f465f(0x2ea))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1cd),a2_0x9f465f(0x198))['option'](a2_0x9f465f(0x1f7),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x255),a2_0x9f465f(0x3dd))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2de),a2_0x9f465f(0x220))[a2_0x9f465f(0x166)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x9f465f(0x158)]('update\x20<name-or-id>')['description']('Update\x20a\x20campaign')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x338),a2_0x9f465f(0x276))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x119),a2_0x9f465f(0x208))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x170),a2_0x9f465f(0x2ea))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1cd),a2_0x9f465f(0x198))['option'](a2_0x9f465f(0x1f7),a2_0x9f465f(0x18e))['option'](a2_0x9f465f(0x255),a2_0x9f465f(0x3dd))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2de),a2_0x9f465f(0x220))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x9f465f(0x158)]('delete\x20<name-or-id>')['description'](a2_0x9f465f(0x242))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x330))[a2_0x9f465f(0x207)]('Launch\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x9f465f(0x35f))[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3d8))[a2_0x9f465f(0x207)](a2_0x9f465f(0x146))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x9f465f(0x158)]('resume\x20<name-or-id>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x308))['option'](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x15e))['description']('Duplicate\x20a\x20campaign')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x32a))[a2_0x9f465f(0x207)]('Pull\x20campaigns\x20to\x20YAML\x20files')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x338),a2_0x9f465f(0x39c))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x108))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x1d7))[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x280))[a2_0x9f465f(0x207)](a2_0x9f465f(0x210))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x357))[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignPushCommand)),campaignCmd['command'](a2_0x9f465f(0x318))[a2_0x9f465f(0x207)]('Validate\x20campaign\x20YAML\x20files\x20locally')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1d6),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x9f465f(0x166)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x260))['description'](a2_0x9f465f(0xf4));alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x36f))[a2_0x9f465f(0x23e)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e3),a2_0x9f465f(0x204))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x166)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x247))[a2_0x9f465f(0x207)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x9f465f(0x23e)]('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')['requiredOption'](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x166)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f9))[a2_0x9f465f(0x207)](a2_0x9f465f(0x37b))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x23e)]('--full',a2_0x9f465f(0x3cc))['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)]('create')[a2_0x9f465f(0x207)]('Create\x20a\x20new\x20always-on\x20campaign')['requiredOption'](a2_0x9f465f(0x338),a2_0x9f465f(0x331))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x1fa))[a2_0x9f465f(0x29e)]('--workspace\x20<name>',a2_0x9f465f(0x362))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x119),a2_0x9f465f(0x208))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x170),a2_0x9f465f(0x3d3))[a2_0x9f465f(0x23e)]('--enable-utm-tracking','Enable\x20UTM\x20tracking')[a2_0x9f465f(0x166)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x231))['description'](a2_0x9f465f(0x114))['requiredOption'](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x338),'New\x20campaign\x20name')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x119),a2_0x9f465f(0x208))['option']('--segment\x20<path>',a2_0x9f465f(0x3d3))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x278),'Enable\x20UTM\x20tracking')[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)]('delete\x20<name-or-id>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x3dc))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))['option'](a2_0x9f465f(0x3e0),a2_0x9f465f(0x35b))[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x330))['description'](a2_0x9f465f(0x397))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3d8))[a2_0x9f465f(0x207)](a2_0x9f465f(0x139))[a2_0x9f465f(0x29e)]('--workspace\x20<name>',a2_0x9f465f(0x362))[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x179))['description'](a2_0x9f465f(0x1ae))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x368))['description'](a2_0x9f465f(0x2a2))[a2_0x9f465f(0x29e)]('--workspace\x20<name>',a2_0x9f465f(0x362))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e0),a2_0x9f465f(0x35b))[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x15e))[a2_0x9f465f(0x207)](a2_0x9f465f(0x219))['requiredOption'](a2_0x9f465f(0x25d),a2_0x9f465f(0x362))[a2_0x9f465f(0x29e)]('--name\x20<name>','Name\x20for\x20the\x20duplicated\x20campaign')[a2_0x9f465f(0x166)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x9f465f(0x325))[a2_0x9f465f(0x207)](a2_0x9f465f(0x172));templateCmd['command'](a2_0x9f465f(0x380))['description'](a2_0x9f465f(0x19c))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x9f465f(0x158)]('templates\x20[pattern]')['description'](a2_0x9f465f(0x173))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x166)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x9f465f(0x158)]('show\x20<name-or-id>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x17a))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x9f465f(0x23e)](a2_0x9f465f(0xee),a2_0x9f465f(0x3cc))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x20f))[a2_0x9f465f(0x207)](a2_0x9f465f(0x294))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x338),'Template\x20name')[a2_0x9f465f(0x29e)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2cf),a2_0x9f465f(0x24e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3a2),'Read\x20HTML\x20template\x20from\x20file')['option']('--workspace\x20<name>',a2_0x9f465f(0x362))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xe1),a2_0x9f465f(0x123))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x106),a2_0x9f465f(0x19f),_0x127531=>{const _0xb4bd8e=a2_0x9f465f;if(![_0xb4bd8e(0x1de),_0xb4bd8e(0x273)]['includes'](_0x127531))throw new SDKError(ErrorCode[_0xb4bd8e(0x2b2)],_0xb4bd8e(0x19d)+_0x127531+'.\x20Must\x20be\x20beefree\x20or\x20grapesjs');return _0x127531;})[a2_0x9f465f(0x166)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x231))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3bd))[a2_0x9f465f(0x23e)]('--workspace\x20<name>',a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x338),a2_0x9f465f(0x2fe))['option'](a2_0x9f465f(0x197),'Email\x20subject\x20template')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2cf),a2_0x9f465f(0x24e))['option'](a2_0x9f465f(0x3a2),'Read\x20HTML\x20template\x20from\x20file')['option'](a2_0x9f465f(0xe1),'Plaintext\x20template\x20content')[a2_0x9f465f(0x166)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x317))[a2_0x9f465f(0x207)](a2_0x9f465f(0x250))[a2_0x9f465f(0x23e)]('--workspace\x20<name>',a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x338),a2_0x9f465f(0x130))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x23f),a2_0x9f465f(0x35b))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x9f465f(0x166)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x9f465f(0x158)]('push\x20[target]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x3aa))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x23f),'Skip\x20confirmation\x20prompt')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x357))[a2_0x9f465f(0x166)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x318))['description'](a2_0x9f465f(0x3b1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1d6),'Show\x20all\x20files\x20including\x20valid\x20ones')['action'](createEngageAction(EngageTemplateValidateCommand)),templateCmd['command'](a2_0x9f465f(0x2a1))[a2_0x9f465f(0x207)](a2_0x9f465f(0x253))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e0),a2_0x9f465f(0x35b))[a2_0x9f465f(0x166)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x9f465f(0x158)]('workspace')[a2_0x9f465f(0x207)]('Workspace\x20management');workspaceCmd['command'](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2db))[a2_0x9f465f(0x166)](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command'](a2_0x9f465f(0x3bb))[a2_0x9f465f(0x207)](a2_0x9f465f(0x11e))[a2_0x9f465f(0x166)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f9))[a2_0x9f465f(0x207)](a2_0x9f465f(0x141))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xee),a2_0x9f465f(0x3cc))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x20f))['description'](a2_0x9f465f(0x395))[a2_0x9f465f(0x29e)]('--name\x20<name>',a2_0x9f465f(0x35f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x119),'Workspace\x20description')[a2_0x9f465f(0x166)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x231))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1aa))[a2_0x9f465f(0x23e)]('--name\x20<name>',a2_0x9f465f(0x2f6))[a2_0x9f465f(0x23e)]('--description\x20<desc>',a2_0x9f465f(0x25e))[a2_0x9f465f(0x166)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2a1))[a2_0x9f465f(0x207)](a2_0x9f465f(0x140))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3e0),a2_0x9f465f(0x35b))[a2_0x9f465f(0x166)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x25f))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2d9))[a2_0x9f465f(0x166)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3fb))[a2_0x9f465f(0x207)](a2_0x9f465f(0x267));deliveryCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2d8))[a2_0x9f465f(0x207)](a2_0x9f465f(0x21e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x25d),'Workspace\x20name')[a2_0x9f465f(0x166)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x268))[a2_0x9f465f(0x207)](a2_0x9f465f(0x385)),connectionListAction=async _0x2b6bfa=>{const _0x149121=a2_0x9f465f,_0x51947e=new ConnectionListCommand(),_0x2341c6=program[_0x149121(0x2b4)](),_0x5fae02=await createTDXInstance(_0x2341c6),_0x4b6901=await _0x51947e[_0x149121(0x384)]({'options':{..._0x2341c6,..._0x2b6bfa},'args':[],'tdx':_0x5fae02});gracefulExit(_0x4b6901);};connectionCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3b6))['description']('List\x20all\x20data\x20connections')['action'](connectionListAction),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x1db),{'hidden':!![]})['description'](a2_0x9f465f(0x101))[a2_0x9f465f(0x166)](connectionListAction),connectionCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x393))['description']('Show\x20connection\x20details\x20by\x20name')[a2_0x9f465f(0x166)](async(_0x4f5321,_0x7584f4)=>{const _0x52e313=a2_0x9f465f,_0x1277bb=new ConnectionShowCommand(),_0x3d4d8c=program[_0x52e313(0x2b4)](),_0x48c56b=await createTDXInstance(_0x3d4d8c),_0x23d4ce=await _0x1277bb[_0x52e313(0x384)]({'options':{..._0x3d4d8c,..._0x7584f4},'args':[_0x4f5321],'tdx':_0x48c56b});gracefulExit(_0x23d4ce);}),connectionCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x19e))[a2_0x9f465f(0x207)](a2_0x9f465f(0x118))[a2_0x9f465f(0x166)](async(_0x38edbe,_0x574dec)=>{const _0x9d726=a2_0x9f465f,_0x119568=new ConnectionSchemaCommand(),_0xfea412=program['opts'](),_0x1a9c8c=await createTDXInstance(_0xfea412),_0x4361c4=await _0x119568[_0x9d726(0x384)]({'options':{..._0xfea412,..._0x574dec},'args':[_0x38edbe],'tdx':_0x1a9c8c});gracefulExit(_0x4361c4);}),connectionCmd['command'](a2_0x9f465f(0x3ca))[a2_0x9f465f(0x207)](a2_0x9f465f(0x295))[a2_0x9f465f(0x166)](async _0x106a17=>{const _0x35cbdb=a2_0x9f465f,_0x5859e9=new ConnectionTypesCommand(),_0x335c39=program[_0x35cbdb(0x2b4)](),_0x2ff440=await createTDXInstance(_0x335c39),_0x430320=await _0x5859e9[_0x35cbdb(0x384)]({'options':{..._0x335c39,..._0x106a17},'args':[],'tdx':_0x2ff440});gracefulExit(_0x430320);}),connectionCmd[a2_0x9f465f(0x158)]('settings\x20<type>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x238))['action'](async(_0xa19088,_0x379d24)=>{const _0x2e5192=a2_0x9f465f,_0x4f5492=new ConnectionSettingsCommand(),_0x29a163=program[_0x2e5192(0x2b4)](),_0x523364=await createTDXInstance(_0x29a163),_0x398609=await _0x4f5492[_0x2e5192(0x384)]({'options':{..._0x29a163,..._0x379d24},'args':[_0xa19088],'tdx':_0x523364});gracefulExit(_0x398609);});const casCmd=program['command'](a2_0x9f465f(0x378))[a2_0x9f465f(0x207)](a2_0x9f465f(0x313));casCmd['command'](a2_0x9f465f(0x3b6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x23d))[a2_0x9f465f(0x166)](async _0x2c1981=>{const _0x3d5ddb=a2_0x9f465f,_0x2dfb50=new CASListCommand(),_0x9cf0a6=program[_0x3d5ddb(0x2b4)](),_0x435e52=await createTDXInstance(_0x9cf0a6),_0x29daa3=await _0x2dfb50[_0x3d5ddb(0x384)]({'options':{..._0x9cf0a6,..._0x2c1981},'args':[],'tdx':_0x435e52});gracefulExit(_0x29daa3);}),casCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x34e))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3f0))[a2_0x9f465f(0x166)](async(_0xafe595,_0x18a925)=>{const _0x2be9a2=a2_0x9f465f,_0x513042=new CASDescCommand(),_0x2f87c4=program[_0x2be9a2(0x2b4)](),_0xe8a32b=await createTDXInstance(_0x2f87c4),_0x2c72ef=await _0x513042['run']({'options':{..._0x2f87c4,..._0x18a925},'args':_0xafe595?[_0xafe595]:[],'tdx':_0xe8a32b});gracefulExit(_0x2c72ef);}),casCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1ac))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1dc))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31e),a2_0x9f465f(0x323))[a2_0x9f465f(0x23e)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x9f465f(0x166)](async(_0x120b77,_0x28f89a)=>{const _0x1a92ce=a2_0x9f465f,_0xfcbe0a=new CASPullCommand(),_0x2ab6ab=program['opts'](),_0x4305dd=await createTDXInstance(_0x2ab6ab),_0x3e58e0=await _0xfcbe0a[_0x1a92ce(0x384)]({'options':{..._0x2ab6ab,..._0x28f89a},'args':_0x120b77?[_0x120b77]:[],'tdx':_0x4305dd});gracefulExit(_0x3e58e0);}),casCmd[a2_0x9f465f(0x158)]('push\x20[target]')['description']('Push\x20YAML\x20files\x20to\x20CAS\x20API')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x31d),a2_0x9f465f(0x3a5))[a2_0x9f465f(0x166)](async(_0x2249e0,_0x59c8a9)=>{const _0x29fb50=a2_0x9f465f,_0x5b203e=new CASPushCommand(),_0x5f0785=program['opts'](),_0x38cc19=await createTDXInstance(_0x5f0785),_0x3a1bc=await _0x5b203e[_0x29fb50(0x384)]({'options':{..._0x5f0785,..._0x59c8a9},'args':_0x2249e0?[_0x2249e0]:[],'tdx':_0x38cc19});gracefulExit(_0x3a1bc);}),casCmd[a2_0x9f465f(0x158)]('preview\x20<segment_name>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x178))[a2_0x9f465f(0x23e)]('--audience\x20<name>','Composable\x20audience\x20name')[a2_0x9f465f(0x166)](async(_0x427d1d,_0x3e23fd)=>{const _0x1589a9=a2_0x9f465f,_0x9ebb6a=new CASPreviewCommand(),_0x291e2f=program[_0x1589a9(0x2b4)](),_0x176105=await createTDXInstance(_0x291e2f),_0x3cf3aa=await _0x9ebb6a['run']({'options':{..._0x291e2f,..._0x3e23fd},'args':[_0x427d1d,_0x3e23fd[_0x1589a9(0x3e5)]],'tdx':_0x176105});gracefulExit(_0x3cf3aa);});const casSgCmd=casCmd[a2_0x9f465f(0x158)]('sg')[a2_0x9f465f(0x207)]('Composable\x20segment\x20commands');casSgCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x28d))[a2_0x9f465f(0x207)](a2_0x9f465f(0x352))[a2_0x9f465f(0x166)](async(_0x257b02,_0x3f5c9a)=>{const _0x541f61=a2_0x9f465f,_0x4db571=new CASSegmentListCommand(),_0x109c93=program['opts'](),_0x4e75f3=await createTDXInstance(_0x109c93),_0x1ed482=await _0x4db571[_0x541f61(0x384)]({'options':{..._0x109c93,..._0x3f5c9a},'args':_0x257b02?[_0x257b02]:[],'tdx':_0x4e75f3});gracefulExit(_0x1ed482);});const journeyCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x300))['description'](a2_0x9f465f(0xf7)),journeyListAction=async(_0x2f6e6e,_0x54e0a8)=>{const _0x57b316=a2_0x9f465f,_0x53dc76=new JourneyListCommand(),_0x1ecf1e=program['opts'](),_0x4433e4=await createTDXInstance(_0x1ecf1e),_0x4675b4=await _0x53dc76[_0x57b316(0x384)]({'options':{..._0x1ecf1e,..._0x54e0a8},'args':_0x2f6e6e?[_0x2f6e6e]:[],'tdx':_0x4433e4});gracefulExit(_0x4675b4);};journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1cc))[a2_0x9f465f(0x166)](journeyListAction),journeyCmd[a2_0x9f465f(0x158)]('view\x20<name-or-path>')[a2_0x9f465f(0x207)]('Show\x20journey\x20details')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12f),a2_0x9f465f(0x132))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x344),a2_0x9f465f(0x176))[a2_0x9f465f(0x166)](async(_0xec3579,_0x25c210)=>{const _0x3a0817=new JourneyViewCommand(),_0x1e54a5=program['opts'](),_0x16ec88=await createTDXInstance(_0x1e54a5),_0x2ba08d=await _0x3a0817['run']({'options':{..._0x1e54a5,..._0x25c210},'args':[_0xec3579],'tdx':_0x16ec88});gracefulExit(_0x2ba08d);}),journeyCmd['command'](a2_0x9f465f(0x326))[a2_0x9f465f(0x207)]('Show\x20journey\x20statistics')[a2_0x9f465f(0x23e)]('--stage\x20<name>',a2_0x9f465f(0x1a9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ba),a2_0x9f465f(0x203))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x224),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option'](a2_0x9f465f(0x212),a2_0x9f465f(0x3ef))[a2_0x9f465f(0x166)](async(_0x5775a0,_0xa5f890)=>{const _0x3359af=a2_0x9f465f,_0x2dc1ad=new JourneyStatsCommand(),_0x5d2f9d=program[_0x3359af(0x2b4)](),_0x513935=await createTDXInstance(_0x5d2f9d),_0x29dbac=await _0x2dc1ad[_0x3359af(0x384)]({'options':{..._0x5d2f9d,..._0xa5f890},'args':[_0x5775a0],'tdx':_0x513935});gracefulExit(_0x29dbac);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x129))[a2_0x9f465f(0x207)]('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x12c),a2_0x9f465f(0x11d))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ba),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x224),a2_0x9f465f(0x3ab))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2c6),a2_0x9f465f(0x14f),_0x3c10c9=>{const _0x12fa25=a2_0x9f465f,_0x25a465=parseInt(_0x3c10c9,0xa);if(isNaN(_0x25a465))throw new Error(_0x12fa25(0x314)+_0x3c10c9+'\x22.\x20Must\x20be\x20a\x20number.');return _0x25a465;})[a2_0x9f465f(0x166)](async(_0x33156b,_0x23f3ff)=>{const _0x25a1dd=a2_0x9f465f,_0x49afde=new JourneyTrafficCommand(),_0xce56c=program[_0x25a1dd(0x2b4)](),_0x1b1b1c=await createTDXInstance(_0xce56c),_0x520c25=await _0x49afde[_0x25a1dd(0x384)]({'options':{..._0xce56c,..._0x23f3ff},'args':[_0x33156b],'tdx':_0x1b1b1c});gracefulExit(_0x520c25);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x287))['description'](a2_0x9f465f(0x3fd))[a2_0x9f465f(0x166)](async(_0x262abd,_0x4f257c)=>{const _0x4fa4a4=a2_0x9f465f,_0x2b860a=new JourneyPauseCommand(),_0x28f22a=program[_0x4fa4a4(0x2b4)](),_0x4c9b96=await createTDXInstance(_0x28f22a),_0x9e2719=await _0x2b860a['run']({'options':{..._0x28f22a,..._0x4f257c},'args':[_0x262abd],'tdx':_0x4c9b96});gracefulExit(_0x9e2719);}),journeyCmd['command'](a2_0x9f465f(0x3a0))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ad))[a2_0x9f465f(0x166)](async(_0x58875d,_0x337f9e)=>{const _0x18a50d=a2_0x9f465f,_0x2fc10d=new JourneyResumeCommand(),_0xf38447=program[_0x18a50d(0x2b4)](),_0x1fbb30=await createTDXInstance(_0xf38447),_0x348f85=await _0x2fc10d[_0x18a50d(0x384)]({'options':{..._0xf38447,..._0x337f9e},'args':[_0x58875d],'tdx':_0x1fbb30});gracefulExit(_0x348f85);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1ac))[a2_0x9f465f(0x207)](a2_0x9f465f(0x103))['option'](a2_0x9f465f(0x31d),a2_0x9f465f(0x10d))['action'](async(_0x59cf5a,_0x3b6b18)=>{const _0x36b246=a2_0x9f465f,_0x2a9114=new JourneyPullCommand(),_0x59fae3=program[_0x36b246(0x2b4)](),_0x1c5d9b=await createTDXInstance(_0x59fae3),_0x28a030=await _0x2a9114[_0x36b246(0x384)]({'options':{..._0x59fae3,..._0x3b6b18},'args':_0x59cf5a?[_0x59cf5a]:[],'tdx':_0x1c5d9b});gracefulExit(_0x28a030);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x280))[a2_0x9f465f(0x207)](a2_0x9f465f(0x2ed))['action'](async(_0x4bfccd,_0x35830f)=>{const _0x5b0b22=a2_0x9f465f,_0x37705=new JourneyPushCommand(),_0x2f451d=program[_0x5b0b22(0x2b4)](),_0x1eb4f=await createTDXInstance(_0x2f451d),_0x4df043=await _0x37705[_0x5b0b22(0x384)]({'options':{..._0x2f451d,..._0x35830f},'args':_0x4bfccd?[_0x4bfccd]:[],'tdx':_0x1eb4f});gracefulExit(_0x4df043);}),journeyCmd['command'](a2_0x9f465f(0x117))[a2_0x9f465f(0x207)]('Show\x20journey\x20table\x20column-to-step\x20mapping')[a2_0x9f465f(0x166)](async(_0x34c336,_0xd22f33)=>{const _0x3c7da7=a2_0x9f465f,_0x325ace=new JourneyColumnsCommand(),_0x56f75c=program[_0x3c7da7(0x2b4)](),_0x414152=await createTDXInstance(_0x56f75c),_0x47b769=await _0x325ace[_0x3c7da7(0x384)]({'options':{..._0x56f75c,..._0xd22f33},'args':[_0x34c336],'tdx':_0x414152});gracefulExit(_0x47b769);}),journeyCmd['command'](a2_0x9f465f(0x30d))[a2_0x9f465f(0x207)](a2_0x9f465f(0x370))[a2_0x9f465f(0x166)](async(_0x3900bd,_0x43ace9)=>{const _0x24d565=a2_0x9f465f,_0x31b3e0=new JourneyActivationsCommand(),_0x396ede=program[_0x24d565(0x2b4)](),_0x2ed5ea=await createTDXInstance(_0x396ede),_0x51258b=await _0x31b3e0[_0x24d565(0x384)]({'options':{..._0x396ede,..._0x43ace9},'args':[_0x3900bd],'tdx':_0x2ed5ea});gracefulExit(_0x51258b);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x29b))['description']('List\x20all\x20versions\x20of\x20a\x20journey')[a2_0x9f465f(0x166)](async(_0x24b2dc,_0x5010c9)=>{const _0x160aa8=a2_0x9f465f,_0x4c3d20=new JourneyVersionsCommand(),_0x29f8a5=program[_0x160aa8(0x2b4)](),_0x38d099=await createTDXInstance(_0x29f8a5),_0x1445eb=await _0x4c3d20[_0x160aa8(0x384)]({'options':{..._0x29f8a5,..._0x5010c9},'args':[_0x24b2dc],'tdx':_0x38d099});gracefulExit(_0x1445eb);});const journeyVersionCmd=journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1fc))[a2_0x9f465f(0x207)]('Journey\x20version\x20management');journeyVersionCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x12a))['description'](a2_0x9f465f(0xec))[a2_0x9f465f(0x166)](async(_0x310a28,_0x23e64c)=>{const _0x302c38=a2_0x9f465f,_0x953263=new JourneyVersionCreateCommand(),_0x256d58=program[_0x302c38(0x2b4)](),_0x4dd8ea=await createTDXInstance(_0x256d58),_0x29eb43=await _0x953263[_0x302c38(0x384)]({'options':{..._0x256d58,..._0x23e64c},'args':[_0x310a28],'tdx':_0x4dd8ea});gracefulExit(_0x29eb43);}),journeyVersionCmd[a2_0x9f465f(0x158)]('view\x20<name-or-path>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x150))[a2_0x9f465f(0x29e)](a2_0x9f465f(0x349),a2_0x9f465f(0x33f))[a2_0x9f465f(0x166)](async(_0x5ba31d,_0x156222)=>{const _0x10a29e=a2_0x9f465f,_0x3e7c93=new JourneyVersionViewCommand(),_0x119534=program[_0x10a29e(0x2b4)](),_0x42ed8f=await createTDXInstance(_0x119534),_0x2c03f7=await _0x3e7c93[_0x10a29e(0x384)]({'options':{..._0x119534,..._0x156222},'args':[_0x5ba31d],'tdx':_0x42ed8f});gracefulExit(_0x2c03f7);}),journeyCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x318))[a2_0x9f465f(0x207)](a2_0x9f465f(0x3a4))[a2_0x9f465f(0x166)](async(_0x105a29,_0x1cbe9c)=>{const _0x3615a7=new JourneyValidateCommand(),_0x1478cf=program['opts'](),_0x526e69=await createTDXInstance(_0x1478cf),_0x246acd=await _0x3615a7['run']({'options':{..._0x1478cf,..._0x1cbe9c},'args':_0x105a29?[_0x105a29]:[],'tdx':_0x526e69});gracefulExit(_0x246acd);}),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x379))[a2_0x9f465f(0x207)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x9f465f(0x166)](journeyListAction);const agentSyncCmd=program[a2_0x9f465f(0x158)]('agent')['description'](a2_0x9f465f(0x328));agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x2e7))[a2_0x9f465f(0x207)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x9f465f(0x23e)]('-o,\x20--output\x20<dir>','Output\x20directory')['option'](a2_0x9f465f(0x3a3),a2_0x9f465f(0x1ff))['option'](a2_0x9f465f(0x39b),a2_0x9f465f(0x2cb))['action'](async(_0x2a75d1,_0x24d4f6,_0x365ff0)=>{const _0xda64f0=a2_0x9f465f,_0x1e4920=new AgentPullCommand(),_0x3dad48=program[_0xda64f0(0x2b4)](),_0x2af5ad=await createTDXInstance(_0x3dad48),_0x169ba6=[];if(_0x2a75d1)_0x169ba6[_0xda64f0(0x3e9)](_0x2a75d1);if(_0x24d4f6)_0x169ba6[_0xda64f0(0x3e9)](_0x24d4f6);const _0x540bc8=await _0x1e4920[_0xda64f0(0x384)]({'options':{..._0x3dad48,..._0x365ff0},'args':_0x169ba6,'tdx':_0x2af5ad});gracefulExit(_0x540bc8);}),agentSyncCmd[a2_0x9f465f(0x158)]('push\x20[path]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x2c3))['option'](a2_0x9f465f(0x3a3),'Push\x20without\x20confirmation')[a2_0x9f465f(0x166)](async(_0xfd3c0a,_0x447481)=>{const _0x127e12=a2_0x9f465f,_0x55ba40=new AgentPushCommand(),_0x10c00d=program[_0x127e12(0x2b4)](),_0x4695f8=await createTDXInstance(_0x10c00d),_0x11956d=await _0x55ba40[_0x127e12(0x384)]({'options':{..._0x10c00d,..._0x447481},'args':_0xfd3c0a?[_0xfd3c0a]:[],'tdx':_0x4695f8});gracefulExit(_0x11956d);}),agentSyncCmd['command']('clone\x20[source]')[a2_0x9f465f(0x207)](a2_0x9f465f(0x20e))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x377),a2_0x9f465f(0x1e1))[a2_0x9f465f(0x166)](async(_0x29e4f4,_0x4b5cb4)=>{const _0x3fd931=a2_0x9f465f,_0x297c25=new AgentCloneCommand(),_0x149bbc=program[_0x3fd931(0x2b4)](),_0xad7924=await createTDXInstance(_0x149bbc),_0x4be8b0=await _0x297c25[_0x3fd931(0x384)]({'options':{..._0x149bbc,..._0x4b5cb4},'args':_0x29e4f4?[_0x29e4f4]:[],'tdx':_0xad7924});gracefulExit(_0x4be8b0);}),agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x202))['description']('Run\x20tests\x20for\x20an\x20LLM\x20agent')[a2_0x9f465f(0x23e)](a2_0x9f465f(0xea),a2_0x9f465f(0x20c))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x310),a2_0x9f465f(0x159))['option'](a2_0x9f465f(0x31d),a2_0x9f465f(0x364))['option'](a2_0x9f465f(0x3fc),'Generate\x20test\x20conversations\x20without\x20evaluation')['option'](a2_0x9f465f(0x149),a2_0x9f465f(0x3cd))[a2_0x9f465f(0x166)](async(_0x5379c4,_0x3412b4)=>{const _0x247f7e=a2_0x9f465f,_0x7712d9=new AgentTestCommand(),_0x2723ac=program[_0x247f7e(0x2b4)](),_0x3c1a92=await createTDXInstance(_0x2723ac),_0x38fa44=await _0x7712d9[_0x247f7e(0x384)]({'options':{..._0x2723ac,..._0x3412b4},'args':_0x5379c4?[_0x5379c4]:[],'tdx':_0x3c1a92});gracefulExit(_0x38fa44);}),agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x380))['description'](a2_0x9f465f(0x37d))['action'](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')['description']('Show\x20agent\x20details')[a2_0x9f465f(0x166)](async(_0x13512e,_0x271460)=>{const _0x4b9b5b=a2_0x9f465f,_0x459a31=new LLMAgentShowCommand(),_0x8084cc=program[_0x4b9b5b(0x2b4)](),_0x425ed1=await createTDXInstance(_0x8084cc),_0x5eaf7a=await _0x459a31[_0x4b9b5b(0x384)]({'options':{..._0x8084cc,..._0x271460},'args':[_0x13512e],'tdx':_0x425ed1});gracefulExit(_0x5eaf7a);}),agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x369))['description'](a2_0x9f465f(0x3f9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x30b),a2_0x9f465f(0x392))['option'](a2_0x9f465f(0xf8),a2_0x9f465f(0x299),a2_0x9f465f(0x1b0))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x27a),a2_0x9f465f(0x3f1))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x1c5),a2_0x9f465f(0x14c),'4')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3ed),a2_0x9f465f(0x12e),a2_0x9f465f(0x271))[a2_0x9f465f(0x166)](async(_0x6d3d2c,_0x891d05)=>{const _0x2620c4=a2_0x9f465f,_0x59c5d9=new LLMAgentCreateCommand(),_0x509217=program[_0x2620c4(0x2b4)](),_0x2fb88d=await createTDXInstance(_0x509217),_0x251e04=await _0x59c5d9['run']({'options':{..._0x509217,..._0x891d05},'args':[_0x6d3d2c],'tdx':_0x2fb88d});gracefulExit(_0x251e04);}),agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x3c7))[a2_0x9f465f(0x207)]('Update\x20an\x20existing\x20agent')['option'](a2_0x9f465f(0x2d0),a2_0x9f465f(0x1bc))['option']('--prompt\x20<text>',a2_0x9f465f(0x147))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2ff),a2_0x9f465f(0x28f))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x27a),a2_0x9f465f(0x3f1))[a2_0x9f465f(0x166)](async(_0x435505,_0x1a7826)=>{const _0x416279=a2_0x9f465f,_0x5a1bac=new LLMAgentUpdateCommand(),_0x18ef44=program[_0x416279(0x2b4)](),_0x218add=await createTDXInstance(_0x18ef44),_0x46e889=await _0x5a1bac[_0x416279(0x384)]({'options':{..._0x18ef44,..._0x1a7826},'args':[_0x435505],'tdx':_0x218add});gracefulExit(_0x46e889);}),agentSyncCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x1fd))[a2_0x9f465f(0x207)](a2_0x9f465f(0x340))[a2_0x9f465f(0x166)](async(_0x23ce7d,_0x2cfc6b)=>{const _0x45eae2=a2_0x9f465f,_0x5f4f02=new LLMAgentDeleteCommand(),_0x3f7004=program[_0x45eae2(0x2b4)](),_0x1e338f=await createTDXInstance(_0x3f7004),_0x2fa35a=await _0x5f4f02[_0x45eae2(0x384)]({'options':{..._0x3f7004,..._0x2cfc6b},'args':[_0x23ce7d],'tdx':_0x1e338f});gracefulExit(_0x2fa35a);});const workCmd=program[a2_0x9f465f(0x158)](a2_0x9f465f(0x1f6))[a2_0x9f465f(0x207)](a2_0x9f465f(0x37a));workCmd[a2_0x9f465f(0x23e)](a2_0x9f465f(0xe9),a2_0x9f465f(0x259))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3f5),'Include\x20all\x20items\x20(no\x20stale\x20filtering)')[a2_0x9f465f(0x166)](workSummaryAction),workCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x209))[a2_0x9f465f(0x207)]('Initialize\x20a\x20new\x20workspace')['option'](a2_0x9f465f(0x3da),'Link\x20workspace\x20to\x20a\x20GitHub\x20repository')[a2_0x9f465f(0x166)](workInitAction),workCmd[a2_0x9f465f(0x158)]('new\x20<title>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x10e))['option'](a2_0x9f465f(0x2d7),a2_0x9f465f(0x2e4),a2_0x9f465f(0x248))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x310),'Comma-separated\x20tags')['option'](a2_0x9f465f(0x2b0),'Priority\x20(critical,\x20high,\x20medium,\x20low)')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x195),a2_0x9f465f(0x1ec))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x190),a2_0x9f465f(0x246))['option']('--status\x20<status>',a2_0x9f465f(0x232))[a2_0x9f465f(0x23e)](a2_0x9f465f(0x2a7),'Assignee')['action'](workNewAction),workCmd[a2_0x9f465f(0x158)]('move\x20<name>\x20<status>')[a2_0x9f465f(0x207)]('Transition\x20a\x20task\x20to\x20a\x20new\x20status')['action'](workMoveAction),workCmd['command'](a2_0x9f465f(0x345))[a2_0x9f465f(0x207)](a2_0x9f465f(0x1d9))[a2_0x9f465f(0x23e)](a2_0x9f465f(0xe9),'Show\x20items\x20updated\x20within\x20N\x20days')[a2_0x9f465f(0x23e)](a2_0x9f465f(0x3f5),'Include\x20all\x20items\x20(no\x20stale\x20filtering)')[a2_0x9f465f(0x166)](workBoardAction),workCmd[a2_0x9f465f(0x158)]('show\x20<name>')[a2_0x9f465f(0x207)](a2_0x9f465f(0x13f))[a2_0x9f465f(0x166)](workShowAction),workCmd['command'](a2_0x9f465f(0x2aa))[a2_0x9f465f(0x207)](a2_0x9f465f(0x316))['action'](workLinksAction),workCmd[a2_0x9f465f(0x158)](a2_0x9f465f(0x168))[a2_0x9f465f(0x207)](a2_0x9f465f(0x329))[a2_0x9f465f(0x166)](workOpenAction),program[a2_0x9f465f(0x158)](a2_0x9f465f(0x3eb),{'hidden':!![]})[a2_0x9f465f(0x166)](()=>{const _0x5e9d47=a2_0x9f465f;function _0x17ff4f(_0xf7bcd8,_0xd89762){const _0x3859c8=a2_0x23b4,_0x2a46b7=[];for(const _0xcbe129 of _0xf7bcd8[_0x3859c8(0x1a6)]){if(_0xcbe129['_hidden'])continue;const _0x479b04=_0xd89762?_0xd89762+'\x20'+_0xcbe129[_0x3859c8(0x321)]():_0xcbe129['name'](),_0xf6e47e=_0x479b04[_0x3859c8(0x20b)]('\x20')[0x0],_0x4f646f=COMMAND_CATEGORIES['find'](_0x4f6147=>_0x4f6147[_0x3859c8(0x1a6)][_0x3859c8(0x337)](_0xf6e47e)),_0x2362a1=_0x4f646f?.['name']??'';if(_0xcbe129[_0x3859c8(0x1a6)][_0x3859c8(0x148)]>0x0)_0x2a46b7[_0x3859c8(0x3e9)](..._0x17ff4f(_0xcbe129,_0x479b04));else{const _0x1b219a=(_0xcbe129[_0x3859c8(0x309)]||[])['map'](_0x519f74=>{const _0x283878=_0x3859c8,_0x554895=_0x519f74[_0x283878(0x27d)]?_0x519f74[_0x283878(0x321)]()+_0x283878(0x1c8):_0x519f74[_0x283878(0x321)]();return _0x519f74[_0x283878(0x1f8)]?'<'+_0x554895+'>':'['+_0x554895+']';})['join']('\x20'),_0x4f43b1=_0xcbe129[_0x3859c8(0x266)][_0x3859c8(0x391)](_0x4f15ee=>!_0x4f15ee['hidden']&&_0x4f15ee[_0x3859c8(0x237)]!==_0x3859c8(0x15a))['map'](_0x4f4fee=>({'flags':_0x4f4fee[_0x3859c8(0x2b7)],'description':_0x4f4fee['description']}));_0x2a46b7['push']({'name':_0x479b04,'description':_0xcbe129[_0x3859c8(0x207)](),'group':_0x2362a1,'usage':_0x1b219a,'options':_0x4f43b1});}}return _0x2a46b7;}console[_0x5e9d47(0x2a0)](JSON[_0x5e9d47(0x1cb)](_0x17ff4f(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x2f69ef=a2_0x9f465f,_0x2f7449=!process[_0x2f69ef(0x32c)][_0x2f69ef(0x3ae)](0x2)[_0x2f69ef(0x148)];showBriefHelp=_0x2f7449,program[_0x2f69ef(0x358)](process['argv']);_0x2f7449&&program[_0x2f69ef(0x26c)]();const _0x290015=process[_0x2f69ef(0x32c)][0x2]===_0x2f69ef(0x218);if(process[_0x2f69ef(0x1a2)][_0x2f69ef(0x33e)]&&process['argv'][_0x2f69ef(0x148)]>0x2&&!isDevVersion()&&!_0x290015){const _0x3bf8ae=loadReleaseChannel();checkForUpdate(currentVersion,_0x3bf8ae)[_0x2f69ef(0x3d6)](_0x16488f=>{_0x16488f&&displayUpdateNotification(_0x16488f);})['catch'](()=>{});}}