@treasuredata/tdx 2026.4.10 → 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_0x1830b0=a2_0xcccf;(function(_0x2d89ca,_0x27c6eb){const _0x32cd07=a2_0xcccf,_0xdf3087=_0x2d89ca();while(!![]){try{const _0x3d4f34=-parseInt(_0x32cd07(0x195))/0x1*(parseInt(_0x32cd07(0x336))/0x2)+-parseInt(_0x32cd07(0x3ba))/0x3*(-parseInt(_0x32cd07(0x2c1))/0x4)+parseInt(_0x32cd07(0x17c))/0x5+parseInt(_0x32cd07(0x18b))/0x6*(parseInt(_0x32cd07(0x28c))/0x7)+parseInt(_0x32cd07(0xcc))/0x8*(parseInt(_0x32cd07(0x154))/0x9)+-parseInt(_0x32cd07(0x331))/0xa*(-parseInt(_0x32cd07(0x28a))/0xb)+parseInt(_0x32cd07(0x123))/0xc*(-parseInt(_0x32cd07(0x14c))/0xd);if(_0x3d4f34===_0x27c6eb)break;else _0xdf3087['push'](_0xdf3087['shift']());}catch(_0x32f4a4){_0xdf3087['push'](_0xdf3087['shift']());}}}(a2_0x489a,0x9da1d));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_0x1830b0(0x372)][a2_0x1830b0(0xd4)](a2_0x1830b0(0x2b7))){let versionOutput=a2_0x1830b0(0x249)+currentVersion;buildInfo[a2_0x1830b0(0x3df)]&&!currentVersion[a2_0x1830b0(0xd4)](buildInfo[a2_0x1830b0(0x3df)])&&(versionOutput+='\x20('+buildInfo[a2_0x1830b0(0x3df)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x1830b0(0x114)+buildInfo[a2_0x1830b0(0x227)]),console[a2_0x1830b0(0x2e7)](versionOutput),process[a2_0x1830b0(0x26a)](0x0);}const program=new Command();export function mergeCommandOptions(_0x4fced5,_0x55f756){const _0x40b735=a2_0x1830b0,_0xdffd83={..._0x4fced5};for(const [_0x1cbc67,_0x46d0a7]of Object[_0x40b735(0x242)](_0x55f756)){_0x46d0a7!==undefined&&(_0xdffd83[_0x1cbc67]=_0x46d0a7);}return _0xdffd83;}let showBriefHelp=![],description=a2_0x1830b0(0x2f4);buildInfo['gitRevision']&&!currentVersion[a2_0x1830b0(0xd4)](buildInfo[a2_0x1830b0(0x3df)])?description+=a2_0x1830b0(0x24a)+currentVersion+'\x20('+buildInfo[a2_0x1830b0(0x3df)]+')':description+=a2_0x1830b0(0x24a)+currentVersion;program[a2_0x1830b0(0x1df)](a2_0x1830b0(0x344))['description'](description),program[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3c1),a2_0x1830b0(0xfd))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x282),a2_0x1830b0(0x20a))[a2_0x1830b0(0x3b4)]('--site\x20<site>',a2_0x1830b0(0x28f),a2_0x1830b0(0x267))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2c3),a2_0x1830b0(0x25f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x347),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x1830b0(0x3b4)]('--json',a2_0x1830b0(0x3b5))['option']('--jsonl',a2_0x1830b0(0x356))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x317),a2_0x1830b0(0x2d8))[a2_0x1830b0(0x3b4)]('--output\x20<file>',a2_0x1830b0(0xf3))['option'](a2_0x1830b0(0xee),a2_0x1830b0(0x320))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x28b),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21d),a2_0x1830b0(0x159),![])[a2_0x1830b0(0x3b4)]('-v,\x20--verbose',a2_0x1830b0(0x3c3),![])[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x386),a2_0x1830b0(0x1c9))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x32a),a2_0x1830b0(0x2a0))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x319),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x2b1),![])[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3aa),a2_0x1830b0(0x3e3),![])[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xca),a2_0x1830b0(0x30d))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x370),a2_0x1830b0(0x38e))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2f0),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x1830b0(0x2d2)]({'formatHelp':(_0x94ae27,_0x446fd2)=>{const _0x2f9d95=a2_0x1830b0,_0x2fc8ae=_0x446fd2[_0x2f9d95(0x2a8)](_0x94ae27,_0x446fd2),_0xe47185=0x2,_0x145cad=0x2;function _0x55989f(_0x292183){const _0x3f34eb=_0x2f9d95,_0x20809e=_0x292183;return!!(_0x20809e[_0x3f34eb(0x1d3)]||_0x20809e[_0x3f34eb(0x2d4)]);}function _0x31e90c(_0x36a4e0,_0x5e74df){const _0x5de696=_0x2f9d95;if(_0x5e74df){const _0x59274c=''+_0x36a4e0[_0x5de696(0x176)](_0x2fc8ae+_0x145cad)+_0x5e74df;return _0x59274c;}return _0x36a4e0;}function _0x239856(_0x436cc5){const _0x476cf9=_0x2f9d95;return _0x436cc5[_0x476cf9(0x152)]('\x0a')[_0x476cf9(0x2c4)](/^/gm,'\x20'['repeat'](_0xe47185));}const _0x5878f0=[];_0x5878f0[_0x2f9d95(0x289)](_0x2f9d95(0x112)+_0x446fd2['commandUsage'](_0x94ae27));const _0x4f8b45=_0x446fd2['commandDescription'](_0x94ae27);_0x4f8b45&&(_0x5878f0[_0x2f9d95(0x289)](''),_0x5878f0[_0x2f9d95(0x289)](_0x4f8b45));const _0x518e43=_0x94ae27['commands']['filter'](_0x4886e8=>!_0x55989f(_0x4886e8));if(_0x518e43['length']>0x0){if(_0x94ae27[_0x2f9d95(0x1df)]()===_0x2f9d95(0x344)){const _0x557590=_0x94ae27[_0x2f9d95(0x343)](),_0x454bb2=!_0x557590[_0x2f9d95(0x24c)]&&process[_0x2f9d95(0x286)]['isTTY'],_0x136411=COMMAND_CATEGORIES,_0x144f22=(_0x916f53,_0x1a5c06)=>_0x454bb2?_0x1a5c06(_0x916f53):_0x916f53,_0x365dc8=new Map();_0x518e43[_0x2f9d95(0x353)](_0x10b447=>{const _0x38bd9f=_0x2f9d95;_0x365dc8[_0x38bd9f(0x39f)](_0x10b447[_0x38bd9f(0x1df)](),_0x10b447);}),_0x136411[_0x2f9d95(0x353)](_0x51f8f6=>{const _0x4c264f=_0x2f9d95,_0x3ff025=_0x51f8f6['commands'][_0x4c264f(0x142)](_0x2be079=>_0x365dc8[_0x4c264f(0x3b0)](_0x2be079)??[]);if(_0x3ff025[_0x4c264f(0x241)]>0x0){_0x5878f0[_0x4c264f(0x289)](''),_0x5878f0[_0x4c264f(0x289)](_0x144f22(_0x51f8f6[_0x4c264f(0x1df)]+':',_0x51f8f6[_0x4c264f(0x197)]));const _0x263318=_0x3ff025[_0x4c264f(0x1a9)](_0x47d087=>{const _0x629f7e=_0x4c264f,_0x5e9282=_0x446fd2[_0x629f7e(0xc8)](_0x47d087),_0x3be971=_0x446fd2[_0x629f7e(0x288)](_0x47d087);return _0x31e90c(_0x5e9282,_0x3be971);});_0x5878f0['push'](_0x239856(_0x263318));}}),_0x5878f0[_0x2f9d95(0x289)](''),_0x5878f0[_0x2f9d95(0x289)](_0x2f9d95(0x133));}else{const _0x6c7bf7=_0x518e43['map'](_0x5619d7=>{const _0xd73b9e=_0x2f9d95,_0x17605b=_0x446fd2['subcommandTerm'](_0x5619d7),_0x29203f=_0x446fd2[_0xd73b9e(0x288)](_0x5619d7);return _0x31e90c(_0x17605b,_0x29203f);});_0x5878f0[_0x2f9d95(0x289)](''),_0x5878f0['push'](_0x2f9d95(0x295)),_0x5878f0[_0x2f9d95(0x289)](_0x239856(_0x6c7bf7));}}if(showBriefHelp&&_0x94ae27[_0x2f9d95(0x1df)]()===_0x2f9d95(0x344))_0x5878f0['push'](''),_0x5878f0[_0x2f9d95(0x289)](_0x2f9d95(0x29b));else{const _0x4f4871=_0x94ae27[_0x2f9d95(0x111)][_0x2f9d95(0x27e)](_0x14abfd=>!_0x55989f(_0x14abfd));if(_0x4f4871[_0x2f9d95(0x241)]>0x0){const _0x39de70=_0x4f4871[_0x2f9d95(0x1a9)](_0x45acd3=>{const _0x4dc0eb=_0x2f9d95,_0x4ea1a8=_0x446fd2[_0x4dc0eb(0x238)](_0x45acd3),_0x3ba8ad=_0x446fd2[_0x4dc0eb(0x219)](_0x45acd3);return _0x31e90c(_0x4ea1a8,_0x3ba8ad);});_0x5878f0[_0x2f9d95(0x289)](''),_0x5878f0[_0x2f9d95(0x289)](_0x2f9d95(0x1f5)),_0x5878f0[_0x2f9d95(0x289)](_0x239856(_0x39de70));}}const _0x27fad3=(_0x94ae27[_0x2f9d95(0x301)]||[])['filter'](_0x35e0fc=>!_0x55989f(_0x35e0fc));if(_0x27fad3[_0x2f9d95(0x241)]>0x0){const _0x57ff24=_0x27fad3['map'](_0x5e51cc=>{const _0xa8474=_0x2f9d95,_0x32d485=_0x446fd2[_0xa8474(0x1b5)](_0x5e51cc),_0x144e78=_0x446fd2[_0xa8474(0x1bb)](_0x5e51cc);return _0x31e90c(_0x32d485,_0x144e78);});_0x5878f0[_0x2f9d95(0x289)](''),_0x5878f0['push'](_0x2f9d95(0x3bf)),_0x5878f0[_0x2f9d95(0x289)](_0x239856(_0x57ff24));}return _0x5878f0[_0x2f9d95(0x152)]('\x0a')+'\x0a';},'subcommandTerm':_0x2f4655=>{const _0x3b3305=a2_0x1830b0,_0x201310=(_0x2f4655[_0x3b3305(0x301)]||[])[_0x3b3305(0x1a9)](_0x4acdd2=>_0x4acdd2[_0x3b3305(0x140)]?'<'+_0x4acdd2[_0x3b3305(0x1df)]()+'>':'['+_0x4acdd2['name']()+']')['join']('\x20'),_0x4f4924=_0x2f4655[_0x3b3305(0x1da)](),_0x5d6f91=_0x4f4924[_0x3b3305(0x241)]>0x0?_0x2f4655[_0x3b3305(0x1df)]()+',\x20'+_0x4f4924[_0x3b3305(0x152)](',\x20'):_0x2f4655[_0x3b3305(0x1df)]();return _0x201310?_0x5d6f91+'\x20'+_0x201310:_0x5d6f91;}}),program[a2_0x1830b0(0x167)](a2_0x1830b0(0x36c),_0x141374=>{const _0x34364c=a2_0x1830b0,_0xb706f7=_0x141374[_0x34364c(0x343)]();if(_0xb706f7[_0x34364c(0xe1)]){const _0x88ffc=resolve(_0xb706f7[_0x34364c(0xe1)]),_0x4fe0a7=_0x88ffc!==_0xb706f7['directory']?_0x34364c(0xed)+_0x88ffc+')':'';if(!existsSync(_0x88ffc))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Directory\x20does\x20not\x20exist:\x20'+_0xb706f7[_0x34364c(0xe1)]+_0x4fe0a7,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x162121=statSync(_0x88ffc);if(!_0x162121[_0x34364c(0xdf)]())throw new SDKError(ErrorCode[_0x34364c(0x13a)],_0x34364c(0x16e)+_0xb706f7[_0x34364c(0xe1)]+_0x4fe0a7,undefined,{'helpText':_0x34364c(0x395)});process[_0x34364c(0x2cc)](_0x88ffc);}if(!_0xb706f7[_0x34364c(0x1e6)]){if(_0xb706f7[_0x34364c(0x210)])_0xb706f7['format']=_0x34364c(0x210);else{if(_0xb706f7[_0x34364c(0x396)])_0xb706f7[_0x34364c(0x1e6)]=_0x34364c(0x396);else{if(_0xb706f7[_0x34364c(0x19f)])_0xb706f7['format']='jsonl';else _0xb706f7[_0x34364c(0x1ee)]&&(_0xb706f7['format']=_0x34364c(0x1ee));}}}if(_0xb706f7[_0x34364c(0xdc)])_0xb706f7[_0x34364c(0x120)]=LogLevel[_0x34364c(0x369)];else{if(_0xb706f7[_0x34364c(0x102)])_0xb706f7[_0x34364c(0x120)]=LogLevel['DEBUG'];else _0xb706f7['logLevel']===undefined&&(_0xb706f7[_0x34364c(0x120)]=LogLevel[_0x34364c(0x2e9)]);}});async function createTDXInstance(_0x3e12cd){const _0x43108b=a2_0x1830b0,_0x2d11fd=await GlobalContext[_0x43108b(0x16d)](_0x3e12cd);_0x2d11fd[_0x43108b(0x1b0)](_0x3e12cd);const _0x516613=Number(_0x3e12cd[_0x43108b(0x2f5)]),_0x40dbd7=!isNaN(_0x516613)&&_0x516613>0x0?_0x516613*0x3e8:undefined;return TDX['create']({'site':_0x2d11fd[_0x43108b(0x1d8)],'apiKey':_0x2d11fd[_0x43108b(0x28e)],'accessToken':_0x2d11fd[_0x43108b(0x1b4)],'logLevel':_0x2d11fd[_0x43108b(0x120)],'profile':_0x2d11fd['profile'],'timeout':_0x40dbd7});}const databaseCmd=program['command'](a2_0x1830b0(0x30e))[a2_0x1830b0(0x10e)]('db')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x37e)),databaseListAction=async(_0x3fbe9a,_0x4850e7)=>{const _0x3357d7=a2_0x1830b0,_0x2817ce=new DatabasesCommand(),_0x3cf01f=program[_0x3357d7(0x343)](),_0x141387=await createTDXInstance(_0x3cf01f),_0x18f3f5=await _0x2817ce[_0x3357d7(0x36d)]({'options':{..._0x3cf01f,..._0x4850e7},'args':_0x3fbe9a?[_0x3fbe9a]:[],'tdx':_0x141387});gracefulExit(_0x18f3f5);};databaseCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x1830b0(0x2ab)](databaseListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x2fb),{'hidden':!![]})[a2_0x1830b0(0x1d9)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x228))['description'](a2_0x1830b0(0xc6))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2b0),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3b6),a2_0x1830b0(0x292))[a2_0x1830b0(0x3b4)]('--chat-id\x20<id>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')['option'](a2_0x1830b0(0x2e0),a2_0x1830b0(0x3cb))[a2_0x1830b0(0x2ab)](async(_0x5d868c,_0x1ea596)=>{const _0x2c4bba=a2_0x1830b0,_0x5c2ba3=program[_0x2c4bba(0x343)](),_0x2d95c5=await createTDXInstance(_0x5c2ba3);if(_0x5d868c[0x0]==='create'){const _0x2d25d8=new ChatCreateCommand();gracefulExit(await _0x2d25d8['run']({'options':{..._0x5c2ba3,..._0x1ea596},'args':_0x5d868c[_0x2c4bba(0x135)](0x1),'tdx':_0x2d95c5}));return;}const _0xd8704=new ChatCommand(),_0x215202=await _0xd8704[_0x2c4bba(0x36d)]({'options':{..._0x5c2ba3,..._0x1ea596},'args':_0x5d868c,'tdx':_0x2d95c5});gracefulExit(_0x215202);});const apiCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x251))['summary'](a2_0x1830b0(0x2af))[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),a2_0x1830b0(0x32c))[a2_0x1830b0(0x3b4)]('-X,\x20--method\x20<method>',a2_0x1830b0(0x12e),'GET')['option'](a2_0x1830b0(0x364),a2_0x1830b0(0x1b9))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3d8),'Read\x20request\x20body\x20from\x20file')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x17f),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0xba9829,_0x4487f8)=>{return _0x4487f8?[..._0x4487f8,_0xba9829]:[_0xba9829];})[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x23a),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x1830b0(0x2ab)](async(_0x5801ea,_0x417657)=>{const _0x245d4d=a2_0x1830b0;if(!_0x5801ea){apiCmd['help']();return;}const _0x132f48=new ApiCommand(),_0xeb6fe6=program[_0x245d4d(0x343)](),_0x5865a8=await createTDXInstance(_0xeb6fe6),_0xaeee2a=await _0x132f48[_0x245d4d(0x36d)]({'options':{..._0xeb6fe6,..._0x417657},'args':[_0x5801ea],'tdx':_0x5865a8});gracefulExit(_0xaeee2a);});function a2_0xcccf(_0x383d0a,_0x55fe70){_0x383d0a=_0x383d0a-0xbc;const _0x489a1a=a2_0x489a();let _0xcccf0=_0x489a1a[_0x383d0a];return _0xcccf0;}program[a2_0x1830b0(0x257)]('mcp')['description'](a2_0x1830b0(0xd9))[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),'\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')[a2_0x1830b0(0x2ab)](async _0x4d4cfe=>{const _0x1c0484=a2_0x1830b0,_0x129b6b=new MCPCommand(),_0x1cdc20=program[_0x1c0484(0x343)](),_0x213525=await createTDXInstance(_0x1cdc20),_0x182311=await _0x129b6b[_0x1c0484(0x36d)]({'options':{..._0x1cdc20,..._0x4d4cfe},'args':[],'tdx':_0x213525});gracefulExit(_0x182311);});const tableCmd=program['command']('table')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3e7)),tableListAction=async(_0x52038a,_0x128b63)=>{const _0x1df67f=a2_0x1830b0,_0x1138c8=new TablesCommand(),_0x5581ed=program[_0x1df67f(0x343)](),_0x29afd7=await createTDXInstance(_0x5581ed);_0x128b63['in']&&(_0x128b63[_0x1df67f(0x30e)]=_0x128b63['in']);const _0x375287=await _0x1138c8[_0x1df67f(0x36d)]({'options':{..._0x5581ed,..._0x128b63},'args':_0x52038a?[_0x52038a]:[],'tdx':_0x29afd7});gracefulExit(_0x375287);};tableCmd[a2_0x1830b0(0x257)]('list\x20[pattern]')[a2_0x1830b0(0x1d9)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1c7),a2_0x1830b0(0x306))['option']('--in\x20<database>',a2_0x1830b0(0x2ea))[a2_0x1830b0(0x2ab)](tableListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x31d),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3cd))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1c7),a2_0x1830b0(0x306))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2bd),a2_0x1830b0(0x2ea))['action'](tableListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x290))[a2_0x1830b0(0x1d9)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1c7),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x1830b0(0x2bd),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1830b0(0x2ab)](async(_0x254cd2,_0xf1751f)=>{const _0x2378f3=a2_0x1830b0,_0x2b57bb=new ShowCommand(),_0xea1062=program[_0x2378f3(0x343)](),_0x3229bf=await createTDXInstance(_0xea1062);_0xf1751f['in']&&(_0xf1751f[_0x2378f3(0x30e)]=_0xf1751f['in']);const _0x101718=await _0x2b57bb[_0x2378f3(0x36d)]({'options':{..._0xea1062,..._0xf1751f},'args':_0x254cd2?[_0x254cd2]:[],'tdx':_0x3229bf});gracefulExit(_0x101718);}),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x26d))[a2_0x1830b0(0x10e)](a2_0x1830b0(0x189))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x121))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1c7),a2_0x1830b0(0x244))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2bd),a2_0x1830b0(0x2ea))[a2_0x1830b0(0x2ab)](async(_0x2d2943,_0x25e5ac)=>{const _0x45d676=a2_0x1830b0,_0x344ecf=new DescribeCommand(),_0x127d1b=program[_0x45d676(0x343)](),_0x283866=await createTDXInstance(_0x127d1b);_0x25e5ac['in']&&(_0x25e5ac[_0x45d676(0x30e)]=_0x25e5ac['in']);const _0x5223de=await _0x344ecf[_0x45d676(0x36d)]({'options':{..._0x127d1b,..._0x25e5ac},'args':_0x2d2943?[_0x2d2943]:[],'tdx':_0x283866});gracefulExit(_0x5223de);}),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x2f7))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x351))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1c7),a2_0x1830b0(0x1fb))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2bd),a2_0x1830b0(0x2ea))[a2_0x1830b0(0x3b4)]('--catalog\x20<catalog>',a2_0x1830b0(0x212))['option'](a2_0x1830b0(0x3d8),a2_0x1830b0(0x171))['option'](a2_0x1830b0(0x115),a2_0x1830b0(0x2b5))[a2_0x1830b0(0x2ab)](async(_0x5c18f2,_0x2f3413)=>{const _0xf3e1b5=a2_0x1830b0,_0x399720=new QueryCommand(),_0x519eb8=program[_0xf3e1b5(0x343)](),_0x455119=await createTDXInstance(_0x519eb8);_0x2f3413['in']&&(_0x2f3413[_0xf3e1b5(0x30e)]=_0x2f3413['in']);const _0x20c807=await _0x399720[_0xf3e1b5(0x36d)]({'options':mergeCommandOptions(_0x519eb8,_0x2f3413),'args':_0x5c18f2?[_0x5c18f2]:[],'tdx':_0x455119});gracefulExit(_0x20c807);});const segmentCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x334))[a2_0x1830b0(0x10e)]('sg')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x26b)),segmentListAction=async(_0x1ceeaf,_0x57d441)=>{const _0x45bebb=a2_0x1830b0,_0x2543d1=new SegmentsCommand(),_0x4968c4=program[_0x45bebb(0x343)](),_0x31309a=await createTDXInstance(_0x4968c4),_0x264f1c=await _0x2543d1['run']({'options':{..._0x4968c4,..._0x57d441},'args':_0x1ceeaf?[_0x1ceeaf]:[],'tdx':_0x31309a});gracefulExit(_0x264f1c);};segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1dd))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3d0))['option']('-r,\x20--recursive',a2_0x1830b0(0x37f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3ce),a2_0x1830b0(0x33c),'10')['action'](segmentListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x26e),{'hidden':!![]})[a2_0x1830b0(0x1d9)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option']('-r,\x20--recursive',a2_0x1830b0(0x37f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3ce),a2_0x1830b0(0x33c),'10')[a2_0x1830b0(0x2ab)](segmentListAction),segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x180),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x158))[a2_0x1830b0(0x2ab)](async(_0x44c3f7,_0x23d3ee)=>{const _0xe8f259=a2_0x1830b0,_0x1ad3bb=new SegmentUseCommand(),_0x34864f=program[_0xe8f259(0x343)](),_0x15de63=await createTDXInstance(_0x34864f),_0x28b05f=await _0x1ad3bb[_0xe8f259(0x36d)]({'options':{..._0x34864f,..._0x23d3ee},'args':[_0x44c3f7],'tdx':_0x15de63});gracefulExit(_0x28b05f);});const segmentViewAction=async(_0x3828ce,_0x19e386)=>{const _0x54684d=a2_0x1830b0,_0x545d3d=new SegmentViewCommand(),_0x138326=program[_0x54684d(0x343)](),_0x2f716e=await createTDXInstance(_0x138326),_0x1a499d=await _0x545d3d[_0x54684d(0x36d)]({'options':{..._0x138326,..._0x19e386},'args':_0x3828ce?[_0x3828ce]:[],'tdx':_0x2f716e});gracefulExit(_0x1a499d);};segmentCmd['command'](a2_0x1830b0(0x330))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1ab))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x101),a2_0x1830b0(0xbf))[a2_0x1830b0(0x2ab)](segmentViewAction),segmentCmd[a2_0x1830b0(0x257)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x1830b0(0x10e)](a2_0x1830b0(0x15f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x101),a2_0x1830b0(0xbf))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3bd))[a2_0x1830b0(0x2ab)](segmentViewAction),segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x294))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x327))[a2_0x1830b0(0x2ab)](async(_0x30a0ab,_0x5b0b5d)=>{const _0x1c11c7=a2_0x1830b0,_0x151f15=new SegmentDescCommand(),_0x25af7a=program[_0x1c11c7(0x343)](),_0x4afa8b=await createTDXInstance(_0x25af7a),_0xa7efe0=await _0x151f15[_0x1c11c7(0x36d)]({'options':{..._0x25af7a,..._0x5b0b5d},'args':_0x30a0ab?[_0x30a0ab]:[],'tdx':_0x4afa8b});gracefulExit(_0xa7efe0);}),segmentCmd['command'](a2_0x1830b0(0x1a7))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1d2))[a2_0x1830b0(0x2ab)](async(_0x542952,_0x213630)=>{const _0x574702=a2_0x1830b0,_0x313602=new SegmentShowCommand(),_0x552591=program[_0x574702(0x343)](),_0x228bbc=await createTDXInstance(_0x552591),_0x34b55b=await _0x313602[_0x574702(0x36d)]({'options':{..._0x552591,..._0x213630},'args':_0x542952?[_0x542952]:[],'tdx':_0x228bbc});gracefulExit(_0x34b55b);}),segmentCmd['command'](a2_0x1830b0(0x2a3),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2e4))[a2_0x1830b0(0x2ab)](async(_0x50bbf3,_0x5866bf)=>{const _0x17da96=a2_0x1830b0,_0x1e49fd=new SegmentFolderListCommand(),_0x420275=program[_0x17da96(0x343)](),_0x448c49=await createTDXInstance(_0x420275),_0x5abc41=await _0x1e49fd[_0x17da96(0x36d)]({'options':{..._0x420275,..._0x5866bf},'args':[_0x50bbf3],'tdx':_0x448c49});gracefulExit(_0x5abc41);});const folderCmd=segmentCmd['command'](a2_0x1830b0(0x162),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2e8));folderCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xc3))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x271))[a2_0x1830b0(0x2ab)](async(_0x404b30,_0x111150)=>{const _0x13de64=a2_0x1830b0,_0x2fbdb9=new SegmentFolderShowCommand(),_0x5b237c=program[_0x13de64(0x343)](),_0x3862a4=await createTDXInstance(_0x5b237c),_0x43e402=await _0x2fbdb9[_0x13de64(0x36d)]({'options':{..._0x5b237c,..._0x111150},'args':[_0x404b30],'tdx':_0x3862a4});gracefulExit(_0x43e402);}),segmentCmd[a2_0x1830b0(0x257)]('sql\x20[segment_name]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x37c))['option'](a2_0x1830b0(0x1cb),'YAML\x20file\x20path\x20for\x20unpushed\x20segment')[a2_0x1830b0(0x2ab)](async(_0x2682c4,_0x983915)=>{const _0x1fe7d1=a2_0x1830b0,_0x42d875=new SegmentSQLCommand(),_0x24a627=program[_0x1fe7d1(0x343)](),_0x9a2b0b=await createTDXInstance(_0x24a627),_0x4240ab=await _0x42d875['run']({'options':{..._0x24a627,..._0x983915},'args':_0x2682c4?[_0x2682c4]:[],'tdx':_0x9a2b0b});gracefulExit(_0x4240ab);}),segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xd1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2d1))[a2_0x1830b0(0x2ab)](async(_0x24b813,_0x38e164)=>{const _0x44126d=a2_0x1830b0,_0x15901e=new SegmentFieldsCommand(),_0xa68362=program[_0x44126d(0x343)](),_0x13fedd=await createTDXInstance(_0xa68362),_0x1254c8=await _0x15901e[_0x44126d(0x36d)]({'options':{..._0xa68362,..._0x38e164},'args':_0x24b813?[_0x24b813]:[],'tdx':_0x13fedd});gracefulExit(_0x1254c8);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xd0))['option'](a2_0x1830b0(0x2db),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1830b0(0x2ab)](async(_0x2ff158,_0xeec3f3)=>{const _0x479b7e=a2_0x1830b0,_0xa361ec=new SegmentPullCommand(),_0x543f45=program[_0x479b7e(0x343)](),_0x436426=await createTDXInstance(_0x543f45),_0x96e82d=await _0xa361ec['run']({'options':{..._0x543f45,..._0xeec3f3},'args':_0x2ff158?[_0x2ff158]:[],'tdx':_0x436426});gracefulExit(_0x96e82d);}),segmentCmd['command'](a2_0x1830b0(0x25e))['description'](a2_0x1830b0(0x106))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x1bc))['option']('--delete',a2_0x1830b0(0x26f))[a2_0x1830b0(0x2ab)](async(_0x1bb51f,_0x3e42da)=>{const _0x57c921=a2_0x1830b0,_0x19cf37=new SegmentPushCommand(),_0x583986=program[_0x57c921(0x343)](),_0x5699a8=await createTDXInstance(_0x583986),_0x3de7f6=await _0x19cf37[_0x57c921(0x36d)]({'options':{..._0x583986,..._0x3e42da},'args':_0x1bb51f?[_0x1bb51f]:[],'tdx':_0x5699a8});gracefulExit(_0x3de7f6);}),segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3c9))[a2_0x1830b0(0x2ab)](async(_0x1d1609,_0x23d423)=>{const _0x5e7630=a2_0x1830b0,_0x39b4f9=new SegmentValidateCommand(),_0x1d9863=program[_0x5e7630(0x343)](),_0x3d0fff=await createTDXInstance(_0x1d9863),_0xc7d9b5=await _0x39b4f9[_0x5e7630(0x36d)]({'options':{..._0x1d9863,..._0x23d423},'args':_0x1d1609?[_0x1d1609]:[],'tdx':_0x3d0fff});gracefulExit(_0xc7d9b5);}),segmentCmd['command'](a2_0x1830b0(0x3b1),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x143))['option'](a2_0x1830b0(0x335),'Segment\x20description')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2a2),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x25a),a2_0x1830b0(0x298))['option'](a2_0x1830b0(0x221),a2_0x1830b0(0x132))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xe9),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x1830b0(0x3b4)]('--invisible',a2_0x1830b0(0x18c))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x30a),'Skip\x20population\x20counting')[a2_0x1830b0(0x2ab)](async(_0x1b4b85,_0x44aff2)=>{const _0x26c15d=a2_0x1830b0,_0x25f61e=new SegmentCreateCommand(),_0x15154f=program[_0x26c15d(0x343)](),_0x22550a=await createTDXInstance(_0x15154f),_0x1a6d99=await _0x25f61e[_0x26c15d(0x36d)]({'options':{..._0x15154f,..._0x44aff2},'args':[_0x1b4b85],'tdx':_0x22550a});gracefulExit(_0x1a6d99);}),segmentCmd['command'](a2_0x1830b0(0x309),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2ed))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x194),'New\x20segment\x20name')[a2_0x1830b0(0x3b4)]('--description\x20<text>',a2_0x1830b0(0x264))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2a2),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x25a),a2_0x1830b0(0x136))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x221),a2_0x1830b0(0x2c6))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xe9),a2_0x1830b0(0xf5))[a2_0x1830b0(0x2ab)](async(_0x3c1f2a,_0x3b7f78)=>{const _0x23eba0=a2_0x1830b0,_0x20e23f=new SegmentUpdateCommand(),_0x2217d5=program[_0x23eba0(0x343)](),_0x4d9800=await createTDXInstance(_0x2217d5),_0x4f50ee=await _0x20e23f[_0x23eba0(0x36d)]({'options':{..._0x2217d5,..._0x3b7f78},'args':[_0x3c1f2a],'tdx':_0x4d9800});gracefulExit(_0x4f50ee);});const parentCmd=segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x359),{'hidden':!![]})['description'](a2_0x1830b0(0x3a1)),parentListAction=async(_0x149001,_0x31622d)=>{const _0x2f78d0=a2_0x1830b0,_0x48abde=new ParentSegmentListCommand(),_0x47f364=program[_0x2f78d0(0x343)](),_0x4d5ace=await createTDXInstance(_0x47f364),_0x23103a=await _0x48abde[_0x2f78d0(0x36d)]({'options':{..._0x47f364,..._0x31622d},'args':_0x149001?[_0x149001]:[],'tdx':_0x4d5ace});gracefulExit(_0x23103a);};parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x104))[a2_0x1830b0(0x2ab)](parentListAction),segmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x169),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x139))[a2_0x1830b0(0x2ab)](parentListAction),parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x297))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x35f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xc0),a2_0x1830b0(0x237))[a2_0x1830b0(0x2ab)](async(_0x34fd30,_0x4e045c)=>{const _0x55191e=a2_0x1830b0,_0x490a0c=new ParentSegmentPullCommand(),_0x3feb08=program[_0x55191e(0x343)](),_0x562cfc=await createTDXInstance(_0x3feb08),_0xf8004e=await _0x490a0c[_0x55191e(0x36d)]({'options':{..._0x3feb08,..._0x4e045c},'args':_0x34fd30?[_0x34fd30]:[],'tdx':_0x562cfc});gracefulExit(_0xf8004e);}),parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x31f))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x31c))['action'](async(_0x10142e,_0x1715e7)=>{const _0x171c56=a2_0x1830b0,_0x506cb7=new ParentSegmentPushCommand(),_0x403471=program[_0x171c56(0x343)](),_0x534799=await createTDXInstance(_0x403471),_0xc0ae02=await _0x506cb7[_0x171c56(0x36d)]({'options':{..._0x403471,..._0x1715e7},'args':_0x10142e?[_0x10142e]:[],'tdx':_0x534799});gracefulExit(_0xc0ae02);}),parentCmd['command']('validate\x20[file]')[a2_0x1830b0(0x1d9)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x1830b0(0x3b4)]('--master',a2_0x1830b0(0x3a3))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x11e),a2_0x1830b0(0x128))[a2_0x1830b0(0x3b4)]('--behavior\x20[name]',a2_0x1830b0(0x3e5))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x302),a2_0x1830b0(0x398))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2c2),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x1830b0(0x318))[a2_0x1830b0(0x2ab)](async(_0xd0715a,_0x1813ad)=>{const _0x2c8b56=a2_0x1830b0,_0x47d8d7=new ParentSegmentValidateCommand(),_0x54dfb2=program['opts'](),_0xa5dfc=await createTDXInstance(_0x54dfb2),_0x4c2699=await _0x47d8d7[_0x2c8b56(0x36d)]({'options':{..._0x54dfb2,..._0x1813ad},'args':_0xd0715a?[_0xd0715a]:[],'tdx':_0xa5dfc});gracefulExit(_0x4c2699);}),parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1d4))[a2_0x1830b0(0x1d9)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x1830b0(0xbc),a2_0x1830b0(0x100))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x11e),a2_0x1830b0(0x373))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x229),a2_0x1830b0(0x250))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x302),a2_0x1830b0(0x31e))[a2_0x1830b0(0x3b4)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x1830b0(0x318))[a2_0x1830b0(0x2ab)](async(_0x4bff1a,_0x47ed37)=>{const _0x4c71cc=a2_0x1830b0,_0x1c1c86=new ParentSegmentPreviewCommand(),_0x56fe8e=program[_0x4c71cc(0x343)](),_0x4520c7=await createTDXInstance(_0x56fe8e),_0x426506=await _0x1c1c86['run']({'options':{..._0x56fe8e,..._0x47ed37},'args':_0x4bff1a?[_0x4bff1a]:[],'tdx':_0x4520c7});gracefulExit(_0x426506);}),parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x218))[a2_0x1830b0(0x1d9)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x1830b0(0x2ab)](async(_0x15b493,_0x431a34)=>{const _0x46855d=a2_0x1830b0,_0x13a77b=new ParentSegmentRunCommand(),_0x50ff91=program['opts'](),_0x14f82e=await createTDXInstance(_0x50ff91),_0x10c5b1=await _0x13a77b[_0x46855d(0x36d)]({'options':{..._0x50ff91,..._0x431a34},'args':_0x15b493?[_0x15b493]:[],'tdx':_0x14f82e});gracefulExit(_0x10c5b1);});const parentSegmentCmd=program[a2_0x1830b0(0x257)]('parent-segment')['alias']('ps')['description'](a2_0x1830b0(0x110));parentSegmentCmd[a2_0x1830b0(0x257)]('list\x20[pattern]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x104))['action'](parentListAction),parentSegmentCmd[a2_0x1830b0(0x257)]('pull\x20[name]')['description'](a2_0x1830b0(0x365))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xc0),a2_0x1830b0(0x33f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2fe),a2_0x1830b0(0x211))['action'](async(_0xbb84ea,_0x22bb26)=>{const _0xf83e38=a2_0x1830b0,_0x1953a1=new ParentSegmentPullCommand(),_0x47883d=program[_0xf83e38(0x343)](),_0x3544d9=await createTDXInstance(_0x47883d),_0x27e8be=await _0x1953a1['run']({'options':{..._0x47883d,..._0x22bb26},'args':_0xbb84ea?[_0xbb84ea]:[],'tdx':_0x3544d9});gracefulExit(_0x27e8be);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x10f))['description'](a2_0x1830b0(0x38c))['action'](async(_0x177e14,_0x2440fc)=>{const _0x1ea8da=a2_0x1830b0,_0x12161b=new ParentSegmentPushCommand(),_0xccee97=program[_0x1ea8da(0x343)](),_0x54c3b5=await createTDXInstance(_0xccee97),_0x193359=await _0x12161b[_0x1ea8da(0x36d)]({'options':{..._0xccee97,..._0x2440fc},'args':_0x177e14?[_0x177e14]:[],'tdx':_0x54c3b5});gracefulExit(_0x193359);}),parentSegmentCmd['command'](a2_0x1830b0(0x1c2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x234))['option'](a2_0x1830b0(0xbc),a2_0x1830b0(0x3a3))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x11e),a2_0x1830b0(0x128))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x229),a2_0x1830b0(0x3e5))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x302),a2_0x1830b0(0x398))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2c2),a2_0x1830b0(0x324),'-1d')[a2_0x1830b0(0x2ab)](async(_0x56371c,_0x3ba276)=>{const _0x37c30d=a2_0x1830b0,_0x4f3d30=new ParentSegmentValidateCommand(),_0x21cc87=program['opts'](),_0xb4163f=await createTDXInstance(_0x21cc87),_0xa6e168=await _0x4f3d30[_0x37c30d(0x36d)]({'options':{..._0x21cc87,..._0x3ba276},'args':_0x56371c?[_0x56371c]:[],'tdx':_0xb4163f});gracefulExit(_0xa6e168);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x20c))['description'](a2_0x1830b0(0x27a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xbc),a2_0x1830b0(0x100))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x11e),a2_0x1830b0(0x373))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x229),a2_0x1830b0(0x250))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x302),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2c2),a2_0x1830b0(0x324),a2_0x1830b0(0x318))[a2_0x1830b0(0x2ab)](async(_0x38df85,_0x4a7a98)=>{const _0x21d420=new ParentSegmentPreviewCommand(),_0x1201c8=program['opts'](),_0x5f40b9=await createTDXInstance(_0x1201c8),_0x32c090=await _0x21d420['run']({'options':{..._0x1201c8,..._0x4a7a98},'args':_0x38df85?[_0x38df85]:[],'tdx':_0x5f40b9});gracefulExit(_0x32c090);}),parentSegmentCmd[a2_0x1830b0(0x257)]('run\x20[name]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xf6))[a2_0x1830b0(0x2ab)](async(_0x2e5c8b,_0x4701f1)=>{const _0x377aea=a2_0x1830b0,_0x515e0b=new ParentSegmentRunCommand(),_0x209914=program[_0x377aea(0x343)](),_0x5ed409=await createTDXInstance(_0x209914),_0x528854=await _0x515e0b[_0x377aea(0x36d)]({'options':{..._0x209914,..._0x4701f1},'args':_0x2e5c8b?[_0x2e5c8b]:[],'tdx':_0x5ed409});gracefulExit(_0x528854);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x36f))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2c7))['option'](a2_0x1830b0(0x375),a2_0x1830b0(0x1a1))[a2_0x1830b0(0x3b4)]('--jsonl',a2_0x1830b0(0x18f))[a2_0x1830b0(0x2ab)](async(_0x57bdf8,_0x4963d8)=>{const _0x4255b2=a2_0x1830b0,_0x35344d=new ParentSegmentFieldsCommand(),_0x2058f6=program[_0x4255b2(0x343)](),_0x38cf9b=await createTDXInstance(_0x2058f6),_0x332351=await _0x35344d['run']({'options':{..._0x2058f6,..._0x4963d8},'args':_0x57bdf8?[_0x57bdf8]:[],'tdx':_0x38cf9b});gracefulExit(_0x332351);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x27c))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2f1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x101),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x1830b0(0x3b4)]('--json',a2_0x1830b0(0x1a1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xcd),a2_0x1830b0(0x18f))[a2_0x1830b0(0x2ab)](async(_0x17921d,_0x3df469)=>{const _0x12c94f=a2_0x1830b0,_0x1f56f7=new ParentSegmentViewCommand(),_0x3f70f2=program['opts'](),_0xf16500=await createTDXInstance(_0x3f70f2),_0xfe0a8a=await _0x1f56f7[_0x12c94f(0x36d)]({'options':{..._0x3f70f2,..._0x3df469},'args':_0x17921d?[_0x17921d]:[],'tdx':_0xf16500});gracefulExit(_0xfe0a8a);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x236))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x19b))['option']('-o,\x20--output\x20<file>',a2_0x1830b0(0x33f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x375),a2_0x1830b0(0x1a1))['option'](a2_0x1830b0(0xcd),a2_0x1830b0(0x18f))[a2_0x1830b0(0x2ab)](async(_0x41b29c,_0x5e5f4b)=>{const _0x13160f=a2_0x1830b0,_0x5530ed=new ParentSegmentDescCommand(),_0x1ba6f8=program[_0x13160f(0x343)](),_0x205152=await createTDXInstance(_0x1ba6f8),_0x185c6a=await _0x5530ed[_0x13160f(0x36d)]({'options':{..._0x1ba6f8,..._0x5e5f4b},'args':_0x41b29c?[_0x41b29c]:[],'tdx':_0x205152});gracefulExit(_0x185c6a);}),parentSegmentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1a4))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x22b))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x375),a2_0x1830b0(0x1a1))[a2_0x1830b0(0x3b4)]('--jsonl',a2_0x1830b0(0x18f))['action'](async(_0x1e452b,_0x148bde)=>{const _0x2ee6f7=a2_0x1830b0,_0x7a883=new ParentSegmentSQLCommand(),_0x2f1562=program['opts'](),_0xf98439=await createTDXInstance(_0x2f1562),_0x52bc6d=await _0x7a883[_0x2ee6f7(0x36d)]({'options':{..._0x2f1562,..._0x148bde},'args':_0x1e452b?[_0x1e452b]:[],'tdx':_0xf98439});gracefulExit(_0x52bc6d);}),parentSegmentCmd['command'](a2_0x1830b0(0x19d))[a2_0x1830b0(0x1d9)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x291),a2_0x1830b0(0x109))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x375),a2_0x1830b0(0x1a1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xcd),a2_0x1830b0(0x18f))[a2_0x1830b0(0x2ab)](async(_0x32f3fe,_0x257de0)=>{const _0x6ac982=a2_0x1830b0,_0x4e17a6=new ParentSegmentShowCommand(),_0x1af29d=program[_0x6ac982(0x343)](),_0x1247fa=await createTDXInstance(_0x1af29d),_0x30f220=await _0x4e17a6['run']({'options':{..._0x1af29d,..._0x257de0},'args':_0x32f3fe?[_0x32f3fe]:[],'tdx':_0x1247fa});gracefulExit(_0x30f220);}),parentSegmentCmd['command']('use\x20[name]')['description']('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x29bbea,_0x526941)=>{const _0x3ee7d3=a2_0x1830b0,_0x3e4ebf=new UseCommand(),_0xa90a51=program['opts'](),_0x2a915f=_0x29bbea?[_0x3ee7d3(0x155),_0x29bbea]:[],_0x1544b0=await _0x3e4ebf[_0x3ee7d3(0x36d)]({'options':{..._0xa90a51,..._0x526941},'args':_0x2a915f,'tdx':null});gracefulExit(_0x1544b0);});const psRtCmd=parentSegmentCmd[a2_0x1830b0(0x257)]('rt')['description'](a2_0x1830b0(0x269));psRtCmd['command'](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1c6))[a2_0x1830b0(0x2ab)](async(_0x46d29f,_0x5d9f30)=>{const _0x8aaad2=a2_0x1830b0,_0x463cd1=new PSRtListCommand(),_0x6126b9=program['opts'](),_0x359ae7=await createTDXInstance(_0x6126b9),_0x47d0cb=await _0x463cd1[_0x8aaad2(0x36d)]({'options':{..._0x6126b9,..._0x5d9f30},'args':_0x46d29f?[_0x46d29f]:[],'tdx':_0x359ae7});gracefulExit(_0x47d0cb);}),psRtCmd['command'](a2_0x1830b0(0x1c2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3d2))[a2_0x1830b0(0x2ab)](async(_0x4ac189,_0x2b44de)=>{const _0xa8e284=a2_0x1830b0,_0x3ea439=new PSRtValidateCommand(),_0x5145a2=program[_0xa8e284(0x343)](),_0x31de44=await createTDXInstance(_0x5145a2),_0x5872ba=await _0x3ea439[_0xa8e284(0x36d)]({'options':{..._0x5145a2,..._0x2b44de},'args':_0x4ac189?[_0x4ac189]:[],'tdx':_0x31de44});gracefulExit(_0x5872ba);}),psRtCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f4))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x183))[a2_0x1830b0(0x2ab)](async(_0x2f401d,_0x31505c)=>{const _0x1fd951=a2_0x1830b0,_0x376e52=new PSRtConfigVersionCommand(),_0x1a672b=program[_0x1fd951(0x343)](),_0x3e413c=await createTDXInstance(_0x1a672b),_0x4d7cf1=await _0x376e52[_0x1fd951(0x36d)]({'options':{..._0x1a672b,..._0x31505c},'args':_0x2f401d?[_0x2f401d]:[],'tdx':_0x3e413c});gracefulExit(_0x4d7cf1);});const psRtJnCmd=psRtCmd[a2_0x1830b0(0x257)]('jn')['description']('RT\x20Journey\x20management');psRtJnCmd['command']('list\x20[name]')['description'](a2_0x1830b0(0x232))[a2_0x1830b0(0x2ab)](async(_0x3ac2f7,_0x2a8f31)=>{const _0x24ec32=a2_0x1830b0,_0x4a4c79=new PSRtJnListCommand(),_0x45793a=program['opts'](),_0x570ce4=await createTDXInstance(_0x45793a),_0x4fed5d=await _0x4a4c79[_0x24ec32(0x36d)]({'options':{..._0x45793a,..._0x2a8f31},'args':_0x3ac2f7?[_0x3ac2f7]:[],'tdx':_0x570ce4});gracefulExit(_0x4fed5d);}),psRtJnCmd[a2_0x1830b0(0x257)]('pause_activations\x20<journeyId>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1e2))[a2_0x1830b0(0x2ab)](async(_0x1409a5,_0x444cad)=>{const _0x32b713=new PSRtJnPauseCommand(),_0x12c34a=program['opts'](),_0xb65ae4=await createTDXInstance(_0x12c34a),_0x3abc39=await _0x32b713['run']({'options':{..._0x12c34a,..._0x444cad},'args':[_0x1409a5],'tdx':_0xb65ae4});gracefulExit(_0x3abc39);}),psRtJnCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x315))['description'](a2_0x1830b0(0x2bf))[a2_0x1830b0(0x2ab)](async(_0x49514d,_0x50b458)=>{const _0x3667b8=a2_0x1830b0,_0x5767c9=new PSRtJnResumeCommand(),_0x122350=program[_0x3667b8(0x343)](),_0x2ac57c=await createTDXInstance(_0x122350),_0x27e65c=await _0x5767c9[_0x3667b8(0x36d)]({'options':{..._0x122350,..._0x50b458},'args':[_0x49514d],'tdx':_0x2ac57c});gracefulExit(_0x27e65c);});const parentRtCmd=parentCmd[a2_0x1830b0(0x257)]('rt',{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x269));parentRtCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1c6))[a2_0x1830b0(0x2ab)](async(_0x705d5a,_0x16cbcb)=>{const _0x1ab790=a2_0x1830b0,_0x27e048=new PSRtListCommand(),_0x52f328=program[_0x1ab790(0x343)](),_0x3c82bc=await createTDXInstance(_0x52f328),_0x2508d1=await _0x27e048[_0x1ab790(0x36d)]({'options':{..._0x52f328,..._0x16cbcb},'args':_0x705d5a?[_0x705d5a]:[],'tdx':_0x3c82bc});gracefulExit(_0x2508d1);}),parentRtCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1c2))[a2_0x1830b0(0x1d9)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x4f9ccb,_0x1ca432)=>{const _0x5c5041=a2_0x1830b0,_0x4d0d09=new PSRtValidateCommand(),_0x2a376f=program['opts'](),_0x3bad2a=await createTDXInstance(_0x2a376f),_0x2c43e0=await _0x4d0d09[_0x5c5041(0x36d)]({'options':{..._0x2a376f,..._0x1ca432},'args':_0x4f9ccb?[_0x4f9ccb]:[],'tdx':_0x3bad2a});gracefulExit(_0x2c43e0);});const psPzCmd=parentSegmentCmd[a2_0x1830b0(0x257)]('pz')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x11a));psPzCmd[a2_0x1830b0(0x257)]('list\x20[name]')[a2_0x1830b0(0x1d9)]('List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x292975,_0x3d5429)=>{const _0x131f06=a2_0x1830b0,_0x3d2168=new PSPzListCommand(),_0x31db26=program[_0x131f06(0x343)](),_0x14d541=await createTDXInstance(_0x31db26),_0x1398af=await _0x3d2168[_0x131f06(0x36d)]({'options':{..._0x31db26,..._0x3d5429},'args':_0x292975?[_0x292975]:[],'tdx':_0x14d541});gracefulExit(_0x1398af);}),psPzCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x168))['description'](a2_0x1830b0(0x2e6))[a2_0x1830b0(0x2ab)](async(_0x56ff21,_0xa5aed3)=>{const _0x220f87=a2_0x1830b0,_0x4bf26b=new PSPzShowCommand(),_0x1519bd=program[_0x220f87(0x343)](),_0x57e836=await createTDXInstance(_0x1519bd),_0x31917=await _0x4bf26b[_0x220f87(0x36d)]({'options':{..._0x1519bd,..._0xa5aed3},'args':[_0x56ff21],'tdx':_0x57e836});gracefulExit(_0x31917);}),psPzCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x348))['description'](a2_0x1830b0(0x214))[a2_0x1830b0(0x2ab)](async(_0x2fb20d,_0x15da34)=>{const _0x17ce0c=a2_0x1830b0,_0x50baa0=new PSPzDeleteCommand(),_0x76e3b8=program[_0x17ce0c(0x343)](),_0x259d5a=await createTDXInstance(_0x76e3b8),_0x44fcfc=await _0x50baa0[_0x17ce0c(0x36d)]({'options':{..._0x76e3b8,..._0x15da34},'args':[_0x2fb20d],'tdx':_0x259d5a});gracefulExit(_0x44fcfc);}),psPzCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x124))['description'](a2_0x1830b0(0x272))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3b9),'Personalization\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x3d3))['option'](a2_0x1830b0(0x1aa),a2_0x1830b0(0x1e8))['option']('--folder-id\x20<id>',a2_0x1830b0(0x36e))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x16b),a2_0x1830b0(0x182))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x371),'Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)')[a2_0x1830b0(0x2ab)](async _0x170a6a=>{const _0x840d41=a2_0x1830b0,_0x2a0d47=new PSPzCreateCommand(),_0x4426a0=program[_0x840d41(0x343)](),_0x4c2e10=await createTDXInstance(_0x4426a0),_0x278c7a=await _0x2a0d47[_0x840d41(0x36d)]({'options':{..._0x4426a0,..._0x170a6a},'args':[],'tdx':_0x4c2e10});gracefulExit(_0x278c7a);}),psPzCmd['command'](a2_0x1830b0(0x17a))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x32b))['option'](a2_0x1830b0(0x3b9),'Personalization\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x3d3))['option'](a2_0x1830b0(0x16b),a2_0x1830b0(0x182))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x371),a2_0x1830b0(0x274))[a2_0x1830b0(0x2ab)](async(_0x2a2e45,_0x125a92)=>{const _0x20630d=a2_0x1830b0,_0x100fc0=new PSPzPatchCommand(),_0x5f5bf4=program[_0x20630d(0x343)](),_0x90726e=await createTDXInstance(_0x5f5bf4),_0xff9978=await _0x100fc0['run']({'options':{..._0x5f5bf4,..._0x125a92},'args':[_0x2a2e45],'tdx':_0x90726e});gracefulExit(_0xff9978);});const psPzServiceCmd=psPzCmd['command'](a2_0x1830b0(0x3ab))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x202));psPzServiceCmd[a2_0x1830b0(0x257)]('list\x20[name]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2b4))[a2_0x1830b0(0x2ab)](async(_0x2507b0,_0x588774)=>{const _0x3d9bbe=a2_0x1830b0,_0x17b989=new PSPzServiceListCommand(),_0x31f4a0=program['opts'](),_0x19bda5=await createTDXInstance(_0x31f4a0),_0xd02df6=await _0x17b989[_0x3d9bbe(0x36d)]({'options':{..._0x31f4a0,..._0x588774},'args':_0x2507b0?[_0x2507b0]:[],'tdx':_0x19bda5});gracefulExit(_0xd02df6);}),psPzServiceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1ca))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1a0))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x220))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1d1),'Make\x20service\x20public\x20(default:\x20private)')[a2_0x1830b0(0x2ab)](async(_0x17fd8a,_0x17d390,_0x453d70)=>{const _0x103c4d=a2_0x1830b0,_0x23d697=new PSPzServiceCreateCommand(),_0x34ba35=program[_0x103c4d(0x343)](),_0x46b5c2=await createTDXInstance(_0x34ba35),_0x1ffb36=await _0x23d697[_0x103c4d(0x36d)]({'options':{..._0x34ba35,..._0x453d70},'args':_0x17d390?[_0x17fd8a,_0x17d390]:[_0x17fd8a],'tdx':_0x46b5c2});gracefulExit(_0x1ffb36);}),psPzServiceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x224))['description']('Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x1830b0(0x2ab)](async(_0x1dc24d,_0x3f24a3,_0x32d1a5)=>{const _0x20c0fa=a2_0x1830b0,_0x30027e=new PSPzServiceShowCommand(),_0x1f42f7=program['opts'](),_0x349d71=await createTDXInstance(_0x1f42f7),_0x3cb09e=await _0x30027e[_0x20c0fa(0x36d)]({'options':{..._0x1f42f7,..._0x32d1a5},'args':_0x3f24a3?[_0x1dc24d,_0x3f24a3]:[_0x1dc24d],'tdx':_0x349d71});gracefulExit(_0x3cb09e);}),psPzServiceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xe2))['description']('Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x1830b0(0x2ab)](async(_0x442088,_0x3d3e99,_0x3d051b)=>{const _0x1f4147=a2_0x1830b0,_0x21cc1b=new PSPzServiceDeleteCommand(),_0x1dc36b=program[_0x1f4147(0x343)](),_0x24d20c=await createTDXInstance(_0x1dc36b),_0x2435b2=await _0x21cc1b['run']({'options':{..._0x1dc36b,..._0x3d051b},'args':_0x3d3e99?[_0x442088,_0x3d3e99]:[_0x442088],'tdx':_0x24d20c});gracefulExit(_0x2435b2);}),psPzServiceCmd[a2_0x1830b0(0x257)]('update\x20<service_id>\x20[parent_segment]')[a2_0x1830b0(0x1d9)]('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x1830b0(0x1e5)]('--name\x20<name>',a2_0x1830b0(0x3ca))['option'](a2_0x1830b0(0x335),a2_0x1830b0(0x3b2))[a2_0x1830b0(0x2ab)](async(_0x4421b2,_0x4fcf89,_0x35403b)=>{const _0x57a91e=a2_0x1830b0,_0x9ff8fc=new PSPzServiceUpdateCommand(),_0x5afe48=program[_0x57a91e(0x343)](),_0xeb9e2e=await createTDXInstance(_0x5afe48),_0x1258c5=await _0x9ff8fc['run']({'options':{..._0x5afe48,..._0x35403b},'args':_0x4fcf89?[_0x4421b2,_0x4fcf89]:[_0x4421b2],'tdx':_0xeb9e2e});gracefulExit(_0x1258c5);}),psPzServiceCmd['command'](a2_0x1830b0(0xc4))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3c5))[a2_0x1830b0(0x2ab)](async(_0x311d55,_0x50f57d)=>{const _0x306019=a2_0x1830b0,_0x404bcf=new PSPzInitCommand(),_0x367c9b=program[_0x306019(0x343)](),_0x1a9adc=await createTDXInstance(_0x367c9b),_0xba823e=await _0x404bcf[_0x306019(0x36d)]({'options':{..._0x367c9b,..._0x50f57d},'args':_0x311d55?[_0x311d55]:[],'tdx':_0x1a9adc});gracefulExit(_0xba823e);});const psPzServiceTokenCmd=psPzServiceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x175))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x342));psPzServiceTokenCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x29d))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xf8))[a2_0x1830b0(0x3b4)]('--allowed-ips\x20<ips>',a2_0x1830b0(0x170))[a2_0x1830b0(0x3b4)]('--description\x20<text>',a2_0x1830b0(0x208))[a2_0x1830b0(0x2ab)](async(_0x5a1b11,_0x4713d3,_0x31d9b5,_0x284708)=>{const _0x46de7a=a2_0x1830b0,_0x246b8d=new PSPzServiceTokenCreateCommand(),_0xa4df8a=program[_0x46de7a(0x343)](),_0x25fa69=await createTDXInstance(_0xa4df8a),_0x23bbd7=await _0x246b8d['run']({'options':{..._0xa4df8a,..._0x284708},'args':_0x31d9b5?[_0x5a1b11,_0x4713d3,_0x31d9b5]:[_0x5a1b11,_0x4713d3],'tdx':_0x25fa69});gracefulExit(_0x23bbd7);}),psPzServiceTokenCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x17d))['description'](a2_0x1830b0(0xe6))[a2_0x1830b0(0x2ab)](async(_0x483ca7,_0x5efe90,_0x1efaef)=>{const _0x5b0036=a2_0x1830b0,_0x380ea9=new PSPzServiceTokenDeleteCommand(),_0x34bd18=program[_0x5b0036(0x343)](),_0x1e1a88=await createTDXInstance(_0x34bd18),_0x43504f=await _0x380ea9['run']({'options':{..._0x34bd18,..._0x1efaef},'args':_0x5efe90?[_0x483ca7,_0x5efe90]:[_0x483ca7],'tdx':_0x1e1a88});gracefulExit(_0x43504f);}),parentCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2ee))[a2_0x1830b0(0x1d9)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x3c6),'Master\x20database\x20name')[a2_0x1830b0(0x1e5)]('--table\x20<table>','Master\x20table\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x1a3))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2eb),a2_0x1830b0(0x299))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xe4),a2_0x1830b0(0x1fd))['option'](a2_0x1830b0(0x39c),a2_0x1830b0(0x148))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x14f),a2_0x1830b0(0x1ea))[a2_0x1830b0(0x3b4)]('--attributes-file\x20<file>',a2_0x1830b0(0x216))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x27d),'Behaviors\x20as\x20JSON\x20string')[a2_0x1830b0(0x3b4)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')['option'](a2_0x1830b0(0x393),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1ae),a2_0x1830b0(0x2a6))[a2_0x1830b0(0x2ab)](async(_0x4cbbe5,_0x59737f)=>{const _0xec507c=a2_0x1830b0,_0xf2f4ce=new ParentSegmentCreateCommand(),_0x137428=program['opts'](),_0x522836=await createTDXInstance(_0x137428),_0x5d003c=await _0xf2f4ce[_0xec507c(0x36d)]({'options':{..._0x137428,..._0x59737f},'args':[_0x4cbbe5],'tdx':_0x522836});gracefulExit(_0x5d003c);}),parentCmd['command'](a2_0x1830b0(0x21c))['description'](a2_0x1830b0(0x21a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x264))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2eb),a2_0x1830b0(0x39a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xe4),a2_0x1830b0(0xc7))['option'](a2_0x1830b0(0x39c),a2_0x1830b0(0x3a8))['option']('--add-attributes\x20<json>',a2_0x1830b0(0x1eb))['option']('--add-attributes-file\x20<file>',a2_0x1830b0(0x3da))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x137),a2_0x1830b0(0x2b2))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x329),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x1830b0(0x2ab)](async(_0x7276ad,_0x3fd317)=>{const _0x138c4c=a2_0x1830b0,_0x43ba50=new ParentSegmentUpdateCommand(),_0x210f3f=program['opts'](),_0x643fe4=await createTDXInstance(_0x210f3f),_0x210e53=await _0x43ba50[_0x138c4c(0x36d)]({'options':{..._0x210f3f,..._0x3fd317},'args':[_0x7276ad],'tdx':_0x643fe4});gracefulExit(_0x210e53);}),folderCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xe7))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x107))['option'](a2_0x1830b0(0x335),'Folder\x20description')[a2_0x1830b0(0x3b4)]('--parent-folder\x20<name>','Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x1830b0(0x2ab)](async(_0x221edf,_0x2ba9b5,_0x3ab5e6)=>{const _0x315e56=a2_0x1830b0,_0x20caa=new SegmentFolderCreateCommand(),_0x175bf0=program['opts'](),_0x2e062f=await createTDXInstance(_0x175bf0),_0x24f8b=await _0x20caa[_0x315e56(0x36d)]({'options':{..._0x175bf0,..._0x3ab5e6},'args':[_0x221edf,_0x2ba9b5],'tdx':_0x2e062f});gracefulExit(_0x24f8b);}),program['command']('activations\x20<segment_name>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x23c))[a2_0x1830b0(0x2ab)](async(_0x5f400e,_0x313e3e)=>{const _0x410950=a2_0x1830b0,_0x2a0234=new ActivationsCommand(),_0x5cb69b=program[_0x410950(0x343)](),_0x326b26=await createTDXInstance(_0x5cb69b),_0x4265d1=await _0x2a0234['run']({'options':{..._0x5cb69b,..._0x313e3e},'args':[_0x5f400e],'tdx':_0x326b26});gracefulExit(_0x4265d1);});const workflowCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x33e))[a2_0x1830b0(0x10e)]('wf')[a2_0x1830b0(0x1d9)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x166))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x153)),wfProjectListAction=async(_0x2ba8ac,_0x42193e)=>{const _0x21f2c0=a2_0x1830b0,_0xbc6841=new WorkflowProjectsCommand(),_0x125826=program[_0x21f2c0(0x343)](),_0x5806e3=await createTDXInstance(_0x125826),_0x206b8e=await _0xbc6841['run']({'options':{..._0x125826,..._0x42193e},'args':_0x2ba8ac?[_0x2ba8ac]:[],'tdx':_0x5806e3});gracefulExit(_0x206b8e);};wfProjectCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x316))[a2_0x1830b0(0x2ab)](wfProjectListAction),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xcf))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x144))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0xfc8dda,_0x243ee2)=>{const _0x40d159=a2_0x1830b0,_0x53e3e7=new WorkflowWorkflowsCommand(),_0x3f6aac=program[_0x40d159(0x343)](),_0x506e71=await createTDXInstance(_0x3f6aac),_0x21e13d=await _0x53e3e7[_0x40d159(0x36d)]({'options':{..._0x3f6aac,..._0x243ee2},'args':_0xfc8dda?[_0xfc8dda]:[],'tdx':_0x506e71});gracefulExit(_0x21e13d);};workflowCmd[a2_0x1830b0(0x257)]('workflows\x20[project]')['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x1830b0(0x2ab)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1830b0(0x257)]('session')['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0x1873c5,_0x1cd5e6)=>{const _0xe2ad9=a2_0x1830b0,_0x264b0a=new WorkflowSessionsCommand(),_0x20e6b1=program[_0xe2ad9(0x343)](),_0x1e7973=await createTDXInstance(_0x20e6b1),_0x3ba50d=await _0x264b0a[_0xe2ad9(0x36d)]({'options':{..._0x20e6b1,..._0x1cd5e6},'args':_0x1873c5?[_0x1873c5]:[],'tdx':_0x1e7973});gracefulExit(_0x3ba50d);};wfSessionCmd['command'](a2_0x1830b0(0x355))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x33b))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0x37d))[a2_0x1830b0(0x3b4)]('--from\x20<timestamp>',a2_0x1830b0(0x24d))['option'](a2_0x1830b0(0x29f),a2_0x1830b0(0x11d))[a2_0x1830b0(0x2ab)](wfSessionListAction),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x34a))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x360))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0x37d))['option'](a2_0x1830b0(0x275),a2_0x1830b0(0x24d))['option'](a2_0x1830b0(0x29f),a2_0x1830b0(0x11d))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x3781e7,_0x18d1fb)=>{const _0xfd4361=a2_0x1830b0,_0x1a6c2e=new WorkflowAttemptsCommand(),_0x2afc38=program[_0xfd4361(0x343)](),_0xd1d72c=await createTDXInstance(_0x2afc38),_0x2ab73d=await _0x1a6c2e[_0xfd4361(0x36d)]({'options':{..._0x2afc38,..._0x18d1fb},'args':_0x3781e7?[_0x3781e7]:[],'tdx':_0xd1d72c});gracefulExit(_0x2ab73d);},attemptCmd=workflowCmd['command']('attempt')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x337))['argument'](a2_0x1830b0(0x13b),'Attempt\x20ID')[a2_0x1830b0(0xff)](a2_0x1830b0(0x117),a2_0x1830b0(0x3af))[a2_0x1830b0(0xff)](a2_0x1830b0(0xd7),a2_0x1830b0(0x22f))['option'](a2_0x1830b0(0x385),a2_0x1830b0(0x203))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x31b),a2_0x1830b0(0x1ed))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x118),a2_0x1830b0(0x201))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x141),a2_0x1830b0(0xc1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xf9),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x1830b0(0x3b4)]('--include-retried','Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x1830b0(0x2ab)](async(_0x3b7d1f,_0x1e05b8,_0x6d2cb6,_0x251b10)=>{const _0x39e000=a2_0x1830b0;if(_0x3b7d1f==='list'){await wfAttemptListAction(_0x1e05b8,_0x251b10);return;}if(!_0x3b7d1f){attemptCmd['help']();return;}const _0x685b5a=program[_0x39e000(0x343)](),_0x464612=await createTDXInstance(_0x685b5a);let _0x31cf2c=0x0;if(!_0x1e05b8){const _0x1eab85=new WorkflowAttemptCommand();_0x31cf2c=await _0x1eab85[_0x39e000(0x36d)]({'options':{..._0x685b5a,..._0x251b10},'args':[_0x3b7d1f],'tdx':_0x464612});}else{if(_0x1e05b8===_0x39e000(0x350)){const _0x2837cd=new WorkflowLogsCommand();_0x31cf2c=await _0x2837cd['run']({'options':{..._0x685b5a,..._0x251b10},'args':_0x6d2cb6?[_0x3b7d1f,_0x6d2cb6]:[_0x3b7d1f],'tdx':_0x464612});}else{if(_0x1e05b8==='tasks'){const _0x54662d=new WorkflowTasksCommand();_0x31cf2c=await _0x54662d[_0x39e000(0x36d)]({'options':{..._0x685b5a,..._0x251b10},'args':[_0x3b7d1f],'tdx':_0x464612});}else{if(_0x1e05b8===_0x39e000(0x1a8)){const _0x518bb2=new WorkflowKillCommand();_0x31cf2c=await _0x518bb2[_0x39e000(0x36d)]({'options':{..._0x685b5a,..._0x251b10},'args':[_0x3b7d1f],'tdx':_0x464612});}else{if(_0x1e05b8===_0x39e000(0x2e5)){const _0x46b801=new WorkflowRetryCommand();_0x31cf2c=await _0x46b801[_0x39e000(0x36d)]({'options':{..._0x685b5a,..._0x251b10},'args':[_0x39e000(0x246)+_0x3b7d1f],'tdx':_0x464612});}else console['error'](_0x39e000(0x209)+_0x1e05b8),console[_0x39e000(0x2b9)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x31cf2c=0x1;}}}}gracefulExit(_0x31cf2c);});attemptCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x355))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2ae))['option'](a2_0x1830b0(0x363),a2_0x1830b0(0x12b))[a2_0x1830b0(0x2ab)](wfAttemptListAction),workflowCmd['command'](a2_0x1830b0(0x35a))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x321))['option']('--include-retried',a2_0x1830b0(0x12b))[a2_0x1830b0(0x2ab)](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x265))['option']('--follow',a2_0x1830b0(0x323))[a2_0x1830b0(0x3b4)]('--session-id\x20<id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3a9),a2_0x1830b0(0x1d0))['action'](async(_0x820703,_0x84e1d6)=>{const _0x45e9d7=new WorkflowTimelineCommand(),_0xc3eb1a=program['opts'](),_0x2d90e2=await createTDXInstance(_0xc3eb1a),_0x585f1a=await _0x45e9d7['run']({'options':{..._0xc3eb1a,..._0x84e1d6},'args':_0x820703?[_0x820703]:[],'tdx':_0x2d90e2});gracefulExit(_0x585f1a);}),workflowCmd[a2_0x1830b0(0x257)]('retry\x20<session-id>')['description'](a2_0x1830b0(0x15a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x328),a2_0x1830b0(0x2ff))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x141),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x1f6645,_0x57a91a)=>{const _0x4dff33=a2_0x1830b0,_0x5797e1=new WorkflowRetryCommand(),_0x38f819=program[_0x4dff33(0x343)](),_0x1b6131=await createTDXInstance(_0x38f819),_0x166d27=await _0x5797e1[_0x4dff33(0x36d)]({'options':{..._0x38f819,..._0x57a91a},'args':[_0x1f6645],'tdx':_0x1b6131});gracefulExit(_0x166d27);}),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1e1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x259))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xe0),a2_0x1830b0(0x3ac),(_0x75d2e4,_0x576ecc=[])=>[..._0x576ecc,_0x75d2e4],[])[a2_0x1830b0(0x3b4)]('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')['action'](async(_0x27b00d,_0x37a6a9)=>{const _0x49054d=a2_0x1830b0,_0x1f41eb=new WorkflowRunCommand(),_0x55c3b2=program[_0x49054d(0x343)](),_0x230266=await createTDXInstance(_0x55c3b2),_0x52f5b2=await _0x1f41eb[_0x49054d(0x36d)]({'options':{..._0x55c3b2,..._0x37a6a9},'args':_0x27b00d?[_0x27b00d]:[],'tdx':_0x230266});gracefulExit(_0x52f5b2);}),workflowCmd['command'](a2_0x1830b0(0x22e))[a2_0x1830b0(0x1d9)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')['option'](a2_0x1830b0(0x34c),a2_0x1830b0(0x1f6))['action'](async(_0x3509ef,_0x129b86,_0x23c7d2)=>{const _0x4a7ee0=a2_0x1830b0,_0x36e8fd=new WorkflowDownloadCommand(),_0x318cce=program[_0x4a7ee0(0x343)](),_0x5640e9=await createTDXInstance(_0x318cce),_0x5e93d6=await _0x36e8fd[_0x4a7ee0(0x36d)]({'options':{..._0x318cce,..._0x23c7d2},'args':[_0x3509ef,_0x129b86||'.'],'tdx':_0x5640e9});gracefulExit(_0x5e93d6);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1af))['option'](a2_0x1830b0(0x34c),a2_0x1830b0(0x1a2))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x207))[a2_0x1830b0(0x2ab)](async(_0x3bd631,_0x202486,_0x55a224)=>{const _0x2e0283=a2_0x1830b0,_0x1b5088=new WorkflowPullCommand(),_0x1a2c14=program[_0x2e0283(0x343)](),_0x4b782f=await createTDXInstance(_0x1a2c14),_0x1391f7=await _0x1b5088[_0x2e0283(0x36d)]({'options':{..._0x1a2c14,..._0x55a224},'args':_0x202486?[_0x3bd631,_0x202486]:[_0x3bd631],'tdx':_0x4b782f});gracefulExit(_0x1391f7);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x126))['option'](a2_0x1830b0(0x34c),a2_0x1830b0(0x22d))['option'](a2_0x1830b0(0x2db),a2_0x1830b0(0x1cf))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1ba),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x1830b0(0x2ab)](async(_0xadfa12,_0xe1abcf)=>{const _0x40bb2f=a2_0x1830b0,_0x5a9f62=new WorkflowPushCommand(),_0x4e3db2=program['opts'](),_0x4ddc60=await createTDXInstance(_0x4e3db2),_0x96b0c3=await _0x5a9f62[_0x40bb2f(0x36d)]({'options':{..._0x4e3db2,..._0xe1abcf},'args':_0xadfa12?[_0xadfa12]:[],'tdx':_0x4ddc60});gracefulExit(_0x96b0c3);}),workflowCmd['command'](a2_0x1830b0(0x174))[a2_0x1830b0(0x1d9)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x150),a2_0x1830b0(0x2d9))['option'](a2_0x1830b0(0x34c),a2_0x1830b0(0x225))['option'](a2_0x1830b0(0x1ba),a2_0x1830b0(0x3be))[a2_0x1830b0(0x2ab)](async(_0x5ebf44,_0x18ab00)=>{const _0xc1b7bd=a2_0x1830b0,_0x2736ab=new WorkflowUploadCommand(),_0x3a8e21=program[_0xc1b7bd(0x343)](),_0x3e23cc=await createTDXInstance(_0x3a8e21),_0x1558b5=await _0x2736ab[_0xc1b7bd(0x36d)]({'options':{..._0x3a8e21,..._0x18ab00},'args':_0x5ebf44?[_0x5ebf44]:[],'tdx':_0x3e23cc});gracefulExit(_0x1558b5);}),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x12d))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1bd))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x150),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x34c),a2_0x1830b0(0x22d))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x1d5))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1ba),a2_0x1830b0(0x3be))['action'](async(_0x3495c9,_0x1473da)=>{const _0xac9e6b=a2_0x1830b0,_0xc0bada=new WorkflowCloneCommand(),_0x2ac420=program[_0xac9e6b(0x343)](),_0x1b3ad0=await createTDXInstance(_0x2ac420),_0x16efe6=await _0xc0bada[_0xac9e6b(0x36d)]({'options':{..._0x2ac420,..._0x1473da},'args':_0x3495c9?[_0x3495c9]:[],'tdx':_0x1b3ad0});gracefulExit(_0x16efe6);}),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x303))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x13d))[a2_0x1830b0(0x2ab)](async(_0x4ea335,_0x186898)=>{const _0x570b7f=a2_0x1830b0,_0x5ae76b=new WorkflowDeleteCommand(),_0x40d868=program[_0x570b7f(0x343)](),_0x2a5d2a=await createTDXInstance(_0x40d868),_0x4151dd=await _0x5ae76b['run']({'options':{..._0x40d868,..._0x186898},'args':[_0x4ea335],'tdx':_0x2a5d2a});gracefulExit(_0x4151dd);}),workflowCmd[a2_0x1830b0(0x257)]('use\x20[project]')[a2_0x1830b0(0x1d9)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')['option'](a2_0x1830b0(0x10b),a2_0x1830b0(0x1f9))[a2_0x1830b0(0x2ab)](async(_0x2e5d27,_0x2da00a)=>{const _0x794a00=a2_0x1830b0,_0x487ca7=new WorkflowUseCommand(),_0x42c872=program[_0x794a00(0x343)](),_0x3c7ef2=await createTDXInstance(_0x42c872),_0x5df990=await _0x487ca7[_0x794a00(0x36d)]({'options':{..._0x42c872,..._0x2da00a},'args':_0x2e5d27?[_0x2e5d27]:[],'tdx':_0x3c7ef2});gracefulExit(_0x5df990);});const wfSecretsCmd=workflowCmd['command']('secrets')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xe5));wfSecretsCmd['command'](a2_0x1830b0(0x355))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x332))[a2_0x1830b0(0x2ab)](async(_0x325158,_0x282076)=>{const _0x1e5df0=a2_0x1830b0,_0x2722d4=new WorkflowSecretsListCommand(),_0x36ed0d=program[_0x1e5df0(0x343)](),_0xd38869=await createTDXInstance(_0x36ed0d),_0x4ff102=await _0x2722d4['run']({'options':{..._0x36ed0d,..._0x282076},'args':_0x325158?[_0x325158]:[],'tdx':_0xd38869});gracefulExit(_0x4ff102);}),wfSecretsCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x384))['description']('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')[a2_0x1830b0(0x2ab)](async(_0xd27dad,_0x42e54a)=>{const _0x12ff11=a2_0x1830b0,_0x979fb6=new WorkflowSecretsSetCommand(),_0x5c4fa9=program[_0x12ff11(0x343)](),_0x1e6a61=await createTDXInstance(_0x5c4fa9),_0x126d7d=await _0x979fb6[_0x12ff11(0x36d)]({'options':{..._0x5c4fa9,..._0x42e54a},'args':_0xd27dad,'tdx':_0x1e6a61});gracefulExit(_0x126d7d);}),wfSecretsCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x215))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x314))[a2_0x1830b0(0x2ab)](async(_0x33e2ee,_0x2f941a)=>{const _0x3d62aa=a2_0x1830b0,_0x369e59=new WorkflowSecretsDeleteCommand(),_0x57e76e=program[_0x3d62aa(0x343)](),_0x4ec913=await createTDXInstance(_0x57e76e),_0x1c090c=await _0x369e59[_0x3d62aa(0x36d)]({'options':{..._0x57e76e,..._0x2f941a},'args':_0x33e2ee,'tdx':_0x4ec913});gracefulExit(_0x1c090c);});function a2_0x489a(){const _0xe2be46=['Add\x20behaviors\x20as\x20JSON\x20string','Email\x20template\x20management','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Maximum\x20rows\x20to\x20display','Show\x20all\x20files\x20including\x20valid\x20ones','--version','--default','error','List\x20composable\x20audiences','Run\x20tests\x20for\x20an\x20LLM\x20agent','Set\x20a\x20profile\x20configuration\x20value','--in\x20<database>','Show\x20items\x20updated\x20within\x20N\x20days','Resume\x20activations\x20in\x20an\x20RT\x20journey','List\x20all\x20versions\x20of\x20a\x20journey','705224nWXwkt','--interval\x20<range>','--format\x20<format>','replace','--method\x20<pm>','Move\x20to\x20folder','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Comma-separated\x20tags','show\x20<agent-name>','pull\x20[workspace]','resume\x20<name-or-id>','chdir','--stage\x20<name>','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Agent\x20prompt/instructions','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','configureHelp','--verbose','hidden','LLM\x20project\x20management','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','kill\x20<job-id>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Override\x20project\x20name','Run\x20a\x20scheduled\x20query\x20immediately','--dry-run','Validate\x20template\x20YAML\x20files\x20locally','--html-file\x20<path>','Initial\x20status','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','--stream','Workspace\x20name','List\x20activations\x20for\x20a\x20journey','Transition\x20a\x20task\x20to\x20a\x20new\x20status','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','retry','Show\x20a\x20specific\x20realtime\x20personalization','log','[DEPRECATED]\x20Segment\x20folder\x20management','INFO','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--schedule-type\x20<type>','trino','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','create\x20<name>','Template\x20name','--llm-project\x20<name>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Workspace\x20management','Scheduled\x20query\x20management\x20commands','AI-native\x20CLI\x20for\x20Treasure\x20Data','timeout','Maximum\x20number\x20of\x20nodes','query\x20[sql]','Submit\x20a\x20job','Launch\x20a\x20campaign','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','databases\x20[pattern]','show\x20<name>','Remove\x20API\x20key\x20from\x20system\x20keychain','-u,\x20--use','Resume\x20from\x20specific\x20task','outputHelp','registeredArguments','--enriched','delete\x20<project-name-or-id>','template','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','update\x20<segment_name>','--no-count-population','settings\x20<type>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','database','Delete\x20a\x20profile','view\x20<name-or-path>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','--full','\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','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','resume_activations\x20<journeyId>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--tsv','-1d','--timeout\x20<seconds>','Job\x20management\x20commands','--reason\x20<text>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','tables\x20[pattern]','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','push\x20[file]','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Follow/watch\x20timeline\x20for\x20running\x20attempts','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','pull\x20[workspace-name]','Show\x20segment\x20schema\x20(column\x20types)','--from-task\x20<task>','--add-behaviors-file\x20<file>','--trace','Update\x20a\x20realtime\x20personalization\x20entity','\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','journeys\x20[pattern]','System\x20prompt/instructions\x20(default:\x20empty)','--from\x20<date>','view\x20[segment_name]','16650wrZIBM','List\x20secret\x20keys\x20for\x20a\x20project','jobs','segment','--description\x20<text>','6694ncUEdZ','Workflow\x20attempt\x20management','templates\x20[pattern]','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','workflow','Output\x20file\x20path','List\x20all\x20users\x20in\x20the\x20account','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Personalization\x20service\x20token\x20management','opts','tdx','use\x20<project-name>','--model\x20<name>','--table','delete\x20<personalization_id>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','sessions\x20[project]','Retry\x20limit\x20(0\x20to\x2032)','--revision\x20<revision>','Resume\x20a\x20conversation\x20(shows\x20selector)','push\x20[target]','--prompt\x20<text>','logs','Run\x20Trino\x20query\x20with\x20streaming\x20results','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','forEach','after','list\x20[project]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Update\x20a\x20workspace','Temperature\x20(0.0-2.0,\x20default:\x200.7)','parent','attempts\x20[project]','Get\x20job\x20results','update\x20<name-or-id>','Enable\x20a\x20disabled\x20workflow\x20schedule','Name\x20for\x20the\x20duplicated\x20campaign','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','isArray','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','--include-retried','--data\x20<data>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Delivery\x20operations\x20(email\x20senders)','Show\x20Kanban\x20board\x20view\x20of\x20tasks','Data\x20connection\x20management\x20(for\x20activations/exports)','TRACE','chats','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','preAction','run','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','fields\x20[name]','--parent-segment\x20<name>','--file\x20<path>','argv','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20available\x20connector\x20types','--json','history\x20<name>','Show\x20email\x20template\x20details','--dir\x20<dir>','result\x20<job-id>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','history\x20[chat-id]','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Database\x20management\x20commands','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--type\x20<type>','connection','--version\x20<number>','find','set\x20<args...>','--include-subtasks','--debug','AI-native\x20work\x20management','Apply\x20a\x20template','usage','Show\x20schedule\x20execution\x20history','Create\x20an\x20email\x20template','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','schedules','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','models','--email-sender-id\x20<id>','Clear\x20session\x20context','--customer-group\x20<json>','Update\x20a\x20campaign','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','json','-c,\x20--continue','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Include\x20raw\x20history\x20data\x20in\x20output','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Campaign\x20description','--timezone\x20<tz>','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','set','List\x20jobs','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','List\x20composable\x20segments\x20for\x20an\x20audience','Show\x20only\x20master\x20table\x20validation','--job-type\x20<type>','Campaign\x20name','--start-at\x20<datetime>','Push\x20without\x20confirmation','Updated\x20timezone','--attempt-id\x20<id>','-y,\x20--yes','service','Workflow\x20parameter\x20(repeatable)','HTML\x20template\x20content','Check\x20for\x20updates\x20without\x20installing','Action:\x20logs,\x20tasks,\x20kill,\x20retry','get','create\x20<segment_name>','New\x20service\x20description','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','option','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--new','Show\x20document\x20details','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','--name\x20<text>','6oExgVN','Update\x20an\x20existing\x20agent','Database\x20name\x20(required)','Show\x20segment\x20details\x20(alias\x20for\x20view)','Skip\x20validation\x20of\x20.dig\x20files','Arguments:','resume\x20<name-or-path>','-C,\x20--directory\x20<path>','long','Enable\x20verbose\x20logging','\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','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','--database\x20<db>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','New\x20service\x20name','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','--help','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--max-depth\x20<depth>','--name\x20<new-name>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Skip\x20confirmation\x20prompt','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Personalization\x20description','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Name\x20for\x20the\x20new\x20project\x20(required)','Delete\x20a\x20campaign','Create\x20a\x20new\x20campaign','-f,\x20--file\x20<path>','clone\x20[source]','Add\x20attributes\x20from\x20JSON\x20file','delete\x20<name-or-id>','users','Delay\x20in\x20seconds\x20before\x20execution','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','gitRevision','Initialize\x20a\x20new\x20workspace','list','validate\x20[target]','Skip\x20confirmation\x20prompts','Manage\x20workflow\x20schedules\x20(enable/disable)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Table\x20management\x20commands','stats\x20<name-or-path>','--master','catch','Show\x20always-on\x20campaign\x20details','Open\x20segment\x20in\x20web\x20browser','-o,\x20--output\x20<file>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','show\x20<folder_ref>','init\x20[name]','Journey\x20version\x20management','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Updated\x20schedule\x20option','subcommandTerm','variadic','--session\x20<id>','--in\x20<db>','1779656UlZRft','--jsonl','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','projects\x20[pattern]','Pull\x20child\x20segments\x20to\x20YAML\x20files','fields\x20[parent_name]','Show\x20what\x20would\x20be\x20written\x20without\x20writing','grapesjs','includes','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','Email\x20sender\x20ID\x20for\x20delivery','[task-name]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Generate\x20test\x20conversations\x20without\x20evaluation','--cron\x20<expression>','trace','Always-on\x20campaign\x20management','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','isDirectory','--param\x20<key=value>','directory','delete\x20<service_id>\x20[parent_segment]','Output\x20folder\x20(default:\x20{project_name}.llm)','--schedule-option\x20<value>','Manage\x20workflow\x20project\x20secrets','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','create\x20<parent_name>\x20<folder_name>','Delete\x20a\x20scheduled\x20query','--kind\x20<type>','Show\x20stats\x20for\x20specific\x20stage','work','allowUnknownOption','\x20(resolved\x20to\x20','--limit\x20<number>','schedule','flags','update\x20<agent-name>','upgrade\x20[version]','Save\x20output\x20to\x20file','Show\x20the\x20most\x20recent\x20chat','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','--force','--body\x20<body>','--include-history','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Change\x20to\x20directory\x20before\x20executing\x20command','Read\x20query\x20from\x20file','argument','Show\x20master\x20table\x20sample\x20data','-w,\x20--web','debug','Show\x20job\x20details','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','\x22.\x20Must\x20be\x20a\x20number.','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Create\x20segment\x20folder','Pull\x20campaigns\x20to\x20YAML\x20files','Limit\x20number\x20of\x20rows','\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','--clear','Campaign\x20management','Include\x20all\x20items\x20(no\x20stale\x20filtering)','alias','push\x20[name]','Parent\x20segment\x20management','options','Usage:\x20','Validate\x20journey\x20YAML\x20files\x20locally','\x20-\x20built\x20','--limit\x20<rows>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','[action]','--resume-from\x20<task>','New\x20campaign\x20name','Personalization\x20management','use\x20<name>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','End\x20time\x20filter\x20(ISO\x208601\x20format)','--attribute\x20[name]','show\x20<policy>','logLevel','Describe\x20table\x20schema','JSON\x20columns\x20for\x20connector\x20(comma-separated)','96gsOqEb','create','finish\x20<name-or-id>','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','show\x20<name-or-id>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','use\x20[resource]\x20[value]','Show\x20connection\x20details\x20by\x20name','Include\x20retried\x20attempts','Assignee','clone\x20[source-dir]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Launch\x20an\x20always-on\x20campaign','--reeval','Read\x20HTML\x20template\x20from\x20file','Folder\x20name\x20for\x20organization','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Resume\x20a\x20paused\x20campaign','slice','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--add-behaviors\x20<json>','Preview\x20composable\x20segment\x20query\x20on\x20CDW','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','INVALID_ARGUMENT','[attempt-id]','Continue\x20most\x20recent\x20conversation','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Starter\x20message','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','required','--params\x20<json>','flatMap','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--result\x20<target>','Composable\x20audience\x20name','Agent\x20name','Timezone\x20(e.g.,\x20America/Los_Angeles)','\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','Show\x20schedule\x20details','Delete\x20an\x20LLM\x20project','4292249yJFwOf','--num\x20<1-10>','--no-eval','--attributes\x20<json>','--name\x20<name>','test\x20[path]','join','Workflow\x20project\x20management','27oTxglf','parent_segment','create\x20<name-or-path>','submit\x20[query]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','set\x20<key=value>','--priority\x20<-2~2>','Version\x20number\x20to\x20view','Starting\x20offset\x20(default:\x200)','describe','-d,\x20--database\x20<db>','Access\x20control\x20policy\x20commands','folder','llm','--days\x20<n>','-o,\x20--output\x20<dir>','project','hook','show\x20<personalization_id>','parents\x20[pattern]','create\x20[name]','--sections\x20<json>','Pause\x20an\x20always-on\x20campaign','createAsync','Path\x20is\x20not\x20a\x20directory:\x20','job','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Read\x20SQL\x20query\x20from\x20file','Job\x20priority\x20(-2\x20to\x202)','Validate\x20campaign\x20YAML\x20files\x20locally','upload\x20[project-name-or-dir]','token','padEnd','CDP\x20Journey\x20Orchestration\x20commands','--database\x20<name>','delete\x20<name>','patch\x20<personalization_id>','--segment\x20<path>','5642890AsbbFD','delete\x20<token_id>\x20[parent_segment]','List\x20all\x20workflow\x20schedules','-H,\x20--header\x20<header>','use\x20<path>','-r,\x20--resume','Sections\x20as\x20an\x20inline\x20JSON\x20array','Get\x20current\x20RT\x20configuration\x20version\x20status','--yes','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','audience','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','log\x20<chat-id>','desc','cas','497346WoYWzW','Make\x20segment\x20invisible\x20(default:\x20visible)','--from\x20<n>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Output\x20as\x20JSON\x20Lines','Duplicate\x20an\x20always-on\x20campaign','Open\x20journey\x20in\x20web\x20browser','Query\x20engine\x20version','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--name\x20<new_name>','1XxffJC','allowExcessArguments','colorFn','Document\x20body\x20text','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Delete\x20an\x20agent','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Plaintext\x20template\x20content','show\x20[name]','List\x20all\x20available\x20profiles','jsonl','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Output\x20as\x20JSON','Pull\x20specific\x20revision\x20(default:\x20latest)','Parent\x20segment\x20description','sql\x20[name]','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','--enable-utm-tracking','show\x20[segment_name]','kill','map','--audience-id\x20<id>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--retry-limit\x20<0~32>','enable\x20<id>','--customer-group-file\x20<file>','Pull\x20workflow\x20project\x20to\x20local\x20folder','injectIntoOptions','Show\x20workspace\x20details','board','--workspace\x20<name>','accessToken','argumentTerm','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','setup','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Request\x20body\x20as\x20JSON\x20string','--skip-validation','argumentDescription','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','agents\x20[pattern]','--subject\x20<subject>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a','Pause\x20a\x20campaign','validate\x20[name]','backup\x20<name>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Pause\x20a\x20running\x20journey','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','-d,\x20--database\x20<database>','Finish\x20an\x20always-on\x20campaign','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','create\x20<name>\x20[parent_segment]','--path\x20<file-path>','Update\x20an\x20always-on\x20campaign','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','0.7','Preview\x20changes\x20without\x20pushing','Show\x20timeline\x20for\x20specific\x20attempt','--public','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','_hidden','preview\x20[file]','Preview\x20without\x20creating\x20the\x20project','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Composable\x20segment\x20commands','site','description','aliases','Show\x20journey\x20statistics','agent','list\x20[path]','List\x20journeys\x20in\x20current\x20context','name','auth','run\x20[workflow]','Pause\x20activations\x20in\x20an\x20RT\x20journey','--starter-message\x20<text>','Delete\x20an\x20email\x20template','requiredOption','format','Database\x20name','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Attributes\x20as\x20JSON\x20string','Add\x20attributes\x20as\x20JSON\x20string','--engine-version\x20<version>','Reason\x20for\x20killing\x20the\x20attempt','tsv','user','list\x20[pattern]','engage','--assignee\x20<assignee>','Resume\x20a\x20paused\x20always-on\x20campaign','configuration_versions\x20[name]','Options:','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','connections','Clear\x20workflow\x20project\x20context','Overwrite\x20local\x20changes\x20without\x20confirmation','Database\x20to\x20query\x20(default:\x20information_schema)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','list\x20[audience_name]','Setup\x20API\x20key\x20authentication\x20interactively','--github\x20<owner/repo>','Resume\x20from\x20specific\x20task\x20(retry)','Personalization\x20service\x20management','Include\x20subtasks\x20in\x20tasks\x20output','--all','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--tags\x20<tags>','Preview\x20changes\x20without\x20writing\x20files','Token\x20description','Unknown\x20action:\x20','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','preview\x20[name]','--editor-type\x20<type>','Cron\x20expression\x20for\x20scheduling','pause\x20<name-or-id>','table','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Trino\x20catalog\x20(default:\x20td)','columns\x20<name-or-path>','Delete\x20a\x20realtime\x20personalization','delete\x20<args...>','Attributes\x20from\x20JSON\x20file','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','run\x20[name]','optionDescription','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--next','update\x20<name>','--no-color','duplicate\x20<name-or-id>','--status\x20<status>','Service\x20description','--folder\x20<name>','beefree','commands','show\x20<service_id>\x20[parent_segment]','Revision\x20name\x20(default:\x20timestamp)','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','buildTime','chat\x20[message...]','--behavior\x20[name]','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Custom\x20revision\x20name\x20(default:\x20timestamp)','download\x20<project-name>\x20[output-dir]','Task\x20name\x20for\x20logs\x20action','Workspace\x20name\x20(required)','item','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20agent\x20details','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','statusline','desc\x20[name]','Output\x20file\x20path\x20(default:\x20<name>.yml)','optionTerm','Output\x20directory','--type\x20<api_type>','Agent\x20description','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','links\x20<name>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','List\x20available\x20LLM\x20models','--to\x20<date>','length','entries','claude-4.5-sonnet','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','...','attempt:','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Interactive\x20chat\x20selector','tdx\x20',',\x20version\x20','--temperature\x20<n>','noColor','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Campaign\x20type\x20(email\x20or\x20push)','Pull\x20specific\x20campaign\x20by\x20name','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','api\x20[endpoint]','--account-name\x20<name>','traffic\x20<name-or-path>','addHelpText','disable\x20<id>','Show\x20authentication\x20status\x20and\x20current\x20context','command','--plaintext\x20<text>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','--rule-file\x20<file>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','push\x20[parent_or_file]','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Authentication\x20management','--json-columns\x20<cols>','always-on-campaigns\x20[pattern]','push\x20[path]','Updated\x20description','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Query\x20type:\x20trino\x20or\x20hive','us01','login','RT\x202.0\x20configuration\x20management','exit','CDP\x20segment\x20management\x20commands','List\x20agents\x20in\x20current\x20project','describe\x20[table]','segments\x20[path]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','New\x20template\x20name','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','remove\x20<name>','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','--from\x20<timestamp>','--last','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Result\x20output\x20destination\x20URL','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Create\x20a\x20new\x20always-on\x20campaign','view\x20[name]','--behaviors\x20<json>','filter','pull\x20[project]\x20[agent-name]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','delivery','-p,\x20--profile\x20<name>','--audience\x20<name>','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','LLM\x20agent\x20management','stdout','journey','subcommandDescription','push','6996EjnFgs','--color','7coZenn','--description\x20<desc>','apiKey','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','show\x20[table]','--limit\x20<n>','Start\x20a\x20new\x20chat\x20session','isTTY','desc\x20[segment_name]','Commands:','information_schema','pull\x20[name]','Filtering\x20rule\x20from\x20JSON\x20file','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Workspace\x20description','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','--html\x20<html>','create\x20<name>\x20<service_id>\x20[parent_segment]','-f,\x20--force','--to\x20<timestamp>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','engage_workspace','--rule\x20<json>','folders\x20<parent_name>','_list-commands','--to\x20<n>','Customer\x20group\x20from\x20JSON\x20file','--template\x20<name>','padWidth','Timezone\x20for\x20cron','--delay\x20<seconds>','action','senders\x20[pattern]','Create\x20a\x20new\x20LLM\x20project','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--agent\x20<ref>','Preview\x20operation\x20without\x20executing'];a2_0x489a=function(){return _0xe2be46;};return a2_0x489a();}const wfScheduleCmd=workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xef))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3e4));wfScheduleCmd['command'](a2_0x1830b0(0x1ad))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x35d))[a2_0x1830b0(0x2ab)](async(_0x258d47,_0x46e5bd)=>{const _0x837b88=a2_0x1830b0,_0xd54261=new WorkflowScheduleEnableCommand(),_0x57defe=program[_0x837b88(0x343)](),_0x564266=await createTDXInstance(_0x57defe),_0x49b311=await _0xd54261[_0x837b88(0x36d)]({'options':{..._0x57defe,..._0x46e5bd},'args':[_0x258d47],'tdx':_0x564266});gracefulExit(_0x49b311);}),wfScheduleCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x255))[a2_0x1830b0(0x1d9)]('Disable\x20a\x20workflow\x20schedule')['action'](async(_0x21d5e3,_0x5cc4aa)=>{const _0x3d6292=a2_0x1830b0,_0x3821cf=new WorkflowScheduleDisableCommand(),_0x49b40a=program[_0x3d6292(0x343)](),_0xe74418=await createTDXInstance(_0x49b40a),_0x22e8bc=await _0x3821cf[_0x3d6292(0x36d)]({'options':{..._0x49b40a,..._0x5cc4aa},'args':[_0x21d5e3],'tdx':_0xe74418});gracefulExit(_0x22e8bc);}),workflowCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x38d))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x17e))['action'](async _0x3022ac=>{const _0xf8f578=a2_0x1830b0,_0x1bb301=new WorkflowSchedulesCommand(),_0x333daa=program[_0xf8f578(0x343)](),_0x3295ca=await createTDXInstance(_0x333daa),_0x3375cb=await _0x1bb301['run']({'options':{..._0x333daa,..._0x3022ac},'args':[],'tdx':_0x3295ca});gracefulExit(_0x3375cb);});const jobCmd=program['command'](a2_0x1830b0(0x16f))['description'](a2_0x1830b0(0x31a)),jobListAction=async _0x15afec=>{const _0x234d61=a2_0x1830b0,_0x4cb106=new JobListCommand(),_0x553a60=program[_0x234d61(0x343)](),_0x1355f8=await createTDXInstance(_0x553a60),_0x43c09f=await _0x4cb106[_0x234d61(0x36d)]({'options':{..._0x553a60,..._0x15afec},'args':[],'tdx':_0x1355f8});gracefulExit(_0x43c09f);};jobCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3a0))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0x307))[a2_0x1830b0(0x2ab)](jobListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x333),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x22c))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x1830b0(0x2ab)](jobListAction),jobCmd[a2_0x1830b0(0x257)]('show\x20<job-id>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x103))[a2_0x1830b0(0x2ab)](async(_0x470108,_0x344298)=>{const _0x3fc2b4=a2_0x1830b0,_0x31d34=new JobShowCommand(),_0x163c1d=program[_0x3fc2b4(0x343)](),_0x3dc193=await createTDXInstance(_0x163c1d),_0x2df94b=await _0x31d34['run']({'options':{..._0x163c1d,..._0x344298},'args':[_0x470108],'tdx':_0x3dc193});gracefulExit(_0x2df94b);}),jobCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2d7))[a2_0x1830b0(0x1d9)]('Kill\x20a\x20job')[a2_0x1830b0(0x2ab)](async(_0x4565e,_0x206a4a)=>{const _0x5ec98e=a2_0x1830b0,_0x3ca748=new JobKillCommand(),_0x5eb79d=program[_0x5ec98e(0x343)](),_0x260fdd=await createTDXInstance(_0x5eb79d),_0x3dd2f0=await _0x3ca748['run']({'options':{..._0x5eb79d,..._0x206a4a},'args':[_0x4565e],'tdx':_0x260fdd});gracefulExit(_0x3dd2f0);}),jobCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x157))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2f8))['option'](a2_0x1830b0(0x3a4),a2_0x1830b0(0x341),'trino')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3d8),a2_0x1830b0(0xfe))['option'](a2_0x1830b0(0x178),'Database\x20name\x20(default:\x20information_schema)',a2_0x1830b0(0x296))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x145),'Result\x20export\x20destination\x20(URL\x20or\x20JSON)')['action'](async(_0x598e67,_0x106745)=>{const _0x3d3599=a2_0x1830b0,_0x527e69=new JobSubmitCommand(),_0x2c4230=program[_0x3d3599(0x343)](),_0x2de59a=await createTDXInstance(_0x2c4230),_0x5c35be=await _0x527e69[_0x3d3599(0x36d)]({'options':{..._0x2c4230,..._0x106745},'args':_0x598e67?[_0x598e67]:[],'tdx':_0x2de59a});gracefulExit(_0x5c35be);}),jobCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x379))['description'](a2_0x1830b0(0x35b))[a2_0x1830b0(0x2ab)](async(_0x4223ae,_0x4ab48d)=>{const _0x41cdd2=a2_0x1830b0,_0x4a3564=new JobResultCommand(),_0x1ffc0=program[_0x41cdd2(0x343)](),_0x446be9=await createTDXInstance(_0x1ffc0),_0xcfada8=await _0x4a3564['run']({'options':{..._0x1ffc0,..._0x4ab48d},'args':[_0x4223ae],'tdx':_0x446be9});gracefulExit(_0xcfada8);});const scheduleCmd=jobCmd['command'](a2_0x1830b0(0xef))['description'](a2_0x1830b0(0x2f3));scheduleCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))['description'](a2_0x1830b0(0x22a))[a2_0x1830b0(0x2ab)](async(_0x35e9d9,_0x38ae9a)=>{const _0x9d53d2=a2_0x1830b0,_0x5780b1=new ScheduleListCommand(),_0x3706f6=program[_0x9d53d2(0x343)](),_0x5a0695=await createTDXInstance(_0x3706f6),_0x19db51=await _0x5780b1['run']({'options':{..._0x3706f6,..._0x38ae9a},'args':_0x35e9d9?[_0x35e9d9]:[],'tdx':_0x5a0695});gracefulExit(_0x19db51);}),scheduleCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2fc))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x14a))[a2_0x1830b0(0x2ab)](async(_0x2561f5,_0x290a5a)=>{const _0x2a4fb1=new ScheduleShowCommand(),_0x4ff58b=program['opts'](),_0x21e9bf=await createTDXInstance(_0x4ff58b),_0x464b3f=await _0x2a4fb1['run']({'options':{..._0x4ff58b,..._0x290a5a},'args':[_0x2561f5],'tdx':_0x21e9bf});gracefulExit(_0x464b3f);}),scheduleCmd['command'](a2_0x1830b0(0x2ee))[a2_0x1830b0(0x1d9)]('Create\x20a\x20scheduled\x20query')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x160),a2_0x1830b0(0x3bc))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xcb),a2_0x1830b0(0x2ea))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x3d8),a2_0x1830b0(0xfe))['option'](a2_0x1830b0(0x380),a2_0x1830b0(0x266),a2_0x1830b0(0x2ec))['option'](a2_0x1830b0(0xdb),'Cron\x20expression\x20for\x20scheduling')['option'](a2_0x1830b0(0x39c),'Timezone\x20for\x20cron\x20(default:\x20UTC)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2aa),'Delay\x20in\x20seconds\x20before\x20execution')['option'](a2_0x1830b0(0x15c),a2_0x1830b0(0x172))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1ac),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1ec),'Query\x20engine\x20version')['option']('--result\x20<url>',a2_0x1830b0(0x279))[a2_0x1830b0(0x2ab)](async(_0x37bf5f,_0x91d418)=>{const _0x24d175=a2_0x1830b0,_0x234ff2=new ScheduleCreateCommand(),_0x22b550=program[_0x24d175(0x343)](),_0x24a1d5=await createTDXInstance(_0x22b550);_0x91d418['in']&&(_0x91d418[_0x24d175(0x30e)]=_0x91d418['in']);const _0x1f941c=await _0x234ff2['run']({'options':{..._0x22b550,..._0x91d418},'args':[_0x37bf5f],'tdx':_0x24a1d5});gracefulExit(_0x1f941c);}),scheduleCmd['command'](a2_0x1830b0(0x21c))[a2_0x1830b0(0x1d9)]('Update\x20a\x20scheduled\x20query')['option'](a2_0x1830b0(0x160),a2_0x1830b0(0x1e7))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xcb),a2_0x1830b0(0x2ea))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3d8),a2_0x1830b0(0xfe))['option'](a2_0x1830b0(0x380),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xdb),a2_0x1830b0(0x20e))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x39c),a2_0x1830b0(0x2a9))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2aa),a2_0x1830b0(0x3dd))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x15c),a2_0x1830b0(0x172))[a2_0x1830b0(0x3b4)]('--retry-limit\x20<0~32>',a2_0x1830b0(0x34b))['option']('--engine-version\x20<version>',a2_0x1830b0(0x192))[a2_0x1830b0(0x3b4)]('--result\x20<url>',a2_0x1830b0(0x279))['action'](async(_0x458a84,_0x30af30)=>{const _0x3f3cc5=a2_0x1830b0,_0x4cc0c8=new ScheduleUpdateCommand(),_0x190862=program[_0x3f3cc5(0x343)](),_0x5e5b10=await createTDXInstance(_0x190862);_0x30af30['in']&&(_0x30af30[_0x3f3cc5(0x30e)]=_0x30af30['in']);const _0x3537d5=await _0x4cc0c8[_0x3f3cc5(0x36d)]({'options':{..._0x190862,..._0x30af30},'args':[_0x458a84],'tdx':_0x5e5b10});gracefulExit(_0x3537d5);}),scheduleCmd['command']('delete\x20<name>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xe8))[a2_0x1830b0(0x2ab)](async(_0x4beb93,_0x12804d)=>{const _0x2a68b3=a2_0x1830b0,_0x33e517=new ScheduleDeleteCommand(),_0x5aa02f=program['opts'](),_0x597f32=await createTDXInstance(_0x5aa02f),_0x3385f0=await _0x33e517[_0x2a68b3(0x36d)]({'options':{..._0x5aa02f,..._0x12804d},'args':[_0x4beb93],'tdx':_0x597f32});gracefulExit(_0x3385f0);}),scheduleCmd[a2_0x1830b0(0x257)]('run\x20<name>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2da))[a2_0x1830b0(0x3b4)]('--time\x20<iso8601>',a2_0x1830b0(0x3c8))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x14d),a2_0x1830b0(0x1a5))[a2_0x1830b0(0x2ab)](async(_0x4b0765,_0x880931)=>{const _0x495759=a2_0x1830b0,_0x5143b8=new ScheduleRunCommand(),_0x2d6fcf=program[_0x495759(0x343)](),_0x58ae13=await createTDXInstance(_0x2d6fcf),_0x3bf7e8=await _0x5143b8[_0x495759(0x36d)]({'options':{..._0x2d6fcf,..._0x880931},'args':[_0x4b0765],'tdx':_0x58ae13});gracefulExit(_0x3bf7e8);}),scheduleCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x376))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x38a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x18d),a2_0x1830b0(0x15e))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2a5),'Ending\x20offset\x20(default:\x2020)')[a2_0x1830b0(0x2ab)](async(_0x291473,_0x19ba89)=>{const _0x212c70=a2_0x1830b0,_0x455bc0=new ScheduleHistoryCommand(),_0x4a948c=program[_0x212c70(0x343)](),_0x34bb9e=await createTDXInstance(_0x4a948c),_0x1a88cd=await _0x455bc0['run']({'options':{..._0x4a948c,..._0x19ba89},'args':[_0x291473],'tdx':_0x34bb9e});gracefulExit(_0x1a88cd);});const llmCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x163))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x20b));llmCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x345))['description'](a2_0x1830b0(0x185))[a2_0x1830b0(0x2ab)](async(_0x10eba6,_0xb12a55)=>{const _0x2c61fd=new LLMUseCommand(),_0x22068a=program['opts'](),_0x283933=await createTDXInstance(_0x22068a),_0x63d508=await _0x2c61fd['run']({'options':{..._0x22068a,..._0xb12a55},'args':[_0x10eba6],'tdx':_0x283933});gracefulExit(_0x63d508);}),llmCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x390))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x23f))['action'](async _0x16fe61=>{const _0xa726f6=a2_0x1830b0,_0x32efb2=new LLMModelsCommand(),_0x2afbd0=program['opts'](),_0x34e94d=await createTDXInstance(_0x2afbd0),_0x39e0e5=await _0x32efb2[_0xa726f6(0x36d)]({'options':{..._0x2afbd0,..._0x16fe61},'args':[],'tdx':_0x34e94d});gracefulExit(_0x39e0e5);});const projectCmd=llmCmd[a2_0x1830b0(0x257)]('project')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2d5)),llmProjectListAction=async(_0x51243a,_0x1fa29d)=>{const _0x38a8f8=a2_0x1830b0,_0x4bf6e9=new LLMProjectsCommand(),_0x1bf483=program[_0x38a8f8(0x343)](),_0x1ec7b6=await createTDXInstance(_0x1bf483),_0x35d448=await _0x4bf6e9['run']({'options':{..._0x1bf483,..._0x1fa29d},'args':_0x51243a?[_0x51243a]:[],'tdx':_0x1ec7b6});gracefulExit(_0x35d448);};projectCmd[a2_0x1830b0(0x257)]('list\x20[pattern]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x217))[a2_0x1830b0(0x2ab)](llmProjectListAction),llmCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xcf))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x39e))[a2_0x1830b0(0x2ab)](llmProjectListAction),projectCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2ee))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2ad))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),'Project\x20description')[a2_0x1830b0(0x2ab)](async(_0x5d051b,_0x5cd91f)=>{const _0x46dc58=a2_0x1830b0,_0x5c0bb9=new LLMProjectCreateCommand(),_0x2d76b0=program[_0x46dc58(0x343)](),_0xa5bef=await createTDXInstance(_0x2d76b0),_0x46e400=await _0x5c0bb9[_0x46dc58(0x36d)]({'options':{..._0x2d76b0,..._0x5cd91f},'args':[_0x5d051b],'tdx':_0xa5bef});gracefulExit(_0x46e400);}),projectCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x179))['description'](a2_0x1830b0(0x14b))[a2_0x1830b0(0x2ab)](async(_0x3fb83c,_0x209911)=>{const _0x2f7d30=a2_0x1830b0,_0x10d9f0=new LLMProjectDeleteCommand(),_0x59d891=program[_0x2f7d30(0x343)](),_0x5f5008=await createTDXInstance(_0x59d891),_0x47f7b8=await _0x10d9f0['run']({'options':{..._0x59d891,..._0x209911},'args':[_0x3fb83c],'tdx':_0x5f5008});gracefulExit(_0x47f7b8);}),projectCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1c3))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x325))[a2_0x1830b0(0x3b4)]('-o,\x20--output\x20<folder>',a2_0x1830b0(0xe3))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x25b))[a2_0x1830b0(0x2ab)](async(_0x12a8e4,_0x534c85)=>{const _0x427882=a2_0x1830b0,_0x16e2b5=new LLMProjectBackupCommand(),_0xca4a65=program[_0x427882(0x343)](),_0x208eaa=await createTDXInstance(_0xca4a65),_0x377eda=await _0x16e2b5['run']({'options':{..._0xca4a65,..._0x534c85},'args':[_0x12a8e4],'tdx':_0x208eaa});gracefulExit(_0x377eda);}),projectCmd[a2_0x1830b0(0x257)]('restore\x20<folder>')['description'](a2_0x1830b0(0x349))['option'](a2_0x1830b0(0x3cf),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x1830b0(0x3b4)]('--dry-run',a2_0x1830b0(0x30c))[a2_0x1830b0(0x2ab)](async(_0x50b400,_0x25b7af)=>{const _0x20eae0=a2_0x1830b0,_0x3cdb5d=new LLMProjectRestoreCommand(),_0x245a11=program[_0x20eae0(0x343)](),_0x52a49f=await createTDXInstance(_0x245a11),_0xae82b5=await _0x3cdb5d[_0x20eae0(0x36d)]({'options':{..._0x245a11,..._0x25b7af},'args':[_0x50b400],'tdx':_0x52a49f});gracefulExit(_0xae82b5);});const llmAgentListAction=async(_0x1316fa,_0x474a50)=>{const _0x5b035f=a2_0x1830b0,_0x3833bf=new LLMAgentsCommand(),_0x53229d=program[_0x5b035f(0x343)](),_0x445d1e=await createTDXInstance(_0x53229d),_0x799b1d=await _0x3833bf[_0x5b035f(0x36d)]({'options':{..._0x53229d,..._0x474a50},'args':_0x1316fa?[_0x1316fa]:[],'tdx':_0x445d1e});gracefulExit(_0x799b1d);};llmCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1be))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x305))[a2_0x1830b0(0x2ab)](llmAgentListAction),program['command']('agents\x20[pattern]')['description'](a2_0x1830b0(0x305))[a2_0x1830b0(0x2ab)](llmAgentListAction),llmCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x37b))['description'](a2_0x1830b0(0xde))['option'](a2_0x1830b0(0x276),a2_0x1830b0(0x2fa))[a2_0x1830b0(0x2ab)](async(_0xa2a91a,_0x505402)=>{const _0x96aad8=a2_0x1830b0,_0x1fd54f=new LLMHistoryCommand(),_0x34a085=program[_0x96aad8(0x343)](),_0x2a1020=await createTDXInstance(_0x34a085),_0x3c8e13=await _0x1fd54f[_0x96aad8(0x36d)]({'options':{..._0x34a085,..._0x505402},'args':_0xa2a91a?[_0xa2a91a]:[],'tdx':_0x2a1020});gracefulExit(_0x3c8e13);});isExperimentalAvailable()&&llmCmd['command'](a2_0x1830b0(0x188))['description']('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x1830b0(0x2ab)](async(_0x3b0e8e,_0x4642cf)=>{const _0x3671f1=a2_0x1830b0,_0x46e208=new LLMLogCommand(),_0x1b52f5=program[_0x3671f1(0x343)](),_0x4b3474=await createTDXInstance(_0x1b52f5),_0x1f2da6=await _0x46e208[_0x3671f1(0x36d)]({'options':{..._0x1b52f5,..._0x4642cf},'args':[_0x3b0e8e],'tdx':_0x4b3474});gracefulExit(_0x1f2da6);});program[a2_0x1830b0(0x257)]('claude\x20[args...]')[a2_0x1830b0(0x389)]('[options]\x20--\x20[claude-code-args...]')['description'](a2_0x1830b0(0x33d))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x397),a2_0x1830b0(0x13c))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x181),a2_0x1830b0(0x34d))[a2_0x1830b0(0x3b4)]('--no-proxy',a2_0x1830b0(0xf7))[a2_0x1830b0(0xec)]()[a2_0x1830b0(0x196)](!![])[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),a2_0x1830b0(0x313))[a2_0x1830b0(0x2ab)](async(_0x2eacc2,_0x10bf7d)=>{const _0xda30c6=a2_0x1830b0,_0x367cdc=program[_0xda30c6(0x343)](),_0x48439d=Array[_0xda30c6(0x361)](_0x2eacc2)?_0x2eacc2:[];if(_0x48439d[0x0]===_0xda30c6(0x235)){const _0x540378=new ClaudeStatuslineCommand(),_0x458244=await _0x540378[_0xda30c6(0x36d)]({'options':{..._0x367cdc,..._0x10bf7d},'args':_0x48439d[_0xda30c6(0x135)](0x1),'tdx':null});gracefulExit(_0x458244);}if(_0x48439d[0x0]===_0xda30c6(0x389)){const _0x24b20f=new ClaudeUsageCommand(),_0x11e1a9=await _0x24b20f[_0xda30c6(0x36d)]({'options':{..._0x367cdc,..._0x10bf7d},'args':_0x48439d[_0xda30c6(0x135)](0x1),'tdx':null});gracefulExit(_0x11e1a9);}const _0x344459=new ClaudeCommand(),_0xbb28=await createTDXInstance(_0x367cdc),_0x54c47f=await _0x344459[_0xda30c6(0x36d)]({'options':{..._0x367cdc,..._0x10bf7d},'args':_0x48439d,'tdx':_0xbb28});gracefulExit(_0x54c47f);}),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x129))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x23e))['option'](a2_0x1830b0(0x10b),a2_0x1830b0(0x392))[a2_0x1830b0(0x3b4)]('--default',a2_0x1830b0(0x205))[a2_0x1830b0(0x2ab)](async(_0x27d2aa,_0x1983e2,_0x282223)=>{const _0x3b3c8c=a2_0x1830b0,_0x4e788d=new UseCommand(),_0x18a3ba=program[_0x3b3c8c(0x343)](),_0x4e7609=[];if(_0x27d2aa)_0x4e7609[_0x3b3c8c(0x289)](_0x27d2aa);if(_0x1983e2)_0x4e7609['push'](_0x1983e2);const _0x23a74a=_0x27d2aa===_0x3b3c8c(0x2a1),_0xa65508=_0x23a74a?await createTDXInstance(_0x18a3ba):null,_0x3ba472=await _0x4e788d['run']({'options':{..._0x18a3ba,..._0x282223},'args':_0x4e7609,'tdx':_0xa65508});gracefulExit(_0x3ba472);}),program[a2_0x1830b0(0x257)]('status')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x256))['action'](async _0x53f77c=>{const _0x32e8f8=a2_0x1830b0,_0x316134=new StatusCommand(),_0x1a26f6=program[_0x32e8f8(0x343)](),_0x5a6029=await createTDXInstance(_0x1a26f6),_0x10f4d2=await _0x316134[_0x32e8f8(0x36d)]({'options':{..._0x1a26f6,..._0x53f77c},'args':[],'tdx':_0x5a6029});gracefulExit(_0x10f4d2);}),program['command'](a2_0x1830b0(0xf2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x339))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x3ae))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21b),'Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2c5),a2_0x1830b0(0x226))['action'](async(_0x380912,_0x2dbf1b)=>{const _0x2eeed0=a2_0x1830b0,_0x231979=new UpgradeCommand(),_0x109a0e=program[_0x2eeed0(0x343)](),_0x341088=await _0x231979[_0x2eeed0(0x36d)]({'options':{..._0x109a0e,..._0x2dbf1b},'args':_0x380912?[_0x380912]:[],'tdx':null});gracefulExit(_0x341088);}),program['command']('unset\x20<resource>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1b6))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2b8),a2_0x1830b0(0x2d6))[a2_0x1830b0(0x2ab)](async(_0x3489db,_0x9e5185)=>{const _0x3e13f7=a2_0x1830b0,_0x6ae486=new UnsetCommand(),_0x728503=program[_0x3e13f7(0x343)](),_0x22f52f=await _0x6ae486[_0x3e13f7(0x36d)]({'options':{..._0x728503,..._0x9e5185},'args':[_0x3489db],'tdx':null});gracefulExit(_0x22f52f);}),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x36a))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x248))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x276),a2_0x1830b0(0xf4))['action'](async _0x18a649=>{const _0x19aedf=a2_0x1830b0,_0x2f7827=new ChatsCommand(),_0x7bc1c=program['opts'](),_0x1eb545=await createTDXInstance(_0x7bc1c),_0x10a152=await _0x2f7827[_0x19aedf(0x36d)]({'options':{..._0x7bc1c,..._0x18a649},'args':[],'tdx':_0x1eb545});gracefulExit(_0x10a152);});const authCmd=program['command'](a2_0x1830b0(0x1e0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x260));async function runAuthStatusCommand(_0x5a9ced){const _0x592349=a2_0x1830b0,_0x310a0b=new AuthStatusCommand(),_0x2a0b4c=program['opts'](),_0x471e03=await createTDXInstance(_0x2a0b4c),_0x3a5f63=await _0x310a0b[_0x592349(0x36d)]({'options':{..._0x2a0b4c,..._0x5a9ced},'args':[],'tdx':_0x471e03});gracefulExit(_0x3a5f63);}authCmd[a2_0x1830b0(0x2ab)](runAuthStatusCommand),authCmd[a2_0x1830b0(0x257)]('status')['description'](a2_0x1830b0(0x1c4))[a2_0x1830b0(0x2ab)](runAuthStatusCommand);async function authSetupAction(_0x1c0e9a){const _0x2deca6=a2_0x1830b0,_0x192ac8=new AuthSetupCommand(),_0x4b53a6=program[_0x2deca6(0x343)](),_0x2f204e=await createTDXInstance(_0x4b53a6),_0x5f5d92=await _0x192ac8[_0x2deca6(0x36d)]({'options':{..._0x4b53a6,..._0x1c0e9a},'args':[],'tdx':_0x2f204e});gracefulExit(_0x5f5d92);}authCmd['command'](a2_0x1830b0(0x1b7))['description'](a2_0x1830b0(0x1ff))['option'](a2_0x1830b0(0x252),a2_0x1830b0(0x36b))[a2_0x1830b0(0x254)]('after',a2_0x1830b0(0x10a))['action'](authSetupAction),authCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x268),{'hidden':!![]})[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x252),a2_0x1830b0(0x36b))['action'](authSetupAction),authCmd['command']('clear')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2fd))[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),a2_0x1830b0(0x11c))[a2_0x1830b0(0x2ab)](async _0x256361=>{const _0x55a908=a2_0x1830b0,_0x4ee854=new AuthClearCommand(),_0x13e3c7=program[_0x55a908(0x343)](),_0x1bd344=await _0x4ee854[_0x55a908(0x36d)]({'options':{..._0x13e3c7,..._0x256361},'args':[],'tdx':null});gracefulExit(_0x1bd344);});const userCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x1ef))[a2_0x1830b0(0x1d9)]('User\x20management\x20commands'),userListAction=async _0x5159c6=>{const _0x5d99ab=a2_0x1830b0,_0x2fe034=new UserListCommand(),_0x1425a1=program[_0x5d99ab(0x343)](),_0x42f160=await createTDXInstance(_0x1425a1),_0x22ba2b=await _0x2fe034[_0x5d99ab(0x36d)]({'options':{..._0x1425a1,..._0x5159c6},'args':[],'tdx':_0x42f160});gracefulExit(_0x22ba2b);};userCmd['action'](async _0xc5cb93=>{const _0x44bc6e=a2_0x1830b0,_0x2602de=new UserCommand(),_0x248b67=program['opts'](),_0x271b47=await createTDXInstance(_0x248b67),_0x173129=await _0x2602de[_0x44bc6e(0x36d)]({'options':{..._0x248b67,..._0xc5cb93},'args':[],'tdx':_0x271b47});gracefulExit(_0x173129);}),userCmd['command'](a2_0x1830b0(0x3e1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x340))['action'](userListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x3dc))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x38f))[a2_0x1830b0(0x2ab)](userListAction);const policyCmd=program['command']('policy')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x161));policyCmd['action'](async _0x17003b=>{const _0xf7be58=a2_0x1830b0,_0x2097a4=new PolicyCommand(),_0xc6df1e=program['opts'](),_0x3f3531=await createTDXInstance(_0xc6df1e),_0x949027=await _0x2097a4[_0xf7be58(0x36d)]({'options':{..._0xc6df1e,..._0x17003b},'args':[],'tdx':_0x3f3531});gracefulExit(_0x949027);}),policyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x352))[a2_0x1830b0(0x2ab)](async _0xe0d304=>{const _0x5c9914=a2_0x1830b0,_0x361b44=new PolicyListCommand(),_0x114e82=program[_0x5c9914(0x343)](),_0x4f9af3=await createTDXInstance(_0x114e82),_0x2fc7ce=await _0x361b44[_0x5c9914(0x36d)]({'options':{..._0x114e82,..._0xe0d304},'args':[],'tdx':_0x4f9af3});gracefulExit(_0x2fc7ce);}),policyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x11f))['description'](a2_0x1830b0(0x2df))[a2_0x1830b0(0x2ab)](async(_0x1e2887,_0x119d28)=>{const _0x4de807=a2_0x1830b0,_0x175414=new PolicyShowCommand(),_0x4cf67b=program[_0x4de807(0x343)](),_0x2b27b7=await createTDXInstance(_0x4cf67b),_0x40823e=await _0x175414[_0x4de807(0x36d)]({'options':{..._0x4cf67b,..._0x119d28},'args':[_0x1e2887],'tdx':_0x2b27b7});gracefulExit(_0x40823e);}),program[a2_0x1830b0(0x257)]('profiles')['description']('List\x20all\x20available\x20profiles')[a2_0x1830b0(0x2ab)](async _0x56d8ad=>{const _0x4c970a=a2_0x1830b0,_0xfc8e99=new ProfilesCommand(),_0x5df54e=program[_0x4c970a(0x343)](),_0x56c682=await _0xfc8e99[_0x4c970a(0x36d)]({'options':{..._0x5df54e,..._0x56d8ad},'args':[],'tdx':null});gracefulExit(_0x56c682);});const profileCmd=program['command']('profile')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x322));profileCmd[a2_0x1830b0(0x2ab)](()=>{const _0x55890b=a2_0x1830b0;profileCmd[_0x55890b(0x300)]();});const profileListAction=async _0x102419=>{const _0x13b389=a2_0x1830b0,_0x2cb18a=new ProfilesCommand(),_0x465216=program['opts'](),_0x1b6d8f=await _0x2cb18a[_0x13b389(0x36d)]({'options':{..._0x465216,..._0x102419},'args':[],'tdx':null});gracefulExit(_0x1b6d8f);};profileCmd[a2_0x1830b0(0x257)]('list')['description'](a2_0x1830b0(0x19e))[a2_0x1830b0(0x2ab)](profileListAction),profileCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x16a))['description']('Create\x20a\x20new\x20profile')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x252),a2_0x1830b0(0x36b))[a2_0x1830b0(0x3b4)]('-f,\x20--force','Overwrite\x20existing\x20profile')[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),a2_0x1830b0(0x149))[a2_0x1830b0(0x2ab)](async(_0x56aad8,_0x54332a)=>{const _0x3143ac=a2_0x1830b0,_0xed7ad9=new ProfileCreateCommand(),_0x597578=program[_0x3143ac(0x343)](),_0x53b722=await _0xed7ad9['run']({'options':{..._0x597578,..._0x54332a},'args':_0x56aad8?[_0x56aad8]:[],'tdx':null});gracefulExit(_0x53b722);});async function profileDeleteAction(_0x45bb09,_0x35a057){const _0x2fedd2=a2_0x1830b0,_0x537354=new ProfileDeleteCommand(),_0x4820c7=program[_0x2fedd2(0x343)](),_0x68122b=await _0x537354[_0x2fedd2(0x36d)]({'options':{..._0x4820c7,..._0x35a057},'args':[_0x45bb09],'tdx':null});gracefulExit(_0x68122b);}profileCmd[a2_0x1830b0(0x257)]('delete\x20<name>')['description'](a2_0x1830b0(0x30f))['addHelpText']('after',a2_0x1830b0(0x1c0))[a2_0x1830b0(0x2ab)](profileDeleteAction),profileCmd['command'](a2_0x1830b0(0x273),{'hidden':!![]})[a2_0x1830b0(0x2ab)](profileDeleteAction),profileCmd['command'](a2_0x1830b0(0x15b))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2bc))[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),'\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')[a2_0x1830b0(0x2ab)](async(_0x13259b,_0x4e766e)=>{const _0x1a0061=new ProfileSetCommand(),_0x1c0373=program['opts'](),_0x3f435b=await _0x1a0061['run']({'options':{..._0x1c0373,..._0x4e766e},'args':[_0x13259b],'tdx':null});gracefulExit(_0x3f435b);}),profileCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x11b))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x199))['option'](a2_0x1830b0(0x2b8),a2_0x1830b0(0x205))[a2_0x1830b0(0x254)](a2_0x1830b0(0x354),a2_0x1830b0(0x3c4))['action'](async(_0x58cacf,_0x3aa241)=>{const _0x23781c=a2_0x1830b0,_0x3bfadd=new ProfileUseCommand(),_0x10460a=program[_0x23781c(0x343)](),_0x5592a5=await _0x3bfadd['run']({'options':{..._0x10460a,..._0x3aa241},'args':[_0x58cacf],'tdx':null});gracefulExit(_0x5592a5);});const engageCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f1))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x280)),createEngageAction=_0x20f9e1=>{return async(_0x408f9d,_0xdc7153)=>{const _0x1759be=a2_0xcccf,_0x308f9c=new _0x20f9e1(),_0x2a17bd=program[_0x1759be(0x343)](),_0x298f38=await createTDXInstance(_0x2a17bd),_0x46a1eb=await _0x308f9c[_0x1759be(0x36d)]({'options':{..._0x2a17bd,..._0xdc7153},'args':[_0x408f9d],'tdx':_0x298f38});gracefulExit(_0x46a1eb);};},createEngageNoArgAction=_0x48f8e3=>{return async _0x4ecf0b=>{const _0x29ff54=a2_0xcccf,_0x1a1910=new _0x48f8e3(),_0x583592=program[_0x29ff54(0x343)](),_0x5439eb=await createTDXInstance(_0x583592),_0x44d987=await _0x1a1910['run']({'options':{..._0x583592,..._0x4ecf0b},'args':[],'tdx':_0x5439eb});gracefulExit(_0x44d987);};},createEngageListAction=_0x288b4=>{return async(_0x3fe1f0,_0x5bdd39)=>{const _0x2bc2aa=a2_0xcccf,_0xe2b694=new _0x288b4(),_0x2b753a=program[_0x2bc2aa(0x343)](),_0xcc6322=await createTDXInstance(_0x2b753a),_0x22137c=await _0xe2b694['run']({'options':{..._0x2b753a,..._0x5bdd39},'args':_0x3fe1f0?[_0x3fe1f0]:[],'tdx':_0xcc6322});gracefulExit(_0x22137c);};},campaignCmd=engageCmd[a2_0x1830b0(0x257)]('campaign')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x10c));campaignCmd['command']('list\x20[pattern]')['description'](a2_0x1830b0(0x18e))['option'](a2_0x1830b0(0x380),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option']('--status\x20<status>',a2_0x1830b0(0xd8))[a2_0x1830b0(0x3b4)]('--workspace\x20<name>',a2_0x1830b0(0x2e1))['action'](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x1830b0(0x257)]('campaigns\x20[pattern]')[a2_0x1830b0(0x1d9)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x380),a2_0x1830b0(0x3de))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0xd8))[a2_0x1830b0(0x3b4)]('--workspace\x20<name>',a2_0x1830b0(0x2e1))[a2_0x1830b0(0x2ab)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x127))[a2_0x1830b0(0x1d9)]('Show\x20campaign\x20details')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x312),a2_0x1830b0(0x1cd))[a2_0x1830b0(0x2ab)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x124))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3d7))['requiredOption'](a2_0x1830b0(0x150),a2_0x1830b0(0x3a5))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x380),a2_0x1830b0(0x24e))['option'](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x28d),a2_0x1830b0(0x39b))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x17b),a2_0x1830b0(0x1b8))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x391),a2_0x1830b0(0xd6))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x261),a2_0x1830b0(0x122))[a2_0x1830b0(0x3b4)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x39c),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x1830b0(0x2ab)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x35c))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x394))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x3b4)]('--name\x20<name>',a2_0x1830b0(0x119))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x28d),a2_0x1830b0(0x39b))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x17b),a2_0x1830b0(0x1b8))['option'](a2_0x1830b0(0x391),a2_0x1830b0(0xd6))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x261),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3a6),a2_0x1830b0(0x25c))['option'](a2_0x1830b0(0x39c),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x1830b0(0x257)]('delete\x20<name-or-id>')['description'](a2_0x1830b0(0x3d6))[a2_0x1830b0(0x3b4)]('--workspace\x20<name>',a2_0x1830b0(0x2e1))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x1830b0(0x2ab)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2f9))[a2_0x1830b0(0x3b4)]('--workspace\x20<name>',a2_0x1830b0(0x2e1))[a2_0x1830b0(0x2ab)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x20f))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1c1))['option']('--workspace\x20<name>','Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command']('resume\x20<name-or-id>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x134))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),'Workspace\x20name')[a2_0x1830b0(0x2ab)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x1830b0(0x257)]('duplicate\x20<name-or-id>')[a2_0x1830b0(0x1d9)]('Duplicate\x20a\x20campaign')[a2_0x1830b0(0x3b4)]('--workspace\x20<name>',a2_0x1830b0(0x2e1))[a2_0x1830b0(0x2ab)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x1830b0(0x326))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x108))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x150),a2_0x1830b0(0x24f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x380),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x1830b0(0x2db),a2_0x1830b0(0xd2))['action'](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x1830b0(0x257)]('push\x20[target]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x284))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),'Workspace\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd['command'](a2_0x1830b0(0x3e2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x173))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2d3),a2_0x1830b0(0x2b6))['action'](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x1830b0(0x257)]('always-on-campaign')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xdd));alwaysOnCampaignCmd['command'](a2_0x1830b0(0x1f0))['description'](a2_0x1830b0(0x308))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x380),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0x362))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x2ab)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x262))[a2_0x1830b0(0x1d9)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x380),a2_0x1830b0(0x3de))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x21f),a2_0x1830b0(0x362))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x2ab)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x127))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xbe))[a2_0x1830b0(0x1e5)]('--workspace\x20<name>',a2_0x1830b0(0x230))['option'](a2_0x1830b0(0x312),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x124))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x27b))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x150),'Campaign\x20name')['requiredOption'](a2_0x1830b0(0x380),a2_0x1830b0(0x24e))['requiredOption'](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))['option'](a2_0x1830b0(0x28d),a2_0x1830b0(0x39b))[a2_0x1830b0(0x3b4)]('--segment\x20<path>',a2_0x1830b0(0x2ce))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1a6),'Enable\x20UTM\x20tracking')[a2_0x1830b0(0x2ab)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x35c))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1cc))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x3b4)]('--name\x20<name>',a2_0x1830b0(0x119))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x28d),'Campaign\x20description')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x17b),a2_0x1830b0(0x2ce))['option'](a2_0x1830b0(0x1a6),'Enable\x20UTM\x20tracking')[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd['command'](a2_0x1830b0(0x3db))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3b3))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),'Workspace\x20name\x20(required)')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x184),a2_0x1830b0(0x3d1))[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)]('launch\x20<name-or-id>')['description'](a2_0x1830b0(0x12f))[a2_0x1830b0(0x1e5)]('--workspace\x20<name>',a2_0x1830b0(0x230))[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x20f))['description'](a2_0x1830b0(0x16c))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2cb))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1f3))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))['action'](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x125))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1c8))['requiredOption'](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x184),'Skip\x20confirmation\x20prompt')[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x21e))['description'](a2_0x1830b0(0x190))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x230))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x150),a2_0x1830b0(0x35e))[a2_0x1830b0(0x2ab)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x304))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2b3));templateCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x25d))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),'Workspace\x20name')[a2_0x1830b0(0x2ab)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x338))['description'](a2_0x1830b0(0xc2))['option']('--workspace\x20<name>',a2_0x1830b0(0x2e1))[a2_0x1830b0(0x2ab)](createEngageListAction(EngageTemplatesCommand)),templateCmd['command'](a2_0x1830b0(0x127))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x377))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),'Workspace\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x312),a2_0x1830b0(0x1cd))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd['command']('create')['description'](a2_0x1830b0(0x38b))['requiredOption']('--name\x20<name>',a2_0x1830b0(0x2ef))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x1bf),'Email\x20subject\x20template')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x29c),a2_0x1830b0(0x3ad))['option'](a2_0x1830b0(0x2dd),a2_0x1830b0(0x131))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),'Workspace\x20name\x20(required)')['option'](a2_0x1830b0(0x258),a2_0x1830b0(0x19c))['option'](a2_0x1830b0(0x20d),a2_0x1830b0(0x33a),_0xedaf20=>{const _0x35e06a=a2_0x1830b0;if(![_0x35e06a(0x222),_0x35e06a(0xd3)]['includes'](_0xedaf20))throw new SDKError(ErrorCode[_0x35e06a(0x13a)],'Invalid\x20editor\x20type:\x20'+_0xedaf20+_0x35e06a(0x311));return _0xedaf20;})[a2_0x1830b0(0x2ab)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x35c))['description']('Update\x20an\x20email\x20template')['option'](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x3b4)]('--name\x20<name>',a2_0x1830b0(0x270))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1bf),'Email\x20subject\x20template')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x29c),'HTML\x20template\x20content')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2dd),'Read\x20HTML\x20template\x20from\x20file')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x258),a2_0x1830b0(0x19c))[a2_0x1830b0(0x2ab)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x1830b0(0x2ca))[a2_0x1830b0(0x1d9)]('Pull\x20templates\x20to\x20YAML\x20files')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x150),'Pull\x20specific\x20template\x20by\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3aa),a2_0x1830b0(0x3d1))[a2_0x1830b0(0x3b4)]('--dry-run','Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x1830b0(0x2ab)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x34e))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x39d))['option'](a2_0x1830b0(0x1b3),'Workspace\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3aa),a2_0x1830b0(0x3d1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')[a2_0x1830b0(0x2ab)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x1830b0(0x257)]('validate\x20[target]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2dc))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2d3),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x1830b0(0x2ab)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3db))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1e4))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x184),a2_0x1830b0(0x3d1))[a2_0x1830b0(0x2ab)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1830b0(0x257)]('workspace')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2f2));workspaceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f0))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x193))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command']('workspaces\x20[pattern]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1fc))[a2_0x1830b0(0x2ab)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x127))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1b1))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x312),a2_0x1830b0(0x1cd))[a2_0x1830b0(0x2ab)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1830b0(0x257)]('create')[a2_0x1830b0(0x1d9)]('Create\x20a\x20workspace')[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x150),'Workspace\x20name')['option'](a2_0x1830b0(0x28d),a2_0x1830b0(0x29a))[a2_0x1830b0(0x2ab)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x35c))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x357))['option']('--name\x20<name>','New\x20workspace\x20name')['option'](a2_0x1830b0(0x28d),'Workspace\x20description')[a2_0x1830b0(0x2ab)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3db))[a2_0x1830b0(0x1d9)]('Delete\x20a\x20workspace')['option'](a2_0x1830b0(0x184),a2_0x1830b0(0x3d1))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1830b0(0x11b))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1f7))[a2_0x1830b0(0x2ab)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x281))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x366));deliveryCmd['command'](a2_0x1830b0(0x2ac))[a2_0x1830b0(0x1d9)]('List\x20email\x20senders')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x1b3),a2_0x1830b0(0x2e1))[a2_0x1830b0(0x2ab)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x381))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x368)),connectionListAction=async _0x2b7695=>{const _0x6cca1a=a2_0x1830b0,_0x2b5d89=new ConnectionListCommand(),_0x146586=program[_0x6cca1a(0x343)](),_0x38ccbc=await createTDXInstance(_0x146586),_0x19cfdc=await _0x2b5d89[_0x6cca1a(0x36d)]({'options':{..._0x146586,..._0x2b7695},'args':[],'tdx':_0x38ccbc});gracefulExit(_0x19cfdc);};connectionCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e1))[a2_0x1830b0(0x1d9)]('List\x20all\x20data\x20connections')['action'](connectionListAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x1f8),{'hidden':!![]})[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3e6))['action'](connectionListAction),connectionCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2fc))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x12a))['action'](async(_0x511dc2,_0x2bb8b7)=>{const _0x214280=a2_0x1830b0,_0x17b5bc=new ConnectionShowCommand(),_0x7ac040=program[_0x214280(0x343)](),_0x3dd6e5=await createTDXInstance(_0x7ac040),_0x171e0d=await _0x17b5bc[_0x214280(0x36d)]({'options':{..._0x7ac040,..._0x2bb8b7},'args':[_0x511dc2],'tdx':_0x3dd6e5});gracefulExit(_0x171e0d);}),connectionCmd[a2_0x1830b0(0x257)]('schema\x20<type>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3b8))[a2_0x1830b0(0x2ab)](async(_0x257736,_0x3f6d80)=>{const _0x24ae7a=a2_0x1830b0,_0x3c8f36=new ConnectionSchemaCommand(),_0xe38d3b=program[_0x24ae7a(0x343)](),_0x4774b3=await createTDXInstance(_0xe38d3b),_0x36585b=await _0x3c8f36[_0x24ae7a(0x36d)]({'options':{..._0xe38d3b,..._0x3f6d80},'args':[_0x257736],'tdx':_0x4774b3});gracefulExit(_0x36585b);}),connectionCmd[a2_0x1830b0(0x257)]('types')['description'](a2_0x1830b0(0x374))[a2_0x1830b0(0x2ab)](async _0xebb6db=>{const _0x519a48=a2_0x1830b0,_0x3525ff=new ConnectionTypesCommand(),_0xab37da=program[_0x519a48(0x343)](),_0x51f130=await createTDXInstance(_0xab37da),_0x3003df=await _0x3525ff[_0x519a48(0x36d)]({'options':{..._0xab37da,..._0xebb6db},'args':[],'tdx':_0x51f130});gracefulExit(_0x3003df);}),connectionCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x30b))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x277))[a2_0x1830b0(0x2ab)](async(_0x19ead9,_0x467858)=>{const _0x427a02=a2_0x1830b0,_0x3a0c5d=new ConnectionSettingsCommand(),_0x222c5c=program[_0x427a02(0x343)](),_0x111fbc=await createTDXInstance(_0x222c5c),_0x2f5da2=await _0x3a0c5d[_0x427a02(0x36d)]({'options':{..._0x222c5c,..._0x467858},'args':[_0x19ead9],'tdx':_0x111fbc});gracefulExit(_0x2f5da2);});const casCmd=program['command'](a2_0x1830b0(0x18a))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1e9));casCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e1))['description'](a2_0x1830b0(0x2ba))['action'](async _0x459c79=>{const _0x125bc8=a2_0x1830b0,_0x1a41f7=new CASListCommand(),_0xdac2fa=program[_0x125bc8(0x343)](),_0x46ad32=await createTDXInstance(_0xdac2fa),_0x2d460b=await _0x1a41f7[_0x125bc8(0x36d)]({'options':{..._0xdac2fa,..._0x459c79},'args':[],'tdx':_0x46ad32});gracefulExit(_0x2d460b);}),casCmd['command'](a2_0x1830b0(0x236))[a2_0x1830b0(0x1d9)]('Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1830b0(0x2ab)](async(_0x2eb5ca,_0x24fd6c)=>{const _0x39fc69=a2_0x1830b0,_0x2e0317=new CASDescCommand(),_0x4ff84f=program[_0x39fc69(0x343)](),_0x261232=await createTDXInstance(_0x4ff84f),_0x37981e=await _0x2e0317[_0x39fc69(0x36d)]({'options':{..._0x4ff84f,..._0x24fd6c},'args':_0x2eb5ca?[_0x2eb5ca]:[],'tdx':_0x261232});gracefulExit(_0x37981e);}),casCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x297))['description'](a2_0x1830b0(0xd5))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x378),'Target\x20directory\x20for\x20YAML\x20files')[a2_0x1830b0(0x3b4)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x1830b0(0x2ab)](async(_0x3e5759,_0x5ab904)=>{const _0x471155=a2_0x1830b0,_0x34d6c6=new CASPullCommand(),_0x1a60f7=program['opts'](),_0x226e1e=await createTDXInstance(_0x1a60f7),_0x5e4901=await _0x34d6c6[_0x471155(0x36d)]({'options':{..._0x1a60f7,..._0x5ab904},'args':_0x3e5759?[_0x3e5759]:[],'tdx':_0x226e1e});gracefulExit(_0x5e4901);}),casCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x34e))['description']('Push\x20YAML\x20files\x20to\x20CAS\x20API')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2db),a2_0x1830b0(0x1bc))['action'](async(_0x5865e6,_0x4bb0e0)=>{const _0x23c50b=a2_0x1830b0,_0x3f7761=new CASPushCommand(),_0x35ab8c=program['opts'](),_0x4d2f06=await createTDXInstance(_0x35ab8c),_0x134c70=await _0x3f7761[_0x23c50b(0x36d)]({'options':{..._0x35ab8c,..._0x4bb0e0},'args':_0x5865e6?[_0x5865e6]:[],'tdx':_0x4d2f06});gracefulExit(_0x134c70);}),casCmd['command']('preview\x20<segment_name>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x138))['option'](a2_0x1830b0(0x283),a2_0x1830b0(0x146))[a2_0x1830b0(0x2ab)](async(_0x46c037,_0x5905a3)=>{const _0x519a28=a2_0x1830b0,_0x3f50a2=new CASPreviewCommand(),_0x44f787=program[_0x519a28(0x343)](),_0x341a4c=await createTDXInstance(_0x44f787),_0x1af485=await _0x3f50a2[_0x519a28(0x36d)]({'options':{..._0x44f787,..._0x5905a3},'args':[_0x46c037,_0x5905a3[_0x519a28(0x186)]],'tdx':_0x341a4c});gracefulExit(_0x1af485);});const casSgCmd=casCmd[a2_0x1830b0(0x257)]('sg')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1d7));casSgCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x1fe))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3a2))[a2_0x1830b0(0x2ab)](async(_0xefc732,_0x213650)=>{const _0x5d96c8=a2_0x1830b0,_0x4df0df=new CASSegmentListCommand(),_0x4c9a6a=program[_0x5d96c8(0x343)](),_0x3aadd9=await createTDXInstance(_0x4c9a6a),_0xf5726c=await _0x4df0df[_0x5d96c8(0x36d)]({'options':{..._0x4c9a6a,..._0x213650},'args':_0xefc732?[_0xefc732]:[],'tdx':_0x3aadd9});gracefulExit(_0xf5726c);});const journeyCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x287))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x177)),journeyListAction=async(_0x52f4f7,_0x342cf2)=>{const _0x2cbc7a=a2_0x1830b0,_0x1f4a53=new JourneyListCommand(),_0x5215c9=program['opts'](),_0xca90d8=await createTDXInstance(_0x5215c9),_0x426567=await _0x1f4a53[_0x2cbc7a(0x36d)]({'options':{..._0x5215c9,..._0x342cf2},'args':_0x52f4f7?[_0x52f4f7]:[],'tdx':_0xca90d8});gracefulExit(_0x426567);};journeyCmd['command']('list\x20[pattern]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1de))['action'](journeyListAction),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x310))[a2_0x1830b0(0x1d9)]('Show\x20journey\x20details')[a2_0x1830b0(0x3b4)]('-w,\x20--web',a2_0x1830b0(0x191))[a2_0x1830b0(0x3b4)]('--include-stats','Include\x20execution\x20statistics')[a2_0x1830b0(0x2ab)](async(_0x5d107e,_0x155955)=>{const _0x148ea7=a2_0x1830b0,_0x4fc8d1=new JourneyViewCommand(),_0x5bbc94=program[_0x148ea7(0x343)](),_0x342e2e=await createTDXInstance(_0x5bbc94),_0x302b8a=await _0x4fc8d1[_0x148ea7(0x36d)]({'options':{..._0x5bbc94,..._0x155955},'args':[_0x5d107e],'tdx':_0x342e2e});gracefulExit(_0x302b8a);}),journeyCmd['command'](a2_0x1830b0(0x3e8))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1db))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2cd),a2_0x1830b0(0xea))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x32f),a2_0x1830b0(0x278))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x240),a2_0x1830b0(0x37a))['option'](a2_0x1830b0(0xfb),a2_0x1830b0(0x399))[a2_0x1830b0(0x2ab)](async(_0x65abb7,_0x46605f)=>{const _0x1c6013=a2_0x1830b0,_0x56280c=new JourneyStatsCommand(),_0x21b1b1=program[_0x1c6013(0x343)](),_0x5673a3=await createTDXInstance(_0x21b1b1),_0x4eac1d=await _0x56280c[_0x1c6013(0x36d)]({'options':{..._0x21b1b1,..._0x46605f},'args':[_0x65abb7],'tdx':_0x5673a3});gracefulExit(_0x4eac1d);}),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x253))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1d6))['option'](a2_0x1830b0(0x380),a2_0x1830b0(0x13f))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x32f),a2_0x1830b0(0x278))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x240),a2_0x1830b0(0x37a))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0xee),a2_0x1830b0(0x2f6),_0x2dfe89=>{const _0xcca34a=a2_0x1830b0,_0x2f796b=parseInt(_0x2dfe89,0xa);if(isNaN(_0x2f796b))throw new Error('Invalid\x20--limit\x20value:\x20\x22'+_0x2dfe89+_0xcca34a(0x105));return _0x2f796b;})[a2_0x1830b0(0x2ab)](async(_0xf05dd,_0x3d22ff)=>{const _0x21fc64=a2_0x1830b0,_0x34de65=new JourneyTrafficCommand(),_0x4c0cd8=program[_0x21fc64(0x343)](),_0x5d9e2c=await createTDXInstance(_0x4c0cd8),_0x540851=await _0x34de65[_0x21fc64(0x36d)]({'options':{..._0x4c0cd8,..._0x3d22ff},'args':[_0xf05dd],'tdx':_0x5d9e2c});gracefulExit(_0x540851);}),journeyCmd[a2_0x1830b0(0x257)]('pause\x20<name-or-path>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x1c5))[a2_0x1830b0(0x2ab)](async(_0x385fb1,_0x1554ba)=>{const _0xfa96dc=a2_0x1830b0,_0x5c6608=new JourneyPauseCommand(),_0x2f4b22=program[_0xfa96dc(0x343)](),_0x22dd41=await createTDXInstance(_0x2f4b22),_0x11a104=await _0x5c6608['run']({'options':{..._0x2f4b22,..._0x1554ba},'args':[_0x385fb1],'tdx':_0x22dd41});gracefulExit(_0x11a104);}),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3c0))[a2_0x1830b0(0x1d9)]('Resume\x20a\x20paused\x20journey')[a2_0x1830b0(0x2ab)](async(_0x2452d2,_0x8405af)=>{const _0x11ca6d=a2_0x1830b0,_0x2f8ed6=new JourneyResumeCommand(),_0x266ddc=program[_0x11ca6d(0x343)](),_0x4db210=await createTDXInstance(_0x266ddc),_0x1da791=await _0x2f8ed6[_0x11ca6d(0x36d)]({'options':{..._0x266ddc,..._0x8405af},'args':[_0x2452d2],'tdx':_0x4db210});gracefulExit(_0x1da791);}),journeyCmd['command'](a2_0x1830b0(0x297))[a2_0x1830b0(0x1d9)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x1830b0(0x3b4)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x2c7534,_0x4d78e7)=>{const _0xed1ab2=a2_0x1830b0,_0x3dbfd6=new JourneyPullCommand(),_0x32bcd4=program[_0xed1ab2(0x343)](),_0x414130=await createTDXInstance(_0x32bcd4),_0x187daa=await _0x3dbfd6['run']({'options':{..._0x32bcd4,..._0x4d78e7},'args':_0x2c7534?[_0x2c7534]:[],'tdx':_0x414130});gracefulExit(_0x187daa);}),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x34e))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x3c7))['action'](async(_0x3755fb,_0x5d2a3c)=>{const _0x47bd95=a2_0x1830b0,_0x143c9d=new JourneyPushCommand(),_0x422778=program[_0x47bd95(0x343)](),_0xb427fc=await createTDXInstance(_0x422778),_0xb3ee5d=await _0x143c9d['run']({'options':{..._0x422778,..._0x5d2a3c},'args':_0x3755fb?[_0x3755fb]:[],'tdx':_0xb427fc});gracefulExit(_0xb3ee5d);}),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x213))[a2_0x1830b0(0x1d9)]('Show\x20journey\x20table\x20column-to-step\x20mapping')[a2_0x1830b0(0x2ab)](async(_0xd8da95,_0x5462fd)=>{const _0x425fa7=new JourneyColumnsCommand(),_0x5a8a1f=program['opts'](),_0x5aaff8=await createTDXInstance(_0x5a8a1f),_0x2926ce=await _0x425fa7['run']({'options':{..._0x5a8a1f,..._0x5462fd},'args':[_0xd8da95],'tdx':_0x5aaff8});gracefulExit(_0x2926ce);}),journeyCmd[a2_0x1830b0(0x257)]('activations\x20<name-or-path>')['description'](a2_0x1830b0(0x2e2))[a2_0x1830b0(0x2ab)](async(_0x2d8f5a,_0x50e2cb)=>{const _0x313cc6=a2_0x1830b0,_0x38016f=new JourneyActivationsCommand(),_0x1b218b=program['opts'](),_0x7e84d2=await createTDXInstance(_0x1b218b),_0x236a49=await _0x38016f[_0x313cc6(0x36d)]({'options':{..._0x1b218b,..._0x50e2cb},'args':[_0x2d8f5a],'tdx':_0x7e84d2});gracefulExit(_0x236a49);}),journeyCmd['command']('versions\x20<name-or-path>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2c0))[a2_0x1830b0(0x2ab)](async(_0x983f37,_0x3c74a5)=>{const _0x4703ad=a2_0x1830b0,_0x116aeb=new JourneyVersionsCommand(),_0x4dfc16=program[_0x4703ad(0x343)](),_0x5a247a=await createTDXInstance(_0x4dfc16),_0x1c239a=await _0x116aeb[_0x4703ad(0x36d)]({'options':{..._0x4dfc16,..._0x3c74a5},'args':[_0x983f37],'tdx':_0x5a247a});gracefulExit(_0x1c239a);});const journeyVersionCmd=journeyCmd['command']('version')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xc5));journeyVersionCmd['command'](a2_0x1830b0(0x156))[a2_0x1830b0(0x1d9)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x1830b0(0x2ab)](async(_0x4f91db,_0x5b7513)=>{const _0x59e82e=a2_0x1830b0,_0x57042e=new JourneyVersionCreateCommand(),_0x35ce3f=program[_0x59e82e(0x343)](),_0x570445=await createTDXInstance(_0x35ce3f),_0x2623d9=await _0x57042e['run']({'options':{..._0x35ce3f,..._0x5b7513},'args':[_0x4f91db],'tdx':_0x570445});gracefulExit(_0x2623d9);}),journeyVersionCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x310))['description'](a2_0x1830b0(0x2cf))[a2_0x1830b0(0x1e5)](a2_0x1830b0(0x382),a2_0x1830b0(0x15d))[a2_0x1830b0(0x2ab)](async(_0x5e26f9,_0x3ce8a8)=>{const _0x4d7f92=a2_0x1830b0,_0x55a97a=new JourneyVersionViewCommand(),_0x56c3d5=program[_0x4d7f92(0x343)](),_0x65c302=await createTDXInstance(_0x56c3d5),_0x160975=await _0x55a97a[_0x4d7f92(0x36d)]({'options':{..._0x56c3d5,..._0x3ce8a8},'args':[_0x5e26f9],'tdx':_0x65c302});gracefulExit(_0x160975);}),journeyCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3e2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x113))[a2_0x1830b0(0x2ab)](async(_0x3b0903,_0x2b9794)=>{const _0x6f053f=a2_0x1830b0,_0x1746c0=new JourneyValidateCommand(),_0x37b8dc=program[_0x6f053f(0x343)](),_0x15aca9=await createTDXInstance(_0x37b8dc),_0x49c867=await _0x1746c0[_0x6f053f(0x36d)]({'options':{..._0x37b8dc,..._0x2b9794},'args':_0x3b0903?[_0x3b0903]:[],'tdx':_0x15aca9});gracefulExit(_0x49c867);}),program['command'](a2_0x1830b0(0x32d))['description'](a2_0x1830b0(0x3d4))['action'](journeyListAction);const agentSyncCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0x1dc))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x285));agentSyncCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x27f))['description'](a2_0x1830b0(0xce))['option'](a2_0x1830b0(0x165),a2_0x1830b0(0x239))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x29e),a2_0x1830b0(0x1fa))[a2_0x1830b0(0x3b4)]('-a,\x20--agent\x20<name>',a2_0x1830b0(0x247))[a2_0x1830b0(0x2ab)](async(_0x4e8f9f,_0x2b09a6,_0x48b0f3)=>{const _0x1ef811=a2_0x1830b0,_0x5e5428=new AgentPullCommand(),_0x332d09=program[_0x1ef811(0x343)](),_0x34ca35=await createTDXInstance(_0x332d09),_0x379c77=[];if(_0x4e8f9f)_0x379c77[_0x1ef811(0x289)](_0x4e8f9f);if(_0x2b09a6)_0x379c77[_0x1ef811(0x289)](_0x2b09a6);const _0x40a800=await _0x5e5428[_0x1ef811(0x36d)]({'options':{..._0x332d09,..._0x48b0f3},'args':_0x379c77,'tdx':_0x34ca35});gracefulExit(_0x40a800);}),agentSyncCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x263))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0xfc))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x29e),a2_0x1830b0(0x3a7))[a2_0x1830b0(0x2ab)](async(_0x24326a,_0x30d9aa)=>{const _0x47f1cb=a2_0x1830b0,_0x20ff60=new AgentPushCommand(),_0x20a501=program[_0x47f1cb(0x343)](),_0x2d9a80=await createTDXInstance(_0x20a501),_0x9a7cfd=await _0x20ff60[_0x47f1cb(0x36d)]({'options':{..._0x20a501,..._0x30d9aa},'args':_0x24326a?[_0x24326a]:[],'tdx':_0x2d9a80});gracefulExit(_0x9a7cfd);}),agentSyncCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x3d9))['description'](a2_0x1830b0(0x116))['option']('-n,\x20--name\x20<name>',a2_0x1830b0(0x3d5))[a2_0x1830b0(0x2ab)](async(_0x58e0d0,_0x55cec8)=>{const _0x10e759=a2_0x1830b0,_0x2f2a59=new AgentCloneCommand(),_0x287f55=program[_0x10e759(0x343)](),_0x69c43f=await createTDXInstance(_0x287f55),_0x53fb91=await _0x2f2a59[_0x10e759(0x36d)]({'options':{..._0x287f55,..._0x55cec8},'args':_0x58e0d0?[_0x58e0d0]:[],'tdx':_0x69c43f});gracefulExit(_0x53fb91);}),agentSyncCmd['command'](a2_0x1830b0(0x151))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2bb))[a2_0x1830b0(0x3b4)]('--name\x20<names>','Run\x20specific\x20tests\x20(comma-separated)')[a2_0x1830b0(0x3b4)]('--tags\x20<tags>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')['option']('--dry-run','Parse\x20and\x20validate\x20without\x20executing')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x14e),a2_0x1830b0(0xda))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x130),a2_0x1830b0(0x187))[a2_0x1830b0(0x2ab)](async(_0x47c3d5,_0x5d9fa6)=>{const _0x56259b=a2_0x1830b0,_0x4c003a=new AgentTestCommand(),_0x3d4b3f=program['opts'](),_0x3fce82=await createTDXInstance(_0x3d4b3f),_0x1561a1=await _0x4c003a[_0x56259b(0x36d)]({'options':{..._0x3d4b3f,..._0x5d9fa6},'args':_0x47c3d5?[_0x47c3d5]:[],'tdx':_0x3fce82});gracefulExit(_0x1561a1);}),agentSyncCmd[a2_0x1830b0(0x257)]('list\x20[pattern]')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x26c))[a2_0x1830b0(0x2ab)](llmAgentListAction),agentSyncCmd['command'](a2_0x1830b0(0x2c9))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x233))[a2_0x1830b0(0x2ab)](async(_0x573530,_0x124901)=>{const _0x41f71d=a2_0x1830b0,_0x5cb115=new LLMAgentShowCommand(),_0x3df84=program[_0x41f71d(0x343)](),_0x375251=await createTDXInstance(_0x3df84),_0x21087f=await _0x5cb115['run']({'options':{..._0x3df84,..._0x124901},'args':[_0x573530],'tdx':_0x375251});gracefulExit(_0x21087f);}),agentSyncCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x2ee))[a2_0x1830b0(0x1d9)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option']('--system-prompt\x20<text>',a2_0x1830b0(0x32e))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x346),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x1830b0(0x243))['option'](a2_0x1830b0(0x1e3),a2_0x1830b0(0x13e))[a2_0x1830b0(0x3b4)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x24b),a2_0x1830b0(0x358),a2_0x1830b0(0x1ce))[a2_0x1830b0(0x2ab)](async(_0x4a0236,_0xf014d8)=>{const _0x3da75f=a2_0x1830b0,_0x45f903=new LLMAgentCreateCommand(),_0x3acffb=program[_0x3da75f(0x343)](),_0x861508=await createTDXInstance(_0x3acffb),_0x562e42=await _0x45f903['run']({'options':{..._0x3acffb,..._0xf014d8},'args':[_0x4a0236],'tdx':_0x861508});gracefulExit(_0x562e42);}),agentSyncCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xf1))['description'](a2_0x1830b0(0x3bb))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x3b9),a2_0x1830b0(0x147))['option'](a2_0x1830b0(0x34f),a2_0x1830b0(0x2d0))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x335),a2_0x1830b0(0x23b))[a2_0x1830b0(0x3b4)]('--starter-message\x20<text>',a2_0x1830b0(0x13e))['action'](async(_0x1bd566,_0x3cf43e)=>{const _0x47caac=a2_0x1830b0,_0x5d065c=new LLMAgentUpdateCommand(),_0x3400a0=program[_0x47caac(0x343)](),_0x58cf28=await createTDXInstance(_0x3400a0),_0x3bd6ff=await _0x5d065c[_0x47caac(0x36d)]({'options':{..._0x3400a0,..._0x3cf43e},'args':[_0x1bd566],'tdx':_0x58cf28});gracefulExit(_0x3bd6ff);}),agentSyncCmd[a2_0x1830b0(0x257)]('delete\x20<agent-name>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x19a))[a2_0x1830b0(0x2ab)](async(_0x2e24a6,_0x2422ed)=>{const _0xce72f4=a2_0x1830b0,_0x6dd311=new LLMAgentDeleteCommand(),_0x3a50a6=program['opts'](),_0xf54663=await createTDXInstance(_0x3a50a6),_0x2158ec=await _0x6dd311[_0xce72f4(0x36d)]({'options':{..._0x3a50a6,..._0x2422ed},'args':[_0x2e24a6],'tdx':_0xf54663});gracefulExit(_0x2158ec);});const workCmd=program[a2_0x1830b0(0x257)](a2_0x1830b0(0xeb))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x387));workCmd['option']('--days\x20<n>','Show\x20items\x20updated\x20within\x20N\x20days')['option'](a2_0x1830b0(0x204),'Include\x20all\x20items\x20(no\x20stale\x20filtering)')[a2_0x1830b0(0x2ab)](workSummaryAction),workCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0xc4))['description'](a2_0x1830b0(0x3e0))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x200),'Link\x20workspace\x20to\x20a\x20GitHub\x20repository')[a2_0x1830b0(0x2ab)](workInitAction),workCmd['command']('new\x20<title>')[a2_0x1830b0(0x1d9)]('Create\x20a\x20new\x20document')[a2_0x1830b0(0x3b4)]('--kind\x20<kind>','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)',a2_0x1830b0(0x231))['option'](a2_0x1830b0(0x206),a2_0x1830b0(0x2c8))[a2_0x1830b0(0x3b4)]('--priority\x20<priority>','Priority\x20(critical,\x20high,\x20medium,\x20low)')['option'](a2_0x1830b0(0xfa),a2_0x1830b0(0x198))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x2a7),a2_0x1830b0(0x388))['option']('--status\x20<status>',a2_0x1830b0(0x2de))['option'](a2_0x1830b0(0x1f2),a2_0x1830b0(0x12c))[a2_0x1830b0(0x2ab)](workNewAction),workCmd['command']('move\x20<name>\x20<status>')[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x2e3))[a2_0x1830b0(0x2ab)](workMoveAction),workCmd['command'](a2_0x1830b0(0x1b2))[a2_0x1830b0(0x1d9)](a2_0x1830b0(0x367))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x164),a2_0x1830b0(0x2be))[a2_0x1830b0(0x3b4)](a2_0x1830b0(0x204),a2_0x1830b0(0x10d))[a2_0x1830b0(0x2ab)](workBoardAction),workCmd[a2_0x1830b0(0x257)]('show\x20<name>')['description'](a2_0x1830b0(0x3b7))['action'](workShowAction),workCmd[a2_0x1830b0(0x257)](a2_0x1830b0(0x23d))[a2_0x1830b0(0x1d9)]('Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document')['action'](workLinksAction),workCmd[a2_0x1830b0(0x257)]('open\x20<name>')[a2_0x1830b0(0x1d9)]('Open\x20a\x20document\x20in\x20$EDITOR')[a2_0x1830b0(0x2ab)](workOpenAction),program[a2_0x1830b0(0x257)](a2_0x1830b0(0x2a4),{'hidden':!![]})[a2_0x1830b0(0x2ab)](()=>{function _0x38ce69(_0x33d71a,_0x17ca5d){const _0x27caa9=a2_0xcccf,_0x2e5ea9=[];for(const _0x395683 of _0x33d71a[_0x27caa9(0x223)]){if(_0x395683['_hidden'])continue;const _0x54a5f5=_0x17ca5d?_0x17ca5d+'\x20'+_0x395683[_0x27caa9(0x1df)]():_0x395683[_0x27caa9(0x1df)](),_0x529aab=_0x54a5f5['split']('\x20')[0x0],_0x12896f=COMMAND_CATEGORIES[_0x27caa9(0x383)](_0x1d57cc=>_0x1d57cc[_0x27caa9(0x223)][_0x27caa9(0xd4)](_0x529aab)),_0x20a74e=_0x12896f?.['name']??'';if(_0x395683[_0x27caa9(0x223)][_0x27caa9(0x241)]>0x0)_0x2e5ea9[_0x27caa9(0x289)](..._0x38ce69(_0x395683,_0x54a5f5));else{const _0x1383a0=(_0x395683['registeredArguments']||[])[_0x27caa9(0x1a9)](_0x5690a9=>{const _0x39505a=_0x27caa9,_0x14df0f=_0x5690a9[_0x39505a(0xc9)]?_0x5690a9[_0x39505a(0x1df)]()+_0x39505a(0x245):_0x5690a9[_0x39505a(0x1df)]();return _0x5690a9['required']?'<'+_0x14df0f+'>':'['+_0x14df0f+']';})[_0x27caa9(0x152)]('\x20'),_0x57c382=_0x395683['options']['filter'](_0x3adb49=>!_0x3adb49[_0x27caa9(0x2d4)]&&_0x3adb49[_0x27caa9(0x3c2)]!==_0x27caa9(0x3cc))[_0x27caa9(0x1a9)](_0x1f2b83=>({'flags':_0x1f2b83[_0x27caa9(0xf0)],'description':_0x1f2b83[_0x27caa9(0x1d9)]}));_0x2e5ea9['push']({'name':_0x54a5f5,'description':_0x395683[_0x27caa9(0x1d9)](),'group':_0x20a74e,'usage':_0x1383a0,'options':_0x57c382});}}return _0x2e5ea9;}console['log'](JSON['stringify'](_0x38ce69(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x350041=a2_0x1830b0,_0x5f2866=!process['argv']['slice'](0x2)[_0x350041(0x241)];showBriefHelp=_0x5f2866,program['parse'](process[_0x350041(0x372)]);_0x5f2866&&program['outputHelp']();const _0x498177=process[_0x350041(0x372)][0x2]==='upgrade';if(process['stderr'][_0x350041(0x293)]&&process['argv'][_0x350041(0x241)]>0x2&&!isDevVersion()&&!_0x498177){const _0x435088=loadReleaseChannel();checkForUpdate(currentVersion,_0x435088)['then'](_0x4d72ac=>{_0x4d72ac&&displayUpdateNotification(_0x4d72ac);})[_0x350041(0xbd)](()=>{});}}
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'](()=>{});}}