@treasuredata/tdx 0.28.3 → 0.28.4

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 (184) 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/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-validate-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/mcp-command.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profile-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/schedule-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pull-command.js +1 -1
  37. package/dist/commands/segment-push-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segment-validate-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/status-command.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/unset-command.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/command-output.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/connection-cache.js +1 -1
  53. package/dist/core/constants.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/core/version.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/mcp/server.js +1 -1
  64. package/dist/mcp/tools/index.js +1 -1
  65. package/dist/mcp/tools/tdx-run.js +1 -1
  66. package/dist/mcp/tools/tdx-search.js +1 -1
  67. package/dist/mcp/utils.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/agent/test/evaluator.js +1 -1
  75. package/dist/sdk/agent/test/executor.js +1 -1
  76. package/dist/sdk/agent/test/index.js +1 -1
  77. package/dist/sdk/agent/test/output.js +1 -1
  78. package/dist/sdk/agent/test/parser.js +1 -1
  79. package/dist/sdk/agent/tool-target-registry.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/client/cdp-api-client.js +1 -1
  82. package/dist/sdk/client/delivery-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/delivery.js +1 -1
  94. package/dist/sdk/engage/campaign-pull.js +1 -1
  95. package/dist/sdk/engage/campaign-push.js +1 -1
  96. package/dist/sdk/engage/campaign-validator.js +1 -1
  97. package/dist/sdk/engage/campaign-yaml.js +1 -1
  98. package/dist/sdk/engage/types/campaign-def.js +1 -1
  99. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  100. package/dist/sdk/engage.js +1 -1
  101. package/dist/sdk/errors.js +1 -1
  102. package/dist/sdk/index.js +1 -1
  103. package/dist/sdk/io/index.js +1 -1
  104. package/dist/sdk/io/node-filesystem.js +1 -1
  105. package/dist/sdk/job.js +1 -1
  106. package/dist/sdk/journey.js +1 -1
  107. package/dist/sdk/llm/chat-cache.js +1 -1
  108. package/dist/sdk/llm/index.js +1 -1
  109. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  110. package/dist/sdk/llm/model-factors.js +1 -1
  111. package/dist/sdk/personalization.js +1 -1
  112. package/dist/sdk/query/index.js +1 -1
  113. package/dist/sdk/query/sql-parser.js +1 -1
  114. package/dist/sdk/realtime.js +1 -1
  115. package/dist/sdk/schedule.js +1 -1
  116. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  117. package/dist/sdk/segment/fields-display.js +1 -1
  118. package/dist/sdk/segment/file-discovery.js +1 -1
  119. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  120. package/dist/sdk/segment/journey-utils.js +1 -1
  121. package/dist/sdk/segment/journey-utils.js.map +1 -1
  122. package/dist/sdk/segment/journey-validator.js +1 -1
  123. package/dist/sdk/segment/journey-validator.js.map +1 -1
  124. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  125. package/dist/sdk/segment/journey-yaml.js +1 -1
  126. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  127. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  128. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  129. package/dist/sdk/segment/pull-workflow.js +1 -1
  130. package/dist/sdk/segment/push-recovery.js +1 -1
  131. package/dist/sdk/segment/push-workflow.js +1 -1
  132. package/dist/sdk/segment/resolution-context.js +1 -1
  133. package/dist/sdk/segment/segment-path-parser.js +1 -1
  134. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  135. package/dist/sdk/segment/target-resolution.js +1 -1
  136. package/dist/sdk/segment/tdx-config.js +1 -1
  137. package/dist/sdk/segment/validate-files.js +1 -1
  138. package/dist/sdk/segment/yaml-validator.js +1 -1
  139. package/dist/sdk/segment.js +1 -1
  140. package/dist/sdk/types/index.js +1 -1
  141. package/dist/sdk/types/progress.js +1 -1
  142. package/dist/sdk/user.js +1 -1
  143. package/dist/sdk/util/format-detector.js +1 -1
  144. package/dist/sdk/util/formatters.js +1 -1
  145. package/dist/sdk/util/index.js +1 -1
  146. package/dist/sdk/util/tree-formatter.js +1 -1
  147. package/dist/sdk/workflow/archive-validation.js +1 -1
  148. package/dist/sdk/workflow/clone-workflow.js +1 -1
  149. package/dist/sdk/workflow/index.js +1 -1
  150. package/dist/sdk/workflow/pull-workflow.js +1 -1
  151. package/dist/sdk/workflow/push-workflow.js +1 -1
  152. package/dist/sdk/workflow/tdx-config.js +1 -1
  153. package/dist/sdk/workflow/workflow-utils.js +1 -1
  154. package/dist/test-utils/command-runner.js +1 -1
  155. package/dist/test-utils/factories.js +1 -1
  156. package/dist/test-utils/fixtures.js +1 -1
  157. package/dist/test-utils/http-mock.js +1 -1
  158. package/dist/test-utils/index.js +1 -1
  159. package/dist/utils/async.js +1 -1
  160. package/dist/utils/colors.js +1 -1
  161. package/dist/utils/diff.js +1 -1
  162. package/dist/utils/file-permissions.js +1 -1
  163. package/dist/utils/global-cache.js +1 -1
  164. package/dist/utils/json-loader.js +1 -1
  165. package/dist/utils/local-cache.js +1 -1
  166. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  167. package/dist/utils/logger/formatters/index.js +1 -1
  168. package/dist/utils/logger/handlers/console-handler.js +1 -1
  169. package/dist/utils/logger/handlers/file-handler.js +1 -1
  170. package/dist/utils/logger/handlers/index.js +1 -1
  171. package/dist/utils/logger/handlers/null-handler.js +1 -1
  172. package/dist/utils/logger/index.js +1 -1
  173. package/dist/utils/logger/logger.js +1 -1
  174. package/dist/utils/logger/types.js +1 -1
  175. package/dist/utils/option-validation.js +1 -1
  176. package/dist/utils/process.js +1 -1
  177. package/dist/utils/prompt.js +1 -1
  178. package/dist/utils/spinner.js +1 -1
  179. package/dist/utils/sse-parser.js +1 -1
  180. package/dist/utils/string-utils.js +1 -1
  181. package/dist/utils/table-ref-parser.js +1 -1
  182. package/dist/utils/tdx-logger.js +1 -1
  183. package/dist/utils/version-check.js +1 -1
  184. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x19835d=a2_0x5509;(function(_0x40ad39,_0x5724a3){const _0x5f176f=a2_0x5509,_0x5cb80e=_0x40ad39();while(!![]){try{const _0x531b38=parseInt(_0x5f176f(0x1c8))/0x1+-parseInt(_0x5f176f(0x14f))/0x2*(-parseInt(_0x5f176f(0x307))/0x3)+-parseInt(_0x5f176f(0x17c))/0x4+parseInt(_0x5f176f(0x32d))/0x5+-parseInt(_0x5f176f(0x25e))/0x6*(-parseInt(_0x5f176f(0x1ca))/0x7)+parseInt(_0x5f176f(0xed))/0x8+-parseInt(_0x5f176f(0x336))/0x9;if(_0x531b38===_0x5724a3)break;else _0x5cb80e['push'](_0x5cb80e['shift']());}catch(_0x5b3426){_0x5cb80e['push'](_0x5cb80e['shift']());}}}(a2_0x19eb,0x8f16b));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,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';function a2_0x19eb(){const _0x27cff8=['attempts\x20[project]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--skip-validation','TRACE','--include-stats','--plaintext\x20<text>','Version\x20number\x20to\x20view','--resume-from\x20<task>','Interactive\x20chat\x20selector','Open\x20journey\x20in\x20web\x20browser','--param\x20<key=value>','run','Parent\x20folder\x20name\x20for\x20nested\x20folders','Custom\x20revision\x20name\x20(default:\x20timestamp)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','log','subcommandTerm','--add-attributes\x20<json>','Arguments:','--database\x20<db>','pull\x20[name]','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-p,\x20--profile\x20<name>','--stream','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','push\x20[parent_or_file]','Delete\x20a\x20workspace','timeline\x20[project.workflow]','Run\x20Trino\x20query\x20with\x20streaming\x20results','Push\x20without\x20confirmation','trace','describe','--name\x20<new_name>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','delete\x20<project-name-or-id>','--html\x20<html>','-H,\x20--header\x20<header>','options','stdout','--job-type\x20<type>','Result\x20output\x20destination\x20URL','-d,\x20--database\x20<database>','exit','stringify','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--in\x20<db>','Read\x20request\x20body\x20from\x20file','push\x20[source-dir]','log\x20<chat-id>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20versions\x20of\x20a\x20journey','connection','LLM\x20project\x20management','End\x20time\x20filter\x20(ISO\x208601\x20format)','Pull\x20specific\x20revision\x20(default:\x20latest)','Resume\x20a\x20paused\x20campaign','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--invisible','--workspace\x20<name>','jobs','Parent\x20segment\x20management','usage','Show\x20email\x20template\x20details','run\x20[name]','push','--dry-run','--no-color','--include-history','Pull\x20specific\x20campaign\x20by\x20name','commands','Show\x20authentication\x20status\x20and\x20current\x20context','apiKey','Personalization\x20service\x20management','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Workflow\x20parameter\x20(repeatable)','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Starting\x20offset\x20(default:\x200)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','project','Show\x20journey\x20statistics','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','colorFn','connections','-f,\x20--force','test\x20[path]','24270dXpGsH','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--output\x20<file>','Continue\x20most\x20recent\x20conversation','set','Pull\x20workflow\x20project\x20to\x20local\x20folder','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','clone\x20[source]','Show\x20schedule\x20execution\x20history','delete\x20<name>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','use\x20<path>','join','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--model\x20<name>','Limit\x20number\x20of\x20rows','Create\x20segment\x20folder','Launch\x20a\x20campaign','claude-4.5-sonnet','Workspace\x20name','Include\x20retried\x20attempts','Add\x20attributes\x20from\x20JSON\x20file','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','stderr','folder','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--status\x20<status>','create\x20<name-or-path>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','repeat','isTTY','--full','Pull\x20campaigns\x20to\x20YAML\x20files','list\x20[project]','--rule-file\x20<file>','logLevel','stats\x20<name-or-path>','parse','-o,\x20--output\x20<file>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','run\x20<name>','update\x20<segment_name>','tasks','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Delete\x20an\x20LLM\x20project','--type\x20<type>','Overwrite\x20local\x20changes\x20without\x20confirmation','jsonl','Validate\x20campaign\x20YAML\x20files\x20locally','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--max-depth\x20<depth>','Resume\x20a\x20conversation\x20(shows\x20selector)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','show\x20<agent-name>','Cron\x20expression\x20for\x20scheduling','0.7','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','argv','--cron\x20<expression>','forEach','--version','Request\x20body\x20as\x20JSON\x20string','Database\x20name\x20(default:\x20information_schema)','Usage:\x20','-c,\x20--continue','Duplicate\x20a\x20campaign','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','--name\x20<text>','tdx','View\x20a\x20specific\x20version\x20of\x20a\x20journey','--format\x20<format>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','trino','Show\x20all\x20files\x20including\x20valid\x20ones','Preview\x20changes\x20without\x20writing\x20files','Workflow\x20session\x20management','command','folders\x20<parent_name>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Create\x20a\x20new\x20profile','--llm-project\x20<name>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Show\x20journey\x20table\x20column-to-step\x20mapping','name','\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,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Campaign\x20description','--customer-group\x20<json>','mcp','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','argument','Action:\x20logs,\x20tasks,\x20kill,\x20retry','pause\x20<name-or-path>','--limit\x20<rows>','--description\x20<desc>','Set\x20operation\x20timeout\x20in\x20seconds','filter','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','run\x20[workflow]','--master','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--subject\x20<subject>','--schedule-type\x20<type>','Delivery\x20operations\x20(email\x20senders)','Skip\x20confirmation\x20prompts','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','-C,\x20--directory\x20<path>','Directory\x20does\x20not\x20exist:\x20','users','agents\x20[pattern]','Create\x20a\x20new\x20campaign','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Read\x20query\x20from\x20file','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Output\x20as\x20JSON','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','upload\x20[project-name-or-dir]','job','Add\x20attributes\x20as\x20JSON\x20string','Reason\x20for\x20killing\x20the\x20attempt','--kind\x20<type>','commandDescription','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Output\x20file\x20path','Filtering\x20rule\x20as\x20JSON\x20string','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--attempt-id\x20<id>','buildTime','Delay\x20in\x20seconds\x20before\x20execution','show\x20<job-id>','Clear\x20session\x20context','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--attribute\x20[name]','profiles','-y,\x20--yes','Query\x20type:\x20trino\x20or\x20hive','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','desc\x20[segment_name]','--description\x20<text>','--include-retried','create\x20<name>','Parent\x20segment\x20description','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Save\x20output\x20to\x20file','--reeval','delete\x20<name-or-id>','\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','after','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','--color','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--limit\x20<number>','--include-subtasks','Authentication\x20management','list','versions\x20<name-or-path>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--default','tdx\x20','Agent\x20prompt/instructions','3ruyAgh','catch','Delete\x20an\x20agent','delivery','Kill\x20a\x20job','--add-behaviors-file\x20<file>','Show\x20schedule\x20details','Show\x20workspace\x20details','--no-eval','Update\x20a\x20scheduled\x20query','Follow/watch\x20timeline\x20for\x20running\x20attempts','--folder\x20<name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--json','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','view\x20[name]','isArray','Delete\x20a\x20campaign','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','\x20(resolved\x20to\x20','chdir','--json-columns\x20<cols>','Behaviors\x20as\x20JSON\x20string','create\x20<parent_name>\x20<folder_name>','--name\x20<name>','template','List\x20secret\x20keys\x20for\x20a\x20project','set\x20<key=value>','outputHelp','Options:','List\x20jobs','--to\x20<date>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','session','validate\x20[name]','show\x20<folder_ref>','fields\x20[parent_name]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','2093145opZBeK','-w,\x20--web','--params\x20<json>','--no-proxy','gitRevision','Skip\x20population\x20counting','Output\x20file\x20path\x20(default:\x20<name>.yml)','Ending\x20offset\x20(default:\x2020)','Updated\x20schedule\x20option','11580417ODPoar','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','argumentTerm','-u,\x20--use','--version\x20<number>','list\x20[name]','noColor','Attributes\x20from\x20JSON\x20file','--no-count-population','kill','Add\x20behaviors\x20from\x20JSON\x20file','history\x20<name>','--name\x20<new-name>','Update\x20an\x20email\x20template','List\x20all\x20available\x20profiles','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Skip\x20validation\x20of\x20.dig\x20files','Attempt\x20ID','slice','restore\x20<folder>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Task\x20name\x20for\x20logs\x20action','tsv','Show\x20connection\x20details\x20by\x20name','Set\x20or\x20show\x20parent\x20segment\x20context','Show\x20master\x20table\x20sample\x20data','--result\x20<url>','Update\x20a\x20workspace','attempt','Updated\x20timezone','duplicate\x20<name-or-id>','hidden','Unknown\x20action:\x20','Clear\x20workflow\x20project\x20context','Run\x20a\x20scheduled\x20query\x20immediately','create\x20[name]','push\x20[file]','_list-commands','CDP\x20Journey\x20Orchestration\x20commands','desc','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Enable\x20verbose\x20logging','show\x20<name-or-id>','databases\x20[pattern]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','schedule','Workflow\x20attempt\x20management','Campaign\x20type\x20(email\x20or\x20push)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','user','agent','Maximum\x20recursion\x20depth\x20(default:\x2010)','--from\x20<timestamp>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','opts','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','workspaces\x20[pattern]','download\x20<project-name>\x20[output-dir]','validate\x20[target]','Attributes\x20as\x20JSON\x20string','Show\x20segment\x20schema\x20(column\x20types)','--tags\x20<tags>','required','Parse\x20and\x20validate\x20without\x20executing','parent','journey','--from\x20<n>','Delete\x20a\x20scheduled\x20query','use\x20[name]','activations\x20<name-or-path>','Journey\x20version\x20management','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--debug','length','resume\x20<name-or-path>','optionTerm','LLM\x20agent\x20management','parents\x20[pattern]','Query\x20engine\x20version','use\x20[project]','-o,\x20--output\x20<dir>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','description','--help','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','traffic\x20<name-or-path>','List\x20activations\x20for\x20a\x20journey','models','Folder\x20description','profile','--trace','Open\x20segment\x20in\x20web\x20browser','Customer\x20group\x20as\x20JSON\x20string','--to\x20<n>','engage','Workspace\x20name\x20(required)','--enriched','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Data\x20connection\x20management\x20(for\x20activations/exports)','--engine-version\x20<version>','--behavior\x20[name]','List\x20email\x20senders','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Project\x20description','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Set\x20a\x20profile\x20configuration\x20value','2494080XOKEQw','json','push\x20[target]','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Preview\x20changes\x20without\x20pushing','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','init\x20[name]','[task-name]','aliases','claude\x20[args...]','--delay\x20<seconds>','requiredOption','Filtering\x20rule\x20from\x20JSON\x20file','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Create\x20a\x20new\x20LLM\x20project','Email\x20sender\x20ID\x20for\x20delivery','--site\x20<site>','workspace','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','parent-segment','padWidth','RT\x202.0\x20configuration\x20management','--parent-segment\x20<name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','User\x20management\x20commands','show\x20<name>','--yes','senders\x20[pattern]','table','preview\x20[name]','--parent-folder\x20<name>','variadic','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Show\x20segment\x20details\x20(alias\x20for\x20view)','--new','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Remove\x20a\x20profile','Skip\x20confirmation\x20prompt','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','view\x20<name-or-path>','describe\x20[table]','Email\x20template\x20management','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','delete\x20<args...>','templates\x20[pattern]','--type\x20<api_type>','--segment\x20<path>','campaigns\x20[pattern]','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','System\x20prompt/instructions\x20(default:\x20empty)','show\x20[name]','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Pull\x20child\x20segments\x20to\x20YAML\x20files','--timeout\x20<seconds>','Pause\x20a\x20campaign','--session-time\x20<time>','Commands:','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','-v,\x20--verbose','subcommandDescription','--starter-message\x20<text>','flatMap','site','HTML\x20template\x20content','Show\x20campaign\x20details','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','--catalog\x20<catalog>','Agent\x20description','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','submit\x20[query]','Timezone\x20(e.g.,\x20America/Los_Angeles)','update\x20<name>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--agent\x20<ref>','--last','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','clear','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','sql\x20[segment_name]','format','segments\x20[path]','Timezone\x20for\x20cron','Segment\x20description','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','fields\x20[name]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Preview\x20operation\x20without\x20executing','update\x20<name-or-id>','--from-task\x20<task>','List\x20available\x20LLM\x20models','\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','launch\x20<name-or-id>','Workflow\x20(Digdag)\x20management\x20commands','--data\x20<data>','registeredArguments','2108026ZvcJEM','map','-r,\x20--recursive','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','--jsonl','Timezone\x20for\x20cron\x20(default:\x20UTC)','Create\x20an\x20email\x20template','--database\x20<name>','workflows\x20[project]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Folder\x20name\x20for\x20organization','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--timezone\x20<tz>','--chat-id\x20<id>','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','list\x20[pattern]','--max-tool-iterations\x20<n>','use\x20<name>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','show\x20[table]','remove\x20<name>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','create','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Campaign\x20management','action','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','--revision\x20<revision>','Retry\x20limit\x20(0\x20to\x2032)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Master\x20table\x20name','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--reason\x20<text>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','[options]\x20--\x20[claude-code-args...]','view\x20[segment_name]','database','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Move\x20to\x20folder','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','638728yScSRO','Update\x20a\x20campaign','DEBUG','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','settings\x20<type>','clone\x20[source-dir]','Create\x20a\x20scheduled\x20query','Maximum\x20number\x20of\x20nodes','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','[EXPERIMENTAL]\x20Show\x20chat\x20log','--add-attributes-file\x20<file>','preview\x20[file]','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','_hidden','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Database\x20name','kill\x20<job-id>','auth','Submit\x20a\x20job','--add-behaviors\x20<json>','llm','--rule\x20<json>','use\x20[resource]\x20[value]','preAction','--retry-limit\x20<0~32>','update\x20<agent-name>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','secrets','--to\x20<timestamp>','--interval\x20<range>','schema\x20<type>','status','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','allowExcessArguments','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','[DEPRECATED]\x20Segment\x20folder\x20management','--in\x20<database>','Agent\x20name','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','Change\x20to\x20directory\x20before\x20executing\x20command','GET','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Show\x20timeline\x20for\x20specific\x20attempt','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Add\x20behaviors\x20as\x20JSON\x20string','-a,\x20--agent\x20<name>','-1d','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Campaign\x20name','Setup\x20API\x20key\x20authentication\x20interactively','campaign','Output\x20as\x20JSON\x20Lines','error','Plaintext\x20template\x20content','Update\x20an\x20existing\x20agent','Describe\x20table\x20schema','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','split','Include\x20raw\x20history\x20data\x20in\x20output','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','flags','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Email\x20subject\x20template','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Validate\x20journey\x20YAML\x20files\x20locally','push\x20[name]','Workflow\x20project\x20management','New\x20segment\x20name','beefree','[action]','126734QYzHAM','alias','210GVCVeO','--email-sender-id\x20<id>','Generate\x20test\x20conversations\x20without\x20evaluation','projects\x20[pattern]','includes','--num\x20<1-10>','pull\x20[project]\x20[agent-name]','parent_segment','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','directory','--priority\x20<-2~2>','-f,\x20--file\x20<path>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','\x22.\x20Must\x20be\x20a\x20number.','get','configureHelp','addHelpText','List\x20journeys\x20in\x20current\x20context','chats','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--follow','--start-at\x20<datetime>','us01','List\x20all\x20users\x20in\x20the\x20account','Export\x20journey(s)\x20as\x20YAML\x20files','--temperature\x20<n>','Customer\x20group\x20from\x20JSON\x20file','...','Updated\x20description','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','pull\x20[workspace-name]','--schedule-option\x20<value>','hook','Revision\x20name\x20(default:\x20timestamp)','retry\x20<session-id>','INVALID_ARGUMENT','Trino\x20catalog\x20(default:\x20td)','List\x20agents\x20in\x20current\x20project','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Behaviors\x20from\x20JSON\x20file','replace','Master\x20database\x20name','--session-id\x20<id>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','option','List\x20all\x20data\x20connections','Show\x20only\x20master\x20table\x20validation','Workspace\x20description','Job\x20priority\x20(-2\x20to\x202)','columns\x20<name-or-path>','sessions\x20[project]','Resume\x20from\x20specific\x20task\x20(retry)','use\x20<project-name>','Output\x20directory','query\x20[sql]','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)',',\x20version\x20','setup','help','--attributes-file\x20<file>'];a2_0x19eb=function(){return _0x27cff8;};return a2_0x19eb();}import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-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{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-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_0x19835d(0x29d)][a2_0x19835d(0x1ce)](a2_0x19835d(0x2a0))){let versionOutput=a2_0x19835d(0x305)+currentVersion;buildInfo[a2_0x19835d(0x331)]&&!currentVersion[a2_0x19835d(0x1ce)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x19835d(0x331)]+')'),buildInfo['buildTime']&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x19835d(0x2e6)]),console[a2_0x19835d(0x216)](versionOutput),process[a2_0x19835d(0x232)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x19835d(0x105);buildInfo[a2_0x19835d(0x331)]&&!currentVersion[a2_0x19835d(0x1ce)](buildInfo[a2_0x19835d(0x331)])?description+=a2_0x19835d(0x203)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x19835d(0x203)+currentVersion;program[a2_0x19835d(0x2ba)](a2_0x19835d(0x2a9))[a2_0x19835d(0xd4)](description),program[a2_0x19835d(0x1f7)](a2_0x19835d(0x2d0),a2_0x19835d(0x1a9))[a2_0x19835d(0x1f7)](a2_0x19835d(0x21d),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x19835d(0x1f7)](a2_0x19835d(0xfe),a2_0x19835d(0xb9),a2_0x19835d(0x1e0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2ab),a2_0x19835d(0xb7))[a2_0x19835d(0x1f7)]('--table',a2_0x19835d(0x234))['option']('--json',a2_0x19835d(0x13b))[a2_0x19835d(0x1f7)](a2_0x19835d(0x153),a2_0x19835d(0x186))['option']('--tsv',a2_0x19835d(0x1d6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x260),a2_0x19835d(0x2f6))['option'](a2_0x19835d(0x2fe),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2fc),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x19835d(0x1f7)](a2_0x19835d(0x24b),a2_0x19835d(0x2ac),![])[a2_0x19835d(0x1f7)](a2_0x19835d(0x128),a2_0x19835d(0xaa),![])[a2_0x19835d(0x1f7)](a2_0x19835d(0xca),a2_0x19835d(0x2e4))['option'](a2_0x19835d(0xdc),a2_0x19835d(0x114))[a2_0x19835d(0x1f7)](a2_0x19835d(0x123),a2_0x19835d(0x2c5),'30')[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x146),![])[a2_0x19835d(0x1f7)](a2_0x19835d(0x2ed),a2_0x19835d(0x2ce),![])[a2_0x19835d(0x1f7)]('--session\x20<id>',a2_0x19835d(0x10e))[a2_0x19835d(0x1f7)](a2_0x19835d(0x104),a2_0x19835d(0x2bf))['option'](a2_0x19835d(0x2b7),a2_0x19835d(0x1f5)),program[a2_0x19835d(0x1d9)]({'formatHelp':(_0x236926,_0x516033)=>{const _0x23ef28=a2_0x19835d,_0x115eae=_0x516033[_0x23ef28(0x102)](_0x236926,_0x516033),_0x18ae7b=0x2,_0x13aa9c=0x2;function _0x350e78(_0x2e9e3e){const _0x152ce6=_0x23ef28,_0x4daa49=_0x2e9e3e;return!!(_0x4daa49[_0x152ce6(0x18b)]||_0x4daa49[_0x152ce6(0x358)]);}function _0x58cdb6(_0x1ba6dd,_0x35b509){if(_0x35b509){const _0x2cfa58=''+_0x1ba6dd['padEnd'](_0x115eae+_0x13aa9c)+_0x35b509;return _0x2cfa58;}return _0x1ba6dd;}function _0x504399(_0xbc4b76){const _0x5b42db=_0x23ef28;return _0xbc4b76['join']('\x0a')[_0x5b42db(0x1f2)](/^/gm,'\x20'[_0x5b42db(0x27c)](_0x18ae7b));}const _0x11f95b=[];_0x11f95b[_0x23ef28(0x249)](_0x23ef28(0x2a3)+_0x516033['commandUsage'](_0x236926));const _0x36ed19=_0x516033[_0x23ef28(0x2e0)](_0x236926);_0x36ed19&&(_0x11f95b[_0x23ef28(0x249)](''),_0x11f95b['push'](_0x36ed19));const _0xcec86b=_0x236926[_0x23ef28(0x24e)][_0x23ef28(0x2c6)](_0x25545d=>!_0x350e78(_0x25545d));if(_0xcec86b['length']>0x0){if(_0x236926[_0x23ef28(0x2ba)]()===_0x23ef28(0x2a9)){const _0x42c751=_0x236926['opts'](),_0x3fa049=!_0x42c751[_0x23ef28(0x33d)]&&process[_0x23ef28(0x22e)][_0x23ef28(0x27d)],_0x9501b5=COMMAND_CATEGORIES,_0x1aaf17=(_0x23210e,_0x1a4e5b)=>_0x3fa049?_0x1a4e5b(_0x23210e):_0x23210e,_0x52f40a=new Map();_0xcec86b[_0x23ef28(0x29f)](_0x7382a3=>{const _0x18c3d2=_0x23ef28;_0x52f40a[_0x18c3d2(0x262)](_0x7382a3[_0x18c3d2(0x2ba)](),_0x7382a3);}),_0x9501b5['forEach'](_0x283596=>{const _0x5ed520=_0x23ef28,_0xfdd885=_0x283596[_0x5ed520(0x24e)][_0x5ed520(0x12b)](_0x28fc2b=>_0x52f40a[_0x5ed520(0x1d8)](_0x28fc2b)??[]);if(_0xfdd885['length']>0x0){_0x11f95b[_0x5ed520(0x249)](''),_0x11f95b['push'](_0x1aaf17(_0x283596[_0x5ed520(0x2ba)]+':',_0x283596[_0x5ed520(0x25a)]));const _0x462b26=_0xfdd885[_0x5ed520(0x150)](_0x6c9dd2=>{const _0x169957=_0x5ed520,_0x207fb0=_0x516033[_0x169957(0x217)](_0x6c9dd2),_0x4b4f3e=_0x516033[_0x169957(0x129)](_0x6c9dd2);return _0x58cdb6(_0x207fb0,_0x4b4f3e);});_0x11f95b[_0x5ed520(0x249)](_0x504399(_0x462b26));}}),_0x11f95b[_0x23ef28(0x249)](''),_0x11f95b[_0x23ef28(0x249)](_0x23ef28(0x296));}else{const _0x175b44=_0xcec86b[_0x23ef28(0x150)](_0x61ac32=>{const _0x4b0aed=_0x23ef28,_0x5a2b3e=_0x516033[_0x4b0aed(0x217)](_0x61ac32),_0x206aee=_0x516033[_0x4b0aed(0x129)](_0x61ac32);return _0x58cdb6(_0x5a2b3e,_0x206aee);});_0x11f95b[_0x23ef28(0x249)](''),_0x11f95b[_0x23ef28(0x249)](_0x23ef28(0x126)),_0x11f95b['push'](_0x504399(_0x175b44));}}if(showBriefHelp&&_0x236926['name']()===_0x23ef28(0x2a9))_0x11f95b[_0x23ef28(0x249)](''),_0x11f95b[_0x23ef28(0x249)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x3be4bb=_0x236926[_0x23ef28(0x22d)][_0x23ef28(0x2c6)](_0x225ebd=>!_0x350e78(_0x225ebd));if(_0x3be4bb[_0x23ef28(0xcb)]>0x0){const _0x17dbff=_0x3be4bb[_0x23ef28(0x150)](_0x4c9547=>{const _0x5d9d1b=_0x23ef28,_0x4d6926=_0x516033[_0x5d9d1b(0xcd)](_0x4c9547),_0x1793bc=_0x516033['optionDescription'](_0x4c9547);return _0x58cdb6(_0x4d6926,_0x1793bc);});_0x11f95b[_0x23ef28(0x249)](''),_0x11f95b[_0x23ef28(0x249)](_0x23ef28(0x324)),_0x11f95b[_0x23ef28(0x249)](_0x504399(_0x17dbff));}}const _0x194426=(_0x236926['registeredArguments']||[])[_0x23ef28(0x2c6)](_0x249322=>!_0x350e78(_0x249322));if(_0x194426[_0x23ef28(0xcb)]>0x0){const _0x3437c9=_0x194426[_0x23ef28(0x150)](_0x599b6b=>{const _0x2e8532=_0x23ef28,_0x2567de=_0x516033[_0x2e8532(0x339)](_0x599b6b),_0x1ecf90=_0x516033['argumentDescription'](_0x599b6b);return _0x58cdb6(_0x2567de,_0x1ecf90);});_0x11f95b['push'](''),_0x11f95b[_0x23ef28(0x249)](_0x23ef28(0x219)),_0x11f95b[_0x23ef28(0x249)](_0x504399(_0x3437c9));}return _0x11f95b[_0x23ef28(0x26b)]('\x0a')+'\x0a';},'subcommandTerm':_0x1fb5cd=>{const _0x70d0cf=a2_0x19835d,_0xfe6eb1=(_0x1fb5cd['registeredArguments']||[])[_0x70d0cf(0x150)](_0x20fb34=>_0x20fb34[_0x70d0cf(0xc0)]?'<'+_0x20fb34[_0x70d0cf(0x2ba)]()+'>':'['+_0x20fb34['name']()+']')[_0x70d0cf(0x26b)]('\x20'),_0x5cf9bb=_0x1fb5cd[_0x70d0cf(0xf6)](),_0x561c05=_0x5cf9bb[_0x70d0cf(0xcb)]>0x0?_0x1fb5cd[_0x70d0cf(0x2ba)]()+',\x20'+_0x5cf9bb['join'](',\x20'):_0x1fb5cd[_0x70d0cf(0x2ba)]();return _0xfe6eb1?_0x561c05+'\x20'+_0xfe6eb1:_0x561c05;}}),program[a2_0x19835d(0x1ea)](a2_0x19835d(0x195),_0x1092c7=>{const _0x33f8dc=a2_0x19835d,_0x2350c2=_0x1092c7[_0x33f8dc(0xb8)]();if(_0x2350c2[_0x33f8dc(0x1d3)]){const _0x5a8922=resolve(_0x2350c2[_0x33f8dc(0x1d3)]),_0x3269c9=_0x5a8922!==_0x2350c2[_0x33f8dc(0x1d3)]?_0x33f8dc(0x31a)+_0x5a8922+')':'';if(!existsSync(_0x5a8922))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x33f8dc(0x2d1)+_0x2350c2[_0x33f8dc(0x1d3)]+_0x3269c9,undefined,{'helpText':_0x33f8dc(0xfb)});const _0x1116c0=statSync(_0x5a8922);if(!_0x1116c0['isDirectory']())throw new SDKError(ErrorCode[_0x33f8dc(0x1ed)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x2350c2[_0x33f8dc(0x1d3)]+_0x3269c9,undefined,{'helpText':_0x33f8dc(0x2b8)});process[_0x33f8dc(0x31b)](_0x5a8922);}if(!_0x2350c2[_0x33f8dc(0x13f)]){if(_0x2350c2[_0x33f8dc(0x10a)])_0x2350c2[_0x33f8dc(0x13f)]=_0x33f8dc(0x10a);else{if(_0x2350c2[_0x33f8dc(0xee)])_0x2350c2[_0x33f8dc(0x13f)]='json';else{if(_0x2350c2[_0x33f8dc(0x28f)])_0x2350c2[_0x33f8dc(0x13f)]=_0x33f8dc(0x28f);else _0x2350c2[_0x33f8dc(0x34f)]&&(_0x2350c2[_0x33f8dc(0x13f)]=_0x33f8dc(0x34f));}}}if(_0x2350c2[_0x33f8dc(0x225)])_0x2350c2['logLevel']=LogLevel[_0x33f8dc(0x20a)];else{if(_0x2350c2['debug'])_0x2350c2[_0x33f8dc(0x282)]=LogLevel[_0x33f8dc(0x17e)];else _0x2350c2['logLevel']===undefined&&(_0x2350c2['logLevel']=LogLevel['INFO']);}});async function createTDXInstance(_0x15dba5){const _0x27b450=a2_0x19835d,_0x416ef3=await GlobalContext['createAsync'](_0x15dba5);return _0x416ef3['injectIntoOptions'](_0x15dba5),TDX[_0x27b450(0x166)]({'site':_0x416ef3[_0x27b450(0x12c)],'apiKey':_0x416ef3[_0x27b450(0x250)],'logLevel':_0x416ef3['logLevel'],'profile':_0x416ef3[_0x27b450(0xdb)]});}const databaseCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x176))['alias']('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x21f805,_0x4e6f59)=>{const _0x4bdf28=a2_0x19835d,_0x5da832=new DatabasesCommand(),_0x334938=program[_0x4bdf28(0xb8)](),_0x14a734=await createTDXInstance(_0x334938),_0xac1b79=await _0x5da832[_0x4bdf28(0x212)]({'options':{..._0x334938,..._0x4e6f59},'args':_0x21f805?[_0x21f805]:[],'tdx':_0x14a734});gracefulExit(_0xac1b79);};databaseCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0xac),{'hidden':!![]})[a2_0x19835d(0xd4)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x19835d(0x169)](databaseListAction),program[a2_0x19835d(0x2b1)]('chat\x20[message...]')[a2_0x19835d(0xd4)](a2_0x19835d(0x319))[a2_0x19835d(0x1f7)](a2_0x19835d(0x138),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x110),'Start\x20a\x20new\x20chat\x20session')[a2_0x19835d(0x1f7)](a2_0x19835d(0x15c),a2_0x19835d(0x1a8))[a2_0x19835d(0x1f7)](a2_0x19835d(0x21e),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x19835d(0x169)](async(_0x210536,_0x247011)=>{const _0x44ca62=a2_0x19835d,_0x37a0be=program[_0x44ca62(0xb8)](),_0x44d3f1=await createTDXInstance(_0x37a0be);if(_0x210536[0x0]===_0x44ca62(0x166)){const _0x24f566=new ChatCreateCommand();gracefulExit(await _0x24f566['run']({'options':{..._0x37a0be,..._0x247011},'args':_0x210536[_0x44ca62(0x34b)](0x1),'tdx':_0x44d3f1}));return;}const _0x4a3cc9=new ChatCommand(),_0x10df81=await _0x4a3cc9['run']({'options':{..._0x37a0be,..._0x247011},'args':_0x210536,'tdx':_0x44d3f1});gracefulExit(_0x10df81);});const apiCmd=program[a2_0x19835d(0x2b1)]('api\x20[endpoint]')['summary'](a2_0x19835d(0x17b))['addHelpText'](a2_0x19835d(0x2fa),'\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')['option']('-X,\x20--method\x20<method>',a2_0x19835d(0x32c),a2_0x19835d(0x1aa))[a2_0x19835d(0x1f7)](a2_0x19835d(0x14d),a2_0x19835d(0x2a1))[a2_0x19835d(0x1f7)]('-f,\x20--file\x20<path>',a2_0x19835d(0x236))[a2_0x19835d(0x1f7)](a2_0x19835d(0x22c),a2_0x19835d(0xea),(_0x4063ab,_0x211933)=>{return _0x211933?[..._0x211933,_0x4063ab]:[_0x4063ab];})[a2_0x19835d(0x1f7)](a2_0x19835d(0x11b),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x19835d(0x169)](async(_0x57051e,_0x4d2650)=>{const _0xb1af94=a2_0x19835d;if(!_0x57051e){apiCmd[_0xb1af94(0x205)]();return;}const _0x828aa3=new ApiCommand(),_0x4d5636=program['opts'](),_0x218c38=await createTDXInstance(_0x4d5636),_0x383256=await _0x828aa3[_0xb1af94(0x212)]({'options':{..._0x4d5636,..._0x4d2650},'args':[_0x57051e],'tdx':_0x218c38});gracefulExit(_0x383256);});program[a2_0x19835d(0x2b1)](a2_0x19835d(0x2be))['description'](a2_0x19835d(0x275))[a2_0x19835d(0x1da)](a2_0x19835d(0x2fa),a2_0x19835d(0x2bb))[a2_0x19835d(0x169)](async _0x10944a=>{const _0x3f0ad5=a2_0x19835d,_0xe04b95=new MCPCommand(),_0x4fed8c=program[_0x3f0ad5(0xb8)](),_0x134a3a=await createTDXInstance(_0x4fed8c),_0x375a41=await _0xe04b95[_0x3f0ad5(0x212)]({'options':{..._0x4fed8c,..._0x10944a},'args':[],'tdx':_0x134a3a});gracefulExit(_0x375a41);});const tableCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x10a))[a2_0x19835d(0xd4)]('Table\x20management\x20commands'),tableListAction=async(_0x158273,_0x3c87b0)=>{const _0x57baf3=a2_0x19835d,_0x19229e=new TablesCommand(),_0x3b0a5c=program[_0x57baf3(0xb8)](),_0x3a5150=await createTDXInstance(_0x3b0a5c);_0x3c87b0['in']&&(_0x3c87b0[_0x57baf3(0x176)]=_0x3c87b0['in']);const _0x484393=await _0x19229e[_0x57baf3(0x212)]({'options':{..._0x3b0a5c,..._0x3c87b0},'args':_0x158273?[_0x158273]:[],'tdx':_0x3a5150});gracefulExit(_0x484393);};tableCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x29c))[a2_0x19835d(0x1f7)](a2_0x19835d(0x231),a2_0x19835d(0xb6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1a4),a2_0x19835d(0x164))['action'](tableListAction),program[a2_0x19835d(0x2b1)]('tables\x20[pattern]',{'hidden':!![]})['description'](a2_0x19835d(0x181))[a2_0x19835d(0x1f7)](a2_0x19835d(0x231),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x1a4),a2_0x19835d(0x164))[a2_0x19835d(0x169)](tableListAction),program['command'](a2_0x19835d(0x162))[a2_0x19835d(0xd4)](a2_0x19835d(0x15d))['option'](a2_0x19835d(0x231),a2_0x19835d(0x1d2))[a2_0x19835d(0x1f7)]('--in\x20<database>',a2_0x19835d(0x164))[a2_0x19835d(0x169)](async(_0x3ba617,_0xaf9ba3)=>{const _0xae7e9b=a2_0x19835d,_0xab3634=new ShowCommand(),_0x1fae7a=program[_0xae7e9b(0xb8)](),_0x4fac62=await createTDXInstance(_0x1fae7a);_0xaf9ba3['in']&&(_0xaf9ba3[_0xae7e9b(0x176)]=_0xaf9ba3['in']);const _0x2d7bca=await _0xab3634['run']({'options':{..._0x1fae7a,..._0xaf9ba3},'args':_0x3ba617?[_0x3ba617]:[],'tdx':_0x4fac62});gracefulExit(_0x2d7bca);}),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x116))['alias'](a2_0x19835d(0xa7))[a2_0x19835d(0xd4)](a2_0x19835d(0x1b9))[a2_0x19835d(0x1f7)](a2_0x19835d(0x231),a2_0x19835d(0x1d2))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1a4),a2_0x19835d(0x164))[a2_0x19835d(0x169)](async(_0x937679,_0x5ad92f)=>{const _0x1a5b8f=a2_0x19835d,_0x4882c0=new DescribeCommand(),_0x4ccded=program['opts'](),_0x1a6034=await createTDXInstance(_0x4ccded);_0x5ad92f['in']&&(_0x5ad92f[_0x1a5b8f(0x176)]=_0x5ad92f['in']);const _0x690144=await _0x4882c0[_0x1a5b8f(0x212)]({'options':{..._0x4ccded,..._0x5ad92f},'args':_0x937679?[_0x937679]:[],'tdx':_0x1a6034});gracefulExit(_0x690144);}),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x201))[a2_0x19835d(0xd4)](a2_0x19835d(0x223))[a2_0x19835d(0x1f7)](a2_0x19835d(0x231),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x1a4),a2_0x19835d(0x164))[a2_0x19835d(0x1f7)](a2_0x19835d(0x131),a2_0x19835d(0x1ee))['option']('-f,\x20--file\x20<path>','Read\x20SQL\x20query\x20from\x20file')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c3),a2_0x19835d(0x278),'40')[a2_0x19835d(0x169)](async(_0x2f4876,_0xea8ef3)=>{const _0xdf6bfa=a2_0x19835d,_0x1cfe02=new QueryCommand(),_0x2e5b79=program[_0xdf6bfa(0xb8)](),_0x2dffee=await createTDXInstance(_0x2e5b79);_0xea8ef3['in']&&(_0xea8ef3['database']=_0xea8ef3['in']);const _0x5af6d8=await _0x1cfe02[_0xdf6bfa(0x212)]({'options':{..._0x2e5b79,..._0xea8ef3},'args':_0x2f4876?[_0x2f4876]:[],'tdx':_0x2dffee});gracefulExit(_0x5af6d8);});const segmentCmd=program['command']('segment')[a2_0x19835d(0x1c9)]('sg')[a2_0x19835d(0xd4)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0xf9d0f4,_0x5ac022)=>{const _0x30224f=a2_0x19835d,_0x2f3184=new SegmentsCommand(),_0x480612=program[_0x30224f(0xb8)](),_0x24731b=await createTDXInstance(_0x480612),_0x3a4d5d=await _0x2f3184['run']({'options':{..._0x480612,..._0x5ac022},'args':_0xf9d0f4?[_0xf9d0f4]:[],'tdx':_0x24731b});gracefulExit(_0x3a4d5d);};segmentCmd['command']('list\x20[path]')[a2_0x19835d(0xd4)](a2_0x19835d(0x133))[a2_0x19835d(0x1f7)](a2_0x19835d(0x151),a2_0x19835d(0x17f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x294),a2_0x19835d(0xb4),'10')[a2_0x19835d(0x169)](segmentListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x140),{'hidden':!![]})[a2_0x19835d(0xd4)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x151),a2_0x19835d(0x17f))['option'](a2_0x19835d(0x294),a2_0x19835d(0xb4),'10')[a2_0x19835d(0x169)](segmentListAction),segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x26a),{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x2cf))['action'](async(_0xbe43f4,_0x136aaa)=>{const _0xc4f6f0=a2_0x19835d,_0x1a9f6f=new SegmentUseCommand(),_0x103305=program['opts'](),_0x39be87=await createTDXInstance(_0x103305),_0x434fff=await _0x1a9f6f[_0xc4f6f0(0x212)]({'options':{..._0x103305,..._0x136aaa},'args':[_0xbe43f4],'tdx':_0x39be87});gracefulExit(_0x434fff);});const segmentViewAction=async(_0x58ca03,_0x297008)=>{const _0x51f7de=a2_0x19835d,_0x22a66a=new SegmentViewCommand(),_0x4b28bb=program[_0x51f7de(0xb8)](),_0x789b99=await createTDXInstance(_0x4b28bb),_0x33b13c=await _0x22a66a['run']({'options':{..._0x4b28bb,..._0x297008},'args':_0x58ca03?[_0x58ca03]:[],'tdx':_0x789b99});gracefulExit(_0x33b13c);};segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x175))[a2_0x19835d(0xd4)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x32e),'Open\x20segment\x20in\x20web\x20browser')['action'](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x19835d(0x1c9)](a2_0x19835d(0x226))['option'](a2_0x19835d(0x32e),a2_0x19835d(0xdd))['description'](a2_0x19835d(0x10f))[a2_0x19835d(0x169)](segmentViewAction),segmentCmd['command'](a2_0x19835d(0x2f0))[a2_0x19835d(0xd4)](a2_0x19835d(0xbe))['action'](async(_0x26580e,_0x3dce97)=>{const _0x37b81d=a2_0x19835d,_0x498e6a=new SegmentDescCommand(),_0x3941e5=program[_0x37b81d(0xb8)](),_0x41ae9c=await createTDXInstance(_0x3941e5),_0x26aff3=await _0x498e6a[_0x37b81d(0x212)]({'options':{..._0x3941e5,..._0x3dce97},'args':_0x26580e?[_0x26580e]:[],'tdx':_0x41ae9c});gracefulExit(_0x26aff3);}),segmentCmd[a2_0x19835d(0x2b1)]('show\x20[segment_name]')[a2_0x19835d(0xd4)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x33994c,_0x40b132)=>{const _0x3fbf57=a2_0x19835d,_0x5c1395=new SegmentShowCommand(),_0x43a9d1=program[_0x3fbf57(0xb8)](),_0x36333f=await createTDXInstance(_0x43a9d1),_0x569689=await _0x5c1395[_0x3fbf57(0x212)]({'options':{..._0x43a9d1,..._0x40b132},'args':_0x33994c?[_0x33994c]:[],'tdx':_0x36333f});gracefulExit(_0x569689);}),segmentCmd['command'](a2_0x19835d(0x2b2),{'hidden':!![]})[a2_0x19835d(0xd4)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x19835d(0x169)](async(_0x2d6afa,_0x117d85)=>{const _0x5189f9=a2_0x19835d,_0x3df528=new SegmentFolderListCommand(),_0x2216b5=program[_0x5189f9(0xb8)](),_0x4f4b40=await createTDXInstance(_0x2216b5),_0x389f34=await _0x3df528[_0x5189f9(0x212)]({'options':{..._0x2216b5,..._0x117d85},'args':[_0x2d6afa],'tdx':_0x4f4b40});gracefulExit(_0x389f34);});const folderCmd=segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x277),{'hidden':!![]})['description'](a2_0x19835d(0x1a3));folderCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x32a))[a2_0x19835d(0xd4)](a2_0x19835d(0x1e7))['action'](async(_0x48b0f2,_0x4e1c95)=>{const _0xef216f=a2_0x19835d,_0xb82168=new SegmentFolderShowCommand(),_0x320c7a=program[_0xef216f(0xb8)](),_0x5b8ec6=await createTDXInstance(_0x320c7a),_0x1bf9a6=await _0xb82168[_0xef216f(0x212)]({'options':{..._0x320c7a,..._0x4e1c95},'args':[_0x48b0f2],'tdx':_0x5b8ec6});gracefulExit(_0x1bf9a6);}),segmentCmd['command'](a2_0x19835d(0x13e))[a2_0x19835d(0xd4)](a2_0x19835d(0x2ea))['action'](async(_0x261c3b,_0x38e1b0)=>{const _0x9cf928=a2_0x19835d,_0x1ed671=new SegmentSQLCommand(),_0x2cf5a7=program['opts'](),_0x4b0628=await createTDXInstance(_0x2cf5a7),_0x853883=await _0x1ed671[_0x9cf928(0x212)]({'options':{..._0x2cf5a7,..._0x38e1b0},'args':_0x261c3b?[_0x261c3b]:[],'tdx':_0x4b0628});gracefulExit(_0x853883);}),segmentCmd['command'](a2_0x19835d(0x32b))[a2_0x19835d(0xd4)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x19835d(0x169)](async(_0x5c4589,_0x2f0e36)=>{const _0x359a7c=a2_0x19835d,_0x276427=new SegmentFieldsCommand(),_0x448c97=program[_0x359a7c(0xb8)](),_0x1348b6=await createTDXInstance(_0x448c97),_0x5d941f=await _0x276427[_0x359a7c(0x212)]({'options':{..._0x448c97,..._0x2f0e36},'args':_0x5c4589?[_0x5c4589]:[],'tdx':_0x1348b6});gracefulExit(_0x5d941f);}),segmentCmd[a2_0x19835d(0x2b1)]('pull\x20[parent_or_file]')[a2_0x19835d(0xd4)](a2_0x19835d(0x122))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x111))[a2_0x19835d(0x169)](async(_0x3e9e15,_0x51997d)=>{const _0x8c66a0=a2_0x19835d,_0xcac308=new SegmentPullCommand(),_0x576a51=program[_0x8c66a0(0xb8)](),_0x62564a=await createTDXInstance(_0x576a51),_0xe64736=await _0xcac308[_0x8c66a0(0x212)]({'options':{..._0x576a51,..._0x51997d},'args':_0x3e9e15?[_0x3e9e15]:[],'tdx':_0x62564a});gracefulExit(_0xe64736);}),segmentCmd['command'](a2_0x19835d(0x220))['description'](a2_0x19835d(0x2a6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x111))[a2_0x19835d(0x1f7)]('--delete',a2_0x19835d(0x286))['action'](async(_0x931991,_0x4e445a)=>{const _0x3ef39a=a2_0x19835d,_0x4ee896=new SegmentPushCommand(),_0x18a75f=program[_0x3ef39a(0xb8)](),_0x1a7f9b=await createTDXInstance(_0x18a75f),_0x5b4bd8=await _0x4ee896[_0x3ef39a(0x212)]({'options':{..._0x18a75f,..._0x4e445a},'args':_0x931991?[_0x931991]:[],'tdx':_0x1a7f9b});gracefulExit(_0x5b4bd8);}),segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xbc))[a2_0x19835d(0xd4)](a2_0x19835d(0xeb))[a2_0x19835d(0x169)](async(_0x17f55c,_0xe077)=>{const _0x5af4df=a2_0x19835d,_0x84abef=new SegmentValidateCommand(),_0x3267b4=program[_0x5af4df(0xb8)](),_0x2d977b=await createTDXInstance(_0x3267b4),_0x12cf42=await _0x84abef[_0x5af4df(0x212)]({'options':{..._0x3267b4,..._0xe077},'args':_0x17f55c?[_0x17f55c]:[],'tdx':_0x2d977b});gracefulExit(_0x12cf42);}),segmentCmd[a2_0x19835d(0x2b1)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x1a6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f1),a2_0x19835d(0x142))[a2_0x19835d(0x1f7)](a2_0x19835d(0x193),a2_0x19835d(0x2e3))[a2_0x19835d(0x1f7)](a2_0x19835d(0x281),a2_0x19835d(0xfa))[a2_0x19835d(0x1f7)](a2_0x19835d(0x312),a2_0x19835d(0x159))['option'](a2_0x19835d(0x2df),a2_0x19835d(0x252))[a2_0x19835d(0x1f7)](a2_0x19835d(0x242),'Make\x20segment\x20invisible\x20(default:\x20visible)')['option'](a2_0x19835d(0x33f),a2_0x19835d(0x332))[a2_0x19835d(0x169)](async(_0x3d26e2,_0x4dac1f)=>{const _0x13e69a=a2_0x19835d,_0x3b4698=new SegmentCreateCommand(),_0x420f73=program['opts'](),_0x28ef58=await createTDXInstance(_0x420f73),_0x263655=await _0x3b4698[_0x13e69a(0x212)]({'options':{..._0x420f73,..._0x4dac1f},'args':[_0x3d26e2],'tdx':_0x28ef58});gracefulExit(_0x263655);}),segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x288),{'hidden':!![]})['description'](a2_0x19835d(0x29a))[a2_0x19835d(0x1f7)](a2_0x19835d(0x227),a2_0x19835d(0x1c5))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f1),a2_0x19835d(0x1e6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x193),a2_0x19835d(0x2c7))[a2_0x19835d(0x1f7)](a2_0x19835d(0x281),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x19835d(0x1f7)](a2_0x19835d(0x312),a2_0x19835d(0x17a))['option'](a2_0x19835d(0x2df),a2_0x19835d(0x252))[a2_0x19835d(0x169)](async(_0x4b61e6,_0x517def)=>{const _0x5ddd60=a2_0x19835d,_0x3b670d=new SegmentUpdateCommand(),_0x2eac7c=program[_0x5ddd60(0xb8)](),_0x194a2d=await createTDXInstance(_0x2eac7c),_0x40d2f8=await _0x3b670d['run']({'options':{..._0x2eac7c,..._0x517def},'args':[_0x4b61e6],'tdx':_0x194a2d});gracefulExit(_0x40d2f8);});const parentCmd=segmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xc2),{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x137)),parentListAction=async(_0x2c5812,_0x52fe28)=>{const _0x4f3d1d=a2_0x19835d,_0x4382ee=new ParentSegmentListCommand(),_0x3520dc=program[_0x4f3d1d(0xb8)](),_0x3c65e0=await createTDXInstance(_0x3520dc),_0x300167=await _0x4382ee['run']({'options':{..._0x3520dc,..._0x52fe28},'args':_0x2c5812?[_0x2c5812]:[],'tdx':_0x3c65e0});gracefulExit(_0x300167);};parentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x1dd))[a2_0x19835d(0x169)](parentListAction),segmentCmd['command'](a2_0x19835d(0xcf),{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x2fb))[a2_0x19835d(0x169)](parentListAction),parentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x21b))[a2_0x19835d(0xd4)](a2_0x19835d(0x215))[a2_0x19835d(0x1f7)](a2_0x19835d(0x285),a2_0x19835d(0x333))[a2_0x19835d(0x169)](async(_0x210c83,_0x23f297)=>{const _0x3ccd13=a2_0x19835d,_0x2e0cc1=new ParentSegmentPullCommand(),_0x25c3f3=program[_0x3ccd13(0xb8)](),_0x3c0b78=await createTDXInstance(_0x25c3f3),_0x327137=await _0x2e0cc1[_0x3ccd13(0x212)]({'options':{..._0x25c3f3,..._0x23f297},'args':_0x210c83?[_0x210c83]:[],'tdx':_0x3c0b78});gracefulExit(_0x327137);}),parentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x35d))[a2_0x19835d(0xd4)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['action'](async(_0x51d6cc,_0x3b8d17)=>{const _0x1cd5fa=a2_0x19835d,_0x2e551b=new ParentSegmentPushCommand(),_0x48cf8e=program['opts'](),_0x480512=await createTDXInstance(_0x48cf8e),_0xf132ab=await _0x2e551b[_0x1cd5fa(0x212)]({'options':{..._0x48cf8e,..._0x3b8d17},'args':_0x51d6cc?[_0x51d6cc]:[],'tdx':_0x480512});gracefulExit(_0xf132ab);}),parentCmd['command']('validate\x20[file]')[a2_0x19835d(0xd4)](a2_0x19835d(0x143))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c9),a2_0x19835d(0x1f9))['option'](a2_0x19835d(0x2eb),a2_0x19835d(0x1ab))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe6),a2_0x19835d(0xe8))['option'](a2_0x19835d(0xe2),a2_0x19835d(0x161))[a2_0x19835d(0x1f7)](a2_0x19835d(0x19c),a2_0x19835d(0x338),a2_0x19835d(0x1b0))['action'](async(_0xede86e,_0x6828c3)=>{const _0x511fdb=a2_0x19835d,_0x394e34=new ParentSegmentValidateCommand(),_0x3ec8c9=program[_0x511fdb(0xb8)](),_0x2d65d1=await createTDXInstance(_0x3ec8c9),_0x1e614d=await _0x394e34[_0x511fdb(0x212)]({'options':{..._0x3ec8c9,..._0x6828c3},'args':_0xede86e?[_0xede86e]:[],'tdx':_0x2d65d1});gracefulExit(_0x1e614d);}),parentCmd['command'](a2_0x19835d(0x189))[a2_0x19835d(0xd4)](a2_0x19835d(0x21c))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c9),'Show\x20master\x20table\x20sample\x20data')[a2_0x19835d(0x1f7)]('--attribute\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')['option'](a2_0x19835d(0xe6),a2_0x19835d(0x2fd))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe2),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x19835d(0x19c),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x19835d(0x1b0))[a2_0x19835d(0x169)](async(_0x26557a,_0x142c1f)=>{const _0x54583d=a2_0x19835d,_0x2d4ff3=new ParentSegmentPreviewCommand(),_0x287bf=program[_0x54583d(0xb8)](),_0x54c709=await createTDXInstance(_0x287bf),_0x88d5c1=await _0x2d4ff3['run']({'options':{..._0x287bf,..._0x142c1f},'args':_0x26557a?[_0x26557a]:[],'tdx':_0x54c709});gracefulExit(_0x88d5c1);}),parentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x248))[a2_0x19835d(0xd4)](a2_0x19835d(0xf0))['action'](async(_0x5742c2,_0x10781c)=>{const _0x857736=new ParentSegmentRunCommand(),_0x3b70ea=program['opts'](),_0x4b8a1a=await createTDXInstance(_0x3b70ea),_0x5f527e=await _0x857736['run']({'options':{..._0x3b70ea,..._0x10781c},'args':_0x5742c2?[_0x5742c2]:[],'tdx':_0x4b8a1a});gracefulExit(_0x5f527e);});function a2_0x5509(_0x412460,_0x1ceab2){_0x412460=_0x412460-0xa7;const _0x19eb21=a2_0x19eb();let _0x5509c0=_0x19eb21[_0x412460];return _0x5509c0;}const parentSegmentCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x101))[a2_0x19835d(0x1c9)]('ps')[a2_0x19835d(0xd4)](a2_0x19835d(0x245));parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x1dd))[a2_0x19835d(0x169)](parentListAction),parentSegmentCmd[a2_0x19835d(0x2b1)]('pull\x20[name]')[a2_0x19835d(0xd4)](a2_0x19835d(0x327))[a2_0x19835d(0x1f7)](a2_0x19835d(0x285),a2_0x19835d(0x2e2))[a2_0x19835d(0x1f7)](a2_0x19835d(0x33a),a2_0x19835d(0x208))['action'](async(_0xaa91fe,_0x2b893b)=>{const _0xd70127=a2_0x19835d,_0x2c5c83=new ParentSegmentPullCommand(),_0x23b01c=program['opts'](),_0x2df4f1=await createTDXInstance(_0x23b01c),_0x2cc478=await _0x2c5c83[_0xd70127(0x212)]({'options':{..._0x23b01c,..._0x2b893b},'args':_0xaa91fe?[_0xaa91fe]:[],'tdx':_0x2df4f1});gracefulExit(_0x2cc478);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1c3))[a2_0x19835d(0xd4)](a2_0x19835d(0xad))[a2_0x19835d(0x169)](async(_0x385acc,_0x527d8f)=>{const _0x267cb1=a2_0x19835d,_0x309a13=new ParentSegmentPushCommand(),_0x1c6a79=program[_0x267cb1(0xb8)](),_0x5f45ce=await createTDXInstance(_0x1c6a79),_0x4fae56=await _0x309a13[_0x267cb1(0x212)]({'options':{..._0x1c6a79,..._0x527d8f},'args':_0x385acc?[_0x385acc]:[],'tdx':_0x5f45ce});gracefulExit(_0x4fae56);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x329))[a2_0x19835d(0xd4)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c9),'Show\x20only\x20master\x20table\x20validation')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2eb),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x19835d(0x1f7)](a2_0x19835d(0xe6),a2_0x19835d(0xe8))['option'](a2_0x19835d(0xe2),a2_0x19835d(0x161))[a2_0x19835d(0x1f7)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x19835d(0x1b0))[a2_0x19835d(0x169)](async(_0x4e8cb8,_0x1c9d2a)=>{const _0xee9246=a2_0x19835d,_0xf4bc9e=new ParentSegmentValidateCommand(),_0x45a334=program[_0xee9246(0xb8)](),_0x4657df=await createTDXInstance(_0x45a334),_0x1f20d8=await _0xf4bc9e[_0xee9246(0x212)]({'options':{..._0x45a334,..._0x1c9d2a},'args':_0x4e8cb8?[_0x4e8cb8]:[],'tdx':_0x4657df});gracefulExit(_0x1f20d8);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x10b))[a2_0x19835d(0xd4)](a2_0x19835d(0x21c))['option']('--master',a2_0x19835d(0x352))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2eb),a2_0x19835d(0x158))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe6),a2_0x19835d(0x2fd))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe2),a2_0x19835d(0x2b5))['option'](a2_0x19835d(0x19c),a2_0x19835d(0x338),a2_0x19835d(0x1b0))[a2_0x19835d(0x169)](async(_0xc135a9,_0x1969c3)=>{const _0x426b21=a2_0x19835d,_0x1dd736=new ParentSegmentPreviewCommand(),_0x5a7774=program[_0x426b21(0xb8)](),_0x43dad9=await createTDXInstance(_0x5a7774),_0x571817=await _0x1dd736['run']({'options':{..._0x5a7774,..._0x1969c3},'args':_0xc135a9?[_0xc135a9]:[],'tdx':_0x43dad9});gracefulExit(_0x571817);}),parentSegmentCmd['command'](a2_0x19835d(0x248))['description'](a2_0x19835d(0xf0))[a2_0x19835d(0x169)](async(_0x3d7f36,_0xeed9f)=>{const _0x1aeb44=a2_0x19835d,_0x476429=new ParentSegmentRunCommand(),_0x95bb2=program['opts'](),_0x181e53=await createTDXInstance(_0x95bb2),_0x5064af=await _0x476429[_0x1aeb44(0x212)]({'options':{..._0x95bb2,..._0xeed9f},'args':_0x3d7f36?[_0x3d7f36]:[],'tdx':_0x181e53});gracefulExit(_0x5064af);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x144))[a2_0x19835d(0xd4)](a2_0x19835d(0x171))[a2_0x19835d(0x1f7)](a2_0x19835d(0x314),a2_0x19835d(0x2d9))[a2_0x19835d(0x1f7)]('--jsonl',a2_0x19835d(0x1b5))[a2_0x19835d(0x169)](async(_0x5972c7,_0x2e987)=>{const _0x1e302c=a2_0x19835d,_0x4081de=new ParentSegmentFieldsCommand(),_0x4eac94=program[_0x1e302c(0xb8)](),_0x305a5e=await createTDXInstance(_0x4eac94),_0x3cf560=await _0x4081de['run']({'options':{..._0x4eac94,..._0x2e987},'args':_0x5972c7?[_0x5972c7]:[],'tdx':_0x305a5e});gracefulExit(_0x3cf560);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x316))[a2_0x19835d(0xd4)](a2_0x19835d(0x337))[a2_0x19835d(0x1f7)](a2_0x19835d(0x32e),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x19835d(0x1f7)](a2_0x19835d(0x314),'Output\x20as\x20JSON')[a2_0x19835d(0x1f7)](a2_0x19835d(0x153),a2_0x19835d(0x1b5))[a2_0x19835d(0x169)](async(_0x3e3efe,_0x55a947)=>{const _0x45eb8e=a2_0x19835d,_0x4d92e7=new ParentSegmentViewCommand(),_0x32dadd=program[_0x45eb8e(0xb8)](),_0x5a89cf=await createTDXInstance(_0x32dadd),_0x188730=await _0x4d92e7[_0x45eb8e(0x212)]({'options':{..._0x32dadd,..._0x55a947},'args':_0x3e3efe?[_0x3e3efe]:[],'tdx':_0x5a89cf});gracefulExit(_0x188730);}),parentSegmentCmd[a2_0x19835d(0x2b1)]('desc\x20[name]')[a2_0x19835d(0xd4)](a2_0x19835d(0x2d5))[a2_0x19835d(0x1f7)](a2_0x19835d(0x285),a2_0x19835d(0x2e2))[a2_0x19835d(0x1f7)]('--json',a2_0x19835d(0x2d9))[a2_0x19835d(0x1f7)](a2_0x19835d(0x153),'Output\x20as\x20JSON\x20Lines')[a2_0x19835d(0x169)](async(_0xfd2fbf,_0x5ee002)=>{const _0x47997f=a2_0x19835d,_0x2b57a4=new ParentSegmentDescCommand(),_0x4180a3=program['opts'](),_0x161a5d=await createTDXInstance(_0x4180a3),_0x1db43f=await _0x2b57a4[_0x47997f(0x212)]({'options':{..._0x4180a3,..._0x5ee002},'args':_0xfd2fbf?[_0xfd2fbf]:[],'tdx':_0x161a5d});gracefulExit(_0x1db43f);}),parentSegmentCmd[a2_0x19835d(0x2b1)]('sql\x20[name]')[a2_0x19835d(0xd4)](a2_0x19835d(0x1b1))[a2_0x19835d(0x1f7)](a2_0x19835d(0x314),a2_0x19835d(0x2d9))['option'](a2_0x19835d(0x153),a2_0x19835d(0x1b5))[a2_0x19835d(0x169)](async(_0x5d67b5,_0x58f1ae)=>{const _0x3ddacf=a2_0x19835d,_0x37c813=new ParentSegmentSQLCommand(),_0x6200d4=program[_0x3ddacf(0xb8)](),_0xb286a=await createTDXInstance(_0x6200d4),_0x4b2853=await _0x37c813[_0x3ddacf(0x212)]({'options':{..._0x6200d4,..._0x58f1ae},'args':_0x5d67b5?[_0x5d67b5]:[],'tdx':_0xb286a});gracefulExit(_0x4b2853);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x120))[a2_0x19835d(0xd4)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x19835d(0x1f7)]('--limit\x20<n>',a2_0x19835d(0x26e))[a2_0x19835d(0x1f7)]('--json',a2_0x19835d(0x2d9))[a2_0x19835d(0x1f7)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0x1fceb7,_0x508c82)=>{const _0x2e477e=a2_0x19835d,_0x5c1d97=new ParentSegmentShowCommand(),_0x3d5a59=program[_0x2e477e(0xb8)](),_0x35dbee=await createTDXInstance(_0x3d5a59),_0x284d7d=await _0x5c1d97['run']({'options':{..._0x3d5a59,..._0x508c82},'args':_0x1fceb7?[_0x1fceb7]:[],'tdx':_0x35dbee});gracefulExit(_0x284d7d);}),parentSegmentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xc6))[a2_0x19835d(0xd4)](a2_0x19835d(0x351))[a2_0x19835d(0x169)](async(_0x352f12,_0x154ea3)=>{const _0x18d5ed=a2_0x19835d,_0x517646=new UseCommand(),_0x571826=program[_0x18d5ed(0xb8)](),_0x2dd4a1=_0x352f12?[_0x18d5ed(0x1d1),_0x352f12]:[],_0x380a9f=await _0x517646['run']({'options':{..._0x571826,..._0x154ea3},'args':_0x2dd4a1,'tdx':null});gracefulExit(_0x380a9f);});const psRtCmd=parentSegmentCmd[a2_0x19835d(0x2b1)]('rt')[a2_0x19835d(0xd4)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x16a))[a2_0x19835d(0x169)](async(_0x4dd2d2,_0x2c7c6a)=>{const _0x2b1ae3=a2_0x19835d,_0x49c94c=new PSRtListCommand(),_0x1db49f=program['opts'](),_0x37e187=await createTDXInstance(_0x1db49f),_0xfdea57=await _0x49c94c[_0x2b1ae3(0x212)]({'options':{..._0x1db49f,..._0x2c7c6a},'args':_0x4dd2d2?[_0x4dd2d2]:[],'tdx':_0x37e187});gracefulExit(_0xfdea57);}),psRtCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x329))[a2_0x19835d(0xd4)](a2_0x19835d(0x259))[a2_0x19835d(0x169)](async(_0x2004fb,_0x1eecdb)=>{const _0x4f2328=a2_0x19835d,_0x542a4c=new PSRtValidateCommand(),_0x15dbe0=program[_0x4f2328(0xb8)](),_0x359dd7=await createTDXInstance(_0x15dbe0),_0x2e922f=await _0x542a4c[_0x4f2328(0x212)]({'options':{..._0x15dbe0,..._0x1eecdb},'args':_0x2004fb?[_0x2004fb]:[],'tdx':_0x359dd7});gracefulExit(_0x2e922f);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x19835d(0x103));parentRtCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x16a))[a2_0x19835d(0x169)](async(_0x39d7e3,_0xfe22a1)=>{const _0x1ce37b=a2_0x19835d,_0x14e3dd=new PSRtListCommand(),_0x53d970=program['opts'](),_0x3dfc41=await createTDXInstance(_0x53d970),_0x342f66=await _0x14e3dd[_0x1ce37b(0x212)]({'options':{..._0x53d970,..._0xfe22a1},'args':_0x39d7e3?[_0x39d7e3]:[],'tdx':_0x3dfc41});gracefulExit(_0x342f66);}),parentRtCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x329))[a2_0x19835d(0xd4)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x19835d(0x169)](async(_0x176d51,_0x34ee92)=>{const _0x283e2f=a2_0x19835d,_0x24145c=new PSRtValidateCommand(),_0x484c24=program['opts'](),_0x51f751=await createTDXInstance(_0x484c24),_0x5e90e6=await _0x24145c[_0x283e2f(0x212)]({'options':{..._0x484c24,..._0x34ee92},'args':_0x176d51?[_0x176d51]:[],'tdx':_0x51f751});gracefulExit(_0x5e90e6);});const psPzCmd=parentSegmentCmd[a2_0x19835d(0x2b1)]('pz')['description'](a2_0x19835d(0x251));psPzCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x33c))['description'](a2_0x19835d(0xa8))[a2_0x19835d(0x169)](async(_0x141863,_0x93b626)=>{const _0x5b1574=a2_0x19835d,_0x15fb7d=new PSPzListCommand(),_0x591724=program[_0x5b1574(0xb8)](),_0x334d8f=await createTDXInstance(_0x591724),_0x29c684=await _0x15fb7d['run']({'options':{..._0x591724,..._0x93b626},'args':_0x141863?[_0x141863]:[],'tdx':_0x334d8f});gracefulExit(_0x29c684);}),psPzCmd[a2_0x19835d(0x2b1)]('init\x20[name]')[a2_0x19835d(0xd4)](a2_0x19835d(0x2da))[a2_0x19835d(0x169)](async(_0x292ed3,_0x304971)=>{const _0x6f3c03=a2_0x19835d,_0x49cfa8=new PSPzInitCommand(),_0x361607=program[_0x6f3c03(0xb8)](),_0x193e18=await createTDXInstance(_0x361607),_0x2b56a7=await _0x49cfa8[_0x6f3c03(0x212)]({'options':{..._0x361607,..._0x304971},'args':_0x292ed3?[_0x292ed3]:[],'tdx':_0x193e18});gracefulExit(_0x2b56a7);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x19835d(0xd4)]('Personalization\x20service\x20management');parentPzCmd[a2_0x19835d(0x2b1)]('list\x20[name]')[a2_0x19835d(0xd4)](a2_0x19835d(0xa8))['action'](async(_0x1f3a58,_0x406197)=>{const _0x213811=a2_0x19835d,_0x221029=new PSPzListCommand(),_0x4dd236=program[_0x213811(0xb8)](),_0x2f102d=await createTDXInstance(_0x4dd236),_0x55929c=await _0x221029[_0x213811(0x212)]({'options':{..._0x4dd236,..._0x406197},'args':_0x1f3a58?[_0x1f3a58]:[],'tdx':_0x2f102d});gracefulExit(_0x55929c);}),parentPzCmd['command'](a2_0x19835d(0xf4))[a2_0x19835d(0xd4)](a2_0x19835d(0x2da))[a2_0x19835d(0x169)](async(_0x15d589,_0x302452)=>{const _0x4f417f=a2_0x19835d,_0x5ab25c=new PSPzInitCommand(),_0x1043f2=program[_0x4f417f(0xb8)](),_0xeb9258=await createTDXInstance(_0x1043f2),_0x3dde2c=await _0x5ab25c[_0x4f417f(0x212)]({'options':{..._0x1043f2,..._0x302452},'args':_0x15d589?[_0x15d589]:[],'tdx':_0xeb9258});gracefulExit(_0x3dde2c);}),parentCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2f3))['description'](a2_0x19835d(0x241))[a2_0x19835d(0xf9)](a2_0x19835d(0x21a),a2_0x19835d(0x1f3))[a2_0x19835d(0xf9)]('--table\x20<table>',a2_0x19835d(0x16e))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f1),a2_0x19835d(0x2f4))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2cc),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x19835d(0x1f7)](a2_0x19835d(0x1e9),a2_0x19835d(0x12f))[a2_0x19835d(0x1f7)]('--timezone\x20<tz>',a2_0x19835d(0x135))[a2_0x19835d(0x1f7)]('--attributes\x20<json>',a2_0x19835d(0xbd))['option'](a2_0x19835d(0x206),a2_0x19835d(0x33e))['option']('--behaviors\x20<json>',a2_0x19835d(0x31d))[a2_0x19835d(0x1f7)]('--behaviors-file\x20<file>',a2_0x19835d(0x1f1))['option'](a2_0x19835d(0x2bd),a2_0x19835d(0xde))[a2_0x19835d(0x1f7)]('--customer-group-file\x20<file>',a2_0x19835d(0x1e4))[a2_0x19835d(0x169)](async(_0x533f41,_0x65de59)=>{const _0x26c3a6=a2_0x19835d,_0x15390c=new ParentSegmentCreateCommand(),_0x560e00=program[_0x26c3a6(0xb8)](),_0x4f715b=await createTDXInstance(_0x560e00),_0x3b8d00=await _0x15390c['run']({'options':{..._0x560e00,..._0x65de59},'args':[_0x533f41],'tdx':_0x4f715b});gracefulExit(_0x3b8d00);}),parentCmd['command']('update\x20<name>')[a2_0x19835d(0xd4)](a2_0x19835d(0x1a7))['option'](a2_0x19835d(0x2f1),a2_0x19835d(0x1e6))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2cc),a2_0x19835d(0x179))['option'](a2_0x19835d(0x1e9),a2_0x19835d(0x335))[a2_0x19835d(0x1f7)](a2_0x19835d(0x15b),a2_0x19835d(0x356))['option'](a2_0x19835d(0x218),a2_0x19835d(0x2dd))[a2_0x19835d(0x1f7)](a2_0x19835d(0x188),a2_0x19835d(0x274))[a2_0x19835d(0x1f7)](a2_0x19835d(0x191),a2_0x19835d(0x1ae))[a2_0x19835d(0x1f7)](a2_0x19835d(0x30c),a2_0x19835d(0x341))[a2_0x19835d(0x169)](async(_0x336206,_0x3a619e)=>{const _0x3c2eed=a2_0x19835d,_0x21a7da=new ParentSegmentUpdateCommand(),_0x1f0bfa=program[_0x3c2eed(0xb8)](),_0x5a3229=await createTDXInstance(_0x1f0bfa),_0x24bb6e=await _0x21a7da[_0x3c2eed(0x212)]({'options':{..._0x1f0bfa,..._0x3a619e},'args':[_0x336206],'tdx':_0x5a3229});gracefulExit(_0x24bb6e);}),folderCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x31e))['description'](a2_0x19835d(0x26f))['option'](a2_0x19835d(0x2f1),a2_0x19835d(0xda))['option'](a2_0x19835d(0x10c),a2_0x19835d(0x213))[a2_0x19835d(0x169)](async(_0x2d9bdc,_0x4b7fef,_0x54da75)=>{const _0x2181fa=a2_0x19835d,_0x522297=new SegmentFolderCreateCommand(),_0x5a8658=program[_0x2181fa(0xb8)](),_0x1e9215=await createTDXInstance(_0x5a8658),_0x13d061=await _0x522297[_0x2181fa(0x212)]({'options':{..._0x5a8658,..._0x54da75},'args':[_0x2d9bdc,_0x4b7fef],'tdx':_0x1e9215});gracefulExit(_0x13d061);}),program[a2_0x19835d(0x2b1)]('activations\x20<segment_name>')['description']('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x19835d(0x169)](async(_0x321d55,_0x75241e)=>{const _0x33c8dd=a2_0x19835d,_0x4cfbb7=new ActivationsCommand(),_0x2ddf11=program[_0x33c8dd(0xb8)](),_0x3c5fe6=await createTDXInstance(_0x2ddf11),_0x537f13=await _0x4cfbb7['run']({'options':{..._0x2ddf11,..._0x75241e},'args':[_0x321d55],'tdx':_0x3c5fe6});gracefulExit(_0x537f13);});const workflowCmd=program[a2_0x19835d(0x2b1)]('workflow')[a2_0x19835d(0x1c9)]('wf')['description'](a2_0x19835d(0x14c)),wfProjectCmd=workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x257))['description'](a2_0x19835d(0x1c4)),wfProjectListAction=async(_0x541a18,_0x809402)=>{const _0x14735d=a2_0x19835d,_0x2d443b=new WorkflowProjectsCommand(),_0x4a9276=program[_0x14735d(0xb8)](),_0xc82041=await createTDXInstance(_0x4a9276),_0x247646=await _0x2d443b[_0x14735d(0x212)]({'options':{..._0x4a9276,..._0x809402},'args':_0x541a18?[_0x541a18]:[],'tdx':_0xc82041});gracefulExit(_0x247646);};wfProjectCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x19835d(0x169)](wfProjectListAction),workflowCmd['command'](a2_0x19835d(0x1cd))[a2_0x19835d(0xd4)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x19835d(0x169)](wfProjectListAction);const wfWorkflowListAction=async(_0x1d7059,_0xedc2ea)=>{const _0x3ded2e=a2_0x19835d,_0x2a5f80=new WorkflowWorkflowsCommand(),_0x5f1535=program['opts'](),_0x4db0a8=await createTDXInstance(_0x5f1535),_0x25f812=await _0x2a5f80[_0x3ded2e(0x212)]({'options':{..._0x5f1535,..._0xedc2ea},'args':_0x1d7059?[_0x1d7059]:[],'tdx':_0x4db0a8});gracefulExit(_0x25f812);};workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x157))[a2_0x19835d(0xd4)](a2_0x19835d(0x2e1))[a2_0x19835d(0x169)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x328))[a2_0x19835d(0xd4)](a2_0x19835d(0x2b0)),wfSessionListAction=async(_0x173540,_0x25b678)=>{const _0x51f1ba=a2_0x19835d,_0x3c9671=new WorkflowSessionsCommand(),_0x104dd1=program['opts'](),_0x42d0c6=await createTDXInstance(_0x104dd1),_0x36dc6=await _0x3c9671[_0x51f1ba(0x212)]({'options':{..._0x104dd1,..._0x25b678},'args':_0x173540?[_0x173540]:[],'tdx':_0x42d0c6});gracefulExit(_0x36dc6);};wfSessionCmd['command'](a2_0x19835d(0x280))[a2_0x19835d(0xd4)](a2_0x19835d(0x2ef))[a2_0x19835d(0x1f7)](a2_0x19835d(0x279),a2_0x19835d(0xd6))[a2_0x19835d(0x1f7)](a2_0x19835d(0xb5),a2_0x19835d(0x1c1))['option']('--to\x20<timestamp>',a2_0x19835d(0x23e))[a2_0x19835d(0x169)](wfSessionListAction),workflowCmd['command'](a2_0x19835d(0x1fd))['description'](a2_0x19835d(0x25f))[a2_0x19835d(0x1f7)]('--status\x20<status>',a2_0x19835d(0xd6))[a2_0x19835d(0x1f7)](a2_0x19835d(0xb5),a2_0x19835d(0x1c1))[a2_0x19835d(0x1f7)](a2_0x19835d(0x19b),a2_0x19835d(0x23e))[a2_0x19835d(0x169)](wfSessionListAction);const wfAttemptListAction=async(_0x3663b5,_0x394bb5)=>{const _0x4e7dd7=a2_0x19835d,_0x495cc7=new WorkflowAttemptsCommand(),_0x44a1f0=program[_0x4e7dd7(0xb8)](),_0x547322=await createTDXInstance(_0x44a1f0),_0x4f159b=await _0x495cc7[_0x4e7dd7(0x212)]({'options':{..._0x44a1f0,..._0x394bb5},'args':_0x3663b5?[_0x3663b5]:[],'tdx':_0x547322});gracefulExit(_0x4f159b);},attemptCmd=workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x355))[a2_0x19835d(0xd4)](a2_0x19835d(0xaf))[a2_0x19835d(0x2c0)]('[attempt-id]',a2_0x19835d(0x34a))[a2_0x19835d(0x2c0)](a2_0x19835d(0x1c7),a2_0x19835d(0x2c1))['argument'](a2_0x19835d(0xf5),a2_0x19835d(0x34e))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2ff),'Include\x20subtasks\x20in\x20tasks\x20output')['option'](a2_0x19835d(0x170),a2_0x19835d(0x2de))[a2_0x19835d(0x1f7)](a2_0x19835d(0x20e),a2_0x19835d(0x1fe))[a2_0x19835d(0x1f7)](a2_0x19835d(0x32f),a2_0x19835d(0x145))['option']('--force','Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x19835d(0x2f2),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x19835d(0x169)](async(_0x1c9031,_0x59cfd0,_0x106fa6,_0x3490ea)=>{const _0x3ede3d=a2_0x19835d;if(_0x1c9031===_0x3ede3d(0x301)){await wfAttemptListAction(_0x59cfd0,_0x3490ea);return;}if(!_0x1c9031){attemptCmd['help']();return;}const _0x36c177=program['opts'](),_0x29ba4e=await createTDXInstance(_0x36c177);let _0x4400ef=0x0;if(!_0x59cfd0){const _0x343051=new WorkflowAttemptCommand();_0x4400ef=await _0x343051['run']({'options':{..._0x36c177,..._0x3490ea},'args':[_0x1c9031],'tdx':_0x29ba4e});}else{if(_0x59cfd0==='logs'){const _0x8a95b3=new WorkflowLogsCommand();_0x4400ef=await _0x8a95b3['run']({'options':{..._0x36c177,..._0x3490ea},'args':_0x106fa6?[_0x1c9031,_0x106fa6]:[_0x1c9031],'tdx':_0x29ba4e});}else{if(_0x59cfd0===_0x3ede3d(0x289)){const _0xcb8e40=new WorkflowTasksCommand();_0x4400ef=await _0xcb8e40[_0x3ede3d(0x212)]({'options':{..._0x36c177,..._0x3490ea},'args':[_0x1c9031],'tdx':_0x29ba4e});}else{if(_0x59cfd0===_0x3ede3d(0x340)){const _0x36de05=new WorkflowKillCommand();_0x4400ef=await _0x36de05[_0x3ede3d(0x212)]({'options':{..._0x36c177,..._0x3490ea},'args':[_0x1c9031],'tdx':_0x29ba4e});}else{if(_0x59cfd0==='retry'){const _0x5f4245=new WorkflowRetryCommand();_0x4400ef=await _0x5f4245[_0x3ede3d(0x212)]({'options':{..._0x36c177,..._0x3490ea},'args':['attempt:'+_0x1c9031],'tdx':_0x29ba4e});}else console[_0x3ede3d(0x1b6)](_0x3ede3d(0x359)+_0x59cfd0),console[_0x3ede3d(0x1b6)](_0x3ede3d(0x34d)),_0x4400ef=0x1;}}}}gracefulExit(_0x4400ef);});attemptCmd[a2_0x19835d(0x2b1)]('list\x20[project]')[a2_0x19835d(0xd4)](a2_0x19835d(0x315))['option'](a2_0x19835d(0x2f2),a2_0x19835d(0x273))['action'](wfAttemptListAction),workflowCmd['command'](a2_0x19835d(0x207))[a2_0x19835d(0xd4)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f2),'Include\x20retried\x20attempts')[a2_0x19835d(0x169)](wfAttemptListAction),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x222))[a2_0x19835d(0xd4)](a2_0x19835d(0x2b3))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1de),a2_0x19835d(0x311))['option'](a2_0x19835d(0x1f4),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')['option'](a2_0x19835d(0x2e5),a2_0x19835d(0x1ac))[a2_0x19835d(0x169)](async(_0x1066af,_0x4a8163)=>{const _0x34a438=a2_0x19835d,_0x1e34c6=new WorkflowTimelineCommand(),_0x93e472=program[_0x34a438(0xb8)](),_0x4c9e7e=await createTDXInstance(_0x93e472),_0x5936fa=await _0x1e34c6[_0x34a438(0x212)]({'options':{..._0x93e472,..._0x4a8163},'args':_0x1066af?[_0x1066af]:[],'tdx':_0x4c9e7e});gracefulExit(_0x5936fa);}),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1ec))['description'](a2_0x19835d(0x1ba))[a2_0x19835d(0x1f7)](a2_0x19835d(0x148),'Resume\x20from\x20specific\x20task')[a2_0x19835d(0x1f7)](a2_0x19835d(0x32f),a2_0x19835d(0x27b))[a2_0x19835d(0x169)](async(_0x440daf,_0x433a5e)=>{const _0x9a3cb8=a2_0x19835d,_0x240c76=new WorkflowRetryCommand(),_0x32cc03=program[_0x9a3cb8(0xb8)](),_0xd48dfb=await createTDXInstance(_0x32cc03),_0x18fdb3=await _0x240c76[_0x9a3cb8(0x212)]({'options':{..._0x32cc03,..._0x433a5e},'args':[_0x440daf],'tdx':_0xd48dfb});gracefulExit(_0x18fdb3);}),workflowCmd['command'](a2_0x19835d(0x2c8))[a2_0x19835d(0xd4)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')['option'](a2_0x19835d(0x211),a2_0x19835d(0x253),(_0x2cf985,_0x4874aa=[])=>[..._0x4874aa,_0x2cf985],[])[a2_0x19835d(0x1f7)](a2_0x19835d(0x125),a2_0x19835d(0xd3))[a2_0x19835d(0x169)](async(_0x1d8fad,_0x69dd6c)=>{const _0x2a6a27=a2_0x19835d,_0x2151ee=new WorkflowRunCommand(),_0x5ca629=program[_0x2a6a27(0xb8)](),_0x5bd7e7=await createTDXInstance(_0x5ca629),_0x482572=await _0x2151ee[_0x2a6a27(0x212)]({'options':{..._0x5ca629,..._0x69dd6c},'args':_0x1d8fad?[_0x1d8fad]:[],'tdx':_0x5bd7e7});gracefulExit(_0x482572);}),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xbb))[a2_0x19835d(0xd4)](a2_0x19835d(0x178))[a2_0x19835d(0x1f7)](a2_0x19835d(0x16b),a2_0x19835d(0x15a))['action'](async(_0x1ce836,_0x3d1de2,_0x8b2fc8)=>{const _0x529bf7=a2_0x19835d,_0x17bd62=new WorkflowDownloadCommand(),_0x2a1d2f=program[_0x529bf7(0xb8)](),_0x3a537b=await createTDXInstance(_0x2a1d2f),_0x1b72fd=await _0x17bd62['run']({'options':{..._0x2a1d2f,..._0x8b2fc8},'args':[_0x1ce836,_0x3d1de2||'.'],'tdx':_0x3a537b});gracefulExit(_0x1b72fd);}),workflowCmd[a2_0x19835d(0x2b1)]('pull\x20<project>\x20[target-dir]')['description'](a2_0x19835d(0x263))[a2_0x19835d(0x1f7)](a2_0x19835d(0x16b),a2_0x19835d(0x23f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x2af))[a2_0x19835d(0x169)](async(_0x449a59,_0x5b9c0e,_0x45d36f)=>{const _0x289cf8=a2_0x19835d,_0x292953=new WorkflowPullCommand(),_0x5e9f17=program[_0x289cf8(0xb8)](),_0x5e06d8=await createTDXInstance(_0x5e9f17),_0x351c04=await _0x292953[_0x289cf8(0x212)]({'options':{..._0x5e9f17,..._0x45d36f},'args':_0x5b9c0e?[_0x449a59,_0x5b9c0e]:[_0x449a59],'tdx':_0x5e06d8});gracefulExit(_0x351c04);}),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x237))['description'](a2_0x19835d(0x2f5))['option'](a2_0x19835d(0x16b),a2_0x19835d(0x214))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0xf2))['option'](a2_0x19835d(0x209),a2_0x19835d(0x349))['action'](async(_0x2d55b3,_0x2c2b91)=>{const _0x3b3c33=a2_0x19835d,_0x18eaf9=new WorkflowPushCommand(),_0x1c7a5a=program[_0x3b3c33(0xb8)](),_0x5096c6=await createTDXInstance(_0x1c7a5a),_0x134d9a=await _0x18eaf9[_0x3b3c33(0x212)]({'options':{..._0x1c7a5a,..._0x2c2b91},'args':_0x2d55b3?[_0x2d55b3]:[],'tdx':_0x5096c6});gracefulExit(_0x134d9a);}),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2db))[a2_0x19835d(0xd4)](a2_0x19835d(0x1bf))[a2_0x19835d(0x1f7)](a2_0x19835d(0x31f),'Override\x20project\x20name')[a2_0x19835d(0x1f7)](a2_0x19835d(0x16b),a2_0x19835d(0x1eb))[a2_0x19835d(0x1f7)](a2_0x19835d(0x209),a2_0x19835d(0x349))[a2_0x19835d(0x169)](async(_0x29fc68,_0x2903f4)=>{const _0xf6417b=a2_0x19835d,_0x468efe=new WorkflowUploadCommand(),_0xb686ce=program[_0xf6417b(0xb8)](),_0x42ad70=await createTDXInstance(_0xb686ce),_0xf22c60=await _0x468efe[_0xf6417b(0x212)]({'options':{..._0xb686ce,..._0x2903f4},'args':_0x29fc68?[_0x29fc68]:[],'tdx':_0x42ad70});gracefulExit(_0xf22c60);}),workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x183))[a2_0x19835d(0xd4)](a2_0x19835d(0x130))['option'](a2_0x19835d(0x31f),'Name\x20for\x20the\x20new\x20project\x20(required)')['option'](a2_0x19835d(0x16b),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),'Preview\x20without\x20creating\x20the\x20project')[a2_0x19835d(0x1f7)](a2_0x19835d(0x209),a2_0x19835d(0x349))[a2_0x19835d(0x169)](async(_0x41e73e,_0x6434e)=>{const _0x3b06af=a2_0x19835d,_0x5dfcd9=new WorkflowCloneCommand(),_0x5ef5a3=program[_0x3b06af(0xb8)](),_0x55e780=await createTDXInstance(_0x5ef5a3),_0x1603ef=await _0x5dfcd9[_0x3b06af(0x212)]({'options':{..._0x5ef5a3,..._0x6434e},'args':_0x41e73e?[_0x41e73e]:[],'tdx':_0x55e780});gracefulExit(_0x1603ef);}),workflowCmd['command'](a2_0x19835d(0x22a))[a2_0x19835d(0xd4)](a2_0x19835d(0x165))['action'](async(_0x3310d7,_0x17074c)=>{const _0x32e3ee=a2_0x19835d,_0x291696=new WorkflowDeleteCommand(),_0x5c4ca3=program[_0x32e3ee(0xb8)](),_0x13494d=await createTDXInstance(_0x5c4ca3),_0x53ea4a=await _0x291696[_0x32e3ee(0x212)]({'options':{..._0x5c4ca3,..._0x17074c},'args':[_0x3310d7],'tdx':_0x13494d});gracefulExit(_0x53ea4a);}),workflowCmd['command'](a2_0x19835d(0xd1))[a2_0x19835d(0xd4)](a2_0x19835d(0x1ad))[a2_0x19835d(0x1f7)]('--clear',a2_0x19835d(0x35a))[a2_0x19835d(0x169)](async(_0xa56f4c,_0x10e369)=>{const _0xcb6d12=a2_0x19835d,_0x140b27=new WorkflowUseCommand(),_0x1cb92a=program[_0xcb6d12(0xb8)](),_0x39fe8b=await createTDXInstance(_0x1cb92a),_0x44e56d=await _0x140b27[_0xcb6d12(0x212)]({'options':{..._0x1cb92a,..._0x10e369},'args':_0xa56f4c?[_0xa56f4c]:[],'tdx':_0x39fe8b});gracefulExit(_0x44e56d);});const wfSecretsCmd=workflowCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x19a))[a2_0x19835d(0xd4)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x280))[a2_0x19835d(0xd4)](a2_0x19835d(0x321))[a2_0x19835d(0x169)](async(_0x52aeb0,_0x311d08)=>{const _0x14203d=a2_0x19835d,_0x42763e=new WorkflowSecretsListCommand(),_0x8853f3=program[_0x14203d(0xb8)](),_0x869e98=await createTDXInstance(_0x8853f3),_0x57eecc=await _0x42763e[_0x14203d(0x212)]({'options':{..._0x8853f3,..._0x311d08},'args':_0x52aeb0?[_0x52aeb0]:[],'tdx':_0x869e98});gracefulExit(_0x57eecc);}),wfSecretsCmd[a2_0x19835d(0x2b1)]('set\x20<args...>')[a2_0x19835d(0xd4)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x416957,_0x11366c)=>{const _0x374f76=new WorkflowSecretsSetCommand(),_0x5b2e2f=program['opts'](),_0x276e9a=await createTDXInstance(_0x5b2e2f),_0x1f926f=await _0x374f76['run']({'options':{..._0x5b2e2f,..._0x11366c},'args':_0x416957,'tdx':_0x276e9a});gracefulExit(_0x1f926f);}),wfSecretsCmd['command'](a2_0x19835d(0x119))[a2_0x19835d(0xd4)](a2_0x19835d(0x11e))[a2_0x19835d(0x169)](async(_0x24c2db,_0x36dd9f)=>{const _0x59b267=a2_0x19835d,_0x5d9f44=new WorkflowSecretsDeleteCommand(),_0x424ffa=program[_0x59b267(0xb8)](),_0x16aa36=await createTDXInstance(_0x424ffa),_0x2e527c=await _0x5d9f44['run']({'options':{..._0x424ffa,..._0x36dd9f},'args':_0x24c2db,'tdx':_0x16aa36});gracefulExit(_0x2e527c);});const jobCmd=program['command'](a2_0x19835d(0x2dc))[a2_0x19835d(0xd4)]('Job\x20management\x20commands'),jobListAction=async _0x7a299f=>{const _0x2f14b0=a2_0x19835d,_0x43a550=new JobListCommand(),_0x4e0f2d=program['opts'](),_0x587476=await createTDXInstance(_0x4e0f2d),_0x121a2e=await _0x43a550[_0x2f14b0(0x212)]({'options':{..._0x4e0f2d,..._0x7a299f},'args':[],'tdx':_0x587476});gracefulExit(_0x121a2e);};jobCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x301))[a2_0x19835d(0xd4)](a2_0x19835d(0x325))[a2_0x19835d(0x1f7)](a2_0x19835d(0x279),a2_0x19835d(0xa9))['action'](jobListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x244),{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x1bd))[a2_0x19835d(0x1f7)](a2_0x19835d(0x279),a2_0x19835d(0xa9))['action'](jobListAction),jobCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2e8))['description']('Show\x20job\x20details')[a2_0x19835d(0x169)](async(_0x5ee829,_0x17e5ab)=>{const _0x1307de=a2_0x19835d,_0x52ce7e=new JobShowCommand(),_0x54ec68=program[_0x1307de(0xb8)](),_0x2be59e=await createTDXInstance(_0x54ec68),_0x497590=await _0x52ce7e['run']({'options':{..._0x54ec68,..._0x17e5ab},'args':[_0x5ee829],'tdx':_0x2be59e});gracefulExit(_0x497590);}),jobCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x18e))['description'](a2_0x19835d(0x30b))[a2_0x19835d(0x169)](async(_0x20226e,_0x5f16fb)=>{const _0x421ecd=a2_0x19835d,_0x50aed4=new JobKillCommand(),_0x2b1bc6=program[_0x421ecd(0xb8)](),_0x51b7f3=await createTDXInstance(_0x2b1bc6),_0x370eb5=await _0x50aed4[_0x421ecd(0x212)]({'options':{..._0x2b1bc6,..._0x5f16fb},'args':[_0x20226e],'tdx':_0x51b7f3});gracefulExit(_0x370eb5);}),jobCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x134))['description'](a2_0x19835d(0x190))[a2_0x19835d(0x1f7)](a2_0x19835d(0x22f),a2_0x19835d(0x18c),a2_0x19835d(0x2ad))[a2_0x19835d(0x1f7)]('-f,\x20--file\x20<path>',a2_0x19835d(0x2d7))[a2_0x19835d(0x1f7)](a2_0x19835d(0x156),a2_0x19835d(0x2a2),'information_schema')[a2_0x19835d(0x1f7)]('--result\x20<target>',a2_0x19835d(0x2a7))['action'](async(_0x14756e,_0x47b74e)=>{const _0x4572dc=a2_0x19835d,_0x475e7d=new JobSubmitCommand(),_0x3f7cac=program['opts'](),_0x1e2dec=await createTDXInstance(_0x3f7cac),_0x58d0dc=await _0x475e7d[_0x4572dc(0x212)]({'options':{..._0x3f7cac,..._0x47b74e},'args':_0x14756e?[_0x14756e]:[],'tdx':_0x1e2dec});gracefulExit(_0x58d0dc);}),jobCmd[a2_0x19835d(0x2b1)]('result\x20<job-id>')[a2_0x19835d(0xd4)]('Get\x20job\x20results')[a2_0x19835d(0x169)](async(_0x2c8bfe,_0x18af06)=>{const _0x40f740=a2_0x19835d,_0x53a624=new JobResultCommand(),_0x438bb6=program[_0x40f740(0xb8)](),_0x41e5c5=await createTDXInstance(_0x438bb6),_0x5c3821=await _0x53a624[_0x40f740(0x212)]({'options':{..._0x438bb6,..._0x18af06},'args':[_0x2c8bfe],'tdx':_0x41e5c5});gracefulExit(_0x5c3821);});const scheduleCmd=jobCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xae))[a2_0x19835d(0xd4)]('Scheduled\x20query\x20management\x20commands');scheduleCmd['command'](a2_0x19835d(0x15e))['description']('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')['action'](async(_0x554e0e,_0x4d1e5e)=>{const _0x5a8b87=a2_0x19835d,_0x2cc539=new ScheduleListCommand(),_0x1e07d3=program['opts'](),_0x3b2f98=await createTDXInstance(_0x1e07d3),_0x204a45=await _0x2cc539[_0x5a8b87(0x212)]({'options':{..._0x1e07d3,..._0x4d1e5e},'args':_0x554e0e?[_0x554e0e]:[],'tdx':_0x3b2f98});gracefulExit(_0x204a45);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x107))[a2_0x19835d(0xd4)](a2_0x19835d(0x30d))['action'](async(_0x5292ef,_0x317c63)=>{const _0x3472c3=a2_0x19835d,_0x38068a=new ScheduleShowCommand(),_0x48c6e1=program[_0x3472c3(0xb8)](),_0x4df2f2=await createTDXInstance(_0x48c6e1),_0x4aebb2=await _0x38068a[_0x3472c3(0x212)]({'options':{..._0x48c6e1,..._0x317c63},'args':[_0x5292ef],'tdx':_0x4df2f2});gracefulExit(_0x4aebb2);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2f3))[a2_0x19835d(0xd4)](a2_0x19835d(0x184))[a2_0x19835d(0x1f7)]('-d,\x20--database\x20<db>','Database\x20name\x20(required)')[a2_0x19835d(0x1f7)]('--in\x20<db>',a2_0x19835d(0x164))['requiredOption'](a2_0x19835d(0x1d5),'Read\x20query\x20from\x20file')[a2_0x19835d(0x1f7)](a2_0x19835d(0x28d),a2_0x19835d(0x2ee),'trino')[a2_0x19835d(0x1f7)](a2_0x19835d(0x29e),a2_0x19835d(0x298))[a2_0x19835d(0x1f7)]('--timezone\x20<tz>',a2_0x19835d(0x154))[a2_0x19835d(0x1f7)]('--delay\x20<seconds>',a2_0x19835d(0x2e7))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1d4),a2_0x19835d(0x1fb))['option']('--retry-limit\x20<0~32>',a2_0x19835d(0x16c))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe5),a2_0x19835d(0xd0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x353),a2_0x19835d(0x230))[a2_0x19835d(0x169)](async(_0x31b5e8,_0x17d1e3)=>{const _0x1659eb=a2_0x19835d,_0x1669b1=new ScheduleCreateCommand(),_0x2eb4c6=program[_0x1659eb(0xb8)](),_0x30fddc=await createTDXInstance(_0x2eb4c6);_0x17d1e3['in']&&(_0x17d1e3[_0x1659eb(0x176)]=_0x17d1e3['in']);const _0x254cca=await _0x1669b1[_0x1659eb(0x212)]({'options':{..._0x2eb4c6,..._0x17d1e3},'args':[_0x31b5e8],'tdx':_0x30fddc});gracefulExit(_0x254cca);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x136))[a2_0x19835d(0xd4)](a2_0x19835d(0x310))[a2_0x19835d(0x1f7)]('-d,\x20--database\x20<db>',a2_0x19835d(0x18d))[a2_0x19835d(0x1f7)](a2_0x19835d(0x235),a2_0x19835d(0x164))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1d5),a2_0x19835d(0x2d7))['option'](a2_0x19835d(0x28d),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x19835d(0x1f7)]('--cron\x20<expression>',a2_0x19835d(0x298))[a2_0x19835d(0x1f7)](a2_0x19835d(0x15b),a2_0x19835d(0x141))[a2_0x19835d(0x1f7)](a2_0x19835d(0xf8),a2_0x19835d(0x2e7))['option'](a2_0x19835d(0x1d4),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x196),a2_0x19835d(0x16c))[a2_0x19835d(0x1f7)](a2_0x19835d(0xe5),'Query\x20engine\x20version')['option'](a2_0x19835d(0x353),'Result\x20output\x20destination\x20URL')[a2_0x19835d(0x169)](async(_0x38c352,_0x316e07)=>{const _0x2d2211=a2_0x19835d,_0x24cf06=new ScheduleUpdateCommand(),_0x48134c=program[_0x2d2211(0xb8)](),_0x291d0c=await createTDXInstance(_0x48134c);_0x316e07['in']&&(_0x316e07[_0x2d2211(0x176)]=_0x316e07['in']);const _0x35b6d1=await _0x24cf06['run']({'options':{..._0x48134c,..._0x316e07},'args':[_0x38c352],'tdx':_0x291d0c});gracefulExit(_0x35b6d1);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x268))[a2_0x19835d(0xd4)](a2_0x19835d(0xc5))[a2_0x19835d(0x169)](async(_0x215d86,_0x57843f)=>{const _0x1d5af4=a2_0x19835d,_0xe398ac=new ScheduleDeleteCommand(),_0x29f21f=program[_0x1d5af4(0xb8)](),_0x31abf5=await createTDXInstance(_0x29f21f),_0x2a1b96=await _0xe398ac['run']({'options':{..._0x29f21f,..._0x57843f},'args':[_0x215d86],'tdx':_0x31abf5});gracefulExit(_0x2a1b96);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x287))[a2_0x19835d(0xd4)](a2_0x19835d(0x35b))[a2_0x19835d(0x1f7)]('--time\x20<iso8601>',a2_0x19835d(0x180))['option'](a2_0x19835d(0x1cf),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')['action'](async(_0x3cbb19,_0xc93fd)=>{const _0x1fa6a0=a2_0x19835d,_0x3b6930=new ScheduleRunCommand(),_0xb29102=program[_0x1fa6a0(0xb8)](),_0x2fb30f=await createTDXInstance(_0xb29102),_0x4e85df=await _0x3b6930[_0x1fa6a0(0x212)]({'options':{..._0xb29102,..._0xc93fd},'args':[_0x3cbb19],'tdx':_0x2fb30f});gracefulExit(_0x4e85df);}),scheduleCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x342))[a2_0x19835d(0xd4)](a2_0x19835d(0x267))[a2_0x19835d(0x1f7)](a2_0x19835d(0xc4),a2_0x19835d(0x255))[a2_0x19835d(0x1f7)](a2_0x19835d(0xdf),a2_0x19835d(0x334))[a2_0x19835d(0x169)](async(_0x28eb64,_0x49c2b2)=>{const _0x1b6957=a2_0x19835d,_0x3c6924=new ScheduleHistoryCommand(),_0x4cc84e=program[_0x1b6957(0xb8)](),_0x19b502=await createTDXInstance(_0x4cc84e),_0x51e4e3=await _0x3c6924['run']({'options':{..._0x4cc84e,..._0x49c2b2},'args':[_0x28eb64],'tdx':_0x19b502});gracefulExit(_0x51e4e3);});const llmCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x192))[a2_0x19835d(0xd4)](a2_0x19835d(0xf3));llmCmd['command'](a2_0x19835d(0x1ff))[a2_0x19835d(0xd4)](a2_0x19835d(0x1a2))['action'](async(_0x5b9920,_0x81ef68)=>{const _0x5c27bb=new LLMUseCommand(),_0x454634=program['opts'](),_0x4afa95=await createTDXInstance(_0x454634),_0x467dba=await _0x5c27bb['run']({'options':{..._0x454634,..._0x81ef68},'args':[_0x5b9920],'tdx':_0x4afa95});gracefulExit(_0x467dba);}),llmCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xd9))['description'](a2_0x19835d(0x149))[a2_0x19835d(0x169)](async _0x2b1d52=>{const _0x18ef73=a2_0x19835d,_0x214828=new LLMModelsCommand(),_0x1880fd=program['opts'](),_0x21bba1=await createTDXInstance(_0x1880fd),_0x26631e=await _0x214828[_0x18ef73(0x212)]({'options':{..._0x1880fd,..._0x2b1d52},'args':[],'tdx':_0x21bba1});gracefulExit(_0x26631e);});const projectCmd=llmCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x257))[a2_0x19835d(0xd4)](a2_0x19835d(0x23d)),llmProjectListAction=async(_0x52e099,_0x410677)=>{const _0x1a09b0=a2_0x19835d,_0x1b3952=new LLMProjectsCommand(),_0x42e010=program[_0x1a09b0(0xb8)](),_0x233ad3=await createTDXInstance(_0x42e010),_0x2dd75c=await _0x1b3952['run']({'options':{..._0x42e010,..._0x410677},'args':_0x52e099?[_0x52e099]:[],'tdx':_0x233ad3});gracefulExit(_0x2dd75c);};projectCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x291))[a2_0x19835d(0x169)](llmProjectListAction),llmCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1cd))[a2_0x19835d(0xd4)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x19835d(0x169)](llmProjectListAction),projectCmd[a2_0x19835d(0x2b1)]('create\x20<name>')[a2_0x19835d(0xd4)](a2_0x19835d(0xfc))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f1),a2_0x19835d(0xe9))[a2_0x19835d(0x169)](async(_0x3cb69c,_0xddfac1)=>{const _0x11bc8a=a2_0x19835d,_0xc5a468=new LLMProjectCreateCommand(),_0x375d91=program[_0x11bc8a(0xb8)](),_0x208da3=await createTDXInstance(_0x375d91),_0x1f2ba4=await _0xc5a468[_0x11bc8a(0x212)]({'options':{..._0x375d91,..._0xddfac1},'args':[_0x3cb69c],'tdx':_0x208da3});gracefulExit(_0x1f2ba4);}),projectCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x268))[a2_0x19835d(0xd4)](a2_0x19835d(0x28c))[a2_0x19835d(0x169)](async(_0x32bb41,_0xb034cd)=>{const _0x1f3ddd=a2_0x19835d,_0xb2ea92=new LLMProjectDeleteCommand(),_0x5d4f46=program[_0x1f3ddd(0xb8)](),_0x247d85=await createTDXInstance(_0x5d4f46),_0x19aa59=await _0xb2ea92['run']({'options':{..._0x5d4f46,..._0xb034cd},'args':[_0x32bb41],'tdx':_0x247d85});gracefulExit(_0x19aa59);}),projectCmd[a2_0x19835d(0x2b1)]('backup\x20<name>')[a2_0x19835d(0xd4)](a2_0x19835d(0x167))[a2_0x19835d(0x1f7)]('-o,\x20--output\x20<folder>','Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x19835d(0x24a),a2_0x19835d(0x256))['action'](async(_0xe63dd,_0x2c476f)=>{const _0x1534ff=a2_0x19835d,_0x152c22=new LLMProjectBackupCommand(),_0x553d93=program[_0x1534ff(0xb8)](),_0x2a99e3=await createTDXInstance(_0x553d93),_0x4ecd5f=await _0x152c22[_0x1534ff(0x212)]({'options':{..._0x553d93,..._0x2c476f},'args':[_0xe63dd],'tdx':_0x2a99e3});gracefulExit(_0x4ecd5f);}),projectCmd['command'](a2_0x19835d(0x34c))[a2_0x19835d(0xd4)](a2_0x19835d(0x18a))[a2_0x19835d(0x1f7)](a2_0x19835d(0x343),a2_0x19835d(0x2ca))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0xc9))['action'](async(_0x14aac3,_0x3c92f8)=>{const _0x1c324a=a2_0x19835d,_0x5d66c4=new LLMProjectRestoreCommand(),_0x4d103a=program['opts'](),_0xd41fe8=await createTDXInstance(_0x4d103a),_0x460b18=await _0x5d66c4[_0x1c324a(0x212)]({'options':{..._0x4d103a,..._0x3c92f8},'args':[_0x14aac3],'tdx':_0xd41fe8});gracefulExit(_0x460b18);});const llmAgentListAction=async(_0x4be53e,_0x5e6037)=>{const _0x29b60c=a2_0x19835d,_0x1bed35=new LLMAgentsCommand(),_0x3741ff=program[_0x29b60c(0xb8)](),_0xd298c5=await createTDXInstance(_0x3741ff),_0x91a507=await _0x1bed35[_0x29b60c(0x212)]({'options':{..._0x3741ff,..._0x5e6037},'args':_0x4be53e?[_0x4be53e]:[],'tdx':_0xd298c5});gracefulExit(_0x91a507);};llmCmd['command'](a2_0x19835d(0x2d3))[a2_0x19835d(0xd4)](a2_0x19835d(0x313))[a2_0x19835d(0x169)](llmAgentListAction),program['command']('agents\x20[pattern]')[a2_0x19835d(0xd4)](a2_0x19835d(0x313))[a2_0x19835d(0x169)](llmAgentListAction),llmCmd[a2_0x19835d(0x2b1)]('history\x20[chat-id]')[a2_0x19835d(0xd4)](a2_0x19835d(0x202))[a2_0x19835d(0x1f7)](a2_0x19835d(0x139),a2_0x19835d(0x228))['action'](async(_0x1f2ffa,_0x9f935f)=>{const _0x594fa3=a2_0x19835d,_0x1e6015=new LLMHistoryCommand(),_0x1c808d=program[_0x594fa3(0xb8)](),_0x53520b=await createTDXInstance(_0x1c808d),_0x6bca05=await _0x1e6015[_0x594fa3(0x212)]({'options':{..._0x1c808d,..._0x9f935f},'args':_0x1f2ffa?[_0x1f2ffa]:[],'tdx':_0x53520b});gracefulExit(_0x6bca05);});isExperimentalAvailable()&&llmCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x238))[a2_0x19835d(0xd4)](a2_0x19835d(0x187))[a2_0x19835d(0x169)](async(_0x374a4a,_0x3e1fbb)=>{const _0x4a3cbf=a2_0x19835d,_0x149e39=new LLMLogCommand(),_0x5f2444=program[_0x4a3cbf(0xb8)](),_0x596be7=await createTDXInstance(_0x5f2444),_0xdaa610=await _0x149e39[_0x4a3cbf(0x212)]({'options':{..._0x5f2444,..._0x3e1fbb},'args':[_0x374a4a],'tdx':_0x596be7});gracefulExit(_0xdaa610);});program[a2_0x19835d(0x2b1)](a2_0x19835d(0xf7))['usage'](a2_0x19835d(0x174))[a2_0x19835d(0xd4)](a2_0x19835d(0x118))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2a4),a2_0x19835d(0x261))[a2_0x19835d(0x1f7)]('-r,\x20--resume',a2_0x19835d(0x295))[a2_0x19835d(0x1f7)](a2_0x19835d(0x330),a2_0x19835d(0x177))['allowUnknownOption']()[a2_0x19835d(0x1a1)](!![])[a2_0x19835d(0x1da)](a2_0x19835d(0x2fa),'\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')['action'](async(_0x59b963,_0x4d3abe)=>{const _0x429559=a2_0x19835d,_0x21268c=program['opts'](),_0x27063a=Array[_0x429559(0x317)](_0x59b963)?_0x59b963:[];if(_0x27063a[0x0]==='statusline'){const _0x5e5ff4=new ClaudeStatuslineCommand(),_0x5cb477=await _0x5e5ff4['run']({'options':{..._0x21268c,..._0x4d3abe},'args':_0x27063a[_0x429559(0x34b)](0x1),'tdx':null});gracefulExit(_0x5cb477);}if(_0x27063a[0x0]===_0x429559(0x246)){const _0x5d53ef=new ClaudeUsageCommand(),_0x58568f=await _0x5d53ef[_0x429559(0x212)]({'options':{..._0x21268c,..._0x4d3abe},'args':_0x27063a['slice'](0x1),'tdx':null});gracefulExit(_0x58568f);}const _0x3ce229=new ClaudeCommand(),_0x591a99=await createTDXInstance(_0x21268c),_0x1ba8ca=await _0x3ce229[_0x429559(0x212)]({'options':{..._0x21268c,..._0x4d3abe},'args':_0x27063a,'tdx':_0x591a99});gracefulExit(_0x1ba8ca);}),program['command'](a2_0x19835d(0x194))[a2_0x19835d(0xd4)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')['option']('--clear',a2_0x19835d(0x2e9))[a2_0x19835d(0x1f7)](a2_0x19835d(0x304),a2_0x19835d(0x26c))[a2_0x19835d(0x169)](async(_0x23108b,_0x10c71d,_0xfc0320)=>{const _0x39ce4b=a2_0x19835d,_0x2cb055=new UseCommand(),_0x474135=program['opts'](),_0x22fdb2=[];if(_0x23108b)_0x22fdb2[_0x39ce4b(0x249)](_0x23108b);if(_0x10c71d)_0x22fdb2['push'](_0x10c71d);const _0x4a2478=_0x23108b==='engage_workspace',_0x578b25=_0x4a2478?await createTDXInstance(_0x474135):null,_0x307e9a=await _0x2cb055['run']({'options':{..._0x474135,..._0xfc0320},'args':_0x22fdb2,'tdx':_0x578b25});gracefulExit(_0x307e9a);}),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x19e))[a2_0x19835d(0xd4)](a2_0x19835d(0x24f))[a2_0x19835d(0x169)](async _0x31cb6f=>{const _0x2df3aa=a2_0x19835d,_0x279ad8=new StatusCommand(),_0x556a22=program[_0x2df3aa(0xb8)](),_0x45ff12=await createTDXInstance(_0x556a22),_0x17b8ec=await _0x279ad8[_0x2df3aa(0x212)]({'options':{..._0x556a22,..._0x31cb6f},'args':[],'tdx':_0x45ff12});gracefulExit(_0x17b8ec);}),program[a2_0x19835d(0x2b1)]('unset\x20<resource>')['description'](a2_0x19835d(0x348))[a2_0x19835d(0x1f7)](a2_0x19835d(0x304),a2_0x19835d(0x346))[a2_0x19835d(0x169)](async(_0x21376c,_0x14f144)=>{const _0x379e71=a2_0x19835d,_0x1205c5=new UnsetCommand(),_0x319a0b=program[_0x379e71(0xb8)](),_0x416661=await _0x1205c5[_0x379e71(0x212)]({'options':{..._0x319a0b,..._0x14f144},'args':[_0x21376c],'tdx':null});gracefulExit(_0x416661);}),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x1dc))[a2_0x19835d(0xd4)](a2_0x19835d(0x20f))['option'](a2_0x19835d(0x139),'Show\x20the\x20most\x20recent\x20chat')[a2_0x19835d(0x169)](async _0x354039=>{const _0x3f16d2=a2_0x19835d,_0x37ae2e=new ChatsCommand(),_0x32e8fb=program[_0x3f16d2(0xb8)](),_0x3b7e9b=await createTDXInstance(_0x32e8fb),_0x4f05f6=await _0x37ae2e[_0x3f16d2(0x212)]({'options':{..._0x32e8fb,..._0x354039},'args':[],'tdx':_0x3b7e9b});gracefulExit(_0x4f05f6);});const authCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x18f))[a2_0x19835d(0xd4)](a2_0x19835d(0x300));async function runAuthStatusCommand(_0x466e55){const _0x430df4=a2_0x19835d,_0x2ace85=new AuthStatusCommand(),_0x50f528=program[_0x430df4(0xb8)](),_0x4324d4=await createTDXInstance(_0x50f528),_0x5aea41=await _0x2ace85[_0x430df4(0x212)]({'options':{..._0x50f528,..._0x466e55},'args':[],'tdx':_0x4324d4});gracefulExit(_0x5aea41);}authCmd[a2_0x19835d(0x169)](runAuthStatusCommand),authCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x19e))[a2_0x19835d(0xd4)](a2_0x19835d(0x198))[a2_0x19835d(0x169)](runAuthStatusCommand),authCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x204))['description'](a2_0x19835d(0x1b3))[a2_0x19835d(0x1da)](a2_0x19835d(0x2fa),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\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\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x19835d(0x169)](async _0x542def=>{const _0x167b8d=a2_0x19835d,_0x2f0caa=new AuthSetupCommand(),_0xff52f3=program[_0x167b8d(0xb8)](),_0x185722=await createTDXInstance(_0xff52f3),_0x25fabd=await _0x2f0caa[_0x167b8d(0x212)]({'options':{..._0xff52f3,..._0x542def},'args':[],'tdx':_0x185722});gracefulExit(_0x25fabd);}),authCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x13c))['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x19835d(0x1da)]('after','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')['action'](async _0x2e7bc6=>{const _0x15d1cf=a2_0x19835d,_0x5a03b7=new AuthClearCommand(),_0x54ea5e=program[_0x15d1cf(0xb8)](),_0x19a7d7=await _0x5a03b7[_0x15d1cf(0x212)]({'options':{..._0x54ea5e,..._0x2e7bc6},'args':[],'tdx':null});gracefulExit(_0x19a7d7);});const userCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0xb2))['description'](a2_0x19835d(0x106)),userListAction=async _0x48fed9=>{const _0x23d5f3=a2_0x19835d,_0x39a261=new UserListCommand(),_0x8879a4=program[_0x23d5f3(0xb8)](),_0x5e6943=await createTDXInstance(_0x8879a4),_0x2b893f=await _0x39a261[_0x23d5f3(0x212)]({'options':{..._0x8879a4,..._0x48fed9},'args':[],'tdx':_0x5e6943});gracefulExit(_0x2b893f);};userCmd[a2_0x19835d(0x169)](async _0x2adfc5=>{const _0x56aaaa=new UserCommand(),_0x1d77af=program['opts'](),_0x177418=await createTDXInstance(_0x1d77af),_0x58cdc1=await _0x56aaaa['run']({'options':{..._0x1d77af,..._0x2adfc5},'args':[],'tdx':_0x177418});gracefulExit(_0x58cdc1);}),userCmd[a2_0x19835d(0x2b1)]('list')[a2_0x19835d(0xd4)](a2_0x19835d(0x1e1))['action'](userListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x2d2))[a2_0x19835d(0xd4)](a2_0x19835d(0x303))[a2_0x19835d(0x169)](userListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x2ec))[a2_0x19835d(0xd4)](a2_0x19835d(0x345))[a2_0x19835d(0x169)](async _0x33caa3=>{const _0x2977f0=a2_0x19835d,_0x335e37=new ProfilesCommand(),_0x50cc47=program[_0x2977f0(0xb8)](),_0xe42efd=await _0x335e37[_0x2977f0(0x212)]({'options':{..._0x50cc47,..._0x33caa3},'args':[],'tdx':null});gracefulExit(_0xe42efd);});const profileCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0xdb))[a2_0x19835d(0xd4)](a2_0x19835d(0xf1));profileCmd['action'](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x5ee4ca=>{const _0x46b209=a2_0x19835d,_0x5d468a=new ProfilesCommand(),_0x5d438c=program[_0x46b209(0xb8)](),_0xcd108b=await _0x5d468a[_0x46b209(0x212)]({'options':{..._0x5d438c,..._0x5ee4ca},'args':[],'tdx':null});gracefulExit(_0xcd108b);};profileCmd[a2_0x19835d(0x2b1)]('list')[a2_0x19835d(0xd4)](a2_0x19835d(0x345))[a2_0x19835d(0x169)](profileListAction),profileCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x35c))[a2_0x19835d(0xd4)](a2_0x19835d(0x2b6))['addHelpText'](a2_0x19835d(0x2fa),a2_0x19835d(0x2f9))[a2_0x19835d(0x169)](async(_0x10f2eb,_0xea03d9)=>{const _0x2d7dff=a2_0x19835d,_0x4074fc=new ProfileCreateCommand(),_0x5d4a96=program[_0x2d7dff(0xb8)](),_0x274a9a=await _0x4074fc[_0x2d7dff(0x212)]({'options':{..._0x5d4a96,..._0xea03d9},'args':_0x10f2eb?[_0x10f2eb]:[],'tdx':null});gracefulExit(_0x274a9a);}),profileCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x163))['description'](a2_0x19835d(0x112))[a2_0x19835d(0x1da)]('after',a2_0x19835d(0x2d8))['action'](async(_0x4acf0d,_0x1ec48b)=>{const _0x22e1e5=a2_0x19835d,_0x56a9de=new ProfileRemoveCommand(),_0x267945=program[_0x22e1e5(0xb8)](),_0x2f1656=await _0x56a9de[_0x22e1e5(0x212)]({'options':{..._0x267945,..._0x1ec48b},'args':[_0x4acf0d],'tdx':null});gracefulExit(_0x2f1656);}),profileCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x322))[a2_0x19835d(0xd4)](a2_0x19835d(0xec))[a2_0x19835d(0x1da)](a2_0x19835d(0x2fa),'\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=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x19835d(0x169)](async(_0x23c617,_0x41e0f3)=>{const _0x2c256c=a2_0x19835d,_0x57c99e=new ProfileSetCommand(),_0x46007a=program['opts'](),_0x5e9619=await _0x57c99e[_0x2c256c(0x212)]({'options':{..._0x46007a,..._0x41e0f3},'args':[_0x23c617],'tdx':null});gracefulExit(_0x5e9619);}),profileCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x160))[a2_0x19835d(0xd4)](a2_0x19835d(0x229))[a2_0x19835d(0x1f7)](a2_0x19835d(0x304),a2_0x19835d(0x26c))[a2_0x19835d(0x1da)](a2_0x19835d(0x2fa),a2_0x19835d(0x14a))[a2_0x19835d(0x169)](async(_0x3be545,_0x2d4fbd)=>{const _0x5bbd97=a2_0x19835d,_0x34bf25=new ProfileUseCommand(),_0x4f29af=program[_0x5bbd97(0xb8)](),_0x37fe2c=await _0x34bf25[_0x5bbd97(0x212)]({'options':{..._0x4f29af,..._0x2d4fbd},'args':[_0x3be545],'tdx':null});gracefulExit(_0x37fe2c);});const engageCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0xe0))[a2_0x19835d(0xd4)](a2_0x19835d(0x13d)),createEngageAction=_0xd8be1c=>{return async(_0x5d5f45,_0x5cc1aa)=>{const _0x3c45ee=a2_0x5509,_0x3ca470=new _0xd8be1c(),_0x464f76=program[_0x3c45ee(0xb8)](),_0x1b62f6=await createTDXInstance(_0x464f76),_0x3d7850=await _0x3ca470[_0x3c45ee(0x212)]({'options':{..._0x464f76,..._0x5cc1aa},'args':[_0x5d5f45],'tdx':_0x1b62f6});gracefulExit(_0x3d7850);};},createEngageNoArgAction=_0x59e7f3=>{return async _0x5e7d38=>{const _0x18e8c7=a2_0x5509,_0xf0095=new _0x59e7f3(),_0x191bff=program[_0x18e8c7(0xb8)](),_0x5dcf50=await createTDXInstance(_0x191bff),_0x2f237c=await _0xf0095[_0x18e8c7(0x212)]({'options':{..._0x191bff,..._0x5e7d38},'args':[],'tdx':_0x5dcf50});gracefulExit(_0x2f237c);};},createEngageListAction=_0x25792e=>{return async(_0x1e5c01,_0x59b10e)=>{const _0x276141=a2_0x5509,_0xbec3d7=new _0x25792e(),_0x4d09ff=program[_0x276141(0xb8)](),_0x212a9f=await createTDXInstance(_0x4d09ff),_0x742186=await _0xbec3d7[_0x276141(0x212)]({'options':{..._0x4d09ff,..._0x59b10e},'args':_0x1e5c01?[_0x1e5c01]:[],'tdx':_0x212a9f});gracefulExit(_0x742186);};},campaignCmd=engageCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1b4))[a2_0x19835d(0xd4)](a2_0x19835d(0x168));campaignCmd[a2_0x19835d(0x2b1)]('list\x20[pattern]')[a2_0x19835d(0xd4)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x28d),a2_0x19835d(0x199))['option'](a2_0x19835d(0x279),a2_0x19835d(0x21f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x169)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x11d))[a2_0x19835d(0xd4)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x28d),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x19835d(0x1f7)](a2_0x19835d(0x279),a2_0x19835d(0x21f))[a2_0x19835d(0x1f7)]('--workspace\x20<name>',a2_0x19835d(0x272))[a2_0x19835d(0x169)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x19835d(0x2b1)]('show\x20<name-or-id>')['description'](a2_0x19835d(0x12e))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))[a2_0x19835d(0x1f7)](a2_0x19835d(0x27e),a2_0x19835d(0x293))[a2_0x19835d(0x169)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x19835d(0x166))[a2_0x19835d(0xd4)](a2_0x19835d(0x2d4))[a2_0x19835d(0xf9)]('--name\x20<name>',a2_0x19835d(0x1b2))[a2_0x19835d(0xf9)]('--type\x20<type>',a2_0x19835d(0xb0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0xe1))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c4),a2_0x19835d(0x2bc))[a2_0x19835d(0x1f7)]('--segment\x20<path>',a2_0x19835d(0x1a0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1cb),a2_0x19835d(0xfd))[a2_0x19835d(0x1f7)](a2_0x19835d(0x31c),a2_0x19835d(0x28b))['option'](a2_0x19835d(0x1df),a2_0x19835d(0x172))[a2_0x19835d(0x1f7)](a2_0x19835d(0x15b),a2_0x19835d(0x127))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x19835d(0x2b1)]('update\x20<name-or-id>')[a2_0x19835d(0xd4)](a2_0x19835d(0x17d))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))['option']('--name\x20<name>','New\x20campaign\x20name')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c4),'Campaign\x20description')['option'](a2_0x19835d(0x11c),a2_0x19835d(0x1a0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1cb),a2_0x19835d(0xfd))[a2_0x19835d(0x1f7)]('--json-columns\x20<cols>',a2_0x19835d(0x28b))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1df),a2_0x19835d(0x172))[a2_0x19835d(0x1f7)]('--timezone\x20<tz>',a2_0x19835d(0x127))[a2_0x19835d(0x169)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x19835d(0x2f8))[a2_0x19835d(0xd4)](a2_0x19835d(0x318))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))['option']('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x14b))[a2_0x19835d(0xd4)](a2_0x19835d(0x270))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x169)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x19835d(0x2b1)]('pause\x20<name-or-id>')[a2_0x19835d(0xd4)](a2_0x19835d(0x124))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))[a2_0x19835d(0x169)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x19835d(0x2b1)]('resume\x20<name-or-id>')[a2_0x19835d(0xd4)](a2_0x19835d(0x240))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x19835d(0x357))['description'](a2_0x19835d(0x2a5))[a2_0x19835d(0x1f7)]('--workspace\x20<name>',a2_0x19835d(0x272))[a2_0x19835d(0x169)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1e8))[a2_0x19835d(0xd4)](a2_0x19835d(0x27f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))['option']('--name\x20<name>',a2_0x19835d(0x24d))[a2_0x19835d(0x1f7)](a2_0x19835d(0x28d),a2_0x19835d(0x199))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x269))['action'](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xef))[a2_0x19835d(0xd4)](a2_0x19835d(0x100))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')[a2_0x19835d(0x169)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xbc))[a2_0x19835d(0xd4)](a2_0x19835d(0x290))['option']('--verbose',a2_0x19835d(0x2ae))[a2_0x19835d(0x169)](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x320))[a2_0x19835d(0xd4)](a2_0x19835d(0x117));templateCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x29b))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))[a2_0x19835d(0x169)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x11a))[a2_0x19835d(0xd4)](a2_0x19835d(0xb1))['option'](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x169)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xab))[a2_0x19835d(0xd4)](a2_0x19835d(0x247))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x1f7)]('--full',a2_0x19835d(0x293))[a2_0x19835d(0x169)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x19835d(0x2b1)]('create')[a2_0x19835d(0xd4)](a2_0x19835d(0x155))[a2_0x19835d(0xf9)](a2_0x19835d(0x31f),'Template\x20name')[a2_0x19835d(0xf9)](a2_0x19835d(0x2cb),a2_0x19835d(0x1c0))[a2_0x19835d(0xf9)](a2_0x19835d(0x22b),a2_0x19835d(0x12d))['option'](a2_0x19835d(0x243),a2_0x19835d(0xe1))[a2_0x19835d(0x1f7)](a2_0x19835d(0x20c),a2_0x19835d(0x1b7))[a2_0x19835d(0x1f7)]('--editor-type\x20<type>',a2_0x19835d(0x13a),_0x5dc7ca=>{const _0xdb9304=a2_0x19835d;if(![_0xdb9304(0x1c6),'grapesjs']['includes'](_0x5dc7ca))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20editor\x20type:\x20'+_0x5dc7ca+_0xdb9304(0x265));return _0x5dc7ca;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x147))[a2_0x19835d(0xd4)](a2_0x19835d(0x344))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x1f7)](a2_0x19835d(0x31f),'New\x20template\x20name')['option'](a2_0x19835d(0x2cb),a2_0x19835d(0x1c0))[a2_0x19835d(0x1f7)](a2_0x19835d(0x22b),a2_0x19835d(0x12d))[a2_0x19835d(0x1f7)](a2_0x19835d(0x20c),'Plaintext\x20template\x20content')[a2_0x19835d(0x169)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2f8))[a2_0x19835d(0xd4)]('Delete\x20an\x20email\x20template')[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),a2_0x19835d(0x272))[a2_0x19835d(0x1f7)]('--yes',a2_0x19835d(0x113))[a2_0x19835d(0x169)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x19835d(0xff))[a2_0x19835d(0xd4)]('Workspace\x20management');workspaceCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))['description']('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x19835d(0x169)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xba))['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x19835d(0x169)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x19835d(0xab))[a2_0x19835d(0xd4)](a2_0x19835d(0x30e))[a2_0x19835d(0x1f7)]('--full',a2_0x19835d(0x293))[a2_0x19835d(0x169)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x166))['description']('Create\x20a\x20workspace')[a2_0x19835d(0xf9)](a2_0x19835d(0x31f),'Workspace\x20name')[a2_0x19835d(0x1f7)](a2_0x19835d(0x2c4),a2_0x19835d(0x1fa))[a2_0x19835d(0x169)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x147))[a2_0x19835d(0xd4)](a2_0x19835d(0x354))['option'](a2_0x19835d(0x31f),'New\x20workspace\x20name')['option'](a2_0x19835d(0x2c4),a2_0x19835d(0x1fa))[a2_0x19835d(0x169)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x19835d(0x2b1)]('delete\x20<name-or-id>')[a2_0x19835d(0xd4)](a2_0x19835d(0x221))[a2_0x19835d(0x1f7)](a2_0x19835d(0x108),'Skip\x20confirmation\x20prompt')[a2_0x19835d(0x169)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x19835d(0x2b1)]('use\x20<name>')[a2_0x19835d(0xd4)](a2_0x19835d(0xe3))['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x30a))[a2_0x19835d(0xd4)](a2_0x19835d(0x2cd));deliveryCmd['command'](a2_0x19835d(0x109))['description'](a2_0x19835d(0xe7))[a2_0x19835d(0x1f7)](a2_0x19835d(0x243),'Workspace\x20name')[a2_0x19835d(0x169)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0x23c))[a2_0x19835d(0xd4)](a2_0x19835d(0xe4)),connectionListAction=async _0x45073c=>{const _0x42f5b2=new ConnectionListCommand(),_0x1ec017=program['opts'](),_0x3b6276=await createTDXInstance(_0x1ec017),_0x55a12a=await _0x42f5b2['run']({'options':{..._0x1ec017,..._0x45073c},'args':[],'tdx':_0x3b6276});gracefulExit(_0x55a12a);};connectionCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x301))[a2_0x19835d(0xd4)](a2_0x19835d(0x1f8))[a2_0x19835d(0x169)](connectionListAction),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x25b),{'hidden':!![]})[a2_0x19835d(0xd4)](a2_0x19835d(0x1f0))['action'](connectionListAction),connectionCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x107))[a2_0x19835d(0xd4)](a2_0x19835d(0x350))[a2_0x19835d(0x169)](async(_0x29c45b,_0x131ddd)=>{const _0x2f3c1e=a2_0x19835d,_0x49b9fa=new ConnectionShowCommand(),_0xa82ed8=program[_0x2f3c1e(0xb8)](),_0x1ab0dd=await createTDXInstance(_0xa82ed8),_0x4d7b31=await _0x49b9fa[_0x2f3c1e(0x212)]({'options':{..._0xa82ed8,..._0x131ddd},'args':[_0x29c45b],'tdx':_0x1ab0dd});gracefulExit(_0x4d7b31);}),connectionCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x19d))[a2_0x19835d(0xd4)](a2_0x19835d(0x121))[a2_0x19835d(0x169)](async(_0x21df29,_0x58369e)=>{const _0x54a387=a2_0x19835d,_0x5e84dc=new ConnectionSchemaCommand(),_0x5c6b04=program[_0x54a387(0xb8)](),_0x129097=await createTDXInstance(_0x5c6b04),_0x3acf64=await _0x5e84dc[_0x54a387(0x212)]({'options':{..._0x5c6b04,..._0x58369e},'args':[_0x21df29],'tdx':_0x129097});gracefulExit(_0x3acf64);}),connectionCmd[a2_0x19835d(0x2b1)]('types')[a2_0x19835d(0xd4)]('List\x20available\x20connector\x20types')[a2_0x19835d(0x169)](async _0x4ff0a6=>{const _0x47a94a=a2_0x19835d,_0x18e236=new ConnectionTypesCommand(),_0x48a7a7=program[_0x47a94a(0xb8)](),_0x30d946=await createTDXInstance(_0x48a7a7),_0x21d82f=await _0x18e236[_0x47a94a(0x212)]({'options':{..._0x48a7a7,..._0x4ff0a6},'args':[],'tdx':_0x30d946});gracefulExit(_0x21d82f);}),connectionCmd['command'](a2_0x19835d(0x182))[a2_0x19835d(0xd4)](a2_0x19835d(0x264))[a2_0x19835d(0x169)](async(_0x2fa55e,_0x129646)=>{const _0x107b75=a2_0x19835d,_0x478daf=new ConnectionSettingsCommand(),_0x285336=program[_0x107b75(0xb8)](),_0x1700c8=await createTDXInstance(_0x285336),_0x525591=await _0x478daf[_0x107b75(0x212)]({'options':{..._0x285336,..._0x129646},'args':[_0x2fa55e],'tdx':_0x1700c8});gracefulExit(_0x525591);});const journeyCmd=program[a2_0x19835d(0x2b1)](a2_0x19835d(0xc3))[a2_0x19835d(0xd4)](a2_0x19835d(0x35f)),journeyListAction=async(_0x3bd774,_0x556edc)=>{const _0x36e481=a2_0x19835d,_0x21be88=new JourneyListCommand(),_0x368820=program[_0x36e481(0xb8)](),_0x156435=await createTDXInstance(_0x368820),_0x205b06=await _0x21be88[_0x36e481(0x212)]({'options':{..._0x368820,..._0x556edc},'args':_0x3bd774?[_0x3bd774]:[],'tdx':_0x156435});gracefulExit(_0x205b06);};journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x15e))[a2_0x19835d(0xd4)](a2_0x19835d(0x1db))[a2_0x19835d(0x169)](journeyListAction),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x115))[a2_0x19835d(0xd4)]('Show\x20journey\x20details')[a2_0x19835d(0x1f7)](a2_0x19835d(0x32e),a2_0x19835d(0x210))[a2_0x19835d(0x1f7)](a2_0x19835d(0x20b),'Include\x20execution\x20statistics')['action'](async(_0x3fe1ce,_0x1ffefc)=>{const _0xadfad1=a2_0x19835d,_0x1387f4=new JourneyViewCommand(),_0x232af4=program[_0xadfad1(0xb8)](),_0x4c7214=await createTDXInstance(_0x232af4),_0x43b657=await _0x1387f4['run']({'options':{..._0x232af4,..._0x1ffefc},'args':[_0x3fe1ce],'tdx':_0x4c7214});gracefulExit(_0x43b657);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x283))[a2_0x19835d(0xd4)](a2_0x19835d(0x258))[a2_0x19835d(0x1f7)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x19835d(0x1f7)]('--from\x20<date>',a2_0x19835d(0x254))[a2_0x19835d(0x1f7)]('--to\x20<date>',a2_0x19835d(0x16f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24c),a2_0x19835d(0x1bc))[a2_0x19835d(0x169)](async(_0x38402c,_0x148da9)=>{const _0x45daa4=a2_0x19835d,_0x1aa216=new JourneyStatsCommand(),_0x55036b=program[_0x45daa4(0xb8)](),_0x3f5f12=await createTDXInstance(_0x55036b),_0x4b644e=await _0x1aa216['run']({'options':{..._0x55036b,..._0x148da9},'args':[_0x38402c],'tdx':_0x3f5f12});gracefulExit(_0x4b644e);}),journeyCmd['command'](a2_0x19835d(0xd7))['description'](a2_0x19835d(0x2d6))['option'](a2_0x19835d(0x28d),a2_0x19835d(0x292))[a2_0x19835d(0x1f7)]('--from\x20<date>',a2_0x19835d(0x254))['option'](a2_0x19835d(0x326),a2_0x19835d(0x16f))[a2_0x19835d(0x1f7)]('--limit\x20<number>',a2_0x19835d(0x185),_0x2b844c=>{const _0x1b47b7=a2_0x19835d,_0x283f65=parseInt(_0x2b844c,0xa);if(isNaN(_0x283f65))throw new Error('Invalid\x20--limit\x20value:\x20\x22'+_0x2b844c+_0x1b47b7(0x1d7));return _0x283f65;})[a2_0x19835d(0x169)](async(_0x16ff9f,_0x2c1287)=>{const _0x5e9bf2=a2_0x19835d,_0x2c7c5e=new JourneyTrafficCommand(),_0x1f0d8a=program[_0x5e9bf2(0xb8)](),_0x1c041a=await createTDXInstance(_0x1f0d8a),_0x5db876=await _0x2c7c5e[_0x5e9bf2(0x212)]({'options':{..._0x1f0d8a,..._0x2c1287},'args':[_0x16ff9f],'tdx':_0x1c041a});gracefulExit(_0x5db876);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2c2))[a2_0x19835d(0xd4)]('Pause\x20a\x20running\x20journey')[a2_0x19835d(0x169)](async(_0x3501c9,_0x4acab3)=>{const _0x30b725=a2_0x19835d,_0x39903b=new JourneyPauseCommand(),_0x490d32=program[_0x30b725(0xb8)](),_0x2bed32=await createTDXInstance(_0x490d32),_0x57d637=await _0x39903b[_0x30b725(0x212)]({'options':{..._0x490d32,..._0x4acab3},'args':[_0x3501c9],'tdx':_0x2bed32});gracefulExit(_0x57d637);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xcc))[a2_0x19835d(0xd4)]('Resume\x20a\x20paused\x20journey')['action'](async(_0x3e8bf0,_0x30ef91)=>{const _0x2bcd11=a2_0x19835d,_0x3d4e00=new JourneyResumeCommand(),_0x4d9751=program[_0x2bcd11(0xb8)](),_0x34c2e0=await createTDXInstance(_0x4d9751),_0x1c2716=await _0x3d4e00[_0x2bcd11(0x212)]({'options':{..._0x4d9751,..._0x30ef91},'args':[_0x3e8bf0],'tdx':_0x34c2e0});gracefulExit(_0x1c2716);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x21b))[a2_0x19835d(0xd4)](a2_0x19835d(0x1e2))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0x23a))['action'](async(_0x1b8e4e,_0x2d38df)=>{const _0x579459=a2_0x19835d,_0x4fcd82=new JourneyPullCommand(),_0x5e2aab=program[_0x579459(0xb8)](),_0x11f6b8=await createTDXInstance(_0x5e2aab),_0x3a0e62=await _0x4fcd82['run']({'options':{..._0x5e2aab,..._0x2d38df},'args':_0x1b8e4e?[_0x1b8e4e]:[],'tdx':_0x11f6b8});gracefulExit(_0x3a0e62);}),journeyCmd['command']('push\x20[target]')[a2_0x19835d(0xd4)](a2_0x19835d(0x1f6))[a2_0x19835d(0x169)](async(_0x455800,_0x1d3961)=>{const _0x591084=a2_0x19835d,_0x50f662=new JourneyPushCommand(),_0x53e3f5=program[_0x591084(0xb8)](),_0x432fbc=await createTDXInstance(_0x53e3f5),_0x3b12dd=await _0x50f662[_0x591084(0x212)]({'options':{..._0x53e3f5,..._0x1d3961},'args':_0x455800?[_0x455800]:[],'tdx':_0x432fbc});gracefulExit(_0x3b12dd);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1fc))['description'](a2_0x19835d(0x2b9))[a2_0x19835d(0x169)](async(_0x4fd76d,_0x2a9508)=>{const _0x16a840=a2_0x19835d,_0x47475c=new JourneyColumnsCommand(),_0x919a22=program[_0x16a840(0xb8)](),_0x2f39e9=await createTDXInstance(_0x919a22),_0x25cd2d=await _0x47475c[_0x16a840(0x212)]({'options':{..._0x919a22,..._0x2a9508},'args':[_0x4fd76d],'tdx':_0x2f39e9});gracefulExit(_0x25cd2d);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0xc7))[a2_0x19835d(0xd4)](a2_0x19835d(0xd8))[a2_0x19835d(0x169)](async(_0x2aa888,_0x2b8611)=>{const _0x48c2aa=a2_0x19835d,_0x13d4f3=new JourneyActivationsCommand(),_0x110cea=program[_0x48c2aa(0xb8)](),_0x19e937=await createTDXInstance(_0x110cea),_0x4a756b=await _0x13d4f3[_0x48c2aa(0x212)]({'options':{..._0x110cea,..._0x2b8611},'args':[_0x2aa888],'tdx':_0x19e937});gracefulExit(_0x4a756b);}),journeyCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x302))[a2_0x19835d(0xd4)](a2_0x19835d(0x23b))[a2_0x19835d(0x169)](async(_0x1adc8e,_0x5a149)=>{const _0x1ca62b=a2_0x19835d,_0x4185af=new JourneyVersionsCommand(),_0x31da36=program[_0x1ca62b(0xb8)](),_0x447aba=await createTDXInstance(_0x31da36),_0x272780=await _0x4185af['run']({'options':{..._0x31da36,..._0x5a149},'args':[_0x1adc8e],'tdx':_0x447aba});gracefulExit(_0x272780);});const journeyVersionCmd=journeyCmd['command']('version')[a2_0x19835d(0xd4)](a2_0x19835d(0xc8));journeyVersionCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x27a))[a2_0x19835d(0xd4)](a2_0x19835d(0x152))[a2_0x19835d(0x169)](async(_0x391d19,_0xf678f4)=>{const _0x2bfcb4=a2_0x19835d,_0x564f74=new JourneyVersionCreateCommand(),_0x581096=program['opts'](),_0x34d472=await createTDXInstance(_0x581096),_0x2b8da8=await _0x564f74[_0x2bfcb4(0x212)]({'options':{..._0x581096,..._0xf678f4},'args':[_0x391d19],'tdx':_0x34d472});gracefulExit(_0x2b8da8);}),journeyVersionCmd[a2_0x19835d(0x2b1)]('view\x20<name-or-path>')[a2_0x19835d(0xd4)](a2_0x19835d(0x2aa))[a2_0x19835d(0xf9)](a2_0x19835d(0x33b),a2_0x19835d(0x20d))[a2_0x19835d(0x169)](async(_0x20f3c7,_0xbc88bc)=>{const _0x36865c=a2_0x19835d,_0x49a850=new JourneyVersionViewCommand(),_0x1c6541=program[_0x36865c(0xb8)](),_0x2d354a=await createTDXInstance(_0x1c6541),_0x6b5933=await _0x49a850[_0x36865c(0x212)]({'options':{..._0x1c6541,..._0xbc88bc},'args':[_0x20f3c7],'tdx':_0x2d354a});gracefulExit(_0x6b5933);}),journeyCmd['command'](a2_0x19835d(0xbc))['description'](a2_0x19835d(0x1c2))[a2_0x19835d(0x169)](async(_0x1ee3bc,_0x15f523)=>{const _0x1eef68=a2_0x19835d,_0x4ed372=new JourneyValidateCommand(),_0xa39fa9=program[_0x1eef68(0xb8)](),_0x44709f=await createTDXInstance(_0xa39fa9),_0x15678a=await _0x4ed372[_0x1eef68(0x212)]({'options':{..._0xa39fa9,..._0x15f523},'args':_0x1ee3bc?[_0x1ee3bc]:[],'tdx':_0x44709f});gracefulExit(_0x15678a);}),program[a2_0x19835d(0x2b1)]('journeys\x20[pattern]')[a2_0x19835d(0xd4)](a2_0x19835d(0x16d))[a2_0x19835d(0x169)](journeyListAction);const agentSyncCmd=program['command'](a2_0x19835d(0xb3))['description'](a2_0x19835d(0xce));agentSyncCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x1d0))[a2_0x19835d(0xd4)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x19835d(0x1f7)](a2_0x19835d(0xd2),a2_0x19835d(0x200))['option'](a2_0x19835d(0x25c),a2_0x19835d(0x28e))[a2_0x19835d(0x1f7)](a2_0x19835d(0x1af),a2_0x19835d(0x239))[a2_0x19835d(0x169)](async(_0x289f2c,_0x240db1,_0xa7def6)=>{const _0xde274c=a2_0x19835d,_0xb82291=new AgentPullCommand(),_0x30bb69=program[_0xde274c(0xb8)](),_0x1867f4=await createTDXInstance(_0x30bb69),_0xea8ba0=[];if(_0x289f2c)_0xea8ba0[_0xde274c(0x249)](_0x289f2c);if(_0x240db1)_0xea8ba0[_0xde274c(0x249)](_0x240db1);const _0xf9ff03=await _0xb82291['run']({'options':{..._0x30bb69,..._0xa7def6},'args':_0xea8ba0,'tdx':_0x1867f4});gracefulExit(_0xf9ff03);}),agentSyncCmd[a2_0x19835d(0x2b1)]('push\x20[path]')['description'](a2_0x19835d(0x173))['option'](a2_0x19835d(0x25c),a2_0x19835d(0x224))[a2_0x19835d(0x169)](async(_0x29de94,_0x5169f4)=>{const _0x184dff=a2_0x19835d,_0x2d0a7f=new AgentPushCommand(),_0x4775c4=program[_0x184dff(0xb8)](),_0x98b349=await createTDXInstance(_0x4775c4),_0x2fd129=await _0x2d0a7f[_0x184dff(0x212)]({'options':{..._0x4775c4,..._0x5169f4},'args':_0x29de94?[_0x29de94]:[],'tdx':_0x98b349});gracefulExit(_0x2fd129);}),agentSyncCmd['command'](a2_0x19835d(0x266))[a2_0x19835d(0xd4)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x19835d(0x1f7)]('-n,\x20--name\x20<name>','Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x19835d(0x169)](async(_0x3edcc2,_0x4fbac2)=>{const _0x24e867=a2_0x19835d,_0x7a44d2=new AgentCloneCommand(),_0x476e74=program[_0x24e867(0xb8)](),_0x240830=await createTDXInstance(_0x476e74),_0x3a9c1e=await _0x7a44d2[_0x24e867(0x212)]({'options':{..._0x476e74,..._0x4fbac2},'args':_0x3edcc2?[_0x3edcc2]:[],'tdx':_0x240830});gracefulExit(_0x3a9c1e);}),agentSyncCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x25d))[a2_0x19835d(0xd4)]('Run\x20tests\x20for\x20an\x20LLM\x20agent')[a2_0x19835d(0x1f7)]('--name\x20<names>','Run\x20specific\x20tests\x20(comma-separated)')[a2_0x19835d(0x1f7)](a2_0x19835d(0xbf),a2_0x19835d(0x19f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x24a),a2_0x19835d(0xc1))[a2_0x19835d(0x1f7)](a2_0x19835d(0x30f),a2_0x19835d(0x1cc))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f7),a2_0x19835d(0x28a))['action'](async(_0x59343d,_0x46bdd1)=>{const _0x1cbd16=a2_0x19835d,_0x260bb0=new AgentTestCommand(),_0x43a635=program[_0x1cbd16(0xb8)](),_0x1449b1=await createTDXInstance(_0x43a635),_0x3a2249=await _0x260bb0[_0x1cbd16(0x212)]({'options':{..._0x43a635,..._0x46bdd1},'args':_0x59343d?[_0x59343d]:[],'tdx':_0x1449b1});gracefulExit(_0x3a2249);}),agentSyncCmd[a2_0x19835d(0x2b1)]('list\x20[pattern]')[a2_0x19835d(0xd4)](a2_0x19835d(0x1ef))[a2_0x19835d(0x169)](llmAgentListAction),agentSyncCmd['command'](a2_0x19835d(0x297))['description']('Show\x20agent\x20details')[a2_0x19835d(0x169)](async(_0x686aee,_0x5954ea)=>{const _0x3e301d=a2_0x19835d,_0x4e35c8=new LLMAgentShowCommand(),_0x6c593c=program[_0x3e301d(0xb8)](),_0x1cd4d9=await createTDXInstance(_0x6c593c),_0x39b7ce=await _0x4e35c8['run']({'options':{..._0x6c593c,..._0x5954ea},'args':[_0x686aee],'tdx':_0x1cd4d9});gracefulExit(_0x39b7ce);}),agentSyncCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x2f3))['description'](a2_0x19835d(0x347))[a2_0x19835d(0x1f7)]('--system-prompt\x20<text>',a2_0x19835d(0x11f))[a2_0x19835d(0x1f7)](a2_0x19835d(0x26d),a2_0x19835d(0x2b4),a2_0x19835d(0x271))['option'](a2_0x19835d(0x12a),'Starter\x20message')[a2_0x19835d(0x1f7)](a2_0x19835d(0x15f),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x19835d(0x1f7)](a2_0x19835d(0x1e3),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x19835d(0x299))['action'](async(_0x36ffb6,_0x2c2316)=>{const _0x246568=a2_0x19835d,_0x52953b=new LLMAgentCreateCommand(),_0x28d964=program[_0x246568(0xb8)](),_0x136925=await createTDXInstance(_0x28d964),_0x57687e=await _0x52953b[_0x246568(0x212)]({'options':{..._0x28d964,..._0x2c2316},'args':[_0x36ffb6],'tdx':_0x136925});gracefulExit(_0x57687e);}),agentSyncCmd[a2_0x19835d(0x2b1)](a2_0x19835d(0x197))['description'](a2_0x19835d(0x1b8))['option'](a2_0x19835d(0x2a8),a2_0x19835d(0x1a5))[a2_0x19835d(0x1f7)]('--prompt\x20<text>',a2_0x19835d(0x306))[a2_0x19835d(0x1f7)](a2_0x19835d(0x2f1),a2_0x19835d(0x132))['option'](a2_0x19835d(0x12a),'Starter\x20message')[a2_0x19835d(0x169)](async(_0x46b72f,_0x39620a)=>{const _0x521d2c=a2_0x19835d,_0x51c243=new LLMAgentUpdateCommand(),_0x2d484c=program[_0x521d2c(0xb8)](),_0x575709=await createTDXInstance(_0x2d484c),_0x1b5d3a=await _0x51c243[_0x521d2c(0x212)]({'options':{..._0x2d484c,..._0x39620a},'args':[_0x46b72f],'tdx':_0x575709});gracefulExit(_0x1b5d3a);}),agentSyncCmd['command']('delete\x20<agent-name>')['description'](a2_0x19835d(0x309))[a2_0x19835d(0x169)](async(_0x37a924,_0x45da0c)=>{const _0x3d11b5=a2_0x19835d,_0x3c1d99=new LLMAgentDeleteCommand(),_0x4c62c5=program[_0x3d11b5(0xb8)](),_0xaffcdc=await createTDXInstance(_0x4c62c5),_0x4f4336=await _0x3c1d99[_0x3d11b5(0x212)]({'options':{..._0x4c62c5,..._0x45da0c},'args':[_0x37a924],'tdx':_0xaffcdc});gracefulExit(_0x4f4336);}),program[a2_0x19835d(0x2b1)](a2_0x19835d(0x35e),{'hidden':!![]})[a2_0x19835d(0x169)](()=>{const _0x1dd34b=a2_0x19835d;function _0xa823ff(_0x480967,_0xe9f621){const _0xa434b6=a2_0x5509,_0x1479e4=[];for(const _0x535e12 of _0x480967[_0xa434b6(0x24e)]){if(_0x535e12[_0xa434b6(0x18b)])continue;const _0x4ac179=_0xe9f621?_0xe9f621+'\x20'+_0x535e12[_0xa434b6(0x2ba)]():_0x535e12[_0xa434b6(0x2ba)](),_0x507a19=_0x4ac179[_0xa434b6(0x1bb)]('\x20')[0x0],_0x5b70ac=COMMAND_CATEGORIES['find'](_0x2a6979=>_0x2a6979[_0xa434b6(0x24e)][_0xa434b6(0x1ce)](_0x507a19)),_0xbe203c=_0x5b70ac?.['name']??'';if(_0x535e12['commands'][_0xa434b6(0xcb)]>0x0)_0x1479e4['push'](..._0xa823ff(_0x535e12,_0x4ac179));else{const _0x201aec=(_0x535e12[_0xa434b6(0x14e)]||[])[_0xa434b6(0x150)](_0x98db19=>{const _0x1fe3eb=_0xa434b6,_0x47f9c9=_0x98db19[_0x1fe3eb(0x10d)]?_0x98db19['name']()+_0x1fe3eb(0x1e5):_0x98db19[_0x1fe3eb(0x2ba)]();return _0x98db19[_0x1fe3eb(0xc0)]?'<'+_0x47f9c9+'>':'['+_0x47f9c9+']';})['join']('\x20'),_0x301161=_0x535e12[_0xa434b6(0x22d)][_0xa434b6(0x2c6)](_0x568dbf=>!_0x568dbf[_0xa434b6(0x358)]&&_0x568dbf['long']!==_0xa434b6(0xd5))[_0xa434b6(0x150)](_0x35548b=>({'flags':_0x35548b[_0xa434b6(0x1be)],'description':_0x35548b[_0xa434b6(0xd4)]}));_0x1479e4[_0xa434b6(0x249)]({'name':_0x4ac179,'description':_0x535e12[_0xa434b6(0xd4)](),'group':_0xbe203c,'usage':_0x201aec,'options':_0x301161});}}return _0x1479e4;}console[_0x1dd34b(0x216)](JSON[_0x1dd34b(0x233)](_0xa823ff(program,''))),process[_0x1dd34b(0x232)](0x0);});export{program};export function runCLI(){const _0x3a66c8=a2_0x19835d,_0x2f4641=!process[_0x3a66c8(0x29d)][_0x3a66c8(0x34b)](0x2)[_0x3a66c8(0xcb)];showBriefHelp=_0x2f4641,program[_0x3a66c8(0x284)](process[_0x3a66c8(0x29d)]);_0x2f4641&&program[_0x3a66c8(0x323)]();if(process[_0x3a66c8(0x276)][_0x3a66c8(0x27d)]&&process['argv'][_0x3a66c8(0xcb)]>0x2&&!isDevVersion()){const _0xaad47c=loadReleaseChannel();checkForUpdate(currentVersion,_0xaad47c)['then'](_0x179522=>{_0x179522&&displayUpdateNotification(_0x179522);})[_0x3a66c8(0x308)](()=>{});}}
1
+ const a2_0x46ebb0=a2_0x17f4;(function(_0xe61b95,_0xaa716a){const _0x39f4cf=a2_0x17f4,_0x30dec6=_0xe61b95();while(!![]){try{const _0x5b0382=-parseInt(_0x39f4cf(0x118))/0x1+-parseInt(_0x39f4cf(0x147))/0x2+parseInt(_0x39f4cf(0x106))/0x3*(-parseInt(_0x39f4cf(0x38c))/0x4)+parseInt(_0x39f4cf(0x16a))/0x5*(-parseInt(_0x39f4cf(0x214))/0x6)+parseInt(_0x39f4cf(0x249))/0x7+parseInt(_0x39f4cf(0x243))/0x8*(-parseInt(_0x39f4cf(0x258))/0x9)+-parseInt(_0x39f4cf(0x1ed))/0xa*(-parseInt(_0x39f4cf(0x1f2))/0xb);if(_0x5b0382===_0xaa716a)break;else _0x30dec6['push'](_0x30dec6['shift']());}catch(_0x17c939){_0x30dec6['push'](_0x30dec6['shift']());}}}(a2_0x4dc1,0x30e7b));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,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{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{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x46ebb0(0x252)]('--version')){let versionOutput=a2_0x46ebb0(0x277)+currentVersion;buildInfo[a2_0x46ebb0(0x196)]&&!currentVersion['includes'](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x46ebb0(0x196)]+')'),buildInfo[a2_0x46ebb0(0x1f1)]&&(versionOutput+=a2_0x46ebb0(0x312)+buildInfo[a2_0x46ebb0(0x1f1)]),console[a2_0x46ebb0(0x2eb)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x46ebb0(0x22d);buildInfo[a2_0x46ebb0(0x196)]&&!currentVersion[a2_0x46ebb0(0x252)](buildInfo[a2_0x46ebb0(0x196)])?description+=a2_0x46ebb0(0x338)+currentVersion+'\x20('+buildInfo[a2_0x46ebb0(0x196)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x46ebb0(0x25c))['description'](description),program[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2cf),a2_0x46ebb0(0x2b5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1af),a2_0x46ebb0(0x105))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x320),a2_0x46ebb0(0x1b9),a2_0x46ebb0(0x324))[a2_0x46ebb0(0x25e)]('--format\x20<format>',a2_0x46ebb0(0x1ab))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2dc),a2_0x46ebb0(0x16d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x207))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x30e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x264),a2_0x46ebb0(0x390))[a2_0x46ebb0(0x25e)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2b4),a2_0x46ebb0(0x275))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x235),a2_0x46ebb0(0x1de),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x150),a2_0x46ebb0(0x35c),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x241),a2_0x46ebb0(0x23a),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e2),a2_0x46ebb0(0x2a2))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a9),a2_0x46ebb0(0x231))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x36c),a2_0x46ebb0(0x37a),'30')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x232),![])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x274),a2_0x46ebb0(0x318),![])[a2_0x46ebb0(0x25e)]('--session\x20<id>',a2_0x46ebb0(0x240))['option']('--parent-segment\x20<name>',a2_0x46ebb0(0x170))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x181),a2_0x46ebb0(0x15d)),program[a2_0x46ebb0(0x1d7)]({'formatHelp':(_0x8fb512,_0xfce493)=>{const _0x1d0721=a2_0x46ebb0,_0x384d51=_0xfce493[_0x1d0721(0x1a4)](_0x8fb512,_0xfce493),_0x3060af=0x2,_0x231853=0x2;function _0x2faa99(_0x5d52a9){const _0x426cd8=_0x1d0721,_0x305cde=_0x5d52a9;return!!(_0x305cde[_0x426cd8(0x32c)]||_0x305cde['hidden']);}function _0x3f17d2(_0x13716b,_0x23093a){const _0x3394e3=_0x1d0721;if(_0x23093a){const _0x31d5db=''+_0x13716b[_0x3394e3(0x1b8)](_0x384d51+_0x231853)+_0x23093a;return _0x31d5db;}return _0x13716b;}function _0xa56dc6(_0x530d0b){const _0x5524f2=_0x1d0721;return _0x530d0b[_0x5524f2(0x1bd)]('\x0a')[_0x5524f2(0x12d)](/^/gm,'\x20'[_0x5524f2(0x144)](_0x3060af));}const _0x3cdf45=[];_0x3cdf45['push'](_0x1d0721(0x32b)+_0xfce493[_0x1d0721(0x340)](_0x8fb512));const _0x3af9c8=_0xfce493[_0x1d0721(0x361)](_0x8fb512);_0x3af9c8&&(_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x3af9c8));const _0x30c63f=_0x8fb512[_0x1d0721(0x362)][_0x1d0721(0x25a)](_0x51df10=>!_0x2faa99(_0x51df10));if(_0x30c63f[_0x1d0721(0x2cc)]>0x0){if(_0x8fb512['name']()===_0x1d0721(0x25c)){const _0x201f8f=_0x8fb512['opts'](),_0x18a15=!_0x201f8f[_0x1d0721(0x102)]&&process[_0x1d0721(0x104)][_0x1d0721(0x20c)],_0x40cb14=COMMAND_CATEGORIES,_0x37dafb=(_0x3dc0c3,_0x11538e)=>_0x18a15?_0x11538e(_0x3dc0c3):_0x3dc0c3,_0x7c68f9=new Map();_0x30c63f[_0x1d0721(0x2cd)](_0x41b15a=>{const _0x3702dd=_0x1d0721;_0x7c68f9[_0x3702dd(0x169)](_0x41b15a[_0x3702dd(0x271)](),_0x41b15a);}),_0x40cb14[_0x1d0721(0x2cd)](_0x45c194=>{const _0x373344=_0x1d0721,_0x1b6903=_0x45c194[_0x373344(0x362)][_0x373344(0x39b)](_0x1a15eb=>_0x7c68f9[_0x373344(0x225)](_0x1a15eb)??[]);if(_0x1b6903[_0x373344(0x2cc)]>0x0){_0x3cdf45[_0x373344(0x2fb)](''),_0x3cdf45[_0x373344(0x2fb)](_0x37dafb(_0x45c194[_0x373344(0x271)]+':',_0x45c194[_0x373344(0x2ad)]));const _0x379d2d=_0x1b6903[_0x373344(0x329)](_0x2862c7=>{const _0x57765e=_0x373344,_0x1c26af=_0xfce493[_0x57765e(0x1fe)](_0x2862c7),_0x25e265=_0xfce493['subcommandDescription'](_0x2862c7);return _0x3f17d2(_0x1c26af,_0x25e265);});_0x3cdf45[_0x373344(0x2fb)](_0xa56dc6(_0x379d2d));}}),_0x3cdf45['push'](''),_0x3cdf45[_0x1d0721(0x2fb)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x3fa5bd=_0x30c63f[_0x1d0721(0x329)](_0x4106bb=>{const _0x31ed0b=_0x1d0721,_0x14d47d=_0xfce493[_0x31ed0b(0x1fe)](_0x4106bb),_0xd1e036=_0xfce493[_0x31ed0b(0x280)](_0x4106bb);return _0x3f17d2(_0x14d47d,_0xd1e036);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)]('Commands:'),_0x3cdf45[_0x1d0721(0x2fb)](_0xa56dc6(_0x3fa5bd));}}if(showBriefHelp&&_0x8fb512[_0x1d0721(0x271)]()===_0x1d0721(0x25c))_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x1d0721(0x1dc));else{const _0x392704=_0x8fb512[_0x1d0721(0x108)][_0x1d0721(0x25a)](_0x28016d=>!_0x2faa99(_0x28016d));if(_0x392704[_0x1d0721(0x2cc)]>0x0){const _0x10d81e=_0x392704[_0x1d0721(0x329)](_0x3847d2=>{const _0x44d756=_0x1d0721,_0x3653e1=_0xfce493[_0x44d756(0x1b5)](_0x3847d2),_0x1526cb=_0xfce493[_0x44d756(0x272)](_0x3847d2);return _0x3f17d2(_0x3653e1,_0x1526cb);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45['push']('Options:'),_0x3cdf45['push'](_0xa56dc6(_0x10d81e));}}const _0x45cca7=(_0x8fb512['registeredArguments']||[])[_0x1d0721(0x25a)](_0x1f1adc=>!_0x2faa99(_0x1f1adc));if(_0x45cca7[_0x1d0721(0x2cc)]>0x0){const _0x22331c=_0x45cca7[_0x1d0721(0x329)](_0x4ef89d=>{const _0x5df359=_0x1d0721,_0xec513f=_0xfce493[_0x5df359(0x1c5)](_0x4ef89d),_0x52b179=_0xfce493[_0x5df359(0x393)](_0x4ef89d);return _0x3f17d2(_0xec513f,_0x52b179);});_0x3cdf45[_0x1d0721(0x2fb)](''),_0x3cdf45[_0x1d0721(0x2fb)](_0x1d0721(0x34c)),_0x3cdf45['push'](_0xa56dc6(_0x22331c));}return _0x3cdf45['join']('\x0a')+'\x0a';},'subcommandTerm':_0x552e48=>{const _0x2a1f3c=a2_0x46ebb0,_0x1bb37d=(_0x552e48[_0x2a1f3c(0x113)]||[])['map'](_0x1de4f6=>_0x1de4f6[_0x2a1f3c(0x2f9)]?'<'+_0x1de4f6[_0x2a1f3c(0x271)]()+'>':'['+_0x1de4f6[_0x2a1f3c(0x271)]()+']')[_0x2a1f3c(0x1bd)]('\x20'),_0x1c7d21=_0x552e48['aliases'](),_0x725797=_0x1c7d21['length']>0x0?_0x552e48[_0x2a1f3c(0x271)]()+',\x20'+_0x1c7d21['join'](',\x20'):_0x552e48[_0x2a1f3c(0x271)]();return _0x1bb37d?_0x725797+'\x20'+_0x1bb37d:_0x725797;}}),program['hook'](a2_0x46ebb0(0x2db),_0x2d24a2=>{const _0x346cfe=a2_0x46ebb0,_0x4798b8=_0x2d24a2[_0x346cfe(0x224)]();if(_0x4798b8[_0x346cfe(0x200)]){const _0x484cb2=resolve(_0x4798b8[_0x346cfe(0x200)]),_0x5da318=_0x484cb2!==_0x4798b8[_0x346cfe(0x200)]?'\x20(resolved\x20to\x20'+_0x484cb2+')':'';if(!existsSync(_0x484cb2))throw new SDKError(ErrorCode[_0x346cfe(0x19a)],_0x346cfe(0x1f6)+_0x4798b8[_0x346cfe(0x200)]+_0x5da318,undefined,{'helpText':_0x346cfe(0x2e0)});const _0x43d379=statSync(_0x484cb2);if(!_0x43d379['isDirectory']())throw new SDKError(ErrorCode[_0x346cfe(0x19a)],_0x346cfe(0x14a)+_0x4798b8[_0x346cfe(0x200)]+_0x5da318,undefined,{'helpText':_0x346cfe(0x184)});process['chdir'](_0x484cb2);}if(!_0x4798b8[_0x346cfe(0x33b)]){if(_0x4798b8[_0x346cfe(0x212)])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x212);else{if(_0x4798b8['json'])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x2b0);else{if(_0x4798b8[_0x346cfe(0x360)])_0x4798b8[_0x346cfe(0x33b)]=_0x346cfe(0x360);else _0x4798b8[_0x346cfe(0x358)]&&(_0x4798b8['format']=_0x346cfe(0x358));}}}if(_0x4798b8['trace'])_0x4798b8[_0x346cfe(0x159)]=LogLevel['TRACE'];else{if(_0x4798b8[_0x346cfe(0x351)])_0x4798b8[_0x346cfe(0x159)]=LogLevel[_0x346cfe(0x356)];else _0x4798b8[_0x346cfe(0x159)]===undefined&&(_0x4798b8[_0x346cfe(0x159)]=LogLevel[_0x346cfe(0x352)]);}});async function createTDXInstance(_0x22b250){const _0x5bc809=a2_0x46ebb0,_0x3d91a4=await GlobalContext[_0x5bc809(0x263)](_0x22b250);return _0x3d91a4['injectIntoOptions'](_0x22b250),TDX[_0x5bc809(0x1d2)]({'site':_0x3d91a4[_0x5bc809(0x1db)],'apiKey':_0x3d91a4[_0x5bc809(0x202)],'logLevel':_0x3d91a4['logLevel'],'profile':_0x3d91a4['profile']});}const databaseCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x31c))[a2_0x46ebb0(0x1c8)]('db')[a2_0x46ebb0(0x218)]('Database\x20management\x20commands'),databaseListAction=async(_0x536bf6,_0x49e49a)=>{const _0x512bef=a2_0x46ebb0,_0x5e7384=new DatabasesCommand(),_0x319bde=program['opts'](),_0x2fd735=await createTDXInstance(_0x319bde),_0x37f853=await _0x5e7384[_0x512bef(0x13f)]({'options':{..._0x319bde,..._0x49e49a},'args':_0x536bf6?[_0x536bf6]:[],'tdx':_0x2fd735});gracefulExit(_0x37f853);};databaseCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')['description'](a2_0x46ebb0(0x2f3))[a2_0x46ebb0(0x209)](databaseListAction),program[a2_0x46ebb0(0x1b4)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x46ebb0(0x321))[a2_0x46ebb0(0x209)](databaseListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x143))[a2_0x46ebb0(0x218)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x46ebb0(0x157),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')['option'](a2_0x46ebb0(0x1d3),a2_0x46ebb0(0x246))['option'](a2_0x46ebb0(0x284),a2_0x46ebb0(0x205))['option'](a2_0x46ebb0(0x30b),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x46ebb0(0x209)](async(_0x58dc95,_0x35094c)=>{const _0x323c64=a2_0x46ebb0,_0x9b5423=program['opts'](),_0x5ccc52=await createTDXInstance(_0x9b5423);if(_0x58dc95[0x0]===_0x323c64(0x1d2)){const _0x5d72dc=new ChatCreateCommand();gracefulExit(await _0x5d72dc[_0x323c64(0x13f)]({'options':{..._0x9b5423,..._0x35094c},'args':_0x58dc95[_0x323c64(0x342)](0x1),'tdx':_0x5ccc52}));return;}const _0x55214d=new ChatCommand(),_0x348417=await _0x55214d[_0x323c64(0x13f)]({'options':{..._0x9b5423,..._0x35094c},'args':_0x58dc95,'tdx':_0x5ccc52});gracefulExit(_0x348417);});const apiCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x307))[a2_0x46ebb0(0x398)](a2_0x46ebb0(0x20f))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x31f))[a2_0x46ebb0(0x25e)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x46ebb0(0x21e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x11d),a2_0x46ebb0(0x367))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x1f7))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x28d),a2_0x46ebb0(0x2f4),(_0x59d737,_0x533771)=>{return _0x533771?[..._0x533771,_0x59d737]:[_0x59d737];})[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x251),a2_0x46ebb0(0x2e5),'td')[a2_0x46ebb0(0x209)](async(_0x571411,_0x3158e0)=>{const _0x2b20af=a2_0x46ebb0;if(!_0x571411){apiCmd[_0x2b20af(0x39d)]();return;}const _0x2e5a21=new ApiCommand(),_0x4d92f2=program['opts'](),_0xf6d7ea=await createTDXInstance(_0x4d92f2),_0x1d394d=await _0x2e5a21['run']({'options':{..._0x4d92f2,..._0x3158e0},'args':[_0x571411],'tdx':_0xf6d7ea});gracefulExit(_0x1d394d);});program['command']('mcp')['description'](a2_0x46ebb0(0x195))['addHelpText']('after','\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,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a')['action'](async _0x564799=>{const _0x1e0afc=a2_0x46ebb0,_0xe208ac=new MCPCommand(),_0x11bbc4=program[_0x1e0afc(0x224)](),_0xf5d7d=await createTDXInstance(_0x11bbc4),_0x23d4ed=await _0xe208ac[_0x1e0afc(0x13f)]({'options':{..._0x11bbc4,..._0x564799},'args':[],'tdx':_0xf5d7d});gracefulExit(_0x23d4ed);});const tableCmd=program[a2_0x46ebb0(0x1b4)]('table')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10b)),tableListAction=async(_0x3b2c0f,_0x2853a0)=>{const _0x180738=a2_0x46ebb0,_0x20f136=new TablesCommand(),_0xc6022=program['opts'](),_0x3f0ddc=await createTDXInstance(_0xc6022);_0x2853a0['in']&&(_0x2853a0[_0x180738(0x31c)]=_0x2853a0['in']);const _0x4ed81f=await _0x20f136[_0x180738(0x13f)]({'options':{..._0xc6022,..._0x2853a0},'args':_0x3b2c0f?[_0x3b2c0f]:[],'tdx':_0x3f0ddc});gracefulExit(_0x4ed81f);};tableCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x145))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x32a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x209)](tableListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1cb),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x317))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))['action'](tableListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x180))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x22f))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<database>',a2_0x46ebb0(0x1c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),a2_0x46ebb0(0x3b1))['action'](async(_0x2f261b,_0x56f542)=>{const _0x34f3cb=a2_0x46ebb0,_0x382b0e=new ShowCommand(),_0x3c29fe=program[_0x34f3cb(0x224)](),_0x219b53=await createTDXInstance(_0x3c29fe);_0x56f542['in']&&(_0x56f542[_0x34f3cb(0x31c)]=_0x56f542['in']);const _0x250f8a=await _0x382b0e[_0x34f3cb(0x13f)]({'options':{..._0x3c29fe,..._0x56f542},'args':_0x2f261b?[_0x2f261b]:[],'tdx':_0x219b53});gracefulExit(_0x250f8a);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x17e))[a2_0x46ebb0(0x1c8)]('desc')['description'](a2_0x46ebb0(0x194))['option'](a2_0x46ebb0(0x32a),a2_0x46ebb0(0x1c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x127),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x46ebb0(0x209)](async(_0x4e8944,_0x56a156)=>{const _0x48e7c9=a2_0x46ebb0,_0x4d6bd4=new DescribeCommand(),_0x12bcea=program['opts'](),_0x3e3eb5=await createTDXInstance(_0x12bcea);_0x56a156['in']&&(_0x56a156[_0x48e7c9(0x31c)]=_0x56a156['in']);const _0xb8d071=await _0x4d6bd4[_0x48e7c9(0x13f)]({'options':{..._0x12bcea,..._0x56a156},'args':_0x4e8944?[_0x4e8944]:[],'tdx':_0x3e3eb5});gracefulExit(_0xb8d071);}),program['command'](a2_0x46ebb0(0x36e))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')['option'](a2_0x46ebb0(0x32a),a2_0x46ebb0(0x267))[a2_0x46ebb0(0x25e)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x33d),'Trino\x20catalog\x20(default:\x20td)')[a2_0x46ebb0(0x25e)]('-f,\x20--file\x20<path>',a2_0x46ebb0(0x15e))['option'](a2_0x46ebb0(0x28f),a2_0x46ebb0(0x2e6),'40')[a2_0x46ebb0(0x209)](async(_0x31dcb1,_0x1cd99a)=>{const _0x53d90c=a2_0x46ebb0,_0x1546de=new QueryCommand(),_0x2d6f86=program[_0x53d90c(0x224)](),_0x18b298=await createTDXInstance(_0x2d6f86);_0x1cd99a['in']&&(_0x1cd99a[_0x53d90c(0x31c)]=_0x1cd99a['in']);const _0x46eb28=await _0x1546de[_0x53d90c(0x13f)]({'options':{..._0x2d6f86,..._0x1cd99a},'args':_0x31dcb1?[_0x31dcb1]:[],'tdx':_0x18b298});gracefulExit(_0x46eb28);});const segmentCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x283))['alias']('sg')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2df)),segmentListAction=async(_0x28d097,_0x4d7eff)=>{const _0x1e5472=a2_0x46ebb0,_0x40a2f6=new SegmentsCommand(),_0x499411=program[_0x1e5472(0x224)](),_0x156d78=await createTDXInstance(_0x499411),_0x20e105=await _0x40a2f6[_0x1e5472(0x13f)]({'options':{..._0x499411,..._0x4d7eff},'args':_0x28d097?[_0x28d097]:[],'tdx':_0x156d78});gracefulExit(_0x20e105);};segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x16c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x304),a2_0x46ebb0(0x1ec))['option'](a2_0x46ebb0(0x193),a2_0x46ebb0(0x370),'10')[a2_0x46ebb0(0x209)](segmentListAction),program[a2_0x46ebb0(0x1b4)]('segments\x20[path]',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x107))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x304),a2_0x46ebb0(0x1ec))[a2_0x46ebb0(0x25e)]('--max-depth\x20<depth>',a2_0x46ebb0(0x370),'10')[a2_0x46ebb0(0x209)](segmentListAction),segmentCmd[a2_0x46ebb0(0x1b4)]('use\x20<path>',{'hidden':!![]})['description'](a2_0x46ebb0(0x25b))[a2_0x46ebb0(0x209)](async(_0x22f9ec,_0xc8a01f)=>{const _0x412319=a2_0x46ebb0,_0x42367d=new SegmentUseCommand(),_0xa2bcfc=program['opts'](),_0x5ac8f6=await createTDXInstance(_0xa2bcfc),_0x4969c5=await _0x42367d[_0x412319(0x13f)]({'options':{..._0xa2bcfc,..._0xc8a01f},'args':[_0x22f9ec],'tdx':_0x5ac8f6});gracefulExit(_0x4969c5);});const segmentViewAction=async(_0x33293c,_0x27a025)=>{const _0x4bde57=a2_0x46ebb0,_0x35cd9c=new SegmentViewCommand(),_0x26373f=program['opts'](),_0x30717b=await createTDXInstance(_0x26373f),_0x32cc58=await _0x35cd9c[_0x4bde57(0x13f)]({'options':{..._0x26373f,..._0x27a025},'args':_0x33293c?[_0x33293c]:[],'tdx':_0x30717b});gracefulExit(_0x32cc58);};segmentCmd['command'](a2_0x46ebb0(0x1fd))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x3ad))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x288),a2_0x46ebb0(0x117))[a2_0x46ebb0(0x209)](segmentViewAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2e4),{'hidden':!![]})['alias'](a2_0x46ebb0(0x2ec))[a2_0x46ebb0(0x25e)]('-w,\x20--web',a2_0x46ebb0(0x117))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1cd))[a2_0x46ebb0(0x209)](segmentViewAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x32f))['description'](a2_0x46ebb0(0x39a))[a2_0x46ebb0(0x209)](async(_0x26cd7a,_0x8f1f55)=>{const _0x5099a6=a2_0x46ebb0,_0x182e19=new SegmentDescCommand(),_0x4f12c1=program['opts'](),_0x162a2f=await createTDXInstance(_0x4f12c1),_0x490b2e=await _0x182e19[_0x5099a6(0x13f)]({'options':{..._0x4f12c1,..._0x8f1f55},'args':_0x26cd7a?[_0x26cd7a]:[],'tdx':_0x162a2f});gracefulExit(_0x490b2e);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x37c))['description']('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x46ebb0(0x209)](async(_0x5998d2,_0x1c081f)=>{const _0x4c371f=a2_0x46ebb0,_0x241f28=new SegmentShowCommand(),_0x163a92=program[_0x4c371f(0x224)](),_0x221a74=await createTDXInstance(_0x163a92),_0x558066=await _0x241f28['run']({'options':{..._0x163a92,..._0x1c081f},'args':_0x5998d2?[_0x5998d2]:[],'tdx':_0x221a74});gracefulExit(_0x558066);}),segmentCmd['command'](a2_0x46ebb0(0x337),{'hidden':!![]})[a2_0x46ebb0(0x218)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x831ba4,_0x23f996)=>{const _0x5d8033=a2_0x46ebb0,_0x3dbd84=new SegmentFolderListCommand(),_0x4b87bb=program[_0x5d8033(0x224)](),_0x10c674=await createTDXInstance(_0x4b87bb),_0x39fbe6=await _0x3dbd84[_0x5d8033(0x13f)]({'options':{..._0x4b87bb,..._0x23f996},'args':[_0x831ba4],'tdx':_0x10c674});gracefulExit(_0x39fbe6);});const folderCmd=segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x18f),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2de));folderCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x366))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x297))[a2_0x46ebb0(0x209)](async(_0x58b53c,_0xd957a4)=>{const _0x1ada38=a2_0x46ebb0,_0x3974f5=new SegmentFolderShowCommand(),_0x3e6d71=program[_0x1ada38(0x224)](),_0x54e9fa=await createTDXInstance(_0x3e6d71),_0x3b718d=await _0x3974f5[_0x1ada38(0x13f)]({'options':{..._0x3e6d71,..._0xd957a4},'args':[_0x58b53c],'tdx':_0x54e9fa});gracefulExit(_0x3b718d);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x120))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x21f))[a2_0x46ebb0(0x209)](async(_0x506352,_0x571978)=>{const _0x19e888=a2_0x46ebb0,_0x3a2b9d=new SegmentSQLCommand(),_0x32ceb6=program['opts'](),_0xc9bdb2=await createTDXInstance(_0x32ceb6),_0x2cb51c=await _0x3a2b9d[_0x19e888(0x13f)]({'options':{..._0x32ceb6,..._0x571978},'args':_0x506352?[_0x506352]:[],'tdx':_0xc9bdb2});gracefulExit(_0x2cb51c);}),segmentCmd['command']('fields\x20[parent_name]')['description'](a2_0x46ebb0(0x110))['action'](async(_0x31a44c,_0x1eda1e)=>{const _0x136a96=a2_0x46ebb0,_0x5215eb=new SegmentFieldsCommand(),_0xc59778=program[_0x136a96(0x224)](),_0x122c98=await createTDXInstance(_0xc59778),_0x5ccc97=await _0x5215eb[_0x136a96(0x13f)]({'options':{..._0xc59778,..._0x1eda1e},'args':_0x31a44c?[_0x31a44c]:[],'tdx':_0x122c98});gracefulExit(_0x5ccc97);}),segmentCmd['command'](a2_0x46ebb0(0x265))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x26a))['option'](a2_0x46ebb0(0x285),a2_0x46ebb0(0x29c))[a2_0x46ebb0(0x209)](async(_0x438a02,_0x3ee83d)=>{const _0x44b2e2=a2_0x46ebb0,_0x978603=new SegmentPullCommand(),_0x2a991f=program[_0x44b2e2(0x224)](),_0x432411=await createTDXInstance(_0x2a991f),_0x1726d2=await _0x978603[_0x44b2e2(0x13f)]({'options':{..._0x2a991f,..._0x3ee83d},'args':_0x438a02?[_0x438a02]:[],'tdx':_0x432411});gracefulExit(_0x1726d2);}),segmentCmd[a2_0x46ebb0(0x1b4)]('push\x20[parent_or_file]')[a2_0x46ebb0(0x218)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x347),a2_0x46ebb0(0x24e))['action'](async(_0xaba13e,_0x44093b)=>{const _0x39d68a=a2_0x46ebb0,_0x43a723=new SegmentPushCommand(),_0x55b4f4=program[_0x39d68a(0x224)](),_0x4b4908=await createTDXInstance(_0x55b4f4),_0x46b22a=await _0x43a723[_0x39d68a(0x13f)]({'options':{..._0x55b4f4,..._0x44093b},'args':_0xaba13e?[_0xaba13e]:[],'tdx':_0x4b4908});gracefulExit(_0x46b22a);}),segmentCmd['command'](a2_0x46ebb0(0x139))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x309))[a2_0x46ebb0(0x209)](async(_0x579b13,_0x371a34)=>{const _0x2c642c=a2_0x46ebb0,_0x2ac83b=new SegmentValidateCommand(),_0x38555c=program[_0x2c642c(0x224)](),_0x25d9f1=await createTDXInstance(_0x38555c),_0x5d19b1=await _0x2ac83b[_0x2c642c(0x13f)]({'options':{..._0x38555c,..._0x371a34},'args':_0x579b13?[_0x579b13]:[],'tdx':_0x25d9f1});gracefulExit(_0x5d19b1);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c8),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2af))['option']('--description\x20<text>',a2_0x46ebb0(0x188))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x29a),a2_0x46ebb0(0x199))['option'](a2_0x46ebb0(0x363),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a6),a2_0x46ebb0(0x12a))[a2_0x46ebb0(0x25e)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x364),a2_0x46ebb0(0x1a9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x149),a2_0x46ebb0(0x134))[a2_0x46ebb0(0x209)](async(_0x52117c,_0x3520c4)=>{const _0x2fd71c=a2_0x46ebb0,_0x577e65=new SegmentCreateCommand(),_0x37bb1e=program[_0x2fd71c(0x224)](),_0x2b6701=await createTDXInstance(_0x37bb1e),_0x447d22=await _0x577e65[_0x2fd71c(0x13f)]({'options':{..._0x37bb1e,..._0x3520c4},'args':[_0x52117c],'tdx':_0x2b6701});gracefulExit(_0x447d22);}),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x336),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x296))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1a6),'New\x20segment\x20name')['option'](a2_0x46ebb0(0x287),'Updated\x20description')['option'](a2_0x46ebb0(0x29a),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x46ebb0(0x25e)]('--rule-file\x20<file>',a2_0x46ebb0(0x215))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a6),a2_0x46ebb0(0x291))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x343),a2_0x46ebb0(0x256))[a2_0x46ebb0(0x209)](async(_0x1ca87c,_0x17d38e)=>{const _0x5da22c=a2_0x46ebb0,_0x23e85a=new SegmentUpdateCommand(),_0x4203b4=program[_0x5da22c(0x224)](),_0x2ef4b7=await createTDXInstance(_0x4203b4),_0x35d725=await _0x23e85a[_0x5da22c(0x13f)]({'options':{..._0x4203b4,..._0x17d38e},'args':[_0x1ca87c],'tdx':_0x2ef4b7});gracefulExit(_0x35d725);});const parentCmd=segmentCmd[a2_0x46ebb0(0x1b4)]('parent',{'hidden':!![]})['description']('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x3bc1bf,_0x4d0846)=>{const _0x34b6b6=a2_0x46ebb0,_0x211669=new ParentSegmentListCommand(),_0x5682c2=program[_0x34b6b6(0x224)](),_0x599b70=await createTDXInstance(_0x5682c2),_0x23598d=await _0x211669[_0x34b6b6(0x13f)]({'options':{..._0x5682c2,..._0x4d0846},'args':_0x3bc1bf?[_0x3bc1bf]:[],'tdx':_0x599b70});gracefulExit(_0x23598d);};parentCmd['command'](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x203))[a2_0x46ebb0(0x209)](parentListAction),segmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x239),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1fb))[a2_0x46ebb0(0x209)](parentListAction),parentCmd['command'](a2_0x46ebb0(0x1da))[a2_0x46ebb0(0x218)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x217))['action'](async(_0x1b0103,_0x242827)=>{const _0x5b606b=a2_0x46ebb0,_0x23518d=new ParentSegmentPullCommand(),_0x5d1b25=program[_0x5b606b(0x224)](),_0x420f4e=await createTDXInstance(_0x5d1b25),_0x2beebf=await _0x23518d[_0x5b606b(0x13f)]({'options':{..._0x5d1b25,..._0x242827},'args':_0x1b0103?[_0x1b0103]:[],'tdx':_0x420f4e});gracefulExit(_0x2beebf);}),parentCmd[a2_0x46ebb0(0x1b4)]('push\x20[file]')[a2_0x46ebb0(0x218)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x46ebb0(0x209)](async(_0x448506,_0x2a9545)=>{const _0x3c65f1=new ParentSegmentPushCommand(),_0x2a3c07=program['opts'](),_0x2ed714=await createTDXInstance(_0x2a3c07),_0x32f45d=await _0x3c65f1['run']({'options':{..._0x2a3c07,..._0x2a9545},'args':_0x448506?[_0x448506]:[],'tdx':_0x2ed714});gracefulExit(_0x32f45d);}),parentCmd['command'](a2_0x46ebb0(0x162))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x279))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x222),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x46ebb0(0x3a8),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x255))[a2_0x46ebb0(0x25e)]('--interval\x20<range>',a2_0x46ebb0(0x11a),a2_0x46ebb0(0x137))[a2_0x46ebb0(0x209)](async(_0x29932,_0x152751)=>{const _0x507339=a2_0x46ebb0,_0x105ec6=new ParentSegmentValidateCommand(),_0x15e047=program[_0x507339(0x224)](),_0x34e5d7=await createTDXInstance(_0x15e047),_0x15f63e=await _0x105ec6[_0x507339(0x13f)]({'options':{..._0x15e047,..._0x152751},'args':_0x29932?[_0x29932]:[],'tdx':_0x34e5d7});gracefulExit(_0x15f63e);}),parentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x153))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x322))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x222),a2_0x46ebb0(0x183))[a2_0x46ebb0(0x25e)]('--attribute\x20[name]',a2_0x46ebb0(0x138))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x290),a2_0x46ebb0(0x35b))[a2_0x46ebb0(0x25e)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x46ebb0(0x3b0),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x46ebb0(0x137))['action'](async(_0x4e3c17,_0x46b108)=>{const _0x4bcbfd=a2_0x46ebb0,_0x41bb36=new ParentSegmentPreviewCommand(),_0x12c592=program[_0x4bcbfd(0x224)](),_0x49e49c=await createTDXInstance(_0x12c592),_0x1dc0d3=await _0x41bb36['run']({'options':{..._0x12c592,..._0x46b108},'args':_0x4e3c17?[_0x4e3c17]:[],'tdx':_0x49e49c});gracefulExit(_0x1dc0d3);}),parentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x177))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x388))['action'](async(_0x363b02,_0x1ba4e4)=>{const _0x305039=a2_0x46ebb0,_0x4ad715=new ParentSegmentRunCommand(),_0x213bbc=program[_0x305039(0x224)](),_0x19847c=await createTDXInstance(_0x213bbc),_0xf9cdfa=await _0x4ad715['run']({'options':{..._0x213bbc,..._0x1ba4e4},'args':_0x363b02?[_0x363b02]:[],'tdx':_0x19847c});gracefulExit(_0xf9cdfa);});const parentSegmentCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b6))[a2_0x46ebb0(0x1c8)]('ps')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x37d));parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x203))[a2_0x46ebb0(0x209)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x27f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x216))['option'](a2_0x46ebb0(0x213),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x46ebb0(0x209)](async(_0x4750eb,_0x3d1500)=>{const _0x11cd38=a2_0x46ebb0,_0x5dd32b=new ParentSegmentPullCommand(),_0x52b9a2=program[_0x11cd38(0x224)](),_0x1b0860=await createTDXInstance(_0x52b9a2),_0x46f8c4=await _0x5dd32b[_0x11cd38(0x13f)]({'options':{..._0x52b9a2,..._0x3d1500},'args':_0x4750eb?[_0x4750eb]:[],'tdx':_0x1b0860});gracefulExit(_0x46f8c4);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)]('push\x20[name]')[a2_0x46ebb0(0x218)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x446cf7,_0x739902)=>{const _0x47ef0c=a2_0x46ebb0,_0x4e48fb=new ParentSegmentPushCommand(),_0x475f9c=program[_0x47ef0c(0x224)](),_0x1d00eb=await createTDXInstance(_0x475f9c),_0x3ecff9=await _0x4e48fb[_0x47ef0c(0x13f)]({'options':{..._0x475f9c,..._0x739902},'args':_0x446cf7?[_0x446cf7]:[],'tdx':_0x1d00eb});gracefulExit(_0x3ecff9);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x279))['option'](a2_0x46ebb0(0x222),a2_0x46ebb0(0x2c5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a8),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x46ebb0(0x290),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x255))[a2_0x46ebb0(0x25e)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x46ebb0(0x137))['action'](async(_0x238386,_0x5a582c)=>{const _0x4904a8=a2_0x46ebb0,_0x1ef9bb=new ParentSegmentValidateCommand(),_0x3e95ea=program['opts'](),_0x150922=await createTDXInstance(_0x3e95ea),_0x3ef331=await _0x1ef9bb[_0x4904a8(0x13f)]({'options':{..._0x3e95ea,..._0x5a582c},'args':_0x238386?[_0x238386]:[],'tdx':_0x150922});gracefulExit(_0x3ef331);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x206))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x322))['option'](a2_0x46ebb0(0x222),a2_0x46ebb0(0x183))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a8),a2_0x46ebb0(0x138))[a2_0x46ebb0(0x25e)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x325),a2_0x46ebb0(0x392))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3b0),a2_0x46ebb0(0x11a),a2_0x46ebb0(0x137))[a2_0x46ebb0(0x209)](async(_0x4a3963,_0x4e0293)=>{const _0x1572a0=a2_0x46ebb0,_0x508df2=new ParentSegmentPreviewCommand(),_0x2699d9=program[_0x1572a0(0x224)](),_0x3b85e5=await createTDXInstance(_0x2699d9),_0x2935a7=await _0x508df2[_0x1572a0(0x13f)]({'options':{..._0x2699d9,..._0x4e0293},'args':_0x4a3963?[_0x4a3963]:[],'tdx':_0x3b85e5});gracefulExit(_0x2935a7);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x177))[a2_0x46ebb0(0x218)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['action'](async(_0x57a2c1,_0xef1e6b)=>{const _0x46c237=a2_0x46ebb0,_0x3204c0=new ParentSegmentRunCommand(),_0x500ad0=program[_0x46c237(0x224)](),_0x414d98=await createTDXInstance(_0x500ad0),_0x5abfb7=await _0x3204c0[_0x46c237(0x13f)]({'options':{..._0x500ad0,..._0xef1e6b},'args':_0x57a2c1?[_0x57a2c1]:[],'tdx':_0x414d98});gracefulExit(_0x5abfb7);}),parentSegmentCmd['command'](a2_0x46ebb0(0x2bf))['description'](a2_0x46ebb0(0x233))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x592b56,_0x13f1fe)=>{const _0x239ed2=a2_0x46ebb0,_0xa10196=new ParentSegmentFieldsCommand(),_0xbb9d8=program[_0x239ed2(0x224)](),_0x4ea19e=await createTDXInstance(_0xbb9d8),_0x419a11=await _0xa10196[_0x239ed2(0x13f)]({'options':{..._0xbb9d8,..._0x13f1fe},'args':_0x592b56?[_0x592b56]:[],'tdx':_0x4ea19e});gracefulExit(_0x419a11);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x349))[a2_0x46ebb0(0x218)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),'Output\x20as\x20JSON')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),'Output\x20as\x20JSON\x20Lines')[a2_0x46ebb0(0x209)](async(_0xbd9ec0,_0xc1ef12)=>{const _0x289363=a2_0x46ebb0,_0x22fb63=new ParentSegmentViewCommand(),_0x587d17=program[_0x289363(0x224)](),_0x440dcf=await createTDXInstance(_0x587d17),_0x4d930e=await _0x22fb63[_0x289363(0x13f)]({'options':{..._0x587d17,..._0xc1ef12},'args':_0xbd9ec0?[_0xbd9ec0]:[],'tdx':_0x440dcf});gracefulExit(_0x4d930e);}),parentSegmentCmd['command'](a2_0x46ebb0(0x29f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x14c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19d),a2_0x46ebb0(0x216))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34d),a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)]('--jsonl',a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x25ed0a,_0x58bfe9)=>{const _0x1fbb5e=a2_0x46ebb0,_0x353ee9=new ParentSegmentDescCommand(),_0x17692c=program['opts'](),_0xb34eba=await createTDXInstance(_0x17692c),_0x5a58c3=await _0x353ee9[_0x1fbb5e(0x13f)]({'options':{..._0x17692c,..._0x58bfe9},'args':_0x25ed0a?[_0x25ed0a]:[],'tdx':_0xb34eba});gracefulExit(_0x5a58c3);}),parentSegmentCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1ce))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x3ae))[a2_0x46ebb0(0x25e)]('--json','Output\x20as\x20JSON')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0x3d9b73,_0x95a6ad)=>{const _0x149740=a2_0x46ebb0,_0x4ea767=new ParentSegmentSQLCommand(),_0x5b8f36=program[_0x149740(0x224)](),_0x15bbc4=await createTDXInstance(_0x5b8f36),_0x20516b=await _0x4ea767['run']({'options':{..._0x5b8f36,..._0x95a6ad},'args':_0x3d9b73?[_0x3d9b73]:[],'tdx':_0x15bbc4});gracefulExit(_0x20516b);}),parentSegmentCmd['command'](a2_0x46ebb0(0x38a))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x28b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x140),a2_0x46ebb0(0x238))[a2_0x46ebb0(0x25e)]('--json',a2_0x46ebb0(0x2d3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x250),a2_0x46ebb0(0x129))[a2_0x46ebb0(0x209)](async(_0xdef516,_0x1f62cb)=>{const _0x1c9ea8=a2_0x46ebb0,_0x1347bc=new ParentSegmentShowCommand(),_0x229e9c=program[_0x1c9ea8(0x224)](),_0x4e484c=await createTDXInstance(_0x229e9c),_0x3d249a=await _0x1347bc['run']({'options':{..._0x229e9c,..._0x1f62cb},'args':_0xdef516?[_0xdef516]:[],'tdx':_0x4e484c});gracefulExit(_0x3d249a);}),parentSegmentCmd['command'](a2_0x46ebb0(0x28c))['description']('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x4b1d74,_0x8c8102)=>{const _0x47437f=a2_0x46ebb0,_0x1da661=new UseCommand(),_0x4ec933=program['opts'](),_0x1d67e8=_0x4b1d74?['parent_segment',_0x4b1d74]:[],_0x442a31=await _0x1da661[_0x47437f(0x13f)]({'options':{..._0x4ec933,..._0x8c8102},'args':_0x1d67e8,'tdx':null});gracefulExit(_0x442a31);});const psRtCmd=parentSegmentCmd[a2_0x46ebb0(0x1b4)]('rt')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10f));psRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x46ebb0(0x209)](async(_0x56a0b7,_0x3914c8)=>{const _0x244a6c=a2_0x46ebb0,_0x3f9db1=new PSRtListCommand(),_0x502706=program[_0x244a6c(0x224)](),_0x150272=await createTDXInstance(_0x502706),_0x262c35=await _0x3f9db1['run']({'options':{..._0x502706,..._0x3914c8},'args':_0x56a0b7?[_0x56a0b7]:[],'tdx':_0x150272});gracefulExit(_0x262c35);}),psRtCmd['command'](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x15a))['action'](async(_0x1f1b8d,_0x4959fc)=>{const _0x2630a8=a2_0x46ebb0,_0x3703d1=new PSRtValidateCommand(),_0xf1992b=program[_0x2630a8(0x224)](),_0x4c37ad=await createTDXInstance(_0xf1992b),_0x451a8b=await _0x3703d1[_0x2630a8(0x13f)]({'options':{..._0xf1992b,..._0x4959fc},'args':_0x1f1b8d?[_0x1f1b8d]:[],'tdx':_0x4c37ad});gracefulExit(_0x451a8b);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x10f));parentRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))['description'](a2_0x46ebb0(0x100))[a2_0x46ebb0(0x209)](async(_0xf857d8,_0x153c29)=>{const _0x1aa401=a2_0x46ebb0,_0x5326d8=new PSRtListCommand(),_0x3a15f3=program['opts'](),_0xaf79f3=await createTDXInstance(_0x3a15f3),_0x1e7ade=await _0x5326d8[_0x1aa401(0x13f)]({'options':{..._0x3a15f3,..._0x153c29},'args':_0xf857d8?[_0xf857d8]:[],'tdx':_0xaf79f3});gracefulExit(_0x1e7ade);}),parentRtCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x268))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x15a))[a2_0x46ebb0(0x209)](async(_0x448240,_0x47b2e6)=>{const _0x13ac67=a2_0x46ebb0,_0x5bc392=new PSRtValidateCommand(),_0x279407=program[_0x13ac67(0x224)](),_0x44c5f2=await createTDXInstance(_0x279407),_0x49810c=await _0x5bc392[_0x13ac67(0x13f)]({'options':{..._0x279407,..._0x47b2e6},'args':_0x448240?[_0x448240]:[],'tdx':_0x44c5f2});gracefulExit(_0x49810c);});const psPzCmd=parentSegmentCmd['command']('pz')['description'](a2_0x46ebb0(0x1e1));psPzCmd[a2_0x46ebb0(0x1b4)]('list\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x191))['action'](async(_0x2a1ff8,_0x64ce51)=>{const _0x2f85a6=a2_0x46ebb0,_0xc35ea8=new PSPzListCommand(),_0x559741=program[_0x2f85a6(0x224)](),_0x2e9e18=await createTDXInstance(_0x559741),_0x135e44=await _0xc35ea8[_0x2f85a6(0x13f)]({'options':{..._0x559741,..._0x64ce51},'args':_0x2a1ff8?[_0x2a1ff8]:[],'tdx':_0x2e9e18});gracefulExit(_0x135e44);}),psPzCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x344))[a2_0x46ebb0(0x218)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x2bcb2d,_0x4d0429)=>{const _0x3cb85b=a2_0x46ebb0,_0x41b236=new PSPzInitCommand(),_0x155612=program['opts'](),_0x44bf82=await createTDXInstance(_0x155612),_0x21c4ba=await _0x41b236[_0x3cb85b(0x13f)]({'options':{..._0x155612,..._0x4d0429},'args':_0x2bcb2d?[_0x2bcb2d]:[],'tdx':_0x44bf82});gracefulExit(_0x21c4ba);});const parentPzCmd=parentCmd[a2_0x46ebb0(0x1b4)]('pz',{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1e1));parentPzCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x305))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x191))[a2_0x46ebb0(0x209)](async(_0x323981,_0x1b4cfb)=>{const _0x3da0d1=a2_0x46ebb0,_0x1e2171=new PSPzListCommand(),_0x6ad49e=program[_0x3da0d1(0x224)](),_0x4288eb=await createTDXInstance(_0x6ad49e),_0x5c514f=await _0x1e2171['run']({'options':{..._0x6ad49e,..._0x1b4cfb},'args':_0x323981?[_0x323981]:[],'tdx':_0x4288eb});gracefulExit(_0x5c514f);}),parentPzCmd[a2_0x46ebb0(0x1b4)]('init\x20[name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x38d))[a2_0x46ebb0(0x209)](async(_0x6984c6,_0x22c40b)=>{const _0xab7b64=a2_0x46ebb0,_0x595dc6=new PSPzInitCommand(),_0x2c5781=program[_0xab7b64(0x224)](),_0x40e26e=await createTDXInstance(_0x2c5781),_0x316287=await _0x595dc6[_0xab7b64(0x13f)]({'options':{..._0x2c5781,..._0x22c40b},'args':_0x6984c6?[_0x6984c6]:[],'tdx':_0x40e26e});gracefulExit(_0x316287);}),parentCmd['command'](a2_0x46ebb0(0x378))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x247))['requiredOption'](a2_0x46ebb0(0xfd),'Master\x20database\x20name')[a2_0x46ebb0(0x1ef)]('--table\x20<table>',a2_0x46ebb0(0x1ee))[a2_0x46ebb0(0x25e)]('--description\x20<text>',a2_0x46ebb0(0x1e3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x371),a2_0x46ebb0(0x29d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16b),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x2be))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1ba),a2_0x46ebb0(0x27c))['option'](a2_0x46ebb0(0x103),a2_0x46ebb0(0x26f))['option'](a2_0x46ebb0(0x346),a2_0x46ebb0(0x226))['option'](a2_0x46ebb0(0x3ab),a2_0x46ebb0(0x112))[a2_0x46ebb0(0x25e)]('--customer-group\x20<json>',a2_0x46ebb0(0x111))['option'](a2_0x46ebb0(0x18b),a2_0x46ebb0(0x1d0))[a2_0x46ebb0(0x209)](async(_0x4e4a39,_0x3f9368)=>{const _0x46a57b=a2_0x46ebb0,_0x5d8342=new ParentSegmentCreateCommand(),_0x3d799b=program[_0x46a57b(0x224)](),_0x8a6eaa=await createTDXInstance(_0x3d799b),_0x4b8a6e=await _0x5d8342[_0x46a57b(0x13f)]({'options':{..._0x3d799b,..._0x3f9368},'args':[_0x4e4a39],'tdx':_0x8a6eaa});gracefulExit(_0x4b8a6e);}),parentCmd['command']('update\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1e4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),a2_0x46ebb0(0x10e))['option'](a2_0x46ebb0(0x371),a2_0x46ebb0(0x1a0))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16b),'Updated\x20schedule\x20option')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x1f0))['option'](a2_0x46ebb0(0x23d),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x46ebb0(0x382),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x19b),a2_0x46ebb0(0x2c9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x161),a2_0x46ebb0(0x36b))['action'](async(_0x17351f,_0x569480)=>{const _0xf17516=a2_0x46ebb0,_0x1dd7ea=new ParentSegmentUpdateCommand(),_0x4df750=program['opts'](),_0xb1d695=await createTDXInstance(_0x4df750),_0x375e4d=await _0x1dd7ea[_0xf17516(0x13f)]({'options':{..._0x4df750,..._0x569480},'args':[_0x17351f],'tdx':_0xb1d695});gracefulExit(_0x375e4d);}),folderCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x15c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x174))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),'Folder\x20description')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x119),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x46ebb0(0x209)](async(_0x5d9b68,_0x2fbd6a,_0x4f40f6)=>{const _0x5dbe01=a2_0x46ebb0,_0x17cadc=new SegmentFolderCreateCommand(),_0x155c60=program['opts'](),_0x45744b=await createTDXInstance(_0x155c60),_0x41abba=await _0x17cadc[_0x5dbe01(0x13f)]({'options':{..._0x155c60,..._0x4f40f6},'args':[_0x5d9b68,_0x2fbd6a],'tdx':_0x45744b});gracefulExit(_0x41abba);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x21b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x266))[a2_0x46ebb0(0x209)](async(_0x5ad967,_0x1efcb4)=>{const _0x1bd04b=a2_0x46ebb0,_0x243cf1=new ActivationsCommand(),_0x4fa963=program['opts'](),_0xe0f271=await createTDXInstance(_0x4fa963),_0xd82fc1=await _0x243cf1[_0x1bd04b(0x13f)]({'options':{..._0x4fa963,..._0x1efcb4},'args':[_0x5ad967],'tdx':_0xe0f271});gracefulExit(_0xd82fc1);});const workflowCmd=program['command'](a2_0x46ebb0(0x319))['alias']('wf')['description'](a2_0x46ebb0(0x2d1)),wfProjectCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x303))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x381)),wfProjectListAction=async(_0x44dad2,_0x33ddcc)=>{const _0xe0e33f=new WorkflowProjectsCommand(),_0x475c4a=program['opts'](),_0x1a7fd8=await createTDXInstance(_0x475c4a),_0x2d7663=await _0xe0e33f['run']({'options':{..._0x475c4a,..._0x33ddcc},'args':_0x44dad2?[_0x44dad2]:[],'tdx':_0x1a7fd8});gracefulExit(_0x2d7663);};wfProjectCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')['description'](a2_0x46ebb0(0x21d))[a2_0x46ebb0(0x209)](wfProjectListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x234))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x151))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x287a03,_0x6cd28a)=>{const _0x56dcbe=a2_0x46ebb0,_0x3ddf63=new WorkflowWorkflowsCommand(),_0x5eb155=program[_0x56dcbe(0x224)](),_0x4a3613=await createTDXInstance(_0x5eb155),_0x2a8e2d=await _0x3ddf63[_0x56dcbe(0x13f)]({'options':{..._0x5eb155,..._0x6cd28a},'args':_0x287a03?[_0x287a03]:[],'tdx':_0x4a3613});gracefulExit(_0x2a8e2d);};function a2_0x17f4(_0x2c401a,_0x13c95e){_0x2c401a=_0x2c401a-0xfc;const _0x4dc11a=a2_0x4dc1();let _0x17f405=_0x4dc11a[_0x2c401a];return _0x17f405;}workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x28e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x18e))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x383))['description'](a2_0x46ebb0(0x36a)),wfSessionListAction=async(_0x3e5822,_0x50818d)=>{const _0x2f713d=a2_0x46ebb0,_0x399a7e=new WorkflowSessionsCommand(),_0x1f4f59=program[_0x2f713d(0x224)](),_0x565bfc=await createTDXInstance(_0x1f4f59),_0x2a9917=await _0x399a7e[_0x2f713d(0x13f)]({'options':{..._0x1f4f59,..._0x50818d},'args':_0x3e5822?[_0x3e5822]:[],'tdx':_0x565bfc});gracefulExit(_0x2a9917);};wfSessionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x28a))[a2_0x46ebb0(0x25e)]('--status\x20<status>',a2_0x46ebb0(0x334))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x399),a2_0x46ebb0(0x24f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x237),a2_0x46ebb0(0x2ea))[a2_0x46ebb0(0x209)](wfSessionListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x310))[a2_0x46ebb0(0x218)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option']('--status\x20<status>',a2_0x46ebb0(0x334))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x399),a2_0x46ebb0(0x24f))[a2_0x46ebb0(0x25e)]('--to\x20<timestamp>',a2_0x46ebb0(0x2ea))[a2_0x46ebb0(0x209)](wfSessionListAction);const wfAttemptListAction=async(_0x3c2afa,_0x56517c)=>{const _0x3fa129=a2_0x46ebb0,_0x11a410=new WorkflowAttemptsCommand(),_0x2e45d9=program[_0x3fa129(0x224)](),_0x379e0f=await createTDXInstance(_0x2e45d9),_0x90440a=await _0x11a410[_0x3fa129(0x13f)]({'options':{..._0x2e45d9,..._0x56517c},'args':_0x3c2afa?[_0x3c2afa]:[],'tdx':_0x379e0f});gracefulExit(_0x90440a);},attemptCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b1))['description'](a2_0x46ebb0(0x365))[a2_0x46ebb0(0x13b)]('[attempt-id]',a2_0x46ebb0(0x253))[a2_0x46ebb0(0x13b)](a2_0x46ebb0(0x29b),a2_0x46ebb0(0x1d5))['argument'](a2_0x46ebb0(0x1c6),a2_0x46ebb0(0x261))[a2_0x46ebb0(0x25e)]('--include-subtasks',a2_0x46ebb0(0x1e5))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1d8),a2_0x46ebb0(0x2e8))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x25f),a2_0x46ebb0(0x2ba))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e3),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x46ebb0(0x25e)]('--force',a2_0x46ebb0(0x2fa))['option'](a2_0x46ebb0(0x229),a2_0x46ebb0(0x152))['action'](async(_0x44015c,_0x54b8ea,_0x2894ba,_0x33be6e)=>{const _0x26a88f=a2_0x46ebb0;if(_0x44015c===_0x26a88f(0x306)){await wfAttemptListAction(_0x54b8ea,_0x33be6e);return;}if(!_0x44015c){attemptCmd[_0x26a88f(0x39d)]();return;}const _0x3155c1=program[_0x26a88f(0x224)](),_0x40aa89=await createTDXInstance(_0x3155c1);let _0x3dffea=0x0;if(!_0x54b8ea){const _0x5016a8=new WorkflowAttemptCommand();_0x3dffea=await _0x5016a8[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea==='logs'){const _0x435562=new WorkflowLogsCommand();_0x3dffea=await _0x435562[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':_0x2894ba?[_0x44015c,_0x2894ba]:[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea===_0x26a88f(0x374)){const _0x342130=new WorkflowTasksCommand();_0x3dffea=await _0x342130[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea===_0x26a88f(0x1ea)){const _0x69948a=new WorkflowKillCommand();_0x3dffea=await _0x69948a[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':[_0x44015c],'tdx':_0x40aa89});}else{if(_0x54b8ea==='retry'){const _0xee3f4f=new WorkflowRetryCommand();_0x3dffea=await _0xee3f4f[_0x26a88f(0x13f)]({'options':{..._0x3155c1,..._0x33be6e},'args':['attempt:'+_0x44015c],'tdx':_0x40aa89});}else console[_0x26a88f(0x201)]('Unknown\x20action:\x20'+_0x54b8ea),console[_0x26a88f(0x201)](_0x26a88f(0x33e)),_0x3dffea=0x1;}}}}gracefulExit(_0x3dffea);});attemptCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x154))['option'](a2_0x46ebb0(0x229),a2_0x46ebb0(0x10d))[a2_0x46ebb0(0x209)](wfAttemptListAction),workflowCmd[a2_0x46ebb0(0x1b4)]('attempts\x20[project]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x14e))[a2_0x46ebb0(0x25e)]('--include-retried',a2_0x46ebb0(0x10d))[a2_0x46ebb0(0x209)](wfAttemptListAction),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x32d))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x33a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x269),a2_0x46ebb0(0x1a5))[a2_0x46ebb0(0x25e)]('--session-id\x20<id>',a2_0x46ebb0(0x160))['option'](a2_0x46ebb0(0x391),a2_0x46ebb0(0x328))[a2_0x46ebb0(0x209)](async(_0x50b55f,_0x4a6124)=>{const _0x4ff198=a2_0x46ebb0,_0x6a3d23=new WorkflowTimelineCommand(),_0x4ecdb0=program[_0x4ff198(0x224)](),_0x490e7d=await createTDXInstance(_0x4ecdb0),_0xd43ad1=await _0x6a3d23[_0x4ff198(0x13f)]({'options':{..._0x4ecdb0,..._0x4a6124},'args':_0x50b55f?[_0x50b55f]:[],'tdx':_0x490e7d});gracefulExit(_0xd43ad1);}),workflowCmd['command'](a2_0x46ebb0(0x123))['description'](a2_0x46ebb0(0x387))[a2_0x46ebb0(0x25e)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2e3),a2_0x46ebb0(0x190))[a2_0x46ebb0(0x209)](async(_0x62c7ca,_0x5c018d)=>{const _0x4d62d9=new WorkflowRetryCommand(),_0x25351e=program['opts'](),_0x50731a=await createTDXInstance(_0x25351e),_0x5493e9=await _0x4d62d9['run']({'options':{..._0x25351e,..._0x5c018d},'args':[_0x62c7ca],'tdx':_0x50731a});gracefulExit(_0x5493e9);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2f6))[a2_0x46ebb0(0x218)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x34b),'Workflow\x20parameter\x20(repeatable)',(_0x1e542b,_0x3ecb49=[])=>[..._0x3ecb49,_0x1e542b],[])[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1a3),a2_0x46ebb0(0x172))[a2_0x46ebb0(0x209)](async(_0x8c875e,_0x24241d)=>{const _0x4a8ea8=a2_0x46ebb0,_0x396136=new WorkflowRunCommand(),_0x1359d7=program['opts'](),_0x55799a=await createTDXInstance(_0x1359d7),_0x5b41a7=await _0x396136[_0x4a8ea8(0x13f)]({'options':{..._0x1359d7,..._0x24241d},'args':_0x8c875e?[_0x8c875e]:[],'tdx':_0x55799a});gracefulExit(_0x5b41a7);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1f3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x101))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x46ebb0(0x209)](async(_0xaec034,_0x5f0693,_0x4676e7)=>{const _0x35ca6d=a2_0x46ebb0,_0x6933c9=new WorkflowDownloadCommand(),_0xfa626b=program[_0x35ca6d(0x224)](),_0x4a400c=await createTDXInstance(_0xfa626b),_0x942d35=await _0x6933c9[_0x35ca6d(0x13f)]({'options':{..._0xfa626b,..._0x4676e7},'args':[_0xaec034,_0x5f0693||'.'],'tdx':_0x4a400c});gracefulExit(_0x942d35);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x376))['description'](a2_0x46ebb0(0x254))['option'](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x168))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x31d))[a2_0x46ebb0(0x209)](async(_0x13623e,_0x499139,_0x3319cf)=>{const _0x4eb584=a2_0x46ebb0,_0x3aa37b=new WorkflowPullCommand(),_0x37a8bf=program[_0x4eb584(0x224)](),_0x46b08a=await createTDXInstance(_0x37a8bf),_0xe59aaa=await _0x3aa37b[_0x4eb584(0x13f)]({'options':{..._0x37a8bf,..._0x3319cf},'args':_0x499139?[_0x13623e,_0x499139]:[_0x13623e],'tdx':_0x46b08a});gracefulExit(_0xe59aaa);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x34a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x2ef))['option'](a2_0x46ebb0(0x285),a2_0x46ebb0(0x245))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x133),a2_0x46ebb0(0x37b))['action'](async(_0x1b3853,_0x52a617)=>{const _0x4a4978=a2_0x46ebb0,_0x512727=new WorkflowPushCommand(),_0x552173=program[_0x4a4978(0x224)](),_0x1ab58d=await createTDXInstance(_0x552173),_0x38d9c4=await _0x512727[_0x4a4978(0x13f)]({'options':{..._0x552173,..._0x52a617},'args':_0x1b3853?[_0x1b3853]:[],'tdx':_0x1ab58d});gracefulExit(_0x38d9c4);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x299))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x34e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ca),'Override\x20project\x20name')['option'](a2_0x46ebb0(0x16f),a2_0x46ebb0(0x13d))[a2_0x46ebb0(0x25e)]('--skip-validation',a2_0x46ebb0(0x37b))[a2_0x46ebb0(0x209)](async(_0x20022c,_0x2dcec2)=>{const _0x3e569f=a2_0x46ebb0,_0x103551=new WorkflowUploadCommand(),_0x4290d7=program[_0x3e569f(0x224)](),_0x58f838=await createTDXInstance(_0x4290d7),_0x5fd9f0=await _0x103551[_0x3e569f(0x13f)]({'options':{..._0x4290d7,..._0x2dcec2},'args':_0x20022c?[_0x20022c]:[],'tdx':_0x58f838});gracefulExit(_0x5fd9f0);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2dd))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2ae))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x39e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x16f),'Custom\x20revision\x20name\x20(default:\x20timestamp)')['option']('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x46ebb0(0x25e)]('--skip-validation',a2_0x46ebb0(0x37b))[a2_0x46ebb0(0x209)](async(_0x35df7a,_0x20cd54)=>{const _0x408c60=a2_0x46ebb0,_0x764d25=new WorkflowCloneCommand(),_0x5c3ae3=program[_0x408c60(0x224)](),_0x182ebd=await createTDXInstance(_0x5c3ae3),_0x49b6c5=await _0x764d25['run']({'options':{..._0x5c3ae3,..._0x20cd54},'args':_0x35df7a?[_0x35df7a]:[],'tdx':_0x182ebd});gracefulExit(_0x49b6c5);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2d2))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x176))['action'](async(_0x2b9bd5,_0x5238b4)=>{const _0x369d5e=new WorkflowDeleteCommand(),_0x91b8cc=program['opts'](),_0x206232=await createTDXInstance(_0x91b8cc),_0x519105=await _0x369d5e['run']({'options':{..._0x91b8cc,..._0x5238b4},'args':[_0x2b9bd5],'tdx':_0x206232});gracefulExit(_0x519105);}),workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x31b))[a2_0x46ebb0(0x218)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2c0),a2_0x46ebb0(0x359))[a2_0x46ebb0(0x209)](async(_0x5cf1ef,_0x4ac99f)=>{const _0x42137d=a2_0x46ebb0,_0x21ee54=new WorkflowUseCommand(),_0x428854=program[_0x42137d(0x224)](),_0x3b1d8a=await createTDXInstance(_0x428854),_0x182c55=await _0x21ee54[_0x42137d(0x13f)]({'options':{..._0x428854,..._0x4ac99f},'args':_0x5cf1ef?[_0x5cf1ef]:[],'tdx':_0x3b1d8a});gracefulExit(_0x182c55);});const wfSecretsCmd=workflowCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3a5))['description'](a2_0x46ebb0(0x1d9));wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x294))['description'](a2_0x46ebb0(0x24d))[a2_0x46ebb0(0x209)](async(_0x299776,_0x4c432a)=>{const _0x405efc=a2_0x46ebb0,_0x41e604=new WorkflowSecretsListCommand(),_0x137f53=program['opts'](),_0x255668=await createTDXInstance(_0x137f53),_0x139a24=await _0x41e604[_0x405efc(0x13f)]({'options':{..._0x137f53,..._0x4c432a},'args':_0x299776?[_0x299776]:[],'tdx':_0x255668});gracefulExit(_0x139a24);}),wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x116))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1ad))['action'](async(_0x433942,_0x2a3553)=>{const _0x13c9c0=a2_0x46ebb0,_0x2c6ac2=new WorkflowSecretsSetCommand(),_0x218bc1=program['opts'](),_0x3061d8=await createTDXInstance(_0x218bc1),_0x3ece5b=await _0x2c6ac2[_0x13c9c0(0x13f)]({'options':{..._0x218bc1,..._0x2a3553},'args':_0x433942,'tdx':_0x3061d8});gracefulExit(_0x3ece5b);}),wfSecretsCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x286))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')['action'](async(_0x16370d,_0x33a193)=>{const _0x3339ec=a2_0x46ebb0,_0x5618cd=new WorkflowSecretsDeleteCommand(),_0x275b96=program[_0x3339ec(0x224)](),_0x31ebd1=await createTDXInstance(_0x275b96),_0x462f3e=await _0x5618cd[_0x3339ec(0x13f)]({'options':{..._0x275b96,..._0x33a193},'args':_0x16370d,'tdx':_0x31ebd1});gracefulExit(_0x462f3e);});const jobCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3af))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x31a)),jobListAction=async _0x521d53=>{const _0x1e6aaf=a2_0x46ebb0,_0x47a27e=new JobListCommand(),_0x44ebb3=program[_0x1e6aaf(0x224)](),_0x40e80b=await createTDXInstance(_0x44ebb3),_0x1f27a6=await _0x47a27e[_0x1e6aaf(0x13f)]({'options':{..._0x44ebb3,..._0x521d53},'args':[],'tdx':_0x40e80b});gracefulExit(_0x1f27a6);};jobCmd['command'](a2_0x46ebb0(0x306))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x311))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x163),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x46ebb0(0x209)](jobListAction),program['command'](a2_0x46ebb0(0x21a),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x357))['option']('--status\x20<status>',a2_0x46ebb0(0x1e6))[a2_0x46ebb0(0x209)](jobListAction),jobCmd[a2_0x46ebb0(0x1b4)]('show\x20<job-id>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0xff))['action'](async(_0x5e1186,_0x39676d)=>{const _0x4da47f=a2_0x46ebb0,_0x14dbb2=new JobShowCommand(),_0x1073c6=program[_0x4da47f(0x224)](),_0x24a6a6=await createTDXInstance(_0x1073c6),_0x2f3b69=await _0x14dbb2[_0x4da47f(0x13f)]({'options':{..._0x1073c6,..._0x39676d},'args':[_0x5e1186],'tdx':_0x24a6a6});gracefulExit(_0x2f3b69);}),jobCmd[a2_0x46ebb0(0x1b4)]('kill\x20<job-id>')['description'](a2_0x46ebb0(0x221))[a2_0x46ebb0(0x209)](async(_0x419367,_0x3964bd)=>{const _0x50d638=a2_0x46ebb0,_0x10ea9b=new JobKillCommand(),_0x473040=program[_0x50d638(0x224)](),_0x2a5b7c=await createTDXInstance(_0x473040),_0xb43029=await _0x10ea9b[_0x50d638(0x13f)]({'options':{..._0x473040,..._0x3964bd},'args':[_0x419367],'tdx':_0x2a5b7c});gracefulExit(_0xb43029);}),jobCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1ff))[a2_0x46ebb0(0x218)]('Submit\x20a\x20job')['option'](a2_0x46ebb0(0x20a),a2_0x46ebb0(0x33f),a2_0x46ebb0(0x273))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x35d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x369),a2_0x46ebb0(0x20d),'information_schema')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1aa),a2_0x46ebb0(0x35f))['action'](async(_0x446c5b,_0x30e280)=>{const _0x3f65e1=a2_0x46ebb0,_0xb627d9=new JobSubmitCommand(),_0x4981d8=program['opts'](),_0x2b470b=await createTDXInstance(_0x4981d8),_0x57566f=await _0xb627d9[_0x3f65e1(0x13f)]({'options':{..._0x4981d8,..._0x30e280},'args':_0x446c5b?[_0x446c5b]:[],'tdx':_0x2b470b});gracefulExit(_0x57566f);}),jobCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x175))[a2_0x46ebb0(0x218)]('Get\x20job\x20results')[a2_0x46ebb0(0x209)](async(_0xc9c702,_0x2096af)=>{const _0x5d565c=a2_0x46ebb0,_0x5cd50a=new JobResultCommand(),_0x3b8f38=program[_0x5d565c(0x224)](),_0x3a67b9=await createTDXInstance(_0x3b8f38),_0x1f3f0e=await _0x5cd50a['run']({'options':{..._0x3b8f38,..._0x2096af},'args':[_0xc9c702],'tdx':_0x3a67b9});gracefulExit(_0x1f3f0e);});const scheduleCmd=jobCmd['command']('schedule')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b2));scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')[a2_0x46ebb0(0x209)](async(_0x3b440b,_0x3ab363)=>{const _0x29726b=a2_0x46ebb0,_0x3a0e29=new ScheduleListCommand(),_0x4e320f=program[_0x29726b(0x224)](),_0x25cde6=await createTDXInstance(_0x4e320f),_0x236f46=await _0x3a0e29[_0x29726b(0x13f)]({'options':{..._0x4e320f,..._0x3ab363},'args':_0x3b440b?[_0x3b440b]:[],'tdx':_0x25cde6});gracefulExit(_0x236f46);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x22a))[a2_0x46ebb0(0x218)]('Show\x20schedule\x20details')[a2_0x46ebb0(0x209)](async(_0x15e045,_0x12f6db)=>{const _0x4f6f75=a2_0x46ebb0,_0x4248d4=new ScheduleShowCommand(),_0x5f7cd6=program['opts'](),_0x49d67c=await createTDXInstance(_0x5f7cd6),_0xd8bf91=await _0x4248d4[_0x4f6f75(0x13f)]({'options':{..._0x5f7cd6,..._0x12f6db},'args':[_0x15e045],'tdx':_0x49d67c});gracefulExit(_0xd8bf91);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('create\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2bb))[a2_0x46ebb0(0x25e)]('-d,\x20--database\x20<db>',a2_0x46ebb0(0x2a3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x14f),a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x379),a2_0x46ebb0(0x35d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x155),a2_0x46ebb0(0x273))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a1),a2_0x46ebb0(0x185))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),a2_0x46ebb0(0x1ae))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a8),a2_0x46ebb0(0x1f9))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x339),a2_0x46ebb0(0x20b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x121),a2_0x46ebb0(0x242))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x12c),a2_0x46ebb0(0x3a0))['option'](a2_0x46ebb0(0x292),a2_0x46ebb0(0x2fd))[a2_0x46ebb0(0x209)](async(_0x12ea3c,_0x3869f)=>{const _0x22ec24=a2_0x46ebb0,_0x3a04bf=new ScheduleCreateCommand(),_0x2c57b5=program[_0x22ec24(0x224)](),_0x1b0928=await createTDXInstance(_0x2c57b5);_0x3869f['in']&&(_0x3869f[_0x22ec24(0x31c)]=_0x3869f['in']);const _0x120f64=await _0x3a04bf['run']({'options':{..._0x2c57b5,..._0x3869f},'args':[_0x12ea3c],'tdx':_0x1b0928});gracefulExit(_0x120f64);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('update\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1fc))['option'](a2_0x46ebb0(0x1dd),a2_0x46ebb0(0x1ac))[a2_0x46ebb0(0x25e)]('--in\x20<db>',a2_0x46ebb0(0x3b1))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x379),'Read\x20query\x20from\x20file')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x155))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3a1),a2_0x46ebb0(0x185))[a2_0x46ebb0(0x25e)]('--timezone\x20<tz>','Timezone\x20for\x20cron')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a8),a2_0x46ebb0(0x1f9))['option'](a2_0x46ebb0(0x339),a2_0x46ebb0(0x20b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x121),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x12c),a2_0x46ebb0(0x3a0))[a2_0x46ebb0(0x25e)]('--result\x20<url>',a2_0x46ebb0(0x2fd))[a2_0x46ebb0(0x209)](async(_0x11c2a8,_0x3b0f1e)=>{const _0x3e5b4a=a2_0x46ebb0,_0x3b44bd=new ScheduleUpdateCommand(),_0x42647a=program[_0x3e5b4a(0x224)](),_0x4e3884=await createTDXInstance(_0x42647a);_0x3b0f1e['in']&&(_0x3b0f1e['database']=_0x3b0f1e['in']);const _0x1ff959=await _0x3b44bd['run']({'options':{..._0x42647a,..._0x3b0f1e},'args':[_0x11c2a8],'tdx':_0x4e3884});gracefulExit(_0x1ff959);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x368))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x156))[a2_0x46ebb0(0x209)](async(_0x167b43,_0x27e7f1)=>{const _0xbe50f2=a2_0x46ebb0,_0x4445ba=new ScheduleDeleteCommand(),_0x38e245=program[_0xbe50f2(0x224)](),_0x47b5ce=await createTDXInstance(_0x38e245),_0x10664c=await _0x4445ba[_0xbe50f2(0x13f)]({'options':{..._0x38e245,..._0x27e7f1},'args':[_0x167b43],'tdx':_0x47b5ce});gracefulExit(_0x10664c);}),scheduleCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x276))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c3))[a2_0x46ebb0(0x25e)]('--time\x20<iso8601>',a2_0x46ebb0(0x21c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x316),a2_0x46ebb0(0x30f))['action'](async(_0x4702b4,_0x1502a0)=>{const _0x5dd0c1=a2_0x46ebb0,_0x5ab154=new ScheduleRunCommand(),_0x2d2e4b=program[_0x5dd0c1(0x224)](),_0x794ce1=await createTDXInstance(_0x2d2e4b),_0x49ba76=await _0x5ab154[_0x5dd0c1(0x13f)]({'options':{..._0x2d2e4b,..._0x1502a0},'args':[_0x4702b4],'tdx':_0x794ce1});gracefulExit(_0x49ba76);}),scheduleCmd[a2_0x46ebb0(0x1b4)]('history\x20<name>')['description']('Show\x20schedule\x20execution\x20history')[a2_0x46ebb0(0x25e)]('--from\x20<n>',a2_0x46ebb0(0x20e))[a2_0x46ebb0(0x25e)]('--to\x20<n>',a2_0x46ebb0(0x2f5))[a2_0x46ebb0(0x209)](async(_0x3367c4,_0x58bb40)=>{const _0x5a901a=a2_0x46ebb0,_0x356c58=new ScheduleHistoryCommand(),_0x4a4631=program[_0x5a901a(0x224)](),_0xc084=await createTDXInstance(_0x4a4631),_0x43404f=await _0x356c58[_0x5a901a(0x13f)]({'options':{..._0x4a4631,..._0x58bb40},'args':[_0x3367c4],'tdx':_0xc084});gracefulExit(_0x43404f);});const llmCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x348))[a2_0x46ebb0(0x218)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x46ebb0(0x30a))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x394))[a2_0x46ebb0(0x209)](async(_0x20b7bc,_0x36a300)=>{const _0x5d8a19=a2_0x46ebb0,_0x20fe68=new LLMUseCommand(),_0x49337c=program[_0x5d8a19(0x224)](),_0x34dcb3=await createTDXInstance(_0x49337c),_0x7b2758=await _0x20fe68[_0x5d8a19(0x13f)]({'options':{..._0x49337c,..._0x36a300},'args':[_0x20b7bc],'tdx':_0x34dcb3});gracefulExit(_0x7b2758);}),llmCmd['command'](a2_0x46ebb0(0x270))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2a1))[a2_0x46ebb0(0x209)](async _0x402e25=>{const _0x2d77d9=a2_0x46ebb0,_0x5153dc=new LLMModelsCommand(),_0x5675b3=program['opts'](),_0x2f17ef=await createTDXInstance(_0x5675b3),_0xb6e427=await _0x5153dc[_0x2d77d9(0x13f)]({'options':{..._0x5675b3,..._0x402e25},'args':[],'tdx':_0x2f17ef});gracefulExit(_0xb6e427);});const projectCmd=llmCmd['command'](a2_0x46ebb0(0x303))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2bd)),llmProjectListAction=async(_0x22427b,_0x463178)=>{const _0x5ec423=a2_0x46ebb0,_0x2e1366=new LLMProjectsCommand(),_0xe78885=program[_0x5ec423(0x224)](),_0x465d25=await createTDXInstance(_0xe78885),_0x2ec9ee=await _0x2e1366[_0x5ec423(0x13f)]({'options':{..._0xe78885,..._0x463178},'args':_0x22427b?[_0x22427b]:[],'tdx':_0x465d25});gracefulExit(_0x2ec9ee);};projectCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1be))[a2_0x46ebb0(0x209)](llmProjectListAction),llmCmd['command'](a2_0x46ebb0(0x234))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x13a))[a2_0x46ebb0(0x209)](llmProjectListAction),projectCmd['command'](a2_0x46ebb0(0x378))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x345))[a2_0x46ebb0(0x25e)]('--description\x20<text>',a2_0x46ebb0(0x262))[a2_0x46ebb0(0x209)](async(_0x251001,_0x34159d)=>{const _0x3fc73a=a2_0x46ebb0,_0x216595=new LLMProjectCreateCommand(),_0x4fb630=program[_0x3fc73a(0x224)](),_0x1b4519=await createTDXInstance(_0x4fb630),_0xfb593b=await _0x216595[_0x3fc73a(0x13f)]({'options':{..._0x4fb630,..._0x34159d},'args':[_0x251001],'tdx':_0x1b4519});gracefulExit(_0xfb593b);}),projectCmd[a2_0x46ebb0(0x1b4)]('delete\x20<name>')[a2_0x46ebb0(0x218)]('Delete\x20an\x20LLM\x20project')[a2_0x46ebb0(0x209)](async(_0x165171,_0x4dd576)=>{const _0x353bc1=a2_0x46ebb0,_0x282f76=new LLMProjectDeleteCommand(),_0x1c2b3c=program[_0x353bc1(0x224)](),_0x9ff674=await createTDXInstance(_0x1c2b3c),_0x5389fa=await _0x282f76[_0x353bc1(0x13f)]({'options':{..._0x1c2b3c,..._0x4dd576},'args':[_0x165171],'tdx':_0x9ff674});gracefulExit(_0x5389fa);}),projectCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x136))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1b0))['option'](a2_0x46ebb0(0x1d6),a2_0x46ebb0(0x26e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x46ebb0(0x209)](async(_0x3b6281,_0x1300bb)=>{const _0x2828f3=a2_0x46ebb0,_0x270c9e=new LLMProjectBackupCommand(),_0x5e1858=program[_0x2828f3(0x224)](),_0x4b01fe=await createTDXInstance(_0x5e1858),_0x4d5bee=await _0x270c9e[_0x2828f3(0x13f)]({'options':{..._0x5e1858,..._0x1300bb},'args':[_0x3b6281],'tdx':_0x4b01fe});gracefulExit(_0x4d5bee);}),projectCmd[a2_0x46ebb0(0x1b4)]('restore\x20<folder>')[a2_0x46ebb0(0x218)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x354),a2_0x46ebb0(0x27e))['option'](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x46ebb0(0x209)](async(_0x3c891c,_0x35fc6b)=>{const _0xa4a324=a2_0x46ebb0,_0xd57d13=new LLMProjectRestoreCommand(),_0x5b2c8b=program[_0xa4a324(0x224)](),_0x847eca=await createTDXInstance(_0x5b2c8b),_0x2e20c3=await _0xd57d13[_0xa4a324(0x13f)]({'options':{..._0x5b2c8b,..._0x35fc6b},'args':[_0x3c891c],'tdx':_0x847eca});gracefulExit(_0x2e20c3);});const llmAgentListAction=async(_0x949407,_0x2064f5)=>{const _0x35de98=a2_0x46ebb0,_0x5cf7f7=new LLMAgentsCommand(),_0x2131af=program[_0x35de98(0x224)](),_0x2dfe77=await createTDXInstance(_0x2131af),_0x561ac4=await _0x5cf7f7[_0x35de98(0x13f)]({'options':{..._0x2131af,..._0x2064f5},'args':_0x949407?[_0x949407]:[],'tdx':_0x2dfe77});gracefulExit(_0x561ac4);};llmCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x335))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x24a))['action'](llmAgentListAction),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x335))['description'](a2_0x46ebb0(0x24a))['action'](llmAgentListAction),llmCmd['command']('history\x20[chat-id]')[a2_0x46ebb0(0x218)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')['option'](a2_0x46ebb0(0x2a5),a2_0x46ebb0(0x2d7))[a2_0x46ebb0(0x209)](async(_0x5b71bc,_0x4e4988)=>{const _0x57ded3=a2_0x46ebb0,_0x3de3ef=new LLMHistoryCommand(),_0x4c4220=program[_0x57ded3(0x224)](),_0x1392b1=await createTDXInstance(_0x4c4220),_0x12d6c0=await _0x3de3ef[_0x57ded3(0x13f)]({'options':{..._0x4c4220,..._0x4e4988},'args':_0x5b71bc?[_0x5b71bc]:[],'tdx':_0x1392b1});gracefulExit(_0x12d6c0);});isExperimentalAvailable()&&llmCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2b7))[a2_0x46ebb0(0x218)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x46ebb0(0x209)](async(_0x2b726b,_0x3166a3)=>{const _0x1f8949=a2_0x46ebb0,_0x4e1511=new LLMLogCommand(),_0x946542=program[_0x1f8949(0x224)](),_0x1fc879=await createTDXInstance(_0x946542),_0x1aa388=await _0x4e1511[_0x1f8949(0x13f)]({'options':{..._0x946542,..._0x3166a3},'args':[_0x2b726b],'tdx':_0x1fc879});gracefulExit(_0x1aa388);});program[a2_0x46ebb0(0x1b4)]('claude\x20[args...]')[a2_0x46ebb0(0x38b)](a2_0x46ebb0(0x1e2))[a2_0x46ebb0(0x218)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')['option']('-r,\x20--resume',a2_0x46ebb0(0x189))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x39f),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x46ebb0(0x11e)]()[a2_0x46ebb0(0x314)](!![])[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x327))[a2_0x46ebb0(0x209)](async(_0x365d75,_0x4e09cf)=>{const _0x1f2e40=a2_0x46ebb0,_0x53f163=program[_0x1f2e40(0x224)](),_0x5cc9da=Array['isArray'](_0x365d75)?_0x365d75:[];if(_0x5cc9da[0x0]===_0x1f2e40(0x3a7)){const _0x297175=new ClaudeStatuslineCommand(),_0x14ff84=await _0x297175[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da[_0x1f2e40(0x342)](0x1),'tdx':null});gracefulExit(_0x14ff84);}if(_0x5cc9da[0x0]==='usage'){const _0x55dd60=new ClaudeUsageCommand(),_0x4b6373=await _0x55dd60[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da[_0x1f2e40(0x342)](0x1),'tdx':null});gracefulExit(_0x4b6373);}const _0x149e3a=new ClaudeCommand(),_0x32e0c9=await createTDXInstance(_0x53f163),_0x52b073=await _0x149e3a[_0x1f2e40(0x13f)]({'options':{..._0x53f163,..._0x4e09cf},'args':_0x5cc9da,'tdx':_0x32e0c9});gracefulExit(_0x52b073);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1fa))[a2_0x46ebb0(0x218)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2c0),a2_0x46ebb0(0x1c1))['option'](a2_0x46ebb0(0x2e1),a2_0x46ebb0(0x146))[a2_0x46ebb0(0x209)](async(_0xf799ff,_0x5f0fb3,_0x2c959c)=>{const _0x15616e=a2_0x46ebb0,_0x50f80f=new UseCommand(),_0x705222=program[_0x15616e(0x224)](),_0x320a7b=[];if(_0xf799ff)_0x320a7b[_0x15616e(0x2fb)](_0xf799ff);if(_0x5f0fb3)_0x320a7b[_0x15616e(0x2fb)](_0x5f0fb3);const _0x28c763=_0xf799ff==='engage_workspace',_0xdd5c2f=_0x28c763?await createTDXInstance(_0x705222):null,_0x3006e5=await _0x50f80f['run']({'options':{..._0x705222,..._0x2c959c},'args':_0x320a7b,'tdx':_0xdd5c2f});gracefulExit(_0x3006e5);}),program['command']('status')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x18c))[a2_0x46ebb0(0x209)](async _0xa2f6f8=>{const _0x1f4a00=a2_0x46ebb0,_0x169c8b=new StatusCommand(),_0x928931=program[_0x1f4a00(0x224)](),_0x25116a=await createTDXInstance(_0x928931),_0x949bce=await _0x169c8b[_0x1f4a00(0x13f)]({'options':{..._0x928931,..._0xa2f6f8},'args':[],'tdx':_0x25116a});gracefulExit(_0x949bce);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x14b))['description'](a2_0x46ebb0(0x18d))['option'](a2_0x46ebb0(0x2e1),a2_0x46ebb0(0x2aa))[a2_0x46ebb0(0x209)](async(_0x29cf1b,_0x5934e0)=>{const _0x3a9ac9=a2_0x46ebb0,_0x2406d7=new UnsetCommand(),_0xddb958=program[_0x3a9ac9(0x224)](),_0x47f957=await _0x2406d7[_0x3a9ac9(0x13f)]({'options':{..._0xddb958,..._0x5934e0},'args':[_0x29cf1b],'tdx':null});gracefulExit(_0x47f957);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x11b))['description']('Interactive\x20chat\x20selector')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2a5),a2_0x46ebb0(0x301))[a2_0x46ebb0(0x209)](async _0x27c6d0=>{const _0x1e2f19=a2_0x46ebb0,_0x5692c4=new ChatsCommand(),_0x5207bc=program[_0x1e2f19(0x224)](),_0x2d3348=await createTDXInstance(_0x5207bc),_0x41e5ad=await _0x5692c4['run']({'options':{..._0x5207bc,..._0x27c6d0},'args':[],'tdx':_0x2d3348});gracefulExit(_0x41e5ad);});const authCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x228))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x372));async function runAuthStatusCommand(_0x4fd620){const _0x32edb3=a2_0x46ebb0,_0x2394b6=new AuthStatusCommand(),_0x45fde0=program[_0x32edb3(0x224)](),_0x42c2b1=await createTDXInstance(_0x45fde0),_0x5a212f=await _0x2394b6[_0x32edb3(0x13f)]({'options':{..._0x45fde0,..._0x4fd620},'args':[],'tdx':_0x42c2b1});gracefulExit(_0x5a212f);}authCmd[a2_0x46ebb0(0x209)](runAuthStatusCommand),authCmd['command'](a2_0x46ebb0(0x1a1))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x23c))['action'](runAuthStatusCommand),authCmd[a2_0x46ebb0(0x1b4)]('setup')['description']('Setup\x20API\x20key\x20authentication\x20interactively')['addHelpText'](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x23f))[a2_0x46ebb0(0x209)](async _0x5e56b2=>{const _0x284dc8=a2_0x46ebb0,_0x51ada8=new AuthSetupCommand(),_0x567f85=program['opts'](),_0x2ebd1a=await createTDXInstance(_0x567f85),_0x16ee54=await _0x51ada8[_0x284dc8(0x13f)]({'options':{..._0x567f85,..._0x5e56b2},'args':[],'tdx':_0x2ebd1a});gracefulExit(_0x16ee54);}),authCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x353))['description'](a2_0x46ebb0(0x165))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x1a2))[a2_0x46ebb0(0x209)](async _0x2cbad8=>{const _0x2b54ec=a2_0x46ebb0,_0x2c124a=new AuthClearCommand(),_0x585acb=program[_0x2b54ec(0x224)](),_0x1d3b20=await _0x2c124a['run']({'options':{..._0x585acb,..._0x2cbad8},'args':[],'tdx':null});gracefulExit(_0x1d3b20);});const userCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1e0))['description'](a2_0x46ebb0(0x1b7)),userListAction=async _0x340da9=>{const _0x31d1cf=a2_0x46ebb0,_0x344134=new UserListCommand(),_0x223d73=program['opts'](),_0x546fd1=await createTDXInstance(_0x223d73),_0xda2b3=await _0x344134[_0x31d1cf(0x13f)]({'options':{..._0x223d73,..._0x340da9},'args':[],'tdx':_0x546fd1});gracefulExit(_0xda2b3);};userCmd['action'](async _0x5816ec=>{const _0x341719=a2_0x46ebb0,_0x2a1b58=new UserCommand(),_0x5d93f2=program[_0x341719(0x224)](),_0x5784f1=await createTDXInstance(_0x5d93f2),_0xac5290=await _0x2a1b58['run']({'options':{..._0x5d93f2,..._0x5816ec},'args':[],'tdx':_0x5784f1});gracefulExit(_0xac5290);}),userCmd[a2_0x46ebb0(0x1b4)]('list')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x29e))[a2_0x46ebb0(0x209)](userListAction),program[a2_0x46ebb0(0x1b4)]('users')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x395))[a2_0x46ebb0(0x209)](userListAction),program[a2_0x46ebb0(0x1b4)]('profiles')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x124))[a2_0x46ebb0(0x209)](async _0x3fd66f=>{const _0x305c64=a2_0x46ebb0,_0x2f2609=new ProfilesCommand(),_0x38d653=program[_0x305c64(0x224)](),_0x31845e=await _0x2f2609['run']({'options':{..._0x38d653,..._0x3fd66f},'args':[],'tdx':null});gracefulExit(_0x31845e);});const profileCmd=program[a2_0x46ebb0(0x1b4)]('profile')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2c1));profileCmd['action'](()=>{const _0x41cd32=a2_0x46ebb0;profileCmd[_0x41cd32(0x131)]();});const profileListAction=async _0x2de17b=>{const _0x356d2c=a2_0x46ebb0,_0x4c408b=new ProfilesCommand(),_0x5d9979=program[_0x356d2c(0x224)](),_0x5b16b5=await _0x4c408b[_0x356d2c(0x13f)]({'options':{..._0x5d9979,..._0x2de17b},'args':[],'tdx':null});gracefulExit(_0x5b16b5);};profileCmd[a2_0x46ebb0(0x1b4)]('list')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x124))[a2_0x46ebb0(0x209)](profileListAction),profileCmd['command']('create\x20[name]')['description'](a2_0x46ebb0(0x1bc))[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),a2_0x46ebb0(0x282))['action'](async(_0x271107,_0x4df7d0)=>{const _0x2d5910=a2_0x46ebb0,_0x280535=new ProfileCreateCommand(),_0x8f619e=program[_0x2d5910(0x224)](),_0x1b1639=await _0x280535['run']({'options':{..._0x8f619e,..._0x4df7d0},'args':_0x271107?[_0x271107]:[],'tdx':null});gracefulExit(_0x1b1639);}),profileCmd[a2_0x46ebb0(0x1b4)]('remove\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x350))['addHelpText']('after',a2_0x46ebb0(0x32e))['action'](async(_0x2e07de,_0x5e7419)=>{const _0x2e9ddb=a2_0x46ebb0,_0x12c723=new ProfileRemoveCommand(),_0x20356b=program[_0x2e9ddb(0x224)](),_0x4bb684=await _0x12c723[_0x2e9ddb(0x13f)]({'options':{..._0x20356b,..._0x5e7419},'args':[_0x2e07de],'tdx':null});gracefulExit(_0x4bb684);}),profileCmd[a2_0x46ebb0(0x1b4)]('set\x20<key=value>')[a2_0x46ebb0(0x218)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x46ebb0(0x182)](a2_0x46ebb0(0x2f2),'\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=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x46ebb0(0x209)](async(_0x3f16cd,_0x192ff0)=>{const _0x5d7267=a2_0x46ebb0,_0x11e284=new ProfileSetCommand(),_0x52e169=program[_0x5d7267(0x224)](),_0x2a9dd2=await _0x11e284[_0x5d7267(0x13f)]({'options':{..._0x52e169,..._0x192ff0},'args':[_0x3f16cd],'tdx':null});gracefulExit(_0x2a9dd2);}),profileCmd[a2_0x46ebb0(0x1b4)]('use\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b3))[a2_0x46ebb0(0x25e)]('--default',a2_0x46ebb0(0x146))['addHelpText']('after',a2_0x46ebb0(0x2ab))['action'](async(_0x1ca124,_0x2d350c)=>{const _0x4bde0c=a2_0x46ebb0,_0x561f05=new ProfileUseCommand(),_0x414b46=program[_0x4bde0c(0x224)](),_0x909a1c=await _0x561f05[_0x4bde0c(0x13f)]({'options':{..._0x414b46,..._0x2d350c},'args':[_0x1ca124],'tdx':null});gracefulExit(_0x909a1c);});const engageCmd=program['command'](a2_0x46ebb0(0x173))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x179)),createEngageAction=_0x4531df=>{return async(_0x1e239b,_0x322a4e)=>{const _0x5ee627=a2_0x17f4,_0x26d65d=new _0x4531df(),_0x22396e=program['opts'](),_0x2966b2=await createTDXInstance(_0x22396e),_0x412595=await _0x26d65d[_0x5ee627(0x13f)]({'options':{..._0x22396e,..._0x322a4e},'args':[_0x1e239b],'tdx':_0x2966b2});gracefulExit(_0x412595);};},createEngageNoArgAction=_0xf53ba9=>{return async _0x350b8d=>{const _0x5a4c45=a2_0x17f4,_0x583a30=new _0xf53ba9(),_0x2853ca=program[_0x5a4c45(0x224)](),_0x11dbdc=await createTDXInstance(_0x2853ca),_0x215bde=await _0x583a30[_0x5a4c45(0x13f)]({'options':{..._0x2853ca,..._0x350b8d},'args':[],'tdx':_0x11dbdc});gracefulExit(_0x215bde);};},createEngageListAction=_0x172a7b=>{return async(_0xd7e052,_0x1be9cc)=>{const _0x525322=a2_0x17f4,_0x3db7ac=new _0x172a7b(),_0xd91b62=program[_0x525322(0x224)](),_0x30c31f=await createTDXInstance(_0xd91b62),_0x49f5a2=await _0x3db7ac['run']({'options':{..._0xd91b62,..._0x1be9cc},'args':_0xd7e052?[_0xd7e052]:[],'tdx':_0x30c31f});gracefulExit(_0x49f5a2);};},campaignCmd=engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x38e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2e7));campaignCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x204))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x24b))['option'](a2_0x46ebb0(0x163),a2_0x46ebb0(0x2c4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x46ebb0(0x12f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x389))[a2_0x46ebb0(0x25e)]('--type\x20<type>',a2_0x46ebb0(0x24b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x163),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['action'](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2bc))['description'](a2_0x46ebb0(0x15b))['option'](a2_0x46ebb0(0x355),'Workspace\x20name')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1e8),a2_0x46ebb0(0x219))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1d2))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2f1))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x330))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x2fe))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x211))[a2_0x46ebb0(0x25e)]('--description\x20<desc>',a2_0x46ebb0(0x25d))['option'](a2_0x46ebb0(0x2da),a2_0x46ebb0(0x2ed))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x197),a2_0x46ebb0(0x10c))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x260),a2_0x46ebb0(0x130))['option'](a2_0x46ebb0(0x1eb),a2_0x46ebb0(0x1c4))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3ac),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x46ebb0(0x209)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x208))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['option']('--name\x20<name>',a2_0x46ebb0(0x1cc))['option'](a2_0x46ebb0(0x2f8),a2_0x46ebb0(0x25d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2da),a2_0x46ebb0(0x2ed))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x197),a2_0x46ebb0(0x10c))['option']('--json-columns\x20<cols>',a2_0x46ebb0(0x130))[a2_0x46ebb0(0x25e)]('--start-at\x20<datetime>',a2_0x46ebb0(0x1c4))['option']('--timezone\x20<tz>',a2_0x46ebb0(0x11c))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c7))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17c))['option']('--workspace\x20<name>',a2_0x46ebb0(0x323))['option'](a2_0x46ebb0(0x1f5),a2_0x46ebb0(0x380))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x36f))[a2_0x46ebb0(0x218)]('Launch\x20a\x20campaign')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x293))['description'](a2_0x46ebb0(0x17f))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x46ebb0(0x1b4)]('resume\x20<name-or-id>')[a2_0x46ebb0(0x218)]('Resume\x20a\x20paused\x20campaign')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x46ebb0(0x1bf))['description'](a2_0x46ebb0(0x187))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),'Workspace\x20name')['action'](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x46ebb0(0x1b4)]('pull\x20[workspace-name]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x315))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--name\x20<name>',a2_0x46ebb0(0x2a0))['option'](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x24b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),a2_0x46ebb0(0x308))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x30c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x186))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--dry-run',a2_0x46ebb0(0x192))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x139))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x37f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x210),a2_0x46ebb0(0x278))[a2_0x46ebb0(0x209)](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x109))['description'](a2_0x46ebb0(0x142));templateCmd[a2_0x46ebb0(0x1b4)]('list\x20[pattern]')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x17b))['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2a7))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2d5))['option'](a2_0x46ebb0(0x355),'Workspace\x20name')[a2_0x46ebb0(0x209)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('show\x20<name-or-id>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x384))[a2_0x46ebb0(0x25e)]('--workspace\x20<name>',a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)]('--full',a2_0x46ebb0(0x219))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('create')[a2_0x46ebb0(0x218)]('Create\x20an\x20email\x20template')['requiredOption'](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x2f0))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x341),a2_0x46ebb0(0x11f))['requiredOption'](a2_0x46ebb0(0x125),'HTML\x20template\x20content')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x211))['option']('--plaintext\x20<text>',a2_0x46ebb0(0x1cf))['option'](a2_0x46ebb0(0x19c),a2_0x46ebb0(0x1d4),_0x591be3=>{const _0x4d7126=a2_0x46ebb0;if(![_0x4d7126(0x1a7),_0x4d7126(0x126)][_0x4d7126(0x252)](_0x591be3))throw new SDKError(ErrorCode[_0x4d7126(0x19a)],'Invalid\x20editor\x20type:\x20'+_0x591be3+_0x4d7126(0x39c));return _0x591be3;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x46ebb0(0x1b4)]('update\x20<name-or-id>')[a2_0x46ebb0(0x218)]('Update\x20an\x20email\x20template')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))['option'](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x16e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x341),a2_0x46ebb0(0x11f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x125),a2_0x46ebb0(0x34f))['option']('--plaintext\x20<text>',a2_0x46ebb0(0x1cf))[a2_0x46ebb0(0x209)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2c7))[a2_0x46ebb0(0x218)]('Delete\x20an\x20email\x20template')['option'](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1f5),a2_0x46ebb0(0x380))[a2_0x46ebb0(0x209)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2d0));function a2_0x4dc1(){const _0x649f3b=['view\x20<name-or-path>','argv','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Output\x20folder\x20(default:\x20{project_name}.llm)','Attributes\x20from\x20JSON\x20file','models','name','optionDescription','trino','-y,\x20--yes','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','run\x20<name>','tdx\x20','Show\x20all\x20files\x20including\x20valid\x20ones','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Invalid\x20--limit\x20value:\x20\x22','Agent\x20name','Attributes\x20as\x20JSON\x20string','Output\x20directory','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','subcommandDescription','View\x20a\x20specific\x20version\x20of\x20a\x20journey','\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','segment','--chat-id\x20<id>','--dry-run','delete\x20<args...>','--description\x20<text>','-w,\x20--web','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20[name]','-H,\x20--header\x20<header>','workflows\x20[project]','--limit\x20<rows>','--behavior\x20[name]','Move\x20to\x20folder','--result\x20<url>','pause\x20<name-or-id>','list\x20[project]','delivery','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','agent','upload\x20[project-name-or-dir]','--rule\x20<json>','[action]','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20all\x20users\x20in\x20the\x20account','desc\x20[name]','Pull\x20specific\x20campaign\x20by\x20name','List\x20available\x20LLM\x20models','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Database\x20name\x20(required)','exit','--last','pause\x20<name-or-path>','templates\x20[pattern]','--delay\x20<seconds>','Resume\x20a\x20paused\x20journey','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','\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','pull\x20[project]\x20[agent-name]','colorFn','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','json','attempt','Scheduled\x20query\x20management\x20commands','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','--limit\x20<number>','Change\x20to\x20directory\x20before\x20executing\x20command','parent-segment','log\x20<chat-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--reeval','Resume\x20from\x20specific\x20task\x20(retry)','Create\x20a\x20scheduled\x20query','show\x20<name-or-id>','LLM\x20project\x20management','Timezone\x20(e.g.,\x20America/Los_Angeles)','fields\x20[name]','--clear','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Agent\x20description','Parse\x20and\x20validate\x20without\x20executing','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Show\x20only\x20master\x20table\x20validation','Delivery\x20operations\x20(email\x20senders)','delete\x20<name-or-id>','create\x20<segment_name>','Add\x20behaviors\x20as\x20JSON\x20string','--name\x20<name>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','length','forEach','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','-C,\x20--directory\x20<path>','Workspace\x20management','Workflow\x20(Digdag)\x20management\x20commands','delete\x20<project-name-or-id>','Output\x20as\x20JSON','Workspace\x20description','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','List\x20all\x20versions\x20of\x20a\x20journey','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','journeys\x20[pattern]','--segment\x20<path>','preAction','--table','clone\x20[source-dir]','[DEPRECATED]\x20Segment\x20folder\x20management','CDP\x20segment\x20management\x20commands','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--default','--debug','--params\x20<json>','info\x20[segment_name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Campaign\x20management','Reason\x20for\x20killing\x20the\x20attempt','Show\x20journey\x20table\x20column-to-step\x20mapping','End\x20time\x20filter\x20(ISO\x208601\x20format)','log','describe','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','versions\x20<name-or-path>','Custom\x20revision\x20name\x20(default:\x20timestamp)','Template\x20name','Create\x20a\x20new\x20campaign','after','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Ending\x20offset\x20(default:\x2020)','run\x20[workflow]','Run\x20specific\x20tests\x20(comma-separated)','--description\x20<desc>','required','Force\x20retry\x20even\x20if\x20not\x20failed','push','parse','Result\x20output\x20destination\x20URL','Campaign\x20type\x20(email\x20or\x20push)','-n,\x20--name\x20<name>','\x22.\x20Must\x20be\x20a\x20number.','Show\x20the\x20most\x20recent\x20chat','Update\x20an\x20existing\x20agent','project','-r,\x20--recursive','list\x20[name]','list','api\x20[endpoint]','Show\x20what\x20would\x20be\x20written\x20without\x20writing','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','use\x20<project-name>','--stream','push\x20[target]','workspaces\x20[pattern]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','sessions\x20[project]','List\x20jobs','\x20-\x20built\x20','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','allowExcessArguments','Pull\x20campaigns\x20to\x20YAML\x20files','--num\x20<1-10>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Skip\x20confirmation\x20prompts','workflow','Job\x20management\x20commands','use\x20[project]','database','Preview\x20changes\x20without\x20writing\x20files','--include-history','\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','--site\x20<site>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Workspace\x20name','us01','--enriched','senders\x20[pattern]','\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','Show\x20timeline\x20for\x20specific\x20attempt','map','-d,\x20--database\x20<database>','Usage:\x20','_hidden','timeline\x20[project.workflow]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','desc\x20[segment_name]','Campaign\x20name','Show\x20agent\x20details','_list-commands','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','agents\x20[pattern]','update\x20<segment_name>','folders\x20<parent_name>',',\x20version\x20','--priority\x20<-2~2>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','format','--system-prompt\x20<text>','--catalog\x20<catalog>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','commandUsage','--subject\x20<subject>','slice','--kind\x20<type>','init\x20[name]','Create\x20a\x20new\x20LLM\x20project','--behaviors\x20<json>','--delete','llm','view\x20[name]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','--param\x20<key=value>','Arguments:','--json','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','HTML\x20template\x20content','Remove\x20a\x20profile','debug','INFO','clear','--name\x20<new-name>','--workspace\x20<name>','DEBUG','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','tsv','Clear\x20workflow\x20project\x20context','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Read\x20query\x20from\x20file','--include-stats','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','jsonl','commandDescription','commands','--rule-file\x20<file>','--invisible','Workflow\x20attempt\x20management','show\x20<folder_ref>','Request\x20body\x20as\x20JSON\x20string','delete\x20<name>','--database\x20<name>','Workflow\x20session\x20management','Add\x20behaviors\x20from\x20JSON\x20file','--timeout\x20<seconds>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','query\x20[sql]','launch\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','--schedule-type\x20<type>','Authentication\x20management','--stage\x20<name>','tasks','delete\x20<agent-name>','pull\x20<project>\x20[target-dir]','test\x20[path]','create\x20<name>','-f,\x20--file\x20<path>','Set\x20operation\x20timeout\x20in\x20seconds','Skip\x20validation\x20of\x20.dig\x20files','show\x20[segment_name]','Parent\x20segment\x20management','--model\x20<name>','Validate\x20campaign\x20YAML\x20files\x20locally','Skip\x20confirmation\x20prompt','Workflow\x20project\x20management','--add-attributes-file\x20<file>','session','Show\x20email\x20template\x20details','List\x20journeys\x20(alias\x20for\x20journey\x20list)','split','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','show\x20[name]','usage','68eHRNVq','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','campaign','List\x20email\x20senders','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--attempt-id\x20<id>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','argumentDescription','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Run\x20tests\x20for\x20an\x20LLM\x20agent','summary','--from\x20<timestamp>','Show\x20segment\x20schema\x20(column\x20types)','flatMap','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','help','Name\x20for\x20the\x20new\x20project\x20(required)','--no-proxy','Query\x20engine\x20version','--cron\x20<expression>','stringify','Overwrite\x20local\x20changes\x20without\x20confirmation','Include\x20execution\x20statistics','secrets','--folder\x20<name>','statusline','--attribute\x20[name]','--trace','push\x20[path]','--behaviors-file\x20<file>','--timezone\x20<tz>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','job','--interval\x20<range>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','-a,\x20--agent\x20<name>','traffic\x20<name-or-path>','--database\x20<db>','--help','Show\x20job\x20details','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','noColor','--attributes-file\x20<file>','stdout','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','3360RBpBFH','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','options','template','Generate\x20test\x20conversations\x20without\x20evaluation','Table\x20management\x20commands','Email\x20sender\x20ID\x20for\x20delivery','Include\x20retried\x20attempts','Updated\x20description','RT\x202.0\x20configuration\x20management','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Customer\x20group\x20as\x20JSON\x20string','Behaviors\x20from\x20JSON\x20file','registeredArguments','hidden','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','set\x20<args...>','Open\x20segment\x20in\x20web\x20browser','82276JoaWKx','--parent-folder\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','chats','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--data\x20<data>','allowUnknownOption','Email\x20subject\x20template','sql\x20[segment_name]','--retry-limit\x20<0~32>','Maximum\x20number\x20of\x20nodes','retry\x20<session-id>','List\x20all\x20available\x20profiles','--html\x20<html>','grapesjs','--in\x20<database>','Show\x20connection\x20details\x20by\x20name','Output\x20as\x20JSON\x20Lines','Folder\x20name\x20for\x20organization','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--engine-version\x20<version>','replace','Push\x20without\x20confirmation','campaigns\x20[pattern]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','outputHelp','List\x20agents\x20in\x20current\x20project','--skip-validation','Skip\x20population\x20counting','--to\x20<date>','backup\x20<name>','-1d','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','validate\x20[target]','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','argument','Delete\x20an\x20agent','Revision\x20name\x20(default:\x20timestamp)','Agent\x20prompt/instructions','run','--limit\x20<n>','Delete\x20a\x20workspace','Email\x20template\x20management','chat\x20[message...]','repeat','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','153108bCQlVd','--name\x20<text>','--no-count-population','Path\x20is\x20not\x20a\x20directory:\x20','unset\x20<resource>','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','update\x20<agent-name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--in\x20<db>','--no-color','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Include\x20retried\x20attempts\x20(for\x20list)','preview\x20[file]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Query\x20type:\x20trino\x20or\x20hive','Delete\x20a\x20scheduled\x20query','--agent\x20<ref>','Include\x20raw\x20history\x20data\x20in\x20output','logLevel','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Show\x20campaign\x20details','create\x20<parent_name>\x20<folder_name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Read\x20SQL\x20query\x20from\x20file','catch','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--add-behaviors-file\x20<file>','validate\x20[file]','--status\x20<status>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Remove\x20API\x20key\x20from\x20system\x20keychain','LLM\x20agent\x20management','System\x20prompt/instructions\x20(default:\x20empty)','Pull\x20specific\x20revision\x20(default:\x20latest)','set','215juWYlv','--schedule-option\x20<value>','list\x20[path]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','New\x20template\x20name','--revision\x20<revision>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--from\x20<date>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','engage','Create\x20segment\x20folder','result\x20<job-id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','run\x20[name]','connection','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Starter\x20message','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Delete\x20a\x20campaign','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','describe\x20[table]','Pause\x20a\x20campaign','show\x20[table]','--llm-project\x20<name>','addHelpText','Show\x20master\x20table\x20sample\x20data','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Cron\x20expression\x20for\x20scheduling','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Duplicate\x20a\x20campaign','Segment\x20description','Resume\x20a\x20conversation\x20(shows\x20selector)','stats\x20<name-or-path>','--customer-group-file\x20<file>','Show\x20authentication\x20status\x20and\x20current\x20context','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','folder','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','--max-depth\x20<depth>','Describe\x20table\x20schema','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','gitRevision','--email-sender-id\x20<id>','connections','Filtering\x20rule\x20as\x20JSON\x20string','INVALID_ARGUMENT','--add-behaviors\x20<json>','--editor-type\x20<type>','-o,\x20--output\x20<file>','-f,\x20--force','clone\x20[source]','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','status','\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','--session-time\x20<time>','padWidth','Follow/watch\x20timeline\x20for\x20running\x20attempts','--name\x20<new_name>','beefree','Update\x20a\x20workspace','Make\x20segment\x20invisible\x20(default:\x20visible)','--result\x20<target>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Database\x20name','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Timezone\x20for\x20cron\x20(default:\x20UTC)','-p,\x20--profile\x20<name>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--max-tool-iterations\x20<n>','Show\x20workspace\x20details','update\x20<name-or-id>','command','optionTerm','columns\x20<name-or-path>','User\x20management\x20commands','padEnd','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--attributes\x20<json>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Create\x20a\x20new\x20profile','join','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','duplicate\x20<name-or-id>','--type\x20<type>','Clear\x20session\x20context','List\x20journeys\x20in\x20current\x20context','Run\x20a\x20scheduled\x20query\x20immediately','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','argumentTerm','[task-name]','List\x20available\x20connector\x20types','alias','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','tables\x20[pattern]','New\x20campaign\x20name','Show\x20segment\x20details\x20(alias\x20for\x20view)','sql\x20[name]','Plaintext\x20template\x20content','Customer\x20group\x20from\x20JSON\x20file','flags','create','--new','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','-o,\x20--output\x20<folder>','configureHelp','--reason\x20<text>','Manage\x20workflow\x20project\x20secrets','pull\x20[name]','site','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','-d,\x20--database\x20<db>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','list\x20[pattern]','user','Personalization\x20service\x20management','[options]\x20--\x20[claude-code-args...]','Parent\x20segment\x20description','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Include\x20subtasks\x20in\x20tasks\x20output','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--full','stderr','kill','--start-at\x20<datetime>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','683930JfzNxS','Master\x20table\x20name','requiredOption','Updated\x20timezone','buildTime','165QoenQK','download\x20<project-name>\x20[output-dir]','-o,\x20--output\x20<dir>','--yes','Directory\x20does\x20not\x20exist:\x20','Read\x20request\x20body\x20from\x20file','Journey\x20version\x20management','Delay\x20in\x20seconds\x20before\x20execution','use\x20[resource]\x20[value]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Update\x20a\x20scheduled\x20query','view\x20[segment_name]','subcommandTerm','submit\x20[query]','directory','error','apiKey','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','preview\x20[name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Update\x20a\x20campaign','action','--job-type\x20<type>','Job\x20priority\x20(-2\x20to\x202)','isTTY','Database\x20name\x20(default:\x20information_schema)','Starting\x20offset\x20(default:\x200)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--verbose','Workspace\x20name\x20(required)','table','-u,\x20--use','50346KWDAhh','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Output\x20file\x20path','Output\x20file\x20path\x20(default:\x20<name>.yml)','description','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','jobs','activations\x20<segment_name>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','GET','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','version','Kill\x20a\x20job','--master','--no-eval','opts','get','Behaviors\x20as\x20JSON\x20string','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','auth','--include-retried','show\x20<name>','Show\x20journey\x20details','--version\x20<number>','AI-native\x20CLI\x20for\x20Treasure\x20Data','0.7','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Version\x20number\x20to\x20view','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Preview\x20operation\x20without\x20executing','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','projects\x20[pattern]','--color','resume\x20<name-or-path>','--to\x20<timestamp>','Limit\x20number\x20of\x20rows','parents\x20[pattern]','Enable\x20verbose\x20logging','List\x20activations\x20for\x20a\x20journey','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--add-attributes\x20<json>','create\x20<name-or-path>','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\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\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','-v,\x20--verbose','Retry\x20limit\x20(0\x20to\x2032)','6104XjkpZg','--temperature\x20<n>','Preview\x20changes\x20without\x20pushing','Start\x20a\x20new\x20chat\x20session','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','421876OcCSpY','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','New\x20workspace\x20name','List\x20secret\x20keys\x20for\x20a\x20project','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--jsonl','--type\x20<api_type>','includes','Attempt\x20ID','Pull\x20workflow\x20project\x20to\x20local\x20folder','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Show\x20journey\x20statistics','4095yfdfrG','--tags\x20<tags>','filter','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','tdx','Campaign\x20description','option','--resume-from\x20<task>','--json-columns\x20<cols>','Task\x20name\x20for\x20logs\x20action','Project\x20description','createAsync','--tsv','pull\x20[parent_or_file]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Database\x20to\x20query\x20(default:\x20information_schema)','validate\x20[name]','--follow','Pull\x20child\x20segments\x20to\x20YAML\x20files'];a2_0x4dc1=function(){return _0x649f3b;};return a2_0x4dc1();}workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x35a))[a2_0x46ebb0(0x209)](createEngageListAction(EngageWorkspacesCommand)),engageCmd['command'](a2_0x46ebb0(0x30d))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x313))[a2_0x46ebb0(0x209)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)]('show\x20<name-or-id>')['description'](a2_0x46ebb0(0x1b2))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1e8),a2_0x46ebb0(0x219))[a2_0x46ebb0(0x209)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1d2))[a2_0x46ebb0(0x218)]('Create\x20a\x20workspace')[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x2ca),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2f8),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b3))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1a8))['option']('--name\x20<name>',a2_0x46ebb0(0x24c))['option']('--description\x20<desc>',a2_0x46ebb0(0x2d4))[a2_0x46ebb0(0x209)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x46ebb0(0x2c7))['description'](a2_0x46ebb0(0x141))[a2_0x46ebb0(0x25e)]('--yes','Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x46ebb0(0x1b4)]('use\x20<name>')['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x295))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2c6));deliveryCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x326))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x38f))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x355),a2_0x46ebb0(0x323))[a2_0x46ebb0(0x209)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program['command'](a2_0x46ebb0(0x178))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x5c77f9=>{const _0x271a7a=a2_0x46ebb0,_0x5784a7=new ConnectionListCommand(),_0x53f018=program[_0x271a7a(0x224)](),_0x38112c=await createTDXInstance(_0x53f018),_0x4284d5=await _0x5784a7[_0x271a7a(0x13f)]({'options':{..._0x53f018,..._0x5c77f9},'args':[],'tdx':_0x38112c});gracefulExit(_0x4284d5);};connectionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x306))[a2_0x46ebb0(0x218)]('List\x20all\x20data\x20connections')['action'](connectionListAction),program['command'](a2_0x46ebb0(0x198),{'hidden':!![]})[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x164))[a2_0x46ebb0(0x209)](connectionListAction),connectionCmd[a2_0x46ebb0(0x1b4)]('show\x20<name>')['description'](a2_0x46ebb0(0x128))[a2_0x46ebb0(0x209)](async(_0x1be678,_0x3f75a8)=>{const _0x2260bf=a2_0x46ebb0,_0x493d4e=new ConnectionShowCommand(),_0x151e45=program[_0x2260bf(0x224)](),_0x59406e=await createTDXInstance(_0x151e45),_0x369418=await _0x493d4e[_0x2260bf(0x13f)]({'options':{..._0x151e45,..._0x3f75a8},'args':[_0x1be678],'tdx':_0x59406e});gracefulExit(_0x369418);}),connectionCmd['command']('schema\x20<type>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x227))[a2_0x46ebb0(0x209)](async(_0x209b09,_0xab87e3)=>{const _0x357c65=a2_0x46ebb0,_0x5ebab2=new ConnectionSchemaCommand(),_0x3e0b82=program[_0x357c65(0x224)](),_0x1521d4=await createTDXInstance(_0x3e0b82),_0x136400=await _0x5ebab2[_0x357c65(0x13f)]({'options':{..._0x3e0b82,..._0xab87e3},'args':[_0x209b09],'tdx':_0x1521d4});gracefulExit(_0x136400);}),connectionCmd[a2_0x46ebb0(0x1b4)]('types')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c7))[a2_0x46ebb0(0x209)](async _0x290980=>{const _0x324891=a2_0x46ebb0,_0x48f3c2=new ConnectionTypesCommand(),_0x41090a=program[_0x324891(0x224)](),_0x3b17d0=await createTDXInstance(_0x41090a),_0x399f74=await _0x48f3c2[_0x324891(0x13f)]({'options':{..._0x41090a,..._0x290980},'args':[],'tdx':_0x3b17d0});gracefulExit(_0x399f74);}),connectionCmd['command']('settings\x20<type>')[a2_0x46ebb0(0x218)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x46ebb0(0x209)](async(_0x420067,_0x38f3f9)=>{const _0x5b9f52=a2_0x46ebb0,_0x315c11=new ConnectionSettingsCommand(),_0x457160=program[_0x5b9f52(0x224)](),_0x4d69e8=await createTDXInstance(_0x457160),_0x5ea55b=await _0x315c11[_0x5b9f52(0x13f)]({'options':{..._0x457160,..._0x38f3f9},'args':[_0x420067],'tdx':_0x4d69e8});gracefulExit(_0x5ea55b);});const journeyCmd=program[a2_0x46ebb0(0x1b4)]('journey')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1ca)),journeyListAction=async(_0x2ae079,_0x588c49)=>{const _0x393cd8=a2_0x46ebb0,_0x1a3753=new JourneyListCommand(),_0x218fc5=program[_0x393cd8(0x224)](),_0x444437=await createTDXInstance(_0x218fc5),_0x2bd4ca=await _0x1a3753[_0x393cd8(0x13f)]({'options':{..._0x218fc5,..._0x588c49},'args':_0x2ae079?[_0x2ae079]:[],'tdx':_0x444437});gracefulExit(_0x2bd4ca);};journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1c2))['action'](journeyListAction),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x26b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x22b))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x288),'Open\x20journey\x20in\x20web\x20browser')['option'](a2_0x46ebb0(0x35e),a2_0x46ebb0(0x3a4))[a2_0x46ebb0(0x209)](async(_0x4fcc54,_0x171c78)=>{const _0x2edb4b=a2_0x46ebb0,_0x1218ac=new JourneyViewCommand(),_0x3a0679=program[_0x2edb4b(0x224)](),_0xd61276=await createTDXInstance(_0x3a0679),_0x23787d=await _0x1218ac[_0x2edb4b(0x13f)]({'options':{..._0x3a0679,..._0x171c78},'args':[_0x4fcc54],'tdx':_0xd61276});gracefulExit(_0x23787d);}),journeyCmd['command'](a2_0x46ebb0(0x18a))['description'](a2_0x46ebb0(0x257))['option'](a2_0x46ebb0(0x373),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x46ebb0(0x25e)]('--from\x20<date>',a2_0x46ebb0(0x26d))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x135),a2_0x46ebb0(0x396))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x31e),a2_0x46ebb0(0x158))['action'](async(_0x52ed88,_0x2fd6a4)=>{const _0x246b6d=a2_0x46ebb0,_0x31dfdf=new JourneyStatsCommand(),_0x3ca389=program[_0x246b6d(0x224)](),_0x4a0188=await createTDXInstance(_0x3ca389),_0x31e8c1=await _0x31dfdf[_0x246b6d(0x13f)]({'options':{..._0x3ca389,..._0x2fd6a4},'args':[_0x52ed88],'tdx':_0x4a0188});gracefulExit(_0x31e8c1);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0xfc))['description']('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')['option'](a2_0x46ebb0(0x1c0),a2_0x46ebb0(0x115))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x171),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x135),a2_0x46ebb0(0x396))['option'](a2_0x46ebb0(0x2b4),a2_0x46ebb0(0x122),_0x2202a2=>{const _0x16a297=a2_0x46ebb0,_0x43a6c6=parseInt(_0x2202a2,0xa);if(isNaN(_0x43a6c6))throw new Error(_0x16a297(0x27a)+_0x2202a2+_0x16a297(0x300));return _0x43a6c6;})[a2_0x46ebb0(0x209)](async(_0x41a8ff,_0x596f85)=>{const _0x45174e=a2_0x46ebb0,_0x46431c=new JourneyTrafficCommand(),_0x7648a7=program[_0x45174e(0x224)](),_0x4d1a96=await createTDXInstance(_0x7648a7),_0x30f945=await _0x46431c[_0x45174e(0x13f)]({'options':{..._0x7648a7,..._0x596f85},'args':[_0x41a8ff],'tdx':_0x4d1a96});gracefulExit(_0x30f945);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2a6))['description']('Pause\x20a\x20running\x20journey')[a2_0x46ebb0(0x209)](async(_0x1619d6,_0x50fc29)=>{const _0x4ae47e=a2_0x46ebb0,_0x376ba0=new JourneyPauseCommand(),_0x35c403=program[_0x4ae47e(0x224)](),_0x3cd35b=await createTDXInstance(_0x35c403),_0x1e1b32=await _0x376ba0[_0x4ae47e(0x13f)]({'options':{..._0x35c403,..._0x50fc29},'args':[_0x1619d6],'tdx':_0x3cd35b});gracefulExit(_0x1e1b32);}),journeyCmd['command'](a2_0x46ebb0(0x236))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2a9))['action'](async(_0xd8ae1e,_0x1895b9)=>{const _0x21a9ad=a2_0x46ebb0,_0x390e54=new JourneyResumeCommand(),_0x34e816=program['opts'](),_0x422b5f=await createTDXInstance(_0x34e816),_0x2c886a=await _0x390e54[_0x21a9ad(0x13f)]({'options':{..._0x34e816,..._0x1895b9},'args':[_0xd8ae1e],'tdx':_0x422b5f});gracefulExit(_0x2c886a);}),journeyCmd[a2_0x46ebb0(0x1b4)]('pull\x20[name]')[a2_0x46ebb0(0x218)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x285),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x46ebb0(0x209)](async(_0x4b8283,_0x537535)=>{const _0x19d566=a2_0x46ebb0,_0x13dfb8=new JourneyPullCommand(),_0x2ba9e3=program[_0x19d566(0x224)](),_0x3fc72a=await createTDXInstance(_0x2ba9e3),_0x28887b=await _0x13dfb8[_0x19d566(0x13f)]({'options':{..._0x2ba9e3,..._0x537535},'args':_0x4b8283?[_0x4b8283]:[],'tdx':_0x3fc72a});gracefulExit(_0x28887b);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x30c))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2ce))[a2_0x46ebb0(0x209)](async(_0x3d6df7,_0x4a3c89)=>{const _0x26d6c6=a2_0x46ebb0,_0x8a5e1d=new JourneyPushCommand(),_0x5a067a=program[_0x26d6c6(0x224)](),_0x4d5372=await createTDXInstance(_0x5a067a),_0x5930d1=await _0x8a5e1d[_0x26d6c6(0x13f)]({'options':{..._0x5a067a,..._0x4a3c89},'args':_0x3d6df7?[_0x3d6df7]:[],'tdx':_0x4d5372});gracefulExit(_0x5930d1);}),journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1b6))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2e9))[a2_0x46ebb0(0x209)](async(_0x26eca6,_0x17af87)=>{const _0x4b0b02=a2_0x46ebb0,_0x133a3c=new JourneyColumnsCommand(),_0x3f40b2=program[_0x4b0b02(0x224)](),_0x5e8be9=await createTDXInstance(_0x3f40b2),_0x28df21=await _0x133a3c['run']({'options':{..._0x3f40b2,..._0x17af87},'args':[_0x26eca6],'tdx':_0x5e8be9});gracefulExit(_0x28df21);}),journeyCmd['command']('activations\x20<name-or-path>')['description'](a2_0x46ebb0(0x23b))[a2_0x46ebb0(0x209)](async(_0x2513c2,_0x1ae7b9)=>{const _0x474e05=a2_0x46ebb0,_0xee10ae=new JourneyActivationsCommand(),_0x2d7463=program[_0x474e05(0x224)](),_0x29e9cd=await createTDXInstance(_0x2d7463),_0x3bebd0=await _0xee10ae[_0x474e05(0x13f)]({'options':{..._0x2d7463,..._0x1ae7b9},'args':[_0x2513c2],'tdx':_0x29e9cd});gracefulExit(_0x3bebd0);}),journeyCmd['command'](a2_0x46ebb0(0x2ee))['description'](a2_0x46ebb0(0x2d6))[a2_0x46ebb0(0x209)](async(_0x13540f,_0x2f104f)=>{const _0x306ed8=a2_0x46ebb0,_0xfbbd4b=new JourneyVersionsCommand(),_0x399ecf=program[_0x306ed8(0x224)](),_0x3297e5=await createTDXInstance(_0x399ecf),_0xa5aa82=await _0xfbbd4b[_0x306ed8(0x13f)]({'options':{..._0x399ecf,..._0x2f104f},'args':[_0x13540f],'tdx':_0x3297e5});gracefulExit(_0xa5aa82);});const journeyVersionCmd=journeyCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x220))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1f8));journeyVersionCmd['command'](a2_0x46ebb0(0x23e))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x333))['action'](async(_0x408392,_0x2e698a)=>{const _0x365df2=a2_0x46ebb0,_0x25d057=new JourneyVersionCreateCommand(),_0x11eae3=program[_0x365df2(0x224)](),_0x21d374=await createTDXInstance(_0x11eae3),_0x2e7360=await _0x25d057[_0x365df2(0x13f)]({'options':{..._0x11eae3,..._0x2e698a},'args':[_0x408392],'tdx':_0x21d374});gracefulExit(_0x2e7360);}),journeyVersionCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x26b))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x281))[a2_0x46ebb0(0x1ef)](a2_0x46ebb0(0x22c),a2_0x46ebb0(0x230))['action'](async(_0x3dc930,_0xf5a784)=>{const _0x4eb93e=a2_0x46ebb0,_0x81f9fe=new JourneyVersionViewCommand(),_0x44afba=program[_0x4eb93e(0x224)](),_0xf2446a=await createTDXInstance(_0x44afba),_0x183416=await _0x81f9fe[_0x4eb93e(0x13f)]({'options':{..._0x44afba,..._0xf5a784},'args':[_0x3dc930],'tdx':_0xf2446a});gracefulExit(_0x183416);}),journeyCmd[a2_0x46ebb0(0x1b4)]('validate\x20[target]')[a2_0x46ebb0(0x218)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x46ebb0(0x209)](async(_0x2e51e8,_0x10b848)=>{const _0x57d13b=a2_0x46ebb0,_0x2ecea7=new JourneyValidateCommand(),_0x400f18=program['opts'](),_0x1f0e37=await createTDXInstance(_0x400f18),_0x458bfd=await _0x2ecea7[_0x57d13b(0x13f)]({'options':{..._0x400f18,..._0x10b848},'args':_0x2e51e8?[_0x2e51e8]:[],'tdx':_0x1f0e37});gracefulExit(_0x458bfd);}),program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2d9))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x385))[a2_0x46ebb0(0x209)](journeyListAction);const agentSyncCmd=program[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x298))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x166));agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x2ac))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x2b8))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1f4),a2_0x46ebb0(0x27d))[a2_0x46ebb0(0x25e)]('-f,\x20--force',a2_0x46ebb0(0x3a3))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x3b2),a2_0x46ebb0(0x2d8))[a2_0x46ebb0(0x209)](async(_0x571f6a,_0x58f133,_0x3bc1b5)=>{const _0x30ecb0=a2_0x46ebb0,_0x273bf0=new AgentPullCommand(),_0x29c896=program[_0x30ecb0(0x224)](),_0x447d1b=await createTDXInstance(_0x29c896),_0x1b839b=[];if(_0x571f6a)_0x1b839b[_0x30ecb0(0x2fb)](_0x571f6a);if(_0x58f133)_0x1b839b[_0x30ecb0(0x2fb)](_0x58f133);const _0x1a2a2e=await _0x273bf0[_0x30ecb0(0x13f)]({'options':{..._0x29c896,..._0x3bc1b5},'args':_0x1b839b,'tdx':_0x447d1b});gracefulExit(_0x1a2a2e);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x3aa))['description'](a2_0x46ebb0(0x2cb))['option'](a2_0x46ebb0(0x19e),a2_0x46ebb0(0x12e))[a2_0x46ebb0(0x209)](async(_0x3c84e2,_0x496ca7)=>{const _0x7c4050=a2_0x46ebb0,_0xaa18d=new AgentPushCommand(),_0x1d4627=program[_0x7c4050(0x224)](),_0x141edd=await createTDXInstance(_0x1d4627),_0x1f5328=await _0xaa18d[_0x7c4050(0x13f)]({'options':{..._0x1d4627,..._0x496ca7},'args':_0x3c84e2?[_0x3c84e2]:[],'tdx':_0x141edd});gracefulExit(_0x1f5328);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x19f))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x289))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2ff),a2_0x46ebb0(0x39e))[a2_0x46ebb0(0x209)](async(_0x535830,_0x538950)=>{const _0x24becc=a2_0x46ebb0,_0xe95604=new AgentCloneCommand(),_0xdaf732=program[_0x24becc(0x224)](),_0x151fd4=await createTDXInstance(_0xdaf732),_0x38ca76=await _0xe95604[_0x24becc(0x13f)]({'options':{..._0xdaf732,..._0x538950},'args':_0x535830?[_0x535830]:[],'tdx':_0x151fd4});gracefulExit(_0x38ca76);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x377))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x397))[a2_0x46ebb0(0x25e)]('--name\x20<names>',a2_0x46ebb0(0x2f7))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x259),a2_0x46ebb0(0x36d))['option']('--dry-run',a2_0x46ebb0(0x2c3))['option'](a2_0x46ebb0(0x223),a2_0x46ebb0(0x10a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x2b9),a2_0x46ebb0(0x248))[a2_0x46ebb0(0x209)](async(_0xf8cae6,_0x8abd1b)=>{const _0x9befac=a2_0x46ebb0,_0x55757=new AgentTestCommand(),_0x3e2687=program['opts'](),_0x49dd37=await createTDXInstance(_0x3e2687),_0x5bb7c2=await _0x55757[_0x9befac(0x13f)]({'options':{..._0x3e2687,..._0x8abd1b},'args':_0xf8cae6?[_0xf8cae6]:[],'tdx':_0x49dd37});gracefulExit(_0x5bb7c2);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x1df))['description'](a2_0x46ebb0(0x132))[a2_0x46ebb0(0x209)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x331))[a2_0x46ebb0(0x209)](async(_0x28d308,_0x5cbdb6)=>{const _0x16d64f=a2_0x46ebb0,_0x18ac04=new LLMAgentShowCommand(),_0x5c312d=program['opts'](),_0x7fff50=await createTDXInstance(_0x5c312d),_0x316e9f=await _0x18ac04[_0x16d64f(0x13f)]({'options':{..._0x5c312d,..._0x5cbdb6},'args':[_0x28d308],'tdx':_0x7fff50});gracefulExit(_0x316e9f);}),agentSyncCmd[a2_0x46ebb0(0x1b4)]('create\x20<name>')[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x1bb))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x33c),a2_0x46ebb0(0x167))['option'](a2_0x46ebb0(0x37e),a2_0x46ebb0(0x12b),'claude-4.5-sonnet')[a2_0x46ebb0(0x25e)]('--starter-message\x20<text>',a2_0x46ebb0(0x17a))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x1b1),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x46ebb0(0x244),a2_0x46ebb0(0x1e7),a2_0x46ebb0(0x22e))[a2_0x46ebb0(0x209)](async(_0x9a2eb8,_0xa11237)=>{const _0x23a56f=a2_0x46ebb0,_0xaed8b4=new LLMAgentCreateCommand(),_0x1c8274=program[_0x23a56f(0x224)](),_0x4d8ce5=await createTDXInstance(_0x1c8274),_0xcf1508=await _0xaed8b4[_0x23a56f(0x13f)]({'options':{..._0x1c8274,..._0xa11237},'args':[_0x9a2eb8],'tdx':_0x4d8ce5});gracefulExit(_0xcf1508);}),agentSyncCmd[a2_0x46ebb0(0x1b4)](a2_0x46ebb0(0x14d))['description'](a2_0x46ebb0(0x302))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x148),a2_0x46ebb0(0x27b))[a2_0x46ebb0(0x25e)]('--prompt\x20<text>',a2_0x46ebb0(0x13e))[a2_0x46ebb0(0x25e)](a2_0x46ebb0(0x287),a2_0x46ebb0(0x2c2))['option']('--starter-message\x20<text>',a2_0x46ebb0(0x17a))[a2_0x46ebb0(0x209)](async(_0xdde51b,_0x301016)=>{const _0x2c98ae=a2_0x46ebb0,_0x9c66e8=new LLMAgentUpdateCommand(),_0x2c26da=program['opts'](),_0x3b1f74=await createTDXInstance(_0x2c26da),_0x213901=await _0x9c66e8[_0x2c98ae(0x13f)]({'options':{..._0x2c26da,..._0x301016},'args':[_0xdde51b],'tdx':_0x3b1f74});gracefulExit(_0x213901);}),agentSyncCmd['command'](a2_0x46ebb0(0x375))[a2_0x46ebb0(0x218)](a2_0x46ebb0(0x13c))[a2_0x46ebb0(0x209)](async(_0x523b46,_0x1640ac)=>{const _0x510266=a2_0x46ebb0,_0x288502=new LLMAgentDeleteCommand(),_0x432027=program[_0x510266(0x224)](),_0xa1eafd=await createTDXInstance(_0x432027),_0x46c10a=await _0x288502[_0x510266(0x13f)]({'options':{..._0x432027,..._0x1640ac},'args':[_0x523b46],'tdx':_0xa1eafd});gracefulExit(_0x46c10a);}),program['command'](a2_0x46ebb0(0x332),{'hidden':!![]})[a2_0x46ebb0(0x209)](()=>{const _0x42ecbf=a2_0x46ebb0;function _0x2fcccf(_0x2ec6c8,_0x926f00){const _0x44ca18=a2_0x17f4,_0x2c6033=[];for(const _0x542605 of _0x2ec6c8[_0x44ca18(0x362)]){if(_0x542605['_hidden'])continue;const _0x28a7c7=_0x926f00?_0x926f00+'\x20'+_0x542605[_0x44ca18(0x271)]():_0x542605[_0x44ca18(0x271)](),_0x373ee9=_0x28a7c7[_0x44ca18(0x386)]('\x20')[0x0],_0x334bdd=COMMAND_CATEGORIES['find'](_0x1811e4=>_0x1811e4[_0x44ca18(0x362)]['includes'](_0x373ee9)),_0x1566a2=_0x334bdd?.[_0x44ca18(0x271)]??'';if(_0x542605['commands'][_0x44ca18(0x2cc)]>0x0)_0x2c6033['push'](..._0x2fcccf(_0x542605,_0x28a7c7));else{const _0x28e42d=(_0x542605[_0x44ca18(0x113)]||[])[_0x44ca18(0x329)](_0x40b7e7=>{const _0xa4bc68=_0x44ca18,_0x1118bc=_0x40b7e7['variadic']?_0x40b7e7[_0xa4bc68(0x271)]()+'...':_0x40b7e7[_0xa4bc68(0x271)]();return _0x40b7e7['required']?'<'+_0x1118bc+'>':'['+_0x1118bc+']';})[_0x44ca18(0x1bd)]('\x20'),_0x435c44=_0x542605[_0x44ca18(0x108)][_0x44ca18(0x25a)](_0x2ef2e8=>!_0x2ef2e8[_0x44ca18(0x114)]&&_0x2ef2e8['long']!==_0x44ca18(0xfe))[_0x44ca18(0x329)](_0x6e8133=>({'flags':_0x6e8133[_0x44ca18(0x1d1)],'description':_0x6e8133[_0x44ca18(0x218)]}));_0x2c6033[_0x44ca18(0x2fb)]({'name':_0x28a7c7,'description':_0x542605['description'](),'group':_0x1566a2,'usage':_0x28e42d,'options':_0x435c44});}}return _0x2c6033;}console[_0x42ecbf(0x2eb)](JSON[_0x42ecbf(0x3a2)](_0x2fcccf(program,''))),process[_0x42ecbf(0x2a4)](0x0);});export{program};export function runCLI(){const _0x3734a0=a2_0x46ebb0,_0x2a1b11=!process[_0x3734a0(0x26c)][_0x3734a0(0x342)](0x2)['length'];showBriefHelp=_0x2a1b11,program[_0x3734a0(0x2fc)](process[_0x3734a0(0x26c)]);_0x2a1b11&&program['outputHelp']();if(process[_0x3734a0(0x1e9)]['isTTY']&&process[_0x3734a0(0x26c)]['length']>0x2&&!isDevVersion()){const _0x43e1d2=loadReleaseChannel();checkForUpdate(currentVersion,_0x43e1d2)['then'](_0x1ae7e6=>{_0x1ae7e6&&displayUpdateNotification(_0x1ae7e6);})[_0x3734a0(0x15f)](()=>{});}}