@treasuredata/tdx 2026.3.24 → 2026.3.26

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 (206) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.js +1 -1
  65. package/dist/core/profile.js +1 -1
  66. package/dist/core/project-config.js +1 -1
  67. package/dist/core/session.js +1 -1
  68. package/dist/core/user-cache.js +1 -1
  69. package/dist/core/version.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/mcp/server.js +1 -1
  72. package/dist/mcp/tools/index.js +1 -1
  73. package/dist/mcp/tools/tdx-run.js +1 -1
  74. package/dist/mcp/tools/tdx-search.js +1 -1
  75. package/dist/mcp/utils.js +1 -1
  76. package/dist/proxy/claude-usage-tracker.js +1 -1
  77. package/dist/proxy/passthrough-server.js +1 -1
  78. package/dist/proxy/sse-usage-parser.js +1 -1
  79. package/dist/sdk/agent/agent-config.js +1 -1
  80. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  81. package/dist/sdk/agent/agent-yaml.js +1 -1
  82. package/dist/sdk/agent/test/evaluator.js +1 -1
  83. package/dist/sdk/agent/test/executor.js +1 -1
  84. package/dist/sdk/agent/test/index.js +1 -1
  85. package/dist/sdk/agent/test/output.js +1 -1
  86. package/dist/sdk/agent/test/parser.js +1 -1
  87. package/dist/sdk/agent/tool-target-registry.js +1 -1
  88. package/dist/sdk/api.js +1 -1
  89. package/dist/sdk/client/cdp-api-client.js +1 -1
  90. package/dist/sdk/client/delivery-api-client.js +1 -1
  91. package/dist/sdk/client/endpoints.js +1 -1
  92. package/dist/sdk/client/engage-api-client.js +1 -1
  93. package/dist/sdk/client/http-client.js +1 -1
  94. package/dist/sdk/client/llm-api-client.js +1 -1
  95. package/dist/sdk/client/oauth-refresh.js +1 -1
  96. package/dist/sdk/client/rate-limiter.js +1 -1
  97. package/dist/sdk/client/td-api-client.js +1 -1
  98. package/dist/sdk/client/trino-api-client.js +1 -1
  99. package/dist/sdk/client/workflow-client.js +1 -1
  100. package/dist/sdk/connection-validator.js +1 -1
  101. package/dist/sdk/connection.js +1 -1
  102. package/dist/sdk/delivery.js +1 -1
  103. package/dist/sdk/engage/campaign-pull.js +1 -1
  104. package/dist/sdk/engage/campaign-push.js +1 -1
  105. package/dist/sdk/engage/campaign-validator.js +1 -1
  106. package/dist/sdk/engage/campaign-yaml.js +1 -1
  107. package/dist/sdk/engage/template-pull.js +1 -1
  108. package/dist/sdk/engage/template-push.js +1 -1
  109. package/dist/sdk/engage/template-validator.js +1 -1
  110. package/dist/sdk/engage/template-yaml.js +1 -1
  111. package/dist/sdk/engage/types/campaign-def.js +1 -1
  112. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  113. package/dist/sdk/engage/types/template-schema.js +1 -1
  114. package/dist/sdk/engage.js +1 -1
  115. package/dist/sdk/errors.js +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/io/index.js +1 -1
  118. package/dist/sdk/io/node-filesystem.js +1 -1
  119. package/dist/sdk/job.js +1 -1
  120. package/dist/sdk/journey.js +1 -1
  121. package/dist/sdk/llm/chat-cache.js +1 -1
  122. package/dist/sdk/llm/index.js +1 -1
  123. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  124. package/dist/sdk/llm/model-factors.js +1 -1
  125. package/dist/sdk/personalization.js +1 -1
  126. package/dist/sdk/policy.js +1 -1
  127. package/dist/sdk/query/index.js +1 -1
  128. package/dist/sdk/query/sql-parser.js +1 -1
  129. package/dist/sdk/realtime.js +1 -1
  130. package/dist/sdk/schedule.js +1 -1
  131. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  132. package/dist/sdk/segment/fields-display.js +1 -1
  133. package/dist/sdk/segment/file-discovery.js +1 -1
  134. package/dist/sdk/segment/journey-utils.js +1 -1
  135. package/dist/sdk/segment/journey-validator.js +1 -1
  136. package/dist/sdk/segment/journey-yaml.js +1 -1
  137. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  138. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  139. package/dist/sdk/segment/pull-workflow.js +1 -1
  140. package/dist/sdk/segment/push-recovery.js +1 -1
  141. package/dist/sdk/segment/push-workflow.js +1 -1
  142. package/dist/sdk/segment/resolution-context.js +1 -1
  143. package/dist/sdk/segment/segment-path-parser.js +1 -1
  144. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  145. package/dist/sdk/segment/segment-validator.js +1 -1
  146. package/dist/sdk/segment/target-resolution.js +1 -1
  147. package/dist/sdk/segment/tdx-config.js +1 -1
  148. package/dist/sdk/segment/types/activation-schema.js +1 -1
  149. package/dist/sdk/segment/types/journey-def.js +1 -1
  150. package/dist/sdk/segment/types/journey-schema.js +1 -1
  151. package/dist/sdk/segment/types/segment-def.js +1 -1
  152. package/dist/sdk/segment/types/segment-schema.js +1 -1
  153. package/dist/sdk/segment/validate-files.js +1 -1
  154. package/dist/sdk/segment/yaml-validator.js +1 -1
  155. package/dist/sdk/segment.d.ts +5 -0
  156. package/dist/sdk/segment.d.ts.map +1 -1
  157. package/dist/sdk/segment.js +1 -1
  158. package/dist/sdk/segment.js.map +1 -1
  159. package/dist/sdk/types/index.js +1 -1
  160. package/dist/sdk/types/progress.js +1 -1
  161. package/dist/sdk/user.js +1 -1
  162. package/dist/sdk/util/format-detector.js +1 -1
  163. package/dist/sdk/util/formatters.js +1 -1
  164. package/dist/sdk/util/index.js +1 -1
  165. package/dist/sdk/util/paginate.js +1 -1
  166. package/dist/sdk/util/tree-formatter.js +1 -1
  167. package/dist/sdk/workflow/archive-validation.js +1 -1
  168. package/dist/sdk/workflow/clone-workflow.js +1 -1
  169. package/dist/sdk/workflow/index.js +1 -1
  170. package/dist/sdk/workflow/pull-workflow.js +1 -1
  171. package/dist/sdk/workflow/push-workflow.js +1 -1
  172. package/dist/sdk/workflow/tdx-config.js +1 -1
  173. package/dist/sdk/workflow/workflow-utils.js +1 -1
  174. package/dist/test-utils/command-runner.js +1 -1
  175. package/dist/test-utils/factories.js +1 -1
  176. package/dist/test-utils/fixtures.js +1 -1
  177. package/dist/test-utils/http-mock.js +1 -1
  178. package/dist/test-utils/index.js +1 -1
  179. package/dist/utils/async.js +1 -1
  180. package/dist/utils/colors.js +1 -1
  181. package/dist/utils/diff.js +1 -1
  182. package/dist/utils/file-permissions.js +1 -1
  183. package/dist/utils/file-reader.js +1 -1
  184. package/dist/utils/github-releases.js +1 -1
  185. package/dist/utils/global-cache.js +1 -1
  186. package/dist/utils/json-loader.js +1 -1
  187. package/dist/utils/local-cache.js +1 -1
  188. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  189. package/dist/utils/logger/formatters/index.js +1 -1
  190. package/dist/utils/logger/handlers/console-handler.js +1 -1
  191. package/dist/utils/logger/handlers/file-handler.js +1 -1
  192. package/dist/utils/logger/handlers/index.js +1 -1
  193. package/dist/utils/logger/handlers/null-handler.js +1 -1
  194. package/dist/utils/logger/index.js +1 -1
  195. package/dist/utils/logger/logger.js +1 -1
  196. package/dist/utils/logger/types.js +1 -1
  197. package/dist/utils/option-validation.js +1 -1
  198. package/dist/utils/process.js +1 -1
  199. package/dist/utils/prompt.js +1 -1
  200. package/dist/utils/spinner.js +1 -1
  201. package/dist/utils/sse-parser.js +1 -1
  202. package/dist/utils/string-utils.js +1 -1
  203. package/dist/utils/table-ref-parser.js +1 -1
  204. package/dist/utils/tdx-logger.js +1 -1
  205. package/dist/utils/version-check.js +1 -1
  206. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x36f7b6=a2_0xe904;(function(_0xce3d5f,_0xca8267){const _0x4e1333=a2_0xe904,_0x3d1088=_0xce3d5f();while(!![]){try{const _0x226e8e=parseInt(_0x4e1333(0x174))/0x1*(parseInt(_0x4e1333(0x1bc))/0x2)+parseInt(_0x4e1333(0x2a4))/0x3*(parseInt(_0x4e1333(0x182))/0x4)+parseInt(_0x4e1333(0x16e))/0x5+parseInt(_0x4e1333(0xe3))/0x6+-parseInt(_0x4e1333(0xc2))/0x7+-parseInt(_0x4e1333(0x31e))/0x8*(-parseInt(_0x4e1333(0x307))/0x9)+-parseInt(_0x4e1333(0x366))/0xa*(parseInt(_0x4e1333(0x10b))/0xb);if(_0x226e8e===_0xca8267)break;else _0x3d1088['push'](_0x3d1088['shift']());}catch(_0x480814){_0x3d1088['push'](_0x3d1088['shift']());}}}(a2_0x57e9,0xb389c));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';function a2_0x57e9(){const _0x496059=['Include\x20retried\x20attempts','push','isTTY','-f,\x20--force','Show\x20all\x20files\x20including\x20valid\x20ones','--attribute\x20[name]','Delete\x20an\x20email\x20template','--attributes\x20<json>','tdx\x20','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Resume\x20a\x20paused\x20journey','parse','\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','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--tsv','opts','List\x20email\x20senders','--html\x20<html>','list','--parent-segment\x20<name>','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','View\x20a\x20specific\x20version\x20of\x20a\x20journey','retry','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','push\x20[name]','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Output\x20file\x20path','--new','options','workspace','Filtering\x20rule\x20as\x20JSON\x20string','Move\x20to\x20folder','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','isDirectory','Show\x20only\x20master\x20table\x20validation','upgrade\x20[version]','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Skip\x20validation\x20of\x20.dig\x20files','push\x20[path]','gitRevision','launch\x20<name-or-id>','New\x20campaign\x20name','use\x20<name>','--customer-group\x20<json>','--tags\x20<tags>','[EXPERIMENTAL]\x20Show\x20chat\x20log','journeys\x20[pattern]','Kill\x20a\x20job','--email-sender-id\x20<id>','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a','Limit\x20number\x20of\x20rows','name','AI-native\x20CLI\x20for\x20Treasure\x20Data','commandDescription','Resume\x20from\x20specific\x20task\x20(retry)','show\x20<policy>','Delete\x20a\x20campaign','--type\x20<api_type>','GET','pull\x20[name]','push\x20[parent_or_file]','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Remove\x20API\x20key\x20from\x20system\x20keychain','Delete\x20a\x20workspace','Validate\x20journey\x20YAML\x20files\x20locally','--timeout\x20<seconds>','--plaintext\x20<text>','Remove\x20a\x20profile','kill\x20<job-id>','Submit\x20a\x20job','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','catch','Maximum\x20rows\x20to\x20display','-d,\x20--database\x20<database>','Plaintext\x20template\x20content','3758487GURvmK','claude\x20[args...]','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Commands:','option','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','view\x20<name-or-path>','attempt:','setup','--table','error','Skip\x20confirmation\x20prompts','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','--enriched','Start\x20a\x20new\x20chat\x20session','remove\x20<name>','accessToken','--clear','New\x20template\x20name','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--params\x20<json>','Include\x20raw\x20history\x20data\x20in\x20output','show\x20<agent-name>','--limit\x20<n>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Database\x20name\x20(required)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','push\x20[target]','tsv','\x22.\x20Must\x20be\x20a\x20number.','Customer\x20group\x20from\x20JSON\x20file','--delay\x20<seconds>','[DEPRECATED]\x20Segment\x20folder\x20management','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','view\x20[segment_name]','Update\x20a\x20scheduled\x20query','--yes','version','Attributes\x20as\x20JSON\x20string','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Folder\x20name\x20for\x20organization','replace','delete\x20<name-or-id>','List\x20available\x20LLM\x20models','Get\x20job\x20results','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--invisible','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','update\x20<name-or-id>','--session-time\x20<time>','--description\x20<desc>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','-c,\x20--continue','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','workflows\x20[project]','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','show\x20[name]','pull\x20[project]\x20[agent-name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Read\x20request\x20body\x20from\x20file','fields\x20[parent_name]','--job-type\x20<type>','command','preview\x20[name]','logLevel','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','table','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--reason\x20<text>','Create\x20a\x20scheduled\x20query','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','filter','RT\x202.0\x20configuration\x20management','usage','description','history\x20<name>','Segment\x20description','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','addHelpText','create','list\x20[project]','--interval\x20<range>','finish\x20<name-or-id>','Workflow\x20parameter\x20(repeatable)','duplicate\x20<name-or-id>','Output\x20as\x20JSON\x20Lines','--path\x20<file-path>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','agents\x20[pattern]','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','stats\x20<name-or-path>','folders\x20<parent_name>','6635322mhqEdO','Template\x20name','Delete\x20a\x20scheduled\x20query','Pull\x20specific\x20template\x20by\x20name','resume\x20<name-or-path>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--workspace\x20<name>','after','Pause\x20a\x20running\x20journey','Show\x20schedule\x20details','--stage\x20<name>','Create\x20segment\x20folder','Launch\x20a\x20campaign','HTML\x20template\x20content','-f,\x20--file\x20<path>','--method\x20<pm>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Show\x20what\x20would\x20be\x20written\x20without\x20writing','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Continue\x20most\x20recent\x20conversation','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','alias','Name\x20for\x20the\x20duplicated\x20campaign','8hFtqlw','templates\x20[pattern]','Reason\x20for\x20killing\x20the\x20attempt','Custom\x20revision\x20name\x20(default:\x20timestamp)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','create\x20<name-or-path>','Show\x20authentication\x20status\x20and\x20current\x20context','Email\x20sender\x20ID\x20for\x20delivery','session','List\x20available\x20connector\x20types','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--from\x20<timestamp>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Parse\x20and\x20validate\x20without\x20executing','Timezone\x20(e.g.,\x20America/Los_Angeles)','Launch\x20an\x20always-on\x20campaign','--segment\x20<path>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Set\x20operation\x20timeout\x20in\x20seconds','Include\x20execution\x20statistics','--no-count-population','sessions\x20[project]','list\x20[name]','-y,\x20--yes','--trace','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','DEBUG','--default','length','information_schema','INVALID_ARGUMENT','Overwrite\x20local\x20changes\x20without\x20confirmation','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--force','always-on-campaigns\x20[pattern]','buildTime','List\x20activations\x20for\x20a\x20journey','-o,\x20--output\x20<folder>','--jsonl','Run\x20a\x20scheduled\x20query\x20immediately','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Workspace\x20name\x20(required)','--prompt\x20<text>','List\x20jobs','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Pull\x20specific\x20revision\x20(default:\x20latest)','[task-name]','forEach','desc\x20[name]','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--full','optionTerm','--follow','--status\x20<status>','trace','users','Maximum\x20recursion\x20depth\x20(default:\x2010)','Workspace\x20management','Show\x20segment\x20schema\x20(column\x20types)','result\x20<job-id>','--num\x20<1-10>','[attempt-id]','run\x20[workflow]','show\x20<name-or-id>','Workflow\x20(Digdag)\x20management\x20commands','entries','Update\x20a\x20campaign','Parent\x20folder\x20name\x20for\x20nested\x20folders','\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','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','1390CsxkCi','Make\x20segment\x20invisible\x20(default:\x20visible)','query\x20[sql]','list\x20[pattern]','Set\x20a\x20profile\x20configuration\x20value','Workspace\x20description','\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','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--skip-validation','push\x20[source-dir]','hidden','List\x20agents\x20in\x20current\x20project','Include\x20subtasks\x20in\x20tasks\x20output','split','TRACE','databases\x20[pattern]','Create\x20a\x20workspace','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--max-tool-iterations\x20<n>','pause\x20<name-or-path>','Query\x20engine\x20version','pause\x20<name-or-id>','List\x20all\x20versions\x20of\x20a\x20journey','Pull\x20child\x20segments\x20to\x20YAML\x20files','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Show\x20workspace\x20details','versions\x20<name-or-path>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Maximum\x20tool\x20iterations\x20(default:\x204)','--site\x20<site>','--to\x20<n>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','List\x20all\x20data\x20connections','--start-at\x20<datetime>','create\x20<parent_name>\x20<folder_name>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Database\x20name\x20(default:\x20information_schema)','Export\x20journey(s)\x20as\x20YAML\x20files','chat\x20[message...]','Show\x20agent\x20details','Personalization\x20service\x20management','Validate\x20campaign\x20YAML\x20files\x20locally','policy','--dry-run','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Run\x20tests\x20for\x20an\x20LLM\x20agent','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','delete\x20<args...>','argv','help','stderr','--delete','4615681Wwykdb','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Add\x20behaviors\x20as\x20JSON\x20string','Enable\x20UTM\x20tracking','jsonl','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','argumentTerm','\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','-d,\x20--database\x20<db>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Open\x20parent\x20segment\x20in\x20web\x20browser','Open\x20journey\x20in\x20web\x20browser','Database\x20to\x20query\x20(default:\x20information_schema)','Update\x20an\x20existing\x20agent','format','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--retry-limit\x20<0~32>','Database\x20management\x20commands','--version\x20<number>','--timezone\x20<tz>','Project\x20description','Access\x20control\x20policy\x20commands','tables\x20[pattern]','Always-on\x20campaign\x20management','Preview\x20changes\x20without\x20writing\x20files','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Pull\x20templates\x20to\x20YAML\x20files','attempt','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Pull\x20specific\x20campaign\x20by\x20name','1276620DmAzKI','list\x20[path]','Show\x20master\x20table\x20sample\x20data','--max-depth\x20<depth>','init\x20[name]','--starter-message\x20<text>','Output\x20as\x20JSON','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Workflow\x20attempt\x20management','padEnd','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','-n,\x20--name\x20<name>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Agent\x20description','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--behavior\x20[name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','padWidth','Trino\x20catalog\x20(default:\x20td)','--include-subtasks','aliases','log','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','logs','optionDescription','download\x20<project-name>\x20[output-dir]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--attributes-file\x20<file>','Delay\x20in\x20seconds\x20before\x20execution','use\x20[name]','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Force\x20retry\x20even\x20if\x20not\x20failed','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','run\x20[name]','upgrade','database','--debug','--from\x20<date>','Output\x20folder\x20(default:\x20{project_name}.llm)','263989CMjqau','subcommandDescription','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Read\x20SQL\x20query\x20from\x20file','auth','Ending\x20offset\x20(default:\x2020)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','schedule','Usage:\x20','run\x20<name>','Database\x20name','--limit\x20<rows>','Show\x20journey\x20statistics','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','resume\x20<name-or-id>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--color','injectIntoOptions','history\x20[chat-id]','chats','Show\x20timeline\x20for\x20specific\x20attempt','Read\x20query\x20from\x20file','exit','Setup\x20API\x20key\x20authentication\x20interactively','includes','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','createAsync','--folder\x20<name>','-r,\x20--resume','Interactive\x20chat\x20selector','create\x20[name]','stringify','--name\x20<name>','use\x20[resource]\x20[value]','outputHelp','preview\x20[file]','Attributes\x20from\x20JSON\x20file','Action:\x20logs,\x20tasks,\x20kill,\x20retry','attempts\x20[project]','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Workflow\x20project\x20management','isArray','Version\x20number\x20to\x20view','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','update\x20<agent-name>','--editor-type\x20<type>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','\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','Pause\x20an\x20always-on\x20campaign','Add\x20attributes\x20from\x20JSON\x20file','settings\x20<type>','pull\x20[workspace-name]','--description\x20<text>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Retry\x20limit\x20(0\x20to\x2032)','find','--parent-folder\x20<name>','Output\x20file\x20path\x20(default:\x20<name>.yml)','Cron\x20expression\x20for\x20scheduling','backup\x20<name>','Arguments:','upload\x20[project-name-or-dir]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','show\x20[table]','--format\x20<format>','--schedule-type\x20<type>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Task\x20name\x20for\x20logs\x20action','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','statusline','Run\x20specific\x20tests\x20(comma-separated)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Job\x20management\x20commands','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Request\x20body\x20as\x20JSON\x20string','-X,\x20--method\x20<method>','argumentDescription','validate\x20[name]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Update\x20an\x20always-on\x20campaign','Updated\x20schedule\x20option','Describe\x20table\x20schema','unset\x20<resource>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','required','Agent\x20name','requiredOption','use\x20[project]','Read\x20HTML\x20template\x20from\x20file','Timezone\x20for\x20cron','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Master\x20database\x20name','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','6246705Ggpyso','Behaviors\x20from\x20JSON\x20file','claude-4.5-sonnet','folder','--engine-version\x20<version>','0.7','19zZuffW','mcp','us01','clone\x20[source-dir]','Updated\x20description','Resume\x20a\x20paused\x20always-on\x20campaign','Show\x20the\x20most\x20recent\x20chat','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','journey','validate\x20[target]','engage','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','4rWflYb','--rule-file\x20<file>','chdir','Query\x20type:\x20trino\x20or\x20hive','schema\x20<type>','action','--type\x20<type>','Show\x20always-on\x20campaign\x20details','tdx','delete\x20<name>','map','Campaign\x20name','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Timezone\x20for\x20cron\x20(default:\x20UTC)','test\x20[path]','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','subcommandTerm','show\x20<folder_ref>','-C,\x20--directory\x20<path>','allowUnknownOption','--schedule-option\x20<value>','--add-behaviors-file\x20<file>','Show\x20schedule\x20execution\x20history','Push\x20without\x20confirmation','project','--in\x20<db>','-w,\x20--web','Delivery\x20operations\x20(email\x20senders)','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Generate\x20test\x20conversations\x20without\x20evaluation','--last','Campaign\x20management','Starting\x20offset\x20(default:\x200)','Delete\x20an\x20LLM\x20project','Create\x20a\x20new\x20agent\x20in\x20current\x20project','_hidden','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','LLM\x20agent\x20management','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','_list-commands','site','--next','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Journey\x20version\x20management','--rule\x20<json>','template','New\x20workspace\x20name','Create\x20a\x20new\x20profile','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','--result\x20<target>','flags','--to\x20<timestamp>','fields\x20[name]','campaigns\x20[pattern]','Create\x20a\x20new\x20always-on\x20campaign','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','commands','134572PMFzcV','Finish\x20an\x20always-on\x20campaign','engage_workspace',',\x20version\x20','--priority\x20<-2~2>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','flatMap','--version','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Folder\x20description','List\x20journeys\x20(alias\x20for\x20journey\x20list)','summary','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','push\x20[file]','Update\x20an\x20email\x20template','Starter\x20message','Preview\x20without\x20creating\x20the\x20project','connection','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','run','[options]\x20--\x20[claude-code-args...]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','directory','CDP\x20Journey\x20Orchestration\x20commands','--include-retried','clear','Update\x20a\x20workspace','show\x20<job-id>','segment','YAML\x20file\x20path\x20for\x20unpushed\x20segment','Create\x20a\x20new\x20LLM\x20project','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','jobs','secrets','json','debug','-1d','INFO','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','argument','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--to\x20<date>','Show\x20connection\x20details\x20by\x20name','hook','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Delete\x20an\x20agent','workflow','join','Parent\x20segment\x20management','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','update\x20<name>','--reeval','Maximum\x20number\x20of\x20nodes','-v,\x20--verbose','--revision\x20<revision>','--data\x20<data>','describe\x20[table]','show\x20<name>','llm','parent_segment','Include\x20retried\x20attempts\x20(for\x20list)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','-o,\x20--output\x20<file>','senders\x20[pattern]','timeline\x20[project.workflow]','noColor','--no-eval','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--result\x20<url>','--session\x20<id>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','clone\x20[source]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--verbose','status','Change\x20to\x20directory\x20before\x20executing\x20command','Name\x20for\x20the\x20new\x20project\x20(required)','Workflow\x20session\x20management','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','Create\x20an\x20email\x20template','--cron\x20<expression>','--add-attributes\x20<json>','Show\x20stats\x20for\x20specific\x20stage','Pull\x20workflow\x20project\x20to\x20local\x20folder','slice','apiKey','Show\x20campaign\x20details','Skip\x20confirmation\x20prompt','--master','use\x20<project-name>','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','...','Path\x20is\x20not\x20a\x20directory:\x20','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','registeredArguments','Preview\x20operation\x20without\x20executing','Skip\x20population\x20counting','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','--session-id\x20<id>','job','Email\x20subject\x20template','New\x20segment\x20name','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--json','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Pause\x20a\x20campaign','parent-segment','Workspace\x20name','projects\x20[pattern]','Duplicate\x20an\x20always-on\x20campaign','--time\x20<iso8601>','Campaign\x20description','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Duplicate\x20a\x20campaign','repeat','api\x20[endpoint]','--html-file\x20<path>','Agent\x20prompt/instructions','desc\x20[segment_name]','campaign','segments\x20[path]','--output\x20<file>','always-on-campaign','Filtering\x20rule\x20from\x20JSON\x20file','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','-H,\x20--header\x20<header>','--json-columns\x20<cols>','User\x20management\x20commands','Email\x20template\x20management','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20job\x20details','delete\x20<agent-name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','--llm-project\x20<name>','--name\x20<names>','--resume-from\x20<task>','Pull\x20campaigns\x20to\x20YAML\x20files','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','variadic','--param\x20<key=value>','--in\x20<database>','create\x20<name>','--kind\x20<type>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Clear\x20workflow\x20project\x20context','Enable\x20verbose\x20logging','--from\x20<n>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Job\x20priority\x20(-2\x20to\x202)'];a2_0x57e9=function(){return _0x496059;};return a2_0x57e9();}import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x36f7b6(0xbe)][a2_0x36f7b6(0x125)](a2_0x36f7b6(0x1c3))){let versionOutput=a2_0x36f7b6(0x25d)+currentVersion;buildInfo[a2_0x36f7b6(0x280)]&&!currentVersion[a2_0x36f7b6(0x125)](buildInfo[a2_0x36f7b6(0x280)])&&(versionOutput+='\x20('+buildInfo[a2_0x36f7b6(0x280)]+')'),buildInfo[a2_0x36f7b6(0x342)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x36f7b6(0x342)]),console[a2_0x36f7b6(0xf9)](versionOutput),process[a2_0x36f7b6(0x123)](0x0);}const program=new Command();export function mergeCommandOptions(_0x4cbada,_0x57622c){const _0x39f95f=a2_0x36f7b6,_0x4f3ee8={..._0x4cbada};for(const [_0x348d43,_0x3043d2]of Object[_0x39f95f(0x360)](_0x57622c)){_0x3043d2!==undefined&&(_0x4f3ee8[_0x348d43]=_0x3043d2);}return _0x4f3ee8;}let showBriefHelp=![],description=a2_0x36f7b6(0x28d);buildInfo[a2_0x36f7b6(0x280)]&&!currentVersion[a2_0x36f7b6(0x125)](buildInfo[a2_0x36f7b6(0x280)])?description+=a2_0x36f7b6(0x1bf)+currentVersion+'\x20('+buildInfo[a2_0x36f7b6(0x280)]+')':description+=a2_0x36f7b6(0x1bf)+currentVersion;program['name']('tdx')[a2_0x36f7b6(0x2f3)](description),program[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x195),a2_0x36f7b6(0x209))[a2_0x36f7b6(0x2a8)]('-p,\x20--profile\x20<name>',a2_0x36f7b6(0x202))['option'](a2_0x36f7b6(0xaa),a2_0x36f7b6(0x350),a2_0x36f7b6(0x176))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x14e),a2_0x36f7b6(0x143))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2ae),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')['option'](a2_0x36f7b6(0x226),a2_0x36f7b6(0x13c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x345),a2_0x36f7b6(0x21b))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x265),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x36f7b6(0x238),'Save\x20output\x20to\x20file')[a2_0x36f7b6(0x2a8)]('--limit\x20<number>',a2_0x36f7b6(0x2c8))['option'](a2_0x36f7b6(0x11d),a2_0x36f7b6(0xd3),![])[a2_0x36f7b6(0x2a8)]('--no-color',a2_0x36f7b6(0x17f),![])[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1f1),a2_0x36f7b6(0x251),![])[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x108),a2_0x36f7b6(0x15c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x337),a2_0x36f7b6(0x1ff))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x29a),a2_0x36f7b6(0x331),'30')[a2_0x36f7b6(0x2a8)]('--dry-run',a2_0x36f7b6(0x21d),![])[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x336),a2_0x36f7b6(0x2b0),![])[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x201),a2_0x36f7b6(0x364))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x26a),a2_0x36f7b6(0x1ba))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x244),a2_0x36f7b6(0x18e)),program['configureHelp']({'formatHelp':(_0x1df853,_0x219f94)=>{const _0x2d6d90=a2_0x36f7b6,_0x18e970=_0x219f94[_0x2d6d90(0xf5)](_0x1df853,_0x219f94),_0x35f65d=0x2,_0x230248=0x2;function _0x5ed860(_0x38c0d1){const _0x57fd16=_0x2d6d90,_0x1b33c0=_0x38c0d1;return!!(_0x1b33c0['_hidden']||_0x1b33c0[_0x57fd16(0x371)]);}function _0x76690e(_0x2d4e67,_0x23f3d4){const _0x30e80c=_0x2d6d90;if(_0x23f3d4){const _0x460b5b=''+_0x2d4e67[_0x30e80c(0xec)](_0x18e970+_0x230248)+_0x23f3d4;return _0x460b5b;}return _0x2d4e67;}function _0x5eb388(_0x153530){const _0x2472b1=_0x2d6d90;return _0x153530[_0x2472b1(0x1eb)]('\x0a')[_0x2472b1(0x2d0)](/^/gm,'\x20'[_0x2472b1(0x231)](_0x35f65d));}const _0xcb0618=[];_0xcb0618[_0x2d6d90(0x256)](_0x2d6d90(0x114)+_0x219f94['commandUsage'](_0x1df853));const _0x169a5e=_0x219f94[_0x2d6d90(0x28e)](_0x1df853);_0x169a5e&&(_0xcb0618[_0x2d6d90(0x256)](''),_0xcb0618['push'](_0x169a5e));const _0x50983a=_0x1df853[_0x2d6d90(0x1bb)][_0x2d6d90(0x2f0)](_0x198f23=>!_0x5ed860(_0x198f23));if(_0x50983a[_0x2d6d90(0x33b)]>0x0){if(_0x1df853['name']()==='tdx'){const _0x1187b5=_0x1df853[_0x2d6d90(0x266)](),_0x3ba715=!_0x1187b5[_0x2d6d90(0x1fd)]&&process['stdout'][_0x2d6d90(0x257)],_0x108778=COMMAND_CATEGORIES,_0x3f4130=(_0x32458c,_0x47547c)=>_0x3ba715?_0x47547c(_0x32458c):_0x32458c,_0x5614e4=new Map();_0x50983a[_0x2d6d90(0x34e)](_0x37f838=>{_0x5614e4['set'](_0x37f838['name'](),_0x37f838);}),_0x108778[_0x2d6d90(0x34e)](_0x7b64bb=>{const _0x448a98=_0x2d6d90,_0x550627=_0x7b64bb['commands'][_0x448a98(0x1c2)](_0x191b0d=>_0x5614e4['get'](_0x191b0d)??[]);if(_0x550627[_0x448a98(0x33b)]>0x0){_0xcb0618['push'](''),_0xcb0618[_0x448a98(0x256)](_0x3f4130(_0x7b64bb[_0x448a98(0x28c)]+':',_0x7b64bb['colorFn']));const _0xda982a=_0x550627['map'](_0x5cffb9=>{const _0x5396ca=_0x448a98,_0x134343=_0x219f94[_0x5396ca(0x193)](_0x5cffb9),_0x316533=_0x219f94['subcommandDescription'](_0x5cffb9);return _0x76690e(_0x134343,_0x316533);});_0xcb0618[_0x448a98(0x256)](_0x5eb388(_0xda982a));}}),_0xcb0618[_0x2d6d90(0x256)](''),_0xcb0618[_0x2d6d90(0x256)](_0x2d6d90(0x1c1));}else{const _0x42a71d=_0x50983a['map'](_0x144efd=>{const _0x4e41c9=_0x2d6d90,_0x3099cf=_0x219f94['subcommandTerm'](_0x144efd),_0x5dbb54=_0x219f94[_0x4e41c9(0x10c)](_0x144efd);return _0x76690e(_0x3099cf,_0x5dbb54);});_0xcb0618['push'](''),_0xcb0618[_0x2d6d90(0x256)](_0x2d6d90(0x2a7)),_0xcb0618['push'](_0x5eb388(_0x42a71d));}}if(showBriefHelp&&_0x1df853[_0x2d6d90(0x28c)]()===_0x2d6d90(0x18a))_0xcb0618['push'](''),_0xcb0618[_0x2d6d90(0x256)](_0x2d6d90(0x270));else{const _0x2f59ef=_0x1df853[_0x2d6d90(0x274)]['filter'](_0x33c81d=>!_0x5ed860(_0x33c81d));if(_0x2f59ef[_0x2d6d90(0x33b)]>0x0){const _0x1d28e4=_0x2f59ef[_0x2d6d90(0x18c)](_0x4078af=>{const _0x59dc82=_0x2d6d90,_0x39695a=_0x219f94[_0x59dc82(0x352)](_0x4078af),_0x15099a=_0x219f94[_0x59dc82(0xfc)](_0x4078af);return _0x76690e(_0x39695a,_0x15099a);});_0xcb0618[_0x2d6d90(0x256)](''),_0xcb0618[_0x2d6d90(0x256)]('Options:'),_0xcb0618[_0x2d6d90(0x256)](_0x5eb388(_0x1d28e4));}}const _0x1fa0f0=(_0x1df853['registeredArguments']||[])[_0x2d6d90(0x2f0)](_0x1a64ec=>!_0x5ed860(_0x1a64ec));if(_0x1fa0f0['length']>0x0){const _0x4f201d=_0x1fa0f0['map'](_0x4e322a=>{const _0x3ce2ee=_0x2d6d90,_0x608cc5=_0x219f94[_0x3ce2ee(0xca)](_0x4e322a),_0x3c1130=_0x219f94[_0x3ce2ee(0x15a)](_0x4e322a);return _0x76690e(_0x608cc5,_0x3c1130);});_0xcb0618[_0x2d6d90(0x256)](''),_0xcb0618['push'](_0x2d6d90(0x14a)),_0xcb0618['push'](_0x5eb388(_0x4f201d));}return _0xcb0618['join']('\x0a')+'\x0a';},'subcommandTerm':_0x17215e=>{const _0x42e8c4=a2_0x36f7b6,_0x381548=(_0x17215e['registeredArguments']||[])[_0x42e8c4(0x18c)](_0x3b67fc=>_0x3b67fc[_0x42e8c4(0x162)]?'<'+_0x3b67fc[_0x42e8c4(0x28c)]()+'>':'['+_0x3b67fc[_0x42e8c4(0x28c)]()+']')[_0x42e8c4(0x1eb)]('\x20'),_0x31ccd1=_0x17215e[_0x42e8c4(0xf8)](),_0x2a7522=_0x31ccd1[_0x42e8c4(0x33b)]>0x0?_0x17215e[_0x42e8c4(0x28c)]()+',\x20'+_0x31ccd1[_0x42e8c4(0x1eb)](',\x20'):_0x17215e[_0x42e8c4(0x28c)]();return _0x381548?_0x2a7522+'\x20'+_0x381548:_0x2a7522;}}),program[a2_0x36f7b6(0x1e7)]('preAction',_0x2ad2b2=>{const _0xdc0566=a2_0x36f7b6,_0x37e393=_0x2ad2b2['opts']();if(_0x37e393['directory']){const _0x59abde=resolve(_0x37e393[_0xdc0566(0x1d2)]),_0x164b8e=_0x59abde!==_0x37e393[_0xdc0566(0x1d2)]?'\x20(resolved\x20to\x20'+_0x59abde+')':'';if(!existsSync(_0x59abde))throw new SDKError(ErrorCode[_0xdc0566(0x33d)],'Directory\x20does\x20not\x20exist:\x20'+_0x37e393[_0xdc0566(0x1d2)]+_0x164b8e,undefined,{'helpText':_0xdc0566(0x2ea)});const _0x5ef6af=statSync(_0x59abde);if(!_0x5ef6af[_0xdc0566(0x279)]())throw new SDKError(ErrorCode[_0xdc0566(0x33d)],_0xdc0566(0x21a)+_0x37e393[_0xdc0566(0x1d2)]+_0x164b8e,undefined,{'helpText':_0xdc0566(0x10e)});process[_0xdc0566(0x184)](_0x59abde);}if(!_0x37e393[_0xdc0566(0xd2)]){if(_0x37e393[_0xdc0566(0x2eb)])_0x37e393[_0xdc0566(0xd2)]='table';else{if(_0x37e393[_0xdc0566(0x1de)])_0x37e393[_0xdc0566(0xd2)]=_0xdc0566(0x1de);else{if(_0x37e393[_0xdc0566(0xc8)])_0x37e393[_0xdc0566(0xd2)]=_0xdc0566(0xc8);else _0x37e393[_0xdc0566(0x2c3)]&&(_0x37e393[_0xdc0566(0xd2)]=_0xdc0566(0x2c3));}}}if(_0x37e393[_0xdc0566(0x355)])_0x37e393[_0xdc0566(0x2e9)]=LogLevel[_0xdc0566(0x375)];else{if(_0x37e393[_0xdc0566(0x1df)])_0x37e393[_0xdc0566(0x2e9)]=LogLevel[_0xdc0566(0x339)];else _0x37e393[_0xdc0566(0x2e9)]===undefined&&(_0x37e393[_0xdc0566(0x2e9)]=LogLevel[_0xdc0566(0x1e1)]);}});async function createTDXInstance(_0xb233e2){const _0x20f0ff=a2_0x36f7b6,_0x3f94fa=await GlobalContext[_0x20f0ff(0x127)](_0xb233e2);return _0x3f94fa[_0x20f0ff(0x11e)](_0xb233e2),TDX[_0x20f0ff(0x2f8)]({'site':_0x3f94fa[_0x20f0ff(0x1ab)],'apiKey':_0x3f94fa[_0x20f0ff(0x213)],'accessToken':_0x3f94fa[_0x20f0ff(0x2b6)],'logLevel':_0x3f94fa['logLevel'],'profile':_0x3f94fa['profile']});}const databaseCmd=program[a2_0x36f7b6(0x2e7)]('database')[a2_0x36f7b6(0x31c)]('db')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xd6)),databaseListAction=async(_0x5eee64,_0x15e514)=>{const _0x10b044=a2_0x36f7b6,_0x3b013f=new DatabasesCommand(),_0x5c2e08=program[_0x10b044(0x266)](),_0x451ee3=await createTDXInstance(_0x5c2e08),_0x11b44b=await _0x3b013f[_0x10b044(0x1cf)]({'options':{..._0x5c2e08,..._0x15e514},'args':_0x5eee64?[_0x5eee64]:[],'tdx':_0x451ee3});gracefulExit(_0x11b44b);};databaseCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x369))['description'](a2_0x36f7b6(0xd4))[a2_0x36f7b6(0x187)](databaseListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x376),{'hidden':!![]})['description'](a2_0x36f7b6(0x271))['action'](databaseListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xb3))['description'](a2_0x36f7b6(0x1e4))[a2_0x36f7b6(0x2a8)]('--agent\x20<ref>',a2_0x36f7b6(0x2aa))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x273),a2_0x36f7b6(0x2b4))[a2_0x36f7b6(0x2a8)]('--chat-id\x20<id>',a2_0x36f7b6(0x20c))[a2_0x36f7b6(0x2a8)]('--stream',a2_0x36f7b6(0x2b2))['action'](async(_0x4a1287,_0x49d8fe)=>{const _0x168d4b=a2_0x36f7b6,_0x1e0bd1=program['opts'](),_0x58e02c=await createTDXInstance(_0x1e0bd1);if(_0x4a1287[0x0]===_0x168d4b(0x2f8)){const _0x10b5d2=new ChatCreateCommand();gracefulExit(await _0x10b5d2[_0x168d4b(0x1cf)]({'options':{..._0x1e0bd1,..._0x49d8fe},'args':_0x4a1287[_0x168d4b(0x212)](0x1),'tdx':_0x58e02c}));return;}const _0x3d843a=new ChatCommand(),_0x11b78a=await _0x3d843a['run']({'options':{..._0x1e0bd1,..._0x49d8fe},'args':_0x4a1287,'tdx':_0x58e02c});gracefulExit(_0x11b78a);});const apiCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x232))[a2_0x36f7b6(0x1c7)](a2_0x36f7b6(0x1db))[a2_0x36f7b6(0x2f7)]('after',a2_0x36f7b6(0x36c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x159),a2_0x36f7b6(0x248),a2_0x36f7b6(0x293))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1f3),a2_0x36f7b6(0x158))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x315),a2_0x36f7b6(0x2e4))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x23c),a2_0x36f7b6(0x240),(_0x2af466,_0x28789c)=>{return _0x28789c?[..._0x28789c,_0x2af466]:[_0x2af466];})[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x292),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x36f7b6(0x187)](async(_0x135e9d,_0x3ebd1d)=>{const _0x507fa8=a2_0x36f7b6;if(!_0x135e9d){apiCmd[_0x507fa8(0xbf)]();return;}const _0x57cca3=new ApiCommand(),_0x150317=program[_0x507fa8(0x266)](),_0x310d97=await createTDXInstance(_0x150317),_0x236d23=await _0x57cca3[_0x507fa8(0x1cf)]({'options':{..._0x150317,..._0x3ebd1d},'args':[_0x135e9d],'tdx':_0x310d97});gracefulExit(_0x236d23);});program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x175))[a2_0x36f7b6(0x2f3)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x36f7b6(0x2f7)](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x119))[a2_0x36f7b6(0x187)](async _0x1faba2=>{const _0x4b2983=a2_0x36f7b6,_0x33dadb=new MCPCommand(),_0x976d98=program['opts'](),_0x7882b7=await createTDXInstance(_0x976d98),_0x567d89=await _0x33dadb[_0x4b2983(0x1cf)]({'options':{..._0x976d98,..._0x1faba2},'args':[],'tdx':_0x7882b7});gracefulExit(_0x567d89);});const tableCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2eb))[a2_0x36f7b6(0x2f3)]('Table\x20management\x20commands'),tableListAction=async(_0x2622b0,_0x29a028)=>{const _0x583c44=a2_0x36f7b6,_0x1095a1=new TablesCommand(),_0x28d9e0=program[_0x583c44(0x266)](),_0xc9b11d=await createTDXInstance(_0x28d9e0);_0x29a028['in']&&(_0x29a028[_0x583c44(0x107)]=_0x29a028['in']);const _0x470879=await _0x1095a1[_0x583c44(0x1cf)]({'options':{..._0x28d9e0,..._0x29a028},'args':_0x2622b0?[_0x2622b0]:[],'tdx':_0xc9b11d});gracefulExit(_0x470879);};tableCmd['command']('list\x20[pattern]')[a2_0x36f7b6(0x2f3)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a2_0x36f7b6(0x2a2),a2_0x36f7b6(0x27d))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x24b),a2_0x36f7b6(0x16b))[a2_0x36f7b6(0x187)](tableListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xdb),{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xc4))[a2_0x36f7b6(0x2a8)]('-d,\x20--database\x20<database>',a2_0x36f7b6(0x27d))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x24b),a2_0x36f7b6(0x16b))[a2_0x36f7b6(0x187)](tableListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x14d))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x36f7b6(0x2a2),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x36f7b6(0x2a8)]('--in\x20<database>',a2_0x36f7b6(0x16b))['action'](async(_0x1d5726,_0x2626e5)=>{const _0x5d40de=a2_0x36f7b6,_0x56b433=new ShowCommand(),_0x435ee8=program[_0x5d40de(0x266)](),_0xa750e1=await createTDXInstance(_0x435ee8);_0x2626e5['in']&&(_0x2626e5[_0x5d40de(0x107)]=_0x2626e5['in']);const _0x39b882=await _0x56b433[_0x5d40de(0x1cf)]({'options':{..._0x435ee8,..._0x2626e5},'args':_0x1d5726?[_0x1d5726]:[],'tdx':_0xa750e1});gracefulExit(_0x39b882);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1f4))['alias']('desc')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x15f))['option'](a2_0x36f7b6(0x2a2),a2_0x36f7b6(0x2ce))['option']('--in\x20<database>',a2_0x36f7b6(0x16b))[a2_0x36f7b6(0x187)](async(_0x342a5e,_0x10fc01)=>{const _0x26170b=a2_0x36f7b6,_0x4bad32=new DescribeCommand(),_0x2d6cb9=program[_0x26170b(0x266)](),_0x2bc2bf=await createTDXInstance(_0x2d6cb9);_0x10fc01['in']&&(_0x10fc01[_0x26170b(0x107)]=_0x10fc01['in']);const _0x54fcb6=await _0x4bad32[_0x26170b(0x1cf)]({'options':{..._0x2d6cb9,..._0x10fc01},'args':_0x342a5e?[_0x342a5e]:[],'tdx':_0x2bc2bf});gracefulExit(_0x54fcb6);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x368))[a2_0x36f7b6(0x2f3)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2a2),a2_0x36f7b6(0xd0))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x24b),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x36f7b6(0x2a8)]('--catalog\x20<catalog>',a2_0x36f7b6(0xf6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x315),a2_0x36f7b6(0x10f))['option'](a2_0x36f7b6(0x117),a2_0x36f7b6(0x2a1))[a2_0x36f7b6(0x187)](async(_0x1d8a32,_0x5eb757)=>{const _0xcf424=a2_0x36f7b6,_0x2b6eef=new QueryCommand(),_0xbf95de=program[_0xcf424(0x266)](),_0x521278=await createTDXInstance(_0xbf95de);_0x5eb757['in']&&(_0x5eb757[_0xcf424(0x107)]=_0x5eb757['in']);const _0xcd80f3=await _0x2b6eef[_0xcf424(0x1cf)]({'options':mergeCommandOptions(_0xbf95de,_0x5eb757),'args':_0x1d8a32?[_0x1d8a32]:[],'tdx':_0x521278});gracefulExit(_0xcd80f3);});const segmentCmd=program['command'](a2_0x36f7b6(0x1d8))[a2_0x36f7b6(0x31c)]('sg')[a2_0x36f7b6(0x2f3)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x2bccf3,_0x1b30eb)=>{const _0x3fe4aa=a2_0x36f7b6,_0x3ce1f1=new SegmentsCommand(),_0x5a13c4=program[_0x3fe4aa(0x266)](),_0x5ba569=await createTDXInstance(_0x5a13c4),_0x47ba8e=await _0x3ce1f1[_0x3fe4aa(0x1cf)]({'options':{..._0x5a13c4,..._0x1b30eb},'args':_0x2bccf3?[_0x2bccf3]:[],'tdx':_0x5ba569});gracefulExit(_0x47ba8e);};segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xe4))[a2_0x36f7b6(0x2f3)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x36f7b6(0x2a8)]('-r,\x20--recursive',a2_0x36f7b6(0x157))[a2_0x36f7b6(0x2a8)]('--max-depth\x20<depth>',a2_0x36f7b6(0x357),'10')[a2_0x36f7b6(0x187)](segmentListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x237),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x36f7b6(0x2a8)]('-r,\x20--recursive',a2_0x36f7b6(0x157))['option'](a2_0x36f7b6(0xe6),a2_0x36f7b6(0x357),'10')[a2_0x36f7b6(0x187)](segmentListAction),segmentCmd[a2_0x36f7b6(0x2e7)]('use\x20<path>',{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2a9))[a2_0x36f7b6(0x187)](async(_0x12ce0f,_0x469f63)=>{const _0x694d63=a2_0x36f7b6,_0x5a1dee=new SegmentUseCommand(),_0x4772ca=program[_0x694d63(0x266)](),_0x58891a=await createTDXInstance(_0x4772ca),_0x19f1a6=await _0x5a1dee[_0x694d63(0x1cf)]({'options':{..._0x4772ca,..._0x469f63},'args':[_0x12ce0f],'tdx':_0x58891a});gracefulExit(_0x19f1a6);});const segmentViewAction=async(_0x5d1a0f,_0x15e496)=>{const _0x25a58c=a2_0x36f7b6,_0x277cd6=new SegmentViewCommand(),_0x2382a0=program[_0x25a58c(0x266)](),_0x591ce0=await createTDXInstance(_0x2382a0),_0x48361e=await _0x277cd6['run']({'options':{..._0x2382a0,..._0x15e496},'args':_0x5d1a0f?[_0x5d1a0f]:[],'tdx':_0x591ce0});gracefulExit(_0x48361e);};segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2c9))['description'](a2_0x36f7b6(0x328))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x19d),'Open\x20segment\x20in\x20web\x20browser')[a2_0x36f7b6(0x187)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x36f7b6(0x31c)]('describe')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x19d),'Open\x20segment\x20in\x20web\x20browser')['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x235))['description'](a2_0x36f7b6(0x359))[a2_0x36f7b6(0x187)](async(_0x54e325,_0x303a53)=>{const _0xdea7e1=a2_0x36f7b6,_0x69e4f3=new SegmentDescCommand(),_0x11fd2b=program[_0xdea7e1(0x266)](),_0x43b705=await createTDXInstance(_0x11fd2b),_0xa21800=await _0x69e4f3[_0xdea7e1(0x1cf)]({'options':{..._0x11fd2b,..._0x303a53},'args':_0x54e325?[_0x54e325]:[],'tdx':_0x43b705});gracefulExit(_0xa21800);}),segmentCmd['command']('show\x20[segment_name]')['description'](a2_0x36f7b6(0x31b))[a2_0x36f7b6(0x187)](async(_0x92e20e,_0x123601)=>{const _0x489732=a2_0x36f7b6,_0x2c71e8=new SegmentShowCommand(),_0x34520d=program[_0x489732(0x266)](),_0x2733ee=await createTDXInstance(_0x34520d),_0x183052=await _0x2c71e8[_0x489732(0x1cf)]({'options':{..._0x34520d,..._0x123601},'args':_0x92e20e?[_0x92e20e]:[],'tdx':_0x2733ee});gracefulExit(_0x183052);}),segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x306),{'hidden':!![]})['description'](a2_0x36f7b6(0xc3))[a2_0x36f7b6(0x187)](async(_0xd92db4,_0x4b6966)=>{const _0x3a9b03=a2_0x36f7b6,_0xa64181=new SegmentFolderListCommand(),_0x25d734=program[_0x3a9b03(0x266)](),_0x25613c=await createTDXInstance(_0x25d734),_0x555d7c=await _0xa64181['run']({'options':{..._0x25d734,..._0x4b6966},'args':[_0xd92db4],'tdx':_0x25613c});gracefulExit(_0x555d7c);});const folderCmd=segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x171),{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2c7));folderCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x194))['description'](a2_0x36f7b6(0x1d1))[a2_0x36f7b6(0x187)](async(_0x59a472,_0x10a3da)=>{const _0x35b843=a2_0x36f7b6,_0x407760=new SegmentFolderShowCommand(),_0x2aa147=program['opts'](),_0x2bf8af=await createTDXInstance(_0x2aa147),_0x151e2b=await _0x407760[_0x35b843(0x1cf)]({'options':{..._0x2aa147,..._0x10a3da},'args':[_0x59a472],'tdx':_0x2bf8af});gracefulExit(_0x151e2b);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x26b))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2ff),a2_0x36f7b6(0x1d9))['action'](async(_0x5d574c,_0x3eaba2)=>{const _0x553d2b=a2_0x36f7b6,_0x4c8750=new SegmentSQLCommand(),_0x45bf68=program[_0x553d2b(0x266)](),_0x38b71a=await createTDXInstance(_0x45bf68),_0x580201=await _0x4c8750['run']({'options':{..._0x45bf68,..._0x3eaba2},'args':_0x5d574c?[_0x5d574c]:[],'tdx':_0x38b71a});gracefulExit(_0x580201);}),segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2e5))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x1b96f3,_0x58f010)=>{const _0x3b3813=a2_0x36f7b6,_0x389824=new SegmentFieldsCommand(),_0x42ebec=program[_0x3b3813(0x266)](),_0x304042=await createTDXInstance(_0x42ebec),_0xfb47d2=await _0x389824[_0x3b3813(0x1cf)]({'options':{..._0x42ebec,..._0x58f010},'args':_0x1b96f3?[_0x1b96f3]:[],'tdx':_0x304042});gracefulExit(_0xfb47d2);}),segmentCmd[a2_0x36f7b6(0x2e7)]('pull\x20[parent_or_file]')['description'](a2_0x36f7b6(0xa4))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x27c))[a2_0x36f7b6(0x187)](async(_0x16ac39,_0x178bbe)=>{const _0x3e136e=new SegmentPullCommand(),_0x39b1ac=program['opts'](),_0x1502d3=await createTDXInstance(_0x39b1ac),_0x44908b=await _0x3e136e['run']({'options':{..._0x39b1ac,..._0x178bbe},'args':_0x16ac39?[_0x16ac39]:[],'tdx':_0x1502d3});gracefulExit(_0x44908b);}),segmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x295))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option'](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x27c))['option'](a2_0x36f7b6(0xc1),a2_0x36f7b6(0x253))[a2_0x36f7b6(0x187)](async(_0x55692a,_0x300ff3)=>{const _0x1e93b7=new SegmentPushCommand(),_0x39684d=program['opts'](),_0x1ebf09=await createTDXInstance(_0x39684d),_0x5d2cbe=await _0x1e93b7['run']({'options':{..._0x39684d,..._0x300ff3},'args':_0x55692a?[_0x55692a]:[],'tdx':_0x1ebf09});gracefulExit(_0x5d2cbe);}),segmentCmd['command']('validate\x20[target]')[a2_0x36f7b6(0x2f3)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x36f7b6(0x187)](async(_0x23dbe6,_0x590890)=>{const _0x209f7a=a2_0x36f7b6,_0x87cb7a=new SegmentValidateCommand(),_0x1cd653=program[_0x209f7a(0x266)](),_0x3923cb=await createTDXInstance(_0x1cd653),_0x42f4dd=await _0x87cb7a[_0x209f7a(0x1cf)]({'options':{..._0x1cd653,..._0x590890},'args':_0x23dbe6?[_0x23dbe6]:[],'tdx':_0x3923cb});gracefulExit(_0x42f4dd);}),segmentCmd[a2_0x36f7b6(0x2e7)]('create\x20<segment_name>',{'hidden':!![]})['description']('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x142),a2_0x36f7b6(0x2f5))['option']('--rule\x20<json>',a2_0x36f7b6(0x276))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x183),a2_0x36f7b6(0x23a))['option'](a2_0x36f7b6(0x128),a2_0x36f7b6(0x2cf))[a2_0x36f7b6(0x2a8)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2d5),a2_0x36f7b6(0x367))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x333),a2_0x36f7b6(0x21e))[a2_0x36f7b6(0x187)](async(_0x1270e4,_0x431462)=>{const _0x462c6b=a2_0x36f7b6,_0x3b79b7=new SegmentCreateCommand(),_0x2d19cf=program[_0x462c6b(0x266)](),_0xcccc79=await createTDXInstance(_0x2d19cf),_0x4ec11b=await _0x3b79b7[_0x462c6b(0x1cf)]({'options':{..._0x2d19cf,..._0x431462},'args':[_0x1270e4],'tdx':_0xcccc79});gracefulExit(_0x4ec11b);}),segmentCmd[a2_0x36f7b6(0x2e7)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xf1))[a2_0x36f7b6(0x2a8)]('--name\x20<new_name>',a2_0x36f7b6(0x224))[a2_0x36f7b6(0x2a8)]('--description\x20<text>',a2_0x36f7b6(0x178))['option'](a2_0x36f7b6(0x1af),a2_0x36f7b6(0x1e2))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x183),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x128),a2_0x36f7b6(0x277))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x24d),a2_0x36f7b6(0x23b))[a2_0x36f7b6(0x187)](async(_0x5f132a,_0x2ec115)=>{const _0x67bc6=a2_0x36f7b6,_0x592c73=new SegmentUpdateCommand(),_0x4cc1e6=program[_0x67bc6(0x266)](),_0x29537f=await createTDXInstance(_0x4cc1e6),_0x2d11d8=await _0x592c73[_0x67bc6(0x1cf)]({'options':{..._0x4cc1e6,..._0x2ec115},'args':[_0x5f132a],'tdx':_0x29537f});gracefulExit(_0x2d11d8);});const parentCmd=segmentCmd[a2_0x36f7b6(0x2e7)]('parent',{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x4c637d,_0x443ad4)=>{const _0x232706=a2_0x36f7b6,_0x41d999=new ParentSegmentListCommand(),_0x55fdca=program[_0x232706(0x266)](),_0x2217dd=await createTDXInstance(_0x55fdca),_0x532fed=await _0x41d999[_0x232706(0x1cf)]({'options':{..._0x55fdca,..._0x443ad4},'args':_0x4c637d?[_0x4c637d]:[],'tdx':_0x2217dd});gracefulExit(_0x532fed);};parentCmd[a2_0x36f7b6(0x2e7)]('list\x20[pattern]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1f9))[a2_0x36f7b6(0x187)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x36f7b6(0x2f3)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x36f7b6(0x187)](parentListAction),parentCmd[a2_0x36f7b6(0x2e7)]('pull\x20[name]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x206))[a2_0x36f7b6(0x2a8)]('-o,\x20--output\x20<file>',a2_0x36f7b6(0x147))[a2_0x36f7b6(0x187)](async(_0x1c1cc2,_0x50bf45)=>{const _0xa5c547=a2_0x36f7b6,_0x2c5451=new ParentSegmentPullCommand(),_0x3ed28d=program['opts'](),_0x44bc38=await createTDXInstance(_0x3ed28d),_0x5f51a0=await _0x2c5451[_0xa5c547(0x1cf)]({'options':{..._0x3ed28d,..._0x50bf45},'args':_0x1c1cc2?[_0x1c1cc2]:[],'tdx':_0x44bc38});gracefulExit(_0x5f51a0);}),parentCmd['command'](a2_0x36f7b6(0x1c9))['description'](a2_0x36f7b6(0x2b9))[a2_0x36f7b6(0x187)](async(_0x422603,_0x35885d)=>{const _0x4f23de=a2_0x36f7b6,_0x61d99=new ParentSegmentPushCommand(),_0x2d595e=program[_0x4f23de(0x266)](),_0x472a64=await createTDXInstance(_0x2d595e),_0x2691cc=await _0x61d99[_0x4f23de(0x1cf)]({'options':{..._0x2d595e,..._0x35885d},'args':_0x422603?[_0x422603]:[],'tdx':_0x472a64});gracefulExit(_0x2691cc);}),parentCmd[a2_0x36f7b6(0x2e7)]('validate\x20[file]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x169))['option']('--master',a2_0x36f7b6(0x27a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x25a),a2_0x36f7b6(0x138))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xf3),a2_0x36f7b6(0x32b))['option']('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2fa),a2_0x36f7b6(0x25e),'-1d')[a2_0x36f7b6(0x187)](async(_0x4d4ed1,_0x19121a)=>{const _0xf10166=a2_0x36f7b6,_0x585686=new ParentSegmentValidateCommand(),_0x3afcff=program[_0xf10166(0x266)](),_0x564988=await createTDXInstance(_0x3afcff),_0x993855=await _0x585686[_0xf10166(0x1cf)]({'options':{..._0x3afcff,..._0x19121a},'args':_0x4d4ed1?[_0x4d4ed1]:[],'tdx':_0x564988});gracefulExit(_0x993855);}),parentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x130))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2bf))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x216),a2_0x36f7b6(0xe5))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x25a),a2_0x36f7b6(0xfe))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xf3),a2_0x36f7b6(0x2e3))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2b3),a2_0x36f7b6(0x330))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2fa),a2_0x36f7b6(0x25e),'-1d')[a2_0x36f7b6(0x187)](async(_0x16aa6c,_0x88a359)=>{const _0x5cd33c=a2_0x36f7b6,_0x56c4e8=new ParentSegmentPreviewCommand(),_0x81ea94=program[_0x5cd33c(0x266)](),_0x214219=await createTDXInstance(_0x81ea94),_0x39566a=await _0x56c4e8['run']({'options':{..._0x81ea94,..._0x88a359},'args':_0x16aa6c?[_0x16aa6c]:[],'tdx':_0x214219});gracefulExit(_0x39566a);}),parentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x105))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xea))[a2_0x36f7b6(0x187)](async(_0x2b34f0,_0x234748)=>{const _0x56020b=a2_0x36f7b6,_0x3e7c7d=new ParentSegmentRunCommand(),_0x30f996=program[_0x56020b(0x266)](),_0x33421f=await createTDXInstance(_0x30f996),_0x250ac5=await _0x3e7c7d[_0x56020b(0x1cf)]({'options':{..._0x30f996,..._0x234748},'args':_0x2b34f0?[_0x2b34f0]:[],'tdx':_0x33421f});gracefulExit(_0x250ac5);});const parentSegmentCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x229))[a2_0x36f7b6(0x31c)]('ps')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1ec));parentSegmentCmd['command'](a2_0x36f7b6(0x369))['description'](a2_0x36f7b6(0x1f9))['action'](parentListAction),parentSegmentCmd[a2_0x36f7b6(0x2e7)]('pull\x20[name]')['description'](a2_0x36f7b6(0x1a7))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1fa),'Output\x20file\x20path')['option']('-u,\x20--use',a2_0x36f7b6(0x36d))[a2_0x36f7b6(0x187)](async(_0x3db36f,_0x7c4ade)=>{const _0x28b758=new ParentSegmentPullCommand(),_0x57f0ac=program['opts'](),_0x1b5765=await createTDXInstance(_0x57f0ac),_0x91715b=await _0x28b758['run']({'options':{..._0x57f0ac,..._0x7c4ade},'args':_0x3db36f?[_0x3db36f]:[],'tdx':_0x1b5765});gracefulExit(_0x91715b);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x26f))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1ce))[a2_0x36f7b6(0x187)](async(_0x36bb4b,_0x21366c)=>{const _0x5b0520=a2_0x36f7b6,_0x5c582e=new ParentSegmentPushCommand(),_0x1b896e=program[_0x5b0520(0x266)](),_0xf42178=await createTDXInstance(_0x1b896e),_0x1798b7=await _0x5c582e[_0x5b0520(0x1cf)]({'options':{..._0x1b896e,..._0x21366c},'args':_0x36bb4b?[_0x36bb4b]:[],'tdx':_0xf42178});gracefulExit(_0x1798b7);}),parentSegmentCmd['command'](a2_0x36f7b6(0x15b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x169))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x216),a2_0x36f7b6(0x27a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x25a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x36f7b6(0xf3),a2_0x36f7b6(0x32b))['option'](a2_0x36f7b6(0x2b3),a2_0x36f7b6(0x1ed))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2fa),a2_0x36f7b6(0x25e),a2_0x36f7b6(0x1e0))[a2_0x36f7b6(0x187)](async(_0x3a8a2f,_0x359355)=>{const _0x1545f0=a2_0x36f7b6,_0x2bd28b=new ParentSegmentValidateCommand(),_0xf08a14=program[_0x1545f0(0x266)](),_0x2b5e69=await createTDXInstance(_0xf08a14),_0x490184=await _0x2bd28b[_0x1545f0(0x1cf)]({'options':{..._0xf08a14,..._0x359355},'args':_0x3a8a2f?[_0x3a8a2f]:[],'tdx':_0x2b5e69});gracefulExit(_0x490184);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2e8))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2bf))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x216),'Show\x20master\x20table\x20sample\x20data')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x25a),a2_0x36f7b6(0xfe))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xf3),a2_0x36f7b6(0x2e3))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2b3),a2_0x36f7b6(0x330))[a2_0x36f7b6(0x2a8)]('--interval\x20<range>',a2_0x36f7b6(0x25e),a2_0x36f7b6(0x1e0))[a2_0x36f7b6(0x187)](async(_0x423af3,_0x32335e)=>{const _0x478c10=new ParentSegmentPreviewCommand(),_0x35b4e7=program['opts'](),_0x532c91=await createTDXInstance(_0x35b4e7),_0x31fbd8=await _0x478c10['run']({'options':{..._0x35b4e7,..._0x32335e},'args':_0x423af3?[_0x423af3]:[],'tdx':_0x532c91});gracefulExit(_0x31fbd8);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x105))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xea))[a2_0x36f7b6(0x187)](async(_0x1f39e6,_0x5d60e3)=>{const _0x115e5e=a2_0x36f7b6,_0x42aa2c=new ParentSegmentRunCommand(),_0xacec9b=program[_0x115e5e(0x266)](),_0x40913c=await createTDXInstance(_0xacec9b),_0x3e343e=await _0x42aa2c[_0x115e5e(0x1cf)]({'options':{..._0xacec9b,..._0x5d60e3},'args':_0x1f39e6?[_0x1f39e6]:[],'tdx':_0x40913c});gracefulExit(_0x3e343e);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1b7))[a2_0x36f7b6(0x2f3)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x226),a2_0x36f7b6(0xe9))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x345),a2_0x36f7b6(0x2fe))[a2_0x36f7b6(0x187)](async(_0x17eba6,_0xc4551b)=>{const _0xcc8d4c=a2_0x36f7b6,_0x140d3c=new ParentSegmentFieldsCommand(),_0xfd4142=program[_0xcc8d4c(0x266)](),_0x4b5007=await createTDXInstance(_0xfd4142),_0x2b50a8=await _0x140d3c['run']({'options':{..._0xfd4142,..._0xc4551b},'args':_0x17eba6?[_0x17eba6]:[],'tdx':_0x4b5007});gracefulExit(_0x2b50a8);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)]('view\x20[name]')['description'](a2_0x36f7b6(0xe1))['option'](a2_0x36f7b6(0x19d),a2_0x36f7b6(0xce))[a2_0x36f7b6(0x2a8)]('--json','Output\x20as\x20JSON')['option'](a2_0x36f7b6(0x345),a2_0x36f7b6(0x2fe))['action'](async(_0x2fe128,_0x2f45da)=>{const _0x36eae4=a2_0x36f7b6,_0x5c3bda=new ParentSegmentViewCommand(),_0x4cfd8c=program[_0x36eae4(0x266)](),_0x29b31a=await createTDXInstance(_0x4cfd8c),_0x226507=await _0x5c3bda[_0x36eae4(0x1cf)]({'options':{..._0x4cfd8c,..._0x2f45da},'args':_0x2fe128?[_0x2fe128]:[],'tdx':_0x29b31a});gracefulExit(_0x226507);}),parentSegmentCmd['command'](a2_0x36f7b6(0x34f))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb9))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1fa),a2_0x36f7b6(0x272))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x226),a2_0x36f7b6(0xe9))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x345),'Output\x20as\x20JSON\x20Lines')[a2_0x36f7b6(0x187)](async(_0xfe233d,_0x5b78b2)=>{const _0x1927a3=a2_0x36f7b6,_0x9025e2=new ParentSegmentDescCommand(),_0x4c319d=program[_0x1927a3(0x266)](),_0x3ec59e=await createTDXInstance(_0x4c319d),_0xaac243=await _0x9025e2[_0x1927a3(0x1cf)]({'options':{..._0x4c319d,..._0x5b78b2},'args':_0xfe233d?[_0xfe233d]:[],'tdx':_0x3ec59e});gracefulExit(_0xaac243);}),parentSegmentCmd[a2_0x36f7b6(0x2e7)]('sql\x20[name]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xf4))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x226),'Output\x20as\x20JSON')[a2_0x36f7b6(0x2a8)]('--jsonl',a2_0x36f7b6(0x2fe))['action'](async(_0x476fd0,_0x205f3a)=>{const _0x186f7d=a2_0x36f7b6,_0xd65653=new ParentSegmentSQLCommand(),_0x921fce=program[_0x186f7d(0x266)](),_0x78eb26=await createTDXInstance(_0x921fce),_0x591c79=await _0xd65653[_0x186f7d(0x1cf)]({'options':{..._0x921fce,..._0x205f3a},'args':_0x476fd0?[_0x476fd0]:[],'tdx':_0x78eb26});gracefulExit(_0x591c79);}),parentSegmentCmd['command'](a2_0x36f7b6(0x2e1))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x21f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2bd),a2_0x36f7b6(0x28b))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x226),a2_0x36f7b6(0xe9))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x345),a2_0x36f7b6(0x2fe))['action'](async(_0x827aaf,_0x4940c5)=>{const _0x5a1ab1=a2_0x36f7b6,_0x36464b=new ParentSegmentShowCommand(),_0x3bc0ba=program[_0x5a1ab1(0x266)](),_0x2d4dcf=await createTDXInstance(_0x3bc0ba),_0x6b5b38=await _0x36464b['run']({'options':{..._0x3bc0ba,..._0x4940c5},'args':_0x827aaf?[_0x827aaf]:[],'tdx':_0x2d4dcf});gracefulExit(_0x6b5b38);}),parentSegmentCmd['command'](a2_0x36f7b6(0x101))['description']('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x36f7b6(0x187)](async(_0x38e15f,_0x3de8a8)=>{const _0xc6c3ae=a2_0x36f7b6,_0x202c0b=new UseCommand(),_0x2408c8=program[_0xc6c3ae(0x266)](),_0x25e86b=_0x38e15f?[_0xc6c3ae(0x1f7),_0x38e15f]:[],_0x6288c=await _0x202c0b[_0xc6c3ae(0x1cf)]({'options':{..._0x2408c8,..._0x3de8a8},'args':_0x25e86b,'tdx':null});gracefulExit(_0x6288c);});const psRtCmd=parentSegmentCmd['command']('rt')['description']('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x112))['action'](async(_0x13b90a,_0x5a6f2f)=>{const _0xd57c64=a2_0x36f7b6,_0x354da7=new PSRtListCommand(),_0x12cb36=program[_0xd57c64(0x266)](),_0x201a9b=await createTDXInstance(_0x12cb36),_0x2a3b56=await _0x354da7[_0xd57c64(0x1cf)]({'options':{..._0x12cb36,..._0x5a6f2f},'args':_0x13b90a?[_0x13b90a]:[],'tdx':_0x201a9b});gracefulExit(_0x2a3b56);}),psRtCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x15b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x378))['action'](async(_0x3b7021,_0x4255b9)=>{const _0x2163c7=a2_0x36f7b6,_0x4d11f1=new PSRtValidateCommand(),_0x46c892=program['opts'](),_0x3132d7=await createTDXInstance(_0x46c892),_0xba8794=await _0x4d11f1[_0x2163c7(0x1cf)]({'options':{..._0x46c892,..._0x4255b9},'args':_0x3b7021?[_0x3b7021]:[],'tdx':_0x3132d7});gracefulExit(_0xba8794);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x36f7b6(0x2f1));parentRtCmd['command'](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x112))[a2_0x36f7b6(0x187)](async(_0xe0dfde,_0x149db7)=>{const _0x1dd01b=a2_0x36f7b6,_0x4162d2=new PSRtListCommand(),_0x3d39ae=program[_0x1dd01b(0x266)](),_0x44e253=await createTDXInstance(_0x3d39ae),_0x3b22e6=await _0x4162d2[_0x1dd01b(0x1cf)]({'options':{..._0x3d39ae,..._0x149db7},'args':_0xe0dfde?[_0xe0dfde]:[],'tdx':_0x44e253});gracefulExit(_0x3b22e6);}),parentRtCmd['command'](a2_0x36f7b6(0x15b))['description'](a2_0x36f7b6(0x378))[a2_0x36f7b6(0x187)](async(_0x2a5e7d,_0x13e5fc)=>{const _0xc19e48=a2_0x36f7b6,_0x4eeb15=new PSRtValidateCommand(),_0x3c2baa=program[_0xc19e48(0x266)](),_0x2652e8=await createTDXInstance(_0x3c2baa),_0x4de2fd=await _0x4eeb15[_0xc19e48(0x1cf)]({'options':{..._0x3c2baa,..._0x13e5fc},'args':_0x2a5e7d?[_0x2a5e7d]:[],'tdx':_0x2652e8});gracefulExit(_0x4de2fd);});const psPzCmd=parentSegmentCmd[a2_0x36f7b6(0x2e7)]('pz')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb5));psPzCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x335))[a2_0x36f7b6(0x2f3)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x36f7b6(0x187)](async(_0x4c11e2,_0x36241f)=>{const _0x5389ae=a2_0x36f7b6,_0x5cb70c=new PSPzListCommand(),_0x3c97fa=program[_0x5389ae(0x266)](),_0x3a0b8d=await createTDXInstance(_0x3c97fa),_0x1d2c2b=await _0x5cb70c[_0x5389ae(0x1cf)]({'options':{..._0x3c97fa,..._0x36241f},'args':_0x4c11e2?[_0x4c11e2]:[],'tdx':_0x3a0b8d});gracefulExit(_0x1d2c2b);}),psPzCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xe7))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x218))['action'](async(_0x579ac,_0x247ba1)=>{const _0x1ba02d=a2_0x36f7b6,_0x5d5979=new PSPzInitCommand(),_0x374d73=program[_0x1ba02d(0x266)](),_0x26913b=await createTDXInstance(_0x374d73),_0x3de42d=await _0x5d5979[_0x1ba02d(0x1cf)]({'options':{..._0x374d73,..._0x247ba1},'args':_0x579ac?[_0x579ac]:[],'tdx':_0x26913b});gracefulExit(_0x3de42d);});const parentPzCmd=parentCmd[a2_0x36f7b6(0x2e7)]('pz',{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb5));parentPzCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x335))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x19f))[a2_0x36f7b6(0x187)](async(_0x582646,_0x5a5266)=>{const _0x4556ff=a2_0x36f7b6,_0x4e353a=new PSPzListCommand(),_0x5f48c5=program['opts'](),_0x3e4ba8=await createTDXInstance(_0x5f48c5),_0x3b0535=await _0x4e353a[_0x4556ff(0x1cf)]({'options':{..._0x5f48c5,..._0x5a5266},'args':_0x582646?[_0x582646]:[],'tdx':_0x3e4ba8});gracefulExit(_0x3b0535);}),parentPzCmd['command'](a2_0x36f7b6(0xe7))[a2_0x36f7b6(0x2f3)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x3e7a88,_0x1f3d85)=>{const _0x165a08=a2_0x36f7b6,_0x547f6a=new PSPzInitCommand(),_0x4fe886=program[_0x165a08(0x266)](),_0x498839=await createTDXInstance(_0x4fe886),_0x52a358=await _0x547f6a['run']({'options':{..._0x4fe886,..._0x1f3d85},'args':_0x3e7a88?[_0x3e7a88]:[],'tdx':_0x498839});gracefulExit(_0x52a358);}),parentCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x24c))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb0))[a2_0x36f7b6(0x164)]('--database\x20<db>',a2_0x36f7b6(0x16c))[a2_0x36f7b6(0x164)]('--table\x20<table>','Master\x20table\x20name')[a2_0x36f7b6(0x2a8)]('--description\x20<text>','Parent\x20segment\x20description')['option'](a2_0x36f7b6(0x14f),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x197),a2_0x36f7b6(0x278))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xd8),a2_0x36f7b6(0x32d))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x25c),a2_0x36f7b6(0x2cd))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xff),a2_0x36f7b6(0x131))[a2_0x36f7b6(0x2a8)]('--behaviors\x20<json>','Behaviors\x20as\x20JSON\x20string')['option']('--behaviors-file\x20<file>',a2_0x36f7b6(0x16f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x284),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x36f7b6(0x2a8)]('--customer-group-file\x20<file>',a2_0x36f7b6(0x2c5))[a2_0x36f7b6(0x187)](async(_0xa7f5cc,_0xb53b8c)=>{const _0xfa6a7=a2_0x36f7b6,_0x4ac3c4=new ParentSegmentCreateCommand(),_0x508a96=program[_0xfa6a7(0x266)](),_0x336339=await createTDXInstance(_0x508a96),_0x5787cc=await _0x4ac3c4[_0xfa6a7(0x1cf)]({'options':{..._0x508a96,..._0xb53b8c},'args':[_0xa7f5cc],'tdx':_0x336339});gracefulExit(_0x5787cc);}),parentCmd[a2_0x36f7b6(0x2e7)]('update\x20<name>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x303))['option'](a2_0x36f7b6(0x142),a2_0x36f7b6(0x178))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x14f),a2_0x36f7b6(0xed))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x197),a2_0x36f7b6(0x15e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xd8),'Updated\x20timezone')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x20f),'Add\x20attributes\x20as\x20JSON\x20string')['option']('--add-attributes-file\x20<file>',a2_0x36f7b6(0x13f))[a2_0x36f7b6(0x2a8)]('--add-behaviors\x20<json>',a2_0x36f7b6(0xc6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x198),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x36f7b6(0x187)](async(_0x27d2ce,_0x2fe4f3)=>{const _0x27a366=a2_0x36f7b6,_0x578f92=new ParentSegmentUpdateCommand(),_0x31f71f=program['opts'](),_0x2e8ae9=await createTDXInstance(_0x31f71f),_0x1ee5fa=await _0x578f92[_0x27a366(0x1cf)]({'options':{..._0x31f71f,..._0x2fe4f3},'args':[_0x27d2ce],'tdx':_0x2e8ae9});gracefulExit(_0x1ee5fa);}),folderCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xaf))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x312))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x142),a2_0x36f7b6(0x1c5))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x146),a2_0x36f7b6(0x362))[a2_0x36f7b6(0x187)](async(_0x2749e1,_0x10c592,_0x4d3371)=>{const _0x28148f=a2_0x36f7b6,_0x30aed0=new SegmentFolderCreateCommand(),_0x410c72=program[_0x28148f(0x266)](),_0x5c2339=await createTDXInstance(_0x410c72),_0x1b417a=await _0x30aed0[_0x28148f(0x1cf)]({'options':{..._0x410c72,..._0x4d3371},'args':[_0x2749e1,_0x10c592],'tdx':_0x5c2339});gracefulExit(_0x1b417a);}),program['command']('activations\x20<segment_name>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1e8))[a2_0x36f7b6(0x187)](async(_0x4ea589,_0x3910ca)=>{const _0x5ce2db=a2_0x36f7b6,_0x4eb58b=new ActivationsCommand(),_0x1529f6=program[_0x5ce2db(0x266)](),_0x1c0e7e=await createTDXInstance(_0x1529f6),_0x16a59d=await _0x4eb58b[_0x5ce2db(0x1cf)]({'options':{..._0x1529f6,..._0x3910ca},'args':[_0x4ea589],'tdx':_0x1c0e7e});gracefulExit(_0x16a59d);});const workflowCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1ea))[a2_0x36f7b6(0x31c)]('wf')['description'](a2_0x36f7b6(0x35f)),wfProjectCmd=workflowCmd['command'](a2_0x36f7b6(0x19b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x135)),wfProjectListAction=async(_0x17b55a,_0x322c1f)=>{const _0x6fd94c=a2_0x36f7b6,_0x4b5a48=new WorkflowProjectsCommand(),_0x412630=program['opts'](),_0x6651b2=await createTDXInstance(_0x412630),_0x20f88e=await _0x4b5a48[_0x6fd94c(0x1cf)]({'options':{..._0x412630,..._0x322c1f},'args':_0x17b55a?[_0x17b55a]:[],'tdx':_0x6651b2});gracefulExit(_0x20f88e);};wfProjectCmd['command'](a2_0x36f7b6(0x369))['description'](a2_0x36f7b6(0x150))[a2_0x36f7b6(0x187)](wfProjectListAction),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x22b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x329))[a2_0x36f7b6(0x187)](wfProjectListAction);const wfWorkflowListAction=async(_0x254be3,_0x1c6265)=>{const _0x51a1ad=a2_0x36f7b6,_0x21ea3a=new WorkflowWorkflowsCommand(),_0x1c622d=program[_0x51a1ad(0x266)](),_0x5dd933=await createTDXInstance(_0x1c622d),_0x2193ef=await _0x21ea3a[_0x51a1ad(0x1cf)]({'options':{..._0x1c622d,..._0x1c6265},'args':_0x254be3?[_0x254be3]:[],'tdx':_0x5dd933});gracefulExit(_0x2193ef);};workflowCmd['command'](a2_0x36f7b6(0x2df))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x11a))[a2_0x36f7b6(0x187)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x326))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x20b)),wfSessionListAction=async(_0x4b8655,_0x4828e4)=>{const _0x5c960b=a2_0x36f7b6,_0x5d5782=new WorkflowSessionsCommand(),_0x5df30c=program['opts'](),_0x544e49=await createTDXInstance(_0x5df30c),_0x1d1e86=await _0x5d5782[_0x5c960b(0x1cf)]({'options':{..._0x5df30c,..._0x4828e4},'args':_0x4b8655?[_0x4b8655]:[],'tdx':_0x544e49});gracefulExit(_0x1d1e86);};wfSessionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2f9))[a2_0x36f7b6(0x2f3)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a2_0x36f7b6(0x354),a2_0x36f7b6(0x2d6))[a2_0x36f7b6(0x2a8)]('--from\x20<timestamp>',a2_0x36f7b6(0x155))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1b6),a2_0x36f7b6(0x243))[a2_0x36f7b6(0x187)](wfSessionListAction),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x334))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x168))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x354),a2_0x36f7b6(0x2d6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x32a),a2_0x36f7b6(0x155))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1b6),a2_0x36f7b6(0x243))[a2_0x36f7b6(0x187)](wfSessionListAction);const wfAttemptListAction=async(_0x240f39,_0x33c408)=>{const _0x58d23d=a2_0x36f7b6,_0x591e49=new WorkflowAttemptsCommand(),_0x32c20b=program[_0x58d23d(0x266)](),_0x43355a=await createTDXInstance(_0x32c20b),_0x428b4c=await _0x591e49[_0x58d23d(0x1cf)]({'options':{..._0x32c20b,..._0x33c408},'args':_0x240f39?[_0x240f39]:[],'tdx':_0x43355a});gracefulExit(_0x428b4c);},attemptCmd=workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xe0))['description'](a2_0x36f7b6(0xeb))[a2_0x36f7b6(0x1e3)](a2_0x36f7b6(0x35c),'Attempt\x20ID')[a2_0x36f7b6(0x1e3)]('[action]',a2_0x36f7b6(0x132))[a2_0x36f7b6(0x1e3)](a2_0x36f7b6(0x34d),a2_0x36f7b6(0x151))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xf7),a2_0x36f7b6(0x373))['option'](a2_0x36f7b6(0x2ed),a2_0x36f7b6(0x320))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x246),a2_0x36f7b6(0x28f))['option'](a2_0x36f7b6(0x2ba),a2_0x36f7b6(0x14c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x340),a2_0x36f7b6(0x103))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1d4),a2_0x36f7b6(0x1f8))[a2_0x36f7b6(0x187)](async(_0x45f510,_0x287f31,_0x21bc00,_0x445a98)=>{const _0x21fb7c=a2_0x36f7b6;if(_0x45f510===_0x21fb7c(0x269)){await wfAttemptListAction(_0x287f31,_0x445a98);return;}if(!_0x45f510){attemptCmd['help']();return;}const _0x58e752=program['opts'](),_0x5b065f=await createTDXInstance(_0x58e752);let _0x52eea9=0x0;if(!_0x287f31){const _0x4a345d=new WorkflowAttemptCommand();_0x52eea9=await _0x4a345d[_0x21fb7c(0x1cf)]({'options':{..._0x58e752,..._0x445a98},'args':[_0x45f510],'tdx':_0x5b065f});}else{if(_0x287f31===_0x21fb7c(0xfb)){const _0x2bb9ff=new WorkflowLogsCommand();_0x52eea9=await _0x2bb9ff['run']({'options':{..._0x58e752,..._0x445a98},'args':_0x21bc00?[_0x45f510,_0x21bc00]:[_0x45f510],'tdx':_0x5b065f});}else{if(_0x287f31==='tasks'){const _0x3287c6=new WorkflowTasksCommand();_0x52eea9=await _0x3287c6[_0x21fb7c(0x1cf)]({'options':{..._0x58e752,..._0x445a98},'args':[_0x45f510],'tdx':_0x5b065f});}else{if(_0x287f31==='kill'){const _0x58172d=new WorkflowKillCommand();_0x52eea9=await _0x58172d[_0x21fb7c(0x1cf)]({'options':{..._0x58e752,..._0x445a98},'args':[_0x45f510],'tdx':_0x5b065f});}else{if(_0x287f31===_0x21fb7c(0x26d)){const _0x3f772c=new WorkflowRetryCommand();_0x52eea9=await _0x3f772c['run']({'options':{..._0x58e752,..._0x445a98},'args':[_0x21fb7c(0x2ac)+_0x45f510],'tdx':_0x5b065f});}else console['error']('Unknown\x20action:\x20'+_0x287f31),console[_0x21fb7c(0x2af)](_0x21fb7c(0x139)),_0x52eea9=0x1;}}}}gracefulExit(_0x52eea9);});attemptCmd['command'](a2_0x36f7b6(0x2f9))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2b1))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1d4),a2_0x36f7b6(0x255))[a2_0x36f7b6(0x187)](wfAttemptListAction),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x133))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x17b))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1d4),'Include\x20retried\x20attempts')[a2_0x36f7b6(0x187)](wfAttemptListAction),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1fc))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x29f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x353),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x221),a2_0x36f7b6(0x1ad))['option']('--attempt-id\x20<id>',a2_0x36f7b6(0x121))[a2_0x36f7b6(0x187)](async(_0x1c19b5,_0x2b795c)=>{const _0x563905=a2_0x36f7b6,_0x3a0e1a=new WorkflowTimelineCommand(),_0x585438=program[_0x563905(0x266)](),_0x28209b=await createTDXInstance(_0x585438),_0x13dd8e=await _0x3a0e1a[_0x563905(0x1cf)]({'options':{..._0x585438,..._0x2b795c},'args':_0x1c19b5?[_0x1c19b5]:[],'tdx':_0x28209b});gracefulExit(_0x13dd8e);}),workflowCmd[a2_0x36f7b6(0x2e7)]('retry\x20<session-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x300))[a2_0x36f7b6(0x2a8)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x36f7b6(0x2a8)]('--params\x20<json>',a2_0x36f7b6(0x34b))[a2_0x36f7b6(0x187)](async(_0x30ce2f,_0x2dd8f6)=>{const _0x4fcb50=a2_0x36f7b6,_0x4af0ff=new WorkflowRetryCommand(),_0x18e507=program[_0x4fcb50(0x266)](),_0x183cc3=await createTDXInstance(_0x18e507),_0x3efc41=await _0x4af0ff[_0x4fcb50(0x1cf)]({'options':{..._0x18e507,..._0x2dd8f6},'args':[_0x30ce2f],'tdx':_0x183cc3});gracefulExit(_0x3efc41);}),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x35d))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x302))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x24a),a2_0x36f7b6(0x2fc),(_0x50ef9f,_0x36edf4=[])=>[..._0x36edf4,_0x50ef9f],[])[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2d8),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x36f7b6(0x187)](async(_0x343104,_0x3462cc)=>{const _0x558c33=a2_0x36f7b6,_0x578ee6=new WorkflowRunCommand(),_0x47080c=program[_0x558c33(0x266)](),_0x464045=await createTDXInstance(_0x47080c),_0x4f5e80=await _0x578ee6['run']({'options':{..._0x47080c,..._0x3462cc},'args':_0x343104?[_0x343104]:[],'tdx':_0x464045});gracefulExit(_0x4f5e80);}),workflowCmd['command'](a2_0x36f7b6(0xfd))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2d4))[a2_0x36f7b6(0x2a8)]('--revision\x20<revision>',a2_0x36f7b6(0x180))['action'](async(_0x49ffc0,_0x4fd727,_0x49792b)=>{const _0x378539=a2_0x36f7b6,_0x3fa9a7=new WorkflowDownloadCommand(),_0x5ee348=program[_0x378539(0x266)](),_0x1622c9=await createTDXInstance(_0x5ee348),_0x1675b5=await _0x3fa9a7['run']({'options':{..._0x5ee348,..._0x49792b},'args':[_0x49ffc0,_0x4fd727||'.'],'tdx':_0x1622c9});gracefulExit(_0x1675b5);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')['description'](a2_0x36f7b6(0x211))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1f2),a2_0x36f7b6(0x34c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0xdd))[a2_0x36f7b6(0x187)](async(_0x267e13,_0x3169f0,_0x29b868)=>{const _0x4f36c6=a2_0x36f7b6,_0x3829bb=new WorkflowPullCommand(),_0x53c179=program[_0x4f36c6(0x266)](),_0x35f329=await createTDXInstance(_0x53c179),_0x4732ea=await _0x3829bb[_0x4f36c6(0x1cf)]({'options':{..._0x53c179,..._0x29b868},'args':_0x3169f0?[_0x267e13,_0x3169f0]:[_0x267e13],'tdx':_0x35f329});gracefulExit(_0x4732ea);}),workflowCmd['command'](a2_0x36f7b6(0x370))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x152))['option'](a2_0x36f7b6(0x1f2),a2_0x36f7b6(0x321))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),'Preview\x20changes\x20without\x20pushing')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x36f),a2_0x36f7b6(0x27e))[a2_0x36f7b6(0x187)](async(_0x3ec763,_0x3a8d4e)=>{const _0x146c5d=a2_0x36f7b6,_0x4f1299=new WorkflowPushCommand(),_0x4a3390=program['opts'](),_0x211e86=await createTDXInstance(_0x4a3390),_0x3b01fc=await _0x4f1299[_0x146c5d(0x1cf)]({'options':{..._0x4a3390,..._0x3a8d4e},'args':_0x3ec763?[_0x3ec763]:[],'tdx':_0x211e86});gracefulExit(_0x3b01fc);}),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x14b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x33f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x12d),'Override\x20project\x20name')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1f2),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x36f),a2_0x36f7b6(0x27e))[a2_0x36f7b6(0x187)](async(_0x3e85be,_0x14d3ac)=>{const _0xb67cbe=a2_0x36f7b6,_0x1de5e8=new WorkflowUploadCommand(),_0x15fd5c=program[_0xb67cbe(0x266)](),_0x4eee88=await createTDXInstance(_0x15fd5c),_0x20379b=await _0x1de5e8[_0xb67cbe(0x1cf)]({'options':{..._0x15fd5c,..._0x14d3ac},'args':_0x3e85be?[_0x3e85be]:[],'tdx':_0x4eee88});gracefulExit(_0x20379b);}),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x177))['description']('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x20a))[a2_0x36f7b6(0x2a8)]('--revision\x20<revision>',a2_0x36f7b6(0x321))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x1cc))[a2_0x36f7b6(0x2a8)]('--skip-validation',a2_0x36f7b6(0x27e))['action'](async(_0x49643d,_0x2f70e9)=>{const _0x279916=a2_0x36f7b6,_0x28b0fc=new WorkflowCloneCommand(),_0x48cf77=program[_0x279916(0x266)](),_0x11bf84=await createTDXInstance(_0x48cf77),_0x40bb8b=await _0x28b0fc['run']({'options':{..._0x48cf77,..._0x2f70e9},'args':_0x49643d?[_0x49643d]:[],'tdx':_0x11bf84});gracefulExit(_0x40bb8b);}),workflowCmd[a2_0x36f7b6(0x2e7)]('delete\x20<project-name-or-id>')[a2_0x36f7b6(0x2f3)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x36f7b6(0x187)](async(_0x595f96,_0x4cad00)=>{const _0x47a5b5=a2_0x36f7b6,_0x484ceb=new WorkflowDeleteCommand(),_0x271c54=program[_0x47a5b5(0x266)](),_0x4fdb93=await createTDXInstance(_0x271c54),_0x2e5bc0=await _0x484ceb[_0x47a5b5(0x1cf)]({'options':{..._0x271c54,..._0x4cad00},'args':[_0x595f96],'tdx':_0x4fdb93});gracefulExit(_0x2e5bc0);}),workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x165))['description'](a2_0x36f7b6(0x37a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2b7),a2_0x36f7b6(0x250))[a2_0x36f7b6(0x187)](async(_0x167d50,_0x33d16f)=>{const _0x400f42=a2_0x36f7b6,_0x529265=new WorkflowUseCommand(),_0x5d874e=program[_0x400f42(0x266)](),_0x324b0d=await createTDXInstance(_0x5d874e),_0x525403=await _0x529265['run']({'options':{..._0x5d874e,..._0x33d16f},'args':_0x167d50?[_0x167d50]:[],'tdx':_0x324b0d});gracefulExit(_0x525403);});const wfSecretsCmd=workflowCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1dd))[a2_0x36f7b6(0x2f3)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd['command'](a2_0x36f7b6(0x2f9))[a2_0x36f7b6(0x2f3)]('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x36f7b6(0x187)](async(_0x545c79,_0x10799e)=>{const _0x5ce99b=a2_0x36f7b6,_0x219a90=new WorkflowSecretsListCommand(),_0x4d4e6d=program['opts'](),_0x261e3d=await createTDXInstance(_0x4d4e6d),_0x2fe94b=await _0x219a90[_0x5ce99b(0x1cf)]({'options':{..._0x4d4e6d,..._0x10799e},'args':_0x545c79?[_0x545c79]:[],'tdx':_0x261e3d});gracefulExit(_0x2fe94b);}),wfSecretsCmd['command']('set\x20<args...>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x203))[a2_0x36f7b6(0x187)](async(_0x4ed263,_0x2c2930)=>{const _0x1c206a=a2_0x36f7b6,_0x1bbc4f=new WorkflowSecretsSetCommand(),_0x13aaaf=program[_0x1c206a(0x266)](),_0x18449e=await createTDXInstance(_0x13aaaf),_0x1b3764=await _0x1bbc4f[_0x1c206a(0x1cf)]({'options':{..._0x13aaaf,..._0x2c2930},'args':_0x4ed263,'tdx':_0x18449e});gracefulExit(_0x1b3764);}),wfSecretsCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xbd))[a2_0x36f7b6(0x2f3)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x36f7b6(0x187)](async(_0x40170e,_0x269c8f)=>{const _0x3fc9a4=a2_0x36f7b6,_0x5535b4=new WorkflowSecretsDeleteCommand(),_0x514b7=program[_0x3fc9a4(0x266)](),_0x2c72a3=await createTDXInstance(_0x514b7),_0x16671a=await _0x5535b4[_0x3fc9a4(0x1cf)]({'options':{..._0x514b7,..._0x269c8f},'args':_0x40170e,'tdx':_0x2c72a3});gracefulExit(_0x16671a);});const jobCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x222))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x156)),jobListAction=async _0x287053=>{const _0x3d1647=a2_0x36f7b6,_0x7f3fec=new JobListCommand(),_0x2c0b5f=program['opts'](),_0x5059d7=await createTDXInstance(_0x2c0b5f),_0x51f088=await _0x7f3fec[_0x3d1647(0x1cf)]({'options':{..._0x2c0b5f,..._0x287053},'args':[],'tdx':_0x5059d7});gracefulExit(_0x51f088);};jobCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x269))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x34a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x354),a2_0x36f7b6(0x2db))[a2_0x36f7b6(0x187)](jobListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1dc),{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2ef))['option'](a2_0x36f7b6(0x354),a2_0x36f7b6(0x2db))[a2_0x36f7b6(0x187)](jobListAction),jobCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1d7))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x241))[a2_0x36f7b6(0x187)](async(_0x200c7c,_0x1fc095)=>{const _0x3f92b9=a2_0x36f7b6,_0x238d36=new JobShowCommand(),_0x7194c7=program[_0x3f92b9(0x266)](),_0xb1b729=await createTDXInstance(_0x7194c7),_0x3a3288=await _0x238d36[_0x3f92b9(0x1cf)]({'options':{..._0x7194c7,..._0x1fc095},'args':[_0x200c7c],'tdx':_0xb1b729});gracefulExit(_0x3a3288);}),jobCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x29d))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x288))[a2_0x36f7b6(0x187)](async(_0x1b5554,_0x58eb9e)=>{const _0x313dc6=a2_0x36f7b6,_0x42883d=new JobKillCommand(),_0x507fff=program[_0x313dc6(0x266)](),_0x11ac46=await createTDXInstance(_0x507fff),_0x26b836=await _0x42883d[_0x313dc6(0x1cf)]({'options':{..._0x507fff,..._0x58eb9e},'args':[_0x1b5554],'tdx':_0x11ac46});gracefulExit(_0x26b836);}),jobCmd[a2_0x36f7b6(0x2e7)]('submit\x20[query]')['description'](a2_0x36f7b6(0x29e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2e6),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x315),a2_0x36f7b6(0x122))[a2_0x36f7b6(0x2a8)]('--database\x20<name>',a2_0x36f7b6(0xb1),a2_0x36f7b6(0x33c))['option'](a2_0x36f7b6(0x1b4),'Result\x20export\x20destination\x20(URL\x20or\x20JSON)')['action'](async(_0x5cc887,_0xb2c24a)=>{const _0x2d5384=a2_0x36f7b6,_0x1c015c=new JobSubmitCommand(),_0x33add0=program[_0x2d5384(0x266)](),_0x21efdd=await createTDXInstance(_0x33add0),_0x261c56=await _0x1c015c[_0x2d5384(0x1cf)]({'options':{..._0x33add0,..._0xb2c24a},'args':_0x5cc887?[_0x5cc887]:[],'tdx':_0x21efdd});gracefulExit(_0x261c56);}),jobCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x35a))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2d3))[a2_0x36f7b6(0x187)](async(_0x262690,_0xd84cfa)=>{const _0x1607f7=a2_0x36f7b6,_0x17c620=new JobResultCommand(),_0x40802d=program[_0x1607f7(0x266)](),_0x15f309=await createTDXInstance(_0x40802d),_0x3fb9b2=await _0x17c620[_0x1607f7(0x1cf)]({'options':{..._0x40802d,..._0xd84cfa},'args':[_0x262690],'tdx':_0x15f309});gracefulExit(_0x3fb9b2);});const scheduleCmd=jobCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x113))['description']('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x36f7b6(0x2e7)]('list\x20[pattern]')['description'](a2_0x36f7b6(0x104))['action'](async(_0x1d8953,_0x192071)=>{const _0x3e138f=a2_0x36f7b6,_0x3780c0=new ScheduleListCommand(),_0x2a3b85=program[_0x3e138f(0x266)](),_0x2b6caa=await createTDXInstance(_0x2a3b85),_0x3b4478=await _0x3780c0[_0x3e138f(0x1cf)]({'options':{..._0x2a3b85,..._0x192071},'args':_0x1d8953?[_0x1d8953]:[],'tdx':_0x2b6caa});gracefulExit(_0x3b4478);}),scheduleCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1f5))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x310))['action'](async(_0x18d2a5,_0x377d0c)=>{const _0x2f869b=a2_0x36f7b6,_0x4d18b2=new ScheduleShowCommand(),_0x274aef=program[_0x2f869b(0x266)](),_0x107c19=await createTDXInstance(_0x274aef),_0x495d14=await _0x4d18b2[_0x2f869b(0x1cf)]({'options':{..._0x274aef,..._0x377d0c},'args':[_0x18d2a5],'tdx':_0x107c19});gracefulExit(_0x495d14);}),scheduleCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x24c))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2ee))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xcc),a2_0x36f7b6(0x2c0))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x19c),a2_0x36f7b6(0x16b))[a2_0x36f7b6(0x164)]('-f,\x20--file\x20<path>',a2_0x36f7b6(0x122))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),a2_0x36f7b6(0x185),'trino')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x20e),a2_0x36f7b6(0x148))['option'](a2_0x36f7b6(0xd8),a2_0x36f7b6(0x18f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2c6),a2_0x36f7b6(0x100))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1c0),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xd5),a2_0x36f7b6(0x144))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x172),a2_0x36f7b6(0x37d))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x200),'Result\x20output\x20destination\x20URL')[a2_0x36f7b6(0x187)](async(_0x17f14c,_0x47adca)=>{const _0x5d9353=a2_0x36f7b6,_0x38bc09=new ScheduleCreateCommand(),_0xa41bd7=program['opts'](),_0x7c1d95=await createTDXInstance(_0xa41bd7);_0x47adca['in']&&(_0x47adca['database']=_0x47adca['in']);const _0x354691=await _0x38bc09[_0x5d9353(0x1cf)]({'options':{..._0xa41bd7,..._0x47adca},'args':[_0x17f14c],'tdx':_0x7c1d95});gracefulExit(_0x354691);}),scheduleCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1ee))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2ca))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xcc),a2_0x36f7b6(0x116))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x19c),a2_0x36f7b6(0x16b))['option'](a2_0x36f7b6(0x315),a2_0x36f7b6(0x122))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),a2_0x36f7b6(0x185))['option']('--cron\x20<expression>',a2_0x36f7b6(0x148))['option']('--timezone\x20<tz>',a2_0x36f7b6(0x167))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2c6),a2_0x36f7b6(0x100))['option'](a2_0x36f7b6(0x1c0),a2_0x36f7b6(0x254))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xd5),a2_0x36f7b6(0x144))[a2_0x36f7b6(0x2a8)]('--engine-version\x20<version>',a2_0x36f7b6(0x37d))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x200),'Result\x20output\x20destination\x20URL')['action'](async(_0x48daa4,_0x545aef)=>{const _0x58aa46=a2_0x36f7b6,_0x42c8c0=new ScheduleUpdateCommand(),_0x5e2a18=program[_0x58aa46(0x266)](),_0x3b4c5c=await createTDXInstance(_0x5e2a18);_0x545aef['in']&&(_0x545aef['database']=_0x545aef['in']);const _0x36f4c0=await _0x42c8c0[_0x58aa46(0x1cf)]({'options':{..._0x5e2a18,..._0x545aef},'args':[_0x48daa4],'tdx':_0x3b4c5c});gracefulExit(_0x36f4c0);}),scheduleCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x18b))['description'](a2_0x36f7b6(0x309))[a2_0x36f7b6(0x187)](async(_0x5e77ab,_0x1f5eff)=>{const _0x3efc6f=a2_0x36f7b6,_0x1f378e=new ScheduleDeleteCommand(),_0x350183=program[_0x3efc6f(0x266)](),_0x103639=await createTDXInstance(_0x350183),_0x15276d=await _0x1f378e['run']({'options':{..._0x350183,..._0x1f5eff},'args':[_0x5e77ab],'tdx':_0x103639});gracefulExit(_0x15276d);}),scheduleCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x115))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x346))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x22d),a2_0x36f7b6(0x102))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x35b),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x36f7b6(0x187)](async(_0x53b504,_0x8bed79)=>{const _0x210e25=a2_0x36f7b6,_0x13eeff=new ScheduleRunCommand(),_0x204030=program[_0x210e25(0x266)](),_0x5812f9=await createTDXInstance(_0x204030),_0x29c316=await _0x13eeff[_0x210e25(0x1cf)]({'options':{..._0x204030,..._0x8bed79},'args':[_0x53b504],'tdx':_0x5812f9});gracefulExit(_0x29c316);}),scheduleCmd['command'](a2_0x36f7b6(0x2f4))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x199))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x252),a2_0x36f7b6(0x1a3))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xab),a2_0x36f7b6(0x111))[a2_0x36f7b6(0x187)](async(_0x1e76ec,_0x2f8138)=>{const _0x5d0c07=a2_0x36f7b6,_0x360ec1=new ScheduleHistoryCommand(),_0x149a64=program[_0x5d0c07(0x266)](),_0x61256b=await createTDXInstance(_0x149a64),_0xb11909=await _0x360ec1[_0x5d0c07(0x1cf)]({'options':{..._0x149a64,..._0x2f8138},'args':[_0x1e76ec],'tdx':_0x61256b});gracefulExit(_0xb11909);});const llmCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1f6))['description'](a2_0x36f7b6(0x319));llmCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x217))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x322))[a2_0x36f7b6(0x187)](async(_0x2fbab3,_0x521d0a)=>{const _0x440fa3=a2_0x36f7b6,_0x3fd144=new LLMUseCommand(),_0x811d92=program['opts'](),_0xfd294a=await createTDXInstance(_0x811d92),_0xdb0bc0=await _0x3fd144[_0x440fa3(0x1cf)]({'options':{..._0x811d92,..._0x521d0a},'args':[_0x2fbab3],'tdx':_0xfd294a});gracefulExit(_0xdb0bc0);}),llmCmd['command']('models')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2d2))[a2_0x36f7b6(0x187)](async _0x2d47a4=>{const _0x1b33e4=a2_0x36f7b6,_0xc3cf7d=new LLMModelsCommand(),_0x233be1=program[_0x1b33e4(0x266)](),_0x3bee17=await createTDXInstance(_0x233be1),_0x1795e8=await _0xc3cf7d['run']({'options':{..._0x233be1,..._0x2d47a4},'args':[],'tdx':_0x3bee17});gracefulExit(_0x1795e8);});const projectCmd=llmCmd['command']('project')[a2_0x36f7b6(0x2f3)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x349ee4,_0x856dce)=>{const _0x15c304=a2_0x36f7b6,_0x29a079=new LLMProjectsCommand(),_0x273d51=program[_0x15c304(0x266)](),_0x43fa6b=await createTDXInstance(_0x273d51),_0x4df78d=await _0x29a079[_0x15c304(0x1cf)]({'options':{..._0x273d51,..._0x856dce},'args':_0x349ee4?[_0x349ee4]:[],'tdx':_0x43fa6b});gracefulExit(_0x4df78d);};projectCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x36f7b6(0x187)](llmProjectListAction),llmCmd['command'](a2_0x36f7b6(0x22b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xcd))['action'](llmProjectListAction),projectCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x24c))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1da))['option'](a2_0x36f7b6(0x142),a2_0x36f7b6(0xd9))[a2_0x36f7b6(0x187)](async(_0x16bacf,_0x50f47f)=>{const _0x1782ac=a2_0x36f7b6,_0x122663=new LLMProjectCreateCommand(),_0x18cff9=program[_0x1782ac(0x266)](),_0x21c628=await createTDXInstance(_0x18cff9),_0xd4fd21=await _0x122663[_0x1782ac(0x1cf)]({'options':{..._0x18cff9,..._0x50f47f},'args':[_0x16bacf],'tdx':_0x21c628});gracefulExit(_0xd4fd21);}),projectCmd['command'](a2_0x36f7b6(0x18b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1a4))[a2_0x36f7b6(0x187)](async(_0x5ef002,_0x240299)=>{const _0x46d653=a2_0x36f7b6,_0x423c3e=new LLMProjectDeleteCommand(),_0xbf8af8=program[_0x46d653(0x266)](),_0x1a1e44=await createTDXInstance(_0xbf8af8),_0x275f43=await _0x423c3e['run']({'options':{..._0xbf8af8,..._0x240299},'args':[_0x5ef002],'tdx':_0x1a1e44});gracefulExit(_0x275f43);}),projectCmd['command'](a2_0x36f7b6(0x149))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x36e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x344),a2_0x36f7b6(0x10a))['option'](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x263))[a2_0x36f7b6(0x187)](async(_0x3a1509,_0x5006f1)=>{const _0x5a5914=a2_0x36f7b6,_0x52f19e=new LLMProjectBackupCommand(),_0x38bc84=program[_0x5a5914(0x266)](),_0x581cfe=await createTDXInstance(_0x38bc84),_0x293672=await _0x52f19e[_0x5a5914(0x1cf)]({'options':{..._0x38bc84,..._0x5006f1},'args':[_0x3a1509],'tdx':_0x581cfe});gracefulExit(_0x293672);}),projectCmd[a2_0x36f7b6(0x2e7)]('restore\x20<folder>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2ec))[a2_0x36f7b6(0x2a8)]('--name\x20<new-name>',a2_0x36f7b6(0x347))[a2_0x36f7b6(0x2a8)]('--dry-run',a2_0x36f7b6(0x126))[a2_0x36f7b6(0x187)](async(_0x163f28,_0x5e1160)=>{const _0x2d6a80=a2_0x36f7b6,_0x234ee1=new LLMProjectRestoreCommand(),_0x5ab96b=program[_0x2d6a80(0x266)](),_0x1a236e=await createTDXInstance(_0x5ab96b),_0xf1efc7=await _0x234ee1[_0x2d6a80(0x1cf)]({'options':{..._0x5ab96b,..._0x5e1160},'args':[_0x163f28],'tdx':_0x1a236e});gracefulExit(_0xf1efc7);});const llmAgentListAction=async(_0x1d8360,_0x420325)=>{const _0x39f614=a2_0x36f7b6,_0x4b83f9=new LLMAgentsCommand(),_0x3805df=program[_0x39f614(0x266)](),_0x2af8cf=await createTDXInstance(_0x3805df),_0x32743f=await _0x4b83f9['run']({'options':{..._0x3805df,..._0x420325},'args':_0x1d8360?[_0x1d8360]:[],'tdx':_0x2af8cf});gracefulExit(_0x32743f);};llmCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x301))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x225))[a2_0x36f7b6(0x187)](llmAgentListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x301))[a2_0x36f7b6(0x2f3)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x36f7b6(0x187)](llmAgentListAction),llmCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x11f))[a2_0x36f7b6(0x2f3)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1a1),a2_0x36f7b6(0x10d))['action'](async(_0x571224,_0x450c97)=>{const _0x3bdad9=a2_0x36f7b6,_0x2bb7cb=new LLMHistoryCommand(),_0x3c6f03=program[_0x3bdad9(0x266)](),_0x3a386e=await createTDXInstance(_0x3c6f03),_0x8a53c9=await _0x2bb7cb[_0x3bdad9(0x1cf)]({'options':{..._0x3c6f03,..._0x450c97},'args':_0x571224?[_0x571224]:[],'tdx':_0x3a386e});gracefulExit(_0x8a53c9);});isExperimentalAvailable()&&llmCmd['command']('log\x20<chat-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x286))[a2_0x36f7b6(0x187)](async(_0x155b2f,_0x29a1e4)=>{const _0x3648d3=a2_0x36f7b6,_0x3e9589=new LLMLogCommand(),_0x22b520=program[_0x3648d3(0x266)](),_0xc6b007=await createTDXInstance(_0x22b520),_0x2be42c=await _0x3e9589[_0x3648d3(0x1cf)]({'options':{..._0x22b520,..._0x29a1e4},'args':[_0x155b2f],'tdx':_0xc6b007});gracefulExit(_0x2be42c);});program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2a5))[a2_0x36f7b6(0x2f2)](a2_0x36f7b6(0x1d0))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1c8))['option'](a2_0x36f7b6(0x2dd),a2_0x36f7b6(0x31a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x129),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x36f7b6(0x2a8)]('--no-proxy','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x36f7b6(0x196)]()['allowExcessArguments'](!![])[a2_0x36f7b6(0x2f7)](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x363))[a2_0x36f7b6(0x187)](async(_0x3b1b8b,_0x5ccb4b)=>{const _0x2ec2ed=a2_0x36f7b6,_0x4479e1=program[_0x2ec2ed(0x266)](),_0x1545b6=Array[_0x2ec2ed(0x136)](_0x3b1b8b)?_0x3b1b8b:[];if(_0x1545b6[0x0]===_0x2ec2ed(0x153)){const _0x158ac2=new ClaudeStatuslineCommand(),_0x4f8c09=await _0x158ac2['run']({'options':{..._0x4479e1,..._0x5ccb4b},'args':_0x1545b6['slice'](0x1),'tdx':null});gracefulExit(_0x4f8c09);}if(_0x1545b6[0x0]===_0x2ec2ed(0x2f2)){const _0x3a05fb=new ClaudeUsageCommand(),_0x5f301d=await _0x3a05fb[_0x2ec2ed(0x1cf)]({'options':{..._0x4479e1,..._0x5ccb4b},'args':_0x1545b6[_0x2ec2ed(0x212)](0x1),'tdx':null});gracefulExit(_0x5f301d);}const _0x27a718=new ClaudeCommand(),_0x5dd101=await createTDXInstance(_0x4479e1),_0x79012=await _0x27a718[_0x2ec2ed(0x1cf)]({'options':{..._0x4479e1,..._0x5ccb4b},'args':_0x1545b6,'tdx':_0x5dd101});gracefulExit(_0x79012);}),program['command'](a2_0x36f7b6(0x12e))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xa8))['option'](a2_0x36f7b6(0x2b7),'Clear\x20session\x20context')['option'](a2_0x36f7b6(0x33a),a2_0x36f7b6(0xfa))[a2_0x36f7b6(0x187)](async(_0x5ec606,_0x58fe60,_0x591f7e)=>{const _0x2921b2=a2_0x36f7b6,_0x409b69=new UseCommand(),_0x23de31=program[_0x2921b2(0x266)](),_0x2414f3=[];if(_0x5ec606)_0x2414f3['push'](_0x5ec606);if(_0x58fe60)_0x2414f3[_0x2921b2(0x256)](_0x58fe60);const _0x5491fe=_0x5ec606===_0x2921b2(0x1be),_0x4c1b0f=_0x5491fe?await createTDXInstance(_0x23de31):null,_0x2e1190=await _0x409b69[_0x2921b2(0x1cf)]({'options':{..._0x23de31,..._0x591f7e},'args':_0x2414f3,'tdx':_0x4c1b0f});gracefulExit(_0x2e1190);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x208))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x324))[a2_0x36f7b6(0x187)](async _0xaf54ee=>{const _0x1ef2dd=a2_0x36f7b6,_0x30ef22=new StatusCommand(),_0x9631c7=program[_0x1ef2dd(0x266)](),_0x1c3d2a=await createTDXInstance(_0x9631c7),_0x4cb640=await _0x30ef22[_0x1ef2dd(0x1cf)]({'options':{..._0x9631c7,..._0xaf54ee},'args':[],'tdx':_0x1c3d2a});gracefulExit(_0x4cb640);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x27b))[a2_0x36f7b6(0x2f3)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')[a2_0x36f7b6(0x2a8)]('--dry-run','Check\x20for\x20updates\x20without\x20installing')['option'](a2_0x36f7b6(0x1ac),a2_0x36f7b6(0x1b3))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x316),a2_0x36f7b6(0x2de))[a2_0x36f7b6(0x187)](async(_0x5bdb34,_0x14b727)=>{const _0x1e2c1b=a2_0x36f7b6,_0x17a445=new UpgradeCommand(),_0x5b3ce3=program[_0x1e2c1b(0x266)](),_0x30152a=await _0x17a445[_0x1e2c1b(0x1cf)]({'options':{..._0x5b3ce3,..._0x14b727},'args':_0x5bdb34?[_0x5bdb34]:[],'tdx':null});gracefulExit(_0x30152a);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x160))[a2_0x36f7b6(0x2f3)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x36f7b6(0x2a8)]('--default',a2_0x36f7b6(0x161))[a2_0x36f7b6(0x187)](async(_0x2f6819,_0x590b9c)=>{const _0x2252e0=a2_0x36f7b6,_0x4ba1e1=new UnsetCommand(),_0x467354=program[_0x2252e0(0x266)](),_0x27baf9=await _0x4ba1e1[_0x2252e0(0x1cf)]({'options':{..._0x467354,..._0x590b9c},'args':[_0x2f6819],'tdx':null});gracefulExit(_0x27baf9);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x120))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x12a))[a2_0x36f7b6(0x2a8)]('--last',a2_0x36f7b6(0x17a))[a2_0x36f7b6(0x187)](async _0x5e90d0=>{const _0xc9a044=a2_0x36f7b6,_0x3000f9=new ChatsCommand(),_0x5cc0e8=program[_0xc9a044(0x266)](),_0x1d3061=await createTDXInstance(_0x5cc0e8),_0x42afa3=await _0x3000f9[_0xc9a044(0x1cf)]({'options':{..._0x5cc0e8,..._0x5e90d0},'args':[],'tdx':_0x1d3061});gracefulExit(_0x42afa3);});const authCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x110))[a2_0x36f7b6(0x2f3)]('Authentication\x20management');async function runAuthStatusCommand(_0x5a14c8){const _0x208444=a2_0x36f7b6,_0x381281=new AuthStatusCommand(),_0x3598ca=program[_0x208444(0x266)](),_0x436573=await createTDXInstance(_0x3598ca),_0x32ab7d=await _0x381281['run']({'options':{..._0x3598ca,..._0x5a14c8},'args':[],'tdx':_0x436573});gracefulExit(_0x32ab7d);}authCmd[a2_0x36f7b6(0x187)](runAuthStatusCommand),authCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x208))[a2_0x36f7b6(0x2f3)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x36f7b6(0x187)](runAuthStatusCommand),authCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2ad))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x124))['addHelpText'](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x24f))[a2_0x36f7b6(0x187)](async _0x5594f8=>{const _0x590a21=a2_0x36f7b6,_0x197d43=new AuthSetupCommand(),_0x9c28cf=program['opts'](),_0x583ab1=await createTDXInstance(_0x9c28cf),_0x90ae62=await _0x197d43[_0x590a21(0x1cf)]({'options':{..._0x9c28cf,..._0x5594f8},'args':[],'tdx':_0x583ab1});gracefulExit(_0x90ae62);}),authCmd[a2_0x36f7b6(0x2e7)]('login')[a2_0x36f7b6(0x2f3)]('Login\x20via\x20OAuth\x20(dev\x20sites\x20only)')['addHelpText'](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x28a))[a2_0x36f7b6(0x187)](async _0x54b5d0=>{const _0x3b6316=a2_0x36f7b6,_0x27dfd8=new AuthLoginCommand(),_0x36fd4d=program[_0x3b6316(0x266)](),_0x3743db=await _0x27dfd8[_0x3b6316(0x1cf)]({'options':{..._0x36fd4d,..._0x54b5d0},'args':[],'tdx':null});gracefulExit(_0x3743db);}),authCmd['command'](a2_0x36f7b6(0x1d5))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x297))[a2_0x36f7b6(0x2f7)](a2_0x36f7b6(0x30e),'\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')[a2_0x36f7b6(0x187)](async _0x4b45ee=>{const _0x2f4df1=a2_0x36f7b6,_0x50ab97=new AuthClearCommand(),_0x4f55f6=program[_0x2f4df1(0x266)](),_0x1f7683=await _0x50ab97['run']({'options':{..._0x4f55f6,..._0x4b45ee},'args':[],'tdx':null});gracefulExit(_0x1f7683);});const userCmd=program[a2_0x36f7b6(0x2e7)]('user')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x23e)),userListAction=async _0x45e452=>{const _0x49dd92=new UserListCommand(),_0x36bba7=program['opts'](),_0x24bfd9=await createTDXInstance(_0x36bba7),_0x2b9335=await _0x49dd92['run']({'options':{..._0x36bba7,..._0x45e452},'args':[],'tdx':_0x24bfd9});gracefulExit(_0x2b9335);};userCmd[a2_0x36f7b6(0x187)](async _0x1ad64a=>{const _0x21854e=a2_0x36f7b6,_0x4c2c08=new UserCommand(),_0x17bdb6=program[_0x21854e(0x266)](),_0x15e858=await createTDXInstance(_0x17bdb6),_0x5058a6=await _0x4c2c08[_0x21854e(0x1cf)]({'options':{..._0x17bdb6,..._0x1ad64a},'args':[],'tdx':_0x15e858});gracefulExit(_0x5058a6);}),userCmd['command']('list')[a2_0x36f7b6(0x2f3)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x36f7b6(0x187)](userListAction),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x356))[a2_0x36f7b6(0x2f3)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')['action'](userListAction);const policyCmd=program['command'](a2_0x36f7b6(0xb7))['description'](a2_0x36f7b6(0xda));policyCmd['action'](async _0x354d4c=>{const _0x197c2c=a2_0x36f7b6,_0x2c795b=new PolicyCommand(),_0x129d64=program[_0x197c2c(0x266)](),_0x36c288=await createTDXInstance(_0x129d64),_0x3ad8eb=await _0x2c795b[_0x197c2c(0x1cf)]({'options':{..._0x129d64,..._0x354d4c},'args':[],'tdx':_0x36c288});gracefulExit(_0x3ad8eb);}),policyCmd['command'](a2_0x36f7b6(0x269))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x296))['action'](async _0xa0323f=>{const _0x5b4888=a2_0x36f7b6,_0x31bf4d=new PolicyListCommand(),_0x156504=program[_0x5b4888(0x266)](),_0x2f51ea=await createTDXInstance(_0x156504),_0x38334=await _0x31bf4d[_0x5b4888(0x1cf)]({'options':{..._0x156504,..._0xa0323f},'args':[],'tdx':_0x2f51ea});gracefulExit(_0x38334);}),policyCmd['command'](a2_0x36f7b6(0x290))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x304))['action'](async(_0x1eb8ea,_0xa6e3e2)=>{const _0x50720c=a2_0x36f7b6,_0x2051f4=new PolicyShowCommand(),_0x3a7ba0=program[_0x50720c(0x266)](),_0x1e4109=await createTDXInstance(_0x3a7ba0),_0x2dcf64=await _0x2051f4[_0x50720c(0x1cf)]({'options':{..._0x3a7ba0,..._0xa6e3e2},'args':[_0x1eb8ea],'tdx':_0x1e4109});gracefulExit(_0x2dcf64);}),program[a2_0x36f7b6(0x2e7)]('profiles')[a2_0x36f7b6(0x2f3)]('List\x20all\x20available\x20profiles')[a2_0x36f7b6(0x187)](async _0x1d8c6e=>{const _0x12639a=a2_0x36f7b6,_0x133d93=new ProfilesCommand(),_0x284768=program['opts'](),_0x282fe3=await _0x133d93[_0x12639a(0x1cf)]({'options':{..._0x284768,..._0x1d8c6e},'args':[],'tdx':null});gracefulExit(_0x282fe3);});const profileCmd=program[a2_0x36f7b6(0x2e7)]('profile')['description'](a2_0x36f7b6(0xa5));profileCmd[a2_0x36f7b6(0x187)](()=>{const _0x1147a7=a2_0x36f7b6;profileCmd[_0x1147a7(0x12f)]();});const profileListAction=async _0x2ae2e1=>{const _0x5d31ab=a2_0x36f7b6,_0x2ccf05=new ProfilesCommand(),_0x1e66b9=program['opts'](),_0x3388c6=await _0x2ccf05[_0x5d31ab(0x1cf)]({'options':{..._0x1e66b9,..._0x2ae2e1},'args':[],'tdx':null});gracefulExit(_0x3388c6);};profileCmd[a2_0x36f7b6(0x2e7)]('list')[a2_0x36f7b6(0x2f3)]('List\x20all\x20available\x20profiles')[a2_0x36f7b6(0x187)](profileListAction),profileCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x12b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1b2))['addHelpText']('after',a2_0x36f7b6(0xcb))[a2_0x36f7b6(0x187)](async(_0x2af015,_0x594ec2)=>{const _0x27fa58=a2_0x36f7b6,_0x580638=new ProfileCreateCommand(),_0x4199c1=program[_0x27fa58(0x266)](),_0x2efc51=await _0x580638[_0x27fa58(0x1cf)]({'options':{..._0x4199c1,..._0x594ec2},'args':_0x2af015?[_0x2af015]:[],'tdx':null});gracefulExit(_0x2efc51);}),profileCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2b5))['description'](a2_0x36f7b6(0x29c))[a2_0x36f7b6(0x2f7)](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x1a9))[a2_0x36f7b6(0x187)](async(_0x970f36,_0x432299)=>{const _0xe24551=a2_0x36f7b6,_0x343d29=new ProfileRemoveCommand(),_0x4e8a48=program[_0xe24551(0x266)](),_0x432c8d=await _0x343d29[_0xe24551(0x1cf)]({'options':{..._0x4e8a48,..._0x432299},'args':[_0x970f36],'tdx':null});gracefulExit(_0x432c8d);}),profileCmd['command']('set\x20<key=value>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x36a))[a2_0x36f7b6(0x2f7)]('after',a2_0x36f7b6(0x13d))[a2_0x36f7b6(0x187)](async(_0x3d3b73,_0x31b73d)=>{const _0x25b092=a2_0x36f7b6,_0x7eb8d4=new ProfileSetCommand(),_0x57f1ca=program[_0x25b092(0x266)](),_0x3a8eec=await _0x7eb8d4[_0x25b092(0x1cf)]({'options':{..._0x57f1ca,..._0x31b73d},'args':[_0x3d3b73],'tdx':null});gracefulExit(_0x3a8eec);}),profileCmd[a2_0x36f7b6(0x2e7)]('use\x20<name>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x204))[a2_0x36f7b6(0x2a8)]('--default',a2_0x36f7b6(0xfa))[a2_0x36f7b6(0x2f7)](a2_0x36f7b6(0x30e),a2_0x36f7b6(0x261))[a2_0x36f7b6(0x187)](async(_0x52db32,_0x11eadf)=>{const _0xe3800e=a2_0x36f7b6,_0x1de3a5=new ProfileUseCommand(),_0x334a9a=program[_0xe3800e(0x266)](),_0x503bec=await _0x1de3a5[_0xe3800e(0x1cf)]({'options':{..._0x334a9a,..._0x11eadf},'args':[_0x52db32],'tdx':null});gracefulExit(_0x503bec);});const engageCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x17e))['description'](a2_0x36f7b6(0x2dc)),createEngageAction=_0x3ac67b=>{return async(_0x174494,_0x57998c)=>{const _0x7ee8ce=a2_0xe904,_0x275491=new _0x3ac67b(),_0x13d4ba=program[_0x7ee8ce(0x266)](),_0x5d4ab2=await createTDXInstance(_0x13d4ba),_0x49ca4f=await _0x275491[_0x7ee8ce(0x1cf)]({'options':{..._0x13d4ba,..._0x57998c},'args':[_0x174494],'tdx':_0x5d4ab2});gracefulExit(_0x49ca4f);};},createEngageNoArgAction=_0x29a0cb=>{return async _0x2a0d0c=>{const _0x3b0b88=a2_0xe904,_0x209d43=new _0x29a0cb(),_0x4ada8a=program[_0x3b0b88(0x266)](),_0x46d350=await createTDXInstance(_0x4ada8a),_0x4c2e15=await _0x209d43[_0x3b0b88(0x1cf)]({'options':{..._0x4ada8a,..._0x2a0d0c},'args':[],'tdx':_0x46d350});gracefulExit(_0x4c2e15);};},createEngageListAction=_0x50237a=>{return async(_0x20674e,_0x1b6258)=>{const _0x15f42b=a2_0xe904,_0x5bb272=new _0x50237a(),_0x11f75c=program[_0x15f42b(0x266)](),_0x345eb4=await createTDXInstance(_0x11f75c),_0x31a9f8=await _0x5bb272[_0x15f42b(0x1cf)]({'options':{..._0x11f75c,..._0x1b6258},'args':_0x20674e?[_0x20674e]:[],'tdx':_0x345eb4});gracefulExit(_0x31a9f8);};},campaignCmd=engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x236))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1a2));campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x2f6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),a2_0x36f7b6(0x26e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x354),a2_0x36f7b6(0x11c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x187)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1b8))[a2_0x36f7b6(0x2f3)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option'](a2_0x36f7b6(0x188),a2_0x36f7b6(0x26e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x354),a2_0x36f7b6(0x11c))['option']('--workspace\x20<name>',a2_0x36f7b6(0x22a))['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x36f7b6(0x2e7)]('show\x20<name-or-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x214))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x351),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x36f7b6(0x2e7)]('create')[a2_0x36f7b6(0x2f3)]('Create\x20a\x20new\x20campaign')[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x18d))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x188),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2d9),a2_0x36f7b6(0x22e))[a2_0x36f7b6(0x2a8)]('--segment\x20<path>',a2_0x36f7b6(0x2da))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x289),a2_0x36f7b6(0x325))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x23d),a2_0x36f7b6(0xf2))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xae),a2_0x36f7b6(0xc5))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xd8),a2_0x36f7b6(0x16d))[a2_0x36f7b6(0x187)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2d7))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x361))['option'](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))['option']('--name\x20<name>',a2_0x36f7b6(0x282))['option']('--description\x20<desc>',a2_0x36f7b6(0x22e))[a2_0x36f7b6(0x2a8)]('--segment\x20<path>',a2_0x36f7b6(0x2da))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x289),a2_0x36f7b6(0x325))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x23d),a2_0x36f7b6(0xf2))['option'](a2_0x36f7b6(0xae),a2_0x36f7b6(0xc5))['option']('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2d1))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x291))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x2a8)]('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x36f7b6(0x281))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x313))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),'Workspace\x20name')[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x37e))['description'](a2_0x36f7b6(0x228))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x11b))[a2_0x36f7b6(0x2f3)]('Resume\x20a\x20paused\x20campaign')[a2_0x36f7b6(0x2a8)]('--workspace\x20<name>','Workspace\x20name')[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x36f7b6(0x2fd))['description'](a2_0x36f7b6(0x230))[a2_0x36f7b6(0x2a8)]('--workspace\x20<name>','Workspace\x20name')[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x36f7b6(0x141))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x247))[a2_0x36f7b6(0x2a8)]('--workspace\x20<name>',a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0xe2))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x36f7b6(0x2a8)]('--dry-run',a2_0x36f7b6(0x318))[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x36f7b6(0x2e7)]('push\x20[target]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x365))[a2_0x36f7b6(0x2a8)]('--workspace\x20<name>',a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x227))[a2_0x36f7b6(0x187)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x17d))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x207),a2_0x36f7b6(0x259))['action'](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd['command'](a2_0x36f7b6(0x239))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xdc));alwaysOnCampaignCmd['command'](a2_0x36f7b6(0x369))['description'](a2_0x36f7b6(0x2c1))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),a2_0x36f7b6(0x26e))['option'](a2_0x36f7b6(0x354),'Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x187)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x341))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x191))[a2_0x36f7b6(0x2a8)]('--type\x20<type>',a2_0x36f7b6(0x26e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x354),a2_0x36f7b6(0x16a))['requiredOption'](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x187)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)]('show\x20<name-or-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x189))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))['option'](a2_0x36f7b6(0x351),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x36f7b6(0x187)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2f8))['description'](a2_0x36f7b6(0x1b9))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x18d))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x188),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)]('--description\x20<desc>',a2_0x36f7b6(0x22e))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x32f),'Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)')[a2_0x36f7b6(0x2a8)]('--enable-utm-tracking',a2_0x36f7b6(0xc7))[a2_0x36f7b6(0x187)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)]('update\x20<name-or-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x15d))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x12d),'New\x20campaign\x20name')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2d9),'Campaign\x20description')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x32f),a2_0x36f7b6(0x181))[a2_0x36f7b6(0x2a8)]('--enable-utm-tracking',a2_0x36f7b6(0xc7))[a2_0x36f7b6(0x187)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)]('delete\x20<name-or-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xc9))[a2_0x36f7b6(0x164)]('--workspace\x20<name>',a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x2cb),a2_0x36f7b6(0x215))['action'](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x281))['description'](a2_0x36f7b6(0x32e))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))['action'](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd['command'](a2_0x36f7b6(0x37e))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x13e))['requiredOption']('--workspace\x20<name>',a2_0x36f7b6(0x348))[a2_0x36f7b6(0x187)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x11b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x179))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x187)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2fb))['description'](a2_0x36f7b6(0x1bd))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)]('--yes',a2_0x36f7b6(0x215))['action'](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2fd))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x22c))['requiredOption'](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x164)]('--name\x20<name>',a2_0x36f7b6(0x31d))[a2_0x36f7b6(0x187)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1b0))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x23f));templateCmd['command']('list\x20[pattern]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x192))['option'](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x187)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x31f))[a2_0x36f7b6(0x2f3)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x187)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x35e))[a2_0x36f7b6(0x2f3)]('Show\x20email\x20template\x20details')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),'Workspace\x20name')['option']('--full',a2_0x36f7b6(0x1c4))[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x36f7b6(0x2e7)]('create')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x20d))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x308))[a2_0x36f7b6(0x164)]('--subject\x20<subject>',a2_0x36f7b6(0x223))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x268),a2_0x36f7b6(0x314))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x233),a2_0x36f7b6(0x166))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x348))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x29b),a2_0x36f7b6(0x2a3))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x13b),'Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)',_0x36f8b8=>{const _0x5bfa61=a2_0x36f7b6;if(!['beefree','grapesjs'][_0x5bfa61(0x125)](_0x36f8b8))throw new SDKError(ErrorCode[_0x5bfa61(0x33d)],'Invalid\x20editor\x20type:\x20'+_0x36f8b8+_0x5bfa61(0x379));return _0x36f8b8;})[a2_0x36f7b6(0x187)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2d7))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1ca))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x2a8)]('--name\x20<name>',a2_0x36f7b6(0x2b8))[a2_0x36f7b6(0x2a8)]('--subject\x20<subject>',a2_0x36f7b6(0x223))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x268),a2_0x36f7b6(0x314))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x233),a2_0x36f7b6(0x166))['option'](a2_0x36f7b6(0x29b),a2_0x36f7b6(0x2a3))[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x36f7b6(0x2e7)]('pull\x20[workspace]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xdf))[a2_0x36f7b6(0x2a8)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x30a))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x336),a2_0x36f7b6(0x215))[a2_0x36f7b6(0x2a8)]('--dry-run',a2_0x36f7b6(0x318))[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command'](a2_0x36f7b6(0x2c2))[a2_0x36f7b6(0x2f3)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),'Workspace\x20name')['option']('-y,\x20--yes',a2_0x36f7b6(0x215))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x227))[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplatePushCommand)),templateCmd['command']('validate\x20[target]')[a2_0x36f7b6(0x2f3)]('Validate\x20template\x20YAML\x20files\x20locally')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x207),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x36f7b6(0x2e7)]('delete\x20<name-or-id>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x25b))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x36f7b6(0x187)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x275))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x358));workspaceCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xef))[a2_0x36f7b6(0x187)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x36f7b6(0x2e7)]('workspaces\x20[pattern]')[a2_0x36f7b6(0x2f3)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')['action'](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x35e))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xa6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x351),a2_0x36f7b6(0x1c4))[a2_0x36f7b6(0x187)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x36f7b6(0x2f8))['description'](a2_0x36f7b6(0x377))[a2_0x36f7b6(0x164)](a2_0x36f7b6(0x12d),'Workspace\x20name')['option'](a2_0x36f7b6(0x2d9),a2_0x36f7b6(0x36b))[a2_0x36f7b6(0x187)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2d7))['description'](a2_0x36f7b6(0x1d6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x12d),a2_0x36f7b6(0x1b1))[a2_0x36f7b6(0x2a8)]('--description\x20<desc>','Workspace\x20description')[a2_0x36f7b6(0x187)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2d1))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x298))['option'](a2_0x36f7b6(0x2cb),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x283))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x317))[a2_0x36f7b6(0x187)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x36f7b6(0x2e7)]('delivery')['description'](a2_0x36f7b6(0x19e));deliveryCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1fb))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x267))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x30d),a2_0x36f7b6(0x22a))[a2_0x36f7b6(0x187)](createEngageListAction(DeliveryEmailSendersCommand));function a2_0xe904(_0x19edda,_0x2d571f){_0x19edda=_0x19edda-0xa4;const _0x57e9ae=a2_0x57e9();let _0xe9044c=_0x57e9ae[_0x19edda];return _0xe9044c;}const connectionCmd=program['command'](a2_0x36f7b6(0x1cd))[a2_0x36f7b6(0x2f3)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x385b9d=>{const _0x563adc=a2_0x36f7b6,_0x458b1d=new ConnectionListCommand(),_0x4219a8=program[_0x563adc(0x266)](),_0x12e057=await createTDXInstance(_0x4219a8),_0xca0f26=await _0x458b1d['run']({'options':{..._0x4219a8,..._0x385b9d},'args':[],'tdx':_0x12e057});gracefulExit(_0xca0f26);};connectionCmd['command'](a2_0x36f7b6(0x269))['description'](a2_0x36f7b6(0xad))[a2_0x36f7b6(0x187)](connectionListAction),program[a2_0x36f7b6(0x2e7)]('connections',{'hidden':!![]})[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x338))[a2_0x36f7b6(0x187)](connectionListAction),connectionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1f5))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1e6))[a2_0x36f7b6(0x187)](async(_0x3c066f,_0x27fcd5)=>{const _0x52698e=a2_0x36f7b6,_0x5f9f39=new ConnectionShowCommand(),_0x24be24=program[_0x52698e(0x266)](),_0x571fdb=await createTDXInstance(_0x24be24),_0x14ae71=await _0x5f9f39['run']({'options':{..._0x24be24,..._0x27fcd5},'args':[_0x3c066f],'tdx':_0x571fdb});gracefulExit(_0x14ae71);}),connectionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x186))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xac))[a2_0x36f7b6(0x187)](async(_0x432b4b,_0x5b0b25)=>{const _0x346fbe=a2_0x36f7b6,_0x234adc=new ConnectionSchemaCommand(),_0x5cc898=program[_0x346fbe(0x266)](),_0x2f7f11=await createTDXInstance(_0x5cc898),_0x3d9e11=await _0x234adc[_0x346fbe(0x1cf)]({'options':{..._0x5cc898,..._0x5b0b25},'args':[_0x432b4b],'tdx':_0x2f7f11});gracefulExit(_0x3d9e11);}),connectionCmd[a2_0x36f7b6(0x2e7)]('types')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x327))['action'](async _0x15731b=>{const _0x152314=a2_0x36f7b6,_0x23772e=new ConnectionTypesCommand(),_0x566dcf=program[_0x152314(0x266)](),_0x2b1107=await createTDXInstance(_0x566dcf),_0x2bbf4a=await _0x23772e[_0x152314(0x1cf)]({'options':{..._0x566dcf,..._0x15731b},'args':[],'tdx':_0x2b1107});gracefulExit(_0x2bbf4a);}),connectionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x140))[a2_0x36f7b6(0x2f3)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x36f7b6(0x187)](async(_0x509853,_0x510ac5)=>{const _0x2281eb=a2_0x36f7b6,_0x4a7eea=new ConnectionSettingsCommand(),_0x8952c4=program[_0x2281eb(0x266)](),_0xb4636d=await createTDXInstance(_0x8952c4),_0x245fa0=await _0x4a7eea[_0x2281eb(0x1cf)]({'options':{..._0x8952c4,..._0x510ac5},'args':[_0x509853],'tdx':_0xb4636d});gracefulExit(_0x245fa0);});const journeyCmd=program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x17c))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1d3)),journeyListAction=async(_0x427ed4,_0x10d71e)=>{const _0x298054=a2_0x36f7b6,_0x2b0c26=new JourneyListCommand(),_0x39966e=program[_0x298054(0x266)](),_0x25f9e6=await createTDXInstance(_0x39966e),_0x18220a=await _0x2b0c26[_0x298054(0x1cf)]({'options':{..._0x39966e,..._0x10d71e},'args':_0x427ed4?[_0x427ed4]:[],'tdx':_0x25f9e6});gracefulExit(_0x18220a);};journeyCmd['command'](a2_0x36f7b6(0x369))[a2_0x36f7b6(0x2f3)]('List\x20journeys\x20in\x20current\x20context')['action'](journeyListAction),journeyCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2ab))['description']('Show\x20journey\x20details')[a2_0x36f7b6(0x2a8)]('-w,\x20--web',a2_0x36f7b6(0xcf))[a2_0x36f7b6(0x2a8)]('--include-stats',a2_0x36f7b6(0x332))[a2_0x36f7b6(0x187)](async(_0x319352,_0x4793fe)=>{const _0xfa3748=new JourneyViewCommand(),_0x2191f1=program['opts'](),_0x408a9e=await createTDXInstance(_0x2191f1),_0x4b90d4=await _0xfa3748['run']({'options':{..._0x2191f1,..._0x4793fe},'args':[_0x319352],'tdx':_0x408a9e});gracefulExit(_0x4b90d4);}),journeyCmd['command'](a2_0x36f7b6(0x305))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x118))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x311),a2_0x36f7b6(0x210))[a2_0x36f7b6(0x2a8)]('--from\x20<date>',a2_0x36f7b6(0x30c))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1e5),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option']('--include-history',a2_0x36f7b6(0x2bb))[a2_0x36f7b6(0x187)](async(_0x662ef7,_0x357532)=>{const _0x4eb87a=a2_0x36f7b6,_0x4e8864=new JourneyStatsCommand(),_0x5721df=program['opts'](),_0x12c04b=await createTDXInstance(_0x5721df),_0x243461=await _0x4e8864[_0x4eb87a(0x1cf)]({'options':{..._0x5721df,..._0x357532},'args':[_0x662ef7],'tdx':_0x12c04b});gracefulExit(_0x243461);}),journeyCmd['command']('traffic\x20<name-or-path>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x262))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x188),a2_0x36f7b6(0x2e0))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x109),a2_0x36f7b6(0x30c))['option'](a2_0x36f7b6(0x1e5),a2_0x36f7b6(0x134))['option']('--limit\x20<number>',a2_0x36f7b6(0x1f0),_0x4d4a12=>{const _0x3ddd26=a2_0x36f7b6,_0x58158f=parseInt(_0x4d4a12,0xa);if(isNaN(_0x58158f))throw new Error('Invalid\x20--limit\x20value:\x20\x22'+_0x4d4a12+_0x3ddd26(0x2c4));return _0x58158f;})[a2_0x36f7b6(0x187)](async(_0x5afe7a,_0x322e75)=>{const _0x404ff3=a2_0x36f7b6,_0x5bd425=new JourneyTrafficCommand(),_0x317c15=program[_0x404ff3(0x266)](),_0x4736a7=await createTDXInstance(_0x317c15),_0x354cf9=await _0x5bd425['run']({'options':{..._0x317c15,..._0x322e75},'args':[_0x5afe7a],'tdx':_0x4736a7});gracefulExit(_0x354cf9);}),journeyCmd['command'](a2_0x36f7b6(0x37c))['description'](a2_0x36f7b6(0x30f))[a2_0x36f7b6(0x187)](async(_0x239fa4,_0x4ef907)=>{const _0x3998ec=a2_0x36f7b6,_0xa15b37=new JourneyPauseCommand(),_0x47b2ca=program[_0x3998ec(0x266)](),_0x410207=await createTDXInstance(_0x47b2ca),_0x47ad5b=await _0xa15b37['run']({'options':{..._0x47b2ca,..._0x4ef907},'args':[_0x239fa4],'tdx':_0x410207});gracefulExit(_0x47ad5b);}),journeyCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x30b))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x25f))[a2_0x36f7b6(0x187)](async(_0x3d3cfe,_0x53b453)=>{const _0x998bd3=a2_0x36f7b6,_0xb3f776=new JourneyResumeCommand(),_0x47b15c=program['opts'](),_0x22db35=await createTDXInstance(_0x47b15c),_0x5fd515=await _0xb3f776[_0x998bd3(0x1cf)]({'options':{..._0x47b15c,..._0x53b453},'args':[_0x3d3cfe],'tdx':_0x22db35});gracefulExit(_0x5fd515);}),journeyCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x294))['description'](a2_0x36f7b6(0xb2))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x2be))['action'](async(_0x25fef1,_0x40e299)=>{const _0x1639bd=a2_0x36f7b6,_0x51c64e=new JourneyPullCommand(),_0x4f363d=program['opts'](),_0x5494ed=await createTDXInstance(_0x4f363d),_0x194d95=await _0x51c64e[_0x1639bd(0x1cf)]({'options':{..._0x4f363d,..._0x40e299},'args':_0x25fef1?[_0x25fef1]:[],'tdx':_0x5494ed});gracefulExit(_0x194d95);}),journeyCmd['command'](a2_0x36f7b6(0x2c2))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xbc))[a2_0x36f7b6(0x187)](async(_0x3c4a97,_0x374f19)=>{const _0x5d1443=a2_0x36f7b6,_0x3e1184=new JourneyPushCommand(),_0x13f65e=program[_0x5d1443(0x266)](),_0x28f25f=await createTDXInstance(_0x13f65e),_0x1ddae1=await _0x3e1184[_0x5d1443(0x1cf)]({'options':{..._0x13f65e,..._0x374f19},'args':_0x3c4a97?[_0x3c4a97]:[],'tdx':_0x28f25f});gracefulExit(_0x1ddae1);}),journeyCmd[a2_0x36f7b6(0x2e7)]('columns\x20<name-or-path>')['description']('Show\x20journey\x20table\x20column-to-step\x20mapping')[a2_0x36f7b6(0x187)](async(_0x36757d,_0x375d85)=>{const _0x171062=new JourneyColumnsCommand(),_0x24fd7a=program['opts'](),_0x33a610=await createTDXInstance(_0x24fd7a),_0x486731=await _0x171062['run']({'options':{..._0x24fd7a,..._0x375d85},'args':[_0x36757d],'tdx':_0x33a610});gracefulExit(_0x486731);}),journeyCmd[a2_0x36f7b6(0x2e7)]('activations\x20<name-or-path>')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x343))[a2_0x36f7b6(0x187)](async(_0x44e14e,_0x91070f)=>{const _0x113305=a2_0x36f7b6,_0x36d7fb=new JourneyActivationsCommand(),_0xe69da1=program[_0x113305(0x266)](),_0x26d437=await createTDXInstance(_0xe69da1),_0x1bb094=await _0x36d7fb[_0x113305(0x1cf)]({'options':{..._0xe69da1,..._0x91070f},'args':[_0x44e14e],'tdx':_0x26d437});gracefulExit(_0x1bb094);}),journeyCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0xa7))['description'](a2_0x36f7b6(0x37f))[a2_0x36f7b6(0x187)](async(_0x4ebfae,_0x3654a9)=>{const _0x474065=a2_0x36f7b6,_0x4c7c65=new JourneyVersionsCommand(),_0x2f0a45=program[_0x474065(0x266)](),_0x482d30=await createTDXInstance(_0x2f0a45),_0x5b0dc1=await _0x4c7c65[_0x474065(0x1cf)]({'options':{..._0x2f0a45,..._0x3654a9},'args':[_0x4ebfae],'tdx':_0x482d30});gracefulExit(_0x5b0dc1);});const journeyVersionCmd=journeyCmd['command'](a2_0x36f7b6(0x2cc))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1ae));journeyVersionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x323))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x220))['action'](async(_0x3b1eac,_0x2ce3c5)=>{const _0x102c06=a2_0x36f7b6,_0x308c29=new JourneyVersionCreateCommand(),_0x514953=program['opts'](),_0x47194d=await createTDXInstance(_0x514953),_0x1ad0f1=await _0x308c29[_0x102c06(0x1cf)]({'options':{..._0x514953,..._0x2ce3c5},'args':[_0x3b1eac],'tdx':_0x47194d});gracefulExit(_0x1ad0f1);}),journeyVersionCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2ab))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x26c))['requiredOption'](a2_0x36f7b6(0xd7),a2_0x36f7b6(0x137))[a2_0x36f7b6(0x187)](async(_0x2ee818,_0x496024)=>{const _0x1bb09f=a2_0x36f7b6,_0x345e77=new JourneyVersionViewCommand(),_0x183197=program[_0x1bb09f(0x266)](),_0x3742c4=await createTDXInstance(_0x183197),_0x522021=await _0x345e77[_0x1bb09f(0x1cf)]({'options':{..._0x183197,..._0x496024},'args':[_0x2ee818],'tdx':_0x3742c4});gracefulExit(_0x522021);}),journeyCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x17d))['description'](a2_0x36f7b6(0x299))[a2_0x36f7b6(0x187)](async(_0x2b9800,_0x2773fc)=>{const _0xa201f3=a2_0x36f7b6,_0x51854c=new JourneyValidateCommand(),_0x27c187=program[_0xa201f3(0x266)](),_0x2121be=await createTDXInstance(_0x27c187),_0xbe5949=await _0x51854c[_0xa201f3(0x1cf)]({'options':{..._0x27c187,..._0x2773fc},'args':_0x2b9800?[_0x2b9800]:[],'tdx':_0x2121be});gracefulExit(_0xbe5949);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x287))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1c6))[a2_0x36f7b6(0x187)](journeyListAction);const agentSyncCmd=program[a2_0x36f7b6(0x2e7)]('agent')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1a8));agentSyncCmd['command'](a2_0x36f7b6(0x2e2))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x264))['option']('-o,\x20--output\x20<dir>','Output\x20directory')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x258),a2_0x36f7b6(0x33e))['option']('-a,\x20--agent\x20<name>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)')[a2_0x36f7b6(0x187)](async(_0x2401a7,_0x205494,_0x70ffb6)=>{const _0x42aa04=a2_0x36f7b6,_0x2b2ac8=new AgentPullCommand(),_0x4008e2=program[_0x42aa04(0x266)](),_0x4681be=await createTDXInstance(_0x4008e2),_0x1ddda2=[];if(_0x2401a7)_0x1ddda2['push'](_0x2401a7);if(_0x205494)_0x1ddda2[_0x42aa04(0x256)](_0x205494);const _0x1abfaa=await _0x2b2ac8[_0x42aa04(0x1cf)]({'options':{..._0x4008e2,..._0x70ffb6},'args':_0x1ddda2,'tdx':_0x4681be});gracefulExit(_0x1abfaa);}),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x27f))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x22f))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x258),a2_0x36f7b6(0x19a))[a2_0x36f7b6(0x187)](async(_0x42d329,_0x548c94)=>{const _0x2e8b87=a2_0x36f7b6,_0x9f9e1d=new AgentPushCommand(),_0x2f98c9=program[_0x2e8b87(0x266)](),_0x4b062d=await createTDXInstance(_0x2f98c9),_0x49b2fd=await _0x9f9e1d[_0x2e8b87(0x1cf)]({'options':{..._0x2f98c9,..._0x548c94},'args':_0x42d329?[_0x42d329]:[],'tdx':_0x4b062d});gracefulExit(_0x49b2fd);}),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x205))['description'](a2_0x36f7b6(0xde))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xee),a2_0x36f7b6(0x20a))[a2_0x36f7b6(0x187)](async(_0x4ab3a3,_0x23cbba)=>{const _0x24d87b=a2_0x36f7b6,_0x5e1fb9=new AgentCloneCommand(),_0xbed9da=program[_0x24d87b(0x266)](),_0x245c16=await createTDXInstance(_0xbed9da),_0x48ecdf=await _0x5e1fb9[_0x24d87b(0x1cf)]({'options':{..._0xbed9da,..._0x23cbba},'args':_0x4ab3a3?[_0x4ab3a3]:[],'tdx':_0x245c16});gracefulExit(_0x48ecdf);}),agentSyncCmd['command'](a2_0x36f7b6(0x190))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xba))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x245),a2_0x36f7b6(0x154))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x285),a2_0x36f7b6(0x2a6))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xb8),a2_0x36f7b6(0x32c))['option'](a2_0x36f7b6(0x1fe),a2_0x36f7b6(0x1a0))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x1ef),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x36f7b6(0x187)](async(_0x18293d,_0x2b0ed9)=>{const _0x50b7bd=a2_0x36f7b6,_0x1e67c7=new AgentTestCommand(),_0x1fc5a8=program[_0x50b7bd(0x266)](),_0x1ed513=await createTDXInstance(_0x1fc5a8),_0x91ea8e=await _0x1e67c7[_0x50b7bd(0x1cf)]({'options':{..._0x1fc5a8,..._0x2b0ed9},'args':_0x18293d?[_0x18293d]:[],'tdx':_0x1ed513});gracefulExit(_0x91ea8e);}),agentSyncCmd['command']('list\x20[pattern]')[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x372))[a2_0x36f7b6(0x187)](llmAgentListAction),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x2bc))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xb4))[a2_0x36f7b6(0x187)](async(_0x78c98b,_0x1c0d9b)=>{const _0xc2a1ad=a2_0x36f7b6,_0x472674=new LLMAgentShowCommand(),_0x5a0dcf=program[_0xc2a1ad(0x266)](),_0xc9e241=await createTDXInstance(_0x5a0dcf),_0x4218c1=await _0x472674[_0xc2a1ad(0x1cf)]({'options':{..._0x5a0dcf,..._0x1c0d9b},'args':[_0x78c98b],'tdx':_0xc9e241});gracefulExit(_0x4218c1);}),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x24c))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1a5))[a2_0x36f7b6(0x2a8)]('--system-prompt\x20<text>','System\x20prompt/instructions\x20(default:\x20empty)')['option']('--model\x20<name>',a2_0x36f7b6(0xbb),a2_0x36f7b6(0x170))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0xe8),'Starter\x20message')[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x37b),a2_0x36f7b6(0xa9),'4')[a2_0x36f7b6(0x2a8)]('--temperature\x20<n>',a2_0x36f7b6(0x24e),a2_0x36f7b6(0x173))[a2_0x36f7b6(0x187)](async(_0x2daf89,_0x54cc0c)=>{const _0x108627=a2_0x36f7b6,_0x440846=new LLMAgentCreateCommand(),_0x148302=program[_0x108627(0x266)](),_0x25ae2f=await createTDXInstance(_0x148302),_0x8fe28f=await _0x440846['run']({'options':{..._0x148302,..._0x54cc0c},'args':[_0x2daf89],'tdx':_0x25ae2f});gracefulExit(_0x8fe28f);}),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x13a))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0xd1))['option']('--name\x20<text>',a2_0x36f7b6(0x163))['option'](a2_0x36f7b6(0x349),a2_0x36f7b6(0x234))[a2_0x36f7b6(0x2a8)](a2_0x36f7b6(0x142),a2_0x36f7b6(0xf0))['option']('--starter-message\x20<text>',a2_0x36f7b6(0x1cb))['action'](async(_0x3ebea9,_0x500832)=>{const _0x2c5240=a2_0x36f7b6,_0x35d5a5=new LLMAgentUpdateCommand(),_0x57e36f=program[_0x2c5240(0x266)](),_0x360326=await createTDXInstance(_0x57e36f),_0x118c04=await _0x35d5a5[_0x2c5240(0x1cf)]({'options':{..._0x57e36f,..._0x500832},'args':[_0x3ebea9],'tdx':_0x360326});gracefulExit(_0x118c04);}),agentSyncCmd[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x242))[a2_0x36f7b6(0x2f3)](a2_0x36f7b6(0x1e9))[a2_0x36f7b6(0x187)](async(_0x5f3209,_0x1cd231)=>{const _0x150dc3=a2_0x36f7b6,_0x275070=new LLMAgentDeleteCommand(),_0x2a1432=program[_0x150dc3(0x266)](),_0x5d1b8a=await createTDXInstance(_0x2a1432),_0x3c3469=await _0x275070[_0x150dc3(0x1cf)]({'options':{..._0x2a1432,..._0x1cd231},'args':[_0x5f3209],'tdx':_0x5d1b8a});gracefulExit(_0x3c3469);}),program[a2_0x36f7b6(0x2e7)](a2_0x36f7b6(0x1aa),{'hidden':!![]})[a2_0x36f7b6(0x187)](()=>{const _0x445f08=a2_0x36f7b6;function _0x1d8d18(_0x257a07,_0x9a3dcf){const _0x54bc21=a2_0xe904,_0x5e9bd6=[];for(const _0x2ba539 of _0x257a07[_0x54bc21(0x1bb)]){if(_0x2ba539[_0x54bc21(0x1a6)])continue;const _0x442973=_0x9a3dcf?_0x9a3dcf+'\x20'+_0x2ba539[_0x54bc21(0x28c)]():_0x2ba539['name'](),_0x573820=_0x442973[_0x54bc21(0x374)]('\x20')[0x0],_0x3333b0=COMMAND_CATEGORIES[_0x54bc21(0x145)](_0xc465f5=>_0xc465f5['commands'][_0x54bc21(0x125)](_0x573820)),_0x5c1932=_0x3333b0?.[_0x54bc21(0x28c)]??'';if(_0x2ba539['commands'][_0x54bc21(0x33b)]>0x0)_0x5e9bd6['push'](..._0x1d8d18(_0x2ba539,_0x442973));else{const _0x45e80e=(_0x2ba539[_0x54bc21(0x21c)]||[])[_0x54bc21(0x18c)](_0x578d2a=>{const _0x1b157c=_0x54bc21,_0x30bb20=_0x578d2a[_0x1b157c(0x249)]?_0x578d2a['name']()+_0x1b157c(0x219):_0x578d2a[_0x1b157c(0x28c)]();return _0x578d2a[_0x1b157c(0x162)]?'<'+_0x30bb20+'>':'['+_0x30bb20+']';})[_0x54bc21(0x1eb)]('\x20'),_0x1cdc6e=_0x2ba539['options'][_0x54bc21(0x2f0)](_0x2157e7=>!_0x2157e7[_0x54bc21(0x371)]&&_0x2157e7['long']!=='--help')[_0x54bc21(0x18c)](_0x40a676=>({'flags':_0x40a676[_0x54bc21(0x1b5)],'description':_0x40a676['description']}));_0x5e9bd6['push']({'name':_0x442973,'description':_0x2ba539[_0x54bc21(0x2f3)](),'group':_0x5c1932,'usage':_0x45e80e,'options':_0x1cdc6e});}}return _0x5e9bd6;}console[_0x445f08(0xf9)](JSON[_0x445f08(0x12c)](_0x1d8d18(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x438085=a2_0x36f7b6,_0x19c0b2=!process[_0x438085(0xbe)]['slice'](0x2)[_0x438085(0x33b)];showBriefHelp=_0x19c0b2,program[_0x438085(0x260)](process[_0x438085(0xbe)]);_0x19c0b2&&program[_0x438085(0x12f)]();const _0x4bbe75=process[_0x438085(0xbe)][0x2]===_0x438085(0x106);if(process[_0x438085(0xc0)][_0x438085(0x257)]&&process[_0x438085(0xbe)][_0x438085(0x33b)]>0x2&&!isDevVersion()&&!_0x4bbe75){const _0x1890b8=loadReleaseChannel();checkForUpdate(currentVersion,_0x1890b8)['then'](_0x5868a5=>{_0x5868a5&&displayUpdateNotification(_0x5868a5);})[_0x438085(0x2a0)](()=>{});}}
1
+ const a2_0x1dd5bc=a2_0xa400;(function(_0x531d8b,_0x5c00c7){const _0x5941a7=a2_0xa400,_0x2267d1=_0x531d8b();while(!![]){try{const _0x18d520=-parseInt(_0x5941a7(0x3b7))/0x1+parseInt(_0x5941a7(0x434))/0x2+parseInt(_0x5941a7(0x489))/0x3*(parseInt(_0x5941a7(0x1cd))/0x4)+-parseInt(_0x5941a7(0x3d7))/0x5+-parseInt(_0x5941a7(0x2a7))/0x6+-parseInt(_0x5941a7(0x21c))/0x7+parseInt(_0x5941a7(0x1d7))/0x8;if(_0x18d520===_0x5c00c7)break;else _0x2267d1['push'](_0x2267d1['shift']());}catch(_0x16d001){_0x2267d1['push'](_0x2267d1['shift']());}}}(a2_0x1499,0xdfa48));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';function a2_0x1499(){const _0x41deca=['retry\x20<session-id>','--name\x20<names>','--help','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Segment\x20description','\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','Output\x20file\x20path','Set\x20or\x20show\x20parent\x20segment\x20context','Delete\x20a\x20workspace','Database\x20name','--session-time\x20<time>','versions\x20<name-or-path>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Email\x20subject\x20template','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--name\x20<new_name>','Output\x20directory','Overwrite\x20local\x20changes\x20without\x20confirmation','New\x20segment\x20name','pull\x20[project]\x20[agent-name]','view\x20[segment_name]','--include-stats','push','Skip\x20validation\x20of\x20.dig\x20files','--limit\x20<number>','Duplicate\x20a\x20campaign','0.7','--json','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','run\x20[workflow]','Remove\x20a\x20profile','show\x20<name>','YAML\x20file\x20path\x20for\x20unpushed\x20segment','Show\x20email\x20template\x20details','--system-prompt\x20<text>','kill\x20<job-id>','Run\x20Trino\x20query\x20with\x20streaming\x20results','show\x20[name]','--type\x20<type>','\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','--name\x20<text>','Delete\x20a\x20scheduled\x20query','TRACE','pull\x20<project>\x20[target-dir]','--limit\x20<rows>','run\x20[name]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','describe','projects\x20[pattern]','log\x20<chat-id>','information_schema','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','2790172YSeTga','--behavior\x20[name]','Show\x20stats\x20for\x20specific\x20stage','aliases','Change\x20to\x20directory\x20before\x20executing\x20command','buildTime','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','[DEPRECATED]\x20Segment\x20folder\x20management','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','-r,\x20--recursive','Pull\x20child\x20segments\x20to\x20YAML\x20files','create\x20<parent_name>\x20<folder_name>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Customer\x20group\x20as\x20JSON\x20string','--dry-run','Show\x20only\x20master\x20table\x20validation','--in\x20<database>','--tags\x20<tags>','--num\x20<1-10>','parents\x20[pattern]','Clear\x20workflow\x20project\x20context','-o,\x20--output\x20<folder>','--add-attributes-file\x20<file>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20agents\x20in\x20current\x20project','--behaviors-file\x20<file>','Show\x20all\x20files\x20including\x20valid\x20ones','action','pull\x20[workspace]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','claude\x20[args...]','-d,\x20--database\x20<database>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Duplicate\x20an\x20always-on\x20campaign','Open\x20segment\x20in\x20web\x20browser','Validate\x20template\x20YAML\x20files\x20locally','Show\x20journey\x20statistics','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Launch\x20an\x20always-on\x20campaign','--result\x20<url>','use\x20[name]','status','--in\x20<db>','argumentTerm','always-on-campaign','commandDescription','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Create\x20a\x20new\x20campaign','--color','push\x20[target]','--engine-version\x20<version>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--plaintext\x20<text>','Finish\x20an\x20always-on\x20campaign','Table\x20management\x20commands','upload\x20[project-name-or-dir]','pull\x20[name]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--debug','Pause\x20a\x20running\x20journey','--add-attributes\x20<json>','Show\x20workspace\x20details','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Delete\x20an\x20email\x20template','-f,\x20--force','tdx\x20','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','\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','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','list\x20[pattern]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','list','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Show\x20timeline\x20for\x20specific\x20attempt','Maximum\x20recursion\x20depth\x20(default:\x2010)','Directory\x20does\x20not\x20exist:\x20','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Create\x20a\x20new\x20always-on\x20campaign','\x20(resolved\x20to\x20','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','login','\x20-\x20built\x20','padEnd','225LaiLMM','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Show\x20a\x20specific\x20policy\x20details\x20and\x20permissions\x20(admin\x20only)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Launch\x20a\x20campaign','INVALID_ARGUMENT','Ending\x20offset\x20(default:\x2020)','-u,\x20--use','--prompt\x20<text>','-f,\x20--file\x20<path>','list\x20[project]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Limit\x20number\x20of\x20rows','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Update\x20a\x20campaign','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--cron\x20<expression>','Invalid\x20--limit\x20value:\x20\x22','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Create\x20an\x20email\x20template','Project\x20description','create\x20<name>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--status\x20<status>','New\x20template\x20name','--enable-utm-tracking','--subject\x20<subject>','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','5856VxCCUf','--reason\x20<text>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Unknown\x20action:\x20','Email\x20template\x20management','template','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--no-proxy','claude-4.5-sonnet','--full','29765048XiHsCh','templates\x20[pattern]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Output\x20as\x20JSON','-d,\x20--database\x20<db>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','List\x20email\x20senders','Workspace\x20description','validate\x20[name]','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','List\x20available\x20connector\x20types','name','history\x20[chat-id]','error','Update\x20an\x20always-on\x20campaign','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Output\x20as\x20JSON\x20Lines','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','preview\x20[file]','View\x20a\x20specific\x20version\x20of\x20a\x20journey','gitRevision','delete\x20<project-name-or-id>','Skip\x20population\x20counting','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Get\x20job\x20results','sessions\x20[project]','Add\x20attributes\x20as\x20JSON\x20string','List\x20activations\x20for\x20a\x20journey','logs','--database\x20<name>','--kind\x20<type>','format','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','jobs','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Customer\x20group\x20from\x20JSON\x20file','--clear','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Authentication\x20management','--output\x20<file>','profile','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','option','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Workspace\x20name','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','isTTY','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','-y,\x20--yes','Enable\x20UTM\x20tracking','injectIntoOptions','Access\x20control\x20policy\x20commands','journey','senders\x20[pattern]','then','Usage:\x20','Trino\x20catalog\x20(default:\x20td)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--interval\x20<range>','policy','--html\x20<html>','--delay\x20<seconds>','8770538XxGjGF','Reason\x20for\x20killing\x20the\x20attempt','Include\x20execution\x20statistics','chdir','Skip\x20confirmation\x20prompt','Delay\x20in\x20seconds\x20before\x20execution','Show\x20master\x20table\x20sample\x20data','trino','--schedule-type\x20<type>','Preview\x20operation\x20without\x20executing','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Save\x20output\x20to\x20file','use\x20<path>','show\x20<agent-name>','Include\x20retried\x20attempts\x20(for\x20list)','optionTerm','--include-retried','Agent\x20description','summary','List\x20all\x20policies\x20in\x20the\x20account\x20(admin\x20only)','Starting\x20offset\x20(default:\x200)','list\x20[path]','--limit\x20<n>','--default','--parent-segment\x20<name>','forEach','sql\x20[segment_name]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Manage\x20workflow\x20project\x20secrets','[task-name]','System\x20prompt/instructions\x20(default:\x20empty)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Workspace\x20name\x20(required)','Enable\x20verbose\x20logging','database','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','subcommandTerm','argumentDescription','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','repeat','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','parent-segment','Show\x20job\x20details','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','create','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Path\x20is\x20not\x20a\x20directory:\x20','-n,\x20--name\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Custom\x20revision\x20name\x20(default:\x20timestamp)','New\x20campaign\x20name','Follow/watch\x20timeline\x20for\x20running\x20attempts','Commands:','--folder\x20<name>','--time\x20<iso8601>','--params\x20<json>','Resume\x20a\x20paused\x20always-on\x20campaign','Timezone\x20for\x20cron\x20(default:\x20UTC)','[action]','--result\x20<target>','session','update\x20<name>','campaigns\x20[pattern]','models','Override\x20project\x20name','activations\x20<name-or-path>','addHelpText','--catalog\x20<catalog>','--html-file\x20<path>','test\x20[path]','Show\x20journey\x20table\x20column-to-step\x20mapping','--rule-file\x20<file>','allowUnknownOption','join','padWidth','--email-sender-id\x20<id>','Result\x20output\x20destination\x20URL','trace','Journey\x20version\x20management','isDirectory','Job\x20management\x20commands','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Always-on\x20campaign\x20management','--from-task\x20<task>','--workspace\x20<name>','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Create\x20a\x20new\x20profile','--priority\x20<-2~2>','Show\x20schedule\x20details','jsonl','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--starter-message\x20<text>','--enriched','Continue\x20most\x20recent\x20conversation','mcp','Options:','set\x20<key=value>','--customer-group-file\x20<file>','download\x20<project-name>\x20[output-dir]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Invalid\x20editor\x20type:\x20','\x22.\x20Must\x20be\x20a\x20number.','command','json','set\x20<args...>','after','variadic','slice','parse','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Resume\x20a\x20paused\x20journey','Show\x20segment\x20details\x20(alias\x20for\x20view)','Updated\x20timezone','clear','--description\x20<text>','\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','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Delete\x20a\x20campaign','show\x20<name-or-id>','length','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','-X,\x20--method\x20<method>','Resume\x20a\x20paused\x20campaign','Show\x20connection\x20details\x20by\x20name','Push\x20without\x20confirmation','Job\x20priority\x20(-2\x20to\x202)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','_hidden','argument','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','kill','Show\x20agent\x20details','--chat-id\x20<id>','beefree','-H,\x20--header\x20<header>','Start\x20a\x20new\x20chat\x20session','9852600jersgl','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Query\x20engine\x20version','Generate\x20test\x20conversations\x20without\x20evaluation','subcommandDescription','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','-c,\x20--continue','List\x20all\x20versions\x20of\x20a\x20journey','LLM\x20project\x20to\x20use\x20(overrides\x20context)',',\x20version\x20','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','workspaces\x20[pattern]','Campaign\x20name','--from\x20<timestamp>','--to\x20<date>','Attempt\x20ID','Filtering\x20rule\x20as\x20JSON\x20string','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','update\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','agents\x20[pattern]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Workspace\x20management','use\x20<project-name>','--tsv','attempts\x20[project]','view\x20[name]','registeredArguments','map','requiredOption','Filtering\x20rule\x20from\x20JSON\x20file','delete\x20<name-or-id>','Workflow\x20parameter\x20(repeatable)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Data\x20connection\x20management\x20(for\x20activations/exports)','chat\x20[message...]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','options','commandUsage','Database\x20to\x20query\x20(default:\x20information_schema)','show\x20<job-id>','show\x20<folder_ref>','--no-count-population','tasks','backup\x20<name>','createAsync','tdx','--from\x20<date>','Workflow\x20attempt\x20management','New\x20workspace\x20name','--segment\x20<path>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Submit\x20a\x20job','Retry\x20limit\x20(0\x20to\x2032)','Pull\x20specific\x20campaign\x20by\x20name','-o,\x20--output\x20<dir>','tsv','Master\x20database\x20name','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Workflow\x20project\x20management','--version','create\x20<name-or-path>','Show\x20segment\x20schema\x20(column\x20types)','Personalization\x20service\x20management','Create\x20segment\x20folder','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Arguments:','Campaign\x20description','Update\x20an\x20existing\x20agent','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','logLevel','--rule\x20<json>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','flags','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Set\x20operation\x20timeout\x20in\x20seconds','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','_list-commands','List\x20all\x20users\x20in\x20the\x20account','Query\x20type:\x20trino\x20or\x20hive','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','duplicate\x20<name-or-id>','--reeval','End\x20time\x20filter\x20(ISO\x208601\x20format)','create\x20<segment_name>','workflow','Update\x20an\x20email\x20template','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','connection','-1d','--behaviors\x20<json>','--temperature\x20<n>','validate\x20[target]','INFO','Include\x20raw\x20history\x20data\x20in\x20output','Starter\x20message','--from\x20<n>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','settings\x20<type>','apiKey','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','catch','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','User\x20management\x20commands','resume\x20<name-or-path>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','directory','Delete\x20an\x20LLM\x20project','job','\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','Pull\x20specific\x20revision\x20(default:\x20latest)','pull\x20[workspace-name]','Maximum\x20tool\x20iterations\x20(default:\x204)','Set\x20a\x20profile\x20configuration\x20value','Open\x20journey\x20in\x20web\x20browser','-o,\x20--output\x20<file>','Validate\x20journey\x20YAML\x20files\x20locally','-v,\x20--verbose','Show\x20authentication\x20status\x20and\x20current\x20context','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','use\x20[project]','get','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','[attempt-id]','segments\x20[path]','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--no-eval','-w,\x20--web','--timeout\x20<seconds>','timeline\x20[project.workflow]','--attribute\x20[name]','run','Read\x20query\x20from\x20file','list\x20[name]','schema\x20<type>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','validate\x20[file]','table','--verbose','List\x20jobs','--database\x20<db>','Timezone\x20(e.g.,\x20America/Los_Angeles)','fields\x20[name]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','--skip-validation','preview\x20[name]','Update\x20a\x20workspace','Remove\x20API\x20key\x20from\x20system\x20keychain','outputHelp','includes','--name\x20<new-name>','Read\x20request\x20body\x20from\x20file','--description\x20<desc>','Behaviors\x20as\x20JSON\x20string','HTML\x20template\x20content','noColor','argv','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--invisible','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','[EXPERIMENTAL]\x20Show\x20chat\x20log','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','List\x20all\x20available\x20profiles','engage_workspace','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','view\x20<name-or-path>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','chats','--yes','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Database\x20management\x20commands','push\x20[source-dir]','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Open\x20parent\x20segment\x20in\x20web\x20browser','Updated\x20schedule\x20option','Preview\x20without\x20creating\x20the\x20project','hook','--method\x20<pm>','Run\x20a\x20scheduled\x20query\x20immediately','Update\x20a\x20scheduled\x20query','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','databases\x20[pattern]','journeys\x20[pattern]','Resume\x20from\x20specific\x20task\x20(retry)','pause\x20<name-or-path>','--revision\x20<revision>','Move\x20to\x20folder','--path\x20<file-path>','push\x20[parent_or_file]','project','configureHelp','delivery','--to\x20<n>','filter','allowExcessArguments','Create\x20a\x20new\x20agent\x20in\x20current\x20project','--retry-limit\x20<0~32>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--data\x20<data>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Show\x20always-on\x20campaign\x20details','activations\x20<segment_name>','tables\x20[pattern]','--llm-project\x20<name>','Attributes\x20from\x20JSON\x20file','finish\x20<name-or-id>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Read\x20HTML\x20template\x20from\x20file','show\x20<policy>','push\x20[name]','set','Run\x20tests\x20for\x20an\x20LLM\x20agent','AI-native\x20CLI\x20for\x20Treasure\x20Data','-C,\x20--directory\x20<path>','describe\x20[table]','description','opts','delete\x20<name>','help','Timezone\x20for\x20cron','upgrade\x20[version]','--editor-type\x20<type>','resume\x20<name-or-id>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','history\x20<name>','--start-at\x20<datetime>','alias','--parent-folder\x20<name>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Preview\x20changes\x20without\x20pushing','Pause\x20a\x20campaign','unset\x20<resource>','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','RT\x202.0\x20configuration\x20management','launch\x20<name-or-id>','Parent\x20segment\x20management','schedule','parent_segment','Task\x20name\x20for\x20logs\x20action','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','profiles','accessToken','Campaign\x20management','Output\x20folder\x20(default:\x20{project_name}.llm)','desc\x20[name]','--master','Pull\x20campaigns\x20to\x20YAML\x20files','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--table','--attributes-file\x20<file>','pause\x20<name-or-id>','usage','--last','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','find','--table\x20<table>','update\x20<segment_name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','agent','1051528BWOgJZ','--trace','stringify','--attempt-id\x20<id>','segment','--max-depth\x20<depth>','Interactive\x20chat\x20selector','desc\x20[segment_name]','--json-columns\x20<cols>','exit','Pull\x20templates\x20to\x20YAML\x20files','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Include\x20retried\x20attempts','submit\x20[query]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','List\x20available\x20LLM\x20models','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Revision\x20name\x20(default:\x20timestamp)','Run\x20specific\x20tests\x20(comma-separated)','--to\x20<timestamp>','--no-color','log','Include\x20subtasks\x20in\x20tasks\x20output','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--jsonl','\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','--include-history','delete\x20<args...>','required','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','stats\x20<name-or-path>','1814575ICaJfe','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','always-on-campaigns\x20[pattern]','--timezone\x20<tz>','Agent\x20name','-a,\x20--agent\x20<name>','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Workflow\x20(Digdag)\x20management\x20commands','debug','Cron\x20expression\x20for\x20scheduling','stderr','statusline','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','commands','Email\x20sender\x20ID\x20for\x20delivery','Show\x20the\x20most\x20recent\x20chat','--name\x20<name>','version','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','optionDescription','init\x20[name]','Clear\x20session\x20context','Campaign\x20type\x20(email\x20or\x20push)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Updated\x20description','show\x20[segment_name]','--new','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','fields\x20[parent_name]','Scheduled\x20query\x20management\x20commands','use\x20<name>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--next','Name\x20for\x20the\x20duplicated\x20campaign','push\x20[path]','restore\x20<folder>','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','List\x20secret\x20keys\x20for\x20a\x20project','Plaintext\x20template\x20content','attempt'];a2_0x1499=function(){return _0x41deca;};return a2_0x1499();}import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{AuthLoginCommand}from'./commands/auth-login-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{PolicyCommand,PolicyListCommand,PolicyShowCommand}from'./commands/policy-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x1dd5bc(0x349)][a2_0x1dd5bc(0x342)](a2_0x1dd5bc(0x2e5))){let versionOutput=a2_0x1dd5bc(0x477)+currentVersion;buildInfo[a2_0x1dd5bc(0x1ee)]&&!currentVersion[a2_0x1dd5bc(0x342)](buildInfo[a2_0x1dd5bc(0x1ee)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x1dd5bc(0x439)]&&(versionOutput+=a2_0x1dd5bc(0x487)+buildInfo[a2_0x1dd5bc(0x439)]),console['log'](versionOutput),process[a2_0x1dd5bc(0x3c0)](0x0);}const program=new Command();export function mergeCommandOptions(_0x30fe1e,_0x55a5fe){const _0x4925a0={..._0x30fe1e};for(const [_0x23ce3d,_0x44a7aa]of Object['entries'](_0x55a5fe)){_0x44a7aa!==undefined&&(_0x4925a0[_0x23ce3d]=_0x44a7aa);}return _0x4925a0;}let showBriefHelp=![],description=a2_0x1dd5bc(0x385);buildInfo['gitRevision']&&!currentVersion[a2_0x1dd5bc(0x342)](buildInfo[a2_0x1dd5bc(0x1ee)])?description+=a2_0x1dd5bc(0x2b1)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x1dd5bc(0x2b1)+currentVersion;program[a2_0x1dd5bc(0x1e4)](a2_0x1dd5bc(0x2d6))['description'](description),program[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x386),a2_0x1dd5bc(0x438))[a2_0x1dd5bc(0x207)]('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')['option']('--site\x20<site>',a2_0x1dd5bc(0x200),'us01')[a2_0x1dd5bc(0x207)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3aa),a2_0x1dd5bc(0x33a))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x20a))['option'](a2_0x1dd5bc(0x3d0),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2c0),a2_0x1dd5bc(0x3cf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x203),a2_0x1dd5bc(0x227))[a2_0x1dd5bc(0x207)]('--limit\x20<number>',a2_0x1dd5bc(0x3c8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x466),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])['option'](a2_0x1dd5bc(0x3cc),a2_0x1dd5bc(0x43d),![])[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x320),a2_0x1dd5bc(0x23d),![])['option'](a2_0x1dd5bc(0x470),a2_0x1dd5bc(0x377))['option'](a2_0x1dd5bc(0x3b8),a2_0x1dd5bc(0x29d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32b),a2_0x1dd5bc(0x2f4),'30')[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x225),![])['option'](a2_0x1dd5bc(0x20e),'Skip\x20confirmation\x20prompts',![])['option']('--session\x20<id>',a2_0x1dd5bc(0x325))['option'](a2_0x1dd5bc(0x234),a2_0x1dd5bc(0x2cc))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x37c),a2_0x1dd5bc(0x2b0)),program[a2_0x1dd5bc(0x36d)]({'formatHelp':(_0xe42ddd,_0x2dddd6)=>{const _0x3e19dd=a2_0x1dd5bc,_0x4e7cbf=_0x2dddd6[_0x3e19dd(0x267)](_0xe42ddd,_0x2dddd6),_0x5d2201=0x2,_0x367765=0x2;function _0x4aaa79(_0xd6662b){const _0x26e2a2=_0x3e19dd,_0x40ac06=_0xd6662b;return!!(_0x40ac06[_0x26e2a2(0x29e)]||_0x40ac06['hidden']);}function _0x30c971(_0xe8b6cb,_0x3b77e4){const _0xee3005=_0x3e19dd;if(_0x3b77e4){const _0x12c676=''+_0xe8b6cb[_0xee3005(0x488)](_0x4e7cbf+_0x367765)+_0x3b77e4;return _0x12c676;}return _0xe8b6cb;}function _0x503f30(_0x52cc1f){const _0x2dd2cd=_0x3e19dd;return _0x52cc1f[_0x2dd2cd(0x266)]('\x0a')['replace'](/^/gm,'\x20'[_0x2dd2cd(0x244)](_0x5d2201));}const _0x126f67=[];_0x126f67[_0x3e19dd(0x416)](_0x3e19dd(0x215)+_0x2dddd6[_0x3e19dd(0x2ce)](_0xe42ddd));const _0x18d64f=_0x2dddd6[_0x3e19dd(0x463)](_0xe42ddd);_0x18d64f&&(_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)](_0x18d64f));const _0x4f3e84=_0xe42ddd[_0x3e19dd(0x3e5)][_0x3e19dd(0x370)](_0x8e339e=>!_0x4aaa79(_0x8e339e));if(_0x4f3e84[_0x3e19dd(0x295)]>0x0){if(_0xe42ddd['name']()===_0x3e19dd(0x2d6)){const _0x1693a0=_0xe42ddd[_0x3e19dd(0x389)](),_0x29ef03=!_0x1693a0[_0x3e19dd(0x348)]&&process['stdout'][_0x3e19dd(0x20c)],_0x54270c=COMMAND_CATEGORIES,_0x1306de=(_0x46d2d9,_0x18e56e)=>_0x29ef03?_0x18e56e(_0x46d2d9):_0x46d2d9,_0x4d86f7=new Map();_0x4f3e84[_0x3e19dd(0x235)](_0x5a1ed3=>{const _0x131ba4=_0x3e19dd;_0x4d86f7[_0x131ba4(0x383)](_0x5a1ed3[_0x131ba4(0x1e4)](),_0x5a1ed3);}),_0x54270c[_0x3e19dd(0x235)](_0x3b7b7d=>{const _0x230d8c=_0x3e19dd,_0x3a98f9=_0x3b7b7d[_0x230d8c(0x3e5)]['flatMap'](_0x5487ab=>_0x4d86f7[_0x230d8c(0x324)](_0x5487ab)??[]);if(_0x3a98f9['length']>0x0){_0x126f67[_0x230d8c(0x416)](''),_0x126f67[_0x230d8c(0x416)](_0x1306de(_0x3b7b7d[_0x230d8c(0x1e4)]+':',_0x3b7b7d['colorFn']));const _0x510bdc=_0x3a98f9[_0x230d8c(0x2c4)](_0x6f0863=>{const _0x9bc5eb=_0x230d8c,_0x4a6764=_0x2dddd6[_0x9bc5eb(0x240)](_0x6f0863),_0x241162=_0x2dddd6[_0x9bc5eb(0x2ab)](_0x6f0863);return _0x30c971(_0x4a6764,_0x241162);});_0x126f67['push'](_0x503f30(_0x510bdc));}}),_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)](_0x3e19dd(0x1e8));}else{const _0x3bc0b9=_0x4f3e84[_0x3e19dd(0x2c4)](_0x26f92a=>{const _0x132160=_0x3e19dd,_0x288584=_0x2dddd6['subcommandTerm'](_0x26f92a),_0x3c01c0=_0x2dddd6[_0x132160(0x2ab)](_0x26f92a);return _0x30c971(_0x288584,_0x3c01c0);});_0x126f67['push'](''),_0x126f67['push'](_0x3e19dd(0x251)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x3bc0b9));}}if(showBriefHelp&&_0xe42ddd[_0x3e19dd(0x1e4)]()===_0x3e19dd(0x2d6))_0x126f67[_0x3e19dd(0x416)](''),_0x126f67[_0x3e19dd(0x416)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x39efa6=_0xe42ddd['options'][_0x3e19dd(0x370)](_0x34cb0f=>!_0x4aaa79(_0x34cb0f));if(_0x39efa6[_0x3e19dd(0x295)]>0x0){const _0x38fca4=_0x39efa6[_0x3e19dd(0x2c4)](_0x373634=>{const _0x4a64a9=_0x3e19dd,_0x20cba7=_0x2dddd6[_0x4a64a9(0x22b)](_0x373634),_0x3e9f09=_0x2dddd6[_0x4a64a9(0x3eb)](_0x373634);return _0x30c971(_0x20cba7,_0x3e9f09);});_0x126f67[_0x3e19dd(0x416)](''),_0x126f67['push'](_0x3e19dd(0x27d)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x38fca4));}}const _0x24bc6d=(_0xe42ddd[_0x3e19dd(0x2c3)]||[])[_0x3e19dd(0x370)](_0xa57ff2=>!_0x4aaa79(_0xa57ff2));if(_0x24bc6d['length']>0x0){const _0x225f0a=_0x24bc6d[_0x3e19dd(0x2c4)](_0x44e111=>{const _0x2f7ae7=_0x3e19dd,_0x6575b8=_0x2dddd6[_0x2f7ae7(0x461)](_0x44e111),_0x4dab3f=_0x2dddd6[_0x2f7ae7(0x241)](_0x44e111);return _0x30c971(_0x6575b8,_0x4dab3f);});_0x126f67[_0x3e19dd(0x416)](''),_0x126f67['push'](_0x3e19dd(0x2eb)),_0x126f67[_0x3e19dd(0x416)](_0x503f30(_0x225f0a));}return _0x126f67[_0x3e19dd(0x266)]('\x0a')+'\x0a';},'subcommandTerm':_0x5c8b45=>{const _0x2fac55=a2_0x1dd5bc,_0x1703ab=(_0x5c8b45[_0x2fac55(0x2c3)]||[])[_0x2fac55(0x2c4)](_0x1026e3=>_0x1026e3[_0x2fac55(0x3d4)]?'<'+_0x1026e3[_0x2fac55(0x1e4)]()+'>':'['+_0x1026e3[_0x2fac55(0x1e4)]()+']')[_0x2fac55(0x266)]('\x20'),_0x138d20=_0x5c8b45[_0x2fac55(0x437)](),_0x5ec7fb=_0x138d20['length']>0x0?_0x5c8b45['name']()+',\x20'+_0x138d20[_0x2fac55(0x266)](',\x20'):_0x5c8b45['name']();return _0x1703ab?_0x5ec7fb+'\x20'+_0x1703ab:_0x5ec7fb;}}),program[a2_0x1dd5bc(0x35e)]('preAction',_0x510c79=>{const _0xdff6dc=a2_0x1dd5bc,_0x132287=_0x510c79[_0xdff6dc(0x389)]();if(_0x132287[_0xdff6dc(0x315)]){const _0x59d6a9=resolve(_0x132287['directory']),_0x129f9f=_0x59d6a9!==_0x132287[_0xdff6dc(0x315)]?_0xdff6dc(0x484)+_0x59d6a9+')':'';if(!existsSync(_0x59d6a9))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdff6dc(0x481)+_0x132287[_0xdff6dc(0x315)]+_0x129f9f,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x33f08e=statSync(_0x59d6a9);if(!_0x33f08e[_0xdff6dc(0x26c)]())throw new SDKError(ErrorCode[_0xdff6dc(0x1b6)],_0xdff6dc(0x24b)+_0x132287[_0xdff6dc(0x315)]+_0x129f9f,undefined,{'helpText':_0xdff6dc(0x2c9)});process[_0xdff6dc(0x21f)](_0x59d6a9);}if(!_0x132287['format']){if(_0x132287[_0xdff6dc(0x334)])_0x132287['format']=_0xdff6dc(0x334);else{if(_0x132287['json'])_0x132287['format']=_0xdff6dc(0x285);else{if(_0x132287['jsonl'])_0x132287[_0xdff6dc(0x1f9)]=_0xdff6dc(0x276);else _0x132287['tsv']&&(_0x132287['format']=_0xdff6dc(0x2e0));}}}if(_0x132287[_0xdff6dc(0x26a)])_0x132287['logLevel']=LogLevel[_0xdff6dc(0x42a)];else{if(_0x132287[_0xdff6dc(0x3df)])_0x132287[_0xdff6dc(0x2ef)]=LogLevel['DEBUG'];else _0x132287[_0xdff6dc(0x2ef)]===undefined&&(_0x132287[_0xdff6dc(0x2ef)]=LogLevel[_0xdff6dc(0x306)]);}});async function createTDXInstance(_0x1f28d0){const _0x35246d=a2_0x1dd5bc,_0x57f386=await GlobalContext[_0x35246d(0x2d5)](_0x1f28d0);return _0x57f386[_0x35246d(0x210)](_0x1f28d0),TDX[_0x35246d(0x249)]({'site':_0x57f386['site'],'apiKey':_0x57f386[_0x35246d(0x30d)],'accessToken':_0x57f386[_0x35246d(0x3a3)],'logLevel':_0x57f386[_0x35246d(0x2ef)],'profile':_0x57f386[_0x35246d(0x204)]});}const databaseCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x23e))[a2_0x1dd5bc(0x393)]('db')['description'](a2_0x1dd5bc(0x358)),databaseListAction=async(_0x4086e9,_0x51a447)=>{const _0x283d16=a2_0x1dd5bc,_0xee96cb=new DatabasesCommand(),_0x44749e=program[_0x283d16(0x389)](),_0x398b91=await createTDXInstance(_0x44749e),_0x168390=await _0xee96cb[_0x283d16(0x32e)]({'options':{..._0x44749e,..._0x51a447},'args':_0x4086e9?[_0x4086e9]:[],'tdx':_0x398b91});gracefulExit(_0x168390);};databaseCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x29c))[a2_0x1dd5bc(0x450)](databaseListAction),program['command'](a2_0x1dd5bc(0x364),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x362))[a2_0x1dd5bc(0x450)](databaseListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2cb))['description']('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x1dd5bc(0x207)]('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3f2),a2_0x1dd5bc(0x2a6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2a3),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x1dd5bc(0x207)]('--stream',a2_0x1dd5bc(0x3fc))[a2_0x1dd5bc(0x450)](async(_0xed7bfd,_0x3f2f8f)=>{const _0x1e8e18=a2_0x1dd5bc,_0x1d07ac=program[_0x1e8e18(0x389)](),_0x295358=await createTDXInstance(_0x1d07ac);if(_0xed7bfd[0x0]==='create'){const _0x4e9e58=new ChatCreateCommand();gracefulExit(await _0x4e9e58[_0x1e8e18(0x32e)]({'options':{..._0x1d07ac,..._0x3f2f8f},'args':_0xed7bfd[_0x1e8e18(0x289)](0x1),'tdx':_0x295358}));return;}const _0x445901=new ChatCommand(),_0x2c9615=await _0x445901[_0x1e8e18(0x32e)]({'options':{..._0x1d07ac,..._0x3f2f8f},'args':_0xed7bfd,'tdx':_0x295358});gracefulExit(_0x2c9615);});const apiCmd=program[a2_0x1dd5bc(0x284)]('api\x20[endpoint]')[a2_0x1dd5bc(0x22e)](a2_0x1dd5bc(0x395))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x3d1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x297),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x1dd5bc(0x376),'Request\x20body\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),a2_0x1dd5bc(0x344))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2a5),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x124fd6,_0xf15158)=>{return _0xf15158?[..._0xf15158,_0x124fd6]:[_0x124fd6];})[a2_0x1dd5bc(0x207)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x3a42d7,_0xf057b9)=>{if(!_0x3a42d7){apiCmd['help']();return;}const _0x4ff6c0=new ApiCommand(),_0x4646d3=program['opts'](),_0x51f81b=await createTDXInstance(_0x4646d3),_0x14a5fd=await _0x4ff6c0['run']({'options':{..._0x4646d3,..._0xf057b9},'args':[_0x3a42d7],'tdx':_0x51f81b});gracefulExit(_0x14a5fd);});program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x27c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x39a))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x277))['action'](async _0x16898d=>{const _0x6ca99d=a2_0x1dd5bc,_0x375412=new MCPCommand(),_0x45af0e=program['opts'](),_0x4b6c8f=await createTDXInstance(_0x45af0e),_0x6df5f6=await _0x375412[_0x6ca99d(0x32e)]({'options':{..._0x45af0e,..._0x16898d},'args':[],'tdx':_0x4b6c8f});gracefulExit(_0x6df5f6);});const tableCmd=program[a2_0x1dd5bc(0x284)]('table')['description'](a2_0x1dd5bc(0x46c)),tableListAction=async(_0x11c7ae,_0x328a08)=>{const _0x5a8c60=a2_0x1dd5bc,_0x572d45=new TablesCommand(),_0x20c8ca=program[_0x5a8c60(0x389)](),_0x225388=await createTDXInstance(_0x20c8ca);_0x328a08['in']&&(_0x328a08[_0x5a8c60(0x23e)]=_0x328a08['in']);const _0x4c7b80=await _0x572d45['run']({'options':{..._0x20c8ca,..._0x328a08},'args':_0x11c7ae?[_0x11c7ae]:[],'tdx':_0x225388});gracefulExit(_0x4c7b80);};tableCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1da))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))['action'](tableListAction),program['command'](a2_0x1dd5bc(0x37b),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x351))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))['action'](tableListAction),program['command']('show\x20[table]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ad))['option'](a2_0x1dd5bc(0x454),a2_0x1dd5bc(0x314))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x445),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x3f0529,_0x13bb80)=>{const _0x13d15a=a2_0x1dd5bc,_0x3145c1=new ShowCommand(),_0xb2199c=program['opts'](),_0x400953=await createTDXInstance(_0xb2199c);_0x13bb80['in']&&(_0x13bb80[_0x13d15a(0x23e)]=_0x13bb80['in']);const _0x260184=await _0x3145c1[_0x13d15a(0x32e)]({'options':{..._0xb2199c,..._0x13bb80},'args':_0x3f0529?[_0x3f0529]:[],'tdx':_0x400953});gracefulExit(_0x260184);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x387))['alias']('desc')[a2_0x1dd5bc(0x388)]('Describe\x20table\x20schema')[a2_0x1dd5bc(0x207)]('-d,\x20--database\x20<database>',a2_0x1dd5bc(0x314))[a2_0x1dd5bc(0x207)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1dd5bc(0x450)](async(_0x32e58f,_0x355b55)=>{const _0x345054=a2_0x1dd5bc,_0x449de3=new DescribeCommand(),_0x2ecef9=program[_0x345054(0x389)](),_0x2e6917=await createTDXInstance(_0x2ecef9);_0x355b55['in']&&(_0x355b55[_0x345054(0x23e)]=_0x355b55['in']);const _0x3db7c1=await _0x449de3[_0x345054(0x32e)]({'options':{..._0x2ecef9,..._0x355b55},'args':_0x32e58f?[_0x32e58f]:[],'tdx':_0x2e6917});gracefulExit(_0x3db7c1);}),program[a2_0x1dd5bc(0x284)]('query\x20[sql]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x424))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x454),a2_0x1dd5bc(0x2cf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x445),a2_0x1dd5bc(0x464))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x260),a2_0x1dd5bc(0x216))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),'Read\x20SQL\x20query\x20from\x20file')['option'](a2_0x1dd5bc(0x42c),'Maximum\x20rows\x20to\x20display')[a2_0x1dd5bc(0x450)](async(_0x3da22b,_0x3d66d8)=>{const _0x2eb9a3=a2_0x1dd5bc,_0xd439af=new QueryCommand(),_0x35e9e1=program['opts'](),_0x44dff7=await createTDXInstance(_0x35e9e1);_0x3d66d8['in']&&(_0x3d66d8[_0x2eb9a3(0x23e)]=_0x3d66d8['in']);const _0x40ea89=await _0xd439af[_0x2eb9a3(0x32e)]({'options':mergeCommandOptions(_0x35e9e1,_0x3d66d8),'args':_0x3da22b?[_0x3da22b]:[],'tdx':_0x44dff7});gracefulExit(_0x40ea89);});const segmentCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3bb))[a2_0x1dd5bc(0x393)]('sg')[a2_0x1dd5bc(0x388)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x17411d,_0x1bdfa3)=>{const _0x1134b6=a2_0x1dd5bc,_0x31b730=new SegmentsCommand(),_0x28dc08=program['opts'](),_0x132729=await createTDXInstance(_0x28dc08),_0x3391ae=await _0x31b730[_0x1134b6(0x32e)]({'options':{..._0x28dc08,..._0x1bdfa3},'args':_0x17411d?[_0x17411d]:[],'tdx':_0x132729});gracefulExit(_0x3391ae);};segmentCmd['command'](a2_0x1dd5bc(0x231))['description'](a2_0x1dd5bc(0x1fa))[a2_0x1dd5bc(0x207)]('-r,\x20--recursive',a2_0x1dd5bc(0x40c))['option'](a2_0x1dd5bc(0x3bc),a2_0x1dd5bc(0x480),'10')[a2_0x1dd5bc(0x450)](segmentListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x327),{'hidden':!![]})[a2_0x1dd5bc(0x388)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x43e),a2_0x1dd5bc(0x40c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3bc),a2_0x1dd5bc(0x480),'10')[a2_0x1dd5bc(0x450)](segmentListAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x228),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x441))['action'](async(_0x55667a,_0x105f5a)=>{const _0x5f03f9=a2_0x1dd5bc,_0xf53f97=new SegmentUseCommand(),_0x11bf7f=program[_0x5f03f9(0x389)](),_0x5ea5d0=await createTDXInstance(_0x11bf7f),_0x5668d1=await _0xf53f97[_0x5f03f9(0x32e)]({'options':{..._0x11bf7f,..._0x105f5a},'args':[_0x55667a],'tdx':_0x5ea5d0});gracefulExit(_0x5668d1);});const segmentViewAction=async(_0x47f820,_0x342110)=>{const _0x3763c1=a2_0x1dd5bc,_0xb772d1=new SegmentViewCommand(),_0x5bfec8=program[_0x3763c1(0x389)](),_0x64821d=await createTDXInstance(_0x5bfec8),_0x319ab6=await _0xb772d1['run']({'options':{..._0x5bfec8,..._0x342110},'args':_0x47f820?[_0x47f820]:[],'tdx':_0x64821d});gracefulExit(_0x319ab6);};segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x414))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x478))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x457))[a2_0x1dd5bc(0x450)](segmentViewAction),segmentCmd[a2_0x1dd5bc(0x284)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x1dd5bc(0x393)](a2_0x1dd5bc(0x42f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x457))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28d))[a2_0x1dd5bc(0x450)](segmentViewAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3be))['description'](a2_0x1dd5bc(0x2e7))[a2_0x1dd5bc(0x450)](async(_0x82d028,_0x24bfeb)=>{const _0x585ba1=a2_0x1dd5bc,_0x3bac39=new SegmentDescCommand(),_0x141df6=program[_0x585ba1(0x389)](),_0x455e11=await createTDXInstance(_0x141df6),_0xcbb03e=await _0x3bac39['run']({'options':{..._0x141df6,..._0x24bfeb},'args':_0x82d028?[_0x82d028]:[],'tdx':_0x455e11});gracefulExit(_0xcbb03e);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3f1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f5))[a2_0x1dd5bc(0x450)](async(_0x162634,_0x1d6566)=>{const _0x1a5f77=a2_0x1dd5bc,_0xf046be=new SegmentShowCommand(),_0xd351f6=program[_0x1a5f77(0x389)](),_0x14d4fe=await createTDXInstance(_0xd351f6),_0xe43023=await _0xf046be[_0x1a5f77(0x32e)]({'options':{..._0xd351f6,..._0x1d6566},'args':_0x162634?[_0x162634]:[],'tdx':_0x14d4fe});gracefulExit(_0xe43023);}),segmentCmd[a2_0x1dd5bc(0x284)]('folders\x20<parent_name>',{'hidden':!![]})['description'](a2_0x1dd5bc(0x281))[a2_0x1dd5bc(0x450)](async(_0x2fe99b,_0x102d2d)=>{const _0x23c32b=a2_0x1dd5bc,_0x10a33b=new SegmentFolderListCommand(),_0x451bad=program[_0x23c32b(0x389)](),_0x1df799=await createTDXInstance(_0x451bad),_0x168b72=await _0x10a33b[_0x23c32b(0x32e)]({'options':{..._0x451bad,..._0x102d2d},'args':[_0x2fe99b],'tdx':_0x1df799});gracefulExit(_0x168b72);});const folderCmd=segmentCmd[a2_0x1dd5bc(0x284)]('folder',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43b));folderCmd['command'](a2_0x1dd5bc(0x2d1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3d8))['action'](async(_0x4a6c36,_0x3edc93)=>{const _0x50c90e=a2_0x1dd5bc,_0x44cb59=new SegmentFolderShowCommand(),_0x59f4db=program['opts'](),_0x431968=await createTDXInstance(_0x59f4db),_0x56d3d1=await _0x44cb59[_0x50c90e(0x32e)]({'options':{..._0x59f4db,..._0x3edc93},'args':[_0x4a6c36],'tdx':_0x431968});gracefulExit(_0x56d3d1);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x236))['description']('Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x36a),a2_0x1dd5bc(0x420))[a2_0x1dd5bc(0x450)](async(_0x4a6d93,_0xa8a31c)=>{const _0x5a0742=a2_0x1dd5bc,_0x242c04=new SegmentSQLCommand(),_0x4576e7=program[_0x5a0742(0x389)](),_0x2d42e6=await createTDXInstance(_0x4576e7),_0x3da3b3=await _0x242c04['run']({'options':{..._0x4576e7,..._0xa8a31c},'args':_0x4a6d93?[_0x4a6d93]:[],'tdx':_0x2d42e6});gracefulExit(_0x3da3b3);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3f4))['description'](a2_0x1dd5bc(0x332))['action'](async(_0x28a839,_0x47f908)=>{const _0x22203f=a2_0x1dd5bc,_0x351b76=new SegmentFieldsCommand(),_0x3c77c3=program['opts'](),_0x13d5f4=await createTDXInstance(_0x3c77c3),_0x4a0251=await _0x351b76[_0x22203f(0x32e)]({'options':{..._0x3c77c3,..._0x47f908},'args':_0x28a839?[_0x28a839]:[],'tdx':_0x13d5f4});gracefulExit(_0x4a0251);}),segmentCmd[a2_0x1dd5bc(0x284)]('pull\x20[parent_or_file]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43f))['option']('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['action'](async(_0x1725af,_0x36fab9)=>{const _0xe12d0d=a2_0x1dd5bc,_0x16bb76=new SegmentPullCommand(),_0x47bede=program[_0xe12d0d(0x389)](),_0x4ba07e=await createTDXInstance(_0x47bede),_0x582dbf=await _0x16bb76['run']({'options':{..._0x47bede,..._0x36fab9},'args':_0x1725af?[_0x1725af]:[],'tdx':_0x4ba07e});gracefulExit(_0x582dbf);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x474))['option'](a2_0x1dd5bc(0x443),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x1dd5bc(0x207)]('--delete',a2_0x1dd5bc(0x2b9))[a2_0x1dd5bc(0x450)](async(_0x52b644,_0x5792ec)=>{const _0x4fc846=a2_0x1dd5bc,_0x5038b0=new SegmentPushCommand(),_0x2ae219=program[_0x4fc846(0x389)](),_0x367e8d=await createTDXInstance(_0x2ae219),_0x1c7970=await _0x5038b0[_0x4fc846(0x32e)]({'options':{..._0x2ae219,..._0x5792ec},'args':_0x52b644?[_0x52b644]:[],'tdx':_0x367e8d});gracefulExit(_0x1c7970);}),segmentCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1c3))[a2_0x1dd5bc(0x450)](async(_0x377a75,_0x3a5d71)=>{const _0x220b89=a2_0x1dd5bc,_0x550cd5=new SegmentValidateCommand(),_0x243de5=program['opts'](),_0xecc265=await createTDXInstance(_0x243de5),_0x140bc4=await _0x550cd5[_0x220b89(0x32e)]({'options':{..._0x243de5,..._0x3a5d71},'args':_0x377a75?[_0x377a75]:[],'tdx':_0xecc265});gracefulExit(_0x140bc4);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fd),{'hidden':!![]})[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option']('--description\x20<text>',a2_0x1dd5bc(0x404))[a2_0x1dd5bc(0x207)]('--rule\x20<json>',a2_0x1dd5bc(0x2b8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x264),a2_0x1dd5bc(0x2c6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x252),'Folder\x20name\x20for\x20organization')['option'](a2_0x1dd5bc(0x1f8),a2_0x1dd5bc(0x237))['option'](a2_0x1dd5bc(0x34b),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2d2),a2_0x1dd5bc(0x1f0))[a2_0x1dd5bc(0x450)](async(_0x750d50,_0x4b25c7)=>{const _0x175abf=a2_0x1dd5bc,_0x2437f3=new SegmentCreateCommand(),_0x2118d6=program[_0x175abf(0x389)](),_0x500cf4=await createTDXInstance(_0x2118d6),_0x37a629=await _0x2437f3[_0x175abf(0x32e)]({'options':{..._0x2118d6,..._0x4b25c7},'args':[_0x750d50],'tdx':_0x500cf4});gracefulExit(_0x37a629);}),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3b2),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x33b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x40f),a2_0x1dd5bc(0x412))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),'Updated\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2f0),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x264),a2_0x1dd5bc(0x485))['option']('--folder\x20<name>',a2_0x1dd5bc(0x369))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1f8),a2_0x1dd5bc(0x237))[a2_0x1dd5bc(0x450)](async(_0xa36ca,_0x2bb104)=>{const _0x437c4c=a2_0x1dd5bc,_0x3045de=new SegmentUpdateCommand(),_0x2881c9=program[_0x437c4c(0x389)](),_0x49e316=await createTDXInstance(_0x2881c9),_0x42f320=await _0x3045de[_0x437c4c(0x32e)]({'options':{..._0x2881c9,..._0x2bb104},'args':[_0xa36ca],'tdx':_0x49e316});gracefulExit(_0x42f320);});const parentCmd=segmentCmd[a2_0x1dd5bc(0x284)]('parent',{'hidden':!![]})[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x517f1a,_0x84f7e)=>{const _0x33b398=new ParentSegmentListCommand(),_0x3e3343=program['opts'](),_0x2e5f09=await createTDXInstance(_0x3e3343),_0x1fb6ca=await _0x33b398['run']({'options':{..._0x3e3343,..._0x84f7e},'args':_0x517f1a?[_0x517f1a]:[],'tdx':_0x2e5f09});gracefulExit(_0x1fb6ca);};parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x482))[a2_0x1dd5bc(0x450)](parentListAction),segmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x448),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x206))[a2_0x1dd5bc(0x450)](parentListAction),parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x46e))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x208))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x1dd5bc(0x450)](async(_0x5ba627,_0x5cd42a)=>{const _0x1f8216=a2_0x1dd5bc,_0x15fbff=new ParentSegmentPullCommand(),_0x3d1eff=program['opts'](),_0x4fe472=await createTDXInstance(_0x3d1eff),_0x1fe7df=await _0x15fbff[_0x1f8216(0x32e)]({'options':{..._0x3d1eff,..._0x5cd42a},'args':_0x5ba627?[_0x5ba627]:[],'tdx':_0x4fe472});gracefulExit(_0x1fe7df);}),parentCmd[a2_0x1dd5bc(0x284)]('push\x20[file]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x47c))[a2_0x1dd5bc(0x450)](async(_0x38eb5a,_0x2bb4d8)=>{const _0x1008c2=a2_0x1dd5bc,_0x6a144c=new ParentSegmentPushCommand(),_0x5a8ccd=program['opts'](),_0x2ea506=await createTDXInstance(_0x5a8ccd),_0x1b1f7d=await _0x6a144c[_0x1008c2(0x32e)]({'options':{..._0x5a8ccd,..._0x2bb4d8},'args':_0x38eb5a?[_0x38eb5a]:[],'tdx':_0x2ea506});gracefulExit(_0x1b1f7d);}),parentCmd['command'](a2_0x1dd5bc(0x333))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3e3))['option'](a2_0x1dd5bc(0x3a7),a2_0x1dd5bc(0x444))['option'](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x226))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x354))[a2_0x1dd5bc(0x207)]('--enriched',a2_0x1dd5bc(0x26e))[a2_0x1dd5bc(0x207)]('--interval\x20<range>',a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))[a2_0x1dd5bc(0x450)](async(_0x22fca2,_0x632bb9)=>{const _0x2e769b=a2_0x1dd5bc,_0x560d93=new ParentSegmentValidateCommand(),_0x715f91=program[_0x2e769b(0x389)](),_0x562748=await createTDXInstance(_0x715f91),_0x1ef7f7=await _0x560d93[_0x2e769b(0x32e)]({'options':{..._0x715f91,..._0x632bb9},'args':_0x22fca2?[_0x22fca2]:[],'tdx':_0x562748});gracefulExit(_0x1ef7f7);}),parentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1ec))[a2_0x1dd5bc(0x388)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x1dd5bc(0x3a7),a2_0x1dd5bc(0x222))['option'](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x296))['option'](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x1be))[a2_0x1dd5bc(0x207)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x218),a2_0x1dd5bc(0x23f),'-1d')[a2_0x1dd5bc(0x450)](async(_0x3cd224,_0x3b3182)=>{const _0x3c8ca3=a2_0x1dd5bc,_0x545f84=new ParentSegmentPreviewCommand(),_0xde6540=program['opts'](),_0x541c54=await createTDXInstance(_0xde6540),_0x2e1bca=await _0x545f84[_0x3c8ca3(0x32e)]({'options':{..._0xde6540,..._0x3b3182},'args':_0x3cd224?[_0x3cd224]:[],'tdx':_0x541c54});gracefulExit(_0x2e1bca);}),parentCmd['command'](a2_0x1dd5bc(0x42d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41c))[a2_0x1dd5bc(0x450)](async(_0x2c2f0f,_0x5a418d)=>{const _0x10cd77=a2_0x1dd5bc,_0x5d1b21=new ParentSegmentRunCommand(),_0x52c32e=program[_0x10cd77(0x389)](),_0x18e912=await createTDXInstance(_0x52c32e),_0x5a22d2=await _0x5d1b21[_0x10cd77(0x32e)]({'options':{..._0x52c32e,..._0x5a418d},'args':_0x2c2f0f?[_0x2c2f0f]:[],'tdx':_0x18e912});gracefulExit(_0x5a22d2);});const parentSegmentCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x246))[a2_0x1dd5bc(0x393)]('ps')['description'](a2_0x1dd5bc(0x39d));parentSegmentCmd['command'](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x482))[a2_0x1dd5bc(0x450)](parentListAction),parentSegmentCmd[a2_0x1dd5bc(0x284)]('pull\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1eb))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),a2_0x1dd5bc(0x406))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1b8),a2_0x1dd5bc(0x1d9))['action'](async(_0x542ad0,_0x197dcc)=>{const _0x3e5859=a2_0x1dd5bc,_0x3b7f8a=new ParentSegmentPullCommand(),_0x27ba86=program['opts'](),_0x1f565b=await createTDXInstance(_0x27ba86),_0x492a53=await _0x3b7f8a[_0x3e5859(0x32e)]({'options':{..._0x27ba86,..._0x197dcc},'args':_0x542ad0?[_0x542ad0]:[],'tdx':_0x1f565b});gracefulExit(_0x492a53);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x382))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x243))[a2_0x1dd5bc(0x450)](async(_0x528e71,_0x959571)=>{const _0x3ff1f4=a2_0x1dd5bc,_0x1a2c75=new ParentSegmentPushCommand(),_0x5781d1=program[_0x3ff1f4(0x389)](),_0x413e01=await createTDXInstance(_0x5781d1),_0x1dbff6=await _0x1a2c75[_0x3ff1f4(0x32e)]({'options':{..._0x5781d1,..._0x959571},'args':_0x528e71?[_0x528e71]:[],'tdx':_0x413e01});gracefulExit(_0x1dbff6);}),parentSegmentCmd['command']('validate\x20[name]')[a2_0x1dd5bc(0x388)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option']('--master',a2_0x1dd5bc(0x444))[a2_0x1dd5bc(0x207)]('--attribute\x20[name]',a2_0x1dd5bc(0x226))[a2_0x1dd5bc(0x207)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x27a),a2_0x1dd5bc(0x26e))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x218),a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))['action'](async(_0x4ad6c2,_0x234b81)=>{const _0x156b74=a2_0x1dd5bc,_0x2edadd=new ParentSegmentValidateCommand(),_0x407596=program[_0x156b74(0x389)](),_0x1f386e=await createTDXInstance(_0x407596),_0x36dfc4=await _0x2edadd[_0x156b74(0x32e)]({'options':{..._0x407596,..._0x234b81},'args':_0x4ad6c2?[_0x4ad6c2]:[],'tdx':_0x1f386e});gracefulExit(_0x36dfc4);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x33e))[a2_0x1dd5bc(0x388)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x1dd5bc(0x207)]('--master',a2_0x1dd5bc(0x222))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32d),a2_0x1dd5bc(0x296))['option'](a2_0x1dd5bc(0x435),a2_0x1dd5bc(0x1be))[a2_0x1dd5bc(0x207)]('--enriched',a2_0x1dd5bc(0x34a))[a2_0x1dd5bc(0x207)]('--interval\x20<range>',a2_0x1dd5bc(0x23f),a2_0x1dd5bc(0x302))[a2_0x1dd5bc(0x450)](async(_0x510fd5,_0xc90ea2)=>{const _0x53fc8d=a2_0x1dd5bc,_0x12efed=new ParentSegmentPreviewCommand(),_0x890476=program[_0x53fc8d(0x389)](),_0x5da241=await createTDXInstance(_0x890476),_0x3864da=await _0x12efed[_0x53fc8d(0x32e)]({'options':{..._0x890476,..._0xc90ea2},'args':_0x510fd5?[_0x510fd5]:[],'tdx':_0x5da241});gracefulExit(_0x3864da);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x42d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41c))[a2_0x1dd5bc(0x450)](async(_0x36174b,_0x4c0f1b)=>{const _0x2d5f94=a2_0x1dd5bc,_0x4e58ca=new ParentSegmentRunCommand(),_0x105419=program[_0x2d5f94(0x389)](),_0x508920=await createTDXInstance(_0x105419),_0xaba0a=await _0x4e58ca[_0x2d5f94(0x32e)]({'options':{..._0x105419,..._0x4c0f1b},'args':_0x36174b?[_0x36174b]:[],'tdx':_0x508920});gracefulExit(_0xaba0a);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x339))[a2_0x1dd5bc(0x388)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x217c9c,_0x212738)=>{const _0x134d04=a2_0x1dd5bc,_0x41e859=new ParentSegmentFieldsCommand(),_0x476945=program[_0x134d04(0x389)](),_0x1abcc3=await createTDXInstance(_0x476945),_0x329101=await _0x41e859[_0x134d04(0x32e)]({'options':{..._0x476945,..._0x212738},'args':_0x217c9c?[_0x217c9c]:[],'tdx':_0x1abcc3});gracefulExit(_0x329101);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x2c2))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x217))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x32a),a2_0x1dd5bc(0x35b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x4ac7f7,_0x5ab9a6)=>{const _0x594d04=a2_0x1dd5bc,_0x4cd5af=new ParentSegmentViewCommand(),_0x3cd379=program[_0x594d04(0x389)](),_0x12eedc=await createTDXInstance(_0x3cd379),_0x2cee7f=await _0x4cd5af[_0x594d04(0x32e)]({'options':{..._0x3cd379,..._0x5ab9a6},'args':_0x4ac7f7?[_0x4ac7f7]:[],'tdx':_0x12eedc});gracefulExit(_0x2cee7f);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3a6))[a2_0x1dd5bc(0x388)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x31e),a2_0x1dd5bc(0x406))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x41b),a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x1be9f2,_0x1d003e)=>{const _0xf8af64=a2_0x1dd5bc,_0x305b5b=new ParentSegmentDescCommand(),_0x2ade36=program['opts'](),_0x41e07e=await createTDXInstance(_0x2ade36),_0x402305=await _0x305b5b[_0xf8af64(0x32e)]({'options':{..._0x2ade36,..._0x1d003e},'args':_0x1be9f2?[_0x1be9f2]:[],'tdx':_0x41e07e});gracefulExit(_0x402305);}),parentSegmentCmd[a2_0x1dd5bc(0x284)]('sql\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3af))['option']('--json',a2_0x1dd5bc(0x1db))[a2_0x1dd5bc(0x207)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x1dd5bc(0x450)](async(_0xa30e9e,_0x9b11a5)=>{const _0x15d3a1=a2_0x1dd5bc,_0x4f5d35=new ParentSegmentSQLCommand(),_0x452cf2=program[_0x15d3a1(0x389)](),_0x1f80f7=await createTDXInstance(_0x452cf2),_0x47dafe=await _0x4f5d35[_0x15d3a1(0x32e)]({'options':{..._0x452cf2,..._0x9b11a5},'args':_0xa30e9e?[_0xa30e9e]:[],'tdx':_0x1f80f7});gracefulExit(_0x47dafe);}),parentSegmentCmd['command'](a2_0x1dd5bc(0x425))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x300))['option'](a2_0x1dd5bc(0x232),a2_0x1dd5bc(0x1bd))['option'](a2_0x1dd5bc(0x41b),'Output\x20as\x20JSON')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3d0),a2_0x1dd5bc(0x1e9))[a2_0x1dd5bc(0x450)](async(_0x4f2d02,_0x4b7124)=>{const _0xfef576=a2_0x1dd5bc,_0x247a6a=new ParentSegmentShowCommand(),_0x4a134a=program['opts'](),_0x1463be=await createTDXInstance(_0x4a134a),_0x8710c5=await _0x247a6a[_0xfef576(0x32e)]({'options':{..._0x4a134a,..._0x4b7124},'args':_0x4f2d02?[_0x4f2d02]:[],'tdx':_0x1463be});gracefulExit(_0x8710c5);}),parentSegmentCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x45e))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x407))['action'](async(_0x26b8da,_0x206347)=>{const _0x5e5917=a2_0x1dd5bc,_0x4b81cf=new UseCommand(),_0x5916f4=program[_0x5e5917(0x389)](),_0x495595=_0x26b8da?[_0x5e5917(0x39f),_0x26b8da]:[],_0xf61817=await _0x4b81cf[_0x5e5917(0x32e)]({'options':{..._0x5916f4,..._0x206347},'args':_0x495595,'tdx':null});gracefulExit(_0xf61817);});const psRtCmd=parentSegmentCmd[a2_0x1dd5bc(0x284)]('rt')[a2_0x1dd5bc(0x388)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x378))[a2_0x1dd5bc(0x450)](async(_0x3d57d0,_0x5ebda1)=>{const _0xd94d0b=a2_0x1dd5bc,_0x2896fa=new PSRtListCommand(),_0x2ab318=program[_0xd94d0b(0x389)](),_0x24f7b3=await createTDXInstance(_0x2ab318),_0x2eafbb=await _0x2896fa[_0xd94d0b(0x32e)]({'options':{..._0x2ab318,..._0x5ebda1},'args':_0x3d57d0?[_0x3d57d0]:[],'tdx':_0x24f7b3});gracefulExit(_0x2eafbb);}),psRtCmd['command'](a2_0x1dd5bc(0x1e1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3dd))['action'](async(_0x3d4631,_0x3ef1ee)=>{const _0x48da55=a2_0x1dd5bc,_0x538b54=new PSRtValidateCommand(),_0x57a5c8=program['opts'](),_0xda06f1=await createTDXInstance(_0x57a5c8),_0x4589da=await _0x538b54[_0x48da55(0x32e)]({'options':{..._0x57a5c8,..._0x3ef1ee},'args':_0x3d4631?[_0x3d4631]:[],'tdx':_0xda06f1});gracefulExit(_0x4589da);});const parentRtCmd=parentCmd[a2_0x1dd5bc(0x284)]('rt',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x39b));parentRtCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x378))[a2_0x1dd5bc(0x450)](async(_0x23cd15,_0xf8ddd1)=>{const _0x55a97f=new PSRtListCommand(),_0x339ecd=program['opts'](),_0x2ce3e0=await createTDXInstance(_0x339ecd),_0x949923=await _0x55a97f['run']({'options':{..._0x339ecd,..._0xf8ddd1},'args':_0x23cd15?[_0x23cd15]:[],'tdx':_0x2ce3e0});gracefulExit(_0x949923);}),parentRtCmd['command'](a2_0x1dd5bc(0x1e1))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3dd))[a2_0x1dd5bc(0x450)](async(_0x18a0a8,_0xdfcdfb)=>{const _0x4e15c6=a2_0x1dd5bc,_0x5d43ca=new PSRtValidateCommand(),_0x53129a=program[_0x4e15c6(0x389)](),_0x24b911=await createTDXInstance(_0x53129a),_0x30c422=await _0x5d43ca[_0x4e15c6(0x32e)]({'options':{..._0x53129a,..._0xdfcdfb},'args':_0x18a0a8?[_0x18a0a8]:[],'tdx':_0x24b911});gracefulExit(_0x30c422);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e8));psPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x330))[a2_0x1dd5bc(0x388)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x1dd5bc(0x450)](async(_0x1f0e20,_0x24549d)=>{const _0x2b13e9=a2_0x1dd5bc,_0x150949=new PSPzListCommand(),_0x2800cd=program['opts'](),_0x2f68eb=await createTDXInstance(_0x2800cd),_0x202e43=await _0x150949[_0x2b13e9(0x32e)]({'options':{..._0x2800cd,..._0x24549d},'args':_0x1f0e20?[_0x1f0e20]:[],'tdx':_0x2f68eb});gracefulExit(_0x202e43);}),psPzCmd[a2_0x1dd5bc(0x284)]('init\x20[name]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x433))[a2_0x1dd5bc(0x450)](async(_0x34c63a,_0x23d200)=>{const _0x8b295c=a2_0x1dd5bc,_0x2db981=new PSPzInitCommand(),_0x14bd94=program['opts'](),_0x52b16c=await createTDXInstance(_0x14bd94),_0x3595ca=await _0x2db981[_0x8b295c(0x32e)]({'options':{..._0x14bd94,..._0x23d200},'args':_0x34c63a?[_0x34c63a]:[],'tdx':_0x52b16c});gracefulExit(_0x3595ca);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e8));parentPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x330))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x47a))[a2_0x1dd5bc(0x450)](async(_0x4312e6,_0x191fdd)=>{const _0x3a1cd7=a2_0x1dd5bc,_0x4ce7d6=new PSPzListCommand(),_0x387b53=program['opts'](),_0x356ba7=await createTDXInstance(_0x387b53),_0x2ea223=await _0x4ce7d6[_0x3a1cd7(0x32e)]({'options':{..._0x387b53,..._0x191fdd},'args':_0x4312e6?[_0x4312e6]:[],'tdx':_0x356ba7});gracefulExit(_0x2ea223);}),parentPzCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ec))['description'](a2_0x1dd5bc(0x433))[a2_0x1dd5bc(0x450)](async(_0x3c2d4f,_0x174fba)=>{const _0x25928b=a2_0x1dd5bc,_0x15866f=new PSPzInitCommand(),_0x22416d=program[_0x25928b(0x389)](),_0xa0a470=await createTDXInstance(_0x22416d),_0x29753f=await _0x15866f[_0x25928b(0x32e)]({'options':{..._0x22416d,..._0x174fba},'args':_0x3c2d4f?[_0x3c2d4f]:[],'tdx':_0xa0a470});gracefulExit(_0x29753f);}),parentCmd['command'](a2_0x1dd5bc(0x1c6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x42e))['requiredOption'](a2_0x1dd5bc(0x337),a2_0x1dd5bc(0x2e1))['requiredOption'](a2_0x1dd5bc(0x3b1),'Master\x20table\x20name')[a2_0x1dd5bc(0x207)]('--description\x20<text>','Parent\x20segment\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x224),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x1dd5bc(0x3c2))[a2_0x1dd5bc(0x207)]('--timezone\x20<tz>',a2_0x1dd5bc(0x338))[a2_0x1dd5bc(0x207)]('--attributes\x20<json>','Attributes\x20as\x20JSON\x20string')['option'](a2_0x1dd5bc(0x3ab),a2_0x1dd5bc(0x37d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x303),a2_0x1dd5bc(0x346))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44e),'Behaviors\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x207)]('--customer-group\x20<json>',a2_0x1dd5bc(0x442))['option'](a2_0x1dd5bc(0x27f),a2_0x1dd5bc(0x1fd))[a2_0x1dd5bc(0x450)](async(_0x536958,_0x3f81bf)=>{const _0x3ff015=a2_0x1dd5bc,_0x5dd41b=new ParentSegmentCreateCommand(),_0x5ea24b=program[_0x3ff015(0x389)](),_0x344b73=await createTDXInstance(_0x5ea24b),_0x25d224=await _0x5dd41b[_0x3ff015(0x32e)]({'options':{..._0x5ea24b,..._0x3f81bf},'args':[_0x536958],'tdx':_0x344b73});gracefulExit(_0x25d224);}),parentCmd[a2_0x1dd5bc(0x284)]('update\x20<name>')['description'](a2_0x1dd5bc(0x248))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x3f0))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x224),a2_0x1dd5bc(0x2bb))[a2_0x1dd5bc(0x207)]('--schedule-option\x20<value>',a2_0x1dd5bc(0x35c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3da),a2_0x1dd5bc(0x28e))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x472),a2_0x1dd5bc(0x1f4))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44b),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x207)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x1dd5bc(0x207)]('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x1dd5bc(0x450)](async(_0x31cb73,_0x5c2fca)=>{const _0xe6441b=a2_0x1dd5bc,_0x523052=new ParentSegmentUpdateCommand(),_0x2c11d3=program[_0xe6441b(0x389)](),_0x205018=await createTDXInstance(_0x2c11d3),_0x46003c=await _0x523052[_0xe6441b(0x32e)]({'options':{..._0x2c11d3,..._0x5c2fca},'args':[_0x31cb73],'tdx':_0x205018});gracefulExit(_0x46003c);}),folderCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x440))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e9))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),'Folder\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x394),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x1dd5bc(0x450)](async(_0x108a18,_0xa26617,_0x5d2bfc)=>{const _0x3047bd=a2_0x1dd5bc,_0x50a92c=new SegmentFolderCreateCommand(),_0x2af802=program[_0x3047bd(0x389)](),_0x2a7c43=await createTDXInstance(_0x2af802),_0x53e7c5=await _0x50a92c[_0x3047bd(0x32e)]({'options':{..._0x2af802,..._0x5d2bfc},'args':[_0x108a18,_0xa26617],'tdx':_0x2a7c43});gracefulExit(_0x53e7c5);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x37a))['description'](a2_0x1dd5bc(0x1c0))[a2_0x1dd5bc(0x450)](async(_0x2fd59b,_0x827fec)=>{const _0x3eaa23=a2_0x1dd5bc,_0x133020=new ActivationsCommand(),_0x2f1336=program[_0x3eaa23(0x389)](),_0x16eca1=await createTDXInstance(_0x2f1336),_0x2c903c=await _0x133020['run']({'options':{..._0x2f1336,..._0x827fec},'args':[_0x2fd59b],'tdx':_0x16eca1});gracefulExit(_0x2c903c);});const workflowCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fe))[a2_0x1dd5bc(0x393)]('wf')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3de)),wfProjectCmd=workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2e4)),wfProjectListAction=async(_0x2919db,_0x54173d)=>{const _0x55a061=a2_0x1dd5bc,_0x423078=new WorkflowProjectsCommand(),_0x275d86=program['opts'](),_0x4c1f7b=await createTDXInstance(_0x275d86),_0x4dceff=await _0x423078[_0x55a061(0x32e)]({'options':{..._0x275d86,..._0x54173d},'args':_0x2919db?[_0x2919db]:[],'tdx':_0x4c1f7b});gracefulExit(_0x4dceff);};wfProjectCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2db))[a2_0x1dd5bc(0x450)](wfProjectListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x430))[a2_0x1dd5bc(0x388)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x1dd5bc(0x450)](wfProjectListAction);const wfWorkflowListAction=async(_0x554b67,_0x1206a6)=>{const _0x30dc9b=a2_0x1dd5bc,_0x264f51=new WorkflowWorkflowsCommand(),_0x386767=program[_0x30dc9b(0x389)](),_0x39382e=await createTDXInstance(_0x386767),_0x37818b=await _0x264f51[_0x30dc9b(0x32e)]({'options':{..._0x386767,..._0x1206a6},'args':_0x554b67?[_0x554b67]:[],'tdx':_0x39382e});gracefulExit(_0x37818b);};workflowCmd['command']('workflows\x20[project]')[a2_0x1dd5bc(0x388)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x259))[a2_0x1dd5bc(0x388)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x32b3f5,_0x21eea0)=>{const _0x59ba40=a2_0x1dd5bc,_0x4e8a6b=new WorkflowSessionsCommand(),_0x4cccc6=program[_0x59ba40(0x389)](),_0x19f88d=await createTDXInstance(_0x4cccc6),_0x28d71f=await _0x4e8a6b[_0x59ba40(0x32e)]({'options':{..._0x4cccc6,..._0x21eea0},'args':_0x32b3f5?[_0x32b3f5]:[],'tdx':_0x19f88d});gracefulExit(_0x28d71f);};wfSessionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1bb))[a2_0x1dd5bc(0x388)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x469))[a2_0x1dd5bc(0x207)]('--from\x20<timestamp>',a2_0x1dd5bc(0x3b3))['option']('--to\x20<timestamp>',a2_0x1dd5bc(0x2fc))[a2_0x1dd5bc(0x450)](wfSessionListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1f3))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x390))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2b5),a2_0x1dd5bc(0x3b3))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3cb),a2_0x1dd5bc(0x2fc))[a2_0x1dd5bc(0x450)](wfSessionListAction);const wfAttemptListAction=async(_0x53afa2,_0xaff811)=>{const _0x45d018=a2_0x1dd5bc,_0x5ada09=new WorkflowAttemptsCommand(),_0x509a50=program[_0x45d018(0x389)](),_0x26cbd9=await createTDXInstance(_0x509a50),_0x258ad1=await _0x5ada09[_0x45d018(0x32e)]({'options':{..._0x509a50,..._0xaff811},'args':_0x53afa2?[_0x53afa2]:[],'tdx':_0x26cbd9});gracefulExit(_0x258ad1);},attemptCmd=workflowCmd['command'](a2_0x1dd5bc(0x3ff))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2d8))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x326),a2_0x1dd5bc(0x2b7))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x257),a2_0x1dd5bc(0x363))[a2_0x1dd5bc(0x29f)](a2_0x1dd5bc(0x239),a2_0x1dd5bc(0x3a0))[a2_0x1dd5bc(0x207)]('--include-subtasks',a2_0x1dd5bc(0x3ce))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ce),a2_0x1dd5bc(0x21d))['option']('--resume-from\x20<task>',a2_0x1dd5bc(0x366))['option'](a2_0x1dd5bc(0x254),a2_0x1dd5bc(0x1bc))['option']('--force','Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),a2_0x1dd5bc(0x22a))[a2_0x1dd5bc(0x450)](async(_0x569f4a,_0xfd2c15,_0x456467,_0x2543cc)=>{const _0x205881=a2_0x1dd5bc;if(_0x569f4a==='list'){await wfAttemptListAction(_0xfd2c15,_0x2543cc);return;}if(!_0x569f4a){attemptCmd[_0x205881(0x38b)]();return;}const _0x4e5178=program[_0x205881(0x389)](),_0x398ad2=await createTDXInstance(_0x4e5178);let _0x1e0199=0x0;if(!_0xfd2c15){const _0xc9eaf3=new WorkflowAttemptCommand();_0x1e0199=await _0xc9eaf3[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x1f6)){const _0x13277e=new WorkflowLogsCommand();_0x1e0199=await _0x13277e[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':_0x456467?[_0x569f4a,_0x456467]:[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x2d3)){const _0x40f657=new WorkflowTasksCommand();_0x1e0199=await _0x40f657[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15===_0x205881(0x2a1)){const _0x43e4c5=new WorkflowKillCommand();_0x1e0199=await _0x43e4c5[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':[_0x569f4a],'tdx':_0x398ad2});}else{if(_0xfd2c15==='retry'){const _0x4fc02f=new WorkflowRetryCommand();_0x1e0199=await _0x4fc02f[_0x205881(0x32e)]({'options':{..._0x4e5178,..._0x2543cc},'args':['attempt:'+_0x569f4a],'tdx':_0x398ad2});}else console['error'](_0x205881(0x1d0)+_0xfd2c15),console[_0x205881(0x1e6)](_0x205881(0x3a9)),_0x1e0199=0x1;}}}}gracefulExit(_0x1e0199);});attemptCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1bb))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c1))[a2_0x1dd5bc(0x388)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x22c),a2_0x1dd5bc(0x3c3))[a2_0x1dd5bc(0x450)](wfAttemptListAction),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x32c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ac))['option']('--follow',a2_0x1dd5bc(0x250))[a2_0x1dd5bc(0x207)]('--session-id\x20<id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3ba),a2_0x1dd5bc(0x47f))[a2_0x1dd5bc(0x450)](async(_0x31c2ba,_0x408f86)=>{const _0x5ee011=a2_0x1dd5bc,_0x13b3c6=new WorkflowTimelineCommand(),_0x1c4237=program[_0x5ee011(0x389)](),_0xeae387=await createTDXInstance(_0x1c4237),_0x5143c1=await _0x13b3c6['run']({'options':{..._0x1c4237,..._0x408f86},'args':_0x31c2ba?[_0x31c2ba]:[],'tdx':_0xeae387});gracefulExit(_0x5143c1);}),workflowCmd['command'](a2_0x1dd5bc(0x400))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1e2))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x270),'Resume\x20from\x20specific\x20task')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x254),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x1dd5bc(0x450)](async(_0x3d6c60,_0x4c8c3d)=>{const _0x44064f=a2_0x1dd5bc,_0x2f12db=new WorkflowRetryCommand(),_0x211064=program[_0x44064f(0x389)](),_0x9b9712=await createTDXInstance(_0x211064),_0x273a69=await _0x2f12db[_0x44064f(0x32e)]({'options':{..._0x211064,..._0x4c8c3d},'args':[_0x3d6c60],'tdx':_0x9b9712});gracefulExit(_0x273a69);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x41d))['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')['option']('--param\x20<key=value>',a2_0x1dd5bc(0x2c8),(_0x3e1420,_0x10bd3e=[])=>[..._0x10bd3e,_0x3e1420],[])['option'](a2_0x1dd5bc(0x40a),a2_0x1dd5bc(0x2e2))[a2_0x1dd5bc(0x450)](async(_0x5b13d9,_0x8a090b)=>{const _0x50a389=a2_0x1dd5bc,_0x185364=new WorkflowRunCommand(),_0x139c66=program[_0x50a389(0x389)](),_0x23b129=await createTDXInstance(_0x139c66),_0x5abb2a=await _0x185364[_0x50a389(0x32e)]({'options':{..._0x139c66,..._0x8a090b},'args':_0x5b13d9?[_0x5b13d9]:[],'tdx':_0x23b129});gracefulExit(_0x5abb2a);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x280))[a2_0x1dd5bc(0x388)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x3f7))[a2_0x1dd5bc(0x450)](async(_0x3481ec,_0x267482,_0x577db2)=>{const _0x4a42bf=a2_0x1dd5bc,_0x524e8b=new WorkflowDownloadCommand(),_0x229356=program[_0x4a42bf(0x389)](),_0x382823=await createTDXInstance(_0x229356),_0x545bf0=await _0x524e8b[_0x4a42bf(0x32e)]({'options':{..._0x229356,..._0x577db2},'args':[_0x3481ec,_0x267482||'.'],'tdx':_0x382823});gracefulExit(_0x545bf0);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x42b))[a2_0x1dd5bc(0x388)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x319))[a2_0x1dd5bc(0x207)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')[a2_0x1dd5bc(0x450)](async(_0x175529,_0x21dbe2,_0x86edc5)=>{const _0xf951d7=a2_0x1dd5bc,_0x2b2146=new WorkflowPullCommand(),_0x247111=program[_0xf951d7(0x389)](),_0xc9299d=await createTDXInstance(_0x247111),_0x4bdb3a=await _0x2b2146['run']({'options':{..._0x247111,..._0x86edc5},'args':_0x21dbe2?[_0x175529,_0x21dbe2]:[_0x175529],'tdx':_0xc9299d});gracefulExit(_0x4bdb3a);}),workflowCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x359))[a2_0x1dd5bc(0x388)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x24e))['option'](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x396))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x33d),a2_0x1dd5bc(0x417))[a2_0x1dd5bc(0x450)](async(_0x3c3a3c,_0x200209)=>{const _0x11630b=a2_0x1dd5bc,_0x13fa1a=new WorkflowPushCommand(),_0x51306a=program[_0x11630b(0x389)](),_0x3cd301=await createTDXInstance(_0x51306a),_0x84d66a=await _0x13fa1a[_0x11630b(0x32e)]({'options':{..._0x51306a,..._0x200209},'args':_0x3c3a3c?[_0x3c3a3c]:[],'tdx':_0x3cd301});gracefulExit(_0x84d66a);}),workflowCmd['command'](a2_0x1dd5bc(0x46d))['description'](a2_0x1dd5bc(0x455))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x25d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x3c9))['option'](a2_0x1dd5bc(0x33d),a2_0x1dd5bc(0x417))[a2_0x1dd5bc(0x450)](async(_0x2870d6,_0x7494f4)=>{const _0x1c5236=a2_0x1dd5bc,_0x318791=new WorkflowUploadCommand(),_0x3039a3=program[_0x1c5236(0x389)](),_0x3c6323=await createTDXInstance(_0x3039a3),_0x3ef2dc=await _0x318791[_0x1c5236(0x32e)]({'options':{..._0x3039a3,..._0x7494f4},'args':_0x2870d6?[_0x2870d6]:[],'tdx':_0x3c6323});gracefulExit(_0x3ef2dc);}),workflowCmd['command']('clone\x20[source-dir]')['description'](a2_0x1dd5bc(0x1de))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x368),a2_0x1dd5bc(0x24e))['option'](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x35d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x33d),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x34d087,_0x301eb5)=>{const _0x54056a=a2_0x1dd5bc,_0x540cd5=new WorkflowCloneCommand(),_0x3b9f30=program[_0x54056a(0x389)](),_0x2104a1=await createTDXInstance(_0x3b9f30),_0x4cd724=await _0x540cd5[_0x54056a(0x32e)]({'options':{..._0x3b9f30,..._0x301eb5},'args':_0x34d087?[_0x34d087]:[],'tdx':_0x2104a1});gracefulExit(_0x4cd724);}),workflowCmd['command'](a2_0x1dd5bc(0x1ef))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x24d))[a2_0x1dd5bc(0x450)](async(_0x59527e,_0x21d769)=>{const _0x2d4ba1=a2_0x1dd5bc,_0x6d1336=new WorkflowDeleteCommand(),_0x47d154=program[_0x2d4ba1(0x389)](),_0x235df0=await createTDXInstance(_0x47d154),_0x5761a0=await _0x6d1336[_0x2d4ba1(0x32e)]({'options':{..._0x47d154,..._0x21d769},'args':[_0x59527e],'tdx':_0x235df0});gracefulExit(_0x5761a0);}),workflowCmd['command'](a2_0x1dd5bc(0x323))['description'](a2_0x1dd5bc(0x245))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1fe),a2_0x1dd5bc(0x449))[a2_0x1dd5bc(0x450)](async(_0x56c0cf,_0x4ea8de)=>{const _0x1afcf1=a2_0x1dd5bc,_0x1d2cc2=new WorkflowUseCommand(),_0x4ebc2a=program[_0x1afcf1(0x389)](),_0xb4e30e=await createTDXInstance(_0x4ebc2a),_0x1bcbe5=await _0x1d2cc2[_0x1afcf1(0x32e)]({'options':{..._0x4ebc2a,..._0x4ea8de},'args':_0x56c0cf?[_0x56c0cf]:[],'tdx':_0xb4e30e});gracefulExit(_0x1bcbe5);});const wfSecretsCmd=workflowCmd[a2_0x1dd5bc(0x284)]('secrets')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x238));function a2_0xa400(_0x1adee6,_0x40bd21){_0x1adee6=_0x1adee6-0x1b6;const _0x1499d9=a2_0x1499();let _0xa40090=_0x1499d9[_0x1adee6];return _0xa40090;}wfSecretsCmd[a2_0x1dd5bc(0x284)]('list\x20[project]')['description'](a2_0x1dd5bc(0x3fd))[a2_0x1dd5bc(0x450)](async(_0x3329b6,_0x262081)=>{const _0x310fff=a2_0x1dd5bc,_0x2faf56=new WorkflowSecretsListCommand(),_0x211647=program[_0x310fff(0x389)](),_0x56d00b=await createTDXInstance(_0x211647),_0x15a328=await _0x2faf56['run']({'options':{..._0x211647,..._0x262081},'args':_0x3329b6?[_0x3329b6]:[],'tdx':_0x56d00b});gracefulExit(_0x15a328);}),wfSecretsCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x286))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x43a))['action'](async(_0x227a8c,_0x2b8fb7)=>{const _0x479461=a2_0x1dd5bc,_0x1b9901=new WorkflowSecretsSetCommand(),_0x442124=program[_0x479461(0x389)](),_0x48c667=await createTDXInstance(_0x442124),_0x283cff=await _0x1b9901[_0x479461(0x32e)]({'options':{..._0x442124,..._0x2b8fb7},'args':_0x227a8c,'tdx':_0x48c667});gracefulExit(_0x283cff);}),wfSecretsCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3d3))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x1dd5bc(0x450)](async(_0x2d9ebc,_0x702227)=>{const _0x2621f5=a2_0x1dd5bc,_0x15332e=new WorkflowSecretsDeleteCommand(),_0x289619=program[_0x2621f5(0x389)](),_0x5276c0=await createTDXInstance(_0x289619),_0x1f1f8b=await _0x15332e[_0x2621f5(0x32e)]({'options':{..._0x289619,..._0x702227},'args':_0x2d9ebc,'tdx':_0x5276c0});gracefulExit(_0x1f1f8b);});const jobCmd=program['command'](a2_0x1dd5bc(0x317))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x26d)),jobListAction=async _0x4c7c59=>{const _0x2ab505=a2_0x1dd5bc,_0x40bfa5=new JobListCommand(),_0x10aaa4=program[_0x2ab505(0x389)](),_0x2c2603=await createTDXInstance(_0x10aaa4),_0x2d091e=await _0x40bfa5[_0x2ab505(0x32e)]({'options':{..._0x10aaa4,..._0x4c7c59},'args':[],'tdx':_0x2c2603});gracefulExit(_0x2d091e);};jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))['description'](a2_0x1dd5bc(0x336))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x30e))[a2_0x1dd5bc(0x450)](jobListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1fb),{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x272))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x1dd5bc(0x450)](jobListAction),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2d0))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x247))['action'](async(_0x17d8ac,_0x446149)=>{const _0x1b7cbf=a2_0x1dd5bc,_0x23d2f2=new JobShowCommand(),_0x5a28c6=program[_0x1b7cbf(0x389)](),_0x2c147f=await createTDXInstance(_0x5a28c6),_0x565d9b=await _0x23d2f2[_0x1b7cbf(0x32e)]({'options':{..._0x5a28c6,..._0x446149},'args':[_0x17d8ac],'tdx':_0x2c147f});gracefulExit(_0x565d9b);}),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x423))[a2_0x1dd5bc(0x388)]('Kill\x20a\x20job')[a2_0x1dd5bc(0x450)](async(_0x54c400,_0x1da83c)=>{const _0x2c2b5=a2_0x1dd5bc,_0x109ec4=new JobKillCommand(),_0x3964b2=program[_0x2c2b5(0x389)](),_0x2aa7ae=await createTDXInstance(_0x3964b2),_0xb96c99=await _0x109ec4[_0x2c2b5(0x32e)]({'options':{..._0x3964b2,..._0x1da83c},'args':[_0x54c400],'tdx':_0x2aa7ae});gracefulExit(_0xb96c99);}),jobCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3c4))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2dc))[a2_0x1dd5bc(0x207)]('--job-type\x20<type>',a2_0x1dd5bc(0x322),a2_0x1dd5bc(0x223))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1ba),a2_0x1dd5bc(0x32f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1f7),'Database\x20name\x20(default:\x20information_schema)',a2_0x1dd5bc(0x432))['option'](a2_0x1dd5bc(0x258),a2_0x1dd5bc(0x20b))[a2_0x1dd5bc(0x450)](async(_0x455a95,_0x5e9328)=>{const _0x789fec=a2_0x1dd5bc,_0x3e926b=new JobSubmitCommand(),_0x3ac996=program['opts'](),_0x34bf37=await createTDXInstance(_0x3ac996),_0x543e81=await _0x3e926b[_0x789fec(0x32e)]({'options':{..._0x3ac996,..._0x5e9328},'args':_0x455a95?[_0x455a95]:[],'tdx':_0x34bf37});gracefulExit(_0x543e81);}),jobCmd[a2_0x1dd5bc(0x284)]('result\x20<job-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1f2))[a2_0x1dd5bc(0x450)](async(_0x386c3a,_0x42a9df)=>{const _0x99444c=a2_0x1dd5bc,_0x18ddb7=new JobResultCommand(),_0x191467=program['opts'](),_0x47edb5=await createTDXInstance(_0x191467),_0x58cff5=await _0x18ddb7[_0x99444c(0x32e)]({'options':{..._0x191467,..._0x42a9df},'args':[_0x386c3a],'tdx':_0x47edb5});gracefulExit(_0x58cff5);});const scheduleCmd=jobCmd['command'](a2_0x1dd5bc(0x39e))['description'](a2_0x1dd5bc(0x3f5));scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))['description'](a2_0x1dd5bc(0x47e))[a2_0x1dd5bc(0x450)](async(_0x3ca4ae,_0x1b29b9)=>{const _0x14f6ae=a2_0x1dd5bc,_0x5743aa=new ScheduleListCommand(),_0x13bc46=program[_0x14f6ae(0x389)](),_0x79d5a5=await createTDXInstance(_0x13bc46),_0x2e4149=await _0x5743aa['run']({'options':{..._0x13bc46,..._0x1b29b9},'args':_0x3ca4ae?[_0x3ca4ae]:[],'tdx':_0x79d5a5});gracefulExit(_0x2e4149);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x41f))['description'](a2_0x1dd5bc(0x275))[a2_0x1dd5bc(0x450)](async(_0x2d0d53,_0x16ea0a)=>{const _0x59db48=a2_0x1dd5bc,_0xba084d=new ScheduleShowCommand(),_0x32d12e=program['opts'](),_0x500eaf=await createTDXInstance(_0x32d12e),_0x3b853a=await _0xba084d[_0x59db48(0x32e)]({'options':{..._0x32d12e,..._0x16ea0a},'args':[_0x2d0d53],'tdx':_0x500eaf});gracefulExit(_0x3b853a);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1c6))[a2_0x1dd5bc(0x388)]('Create\x20a\x20scheduled\x20query')[a2_0x1dd5bc(0x207)]('-d,\x20--database\x20<db>','Database\x20name\x20(required)')[a2_0x1dd5bc(0x207)]('--in\x20<db>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x1dd5bc(0x2c5)]('-f,\x20--file\x20<path>',a2_0x1dd5bc(0x32f))['option'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x2f8),'trino')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c1),a2_0x1dd5bc(0x3e0))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3da),a2_0x1dd5bc(0x256))['option'](a2_0x1dd5bc(0x21b),a2_0x1dd5bc(0x221))['option'](a2_0x1dd5bc(0x274),a2_0x1dd5bc(0x29b))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x373),a2_0x1dd5bc(0x2dd))[a2_0x1dd5bc(0x207)]('--engine-version\x20<version>','Query\x20engine\x20version')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x45d),a2_0x1dd5bc(0x269))['action'](async(_0x4d5af8,_0x35d0f1)=>{const _0x4aa506=a2_0x1dd5bc,_0x15c5d1=new ScheduleCreateCommand(),_0x484697=program['opts'](),_0x1235e1=await createTDXInstance(_0x484697);_0x35d0f1['in']&&(_0x35d0f1[_0x4aa506(0x23e)]=_0x35d0f1['in']);const _0x38c1a4=await _0x15c5d1[_0x4aa506(0x32e)]({'options':{..._0x484697,..._0x35d0f1},'args':[_0x4d5af8],'tdx':_0x1235e1});gracefulExit(_0x38c1a4);}),scheduleCmd['command'](a2_0x1dd5bc(0x25a))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x361))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1dc),a2_0x1dd5bc(0x409))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x460),a2_0x1dd5bc(0x464))[a2_0x1dd5bc(0x207)]('-f,\x20--file\x20<path>',a2_0x1dd5bc(0x32f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x2f8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c1),a2_0x1dd5bc(0x3e0))[a2_0x1dd5bc(0x207)]('--timezone\x20<tz>',a2_0x1dd5bc(0x38c))['option'](a2_0x1dd5bc(0x21b),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x274),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x373),a2_0x1dd5bc(0x2dd))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x468),a2_0x1dd5bc(0x2a9))['option']('--result\x20<url>',a2_0x1dd5bc(0x269))['action'](async(_0x5536a4,_0x4b35d9)=>{const _0x3b20cf=a2_0x1dd5bc,_0x34361e=new ScheduleUpdateCommand(),_0x3d42cf=program[_0x3b20cf(0x389)](),_0x36c037=await createTDXInstance(_0x3d42cf);_0x4b35d9['in']&&(_0x4b35d9[_0x3b20cf(0x23e)]=_0x4b35d9['in']);const _0x3e568a=await _0x34361e[_0x3b20cf(0x32e)]({'options':{..._0x3d42cf,..._0x4b35d9},'args':[_0x5536a4],'tdx':_0x36c037});gracefulExit(_0x3e568a);}),scheduleCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38a))['description'](a2_0x1dd5bc(0x429))[a2_0x1dd5bc(0x450)](async(_0x4fb190,_0x328e88)=>{const _0x2b5f99=a2_0x1dd5bc,_0x52c341=new ScheduleDeleteCommand(),_0x598c62=program[_0x2b5f99(0x389)](),_0x59e310=await createTDXInstance(_0x598c62),_0x114d55=await _0x52c341[_0x2b5f99(0x32e)]({'options':{..._0x598c62,..._0x328e88},'args':[_0x4fb190],'tdx':_0x59e310});gracefulExit(_0x114d55);}),scheduleCmd[a2_0x1dd5bc(0x284)]('run\x20<name>')['description'](a2_0x1dd5bc(0x360))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x253),a2_0x1dd5bc(0x3c7))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x447),a2_0x1dd5bc(0x310))[a2_0x1dd5bc(0x450)](async(_0x31b75e,_0x33c52b)=>{const _0x20ca80=a2_0x1dd5bc,_0x197f6b=new ScheduleRunCommand(),_0x1f21ce=program[_0x20ca80(0x389)](),_0x353b49=await createTDXInstance(_0x1f21ce),_0x941056=await _0x197f6b[_0x20ca80(0x32e)]({'options':{..._0x1f21ce,..._0x33c52b},'args':[_0x31b75e],'tdx':_0x353b49});gracefulExit(_0x941056);}),scheduleCmd['command'](a2_0x1dd5bc(0x391))[a2_0x1dd5bc(0x388)]('Show\x20schedule\x20execution\x20history')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x309),a2_0x1dd5bc(0x230))['option'](a2_0x1dd5bc(0x36f),a2_0x1dd5bc(0x1b7))[a2_0x1dd5bc(0x450)](async(_0x501374,_0x13efce)=>{const _0x39f9dc=a2_0x1dd5bc,_0x527951=new ScheduleHistoryCommand(),_0x1f11a1=program[_0x39f9dc(0x389)](),_0x50cbb6=await createTDXInstance(_0x1f11a1),_0x4cfc6e=await _0x527951[_0x39f9dc(0x32e)]({'options':{..._0x1f11a1,..._0x13efce},'args':[_0x501374],'tdx':_0x50cbb6});gracefulExit(_0x4cfc6e);});const llmCmd=program[a2_0x1dd5bc(0x284)]('llm')[a2_0x1dd5bc(0x388)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bf))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3b4))[a2_0x1dd5bc(0x450)](async(_0x42c8ff,_0x2d87fa)=>{const _0x51498d=a2_0x1dd5bc,_0xb38c72=new LLMUseCommand(),_0x3b38d4=program[_0x51498d(0x389)](),_0x3b2ae6=await createTDXInstance(_0x3b38d4),_0x1030e5=await _0xb38c72[_0x51498d(0x32e)]({'options':{..._0x3b38d4,..._0x2d87fa},'args':[_0x42c8ff],'tdx':_0x3b2ae6});gracefulExit(_0x1030e5);}),llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3c6))[a2_0x1dd5bc(0x450)](async _0xe36c1a=>{const _0x2ddb8b=a2_0x1dd5bc,_0x45a819=new LLMModelsCommand(),_0x411e5b=program[_0x2ddb8b(0x389)](),_0xcf04e2=await createTDXInstance(_0x411e5b),_0x563d03=await _0x45a819[_0x2ddb8b(0x32e)]({'options':{..._0x411e5b,..._0xe36c1a},'args':[],'tdx':_0xcf04e2});gracefulExit(_0x563d03);});const projectCmd=llmCmd['command'](a2_0x1dd5bc(0x36c))[a2_0x1dd5bc(0x388)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x39fb36,_0xd6e4b6)=>{const _0xdabc13=a2_0x1dd5bc,_0x1cdd48=new LLMProjectsCommand(),_0x57d0b4=program[_0xdabc13(0x389)](),_0x552fdf=await createTDXInstance(_0x57d0b4),_0x24a985=await _0x1cdd48[_0xdabc13(0x32e)]({'options':{..._0x57d0b4,..._0xd6e4b6},'args':_0x39fb36?[_0x39fb36]:[],'tdx':_0x552fdf});gracefulExit(_0x24a985);};projectCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x375))[a2_0x1dd5bc(0x450)](llmProjectListAction),llmCmd[a2_0x1dd5bc(0x284)]('projects\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x403))[a2_0x1dd5bc(0x450)](llmProjectListAction),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1c6))['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x1c5))[a2_0x1dd5bc(0x450)](async(_0x5ba08a,_0x1e47ad)=>{const _0x43b099=a2_0x1dd5bc,_0xcbc92e=new LLMProjectCreateCommand(),_0x59fc8b=program['opts'](),_0x5775c1=await createTDXInstance(_0x59fc8b),_0x499952=await _0xcbc92e[_0x43b099(0x32e)]({'options':{..._0x59fc8b,..._0x1e47ad},'args':[_0x5ba08a],'tdx':_0x5775c1});gracefulExit(_0x499952);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38a))['description'](a2_0x1dd5bc(0x316))['action'](async(_0x45bb41,_0x1147b4)=>{const _0x133381=a2_0x1dd5bc,_0x21518e=new LLMProjectDeleteCommand(),_0x4a5e2d=program[_0x133381(0x389)](),_0x188a68=await createTDXInstance(_0x4a5e2d),_0x566ea4=await _0x21518e[_0x133381(0x32e)]({'options':{..._0x4a5e2d,..._0x1147b4},'args':[_0x45bb41],'tdx':_0x188a68});gracefulExit(_0x566ea4);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2d4))['description'](a2_0x1dd5bc(0x44c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x44a),a2_0x1dd5bc(0x3a5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x2ea))[a2_0x1dd5bc(0x450)](async(_0x4d127e,_0x31c530)=>{const _0x2e17d0=a2_0x1dd5bc,_0x5328c7=new LLMProjectBackupCommand(),_0x35b487=program[_0x2e17d0(0x389)](),_0x3099d4=await createTDXInstance(_0x35b487),_0x33f6e6=await _0x5328c7[_0x2e17d0(0x32e)]({'options':{..._0x35b487,..._0x31c530},'args':[_0x4d127e],'tdx':_0x3099d4});gracefulExit(_0x33f6e6);}),projectCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3fb))[a2_0x1dd5bc(0x388)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x343),a2_0x1dd5bc(0x3d5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x1dd))[a2_0x1dd5bc(0x450)](async(_0x357b60,_0x3e0bde)=>{const _0x2f42cf=a2_0x1dd5bc,_0x35077f=new LLMProjectRestoreCommand(),_0x4ae45c=program[_0x2f42cf(0x389)](),_0x115e54=await createTDXInstance(_0x4ae45c),_0x3d36d0=await _0x35077f[_0x2f42cf(0x32e)]({'options':{..._0x4ae45c,..._0x3e0bde},'args':[_0x357b60],'tdx':_0x115e54});gracefulExit(_0x3d36d0);});const llmAgentListAction=async(_0x4fa3f1,_0x1892dc)=>{const _0x1b858d=a2_0x1dd5bc,_0xd0d141=new LLMAgentsCommand(),_0x2946fa=program[_0x1b858d(0x389)](),_0x594e21=await createTDXInstance(_0x2946fa),_0x2d7a5f=await _0xd0d141[_0x1b858d(0x32e)]({'options':{..._0x2946fa,..._0x1892dc},'args':_0x4fa3f1?[_0x4fa3f1]:[],'tdx':_0x594e21});gracefulExit(_0x2d7a5f);};llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bc))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1fc))['action'](llmAgentListAction),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2bc))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1fc))['action'](llmAgentListAction),llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1e5))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x201))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3ae),a2_0x1dd5bc(0x30b))[a2_0x1dd5bc(0x450)](async(_0x9f91cc,_0x56908c)=>{const _0x56b1ff=a2_0x1dd5bc,_0x30522d=new LLMHistoryCommand(),_0x573b62=program['opts'](),_0xbcd513=await createTDXInstance(_0x573b62),_0x5136c1=await _0x30522d[_0x56b1ff(0x32e)]({'options':{..._0x573b62,..._0x56908c},'args':_0x9f91cc?[_0x9f91cc]:[],'tdx':_0xbcd513});gracefulExit(_0x5136c1);});isExperimentalAvailable()&&llmCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x431))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x34d))['action'](async(_0x403d94,_0x189e0d)=>{const _0x376411=a2_0x1dd5bc,_0x1749c2=new LLMLogCommand(),_0x169f80=program['opts'](),_0x1c52f4=await createTDXInstance(_0x169f80),_0x414f4f=await _0x1749c2[_0x376411(0x32e)]({'options':{..._0x169f80,..._0x189e0d},'args':[_0x403d94],'tdx':_0x1c52f4});gracefulExit(_0x414f4f);});program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x453))[a2_0x1dd5bc(0x3ad)]('[options]\x20--\x20[claude-code-args...]')[a2_0x1dd5bc(0x388)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2ae),a2_0x1dd5bc(0x27b))['option']('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d4),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x1dd5bc(0x265)]()[a2_0x1dd5bc(0x371)](!![])[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x405))[a2_0x1dd5bc(0x450)](async(_0x339ba3,_0x4baa3c)=>{const _0x658a57=a2_0x1dd5bc,_0x67d5b=program['opts'](),_0x246ce3=Array['isArray'](_0x339ba3)?_0x339ba3:[];if(_0x246ce3[0x0]===_0x658a57(0x3e2)){const _0x31d723=new ClaudeStatuslineCommand(),_0x1c1a1f=await _0x31d723['run']({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3[_0x658a57(0x289)](0x1),'tdx':null});gracefulExit(_0x1c1a1f);}if(_0x246ce3[0x0]===_0x658a57(0x3ad)){const _0x344db8=new ClaudeUsageCommand(),_0x5724a4=await _0x344db8[_0x658a57(0x32e)]({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3[_0x658a57(0x289)](0x1),'tdx':null});gracefulExit(_0x5724a4);}const _0x33bd0e=new ClaudeCommand(),_0x56a9fb=await createTDXInstance(_0x67d5b),_0x5b25f8=await _0x33bd0e[_0x658a57(0x32e)]({'options':{..._0x67d5b,..._0x4baa3c},'args':_0x246ce3,'tdx':_0x56a9fb});gracefulExit(_0x5b25f8);}),program[a2_0x1dd5bc(0x284)]('use\x20[resource]\x20[value]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x205))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1fe),a2_0x1dd5bc(0x3ed))['option'](a2_0x1dd5bc(0x233),a2_0x1dd5bc(0x328))[a2_0x1dd5bc(0x450)](async(_0xed8d3e,_0x4a6f49,_0x5124a0)=>{const _0x1e5411=a2_0x1dd5bc,_0x3b681b=new UseCommand(),_0xae505a=program[_0x1e5411(0x389)](),_0x23aa83=[];if(_0xed8d3e)_0x23aa83[_0x1e5411(0x416)](_0xed8d3e);if(_0x4a6f49)_0x23aa83['push'](_0x4a6f49);const _0xdf2fc=_0xed8d3e===_0x1e5411(0x350),_0x26f099=_0xdf2fc?await createTDXInstance(_0xae505a):null,_0x1003fe=await _0x3b681b[_0x1e5411(0x32e)]({'options':{..._0xae505a,..._0x5124a0},'args':_0x23aa83,'tdx':_0x26f099});gracefulExit(_0x1003fe);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x45f))['description'](a2_0x1dd5bc(0x321))[a2_0x1dd5bc(0x450)](async _0x3cb2eb=>{const _0x5eee56=a2_0x1dd5bc,_0x255db2=new StatusCommand(),_0x579f77=program['opts'](),_0x2626a5=await createTDXInstance(_0x579f77),_0x38263a=await _0x255db2[_0x5eee56(0x32e)]({'options':{..._0x579f77,..._0x3cb2eb},'args':[],'tdx':_0x2626a5});gracefulExit(_0x38263a);}),program['command'](a2_0x1dd5bc(0x38d))[a2_0x1dd5bc(0x388)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')[a2_0x1dd5bc(0x207)]('--dry-run','Check\x20for\x20updates\x20without\x20installing')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3f8),a2_0x1dd5bc(0x43c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x35f),a2_0x1dd5bc(0x35a))[a2_0x1dd5bc(0x450)](async(_0x1a0a09,_0x51fb25)=>{const _0x2c8864=a2_0x1dd5bc,_0x13ab5d=new UpgradeCommand(),_0xae932b=program['opts'](),_0x2d410d=await _0x13ab5d[_0x2c8864(0x32e)]({'options':{..._0xae932b,..._0x51fb25},'args':_0x1a0a09?[_0x1a0a09]:[],'tdx':null});gracefulExit(_0x2d410d);}),program['command'](a2_0x1dd5bc(0x398))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x37f))['option'](a2_0x1dd5bc(0x233),a2_0x1dd5bc(0x1cf))[a2_0x1dd5bc(0x450)](async(_0x5f4fa6,_0x32a648)=>{const _0x318351=a2_0x1dd5bc,_0x1e9dbd=new UnsetCommand(),_0x3d76b7=program[_0x318351(0x389)](),_0x2d9e9c=await _0x1e9dbd['run']({'options':{..._0x3d76b7,..._0x32a648},'args':[_0x5f4fa6],'tdx':null});gracefulExit(_0x2d9e9c);}),program['command'](a2_0x1dd5bc(0x355))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3bd))['option']('--last',a2_0x1dd5bc(0x3e7))[a2_0x1dd5bc(0x450)](async _0x2ac51c=>{const _0x1be24f=a2_0x1dd5bc,_0x47638c=new ChatsCommand(),_0x415740=program['opts'](),_0x4f1b17=await createTDXInstance(_0x415740),_0x549e28=await _0x47638c[_0x1be24f(0x32e)]({'options':{..._0x415740,..._0x2ac51c},'args':[],'tdx':_0x4f1b17});gracefulExit(_0x549e28);});const authCmd=program['command']('auth')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x202));async function runAuthStatusCommand(_0x5a0f5a){const _0x2438fc=a2_0x1dd5bc,_0x420340=new AuthStatusCommand(),_0x2da9df=program['opts'](),_0x1c51e1=await createTDXInstance(_0x2da9df),_0x544c43=await _0x420340[_0x2438fc(0x32e)]({'options':{..._0x2da9df,..._0x5a0f5a},'args':[],'tdx':_0x1c51e1});gracefulExit(_0x544c43);}authCmd[a2_0x1dd5bc(0x450)](runAuthStatusCommand),authCmd[a2_0x1dd5bc(0x284)]('status')[a2_0x1dd5bc(0x388)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x1dd5bc(0x450)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x1dd5bc(0x388)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x318))[a2_0x1dd5bc(0x450)](async _0x4f4934=>{const _0x543f67=a2_0x1dd5bc,_0x5ae70a=new AuthSetupCommand(),_0x4ad27=program[_0x543f67(0x389)](),_0x1860ba=await createTDXInstance(_0x4ad27),_0x5b61d7=await _0x5ae70a[_0x543f67(0x32e)]({'options':{..._0x4ad27,..._0x4f4934},'args':[],'tdx':_0x1860ba});gracefulExit(_0x5b61d7);}),authCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x486))[a2_0x1dd5bc(0x388)]('Login\x20via\x20OAuth\x20(dev\x20sites\x20only)')[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a')[a2_0x1dd5bc(0x450)](async _0x128079=>{const _0x5b8384=a2_0x1dd5bc,_0x1171d4=new AuthLoginCommand(),_0x1d3de0=program[_0x5b8384(0x389)](),_0x493b63=await _0x1171d4[_0x5b8384(0x32e)]({'options':{..._0x1d3de0,..._0x128079},'args':[],'tdx':null});gracefulExit(_0x493b63);}),authCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x28f))['description'](a2_0x1dd5bc(0x340))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x479))[a2_0x1dd5bc(0x450)](async _0x57ae93=>{const _0x399612=a2_0x1dd5bc,_0x39401a=new AuthClearCommand(),_0x3ee40a=program[_0x399612(0x389)](),_0x672045=await _0x39401a['run']({'options':{..._0x3ee40a,..._0x57ae93},'args':[],'tdx':null});gracefulExit(_0x672045);});const userCmd=program[a2_0x1dd5bc(0x284)]('user')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x312)),userListAction=async _0x2e4190=>{const _0x1d9c91=a2_0x1dd5bc,_0x54fc88=new UserListCommand(),_0x522391=program[_0x1d9c91(0x389)](),_0x1da8c8=await createTDXInstance(_0x522391),_0x3751c3=await _0x54fc88[_0x1d9c91(0x32e)]({'options':{..._0x522391,..._0x2e4190},'args':[],'tdx':_0x1da8c8});gracefulExit(_0x3751c3);};userCmd[a2_0x1dd5bc(0x450)](async _0xa5731d=>{const _0x485cfb=a2_0x1dd5bc,_0x83506d=new UserCommand(),_0x3a0c5a=program[_0x485cfb(0x389)](),_0x1e2761=await createTDXInstance(_0x3a0c5a),_0x30e5a8=await _0x83506d[_0x485cfb(0x32e)]({'options':{..._0x3a0c5a,..._0xa5731d},'args':[],'tdx':_0x1e2761});gracefulExit(_0x30e5a8);}),userCmd[a2_0x1dd5bc(0x284)]('list')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f7))[a2_0x1dd5bc(0x450)](userListAction),program[a2_0x1dd5bc(0x284)]('users')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ee))[a2_0x1dd5bc(0x450)](userListAction);const policyCmd=program['command'](a2_0x1dd5bc(0x219))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x211));policyCmd[a2_0x1dd5bc(0x450)](async _0x59cac5=>{const _0x3c02c3=a2_0x1dd5bc,_0x2c2c9b=new PolicyCommand(),_0x1b0466=program[_0x3c02c3(0x389)](),_0x4e9394=await createTDXInstance(_0x1b0466),_0x52145a=await _0x2c2c9b[_0x3c02c3(0x32e)]({'options':{..._0x1b0466,..._0x59cac5},'args':[],'tdx':_0x4e9394});gracefulExit(_0x52145a);}),policyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x22f))[a2_0x1dd5bc(0x450)](async _0x163f29=>{const _0x517330=a2_0x1dd5bc,_0x2608ff=new PolicyListCommand(),_0x4797b2=program[_0x517330(0x389)](),_0x26e98a=await createTDXInstance(_0x4797b2),_0x5dd5ff=await _0x2608ff[_0x517330(0x32e)]({'options':{..._0x4797b2,..._0x163f29},'args':[],'tdx':_0x26e98a});gracefulExit(_0x5dd5ff);}),policyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x381))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48b))['action'](async(_0x425d58,_0x31ae76)=>{const _0x39876b=a2_0x1dd5bc,_0x57cc02=new PolicyShowCommand(),_0x4f2a1b=program[_0x39876b(0x389)](),_0x38e34e=await createTDXInstance(_0x4f2a1b),_0x3ee5bb=await _0x57cc02[_0x39876b(0x32e)]({'options':{..._0x4f2a1b,..._0x31ae76},'args':[_0x425d58],'tdx':_0x38e34e});gracefulExit(_0x3ee5bb);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3a2))[a2_0x1dd5bc(0x388)]('List\x20all\x20available\x20profiles')[a2_0x1dd5bc(0x450)](async _0x4842e1=>{const _0x434dfc=a2_0x1dd5bc,_0x22afc4=new ProfilesCommand(),_0x59dfb5=program[_0x434dfc(0x389)](),_0x395475=await _0x22afc4[_0x434dfc(0x32e)]({'options':{..._0x59dfb5,..._0x4842e1},'args':[],'tdx':null});gracefulExit(_0x395475);});const profileCmd=program[a2_0x1dd5bc(0x284)]('profile')['description'](a2_0x1dd5bc(0x33c));profileCmd[a2_0x1dd5bc(0x450)](()=>{const _0x116a84=a2_0x1dd5bc;profileCmd[_0x116a84(0x341)]();});const profileListAction=async _0x836550=>{const _0x218ded=a2_0x1dd5bc,_0x8b16fd=new ProfilesCommand(),_0x5c6f80=program[_0x218ded(0x389)](),_0x3a0364=await _0x8b16fd[_0x218ded(0x32e)]({'options':{..._0x5c6f80,..._0x836550},'args':[],'tdx':null});gracefulExit(_0x3a0364);};profileCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47d))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x34f))['action'](profileListAction),profileCmd[a2_0x1dd5bc(0x284)]('create\x20[name]')['description'](a2_0x1dd5bc(0x273))[a2_0x1dd5bc(0x25f)]('after',a2_0x1dd5bc(0x291))['action'](async(_0x11d8a7,_0xdf1f87)=>{const _0x18dffc=a2_0x1dd5bc,_0x118791=new ProfileCreateCommand(),_0x5854b3=program[_0x18dffc(0x389)](),_0x7537a3=await _0x118791[_0x18dffc(0x32e)]({'options':{..._0x5854b3,..._0xdf1f87},'args':_0x11d8a7?[_0x11d8a7]:[],'tdx':null});gracefulExit(_0x7537a3);}),profileCmd[a2_0x1dd5bc(0x284)]('remove\x20<name>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x41e))[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x3ea))[a2_0x1dd5bc(0x450)](async(_0x556520,_0x1bbf3f)=>{const _0x327035=a2_0x1dd5bc,_0x4d1d4e=new ProfileRemoveCommand(),_0x3cf3d0=program['opts'](),_0xc4d84e=await _0x4d1d4e[_0x327035(0x32e)]({'options':{..._0x3cf3d0,..._0x1bbf3f},'args':[_0x556520],'tdx':null});gracefulExit(_0xc4d84e);}),profileCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x27e))['description'](a2_0x1dd5bc(0x31c))[a2_0x1dd5bc(0x25f)](a2_0x1dd5bc(0x287),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x1dd5bc(0x450)](async(_0x4f4ed2,_0x3eb615)=>{const _0x36e4c3=a2_0x1dd5bc,_0x593f02=new ProfileSetCommand(),_0x47f44c=program[_0x36e4c3(0x389)](),_0x274fab=await _0x593f02['run']({'options':{..._0x47f44c,..._0x3eb615},'args':[_0x4f4ed2],'tdx':null});gracefulExit(_0x274fab);}),profileCmd['command'](a2_0x1dd5bc(0x3f6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a8))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x233),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['addHelpText'](a2_0x1dd5bc(0x287),a2_0x1dd5bc(0x427))[a2_0x1dd5bc(0x450)](async(_0x1cf69e,_0x1ca33c)=>{const _0x39471c=a2_0x1dd5bc,_0x990847=new ProfileUseCommand(),_0x5ed74a=program[_0x39471c(0x389)](),_0x2a01d0=await _0x990847[_0x39471c(0x32e)]({'options':{..._0x5ed74a,..._0x1ca33c},'args':[_0x1cf69e],'tdx':null});gracefulExit(_0x2a01d0);});const engageCmd=program[a2_0x1dd5bc(0x284)]('engage')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2b2)),createEngageAction=_0x3b7c31=>{return async(_0x3ba7f7,_0x4bfbe5)=>{const _0x5ae297=a2_0xa400,_0x43b924=new _0x3b7c31(),_0x42aa95=program[_0x5ae297(0x389)](),_0x530010=await createTDXInstance(_0x42aa95),_0x445626=await _0x43b924['run']({'options':{..._0x42aa95,..._0x4bfbe5},'args':[_0x3ba7f7],'tdx':_0x530010});gracefulExit(_0x445626);};},createEngageNoArgAction=_0x5aecbd=>{return async _0xb9305d=>{const _0x395c23=a2_0xa400,_0x156b8e=new _0x5aecbd(),_0x55af8b=program[_0x395c23(0x389)](),_0x4437b4=await createTDXInstance(_0x55af8b),_0x47b4d0=await _0x156b8e[_0x395c23(0x32e)]({'options':{..._0x55af8b,..._0xb9305d},'args':[],'tdx':_0x4437b4});gracefulExit(_0x47b4d0);};},createEngageListAction=_0x80fa07=>{return async(_0x2cd699,_0xe85cf3)=>{const _0x577184=a2_0xa400,_0x1e5c46=new _0x80fa07(),_0xeb3bac=program['opts'](),_0x1581fc=await createTDXInstance(_0xeb3bac),_0x31c899=await _0x1e5c46[_0x577184(0x32e)]({'options':{..._0xeb3bac,..._0xe85cf3},'args':_0x2cd699?[_0x2cd699]:[],'tdx':_0x1581fc});gracefulExit(_0x31c899);};},campaignCmd=engageCmd[a2_0x1dd5bc(0x284)]('campaign')['description'](a2_0x1dd5bc(0x3a4));campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x242))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x20d))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3b5))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x20d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x1dd5bc(0x284)]('show\x20<name-or-id>')[a2_0x1dd5bc(0x388)]('Show\x20campaign\x20details')['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x1dd5bc(0x249))['description'](a2_0x1dd5bc(0x465))['requiredOption'](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2b4))['requiredOption'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x3ee))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Campaign\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x23b))['option'](a2_0x1dd5bc(0x268),a2_0x1dd5bc(0x3e6))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3bf),a2_0x1dd5bc(0x452))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x392),a2_0x1dd5bc(0x1d3))['option']('--timezone\x20<tz>',a2_0x1dd5bc(0x24a))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x1dd5bc(0x2ba))['description'](a2_0x1dd5bc(0x1bf))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x24f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Campaign\x20description')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2da),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x268),a2_0x1dd5bc(0x3e6))[a2_0x1dd5bc(0x207)]('--json-columns\x20<cols>',a2_0x1dd5bc(0x452))['option'](a2_0x1dd5bc(0x392),a2_0x1dd5bc(0x1d3))['option']('--timezone\x20<tz>',a2_0x1dd5bc(0x24a))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x293))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))['option']('--yes',a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x39c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ac))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x397))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x38f))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x298))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x1dd5bc(0x2fa))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x419))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x1dd5bc(0x31a))['description'](a2_0x1dd5bc(0x3a8))[a2_0x1dd5bc(0x207)]('--workspace\x20<name>',a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--name\x20<name>',a2_0x1dd5bc(0x2de))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x30a))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPullCommand)),campaignCmd['command'](a2_0x1dd5bc(0x467))['description'](a2_0x1dd5bc(0x3f3))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x399))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)]('Validate\x20campaign\x20YAML\x20files\x20locally')[a2_0x1dd5bc(0x207)]('--verbose',a2_0x1dd5bc(0x44f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x462))['description'](a2_0x1dd5bc(0x26f));alwaysOnCampaignCmd['command'](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f9))['option'](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))['option']('--status\x20<status>',a2_0x1dd5bc(0x1cc))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd['command'](a2_0x1dd5bc(0x3d9))[a2_0x1dd5bc(0x388)]('List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x1f1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1c8),a2_0x1dd5bc(0x1cc))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd['command'](a2_0x1dd5bc(0x294))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x379))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x249))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x483))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2b4))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x426),a2_0x1dd5bc(0x3ee))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)]('--description\x20<desc>',a2_0x1dd5bc(0x2ec))['option'](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x352))['option'](a2_0x1dd5bc(0x1ca),a2_0x1dd5bc(0x20f))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)]('update\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1e7))['requiredOption'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))['option']('--name\x20<name>',a2_0x1dd5bc(0x24f))[a2_0x1dd5bc(0x207)]('--description\x20<desc>',a2_0x1dd5bc(0x2ec))['option'](a2_0x1dd5bc(0x2da),a2_0x1dd5bc(0x352))[a2_0x1dd5bc(0x207)]('--enable-utm-tracking',a2_0x1dd5bc(0x20f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28b))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x356),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x39c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45c))['requiredOption']('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3ac))['description']('Pause\x20an\x20always-on\x20campaign')['requiredOption'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)]('resume\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x255))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x37e))['description'](a2_0x1dd5bc(0x46b))[a2_0x1dd5bc(0x2c5)]('--workspace\x20<name>',a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x207)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2fa))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x456))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x23c))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x3f9))[a2_0x1dd5bc(0x450)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x1d2))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1d1));templateCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1ff))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageTemplatesCommand)),engageCmd['command'](a2_0x1dd5bc(0x1d8))['description'](a2_0x1dd5bc(0x3ef))[a2_0x1dd5bc(0x207)]('--workspace\x20<name>',a2_0x1dd5bc(0x209))['action'](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x294))['description'](a2_0x1dd5bc(0x421))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))['option'](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x1dd5bc(0x249))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1c4))[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),'Template\x20name')[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x1cb),a2_0x1dd5bc(0x40d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x21a),'HTML\x20template\x20content')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x261),a2_0x1dd5bc(0x380))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),'Workspace\x20name\x20(required)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x46a),a2_0x1dd5bc(0x3fe))['option'](a2_0x1dd5bc(0x38e),a2_0x1dd5bc(0x311),_0x1ac05e=>{const _0x20e887=a2_0x1dd5bc;if(![_0x20e887(0x2a4),'grapesjs'][_0x20e887(0x342)](_0x1ac05e))throw new SDKError(ErrorCode[_0x20e887(0x1b6)],_0x20e887(0x282)+_0x1ac05e+_0x20e887(0x34e));return _0x1ac05e;})[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ff))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x1c9))['option'](a2_0x1dd5bc(0x1cb),a2_0x1dd5bc(0x40d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x21a),a2_0x1dd5bc(0x347))['option'](a2_0x1dd5bc(0x261),a2_0x1dd5bc(0x380))['option'](a2_0x1dd5bc(0x46a),a2_0x1dd5bc(0x3fe))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x451))['description'](a2_0x1dd5bc(0x3c1))['option'](a2_0x1dd5bc(0x271),'Workspace\x20name')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),'Pull\x20specific\x20template\x20by\x20name')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x20e),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x207)]('--dry-run','Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command'](a2_0x1dd5bc(0x467))[a2_0x1dd5bc(0x388)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)]('-y,\x20--yes',a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x443),a2_0x1dd5bc(0x399))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x305))['description'](a2_0x1dd5bc(0x458))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x335),a2_0x1dd5bc(0x44f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x475))['option'](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x356),a2_0x1dd5bc(0x220))[a2_0x1dd5bc(0x450)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x1dd5bc(0x284)]('workspace')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2be));workspaceCmd['command']('list\x20[pattern]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3c5))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command'](a2_0x1dd5bc(0x2b3))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x45a))[a2_0x1dd5bc(0x450)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x1dd5bc(0x294))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x473))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1d6),a2_0x1dd5bc(0x278))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x1dd5bc(0x284)]('create')['description']('Create\x20a\x20workspace')[a2_0x1dd5bc(0x2c5)](a2_0x1dd5bc(0x3e8),'Workspace\x20name')['option'](a2_0x1dd5bc(0x345),a2_0x1dd5bc(0x1e0))[a2_0x1dd5bc(0x450)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2ba))['description'](a2_0x1dd5bc(0x33f))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3e8),a2_0x1dd5bc(0x2d9))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x345),'Workspace\x20description')[a2_0x1dd5bc(0x450)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2c7))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x408))[a2_0x1dd5bc(0x207)]('--yes',a2_0x1dd5bc(0x220))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x1dd5bc(0x3f6))['description'](a2_0x1dd5bc(0x46f))[a2_0x1dd5bc(0x450)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x36e))[a2_0x1dd5bc(0x388)]('Delivery\x20operations\x20(email\x20senders)');deliveryCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x213))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1df))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x271),a2_0x1dd5bc(0x209))[a2_0x1dd5bc(0x450)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x301))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ca)),connectionListAction=async _0x1d5049=>{const _0x6694e1=a2_0x1dd5bc,_0x227b3d=new ConnectionListCommand(),_0xa901cd=program[_0x6694e1(0x389)](),_0x5e94be=await createTDXInstance(_0xa901cd),_0x1ae97a=await _0x227b3d[_0x6694e1(0x32e)]({'options':{..._0xa901cd,..._0x1d5049},'args':[],'tdx':_0x5e94be});gracefulExit(_0x1ae97a);};connectionCmd['command'](a2_0x1dd5bc(0x47d))['description']('List\x20all\x20data\x20connections')[a2_0x1dd5bc(0x450)](connectionListAction),program['command']('connections',{'hidden':!![]})[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3e4))[a2_0x1dd5bc(0x450)](connectionListAction),connectionCmd['command'](a2_0x1dd5bc(0x41f))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x299))['action'](async(_0x265bba,_0x4d570b)=>{const _0x1854ef=a2_0x1dd5bc,_0x537004=new ConnectionShowCommand(),_0x7f418c=program[_0x1854ef(0x389)](),_0x4c59d7=await createTDXInstance(_0x7f418c),_0x3ecb0e=await _0x537004[_0x1854ef(0x32e)]({'options':{..._0x7f418c,..._0x4d570b},'args':[_0x265bba],'tdx':_0x4c59d7});gracefulExit(_0x3ecb0e);}),connectionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x331))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f3))[a2_0x1dd5bc(0x450)](async(_0x42c0cb,_0x552fa0)=>{const _0x18ed92=a2_0x1dd5bc,_0x1c226b=new ConnectionSchemaCommand(),_0x2ede8b=program[_0x18ed92(0x389)](),_0x270771=await createTDXInstance(_0x2ede8b),_0xd62da8=await _0x1c226b[_0x18ed92(0x32e)]({'options':{..._0x2ede8b,..._0x552fa0},'args':[_0x42c0cb],'tdx':_0x270771});gracefulExit(_0xd62da8);}),connectionCmd[a2_0x1dd5bc(0x284)]('types')['description'](a2_0x1dd5bc(0x1e3))[a2_0x1dd5bc(0x450)](async _0x350c06=>{const _0x5b2e24=a2_0x1dd5bc,_0x59aa6e=new ConnectionTypesCommand(),_0x3be475=program[_0x5b2e24(0x389)](),_0x1843cc=await createTDXInstance(_0x3be475),_0x372764=await _0x59aa6e[_0x5b2e24(0x32e)]({'options':{..._0x3be475,..._0x350c06},'args':[],'tdx':_0x1843cc});gracefulExit(_0x372764);}),connectionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x30c))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a0))[a2_0x1dd5bc(0x450)](async(_0x446bfc,_0x1ce953)=>{const _0x10035c=a2_0x1dd5bc,_0xab44c8=new ConnectionSettingsCommand(),_0x41702b=program[_0x10035c(0x389)](),_0x46ff1a=await createTDXInstance(_0x41702b),_0x1e1269=await _0xab44c8[_0x10035c(0x32e)]({'options':{..._0x41702b,..._0x1ce953},'args':[_0x446bfc],'tdx':_0x46ff1a});gracefulExit(_0x1e1269);});const journeyCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x212))['description']('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x21e067,_0x59b57b)=>{const _0x56cc26=a2_0x1dd5bc,_0x4d9608=new JourneyListCommand(),_0x247c09=program[_0x56cc26(0x389)](),_0x328dca=await createTDXInstance(_0x247c09),_0x4edcbc=await _0x4d9608[_0x56cc26(0x32e)]({'options':{..._0x247c09,..._0x59b57b},'args':_0x21e067?[_0x21e067]:[],'tdx':_0x328dca});gracefulExit(_0x4edcbc);};journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x47b))[a2_0x1dd5bc(0x388)]('List\x20journeys\x20in\x20current\x20context')[a2_0x1dd5bc(0x450)](journeyListAction),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x353))[a2_0x1dd5bc(0x388)]('Show\x20journey\x20details')['option']('-w,\x20--web',a2_0x1dd5bc(0x31d))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x415),a2_0x1dd5bc(0x21e))['action'](async(_0x44c366,_0x852a54)=>{const _0x2b61bf=a2_0x1dd5bc,_0x5c2ee1=new JourneyViewCommand(),_0x3f0a94=program[_0x2b61bf(0x389)](),_0x2742d5=await createTDXInstance(_0x3f0a94),_0x55f807=await _0x5c2ee1[_0x2b61bf(0x32e)]({'options':{..._0x3f0a94,..._0x852a54},'args':[_0x44c366],'tdx':_0x2742d5});gracefulExit(_0x55f807);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3d6))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x459))[a2_0x1dd5bc(0x207)]('--stage\x20<name>',a2_0x1dd5bc(0x436))[a2_0x1dd5bc(0x207)]('--from\x20<date>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2b6),a2_0x1dd5bc(0x1ea))['option'](a2_0x1dd5bc(0x3d2),a2_0x1dd5bc(0x307))[a2_0x1dd5bc(0x450)](async(_0x2a2e28,_0x2dc00d)=>{const _0x2caafc=a2_0x1dd5bc,_0x3f946d=new JourneyStatsCommand(),_0x8d7bbf=program[_0x2caafc(0x389)](),_0x2c62b7=await createTDXInstance(_0x8d7bbf),_0x232acd=await _0x3f946d['run']({'options':{..._0x8d7bbf,..._0x2dc00d},'args':[_0x2a2e28],'tdx':_0x2c62b7});gracefulExit(_0x232acd);}),journeyCmd[a2_0x1dd5bc(0x284)]('traffic\x20<name-or-path>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x48a))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x426),'Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x2d7),a2_0x1dd5bc(0x34c))[a2_0x1dd5bc(0x207)]('--to\x20<date>',a2_0x1dd5bc(0x1ea))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x418),'Maximum\x20number\x20of\x20nodes',_0x3bdde0=>{const _0x15b96e=a2_0x1dd5bc,_0x15a583=parseInt(_0x3bdde0,0xa);if(isNaN(_0x15a583))throw new Error(_0x15b96e(0x1c2)+_0x3bdde0+_0x15b96e(0x283));return _0x15a583;})[a2_0x1dd5bc(0x450)](async(_0x35db2a,_0x20ea92)=>{const _0x48b8ee=a2_0x1dd5bc,_0x396609=new JourneyTrafficCommand(),_0x5455cb=program[_0x48b8ee(0x389)](),_0x5e2127=await createTDXInstance(_0x5455cb),_0x1e56cf=await _0x396609[_0x48b8ee(0x32e)]({'options':{..._0x5455cb,..._0x20ea92},'args':[_0x35db2a],'tdx':_0x5e2127});gracefulExit(_0x1e56cf);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x367))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x471))[a2_0x1dd5bc(0x450)](async(_0x549532,_0x546fda)=>{const _0x23daae=a2_0x1dd5bc,_0x475b0e=new JourneyPauseCommand(),_0x11b710=program[_0x23daae(0x389)](),_0x27021e=await createTDXInstance(_0x11b710),_0x2b9e3c=await _0x475b0e[_0x23daae(0x32e)]({'options':{..._0x11b710,..._0x546fda},'args':[_0x549532],'tdx':_0x27021e});gracefulExit(_0x2b9e3c);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x313))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x28c))[a2_0x1dd5bc(0x450)](async(_0x457aa2,_0x5dae3b)=>{const _0x4df8b8=a2_0x1dd5bc,_0x1ca22c=new JourneyResumeCommand(),_0x160335=program[_0x4df8b8(0x389)](),_0x2be021=await createTDXInstance(_0x160335),_0x189530=await _0x1ca22c[_0x4df8b8(0x32e)]({'options':{..._0x160335,..._0x5dae3b},'args':[_0x457aa2],'tdx':_0x2be021});gracefulExit(_0x189530);}),journeyCmd['command'](a2_0x1dd5bc(0x46e))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x1dd5bc(0x207)]('--dry-run',a2_0x1dd5bc(0x357))['action'](async(_0x67410c,_0x33596e)=>{const _0xdefd15=a2_0x1dd5bc,_0x5d7080=new JourneyPullCommand(),_0x11cfab=program[_0xdefd15(0x389)](),_0x8b14fa=await createTDXInstance(_0x11cfab),_0x1d193e=await _0x5d7080[_0xdefd15(0x32e)]({'options':{..._0x11cfab,..._0x33596e},'args':_0x67410c?[_0x67410c]:[],'tdx':_0x8b14fa});gracefulExit(_0x1d193e);}),journeyCmd['command']('push\x20[target]')[a2_0x1dd5bc(0x388)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x1dd5bc(0x450)](async(_0x59ccf5,_0x827a1a)=>{const _0xa25e82=a2_0x1dd5bc,_0x23b8bf=new JourneyPushCommand(),_0x16b658=program[_0xa25e82(0x389)](),_0x5e944e=await createTDXInstance(_0x16b658),_0x518c30=await _0x23b8bf[_0xa25e82(0x32e)]({'options':{..._0x16b658,..._0x827a1a},'args':_0x59ccf5?[_0x59ccf5]:[],'tdx':_0x5e944e});gracefulExit(_0x518c30);}),journeyCmd[a2_0x1dd5bc(0x284)]('columns\x20<name-or-path>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x263))['action'](async(_0x274f18,_0x27af20)=>{const _0x41605b=a2_0x1dd5bc,_0x539060=new JourneyColumnsCommand(),_0x10a23e=program[_0x41605b(0x389)](),_0x2110b4=await createTDXInstance(_0x10a23e),_0x30505d=await _0x539060[_0x41605b(0x32e)]({'options':{..._0x10a23e,..._0x27af20},'args':[_0x274f18],'tdx':_0x2110b4});gracefulExit(_0x30505d);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x25e))['description'](a2_0x1dd5bc(0x1f5))[a2_0x1dd5bc(0x450)](async(_0x4eb918,_0x379ec3)=>{const _0x11b05d=a2_0x1dd5bc,_0x7f4104=new JourneyActivationsCommand(),_0x4115c5=program[_0x11b05d(0x389)](),_0x192f0c=await createTDXInstance(_0x4115c5),_0x5ed990=await _0x7f4104[_0x11b05d(0x32e)]({'options':{..._0x4115c5,..._0x379ec3},'args':[_0x4eb918],'tdx':_0x192f0c});gracefulExit(_0x5ed990);}),journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x40b))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2af))[a2_0x1dd5bc(0x450)](async(_0x94edf5,_0x3d54d9)=>{const _0x25801e=a2_0x1dd5bc,_0x4e3578=new JourneyVersionsCommand(),_0x28d3d1=program[_0x25801e(0x389)](),_0x168332=await createTDXInstance(_0x28d3d1),_0x352daa=await _0x4e3578[_0x25801e(0x32e)]({'options':{..._0x28d3d1,..._0x3d54d9},'args':[_0x94edf5],'tdx':_0x168332});gracefulExit(_0x352daa);});const journeyVersionCmd=journeyCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3e9))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x26b));journeyVersionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2e6))[a2_0x1dd5bc(0x388)]('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')['action'](async(_0x27ee83,_0xc2cea0)=>{const _0x75c81e=a2_0x1dd5bc,_0xaca518=new JourneyVersionCreateCommand(),_0x498265=program['opts'](),_0x23f200=await createTDXInstance(_0x498265),_0x524603=await _0xaca518[_0x75c81e(0x32e)]({'options':{..._0x498265,..._0xc2cea0},'args':[_0x27ee83],'tdx':_0x23f200});gracefulExit(_0x524603);}),journeyVersionCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x353))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x1ed))[a2_0x1dd5bc(0x2c5)]('--version\x20<number>','Version\x20number\x20to\x20view')['action'](async(_0x8cf3d4,_0x2e1590)=>{const _0x3dbb6d=new JourneyVersionViewCommand(),_0x212586=program['opts'](),_0xd31084=await createTDXInstance(_0x212586),_0x433785=await _0x3dbb6d['run']({'options':{..._0x212586,..._0x2e1590},'args':[_0x8cf3d4],'tdx':_0xd31084});gracefulExit(_0x433785);}),journeyCmd[a2_0x1dd5bc(0x284)]('validate\x20[target]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x31f))[a2_0x1dd5bc(0x450)](async(_0x1b59c2,_0x571a3a)=>{const _0x307ed8=a2_0x1dd5bc,_0x5e2c6b=new JourneyValidateCommand(),_0x2025d1=program[_0x307ed8(0x389)](),_0x4b96a2=await createTDXInstance(_0x2025d1),_0x448959=await _0x5e2c6b['run']({'options':{..._0x2025d1,..._0x571a3a},'args':_0x1b59c2?[_0x1b59c2]:[],'tdx':_0x4b96a2});gracefulExit(_0x448959);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x365))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2f1))[a2_0x1dd5bc(0x450)](journeyListAction);const agentSyncCmd=program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x3b6))[a2_0x1dd5bc(0x388)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x413))['description'](a2_0x1dd5bc(0x374))['option'](a2_0x1dd5bc(0x2df),a2_0x1dd5bc(0x410))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x476),a2_0x1dd5bc(0x411))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x3dc),a2_0x1dd5bc(0x292))[a2_0x1dd5bc(0x450)](async(_0x10dcf8,_0x12d757,_0x180d42)=>{const _0x3d391c=a2_0x1dd5bc,_0x443d42=new AgentPullCommand(),_0x2e8115=program['opts'](),_0x54ac20=await createTDXInstance(_0x2e8115),_0x429af4=[];if(_0x10dcf8)_0x429af4[_0x3d391c(0x416)](_0x10dcf8);if(_0x12d757)_0x429af4['push'](_0x12d757);const _0x184736=await _0x443d42['run']({'options':{..._0x2e8115,..._0x180d42},'args':_0x429af4,'tdx':_0x54ac20});gracefulExit(_0x184736);}),agentSyncCmd['command'](a2_0x1dd5bc(0x3fa))['description'](a2_0x1dd5bc(0x2bd))['option']('-f,\x20--force',a2_0x1dd5bc(0x29a))['action'](async(_0x419fa0,_0x2c85b2)=>{const _0x571acf=a2_0x1dd5bc,_0x39b835=new AgentPushCommand(),_0x252b1b=program[_0x571acf(0x389)](),_0x566f52=await createTDXInstance(_0x252b1b),_0x5cb8af=await _0x39b835[_0x571acf(0x32e)]({'options':{..._0x252b1b,..._0x2c85b2},'args':_0x419fa0?[_0x419fa0]:[],'tdx':_0x566f52});gracefulExit(_0x5cb8af);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('clone\x20[source]')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x3a1))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x24c),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x1dd5bc(0x450)](async(_0x5696e5,_0x9c4973)=>{const _0x417274=a2_0x1dd5bc,_0x28c888=new AgentCloneCommand(),_0x54fc16=program[_0x417274(0x389)](),_0x32dd94=await createTDXInstance(_0x54fc16),_0x213a5a=await _0x28c888[_0x417274(0x32e)]({'options':{..._0x54fc16,..._0x9c4973},'args':_0x5696e5?[_0x5696e5]:[],'tdx':_0x32dd94});gracefulExit(_0x213a5a);}),agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x262))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x384))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x401),a2_0x1dd5bc(0x3ca))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x446),a2_0x1dd5bc(0x2e3))[a2_0x1dd5bc(0x207)]('--dry-run','Parse\x20and\x20validate\x20without\x20executing')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x329),a2_0x1dd5bc(0x2aa))['option'](a2_0x1dd5bc(0x2fb),a2_0x1dd5bc(0x40e))[a2_0x1dd5bc(0x450)](async(_0xdbf557,_0x21c3e1)=>{const _0x1b8038=new AgentTestCommand(),_0x264c48=program['opts'](),_0x4ea04f=await createTDXInstance(_0x264c48),_0x3a53a3=await _0x1b8038['run']({'options':{..._0x264c48,..._0x21c3e1},'args':_0xdbf557?[_0xdbf557]:[],'tdx':_0x4ea04f});gracefulExit(_0x3a53a3);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('list\x20[pattern]')['description'](a2_0x1dd5bc(0x44d))[a2_0x1dd5bc(0x450)](llmAgentListAction),agentSyncCmd[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x229))[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2a2))['action'](async(_0x2bf7d5,_0x5b97ee)=>{const _0x1f6c11=a2_0x1dd5bc,_0x1c9525=new LLMAgentShowCommand(),_0x3c7169=program[_0x1f6c11(0x389)](),_0x49d41c=await createTDXInstance(_0x3c7169),_0x55717b=await _0x1c9525['run']({'options':{..._0x3c7169,..._0x5b97ee},'args':[_0x2bf7d5],'tdx':_0x49d41c});gracefulExit(_0x55717b);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('create\x20<name>')['description'](a2_0x1dd5bc(0x372))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x422),a2_0x1dd5bc(0x23a))['option']('--model\x20<name>',a2_0x1dd5bc(0x48c),a2_0x1dd5bc(0x1d5))['option'](a2_0x1dd5bc(0x279),a2_0x1dd5bc(0x308))[a2_0x1dd5bc(0x207)]('--max-tool-iterations\x20<n>',a2_0x1dd5bc(0x31b),'4')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x304),a2_0x1dd5bc(0x1c7),a2_0x1dd5bc(0x41a))[a2_0x1dd5bc(0x450)](async(_0x30c1b0,_0x1c4a63)=>{const _0x5097e1=a2_0x1dd5bc,_0x1fc97f=new LLMAgentCreateCommand(),_0x15a530=program[_0x5097e1(0x389)](),_0x3d5218=await createTDXInstance(_0x15a530),_0x1fc485=await _0x1fc97f[_0x5097e1(0x32e)]({'options':{..._0x15a530,..._0x1c4a63},'args':[_0x30c1b0],'tdx':_0x3d5218});gracefulExit(_0x1fc485);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('update\x20<agent-name>')[a2_0x1dd5bc(0x388)](a2_0x1dd5bc(0x2ed))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x428),a2_0x1dd5bc(0x3db))[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x1b9),'Agent\x20prompt/instructions')[a2_0x1dd5bc(0x207)](a2_0x1dd5bc(0x290),a2_0x1dd5bc(0x22d))['option'](a2_0x1dd5bc(0x279),a2_0x1dd5bc(0x308))[a2_0x1dd5bc(0x450)](async(_0x5b9f50,_0x5455d0)=>{const _0x541847=new LLMAgentUpdateCommand(),_0x1dd134=program['opts'](),_0x5b58c9=await createTDXInstance(_0x1dd134),_0x4d9c26=await _0x541847['run']({'options':{..._0x1dd134,..._0x5455d0},'args':[_0x5b9f50],'tdx':_0x5b58c9});gracefulExit(_0x4d9c26);}),agentSyncCmd[a2_0x1dd5bc(0x284)]('delete\x20<agent-name>')[a2_0x1dd5bc(0x388)]('Delete\x20an\x20agent')[a2_0x1dd5bc(0x450)](async(_0x5d8747,_0x7a12c2)=>{const _0x358af1=a2_0x1dd5bc,_0x47d182=new LLMAgentDeleteCommand(),_0x3fbd59=program[_0x358af1(0x389)](),_0x1853f7=await createTDXInstance(_0x3fbd59),_0x433254=await _0x47d182['run']({'options':{..._0x3fbd59,..._0x7a12c2},'args':[_0x5d8747],'tdx':_0x1853f7});gracefulExit(_0x433254);}),program[a2_0x1dd5bc(0x284)](a2_0x1dd5bc(0x2f6),{'hidden':!![]})[a2_0x1dd5bc(0x450)](()=>{const _0x2afcf3=a2_0x1dd5bc;function _0x47ed1a(_0x1deda5,_0x500a9d){const _0x35474a=a2_0xa400,_0x34107a=[];for(const _0x93d84c of _0x1deda5[_0x35474a(0x3e5)]){if(_0x93d84c[_0x35474a(0x29e)])continue;const _0x47f9a7=_0x500a9d?_0x500a9d+'\x20'+_0x93d84c[_0x35474a(0x1e4)]():_0x93d84c['name'](),_0xbae8be=_0x47f9a7['split']('\x20')[0x0],_0x418386=COMMAND_CATEGORIES[_0x35474a(0x3b0)](_0x4f1531=>_0x4f1531[_0x35474a(0x3e5)][_0x35474a(0x342)](_0xbae8be)),_0x368240=_0x418386?.['name']??'';if(_0x93d84c['commands'][_0x35474a(0x295)]>0x0)_0x34107a[_0x35474a(0x416)](..._0x47ed1a(_0x93d84c,_0x47f9a7));else{const _0x1c7340=(_0x93d84c['registeredArguments']||[])[_0x35474a(0x2c4)](_0x5eaa39=>{const _0x1d8b78=_0x35474a,_0x49a46a=_0x5eaa39[_0x1d8b78(0x288)]?_0x5eaa39[_0x1d8b78(0x1e4)]()+'...':_0x5eaa39[_0x1d8b78(0x1e4)]();return _0x5eaa39[_0x1d8b78(0x3d4)]?'<'+_0x49a46a+'>':'['+_0x49a46a+']';})[_0x35474a(0x266)]('\x20'),_0x137942=_0x93d84c[_0x35474a(0x2cd)]['filter'](_0x2da1b6=>!_0x2da1b6['hidden']&&_0x2da1b6['long']!==_0x35474a(0x402))[_0x35474a(0x2c4)](_0xb5a133=>({'flags':_0xb5a133[_0x35474a(0x2f2)],'description':_0xb5a133[_0x35474a(0x388)]}));_0x34107a[_0x35474a(0x416)]({'name':_0x47f9a7,'description':_0x93d84c[_0x35474a(0x388)](),'group':_0x368240,'usage':_0x1c7340,'options':_0x137942});}}return _0x34107a;}console[_0x2afcf3(0x3cd)](JSON[_0x2afcf3(0x3b9)](_0x47ed1a(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x27b405=a2_0x1dd5bc,_0x39c31f=!process['argv'][_0x27b405(0x289)](0x2)[_0x27b405(0x295)];showBriefHelp=_0x39c31f,program[_0x27b405(0x28a)](process[_0x27b405(0x349)]);_0x39c31f&&program['outputHelp']();const _0x113557=process[_0x27b405(0x349)][0x2]==='upgrade';if(process[_0x27b405(0x3e1)][_0x27b405(0x20c)]&&process[_0x27b405(0x349)][_0x27b405(0x295)]>0x2&&!isDevVersion()&&!_0x113557){const _0x4cbaf5=loadReleaseChannel();checkForUpdate(currentVersion,_0x4cbaf5)[_0x27b405(0x214)](_0x54b864=>{_0x54b864&&displayUpdateNotification(_0x54b864);})[_0x27b405(0x30f)](()=>{});}}