@treasuredata/tdx 2026.6.4 → 2026.7.0

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 (270) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.d.ts.map +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/command.js.map +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.d.ts.map +1 -1
  23. package/dist/commands/databases.js +1 -1
  24. package/dist/commands/databases.js.map +1 -1
  25. package/dist/commands/delivery-command.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-campaign-pull-command.js +1 -1
  28. package/dist/commands/engage-campaign-push-command.js +1 -1
  29. package/dist/commands/engage-campaign-validate-command.js +1 -1
  30. package/dist/commands/engage-command.js +1 -1
  31. package/dist/commands/engage-template-pull-command.js +1 -1
  32. package/dist/commands/engage-template-push-command.js +1 -1
  33. package/dist/commands/engage-template-validate-command.js +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/journey-command.js +1 -1
  36. package/dist/commands/journey-command.js.map +1 -1
  37. package/dist/commands/journey-validate-command.js +1 -1
  38. package/dist/commands/llm-command.js +1 -1
  39. package/dist/commands/mcp-command.js +1 -1
  40. package/dist/commands/parent-segment-command.js +1 -1
  41. package/dist/commands/policy-command.js +1 -1
  42. package/dist/commands/profile-command.js +1 -1
  43. package/dist/commands/profiles-command.js +1 -1
  44. package/dist/commands/query-command.js +1 -1
  45. package/dist/commands/schedule-command.js +1 -1
  46. package/dist/commands/segment-command.js +1 -1
  47. package/dist/commands/segment-create-command.js +1 -1
  48. package/dist/commands/segment-fields-command.js +1 -1
  49. package/dist/commands/segment-move-command.d.ts +26 -0
  50. package/dist/commands/segment-move-command.d.ts.map +1 -0
  51. package/dist/commands/segment-move-command.js +1 -0
  52. package/dist/commands/segment-move-command.js.map +1 -0
  53. package/dist/commands/segment-pull-command.js +1 -1
  54. package/dist/commands/segment-push-command.js +1 -1
  55. package/dist/commands/segment-update-command.js +1 -1
  56. package/dist/commands/segment-use-command.js +1 -1
  57. package/dist/commands/segment-validate-command.js +1 -1
  58. package/dist/commands/segments.d.ts +9 -0
  59. package/dist/commands/segments.d.ts.map +1 -1
  60. package/dist/commands/segments.js +1 -1
  61. package/dist/commands/segments.js.map +1 -1
  62. package/dist/commands/show.js +1 -1
  63. package/dist/commands/status-command.js +1 -1
  64. package/dist/commands/table-deleted.js +1 -1
  65. package/dist/commands/tables.js +1 -1
  66. package/dist/commands/unset-command.js +1 -1
  67. package/dist/commands/upgrade-command.js +1 -1
  68. package/dist/commands/use-command.js +1 -1
  69. package/dist/commands/user-command.js +1 -1
  70. package/dist/commands/work-command.js +1 -1
  71. package/dist/commands/workflow-command.js +1 -1
  72. package/dist/core/auth.js +1 -1
  73. package/dist/core/command-output.d.ts.map +1 -1
  74. package/dist/core/command-output.js +1 -1
  75. package/dist/core/command-output.js.map +1 -1
  76. package/dist/core/config.js +1 -1
  77. package/dist/core/connection-cache.js +1 -1
  78. package/dist/core/constants.js +1 -1
  79. package/dist/core/credential-cache.js +1 -1
  80. package/dist/core/global-context.js +1 -1
  81. package/dist/core/keychain.js +1 -1
  82. package/dist/core/oauth-keychain.js +1 -1
  83. package/dist/core/oauth.js +1 -1
  84. package/dist/core/profile.js +1 -1
  85. package/dist/core/project-config.js +1 -1
  86. package/dist/core/session.js +1 -1
  87. package/dist/core/user-cache.js +1 -1
  88. package/dist/core/version.js +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/mcp/server.js +1 -1
  91. package/dist/mcp/tools/index.js +1 -1
  92. package/dist/mcp/tools/tdx-run.js +1 -1
  93. package/dist/mcp/tools/tdx-search.js +1 -1
  94. package/dist/mcp/tools/work-create-item.js +1 -1
  95. package/dist/mcp/utils.js +1 -1
  96. package/dist/proxy/claude-usage-tracker.js +1 -1
  97. package/dist/proxy/passthrough-server.js +1 -1
  98. package/dist/proxy/sse-usage-parser.js +1 -1
  99. package/dist/sdk/agent/agent-config.js +1 -1
  100. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  101. package/dist/sdk/agent/agent-yaml.js +1 -1
  102. package/dist/sdk/agent/test/evaluator.js +1 -1
  103. package/dist/sdk/agent/test/executor.js +1 -1
  104. package/dist/sdk/agent/test/index.js +1 -1
  105. package/dist/sdk/agent/test/output.js +1 -1
  106. package/dist/sdk/agent/test/parser.js +1 -1
  107. package/dist/sdk/agent/tool-target-registry.js +1 -1
  108. package/dist/sdk/api.js +1 -1
  109. package/dist/sdk/cas/cas-api-client.js +1 -1
  110. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  111. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  112. package/dist/sdk/cas/index.js +1 -1
  113. package/dist/sdk/cas/pull-workflow.js +1 -1
  114. package/dist/sdk/cas/push-workflow.js +1 -1
  115. package/dist/sdk/client/cdp-api-client.d.ts +18 -0
  116. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  117. package/dist/sdk/client/cdp-api-client.js +1 -1
  118. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  119. package/dist/sdk/client/delivery-api-client.js +1 -1
  120. package/dist/sdk/client/endpoints.js +1 -1
  121. package/dist/sdk/client/engage-api-client.js +1 -1
  122. package/dist/sdk/client/http-client.js +1 -1
  123. package/dist/sdk/client/llm-api-client.js +1 -1
  124. package/dist/sdk/client/oauth-refresh.js +1 -1
  125. package/dist/sdk/client/rate-limiter.js +1 -1
  126. package/dist/sdk/client/td-api-client.js +1 -1
  127. package/dist/sdk/client/trino-api-client.js +1 -1
  128. package/dist/sdk/client/workflow-client.js +1 -1
  129. package/dist/sdk/connection-validator.js +1 -1
  130. package/dist/sdk/connection.js +1 -1
  131. package/dist/sdk/delivery.js +1 -1
  132. package/dist/sdk/engage/campaign-pull.js +1 -1
  133. package/dist/sdk/engage/campaign-push.js +1 -1
  134. package/dist/sdk/engage/campaign-validator.js +1 -1
  135. package/dist/sdk/engage/campaign-yaml.js +1 -1
  136. package/dist/sdk/engage/template-pull.js +1 -1
  137. package/dist/sdk/engage/template-push.js +1 -1
  138. package/dist/sdk/engage/template-validator.js +1 -1
  139. package/dist/sdk/engage/template-yaml.js +1 -1
  140. package/dist/sdk/engage/types/campaign-def.js +1 -1
  141. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  142. package/dist/sdk/engage/types/template-schema.js +1 -1
  143. package/dist/sdk/engage.js +1 -1
  144. package/dist/sdk/errors.js +1 -1
  145. package/dist/sdk/index.d.ts +1 -1
  146. package/dist/sdk/index.d.ts.map +1 -1
  147. package/dist/sdk/index.js +1 -1
  148. package/dist/sdk/index.js.map +1 -1
  149. package/dist/sdk/io/index.js +1 -1
  150. package/dist/sdk/io/node-filesystem.js +1 -1
  151. package/dist/sdk/job.js +1 -1
  152. package/dist/sdk/journey.js +1 -1
  153. package/dist/sdk/llm/chat-cache.js +1 -1
  154. package/dist/sdk/llm/index.js +1 -1
  155. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  156. package/dist/sdk/llm/model-factors.js +1 -1
  157. package/dist/sdk/llm/user-settings.js +1 -1
  158. package/dist/sdk/personalization.js +1 -1
  159. package/dist/sdk/policy.js +1 -1
  160. package/dist/sdk/query/deleted-table-validation.js +1 -1
  161. package/dist/sdk/query/index.js +1 -1
  162. package/dist/sdk/query/sql-parser.js +1 -1
  163. package/dist/sdk/realtime.js +1 -1
  164. package/dist/sdk/schedule.js +1 -1
  165. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  166. package/dist/sdk/segment/fields-display.js +1 -1
  167. package/dist/sdk/segment/file-discovery.js +1 -1
  168. package/dist/sdk/segment/journey-utils.js +1 -1
  169. package/dist/sdk/segment/journey-validator.js +1 -1
  170. package/dist/sdk/segment/journey-yaml.d.ts +6 -2
  171. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  172. package/dist/sdk/segment/journey-yaml.js +1 -1
  173. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  174. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  175. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  176. package/dist/sdk/segment/pull-workflow.js +1 -1
  177. package/dist/sdk/segment/push-recovery.js +1 -1
  178. package/dist/sdk/segment/push-workflow.js +1 -1
  179. package/dist/sdk/segment/push-workflow.js.map +1 -1
  180. package/dist/sdk/segment/resolution-context.js +1 -1
  181. package/dist/sdk/segment/segment-path-parser.d.ts.map +1 -1
  182. package/dist/sdk/segment/segment-path-parser.js +1 -1
  183. package/dist/sdk/segment/segment-path-parser.js.map +1 -1
  184. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  185. package/dist/sdk/segment/segment-validator.js +1 -1
  186. package/dist/sdk/segment/target-resolution.js +1 -1
  187. package/dist/sdk/segment/tdx-config.js +1 -1
  188. package/dist/sdk/segment/types/activation-schema.js +1 -1
  189. package/dist/sdk/segment/types/journey-def.js +1 -1
  190. package/dist/sdk/segment/types/journey-schema.js +1 -1
  191. package/dist/sdk/segment/types/segment-def.js +1 -1
  192. package/dist/sdk/segment/types/segment-schema.js +1 -1
  193. package/dist/sdk/segment/validate-files.d.ts +2 -5
  194. package/dist/sdk/segment/validate-files.d.ts.map +1 -1
  195. package/dist/sdk/segment/validate-files.js +1 -1
  196. package/dist/sdk/segment/validate-files.js.map +1 -1
  197. package/dist/sdk/segment/yaml-validator.js +1 -1
  198. package/dist/sdk/segment.d.ts +83 -2
  199. package/dist/sdk/segment.d.ts.map +1 -1
  200. package/dist/sdk/segment.js +1 -1
  201. package/dist/sdk/segment.js.map +1 -1
  202. package/dist/sdk/types/cdp.d.ts +36 -0
  203. package/dist/sdk/types/cdp.d.ts.map +1 -1
  204. package/dist/sdk/types/index.d.ts +1 -1
  205. package/dist/sdk/types/index.d.ts.map +1 -1
  206. package/dist/sdk/types/index.js +1 -1
  207. package/dist/sdk/types/index.js.map +1 -1
  208. package/dist/sdk/types/progress.js +1 -1
  209. package/dist/sdk/types/workspace.js +1 -1
  210. package/dist/sdk/user.js +1 -1
  211. package/dist/sdk/util/format-detector.js +1 -1
  212. package/dist/sdk/util/formatters.js +1 -1
  213. package/dist/sdk/util/index.js +1 -1
  214. package/dist/sdk/util/paginate.js +1 -1
  215. package/dist/sdk/util/tree-formatter.js +1 -1
  216. package/dist/sdk/util/tree-search.d.ts +35 -0
  217. package/dist/sdk/util/tree-search.d.ts.map +1 -0
  218. package/dist/sdk/util/tree-search.js +1 -0
  219. package/dist/sdk/util/tree-search.js.map +1 -0
  220. package/dist/sdk/workflow/archive-validation.js +1 -1
  221. package/dist/sdk/workflow/clone-workflow.js +1 -1
  222. package/dist/sdk/workflow/index.js +1 -1
  223. package/dist/sdk/workflow/pull-workflow.js +1 -1
  224. package/dist/sdk/workflow/push-workflow.js +1 -1
  225. package/dist/sdk/workflow/task-graph.js +1 -1
  226. package/dist/sdk/workflow/tdx-config.js +1 -1
  227. package/dist/sdk/workflow/workflow-utils.js +1 -1
  228. package/dist/sdk/workspace/access-tracker.js +1 -1
  229. package/dist/sdk/workspace/frontmatter.js +1 -1
  230. package/dist/sdk/workspace/git.js +1 -1
  231. package/dist/sdk/workspace/index.js +1 -1
  232. package/dist/sdk/workspace/templates.js +1 -1
  233. package/dist/sdk/workspace/weekly.js +1 -1
  234. package/dist/sdk/workspace/wikilinks.js +1 -1
  235. package/dist/test-utils/command-runner.js +1 -1
  236. package/dist/test-utils/factories.js +1 -1
  237. package/dist/test-utils/fixtures.js +1 -1
  238. package/dist/test-utils/http-mock.js +1 -1
  239. package/dist/test-utils/index.js +1 -1
  240. package/dist/utils/async.js +1 -1
  241. package/dist/utils/colors.js +1 -1
  242. package/dist/utils/diff.js +1 -1
  243. package/dist/utils/file-permissions.js +1 -1
  244. package/dist/utils/file-reader.js +1 -1
  245. package/dist/utils/github-releases.js +1 -1
  246. package/dist/utils/global-cache.js +1 -1
  247. package/dist/utils/json-loader.js +1 -1
  248. package/dist/utils/local-cache.js +1 -1
  249. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  250. package/dist/utils/logger/formatters/index.js +1 -1
  251. package/dist/utils/logger/handlers/console-handler.js +1 -1
  252. package/dist/utils/logger/handlers/file-handler.js +1 -1
  253. package/dist/utils/logger/handlers/index.js +1 -1
  254. package/dist/utils/logger/handlers/null-handler.js +1 -1
  255. package/dist/utils/logger/index.js +1 -1
  256. package/dist/utils/logger/logger.js +1 -1
  257. package/dist/utils/logger/types.js +1 -1
  258. package/dist/utils/option-validation.js +1 -1
  259. package/dist/utils/process.d.ts +6 -0
  260. package/dist/utils/process.d.ts.map +1 -1
  261. package/dist/utils/process.js +1 -1
  262. package/dist/utils/process.js.map +1 -1
  263. package/dist/utils/prompt.js +1 -1
  264. package/dist/utils/spinner.js +1 -1
  265. package/dist/utils/sse-parser.js +1 -1
  266. package/dist/utils/string-utils.js +1 -1
  267. package/dist/utils/table-ref-parser.js +1 -1
  268. package/dist/utils/tdx-logger.js +1 -1
  269. package/dist/utils/version-check.js +1 -1
  270. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x37aff4=a2_0x150a;(function(_0x341873,_0x11577e){const _0x2aa468=a2_0x150a,_0x59ab1d=_0x341873();while(!![]){try{const _0x1ea05d=-parseInt(_0x2aa468(0x1d2))/0x1*(-parseInt(_0x2aa468(0x461))/0x2)+parseInt(_0x2aa468(0x490))/0x3+parseInt(_0x2aa468(0x3b7))/0x4*(parseInt(_0x2aa468(0x37f))/0x5)+-parseInt(_0x2aa468(0x495))/0x6*(parseInt(_0x2aa468(0x1ca))/0x7)+-parseInt(_0x2aa468(0x402))/0x8*(-parseInt(_0x2aa468(0x492))/0x9)+-parseInt(_0x2aa468(0x1e4))/0xa+parseInt(_0x2aa468(0x1a7))/0xb*(-parseInt(_0x2aa468(0x36e))/0xc);if(_0x1ea05d===_0x11577e)break;else _0x59ab1d['push'](_0x59ab1d['shift']());}catch(_0x29f556){_0x59ab1d['push'](_0x59ab1d['shift']());}}}(a2_0x4a7b,0xc0311));import a2_0x53b006 from'chalk';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{TableDeletedCommand,TableRecoverCommand}from'./commands/table-deleted.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSRtJnListCommand,PSRtJnPauseCommand,PSRtJnResumeCommand,PSRtConfigVersionCommand,PSPzServiceListCommand,PSPzServiceCreateCommand,PSPzServiceShowCommand,PSPzServiceDeleteCommand,PSPzServiceUpdateCommand,PSPzServiceTokenCreateCommand,PSPzServiceTokenDeleteCommand,PSPzListCommand,PSPzShowCommand,PSPzDeleteCommand,PSPzCreateCommand,PSPzPatchCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand,WorkflowSchedulesCommand,WorkflowScheduleEnableCommand,WorkflowScheduleDisableCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyRunCommand,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,EngageLineSenderAccountsCommand,EngageLineSenderAccountShowCommand,EngageLineImagemapImageUploadCommand,EngageMediaUploadCommand,EngageMediaLsCommand,EngageMediaMkdirCommand,EngageMediaRmCommand,EngageMediaRmdirCommand}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';function a2_0x4a7b(){const _0x3bf7e5=['Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','folder','description','Personalization\x20management','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','models','log\x20<chat-id>','preAction','Filtering\x20rule\x20from\x20JSON\x20file','Describe\x20table\x20schema','--interval\x20<range>','[task-name]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Validate\x20journey\x20YAML\x20files\x20locally','opts','--starter-message\x20<text>','open\x20<name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','show\x20<service_id>\x20[parent_segment]','types','Delete\x20a\x20directory\x20from\x20Engage\x20DAM\x20(must\x20be\x20empty)','Options:','-1d','Behaviors\x20from\x20JSON\x20file','show\x20<name-or-id>','recover\x20<id>','parents\x20[pattern]','rm\x20<path>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','show\x20<name>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Set\x20operation\x20timeout\x20in\x20seconds','Show\x20the\x20task\x20graph\x20and\x20side-effect\x20warnings\x20without\x20executing','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Always-on\x20campaign\x20management','cas','Push\x20YAML\x20files\x20to\x20CAS\x20API','--jsonl','[DEPRECATED]\x20Segment\x20folder\x20management','use\x20[name]','--next-time\x20<time>','split','TRACE','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Resume\x20scheduling\x20from\x20this\x20time\x20instead\x20of\x20the\x20schedule\x20definition\x20(ISO-8601,\x20e.g.\x202026-12-31T23:59:00+00:00)','list\x20[audience_name]','--reason\x20<text>','List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','--skip-validation','--data\x20<data>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Enable\x20verbose\x20logging','--json','Add\x20attributes\x20from\x20JSON\x20file','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','hook','Name\x20for\x20the\x20duplicated\x20campaign','-v,\x20--verbose','Ending\x20offset\x20(default:\x2020)','-n,\x20--name\x20<name>','--rule-file\x20<file>','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','Error:\x20`tdx\x20api`\x20is\x20disabled\x20by\x20default\x20to\x20prevent\x20unintended\x20API\x20calls.','delete\x20<service_id>\x20[parent_segment]','Delete\x20a\x20scheduled\x20query','journey','Update\x20a\x20workspace','--agent\x20<ref>','--new','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','-f,\x20--file\x20<path>','clear','upgrade\x20[version]','setup','[attempt-id]','Campaign\x20name','delete\x20<agent-name>','Personalization\x20name','Resume\x20a\x20paused\x20journey','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','delete\x20<personalization_id>','list\x20[project]','Create\x20a\x20new\x20LLM\x20project','Show\x20Kanban\x20board\x20view\x20of\x20tasks','tsv','submit\x20[query]','subcommandTerm','Show\x20journey\x20statistics','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Restore\x20into\x20a\x20different\x20database\x20(use\x20on\x20409\x20db\x20conflict)','after','set\x20<args...>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--schedule-type\x20<type>','--description\x20<text>','New\x20service\x20name','info\x20[segment_name]','Cron\x20expression\x20for\x20scheduling','--verbose','--include-history','database','json','attempt','create\x20<name>\x20<service_id>\x20[parent_segment]','mkdir\x20<path>','Launch\x20a\x20campaign','Workspace\x20management','Prefer\x20typed\x20commands\x20—\x20run\x20`tdx\x20--help`\x20to\x20see\x20them.','--session-time\x20<time>','parent','Output\x20directory','Preview\x20without\x20creating\x20the\x20project','update\x20<segment_name>','Pause\x20an\x20always-on\x20campaign','update\x20<agent-name>','--add-behaviors-file\x20<file>','List\x20secret\x20keys\x20for\x20a\x20project','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','New\x20template\x20name','Behaviors\x20as\x20JSON\x20string','Read\x20request\x20body\x20from\x20file','create\x20<parent_name>\x20<folder_name>','Show\x20all\x20files\x20including\x20valid\x20ones','Delete\x20an\x20LLM\x20project','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Clear\x20workflow\x20project\x20context','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','List\x20agents\x20in\x20current\x20project','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','resume\x20<name-or-id>','--start-at\x20<datetime>','--help','Master\x20database\x20name','push\x20[parent_or_file]','Query\x20engine\x20version','-w,\x20--web','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Add\x20attributes\x20as\x20JSON\x20string','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','board','--html-file\x20<path>','validate\x20[target]','delete\x20<project-name-or-id>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--from\x20<n>','Trigger\x20on-demand\x20journey\x20workflow\x20execution','--folder\x20<name>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20authentication\x20status\x20and\x20current\x20context','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','delivery','Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)','list','--parent-folder\x20<name>','--in\x20<database>','YAML\x20file\x20path\x20for\x20unpushed\x20segment','list\x20[project.workflow]','Master\x20table\x20name','List\x20all\x20data\x20connections','show\x20<folder_ref>','audience','list\x20[name]','--retry-limit\x20<0~32>','Revision\x20name\x20(default:\x20timestamp)','agents\x20[pattern]','List\x20recoverable\x20deleted\x20tables\x20(last\x207\x20days)','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Customer\x20group\x20from\x20JSON\x20file','Maximum\x20tool\x20iterations\x20(default:\x204)','disable\x20<id>','--system-prompt\x20<text>','length','5952012RGoJZB','Updated\x20schedule\x20option','set','pull\x20[workspace]','--subject\x20<subject>','Delay\x20in\x20seconds\x20before\x20execution','New\x20service\x20description','Delete\x20an\x20email\x20template','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','tables\x20[pattern]','Move\x20to\x20folder','--name\x20<names>','campaigns\x20[pattern]','Show\x20LINE\x20sender\x20account\x20details','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','38575oAHySr','replace','Campaign\x20management','project','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Set\x20or\x20show\x20parent\x20segment\x20context','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','apiKey','--path\x20<file-path>','job','Push\x20YAML\x20files\x20to\x20Treasure\x20AI\x20as\x20child\x20segments','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','argument','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','delete\x20<name-or-id>','filter','-u,\x20--use','Agent\x20description','Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','summary','Updated\x20description','Service\x20description','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','stdout','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','chats','Target\x20directory\x20for\x20YAML\x20files','Pause\x20activations\x20in\x20an\x20RT\x20journey','new\x20<title>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','profiles','--version\x20<number>','--days\x20<n>','validate\x20[name]','argumentTerm','view\x20[segment_name]','--sections\x20<json>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','chat\x20[message...]','always-on-campaign','Show\x20segment\x20schema\x20(column\x20types)','Filtering\x20rule\x20as\x20JSON\x20string','CDP\x20Journey\x20Orchestration\x20commands','Sections\x20as\x20an\x20inline\x20JSON\x20array','Agent\x20prompt/instructions','Delete\x20workflow\x20project\x20from\x20Treasure\x20AI','--attributes-file\x20<file>','Change\x20to\x20directory\x20before\x20executing\x20command','information_schema','--behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Email\x20sender\x20ID\x20for\x20delivery','--add-attributes-file\x20<file>','--max-depth\x20<depth>','580rPtAye','statusline','name','table','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','use\x20[resource]\x20[value]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','line-imagemap-image','List\x20all\x20available\x20profiles','pull\x20[name]','option','--prompt\x20<text>','Show\x20connection\x20details\x20by\x20name','Duplicate\x20a\x20campaign','timeline\x20[project.workflow]','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--name\x20<new-name>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','remove\x20<name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','entries','argv','Overwrite\x20local\x20changes\x20without\x20confirmation','Job\x20management\x20commands','catch','Delete\x20a\x20realtime\x20personalization','--behavior\x20[name]','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','find','Resume\x20from\x20specific\x20task','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','options','Save\x20output\x20to\x20file','journeys\x20[pattern]','download\x20<project-name>\x20[output-dir]','Show\x20job\x20details','gitRevision','--no-eval','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Open\x20a\x20document\x20in\x20$EDITOR','--name\x20<text>','Workflow\x20attempt\x20management','Delivery\x20operations\x20(email\x20senders)','-a,\x20--agent\x20<name>','Show\x20items\x20updated\x20within\x20N\x20days','Output\x20file\x20path\x20(default:\x20<name>.yml)','[action]','auth','-o,\x20--output\x20<folder>','includes','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Folder\x20description','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--attributes\x20<json>','AI\x20assistants:\x20do\x20not\x20enable\x20this\x20on\x20the\x20user\x27s\x20behalf.\x20Ask\x20the\x20user,\x20or\x20use\x20a\x20structured\x20command\x20instead.','[EXPERIMENTAL]\x20Show\x20chat\x20log','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20AI','Preview\x20composable\x20segment\x20query\x20on\x20CDW','List\x20email\x20senders','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20AI','stderr','Workspace\x20description','Run\x20Trino\x20query\x20with\x20streaming\x20results','Push\x20without\x20confirmation','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','links\x20<name>','--delete','Show\x20a\x20single\x20schedule\x20by\x20its\x20ID','Show\x20only\x20master\x20table\x20validation','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','Upload\x20an\x20image\x20for\x20LINE\x20imagemap\x20(JPEG/PNG,\x20min\x201040px,\x20max\x2010MB)','Show\x20agent\x20details','69824RnnKxg','Delete\x20a\x20file\x20from\x20Engage\x20DAM','Job\x20priority\x20(-2\x20to\x202)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','format','\x0aDisabled\x20by\x20default.\x20See\x20https://tdx.treasuredata.com/guide/api-command-safety\x0afor\x20how\x20to\x20enable.\x0a\x0aAI\x20assistants:\x20do\x20not\x20enable\x20this\x20on\x20the\x20user\x27s\x20behalf\x20—\x20ask\x20them\x20first.\x0aPrefer\x20structured\x20commands;\x20they\x20validate\x20inputs\x20and\x20resolve\x20names\x20to\x20IDs.\x0a\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','Journey\x20version\x20management','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Duplicate\x20an\x20always-on\x20campaign','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','finish\x20<name-or-id>','--plaintext\x20<text>','Table\x20management\x20commands','List\x20composable\x20segments\x20for\x20an\x20audience','Show\x20schedule\x20execution\x20history','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Invalid\x20editor\x20type:\x20','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','kill','--attempt-id\x20<id>','requiredOption','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20workspace\x20details','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','desc\x20[segment_name]','Parent\x20segment\x20management','Preview\x20changes\x20without\x20pushing','ls\x20[path]','--cron\x20<expression>','help','--priority\x20<-2~2>','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Campaign\x20description','Get\x20job\x20results','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','INVALID_ARGUMENT','--result\x20<url>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Skip\x20confirmation\x20prompts','attempt:','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--timeout\x20<seconds>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','list\x20[path]','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Personalization\x20description','Workflow\x20parameter\x20(repeatable)','--chat-id\x20<id>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Attributes\x20from\x20JSON\x20file','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Retry\x20limit\x20(0\x20to\x2032)','trino','Starting\x20offset\x20(default:\x200)','List\x20available\x20LLM\x20models','action','--kind\x20<type>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Plaintext\x20template\x20content','Workflow\x20project\x20management','INFO','--attribute\x20[name]','Unknown\x20action:\x20','Pull\x20specific\x20template\x20by\x20name','update\x20<name-or-id>','--add-behaviors\x20<json>','Delete\x20an\x20agent','--to\x20<timestamp>','optionTerm','Model\x20type\x20(default:\x20claude-4.5-sonnet)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--enriched','create\x20<name-or-path>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Output\x20file\x20path','--name\x20<name>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','-r,\x20--recursive','Update\x20a\x20realtime\x20personalization\x20entity','Create\x20a\x20new\x20profile','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','item','List\x20jobs','List\x20Engage\x20DAM\x20directory\x20contents','Resume\x20activations\x20in\x20an\x20RT\x20journey','slice','sql\x20[segment_name]','--temperature\x20<n>','query\x20[sql]','6892ygVJvD','clone\x20[source]','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','LINE\x20imagemap\x20image\x20management','argumentDescription','Resume\x20listing\x20after\x20this\x20table\x20id\x20(from\x20a\x20previous\x20page)','sql\x20[name]','Manage\x20workflow\x20project\x20secrets','get','Usage:\x20','Priority\x20(critical,\x20high,\x20medium,\x20low)','Pause\x20a\x20running\x20journey','padEnd','Enable\x20a\x20disabled\x20workflow\x20schedule','commandUsage','Pull\x20workflow\x20project\x20to\x20local\x20folder','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--cursor-id\x20<id>','Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','settings\x20<type>','--llm-project\x20<name>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','command','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses','Show\x20a\x20specific\x20realtime\x20personalization','pause_activations\x20<journeyId>','--enable-utm-tracking','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','desc\x20[name]','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--limit\x20<number>','Show\x20the\x20most\x20recent\x20chat','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','\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','Workspace\x20name','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Open\x20segment\x20in\x20web\x20browser','Conflict\x20strategy:\x20ask\x20(default),\x20replace,\x20keep','folders\x20<parent_name>','--full','0.7','--delay\x20<seconds>','Submit\x20a\x20job','Validate\x20campaign\x20YAML\x20files\x20locally','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','3087678XeJcSQ','activations\x20<name-or-path>','1593firhFY','Task\x20name\x20for\x20logs\x20action','timeout','60dIMvEW','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','\x20(resolved\x20to\x20','templates\x20[pattern]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','run\x20<name-or-path>','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--table','Run\x20specific\x20tests\x20(comma-separated)','Timezone\x20for\x20cron\x20(default:\x20UTC)','--workspace\x20<name>','--timezone\x20<tz>','--account-name\x20<name>','--params\x20<json>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','buildTime','--to\x20<date>','--tsv','Scheduled\x20query\x20management\x20commands','Page\x20size\x201-100\x20(default\x2025)','show\x20<personalization_id>','--table\x20<table>','--dry-run','Update\x20an\x20email\x20template','Read\x20SQL\x20query\x20from\x20file','--stream','version','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Initialize\x20a\x20new\x20workspace','create\x20[name]','preview\x20<segment_name>','--tags\x20<tags>','Setup\x20API\x20key\x20authentication\x20interactively','segments\x20[path]','Show\x20always-on\x20campaign\x20details','Starter\x20message','Updated\x20timezone','LINE\x20sender\x20account\x20management','Resume\x20a\x20paused\x20always-on\x20campaign','create\x20<segment_name>','Custom\x20revision\x20name\x20(default:\x20timestamp)','repeat','Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Include\x20retried\x20attempts','describe','Skip\x20confirmation\x20prompt','--include-stats','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--method\x20<pm>','_hidden','required','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','Upload\x20workflow\x20project\x20to\x20Treasure\x20AI\x20(digdag-style)','Recover\x20a\x20deleted\x20table\x20by\x20id','--num\x20<1-10>','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Campaign\x20type\x20(email\x20or\x20push)','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Output\x20as\x20JSON\x20Lines','List\x20LINE\x20sender\x20accounts','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','allowUnknownOption','Database\x20management\x20commands','grapesjs','--github\x20<owner/repo>','allowExcessArguments','Apply\x20a\x20template','workflows\x20[project]','subcommandDescription','--next','secrets','token','-d,\x20--database\x20<db>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Remove\x20API\x20key\x20from\x20system\x20keychain','describe\x20[table]','Authentication\x20management','kill\x20<job-id>','Check\x20for\x20updates\x20without\x20installing','Show\x20master\x20table\x20sample\x20data','stats\x20<name-or-path>','List\x20all\x20users\x20in\x20the\x20account','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Delete\x20a\x20campaign','show\x20[table]','log','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Pull\x20specific\x20revision\x20(default:\x20latest)','backup\x20<name>','claude-4.5-sonnet','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','clone\x20[source-dir]','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Personalization\x20service\x20token\x20management','Transition\x20a\x20task\x20to\x20a\x20new\x20status','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--engine-version\x20<version>','CDP\x20segment\x20management\x20commands','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','jobs','--max-tool-iterations\x20<n>','Continue\x20most\x20recent\x20conversation','33mcLhuf','Finish\x20an\x20always-on\x20campaign','push','Initial\x20status','New\x20campaign\x20name','alias','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20journey\x20table\x20column-to-step\x20mapping','Overwrite\x20existing\x20profile','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-c,\x20--continue','colorFn','Reason\x20for\x20killing\x20the\x20attempt','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','--clear','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','RT\x20Journey\x20management','--no-proxy','--last','List\x20all\x20versions\x20of\x20a\x20journey','result\x20<job-id>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','map','duplicate\x20<name-or-id>','upgrade','--backfill','Download\x20workflow\x20project\x20from\x20Treasure\x20AI','debug','Enable\x20UTM\x20tracking','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','--force','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','-y,\x20--yes','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','--result\x20<target>','976668EZExqb','run\x20[name]','--default','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','list\x20[pattern]','Template\x20name','create','--limit\x20<n>','432cdohAZ','--add-attributes\x20<json>','delete\x20<name>','schedule','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--priority\x20<priority>','Show\x20journey\x20details\x20and\x20activation\x20targets\x20without\x20triggering','agent','--from\x20<timestamp>','--path\x20<folder>','RT\x202.0\x20configuration\x20management','-d,\x20--database\x20<database>','stringify','Arguments:','LLM\x20project\x20management','activations\x20<segment_name>','pull\x20<project>\x20[target-dir]','15109690bqQAJy','--customer-group-file\x20<file>','Raw\x20API\x20requests\x20bypass\x20tdx\x27s\x20structured\x20commands\x20and\x20safety\x20checks.','Follow/watch\x20timeline\x20for\x20running\x20attempts','Interactive\x20chat\x20selector','push\x20[source-dir]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a\x20\x20$\x20tdx\x20profile\x20create\x20prod\x20-f\x20\x20\x20\x20\x20\x20#\x20Overwrite\x20existing\x20\x27prod\x27\x20profile\x0a','--editor-type\x20<type>','commands','history\x20[chat-id]','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','validate\x20[file]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Parse\x20and\x20validate\x20without\x20executing','Export\x20journey(s)\x20as\x20YAML\x20files','upload\x20<file>','--audience-id\x20<id>','User\x20management\x20commands','--master','Include\x20subtasks\x20in\x20tasks\x20output','exit','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--schedule-id\x20<id>','Engage\x20DAM\x20media\x20management','attempts\x20[project]','then','update\x20<name>','aliases','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Workflow\x20session\x20management','launch\x20<name-or-id>','--database\x20<database>','injectIntoOptions','Composable\x20segment\x20commands','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--session-id\x20<id>','--description\x20<desc>','Include\x20retried\x20attempts\x20(for\x20list)','Make\x20segment\x20invisible\x20(default:\x20visible)','--trace','noColor','\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','mcp','connection','logLevel','List\x20workflow\x20schedules\x20(alias\x20for\x20`schedule\x20list`)','show\x20[name]','Parent\x20segment\x20description','line-sender-account','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Directory\x20does\x20not\x20exist:\x20','--in\x20<db>','Read\x20HTML\x20template\x20from\x20file','configuration_versions\x20[name]','configureHelp','isTTY','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','For\x20setup\x20instructions,\x20see\x20https://tdx.treasuredata.com/guide/api-command-safety','Customer\x20group\x20as\x20JSON\x20string','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','view\x20[name]','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','use\x20[project]','schedules\x20[project.workflow]','Override\x20project\x20name','view\x20<name-or-path>','Show\x20schedule\x20details','push\x20[target]','Attributes\x20as\x20JSON\x20string','--body\x20<body>','--assignee\x20<assignee>','Disable\x20a\x20workflow\x20schedule','optionDescription','--from-task\x20<task>','Delete\x20a\x20workspace','pull\x20[workspace-name]','--type\x20<api_type>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','media','Resume\x20a\x20conversation\x20(shows\x20selector)','Add\x20behaviors\x20from\x20JSON\x20file','outputHelp','--page-size\x20<n>','Email\x20template\x20management','Run\x20tests\x20for\x20an\x20LLM\x20agent','Database\x20to\x20query\x20(default:\x20information_schema)','parent-segment','--format\x20<format>','Result\x20output\x20destination\x20URL','--type\x20<type>','--job-type\x20<type>','Run\x20backfill\x20sessions\x20for\x20the\x20gap\x20while\x20the\x20schedule\x20was\x20disabled\x20(off\x20by\x20default)','--rule\x20<json>','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20AI\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','session','Version\x20number\x20to\x20view','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','versions\x20<name-or-path>','--email-sender-id\x20<id>','--schedule-option\x20<value>','run\x20<name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Create\x20a\x20new\x20document','columns\x20<name-or-path>','long','registeredArguments','-o,\x20--output\x20<file>','-p,\x20--profile\x20<name>','--no-count-population','--limit\x20<rows>','--revision\x20<revision>','-X,\x20--method\x20<method>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','senders\x20[pattern]','\x20-\x20built\x20','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','Maximum\x20recursion\x20depth\x20(default:\x2010)','users','Update\x20a\x20campaign','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Destination\x20folder\x20in\x20DAM\x20(default:\x20root)','--name\x20<new_name>','llm','Limit\x20number\x20of\x20rows','GET','\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','Document\x20body\x20text','--html\x20<html>','--output\x20<file>','retry\x20<session-id>','trace','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','red','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Query\x20type:\x20trino\x20or\x20hive','--yes','Include\x20all\x20items\x20(no\x20stale\x20filtering)','Read\x20query\x20from\x20file','delete\x20<token_id>\x20[parent_segment]','Create\x20a\x20scheduled\x20query',',\x20version\x20','preview\x20[name]','Timezone\x20for\x20cron','traffic\x20<name-or-path>','--from\x20<date>','List\x20journeys\x20in\x20current\x20context','set\x20<key=value>','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','--status\x20<status>','pull\x20[parent_or_file]','show\x20<job-id>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','-o,\x20--output\x20<dir>','beefree','hidden','AI-native\x20work\x20management','Resume\x20a\x20paused\x20campaign','Show\x20campaign\x20details','Open\x20journey\x20in\x20web\x20browser','Preview\x20changes\x20without\x20writing\x20files','resume_activations\x20<journeyId>','addHelpText','engage_workspace','Delete\x20a\x20profile','--site\x20<site>','List\x20workflow\x20schedules\x20(filter\x20by\x20project\x20or\x20project.workflow)','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','-f,\x20--force','tasks','_list-commands','directory','--kind\x20<kind>','Include\x20raw\x20history\x20data\x20in\x20output','preview\x20[file]','Name\x20for\x20the\x20new\x20project\x20(required)','--segment\x20<path>','test\x20[path]','Output\x20folder\x20(default:\x20{project_name}.llm)','Skip\x20validation\x20of\x20.dig\x20files','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Maximum\x20number\x20of\x20nodes','tdx','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Workspace\x20name\x20(required)','--all','segment','List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)','profile','usage','--allowed-ips\x20<ips>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','New\x20segment\x20name','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','accessToken','Timezone\x20(e.g.,\x20America/Los_Angeles)','api\x20[endpoint]','Output\x20as\x20JSON','error','join','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','Pull\x20templates\x20to\x20YAML\x20files','[options]\x20--\x20[claude-code-args...]','forEach','flatMap','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','create\x20<name>\x20[parent_segment]','create\x20<name>','service','init\x20[name]','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','use\x20<path>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Upload\x20an\x20image\x20to\x20Engage\x20DAM\x20(JPEG/PNG/GIF/SVG)'];a2_0x4a7b=function(){return _0x3bf7e5;};return a2_0x4a7b();}import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileDeleteCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isApiCommandEnabled,isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x37aff4(0x3ce)][a2_0x37aff4(0x3eb)]('--version')){let versionOutput='tdx\x20'+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x37aff4(0x3eb)](buildInfo[a2_0x37aff4(0x3de)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x37aff4(0x258)+buildInfo[a2_0x37aff4(0x4a8)]),console[a2_0x37aff4(0x195)](versionOutput),process[a2_0x37aff4(0x1f8)](0x0);}const program=new Command();export function mergeCommandOptions(_0x14eec7,_0x20e728){const _0x483526=a2_0x37aff4,_0x89ec34={..._0x14eec7};for(const [_0x2c6859,_0x46cedc]of Object[_0x483526(0x3cd)](_0x20e728)){_0x46cedc!==undefined&&(_0x89ec34[_0x2c6859]=_0x46cedc);}return _0x89ec34;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20AI';buildInfo[a2_0x37aff4(0x3de)]&&!currentVersion[a2_0x37aff4(0x3eb)](buildInfo['gitRevision'])?description+=a2_0x37aff4(0x274)+currentVersion+'\x20('+buildInfo[a2_0x37aff4(0x3de)]+')':description+=a2_0x37aff4(0x274)+currentVersion;program[a2_0x37aff4(0x3b9)]('tdx')[a2_0x37aff4(0x2c0)](description),program[a2_0x37aff4(0x3c2)]('-C,\x20--directory\x20<path>',a2_0x37aff4(0x3af))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x251),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x28c),a2_0x37aff4(0x3d4),'us01')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23d),a2_0x37aff4(0x2af))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x49f),a2_0x37aff4(0x233))['option'](a2_0x37aff4(0x2f4),a2_0x37aff4(0x2c2))[a2_0x37aff4(0x3c2)]('--jsonl',a2_0x37aff4(0x2cf))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4aa),a2_0x37aff4(0x2be))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x267),a2_0x37aff4(0x3da))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x481),a2_0x37aff4(0x2b5))[a2_0x37aff4(0x3c2)]('--color',a2_0x37aff4(0x409),![])[a2_0x37aff4(0x3c2)]('--no-color',a2_0x37aff4(0x3be),![])[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2fa),a2_0x37aff4(0x2f3),![])[a2_0x37aff4(0x3c2)]('--debug',a2_0x37aff4(0x1a2))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x20c),a2_0x37aff4(0x19c))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x42e),a2_0x37aff4(0x2dd),'30')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),'Preview\x20operation\x20without\x20executing',![])[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1c7),a2_0x37aff4(0x42b),![])[a2_0x37aff4(0x3c2)]('--session\x20<id>',a2_0x37aff4(0x42a))[a2_0x37aff4(0x3c2)]('--parent-segment\x20<name>',a2_0x37aff4(0x4a6))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x476),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x37aff4(0x21b)]({'formatHelp':(_0x1fa4a1,_0x12391d)=>{const _0x1f3965=a2_0x37aff4,_0x44f11f=_0x12391d['padWidth'](_0x1fa4a1,_0x12391d),_0x6245a5=0x2,_0x7ac561=0x2;function _0x2cb870(_0x2aa7eb){const _0x589072=a2_0x150a,_0x503f6c=_0x2aa7eb;return!!(_0x503f6c[_0x589072(0x16f)]||_0x503f6c['hidden']);}function _0x1962cd(_0x216a32,_0x5a9f40){const _0x5cb29e=a2_0x150a;if(_0x5a9f40){const _0x221ea4=''+_0x216a32[_0x5cb29e(0x46d)](_0x44f11f+_0x7ac561)+_0x5a9f40;return _0x221ea4;}return _0x216a32;}function _0x1001f5(_0x503268){const _0x4c37dc=a2_0x150a;return _0x503268[_0x4c37dc(0x2ae)]('\x0a')[_0x4c37dc(0x380)](/^/gm,'\x20'[_0x4c37dc(0x167)](_0x6245a5));}const _0x317434=[];_0x317434[_0x1f3965(0x1a9)](_0x1f3965(0x46a)+_0x12391d[_0x1f3965(0x46f)](_0x1fa4a1));const _0x464b0f=_0x12391d['commandDescription'](_0x1fa4a1);_0x464b0f&&(_0x317434[_0x1f3965(0x1a9)](''),_0x317434[_0x1f3965(0x1a9)](_0x464b0f));const _0x2f717d=_0x1fa4a1[_0x1f3965(0x1ec)][_0x1f3965(0x38f)](_0x586e16=>!_0x2cb870(_0x586e16));if(_0x2f717d[_0x1f3965(0x36d)]>0x0){if(_0x1fa4a1['name']()===_0x1f3965(0x29d)){const _0x330656=_0x1fa4a1[_0x1f3965(0x2cc)](),_0x362919=!_0x330656[_0x1f3965(0x20d)]&&process[_0x1f3965(0x397)][_0x1f3965(0x21c)],_0x782483=COMMAND_CATEGORIES,_0x37124a=(_0x51f18f,_0xab097a)=>_0x362919?_0xab097a(_0x51f18f):_0x51f18f,_0x42086e=new Map();_0x2f717d[_0x1f3965(0x2b3)](_0x4446f7=>{const _0x4e6d8a=_0x1f3965;_0x42086e[_0x4e6d8a(0x370)](_0x4446f7['name'](),_0x4446f7);}),_0x782483[_0x1f3965(0x2b3)](_0x123749=>{const _0x3054d5=_0x1f3965,_0x5cad65=_0x123749[_0x3054d5(0x1ec)][_0x3054d5(0x2b4)](_0x21628b=>_0x42086e[_0x3054d5(0x469)](_0x21628b)??[]);if(_0x5cad65[_0x3054d5(0x36d)]>0x0){_0x317434[_0x3054d5(0x1a9)](''),_0x317434[_0x3054d5(0x1a9)](_0x37124a(_0x123749[_0x3054d5(0x3b9)]+':',_0x123749[_0x3054d5(0x1b2)]));const _0xc1cb5f=_0x5cad65[_0x3054d5(0x1bd)](_0x24afcf=>{const _0x4c3837=_0x12391d['subcommandTerm'](_0x24afcf),_0x16e3e2=_0x12391d['subcommandDescription'](_0x24afcf);return _0x1962cd(_0x4c3837,_0x16e3e2);});_0x317434[_0x3054d5(0x1a9)](_0x1001f5(_0xc1cb5f));}}),_0x317434['push'](''),_0x317434[_0x1f3965(0x1a9)](_0x1f3965(0x1cd));}else{const _0x4df2e0=_0x2f717d[_0x1f3965(0x1bd)](_0x34d89a=>{const _0x55198d=_0x1f3965,_0x191d5c=_0x12391d[_0x55198d(0x317)](_0x34d89a),_0x2dbac9=_0x12391d[_0x55198d(0x183)](_0x34d89a);return _0x1962cd(_0x191d5c,_0x2dbac9);});_0x317434[_0x1f3965(0x1a9)](''),_0x317434[_0x1f3965(0x1a9)]('Commands:'),_0x317434['push'](_0x1001f5(_0x4df2e0));}}if(showBriefHelp&&_0x1fa4a1[_0x1f3965(0x3b9)]()===_0x1f3965(0x29d))_0x317434[_0x1f3965(0x1a9)](''),_0x317434['push']('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x36d066=_0x1fa4a1[_0x1f3965(0x3d9)][_0x1f3965(0x38f)](_0x22df67=>!_0x2cb870(_0x22df67));if(_0x36d066[_0x1f3965(0x36d)]>0x0){const _0x1d88d9=_0x36d066[_0x1f3965(0x1bd)](_0x410e5b=>{const _0x5c77e4=_0x1f3965,_0x470ea4=_0x12391d[_0x5c77e4(0x449)](_0x410e5b),_0x1e41ed=_0x12391d[_0x5c77e4(0x22e)](_0x410e5b);return _0x1962cd(_0x470ea4,_0x1e41ed);});_0x317434[_0x1f3965(0x1a9)](''),_0x317434[_0x1f3965(0x1a9)](_0x1f3965(0x2d3)),_0x317434['push'](_0x1001f5(_0x1d88d9));}}const _0x24f118=(_0x1fa4a1[_0x1f3965(0x24f)]||[])['filter'](_0x3eae66=>!_0x2cb870(_0x3eae66));if(_0x24f118[_0x1f3965(0x36d)]>0x0){const _0x2d3406=_0x24f118[_0x1f3965(0x1bd)](_0x3ded2e=>{const _0x20b8b6=_0x1f3965,_0x188f6d=_0x12391d[_0x20b8b6(0x3a2)](_0x3ded2e),_0x4840a7=_0x12391d[_0x20b8b6(0x465)](_0x3ded2e);return _0x1962cd(_0x188f6d,_0x4840a7);});_0x317434[_0x1f3965(0x1a9)](''),_0x317434[_0x1f3965(0x1a9)](_0x1f3965(0x1e0)),_0x317434[_0x1f3965(0x1a9)](_0x1001f5(_0x2d3406));}return _0x317434[_0x1f3965(0x2ae)]('\x0a')+'\x0a';},'subcommandTerm':_0x24c7b6=>{const _0x38564b=a2_0x37aff4,_0x645791=(_0x24c7b6['registeredArguments']||[])[_0x38564b(0x1bd)](_0x5b9d60=>_0x5b9d60[_0x38564b(0x170)]?'<'+_0x5b9d60['name']()+'>':'['+_0x5b9d60[_0x38564b(0x3b9)]()+']')['join']('\x20'),_0x4900a9=_0x24c7b6[_0x38564b(0x200)](),_0x22cdc3=_0x4900a9[_0x38564b(0x36d)]>0x0?_0x24c7b6['name']()+',\x20'+_0x4900a9[_0x38564b(0x2ae)](',\x20'):_0x24c7b6[_0x38564b(0x3b9)]();return _0x645791?_0x22cdc3+'\x20'+_0x645791:_0x22cdc3;}}),program[a2_0x37aff4(0x2f8)](a2_0x37aff4(0x2c5),_0x17cfc3=>{const _0x51da02=a2_0x37aff4,_0x3d9843=_0x17cfc3[_0x51da02(0x2cc)]();if(_0x3d9843['directory']){const _0x24e0b7=resolve(_0x3d9843[_0x51da02(0x292)]),_0x4972c1=_0x24e0b7!==_0x3d9843[_0x51da02(0x292)]?_0x51da02(0x499)+_0x24e0b7+')':'';if(!existsSync(_0x24e0b7))throw new SDKError(ErrorCode[_0x51da02(0x428)],_0x51da02(0x217)+_0x3d9843['directory']+_0x4972c1,undefined,{'helpText':_0x51da02(0x357)});const _0x4b1657=statSync(_0x24e0b7);if(!_0x4b1657['isDirectory']())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x3d9843[_0x51da02(0x292)]+_0x4972c1,undefined,{'helpText':_0x51da02(0x47e)});process['chdir'](_0x24e0b7);}if(!_0x3d9843[_0x51da02(0x406)]){if(_0x3d9843['table'])_0x3d9843[_0x51da02(0x406)]=_0x51da02(0x3ba);else{if(_0x3d9843[_0x51da02(0x326)])_0x3d9843[_0x51da02(0x406)]=_0x51da02(0x326);else{if(_0x3d9843['jsonl'])_0x3d9843[_0x51da02(0x406)]='jsonl';else _0x3d9843['tsv']&&(_0x3d9843[_0x51da02(0x406)]=_0x51da02(0x315));}}}if(_0x3d9843[_0x51da02(0x269)])_0x3d9843[_0x51da02(0x211)]=LogLevel[_0x51da02(0x2e8)];else{if(_0x3d9843[_0x51da02(0x1c2)])_0x3d9843[_0x51da02(0x211)]=LogLevel['DEBUG'];else _0x3d9843[_0x51da02(0x211)]===undefined&&(_0x3d9843[_0x51da02(0x211)]=LogLevel[_0x51da02(0x441)]);}});async function createTDXInstance(_0x4d5e82){const _0xad5bfd=a2_0x37aff4,_0xbdbb81=await GlobalContext['createAsync'](_0x4d5e82);_0xbdbb81[_0xad5bfd(0x205)](_0x4d5e82);const _0x43ae48=Number(_0x4d5e82[_0xad5bfd(0x494)]),_0x87c524=!isNaN(_0x43ae48)&&_0x43ae48>0x0?_0x43ae48*0x3e8:undefined;return TDX[_0xad5bfd(0x1d0)]({'site':_0xbdbb81['site'],'apiKey':_0xbdbb81[_0xad5bfd(0x387)],'accessToken':_0xbdbb81[_0xad5bfd(0x2a9)],'logLevel':_0xbdbb81[_0xad5bfd(0x211)],'profile':_0xbdbb81[_0xad5bfd(0x2a3)],'timeout':_0x87c524});}const databaseCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x325))[a2_0x37aff4(0x1ac)]('db')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x17d)),databaseListAction=async(_0x532a04,_0x4fc589)=>{const _0x20967f=a2_0x37aff4,_0x589b20=new DatabasesCommand(),_0x197325=program['opts'](),_0x1b56dd=await createTDXInstance(_0x197325),_0x1702a9=await _0x589b20[_0x20967f(0x44f)]({'options':{..._0x197325,..._0x4fc589},'args':_0x532a04?[_0x532a04]:[],'tdx':_0x1b56dd});gracefulExit(_0x1702a9);};databaseCmd['command'](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x223))[a2_0x37aff4(0x43c)](databaseListAction),program[a2_0x37aff4(0x479)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x37aff4(0x2c0)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program['command'](a2_0x37aff4(0x3a6))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1c6))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x304),a2_0x37aff4(0x42d))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x305),'Start\x20a\x20new\x20chat\x20session')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x434),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x157),a2_0x37aff4(0x386))[a2_0x37aff4(0x43c)](async(_0x13d51e,_0xd32f0f)=>{const _0x3f0678=a2_0x37aff4,_0x5a4b69=program[_0x3f0678(0x2cc)](),_0x2e694f=await createTDXInstance(_0x5a4b69);if(_0x13d51e[0x0]===_0x3f0678(0x1d0)){const _0x4962b8=new ChatCreateCommand();gracefulExit(await _0x4962b8[_0x3f0678(0x44f)]({'options':{..._0x5a4b69,..._0xd32f0f},'args':_0x13d51e[_0x3f0678(0x45d)](0x1),'tdx':_0x2e694f}));return;}const _0xc18a94=new ChatCommand(),_0x1ae1ff=await _0xc18a94[_0x3f0678(0x44f)]({'options':{..._0x5a4b69,..._0xd32f0f},'args':_0x13d51e,'tdx':_0x2e694f});gracefulExit(_0x1ae1ff);});const apiCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x2ab),{'hidden':!isApiCommandEnabled()})[a2_0x37aff4(0x393)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs\x20(opt-in)')['addHelpText'](a2_0x37aff4(0x31b),a2_0x37aff4(0x407))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x255),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x37aff4(0x263))['option'](a2_0x37aff4(0x2f1),'Request\x20body\x20as\x20JSON\x20string')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x307),a2_0x37aff4(0x339))[a2_0x37aff4(0x3c2)]('-H,\x20--header\x20<header>',a2_0x37aff4(0x188),(_0x33e9eb,_0x647d31)=>{return _0x647d31?[..._0x647d31,_0x33e9eb]:[_0x33e9eb];})[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x232),a2_0x37aff4(0x38d),'td')[a2_0x37aff4(0x43c)](async(_0x230511,_0x5cda4a)=>{const _0x33223e=a2_0x37aff4;if(!isApiCommandEnabled()){console[_0x33223e(0x2ad)](a2_0x53b006[_0x33223e(0x26c)](_0x33223e(0x2ff))),console[_0x33223e(0x2ad)](''),console['error'](_0x33223e(0x1e6)),console[_0x33223e(0x2ad)](_0x33223e(0x32c)),console[_0x33223e(0x2ad)](''),console['error'](a2_0x53b006['yellow'](_0x33223e(0x3f0))),console[_0x33223e(0x2ad)](''),console[_0x33223e(0x2ad)](_0x33223e(0x21e)),gracefulExit(0x1);return;}if(!_0x230511){apiCmd[_0x33223e(0x422)]();return;}const _0x417f8a=new ApiCommand(),_0xdeb0cf=program[_0x33223e(0x2cc)](),_0x29e3fe=await createTDXInstance(_0xdeb0cf),_0x4a9eb4=await _0x417f8a[_0x33223e(0x44f)]({'options':{..._0xdeb0cf,..._0x5cda4a},'args':[_0x230511],'tdx':_0x29e3fe});gracefulExit(_0x4a9eb4);});program[a2_0x37aff4(0x479)](a2_0x37aff4(0x20f))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x383))[a2_0x37aff4(0x289)](a2_0x37aff4(0x31b),a2_0x37aff4(0x243))[a2_0x37aff4(0x43c)](async _0x119c69=>{const _0x410cd6=a2_0x37aff4,_0x28a3be=new MCPCommand(),_0x214465=program['opts'](),_0x2da0fa=await createTDXInstance(_0x214465),_0x105dc0=await _0x28a3be[_0x410cd6(0x44f)]({'options':{..._0x214465,..._0x119c69},'args':[],'tdx':_0x2da0fa});gracefulExit(_0x105dc0);});const tableCmd=program['command'](a2_0x37aff4(0x3ba))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x40e)),tableListAction=async(_0x4a340a,_0x58e315)=>{const _0x9aaa9b=a2_0x37aff4,_0x176aec=new TablesCommand(),_0x23273a=program[_0x9aaa9b(0x2cc)](),_0x2217bb=await createTDXInstance(_0x23273a);_0x58e315['in']&&(_0x58e315[_0x9aaa9b(0x325)]=_0x58e315['in']);const _0x1eed84=await _0x176aec[_0x9aaa9b(0x44f)]({'options':{..._0x23273a,..._0x58e315},'args':_0x4a340a?[_0x4a340a]:[],'tdx':_0x2217bb});gracefulExit(_0x1eed84);};tableCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1de),a2_0x37aff4(0x31d))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x35c),a2_0x37aff4(0x25e))[a2_0x37aff4(0x43c)](tableListAction),tableCmd['command']('deleted')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x367))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x238),a2_0x37aff4(0x4ac))['option'](a2_0x37aff4(0x472),a2_0x37aff4(0x466))['action'](async _0x8d72b8=>{const _0x27144b=a2_0x37aff4,_0x22a70f=new TableDeletedCommand(),_0x9b6d9b=program[_0x27144b(0x2cc)](),_0x3ba208=await createTDXInstance(_0x9b6d9b),_0x219825=await _0x22a70f[_0x27144b(0x44f)]({'options':{..._0x9b6d9b,..._0x8d72b8},'args':[],'tdx':_0x3ba208});gracefulExit(_0x219825);}),tableCmd['command'](a2_0x37aff4(0x2d7))['description'](a2_0x37aff4(0x173))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x452),'Rename\x20the\x20recovered\x20table\x20(use\x20on\x20409\x20name\x20conflict)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x204),a2_0x37aff4(0x31a))[a2_0x37aff4(0x43c)](async(_0x518e47,_0x523672)=>{const _0x12d355=a2_0x37aff4,_0x2c062c=new TableRecoverCommand(),_0x3b6a78=program[_0x12d355(0x2cc)](),_0x309bad=await createTDXInstance(_0x3b6a78),_0x46f87d=await _0x2c062c['run']({'options':{..._0x3b6a78,..._0x523672},'args':[_0x518e47],'tdx':_0x309bad});gracefulExit(_0x46f87d);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x378),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x463))['option']('-d,\x20--database\x20<database>',a2_0x37aff4(0x31d))['option'](a2_0x37aff4(0x35c),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x37aff4(0x43c)](tableListAction),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x194))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x41b))[a2_0x37aff4(0x3c2)]('-d,\x20--database\x20<database>',a2_0x37aff4(0x41c))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x35c),a2_0x37aff4(0x25e))[a2_0x37aff4(0x43c)](async(_0x12cda8,_0xd2df5b)=>{const _0x5332e4=a2_0x37aff4,_0xb1c831=new ShowCommand(),_0x144a89=program[_0x5332e4(0x2cc)](),_0x16870d=await createTDXInstance(_0x144a89);_0xd2df5b['in']&&(_0xd2df5b[_0x5332e4(0x325)]=_0xd2df5b['in']);const _0x4843fe=await _0xb1c831[_0x5332e4(0x44f)]({'options':{..._0x144a89,..._0xd2df5b},'args':_0x12cda8?[_0x12cda8]:[],'tdx':_0x16870d});gracefulExit(_0x4843fe);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x18b))[a2_0x37aff4(0x1ac)]('desc')['description'](a2_0x37aff4(0x2c7))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1de),a2_0x37aff4(0x41c))['option'](a2_0x37aff4(0x35c),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x37aff4(0x43c)](async(_0x137c1b,_0x2860cc)=>{const _0x316080=a2_0x37aff4,_0x394bd3=new DescribeCommand(),_0x686ffd=program['opts'](),_0x492621=await createTDXInstance(_0x686ffd);_0x2860cc['in']&&(_0x2860cc[_0x316080(0x325)]=_0x2860cc['in']);const _0x49ac79=await _0x394bd3[_0x316080(0x44f)]({'options':{..._0x686ffd,..._0x2860cc},'args':_0x137c1b?[_0x137c1b]:[],'tdx':_0x492621});gracefulExit(_0x49ac79);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x460))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3f8))['option'](a2_0x37aff4(0x1de),a2_0x37aff4(0x23b))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x35c),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x37aff4(0x3c2)]('--catalog\x20<catalog>','Trino\x20catalog\x20(default:\x20td)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x307),a2_0x37aff4(0x156))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x253),'Maximum\x20rows\x20to\x20display')[a2_0x37aff4(0x43c)](async(_0x2c5c33,_0x4e4490)=>{const _0x27885a=a2_0x37aff4,_0x4284c5=new QueryCommand(),_0x188cfe=program[_0x27885a(0x2cc)](),_0x54fcac=await createTDXInstance(_0x188cfe);_0x4e4490['in']&&(_0x4e4490[_0x27885a(0x325)]=_0x4e4490['in']);const _0x3909b3=await _0x4284c5[_0x27885a(0x44f)]({'options':mergeCommandOptions(_0x188cfe,_0x4e4490),'args':_0x2c5c33?[_0x2c5c33]:[],'tdx':_0x54fcac});gracefulExit(_0x3909b3);});const segmentCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x2a1))[a2_0x37aff4(0x1ac)]('sg')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1a1)),segmentListAction=async(_0x4ab4b7,_0x15b1cc)=>{const _0x4fb068=a2_0x37aff4,_0x96c5e0=new SegmentsCommand(),_0x4cb855=program[_0x4fb068(0x2cc)](),_0x2e7a0c=await createTDXInstance(_0x4cb855),_0x4d6b08=await _0x96c5e0[_0x4fb068(0x44f)]({'options':{..._0x4cb855,..._0x15b1cc},'args':_0x4ab4b7?[_0x4ab4b7]:[],'tdx':_0x2e7a0c});gracefulExit(_0x4d6b08);};segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x430))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x458))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x454),a2_0x37aff4(0x471))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3b6),a2_0x37aff4(0x25a),'10')[a2_0x37aff4(0x43c)](segmentListAction),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x15f),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2ee))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x454),a2_0x37aff4(0x471))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3b6),a2_0x37aff4(0x25a),'10')[a2_0x37aff4(0x43c)](segmentListAction),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2bb),{'hidden':!![]})['description'](a2_0x37aff4(0x26b))[a2_0x37aff4(0x43c)](async(_0x156af8,_0x11f219)=>{const _0x13833a=a2_0x37aff4,_0x45c2be=new SegmentUseCommand(),_0x3db72f=program[_0x13833a(0x2cc)](),_0x1da9fa=await createTDXInstance(_0x3db72f),_0x106719=await _0x45c2be[_0x13833a(0x44f)]({'options':{..._0x3db72f,..._0x11f219},'args':[_0x156af8],'tdx':_0x1da9fa});gracefulExit(_0x106719);});const segmentViewAction=async(_0x1fdcd5,_0x3436d2)=>{const _0x186193=a2_0x37aff4,_0x2eda35=new SegmentViewCommand(),_0x38f2e2=program[_0x186193(0x2cc)](),_0x28f331=await createTDXInstance(_0x38f2e2),_0x33b5a3=await _0x2eda35[_0x186193(0x44f)]({'options':{..._0x38f2e2,..._0x3436d2},'args':_0x1fdcd5?[_0x1fdcd5]:[],'tdx':_0x28f331});gracefulExit(_0x33b5a3);};segmentCmd['command'](a2_0x37aff4(0x3a3))['description'](a2_0x37aff4(0x2ca))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x348),a2_0x37aff4(0x487))['action'](segmentViewAction),segmentCmd['command'](a2_0x37aff4(0x321),{'hidden':!![]})[a2_0x37aff4(0x1ac)](a2_0x37aff4(0x16a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x348),a2_0x37aff4(0x487))[a2_0x37aff4(0x2c0)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x37aff4(0x43c)](segmentViewAction),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x41d))['description'](a2_0x37aff4(0x3a8))[a2_0x37aff4(0x43c)](async(_0x256a42,_0x380315)=>{const _0x26e115=a2_0x37aff4,_0x37715f=new SegmentDescCommand(),_0x1b773f=program[_0x26e115(0x2cc)](),_0xa329b5=await createTDXInstance(_0x1b773f),_0x57917b=await _0x37715f[_0x26e115(0x44f)]({'options':{..._0x1b773f,..._0x380315},'args':_0x256a42?[_0x256a42]:[],'tdx':_0xa329b5});gracefulExit(_0x57917b);}),segmentCmd[a2_0x37aff4(0x479)]('show\x20[segment_name]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1f0))[a2_0x37aff4(0x43c)](async(_0x1ffd99,_0x4392cc)=>{const _0x3dbe99=a2_0x37aff4,_0x2652fa=new SegmentShowCommand(),_0x276167=program['opts'](),_0x1be8d4=await createTDXInstance(_0x276167),_0x239410=await _0x2652fa[_0x3dbe99(0x44f)]({'options':{..._0x276167,..._0x4392cc},'args':_0x1ffd99?[_0x1ffd99]:[],'tdx':_0x1be8d4});gracefulExit(_0x239410);}),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x489),{'hidden':!![]})[a2_0x37aff4(0x2c0)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x37aff4(0x43c)](async(_0x337951,_0x1e3202)=>{const _0x20b478=a2_0x37aff4,_0x579010=new SegmentFolderListCommand(),_0x5bb79b=program[_0x20b478(0x2cc)](),_0x5ef1ad=await createTDXInstance(_0x5bb79b),_0x3f7df6=await _0x579010[_0x20b478(0x44f)]({'options':{..._0x5bb79b,..._0x1e3202},'args':[_0x337951],'tdx':_0x5ef1ad});gracefulExit(_0x3f7df6);});const folderCmd=segmentCmd['command'](a2_0x37aff4(0x2bf),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2e4));folderCmd['command'](a2_0x37aff4(0x361))['description'](a2_0x37aff4(0x1d6))[a2_0x37aff4(0x43c)](async(_0x8ef9fd,_0xb8eba)=>{const _0x435d89=a2_0x37aff4,_0x41444f=new SegmentFolderShowCommand(),_0x4322ae=program[_0x435d89(0x2cc)](),_0x447dde=await createTDXInstance(_0x4322ae),_0x451efa=await _0x41444f[_0x435d89(0x44f)]({'options':{..._0x4322ae,..._0xb8eba},'args':[_0x8ef9fd],'tdx':_0x447dde});gracefulExit(_0x451efa);}),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x45e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x175))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x388),a2_0x37aff4(0x35d))[a2_0x37aff4(0x43c)](async(_0x229076,_0x56b57b)=>{const _0x182458=a2_0x37aff4,_0x13605c=new SegmentSQLCommand(),_0x307c73=program[_0x182458(0x2cc)](),_0x1dd3c4=await createTDXInstance(_0x307c73),_0x378148=await _0x13605c[_0x182458(0x44f)]({'options':{..._0x307c73,..._0x56b57b},'args':_0x229076?[_0x229076]:[],'tdx':_0x1dd3c4});gracefulExit(_0x378148);}),segmentCmd[a2_0x37aff4(0x479)]('fields\x20[parent_name]')[a2_0x37aff4(0x2c0)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x37aff4(0x43c)](async(_0x59de54,_0xecf2f9)=>{const _0x4cd85a=a2_0x37aff4,_0x5bf12b=new SegmentFieldsCommand(),_0x40ead2=program[_0x4cd85a(0x2cc)](),_0x32908f=await createTDXInstance(_0x40ead2),_0x280a08=await _0x5bf12b['run']({'options':{..._0x40ead2,..._0xecf2f9},'args':_0x59de54?[_0x59de54]:[],'tdx':_0x32908f});gracefulExit(_0x280a08);}),segmentCmd['command'](a2_0x37aff4(0x27d))[a2_0x37aff4(0x2c0)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x450))[a2_0x37aff4(0x43c)](async(_0x189dd1,_0x4b80d7)=>{const _0x435596=a2_0x37aff4,_0x24daea=new SegmentPullCommand(),_0x35bf43=program[_0x435596(0x2cc)](),_0x2d6ade=await createTDXInstance(_0x35bf43),_0x577901=await _0x24daea[_0x435596(0x44f)]({'options':{..._0x35bf43,..._0x4b80d7},'args':_0x189dd1?[_0x189dd1]:[],'tdx':_0x2d6ade});gracefulExit(_0x577901);}),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x346))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x38a))['option'](a2_0x37aff4(0x4af),a2_0x37aff4(0x450))['option'](a2_0x37aff4(0x3fc),a2_0x37aff4(0x496))[a2_0x37aff4(0x43c)](async(_0x218548,_0x18badf)=>{const _0x50d78d=new SegmentPushCommand(),_0x180093=program['opts'](),_0x3d565f=await createTDXInstance(_0x180093),_0x413dd9=await _0x50d78d['run']({'options':{..._0x180093,..._0x18badf},'args':_0x218548?[_0x218548]:[],'tdx':_0x3d565f});gracefulExit(_0x413dd9);}),segmentCmd[a2_0x37aff4(0x479)]('validate\x20[target]')[a2_0x37aff4(0x2c0)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x37aff4(0x43c)](async(_0x239bd2,_0x1d4107)=>{const _0x5b47ae=new SegmentValidateCommand(),_0x1a6eef=program['opts'](),_0x33ebed=await createTDXInstance(_0x1a6eef),_0x4a906d=await _0x5b47ae['run']({'options':{..._0x1a6eef,..._0x1d4107},'args':_0x239bd2?[_0x239bd2]:[],'tdx':_0x33ebed});gracefulExit(_0x4a906d);}),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x165),{'hidden':!![]})[a2_0x37aff4(0x2c0)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x37aff4(0x31f),'Segment\x20description')['option'](a2_0x37aff4(0x242),a2_0x37aff4(0x3a9))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2fd),a2_0x37aff4(0x2c6))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x354),'Folder\x20name\x20for\x20organization')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x43d),a2_0x37aff4(0x341))['option']('--invisible',a2_0x37aff4(0x20b))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x252),'Skip\x20population\x20counting')[a2_0x37aff4(0x43c)](async(_0xed41ab,_0x50993a)=>{const _0xcd9812=a2_0x37aff4,_0x4d056e=new SegmentCreateCommand(),_0x9996a7=program['opts'](),_0x380c48=await createTDXInstance(_0x9996a7),_0x4125e3=await _0x4d056e[_0xcd9812(0x44f)]({'options':{..._0x9996a7,..._0x50993a},'args':[_0xed41ab],'tdx':_0x380c48});gracefulExit(_0x4125e3);}),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x331),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1ee))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x260),a2_0x37aff4(0x2a7))[a2_0x37aff4(0x3c2)]('--description\x20<text>','Updated\x20description')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x242),a2_0x37aff4(0x2ef))[a2_0x37aff4(0x3c2)]('--rule-file\x20<file>',a2_0x37aff4(0x336))['option']('--folder\x20<name>',a2_0x37aff4(0x379))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x43d),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x37aff4(0x43c)](async(_0x1b0afb,_0x42401a)=>{const _0x4e5807=a2_0x37aff4,_0x6b076f=new SegmentUpdateCommand(),_0x47b902=program[_0x4e5807(0x2cc)](),_0xaf0492=await createTDXInstance(_0x47b902),_0x26a11c=await _0x6b076f[_0x4e5807(0x44f)]({'options':{..._0x47b902,..._0x42401a},'args':[_0x1b0afb],'tdx':_0xaf0492});gracefulExit(_0x26a11c);});const parentCmd=segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x32e),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x216)),parentListAction=async(_0x2bf271,_0x204987)=>{const _0x52ec42=a2_0x37aff4,_0x17da4e=new ParentSegmentListCommand(),_0x540174=program[_0x52ec42(0x2cc)](),_0x29fcc3=await createTDXInstance(_0x540174),_0x43cb02=await _0x17da4e[_0x52ec42(0x44f)]({'options':{..._0x540174,..._0x204987},'args':_0x2bf271?[_0x2bf271]:[],'tdx':_0x29fcc3});gracefulExit(_0x43cb02);};parentCmd['command'](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x37aff4(0x43c)](parentListAction),segmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d8),{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x34b))[a2_0x37aff4(0x43c)](parentListAction),parentCmd['command']('pull\x20[name]')['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x250),a2_0x37aff4(0x3e7))['action'](async(_0x25483b,_0x44e23c)=>{const _0x25fb2b=a2_0x37aff4,_0x815be9=new ParentSegmentPullCommand(),_0x4fe857=program[_0x25fb2b(0x2cc)](),_0xb1345b=await createTDXInstance(_0x4fe857),_0x1cae27=await _0x815be9[_0x25fb2b(0x44f)]({'options':{..._0x4fe857,..._0x44e23c},'args':_0x25483b?[_0x25483b]:[],'tdx':_0xb1345b});gracefulExit(_0x1cae27);}),parentCmd['command']('push\x20[file]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x27f))['action'](async(_0x178345,_0x4eafda)=>{const _0x177c43=a2_0x37aff4,_0x3e5114=new ParentSegmentPushCommand(),_0x510e1d=program[_0x177c43(0x2cc)](),_0x4e89e9=await createTDXInstance(_0x510e1d),_0x5d9511=await _0x3e5114[_0x177c43(0x44f)]({'options':{..._0x510e1d,..._0x4eafda},'args':_0x178345?[_0x178345]:[],'tdx':_0x4e89e9});gracefulExit(_0x5d9511);}),parentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ef))['description'](a2_0x37aff4(0x457))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1f6),a2_0x37aff4(0x3fe))[a2_0x37aff4(0x3c2)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3d3),a2_0x37aff4(0x39d))['option']('--enriched',a2_0x37aff4(0x483))['option'](a2_0x37aff4(0x2c8),a2_0x37aff4(0x3a5),a2_0x37aff4(0x2d4))[a2_0x37aff4(0x43c)](async(_0x1c15cc,_0x150024)=>{const _0x30a7eb=new ParentSegmentValidateCommand(),_0x2e4c0c=program['opts'](),_0x2bd3de=await createTDXInstance(_0x2e4c0c),_0x13c675=await _0x30a7eb['run']({'options':{..._0x2e4c0c,..._0x150024},'args':_0x1c15cc?[_0x1c15cc]:[],'tdx':_0x2bd3de});gracefulExit(_0x13c675);}),parentCmd['command'](a2_0x37aff4(0x295))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1b0))[a2_0x37aff4(0x3c2)]('--master',a2_0x37aff4(0x18f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x442),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x37aff4(0x3c2)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x44c),a2_0x37aff4(0x189))[a2_0x37aff4(0x3c2)]('--interval\x20<range>',a2_0x37aff4(0x3a5),a2_0x37aff4(0x2d4))[a2_0x37aff4(0x43c)](async(_0x563a01,_0x51a4d1)=>{const _0x4e7e82=a2_0x37aff4,_0x36227e=new ParentSegmentPreviewCommand(),_0x9036dc=program['opts'](),_0x48b24f=await createTDXInstance(_0x9036dc),_0x155055=await _0x36227e[_0x4e7e82(0x44f)]({'options':{..._0x9036dc,..._0x51a4d1},'args':_0x563a01?[_0x563a01]:[],'tdx':_0x48b24f});gracefulExit(_0x155055);}),parentCmd['command'](a2_0x37aff4(0x1cb))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['action'](async(_0x52dead,_0x9f3c19)=>{const _0xa720d3=a2_0x37aff4,_0x2bf0f3=new ParentSegmentRunCommand(),_0x15f494=program['opts'](),_0x4190ee=await createTDXInstance(_0x15f494),_0x1dd68b=await _0x2bf0f3[_0xa720d3(0x44f)]({'options':{..._0x15f494,..._0x9f3c19},'args':_0x52dead?[_0x52dead]:[],'tdx':_0x4190ee});gracefulExit(_0x1dd68b);});const parentSegmentCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x23c))[a2_0x37aff4(0x1ac)]('ps')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x41e));parentSegmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x29e))['action'](parentListAction),parentSegmentCmd['command'](a2_0x37aff4(0x3c1))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3ee))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x250),a2_0x37aff4(0x451))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x390),a2_0x37aff4(0x49b))[a2_0x37aff4(0x43c)](async(_0x419672,_0x37867e)=>{const _0x25e33d=a2_0x37aff4,_0x53d986=new ParentSegmentPullCommand(),_0x4c808b=program[_0x25e33d(0x2cc)](),_0x1db6b9=await createTDXInstance(_0x4c808b),_0x417df1=await _0x53d986[_0x25e33d(0x44f)]({'options':{..._0x4c808b,..._0x37867e},'args':_0x419672?[_0x419672]:[],'tdx':_0x1db6b9});gracefulExit(_0x417df1);}),parentSegmentCmd[a2_0x37aff4(0x479)]('push\x20[name]')['description'](a2_0x37aff4(0x405))[a2_0x37aff4(0x43c)](async(_0x3b9b82,_0x3c5125)=>{const _0x5d4bb1=a2_0x37aff4,_0x262aac=new ParentSegmentPushCommand(),_0x5567f8=program[_0x5d4bb1(0x2cc)](),_0x1714f5=await createTDXInstance(_0x5567f8),_0x320359=await _0x262aac[_0x5d4bb1(0x44f)]({'options':{..._0x5567f8,..._0x3c5125},'args':_0x3b9b82?[_0x3b9b82]:[],'tdx':_0x1714f5});gracefulExit(_0x320359);}),parentSegmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3a1))['description'](a2_0x37aff4(0x457))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1f6),a2_0x37aff4(0x3fe))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x442),a2_0x37aff4(0x49e))['option']('--behavior\x20[name]',a2_0x37aff4(0x39d))['option']('--enriched',a2_0x37aff4(0x483))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2c8),a2_0x37aff4(0x3a5),a2_0x37aff4(0x2d4))[a2_0x37aff4(0x43c)](async(_0x2929ca,_0x535785)=>{const _0x5e2d3c=a2_0x37aff4,_0x5baa71=new ParentSegmentValidateCommand(),_0x12b36b=program[_0x5e2d3c(0x2cc)](),_0x15d074=await createTDXInstance(_0x12b36b),_0x3b2004=await _0x5baa71[_0x5e2d3c(0x44f)]({'options':{..._0x12b36b,..._0x535785},'args':_0x2929ca?[_0x2929ca]:[],'tdx':_0x15d074});gracefulExit(_0x3b2004);}),parentSegmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x275))['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x37aff4(0x3c2)]('--master',a2_0x37aff4(0x18f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x442),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x37aff4(0x3c2)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x44c),a2_0x37aff4(0x189))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2c8),a2_0x37aff4(0x3a5),a2_0x37aff4(0x2d4))[a2_0x37aff4(0x43c)](async(_0x1102d9,_0x56946c)=>{const _0x4d2d9f=a2_0x37aff4,_0x3c1bb7=new ParentSegmentPreviewCommand(),_0x5be8e3=program[_0x4d2d9f(0x2cc)](),_0x47db40=await createTDXInstance(_0x5be8e3),_0x29fd1c=await _0x3c1bb7[_0x4d2d9f(0x44f)]({'options':{..._0x5be8e3,..._0x56946c},'args':_0x1102d9?[_0x1102d9]:[],'tdx':_0x47db40});gracefulExit(_0x29fd1c);}),parentSegmentCmd[a2_0x37aff4(0x479)]('run\x20[name]')['description'](a2_0x37aff4(0x16d))['action'](async(_0x21ab0c,_0x26eea6)=>{const _0x12a430=a2_0x37aff4,_0x1cf15b=new ParentSegmentRunCommand(),_0x28d3c7=program[_0x12a430(0x2cc)](),_0x6276f5=await createTDXInstance(_0x28d3c7),_0x5c766b=await _0x1cf15b['run']({'options':{..._0x28d3c7,..._0x26eea6},'args':_0x21ab0c?[_0x21ab0c]:[],'tdx':_0x6276f5});gracefulExit(_0x5c766b);}),parentSegmentCmd[a2_0x37aff4(0x479)]('fields\x20[name]')['description'](a2_0x37aff4(0x411))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2f4),a2_0x37aff4(0x2ac))['option'](a2_0x37aff4(0x2e3),a2_0x37aff4(0x179))[a2_0x37aff4(0x43c)](async(_0x3b5e6f,_0x298350)=>{const _0x5d7d8f=a2_0x37aff4,_0xb19687=new ParentSegmentFieldsCommand(),_0x21bc10=program[_0x5d7d8f(0x2cc)](),_0x1e0a34=await createTDXInstance(_0x21bc10),_0x1907fd=await _0xb19687['run']({'options':{..._0x21bc10,..._0x298350},'args':_0x3b5e6f?[_0x3b5e6f]:[],'tdx':_0x1e0a34});gracefulExit(_0x1907fd);}),parentSegmentCmd['command'](a2_0x37aff4(0x222))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1b6))['option']('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')['option'](a2_0x37aff4(0x2f4),a2_0x37aff4(0x2ac))[a2_0x37aff4(0x3c2)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x37aff4(0x43c)](async(_0xa1ca4d,_0x5e4809)=>{const _0x1e8296=a2_0x37aff4,_0x5bcc69=new ParentSegmentViewCommand(),_0x4acff4=program[_0x1e8296(0x2cc)](),_0x24a056=await createTDXInstance(_0x4acff4),_0x323ddb=await _0x5bcc69[_0x1e8296(0x44f)]({'options':{..._0x4acff4,..._0x5e4809},'args':_0xa1ca4d?[_0xa1ca4d]:[],'tdx':_0x24a056});gracefulExit(_0x323ddb);}),parentSegmentCmd[a2_0x37aff4(0x479)]('desc\x20[name]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x177))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x250),a2_0x37aff4(0x451))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2f4),a2_0x37aff4(0x2ac))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2e3),a2_0x37aff4(0x179))[a2_0x37aff4(0x43c)](async(_0x258442,_0x482cd0)=>{const _0x5aa93e=a2_0x37aff4,_0x769ba8=new ParentSegmentDescCommand(),_0x54f288=program[_0x5aa93e(0x2cc)](),_0x45354a=await createTDXInstance(_0x54f288),_0x45c7e3=await _0x769ba8[_0x5aa93e(0x44f)]({'options':{..._0x54f288,..._0x482cd0},'args':_0x258442?[_0x258442]:[],'tdx':_0x45354a});gracefulExit(_0x45c7e3);}),parentSegmentCmd['command'](a2_0x37aff4(0x467))['description'](a2_0x37aff4(0x48f))['option'](a2_0x37aff4(0x2f4),'Output\x20as\x20JSON')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2e3),'Output\x20as\x20JSON\x20Lines')[a2_0x37aff4(0x43c)](async(_0x40dd29,_0x55ebc2)=>{const _0x472366=a2_0x37aff4,_0x1dadf8=new ParentSegmentSQLCommand(),_0x438f05=program[_0x472366(0x2cc)](),_0x307789=await createTDXInstance(_0x438f05),_0x214873=await _0x1dadf8['run']({'options':{..._0x438f05,..._0x55ebc2},'args':_0x40dd29?[_0x40dd29]:[],'tdx':_0x307789});gracefulExit(_0x214873);}),parentSegmentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x213))[a2_0x37aff4(0x2c0)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1d1),a2_0x37aff4(0x262))['option'](a2_0x37aff4(0x2f4),a2_0x37aff4(0x2ac))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2e3),a2_0x37aff4(0x179))[a2_0x37aff4(0x43c)](async(_0x3e935c,_0x5d45b5)=>{const _0x207d90=a2_0x37aff4,_0x1e4d83=new ParentSegmentShowCommand(),_0x53fa13=program[_0x207d90(0x2cc)](),_0x3b35af=await createTDXInstance(_0x53fa13),_0x524d1b=await _0x1e4d83[_0x207d90(0x44f)]({'options':{..._0x53fa13,..._0x5d45b5},'args':_0x3e935c?[_0x3e935c]:[],'tdx':_0x3b35af});gracefulExit(_0x524d1b);}),parentSegmentCmd['command'](a2_0x37aff4(0x2e5))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x384))[a2_0x37aff4(0x43c)](async(_0x5b1dd2,_0x3f54f3)=>{const _0x476597=a2_0x37aff4,_0x375242=new UseCommand(),_0xa67ecf=program[_0x476597(0x2cc)](),_0x5a0c45=_0x5b1dd2?['parent_segment',_0x5b1dd2]:[],_0x2bfc2d=await _0x375242['run']({'options':{..._0xa67ecf,..._0x3f54f3},'args':_0x5a0c45,'tdx':null});gracefulExit(_0x2bfc2d);});const psRtCmd=parentSegmentCmd[a2_0x37aff4(0x479)]('rt')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1dd));psRtCmd[a2_0x37aff4(0x479)]('list\x20[pattern]')[a2_0x37aff4(0x2c0)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x247407,_0x2b6609)=>{const _0x272c1b=a2_0x37aff4,_0xd1e088=new PSRtListCommand(),_0x1231ea=program[_0x272c1b(0x2cc)](),_0xac99c4=await createTDXInstance(_0x1231ea),_0x925701=await _0xd1e088['run']({'options':{..._0x1231ea,..._0x2b6609},'args':_0x247407?[_0x247407]:[],'tdx':_0xac99c4});gracefulExit(_0x925701);}),psRtCmd['command'](a2_0x37aff4(0x3a1))['description'](a2_0x37aff4(0x1f9))[a2_0x37aff4(0x43c)](async(_0x522197,_0x9b5263)=>{const _0x1db4b1=a2_0x37aff4,_0x5bc466=new PSRtValidateCommand(),_0x236a9e=program[_0x1db4b1(0x2cc)](),_0x1222cb=await createTDXInstance(_0x236a9e),_0x564190=await _0x5bc466[_0x1db4b1(0x44f)]({'options':{..._0x236a9e,..._0x9b5263},'args':_0x522197?[_0x522197]:[],'tdx':_0x1222cb});gracefulExit(_0x564190);}),psRtCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x21a))[a2_0x37aff4(0x2c0)]('Get\x20current\x20RT\x20configuration\x20version\x20status')[a2_0x37aff4(0x43c)](async(_0xcd0c4d,_0x51ccbb)=>{const _0x5231c7=a2_0x37aff4,_0x481a2f=new PSRtConfigVersionCommand(),_0x40a852=program[_0x5231c7(0x2cc)](),_0x3b83b0=await createTDXInstance(_0x40a852),_0x5b7cb6=await _0x481a2f[_0x5231c7(0x44f)]({'options':{..._0x40a852,..._0x51ccbb},'args':_0xcd0c4d?[_0xcd0c4d]:[],'tdx':_0x3b83b0});gracefulExit(_0x5b7cb6);});const psRtJnCmd=psRtCmd[a2_0x37aff4(0x479)]('jn')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1b7));psRtJnCmd['command']('list\x20[name]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2ed))[a2_0x37aff4(0x43c)](async(_0x3c66fc,_0x235d8a)=>{const _0x4f7c6c=a2_0x37aff4,_0x59f63c=new PSRtJnListCommand(),_0x189bcd=program[_0x4f7c6c(0x2cc)](),_0x1d8de0=await createTDXInstance(_0x189bcd),_0x5170d4=await _0x59f63c['run']({'options':{..._0x189bcd,..._0x235d8a},'args':_0x3c66fc?[_0x3c66fc]:[],'tdx':_0x1d8de0});gracefulExit(_0x5170d4);}),psRtJnCmd['command'](a2_0x37aff4(0x47c))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x39b))[a2_0x37aff4(0x43c)](async(_0x33fcb4,_0x3ac531)=>{const _0xa4060e=a2_0x37aff4,_0x343cd6=new PSRtJnPauseCommand(),_0xdf42e=program[_0xa4060e(0x2cc)](),_0x6ddd9d=await createTDXInstance(_0xdf42e),_0x13760a=await _0x343cd6[_0xa4060e(0x44f)]({'options':{..._0xdf42e,..._0x3ac531},'args':[_0x33fcb4],'tdx':_0x6ddd9d});gracefulExit(_0x13760a);}),psRtJnCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x288))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x45c))[a2_0x37aff4(0x43c)](async(_0x363445,_0x2ace46)=>{const _0x1704c4=a2_0x37aff4,_0x15aee9=new PSRtJnResumeCommand(),_0x12352b=program[_0x1704c4(0x2cc)](),_0x23ca5a=await createTDXInstance(_0x12352b),_0x5ab04c=await _0x15aee9['run']({'options':{..._0x12352b,..._0x2ace46},'args':[_0x363445],'tdx':_0x23ca5a});gracefulExit(_0x5ab04c);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1dd));parentRtCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))['description']('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x37aff4(0x43c)](async(_0x3841a3,_0x3585b7)=>{const _0x491f60=a2_0x37aff4,_0x321d67=new PSRtListCommand(),_0x12f5c3=program[_0x491f60(0x2cc)](),_0x1bf819=await createTDXInstance(_0x12f5c3),_0x70e5f1=await _0x321d67[_0x491f60(0x44f)]({'options':{..._0x12f5c3,..._0x3585b7},'args':_0x3841a3?[_0x3841a3]:[],'tdx':_0x1bf819});gracefulExit(_0x70e5f1);}),parentRtCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3a1))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1f9))[a2_0x37aff4(0x43c)](async(_0x2057ed,_0x163ea4)=>{const _0x2fa3f2=a2_0x37aff4,_0x2dd345=new PSRtValidateCommand(),_0x27ccb5=program[_0x2fa3f2(0x2cc)](),_0x437b3e=await createTDXInstance(_0x27ccb5),_0x1bbff3=await _0x2dd345[_0x2fa3f2(0x44f)]({'options':{..._0x27ccb5,..._0x163ea4},'args':_0x2057ed?[_0x2057ed]:[],'tdx':_0x437b3e});gracefulExit(_0x1bbff3);});const psPzCmd=parentSegmentCmd[a2_0x37aff4(0x479)]('pz')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2c1));psPzCmd[a2_0x37aff4(0x479)]('list\x20[name]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2a2))[a2_0x37aff4(0x43c)](async(_0x1801f4,_0x5b9d9b)=>{const _0x425505=a2_0x37aff4,_0x4c0a41=new PSPzListCommand(),_0x55951c=program[_0x425505(0x2cc)](),_0x390bfa=await createTDXInstance(_0x55951c),_0xd525f9=await _0x4c0a41[_0x425505(0x44f)]({'options':{..._0x55951c,..._0x5b9d9b},'args':_0x1801f4?[_0x1801f4]:[],'tdx':_0x390bfa});gracefulExit(_0xd525f9);}),psPzCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x4ad))['description'](a2_0x37aff4(0x47b))[a2_0x37aff4(0x43c)](async(_0x49f89a,_0x1828e4)=>{const _0x27b7e9=a2_0x37aff4,_0x40b593=new PSPzShowCommand(),_0x2dcf06=program[_0x27b7e9(0x2cc)](),_0x125f87=await createTDXInstance(_0x2dcf06),_0xeaae9d=await _0x40b593[_0x27b7e9(0x44f)]({'options':{..._0x2dcf06,..._0x1828e4},'args':[_0x49f89a],'tdx':_0x125f87});gracefulExit(_0xeaae9d);}),psPzCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x311))['description'](a2_0x37aff4(0x3d2))['action'](async(_0x5902a6,_0x1620f8)=>{const _0x3e490d=new PSPzDeleteCommand(),_0x188a9b=program['opts'](),_0x4e678c=await createTDXInstance(_0x188a9b),_0x3a0851=await _0x3e490d['run']({'options':{..._0x188a9b,..._0x1620f8},'args':[_0x5902a6],'tdx':_0x4e678c});gracefulExit(_0x3a0851);}),psPzCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d0))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x359))['option']('--name\x20<text>',a2_0x37aff4(0x30e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),a2_0x37aff4(0x432))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1f4),a2_0x37aff4(0x259))[a2_0x37aff4(0x3c2)]('--folder-id\x20<id>',a2_0x37aff4(0x1b4))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3a4),a2_0x37aff4(0x3ab))['option']('--file\x20<path>',a2_0x37aff4(0x398))[a2_0x37aff4(0x43c)](async _0x2b780b=>{const _0x256fbe=a2_0x37aff4,_0x197825=new PSPzCreateCommand(),_0x5bef99=program[_0x256fbe(0x2cc)](),_0x467149=await createTDXInstance(_0x5bef99),_0x37bc7d=await _0x197825[_0x256fbe(0x44f)]({'options':{..._0x5bef99,..._0x2b780b},'args':[],'tdx':_0x467149});gracefulExit(_0x37bc7d);}),psPzCmd[a2_0x37aff4(0x479)]('patch\x20<personalization_id>')['description'](a2_0x37aff4(0x455))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3e2),a2_0x37aff4(0x30e))['option'](a2_0x37aff4(0x31f),a2_0x37aff4(0x432))['option'](a2_0x37aff4(0x3a4),a2_0x37aff4(0x3ab))[a2_0x37aff4(0x3c2)]('--file\x20<path>',a2_0x37aff4(0x398))[a2_0x37aff4(0x43c)](async(_0x71028a,_0x30f5f1)=>{const _0x42cf9e=a2_0x37aff4,_0x466040=new PSPzPatchCommand(),_0x5a1f9f=program[_0x42cf9e(0x2cc)](),_0x3d04c2=await createTDXInstance(_0x5a1f9f),_0x325978=await _0x466040[_0x42cf9e(0x44f)]({'options':{..._0x5a1f9f,..._0x30f5f1},'args':[_0x71028a],'tdx':_0x3d04c2});gracefulExit(_0x325978);});const psPzServiceCmd=psPzCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b8))[a2_0x37aff4(0x2c0)]('Personalization\x20service\x20management');psPzServiceCmd['command'](a2_0x37aff4(0x363))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1a3))[a2_0x37aff4(0x43c)](async(_0x5211cb,_0x5076ce)=>{const _0xc5d638=a2_0x37aff4,_0x1257b6=new PSPzServiceListCommand(),_0x3635d0=program['opts'](),_0x4ecc51=await createTDXInstance(_0x3635d0),_0x254f69=await _0x1257b6[_0xc5d638(0x44f)]({'options':{..._0x3635d0,..._0x5076ce},'args':_0x5211cb?[_0x5211cb]:[],'tdx':_0x4ecc51});gracefulExit(_0x254f69);}),psPzServiceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b6))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x27b))[a2_0x37aff4(0x3c2)]('--description\x20<text>',a2_0x37aff4(0x395))['option']('--public','Make\x20service\x20public\x20(default:\x20private)')['action'](async(_0x3ac504,_0x29ad25,_0x3ca8d6)=>{const _0x15394d=a2_0x37aff4,_0x35cee9=new PSPzServiceCreateCommand(),_0x3633bf=program['opts'](),_0x157d6d=await createTDXInstance(_0x3633bf),_0x48108a=await _0x35cee9[_0x15394d(0x44f)]({'options':{..._0x3633bf,..._0x3ca8d6},'args':_0x29ad25?[_0x3ac504,_0x29ad25]:[_0x3ac504],'tdx':_0x157d6d});gracefulExit(_0x48108a);}),psPzServiceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d0))['description'](a2_0x37aff4(0x473))[a2_0x37aff4(0x43c)](async(_0x266a4e,_0x3496ba,_0x49b43d)=>{const _0x5ce200=a2_0x37aff4,_0x43a5fe=new PSPzServiceShowCommand(),_0x3252b9=program[_0x5ce200(0x2cc)](),_0x1e7884=await createTDXInstance(_0x3252b9),_0x1ca08f=await _0x43a5fe[_0x5ce200(0x44f)]({'options':{..._0x3252b9,..._0x49b43d},'args':_0x3496ba?[_0x266a4e,_0x3496ba]:[_0x266a4e],'tdx':_0x1e7884});gracefulExit(_0x1ca08f);}),psPzServiceCmd['command'](a2_0x37aff4(0x300))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x392))['action'](async(_0x38843a,_0x444857,_0x184dda)=>{const _0x297d1f=new PSPzServiceDeleteCommand(),_0x4e3992=program['opts'](),_0x2f01b4=await createTDXInstance(_0x4e3992),_0x289481=await _0x297d1f['run']({'options':{..._0x4e3992,..._0x184dda},'args':_0x444857?[_0x38843a,_0x444857]:[_0x38843a],'tdx':_0x2f01b4});gracefulExit(_0x289481);}),psPzServiceCmd['command']('update\x20<service_id>\x20[parent_segment]')['description']('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x37aff4(0x418)](a2_0x37aff4(0x452),a2_0x37aff4(0x320))['option'](a2_0x37aff4(0x31f),a2_0x37aff4(0x374))[a2_0x37aff4(0x43c)](async(_0x35b194,_0x3be079,_0x449883)=>{const _0x42c3f3=a2_0x37aff4,_0x5b6504=new PSPzServiceUpdateCommand(),_0x563617=program[_0x42c3f3(0x2cc)](),_0x53a1d0=await createTDXInstance(_0x563617),_0x18468d=await _0x5b6504[_0x42c3f3(0x44f)]({'options':{..._0x563617,..._0x449883},'args':_0x3be079?[_0x35b194,_0x3be079]:[_0x35b194],'tdx':_0x53a1d0});gracefulExit(_0x18468d);}),psPzServiceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b9))['description'](a2_0x37aff4(0x424))['action'](async(_0x364510,_0x17437b)=>{const _0x205127=a2_0x37aff4,_0xff77a3=new PSPzInitCommand(),_0x367ea2=program[_0x205127(0x2cc)](),_0x221f83=await createTDXInstance(_0x367ea2),_0x59ca89=await _0xff77a3[_0x205127(0x44f)]({'options':{..._0x367ea2,..._0x17437b},'args':_0x364510?[_0x364510]:[],'tdx':_0x221f83});gracefulExit(_0x59ca89);});const psPzServiceTokenCmd=psPzServiceCmd['command'](a2_0x37aff4(0x186))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x19d));psPzServiceTokenCmd['command'](a2_0x37aff4(0x328))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x168))['option'](a2_0x37aff4(0x2a5),a2_0x37aff4(0x47a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),'Token\x20description')['action'](async(_0x3b4e78,_0x18928e,_0x34423f,_0x865f15)=>{const _0x381736=a2_0x37aff4,_0x4fa411=new PSPzServiceTokenCreateCommand(),_0x22da4b=program[_0x381736(0x2cc)](),_0x3373ca=await createTDXInstance(_0x22da4b),_0x4c3b6e=await _0x4fa411[_0x381736(0x44f)]({'options':{..._0x22da4b,..._0x865f15},'args':_0x34423f?[_0x3b4e78,_0x18928e,_0x34423f]:[_0x3b4e78,_0x18928e],'tdx':_0x3373ca});gracefulExit(_0x4c3b6e);}),psPzServiceTokenCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x272))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x33f))[a2_0x37aff4(0x43c)](async(_0x2ceb8f,_0x67b334,_0x338478)=>{const _0x5a2b55=a2_0x37aff4,_0x4ee855=new PSPzServiceTokenDeleteCommand(),_0x473b0c=program[_0x5a2b55(0x2cc)](),_0x21fa30=await createTDXInstance(_0x473b0c),_0x12c41f=await _0x4ee855['run']({'options':{..._0x473b0c,..._0x338478},'args':_0x67b334?[_0x2ceb8f,_0x67b334]:[_0x2ceb8f],'tdx':_0x21fa30});gracefulExit(_0x12c41f);}),parentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b7))[a2_0x37aff4(0x2c0)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x37aff4(0x418)]('--database\x20<db>',a2_0x37aff4(0x345))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4ae),a2_0x37aff4(0x35f))[a2_0x37aff4(0x3c2)]('--description\x20<text>',a2_0x37aff4(0x214))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31e),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x37aff4(0x249),a2_0x37aff4(0x43e))['option'](a2_0x37aff4(0x4a3),a2_0x37aff4(0x2aa))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3ef),a2_0x37aff4(0x22a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3ae),a2_0x37aff4(0x436))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3b1),a2_0x37aff4(0x338))[a2_0x37aff4(0x3c2)]('--behaviors-file\x20<file>',a2_0x37aff4(0x2d5))[a2_0x37aff4(0x3c2)]('--customer-group\x20<json>',a2_0x37aff4(0x21f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1e5),a2_0x37aff4(0x369))['action'](async(_0x15b9b9,_0x2635b6)=>{const _0x58ff67=a2_0x37aff4,_0x3d944e=new ParentSegmentCreateCommand(),_0x7187c3=program['opts'](),_0x37b2a9=await createTDXInstance(_0x7187c3),_0x40630f=await _0x3d944e[_0x58ff67(0x44f)]({'options':{..._0x7187c3,..._0x2635b6},'args':[_0x15b9b9],'tdx':_0x37b2a9});gracefulExit(_0x40630f);}),parentCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ff))['description'](a2_0x37aff4(0x221))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),a2_0x37aff4(0x394))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31e),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x249),a2_0x37aff4(0x36f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a3),a2_0x37aff4(0x162))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1d3),a2_0x37aff4(0x34a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3b5),a2_0x37aff4(0x2f5))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x446),a2_0x37aff4(0x3b2))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x334),a2_0x37aff4(0x236))[a2_0x37aff4(0x43c)](async(_0x14ddc7,_0x5f4d55)=>{const _0x2ee8f8=a2_0x37aff4,_0x715f19=new ParentSegmentUpdateCommand(),_0x5dd7cd=program[_0x2ee8f8(0x2cc)](),_0x15c4c4=await createTDXInstance(_0x5dd7cd),_0x25dc0c=await _0x715f19[_0x2ee8f8(0x44f)]({'options':{..._0x5dd7cd,..._0x5f4d55},'args':[_0x14ddc7],'tdx':_0x15c4c4});gracefulExit(_0x25dc0c);}),folderCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x33a))[a2_0x37aff4(0x2c0)]('Create\x20segment\x20folder')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),a2_0x37aff4(0x3ed))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x35b),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x37aff4(0x43c)](async(_0x52a479,_0x14ef10,_0x592c3f)=>{const _0x421e30=a2_0x37aff4,_0x33b57e=new SegmentFolderCreateCommand(),_0x2dfab6=program[_0x421e30(0x2cc)](),_0x44d990=await createTDXInstance(_0x2dfab6),_0x2cfafd=await _0x33b57e[_0x421e30(0x44f)]({'options':{..._0x2dfab6,..._0x592c3f},'args':[_0x52a479,_0x14ef10],'tdx':_0x44d990});gracefulExit(_0x2cfafd);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x1e2))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x435))[a2_0x37aff4(0x43c)](async(_0xb42494,_0x286a88)=>{const _0x368965=a2_0x37aff4,_0xd68476=new ActivationsCommand(),_0x4596a1=program['opts'](),_0x12fc57=await createTDXInstance(_0x4596a1),_0x17cdbc=await _0xd68476[_0x368965(0x44f)]({'options':{..._0x4596a1,..._0x286a88},'args':[_0xb42494],'tdx':_0x12fc57});gracefulExit(_0x17cdbc);});const workflowCmd=program[a2_0x37aff4(0x479)]('workflow')[a2_0x37aff4(0x1ac)]('wf')[a2_0x37aff4(0x2c0)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x382))['description'](a2_0x37aff4(0x440)),wfProjectListAction=async(_0x31a019,_0x41fd97)=>{const _0x489d7d=a2_0x37aff4,_0x27113b=new WorkflowProjectsCommand(),_0x3f57ca=program[_0x489d7d(0x2cc)](),_0x2d84b6=await createTDXInstance(_0x3f57ca),_0x316a48=await _0x27113b[_0x489d7d(0x44f)]({'options':{..._0x3f57ca,..._0x41fd97},'args':_0x31a019?[_0x31a019]:[],'tdx':_0x2d84b6});gracefulExit(_0x316a48);};wfProjectCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x4a7))[a2_0x37aff4(0x43c)](wfProjectListAction),workflowCmd[a2_0x37aff4(0x479)]('projects\x20[pattern]')['description'](a2_0x37aff4(0x2bc))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x314b5b,_0x1adabc)=>{const _0x5cf93f=a2_0x37aff4,_0x381f40=new WorkflowWorkflowsCommand(),_0x5519a4=program[_0x5cf93f(0x2cc)](),_0x273a0f=await createTDXInstance(_0x5519a4),_0x52e1e0=await _0x381f40[_0x5cf93f(0x44f)]({'options':{..._0x5519a4,..._0x1adabc},'args':_0x314b5b?[_0x314b5b]:[],'tdx':_0x273a0f});gracefulExit(_0x52e1e0);};workflowCmd['command'](a2_0x37aff4(0x182))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x376))[a2_0x37aff4(0x43c)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x244))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x202)),wfSessionListAction=async(_0x1d66e0,_0x396c3e)=>{const _0x1d272b=a2_0x37aff4,_0x56f6ef=new WorkflowSessionsCommand(),_0x296ad7=program[_0x1d272b(0x2cc)](),_0x2ff847=await createTDXInstance(_0x296ad7),_0x17b48f=await _0x56f6ef[_0x1d272b(0x44f)]({'options':{..._0x296ad7,..._0x396c3e},'args':_0x1d66e0?[_0x1d66e0]:[],'tdx':_0x2ff847});gracefulExit(_0x17b48f);};wfSessionCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x312))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x220))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x27c),a2_0x37aff4(0x3bb))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1db),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x448),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x37aff4(0x43c)](wfSessionListAction),workflowCmd[a2_0x37aff4(0x479)]('sessions\x20[project]')['description'](a2_0x37aff4(0x3c8))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x27c),a2_0x37aff4(0x3bb))['option'](a2_0x37aff4(0x1db),a2_0x37aff4(0x29b))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x448),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x37aff4(0x43c)](wfSessionListAction);function a2_0x150a(_0x532e9e,_0xe62b6a){_0x532e9e=_0x532e9e-0x156;const _0x4a7baf=a2_0x4a7b();let _0x150aa1=_0x4a7baf[_0x532e9e];return _0x150aa1;}const wfAttemptListAction=async(_0x1d7861,_0x3753c8)=>{const _0x5a3a2f=a2_0x37aff4,_0x4b5235=new WorkflowAttemptsCommand(),_0x3f94cf=program[_0x5a3a2f(0x2cc)](),_0x2a7e1d=await createTDXInstance(_0x3f94cf),_0x340503=await _0x4b5235[_0x5a3a2f(0x44f)]({'options':{..._0x3f94cf,..._0x3753c8},'args':_0x1d7861?[_0x1d7861]:[],'tdx':_0x2a7e1d});gracefulExit(_0x340503);},attemptCmd=workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x327))['description'](a2_0x37aff4(0x3e3))['argument'](a2_0x37aff4(0x30b),'Attempt\x20ID')[a2_0x37aff4(0x38c)](a2_0x37aff4(0x3e8),a2_0x37aff4(0x3ca))['argument'](a2_0x37aff4(0x2c9),a2_0x37aff4(0x493))[a2_0x37aff4(0x3c2)]('--include-subtasks',a2_0x37aff4(0x1f7))['option'](a2_0x37aff4(0x2ec),a2_0x37aff4(0x1b3))[a2_0x37aff4(0x3c2)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x37aff4(0x4a5),a2_0x37aff4(0x415))['option'](a2_0x37aff4(0x1c5),'Force\x20retry\x20even\x20if\x20not\x20failed')['option']('--include-retried',a2_0x37aff4(0x20a))[a2_0x37aff4(0x43c)](async(_0x482973,_0x24b655,_0x37e0af,_0x3825b1)=>{const _0x12b81b=a2_0x37aff4;if(_0x482973===_0x12b81b(0x35a)){await wfAttemptListAction(_0x24b655,_0x3825b1);return;}if(!_0x482973){attemptCmd[_0x12b81b(0x422)]();return;}const _0x22a7a4=program['opts'](),_0x54da08=await createTDXInstance(_0x22a7a4);let _0x10840b=0x0;if(!_0x24b655){const _0x4fff22=new WorkflowAttemptCommand();_0x10840b=await _0x4fff22[_0x12b81b(0x44f)]({'options':{..._0x22a7a4,..._0x3825b1},'args':[_0x482973],'tdx':_0x54da08});}else{if(_0x24b655==='logs'){const _0x1b5a34=new WorkflowLogsCommand();_0x10840b=await _0x1b5a34[_0x12b81b(0x44f)]({'options':{..._0x22a7a4,..._0x3825b1},'args':_0x37e0af?[_0x482973,_0x37e0af]:[_0x482973],'tdx':_0x54da08});}else{if(_0x24b655===_0x12b81b(0x290)){const _0x3114bd=new WorkflowTasksCommand();_0x10840b=await _0x3114bd[_0x12b81b(0x44f)]({'options':{..._0x22a7a4,..._0x3825b1},'args':[_0x482973],'tdx':_0x54da08});}else{if(_0x24b655===_0x12b81b(0x416)){const _0x4b7e45=new WorkflowKillCommand();_0x10840b=await _0x4b7e45[_0x12b81b(0x44f)]({'options':{..._0x22a7a4,..._0x3825b1},'args':[_0x482973],'tdx':_0x54da08});}else{if(_0x24b655==='retry'){const _0x16a1b7=new WorkflowRetryCommand();_0x10840b=await _0x16a1b7[_0x12b81b(0x44f)]({'options':{..._0x22a7a4,..._0x3825b1},'args':[_0x12b81b(0x42c)+_0x482973],'tdx':_0x54da08});}else console[_0x12b81b(0x2ad)](_0x12b81b(0x443)+_0x24b655),console[_0x12b81b(0x2ad)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x10840b=0x1;}}}}gracefulExit(_0x10840b);});attemptCmd[a2_0x37aff4(0x479)]('list\x20[project]')['description'](a2_0x37aff4(0x310))[a2_0x37aff4(0x3c2)]('--include-retried',a2_0x37aff4(0x169))[a2_0x37aff4(0x43c)](wfAttemptListAction),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1fd))['description'](a2_0x37aff4(0x396))['option']('--include-retried',a2_0x37aff4(0x169))[a2_0x37aff4(0x43c)](wfAttemptListAction),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3c6))['description'](a2_0x37aff4(0x38b))[a2_0x37aff4(0x3c2)]('--follow',a2_0x37aff4(0x1e7))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x208),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x417),a2_0x37aff4(0x49d))['action'](async(_0x40af55,_0x4f46d3)=>{const _0x43735f=new WorkflowTimelineCommand(),_0x5225cd=program['opts'](),_0x4b0db3=await createTDXInstance(_0x5225cd),_0x55cebe=await _0x43735f['run']({'options':{..._0x5225cd,..._0x4f46d3},'args':_0x40af55?[_0x40af55]:[],'tdx':_0x4b0db3});gracefulExit(_0x55cebe);}),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x268))[a2_0x37aff4(0x2c0)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x37aff4(0x22f),a2_0x37aff4(0x3d6))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a5),a2_0x37aff4(0x478))['action'](async(_0x4e3335,_0x5f1093)=>{const _0x3de272=a2_0x37aff4,_0x18e18c=new WorkflowRetryCommand(),_0x5d2703=program[_0x3de272(0x2cc)](),_0xab9ace=await createTDXInstance(_0x5d2703),_0x815d3b=await _0x18e18c[_0x3de272(0x44f)]({'options':{..._0x5d2703,..._0x5f1093},'args':[_0x4e3335],'tdx':_0xab9ace});gracefulExit(_0x815d3b);}),workflowCmd[a2_0x37aff4(0x479)]('run\x20[workflow]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x498))[a2_0x37aff4(0x3c2)]('--param\x20<key=value>',a2_0x37aff4(0x433),(_0x5303da,_0xe670fb=[])=>[..._0xe670fb,_0x5303da],[])[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x32d),a2_0x37aff4(0x419))[a2_0x37aff4(0x3c2)]('--dry-run',a2_0x37aff4(0x2de))[a2_0x37aff4(0x43c)](async(_0x11f1ad,_0x13147b)=>{const _0x483a8a=a2_0x37aff4,_0x25679e=new WorkflowRunCommand(),_0x882b37=program[_0x483a8a(0x2cc)](),_0x3f94a8=await createTDXInstance(_0x882b37),_0x24876a=await _0x25679e[_0x483a8a(0x44f)]({'options':{..._0x882b37,..._0x13147b},'args':_0x11f1ad?[_0x11f1ad]:[],'tdx':_0x3f94a8});gracefulExit(_0x24876a);}),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3dc))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1c1))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x254),a2_0x37aff4(0x19a))['action'](async(_0x2c4042,_0x32405d,_0x2d3176)=>{const _0x3d4421=a2_0x37aff4,_0x5005d0=new WorkflowDownloadCommand(),_0x3b00af=program[_0x3d4421(0x2cc)](),_0x385f4d=await createTDXInstance(_0x3b00af),_0x4fe587=await _0x5005d0[_0x3d4421(0x44f)]({'options':{..._0x3b00af,..._0x2d3176},'args':[_0x2c4042,_0x32405d||'.'],'tdx':_0x385f4d});gracefulExit(_0x4fe587);}),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1e3))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x470))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x254),a2_0x37aff4(0x197))['option'](a2_0x37aff4(0x4af),a2_0x37aff4(0x287))[a2_0x37aff4(0x43c)](async(_0x39c327,_0x77f0cd,_0x2b1286)=>{const _0x2c2351=new WorkflowPullCommand(),_0x473fc8=program['opts'](),_0x190304=await createTDXInstance(_0x473fc8),_0x4d7751=await _0x2c2351['run']({'options':{..._0x473fc8,..._0x2b1286},'args':_0x77f0cd?[_0x39c327,_0x77f0cd]:[_0x39c327],'tdx':_0x190304});gracefulExit(_0x4d7751);}),workflowCmd['command'](a2_0x37aff4(0x1e9))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3f2))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x254),a2_0x37aff4(0x166))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x41f))['option'](a2_0x37aff4(0x2f0),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x37aff4(0x3c2)]('--backfill',a2_0x37aff4(0x241))[a2_0x37aff4(0x43c)](async(_0x488ac3,_0x4bf381)=>{const _0x4c3fd2=a2_0x37aff4,_0x356fb7=new WorkflowPushCommand(),_0x22e1d7=program[_0x4c3fd2(0x2cc)](),_0x1c3451=await createTDXInstance(_0x22e1d7),_0x597305=await _0x356fb7[_0x4c3fd2(0x44f)]({'options':{..._0x22e1d7,..._0x4bf381},'args':_0x488ac3?[_0x488ac3]:[],'tdx':_0x1c3451});gracefulExit(_0x597305);}),workflowCmd[a2_0x37aff4(0x479)]('upload\x20[project-name-or-dir]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x172))['option'](a2_0x37aff4(0x452),a2_0x37aff4(0x226))['option'](a2_0x37aff4(0x254),a2_0x37aff4(0x365))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2f0),a2_0x37aff4(0x29a))['action'](async(_0x139e17,_0x54c1c0)=>{const _0x32468c=a2_0x37aff4,_0x4e06cf=new WorkflowUploadCommand(),_0xf8be61=program[_0x32468c(0x2cc)](),_0x56158f=await createTDXInstance(_0xf8be61),_0x40456f=await _0x4e06cf[_0x32468c(0x44f)]({'options':{..._0xf8be61,..._0x54c1c0},'args':_0x139e17?[_0x139e17]:[],'tdx':_0x56158f});gracefulExit(_0x40456f);}),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x19b))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x40b))['option']('--name\x20<name>',a2_0x37aff4(0x296))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x254),a2_0x37aff4(0x166))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x330))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2f0),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x37aff4(0x43c)](async(_0x2eb1eb,_0x5f1584)=>{const _0x129138=a2_0x37aff4,_0x519d6f=new WorkflowCloneCommand(),_0x2f319f=program[_0x129138(0x2cc)](),_0x329536=await createTDXInstance(_0x2f319f),_0x581c7a=await _0x519d6f[_0x129138(0x44f)]({'options':{..._0x2f319f,..._0x5f1584},'args':_0x2eb1eb?[_0x2eb1eb]:[],'tdx':_0x329536});gracefulExit(_0x581c7a);}),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x34f))['description'](a2_0x37aff4(0x3ad))[a2_0x37aff4(0x43c)](async(_0x4f1ee0,_0x292017)=>{const _0x58a45d=a2_0x37aff4,_0x455496=new WorkflowDeleteCommand(),_0x444611=program[_0x58a45d(0x2cc)](),_0x338031=await createTDXInstance(_0x444611),_0x22b692=await _0x455496[_0x58a45d(0x44f)]({'options':{..._0x444611,..._0x292017},'args':[_0x4f1ee0],'tdx':_0x338031});gracefulExit(_0x22b692);}),workflowCmd['command'](a2_0x37aff4(0x224))['description'](a2_0x37aff4(0x431))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1b5),a2_0x37aff4(0x33e))[a2_0x37aff4(0x43c)](async(_0x3b21d5,_0x83f157)=>{const _0x389df9=a2_0x37aff4,_0x48de4d=new WorkflowUseCommand(),_0x426267=program[_0x389df9(0x2cc)](),_0x98fee2=await createTDXInstance(_0x426267),_0xf9952d=await _0x48de4d['run']({'options':{..._0x426267,..._0x83f157},'args':_0x3b21d5?[_0x3b21d5]:[],'tdx':_0x98fee2});gracefulExit(_0xf9952d);});const wfSecretsCmd=workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x185))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x468));wfSecretsCmd[a2_0x37aff4(0x479)]('list\x20[project]')['description'](a2_0x37aff4(0x335))[a2_0x37aff4(0x43c)](async(_0x3ccfaf,_0x3bdc93)=>{const _0x5a4824=a2_0x37aff4,_0x40291e=new WorkflowSecretsListCommand(),_0x34393c=program['opts'](),_0x58ca9c=await createTDXInstance(_0x34393c),_0x42537e=await _0x40291e[_0x5a4824(0x44f)]({'options':{..._0x34393c,..._0x3bdc93},'args':_0x3ccfaf?[_0x3ccfaf]:[],'tdx':_0x58ca9c});gracefulExit(_0x42537e);}),wfSecretsCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x31c))[a2_0x37aff4(0x2c0)]('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')[a2_0x37aff4(0x43c)](async(_0x7828dd,_0x4251c7)=>{const _0x5b100b=a2_0x37aff4,_0x41d2fa=new WorkflowSecretsSetCommand(),_0x48b6f7=program[_0x5b100b(0x2cc)](),_0x582a0d=await createTDXInstance(_0x48b6f7),_0x4b6691=await _0x41d2fa[_0x5b100b(0x44f)]({'options':{..._0x48b6f7,..._0x4251c7},'args':_0x7828dd,'tdx':_0x582a0d});gracefulExit(_0x4b6691);}),wfSecretsCmd[a2_0x37aff4(0x479)]('delete\x20<args...>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x21d))[a2_0x37aff4(0x43c)](async(_0x511a25,_0x2d700e)=>{const _0x12e1e0=new WorkflowSecretsDeleteCommand(),_0x2c5906=program['opts'](),_0x42f4e4=await createTDXInstance(_0x2c5906),_0xc1cd11=await _0x12e1e0['run']({'options':{..._0x2c5906,..._0x2d700e},'args':_0x511a25,'tdx':_0x42f4e4});gracefulExit(_0xc1cd11);});const wfScheduleCmd=workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d5))[a2_0x37aff4(0x2c0)]('Manage\x20workflow\x20schedules\x20(enable/disable)');wfScheduleCmd[a2_0x37aff4(0x479)]('enable\x20<id>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x46e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1c0),a2_0x37aff4(0x241))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2e6),a2_0x37aff4(0x2ea))[a2_0x37aff4(0x43c)](async(_0x440f21,_0x75915)=>{const _0x342623=new WorkflowScheduleEnableCommand(),_0x57fa26=program['opts'](),_0x252308=await createTDXInstance(_0x57fa26),_0x21fe6d=await _0x342623['run']({'options':{..._0x57fa26,..._0x75915},'args':[_0x440f21],'tdx':_0x252308});gracefulExit(_0x21fe6d);}),wfScheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x36b))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x22d))[a2_0x37aff4(0x43c)](async(_0x5e4abe,_0x172014)=>{const _0x1b2e08=a2_0x37aff4,_0x2207ab=new WorkflowScheduleDisableCommand(),_0x4d16da=program['opts'](),_0x1cf61d=await createTDXInstance(_0x4d16da),_0x5ec9d6=await _0x2207ab[_0x1b2e08(0x44f)]({'options':{..._0x4d16da,..._0x172014},'args':[_0x5e4abe],'tdx':_0x1cf61d});gracefulExit(_0x5ec9d6);});const wfSchedulesListAction=async(_0x41164e,_0x242134)=>{const _0x5acce8=a2_0x37aff4,_0x26a416=new WorkflowSchedulesCommand(),_0x346e3b=program[_0x5acce8(0x2cc)](),_0x3b82df=await createTDXInstance(_0x346e3b),_0x132a49=await _0x26a416[_0x5acce8(0x44f)]({'options':{..._0x346e3b,..._0x242134},'args':_0x41164e?[_0x41164e]:[],'tdx':_0x3b82df});gracefulExit(_0x132a49);};wfScheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x35e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x28d))['option'](a2_0x37aff4(0x1fb),a2_0x37aff4(0x3fd))['action'](wfSchedulesListAction),workflowCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x225))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x212))[a2_0x37aff4(0x3c2)]('--schedule-id\x20<id>','Show\x20a\x20single\x20schedule\x20by\x20its\x20ID')[a2_0x37aff4(0x43c)](wfSchedulesListAction);const jobCmd=program['command'](a2_0x37aff4(0x389))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3d0)),jobListAction=async _0x272711=>{const _0x23d7d5=a2_0x37aff4,_0x16eebe=new JobListCommand(),_0x13a72a=program['opts'](),_0x49079a=await createTDXInstance(_0x13a72a),_0x4d9284=await _0x16eebe[_0x23d7d5(0x44f)]({'options':{..._0x13a72a,..._0x272711},'args':[],'tdx':_0x49079a});gracefulExit(_0x4d9284);};jobCmd[a2_0x37aff4(0x479)]('list')['description'](a2_0x37aff4(0x45a))['option']('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x37aff4(0x43c)](jobListAction),program['command'](a2_0x37aff4(0x1a4),{'hidden':!![]})['description']('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x27c),a2_0x37aff4(0x3b3))[a2_0x37aff4(0x43c)](jobListAction),jobCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x27e))['description'](a2_0x37aff4(0x3dd))[a2_0x37aff4(0x43c)](async(_0x204786,_0x14700d)=>{const _0x16bef6=a2_0x37aff4,_0x36f742=new JobShowCommand(),_0x3cc3fe=program['opts'](),_0x135f8f=await createTDXInstance(_0x3cc3fe),_0x50819b=await _0x36f742[_0x16bef6(0x44f)]({'options':{..._0x3cc3fe,..._0x14700d},'args':[_0x204786],'tdx':_0x135f8f});gracefulExit(_0x50819b);}),jobCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x18d))[a2_0x37aff4(0x2c0)]('Kill\x20a\x20job')[a2_0x37aff4(0x43c)](async(_0x306644,_0x11c644)=>{const _0x1523fb=a2_0x37aff4,_0x53e42b=new JobKillCommand(),_0x2a74a0=program[_0x1523fb(0x2cc)](),_0x2c6ed6=await createTDXInstance(_0x2a74a0),_0x140c3b=await _0x53e42b[_0x1523fb(0x44f)]({'options':{..._0x2a74a0,..._0x11c644},'args':[_0x306644],'tdx':_0x2c6ed6});gracefulExit(_0x140c3b);}),jobCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x316))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x48d))['option'](a2_0x37aff4(0x240),a2_0x37aff4(0x385),a2_0x37aff4(0x439))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x307),a2_0x37aff4(0x271))[a2_0x37aff4(0x3c2)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x37aff4(0x3b0))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1c9),a2_0x37aff4(0x413))[a2_0x37aff4(0x43c)](async(_0x55bf84,_0x3ae0c0)=>{const _0x6e067f=a2_0x37aff4,_0x553af8=new JobSubmitCommand(),_0x8de155=program[_0x6e067f(0x2cc)](),_0x1d1e8c=await createTDXInstance(_0x8de155),_0x30a1db=await _0x553af8[_0x6e067f(0x44f)]({'options':{..._0x8de155,..._0x3ae0c0},'args':_0x55bf84?[_0x55bf84]:[],'tdx':_0x1d1e8c});gracefulExit(_0x30a1db);}),jobCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1bb))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x426))[a2_0x37aff4(0x43c)](async(_0x5dfa08,_0x16e729)=>{const _0xea6690=a2_0x37aff4,_0x2a9003=new JobResultCommand(),_0x3df368=program[_0xea6690(0x2cc)](),_0x58e357=await createTDXInstance(_0x3df368),_0x3eb1ee=await _0x2a9003[_0xea6690(0x44f)]({'options':{..._0x3df368,..._0x16e729},'args':[_0x5dfa08],'tdx':_0x58e357});gracefulExit(_0x3eb1ee);});const scheduleCmd=jobCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d5))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x4ab));scheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3d8))[a2_0x37aff4(0x43c)](async(_0x29acbe,_0x29b319)=>{const _0x233209=a2_0x37aff4,_0xc7b395=new ScheduleListCommand(),_0x4d0121=program[_0x233209(0x2cc)](),_0x9eafcb=await createTDXInstance(_0x4d0121),_0x7d414c=await _0xc7b395[_0x233209(0x44f)]({'options':{..._0x4d0121,..._0x29b319},'args':_0x29acbe?[_0x29acbe]:[],'tdx':_0x9eafcb});gracefulExit(_0x7d414c);}),scheduleCmd[a2_0x37aff4(0x479)]('show\x20<name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x228))['action'](async(_0x5529af,_0x21f056)=>{const _0x5aa63b=a2_0x37aff4,_0x926ca0=new ScheduleShowCommand(),_0x336bbe=program[_0x5aa63b(0x2cc)](),_0x835204=await createTDXInstance(_0x336bbe),_0x4ee9e6=await _0x926ca0[_0x5aa63b(0x44f)]({'options':{..._0x336bbe,..._0x21f056},'args':[_0x5529af],'tdx':_0x835204});gracefulExit(_0x4ee9e6);}),scheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b7))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x273))['option']('-d,\x20--database\x20<db>','Database\x20name\x20(required)')[a2_0x37aff4(0x3c2)]('--in\x20<db>',a2_0x37aff4(0x25e))[a2_0x37aff4(0x418)](a2_0x37aff4(0x307),a2_0x37aff4(0x271))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23f),a2_0x37aff4(0x26e),a2_0x37aff4(0x439))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x421),'Cron\x20expression\x20for\x20scheduling')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a3),a2_0x37aff4(0x4a1))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x48c),a2_0x37aff4(0x373))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x423),a2_0x37aff4(0x404))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x364),a2_0x37aff4(0x438))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1a0),a2_0x37aff4(0x347))['option'](a2_0x37aff4(0x429),a2_0x37aff4(0x23e))[a2_0x37aff4(0x43c)](async(_0x37da30,_0x4533ab)=>{const _0x393b0f=a2_0x37aff4,_0x2e66d7=new ScheduleCreateCommand(),_0x4a8fa0=program[_0x393b0f(0x2cc)](),_0x4ed0ab=await createTDXInstance(_0x4a8fa0);_0x4533ab['in']&&(_0x4533ab[_0x393b0f(0x325)]=_0x4533ab['in']);const _0x2c9b93=await _0x2e66d7['run']({'options':{..._0x4a8fa0,..._0x4533ab},'args':[_0x37da30],'tdx':_0x4ed0ab});gracefulExit(_0x2c9b93);}),scheduleCmd['command']('update\x20<name>')[a2_0x37aff4(0x2c0)]('Update\x20a\x20scheduled\x20query')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x187),'Database\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x218),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x37aff4(0x3c2)]('-f,\x20--file\x20<path>',a2_0x37aff4(0x271))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23f),a2_0x37aff4(0x26e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x421),a2_0x37aff4(0x322))['option']('--timezone\x20<tz>',a2_0x37aff4(0x276))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x48c),a2_0x37aff4(0x373))[a2_0x37aff4(0x3c2)]('--priority\x20<-2~2>',a2_0x37aff4(0x404))['option'](a2_0x37aff4(0x364),a2_0x37aff4(0x438))['option'](a2_0x37aff4(0x1a0),a2_0x37aff4(0x347))['option'](a2_0x37aff4(0x429),a2_0x37aff4(0x23e))[a2_0x37aff4(0x43c)](async(_0x2633fb,_0x46a16e)=>{const _0x210bf1=a2_0x37aff4,_0xfda0e4=new ScheduleUpdateCommand(),_0x281a63=program['opts'](),_0x42a57e=await createTDXInstance(_0x281a63);_0x46a16e['in']&&(_0x46a16e[_0x210bf1(0x325)]=_0x46a16e['in']);const _0x1c3750=await _0xfda0e4['run']({'options':{..._0x281a63,..._0x46a16e},'args':[_0x2633fb],'tdx':_0x42a57e});gracefulExit(_0x1c3750);}),scheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d4))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x301))[a2_0x37aff4(0x43c)](async(_0x19c632,_0x37bb8a)=>{const _0x56bed0=a2_0x37aff4,_0x52f2fb=new ScheduleDeleteCommand(),_0x2ff7fd=program[_0x56bed0(0x2cc)](),_0x288ecf=await createTDXInstance(_0x2ff7fd),_0x512b3d=await _0x52f2fb[_0x56bed0(0x44f)]({'options':{..._0x2ff7fd,..._0x37bb8a},'args':[_0x19c632],'tdx':_0x288ecf});gracefulExit(_0x512b3d);}),scheduleCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x24a))['description']('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x37aff4(0x3c2)]('--time\x20<iso8601>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x174),a2_0x37aff4(0x3c7))[a2_0x37aff4(0x43c)](async(_0x439276,_0x3d53cc)=>{const _0x33f437=a2_0x37aff4,_0x1a86a5=new ScheduleRunCommand(),_0x553246=program['opts'](),_0x6f0add=await createTDXInstance(_0x553246),_0x2c7ccb=await _0x1a86a5[_0x33f437(0x44f)]({'options':{..._0x553246,..._0x3d53cc},'args':[_0x439276],'tdx':_0x6f0add});gracefulExit(_0x2c7ccb);}),scheduleCmd['command']('history\x20<name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x410))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x352),a2_0x37aff4(0x43a))[a2_0x37aff4(0x3c2)]('--to\x20<n>',a2_0x37aff4(0x2fb))['action'](async(_0x596f21,_0x46947b)=>{const _0x38bfdc=a2_0x37aff4,_0x42b25d=new ScheduleHistoryCommand(),_0x55806a=program[_0x38bfdc(0x2cc)](),_0xfbf648=await createTDXInstance(_0x55806a),_0x3728dc=await _0x42b25d[_0x38bfdc(0x44f)]({'options':{..._0x55806a,..._0x46947b},'args':[_0x596f21],'tdx':_0xfbf648});gracefulExit(_0x3728dc);});const llmCmd=program['command'](a2_0x37aff4(0x261))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x349));llmCmd[a2_0x37aff4(0x479)]('use\x20<project-name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x474))['action'](async(_0x340f32,_0x1a0f77)=>{const _0x1f75a0=a2_0x37aff4,_0xec2e09=new LLMUseCommand(),_0x33871a=program['opts'](),_0x17f997=await createTDXInstance(_0x33871a),_0x1723ef=await _0xec2e09[_0x1f75a0(0x44f)]({'options':{..._0x33871a,..._0x1a0f77},'args':[_0x340f32],'tdx':_0x17f997});gracefulExit(_0x1723ef);}),llmCmd['command'](a2_0x37aff4(0x2c3))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x43b))[a2_0x37aff4(0x43c)](async _0x2c0447=>{const _0x1ac22a=a2_0x37aff4,_0x1363a8=new LLMModelsCommand(),_0xbc242c=program[_0x1ac22a(0x2cc)](),_0x5f2f67=await createTDXInstance(_0xbc242c),_0x285482=await _0x1363a8['run']({'options':{..._0xbc242c,..._0x2c0447},'args':[],'tdx':_0x5f2f67});gracefulExit(_0x285482);});const projectCmd=llmCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x382))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1e1)),llmProjectListAction=async(_0x313c27,_0x205a32)=>{const _0x54b83d=a2_0x37aff4,_0x820d85=new LLMProjectsCommand(),_0x4f1811=program[_0x54b83d(0x2cc)](),_0x44a37e=await createTDXInstance(_0x4f1811),_0x176336=await _0x820d85['run']({'options':{..._0x4f1811,..._0x205a32},'args':_0x313c27?[_0x313c27]:[],'tdx':_0x44a37e});gracefulExit(_0x176336);};projectCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2e9))[a2_0x37aff4(0x43c)](llmProjectListAction),llmCmd[a2_0x37aff4(0x479)]('projects\x20[pattern]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x24b))[a2_0x37aff4(0x43c)](llmProjectListAction),projectCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b7))['description'](a2_0x37aff4(0x313))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),'Project\x20description')[a2_0x37aff4(0x43c)](async(_0x90e0c7,_0x2b2807)=>{const _0x288ef5=a2_0x37aff4,_0x32c2c7=new LLMProjectCreateCommand(),_0xf5babf=program[_0x288ef5(0x2cc)](),_0x4cc145=await createTDXInstance(_0xf5babf),_0x118ed2=await _0x32c2c7[_0x288ef5(0x44f)]({'options':{..._0xf5babf,..._0x2b2807},'args':[_0x90e0c7],'tdx':_0x4cc145});gracefulExit(_0x118ed2);}),projectCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d4))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x33c))['action'](async(_0x15f3ff,_0x30c934)=>{const _0x311505=a2_0x37aff4,_0x3de190=new LLMProjectDeleteCommand(),_0xcead96=program[_0x311505(0x2cc)](),_0x10fc49=await createTDXInstance(_0xcead96),_0x2ec356=await _0x3de190[_0x311505(0x44f)]({'options':{..._0xcead96,..._0x30c934},'args':[_0x15f3ff],'tdx':_0x10fc49});gracefulExit(_0x2ec356);}),projectCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x198))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x453))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3ea),a2_0x37aff4(0x299))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x37aff4(0x43c)](async(_0x34b4cf,_0x2cb204)=>{const _0x3c2a5d=a2_0x37aff4,_0x2095d3=new LLMProjectBackupCommand(),_0x418e71=program[_0x3c2a5d(0x2cc)](),_0x56f312=await createTDXInstance(_0x418e71),_0x20fdd1=await _0x2095d3[_0x3c2a5d(0x44f)]({'options':{..._0x418e71,..._0x2cb204},'args':[_0x34b4cf],'tdx':_0x56f312});gracefulExit(_0x20fdd1);}),projectCmd[a2_0x37aff4(0x479)]('restore\x20<folder>')[a2_0x37aff4(0x2c0)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3c9),a2_0x37aff4(0x2da))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x207))[a2_0x37aff4(0x43c)](async(_0x8e9bd9,_0x226939)=>{const _0x397ad6=a2_0x37aff4,_0x171664=new LLMProjectRestoreCommand(),_0xd342c7=program[_0x397ad6(0x2cc)](),_0x361a1a=await createTDXInstance(_0xd342c7),_0x3d9b84=await _0x171664[_0x397ad6(0x44f)]({'options':{..._0xd342c7,..._0x226939},'args':[_0x8e9bd9],'tdx':_0x361a1a});gracefulExit(_0x3d9b84);});const llmAgentListAction=async(_0x57923e,_0x13dc58)=>{const _0x56acf2=a2_0x37aff4,_0x4ab426=new LLMAgentsCommand(),_0x5281a8=program[_0x56acf2(0x2cc)](),_0x4a8b18=await createTDXInstance(_0x5281a8),_0x5f102f=await _0x4ab426[_0x56acf2(0x44f)]({'options':{..._0x5281a8,..._0x13dc58},'args':_0x57923e?[_0x57923e]:[],'tdx':_0x4a8b18});gracefulExit(_0x5f102f);};llmCmd['command'](a2_0x37aff4(0x366))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3cc))[a2_0x37aff4(0x43c)](llmAgentListAction),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x366))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3cc))[a2_0x37aff4(0x43c)](llmAgentListAction),llmCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ed))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x377))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1b9),a2_0x37aff4(0x2a8))[a2_0x37aff4(0x43c)](async(_0x1cf85e,_0x2fb22b)=>{const _0x52860a=a2_0x37aff4,_0x1d82c7=new LLMHistoryCommand(),_0x2f4847=program['opts'](),_0x46e058=await createTDXInstance(_0x2f4847),_0x8834cb=await _0x1d82c7[_0x52860a(0x44f)]({'options':{..._0x2f4847,..._0x2fb22b},'args':_0x1cf85e?[_0x1cf85e]:[],'tdx':_0x46e058});gracefulExit(_0x8834cb);});isExperimentalAvailable()&&llmCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2c4))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3f1))[a2_0x37aff4(0x43c)](async(_0x94e771,_0x4197de)=>{const _0x51e654=a2_0x37aff4,_0x4ed32d=new LLMLogCommand(),_0x110d9e=program['opts'](),_0x5e2091=await createTDXInstance(_0x110d9e),_0x5cb3ee=await _0x4ed32d[_0x51e654(0x44f)]({'options':{..._0x110d9e,..._0x4197de},'args':[_0x94e771],'tdx':_0x5e2091});gracefulExit(_0x5cb3ee);});program[a2_0x37aff4(0x479)]('claude\x20[args...]')[a2_0x37aff4(0x2a4)](a2_0x37aff4(0x2b2))['description'](a2_0x37aff4(0x3bc))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1b1),a2_0x37aff4(0x1a6))[a2_0x37aff4(0x3c2)]('-r,\x20--resume',a2_0x37aff4(0x235))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1b8),a2_0x37aff4(0x437))[a2_0x37aff4(0x17c)]()[a2_0x37aff4(0x180)](!![])[a2_0x37aff4(0x289)]('after',a2_0x37aff4(0x484))[a2_0x37aff4(0x43c)](async(_0x45a34f,_0x80e17a)=>{const _0x5849d0=a2_0x37aff4,_0x325d99=program['opts'](),_0x4f6e33=Array['isArray'](_0x45a34f)?_0x45a34f:[];if(_0x4f6e33[0x0]===_0x5849d0(0x3b8)){const _0x20b90d=new ClaudeStatuslineCommand(),_0x49c0cb=await _0x20b90d[_0x5849d0(0x44f)]({'options':{..._0x325d99,..._0x80e17a},'args':_0x4f6e33['slice'](0x1),'tdx':null});gracefulExit(_0x49c0cb);}if(_0x4f6e33[0x0]==='usage'){const _0x17ac08=new ClaudeUsageCommand(),_0x35bed6=await _0x17ac08[_0x5849d0(0x44f)]({'options':{..._0x325d99,..._0x80e17a},'args':_0x4f6e33[_0x5849d0(0x45d)](0x1),'tdx':null});gracefulExit(_0x35bed6);}const _0x4f4942=new ClaudeCommand(),_0x4ba314=await createTDXInstance(_0x325d99),_0x425a02=await _0x4f4942[_0x5849d0(0x44f)]({'options':{..._0x325d99,..._0x80e17a},'args':_0x4f6e33,'tdx':_0x4ba314});gracefulExit(_0x425a02);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x3bd))['description'](a2_0x37aff4(0x2ba))['option']('--clear','Clear\x20session\x20context')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1cc),a2_0x37aff4(0x3ec))[a2_0x37aff4(0x43c)](async(_0xb12ecf,_0x2d151a,_0x5a38f7)=>{const _0x427e15=a2_0x37aff4,_0x45088c=new UseCommand(),_0x19b93a=program['opts'](),_0x81d148=[];if(_0xb12ecf)_0x81d148['push'](_0xb12ecf);if(_0x2d151a)_0x81d148['push'](_0x2d151a);const _0x30eea0=_0xb12ecf===_0x427e15(0x28a),_0x38d6de=_0x30eea0?await createTDXInstance(_0x19b93a):null,_0x4500e1=await _0x45088c[_0x427e15(0x44f)]({'options':{..._0x19b93a,..._0x5a38f7},'args':_0x81d148,'tdx':_0x38d6de});gracefulExit(_0x4500e1);}),program[a2_0x37aff4(0x479)]('status')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x356))['action'](async _0x3ee63c=>{const _0x125bea=a2_0x37aff4,_0x52c155=new StatusCommand(),_0x21f19c=program['opts'](),_0x3a972a=await createTDXInstance(_0x21f19c),_0xa9138=await _0x52c155[_0x125bea(0x44f)]({'options':{..._0x21f19c,..._0x3ee63c},'args':[],'tdx':_0x3a972a});gracefulExit(_0xa9138);}),program['command'](a2_0x37aff4(0x309))[a2_0x37aff4(0x2c0)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x18e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x184),'Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel')['option'](a2_0x37aff4(0x16e),'Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)')[a2_0x37aff4(0x43c)](async(_0x5f0f2b,_0x2e4fba)=>{const _0x522356=a2_0x37aff4,_0x92ce0=new UpgradeCommand(),_0x446a9b=program[_0x522356(0x2cc)](),_0x2f4332=await _0x92ce0[_0x522356(0x44f)]({'options':{..._0x446a9b,..._0x2e4fba},'args':_0x5f0f2b?[_0x5f0f2b]:[],'tdx':null});gracefulExit(_0x2f4332);}),program[a2_0x37aff4(0x479)]('unset\x20<resource>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x26a))['option'](a2_0x37aff4(0x1cc),a2_0x37aff4(0x1c8))[a2_0x37aff4(0x43c)](async(_0x2234f2,_0x4c09b3)=>{const _0x40ee51=a2_0x37aff4,_0x23b463=new UnsetCommand(),_0xed57e6=program[_0x40ee51(0x2cc)](),_0x356409=await _0x23b463['run']({'options':{..._0xed57e6,..._0x4c09b3},'args':[_0x2234f2],'tdx':null});gracefulExit(_0x356409);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x399))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1e8))[a2_0x37aff4(0x3c2)]('--last',a2_0x37aff4(0x482))[a2_0x37aff4(0x43c)](async _0x56a5a7=>{const _0x1ee75b=a2_0x37aff4,_0x3afce7=new ChatsCommand(),_0x22bd00=program[_0x1ee75b(0x2cc)](),_0x199d19=await createTDXInstance(_0x22bd00),_0x381ef3=await _0x3afce7[_0x1ee75b(0x44f)]({'options':{..._0x22bd00,..._0x56a5a7},'args':[],'tdx':_0x199d19});gracefulExit(_0x381ef3);});const authCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x3e9))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x18c));async function runAuthStatusCommand(_0xd35bf4){const _0xf5b6b3=a2_0x37aff4,_0x5a3cd5=new AuthStatusCommand(),_0x8038f6=program['opts'](),_0x5db3bc=await createTDXInstance(_0x8038f6),_0x4e252e=await _0x5a3cd5[_0xf5b6b3(0x44f)]({'options':{..._0x8038f6,..._0xd35bf4},'args':[],'tdx':_0x5db3bc});gracefulExit(_0x4e252e);}authCmd[a2_0x37aff4(0x43c)](runAuthStatusCommand),authCmd[a2_0x37aff4(0x479)]('status')['description'](a2_0x37aff4(0x256))[a2_0x37aff4(0x43c)](runAuthStatusCommand);async function authSetupAction(_0x5adbd0){const _0x542fcd=a2_0x37aff4,_0x1ff59e=new AuthSetupCommand(),_0x379262=program[_0x542fcd(0x2cc)](),_0xabfc60=await createTDXInstance(_0x379262),_0x2d9a87=await _0x1ff59e['run']({'options':{..._0x379262,..._0x5adbd0},'args':[],'tdx':_0xabfc60});gracefulExit(_0x2d9a87);}authCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x30a))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x15e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a4),a2_0x37aff4(0x171))[a2_0x37aff4(0x289)]('after',a2_0x37aff4(0x264))[a2_0x37aff4(0x43c)](authSetupAction),authCmd[a2_0x37aff4(0x479)]('login',{'hidden':!![]})[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a4),a2_0x37aff4(0x171))['action'](authSetupAction),authCmd['command'](a2_0x37aff4(0x308))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x18a))[a2_0x37aff4(0x289)](a2_0x37aff4(0x31b),'\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')['action'](async _0x4b9a6c=>{const _0x3b9129=new AuthClearCommand(),_0x5a5055=program['opts'](),_0x2b8384=await _0x3b9129['run']({'options':{..._0x5a5055,..._0x4b9a6c},'args':[],'tdx':null});gracefulExit(_0x2b8384);});const userCmd=program[a2_0x37aff4(0x479)]('user')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1f5)),userListAction=async _0x395ab0=>{const _0x42d2bd=a2_0x37aff4,_0x2559cc=new UserListCommand(),_0x3da07f=program[_0x42d2bd(0x2cc)](),_0x5901b1=await createTDXInstance(_0x3da07f),_0x52848d=await _0x2559cc[_0x42d2bd(0x44f)]({'options':{..._0x3da07f,..._0x395ab0},'args':[],'tdx':_0x5901b1});gracefulExit(_0x52848d);};userCmd[a2_0x37aff4(0x43c)](async _0x117fe2=>{const _0x5dbb07=a2_0x37aff4,_0xe1a12f=new UserCommand(),_0x5a7b88=program[_0x5dbb07(0x2cc)](),_0x396d85=await createTDXInstance(_0x5a7b88),_0x504360=await _0xe1a12f[_0x5dbb07(0x44f)]({'options':{..._0x5a7b88,..._0x117fe2},'args':[],'tdx':_0x396d85});gracefulExit(_0x504360);}),userCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x35a))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x191))[a2_0x37aff4(0x43c)](userListAction),program['command'](a2_0x37aff4(0x25b))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x44b))['action'](userListAction);const policyCmd=program[a2_0x37aff4(0x479)]('policy')[a2_0x37aff4(0x2c0)]('Access\x20control\x20policy\x20commands');policyCmd['action'](async _0x2638f7=>{const _0xf76131=a2_0x37aff4,_0x574969=new PolicyCommand(),_0x2161fe=program['opts'](),_0x909383=await createTDXInstance(_0x2161fe),_0x561dcd=await _0x574969[_0xf76131(0x44f)]({'options':{..._0x2161fe,..._0x2638f7},'args':[],'tdx':_0x909383});gracefulExit(_0x561dcd);}),policyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x35a))[a2_0x37aff4(0x2c0)]('List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)')[a2_0x37aff4(0x43c)](async _0x13edca=>{const _0x465023=a2_0x37aff4,_0x2901c1=new PolicyListCommand(),_0x5f583c=program[_0x465023(0x2cc)](),_0x53a0d5=await createTDXInstance(_0x5f583c),_0x39daf9=await _0x2901c1[_0x465023(0x44f)]({'options':{..._0x5f583c,..._0x13edca},'args':[],'tdx':_0x53a0d5});gracefulExit(_0x39daf9);}),policyCmd[a2_0x37aff4(0x479)]('show\x20<policy>')['description'](a2_0x37aff4(0x178))[a2_0x37aff4(0x43c)](async(_0xda2efd,_0x2057d6)=>{const _0x10de9a=a2_0x37aff4,_0x5eb370=new PolicyShowCommand(),_0x3c2ef2=program[_0x10de9a(0x2cc)](),_0x3e6d1c=await createTDXInstance(_0x3c2ef2),_0x5e15d2=await _0x5eb370[_0x10de9a(0x44f)]({'options':{..._0x3c2ef2,..._0x2057d6},'args':[_0xda2efd],'tdx':_0x3e6d1c});gracefulExit(_0x5e15d2);}),program['command'](a2_0x37aff4(0x39e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3c0))[a2_0x37aff4(0x43c)](async _0x2b1517=>{const _0x5591d3=a2_0x37aff4,_0x31bf91=new ProfilesCommand(),_0xe6198f=program[_0x5591d3(0x2cc)](),_0x4e26e8=await _0x31bf91[_0x5591d3(0x44f)]({'options':{..._0xe6198f,..._0x2b1517},'args':[],'tdx':null});gracefulExit(_0x4e26e8);});const profileCmd=program[a2_0x37aff4(0x479)]('profile')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2a6));profileCmd['action'](()=>{const _0x32a822=a2_0x37aff4;profileCmd[_0x32a822(0x237)]();});const profileListAction=async _0x457744=>{const _0x153b09=a2_0x37aff4,_0x4a2500=new ProfilesCommand(),_0x2050fa=program['opts'](),_0x1ff186=await _0x4a2500[_0x153b09(0x44f)]({'options':{..._0x2050fa,..._0x457744},'args':[],'tdx':null});gracefulExit(_0x1ff186);};profileCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x35a))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3c0))[a2_0x37aff4(0x43c)](profileListAction),profileCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x15b))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x456))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a4),a2_0x37aff4(0x171))[a2_0x37aff4(0x3c2)]('-f,\x20--force',a2_0x37aff4(0x1af))[a2_0x37aff4(0x289)](a2_0x37aff4(0x31b),a2_0x37aff4(0x1ea))[a2_0x37aff4(0x43c)](async(_0x12a472,_0x4a1c63)=>{const _0xaf7b71=a2_0x37aff4,_0x237e8b=new ProfileCreateCommand(),_0x32376b=program[_0xaf7b71(0x2cc)](),_0x4b62b4=await _0x237e8b['run']({'options':{..._0x32376b,..._0x4a1c63},'args':_0x12a472?[_0x12a472]:[],'tdx':null});gracefulExit(_0x4b62b4);});async function profileDeleteAction(_0x145252,_0x57465f){const _0x4ecdc3=a2_0x37aff4,_0x104011=new ProfileDeleteCommand(),_0x12d75a=program['opts'](),_0x953ae3=await _0x104011[_0x4ecdc3(0x44f)]({'options':{..._0x12d75a,..._0x57465f},'args':[_0x145252],'tdx':null});gracefulExit(_0x953ae3);}profileCmd['command']('delete\x20<name>')['description'](a2_0x37aff4(0x28b))[a2_0x37aff4(0x289)](a2_0x37aff4(0x31b),a2_0x37aff4(0x3d7))['action'](profileDeleteAction),profileCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3cb),{'hidden':!![]})[a2_0x37aff4(0x43c)](profileDeleteAction),profileCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x27a))[a2_0x37aff4(0x2c0)]('Set\x20a\x20profile\x20configuration\x20value')['addHelpText'](a2_0x37aff4(0x31b),'\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')['action'](async(_0xec9400,_0x303cd0)=>{const _0x221655=a2_0x37aff4,_0x29b4f5=new ProfileSetCommand(),_0x9529fd=program[_0x221655(0x2cc)](),_0x1a5ff8=await _0x29b4f5['run']({'options':{..._0x9529fd,..._0x303cd0},'args':[_0xec9400],'tdx':null});gracefulExit(_0x1a5ff8);}),profileCmd['command']('use\x20<name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x414))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1cc),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x37aff4(0x289)](a2_0x37aff4(0x31b),a2_0x37aff4(0x20e))[a2_0x37aff4(0x43c)](async(_0x5b052f,_0x1af924)=>{const _0x19bb48=a2_0x37aff4,_0x547bb2=new ProfileUseCommand(),_0x557045=program['opts'](),_0x584c7f=await _0x547bb2[_0x19bb48(0x44f)]({'options':{..._0x557045,..._0x1af924},'args':[_0x5b052f],'tdx':null});gracefulExit(_0x584c7f);});const engageCmd=program[a2_0x37aff4(0x479)]('engage')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x351)),createEngageAction=_0x43055e=>{return async(_0x60896a,_0x4bec77)=>{const _0x2515cb=a2_0x150a,_0x11898d=new _0x43055e(),_0x41cced=program[_0x2515cb(0x2cc)](),_0x4c2852=await createTDXInstance(_0x41cced),_0x1baf0d=await _0x11898d[_0x2515cb(0x44f)]({'options':{..._0x41cced,..._0x4bec77},'args':[_0x60896a],'tdx':_0x4c2852});gracefulExit(_0x1baf0d);};},createEngageNoArgAction=_0x187ee9=>{return async _0x289c79=>{const _0x13d645=a2_0x150a,_0x1167f0=new _0x187ee9(),_0x39d0e1=program[_0x13d645(0x2cc)](),_0x4d9cff=await createTDXInstance(_0x39d0e1),_0x214412=await _0x1167f0[_0x13d645(0x44f)]({'options':{..._0x39d0e1,..._0x289c79},'args':[],'tdx':_0x4d9cff});gracefulExit(_0x214412);};},createEngageListAction=_0x9190eb=>{return async(_0x3fb055,_0x1e2f65)=>{const _0x5cbaea=a2_0x150a,_0x2628f8=new _0x9190eb(),_0x144255=program[_0x5cbaea(0x2cc)](),_0x4d62e5=await createTDXInstance(_0x144255),_0x1d3507=await _0x2628f8[_0x5cbaea(0x44f)]({'options':{..._0x144255,..._0x1e2f65},'args':_0x3fb055?[_0x3fb055]:[],'tdx':_0x4d62e5});gracefulExit(_0x1d3507);};},campaignCmd=engageCmd['command']('campaign')['description'](a2_0x37aff4(0x381));campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1d7))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23f),a2_0x37aff4(0x44e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x27c),a2_0x37aff4(0x192))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x37b))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x350))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23f),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x37aff4(0x3c2)]('--status\x20<status>',a2_0x37aff4(0x192))[a2_0x37aff4(0x3c2)]('--workspace\x20<name>',a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d6))['description'](a2_0x37aff4(0x285))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x3c2)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d0))[a2_0x37aff4(0x2c0)]('Create\x20a\x20new\x20campaign')[a2_0x37aff4(0x418)]('--name\x20<name>',a2_0x37aff4(0x30c))[a2_0x37aff4(0x418)](a2_0x37aff4(0x23f),a2_0x37aff4(0x176))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x3c2)]('--description\x20<desc>','Campaign\x20description')['option']('--segment\x20<path>',a2_0x37aff4(0x42f))['option'](a2_0x37aff4(0x248),a2_0x37aff4(0x3b4))[a2_0x37aff4(0x3c2)]('--json-columns\x20<cols>',a2_0x37aff4(0x159))[a2_0x37aff4(0x3c2)]('--start-at\x20<datetime>',a2_0x37aff4(0x477))['option'](a2_0x37aff4(0x4a3),a2_0x37aff4(0x2dc))[a2_0x37aff4(0x43c)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x37aff4(0x445))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x25c))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))['option'](a2_0x37aff4(0x452),a2_0x37aff4(0x1ab))['option'](a2_0x37aff4(0x209),a2_0x37aff4(0x425))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x297),a2_0x37aff4(0x42f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x248),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x37aff4(0x3c2)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x343),a2_0x37aff4(0x477))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a3),a2_0x37aff4(0x2dc))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x37aff4(0x38e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x193))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x26f),a2_0x37aff4(0x16b))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x37aff4(0x479)]('launch\x20<name-or-id>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x32a))['option'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x37aff4(0x2c0)]('Pause\x20a\x20campaign')[a2_0x37aff4(0x3c2)]('--workspace\x20<name>','Workspace\x20name')[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x342))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x284))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x37aff4(0x1be))['description'](a2_0x37aff4(0x3c5))['option'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x231))[a2_0x37aff4(0x2c0)]('Pull\x20campaigns\x20to\x20YAML\x20files')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')['option']('--name\x20<name>','Pull\x20specific\x20campaign\x20by\x20name')['option']('--type\x20<type>',a2_0x37aff4(0x44e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x37d))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x229))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2df))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x306))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x37aff4(0x479)]('validate\x20[target]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x48e))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x323),a2_0x37aff4(0x33b))[a2_0x37aff4(0x43c)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd['command'](a2_0x37aff4(0x3a7))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2e0));alwaysOnCampaignCmd[a2_0x37aff4(0x479)]('list\x20[pattern]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x497))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x23f),a2_0x37aff4(0x44e))[a2_0x37aff4(0x3c2)]('--status\x20<status>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x43c)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command']('always-on-campaigns\x20[pattern]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x427))['option']('--type\x20<type>',a2_0x37aff4(0x44e))['option'](a2_0x37aff4(0x27c),a2_0x37aff4(0x37e))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x43c)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d6))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x160))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x48a),a2_0x37aff4(0x486))[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d0))[a2_0x37aff4(0x2c0)]('Create\x20a\x20new\x20always-on\x20campaign')[a2_0x37aff4(0x418)](a2_0x37aff4(0x452),a2_0x37aff4(0x30c))[a2_0x37aff4(0x418)]('--type\x20<type>',a2_0x37aff4(0x176))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))['option'](a2_0x37aff4(0x209),'Campaign\x20description')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x297),'Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)')[a2_0x37aff4(0x3c2)]('--enable-utm-tracking',a2_0x37aff4(0x1c3))[a2_0x37aff4(0x43c)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd['command'](a2_0x37aff4(0x445))['description']('Update\x20an\x20always-on\x20campaign')[a2_0x37aff4(0x418)]('--workspace\x20<name>',a2_0x37aff4(0x29f))['option'](a2_0x37aff4(0x452),a2_0x37aff4(0x1ab))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x209),'Campaign\x20description')['option'](a2_0x37aff4(0x297),'Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x47d),'Enable\x20UTM\x20tracking')[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x38e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1c4))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))['option'](a2_0x37aff4(0x26f),'Skip\x20confirmation\x20prompt')[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x203))[a2_0x37aff4(0x2c0)]('Launch\x20an\x20always-on\x20campaign')[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)]('pause\x20<name-or-id>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x332))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))['action'](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x342))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x164))['requiredOption'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x40c))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1a8))[a2_0x37aff4(0x418)]('--workspace\x20<name>',a2_0x37aff4(0x29f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x26f),a2_0x37aff4(0x16b))[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd['command'](a2_0x37aff4(0x1be))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x40a))[a2_0x37aff4(0x418)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x29f))[a2_0x37aff4(0x418)]('--name\x20<name>',a2_0x37aff4(0x2f9))[a2_0x37aff4(0x43c)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x37aff4(0x479)]('template')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x239));templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1bc))[a2_0x37aff4(0x3c2)]('--workspace\x20<name>',a2_0x37aff4(0x485))['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x49a))[a2_0x37aff4(0x2c0)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d6))['description']('Show\x20email\x20template\x20details')['option']('--workspace\x20<name>',a2_0x37aff4(0x485))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x48a),a2_0x37aff4(0x486))[a2_0x37aff4(0x43c)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x37aff4(0x479)]('create')[a2_0x37aff4(0x2c0)]('Create\x20an\x20email\x20template')[a2_0x37aff4(0x418)](a2_0x37aff4(0x452),a2_0x37aff4(0x1cf))[a2_0x37aff4(0x418)](a2_0x37aff4(0x372),'Email\x20subject\x20template')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x266),'HTML\x20template\x20content')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x34d),a2_0x37aff4(0x219))[a2_0x37aff4(0x3c2)]('--workspace\x20<name>',a2_0x37aff4(0x29f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x40d),'Plaintext\x20template\x20content')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1eb),'Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)',_0x331934=>{const _0x3a879c=a2_0x37aff4;if(![_0x3a879c(0x281),_0x3a879c(0x17e)][_0x3a879c(0x3eb)](_0x331934))throw new SDKError(ErrorCode[_0x3a879c(0x428)],_0x3a879c(0x412)+_0x331934+_0x3a879c(0x2f2));return _0x331934;})[a2_0x37aff4(0x43c)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x445))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x4b0))['option'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))['option'](a2_0x37aff4(0x452),a2_0x37aff4(0x337))['option']('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x266),'HTML\x20template\x20content')['option']('--html-file\x20<path>','Read\x20HTML\x20template\x20from\x20file')['option'](a2_0x37aff4(0x40d),a2_0x37aff4(0x43f))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x371))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2b1))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')[a2_0x37aff4(0x3c2)]('--name\x20<name>',a2_0x37aff4(0x444))[a2_0x37aff4(0x3c2)]('-y,\x20--yes',a2_0x37aff4(0x16b))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')['action'](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x229))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x246))['option'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))['option'](a2_0x37aff4(0x1c7),'Skip\x20confirmation\x20prompt')['option'](a2_0x37aff4(0x4af),a2_0x37aff4(0x306))['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x34e))[a2_0x37aff4(0x2c0)]('Validate\x20template\x20YAML\x20files\x20locally')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x323),'Show\x20all\x20files\x20including\x20valid\x20ones')['action'](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x38e))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x375))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x26f),a2_0x37aff4(0x16b))[a2_0x37aff4(0x43c)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x32b));workspaceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x319))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x37aff4(0x479)]('workspaces\x20[pattern]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x25d))['action'](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d6))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x41a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x48a),a2_0x37aff4(0x486))[a2_0x37aff4(0x43c)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1d0))[a2_0x37aff4(0x2c0)]('Create\x20a\x20workspace')[a2_0x37aff4(0x418)](a2_0x37aff4(0x452),a2_0x37aff4(0x485))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x209),a2_0x37aff4(0x3f7))[a2_0x37aff4(0x43c)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x37aff4(0x445))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x303))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x452),'New\x20workspace\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x209),a2_0x37aff4(0x3f7))[a2_0x37aff4(0x43c)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x37aff4(0x479)]('delete\x20<name-or-id>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x230))['option'](a2_0x37aff4(0x26f),a2_0x37aff4(0x16b))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x37aff4(0x479)]('use\x20<name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x355))['action'](createEngageAction(EngageWorkspaceUseCommand));const lineSenderAccountCmd=engageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x215))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x163));lineSenderAccountCmd['command'](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x17a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageListAction(EngageLineSenderAccountsCommand)),lineSenderAccountCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d6))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x37c))['option'](a2_0x37aff4(0x4a2),a2_0x37aff4(0x485))[a2_0x37aff4(0x43c)](createEngageAction(EngageLineSenderAccountShowCommand));const lineImagemapImageCmd=engageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3bf))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x464));lineImagemapImageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1f3))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x400))[a2_0x37aff4(0x43c)](createEngageAction(EngageLineImagemapImageUploadCommand));const engageMediaCmd=engageCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x234))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1fc));engageMediaCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x420))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x45b))[a2_0x37aff4(0x43c)](createEngageAction(EngageMediaLsCommand)),engageMediaCmd['command']('upload\x20<file>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2bd))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1dc),a2_0x37aff4(0x25f))['option']('--conflict\x20<strategy>',a2_0x37aff4(0x488))[a2_0x37aff4(0x43c)](createEngageAction(EngageMediaUploadCommand)),engageMediaCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x329))['description']('Create\x20a\x20directory\x20in\x20Engage\x20DAM')[a2_0x37aff4(0x43c)](createEngageAction(EngageMediaMkdirCommand)),engageMediaCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d9))['description'](a2_0x37aff4(0x403))[a2_0x37aff4(0x43c)](createEngageAction(EngageMediaRmCommand)),engageMediaCmd[a2_0x37aff4(0x479)]('rmdir\x20<path>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2d2))[a2_0x37aff4(0x43c)](createEngageAction(EngageMediaRmdirCommand));const deliveryCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x358))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3e4));deliveryCmd['command'](a2_0x37aff4(0x257))['description'](a2_0x37aff4(0x3f4))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a2),'Workspace\x20name')[a2_0x37aff4(0x43c)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x210))[a2_0x37aff4(0x2c0)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x4ccedd=>{const _0x3a6558=a2_0x37aff4,_0x3a5a69=new ConnectionListCommand(),_0x5d4018=program['opts'](),_0x1810d5=await createTDXInstance(_0x5d4018),_0x5c0478=await _0x3a5a69[_0x3a6558(0x44f)]({'options':{..._0x5d4018,..._0x4ccedd},'args':[],'tdx':_0x1810d5});gracefulExit(_0x5c0478);};connectionCmd['command']('list')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x360))['action'](connectionListAction),program[a2_0x37aff4(0x479)]('connections',{'hidden':!![]})[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1ad))['action'](connectionListAction),connectionCmd['command'](a2_0x37aff4(0x2db))['description'](a2_0x37aff4(0x3c4))[a2_0x37aff4(0x43c)](async(_0x4b99b5,_0x521536)=>{const _0x1af488=a2_0x37aff4,_0x1b76da=new ConnectionShowCommand(),_0x5c4427=program[_0x1af488(0x2cc)](),_0x585669=await createTDXInstance(_0x5c4427),_0x377a77=await _0x1b76da[_0x1af488(0x44f)]({'options':{..._0x5c4427,..._0x521536},'args':[_0x4b99b5],'tdx':_0x585669});gracefulExit(_0x377a77);}),connectionCmd[a2_0x37aff4(0x479)]('schema\x20<type>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3e0))[a2_0x37aff4(0x43c)](async(_0x3e5ee3,_0x200f42)=>{const _0x9ee7e=new ConnectionSchemaCommand(),_0x3ea925=program['opts'](),_0x48fd57=await createTDXInstance(_0x3ea925),_0x351151=await _0x9ee7e['run']({'options':{..._0x3ea925,..._0x200f42},'args':[_0x3e5ee3],'tdx':_0x48fd57});gracefulExit(_0x351151);}),connectionCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2d1))['description']('List\x20available\x20connector\x20types')[a2_0x37aff4(0x43c)](async _0x3d7354=>{const _0x58447a=a2_0x37aff4,_0x1df234=new ConnectionTypesCommand(),_0xadd9cf=program[_0x58447a(0x2cc)](),_0xa01510=await createTDXInstance(_0xadd9cf),_0x3cbe54=await _0x1df234[_0x58447a(0x44f)]({'options':{..._0xadd9cf,..._0x3d7354},'args':[],'tdx':_0xa01510});gracefulExit(_0x3cbe54);}),connectionCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x475))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x26d))[a2_0x37aff4(0x43c)](async(_0x2592a1,_0x2b4119)=>{const _0xb6ab3b=a2_0x37aff4,_0x2590d8=new ConnectionSettingsCommand(),_0x435e5a=program[_0xb6ab3b(0x2cc)](),_0x155f8f=await createTDXInstance(_0x435e5a),_0x391250=await _0x2590d8['run']({'options':{..._0x435e5a,..._0x2b4119},'args':[_0x2592a1],'tdx':_0x155f8f});gracefulExit(_0x391250);});const casCmd=program['command'](a2_0x37aff4(0x2e1))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2b0));casCmd[a2_0x37aff4(0x479)]('list')['description']('List\x20composable\x20audiences')['action'](async _0xcef4d1=>{const _0x5356d1=a2_0x37aff4,_0x199055=new CASListCommand(),_0x12e8e6=program[_0x5356d1(0x2cc)](),_0xa53fec=await createTDXInstance(_0x12e8e6),_0x274d91=await _0x199055['run']({'options':{..._0x12e8e6,..._0xcef4d1},'args':[],'tdx':_0xa53fec});gracefulExit(_0x274d91);}),casCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x47f))[a2_0x37aff4(0x2c0)]('Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x37aff4(0x43c)](async(_0x289180,_0x2ae59b)=>{const _0x2d23ff=a2_0x37aff4,_0x46ef1e=new CASDescCommand(),_0x503453=program[_0x2d23ff(0x2cc)](),_0x48b51f=await createTDXInstance(_0x503453),_0x385f5c=await _0x46ef1e['run']({'options':{..._0x503453,..._0x2ae59b},'args':_0x289180?[_0x289180]:[],'tdx':_0x48b51f});gracefulExit(_0x385f5c);}),casCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3c1))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x28e))[a2_0x37aff4(0x3c2)]('--dir\x20<dir>',a2_0x37aff4(0x39a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x480))[a2_0x37aff4(0x43c)](async(_0x25e0b5,_0xb7afc2)=>{const _0x443ae5=a2_0x37aff4,_0x144bac=new CASPullCommand(),_0x1ffcda=program[_0x443ae5(0x2cc)](),_0x4db86a=await createTDXInstance(_0x1ffcda),_0x15dd2a=await _0x144bac[_0x443ae5(0x44f)]({'options':{..._0x1ffcda,..._0xb7afc2},'args':_0x25e0b5?[_0x25e0b5]:[],'tdx':_0x4db86a});gracefulExit(_0x15dd2a);}),casCmd['command'](a2_0x37aff4(0x229))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2e2))['option'](a2_0x37aff4(0x4af),a2_0x37aff4(0x450))[a2_0x37aff4(0x43c)](async(_0x59d417,_0x2d1dc6)=>{const _0x4ea223=a2_0x37aff4,_0x299846=new CASPushCommand(),_0x43acda=program['opts'](),_0xf630c4=await createTDXInstance(_0x43acda),_0x41feea=await _0x299846[_0x4ea223(0x44f)]({'options':{..._0x43acda,..._0x2d1dc6},'args':_0x59d417?[_0x59d417]:[],'tdx':_0xf630c4});gracefulExit(_0x41feea);}),casCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x15c))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3f3))[a2_0x37aff4(0x3c2)]('--audience\x20<name>','Composable\x20audience\x20name')[a2_0x37aff4(0x43c)](async(_0x574846,_0x531711)=>{const _0x5db5b3=a2_0x37aff4,_0xc87633=new CASPreviewCommand(),_0x2e547a=program[_0x5db5b3(0x2cc)](),_0x4db76c=await createTDXInstance(_0x2e547a),_0x689d8a=await _0xc87633[_0x5db5b3(0x44f)]({'options':{..._0x2e547a,..._0x531711},'args':[_0x574846,_0x531711[_0x5db5b3(0x362)]],'tdx':_0x4db76c});gracefulExit(_0x689d8a);});const casSgCmd=casCmd[a2_0x37aff4(0x479)]('sg')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x206));casSgCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2eb))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x40f))[a2_0x37aff4(0x43c)](async(_0x4161fe,_0x3e6ea7)=>{const _0x5270ea=a2_0x37aff4,_0x68475a=new CASSegmentListCommand(),_0x547570=program[_0x5270ea(0x2cc)](),_0x277e1c=await createTDXInstance(_0x547570),_0x592bad=await _0x68475a[_0x5270ea(0x44f)]({'options':{..._0x547570,..._0x3e6ea7},'args':_0x4161fe?[_0x4161fe]:[],'tdx':_0x277e1c});gracefulExit(_0x592bad);});const journeyCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x302))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3aa)),journeyListAction=async(_0x4054ea,_0x2f0f4a)=>{const _0x4a3bce=a2_0x37aff4,_0x4d2bdb=new JourneyListCommand(),_0x5f196b=program[_0x4a3bce(0x2cc)](),_0x256b55=await createTDXInstance(_0x5f196b),_0x228935=await _0x4d2bdb['run']({'options':{..._0x5f196b,..._0x2f0f4a},'args':_0x4054ea?[_0x4054ea]:[],'tdx':_0x256b55});gracefulExit(_0x228935);};journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x1ce))['description'](a2_0x37aff4(0x279))['action'](journeyListAction),journeyCmd['command'](a2_0x37aff4(0x227))[a2_0x37aff4(0x2c0)]('Show\x20journey\x20details')['option'](a2_0x37aff4(0x348),a2_0x37aff4(0x286))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x16c),'Include\x20execution\x20statistics')[a2_0x37aff4(0x43c)](async(_0x3f2229,_0x5e32c7)=>{const _0x4ed129=a2_0x37aff4,_0x28622e=new JourneyViewCommand(),_0x316d4e=program[_0x4ed129(0x2cc)](),_0x31828d=await createTDXInstance(_0x316d4e),_0x179cec=await _0x28622e[_0x4ed129(0x44f)]({'options':{..._0x316d4e,..._0x5e32c7},'args':[_0x3f2229],'tdx':_0x31828d});gracefulExit(_0x179cec);}),journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x190))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x318))[a2_0x37aff4(0x3c2)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')['option'](a2_0x37aff4(0x278),a2_0x37aff4(0x201))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a9),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x324),a2_0x37aff4(0x294))['action'](async(_0x244ac3,_0x20b317)=>{const _0x3457a8=a2_0x37aff4,_0x30bb31=new JourneyStatsCommand(),_0x384d68=program[_0x3457a8(0x2cc)](),_0x177acb=await createTDXInstance(_0x384d68),_0x355ea1=await _0x30bb31[_0x3457a8(0x44f)]({'options':{..._0x384d68,..._0x20b317},'args':[_0x244ac3],'tdx':_0x177acb});gracefulExit(_0x355ea1);}),journeyCmd['command'](a2_0x37aff4(0x277))['description']('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')[a2_0x37aff4(0x3c2)]('--type\x20<type>','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)')[a2_0x37aff4(0x3c2)]('--from\x20<date>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4a9),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option'](a2_0x37aff4(0x481),a2_0x37aff4(0x29c),_0x489e4e=>{const _0x19b339=parseInt(_0x489e4e,0xa);if(isNaN(_0x19b339))throw new Error('Invalid\x20--limit\x20value:\x20\x22'+_0x489e4e+'\x22.\x20Must\x20be\x20a\x20number.');return _0x19b339;})['action'](async(_0x6bde9d,_0xfad31)=>{const _0x569682=a2_0x37aff4,_0x29717d=new JourneyTrafficCommand(),_0x5baa48=program[_0x569682(0x2cc)](),_0x50037b=await createTDXInstance(_0x5baa48),_0x24ad21=await _0x29717d[_0x569682(0x44f)]({'options':{..._0x5baa48,..._0xfad31},'args':[_0x6bde9d],'tdx':_0x50037b});gracefulExit(_0x24ad21);}),journeyCmd[a2_0x37aff4(0x479)]('pause\x20<name-or-path>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x46c))[a2_0x37aff4(0x43c)](async(_0x207785,_0x43b0f9)=>{const _0x37dd9f=a2_0x37aff4,_0x5224ce=new JourneyPauseCommand(),_0x4d399e=program['opts'](),_0xafd513=await createTDXInstance(_0x4d399e),_0x50d5f9=await _0x5224ce[_0x37dd9f(0x44f)]({'options':{..._0x4d399e,..._0x43b0f9},'args':[_0x207785],'tdx':_0xafd513});gracefulExit(_0x50d5f9);}),journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x49c))['description'](a2_0x37aff4(0x353))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x1d9))[a2_0x37aff4(0x43c)](async(_0x330cb6,_0x32dac9)=>{const _0x39b7f7=a2_0x37aff4,_0x47e425=new JourneyRunCommand(),_0x7ebe26=program[_0x39b7f7(0x2cc)](),_0x505187=await createTDXInstance(_0x7ebe26),_0x18c8f9=await _0x47e425[_0x39b7f7(0x44f)]({'options':{..._0x7ebe26,..._0x32dac9},'args':[_0x330cb6],'tdx':_0x505187});gracefulExit(_0x18c8f9);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x30f))['option'](a2_0x37aff4(0x4af),'Show\x20journey\x20details\x20and\x20activation\x20targets\x20without\x20resuming')[a2_0x37aff4(0x43c)](async(_0x258158,_0x1906b4)=>{const _0x19a025=a2_0x37aff4,_0x2ca271=new JourneyResumeCommand(),_0x2148d8=program[_0x19a025(0x2cc)](),_0x4813f2=await createTDXInstance(_0x2148d8),_0x112025=await _0x2ca271[_0x19a025(0x44f)]({'options':{..._0x2148d8,..._0x1906b4},'args':[_0x258158],'tdx':_0x4813f2});gracefulExit(_0x112025);}),journeyCmd[a2_0x37aff4(0x479)]('pull\x20[name]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1f2))['option'](a2_0x37aff4(0x4af),a2_0x37aff4(0x480))[a2_0x37aff4(0x43c)](async(_0x23ad56,_0x394657)=>{const _0x21e055=new JourneyPullCommand(),_0x5e78ad=program['opts'](),_0x493ce1=await createTDXInstance(_0x5e78ad),_0x310684=await _0x21e055['run']({'options':{..._0x5e78ad,..._0x394657},'args':_0x23ad56?[_0x23ad56]:[],'tdx':_0x493ce1});gracefulExit(_0x310684);}),journeyCmd[a2_0x37aff4(0x479)]('push\x20[target]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x3f5))[a2_0x37aff4(0x43c)](async(_0x46c197,_0x33a4a0)=>{const _0x501693=a2_0x37aff4,_0x130938=new JourneyPushCommand(),_0x3abd74=program[_0x501693(0x2cc)](),_0x215038=await createTDXInstance(_0x3abd74),_0xf376a8=await _0x130938['run']({'options':{..._0x3abd74,..._0x33a4a0},'args':_0x46c197?[_0x46c197]:[],'tdx':_0x215038});gracefulExit(_0xf376a8);}),journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x24d))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x1ae))[a2_0x37aff4(0x43c)](async(_0x5f4038,_0xf82f38)=>{const _0x64b645=a2_0x37aff4,_0x4cb46a=new JourneyColumnsCommand(),_0x49b390=program[_0x64b645(0x2cc)](),_0xb7a011=await createTDXInstance(_0x49b390),_0x4ad7c6=await _0x4cb46a['run']({'options':{..._0x49b390,..._0xf82f38},'args':[_0x5f4038],'tdx':_0xb7a011});gracefulExit(_0x4ad7c6);}),journeyCmd['command'](a2_0x37aff4(0x491))[a2_0x37aff4(0x2c0)]('List\x20activations\x20for\x20a\x20journey')['action'](async(_0x45f4a8,_0x837c2f)=>{const _0x289d40=a2_0x37aff4,_0x1d03ff=new JourneyActivationsCommand(),_0x1c3e72=program[_0x289d40(0x2cc)](),_0x4ce1b5=await createTDXInstance(_0x1c3e72),_0xd6dba8=await _0x1d03ff[_0x289d40(0x44f)]({'options':{..._0x1c3e72,..._0x837c2f},'args':[_0x45f4a8],'tdx':_0x4ce1b5});gracefulExit(_0xd6dba8);}),journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x247))['description'](a2_0x37aff4(0x1ba))['action'](async(_0x1b0401,_0x147e5b)=>{const _0x1fa5b7=a2_0x37aff4,_0x3647ab=new JourneyVersionsCommand(),_0xb2f040=program['opts'](),_0x158856=await createTDXInstance(_0xb2f040),_0x2c95ac=await _0x3647ab[_0x1fa5b7(0x44f)]({'options':{..._0xb2f040,..._0x147e5b},'args':[_0x1b0401],'tdx':_0x158856});gracefulExit(_0x2c95ac);});const journeyVersionCmd=journeyCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x158))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x408));journeyVersionCmd['command'](a2_0x37aff4(0x44d))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x33d))[a2_0x37aff4(0x43c)](async(_0x5a7ffe,_0xad4966)=>{const _0x109aff=new JourneyVersionCreateCommand(),_0x154eb0=program['opts'](),_0x1d1a55=await createTDXInstance(_0x154eb0),_0x3e07c5=await _0x109aff['run']({'options':{..._0x154eb0,..._0xad4966},'args':[_0x5a7ffe],'tdx':_0x1d1a55});gracefulExit(_0x3e07c5);}),journeyVersionCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x227))['description'](a2_0x37aff4(0x368))[a2_0x37aff4(0x418)](a2_0x37aff4(0x39f),a2_0x37aff4(0x245))[a2_0x37aff4(0x43c)](async(_0x1034f7,_0x1f5b95)=>{const _0x256c00=a2_0x37aff4,_0x6d3286=new JourneyVersionViewCommand(),_0x236fb7=program[_0x256c00(0x2cc)](),_0xb9c1b2=await createTDXInstance(_0x236fb7),_0x461bc2=await _0x6d3286['run']({'options':{..._0x236fb7,..._0x1f5b95},'args':[_0x1034f7],'tdx':_0xb9c1b2});gracefulExit(_0x461bc2);}),journeyCmd[a2_0x37aff4(0x479)]('validate\x20[target]')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2cb))[a2_0x37aff4(0x43c)](async(_0x7d0fc4,_0x1b6f95)=>{const _0x2f0712=a2_0x37aff4,_0x469e13=new JourneyValidateCommand(),_0x5b90a9=program['opts'](),_0x2affee=await createTDXInstance(_0x5b90a9),_0x25af41=await _0x469e13[_0x2f0712(0x44f)]({'options':{..._0x5b90a9,..._0x1b6f95},'args':_0x7d0fc4?[_0x7d0fc4]:[],'tdx':_0x2affee});gracefulExit(_0x25af41);}),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x3db))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x196))[a2_0x37aff4(0x43c)](journeyListAction);const agentSyncCmd=program[a2_0x37aff4(0x479)](a2_0x37aff4(0x1da))['description']('LLM\x20agent\x20management');agentSyncCmd[a2_0x37aff4(0x479)]('pull\x20[project]\x20[agent-name]')[a2_0x37aff4(0x2c0)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x280),a2_0x37aff4(0x32f))['option'](a2_0x37aff4(0x28f),a2_0x37aff4(0x3cf))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3e5),'Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x37aff4(0x43c)](async(_0x19c642,_0x363d4c,_0x120519)=>{const _0x166e84=a2_0x37aff4,_0x2bda19=new AgentPullCommand(),_0x6920a5=program[_0x166e84(0x2cc)](),_0x1d3a9a=await createTDXInstance(_0x6920a5),_0x114122=[];if(_0x19c642)_0x114122[_0x166e84(0x1a9)](_0x19c642);if(_0x363d4c)_0x114122['push'](_0x363d4c);const _0x5c79b7=await _0x2bda19['run']({'options':{..._0x6920a5,..._0x120519},'args':_0x114122,'tdx':_0x1d3a9a});gracefulExit(_0x5c79b7);}),agentSyncCmd[a2_0x37aff4(0x479)]('push\x20[path]')['description'](a2_0x37aff4(0x2f7))['option'](a2_0x37aff4(0x28f),a2_0x37aff4(0x3f9))['action'](async(_0x3b4092,_0x1667a7)=>{const _0x4247f3=a2_0x37aff4,_0x2f0599=new AgentPushCommand(),_0x20dc55=program[_0x4247f3(0x2cc)](),_0x31bedf=await createTDXInstance(_0x20dc55),_0x49ab96=await _0x2f0599[_0x4247f3(0x44f)]({'options':{..._0x20dc55,..._0x1667a7},'args':_0x3b4092?[_0x3b4092]:[],'tdx':_0x31bedf});gracefulExit(_0x49ab96);}),agentSyncCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x462))['description'](a2_0x37aff4(0x19f))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x2fc),'Name\x20for\x20the\x20new\x20project\x20(required)')['action'](async(_0xd2b603,_0x3effee)=>{const _0x1b59ea=a2_0x37aff4,_0x5112ae=new AgentCloneCommand(),_0x369fb6=program[_0x1b59ea(0x2cc)](),_0x3da964=await createTDXInstance(_0x369fb6),_0x13a66e=await _0x5112ae['run']({'options':{..._0x369fb6,..._0x3effee},'args':_0xd2b603?[_0xd2b603]:[],'tdx':_0x3da964});gracefulExit(_0x13a66e);}),agentSyncCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x298))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x23a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x37a),a2_0x37aff4(0x4a0))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x15d),a2_0x37aff4(0x3fa))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x4af),a2_0x37aff4(0x1f1))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3df),'Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x37aff4(0x3c2)]('--reeval',a2_0x37aff4(0x1fa))['action'](async(_0x3f4431,_0x4eea23)=>{const _0x1b9461=a2_0x37aff4,_0x2935e6=new AgentTestCommand(),_0x40603d=program['opts'](),_0x3983e6=await createTDXInstance(_0x40603d),_0x403287=await _0x2935e6[_0x1b9461(0x44f)]({'options':{..._0x40603d,..._0x4eea23},'args':_0x3f4431?[_0x3f4431]:[],'tdx':_0x3983e6});gracefulExit(_0x403287);}),agentSyncCmd['command'](a2_0x37aff4(0x1ce))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x340))[a2_0x37aff4(0x43c)](llmAgentListAction),agentSyncCmd[a2_0x37aff4(0x479)]('show\x20<agent-name>')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x401))[a2_0x37aff4(0x43c)](async(_0x463f9d,_0x3d171e)=>{const _0x1f0a5c=a2_0x37aff4,_0x482578=new LLMAgentShowCommand(),_0x42e44f=program[_0x1f0a5c(0x2cc)](),_0x36d647=await createTDXInstance(_0x42e44f),_0x503832=await _0x482578[_0x1f0a5c(0x44f)]({'options':{..._0x42e44f,..._0x3d171e},'args':[_0x463f9d],'tdx':_0x36d647});gracefulExit(_0x503832);}),agentSyncCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b7))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2f6))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x36c),'System\x20prompt/instructions\x20(default:\x20empty)')['option']('--model\x20<name>',a2_0x37aff4(0x44a),a2_0x37aff4(0x199))[a2_0x37aff4(0x3c2)]('--starter-message\x20<text>',a2_0x37aff4(0x161))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x1a5),a2_0x37aff4(0x36a),'4')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x45f),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x37aff4(0x48b))['action'](async(_0x519bdb,_0x44b388)=>{const _0x251cfa=a2_0x37aff4,_0x5a2e1d=new LLMAgentCreateCommand(),_0x1f7143=program['opts'](),_0x404652=await createTDXInstance(_0x1f7143),_0x209d4d=await _0x5a2e1d[_0x251cfa(0x44f)]({'options':{..._0x1f7143,..._0x44b388},'args':[_0x519bdb],'tdx':_0x404652});gracefulExit(_0x209d4d);}),agentSyncCmd['command'](a2_0x37aff4(0x333))[a2_0x37aff4(0x2c0)]('Update\x20an\x20existing\x20agent')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3e2),'Agent\x20name')[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x3c3),a2_0x37aff4(0x3ac))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x31f),a2_0x37aff4(0x391))['option'](a2_0x37aff4(0x2cd),'Starter\x20message')[a2_0x37aff4(0x43c)](async(_0x1b63b4,_0x314e96)=>{const _0x30227e=new LLMAgentUpdateCommand(),_0x53ed97=program['opts'](),_0x240f39=await createTDXInstance(_0x53ed97),_0x199c24=await _0x30227e['run']({'options':{..._0x53ed97,..._0x314e96},'args':[_0x1b63b4],'tdx':_0x240f39});gracefulExit(_0x199c24);}),agentSyncCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x30d))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x447))['action'](async(_0xf9b32,_0x397395)=>{const _0x2a86b1=a2_0x37aff4,_0x1495af=new LLMAgentDeleteCommand(),_0x1e24ac=program[_0x2a86b1(0x2cc)](),_0x546111=await createTDXInstance(_0x1e24ac),_0x5eae5b=await _0x1495af['run']({'options':{..._0x1e24ac,..._0x397395},'args':[_0xf9b32],'tdx':_0x546111});gracefulExit(_0x5eae5b);});const workCmd=program[a2_0x37aff4(0x479)]('work')[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x283));workCmd[a2_0x37aff4(0x3c2)]('--days\x20<n>',a2_0x37aff4(0x3e6))[a2_0x37aff4(0x3c2)]('--all',a2_0x37aff4(0x270))[a2_0x37aff4(0x43c)](workSummaryAction),workCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2b9))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x15a))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x17f),a2_0x37aff4(0x3ff))[a2_0x37aff4(0x43c)](workInitAction),workCmd['command'](a2_0x37aff4(0x39c))['description'](a2_0x37aff4(0x24c))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x293),a2_0x37aff4(0x17b),a2_0x37aff4(0x459))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x15d),'Comma-separated\x20tags')['option'](a2_0x37aff4(0x1d8),a2_0x37aff4(0x46b))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x22b),a2_0x37aff4(0x265))['option']('--template\x20<name>',a2_0x37aff4(0x181))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x27c),a2_0x37aff4(0x1aa))[a2_0x37aff4(0x3c2)](a2_0x37aff4(0x22c),'Assignee')['action'](workNewAction),workCmd[a2_0x37aff4(0x479)]('move\x20<name>\x20<status>')['description'](a2_0x37aff4(0x19e))[a2_0x37aff4(0x43c)](workMoveAction),workCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x34c))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x314))['option'](a2_0x37aff4(0x3a0),a2_0x37aff4(0x3e6))['option'](a2_0x37aff4(0x2a0),a2_0x37aff4(0x270))[a2_0x37aff4(0x43c)](workBoardAction),workCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2db))[a2_0x37aff4(0x2c0)]('Show\x20document\x20details')[a2_0x37aff4(0x43c)](workShowAction),workCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x3fb))[a2_0x37aff4(0x2c0)](a2_0x37aff4(0x2fe))['action'](workLinksAction),workCmd[a2_0x37aff4(0x479)](a2_0x37aff4(0x2ce))['description'](a2_0x37aff4(0x3e1))[a2_0x37aff4(0x43c)](workOpenAction),program[a2_0x37aff4(0x479)](a2_0x37aff4(0x291),{'hidden':!![]})[a2_0x37aff4(0x43c)](()=>{const _0x1fa596=a2_0x37aff4;function _0x5f0f82(_0x3533ad,_0x36c2d4){const _0x13f669=a2_0x150a,_0x1ff71c=[];for(const _0x257799 of _0x3533ad['commands']){if(_0x257799[_0x13f669(0x16f)])continue;const _0x9bc5b9=_0x36c2d4?_0x36c2d4+'\x20'+_0x257799[_0x13f669(0x3b9)]():_0x257799[_0x13f669(0x3b9)](),_0x4c1e17=_0x9bc5b9[_0x13f669(0x2e7)]('\x20')[0x0],_0x52bfe2=COMMAND_CATEGORIES[_0x13f669(0x3d5)](_0x1c9d9e=>_0x1c9d9e['commands'][_0x13f669(0x3eb)](_0x4c1e17)),_0x50b34e=_0x52bfe2?.['name']??'';if(_0x257799['commands'][_0x13f669(0x36d)]>0x0)_0x1ff71c[_0x13f669(0x1a9)](..._0x5f0f82(_0x257799,_0x9bc5b9));else{const _0x4718c7=(_0x257799[_0x13f669(0x24f)]||[])[_0x13f669(0x1bd)](_0x33750b=>{const _0x39fe51=_0x13f669,_0x3b6406=_0x33750b['variadic']?_0x33750b[_0x39fe51(0x3b9)]()+'...':_0x33750b[_0x39fe51(0x3b9)]();return _0x33750b[_0x39fe51(0x170)]?'<'+_0x3b6406+'>':'['+_0x3b6406+']';})['join']('\x20'),_0x9644ea=_0x257799['options'][_0x13f669(0x38f)](_0xc9f2ff=>!_0xc9f2ff[_0x13f669(0x282)]&&_0xc9f2ff[_0x13f669(0x24e)]!==_0x13f669(0x344))[_0x13f669(0x1bd)](_0x174f8f=>({'flags':_0x174f8f['flags'],'description':_0x174f8f[_0x13f669(0x2c0)]}));_0x1ff71c[_0x13f669(0x1a9)]({'name':_0x9bc5b9,'description':_0x257799[_0x13f669(0x2c0)](),'group':_0x50b34e,'usage':_0x4718c7,'options':_0x9644ea});}}return _0x1ff71c;}console[_0x1fa596(0x195)](JSON[_0x1fa596(0x1df)](_0x5f0f82(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x29ee45=a2_0x37aff4,_0x2e19ff=!process[_0x29ee45(0x3ce)][_0x29ee45(0x45d)](0x2)['length'];showBriefHelp=_0x2e19ff,program['parse'](process[_0x29ee45(0x3ce)]);_0x2e19ff&&program[_0x29ee45(0x237)]();const _0x3b76eb=process[_0x29ee45(0x3ce)][0x2]===_0x29ee45(0x1bf);if(process[_0x29ee45(0x3f6)][_0x29ee45(0x21c)]&&process[_0x29ee45(0x3ce)][_0x29ee45(0x36d)]>0x2&&!isDevVersion()&&!_0x3b76eb){const _0x457642=loadReleaseChannel();checkForUpdate(currentVersion,_0x457642)[_0x29ee45(0x1fe)](_0x43a631=>{_0x43a631&&displayUpdateNotification(_0x43a631);})[_0x29ee45(0x3d1)](()=>{});}}
1
+ const a2_0x50a3e8=a2_0x46b4;(function(_0x3133d3,_0x500dcf){const _0x25f35e=a2_0x46b4,_0x4bc028=_0x3133d3();while(!![]){try{const _0x3d9a1f=parseInt(_0x25f35e(0x2a8))/0x1+-parseInt(_0x25f35e(0x4a8))/0x2*(parseInt(_0x25f35e(0x2bf))/0x3)+parseInt(_0x25f35e(0x242))/0x4*(parseInt(_0x25f35e(0x48a))/0x5)+-parseInt(_0x25f35e(0x393))/0x6*(-parseInt(_0x25f35e(0x1ed))/0x7)+-parseInt(_0x25f35e(0x26d))/0x8*(parseInt(_0x25f35e(0x1b8))/0x9)+-parseInt(_0x25f35e(0x408))/0xa+parseInt(_0x25f35e(0x4b2))/0xb;if(_0x3d9a1f===_0x500dcf)break;else _0x4bc028['push'](_0x4bc028['shift']());}catch(_0x30fb19){_0x4bc028['push'](_0x4bc028['shift']());}}}(a2_0x1177,0x7aeb8));import a2_0x125af2 from'chalk';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{TableDeletedCommand,TableRecoverCommand}from'./commands/table-deleted.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';function a2_0x1177(){const _0x46735d=['--attributes\x20<json>','create\x20<name>\x20<service_id>\x20[parent_segment]','folders\x20<parent_name>','remove\x20<name>','--prompt\x20<text>','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','[EXPERIMENTAL]\x20Show\x20chat\x20log','Include\x20retried\x20attempts','grapesjs','run\x20<name>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--body\x20<body>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Maximum\x20rows\x20to\x20display','tsv','Create\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','enable\x20<id>','view\x20<name-or-path>','Skip\x20confirmation\x20prompts','Resume\x20a\x20paused\x20journey','List\x20composable\x20segments\x20for\x20an\x20audience','Show\x20campaign\x20details','System\x20prompt/instructions\x20(default:\x20empty)','duplicate\x20<name-or-id>','policy','--revision\x20<revision>','--color','preview\x20[name]','Create\x20a\x20new\x20document','6xDeYYH','--start-at\x20<datetime>','Workspace\x20description','pull\x20[workspace-name]','Update\x20a\x20campaign','Upload\x20an\x20image\x20for\x20LINE\x20imagemap\x20(JPEG/PNG,\x20min\x201040px,\x20max\x2010MB)','--timeout\x20<seconds>','\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','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','recover\x20<id>','Workflow\x20(Digdag)\x20management\x20commands','Name\x20for\x20the\x20new\x20project\x20(required)','--schedule-option\x20<value>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','users','Enable\x20UTM\x20tracking','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Upload\x20an\x20image\x20to\x20Engage\x20DAM\x20(JPEG/PNG/GIF/SVG)','show\x20[name]','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-a,\x20--agent\x20<name>','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','--customer-group-file\x20<file>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','secrets','Output\x20as\x20JSON','Audience\x20(parent\x20segment)\x20ID\x20—\x20inferred\x20from\x20context\x20if\x20omitted','List\x20email\x20senders','Restore\x20into\x20a\x20different\x20database\x20(use\x20on\x20409\x20db\x20conflict)','update\x20<name>','timeline\x20[project.workflow]','-v,\x20--verbose','desc\x20[segment_name]','login','Journey\x20version\x20management','Create\x20segment\x20folder','api\x20[endpoint]','commandUsage','--yes','workspace','--method\x20<pm>','push\x20[source-dir]','Retry\x20limit\x20(0\x20to\x2032)','Open\x20segment\x20in\x20web\x20browser','work','For\x20setup\x20instructions,\x20see\x20https://tdx.treasuredata.com/guide/api-command-safety','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','-p,\x20--profile\x20<name>','List\x20journeys\x20in\x20current\x20context','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','list\x20[pattern]','Create\x20a\x20new\x20campaign','Delete\x20a\x20campaign','--database\x20<name>','Agent\x20prompt/instructions','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Parent\x20segment\x20description','validate\x20[file]','use\x20<path>','--result\x20<target>','Recurse.\x20Alone:\x20show\x20the\x20full\x20tree.\x20With\x20a\x20<pattern>:\x20search\x20the\x20whole\x20tree\x20by\x20name\x20(case-insensitive;\x20a\x20plain\x20string\x20matches\x20as\x20a\x20substring,\x20`*`\x20and\x20`?`\x20are\x20wildcards)\x20and\x20print\x20each\x20match\x20with\x20its\x20full\x20folder\x20path\x20for\x20use\x20with\x20`sg\x20move`','Update\x20an\x20email\x20template','create','attempt','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Overwrite\x20local\x20changes\x20without\x20confirmation','Resume\x20listing\x20after\x20this\x20table\x20id\x20(from\x20a\x20previous\x20page)','--parent-folder\x20<name>','senders\x20[pattern]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','show\x20<name-or-id>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','pull\x20[parent_or_file]','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','preAction','history\x20<name>','slice','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Duplicate\x20a\x20campaign','Skip\x20population\x20counting','optionDescription','Save\x20output\x20to\x20file','--from-task\x20<task>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','catch','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','after','workflows\x20[project]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','clear','commands','Pull\x20composable\x20audience\x20+\x20segments\x20to\x20YAML\x20files\x20(uses\x20context\x20if\x20name\x20omitted)','--attribute\x20[name]','registeredArguments','Show\x20master\x20table\x20sample\x20data','pull\x20[project]\x20[agent-name]','--page-size\x20<n>','length','rm\x20<path>','workflow','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','list\x20[project]','Include\x20all\x20items\x20(no\x20stale\x20filtering)','--rule-file\x20<file>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','table','Job\x20priority\x20(-2\x20to\x202)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Output\x20file\x20path','Set\x20operation\x20timeout\x20in\x20seconds','--no-count-population','filter','Enable\x20verbose\x20logging','set\x20<args...>','4386690vwovQy','Personalization\x20management','launch\x20<name-or-id>','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--delay\x20<seconds>','Filtering\x20rule\x20as\x20JSON\x20string','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','TRACE','then','update\x20<agent-name>','Preview\x20changes\x20without\x20writing\x20files','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','submit\x20[query]','--schedule-id\x20<id>','--default','database','log\x20<chat-id>','template','Preview\x20composable\x20segment\x20query\x20on\x20CDW','long','--system-prompt\x20<text>','Campaign\x20description','schema\x20<type>',',\x20version\x20','Delay\x20in\x20seconds\x20before\x20execution','join','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','_list-commands','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Delete\x20an\x20email\x20template','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Directory\x20does\x20not\x20exist:\x20','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Parent\x20folder\x20name\x20for\x20nested\x20folders','Delete\x20workflow\x20project\x20from\x20Treasure\x20AI','List\x20activations\x20for\x20a\x20journey','AI-native\x20work\x20management','pull\x20[name]','mcp','line-imagemap-image','Workspace\x20name\x20(required)','--session-id\x20<id>','Link\x20workspace\x20to\x20a\x20GitHub\x20repository','create\x20[name]','List\x20all\x20available\x20profiles','New\x20template\x20name','--version','Preview\x20operation\x20without\x20executing','--clear','delete\x20<agent-name>','projects\x20[pattern]','Create\x20a\x20new\x20LLM\x20project','allowExcessArguments','--rule\x20<json>','Follow/watch\x20timeline\x20for\x20running\x20attempts','Download\x20workflow\x20project\x20from\x20Treasure\x20AI','GET','CDP\x20Journey\x20Orchestration\x20commands','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Workflow\x20project\x20management','Manage\x20workflow\x20schedules\x20(enable/disable)','stats\x20<name-or-path>','upgrade','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Show\x20journey\x20details','--tsv','RT\x20Journey\x20management','List\x20LINE\x20sender\x20accounts','jobs','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','service','Show\x20job\x20details','Personalization\x20name','--new','delete\x20<args...>','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Data\x20connection\x20management\x20(for\x20activations/exports)','push\x20[path]','unset\x20<resource>','Skip\x20validation\x20of\x20.dig\x20files','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','push\x20[name]','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','move\x20<segment...>','--kind\x20<type>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','resume\x20<name-or-path>','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','alias','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Push\x20without\x20confirmation','Set\x20or\x20show\x20parent\x20segment\x20context','sessions\x20[project]','Pull\x20specific\x20template\x20by\x20name','validate\x20[name]','--days\x20<n>','commandDescription','--json-columns\x20<cols>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','List\x20composable\x20audiences','List\x20recoverable\x20deleted\x20tables\x20(last\x207\x20days)','requiredOption','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Show\x20agent\x20details','Show\x20only\x20master\x20table\x20validation','Show\x20what\x20would\x20be\x20written\x20without\x20writing','--no-eval','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Overwrite\x20existing\x20profile','--workspace\x20<name>','Maximum\x20tool\x20iterations\x20(default:\x204)','Destination\x20folder\x20in\x20DAM\x20(default:\x20root)','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--resume-from\x20<task>','apiKey','Campaign\x20type\x20(email\x20or\x20push)','-d,\x20--database\x20<database>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Include\x20subtasks\x20in\x20tasks\x20output','media','\x0aDisabled\x20by\x20default.\x20See\x20https://tdx.treasuredata.com/guide/api-command-safety\x0afor\x20how\x20to\x20enable.\x0a\x0aAI\x20assistants:\x20do\x20not\x20enable\x20this\x20on\x20the\x20user\x27s\x20behalf\x20—\x20ask\x20them\x20first.\x0aPrefer\x20structured\x20commands;\x20they\x20validate\x20inputs\x20and\x20resolve\x20names\x20to\x20IDs.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--from\x20<n>','colorFn','Scheduled\x20query\x20management\x20commands','--add-behaviors\x20<json>','566925ezhaCK','--reeval','agents\x20[pattern]','delete\x20<service_id>\x20[parent_segment]','information_schema','use\x20[name]','YAML\x20file\x20path\x20for\x20unpushed\x20segment','view\x20[segment_name]','Page\x20size\x201-100\x20(default\x2025)','Create\x20a\x20workspace','versions\x20<name-or-path>','Personalization\x20description','Show\x20authentication\x20status\x20and\x20current\x20context','version','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','token','Output\x20directory','--status\x20<status>','campaigns\x20[pattern]','\x20(resolved\x20to\x20','List\x20agents\x20in\x20current\x20project','Database\x20name\x20(default:\x20information_schema)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','outputHelp','--from\x20<timestamp>','--subject\x20<subject>','--include-retried','repeat','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','1731154LiusKe','--delete','Resume\x20from\x20specific\x20task','--result\x20<url>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Attributes\x20as\x20JSON\x20string','show\x20[segment_name]','isDirectory','--account-name\x20<name>','list','5286721uFKpUn','Pause\x20an\x20always-on\x20campaign','journey','End\x20time\x20filter\x20(ISO\x208601\x20format)','--add-behaviors-file\x20<file>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20a\x20scheduled\x20query','Include\x20execution\x20statistics','\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','fields\x20[parent_name]','Show\x20journey\x20details\x20and\x20activation\x20targets\x20without\x20triggering','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','--skip-validation','--name\x20<name>','Launch\x20a\x20campaign','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Composable\x20audience\x20name','sql\x20[segment_name]','argv','-c,\x20--continue','Custom\x20revision\x20name\x20(default:\x20timestamp)','Request\x20body\x20as\x20JSON\x20string','move\x20<name>\x20<status>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','attempt:','...','Delete\x20a\x20scheduled\x20query','open\x20<name>','test\x20[path]','tdx\x20','Workflow\x20attempt\x20management','--reason\x20<text>','stringify','chdir','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','engage_workspace','Run\x20specific\x20tests\x20(comma-separated)','Recover\x20a\x20deleted\x20table\x20by\x20id','--folder\x20<name>','--verbose','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Kill\x20a\x20job','sql\x20[name]','help','--follow','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--timezone\x20<tz>','upgrade\x20[version]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','segment','folder','Manage\x20workflow\x20project\x20secrets','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Ending\x20offset\x20(default:\x2020)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','delete\x20<name-or-id>','Segment\x20description','profiles','show\x20[table]','required','Show\x20connection\x20details\x20by\x20name','Show\x20a\x20single\x20schedule\x20by\x20its\x20ID','\x0aSegments\x20and\x20--folder\x20accept\x20a\x20numeric\x20ID\x20or\x20a\x20name/path,\x20resolved\x20(case-insensitive)\x0awithin\x20the\x20current\x20parent\x20segment.\x20Names\x20need\x20a\x20parent\x20context\x20(tdx\x20sg\x20use\x20/\x20--parent-segment).\x0a\x0aExamples:\x0a\x20\x20tdx\x20sg\x20move\x201603887\x20--folder\x208299501\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20move\x20by\x20ID\x0a\x20\x20tdx\x20sg\x20move\x20\x22VIP\x20Customers\x22\x20--folder\x20\x22Archive\x22\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20move\x20by\x20name\x0a\x20\x20tdx\x20sg\x20move\x20\x22Marketing/VIP\x20Customers\x22\x20--folder\x20\x22Marketing/Archive\x22\x20\x20\x20nested\x20path\x0a\x20\x20tdx\x20sg\x20move\x201603887\x20--folder\x208299501\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preview,\x20no\x20changes\x0a\x0aDon\x27t\x20know\x20where\x20a\x20segment\x20lives\x20(or\x20the\x20name\x20is\x20nested)?\x20Find\x20it\x20first,\x20then\x20move\x20by\x20the\x20printed\x20path:\x0a\x20\x20tdx\x20sg\x20list\x20\x22<name>\x22\x20-r\x0aIf\x20a\x20bare\x20name\x20matches\x20several\x20segments,\x20the\x20move\x20refuses\x20and\x20lists\x20them\x20—\x20pass\x20the\x20intended\x20full\x20path\x20or\x20id.','--limit\x20<number>','Resume\x20a\x20paused\x20always-on\x20campaign','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Assignee','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Query\x20engine\x20version','--in\x20<db>','mkdir\x20<path>','-1d','Delete\x20a\x20realtime\x20personalization','parent-segment','Show\x20all\x20files\x20including\x20valid\x20ones','--parent-segment\x20<name>','Invalid\x20editor\x20type:\x20','Update\x20an\x20always-on\x20campaign','status','Resume\x20a\x20paused\x20campaign','[action]','name','Add\x20behaviors\x20as\x20JSON\x20string','replace','Preview\x20changes\x20without\x20pushing','New\x20service\x20description','New\x20campaign\x20name','Resume\x20scheduling\x20from\x20this\x20time\x20instead\x20of\x20the\x20schedule\x20definition\x20(ISO-8601,\x20e.g.\x202026-12-31T23:59:00+00:00)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs\x20(opt-in)','Folder\x20description','RT\x202.0\x20configuration\x20management','--no-color','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Update\x20an\x20existing\x20agent','view\x20[name]','47826lQRLwS','map','Push\x20YAML\x20files\x20to\x20Treasure\x20AI\x20as\x20child\x20segments','error','-f,\x20--file\x20<path>','Priority\x20(critical,\x20high,\x20medium,\x20low)','--description\x20<desc>','Setup\x20API\x20key\x20authentication\x20interactively','use\x20<name>','-d,\x20--database\x20<db>','Check\x20for\x20updates\x20without\x20installing','Resume\x20activations\x20in\x20an\x20RT\x20journey','create\x20<parent_name>\x20<folder_name>','Query\x20type:\x20trino\x20or\x20hive','rmdir\x20<path>','Personalization\x20service\x20token\x20management','injectIntoOptions','--add-attributes\x20<json>','list\x20[name]','push','trino','session','--include-history','Attempt\x20ID','connections','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','\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','Show\x20LINE\x20sender\x20account\x20details','INVALID_ARGUMENT','Sections\x20as\x20an\x20inline\x20JSON\x20array','action','--trace','Add\x20attributes\x20as\x20JSON\x20string','traffic\x20<name-or-path>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Delete\x20a\x20file\x20from\x20Engage\x20DAM','--html-file\x20<path>','--dry-run','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','kill','fields\x20[name]','get','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Create\x20a\x20new\x20always-on\x20campaign','Campaign\x20name','--job-type\x20<type>','LINE\x20sender\x20account\x20management','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Show\x20Kanban\x20board\x20view\x20of\x20tasks','Document\x20kind\x20(item,\x20goal,\x20guide,\x20note,\x20reference)','--enriched','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','-n,\x20--name\x20<name>','4269013OnFnCq','--jsonl','--in\x20<database>','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','workspaces\x20[pattern]','Validate\x20journey\x20YAML\x20files\x20locally','Database\x20name','--time\x20<iso8601>','Open\x20a\x20document\x20in\x20$EDITOR','Comma-separated\x20tags','format','--limit\x20<rows>','--chat-id\x20<id>','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20AI','Add\x20attributes\x20from\x20JSON\x20file','Result\x20output\x20destination\x20URL','--params\x20<json>','run','subcommandTerm','--type\x20<api_type>','argumentDescription','Show\x20wiki-links\x20and\x20backlinks\x20for\x20a\x20document','--audience-id\x20<id>','--interval\x20<range>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','New\x20segment\x20name','Read\x20SQL\x20query\x20from\x20file','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','retry\x20<session-id>','padEnd','Remove\x20API\x20key\x20from\x20system\x20keychain','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--session-time\x20<time>','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','init\x20[name]','Initial\x20status','--name\x20<text>','--site\x20<site>','gitRevision','List\x20workflow\x20schedules\x20(alias\x20for\x20`schedule\x20list`)','Starter\x20message','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login','use\x20[resource]\x20[value]','profile','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','argument','Unknown\x20action:\x20','--retry-limit\x20<0~32>','Create\x20a\x20directory\x20in\x20Engage\x20DAM','usage','--priority\x20<priority>','Show\x20schedule\x20details','\x0aNeeds\x20a\x20parent\x20segment\x20context\x20(tdx\x20sg\x20use\x20/\x20--parent-segment).\x20Add\x20--format\x20json\x20for\x20machine\x20output.\x0a\x0aExamples:\x0a\x20\x20tdx\x20sg\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list\x20the\x20current\x20context\x20(folders\x20+\x20segments)\x0a\x20\x20tdx\x20sg\x20list\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20full\x20tree\x0a\x20\x20tdx\x20sg\x20list\x20\x22VIP\x22\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20find\x20every\x20segment/folder\x20whose\x20name\x20contains\x20\x22VIP\x22\x20(with\x20its\x20path)\x0a\x20\x20tdx\x20sg\x20list\x20\x22Q1\x20*\x22\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wildcard\x20search\x0a\x20\x20tdx\x20sg\x20list\x20\x22VIP\x22\x20-r\x20--format\x20json\x20\x20\x20\x20same,\x20as\x20JSON\x20for\x20jq/grep\x0a\x0aUse\x20a\x20printed\x20path\x20with\x20`tdx\x20sg\x20move`.','Campaign\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','createAsync','validate\x20[target]','Apply\x20a\x20template','Transition\x20a\x20task\x20to\x20a\x20new\x20status','list\x20[audience_name]','Revision\x20name\x20(default:\x20timestamp)','models','update\x20<name-or-id>','databases\x20[pattern]','Workspace\x20name','--from\x20<date>','forEach','--output\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Engage\x20DAM\x20media\x20management','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','entries','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','pause\x20<name-or-id>','Invalid\x20--limit\x20value:\x20\x22','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--catalog\x20<catalog>','--tags\x20<tags>','Error:\x20`tdx\x20api`\x20is\x20disabled\x20by\x20default\x20to\x20prevent\x20unintended\x20API\x20calls.','Generate\x20test\x20conversations\x20without\x20evaluation','20HYcYVr','argumentTerm','Customer\x20group\x20as\x20JSON\x20string','Trino\x20catalog\x20(default:\x20td)','Move\x20to\x20folder','Run\x20tests\x20for\x20an\x20LLM\x20agent','--include-subtasks','upload\x20[project-name-or-dir]','Document\x20body\x20text','desc\x20[name]','[attempt-id]','configureHelp','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--folder-id\x20<id>','Start\x20a\x20new\x20chat\x20session','history\x20[chat-id]','set','Show\x20journey\x20table\x20column-to-step\x20mapping','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','use\x20[project]','--plaintext\x20<text>','opts','--audience\x20<name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a\x20\x20$\x20tdx\x20profile\x20create\x20prod\x20-f\x20\x20\x20\x20\x20\x20#\x20Overwrite\x20existing\x20\x27prod\x27\x20profile\x0a','-H,\x20--header\x20<header>','Timezone\x20for\x20cron','Attributes\x20from\x20JSON\x20file','--format\x20<format>','Clear\x20workflow\x20project\x20context','line-sender-account','--sections\x20<json>','accessToken','--full','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','-r,\x20--recursive','--max-depth\x20<depth>','show\x20<agent-name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Show\x20the\x20task\x20graph\x20and\x20side-effect\x20warnings\x20without\x20executing','description','site','Target\x20directory\x20for\x20YAML\x20files','isTTY','712hUAvnX','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--public','Continue\x20most\x20recent\x20conversation','--type\x20<type>','--folder\x20<folder>','segments\x20[pattern]','Pause\x20a\x20running\x20journey','new\x20<title>','DEBUG','hidden','always-on-campaigns\x20[pattern]','Finish\x20an\x20always-on\x20campaign','--dir\x20<dir>','--github\x20<owner/repo>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','--backfill','HTML\x20template\x20content','Project\x20description','Always-on\x20campaign\x20management','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Usage:\x20','Access\x20control\x20policy\x20commands','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','Trigger\x20on-demand\x20journey\x20workflow\x20execution','delete\x20<personalization_id>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Launch\x20an\x20always-on\x20campaign','Action:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20all\x20data\x20connections','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','tdx','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Create\x20a\x20scheduled\x20query','Database\x20to\x20query\x20(default:\x20information_schema)','LINE\x20imagemap\x20image\x20management','Template\x20name','--help','Run\x20backfill\x20sessions\x20for\x20the\x20gap\x20while\x20the\x20schedule\x20was\x20disabled\x20(off\x20by\x20default)','subcommandDescription','Plaintext\x20template\x20content','--param\x20<key=value>','Recurse.\x20Alone:\x20show\x20the\x20full\x20tree.\x20With\x20a\x20<pattern>:\x20search\x20the\x20whole\x20tree\x20by\x20name\x20(case-insensitive;\x20substring,\x20with\x20`*`/`?`\x20wildcards)','--segment\x20<path>','Preview\x20without\x20creating\x20the\x20project','pause_activations\x20<journeyId>','Get\x20job\x20results','Update\x20a\x20realtime\x20personalization\x20entity','Upload\x20workflow\x20project\x20to\x20Treasure\x20AI\x20(digdag-style)','Composable\x20Audience\x20Studio\x20commands\x20(zero-copy\x20CDP)','--num\x20<1-10>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Show\x20schedule\x20execution\x20history','Show\x20segment\x20details\x20(alias\x20for\x20view)','download\x20<project-name>\x20[output-dir]','--path\x20<file-path>','directory','Describe\x20table\x20schema','--to\x20<n>','623277QzwWaa','Pull\x20specific\x20campaign\x20by\x20name','Skip\x20confirmation\x20prompt','Show\x20items\x20updated\x20within\x20N\x20days','summary','INFO','Show\x20journey\x20statistics','Workflow\x20session\x20management','json','Resume\x20a\x20conversation\x20(shows\x20selector)','LLM\x20project\x20management','Pull\x20templates\x20to\x20YAML\x20files','Task\x20name\x20for\x20logs\x20action','Agent\x20name','Interactive\x20chat\x20selector','always-on-campaign','patch\x20<personalization_id>','-o,\x20--output\x20<folder>','--force','run\x20[name]','List\x20journeys\x20(alias\x20for\x20journey\x20list)','\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','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','3CAqjhY','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Show\x20journey\x20details\x20and\x20activation\x20targets\x20without\x20resuming','Output\x20as\x20JSON\x20Lines','Get\x20current\x20RT\x20configuration\x20version\x20status','-f,\x20--force','Arguments:','Show\x20segment\x20schema\x20(column\x20types)','list\x20[project.workflow]','Service\x20description','Read\x20HTML\x20template\x20from\x20file','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','red','[task-name]','Pull\x20child\x20segments\x20to\x20YAML\x20files','resume_activations\x20<journeyId>','stderr','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','campaign','Reason\x20for\x20killing\x20the\x20attempt','--model\x20<name>','\x22.\x20Must\x20be\x20a\x20number.','Folder\x20name\x20for\x20organization','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','show\x20<folder_ref>','New\x20workspace\x20name','--attempt-id\x20<id>','Updated\x20description','flags','--to\x20<date>','--database\x20<db>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Updated\x20schedule\x20option','preview\x20<segment_name>','beefree','Pull\x20specific\x20revision\x20(default:\x20latest)','--cron\x20<expression>','--to\x20<timestamp>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','List\x20workflow\x20schedules\x20(filter\x20by\x20project\x20or\x20project.workflow)','--behaviors\x20<json>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)','Token\x20description','restore\x20<folder>','includes','Cron\x20expression\x20for\x20scheduling','Read\x20query\x20from\x20file','--behavior\x20[name]','settings\x20<type>','finish\x20<name-or-id>','--all','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','--file\x20<path>','Prefer\x20typed\x20commands\x20—\x20run\x20`tdx\x20--help`\x20to\x20see\x20them.','--table\x20<table>','--schedule-type\x20<type>','hook','--invisible','claude-4.5-sonnet','Make\x20service\x20public\x20(default:\x20private)','push\x20[target]','Personalization\x20service\x20management','Authentication\x20management','Behaviors\x20from\x20JSON\x20file','--template\x20<name>','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace,\x20cas)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','-w,\x20--web','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','update\x20<service_id>\x20[parent_segment]','pause\x20<name-or-path>','deleted','log','New\x20service\x20name','Show\x20stats\x20for\x20specific\x20stage','--llm-project\x20<name>','show\x20<name>','audience','--name\x20<new-name>','debug','describe\x20[table]','Pause\x20a\x20campaign','Show\x20timeline\x20for\x20specific\x20attempt','Rename\x20the\x20recovered\x20table\x20(use\x20on\x20409\x20name\x20conflict)','setup','Preview\x20the\x20move\x20without\x20changing\x20anything\x20(no\x20data\x20is\x20modified)','\x20-\x20built\x20','--data\x20<data>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','pull\x20<project>\x20[target-dir]','create\x20<name>\x20[parent_segment]','us01','--enable-utm-tracking','Limit\x20number\x20of\x20rows','Delete\x20a\x20workspace','--cursor-id\x20<id>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','retry','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','claude\x20[args...]','show\x20<policy>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','result\x20<job-id>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Database\x20management\x20commands','command','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','addHelpText','Show\x20workspace\x20details','Run\x20a\x20scheduled\x20query\x20immediately','Starting\x20offset\x20(default:\x200)','job','parents\x20[pattern]','Maximum\x20recursion\x20depth\x20(default:\x2010)','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','use\x20<project-name>','--master','Output\x20file\x20path\x20(default:\x20<name>.yml)','configuration_versions\x20[name]','--no-proxy','--html\x20<html>','-o,\x20--output\x20<file>','project','llm','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Pull\x20workflow\x20project\x20to\x20local\x20folder','Delete\x20a\x20directory\x20from\x20Engage\x20DAM\x20(must\x20be\x20empty)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','options','option','buildTime','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','create\x20<name-or-path>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','push\x20[parent_or_file]','attempts\x20[project]','--next-time\x20<time>','padWidth','--description\x20<text>','--json','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','List\x20secret\x20keys\x20for\x20a\x20project','Parent\x20folder\x20ID\x20(required;\x20use\x20null\x20for\x20root\x20folder)','desc','Email\x20subject\x20template','Create\x20a\x20new\x20agent\x20in\x20current\x20project','-u,\x20--use','Safely\x20move\x20one\x20or\x20more\x20segments\x20(by\x20ID\x20or\x20name)\x20to\x20a\x20folder\x20—\x20preserves\x20rules','List\x20available\x20LLM\x20models','pull\x20[workspace]','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','create\x20<name>','jsonl','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Database\x20name\x20(required)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','-C,\x20--directory\x20<path>','Open\x20journey\x20in\x20web\x20browser','allowUnknownOption','Timezone\x20for\x20cron\x20(default:\x20UTC)','activations\x20<name-or-path>','List\x20folders\x20and\x20segments;\x20with\x20-r\x20and\x20a\x20pattern,\x20search\x20the\x20whole\x20tree\x20by\x20name','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Workspace\x20management','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Alias\x20for\x20--database\x20(natural\x20language\x20style)','schedule','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','logLevel','show\x20<job-id>','upload\x20<file>','List\x20all\x20users\x20in\x20the\x20account','-y,\x20--yes','LLM\x20agent\x20management','Email\x20template\x20management','tasks','Delete\x20an\x20LLM\x20project','Read\x20request\x20body\x20from\x20file'];a2_0x1177=function(){return _0x46735d;};return a2_0x1177();}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{SegmentMoveCommand}from'./commands/segment-move-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand,WorkflowSchedulesCommand,WorkflowScheduleEnableCommand,WorkflowScheduleDisableCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyRunCommand,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,EngageLineSenderAccountsCommand,EngageLineSenderAccountShowCommand,EngageLineImagemapImageUploadCommand,EngageMediaUploadCommand,EngageMediaLsCommand,EngageMediaMkdirCommand,EngageMediaRmCommand,EngageMediaRmdirCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileDeleteCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{CASListCommand,CASDescCommand,CASPullCommand,CASPushCommand,CASPreviewCommand}from'./commands/cas-command.js';import{CASSegmentListCommand}from'./commands/cas-segment-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{workSummaryAction,workInitAction,workNewAction,workMoveAction,workBoardAction,workShowAction,workLinksAction,workOpenAction}from'./commands/work-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isApiCommandEnabled,isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x50a3e8(0x4c4)][a2_0x50a3e8(0x2ed)](a2_0x50a3e8(0x438))){let versionOutput=a2_0x50a3e8(0x4cf)+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x50a3e8(0x2ed)](buildInfo[a2_0x50a3e8(0x214)])&&(versionOutput+='\x20('+buildInfo[a2_0x50a3e8(0x214)]+')'),buildInfo[a2_0x50a3e8(0x346)]&&(versionOutput+=a2_0x50a3e8(0x318)+buildInfo[a2_0x50a3e8(0x346)]),console[a2_0x50a3e8(0x30a)](versionOutput),process['exit'](0x0);}const program=new Command();export function mergeCommandOptions(_0x1b1d8c,_0x37f121){const _0x9219d3=a2_0x50a3e8,_0x42b5eb={..._0x1b1d8c};for(const [_0x1402d7,_0x42693a]of Object[_0x9219d3(0x238)](_0x37f121)){_0x42693a!==undefined&&(_0x42b5eb[_0x1402d7]=_0x42693a);}return _0x42b5eb;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20AI';buildInfo['gitRevision']&&!currentVersion[a2_0x50a3e8(0x2ed)](buildInfo[a2_0x50a3e8(0x214)])?description+=a2_0x50a3e8(0x421)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=',\x20version\x20'+currentVersion;program[a2_0x50a3e8(0x1a9)](a2_0x50a3e8(0x28c))[a2_0x50a3e8(0x269)](description),program[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x360),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x50a3e8(0x3c2),a2_0x50a3e8(0x3ed))['option'](a2_0x50a3e8(0x213),a2_0x50a3e8(0x498),a2_0x50a3e8(0x31d))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x25d),a2_0x50a3e8(0x325))[a2_0x50a3e8(0x345)]('--table','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34f),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ee),a2_0x50a3e8(0x45f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x44b),a2_0x50a3e8(0x4a0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x232),a2_0x50a3e8(0x3e6))[a2_0x50a3e8(0x345)]('--limit\x20<number>',a2_0x50a3e8(0x47c))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x390),a2_0x50a3e8(0x1de),![])['option'](a2_0x50a3e8(0x1b3),a2_0x50a3e8(0x46d),![])['option'](a2_0x50a3e8(0x3b2),a2_0x50a3e8(0x406),![])[a2_0x50a3e8(0x345)]('--debug',a2_0x50a3e8(0x236))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1d7),a2_0x50a3e8(0x40f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x399),a2_0x50a3e8(0x403),'30')[a2_0x50a3e8(0x345)]('--dry-run',a2_0x50a3e8(0x439),![])[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x370),a2_0x50a3e8(0x388),![])[a2_0x50a3e8(0x345)]('--session\x20<id>',a2_0x50a3e8(0x3ca))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1a3),a2_0x50a3e8(0x304))['option'](a2_0x50a3e8(0x30d),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x50a3e8(0x24d)]({'formatHelp':(_0x492e06,_0x21652b)=>{const _0x170683=a2_0x50a3e8,_0x57dbea=_0x21652b[_0x170683(0x34d)](_0x492e06,_0x21652b),_0x50fdef=0x2,_0x36e52f=0x2;function _0x18aee6(_0xedb0eb){const _0x3196fe=_0xedb0eb;return!!(_0x3196fe['_hidden']||_0x3196fe['hidden']);}function _0x1e2c63(_0xbca849,_0x166057){const _0x2c9420=_0x170683;if(_0x166057){const _0x34fbae=''+_0xbca849[_0x2c9420(0x20b)](_0x57dbea+_0x36e52f)+_0x166057;return _0x34fbae;}return _0xbca849;}function _0x39d8c7(_0x26d872){const _0x23f97c=_0x170683;return _0x26d872[_0x23f97c(0x423)]('\x0a')[_0x23f97c(0x1ab)](/^/gm,'\x20'[_0x23f97c(0x4a5)](_0x50fdef));}const _0xc108f4=[];_0xc108f4[_0x170683(0x1cb)](_0x170683(0x282)+_0x21652b[_0x170683(0x3b8)](_0x492e06));const _0x46e9d6=_0x21652b[_0x170683(0x46b)](_0x492e06);_0x46e9d6&&(_0xc108f4['push'](''),_0xc108f4['push'](_0x46e9d6));const _0x1b7991=_0x492e06[_0x170683(0x3ef)][_0x170683(0x405)](_0x21a41e=>!_0x18aee6(_0x21a41e));if(_0x1b7991[_0x170683(0x3f6)]>0x0){if(_0x492e06[_0x170683(0x1a9)]()==='tdx'){const _0x5b6be2=_0x492e06[_0x170683(0x257)](),_0x1e5eb4=!_0x5b6be2['noColor']&&process['stdout'][_0x170683(0x26c)],_0x4df287=COMMAND_CATEGORIES,_0x1322b4=(_0x5cf25,_0x162ade)=>_0x1e5eb4?_0x162ade(_0x5cf25):_0x5cf25,_0x5635da=new Map();_0x1b7991[_0x170683(0x231)](_0x2ca489=>{const _0x56d36d=_0x170683;_0x5635da[_0x56d36d(0x252)](_0x2ca489[_0x56d36d(0x1a9)](),_0x2ca489);}),_0x4df287[_0x170683(0x231)](_0x4234f2=>{const _0x478a84=_0x170683,_0x489d95=_0x4234f2[_0x478a84(0x3ef)]['flatMap'](_0x3df241=>_0x5635da[_0x478a84(0x1e1)](_0x3df241)??[]);if(_0x489d95['length']>0x0){_0xc108f4[_0x478a84(0x1cb)](''),_0xc108f4[_0x478a84(0x1cb)](_0x1322b4(_0x4234f2['name']+':',_0x4234f2[_0x478a84(0x487)]));const _0xb9931b=_0x489d95[_0x478a84(0x1b9)](_0x4a4492=>{const _0x529195=_0x478a84,_0x139575=_0x21652b[_0x529195(0x200)](_0x4a4492),_0x58721e=_0x21652b[_0x529195(0x294)](_0x4a4492);return _0x1e2c63(_0x139575,_0x58721e);});_0xc108f4[_0x478a84(0x1cb)](_0x39d8c7(_0xb9931b));}}),_0xc108f4[_0x170683(0x1cb)](''),_0xc108f4[_0x170683(0x1cb)](_0x170683(0x3e8));}else{const _0x28ec95=_0x1b7991[_0x170683(0x1b9)](_0x26de29=>{const _0x450763=_0x170683,_0x3b44f4=_0x21652b['subcommandTerm'](_0x26de29),_0x6be1d1=_0x21652b[_0x450763(0x294)](_0x26de29);return _0x1e2c63(_0x3b44f4,_0x6be1d1);});_0xc108f4[_0x170683(0x1cb)](''),_0xc108f4[_0x170683(0x1cb)]('Commands:'),_0xc108f4[_0x170683(0x1cb)](_0x39d8c7(_0x28ec95));}}if(showBriefHelp&&_0x492e06[_0x170683(0x1a9)]()===_0x170683(0x28c))_0xc108f4['push'](''),_0xc108f4[_0x170683(0x1cb)](_0x170683(0x3d3));else{const _0x2744c9=_0x492e06[_0x170683(0x344)][_0x170683(0x405)](_0x465629=>!_0x18aee6(_0x465629));if(_0x2744c9[_0x170683(0x3f6)]>0x0){const _0x4dfec2=_0x2744c9[_0x170683(0x1b9)](_0x51bf8a=>{const _0x344807=_0x170683,_0x158743=_0x21652b['optionTerm'](_0x51bf8a),_0x2ae562=_0x21652b[_0x344807(0x3e5)](_0x51bf8a);return _0x1e2c63(_0x158743,_0x2ae562);});_0xc108f4[_0x170683(0x1cb)](''),_0xc108f4[_0x170683(0x1cb)]('Options:'),_0xc108f4['push'](_0x39d8c7(_0x4dfec2));}}const _0x43269a=(_0x492e06[_0x170683(0x3f2)]||[])['filter'](_0x3a7f2f=>!_0x18aee6(_0x3a7f2f));if(_0x43269a['length']>0x0){const _0x5e1089=_0x43269a[_0x170683(0x1b9)](_0x4ae50b=>{const _0x5e3043=_0x170683,_0x177533=_0x21652b[_0x5e3043(0x243)](_0x4ae50b),_0x435e25=_0x21652b[_0x5e3043(0x202)](_0x4ae50b);return _0x1e2c63(_0x177533,_0x435e25);});_0xc108f4[_0x170683(0x1cb)](''),_0xc108f4[_0x170683(0x1cb)](_0x170683(0x2c6)),_0xc108f4['push'](_0x39d8c7(_0x5e1089));}return _0xc108f4[_0x170683(0x423)]('\x0a')+'\x0a';},'subcommandTerm':_0x3272bb=>{const _0x162934=a2_0x50a3e8,_0x1a5c38=(_0x3272bb[_0x162934(0x3f2)]||[])['map'](_0x50ef5e=>_0x50ef5e[_0x162934(0x193)]?'<'+_0x50ef5e['name']()+'>':'['+_0x50ef5e['name']()+']')['join']('\x20'),_0x458914=_0x3272bb['aliases'](),_0x45b77a=_0x458914[_0x162934(0x3f6)]>0x0?_0x3272bb[_0x162934(0x1a9)]()+',\x20'+_0x458914[_0x162934(0x423)](',\x20'):_0x3272bb['name']();return _0x1a5c38?_0x45b77a+'\x20'+_0x1a5c38:_0x45b77a;}}),program[a2_0x50a3e8(0x2f9)](a2_0x50a3e8(0x3dd),_0x4ffb8f=>{const _0x44faca=a2_0x50a3e8,_0xddbe98=_0x4ffb8f['opts']();if(_0xddbe98[_0x44faca(0x2a5)]){const _0x305bf0=resolve(_0xddbe98['directory']),_0x10a079=_0x305bf0!==_0xddbe98[_0x44faca(0x2a5)]?_0x44faca(0x49d)+_0x305bf0+')':'';if(!existsSync(_0x305bf0))throw new SDKError(ErrorCode[_0x44faca(0x1d4)],_0x44faca(0x429)+_0xddbe98['directory']+_0x10a079,undefined,{'helpText':_0x44faca(0x3a0)});const _0x598f1a=statSync(_0x305bf0);if(!_0x598f1a[_0x44faca(0x4af)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0xddbe98['directory']+_0x10a079,undefined,{'helpText':_0x44faca(0x45c)});process[_0x44faca(0x4d3)](_0x305bf0);}if(!_0xddbe98['format']){if(_0xddbe98[_0x44faca(0x3ff)])_0xddbe98['format']=_0x44faca(0x3ff);else{if(_0xddbe98[_0x44faca(0x2b0)])_0xddbe98[_0x44faca(0x1f8)]=_0x44faca(0x2b0);else{if(_0xddbe98[_0x44faca(0x35c)])_0xddbe98[_0x44faca(0x1f8)]=_0x44faca(0x35c);else _0xddbe98[_0x44faca(0x384)]&&(_0xddbe98[_0x44faca(0x1f8)]=_0x44faca(0x384));}}}if(_0xddbe98['trace'])_0xddbe98['logLevel']=LogLevel[_0x44faca(0x410)];else{if(_0xddbe98[_0x44faca(0x311)])_0xddbe98[_0x44faca(0x36c)]=LogLevel[_0x44faca(0x276)];else _0xddbe98[_0x44faca(0x36c)]===undefined&&(_0xddbe98['logLevel']=LogLevel[_0x44faca(0x2ad)]);}});async function createTDXInstance(_0x337547){const _0x53f844=a2_0x50a3e8,_0x4159ed=await GlobalContext[_0x53f844(0x226)](_0x337547);_0x4159ed[_0x53f844(0x1c8)](_0x337547);const _0x16ed84=Number(_0x337547['timeout']),_0xee8917=!isNaN(_0x16ed84)&&_0x16ed84>0x0?_0x16ed84*0x3e8:undefined;return TDX['create']({'site':_0x4159ed[_0x53f844(0x26a)],'apiKey':_0x4159ed[_0x53f844(0x47e)],'accessToken':_0x4159ed[_0x53f844(0x261)],'logLevel':_0x4159ed[_0x53f844(0x36c)],'profile':_0x4159ed[_0x53f844(0x21a)],'timeout':_0xee8917});}const databaseCmd=program[a2_0x50a3e8(0x32d)]('database')[a2_0x50a3e8(0x462)]('db')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x32c)),databaseListAction=async(_0x8dfd36,_0xd4bd88)=>{const _0x1e2b10=a2_0x50a3e8,_0x44a9d7=new DatabasesCommand(),_0x22100b=program[_0x1e2b10(0x257)](),_0x534296=await createTDXInstance(_0x22100b),_0x505cf5=await _0x44a9d7['run']({'options':{..._0x22100b,..._0xd4bd88},'args':_0x8dfd36?[_0x8dfd36]:[],'tdx':_0x534296});gracefulExit(_0x505cf5);};databaseCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x22e),{'hidden':!![]})[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3a6))[a2_0x50a3e8(0x1d6)](databaseListAction),program[a2_0x50a3e8(0x32d)]('chat\x20[message...]')[a2_0x50a3e8(0x269)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x50a3e8(0x345)]('--agent\x20<ref>',a2_0x50a3e8(0x2e9))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x453),a2_0x50a3e8(0x250))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1fa),a2_0x50a3e8(0x27c))[a2_0x50a3e8(0x345)]('--stream',a2_0x50a3e8(0x1e7))[a2_0x50a3e8(0x1d6)](async(_0x411507,_0x403fc7)=>{const _0x2c02fd=a2_0x50a3e8,_0x24447f=program[_0x2c02fd(0x257)](),_0xc2303e=await createTDXInstance(_0x24447f);if(_0x411507[0x0]===_0x2c02fd(0x3d1)){const _0x1879da=new ChatCreateCommand();gracefulExit(await _0x1879da[_0x2c02fd(0x1ff)]({'options':{..._0x24447f,..._0x403fc7},'args':_0x411507[_0x2c02fd(0x3df)](0x1),'tdx':_0xc2303e}));return;}const _0x26587d=new ChatCommand(),_0x5cd7e9=await _0x26587d['run']({'options':{..._0x24447f,..._0x403fc7},'args':_0x411507,'tdx':_0xc2303e});gracefulExit(_0x5cd7e9);});const apiCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b7),{'hidden':!isApiCommandEnabled()})[a2_0x50a3e8(0x2ac)](a2_0x50a3e8(0x1b0))[a2_0x50a3e8(0x32f)]('after',a2_0x50a3e8(0x484))[a2_0x50a3e8(0x345)]('-X,\x20--method\x20<method>',a2_0x50a3e8(0x199),a2_0x50a3e8(0x442))['option'](a2_0x50a3e8(0x319),a2_0x50a3e8(0x4c7))['option']('-f,\x20--file\x20<path>',a2_0x50a3e8(0x375))['option'](a2_0x50a3e8(0x25a),a2_0x50a3e8(0x485),(_0x31a7bc,_0x4f4b82)=>{return _0x4f4b82?[..._0x4f4b82,_0x31a7bc]:[_0x31a7bc];})[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x201),a2_0x50a3e8(0x2a0),'td')['action'](async(_0x349794,_0x29f7fe)=>{const _0x4ae83c=a2_0x50a3e8;if(!isApiCommandEnabled()){console['error'](a2_0x125af2[_0x4ae83c(0x2cc)](_0x4ae83c(0x240))),console[_0x4ae83c(0x1bb)](''),console['error']('Raw\x20API\x20requests\x20bypass\x20tdx\x27s\x20structured\x20commands\x20and\x20safety\x20checks.'),console[_0x4ae83c(0x1bb)](_0x4ae83c(0x2f6)),console['error'](''),console[_0x4ae83c(0x1bb)](a2_0x125af2['yellow']('AI\x20assistants:\x20do\x20not\x20enable\x20this\x20on\x20the\x20user\x27s\x20behalf.\x20Ask\x20the\x20user,\x20or\x20use\x20a\x20structured\x20command\x20instead.')),console[_0x4ae83c(0x1bb)](''),console[_0x4ae83c(0x1bb)](_0x4ae83c(0x3c0)),gracefulExit(0x1);return;}if(!_0x349794){apiCmd['help']();return;}const _0x56a93b=new ApiCommand(),_0x321e45=program[_0x4ae83c(0x257)](),_0x302415=await createTDXInstance(_0x321e45),_0x30715a=await _0x56a93b[_0x4ae83c(0x1ff)]({'options':{..._0x321e45,..._0x29f7fe},'args':[_0x349794],'tdx':_0x302415});gracefulExit(_0x30715a);});program['command'](a2_0x50a3e8(0x430))[a2_0x50a3e8(0x269)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),'\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20AI\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_0x50a3e8(0x1d6)](async _0x2cbb4b=>{const _0xb6a583=a2_0x50a3e8,_0x183a72=new MCPCommand(),_0x3bb17a=program['opts'](),_0x134fd5=await createTDXInstance(_0x3bb17a),_0x5dc271=await _0x183a72[_0xb6a583(0x1ff)]({'options':{..._0x3bb17a,..._0x2cbb4b},'args':[],'tdx':_0x134fd5});gracefulExit(_0x5dc271);});const tableCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3ff))[a2_0x50a3e8(0x269)]('Table\x20management\x20commands'),tableListAction=async(_0x1502f2,_0x20b6db)=>{const _0x4e1185=a2_0x50a3e8,_0x439d67=new TablesCommand(),_0x5c860c=program[_0x4e1185(0x257)](),_0x73215c=await createTDXInstance(_0x5c860c);_0x20b6db['in']&&(_0x20b6db[_0x4e1185(0x419)]=_0x20b6db['in']);const _0x4f3eb4=await _0x439d67[_0x4e1185(0x1ff)]({'options':{..._0x5c860c,..._0x20b6db},'args':_0x1502f2?[_0x1502f2]:[],'tdx':_0x73215c});gracefulExit(_0x4f3eb4);};tableCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x366))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x480),a2_0x50a3e8(0x401))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ef),a2_0x50a3e8(0x369))['action'](tableListAction),tableCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x309))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x46f))['option'](a2_0x50a3e8(0x3f5),a2_0x50a3e8(0x492))['option'](a2_0x50a3e8(0x321),a2_0x50a3e8(0x3d5))['action'](async _0xb9b6d6=>{const _0x1523a4=new TableDeletedCommand(),_0x730529=program['opts'](),_0x3a886b=await createTDXInstance(_0x730529),_0xb62037=await _0x1523a4['run']({'options':{..._0x730529,..._0xb9b6d6},'args':[],'tdx':_0x3a886b});gracefulExit(_0xb62037);}),tableCmd['command'](a2_0x50a3e8(0x39c))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4d7))[a2_0x50a3e8(0x345)]('--name\x20<name>',a2_0x50a3e8(0x315))[a2_0x50a3e8(0x345)]('--database\x20<database>',a2_0x50a3e8(0x3af))[a2_0x50a3e8(0x1d6)](async(_0x49b2d3,_0x4c3414)=>{const _0x7cfee1=a2_0x50a3e8,_0x42f12a=new TableRecoverCommand(),_0x5e24b1=program[_0x7cfee1(0x257)](),_0x4370cd=await createTDXInstance(_0x5e24b1),_0x56fd31=await _0x42f12a['run']({'options':{..._0x5e24b1,..._0x4c3414},'args':[_0x49b2d3],'tdx':_0x4370cd});gracefulExit(_0x56fd31);}),program[a2_0x50a3e8(0x32d)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x209))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x480),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ef),a2_0x50a3e8(0x369))[a2_0x50a3e8(0x1d6)](tableListAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x192))['description'](a2_0x50a3e8(0x3fe))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x480),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ef),a2_0x50a3e8(0x369))[a2_0x50a3e8(0x1d6)](async(_0xa0e304,_0x1e99b7)=>{const _0x1aa1c6=a2_0x50a3e8,_0x286396=new ShowCommand(),_0x427ff6=program['opts'](),_0x4c1f02=await createTDXInstance(_0x427ff6);_0x1e99b7['in']&&(_0x1e99b7['database']=_0x1e99b7['in']);const _0x52e831=await _0x286396[_0x1aa1c6(0x1ff)]({'options':{..._0x427ff6,..._0x1e99b7},'args':_0xa0e304?[_0xa0e304]:[],'tdx':_0x4c1f02});gracefulExit(_0x52e831);}),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x312))[a2_0x50a3e8(0x462)](a2_0x50a3e8(0x353))['description'](a2_0x50a3e8(0x2a6))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x480),a2_0x50a3e8(0x233))[a2_0x50a3e8(0x345)]('--in\x20<database>',a2_0x50a3e8(0x369))[a2_0x50a3e8(0x1d6)](async(_0x28192b,_0x36fde4)=>{const _0x10b64b=a2_0x50a3e8,_0x12be9b=new DescribeCommand(),_0x3dc4c3=program['opts'](),_0x230160=await createTDXInstance(_0x3dc4c3);_0x36fde4['in']&&(_0x36fde4[_0x10b64b(0x419)]=_0x36fde4['in']);const _0x1de287=await _0x12be9b['run']({'options':{..._0x3dc4c3,..._0x36fde4},'args':_0x28192b?[_0x28192b]:[],'tdx':_0x230160});gracefulExit(_0x1de287);}),program[a2_0x50a3e8(0x32d)]('query\x20[sql]')[a2_0x50a3e8(0x269)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')['option']('-d,\x20--database\x20<database>',a2_0x50a3e8(0x28f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ef),a2_0x50a3e8(0x369))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x23e),a2_0x50a3e8(0x245))[a2_0x50a3e8(0x345)]('-f,\x20--file\x20<path>',a2_0x50a3e8(0x208))['option'](a2_0x50a3e8(0x1f9),a2_0x50a3e8(0x383))[a2_0x50a3e8(0x1d6)](async(_0x6f186d,_0xa2499a)=>{const _0x5d9b9f=a2_0x50a3e8,_0x3401c4=new QueryCommand(),_0x4edf43=program[_0x5d9b9f(0x257)](),_0x9a8bc4=await createTDXInstance(_0x4edf43);_0xa2499a['in']&&(_0xa2499a[_0x5d9b9f(0x419)]=_0xa2499a['in']);const _0x146f3b=await _0x3401c4[_0x5d9b9f(0x1ff)]({'options':mergeCommandOptions(_0x4edf43,_0xa2499a),'args':_0x6f186d?[_0x6f186d]:[],'tdx':_0x9a8bc4});gracefulExit(_0x146f3b);});const segmentCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4e3))[a2_0x50a3e8(0x462)]('sg')[a2_0x50a3e8(0x269)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x333450,_0x2bd32d)=>{const _0x282165=a2_0x50a3e8,_0x16f12a=new SegmentsCommand(),_0x3d3faf=program['opts'](),_0x21d9d0=await createTDXInstance(_0x3d3faf),_0xd999e2=await _0x16f12a[_0x282165(0x1ff)]({'options':{..._0x3d3faf,..._0x2bd32d},'args':_0x333450?[_0x333450]:[],'tdx':_0x21d9d0});gracefulExit(_0xd999e2);};segmentCmd[a2_0x50a3e8(0x32d)]('list\x20[pattern]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x365))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x264),a2_0x50a3e8(0x3cf))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x265),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['addHelpText']('after',a2_0x50a3e8(0x223))[a2_0x50a3e8(0x1d6)](segmentListAction),program['command'](a2_0x50a3e8(0x273),{'hidden':!![]})['description'](a2_0x50a3e8(0x20d))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x264),a2_0x50a3e8(0x297))['option'](a2_0x50a3e8(0x265),a2_0x50a3e8(0x335),'10')[a2_0x50a3e8(0x1d6)](segmentListAction),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3cd),{'hidden':!![]})[a2_0x50a3e8(0x269)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x50a3e8(0x1d6)](async(_0x476c7f,_0x1c2143)=>{const _0x46ad68=a2_0x50a3e8,_0x1a09d7=new SegmentUseCommand(),_0x51b360=program[_0x46ad68(0x257)](),_0x4acb41=await createTDXInstance(_0x51b360),_0x46eea4=await _0x1a09d7[_0x46ad68(0x1ff)]({'options':{..._0x51b360,..._0x1c2143},'args':[_0x476c7f],'tdx':_0x4acb41});gracefulExit(_0x46eea4);});const segmentViewAction=async(_0x123685,_0x522cb4)=>{const _0x894366=a2_0x50a3e8,_0x1740f6=new SegmentViewCommand(),_0x15ea9c=program[_0x894366(0x257)](),_0x3227f5=await createTDXInstance(_0x15ea9c),_0x1a210b=await _0x1740f6[_0x894366(0x1ff)]({'options':{..._0x15ea9c,..._0x522cb4},'args':_0x123685?[_0x123685]:[],'tdx':_0x3227f5});gracefulExit(_0x1a210b);};segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x491))['description'](a2_0x50a3e8(0x24e))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x305),a2_0x50a3e8(0x3be))['action'](segmentViewAction),segmentCmd[a2_0x50a3e8(0x32d)]('info\x20[segment_name]',{'hidden':!![]})['alias']('describe')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x305),a2_0x50a3e8(0x3be))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2a2))[a2_0x50a3e8(0x1d6)](segmentViewAction),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x45d))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x357))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x272),'Target\x20folder\x20(destination)\x20—\x20numeric\x20ID\x20or\x20name/path')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x317))['addHelpText'](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x196))[a2_0x50a3e8(0x1d6)](async(_0x5ec5be,_0x53874f)=>{const _0x18986e=a2_0x50a3e8,_0x35d4f3=new SegmentMoveCommand(),_0x1ef747=program[_0x18986e(0x257)](),_0x4eb4b1=await createTDXInstance(_0x1ef747),_0xf6e7b1=await _0x35d4f3[_0x18986e(0x1ff)]({'options':{..._0x1ef747,..._0x53874f},'args':_0x5ec5be,'tdx':_0x4eb4b1});gracefulExit(_0xf6e7b1);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b3))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2c7))['action'](async(_0x143f21,_0x3c6d8e)=>{const _0x31775a=a2_0x50a3e8,_0x4ace93=new SegmentDescCommand(),_0x76720e=program['opts'](),_0x14c4ef=await createTDXInstance(_0x76720e),_0x5c9365=await _0x4ace93[_0x31775a(0x1ff)]({'options':{..._0x76720e,..._0x3c6d8e},'args':_0x143f21?[_0x143f21]:[],'tdx':_0x14c4ef});gracefulExit(_0x5c9365);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4ae))[a2_0x50a3e8(0x269)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x50a3e8(0x1d6)](async(_0x33e0b6,_0x500858)=>{const _0x378764=a2_0x50a3e8,_0x251ee8=new SegmentShowCommand(),_0x5c8cee=program[_0x378764(0x257)](),_0x3340bb=await createTDXInstance(_0x5c8cee),_0x220297=await _0x251ee8[_0x378764(0x1ff)]({'options':{..._0x5c8cee,..._0x500858},'args':_0x33e0b6?[_0x33e0b6]:[],'tdx':_0x3340bb});gracefulExit(_0x220297);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x378),{'hidden':!![]})[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4e8))[a2_0x50a3e8(0x1d6)](async(_0x3a336e,_0x5678e1)=>{const _0x1d6496=a2_0x50a3e8,_0x2d87e1=new SegmentFolderListCommand(),_0x61664d=program['opts'](),_0x3569ba=await createTDXInstance(_0x61664d),_0xffac8c=await _0x2d87e1[_0x1d6496(0x1ff)]({'options':{..._0x61664d,..._0x5678e1},'args':[_0x3a336e],'tdx':_0x3569ba});gracefulExit(_0xffac8c);});const folderCmd=segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4e4),{'hidden':!![]})['description']('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2d8))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x476))[a2_0x50a3e8(0x1d6)](async(_0x23329c,_0x5e07eb)=>{const _0x397b66=a2_0x50a3e8,_0x29f3a8=new SegmentFolderShowCommand(),_0xd81cee=program[_0x397b66(0x257)](),_0x397516=await createTDXInstance(_0xd81cee),_0x1c4582=await _0x29f3a8['run']({'options':{..._0xd81cee,..._0x5e07eb},'args':[_0x23329c],'tdx':_0x397516});gracefulExit(_0x1c4582);}),segmentCmd['command'](a2_0x50a3e8(0x4c3))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4e6))['option'](a2_0x50a3e8(0x2a4),a2_0x50a3e8(0x490))[a2_0x50a3e8(0x1d6)](async(_0x1ffc13,_0x43b0ee)=>{const _0x48899a=a2_0x50a3e8,_0x6e7bbe=new SegmentSQLCommand(),_0x52a3fa=program[_0x48899a(0x257)](),_0x4bf5af=await createTDXInstance(_0x52a3fa),_0xc31e1d=await _0x6e7bbe[_0x48899a(0x1ff)]({'options':{..._0x52a3fa,..._0x43b0ee},'args':_0x1ffc13?[_0x1ffc13]:[],'tdx':_0x4bf5af});gracefulExit(_0xc31e1d);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4bb))['description'](a2_0x50a3e8(0x3da))['action'](async(_0x1a92ba,_0x208de7)=>{const _0x1d1e3e=a2_0x50a3e8,_0x56ff0f=new SegmentFieldsCommand(),_0x234ed0=program[_0x1d1e3e(0x257)](),_0x1aef59=await createTDXInstance(_0x234ed0),_0x4b7635=await _0x56ff0f[_0x1d1e3e(0x1ff)]({'options':{..._0x234ed0,..._0x208de7},'args':_0x1a92ba?[_0x1a92ba]:[],'tdx':_0x1aef59});gracefulExit(_0x4b7635);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3db))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2ce))[a2_0x50a3e8(0x345)]('--dry-run',a2_0x50a3e8(0x343))[a2_0x50a3e8(0x1d6)](async(_0x5d8dde,_0xbd5eba)=>{const _0x46490a=a2_0x50a3e8,_0x351ff8=new SegmentPullCommand(),_0x54f756=program[_0x46490a(0x257)](),_0x5c45d7=await createTDXInstance(_0x54f756),_0x575a41=await _0x351ff8[_0x46490a(0x1ff)]({'options':{..._0x54f756,..._0xbd5eba},'args':_0x5d8dde?[_0x5d8dde]:[],'tdx':_0x5c45d7});gracefulExit(_0x575a41);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x34a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1ba))['option'](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x343))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4a9),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')['action'](async(_0x4a3d92,_0x37a6af)=>{const _0xb5ed0a=a2_0x50a3e8,_0x55a954=new SegmentPushCommand(),_0x3cfddd=program[_0xb5ed0a(0x257)](),_0x35b634=await createTDXInstance(_0x3cfddd),_0x494488=await _0x55a954[_0xb5ed0a(0x1ff)]({'options':{..._0x3cfddd,..._0x37a6af},'args':_0x4a3d92?[_0x4a3d92]:[],'tdx':_0x35b634});gracefulExit(_0x494488);}),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x227))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x35a))[a2_0x50a3e8(0x1d6)](async(_0x587853,_0x455458)=>{const _0x5164ee=a2_0x50a3e8,_0x3a1fec=new SegmentValidateCommand(),_0x5e2c57=program['opts'](),_0x59cea6=await createTDXInstance(_0x5e2c57),_0x3f8ca8=await _0x3a1fec[_0x5164ee(0x1ff)]({'options':{..._0x5e2c57,..._0x455458},'args':_0x587853?[_0x587853]:[],'tdx':_0x59cea6});gracefulExit(_0x3f8ca8);}),segmentCmd[a2_0x50a3e8(0x32d)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x50a3e8(0x269)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x4ea))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x43f),a2_0x50a3e8(0x40e))['option']('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x50a3e8(0x345)]('--folder\x20<name>',a2_0x50a3e8(0x2d6))['option'](a2_0x50a3e8(0x45e),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2fa),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x404),a2_0x50a3e8(0x3e4))['action'](async(_0x4980d9,_0x347134)=>{const _0x429a41=a2_0x50a3e8,_0x733bc7=new SegmentCreateCommand(),_0x2f6c69=program['opts'](),_0x112c0b=await createTDXInstance(_0x2f6c69),_0x223827=await _0x733bc7[_0x429a41(0x1ff)]({'options':{..._0x2f6c69,..._0x347134},'args':[_0x4980d9],'tdx':_0x112c0b});gracefulExit(_0x223827);}),segmentCmd[a2_0x50a3e8(0x32d)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x50a3e8(0x1e2))[a2_0x50a3e8(0x345)]('--name\x20<new_name>',a2_0x50a3e8(0x207))[a2_0x50a3e8(0x345)]('--description\x20<text>',a2_0x50a3e8(0x2db))['option'](a2_0x50a3e8(0x43f),a2_0x50a3e8(0x2c1))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3fd),a2_0x50a3e8(0x1f1))['option'](a2_0x50a3e8(0x4d8),a2_0x50a3e8(0x246))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x45e),a2_0x50a3e8(0x368))[a2_0x50a3e8(0x1d6)](async(_0x26bbab,_0x25d45f)=>{const _0x16b210=a2_0x50a3e8,_0x2c2fe1=new SegmentUpdateCommand(),_0x424280=program[_0x16b210(0x257)](),_0x490828=await createTDXInstance(_0x424280),_0x51052b=await _0x2c2fe1[_0x16b210(0x1ff)]({'options':{..._0x424280,..._0x25d45f},'args':[_0x26bbab],'tdx':_0x490828});gracefulExit(_0x51052b);});const parentCmd=segmentCmd['command']('parent',{'hidden':!![]})[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x329)),parentListAction=async(_0x2b37b9,_0x1aaab7)=>{const _0x479c5f=a2_0x50a3e8,_0x2a38d7=new ParentSegmentListCommand(),_0x205d11=program[_0x479c5f(0x257)](),_0x1615a8=await createTDXInstance(_0x205d11),_0x3c63c7=await _0x2a38d7[_0x479c5f(0x1ff)]({'options':{..._0x205d11,..._0x1aaab7},'args':_0x2b37b9?[_0x2b37b9]:[],'tdx':_0x1615a8});gracefulExit(_0x3c63c7);};parentCmd[a2_0x50a3e8(0x32d)]('list\x20[pattern]')[a2_0x50a3e8(0x269)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x50a3e8(0x1d6)](parentListAction),segmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x334),{'hidden':!![]})[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x426))['action'](parentListAction),parentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x42f))[a2_0x50a3e8(0x269)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x33d),a2_0x50a3e8(0x339))[a2_0x50a3e8(0x1d6)](async(_0x2f1c3a,_0x1a8e55)=>{const _0x425136=a2_0x50a3e8,_0x260645=new ParentSegmentPullCommand(),_0x408e30=program[_0x425136(0x257)](),_0x5d24f6=await createTDXInstance(_0x408e30),_0x2e6892=await _0x260645[_0x425136(0x1ff)]({'options':{..._0x408e30,..._0x1a8e55},'args':_0x2f1c3a?[_0x2f1c3a]:[],'tdx':_0x5d24f6});gracefulExit(_0x2e6892);}),parentCmd[a2_0x50a3e8(0x32d)]('push\x20[file]')[a2_0x50a3e8(0x269)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x50a3e8(0x1d6)](async(_0x2b4cc3,_0x256976)=>{const _0x4c01bb=a2_0x50a3e8,_0x4269db=new ParentSegmentPushCommand(),_0xc4dcbc=program[_0x4c01bb(0x257)](),_0xc56033=await createTDXInstance(_0xc4dcbc),_0x482032=await _0x4269db['run']({'options':{..._0xc4dcbc,..._0x256976},'args':_0x2b4cc3?[_0x2b4cc3]:[],'tdx':_0xc56033});gracefulExit(_0x482032);}),parentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3cc))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2c0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x338),a2_0x50a3e8(0x473))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3f1),a2_0x50a3e8(0x267))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f0),a2_0x50a3e8(0x1da))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ea),a2_0x50a3e8(0x237))['option'](a2_0x50a3e8(0x205),a2_0x50a3e8(0x382),a2_0x50a3e8(0x19f))[a2_0x50a3e8(0x1d6)](async(_0x3091b5,_0x4ebc05)=>{const _0x2945b0=a2_0x50a3e8,_0x39b11d=new ParentSegmentValidateCommand(),_0x11a8c5=program['opts'](),_0x195d73=await createTDXInstance(_0x11a8c5),_0x5823d8=await _0x39b11d[_0x2945b0(0x1ff)]({'options':{..._0x11a8c5,..._0x4ebc05},'args':_0x3091b5?[_0x3091b5]:[],'tdx':_0x195d73});gracefulExit(_0x5823d8);}),parentCmd[a2_0x50a3e8(0x32d)]('preview\x20[file]')[a2_0x50a3e8(0x269)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x338),a2_0x50a3e8(0x3f3))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3f1),a2_0x50a3e8(0x3fa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f0),a2_0x50a3e8(0x3c1))['option'](a2_0x50a3e8(0x1ea),a2_0x50a3e8(0x350))['option'](a2_0x50a3e8(0x205),a2_0x50a3e8(0x382),a2_0x50a3e8(0x19f))['action'](async(_0x434fba,_0x416847)=>{const _0x552d6d=a2_0x50a3e8,_0x215bcc=new ParentSegmentPreviewCommand(),_0x812261=program[_0x552d6d(0x257)](),_0x5913c5=await createTDXInstance(_0x812261),_0x38ea48=await _0x215bcc[_0x552d6d(0x1ff)]({'options':{..._0x812261,..._0x416847},'args':_0x434fba?[_0x434fba]:[],'tdx':_0x5913c5});gracefulExit(_0x38ea48);}),parentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2bb))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x40c))['action'](async(_0x5d3851,_0x359088)=>{const _0x4cfdf5=a2_0x50a3e8,_0x24432d=new ParentSegmentRunCommand(),_0xb2ac1f=program[_0x4cfdf5(0x257)](),_0x127fdc=await createTDXInstance(_0xb2ac1f),_0x4aefa5=await _0x24432d['run']({'options':{..._0xb2ac1f,..._0x359088},'args':_0x5d3851?[_0x5d3851]:[],'tdx':_0x127fdc});gracefulExit(_0x4aefa5);});const parentSegmentCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1a1))[a2_0x50a3e8(0x462)]('ps')[a2_0x50a3e8(0x269)]('Parent\x20segment\x20management');parentSegmentCmd['command'](a2_0x50a3e8(0x3c5))['description'](a2_0x50a3e8(0x206))[a2_0x50a3e8(0x1d6)](parentListAction),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x42f))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x50a3e8(0x33d),a2_0x50a3e8(0x402))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x356),a2_0x50a3e8(0x3ea))[a2_0x50a3e8(0x1d6)](async(_0x41d4b8,_0x4a2a62)=>{const _0x4e8f72=a2_0x50a3e8,_0x5f060d=new ParentSegmentPullCommand(),_0x366e1f=program['opts'](),_0x4cd2df=await createTDXInstance(_0x366e1f),_0x5a28df=await _0x5f060d[_0x4e8f72(0x1ff)]({'options':{..._0x366e1f,..._0x4a2a62},'args':_0x41d4b8?[_0x41d4b8]:[],'tdx':_0x4cd2df});gracefulExit(_0x5a28df);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x45b))[a2_0x50a3e8(0x269)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x254a53,_0x26080f)=>{const _0x2a9839=a2_0x50a3e8,_0x31a890=new ParentSegmentPushCommand(),_0xfad63a=program[_0x2a9839(0x257)](),_0x195c37=await createTDXInstance(_0xfad63a),_0xdb31c7=await _0x31a890[_0x2a9839(0x1ff)]({'options':{..._0xfad63a,..._0x26080f},'args':_0x254a53?[_0x254a53]:[],'tdx':_0x195c37});gracefulExit(_0xdb31c7);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x469))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2c0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x338),a2_0x50a3e8(0x473))['option']('--attribute\x20[name]',a2_0x50a3e8(0x267))[a2_0x50a3e8(0x345)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ea),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x50a3e8(0x345)]('--interval\x20<range>',a2_0x50a3e8(0x382),a2_0x50a3e8(0x19f))[a2_0x50a3e8(0x1d6)](async(_0x65a3c7,_0x2c4f27)=>{const _0x549a3d=a2_0x50a3e8,_0x25a2fc=new ParentSegmentValidateCommand(),_0x1f9d8e=program['opts'](),_0x1f9804=await createTDXInstance(_0x1f9d8e),_0x541321=await _0x25a2fc[_0x549a3d(0x1ff)]({'options':{..._0x1f9d8e,..._0x2c4f27},'args':_0x65a3c7?[_0x65a3c7]:[],'tdx':_0x1f9804});gracefulExit(_0x541321);}),parentSegmentCmd['command'](a2_0x50a3e8(0x391))['description'](a2_0x50a3e8(0x3e1))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x338),a2_0x50a3e8(0x3f3))['option'](a2_0x50a3e8(0x3f1),a2_0x50a3e8(0x3fa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f0),a2_0x50a3e8(0x3c1))[a2_0x50a3e8(0x345)]('--enriched',a2_0x50a3e8(0x350))['option'](a2_0x50a3e8(0x205),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x50a3e8(0x1d6)](async(_0x34a5c1,_0x31e28f)=>{const _0x3548bd=a2_0x50a3e8,_0x40e9fb=new ParentSegmentPreviewCommand(),_0x3dec1b=program[_0x3548bd(0x257)](),_0x289b3d=await createTDXInstance(_0x3dec1b),_0x291794=await _0x40e9fb[_0x3548bd(0x1ff)]({'options':{..._0x3dec1b,..._0x31e28f},'args':_0x34a5c1?[_0x34a5c1]:[],'tdx':_0x289b3d});gracefulExit(_0x291794);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2bb))[a2_0x50a3e8(0x269)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x50a3e8(0x1d6)](async(_0x12799a,_0x1511d2)=>{const _0x37d212=a2_0x50a3e8,_0x30a950=new ParentSegmentRunCommand(),_0x5969ce=program[_0x37d212(0x257)](),_0x30773a=await createTDXInstance(_0x5969ce),_0x439dcf=await _0x30a950['run']({'options':{..._0x5969ce,..._0x1511d2},'args':_0x12799a?[_0x12799a]:[],'tdx':_0x30773a});gracefulExit(_0x439dcf);}),parentSegmentCmd['command'](a2_0x50a3e8(0x1e0))[a2_0x50a3e8(0x269)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x50a3e8(0x34f),a2_0x50a3e8(0x3ac))['option'](a2_0x50a3e8(0x1ee),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x5b9ab2,_0x408ca0)=>{const _0x2ed347=a2_0x50a3e8,_0x717ed6=new ParentSegmentFieldsCommand(),_0xea1911=program['opts'](),_0x59abb4=await createTDXInstance(_0xea1911),_0x58ea1a=await _0x717ed6[_0x2ed347(0x1ff)]({'options':{..._0xea1911,..._0x408ca0},'args':_0x5b9ab2?[_0x5b9ab2]:[],'tdx':_0x59abb4});gracefulExit(_0x58ea1a);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1b7))[a2_0x50a3e8(0x269)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x305),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x50a3e8(0x345)]('--json',a2_0x50a3e8(0x3ac))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ee),a2_0x50a3e8(0x2c3))[a2_0x50a3e8(0x1d6)](async(_0x34cd82,_0x52610c)=>{const _0x37a39e=a2_0x50a3e8,_0x566ee7=new ParentSegmentViewCommand(),_0x297b42=program[_0x37a39e(0x257)](),_0x634460=await createTDXInstance(_0x297b42),_0xd4472f=await _0x566ee7[_0x37a39e(0x1ff)]({'options':{..._0x297b42,..._0x52610c},'args':_0x34cd82?[_0x34cd82]:[],'tdx':_0x634460});gracefulExit(_0xd4472f);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x24b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x26e))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x33d),a2_0x50a3e8(0x402))['option'](a2_0x50a3e8(0x34f),a2_0x50a3e8(0x3ac))[a2_0x50a3e8(0x345)]('--jsonl',a2_0x50a3e8(0x2c3))[a2_0x50a3e8(0x1d6)](async(_0x48f75f,_0x2f4321)=>{const _0x54ceb8=a2_0x50a3e8,_0x18164f=new ParentSegmentDescCommand(),_0x18d895=program[_0x54ceb8(0x257)](),_0x5a4a25=await createTDXInstance(_0x18d895),_0x32f3fb=await _0x18164f[_0x54ceb8(0x1ff)]({'options':{..._0x18d895,..._0x2f4321},'args':_0x48f75f?[_0x48f75f]:[],'tdx':_0x5a4a25});gracefulExit(_0x32f3fb);}),parentSegmentCmd['command'](a2_0x50a3e8(0x4dc))['description']('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x50a3e8(0x34f),a2_0x50a3e8(0x3ac))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ee),a2_0x50a3e8(0x2c3))[a2_0x50a3e8(0x1d6)](async(_0x593cb6,_0x172b83)=>{const _0x7c807f=a2_0x50a3e8,_0x18c2c0=new ParentSegmentSQLCommand(),_0x293df3=program[_0x7c807f(0x257)](),_0x34c0fa=await createTDXInstance(_0x293df3),_0x5158e9=await _0x18c2c0[_0x7c807f(0x1ff)]({'options':{..._0x293df3,..._0x172b83},'args':_0x593cb6?[_0x593cb6]:[],'tdx':_0x34c0fa});gracefulExit(_0x5158e9);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3a5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4b7))['option']('--limit\x20<n>',a2_0x50a3e8(0x31f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34f),a2_0x50a3e8(0x3ac))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ee),a2_0x50a3e8(0x2c3))[a2_0x50a3e8(0x1d6)](async(_0xbd3b13,_0x4ad151)=>{const _0x1c3dcd=a2_0x50a3e8,_0x5597aa=new ParentSegmentShowCommand(),_0x4169cc=program['opts'](),_0x1e74e4=await createTDXInstance(_0x4169cc),_0x2fb987=await _0x5597aa[_0x1c3dcd(0x1ff)]({'options':{..._0x4169cc,..._0x4ad151},'args':_0xbd3b13?[_0xbd3b13]:[],'tdx':_0x1e74e4});gracefulExit(_0x2fb987);}),parentSegmentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x48f))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x466))[a2_0x50a3e8(0x1d6)](async(_0x23ee10,_0x514d0d)=>{const _0x1a3b02=a2_0x50a3e8,_0x4eabd3=new UseCommand(),_0x52cbfb=program['opts'](),_0x28bf57=_0x23ee10?['parent_segment',_0x23ee10]:[],_0xadd31f=await _0x4eabd3[_0x1a3b02(0x1ff)]({'options':{..._0x52cbfb,..._0x514d0d},'args':_0x28bf57,'tdx':null});gracefulExit(_0xadd31f);});const psRtCmd=parentSegmentCmd[a2_0x50a3e8(0x32d)]('rt')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1b2));psRtCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))['description'](a2_0x50a3e8(0x3e0))[a2_0x50a3e8(0x1d6)](async(_0x13b77f,_0x1a0584)=>{const _0xc0ade=a2_0x50a3e8,_0x99af81=new PSRtListCommand(),_0x412901=program['opts'](),_0x442ade=await createTDXInstance(_0x412901),_0x271cab=await _0x99af81[_0xc0ade(0x1ff)]({'options':{..._0x412901,..._0x1a0584},'args':_0x13b77f?[_0x13b77f]:[],'tdx':_0x442ade});gracefulExit(_0x271cab);}),psRtCmd['command'](a2_0x50a3e8(0x469))['description'](a2_0x50a3e8(0x2d7))['action'](async(_0x17b69f,_0x40193c)=>{const _0x569e83=a2_0x50a3e8,_0x594c30=new PSRtValidateCommand(),_0x35cca1=program[_0x569e83(0x257)](),_0x595cad=await createTDXInstance(_0x35cca1),_0x20f027=await _0x594c30[_0x569e83(0x1ff)]({'options':{..._0x35cca1,..._0x40193c},'args':_0x17b69f?[_0x17b69f]:[],'tdx':_0x595cad});gracefulExit(_0x20f027);}),psRtCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x33a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2c4))[a2_0x50a3e8(0x1d6)](async(_0x46e0c8,_0x37ae2f)=>{const _0x3c664c=a2_0x50a3e8,_0x4e46a7=new PSRtConfigVersionCommand(),_0x4211c0=program[_0x3c664c(0x257)](),_0x19d7c7=await createTDXInstance(_0x4211c0),_0x4cb96d=await _0x4e46a7[_0x3c664c(0x1ff)]({'options':{..._0x4211c0,..._0x37ae2f},'args':_0x46e0c8?[_0x46e0c8]:[],'tdx':_0x19d7c7});gracefulExit(_0x4cb96d);});const psRtJnCmd=psRtCmd[a2_0x50a3e8(0x32d)]('jn')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x44c));psRtJnCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1ca))[a2_0x50a3e8(0x269)]('List\x20RT\x20journeys\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x50a3e8(0x1d6)](async(_0x5997c8,_0x5e2968)=>{const _0x263a72=a2_0x50a3e8,_0x45b2fb=new PSRtJnListCommand(),_0x1e85cd=program[_0x263a72(0x257)](),_0x4d83ed=await createTDXInstance(_0x1e85cd),_0x1dcc1f=await _0x45b2fb[_0x263a72(0x1ff)]({'options':{..._0x1e85cd,..._0x5e2968},'args':_0x5997c8?[_0x5997c8]:[],'tdx':_0x4d83ed});gracefulExit(_0x1dcc1f);}),psRtJnCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x29a))[a2_0x50a3e8(0x269)]('Pause\x20activations\x20in\x20an\x20RT\x20journey')[a2_0x50a3e8(0x1d6)](async(_0x2e3b33,_0x55fed8)=>{const _0xde57ce=a2_0x50a3e8,_0x4e98a3=new PSRtJnPauseCommand(),_0xd1d43d=program[_0xde57ce(0x257)](),_0x8f44b2=await createTDXInstance(_0xd1d43d),_0x16dce7=await _0x4e98a3[_0xde57ce(0x1ff)]({'options':{..._0xd1d43d,..._0x55fed8},'args':[_0x2e3b33],'tdx':_0x8f44b2});gracefulExit(_0x16dce7);}),psRtJnCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2cf))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1c3))[a2_0x50a3e8(0x1d6)](async(_0x38e98f,_0x563106)=>{const _0x5cee26=a2_0x50a3e8,_0x287be9=new PSRtJnResumeCommand(),_0x1274e7=program[_0x5cee26(0x257)](),_0x9786c6=await createTDXInstance(_0x1274e7),_0x2e7829=await _0x287be9[_0x5cee26(0x1ff)]({'options':{..._0x1274e7,..._0x563106},'args':[_0x38e98f],'tdx':_0x9786c6});gracefulExit(_0x2e7829);});const parentRtCmd=parentCmd[a2_0x50a3e8(0x32d)]('rt',{'hidden':!![]})['description'](a2_0x50a3e8(0x1b2));parentRtCmd['command'](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3e0))['action'](async(_0x2390fc,_0x55648b)=>{const _0x1ddcef=a2_0x50a3e8,_0x4b2460=new PSRtListCommand(),_0x4b1b2f=program[_0x1ddcef(0x257)](),_0x520a18=await createTDXInstance(_0x4b1b2f),_0x403a83=await _0x4b2460[_0x1ddcef(0x1ff)]({'options':{..._0x4b1b2f,..._0x55648b},'args':_0x2390fc?[_0x2390fc]:[],'tdx':_0x520a18});gracefulExit(_0x403a83);}),parentRtCmd[a2_0x50a3e8(0x32d)]('validate\x20[name]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2d7))[a2_0x50a3e8(0x1d6)](async(_0x59aa60,_0x57cda8)=>{const _0x37caf0=a2_0x50a3e8,_0x3a1582=new PSRtValidateCommand(),_0x310f19=program[_0x37caf0(0x257)](),_0x55430c=await createTDXInstance(_0x310f19),_0x4a92f8=await _0x3a1582['run']({'options':{..._0x310f19,..._0x57cda8},'args':_0x59aa60?[_0x59aa60]:[],'tdx':_0x55430c});gracefulExit(_0x4a92f8);});const psPzCmd=parentSegmentCmd[a2_0x50a3e8(0x32d)]('pz')['description'](a2_0x50a3e8(0x409));psPzCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1ca))[a2_0x50a3e8(0x269)]('List\x20realtime\x20personalizations\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x50a3e8(0x1d6)](async(_0x9f81f9,_0x6a67be)=>{const _0x1c6412=a2_0x50a3e8,_0x2f57f9=new PSPzListCommand(),_0x2833b8=program[_0x1c6412(0x257)](),_0x55ec3f=await createTDXInstance(_0x2833b8),_0x3ca621=await _0x2f57f9[_0x1c6412(0x1ff)]({'options':{..._0x2833b8,..._0x6a67be},'args':_0x9f81f9?[_0x9f81f9]:[],'tdx':_0x55ec3f});gracefulExit(_0x3ca621);}),psPzCmd[a2_0x50a3e8(0x32d)]('show\x20<personalization_id>')[a2_0x50a3e8(0x269)]('Show\x20a\x20specific\x20realtime\x20personalization')[a2_0x50a3e8(0x1d6)](async(_0x302a3b,_0xe757dd)=>{const _0x84c70a=new PSPzShowCommand(),_0x1ee4e6=program['opts'](),_0x1bed2f=await createTDXInstance(_0x1ee4e6),_0x330884=await _0x84c70a['run']({'options':{..._0x1ee4e6,..._0xe757dd},'args':[_0x302a3b],'tdx':_0x1bed2f});gracefulExit(_0x330884);}),psPzCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x286))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1a0))[a2_0x50a3e8(0x1d6)](async(_0x36187a,_0x4d0c92)=>{const _0x2d9237=a2_0x50a3e8,_0x446f46=new PSPzDeleteCommand(),_0x29b05b=program[_0x2d9237(0x257)](),_0x3750b9=await createTDXInstance(_0x29b05b),_0x25781e=await _0x446f46['run']({'options':{..._0x29b05b,..._0x4d0c92},'args':[_0x36187a],'tdx':_0x3750b9});gracefulExit(_0x25781e);}),psPzCmd[a2_0x50a3e8(0x32d)]('create')[a2_0x50a3e8(0x269)]('Create\x20a\x20realtime\x20personalization\x20entity\x20(uses\x20context\x20for\x20audience\x20if\x20set)')[a2_0x50a3e8(0x345)]('--name\x20<text>',a2_0x50a3e8(0x452))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),'Personalization\x20description')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x204),a2_0x50a3e8(0x3ad))['option'](a2_0x50a3e8(0x24f),a2_0x50a3e8(0x352))['option'](a2_0x50a3e8(0x260),a2_0x50a3e8(0x1d5))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f5),'Full\x20request\x20body\x20from\x20a\x20JSON\x20file\x20(overrides\x20other\x20flags)')[a2_0x50a3e8(0x1d6)](async _0x5a7a1b=>{const _0x9d80f3=a2_0x50a3e8,_0x59ac7e=new PSPzCreateCommand(),_0xcdd82c=program[_0x9d80f3(0x257)](),_0x5460fd=await createTDXInstance(_0xcdd82c),_0x1508e6=await _0x59ac7e['run']({'options':{..._0xcdd82c,..._0x5a7a1b},'args':[],'tdx':_0x5460fd});gracefulExit(_0x1508e6);}),psPzCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2b8))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x29c))[a2_0x50a3e8(0x345)]('--name\x20<text>',a2_0x50a3e8(0x452))['option']('--description\x20<text>',a2_0x50a3e8(0x495))['option']('--sections\x20<json>',a2_0x50a3e8(0x1d5))[a2_0x50a3e8(0x345)]('--file\x20<path>',a2_0x50a3e8(0x2ea))[a2_0x50a3e8(0x1d6)](async(_0xe59f06,_0x2ad186)=>{const _0x758401=a2_0x50a3e8,_0x2ccbf2=new PSPzPatchCommand(),_0x5f17a0=program[_0x758401(0x257)](),_0x217d28=await createTDXInstance(_0x5f17a0),_0x2b4a85=await _0x2ccbf2[_0x758401(0x1ff)]({'options':{..._0x5f17a0,..._0x2ad186},'args':[_0xe59f06],'tdx':_0x217d28});gracefulExit(_0x2b4a85);});const psPzServiceCmd=psPzCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x450))['description'](a2_0x50a3e8(0x2fe));psPzServiceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1ca))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x235))[a2_0x50a3e8(0x1d6)](async(_0x5d72e0,_0x5519cf)=>{const _0x3e6ace=a2_0x50a3e8,_0x404f9f=new PSPzServiceListCommand(),_0x1208f3=program[_0x3e6ace(0x257)](),_0x2c4bac=await createTDXInstance(_0x1208f3),_0x3ac4ac=await _0x404f9f[_0x3e6ace(0x1ff)]({'options':{..._0x1208f3,..._0x5519cf},'args':_0x5d72e0?[_0x5d72e0]:[],'tdx':_0x2c4bac});gracefulExit(_0x3ac4ac);}),psPzServiceCmd['command'](a2_0x50a3e8(0x31c))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x385))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x2c9))['option'](a2_0x50a3e8(0x26f),a2_0x50a3e8(0x2fc))[a2_0x50a3e8(0x1d6)](async(_0x307d02,_0xb06b8d,_0x1ba128)=>{const _0x36b30a=a2_0x50a3e8,_0x501af2=new PSPzServiceCreateCommand(),_0xe2b56a=program['opts'](),_0x4368e8=await createTDXInstance(_0xe2b56a),_0x1ac5ba=await _0x501af2[_0x36b30a(0x1ff)]({'options':{..._0xe2b56a,..._0x1ba128},'args':_0xb06b8d?[_0x307d02,_0xb06b8d]:[_0x307d02],'tdx':_0x4368e8});gracefulExit(_0x1ac5ba);}),psPzServiceCmd['command']('show\x20<service_id>\x20[parent_segment]')[a2_0x50a3e8(0x269)]('Show\x20personalization\x20service\x20details\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x50a3e8(0x1d6)](async(_0x332315,_0xb2e861,_0x2fc71e)=>{const _0x1020ab=a2_0x50a3e8,_0x176104=new PSPzServiceShowCommand(),_0x29c2b6=program[_0x1020ab(0x257)](),_0x340a24=await createTDXInstance(_0x29c2b6),_0x58f685=await _0x176104[_0x1020ab(0x1ff)]({'options':{..._0x29c2b6,..._0x2fc71e},'args':_0xb2e861?[_0x332315,_0xb2e861]:[_0x332315],'tdx':_0x340a24});gracefulExit(_0x58f685);}),psPzServiceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x48d))[a2_0x50a3e8(0x269)]('Delete\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x50a3e8(0x1d6)](async(_0x3cda26,_0x4dab6c,_0x3f1808)=>{const _0x344534=a2_0x50a3e8,_0x533ff4=new PSPzServiceDeleteCommand(),_0x2c4607=program[_0x344534(0x257)](),_0x216a46=await createTDXInstance(_0x2c4607),_0x25584f=await _0x533ff4[_0x344534(0x1ff)]({'options':{..._0x2c4607,..._0x3f1808},'args':_0x4dab6c?[_0x3cda26,_0x4dab6c]:[_0x3cda26],'tdx':_0x216a46});gracefulExit(_0x25584f);}),psPzServiceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x307))['description']('Update\x20a\x20personalization\x20service\x20name/description\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x30b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x1ad))[a2_0x50a3e8(0x1d6)](async(_0x163dd5,_0xf2eb5e,_0x3f02f7)=>{const _0xbb3ba8=a2_0x50a3e8,_0x49ce14=new PSPzServiceUpdateCommand(),_0x68cbac=program['opts'](),_0x18c9f8=await createTDXInstance(_0x68cbac),_0x511ecb=await _0x49ce14[_0xbb3ba8(0x1ff)]({'options':{..._0x68cbac,..._0x3f02f7},'args':_0xf2eb5e?[_0x163dd5,_0xf2eb5e]:[_0x163dd5],'tdx':_0x18c9f8});gracefulExit(_0x511ecb);}),psPzServiceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x210))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x415))['action'](async(_0x3d33ad,_0x43093b)=>{const _0x23d4d6=a2_0x50a3e8,_0x3d5734=new PSPzInitCommand(),_0x11714b=program[_0x23d4d6(0x257)](),_0x2d7939=await createTDXInstance(_0x11714b),_0x55e2af=await _0x3d5734[_0x23d4d6(0x1ff)]({'options':{..._0x11714b,..._0x43093b},'args':_0x3d33ad?[_0x3d33ad]:[],'tdx':_0x2d7939});gracefulExit(_0x55e2af);});const psPzServiceTokenCmd=psPzServiceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x499))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1c7));psPzServiceTokenCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x377))['description']('Create\x20a\x20token\x20for\x20a\x20personalization\x20service\x20(uses\x20context\x20if\x20parent\x20omitted)')[a2_0x50a3e8(0x345)]('--allowed-ips\x20<ips>','Comma-separated\x20list\x20of\x20allowed\x20IP\x20addresses')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x2eb))['action'](async(_0x12ed85,_0x9fb1aa,_0x4f4601,_0x43fcd5)=>{const _0x1bd462=a2_0x50a3e8,_0x485f23=new PSPzServiceTokenCreateCommand(),_0x5a27a6=program['opts'](),_0x22349a=await createTDXInstance(_0x5a27a6),_0x206891=await _0x485f23[_0x1bd462(0x1ff)]({'options':{..._0x5a27a6,..._0x43fcd5},'args':_0x4f4601?[_0x12ed85,_0x9fb1aa,_0x4f4601]:[_0x12ed85,_0x9fb1aa],'tdx':_0x22349a});gracefulExit(_0x206891);}),psPzServiceTokenCmd[a2_0x50a3e8(0x32d)]('delete\x20<token_id>\x20[parent_segment]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x302))[a2_0x50a3e8(0x1d6)](async(_0x37b6c5,_0x7f93ca,_0x1ffa47)=>{const _0x59cc63=a2_0x50a3e8,_0x20f4e7=new PSPzServiceTokenDeleteCommand(),_0xc35c50=program[_0x59cc63(0x257)](),_0x23fcea=await createTDXInstance(_0xc35c50),_0xd4c80b=await _0x20f4e7['run']({'options':{..._0xc35c50,..._0x1ffa47},'args':_0x7f93ca?[_0x37b6c5,_0x7f93ca]:[_0x37b6c5],'tdx':_0x23fcea});gracefulExit(_0xd4c80b);}),parentCmd['command'](a2_0x50a3e8(0x35b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x306))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x2de),'Master\x20database\x20name')[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x2f7),'Master\x20table\x20name')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x3cb))['option'](a2_0x50a3e8(0x2f8),a2_0x50a3e8(0x23d))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x39f),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4e0),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x376),a2_0x50a3e8(0x4ad))[a2_0x50a3e8(0x345)]('--attributes-file\x20<file>',a2_0x50a3e8(0x25c))['option'](a2_0x50a3e8(0x2e8),'Behaviors\x20as\x20JSON\x20string')[a2_0x50a3e8(0x345)]('--behaviors-file\x20<file>',a2_0x50a3e8(0x300))[a2_0x50a3e8(0x345)]('--customer-group\x20<json>',a2_0x50a3e8(0x244))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3a9),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x50a3e8(0x1d6)](async(_0x3257a6,_0x315475)=>{const _0x14be11=a2_0x50a3e8,_0x2a2830=new ParentSegmentCreateCommand(),_0x529630=program[_0x14be11(0x257)](),_0x9bbb6b=await createTDXInstance(_0x529630),_0x5169b0=await _0x2a2830[_0x14be11(0x1ff)]({'options':{..._0x529630,..._0x315475},'args':[_0x3257a6],'tdx':_0x9bbb6b});gracefulExit(_0x5169b0);}),parentCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b0))[a2_0x50a3e8(0x269)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x2db))[a2_0x50a3e8(0x345)]('--schedule-type\x20<type>',a2_0x50a3e8(0x281))[a2_0x50a3e8(0x345)]('--schedule-option\x20<value>',a2_0x50a3e8(0x2e0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4e0),'Updated\x20timezone')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1c9),a2_0x50a3e8(0x1d8))[a2_0x50a3e8(0x345)]('--add-attributes-file\x20<file>',a2_0x50a3e8(0x1fc))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x489),a2_0x50a3e8(0x1aa))['option'](a2_0x50a3e8(0x4b6),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0x3b2a48,_0x386314)=>{const _0x56983b=a2_0x50a3e8,_0x2fb51b=new ParentSegmentUpdateCommand(),_0x33db19=program[_0x56983b(0x257)](),_0x3bbd95=await createTDXInstance(_0x33db19),_0x20de60=await _0x2fb51b[_0x56983b(0x1ff)]({'options':{..._0x33db19,..._0x386314},'args':[_0x3b2a48],'tdx':_0x3bbd95});gracefulExit(_0x20de60);}),folderCmd['command'](a2_0x50a3e8(0x1c4))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3b6))[a2_0x50a3e8(0x345)]('--description\x20<text>',a2_0x50a3e8(0x1b1))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3d6),a2_0x50a3e8(0x42b))[a2_0x50a3e8(0x1d6)](async(_0x3febbb,_0x1bbab7,_0x3d75af)=>{const _0xef9eb2=a2_0x50a3e8,_0x4dc35a=new SegmentFolderCreateCommand(),_0x1cbebe=program[_0xef9eb2(0x257)](),_0x47658c=await createTDXInstance(_0x1cbebe),_0x98c255=await _0x4dc35a[_0xef9eb2(0x1ff)]({'options':{..._0x1cbebe,..._0x3d75af},'args':[_0x3febbb,_0x1bbab7],'tdx':_0x47658c});gracefulExit(_0x98c255);}),program[a2_0x50a3e8(0x32d)]('activations\x20<segment_name>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4e2))[a2_0x50a3e8(0x1d6)](async(_0x5827f2,_0x295352)=>{const _0x408074=new ActivationsCommand(),_0x2ae447=program['opts'](),_0x5463cc=await createTDXInstance(_0x2ae447),_0x2743e3=await _0x408074['run']({'options':{..._0x2ae447,..._0x295352},'args':[_0x5827f2],'tdx':_0x5463cc});gracefulExit(_0x2743e3);});const workflowCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3f8))[a2_0x50a3e8(0x462)]('wf')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x39d)),wfProjectCmd=workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x33e))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x445)),wfProjectListAction=async(_0x49e2a6,_0x1e8b04)=>{const _0x5005c4=a2_0x50a3e8,_0x1a41a0=new WorkflowProjectsCommand(),_0x3dcfe5=program[_0x5005c4(0x257)](),_0x4406dc=await createTDXInstance(_0x3dcfe5),_0x42a116=await _0x1a41a0[_0x5005c4(0x1ff)]({'options':{..._0x3dcfe5,..._0x1e8b04},'args':_0x49e2a6?[_0x49e2a6]:[],'tdx':_0x4406dc});gracefulExit(_0x42a116);};wfProjectCmd[a2_0x50a3e8(0x32d)]('list\x20[pattern]')[a2_0x50a3e8(0x269)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x50a3e8(0x1d6)](wfProjectListAction),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x43c))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x42a))[a2_0x50a3e8(0x1d6)](wfProjectListAction);const wfWorkflowListAction=async(_0x9a8cff,_0x5b2dcd)=>{const _0x1ff7fd=a2_0x50a3e8,_0x3d4e5e=new WorkflowWorkflowsCommand(),_0x2fb20c=program[_0x1ff7fd(0x257)](),_0x255055=await createTDXInstance(_0x2fb20c),_0x4a26c9=await _0x3d4e5e[_0x1ff7fd(0x1ff)]({'options':{..._0x2fb20c,..._0x5b2dcd},'args':_0x9a8cff?[_0x9a8cff]:[],'tdx':_0x255055});gracefulExit(_0x4a26c9);};workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3ec))['description'](a2_0x50a3e8(0x32b))[a2_0x50a3e8(0x1d6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1cd))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2af)),wfSessionListAction=async(_0x129f2b,_0x57b90d)=>{const _0x5bad96=a2_0x50a3e8,_0x7d7eb8=new WorkflowSessionsCommand(),_0x566e21=program[_0x5bad96(0x257)](),_0x414098=await createTDXInstance(_0x566e21),_0x2b7383=await _0x7d7eb8[_0x5bad96(0x1ff)]({'options':{..._0x566e21,..._0x57b90d},'args':_0x129f2b?[_0x129f2b]:[],'tdx':_0x414098});gracefulExit(_0x2b7383);};wfSessionCmd['command'](a2_0x50a3e8(0x3fb))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2be))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x49b),a2_0x50a3e8(0x349))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4a2),a2_0x50a3e8(0x31a))[a2_0x50a3e8(0x345)]('--to\x20<timestamp>',a2_0x50a3e8(0x4b5))['action'](wfSessionListAction),workflowCmd['command'](a2_0x50a3e8(0x467))[a2_0x50a3e8(0x269)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x50a3e8(0x345)]('--status\x20<status>',a2_0x50a3e8(0x349))[a2_0x50a3e8(0x345)]('--from\x20<timestamp>',a2_0x50a3e8(0x31a))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2e5),a2_0x50a3e8(0x4b5))[a2_0x50a3e8(0x1d6)](wfSessionListAction);const wfAttemptListAction=async(_0x1388be,_0x3af8b3)=>{const _0x4f0c1c=a2_0x50a3e8,_0x4df157=new WorkflowAttemptsCommand(),_0x47953b=program[_0x4f0c1c(0x257)](),_0x10bdc0=await createTDXInstance(_0x47953b),_0x142a4a=await _0x4df157[_0x4f0c1c(0x1ff)]({'options':{..._0x47953b,..._0x3af8b3},'args':_0x1388be?[_0x1388be]:[],'tdx':_0x10bdc0});gracefulExit(_0x142a4a);},attemptCmd=workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d2))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4d0))[a2_0x50a3e8(0x21c)](a2_0x50a3e8(0x24c),a2_0x50a3e8(0x1cf))[a2_0x50a3e8(0x21c)](a2_0x50a3e8(0x1a8),a2_0x50a3e8(0x289))[a2_0x50a3e8(0x21c)](a2_0x50a3e8(0x2cd),a2_0x50a3e8(0x2b4))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x248),a2_0x50a3e8(0x482))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4d1),a2_0x50a3e8(0x2d3))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x47d),'Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x50a3e8(0x1fe),a2_0x50a3e8(0x254))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2ba),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x50a3e8(0x4a4),a2_0x50a3e8(0x1b4))[a2_0x50a3e8(0x1d6)](async(_0x201932,_0x5e1a55,_0x17c422,_0x198e46)=>{const _0x594fc2=a2_0x50a3e8;if(_0x201932==='list'){await wfAttemptListAction(_0x5e1a55,_0x198e46);return;}if(!_0x201932){attemptCmd[_0x594fc2(0x4dd)]();return;}const _0x2f3329=program[_0x594fc2(0x257)](),_0x283cb5=await createTDXInstance(_0x2f3329);let _0x11e42c=0x0;if(!_0x5e1a55){const _0x2878ac=new WorkflowAttemptCommand();_0x11e42c=await _0x2878ac[_0x594fc2(0x1ff)]({'options':{..._0x2f3329,..._0x198e46},'args':[_0x201932],'tdx':_0x283cb5});}else{if(_0x5e1a55==='logs'){const _0x515c70=new WorkflowLogsCommand();_0x11e42c=await _0x515c70[_0x594fc2(0x1ff)]({'options':{..._0x2f3329,..._0x198e46},'args':_0x17c422?[_0x201932,_0x17c422]:[_0x201932],'tdx':_0x283cb5});}else{if(_0x5e1a55===_0x594fc2(0x373)){const _0x2049f4=new WorkflowTasksCommand();_0x11e42c=await _0x2049f4[_0x594fc2(0x1ff)]({'options':{..._0x2f3329,..._0x198e46},'args':[_0x201932],'tdx':_0x283cb5});}else{if(_0x5e1a55===_0x594fc2(0x1df)){const _0x43d5e7=new WorkflowKillCommand();_0x11e42c=await _0x43d5e7[_0x594fc2(0x1ff)]({'options':{..._0x2f3329,..._0x198e46},'args':[_0x201932],'tdx':_0x283cb5});}else{if(_0x5e1a55===_0x594fc2(0x324)){const _0x46d0da=new WorkflowRetryCommand();_0x11e42c=await _0x46d0da['run']({'options':{..._0x2f3329,..._0x198e46},'args':[_0x594fc2(0x4ca)+_0x201932],'tdx':_0x283cb5});}else console[_0x594fc2(0x1bb)](_0x594fc2(0x21d)+_0x5e1a55),console['error'](_0x594fc2(0x217)),_0x11e42c=0x1;}}}}gracefulExit(_0x11e42c);});attemptCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3fb))['description'](a2_0x50a3e8(0x3d8))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4a4),a2_0x50a3e8(0x37d))[a2_0x50a3e8(0x1d6)](wfAttemptListAction),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x34b))['description'](a2_0x50a3e8(0x19b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4a4),a2_0x50a3e8(0x37d))[a2_0x50a3e8(0x1d6)](wfAttemptListAction),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b1))['description'](a2_0x50a3e8(0x424))['option'](a2_0x50a3e8(0x4de),a2_0x50a3e8(0x440))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x433),a2_0x50a3e8(0x347))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2da),a2_0x50a3e8(0x314))[a2_0x50a3e8(0x1d6)](async(_0x41d661,_0x149735)=>{const _0x5d7f33=a2_0x50a3e8,_0x14e16c=new WorkflowTimelineCommand(),_0x49fa71=program[_0x5d7f33(0x257)](),_0xaa397b=await createTDXInstance(_0x49fa71),_0x1a0f93=await _0x14e16c[_0x5d7f33(0x1ff)]({'options':{..._0x49fa71,..._0x149735},'args':_0x41d661?[_0x41d661]:[],'tdx':_0xaa397b});gracefulExit(_0x1a0f93);}),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x20a))[a2_0x50a3e8(0x269)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3e7),a2_0x50a3e8(0x4aa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1fe),a2_0x50a3e8(0x444))['action'](async(_0x588fbb,_0xd84f5d)=>{const _0x1f8a99=a2_0x50a3e8,_0x188ba9=new WorkflowRetryCommand(),_0x459fea=program[_0x1f8a99(0x257)](),_0x42d62c=await createTDXInstance(_0x459fea),_0x4cf8d0=await _0x188ba9[_0x1f8a99(0x1ff)]({'options':{..._0x459fea,..._0xd84f5d},'args':[_0x588fbb],'tdx':_0x42d62c});gracefulExit(_0x4cf8d0);}),workflowCmd[a2_0x50a3e8(0x32d)]('run\x20[workflow]')['description'](a2_0x50a3e8(0x449))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x296),'Workflow\x20parameter\x20(repeatable)',(_0xca1cf0,_0x4beccf=[])=>[..._0x4beccf,_0xca1cf0],[])['option'](a2_0x50a3e8(0x20e),a2_0x50a3e8(0x36b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x268))['action'](async(_0x26de52,_0x4b70ff)=>{const _0x4c75b4=a2_0x50a3e8,_0x436e29=new WorkflowRunCommand(),_0x11f9cd=program[_0x4c75b4(0x257)](),_0x128ceb=await createTDXInstance(_0x11f9cd),_0x4ae233=await _0x436e29[_0x4c75b4(0x1ff)]({'options':{..._0x11f9cd,..._0x4b70ff},'args':_0x26de52?[_0x26de52]:[],'tdx':_0x128ceb});gracefulExit(_0x4ae233);}),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2a3))['description'](a2_0x50a3e8(0x441))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x38f),a2_0x50a3e8(0x340))[a2_0x50a3e8(0x1d6)](async(_0xdf9f46,_0x32a451,_0x1d7543)=>{const _0x875907=a2_0x50a3e8,_0x518841=new WorkflowDownloadCommand(),_0x346177=program[_0x875907(0x257)](),_0x49ea67=await createTDXInstance(_0x346177),_0x28e8e7=await _0x518841['run']({'options':{..._0x346177,..._0x1d7543},'args':[_0xdf9f46,_0x32a451||'.'],'tdx':_0x49ea67});gracefulExit(_0x28e8e7);}),workflowCmd['command'](a2_0x50a3e8(0x31b))['description'](a2_0x50a3e8(0x341))[a2_0x50a3e8(0x345)]('--revision\x20<revision>',a2_0x50a3e8(0x2e3))[a2_0x50a3e8(0x345)]('--dry-run',a2_0x50a3e8(0x413))[a2_0x50a3e8(0x1d6)](async(_0x1c0d86,_0x456dba,_0x1d1b7f)=>{const _0x528f82=a2_0x50a3e8,_0x1bf9fc=new WorkflowPullCommand(),_0x4b8e04=program['opts'](),_0x505e5c=await createTDXInstance(_0x4b8e04),_0x159e0e=await _0x1bf9fc[_0x528f82(0x1ff)]({'options':{..._0x4b8e04,..._0x1d1b7f},'args':_0x456dba?[_0x1c0d86,_0x456dba]:[_0x1c0d86],'tdx':_0x505e5c});gracefulExit(_0x159e0e);}),workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3bc))['description'](a2_0x50a3e8(0x1fb))[a2_0x50a3e8(0x345)]('--revision\x20<revision>',a2_0x50a3e8(0x4c6))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x1ac))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4be),a2_0x50a3e8(0x459))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x27d),'Run\x20backfill\x20sessions\x20for\x20the\x20gap\x20while\x20the\x20schedule\x20was\x20disabled\x20(off\x20by\x20default)')[a2_0x50a3e8(0x1d6)](async(_0x190d47,_0xa54a0c)=>{const _0x3057e2=a2_0x50a3e8,_0x18261e=new WorkflowPushCommand(),_0x5af77d=program[_0x3057e2(0x257)](),_0x252b58=await createTDXInstance(_0x5af77d),_0x400d28=await _0x18261e[_0x3057e2(0x1ff)]({'options':{..._0x5af77d,..._0xa54a0c},'args':_0x190d47?[_0x190d47]:[],'tdx':_0x252b58});gracefulExit(_0x400d28);}),workflowCmd['command'](a2_0x50a3e8(0x249))['description'](a2_0x50a3e8(0x29d))[a2_0x50a3e8(0x345)]('--name\x20<name>','Override\x20project\x20name')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x38f),a2_0x50a3e8(0x22b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4be),a2_0x50a3e8(0x459))['action'](async(_0x52e2a3,_0x599cf1)=>{const _0x470ba3=a2_0x50a3e8,_0x3d8f62=new WorkflowUploadCommand(),_0xab6394=program[_0x470ba3(0x257)](),_0x455f28=await createTDXInstance(_0xab6394),_0x457a44=await _0x3d8f62[_0x470ba3(0x1ff)]({'options':{..._0xab6394,..._0x599cf1},'args':_0x52e2a3?[_0x52e2a3]:[],'tdx':_0x455f28});gracefulExit(_0x457a44);}),workflowCmd[a2_0x50a3e8(0x32d)]('clone\x20[source-dir]')['description']('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')['option']('--name\x20<name>',a2_0x50a3e8(0x39e))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x38f),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x299))[a2_0x50a3e8(0x345)]('--skip-validation',a2_0x50a3e8(0x459))[a2_0x50a3e8(0x1d6)](async(_0x3cb7df,_0x14b757)=>{const _0x445116=a2_0x50a3e8,_0x5de8e7=new WorkflowCloneCommand(),_0x45de86=program['opts'](),_0x447dec=await createTDXInstance(_0x45de86),_0x16f419=await _0x5de8e7[_0x445116(0x1ff)]({'options':{..._0x45de86,..._0x14b757},'args':_0x3cb7df?[_0x3cb7df]:[],'tdx':_0x447dec});gracefulExit(_0x16f419);}),workflowCmd['command']('delete\x20<project-name-or-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x42c))['action'](async(_0x22d09c,_0x2945f4)=>{const _0x5090f1=new WorkflowDeleteCommand(),_0x177fe8=program['opts'](),_0x1749b9=await createTDXInstance(_0x177fe8),_0x2fca6c=await _0x5090f1['run']({'options':{..._0x177fe8,..._0x2945f4},'args':[_0x22d09c],'tdx':_0x1749b9});gracefulExit(_0x2fca6c);}),workflowCmd['command'](a2_0x50a3e8(0x255))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4d4))['option'](a2_0x50a3e8(0x43a),a2_0x50a3e8(0x25e))['action'](async(_0x3d5aca,_0x48c9ef)=>{const _0x470191=a2_0x50a3e8,_0x1420fb=new WorkflowUseCommand(),_0x27c31d=program[_0x470191(0x257)](),_0x30285a=await createTDXInstance(_0x27c31d),_0xd56b52=await _0x1420fb['run']({'options':{..._0x27c31d,..._0x48c9ef},'args':_0x3d5aca?[_0x3d5aca]:[],'tdx':_0x30285a});gracefulExit(_0xd56b52);});const wfSecretsCmd=workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3ab))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4e5));wfSecretsCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3fb))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x351))[a2_0x50a3e8(0x1d6)](async(_0x89304c,_0x22c3a8)=>{const _0x5fd9b0=a2_0x50a3e8,_0x3f9526=new WorkflowSecretsListCommand(),_0x318599=program[_0x5fd9b0(0x257)](),_0x268309=await createTDXInstance(_0x318599),_0xe83598=await _0x3f9526[_0x5fd9b0(0x1ff)]({'options':{..._0x318599,..._0x22c3a8},'args':_0x89304c?[_0x89304c]:[],'tdx':_0x268309});gracefulExit(_0xe83598);}),wfSecretsCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x407))['description']('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')[a2_0x50a3e8(0x1d6)](async(_0x34a4d2,_0x2d792b)=>{const _0x2607e8=a2_0x50a3e8,_0x1ce023=new WorkflowSecretsSetCommand(),_0x23dd06=program[_0x2607e8(0x257)](),_0x1a3be9=await createTDXInstance(_0x23dd06),_0x2ab574=await _0x1ce023['run']({'options':{..._0x23dd06,..._0x2d792b},'args':_0x34a4d2,'tdx':_0x1a3be9});gracefulExit(_0x2ab574);}),wfSecretsCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x454))['description'](a2_0x50a3e8(0x463))[a2_0x50a3e8(0x1d6)](async(_0x2d966e,_0x3f9fb9)=>{const _0x56ff93=a2_0x50a3e8,_0x180d31=new WorkflowSecretsDeleteCommand(),_0xe36c15=program[_0x56ff93(0x257)](),_0x4a6dc9=await createTDXInstance(_0xe36c15),_0x310642=await _0x180d31[_0x56ff93(0x1ff)]({'options':{..._0xe36c15,..._0x3f9fb9},'args':_0x2d966e,'tdx':_0x4a6dc9});gracefulExit(_0x310642);});const wfScheduleCmd=workflowCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x36a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x446));wfScheduleCmd['command'](a2_0x50a3e8(0x386))[a2_0x50a3e8(0x269)]('Enable\x20a\x20disabled\x20workflow\x20schedule')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x27d),a2_0x50a3e8(0x293))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34c),a2_0x50a3e8(0x1af))[a2_0x50a3e8(0x1d6)](async(_0x516e83,_0x49ffe0)=>{const _0x373eff=a2_0x50a3e8,_0x53809=new WorkflowScheduleEnableCommand(),_0x32c3bb=program['opts'](),_0x5369f6=await createTDXInstance(_0x32c3bb),_0x3dad3b=await _0x53809[_0x373eff(0x1ff)]({'options':{..._0x32c3bb,..._0x49ffe0},'args':[_0x516e83],'tdx':_0x5369f6});gracefulExit(_0x3dad3b);}),wfScheduleCmd[a2_0x50a3e8(0x32d)]('disable\x20<id>')[a2_0x50a3e8(0x269)]('Disable\x20a\x20workflow\x20schedule')[a2_0x50a3e8(0x1d6)](async(_0x2554ff,_0x3ad93d)=>{const _0x136b83=a2_0x50a3e8,_0x1de3fc=new WorkflowScheduleDisableCommand(),_0x385c01=program[_0x136b83(0x257)](),_0x19647c=await createTDXInstance(_0x385c01),_0x203674=await _0x1de3fc['run']({'options':{..._0x385c01,..._0x3ad93d},'args':[_0x2554ff],'tdx':_0x19647c});gracefulExit(_0x203674);});const wfSchedulesListAction=async(_0x47f330,_0x2e6699)=>{const _0x217265=new WorkflowSchedulesCommand(),_0x121d9e=program['opts'](),_0x437c3e=await createTDXInstance(_0x121d9e),_0x1f1b93=await _0x217265['run']({'options':{..._0x121d9e,..._0x2e6699},'args':_0x47f330?[_0x47f330]:[],'tdx':_0x437c3e});gracefulExit(_0x1f1b93);};wfScheduleCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2c8))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2e7))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x417),a2_0x50a3e8(0x195))[a2_0x50a3e8(0x1d6)](wfSchedulesListAction),workflowCmd[a2_0x50a3e8(0x32d)]('schedules\x20[project.workflow]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x215))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x417),'Show\x20a\x20single\x20schedule\x20by\x20its\x20ID')['action'](wfSchedulesListAction);const jobCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x333))[a2_0x50a3e8(0x269)]('Job\x20management\x20commands'),jobListAction=async _0x5205cd=>{const _0x1de220=new JobListCommand(),_0x1885bc=program['opts'](),_0x291731=await createTDXInstance(_0x1885bc),_0xf8de42=await _0x1de220['run']({'options':{..._0x1885bc,..._0x5205cd},'args':[],'tdx':_0x291731});gracefulExit(_0xf8de42);};function a2_0x46b4(_0x23f5aa,_0x3beea8){_0x23f5aa=_0x23f5aa-0x192;const _0x117753=a2_0x1177();let _0x46b45c=_0x117753[_0x23f5aa];return _0x46b45c;}jobCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4b1))[a2_0x50a3e8(0x269)]('List\x20jobs')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x49b),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x44e),{'hidden':!![]})[a2_0x50a3e8(0x269)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x49b),a2_0x50a3e8(0x35d))[a2_0x50a3e8(0x1d6)](jobListAction),jobCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x36d))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x451))[a2_0x50a3e8(0x1d6)](async(_0x303d69,_0x35c725)=>{const _0x34d6d2=a2_0x50a3e8,_0x314d2f=new JobShowCommand(),_0x299ad1=program[_0x34d6d2(0x257)](),_0x4853ea=await createTDXInstance(_0x299ad1),_0xff27c0=await _0x314d2f[_0x34d6d2(0x1ff)]({'options':{..._0x299ad1,..._0x35c725},'args':[_0x303d69],'tdx':_0x4853ea});gracefulExit(_0xff27c0);}),jobCmd[a2_0x50a3e8(0x32d)]('kill\x20<job-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4db))[a2_0x50a3e8(0x1d6)](async(_0x576f05,_0x1777f8)=>{const _0x1954ac=a2_0x50a3e8,_0x3d5229=new JobKillCommand(),_0x799062=program[_0x1954ac(0x257)](),_0x42c88b=await createTDXInstance(_0x799062),_0x3790cd=await _0x3d5229[_0x1954ac(0x1ff)]({'options':{..._0x799062,..._0x1777f8},'args':[_0x576f05],'tdx':_0x42c88b});gracefulExit(_0x3790cd);}),jobCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x416))[a2_0x50a3e8(0x269)]('Submit\x20a\x20job')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1e5),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')['option'](a2_0x50a3e8(0x1bc),a2_0x50a3e8(0x2ef))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3c8),a2_0x50a3e8(0x49f),a2_0x50a3e8(0x48e))['option'](a2_0x50a3e8(0x3ce),a2_0x50a3e8(0x3a8))[a2_0x50a3e8(0x1d6)](async(_0x1fe28d,_0x353979)=>{const _0x227739=a2_0x50a3e8,_0x33c3c1=new JobSubmitCommand(),_0x321046=program[_0x227739(0x257)](),_0x185698=await createTDXInstance(_0x321046),_0x1a2101=await _0x33c3c1[_0x227739(0x1ff)]({'options':{..._0x321046,..._0x353979},'args':_0x1fe28d?[_0x1fe28d]:[],'tdx':_0x185698});gracefulExit(_0x1a2101);}),jobCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x32a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x29b))[a2_0x50a3e8(0x1d6)](async(_0xe51ef1,_0x176a79)=>{const _0x16c224=a2_0x50a3e8,_0x119f1c=new JobResultCommand(),_0x4fa21b=program[_0x16c224(0x257)](),_0x3acb1b=await createTDXInstance(_0x4fa21b),_0x58a2ab=await _0x119f1c['run']({'options':{..._0x4fa21b,..._0x176a79},'args':[_0xe51ef1],'tdx':_0x3acb1b});gracefulExit(_0x58a2ab);});const scheduleCmd=jobCmd[a2_0x50a3e8(0x32d)]('schedule')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x488));scheduleCmd['command'](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')[a2_0x50a3e8(0x1d6)](async(_0x44beb8,_0x1eb7e1)=>{const _0x4ffd0c=a2_0x50a3e8,_0x1a3ca5=new ScheduleListCommand(),_0x14da46=program[_0x4ffd0c(0x257)](),_0x3c60e1=await createTDXInstance(_0x14da46),_0x5b16e6=await _0x1a3ca5['run']({'options':{..._0x14da46,..._0x1eb7e1},'args':_0x44beb8?[_0x44beb8]:[],'tdx':_0x3c60e1});gracefulExit(_0x5b16e6);}),scheduleCmd[a2_0x50a3e8(0x32d)]('show\x20<name>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x222))[a2_0x50a3e8(0x1d6)](async(_0x110c34,_0x3d3ace)=>{const _0xf2b8f9=a2_0x50a3e8,_0x3c328b=new ScheduleShowCommand(),_0x8802ed=program[_0xf2b8f9(0x257)](),_0x545f74=await createTDXInstance(_0x8802ed),_0x3197ff=await _0x3c328b[_0xf2b8f9(0x1ff)]({'options':{..._0x8802ed,..._0x3d3ace},'args':[_0x110c34],'tdx':_0x545f74});gracefulExit(_0x3197ff);}),scheduleCmd['command'](a2_0x50a3e8(0x35b))['description'](a2_0x50a3e8(0x28e))[a2_0x50a3e8(0x345)]('-d,\x20--database\x20<db>',a2_0x50a3e8(0x35e))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x19d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x1bc),'Read\x20query\x20from\x20file')[a2_0x50a3e8(0x345)]('--type\x20<type>',a2_0x50a3e8(0x1c5),a2_0x50a3e8(0x1cc))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2e4),a2_0x50a3e8(0x2ee))['option'](a2_0x50a3e8(0x4e0),a2_0x50a3e8(0x363))['option'](a2_0x50a3e8(0x40d),a2_0x50a3e8(0x422))[a2_0x50a3e8(0x345)]('--priority\x20<-2~2>',a2_0x50a3e8(0x400))[a2_0x50a3e8(0x345)]('--retry-limit\x20<0~32>',a2_0x50a3e8(0x3bd))['option']('--engine-version\x20<version>','Query\x20engine\x20version')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4ab),a2_0x50a3e8(0x1fd))[a2_0x50a3e8(0x1d6)](async(_0x28f0cc,_0x47c6bb)=>{const _0x3818ca=a2_0x50a3e8,_0x5a84ac=new ScheduleCreateCommand(),_0x5af9a3=program['opts'](),_0x136f16=await createTDXInstance(_0x5af9a3);_0x47c6bb['in']&&(_0x47c6bb[_0x3818ca(0x419)]=_0x47c6bb['in']);const _0x3de673=await _0x5a84ac[_0x3818ca(0x1ff)]({'options':{..._0x5af9a3,..._0x47c6bb},'args':[_0x28f0cc],'tdx':_0x136f16});gracefulExit(_0x3de673);}),scheduleCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b0))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4b8))['option'](a2_0x50a3e8(0x1c1),a2_0x50a3e8(0x1f4))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x19d),a2_0x50a3e8(0x369))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1bc),a2_0x50a3e8(0x2ef))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x271),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2e4),'Cron\x20expression\x20for\x20scheduling')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4e0),a2_0x50a3e8(0x25b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x40d),a2_0x50a3e8(0x422))[a2_0x50a3e8(0x345)]('--priority\x20<-2~2>',a2_0x50a3e8(0x400))['option'](a2_0x50a3e8(0x21e),a2_0x50a3e8(0x3bd))[a2_0x50a3e8(0x345)]('--engine-version\x20<version>',a2_0x50a3e8(0x19c))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4ab),a2_0x50a3e8(0x1fd))[a2_0x50a3e8(0x1d6)](async(_0x5bc42c,_0x5a1815)=>{const _0x20d308=a2_0x50a3e8,_0x46939d=new ScheduleUpdateCommand(),_0x362510=program[_0x20d308(0x257)](),_0x376b1d=await createTDXInstance(_0x362510);_0x5a1815['in']&&(_0x5a1815[_0x20d308(0x419)]=_0x5a1815['in']);const _0x1e87b1=await _0x46939d['run']({'options':{..._0x362510,..._0x5a1815},'args':[_0x5bc42c],'tdx':_0x376b1d});gracefulExit(_0x1e87b1);}),scheduleCmd[a2_0x50a3e8(0x32d)]('delete\x20<name>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4cc))['action'](async(_0x5a07b8,_0x59506a)=>{const _0x3106be=a2_0x50a3e8,_0x3c6853=new ScheduleDeleteCommand(),_0x245297=program[_0x3106be(0x257)](),_0x1f6176=await createTDXInstance(_0x245297),_0x39cbc6=await _0x3c6853[_0x3106be(0x1ff)]({'options':{..._0x245297,..._0x59506a},'args':[_0x5a07b8],'tdx':_0x1f6176});gracefulExit(_0x39cbc6);}),scheduleCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x37f))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x331))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1f5),a2_0x50a3e8(0x322))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x29f),a2_0x50a3e8(0x428))[a2_0x50a3e8(0x1d6)](async(_0x47eb13,_0x3886bc)=>{const _0x2dcfad=a2_0x50a3e8,_0x99b4ca=new ScheduleRunCommand(),_0x5a865c=program[_0x2dcfad(0x257)](),_0x3c6b15=await createTDXInstance(_0x5a865c),_0x2c9af5=await _0x99b4ca[_0x2dcfad(0x1ff)]({'options':{..._0x5a865c,..._0x3886bc},'args':[_0x47eb13],'tdx':_0x3c6b15});gracefulExit(_0x2c9af5);}),scheduleCmd['command'](a2_0x50a3e8(0x3de))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2a1))['option'](a2_0x50a3e8(0x486),a2_0x50a3e8(0x332))['option'](a2_0x50a3e8(0x2a7),a2_0x50a3e8(0x4e7))['action'](async(_0x2db10c,_0x495c18)=>{const _0x337996=a2_0x50a3e8,_0x5afd45=new ScheduleHistoryCommand(),_0x62c566=program[_0x337996(0x257)](),_0x55fac6=await createTDXInstance(_0x62c566),_0x40785a=await _0x5afd45[_0x337996(0x1ff)]({'options':{..._0x62c566,..._0x495c18},'args':[_0x2db10c],'tdx':_0x55fac6});gracefulExit(_0x40785a);});const llmCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x33f))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3a3));llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x337))[a2_0x50a3e8(0x269)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x50a3e8(0x1d6)](async(_0x5bb6da,_0x1ce0d3)=>{const _0x58b454=a2_0x50a3e8,_0x1c75b8=new LLMUseCommand(),_0x3729d6=program[_0x58b454(0x257)](),_0x5d35b2=await createTDXInstance(_0x3729d6),_0x45de0e=await _0x1c75b8[_0x58b454(0x1ff)]({'options':{..._0x3729d6,..._0x1ce0d3},'args':[_0x5bb6da],'tdx':_0x5d35b2});gracefulExit(_0x45de0e);}),llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x22c))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x358))[a2_0x50a3e8(0x1d6)](async _0x18f347=>{const _0x20096f=a2_0x50a3e8,_0xa57edf=new LLMModelsCommand(),_0x23b550=program[_0x20096f(0x257)](),_0x17756a=await createTDXInstance(_0x23b550),_0x5ae422=await _0xa57edf['run']({'options':{..._0x23b550,..._0x18f347},'args':[],'tdx':_0x17756a});gracefulExit(_0x5ae422);});const projectCmd=llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x33e))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2b2)),llmProjectListAction=async(_0x2a494a,_0xf6e65a)=>{const _0x51469a=a2_0x50a3e8,_0x2a99dc=new LLMProjectsCommand(),_0x560221=program[_0x51469a(0x257)](),_0x34119c=await createTDXInstance(_0x560221),_0x41ee89=await _0x2a99dc[_0x51469a(0x1ff)]({'options':{..._0x560221,..._0xf6e65a},'args':_0x2a494a?[_0x2a494a]:[],'tdx':_0x34119c});gracefulExit(_0x41ee89);};projectCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x239))[a2_0x50a3e8(0x1d6)](llmProjectListAction),llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x43c))['description'](a2_0x50a3e8(0x4c9))[a2_0x50a3e8(0x1d6)](llmProjectListAction),projectCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x35b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x43d))['option'](a2_0x50a3e8(0x34e),a2_0x50a3e8(0x27f))[a2_0x50a3e8(0x1d6)](async(_0x31239c,_0x4a48c5)=>{const _0x55fc59=a2_0x50a3e8,_0x1c4903=new LLMProjectCreateCommand(),_0x9e470b=program[_0x55fc59(0x257)](),_0x9f2692=await createTDXInstance(_0x9e470b),_0x401ce9=await _0x1c4903[_0x55fc59(0x1ff)]({'options':{..._0x9e470b,..._0x4a48c5},'args':[_0x31239c],'tdx':_0x9f2692});gracefulExit(_0x401ce9);}),projectCmd[a2_0x50a3e8(0x32d)]('delete\x20<name>')['description'](a2_0x50a3e8(0x374))['action'](async(_0x5182f3,_0x48f852)=>{const _0x940eac=a2_0x50a3e8,_0x95dfdf=new LLMProjectDeleteCommand(),_0x308202=program[_0x940eac(0x257)](),_0x3052b6=await createTDXInstance(_0x308202),_0x4d9d81=await _0x95dfdf[_0x940eac(0x1ff)]({'options':{..._0x308202,..._0x48f852},'args':[_0x5182f3],'tdx':_0x3052b6});gracefulExit(_0x4d9d81);}),projectCmd[a2_0x50a3e8(0x32d)]('backup\x20<name>')['description'](a2_0x50a3e8(0x2d1))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2b9),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x326))[a2_0x50a3e8(0x1d6)](async(_0x194a76,_0x53bd28)=>{const _0x1b3fe1=a2_0x50a3e8,_0x52f8b1=new LLMProjectBackupCommand(),_0x5eb2b1=program[_0x1b3fe1(0x257)](),_0x58409b=await createTDXInstance(_0x5eb2b1),_0x278c75=await _0x52f8b1[_0x1b3fe1(0x1ff)]({'options':{..._0x5eb2b1,..._0x53bd28},'args':[_0x194a76],'tdx':_0x58409b});gracefulExit(_0x278c75);}),projectCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2ec))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x464))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x310),a2_0x50a3e8(0x4ac))[a2_0x50a3e8(0x345)]('--dry-run',a2_0x50a3e8(0x4df))[a2_0x50a3e8(0x1d6)](async(_0x51d086,_0xdc292f)=>{const _0x5347e6=a2_0x50a3e8,_0xaa65f4=new LLMProjectRestoreCommand(),_0x4b1243=program[_0x5347e6(0x257)](),_0x1a4cb4=await createTDXInstance(_0x4b1243),_0x45f3ed=await _0xaa65f4['run']({'options':{..._0x4b1243,..._0xdc292f},'args':[_0x51d086],'tdx':_0x1a4cb4});gracefulExit(_0x45f3ed);});const llmAgentListAction=async(_0x5bbb52,_0xb339e7)=>{const _0x233d6c=a2_0x50a3e8,_0x2394ca=new LLMAgentsCommand(),_0x55fbad=program[_0x233d6c(0x257)](),_0x4682aa=await createTDXInstance(_0x55fbad),_0xd1f570=await _0x2394ca[_0x233d6c(0x1ff)]({'options':{..._0x55fbad,..._0xb339e7},'args':_0x5bbb52?[_0x5bbb52]:[],'tdx':_0x4682aa});gracefulExit(_0xd1f570);};llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x48c))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x481))['action'](llmAgentListAction),program[a2_0x50a3e8(0x32d)]('agents\x20[pattern]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x481))[a2_0x50a3e8(0x1d6)](llmAgentListAction),llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x251))[a2_0x50a3e8(0x269)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')['option']('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x50a3e8(0x1d6)](async(_0x58ae96,_0x337e42)=>{const _0x45a400=a2_0x50a3e8,_0x3816d9=new LLMHistoryCommand(),_0x5ebd0b=program[_0x45a400(0x257)](),_0x4ec2d0=await createTDXInstance(_0x5ebd0b),_0x16cf46=await _0x3816d9['run']({'options':{..._0x5ebd0b,..._0x337e42},'args':_0x58ae96?[_0x58ae96]:[],'tdx':_0x4ec2d0});gracefulExit(_0x16cf46);});isExperimentalAvailable()&&llmCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x41a))['description'](a2_0x50a3e8(0x37c))[a2_0x50a3e8(0x1d6)](async(_0x54704a,_0x139632)=>{const _0x3b959d=a2_0x50a3e8,_0xacfc04=new LLMLogCommand(),_0x3e119c=program[_0x3b959d(0x257)](),_0x17cbbb=await createTDXInstance(_0x3e119c),_0x78b14=await _0xacfc04[_0x3b959d(0x1ff)]({'options':{..._0x3e119c,..._0x139632},'args':[_0x54704a],'tdx':_0x17cbbb});gracefulExit(_0x78b14);});program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x327))[a2_0x50a3e8(0x220)]('[options]\x20--\x20[claude-code-args...]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3aa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4c5),a2_0x50a3e8(0x270))[a2_0x50a3e8(0x345)]('-r,\x20--resume',a2_0x50a3e8(0x2b1))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x33b),a2_0x50a3e8(0x287))[a2_0x50a3e8(0x362)]()[a2_0x50a3e8(0x43e)](!![])['addHelpText'](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x4ba))[a2_0x50a3e8(0x1d6)](async(_0x57d114,_0x203afd)=>{const _0x3bf1a9=a2_0x50a3e8,_0x1f551f=program[_0x3bf1a9(0x257)](),_0x5df325=Array['isArray'](_0x57d114)?_0x57d114:[];if(_0x5df325[0x0]==='statusline'){const _0x32fb46=new ClaudeStatuslineCommand(),_0x559c51=await _0x32fb46['run']({'options':{..._0x1f551f,..._0x203afd},'args':_0x5df325[_0x3bf1a9(0x3df)](0x1),'tdx':null});gracefulExit(_0x559c51);}if(_0x5df325[0x0]==='usage'){const _0x4c3a9a=new ClaudeUsageCommand(),_0x5accdd=await _0x4c3a9a['run']({'options':{..._0x1f551f,..._0x203afd},'args':_0x5df325[_0x3bf1a9(0x3df)](0x1),'tdx':null});gracefulExit(_0x5accdd);}const _0x369f89=new ClaudeCommand(),_0x465920=await createTDXInstance(_0x1f551f),_0x3eb40b=await _0x369f89[_0x3bf1a9(0x1ff)]({'options':{..._0x1f551f,..._0x203afd},'args':_0x5df325,'tdx':_0x465920});gracefulExit(_0x3eb40b);}),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x219))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x303))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x43a),'Clear\x20session\x20context')['option'](a2_0x50a3e8(0x418),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x50a3e8(0x1d6)](async(_0x3b566c,_0x5e342a,_0x394c00)=>{const _0x4444f4=a2_0x50a3e8,_0x4fc103=new UseCommand(),_0x486591=program[_0x4444f4(0x257)](),_0x34df76=[];if(_0x3b566c)_0x34df76[_0x4444f4(0x1cb)](_0x3b566c);if(_0x5e342a)_0x34df76[_0x4444f4(0x1cb)](_0x5e342a);const _0x217831=_0x3b566c===_0x4444f4(0x4d5),_0x51eb67=_0x217831?await createTDXInstance(_0x486591):null,_0x49ec4c=await _0x4fc103[_0x4444f4(0x1ff)]({'options':{..._0x486591,..._0x394c00},'args':_0x34df76,'tdx':_0x51eb67});gracefulExit(_0x49ec4c);}),program['command'](a2_0x50a3e8(0x1a6))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x496))['action'](async _0x1a9a6b=>{const _0x3da763=new StatusCommand(),_0x201464=program['opts'](),_0x187402=await createTDXInstance(_0x201464),_0x44105d=await _0x3da763['run']({'options':{..._0x201464,..._0x1a9a6b},'args':[],'tdx':_0x187402});gracefulExit(_0x44105d);}),program['command'](a2_0x50a3e8(0x4e1))['description'](a2_0x50a3e8(0x20f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x1c2))[a2_0x50a3e8(0x345)]('--next','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3bb),a2_0x50a3e8(0x2f4))['action'](async(_0x57e901,_0x8ffe3c)=>{const _0x16d728=new UpgradeCommand(),_0x4ed55f=program['opts'](),_0x2578c5=await _0x16d728['run']({'options':{..._0x4ed55f,..._0x8ffe3c},'args':_0x57e901?[_0x57e901]:[],'tdx':null});gracefulExit(_0x2578c5);}),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x458))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4a6))['option'](a2_0x50a3e8(0x418),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x37958c,_0x46d60f)=>{const _0x403395=a2_0x50a3e8,_0x5db9f5=new UnsetCommand(),_0x32f465=program[_0x403395(0x257)](),_0x45b1e6=await _0x5db9f5['run']({'options':{..._0x32f465,..._0x46d60f},'args':[_0x37958c],'tdx':null});gracefulExit(_0x45b1e6);}),program[a2_0x50a3e8(0x32d)]('chats')['description'](a2_0x50a3e8(0x2b6))['option']('--last','Show\x20the\x20most\x20recent\x20chat')['action'](async _0x1493b3=>{const _0x3a38db=a2_0x50a3e8,_0x348960=new ChatsCommand(),_0x52e313=program[_0x3a38db(0x257)](),_0x1b331a=await createTDXInstance(_0x52e313),_0x15b713=await _0x348960['run']({'options':{..._0x52e313,..._0x1493b3},'args':[],'tdx':_0x1b331a});gracefulExit(_0x15b713);});const authCmd=program[a2_0x50a3e8(0x32d)]('auth')['description'](a2_0x50a3e8(0x2ff));async function runAuthStatusCommand(_0xe7517d){const _0x17a304=a2_0x50a3e8,_0x27f376=new AuthStatusCommand(),_0x4d133e=program['opts'](),_0x2fd4be=await createTDXInstance(_0x4d133e),_0x5caccd=await _0x27f376[_0x17a304(0x1ff)]({'options':{..._0x4d133e,..._0xe7517d},'args':[],'tdx':_0x2fd4be});gracefulExit(_0x5caccd);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1a6))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x23a))[a2_0x50a3e8(0x1d6)](runAuthStatusCommand);async function authSetupAction(_0x36953f){const _0x2202fd=a2_0x50a3e8,_0x46ce25=new AuthSetupCommand(),_0x2a2b1f=program['opts'](),_0x31ffe5=await createTDXInstance(_0x2a2b1f),_0x993c68=await _0x46ce25[_0x2202fd(0x1ff)]({'options':{..._0x2a2b1f,..._0x36953f},'args':[],'tdx':_0x31ffe5});gracefulExit(_0x993c68);}authCmd['command'](a2_0x50a3e8(0x316))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1bf))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4b0),a2_0x50a3e8(0x218))[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x2bd))[a2_0x50a3e8(0x1d6)](authSetupAction),authCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3b4),{'hidden':!![]})[a2_0x50a3e8(0x345)]('--account-name\x20<name>','Account\x20name\x20for\x20SSO\x20(Single\x20Sign-On)\x20login')[a2_0x50a3e8(0x1d6)](authSetupAction),authCmd['command'](a2_0x50a3e8(0x3ee))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x20c))[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x39a))[a2_0x50a3e8(0x1d6)](async _0x1241f2=>{const _0x25a57e=a2_0x50a3e8,_0x3a7c6e=new AuthClearCommand(),_0x273385=program['opts'](),_0x4204b5=await _0x3a7c6e[_0x25a57e(0x1ff)]({'options':{..._0x273385,..._0x1241f2},'args':[],'tdx':null});gracefulExit(_0x4204b5);});const userCmd=program[a2_0x50a3e8(0x32d)]('user')[a2_0x50a3e8(0x269)]('User\x20management\x20commands'),userListAction=async _0x46bc4e=>{const _0x35a551=a2_0x50a3e8,_0x40bb22=new UserListCommand(),_0x520cca=program[_0x35a551(0x257)](),_0x227d17=await createTDXInstance(_0x520cca),_0x236ee0=await _0x40bb22[_0x35a551(0x1ff)]({'options':{..._0x520cca,..._0x46bc4e},'args':[],'tdx':_0x227d17});gracefulExit(_0x236ee0);};userCmd[a2_0x50a3e8(0x1d6)](async _0x227c1e=>{const _0x12788e=a2_0x50a3e8,_0x4ad67c=new UserCommand(),_0x31e83d=program[_0x12788e(0x257)](),_0x5e6c92=await createTDXInstance(_0x31e83d),_0xca5abc=await _0x4ad67c['run']({'options':{..._0x31e83d,..._0x227c1e},'args':[],'tdx':_0x5e6c92});gracefulExit(_0xca5abc);}),userCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4b1))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x36f))[a2_0x50a3e8(0x1d6)](userListAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3a1))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x414))[a2_0x50a3e8(0x1d6)](userListAction);const policyCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x38e))['description'](a2_0x50a3e8(0x283));policyCmd[a2_0x50a3e8(0x1d6)](async _0x2fc6cc=>{const _0x38217b=a2_0x50a3e8,_0x42418e=new PolicyCommand(),_0x8cc868=program['opts'](),_0xe4be2f=await createTDXInstance(_0x8cc868),_0x3bca15=await _0x42418e[_0x38217b(0x1ff)]({'options':{..._0x8cc868,..._0x2fc6cc},'args':[],'tdx':_0xe4be2f});gracefulExit(_0x3bca15);}),policyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4b1))['description'](a2_0x50a3e8(0x3dc))[a2_0x50a3e8(0x1d6)](async _0x172bba=>{const _0x11d70e=a2_0x50a3e8,_0x398d1a=new PolicyListCommand(),_0xef11d0=program[_0x11d70e(0x257)](),_0x567d69=await createTDXInstance(_0xef11d0),_0x33887e=await _0x398d1a[_0x11d70e(0x1ff)]({'options':{..._0xef11d0,..._0x172bba},'args':[],'tdx':_0x567d69});gracefulExit(_0x33887e);}),policyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x328))['description'](a2_0x50a3e8(0x455))[a2_0x50a3e8(0x1d6)](async(_0x574496,_0x5309c1)=>{const _0x4f35e1=a2_0x50a3e8,_0x348f6e=new PolicyShowCommand(),_0x21c4e9=program[_0x4f35e1(0x257)](),_0x40c375=await createTDXInstance(_0x21c4e9),_0xeeadfd=await _0x348f6e[_0x4f35e1(0x1ff)]({'options':{..._0x21c4e9,..._0x5309c1},'args':[_0x574496],'tdx':_0x40c375});gracefulExit(_0xeeadfd);}),program['command'](a2_0x50a3e8(0x4eb))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x436))[a2_0x50a3e8(0x1d6)](async _0x5b7737=>{const _0x660ea6=a2_0x50a3e8,_0x13e7cd=new ProfilesCommand(),_0x59bf16=program[_0x660ea6(0x257)](),_0x121e19=await _0x13e7cd['run']({'options':{..._0x59bf16,..._0x5b7737},'args':[],'tdx':null});gracefulExit(_0x121e19);});const profileCmd=program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x21a))['description']('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x50a3e8(0x1d6)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x3e68f4=>{const _0x89e7a6=a2_0x50a3e8,_0x4a9703=new ProfilesCommand(),_0x274874=program['opts'](),_0x5140fb=await _0x4a9703[_0x89e7a6(0x1ff)]({'options':{..._0x274874,..._0x3e68f4},'args':[],'tdx':null});gracefulExit(_0x5140fb);};profileCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4b1))[a2_0x50a3e8(0x269)]('List\x20all\x20available\x20profiles')[a2_0x50a3e8(0x1d6)](profileListAction),profileCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x435))[a2_0x50a3e8(0x269)]('Create\x20a\x20new\x20profile')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4b0),a2_0x50a3e8(0x218))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2c5),a2_0x50a3e8(0x477))[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x259))[a2_0x50a3e8(0x1d6)](async(_0x280f58,_0x4c4fa3)=>{const _0x5ed7f5=a2_0x50a3e8,_0x4c6703=new ProfileCreateCommand(),_0x5890d9=program[_0x5ed7f5(0x257)](),_0xe86fc1=await _0x4c6703[_0x5ed7f5(0x1ff)]({'options':{..._0x5890d9,..._0x4c4fa3},'args':_0x280f58?[_0x280f58]:[],'tdx':null});gracefulExit(_0xe86fc1);});async function profileDeleteAction(_0x1011a4,_0x1c06e0){const _0x5521a8=a2_0x50a3e8,_0x358817=new ProfileDeleteCommand(),_0x1a88a9=program['opts'](),_0x4e5c10=await _0x358817[_0x5521a8(0x1ff)]({'options':{..._0x1a88a9,..._0x1c06e0},'args':[_0x1011a4],'tdx':null});gracefulExit(_0x4e5c10);}profileCmd['command']('delete\x20<name>')[a2_0x50a3e8(0x269)]('Delete\x20a\x20profile')[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20delete\x20staging\x20\x20\x20\x20\x20\x20#\x20Delete\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x50a3e8(0x1d6)](profileDeleteAction),profileCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x379),{'hidden':!![]})[a2_0x50a3e8(0x1d6)](profileDeleteAction),profileCmd[a2_0x50a3e8(0x32d)]('set\x20<key=value>')[a2_0x50a3e8(0x269)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),a2_0x50a3e8(0x1d2))[a2_0x50a3e8(0x1d6)](async(_0x50874c,_0x43d83a)=>{const _0x3d0d16=a2_0x50a3e8,_0x414887=new ProfileSetCommand(),_0x303228=program[_0x3d0d16(0x257)](),_0x56b5fc=await _0x414887[_0x3d0d16(0x1ff)]({'options':{..._0x303228,..._0x43d83a},'args':[_0x50874c],'tdx':null});gracefulExit(_0x56b5fc);}),profileCmd[a2_0x50a3e8(0x32d)]('use\x20<name>')['description']('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x418),a2_0x50a3e8(0x323))[a2_0x50a3e8(0x32f)](a2_0x50a3e8(0x3eb),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a')[a2_0x50a3e8(0x1d6)](async(_0x5d0d28,_0x506aa6)=>{const _0x1ac68f=a2_0x50a3e8,_0x38f574=new ProfileUseCommand(),_0x10250c=program[_0x1ac68f(0x257)](),_0x4e3b0c=await _0x38f574[_0x1ac68f(0x1ff)]({'options':{..._0x10250c,..._0x506aa6},'args':[_0x5d0d28],'tdx':null});gracefulExit(_0x4e3b0c);});const engageCmd=program['command']('engage')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1eb)),createEngageAction=_0x4bcd18=>{return async(_0x3a7309,_0x58a77b)=>{const _0x3a23bf=a2_0x46b4,_0x76875d=new _0x4bcd18(),_0x174c3e=program[_0x3a23bf(0x257)](),_0x2026af=await createTDXInstance(_0x174c3e),_0xf02c5c=await _0x76875d['run']({'options':{..._0x174c3e,..._0x58a77b},'args':[_0x3a7309],'tdx':_0x2026af});gracefulExit(_0xf02c5c);};},createEngageNoArgAction=_0x2986e8=>{return async _0x129ed4=>{const _0x30538a=a2_0x46b4,_0x241bab=new _0x2986e8(),_0x13e226=program['opts'](),_0x1f6809=await createTDXInstance(_0x13e226),_0x486e6d=await _0x241bab[_0x30538a(0x1ff)]({'options':{..._0x13e226,..._0x129ed4},'args':[],'tdx':_0x1f6809});gracefulExit(_0x486e6d);};},createEngageListAction=_0xe13777=>{return async(_0x61cd1a,_0x55c3f0)=>{const _0x20b495=a2_0x46b4,_0x204b63=new _0xe13777(),_0x19b866=program[_0x20b495(0x257)](),_0x1f61c4=await createTDXInstance(_0x19b866),_0xa000c2=await _0x204b63[_0x20b495(0x1ff)]({'options':{..._0x19b866,..._0x55c3f0},'args':_0x61cd1a?[_0x61cd1a]:[],'tdx':_0x1f61c4});gracefulExit(_0xa000c2);};},campaignCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2d2))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x224));campaignCmd[a2_0x50a3e8(0x32d)]('list\x20[pattern]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4bd))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x271),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x50a3e8(0x345)]('--status\x20<status>',a2_0x50a3e8(0x225))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x49c))['description']('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x50a3e8(0x345)]('--type\x20<type>',a2_0x50a3e8(0x2df))['option'](a2_0x50a3e8(0x49b),a2_0x50a3e8(0x225))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageCampaignsCommand)),campaignCmd['command'](a2_0x50a3e8(0x3d9))['description'](a2_0x50a3e8(0x38b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))['option'](a2_0x50a3e8(0x262),a2_0x50a3e8(0x35f))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3c6))[a2_0x50a3e8(0x470)]('--name\x20<name>',a2_0x50a3e8(0x1e4))['requiredOption'](a2_0x50a3e8(0x271),a2_0x50a3e8(0x47f))[a2_0x50a3e8(0x345)]('--workspace\x20<name>',a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1be),a2_0x50a3e8(0x41f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x298),a2_0x50a3e8(0x44f))['option']('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x46c),a2_0x50a3e8(0x3e2))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x394),a2_0x50a3e8(0x3c4))['option'](a2_0x50a3e8(0x4e0),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x50a3e8(0x1d6)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command']('update\x20<name-or-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x397))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x1ae))['option'](a2_0x50a3e8(0x1be),'Campaign\x20description')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x298),a2_0x50a3e8(0x44f))[a2_0x50a3e8(0x345)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x46c),a2_0x50a3e8(0x3e2))['option'](a2_0x50a3e8(0x394),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x50a3e8(0x345)]('--timezone\x20<tz>',a2_0x50a3e8(0x32e))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x50a3e8(0x4e9))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3c7))['option'](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)]('--yes',a2_0x50a3e8(0x2aa))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x50a3e8(0x40a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4c0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x23b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x313))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x50a3e8(0x32d)]('resume\x20<name-or-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1a7))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x38d))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3e3))[a2_0x50a3e8(0x345)]('--workspace\x20<name>',a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x396))['description']('Pull\x20campaigns\x20to\x20YAML\x20files')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x2a9))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x271),a2_0x50a3e8(0x2df))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x474))['action'](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2fd))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1f0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x227))[a2_0x50a3e8(0x269)]('Validate\x20campaign\x20YAML\x20files\x20locally')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4d9),a2_0x50a3e8(0x1a2))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2b7))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x280));alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)]('List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x271),a2_0x50a3e8(0x2df))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x49b),a2_0x50a3e8(0x47b))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x50a3e8(0x278))['description'](a2_0x50a3e8(0x40b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x271),a2_0x50a3e8(0x2df))['option'](a2_0x50a3e8(0x49b),a2_0x50a3e8(0x47b))['requiredOption'](a2_0x50a3e8(0x478),'Workspace\x20name\x20(required)')[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d9))[a2_0x50a3e8(0x269)]('Show\x20always-on\x20campaign\x20details')[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)]('--full',a2_0x50a3e8(0x35f))['action'](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d1))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1e3))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x1e4))[a2_0x50a3e8(0x470)]('--type\x20<type>',a2_0x50a3e8(0x47f))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1be),a2_0x50a3e8(0x41f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x298),a2_0x50a3e8(0x284))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x31e),a2_0x50a3e8(0x3a2))[a2_0x50a3e8(0x1d6)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x22d))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1a5))[a2_0x50a3e8(0x470)]('--workspace\x20<name>',a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4bf),'New\x20campaign\x20name')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1be),a2_0x50a3e8(0x41f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x298),a2_0x50a3e8(0x284))['option'](a2_0x50a3e8(0x31e),a2_0x50a3e8(0x3a2))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4e9))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x28d))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3b9),'Skip\x20confirmation\x20prompt')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)]('launch\x20<name-or-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x288))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))['action'](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x23b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x4b3))[a2_0x50a3e8(0x470)]('--workspace\x20<name>',a2_0x50a3e8(0x432))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)]('resume\x20<name-or-id>')['description'](a2_0x50a3e8(0x198))[a2_0x50a3e8(0x470)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['action'](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2f2))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x279))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),'Workspace\x20name\x20(required)')['option'](a2_0x50a3e8(0x3b9),'Skip\x20confirmation\x20prompt')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x38d))['description']('Duplicate\x20an\x20always-on\x20campaign')[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x4bf),'Name\x20for\x20the\x20duplicated\x20campaign')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x41b))['description'](a2_0x50a3e8(0x372));templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x461))[a2_0x50a3e8(0x345)]('--workspace\x20<name>',a2_0x50a3e8(0x22f))['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x50a3e8(0x32d)]('templates\x20[pattern]')['description'](a2_0x50a3e8(0x45a))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d9))[a2_0x50a3e8(0x269)]('Show\x20email\x20template\x20details')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x262),a2_0x50a3e8(0x35f))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d1))[a2_0x50a3e8(0x269)]('Create\x20an\x20email\x20template')['requiredOption'](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x291))['requiredOption'](a2_0x50a3e8(0x4a3),a2_0x50a3e8(0x354))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x33c),a2_0x50a3e8(0x27e))['option'](a2_0x50a3e8(0x1dc),a2_0x50a3e8(0x2ca))['option'](a2_0x50a3e8(0x478),a2_0x50a3e8(0x432))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x256),a2_0x50a3e8(0x295))[a2_0x50a3e8(0x345)]('--editor-type\x20<type>',a2_0x50a3e8(0x39b),_0x295331=>{const _0x1c1645=a2_0x50a3e8;if(![_0x1c1645(0x2e2),_0x1c1645(0x37e)]['includes'](_0x295331))throw new SDKError(ErrorCode[_0x1c1645(0x1d4)],_0x1c1645(0x1a4)+_0x295331+_0x1c1645(0x4c1));return _0x295331;})[a2_0x50a3e8(0x1d6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x22d))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3d0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))['option'](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x437))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4a3),'Email\x20subject\x20template')[a2_0x50a3e8(0x345)]('--html\x20<html>',a2_0x50a3e8(0x27e))[a2_0x50a3e8(0x345)]('--html-file\x20<path>',a2_0x50a3e8(0x2ca))['option'](a2_0x50a3e8(0x256),a2_0x50a3e8(0x295))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x359))['description'](a2_0x50a3e8(0x2b3))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x468))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x370),a2_0x50a3e8(0x2aa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x474))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x50a3e8(0x32d)]('push\x20[target]')['description']('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x50a3e8(0x345)]('--workspace\x20<name>',a2_0x50a3e8(0x22f))['option']('-y,\x20--yes',a2_0x50a3e8(0x2aa))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x37b))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x227))[a2_0x50a3e8(0x269)]('Validate\x20template\x20YAML\x20files\x20locally')[a2_0x50a3e8(0x345)]('--verbose',a2_0x50a3e8(0x1a2))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x50a3e8(0x32d)]('delete\x20<name-or-id>')['description'](a2_0x50a3e8(0x427))['option'](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3b9),a2_0x50a3e8(0x2aa))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3ba))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x367));workspaceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))['description'](a2_0x50a3e8(0x2e6))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1f2))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x2cb))['action'](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d9))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x330))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x262),a2_0x50a3e8(0x35f))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x50a3e8(0x32d)]('create')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x493))[a2_0x50a3e8(0x470)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1be),a2_0x50a3e8(0x395))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x50a3e8(0x32d)]('update\x20<name-or-id>')[a2_0x50a3e8(0x269)]('Update\x20a\x20workspace')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x4bf),a2_0x50a3e8(0x2d9))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1be),a2_0x50a3e8(0x395))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x320))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3b9),a2_0x50a3e8(0x2aa))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1c0))[a2_0x50a3e8(0x269)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const lineSenderAccountCmd=engageCmd['command'](a2_0x50a3e8(0x25f))['description'](a2_0x50a3e8(0x1e6));lineSenderAccountCmd['command'](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x44d))['option']('--workspace\x20<name>',a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageListAction(EngageLineSenderAccountsCommand)),lineSenderAccountCmd['command'](a2_0x50a3e8(0x3d9))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1d3))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),'Workspace\x20name')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageLineSenderAccountShowCommand));const lineImagemapImageCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x431))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x290));lineImagemapImageCmd[a2_0x50a3e8(0x32d)]('upload\x20<file>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x398))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageLineImagemapImageUploadCommand));const engageMediaCmd=engageCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x483))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x234));engageMediaCmd[a2_0x50a3e8(0x32d)]('ls\x20[path]')[a2_0x50a3e8(0x269)]('List\x20Engage\x20DAM\x20directory\x20contents')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageMediaLsCommand)),engageMediaCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x36e))['description'](a2_0x50a3e8(0x3a4))[a2_0x50a3e8(0x345)]('--path\x20<folder>',a2_0x50a3e8(0x47a))[a2_0x50a3e8(0x345)]('--conflict\x20<strategy>','Conflict\x20strategy:\x20ask\x20(default),\x20replace,\x20keep')[a2_0x50a3e8(0x1d6)](createEngageAction(EngageMediaUploadCommand)),engageMediaCmd['command'](a2_0x50a3e8(0x19e))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x21f))[a2_0x50a3e8(0x1d6)](createEngageAction(EngageMediaMkdirCommand)),engageMediaCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3f7))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1db))['action'](createEngageAction(EngageMediaRmCommand)),engageMediaCmd['command'](a2_0x50a3e8(0x1c6))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x342))['action'](createEngageAction(EngageMediaRmdirCommand));const deliveryCmd=program[a2_0x50a3e8(0x32d)]('delivery')[a2_0x50a3e8(0x269)]('Delivery\x20operations\x20(email\x20senders)');deliveryCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3d7))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3ae))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x478),a2_0x50a3e8(0x22f))[a2_0x50a3e8(0x1d6)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x50a3e8(0x32d)]('connection')['description'](a2_0x50a3e8(0x456)),connectionListAction=async _0x20d6c4=>{const _0xfa0741=new ConnectionListCommand(),_0x2a1c18=program['opts'](),_0x199343=await createTDXInstance(_0x2a1c18),_0x205f04=await _0xfa0741['run']({'options':{..._0x2a1c18,..._0x20d6c4},'args':[],'tdx':_0x199343});gracefulExit(_0x205f04);};connectionCmd[a2_0x50a3e8(0x32d)]('list')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x28a))[a2_0x50a3e8(0x1d6)](connectionListAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1d0),{'hidden':!![]})[a2_0x50a3e8(0x269)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x50a3e8(0x1d6)](connectionListAction),connectionCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x30e))['description'](a2_0x50a3e8(0x194))[a2_0x50a3e8(0x1d6)](async(_0x892e34,_0x13eb27)=>{const _0x15c123=a2_0x50a3e8,_0x34b737=new ConnectionShowCommand(),_0x24b3f0=program[_0x15c123(0x257)](),_0x531618=await createTDXInstance(_0x24b3f0),_0x9742d=await _0x34b737[_0x15c123(0x1ff)]({'options':{..._0x24b3f0,..._0x13eb27},'args':[_0x892e34],'tdx':_0x531618});gracefulExit(_0x9742d);}),connectionCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x420))[a2_0x50a3e8(0x269)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x50a3e8(0x1d6)](async(_0xa1955b,_0x2d2abe)=>{const _0x10965b=a2_0x50a3e8,_0x43cf08=new ConnectionSchemaCommand(),_0x5cbab6=program[_0x10965b(0x257)](),_0x2f44fb=await createTDXInstance(_0x5cbab6),_0x7a501f=await _0x43cf08['run']({'options':{..._0x5cbab6,..._0x2d2abe},'args':[_0xa1955b],'tdx':_0x2f44fb});gracefulExit(_0x7a501f);}),connectionCmd['command']('types')[a2_0x50a3e8(0x269)]('List\x20available\x20connector\x20types')['action'](async _0x29d47b=>{const _0x3d8418=a2_0x50a3e8,_0xc9ad90=new ConnectionTypesCommand(),_0x444992=program[_0x3d8418(0x257)](),_0x3b09e8=await createTDXInstance(_0x444992),_0x4e9fb1=await _0xc9ad90[_0x3d8418(0x1ff)]({'options':{..._0x444992,..._0x29d47b},'args':[],'tdx':_0x3b09e8});gracefulExit(_0x4e9fb1);}),connectionCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2f1))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x380))['action'](async(_0xb88181,_0x16e7ed)=>{const _0x5843df=a2_0x50a3e8,_0x429719=new ConnectionSettingsCommand(),_0x32d195=program['opts'](),_0x4e32e7=await createTDXInstance(_0x32d195),_0x33c1d7=await _0x429719[_0x5843df(0x1ff)]({'options':{..._0x32d195,..._0x16e7ed},'args':[_0xb88181],'tdx':_0x4e32e7});gracefulExit(_0x33c1d7);});const casCmd=program[a2_0x50a3e8(0x32d)]('cas')['description'](a2_0x50a3e8(0x29e));casCmd[a2_0x50a3e8(0x32d)]('list')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x46e))[a2_0x50a3e8(0x1d6)](async _0x3190af=>{const _0x275678=a2_0x50a3e8,_0xb69f4e=new CASListCommand(),_0x847a0d=program[_0x275678(0x257)](),_0x15c37e=await createTDXInstance(_0x847a0d),_0x35aedf=await _0xb69f4e[_0x275678(0x1ff)]({'options':{..._0x847a0d,..._0x3190af},'args':[],'tdx':_0x15c37e});gracefulExit(_0x35aedf);}),casCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x24b))['description']('Describe\x20a\x20composable\x20audience\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x50a3e8(0x1d6)](async(_0x172de0,_0x18a5af)=>{const _0x45892c=a2_0x50a3e8,_0x5a25cc=new CASDescCommand(),_0x2614b8=program[_0x45892c(0x257)](),_0x40fc28=await createTDXInstance(_0x2614b8),_0x2ec905=await _0x5a25cc[_0x45892c(0x1ff)]({'options':{..._0x2614b8,..._0x18a5af},'args':_0x172de0?[_0x172de0]:[],'tdx':_0x40fc28});gracefulExit(_0x2ec905);}),casCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x42f))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3f0))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x27a),a2_0x50a3e8(0x26b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x1b5))['action'](async(_0xd6cde,_0x300e2c)=>{const _0x229b33=a2_0x50a3e8,_0x31204c=new CASPullCommand(),_0x22c3e8=program[_0x229b33(0x257)](),_0x4e6ef9=await createTDXInstance(_0x22c3e8),_0x5f3e41=await _0x31204c[_0x229b33(0x1ff)]({'options':{..._0x22c3e8,..._0x300e2c},'args':_0xd6cde?[_0xd6cde]:[],'tdx':_0x4e6ef9});gracefulExit(_0x5f3e41);}),casCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2fd))[a2_0x50a3e8(0x269)]('Push\x20YAML\x20files\x20to\x20CAS\x20API')[a2_0x50a3e8(0x345)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['action'](async(_0x137c13,_0x790f46)=>{const _0xbd83a=a2_0x50a3e8,_0x2d3883=new CASPushCommand(),_0x4a939d=program[_0xbd83a(0x257)](),_0x5706c3=await createTDXInstance(_0x4a939d),_0x3d10f7=await _0x2d3883[_0xbd83a(0x1ff)]({'options':{..._0x4a939d,..._0x790f46},'args':_0x137c13?[_0x137c13]:[],'tdx':_0x5706c3});gracefulExit(_0x3d10f7);}),casCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x2e1))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x41c))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x258),a2_0x50a3e8(0x4c2))[a2_0x50a3e8(0x1d6)](async(_0x4d7e81,_0x299b08)=>{const _0x53c572=a2_0x50a3e8,_0x27a060=new CASPreviewCommand(),_0x574fe2=program[_0x53c572(0x257)](),_0x487a09=await createTDXInstance(_0x574fe2),_0x1fd2e5=await _0x27a060['run']({'options':{..._0x574fe2,..._0x299b08},'args':[_0x4d7e81,_0x299b08[_0x53c572(0x30f)]],'tdx':_0x487a09});gracefulExit(_0x1fd2e5);});const casSgCmd=casCmd['command']('sg')[a2_0x50a3e8(0x269)]('Composable\x20segment\x20commands');casSgCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x22a))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x38a))['action'](async(_0x14aa0a,_0x677919)=>{const _0x18b814=a2_0x50a3e8,_0x62af3b=new CASSegmentListCommand(),_0x1d1e34=program['opts'](),_0xcc32f1=await createTDXInstance(_0x1d1e34),_0x3dac27=await _0x62af3b[_0x18b814(0x1ff)]({'options':{..._0x1d1e34,..._0x677919},'args':_0x14aa0a?[_0x14aa0a]:[],'tdx':_0xcc32f1});gracefulExit(_0x3dac27);});const journeyCmd=program['command'](a2_0x50a3e8(0x4b4))['description'](a2_0x50a3e8(0x443)),journeyListAction=async(_0x2ce072,_0xd94584)=>{const _0x53904d=a2_0x50a3e8,_0x2c91c7=new JourneyListCommand(),_0xb90478=program[_0x53904d(0x257)](),_0x1096a9=await createTDXInstance(_0xb90478),_0x2b6274=await _0x2c91c7['run']({'options':{..._0xb90478,..._0xd94584},'args':_0x2ce072?[_0x2ce072]:[],'tdx':_0x1096a9});gracefulExit(_0x2b6274);};journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3c3))[a2_0x50a3e8(0x1d6)](journeyListAction),journeyCmd['command'](a2_0x50a3e8(0x387))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x44a))[a2_0x50a3e8(0x345)]('-w,\x20--web',a2_0x50a3e8(0x361))[a2_0x50a3e8(0x345)]('--include-stats',a2_0x50a3e8(0x4b9))[a2_0x50a3e8(0x1d6)](async(_0x3b671a,_0x50d5b8)=>{const _0xe67c29=a2_0x50a3e8,_0x1ef057=new JourneyViewCommand(),_0x134243=program[_0xe67c29(0x257)](),_0x37a4f8=await createTDXInstance(_0x134243),_0x4ef620=await _0x1ef057['run']({'options':{..._0x134243,..._0x50d5b8},'args':[_0x3b671a],'tdx':_0x37a4f8});gracefulExit(_0x4ef620);}),journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x447))['description'](a2_0x50a3e8(0x2ae))['option']('--stage\x20<name>',a2_0x50a3e8(0x30c))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x230),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2dd),a2_0x50a3e8(0x28b))['option'](a2_0x50a3e8(0x1ce),'Include\x20raw\x20history\x20data\x20in\x20output')[a2_0x50a3e8(0x1d6)](async(_0x21a570,_0x5b82c0)=>{const _0xd8f310=a2_0x50a3e8,_0x471597=new JourneyStatsCommand(),_0x4c8ac8=program[_0xd8f310(0x257)](),_0x2f5628=await createTDXInstance(_0x4c8ac8),_0x200064=await _0x471597['run']({'options':{..._0x4c8ac8,..._0x5b82c0},'args':[_0x21a570],'tdx':_0x2f5628});gracefulExit(_0x200064);}),journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x1d9))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x263))[a2_0x50a3e8(0x345)]('--type\x20<type>',a2_0x50a3e8(0x21b))[a2_0x50a3e8(0x345)]('--from\x20<date>',a2_0x50a3e8(0x1d1))[a2_0x50a3e8(0x345)]('--to\x20<date>',a2_0x50a3e8(0x28b))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x197),'Maximum\x20number\x20of\x20nodes',_0x42c531=>{const _0x58df1c=a2_0x50a3e8,_0x4d8ddb=parseInt(_0x42c531,0xa);if(isNaN(_0x4d8ddb))throw new Error(_0x58df1c(0x23c)+_0x42c531+_0x58df1c(0x2d5));return _0x4d8ddb;})[a2_0x50a3e8(0x1d6)](async(_0x5cb765,_0x54fc08)=>{const _0x5b5436=new JourneyTrafficCommand(),_0x4be97d=program['opts'](),_0x344a48=await createTDXInstance(_0x4be97d),_0x1f2f42=await _0x5b5436['run']({'options':{..._0x4be97d,..._0x54fc08},'args':[_0x5cb765],'tdx':_0x344a48});gracefulExit(_0x1f2f42);}),journeyCmd['command'](a2_0x50a3e8(0x308))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x274))[a2_0x50a3e8(0x1d6)](async(_0x4560b6,_0x317b7e)=>{const _0x2d5071=a2_0x50a3e8,_0x343d25=new JourneyPauseCommand(),_0x5dea2e=program[_0x2d5071(0x257)](),_0x5f0067=await createTDXInstance(_0x5dea2e),_0x4e4fee=await _0x343d25[_0x2d5071(0x1ff)]({'options':{..._0x5dea2e,..._0x317b7e},'args':[_0x4560b6],'tdx':_0x5f0067});gracefulExit(_0x4e4fee);}),journeyCmd[a2_0x50a3e8(0x32d)]('run\x20<name-or-path>')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x285))['option'](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x4bc))[a2_0x50a3e8(0x1d6)](async(_0x644e3e,_0x36b5ab)=>{const _0x42db8e=a2_0x50a3e8,_0x212c9e=new JourneyRunCommand(),_0x1aba1c=program[_0x42db8e(0x257)](),_0x3110aa=await createTDXInstance(_0x1aba1c),_0x58726f=await _0x212c9e[_0x42db8e(0x1ff)]({'options':{..._0x1aba1c,..._0x36b5ab},'args':[_0x644e3e],'tdx':_0x3110aa});gracefulExit(_0x58726f);}),journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x460))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x389))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),a2_0x50a3e8(0x2c2))[a2_0x50a3e8(0x1d6)](async(_0x2d58ef,_0x3cd092)=>{const _0x171871=a2_0x50a3e8,_0xfa2b1a=new JourneyResumeCommand(),_0x24f22d=program['opts'](),_0x55863f=await createTDXInstance(_0x24f22d),_0x113c5a=await _0xfa2b1a[_0x171871(0x1ff)]({'options':{..._0x24f22d,..._0x3cd092},'args':[_0x2d58ef],'tdx':_0x55863f});gracefulExit(_0x113c5a);}),journeyCmd['command'](a2_0x50a3e8(0x42f))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x50a3e8(0x345)]('--dry-run',a2_0x50a3e8(0x1b5))[a2_0x50a3e8(0x1d6)](async(_0x5f290b,_0x494de4)=>{const _0x373614=a2_0x50a3e8,_0x7cfc55=new JourneyPullCommand(),_0x5affed=program[_0x373614(0x257)](),_0x367a26=await createTDXInstance(_0x5affed),_0x1d76ec=await _0x7cfc55[_0x373614(0x1ff)]({'options':{..._0x5affed,..._0x494de4},'args':_0x5f290b?[_0x5f290b]:[],'tdx':_0x367a26});gracefulExit(_0x1d76ec);}),journeyCmd[a2_0x50a3e8(0x32d)]('push\x20[target]')[a2_0x50a3e8(0x269)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20AI')['action'](async(_0x41bce6,_0xc96587)=>{const _0x2e00c5=new JourneyPushCommand(),_0x550aa7=program['opts'](),_0x5575b9=await createTDXInstance(_0x550aa7),_0x4ee91e=await _0x2e00c5['run']({'options':{..._0x550aa7,..._0xc96587},'args':_0x41bce6?[_0x41bce6]:[],'tdx':_0x5575b9});gracefulExit(_0x4ee91e);}),journeyCmd[a2_0x50a3e8(0x32d)]('columns\x20<name-or-path>')['description'](a2_0x50a3e8(0x253))[a2_0x50a3e8(0x1d6)](async(_0x141984,_0x2ffb1b)=>{const _0x70938=a2_0x50a3e8,_0x401938=new JourneyColumnsCommand(),_0x5c7a37=program[_0x70938(0x257)](),_0x25f1c4=await createTDXInstance(_0x5c7a37),_0x5818b6=await _0x401938['run']({'options':{..._0x5c7a37,..._0x2ffb1b},'args':[_0x141984],'tdx':_0x25f1c4});gracefulExit(_0x5818b6);}),journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x364))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x42d))[a2_0x50a3e8(0x1d6)](async(_0x5eec60,_0x235dab)=>{const _0x1253b0=a2_0x50a3e8,_0x35ecd9=new JourneyActivationsCommand(),_0x417946=program[_0x1253b0(0x257)](),_0x229998=await createTDXInstance(_0x417946),_0x84f82a=await _0x35ecd9[_0x1253b0(0x1ff)]({'options':{..._0x417946,..._0x235dab},'args':[_0x5eec60],'tdx':_0x229998});gracefulExit(_0x84f82a);}),journeyCmd['command'](a2_0x50a3e8(0x494))[a2_0x50a3e8(0x269)]('List\x20all\x20versions\x20of\x20a\x20journey')['action'](async(_0x2b49bf,_0x500ebe)=>{const _0x9d6cbb=a2_0x50a3e8,_0x40e808=new JourneyVersionsCommand(),_0x7348dd=program[_0x9d6cbb(0x257)](),_0x294cdc=await createTDXInstance(_0x7348dd),_0x49e23=await _0x40e808['run']({'options':{..._0x7348dd,..._0x500ebe},'args':[_0x2b49bf],'tdx':_0x294cdc});gracefulExit(_0x49e23);});const journeyVersionCmd=journeyCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x497))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3b5));journeyVersionCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x348))[a2_0x50a3e8(0x269)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x50a3e8(0x1d6)](async(_0x5e7c74,_0x3de50c)=>{const _0x2d97be=a2_0x50a3e8,_0x2d86e5=new JourneyVersionCreateCommand(),_0x4759cb=program[_0x2d97be(0x257)](),_0x1279b3=await createTDXInstance(_0x4759cb),_0x2919c8=await _0x2d86e5[_0x2d97be(0x1ff)]({'options':{..._0x4759cb,..._0x3de50c},'args':[_0x5e7c74],'tdx':_0x1279b3});gracefulExit(_0x2919c8);}),journeyVersionCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x387))[a2_0x50a3e8(0x269)]('View\x20a\x20specific\x20version\x20of\x20a\x20journey')['requiredOption']('--version\x20<number>','Version\x20number\x20to\x20view')[a2_0x50a3e8(0x1d6)](async(_0x3d6aa3,_0x2bdb68)=>{const _0x59cb96=a2_0x50a3e8,_0x51b34b=new JourneyVersionViewCommand(),_0xe4a96d=program[_0x59cb96(0x257)](),_0x476214=await createTDXInstance(_0xe4a96d),_0x1721d8=await _0x51b34b['run']({'options':{..._0xe4a96d,..._0x2bdb68},'args':[_0x3d6aa3],'tdx':_0x476214});gracefulExit(_0x1721d8);}),journeyCmd['command']('validate\x20[target]')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1f3))[a2_0x50a3e8(0x1d6)](async(_0x6c7ab4,_0x39fa58)=>{const _0x46a740=a2_0x50a3e8,_0xb2ccda=new JourneyValidateCommand(),_0x25ee5a=program[_0x46a740(0x257)](),_0xaa0627=await createTDXInstance(_0x25ee5a),_0x3ceec5=await _0xb2ccda[_0x46a740(0x1ff)]({'options':{..._0x25ee5a,..._0x39fa58},'args':_0x6c7ab4?[_0x6c7ab4]:[],'tdx':_0xaa0627});gracefulExit(_0x3ceec5);}),program[a2_0x50a3e8(0x32d)]('journeys\x20[pattern]')['description'](a2_0x50a3e8(0x2bc))[a2_0x50a3e8(0x1d6)](journeyListAction);const agentSyncCmd=program['command']('agent')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x371));agentSyncCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3f4))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x3f9))[a2_0x50a3e8(0x345)]('-o,\x20--output\x20<dir>',a2_0x50a3e8(0x49a))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2c5),a2_0x50a3e8(0x3d4))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x3a7),a2_0x50a3e8(0x336))[a2_0x50a3e8(0x1d6)](async(_0x52acb1,_0x3cd4ea,_0x1d2d7a)=>{const _0x175b48=a2_0x50a3e8,_0x5f5d22=new AgentPullCommand(),_0x53b5d4=program[_0x175b48(0x257)](),_0x450c5a=await createTDXInstance(_0x53b5d4),_0x256469=[];if(_0x52acb1)_0x256469['push'](_0x52acb1);if(_0x3cd4ea)_0x256469[_0x175b48(0x1cb)](_0x3cd4ea);const _0x315fb0=await _0x5f5d22[_0x175b48(0x1ff)]({'options':{..._0x53b5d4,..._0x1d2d7a},'args':_0x256469,'tdx':_0x450c5a});gracefulExit(_0x315fb0);}),agentSyncCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x457))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x471))[a2_0x50a3e8(0x345)]('-f,\x20--force',a2_0x50a3e8(0x465))[a2_0x50a3e8(0x1d6)](async(_0x2348c9,_0x16521c)=>{const _0x284989=a2_0x50a3e8,_0x47b7db=new AgentPushCommand(),_0xf0902f=program[_0x284989(0x257)](),_0x25d8e7=await createTDXInstance(_0xf0902f),_0x753f6=await _0x47b7db[_0x284989(0x1ff)]({'options':{..._0xf0902f,..._0x16521c},'args':_0x2348c9?[_0x2348c9]:[],'tdx':_0x25d8e7});gracefulExit(_0x753f6);}),agentSyncCmd['command']('clone\x20[source]')[a2_0x50a3e8(0x269)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1ec),a2_0x50a3e8(0x39e))[a2_0x50a3e8(0x1d6)](async(_0x36eacc,_0x612067)=>{const _0x192da9=a2_0x50a3e8,_0x1a4c45=new AgentCloneCommand(),_0x16e400=program[_0x192da9(0x257)](),_0x314842=await createTDXInstance(_0x16e400),_0x5e59b2=await _0x1a4c45['run']({'options':{..._0x16e400,..._0x612067},'args':_0x36eacc?[_0x36eacc]:[],'tdx':_0x314842});gracefulExit(_0x5e59b2);}),agentSyncCmd['command'](a2_0x50a3e8(0x4ce))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x247))[a2_0x50a3e8(0x345)]('--name\x20<names>',a2_0x50a3e8(0x4d6))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x23f),a2_0x50a3e8(0x4da))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x1dd),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x475),a2_0x50a3e8(0x241))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x48b),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x50a3e8(0x1d6)](async(_0x3a3d8b,_0x314263)=>{const _0x16a34d=a2_0x50a3e8,_0x103a1d=new AgentTestCommand(),_0x18f11f=program[_0x16a34d(0x257)](),_0xc8957=await createTDXInstance(_0x18f11f),_0x3845ca=await _0x103a1d['run']({'options':{..._0x18f11f,..._0x314263},'args':_0x3a3d8b?[_0x3a3d8b]:[],'tdx':_0xc8957});gracefulExit(_0x3845ca);}),agentSyncCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x3c5))['description'](a2_0x50a3e8(0x49e))['action'](llmAgentListAction),agentSyncCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x266))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x472))[a2_0x50a3e8(0x1d6)](async(_0x1d52c2,_0x2ee225)=>{const _0x427583=a2_0x50a3e8,_0x349a03=new LLMAgentShowCommand(),_0x54e97e=program[_0x427583(0x257)](),_0xcb4bfb=await createTDXInstance(_0x54e97e),_0x24d9ff=await _0x349a03['run']({'options':{..._0x54e97e,..._0x2ee225},'args':[_0x1d52c2],'tdx':_0xcb4bfb});gracefulExit(_0x24d9ff);}),agentSyncCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x35b))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x355))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x41e),a2_0x50a3e8(0x38c))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2d4),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x50a3e8(0x2fb))[a2_0x50a3e8(0x345)]('--starter-message\x20<text>','Starter\x20message')[a2_0x50a3e8(0x345)]('--max-tool-iterations\x20<n>',a2_0x50a3e8(0x479),'4')[a2_0x50a3e8(0x345)]('--temperature\x20<n>',a2_0x50a3e8(0x4a7),'0.7')['action'](async(_0x12ea5e,_0x5ba694)=>{const _0x74a7cf=a2_0x50a3e8,_0x322998=new LLMAgentCreateCommand(),_0x717d10=program[_0x74a7cf(0x257)](),_0x590e1d=await createTDXInstance(_0x717d10),_0xce192b=await _0x322998[_0x74a7cf(0x1ff)]({'options':{..._0x717d10,..._0x5ba694},'args':[_0x12ea5e],'tdx':_0x590e1d});gracefulExit(_0xce192b);}),agentSyncCmd['command'](a2_0x50a3e8(0x412))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1b6))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x212),a2_0x50a3e8(0x2b5))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x37a),a2_0x50a3e8(0x3c9))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x34e),'Agent\x20description')[a2_0x50a3e8(0x345)]('--starter-message\x20<text>',a2_0x50a3e8(0x216))[a2_0x50a3e8(0x1d6)](async(_0x4e6314,_0x1f6943)=>{const _0x41da17=a2_0x50a3e8,_0x223e72=new LLMAgentUpdateCommand(),_0x15a57e=program[_0x41da17(0x257)](),_0x3a23da=await createTDXInstance(_0x15a57e),_0x170565=await _0x223e72[_0x41da17(0x1ff)]({'options':{..._0x15a57e,..._0x1f6943},'args':[_0x4e6314],'tdx':_0x3a23da});gracefulExit(_0x170565);}),agentSyncCmd['command'](a2_0x50a3e8(0x43b))[a2_0x50a3e8(0x269)]('Delete\x20an\x20agent')[a2_0x50a3e8(0x1d6)](async(_0xf42fde,_0x324ad4)=>{const _0x405db9=a2_0x50a3e8,_0x42cf50=new LLMAgentDeleteCommand(),_0x44b3be=program[_0x405db9(0x257)](),_0x3c75d2=await createTDXInstance(_0x44b3be),_0x287951=await _0x42cf50[_0x405db9(0x1ff)]({'options':{..._0x44b3be,..._0x324ad4},'args':[_0xf42fde],'tdx':_0x3c75d2});gracefulExit(_0x287951);});const workCmd=program['command'](a2_0x50a3e8(0x3bf))['description'](a2_0x50a3e8(0x42e));workCmd['option'](a2_0x50a3e8(0x46a),a2_0x50a3e8(0x2ab))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f3),a2_0x50a3e8(0x3fc))[a2_0x50a3e8(0x1d6)](workSummaryAction),workCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x210))[a2_0x50a3e8(0x269)]('Initialize\x20a\x20new\x20workspace')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x27b),a2_0x50a3e8(0x434))[a2_0x50a3e8(0x1d6)](workInitAction),workCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x275))['description'](a2_0x50a3e8(0x392))[a2_0x50a3e8(0x345)]('--kind\x20<kind>',a2_0x50a3e8(0x1e9),'item')[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x23f),a2_0x50a3e8(0x1f7))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x221),a2_0x50a3e8(0x1bd))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x381),a2_0x50a3e8(0x24a))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x301),a2_0x50a3e8(0x228))['option']('--status\x20<status>',a2_0x50a3e8(0x211))[a2_0x50a3e8(0x345)]('--assignee\x20<assignee>',a2_0x50a3e8(0x19a))[a2_0x50a3e8(0x1d6)](workNewAction),workCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4c8))['description'](a2_0x50a3e8(0x229))[a2_0x50a3e8(0x1d6)](workMoveAction),workCmd[a2_0x50a3e8(0x32d)]('board')[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1e8))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x46a),a2_0x50a3e8(0x2ab))[a2_0x50a3e8(0x345)](a2_0x50a3e8(0x2f3),a2_0x50a3e8(0x3fc))[a2_0x50a3e8(0x1d6)](workBoardAction),workCmd['command'](a2_0x50a3e8(0x30e))[a2_0x50a3e8(0x269)]('Show\x20document\x20details')[a2_0x50a3e8(0x1d6)](workShowAction),workCmd[a2_0x50a3e8(0x32d)]('links\x20<name>')['description'](a2_0x50a3e8(0x203))[a2_0x50a3e8(0x1d6)](workLinksAction),workCmd[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x4cd))[a2_0x50a3e8(0x269)](a2_0x50a3e8(0x1f6))[a2_0x50a3e8(0x1d6)](workOpenAction),program[a2_0x50a3e8(0x32d)](a2_0x50a3e8(0x425),{'hidden':!![]})['action'](()=>{const _0x15e847=a2_0x50a3e8;function _0xe0202c(_0x3a784f,_0x4e2eb0){const _0x2e1aae=a2_0x46b4,_0x407ef6=[];for(const _0x489a01 of _0x3a784f['commands']){if(_0x489a01['_hidden'])continue;const _0x528bd9=_0x4e2eb0?_0x4e2eb0+'\x20'+_0x489a01['name']():_0x489a01[_0x2e1aae(0x1a9)](),_0x518a84=_0x528bd9['split']('\x20')[0x0],_0x2bb7e3=COMMAND_CATEGORIES['find'](_0x9a11b2=>_0x9a11b2['commands'][_0x2e1aae(0x2ed)](_0x518a84)),_0x553864=_0x2bb7e3?.[_0x2e1aae(0x1a9)]??'';if(_0x489a01['commands'][_0x2e1aae(0x3f6)]>0x0)_0x407ef6[_0x2e1aae(0x1cb)](..._0xe0202c(_0x489a01,_0x528bd9));else{const _0x11a886=(_0x489a01[_0x2e1aae(0x3f2)]||[])['map'](_0x44216a=>{const _0x258195=_0x2e1aae,_0x8363b5=_0x44216a['variadic']?_0x44216a['name']()+_0x258195(0x4cb):_0x44216a['name']();return _0x44216a[_0x258195(0x193)]?'<'+_0x8363b5+'>':'['+_0x8363b5+']';})[_0x2e1aae(0x423)]('\x20'),_0x15aaa9=_0x489a01[_0x2e1aae(0x344)][_0x2e1aae(0x405)](_0x51246a=>!_0x51246a[_0x2e1aae(0x277)]&&_0x51246a[_0x2e1aae(0x41d)]!==_0x2e1aae(0x292))['map'](_0x594d13=>({'flags':_0x594d13[_0x2e1aae(0x2dc)],'description':_0x594d13['description']}));_0x407ef6['push']({'name':_0x528bd9,'description':_0x489a01[_0x2e1aae(0x269)](),'group':_0x553864,'usage':_0x11a886,'options':_0x15aaa9});}}return _0x407ef6;}console['log'](JSON[_0x15e847(0x4d2)](_0xe0202c(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x1396a8=a2_0x50a3e8,_0x364128=!process['argv'][_0x1396a8(0x3df)](0x2)[_0x1396a8(0x3f6)];showBriefHelp=_0x364128,program['parse'](process['argv']);_0x364128&&program[_0x1396a8(0x4a1)]();const _0x30a814=process[_0x1396a8(0x4c4)][0x2]===_0x1396a8(0x448);if(process[_0x1396a8(0x2d0)][_0x1396a8(0x26c)]&&process['argv']['length']>0x2&&!isDevVersion()&&!_0x30a814){const _0x30c6e2=loadReleaseChannel();checkForUpdate(currentVersion,_0x30c6e2)[_0x1396a8(0x411)](_0x1c7775=>{_0x1c7775&&displayUpdateNotification(_0x1c7775);})[_0x1396a8(0x3e9)](()=>{});}}