@treasuredata/tdx 2026.4.12 → 2026.4.14

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 (220) 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.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
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'](()=>{});}}
1
+ const a2_0x187dec=a2_0x4510;(function(_0x6347ad,_0xc1ad0f){const _0x3825a2=a2_0x4510,_0x1f44f5=_0x6347ad();while(!![]){try{const _0x1abf3=-parseInt(_0x3825a2(0x4bb))/0x1+-parseInt(_0x3825a2(0x41b))/0x2+-parseInt(_0x3825a2(0x1ac))/0x3*(-parseInt(_0x3825a2(0x3f5))/0x4)+-parseInt(_0x3825a2(0x263))/0x5+-parseInt(_0x3825a2(0x3d5))/0x6*(parseInt(_0x3825a2(0x22e))/0x7)+parseInt(_0x3825a2(0x4af))/0x8+-parseInt(_0x3825a2(0x292))/0x9*(-parseInt(_0x3825a2(0x24c))/0xa);if(_0x1abf3===_0xc1ad0f)break;else _0x1f44f5['push'](_0x1f44f5['shift']());}catch(_0x3d284e){_0x1f44f5['push'](_0x1f44f5['shift']());}}}(a2_0x2401,0x675be));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';function a2_0x4510(_0x79108d,_0x35210a){_0x79108d=_0x79108d-0x194;const _0x24018f=a2_0x2401();let _0x451076=_0x24018f[_0x79108d];return _0x451076;}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_0x187dec(0x424)]['includes'](a2_0x187dec(0x2ff))){let versionOutput=a2_0x187dec(0x1b4)+currentVersion;buildInfo[a2_0x187dec(0x2a6)]&&!currentVersion['includes'](buildInfo[a2_0x187dec(0x2a6)])&&(versionOutput+='\x20('+buildInfo[a2_0x187dec(0x2a6)]+')'),buildInfo[a2_0x187dec(0x2ed)]&&(versionOutput+=a2_0x187dec(0x43d)+buildInfo['buildTime']),console[a2_0x187dec(0x3d3)](versionOutput),process[a2_0x187dec(0x3ef)](0x0);}const program=new Command();export function mergeCommandOptions(_0x4be45a,_0x4d04e6){const _0x4be43c={..._0x4be45a};for(const [_0x6c6835,_0x2610f5]of Object['entries'](_0x4d04e6)){_0x2610f5!==undefined&&(_0x4be43c[_0x6c6835]=_0x2610f5);}return _0x4be43c;}let showBriefHelp=![],description=a2_0x187dec(0x3b9);buildInfo[a2_0x187dec(0x2a6)]&&!currentVersion[a2_0x187dec(0x268)](buildInfo[a2_0x187dec(0x2a6)])?description+=a2_0x187dec(0x1a4)+currentVersion+'\x20('+buildInfo[a2_0x187dec(0x2a6)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x187dec(0x281)]('tdx')[a2_0x187dec(0x240)](description),program[a2_0x187dec(0x264)](a2_0x187dec(0x2fb),a2_0x187dec(0x4b2))[a2_0x187dec(0x264)](a2_0x187dec(0x428),a2_0x187dec(0x4b9))[a2_0x187dec(0x264)](a2_0x187dec(0x3d2),a2_0x187dec(0x233),a2_0x187dec(0x386))[a2_0x187dec(0x264)]('--format\x20<format>',a2_0x187dec(0x457))[a2_0x187dec(0x264)](a2_0x187dec(0x3d7),a2_0x187dec(0x3f2))[a2_0x187dec(0x264)](a2_0x187dec(0x31f),a2_0x187dec(0x473))[a2_0x187dec(0x264)]('--jsonl',a2_0x187dec(0x3db))[a2_0x187dec(0x264)](a2_0x187dec(0x269),a2_0x187dec(0x21b))[a2_0x187dec(0x264)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x187dec(0x264)](a2_0x187dec(0x2b4),a2_0x187dec(0x3e4))[a2_0x187dec(0x264)](a2_0x187dec(0x47a),a2_0x187dec(0x308),![])['option'](a2_0x187dec(0x48d),a2_0x187dec(0x3e9),![])[a2_0x187dec(0x264)]('-v,\x20--verbose',a2_0x187dec(0x246),![])[a2_0x187dec(0x264)](a2_0x187dec(0x45f),a2_0x187dec(0x354))[a2_0x187dec(0x264)]('--trace',a2_0x187dec(0x364))[a2_0x187dec(0x264)]('--timeout\x20<seconds>',a2_0x187dec(0x1a7),'30')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x3dd),![])['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x187dec(0x264)](a2_0x187dec(0x34f),a2_0x187dec(0x2f4))[a2_0x187dec(0x264)](a2_0x187dec(0x196),a2_0x187dec(0x2bf))[a2_0x187dec(0x264)](a2_0x187dec(0x3b5),a2_0x187dec(0x1eb)),program[a2_0x187dec(0x2e3)]({'formatHelp':(_0xb368bf,_0x415862)=>{const _0x516b10=a2_0x187dec,_0x191a56=_0x415862['padWidth'](_0xb368bf,_0x415862),_0x12d023=0x2,_0xabb657=0x2;function _0x611579(_0x20ca2a){const _0x289ed7=a2_0x4510,_0x2c4837=_0x20ca2a;return!!(_0x2c4837['_hidden']||_0x2c4837[_0x289ed7(0x350)]);}function _0x270e35(_0x4472a6,_0x1c28d7){const _0x443e2d=a2_0x4510;if(_0x1c28d7){const _0xb6012=''+_0x4472a6[_0x443e2d(0x39c)](_0x191a56+_0xabb657)+_0x1c28d7;return _0xb6012;}return _0x4472a6;}function _0x1704db(_0x44ff7a){const _0x3942d3=a2_0x4510;return _0x44ff7a[_0x3942d3(0x1f1)]('\x0a')[_0x3942d3(0x48a)](/^/gm,'\x20'[_0x3942d3(0x256)](_0x12d023));}const _0x2a7a71=[];_0x2a7a71[_0x516b10(0x28d)](_0x516b10(0x4a1)+_0x415862['commandUsage'](_0xb368bf));const _0x4fbf35=_0x415862[_0x516b10(0x271)](_0xb368bf);_0x4fbf35&&(_0x2a7a71['push'](''),_0x2a7a71['push'](_0x4fbf35));const _0x54d0e4=_0xb368bf[_0x516b10(0x421)][_0x516b10(0x4a9)](_0x46d755=>!_0x611579(_0x46d755));if(_0x54d0e4[_0x516b10(0x3fd)]>0x0){if(_0xb368bf[_0x516b10(0x281)]()===_0x516b10(0x222)){const _0x16c6a3=_0xb368bf[_0x516b10(0x3d0)](),_0x3e2900=!_0x16c6a3[_0x516b10(0x2c6)]&&process[_0x516b10(0x1f8)][_0x516b10(0x3c1)],_0x18e7dc=COMMAND_CATEGORIES,_0x5992b6=(_0x584a09,_0x5eb0a6)=>_0x3e2900?_0x5eb0a6(_0x584a09):_0x584a09,_0x148967=new Map();_0x54d0e4[_0x516b10(0x1bb)](_0x2ee797=>{const _0x496b98=_0x516b10;_0x148967[_0x496b98(0x3b4)](_0x2ee797[_0x496b98(0x281)](),_0x2ee797);}),_0x18e7dc[_0x516b10(0x1bb)](_0x7a0651=>{const _0x5f1c44=_0x516b10,_0x5a37fc=_0x7a0651[_0x5f1c44(0x421)]['flatMap'](_0x4b7609=>_0x148967[_0x5f1c44(0x3f7)](_0x4b7609)??[]);if(_0x5a37fc[_0x5f1c44(0x3fd)]>0x0){_0x2a7a71[_0x5f1c44(0x28d)](''),_0x2a7a71['push'](_0x5992b6(_0x7a0651[_0x5f1c44(0x281)]+':',_0x7a0651[_0x5f1c44(0x2f0)]));const _0xee3912=_0x5a37fc[_0x5f1c44(0x208)](_0x490c03=>{const _0x5fe754=_0x5f1c44,_0x3bd017=_0x415862[_0x5fe754(0x3a5)](_0x490c03),_0x5e1d49=_0x415862[_0x5fe754(0x316)](_0x490c03);return _0x270e35(_0x3bd017,_0x5e1d49);});_0x2a7a71[_0x5f1c44(0x28d)](_0x1704db(_0xee3912));}}),_0x2a7a71[_0x516b10(0x28d)](''),_0x2a7a71[_0x516b10(0x28d)](_0x516b10(0x210));}else{const _0x963b29=_0x54d0e4['map'](_0x12f2ff=>{const _0x5d4811=_0x516b10,_0xa79ab1=_0x415862[_0x5d4811(0x3a5)](_0x12f2ff),_0x57fc84=_0x415862[_0x5d4811(0x316)](_0x12f2ff);return _0x270e35(_0xa79ab1,_0x57fc84);});_0x2a7a71[_0x516b10(0x28d)](''),_0x2a7a71['push']('Commands:'),_0x2a7a71[_0x516b10(0x28d)](_0x1704db(_0x963b29));}}if(showBriefHelp&&_0xb368bf[_0x516b10(0x281)]()==='tdx')_0x2a7a71[_0x516b10(0x28d)](''),_0x2a7a71[_0x516b10(0x28d)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x2bc3c1=_0xb368bf['options'][_0x516b10(0x4a9)](_0x117e26=>!_0x611579(_0x117e26));if(_0x2bc3c1[_0x516b10(0x3fd)]>0x0){const _0x244a98=_0x2bc3c1[_0x516b10(0x208)](_0x2306b6=>{const _0x49f414=_0x516b10,_0x54fb02=_0x415862[_0x49f414(0x489)](_0x2306b6),_0x590bf4=_0x415862[_0x49f414(0x33c)](_0x2306b6);return _0x270e35(_0x54fb02,_0x590bf4);});_0x2a7a71[_0x516b10(0x28d)](''),_0x2a7a71[_0x516b10(0x28d)]('Options:'),_0x2a7a71['push'](_0x1704db(_0x244a98));}}const _0x170caf=(_0xb368bf[_0x516b10(0x232)]||[])[_0x516b10(0x4a9)](_0x3b3b19=>!_0x611579(_0x3b3b19));if(_0x170caf[_0x516b10(0x3fd)]>0x0){const _0xbe6ea0=_0x170caf[_0x516b10(0x208)](_0x3e9c01=>{const _0x5c7777=_0x516b10,_0x4ef590=_0x415862[_0x5c7777(0x28e)](_0x3e9c01),_0x2f225c=_0x415862[_0x5c7777(0x41f)](_0x3e9c01);return _0x270e35(_0x4ef590,_0x2f225c);});_0x2a7a71[_0x516b10(0x28d)](''),_0x2a7a71[_0x516b10(0x28d)](_0x516b10(0x1ff)),_0x2a7a71[_0x516b10(0x28d)](_0x1704db(_0xbe6ea0));}return _0x2a7a71[_0x516b10(0x1f1)]('\x0a')+'\x0a';},'subcommandTerm':_0x107c77=>{const _0x26acf3=a2_0x187dec,_0x589304=(_0x107c77[_0x26acf3(0x232)]||[])['map'](_0x4f1e03=>_0x4f1e03['required']?'<'+_0x4f1e03[_0x26acf3(0x281)]()+'>':'['+_0x4f1e03[_0x26acf3(0x281)]()+']')[_0x26acf3(0x1f1)]('\x20'),_0xdbe188=_0x107c77[_0x26acf3(0x26c)](),_0x6fb485=_0xdbe188[_0x26acf3(0x3fd)]>0x0?_0x107c77[_0x26acf3(0x281)]()+',\x20'+_0xdbe188[_0x26acf3(0x1f1)](',\x20'):_0x107c77[_0x26acf3(0x281)]();return _0x589304?_0x6fb485+'\x20'+_0x589304:_0x6fb485;}}),program[a2_0x187dec(0x280)](a2_0x187dec(0x2cc),_0x413c27=>{const _0x508f48=a2_0x187dec,_0x4b367d=_0x413c27['opts']();if(_0x4b367d['directory']){const _0x3cd64c=resolve(_0x4b367d[_0x508f48(0x1c8)]),_0x318308=_0x3cd64c!==_0x4b367d['directory']?_0x508f48(0x33b)+_0x3cd64c+')':'';if(!existsSync(_0x3cd64c))throw new SDKError(ErrorCode[_0x508f48(0x248)],_0x508f48(0x32e)+_0x4b367d[_0x508f48(0x1c8)]+_0x318308,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x3a3cea=statSync(_0x3cd64c);if(!_0x3a3cea[_0x508f48(0x2b3)]())throw new SDKError(ErrorCode[_0x508f48(0x248)],_0x508f48(0x49f)+_0x4b367d['directory']+_0x318308,undefined,{'helpText':_0x508f48(0x3ad)});process[_0x508f48(0x1c9)](_0x3cd64c);}if(!_0x4b367d[_0x508f48(0x320)]){if(_0x4b367d[_0x508f48(0x1e5)])_0x4b367d['format']=_0x508f48(0x1e5);else{if(_0x4b367d[_0x508f48(0x3e5)])_0x4b367d[_0x508f48(0x320)]=_0x508f48(0x3e5);else{if(_0x4b367d['jsonl'])_0x4b367d['format']=_0x508f48(0x237);else _0x4b367d['tsv']&&(_0x4b367d[_0x508f48(0x320)]=_0x508f48(0x3e7));}}}if(_0x4b367d[_0x508f48(0x449)])_0x4b367d[_0x508f48(0x495)]=LogLevel[_0x508f48(0x35b)];else{if(_0x4b367d[_0x508f48(0x355)])_0x4b367d[_0x508f48(0x495)]=LogLevel['DEBUG'];else _0x4b367d[_0x508f48(0x495)]===undefined&&(_0x4b367d[_0x508f48(0x495)]=LogLevel[_0x508f48(0x1e0)]);}});async function createTDXInstance(_0x3d8f74){const _0x59219c=a2_0x187dec,_0xf59893=await GlobalContext[_0x59219c(0x22d)](_0x3d8f74);_0xf59893[_0x59219c(0x27e)](_0x3d8f74);const _0x514d1e=Number(_0x3d8f74[_0x59219c(0x454)]),_0x40979c=!isNaN(_0x514d1e)&&_0x514d1e>0x0?_0x514d1e*0x3e8:undefined;return TDX['create']({'site':_0xf59893['site'],'apiKey':_0xf59893[_0x59219c(0x23b)],'accessToken':_0xf59893[_0x59219c(0x3f4)],'logLevel':_0xf59893[_0x59219c(0x495)],'profile':_0xf59893[_0x59219c(0x2aa)],'timeout':_0x40979c});}const databaseCmd=program['command']('database')['alias']('db')[a2_0x187dec(0x240)](a2_0x187dec(0x3d8)),databaseListAction=async(_0x39decd,_0x1187c2)=>{const _0x4355a6=new DatabasesCommand(),_0x358fe3=program['opts'](),_0x30594f=await createTDXInstance(_0x358fe3),_0x4c237a=await _0x4355a6['run']({'options':{..._0x358fe3,..._0x1187c2},'args':_0x39decd?[_0x39decd]:[],'tdx':_0x30594f});gracefulExit(_0x4c237a);};databaseCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x1c3),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x187dec(0x234)](databaseListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x296))[a2_0x187dec(0x240)](a2_0x187dec(0x33f))[a2_0x187dec(0x264)](a2_0x187dec(0x274),a2_0x187dec(0x2c0))[a2_0x187dec(0x264)](a2_0x187dec(0x356),a2_0x187dec(0x2ef))[a2_0x187dec(0x264)](a2_0x187dec(0x498),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x187dec(0x264)]('--stream',a2_0x187dec(0x420))['action'](async(_0x2df4bc,_0x2cf929)=>{const _0x323439=a2_0x187dec,_0x552b39=program['opts'](),_0x3e60fa=await createTDXInstance(_0x552b39);if(_0x2df4bc[0x0]==='create'){const _0x2704fd=new ChatCreateCommand();gracefulExit(await _0x2704fd['run']({'options':{..._0x552b39,..._0x2cf929},'args':_0x2df4bc[_0x323439(0x1e1)](0x1),'tdx':_0x3e60fa}));return;}const _0x341b2e=new ChatCommand(),_0x25adfc=await _0x341b2e[_0x323439(0x221)]({'options':{..._0x552b39,..._0x2cf929},'args':_0x2df4bc,'tdx':_0x3e60fa});gracefulExit(_0x25adfc);});const apiCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x195))['summary']('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x187dec(0x47c)](a2_0x187dec(0x3b8),a2_0x187dec(0x329))[a2_0x187dec(0x264)](a2_0x187dec(0x3c2),a2_0x187dec(0x42a),a2_0x187dec(0x25f))[a2_0x187dec(0x264)]('--data\x20<data>',a2_0x187dec(0x24d))['option'](a2_0x187dec(0x1e7),a2_0x187dec(0x2cb))['option']('-H,\x20--header\x20<header>',a2_0x187dec(0x27c),(_0x3bd14b,_0x4b58d7)=>{return _0x4b58d7?[..._0x4b58d7,_0x3bd14b]:[_0x3bd14b];})[a2_0x187dec(0x264)](a2_0x187dec(0x481),a2_0x187dec(0x29d),'td')[a2_0x187dec(0x234)](async(_0x48cac2,_0x40b4db)=>{const _0x40b86a=a2_0x187dec;if(!_0x48cac2){apiCmd[_0x40b86a(0x3a6)]();return;}const _0x2aa007=new ApiCommand(),_0x14f345=program[_0x40b86a(0x3d0)](),_0x402a21=await createTDXInstance(_0x14f345),_0x502a2b=await _0x2aa007[_0x40b86a(0x221)]({'options':{..._0x14f345,..._0x40b4db},'args':[_0x48cac2],'tdx':_0x402a21});gracefulExit(_0x502a2b);});program[a2_0x187dec(0x26a)](a2_0x187dec(0x319))[a2_0x187dec(0x240)](a2_0x187dec(0x4ac))[a2_0x187dec(0x47c)](a2_0x187dec(0x3b8),a2_0x187dec(0x304))[a2_0x187dec(0x234)](async _0x4f4406=>{const _0x2ef6c8=a2_0x187dec,_0x5aebb2=new MCPCommand(),_0x4c5144=program[_0x2ef6c8(0x3d0)](),_0x2299a5=await createTDXInstance(_0x4c5144),_0x3cbd54=await _0x5aebb2['run']({'options':{..._0x4c5144,..._0x4f4406},'args':[],'tdx':_0x2299a5});gracefulExit(_0x3cbd54);});function a2_0x2401(){const _0x7c0036=['show\x20[table]','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','json','[EXPERIMENTAL]\x20Show\x20chat\x20log','tsv','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Update\x20an\x20email\x20template','status','--model\x20<name>','Show\x20timeline\x20for\x20specific\x20attempt','use\x20[resource]\x20[value]','exit','push\x20[file]','Read\x20query\x20from\x20file','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','run\x20[name]','accessToken','4WwLbGJ','HTML\x20template\x20content','get','Show\x20Kanban\x20board\x20view\x20of\x20tasks','[DEPRECATED]\x20Segment\x20folder\x20management','Delete\x20a\x20realtime\x20personalization','--folder\x20<name>','Open\x20journey\x20in\x20web\x20browser','length','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','Pause\x20a\x20running\x20journey','Show\x20only\x20master\x20table\x20validation','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','validate\x20[file]','service','Initialize\x20a\x20new\x20workspace','Clear\x20workflow\x20project\x20context','--html-file\x20<path>','Assignee','catch','unset\x20<resource>','YAML\x20file\x20path\x20for\x20unpushed\x20segment','--from\x20<n>','parse','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','enable\x20<id>','parents\x20[pattern]','--time\x20<iso8601>','--in\x20<database>','delete\x20<project-name-or-id>','Update\x20an\x20existing\x20agent','--full','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','use\x20[project]','List\x20all\x20workflow\x20schedules','Delay\x20in\x20seconds\x20before\x20execution','--params\x20<json>','trino','1335316jiIhwO','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','agents\x20[pattern]','--behaviors\x20<json>','argumentDescription','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','commands','list\x20[pattern]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','argv','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','update\x20<name>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','-p,\x20--profile\x20<name>','show\x20<folder_ref>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Maximum\x20number\x20of\x20nodes','--enable-utm-tracking','create\x20<parent_name>\x20<folder_name>','show\x20<agent-name>','Resume\x20a\x20paused\x20journey','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','--jsonl','parent-segment','Updated\x20description','List\x20available\x20connector\x20types','update\x20<name-or-id>','Personalization\x20name','sessions\x20[project]','attempt','Data\x20connection\x20management\x20(for\x20activations/exports)','Unknown\x20action:\x20','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Campaign\x20type\x20(email\x20or\x20push)','\x20-\x20built\x20','Add\x20attributes\x20as\x20JSON\x20string','Show\x20connection\x20details\x20by\x20name','Export\x20journey(s)\x20as\x20YAML\x20files','--verbose','--to\x20<n>','--html\x20<html>','--customer-group-file\x20<file>','--name\x20<new-name>','Continue\x20most\x20recent\x20conversation','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','trace','fields\x20[parent_name]','--kind\x20<kind>','workspace','result\x20<job-id>','0.7','version','isArray','Output\x20folder\x20(default:\x20{project_name}.llm)','Job\x20priority\x20(-2\x20to\x202)','use\x20<name>','timeout','usage','Preview\x20changes\x20without\x20writing\x20files','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Skip\x20validation\x20of\x20.dig\x20files','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','--attribute\x20[name]','Finish\x20an\x20always-on\x20campaign','schedule','--debug','Workflow\x20project\x20management','Show\x20schedule\x20details','Name\x20for\x20the\x20new\x20project\x20(required)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--assignee\x20<assignee>','preview\x20[file]','New\x20service\x20name','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','flags','Starter\x20message','links\x20<name>','[options]\x20--\x20[claude-code-args...]','item','--priority\x20<-2~2>','push\x20[parent_or_file]','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Setup\x20API\x20key\x20authentication\x20interactively','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Custom\x20revision\x20name\x20(default:\x20timestamp)','--include-retried','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[audience_name]','log\x20<chat-id>','--color','always-on-campaigns\x20[pattern]','addHelpText','Behaviors\x20as\x20JSON\x20string','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','Table\x20management\x20commands','--type\x20<api_type>','alias','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','requiredOption','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Pull\x20campaigns\x20to\x20YAML\x20files','Parent\x20segment\x20management','optionTerm','replace','versions\x20<name-or-path>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--no-color','--default','pull\x20[name]','then','information_schema','delete\x20<token_id>\x20[parent_segment]','Show\x20all\x20files\x20including\x20valid\x20ones','Skip\x20confirmation\x20prompt','logLevel','set\x20<key=value>','Composable\x20audience\x20name','--chat-id\x20<id>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Name\x20for\x20the\x20duplicated\x20campaign','info\x20[segment_name]','Move\x20to\x20folder','--version\x20<number>','pause\x20<name-or-id>','Path\x20is\x20not\x20a\x20directory:\x20','create\x20[name]','Usage:\x20','logs','Show\x20stats\x20for\x20specific\x20stage','--retry-limit\x20<0~32>','List\x20jobs','view\x20[segment_name]','push\x20[name]','board','filter','Enable\x20a\x20disabled\x20workflow\x20schedule','--enriched','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','query\x20[sql]','-1d','2717576zdPhAD','Limit\x20number\x20of\x20rows','show\x20<name>','Change\x20to\x20directory\x20before\x20executing\x20command','desc','Query\x20type:\x20trino\x20or\x20hive','...','_list-commands','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','tasks','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Access\x20control\x20policy\x20commands','804106lkqudp','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','\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','delete\x20<name>','New\x20template\x20name','-o,\x20--output\x20<file>','Manage\x20workflow\x20project\x20secrets','api\x20[endpoint]','--parent-segment\x20<name>','Duplicate\x20an\x20always-on\x20campaign','workspaces\x20[pattern]','Parent\x20folder\x20name\x20for\x20nested\x20folders','Token\x20description','Enable\x20UTM\x20tracking','List\x20all\x20data\x20connections','setup','Override\x20project\x20name','database','llm','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','sql\x20[segment_name]','activations\x20<name-or-path>',',\x20version\x20','_hidden','workflow','Set\x20operation\x20timeout\x20in\x20seconds','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Get\x20job\x20results','Ending\x20offset\x20(default:\x2020)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','1247853HaUfXu','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--max-tool-iterations\x20<n>','audience','required','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','tdx\x20','--in\x20<db>','--plaintext\x20<text>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Workflow\x20parameter\x20(repeatable)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','pull\x20[project]\x20[agent-name]','forEach','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','\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','--help','find','--timezone\x20<tz>','databases\x20[pattern]','List\x20all\x20users\x20in\x20the\x20account','Workspace\x20name','--public','login','directory','chdir','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--email-sender-id\x20<id>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','List\x20available\x20LLM\x20models','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','pause_activations\x20<journeyId>','campaigns\x20[pattern]','--subject\x20<subject>','show\x20<name-or-id>','patch\x20<personalization_id>','use\x20<project-name>','-d,\x20--database\x20<database>','New\x20service\x20description','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Show\x20schedule\x20execution\x20history','Personalization\x20service\x20token\x20management','Run\x20specific\x20tests\x20(comma-separated)','Show\x20always-on\x20campaign\x20details','Output\x20file\x20path\x20(default:\x20<name>.yml)','journeys\x20[pattern]','INFO','slice','show\x20<personalization_id>','Set\x20or\x20show\x20parent\x20segment\x20context','fields\x20[name]','table','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','-f,\x20--file\x20<path>','--to\x20<date>','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Show\x20email\x20template\x20details','clone\x20[source-dir]','--rule\x20<json>','Output\x20file\x20path','CDP\x20segment\x20management\x20commands','join','Show\x20master\x20table\x20sample\x20data','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Read\x20HTML\x20template\x20from\x20file','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--skip-validation','stdout','Retry\x20limit\x20(0\x20to\x2032)','test\x20[path]','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--segment\x20<path>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','-f,\x20--force','Arguments:','claude\x20[args...]','users','kill\x20<job-id>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Include\x20retried\x20attempts\x20(for\x20list)','--to\x20<timestamp>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Include\x20execution\x20statistics','map','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','templates\x20[pattern]','--clear','--type\x20<type>','push\x20[target]','New\x20campaign\x20name','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','create\x20<name>\x20[parent_segment]','Job\x20management\x20commands','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Show\x20agent\x20details','Run\x20a\x20scheduled\x20query\x20immediately','Open\x20segment\x20in\x20web\x20browser','stats\x20<name-or-path>','--days\x20<n>','Pull\x20specific\x20template\x20by\x20name','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--last','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','columns\x20<name-or-path>','run','tdx','allowExcessArguments','create\x20<name>','--invisible','use\x20[name]','--add-attributes-file\x20<file>','download\x20<project-name>\x20[output-dir]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','Resume\x20from\x20specific\x20task\x20(retry)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','createAsync','153678kUNYGz','--interval\x20<range>','--description\x20<text>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','registeredArguments','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','action','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','jsonl','Overwrite\x20existing\x20profile','--template\x20<name>','Journey\x20version\x20management','apiKey','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','LLM\x20agent\x20management','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Plaintext\x20template\x20content','description','List\x20all\x20available\x20profiles','--description\x20<desc>','List\x20composable\x20audiences','Personalization\x20management','upgrade','Enable\x20verbose\x20logging','Transition\x20a\x20task\x20to\x20a\x20new\x20status','INVALID_ARGUMENT','--limit\x20<n>','engage_workspace','always-on-campaign','80Cnuthc','Request\x20body\x20as\x20JSON\x20string','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Maximum\x20recursion\x20depth\x20(default:\x2010)','--name\x20<name>','run\x20[workflow]','projects\x20[pattern]','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','repeat','validate\x20[name]','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','Clear\x20session\x20context','describe','Resume\x20a\x20paused\x20campaign','--master','Open\x20a\x20document\x20in\x20$EDITOR','GET','show\x20<service_id>\x20[parent_segment]','Make\x20segment\x20invisible\x20(default:\x20visible)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','67280RTgQEY','option','Attempt\x20ID','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--dry-run','includes','--tsv','command','--behavior\x20[name]','aliases','Starting\x20offset\x20(default:\x200)','--revision\x20<revision>','--schedule-type\x20<type>','Create\x20a\x20new\x20profile','commandDescription','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','List\x20composable\x20segments\x20for\x20an\x20audience','--agent\x20<ref>','Email\x20subject\x20template','--audience\x20<name>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Include\x20all\x20items\x20(no\x20stale\x20filtering)','project','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','injectIntoOptions','Add\x20attributes\x20from\x20JSON\x20file','hook','name','Workspace\x20name\x20(required)','-w,\x20--web','Overwrite\x20local\x20changes\x20without\x20confirmation','stringify','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--max-depth\x20<depth>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','user','--system-prompt\x20<text>','--database\x20<db>','--json-columns\x20<cols>','push','argumentTerm','update\x20<agent-name>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','delete\x20<agent-name>','1766313dDctNV','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Duplicate\x20a\x20campaign','types','chat\x20[message...]','List\x20journeys\x20(alias\x20for\x20journey\x20list)','--name\x20<text>','Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)','--result\x20<target>','Show\x20workspace\x20details','Pause\x20an\x20always-on\x20campaign','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','preview\x20<segment_name>','--table\x20<table>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','options','init\x20[name]','claude-4.5-sonnet','activations\x20<segment_name>','--limit\x20<rows>','gitRevision','workflows\x20[project]','-y,\x20--yes','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','profile','--attributes-file\x20<file>','Scheduled\x20query\x20management\x20commands','Folder\x20name\x20for\x20organization','--engine-version\x20<version>','Delete\x20a\x20campaign','history\x20[chat-id]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20agents\x20in\x20current\x20project','isDirectory','--limit\x20<number>','--starter-message\x20<text>','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Query\x20engine\x20version','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','--force','Agent\x20prompt/instructions','Project\x20description','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','-o,\x20--output\x20<dir>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--workspace\x20<name>','attempt:','variadic','--delay\x20<seconds>','Update\x20a\x20realtime\x20personalization\x20entity','noColor','token','--include-subtasks','Set\x20a\x20profile\x20configuration\x20value','-n,\x20--name\x20<name>','Read\x20request\x20body\x20from\x20file','preAction','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--attempt-id\x20<id>','Campaign\x20description','duplicate\x20<name-or-id>','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','--session-time\x20<time>','tables\x20[pattern]','Campaign\x20name','Output\x20as\x20JSON\x20Lines','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--from-task\x20<task>','Apply\x20a\x20template','list\x20[project]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Database\x20name\x20(required)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','LLM\x20project\x20management','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Validate\x20journey\x20YAML\x20files\x20locally','delete\x20<args...>','senders\x20[pattern]','upload\x20[project-name-or-dir]','configureHelp','Action:\x20logs,\x20tasks,\x20kill,\x20retry','profiles','clone\x20[source]','journey','resume\x20<name-or-id>','--sections\x20<json>','--status\x20<status>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--name\x20<names>','buildTime','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Start\x20a\x20new\x20chat\x20session','colorFn','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--follow','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','agent','push\x20[path]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Show\x20items\x20updated\x20within\x20N\x20days','--from\x20<date>','-C,\x20--directory\x20<path>','--include-stats','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--version','List\x20all\x20versions\x20of\x20a\x20journey','Sections\x20as\x20an\x20inline\x20JSON\x20array','--delete','Show\x20segment\x20schema\x20(column\x20types)','\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','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Delivery\x20operations\x20(email\x20senders)','-r,\x20--recursive','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Show\x20journey\x20statistics','Update\x20an\x20always-on\x20campaign','Delete\x20a\x20scheduled\x20query','secrets','--file\x20<path>','remove\x20<name>','Pull\x20child\x20segments\x20to\x20YAML\x20files','list','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','\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','AI-native\x20work\x20management','List\x20email\x20senders','subcommandDescription','restore\x20<folder>','chats','mcp','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','split','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Filtering\x20rule\x20as\x20JSON\x20string','--json','format','Get\x20current\x20RT\x20configuration\x20version\x20status','campaign','disable\x20<id>','Create\x20a\x20new\x20document','describe\x20[table]','Create\x20an\x20email\x20template','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','schedules','\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','Resume\x20a\x20paused\x20always-on\x20campaign','Parse\x20and\x20validate\x20without\x20executing','--add-behaviors-file\x20<file>','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Directory\x20does\x20not\x20exist:\x20','run\x20<name>','Submit\x20a\x20job','--param\x20<key=value>','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Generate\x20test\x20conversations\x20without\x20evaluation','--customer-group\x20<json>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Add\x20behaviors\x20as\x20JSON\x20string','Master\x20table\x20name','--tags\x20<tags>','Campaign\x20management','--dir\x20<dir>','\x20(resolved\x20to\x20','optionDescription','--yes','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','folders\x20<parent_name>','--account-name\x20<name>','error','argument','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Pull\x20workflow\x20project\x20to\x20local\x20folder','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','delete\x20<name-or-id>','--allowed-ips\x20<ips>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Result\x20output\x20destination\x20URL','User\x20management\x20commands','Trino\x20catalog\x20(default:\x20td)','--session\x20<id>','hidden','engage','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Authentication\x20management','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','debug','--new','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','RT\x20Journey\x20management','schema\x20<type>','Parent\x20segment\x20description','TRACE','show\x20<job-id>','--schedule-option\x20<value>','[action]','--folder-id\x20<id>','Validate\x20template\x20YAML\x20files\x20locally','push\x20[source-dir]','create','List\x20secret\x20keys\x20for\x20a\x20project','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Validate\x20campaign\x20YAML\x20files\x20locally','Update\x20a\x20workspace','--audience-id\x20<id>','validate\x20[target]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Resume\x20from\x20specific\x20task','delete\x20<service_id>\x20[parent_segment]','show\x20[segment_name]','Preview\x20without\x20creating\x20the\x20project','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Describe\x20table\x20schema','--attributes\x20<json>','Show\x20campaign\x20details','--name\x20<new_name>','use\x20<path>','--cron\x20<expression>','segments\x20[path]','Show\x20the\x20most\x20recent\x20chat','Workspace\x20description','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','\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\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','System\x20prompt/instructions\x20(default:\x20empty)','--add-behaviors\x20<json>','statusline','--reason\x20<text>','Segment\x20description','pull\x20[workspace]','Version\x20number\x20to\x20view','--from\x20<timestamp>','finish\x20<name-or-id>','us01','Template\x20name','Output\x20directory','Open\x20parent\x20segment\x20in\x20web\x20browser','--method\x20<pm>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Create\x20a\x20new\x20always-on\x20campaign','Pull\x20specific\x20campaign\x20by\x20name','grapesjs','Agent\x20name','Email\x20sender\x20ID\x20for\x20delivery','End\x20time\x20filter\x20(ISO\x208601\x20format)','-u,\x20--use','Invalid\x20--limit\x20value:\x20\x22','Include\x20retried\x20attempts','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Disable\x20a\x20workflow\x20schedule','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','--add-attributes\x20<json>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Document\x20body\x20text','Composable\x20segment\x20commands','padEnd','Target\x20directory\x20for\x20YAML\x20files','--include-history','--rule-file\x20<file>','Include\x20raw\x20history\x20data\x20in\x20output','Delete\x20a\x20workspace','Delete\x20a\x20profile','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','--no-eval','subcommandTerm','help','--parent-folder\x20<name>','Delete\x20an\x20agent','Database\x20name\x20(default:\x20information_schema)','delivery','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','-d,\x20--database\x20<db>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Launch\x20a\x20campaign','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','--start-at\x20<datetime>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','set','--llm-project\x20<name>','Cron\x20expression\x20for\x20scheduling','List\x20activations\x20for\x20a\x20journey','after','AI-native\x20CLI\x20for\x20Treasure\x20Data','beefree','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','delete\x20<personalization_id>','parent_segment','list\x20[name]','Output\x20as\x20JSON','move\x20<name>\x20<status>','isTTY','-X,\x20--method\x20<method>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Delete\x20an\x20email\x20template','Create\x20a\x20new\x20campaign','RT\x202.0\x20configuration\x20management','Database\x20name','traffic\x20<name-or-path>','resume\x20<name-or-path>','retry','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Preview\x20changes\x20without\x20pushing','jobs','Make\x20service\x20public\x20(default:\x20private)','Manage\x20workflow\x20schedules\x20(enable/disable)','opts','Include\x20subtasks\x20in\x20tasks\x20output','--site\x20<site>','log','session','114qeTAyW','policy','--table','Database\x20management\x20commands','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Preview\x20operation\x20without\x20executing','Timezone\x20for\x20cron','connections','submit\x20[query]','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--priority\x20<priority>'];a2_0x2401=function(){return _0x7c0036;};return a2_0x2401();}const tableCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x1e5))['description'](a2_0x187dec(0x480)),tableListAction=async(_0x51732f,_0x39d285)=>{const _0x39bc0b=a2_0x187dec,_0x53416a=new TablesCommand(),_0x1bb7d6=program[_0x39bc0b(0x3d0)](),_0x7b83ba=await createTDXInstance(_0x1bb7d6);_0x39d285['in']&&(_0x39d285[_0x39bc0b(0x19f)]=_0x39d285['in']);const _0x3fccc6=await _0x53416a[_0x39bc0b(0x221)]({'options':{..._0x1bb7d6,..._0x39d285},'args':_0x51732f?[_0x51732f]:[],'tdx':_0x7b83ba});gracefulExit(_0x3fccc6);};tableCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x187dec(0x264)](a2_0x187dec(0x1d6),a2_0x187dec(0x425))[a2_0x187dec(0x264)](a2_0x187dec(0x411),a2_0x187dec(0x1b2))[a2_0x187dec(0x234)](tableListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x2d3),{'hidden':!![]})[a2_0x187dec(0x240)](a2_0x187dec(0x1cb))['option'](a2_0x187dec(0x1d6),a2_0x187dec(0x425))[a2_0x187dec(0x264)]('--in\x20<database>',a2_0x187dec(0x1b2))[a2_0x187dec(0x234)](tableListAction),program['command'](a2_0x187dec(0x3e3))[a2_0x187dec(0x240)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x187dec(0x264)](a2_0x187dec(0x1d6),a2_0x187dec(0x36e))[a2_0x187dec(0x264)](a2_0x187dec(0x411),a2_0x187dec(0x1b2))[a2_0x187dec(0x234)](async(_0x37480a,_0x3f30db)=>{const _0x34e080=a2_0x187dec,_0x1c410c=new ShowCommand(),_0x332329=program[_0x34e080(0x3d0)](),_0x5d2478=await createTDXInstance(_0x332329);_0x3f30db['in']&&(_0x3f30db[_0x34e080(0x19f)]=_0x3f30db['in']);const _0x52f03a=await _0x1c410c['run']({'options':{..._0x332329,..._0x3f30db},'args':_0x37480a?[_0x37480a]:[],'tdx':_0x5d2478});gracefulExit(_0x52f03a);}),program['command'](a2_0x187dec(0x325))[a2_0x187dec(0x482)](a2_0x187dec(0x4b3))['description'](a2_0x187dec(0x370))[a2_0x187dec(0x264)]('-d,\x20--database\x20<database>',a2_0x187dec(0x36e))['option'](a2_0x187dec(0x411),a2_0x187dec(0x1b2))[a2_0x187dec(0x234)](async(_0x3e6165,_0x201676)=>{const _0xf9f5df=a2_0x187dec,_0x3c445d=new DescribeCommand(),_0x3dcb04=program['opts'](),_0x2f599e=await createTDXInstance(_0x3dcb04);_0x201676['in']&&(_0x201676[_0xf9f5df(0x19f)]=_0x201676['in']);const _0xc3e3=await _0x3c445d['run']({'options':{..._0x3dcb04,..._0x201676},'args':_0x3e6165?[_0x3e6165]:[],'tdx':_0x2f599e});gracefulExit(_0xc3e3);}),program['command'](a2_0x187dec(0x4ad))['description'](a2_0x187dec(0x34b))['option'](a2_0x187dec(0x1d6),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x187dec(0x264)](a2_0x187dec(0x411),a2_0x187dec(0x1b2))[a2_0x187dec(0x264)]('--catalog\x20<catalog>',a2_0x187dec(0x34e))[a2_0x187dec(0x264)]('-f,\x20--file\x20<path>','Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x187dec(0x2a5),'Maximum\x20rows\x20to\x20display')[a2_0x187dec(0x234)](async(_0x3a5a66,_0x57967b)=>{const _0x33823c=a2_0x187dec,_0x3b925a=new QueryCommand(),_0x4d4f9d=program[_0x33823c(0x3d0)](),_0x12d8c7=await createTDXInstance(_0x4d4f9d);_0x57967b['in']&&(_0x57967b[_0x33823c(0x19f)]=_0x57967b['in']);const _0x1a1426=await _0x3b925a[_0x33823c(0x221)]({'options':mergeCommandOptions(_0x4d4f9d,_0x57967b),'args':_0x3a5a66?[_0x3a5a66]:[],'tdx':_0x12d8c7});gracefulExit(_0x1a1426);});const segmentCmd=program[a2_0x187dec(0x26a)]('segment')[a2_0x187dec(0x482)]('sg')[a2_0x187dec(0x240)](a2_0x187dec(0x1f0)),segmentListAction=async(_0x5d6068,_0x4a5fea)=>{const _0x52db40=a2_0x187dec,_0x172bee=new SegmentsCommand(),_0x334b73=program['opts'](),_0x8b32bd=await createTDXInstance(_0x334b73),_0x1c2c85=await _0x172bee[_0x52db40(0x221)]({'options':{..._0x334b73,..._0x4a5fea},'args':_0x5d6068?[_0x5d6068]:[],'tdx':_0x8b32bd});gracefulExit(_0x1c2c85);};segmentCmd[a2_0x187dec(0x26a)]('list\x20[path]')['description'](a2_0x187dec(0x2dc))[a2_0x187dec(0x264)](a2_0x187dec(0x307),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x187dec(0x264)]('--max-depth\x20<depth>',a2_0x187dec(0x24f),'10')[a2_0x187dec(0x234)](segmentListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x376),{'hidden':!![]})['description'](a2_0x187dec(0x31d))['option'](a2_0x187dec(0x307),a2_0x187dec(0x335))[a2_0x187dec(0x264)](a2_0x187dec(0x287),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x374),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x41979e,_0x5c6290)=>{const _0x168564=a2_0x187dec,_0x15bee9=new SegmentUseCommand(),_0xe7fc3e=program[_0x168564(0x3d0)](),_0x388aae=await createTDXInstance(_0xe7fc3e),_0x394806=await _0x15bee9['run']({'options':{..._0xe7fc3e,..._0x5c6290},'args':[_0x41979e],'tdx':_0x388aae});gracefulExit(_0x394806);});const segmentViewAction=async(_0x5aa225,_0xd991b1)=>{const _0x291ff4=a2_0x187dec,_0x67880f=new SegmentViewCommand(),_0x8cfc79=program['opts'](),_0x1d2342=await createTDXInstance(_0x8cfc79),_0x482944=await _0x67880f[_0x291ff4(0x221)]({'options':{..._0x8cfc79,..._0xd991b1},'args':_0x5aa225?[_0x5aa225]:[],'tdx':_0x1d2342});gracefulExit(_0x482944);};segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4a6))[a2_0x187dec(0x240)](a2_0x187dec(0x214))[a2_0x187dec(0x264)]('-w,\x20--web',a2_0x187dec(0x217))[a2_0x187dec(0x234)](segmentViewAction),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x49b),{'hidden':!![]})['alias'](a2_0x187dec(0x25b))['option']('-w,\x20--web',a2_0x187dec(0x217))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x187dec(0x234)](segmentViewAction),segmentCmd[a2_0x187dec(0x26a)]('desc\x20[segment_name]')[a2_0x187dec(0x240)](a2_0x187dec(0x303))[a2_0x187dec(0x234)](async(_0x558407,_0x5bb4a1)=>{const _0x420f04=a2_0x187dec,_0x263d08=new SegmentDescCommand(),_0x1780e8=program['opts'](),_0x39f8a9=await createTDXInstance(_0x1780e8),_0x3c0bc8=await _0x263d08[_0x420f04(0x221)]({'options':{..._0x1780e8,..._0x5bb4a1},'args':_0x558407?[_0x558407]:[],'tdx':_0x39f8a9});gracefulExit(_0x3c0bc8);}),segmentCmd['command'](a2_0x187dec(0x36c))[a2_0x187dec(0x240)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x187dec(0x234)](async(_0x58b509,_0x21ca50)=>{const _0x11eb00=a2_0x187dec,_0x59e83b=new SegmentShowCommand(),_0x57a061=program['opts'](),_0x7f0793=await createTDXInstance(_0x57a061),_0x126394=await _0x59e83b[_0x11eb00(0x221)]({'options':{..._0x57a061,..._0x21ca50},'args':_0x58b509?[_0x58b509]:[],'tdx':_0x7f0793});gracefulExit(_0x126394);}),segmentCmd['command'](a2_0x187dec(0x340),{'hidden':!![]})[a2_0x187dec(0x240)](a2_0x187dec(0x3b3))[a2_0x187dec(0x234)](async(_0x503309,_0x156b8e)=>{const _0x37a301=a2_0x187dec,_0x5884a7=new SegmentFolderListCommand(),_0x4e8fe3=program[_0x37a301(0x3d0)](),_0x3722b7=await createTDXInstance(_0x4e8fe3),_0x355316=await _0x5884a7['run']({'options':{..._0x4e8fe3,..._0x156b8e},'args':[_0x503309],'tdx':_0x3722b7});gracefulExit(_0x355316);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x187dec(0x240)](a2_0x187dec(0x3f9));folderCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x429))['description'](a2_0x187dec(0x499))[a2_0x187dec(0x234)](async(_0x338e9c,_0x459b32)=>{const _0x5c19d1=a2_0x187dec,_0x2e1a77=new SegmentFolderShowCommand(),_0x5504f3=program['opts'](),_0x7183ca=await createTDXInstance(_0x5504f3),_0x4f77d2=await _0x2e1a77[_0x5c19d1(0x221)]({'options':{..._0x5504f3,..._0x459b32},'args':[_0x338e9c],'tdx':_0x7183ca});gracefulExit(_0x4f77d2);}),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1a2))['description'](a2_0x187dec(0x2b6))[a2_0x187dec(0x264)]('--path\x20<file-path>',a2_0x187dec(0x40a))['action'](async(_0x3f2fa8,_0x4e2eb6)=>{const _0x265326=a2_0x187dec,_0x2073f3=new SegmentSQLCommand(),_0xffc303=program[_0x265326(0x3d0)](),_0x285019=await createTDXInstance(_0xffc303),_0x287d95=await _0x2073f3[_0x265326(0x221)]({'options':{..._0xffc303,..._0x4e2eb6},'args':_0x3f2fa8?[_0x3f2fa8]:[],'tdx':_0x285019});gracefulExit(_0x287d95);}),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x44a))[a2_0x187dec(0x240)](a2_0x187dec(0x2b7))[a2_0x187dec(0x234)](async(_0x3c73db,_0x56fa61)=>{const _0x3df9f7=a2_0x187dec,_0x197606=new SegmentFieldsCommand(),_0x3bb95b=program['opts'](),_0x487a25=await createTDXInstance(_0x3bb95b),_0x262c00=await _0x197606[_0x3df9f7(0x221)]({'options':{..._0x3bb95b,..._0x56fa61},'args':_0x3c73db?[_0x3c73db]:[],'tdx':_0x487a25});gracefulExit(_0x262c00);}),segmentCmd['command']('pull\x20[parent_or_file]')[a2_0x187dec(0x240)](a2_0x187dec(0x30f))[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x38b))[a2_0x187dec(0x234)](async(_0x2d164e,_0x45da1a)=>{const _0x8bb2a8=a2_0x187dec,_0x2ba253=new SegmentPullCommand(),_0x2c5a41=program[_0x8bb2a8(0x3d0)](),_0x4941a2=await createTDXInstance(_0x2c5a41),_0x2f49f5=await _0x2ba253[_0x8bb2a8(0x221)]({'options':{..._0x2c5a41,..._0x45da1a},'args':_0x2d164e?[_0x2d164e]:[],'tdx':_0x4941a2});gracefulExit(_0x2f49f5);}),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x46e))[a2_0x187dec(0x240)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x187dec(0x264)](a2_0x187dec(0x267),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x187dec(0x264)](a2_0x187dec(0x302),a2_0x187dec(0x352))[a2_0x187dec(0x234)](async(_0x21c30e,_0x43dd81)=>{const _0xa8f7d9=a2_0x187dec,_0x4956f8=new SegmentPushCommand(),_0x577f5d=program[_0xa8f7d9(0x3d0)](),_0x5d3538=await createTDXInstance(_0x577f5d),_0x54b670=await _0x4956f8['run']({'options':{..._0x577f5d,..._0x43dd81},'args':_0x21c30e?[_0x21c30e]:[],'tdx':_0x5d3538});gracefulExit(_0x54b670);}),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x368))['description'](a2_0x187dec(0x293))[a2_0x187dec(0x234)](async(_0x3362c2,_0x3520c2)=>{const _0x4c3b75=a2_0x187dec,_0x3a9fd8=new SegmentValidateCommand(),_0x375416=program['opts'](),_0x186bd3=await createTDXInstance(_0x375416),_0x4b8428=await _0x3a9fd8[_0x4c3b75(0x221)]({'options':{..._0x375416,..._0x3520c2},'args':_0x3362c2?[_0x3362c2]:[],'tdx':_0x186bd3});gracefulExit(_0x4b8428);}),segmentCmd[a2_0x187dec(0x26a)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x187dec(0x240)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x187dec(0x264)]('--description\x20<text>',a2_0x187dec(0x381))[a2_0x187dec(0x264)](a2_0x187dec(0x1ee),a2_0x187dec(0x31e))['option'](a2_0x187dec(0x39f),'Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x187dec(0x3fb),a2_0x187dec(0x2ad))['option']('--kind\x20<type>',a2_0x187dec(0x288))[a2_0x187dec(0x264)](a2_0x187dec(0x225),a2_0x187dec(0x261))[a2_0x187dec(0x264)]('--no-count-population','Skip\x20population\x20counting')[a2_0x187dec(0x234)](async(_0x36bfad,_0x27bdff)=>{const _0x474ffa=a2_0x187dec,_0x46c25e=new SegmentCreateCommand(),_0x200c92=program[_0x474ffa(0x3d0)](),_0x21e8f8=await createTDXInstance(_0x200c92),_0x4e419d=await _0x46c25e[_0x474ffa(0x221)]({'options':{..._0x200c92,..._0x27bdff},'args':[_0x36bfad],'tdx':_0x21e8f8});gracefulExit(_0x4e419d);}),segmentCmd[a2_0x187dec(0x26a)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x187dec(0x2fe))[a2_0x187dec(0x264)](a2_0x187dec(0x373),'New\x20segment\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x230),a2_0x187dec(0x433))[a2_0x187dec(0x264)](a2_0x187dec(0x1ee),a2_0x187dec(0x463))[a2_0x187dec(0x264)](a2_0x187dec(0x39f),a2_0x187dec(0x1ab))[a2_0x187dec(0x264)](a2_0x187dec(0x3fb),a2_0x187dec(0x49c))[a2_0x187dec(0x264)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x187dec(0x234)](async(_0x4438e9,_0x576d1f)=>{const _0x138294=a2_0x187dec,_0x440c95=new SegmentUpdateCommand(),_0x548f1c=program[_0x138294(0x3d0)](),_0x4f2e86=await createTDXInstance(_0x548f1c),_0x35c57a=await _0x440c95[_0x138294(0x221)]({'options':{..._0x548f1c,..._0x576d1f},'args':[_0x4438e9],'tdx':_0x4f2e86});gracefulExit(_0x35c57a);});const parentCmd=segmentCmd[a2_0x187dec(0x26a)]('parent',{'hidden':!![]})['description'](a2_0x187dec(0x209)),parentListAction=async(_0x1a4711,_0x521f71)=>{const _0x16687f=a2_0x187dec,_0x2c6775=new ParentSegmentListCommand(),_0x24323a=program[_0x16687f(0x3d0)](),_0x5cab81=await createTDXInstance(_0x24323a),_0x525feb=await _0x2c6775[_0x16687f(0x221)]({'options':{..._0x24323a,..._0x521f71},'args':_0x1a4711?[_0x1a4711]:[],'tdx':_0x5cab81});gracefulExit(_0x525feb);};parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),segmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x40f),{'hidden':!![]})[a2_0x187dec(0x240)](a2_0x187dec(0x1d8))[a2_0x187dec(0x234)](parentListAction),parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x48f))[a2_0x187dec(0x240)](a2_0x187dec(0x47e))[a2_0x187dec(0x264)]('-o,\x20--output\x20<file>',a2_0x187dec(0x1de))['action'](async(_0x34fe9e,_0x2c5cc5)=>{const _0x4066b0=a2_0x187dec,_0x3f63eb=new ParentSegmentPullCommand(),_0x1d2151=program['opts'](),_0x430cb1=await createTDXInstance(_0x1d2151),_0x4fea56=await _0x3f63eb[_0x4066b0(0x221)]({'options':{..._0x1d2151,..._0x2c5cc5},'args':_0x34fe9e?[_0x34fe9e]:[],'tdx':_0x430cb1});gracefulExit(_0x4fea56);}),parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3f0))[a2_0x187dec(0x240)](a2_0x187dec(0x1b7))[a2_0x187dec(0x234)](async(_0x351fea,_0x53fbcc)=>{const _0x5a590e=a2_0x187dec,_0x34a0d2=new ParentSegmentPushCommand(),_0x5967ce=program['opts'](),_0x2d5126=await createTDXInstance(_0x5967ce),_0x4e7e70=await _0x34a0d2[_0x5a590e(0x221)]({'options':{..._0x5967ce,..._0x53fbcc},'args':_0x351fea?[_0x351fea]:[],'tdx':_0x2d5126});gracefulExit(_0x4e7e70);}),parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x402))[a2_0x187dec(0x240)](a2_0x187dec(0x46f))[a2_0x187dec(0x264)](a2_0x187dec(0x25d),a2_0x187dec(0x400))[a2_0x187dec(0x264)]('--attribute\x20[name]',a2_0x187dec(0x1b9))['option'](a2_0x187dec(0x26b),a2_0x187dec(0x27d))[a2_0x187dec(0x264)](a2_0x187dec(0x4ab),a2_0x187dec(0x229))[a2_0x187dec(0x264)]('--interval\x20<range>',a2_0x187dec(0x43b),'-1d')[a2_0x187dec(0x234)](async(_0x41d3b2,_0x476911)=>{const _0x338b71=a2_0x187dec,_0x2efb06=new ParentSegmentValidateCommand(),_0x24c5b0=program[_0x338b71(0x3d0)](),_0x4851fe=await createTDXInstance(_0x24c5b0),_0x4e70b0=await _0x2efb06[_0x338b71(0x221)]({'options':{..._0x24c5b0,..._0x476911},'args':_0x41d3b2?[_0x41d3b2]:[],'tdx':_0x4851fe});gracefulExit(_0x4e70b0);}),parentCmd['command'](a2_0x187dec(0x465))[a2_0x187dec(0x240)](a2_0x187dec(0x379))['option'](a2_0x187dec(0x25d),a2_0x187dec(0x1f2))['option']('--attribute\x20[name]',a2_0x187dec(0x1b1))[a2_0x187dec(0x264)](a2_0x187dec(0x26b),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x187dec(0x4ab),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x187dec(0x264)]('--interval\x20<range>',a2_0x187dec(0x43b),a2_0x187dec(0x4ae))[a2_0x187dec(0x234)](async(_0x3ce4c3,_0x22aeb2)=>{const _0x2e91b5=a2_0x187dec,_0x2fae0c=new ParentSegmentPreviewCommand(),_0x1c672a=program[_0x2e91b5(0x3d0)](),_0x9a4a03=await createTDXInstance(_0x1c672a),_0x40be93=await _0x2fae0c[_0x2e91b5(0x221)]({'options':{..._0x1c672a,..._0x22aeb2},'args':_0x3ce4c3?[_0x3ce4c3]:[],'tdx':_0x9a4a03});gracefulExit(_0x40be93);}),parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3f3))['description'](a2_0x187dec(0x262))[a2_0x187dec(0x234)](async(_0x5da511,_0x459024)=>{const _0x1f3f7b=a2_0x187dec,_0x42c5ca=new ParentSegmentRunCommand(),_0x24186c=program[_0x1f3f7b(0x3d0)](),_0x16607f=await createTDXInstance(_0x24186c),_0x4323e7=await _0x42c5ca[_0x1f3f7b(0x221)]({'options':{..._0x24186c,..._0x459024},'args':_0x5da511?[_0x5da511]:[],'tdx':_0x16607f});gracefulExit(_0x4323e7);});const parentSegmentCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x432))[a2_0x187dec(0x482)]('ps')[a2_0x187dec(0x240)](a2_0x187dec(0x488));parentSegmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x187dec(0x234)](parentListAction),parentSegmentCmd['command'](a2_0x187dec(0x48f))['description'](a2_0x187dec(0x477))[a2_0x187dec(0x264)](a2_0x187dec(0x4c0),a2_0x187dec(0x1ef))[a2_0x187dec(0x264)](a2_0x187dec(0x392),a2_0x187dec(0x3dc))['action'](async(_0x800cb1,_0x472d4b)=>{const _0x13a4be=a2_0x187dec,_0x1262a8=new ParentSegmentPullCommand(),_0x8778c3=program[_0x13a4be(0x3d0)](),_0x51bae2=await createTDXInstance(_0x8778c3),_0x24ef34=await _0x1262a8[_0x13a4be(0x221)]({'options':{..._0x8778c3,..._0x472d4b},'args':_0x800cb1?[_0x800cb1]:[],'tdx':_0x51bae2});gracefulExit(_0x24ef34);}),parentSegmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4a7))[a2_0x187dec(0x240)](a2_0x187dec(0x369))['action'](async(_0x793858,_0x527262)=>{const _0x54d362=a2_0x187dec,_0x303979=new ParentSegmentPushCommand(),_0x4161d4=program[_0x54d362(0x3d0)](),_0x564208=await createTDXInstance(_0x4161d4),_0x134050=await _0x303979[_0x54d362(0x221)]({'options':{..._0x4161d4,..._0x527262},'args':_0x793858?[_0x793858]:[],'tdx':_0x564208});gracefulExit(_0x134050);}),parentSegmentCmd[a2_0x187dec(0x26a)]('validate\x20[name]')['description'](a2_0x187dec(0x46f))['option'](a2_0x187dec(0x25d),'Show\x20only\x20master\x20table\x20validation')[a2_0x187dec(0x264)](a2_0x187dec(0x45c),a2_0x187dec(0x1b9))[a2_0x187dec(0x264)](a2_0x187dec(0x26b),a2_0x187dec(0x27d))[a2_0x187dec(0x264)](a2_0x187dec(0x4ab),a2_0x187dec(0x229))[a2_0x187dec(0x264)](a2_0x187dec(0x22f),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x187dec(0x4ae))[a2_0x187dec(0x234)](async(_0x3edcf0,_0xf00a13)=>{const _0x3b33a7=a2_0x187dec,_0x5e3011=new ParentSegmentValidateCommand(),_0x16724a=program[_0x3b33a7(0x3d0)](),_0xd143d9=await createTDXInstance(_0x16724a),_0x5e9d78=await _0x5e3011[_0x3b33a7(0x221)]({'options':{..._0x16724a,..._0xf00a13},'args':_0x3edcf0?[_0x3edcf0]:[],'tdx':_0xd143d9});gracefulExit(_0x5e9d78);}),parentSegmentCmd[a2_0x187dec(0x26a)]('preview\x20[name]')[a2_0x187dec(0x240)](a2_0x187dec(0x379))[a2_0x187dec(0x264)](a2_0x187dec(0x25d),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x187dec(0x45c),a2_0x187dec(0x1b1))[a2_0x187dec(0x264)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x187dec(0x264)](a2_0x187dec(0x4ab),a2_0x187dec(0x40d))[a2_0x187dec(0x264)]('--interval\x20<range>',a2_0x187dec(0x43b),a2_0x187dec(0x4ae))[a2_0x187dec(0x234)](async(_0x128a62,_0x138bfc)=>{const _0x1b8a0a=a2_0x187dec,_0x350afe=new ParentSegmentPreviewCommand(),_0x2ee7e8=program[_0x1b8a0a(0x3d0)](),_0x57bcae=await createTDXInstance(_0x2ee7e8),_0x46653b=await _0x350afe['run']({'options':{..._0x2ee7e8,..._0x138bfc},'args':_0x128a62?[_0x128a62]:[],'tdx':_0x57bcae});gracefulExit(_0x46653b);}),parentSegmentCmd['command'](a2_0x187dec(0x3f3))[a2_0x187dec(0x240)](a2_0x187dec(0x262))[a2_0x187dec(0x234)](async(_0x497f9f,_0x4774b8)=>{const _0x24e21a=a2_0x187dec,_0x480dd2=new ParentSegmentRunCommand(),_0x5b3fe7=program[_0x24e21a(0x3d0)](),_0xd45ae6=await createTDXInstance(_0x5b3fe7),_0x56a245=await _0x480dd2[_0x24e21a(0x221)]({'options':{..._0x5b3fe7,..._0x4774b8},'args':_0x497f9f?[_0x497f9f]:[],'tdx':_0xd45ae6});gracefulExit(_0x56a245);}),parentSegmentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1e4))['description'](a2_0x187dec(0x231))[a2_0x187dec(0x264)](a2_0x187dec(0x31f),a2_0x187dec(0x3bf))['option'](a2_0x187dec(0x431),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x197739,_0x446981)=>{const _0x5106ef=a2_0x187dec,_0x35e68d=new ParentSegmentFieldsCommand(),_0x56bb46=program[_0x5106ef(0x3d0)](),_0x39f72f=await createTDXInstance(_0x56bb46),_0x479578=await _0x35e68d[_0x5106ef(0x221)]({'options':{..._0x56bb46,..._0x446981},'args':_0x197739?[_0x197739]:[],'tdx':_0x39f72f});gracefulExit(_0x479578);}),parentSegmentCmd[a2_0x187dec(0x26a)]('view\x20[name]')[a2_0x187dec(0x240)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x187dec(0x264)](a2_0x187dec(0x283),a2_0x187dec(0x389))[a2_0x187dec(0x264)](a2_0x187dec(0x31f),a2_0x187dec(0x3bf))[a2_0x187dec(0x264)]('--jsonl',a2_0x187dec(0x2d5))[a2_0x187dec(0x234)](async(_0x5bcc29,_0x4de044)=>{const _0x4bb2df=a2_0x187dec,_0x23dadb=new ParentSegmentViewCommand(),_0x2465d6=program[_0x4bb2df(0x3d0)](),_0x438143=await createTDXInstance(_0x2465d6),_0xfd8531=await _0x23dadb['run']({'options':{..._0x2465d6,..._0x4de044},'args':_0x5bcc29?[_0x5bcc29]:[],'tdx':_0x438143});gracefulExit(_0xfd8531);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x187dec(0x240)](a2_0x187dec(0x311))[a2_0x187dec(0x264)](a2_0x187dec(0x4c0),a2_0x187dec(0x1ef))['option'](a2_0x187dec(0x31f),'Output\x20as\x20JSON')[a2_0x187dec(0x264)](a2_0x187dec(0x431),'Output\x20as\x20JSON\x20Lines')[a2_0x187dec(0x234)](async(_0x4500bf,_0x108426)=>{const _0x18c678=a2_0x187dec,_0xfbf1dd=new ParentSegmentDescCommand(),_0x20c978=program[_0x18c678(0x3d0)](),_0x48b5dc=await createTDXInstance(_0x20c978),_0x231421=await _0xfbf1dd['run']({'options':{..._0x20c978,..._0x108426},'args':_0x4500bf?[_0x4500bf]:[],'tdx':_0x48b5dc});gracefulExit(_0x231421);}),parentSegmentCmd[a2_0x187dec(0x26a)]('sql\x20[name]')['description'](a2_0x187dec(0x2de))[a2_0x187dec(0x264)](a2_0x187dec(0x31f),a2_0x187dec(0x3bf))[a2_0x187dec(0x264)](a2_0x187dec(0x431),'Output\x20as\x20JSON\x20Lines')[a2_0x187dec(0x234)](async(_0x2718fe,_0x51f935)=>{const _0x9e3f91=a2_0x187dec,_0xee3424=new ParentSegmentSQLCommand(),_0x433900=program[_0x9e3f91(0x3d0)](),_0x381f3c=await createTDXInstance(_0x433900),_0x13a7e8=await _0xee3424['run']({'options':{..._0x433900,..._0x51f935},'args':_0x2718fe?[_0x2718fe]:[],'tdx':_0x381f3c});gracefulExit(_0x13a7e8);}),parentSegmentCmd[a2_0x187dec(0x26a)]('show\x20[name]')[a2_0x187dec(0x240)](a2_0x187dec(0x1f6))[a2_0x187dec(0x264)](a2_0x187dec(0x249),a2_0x187dec(0x4b0))[a2_0x187dec(0x264)]('--json',a2_0x187dec(0x3bf))['option'](a2_0x187dec(0x431),a2_0x187dec(0x2d5))[a2_0x187dec(0x234)](async(_0x4add1c,_0x4d359c)=>{const _0x4755e2=a2_0x187dec,_0x36a227=new ParentSegmentShowCommand(),_0x21c367=program[_0x4755e2(0x3d0)](),_0x29e4db=await createTDXInstance(_0x21c367),_0x2c32cd=await _0x36a227[_0x4755e2(0x221)]({'options':{..._0x21c367,..._0x4d359c},'args':_0x4add1c?[_0x4add1c]:[],'tdx':_0x29e4db});gracefulExit(_0x2c32cd);}),parentSegmentCmd['command'](a2_0x187dec(0x226))[a2_0x187dec(0x240)](a2_0x187dec(0x1e3))['action'](async(_0x2ac7e0,_0x47cacc)=>{const _0x5d22e6=a2_0x187dec,_0x511ada=new UseCommand(),_0x2846f4=program['opts'](),_0x306c75=_0x2ac7e0?[_0x5d22e6(0x3bd),_0x2ac7e0]:[],_0x3cc9f0=await _0x511ada[_0x5d22e6(0x221)]({'options':{..._0x2846f4,..._0x47cacc},'args':_0x306c75,'tdx':null});gracefulExit(_0x3cc9f0);});const psRtCmd=parentSegmentCmd[a2_0x187dec(0x26a)]('rt')['description']('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x187dec(0x234)](async(_0x44c2d8,_0x2d604d)=>{const _0x35c3a8=a2_0x187dec,_0x2d36aa=new PSRtListCommand(),_0x576100=program['opts'](),_0x581963=await createTDXInstance(_0x576100),_0x36184d=await _0x2d36aa[_0x35c3a8(0x221)]({'options':{..._0x576100,..._0x2d604d},'args':_0x44c2d8?[_0x44c2d8]:[],'tdx':_0x581963});gracefulExit(_0x36184d);}),psRtCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x257))[a2_0x187dec(0x240)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x435bb7,_0x2c76e7)=>{const _0x3f0876=a2_0x187dec,_0x439fdf=new PSRtValidateCommand(),_0x35a7b2=program['opts'](),_0xefbe64=await createTDXInstance(_0x35a7b2),_0x24f8c0=await _0x439fdf[_0x3f0876(0x221)]({'options':{..._0x35a7b2,..._0x2c76e7},'args':_0x435bb7?[_0x435bb7]:[],'tdx':_0xefbe64});gracefulExit(_0x24f8c0);}),psRtCmd[a2_0x187dec(0x26a)]('configuration_versions\x20[name]')[a2_0x187dec(0x240)](a2_0x187dec(0x321))['action'](async(_0x2387a7,_0xd8262b)=>{const _0x35b7ba=a2_0x187dec,_0x1e683e=new PSRtConfigVersionCommand(),_0xa27394=program[_0x35b7ba(0x3d0)](),_0x150c45=await createTDXInstance(_0xa27394),_0x5c40c8=await _0x1e683e[_0x35b7ba(0x221)]({'options':{..._0xa27394,..._0xd8262b},'args':_0x2387a7?[_0x2387a7]:[],'tdx':_0x150c45});gracefulExit(_0x5c40c8);});const psRtJnCmd=psRtCmd[a2_0x187dec(0x26a)]('jn')[a2_0x187dec(0x240)](a2_0x187dec(0x358));psRtJnCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3be))[a2_0x187dec(0x240)]('List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x187dec(0x234)](async(_0x541ed1,_0x4be880)=>{const _0x20103b=a2_0x187dec,_0x43264e=new PSRtJnListCommand(),_0xa561aa=program[_0x20103b(0x3d0)](),_0x33ee8e=await createTDXInstance(_0xa561aa),_0x19b5d6=await _0x43264e[_0x20103b(0x221)]({'options':{..._0xa561aa,..._0x4be880},'args':_0x541ed1?[_0x541ed1]:[],'tdx':_0x33ee8e});gracefulExit(_0x19b5d6);}),psRtJnCmd['command'](a2_0x187dec(0x1d0))[a2_0x187dec(0x240)]('Pause\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x187dec(0x234)](async(_0x43f5ef,_0x2bcd87)=>{const _0x2270de=a2_0x187dec,_0x56f11d=new PSRtJnPauseCommand(),_0x3bca8e=program[_0x2270de(0x3d0)](),_0x47e170=await createTDXInstance(_0x3bca8e),_0xfdbe4=await _0x56f11d['run']({'options':{..._0x3bca8e,..._0x2bcd87},'args':[_0x43f5ef],'tdx':_0x47e170});gracefulExit(_0xfdbe4);}),psRtJnCmd[a2_0x187dec(0x26a)]('resume_activations\x20<journeyId>')[a2_0x187dec(0x240)]('Resume\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x187dec(0x234)](async(_0x2a1fc0,_0x5d2ef0)=>{const _0x531e52=a2_0x187dec,_0x46c63b=new PSRtJnResumeCommand(),_0x2dcc1d=program[_0x531e52(0x3d0)](),_0x4f2344=await createTDXInstance(_0x2dcc1d),_0x54a662=await _0x46c63b['run']({'options':{..._0x2dcc1d,..._0x5d2ef0},'args':[_0x2a1fc0],'tdx':_0x4f2344});gracefulExit(_0x54a662);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x187dec(0x3c6));parentRtCmd[a2_0x187dec(0x26a)]('list\x20[pattern]')[a2_0x187dec(0x240)](a2_0x187dec(0x415))['action'](async(_0x4fda9f,_0x27d797)=>{const _0x3b4363=a2_0x187dec,_0x2b60d0=new PSRtListCommand(),_0x48098a=program[_0x3b4363(0x3d0)](),_0x53330c=await createTDXInstance(_0x48098a),_0x2a0f98=await _0x2b60d0[_0x3b4363(0x221)]({'options':{..._0x48098a,..._0x27d797},'args':_0x4fda9f?[_0x4fda9f]:[],'tdx':_0x53330c});gracefulExit(_0x2a0f98);}),parentRtCmd['command'](a2_0x187dec(0x257))[a2_0x187dec(0x240)](a2_0x187dec(0x1ca))[a2_0x187dec(0x234)](async(_0x3862d0,_0x438558)=>{const _0x223697=a2_0x187dec,_0x1a831b=new PSRtValidateCommand(),_0x26c7be=program[_0x223697(0x3d0)](),_0x31cd12=await createTDXInstance(_0x26c7be),_0x87c476=await _0x1a831b[_0x223697(0x221)]({'options':{..._0x26c7be,..._0x438558},'args':_0x3862d0?[_0x3862d0]:[],'tdx':_0x31cd12});gracefulExit(_0x87c476);});const psPzCmd=parentSegmentCmd[a2_0x187dec(0x26a)]('pz')[a2_0x187dec(0x240)](a2_0x187dec(0x244));psPzCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3be))[a2_0x187dec(0x240)](a2_0x187dec(0x27b))[a2_0x187dec(0x234)](async(_0x1466d3,_0x4faa0a)=>{const _0x277ab8=a2_0x187dec,_0x5284cc=new PSPzListCommand(),_0x16e2b3=program[_0x277ab8(0x3d0)](),_0x33fc01=await createTDXInstance(_0x16e2b3),_0xc560f4=await _0x5284cc[_0x277ab8(0x221)]({'options':{..._0x16e2b3,..._0x4faa0a},'args':_0x1466d3?[_0x1466d3]:[],'tdx':_0x33fc01});gracefulExit(_0xc560f4);}),psPzCmd['command'](a2_0x187dec(0x1e2))['description']('Show\x20a\x20specific\x20realtime\x20personalization')[a2_0x187dec(0x234)](async(_0x2c8847,_0x1ac23e)=>{const _0x346970=a2_0x187dec,_0x29758d=new PSPzShowCommand(),_0x427e67=program[_0x346970(0x3d0)](),_0x2960b2=await createTDXInstance(_0x427e67),_0x4946bb=await _0x29758d[_0x346970(0x221)]({'options':{..._0x427e67,..._0x1ac23e},'args':[_0x2c8847],'tdx':_0x2960b2});gracefulExit(_0x4946bb);}),psPzCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3bc))[a2_0x187dec(0x240)](a2_0x187dec(0x3fa))[a2_0x187dec(0x234)](async(_0x30e02b,_0x1ef59b)=>{const _0x27096d=a2_0x187dec,_0x27966b=new PSPzDeleteCommand(),_0x22892a=program[_0x27096d(0x3d0)](),_0xb78b67=await createTDXInstance(_0x22892a),_0x3041d1=await _0x27966b[_0x27096d(0x221)]({'options':{..._0x22892a,..._0x1ef59b},'args':[_0x30e02b],'tdx':_0xb78b67});gracefulExit(_0x3041d1);}),psPzCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x362))[a2_0x187dec(0x240)](a2_0x187dec(0x47f))[a2_0x187dec(0x264)](a2_0x187dec(0x298),a2_0x187dec(0x436))[a2_0x187dec(0x264)](a2_0x187dec(0x230),'Personalization\x20description')[a2_0x187dec(0x264)](a2_0x187dec(0x367),a2_0x187dec(0x430))['option'](a2_0x187dec(0x35f),a2_0x187dec(0x447))['option']('--sections\x20<json>',a2_0x187dec(0x301))[a2_0x187dec(0x264)](a2_0x187dec(0x30d),a2_0x187dec(0x1d9))[a2_0x187dec(0x234)](async _0x1e5bba=>{const _0x4701b6=a2_0x187dec,_0x210aad=new PSPzCreateCommand(),_0x12af9d=program['opts'](),_0x1fa541=await createTDXInstance(_0x12af9d),_0x3ac719=await _0x210aad[_0x4701b6(0x221)]({'options':{..._0x12af9d,..._0x1e5bba},'args':[],'tdx':_0x1fa541});gracefulExit(_0x3ac719);}),psPzCmd['command'](a2_0x187dec(0x1d4))[a2_0x187dec(0x240)](a2_0x187dec(0x2c5))[a2_0x187dec(0x264)](a2_0x187dec(0x298),a2_0x187dec(0x436))[a2_0x187dec(0x264)](a2_0x187dec(0x230),'Personalization\x20description')['option'](a2_0x187dec(0x2e9),a2_0x187dec(0x301))[a2_0x187dec(0x264)](a2_0x187dec(0x30d),a2_0x187dec(0x1d9))['action'](async(_0x44ece1,_0x2f66a6)=>{const _0x53ec2c=a2_0x187dec,_0x366e0c=new PSPzPatchCommand(),_0x5ca486=program[_0x53ec2c(0x3d0)](),_0x5c2010=await createTDXInstance(_0x5ca486),_0xca6bb7=await _0x366e0c['run']({'options':{..._0x5ca486,..._0x2f66a6},'args':[_0x44ece1],'tdx':_0x5c2010});gracefulExit(_0xca6bb7);});const psPzServiceCmd=psPzCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x403))[a2_0x187dec(0x240)]('Personalization\x20service\x20management');psPzServiceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3be))[a2_0x187dec(0x240)](a2_0x187dec(0x1f3))['action'](async(_0x455224,_0x14666b)=>{const _0x417d8d=a2_0x187dec,_0x281d20=new PSPzServiceListCommand(),_0xe171b9=program[_0x417d8d(0x3d0)](),_0xb88a6e=await createTDXInstance(_0xe171b9),_0x43f690=await _0x281d20['run']({'options':{..._0xe171b9,..._0x14666b},'args':_0x455224?[_0x455224]:[],'tdx':_0xb88a6e});gracefulExit(_0x43f690);}),psPzServiceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x212))[a2_0x187dec(0x240)](a2_0x187dec(0x467))[a2_0x187dec(0x264)](a2_0x187dec(0x230),'Service\x20description')[a2_0x187dec(0x264)](a2_0x187dec(0x1c6),a2_0x187dec(0x3ce))[a2_0x187dec(0x234)](async(_0x58d195,_0x2c4c57,_0x3302fa)=>{const _0x26b05a=a2_0x187dec,_0x2eccda=new PSPzServiceCreateCommand(),_0x5af6c3=program[_0x26b05a(0x3d0)](),_0x572a03=await createTDXInstance(_0x5af6c3),_0x588481=await _0x2eccda[_0x26b05a(0x221)]({'options':{..._0x5af6c3,..._0x3302fa},'args':_0x2c4c57?[_0x58d195,_0x2c4c57]:[_0x58d195],'tdx':_0x572a03});gracefulExit(_0x588481);}),psPzServiceCmd['command'](a2_0x187dec(0x260))[a2_0x187dec(0x240)](a2_0x187dec(0x4bc))['action'](async(_0xd0e20f,_0xf82d3f,_0x18f819)=>{const _0x1b3a1e=a2_0x187dec,_0x2d3402=new PSPzServiceShowCommand(),_0x3a261e=program[_0x1b3a1e(0x3d0)](),_0x547674=await createTDXInstance(_0x3a261e),_0x5e85a9=await _0x2d3402[_0x1b3a1e(0x221)]({'options':{..._0x3a261e,..._0x18f819},'args':_0xf82d3f?[_0xd0e20f,_0xf82d3f]:[_0xd0e20f],'tdx':_0x547674});gracefulExit(_0x5e85a9);}),psPzServiceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x36b))[a2_0x187dec(0x240)](a2_0x187dec(0x397))[a2_0x187dec(0x234)](async(_0x239e9b,_0x1182db,_0x4543ef)=>{const _0x346268=a2_0x187dec,_0xb9c0f1=new PSPzServiceDeleteCommand(),_0x2be06d=program[_0x346268(0x3d0)](),_0x31f423=await createTDXInstance(_0x2be06d),_0x25f532=await _0xb9c0f1[_0x346268(0x221)]({'options':{..._0x2be06d,..._0x4543ef},'args':_0x1182db?[_0x239e9b,_0x1182db]:[_0x239e9b],'tdx':_0x31f423});gracefulExit(_0x25f532);}),psPzServiceCmd[a2_0x187dec(0x26a)]('update\x20<service_id>\x20[parent_segment]')['description']('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x187dec(0x484)]('--name\x20<name>',a2_0x187dec(0x466))[a2_0x187dec(0x264)](a2_0x187dec(0x230),a2_0x187dec(0x1d7))[a2_0x187dec(0x234)](async(_0x287d11,_0x5034ce,_0x456865)=>{const _0x356583=a2_0x187dec,_0x43bc71=new PSPzServiceUpdateCommand(),_0x49880a=program['opts'](),_0x17943b=await createTDXInstance(_0x49880a),_0x218bbc=await _0x43bc71[_0x356583(0x221)]({'options':{..._0x49880a,..._0x456865},'args':_0x5034ce?[_0x287d11,_0x5034ce]:[_0x287d11],'tdx':_0x17943b});gracefulExit(_0x218bbc);}),psPzServiceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2a2))['description'](a2_0x187dec(0x258))[a2_0x187dec(0x234)](async(_0x1d75c4,_0x1ee556)=>{const _0x549534=a2_0x187dec,_0x5c3968=new PSPzInitCommand(),_0xe4a994=program[_0x549534(0x3d0)](),_0x440a6a=await createTDXInstance(_0xe4a994),_0x2b5bfb=await _0x5c3968['run']({'options':{..._0xe4a994,..._0x1ee556},'args':_0x1d75c4?[_0x1d75c4]:[],'tdx':_0x440a6a});gracefulExit(_0x2b5bfb);});const psPzServiceTokenCmd=psPzServiceCmd['command'](a2_0x187dec(0x2c7))[a2_0x187dec(0x240)](a2_0x187dec(0x1db));psPzServiceTokenCmd[a2_0x187dec(0x26a)]('create\x20<name>\x20<service_id>\x20[parent_segment]')[a2_0x187dec(0x240)](a2_0x187dec(0x235))[a2_0x187dec(0x264)](a2_0x187dec(0x34a),a2_0x187dec(0x332))[a2_0x187dec(0x264)](a2_0x187dec(0x230),a2_0x187dec(0x19a))['action'](async(_0x3747ca,_0x2e72e8,_0x3e716c,_0x3420de)=>{const _0x127203=a2_0x187dec,_0x2cead6=new PSPzServiceTokenCreateCommand(),_0x118758=program[_0x127203(0x3d0)](),_0x202629=await createTDXInstance(_0x118758),_0x420d67=await _0x2cead6[_0x127203(0x221)]({'options':{..._0x118758,..._0x3420de},'args':_0x3e716c?[_0x3747ca,_0x2e72e8,_0x3e716c]:[_0x3747ca,_0x2e72e8],'tdx':_0x202629});gracefulExit(_0x420d67);}),psPzServiceTokenCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x492))['description'](a2_0x187dec(0x255))[a2_0x187dec(0x234)](async(_0x29ea42,_0x5c2e92,_0xa7731e)=>{const _0x4591ab=new PSPzServiceTokenDeleteCommand(),_0x1cd153=program['opts'](),_0x449ede=await createTDXInstance(_0x1cd153),_0x54ca84=await _0x4591ab['run']({'options':{..._0x1cd153,..._0xa7731e},'args':_0x5c2e92?[_0x29ea42,_0x5c2e92]:[_0x29ea42],'tdx':_0x449ede});gracefulExit(_0x54ca84);}),parentCmd['command'](a2_0x187dec(0x224))[a2_0x187dec(0x240)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x187dec(0x484)](a2_0x187dec(0x28b),'Master\x20database\x20name')[a2_0x187dec(0x484)](a2_0x187dec(0x29f),a2_0x187dec(0x337))[a2_0x187dec(0x264)]('--description\x20<text>',a2_0x187dec(0x35a))['option'](a2_0x187dec(0x26f),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x187dec(0x264)](a2_0x187dec(0x35d),a2_0x187dec(0x2d6))[a2_0x187dec(0x264)](a2_0x187dec(0x1c2),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x187dec(0x264)](a2_0x187dec(0x371),'Attributes\x20as\x20JSON\x20string')[a2_0x187dec(0x264)](a2_0x187dec(0x2ab),'Attributes\x20from\x20JSON\x20file')['option'](a2_0x187dec(0x41e),a2_0x187dec(0x47d))[a2_0x187dec(0x264)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x187dec(0x264)](a2_0x187dec(0x334),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x187dec(0x264)](a2_0x187dec(0x444),'Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0x2a5125,_0x55a322)=>{const _0x13b386=a2_0x187dec,_0x56d9c8=new ParentSegmentCreateCommand(),_0x54a0e0=program[_0x13b386(0x3d0)](),_0x23e537=await createTDXInstance(_0x54a0e0),_0x30b751=await _0x56d9c8['run']({'options':{..._0x54a0e0,..._0x55a322},'args':[_0x2a5125],'tdx':_0x23e537});gracefulExit(_0x30b751);}),parentCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x426))[a2_0x187dec(0x240)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x187dec(0x264)](a2_0x187dec(0x230),a2_0x187dec(0x433))[a2_0x187dec(0x264)](a2_0x187dec(0x26f),a2_0x187dec(0x423))['option'](a2_0x187dec(0x35d),'Updated\x20schedule\x20option')['option'](a2_0x187dec(0x1c2),'Updated\x20timezone')[a2_0x187dec(0x264)](a2_0x187dec(0x398),a2_0x187dec(0x43e))[a2_0x187dec(0x264)](a2_0x187dec(0x227),a2_0x187dec(0x27f))[a2_0x187dec(0x264)](a2_0x187dec(0x37e),a2_0x187dec(0x336))[a2_0x187dec(0x264)](a2_0x187dec(0x32c),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x187dec(0x234)](async(_0x645b24,_0x169db6)=>{const _0x27b727=a2_0x187dec,_0x566f38=new ParentSegmentUpdateCommand(),_0xcef4cb=program[_0x27b727(0x3d0)](),_0x48e145=await createTDXInstance(_0xcef4cb),_0x80edf0=await _0x566f38[_0x27b727(0x221)]({'options':{..._0xcef4cb,..._0x169db6},'args':[_0x645b24],'tdx':_0x48e145});gracefulExit(_0x80edf0);}),folderCmd['command'](a2_0x187dec(0x42d))[a2_0x187dec(0x240)]('Create\x20segment\x20folder')[a2_0x187dec(0x264)](a2_0x187dec(0x230),'Folder\x20description')[a2_0x187dec(0x264)](a2_0x187dec(0x3a7),a2_0x187dec(0x199))['action'](async(_0x39dc03,_0x56cf2a,_0x26c896)=>{const _0x5b46e3=a2_0x187dec,_0x4f65ae=new SegmentFolderCreateCommand(),_0x503a76=program['opts'](),_0x5a9558=await createTDXInstance(_0x503a76),_0x215ea8=await _0x4f65ae[_0x5b46e3(0x221)]({'options':{..._0x503a76,..._0x26c896},'args':[_0x39dc03,_0x56cf2a],'tdx':_0x5a9558});gracefulExit(_0x215ea8);}),program[a2_0x187dec(0x26a)](a2_0x187dec(0x2a4))[a2_0x187dec(0x240)](a2_0x187dec(0x3cb))[a2_0x187dec(0x234)](async(_0x1cc451,_0x30ca07)=>{const _0x5a4cfe=a2_0x187dec,_0x351cb9=new ActivationsCommand(),_0x593873=program[_0x5a4cfe(0x3d0)](),_0x52ae8c=await createTDXInstance(_0x593873),_0x24e184=await _0x351cb9['run']({'options':{..._0x593873,..._0x30ca07},'args':[_0x1cc451],'tdx':_0x52ae8c});gracefulExit(_0x24e184);});const workflowCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x1a6))[a2_0x187dec(0x482)]('wf')[a2_0x187dec(0x240)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x27a))[a2_0x187dec(0x240)](a2_0x187dec(0x460)),wfProjectListAction=async(_0x55836b,_0x3bf078)=>{const _0x2ee5bf=a2_0x187dec,_0x1d4104=new WorkflowProjectsCommand(),_0x263fc8=program[_0x2ee5bf(0x3d0)](),_0x44806d=await createTDXInstance(_0x263fc8),_0x15fc71=await _0x1d4104[_0x2ee5bf(0x221)]({'options':{..._0x263fc8,..._0x3bf078},'args':_0x55836b?[_0x55836b]:[],'tdx':_0x44806d});gracefulExit(_0x15fc71);};wfProjectCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)](a2_0x187dec(0x1fd))[a2_0x187dec(0x234)](wfProjectListAction),workflowCmd['command'](a2_0x187dec(0x252))['description'](a2_0x187dec(0x37c))[a2_0x187dec(0x234)](wfProjectListAction);const wfWorkflowListAction=async(_0x2d06a1,_0x5ca82b)=>{const _0x3562f8=a2_0x187dec,_0x1fded2=new WorkflowWorkflowsCommand(),_0x293824=program[_0x3562f8(0x3d0)](),_0x383cd9=await createTDXInstance(_0x293824),_0x36125f=await _0x1fded2[_0x3562f8(0x221)]({'options':{..._0x293824,..._0x5ca82b},'args':_0x2d06a1?[_0x2d06a1]:[],'tdx':_0x383cd9});gracefulExit(_0x36125f);};workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2a7))[a2_0x187dec(0x240)](a2_0x187dec(0x357))[a2_0x187dec(0x234)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3d4))[a2_0x187dec(0x240)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0xb6a645,_0x4507b4)=>{const _0x55c88d=a2_0x187dec,_0x4f7810=new WorkflowSessionsCommand(),_0x360bf8=program['opts'](),_0x55350e=await createTDXInstance(_0x360bf8),_0x4ca3eb=await _0x4f7810[_0x55c88d(0x221)]({'options':{..._0x360bf8,..._0x4507b4},'args':_0xb6a645?[_0xb6a645]:[],'tdx':_0x55350e});gracefulExit(_0x4ca3eb);};wfSessionCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2d9))[a2_0x187dec(0x240)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x187dec(0x264)]('--status\x20<status>',a2_0x187dec(0x486))[a2_0x187dec(0x264)](a2_0x187dec(0x384),a2_0x187dec(0x348))[a2_0x187dec(0x264)]('--to\x20<timestamp>',a2_0x187dec(0x391))[a2_0x187dec(0x234)](wfSessionListAction),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x437))[a2_0x187dec(0x240)](a2_0x187dec(0x2ee))[a2_0x187dec(0x264)](a2_0x187dec(0x2ea),a2_0x187dec(0x486))['option'](a2_0x187dec(0x384),a2_0x187dec(0x348))[a2_0x187dec(0x264)](a2_0x187dec(0x205),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x187dec(0x234)](wfSessionListAction);const wfAttemptListAction=async(_0x16d23c,_0x5eb839)=>{const _0x257e22=a2_0x187dec,_0x1ec196=new WorkflowAttemptsCommand(),_0x190755=program[_0x257e22(0x3d0)](),_0xd28dd0=await createTDXInstance(_0x190755),_0x572118=await _0x1ec196[_0x257e22(0x221)]({'options':{..._0x190755,..._0x5eb839},'args':_0x16d23c?[_0x16d23c]:[],'tdx':_0xd28dd0});gracefulExit(_0x572118);},attemptCmd=workflowCmd['command'](a2_0x187dec(0x438))[a2_0x187dec(0x240)]('Workflow\x20attempt\x20management')[a2_0x187dec(0x343)]('[attempt-id]',a2_0x187dec(0x265))[a2_0x187dec(0x343)](a2_0x187dec(0x35e),a2_0x187dec(0x2e4))[a2_0x187dec(0x343)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x187dec(0x264)](a2_0x187dec(0x2c8),a2_0x187dec(0x3d1))[a2_0x187dec(0x264)](a2_0x187dec(0x380),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x187dec(0x264)]('--resume-from\x20<task>',a2_0x187dec(0x22b))['option'](a2_0x187dec(0x419),a2_0x187dec(0x448))[a2_0x187dec(0x264)](a2_0x187dec(0x2ba),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x187dec(0x476),a2_0x187dec(0x204))['action'](async(_0x2e83e0,_0x141ecd,_0x2d32f2,_0x3d6b16)=>{const _0x477153=a2_0x187dec;if(_0x2e83e0===_0x477153(0x310)){await wfAttemptListAction(_0x141ecd,_0x3d6b16);return;}if(!_0x2e83e0){attemptCmd[_0x477153(0x3a6)]();return;}const _0x287b44=program[_0x477153(0x3d0)](),_0xcd5aef=await createTDXInstance(_0x287b44);let _0x411b49=0x0;if(!_0x141ecd){const _0x13445c=new WorkflowAttemptCommand();_0x411b49=await _0x13445c[_0x477153(0x221)]({'options':{..._0x287b44,..._0x3d6b16},'args':[_0x2e83e0],'tdx':_0xcd5aef});}else{if(_0x141ecd===_0x477153(0x4a2)){const _0x50d583=new WorkflowLogsCommand();_0x411b49=await _0x50d583['run']({'options':{..._0x287b44,..._0x3d6b16},'args':_0x2d32f2?[_0x2e83e0,_0x2d32f2]:[_0x2e83e0],'tdx':_0xcd5aef});}else{if(_0x141ecd===_0x477153(0x4b8)){const _0x42a6d0=new WorkflowTasksCommand();_0x411b49=await _0x42a6d0[_0x477153(0x221)]({'options':{..._0x287b44,..._0x3d6b16},'args':[_0x2e83e0],'tdx':_0xcd5aef});}else{if(_0x141ecd==='kill'){const _0x5a8c4e=new WorkflowKillCommand();_0x411b49=await _0x5a8c4e[_0x477153(0x221)]({'options':{..._0x287b44,..._0x3d6b16},'args':[_0x2e83e0],'tdx':_0xcd5aef});}else{if(_0x141ecd===_0x477153(0x3ca)){const _0x4c95be=new WorkflowRetryCommand();_0x411b49=await _0x4c95be[_0x477153(0x221)]({'options':{..._0x287b44,..._0x3d6b16},'args':[_0x477153(0x2c2)+_0x2e83e0],'tdx':_0xcd5aef});}else console[_0x477153(0x342)](_0x477153(0x43a)+_0x141ecd),console[_0x477153(0x342)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x411b49=0x1;}}}}gracefulExit(_0x411b49);});attemptCmd['command'](a2_0x187dec(0x2d9))[a2_0x187dec(0x240)](a2_0x187dec(0x20a))[a2_0x187dec(0x264)](a2_0x187dec(0x476),a2_0x187dec(0x394))[a2_0x187dec(0x234)](wfAttemptListAction),workflowCmd[a2_0x187dec(0x26a)]('attempts\x20[project]')[a2_0x187dec(0x240)](a2_0x187dec(0x3bb))[a2_0x187dec(0x264)](a2_0x187dec(0x476),a2_0x187dec(0x394))[a2_0x187dec(0x234)](wfAttemptListAction),workflowCmd[a2_0x187dec(0x26a)]('timeline\x20[project.workflow]')[a2_0x187dec(0x240)](a2_0x187dec(0x305))[a2_0x187dec(0x264)](a2_0x187dec(0x2f2),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x187dec(0x264)]('--session-id\x20<id>',a2_0x187dec(0x41c))[a2_0x187dec(0x264)](a2_0x187dec(0x2ce),a2_0x187dec(0x3ed))[a2_0x187dec(0x234)](async(_0x245a30,_0x19846c)=>{const _0x11956d=a2_0x187dec,_0x1a8cfb=new WorkflowTimelineCommand(),_0x55a023=program[_0x11956d(0x3d0)](),_0x2e16e2=await createTDXInstance(_0x55a023),_0x100f97=await _0x1a8cfb[_0x11956d(0x221)]({'options':{..._0x55a023,..._0x19846c},'args':_0x245a30?[_0x245a30]:[],'tdx':_0x2e16e2});gracefulExit(_0x100f97);}),workflowCmd[a2_0x187dec(0x26a)]('retry\x20<session-id>')[a2_0x187dec(0x240)](a2_0x187dec(0x45a))['option'](a2_0x187dec(0x2d7),a2_0x187dec(0x36a))[a2_0x187dec(0x264)]('--params\x20<json>',a2_0x187dec(0x483))[a2_0x187dec(0x234)](async(_0xb939c3,_0x398680)=>{const _0x3891da=a2_0x187dec,_0x3f9484=new WorkflowRetryCommand(),_0x57a9e8=program['opts'](),_0x35545d=await createTDXInstance(_0x57a9e8),_0x1d05f7=await _0x3f9484[_0x3891da(0x221)]({'options':{..._0x57a9e8,..._0x398680},'args':[_0xb939c3],'tdx':_0x35545d});gracefulExit(_0x1d05f7);}),workflowCmd['command'](a2_0x187dec(0x251))[a2_0x187dec(0x240)](a2_0x187dec(0x3ab))[a2_0x187dec(0x264)](a2_0x187dec(0x331),a2_0x187dec(0x1b8),(_0x4da4dc,_0x20ac84=[])=>[..._0x20ac84,_0x4da4dc],[])[a2_0x187dec(0x264)](a2_0x187dec(0x2d2),a2_0x187dec(0x1be))[a2_0x187dec(0x234)](async(_0xa97f0,_0x4c4d6e)=>{const _0x4b1610=a2_0x187dec,_0x4ef9e2=new WorkflowRunCommand(),_0x4c56ab=program['opts'](),_0x5edee5=await createTDXInstance(_0x4c56ab),_0x6dc128=await _0x4ef9e2[_0x4b1610(0x221)]({'options':{..._0x4c56ab,..._0x4c4d6e},'args':_0xa97f0?[_0xa97f0]:[],'tdx':_0x5edee5});gracefulExit(_0x6dc128);}),workflowCmd['command'](a2_0x187dec(0x228))[a2_0x187dec(0x240)](a2_0x187dec(0x399))['option'](a2_0x187dec(0x26e),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x187dec(0x234)](async(_0x27ff1f,_0x5dd3c3,_0x2f01fa)=>{const _0x4ec643=a2_0x187dec,_0x3f9d2c=new WorkflowDownloadCommand(),_0x6b5a6d=program[_0x4ec643(0x3d0)](),_0x58e6cc=await createTDXInstance(_0x6b5a6d),_0x176c42=await _0x3f9d2c[_0x4ec643(0x221)]({'options':{..._0x6b5a6d,..._0x2f01fa},'args':[_0x27ff1f,_0x5dd3c3||'.'],'tdx':_0x58e6cc});gracefulExit(_0x176c42);}),workflowCmd[a2_0x187dec(0x26a)]('pull\x20<project>\x20[target-dir]')[a2_0x187dec(0x240)](a2_0x187dec(0x345))[a2_0x187dec(0x264)](a2_0x187dec(0x26e),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x456))[a2_0x187dec(0x234)](async(_0x45434e,_0x31ea3c,_0x43dedd)=>{const _0x59b836=a2_0x187dec,_0x2eb90c=new WorkflowPullCommand(),_0x1d4387=program[_0x59b836(0x3d0)](),_0xff4c49=await createTDXInstance(_0x1d4387),_0x5aa6d4=await _0x2eb90c[_0x59b836(0x221)]({'options':{..._0x1d4387,..._0x43dedd},'args':_0x31ea3c?[_0x45434e,_0x31ea3c]:[_0x45434e],'tdx':_0xff4c49});gracefulExit(_0x5aa6d4);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x361))[a2_0x187dec(0x240)](a2_0x187dec(0x1e9))[a2_0x187dec(0x264)]('--revision\x20<revision>','Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x3cc))[a2_0x187dec(0x264)](a2_0x187dec(0x1f7),a2_0x187dec(0x459))['action'](async(_0x4672c8,_0x43492f)=>{const _0x2ac4f0=a2_0x187dec,_0x520c51=new WorkflowPushCommand(),_0x2c7add=program[_0x2ac4f0(0x3d0)](),_0x45f2e0=await createTDXInstance(_0x2c7add),_0x13b5f7=await _0x520c51['run']({'options':{..._0x2c7add,..._0x43492f},'args':_0x4672c8?[_0x4672c8]:[],'tdx':_0x45f2e0});gracefulExit(_0x13b5f7);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2e2))[a2_0x187dec(0x240)](a2_0x187dec(0x253))[a2_0x187dec(0x264)](a2_0x187dec(0x250),a2_0x187dec(0x19e))[a2_0x187dec(0x264)](a2_0x187dec(0x26e),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x187dec(0x264)](a2_0x187dec(0x1f7),a2_0x187dec(0x459))[a2_0x187dec(0x234)](async(_0x29f376,_0x57dc5c)=>{const _0x5b4317=a2_0x187dec,_0x1da235=new WorkflowUploadCommand(),_0x3325ee=program[_0x5b4317(0x3d0)](),_0x32f3cb=await createTDXInstance(_0x3325ee),_0x4d8c90=await _0x1da235[_0x5b4317(0x221)]({'options':{..._0x3325ee,..._0x57dc5c},'args':_0x29f376?[_0x29f376]:[],'tdx':_0x32f3cb});gracefulExit(_0x4d8c90);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1ed))[a2_0x187dec(0x240)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x250),a2_0x187dec(0x462))['option'](a2_0x187dec(0x26e),a2_0x187dec(0x475))[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x36d))['option'](a2_0x187dec(0x1f7),a2_0x187dec(0x459))['action'](async(_0x1e5fe0,_0x582140)=>{const _0x3895f1=a2_0x187dec,_0x32dac8=new WorkflowCloneCommand(),_0xbbad44=program[_0x3895f1(0x3d0)](),_0x4421cd=await createTDXInstance(_0xbbad44),_0x1a6e61=await _0x32dac8[_0x3895f1(0x221)]({'options':{..._0xbbad44,..._0x582140},'args':_0x1e5fe0?[_0x1e5fe0]:[],'tdx':_0x4421cd});gracefulExit(_0x1a6e61);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x412))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x187dec(0x234)](async(_0x466f4e,_0x24ad36)=>{const _0x22f938=a2_0x187dec,_0x74903=new WorkflowDeleteCommand(),_0x2358b=program[_0x22f938(0x3d0)](),_0x149c65=await createTDXInstance(_0x2358b),_0x2fccf8=await _0x74903[_0x22f938(0x221)]({'options':{..._0x2358b,..._0x24ad36},'args':[_0x466f4e],'tdx':_0x149c65});gracefulExit(_0x2fccf8);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x416))['description'](a2_0x187dec(0x2f1))[a2_0x187dec(0x264)](a2_0x187dec(0x20c),a2_0x187dec(0x405))[a2_0x187dec(0x234)](async(_0x3af5ff,_0x28a35c)=>{const _0x3211bf=a2_0x187dec,_0x168545=new WorkflowUseCommand(),_0x4b2095=program[_0x3211bf(0x3d0)](),_0x55786c=await createTDXInstance(_0x4b2095),_0x18fa3d=await _0x168545[_0x3211bf(0x221)]({'options':{..._0x4b2095,..._0x28a35c},'args':_0x3af5ff?[_0x3af5ff]:[],'tdx':_0x55786c});gracefulExit(_0x18fa3d);});const wfSecretsCmd=workflowCmd['command'](a2_0x187dec(0x30c))[a2_0x187dec(0x240)](a2_0x187dec(0x194));wfSecretsCmd['command'](a2_0x187dec(0x2d9))[a2_0x187dec(0x240)](a2_0x187dec(0x363))[a2_0x187dec(0x234)](async(_0x3a90d0,_0x3caa50)=>{const _0x16f7fb=a2_0x187dec,_0x1e066d=new WorkflowSecretsListCommand(),_0x2f9ead=program[_0x16f7fb(0x3d0)](),_0x2a9369=await createTDXInstance(_0x2f9ead),_0xb631a1=await _0x1e066d[_0x16f7fb(0x221)]({'options':{..._0x2f9ead,..._0x3caa50},'args':_0x3a90d0?[_0x3a90d0]:[],'tdx':_0x2a9369});gracefulExit(_0xb631a1);}),wfSecretsCmd[a2_0x187dec(0x26a)]('set\x20<args...>')[a2_0x187dec(0x240)](a2_0x187dec(0x312))[a2_0x187dec(0x234)](async(_0x2cc752,_0x40ca3d)=>{const _0x2b3536=a2_0x187dec,_0x23f68f=new WorkflowSecretsSetCommand(),_0x593d17=program['opts'](),_0xe6dfb9=await createTDXInstance(_0x593d17),_0x4d4df8=await _0x23f68f[_0x2b3536(0x221)]({'options':{..._0x593d17,..._0x40ca3d},'args':_0x2cc752,'tdx':_0xe6dfb9});gracefulExit(_0x4d4df8);}),wfSecretsCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2e0))[a2_0x187dec(0x240)](a2_0x187dec(0x2a0))[a2_0x187dec(0x234)](async(_0x164c60,_0x2ea526)=>{const _0x37cea2=new WorkflowSecretsDeleteCommand(),_0x228ac2=program['opts'](),_0x42bd46=await createTDXInstance(_0x228ac2),_0x5c2ac4=await _0x37cea2['run']({'options':{..._0x228ac2,..._0x2ea526},'args':_0x164c60,'tdx':_0x42bd46});gracefulExit(_0x5c2ac4);});const wfScheduleCmd=workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x45e))['description'](a2_0x187dec(0x3cf));wfScheduleCmd['command'](a2_0x187dec(0x40e))[a2_0x187dec(0x240)](a2_0x187dec(0x4aa))[a2_0x187dec(0x234)](async(_0x126353,_0x38bfee)=>{const _0x17257e=a2_0x187dec,_0x2f8816=new WorkflowScheduleEnableCommand(),_0x11d84e=program[_0x17257e(0x3d0)](),_0x2d9229=await createTDXInstance(_0x11d84e),_0x37887e=await _0x2f8816[_0x17257e(0x221)]({'options':{..._0x11d84e,..._0x38bfee},'args':[_0x126353],'tdx':_0x2d9229});gracefulExit(_0x37887e);}),wfScheduleCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x323))[a2_0x187dec(0x240)](a2_0x187dec(0x396))['action'](async(_0x71259b,_0x307d77)=>{const _0x3b14f8=a2_0x187dec,_0x3d1b6c=new WorkflowScheduleDisableCommand(),_0x25d5c9=program[_0x3b14f8(0x3d0)](),_0x3afafc=await createTDXInstance(_0x25d5c9),_0x30da9a=await _0x3d1b6c[_0x3b14f8(0x221)]({'options':{..._0x25d5c9,..._0x307d77},'args':[_0x71259b],'tdx':_0x3afafc});gracefulExit(_0x30da9a);}),workflowCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x328))['description'](a2_0x187dec(0x417))['action'](async _0x5d4b70=>{const _0x40b91d=a2_0x187dec,_0x2a727a=new WorkflowSchedulesCommand(),_0x243e29=program[_0x40b91d(0x3d0)](),_0x313ffb=await createTDXInstance(_0x243e29),_0x44977b=await _0x2a727a[_0x40b91d(0x221)]({'options':{..._0x243e29,..._0x5d4b70},'args':[],'tdx':_0x313ffb});gracefulExit(_0x44977b);});const jobCmd=program['command']('job')[a2_0x187dec(0x240)](a2_0x187dec(0x213)),jobListAction=async _0x26915d=>{const _0x4888a7=a2_0x187dec,_0x3e3845=new JobListCommand(),_0x5c0971=program[_0x4888a7(0x3d0)](),_0x50a7ce=await createTDXInstance(_0x5c0971),_0x5c970e=await _0x3e3845['run']({'options':{..._0x5c0971,..._0x26915d},'args':[],'tdx':_0x50a7ce});gracefulExit(_0x5c970e);};jobCmd[a2_0x187dec(0x26a)]('list')['description'](a2_0x187dec(0x4a5))[a2_0x187dec(0x264)](a2_0x187dec(0x2ea),a2_0x187dec(0x36f))[a2_0x187dec(0x234)](jobListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x3cd),{'hidden':!![]})['description'](a2_0x187dec(0x2eb))['option'](a2_0x187dec(0x2ea),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x187dec(0x234)](jobListAction),jobCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x35c))[a2_0x187dec(0x240)]('Show\x20job\x20details')['action'](async(_0x32f274,_0x38311e)=>{const _0x256c7e=a2_0x187dec,_0x572e9d=new JobShowCommand(),_0x102108=program[_0x256c7e(0x3d0)](),_0x592fa7=await createTDXInstance(_0x102108),_0x8b8689=await _0x572e9d[_0x256c7e(0x221)]({'options':{..._0x102108,..._0x38311e},'args':[_0x32f274],'tdx':_0x592fa7});gracefulExit(_0x8b8689);}),jobCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x202))[a2_0x187dec(0x240)]('Kill\x20a\x20job')['action'](async(_0x2ccd2b,_0x4728ac)=>{const _0x55f9e6=a2_0x187dec,_0x36dcd3=new JobKillCommand(),_0x19ad4b=program['opts'](),_0x258ba9=await createTDXInstance(_0x19ad4b),_0x7eb5aa=await _0x36dcd3[_0x55f9e6(0x221)]({'options':{..._0x19ad4b,..._0x4728ac},'args':[_0x2ccd2b],'tdx':_0x258ba9});gracefulExit(_0x7eb5aa);}),jobCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3e0))[a2_0x187dec(0x240)](a2_0x187dec(0x330))[a2_0x187dec(0x264)]('--job-type\x20<type>',a2_0x187dec(0x203),a2_0x187dec(0x41a))['option'](a2_0x187dec(0x1e7),a2_0x187dec(0x3f1))[a2_0x187dec(0x264)]('--database\x20<name>',a2_0x187dec(0x3a9),a2_0x187dec(0x491))[a2_0x187dec(0x264)](a2_0x187dec(0x29a),a2_0x187dec(0x1f4))[a2_0x187dec(0x234)](async(_0x3aac57,_0x433262)=>{const _0x149a2a=a2_0x187dec,_0x2007d2=new JobSubmitCommand(),_0x2ae4e7=program[_0x149a2a(0x3d0)](),_0x1ea8d3=await createTDXInstance(_0x2ae4e7),_0x4682ee=await _0x2007d2[_0x149a2a(0x221)]({'options':{..._0x2ae4e7,..._0x433262},'args':_0x3aac57?[_0x3aac57]:[],'tdx':_0x1ea8d3});gracefulExit(_0x4682ee);}),jobCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x44d))[a2_0x187dec(0x240)](a2_0x187dec(0x1a9))[a2_0x187dec(0x234)](async(_0x3e5b98,_0x1e156c)=>{const _0x4d2d28=a2_0x187dec,_0x4a176e=new JobResultCommand(),_0x3154a8=program[_0x4d2d28(0x3d0)](),_0xb54e41=await createTDXInstance(_0x3154a8),_0x54b2f8=await _0x4a176e[_0x4d2d28(0x221)]({'options':{..._0x3154a8,..._0x1e156c},'args':[_0x3e5b98],'tdx':_0xb54e41});gracefulExit(_0x54b2f8);});const scheduleCmd=jobCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x45e))['description'](a2_0x187dec(0x2ac));scheduleCmd[a2_0x187dec(0x26a)]('list\x20[pattern]')[a2_0x187dec(0x240)](a2_0x187dec(0x2fd))[a2_0x187dec(0x234)](async(_0x775ae1,_0x1012b8)=>{const _0x307c85=a2_0x187dec,_0x1d9f20=new ScheduleListCommand(),_0x3ac096=program[_0x307c85(0x3d0)](),_0x2e29a8=await createTDXInstance(_0x3ac096),_0x5a9891=await _0x1d9f20[_0x307c85(0x221)]({'options':{..._0x3ac096,..._0x1012b8},'args':_0x775ae1?[_0x775ae1]:[],'tdx':_0x2e29a8});gracefulExit(_0x5a9891);}),scheduleCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4b1))['description'](a2_0x187dec(0x461))[a2_0x187dec(0x234)](async(_0x2afe51,_0x3805e3)=>{const _0x421e60=a2_0x187dec,_0x5b8fc9=new ScheduleShowCommand(),_0x4453c8=program[_0x421e60(0x3d0)](),_0x3f9071=await createTDXInstance(_0x4453c8),_0x325878=await _0x5b8fc9[_0x421e60(0x221)]({'options':{..._0x4453c8,..._0x3805e3},'args':[_0x2afe51],'tdx':_0x3f9071});gracefulExit(_0x325878);}),scheduleCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x224))['description']('Create\x20a\x20scheduled\x20query')[a2_0x187dec(0x264)](a2_0x187dec(0x3ac),a2_0x187dec(0x2db))['option'](a2_0x187dec(0x1b5),a2_0x187dec(0x1b2))[a2_0x187dec(0x484)]('-f,\x20--file\x20<path>',a2_0x187dec(0x3f1))['option'](a2_0x187dec(0x20d),a2_0x187dec(0x4b4),a2_0x187dec(0x41a))[a2_0x187dec(0x264)](a2_0x187dec(0x375),a2_0x187dec(0x3b6))[a2_0x187dec(0x264)]('--timezone\x20<tz>','Timezone\x20for\x20cron\x20(default:\x20UTC)')[a2_0x187dec(0x264)](a2_0x187dec(0x2c4),a2_0x187dec(0x418))[a2_0x187dec(0x264)](a2_0x187dec(0x46d),a2_0x187dec(0x452))[a2_0x187dec(0x264)](a2_0x187dec(0x4a4),a2_0x187dec(0x1f9))[a2_0x187dec(0x264)](a2_0x187dec(0x2ae),a2_0x187dec(0x2b8))['option']('--result\x20<url>',a2_0x187dec(0x34c))['action'](async(_0x232f3f,_0x1c6137)=>{const _0x4fe2f5=a2_0x187dec,_0x5eba21=new ScheduleCreateCommand(),_0x192eb2=program[_0x4fe2f5(0x3d0)](),_0x4d6a0d=await createTDXInstance(_0x192eb2);_0x1c6137['in']&&(_0x1c6137[_0x4fe2f5(0x19f)]=_0x1c6137['in']);const _0x40b2aa=await _0x5eba21['run']({'options':{..._0x192eb2,..._0x1c6137},'args':[_0x232f3f],'tdx':_0x4d6a0d});gracefulExit(_0x40b2aa);}),scheduleCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x426))['description']('Update\x20a\x20scheduled\x20query')[a2_0x187dec(0x264)](a2_0x187dec(0x3ac),a2_0x187dec(0x3c7))[a2_0x187dec(0x264)]('--in\x20<db>',a2_0x187dec(0x1b2))[a2_0x187dec(0x264)](a2_0x187dec(0x1e7),'Read\x20query\x20from\x20file')[a2_0x187dec(0x264)](a2_0x187dec(0x20d),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x187dec(0x264)]('--cron\x20<expression>',a2_0x187dec(0x3b6))[a2_0x187dec(0x264)]('--timezone\x20<tz>',a2_0x187dec(0x3de))[a2_0x187dec(0x264)](a2_0x187dec(0x2c4),a2_0x187dec(0x418))[a2_0x187dec(0x264)](a2_0x187dec(0x46d),a2_0x187dec(0x452))[a2_0x187dec(0x264)](a2_0x187dec(0x4a4),'Retry\x20limit\x20(0\x20to\x2032)')['option'](a2_0x187dec(0x2ae),a2_0x187dec(0x2b8))[a2_0x187dec(0x264)]('--result\x20<url>','Result\x20output\x20destination\x20URL')['action'](async(_0x37a973,_0x5af88d)=>{const _0x56396d=a2_0x187dec,_0xd8406e=new ScheduleUpdateCommand(),_0x5a0411=program[_0x56396d(0x3d0)](),_0x2e26b5=await createTDXInstance(_0x5a0411);_0x5af88d['in']&&(_0x5af88d[_0x56396d(0x19f)]=_0x5af88d['in']);const _0x24c778=await _0xd8406e[_0x56396d(0x221)]({'options':{..._0x5a0411,..._0x5af88d},'args':[_0x37a973],'tdx':_0x2e26b5});gracefulExit(_0x24c778);}),scheduleCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4be))[a2_0x187dec(0x240)](a2_0x187dec(0x30b))[a2_0x187dec(0x234)](async(_0x51dfc6,_0x51e8c9)=>{const _0x2b98f5=a2_0x187dec,_0x2b5d8d=new ScheduleDeleteCommand(),_0x2e2b76=program[_0x2b98f5(0x3d0)](),_0x4438ae=await createTDXInstance(_0x2e2b76),_0x3f5bb7=await _0x2b5d8d['run']({'options':{..._0x2e2b76,..._0x51e8c9},'args':[_0x51dfc6],'tdx':_0x4438ae});gracefulExit(_0x3f5bb7);}),scheduleCmd['command'](a2_0x187dec(0x32f))[a2_0x187dec(0x240)](a2_0x187dec(0x216))[a2_0x187dec(0x264)](a2_0x187dec(0x410),'Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)')[a2_0x187dec(0x264)]('--num\x20<1-10>',a2_0x187dec(0x474))[a2_0x187dec(0x234)](async(_0x4f862b,_0x55574d)=>{const _0x349cf6=a2_0x187dec,_0x498ea0=new ScheduleRunCommand(),_0x5ec7b8=program[_0x349cf6(0x3d0)](),_0x195603=await createTDXInstance(_0x5ec7b8),_0x4fca62=await _0x498ea0['run']({'options':{..._0x5ec7b8,..._0x55574d},'args':[_0x4f862b],'tdx':_0x195603});gracefulExit(_0x4fca62);}),scheduleCmd['command']('history\x20<name>')[a2_0x187dec(0x240)](a2_0x187dec(0x1da))[a2_0x187dec(0x264)](a2_0x187dec(0x40b),a2_0x187dec(0x26d))['option'](a2_0x187dec(0x442),a2_0x187dec(0x1aa))[a2_0x187dec(0x234)](async(_0x9c0a60,_0x330677)=>{const _0x38251e=a2_0x187dec,_0x238c20=new ScheduleHistoryCommand(),_0x3bab67=program[_0x38251e(0x3d0)](),_0x4e179a=await createTDXInstance(_0x3bab67),_0x1a06f0=await _0x238c20['run']({'options':{..._0x3bab67,..._0x330677},'args':[_0x9c0a60],'tdx':_0x4e179a});gracefulExit(_0x1a06f0);});const llmCmd=program['command'](a2_0x187dec(0x1a0))[a2_0x187dec(0x240)](a2_0x187dec(0x347));llmCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1d5))['description'](a2_0x187dec(0x1e6))['action'](async(_0x5743d6,_0xa80bb8)=>{const _0x3cd299=a2_0x187dec,_0x5c6a71=new LLMUseCommand(),_0x47d684=program[_0x3cd299(0x3d0)](),_0x61f1e7=await createTDXInstance(_0x47d684),_0x5540fb=await _0x5c6a71[_0x3cd299(0x221)]({'options':{..._0x47d684,..._0xa80bb8},'args':[_0x5743d6],'tdx':_0x61f1e7});gracefulExit(_0x5540fb);}),llmCmd[a2_0x187dec(0x26a)]('models')[a2_0x187dec(0x240)](a2_0x187dec(0x1ce))[a2_0x187dec(0x234)](async _0x35f3d9=>{const _0x19e3de=a2_0x187dec,_0xc4148b=new LLMModelsCommand(),_0x50e235=program[_0x19e3de(0x3d0)](),_0x2480bb=await createTDXInstance(_0x50e235),_0x4c0a8e=await _0xc4148b[_0x19e3de(0x221)]({'options':{..._0x50e235,..._0x35f3d9},'args':[],'tdx':_0x2480bb});gracefulExit(_0x4c0a8e);});const projectCmd=llmCmd['command'](a2_0x187dec(0x27a))['description'](a2_0x187dec(0x2dd)),llmProjectListAction=async(_0x682b2e,_0x3dcb3e)=>{const _0x104ee5=a2_0x187dec,_0x53e74b=new LLMProjectsCommand(),_0x184843=program[_0x104ee5(0x3d0)](),_0x27f726=await createTDXInstance(_0x184843),_0x1295fd=await _0x53e74b[_0x104ee5(0x221)]({'options':{..._0x184843,..._0x3dcb3e},'args':_0x682b2e?[_0x682b2e]:[],'tdx':_0x27f726});gracefulExit(_0x1295fd);};projectCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))['description'](a2_0x187dec(0x22c))[a2_0x187dec(0x234)](llmProjectListAction),llmCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x252))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x187dec(0x234)](llmProjectListAction),projectCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x224))[a2_0x187dec(0x240)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x187dec(0x264)]('--description\x20<text>',a2_0x187dec(0x2bc))[a2_0x187dec(0x234)](async(_0x13b520,_0x462830)=>{const _0xfb2dfd=a2_0x187dec,_0xd7de23=new LLMProjectCreateCommand(),_0x328723=program[_0xfb2dfd(0x3d0)](),_0x2a0c61=await createTDXInstance(_0x328723),_0x45df23=await _0xd7de23['run']({'options':{..._0x328723,..._0x462830},'args':[_0x13b520],'tdx':_0x2a0c61});gracefulExit(_0x45df23);}),projectCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4be))[a2_0x187dec(0x240)]('Delete\x20an\x20LLM\x20project')[a2_0x187dec(0x234)](async(_0x114c60,_0x37b6ce)=>{const _0x507951=a2_0x187dec,_0x5b8e2c=new LLMProjectDeleteCommand(),_0x321665=program['opts'](),_0x26b6a1=await createTDXInstance(_0x321665),_0x241d10=await _0x5b8e2c[_0x507951(0x221)]({'options':{..._0x321665,..._0x37b6ce},'args':[_0x114c60],'tdx':_0x26b6a1});gracefulExit(_0x241d10);}),projectCmd[a2_0x187dec(0x26a)]('backup\x20<name>')[a2_0x187dec(0x240)](a2_0x187dec(0x485))[a2_0x187dec(0x264)]('-o,\x20--output\x20<folder>',a2_0x187dec(0x451))[a2_0x187dec(0x264)]('--dry-run',a2_0x187dec(0x1ad))[a2_0x187dec(0x234)](async(_0xfd9451,_0x1ac48f)=>{const _0x491c7f=a2_0x187dec,_0x3b6e45=new LLMProjectBackupCommand(),_0xa7e65e=program[_0x491c7f(0x3d0)](),_0x5b1abe=await createTDXInstance(_0xa7e65e),_0x2c1e75=await _0x3b6e45[_0x491c7f(0x221)]({'options':{..._0xa7e65e,..._0x1ac48f},'args':[_0xfd9451],'tdx':_0x5b1abe});gracefulExit(_0x2c1e75);}),projectCmd['command'](a2_0x187dec(0x317))[a2_0x187dec(0x240)](a2_0x187dec(0x21d))[a2_0x187dec(0x264)](a2_0x187dec(0x445),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x3d9))[a2_0x187dec(0x234)](async(_0x4695a1,_0xe50805)=>{const _0x2c695e=a2_0x187dec,_0x25235e=new LLMProjectRestoreCommand(),_0x57f986=program[_0x2c695e(0x3d0)](),_0x21f82a=await createTDXInstance(_0x57f986),_0x5d7000=await _0x25235e[_0x2c695e(0x221)]({'options':{..._0x57f986,..._0xe50805},'args':[_0x4695a1],'tdx':_0x21f82a});gracefulExit(_0x5d7000);});const llmAgentListAction=async(_0x393b85,_0x44bf14)=>{const _0x1a481f=a2_0x187dec,_0x11b8d9=new LLMAgentsCommand(),_0x56dd44=program[_0x1a481f(0x3d0)](),_0xba3c10=await createTDXInstance(_0x56dd44),_0x5e7d92=await _0x11b8d9[_0x1a481f(0x221)]({'options':{..._0x56dd44,..._0x44bf14},'args':_0x393b85?[_0x393b85]:[],'tdx':_0xba3c10});gracefulExit(_0x5e7d92);};llmCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x41d))[a2_0x187dec(0x240)](a2_0x187dec(0x472))['action'](llmAgentListAction),program[a2_0x187dec(0x26a)](a2_0x187dec(0x41d))['description'](a2_0x187dec(0x472))[a2_0x187dec(0x234)](llmAgentListAction),llmCmd['command'](a2_0x187dec(0x2b0))['description'](a2_0x187dec(0x277))[a2_0x187dec(0x264)](a2_0x187dec(0x21c),a2_0x187dec(0x21e))[a2_0x187dec(0x234)](async(_0xbcf4ec,_0x234e6f)=>{const _0x50379f=a2_0x187dec,_0x35a372=new LLMHistoryCommand(),_0x127020=program[_0x50379f(0x3d0)](),_0x551b72=await createTDXInstance(_0x127020),_0xfd4296=await _0x35a372[_0x50379f(0x221)]({'options':{..._0x127020,..._0x234e6f},'args':_0xbcf4ec?[_0xbcf4ec]:[],'tdx':_0x551b72});gracefulExit(_0xfd4296);});isExperimentalAvailable()&&llmCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x479))[a2_0x187dec(0x240)](a2_0x187dec(0x3e6))['action'](async(_0x1eb385,_0xbb406f)=>{const _0x40edc3=a2_0x187dec,_0x1ae337=new LLMLogCommand(),_0xbec58f=program[_0x40edc3(0x3d0)](),_0x5ed268=await createTDXInstance(_0xbec58f),_0xc85ae=await _0x1ae337[_0x40edc3(0x221)]({'options':{..._0xbec58f,..._0xbb406f},'args':[_0x1eb385],'tdx':_0x5ed268});gracefulExit(_0xc85ae);});program[a2_0x187dec(0x26a)](a2_0x187dec(0x200))[a2_0x187dec(0x455)](a2_0x187dec(0x46b))[a2_0x187dec(0x240)](a2_0x187dec(0x1bc))[a2_0x187dec(0x264)]('-c,\x20--continue',a2_0x187dec(0x446))[a2_0x187dec(0x264)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x187dec(0x264)]('--no-proxy',a2_0x187dec(0x236))['allowUnknownOption']()[a2_0x187dec(0x223)](!![])[a2_0x187dec(0x47c)](a2_0x187dec(0x3b8),'\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')[a2_0x187dec(0x234)](async(_0x54c594,_0x3fc2ff)=>{const _0x2e09dd=a2_0x187dec,_0x432768=program['opts'](),_0x94f8d0=Array[_0x2e09dd(0x450)](_0x54c594)?_0x54c594:[];if(_0x94f8d0[0x0]===_0x2e09dd(0x37f)){const _0x461809=new ClaudeStatuslineCommand(),_0x3826fb=await _0x461809['run']({'options':{..._0x432768,..._0x3fc2ff},'args':_0x94f8d0[_0x2e09dd(0x1e1)](0x1),'tdx':null});gracefulExit(_0x3826fb);}if(_0x94f8d0[0x0]===_0x2e09dd(0x455)){const _0x1980f4=new ClaudeUsageCommand(),_0x44ea83=await _0x1980f4['run']({'options':{..._0x432768,..._0x3fc2ff},'args':_0x94f8d0[_0x2e09dd(0x1e1)](0x1),'tdx':null});gracefulExit(_0x44ea83);}const _0x4e4bcb=new ClaudeCommand(),_0x3d0e2c=await createTDXInstance(_0x432768),_0xf3af41=await _0x4e4bcb[_0x2e09dd(0x221)]({'options':{..._0x432768,..._0x3fc2ff},'args':_0x94f8d0,'tdx':_0x3d0e2c});gracefulExit(_0xf3af41);}),program['command'](a2_0x187dec(0x3ee))[a2_0x187dec(0x240)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)')['option'](a2_0x187dec(0x20c),a2_0x187dec(0x25a))[a2_0x187dec(0x264)]('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x187dec(0x234)](async(_0x53a7f3,_0x2d4970,_0x3167c1)=>{const _0x7e8eb2=a2_0x187dec,_0x19f460=new UseCommand(),_0x37adde=program[_0x7e8eb2(0x3d0)](),_0x54b6a5=[];if(_0x53a7f3)_0x54b6a5[_0x7e8eb2(0x28d)](_0x53a7f3);if(_0x2d4970)_0x54b6a5[_0x7e8eb2(0x28d)](_0x2d4970);const _0x52af03=_0x53a7f3===_0x7e8eb2(0x24a),_0x52c981=_0x52af03?await createTDXInstance(_0x37adde):null,_0x27e411=await _0x19f460['run']({'options':{..._0x37adde,..._0x3167c1},'args':_0x54b6a5,'tdx':_0x52c981});gracefulExit(_0x27e411);}),program[a2_0x187dec(0x26a)](a2_0x187dec(0x3eb))[a2_0x187dec(0x240)]('Show\x20authentication\x20status\x20and\x20current\x20context')['action'](async _0x295a84=>{const _0x55c382=a2_0x187dec,_0x1d4532=new StatusCommand(),_0x20262b=program[_0x55c382(0x3d0)](),_0x44e482=await createTDXInstance(_0x20262b),_0x3aed19=await _0x1d4532[_0x55c382(0x221)]({'options':{..._0x20262b,..._0x295a84},'args':[],'tdx':_0x44e482});gracefulExit(_0x3aed19);}),program['command']('upgrade\x20[version]')[a2_0x187dec(0x240)](a2_0x187dec(0x3b1))[a2_0x187dec(0x264)](a2_0x187dec(0x267),'Check\x20for\x20updates\x20without\x20installing')[a2_0x187dec(0x264)]('--next',a2_0x187dec(0x471))[a2_0x187dec(0x264)](a2_0x187dec(0x38a),a2_0x187dec(0x2b9))[a2_0x187dec(0x234)](async(_0x47fa69,_0x109d95)=>{const _0x37683c=a2_0x187dec,_0x3b8cc7=new UpgradeCommand(),_0xb9b1b9=program[_0x37683c(0x3d0)](),_0x2b73eb=await _0x3b8cc7[_0x37683c(0x221)]({'options':{..._0xb9b1b9,..._0x109d95},'args':_0x47fa69?[_0x47fa69]:[],'tdx':null});gracefulExit(_0x2b73eb);}),program['command'](a2_0x187dec(0x409))[a2_0x187dec(0x240)](a2_0x187dec(0x33e))[a2_0x187dec(0x264)](a2_0x187dec(0x48e),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x187dec(0x234)](async(_0x3f7f72,_0x38ab30)=>{const _0x6626ec=a2_0x187dec,_0x53a2a9=new UnsetCommand(),_0x391d4f=program['opts'](),_0x2d9552=await _0x53a2a9[_0x6626ec(0x221)]({'options':{..._0x391d4f,..._0x38ab30},'args':[_0x3f7f72],'tdx':null});gracefulExit(_0x2d9552);}),program[a2_0x187dec(0x26a)](a2_0x187dec(0x318))[a2_0x187dec(0x240)]('Interactive\x20chat\x20selector')[a2_0x187dec(0x264)](a2_0x187dec(0x21c),a2_0x187dec(0x377))[a2_0x187dec(0x234)](async _0x5a50ca=>{const _0x2fbe5e=a2_0x187dec,_0x4d1abf=new ChatsCommand(),_0x4bb11a=program[_0x2fbe5e(0x3d0)](),_0x4ba543=await createTDXInstance(_0x4bb11a),_0xe69de7=await _0x4d1abf[_0x2fbe5e(0x221)]({'options':{..._0x4bb11a,..._0x5a50ca},'args':[],'tdx':_0x4ba543});gracefulExit(_0xe69de7);});const authCmd=program[a2_0x187dec(0x26a)]('auth')[a2_0x187dec(0x240)](a2_0x187dec(0x353));async function runAuthStatusCommand(_0xaeed){const _0x97fb42=a2_0x187dec,_0x582839=new AuthStatusCommand(),_0x25f9d0=program[_0x97fb42(0x3d0)](),_0x376551=await createTDXInstance(_0x25f9d0),_0x474fe5=await _0x582839[_0x97fb42(0x221)]({'options':{..._0x25f9d0,..._0xaeed},'args':[],'tdx':_0x376551});gracefulExit(_0x474fe5);}authCmd[a2_0x187dec(0x234)](runAuthStatusCommand),authCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3eb))['description'](a2_0x187dec(0x1fb))[a2_0x187dec(0x234)](runAuthStatusCommand);async function authSetupAction(_0x1f8522){const _0x26d3b3=a2_0x187dec,_0x49edf6=new AuthSetupCommand(),_0x586884=program[_0x26d3b3(0x3d0)](),_0x49fc8d=await createTDXInstance(_0x586884),_0x540f69=await _0x49edf6[_0x26d3b3(0x221)]({'options':{..._0x586884,..._0x1f8522},'args':[],'tdx':_0x49fc8d});gracefulExit(_0x540f69);}authCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x19d))[a2_0x187dec(0x240)](a2_0x187dec(0x470))[a2_0x187dec(0x264)](a2_0x187dec(0x341),a2_0x187dec(0x346))[a2_0x187dec(0x47c)]('after',a2_0x187dec(0x313))[a2_0x187dec(0x234)](authSetupAction),authCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1c7),{'hidden':!![]})[a2_0x187dec(0x264)]('--account-name\x20<name>',a2_0x187dec(0x346))[a2_0x187dec(0x234)](authSetupAction),authCmd[a2_0x187dec(0x26a)]('clear')[a2_0x187dec(0x240)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x187dec(0x3b8),a2_0x187dec(0x4bd))[a2_0x187dec(0x234)](async _0x2fa514=>{const _0x49bef6=a2_0x187dec,_0x314e5f=new AuthClearCommand(),_0x3f56d9=program['opts'](),_0x29ef4e=await _0x314e5f[_0x49bef6(0x221)]({'options':{..._0x3f56d9,..._0x2fa514},'args':[],'tdx':null});gracefulExit(_0x29ef4e);});const userCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x289))[a2_0x187dec(0x240)](a2_0x187dec(0x34d)),userListAction=async _0x1913f6=>{const _0x4de2a4=a2_0x187dec,_0x5c4d8a=new UserListCommand(),_0x5772b4=program[_0x4de2a4(0x3d0)](),_0x24bfa7=await createTDXInstance(_0x5772b4),_0x2b20cd=await _0x5c4d8a[_0x4de2a4(0x221)]({'options':{..._0x5772b4,..._0x1913f6},'args':[],'tdx':_0x24bfa7});gracefulExit(_0x2b20cd);};userCmd['action'](async _0x4ecdd7=>{const _0x5a4afa=a2_0x187dec,_0x210281=new UserCommand(),_0x5a7075=program[_0x5a4afa(0x3d0)](),_0x3a0269=await createTDXInstance(_0x5a7075),_0x1a4e20=await _0x210281['run']({'options':{..._0x5a7075,..._0x4ecdd7},'args':[],'tdx':_0x3a0269});gracefulExit(_0x1a4e20);}),userCmd['command'](a2_0x187dec(0x310))[a2_0x187dec(0x240)](a2_0x187dec(0x1c4))[a2_0x187dec(0x234)](userListAction),program['command'](a2_0x187dec(0x201))[a2_0x187dec(0x240)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x187dec(0x234)](userListAction);const policyCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x3d6))['description'](a2_0x187dec(0x4ba));policyCmd['action'](async _0x12ad19=>{const _0x4b3026=a2_0x187dec,_0x20a76b=new PolicyCommand(),_0x358d50=program[_0x4b3026(0x3d0)](),_0x1a4211=await createTDXInstance(_0x358d50),_0x572a57=await _0x20a76b['run']({'options':{..._0x358d50,..._0x12ad19},'args':[],'tdx':_0x1a4211});gracefulExit(_0x572a57);}),policyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x310))[a2_0x187dec(0x240)]('List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)')['action'](async _0x429b45=>{const _0x22d3ec=a2_0x187dec,_0x28c3c9=new PolicyListCommand(),_0x220ec7=program[_0x22d3ec(0x3d0)](),_0x35d21b=await createTDXInstance(_0x220ec7),_0x32c86d=await _0x28c3c9[_0x22d3ec(0x221)]({'options':{..._0x220ec7,..._0x429b45},'args':[],'tdx':_0x35d21b});gracefulExit(_0x32c86d);}),policyCmd[a2_0x187dec(0x26a)]('show\x20<policy>')['description'](a2_0x187dec(0x3e8))[a2_0x187dec(0x234)](async(_0x58687c,_0xbc5b5c)=>{const _0x40cc75=a2_0x187dec,_0x4fe378=new PolicyShowCommand(),_0x4ef93b=program[_0x40cc75(0x3d0)](),_0x327c58=await createTDXInstance(_0x4ef93b),_0x266036=await _0x4fe378['run']({'options':{..._0x4ef93b,..._0xbc5b5c},'args':[_0x58687c],'tdx':_0x327c58});gracefulExit(_0x266036);}),program[a2_0x187dec(0x26a)](a2_0x187dec(0x2e5))[a2_0x187dec(0x240)]('List\x20all\x20available\x20profiles')[a2_0x187dec(0x234)](async _0x1d8a24=>{const _0x5071ca=a2_0x187dec,_0x6a195=new ProfilesCommand(),_0x439a90=program['opts'](),_0x3dab49=await _0x6a195[_0x5071ca(0x221)]({'options':{..._0x439a90,..._0x1d8a24},'args':[],'tdx':null});gracefulExit(_0x3dab49);});const profileCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x2aa))[a2_0x187dec(0x240)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x187dec(0x234)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x32b8ee=>{const _0x56e467=a2_0x187dec,_0x415247=new ProfilesCommand(),_0x34d2ac=program['opts'](),_0x17a449=await _0x415247[_0x56e467(0x221)]({'options':{..._0x34d2ac,..._0x32b8ee},'args':[],'tdx':null});gracefulExit(_0x17a449);};profileCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x310))[a2_0x187dec(0x240)](a2_0x187dec(0x241))['action'](profileListAction),profileCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4a0))[a2_0x187dec(0x240)](a2_0x187dec(0x270))['option']('--account-name\x20<name>',a2_0x187dec(0x346))[a2_0x187dec(0x264)](a2_0x187dec(0x1fe),a2_0x187dec(0x238))[a2_0x187dec(0x47c)]('after',a2_0x187dec(0x37a))['action'](async(_0x497c82,_0x298797)=>{const _0x3a5af2=a2_0x187dec,_0x29de3c=new ProfileCreateCommand(),_0xec7a72=program[_0x3a5af2(0x3d0)](),_0x42d889=await _0x29de3c[_0x3a5af2(0x221)]({'options':{..._0xec7a72,..._0x298797},'args':_0x497c82?[_0x497c82]:[],'tdx':null});gracefulExit(_0x42d889);});async function profileDeleteAction(_0x37d824,_0x298a29){const _0x5b6b2b=a2_0x187dec,_0x187c21=new ProfileDeleteCommand(),_0x370a71=program[_0x5b6b2b(0x3d0)](),_0x42962b=await _0x187c21[_0x5b6b2b(0x221)]({'options':{..._0x370a71,..._0x298a29},'args':[_0x37d824],'tdx':null});gracefulExit(_0x42962b);}profileCmd['command'](a2_0x187dec(0x4be))[a2_0x187dec(0x240)](a2_0x187dec(0x3a2))[a2_0x187dec(0x47c)](a2_0x187dec(0x3b8),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x187dec(0x234)](profileDeleteAction),profileCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x30e),{'hidden':!![]})['action'](profileDeleteAction),profileCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x496))[a2_0x187dec(0x240)](a2_0x187dec(0x2c9))['addHelpText'](a2_0x187dec(0x3b8),a2_0x187dec(0x1bf))['action'](async(_0x5e85a6,_0x32811d)=>{const _0x4c41e2=a2_0x187dec,_0x1249b7=new ProfileSetCommand(),_0x63ff0f=program[_0x4c41e2(0x3d0)](),_0x5cd251=await _0x1249b7['run']({'options':{..._0x63ff0f,..._0x32811d},'args':[_0x5e85a6],'tdx':null});gracefulExit(_0x5cd251);}),profileCmd['command'](a2_0x187dec(0x453))[a2_0x187dec(0x240)](a2_0x187dec(0x45b))[a2_0x187dec(0x264)]('--default',a2_0x187dec(0x1ea))['addHelpText'](a2_0x187dec(0x3b8),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a')[a2_0x187dec(0x234)](async(_0x3bc86a,_0x327991)=>{const _0x4851ba=new ProfileUseCommand(),_0x3a09f8=program['opts'](),_0x57d629=await _0x4851ba['run']({'options':{..._0x3a09f8,..._0x327991},'args':[_0x3bc86a],'tdx':null});gracefulExit(_0x57d629);});const engageCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x351))[a2_0x187dec(0x240)](a2_0x187dec(0x1a8)),createEngageAction=_0x368116=>{return async(_0xf02f17,_0xd5037e)=>{const _0x1b1a42=a2_0x4510,_0x18b804=new _0x368116(),_0x213e3a=program['opts'](),_0x1f176c=await createTDXInstance(_0x213e3a),_0x227a06=await _0x18b804[_0x1b1a42(0x221)]({'options':{..._0x213e3a,..._0xd5037e},'args':[_0xf02f17],'tdx':_0x1f176c});gracefulExit(_0x227a06);};},createEngageNoArgAction=_0x1a1b41=>{return async _0x39c601=>{const _0x1d3f9f=a2_0x4510,_0x5156bf=new _0x1a1b41(),_0x5a6053=program[_0x1d3f9f(0x3d0)](),_0xc8524e=await createTDXInstance(_0x5a6053),_0x33fb1a=await _0x5156bf[_0x1d3f9f(0x221)]({'options':{..._0x5a6053,..._0x39c601},'args':[],'tdx':_0xc8524e});gracefulExit(_0x33fb1a);};},createEngageListAction=_0xde8df4=>{return async(_0x48a7bf,_0x5598c2)=>{const _0x5c0548=a2_0x4510,_0x49cc5b=new _0xde8df4(),_0x1dec33=program[_0x5c0548(0x3d0)](),_0x1a4f9f=await createTDXInstance(_0x1dec33),_0x2d5868=await _0x49cc5b[_0x5c0548(0x221)]({'options':{..._0x1dec33,..._0x5598c2},'args':_0x48a7bf?[_0x48a7bf]:[],'tdx':_0x1a4f9f});gracefulExit(_0x2d5868);};},campaignCmd=engageCmd['command'](a2_0x187dec(0x322))['description'](a2_0x187dec(0x339));campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)](a2_0x187dec(0x3c3))[a2_0x187dec(0x264)](a2_0x187dec(0x20d),a2_0x187dec(0x24e))['option'](a2_0x187dec(0x2ea),a2_0x187dec(0x48c))[a2_0x187dec(0x264)]('--workspace\x20<name>',a2_0x187dec(0x1c5))[a2_0x187dec(0x234)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x187dec(0x1d1))[a2_0x187dec(0x240)](a2_0x187dec(0x3af))[a2_0x187dec(0x264)](a2_0x187dec(0x20d),a2_0x187dec(0x24e))[a2_0x187dec(0x264)](a2_0x187dec(0x2ea),a2_0x187dec(0x48c))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd['command'](a2_0x187dec(0x1d3))['description'](a2_0x187dec(0x372))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))[a2_0x187dec(0x264)](a2_0x187dec(0x414),a2_0x187dec(0x2f7))[a2_0x187dec(0x234)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x187dec(0x362))[a2_0x187dec(0x240)](a2_0x187dec(0x3c5))['requiredOption'](a2_0x187dec(0x250),a2_0x187dec(0x2d4))[a2_0x187dec(0x484)]('--type\x20<type>',a2_0x187dec(0x43c))['option'](a2_0x187dec(0x2c1),a2_0x187dec(0x282))['option'](a2_0x187dec(0x242),'Campaign\x20description')['option'](a2_0x187dec(0x1fc),a2_0x187dec(0x23c))[a2_0x187dec(0x264)](a2_0x187dec(0x1cc),a2_0x187dec(0x390))['option'](a2_0x187dec(0x28c),a2_0x187dec(0x206))['option'](a2_0x187dec(0x3b2),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')['option'](a2_0x187dec(0x1c2),a2_0x187dec(0x2bd))[a2_0x187dec(0x234)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x435))[a2_0x187dec(0x240)]('Update\x20a\x20campaign')[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))['option']('--name\x20<name>',a2_0x187dec(0x20f))[a2_0x187dec(0x264)]('--description\x20<desc>',a2_0x187dec(0x2cf))[a2_0x187dec(0x264)](a2_0x187dec(0x1fc),a2_0x187dec(0x23c))[a2_0x187dec(0x264)](a2_0x187dec(0x1cc),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x187dec(0x28c),a2_0x187dec(0x206))[a2_0x187dec(0x264)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')['option'](a2_0x187dec(0x1c2),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x349))['description'](a2_0x187dec(0x2af))[a2_0x187dec(0x264)]('--workspace\x20<name>','Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x33d),a2_0x187dec(0x494))[a2_0x187dec(0x234)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x187dec(0x26a)]('launch\x20<name-or-id>')[a2_0x187dec(0x240)](a2_0x187dec(0x3ae))['option'](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))[a2_0x187dec(0x234)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x49e))[a2_0x187dec(0x240)]('Pause\x20a\x20campaign')[a2_0x187dec(0x264)]('--workspace\x20<name>',a2_0x187dec(0x1c5))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2e8))[a2_0x187dec(0x240)](a2_0x187dec(0x25c))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))[a2_0x187dec(0x234)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x187dec(0x2d0))['description'](a2_0x187dec(0x294))[a2_0x187dec(0x264)]('--workspace\x20<name>','Workspace\x20name')[a2_0x187dec(0x234)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x187dec(0x26a)]('pull\x20[workspace-name]')[a2_0x187dec(0x240)](a2_0x187dec(0x487))[a2_0x187dec(0x264)]('--workspace\x20<name>',a2_0x187dec(0x1c5))[a2_0x187dec(0x264)](a2_0x187dec(0x250),a2_0x187dec(0x38d))['option'](a2_0x187dec(0x20d),a2_0x187dec(0x24e))[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x3da))[a2_0x187dec(0x234)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x20e))[a2_0x187dec(0x240)](a2_0x187dec(0x272))[a2_0x187dec(0x264)]('--workspace\x20<name>','Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x211))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd['command'](a2_0x187dec(0x368))[a2_0x187dec(0x240)](a2_0x187dec(0x365))[a2_0x187dec(0x264)](a2_0x187dec(0x441),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x187dec(0x234)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x24b))[a2_0x187dec(0x240)]('Always-on\x20campaign\x20management');alwaysOnCampaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)](a2_0x187dec(0x32d))[a2_0x187dec(0x264)]('--type\x20<type>',a2_0x187dec(0x24e))['option']('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),a2_0x187dec(0x282))[a2_0x187dec(0x234)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x47b))[a2_0x187dec(0x240)](a2_0x187dec(0x3b0))[a2_0x187dec(0x264)]('--type\x20<type>',a2_0x187dec(0x24e))[a2_0x187dec(0x264)]('--status\x20<status>',a2_0x187dec(0x31c))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')[a2_0x187dec(0x234)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1d3))[a2_0x187dec(0x240)](a2_0x187dec(0x1dd))[a2_0x187dec(0x484)]('--workspace\x20<name>',a2_0x187dec(0x282))[a2_0x187dec(0x264)](a2_0x187dec(0x414),a2_0x187dec(0x2f7))[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd['command']('create')[a2_0x187dec(0x240)](a2_0x187dec(0x38c))[a2_0x187dec(0x484)]('--name\x20<name>','Campaign\x20name')[a2_0x187dec(0x484)](a2_0x187dec(0x20d),a2_0x187dec(0x43c))['requiredOption'](a2_0x187dec(0x2c1),a2_0x187dec(0x282))[a2_0x187dec(0x264)](a2_0x187dec(0x242),a2_0x187dec(0x2cf))[a2_0x187dec(0x264)](a2_0x187dec(0x1fc),a2_0x187dec(0x22a))[a2_0x187dec(0x264)](a2_0x187dec(0x42c),a2_0x187dec(0x19b))[a2_0x187dec(0x234)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd['command'](a2_0x187dec(0x435))['description'](a2_0x187dec(0x30a))['requiredOption'](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')[a2_0x187dec(0x264)](a2_0x187dec(0x250),a2_0x187dec(0x20f))['option'](a2_0x187dec(0x242),a2_0x187dec(0x2cf))['option'](a2_0x187dec(0x1fc),a2_0x187dec(0x22a))['option'](a2_0x187dec(0x42c),'Enable\x20UTM\x20tracking')[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd['command']('delete\x20<name-or-id>')[a2_0x187dec(0x240)](a2_0x187dec(0x2d1))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')['option'](a2_0x187dec(0x33d),a2_0x187dec(0x494))[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x187dec(0x26a)]('launch\x20<name-or-id>')[a2_0x187dec(0x240)]('Launch\x20an\x20always-on\x20campaign')['requiredOption'](a2_0x187dec(0x2c1),a2_0x187dec(0x282))['action'](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd['command'](a2_0x187dec(0x49e))[a2_0x187dec(0x240)](a2_0x187dec(0x29c))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2e8))[a2_0x187dec(0x240)](a2_0x187dec(0x32a))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x385))[a2_0x187dec(0x240)](a2_0x187dec(0x45d))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')['option'](a2_0x187dec(0x33d),'Skip\x20confirmation\x20prompt')[a2_0x187dec(0x234)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd['command'](a2_0x187dec(0x2d0))[a2_0x187dec(0x240)](a2_0x187dec(0x197))[a2_0x187dec(0x484)](a2_0x187dec(0x2c1),'Workspace\x20name\x20(required)')['requiredOption']('--name\x20<name>',a2_0x187dec(0x49a))['action'](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x187dec(0x26a)]('template')[a2_0x187dec(0x240)]('Email\x20template\x20management');templateCmd[a2_0x187dec(0x26a)]('list\x20[pattern]')['description'](a2_0x187dec(0x1bd))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),'Workspace\x20name')[a2_0x187dec(0x234)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x20b))[a2_0x187dec(0x240)](a2_0x187dec(0x23e))[a2_0x187dec(0x264)]('--workspace\x20<name>','Workspace\x20name')[a2_0x187dec(0x234)](createEngageListAction(EngageTemplatesCommand)),templateCmd['command'](a2_0x187dec(0x1d3))[a2_0x187dec(0x240)](a2_0x187dec(0x1ec))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x414),a2_0x187dec(0x2f7))[a2_0x187dec(0x234)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x362))[a2_0x187dec(0x240)](a2_0x187dec(0x326))[a2_0x187dec(0x484)](a2_0x187dec(0x250),a2_0x187dec(0x387))['requiredOption'](a2_0x187dec(0x1d2),a2_0x187dec(0x275))[a2_0x187dec(0x264)](a2_0x187dec(0x443),a2_0x187dec(0x3f6))[a2_0x187dec(0x264)](a2_0x187dec(0x406),a2_0x187dec(0x1f5))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x282))['option']('--plaintext\x20<text>','Plaintext\x20template\x20content')['option']('--editor-type\x20<type>',a2_0x187dec(0x259),_0x1f9085=>{const _0x3e96b0=a2_0x187dec;if(![_0x3e96b0(0x3ba),_0x3e96b0(0x38e)]['includes'](_0x1f9085))throw new SDKError(ErrorCode[_0x3e96b0(0x248)],'Invalid\x20editor\x20type:\x20'+_0x1f9085+_0x3e96b0(0x458));return _0x1f9085;})[a2_0x187dec(0x234)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x435))[a2_0x187dec(0x240)](a2_0x187dec(0x3ea))[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),'Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x250),a2_0x187dec(0x4bf))[a2_0x187dec(0x264)]('--subject\x20<subject>',a2_0x187dec(0x275))['option'](a2_0x187dec(0x443),'HTML\x20template\x20content')['option'](a2_0x187dec(0x406),a2_0x187dec(0x1f5))[a2_0x187dec(0x264)](a2_0x187dec(0x1b6),a2_0x187dec(0x23f))[a2_0x187dec(0x234)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x382))['description']('Pull\x20templates\x20to\x20YAML\x20files')[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))[a2_0x187dec(0x264)]('--name\x20<name>',a2_0x187dec(0x21a))[a2_0x187dec(0x264)](a2_0x187dec(0x2a8),'Skip\x20confirmation\x20prompt')[a2_0x187dec(0x264)](a2_0x187dec(0x267),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x187dec(0x234)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x20e))[a2_0x187dec(0x240)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x187dec(0x264)](a2_0x187dec(0x2c1),'Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x2a8),a2_0x187dec(0x494))[a2_0x187dec(0x264)]('--dry-run','Show\x20what\x20would\x20be\x20applied\x20without\x20applying')['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x187dec(0x26a)]('validate\x20[target]')['description'](a2_0x187dec(0x360))['option'](a2_0x187dec(0x441),a2_0x187dec(0x493))[a2_0x187dec(0x234)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x349))[a2_0x187dec(0x240)](a2_0x187dec(0x3c4))['option'](a2_0x187dec(0x2c1),a2_0x187dec(0x1c5))['option']('--yes',a2_0x187dec(0x494))[a2_0x187dec(0x234)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x44c))[a2_0x187dec(0x240)]('Workspace\x20management');workspaceCmd['command'](a2_0x187dec(0x422))[a2_0x187dec(0x240)](a2_0x187dec(0x395))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x198))['description'](a2_0x187dec(0x1cd))['action'](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x187dec(0x1d3))[a2_0x187dec(0x240)](a2_0x187dec(0x29b))[a2_0x187dec(0x264)](a2_0x187dec(0x414),a2_0x187dec(0x2f7))[a2_0x187dec(0x234)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x362))[a2_0x187dec(0x240)]('Create\x20a\x20workspace')['requiredOption']('--name\x20<name>','Workspace\x20name')[a2_0x187dec(0x264)](a2_0x187dec(0x242),a2_0x187dec(0x378))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x187dec(0x26a)]('update\x20<name-or-id>')[a2_0x187dec(0x240)](a2_0x187dec(0x366))[a2_0x187dec(0x264)](a2_0x187dec(0x250),'New\x20workspace\x20name')['option'](a2_0x187dec(0x242),a2_0x187dec(0x378))[a2_0x187dec(0x234)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x349))[a2_0x187dec(0x240)](a2_0x187dec(0x3a1))['option']('--yes',a2_0x187dec(0x494))[a2_0x187dec(0x234)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x187dec(0x26a)]('use\x20<name>')[a2_0x187dec(0x240)](a2_0x187dec(0x1a1))[a2_0x187dec(0x234)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x3aa))[a2_0x187dec(0x240)](a2_0x187dec(0x306));deliveryCmd['command'](a2_0x187dec(0x2e1))[a2_0x187dec(0x240)](a2_0x187dec(0x315))['option']('--workspace\x20<name>',a2_0x187dec(0x1c5))[a2_0x187dec(0x234)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x187dec(0x26a)]('connection')[a2_0x187dec(0x240)](a2_0x187dec(0x439)),connectionListAction=async _0x517a9e=>{const _0x37fb3e=a2_0x187dec,_0x40983e=new ConnectionListCommand(),_0x3693a0=program[_0x37fb3e(0x3d0)](),_0x29ba0c=await createTDXInstance(_0x3693a0),_0x54b0e0=await _0x40983e['run']({'options':{..._0x3693a0,..._0x517a9e},'args':[],'tdx':_0x29ba0c});gracefulExit(_0x54b0e0);};connectionCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x310))[a2_0x187dec(0x240)](a2_0x187dec(0x19c))[a2_0x187dec(0x234)](connectionListAction),program['command'](a2_0x187dec(0x3df),{'hidden':!![]})[a2_0x187dec(0x240)](a2_0x187dec(0x254))[a2_0x187dec(0x234)](connectionListAction),connectionCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4b1))['description'](a2_0x187dec(0x43f))[a2_0x187dec(0x234)](async(_0x556b52,_0xfae8e3)=>{const _0x1842e5=a2_0x187dec,_0x548d29=new ConnectionShowCommand(),_0xb74550=program[_0x1842e5(0x3d0)](),_0x4318e8=await createTDXInstance(_0xb74550),_0x196f71=await _0x548d29[_0x1842e5(0x221)]({'options':{..._0xb74550,..._0xfae8e3},'args':[_0x556b52],'tdx':_0x4318e8});gracefulExit(_0x196f71);}),connectionCmd['command'](a2_0x187dec(0x359))[a2_0x187dec(0x240)](a2_0x187dec(0x278))[a2_0x187dec(0x234)](async(_0x207142,_0x39d53f)=>{const _0x3be6d9=a2_0x187dec,_0x5d963d=new ConnectionSchemaCommand(),_0x1a7e02=program[_0x3be6d9(0x3d0)](),_0x1bb322=await createTDXInstance(_0x1a7e02),_0x3d96ec=await _0x5d963d[_0x3be6d9(0x221)]({'options':{..._0x1a7e02,..._0x39d53f},'args':[_0x207142],'tdx':_0x1bb322});gracefulExit(_0x3d96ec);}),connectionCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x295))[a2_0x187dec(0x240)](a2_0x187dec(0x434))[a2_0x187dec(0x234)](async _0x24454b=>{const _0x2c5e17=a2_0x187dec,_0x3f15b9=new ConnectionTypesCommand(),_0x55ffb0=program[_0x2c5e17(0x3d0)](),_0x15b69a=await createTDXInstance(_0x55ffb0),_0x1050e2=await _0x3f15b9[_0x2c5e17(0x221)]({'options':{..._0x55ffb0,..._0x24454b},'args':[],'tdx':_0x15b69a});gracefulExit(_0x1050e2);}),connectionCmd['command']('settings\x20<type>')[a2_0x187dec(0x240)](a2_0x187dec(0x427))[a2_0x187dec(0x234)](async(_0x373fca,_0x368285)=>{const _0x5bf47b=a2_0x187dec,_0x50b394=new ConnectionSettingsCommand(),_0xc57936=program['opts'](),_0x224cc1=await createTDXInstance(_0xc57936),_0x39227c=await _0x50b394[_0x5bf47b(0x221)]({'options':{..._0xc57936,..._0x368285},'args':[_0x373fca],'tdx':_0x224cc1});gracefulExit(_0x39227c);});const casCmd=program[a2_0x187dec(0x26a)]('cas')[a2_0x187dec(0x240)](a2_0x187dec(0x3a3));casCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x310))['description'](a2_0x187dec(0x243))['action'](async _0x125beb=>{const _0x3664c9=a2_0x187dec,_0x9ae5ab=new CASListCommand(),_0x1b5fae=program[_0x3664c9(0x3d0)](),_0x1f3e36=await createTDXInstance(_0x1b5fae),_0x5bd574=await _0x9ae5ab[_0x3664c9(0x221)]({'options':{..._0x1b5fae,..._0x125beb},'args':[],'tdx':_0x1f3e36});gracefulExit(_0x5bd574);}),casCmd[a2_0x187dec(0x26a)]('desc\x20[name]')[a2_0x187dec(0x240)](a2_0x187dec(0x299))[a2_0x187dec(0x234)](async(_0x4cf78d,_0x81ab70)=>{const _0x5bbf4f=a2_0x187dec,_0xca332a=new CASDescCommand(),_0x48a6c1=program[_0x5bbf4f(0x3d0)](),_0x226cd5=await createTDXInstance(_0x48a6c1),_0x414e49=await _0xca332a['run']({'options':{..._0x48a6c1,..._0x81ab70},'args':_0x4cf78d?[_0x4cf78d]:[],'tdx':_0x226cd5});gracefulExit(_0x414e49);}),casCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x48f))[a2_0x187dec(0x240)](a2_0x187dec(0x1cf))[a2_0x187dec(0x264)](a2_0x187dec(0x33a),a2_0x187dec(0x39d))[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x37b))['action'](async(_0x35f6a7,_0x38d486)=>{const _0xe4b17c=a2_0x187dec,_0x58333d=new CASPullCommand(),_0x2bbddc=program[_0xe4b17c(0x3d0)](),_0x197b34=await createTDXInstance(_0x2bbddc),_0x3e61f0=await _0x58333d[_0xe4b17c(0x221)]({'options':{..._0x2bbddc,..._0x38d486},'args':_0x35f6a7?[_0x35f6a7]:[],'tdx':_0x197b34});gracefulExit(_0x3e61f0);}),casCmd[a2_0x187dec(0x26a)]('push\x20[target]')[a2_0x187dec(0x240)]('Push\x20YAML\x20files\x20to\x20CAS\x20API')[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x38b))['action'](async(_0x5d22ac,_0x49c0ba)=>{const _0xfb7651=a2_0x187dec,_0x5777e5=new CASPushCommand(),_0x1aa2ee=program[_0xfb7651(0x3d0)](),_0x1edf78=await createTDXInstance(_0x1aa2ee),_0xcfb97c=await _0x5777e5['run']({'options':{..._0x1aa2ee,..._0x49c0ba},'args':_0x5d22ac?[_0x5d22ac]:[],'tdx':_0x1edf78});gracefulExit(_0xcfb97c);}),casCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x29e))[a2_0x187dec(0x240)]('Preview\x20composable\x20segment\x20query\x20on\x20CDW')[a2_0x187dec(0x264)](a2_0x187dec(0x276),a2_0x187dec(0x497))[a2_0x187dec(0x234)](async(_0x5f5238,_0x236729)=>{const _0x4258e1=a2_0x187dec,_0x48881d=new CASPreviewCommand(),_0x13f0c3=program['opts'](),_0x546427=await createTDXInstance(_0x13f0c3),_0x556be9=await _0x48881d['run']({'options':{..._0x13f0c3,..._0x236729},'args':[_0x5f5238,_0x236729[_0x4258e1(0x1af)]],'tdx':_0x546427});gracefulExit(_0x556be9);});const casSgCmd=casCmd[a2_0x187dec(0x26a)]('sg')[a2_0x187dec(0x240)](a2_0x187dec(0x39b));casSgCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x478))['description'](a2_0x187dec(0x273))[a2_0x187dec(0x234)](async(_0x55b11d,_0x22520c)=>{const _0x54b7c6=a2_0x187dec,_0x1655d4=new CASSegmentListCommand(),_0x26cc1f=program[_0x54b7c6(0x3d0)](),_0xd269fd=await createTDXInstance(_0x26cc1f),_0x45534d=await _0x1655d4[_0x54b7c6(0x221)]({'options':{..._0x26cc1f,..._0x22520c},'args':_0x55b11d?[_0x55b11d]:[],'tdx':_0xd269fd});gracefulExit(_0x45534d);});const journeyCmd=program['command'](a2_0x187dec(0x2e7))['description']('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x997bf0,_0xd8b069)=>{const _0x54a386=a2_0x187dec,_0x25ed8f=new JourneyListCommand(),_0x54b0be=program[_0x54a386(0x3d0)](),_0x3b82a2=await createTDXInstance(_0x54b0be),_0x30c48e=await _0x25ed8f[_0x54a386(0x221)]({'options':{..._0x54b0be,..._0xd8b069},'args':_0x997bf0?[_0x997bf0]:[],'tdx':_0x3b82a2});gracefulExit(_0x30c48e);};journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)]('List\x20journeys\x20in\x20current\x20context')[a2_0x187dec(0x234)](journeyListAction),journeyCmd[a2_0x187dec(0x26a)]('view\x20<name-or-path>')[a2_0x187dec(0x240)]('Show\x20journey\x20details')[a2_0x187dec(0x264)](a2_0x187dec(0x283),a2_0x187dec(0x3fc))[a2_0x187dec(0x264)](a2_0x187dec(0x2fc),a2_0x187dec(0x207))['action'](async(_0x61dfe4,_0x2a5475)=>{const _0x2b5ec2=a2_0x187dec,_0x157559=new JourneyViewCommand(),_0x4d41d4=program[_0x2b5ec2(0x3d0)](),_0x395c46=await createTDXInstance(_0x4d41d4),_0x319a2b=await _0x157559['run']({'options':{..._0x4d41d4,..._0x2a5475},'args':[_0x61dfe4],'tdx':_0x395c46});gracefulExit(_0x319a2b);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x218))[a2_0x187dec(0x240)](a2_0x187dec(0x309))['option']('--stage\x20<name>',a2_0x187dec(0x4a3))[a2_0x187dec(0x264)](a2_0x187dec(0x2fa),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x187dec(0x264)](a2_0x187dec(0x1e8),a2_0x187dec(0x3e1))[a2_0x187dec(0x264)](a2_0x187dec(0x39e),a2_0x187dec(0x3a0))[a2_0x187dec(0x234)](async(_0x2ba7a3,_0x49f0c3)=>{const _0x5afabb=a2_0x187dec,_0x1dbe41=new JourneyStatsCommand(),_0xf5a349=program[_0x5afabb(0x3d0)](),_0xfd7443=await createTDXInstance(_0xf5a349),_0x49b130=await _0x1dbe41[_0x5afabb(0x221)]({'options':{..._0xf5a349,..._0x49f0c3},'args':[_0x2ba7a3],'tdx':_0xfd7443});gracefulExit(_0x49b130);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3c8))[a2_0x187dec(0x240)](a2_0x187dec(0x327))[a2_0x187dec(0x264)]('--type\x20<type>',a2_0x187dec(0x31a))[a2_0x187dec(0x264)](a2_0x187dec(0x2fa),a2_0x187dec(0x2cd))[a2_0x187dec(0x264)](a2_0x187dec(0x1e8),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x187dec(0x264)](a2_0x187dec(0x2b4),a2_0x187dec(0x42b),_0x3423c7=>{const _0x225e0c=a2_0x187dec,_0xaff78f=parseInt(_0x3423c7,0xa);if(isNaN(_0xaff78f))throw new Error(_0x225e0c(0x393)+_0x3423c7+'\x22.\x20Must\x20be\x20a\x20number.');return _0xaff78f;})['action'](async(_0x52af56,_0x471205)=>{const _0x3b5534=a2_0x187dec,_0x279948=new JourneyTrafficCommand(),_0xc7d765=program[_0x3b5534(0x3d0)](),_0x218a32=await createTDXInstance(_0xc7d765),_0x402dc4=await _0x279948[_0x3b5534(0x221)]({'options':{..._0xc7d765,..._0x471205},'args':[_0x52af56],'tdx':_0x218a32});gracefulExit(_0x402dc4);}),journeyCmd[a2_0x187dec(0x26a)]('pause\x20<name-or-path>')[a2_0x187dec(0x240)](a2_0x187dec(0x3ff))['action'](async(_0x5cf30c,_0x301d4c)=>{const _0x2bb5a6=a2_0x187dec,_0x863f47=new JourneyPauseCommand(),_0x4585ab=program[_0x2bb5a6(0x3d0)](),_0xa6a2a1=await createTDXInstance(_0x4585ab),_0x5a6c6d=await _0x863f47[_0x2bb5a6(0x221)]({'options':{..._0x4585ab,..._0x301d4c},'args':[_0x5cf30c],'tdx':_0xa6a2a1});gracefulExit(_0x5a6c6d);}),journeyCmd['command'](a2_0x187dec(0x3c9))[a2_0x187dec(0x240)](a2_0x187dec(0x42f))[a2_0x187dec(0x234)](async(_0x3cdaaa,_0x290373)=>{const _0x31de93=new JourneyResumeCommand(),_0x4a2b0e=program['opts'](),_0x4284fe=await createTDXInstance(_0x4a2b0e),_0x26f3ae=await _0x31de93['run']({'options':{..._0x4a2b0e,..._0x290373},'args':[_0x3cdaaa],'tdx':_0x4284fe});gracefulExit(_0x26f3ae);}),journeyCmd['command'](a2_0x187dec(0x48f))[a2_0x187dec(0x240)](a2_0x187dec(0x440))['option']('--dry-run',a2_0x187dec(0x37b))[a2_0x187dec(0x234)](async(_0x5897b8,_0x3e078f)=>{const _0x59ebe6=a2_0x187dec,_0x37a508=new JourneyPullCommand(),_0x590907=program[_0x59ebe6(0x3d0)](),_0x156f3c=await createTDXInstance(_0x590907),_0x12e037=await _0x37a508[_0x59ebe6(0x221)]({'options':{..._0x590907,..._0x3e078f},'args':_0x5897b8?[_0x5897b8]:[],'tdx':_0x156f3c});gracefulExit(_0x12e037);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x20e))[a2_0x187dec(0x240)](a2_0x187dec(0x2f3))['action'](async(_0x284b50,_0x102592)=>{const _0xba1db6=new JourneyPushCommand(),_0x541afe=program['opts'](),_0x53bdd6=await createTDXInstance(_0x541afe),_0x1671c3=await _0xba1db6['run']({'options':{..._0x541afe,..._0x102592},'args':_0x284b50?[_0x284b50]:[],'tdx':_0x53bdd6});gracefulExit(_0x1671c3);}),journeyCmd['command'](a2_0x187dec(0x220))['description']('Show\x20journey\x20table\x20column-to-step\x20mapping')['action'](async(_0x417661,_0x3b3a82)=>{const _0x2cc8f1=a2_0x187dec,_0x589144=new JourneyColumnsCommand(),_0x2d660c=program['opts'](),_0x38d2ef=await createTDXInstance(_0x2d660c),_0x35ebcb=await _0x589144[_0x2cc8f1(0x221)]({'options':{..._0x2d660c,..._0x3b3a82},'args':[_0x417661],'tdx':_0x38d2ef});gracefulExit(_0x35ebcb);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1a3))[a2_0x187dec(0x240)](a2_0x187dec(0x3b7))[a2_0x187dec(0x234)](async(_0x11137c,_0x540940)=>{const _0x24efcb=a2_0x187dec,_0x2e7250=new JourneyActivationsCommand(),_0x31a507=program[_0x24efcb(0x3d0)](),_0xcf7c68=await createTDXInstance(_0x31a507),_0x11beca=await _0x2e7250[_0x24efcb(0x221)]({'options':{..._0x31a507,..._0x540940},'args':[_0x11137c],'tdx':_0xcf7c68});gracefulExit(_0x11beca);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x48b))[a2_0x187dec(0x240)](a2_0x187dec(0x300))['action'](async(_0x596046,_0x4d437a)=>{const _0x465353=a2_0x187dec,_0x5030dc=new JourneyVersionsCommand(),_0x16843b=program[_0x465353(0x3d0)](),_0xd072fd=await createTDXInstance(_0x16843b),_0x1e5a5b=await _0x5030dc[_0x465353(0x221)]({'options':{..._0x16843b,..._0x4d437a},'args':[_0x596046],'tdx':_0xd072fd});gracefulExit(_0x1e5a5b);});const journeyVersionCmd=journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x44f))[a2_0x187dec(0x240)](a2_0x187dec(0x23a));journeyVersionCmd[a2_0x187dec(0x26a)]('create\x20<name-or-path>')['description']('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x187dec(0x234)](async(_0x599e15,_0x517c82)=>{const _0x5e001d=a2_0x187dec,_0x11be96=new JourneyVersionCreateCommand(),_0x14c86d=program[_0x5e001d(0x3d0)](),_0x92af82=await createTDXInstance(_0x14c86d),_0x1348ad=await _0x11be96[_0x5e001d(0x221)]({'options':{..._0x14c86d,..._0x517c82},'args':[_0x599e15],'tdx':_0x92af82});gracefulExit(_0x1348ad);}),journeyVersionCmd[a2_0x187dec(0x26a)]('view\x20<name-or-path>')[a2_0x187dec(0x240)](a2_0x187dec(0x344))[a2_0x187dec(0x484)](a2_0x187dec(0x49d),a2_0x187dec(0x383))[a2_0x187dec(0x234)](async(_0x267a3e,_0x546e79)=>{const _0x1ce630=a2_0x187dec,_0x4d5f2e=new JourneyVersionViewCommand(),_0x4a4bbf=program[_0x1ce630(0x3d0)](),_0x25eb26=await createTDXInstance(_0x4a4bbf),_0x3259d5=await _0x4d5f2e[_0x1ce630(0x221)]({'options':{..._0x4a4bbf,..._0x546e79},'args':[_0x267a3e],'tdx':_0x25eb26});gracefulExit(_0x3259d5);}),journeyCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x368))[a2_0x187dec(0x240)](a2_0x187dec(0x2df))[a2_0x187dec(0x234)](async(_0x5e7171,_0x136855)=>{const _0x5dc30a=a2_0x187dec,_0x1f74b8=new JourneyValidateCommand(),_0x319440=program[_0x5dc30a(0x3d0)](),_0x9f59a7=await createTDXInstance(_0x319440),_0x1eccaf=await _0x1f74b8['run']({'options':{..._0x319440,..._0x136855},'args':_0x5e7171?[_0x5e7171]:[],'tdx':_0x9f59a7});gracefulExit(_0x1eccaf);}),program[a2_0x187dec(0x26a)](a2_0x187dec(0x1df))[a2_0x187dec(0x240)](a2_0x187dec(0x297))['action'](journeyListAction);const agentSyncCmd=program[a2_0x187dec(0x26a)](a2_0x187dec(0x2f5))[a2_0x187dec(0x240)](a2_0x187dec(0x23d));agentSyncCmd['command'](a2_0x187dec(0x1ba))['description'](a2_0x187dec(0x2a9))[a2_0x187dec(0x264)](a2_0x187dec(0x2be),a2_0x187dec(0x388))[a2_0x187dec(0x264)]('-f,\x20--force',a2_0x187dec(0x284))[a2_0x187dec(0x264)]('-a,\x20--agent\x20<name>',a2_0x187dec(0x21f))[a2_0x187dec(0x234)](async(_0x403d68,_0x4037b6,_0x4f01af)=>{const _0x31a0cd=a2_0x187dec,_0x40f12e=new AgentPullCommand(),_0x864962=program[_0x31a0cd(0x3d0)](),_0x54e462=await createTDXInstance(_0x864962),_0x13c01a=[];if(_0x403d68)_0x13c01a[_0x31a0cd(0x28d)](_0x403d68);if(_0x4037b6)_0x13c01a[_0x31a0cd(0x28d)](_0x4037b6);const _0x1a9ece=await _0x40f12e[_0x31a0cd(0x221)]({'options':{..._0x864962,..._0x4f01af},'args':_0x13c01a,'tdx':_0x54e462});gracefulExit(_0x1a9ece);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2f6))[a2_0x187dec(0x240)](a2_0x187dec(0x2da))['option']('-f,\x20--force','Push\x20without\x20confirmation')['action'](async(_0x5688d8,_0x39d79e)=>{const _0x5f5b48=a2_0x187dec,_0x407894=new AgentPushCommand(),_0x1df9d6=program[_0x5f5b48(0x3d0)](),_0x154c6e=await createTDXInstance(_0x1df9d6),_0x42cae6=await _0x407894[_0x5f5b48(0x221)]({'options':{..._0x1df9d6,..._0x39d79e},'args':_0x5688d8?[_0x5688d8]:[],'tdx':_0x154c6e});gracefulExit(_0x42cae6);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2e6))[a2_0x187dec(0x240)](a2_0x187dec(0x286))[a2_0x187dec(0x264)](a2_0x187dec(0x2ca),a2_0x187dec(0x462))['action'](async(_0x5d1406,_0x38f6cc)=>{const _0x1e743d=a2_0x187dec,_0x464779=new AgentCloneCommand(),_0x36eb48=program[_0x1e743d(0x3d0)](),_0x37574c=await createTDXInstance(_0x36eb48),_0x4c0ab4=await _0x464779[_0x1e743d(0x221)]({'options':{..._0x36eb48,..._0x38f6cc},'args':_0x5d1406?[_0x5d1406]:[],'tdx':_0x37574c});gracefulExit(_0x4c0ab4);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x1fa))[a2_0x187dec(0x240)]('Run\x20tests\x20for\x20an\x20LLM\x20agent')[a2_0x187dec(0x264)](a2_0x187dec(0x2ec),a2_0x187dec(0x1dc))[a2_0x187dec(0x264)]('--tags\x20<tags>',a2_0x187dec(0x290))[a2_0x187dec(0x264)](a2_0x187dec(0x267),a2_0x187dec(0x32b))[a2_0x187dec(0x264)](a2_0x187dec(0x3a4),a2_0x187dec(0x333))[a2_0x187dec(0x264)]('--reeval',a2_0x187dec(0x1b3))['action'](async(_0x1b1552,_0x42af65)=>{const _0x92d266=a2_0x187dec,_0x227f45=new AgentTestCommand(),_0x24486c=program[_0x92d266(0x3d0)](),_0x2ffdb9=await createTDXInstance(_0x24486c),_0x285a85=await _0x227f45[_0x92d266(0x221)]({'options':{..._0x24486c,..._0x42af65},'args':_0x1b1552?[_0x1b1552]:[],'tdx':_0x2ffdb9});gracefulExit(_0x285a85);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x422))[a2_0x187dec(0x240)](a2_0x187dec(0x2b2))['action'](llmAgentListAction),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x42e))[a2_0x187dec(0x240)](a2_0x187dec(0x215))[a2_0x187dec(0x234)](async(_0x26099e,_0x58b3f0)=>{const _0x1be66c=a2_0x187dec,_0x4ebfc7=new LLMAgentShowCommand(),_0x3a4c82=program[_0x1be66c(0x3d0)](),_0x29644a=await createTDXInstance(_0x3a4c82),_0x2827eb=await _0x4ebfc7[_0x1be66c(0x221)]({'options':{..._0x3a4c82,..._0x58b3f0},'args':[_0x26099e],'tdx':_0x29644a});gracefulExit(_0x2827eb);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x224))[a2_0x187dec(0x240)](a2_0x187dec(0x2b1))[a2_0x187dec(0x264)](a2_0x187dec(0x28a),a2_0x187dec(0x37d))['option'](a2_0x187dec(0x3ec),a2_0x187dec(0x266),a2_0x187dec(0x2a3))[a2_0x187dec(0x264)](a2_0x187dec(0x2b5),a2_0x187dec(0x469))['option'](a2_0x187dec(0x1ae),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x187dec(0x264)]('--temperature\x20<n>',a2_0x187dec(0x2f8),a2_0x187dec(0x44e))[a2_0x187dec(0x234)](async(_0x2dac28,_0x2cf0e4)=>{const _0x1f64c6=a2_0x187dec,_0x2bc7d4=new LLMAgentCreateCommand(),_0x4eadba=program[_0x1f64c6(0x3d0)](),_0x1c23bb=await createTDXInstance(_0x4eadba),_0x3045bb=await _0x2bc7d4[_0x1f64c6(0x221)]({'options':{..._0x4eadba,..._0x2cf0e4},'args':[_0x2dac28],'tdx':_0x1c23bb});gracefulExit(_0x3045bb);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x28f))[a2_0x187dec(0x240)](a2_0x187dec(0x413))[a2_0x187dec(0x264)](a2_0x187dec(0x298),a2_0x187dec(0x38f))[a2_0x187dec(0x264)]('--prompt\x20<text>',a2_0x187dec(0x2bb))[a2_0x187dec(0x264)]('--description\x20<text>','Agent\x20description')[a2_0x187dec(0x264)](a2_0x187dec(0x2b5),a2_0x187dec(0x469))[a2_0x187dec(0x234)](async(_0x400b63,_0x7ca3b7)=>{const _0x3a4057=a2_0x187dec,_0x3ccc90=new LLMAgentUpdateCommand(),_0x1b83ea=program[_0x3a4057(0x3d0)](),_0x152717=await createTDXInstance(_0x1b83ea),_0x306390=await _0x3ccc90[_0x3a4057(0x221)]({'options':{..._0x1b83ea,..._0x7ca3b7},'args':[_0x400b63],'tdx':_0x152717});gracefulExit(_0x306390);}),agentSyncCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x291))[a2_0x187dec(0x240)](a2_0x187dec(0x3a8))[a2_0x187dec(0x234)](async(_0x1b7b92,_0x57a874)=>{const _0x1bb34e=a2_0x187dec,_0x51112d=new LLMAgentDeleteCommand(),_0x583737=program[_0x1bb34e(0x3d0)](),_0x1f5f71=await createTDXInstance(_0x583737),_0x36d8e1=await _0x51112d['run']({'options':{..._0x583737,..._0x57a874},'args':[_0x1b7b92],'tdx':_0x1f5f71});gracefulExit(_0x36d8e1);});const workCmd=program['command']('work')[a2_0x187dec(0x240)](a2_0x187dec(0x314));workCmd[a2_0x187dec(0x264)](a2_0x187dec(0x219),a2_0x187dec(0x2f9))[a2_0x187dec(0x264)]('--all',a2_0x187dec(0x279))[a2_0x187dec(0x234)](workSummaryAction),workCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x2a2))['description'](a2_0x187dec(0x404))['option']('--github\x20<owner/repo>',a2_0x187dec(0x401))[a2_0x187dec(0x234)](workInitAction),workCmd['command']('new\x20<title>')[a2_0x187dec(0x240)](a2_0x187dec(0x324))[a2_0x187dec(0x264)](a2_0x187dec(0x44b),a2_0x187dec(0x3fe),a2_0x187dec(0x46c))[a2_0x187dec(0x264)](a2_0x187dec(0x338),'Comma-separated\x20tags')[a2_0x187dec(0x264)](a2_0x187dec(0x3e2),'Priority\x20(critical,\x20high,\x20medium,\x20low)')['option']('--body\x20<body>',a2_0x187dec(0x39a))[a2_0x187dec(0x264)](a2_0x187dec(0x239),a2_0x187dec(0x2d8))[a2_0x187dec(0x264)]('--status\x20<status>','Initial\x20status')[a2_0x187dec(0x264)](a2_0x187dec(0x464),a2_0x187dec(0x407))['action'](workNewAction),workCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x3c0))[a2_0x187dec(0x240)](a2_0x187dec(0x247))[a2_0x187dec(0x234)](workMoveAction),workCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4a8))['description'](a2_0x187dec(0x3f8))[a2_0x187dec(0x264)](a2_0x187dec(0x219),a2_0x187dec(0x2f9))[a2_0x187dec(0x264)]('--all','Include\x20all\x20items\x20(no\x20stale\x20filtering)')[a2_0x187dec(0x234)](workBoardAction),workCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x4b1))[a2_0x187dec(0x240)]('Show\x20document\x20details')[a2_0x187dec(0x234)](workShowAction),workCmd[a2_0x187dec(0x26a)](a2_0x187dec(0x46a))['description'](a2_0x187dec(0x4b7))[a2_0x187dec(0x234)](workLinksAction),workCmd[a2_0x187dec(0x26a)]('open\x20<name>')[a2_0x187dec(0x240)](a2_0x187dec(0x25e))[a2_0x187dec(0x234)](workOpenAction),program['command'](a2_0x187dec(0x4b6),{'hidden':!![]})[a2_0x187dec(0x234)](()=>{const _0x1c6904=a2_0x187dec;function _0x235da9(_0x4c3f9e,_0x31e900){const _0x429696=a2_0x4510,_0x3714c1=[];for(const _0x41bba0 of _0x4c3f9e['commands']){if(_0x41bba0[_0x429696(0x1a5)])continue;const _0x2d1e9d=_0x31e900?_0x31e900+'\x20'+_0x41bba0[_0x429696(0x281)]():_0x41bba0[_0x429696(0x281)](),_0x47b3df=_0x2d1e9d[_0x429696(0x31b)]('\x20')[0x0],_0x5914b1=COMMAND_CATEGORIES[_0x429696(0x1c1)](_0x1649d2=>_0x1649d2[_0x429696(0x421)][_0x429696(0x268)](_0x47b3df)),_0x28741f=_0x5914b1?.[_0x429696(0x281)]??'';if(_0x41bba0[_0x429696(0x421)][_0x429696(0x3fd)]>0x0)_0x3714c1['push'](..._0x235da9(_0x41bba0,_0x2d1e9d));else{const _0x456bcf=(_0x41bba0[_0x429696(0x232)]||[])[_0x429696(0x208)](_0x35753d=>{const _0x129eb8=_0x429696,_0x4d2a8a=_0x35753d[_0x129eb8(0x2c3)]?_0x35753d[_0x129eb8(0x281)]()+_0x129eb8(0x4b5):_0x35753d['name']();return _0x35753d[_0x129eb8(0x1b0)]?'<'+_0x4d2a8a+'>':'['+_0x4d2a8a+']';})[_0x429696(0x1f1)]('\x20'),_0x55a561=_0x41bba0[_0x429696(0x2a1)][_0x429696(0x4a9)](_0x4c1f42=>!_0x4c1f42[_0x429696(0x350)]&&_0x4c1f42['long']!==_0x429696(0x1c0))[_0x429696(0x208)](_0x1746a5=>({'flags':_0x1746a5[_0x429696(0x468)],'description':_0x1746a5[_0x429696(0x240)]}));_0x3714c1[_0x429696(0x28d)]({'name':_0x2d1e9d,'description':_0x41bba0['description'](),'group':_0x28741f,'usage':_0x456bcf,'options':_0x55a561});}}return _0x3714c1;}console[_0x1c6904(0x3d3)](JSON[_0x1c6904(0x285)](_0x235da9(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x423c27=a2_0x187dec,_0x5171e6=!process['argv']['slice'](0x2)[_0x423c27(0x3fd)];showBriefHelp=_0x5171e6,program[_0x423c27(0x40c)](process[_0x423c27(0x424)]);_0x5171e6&&program['outputHelp']();const _0x647c35=process['argv'][0x2]===_0x423c27(0x245);if(process['stderr']['isTTY']&&process['argv']['length']>0x2&&!isDevVersion()&&!_0x647c35){const _0x1f90b4=loadReleaseChannel();checkForUpdate(currentVersion,_0x1f90b4)[_0x423c27(0x490)](_0x4780aa=>{_0x4780aa&&displayUpdateNotification(_0x4780aa);})[_0x423c27(0x408)](()=>{});}}