@treasuredata/tdx 2026.3.31 → 2026.3.33

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 (256) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-login-command.js +1 -1
  15. package/dist/commands/cas-command.js +1 -1
  16. package/dist/commands/cas-segment-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/databases.js +1 -1
  24. package/dist/commands/delivery-command.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-campaign-pull-command.js +1 -1
  27. package/dist/commands/engage-campaign-push-command.js +1 -1
  28. package/dist/commands/engage-campaign-validate-command.js +1 -1
  29. package/dist/commands/engage-command.js +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/parent-segment-command.js +1 -1
  39. package/dist/commands/policy-command.js +1 -1
  40. package/dist/commands/profile-command.js +1 -1
  41. package/dist/commands/profiles-command.js +1 -1
  42. package/dist/commands/query-command.js +1 -1
  43. package/dist/commands/schedule-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.js +1 -1
  48. package/dist/commands/segment-push-command.js +1 -1
  49. package/dist/commands/segment-update-command.js +1 -1
  50. package/dist/commands/segment-use-command.js +1 -1
  51. package/dist/commands/segment-validate-command.js +1 -1
  52. package/dist/commands/segments.js +1 -1
  53. package/dist/commands/show.js +1 -1
  54. package/dist/commands/status-command.js +1 -1
  55. package/dist/commands/tables.js +1 -1
  56. package/dist/commands/unset-command.js +1 -1
  57. package/dist/commands/upgrade-command.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/work-command.d.ts +34 -0
  61. package/dist/commands/work-command.d.ts.map +1 -0
  62. package/dist/commands/work-command.js +1 -0
  63. package/dist/commands/work-command.js.map +1 -0
  64. package/dist/commands/workflow-command.js +1 -1
  65. package/dist/core/auth.js +1 -1
  66. package/dist/core/command-output.js +1 -1
  67. package/dist/core/config.js +1 -1
  68. package/dist/core/connection-cache.js +1 -1
  69. package/dist/core/constants.js +1 -1
  70. package/dist/core/credential-cache.js +1 -1
  71. package/dist/core/global-context.js +1 -1
  72. package/dist/core/keychain.js +1 -1
  73. package/dist/core/oauth-keychain.js +1 -1
  74. package/dist/core/oauth.js +1 -1
  75. package/dist/core/profile.js +1 -1
  76. package/dist/core/project-config.d.ts +2 -0
  77. package/dist/core/project-config.d.ts.map +1 -1
  78. package/dist/core/project-config.js +1 -1
  79. package/dist/core/project-config.js.map +1 -1
  80. package/dist/core/session.js +1 -1
  81. package/dist/core/user-cache.js +1 -1
  82. package/dist/core/version.js +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/mcp/server.js +1 -1
  85. package/dist/mcp/tools/index.js +1 -1
  86. package/dist/mcp/tools/tdx-run.js +1 -1
  87. package/dist/mcp/tools/tdx-search.js +1 -1
  88. package/dist/mcp/utils.js +1 -1
  89. package/dist/proxy/claude-usage-tracker.js +1 -1
  90. package/dist/proxy/passthrough-server.js +1 -1
  91. package/dist/proxy/sse-usage-parser.js +1 -1
  92. package/dist/sdk/agent/agent-config.js +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.js +1 -1
  95. package/dist/sdk/agent/test/evaluator.js +1 -1
  96. package/dist/sdk/agent/test/executor.js +1 -1
  97. package/dist/sdk/agent/test/index.js +1 -1
  98. package/dist/sdk/agent/test/output.js +1 -1
  99. package/dist/sdk/agent/test/parser.js +1 -1
  100. package/dist/sdk/agent/tool-target-registry.js +1 -1
  101. package/dist/sdk/api.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.js +1 -1
  103. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  104. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  105. package/dist/sdk/cas/index.js +1 -1
  106. package/dist/sdk/cas/pull-workflow.js +1 -1
  107. package/dist/sdk/cas/push-workflow.js +1 -1
  108. package/dist/sdk/client/cdp-api-client.js +1 -1
  109. package/dist/sdk/client/delivery-api-client.js +1 -1
  110. package/dist/sdk/client/endpoints.js +1 -1
  111. package/dist/sdk/client/engage-api-client.js +1 -1
  112. package/dist/sdk/client/http-client.js +1 -1
  113. package/dist/sdk/client/llm-api-client.js +1 -1
  114. package/dist/sdk/client/oauth-refresh.js +1 -1
  115. package/dist/sdk/client/rate-limiter.js +1 -1
  116. package/dist/sdk/client/td-api-client.js +1 -1
  117. package/dist/sdk/client/trino-api-client.js +1 -1
  118. package/dist/sdk/client/workflow-client.js +1 -1
  119. package/dist/sdk/connection-validator.js +1 -1
  120. package/dist/sdk/connection.js +1 -1
  121. package/dist/sdk/delivery.js +1 -1
  122. package/dist/sdk/engage/campaign-pull.js +1 -1
  123. package/dist/sdk/engage/campaign-push.js +1 -1
  124. package/dist/sdk/engage/campaign-validator.js +1 -1
  125. package/dist/sdk/engage/campaign-yaml.js +1 -1
  126. package/dist/sdk/engage/template-pull.js +1 -1
  127. package/dist/sdk/engage/template-push.js +1 -1
  128. package/dist/sdk/engage/template-validator.js +1 -1
  129. package/dist/sdk/engage/template-yaml.js +1 -1
  130. package/dist/sdk/engage/types/campaign-def.js +1 -1
  131. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  132. package/dist/sdk/engage/types/template-schema.js +1 -1
  133. package/dist/sdk/engage.js +1 -1
  134. package/dist/sdk/errors.js +1 -1
  135. package/dist/sdk/index.d.ts +1 -0
  136. package/dist/sdk/index.d.ts.map +1 -1
  137. package/dist/sdk/index.js +1 -1
  138. package/dist/sdk/index.js.map +1 -1
  139. package/dist/sdk/io/index.js +1 -1
  140. package/dist/sdk/io/node-filesystem.js +1 -1
  141. package/dist/sdk/job.js +1 -1
  142. package/dist/sdk/journey.js +1 -1
  143. package/dist/sdk/llm/chat-cache.js +1 -1
  144. package/dist/sdk/llm/index.js +1 -1
  145. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  146. package/dist/sdk/llm/model-factors.js +1 -1
  147. package/dist/sdk/personalization.js +1 -1
  148. package/dist/sdk/policy.js +1 -1
  149. package/dist/sdk/query/index.js +1 -1
  150. package/dist/sdk/query/sql-parser.js +1 -1
  151. package/dist/sdk/realtime.js +1 -1
  152. package/dist/sdk/schedule.js +1 -1
  153. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/fields-display.js +1 -1
  155. package/dist/sdk/segment/file-discovery.js +1 -1
  156. package/dist/sdk/segment/journey-utils.js +1 -1
  157. package/dist/sdk/segment/journey-validator.js +1 -1
  158. package/dist/sdk/segment/journey-yaml.js +1 -1
  159. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  160. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  161. package/dist/sdk/segment/pull-workflow.js +1 -1
  162. package/dist/sdk/segment/push-recovery.js +1 -1
  163. package/dist/sdk/segment/push-workflow.js +1 -1
  164. package/dist/sdk/segment/resolution-context.js +1 -1
  165. package/dist/sdk/segment/segment-path-parser.js +1 -1
  166. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  167. package/dist/sdk/segment/segment-validator.js +1 -1
  168. package/dist/sdk/segment/target-resolution.js +1 -1
  169. package/dist/sdk/segment/tdx-config.js +1 -1
  170. package/dist/sdk/segment/types/activation-schema.js +1 -1
  171. package/dist/sdk/segment/types/journey-def.js +1 -1
  172. package/dist/sdk/segment/types/journey-schema.js +1 -1
  173. package/dist/sdk/segment/types/segment-def.js +1 -1
  174. package/dist/sdk/segment/types/segment-schema.js +1 -1
  175. package/dist/sdk/segment/validate-files.js +1 -1
  176. package/dist/sdk/segment/yaml-validator.js +1 -1
  177. package/dist/sdk/segment.js +1 -1
  178. package/dist/sdk/types/index.d.ts +2 -0
  179. package/dist/sdk/types/index.d.ts.map +1 -1
  180. package/dist/sdk/types/index.js +1 -1
  181. package/dist/sdk/types/index.js.map +1 -1
  182. package/dist/sdk/types/progress.js +1 -1
  183. package/dist/sdk/types/workspace.d.ts +169 -0
  184. package/dist/sdk/types/workspace.d.ts.map +1 -0
  185. package/dist/sdk/types/workspace.js +1 -0
  186. package/dist/sdk/types/workspace.js.map +1 -0
  187. package/dist/sdk/user.js +1 -1
  188. package/dist/sdk/util/format-detector.js +1 -1
  189. package/dist/sdk/util/formatters.js +1 -1
  190. package/dist/sdk/util/index.js +1 -1
  191. package/dist/sdk/util/paginate.js +1 -1
  192. package/dist/sdk/util/tree-formatter.js +1 -1
  193. package/dist/sdk/workflow/archive-validation.js +1 -1
  194. package/dist/sdk/workflow/clone-workflow.js +1 -1
  195. package/dist/sdk/workflow/index.js +1 -1
  196. package/dist/sdk/workflow/pull-workflow.js +1 -1
  197. package/dist/sdk/workflow/push-workflow.js +1 -1
  198. package/dist/sdk/workflow/tdx-config.js +1 -1
  199. package/dist/sdk/workflow/workflow-utils.js +1 -1
  200. package/dist/sdk/workspace/frontmatter.d.ts +28 -0
  201. package/dist/sdk/workspace/frontmatter.d.ts.map +1 -0
  202. package/dist/sdk/workspace/frontmatter.js +1 -0
  203. package/dist/sdk/workspace/frontmatter.js.map +1 -0
  204. package/dist/sdk/workspace/git.d.ts +70 -0
  205. package/dist/sdk/workspace/git.d.ts.map +1 -0
  206. package/dist/sdk/workspace/git.js +1 -0
  207. package/dist/sdk/workspace/git.js.map +1 -0
  208. package/dist/sdk/workspace/index.d.ts +166 -0
  209. package/dist/sdk/workspace/index.d.ts.map +1 -0
  210. package/dist/sdk/workspace/index.js +1 -0
  211. package/dist/sdk/workspace/index.js.map +1 -0
  212. package/dist/sdk/workspace/templates.d.ts +17 -0
  213. package/dist/sdk/workspace/templates.d.ts.map +1 -0
  214. package/dist/sdk/workspace/templates.js +1 -0
  215. package/dist/sdk/workspace/templates.js.map +1 -0
  216. package/dist/sdk/workspace/weekly.d.ts +49 -0
  217. package/dist/sdk/workspace/weekly.d.ts.map +1 -0
  218. package/dist/sdk/workspace/weekly.js +1 -0
  219. package/dist/sdk/workspace/weekly.js.map +1 -0
  220. package/dist/sdk/workspace/wikilinks.d.ts +49 -0
  221. package/dist/sdk/workspace/wikilinks.d.ts.map +1 -0
  222. package/dist/sdk/workspace/wikilinks.js +1 -0
  223. package/dist/sdk/workspace/wikilinks.js.map +1 -0
  224. package/dist/test-utils/command-runner.js +1 -1
  225. package/dist/test-utils/factories.js +1 -1
  226. package/dist/test-utils/fixtures.js +1 -1
  227. package/dist/test-utils/http-mock.js +1 -1
  228. package/dist/test-utils/index.js +1 -1
  229. package/dist/utils/async.js +1 -1
  230. package/dist/utils/colors.js +1 -1
  231. package/dist/utils/diff.js +1 -1
  232. package/dist/utils/file-permissions.js +1 -1
  233. package/dist/utils/file-reader.js +1 -1
  234. package/dist/utils/github-releases.js +1 -1
  235. package/dist/utils/global-cache.js +1 -1
  236. package/dist/utils/json-loader.js +1 -1
  237. package/dist/utils/local-cache.js +1 -1
  238. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  239. package/dist/utils/logger/formatters/index.js +1 -1
  240. package/dist/utils/logger/handlers/console-handler.js +1 -1
  241. package/dist/utils/logger/handlers/file-handler.js +1 -1
  242. package/dist/utils/logger/handlers/index.js +1 -1
  243. package/dist/utils/logger/handlers/null-handler.js +1 -1
  244. package/dist/utils/logger/index.js +1 -1
  245. package/dist/utils/logger/logger.js +1 -1
  246. package/dist/utils/logger/types.js +1 -1
  247. package/dist/utils/option-validation.js +1 -1
  248. package/dist/utils/process.js +1 -1
  249. package/dist/utils/prompt.js +1 -1
  250. package/dist/utils/spinner.js +1 -1
  251. package/dist/utils/sse-parser.js +1 -1
  252. package/dist/utils/string-utils.js +1 -1
  253. package/dist/utils/table-ref-parser.js +1 -1
  254. package/dist/utils/tdx-logger.js +1 -1
  255. package/dist/utils/version-check.js +1 -1
  256. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x5be36b=a2_0x9676;(function(_0x17f759,_0x461485){const _0x253cfd=a2_0x9676,_0x5b91bd=_0x17f759();while(!![]){try{const _0x5d94b7=parseInt(_0x253cfd(0x309))/0x1*(parseInt(_0x253cfd(0x9c))/0x2)+parseInt(_0x253cfd(0x1d5))/0x3+-parseInt(_0x253cfd(0xeb))/0x4*(parseInt(_0x253cfd(0x350))/0x5)+-parseInt(_0x253cfd(0x23b))/0x6*(-parseInt(_0x253cfd(0x238))/0x7)+-parseInt(_0x253cfd(0x259))/0x8*(parseInt(_0x253cfd(0x1cf))/0x9)+parseInt(_0x253cfd(0xfa))/0xa+parseInt(_0x253cfd(0x20e))/0xb*(-parseInt(_0x253cfd(0x1d4))/0xc);if(_0x5d94b7===_0x461485)break;else _0x5b91bd['push'](_0x5b91bd['shift']());}catch(_0x4e5040){_0x5b91bd['push'](_0x5b91bd['shift']());}}}(a2_0x3c99,0x249ec));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}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,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-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{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';function a2_0x9676(_0x9b2d6b,_0x5525b6){_0x9b2d6b=_0x9b2d6b-0x8e;const _0x3c9920=a2_0x3c99();let _0x9676d3=_0x3c9920[_0x9b2d6b];return _0x9676d3;}import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x5be36b(0xa7)][a2_0x5be36b(0x1c0)](a2_0x5be36b(0x166))){let versionOutput=a2_0x5be36b(0x229)+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x5be36b(0x1c0)](buildInfo[a2_0x5be36b(0x1a1)])&&(versionOutput+='\x20('+buildInfo[a2_0x5be36b(0x1a1)]+')'),buildInfo[a2_0x5be36b(0x1e3)]&&(versionOutput+=a2_0x5be36b(0x310)+buildInfo[a2_0x5be36b(0x1e3)]),console[a2_0x5be36b(0x339)](versionOutput),process[a2_0x5be36b(0x1f2)](0x0);}const program=new Command();export function mergeCommandOptions(_0x4235c8,_0x1fb3a4){const _0x5c0ae9={..._0x4235c8};for(const [_0x4f56eb,_0x5aebae]of Object['entries'](_0x1fb3a4)){_0x5aebae!==undefined&&(_0x5c0ae9[_0x4f56eb]=_0x5aebae);}return _0x5c0ae9;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x5be36b(0x1a1)])?description+=a2_0x5be36b(0x100)+currentVersion+'\x20('+buildInfo[a2_0x5be36b(0x1a1)]+')':description+=a2_0x5be36b(0x100)+currentVersion;program[a2_0x5be36b(0x1d7)]('tdx')[a2_0x5be36b(0x235)](description),program[a2_0x5be36b(0x9d)]('-C,\x20--directory\x20<path>',a2_0x5be36b(0x272))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x386),a2_0x5be36b(0x116))[a2_0x5be36b(0x9d)]('--site\x20<site>',a2_0x5be36b(0xdd),'us01')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2db),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xb9),a2_0x5be36b(0x20a))['option'](a2_0x5be36b(0x368),a2_0x5be36b(0xf8))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x297),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1c2),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x5be36b(0x2dc),'Save\x20output\x20to\x20file')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x178),a2_0x5be36b(0x22e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x29e),a2_0x5be36b(0xbd),![])[a2_0x5be36b(0x9d)]('--no-color',a2_0x5be36b(0x32a),![])[a2_0x5be36b(0x9d)](a2_0x5be36b(0x9b),a2_0x5be36b(0x37a),![])[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2f8),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option'](a2_0x5be36b(0x152),a2_0x5be36b(0x341))['option'](a2_0x5be36b(0x292),a2_0x5be36b(0x35b),'30')[a2_0x5be36b(0x9d)]('--dry-run','Preview\x20operation\x20without\x20executing',![])[a2_0x5be36b(0x9d)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])['option'](a2_0x5be36b(0x1c7),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x228),a2_0x5be36b(0x31d))['option'](a2_0x5be36b(0x2d3),a2_0x5be36b(0x303)),program[a2_0x5be36b(0x24a)]({'formatHelp':(_0x5eb6a1,_0x15bdd9)=>{const _0x58954e=a2_0x5be36b,_0x186dbb=_0x15bdd9[_0x58954e(0x208)](_0x5eb6a1,_0x15bdd9),_0xa0bda3=0x2,_0x14b65c=0x2;function _0xb9d48e(_0x5bd16c){const _0x31ea26=_0x58954e,_0x93832b=_0x5bd16c;return!!(_0x93832b[_0x31ea26(0x29d)]||_0x93832b['hidden']);}function _0x4f1755(_0x3956dc,_0x2ca9f6){const _0x4a689c=_0x58954e;if(_0x2ca9f6){const _0x2ce0c8=''+_0x3956dc[_0x4a689c(0x157)](_0x186dbb+_0x14b65c)+_0x2ca9f6;return _0x2ce0c8;}return _0x3956dc;}function _0x437d61(_0x541080){const _0x55972d=_0x58954e;return _0x541080[_0x55972d(0x2a0)]('\x0a')['replace'](/^/gm,'\x20'[_0x55972d(0x119)](_0xa0bda3));}const _0x3065ff=[];_0x3065ff[_0x58954e(0x2c4)](_0x58954e(0x37b)+_0x15bdd9['commandUsage'](_0x5eb6a1));const _0x3e50ac=_0x15bdd9[_0x58954e(0x381)](_0x5eb6a1);_0x3e50ac&&(_0x3065ff[_0x58954e(0x2c4)](''),_0x3065ff[_0x58954e(0x2c4)](_0x3e50ac));const _0x57668f=_0x5eb6a1[_0x58954e(0x248)][_0x58954e(0x279)](_0x428fae=>!_0xb9d48e(_0x428fae));if(_0x57668f[_0x58954e(0x203)]>0x0){if(_0x5eb6a1[_0x58954e(0x1d7)]()===_0x58954e(0x103)){const _0x2f87fd=_0x5eb6a1[_0x58954e(0xfb)](),_0x4ebc3c=!_0x2f87fd['noColor']&&process[_0x58954e(0x2a6)][_0x58954e(0x2a2)],_0xba5095=COMMAND_CATEGORIES,_0x3de214=(_0xb2f701,_0x4a2323)=>_0x4ebc3c?_0x4a2323(_0xb2f701):_0xb2f701,_0xade465=new Map();_0x57668f['forEach'](_0x567d86=>{const _0x58eb38=_0x58954e;_0xade465[_0x58eb38(0x379)](_0x567d86[_0x58eb38(0x1d7)](),_0x567d86);}),_0xba5095[_0x58954e(0x32e)](_0x1b3f1b=>{const _0x5a34c3=_0x58954e,_0x1c64c9=_0x1b3f1b[_0x5a34c3(0x248)]['flatMap'](_0x702db=>_0xade465['get'](_0x702db)??[]);if(_0x1c64c9[_0x5a34c3(0x203)]>0x0){_0x3065ff[_0x5a34c3(0x2c4)](''),_0x3065ff[_0x5a34c3(0x2c4)](_0x3de214(_0x1b3f1b[_0x5a34c3(0x1d7)]+':',_0x1b3f1b[_0x5a34c3(0x2e2)]));const _0xc1e83f=_0x1c64c9['map'](_0x2165af=>{const _0x28a5da=_0x15bdd9['subcommandTerm'](_0x2165af),_0x3b94bc=_0x15bdd9['subcommandDescription'](_0x2165af);return _0x4f1755(_0x28a5da,_0x3b94bc);});_0x3065ff[_0x5a34c3(0x2c4)](_0x437d61(_0xc1e83f));}}),_0x3065ff[_0x58954e(0x2c4)](''),_0x3065ff[_0x58954e(0x2c4)](_0x58954e(0x1ef));}else{const _0x285fcb=_0x57668f['map'](_0x50d573=>{const _0x40d3e3=_0x58954e,_0x35ed62=_0x15bdd9['subcommandTerm'](_0x50d573),_0x22fedc=_0x15bdd9[_0x40d3e3(0x2bc)](_0x50d573);return _0x4f1755(_0x35ed62,_0x22fedc);});_0x3065ff['push'](''),_0x3065ff[_0x58954e(0x2c4)]('Commands:'),_0x3065ff[_0x58954e(0x2c4)](_0x437d61(_0x285fcb));}}if(showBriefHelp&&_0x5eb6a1[_0x58954e(0x1d7)]()===_0x58954e(0x103))_0x3065ff[_0x58954e(0x2c4)](''),_0x3065ff[_0x58954e(0x2c4)](_0x58954e(0x25d));else{const _0x1dc0ab=_0x5eb6a1['options'][_0x58954e(0x279)](_0x4f55a5=>!_0xb9d48e(_0x4f55a5));if(_0x1dc0ab['length']>0x0){const _0x2b41a0=_0x1dc0ab[_0x58954e(0x349)](_0x50d922=>{const _0x192468=_0x58954e,_0x4be903=_0x15bdd9[_0x192468(0x174)](_0x50d922),_0xe03dbd=_0x15bdd9[_0x192468(0x1e4)](_0x50d922);return _0x4f1755(_0x4be903,_0xe03dbd);});_0x3065ff[_0x58954e(0x2c4)](''),_0x3065ff[_0x58954e(0x2c4)]('Options:'),_0x3065ff[_0x58954e(0x2c4)](_0x437d61(_0x2b41a0));}}const _0x2e68d5=(_0x5eb6a1[_0x58954e(0x1a5)]||[])['filter'](_0x37589a=>!_0xb9d48e(_0x37589a));if(_0x2e68d5['length']>0x0){const _0x1aca83=_0x2e68d5[_0x58954e(0x349)](_0x2d4cc6=>{const _0x20f4b1=_0x58954e,_0x4493c7=_0x15bdd9[_0x20f4b1(0x99)](_0x2d4cc6),_0x556a98=_0x15bdd9[_0x20f4b1(0xf5)](_0x2d4cc6);return _0x4f1755(_0x4493c7,_0x556a98);});_0x3065ff[_0x58954e(0x2c4)](''),_0x3065ff['push']('Arguments:'),_0x3065ff['push'](_0x437d61(_0x1aca83));}return _0x3065ff[_0x58954e(0x2a0)]('\x0a')+'\x0a';},'subcommandTerm':_0x2c178d=>{const _0x1c9848=a2_0x5be36b,_0x1bc458=(_0x2c178d[_0x1c9848(0x1a5)]||[])[_0x1c9848(0x349)](_0x4a38db=>_0x4a38db[_0x1c9848(0xb5)]?'<'+_0x4a38db[_0x1c9848(0x1d7)]()+'>':'['+_0x4a38db[_0x1c9848(0x1d7)]()+']')[_0x1c9848(0x2a0)]('\x20'),_0x2fd1fb=_0x2c178d[_0x1c9848(0x276)](),_0x5a1ebe=_0x2fd1fb[_0x1c9848(0x203)]>0x0?_0x2c178d[_0x1c9848(0x1d7)]()+',\x20'+_0x2fd1fb[_0x1c9848(0x2a0)](',\x20'):_0x2c178d[_0x1c9848(0x1d7)]();return _0x1bc458?_0x5a1ebe+'\x20'+_0x1bc458:_0x5a1ebe;}}),program['hook'](a2_0x5be36b(0x2a1),_0x542de2=>{const _0x2d93ba=a2_0x5be36b,_0x41bfdd=_0x542de2[_0x2d93ba(0xfb)]();if(_0x41bfdd[_0x2d93ba(0x90)]){const _0x4bc3ff=resolve(_0x41bfdd[_0x2d93ba(0x90)]),_0x44ae53=_0x4bc3ff!==_0x41bfdd[_0x2d93ba(0x90)]?'\x20(resolved\x20to\x20'+_0x4bc3ff+')':'';if(!existsSync(_0x4bc3ff))throw new SDKError(ErrorCode[_0x2d93ba(0x154)],_0x2d93ba(0x1de)+_0x41bfdd[_0x2d93ba(0x90)]+_0x44ae53,undefined,{'helpText':_0x2d93ba(0x18a)});const _0x16ee77=statSync(_0x4bc3ff);if(!_0x16ee77[_0x2d93ba(0x215)]())throw new SDKError(ErrorCode[_0x2d93ba(0x154)],_0x2d93ba(0x26f)+_0x41bfdd[_0x2d93ba(0x90)]+_0x44ae53,undefined,{'helpText':_0x2d93ba(0x2a5)});process[_0x2d93ba(0x170)](_0x4bc3ff);}if(!_0x41bfdd[_0x2d93ba(0x1dd)]){if(_0x41bfdd[_0x2d93ba(0x28d)])_0x41bfdd[_0x2d93ba(0x1dd)]=_0x2d93ba(0x28d);else{if(_0x41bfdd['json'])_0x41bfdd[_0x2d93ba(0x1dd)]='json';else{if(_0x41bfdd[_0x2d93ba(0x10f)])_0x41bfdd[_0x2d93ba(0x1dd)]=_0x2d93ba(0x10f);else _0x41bfdd[_0x2d93ba(0x124)]&&(_0x41bfdd[_0x2d93ba(0x1dd)]=_0x2d93ba(0x124));}}}if(_0x41bfdd[_0x2d93ba(0x97)])_0x41bfdd[_0x2d93ba(0x14a)]=LogLevel[_0x2d93ba(0x308)];else{if(_0x41bfdd[_0x2d93ba(0x1b1)])_0x41bfdd[_0x2d93ba(0x14a)]=LogLevel[_0x2d93ba(0x12e)];else _0x41bfdd[_0x2d93ba(0x14a)]===undefined&&(_0x41bfdd[_0x2d93ba(0x14a)]=LogLevel[_0x2d93ba(0xa8)]);}});async function createTDXInstance(_0x24b8c9){const _0x49726c=a2_0x5be36b,_0x146668=await GlobalContext[_0x49726c(0x13b)](_0x24b8c9);return _0x146668['injectIntoOptions'](_0x24b8c9),TDX[_0x49726c(0x2d9)]({'site':_0x146668['site'],'apiKey':_0x146668[_0x49726c(0x147)],'accessToken':_0x146668['accessToken'],'logLevel':_0x146668['logLevel'],'profile':_0x146668[_0x49726c(0xb1)]});}const databaseCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x220))['alias']('db')['description'](a2_0x5be36b(0x1e8)),databaseListAction=async(_0x171d28,_0x3d4c23)=>{const _0x53810a=a2_0x5be36b,_0x459223=new DatabasesCommand(),_0x2551a4=program[_0x53810a(0xfb)](),_0x2d3b8a=await createTDXInstance(_0x2551a4),_0x22a5e9=await _0x459223['run']({'options':{..._0x2551a4,..._0x3d4c23},'args':_0x171d28?[_0x171d28]:[],'tdx':_0x2d3b8a});gracefulExit(_0x22a5e9);};databaseCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))['description'](a2_0x5be36b(0x37c))[a2_0x5be36b(0x1df)](databaseListAction),program['command'](a2_0x5be36b(0x298),{'hidden':!![]})['description'](a2_0x5be36b(0x187))[a2_0x5be36b(0x1df)](databaseListAction),program[a2_0x5be36b(0x226)](a2_0x5be36b(0xd7))[a2_0x5be36b(0x235)](a2_0x5be36b(0x246))[a2_0x5be36b(0x9d)]('--agent\x20<ref>',a2_0x5be36b(0x1a9))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1ce),a2_0x5be36b(0x342))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x33f),a2_0x5be36b(0x371))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1ba),a2_0x5be36b(0x168))[a2_0x5be36b(0x1df)](async(_0x46adcf,_0xfcae63)=>{const _0x1673a3=a2_0x5be36b,_0x2b0411=program[_0x1673a3(0xfb)](),_0x53ab43=await createTDXInstance(_0x2b0411);if(_0x46adcf[0x0]===_0x1673a3(0x2d9)){const _0x1ebbd2=new ChatCreateCommand();gracefulExit(await _0x1ebbd2[_0x1673a3(0x2d6)]({'options':{..._0x2b0411,..._0xfcae63},'args':_0x46adcf[_0x1673a3(0x29b)](0x1),'tdx':_0x53ab43}));return;}const _0x44efc5=new ChatCommand(),_0x32bbf8=await _0x44efc5[_0x1673a3(0x2d6)]({'options':{..._0x2b0411,..._0xfcae63},'args':_0x46adcf,'tdx':_0x53ab43});gracefulExit(_0x32bbf8);});const apiCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0xcd))['summary'](a2_0x5be36b(0x22d))[a2_0x5be36b(0xfc)]('after',a2_0x5be36b(0x15d))['option'](a2_0x5be36b(0x2e3),a2_0x5be36b(0x245),'GET')['option']('--data\x20<data>',a2_0x5be36b(0x33b))['option'](a2_0x5be36b(0x162),a2_0x5be36b(0x205))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x94),a2_0x5be36b(0x348),(_0x3cc87e,_0x5d30f8)=>{return _0x5d30f8?[..._0x5d30f8,_0x3cc87e]:[_0x3cc87e];})[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2e1),a2_0x5be36b(0x2e6),'td')[a2_0x5be36b(0x1df)](async(_0x322ee1,_0x26fb44)=>{const _0x5bfd1e=a2_0x5be36b;if(!_0x322ee1){apiCmd[_0x5bfd1e(0xa6)]();return;}const _0x3f1d4c=new ApiCommand(),_0x21e2e4=program[_0x5bfd1e(0xfb)](),_0x3c4a54=await createTDXInstance(_0x21e2e4),_0x3ea70a=await _0x3f1d4c[_0x5bfd1e(0x2d6)]({'options':{..._0x21e2e4,..._0x26fb44},'args':[_0x322ee1],'tdx':_0x3c4a54});gracefulExit(_0x3ea70a);});program[a2_0x5be36b(0x226)](a2_0x5be36b(0x2bd))[a2_0x5be36b(0x235)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x384))['action'](async _0x1046bc=>{const _0x129bcc=a2_0x5be36b,_0xa2a0d0=new MCPCommand(),_0x1fcc04=program['opts'](),_0x52b8cc=await createTDXInstance(_0x1fcc04),_0x4adaa5=await _0xa2a0d0[_0x129bcc(0x2d6)]({'options':{..._0x1fcc04,..._0x1046bc},'args':[],'tdx':_0x52b8cc});gracefulExit(_0x4adaa5);});const tableCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x28d))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1bb)),tableListAction=async(_0x2565be,_0x1cd439)=>{const _0x279414=a2_0x5be36b,_0x1fc4c8=new TablesCommand(),_0x58fbcd=program[_0x279414(0xfb)](),_0x4dc0de=await createTDXInstance(_0x58fbcd);_0x1cd439['in']&&(_0x1cd439[_0x279414(0x220)]=_0x1cd439['in']);const _0x1d805f=await _0x1fc4c8[_0x279414(0x2d6)]({'options':{..._0x58fbcd,..._0x1cd439},'args':_0x2565be?[_0x2565be]:[],'tdx':_0x4dc0de});gracefulExit(_0x1d805f);};tableCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x131))['option']('-d,\x20--database\x20<database>',a2_0x5be36b(0x1b2))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xf9),a2_0x5be36b(0xac))[a2_0x5be36b(0x1df)](tableListAction),program[a2_0x5be36b(0x226)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x374))['option'](a2_0x5be36b(0x101),a2_0x5be36b(0x1b2))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xf9),a2_0x5be36b(0xac))[a2_0x5be36b(0x1df)](tableListAction),program[a2_0x5be36b(0x226)]('show\x20[table]')['description'](a2_0x5be36b(0x25e))[a2_0x5be36b(0x9d)]('-d,\x20--database\x20<database>',a2_0x5be36b(0x255))[a2_0x5be36b(0x9d)]('--in\x20<database>',a2_0x5be36b(0xac))[a2_0x5be36b(0x1df)](async(_0x522495,_0x54aa9d)=>{const _0x127a86=a2_0x5be36b,_0x1f5f52=new ShowCommand(),_0x3a81b2=program[_0x127a86(0xfb)](),_0x1e2180=await createTDXInstance(_0x3a81b2);_0x54aa9d['in']&&(_0x54aa9d[_0x127a86(0x220)]=_0x54aa9d['in']);const _0x435f12=await _0x1f5f52[_0x127a86(0x2d6)]({'options':{..._0x3a81b2,..._0x54aa9d},'args':_0x522495?[_0x522495]:[],'tdx':_0x1e2180});gracefulExit(_0x435f12);}),program['command'](a2_0x5be36b(0x2f0))[a2_0x5be36b(0x1db)](a2_0x5be36b(0x1e6))[a2_0x5be36b(0x235)]('Describe\x20table\x20schema')[a2_0x5be36b(0x9d)]('-d,\x20--database\x20<database>',a2_0x5be36b(0x255))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xf9),a2_0x5be36b(0xac))[a2_0x5be36b(0x1df)](async(_0x276578,_0x5446b3)=>{const _0x34a246=a2_0x5be36b,_0x1458b9=new DescribeCommand(),_0x2843f8=program[_0x34a246(0xfb)](),_0x525e03=await createTDXInstance(_0x2843f8);_0x5446b3['in']&&(_0x5446b3[_0x34a246(0x220)]=_0x5446b3['in']);const _0x5a88c1=await _0x1458b9['run']({'options':{..._0x2843f8,..._0x5446b3},'args':_0x276578?[_0x276578]:[],'tdx':_0x525e03});gracefulExit(_0x5a88c1);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x200))[a2_0x5be36b(0x235)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x101),a2_0x5be36b(0x269))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xf9),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x5be36b(0x336),a2_0x5be36b(0x388))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x162),a2_0x5be36b(0x30e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x32c),a2_0x5be36b(0x335))[a2_0x5be36b(0x1df)](async(_0x318c61,_0x57ecaa)=>{const _0x154a58=a2_0x5be36b,_0x41fef0=new QueryCommand(),_0xeaeb1c=program[_0x154a58(0xfb)](),_0xd26a77=await createTDXInstance(_0xeaeb1c);_0x57ecaa['in']&&(_0x57ecaa[_0x154a58(0x220)]=_0x57ecaa['in']);const _0x57987c=await _0x41fef0[_0x154a58(0x2d6)]({'options':mergeCommandOptions(_0xeaeb1c,_0x57ecaa),'args':_0x318c61?[_0x318c61]:[],'tdx':_0xd26a77});gracefulExit(_0x57987c);});const segmentCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0xc5))[a2_0x5be36b(0x1db)]('sg')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1af)),segmentListAction=async(_0x442ce6,_0x34dc97)=>{const _0x296d09=a2_0x5be36b,_0x23d898=new SegmentsCommand(),_0x56402d=program[_0x296d09(0xfb)](),_0x393e42=await createTDXInstance(_0x56402d),_0x45cc99=await _0x23d898['run']({'options':{..._0x56402d,..._0x34dc97},'args':_0x442ce6?[_0x442ce6]:[],'tdx':_0x393e42});gracefulExit(_0x45cc99);};segmentCmd['command']('list\x20[path]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ff))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1e5),a2_0x5be36b(0x1d2))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x142),a2_0x5be36b(0x315),'10')[a2_0x5be36b(0x1df)](segmentListAction),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x1bf),{'hidden':!![]})[a2_0x5be36b(0x235)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1e5),a2_0x5be36b(0x1d2))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x142),a2_0x5be36b(0x315),'10')[a2_0x5be36b(0x1df)](segmentListAction),segmentCmd[a2_0x5be36b(0x226)]('use\x20<path>',{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x22a))[a2_0x5be36b(0x1df)](async(_0x2257b0,_0x52fb66)=>{const _0x5ca668=a2_0x5be36b,_0x2cb792=new SegmentUseCommand(),_0x24314a=program['opts'](),_0x1988ee=await createTDXInstance(_0x24314a),_0x395f44=await _0x2cb792[_0x5ca668(0x2d6)]({'options':{..._0x24314a,..._0x52fb66},'args':[_0x2257b0],'tdx':_0x1988ee});gracefulExit(_0x395f44);});const segmentViewAction=async(_0x47945b,_0x3617f3)=>{const _0x42d157=a2_0x5be36b,_0x3002f4=new SegmentViewCommand(),_0x43a777=program['opts'](),_0x4385a6=await createTDXInstance(_0x43a777),_0xc3271e=await _0x3002f4[_0x42d157(0x2d6)]({'options':{..._0x43a777,..._0x3617f3},'args':_0x47945b?[_0x47945b]:[],'tdx':_0x4385a6});gracefulExit(_0xc3271e);};segmentCmd['command']('view\x20[segment_name]')['description'](a2_0x5be36b(0x351))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1fe),a2_0x5be36b(0x345))['action'](segmentViewAction),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x287),{'hidden':!![]})[a2_0x5be36b(0x1db)](a2_0x5be36b(0x28c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1fe),a2_0x5be36b(0x345))[a2_0x5be36b(0x235)](a2_0x5be36b(0x34f))[a2_0x5be36b(0x1df)](segmentViewAction),segmentCmd['command'](a2_0x5be36b(0xc8))[a2_0x5be36b(0x235)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x5be36b(0x1df)](async(_0xdebf77,_0x24b493)=>{const _0x149015=a2_0x5be36b,_0x236ed7=new SegmentDescCommand(),_0x250c90=program[_0x149015(0xfb)](),_0x469c60=await createTDXInstance(_0x250c90),_0x56036a=await _0x236ed7['run']({'options':{..._0x250c90,..._0x24b493},'args':_0xdebf77?[_0xdebf77]:[],'tdx':_0x469c60});gracefulExit(_0x56036a);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x9f))[a2_0x5be36b(0x235)](a2_0x5be36b(0x8e))[a2_0x5be36b(0x1df)](async(_0x505950,_0x4309e7)=>{const _0x2622dd=a2_0x5be36b,_0x4709c1=new SegmentShowCommand(),_0x326d04=program[_0x2622dd(0xfb)](),_0x42ad06=await createTDXInstance(_0x326d04),_0x1ea898=await _0x4709c1['run']({'options':{..._0x326d04,..._0x4309e7},'args':_0x505950?[_0x505950]:[],'tdx':_0x42ad06});gracefulExit(_0x1ea898);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x5be36b(0x235)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x5be36b(0x1df)](async(_0x4f7b4e,_0xaf96bd)=>{const _0x320d12=a2_0x5be36b,_0x49e381=new SegmentFolderListCommand(),_0x242e58=program[_0x320d12(0xfb)](),_0x14e387=await createTDXInstance(_0x242e58),_0x46eb0b=await _0x49e381[_0x320d12(0x2d6)]({'options':{..._0x242e58,..._0xaf96bd},'args':[_0x4f7b4e],'tdx':_0x14e387});gracefulExit(_0x46eb0b);});const folderCmd=segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x358),{'hidden':!![]})[a2_0x5be36b(0x235)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd['command'](a2_0x5be36b(0x167))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x5be36b(0x1df)](async(_0x8ebbb9,_0x13d5e3)=>{const _0x3d405b=a2_0x5be36b,_0x3fca3=new SegmentFolderShowCommand(),_0x565d29=program['opts'](),_0x30490e=await createTDXInstance(_0x565d29),_0x2ef3fc=await _0x3fca3[_0x3d405b(0x2d6)]({'options':{..._0x565d29,..._0x13d5e3},'args':[_0x8ebbb9],'tdx':_0x30490e});gracefulExit(_0x2ef3fc);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x331))['description'](a2_0x5be36b(0x224))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x360),a2_0x5be36b(0x19f))[a2_0x5be36b(0x1df)](async(_0x4b565c,_0x426e4b)=>{const _0x3c1df9=a2_0x5be36b,_0x440874=new SegmentSQLCommand(),_0x48546d=program[_0x3c1df9(0xfb)](),_0x4a8c90=await createTDXInstance(_0x48546d),_0x130ae1=await _0x440874[_0x3c1df9(0x2d6)]({'options':{..._0x48546d,..._0x426e4b},'args':_0x4b565c?[_0x4b565c]:[],'tdx':_0x4a8c90});gracefulExit(_0x130ae1);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x21f))[a2_0x5be36b(0x235)](a2_0x5be36b(0xa1))[a2_0x5be36b(0x1df)](async(_0x21abc0,_0x55b8a3)=>{const _0x4c3a66=a2_0x5be36b,_0x427bba=new SegmentFieldsCommand(),_0x18f4cc=program['opts'](),_0xe083fb=await createTDXInstance(_0x18f4cc),_0x146103=await _0x427bba[_0x4c3a66(0x2d6)]({'options':{..._0x18f4cc,..._0x55b8a3},'args':_0x21abc0?[_0x21abc0]:[],'tdx':_0xe083fb});gracefulExit(_0x146103);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x319))['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x5be36b(0x9d)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x5be36b(0x1df)](async(_0x1f4c62,_0x4cd929)=>{const _0x4e9226=a2_0x5be36b,_0x4a568b=new SegmentPullCommand(),_0xb6377=program[_0x4e9226(0xfb)](),_0x18a7b1=await createTDXInstance(_0xb6377),_0x1b5d6e=await _0x4a568b[_0x4e9226(0x2d6)]({'options':{..._0xb6377,..._0x4cd929},'args':_0x1f4c62?[_0x1f4c62]:[],'tdx':_0x18a7b1});gracefulExit(_0x1b5d6e);}),segmentCmd['command']('push\x20[parent_or_file]')[a2_0x5be36b(0x235)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),a2_0x5be36b(0xda))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36d),a2_0x5be36b(0x191))['action'](async(_0x2ee43a,_0x54722f)=>{const _0x55c32a=a2_0x5be36b,_0x4c1548=new SegmentPushCommand(),_0x1a5448=program[_0x55c32a(0xfb)](),_0x5f1eae=await createTDXInstance(_0x1a5448),_0x4d4070=await _0x4c1548[_0x55c32a(0x2d6)]({'options':{..._0x1a5448,..._0x54722f},'args':_0x2ee43a?[_0x2ee43a]:[],'tdx':_0x5f1eae});gracefulExit(_0x4d4070);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x209))[a2_0x5be36b(0x235)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x5be36b(0x1df)](async(_0x593c3d,_0x358a1d)=>{const _0x169360=a2_0x5be36b,_0xee79e5=new SegmentValidateCommand(),_0x2bb2c3=program[_0x169360(0xfb)](),_0x2cbb24=await createTDXInstance(_0x2bb2c3),_0xb4b743=await _0xee79e5[_0x169360(0x2d6)]({'options':{..._0x2bb2c3,..._0x358a1d},'args':_0x593c3d?[_0x593c3d]:[],'tdx':_0x2cbb24});gracefulExit(_0xb4b743);}),segmentCmd['command'](a2_0x5be36b(0x314),{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x91))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x296),a2_0x5be36b(0x148))['option'](a2_0x5be36b(0x2ee),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1f7),a2_0x5be36b(0x18c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x105),'Folder\x20name\x20for\x20organization')[a2_0x5be36b(0x9d)]('--kind\x20<type>',a2_0x5be36b(0xfe))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1e0),a2_0x5be36b(0x128))[a2_0x5be36b(0x9d)]('--no-count-population',a2_0x5be36b(0x311))[a2_0x5be36b(0x1df)](async(_0x2c8ec5,_0xa0aae0)=>{const _0x3ce720=a2_0x5be36b,_0x141732=new SegmentCreateCommand(),_0x1e5d6e=program[_0x3ce720(0xfb)](),_0x497dca=await createTDXInstance(_0x1e5d6e),_0x2bba8e=await _0x141732[_0x3ce720(0x2d6)]({'options':{..._0x1e5d6e,..._0xa0aae0},'args':[_0x2c8ec5],'tdx':_0x497dca});gracefulExit(_0x2bba8e);}),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xc3),{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x127))['option']('--name\x20<new_name>',a2_0x5be36b(0xcc))['option'](a2_0x5be36b(0x296),a2_0x5be36b(0x25c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ee),a2_0x5be36b(0x161))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1f7),a2_0x5be36b(0x304))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x105),a2_0x5be36b(0x1e2))[a2_0x5be36b(0x9d)]('--kind\x20<type>',a2_0x5be36b(0xfe))[a2_0x5be36b(0x1df)](async(_0x3a5200,_0x4ad471)=>{const _0x3907e2=a2_0x5be36b,_0x3d2bf3=new SegmentUpdateCommand(),_0x367c5d=program[_0x3907e2(0xfb)](),_0x9b4dad=await createTDXInstance(_0x367c5d),_0x286bd3=await _0x3d2bf3[_0x3907e2(0x2d6)]({'options':{..._0x367c5d,..._0x4ad471},'args':[_0x3a5200],'tdx':_0x9b4dad});gracefulExit(_0x286bd3);});const parentCmd=segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xcb),{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x9e)),parentListAction=async(_0x542254,_0x2dfe06)=>{const _0x3ea110=a2_0x5be36b,_0x218268=new ParentSegmentListCommand(),_0x1c9c77=program[_0x3ea110(0xfb)](),_0x509161=await createTDXInstance(_0x1c9c77),_0x22d73c=await _0x218268[_0x3ea110(0x2d6)]({'options':{..._0x1c9c77,..._0x2dfe06},'args':_0x542254?[_0x542254]:[],'tdx':_0x509161});gracefulExit(_0x22d73c);};parentCmd[a2_0x5be36b(0x226)]('list\x20[pattern]')[a2_0x5be36b(0x235)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x5be36b(0x1df)](parentListAction),segmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xaa),{'hidden':!![]})['description'](a2_0x5be36b(0x30d))[a2_0x5be36b(0x1df)](parentListAction),parentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x332))[a2_0x5be36b(0x235)](a2_0x5be36b(0x35d))['option'](a2_0x5be36b(0x2c8),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5be36b(0x1df)](async(_0x2e8f2a,_0x2d2522)=>{const _0x1c05ad=a2_0x5be36b,_0xb5d575=new ParentSegmentPullCommand(),_0x3d12c7=program[_0x1c05ad(0xfb)](),_0x1cf871=await createTDXInstance(_0x3d12c7),_0x152d4d=await _0xb5d575[_0x1c05ad(0x2d6)]({'options':{..._0x3d12c7,..._0x2d2522},'args':_0x2e8f2a?[_0x2e8f2a]:[],'tdx':_0x1cf871});gracefulExit(_0x152d4d);}),parentCmd[a2_0x5be36b(0x226)]('push\x20[file]')[a2_0x5be36b(0x235)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['action'](async(_0x2ad9ba,_0xbb66ce)=>{const _0x1f8b67=a2_0x5be36b,_0x4ef2ed=new ParentSegmentPushCommand(),_0x5373cd=program[_0x1f8b67(0xfb)](),_0x52c49e=await createTDXInstance(_0x5373cd),_0x41f5b8=await _0x4ef2ed[_0x1f8b67(0x2d6)]({'options':{..._0x5373cd,..._0xbb66ce},'args':_0x2ad9ba?[_0x2ad9ba]:[],'tdx':_0x52c49e});gracefulExit(_0x41f5b8);}),parentCmd[a2_0x5be36b(0x226)]('validate\x20[file]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x29c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x326),'Show\x20only\x20master\x20table\x20validation')[a2_0x5be36b(0x9d)]('--attribute\x20[name]',a2_0x5be36b(0x172))[a2_0x5be36b(0x9d)]('--behavior\x20[name]',a2_0x5be36b(0xff))['option'](a2_0x5be36b(0xd6),a2_0x5be36b(0x16d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x190),a2_0x5be36b(0xcf),'-1d')[a2_0x5be36b(0x1df)](async(_0x258988,_0x2f6df2)=>{const _0x32722f=a2_0x5be36b,_0x2b8905=new ParentSegmentValidateCommand(),_0x4d4d98=program[_0x32722f(0xfb)](),_0x5f318a=await createTDXInstance(_0x4d4d98),_0x577f55=await _0x2b8905['run']({'options':{..._0x4d4d98,..._0x2f6df2},'args':_0x258988?[_0x258988]:[],'tdx':_0x5f318a});gracefulExit(_0x577f55);}),parentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1cd))[a2_0x5be36b(0x235)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x326),a2_0x5be36b(0x321))['option'](a2_0x5be36b(0xd0),a2_0x5be36b(0x2ba))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x202),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xd6),a2_0x5be36b(0x115))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x190),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x5be36b(0x295))[a2_0x5be36b(0x1df)](async(_0x2e94e4,_0x64bc3f)=>{const _0x2a9f63=a2_0x5be36b,_0x241f0b=new ParentSegmentPreviewCommand(),_0x26cd9a=program[_0x2a9f63(0xfb)](),_0x26dd1e=await createTDXInstance(_0x26cd9a),_0x5ac149=await _0x241f0b[_0x2a9f63(0x2d6)]({'options':{..._0x26cd9a,..._0x64bc3f},'args':_0x2e94e4?[_0x2e94e4]:[],'tdx':_0x26dd1e});gracefulExit(_0x5ac149);}),parentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x37d))[a2_0x5be36b(0x235)](a2_0x5be36b(0x110))[a2_0x5be36b(0x1df)](async(_0x2a032f,_0x25480a)=>{const _0x41251c=a2_0x5be36b,_0x524ed3=new ParentSegmentRunCommand(),_0x573f04=program['opts'](),_0x31e994=await createTDXInstance(_0x573f04),_0x10d20=await _0x524ed3[_0x41251c(0x2d6)]({'options':{..._0x573f04,..._0x25480a},'args':_0x2a032f?[_0x2a032f]:[],'tdx':_0x31e994});gracefulExit(_0x10d20);});const parentSegmentCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x37e))[a2_0x5be36b(0x1db)]('ps')[a2_0x5be36b(0x235)](a2_0x5be36b(0x33a));parentSegmentCmd['command'](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0xb7))[a2_0x5be36b(0x1df)](parentListAction),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x332))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2c8),a2_0x5be36b(0x14c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xd1),a2_0x5be36b(0xad))[a2_0x5be36b(0x1df)](async(_0x21f4e4,_0x273d7f)=>{const _0x24e3f5=a2_0x5be36b,_0x3b840d=new ParentSegmentPullCommand(),_0x158459=program[_0x24e3f5(0xfb)](),_0x29acc4=await createTDXInstance(_0x158459),_0x287304=await _0x3b840d['run']({'options':{..._0x158459,..._0x273d7f},'args':_0x21f4e4?[_0x21f4e4]:[],'tdx':_0x29acc4});gracefulExit(_0x287304);}),parentSegmentCmd['command'](a2_0x5be36b(0x328))[a2_0x5be36b(0x235)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x42af1b,_0x3b4af5)=>{const _0x74f289=a2_0x5be36b,_0x254e1c=new ParentSegmentPushCommand(),_0xabb739=program['opts'](),_0x5c0be5=await createTDXInstance(_0xabb739),_0x5bf44b=await _0x254e1c[_0x74f289(0x2d6)]({'options':{..._0xabb739,..._0x3b4af5},'args':_0x42af1b?[_0x42af1b]:[],'tdx':_0x5c0be5});gracefulExit(_0x5bf44b);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xa4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x29c))['option'](a2_0x5be36b(0x326),'Show\x20only\x20master\x20table\x20validation')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xd0),a2_0x5be36b(0x172))['option'](a2_0x5be36b(0x202),a2_0x5be36b(0xff))[a2_0x5be36b(0x9d)]('--enriched',a2_0x5be36b(0x16d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x190),a2_0x5be36b(0xcf),a2_0x5be36b(0x295))[a2_0x5be36b(0x1df)](async(_0x2f0987,_0x1ef917)=>{const _0x483085=a2_0x5be36b,_0x2d795f=new ParentSegmentValidateCommand(),_0x1dc38d=program[_0x483085(0xfb)](),_0x286391=await createTDXInstance(_0x1dc38d),_0x10e327=await _0x2d795f[_0x483085(0x2d6)]({'options':{..._0x1dc38d,..._0x1ef917},'args':_0x2f0987?[_0x2f0987]:[],'tdx':_0x286391});gracefulExit(_0x10e327);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x256))[a2_0x5be36b(0x235)](a2_0x5be36b(0x23e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x326),a2_0x5be36b(0x321))['option'](a2_0x5be36b(0xd0),a2_0x5be36b(0x2ba))[a2_0x5be36b(0x9d)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xd6),a2_0x5be36b(0x115))[a2_0x5be36b(0x9d)]('--interval\x20<range>',a2_0x5be36b(0xcf),'-1d')[a2_0x5be36b(0x1df)](async(_0x1ff8cf,_0x523dd2)=>{const _0x134020=a2_0x5be36b,_0x3b7441=new ParentSegmentPreviewCommand(),_0x241eaf=program[_0x134020(0xfb)](),_0x4b0823=await createTDXInstance(_0x241eaf),_0x2717e4=await _0x3b7441['run']({'options':{..._0x241eaf,..._0x523dd2},'args':_0x1ff8cf?[_0x1ff8cf]:[],'tdx':_0x4b0823});gracefulExit(_0x2717e4);}),parentSegmentCmd[a2_0x5be36b(0x226)]('run\x20[name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x110))[a2_0x5be36b(0x1df)](async(_0x5727e0,_0x52c4e3)=>{const _0x2f469a=a2_0x5be36b,_0x423d40=new ParentSegmentRunCommand(),_0x3b260d=program['opts'](),_0x476e31=await createTDXInstance(_0x3b260d),_0x260a43=await _0x423d40[_0x2f469a(0x2d6)]({'options':{..._0x3b260d,..._0x52c4e3},'args':_0x5727e0?[_0x5727e0]:[],'tdx':_0x476e31});gracefulExit(_0x260a43);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x18f))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2b9))[a2_0x5be36b(0x9d)]('--json',a2_0x5be36b(0x356))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x5be36b(0x1df)](async(_0x2cb2e7,_0x41db59)=>{const _0x44c3b3=a2_0x5be36b,_0x350ca3=new ParentSegmentFieldsCommand(),_0x346306=program[_0x44c3b3(0xfb)](),_0x42aa78=await createTDXInstance(_0x346306),_0x4b2426=await _0x350ca3[_0x44c3b3(0x2d6)]({'options':{..._0x346306,..._0x41db59},'args':_0x2cb2e7?[_0x2cb2e7]:[],'tdx':_0x42aa78});gracefulExit(_0x4b2426);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x201))[a2_0x5be36b(0x235)](a2_0x5be36b(0x23c))['option']('-w,\x20--web',a2_0x5be36b(0x36a))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x368),a2_0x5be36b(0x356))['option']('--jsonl',a2_0x5be36b(0x312))[a2_0x5be36b(0x1df)](async(_0x5de009,_0x4ef4c3)=>{const _0x3dd0df=a2_0x5be36b,_0x14c0d6=new ParentSegmentViewCommand(),_0x4f6b2d=program[_0x3dd0df(0xfb)](),_0x58ba33=await createTDXInstance(_0x4f6b2d),_0x187490=await _0x14c0d6[_0x3dd0df(0x2d6)]({'options':{..._0x4f6b2d,..._0x4ef4c3},'args':_0x5de009?[_0x5de009]:[],'tdx':_0x58ba33});gracefulExit(_0x187490);}),parentSegmentCmd['command'](a2_0x5be36b(0x2fd))['description'](a2_0x5be36b(0x2d8))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2c8),a2_0x5be36b(0x14c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x368),a2_0x5be36b(0x356))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x297),a2_0x5be36b(0x312))[a2_0x5be36b(0x1df)](async(_0x89e24f,_0x3afb78)=>{const _0x48d75c=a2_0x5be36b,_0x3fb629=new ParentSegmentDescCommand(),_0x395b81=program['opts'](),_0x795425=await createTDXInstance(_0x395b81),_0x248ecd=await _0x3fb629[_0x48d75c(0x2d6)]({'options':{..._0x395b81,..._0x3afb78},'args':_0x89e24f?[_0x89e24f]:[],'tdx':_0x795425});gracefulExit(_0x248ecd);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x225))[a2_0x5be36b(0x235)](a2_0x5be36b(0x353))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x368),a2_0x5be36b(0x356))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x297),'Output\x20as\x20JSON\x20Lines')[a2_0x5be36b(0x1df)](async(_0x2cee0a,_0xee4b6d)=>{const _0xd36198=a2_0x5be36b,_0x4653ee=new ParentSegmentSQLCommand(),_0x53241e=program[_0xd36198(0xfb)](),_0x10b83d=await createTDXInstance(_0x53241e),_0xf916f0=await _0x4653ee[_0xd36198(0x2d6)]({'options':{..._0x53241e,..._0xee4b6d},'args':_0x2cee0a?[_0x2cee0a]:[],'tdx':_0x10b83d});gracefulExit(_0xf916f0);}),parentSegmentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x32b))[a2_0x5be36b(0x235)](a2_0x5be36b(0x227))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36b),a2_0x5be36b(0x134))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x368),a2_0x5be36b(0x356))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x297),a2_0x5be36b(0x312))['action'](async(_0x5b6610,_0x133872)=>{const _0x329199=a2_0x5be36b,_0x545f99=new ParentSegmentShowCommand(),_0x31b38c=program[_0x329199(0xfb)](),_0x1cee4f=await createTDXInstance(_0x31b38c),_0x3e3bef=await _0x545f99[_0x329199(0x2d6)]({'options':{..._0x31b38c,..._0x133872},'args':_0x5b6610?[_0x5b6610]:[],'tdx':_0x1cee4f});gracefulExit(_0x3e3bef);}),parentSegmentCmd['command'](a2_0x5be36b(0x1b0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x376))[a2_0x5be36b(0x1df)](async(_0x4907b4,_0x4bc8d7)=>{const _0x46d352=a2_0x5be36b,_0x421852=new UseCommand(),_0x27af94=program[_0x46d352(0xfb)](),_0x2eb433=_0x4907b4?[_0x46d352(0x291),_0x4907b4]:[],_0x42fb3d=await _0x421852[_0x46d352(0x2d6)]({'options':{..._0x27af94,..._0x4bc8d7},'args':_0x2eb433,'tdx':null});gracefulExit(_0x42fb3d);});const psRtCmd=parentSegmentCmd['command']('rt')['description']('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x5be36b(0x1df)](async(_0x354e37,_0x2c5aa1)=>{const _0x1bcb92=a2_0x5be36b,_0x2eca91=new PSRtListCommand(),_0x31fdf3=program['opts'](),_0x411a15=await createTDXInstance(_0x31fdf3),_0x38bbdc=await _0x2eca91[_0x1bcb92(0x2d6)]({'options':{..._0x31fdf3,..._0x2c5aa1},'args':_0x354e37?[_0x354e37]:[],'tdx':_0x411a15});gracefulExit(_0x38bbdc);}),psRtCmd['command'](a2_0x5be36b(0xa4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2b8))[a2_0x5be36b(0x1df)](async(_0x122817,_0x497797)=>{const _0x2fda89=a2_0x5be36b,_0xf90fb5=new PSRtValidateCommand(),_0x3932bb=program[_0x2fda89(0xfb)](),_0x4550c1=await createTDXInstance(_0x3932bb),_0x5e6c24=await _0xf90fb5[_0x2fda89(0x2d6)]({'options':{..._0x3932bb,..._0x497797},'args':_0x122817?[_0x122817]:[],'tdx':_0x4550c1});gracefulExit(_0x5e6c24);}),psRtCmd['command']('configuration_versions\x20[name]')['description'](a2_0x5be36b(0x2b2))[a2_0x5be36b(0x1df)](async(_0x5cff33,_0x2d8769)=>{const _0x3bd4d8=a2_0x5be36b,_0x438540=new PSRtConfigVersionCommand(),_0x12e408=program[_0x3bd4d8(0xfb)](),_0x7b4319=await createTDXInstance(_0x12e408),_0x1e840d=await _0x438540['run']({'options':{..._0x12e408,..._0x2d8769},'args':_0x5cff33?[_0x5cff33]:[],'tdx':_0x7b4319});gracefulExit(_0x1e840d);});const psRtJnCmd=psRtCmd[a2_0x5be36b(0x226)]('jn')[a2_0x5be36b(0x235)](a2_0x5be36b(0x2ec));psRtJnCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x284))[a2_0x5be36b(0x235)](a2_0x5be36b(0x25f))[a2_0x5be36b(0x1df)](async(_0x2cbcc7,_0x2adff3)=>{const _0x44bb6d=a2_0x5be36b,_0x287d1d=new PSRtJnListCommand(),_0x5a330e=program[_0x44bb6d(0xfb)](),_0x563671=await createTDXInstance(_0x5a330e),_0x13e40a=await _0x287d1d[_0x44bb6d(0x2d6)]({'options':{..._0x5a330e,..._0x2adff3},'args':_0x2cbcc7?[_0x2cbcc7]:[],'tdx':_0x563671});gracefulExit(_0x13e40a);}),psRtJnCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x30b))[a2_0x5be36b(0x235)](a2_0x5be36b(0x222))[a2_0x5be36b(0x1df)](async(_0x10db15,_0x593705)=>{const _0x22867b=a2_0x5be36b,_0x25abaf=new PSRtJnPauseCommand(),_0x1a6be3=program['opts'](),_0x46813d=await createTDXInstance(_0x1a6be3),_0x3def1b=await _0x25abaf[_0x22867b(0x2d6)]({'options':{..._0x1a6be3,..._0x593705},'args':[_0x10db15],'tdx':_0x46813d});gracefulExit(_0x3def1b);}),psRtJnCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d0))[a2_0x5be36b(0x235)]('Resume\x20activations\x20in\x20an\x20RT\x20journey')['action'](async(_0x4585b8,_0x3f0760)=>{const _0x5cf7c6=a2_0x5be36b,_0x42e889=new PSRtJnResumeCommand(),_0x301efa=program[_0x5cf7c6(0xfb)](),_0x1a99ed=await createTDXInstance(_0x301efa),_0x3929ff=await _0x42e889['run']({'options':{..._0x301efa,..._0x3f0760},'args':[_0x4585b8],'tdx':_0x1a99ed});gracefulExit(_0x3929ff);});const parentRtCmd=parentCmd[a2_0x5be36b(0x226)]('rt',{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0xf2));parentRtCmd['command'](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2cd))[a2_0x5be36b(0x1df)](async(_0x4f2371,_0x1ae0b0)=>{const _0x52267d=a2_0x5be36b,_0x461d78=new PSRtListCommand(),_0xdc7ee9=program[_0x52267d(0xfb)](),_0x2e6515=await createTDXInstance(_0xdc7ee9),_0x1a7104=await _0x461d78[_0x52267d(0x2d6)]({'options':{..._0xdc7ee9,..._0x1ae0b0},'args':_0x4f2371?[_0x4f2371]:[],'tdx':_0x2e6515});gracefulExit(_0x1a7104);}),parentRtCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xa4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2b8))['action'](async(_0x2e76e2,_0x4a72dd)=>{const _0x3274da=a2_0x5be36b,_0xc412dc=new PSRtValidateCommand(),_0x212817=program[_0x3274da(0xfb)](),_0x2ed075=await createTDXInstance(_0x212817),_0x2a885c=await _0xc412dc[_0x3274da(0x2d6)]({'options':{..._0x212817,..._0x4a72dd},'args':_0x2e76e2?[_0x2e76e2]:[],'tdx':_0x2ed075});gracefulExit(_0x2a885c);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x5be36b(0x235)](a2_0x5be36b(0xb8));psPzCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x284))[a2_0x5be36b(0x235)](a2_0x5be36b(0x26a))['action'](async(_0x3aea47,_0xefaa88)=>{const _0x10e99f=a2_0x5be36b,_0x2c790b=new PSPzListCommand(),_0x24e1b5=program[_0x10e99f(0xfb)](),_0x30dc17=await createTDXInstance(_0x24e1b5),_0x54a392=await _0x2c790b[_0x10e99f(0x2d6)]({'options':{..._0x24e1b5,..._0xefaa88},'args':_0x3aea47?[_0x3aea47]:[],'tdx':_0x30dc17});gracefulExit(_0x54a392);}),psPzCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2f2))[a2_0x5be36b(0x235)](a2_0x5be36b(0x330))['action'](async(_0x5259b2,_0x482057)=>{const _0x49f676=a2_0x5be36b,_0x9c44f=new PSPzShowCommand(),_0xe36768=program[_0x49f676(0xfb)](),_0x4f3308=await createTDXInstance(_0xe36768),_0x51102a=await _0x9c44f[_0x49f676(0x2d6)]({'options':{..._0xe36768,..._0x482057},'args':[_0x5259b2],'tdx':_0x4f3308});gracefulExit(_0x51102a);}),psPzCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x253))[a2_0x5be36b(0x235)](a2_0x5be36b(0x13c))[a2_0x5be36b(0x1df)](async(_0x16cbf4,_0x2e1dfe)=>{const _0x250ae6=a2_0x5be36b,_0x264103=new PSPzDeleteCommand(),_0x5af85=program[_0x250ae6(0xfb)](),_0x565845=await createTDXInstance(_0x5af85),_0x58d849=await _0x264103['run']({'options':{..._0x5af85,..._0x2e1dfe},'args':[_0x16cbf4],'tdx':_0x565845});gracefulExit(_0x58d849);}),psPzCmd['command'](a2_0x5be36b(0x2d9))[a2_0x5be36b(0x235)](a2_0x5be36b(0xab))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xdb),a2_0x5be36b(0x370))[a2_0x5be36b(0x9d)]('--description\x20<text>','Personalization\x20description')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x12c),a2_0x5be36b(0x1a6))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xed),a2_0x5be36b(0x104))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x10c),'Sections\x20as\x20an\x20inline\x20JSON\x20array')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ab),a2_0x5be36b(0x138))[a2_0x5be36b(0x1df)](async _0x552448=>{const _0xcf0de2=a2_0x5be36b,_0x3b3319=new PSPzCreateCommand(),_0x23fa90=program[_0xcf0de2(0xfb)](),_0xf80332=await createTDXInstance(_0x23fa90),_0x2c87dd=await _0x3b3319['run']({'options':{..._0x23fa90,..._0x552448},'args':[],'tdx':_0xf80332});gracefulExit(_0x2c87dd);}),psPzCmd['command'](a2_0x5be36b(0x1a8))[a2_0x5be36b(0x235)]('Update\x20a\x20realtime\x20personalization\x20entity')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xdb),'Personalization\x20name')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x296),a2_0x5be36b(0x2bf))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x10c),'Sections\x20as\x20an\x20inline\x20JSON\x20array')['option'](a2_0x5be36b(0x2ab),'Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)')[a2_0x5be36b(0x1df)](async(_0x41c863,_0x37fccb)=>{const _0x7c9e62=a2_0x5be36b,_0x503e32=new PSPzPatchCommand(),_0x1c8b2f=program[_0x7c9e62(0xfb)](),_0x4471f1=await createTDXInstance(_0x1c8b2f),_0x286115=await _0x503e32[_0x7c9e62(0x2d6)]({'options':{..._0x1c8b2f,..._0x37fccb},'args':[_0x41c863],'tdx':_0x4471f1});gracefulExit(_0x286115);});const psPzServiceCmd=psPzCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x13d))[a2_0x5be36b(0x235)]('Personalization\x20service\x20management');psPzServiceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x284))[a2_0x5be36b(0x235)](a2_0x5be36b(0x271))[a2_0x5be36b(0x1df)](async(_0x3e7e58,_0x5871bb)=>{const _0x36ab69=a2_0x5be36b,_0xb377c2=new PSPzServiceListCommand(),_0x51246c=program['opts'](),_0x55c0af=await createTDXInstance(_0x51246c),_0x2aa7d6=await _0xb377c2[_0x36ab69(0x2d6)]({'options':{..._0x51246c,..._0x5871bb},'args':_0x3e7e58?[_0x3e7e58]:[],'tdx':_0x55c0af});gracefulExit(_0x2aa7d6);}),psPzServiceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x188))[a2_0x5be36b(0x235)](a2_0x5be36b(0x31f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x296),a2_0x5be36b(0x2f4))[a2_0x5be36b(0x9d)]('--public','Make\x20service\x20public\x20(default:\x20private)')[a2_0x5be36b(0x1df)](async(_0x5e3955,_0x356e8a,_0x96dac4)=>{const _0x1715ae=a2_0x5be36b,_0x225d81=new PSPzServiceCreateCommand(),_0x183eb2=program[_0x1715ae(0xfb)](),_0x1544d6=await createTDXInstance(_0x183eb2),_0x489e21=await _0x225d81[_0x1715ae(0x2d6)]({'options':{..._0x183eb2,..._0x96dac4},'args':_0x356e8a?[_0x5e3955,_0x356e8a]:[_0x5e3955],'tdx':_0x1544d6});gracefulExit(_0x489e21);}),psPzServiceCmd['command'](a2_0x5be36b(0x132))[a2_0x5be36b(0x235)](a2_0x5be36b(0xc7))[a2_0x5be36b(0x1df)](async(_0x226ebe,_0x4ecab2,_0x3b074c)=>{const _0x21fe17=a2_0x5be36b,_0x57d121=new PSPzServiceShowCommand(),_0xf06500=program['opts'](),_0x7c9bb6=await createTDXInstance(_0xf06500),_0x379686=await _0x57d121[_0x21fe17(0x2d6)]({'options':{..._0xf06500,..._0x3b074c},'args':_0x4ecab2?[_0x226ebe,_0x4ecab2]:[_0x226ebe],'tdx':_0x7c9bb6});gracefulExit(_0x379686);}),psPzServiceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x111))['description'](a2_0x5be36b(0x2c9))['action'](async(_0x4227c3,_0x28dfd5,_0x4b511a)=>{const _0x41cdfe=a2_0x5be36b,_0x15cb52=new PSPzServiceDeleteCommand(),_0x460388=program[_0x41cdfe(0xfb)](),_0x14e16b=await createTDXInstance(_0x460388),_0x16c288=await _0x15cb52[_0x41cdfe(0x2d6)]({'options':{..._0x460388,..._0x4b511a},'args':_0x28dfd5?[_0x4227c3,_0x28dfd5]:[_0x4227c3],'tdx':_0x14e16b});gracefulExit(_0x16c288);}),psPzServiceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1c4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2e9))[a2_0x5be36b(0xf1)]('--name\x20<name>',a2_0x5be36b(0x214))['option'](a2_0x5be36b(0x296),'New\x20service\x20description')[a2_0x5be36b(0x1df)](async(_0xe70964,_0x4d7977,_0x3114dd)=>{const _0x481efe=a2_0x5be36b,_0x2689ba=new PSPzServiceUpdateCommand(),_0x37c0e6=program[_0x481efe(0xfb)](),_0x11de94=await createTDXInstance(_0x37c0e6),_0x65e82c=await _0x2689ba['run']({'options':{..._0x37c0e6,..._0x3114dd},'args':_0x4d7977?[_0xe70964,_0x4d7977]:[_0xe70964],'tdx':_0x11de94});gracefulExit(_0x65e82c);}),psPzServiceCmd[a2_0x5be36b(0x226)]('init\x20[name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1f5))[a2_0x5be36b(0x1df)](async(_0x48e70f,_0x3c75d0)=>{const _0x517565=a2_0x5be36b,_0x437fa9=new PSPzInitCommand(),_0xea1260=program[_0x517565(0xfb)](),_0x3ab314=await createTDXInstance(_0xea1260),_0x4b4e7f=await _0x437fa9['run']({'options':{..._0xea1260,..._0x3c75d0},'args':_0x48e70f?[_0x48e70f]:[],'tdx':_0x3ab314});gracefulExit(_0x4b4e7f);});const psPzServiceTokenCmd=psPzServiceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xe9))['description']('Personalization\x20service\x20token\x20management');psPzServiceTokenCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x389))[a2_0x5be36b(0x235)](a2_0x5be36b(0xd8))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x231),a2_0x5be36b(0xf4))['option']('--description\x20<text>','Token\x20description')[a2_0x5be36b(0x1df)](async(_0x1e15eb,_0x254d78,_0x2bb0a4,_0x5c5832)=>{const _0x317c83=a2_0x5be36b,_0x372769=new PSPzServiceTokenCreateCommand(),_0x41e9d7=program[_0x317c83(0xfb)](),_0x23203=await createTDXInstance(_0x41e9d7),_0x42979c=await _0x372769[_0x317c83(0x2d6)]({'options':{..._0x41e9d7,..._0x5c5832},'args':_0x2bb0a4?[_0x1e15eb,_0x254d78,_0x2bb0a4]:[_0x1e15eb,_0x254d78],'tdx':_0x23203});gracefulExit(_0x42979c);}),psPzServiceTokenCmd['command'](a2_0x5be36b(0x2ea))[a2_0x5be36b(0x235)](a2_0x5be36b(0x10a))[a2_0x5be36b(0x1df)](async(_0x4176df,_0x16ce29,_0x42572e)=>{const _0x3e532f=a2_0x5be36b,_0x3f333b=new PSPzServiceTokenDeleteCommand(),_0x24517d=program[_0x3e532f(0xfb)](),_0x2b54e3=await createTDXInstance(_0x24517d),_0x5643c0=await _0x3f333b[_0x3e532f(0x2d6)]({'options':{..._0x24517d,..._0x42572e},'args':_0x16ce29?[_0x4176df,_0x16ce29]:[_0x4176df],'tdx':_0x2b54e3});gracefulExit(_0x5643c0);}),parentCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x317))[a2_0x5be36b(0x235)](a2_0x5be36b(0x316))[a2_0x5be36b(0xf1)](a2_0x5be36b(0x21b),'Master\x20database\x20name')[a2_0x5be36b(0xf1)](a2_0x5be36b(0x252),'Master\x20table\x20name')['option'](a2_0x5be36b(0x296),a2_0x5be36b(0x117))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b5),a2_0x5be36b(0x13a))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x21a),a2_0x5be36b(0x181))['option'](a2_0x5be36b(0x2ce),a2_0x5be36b(0x12a))[a2_0x5be36b(0x9d)]('--attributes\x20<json>','Attributes\x20as\x20JSON\x20string')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x35a),a2_0x5be36b(0x382))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1c3),'Behaviors\x20as\x20JSON\x20string')[a2_0x5be36b(0x9d)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x149),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x33e),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x5be36b(0x1df)](async(_0x268f91,_0x3b6f5c)=>{const _0x480190=a2_0x5be36b,_0x538a71=new ParentSegmentCreateCommand(),_0x277565=program[_0x480190(0xfb)](),_0x5b9dec=await createTDXInstance(_0x277565),_0x39c84d=await _0x538a71[_0x480190(0x2d6)]({'options':{..._0x277565,..._0x3b6f5c},'args':[_0x268f91],'tdx':_0x5b9dec});gracefulExit(_0x39c84d);}),parentCmd['command'](a2_0x5be36b(0x35f))[a2_0x5be36b(0x235)](a2_0x5be36b(0x12f))['option']('--description\x20<text>',a2_0x5be36b(0x25c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b5),a2_0x5be36b(0x38b))['option'](a2_0x5be36b(0x21a),a2_0x5be36b(0x2c6))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ce),a2_0x5be36b(0x2c0))['option'](a2_0x5be36b(0x221),a2_0x5be36b(0x198))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2f3),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xd4),'Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xec),a2_0x5be36b(0x204))[a2_0x5be36b(0x1df)](async(_0x10129a,_0x461dd2)=>{const _0x36a4e0=a2_0x5be36b,_0x3e3a2d=new ParentSegmentUpdateCommand(),_0x5b157f=program[_0x36a4e0(0xfb)](),_0x494cbc=await createTDXInstance(_0x5b157f),_0x5c2ab0=await _0x3e3a2d[_0x36a4e0(0x2d6)]({'options':{..._0x5b157f,..._0x461dd2},'args':[_0x10129a],'tdx':_0x494cbc});gracefulExit(_0x5c2ab0);}),folderCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x218))[a2_0x5be36b(0x235)](a2_0x5be36b(0x156))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x296),a2_0x5be36b(0x126))['option'](a2_0x5be36b(0x153),a2_0x5be36b(0x1e9))[a2_0x5be36b(0x1df)](async(_0x30e295,_0x1725a8,_0xc8d929)=>{const _0x48a1d9=a2_0x5be36b,_0x2825b0=new SegmentFolderCreateCommand(),_0x22accb=program[_0x48a1d9(0xfb)](),_0x1ec46f=await createTDXInstance(_0x22accb),_0x2f6e5d=await _0x2825b0['run']({'options':{..._0x22accb,..._0xc8d929},'args':[_0x30e295,_0x1725a8],'tdx':_0x1ec46f});gracefulExit(_0x2f6e5d);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x173))['description']('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x5be36b(0x1df)](async(_0x1ff3d2,_0xc8fa1c)=>{const _0x1eddf8=a2_0x5be36b,_0x1aef98=new ActivationsCommand(),_0x583c60=program[_0x1eddf8(0xfb)](),_0xf47b17=await createTDXInstance(_0x583c60),_0x5c0101=await _0x1aef98['run']({'options':{..._0x583c60,..._0xc8fa1c},'args':[_0x1ff3d2],'tdx':_0xf47b17});gracefulExit(_0x5c0101);});const workflowCmd=program['command'](a2_0x5be36b(0x2a7))['alias']('wf')[a2_0x5be36b(0x235)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x34b))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x336833,_0x46a9c1)=>{const _0xac42fb=a2_0x5be36b,_0x4ec66d=new WorkflowProjectsCommand(),_0x48ebd8=program[_0xac42fb(0xfb)](),_0x43baaa=await createTDXInstance(_0x48ebd8),_0x35fb92=await _0x4ec66d[_0xac42fb(0x2d6)]({'options':{..._0x48ebd8,..._0x46a9c1},'args':_0x336833?[_0x336833]:[],'tdx':_0x43baaa});gracefulExit(_0x35fb92);};wfProjectCmd['command']('list\x20[pattern]')[a2_0x5be36b(0x235)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](wfProjectListAction),workflowCmd[a2_0x5be36b(0x226)]('projects\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0xf0))[a2_0x5be36b(0x1df)](wfProjectListAction);const wfWorkflowListAction=async(_0x1c7799,_0x22c39b)=>{const _0x14576a=a2_0x5be36b,_0x4370fd=new WorkflowWorkflowsCommand(),_0x42bcf3=program['opts'](),_0x1bbb6a=await createTDXInstance(_0x42bcf3),_0x408c0b=await _0x4370fd[_0x14576a(0x2d6)]({'options':{..._0x42bcf3,..._0x22c39b},'args':_0x1c7799?[_0x1c7799]:[],'tdx':_0x1bbb6a});gracefulExit(_0x408c0b);};workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x129))[a2_0x5be36b(0x235)](a2_0x5be36b(0x275))[a2_0x5be36b(0x1df)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x210))[a2_0x5be36b(0x235)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x5e7e82,_0x506954)=>{const _0x886ace=a2_0x5be36b,_0x308d3f=new WorkflowSessionsCommand(),_0x4ea42e=program[_0x886ace(0xfb)](),_0x5a968d=await createTDXInstance(_0x4ea42e),_0x5a93a9=await _0x308d3f[_0x886ace(0x2d6)]({'options':{..._0x4ea42e,..._0x506954},'args':_0x5e7e82?[_0x5e7e82]:[],'tdx':_0x5a968d});gracefulExit(_0x5a93a9);};wfSessionCmd['command'](a2_0x5be36b(0x1cb))[a2_0x5be36b(0x235)](a2_0x5be36b(0x219))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0x146))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x35c),a2_0x5be36b(0x26d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x343),a2_0x5be36b(0x18d))[a2_0x5be36b(0x1df)](wfSessionListAction),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xe3))['description'](a2_0x5be36b(0x383))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0x146))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x35c),a2_0x5be36b(0x26d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x343),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x5be36b(0x1df)](wfSessionListAction);const wfAttemptListAction=async(_0x29b2df,_0x1a8c91)=>{const _0x371387=a2_0x5be36b,_0x57bfdf=new WorkflowAttemptsCommand(),_0xc0e2d7=program[_0x371387(0xfb)](),_0x41e688=await createTDXInstance(_0xc0e2d7),_0x46df90=await _0x57bfdf[_0x371387(0x2d6)]({'options':{..._0xc0e2d7,..._0x1a8c91},'args':_0x29b2df?[_0x29b2df]:[],'tdx':_0x41e688});gracefulExit(_0x46df90);},attemptCmd=workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x144))[a2_0x5be36b(0x235)]('Workflow\x20attempt\x20management')[a2_0x5be36b(0x2f9)](a2_0x5be36b(0x12d),'Attempt\x20ID')[a2_0x5be36b(0x2f9)](a2_0x5be36b(0x1d9),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x5be36b(0x2f9)]('[task-name]',a2_0x5be36b(0x30f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x244),a2_0x5be36b(0x378))[a2_0x5be36b(0x9d)]('--reason\x20<text>',a2_0x5be36b(0x2c7))[a2_0x5be36b(0x9d)]('--resume-from\x20<task>',a2_0x5be36b(0x333))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x108),a2_0x5be36b(0x28f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2eb),a2_0x5be36b(0x262))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1c8),a2_0x5be36b(0x267))['action'](async(_0x219328,_0x30794b,_0x3baf8b,_0x371853)=>{const _0xc4ebe2=a2_0x5be36b;if(_0x219328===_0xc4ebe2(0x95)){await wfAttemptListAction(_0x30794b,_0x371853);return;}if(!_0x219328){attemptCmd[_0xc4ebe2(0xa6)]();return;}const _0x31bcf2=program[_0xc4ebe2(0xfb)](),_0x2568bf=await createTDXInstance(_0x31bcf2);let _0x2ed4de=0x0;if(!_0x30794b){const _0x8fd024=new WorkflowAttemptCommand();_0x2ed4de=await _0x8fd024[_0xc4ebe2(0x2d6)]({'options':{..._0x31bcf2,..._0x371853},'args':[_0x219328],'tdx':_0x2568bf});}else{if(_0x30794b===_0xc4ebe2(0x206)){const _0x5650d9=new WorkflowLogsCommand();_0x2ed4de=await _0x5650d9['run']({'options':{..._0x31bcf2,..._0x371853},'args':_0x3baf8b?[_0x219328,_0x3baf8b]:[_0x219328],'tdx':_0x2568bf});}else{if(_0x30794b===_0xc4ebe2(0x11b)){const _0x3ba141=new WorkflowTasksCommand();_0x2ed4de=await _0x3ba141[_0xc4ebe2(0x2d6)]({'options':{..._0x31bcf2,..._0x371853},'args':[_0x219328],'tdx':_0x2568bf});}else{if(_0x30794b===_0xc4ebe2(0x2d5)){const _0x579aa9=new WorkflowKillCommand();_0x2ed4de=await _0x579aa9[_0xc4ebe2(0x2d6)]({'options':{..._0x31bcf2,..._0x371853},'args':[_0x219328],'tdx':_0x2568bf});}else{if(_0x30794b==='retry'){const _0x1f3d73=new WorkflowRetryCommand();_0x2ed4de=await _0x1f3d73[_0xc4ebe2(0x2d6)]({'options':{..._0x31bcf2,..._0x371853},'args':[_0xc4ebe2(0xf7)+_0x219328],'tdx':_0x2568bf});}else console[_0xc4ebe2(0x313)](_0xc4ebe2(0x293)+_0x30794b),console[_0xc4ebe2(0x313)](_0xc4ebe2(0x385)),_0x2ed4de=0x1;}}}}gracefulExit(_0x2ed4de);});attemptCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1cb))[a2_0x5be36b(0x235)](a2_0x5be36b(0x258))['option'](a2_0x5be36b(0x1c8),a2_0x5be36b(0x15b))[a2_0x5be36b(0x1df)](wfAttemptListAction),workflowCmd[a2_0x5be36b(0x226)]('attempts\x20[project]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x33c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1c8),a2_0x5be36b(0x15b))['action'](wfAttemptListAction),workflowCmd[a2_0x5be36b(0x226)]('timeline\x20[project.workflow]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x125))['option']('--follow',a2_0x5be36b(0xb3))[a2_0x5be36b(0x9d)]('--session-id\x20<id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xef),a2_0x5be36b(0x36c))[a2_0x5be36b(0x1df)](async(_0x351312,_0x4b18e0)=>{const _0x14e26c=a2_0x5be36b,_0x3ee5b7=new WorkflowTimelineCommand(),_0x4d792a=program[_0x14e26c(0xfb)](),_0x4ce823=await createTDXInstance(_0x4d792a),_0x290b04=await _0x3ee5b7['run']({'options':{..._0x4d792a,..._0x4b18e0},'args':_0x351312?[_0x351312]:[],'tdx':_0x4ce823});gracefulExit(_0x290b04);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xd3))[a2_0x5be36b(0x235)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xe0),a2_0x5be36b(0x102))[a2_0x5be36b(0x9d)]('--params\x20<json>',a2_0x5be36b(0x17b))[a2_0x5be36b(0x1df)](async(_0x141c37,_0x5d3b17)=>{const _0x280a1d=a2_0x5be36b,_0x3a6d78=new WorkflowRetryCommand(),_0x2dfe86=program['opts'](),_0x474822=await createTDXInstance(_0x2dfe86),_0x44a5fb=await _0x3a6d78[_0x280a1d(0x2d6)]({'options':{..._0x2dfe86,..._0x5d3b17},'args':[_0x141c37],'tdx':_0x474822});gracefulExit(_0x44a5fb);}),workflowCmd[a2_0x5be36b(0x226)]('run\x20[workflow]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1a7))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xb2),a2_0x5be36b(0x2aa),(_0x338424,_0x36cac4=[])=>[..._0x36cac4,_0x338424],[])['option'](a2_0x5be36b(0x340),a2_0x5be36b(0x164))[a2_0x5be36b(0x1df)](async(_0x8d367e,_0x15afea)=>{const _0x523856=a2_0x5be36b,_0x20342c=new WorkflowRunCommand(),_0x4cf52a=program[_0x523856(0xfb)](),_0xbebc00=await createTDXInstance(_0x4cf52a),_0x5c789f=await _0x20342c[_0x523856(0x2d6)]({'options':{..._0x4cf52a,..._0x15afea},'args':_0x8d367e?[_0x8d367e]:[],'tdx':_0xbebc00});gracefulExit(_0x5c789f);}),workflowCmd[a2_0x5be36b(0x226)]('download\x20<project-name>\x20[output-dir]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x96))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36f),a2_0x5be36b(0x175))[a2_0x5be36b(0x1df)](async(_0x3cbdf3,_0x569495,_0x1518fe)=>{const _0xfbe3ad=a2_0x5be36b,_0x35e9fa=new WorkflowDownloadCommand(),_0x5af990=program['opts'](),_0x1a0f48=await createTDXInstance(_0x5af990),_0x4f166d=await _0x35e9fa[_0xfbe3ad(0x2d6)]({'options':{..._0x5af990,..._0x1518fe},'args':[_0x3cbdf3,_0x569495||'.'],'tdx':_0x1a0f48});gracefulExit(_0x4f166d);}),workflowCmd['command'](a2_0x5be36b(0x14d))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2dd))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36f),a2_0x5be36b(0xbe))[a2_0x5be36b(0x9d)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')['action'](async(_0x1849c7,_0x308ebc,_0x369df1)=>{const _0x1d5f9f=a2_0x5be36b,_0xa5e47f=new WorkflowPullCommand(),_0x9875a6=program[_0x1d5f9f(0xfb)](),_0x36e92e=await createTDXInstance(_0x9875a6),_0x45d5a0=await _0xa5e47f[_0x1d5f9f(0x2d6)]({'options':{..._0x9875a6,..._0x369df1},'args':_0x308ebc?[_0x1849c7,_0x308ebc]:[_0x1849c7],'tdx':_0x36e92e});gracefulExit(_0x45d5a0);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x277))[a2_0x5be36b(0x235)](a2_0x5be36b(0x19a))['option'](a2_0x5be36b(0x36f),a2_0x5be36b(0x15f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),'Preview\x20changes\x20without\x20pushing')['option']('--skip-validation',a2_0x5be36b(0x355))[a2_0x5be36b(0x1df)](async(_0x34e167,_0x21da64)=>{const _0x12b1f6=a2_0x5be36b,_0x5e46ba=new WorkflowPushCommand(),_0x2a9ab2=program[_0x12b1f6(0xfb)](),_0x8ad0bf=await createTDXInstance(_0x2a9ab2),_0x3c66f8=await _0x5e46ba[_0x12b1f6(0x2d6)]({'options':{..._0x2a9ab2,..._0x21da64},'args':_0x34e167?[_0x34e167]:[],'tdx':_0x8ad0bf});gracefulExit(_0x3c66f8);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x24f))[a2_0x5be36b(0x235)](a2_0x5be36b(0x159))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),'Override\x20project\x20name')[a2_0x5be36b(0x9d)]('--revision\x20<revision>','Revision\x20name\x20(default:\x20timestamp)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x299),a2_0x5be36b(0x355))['action'](async(_0x1e5137,_0x4637d8)=>{const _0x35e8a8=a2_0x5be36b,_0x277e8d=new WorkflowUploadCommand(),_0x4886be=program[_0x35e8a8(0xfb)](),_0x306f14=await createTDXInstance(_0x4886be),_0x20624b=await _0x277e8d[_0x35e8a8(0x2d6)]({'options':{..._0x4886be,..._0x4637d8},'args':_0x1e5137?[_0x1e5137]:[],'tdx':_0x306f14});gracefulExit(_0x20624b);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1b4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2b0))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x182))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36f),a2_0x5be36b(0x15f))['option'](a2_0x5be36b(0x143),a2_0x5be36b(0x21c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x299),a2_0x5be36b(0x355))[a2_0x5be36b(0x1df)](async(_0x2de0ac,_0x370190)=>{const _0x49a013=a2_0x5be36b,_0x2fcd6b=new WorkflowCloneCommand(),_0x1d9ff8=program[_0x49a013(0xfb)](),_0x5055a7=await createTDXInstance(_0x1d9ff8),_0x2e3ab4=await _0x2fcd6b[_0x49a013(0x2d6)]({'options':{..._0x1d9ff8,..._0x370190},'args':_0x2de0ac?[_0x2de0ac]:[],'tdx':_0x5055a7});gracefulExit(_0x2e3ab4);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x185))[a2_0x5be36b(0x235)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x5be36b(0x1df)](async(_0xd898ad,_0x36fecc)=>{const _0x692332=a2_0x5be36b,_0xb254f6=new WorkflowDeleteCommand(),_0x443cae=program[_0x692332(0xfb)](),_0x12b33a=await createTDXInstance(_0x443cae),_0x528b1b=await _0xb254f6['run']({'options':{..._0x443cae,..._0x36fecc},'args':[_0xd898ad],'tdx':_0x12b33a});gracefulExit(_0x528b1b);}),workflowCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x306))[a2_0x5be36b(0x235)](a2_0x5be36b(0x194))[a2_0x5be36b(0x9d)]('--clear',a2_0x5be36b(0xe6))[a2_0x5be36b(0x1df)](async(_0x2ca430,_0x33d68a)=>{const _0x56ef57=a2_0x5be36b,_0x26694d=new WorkflowUseCommand(),_0x34cdb3=program[_0x56ef57(0xfb)](),_0x10c36f=await createTDXInstance(_0x34cdb3),_0x328f94=await _0x26694d[_0x56ef57(0x2d6)]({'options':{..._0x34cdb3,..._0x33d68a},'args':_0x2ca430?[_0x2ca430]:[],'tdx':_0x10c36f});gracefulExit(_0x328f94);});const wfSecretsCmd=workflowCmd['command'](a2_0x5be36b(0x254))[a2_0x5be36b(0x235)](a2_0x5be36b(0x264));wfSecretsCmd[a2_0x5be36b(0x226)]('list\x20[project]')[a2_0x5be36b(0x235)]('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x5be36b(0x1df)](async(_0x256294,_0x181d0f)=>{const _0x474e92=a2_0x5be36b,_0x11bf78=new WorkflowSecretsListCommand(),_0x3bd77c=program[_0x474e92(0xfb)](),_0x2a2fc0=await createTDXInstance(_0x3bd77c),_0x135e01=await _0x11bf78[_0x474e92(0x2d6)]({'options':{..._0x3bd77c,..._0x181d0f},'args':_0x256294?[_0x256294]:[],'tdx':_0x2a2fc0});gracefulExit(_0x135e01);}),wfSecretsCmd[a2_0x5be36b(0x226)]('set\x20<args...>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x19e))['action'](async(_0x3cb06e,_0x5a3b9a)=>{const _0xb4ceca=a2_0x5be36b,_0x54e238=new WorkflowSecretsSetCommand(),_0x3911ef=program['opts'](),_0x270518=await createTDXInstance(_0x3911ef),_0x391b01=await _0x54e238[_0xb4ceca(0x2d6)]({'options':{..._0x3911ef,..._0x5a3b9a},'args':_0x3cb06e,'tdx':_0x270518});gracefulExit(_0x391b01);}),wfSecretsCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x300))[a2_0x5be36b(0x235)](a2_0x5be36b(0x136))[a2_0x5be36b(0x1df)](async(_0xd4712,_0x572d22)=>{const _0x5b3232=new WorkflowSecretsDeleteCommand(),_0x3174ce=program['opts'](),_0xf06fae=await createTDXInstance(_0x3174ce),_0x8d9fce=await _0x5b3232['run']({'options':{..._0x3174ce,..._0x572d22},'args':_0xd4712,'tdx':_0xf06fae});gracefulExit(_0x8d9fce);});const jobCmd=program['command'](a2_0x5be36b(0x20c))[a2_0x5be36b(0x235)](a2_0x5be36b(0x28a)),jobListAction=async _0x5ca2c4=>{const _0x4b34a3=a2_0x5be36b,_0x5a9c04=new JobListCommand(),_0x4a5df9=program[_0x4b34a3(0xfb)](),_0x5769a8=await createTDXInstance(_0x4a5df9),_0x33f225=await _0x5a9c04[_0x4b34a3(0x2d6)]({'options':{..._0x4a5df9,..._0x5ca2c4},'args':[],'tdx':_0x5769a8});gracefulExit(_0x33f225);};jobCmd['command']('list')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1aa))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0x34a))[a2_0x5be36b(0x1df)](jobListAction),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x266),{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x27e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0x34a))[a2_0x5be36b(0x1df)](jobListAction),jobCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x237))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1c9))['action'](async(_0x1a87e7,_0x12fc71)=>{const _0x111d67=new JobShowCommand(),_0xf39057=program['opts'](),_0x4eeb36=await createTDXInstance(_0xf39057),_0x311a7f=await _0x111d67['run']({'options':{..._0xf39057,..._0x12fc71},'args':[_0x1a87e7],'tdx':_0x4eeb36});gracefulExit(_0x311a7f);}),jobCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x241))[a2_0x5be36b(0x235)](a2_0x5be36b(0x133))[a2_0x5be36b(0x1df)](async(_0x29be95,_0x47309e)=>{const _0x58bfc0=a2_0x5be36b,_0x4162f3=new JobKillCommand(),_0x2d919a=program['opts'](),_0x13e5fc=await createTDXInstance(_0x2d919a),_0x3c7772=await _0x4162f3[_0x58bfc0(0x2d6)]({'options':{..._0x2d919a,..._0x47309e},'args':[_0x29be95],'tdx':_0x13e5fc});gracefulExit(_0x3c7772);}),jobCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2fc))[a2_0x5be36b(0x235)]('Submit\x20a\x20job')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x344),a2_0x5be36b(0x160),'trino')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x162),a2_0x5be36b(0x93))['option'](a2_0x5be36b(0x27d),a2_0x5be36b(0x261),a2_0x5be36b(0x141))[a2_0x5be36b(0x9d)]('--result\x20<target>',a2_0x5be36b(0x114))[a2_0x5be36b(0x1df)](async(_0x143238,_0x589539)=>{const _0x3e9247=a2_0x5be36b,_0x488f75=new JobSubmitCommand(),_0x9ad99e=program[_0x3e9247(0xfb)](),_0x56f000=await createTDXInstance(_0x9ad99e),_0x2337b1=await _0x488f75[_0x3e9247(0x2d6)]({'options':{..._0x9ad99e,..._0x589539},'args':_0x143238?[_0x143238]:[],'tdx':_0x56f000});gracefulExit(_0x2337b1);}),jobCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xa3))[a2_0x5be36b(0x235)](a2_0x5be36b(0x31c))[a2_0x5be36b(0x1df)](async(_0x233591,_0x5a1c72)=>{const _0x404291=a2_0x5be36b,_0x175518=new JobResultCommand(),_0x7732c6=program[_0x404291(0xfb)](),_0x331dc0=await createTDXInstance(_0x7732c6),_0x25638=await _0x175518[_0x404291(0x2d6)]({'options':{..._0x7732c6,..._0x5a1c72},'args':[_0x233591],'tdx':_0x331dc0});gracefulExit(_0x25638);});const scheduleCmd=jobCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x375))[a2_0x5be36b(0x235)]('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x5be36b(0x226)]('list\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1d0))[a2_0x5be36b(0x1df)](async(_0x52deed,_0x199dfb)=>{const _0xd18c0c=a2_0x5be36b,_0x2cf2b9=new ScheduleListCommand(),_0x4e938e=program[_0xd18c0c(0xfb)](),_0x1e2af4=await createTDXInstance(_0x4e938e),_0x18a725=await _0x2cf2b9[_0xd18c0c(0x2d6)]({'options':{..._0x4e938e,..._0x199dfb},'args':_0x52deed?[_0x52deed]:[],'tdx':_0x1e2af4});gracefulExit(_0x18a725);}),scheduleCmd[a2_0x5be36b(0x226)]('show\x20<name>')[a2_0x5be36b(0x235)]('Show\x20schedule\x20details')[a2_0x5be36b(0x1df)](async(_0x2b2c2b,_0x3b8706)=>{const _0x1396f0=new ScheduleShowCommand(),_0x2a8718=program['opts'](),_0x4f459b=await createTDXInstance(_0x2a8718),_0x10b76a=await _0x1396f0['run']({'options':{..._0x2a8718,..._0x3b8706},'args':[_0x2b2c2b],'tdx':_0x4f459b});gracefulExit(_0x10b76a);}),scheduleCmd[a2_0x5be36b(0x226)]('create\x20<name>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1c1))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1f1),a2_0x5be36b(0x1f3))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x184),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x5be36b(0xf1)]('-f,\x20--file\x20<path>',a2_0x5be36b(0x93))[a2_0x5be36b(0x9d)]('--type\x20<type>',a2_0x5be36b(0xae),a2_0x5be36b(0x186))['option'](a2_0x5be36b(0x26b),a2_0x5be36b(0x1ae))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ce),a2_0x5be36b(0x2e5))['option'](a2_0x5be36b(0x19d),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x247),a2_0x5be36b(0x16f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xe8),'Retry\x20limit\x20(0\x20to\x2032)')['option']('--engine-version\x20<version>',a2_0x5be36b(0x2da))['option']('--result\x20<url>',a2_0x5be36b(0x2d4))['action'](async(_0x4b13be,_0x254f55)=>{const _0x26d526=a2_0x5be36b,_0x273a21=new ScheduleCreateCommand(),_0x1836f1=program['opts'](),_0x18a09c=await createTDXInstance(_0x1836f1);_0x254f55['in']&&(_0x254f55[_0x26d526(0x220)]=_0x254f55['in']);const _0x363c5d=await _0x273a21['run']({'options':{..._0x1836f1,..._0x254f55},'args':[_0x4b13be],'tdx':_0x18a09c});gracefulExit(_0x363c5d);}),scheduleCmd[a2_0x5be36b(0x226)]('update\x20<name>')['description'](a2_0x5be36b(0x216))[a2_0x5be36b(0x9d)]('-d,\x20--database\x20<db>',a2_0x5be36b(0x361))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x184),a2_0x5be36b(0xac))[a2_0x5be36b(0x9d)]('-f,\x20--file\x20<path>',a2_0x5be36b(0x93))[a2_0x5be36b(0x9d)]('--type\x20<type>',a2_0x5be36b(0xae))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x26b),'Cron\x20expression\x20for\x20scheduling')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ce),a2_0x5be36b(0xca))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x19d),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x5be36b(0x9d)]('--priority\x20<-2~2>','Job\x20priority\x20(-2\x20to\x202)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xe8),a2_0x5be36b(0x380))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ae),a2_0x5be36b(0x2da))[a2_0x5be36b(0x9d)]('--result\x20<url>',a2_0x5be36b(0x2d4))[a2_0x5be36b(0x1df)](async(_0x12954c,_0x448ccf)=>{const _0x1bce19=a2_0x5be36b,_0x5dd4e7=new ScheduleUpdateCommand(),_0x27fd92=program[_0x1bce19(0xfb)](),_0x139639=await createTDXInstance(_0x27fd92);_0x448ccf['in']&&(_0x448ccf[_0x1bce19(0x220)]=_0x448ccf['in']);const _0x3bce68=await _0x5dd4e7[_0x1bce19(0x2d6)]({'options':{..._0x27fd92,..._0x448ccf},'args':[_0x12954c],'tdx':_0x139639});gracefulExit(_0x3bce68);}),scheduleCmd['command'](a2_0x5be36b(0x12b))['description'](a2_0x5be36b(0x1dc))[a2_0x5be36b(0x1df)](async(_0x25e2ca,_0x5253c2)=>{const _0x142f9b=a2_0x5be36b,_0x2f16c8=new ScheduleDeleteCommand(),_0x290ee1=program['opts'](),_0x572e3d=await createTDXInstance(_0x290ee1),_0x32d8a2=await _0x2f16c8[_0x142f9b(0x2d6)]({'options':{..._0x290ee1,..._0x5253c2},'args':[_0x25e2ca],'tdx':_0x572e3d});gracefulExit(_0x32d8a2);}),scheduleCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2b3))['description'](a2_0x5be36b(0x1da))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x13e),a2_0x5be36b(0x16c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x183),a2_0x5be36b(0x212))['action'](async(_0x415751,_0x260493)=>{const _0x398908=a2_0x5be36b,_0x306f87=new ScheduleRunCommand(),_0x24fcb9=program['opts'](),_0xb26bcf=await createTDXInstance(_0x24fcb9),_0x3bb231=await _0x306f87[_0x398908(0x2d6)]({'options':{..._0x24fcb9,..._0x260493},'args':[_0x415751],'tdx':_0xb26bcf});gracefulExit(_0x3bb231);}),scheduleCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x113))[a2_0x5be36b(0x235)]('Show\x20schedule\x20execution\x20history')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x11a),a2_0x5be36b(0x2fb))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x122),a2_0x5be36b(0x37f))[a2_0x5be36b(0x1df)](async(_0x1dfc0b,_0x162a91)=>{const _0xe89c45=a2_0x5be36b,_0x176db5=new ScheduleHistoryCommand(),_0xc29db3=program[_0xe89c45(0xfb)](),_0x15ebad=await createTDXInstance(_0xc29db3),_0x56578a=await _0x176db5[_0xe89c45(0x2d6)]({'options':{..._0xc29db3,..._0x162a91},'args':[_0x1dfc0b],'tdx':_0x15ebad});gracefulExit(_0x56578a);});const llmCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x1f9))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2c5));llmCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xe4))[a2_0x5be36b(0x235)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')['action'](async(_0x3c25c0,_0x4f58f8)=>{const _0x2981e8=a2_0x5be36b,_0x2724f7=new LLMUseCommand(),_0x278d6b=program['opts'](),_0x49fd98=await createTDXInstance(_0x278d6b),_0x323df6=await _0x2724f7[_0x2981e8(0x2d6)]({'options':{..._0x278d6b,..._0x4f58f8},'args':[_0x3c25c0],'tdx':_0x49fd98});gracefulExit(_0x323df6);}),llmCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x213))[a2_0x5be36b(0x235)](a2_0x5be36b(0x243))[a2_0x5be36b(0x1df)](async _0x541315=>{const _0x33e9eb=new LLMModelsCommand(),_0x559f85=program['opts'](),_0xfdad10=await createTDXInstance(_0x559f85),_0x457f14=await _0x33e9eb['run']({'options':{..._0x559f85,..._0x541315},'args':[],'tdx':_0xfdad10});gracefulExit(_0x457f14);});const projectCmd=llmCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x34b))[a2_0x5be36b(0x235)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x46e2bd,_0x3788af)=>{const _0x2276cc=a2_0x5be36b,_0x58c0a3=new LLMProjectsCommand(),_0x4f17f9=program[_0x2276cc(0xfb)](),_0x32bb56=await createTDXInstance(_0x4f17f9),_0x4a43ed=await _0x58c0a3['run']({'options':{..._0x4f17f9,..._0x3788af},'args':_0x46e2bd?[_0x46e2bd]:[],'tdx':_0x32bb56});gracefulExit(_0x4a43ed);};projectCmd['command'](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ea))['action'](llmProjectListAction),llmCmd[a2_0x5be36b(0x226)]('projects\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x2e0))[a2_0x5be36b(0x1df)](llmProjectListAction),projectCmd[a2_0x5be36b(0x226)]('create\x20<name>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x155))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x296),a2_0x5be36b(0x1a2))[a2_0x5be36b(0x1df)](async(_0x345377,_0x2518b9)=>{const _0x5e038d=a2_0x5be36b,_0x12d2c1=new LLMProjectCreateCommand(),_0x37c7e7=program['opts'](),_0x988356=await createTDXInstance(_0x37c7e7),_0x124b33=await _0x12d2c1[_0x5e038d(0x2d6)]({'options':{..._0x37c7e7,..._0x2518b9},'args':[_0x345377],'tdx':_0x988356});gracefulExit(_0x124b33);}),projectCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x12b))[a2_0x5be36b(0x235)](a2_0x5be36b(0x98))['action'](async(_0x4b9e21,_0x3f84fd)=>{const _0x5075f8=a2_0x5be36b,_0x4d2582=new LLMProjectDeleteCommand(),_0x55e1ee=program[_0x5075f8(0xfb)](),_0x5d815c=await createTDXInstance(_0x55e1ee),_0x5baa06=await _0x4d2582['run']({'options':{..._0x55e1ee,..._0x3f84fd},'args':[_0x4b9e21],'tdx':_0x5d815c});gracefulExit(_0x5baa06);}),projectCmd[a2_0x5be36b(0x226)]('backup\x20<name>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x322))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x150),a2_0x5be36b(0x163))['option'](a2_0x5be36b(0x143),a2_0x5be36b(0x27b))[a2_0x5be36b(0x1df)](async(_0x57d36c,_0x4a3091)=>{const _0x34323e=a2_0x5be36b,_0x48d6d2=new LLMProjectBackupCommand(),_0x2baf5c=program[_0x34323e(0xfb)](),_0x116ee8=await createTDXInstance(_0x2baf5c),_0x397919=await _0x48d6d2[_0x34323e(0x2d6)]({'options':{..._0x2baf5c,..._0x4a3091},'args':[_0x57d36c],'tdx':_0x116ee8});gracefulExit(_0x397919);}),projectCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1d8))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2fe))['option'](a2_0x5be36b(0x1e7),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x5be36b(0x143),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x5be36b(0x1df)](async(_0x5296a8,_0x55a33c)=>{const _0x3ab4af=a2_0x5be36b,_0x8c0823=new LLMProjectRestoreCommand(),_0x5cc3c4=program[_0x3ab4af(0xfb)](),_0x470e0a=await createTDXInstance(_0x5cc3c4),_0x348e59=await _0x8c0823[_0x3ab4af(0x2d6)]({'options':{..._0x5cc3c4,..._0x55a33c},'args':[_0x5296a8],'tdx':_0x470e0a});gracefulExit(_0x348e59);});const llmAgentListAction=async(_0x237564,_0x21abe2)=>{const _0x312684=a2_0x5be36b,_0x234a46=new LLMAgentsCommand(),_0x52cf25=program[_0x312684(0xfb)](),_0x263a5a=await createTDXInstance(_0x52cf25),_0x315c1c=await _0x234a46[_0x312684(0x2d6)]({'options':{..._0x52cf25,..._0x21abe2},'args':_0x237564?[_0x237564]:[],'tdx':_0x263a5a});gracefulExit(_0x315c1c);};llmCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x31b))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2be))[a2_0x5be36b(0x1df)](llmAgentListAction),program['command'](a2_0x5be36b(0x31b))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x5be36b(0x1df)](llmAgentListAction),llmCmd['command'](a2_0x5be36b(0x327))[a2_0x5be36b(0x235)](a2_0x5be36b(0x189))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x32d),a2_0x5be36b(0x280))[a2_0x5be36b(0x1df)](async(_0x4a6fdc,_0x17eed2)=>{const _0x370606=a2_0x5be36b,_0x35c408=new LLMHistoryCommand(),_0xffee30=program[_0x370606(0xfb)](),_0x341bd1=await createTDXInstance(_0xffee30),_0x5b8894=await _0x35c408['run']({'options':{..._0xffee30,..._0x17eed2},'args':_0x4a6fdc?[_0x4a6fdc]:[],'tdx':_0x341bd1});gracefulExit(_0x5b8894);});isExperimentalAvailable()&&llmCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x211))[a2_0x5be36b(0x235)](a2_0x5be36b(0x177))[a2_0x5be36b(0x1df)](async(_0x2cd48a,_0x4dacae)=>{const _0x2f7735=new LLMLogCommand(),_0x5794fc=program['opts'](),_0x20bbed=await createTDXInstance(_0x5794fc),_0x28e96a=await _0x2f7735['run']({'options':{..._0x5794fc,..._0x4dacae},'args':[_0x2cd48a],'tdx':_0x20bbed});gracefulExit(_0x28e96a);});program['command'](a2_0x5be36b(0x29a))[a2_0x5be36b(0x20d)](a2_0x5be36b(0x30a))[a2_0x5be36b(0x235)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2cf),a2_0x5be36b(0x1ec))[a2_0x5be36b(0x9d)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')['option']('--no-proxy',a2_0x5be36b(0x28e))[a2_0x5be36b(0x9a)]()[a2_0x5be36b(0xdf)](!![])[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x2ac))[a2_0x5be36b(0x1df)](async(_0x519ac4,_0xc74c3b)=>{const _0x2a489b=a2_0x5be36b,_0x5d9c1b=program['opts'](),_0x190528=Array[_0x2a489b(0x1f4)](_0x519ac4)?_0x519ac4:[];if(_0x190528[0x0]===_0x2a489b(0x2d2)){const _0x58dcd5=new ClaudeStatuslineCommand(),_0x47e202=await _0x58dcd5[_0x2a489b(0x2d6)]({'options':{..._0x5d9c1b,..._0xc74c3b},'args':_0x190528[_0x2a489b(0x29b)](0x1),'tdx':null});gracefulExit(_0x47e202);}if(_0x190528[0x0]==='usage'){const _0xd8b4a4=new ClaudeUsageCommand(),_0x1dc054=await _0xd8b4a4['run']({'options':{..._0x5d9c1b,..._0xc74c3b},'args':_0x190528[_0x2a489b(0x29b)](0x1),'tdx':null});gracefulExit(_0x1dc054);}const _0x59b585=new ClaudeCommand(),_0x25a8b8=await createTDXInstance(_0x5d9c1b),_0x4c96f8=await _0x59b585['run']({'options':{..._0x5d9c1b,..._0xc74c3b},'args':_0x190528,'tdx':_0x25a8b8});gracefulExit(_0x4c96f8);}),program[a2_0x5be36b(0x226)]('use\x20[resource]\x20[value]')[a2_0x5be36b(0x235)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)')['option']('--clear',a2_0x5be36b(0x34e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2e4),a2_0x5be36b(0x242))['action'](async(_0x1109b9,_0x248bde,_0x4855fc)=>{const _0x25463d=a2_0x5be36b,_0x1cef31=new UseCommand(),_0x3c1510=program[_0x25463d(0xfb)](),_0xd1b707=[];if(_0x1109b9)_0xd1b707['push'](_0x1109b9);if(_0x248bde)_0xd1b707[_0x25463d(0x2c4)](_0x248bde);const _0x51f085=_0x1109b9===_0x25463d(0x14f),_0x5ac7d8=_0x51f085?await createTDXInstance(_0x3c1510):null,_0x39844d=await _0x1cef31['run']({'options':{..._0x3c1510,..._0x4855fc},'args':_0xd1b707,'tdx':_0x5ac7d8});gracefulExit(_0x39844d);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d1))['description']('Show\x20authentication\x20status\x20and\x20current\x20context')['action'](async _0x20a7cf=>{const _0xe8c39b=a2_0x5be36b,_0x2ce8ba=new StatusCommand(),_0x1a1413=program[_0xe8c39b(0xfb)](),_0x59ad53=await createTDXInstance(_0x1a1413),_0x5bf1b8=await _0x2ce8ba[_0xe8c39b(0x2d6)]({'options':{..._0x1a1413,..._0x20a7cf},'args':[],'tdx':_0x59ad53});gracefulExit(_0x5bf1b8);}),program['command']('upgrade\x20[version]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1c5))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),a2_0x5be36b(0x24e))[a2_0x5be36b(0x9d)]('--next','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x260),a2_0x5be36b(0x288))[a2_0x5be36b(0x1df)](async(_0x1fac2b,_0x207f27)=>{const _0x394db2=a2_0x5be36b,_0x5e4dc4=new UpgradeCommand(),_0x5386be=program[_0x394db2(0xfb)](),_0x52cebd=await _0x5e4dc4[_0x394db2(0x2d6)]({'options':{..._0x5386be,..._0x207f27},'args':_0x1fac2b?[_0x1fac2b]:[],'tdx':null});gracefulExit(_0x52cebd);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x268))[a2_0x5be36b(0x235)](a2_0x5be36b(0x20b))['option'](a2_0x5be36b(0x2e4),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x495e73,_0x4539f6)=>{const _0x3f5ab8=a2_0x5be36b,_0x1e97ff=new UnsetCommand(),_0x2aa55d=program[_0x3f5ab8(0xfb)](),_0x254029=await _0x1e97ff[_0x3f5ab8(0x2d6)]({'options':{..._0x2aa55d,..._0x4539f6},'args':[_0x495e73],'tdx':null});gracefulExit(_0x254029);}),program['command'](a2_0x5be36b(0x1ee))[a2_0x5be36b(0x235)](a2_0x5be36b(0x10e))[a2_0x5be36b(0x9d)]('--last','Show\x20the\x20most\x20recent\x20chat')[a2_0x5be36b(0x1df)](async _0x4a9b11=>{const _0x210751=a2_0x5be36b,_0x50a0a3=new ChatsCommand(),_0x5b61f4=program[_0x210751(0xfb)](),_0x478fc7=await createTDXInstance(_0x5b61f4),_0xb3b73=await _0x50a0a3[_0x210751(0x2d6)]({'options':{..._0x5b61f4,..._0x4a9b11},'args':[],'tdx':_0x478fc7});gracefulExit(_0xb3b73);});const authCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0xe1))[a2_0x5be36b(0x235)](a2_0x5be36b(0x169));async function runAuthStatusCommand(_0x31dc51){const _0x358baa=a2_0x5be36b,_0x2df18a=new AuthStatusCommand(),_0x475884=program[_0x358baa(0xfb)](),_0x760811=await createTDXInstance(_0x475884),_0x46d6a5=await _0x2df18a[_0x358baa(0x2d6)]({'options':{..._0x475884,..._0x31dc51},'args':[],'tdx':_0x760811});gracefulExit(_0x46d6a5);}authCmd[a2_0x5be36b(0x1df)](runAuthStatusCommand),authCmd[a2_0x5be36b(0x226)]('status')[a2_0x5be36b(0x235)](a2_0x5be36b(0x197))[a2_0x5be36b(0x1df)](runAuthStatusCommand),authCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x281))[a2_0x5be36b(0x235)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x1c6))[a2_0x5be36b(0x1df)](async _0x19c859=>{const _0x37c4c6=a2_0x5be36b,_0x5d1e7d=new AuthSetupCommand(),_0x19e795=program['opts'](),_0x27a596=await createTDXInstance(_0x19e795),_0x1c3d54=await _0x5d1e7d[_0x37c4c6(0x2d6)]({'options':{..._0x19e795,..._0x19c859},'args':[],'tdx':_0x27a596});gracefulExit(_0x1c3d54);}),authCmd['command']('login')[a2_0x5be36b(0x235)](a2_0x5be36b(0xb4))[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),'\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\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a')[a2_0x5be36b(0x1df)](async _0x2791a1=>{const _0x76a382=a2_0x5be36b,_0x2a029f=new AuthLoginCommand(),_0x5af669=program[_0x76a382(0xfb)](),_0x44082d=await _0x2a029f[_0x76a382(0x2d6)]({'options':{..._0x5af669,..._0x2791a1},'args':[],'tdx':null});gracefulExit(_0x44082d);}),authCmd[a2_0x5be36b(0x226)]('clear')[a2_0x5be36b(0x235)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x377))['action'](async _0x6834c1=>{const _0x34973d=a2_0x5be36b,_0x93dc40=new AuthClearCommand(),_0x3019cd=program[_0x34973d(0xfb)](),_0xb4374e=await _0x93dc40[_0x34973d(0x2d6)]({'options':{..._0x3019cd,..._0x6834c1},'args':[],'tdx':null});gracefulExit(_0xb4374e);});const userCmd=program[a2_0x5be36b(0x226)]('user')[a2_0x5be36b(0x235)](a2_0x5be36b(0xbb)),userListAction=async _0x3b46ad=>{const _0x16d1c3=a2_0x5be36b,_0x412d82=new UserListCommand(),_0x103665=program['opts'](),_0x541a2c=await createTDXInstance(_0x103665),_0x266851=await _0x412d82[_0x16d1c3(0x2d6)]({'options':{..._0x103665,..._0x3b46ad},'args':[],'tdx':_0x541a2c});gracefulExit(_0x266851);};userCmd[a2_0x5be36b(0x1df)](async _0x3603eb=>{const _0x4594dd=a2_0x5be36b,_0x3317e1=new UserCommand(),_0x286c82=program[_0x4594dd(0xfb)](),_0x36cfd4=await createTDXInstance(_0x286c82),_0x1bb83b=await _0x3317e1[_0x4594dd(0x2d6)]({'options':{..._0x286c82,..._0x3603eb},'args':[],'tdx':_0x36cfd4});gracefulExit(_0x1bb83b);}),userCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x95))['description'](a2_0x5be36b(0x334))[a2_0x5be36b(0x1df)](userListAction),program[a2_0x5be36b(0x226)]('users')[a2_0x5be36b(0x235)](a2_0x5be36b(0x234))[a2_0x5be36b(0x1df)](userListAction);const policyCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x2e7))[a2_0x5be36b(0x235)]('Access\x20control\x20policy\x20commands');policyCmd['action'](async _0xe49a89=>{const _0x627c43=a2_0x5be36b,_0x8ca652=new PolicyCommand(),_0x2052ab=program[_0x627c43(0xfb)](),_0x148c6f=await createTDXInstance(_0x2052ab),_0x1d8f0f=await _0x8ca652['run']({'options':{..._0x2052ab,..._0xe49a89},'args':[],'tdx':_0x148c6f});gracefulExit(_0x1d8f0f);}),policyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x95))['description']('List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)')[a2_0x5be36b(0x1df)](async _0x1377a=>{const _0x3f859e=a2_0x5be36b,_0x21985d=new PolicyListCommand(),_0x38ca95=program[_0x3f859e(0xfb)](),_0x53d172=await createTDXInstance(_0x38ca95),_0x32f382=await _0x21985d[_0x3f859e(0x2d6)]({'options':{..._0x38ca95,..._0x1377a},'args':[],'tdx':_0x53d172});gracefulExit(_0x32f382);}),policyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x179))[a2_0x5be36b(0x235)](a2_0x5be36b(0x22f))[a2_0x5be36b(0x1df)](async(_0x3d4fee,_0x4caf42)=>{const _0x4c0f95=a2_0x5be36b,_0x3e0fd6=new PolicyShowCommand(),_0x392496=program[_0x4c0f95(0xfb)](),_0x3ce410=await createTDXInstance(_0x392496),_0x5da659=await _0x3e0fd6['run']({'options':{..._0x392496,..._0x4caf42},'args':[_0x3d4fee],'tdx':_0x3ce410});gracefulExit(_0x5da659);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x11c))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1a3))[a2_0x5be36b(0x1df)](async _0x3e9950=>{const _0x567fa8=a2_0x5be36b,_0xcb48eb=new ProfilesCommand(),_0x55faca=program[_0x567fa8(0xfb)](),_0xa429e9=await _0xcb48eb[_0x567fa8(0x2d6)]({'options':{..._0x55faca,..._0x3e9950},'args':[],'tdx':null});gracefulExit(_0xa429e9);});const profileCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0xb1))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2cc));profileCmd[a2_0x5be36b(0x1df)](()=>{const _0x4815f2=a2_0x5be36b;profileCmd[_0x4815f2(0x2a8)]();});const profileListAction=async _0x56f217=>{const _0x1997bd=a2_0x5be36b,_0x21702b=new ProfilesCommand(),_0x2783cb=program[_0x1997bd(0xfb)](),_0x56b69f=await _0x21702b[_0x1997bd(0x2d6)]({'options':{..._0x2783cb,..._0x56f217},'args':[],'tdx':null});gracefulExit(_0x56b69f);};profileCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x95))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1a3))[a2_0x5be36b(0x1df)](profileListAction),profileCmd['command']('create\x20[name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x365))[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x27f))[a2_0x5be36b(0x1df)](async(_0x1f88b0,_0x1e7f24)=>{const _0x2b0fa5=a2_0x5be36b,_0x2c8c6b=new ProfileCreateCommand(),_0x159ad7=program['opts'](),_0x26eea1=await _0x2c8c6b[_0x2b0fa5(0x2d6)]({'options':{..._0x159ad7,..._0x1e7f24},'args':_0x1f88b0?[_0x1f88b0]:[],'tdx':null});gracefulExit(_0x26eea1);}),profileCmd['command'](a2_0x5be36b(0x2f7))[a2_0x5be36b(0x235)]('Remove\x20a\x20profile')[a2_0x5be36b(0xfc)]('after',a2_0x5be36b(0x135))['action'](async(_0x791460,_0x167d12)=>{const _0x1685dd=a2_0x5be36b,_0x2c2a9d=new ProfileRemoveCommand(),_0x22f414=program[_0x1685dd(0xfb)](),_0x85d47a=await _0x2c2a9d[_0x1685dd(0x2d6)]({'options':{..._0x22f414,..._0x167d12},'args':[_0x791460],'tdx':null});gracefulExit(_0x85d47a);}),profileCmd[a2_0x5be36b(0x226)]('set\x20<key=value>')[a2_0x5be36b(0x235)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),a2_0x5be36b(0x2b7))[a2_0x5be36b(0x1df)](async(_0x40323f,_0x3d7145)=>{const _0xa44387=a2_0x5be36b,_0x2752df=new ProfileSetCommand(),_0x1d9364=program[_0xa44387(0xfb)](),_0x41c644=await _0x2752df[_0xa44387(0x2d6)]({'options':{..._0x1d9364,..._0x3d7145},'args':[_0x40323f],'tdx':null});gracefulExit(_0x41c644);}),profileCmd[a2_0x5be36b(0x226)]('use\x20<name>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x2fa))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2e4),a2_0x5be36b(0x242))[a2_0x5be36b(0xfc)](a2_0x5be36b(0x140),'\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')['action'](async(_0x5131fb,_0x5aa11b)=>{const _0x51f9ee=new ProfileUseCommand(),_0x346573=program['opts'](),_0x29ef89=await _0x51f9ee['run']({'options':{..._0x346573,..._0x5aa11b},'args':[_0x5131fb],'tdx':null});gracefulExit(_0x29ef89);});const engageCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x145))[a2_0x5be36b(0x235)](a2_0x5be36b(0x165)),createEngageAction=_0x19dd0e=>{return async(_0x3b27f9,_0x9af89)=>{const _0x2c2fb2=a2_0x9676,_0x45e7be=new _0x19dd0e(),_0x4b7730=program[_0x2c2fb2(0xfb)](),_0x3f48e8=await createTDXInstance(_0x4b7730),_0x299a33=await _0x45e7be['run']({'options':{..._0x4b7730,..._0x9af89},'args':[_0x3b27f9],'tdx':_0x3f48e8});gracefulExit(_0x299a33);};},createEngageNoArgAction=_0x28f540=>{return async _0x118ec5=>{const _0x3b7d3f=a2_0x9676,_0x55e7bb=new _0x28f540(),_0xdaa997=program['opts'](),_0x45bd04=await createTDXInstance(_0xdaa997),_0x30f18b=await _0x55e7bb[_0x3b7d3f(0x2d6)]({'options':{..._0xdaa997,..._0x118ec5},'args':[],'tdx':_0x45bd04});gracefulExit(_0x30f18b);};},createEngageListAction=_0x4532f5=>{return async(_0x48bf57,_0x321613)=>{const _0x35d96e=a2_0x9676,_0x1394f2=new _0x4532f5(),_0x2ecf9c=program[_0x35d96e(0xfb)](),_0x4c7584=await createTDXInstance(_0x2ecf9c),_0x36297d=await _0x1394f2[_0x35d96e(0x2d6)]({'options':{..._0x2ecf9c,..._0x321613},'args':_0x48bf57?[_0x48bf57]:[],'tdx':_0x4c7584});gracefulExit(_0x36297d);};},campaignCmd=engageCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xa9))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ac));campaignCmd['command'](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x233))['option'](a2_0x5be36b(0x2ef),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0xc6))[a2_0x5be36b(0x9d)]('--workspace\x20<name>','Workspace\x20name')[a2_0x5be36b(0x1df)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x5be36b(0x19b))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ab))['option']('--type\x20<type>',a2_0x5be36b(0x23d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x1df)](createEngageListAction(EngageCampaignsCommand)),campaignCmd['command'](a2_0x5be36b(0x363))[a2_0x5be36b(0x235)]('Show\x20campaign\x20details')['option'](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))['option'](a2_0x5be36b(0x270),a2_0x5be36b(0x362))[a2_0x5be36b(0x1df)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d9))[a2_0x5be36b(0x235)](a2_0x5be36b(0xea))[a2_0x5be36b(0xf1)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x305))[a2_0x5be36b(0xf1)]('--type\x20<type>',a2_0x5be36b(0x112))[a2_0x5be36b(0x9d)]('--workspace\x20<name>',a2_0x5be36b(0x32f))[a2_0x5be36b(0x9d)]('--description\x20<desc>',a2_0x5be36b(0x158))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x31e),a2_0x5be36b(0x273))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xc9),a2_0x5be36b(0x265))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x16a),a2_0x5be36b(0x1e1))[a2_0x5be36b(0x9d)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ce),a2_0x5be36b(0x2c3))[a2_0x5be36b(0x1df)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x120))[a2_0x5be36b(0x235)]('Update\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x171))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x232),a2_0x5be36b(0x158))[a2_0x5be36b(0x9d)]('--segment\x20<path>',a2_0x5be36b(0x273))[a2_0x5be36b(0x9d)]('--email-sender-id\x20<id>',a2_0x5be36b(0x265))['option']('--json-columns\x20<cols>',a2_0x5be36b(0x1e1))['option'](a2_0x5be36b(0xc2),a2_0x5be36b(0x318))['option'](a2_0x5be36b(0x2ce),a2_0x5be36b(0x2c3))[a2_0x5be36b(0x1df)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x5be36b(0x226)]('delete\x20<name-or-id>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x282))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x230),a2_0x5be36b(0x320))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x38a))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ad))[a2_0x5be36b(0x9d)]('--workspace\x20<name>',a2_0x5be36b(0x17d))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x323))[a2_0x5be36b(0x235)](a2_0x5be36b(0xf3))['option'](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2c2))[a2_0x5be36b(0x235)](a2_0x5be36b(0xfd))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x106))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),'Workspace\x20name')[a2_0x5be36b(0x1df)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x302))[a2_0x5be36b(0x235)](a2_0x5be36b(0xd5))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),'Pull\x20specific\x20campaign\x20by\x20name')[a2_0x5be36b(0x9d)]('--type\x20<type>',a2_0x5be36b(0x23d))['option']('--dry-run',a2_0x5be36b(0x1f8))[a2_0x5be36b(0x1df)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x367))[a2_0x5be36b(0x235)](a2_0x5be36b(0x24c))[a2_0x5be36b(0x9d)]('--workspace\x20<name>','Workspace\x20name')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x209))[a2_0x5be36b(0x235)](a2_0x5be36b(0x15e))[a2_0x5be36b(0x9d)]('--verbose','Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x5be36b(0x1df)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x5be36b(0x226)]('always-on-campaign')[a2_0x5be36b(0x235)](a2_0x5be36b(0x325));alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x130))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ef),a2_0x5be36b(0x23d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ca),a2_0x5be36b(0x16b))[a2_0x5be36b(0xf1)]('--workspace\x20<name>',a2_0x5be36b(0x32f))['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2de))[a2_0x5be36b(0x235)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2ef),a2_0x5be36b(0x23d))['option'](a2_0x5be36b(0x2ca),a2_0x5be36b(0x16b))['requiredOption']('--workspace\x20<name>',a2_0x5be36b(0x32f))['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd['command']('show\x20<name-or-id>')['description'](a2_0x5be36b(0x1b7))[a2_0x5be36b(0xf1)]('--workspace\x20<name>',a2_0x5be36b(0x32f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x270),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d9))[a2_0x5be36b(0x235)](a2_0x5be36b(0x22b))[a2_0x5be36b(0xf1)]('--name\x20<name>','Campaign\x20name')[a2_0x5be36b(0xf1)]('--type\x20<type>',a2_0x5be36b(0x112))[a2_0x5be36b(0xf1)](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))['option']('--description\x20<desc>',a2_0x5be36b(0x158))[a2_0x5be36b(0x9d)]('--segment\x20<path>',a2_0x5be36b(0x23a))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x236),a2_0x5be36b(0x21e))[a2_0x5be36b(0x1df)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x120))[a2_0x5be36b(0x235)]('Update\x20an\x20always-on\x20campaign')['requiredOption'](a2_0x5be36b(0xce),'Workspace\x20name\x20(required)')['option'](a2_0x5be36b(0x2b6),a2_0x5be36b(0x171))[a2_0x5be36b(0x9d)]('--description\x20<desc>',a2_0x5be36b(0x158))[a2_0x5be36b(0x9d)]('--segment\x20<path>',a2_0x5be36b(0x23a))['option'](a2_0x5be36b(0x236),a2_0x5be36b(0x21e))[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd['command'](a2_0x5be36b(0x27c))[a2_0x5be36b(0x235)](a2_0x5be36b(0x15c))['requiredOption'](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))['option'](a2_0x5be36b(0x230),a2_0x5be36b(0x320))[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x38a))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1d1))[a2_0x5be36b(0xf1)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x323))[a2_0x5be36b(0x235)](a2_0x5be36b(0x10b))['requiredOption']('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2c2))[a2_0x5be36b(0x235)](a2_0x5be36b(0xe2))[a2_0x5be36b(0xf1)](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))['action'](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)]('finish\x20<name-or-id>')[a2_0x5be36b(0x235)]('Finish\x20an\x20always-on\x20campaign')[a2_0x5be36b(0xf1)](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x230),a2_0x5be36b(0x320))[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x5be36b(0x226)]('duplicate\x20<name-or-id>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x2a4))['requiredOption'](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))[a2_0x5be36b(0xf1)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x2e8))[a2_0x5be36b(0x1df)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5be36b(0x226)]('template')[a2_0x5be36b(0x235)](a2_0x5be36b(0x240));templateCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x1df)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x21d))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1a4))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x1df)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x363))[a2_0x5be36b(0x235)](a2_0x5be36b(0x329))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x270),a2_0x5be36b(0x362))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d9))['description'](a2_0x5be36b(0x17a))[a2_0x5be36b(0xf1)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x17e))[a2_0x5be36b(0xf1)]('--subject\x20<subject>',a2_0x5be36b(0x26c))[a2_0x5be36b(0x9d)]('--html\x20<html>',a2_0x5be36b(0x26e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x352),a2_0x5be36b(0x14b))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x32f))[a2_0x5be36b(0x9d)]('--plaintext\x20<text>',a2_0x5be36b(0x1eb))['option']('--editor-type\x20<type>','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)',_0x249493=>{const _0x28a3ac=a2_0x5be36b;if(![_0x28a3ac(0x223),_0x28a3ac(0x19c)][_0x28a3ac(0x1c0)](_0x249493))throw new SDKError(ErrorCode[_0x28a3ac(0x154)],'Invalid\x20editor\x20type:\x20'+_0x249493+_0x28a3ac(0x257));return _0x249493;})[a2_0x5be36b(0x1df)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x5be36b(0x120))['description'](a2_0x5be36b(0x1b6))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x199))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xdc),a2_0x5be36b(0x26c))[a2_0x5be36b(0x9d)]('--html\x20<html>',a2_0x5be36b(0x26e))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x352),a2_0x5be36b(0x14b))['option'](a2_0x5be36b(0x20f),a2_0x5be36b(0x1eb))[a2_0x5be36b(0x1df)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1bd))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2df))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),a2_0x5be36b(0x283))[a2_0x5be36b(0x9d)]('-y,\x20--yes',a2_0x5be36b(0x320))[a2_0x5be36b(0x9d)]('--dry-run',a2_0x5be36b(0x1f8))[a2_0x5be36b(0x1df)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x5be36b(0x226)]('push\x20[target]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x251))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),'Workspace\x20name')[a2_0x5be36b(0x9d)]('-y,\x20--yes',a2_0x5be36b(0x320))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),a2_0x5be36b(0x347))[a2_0x5be36b(0x1df)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x209))[a2_0x5be36b(0x235)](a2_0x5be36b(0x2a9))[a2_0x5be36b(0x9d)]('--verbose',a2_0x5be36b(0xe5))[a2_0x5be36b(0x1df)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x5be36b(0x226)]('delete\x20<name-or-id>')['description'](a2_0x5be36b(0x2ff))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xce),'Workspace\x20name')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x230),a2_0x5be36b(0x320))[a2_0x5be36b(0x1df)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5be36b(0x226)]('workspace')[a2_0x5be36b(0x235)](a2_0x5be36b(0xba));workspaceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1ed))[a2_0x5be36b(0x1df)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x5be36b(0x226)]('workspaces\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x2b1))['action'](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x5be36b(0x226)]('show\x20<name-or-id>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x25b))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x270),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x5be36b(0x1df)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2d9))['description']('Create\x20a\x20workspace')[a2_0x5be36b(0xf1)]('--name\x20<name>',a2_0x5be36b(0x17d))[a2_0x5be36b(0x9d)]('--description\x20<desc>',a2_0x5be36b(0x92))[a2_0x5be36b(0x1df)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x120))[a2_0x5be36b(0x235)]('Update\x20a\x20workspace')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x2b6),'New\x20workspace\x20name')['option']('--description\x20<desc>',a2_0x5be36b(0x92))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x27c))[a2_0x5be36b(0x235)](a2_0x5be36b(0xb0))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x230),a2_0x5be36b(0x320))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1fd))[a2_0x5be36b(0x235)](a2_0x5be36b(0x1fa))[a2_0x5be36b(0x1df)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program['command']('delivery')['description'](a2_0x5be36b(0x1be));function a2_0x3c99(){const _0x18c3e4=['[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','pause\x20<name-or-id>','Agent\x20prompt/instructions','Always-on\x20campaign\x20management','--master','history\x20[chat-id]','push\x20[name]','Show\x20email\x20template\x20details','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','show\x20[name]','--limit\x20<rows>','--last','forEach','Workspace\x20name\x20(required)','Show\x20a\x20specific\x20realtime\x20personalization','sql\x20[segment_name]','pull\x20[name]','Resume\x20from\x20specific\x20task\x20(retry)','List\x20all\x20users\x20in\x20the\x20account','Maximum\x20rows\x20to\x20display','--catalog\x20<catalog>','stringify','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','log','Parent\x20segment\x20management','Request\x20body\x20as\x20JSON\x20string','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--customer-group-file\x20<file>','--chat-id\x20<id>','--session-time\x20<time>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Start\x20a\x20new\x20chat\x20session','--to\x20<timestamp>','--job-type\x20<type>','Open\x20segment\x20in\x20web\x20browser','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','map','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','project','split','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Clear\x20session\x20context','Show\x20segment\x20details\x20(alias\x20for\x20view)','784540nziJTZ','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--html-file\x20<path>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20journey\x20statistics','Skip\x20validation\x20of\x20.dig\x20files','Output\x20as\x20JSON','List\x20composable\x20audiences','folder','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','--attributes-file\x20<file>','Set\x20operation\x20timeout\x20in\x20seconds','--from\x20<timestamp>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--stage\x20<name>','update\x20<name>','--path\x20<file-path>','Database\x20name','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','show\x20<name-or-id>','connections','Create\x20a\x20new\x20profile','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','push\x20[target]','--json','...','Open\x20parent\x20segment\x20in\x20web\x20browser','--limit\x20<n>','Show\x20timeline\x20for\x20specific\x20attempt','--delete','--from\x20<date>','--revision\x20<revision>','Personalization\x20name','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','options','Version\x20number\x20to\x20view','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','schedule','Set\x20or\x20show\x20parent\x20segment\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','Include\x20subtasks\x20in\x20tasks\x20output','set','Enable\x20verbose\x20logging','Usage:\x20','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','run\x20[name]','parent-segment','Ending\x20offset\x20(default:\x2020)','Retry\x20limit\x20(0\x20to\x2032)','commandDescription','Attributes\x20from\x20JSON\x20file','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','\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','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','-p,\x20--profile\x20<name>','catch','Trino\x20catalog\x20(default:\x20td)','create\x20<name>\x20<service_id>\x20[parent_segment]','launch\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20all\x20versions\x20of\x20a\x20journey','directory','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Workspace\x20description','Read\x20query\x20from\x20file','-H,\x20--header\x20<header>','list','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','trace','Delete\x20an\x20LLM\x20project','argumentTerm','allowUnknownOption','-v,\x20--verbose','182cKHdDK','option','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','show\x20[segment_name]','Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Validate\x20journey\x20YAML\x20files\x20locally','result\x20<job-id>','validate\x20[name]','Maximum\x20number\x20of\x20nodes','help','argv','INFO','campaign','parents\x20[pattern]','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Query\x20type:\x20trino\x20or\x20hive','settings\x20<type>','Delete\x20a\x20workspace','profile','--param\x20<key=value>','Follow/watch\x20timeline\x20for\x20running\x20attempts','Login\x20via\x20OAuth\x20(dev\x20sites\x20only)','required','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Personalization\x20management','--table','Workspace\x20management','User\x20management\x20commands','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Pull\x20specific\x20revision\x20(default:\x20latest)','LLM\x20agent\x20management','--reeval','Show\x20stats\x20for\x20specific\x20stage','--start-at\x20<datetime>','update\x20<segment_name>','preview\x20<segment_name>','segment','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','desc\x20[segment_name]','--email-sender-id\x20<id>','Timezone\x20for\x20cron','parent','New\x20segment\x20name','api\x20[endpoint]','--workspace\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--attribute\x20[name]','-u,\x20--use','Open\x20journey\x20in\x20web\x20browser','retry\x20<session-id>','--add-behaviors\x20<json>','Pull\x20campaigns\x20to\x20YAML\x20files','--enriched','chat\x20[message...]','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--name\x20<text>','--subject\x20<subject>','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','pause\x20<name-or-path>','allowExcessArguments','--from-task\x20<task>','auth','Resume\x20a\x20paused\x20always-on\x20campaign','sessions\x20[project]','use\x20<project-name>','Show\x20all\x20files\x20including\x20valid\x20ones','Clear\x20workflow\x20project\x20context','resume\x20<name-or-path>','--retry-limit\x20<0~32>','token','Create\x20a\x20new\x20campaign','4BwXZjj','--add-behaviors-file\x20<file>','--folder-id\x20<id>','--starter-message\x20<text>','--attempt-id\x20<id>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','requiredOption','RT\x202.0\x20configuration\x20management','Pause\x20a\x20campaign','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','argumentDescription','test\x20[path]','attempt:','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--in\x20<database>','1020900ImMzSR','opts','addHelpText','Resume\x20a\x20paused\x20campaign','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior',',\x20version\x20','-d,\x20--database\x20<database>','Resume\x20from\x20specific\x20task','tdx','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','--folder\x20<name>','Duplicate\x20a\x20campaign','audience','--params\x20<json>','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Pause\x20an\x20always-on\x20campaign','--sections\x20<json>','agent','Interactive\x20chat\x20selector','jsonl','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','delete\x20<service_id>\x20[parent_segment]','Campaign\x20type\x20(email\x20or\x20push)','history\x20<name>','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Parent\x20segment\x20description','Maximum\x20tool\x20iterations\x20(default:\x204)','repeat','--from\x20<n>','tasks','profiles','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','update\x20<agent-name>','update\x20<name-or-id>','Push\x20YAML\x20files\x20to\x20CAS\x20API','--to\x20<n>','--include-history','tsv','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Folder\x20description','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Make\x20segment\x20invisible\x20(default:\x20visible)','workflows\x20[project]','Timezone\x20(e.g.,\x20America/Los_Angeles)','delete\x20<name>','--audience-id\x20<id>','[attempt-id]','DEBUG','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','show\x20<service_id>\x20[parent_segment]','Kill\x20a\x20job','Limit\x20number\x20of\x20rows','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','-o,\x20--output\x20<dir>','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Agent\x20name','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','createAsync','Delete\x20a\x20realtime\x20personalization','service','--time\x20<iso8601>','System\x20prompt/instructions\x20(default:\x20empty)','after','information_schema','--max-depth\x20<depth>','--dry-run','attempt','engage','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','apiKey','Segment\x20description','--customer-group\x20<json>','logLevel','Read\x20HTML\x20template\x20from\x20file','Output\x20file\x20path','pull\x20<project>\x20[target-dir]','Show\x20journey\x20table\x20column-to-step\x20mapping','engage_workspace','-o,\x20--output\x20<folder>','show\x20<name>','--trace','--parent-folder\x20<name>','INVALID_ARGUMENT','Create\x20a\x20new\x20LLM\x20project','Create\x20segment\x20folder','padEnd','Campaign\x20description','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','-f,\x20--force','Include\x20retried\x20attempts','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','\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','Validate\x20campaign\x20YAML\x20files\x20locally','Custom\x20revision\x20name\x20(default:\x20timestamp)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','-f,\x20--file\x20<path>','Output\x20folder\x20(default:\x20{project_name}.llm)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--version','show\x20<folder_ref>','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Authentication\x20management','--json-columns\x20<cols>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','\x22.\x20Must\x20be\x20a\x20number.','Job\x20priority\x20(-2\x20to\x202)','chdir','New\x20campaign\x20name','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','activations\x20<segment_name>','optionTerm','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--dir\x20<dir>','[EXPERIMENTAL]\x20Show\x20chat\x20log','--limit\x20<number>','show\x20<policy>','Create\x20an\x20email\x20template','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Output\x20directory','Workspace\x20name','Template\x20name','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','List\x20activations\x20for\x20a\x20journey','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Name\x20for\x20the\x20new\x20project\x20(required)','--num\x20<1-10>','--in\x20<db>','delete\x20<project-name-or-id>','trino','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','create\x20<name>\x20[parent_segment]','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Push\x20without\x20confirmation','Filtering\x20rule\x20from\x20JSON\x20file','End\x20time\x20filter\x20(ISO\x208601\x20format)','upgrade','fields\x20[name]','--interval\x20<range>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','variadic','version','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Add\x20attributes\x20as\x20JSON\x20string','New\x20template\x20name','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','campaigns\x20[pattern]','grapesjs','--delay\x20<seconds>','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','YAML\x20file\x20path\x20for\x20unpushed\x20segment','list\x20[pattern]','gitRevision','Project\x20description','List\x20all\x20available\x20profiles','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','registeredArguments','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','patch\x20<personalization_id>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','List\x20jobs','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Campaign\x20management','Launch\x20a\x20campaign','Cron\x20expression\x20for\x20scheduling','CDP\x20segment\x20management\x20commands','use\x20[name]','debug','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','connection','clone\x20[source-dir]','Run\x20specific\x20tests\x20(comma-separated)','Update\x20an\x20email\x20template','Show\x20always-on\x20campaign\x20details','--include-stats','List\x20all\x20data\x20connections','--stream','Table\x20management\x20commands','journey','pull\x20[workspace]','Delivery\x20operations\x20(email\x20senders)','segments\x20[path]','includes','Create\x20a\x20scheduled\x20query','--tsv','--behaviors\x20<json>','update\x20<service_id>\x20[parent_segment]','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','\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','--session\x20<id>','--include-retried','Show\x20job\x20details','-a,\x20--agent\x20<name>','list\x20[project]','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','preview\x20[file]','--new','1980WeQsVj','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Launch\x20an\x20always-on\x20campaign','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','then','24924mumiZd','698898aLELpi','versions\x20<name-or-path>','name','restore\x20<folder>','[action]','Run\x20a\x20scheduled\x20query\x20immediately','alias','Delete\x20a\x20scheduled\x20query','format','Directory\x20does\x20not\x20exist:\x20','action','--invisible','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Move\x20to\x20folder','buildTime','optionDescription','-r,\x20--recursive','desc','--name\x20<new-name>','Database\x20management\x20commands','Parent\x20folder\x20name\x20for\x20nested\x20folders','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Plaintext\x20template\x20content','Continue\x20most\x20recent\x20conversation','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','chats','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--to\x20<date>','-d,\x20--database\x20<db>','exit','Database\x20name\x20(required)','isArray','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<name-or-path>','--rule-file\x20<file>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','llm','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','_list-commands','types','use\x20<name>','-w,\x20--web','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','query\x20[sql]','view\x20[name]','--behavior\x20[name]','length','Add\x20behaviors\x20from\x20JSON\x20file','Read\x20request\x20body\x20from\x20file','logs','Resume\x20a\x20paused\x20journey','padWidth','validate\x20[target]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','job','usage','330xZGaGx','--plaintext\x20<text>','session','log\x20<chat-id>','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','models','New\x20service\x20name','isDirectory','Update\x20a\x20scheduled\x20query','flags','create\x20<parent_name>\x20<folder_name>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--schedule-option\x20<value>','--database\x20<db>','Preview\x20without\x20creating\x20the\x20project','templates\x20[pattern]','Enable\x20UTM\x20tracking','fields\x20[parent_name]','database','--add-attributes\x20<json>','Pause\x20activations\x20in\x20an\x20RT\x20journey','beefree','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','sql\x20[name]','command','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--parent-segment\x20<name>','tdx\x20','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Create\x20a\x20new\x20always-on\x20campaign','Run\x20tests\x20for\x20an\x20LLM\x20agent','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','--yes','--allowed-ips\x20<ips>','--description\x20<desc>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','description','--enable-utm-tracking','show\x20<job-id>','818881EipgDC','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','6OWBOuL','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','clone\x20[source]','Email\x20template\x20management','kill\x20<job-id>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','List\x20available\x20LLM\x20models','--include-subtasks','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--priority\x20<-2~2>','commands','Include\x20raw\x20history\x20data\x20in\x20output','configureHelp','Delete\x20an\x20agent','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Generate\x20test\x20conversations\x20without\x20evaluation','Check\x20for\x20updates\x20without\x20installing','upload\x20[project-name-or-dir]','List\x20email\x20senders','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','--table\x20<table>','delete\x20<personalization_id>','secrets','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','preview\x20[name]','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','9448aRgTEA','List\x20agents\x20in\x20current\x20project','Show\x20workspace\x20details','Updated\x20description','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','--method\x20<pm>','Database\x20name\x20(default:\x20information_schema)','Force\x20retry\x20even\x20if\x20not\x20failed','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Manage\x20workflow\x20project\x20secrets','Email\x20sender\x20ID\x20for\x20delivery','jobs','Include\x20retried\x20attempts\x20(for\x20list)','unset\x20<resource>','Database\x20to\x20query\x20(default:\x20information_schema)','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','--cron\x20<expression>','Email\x20subject\x20template','Start\x20time\x20filter\x20(ISO\x208601\x20format)','HTML\x20template\x20content','Path\x20is\x20not\x20a\x20directory:\x20','--full','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Change\x20to\x20directory\x20before\x20executing\x20command','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--model\x20<name>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','aliases','push\x20[source-dir]','--version\x20<number>','filter','Pause\x20a\x20running\x20journey','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','delete\x20<name-or-id>','--database\x20<name>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','\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','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','setup','Delete\x20a\x20campaign','Pull\x20specific\x20template\x20by\x20name','list\x20[name]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Show\x20journey\x20details','info\x20[segment_name]','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','--prompt\x20<text>','Job\x20management\x20commands','--temperature\x20<n>','describe','table','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','view\x20<name-or-path>','parent_segment','--timeout\x20<seconds>','Unknown\x20action:\x20','List\x20composable\x20segments\x20for\x20an\x20audience','-1d','--description\x20<text>','--jsonl','databases\x20[pattern]','--skip-validation','claude\x20[args...]','slice','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','_hidden','--color','stats\x20<name-or-path>','join','preAction','isTTY','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Duplicate\x20an\x20always-on\x20campaign','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','stdout','workflow','outputHelp','Validate\x20template\x20YAML\x20files\x20locally','Workflow\x20parameter\x20(repeatable)','--file\x20<path>','\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','Parse\x20and\x20validate\x20without\x20executing','--engine-version\x20<version>','claude-4.5-sonnet','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Get\x20current\x20RT\x20configuration\x20version\x20status','run\x20<name>','cas','--schedule-type\x20<type>','--name\x20<name>','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Export\x20journey(s)\x20as\x20YAML\x20files','subcommandDescription','mcp','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Personalization\x20description','Updated\x20timezone','Preview\x20composable\x20segment\x20query\x20on\x20CDW','resume\x20<name-or-id>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','push','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Updated\x20schedule\x20option','Reason\x20for\x20killing\x20the\x20attempt','-o,\x20--output\x20<file>','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','--status\x20<status>','CDP\x20Journey\x20Orchestration\x20commands','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','--timezone\x20<tz>','-c,\x20--continue','resume_activations\x20<journeyId>','status','statusline','--llm-project\x20<name>','Result\x20output\x20destination\x20URL','kill','run','Target\x20directory\x20for\x20YAML\x20files','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','create','Query\x20engine\x20version','--format\x20<format>','--output\x20<file>','Pull\x20workflow\x20project\x20to\x20local\x20folder','always-on-campaigns\x20[pattern]','Pull\x20templates\x20to\x20YAML\x20files','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--type\x20<api_type>','colorFn','-X,\x20--method\x20<method>','--default','Timezone\x20for\x20cron\x20(default:\x20UTC)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','policy','Name\x20for\x20the\x20duplicated\x20campaign','Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)','delete\x20<token_id>\x20[parent_segment]','--force','RT\x20Journey\x20management','traffic\x20<name-or-path>','--rule\x20<json>','--type\x20<type>','describe\x20[table]','--help','show\x20<personalization_id>','--add-attributes-file\x20<file>','Service\x20description','long','delete\x20<agent-name>','remove\x20<name>','--debug','argument','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Starting\x20offset\x20(default:\x200)','submit\x20[query]','desc\x20[name]','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Delete\x20an\x20email\x20template','delete\x20<args...>','columns\x20<name-or-path>','pull\x20[workspace-name]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Campaign\x20name','use\x20[project]','Overwrite\x20local\x20changes\x20without\x20confirmation','TRACE','1945OdnJDL','[options]\x20--\x20[claude-code-args...]','pause_activations\x20<journeyId>','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Read\x20SQL\x20query\x20from\x20file','Task\x20name\x20for\x20logs\x20action','\x20-\x20built\x20','Skip\x20population\x20counting','Output\x20as\x20JSON\x20Lines','error','create\x20<segment_name>','Maximum\x20recursion\x20depth\x20(default:\x2010)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','create\x20<name>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','pull\x20[parent_or_file]','--name\x20<names>','agents\x20[pattern]','Get\x20job\x20results','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--segment\x20<path>','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Skip\x20confirmation\x20prompt','Show\x20master\x20table\x20sample\x20data'];a2_0x3c99=function(){return _0x18c3e4;};return a2_0x3c99();}deliveryCmd[a2_0x5be36b(0x226)]('senders\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x250))[a2_0x5be36b(0x9d)]('--workspace\x20<name>',a2_0x5be36b(0x17d))['action'](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program['command'](a2_0x5be36b(0x1b3))[a2_0x5be36b(0x235)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x2136a2=>{const _0x204d0b=new ConnectionListCommand(),_0x108eef=program['opts'](),_0x4d8b71=await createTDXInstance(_0x108eef),_0x462fa9=await _0x204d0b['run']({'options':{..._0x108eef,..._0x2136a2},'args':[],'tdx':_0x4d8b71});gracefulExit(_0x462fa9);};connectionCmd[a2_0x5be36b(0x226)]('list')[a2_0x5be36b(0x235)](a2_0x5be36b(0x1b9))[a2_0x5be36b(0x1df)](connectionListAction),program['command'](a2_0x5be36b(0x364),{'hidden':!![]})[a2_0x5be36b(0x235)](a2_0x5be36b(0x346))['action'](connectionListAction),connectionCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x151))[a2_0x5be36b(0x235)]('Show\x20connection\x20details\x20by\x20name')[a2_0x5be36b(0x1df)](async(_0x12707c,_0x492b62)=>{const _0x51c602=a2_0x5be36b,_0x10ce2e=new ConnectionShowCommand(),_0x424a34=program['opts'](),_0x322248=await createTDXInstance(_0x424a34),_0x3d9a47=await _0x10ce2e[_0x51c602(0x2d6)]({'options':{..._0x424a34,..._0x492b62},'args':[_0x12707c],'tdx':_0x322248});gracefulExit(_0x3d9a47);}),connectionCmd[a2_0x5be36b(0x226)]('schema\x20<type>')['description'](a2_0x5be36b(0x196))[a2_0x5be36b(0x1df)](async(_0x336503,_0x4ec827)=>{const _0x5eff90=a2_0x5be36b,_0x4086df=new ConnectionSchemaCommand(),_0x530ef3=program['opts'](),_0x2863d2=await createTDXInstance(_0x530ef3),_0x268182=await _0x4086df[_0x5eff90(0x2d6)]({'options':{..._0x530ef3,..._0x4ec827},'args':[_0x336503],'tdx':_0x2863d2});gracefulExit(_0x268182);}),connectionCmd['command'](a2_0x5be36b(0x1fc))[a2_0x5be36b(0x235)]('List\x20available\x20connector\x20types')['action'](async _0x18d7ae=>{const _0x3e3662=a2_0x5be36b,_0x52150b=new ConnectionTypesCommand(),_0x2b3ca2=program[_0x3e3662(0xfb)](),_0xd3dbb7=await createTDXInstance(_0x2b3ca2),_0x45b6a=await _0x52150b[_0x3e3662(0x2d6)]({'options':{..._0x2b3ca2,..._0x18d7ae},'args':[],'tdx':_0xd3dbb7});gracefulExit(_0x45b6a);}),connectionCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xaf))[a2_0x5be36b(0x235)](a2_0x5be36b(0x34d))[a2_0x5be36b(0x1df)](async(_0x3373f4,_0x1a5295)=>{const _0x46e4fb=a2_0x5be36b,_0x2d7517=new ConnectionSettingsCommand(),_0x58b2a6=program[_0x46e4fb(0xfb)](),_0x301158=await createTDXInstance(_0x58b2a6),_0x31c269=await _0x2d7517['run']({'options':{..._0x58b2a6,..._0x1a5295},'args':[_0x3373f4],'tdx':_0x301158});gracefulExit(_0x31c269);});const casCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x2b4))[a2_0x5be36b(0x235)](a2_0x5be36b(0x195));casCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x95))[a2_0x5be36b(0x235)](a2_0x5be36b(0x357))[a2_0x5be36b(0x1df)](async _0x8e1e87=>{const _0x28f502=a2_0x5be36b,_0x2af795=new CASListCommand(),_0x41e644=program['opts'](),_0x56c7c2=await createTDXInstance(_0x41e644),_0x1174a9=await _0x2af795[_0x28f502(0x2d6)]({'options':{..._0x41e644,..._0x8e1e87},'args':[],'tdx':_0x56c7c2});gracefulExit(_0x1174a9);}),casCmd[a2_0x5be36b(0x226)]('desc\x20[name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0xa0))[a2_0x5be36b(0x1df)](async(_0x39499a,_0xde0c1)=>{const _0x58c708=new CASDescCommand(),_0xe1cfa6=program['opts'](),_0x1b0aa8=await createTDXInstance(_0xe1cfa6),_0x238969=await _0x58c708['run']({'options':{..._0xe1cfa6,..._0xde0c1},'args':_0x39499a?[_0x39499a]:[],'tdx':_0x1b0aa8});gracefulExit(_0x238969);}),casCmd[a2_0x5be36b(0x226)]('pull\x20[name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x30c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x176),a2_0x5be36b(0x2d7))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x5be36b(0x1df)](async(_0x408340,_0x50cf5e)=>{const _0x44400d=a2_0x5be36b,_0x46d1f7=new CASPullCommand(),_0x21c570=program[_0x44400d(0xfb)](),_0x54e837=await createTDXInstance(_0x21c570),_0x9ef59=await _0x46d1f7[_0x44400d(0x2d6)]({'options':{..._0x21c570,..._0x50cf5e},'args':_0x408340?[_0x408340]:[],'tdx':_0x54e837});gracefulExit(_0x9ef59);}),casCmd['command'](a2_0x5be36b(0x367))[a2_0x5be36b(0x235)](a2_0x5be36b(0x121))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x143),a2_0x5be36b(0xda))['action'](async(_0x1d0329,_0x3888c3)=>{const _0x3233ff=a2_0x5be36b,_0x129a22=new CASPushCommand(),_0x806768=program[_0x3233ff(0xfb)](),_0x326980=await createTDXInstance(_0x806768),_0x3ab5c3=await _0x129a22[_0x3233ff(0x2d6)]({'options':{..._0x806768,..._0x3888c3},'args':_0x1d0329?[_0x1d0329]:[],'tdx':_0x326980});gracefulExit(_0x3ab5c3);}),casCmd['command'](a2_0x5be36b(0xc4))['description'](a2_0x5be36b(0x2c1))['option']('--audience\x20<name>','Composable\x20audience\x20name')[a2_0x5be36b(0x1df)](async(_0x487f84,_0xd8ba1)=>{const _0x4f3cd5=a2_0x5be36b,_0x3e8fe8=new CASPreviewCommand(),_0x8b175f=program['opts'](),_0x1ed481=await createTDXInstance(_0x8b175f),_0x4d960a=await _0x3e8fe8[_0x4f3cd5(0x2d6)]({'options':{..._0x8b175f,..._0xd8ba1},'args':[_0x487f84,_0xd8ba1[_0x4f3cd5(0x107)]],'tdx':_0x1ed481});gracefulExit(_0x4d960a);});const casSgCmd=casCmd['command']('sg')[a2_0x5be36b(0x235)]('Composable\x20segment\x20commands');casSgCmd['command']('list\x20[audience_name]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x294))[a2_0x5be36b(0x1df)](async(_0x59128a,_0x175427)=>{const _0x132f9d=a2_0x5be36b,_0x33b65e=new CASSegmentListCommand(),_0x194c7c=program[_0x132f9d(0xfb)](),_0x19f975=await createTDXInstance(_0x194c7c),_0x1b277e=await _0x33b65e['run']({'options':{..._0x194c7c,..._0x175427},'args':_0x59128a?[_0x59128a]:[],'tdx':_0x19f975});gracefulExit(_0x1b277e);});const journeyCmd=program['command'](a2_0x5be36b(0x1bc))['description'](a2_0x5be36b(0x2cb)),journeyListAction=async(_0x1784f8,_0x289d5a)=>{const _0x3a9e46=a2_0x5be36b,_0x4a59b6=new JourneyListCommand(),_0x528f61=program['opts'](),_0x25edda=await createTDXInstance(_0x528f61),_0x2b580e=await _0x4a59b6[_0x3a9e46(0x2d6)]({'options':{..._0x528f61,..._0x289d5a},'args':_0x1784f8?[_0x1784f8]:[],'tdx':_0x25edda});gracefulExit(_0x2b580e);};journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1a0))[a2_0x5be36b(0x235)]('List\x20journeys\x20in\x20current\x20context')[a2_0x5be36b(0x1df)](journeyListAction),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x290))['description'](a2_0x5be36b(0x286))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1fe),a2_0x5be36b(0xd2))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1b8),'Include\x20execution\x20statistics')[a2_0x5be36b(0x1df)](async(_0x39dab6,_0x4aae25)=>{const _0x3cc1b8=a2_0x5be36b,_0x7ecc30=new JourneyViewCommand(),_0x1f5cb6=program[_0x3cc1b8(0xfb)](),_0x425e33=await createTDXInstance(_0x1f5cb6),_0x55f02d=await _0x7ecc30[_0x3cc1b8(0x2d6)]({'options':{..._0x1f5cb6,..._0x4aae25},'args':[_0x39dab6],'tdx':_0x425e33});gracefulExit(_0x55f02d);}),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x29f))['description'](a2_0x5be36b(0x354))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x35e),a2_0x5be36b(0xc1))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36e),a2_0x5be36b(0xbc))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1f0),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x123),a2_0x5be36b(0x249))[a2_0x5be36b(0x1df)](async(_0x141f03,_0x4007e8)=>{const _0x3d31d6=a2_0x5be36b,_0x44d23c=new JourneyStatsCommand(),_0x31f701=program[_0x3d31d6(0xfb)](),_0xf29787=await createTDXInstance(_0x31f701),_0x56948a=await _0x44d23c[_0x3d31d6(0x2d6)]({'options':{..._0x31f701,..._0x4007e8},'args':[_0x141f03],'tdx':_0xf29787});gracefulExit(_0x56948a);}),journeyCmd['command'](a2_0x5be36b(0x2ed))[a2_0x5be36b(0x235)]('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')['option'](a2_0x5be36b(0x2ef),a2_0x5be36b(0x109))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x36e),a2_0x5be36b(0xbc))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1f0),a2_0x5be36b(0x17f))[a2_0x5be36b(0x9d)]('--limit\x20<number>',a2_0x5be36b(0xa5),_0x3dcdec=>{const _0xf8286a=a2_0x5be36b,_0x3f5d5d=parseInt(_0x3dcdec,0xa);if(isNaN(_0x3f5d5d))throw new Error('Invalid\x20--limit\x20value:\x20\x22'+_0x3dcdec+_0xf8286a(0x16e));return _0x3f5d5d;})[a2_0x5be36b(0x1df)](async(_0x5e28d3,_0x2dc83d)=>{const _0x632299=a2_0x5be36b,_0x118dc4=new JourneyTrafficCommand(),_0x1e95af=program[_0x632299(0xfb)](),_0x2192bd=await createTDXInstance(_0x1e95af),_0xeef5e4=await _0x118dc4['run']({'options':{..._0x1e95af,..._0x2dc83d},'args':[_0x5e28d3],'tdx':_0x2192bd});gracefulExit(_0xeef5e4);}),journeyCmd['command'](a2_0x5be36b(0xde))[a2_0x5be36b(0x235)](a2_0x5be36b(0x27a))[a2_0x5be36b(0x1df)](async(_0x4a15b7,_0x42cc10)=>{const _0x18f114=a2_0x5be36b,_0x34e9ad=new JourneyPauseCommand(),_0x1cf644=program[_0x18f114(0xfb)](),_0x128752=await createTDXInstance(_0x1cf644),_0x4ea435=await _0x34e9ad['run']({'options':{..._0x1cf644,..._0x42cc10},'args':[_0x4a15b7],'tdx':_0x128752});gracefulExit(_0x4ea435);}),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xe7))[a2_0x5be36b(0x235)](a2_0x5be36b(0x207))[a2_0x5be36b(0x1df)](async(_0x464115,_0x50d15d)=>{const _0x2d0df0=a2_0x5be36b,_0x146c92=new JourneyResumeCommand(),_0x12b64d=program[_0x2d0df0(0xfb)](),_0x5c2c40=await createTDXInstance(_0x12b64d),_0x317e1f=await _0x146c92['run']({'options':{..._0x12b64d,..._0x50d15d},'args':[_0x464115],'tdx':_0x5c2c40});gracefulExit(_0x317e1f);}),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x332))['description'](a2_0x5be36b(0x2bb))[a2_0x5be36b(0x9d)]('--dry-run',a2_0x5be36b(0x1cc))['action'](async(_0x536bea,_0x34fa63)=>{const _0x7bf7fc=a2_0x5be36b,_0x4f4b94=new JourneyPullCommand(),_0x28c9f0=program['opts'](),_0x412e06=await createTDXInstance(_0x28c9f0),_0x226198=await _0x4f4b94[_0x7bf7fc(0x2d6)]({'options':{..._0x28c9f0,..._0x34fa63},'args':_0x536bea?[_0x536bea]:[],'tdx':_0x412e06});gracefulExit(_0x226198);}),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x367))['description'](a2_0x5be36b(0x366))[a2_0x5be36b(0x1df)](async(_0x451488,_0x2be54c)=>{const _0x19ce62=a2_0x5be36b,_0x2fb392=new JourneyPushCommand(),_0x155622=program[_0x19ce62(0xfb)](),_0x3a2865=await createTDXInstance(_0x155622),_0x3e9e15=await _0x2fb392[_0x19ce62(0x2d6)]({'options':{..._0x155622,..._0x2be54c},'args':_0x451488?[_0x451488]:[],'tdx':_0x3a2865});gracefulExit(_0x3e9e15);}),journeyCmd['command'](a2_0x5be36b(0x301))[a2_0x5be36b(0x235)](a2_0x5be36b(0x14e))[a2_0x5be36b(0x1df)](async(_0x1d87b5,_0x483aa0)=>{const _0x587c17=a2_0x5be36b,_0x527a71=new JourneyColumnsCommand(),_0x5aa943=program[_0x587c17(0xfb)](),_0x38ab9b=await createTDXInstance(_0x5aa943),_0x2be1fd=await _0x527a71[_0x587c17(0x2d6)]({'options':{..._0x5aa943,..._0x483aa0},'args':[_0x1d87b5],'tdx':_0x38ab9b});gracefulExit(_0x2be1fd);}),journeyCmd[a2_0x5be36b(0x226)]('activations\x20<name-or-path>')[a2_0x5be36b(0x235)](a2_0x5be36b(0x180))[a2_0x5be36b(0x1df)](async(_0x34e31a,_0x1d83ba)=>{const _0x24a0ca=a2_0x5be36b,_0x1f975b=new JourneyActivationsCommand(),_0x37a81b=program['opts'](),_0x33e357=await createTDXInstance(_0x37a81b),_0x4982d7=await _0x1f975b[_0x24a0ca(0x2d6)]({'options':{..._0x37a81b,..._0x1d83ba},'args':[_0x34e31a],'tdx':_0x33e357});gracefulExit(_0x4982d7);}),journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1d6))[a2_0x5be36b(0x235)](a2_0x5be36b(0x8f))[a2_0x5be36b(0x1df)](async(_0x19b380,_0x9c447a)=>{const _0x1cf24f=a2_0x5be36b,_0x933898=new JourneyVersionsCommand(),_0x2b605b=program[_0x1cf24f(0xfb)](),_0xb0fced=await createTDXInstance(_0x2b605b),_0x568e17=await _0x933898[_0x1cf24f(0x2d6)]({'options':{..._0x2b605b,..._0x9c447a},'args':[_0x19b380],'tdx':_0xb0fced});gracefulExit(_0x568e17);});const journeyVersionCmd=journeyCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x193))[a2_0x5be36b(0x235)]('Journey\x20version\x20management');journeyVersionCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x1f6))[a2_0x5be36b(0x235)](a2_0x5be36b(0x338))[a2_0x5be36b(0x1df)](async(_0x293b85,_0x3cd758)=>{const _0x1a7f4b=a2_0x5be36b,_0x3478d4=new JourneyVersionCreateCommand(),_0x49bb08=program['opts'](),_0x21bf33=await createTDXInstance(_0x49bb08),_0x2509c5=await _0x3478d4[_0x1a7f4b(0x2d6)]({'options':{..._0x49bb08,..._0x3cd758},'args':[_0x293b85],'tdx':_0x21bf33});gracefulExit(_0x2509c5);}),journeyVersionCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x290))['description'](a2_0x5be36b(0x2a3))['requiredOption'](a2_0x5be36b(0x278),a2_0x5be36b(0x373))[a2_0x5be36b(0x1df)](async(_0x51adb0,_0x1649dc)=>{const _0x363951=a2_0x5be36b,_0x20b838=new JourneyVersionViewCommand(),_0x1c171e=program[_0x363951(0xfb)](),_0x38c843=await createTDXInstance(_0x1c171e),_0x2ae967=await _0x20b838[_0x363951(0x2d6)]({'options':{..._0x1c171e,..._0x1649dc},'args':[_0x51adb0],'tdx':_0x38c843});gracefulExit(_0x2ae967);}),journeyCmd['command']('validate\x20[target]')['description'](a2_0x5be36b(0xa2))[a2_0x5be36b(0x1df)](async(_0x32b3e5,_0x31f053)=>{const _0xd8464d=a2_0x5be36b,_0xf4937b=new JourneyValidateCommand(),_0x382aff=program[_0xd8464d(0xfb)](),_0x45dbf0=await createTDXInstance(_0x382aff),_0x23823a=await _0xf4937b[_0xd8464d(0x2d6)]({'options':{..._0x382aff,..._0x31f053},'args':_0x32b3e5?[_0x32b3e5]:[],'tdx':_0x45dbf0});gracefulExit(_0x23823a);}),program['command']('journeys\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x263))[a2_0x5be36b(0x1df)](journeyListAction);const agentSyncCmd=program[a2_0x5be36b(0x226)](a2_0x5be36b(0x10d))[a2_0x5be36b(0x235)](a2_0x5be36b(0xbf));agentSyncCmd[a2_0x5be36b(0x226)]('pull\x20[project]\x20[agent-name]')[a2_0x5be36b(0x235)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')['option'](a2_0x5be36b(0x137),a2_0x5be36b(0x17c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x15a),a2_0x5be36b(0x307))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x1ca),a2_0x5be36b(0x359))[a2_0x5be36b(0x1df)](async(_0x32d46c,_0x204265,_0x8fde9c)=>{const _0x15a43b=a2_0x5be36b,_0x1958e1=new AgentPullCommand(),_0x2b14b0=program[_0x15a43b(0xfb)](),_0x70ac06=await createTDXInstance(_0x2b14b0),_0x3648f8=[];if(_0x32d46c)_0x3648f8[_0x15a43b(0x2c4)](_0x32d46c);if(_0x204265)_0x3648f8[_0x15a43b(0x2c4)](_0x204265);const _0x9ba384=await _0x1958e1[_0x15a43b(0x2d6)]({'options':{..._0x2b14b0,..._0x8fde9c},'args':_0x3648f8,'tdx':_0x70ac06});gracefulExit(_0x9ba384);}),agentSyncCmd['command']('push\x20[path]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x239))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x15a),a2_0x5be36b(0x18b))[a2_0x5be36b(0x1df)](async(_0x124c7d,_0x56b8d8)=>{const _0x38a2e7=a2_0x5be36b,_0x111371=new AgentPushCommand(),_0x1ec087=program[_0x38a2e7(0xfb)](),_0x58104c=await createTDXInstance(_0x1ec087),_0x40893b=await _0x111371[_0x38a2e7(0x2d6)]({'options':{..._0x1ec087,..._0x56b8d8},'args':_0x124c7d?[_0x124c7d]:[],'tdx':_0x58104c});gracefulExit(_0x40893b);}),agentSyncCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x23f))[a2_0x5be36b(0x235)](a2_0x5be36b(0x11e))[a2_0x5be36b(0x9d)]('-n,\x20--name\x20<name>','Name\x20for\x20the\x20new\x20project\x20(required)')['action'](async(_0x52e23d,_0x3e046f)=>{const _0x4732ac=new AgentCloneCommand(),_0x2e1a1a=program['opts'](),_0x54ecf3=await createTDXInstance(_0x2e1a1a),_0x291eab=await _0x4732ac['run']({'options':{..._0x2e1a1a,..._0x3e046f},'args':_0x52e23d?[_0x52e23d]:[],'tdx':_0x54ecf3});gracefulExit(_0x291eab);}),agentSyncCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0xf6))['description'](a2_0x5be36b(0x22c))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x31a),a2_0x5be36b(0x1b5))[a2_0x5be36b(0x9d)]('--tags\x20<tags>',a2_0x5be36b(0xb6))['option']('--dry-run',a2_0x5be36b(0x2ad))[a2_0x5be36b(0x9d)]('--no-eval',a2_0x5be36b(0x24d))['option'](a2_0x5be36b(0xc0),a2_0x5be36b(0x33d))[a2_0x5be36b(0x1df)](async(_0x18f05a,_0x287590)=>{const _0x457661=a2_0x5be36b,_0x2bba48=new AgentTestCommand(),_0x3cb42b=program[_0x457661(0xfb)](),_0x2b7a72=await createTDXInstance(_0x3cb42b),_0x4edb6d=await _0x2bba48[_0x457661(0x2d6)]({'options':{..._0x3cb42b,..._0x287590},'args':_0x18f05a?[_0x18f05a]:[],'tdx':_0x2b7a72});gracefulExit(_0x4edb6d);}),agentSyncCmd[a2_0x5be36b(0x226)]('list\x20[pattern]')[a2_0x5be36b(0x235)](a2_0x5be36b(0x25a))[a2_0x5be36b(0x1df)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x5be36b(0x235)]('Show\x20agent\x20details')[a2_0x5be36b(0x1df)](async(_0xebe9ac,_0x640a66)=>{const _0x3a7b4e=a2_0x5be36b,_0x2c751f=new LLMAgentShowCommand(),_0x3e6607=program[_0x3a7b4e(0xfb)](),_0x18c235=await createTDXInstance(_0x3e6607),_0x39beea=await _0x2c751f[_0x3a7b4e(0x2d6)]({'options':{..._0x3e6607,..._0x640a66},'args':[_0xebe9ac],'tdx':_0x18c235});gracefulExit(_0x39beea);}),agentSyncCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x317))[a2_0x5be36b(0x235)](a2_0x5be36b(0xd9))[a2_0x5be36b(0x9d)]('--system-prompt\x20<text>',a2_0x5be36b(0x13f))['option'](a2_0x5be36b(0x274),a2_0x5be36b(0x11d),a2_0x5be36b(0x2af))[a2_0x5be36b(0x9d)](a2_0x5be36b(0xee),'Starter\x20message')[a2_0x5be36b(0x9d)]('--max-tool-iterations\x20<n>',a2_0x5be36b(0x118),'4')[a2_0x5be36b(0x9d)](a2_0x5be36b(0x28b),a2_0x5be36b(0x285),'0.7')[a2_0x5be36b(0x1df)](async(_0x3cebe5,_0x2e7965)=>{const _0x34c896=a2_0x5be36b,_0x4c3264=new LLMAgentCreateCommand(),_0x4f00df=program[_0x34c896(0xfb)](),_0x43c1be=await createTDXInstance(_0x4f00df),_0x23d51d=await _0x4c3264[_0x34c896(0x2d6)]({'options':{..._0x4f00df,..._0x2e7965},'args':[_0x3cebe5],'tdx':_0x43c1be});gracefulExit(_0x23d51d);}),agentSyncCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x11f))['description']('Update\x20an\x20existing\x20agent')[a2_0x5be36b(0x9d)](a2_0x5be36b(0xdb),a2_0x5be36b(0x139))[a2_0x5be36b(0x9d)](a2_0x5be36b(0x289),a2_0x5be36b(0x324))[a2_0x5be36b(0x9d)]('--description\x20<text>','Agent\x20description')[a2_0x5be36b(0x9d)]('--starter-message\x20<text>','Starter\x20message')['action'](async(_0x5a9854,_0x1e1aae)=>{const _0x31ae7e=a2_0x5be36b,_0x35a8f0=new LLMAgentUpdateCommand(),_0x26337b=program[_0x31ae7e(0xfb)](),_0xb354dd=await createTDXInstance(_0x26337b),_0x18ecad=await _0x35a8f0[_0x31ae7e(0x2d6)]({'options':{..._0x26337b,..._0x1e1aae},'args':[_0x5a9854],'tdx':_0xb354dd});gracefulExit(_0x18ecad);}),agentSyncCmd[a2_0x5be36b(0x226)](a2_0x5be36b(0x2f6))[a2_0x5be36b(0x235)](a2_0x5be36b(0x24b))['action'](async(_0x2e5ea0,_0x365422)=>{const _0x104b11=a2_0x5be36b,_0x28232b=new LLMAgentDeleteCommand(),_0x1750f3=program[_0x104b11(0xfb)](),_0x197a67=await createTDXInstance(_0x1750f3),_0x368f07=await _0x28232b[_0x104b11(0x2d6)]({'options':{..._0x1750f3,..._0x365422},'args':[_0x2e5ea0],'tdx':_0x197a67});gracefulExit(_0x368f07);}),program[a2_0x5be36b(0x226)](a2_0x5be36b(0x1fb),{'hidden':!![]})[a2_0x5be36b(0x1df)](()=>{const _0x177515=a2_0x5be36b;function _0x3082ed(_0x23f7a2,_0xdfdddc){const _0x1b359e=a2_0x9676,_0x252818=[];for(const _0x333e77 of _0x23f7a2[_0x1b359e(0x248)]){if(_0x333e77[_0x1b359e(0x29d)])continue;const _0x4e3f38=_0xdfdddc?_0xdfdddc+'\x20'+_0x333e77[_0x1b359e(0x1d7)]():_0x333e77[_0x1b359e(0x1d7)](),_0x29a35d=_0x4e3f38[_0x1b359e(0x34c)]('\x20')[0x0],_0x5097a3=COMMAND_CATEGORIES['find'](_0x1777dd=>_0x1777dd[_0x1b359e(0x248)][_0x1b359e(0x1c0)](_0x29a35d)),_0x1e670c=_0x5097a3?.[_0x1b359e(0x1d7)]??'';if(_0x333e77[_0x1b359e(0x248)][_0x1b359e(0x203)]>0x0)_0x252818[_0x1b359e(0x2c4)](..._0x3082ed(_0x333e77,_0x4e3f38));else{const _0x45a026=(_0x333e77[_0x1b359e(0x1a5)]||[])[_0x1b359e(0x349)](_0x28c8d7=>{const _0x57f3d0=_0x1b359e,_0x336c1a=_0x28c8d7[_0x57f3d0(0x192)]?_0x28c8d7['name']()+_0x57f3d0(0x369):_0x28c8d7['name']();return _0x28c8d7[_0x57f3d0(0xb5)]?'<'+_0x336c1a+'>':'['+_0x336c1a+']';})[_0x1b359e(0x2a0)]('\x20'),_0x3f5527=_0x333e77[_0x1b359e(0x372)][_0x1b359e(0x279)](_0x54c095=>!_0x54c095['hidden']&&_0x54c095[_0x1b359e(0x2f5)]!==_0x1b359e(0x2f1))['map'](_0x29806d=>({'flags':_0x29806d[_0x1b359e(0x217)],'description':_0x29806d[_0x1b359e(0x235)]}));_0x252818[_0x1b359e(0x2c4)]({'name':_0x4e3f38,'description':_0x333e77[_0x1b359e(0x235)](),'group':_0x1e670c,'usage':_0x45a026,'options':_0x3f5527});}}return _0x252818;}console['log'](JSON[_0x177515(0x337)](_0x3082ed(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x408a28=a2_0x5be36b,_0x2404b5=!process[_0x408a28(0xa7)]['slice'](0x2)[_0x408a28(0x203)];showBriefHelp=_0x2404b5,program['parse'](process[_0x408a28(0xa7)]);_0x2404b5&&program[_0x408a28(0x2a8)]();const _0x332fa5=process[_0x408a28(0xa7)][0x2]===_0x408a28(0x18e);if(process['stderr'][_0x408a28(0x2a2)]&&process[_0x408a28(0xa7)][_0x408a28(0x203)]>0x2&&!isDevVersion()&&!_0x332fa5){const _0x8b3d1c=loadReleaseChannel();checkForUpdate(currentVersion,_0x8b3d1c)[_0x408a28(0x1d3)](_0x5397dd=>{_0x5397dd&&displayUpdateNotification(_0x5397dd);})[_0x408a28(0x387)](()=>{});}}
1
+ const a2_0x43e9ef=a2_0x3ef4;(function(_0x146821,_0x21a4e4){const _0x187068=a2_0x3ef4,_0x3b045d=_0x146821();while(!![]){try{const _0xa2c321=parseInt(_0x187068(0x39f))/0x1+-parseInt(_0x187068(0x360))/0x2+parseInt(_0x187068(0x21c))/0x3*(-parseInt(_0x187068(0x4ce))/0x4)+parseInt(_0x187068(0x3cc))/0x5+-parseInt(_0x187068(0x2de))/0x6+-parseInt(_0x187068(0x455))/0x7+parseInt(_0x187068(0x354))/0x8*(parseInt(_0x187068(0x30b))/0x9);if(_0xa2c321===_0x21a4e4)break;else _0x3b045d['push'](_0x3b045d['shift']());}catch(_0x2b3d5f){_0x3b045d['push'](_0x3b045d['shift']());}}}(a2_0x39f5,0x24428));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}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';function a2_0x39f5(){const _0x2642ab=['--segment\x20<path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Pull\x20specific\x20template\x20by\x20name','isArray','--data\x20<data>','--github\x20<owner/repo>','pull\x20[workspace]','--include-subtasks','work','use\x20[resource]\x20[value]','--force','Initial\x20status','Add\x20behaviors\x20from\x20JSON\x20file','pull\x20[parent_or_file]','--subject\x20<subject>','--workspace\x20<name>','Attempt\x20ID','Show\x20always-on\x20campaign\x20details','workspaces\x20[pattern]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--prompt\x20<text>','--path\x20<file-path>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','Open\x20a\x20document\x20in\x20$EDITOR','json','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Create\x20segment\x20folder','Check\x20for\x20updates\x20without\x20installing','Read\x20SQL\x20query\x20from\x20file','allowExcessArguments','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','chdir','--public','Launch\x20a\x20campaign','--from-task\x20<task>','Show\x20segment\x20details\x20(alias\x20for\x20view)','Project\x20description','--yes','info\x20[segment_name]','Delete\x20a\x20realtime\x20personalization','INVALID_ARGUMENT','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','Show\x20email\x20template\x20details','clone\x20[source]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--customer-group\x20<json>','describe\x20[table]','Show\x20journey\x20table\x20column-to-step\x20mapping','Read\x20request\x20body\x20from\x20file','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Personalization\x20service\x20token\x20management','push','buildTime','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','trace','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-d,\x20--database\x20<database>','Create\x20a\x20new\x20document','Remove\x20a\x20profile','optionTerm','set\x20<args...>','Priority\x20(critical,\x20high,\x20medium,\x20low)','-o,\x20--output\x20<dir>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','campaigns\x20[pattern]','-y,\x20--yes','types','Updated\x20description','delete\x20<name>','New\x20campaign\x20name','tables\x20[pattern]','push\x20[name]','forEach','delete\x20<name-or-id>','padWidth','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Read\x20query\x20from\x20file','Create\x20a\x20new\x20LLM\x20project','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Include\x20subtasks\x20in\x20tasks\x20output','Commands:','System\x20prompt/instructions\x20(default:\x20empty)','statusline','Run\x20Trino\x20query\x20with\x20streaming\x20results','Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)','Pull\x20child\x20segments\x20to\x20YAML\x20files','--to\x20<n>','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','activations\x20<name-or-path>','pause\x20<name-or-path>','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','Add\x20attributes\x20from\x20JSON\x20file','use\x20[project]','error','Run\x20specific\x20tests\x20(comma-separated)','7628ujkbGP','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Database\x20name\x20(required)','Workspace\x20management','settings\x20<type>','run','duplicate\x20<name-or-id>','show\x20<job-id>','-v,\x20--verbose','Pull\x20campaigns\x20to\x20YAML\x20files','--customer-group-file\x20<file>','Workflow\x20(Digdag)\x20management\x20commands','parent-segment','Arguments:','validate\x20[name]','show\x20<name-or-id>','Token\x20description','show\x20<personalization_id>','use\x20<project-name>','Job\x20management\x20commands','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','Pause\x20an\x20always-on\x20campaign','Open\x20journey\x20in\x20web\x20browser','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--session-time\x20<time>','--email-sender-id\x20<id>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','view\x20[segment_name]','kill\x20<job-id>','--audience-id\x20<id>','--time\x20<iso8601>','commands','--from\x20<date>','--interval\x20<range>','User\x20management\x20commands','--no-proxy','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--rule\x20<json>','Resume\x20a\x20paused\x20journey','item','preview\x20[file]','New\x20template\x20name','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Workspace\x20name\x20(required)','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Add\x20behaviors\x20as\x20JSON\x20string','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','chat\x20[message...]','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Timezone\x20for\x20cron','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','List\x20composable\x20audiences','Validate\x20campaign\x20YAML\x20files\x20locally','--add-attributes-file\x20<file>','--allowed-ips\x20<ips>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','--audience\x20<name>','Set\x20operation\x20timeout\x20in\x20seconds','Update\x20an\x20existing\x20agent','Updated\x20timezone','--folder\x20<name>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','jsonl','grapesjs','new\x20<title>','Cron\x20expression\x20for\x20scheduling','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--agent\x20<ref>','workflows\x20[project]','Email\x20sender\x20ID\x20for\x20delivery','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','delete\x20<personalization_id>','backup\x20<name>','show\x20<agent-name>','template','project','Resume\x20a\x20paused\x20campaign','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','always-on-campaigns\x20[pattern]','--new','Interactive\x20chat\x20selector','Open\x20segment\x20in\x20web\x20browser','--add-behaviors-file\x20<file>','--assignee\x20<assignee>','--session-id\x20<id>','--clear','list\x20[project]','parent_segment','Clear\x20session\x20context','--starter-message\x20<text>','-n,\x20--name\x20<name>','--delay\x20<seconds>','stdout','Duplicate\x20a\x20campaign','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','users','length','--kind\x20<type>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','mcp','--result\x20<url>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--start-at\x20<datetime>','opts','subcommandDescription','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','48dnNZdt','columns\x20<name-or-path>','Show\x20schedule\x20execution\x20history','Skip\x20validation\x20of\x20.dig\x20files','Show\x20master\x20table\x20sample\x20data','--tsv','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Updated\x20schedule\x20option','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Run\x20tests\x20for\x20an\x20LLM\x20agent','0.7','Sections\x20as\x20an\x20inline\x20JSON\x20array','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--enriched','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','stats\x20<name-or-path>','desc','Show\x20workspace\x20details','Include\x20retried\x20attempts\x20(for\x20list)','Personalization\x20service\x20management','-o,\x20--output\x20<file>','workflow','create\x20<name-or-path>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','tdx\x20','patch\x20<personalization_id>','--schedule-option\x20<value>','Always-on\x20campaign\x20management','--type\x20<type>','Workspace\x20description','exit','--to\x20<timestamp>','--no-eval','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Maximum\x20rows\x20to\x20display','--plaintext\x20<text>','Initialize\x20a\x20new\x20workspace','New\x20service\x20description','agent','List\x20available\x20LLM\x20models','list\x20[path]','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','noColor','list\x20[pattern]','parents\x20[pattern]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','hidden','outputHelp','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Starting\x20offset\x20(default:\x200)','Transition\x20a\x20task\x20to\x20a\x20new\x20status','folder','query\x20[sql]','segments\x20[path]','pull\x20[name]','Delete\x20an\x20LLM\x20project','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Follow/watch\x20timeline\x20for\x20running\x20attempts','agents\x20[pattern]','pause\x20<name-or-id>','--include-history','claude\x20[args...]','Task\x20name\x20for\x20logs\x20action','Make\x20segment\x20invisible\x20(default:\x20visible)','Query\x20engine\x20version','Pause\x20a\x20campaign','[options]\x20--\x20[claude-code-args...]','Create\x20a\x20workspace','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Database\x20name','usage','Describe\x20table\x20schema','--max-depth\x20<depth>','--html-file\x20<path>','Maximum\x20recursion\x20depth\x20(default:\x2010)','--database\x20<name>','fields\x20[parent_name]','--include-retried','Data\x20connection\x20management\x20(for\x20activations/exports)','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--timezone\x20<tz>','auth','--engine-version\x20<version>','addHelpText','projects\x20[pattern]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','resume_activations\x20<journeyId>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Add\x20attributes\x20as\x20JSON\x20string','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Output\x20file\x20path','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','--param\x20<key=value>','Clear\x20workflow\x20project\x20context','action','validate\x20[file]','View\x20a\x20specific\x20version\x20of\x20a\x20journey','preAction','_hidden','Push\x20without\x20confirmation','--reason\x20<text>','Personalization\x20name','--json','catch','--params\x20<json>','Get\x20job\x20results','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--to\x20<date>','--in\x20<db>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','service','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Behaviors\x20as\x20JSON\x20string','Parent\x20folder\x20name\x20for\x20nested\x20folders','open\x20<name>','join','templates\x20[pattern]','--limit\x20<number>','Show\x20all\x20files\x20including\x20valid\x20ones','INFO','attempt','Preview\x20composable\x20segment\x20query\x20on\x20CDW','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--temperature\x20<n>','logs','Workspace\x20name','Submit\x20a\x20job','Query\x20type:\x20trino\x20or\x20hive','senders\x20[pattern]','Force\x20retry\x20even\x20if\x20not\x20failed','required','option','New\x20segment\x20name','launch\x20<name-or-id>','campaign','Include\x20raw\x20history\x20data\x20in\x20output','--attempt-id\x20<id>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--cron\x20<expression>','update\x20<name-or-id>','fields\x20[name]','List\x20jobs','\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','download\x20<project-name>\x20[output-dir]','show\x20<policy>','--from\x20<timestamp>','Update\x20a\x20campaign','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Access\x20control\x20policy\x20commands','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','commandDescription','Retry\x20limit\x20(0\x20to\x2032)','pull\x20[project]\x20[agent-name]','-c,\x20--continue','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','argumentTerm','--body\x20<body>','--master','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','flatMap','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','map','Show\x20document\x20details','create\x20<segment_name>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Campaign\x20description','--session\x20<id>','Preview\x20changes\x20without\x20pushing','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','Custom\x20revision\x20name\x20(default:\x20timestamp)','Delivery\x20operations\x20(email\x20senders)','--site\x20<site>','pull\x20[workspace-name]','help','--limit\x20<rows>','Revision\x20name\x20(default:\x20timestamp)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','name','--json-columns\x20<cols>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','CDP\x20Journey\x20Orchestration\x20commands','set','1082286lnZGgP','create\x20<name>','Setup\x20API\x20key\x20authentication\x20interactively','Show\x20journey\x20details','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--follow','-f,\x20--force','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Update\x20a\x20workspace','setup','--priority\x20<-2~2>','Plaintext\x20template\x20content','--schedule-type\x20<type>','preview\x20[name]','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','claude-4.5-sonnet','Create\x20a\x20new\x20profile','--timeout\x20<seconds>','models','Change\x20to\x20directory\x20before\x20executing\x20command','\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','Launch\x20an\x20always-on\x20campaign','Output\x20directory','Show\x20stats\x20for\x20specific\x20stage','trino','timeline\x20[project.workflow]','Folder\x20description','Include\x20retried\x20attempts','pause_activations\x20<journeyId>','Starter\x20message','Filtering\x20rule\x20as\x20JSON\x20string','--name\x20<text>','Continue\x20most\x20recent\x20conversation','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','[task-name]','Folder\x20name\x20for\x20organization','--color','List\x20composable\x20segments\x20for\x20an\x20audience','--name\x20<new-name>','Output\x20folder\x20(default:\x20{project_name}.llm)','aliases','--add-behaviors\x20<json>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--full','--name\x20<name>','9qTrLkW','registeredArguments','Attributes\x20from\x20JSON\x20file','Output\x20as\x20JSON','-f,\x20--file\x20<path>','engage_workspace','DEBUG','stderr','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','result\x20<job-id>','--enable-utm-tracking','Reason\x20for\x20killing\x20the\x20attempt','--revision\x20<revision>','Get\x20current\x20RT\x20configuration\x20version\x20status','database','Document\x20body\x20text','Job\x20priority\x20(-2\x20to\x202)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20email\x20senders','finish\x20<name-or-id>','Pull\x20specific\x20revision\x20(default:\x20latest)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','upload\x20[project-name-or-dir]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','-r,\x20--recursive','clear','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','desc\x20[name]','includes','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','\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','site','slice','\x22.\x20Must\x20be\x20a\x20number.','--method\x20<pm>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','profile','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Agent\x20prompt/instructions','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--output\x20<file>','Override\x20project\x20name','Maximum\x20tool\x20iterations\x20(default:\x204)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','End\x20time\x20filter\x20(ISO\x208601\x20format)','\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','options','directory','-X,\x20--method\x20<method>','argumentDescription','--rule-file\x20<file>','--verbose','--behaviors-file\x20<file>','Show\x20timeline\x20for\x20specific\x20attempt','format','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','padEnd','version','-u,\x20--use','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','\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\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a','gitRevision','information_schema','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Output\x20as\x20JSON\x20Lines','flags','--priority\x20<priority>','list\x20[name]','3641432FNRVwq','Skip\x20confirmation\x20prompt','show\x20[table]','Include\x20execution\x20statistics','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Campaign\x20management','--description\x20<desc>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','542370AFSdie','create\x20<name>\x20<service_id>\x20[parent_segment]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--sections\x20<json>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','TRACE','Open\x20parent\x20segment\x20in\x20web\x20browser','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','clone\x20[source-dir]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--model\x20<name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Options:','validate\x20[target]','Timezone\x20for\x20cron\x20(default:\x20UTC)','tdx','Result\x20output\x20destination\x20URL','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--parent-segment\x20<name>','--default','run\x20[name]','Preview\x20changes\x20without\x20writing\x20files','use\x20<name>','Delete\x20an\x20agent','use\x20<path>','subcommandTerm','--tags\x20<tags>','list','--from\x20<n>','parse','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','-p,\x20--profile\x20<name>','Unknown\x20action:\x20','Update\x20an\x20email\x20template','Update\x20an\x20always-on\x20campaign','push\x20[path]','HTML\x20template\x20content','Finish\x20an\x20always-on\x20campaign','[action]','after','push\x20[target]','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','--template\x20<name>','--table','--table\x20<table>','allowUnknownOption','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','GET','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Resume\x20a\x20paused\x20always-on\x20campaign','Delete\x20a\x20scheduled\x20query','New\x20service\x20name','-r,\x20--resume','table','[DEPRECATED]\x20Segment\x20folder\x20management','show\x20[segment_name]','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','delete\x20<project-name-or-id>','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Composable\x20segment\x20commands','Segment\x20description','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','54213eaDUDF','--database\x20<db>','audience','Show\x20only\x20master\x20table\x20validation','--dry-run','Agent\x20name','Kill\x20a\x20job','\x20-\x20built\x20','desc\x20[segment_name]','update\x20<name>','journeys\x20[pattern]','List\x20secret\x20keys\x20for\x20a\x20project','Login\x20via\x20OAuth\x20(dev\x20sites\x20only)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--editor-type\x20<type>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','filter','Show\x20Kanban\x20board\x20view\x20of\x20tasks','Campaign\x20name','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Manage\x20workflow\x20project\x20secrets','--retry-limit\x20<0~32>','--skip-validation','delete\x20<args...>','secrets','-1d','Master\x20database\x20name','Customer\x20group\x20as\x20JSON\x20string','--max-tool-iterations\x20<n>','resume\x20<name-or-path>','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Parse\x20and\x20validate\x20without\x20executing','Move\x20to\x20folder','description','init\x20[name]','delete\x20<agent-name>','view\x20[name]','Usage:\x20','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Set\x20a\x20profile\x20configuration\x20value','606665EnDzix','Personalization\x20management','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','journey','Behaviors\x20from\x20JSON\x20file','Update\x20a\x20realtime\x20personalization\x20entity','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','Attributes\x20as\x20JSON\x20string','log','Invalid\x20--limit\x20value:\x20\x22','Database\x20to\x20query\x20(default:\x20information_schema)','create\x20<name>\x20[parent_segment]','get','Campaign\x20type\x20(email\x20or\x20push)','-o,\x20--output\x20<folder>','tsv','--catalog\x20<catalog>','--in\x20<database>','create\x20<parent_name>\x20<folder_name>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Personalization\x20description','board','Show\x20segment\x20schema\x20(column\x20types)','restore\x20<folder>','Show\x20connection\x20details\x20by\x20name','argument','alias','-d,\x20--database\x20<db>','--add-attributes\x20<json>','update\x20<service_id>\x20[parent_segment]','Workflow\x20parameter\x20(repeatable)','Start\x20a\x20new\x20chat\x20session','show\x20<folder_ref>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--attribute\x20[name]','create','--attributes-file\x20<file>','Pull\x20workflow\x20project\x20to\x20local\x20folder','commandUsage','[EXPERIMENTAL]\x20Show\x20chat\x20log','Alias\x20for\x20--database\x20(natural\x20language\x20style)','...','log\x20<chat-id>','Filtering\x20rule\x20from\x20JSON\x20file','long','Validate\x20journey\x20YAML\x20files\x20locally','Delete\x20a\x20campaign','update\x20<agent-name>','Directory\x20does\x20not\x20exist:\x20','--version','view\x20<name-or-path>','activations\x20<segment_name>','then','--trace','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','logLevel','Apply\x20a\x20template','optionDescription','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','Create\x20a\x20new\x20campaign','CDP\x20segment\x20management\x20commands','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','sql\x20[name]','--type\x20<api_type>','--status\x20<status>','upgrade\x20[version]','command','push\x20[file]','createAsync','Show\x20agent\x20details','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','List\x20all\x20available\x20profiles','--invisible','apiKey','List\x20agents\x20in\x20current\x20project','[attempt-id]','status','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--debug','delete\x20<token_id>\x20[parent_segment]','--last','injectIntoOptions','Invalid\x20editor\x20type:\x20','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','schedule','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','LLM\x20project\x20management','--file\x20<path>','remove\x20<name>','databases\x20[pattern]','Output\x20file\x20path\x20(default:\x20<name>.yml)','policy','run\x20<name>','--jsonl','Create\x20a\x20scheduled\x20query','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','argv','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Authentication\x20management','unset\x20<resource>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Show\x20authentication\x20status\x20and\x20current\x20context','upgrade','Assignee','--behavior\x20[name]','Limit\x20number\x20of\x20rows','Skip\x20population\x20counting','Email\x20subject\x20template','Scheduled\x20query\x20management\x20commands','RT\x202.0\x20configuration\x20management','Show\x20journey\x20statistics','describe','isDirectory','attempts\x20[project]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Workflow\x20attempt\x20management','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Name\x20for\x20the\x20new\x20project\x20(required)','Generate\x20test\x20conversations\x20without\x20evaluation','--job-type\x20<type>','--folder-id\x20<id>','engage','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','requiredOption','segment','show\x20<name>','connections','Enable\x20UTM\x20tracking','Delete\x20a\x20workspace','List\x20all\x20users\x20in\x20the\x20account','kill','-a,\x20--agent\x20<name>','889SRbhHn','Target\x20directory\x20for\x20YAML\x20files','colorFn','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20a\x20specific\x20realtime\x20personalization','-w,\x20--web','Parent\x20segment\x20management','split','resume\x20<name-or-id>','Validate\x20template\x20YAML\x20files\x20locally','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Parent\x20segment\x20description','variadic','set\x20<key=value>','Read\x20HTML\x20template\x20from\x20file','configuration_versions\x20[name]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20campaign\x20details','run\x20[workflow]','--description\x20<text>'];a2_0x39f5=function(){return _0x2642ab;};return a2_0x39f5();}import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-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_0x43e9ef(0x431)][a2_0x43e9ef(0x327)](a2_0x43e9ef(0x3ff))){let versionOutput=a2_0x43e9ef(0x235)+currentVersion;buildInfo[a2_0x43e9ef(0x34d)]&&!currentVersion[a2_0x43e9ef(0x327)](buildInfo[a2_0x43e9ef(0x34d)])&&(versionOutput+='\x20('+buildInfo[a2_0x43e9ef(0x34d)]+')'),buildInfo[a2_0x43e9ef(0x4a1)]&&(versionOutput+=a2_0x43e9ef(0x3a6)+buildInfo[a2_0x43e9ef(0x4a1)]),console[a2_0x43e9ef(0x3d5)](versionOutput),process[a2_0x43e9ef(0x23b)](0x0);}const program=new Command();export function mergeCommandOptions(_0x1eabd2,_0x2a565f){const _0x641f1d={..._0x1eabd2};for(const [_0x3278b9,_0x454fc2]of Object['entries'](_0x2a565f)){_0x454fc2!==undefined&&(_0x641f1d[_0x3278b9]=_0x454fc2);}return _0x641f1d;}let showBriefHelp=![],description=a2_0x43e9ef(0x359);buildInfo['gitRevision']&&!currentVersion[a2_0x43e9ef(0x327)](buildInfo[a2_0x43e9ef(0x34d)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x43e9ef(0x34d)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x43e9ef(0x2d9)](a2_0x43e9ef(0x36f))[a2_0x43e9ef(0x3c1)](description),program[a2_0x43e9ef(0x2a7)]('-C,\x20--directory\x20<path>',a2_0x43e9ef(0x2f1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x37f),a2_0x43e9ef(0x27c))['option'](a2_0x43e9ef(0x2d1),a2_0x43e9ef(0x328),'us01')['option']('--format\x20<format>',a2_0x43e9ef(0x2db))['option'](a2_0x43e9ef(0x38b),a2_0x43e9ef(0x322))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x289),a2_0x43e9ef(0x498))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x42d),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x221),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x338),'Save\x20output\x20to\x20file')['option']('--limit\x20<number>',a2_0x43e9ef(0x264))['option'](a2_0x43e9ef(0x302),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x43e9ef(0x2a7)]('--no-color',a2_0x43e9ef(0x364),![])[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4d7),'Enable\x20verbose\x20logging',![])[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x41e),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x403),a2_0x43e9ef(0x425))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2ef),a2_0x43e9ef(0x1e7),'30')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),'Preview\x20operation\x20without\x20executing',![])[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4b0),'Skip\x20confirmation\x20prompts',![])[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2cc),a2_0x43e9ef(0x2c8))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x372),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x43e9ef(0x2a7)]('--llm-project\x20<name>',a2_0x43e9ef(0x215)),program['configureHelp']({'formatHelp':(_0x4ff870,_0x4ec798)=>{const _0x7fbd0c=a2_0x43e9ef,_0x19036e=_0x4ec798[_0x7fbd0c(0x4b9)](_0x4ff870,_0x4ec798),_0xf31abf=0x2,_0x2f408f=0x2;function _0x37412b(_0x585e8e){const _0x516cc3=_0x7fbd0c,_0x2c30c=_0x585e8e;return!!(_0x2c30c[_0x516cc3(0x285)]||_0x2c30c['hidden']);}function _0x123111(_0x2df736,_0x541fa4){const _0x39cf17=_0x7fbd0c;if(_0x541fa4){const _0x52f0e9=''+_0x2df736[_0x39cf17(0x348)](_0x19036e+_0x2f408f)+_0x541fa4;return _0x52f0e9;}return _0x2df736;}function _0x4d3898(_0x5a8ba9){const _0xa6c31c=_0x7fbd0c;return _0x5a8ba9[_0xa6c31c(0x297)]('\x0a')['replace'](/^/gm,'\x20'['repeat'](_0xf31abf));}const _0x5b04e4=[];_0x5b04e4[_0x7fbd0c(0x4a0)](_0x7fbd0c(0x3c5)+_0x4ec798[_0x7fbd0c(0x3f4)](_0x4ff870));const _0x571269=_0x4ec798[_0x7fbd0c(0x2ba)](_0x4ff870);_0x571269&&(_0x5b04e4[_0x7fbd0c(0x4a0)](''),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x571269));const _0x3963ff=_0x4ff870['commands'][_0x7fbd0c(0x3b0)](_0x4d15eb=>!_0x37412b(_0x4d15eb));if(_0x3963ff[_0x7fbd0c(0x210)]>0x0){if(_0x4ff870[_0x7fbd0c(0x2d9)]()==='tdx'){const _0xd036fa=_0x4ff870[_0x7fbd0c(0x217)](),_0x48006f=!_0xd036fa[_0x7fbd0c(0x248)]&&process[_0x7fbd0c(0x20c)]['isTTY'],_0x4fc9a3=COMMAND_CATEGORIES,_0x586570=(_0x8bb307,_0x3e6dfa)=>_0x48006f?_0x3e6dfa(_0x8bb307):_0x8bb307,_0x55f569=new Map();_0x3963ff[_0x7fbd0c(0x4b7)](_0x4f37df=>{const _0x231485=_0x7fbd0c;_0x55f569[_0x231485(0x2dd)](_0x4f37df['name'](),_0x4f37df);}),_0x4fc9a3[_0x7fbd0c(0x4b7)](_0x1e1abb=>{const _0x225be5=_0x7fbd0c,_0x4a18aa=_0x1e1abb[_0x225be5(0x1cb)][_0x225be5(0x2c3)](_0x2fd477=>_0x55f569[_0x225be5(0x3d9)](_0x2fd477)??[]);if(_0x4a18aa[_0x225be5(0x210)]>0x0){_0x5b04e4[_0x225be5(0x4a0)](''),_0x5b04e4['push'](_0x586570(_0x1e1abb[_0x225be5(0x2d9)]+':',_0x1e1abb[_0x225be5(0x457)]));const _0x2f62aa=_0x4a18aa[_0x225be5(0x2c5)](_0xa54529=>{const _0x5013ea=_0x225be5,_0x46cb3c=_0x4ec798[_0x5013ea(0x379)](_0xa54529),_0x3f3d0b=_0x4ec798[_0x5013ea(0x218)](_0xa54529);return _0x123111(_0x46cb3c,_0x3f3d0b);});_0x5b04e4[_0x225be5(0x4a0)](_0x4d3898(_0x2f62aa));}}),_0x5b04e4[_0x7fbd0c(0x4a0)](''),_0x5b04e4[_0x7fbd0c(0x4a0)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x5ed259=_0x3963ff[_0x7fbd0c(0x2c5)](_0x935503=>{const _0x1dee10=_0x7fbd0c,_0x117300=_0x4ec798[_0x1dee10(0x379)](_0x935503),_0x4461b1=_0x4ec798['subcommandDescription'](_0x935503);return _0x123111(_0x117300,_0x4461b1);});_0x5b04e4[_0x7fbd0c(0x4a0)](''),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x7fbd0c(0x4bf)),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x4d3898(_0x5ed259));}}if(showBriefHelp&&_0x4ff870['name']()===_0x7fbd0c(0x36f))_0x5b04e4['push'](''),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x7fbd0c(0x37e));else{const _0x5cb369=_0x4ff870[_0x7fbd0c(0x33e)][_0x7fbd0c(0x3b0)](_0x5a7cba=>!_0x37412b(_0x5a7cba));if(_0x5cb369['length']>0x0){const _0x226ddd=_0x5cb369[_0x7fbd0c(0x2c5)](_0x56c045=>{const _0x59a70f=_0x7fbd0c,_0x14b62a=_0x4ec798[_0x59a70f(0x4a9)](_0x56c045),_0x597605=_0x4ec798[_0x59a70f(0x408)](_0x56c045);return _0x123111(_0x14b62a,_0x597605);});_0x5b04e4[_0x7fbd0c(0x4a0)](''),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x7fbd0c(0x36c)),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x4d3898(_0x226ddd));}}const _0x3e3c52=(_0x4ff870['registeredArguments']||[])[_0x7fbd0c(0x3b0)](_0x252f08=>!_0x37412b(_0x252f08));if(_0x3e3c52[_0x7fbd0c(0x210)]>0x0){const _0x5ae67d=_0x3e3c52[_0x7fbd0c(0x2c5)](_0x1ef5bf=>{const _0xfb86e=_0x7fbd0c,_0xf41a72=_0x4ec798[_0xfb86e(0x2bf)](_0x1ef5bf),_0x2116b9=_0x4ec798[_0xfb86e(0x341)](_0x1ef5bf);return _0x123111(_0xf41a72,_0x2116b9);});_0x5b04e4[_0x7fbd0c(0x4a0)](''),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x7fbd0c(0x4dc)),_0x5b04e4[_0x7fbd0c(0x4a0)](_0x4d3898(_0x5ae67d));}return _0x5b04e4[_0x7fbd0c(0x297)]('\x0a')+'\x0a';},'subcommandTerm':_0x1b5b27=>{const _0x2e94e5=a2_0x43e9ef,_0x2eae5c=(_0x1b5b27[_0x2e94e5(0x30c)]||[])['map'](_0x5a36a9=>_0x5a36a9[_0x2e94e5(0x2a6)]?'<'+_0x5a36a9[_0x2e94e5(0x2d9)]()+'>':'['+_0x5a36a9['name']()+']')[_0x2e94e5(0x297)]('\x20'),_0xbb60d5=_0x1b5b27[_0x2e94e5(0x306)](),_0x354947=_0xbb60d5['length']>0x0?_0x1b5b27[_0x2e94e5(0x2d9)]()+',\x20'+_0xbb60d5['join'](',\x20'):_0x1b5b27[_0x2e94e5(0x2d9)]();return _0x2eae5c?_0x354947+'\x20'+_0x2eae5c:_0x354947;}}),program['hook'](a2_0x43e9ef(0x284),_0x51c70e=>{const _0x1f4265=a2_0x43e9ef,_0x3b8885=_0x51c70e['opts']();if(_0x3b8885[_0x1f4265(0x33f)]){const _0x19a78b=resolve(_0x3b8885[_0x1f4265(0x33f)]),_0x37fb55=_0x19a78b!==_0x3b8885['directory']?'\x20(resolved\x20to\x20'+_0x19a78b+')':'';if(!existsSync(_0x19a78b))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1f4265(0x3fe)+_0x3b8885[_0x1f4265(0x33f)]+_0x37fb55,undefined,{'helpText':_0x1f4265(0x459)});const _0x270235=statSync(_0x19a78b);if(!_0x270235[_0x1f4265(0x441)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x3b8885[_0x1f4265(0x33f)]+_0x37fb55,undefined,{'helpText':_0x1f4265(0x423)});process[_0x1f4265(0x48b)](_0x19a78b);}if(!_0x3b8885['format']){if(_0x3b8885[_0x1f4265(0x395)])_0x3b8885['format']=_0x1f4265(0x395);else{if(_0x3b8885[_0x1f4265(0x484)])_0x3b8885['format']=_0x1f4265(0x484);else{if(_0x3b8885[_0x1f4265(0x1ec)])_0x3b8885[_0x1f4265(0x346)]='jsonl';else _0x3b8885[_0x1f4265(0x3dc)]&&(_0x3b8885[_0x1f4265(0x346)]=_0x1f4265(0x3dc));}}}if(_0x3b8885[_0x1f4265(0x4a4)])_0x3b8885[_0x1f4265(0x406)]=LogLevel[_0x1f4265(0x365)];else{if(_0x3b8885['debug'])_0x3b8885[_0x1f4265(0x406)]=LogLevel[_0x1f4265(0x311)];else _0x3b8885[_0x1f4265(0x406)]===undefined&&(_0x3b8885[_0x1f4265(0x406)]=LogLevel[_0x1f4265(0x29b)]);}});async function createTDXInstance(_0x3a4565){const _0x4d68ff=a2_0x43e9ef,_0x436e56=await GlobalContext[_0x4d68ff(0x414)](_0x3a4565);return _0x436e56[_0x4d68ff(0x421)](_0x3a4565),TDX[_0x4d68ff(0x3f1)]({'site':_0x436e56[_0x4d68ff(0x32a)],'apiKey':_0x436e56[_0x4d68ff(0x419)],'accessToken':_0x436e56['accessToken'],'logLevel':_0x436e56[_0x4d68ff(0x406)],'profile':_0x436e56['profile']});}const databaseCmd=program['command'](a2_0x43e9ef(0x319))[a2_0x43e9ef(0x3e8)]('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x8516a3,_0x2c884c)=>{const _0x4b7196=a2_0x43e9ef,_0x1a21e1=new DatabasesCommand(),_0x1ac69f=program[_0x4b7196(0x217)](),_0x295f38=await createTDXInstance(_0x1ac69f),_0x13f77f=await _0x1a21e1['run']({'options':{..._0x1ac69f,..._0x2c884c},'args':_0x8516a3?[_0x8516a3]:[],'tdx':_0x295f38});gracefulExit(_0x13f77f);};databaseCmd['command'](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x367))[a2_0x43e9ef(0x281)](databaseListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x429),{'hidden':!![]})['description'](a2_0x43e9ef(0x22b))[a2_0x43e9ef(0x281)](databaseListAction),program['command'](a2_0x43e9ef(0x1dc))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x432))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1f1),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1ff),a2_0x43e9ef(0x3ed))[a2_0x43e9ef(0x2a7)]('--chat-id\x20<id>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x43e9ef(0x2a7)]('--stream','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x43e9ef(0x281)](async(_0x55fd1e,_0x22c4e7)=>{const _0xaeb369=a2_0x43e9ef,_0x308d73=program['opts'](),_0x42908e=await createTDXInstance(_0x308d73);if(_0x55fd1e[0x0]===_0xaeb369(0x3f1)){const _0x4ef4be=new ChatCreateCommand();gracefulExit(await _0x4ef4be[_0xaeb369(0x4d4)]({'options':{..._0x308d73,..._0x22c4e7},'args':_0x55fd1e['slice'](0x1),'tdx':_0x42908e}));return;}const _0xdf450a=new ChatCommand(),_0x1224e3=await _0xdf450a['run']({'options':{..._0x308d73,..._0x22c4e7},'args':_0x55fd1e,'tdx':_0x42908e});gracefulExit(_0x1224e3);});const apiCmd=program[a2_0x43e9ef(0x412)]('api\x20[endpoint]')['summary'](a2_0x43e9ef(0x443))[a2_0x43e9ef(0x273)]('after',a2_0x43e9ef(0x2b2))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x340),a2_0x43e9ef(0x1f6),a2_0x43e9ef(0x38f))['option'](a2_0x43e9ef(0x470),'Request\x20body\x20as\x20JSON\x20string')[a2_0x43e9ef(0x2a7)]('-f,\x20--file\x20<path>',a2_0x43e9ef(0x49c))[a2_0x43e9ef(0x2a7)]('-H,\x20--header\x20<header>',a2_0x43e9ef(0x46d),(_0x1c8aae,_0x33c559)=>{return _0x33c559?[..._0x33c559,_0x1c8aae]:[_0x1c8aae];})['option'](a2_0x43e9ef(0x40f),a2_0x43e9ef(0x290),'td')[a2_0x43e9ef(0x281)](async(_0x349eaa,_0x4bee2a)=>{const _0x4878a9=a2_0x43e9ef;if(!_0x349eaa){apiCmd[_0x4878a9(0x2d3)]();return;}const _0x4b06f4=new ApiCommand(),_0x40b241=program[_0x4878a9(0x217)](),_0x3c7476=await createTDXInstance(_0x40b241),_0x5c8658=await _0x4b06f4[_0x4878a9(0x4d4)]({'options':{..._0x40b241,..._0x4bee2a},'args':[_0x349eaa],'tdx':_0x3c7476});gracefulExit(_0x5c8658);});program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x213))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x389))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),'\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a')[a2_0x43e9ef(0x281)](async _0x4d3ab3=>{const _0x4defd6=new MCPCommand(),_0x315768=program['opts'](),_0x474bc1=await createTDXInstance(_0x315768),_0x4e9dee=await _0x4defd6['run']({'options':{..._0x315768,..._0x4d3ab3},'args':[],'tdx':_0x474bc1});gracefulExit(_0x4e9dee);});const tableCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x395))[a2_0x43e9ef(0x3c1)]('Table\x20management\x20commands'),tableListAction=async(_0xc55415,_0x4f41f5)=>{const _0x55a94a=a2_0x43e9ef,_0x46e585=new TablesCommand(),_0x43d63a=program[_0x55a94a(0x217)](),_0x6b8a85=await createTDXInstance(_0x43d63a);_0x4f41f5['in']&&(_0x4f41f5['database']=_0x4f41f5['in']);const _0x4730fd=await _0x46e585['run']({'options':{..._0x43d63a,..._0x4f41f5},'args':_0xc55415?[_0xc55415]:[],'tdx':_0x6b8a85});gracefulExit(_0x4730fd);};tableCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x23f))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4a6),a2_0x43e9ef(0x4ad))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3de),a2_0x43e9ef(0x3f6))[a2_0x43e9ef(0x281)](tableListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4b5),{'hidden':!![]})[a2_0x43e9ef(0x3c1)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4a6),a2_0x43e9ef(0x4ad))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3de),a2_0x43e9ef(0x3f6))[a2_0x43e9ef(0x281)](tableListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x356))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1d0))['option'](a2_0x43e9ef(0x4a6),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3de),a2_0x43e9ef(0x3f6))[a2_0x43e9ef(0x281)](async(_0x1d28a6,_0x250388)=>{const _0x4ff2e2=a2_0x43e9ef,_0x3fcb11=new ShowCommand(),_0x499695=program[_0x4ff2e2(0x217)](),_0x3963b0=await createTDXInstance(_0x499695);_0x250388['in']&&(_0x250388[_0x4ff2e2(0x319)]=_0x250388['in']);const _0x4f14f9=await _0x3fcb11[_0x4ff2e2(0x4d4)]({'options':{..._0x499695,..._0x250388},'args':_0x1d28a6?[_0x1d28a6]:[],'tdx':_0x3963b0});gracefulExit(_0x4f14f9);}),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x49a))[a2_0x43e9ef(0x3e8)](a2_0x43e9ef(0x22d))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x267))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4a6),a2_0x43e9ef(0x416))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3de),a2_0x43e9ef(0x3f6))[a2_0x43e9ef(0x281)](async(_0x448fab,_0x33945f)=>{const _0x477bcd=a2_0x43e9ef,_0x55dc1b=new DescribeCommand(),_0x2e5704=program[_0x477bcd(0x217)](),_0x5942f8=await createTDXInstance(_0x2e5704);_0x33945f['in']&&(_0x33945f[_0x477bcd(0x319)]=_0x33945f['in']);const _0x3241d4=await _0x55dc1b[_0x477bcd(0x4d4)]({'options':{..._0x2e5704,..._0x33945f},'args':_0x448fab?[_0x448fab]:[],'tdx':_0x5942f8});gracefulExit(_0x3241d4);}),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x253))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4c2))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4a6),a2_0x43e9ef(0x3d7))[a2_0x43e9ef(0x2a7)]('--in\x20<database>',a2_0x43e9ef(0x3f6))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3dd),'Trino\x20catalog\x20(default:\x20td)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x30f),a2_0x43e9ef(0x488))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2d4),a2_0x43e9ef(0x240))[a2_0x43e9ef(0x281)](async(_0x2eaac3,_0x439748)=>{const _0xc9ef7f=a2_0x43e9ef,_0x22e3d1=new QueryCommand(),_0xbab6f3=program[_0xc9ef7f(0x217)](),_0x3548f7=await createTDXInstance(_0xbab6f3);_0x439748['in']&&(_0x439748[_0xc9ef7f(0x319)]=_0x439748['in']);const _0x4f83dc=await _0x22e3d1[_0xc9ef7f(0x4d4)]({'options':mergeCommandOptions(_0xbab6f3,_0x439748),'args':_0x2eaac3?[_0x2eaac3]:[],'tdx':_0x3548f7});gracefulExit(_0x4f83dc);});const segmentCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x44d))[a2_0x43e9ef(0x3e8)]('sg')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x40b)),segmentListAction=async(_0xe25f65,_0x4f89c4)=>{const _0x5462f8=a2_0x43e9ef,_0x1c6bf2=new SegmentsCommand(),_0x1b7d4c=program[_0x5462f8(0x217)](),_0x2aa8f3=await createTDXInstance(_0x1b7d4c),_0x4dd351=await _0x1c6bf2[_0x5462f8(0x4d4)]({'options':{..._0x1b7d4c,..._0x4f89c4},'args':_0xe25f65?[_0xe25f65]:[],'tdx':_0x2aa8f3});gracefulExit(_0x4dd351);};segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x246))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4a2))[a2_0x43e9ef(0x2a7)]('-r,\x20--recursive',a2_0x43e9ef(0x2be))[a2_0x43e9ef(0x2a7)]('--max-depth\x20<depth>',a2_0x43e9ef(0x26a),'10')[a2_0x43e9ef(0x281)](segmentListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x254),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x323),a2_0x43e9ef(0x2be))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x268),a2_0x43e9ef(0x26a),'10')[a2_0x43e9ef(0x281)](segmentListAction),segmentCmd['command'](a2_0x43e9ef(0x378),{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x347))[a2_0x43e9ef(0x281)](async(_0x2f3824,_0x66cd0b)=>{const _0x77181b=a2_0x43e9ef,_0x26fbba=new SegmentUseCommand(),_0x2e61aa=program[_0x77181b(0x217)](),_0x57f82c=await createTDXInstance(_0x2e61aa),_0x4e0eba=await _0x26fbba[_0x77181b(0x4d4)]({'options':{..._0x2e61aa,..._0x66cd0b},'args':[_0x2f3824],'tdx':_0x57f82c});gracefulExit(_0x4e0eba);});const segmentViewAction=async(_0x273499,_0x48eaa7)=>{const _0x414584=a2_0x43e9ef,_0x2f5d82=new SegmentViewCommand(),_0x18969b=program[_0x414584(0x217)](),_0x4ca677=await createTDXInstance(_0x18969b),_0x2c52e2=await _0x2f5d82[_0x414584(0x4d4)]({'options':{..._0x18969b,..._0x48eaa7},'args':_0x273499?[_0x273499]:[],'tdx':_0x4ca677});gracefulExit(_0x2c52e2);};segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x1c7))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x24b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x45c),a2_0x43e9ef(0x201))[a2_0x43e9ef(0x281)](segmentViewAction),segmentCmd['command'](a2_0x43e9ef(0x492),{'hidden':!![]})[a2_0x43e9ef(0x3e8)](a2_0x43e9ef(0x440))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x45c),a2_0x43e9ef(0x201))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x48f))['action'](segmentViewAction),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3a7))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3e4))[a2_0x43e9ef(0x281)](async(_0x2e8f41,_0x4e5c2e)=>{const _0x35ebb9=a2_0x43e9ef,_0x43690e=new SegmentDescCommand(),_0x4020c6=program[_0x35ebb9(0x217)](),_0x33d0b4=await createTDXInstance(_0x4020c6),_0x508871=await _0x43690e[_0x35ebb9(0x4d4)]({'options':{..._0x4020c6,..._0x4e5c2e},'args':_0x2e8f41?[_0x2e8f41]:[],'tdx':_0x33d0b4});gracefulExit(_0x508871);}),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x397))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x31c))[a2_0x43e9ef(0x281)](async(_0x4507e5,_0x47accd)=>{const _0x194c0a=a2_0x43e9ef,_0x1bb0db=new SegmentShowCommand(),_0xcc44d6=program[_0x194c0a(0x217)](),_0x4d7f42=await createTDXInstance(_0xcc44d6),_0x4fdf8d=await _0x1bb0db['run']({'options':{..._0xcc44d6,..._0x47accd},'args':_0x4507e5?[_0x4507e5]:[],'tdx':_0x4d7f42});gracefulExit(_0x4fdf8d);}),segmentCmd[a2_0x43e9ef(0x412)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1eb))[a2_0x43e9ef(0x281)](async(_0x19b2c9,_0x36db6e)=>{const _0x197eb2=a2_0x43e9ef,_0x2d1cf1=new SegmentFolderListCommand(),_0x5c69d9=program['opts'](),_0x323541=await createTDXInstance(_0x5c69d9),_0x56bab6=await _0x2d1cf1[_0x197eb2(0x4d4)]({'options':{..._0x5c69d9,..._0x36db6e},'args':[_0x19b2c9],'tdx':_0x323541});gracefulExit(_0x56bab6);});const folderCmd=segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x252),{'hidden':!![]})['description'](a2_0x43e9ef(0x396));folderCmd['command'](a2_0x43e9ef(0x3ee))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3c8))['action'](async(_0x55cda5,_0x25aedd)=>{const _0x5c0ab6=a2_0x43e9ef,_0xa2e21c=new SegmentFolderShowCommand(),_0x2b5a99=program['opts'](),_0x4f6256=await createTDXInstance(_0x2b5a99),_0x58525e=await _0xa2e21c[_0x5c0ab6(0x4d4)]({'options':{..._0x2b5a99,..._0x25aedd},'args':[_0x55cda5],'tdx':_0x4f6256});gracefulExit(_0x58525e);}),segmentCmd[a2_0x43e9ef(0x412)]('sql\x20[segment_name]')['description'](a2_0x43e9ef(0x27e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x481),'YAML\x20file\x20path\x20for\x20unpushed\x20segment')[a2_0x43e9ef(0x281)](async(_0x4cc123,_0xe1c29a)=>{const _0x354cd9=a2_0x43e9ef,_0xb4aba7=new SegmentSQLCommand(),_0x487e93=program[_0x354cd9(0x217)](),_0x3e4f35=await createTDXInstance(_0x487e93),_0x5e3404=await _0xb4aba7[_0x354cd9(0x4d4)]({'options':{..._0x487e93,..._0xe1c29a},'args':_0x4cc123?[_0x4cc123]:[],'tdx':_0x3e4f35});gracefulExit(_0x5e3404);}),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x26c))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2ff))['action'](async(_0x2b61d3,_0x29f5f0)=>{const _0x116777=a2_0x43e9ef,_0x37c4d1=new SegmentFieldsCommand(),_0x412df5=program[_0x116777(0x217)](),_0xaf13e0=await createTDXInstance(_0x412df5),_0x5582bb=await _0x37c4d1['run']({'options':{..._0x412df5,..._0x29f5f0},'args':_0x2b61d3?[_0x2b61d3]:[],'tdx':_0xaf13e0});gracefulExit(_0x5582bb);}),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x479))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4c4))['option']('--dry-run',a2_0x43e9ef(0x49d))[a2_0x43e9ef(0x281)](async(_0x59a677,_0x3f2056)=>{const _0x573dae=a2_0x43e9ef,_0x5e0522=new SegmentPullCommand(),_0x273819=program[_0x573dae(0x217)](),_0x13f974=await createTDXInstance(_0x273819),_0x33d11b=await _0x5e0522[_0x573dae(0x4d4)]({'options':{..._0x273819,..._0x3f2056},'args':_0x59a677?[_0x59a677]:[],'tdx':_0x13f974});gracefulExit(_0x33d11b);}),segmentCmd[a2_0x43e9ef(0x412)]('push\x20[parent_or_file]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1c3))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x49d))[a2_0x43e9ef(0x2a7)]('--delete',a2_0x43e9ef(0x458))[a2_0x43e9ef(0x281)](async(_0x446034,_0xbb90f7)=>{const _0x543ed9=a2_0x43e9ef,_0x5f336c=new SegmentPushCommand(),_0x482d17=program[_0x543ed9(0x217)](),_0x3b3f8a=await createTDXInstance(_0x482d17),_0xcd9eaf=await _0x5f336c[_0x543ed9(0x4d4)]({'options':{..._0x482d17,..._0xbb90f7},'args':_0x446034?[_0x446034]:[],'tdx':_0x3b3f8a});gracefulExit(_0xcd9eaf);}),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x36d))[a2_0x43e9ef(0x3c1)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x1bf2c4,_0x7436a6)=>{const _0xb87a0c=a2_0x43e9ef,_0x467bcb=new SegmentValidateCommand(),_0x191829=program[_0xb87a0c(0x217)](),_0x701aef=await createTDXInstance(_0x191829),_0x5df2f9=await _0x467bcb[_0xb87a0c(0x4d4)]({'options':{..._0x191829,..._0x7436a6},'args':_0x1bf2c4?[_0x1bf2c4]:[],'tdx':_0x701aef});gracefulExit(_0x5df2f9);}),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2c7),{'hidden':!![]})[a2_0x43e9ef(0x3c1)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x39d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1d1),a2_0x43e9ef(0x2fc))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x342),a2_0x43e9ef(0x3f9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1ea),a2_0x43e9ef(0x301))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x211),a2_0x43e9ef(0x330))['option'](a2_0x43e9ef(0x418),a2_0x43e9ef(0x25e))['option']('--no-count-population',a2_0x43e9ef(0x43b))['action'](async(_0x5b1006,_0x4e20e8)=>{const _0x48e25e=a2_0x43e9ef,_0x5a5054=new SegmentCreateCommand(),_0x96626c=program[_0x48e25e(0x217)](),_0x52ead4=await createTDXInstance(_0x96626c),_0x2fd3e7=await _0x5a5054[_0x48e25e(0x4d4)]({'options':{..._0x96626c,..._0x4e20e8},'args':[_0x5b1006],'tdx':_0x52ead4});gracefulExit(_0x2fd3e7);}),segmentCmd['command']('update\x20<segment_name>',{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1d6))['option']('--name\x20<new_name>',a2_0x43e9ef(0x2a8))[a2_0x43e9ef(0x2a7)]('--description\x20<text>','Updated\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1d1),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x43e9ef(0x342),a2_0x43e9ef(0x1dd))['option'](a2_0x43e9ef(0x1ea),a2_0x43e9ef(0x3c0))[a2_0x43e9ef(0x2a7)]('--kind\x20<type>',a2_0x43e9ef(0x330))[a2_0x43e9ef(0x281)](async(_0x2ca505,_0x1f9cb7)=>{const _0x49a7e6=a2_0x43e9ef,_0x17f95e=new SegmentUpdateCommand(),_0x303efe=program['opts'](),_0x557608=await createTDXInstance(_0x303efe),_0x55fc95=await _0x17f95e[_0x49a7e6(0x4d4)]({'options':{..._0x303efe,..._0x1f9cb7},'args':[_0x2ca505],'tdx':_0x557608});gracefulExit(_0x55fc95);});const parentCmd=segmentCmd[a2_0x43e9ef(0x412)]('parent',{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x3974d7,_0xba27e0)=>{const _0x1a1ca9=a2_0x43e9ef,_0x4b865f=new ParentSegmentListCommand(),_0x5e22c4=program[_0x1a1ca9(0x217)](),_0x5859ba=await createTDXInstance(_0x5e22c4),_0x32eaf7=await _0x4b865f[_0x1a1ca9(0x4d4)]({'options':{..._0x5e22c4,..._0xba27e0},'args':_0x3974d7?[_0x3974d7]:[],'tdx':_0x5859ba});gracefulExit(_0x32eaf7);};parentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2c9))[a2_0x43e9ef(0x281)](parentListAction),segmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x24a),{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x390))['action'](parentListAction),parentCmd[a2_0x43e9ef(0x412)]('pull\x20[name]')['description'](a2_0x43e9ef(0x1fd))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x231),a2_0x43e9ef(0x42a))[a2_0x43e9ef(0x281)](async(_0x3ca7d3,_0x40dce6)=>{const _0x47f384=a2_0x43e9ef,_0x1dae40=new ParentSegmentPullCommand(),_0x34a43f=program[_0x47f384(0x217)](),_0x239f01=await createTDXInstance(_0x34a43f),_0x429a0e=await _0x1dae40[_0x47f384(0x4d4)]({'options':{..._0x34a43f,..._0x40dce6},'args':_0x3ca7d3?[_0x3ca7d3]:[],'tdx':_0x239f01});gracefulExit(_0x429a0e);}),parentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x413))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x36b))[a2_0x43e9ef(0x281)](async(_0x22b426,_0x109c43)=>{const _0x4613d2=new ParentSegmentPushCommand(),_0x4c1045=program['opts'](),_0x4e8b64=await createTDXInstance(_0x4c1045),_0x5a8694=await _0x4613d2['run']({'options':{..._0x4c1045,..._0x109c43},'args':_0x22b426?[_0x22b426]:[],'tdx':_0x4e8b64});gracefulExit(_0x5a8694);}),parentCmd['command'](a2_0x43e9ef(0x282))['description'](a2_0x43e9ef(0x3c9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2c1),a2_0x43e9ef(0x3a2))['option'](a2_0x43e9ef(0x3f0),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x439),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x43e9ef(0x2a7)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1cd),a2_0x43e9ef(0x4a5),'-1d')[a2_0x43e9ef(0x281)](async(_0x54bbd2,_0x159860)=>{const _0x558331=a2_0x43e9ef,_0x2cdd53=new ParentSegmentValidateCommand(),_0x461a06=program[_0x558331(0x217)](),_0x40c0e2=await createTDXInstance(_0x461a06),_0x1fb084=await _0x2cdd53[_0x558331(0x4d4)]({'options':{..._0x461a06,..._0x159860},'args':_0x54bbd2?[_0x54bbd2]:[],'tdx':_0x40c0e2});gracefulExit(_0x1fb084);}),parentCmd['command'](a2_0x43e9ef(0x1d4))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x35b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2c1),a2_0x43e9ef(0x220))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3f0),a2_0x43e9ef(0x435))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x439),a2_0x43e9ef(0x2c4))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x22a),a2_0x43e9ef(0x1f0))['option']('--interval\x20<range>',a2_0x43e9ef(0x4a5),a2_0x43e9ef(0x3b9))['action'](async(_0x469e29,_0x5a4866)=>{const _0x499702=a2_0x43e9ef,_0x2ed23d=new ParentSegmentPreviewCommand(),_0x23bb1f=program[_0x499702(0x217)](),_0x4a2cea=await createTDXInstance(_0x23bb1f),_0x2c1e4f=await _0x2ed23d[_0x499702(0x4d4)]({'options':{..._0x23bb1f,..._0x5a4866},'args':_0x469e29?[_0x469e29]:[],'tdx':_0x4a2cea});gracefulExit(_0x2c1e4f);}),parentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x374))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3af))[a2_0x43e9ef(0x281)](async(_0x5b8ed9,_0x3d4697)=>{const _0x56f72e=a2_0x43e9ef,_0x30a362=new ParentSegmentRunCommand(),_0x47f467=program[_0x56f72e(0x217)](),_0x5c9edd=await createTDXInstance(_0x47f467),_0x41e904=await _0x30a362[_0x56f72e(0x4d4)]({'options':{..._0x47f467,..._0x3d4697},'args':_0x5b8ed9?[_0x5b8ed9]:[],'tdx':_0x5c9edd});gracefulExit(_0x41e904);});const parentSegmentCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4db))[a2_0x43e9ef(0x3e8)]('ps')['description'](a2_0x43e9ef(0x45d));parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))['description'](a2_0x43e9ef(0x2c9))[a2_0x43e9ef(0x281)](parentListAction),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x255))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x371))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x231),a2_0x43e9ef(0x27a))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x34a),a2_0x43e9ef(0x41d))[a2_0x43e9ef(0x281)](async(_0x4d3132,_0x1ddfae)=>{const _0x530fcf=a2_0x43e9ef,_0x3224a5=new ParentSegmentPullCommand(),_0x1ea6ed=program[_0x530fcf(0x217)](),_0x599575=await createTDXInstance(_0x1ea6ed),_0x16a789=await _0x3224a5[_0x530fcf(0x4d4)]({'options':{..._0x1ea6ed,..._0x1ddfae},'args':_0x4d3132?[_0x4d3132]:[],'tdx':_0x599575});gracefulExit(_0x16a789);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4b6))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x24f))['action'](async(_0x5524f2,_0x17d60e)=>{const _0xf13f63=a2_0x43e9ef,_0x3ab93a=new ParentSegmentPushCommand(),_0x343bb1=program[_0xf13f63(0x217)](),_0x28036f=await createTDXInstance(_0x343bb1),_0x52d121=await _0x3ab93a[_0xf13f63(0x4d4)]({'options':{..._0x343bb1,..._0x17d60e},'args':_0x5524f2?[_0x5524f2]:[],'tdx':_0x28036f});gracefulExit(_0x52d121);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4dd))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3c9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2c1),a2_0x43e9ef(0x3a2))['option'](a2_0x43e9ef(0x3f0),a2_0x43e9ef(0x293))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x439),a2_0x43e9ef(0x44b))[a2_0x43e9ef(0x2a7)]('--enriched',a2_0x43e9ef(0x1f5))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1cd),a2_0x43e9ef(0x4a5),'-1d')[a2_0x43e9ef(0x281)](async(_0x178309,_0xcf726b)=>{const _0x45d247=a2_0x43e9ef,_0x17653f=new ParentSegmentValidateCommand(),_0x47d3a8=program[_0x45d247(0x217)](),_0xe1f4c9=await createTDXInstance(_0x47d3a8),_0x5e3a98=await _0x17653f[_0x45d247(0x4d4)]({'options':{..._0x47d3a8,..._0xcf726b},'args':_0x178309?[_0x178309]:[],'tdx':_0xe1f4c9});gracefulExit(_0x5e3a98);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2eb))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x35b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2c1),'Show\x20master\x20table\x20sample\x20data')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3f0),a2_0x43e9ef(0x435))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x439),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x22a),a2_0x43e9ef(0x1f0))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1cd),a2_0x43e9ef(0x4a5),'-1d')['action'](async(_0x237ea5,_0x5e1325)=>{const _0x566c4c=a2_0x43e9ef,_0x14e4c9=new ParentSegmentPreviewCommand(),_0x24ec07=program[_0x566c4c(0x217)](),_0x5929ef=await createTDXInstance(_0x24ec07),_0x282640=await _0x14e4c9[_0x566c4c(0x4d4)]({'options':{..._0x24ec07,..._0x5e1325},'args':_0x237ea5?[_0x237ea5]:[],'tdx':_0x5929ef});gracefulExit(_0x282640);}),parentSegmentCmd[a2_0x43e9ef(0x412)]('run\x20[name]')['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x43e9ef(0x281)](async(_0x44d426,_0x1d37a5)=>{const _0x22f4ff=a2_0x43e9ef,_0x5c9f51=new ParentSegmentRunCommand(),_0x2c6a4c=program['opts'](),_0x4a7880=await createTDXInstance(_0x2c6a4c),_0x3987b8=await _0x5c9f51[_0x22f4ff(0x4d4)]({'options':{..._0x2c6a4c,..._0x1d37a5},'args':_0x44d426?[_0x44d426]:[],'tdx':_0x4a7880});gracefulExit(_0x3987b8);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2b0))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x228))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x289),a2_0x43e9ef(0x30e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x42d),a2_0x43e9ef(0x350))[a2_0x43e9ef(0x281)](async(_0x2e3877,_0x1aae26)=>{const _0x3eff5c=a2_0x43e9ef,_0x4e50fb=new ParentSegmentFieldsCommand(),_0x544f90=program[_0x3eff5c(0x217)](),_0x12ba1f=await createTDXInstance(_0x544f90),_0x25a466=await _0x4e50fb[_0x3eff5c(0x4d4)]({'options':{..._0x544f90,..._0x1aae26},'args':_0x2e3877?[_0x2e3877]:[],'tdx':_0x12ba1f});gracefulExit(_0x25a466);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3c4))['description'](a2_0x43e9ef(0x1de))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x45c),a2_0x43e9ef(0x366))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x289),a2_0x43e9ef(0x30e))[a2_0x43e9ef(0x2a7)]('--jsonl',a2_0x43e9ef(0x350))['action'](async(_0x1b33f,_0x5077b3)=>{const _0x16d545=a2_0x43e9ef,_0x310190=new ParentSegmentViewCommand(),_0x192bf6=program[_0x16d545(0x217)](),_0x5a7194=await createTDXInstance(_0x192bf6),_0x1deb10=await _0x310190['run']({'options':{..._0x192bf6,..._0x5077b3},'args':_0x1b33f?[_0x1b33f]:[],'tdx':_0x5a7194});gracefulExit(_0x1deb10);}),parentSegmentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x326))['description'](a2_0x43e9ef(0x26f))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x231),a2_0x43e9ef(0x27a))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x289),a2_0x43e9ef(0x30e))['option'](a2_0x43e9ef(0x42d),a2_0x43e9ef(0x350))[a2_0x43e9ef(0x281)](async(_0x2fb776,_0x441939)=>{const _0x48fd9e=a2_0x43e9ef,_0x28fe61=new ParentSegmentDescCommand(),_0x7eb86d=program[_0x48fd9e(0x217)](),_0x5116df=await createTDXInstance(_0x7eb86d),_0x14709b=await _0x28fe61[_0x48fd9e(0x4d4)]({'options':{..._0x7eb86d,..._0x441939},'args':_0x2fb776?[_0x2fb776]:[],'tdx':_0x5116df});gracefulExit(_0x14709b);}),parentSegmentCmd['command'](a2_0x43e9ef(0x40e))[a2_0x43e9ef(0x3c1)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x289),a2_0x43e9ef(0x30e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x42d),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x4341c1,_0x76bf6e)=>{const _0x4b6baf=a2_0x43e9ef,_0x300002=new ParentSegmentSQLCommand(),_0x227f9a=program[_0x4b6baf(0x217)](),_0x2795aa=await createTDXInstance(_0x227f9a),_0x214acd=await _0x300002[_0x4b6baf(0x4d4)]({'options':{..._0x227f9a,..._0x76bf6e},'args':_0x4341c1?[_0x4341c1]:[],'tdx':_0x2795aa});gracefulExit(_0x214acd);}),parentSegmentCmd[a2_0x43e9ef(0x412)]('show\x20[name]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3e1))['option']('--limit\x20<n>',a2_0x43e9ef(0x43a))[a2_0x43e9ef(0x2a7)]('--json',a2_0x43e9ef(0x30e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x42d),a2_0x43e9ef(0x350))[a2_0x43e9ef(0x281)](async(_0x2b4339,_0x2bf206)=>{const _0x187da5=a2_0x43e9ef,_0x28b038=new ParentSegmentShowCommand(),_0x210ba4=program['opts'](),_0xbeb656=await createTDXInstance(_0x210ba4),_0x203147=await _0x28b038[_0x187da5(0x4d4)]({'options':{..._0x210ba4,..._0x2bf206},'args':_0x2b4339?[_0x2b4339]:[],'tdx':_0xbeb656});gracefulExit(_0x203147);}),parentSegmentCmd[a2_0x43e9ef(0x412)]('use\x20[name]')['description']('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x43e9ef(0x281)](async(_0x3fa93e,_0x5a5bf3)=>{const _0x489386=a2_0x43e9ef,_0xe5b78e=new UseCommand(),_0x190888=program[_0x489386(0x217)](),_0x50cc5c=_0x3fa93e?[_0x489386(0x207),_0x3fa93e]:[],_0x2329f3=await _0xe5b78e[_0x489386(0x4d4)]({'options':{..._0x190888,..._0x5a5bf3},'args':_0x50cc5c,'tdx':null});gracefulExit(_0x2329f3);});const psRtCmd=parentSegmentCmd[a2_0x43e9ef(0x412)]('rt')['description'](a2_0x43e9ef(0x43e));psRtCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3ce))['action'](async(_0x3e5c98,_0x31d8ca)=>{const _0x56ab39=a2_0x43e9ef,_0x3d885a=new PSRtListCommand(),_0x4c4b58=program[_0x56ab39(0x217)](),_0x45987=await createTDXInstance(_0x4c4b58),_0x1020e7=await _0x3d885a[_0x56ab39(0x4d4)]({'options':{..._0x4c4b58,..._0x31d8ca},'args':_0x3e5c98?[_0x3e5c98]:[],'tdx':_0x45987});gracefulExit(_0x1020e7);}),psRtCmd[a2_0x43e9ef(0x412)]('validate\x20[name]')['description'](a2_0x43e9ef(0x35f))[a2_0x43e9ef(0x281)](async(_0x14f189,_0x52281e)=>{const _0x5f06b7=a2_0x43e9ef,_0x5906d1=new PSRtValidateCommand(),_0x41d4f2=program['opts'](),_0x3d819a=await createTDXInstance(_0x41d4f2),_0x45598a=await _0x5906d1[_0x5f06b7(0x4d4)]({'options':{..._0x41d4f2,..._0x52281e},'args':_0x14f189?[_0x14f189]:[],'tdx':_0x3d819a});gracefulExit(_0x45598a);}),psRtCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x467))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x318))[a2_0x43e9ef(0x281)](async(_0x1dbb4d,_0xd965a0)=>{const _0x475f47=a2_0x43e9ef,_0x86811d=new PSRtConfigVersionCommand(),_0x170939=program[_0x475f47(0x217)](),_0x2429b2=await createTDXInstance(_0x170939),_0x9491fb=await _0x86811d['run']({'options':{..._0x170939,..._0xd965a0},'args':_0x1dbb4d?[_0x1dbb4d]:[],'tdx':_0x2429b2});gracefulExit(_0x9491fb);});const psRtJnCmd=psRtCmd[a2_0x43e9ef(0x412)]('jn')[a2_0x43e9ef(0x3c1)]('RT\x20Journey\x20management');psRtJnCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x353))[a2_0x43e9ef(0x3c1)]('List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x43e9ef(0x281)](async(_0x5c2ad2,_0x320935)=>{const _0x58f5cb=a2_0x43e9ef,_0x3d26c8=new PSRtJnListCommand(),_0x5b5c74=program[_0x58f5cb(0x217)](),_0x2d7a43=await createTDXInstance(_0x5b5c74),_0x12894c=await _0x3d26c8[_0x58f5cb(0x4d4)]({'options':{..._0x5b5c74,..._0x320935},'args':_0x5c2ad2?[_0x5c2ad2]:[],'tdx':_0x2d7a43});gracefulExit(_0x12894c);}),psRtJnCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2fa))['description']('Pause\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x43e9ef(0x281)](async(_0x2ba67e,_0x118aec)=>{const _0x47b735=new PSRtJnPauseCommand(),_0x383869=program['opts'](),_0x577d3f=await createTDXInstance(_0x383869),_0x2593c6=await _0x47b735['run']({'options':{..._0x383869,..._0x118aec},'args':[_0x2ba67e],'tdx':_0x577d3f});gracefulExit(_0x2593c6);}),psRtJnCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x276))[a2_0x43e9ef(0x3c1)]('Resume\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x43e9ef(0x281)](async(_0x15dbf,_0x118156)=>{const _0x5b5316=a2_0x43e9ef,_0x307e92=new PSRtJnResumeCommand(),_0x5e0d0f=program[_0x5b5316(0x217)](),_0x114173=await createTDXInstance(_0x5e0d0f),_0x24c4b0=await _0x307e92[_0x5b5316(0x4d4)]({'options':{..._0x5e0d0f,..._0x118156},'args':[_0x15dbf],'tdx':_0x114173});gracefulExit(_0x24c4b0);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x43e9ef(0x43e));parentRtCmd['command'](a2_0x43e9ef(0x249))['description'](a2_0x43e9ef(0x3ce))['action'](async(_0x2f6acb,_0x56afdd)=>{const _0x2b62b6=a2_0x43e9ef,_0x3175b6=new PSRtListCommand(),_0x5b68c6=program[_0x2b62b6(0x217)](),_0xede1fc=await createTDXInstance(_0x5b68c6),_0x1df798=await _0x3175b6['run']({'options':{..._0x5b68c6,..._0x56afdd},'args':_0x2f6acb?[_0x2f6acb]:[],'tdx':_0xede1fc});gracefulExit(_0x1df798);}),parentRtCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4dd))[a2_0x43e9ef(0x3c1)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x43e9ef(0x281)](async(_0x187f19,_0x2826e7)=>{const _0x458e9a=a2_0x43e9ef,_0x209be7=new PSRtValidateCommand(),_0x204d4e=program['opts'](),_0x54db43=await createTDXInstance(_0x204d4e),_0x2ef76e=await _0x209be7[_0x458e9a(0x4d4)]({'options':{..._0x204d4e,..._0x2826e7},'args':_0x187f19?[_0x187f19]:[],'tdx':_0x54db43});gracefulExit(_0x2ef76e);});const psPzCmd=parentSegmentCmd[a2_0x43e9ef(0x412)]('pz')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3cd));psPzCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x353))[a2_0x43e9ef(0x3c1)]('List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x43e9ef(0x281)](async(_0x33bcbb,_0x2506e1)=>{const _0x377914=a2_0x43e9ef,_0x29c8be=new PSPzListCommand(),_0x4bba32=program[_0x377914(0x217)](),_0x564389=await createTDXInstance(_0x4bba32),_0x3c1ba3=await _0x29c8be[_0x377914(0x4d4)]({'options':{..._0x4bba32,..._0x2506e1},'args':_0x33bcbb?[_0x33bcbb]:[],'tdx':_0x564389});gracefulExit(_0x3c1ba3);}),psPzCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4e0))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x45b))['action'](async(_0x45a5d1,_0x2f51f4)=>{const _0x25cfbc=a2_0x43e9ef,_0x3d2f21=new PSPzShowCommand(),_0xfefb33=program[_0x25cfbc(0x217)](),_0x94414f=await createTDXInstance(_0xfefb33),_0x2158ca=await _0x3d2f21[_0x25cfbc(0x4d4)]({'options':{..._0xfefb33,..._0x2f51f4},'args':[_0x45a5d1],'tdx':_0x94414f});gracefulExit(_0x2158ca);}),psPzCmd['command'](a2_0x43e9ef(0x1f7))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x493))[a2_0x43e9ef(0x281)](async(_0x3a27d1,_0x5c2b20)=>{const _0x3fc26f=a2_0x43e9ef,_0x38fcc6=new PSPzDeleteCommand(),_0x48d069=program[_0x3fc26f(0x217)](),_0x13b14b=await createTDXInstance(_0x48d069),_0x270326=await _0x38fcc6[_0x3fc26f(0x4d4)]({'options':{..._0x48d069,..._0x5c2b20},'args':[_0x3a27d1],'tdx':_0x13b14b});gracefulExit(_0x270326);}),psPzCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3f1))[a2_0x43e9ef(0x3c1)]('Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2fd),'Personalization\x20name')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x3e2))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1c9),'Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x449),'Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x363),'Sections\x20as\x20an\x20inline\x20JSON\x20array')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x427),a2_0x43e9ef(0x1f4))[a2_0x43e9ef(0x281)](async _0x1f24f7=>{const _0x2c6e52=a2_0x43e9ef,_0x459c75=new PSPzCreateCommand(),_0xad202=program[_0x2c6e52(0x217)](),_0x1ecd28=await createTDXInstance(_0xad202),_0x461cb2=await _0x459c75[_0x2c6e52(0x4d4)]({'options':{..._0xad202,..._0x1f24f7},'args':[],'tdx':_0x1ecd28});gracefulExit(_0x461cb2);}),psPzCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x236))['description'](a2_0x43e9ef(0x3d1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2fd),a2_0x43e9ef(0x288))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x3e2))['option']('--sections\x20<json>',a2_0x43e9ef(0x227))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x427),a2_0x43e9ef(0x1f4))['action'](async(_0x5924ae,_0x52a143)=>{const _0x592282=a2_0x43e9ef,_0x5b0119=new PSPzPatchCommand(),_0x4ea714=program[_0x592282(0x217)](),_0x2cbe1f=await createTDXInstance(_0x4ea714),_0x46e150=await _0x5b0119[_0x592282(0x4d4)]({'options':{..._0x4ea714,..._0x52a143},'args':[_0x5924ae],'tdx':_0x2cbe1f});gracefulExit(_0x46e150);});const psPzServiceCmd=psPzCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x291))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x230));psPzServiceCmd[a2_0x43e9ef(0x412)]('list\x20[name]')['description'](a2_0x43e9ef(0x224))[a2_0x43e9ef(0x281)](async(_0x96aaf6,_0x1b908d)=>{const _0x237ae0=new PSPzServiceListCommand(),_0x5accda=program['opts'](),_0x2c7860=await createTDXInstance(_0x5accda),_0x206010=await _0x237ae0['run']({'options':{..._0x5accda,..._0x1b908d},'args':_0x96aaf6?[_0x96aaf6]:[],'tdx':_0x2c7860});gracefulExit(_0x206010);}),psPzServiceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3d8))[a2_0x43e9ef(0x3c1)]('Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')['option'](a2_0x43e9ef(0x46b),'Service\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x48c),'Make\x20service\x20public\x20(default:\x20private)')[a2_0x43e9ef(0x281)](async(_0x4356e2,_0x46e0b4,_0x2b6aa6)=>{const _0x38d9c7=a2_0x43e9ef,_0x2a393d=new PSPzServiceCreateCommand(),_0x37c78b=program['opts'](),_0xb93655=await createTDXInstance(_0x37c78b),_0x1cd511=await _0x2a393d[_0x38d9c7(0x4d4)]({'options':{..._0x37c78b,..._0x2b6aa6},'args':_0x46e0b4?[_0x4356e2,_0x46e0b4]:[_0x4356e2],'tdx':_0xb93655});gracefulExit(_0x1cd511);}),psPzServiceCmd[a2_0x43e9ef(0x412)]('show\x20<service_id>\x20[parent_segment]')['description'](a2_0x43e9ef(0x40c))['action'](async(_0x4435b1,_0x1b437d,_0x264a67)=>{const _0xff1477=a2_0x43e9ef,_0x3d48c1=new PSPzServiceShowCommand(),_0x570ca0=program[_0xff1477(0x217)](),_0x21e29a=await createTDXInstance(_0x570ca0),_0x51fe0b=await _0x3d48c1['run']({'options':{..._0x570ca0,..._0x264a67},'args':_0x1b437d?[_0x4435b1,_0x1b437d]:[_0x4435b1],'tdx':_0x21e29a});gracefulExit(_0x51fe0b);}),psPzServiceCmd[a2_0x43e9ef(0x412)]('delete\x20<service_id>\x20[parent_segment]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4ba))[a2_0x43e9ef(0x281)](async(_0x407255,_0x44c11d,_0x28a148)=>{const _0x2a095b=a2_0x43e9ef,_0x223766=new PSPzServiceDeleteCommand(),_0x3d1f07=program[_0x2a095b(0x217)](),_0x5ed071=await createTDXInstance(_0x3d1f07),_0x34f3c0=await _0x223766[_0x2a095b(0x4d4)]({'options':{..._0x3d1f07,..._0x28a148},'args':_0x44c11d?[_0x407255,_0x44c11d]:[_0x407255],'tdx':_0x5ed071});gracefulExit(_0x34f3c0);}),psPzServiceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3eb))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4c3))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x393))['option'](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x243))[a2_0x43e9ef(0x281)](async(_0x30897d,_0x1f3ed0,_0x50e355)=>{const _0x17f3cb=a2_0x43e9ef,_0x425389=new PSPzServiceUpdateCommand(),_0x48d075=program['opts'](),_0x52fb42=await createTDXInstance(_0x48d075),_0x3f1528=await _0x425389[_0x17f3cb(0x4d4)]({'options':{..._0x48d075,..._0x50e355},'args':_0x1f3ed0?[_0x30897d,_0x1f3ed0]:[_0x30897d],'tdx':_0x52fb42});gracefulExit(_0x3f1528);}),psPzServiceCmd[a2_0x43e9ef(0x412)]('init\x20[name]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x219))[a2_0x43e9ef(0x281)](async(_0x1e43d2,_0x158ce3)=>{const _0x173409=a2_0x43e9ef,_0x56ca37=new PSPzInitCommand(),_0x19cde6=program['opts'](),_0x3df559=await createTDXInstance(_0x19cde6),_0x62275a=await _0x56ca37[_0x173409(0x4d4)]({'options':{..._0x19cde6,..._0x158ce3},'args':_0x1e43d2?[_0x1e43d2]:[],'tdx':_0x3df559});gracefulExit(_0x62275a);});const psPzServiceTokenCmd=psPzServiceCmd['command']('token')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x49f));psPzServiceTokenCmd['command'](a2_0x43e9ef(0x361))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x39a))['option'](a2_0x43e9ef(0x1e4),a2_0x43e9ef(0x2e5))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x4df))[a2_0x43e9ef(0x281)](async(_0x2c9403,_0x26f439,_0x498ea1,_0x1c6bfa)=>{const _0x1c8841=a2_0x43e9ef,_0x80e224=new PSPzServiceTokenCreateCommand(),_0x337232=program[_0x1c8841(0x217)](),_0x4cea67=await createTDXInstance(_0x337232),_0x39253f=await _0x80e224[_0x1c8841(0x4d4)]({'options':{..._0x337232,..._0x1c6bfa},'args':_0x498ea1?[_0x2c9403,_0x26f439,_0x498ea1]:[_0x2c9403,_0x26f439],'tdx':_0x4cea67});gracefulExit(_0x39253f);}),psPzServiceTokenCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x41f))[a2_0x43e9ef(0x3c1)]('Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x43e9ef(0x281)](async(_0x4f002a,_0x113ad0,_0x314806)=>{const _0x2fc0e6=a2_0x43e9ef,_0x151d3e=new PSPzServiceTokenDeleteCommand(),_0x389d55=program[_0x2fc0e6(0x217)](),_0x492f44=await createTDXInstance(_0x389d55),_0xea4781=await _0x151d3e[_0x2fc0e6(0x4d4)]({'options':{..._0x389d55,..._0x314806},'args':_0x113ad0?[_0x4f002a,_0x113ad0]:[_0x4f002a],'tdx':_0x492f44});gracefulExit(_0xea4781);}),parentCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2df))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x308))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x3a0),a2_0x43e9ef(0x3ba))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x38c),'Master\x20table\x20name')['option'](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x463))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2ea),a2_0x43e9ef(0x263))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x237),a2_0x43e9ef(0x35e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x270),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x43e9ef(0x2a7)]('--attributes\x20<json>',a2_0x43e9ef(0x3d4))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3f2),a2_0x43e9ef(0x30d))[a2_0x43e9ef(0x2a7)]('--behaviors\x20<json>',a2_0x43e9ef(0x294))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x344),a2_0x43e9ef(0x3d0))['option'](a2_0x43e9ef(0x499),a2_0x43e9ef(0x3bb))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4d9),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x43e9ef(0x281)](async(_0x56793f,_0x5d57d3)=>{const _0x41369b=a2_0x43e9ef,_0x35e898=new ParentSegmentCreateCommand(),_0x1c1945=program[_0x41369b(0x217)](),_0x3c8b41=await createTDXInstance(_0x1c1945),_0x38f45e=await _0x35e898['run']({'options':{..._0x1c1945,..._0x5d57d3},'args':[_0x56793f],'tdx':_0x3c8b41});gracefulExit(_0x38f45e);}),parentCmd[a2_0x43e9ef(0x412)]('update\x20<name>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x461))[a2_0x43e9ef(0x2a7)]('--description\x20<text>',a2_0x43e9ef(0x4b2))[a2_0x43e9ef(0x2a7)]('--schedule-type\x20<type>',a2_0x43e9ef(0x468))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x237),a2_0x43e9ef(0x223))[a2_0x43e9ef(0x2a7)]('--timezone\x20<tz>',a2_0x43e9ef(0x1e9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3ea),a2_0x43e9ef(0x278))['option'](a2_0x43e9ef(0x1e3),a2_0x43e9ef(0x4ca))['option'](a2_0x43e9ef(0x307),a2_0x43e9ef(0x1d9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x202),a2_0x43e9ef(0x478))['action'](async(_0x523d37,_0x3aac08)=>{const _0xe03d71=a2_0x43e9ef,_0x2f0e1a=new ParentSegmentUpdateCommand(),_0x530d02=program[_0xe03d71(0x217)](),_0x55377f=await createTDXInstance(_0x530d02),_0x428140=await _0x2f0e1a[_0xe03d71(0x4d4)]({'options':{..._0x530d02,..._0x3aac08},'args':[_0x523d37],'tdx':_0x55377f});gracefulExit(_0x428140);}),folderCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3df))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x486))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46b),a2_0x43e9ef(0x2f8))[a2_0x43e9ef(0x2a7)]('--parent-folder\x20<name>',a2_0x43e9ef(0x295))['action'](async(_0x51f339,_0x47e0fd,_0x19ee6c)=>{const _0x91852e=a2_0x43e9ef,_0x1850cb=new SegmentFolderCreateCommand(),_0x189a9d=program[_0x91852e(0x217)](),_0x471ac6=await createTDXInstance(_0x189a9d),_0x6b400=await _0x1850cb[_0x91852e(0x4d4)]({'options':{..._0x189a9d,..._0x19ee6c},'args':[_0x51f339,_0x47e0fd],'tdx':_0x471ac6});gracefulExit(_0x6b400);}),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x401))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2ad))[a2_0x43e9ef(0x281)](async(_0x5f912a,_0x4a6275)=>{const _0x24429d=a2_0x43e9ef,_0x3655ca=new ActivationsCommand(),_0x3ca1c1=program[_0x24429d(0x217)](),_0x5eda6d=await createTDXInstance(_0x3ca1c1),_0x27608e=await _0x3655ca[_0x24429d(0x4d4)]({'options':{..._0x3ca1c1,..._0x4a6275},'args':[_0x5f912a],'tdx':_0x5eda6d});gracefulExit(_0x27608e);});const workflowCmd=program['command'](a2_0x43e9ef(0x232))[a2_0x43e9ef(0x3e8)]('wf')['description'](a2_0x43e9ef(0x4da)),wfProjectCmd=workflowCmd['command'](a2_0x43e9ef(0x1fb))[a2_0x43e9ef(0x3c1)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x5267ba,_0x43eeaa)=>{const _0x4a7ed5=a2_0x43e9ef,_0x3e5ae6=new WorkflowProjectsCommand(),_0x1e20a4=program[_0x4a7ed5(0x217)](),_0x3826aa=await createTDXInstance(_0x1e20a4),_0x27f779=await _0x3e5ae6[_0x4a7ed5(0x4d4)]({'options':{..._0x1e20a4,..._0x43eeaa},'args':_0x5267ba?[_0x5267ba]:[],'tdx':_0x3826aa});gracefulExit(_0x27f779);};wfProjectCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x430))[a2_0x43e9ef(0x281)](wfProjectListAction),workflowCmd[a2_0x43e9ef(0x412)]('projects\x20[pattern]')[a2_0x43e9ef(0x3c1)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x407cb3,_0x3ea23e)=>{const _0x5ee0f0=a2_0x43e9ef,_0x330039=new WorkflowWorkflowsCommand(),_0x3e67bb=program[_0x5ee0f0(0x217)](),_0x32aac5=await createTDXInstance(_0x3e67bb),_0x309176=await _0x330039[_0x5ee0f0(0x4d4)]({'options':{..._0x3e67bb,..._0x3ea23e},'args':_0x407cb3?[_0x407cb3]:[],'tdx':_0x32aac5});gracefulExit(_0x309176);};workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x1f2))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x292))[a2_0x43e9ef(0x281)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x43e9ef(0x412)]('session')[a2_0x43e9ef(0x3c1)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x12e434,_0xebb3c3)=>{const _0x54c847=a2_0x43e9ef,_0xcd1d01=new WorkflowSessionsCommand(),_0x552947=program[_0x54c847(0x217)](),_0x1e959b=await createTDXInstance(_0x552947),_0xe11c3c=await _0xcd1d01[_0x54c847(0x4d4)]({'options':{..._0x552947,..._0xebb3c3},'args':_0x12e434?[_0x12e434]:[],'tdx':_0x1e959b});gracefulExit(_0xe11c3c);};wfSessionCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x206))[a2_0x43e9ef(0x3c1)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x410),a2_0x43e9ef(0x20e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2b5),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x23c),a2_0x43e9ef(0x33c))[a2_0x43e9ef(0x281)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2e2))[a2_0x43e9ef(0x2a7)]('--status\x20<status>',a2_0x43e9ef(0x20e))[a2_0x43e9ef(0x2a7)]('--from\x20<timestamp>',a2_0x43e9ef(0x275))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x23c),a2_0x43e9ef(0x33c))[a2_0x43e9ef(0x281)](wfSessionListAction);const wfAttemptListAction=async(_0x47133c,_0x5595b6)=>{const _0x10e7cf=new WorkflowAttemptsCommand(),_0x1de030=program['opts'](),_0x2a2251=await createTDXInstance(_0x1de030),_0x2e30a4=await _0x10e7cf['run']({'options':{..._0x1de030,..._0x5595b6},'args':_0x47133c?[_0x47133c]:[],'tdx':_0x2a2251});gracefulExit(_0x2e30a4);},attemptCmd=workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x29c))['description'](a2_0x43e9ef(0x444))[a2_0x43e9ef(0x3e7)](a2_0x43e9ef(0x41b),a2_0x43e9ef(0x47c))[a2_0x43e9ef(0x3e7)](a2_0x43e9ef(0x386),a2_0x43e9ef(0x2d6))['argument'](a2_0x43e9ef(0x300),a2_0x43e9ef(0x25d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x473),a2_0x43e9ef(0x4be))['option'](a2_0x43e9ef(0x287),a2_0x43e9ef(0x316))[a2_0x43e9ef(0x2a7)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x28b),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x43e9ef(0x476),a2_0x43e9ef(0x2a5))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x26d),a2_0x43e9ef(0x22f))[a2_0x43e9ef(0x281)](async(_0x11acf0,_0x5583f3,_0x42717a,_0x2f6492)=>{const _0x5282fa=a2_0x43e9ef;if(_0x11acf0==='list'){await wfAttemptListAction(_0x5583f3,_0x2f6492);return;}if(!_0x11acf0){attemptCmd[_0x5282fa(0x2d3)]();return;}const _0x3e3319=program['opts'](),_0x1c3b14=await createTDXInstance(_0x3e3319);let _0x49cb8b=0x0;if(!_0x5583f3){const _0x125717=new WorkflowAttemptCommand();_0x49cb8b=await _0x125717[_0x5282fa(0x4d4)]({'options':{..._0x3e3319,..._0x2f6492},'args':[_0x11acf0],'tdx':_0x1c3b14});}else{if(_0x5583f3===_0x5282fa(0x2a0)){const _0x4e1cd5=new WorkflowLogsCommand();_0x49cb8b=await _0x4e1cd5['run']({'options':{..._0x3e3319,..._0x2f6492},'args':_0x42717a?[_0x11acf0,_0x42717a]:[_0x11acf0],'tdx':_0x1c3b14});}else{if(_0x5583f3==='tasks'){const _0x578782=new WorkflowTasksCommand();_0x49cb8b=await _0x578782[_0x5282fa(0x4d4)]({'options':{..._0x3e3319,..._0x2f6492},'args':[_0x11acf0],'tdx':_0x1c3b14});}else{if(_0x5583f3===_0x5282fa(0x453)){const _0x3ac2a6=new WorkflowKillCommand();_0x49cb8b=await _0x3ac2a6[_0x5282fa(0x4d4)]({'options':{..._0x3e3319,..._0x2f6492},'args':[_0x11acf0],'tdx':_0x1c3b14});}else{if(_0x5583f3==='retry'){const _0x56da1d=new WorkflowRetryCommand();_0x49cb8b=await _0x56da1d[_0x5282fa(0x4d4)]({'options':{..._0x3e3319,..._0x2f6492},'args':['attempt:'+_0x11acf0],'tdx':_0x1c3b14});}else console[_0x5282fa(0x4cc)](_0x5282fa(0x380)+_0x5583f3),console['error'](_0x5282fa(0x222)),_0x49cb8b=0x1;}}}}gracefulExit(_0x49cb8b);});attemptCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x206))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x32e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x26d),a2_0x43e9ef(0x2f9))[a2_0x43e9ef(0x281)](wfAttemptListAction),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x442))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x229))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x26d),a2_0x43e9ef(0x2f9))[a2_0x43e9ef(0x281)](wfAttemptListAction),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2f7))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x38e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2e3),a2_0x43e9ef(0x258))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x204),a2_0x43e9ef(0x3ae))['option'](a2_0x43e9ef(0x2ac),a2_0x43e9ef(0x345))[a2_0x43e9ef(0x281)](async(_0x125e50,_0x4261a9)=>{const _0x287381=new WorkflowTimelineCommand(),_0x4a6043=program['opts'](),_0x5e43ba=await createTDXInstance(_0x4a6043),_0x217273=await _0x287381['run']({'options':{..._0x4a6043,..._0x4261a9},'args':_0x125e50?[_0x125e50]:[],'tdx':_0x5e43ba});gracefulExit(_0x217273);}),workflowCmd[a2_0x43e9ef(0x412)]('retry\x20<session-id>')[a2_0x43e9ef(0x3c1)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x48e),'Resume\x20from\x20specific\x20task')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x28b),a2_0x43e9ef(0x29e))[a2_0x43e9ef(0x281)](async(_0x3536f8,_0x1428c3)=>{const _0x13f286=new WorkflowRetryCommand(),_0x44a2c3=program['opts'](),_0xb9ec5=await createTDXInstance(_0x44a2c3),_0x22f856=await _0x13f286['run']({'options':{..._0x44a2c3,..._0x1428c3},'args':[_0x3536f8],'tdx':_0xb9ec5});gracefulExit(_0x22f856);}),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x46a))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x325))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x27f),a2_0x43e9ef(0x3ec),(_0x530432,_0x3b3e2f=[])=>[..._0x3b3e2f,_0x530432],[])[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1c4),a2_0x43e9ef(0x28d))[a2_0x43e9ef(0x281)](async(_0x535a3c,_0x4209b1)=>{const _0x548a8c=a2_0x43e9ef,_0x4c2815=new WorkflowRunCommand(),_0x5e0b75=program['opts'](),_0x148a82=await createTDXInstance(_0x5e0b75),_0x3014b4=await _0x4c2815[_0x548a8c(0x4d4)]({'options':{..._0x5e0b75,..._0x4209b1},'args':_0x535a3c?[_0x535a3c]:[],'tdx':_0x148a82});gracefulExit(_0x3014b4);}),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2b3))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x247))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x317),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')['action'](async(_0x3faae7,_0x57eb32,_0x41deb9)=>{const _0x225bd8=a2_0x43e9ef,_0x46c541=new WorkflowDownloadCommand(),_0x2bb21a=program[_0x225bd8(0x217)](),_0x4f408d=await createTDXInstance(_0x2bb21a),_0x497f48=await _0x46c541[_0x225bd8(0x4d4)]({'options':{..._0x2bb21a,..._0x41deb9},'args':[_0x3faae7,_0x57eb32||'.'],'tdx':_0x4f408d});gracefulExit(_0x497f48);}),workflowCmd[a2_0x43e9ef(0x412)]('pull\x20<project>\x20[target-dir]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3f3))['option'](a2_0x43e9ef(0x317),a2_0x43e9ef(0x31f))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x375))[a2_0x43e9ef(0x281)](async(_0x33924a,_0x24be6c,_0x5e342e)=>{const _0x5373a9=a2_0x43e9ef,_0x35b4d2=new WorkflowPullCommand(),_0x29bc72=program[_0x5373a9(0x217)](),_0x251269=await createTDXInstance(_0x29bc72),_0x494fb3=await _0x35b4d2[_0x5373a9(0x4d4)]({'options':{..._0x29bc72,..._0x5e342e},'args':_0x24be6c?[_0x33924a,_0x24be6c]:[_0x33924a],'tdx':_0x251269});gracefulExit(_0x494fb3);}),workflowCmd[a2_0x43e9ef(0x412)]('push\x20[source-dir]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x279))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x317),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x2cd))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3b6),a2_0x43e9ef(0x21f))[a2_0x43e9ef(0x281)](async(_0x51af86,_0x412f46)=>{const _0x2cb196=a2_0x43e9ef,_0xd78b86=new WorkflowPushCommand(),_0x2834a5=program[_0x2cb196(0x217)](),_0x9c6166=await createTDXInstance(_0x2834a5),_0xbe2e13=await _0xd78b86[_0x2cb196(0x4d4)]({'options':{..._0x2834a5,..._0x412f46},'args':_0x51af86?[_0x51af86]:[],'tdx':_0x9c6166});gracefulExit(_0xbe2e13);}),workflowCmd['command'](a2_0x43e9ef(0x321))[a2_0x43e9ef(0x3c1)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')[a2_0x43e9ef(0x2a7)]('--name\x20<name>',a2_0x43e9ef(0x339))['option'](a2_0x43e9ef(0x317),a2_0x43e9ef(0x2d5))['option'](a2_0x43e9ef(0x3b6),a2_0x43e9ef(0x21f))[a2_0x43e9ef(0x281)](async(_0x32d79a,_0x3f5f6b)=>{const _0xbf571c=new WorkflowUploadCommand(),_0x3f227c=program['opts'](),_0x522b11=await createTDXInstance(_0x3f227c),_0x33f474=await _0xbf571c['run']({'options':{..._0x3f227c,..._0x3f5f6b},'args':_0x32d79a?[_0x32d79a]:[],'tdx':_0x522b11});gracefulExit(_0x33f474);}),workflowCmd['command'](a2_0x43e9ef(0x368))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x21b))['option'](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x446))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x317),a2_0x43e9ef(0x2cf))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),'Preview\x20without\x20creating\x20the\x20project')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3b6),a2_0x43e9ef(0x21f))[a2_0x43e9ef(0x281)](async(_0x37dd4a,_0x12a8a9)=>{const _0x237e55=a2_0x43e9ef,_0x4f6ba8=new WorkflowCloneCommand(),_0x3fa37d=program[_0x237e55(0x217)](),_0x268a81=await createTDXInstance(_0x3fa37d),_0x27b28d=await _0x4f6ba8[_0x237e55(0x4d4)]({'options':{..._0x3fa37d,..._0x12a8a9},'args':_0x37dd4a?[_0x37dd4a]:[],'tdx':_0x268a81});gracefulExit(_0x27b28d);}),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x399))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4d0))[a2_0x43e9ef(0x281)](async(_0x22c018,_0x28379b)=>{const _0x41200b=a2_0x43e9ef,_0xcde367=new WorkflowDeleteCommand(),_0xea98a8=program[_0x41200b(0x217)](),_0x2547a8=await createTDXInstance(_0xea98a8),_0x4d0694=await _0xcde367[_0x41200b(0x4d4)]({'options':{..._0xea98a8,..._0x28379b},'args':[_0x22c018],'tdx':_0x2547a8});gracefulExit(_0x4d0694);}),workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4cb))[a2_0x43e9ef(0x3c1)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x43e9ef(0x2a7)]('--clear',a2_0x43e9ef(0x280))[a2_0x43e9ef(0x281)](async(_0x555b7f,_0x2349c5)=>{const _0x15b8e8=a2_0x43e9ef,_0xe2e0ef=new WorkflowUseCommand(),_0x122084=program['opts'](),_0x19fd81=await createTDXInstance(_0x122084),_0x47df24=await _0xe2e0ef[_0x15b8e8(0x4d4)]({'options':{..._0x122084,..._0x2349c5},'args':_0x555b7f?[_0x555b7f]:[],'tdx':_0x19fd81});gracefulExit(_0x47df24);});const wfSecretsCmd=workflowCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3b8))['description'](a2_0x43e9ef(0x3b4));wfSecretsCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x206))['description'](a2_0x43e9ef(0x3aa))[a2_0x43e9ef(0x281)](async(_0x3bff22,_0x1e5c28)=>{const _0x4b307b=new WorkflowSecretsListCommand(),_0x18c8d9=program['opts'](),_0xc7cf45=await createTDXInstance(_0x18c8d9),_0xe88921=await _0x4b307b['run']({'options':{..._0x18c8d9,..._0x1e5c28},'args':_0x3bff22?[_0x3bff22]:[],'tdx':_0xc7cf45});gracefulExit(_0xe88921);}),wfSecretsCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4aa))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3d3))[a2_0x43e9ef(0x281)](async(_0x5a5fd4,_0x4f8639)=>{const _0x56f287=a2_0x43e9ef,_0x4ca75e=new WorkflowSecretsSetCommand(),_0x501b1f=program[_0x56f287(0x217)](),_0xb6528a=await createTDXInstance(_0x501b1f),_0x21abcf=await _0x4ca75e[_0x56f287(0x4d4)]({'options':{..._0x501b1f,..._0x4f8639},'args':_0x5a5fd4,'tdx':_0xb6528a});gracefulExit(_0x21abcf);}),wfSecretsCmd['command'](a2_0x43e9ef(0x3b7))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x43e9ef(0x281)](async(_0x68d512,_0x584f97)=>{const _0x393a2d=a2_0x43e9ef,_0x4eed94=new WorkflowSecretsDeleteCommand(),_0x232568=program['opts'](),_0x3d7488=await createTDXInstance(_0x232568),_0x4cf1da=await _0x4eed94[_0x393a2d(0x4d4)]({'options':{..._0x232568,..._0x584f97},'args':_0x68d512,'tdx':_0x3d7488});gracefulExit(_0x4cf1da);});const jobCmd=program[a2_0x43e9ef(0x412)]('job')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4e2)),jobListAction=async _0x25a366=>{const _0x3a4e5b=a2_0x43e9ef,_0xef5b42=new JobListCommand(),_0x4291cf=program[_0x3a4e5b(0x217)](),_0x549637=await createTDXInstance(_0x4291cf),_0x15b12d=await _0xef5b42[_0x3a4e5b(0x4d4)]({'options':{..._0x4291cf,..._0x25a366},'args':[],'tdx':_0x549637});gracefulExit(_0x15b12d);};jobCmd['command'](a2_0x43e9ef(0x37b))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2b1))['option'](a2_0x43e9ef(0x410),a2_0x43e9ef(0x362))[a2_0x43e9ef(0x281)](jobListAction),program[a2_0x43e9ef(0x412)]('jobs',{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2b9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x410),a2_0x43e9ef(0x362))[a2_0x43e9ef(0x281)](jobListAction),jobCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4d6))[a2_0x43e9ef(0x3c1)]('Show\x20job\x20details')[a2_0x43e9ef(0x281)](async(_0x4c674e,_0x210596)=>{const _0x493456=a2_0x43e9ef,_0x390b9e=new JobShowCommand(),_0x5f57db=program[_0x493456(0x217)](),_0x57480c=await createTDXInstance(_0x5f57db),_0x4076fb=await _0x390b9e[_0x493456(0x4d4)]({'options':{..._0x5f57db,..._0x210596},'args':[_0x4c674e],'tdx':_0x57480c});gracefulExit(_0x4076fb);}),jobCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x1c8))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3a5))[a2_0x43e9ef(0x281)](async(_0xce82,_0x34fe41)=>{const _0x3a9632=a2_0x43e9ef,_0x1c4c77=new JobKillCommand(),_0x5acc9e=program[_0x3a9632(0x217)](),_0x4a7a40=await createTDXInstance(_0x5acc9e),_0x4b9bca=await _0x1c4c77['run']({'options':{..._0x5acc9e,..._0x34fe41},'args':[_0xce82],'tdx':_0x4a7a40});gracefulExit(_0x4b9bca);}),jobCmd['command']('submit\x20[query]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2a2))['option'](a2_0x43e9ef(0x448),a2_0x43e9ef(0x3c7),'trino')[a2_0x43e9ef(0x2a7)]('-f,\x20--file\x20<path>',a2_0x43e9ef(0x4bb))['option'](a2_0x43e9ef(0x26b),'Database\x20name\x20(default:\x20information_schema)',a2_0x43e9ef(0x34e))['option']('--result\x20<target>',a2_0x43e9ef(0x462))[a2_0x43e9ef(0x281)](async(_0x115680,_0x544351)=>{const _0x327a63=a2_0x43e9ef,_0x2001fb=new JobSubmitCommand(),_0x574444=program[_0x327a63(0x217)](),_0x34490c=await createTDXInstance(_0x574444),_0x39b8d4=await _0x2001fb['run']({'options':{..._0x574444,..._0x544351},'args':_0x115680?[_0x115680]:[],'tdx':_0x34490c});gracefulExit(_0x39b8d4);}),jobCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x314))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x28c))[a2_0x43e9ef(0x281)](async(_0x3a1e43,_0x2b2b68)=>{const _0x2869ef=a2_0x43e9ef,_0x2534aa=new JobResultCommand(),_0x2f1ee3=program[_0x2869ef(0x217)](),_0xadce0d=await createTDXInstance(_0x2f1ee3),_0x47b497=await _0x2534aa[_0x2869ef(0x4d4)]({'options':{..._0x2f1ee3,..._0x2b2b68},'args':[_0x3a1e43],'tdx':_0xadce0d});gracefulExit(_0x47b497);});const scheduleCmd=jobCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x424))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x43d));scheduleCmd['command'](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4c6))[a2_0x43e9ef(0x281)](async(_0x5ad8c2,_0x5263d1)=>{const _0x3efa0c=a2_0x43e9ef,_0x136190=new ScheduleListCommand(),_0x48171c=program['opts'](),_0xcbb604=await createTDXInstance(_0x48171c),_0x59f70a=await _0x136190[_0x3efa0c(0x4d4)]({'options':{..._0x48171c,..._0x5263d1},'args':_0x5ad8c2?[_0x5ad8c2]:[],'tdx':_0xcbb604});gracefulExit(_0x59f70a);}),scheduleCmd['command'](a2_0x43e9ef(0x44e))[a2_0x43e9ef(0x3c1)]('Show\x20schedule\x20details')['action'](async(_0x5e65ae,_0x3a08e0)=>{const _0x2e99be=a2_0x43e9ef,_0x230286=new ScheduleShowCommand(),_0x2597e7=program[_0x2e99be(0x217)](),_0x57d1ec=await createTDXInstance(_0x2597e7),_0x127504=await _0x230286[_0x2e99be(0x4d4)]({'options':{..._0x2597e7,..._0x3a08e0},'args':[_0x5e65ae],'tdx':_0x57d1ec});gracefulExit(_0x127504);}),scheduleCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2df))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x42e))[a2_0x43e9ef(0x2a7)]('-d,\x20--database\x20<db>',a2_0x43e9ef(0x4d1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x28f),a2_0x43e9ef(0x3f6))['requiredOption'](a2_0x43e9ef(0x30f),a2_0x43e9ef(0x4bb))['option'](a2_0x43e9ef(0x239),'Query\x20type:\x20trino\x20or\x20hive',a2_0x43e9ef(0x2f6))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2ae),'Cron\x20expression\x20for\x20scheduling')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x270),a2_0x43e9ef(0x36e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x20b),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2e8),a2_0x43e9ef(0x31b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3b5),a2_0x43e9ef(0x2bb))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x272),a2_0x43e9ef(0x25f))[a2_0x43e9ef(0x2a7)]('--result\x20<url>',a2_0x43e9ef(0x370))[a2_0x43e9ef(0x281)](async(_0x1f3bb0,_0x342288)=>{const _0xb5e8e1=a2_0x43e9ef,_0x130ec0=new ScheduleCreateCommand(),_0x434e31=program[_0xb5e8e1(0x217)](),_0x302443=await createTDXInstance(_0x434e31);_0x342288['in']&&(_0x342288[_0xb5e8e1(0x319)]=_0x342288['in']);const _0x37ea2d=await _0x130ec0['run']({'options':{..._0x434e31,..._0x342288},'args':[_0x1f3bb0],'tdx':_0x302443});gracefulExit(_0x37ea2d);}),scheduleCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3a8))[a2_0x43e9ef(0x3c1)]('Update\x20a\x20scheduled\x20query')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3e9),a2_0x43e9ef(0x265))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x28f),a2_0x43e9ef(0x3f6))['option'](a2_0x43e9ef(0x30f),a2_0x43e9ef(0x4bb))['option'](a2_0x43e9ef(0x239),a2_0x43e9ef(0x2a3))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2ae),a2_0x43e9ef(0x1ef))[a2_0x43e9ef(0x2a7)]('--timezone\x20<tz>',a2_0x43e9ef(0x1df))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x20b),'Delay\x20in\x20seconds\x20before\x20execution')['option'](a2_0x43e9ef(0x2e8),'Job\x20priority\x20(-2\x20to\x202)')['option'](a2_0x43e9ef(0x3b5),a2_0x43e9ef(0x2bb))[a2_0x43e9ef(0x2a7)]('--engine-version\x20<version>','Query\x20engine\x20version')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x214),'Result\x20output\x20destination\x20URL')[a2_0x43e9ef(0x281)](async(_0x42a46e,_0x1683d5)=>{const _0x504369=a2_0x43e9ef,_0x34cf56=new ScheduleUpdateCommand(),_0x4aab8a=program[_0x504369(0x217)](),_0x1eb4c0=await createTDXInstance(_0x4aab8a);_0x1683d5['in']&&(_0x1683d5['database']=_0x1683d5['in']);const _0x449a38=await _0x34cf56[_0x504369(0x4d4)]({'options':{..._0x4aab8a,..._0x1683d5},'args':[_0x42a46e],'tdx':_0x1eb4c0});gracefulExit(_0x449a38);}),scheduleCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4b3))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x392))['action'](async(_0x245409,_0x16b771)=>{const _0x4b4209=a2_0x43e9ef,_0x45d2d0=new ScheduleDeleteCommand(),_0x521717=program[_0x4b4209(0x217)](),_0x5eb351=await createTDXInstance(_0x521717),_0x82269f=await _0x45d2d0[_0x4b4209(0x4d4)]({'options':{..._0x521717,..._0x16b771},'args':[_0x245409],'tdx':_0x5eb351});gracefulExit(_0x82269f);}),scheduleCmd['command'](a2_0x43e9ef(0x42c))[a2_0x43e9ef(0x3c1)]('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1ca),a2_0x43e9ef(0x3b3))[a2_0x43e9ef(0x2a7)]('--num\x20<1-10>',a2_0x43e9ef(0x3be))[a2_0x43e9ef(0x281)](async(_0x2a65c6,_0x45fdb8)=>{const _0x1ee538=a2_0x43e9ef,_0x824f91=new ScheduleRunCommand(),_0x5c1360=program['opts'](),_0x278714=await createTDXInstance(_0x5c1360),_0x470121=await _0x824f91[_0x1ee538(0x4d4)]({'options':{..._0x5c1360,..._0x45fdb8},'args':[_0x2a65c6],'tdx':_0x278714});gracefulExit(_0x470121);}),scheduleCmd['command']('history\x20<name>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x21e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x37c),a2_0x43e9ef(0x250))['option'](a2_0x43e9ef(0x4c5),'Ending\x20offset\x20(default:\x2020)')['action'](async(_0x395a6a,_0x10d5ff)=>{const _0x16f35d=a2_0x43e9ef,_0x1ef468=new ScheduleHistoryCommand(),_0x455fa4=program[_0x16f35d(0x217)](),_0x4ce351=await createTDXInstance(_0x455fa4),_0x3eec11=await _0x1ef468[_0x16f35d(0x4d4)]({'options':{..._0x455fa4,..._0x10d5ff},'args':[_0x395a6a],'tdx':_0x4ce351});gracefulExit(_0x3eec11);});const llmCmd=program[a2_0x43e9ef(0x412)]('llm')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2d8));llmCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4e1))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x42f))['action'](async(_0xd94a60,_0x391e35)=>{const _0xb3019c=a2_0x43e9ef,_0x3a2e70=new LLMUseCommand(),_0x45964a=program[_0xb3019c(0x217)](),_0x38242e=await createTDXInstance(_0x45964a),_0xa66948=await _0x3a2e70[_0xb3019c(0x4d4)]({'options':{..._0x45964a,..._0x391e35},'args':[_0xd94a60],'tdx':_0x38242e});gracefulExit(_0xa66948);}),llmCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2f0))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x245))[a2_0x43e9ef(0x281)](async _0xee931b=>{const _0x4c4609=new LLMModelsCommand(),_0x10011c=program['opts'](),_0x2d1455=await createTDXInstance(_0x10011c),_0x3e0539=await _0x4c4609['run']({'options':{..._0x10011c,..._0xee931b},'args':[],'tdx':_0x2d1455});gracefulExit(_0x3e0539);});const projectCmd=llmCmd[a2_0x43e9ef(0x412)]('project')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x426)),llmProjectListAction=async(_0xdf84ec,_0x5c83e8)=>{const _0x505141=a2_0x43e9ef,_0x4552cb=new LLMProjectsCommand(),_0x4975a2=program[_0x505141(0x217)](),_0x5b8af6=await createTDXInstance(_0x4975a2),_0xbeae83=await _0x4552cb['run']({'options':{..._0x4975a2,..._0x5c83e8},'args':_0xdf84ec?[_0xdf84ec]:[],'tdx':_0x5b8af6});gracefulExit(_0xbeae83);};projectCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x333))[a2_0x43e9ef(0x281)](llmProjectListAction),llmCmd['command'](a2_0x43e9ef(0x274))['description'](a2_0x43e9ef(0x23e))['action'](llmProjectListAction),projectCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2df))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4bc))[a2_0x43e9ef(0x2a7)]('--description\x20<text>',a2_0x43e9ef(0x490))[a2_0x43e9ef(0x281)](async(_0x5106a8,_0x20a5eb)=>{const _0x4bb4ca=a2_0x43e9ef,_0xee85ff=new LLMProjectCreateCommand(),_0x4cbd3b=program[_0x4bb4ca(0x217)](),_0x45d31d=await createTDXInstance(_0x4cbd3b),_0x5e0587=await _0xee85ff[_0x4bb4ca(0x4d4)]({'options':{..._0x4cbd3b,..._0x20a5eb},'args':[_0x5106a8],'tdx':_0x45d31d});gracefulExit(_0x5e0587);}),projectCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4b3))['description'](a2_0x43e9ef(0x256))['action'](async(_0x47c4d3,_0xc9c4cd)=>{const _0x10d0a7=a2_0x43e9ef,_0x3c4f56=new LLMProjectDeleteCommand(),_0x22e23b=program[_0x10d0a7(0x217)](),_0x785593=await createTDXInstance(_0x22e23b),_0x59ea5f=await _0x3c4f56[_0x10d0a7(0x4d4)]({'options':{..._0x22e23b,..._0xc9c4cd},'args':[_0x47c4d3],'tdx':_0x785593});gracefulExit(_0x59ea5f);}),projectCmd['command'](a2_0x43e9ef(0x1f8))[a2_0x43e9ef(0x3c1)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3db),a2_0x43e9ef(0x305))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x43e9ef(0x281)](async(_0x2d59ce,_0x14462f)=>{const _0xb6f566=a2_0x43e9ef,_0x54eb75=new LLMProjectBackupCommand(),_0x51ee9d=program['opts'](),_0x272df7=await createTDXInstance(_0x51ee9d),_0x409ca3=await _0x54eb75[_0xb6f566(0x4d4)]({'options':{..._0x51ee9d,..._0x14462f},'args':[_0x2d59ce],'tdx':_0x272df7});gracefulExit(_0x409ca3);}),projectCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3e5))[a2_0x43e9ef(0x3c1)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x304),a2_0x43e9ef(0x337))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x43e9ef(0x281)](async(_0x3aad67,_0x664b0e)=>{const _0x3898f3=a2_0x43e9ef,_0x106642=new LLMProjectRestoreCommand(),_0x7bc344=program[_0x3898f3(0x217)](),_0x43677c=await createTDXInstance(_0x7bc344),_0x5be18c=await _0x106642[_0x3898f3(0x4d4)]({'options':{..._0x7bc344,..._0x664b0e},'args':[_0x3aad67],'tdx':_0x43677c});gracefulExit(_0x5be18c);});const llmAgentListAction=async(_0x7dc646,_0x502fb8)=>{const _0x46141a=a2_0x43e9ef,_0x284c59=new LLMAgentsCommand(),_0x6e2a3f=program[_0x46141a(0x217)](),_0x355cfe=await createTDXInstance(_0x6e2a3f),_0x3d7266=await _0x284c59['run']({'options':{..._0x6e2a3f,..._0x502fb8},'args':_0x7dc646?[_0x7dc646]:[],'tdx':_0x355cfe});gracefulExit(_0x3d7266);};llmCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x259))['description'](a2_0x43e9ef(0x335))['action'](llmAgentListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x259))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x335))['action'](llmAgentListAction),llmCmd[a2_0x43e9ef(0x412)]('history\x20[chat-id]')['description'](a2_0x43e9ef(0x3e0))[a2_0x43e9ef(0x2a7)]('--last',a2_0x43e9ef(0x4cf))[a2_0x43e9ef(0x281)](async(_0x207947,_0x1fe802)=>{const _0x343199=new LLMHistoryCommand(),_0x4d9c78=program['opts'](),_0x26b8a8=await createTDXInstance(_0x4d9c78),_0x35e561=await _0x343199['run']({'options':{..._0x4d9c78,..._0x1fe802},'args':_0x207947?[_0x207947]:[],'tdx':_0x26b8a8});gracefulExit(_0x35e561);});isExperimentalAvailable()&&llmCmd['command'](a2_0x43e9ef(0x3f8))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3f5))[a2_0x43e9ef(0x281)](async(_0x1777ba,_0x44f519)=>{const _0x47e5a1=a2_0x43e9ef,_0x2ffddb=new LLMLogCommand(),_0x54d93b=program[_0x47e5a1(0x217)](),_0x1c8e9f=await createTDXInstance(_0x54d93b),_0x2ee94e=await _0x2ffddb[_0x47e5a1(0x4d4)]({'options':{..._0x54d93b,..._0x44f519},'args':[_0x1777ba],'tdx':_0x1c8e9f});gracefulExit(_0x2ee94e);});program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x25c))[a2_0x43e9ef(0x266)](a2_0x43e9ef(0x261))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x39e))['option'](a2_0x43e9ef(0x2bd),a2_0x43e9ef(0x2fe))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x394),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1cf),a2_0x43e9ef(0x4a3))[a2_0x43e9ef(0x38d)]()[a2_0x43e9ef(0x489)](!![])[a2_0x43e9ef(0x273)]('after','\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_0x43e9ef(0x281)](async(_0x3e1427,_0x2dea5e)=>{const _0x230d36=a2_0x43e9ef,_0xe0f27e=program['opts'](),_0x1bf043=Array[_0x230d36(0x46f)](_0x3e1427)?_0x3e1427:[];if(_0x1bf043[0x0]===_0x230d36(0x4c1)){const _0x25c379=new ClaudeStatuslineCommand(),_0xca660=await _0x25c379['run']({'options':{..._0xe0f27e,..._0x2dea5e},'args':_0x1bf043['slice'](0x1),'tdx':null});gracefulExit(_0xca660);}if(_0x1bf043[0x0]==='usage'){const _0x25f132=new ClaudeUsageCommand(),_0x3b9ade=await _0x25f132['run']({'options':{..._0xe0f27e,..._0x2dea5e},'args':_0x1bf043[_0x230d36(0x32b)](0x1),'tdx':null});gracefulExit(_0x3b9ade);}const _0x4bf220=new ClaudeCommand(),_0x12a877=await createTDXInstance(_0xe0f27e),_0x5e636e=await _0x4bf220[_0x230d36(0x4d4)]({'options':{..._0xe0f27e,..._0x2dea5e},'args':_0x1bf043,'tdx':_0x12a877});gracefulExit(_0x5e636e);}),program['command'](a2_0x43e9ef(0x475))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4ae))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x205),a2_0x43e9ef(0x208))[a2_0x43e9ef(0x2a7)]('--default',a2_0x43e9ef(0x234))[a2_0x43e9ef(0x281)](async(_0x775ff,_0x5a3828,_0x583204)=>{const _0x4d04aa=a2_0x43e9ef,_0x48f0b1=new UseCommand(),_0x2e3d29=program['opts'](),_0x4475a1=[];if(_0x775ff)_0x4475a1[_0x4d04aa(0x4a0)](_0x775ff);if(_0x5a3828)_0x4475a1[_0x4d04aa(0x4a0)](_0x5a3828);const _0x2a79fe=_0x775ff===_0x4d04aa(0x310),_0x366d8d=_0x2a79fe?await createTDXInstance(_0x2e3d29):null,_0x1b0a2b=await _0x48f0b1[_0x4d04aa(0x4d4)]({'options':{..._0x2e3d29,..._0x583204},'args':_0x4475a1,'tdx':_0x366d8d});gracefulExit(_0x1b0a2b);}),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x41c))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x436))[a2_0x43e9ef(0x281)](async _0x12c50d=>{const _0x593297=a2_0x43e9ef,_0x568bd5=new StatusCommand(),_0x1fb699=program['opts'](),_0x123c70=await createTDXInstance(_0x1fb699),_0x182cde=await _0x568bd5[_0x593297(0x4d4)]({'options':{..._0x1fb699,..._0x12c50d},'args':[],'tdx':_0x123c70});gracefulExit(_0x182cde);}),program['command'](a2_0x43e9ef(0x411))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x495))['option']('--dry-run',a2_0x43e9ef(0x487))[a2_0x43e9ef(0x2a7)]('--next',a2_0x43e9ef(0x21a))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x32d),a2_0x43e9ef(0x1d8))[a2_0x43e9ef(0x281)](async(_0x45fde7,_0x2f1052)=>{const _0x325e4f=a2_0x43e9ef,_0x55e69e=new UpgradeCommand(),_0x5f24bc=program[_0x325e4f(0x217)](),_0x3abda4=await _0x55e69e[_0x325e4f(0x4d4)]({'options':{..._0x5f24bc,..._0x2f1052},'args':_0x45fde7?[_0x45fde7]:[],'tdx':null});gracefulExit(_0x3abda4);}),program['command'](a2_0x43e9ef(0x434))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3c6))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x373),a2_0x43e9ef(0x24c))[a2_0x43e9ef(0x281)](async(_0xfdc56a,_0x19cc3b)=>{const _0x447af2=a2_0x43e9ef,_0xbe43c=new UnsetCommand(),_0x187f2b=program[_0x447af2(0x217)](),_0x5e139e=await _0xbe43c[_0x447af2(0x4d4)]({'options':{..._0x187f2b,..._0x19cc3b},'args':[_0xfdc56a],'tdx':null});gracefulExit(_0x5e139e);}),program['command']('chats')['description'](a2_0x43e9ef(0x200))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x420),'Show\x20the\x20most\x20recent\x20chat')['action'](async _0x3bad4e=>{const _0x52ee19=a2_0x43e9ef,_0x1c416a=new ChatsCommand(),_0x22e4a=program[_0x52ee19(0x217)](),_0x44e48c=await createTDXInstance(_0x22e4a),_0x14354b=await _0x1c416a[_0x52ee19(0x4d4)]({'options':{..._0x22e4a,..._0x3bad4e},'args':[],'tdx':_0x44e48c});gracefulExit(_0x14354b);});const authCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x271))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x433));async function runAuthStatusCommand(_0x990bf5){const _0x54ccbe=a2_0x43e9ef,_0x24918f=new AuthStatusCommand(),_0xdc7dbe=program[_0x54ccbe(0x217)](),_0x463ee5=await createTDXInstance(_0xdc7dbe),_0x22c33d=await _0x24918f[_0x54ccbe(0x4d4)]({'options':{..._0xdc7dbe,..._0x990bf5},'args':[],'tdx':_0x463ee5});gracefulExit(_0x22c33d);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x41c))[a2_0x43e9ef(0x3c1)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')['action'](runAuthStatusCommand),authCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2e7))['description'](a2_0x43e9ef(0x2e0))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),'\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')['action'](async _0x5d056a=>{const _0x3efbf9=a2_0x43e9ef,_0x1c186d=new AuthSetupCommand(),_0x584672=program['opts'](),_0x75b474=await createTDXInstance(_0x584672),_0x11256e=await _0x1c186d[_0x3efbf9(0x4d4)]({'options':{..._0x584672,..._0x5d056a},'args':[],'tdx':_0x75b474});gracefulExit(_0x11256e);}),authCmd[a2_0x43e9ef(0x412)]('login')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3ab))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),a2_0x43e9ef(0x34c))['action'](async _0x18af71=>{const _0x4a92f3=a2_0x43e9ef,_0x5ee1b7=new AuthLoginCommand(),_0x32575e=program[_0x4a92f3(0x217)](),_0x3945b3=await _0x5ee1b7['run']({'options':{..._0x32575e,..._0x18af71},'args':[],'tdx':null});gracefulExit(_0x3945b3);}),authCmd['command'](a2_0x43e9ef(0x324))[a2_0x43e9ef(0x3c1)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x43e9ef(0x387),a2_0x43e9ef(0x2f2))[a2_0x43e9ef(0x281)](async _0x5a7518=>{const _0x335abf=a2_0x43e9ef,_0x45908d=new AuthClearCommand(),_0x5a0431=program[_0x335abf(0x217)](),_0x1550be=await _0x45908d[_0x335abf(0x4d4)]({'options':{..._0x5a0431,..._0x5a7518},'args':[],'tdx':null});gracefulExit(_0x1550be);});const userCmd=program['command']('user')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1ce)),userListAction=async _0x20ff3c=>{const _0x47d3d3=new UserListCommand(),_0x2df598=program['opts'](),_0x2c16e6=await createTDXInstance(_0x2df598),_0x18dd76=await _0x47d3d3['run']({'options':{..._0x2df598,..._0x20ff3c},'args':[],'tdx':_0x2c16e6});gracefulExit(_0x18dd76);};userCmd['action'](async _0x29e6fb=>{const _0x24408d=a2_0x43e9ef,_0x48aa96=new UserCommand(),_0x47864b=program['opts'](),_0x59ea9f=await createTDXInstance(_0x47864b),_0x3004cb=await _0x48aa96[_0x24408d(0x4d4)]({'options':{..._0x47864b,..._0x29e6fb},'args':[],'tdx':_0x59ea9f});gracefulExit(_0x3004cb);}),userCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x37b))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x452))['action'](userListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x20f))['description']('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x43e9ef(0x281)](userListAction);const policyCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x42b))['description'](a2_0x43e9ef(0x2b8));policyCmd[a2_0x43e9ef(0x281)](async _0x58a98a=>{const _0x36ace6=a2_0x43e9ef,_0x56d884=new PolicyCommand(),_0x3898f6=program[_0x36ace6(0x217)](),_0x477e83=await createTDXInstance(_0x3898f6),_0x2da32c=await _0x56d884[_0x36ace6(0x4d4)]({'options':{..._0x3898f6,..._0x58a98a},'args':[],'tdx':_0x477e83});gracefulExit(_0x2da32c);}),policyCmd['command'](a2_0x43e9ef(0x37b))[a2_0x43e9ef(0x3c1)]('List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)')[a2_0x43e9ef(0x281)](async _0x5462d9=>{const _0x1dff18=a2_0x43e9ef,_0x285f8c=new PolicyListCommand(),_0x4cbb55=program[_0x1dff18(0x217)](),_0x493730=await createTDXInstance(_0x4cbb55),_0x4d381d=await _0x285f8c['run']({'options':{..._0x4cbb55,..._0x5462d9},'args':[],'tdx':_0x493730});gracefulExit(_0x4d381d);}),policyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2b4))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1e0))[a2_0x43e9ef(0x281)](async(_0x541f03,_0x49665f)=>{const _0x8aff1e=a2_0x43e9ef,_0x5d93d2=new PolicyShowCommand(),_0x3cb1f5=program[_0x8aff1e(0x217)](),_0xc38605=await createTDXInstance(_0x3cb1f5),_0x8a3e95=await _0x5d93d2['run']({'options':{..._0x3cb1f5,..._0x49665f},'args':[_0x541f03],'tdx':_0xc38605});gracefulExit(_0x8a3e95);}),program['command']('profiles')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x417))['action'](async _0x1f3df3=>{const _0x323934=a2_0x43e9ef,_0x2ea87b=new ProfilesCommand(),_0x126f78=program['opts'](),_0x347947=await _0x2ea87b[_0x323934(0x4d4)]({'options':{..._0x126f78,..._0x1f3df3},'args':[],'tdx':null});gracefulExit(_0x347947);});const profileCmd=program['command'](a2_0x43e9ef(0x32f))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x320));profileCmd[a2_0x43e9ef(0x281)](()=>{const _0x140c3c=a2_0x43e9ef;profileCmd[_0x140c3c(0x24e)]();});const profileListAction=async _0x1e7361=>{const _0x2d2f4f=a2_0x43e9ef,_0x8c71e8=new ProfilesCommand(),_0x1595f3=program[_0x2d2f4f(0x217)](),_0x11c4c6=await _0x8c71e8[_0x2d2f4f(0x4d4)]({'options':{..._0x1595f3,..._0x1e7361},'args':[],'tdx':null});gracefulExit(_0x11c4c6);};profileCmd['command'](a2_0x43e9ef(0x37b))['description'](a2_0x43e9ef(0x417))['action'](profileListAction),profileCmd[a2_0x43e9ef(0x412)]('create\x20[name]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2ee))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),'\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')[a2_0x43e9ef(0x281)](async(_0x2ca723,_0x407547)=>{const _0x2a63a1=a2_0x43e9ef,_0x443f48=new ProfileCreateCommand(),_0x58b213=program[_0x2a63a1(0x217)](),_0x5ab390=await _0x443f48[_0x2a63a1(0x4d4)]({'options':{..._0x58b213,..._0x407547},'args':_0x2ca723?[_0x2ca723]:[],'tdx':null});gracefulExit(_0x5ab390);}),profileCmd['command'](a2_0x43e9ef(0x428))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4a8))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),a2_0x43e9ef(0x405))[a2_0x43e9ef(0x281)](async(_0x1010ed,_0x3b356e)=>{const _0x24377a=a2_0x43e9ef,_0x3578f9=new ProfileRemoveCommand(),_0xefeb24=program[_0x24377a(0x217)](),_0x2fc82a=await _0x3578f9[_0x24377a(0x4d4)]({'options':{..._0xefeb24,..._0x3b356e},'args':[_0x1010ed],'tdx':null});gracefulExit(_0x2fc82a);}),profileCmd['command'](a2_0x43e9ef(0x465))['description'](a2_0x43e9ef(0x3cb))[a2_0x43e9ef(0x273)](a2_0x43e9ef(0x387),a2_0x43e9ef(0x329))[a2_0x43e9ef(0x281)](async(_0x1c928c,_0x24b09b)=>{const _0x267d95=a2_0x43e9ef,_0xcd7ddb=new ProfileSetCommand(),_0x4ab3d9=program[_0x267d95(0x217)](),_0x5a0279=await _0xcd7ddb[_0x267d95(0x4d4)]({'options':{..._0x4ab3d9,..._0x24b09b},'args':[_0x1c928c],'tdx':null});gracefulExit(_0x5a0279);}),profileCmd['command']('use\x20<name>')['description'](a2_0x43e9ef(0x35a))['option'](a2_0x43e9ef(0x373),a2_0x43e9ef(0x234))['addHelpText'](a2_0x43e9ef(0x387),a2_0x43e9ef(0x33d))[a2_0x43e9ef(0x281)](async(_0x4e9c6a,_0xd6ac6f)=>{const _0x422af6=a2_0x43e9ef,_0x1a62c8=new ProfileUseCommand(),_0x336b75=program[_0x422af6(0x217)](),_0x1fa7e9=await _0x1a62c8[_0x422af6(0x4d4)]({'options':{..._0x336b75,..._0xd6ac6f},'args':[_0x4e9c6a],'tdx':null});gracefulExit(_0x1fa7e9);});const engageCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x44a))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2d7)),createEngageAction=_0x8831fe=>{return async(_0x2fa3db,_0x4e5aac)=>{const _0x171537=a2_0x3ef4,_0x4c467f=new _0x8831fe(),_0x34fab1=program['opts'](),_0x4a40a6=await createTDXInstance(_0x34fab1),_0x370bcb=await _0x4c467f[_0x171537(0x4d4)]({'options':{..._0x34fab1,..._0x4e5aac},'args':[_0x2fa3db],'tdx':_0x4a40a6});gracefulExit(_0x370bcb);};},createEngageNoArgAction=_0x1c2baa=>{return async _0x496e82=>{const _0x41d285=a2_0x3ef4,_0x1efac0=new _0x1c2baa(),_0x1f3192=program[_0x41d285(0x217)](),_0xed5896=await createTDXInstance(_0x1f3192),_0x33a817=await _0x1efac0[_0x41d285(0x4d4)]({'options':{..._0x1f3192,..._0x496e82},'args':[],'tdx':_0xed5896});gracefulExit(_0x33a817);};},createEngageListAction=_0x5e076e=>{return async(_0x31f904,_0x2553dd)=>{const _0x505cbb=a2_0x3ef4,_0x144f7b=new _0x5e076e(),_0x99b573=program[_0x505cbb(0x217)](),_0x540442=await createTDXInstance(_0x99b573),_0x34763d=await _0x144f7b['run']({'options':{..._0x99b573,..._0x2553dd},'args':_0x31f904?[_0x31f904]:[],'tdx':_0x540442});gracefulExit(_0x34763d);};},campaignCmd=engageCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2aa))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x35c));campaignCmd['command'](a2_0x43e9ef(0x249))['description'](a2_0x43e9ef(0x257))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x239),a2_0x43e9ef(0x27d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x410),a2_0x43e9ef(0x369))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),'Workspace\x20name')['action'](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4af))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x33b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x239),a2_0x43e9ef(0x27d))[a2_0x43e9ef(0x2a7)]('--status\x20<status>',a2_0x43e9ef(0x369))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),'Workspace\x20name')[a2_0x43e9ef(0x281)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x43e9ef(0x412)]('show\x20<name-or-id>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x469))[a2_0x43e9ef(0x2a7)]('--workspace\x20<name>','Workspace\x20name')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x309),a2_0x43e9ef(0x1da))[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3f1))['description'](a2_0x43e9ef(0x40a))['requiredOption'](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x3b2))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x239),a2_0x43e9ef(0x3da))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x35d),'Campaign\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46c),a2_0x43e9ef(0x2b7))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1c5),a2_0x43e9ef(0x1f3))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2da),a2_0x43e9ef(0x39b))[a2_0x43e9ef(0x2a7)]('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x270),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x43e9ef(0x412)]('update\x20<name-or-id>')['description'](a2_0x43e9ef(0x2b6))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))['option']('--name\x20<name>',a2_0x43e9ef(0x4b4))['option'](a2_0x43e9ef(0x35d),'Campaign\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46c),a2_0x43e9ef(0x2b7))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1c5),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2da),a2_0x43e9ef(0x39b))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x216),a2_0x43e9ef(0x445))['option'](a2_0x43e9ef(0x270),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x43e9ef(0x412)]('delete\x20<name-or-id>')['description'](a2_0x43e9ef(0x3fc))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x491),a2_0x43e9ef(0x355))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2a9))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x48d))[a2_0x43e9ef(0x2a7)]('--workspace\x20<name>','Workspace\x20name')[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x25a))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x260))[a2_0x43e9ef(0x2a7)]('--workspace\x20<name>','Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command']('resume\x20<name-or-id>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1fc))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x43e9ef(0x4d5))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x20d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2d2))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4d8))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x30a),'Pull\x20specific\x20campaign\x20by\x20name')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x239),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x43e9ef(0x2a7)]('--dry-run',a2_0x43e9ef(0x2ca))[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignPullCommand)),campaignCmd['command'](a2_0x43e9ef(0x388))[a2_0x43e9ef(0x3c1)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),'Workspace\x20name')['option'](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x40d))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x36d))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1e2))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x343),a2_0x43e9ef(0x29a))[a2_0x43e9ef(0x281)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x43e9ef(0x412)]('always-on-campaign')['description'](a2_0x43e9ef(0x238));alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)]('List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x43e9ef(0x239),a2_0x43e9ef(0x27d))['option']('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')['requiredOption']('--workspace\x20<name>',a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x281)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x43e9ef(0x1fe))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2ce))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x239),a2_0x43e9ef(0x27d))['option']('--status\x20<status>',a2_0x43e9ef(0x482))[a2_0x43e9ef(0x44c)]('--workspace\x20<name>',a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x281)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4de))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x47d))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')['option'](a2_0x43e9ef(0x309),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)]('create')['description']('Create\x20a\x20new\x20always-on\x20campaign')[a2_0x43e9ef(0x44c)]('--name\x20<name>',a2_0x43e9ef(0x3b2))['requiredOption']('--type\x20<type>',a2_0x43e9ef(0x3da))['requiredOption'](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x1d7))['option'](a2_0x43e9ef(0x35d),'Campaign\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x46c),a2_0x43e9ef(0x4c9))[a2_0x43e9ef(0x2a7)]('--enable-utm-tracking',a2_0x43e9ef(0x450))['action'](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2af))['description'](a2_0x43e9ef(0x382))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')['option']('--name\x20<name>',a2_0x43e9ef(0x4b4))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x35d),a2_0x43e9ef(0x2cb))['option'](a2_0x43e9ef(0x46c),'Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x315),'Enable\x20UTM\x20tracking')[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)]('delete\x20<name-or-id>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x27b))['requiredOption'](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x491),a2_0x43e9ef(0x355))[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd['command'](a2_0x43e9ef(0x2a9))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2f3))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x25a))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1c1))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x45f))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x391))[a2_0x43e9ef(0x44c)]('--workspace\x20<name>',a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x31e))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x385))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x491),a2_0x43e9ef(0x355))[a2_0x43e9ef(0x281)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4d5))[a2_0x43e9ef(0x3c1)]('Duplicate\x20an\x20always-on\x20campaign')[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x1d7))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x30a),'Name\x20for\x20the\x20duplicated\x20campaign')['action'](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x43e9ef(0x1fa))[a2_0x43e9ef(0x3c1)]('Email\x20template\x20management');templateCmd[a2_0x43e9ef(0x412)]('list\x20[pattern]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x49e))[a2_0x43e9ef(0x2a7)]('--workspace\x20<name>',a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x281)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x298))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x277))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x281)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4de))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x496))['option']('--workspace\x20<name>',a2_0x43e9ef(0x2a1))['option'](a2_0x43e9ef(0x309),a2_0x43e9ef(0x1da))[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3f1))[a2_0x43e9ef(0x3c1)]('Create\x20an\x20email\x20template')[a2_0x43e9ef(0x44c)]('--name\x20<name>','Template\x20name')[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x47a),a2_0x43e9ef(0x43c))[a2_0x43e9ef(0x2a7)]('--html\x20<html>',a2_0x43e9ef(0x384))[a2_0x43e9ef(0x2a7)]('--html-file\x20<path>',a2_0x43e9ef(0x466))['option'](a2_0x43e9ef(0x47b),'Workspace\x20name\x20(required)')['option'](a2_0x43e9ef(0x241),a2_0x43e9ef(0x2e9))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3ad),a2_0x43e9ef(0x34b),_0x26d6b3=>{const _0x269b47=a2_0x43e9ef;if(!['beefree',_0x269b47(0x1ed)][_0x269b47(0x327)](_0x26d6b3))throw new SDKError(ErrorCode[_0x269b47(0x494)],_0x269b47(0x422)+_0x26d6b3+'.\x20Must\x20be\x20beefree\x20or\x20grapesjs');return _0x26d6b3;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2af))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x381))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x1d5))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47a),'Email\x20subject\x20template')[a2_0x43e9ef(0x2a7)]('--html\x20<html>',a2_0x43e9ef(0x384))['option'](a2_0x43e9ef(0x269),a2_0x43e9ef(0x466))['option'](a2_0x43e9ef(0x241),a2_0x43e9ef(0x2e9))[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x43e9ef(0x472))['description']('Pull\x20templates\x20to\x20YAML\x20files')['option'](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x46e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4b0),'Skip\x20confirmation\x20prompt')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x2ca))[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x388))['description']('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),'Workspace\x20name')[a2_0x43e9ef(0x2a7)]('-y,\x20--yes',a2_0x43e9ef(0x355))[a2_0x43e9ef(0x2a7)]('--dry-run','Show\x20what\x20would\x20be\x20applied\x20without\x20applying')[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplatePushCommand)),templateCmd['command']('validate\x20[target]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x460))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x343),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplateValidateCommand)),templateCmd['command'](a2_0x43e9ef(0x4b8))[a2_0x43e9ef(0x3c1)]('Delete\x20an\x20email\x20template')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x491),a2_0x43e9ef(0x355))[a2_0x43e9ef(0x281)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x4d2));workspaceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1db))[a2_0x43e9ef(0x281)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x47e))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1c6))[a2_0x43e9ef(0x281)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x43e9ef(0x412)]('show\x20<name-or-id>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x22e))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x309),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x43e9ef(0x281)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x43e9ef(0x412)]('create')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x262))[a2_0x43e9ef(0x44c)](a2_0x43e9ef(0x30a),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x35d),a2_0x43e9ef(0x23a))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2af))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2e6))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x30a),'New\x20workspace\x20name')[a2_0x43e9ef(0x2a7)]('--description\x20<desc>',a2_0x43e9ef(0x23a))[a2_0x43e9ef(0x281)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4b8))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x451))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x491),a2_0x43e9ef(0x355))[a2_0x43e9ef(0x281)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x376))['description'](a2_0x43e9ef(0x45a))[a2_0x43e9ef(0x281)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x43e9ef(0x412)]('delivery')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2d0));function a2_0x3ef4(_0x19966b,_0x2b42bc){_0x19966b=_0x19966b-0x1c1;const _0x39f587=a2_0x39f5();let _0x3ef434=_0x39f587[_0x19966b];return _0x3ef434;}deliveryCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x2a4))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x31d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x47b),a2_0x43e9ef(0x2a1))[a2_0x43e9ef(0x281)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x43e9ef(0x412)]('connection')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x26e)),connectionListAction=async _0x3e265d=>{const _0x19b382=a2_0x43e9ef,_0x2c422b=new ConnectionListCommand(),_0x382247=program[_0x19b382(0x217)](),_0x2ecbc3=await createTDXInstance(_0x382247),_0x17a44e=await _0x2c422b[_0x19b382(0x4d4)]({'options':{..._0x382247,..._0x3e265d},'args':[],'tdx':_0x2ecbc3});gracefulExit(_0x17a44e);};connectionCmd[a2_0x43e9ef(0x412)]('list')[a2_0x43e9ef(0x3c1)]('List\x20all\x20data\x20connections')[a2_0x43e9ef(0x281)](connectionListAction),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x44f),{'hidden':!![]})[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x358))[a2_0x43e9ef(0x281)](connectionListAction),connectionCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x44e))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3e6))['action'](async(_0x465859,_0xe6a3d7)=>{const _0x1cd2df=a2_0x43e9ef,_0xf52f83=new ConnectionShowCommand(),_0xc9801e=program[_0x1cd2df(0x217)](),_0x56b0f2=await createTDXInstance(_0xc9801e),_0x45c6da=await _0xf52f83[_0x1cd2df(0x4d4)]({'options':{..._0xc9801e,..._0xe6a3d7},'args':[_0x465859],'tdx':_0x56b0f2});gracefulExit(_0x45c6da);}),connectionCmd[a2_0x43e9ef(0x412)]('schema\x20<type>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x332))[a2_0x43e9ef(0x281)](async(_0x4a99ed,_0x1c4569)=>{const _0x4564bc=a2_0x43e9ef,_0x1d792e=new ConnectionSchemaCommand(),_0x416136=program[_0x4564bc(0x217)](),_0x4336d5=await createTDXInstance(_0x416136),_0x3d5fcb=await _0x1d792e[_0x4564bc(0x4d4)]({'options':{..._0x416136,..._0x1c4569},'args':[_0x4a99ed],'tdx':_0x4336d5});gracefulExit(_0x3d5fcb);}),connectionCmd['command'](a2_0x43e9ef(0x4b1))[a2_0x43e9ef(0x3c1)]('List\x20available\x20connector\x20types')[a2_0x43e9ef(0x281)](async _0x2e028d=>{const _0x1ee7b4=a2_0x43e9ef,_0x278c9c=new ConnectionTypesCommand(),_0x20870f=program[_0x1ee7b4(0x217)](),_0x22cd8e=await createTDXInstance(_0x20870f),_0x56a846=await _0x278c9c[_0x1ee7b4(0x4d4)]({'options':{..._0x20870f,..._0x2e028d},'args':[],'tdx':_0x22cd8e});gracefulExit(_0x56a846);}),connectionCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4d3))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x34f))[a2_0x43e9ef(0x281)](async(_0x2b03ee,_0x6f8e82)=>{const _0x22e8b8=a2_0x43e9ef,_0x273ed3=new ConnectionSettingsCommand(),_0x574ab2=program[_0x22e8b8(0x217)](),_0x39c49c=await createTDXInstance(_0x574ab2),_0x542ce6=await _0x273ed3[_0x22e8b8(0x4d4)]({'options':{..._0x574ab2,..._0x6f8e82},'args':[_0x2b03ee],'tdx':_0x39c49c});gracefulExit(_0x542ce6);});const casCmd=program[a2_0x43e9ef(0x412)]('cas')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x485));casCmd[a2_0x43e9ef(0x412)]('list')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1e1))[a2_0x43e9ef(0x281)](async _0x490464=>{const _0x47557d=a2_0x43e9ef,_0x2cce8d=new CASListCommand(),_0x71f0c8=program[_0x47557d(0x217)](),_0xe44014=await createTDXInstance(_0x71f0c8),_0x2772e4=await _0x2cce8d[_0x47557d(0x4d4)]({'options':{..._0x71f0c8,..._0x490464},'args':[],'tdx':_0xe44014});gracefulExit(_0x2772e4);}),casCmd[a2_0x43e9ef(0x412)]('desc\x20[name]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x336))['action'](async(_0x521801,_0x1fcb06)=>{const _0x1a2923=a2_0x43e9ef,_0x543718=new CASDescCommand(),_0x2b1657=program[_0x1a2923(0x217)](),_0x413ea4=await createTDXInstance(_0x2b1657),_0x2b2eaa=await _0x543718[_0x1a2923(0x4d4)]({'options':{..._0x2b1657,..._0x1fcb06},'args':_0x521801?[_0x521801]:[],'tdx':_0x413ea4});gracefulExit(_0x2b2eaa);}),casCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x255))['description']('Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x43e9ef(0x2a7)]('--dir\x20<dir>',a2_0x43e9ef(0x456))['option'](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x3ef))[a2_0x43e9ef(0x281)](async(_0x23aff2,_0x2280b5)=>{const _0x425419=a2_0x43e9ef,_0x3b79d2=new CASPullCommand(),_0x146bd7=program[_0x425419(0x217)](),_0x3dafe7=await createTDXInstance(_0x146bd7),_0x1a1cee=await _0x3b79d2[_0x425419(0x4d4)]({'options':{..._0x146bd7,..._0x2280b5},'args':_0x23aff2?[_0x23aff2]:[],'tdx':_0x3dafe7});gracefulExit(_0x1a1cee);}),casCmd['command']('push\x20[target]')[a2_0x43e9ef(0x3c1)]('Push\x20YAML\x20files\x20to\x20CAS\x20API')['option'](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x49d))['action'](async(_0x15f3d2,_0x29ac9e)=>{const _0x344ea4=a2_0x43e9ef,_0x925695=new CASPushCommand(),_0xcc8cb6=program[_0x344ea4(0x217)](),_0x42efee=await createTDXInstance(_0xcc8cb6),_0x34c3f6=await _0x925695[_0x344ea4(0x4d4)]({'options':{..._0xcc8cb6,..._0x29ac9e},'args':_0x15f3d2?[_0x15f3d2]:[],'tdx':_0x42efee});gracefulExit(_0x34c3f6);}),casCmd[a2_0x43e9ef(0x412)]('preview\x20<segment_name>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x29d))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x1e6),'Composable\x20audience\x20name')[a2_0x43e9ef(0x281)](async(_0x221015,_0x17d09f)=>{const _0x4ff665=a2_0x43e9ef,_0x52a2d3=new CASPreviewCommand(),_0x11a7fc=program['opts'](),_0x34087b=await createTDXInstance(_0x11a7fc),_0x3df718=await _0x52a2d3[_0x4ff665(0x4d4)]({'options':{..._0x11a7fc,..._0x17d09f},'args':[_0x221015,_0x17d09f[_0x4ff665(0x3a1)]],'tdx':_0x34087b});gracefulExit(_0x3df718);});const casSgCmd=casCmd[a2_0x43e9ef(0x412)]('sg')['description'](a2_0x43e9ef(0x39c));casSgCmd[a2_0x43e9ef(0x412)]('list\x20[audience_name]')['description'](a2_0x43e9ef(0x303))[a2_0x43e9ef(0x281)](async(_0x413c3f,_0x14c4ac)=>{const _0xac6b9a=a2_0x43e9ef,_0x453a62=new CASSegmentListCommand(),_0x31a2d5=program[_0xac6b9a(0x217)](),_0x2e2742=await createTDXInstance(_0x31a2d5),_0x362e6e=await _0x453a62[_0xac6b9a(0x4d4)]({'options':{..._0x31a2d5,..._0x14c4ac},'args':_0x413c3f?[_0x413c3f]:[],'tdx':_0x2e2742});gracefulExit(_0x362e6e);});const journeyCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3cf))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2dc)),journeyListAction=async(_0x772c67,_0x271f15)=>{const _0x5af777=a2_0x43e9ef,_0x52431e=new JourneyListCommand(),_0x481f4a=program[_0x5af777(0x217)](),_0x365f25=await createTDXInstance(_0x481f4a),_0x573c4a=await _0x52431e[_0x5af777(0x4d4)]({'options':{..._0x481f4a,..._0x271f15},'args':_0x772c67?[_0x772c67]:[],'tdx':_0x365f25});gracefulExit(_0x573c4a);};journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))['description']('List\x20journeys\x20in\x20current\x20context')[a2_0x43e9ef(0x281)](journeyListAction),journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x400))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2e1))['option'](a2_0x43e9ef(0x45c),a2_0x43e9ef(0x1c2))[a2_0x43e9ef(0x2a7)]('--include-stats',a2_0x43e9ef(0x357))[a2_0x43e9ef(0x281)](async(_0xd28626,_0x165a42)=>{const _0x36fe88=a2_0x43e9ef,_0x1b0dae=new JourneyViewCommand(),_0x364616=program[_0x36fe88(0x217)](),_0x7a29db=await createTDXInstance(_0x364616),_0x3f44ad=await _0x1b0dae[_0x36fe88(0x4d4)]({'options':{..._0x364616,..._0x165a42},'args':[_0xd28626],'tdx':_0x7a29db});gracefulExit(_0x3f44ad);}),journeyCmd['command'](a2_0x43e9ef(0x22c))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x43f))[a2_0x43e9ef(0x2a7)]('--stage\x20<name>',a2_0x43e9ef(0x2f5))[a2_0x43e9ef(0x2a7)]('--from\x20<date>',a2_0x43e9ef(0x313))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x28e),a2_0x43e9ef(0x398))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x25b),a2_0x43e9ef(0x2ab))[a2_0x43e9ef(0x281)](async(_0x34bb4c,_0x57aa6c)=>{const _0x2beb9a=a2_0x43e9ef,_0x4a7f10=new JourneyStatsCommand(),_0x4cb87c=program[_0x2beb9a(0x217)](),_0x1d193d=await createTDXInstance(_0x4cb87c),_0x4f7766=await _0x4a7f10[_0x2beb9a(0x4d4)]({'options':{..._0x4cb87c,..._0x57aa6c},'args':[_0x34bb4c],'tdx':_0x1d193d});gracefulExit(_0x4f7766);}),journeyCmd[a2_0x43e9ef(0x412)]('traffic\x20<name-or-path>')['description'](a2_0x43e9ef(0x2c2))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x239),a2_0x43e9ef(0x404))['option'](a2_0x43e9ef(0x1cc),a2_0x43e9ef(0x313))['option'](a2_0x43e9ef(0x28e),a2_0x43e9ef(0x398))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x299),'Maximum\x20number\x20of\x20nodes',_0x1c3654=>{const _0x1b1eb3=a2_0x43e9ef,_0x4e796d=parseInt(_0x1c3654,0xa);if(isNaN(_0x4e796d))throw new Error(_0x1b1eb3(0x3d6)+_0x1c3654+_0x1b1eb3(0x32c));return _0x4e796d;})[a2_0x43e9ef(0x281)](async(_0x4d002b,_0x2995fe)=>{const _0x5c6457=a2_0x43e9ef,_0x361469=new JourneyTrafficCommand(),_0x3d0cb8=program[_0x5c6457(0x217)](),_0x4faeb1=await createTDXInstance(_0x3d0cb8),_0x3218c2=await _0x361469[_0x5c6457(0x4d4)]({'options':{..._0x3d0cb8,..._0x2995fe},'args':[_0x4d002b],'tdx':_0x4faeb1});gracefulExit(_0x3218c2);}),journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4c8))['description']('Pause\x20a\x20running\x20journey')[a2_0x43e9ef(0x281)](async(_0x188e99,_0x28a65b)=>{const _0x9d84f7=a2_0x43e9ef,_0x30a40e=new JourneyPauseCommand(),_0x3bbe76=program[_0x9d84f7(0x217)](),_0x25551e=await createTDXInstance(_0x3bbe76),_0x31abcc=await _0x30a40e['run']({'options':{..._0x3bbe76,..._0x28a65b},'args':[_0x188e99],'tdx':_0x25551e});gracefulExit(_0x31abcc);}),journeyCmd['command'](a2_0x43e9ef(0x3bd))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1d2))[a2_0x43e9ef(0x281)](async(_0x5ef9fe,_0x11dfd9)=>{const _0x290ea4=a2_0x43e9ef,_0x246bab=new JourneyResumeCommand(),_0x2804de=program[_0x290ea4(0x217)](),_0x42f8f1=await createTDXInstance(_0x2804de),_0x2e10d7=await _0x246bab[_0x290ea4(0x4d4)]({'options':{..._0x2804de,..._0x11dfd9},'args':[_0x5ef9fe],'tdx':_0x42f8f1});gracefulExit(_0x2e10d7);}),journeyCmd[a2_0x43e9ef(0x412)]('pull\x20[name]')[a2_0x43e9ef(0x3c1)]('Export\x20journey(s)\x20as\x20YAML\x20files')['option'](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x3ef))[a2_0x43e9ef(0x281)](async(_0x48726c,_0x47d57b)=>{const _0x2619c5=new JourneyPullCommand(),_0x50ba11=program['opts'](),_0x5c01ba=await createTDXInstance(_0x50ba11),_0x3933af=await _0x2619c5['run']({'options':{..._0x50ba11,..._0x47d57b},'args':_0x48726c?[_0x48726c]:[],'tdx':_0x5c01ba});gracefulExit(_0x3933af);}),journeyCmd[a2_0x43e9ef(0x412)]('push\x20[target]')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x212))[a2_0x43e9ef(0x281)](async(_0x4613ae,_0xf31121)=>{const _0x110c85=a2_0x43e9ef,_0x4a7b8d=new JourneyPushCommand(),_0x269eb1=program['opts'](),_0x16fa03=await createTDXInstance(_0x269eb1),_0x2d1c2c=await _0x4a7b8d[_0x110c85(0x4d4)]({'options':{..._0x269eb1,..._0xf31121},'args':_0x4613ae?[_0x4613ae]:[],'tdx':_0x16fa03});gracefulExit(_0x2d1c2c);}),journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x21d))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x49b))['action'](async(_0x12be21,_0x51b635)=>{const _0x2fd986=a2_0x43e9ef,_0x2ec657=new JourneyColumnsCommand(),_0x11a2e5=program[_0x2fd986(0x217)](),_0xb25cb4=await createTDXInstance(_0x11a2e5),_0xe9708e=await _0x2ec657[_0x2fd986(0x4d4)]({'options':{..._0x11a2e5,..._0x51b635},'args':[_0x12be21],'tdx':_0xb25cb4});gracefulExit(_0xe9708e);}),journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x4c7))['description']('List\x20activations\x20for\x20a\x20journey')[a2_0x43e9ef(0x281)](async(_0x35c630,_0x5b272a)=>{const _0x1f6190=a2_0x43e9ef,_0x5b1629=new JourneyActivationsCommand(),_0x8bd9f8=program[_0x1f6190(0x217)](),_0x4c7f25=await createTDXInstance(_0x8bd9f8),_0x58113e=await _0x5b1629[_0x1f6190(0x4d4)]({'options':{..._0x8bd9f8,..._0x5b272a},'args':[_0x35c630],'tdx':_0x4c7f25});gracefulExit(_0x58113e);}),journeyCmd[a2_0x43e9ef(0x412)]('versions\x20<name-or-path>')['description']('List\x20all\x20versions\x20of\x20a\x20journey')[a2_0x43e9ef(0x281)](async(_0x3604bd,_0x5af8b3)=>{const _0x2df0a9=a2_0x43e9ef,_0x414291=new JourneyVersionsCommand(),_0x2d0dbc=program['opts'](),_0x5cc7ab=await createTDXInstance(_0x2d0dbc),_0x4c9d36=await _0x414291[_0x2df0a9(0x4d4)]({'options':{..._0x2d0dbc,..._0x5af8b3},'args':[_0x3604bd],'tdx':_0x5cc7ab});gracefulExit(_0x4c9d36);});const journeyVersionCmd=journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x349))[a2_0x43e9ef(0x3c1)]('Journey\x20version\x20management');journeyVersionCmd['command'](a2_0x43e9ef(0x233))[a2_0x43e9ef(0x3c1)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x43e9ef(0x281)](async(_0xa7fa47,_0x526dee)=>{const _0x6e184f=a2_0x43e9ef,_0x53b46e=new JourneyVersionCreateCommand(),_0x374876=program['opts'](),_0x3a0464=await createTDXInstance(_0x374876),_0x38c667=await _0x53b46e[_0x6e184f(0x4d4)]({'options':{..._0x374876,..._0x526dee},'args':[_0xa7fa47],'tdx':_0x3a0464});gracefulExit(_0x38c667);}),journeyVersionCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x400))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x283))[a2_0x43e9ef(0x44c)]('--version\x20<number>','Version\x20number\x20to\x20view')['action'](async(_0x52811b,_0x1ff1bb)=>{const _0x408272=a2_0x43e9ef,_0x5f1ae2=new JourneyVersionViewCommand(),_0x221593=program[_0x408272(0x217)](),_0x400c2a=await createTDXInstance(_0x221593),_0x154bbc=await _0x5f1ae2[_0x408272(0x4d4)]({'options':{..._0x221593,..._0x1ff1bb},'args':[_0x52811b],'tdx':_0x400c2a});gracefulExit(_0x154bbc);}),journeyCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x36d))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3fb))[a2_0x43e9ef(0x281)](async(_0x224dfe,_0x769988)=>{const _0x2d6317=a2_0x43e9ef,_0xe812f2=new JourneyValidateCommand(),_0x36a63b=program[_0x2d6317(0x217)](),_0x36fe49=await createTDXInstance(_0x36a63b),_0x58a954=await _0xe812f2[_0x2d6317(0x4d4)]({'options':{..._0x36a63b,..._0x769988},'args':_0x224dfe?[_0x224dfe]:[],'tdx':_0x36fe49});gracefulExit(_0x58a954);}),program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3a9))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1e5))['action'](journeyListAction);const agentSyncCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x244))['description']('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x43e9ef(0x2bc))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3ca))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x4ac),a2_0x43e9ef(0x2f4))['option'](a2_0x43e9ef(0x2e4),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x454),'Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x43e9ef(0x281)](async(_0x331392,_0x2a74bb,_0x4dc2a3)=>{const _0x3de6e4=a2_0x43e9ef,_0x4b6cd1=new AgentPullCommand(),_0x1bb6c9=program[_0x3de6e4(0x217)](),_0x46a26b=await createTDXInstance(_0x1bb6c9),_0x3a034c=[];if(_0x331392)_0x3a034c[_0x3de6e4(0x4a0)](_0x331392);if(_0x2a74bb)_0x3a034c[_0x3de6e4(0x4a0)](_0x2a74bb);const _0x2e812b=await _0x4b6cd1[_0x3de6e4(0x4d4)]({'options':{..._0x1bb6c9,..._0x4dc2a3},'args':_0x3a034c,'tdx':_0x46a26b});gracefulExit(_0x2e812b);}),agentSyncCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x383))['description'](a2_0x43e9ef(0x331))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2e4),a2_0x43e9ef(0x286))[a2_0x43e9ef(0x281)](async(_0xf33378,_0x55ad10)=>{const _0x34a44c=a2_0x43e9ef,_0x4b76e6=new AgentPushCommand(),_0xfa3743=program[_0x34a44c(0x217)](),_0x2e4bdb=await createTDXInstance(_0xfa3743),_0x1465be=await _0x4b76e6['run']({'options':{..._0xfa3743,..._0x55ad10},'args':_0xf33378?[_0xf33378]:[],'tdx':_0x2e4bdb});gracefulExit(_0x1465be);}),agentSyncCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x497))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x48a))['option'](a2_0x43e9ef(0x20a),a2_0x43e9ef(0x446))[a2_0x43e9ef(0x281)](async(_0x286c51,_0x2411cd)=>{const _0x2bd48a=a2_0x43e9ef,_0x5a329f=new AgentCloneCommand(),_0x1d0e3c=program[_0x2bd48a(0x217)](),_0x534bb7=await createTDXInstance(_0x1d0e3c),_0x344989=await _0x5a329f[_0x2bd48a(0x4d4)]({'options':{..._0x1d0e3c,..._0x2411cd},'args':_0x286c51?[_0x286c51]:[],'tdx':_0x534bb7});gracefulExit(_0x344989);}),agentSyncCmd[a2_0x43e9ef(0x412)]('test\x20[path]')['description'](a2_0x43e9ef(0x225))[a2_0x43e9ef(0x2a7)]('--name\x20<names>',a2_0x43e9ef(0x4cd))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x37a),'Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')['option'](a2_0x43e9ef(0x3a3),a2_0x43e9ef(0x3bf))['option'](a2_0x43e9ef(0x23d),a2_0x43e9ef(0x447))[a2_0x43e9ef(0x2a7)]('--reeval',a2_0x43e9ef(0x2ec))['action'](async(_0xeb50ec,_0x40d2dd)=>{const _0x1ccb80=a2_0x43e9ef,_0x1d5675=new AgentTestCommand(),_0x378cc5=program[_0x1ccb80(0x217)](),_0x5badbc=await createTDXInstance(_0x378cc5),_0x51999d=await _0x1d5675[_0x1ccb80(0x4d4)]({'options':{..._0x378cc5,..._0x40d2dd},'args':_0xeb50ec?[_0xeb50ec]:[],'tdx':_0x5badbc});gracefulExit(_0x51999d);}),agentSyncCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x249))['description'](a2_0x43e9ef(0x41a))[a2_0x43e9ef(0x281)](llmAgentListAction),agentSyncCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x1f9))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x415))[a2_0x43e9ef(0x281)](async(_0x2c04d9,_0x35efa1)=>{const _0x138c8d=a2_0x43e9ef,_0x3a82fc=new LLMAgentShowCommand(),_0x354ca0=program['opts'](),_0x3f32d7=await createTDXInstance(_0x354ca0),_0x4d6d55=await _0x3a82fc[_0x138c8d(0x4d4)]({'options':{..._0x354ca0,..._0x35efa1},'args':[_0x2c04d9],'tdx':_0x3f32d7});gracefulExit(_0x4d6d55);}),agentSyncCmd[a2_0x43e9ef(0x412)]('create\x20<name>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x47f))['option']('--system-prompt\x20<text>',a2_0x43e9ef(0x4c0))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x36a),a2_0x43e9ef(0x4bd),a2_0x43e9ef(0x2ed))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x209),a2_0x43e9ef(0x2fb))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x3bc),a2_0x43e9ef(0x33a),'4')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x29f),a2_0x43e9ef(0x3ac),a2_0x43e9ef(0x226))[a2_0x43e9ef(0x281)](async(_0x3cdc3b,_0x51ef6a)=>{const _0x174bba=a2_0x43e9ef,_0x2ed873=new LLMAgentCreateCommand(),_0x3a03fb=program['opts'](),_0x2499cb=await createTDXInstance(_0x3a03fb),_0x5883ee=await _0x2ed873[_0x174bba(0x4d4)]({'options':{..._0x3a03fb,..._0x51ef6a},'args':[_0x3cdc3b],'tdx':_0x2499cb});gracefulExit(_0x5883ee);}),agentSyncCmd['command'](a2_0x43e9ef(0x3fd))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x1e8))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2fd),a2_0x43e9ef(0x3a4))['option'](a2_0x43e9ef(0x480),a2_0x43e9ef(0x334))['option']('--description\x20<text>','Agent\x20description')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x209),a2_0x43e9ef(0x2fb))[a2_0x43e9ef(0x281)](async(_0x143446,_0x5d7e50)=>{const _0x248ed0=a2_0x43e9ef,_0x152e66=new LLMAgentUpdateCommand(),_0x27c4f1=program['opts'](),_0x2986f7=await createTDXInstance(_0x27c4f1),_0x16dfda=await _0x152e66[_0x248ed0(0x4d4)]({'options':{..._0x27c4f1,..._0x5d7e50},'args':[_0x143446],'tdx':_0x2986f7});gracefulExit(_0x16dfda);}),agentSyncCmd['command'](a2_0x43e9ef(0x3c3))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x377))[a2_0x43e9ef(0x281)](async(_0x41510d,_0x4e7bb1)=>{const _0xf3c5d4=a2_0x43e9ef,_0x1904fd=new LLMAgentDeleteCommand(),_0x3544ef=program[_0xf3c5d4(0x217)](),_0x190ac4=await createTDXInstance(_0x3544ef),_0x3fb808=await _0x1904fd[_0xf3c5d4(0x4d4)]({'options':{..._0x3544ef,..._0x4e7bb1},'args':[_0x41510d],'tdx':_0x190ac4});gracefulExit(_0x3fb808);});const workCmd=program[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x474))[a2_0x43e9ef(0x3c1)]('AI-native\x20work\x20management');workCmd[a2_0x43e9ef(0x281)](workSummaryAction),workCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3c2))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x242))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x471),a2_0x43e9ef(0x4e3))[a2_0x43e9ef(0x281)](workInitAction),workCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x1ee))['description'](a2_0x43e9ef(0x4a7))[a2_0x43e9ef(0x2a7)]('--kind\x20<kind>',a2_0x43e9ef(0x409),a2_0x43e9ef(0x1d3))[a2_0x43e9ef(0x2a7)]('--tags\x20<tags>','Comma-separated\x20tags')[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x352),a2_0x43e9ef(0x4ab))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x2c0),a2_0x43e9ef(0x31a))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x38a),a2_0x43e9ef(0x407))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x410),a2_0x43e9ef(0x477))[a2_0x43e9ef(0x2a7)](a2_0x43e9ef(0x203),a2_0x43e9ef(0x438))[a2_0x43e9ef(0x281)](workNewAction),workCmd[a2_0x43e9ef(0x412)]('move\x20<name>\x20<status>')[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x251))['action'](workMoveAction),workCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x3e3))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x3b1))[a2_0x43e9ef(0x281)](workBoardAction),workCmd[a2_0x43e9ef(0x412)](a2_0x43e9ef(0x44e))[a2_0x43e9ef(0x3c1)](a2_0x43e9ef(0x2c6))[a2_0x43e9ef(0x281)](workShowAction),workCmd['command']('links\x20<name>')['description'](a2_0x43e9ef(0x3d2))['action'](workLinksAction),workCmd['command'](a2_0x43e9ef(0x296))['description'](a2_0x43e9ef(0x483))[a2_0x43e9ef(0x281)](workOpenAction),program[a2_0x43e9ef(0x412)]('_list-commands',{'hidden':!![]})['action'](()=>{const _0x206aec=a2_0x43e9ef;function _0x753056(_0x12cf92,_0x495ef2){const _0xe880a8=a2_0x3ef4,_0x372f5b=[];for(const _0x604d8e of _0x12cf92[_0xe880a8(0x1cb)]){if(_0x604d8e[_0xe880a8(0x285)])continue;const _0x3afd26=_0x495ef2?_0x495ef2+'\x20'+_0x604d8e['name']():_0x604d8e[_0xe880a8(0x2d9)](),_0x3fe7dd=_0x3afd26[_0xe880a8(0x45e)]('\x20')[0x0],_0x4a408d=COMMAND_CATEGORIES['find'](_0x4a3e84=>_0x4a3e84[_0xe880a8(0x1cb)]['includes'](_0x3fe7dd)),_0x496922=_0x4a408d?.['name']??'';if(_0x604d8e[_0xe880a8(0x1cb)][_0xe880a8(0x210)]>0x0)_0x372f5b[_0xe880a8(0x4a0)](..._0x753056(_0x604d8e,_0x3afd26));else{const _0x133e81=(_0x604d8e[_0xe880a8(0x30c)]||[])[_0xe880a8(0x2c5)](_0x197d58=>{const _0x409b35=_0xe880a8,_0x3fc289=_0x197d58[_0x409b35(0x464)]?_0x197d58[_0x409b35(0x2d9)]()+_0x409b35(0x3f7):_0x197d58[_0x409b35(0x2d9)]();return _0x197d58[_0x409b35(0x2a6)]?'<'+_0x3fc289+'>':'['+_0x3fc289+']';})['join']('\x20'),_0x1a2ace=_0x604d8e[_0xe880a8(0x33e)][_0xe880a8(0x3b0)](_0x5e482b=>!_0x5e482b[_0xe880a8(0x24d)]&&_0x5e482b[_0xe880a8(0x3fa)]!=='--help')[_0xe880a8(0x2c5)](_0xe9f21c=>({'flags':_0xe9f21c[_0xe880a8(0x351)],'description':_0xe9f21c[_0xe880a8(0x3c1)]}));_0x372f5b[_0xe880a8(0x4a0)]({'name':_0x3afd26,'description':_0x604d8e[_0xe880a8(0x3c1)](),'group':_0x496922,'usage':_0x133e81,'options':_0x1a2ace});}}return _0x372f5b;}console[_0x206aec(0x3d5)](JSON['stringify'](_0x753056(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0xd57a54=a2_0x43e9ef,_0x473885=!process['argv'][_0xd57a54(0x32b)](0x2)[_0xd57a54(0x210)];showBriefHelp=_0x473885,program[_0xd57a54(0x37d)](process[_0xd57a54(0x431)]);_0x473885&&program[_0xd57a54(0x24e)]();const _0x39eeb6=process[_0xd57a54(0x431)][0x2]===_0xd57a54(0x437);if(process[_0xd57a54(0x312)]['isTTY']&&process['argv'][_0xd57a54(0x210)]>0x2&&!isDevVersion()&&!_0x39eeb6){const _0x38b0b6=loadReleaseChannel();checkForUpdate(currentVersion,_0x38b0b6)[_0xd57a54(0x402)](_0x154d1c=>{_0x154d1c&&displayUpdateNotification(_0x154d1c);})[_0xd57a54(0x28a)](()=>{});}}