@treasuredata/tdx 0.12.0 → 0.12.1

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 (148) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/auth-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/context-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/llm-proxy.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/user-command.js +1 -1
  42. package/dist/commands/workflow-command.js +1 -1
  43. package/dist/core/auth.d.ts +2 -4
  44. package/dist/core/auth.d.ts.map +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/auth.js.map +1 -1
  47. package/dist/core/command-output.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/constants.js +1 -1
  51. package/dist/core/credential-cache.js +1 -1
  52. package/dist/core/global-context.d.ts.map +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/global-context.js.map +1 -1
  55. package/dist/core/keychain.js +1 -1
  56. package/dist/core/profile.d.ts +2 -1
  57. package/dist/core/profile.d.ts.map +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/profile.js.map +1 -1
  60. package/dist/core/project-config.js +1 -1
  61. package/dist/core/session.js +1 -1
  62. package/dist/core/user-cache.js +1 -1
  63. package/dist/core/version.d.ts +45 -0
  64. package/dist/core/version.d.ts.map +1 -0
  65. package/dist/core/version.js +1 -0
  66. package/dist/core/version.js.map +1 -0
  67. package/dist/index.js +1 -1
  68. package/dist/proxy/anthropic-adapter.js +1 -1
  69. package/dist/proxy/claude-usage-tracker.js +1 -1
  70. package/dist/proxy/context-signature.js +1 -1
  71. package/dist/proxy/conversation-utils.js +1 -1
  72. package/dist/proxy/server.js +1 -1
  73. package/dist/proxy/session-cache.js +1 -1
  74. package/dist/sdk/agent/agent-config.js +1 -1
  75. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  76. package/dist/sdk/agent/agent-yaml.js +1 -1
  77. package/dist/sdk/api.js +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/endpoints.js +1 -1
  80. package/dist/sdk/client/engage-api-client.js +1 -1
  81. package/dist/sdk/client/http-client.js +1 -1
  82. package/dist/sdk/client/llm-api-client.js +1 -1
  83. package/dist/sdk/client/rate-limiter.js +1 -1
  84. package/dist/sdk/client/td-api-client.js +1 -1
  85. package/dist/sdk/client/trino-api-client.js +1 -1
  86. package/dist/sdk/client/workflow-client.js +1 -1
  87. package/dist/sdk/connection-validator.js +1 -1
  88. package/dist/sdk/connection.js +1 -1
  89. package/dist/sdk/engage.js +1 -1
  90. package/dist/sdk/errors.js +1 -1
  91. package/dist/sdk/index.js +1 -1
  92. package/dist/sdk/io/index.js +1 -1
  93. package/dist/sdk/io/node-filesystem.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm/chat-cache.js +1 -1
  97. package/dist/sdk/llm/index.js +1 -1
  98. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  99. package/dist/sdk/llm/model-aliases.js +1 -1
  100. package/dist/sdk/llm/model-factors.js +1 -1
  101. package/dist/sdk/query/index.js +1 -1
  102. package/dist/sdk/query/sql-parser.js +1 -1
  103. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  104. package/dist/sdk/segment/fields-display.js +1 -1
  105. package/dist/sdk/segment/file-discovery.js +1 -1
  106. package/dist/sdk/segment/journey-utils.js +1 -1
  107. package/dist/sdk/segment/journey-yaml.js +1 -1
  108. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  109. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  110. package/dist/sdk/segment/pull-workflow.js +1 -1
  111. package/dist/sdk/segment/push-workflow.js +1 -1
  112. package/dist/sdk/segment/resolution-context.js +1 -1
  113. package/dist/sdk/segment/segment-path-parser.js +1 -1
  114. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  115. package/dist/sdk/segment/target-resolution.js +1 -1
  116. package/dist/sdk/segment/tdx-config.js +1 -1
  117. package/dist/sdk/segment/validate-files.js +1 -1
  118. package/dist/sdk/segment/yaml-validator.js +1 -1
  119. package/dist/sdk/segment.js +1 -1
  120. package/dist/sdk/types/index.js +1 -1
  121. package/dist/sdk/types/progress.js +1 -1
  122. package/dist/sdk/user.js +1 -1
  123. package/dist/sdk/util/format-detector.js +1 -1
  124. package/dist/sdk/util/formatters.js +1 -1
  125. package/dist/sdk/util/index.js +1 -1
  126. package/dist/sdk/util/tree-formatter.js +1 -1
  127. package/dist/sdk/workflow/clone-workflow.js +1 -1
  128. package/dist/sdk/workflow/index.js +1 -1
  129. package/dist/sdk/workflow/pull-workflow.js +1 -1
  130. package/dist/sdk/workflow/push-workflow.js +1 -1
  131. package/dist/sdk/workflow/tdx-config.js +1 -1
  132. package/dist/sdk/workflow/workflow-utils.js +1 -1
  133. package/dist/utils/async.js +1 -1
  134. package/dist/utils/colors.js +1 -1
  135. package/dist/utils/diff.js +1 -1
  136. package/dist/utils/file-permissions.js +1 -1
  137. package/dist/utils/json-loader.js +1 -1
  138. package/dist/utils/option-validation.js +1 -1
  139. package/dist/utils/port.js +1 -1
  140. package/dist/utils/process.js +1 -1
  141. package/dist/utils/prompt.js +1 -1
  142. package/dist/utils/spinner.js +1 -1
  143. package/dist/utils/sse-parser.js +1 -1
  144. package/dist/utils/string-utils.js +1 -1
  145. package/dist/utils/table-ref-parser.js +1 -1
  146. package/dist/utils/tdx-logger.js +1 -1
  147. package/dist/utils/version-check.js +1 -1
  148. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3d4a9d=a2_0x2b74;(function(_0xa74590,_0x226fea){const _0x5afd32=a2_0x2b74,_0x258e0a=_0xa74590();while(!![]){try{const _0x2da057=parseInt(_0x5afd32(0x2f2))/0x1+parseInt(_0x5afd32(0x3f8))/0x2+-parseInt(_0x5afd32(0x21d))/0x3*(parseInt(_0x5afd32(0x1fa))/0x4)+-parseInt(_0x5afd32(0x329))/0x5+parseInt(_0x5afd32(0x2b1))/0x6+-parseInt(_0x5afd32(0x33a))/0x7*(-parseInt(_0x5afd32(0x2f8))/0x8)+-parseInt(_0x5afd32(0x341))/0x9;if(_0x2da057===_0x226fea)break;else _0x258e0a['push'](_0x258e0a['shift']());}catch(_0x3eafcb){_0x258e0a['push'](_0x258e0a['shift']());}}}(a2_0x1e4b,0x4174c));import{Command}from'commander';import{readFileSync,existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{dirname,join,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';function a2_0x2b74(_0x3c5779,_0x188388){_0x3c5779=_0x3c5779-0x1c1;const _0x1e4b52=a2_0x1e4b();let _0x2b7488=_0x1e4b52[_0x3c5779];return _0x2b7488;}import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}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}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,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}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{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.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{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{ContextCommand}from'./commands/context-command.js';function a2_0x1e4b(){const _0x502090=['workflow','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Get\x20job\x20results','parents\x20[pattern]','use\x20<name>','exit','Template\x20name','project','--email-sender-id\x20<id>','--table\x20<table>','--customer-group\x20<json>','--limit\x20<number>','use\x20<path>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-p,\x20--profile\x20<name>','stats\x20<name-or-path>','includes','--table','--add-attributes\x20<json>','--description\x20<desc>','Agent\x20name','Path\x20is\x20not\x20a\x20directory:\x20','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','result\x20<job-id>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','List\x20all\x20users\x20in\x20the\x20account','duplicate\x20<name-or-id>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Describe\x20table\x20schema','Workspace\x20name','System\x20prompt/instructions\x20(default:\x20empty)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','information_schema','set','--catalog\x20<catalog>','Master\x20database\x20name','Unknown\x20action:\x20','Show\x20connection\x20details\x20by\x20name','--folder\x20<name>','logs','Validate\x20journey\x20YAML\x20files\x20locally','--include-stats','Plaintext\x20template\x20content','show\x20[table]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Start\x20a\x20new\x20chat\x20session','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--subject\x20<subject>','List\x20agents\x20in\x20current\x20project','api\x20[endpoint]','../package.json','chat\x20[message...]','segments\x20[path]','Create\x20a\x20new\x20campaign','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--dry-run','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','padEnd','push\x20[source-dir]','--jsonl','push\x20[file]','pause\x20<name-or-path>','auth','Open\x20segment\x20in\x20web\x20browser','types','Clear\x20workflow\x20project\x20context','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--segment\x20<path>','desc','launch\x20<name-or-id>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Folder\x20description','Set\x20operation\x20timeout\x20in\x20seconds','Run\x20Trino\x20query\x20with\x20streaming\x20results','chdir','-c,\x20--continue','Task\x20name\x20for\x20logs\x20action','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--resume-from\x20<task>','--system-prompt\x20<text>','validate\x20[name]','-o,\x20--output\x20<file>','filter','Pull\x20workflow\x20project\x20to\x20local\x20folder','Action:\x20logs,\x20tasks,\x20kill,\x20retry','subcommandTerm','--status\x20<status>','Show\x20job\x20details','Create\x20a\x20workspace','requiredOption','New\x20segment\x20name','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Folder\x20name\x20for\x20organization','Manage\x20workflow\x20project\x20secrets','Pull\x20specific\x20revision\x20(default:\x20latest)','--in\x20<database>','view\x20[segment_name]','Update\x20an\x20email\x20template','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','user','[task-name]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','preview\x20[file]','--from-task\x20<task>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','us01','trino','Resume\x20from\x20specific\x20task\x20(retry)','INFO','kill\x20<job-id>','--database\x20<db>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','desc\x20[segment_name]','List\x20available\x20connector\x20types','Campaign\x20type\x20(email\x20or\x20push)','Create\x20a\x20new\x20LLM\x20project','--type\x20<api_type>','get',',\x20version\x20','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','validate\x20[target]','-y,\x20--yes','--schedule-option\x20<value>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','agents\x20[pattern]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Updated\x20description','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--site\x20<site>','Maximum\x20tool\x20iterations\x20(default:\x204)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','User\x20management\x20commands','run\x20[workflow]','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20agent\x20details','--add-behaviors-file\x20<file>','llm','optionTerm','Set\x20or\x20show\x20parent\x20segment\x20context','preAction','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Campaign\x20name','use\x20<project-name>','name','Campaign\x20management','retry','workspace','tables\x20[pattern]','argumentTerm','-d,\x20--database\x20<database>','create\x20<segment_name>','Parent\x20segment\x20management','activations\x20<segment_name>','Segment\x20description','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--invisible','--type\x20<type>','--output\x20<file>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','commands','Pause\x20a\x20running\x20journey','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','-u,\x20--use','show\x20[name]','Agent\x20prompt/instructions','update\x20<name-or-id>','repeat','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Preview\x20changes\x20without\x20writing\x20files','show\x20<agent-name>','update\x20<agent-name>','--parent-segment\x20<name>','template','264278bzRZWg','create\x20<name>','--name\x20<new-name>','Workflow\x20attempt\x20management','claude\x20[args...]','summary','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','download\x20<project-name>\x20[output-dir]','create\x20<parent_name>\x20<folder_name>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','json','site','show\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Show\x20stats\x20for\x20specific\x20stage','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Read\x20query\x20from\x20file','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','stderr','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--session-time\x20<time>','view\x20<name-or-path>','templates\x20[pattern]','--add-behaviors\x20<json>','commandDescription','INVALID_ARGUMENT','List\x20jobs','Job\x20management\x20commands','Timezone\x20(e.g.,\x20America/Los_Angeles)','status','validate\x20[file]','--param\x20<key=value>','Skip\x20validation\x20of\x20.dig\x20files','Parent\x20segment\x20description','registeredArguments','Force\x20retry\x20even\x20if\x20not\x20failed','--model\x20<name>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20only\x20master\x20table\x20validation','run','--max-depth\x20<depth>','parse','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Delete\x20an\x20email\x20template','--enriched','Delete\x20an\x20LLM\x20project','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20web\x20console\x20URLs\x20for\x20segments','0.7','--delete','Updated\x20timezone','TRACE','CDP\x20Journey\x20Orchestration\x20commands','Usage:\x20','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','format','--clear','argumentDescription','list','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','noColor','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Arguments:','segment','Database\x20name\x20(default:\x20information_schema)','delete\x20<agent-name>','replace','context','-n,\x20--name\x20<name>','--port\x20<number>','--tsv','--prompt\x20<text>','-d,\x20--database\x20<name>','--timeout\x20<seconds>','--max-tool-iterations\x20<n>','list\x20[project]','--parent-folder\x20<name>','folder','--include-subtasks','description','-C,\x20--directory\x20<path>','argv','Email\x20subject\x20template','upload\x20[project-name-or-dir]','--trace','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','parent_segment','[action]','4frUwBk','length','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','isTTY','Table\x20management\x20commands','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','connections','Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Preview\x20changes\x20without\x20pushing','attempts\x20[project]','Custom\x20revision\x20name\x20(default:\x20timestamp)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','database','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Show\x20segment\x20details\x20(alias\x20for\x20view)','--stage\x20<name>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Workflow\x20(Digdag)\x20management\x20commands','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Show\x20email\x20template\x20details','--schedule-type\x20<type>','Show\x20journey\x20details','buildTime','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','view\x20[name]','after','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Output\x20file\x20path\x20(default:\x20<name>.yml)','Show\x20journey\x20statistics','pull\x20[parent_or_file]','Launch\x20a\x20campaign','251004SWLMfe','Override\x20project\x20name','Trino\x20catalog\x20(default:\x20td)','push\x20[name]','createAsync','--plaintext\x20<text>','Show\x20agent\x20chat\x20URLs','DEBUG','table','Resume\x20a\x20paused\x20journey','\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','sessions\x20[project]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--timezone\x20<tz>','Revision\x20name\x20(default:\x20timestamp)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--interval\x20<range>','Campaign\x20description','Kill\x20a\x20job','kill','Move\x20to\x20folder','usage','create','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Master\x20table\x20name','history\x20[chat-id]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','delete\x20<name-or-id>','Show\x20master\x20table\x20sample\x20data','\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','--include-retried','build-info.json','campaign','workflows\x20[project]','secrets','Commands:','-o,\x20--output\x20<dir>','folders\x20<parent_name>','push\x20[target]','utf-8','--params\x20<json>','slice','Update\x20an\x20existing\x20agent','Read\x20SQL\x20query\x20from\x20file','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--editor-type\x20<type>','--format\x20<format>','argument','Include\x20retried\x20attempts','tdx','subcommandDescription','Starter\x20message','map','--behaviors\x20<json>','Workspace\x20management','-w,\x20--web','Output\x20directory','Parent\x20folder\x20name\x20for\x20nested\x20folders','Name\x20for\x20the\x20new\x20project\x20(required)','Skip\x20confirmation\x20prompt','--workspace\x20<name>','--from\x20<timestamp>','Delete\x20a\x20workspace','-r,\x20--recursive','--attribute\x20[name]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','agent','engage','List\x20available\x20LLM\x20models','run\x20[name]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Continue\x20most\x20recent\x20conversation','Remove\x20API\x20key\x20from\x20system\x20keychain','\x20-\x20built\x20','pause\x20<name-or-id>','\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','list\x20[pattern]','help','--project\x20<name>','push\x20[path]','action','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Output\x20as\x20JSON','join','-f,\x20--force','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','--attributes-file\x20<file>','--name\x20<name>','-r,\x20--resume','backup\x20<name>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Skip\x20confirmation\x20prompts','.dev','submit\x20[query]','preview\x20[name]','command','schema\x20<type>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','New\x20template\x20name','--in\x20<name>','users','Show\x20the\x20most\x20recent\x20chat','--full','Delete\x20an\x20agent','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','[attempt-id]','error','opts','--starter-message\x20<text>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--last','describe\x20[table]','isArray','JSON\x20columns\x20for\x20connector\x20(comma-separated)','LLM\x20project\x20management','--limit\x20<n>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Database\x20management\x20commands','alias','allowExcessArguments','Include\x20retried\x20attempts\x20(for\x20list)','New\x20campaign\x20name','Open\x20journey\x20in\x20web\x20browser','Options:','Agent\x20description','Attempt\x20ID','update\x20<segment_name>','logLevel','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','resume\x20<name-or-id>','Interactive\x20chat\x20selector','-X,\x20--method\x20<method>','port','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','log','query\x20[sql]','--html\x20<html>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','desc\x20[name]','Add\x20behaviors\x20from\x20JSON\x20file','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Duplicate\x20a\x20campaign','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Delete\x20a\x20campaign','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','configureHelp','1907580mMHYEG','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','delete\x20<project-name-or-id>','--description\x20<text>','isDirectory','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','List\x20all\x20data\x20connections','List\x20secret\x20keys\x20for\x20a\x20project','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','parent-segment','sql\x20[segment_name]','addHelpText','delete\x20<args...>','use\x20[name]','profiles','projects\x20[pattern]','attempt:','show\x20[segment_name]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','hook','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--json-columns\x20<cols>','--agent\x20<ref>','--no-proxy','directory','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--force','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','tasks','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','allowUnknownOption','Authentication\x20management','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','debug','Request\x20body\x20as\x20JSON\x20string','--name\x20<new_name>','sql\x20[name]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','describe','Attributes\x20as\x20JSON\x20string','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Output\x20folder\x20(default:\x20{project_name}.llm)','Workflow\x20project\x20management','HTML\x20template\x20content','--rule\x20<json>','clear','tsv','padWidth','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Submit\x20a\x20job','Customer\x20group\x20from\x20JSON\x20file','pull\x20[name]','Clear\x20session\x20context','--debug','Workflow\x20session\x20management','Output\x20as\x20JSON\x20Lines','Preview\x20operation\x20without\x20executing','--temperature\x20<n>','--master','236287qHwbWO','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','optionDescription','--color','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','208MXPMuK','show\x20<job-id>','\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','--revision\x20<revision>','\x20(resolved\x20to\x20','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','commandUsage','--database\x20<name>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Limit\x20number\x20of\x20rows','statusline','Show\x20campaign\x20details','--reason\x20<text>','GET','Email\x20sender\x20ID\x20for\x20delivery','--json','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20workspace\x20details','Make\x20segment\x20invisible\x20(default:\x20visible)','show\x20<folder_ref>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--new','use\x20[project]','-f,\x20--file\x20<path>','show\x20<name-or-id>','injectIntoOptions','Filtering\x20rule\x20as\x20JSON\x20string','Project\x20description','pull\x20[project]\x20[agent-name]','push','--yes','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','gitRevision','Behaviors\x20as\x20JSON\x20string','--kind\x20<type>','--behavior\x20[name]','Show\x20console\x20URLs','option','--skip-validation','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Overwrite\x20local\x20changes\x20without\x20confirmation','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','colorFn','fields\x20[parent_name]','394435FnBiOK','Push\x20without\x20confirmation','options','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--start-at\x20<datetime>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Resume\x20from\x20specific\x20task','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','-1d','stdout','Workspace\x20description','flatMap','--to\x20<timestamp>','Database\x20to\x20query\x20(default:\x20information_schema)','attempt','version','Add\x20behaviors\x20as\x20JSON\x20string','129479FJvAxV','--version','jsonl','profile','-H,\x20--header\x20<header>','-o,\x20--output\x20<folder>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','6629535rCxhGb','workspaces\x20[pattern]'];a2_0x1e4b=function(){return _0x502090;};return a2_0x1e4b();}import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-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{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),packageJson=JSON['parse'](readFileSync(join(__dirname,a2_0x3d4a9d(0x376)),a2_0x3d4a9d(0x245)));let buildInfo={};try{buildInfo=JSON[a2_0x3d4a9d(0x1cb)](readFileSync(join(__dirname,a2_0x3d4a9d(0x23d)),a2_0x3d4a9d(0x245)));}catch{}if(process[a2_0x3d4a9d(0x1f3)][a2_0x3d4a9d(0x354)](a2_0x3d4a9d(0x33b))){let versionOutput='tdx\x20'+packageJson[a2_0x3d4a9d(0x338)];buildInfo[a2_0x3d4a9d(0x31c)]&&(versionOutput+='\x20('+buildInfo[a2_0x3d4a9d(0x31c)]+')'),buildInfo[a2_0x3d4a9d(0x213)]&&(versionOutput+=a2_0x3d4a9d(0x267)+buildInfo[a2_0x3d4a9d(0x213)]),console[a2_0x3d4a9d(0x2a5)](versionOutput),process[a2_0x3d4a9d(0x348)](0x0);}const program=new Command();let description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']?description+=a2_0x3d4a9d(0x3be)+packageJson[a2_0x3d4a9d(0x338)]+'\x20('+buildInfo[a2_0x3d4a9d(0x31c)]+')':description+=a2_0x3d4a9d(0x3be)+packageJson[a2_0x3d4a9d(0x338)];program['name'](a2_0x3d4a9d(0x24f))[a2_0x3d4a9d(0x1f1)](description),program[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f2),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x3d4a9d(0x352),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c9),a2_0x3d4a9d(0x278),a2_0x3d4a9d(0x3b1))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x24c),a2_0x3d4a9d(0x2d2))['option'](a2_0x3d4a9d(0x355),a2_0x3d4a9d(0x2f7))['option'](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x372))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37f),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e8),a2_0x3d4a9d(0x3bf))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e8),'Save\x20output\x20to\x20file')['option'](a2_0x3d4a9d(0x34e),a2_0x3d4a9d(0x32e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f5),a2_0x3d4a9d(0x2c8),![])[a2_0x3d4a9d(0x321)]('--no-color',a2_0x3d4a9d(0x237),![])[a2_0x3d4a9d(0x321)]('-v,\x20--verbose','Enable\x20verbose\x20logging',![])[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2ec),a2_0x3d4a9d(0x370))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f6),a2_0x3d4a9d(0x214))['option'](a2_0x3d4a9d(0x1eb),a2_0x3d4a9d(0x38f),'30')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x2ef),![])[a2_0x3d4a9d(0x321)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x3d4a9d(0x321)]('--session\x20<id>',a2_0x3d4a9d(0x1d8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ea),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x3d4a9d(0x281),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3f6),a2_0x3d4a9d(0x405))[a2_0x3d4a9d(0x321)]('--llm-project\x20<name>',a2_0x3d4a9d(0x2b8)),program[a2_0x3d4a9d(0x2b0)]({'formatHelp':(_0x39e2f1,_0x48b9b1)=>{const _0x2e2976=a2_0x3d4a9d,_0x4153f8=_0x48b9b1[_0x2e2976(0x2e6)](_0x39e2f1,_0x48b9b1),_0x157fdf=0x2,_0x4fcd12=0x2;function _0x2851d6(_0x1e6615){const _0x125a28=_0x1e6615;return!!(_0x125a28['_hidden']||_0x125a28['hidden']);}function _0x49a87c(_0x3f2c79,_0x1cf29c){const _0x103c0c=_0x2e2976;if(_0x1cf29c){const _0x381cb5=''+_0x3f2c79[_0x103c0c(0x37d)](_0x4153f8+_0x4fcd12)+_0x1cf29c;return _0x381cb5;}return _0x3f2c79;}function _0xb53278(_0x5cd41c){const _0x2ef3f5=_0x2e2976;return _0x5cd41c[_0x2ef3f5(0x271)]('\x0a')[_0x2ef3f5(0x1e4)](/^/gm,'\x20'[_0x2ef3f5(0x3f1)](_0x157fdf));}const _0x431af7=[];_0x431af7[_0x2e2976(0x317)](_0x2e2976(0x1d7)+_0x48b9b1[_0x2e2976(0x2fe)](_0x39e2f1));const _0x18e54a=_0x48b9b1[_0x2e2976(0x413)](_0x39e2f1);_0x18e54a&&(_0x431af7[_0x2e2976(0x317)](''),_0x431af7[_0x2e2976(0x317)](_0x18e54a));const _0x2e5e50=_0x39e2f1[_0x2e2976(0x3ea)][_0x2e2976(0x399)](_0x12e726=>!_0x2851d6(_0x12e726));if(_0x2e5e50[_0x2e2976(0x1fb)]>0x0){if(_0x39e2f1[_0x2e2976(0x3da)]()===_0x2e2976(0x24f)){const _0x1e8e8d=_0x39e2f1[_0x2e2976(0x289)](),_0x991b53=!_0x1e8e8d[_0x2e2976(0x1de)]&&process[_0x2e2976(0x332)]['isTTY'],_0x2e1aed=COMMAND_CATEGORIES,_0x2c5b7a=(_0xd11cb,_0x1dfe8f)=>_0x991b53?_0x1dfe8f(_0xd11cb):_0xd11cb,_0x5ccc77=new Map();_0x2e5e50['forEach'](_0x20b64a=>{const _0x31c262=_0x2e2976;_0x5ccc77[_0x31c262(0x365)](_0x20b64a[_0x31c262(0x3da)](),_0x20b64a);}),_0x2e1aed['forEach'](_0x1b4537=>{const _0x1eceeb=_0x2e2976,_0x102d36=_0x1b4537['commands'][_0x1eceeb(0x334)](_0x514e0a=>_0x5ccc77[_0x1eceeb(0x3bd)](_0x514e0a)??[]);if(_0x102d36[_0x1eceeb(0x1fb)]>0x0){_0x431af7[_0x1eceeb(0x317)](''),_0x431af7[_0x1eceeb(0x317)](_0x2c5b7a(_0x1b4537[_0x1eceeb(0x3da)]+':',_0x1b4537[_0x1eceeb(0x327)]));const _0x4f9f21=_0x102d36[_0x1eceeb(0x252)](_0x4eb9bf=>{const _0x3496e7=_0x1eceeb,_0xbbd344=_0x48b9b1[_0x3496e7(0x39c)](_0x4eb9bf),_0x44d593=_0x48b9b1[_0x3496e7(0x250)](_0x4eb9bf);return _0x49a87c(_0xbbd344,_0x44d593);});_0x431af7['push'](_0xb53278(_0x4f9f21));}}),_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x40b));}else{const _0x2a33cc=_0x2e5e50[_0x2e2976(0x252)](_0x32a749=>{const _0x3eb18a=_0x2e2976,_0x304e22=_0x48b9b1[_0x3eb18a(0x39c)](_0x32a749),_0x55409e=_0x48b9b1[_0x3eb18a(0x250)](_0x32a749);return _0x49a87c(_0x304e22,_0x55409e);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x241)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x2a33cc));}}const _0x239d90=_0x39e2f1[_0x2e2976(0x32b)][_0x2e2976(0x399)](_0x2bb343=>!_0x2851d6(_0x2bb343));if(_0x239d90[_0x2e2976(0x1fb)]>0x0){const _0x46856c=_0x239d90[_0x2e2976(0x252)](_0x53d454=>{const _0x28bc73=_0x2e2976,_0x670cfc=_0x48b9b1[_0x28bc73(0x3d4)](_0x53d454),_0x5d5755=_0x48b9b1[_0x28bc73(0x2f4)](_0x53d454);return _0x49a87c(_0x670cfc,_0x5d5755);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7['push'](_0x2e2976(0x29a)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x46856c));}const _0x2dd5ca=(_0x39e2f1['registeredArguments']||[])[_0x2e2976(0x399)](_0x14c63c=>!_0x2851d6(_0x14c63c));if(_0x2dd5ca['length']>0x0){const _0x4ae0cb=_0x2dd5ca['map'](_0x1893e5=>{const _0x253ca7=_0x2e2976,_0x5d9734=_0x48b9b1[_0x253ca7(0x3df)](_0x1893e5),_0xf0bdfd=_0x48b9b1[_0x253ca7(0x1db)](_0x1893e5);return _0x49a87c(_0x5d9734,_0xf0bdfd);});_0x431af7[_0x2e2976(0x317)](''),_0x431af7[_0x2e2976(0x317)](_0x2e2976(0x1e0)),_0x431af7[_0x2e2976(0x317)](_0xb53278(_0x4ae0cb));}return _0x431af7[_0x2e2976(0x271)]('\x0a');},'subcommandTerm':_0x4fffd5=>{const _0x26dc8f=a2_0x3d4a9d,_0x86998e=(_0x4fffd5[_0x26dc8f(0x1c4)]||[])['map'](_0x27eac9=>_0x27eac9['required']?'<'+_0x27eac9[_0x26dc8f(0x3da)]()+'>':'['+_0x27eac9[_0x26dc8f(0x3da)]()+']')[_0x26dc8f(0x271)]('\x20'),_0x3242f4=_0x4fffd5['aliases'](),_0x2b5fd1=_0x3242f4[_0x26dc8f(0x1fb)]>0x0?_0x4fffd5['name']()+',\x20'+_0x3242f4[_0x26dc8f(0x271)](',\x20'):_0x4fffd5['name']();return _0x86998e?_0x2b5fd1+'\x20'+_0x86998e:_0x2b5fd1;}}),program[a2_0x3d4a9d(0x2c9)](a2_0x3d4a9d(0x3d6),_0x4bb9a2=>{const _0x44d440=a2_0x3d4a9d,_0x40bcab=_0x4bb9a2[_0x44d440(0x289)]();if(_0x40bcab['directory']){const _0x26b1c6=resolve(_0x40bcab['directory']),_0x103e2d=_0x26b1c6!==_0x40bcab[_0x44d440(0x2ce)]?_0x44d440(0x2fc)+_0x26b1c6+')':'';if(!existsSync(_0x26b1c6))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Directory\x20does\x20not\x20exist:\x20'+_0x40bcab['directory']+_0x103e2d,undefined,{'helpText':_0x44d440(0x1f7)});const _0x19ea19=statSync(_0x26b1c6);if(!_0x19ea19[_0x44d440(0x2b5)]())throw new SDKError(ErrorCode[_0x44d440(0x414)],_0x44d440(0x359)+_0x40bcab['directory']+_0x103e2d,undefined,{'helpText':_0x44d440(0x2d1)});process[_0x44d440(0x391)](_0x26b1c6);}if(!_0x40bcab['format']){if(_0x40bcab[_0x44d440(0x225)])_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x225);else{if(_0x40bcab[_0x44d440(0x402)])_0x40bcab['format']=_0x44d440(0x402);else{if(_0x40bcab[_0x44d440(0x33c)])_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x33c);else _0x40bcab[_0x44d440(0x2e5)]&&(_0x40bcab[_0x44d440(0x1d9)]=_0x44d440(0x2e5));}}}_0x40bcab['in']&&!_0x40bcab[_0x44d440(0x208)]&&(_0x40bcab[_0x44d440(0x208)]=_0x40bcab['in']);if(_0x40bcab['trace'])_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x1d5)];else{if(_0x40bcab[_0x44d440(0x2d8)])_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x224)];else _0x40bcab['logLevel']===undefined&&(_0x40bcab[_0x44d440(0x29e)]=LogLevel[_0x44d440(0x3b4)]);}});async function createTDXInstance(_0x36199c){const _0x291528=a2_0x3d4a9d,_0xf487b0=await GlobalContext[_0x291528(0x221)](_0x36199c);return _0xf487b0[_0x291528(0x313)](_0x36199c),TDX['create']({'site':_0xf487b0[_0x291528(0x403)],'apiKey':_0xf487b0['apiKey'],'logLevel':_0xf487b0[_0x291528(0x29e)],'profile':_0xf487b0[_0x291528(0x33d)]});}const databaseCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x208))['alias']('db')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x294)),databaseListAction=async(_0x4c5da7,_0x6f2535)=>{const _0xe17225=a2_0x3d4a9d,_0x30aa3a=new DatabasesCommand(),_0x42cc82=program[_0xe17225(0x289)](),_0x10832d=await createTDXInstance(_0x42cc82),_0x8a0914=await _0x30aa3a[_0xe17225(0x1c9)]({'options':{..._0x42cc82,..._0x6f2535},'args':_0x4c5da7?[_0x4c5da7]:[],'tdx':_0x10832d});process[_0xe17225(0x348)](_0x8a0914);};databaseCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3d4a9d(0x26e)](databaseListAction),program[a2_0x3d4a9d(0x27d)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x3d4a9d(0x26e)](databaseListAction),program['command'](a2_0x3d4a9d(0x377))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cc),'Agent\x20reference\x20(project-name/agent-name)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x30f),a2_0x3d4a9d(0x371))[a2_0x3d4a9d(0x26e)](async(_0x4cb577,_0x4f42af)=>{const _0x5ef2b2=a2_0x3d4a9d,_0xb76f9a=new ChatCommand(),_0x10b9ad=program[_0x5ef2b2(0x289)](),_0x4e23aa=await createTDXInstance(_0x10b9ad),_0xffba8a=await _0xb76f9a[_0x5ef2b2(0x1c9)]({'options':{..._0x10b9ad,..._0x4f42af},'args':_0x4cb577,'tdx':_0x4e23aa});process[_0x5ef2b2(0x348)](_0xffba8a);});const apiCmd=program['command'](a2_0x3d4a9d(0x375))[a2_0x3d4a9d(0x3fd)](a2_0x3d4a9d(0x25f))[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x227))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2a2),a2_0x3d4a9d(0x2cf),a2_0x3d4a9d(0x306))[a2_0x3d4a9d(0x321)]('--data\x20<data>',a2_0x3d4a9d(0x2d9))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x311),'Read\x20request\x20body\x20from\x20file')['option'](a2_0x3d4a9d(0x33e),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5d6818,_0x281aee)=>{return _0x281aee?[..._0x281aee,_0x5d6818]:[_0x5d6818];})[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3bc),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x3d4a9d(0x26e)](async(_0x56cea0,_0xf134d8)=>{const _0x1eed34=a2_0x3d4a9d;if(!_0x56cea0){apiCmd[_0x1eed34(0x26b)]();return;}const _0x444667=new ApiCommand(),_0x560376=program[_0x1eed34(0x289)](),_0x50571e=await createTDXInstance(_0x560376),_0x2ee00d=await _0x444667[_0x1eed34(0x1c9)]({'options':{..._0x560376,..._0xf134d8},'args':[_0x56cea0],'tdx':_0x50571e});process[_0x1eed34(0x348)](_0x2ee00d);}),tableCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x225))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1fe)),tableListAction=async(_0x3a40fd,_0x336159)=>{const _0x3df8fe=a2_0x3d4a9d,_0x5e7d32=new TablesCommand(),_0x41755c=program[_0x3df8fe(0x289)](),_0x41a504=await createTDXInstance(_0x41755c);_0x336159['in']&&(_0x336159[_0x3df8fe(0x208)]=_0x336159['in']);const _0x10aecb=await _0x5e7d32[_0x3df8fe(0x1c9)]({'options':{..._0x41755c,..._0x336159},'args':_0x3a40fd?[_0x3a40fd]:[],'tdx':_0x41a504});process[_0x3df8fe(0x348)](_0x10aecb);};tableCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x32c))[a2_0x3d4a9d(0x321)]('-d,\x20--database\x20<database>',a2_0x3d4a9d(0x3c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](tableListAction),program['command'](a2_0x3d4a9d(0x3de),{'hidden':!![]})['description'](a2_0x3d4a9d(0x37a))[a2_0x3d4a9d(0x321)]('-d,\x20--database\x20<database>',a2_0x3d4a9d(0x3c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](tableListAction),program['command'](a2_0x3d4a9d(0x36f))[a2_0x3d4a9d(0x1f1)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](async(_0x1d6e46,_0x1ba85d)=>{const _0xebd5f0=a2_0x3d4a9d,_0x218b63=new ShowCommand(),_0x4d0d39=program['opts'](),_0x3e4d46=await createTDXInstance(_0x4d0d39);_0x1ba85d['in']&&(_0x1ba85d[_0xebd5f0(0x208)]=_0x1ba85d['in']);const _0x49e13a=await _0x218b63['run']({'options':{..._0x4d0d39,..._0x1ba85d},'args':_0x1d6e46?[_0x1d6e46]:[],'tdx':_0x3e4d46});process['exit'](_0x49e13a);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x28e))[a2_0x3d4a9d(0x295)](a2_0x3d4a9d(0x388))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x360))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3d4a9d(0x321)]('--in\x20<database>',a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x26e)](async(_0x7c741,_0x4ffe1a)=>{const _0x57ac83=a2_0x3d4a9d,_0x1a0e04=new DescribeCommand(),_0x43605e=program[_0x57ac83(0x289)](),_0x3d1035=await createTDXInstance(_0x43605e);_0x4ffe1a['in']&&(_0x4ffe1a[_0x57ac83(0x208)]=_0x4ffe1a['in']);const _0x2d0f3b=await _0x1a0e04[_0x57ac83(0x1c9)]({'options':{..._0x43605e,..._0x4ffe1a},'args':_0x7c741?[_0x7c741]:[],'tdx':_0x3d1035});process['exit'](_0x2d0f3b);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2a6))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x390))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e0),a2_0x3d4a9d(0x336))['option'](a2_0x3d4a9d(0x3a6),a2_0x3d4a9d(0x234))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x366),a2_0x3d4a9d(0x21f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x311),a2_0x3d4a9d(0x249))[a2_0x3d4a9d(0x321)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3d4a9d(0x26e)](async(_0x2254a7,_0x8a114e)=>{const _0x4f63f4=a2_0x3d4a9d,_0x5245c1=new QueryCommand(),_0x39b0a6=program[_0x4f63f4(0x289)](),_0x3e9817=await createTDXInstance(_0x39b0a6);_0x8a114e['in']&&(_0x8a114e[_0x4f63f4(0x208)]=_0x8a114e['in']);const _0x540add=await _0x5245c1[_0x4f63f4(0x1c9)]({'options':{..._0x39b0a6,..._0x8a114e},'args':_0x2254a7?[_0x2254a7]:[],'tdx':_0x3e9817});process[_0x4f63f4(0x348)](_0x540add);});const segmentCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e1))['alias']('sg')[a2_0x3d4a9d(0x1f1)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x45467e,_0x31c96d)=>{const _0x17b3fe=a2_0x3d4a9d,_0x2f2b3a=new SegmentsCommand(),_0x8fb83f=program[_0x17b3fe(0x289)](),_0x121d05=await createTDXInstance(_0x8fb83f),_0x21c065=await _0x2f2b3a['run']({'options':{..._0x8fb83f,..._0x31c96d},'args':_0x45467e?[_0x45467e]:[],'tdx':_0x121d05});process[_0x17b3fe(0x348)](_0x21c065);};segmentCmd[a2_0x3d4a9d(0x27d)]('list\x20[path]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x40c))[a2_0x3d4a9d(0x321)]('-r,\x20--recursive',a2_0x3d4a9d(0x40e))['option']('--max-depth\x20<depth>',a2_0x3d4a9d(0x1c7),'10')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x1d1))[a2_0x3d4a9d(0x26e)](segmentListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x378),{'hidden':!![]})['description'](a2_0x3d4a9d(0x35f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25d),a2_0x3d4a9d(0x40e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ca),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['option'](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x1d1))['action'](segmentListAction),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x34f),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x386))[a2_0x3d4a9d(0x26e)](async(_0x3ce009,_0x277695)=>{const _0x128c9e=a2_0x3d4a9d,_0x5ec20d=new SegmentUseCommand(),_0x3c1355=program['opts'](),_0x482779=await createTDXInstance(_0x3c1355),_0x1c79f2=await _0x5ec20d[_0x128c9e(0x1c9)]({'options':{..._0x3c1355,..._0x277695},'args':[_0x3ce009],'tdx':_0x482779});process[_0x128c9e(0x348)](_0x1c79f2);});const segmentViewAction=async(_0x1a136f,_0x4988ba)=>{const _0x1a7a67=a2_0x3d4a9d,_0x4c2ee0=new SegmentViewCommand(),_0x2c84f2=program[_0x1a7a67(0x289)](),_0x31feb5=await createTDXInstance(_0x2c84f2),_0x5f177d=await _0x4c2ee0['run']({'options':{..._0x2c84f2,..._0x4988ba},'args':_0x1a136f?[_0x1a136f]:[],'tdx':_0x31feb5});process['exit'](_0x5f177d);};segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3a7))[a2_0x3d4a9d(0x1f1)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x383))[a2_0x3d4a9d(0x26e)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x3d4a9d(0x295)](a2_0x3d4a9d(0x2dd))['option']('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x20a))['action'](segmentViewAction),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3b8))[a2_0x3d4a9d(0x1f1)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x3d4a9d(0x26e)](async(_0x18ccfc,_0x1ea8f8)=>{const _0x16b1d9=a2_0x3d4a9d,_0x8aa774=new SegmentDescCommand(),_0x56302f=program[_0x16b1d9(0x289)](),_0x4bcf26=await createTDXInstance(_0x56302f),_0x322a8f=await _0x8aa774[_0x16b1d9(0x1c9)]({'options':{..._0x56302f,..._0x1ea8f8},'args':_0x18ccfc?[_0x18ccfc]:[],'tdx':_0x4bcf26});process[_0x16b1d9(0x348)](_0x322a8f);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c6))['description'](a2_0x3d4a9d(0x207))[a2_0x3d4a9d(0x26e)](async(_0x5876bc,_0x3d6083)=>{const _0x4b8ad8=a2_0x3d4a9d,_0x3bd845=new SegmentShowCommand(),_0x386d2a=program[_0x4b8ad8(0x289)](),_0x5c9ccc=await createTDXInstance(_0x386d2a),_0x4e3138=await _0x3bd845[_0x4b8ad8(0x1c9)]({'options':{..._0x386d2a,..._0x3d6083},'args':_0x5876bc?[_0x5876bc]:[],'tdx':_0x5c9ccc});process[_0x4b8ad8(0x348)](_0x4e3138);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x243),{'hidden':!![]})['description'](a2_0x3d4a9d(0x350))[a2_0x3d4a9d(0x26e)](async(_0x3ed535,_0x35c107)=>{const _0x350e5a=a2_0x3d4a9d,_0x24ba50=new SegmentFolderListCommand(),_0xec0c25=program[_0x350e5a(0x289)](),_0x830f67=await createTDXInstance(_0xec0c25),_0x23026a=await _0x24ba50['run']({'options':{..._0xec0c25,..._0x35c107},'args':[_0x3ed535],'tdx':_0x830f67});process['exit'](_0x23026a);});const folderCmd=segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1ef),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x30d))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2c7))[a2_0x3d4a9d(0x26e)](async(_0x232dca,_0x45ba7c)=>{const _0x194e15=a2_0x3d4a9d,_0x54afcc=new SegmentFolderShowCommand(),_0x4703b1=program[_0x194e15(0x289)](),_0x332a80=await createTDXInstance(_0x4703b1),_0x22c4e5=await _0x54afcc[_0x194e15(0x1c9)]({'options':{..._0x4703b1,..._0x45ba7c},'args':[_0x232dca],'tdx':_0x332a80});process[_0x194e15(0x348)](_0x22c4e5);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2bf))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2fd))[a2_0x3d4a9d(0x26e)](async(_0x433d01,_0x5c3bef)=>{const _0x22a807=a2_0x3d4a9d,_0x769947=new SegmentSQLCommand(),_0x949c55=program[_0x22a807(0x289)](),_0x4bd1ed=await createTDXInstance(_0x949c55),_0x5a2db2=await _0x769947[_0x22a807(0x1c9)]({'options':{..._0x949c55,..._0x5c3bef},'args':_0x433d01?[_0x433d01]:[],'tdx':_0x4bd1ed});process['exit'](_0x5a2db2);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x328))[a2_0x3d4a9d(0x1f1)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x3d4a9d(0x26e)](async(_0x33884e,_0x2cb676)=>{const _0x3f9fdf=a2_0x3d4a9d,_0x771943=new SegmentFieldsCommand(),_0x5e3d19=program[_0x3f9fdf(0x289)](),_0x113dac=await createTDXInstance(_0x5e3d19),_0xc339ff=await _0x771943[_0x3f9fdf(0x1c9)]({'options':{..._0x5e3d19,..._0x2cb676},'args':_0x33884e?[_0x33884e]:[],'tdx':_0x113dac});process[_0x3f9fdf(0x348)](_0xc339ff);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x21b))[a2_0x3d4a9d(0x1f1)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x279))[a2_0x3d4a9d(0x321)]('--dry-run',a2_0x3d4a9d(0x2af))['action'](async(_0x3ab348,_0x395c7d)=>{const _0x12b658=a2_0x3d4a9d,_0x1e9929=new SegmentPullCommand(),_0x596342=program[_0x12b658(0x289)](),_0x54cece=await createTDXInstance(_0x596342),_0x5c272b=await _0x1e9929['run']({'options':{..._0x596342,..._0x395c7d},'args':_0x3ab348?[_0x3ab348]:[],'tdx':_0x54cece});process[_0x12b658(0x348)](_0x5c272b);}),segmentCmd[a2_0x3d4a9d(0x27d)]('push\x20[parent_or_file]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x35c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x279))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x2af))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1d3),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x3d4a9d(0x26e)](async(_0x29900d,_0x483505)=>{const _0x4d7107=a2_0x3d4a9d,_0x1af324=new SegmentPushCommand(),_0x155fbb=program['opts'](),_0x458a15=await createTDXInstance(_0x155fbb),_0x387fc6=await _0x1af324[_0x4d7107(0x1c9)]({'options':{..._0x155fbb,..._0x483505},'args':_0x29900d?[_0x29900d]:[],'tdx':_0x458a15});process['exit'](_0x387fc6);}),segmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c0))['description'](a2_0x3d4a9d(0x3cc))['action'](async(_0x1fe2b6,_0x1b8237)=>{const _0x3d021c=a2_0x3d4a9d,_0x169216=new SegmentValidateCommand(),_0x1f7799=program[_0x3d021c(0x289)](),_0x1d5247=await createTDXInstance(_0x1f7799),_0x96cff0=await _0x169216[_0x3d021c(0x1c9)]({'options':{..._0x1f7799,..._0x1b8237},'args':_0x1fe2b6?[_0x1fe2b6]:[],'tdx':_0x1d5247});process[_0x3d021c(0x348)](_0x96cff0);}),segmentCmd['command'](a2_0x3d4a9d(0x3e1),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x3e4))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2e3),a2_0x3d4a9d(0x314))['option']('--rule-file\x20<file>',a2_0x3d4a9d(0x30a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x36a),a2_0x3d4a9d(0x3a3))['option'](a2_0x3d4a9d(0x31e),a2_0x3d4a9d(0x26f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e6),a2_0x3d4a9d(0x30c))['option']('--no-count-population','Skip\x20population\x20counting')[a2_0x3d4a9d(0x26e)](async(_0x138703,_0x43c89a)=>{const _0x2b868b=a2_0x3d4a9d,_0x28f01f=new SegmentCreateCommand(),_0x44fb1c=program['opts'](),_0x10fe9e=await createTDXInstance(_0x44fb1c),_0x2a2f50=await _0x28f01f[_0x2b868b(0x1c9)]({'options':{..._0x44fb1c,..._0x43c89a},'args':[_0x138703],'tdx':_0x10fe9e});process[_0x2b868b(0x348)](_0x2a2f50);}),segmentCmd['command'](a2_0x3d4a9d(0x29d),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b6))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2da),a2_0x3d4a9d(0x3a1))['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x3c7))['option']('--rule\x20<json>',a2_0x3d4a9d(0x1cc))[a2_0x3d4a9d(0x321)]('--rule-file\x20<file>',a2_0x3d4a9d(0x1dd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x36a),a2_0x3d4a9d(0x231))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x31e),a2_0x3d4a9d(0x26f))[a2_0x3d4a9d(0x26e)](async(_0x3288c2,_0x5788a0)=>{const _0x541650=a2_0x3d4a9d,_0x3689b5=new SegmentUpdateCommand(),_0x47b899=program[_0x541650(0x289)](),_0x3e06e3=await createTDXInstance(_0x47b899),_0x10fbfe=await _0x3689b5['run']({'options':{..._0x47b899,..._0x5788a0},'args':[_0x3288c2],'tdx':_0x3e06e3});process[_0x541650(0x348)](_0x10fbfe);});const parentCmd=segmentCmd[a2_0x3d4a9d(0x27d)]('parent',{'hidden':!![]})['description'](a2_0x3d4a9d(0x2d7)),parentListAction=async(_0x133af4,_0x571bf9)=>{const _0x37be6e=a2_0x3d4a9d,_0xc8e0b2=new ParentSegmentListCommand(),_0x2ca9fa=program[_0x37be6e(0x289)](),_0x6de407=await createTDXInstance(_0x2ca9fa),_0x5ce1e6=await _0xc8e0b2[_0x37be6e(0x1c9)]({'options':{..._0x2ca9fa,..._0x571bf9},'args':_0x133af4?[_0x133af4]:[],'tdx':_0x6de407});process[_0x37be6e(0x348)](_0x5ce1e6);};parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30e))[a2_0x3d4a9d(0x26e)](parentListAction),segmentCmd['command'](a2_0x3d4a9d(0x346),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x325))[a2_0x3d4a9d(0x26e)](parentListAction),parentCmd[a2_0x3d4a9d(0x27d)]('pull\x20[name]')[a2_0x3d4a9d(0x1f1)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x398),a2_0x3d4a9d(0x219))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),'Skip\x20confirmation\x20prompt')['action'](async(_0x301154,_0x3a40b3)=>{const _0x52806c=a2_0x3d4a9d,_0xd975de=new ParentSegmentPullCommand(),_0x150575=program['opts'](),_0x5d7156=await createTDXInstance(_0x150575),_0x506d5e=await _0xd975de[_0x52806c(0x1c9)]({'options':{..._0x150575,..._0x3a40b3},'args':_0x301154?[_0x301154]:[],'tdx':_0x5d7156});process[_0x52806c(0x348)](_0x506d5e);}),parentCmd['command'](a2_0x3d4a9d(0x380))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e9))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x1046e4,_0x2a37e1)=>{const _0xbb1b0c=a2_0x3d4a9d,_0x1070a3=new ParentSegmentPushCommand(),_0x3c7cda=program[_0xbb1b0c(0x289)](),_0x4accd7=await createTDXInstance(_0x3c7cda),_0x508b9d=await _0x1070a3[_0xbb1b0c(0x1c9)]({'options':{..._0x3c7cda,..._0x2a37e1},'args':_0x1046e4?[_0x1046e4]:[],'tdx':_0x4accd7});process['exit'](_0x508b9d);}),parentCmd['command'](a2_0x3d4a9d(0x419))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3c3))[a2_0x3d4a9d(0x321)]('--master','Show\x20only\x20master\x20table\x20validation')[a2_0x3d4a9d(0x321)]('--attribute\x20[name]',a2_0x3d4a9d(0x2b2))['option']('--behavior\x20[name]',a2_0x3d4a9d(0x301))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x38a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),a2_0x3d4a9d(0x3a9),a2_0x3d4a9d(0x331))[a2_0x3d4a9d(0x26e)](async(_0x71c7bd,_0x247b73)=>{const _0x1920f5=a2_0x3d4a9d,_0x29884c=new ParentSegmentValidateCommand(),_0x4db694=program['opts'](),_0x45290d=await createTDXInstance(_0x4db694),_0x4c5b6d=await _0x29884c['run']({'options':{..._0x4db694,..._0x247b73},'args':_0x71c7bd?[_0x71c7bd]:[],'tdx':_0x45290d});process[_0x1920f5(0x348)](_0x4c5b6d);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ad))['description'](a2_0x3d4a9d(0x351))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x23a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x293))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x31f),a2_0x3d4a9d(0x40d))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x3c8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),a2_0x3d4a9d(0x3a9),a2_0x3d4a9d(0x331))[a2_0x3d4a9d(0x26e)](async(_0x4a7081,_0x7cc8b9)=>{const _0x467cc0=a2_0x3d4a9d,_0x1cc8ef=new ParentSegmentPreviewCommand(),_0x293fc0=program[_0x467cc0(0x289)](),_0x96c125=await createTDXInstance(_0x293fc0),_0x115c47=await _0x1cc8ef[_0x467cc0(0x1c9)]({'options':{..._0x293fc0,..._0x7cc8b9},'args':_0x4a7081?[_0x4a7081]:[],'tdx':_0x96c125});process['exit'](_0x115c47);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x263))[a2_0x3d4a9d(0x1f1)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x4a6a2b,_0x10dc68)=>{const _0x527cd8=a2_0x3d4a9d,_0x3a1f98=new ParentSegmentRunCommand(),_0x2ae4ca=program[_0x527cd8(0x289)](),_0x270e82=await createTDXInstance(_0x2ae4ca),_0x1c6aa5=await _0x3a1f98[_0x527cd8(0x1c9)]({'options':{..._0x2ae4ca,..._0x10dc68},'args':_0x4a6a2b?[_0x4a6a2b]:[],'tdx':_0x270e82});process[_0x527cd8(0x348)](_0x1c6aa5);});const parentSegmentCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2be))[a2_0x3d4a9d(0x295)]('ps')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e2));parentSegmentCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30e))[a2_0x3d4a9d(0x26e)](parentListAction),parentSegmentCmd['command'](a2_0x3d4a9d(0x2ea))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x215))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x398),'Output\x20file\x20path')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3ed),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x3d4a9d(0x26e)](async(_0x2f6e83,_0x397601)=>{const _0x2302b3=a2_0x3d4a9d,_0x27b5ef=new ParentSegmentPullCommand(),_0x389a4b=program[_0x2302b3(0x289)](),_0x218fee=await createTDXInstance(_0x389a4b),_0x12f65e=await _0x27b5ef[_0x2302b3(0x1c9)]({'options':{..._0x389a4b,..._0x397601},'args':_0x2f6e83?[_0x2f6e83]:[],'tdx':_0x218fee});process[_0x2302b3(0x348)](_0x12f65e);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x220))[a2_0x3d4a9d(0x1f1)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3d4a9d(0x321)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3d4a9d(0x26e)](async(_0x408709,_0x493433)=>{const _0xd7a18e=a2_0x3d4a9d,_0x5a33fe=new ParentSegmentPushCommand(),_0x42cbca=program[_0xd7a18e(0x289)](),_0x556936=await createTDXInstance(_0x42cbca),_0x1f5b55=await _0x5a33fe[_0xd7a18e(0x1c9)]({'options':{..._0x42cbca,..._0x493433},'args':_0x408709?[_0x408709]:[],'tdx':_0x556936});process['exit'](_0x1f5b55);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x397))[a2_0x3d4a9d(0x1f1)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x1c8))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x2b2))['option'](a2_0x3d4a9d(0x31f),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1ce),a2_0x3d4a9d(0x38a))[a2_0x3d4a9d(0x321)]('--interval\x20<range>',a2_0x3d4a9d(0x3a9),'-1d')[a2_0x3d4a9d(0x26e)](async(_0x9eb07e,_0x2023b0)=>{const _0x2fd40b=a2_0x3d4a9d,_0x30378b=new ParentSegmentValidateCommand(),_0x2c98b0=program['opts'](),_0x40d5f8=await createTDXInstance(_0x2c98b0),_0x489e46=await _0x30378b['run']({'options':{..._0x2c98b0,..._0x2023b0},'args':_0x9eb07e?[_0x9eb07e]:[],'tdx':_0x40d5f8});process[_0x2fd40b(0x348)](_0x489e46);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x27c))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x351))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2f1),a2_0x3d4a9d(0x23a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25e),a2_0x3d4a9d(0x293))['option'](a2_0x3d4a9d(0x31f),a2_0x3d4a9d(0x40d))[a2_0x3d4a9d(0x321)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22d),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3d4a9d(0x331))['action'](async(_0x41c7e3,_0x27f61e)=>{const _0x26e64c=a2_0x3d4a9d,_0x39e5b8=new ParentSegmentPreviewCommand(),_0xd97a46=program[_0x26e64c(0x289)](),_0x5962a3=await createTDXInstance(_0xd97a46),_0x388b36=await _0x39e5b8[_0x26e64c(0x1c9)]({'options':{..._0xd97a46,..._0x27f61e},'args':_0x41c7e3?[_0x41c7e3]:[],'tdx':_0x5962a3});process[_0x26e64c(0x348)](_0x388b36);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)]('run\x20[name]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2f6))['option'](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x2265a4,_0x36a674)=>{const _0x11d1f7=a2_0x3d4a9d,_0x56c25a=new ParentSegmentRunCommand(),_0xad3544=program['opts'](),_0xeb921a=await createTDXInstance(_0xad3544),_0x320d10=await _0x56c25a[_0x11d1f7(0x1c9)]({'options':{..._0xad3544,..._0x36a674},'args':_0x2265a4?[_0x2265a4]:[],'tdx':_0xeb921a});process[_0x11d1f7(0x348)](_0x320d10);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)]('fields\x20[name]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0x5c6629,_0x39bfc2)=>{const _0x268bc4=a2_0x3d4a9d,_0x473a0f=new ParentSegmentFieldsCommand(),_0x18535d=program[_0x268bc4(0x289)](),_0x29cf00=await createTDXInstance(_0x18535d),_0x36b262=await _0x473a0f[_0x268bc4(0x1c9)]({'options':{..._0x18535d,..._0x39bfc2},'args':_0x5c6629?[_0x5c6629]:[],'tdx':_0x29cf00});process[_0x268bc4(0x348)](_0x36b262);}),parentSegmentCmd['command'](a2_0x3d4a9d(0x216))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a4))[a2_0x3d4a9d(0x321)]('-w,\x20--web','Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3d4a9d(0x321)]('--json',a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0x5c0594,_0x1d261b)=>{const _0x92e579=a2_0x3d4a9d,_0x1990b1=new ParentSegmentViewCommand(),_0x239ab4=program[_0x92e579(0x289)](),_0x37cbd9=await createTDXInstance(_0x239ab4),_0x5bede7=await _0x1990b1['run']({'options':{..._0x239ab4,..._0x1d261b},'args':_0x5c0594?[_0x5c0594]:[],'tdx':_0x37cbd9});process[_0x92e579(0x348)](_0x5bede7);}),parentSegmentCmd['command'](a2_0x3d4a9d(0x2a9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ca))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),'Output\x20as\x20JSON')[a2_0x3d4a9d(0x321)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3d4a9d(0x26e)](async(_0x1a27ce,_0x4ea41b)=>{const _0x403521=a2_0x3d4a9d,_0x1cf1b3=new ParentSegmentDescCommand(),_0x49c46e=program['opts'](),_0x164dbc=await createTDXInstance(_0x49c46e),_0x374d8d=await _0x1cf1b3[_0x403521(0x1c9)]({'options':{..._0x49c46e,..._0x4ea41b},'args':_0x1a27ce?[_0x1a27ce]:[],'tdx':_0x164dbc});process['exit'](_0x374d8d);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2db))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a8))[a2_0x3d4a9d(0x321)]('--json',a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37f),'Output\x20as\x20JSON\x20Lines')[a2_0x3d4a9d(0x26e)](async(_0x3b6dee,_0x341c2d)=>{const _0x377d60=a2_0x3d4a9d,_0x288cef=new ParentSegmentSQLCommand(),_0x27fe21=program[_0x377d60(0x289)](),_0x27fa1c=await createTDXInstance(_0x27fe21),_0x5e8945=await _0x288cef[_0x377d60(0x1c9)]({'options':{..._0x27fe21,..._0x341c2d},'args':_0x3b6dee?[_0x3b6dee]:[],'tdx':_0x27fa1c});process[_0x377d60(0x348)](_0x5e8945);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ee))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x292),a2_0x3d4a9d(0x302))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x308),a2_0x3d4a9d(0x270))[a2_0x3d4a9d(0x321)]('--jsonl',a2_0x3d4a9d(0x2ee))[a2_0x3d4a9d(0x26e)](async(_0xafd388,_0xcdde4f)=>{const _0x3df5d1=a2_0x3d4a9d,_0x3a5bdb=new ParentSegmentShowCommand(),_0x17c694=program[_0x3df5d1(0x289)](),_0x312753=await createTDXInstance(_0x17c694),_0x227d59=await _0x3a5bdb[_0x3df5d1(0x1c9)]({'options':{..._0x17c694,..._0xcdde4f},'args':_0xafd388?[_0xafd388]:[],'tdx':_0x312753});process[_0x3df5d1(0x348)](_0x227d59);}),parentSegmentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c2))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d5))[a2_0x3d4a9d(0x26e)](async(_0x4c243c,_0x5dd2b2)=>{const _0x4f7b48=a2_0x3d4a9d,_0x12aebc=new UseCommand(),_0x2a8f7a=program['opts'](),_0x25a889=_0x4c243c?[_0x4f7b48(0x1f8),_0x4c243c]:[],_0xba9331=await _0x12aebc[_0x4f7b48(0x1c9)]({'options':{..._0x2a8f7a,..._0x5dd2b2},'args':_0x25a889,'tdx':null});process[_0x4f7b48(0x348)](_0xba9331);}),parentCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x264))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x3b6),a2_0x3d4a9d(0x367))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x34c),a2_0x3d4a9d(0x235))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x1c3))['option']('--schedule-type\x20<type>',a2_0x3d4a9d(0x323))['option'](a2_0x3d4a9d(0x3c2),a2_0x3d4a9d(0x20d))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x417))[a2_0x3d4a9d(0x321)]('--attributes\x20<json>',a2_0x3d4a9d(0x2de))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x274),'Attributes\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x253),a2_0x3d4a9d(0x31d))[a2_0x3d4a9d(0x321)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x34d),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x3d4a9d(0x321)]('--customer-group-file\x20<file>',a2_0x3d4a9d(0x2e9))[a2_0x3d4a9d(0x26e)](async(_0x372cfc,_0x30bf65)=>{const _0x33879b=a2_0x3d4a9d,_0x1fb2bd=new ParentSegmentCreateCommand(),_0x4ac005=program[_0x33879b(0x289)](),_0x87a070=await createTDXInstance(_0x4ac005),_0x283853=await _0x1fb2bd[_0x33879b(0x1c9)]({'options':{..._0x4ac005,..._0x30bf65},'args':[_0x372cfc],'tdx':_0x87a070});process[_0x33879b(0x348)](_0x283853);}),parentCmd[a2_0x3d4a9d(0x27d)]('update\x20<name>')['description'](a2_0x3d4a9d(0x3d0))[a2_0x3d4a9d(0x321)]('--description\x20<text>',a2_0x3d4a9d(0x3c7))['option'](a2_0x3d4a9d(0x211),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c2),'Updated\x20schedule\x20option')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x1d4))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x356),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3d4a9d(0x321)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x412),a2_0x3d4a9d(0x339))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3d2),a2_0x3d4a9d(0x2aa))[a2_0x3d4a9d(0x26e)](async(_0x436bfd,_0x308cf2)=>{const _0x411821=a2_0x3d4a9d,_0x53cd45=new ParentSegmentUpdateCommand(),_0xaad3b4=program[_0x411821(0x289)](),_0x268ea8=await createTDXInstance(_0xaad3b4),_0x49cdc0=await _0x53cd45[_0x411821(0x1c9)]({'options':{..._0xaad3b4,..._0x308cf2},'args':[_0x436bfd],'tdx':_0x268ea8});process[_0x411821(0x348)](_0x49cdc0);}),folderCmd['command'](a2_0x3d4a9d(0x400))[a2_0x3d4a9d(0x1f1)]('Create\x20segment\x20folder')['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x38e))['option'](a2_0x3d4a9d(0x1ee),a2_0x3d4a9d(0x257))[a2_0x3d4a9d(0x26e)](async(_0x2ecba7,_0x34089d,_0x47013f)=>{const _0x3b93fc=a2_0x3d4a9d,_0x16e2b4=new SegmentFolderCreateCommand(),_0x5f1417=program[_0x3b93fc(0x289)](),_0x5e10d1=await createTDXInstance(_0x5f1417),_0x161ab5=await _0x16e2b4[_0x3b93fc(0x1c9)]({'options':{..._0x5f1417,..._0x47013f},'args':[_0x2ecba7,_0x34089d],'tdx':_0x5e10d1});process[_0x3b93fc(0x348)](_0x161ab5);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3e3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b9))[a2_0x3d4a9d(0x26e)](async(_0x22ee7a,_0xd928ba)=>{const _0x33f19e=a2_0x3d4a9d,_0x10e0ec=new ActivationsCommand(),_0x3ecdb2=program[_0x33f19e(0x289)](),_0x2a55a0=await createTDXInstance(_0x3ecdb2),_0x24db2b=await _0x10e0ec[_0x33f19e(0x1c9)]({'options':{..._0x3ecdb2,..._0xd928ba},'args':[_0x22ee7a],'tdx':_0x2a55a0});process['exit'](_0x24db2b);});const workflowCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x343))['alias']('wf')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x20e)),wfProjectCmd=workflowCmd['command'](a2_0x3d4a9d(0x34a))['description'](a2_0x3d4a9d(0x2e1)),wfProjectListAction=async(_0x8554ca,_0x49de70)=>{const _0x3fbd96=a2_0x3d4a9d,_0xad8fd4=new WorkflowProjectsCommand(),_0x5f1344=program[_0x3fbd96(0x289)](),_0x47f242=await createTDXInstance(_0x5f1344),_0x5c016e=await _0xad8fd4[_0x3fbd96(0x1c9)]({'options':{..._0x5f1344,..._0x49de70},'args':_0x8554ca?[_0x8554ca]:[],'tdx':_0x47f242});process[_0x3fbd96(0x348)](_0x5c016e);};wfProjectCmd['command'](a2_0x3d4a9d(0x26a))['description'](a2_0x3d4a9d(0x1df))[a2_0x3d4a9d(0x26e)](wfProjectListAction),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3ac))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x5a6ecf,_0x118af3)=>{const _0x2de8b8=a2_0x3d4a9d,_0x2f9696=new WorkflowWorkflowsCommand(),_0x52775f=program[_0x2de8b8(0x289)](),_0x4a5a4b=await createTDXInstance(_0x52775f),_0x2fb73f=await _0x2f9696[_0x2de8b8(0x1c9)]({'options':{..._0x52775f,..._0x118af3},'args':_0x5a6ecf?[_0x5a6ecf]:[],'tdx':_0x4a5a4b});process[_0x2de8b8(0x348)](_0x2fb73f);};workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x23f))[a2_0x3d4a9d(0x1f1)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3d4a9d(0x26e)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3d4a9d(0x27d)]('session')['description'](a2_0x3d4a9d(0x2ed)),wfSessionListAction=async(_0x4c2d57,_0x307f1c)=>{const _0x11a1d4=a2_0x3d4a9d,_0x4195f2=new WorkflowSessionsCommand(),_0x4beda4=program[_0x11a1d4(0x289)](),_0x1a5f22=await createTDXInstance(_0x4beda4),_0x3ee7ad=await _0x4195f2[_0x11a1d4(0x1c9)]({'options':{..._0x4beda4,..._0x307f1c},'args':_0x4c2d57?[_0x4c2d57]:[],'tdx':_0x1a5f22});process[_0x11a1d4(0x348)](_0x3ee7ad);};wfSessionCmd['command'](a2_0x3d4a9d(0x1ed))['description'](a2_0x3d4a9d(0x2f3))['option'](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x3fe))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25b),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x335),a2_0x3d4a9d(0x28b))[a2_0x3d4a9d(0x26e)](wfSessionListAction),workflowCmd['command'](a2_0x3d4a9d(0x228))['description'](a2_0x3d4a9d(0x3cd))['option'](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x3fe))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25b),a2_0x3d4a9d(0x28c))[a2_0x3d4a9d(0x321)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3d4a9d(0x26e)](wfSessionListAction);const wfAttemptListAction=async(_0x25acef,_0x101220)=>{const _0x1eb614=a2_0x3d4a9d,_0x207ec6=new WorkflowAttemptsCommand(),_0xb78c77=program[_0x1eb614(0x289)](),_0x221059=await createTDXInstance(_0xb78c77),_0x510ae3=await _0x207ec6[_0x1eb614(0x1c9)]({'options':{..._0xb78c77,..._0x101220},'args':_0x25acef?[_0x25acef]:[],'tdx':_0x221059});process[_0x1eb614(0x348)](_0x510ae3);},attemptCmd=workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x337))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3fb))['argument'](a2_0x3d4a9d(0x287),a2_0x3d4a9d(0x29c))[a2_0x3d4a9d(0x24d)](a2_0x3d4a9d(0x1f9),a2_0x3d4a9d(0x39b))[a2_0x3d4a9d(0x24d)](a2_0x3d4a9d(0x3ab),a2_0x3d4a9d(0x393))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1f0),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x305),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x3d4a9d(0x395),a2_0x3d4a9d(0x3b3))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x246),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2d0),a2_0x3d4a9d(0x1c5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x297))[a2_0x3d4a9d(0x26e)](async(_0x2fe910,_0x3a49fd,_0x5db666,_0x1d077a)=>{const _0x18fee0=a2_0x3d4a9d;if(_0x2fe910===_0x18fee0(0x1dc)){await wfAttemptListAction(_0x3a49fd,_0x1d077a);return;}if(!_0x2fe910){attemptCmd['help']();return;}const _0x13bd7=program[_0x18fee0(0x289)](),_0x1a6071=await createTDXInstance(_0x13bd7);let _0x3c8c18=0x0;if(!_0x3a49fd){const _0x1edb83=new WorkflowAttemptCommand();_0x3c8c18=await _0x1edb83['run']({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x36b)){const _0x2983fa=new WorkflowLogsCommand();_0x3c8c18=await _0x2983fa[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':_0x5db666?[_0x2fe910,_0x5db666]:[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x2d3)){const _0xb4e7bc=new WorkflowTasksCommand();_0x3c8c18=await _0xb4e7bc[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x230)){const _0x50cd1b=new WorkflowKillCommand();_0x3c8c18=await _0x50cd1b[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x2fe910],'tdx':_0x1a6071});}else{if(_0x3a49fd===_0x18fee0(0x3dc)){const _0x3137ba=new WorkflowRetryCommand();_0x3c8c18=await _0x3137ba[_0x18fee0(0x1c9)]({'options':{..._0x13bd7,..._0x1d077a},'args':[_0x18fee0(0x2c5)+_0x2fe910],'tdx':_0x1a6071});}else console['error'](_0x18fee0(0x368)+_0x3a49fd),console[_0x18fee0(0x288)](_0x18fee0(0x3af)),_0x3c8c18=0x1;}}}}process[_0x18fee0(0x348)](_0x3c8c18);});attemptCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1ed))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38d))['option'](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x24e))[a2_0x3d4a9d(0x26e)](wfAttemptListAction),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x205))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x23c),a2_0x3d4a9d(0x24e))[a2_0x3d4a9d(0x26e)](wfAttemptListAction),workflowCmd[a2_0x3d4a9d(0x27d)]('retry\x20<session-id>')['description'](a2_0x3d4a9d(0x2ab))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3ae),a2_0x3d4a9d(0x32f))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x246),a2_0x3d4a9d(0x29f))[a2_0x3d4a9d(0x26e)](async(_0x22f948,_0x5b5daf)=>{const _0x347936=a2_0x3d4a9d,_0x479bab=new WorkflowRetryCommand(),_0x5710e0=program[_0x347936(0x289)](),_0x4decc6=await createTDXInstance(_0x5710e0),_0x42b8e1=await _0x479bab['run']({'options':{..._0x5710e0,..._0x5b5daf},'args':[_0x22f948],'tdx':_0x4decc6});process[_0x347936(0x348)](_0x42b8e1);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3cf))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x344))['option'](a2_0x3d4a9d(0x1c1),'Workflow\x20parameter\x20(repeatable)',(_0x435abf,_0x53fb50=[])=>[..._0x53fb50,_0x435abf],[])[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x40f),a2_0x3d4a9d(0x20f))[a2_0x3d4a9d(0x26e)](async(_0x1d6d29,_0x279af2)=>{const _0x12ecf5=a2_0x3d4a9d,_0x27f338=new WorkflowRunCommand(),_0x23c464=program[_0x12ecf5(0x289)](),_0x5761bb=await createTDXInstance(_0x23c464),_0x3bf74a=await _0x27f338['run']({'options':{..._0x23c464,..._0x279af2},'args':_0x1d6d29?[_0x1d6d29]:[],'tdx':_0x5761bb});process['exit'](_0x3bf74a);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3ff))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3e5))[a2_0x3d4a9d(0x321)]('--revision\x20<revision>',a2_0x3d4a9d(0x363))[a2_0x3d4a9d(0x26e)](async(_0x5d83c6,_0x47e5e5,_0x3534c5)=>{const _0x5438ba=a2_0x3d4a9d,_0x5e9bb1=new WorkflowDownloadCommand(),_0x5e9bdb=program[_0x5438ba(0x289)](),_0x52aadd=await createTDXInstance(_0x5e9bdb),_0x16d4d9=await _0x5e9bb1[_0x5438ba(0x1c9)]({'options':{..._0x5e9bdb,..._0x3534c5},'args':[_0x5d83c6,_0x47e5e5||'.'],'tdx':_0x52aadd});process[_0x5438ba(0x348)](_0x16d4d9);}),workflowCmd[a2_0x3d4a9d(0x27d)]('pull\x20<project>\x20[target-dir]')['description'](a2_0x3d4a9d(0x39a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x3a5))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x3f3))[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))['action'](async(_0x296bfe,_0x588542,_0x175def)=>{const _0x2aaa77=a2_0x3d4a9d,_0x375790=new WorkflowPullCommand(),_0x27d452=program[_0x2aaa77(0x289)](),_0x5bce65=await createTDXInstance(_0x27d452),_0x492fa7=await _0x375790['run']({'options':{..._0x27d452,..._0x175def},'args':_0x588542?[_0x296bfe,_0x588542]:[_0x296bfe],'tdx':_0x5bce65});process[_0x2aaa77(0x348)](_0x492fa7);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x37e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x273))['option'](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x206))['option'](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x204))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))['action'](async(_0x3ab3de,_0x1e69f7)=>{const _0x55ca27=a2_0x3d4a9d,_0x26fb9f=new WorkflowPushCommand(),_0x5d524c=program[_0x55ca27(0x289)](),_0x1d102b=await createTDXInstance(_0x5d524c),_0x294725=await _0x26fb9f[_0x55ca27(0x1c9)]({'options':{..._0x5d524c,..._0x1e69f7},'args':_0x3ab3de?[_0x3ab3de]:[],'tdx':_0x1d102b});process[_0x55ca27(0x348)](_0x294725);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1f5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3b7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x21e))['option'](a2_0x3d4a9d(0x2fb),a2_0x3d4a9d(0x22b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),a2_0x3d4a9d(0x1c2))[a2_0x3d4a9d(0x26e)](async(_0x2fb1d6,_0x310ec1)=>{const _0x114369=a2_0x3d4a9d,_0x1e12cb=new WorkflowUploadCommand(),_0x4b9d4a=program[_0x114369(0x289)](),_0x3d75b7=await createTDXInstance(_0x4b9d4a),_0x548aea=await _0x1e12cb[_0x114369(0x1c9)]({'options':{..._0x4b9d4a,..._0x310ec1},'args':_0x2fb1d6?[_0x2fb1d6]:[],'tdx':_0x3d75b7});process[_0x114369(0x348)](_0x548aea);}),workflowCmd['command']('clone\x20[source-dir]')[a2_0x3d4a9d(0x1f1)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x258))[a2_0x3d4a9d(0x321)]('--revision\x20<revision>',a2_0x3d4a9d(0x206))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x322),a2_0x3d4a9d(0x1c2))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x7f9dcd,_0x4196f8)=>{const _0x521aa1=a2_0x3d4a9d,_0x7f792=new WorkflowCloneCommand(),_0x187d9f=program[_0x521aa1(0x289)](),_0xc1efdd=await createTDXInstance(_0x187d9f),_0x431932=await _0x7f792['run']({'options':{..._0x187d9f,..._0x4196f8},'args':_0x7f9dcd?[_0x7f9dcd]:[],'tdx':_0xc1efdd});process[_0x521aa1(0x348)](_0x431932);}),workflowCmd['command'](a2_0x3d4a9d(0x2b3))['description'](a2_0x3d4a9d(0x319))[a2_0x3d4a9d(0x26e)](async(_0x147ac3,_0x270a4d)=>{const _0x43ebdc=a2_0x3d4a9d,_0x1a310d=new WorkflowDeleteCommand(),_0x3153e3=program[_0x43ebdc(0x289)](),_0x196ad1=await createTDXInstance(_0x3153e3),_0x355415=await _0x1a310d[_0x43ebdc(0x1c9)]({'options':{..._0x3153e3,..._0x270a4d},'args':[_0x147ac3],'tdx':_0x196ad1});process[_0x43ebdc(0x348)](_0x355415);}),workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x310))[a2_0x3d4a9d(0x1f1)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')['option'](a2_0x3d4a9d(0x1da),a2_0x3d4a9d(0x385))[a2_0x3d4a9d(0x26e)](async(_0x1fc3c,_0x552764)=>{const _0x84dab=a2_0x3d4a9d,_0x4c92fb=new WorkflowUseCommand(),_0x5bfa6d=program[_0x84dab(0x289)](),_0x4a9a82=await createTDXInstance(_0x5bfa6d),_0x201657=await _0x4c92fb[_0x84dab(0x1c9)]({'options':{..._0x5bfa6d,..._0x552764},'args':_0x1fc3c?[_0x1fc3c]:[],'tdx':_0x4a9a82});process[_0x84dab(0x348)](_0x201657);});const wfSecretsCmd=workflowCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x240))['description'](a2_0x3d4a9d(0x3a4));wfSecretsCmd[a2_0x3d4a9d(0x27d)]('list\x20[project]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bc))['action'](async(_0x3d46e0,_0xc165f8)=>{const _0x1e5bcc=a2_0x3d4a9d,_0x428605=new WorkflowSecretsListCommand(),_0x4b14dc=program[_0x1e5bcc(0x289)](),_0x341df4=await createTDXInstance(_0x4b14dc),_0x3e645d=await _0x428605[_0x1e5bcc(0x1c9)]({'options':{..._0x4b14dc,..._0xc165f8},'args':_0x3d46e0?[_0x3d46e0]:[],'tdx':_0x341df4});process[_0x1e5bcc(0x348)](_0x3e645d);}),wfSecretsCmd['command']('set\x20<args...>')[a2_0x3d4a9d(0x1f1)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')[a2_0x3d4a9d(0x26e)](async(_0x101e59,_0x13619f)=>{const _0x333567=a2_0x3d4a9d,_0x539e51=new WorkflowSecretsSetCommand(),_0x5e80e7=program['opts'](),_0x411ea3=await createTDXInstance(_0x5e80e7),_0x4e63c2=await _0x539e51['run']({'options':{..._0x5e80e7,..._0x13619f},'args':_0x101e59,'tdx':_0x411ea3});process[_0x333567(0x348)](_0x4e63c2);}),wfSecretsCmd['command'](a2_0x3d4a9d(0x2c1))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x38b))[a2_0x3d4a9d(0x321)]('-y,\x20--yes',a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](async(_0x465ef1,_0x3dd5f8)=>{const _0x2be33f=a2_0x3d4a9d,_0x48325a=new WorkflowSecretsDeleteCommand(),_0x28bb68=program[_0x2be33f(0x289)](),_0x25cd05=await createTDXInstance(_0x28bb68),_0x530313=await _0x48325a[_0x2be33f(0x1c9)]({'options':{..._0x28bb68,..._0x3dd5f8},'args':_0x465ef1,'tdx':_0x25cd05});process[_0x2be33f(0x348)](_0x530313);});const jobCmd=program[a2_0x3d4a9d(0x27d)]('job')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x416)),jobListAction=async _0x2c2de0=>{const _0x44012e=a2_0x3d4a9d,_0x2ade54=new JobListCommand(),_0x54a357=program[_0x44012e(0x289)](),_0x37d2df=await createTDXInstance(_0x54a357),_0x5b29ca=await _0x2ade54[_0x44012e(0x1c9)]({'options':{..._0x54a357,..._0x2c2de0},'args':[],'tdx':_0x37d2df});process[_0x44012e(0x348)](_0x5b29ca);};jobCmd['command']('list')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x415))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x3d4a9d(0x26e)](jobListAction),program[a2_0x3d4a9d(0x27d)]('jobs',{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x202))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x37c))['action'](jobListAction),jobCmd['command'](a2_0x3d4a9d(0x2f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x39e))[a2_0x3d4a9d(0x26e)](async(_0x2eff0a,_0x16ffca)=>{const _0xe24232=a2_0x3d4a9d,_0x47abeb=new JobShowCommand(),_0x5066a3=program['opts'](),_0x5662aa=await createTDXInstance(_0x5066a3),_0x2b0f4a=await _0x47abeb[_0xe24232(0x1c9)]({'options':{..._0x5066a3,..._0x16ffca},'args':[_0x2eff0a],'tdx':_0x5662aa});process[_0xe24232(0x348)](_0x2b0f4a);}),jobCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3b5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x22f))['action'](async(_0x2c3227,_0x4822b2)=>{const _0x57bf2c=a2_0x3d4a9d,_0x1db6b1=new JobKillCommand(),_0x5352de=program[_0x57bf2c(0x289)](),_0x9f44cd=await createTDXInstance(_0x5352de),_0x256488=await _0x1db6b1[_0x57bf2c(0x1c9)]({'options':{..._0x5352de,..._0x4822b2},'args':[_0x2c3227],'tdx':_0x9f44cd});process['exit'](_0x256488);}),jobCmd['command'](a2_0x3d4a9d(0x27b))['description'](a2_0x3d4a9d(0x2e8))[a2_0x3d4a9d(0x321)]('--job-type\x20<type>',a2_0x3d4a9d(0x22c),a2_0x3d4a9d(0x3b2))[a2_0x3d4a9d(0x321)]('-f,\x20--file\x20<path>',a2_0x3d4a9d(0x408))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2ff),a2_0x3d4a9d(0x1e2),a2_0x3d4a9d(0x364))['action'](async(_0x152547,_0x3952ff)=>{const _0x2bbec5=a2_0x3d4a9d,_0x500259=new JobSubmitCommand(),_0x182c8d=program['opts'](),_0x3475de=await createTDXInstance(_0x182c8d),_0x2923e5=await _0x500259[_0x2bbec5(0x1c9)]({'options':{..._0x182c8d,..._0x3952ff},'args':_0x152547?[_0x152547]:[],'tdx':_0x3475de});process[_0x2bbec5(0x348)](_0x2923e5);}),jobCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x35b))['description'](a2_0x3d4a9d(0x345))[a2_0x3d4a9d(0x26e)](async(_0x46d4f8,_0x1eb2b7)=>{const _0x47a6c6=a2_0x3d4a9d,_0xb1b73=new JobResultCommand(),_0xc1e8bb=program[_0x47a6c6(0x289)](),_0x343287=await createTDXInstance(_0xc1e8bb),_0x21378a=await _0xb1b73['run']({'options':{..._0xc1e8bb,..._0x1eb2b7},'args':[_0x46d4f8],'tdx':_0x343287});process[_0x47a6c6(0x348)](_0x21378a);});const llmCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3d3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x330));llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3d9))['description']('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3d4a9d(0x26e)](async(_0x1264a2,_0x128890)=>{const _0x5be49b=a2_0x3d4a9d,_0x1fd450=new LLMUseCommand(),_0x4199ef=program['opts'](),_0x5c8e7d=await createTDXInstance(_0x4199ef),_0x452221=await _0x1fd450[_0x5be49b(0x1c9)]({'options':{..._0x4199ef,..._0x128890},'args':[_0x1264a2],'tdx':_0x5c8e7d});process[_0x5be49b(0x348)](_0x452221);}),llmCmd[a2_0x3d4a9d(0x27d)]('models')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x262))['action'](async _0x216414=>{const _0xc58c58=a2_0x3d4a9d,_0x18edf3=new LLMModelsCommand(),_0x388265=program['opts'](),_0x32e4a8=await createTDXInstance(_0x388265),_0x299a1a=await _0x18edf3[_0xc58c58(0x1c9)]({'options':{..._0x388265,..._0x216414},'args':[],'tdx':_0x32e4a8});process['exit'](_0x299a1a);});const projectCmd=llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x34a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x291)),llmProjectListAction=async(_0x349f95,_0x3d803f)=>{const _0x5b8f77=a2_0x3d4a9d,_0x43dbb8=new LLMProjectsCommand(),_0x536482=program[_0x5b8f77(0x289)](),_0x100b16=await createTDXInstance(_0x536482),_0x52e7e0=await _0x43dbb8['run']({'options':{..._0x536482,..._0x3d803f},'args':_0x349f95?[_0x349f95]:[],'tdx':_0x100b16});process[_0x5b8f77(0x348)](_0x52e7e0);};projectCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x320))['action'](llmProjectListAction),llmCmd[a2_0x3d4a9d(0x27d)]('projects\x20[pattern]')['description'](a2_0x3d4a9d(0x309))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x320))[a2_0x3d4a9d(0x26e)](llmProjectListAction),projectCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3bb))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x315))[a2_0x3d4a9d(0x26e)](async(_0x1bc1d0,_0x1aafd5)=>{const _0x4938b9=a2_0x3d4a9d,_0x4d63bf=new LLMProjectCreateCommand(),_0x22a617=program[_0x4938b9(0x289)](),_0x5af801=await createTDXInstance(_0x22a617),_0x36cee9=await _0x4d63bf[_0x4938b9(0x1c9)]({'options':{..._0x22a617,..._0x1aafd5},'args':[_0x1bc1d0],'tdx':_0x5af801});process[_0x4938b9(0x348)](_0x36cee9);}),projectCmd[a2_0x3d4a9d(0x27d)]('delete\x20<name>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1cf))[a2_0x3d4a9d(0x26e)](async(_0x444ca9,_0x5a5b43)=>{const _0x23e79e=a2_0x3d4a9d,_0xd6318d=new LLMProjectDeleteCommand(),_0x7213fd=program[_0x23e79e(0x289)](),_0x1d9087=await createTDXInstance(_0x7213fd),_0x13d7eb=await _0xd6318d[_0x23e79e(0x1c9)]({'options':{..._0x7213fd,..._0x5a5b43},'args':[_0x444ca9],'tdx':_0x1d9087});process['exit'](_0x13d7eb);}),projectCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x277))['description'](a2_0x3d4a9d(0x326))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x33f),a2_0x3d4a9d(0x2e0))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x300))[a2_0x3d4a9d(0x26e)](async(_0x4b9294,_0xe10216)=>{const _0x354941=a2_0x3d4a9d,_0x9addcc=new LLMProjectBackupCommand(),_0xedf708=program[_0x354941(0x289)](),_0x4982b5=await createTDXInstance(_0xedf708),_0x4faf17=await _0x9addcc['run']({'options':{..._0xedf708,..._0xe10216},'args':[_0x4b9294],'tdx':_0x4982b5});process[_0x354941(0x348)](_0x4faf17);}),projectCmd[a2_0x3d4a9d(0x27d)]('restore\x20<folder>')['description'](a2_0x3d4a9d(0x286))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3fa),a2_0x3d4a9d(0x1d0))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x218))[a2_0x3d4a9d(0x26e)](async(_0xac23ef,_0x571d2e)=>{const _0x1c6753=a2_0x3d4a9d,_0x59bae1=new LLMProjectRestoreCommand(),_0x18fb6a=program['opts'](),_0x43b63b=await createTDXInstance(_0x18fb6a),_0x3b0b1d=await _0x59bae1[_0x1c6753(0x1c9)]({'options':{..._0x18fb6a,..._0x571d2e},'args':[_0xac23ef],'tdx':_0x43b63b});process[_0x1c6753(0x348)](_0x3b0b1d);});const llmAgentListAction=async(_0x531eb5,_0x577a69)=>{const _0x214e94=a2_0x3d4a9d,_0x44a92a=new LLMAgentsCommand(),_0x24622d=program[_0x214e94(0x289)](),_0x390be5=await createTDXInstance(_0x24622d),_0x1b2b15=await _0x44a92a[_0x214e94(0x1c9)]({'options':{..._0x24622d,..._0x577a69},'args':_0x531eb5?[_0x531eb5]:[],'tdx':_0x390be5});process['exit'](_0x1b2b15);};llmCmd[a2_0x3d4a9d(0x27d)]('agents\x20[pattern]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x24a))[a2_0x3d4a9d(0x321)]('-w,\x20--web',a2_0x3d4a9d(0x223))[a2_0x3d4a9d(0x26e)](llmAgentListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x24a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),a2_0x3d4a9d(0x223))[a2_0x3d4a9d(0x26e)](llmAgentListAction),llmCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x236))[a2_0x3d4a9d(0x1f1)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x3d4a9d(0x321)]('--last',a2_0x3d4a9d(0x27f))[a2_0x3d4a9d(0x26e)](async(_0x410969,_0x133c05)=>{const _0xcf8b8e=a2_0x3d4a9d,_0x4eb3af=new LLMHistoryCommand(),_0x20845e=program[_0xcf8b8e(0x289)](),_0x626d4b=await createTDXInstance(_0x20845e),_0x7b827f=await _0x4eb3af[_0xcf8b8e(0x1c9)]({'options':{..._0x20845e,..._0x133c05},'args':_0x410969?[_0x410969]:[],'tdx':_0x626d4b});process[_0xcf8b8e(0x348)](_0x7b827f);}),llmCmd[a2_0x3d4a9d(0x27d)]('proxy')[a2_0x3d4a9d(0x1f1)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e7),a2_0x3d4a9d(0x1fc),'4000')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x26c),a2_0x3d4a9d(0x35a))[a2_0x3d4a9d(0x321)]('--agent\x20<name>',a2_0x3d4a9d(0x2e7))['action'](async _0x240e40=>{const _0x20cbd0=a2_0x3d4a9d,_0x4d15f4=new LLMProxyCommand(),_0x5bfc40=program['opts'](),_0x58a4f9=await createTDXInstance(_0x5bfc40),_0x59c0ba={..._0x240e40,'port':_0x240e40[_0x20cbd0(0x2a3)]?parseInt(_0x240e40[_0x20cbd0(0x2a3)],0xa):undefined},_0xfdb3bc=await _0x4d15f4['run']({'options':{..._0x5bfc40,..._0x59c0ba},'args':[],'tdx':_0x58a4f9});process['exit'](_0xfdb3bc);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3fc))[a2_0x3d4a9d(0x232)]('[options]\x20--\x20[claude-code-args...]')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x340))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1c6),a2_0x3d4a9d(0x407),'sonnet')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x392),a2_0x3d4a9d(0x265))['option'](a2_0x3d4a9d(0x276),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cd),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3d4a9d(0x2d5)]()[a2_0x3d4a9d(0x296)](!![])[a2_0x3d4a9d(0x2c0)]('after',a2_0x3d4a9d(0x23b))[a2_0x3d4a9d(0x26e)](async(_0x1f0552,_0x264df0)=>{const _0x56987d=a2_0x3d4a9d,_0x43b529=program[_0x56987d(0x289)](),_0x5bcf48=Array[_0x56987d(0x28f)](_0x1f0552)?_0x1f0552:[];if(_0x5bcf48[0x0]===_0x56987d(0x303)){const _0x2e9f73=new ClaudeStatuslineCommand(),_0x16d064=await _0x2e9f73[_0x56987d(0x1c9)]({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48[_0x56987d(0x247)](0x1),'tdx':null});process['exit'](_0x16d064);}if(_0x5bcf48[0x0]===_0x56987d(0x232)){const _0x47e94e=new ClaudeUsageCommand(),_0x3b0da7=await _0x47e94e[_0x56987d(0x1c9)]({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48['slice'](0x1),'tdx':null});process[_0x56987d(0x348)](_0x3b0da7);}const _0x1f88c0=new ClaudeCommand(),_0x33da23=await createTDXInstance(_0x43b529),_0x39f460=await _0x1f88c0['run']({'options':{..._0x43b529,..._0x264df0},'args':_0x5bcf48,'tdx':_0x33da23});process[_0x56987d(0x348)](_0x39f460);}),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e5))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x201))['option'](a2_0x3d4a9d(0x1da),'Clear\x20session\x20context')[a2_0x3d4a9d(0x26e)](async _0x4d94fc=>{const _0x2691f9=a2_0x3d4a9d,_0x5da8be=new ContextCommand(),_0x467caa=program[_0x2691f9(0x289)](),_0x377e89=await _0x5da8be[_0x2691f9(0x1c9)]({'options':{..._0x467caa,..._0x4d94fc},'args':[],'tdx':null});process[_0x2691f9(0x348)](_0x377e89);}),program[a2_0x3d4a9d(0x27d)]('use\x20[resource]\x20[value]')['description']('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1da),a2_0x3d4a9d(0x2eb))[a2_0x3d4a9d(0x26e)](async(_0x5bd806,_0x3629de,_0x42555d)=>{const _0x41184b=a2_0x3d4a9d,_0xa9417c=new UseCommand(),_0x54eea4=program[_0x41184b(0x289)](),_0x31ea3e=[];if(_0x5bd806)_0x31ea3e[_0x41184b(0x317)](_0x5bd806);if(_0x3629de)_0x31ea3e[_0x41184b(0x317)](_0x3629de);const _0x1af3ce=await _0xa9417c['run']({'options':{..._0x54eea4,..._0x42555d},'args':_0x31ea3e,'tdx':null});process[_0x41184b(0x348)](_0x1af3ce);}),program[a2_0x3d4a9d(0x27d)]('chats')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2a1))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28d),a2_0x3d4a9d(0x283))['action'](async _0xbcf21d=>{const _0x19b3c1=a2_0x3d4a9d,_0x5ee3ee=new ChatsCommand(),_0x45a40b=program[_0x19b3c1(0x289)](),_0x51e90b=await createTDXInstance(_0x45a40b),_0x9b969f=await _0x5ee3ee[_0x19b3c1(0x1c9)]({'options':{..._0x45a40b,..._0xbcf21d},'args':[],'tdx':_0x51e90b});process[_0x19b3c1(0x348)](_0x9b969f);});const authCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x382))['description'](a2_0x3d4a9d(0x2d6));async function runAuthStatusCommand(_0x4205e8){const _0x3f1b29=a2_0x3d4a9d,_0x313e8c=new AuthStatusCommand(),_0x562f20=program[_0x3f1b29(0x289)](),_0x1f872d=await createTDXInstance(_0x562f20),_0x59d0e1=await _0x313e8c['run']({'options':{..._0x562f20,..._0x4205e8},'args':[],'tdx':_0x1f872d});process[_0x3f1b29(0x348)](_0x59d0e1);}authCmd[a2_0x3d4a9d(0x26e)](runAuthStatusCommand),authCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x418))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3c6))[a2_0x3d4a9d(0x26e)](runAuthStatusCommand),authCmd[a2_0x3d4a9d(0x27d)]('setup')[a2_0x3d4a9d(0x1f1)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x269))[a2_0x3d4a9d(0x26e)](async _0x39ded8=>{const _0x1cdc06=a2_0x3d4a9d,_0x3332de=new AuthSetupCommand(),_0x21db30=program[_0x1cdc06(0x289)](),_0x1a92cd=await createTDXInstance(_0x21db30),_0x3643dd=await _0x3332de[_0x1cdc06(0x1c9)]({'options':{..._0x21db30,..._0x39ded8},'args':[],'tdx':_0x1a92cd});process['exit'](_0x3643dd);}),authCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2e4))['description'](a2_0x3d4a9d(0x266))[a2_0x3d4a9d(0x2c0)](a2_0x3d4a9d(0x217),a2_0x3d4a9d(0x2fa))[a2_0x3d4a9d(0x26e)](async _0x3ebb2e=>{const _0xd0358b=a2_0x3d4a9d,_0x130bd4=new AuthClearCommand(),_0x57c290=program[_0xd0358b(0x289)](),_0x27c7ff=await _0x130bd4[_0xd0358b(0x1c9)]({'options':{..._0x57c290,..._0x3ebb2e},'args':[],'tdx':null});process[_0xd0358b(0x348)](_0x27c7ff);});const userCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3aa))['description'](a2_0x3d4a9d(0x3ce)),userListAction=async _0x20761f=>{const _0x2187f1=a2_0x3d4a9d,_0x5345b1=new UserListCommand(),_0x27527c=program['opts'](),_0xf210da=await createTDXInstance(_0x27527c),_0x29f9f8=await _0x5345b1[_0x2187f1(0x1c9)]({'options':{..._0x27527c,..._0x20761f},'args':[],'tdx':_0xf210da});process[_0x2187f1(0x348)](_0x29f9f8);};userCmd[a2_0x3d4a9d(0x26e)](async _0x23572b=>{const _0x25ebd0=a2_0x3d4a9d,_0x30d5a3=new UserCommand(),_0x14a458=program[_0x25ebd0(0x289)](),_0x137d1f=await createTDXInstance(_0x14a458),_0x519fb6=await _0x30d5a3[_0x25ebd0(0x1c9)]({'options':{..._0x14a458,..._0x23572b},'args':[],'tdx':_0x137d1f});process[_0x25ebd0(0x348)](_0x519fb6);}),userCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1dc))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x35d))[a2_0x3d4a9d(0x26e)](userListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x282))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x229))['action'](userListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2c3))['description']('List\x20all\x20available\x20profiles')[a2_0x3d4a9d(0x26e)](async _0x2098a0=>{const _0x217f54=a2_0x3d4a9d,_0xb6a9a0=new ProfilesCommand(),_0x4dbf4e=program[_0x217f54(0x289)](),_0x44c443=await _0xb6a9a0[_0x217f54(0x1c9)]({'options':{..._0x4dbf4e,..._0x2098a0},'args':[],'tdx':null});process[_0x217f54(0x348)](_0x44c443);});const engageCmd=program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x261))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x450247=>{return async(_0x316eb8,_0x6b8da5)=>{const _0x48b094=a2_0x2b74,_0x829c7e=new _0x450247(),_0x228603=program[_0x48b094(0x289)](),_0x5ea6cc=await createTDXInstance(_0x228603),_0xe51684=await _0x829c7e[_0x48b094(0x1c9)]({'options':{..._0x228603,..._0x6b8da5},'args':[_0x316eb8],'tdx':_0x5ea6cc});process[_0x48b094(0x348)](_0xe51684);};},createEngageNoArgAction=_0x363ad0=>{return async _0x26d883=>{const _0x1fec8c=a2_0x2b74,_0x5ed7a3=new _0x363ad0(),_0x2babc9=program[_0x1fec8c(0x289)](),_0x1fc77d=await createTDXInstance(_0x2babc9),_0x4cc57e=await _0x5ed7a3['run']({'options':{..._0x2babc9,..._0x26d883},'args':[],'tdx':_0x1fc77d});process[_0x1fec8c(0x348)](_0x4cc57e);};},campaignCmd=engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x23e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3db)),campaignListAction=async(_0x2848cc,_0x466eb6)=>{const _0x3c50ce=a2_0x3d4a9d,_0x31abe=new EngageCampaignsCommand(),_0x50db26=program['opts'](),_0x144e90=await createTDXInstance(_0x50db26),_0x2e8b8d=await _0x31abe[_0x3c50ce(0x1c9)]({'options':{..._0x50db26,..._0x466eb6},'args':_0x2848cc?[_0x2848cc]:[],'tdx':_0x144e90});process[_0x3c50ce(0x348)](_0x2e8b8d);};campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2b7))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3e7),a2_0x3d4a9d(0x394))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x2dc))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')[a2_0x3d4a9d(0x1f1)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')['option'](a2_0x3d4a9d(0x3e7),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x39d),a2_0x3d4a9d(0x2dc))['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](campaignListAction),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x304))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3d4a9d(0x27d)]('create')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x379))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x3d8))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x3e7),a2_0x3d4a9d(0x3ba))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),'Workspace\x20name\x20(required)')['option'](a2_0x3d4a9d(0x357),a2_0x3d4a9d(0x22e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x387),a2_0x3d4a9d(0x3f2))['option'](a2_0x3d4a9d(0x34b),a2_0x3d4a9d(0x307))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cb),a2_0x3d4a9d(0x290))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x32d),a2_0x3d4a9d(0x409))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x31b))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))[a2_0x3d4a9d(0x1f1)]('Update\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x298))[a2_0x3d4a9d(0x321)]('--description\x20<desc>',a2_0x3d4a9d(0x22e))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x387),a2_0x3d4a9d(0x3f2))[a2_0x3d4a9d(0x321)]('--email-sender-id\x20<id>',a2_0x3d4a9d(0x307))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x2cb),a2_0x3d4a9d(0x290))['option']('--start-at\x20<datetime>',a2_0x3d4a9d(0x409))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x22a),a2_0x3d4a9d(0x31b))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x3d4a9d(0x239))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ae))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3d4a9d(0x389))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x21c))[a2_0x3d4a9d(0x321)]('--workspace\x20<name>',a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x268))[a2_0x3d4a9d(0x1f1)]('Pause\x20a\x20campaign')['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2a0))['description']('Resume\x20a\x20paused\x20campaign')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x35e))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2ac))['option']('--workspace\x20<name>',a2_0x3d4a9d(0x361))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f7))[a2_0x3d4a9d(0x1f1)]('Email\x20template\x20management'),templateListAction=async(_0x3e45d3,_0x295263)=>{const _0x221a87=a2_0x3d4a9d,_0x5a993f=new EngageTemplatesCommand(),_0x131cc6=program[_0x221a87(0x289)](),_0x1b1f03=await createTDXInstance(_0x131cc6),_0xa26cd4=await _0x5a993f[_0x221a87(0x1c9)]({'options':{..._0x131cc6,..._0x295263},'args':_0x3e45d3?[_0x3e45d3]:[],'tdx':_0x1b1f03});process[_0x221a87(0x348)](_0xa26cd4);};templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26a))['description'](a2_0x3d4a9d(0x203))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),'Workspace\x20name')[a2_0x3d4a9d(0x26e)](templateListAction),engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x411))['description'](a2_0x3d4a9d(0x20c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x26e)](templateListAction),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x210))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x233))[a2_0x3d4a9d(0x1f1)]('Create\x20an\x20email\x20template')[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x275),a2_0x3d4a9d(0x349))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x373),a2_0x3d4a9d(0x1f4))[a2_0x3d4a9d(0x3a0)](a2_0x3d4a9d(0x2a7),a2_0x3d4a9d(0x2e2))[a2_0x3d4a9d(0x321)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x222),'Plaintext\x20template\x20content')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x24b),'Editor\x20type')[a2_0x3d4a9d(0x26e)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))['description'](a2_0x3d4a9d(0x3a8))['option'](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)]('--name\x20<name>',a2_0x3d4a9d(0x280))[a2_0x3d4a9d(0x321)]('--subject\x20<subject>','Email\x20subject\x20template')['option'](a2_0x3d4a9d(0x2a7),a2_0x3d4a9d(0x2e2))['option']('--plaintext\x20<text>',a2_0x3d4a9d(0x36e))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3d4a9d(0x239))['description'](a2_0x3d4a9d(0x1cd))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x25a),a2_0x3d4a9d(0x361))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3d4a9d(0x3dd))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x254)),workspaceListAction=async(_0xeaaa06,_0x5a6d09)=>{const _0x48ccf4=a2_0x3d4a9d,_0x3e875f=new EngageWorkspacesCommand(),_0x5b21e2=program[_0x48ccf4(0x289)](),_0x241cd3=await createTDXInstance(_0x5b21e2),_0x4c5d1c=await _0x3e875f[_0x48ccf4(0x1c9)]({'options':{..._0x5b21e2,..._0x5a6d09},'args':_0xeaaa06?[_0xeaaa06]:[],'tdx':_0x241cd3});process[_0x48ccf4(0x348)](_0x4c5d1c);};workspaceCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3b0))[a2_0x3d4a9d(0x26e)](workspaceListAction),engageCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x342))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x401))['action'](workspaceListAction),workspaceCmd['command'](a2_0x3d4a9d(0x312))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x30b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x284),a2_0x3d4a9d(0x2d4))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x233))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x39f))[a2_0x3d4a9d(0x3a0)]('--name\x20<name>',a2_0x3d4a9d(0x361))['option'](a2_0x3d4a9d(0x357),a2_0x3d4a9d(0x333))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f0))['description']('Update\x20a\x20workspace')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x275),'New\x20workspace\x20name')[a2_0x3d4a9d(0x321)]('--description\x20<desc>','Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x25c))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x318),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x347))['description'](a2_0x3d4a9d(0x31a))[a2_0x3d4a9d(0x26e)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3d4a9d(0x27d)]('connection')['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x28303d=>{const _0x154383=a2_0x3d4a9d,_0x393a36=new ConnectionListCommand(),_0x1b03c7=program['opts'](),_0x17b4e4=await createTDXInstance(_0x1b03c7),_0x5dfb65=await _0x393a36[_0x154383(0x1c9)]({'options':{..._0x1b03c7,..._0x28303d},'args':[],'tdx':_0x17b4e4});process['exit'](_0x5dfb65);};connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1dc))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x2bb))[a2_0x3d4a9d(0x26e)](connectionListAction),program[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x200),{'hidden':!![]})[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3cb))[a2_0x3d4a9d(0x26e)](connectionListAction),connectionCmd['command'](a2_0x3d4a9d(0x404))['description'](a2_0x3d4a9d(0x369))[a2_0x3d4a9d(0x26e)](async(_0x28466f,_0x165b30)=>{const _0x36e5d8=a2_0x3d4a9d,_0x45da87=new ConnectionShowCommand(),_0x24dd99=program[_0x36e5d8(0x289)](),_0x3b1f9a=await createTDXInstance(_0x24dd99),_0x5dc438=await _0x45da87['run']({'options':{..._0x24dd99,..._0x165b30},'args':[_0x28466f],'tdx':_0x3b1f9a});process[_0x36e5d8(0x348)](_0x5dc438);}),connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x27e))[a2_0x3d4a9d(0x1f1)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x24c761,_0x3bdb0f)=>{const _0x4ba6a6=a2_0x3d4a9d,_0x55196b=new ConnectionSchemaCommand(),_0x35fee9=program[_0x4ba6a6(0x289)](),_0xfd6651=await createTDXInstance(_0x35fee9),_0x38358c=await _0x55196b[_0x4ba6a6(0x1c9)]({'options':{..._0x35fee9,..._0x3bdb0f},'args':[_0x24c761],'tdx':_0xfd6651});process[_0x4ba6a6(0x348)](_0x38358c);}),connectionCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x384))['description'](a2_0x3d4a9d(0x3b9))[a2_0x3d4a9d(0x26e)](async _0x5e66b3=>{const _0x38c32f=a2_0x3d4a9d,_0x586c57=new ConnectionTypesCommand(),_0x7f98c4=program['opts'](),_0x41dad1=await createTDXInstance(_0x7f98c4),_0x44e7ee=await _0x586c57[_0x38c32f(0x1c9)]({'options':{..._0x7f98c4,..._0x5e66b3},'args':[],'tdx':_0x41dad1});process['exit'](_0x44e7ee);}),connectionCmd['command']('settings\x20<type>')[a2_0x3d4a9d(0x1f1)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3d4a9d(0x26e)](async(_0x3767a0,_0x5890b9)=>{const _0x112f05=a2_0x3d4a9d,_0x284a70=new ConnectionSettingsCommand(),_0x3a3517=program[_0x112f05(0x289)](),_0x148d44=await createTDXInstance(_0x3a3517),_0x4cb581=await _0x284a70['run']({'options':{..._0x3a3517,..._0x5890b9},'args':[_0x3767a0],'tdx':_0x148d44});process['exit'](_0x4cb581);});const journeyCmd=program[a2_0x3d4a9d(0x27d)]('journey')['description'](a2_0x3d4a9d(0x1d6));journeyCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)]('List\x20journeys\x20in\x20current\x20context')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x255),'Show\x20web\x20console\x20URLs\x20for\x20journeys')[a2_0x3d4a9d(0x26e)](async(_0x44d6b0,_0x4fcad0)=>{const _0x1fd70a=a2_0x3d4a9d,_0x563914=new JourneyListCommand(),_0x46b11d=program[_0x1fd70a(0x289)](),_0x18fdda=await createTDXInstance(_0x46b11d),_0x53c8b3=await _0x563914[_0x1fd70a(0x1c9)]({'options':{..._0x46b11d,..._0x4fcad0},'args':_0x44d6b0?[_0x44d6b0]:[],'tdx':_0x18fdda});process[_0x1fd70a(0x348)](_0x53c8b3);}),journeyCmd['command'](a2_0x3d4a9d(0x410))['description'](a2_0x3d4a9d(0x212))['option']('-w,\x20--web',a2_0x3d4a9d(0x299))['option'](a2_0x3d4a9d(0x36d),'Include\x20execution\x20statistics')['action'](async(_0x276f9a,_0xe0a23a)=>{const _0x215f90=a2_0x3d4a9d,_0x36b1c=new JourneyViewCommand(),_0x4eef8a=program[_0x215f90(0x289)](),_0x300a38=await createTDXInstance(_0x4eef8a),_0x2adab1=await _0x36b1c[_0x215f90(0x1c9)]({'options':{..._0x4eef8a,..._0xe0a23a},'args':[_0x276f9a],'tdx':_0x300a38});process['exit'](_0x2adab1);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x353))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x21a))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x20b),a2_0x3d4a9d(0x406))[a2_0x3d4a9d(0x26e)](async(_0x393fbf,_0x49421f)=>{const _0x56c8ba=a2_0x3d4a9d,_0x2ca4bd=new JourneyStatsCommand(),_0x30560c=program[_0x56c8ba(0x289)](),_0xa9671=await createTDXInstance(_0x30560c),_0xe5fac8=await _0x2ca4bd[_0x56c8ba(0x1c9)]({'options':{..._0x30560c,..._0x49421f},'args':[_0x393fbf],'tdx':_0xa9671});process[_0x56c8ba(0x348)](_0xe5fac8);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x381))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3eb))['action'](async(_0x2eced0,_0x57791f)=>{const _0x3f0727=a2_0x3d4a9d,_0x4673bb=new JourneyPauseCommand(),_0x24e85d=program[_0x3f0727(0x289)](),_0x35377f=await createTDXInstance(_0x24e85d),_0x5b9a96=await _0x4673bb[_0x3f0727(0x1c9)]({'options':{..._0x24e85d,..._0x57791f},'args':[_0x2eced0],'tdx':_0x35377f});process[_0x3f0727(0x348)](_0x5b9a96);}),journeyCmd[a2_0x3d4a9d(0x27d)]('resume\x20<name-or-path>')[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x226))[a2_0x3d4a9d(0x26e)](async(_0x200fd2,_0x38fe72)=>{const _0x5a45e1=a2_0x3d4a9d,_0x7d9dcd=new JourneyResumeCommand(),_0x3ad4fb=program['opts'](),_0xaf1f4e=await createTDXInstance(_0x3ad4fb),_0x52f665=await _0x7d9dcd[_0x5a45e1(0x1c9)]({'options':{..._0x3ad4fb,..._0x38fe72},'args':[_0x200fd2],'tdx':_0xaf1f4e});process[_0x5a45e1(0x348)](_0x52f665);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x2ea))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x3c1),a2_0x3d4a9d(0x259))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x37b),a2_0x3d4a9d(0x3ec))[a2_0x3d4a9d(0x26e)](async(_0x4aa385,_0x3de488)=>{const _0x2a28fe=a2_0x3d4a9d,_0x38f202=new JourneyPullCommand(),_0x3ab7fe=program[_0x2a28fe(0x289)](),_0x1c93eb=await createTDXInstance(_0x3ab7fe),_0x2fcfdd=await _0x38f202[_0x2a28fe(0x1c9)]({'options':{..._0x3ab7fe,..._0x3de488},'args':_0x4aa385?[_0x4aa385]:[],'tdx':_0x1c93eb});process[_0x2a28fe(0x348)](_0x2fcfdd);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x244))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x209))[a2_0x3d4a9d(0x26e)](async(_0x38a565,_0x43ec36)=>{const _0x32f966=a2_0x3d4a9d,_0x393603=new JourneyPushCommand(),_0x4802ce=program[_0x32f966(0x289)](),_0x2b40bd=await createTDXInstance(_0x4802ce),_0x835bb1=await _0x393603[_0x32f966(0x1c9)]({'options':{..._0x4802ce,..._0x43ec36},'args':_0x38a565?[_0x38a565]:[],'tdx':_0x2b40bd});process[_0x32f966(0x348)](_0x835bb1);}),journeyCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3c0))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x36c))[a2_0x3d4a9d(0x26e)](async(_0x55300e,_0x2e4bf9)=>{const _0x2cf607=a2_0x3d4a9d,_0x53800e=new JourneyValidateCommand(),_0x4bb6d9=program[_0x2cf607(0x289)](),_0xd74d3e=await createTDXInstance(_0x4bb6d9),_0x11eed6=await _0x53800e[_0x2cf607(0x1c9)]({'options':{..._0x4bb6d9,..._0x2e4bf9},'args':_0x55300e?[_0x55300e]:[],'tdx':_0xd74d3e});process[_0x2cf607(0x348)](_0x11eed6);});const agentSyncCmd=program['command'](a2_0x3d4a9d(0x260))[a2_0x3d4a9d(0x1f1)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x3d4a9d(0x316))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x238))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x242),a2_0x3d4a9d(0x256))['option']('-f,\x20--force',a2_0x3d4a9d(0x324))[a2_0x3d4a9d(0x26e)](async(_0x5c3e9d,_0x265c2e,_0xd47918)=>{const _0x2c4e77=a2_0x3d4a9d,_0x23b1d7=new AgentPullCommand(),_0x2694db=program[_0x2c4e77(0x289)](),_0x44c31c=await createTDXInstance(_0x2694db),_0x512ff8=[];if(_0x5c3e9d)_0x512ff8['push'](_0x5c3e9d);if(_0x265c2e)_0x512ff8['push'](_0x265c2e);const _0xc627c8=await _0x23b1d7[_0x2c4e77(0x1c9)]({'options':{..._0x2694db,..._0xd47918},'args':_0x512ff8,'tdx':_0x44c31c});process[_0x2c4e77(0x348)](_0xc627c8);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x26d))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x1ff))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x272),a2_0x3d4a9d(0x32a))[a2_0x3d4a9d(0x26e)](async(_0x4709cf,_0x46cfc7)=>{const _0x2be80e=a2_0x3d4a9d,_0xabf85=new AgentPushCommand(),_0x2c501a=program[_0x2be80e(0x289)](),_0x3eb78d=await createTDXInstance(_0x2c501a),_0x34a600=await _0xabf85[_0x2be80e(0x1c9)]({'options':{..._0x2c501a,..._0x46cfc7},'args':_0x4709cf?[_0x4709cf]:[],'tdx':_0x3eb78d});process[_0x2be80e(0x348)](_0x34a600);}),agentSyncCmd[a2_0x3d4a9d(0x27d)]('clone\x20[source]')['description'](a2_0x3d4a9d(0x2df))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1e6),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3d4a9d(0x26e)](async(_0xa42560,_0xca52b2)=>{const _0x2561d7=a2_0x3d4a9d,_0x5cfeae=new AgentCloneCommand(),_0x55f697=program[_0x2561d7(0x289)](),_0x4cb506=await createTDXInstance(_0x55f697),_0x45abeb=await _0x5cfeae['run']({'options':{..._0x55f697,..._0xca52b2},'args':_0xa42560?[_0xa42560]:[],'tdx':_0x4cb506});process[_0x2561d7(0x348)](_0x45abeb);}),agentSyncCmd['command'](a2_0x3d4a9d(0x26a))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x374))['option'](a2_0x3d4a9d(0x255),'Show\x20agent\x20chat\x20URLs')['action'](llmAgentListAction),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f4))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3d1))[a2_0x3d4a9d(0x26e)](async(_0x25e6dc,_0x514298)=>{const _0x71b89d=a2_0x3d4a9d,_0x2df9fc=new LLMAgentShowCommand(),_0x4d6162=program[_0x71b89d(0x289)](),_0x3c340a=await createTDXInstance(_0x4d6162),_0x505336=await _0x2df9fc['run']({'options':{..._0x4d6162,..._0x514298},'args':[_0x25e6dc],'tdx':_0x3c340a});process[_0x71b89d(0x348)](_0x505336);}),agentSyncCmd['command'](a2_0x3d4a9d(0x3f9))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x3a2))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x396),a2_0x3d4a9d(0x362))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x1c6),a2_0x3d4a9d(0x2ba),'claude-4.5-sonnet')[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28a),a2_0x3d4a9d(0x251))['option'](a2_0x3d4a9d(0x1ec),a2_0x3d4a9d(0x3ca),'4')['option'](a2_0x3d4a9d(0x2f0),a2_0x3d4a9d(0x2ad),a2_0x3d4a9d(0x1d2))[a2_0x3d4a9d(0x26e)](async(_0x2e272c,_0x20c224)=>{const _0x4c3293=a2_0x3d4a9d,_0x55505a=new LLMAgentCreateCommand(),_0x4d3fa7=program[_0x4c3293(0x289)](),_0x541228=await createTDXInstance(_0x4d3fa7),_0x2659a5=await _0x55505a[_0x4c3293(0x1c9)]({'options':{..._0x4d3fa7,..._0x20c224},'args':[_0x2e272c],'tdx':_0x541228});process[_0x4c3293(0x348)](_0x2659a5);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x3f5))['description'](a2_0x3d4a9d(0x248))['option']('--name\x20<text>',a2_0x3d4a9d(0x358))['option'](a2_0x3d4a9d(0x1e9),a2_0x3d4a9d(0x3ef))['option'](a2_0x3d4a9d(0x2b4),a2_0x3d4a9d(0x29b))[a2_0x3d4a9d(0x321)](a2_0x3d4a9d(0x28a),a2_0x3d4a9d(0x251))[a2_0x3d4a9d(0x26e)](async(_0x1ba8df,_0xd4632b)=>{const _0x248036=a2_0x3d4a9d,_0xbf5e01=new LLMAgentUpdateCommand(),_0x10553e=program['opts'](),_0x330f30=await createTDXInstance(_0x10553e),_0x429f5d=await _0xbf5e01[_0x248036(0x1c9)]({'options':{..._0x10553e,..._0xd4632b},'args':[_0x1ba8df],'tdx':_0x330f30});process[_0x248036(0x348)](_0x429f5d);}),agentSyncCmd[a2_0x3d4a9d(0x27d)](a2_0x3d4a9d(0x1e3))[a2_0x3d4a9d(0x1f1)](a2_0x3d4a9d(0x285))[a2_0x3d4a9d(0x26e)](async(_0x5b9dc9,_0x339f6f)=>{const _0x4beeab=a2_0x3d4a9d,_0x349573=new LLMAgentDeleteCommand(),_0x314c8f=program['opts'](),_0x1ecf6f=await createTDXInstance(_0x314c8f),_0x11b833=await _0x349573[_0x4beeab(0x1c9)]({'options':{..._0x314c8f,..._0x339f6f},'args':[_0x5b9dc9],'tdx':_0x1ecf6f});process[_0x4beeab(0x348)](_0x11b833);});export{program};export function runCLI(){const _0xcfae03=a2_0x3d4a9d;program[_0xcfae03(0x1cb)](process[_0xcfae03(0x1f3)]);!process[_0xcfae03(0x1f3)][_0xcfae03(0x247)](0x2)[_0xcfae03(0x1fb)]&&program['outputHelp']();const _0x398a77=packageJson['version'];process[_0xcfae03(0x40a)][_0xcfae03(0x1fd)]&&process[_0xcfae03(0x1f3)]['length']>0x2&&!_0x398a77[_0xcfae03(0x354)](_0xcfae03(0x27a))&&checkForUpdate(_0x398a77)['then'](_0x354e3c=>{_0x354e3c&&displayUpdateNotification(_0x354e3c);})['catch'](()=>{});}
1
+ const a2_0x130057=a2_0x48bc;(function(_0x367fda,_0x64efb5){const _0xc1521=a2_0x48bc,_0x342d6d=_0x367fda();while(!![]){try{const _0x20772d=-parseInt(_0xc1521(0x302))/0x1*(parseInt(_0xc1521(0x427))/0x2)+parseInt(_0xc1521(0x266))/0x3*(-parseInt(_0xc1521(0x3b6))/0x4)+parseInt(_0xc1521(0x217))/0x5+parseInt(_0xc1521(0x229))/0x6+-parseInt(_0xc1521(0x3fd))/0x7*(parseInt(_0xc1521(0x25e))/0x8)+parseInt(_0xc1521(0x2ac))/0x9*(parseInt(_0xc1521(0x210))/0xa)+parseInt(_0xc1521(0x33a))/0xb*(parseInt(_0xc1521(0x275))/0xc);if(_0x20772d===_0x64efb5)break;else _0x342d6d['push'](_0x342d6d['shift']());}catch(_0x15c205){_0x342d6d['push'](_0x342d6d['shift']());}}}(a2_0x1b47,0xa7a4e));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/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}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}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,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}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{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.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';function a2_0x48bc(_0x1974a0,_0x2d9b9f){_0x1974a0=_0x1974a0-0x1dd;const _0x1b47f1=a2_0x1b47();let _0x48bc57=_0x1b47f1[_0x1974a0];return _0x48bc57;}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{ContextCommand}from'./commands/context-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-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{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv']['includes'](a2_0x130057(0x263))){let versionOutput='tdx\x20'+currentVersion;buildInfo[a2_0x130057(0x3d9)]&&!currentVersion[a2_0x130057(0x3e8)](buildInfo[a2_0x130057(0x3d9)])&&(versionOutput+='\x20('+buildInfo[a2_0x130057(0x3d9)]+')'),buildInfo[a2_0x130057(0x311)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x130057(0x311)]),console['log'](versionOutput),process['exit'](0x0);}const program=new Command();let description=a2_0x130057(0x315);buildInfo[a2_0x130057(0x3d9)]&&!currentVersion[a2_0x130057(0x3e8)](buildInfo[a2_0x130057(0x3d9)])?description+=a2_0x130057(0x29b)+currentVersion+'\x20('+buildInfo[a2_0x130057(0x3d9)]+')':description+=a2_0x130057(0x29b)+currentVersion;program[a2_0x130057(0x2b7)](a2_0x130057(0x222))[a2_0x130057(0x245)](description),program['option'](a2_0x130057(0x1f7),a2_0x130057(0x216))[a2_0x130057(0x32d)](a2_0x130057(0x3ca),a2_0x130057(0x347))[a2_0x130057(0x32d)](a2_0x130057(0x3ea),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')['option'](a2_0x130057(0x34e),a2_0x130057(0x3d0))[a2_0x130057(0x32d)]('--table',a2_0x130057(0x23b))['option'](a2_0x130057(0x264),a2_0x130057(0x345))['option'](a2_0x130057(0x2f3),a2_0x130057(0x2b3))[a2_0x130057(0x32d)](a2_0x130057(0x22d),a2_0x130057(0x281))[a2_0x130057(0x32d)](a2_0x130057(0x42c),'Save\x20output\x20to\x20file')[a2_0x130057(0x32d)]('--limit\x20<number>',a2_0x130057(0x27e))[a2_0x130057(0x32d)](a2_0x130057(0x376),a2_0x130057(0x1f0),![])[a2_0x130057(0x32d)](a2_0x130057(0x32f),a2_0x130057(0x35a),![])[a2_0x130057(0x32d)]('-v,\x20--verbose',a2_0x130057(0x27f),![])[a2_0x130057(0x32d)]('--debug',a2_0x130057(0x2c4))['option'](a2_0x130057(0x243),a2_0x130057(0x265))[a2_0x130057(0x32d)]('--timeout\x20<seconds>',a2_0x130057(0x3cd),'30')[a2_0x130057(0x32d)](a2_0x130057(0x2e8),'Preview\x20operation\x20without\x20executing',![])[a2_0x130057(0x32d)]('-y,\x20--yes',a2_0x130057(0x317),![])[a2_0x130057(0x32d)](a2_0x130057(0x28b),a2_0x130057(0x2a3))[a2_0x130057(0x32d)](a2_0x130057(0x425),a2_0x130057(0x3d6))[a2_0x130057(0x32d)](a2_0x130057(0x40c),a2_0x130057(0x285))[a2_0x130057(0x32d)]('--parent-segment\x20<name>',a2_0x130057(0x27c))[a2_0x130057(0x32d)](a2_0x130057(0x301),a2_0x130057(0x258)),program[a2_0x130057(0x31c)]({'formatHelp':(_0x428378,_0x1a5b7b)=>{const _0x389f83=a2_0x130057,_0x3f8953=_0x1a5b7b[_0x389f83(0x3f3)](_0x428378,_0x1a5b7b),_0x21862c=0x2,_0x243361=0x2;function _0x46f4bd(_0x2f62c5){const _0x189294=_0x389f83,_0x523479=_0x2f62c5;return!!(_0x523479['_hidden']||_0x523479[_0x189294(0x2b5)]);}function _0x508526(_0x3170d9,_0x186b29){if(_0x186b29){const _0x3abacf=''+_0x3170d9['padEnd'](_0x3f8953+_0x243361)+_0x186b29;return _0x3abacf;}return _0x3170d9;}function _0x417745(_0x2fac15){const _0x1a9d15=_0x389f83;return _0x2fac15[_0x1a9d15(0x2a0)]('\x0a')[_0x1a9d15(0x28f)](/^/gm,'\x20'[_0x1a9d15(0x201)](_0x21862c));}const _0x4c3656=[];_0x4c3656[_0x389f83(0x2eb)](_0x389f83(0x3ce)+_0x1a5b7b[_0x389f83(0x20b)](_0x428378));const _0x5e4eed=_0x1a5b7b[_0x389f83(0x3b9)](_0x428378);_0x5e4eed&&(_0x4c3656[_0x389f83(0x2eb)](''),_0x4c3656[_0x389f83(0x2eb)](_0x5e4eed));const _0x5d496a=_0x428378[_0x389f83(0x312)][_0x389f83(0x25c)](_0x5d5093=>!_0x46f4bd(_0x5d5093));if(_0x5d496a['length']>0x0){if(_0x428378['name']()===_0x389f83(0x222)){const _0x3505b7=_0x428378['opts'](),_0x4d4117=!_0x3505b7[_0x389f83(0x368)]&&process[_0x389f83(0x3f6)][_0x389f83(0x22b)],_0x1d2bca=COMMAND_CATEGORIES,_0x457b13=(_0x5d99b4,_0x3d6ba5)=>_0x4d4117?_0x3d6ba5(_0x5d99b4):_0x5d99b4,_0x5e75d8=new Map();_0x5d496a[_0x389f83(0x3c2)](_0x4660b2=>{const _0x5e27b5=_0x389f83;_0x5e75d8[_0x5e27b5(0x35e)](_0x4660b2[_0x5e27b5(0x2b7)](),_0x4660b2);}),_0x1d2bca[_0x389f83(0x3c2)](_0x1fddd0=>{const _0xca1842=_0x389f83,_0x43919d=_0x1fddd0[_0xca1842(0x312)][_0xca1842(0x373)](_0xf9a416=>_0x5e75d8[_0xca1842(0x3f2)](_0xf9a416)??[]);if(_0x43919d[_0xca1842(0x2c3)]>0x0){_0x4c3656[_0xca1842(0x2eb)](''),_0x4c3656[_0xca1842(0x2eb)](_0x457b13(_0x1fddd0[_0xca1842(0x2b7)]+':',_0x1fddd0[_0xca1842(0x38f)]));const _0x255429=_0x43919d[_0xca1842(0x3d3)](_0x5860b2=>{const _0xe8d65e=_0xca1842,_0x37db35=_0x1a5b7b[_0xe8d65e(0x2fd)](_0x5860b2),_0x40d1f5=_0x1a5b7b[_0xe8d65e(0x39c)](_0x5860b2);return _0x508526(_0x37db35,_0x40d1f5);});_0x4c3656[_0xca1842(0x2eb)](_0x417745(_0x255429));}}),_0x4c3656['push'](''),_0x4c3656[_0x389f83(0x2eb)](_0x389f83(0x2c0));}else{const _0x547faf=_0x5d496a[_0x389f83(0x3d3)](_0x5b4cc1=>{const _0x5e814a=_0x389f83,_0x540a80=_0x1a5b7b[_0x5e814a(0x2fd)](_0x5b4cc1),_0x52bafe=_0x1a5b7b[_0x5e814a(0x39c)](_0x5b4cc1);return _0x508526(_0x540a80,_0x52bafe);});_0x4c3656[_0x389f83(0x2eb)](''),_0x4c3656[_0x389f83(0x2eb)](_0x389f83(0x1e8)),_0x4c3656[_0x389f83(0x2eb)](_0x417745(_0x547faf));}}const _0x3c0fc4=_0x428378[_0x389f83(0x209)][_0x389f83(0x25c)](_0x1e67bd=>!_0x46f4bd(_0x1e67bd));if(_0x3c0fc4[_0x389f83(0x2c3)]>0x0){const _0x5ae8de=_0x3c0fc4['map'](_0x634210=>{const _0xde7602=_0x389f83,_0x2883e8=_0x1a5b7b['optionTerm'](_0x634210),_0x594f63=_0x1a5b7b[_0xde7602(0x40e)](_0x634210);return _0x508526(_0x2883e8,_0x594f63);});_0x4c3656[_0x389f83(0x2eb)](''),_0x4c3656['push'](_0x389f83(0x289)),_0x4c3656[_0x389f83(0x2eb)](_0x417745(_0x5ae8de));}const _0x291305=(_0x428378[_0x389f83(0x26a)]||[])[_0x389f83(0x25c)](_0x5d166e=>!_0x46f4bd(_0x5d166e));if(_0x291305[_0x389f83(0x2c3)]>0x0){const _0x36b32a=_0x291305['map'](_0xc1ffbc=>{const _0x25887a=_0x389f83,_0x513138=_0x1a5b7b['argumentTerm'](_0xc1ffbc),_0x2d60b4=_0x1a5b7b[_0x25887a(0x251)](_0xc1ffbc);return _0x508526(_0x513138,_0x2d60b4);});_0x4c3656[_0x389f83(0x2eb)](''),_0x4c3656['push'](_0x389f83(0x3fa)),_0x4c3656[_0x389f83(0x2eb)](_0x417745(_0x36b32a));}return _0x4c3656[_0x389f83(0x2a0)]('\x0a');},'subcommandTerm':_0x3764b3=>{const _0x127431=a2_0x130057,_0x57c9c6=(_0x3764b3[_0x127431(0x26a)]||[])[_0x127431(0x3d3)](_0x6fbf3b=>_0x6fbf3b[_0x127431(0x25f)]?'<'+_0x6fbf3b[_0x127431(0x2b7)]()+'>':'['+_0x6fbf3b[_0x127431(0x2b7)]()+']')[_0x127431(0x2a0)]('\x20'),_0x140124=_0x3764b3[_0x127431(0x332)](),_0x305151=_0x140124[_0x127431(0x2c3)]>0x0?_0x3764b3['name']()+',\x20'+_0x140124['join'](',\x20'):_0x3764b3['name']();return _0x57c9c6?_0x305151+'\x20'+_0x57c9c6:_0x305151;}}),program[a2_0x130057(0x365)](a2_0x130057(0x3bb),_0x21304a=>{const _0x3fcbdf=a2_0x130057,_0x21946f=_0x21304a[_0x3fcbdf(0x3ef)]();if(_0x21946f[_0x3fcbdf(0x33b)]){const _0x4925c8=resolve(_0x21946f[_0x3fcbdf(0x33b)]),_0x256575=_0x4925c8!==_0x21946f[_0x3fcbdf(0x33b)]?_0x3fcbdf(0x298)+_0x4925c8+')':'';if(!existsSync(_0x4925c8))throw new SDKError(ErrorCode[_0x3fcbdf(0x279)],'Directory\x20does\x20not\x20exist:\x20'+_0x21946f[_0x3fcbdf(0x33b)]+_0x256575,undefined,{'helpText':_0x3fcbdf(0x1dd)});const _0x239373=statSync(_0x4925c8);if(!_0x239373[_0x3fcbdf(0x1fe)]())throw new SDKError(ErrorCode[_0x3fcbdf(0x279)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x21946f[_0x3fcbdf(0x33b)]+_0x256575,undefined,{'helpText':_0x3fcbdf(0x259)});process[_0x3fcbdf(0x246)](_0x4925c8);}if(!_0x21946f[_0x3fcbdf(0x231)]){if(_0x21946f[_0x3fcbdf(0x335)])_0x21946f[_0x3fcbdf(0x231)]=_0x3fcbdf(0x335);else{if(_0x21946f[_0x3fcbdf(0x416)])_0x21946f[_0x3fcbdf(0x231)]='json';else{if(_0x21946f['jsonl'])_0x21946f[_0x3fcbdf(0x231)]=_0x3fcbdf(0x1de);else _0x21946f[_0x3fcbdf(0x288)]&&(_0x21946f[_0x3fcbdf(0x231)]='tsv');}}}_0x21946f['in']&&!_0x21946f[_0x3fcbdf(0x252)]&&(_0x21946f['database']=_0x21946f['in']);if(_0x21946f[_0x3fcbdf(0x414)])_0x21946f['logLevel']=LogLevel[_0x3fcbdf(0x2ba)];else{if(_0x21946f[_0x3fcbdf(0x371)])_0x21946f['logLevel']=LogLevel['DEBUG'];else _0x21946f[_0x3fcbdf(0x430)]===undefined&&(_0x21946f[_0x3fcbdf(0x430)]=LogLevel['INFO']);}});async function createTDXInstance(_0x54be53){const _0x122cce=a2_0x130057,_0x24325b=await GlobalContext[_0x122cce(0x380)](_0x54be53);return _0x24325b[_0x122cce(0x402)](_0x54be53),TDX[_0x122cce(0x3e6)]({'site':_0x24325b[_0x122cce(0x432)],'apiKey':_0x24325b[_0x122cce(0x407)],'logLevel':_0x24325b[_0x122cce(0x430)],'profile':_0x24325b[_0x122cce(0x415)]});}const databaseCmd=program[a2_0x130057(0x395)](a2_0x130057(0x252))[a2_0x130057(0x1e9)]('db')[a2_0x130057(0x245)](a2_0x130057(0x23e)),databaseListAction=async(_0xc34d39,_0x355a9f)=>{const _0x4f7142=a2_0x130057,_0x515b76=new DatabasesCommand(),_0x125eb7=program['opts'](),_0x4eb3ec=await createTDXInstance(_0x125eb7),_0x4b5219=await _0x515b76[_0x4f7142(0x389)]({'options':{..._0x125eb7,..._0x355a9f},'args':_0xc34d39?[_0xc34d39]:[],'tdx':_0x4eb3ec});process[_0x4f7142(0x351)](_0x4b5219);};databaseCmd[a2_0x130057(0x395)]('list\x20[pattern]')['description'](a2_0x130057(0x20a))[a2_0x130057(0x379)](databaseListAction),program['command'](a2_0x130057(0x36b),{'hidden':!![]})[a2_0x130057(0x245)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x130057(0x379)](databaseListAction),program[a2_0x130057(0x395)](a2_0x130057(0x296))[a2_0x130057(0x245)](a2_0x130057(0x25a))[a2_0x130057(0x32d)](a2_0x130057(0x37b),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x130057(0x32d)](a2_0x130057(0x356),a2_0x130057(0x3f4))[a2_0x130057(0x379)](async(_0x164d32,_0x3863cd)=>{const _0x265b14=a2_0x130057,_0x53e777=new ChatCommand(),_0x35842b=program[_0x265b14(0x3ef)](),_0x2c74d1=await createTDXInstance(_0x35842b),_0x135df6=await _0x53e777[_0x265b14(0x389)]({'options':{..._0x35842b,..._0x3863cd},'args':_0x164d32,'tdx':_0x2c74d1});process['exit'](_0x135df6);});const apiCmd=program[a2_0x130057(0x395)](a2_0x130057(0x353))[a2_0x130057(0x225)](a2_0x130057(0x2da))[a2_0x130057(0x241)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x130057(0x32d)](a2_0x130057(0x276),a2_0x130057(0x3fe),a2_0x130057(0x2d0))[a2_0x130057(0x32d)](a2_0x130057(0x2d4),a2_0x130057(0x340))[a2_0x130057(0x32d)](a2_0x130057(0x3dd),a2_0x130057(0x394))[a2_0x130057(0x32d)](a2_0x130057(0x397),a2_0x130057(0x24f),(_0x297d31,_0x47fa10)=>{return _0x47fa10?[..._0x47fa10,_0x297d31]:[_0x297d31];})[a2_0x130057(0x32d)](a2_0x130057(0x2cf),a2_0x130057(0x22a),'td')[a2_0x130057(0x379)](async(_0x40c101,_0x204770)=>{const _0x5c6547=a2_0x130057;if(!_0x40c101){apiCmd[_0x5c6547(0x322)]();return;}const _0x4c6c21=new ApiCommand(),_0x2466f0=program[_0x5c6547(0x3ef)](),_0x2c13b2=await createTDXInstance(_0x2466f0),_0x330134=await _0x4c6c21['run']({'options':{..._0x2466f0,..._0x204770},'args':[_0x40c101],'tdx':_0x2c13b2});process[_0x5c6547(0x351)](_0x330134);}),tableCmd=program[a2_0x130057(0x395)](a2_0x130057(0x335))[a2_0x130057(0x245)](a2_0x130057(0x3d7)),tableListAction=async(_0x4b6115,_0x2e5ced)=>{const _0x324036=a2_0x130057,_0xd04551=new TablesCommand(),_0x186d07=program[_0x324036(0x3ef)](),_0x4ecec4=await createTDXInstance(_0x186d07);_0x2e5ced['in']&&(_0x2e5ced[_0x324036(0x252)]=_0x2e5ced['in']);const _0x147d1c=await _0xd04551[_0x324036(0x389)]({'options':{..._0x186d07,..._0x2e5ced},'args':_0x4b6115?[_0x4b6115]:[],'tdx':_0x4ecec4});process[_0x324036(0x351)](_0x147d1c);};tableCmd[a2_0x130057(0x395)](a2_0x130057(0x43b))[a2_0x130057(0x245)](a2_0x130057(0x3df))[a2_0x130057(0x32d)](a2_0x130057(0x2bb),a2_0x130057(0x244))[a2_0x130057(0x32d)](a2_0x130057(0x2bd),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x130057(0x379)](tableListAction),program['command']('tables\x20[pattern]',{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x297))[a2_0x130057(0x32d)](a2_0x130057(0x2bb),a2_0x130057(0x244))['option'](a2_0x130057(0x2bd),a2_0x130057(0x285))[a2_0x130057(0x379)](tableListAction),program[a2_0x130057(0x395)](a2_0x130057(0x202))['description'](a2_0x130057(0x320))[a2_0x130057(0x32d)](a2_0x130057(0x2bb),a2_0x130057(0x363))[a2_0x130057(0x32d)](a2_0x130057(0x2bd),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x3476c2,_0x162b81)=>{const _0x341004=a2_0x130057,_0x2f7abb=new ShowCommand(),_0x54829c=program[_0x341004(0x3ef)](),_0x6b9481=await createTDXInstance(_0x54829c);_0x162b81['in']&&(_0x162b81[_0x341004(0x252)]=_0x162b81['in']);const _0x5e3144=await _0x2f7abb[_0x341004(0x389)]({'options':{..._0x54829c,..._0x162b81},'args':_0x3476c2?[_0x3476c2]:[],'tdx':_0x6b9481});process['exit'](_0x5e3144);}),program['command']('describe\x20[table]')[a2_0x130057(0x1e9)](a2_0x130057(0x21b))['description'](a2_0x130057(0x2ca))['option']('-d,\x20--database\x20<database>',a2_0x130057(0x363))['option'](a2_0x130057(0x2bd),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x130057(0x379)](async(_0x30f605,_0x4e5a3c)=>{const _0x220fef=a2_0x130057,_0x5eec92=new DescribeCommand(),_0x4523df=program['opts'](),_0x27eae9=await createTDXInstance(_0x4523df);_0x4e5a3c['in']&&(_0x4e5a3c['database']=_0x4e5a3c['in']);const _0x1b80bd=await _0x5eec92[_0x220fef(0x389)]({'options':{..._0x4523df,..._0x4e5a3c},'args':_0x30f605?[_0x30f605]:[],'tdx':_0x27eae9});process['exit'](_0x1b80bd);}),program[a2_0x130057(0x395)](a2_0x130057(0x32e))['description'](a2_0x130057(0x37d))[a2_0x130057(0x32d)]('-d,\x20--database\x20<database>',a2_0x130057(0x27a))[a2_0x130057(0x32d)](a2_0x130057(0x2bd),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x130057(0x2e9),a2_0x130057(0x1ed))[a2_0x130057(0x32d)](a2_0x130057(0x3dd),'Read\x20SQL\x20query\x20from\x20file')[a2_0x130057(0x32d)]('--limit\x20<rows>',a2_0x130057(0x2a5),'40')[a2_0x130057(0x379)](async(_0x4a4568,_0x138a4b)=>{const _0x525652=a2_0x130057,_0x70b245=new QueryCommand(),_0x47a34f=program[_0x525652(0x3ef)](),_0x4168d3=await createTDXInstance(_0x47a34f);_0x138a4b['in']&&(_0x138a4b[_0x525652(0x252)]=_0x138a4b['in']);const _0x5e8fe8=await _0x70b245[_0x525652(0x389)]({'options':{..._0x47a34f,..._0x138a4b},'args':_0x4a4568?[_0x4a4568]:[],'tdx':_0x4168d3});process['exit'](_0x5e8fe8);});function a2_0x1b47(){const _0x5e7db6=['argument','parents\x20[pattern]','templates\x20[pattern]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','--type\x20<api_type>','GET','Parent\x20segment\x20management','--add-behaviors-file\x20<file>','Open\x20parent\x20segment\x20in\x20web\x20browser','--data\x20<data>','Open\x20journey\x20in\x20web\x20browser','after','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Workflow\x20session\x20management','push\x20[path]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','proxy','Show\x20workspace\x20details','users','use\x20[project]','Create\x20segment\x20folder','Show\x20stats\x20for\x20specific\x20stage','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','error','Maximum\x20tool\x20iterations\x20(default:\x204)','Agent\x20name','duplicate\x20<name-or-id>','--dry-run','--catalog\x20<catalog>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','push','--email-sender-id\x20<id>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Set\x20or\x20show\x20parent\x20segment\x20context','Duplicate\x20a\x20campaign','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','attempt:','Push\x20without\x20confirmation','--jsonl','restore\x20<folder>','clear','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--timezone\x20<tz>','--max-depth\x20<depth>','trino','[attempt-id]','--description\x20<text>','subcommandTerm','--start-at\x20<datetime>','New\x20campaign\x20name','Preview\x20changes\x20without\x20pushing','--llm-project\x20<name>','1789qnEhoZ','attempt','Task\x20name\x20for\x20logs\x20action','Interactive\x20chat\x20selector','New\x20workspace\x20name','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Campaign\x20description','Pause\x20a\x20campaign','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','List\x20all\x20users\x20in\x20the\x20account','view\x20[name]','--behaviors\x20<json>','--customer-group-file\x20<file>','Behaviors\x20as\x20JSON\x20string','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','buildTime','commands','requiredOption','slice','AI-native\x20CLI\x20for\x20Treasure\x20Data','desc\x20[segment_name]','Skip\x20confirmation\x20prompts','LLM\x20project\x20management','Folder\x20name\x20for\x20organization','Customer\x20group\x20as\x20JSON\x20string','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','configureHelp','--segment\x20<path>','--description\x20<desc>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','LLM\x20agent\x20management','help','argv','create\x20<name>','parse','Clear\x20session\x20context','Continue\x20most\x20recent\x20conversation','[DEPRECATED]\x20Segment\x20folder\x20management','--attribute\x20[name]','Kill\x20a\x20job','--enriched','update\x20<name>','option','query\x20[sql]','--no-color','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','aliases','parent_segment','Export\x20journey(s)\x20as\x20YAML\x20files','table','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Output\x20as\x20JSON','List\x20journeys\x20in\x20current\x20context','preview\x20[name]','233409wiYUHw','directory','Override\x20project\x20name','Show\x20agent\x20chat\x20URLs','--add-attributes-file\x20<file>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Request\x20body\x20as\x20JSON\x20string','Show\x20campaign\x20details','Resume\x20a\x20conversation\x20(shows\x20selector)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Output\x20as\x20JSON\x20Lines','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','info\x20[segment_name]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','use\x20<name>','Workflow\x20attempt\x20management','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','then','auth','--params\x20<json>','--format\x20<format>','Pause\x20a\x20running\x20journey','List\x20secret\x20keys\x20for\x20a\x20project','exit','delete\x20<project-name-or-id>','api\x20[endpoint]','--rule\x20<json>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--new','Campaign\x20type\x20(email\x20or\x20push)','stats\x20<name-or-path>','--to\x20<timestamp>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Master\x20database\x20name','parent','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','set','--json-columns\x20<cols>','CDP\x20segment\x20management\x20commands','[task-name]','kill\x20<job-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','hook','Template\x20name','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','noColor','Resume\x20a\x20paused\x20journey','validate\x20[target]','databases\x20[pattern]','statusline','types','validate\x20[file]','--prompt\x20<text>','run\x20[name]','debug','-c,\x20--continue','flatMap','chats','Agent\x20prompt/instructions','--color','Updated\x20description','Email\x20subject\x20template','action','delete\x20<agent-name>','--agent\x20<ref>','Email\x20sender\x20ID\x20for\x20delivery','Run\x20Trino\x20query\x20with\x20streaming\x20results','Force\x20retry\x20even\x20if\x20not\x20failed','folder','createAsync','Manage\x20workflow\x20project\x20secrets','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','pause\x20<name-or-path>','Preview\x20without\x20creating\x20the\x20project','--schedule-option\x20<value>','context','New\x20segment\x20name','run','--kind\x20<type>','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20job\x20details','show\x20[name]','colorFn','attempts\x20[project]','--session-time\x20<time>','-1d','allowExcessArguments','Read\x20request\x20body\x20from\x20file','command','create\x20<parent_name>\x20<folder_name>','-H,\x20--header\x20<header>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','kill','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Add\x20attributes\x20as\x20JSON\x20string','subcommandDescription','-r,\x20--recursive','--include-retried','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','status','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','delete\x20<args...>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--full','claude-4.5-sonnet','workflow','Overwrite\x20local\x20changes\x20without\x20confirmation','--workspace\x20<name>','llm','--model\x20<name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','launch\x20<name-or-id>','Updated\x20timezone','use\x20<path>','HTML\x20template\x20content','--plaintext\x20<text>','show\x20<name-or-id>','connections','--include-stats','-f,\x20--force','--yes','3219668iSgbqY','[action]','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','commandDescription','Output\x20folder\x20(default:\x20{project_name}.llm)','preAction','Unknown\x20action:\x20','Update\x20a\x20campaign','--port\x20<number>','Show\x20segment\x20schema\x20(column\x20types)','secrets','Resume\x20from\x20specific\x20task','forEach','Reason\x20for\x20killing\x20the\x20attempt','pull\x20<project>\x20[target-dir]','update\x20<name-or-id>','run\x20[workflow]','show\x20<agent-name>','show\x20[segment_name]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','-p,\x20--profile\x20<name>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','describe','Set\x20operation\x20timeout\x20in\x20seconds','Usage:\x20','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','map','--master','--revision\x20<revision>','Database\x20to\x20use\x20(overrides\x20context)','Table\x20management\x20commands','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','gitRevision','Workspace\x20description','Email\x20template\x20management','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','-f,\x20--file\x20<path>','usage','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--last','--customer-group\x20<json>','--rule-file\x20<file>','Update\x20an\x20existing\x20agent','Attributes\x20from\x20JSON\x20file','push\x20[source-dir]','create','Show\x20only\x20master\x20table\x20validation','includes','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--site\x20<site>','-r,\x20--resume','project','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--param\x20<key=value>','opts','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','0.7','get','padWidth','Start\x20a\x20new\x20chat\x20session','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','stdout','--starter-message\x20<text>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','activations\x20<segment_name>','Arguments:','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--parent-folder\x20<name>','21jTxwPP','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Name\x20for\x20the\x20new\x20project\x20(required)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Filtering\x20rule\x20as\x20JSON\x20string','injectIntoOptions','push\x20[file]','backup\x20<name>','connection','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','apiKey','Add\x20behaviors\x20from\x20JSON\x20file','Preview\x20changes\x20without\x20writing\x20files','profiles','Validate\x20journey\x20YAML\x20files\x20locally','--in\x20<name>','Pull\x20child\x20segments\x20to\x20YAML\x20files','optionDescription','Remove\x20API\x20key\x20from\x20system\x20keychain','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--editor-type\x20<type>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Resume\x20from\x20specific\x20task\x20(retry)','trace','profile','json','-o,\x20--output\x20<file>','New\x20template\x20name','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Project\x20description','Campaign\x20management','--from\x20<timestamp>','sonnet','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','sql\x20[segment_name]','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--name\x20<text>','Delete\x20a\x20workspace','-d,\x20--database\x20<name>','System\x20prompt/instructions\x20(default:\x20empty)','838BhkQbm','Output\x20directory','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20journey\x20details','Plaintext\x20template\x20content','--output\x20<file>','--invisible','show\x20<job-id>','Skip\x20validation\x20of\x20.dig\x20files','logLevel','list\x20[project]','site','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Timezone\x20(e.g.,\x20America/Los_Angeles)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','-y,\x20--yes','schema\x20<type>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','delete\x20<name-or-id>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','list\x20[pattern]','port','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','jsonl','settings\x20<type>','agents\x20[pattern]','-o,\x20--output\x20<dir>','Workspace\x20name\x20(required)','download\x20<project-name>\x20[output-dir]','Maximum\x20recursion\x20depth\x20(default:\x2010)','--interval\x20<range>','isArray','--folder\x20<name>','Commands:','alias','Database\x20name\x20(default:\x20information_schema)','delete\x20<name>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Trino\x20catalog\x20(default:\x20td)','Attempt\x20ID','List\x20all\x20data\x20connections','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','jobs','Custom\x20revision\x20name\x20(default:\x20timestamp)','resume\x20<name-or-id>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--subject\x20<subject>','outputHelp','-C,\x20--directory\x20<path>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Show\x20web\x20console\x20URLs\x20for\x20segments','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','list\x20[path]','isDirectory','Output\x20file\x20path','Include\x20subtasks\x20in\x20tasks\x20output','repeat','show\x20[table]','Show\x20segment\x20details\x20(alias\x20for\x20view)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','User\x20management\x20commands','--type\x20<type>','End\x20time\x20filter\x20(ISO\x208601\x20format)','push\x20[target]','options','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','commandUsage','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','retry','Customer\x20group\x20from\x20JSON\x20file','610lKZeCx','Workflow\x20project\x20management','push\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Move\x20to\x20folder','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Change\x20to\x20directory\x20before\x20executing\x20command','2900565AyTlDj','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','\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','--database\x20<db>','desc','Revision\x20name\x20(default:\x20timestamp)','set\x20<args...>','validate\x20[name]','List\x20agents\x20in\x20current\x20project','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','tdx','show\x20<name>','\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','summary','--project\x20<name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','use\x20<project-name>','3955014rxluBm','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','isTTY','Pull\x20workflow\x20project\x20to\x20local\x20folder','--tsv','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','desc\x20[name]','format','--attributes-file\x20<file>','Master\x20table\x20name','List\x20all\x20available\x20profiles','preview\x20[file]','Filtering\x20rule\x20from\x20JSON\x20file','-w,\x20--web','Include\x20execution\x20statistics','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','campaigns\x20[pattern]','claude\x20[args...]','Database\x20management\x20commands','Add\x20attributes\x20from\x20JSON\x20file','Create\x20a\x20new\x20agent\x20in\x20current\x20project','addHelpText','--resume-from\x20<task>','--trace','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','description','chdir','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--agent\x20<name>','Show\x20master\x20table\x20sample\x20data','pull\x20[parent_or_file]','--name\x20<new-name>','logs','update\x20<segment_name>','List\x20jobs','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','clone\x20[source-dir]','argumentDescription','database','allowUnknownOption','parent-segment','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Launch\x20a\x20campaign','LLM\x20project\x20to\x20use\x20(overrides\x20context)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','pull\x20[project]\x20[agent-name]','filter','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','1222048UZhRPD','required','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--attributes\x20<json>','fields\x20[name]','--version','--json','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','3qWBFPO','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--add-behaviors\x20<json>','segment','registeredArguments','workspace','projects\x20[pattern]','session','Folder\x20description','Open\x20segment\x20in\x20web\x20browser','pause\x20<name-or-id>','history\x20[chat-id]','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Editor\x20type','804wxvROO','-X,\x20--method\x20<method>','--skip-validation','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','INVALID_ARGUMENT','Database\x20to\x20query\x20(default:\x20information_schema)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--name\x20<name>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Enable\x20verbose\x20logging','--limit\x20<n>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--clear','Include\x20retried\x20attempts','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Skip\x20confirmation\x20prompt','Segment\x20description','tsv','Options:','Parent\x20folder\x20name\x20for\x20nested\x20folders','--session\x20<id>','Delete\x20an\x20LLM\x20project','Create\x20a\x20new\x20campaign','folders\x20<parent_name>','replace','use\x20[name]','Show\x20the\x20most\x20recent\x20chat','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--database\x20<name>','Delete\x20an\x20email\x20template','chat\x20[message...]','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','\x20(resolved\x20to\x20','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','campaign',',\x20version\x20','fields\x20[parent_name]','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','user','stderr','join','agent','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--html\x20<html>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','workspaces\x20[pattern]','Workspace\x20name','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','list','view\x20<name-or-path>','pull\x20[name]','5679EqomrV','Clear\x20workflow\x20project\x20context','segments\x20[path]','template','Starter\x20message','CDP\x20Journey\x20Orchestration\x20commands','Workflow\x20parameter\x20(repeatable)','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Job\x20management\x20commands','hidden','--status\x20<status>','name','create\x20<segment_name>','update\x20<agent-name>','TRACE','-d,\x20--database\x20<database>','--behavior\x20[name]','--in\x20<database>','Limit\x20number\x20of\x20rows','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Update\x20a\x20workspace','length','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--schedule-type\x20<type>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Create\x20a\x20workspace','journey','Describe\x20table\x20schema'];a2_0x1b47=function(){return _0x5e7db6;};return a2_0x1b47();}const segmentCmd=program[a2_0x130057(0x395)](a2_0x130057(0x269))[a2_0x130057(0x1e9)]('sg')[a2_0x130057(0x245)](a2_0x130057(0x360)),segmentListAction=async(_0x340441,_0xed8f96)=>{const _0x22aabc=a2_0x130057,_0x2ea0a0=new SegmentsCommand(),_0x156361=program['opts'](),_0x137904=await createTDXInstance(_0x156361),_0x388ecc=await _0x2ea0a0[_0x22aabc(0x389)]({'options':{..._0x156361,..._0xed8f96},'args':_0x340441?[_0x340441]:[],'tdx':_0x137904});process[_0x22aabc(0x351)](_0x388ecc);};segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x1fd))[a2_0x130057(0x245)](a2_0x130057(0x2c1))[a2_0x130057(0x32d)](a2_0x130057(0x39d),a2_0x130057(0x2a8))[a2_0x130057(0x32d)](a2_0x130057(0x2f9),a2_0x130057(0x1e4),'10')[a2_0x130057(0x32d)](a2_0x130057(0x237),'Show\x20web\x20console\x20URLs\x20for\x20segments')['action'](segmentListAction),program['command'](a2_0x130057(0x2ae),{'hidden':!![]})[a2_0x130057(0x245)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x130057(0x32d)](a2_0x130057(0x39d),a2_0x130057(0x2a8))['option']('--max-depth\x20<depth>',a2_0x130057(0x1e4),'10')[a2_0x130057(0x32d)](a2_0x130057(0x237),a2_0x130057(0x1fb))[a2_0x130057(0x379)](segmentListAction),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x3ae),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x130057(0x379)](async(_0x52a3df,_0x57efa2)=>{const _0x365eea=a2_0x130057,_0x2b8a06=new SegmentUseCommand(),_0x4439fd=program[_0x365eea(0x3ef)](),_0x1f2161=await createTDXInstance(_0x4439fd),_0x1e69ca=await _0x2b8a06[_0x365eea(0x389)]({'options':{..._0x4439fd,..._0x57efa2},'args':[_0x52a3df],'tdx':_0x1f2161});process['exit'](_0x1e69ca);});const segmentViewAction=async(_0x394b54,_0x3c4078)=>{const _0x13abc2=a2_0x130057,_0x22cb99=new SegmentViewCommand(),_0x212716=program['opts'](),_0x1bc2d4=await createTDXInstance(_0x212716),_0x45a35b=await _0x22cb99[_0x13abc2(0x389)]({'options':{..._0x212716,..._0x3c4078},'args':_0x394b54?[_0x394b54]:[],'tdx':_0x1bc2d4});process['exit'](_0x45a35b);};segmentCmd[a2_0x130057(0x395)]('view\x20[segment_name]')[a2_0x130057(0x245)](a2_0x130057(0x310))['option'](a2_0x130057(0x237),a2_0x130057(0x26f))['action'](segmentViewAction),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x346),{'hidden':!![]})['alias'](a2_0x130057(0x3cc))[a2_0x130057(0x32d)](a2_0x130057(0x237),a2_0x130057(0x26f))[a2_0x130057(0x245)](a2_0x130057(0x203))[a2_0x130057(0x379)](segmentViewAction),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x316))['description'](a2_0x130057(0x3bf))['action'](async(_0x59e9b7,_0x417b89)=>{const _0x177e39=a2_0x130057,_0x35c92f=new SegmentDescCommand(),_0x4ef070=program[_0x177e39(0x3ef)](),_0x1acfbf=await createTDXInstance(_0x4ef070),_0x5a9295=await _0x35c92f['run']({'options':{..._0x4ef070,..._0x417b89},'args':_0x59e9b7?[_0x59e9b7]:[],'tdx':_0x1acfbf});process[_0x177e39(0x351)](_0x5a9295);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x3c8))[a2_0x130057(0x245)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x2302f7,_0x1924e7)=>{const _0x466339=a2_0x130057,_0x36c3fe=new SegmentShowCommand(),_0x2f8f1f=program[_0x466339(0x3ef)](),_0x2a0432=await createTDXInstance(_0x2f8f1f),_0x1b1a2a=await _0x36c3fe[_0x466339(0x389)]({'options':{..._0x2f8f1f,..._0x1924e7},'args':_0x2302f7?[_0x2302f7]:[],'tdx':_0x2a0432});process[_0x466339(0x351)](_0x1b1a2a);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x28e),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x2e3))['action'](async(_0x4217bf,_0x6046d4)=>{const _0x205638=a2_0x130057,_0x3d49f=new SegmentFolderListCommand(),_0x4be9db=program[_0x205638(0x3ef)](),_0x297d3f=await createTDXInstance(_0x4be9db),_0x45ed59=await _0x3d49f[_0x205638(0x389)]({'options':{..._0x4be9db,..._0x6046d4},'args':[_0x4217bf],'tdx':_0x297d3f});process[_0x205638(0x351)](_0x45ed59);});const folderCmd=segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x37f),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x328));folderCmd[a2_0x130057(0x395)]('show\x20<folder_ref>')[a2_0x130057(0x245)](a2_0x130057(0x2ce))[a2_0x130057(0x379)](async(_0x54812a,_0x41b27f)=>{const _0x3acb26=a2_0x130057,_0x412801=new SegmentFolderShowCommand(),_0x5a53da=program['opts'](),_0x48e55a=await createTDXInstance(_0x5a53da),_0x438eea=await _0x412801[_0x3acb26(0x389)]({'options':{..._0x5a53da,..._0x41b27f},'args':[_0x54812a],'tdx':_0x48e55a});process[_0x3acb26(0x351)](_0x438eea);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x421))['description'](a2_0x130057(0x3b8))[a2_0x130057(0x379)](async(_0x1affd1,_0x14e2cf)=>{const _0x51385d=a2_0x130057,_0x14ad6a=new SegmentSQLCommand(),_0x273dd8=program[_0x51385d(0x3ef)](),_0x2190d0=await createTDXInstance(_0x273dd8),_0x4c1548=await _0x14ad6a['run']({'options':{..._0x273dd8,..._0x14e2cf},'args':_0x1affd1?[_0x1affd1]:[],'tdx':_0x2190d0});process[_0x51385d(0x351)](_0x4c1548);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x29c))[a2_0x130057(0x245)](a2_0x130057(0x336))[a2_0x130057(0x379)](async(_0x5dba04,_0x4ecd65)=>{const _0x58981b=a2_0x130057,_0x5a2608=new SegmentFieldsCommand(),_0x3f6e67=program[_0x58981b(0x3ef)](),_0x3f428a=await createTDXInstance(_0x3f6e67),_0x1d95d1=await _0x5a2608[_0x58981b(0x389)]({'options':{..._0x3f6e67,..._0x4ecd65},'args':_0x5dba04?[_0x5dba04]:[],'tdx':_0x3f428a});process[_0x58981b(0x351)](_0x1d95d1);}),segmentCmd['command'](a2_0x130057(0x24a))[a2_0x130057(0x245)](a2_0x130057(0x40d))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x317))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x3a3))[a2_0x130057(0x379)](async(_0x2035ce,_0x3ffd53)=>{const _0x5e5561=a2_0x130057,_0x274113=new SegmentPullCommand(),_0x1e180f=program[_0x5e5561(0x3ef)](),_0x534dc7=await createTDXInstance(_0x1e180f),_0x10d933=await _0x274113[_0x5e5561(0x389)]({'options':{..._0x1e180f,..._0x3ffd53},'args':_0x2035ce?[_0x2035ce]:[],'tdx':_0x534dc7});process['exit'](_0x10d933);}),segmentCmd[a2_0x130057(0x395)]('push\x20[parent_or_file]')[a2_0x130057(0x245)](a2_0x130057(0x330))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x317))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x3a3))[a2_0x130057(0x32d)]('--delete',a2_0x130057(0x39a))[a2_0x130057(0x379)](async(_0x11e25d,_0x484ea6)=>{const _0x132db9=a2_0x130057,_0x41eed8=new SegmentPushCommand(),_0x4c8fa0=program['opts'](),_0x57f436=await createTDXInstance(_0x4c8fa0),_0x4cb3ea=await _0x41eed8[_0x132db9(0x389)]({'options':{..._0x4c8fa0,..._0x484ea6},'args':_0x11e25d?[_0x11e25d]:[],'tdx':_0x57f436});process[_0x132db9(0x351)](_0x4cb3ea);}),segmentCmd['command']('validate\x20[target]')[a2_0x130057(0x245)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x30967f,_0x41476e)=>{const _0x60cdac=a2_0x130057,_0x2ae87d=new SegmentValidateCommand(),_0x88b4c8=program[_0x60cdac(0x3ef)](),_0x2b9bcf=await createTDXInstance(_0x88b4c8),_0x2b863f=await _0x2ae87d[_0x60cdac(0x389)]({'options':{..._0x88b4c8,..._0x41476e},'args':_0x30967f?[_0x30967f]:[],'tdx':_0x2b9bcf});process[_0x60cdac(0x351)](_0x2b863f);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x2b8),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x29d))[a2_0x130057(0x32d)](a2_0x130057(0x2fc),a2_0x130057(0x287))[a2_0x130057(0x32d)](a2_0x130057(0x354),a2_0x130057(0x401))[a2_0x130057(0x32d)](a2_0x130057(0x3e2),a2_0x130057(0x236))[a2_0x130057(0x32d)](a2_0x130057(0x1e7),a2_0x130057(0x319))[a2_0x130057(0x32d)](a2_0x130057(0x38a),a2_0x130057(0x433))[a2_0x130057(0x32d)](a2_0x130057(0x42d),'Make\x20segment\x20invisible\x20(default:\x20visible)')['option']('--no-count-population','Skip\x20population\x20counting')['action'](async(_0x108495,_0x54234e)=>{const _0x484461=a2_0x130057,_0x118f9d=new SegmentCreateCommand(),_0x241229=program['opts'](),_0x24345b=await createTDXInstance(_0x241229),_0x56f071=await _0x118f9d[_0x484461(0x389)]({'options':{..._0x241229,..._0x54234e},'args':[_0x108495],'tdx':_0x24345b});process['exit'](_0x56f071);}),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x24d),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x220))['option']('--name\x20<new_name>',a2_0x130057(0x388))[a2_0x130057(0x32d)](a2_0x130057(0x2fc),a2_0x130057(0x377))[a2_0x130057(0x32d)]('--rule\x20<json>',a2_0x130057(0x406))[a2_0x130057(0x32d)](a2_0x130057(0x3e2),a2_0x130057(0x307))[a2_0x130057(0x32d)](a2_0x130057(0x1e7),a2_0x130057(0x214))[a2_0x130057(0x32d)](a2_0x130057(0x38a),a2_0x130057(0x433))[a2_0x130057(0x379)](async(_0x341fe6,_0x43afd7)=>{const _0xc90b81=a2_0x130057,_0x232caa=new SegmentUpdateCommand(),_0x2772d1=program[_0xc90b81(0x3ef)](),_0x42c420=await createTDXInstance(_0x2772d1),_0x2a2b9d=await _0x232caa[_0xc90b81(0x389)]({'options':{..._0x2772d1,..._0x43afd7},'args':[_0x341fe6],'tdx':_0x42c420});process[_0xc90b81(0x351)](_0x2a2b9d);});const parentCmd=segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x35c),{'hidden':!![]})[a2_0x130057(0x245)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x34b1a7,_0x3927d2)=>{const _0x901e6b=a2_0x130057,_0x491c3c=new ParentSegmentListCommand(),_0x1d907d=program[_0x901e6b(0x3ef)](),_0x312c35=await createTDXInstance(_0x1d907d),_0x161c2a=await _0x491c3c[_0x901e6b(0x389)]({'options':{..._0x1d907d,..._0x3927d2},'args':_0x34b1a7?[_0x34b1a7]:[],'tdx':_0x312c35});process['exit'](_0x161c2a);};parentCmd[a2_0x130057(0x395)](a2_0x130057(0x43b))[a2_0x130057(0x245)](a2_0x130057(0x20c))['action'](parentListAction),segmentCmd[a2_0x130057(0x395)](a2_0x130057(0x2cc),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x398))[a2_0x130057(0x379)](parentListAction),parentCmd[a2_0x130057(0x395)]('pull\x20[name]')['description'](a2_0x130057(0x3d1))[a2_0x130057(0x32d)](a2_0x130057(0x417),a2_0x130057(0x38b))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x11a981,_0x45a79c)=>{const _0x3a0623=a2_0x130057,_0x2bbde9=new ParentSegmentPullCommand(),_0x3dea98=program[_0x3a0623(0x3ef)](),_0x24644f=await createTDXInstance(_0x3dea98),_0x4021e3=await _0x2bbde9[_0x3a0623(0x389)]({'options':{..._0x3dea98,..._0x45a79c},'args':_0x11a981?[_0x11a981]:[],'tdx':_0x24644f});process['exit'](_0x4021e3);}),parentCmd['command'](a2_0x130057(0x403))[a2_0x130057(0x245)](a2_0x130057(0x355))['option'](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x209d86,_0x37d012)=>{const _0x15b291=a2_0x130057,_0x56e91e=new ParentSegmentPushCommand(),_0x5d0641=program[_0x15b291(0x3ef)](),_0x3fcccf=await createTDXInstance(_0x5d0641),_0x1eb9cb=await _0x56e91e['run']({'options':{..._0x5d0641,..._0x37d012},'args':_0x209d86?[_0x209d86]:[],'tdx':_0x3fcccf});process['exit'](_0x1eb9cb);}),parentCmd[a2_0x130057(0x395)](a2_0x130057(0x36e))['description'](a2_0x130057(0x292))[a2_0x130057(0x32d)]('--master',a2_0x130057(0x3e7))['option'](a2_0x130057(0x329),a2_0x130057(0x1fa))[a2_0x130057(0x32d)](a2_0x130057(0x2bc),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x130057(0x32b),a2_0x130057(0x2f7))[a2_0x130057(0x32d)](a2_0x130057(0x1e5),a2_0x130057(0x293),a2_0x130057(0x392))[a2_0x130057(0x379)](async(_0x4597c5,_0x20c771)=>{const _0x4c6754=a2_0x130057,_0x21a6c1=new ParentSegmentValidateCommand(),_0x5641e8=program[_0x4c6754(0x3ef)](),_0x5d2496=await createTDXInstance(_0x5641e8),_0x58284f=await _0x21a6c1[_0x4c6754(0x389)]({'options':{..._0x5641e8,..._0x20c771},'args':_0x4597c5?[_0x4597c5]:[],'tdx':_0x5d2496});process[_0x4c6754(0x351)](_0x58284f);}),parentCmd[a2_0x130057(0x395)](a2_0x130057(0x235))[a2_0x130057(0x245)](a2_0x130057(0x3fb))[a2_0x130057(0x32d)]('--master',a2_0x130057(0x249))[a2_0x130057(0x32d)](a2_0x130057(0x329),a2_0x130057(0x218))[a2_0x130057(0x32d)](a2_0x130057(0x2bc),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x130057(0x32d)](a2_0x130057(0x32b),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x130057(0x32d)](a2_0x130057(0x1e5),a2_0x130057(0x293),'-1d')[a2_0x130057(0x379)](async(_0x5bfd38,_0x497451)=>{const _0x2d2903=a2_0x130057,_0x8b9280=new ParentSegmentPreviewCommand(),_0x5cc0b8=program[_0x2d2903(0x3ef)](),_0x37e5f8=await createTDXInstance(_0x5cc0b8),_0x2c3499=await _0x8b9280[_0x2d2903(0x389)]({'options':{..._0x5cc0b8,..._0x497451},'args':_0x5bfd38?[_0x5bfd38]:[],'tdx':_0x37e5f8});process[_0x2d2903(0x351)](_0x2c3499);}),parentCmd[a2_0x130057(0x395)](a2_0x130057(0x370))[a2_0x130057(0x245)](a2_0x130057(0x435))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x5e1038,_0x4fef66)=>{const _0x5687e8=a2_0x130057,_0x402180=new ParentSegmentRunCommand(),_0x5a7bae=program[_0x5687e8(0x3ef)](),_0x3fc22b=await createTDXInstance(_0x5a7bae),_0x426dd6=await _0x402180['run']({'options':{..._0x5a7bae,..._0x4fef66},'args':_0x5e1038?[_0x5e1038]:[],'tdx':_0x3fc22b});process['exit'](_0x426dd6);});const parentSegmentCmd=program[a2_0x130057(0x395)](a2_0x130057(0x254))[a2_0x130057(0x1e9)]('ps')[a2_0x130057(0x245)](a2_0x130057(0x2d1));parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x43b))[a2_0x130057(0x245)](a2_0x130057(0x20c))[a2_0x130057(0x379)](parentListAction),parentSegmentCmd[a2_0x130057(0x395)]('pull\x20[name]')[a2_0x130057(0x245)](a2_0x130057(0x2db))[a2_0x130057(0x32d)](a2_0x130057(0x417),a2_0x130057(0x1ff))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x32d)]('-u,\x20--use',a2_0x130057(0x284))[a2_0x130057(0x379)](async(_0x5d9f36,_0x31d27a)=>{const _0x481ccb=a2_0x130057,_0x550419=new ParentSegmentPullCommand(),_0xbc432a=program[_0x481ccb(0x3ef)](),_0x5c0433=await createTDXInstance(_0xbc432a),_0x42c15e=await _0x550419[_0x481ccb(0x389)]({'options':{..._0xbc432a,..._0x31d27a},'args':_0x5d9f36?[_0x5d9f36]:[],'tdx':_0x5c0433});process[_0x481ccb(0x351)](_0x42c15e);}),parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x212))[a2_0x130057(0x245)](a2_0x130057(0x3ed))['option'](a2_0x130057(0x436),'Skip\x20confirmation\x20prompt')[a2_0x130057(0x379)](async(_0x45ebb6,_0x1a3df2)=>{const _0x2ed2a3=a2_0x130057,_0x660f3e=new ParentSegmentPushCommand(),_0x10805f=program[_0x2ed2a3(0x3ef)](),_0x1daf99=await createTDXInstance(_0x10805f),_0x3cf18e=await _0x660f3e[_0x2ed2a3(0x389)]({'options':{..._0x10805f,..._0x1a3df2},'args':_0x45ebb6?[_0x45ebb6]:[],'tdx':_0x1daf99});process[_0x2ed2a3(0x351)](_0x3cf18e);}),parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x21e))['description'](a2_0x130057(0x292))[a2_0x130057(0x32d)]('--master',a2_0x130057(0x3e7))[a2_0x130057(0x32d)](a2_0x130057(0x329),a2_0x130057(0x1fa))[a2_0x130057(0x32d)](a2_0x130057(0x2bc),a2_0x130057(0x419))[a2_0x130057(0x32d)]('--enriched',a2_0x130057(0x2f7))[a2_0x130057(0x32d)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x345727,_0x54b608)=>{const _0x28d4f5=a2_0x130057,_0x51201f=new ParentSegmentValidateCommand(),_0x39df6b=program[_0x28d4f5(0x3ef)](),_0x4864e3=await createTDXInstance(_0x39df6b),_0x163cdb=await _0x51201f['run']({'options':{..._0x39df6b,..._0x54b608},'args':_0x345727?[_0x345727]:[],'tdx':_0x4864e3});process[_0x28d4f5(0x351)](_0x163cdb);}),parentSegmentCmd['command'](a2_0x130057(0x339))[a2_0x130057(0x245)](a2_0x130057(0x3fb))[a2_0x130057(0x32d)](a2_0x130057(0x3d4),'Show\x20master\x20table\x20sample\x20data')[a2_0x130057(0x32d)](a2_0x130057(0x329),a2_0x130057(0x218))[a2_0x130057(0x32d)](a2_0x130057(0x2bc),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x130057(0x32d)](a2_0x130057(0x32b),a2_0x130057(0x3ab))['option']('--interval\x20<range>',a2_0x130057(0x293),a2_0x130057(0x392))[a2_0x130057(0x379)](async(_0xbf734c,_0x82ba79)=>{const _0x2bfad8=a2_0x130057,_0x20c2ec=new ParentSegmentPreviewCommand(),_0x5dfd5e=program[_0x2bfad8(0x3ef)](),_0x333932=await createTDXInstance(_0x5dfd5e),_0x43bbeb=await _0x20c2ec[_0x2bfad8(0x389)]({'options':{..._0x5dfd5e,..._0x82ba79},'args':_0xbf734c?[_0xbf734c]:[],'tdx':_0x333932});process[_0x2bfad8(0x351)](_0x43bbeb);}),parentSegmentCmd[a2_0x130057(0x395)]('run\x20[name]')['description'](a2_0x130057(0x435))[a2_0x130057(0x32d)]('-y,\x20--yes',a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x33fd7d,_0x1b53ae)=>{const _0x5b0055=a2_0x130057,_0xd87347=new ParentSegmentRunCommand(),_0x5948f1=program[_0x5b0055(0x3ef)](),_0x5c7299=await createTDXInstance(_0x5948f1),_0x53c277=await _0xd87347['run']({'options':{..._0x5948f1,..._0x1b53ae},'args':_0x33fd7d?[_0x33fd7d]:[],'tdx':_0x5c7299});process[_0x5b0055(0x351)](_0x53c277);}),parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x262))[a2_0x130057(0x245)](a2_0x130057(0x1ec))[a2_0x130057(0x32d)](a2_0x130057(0x264),a2_0x130057(0x337))[a2_0x130057(0x32d)](a2_0x130057(0x2f3),a2_0x130057(0x344))[a2_0x130057(0x379)](async(_0x4c9736,_0x267bad)=>{const _0x3ed1ed=a2_0x130057,_0x284e90=new ParentSegmentFieldsCommand(),_0x45edf0=program[_0x3ed1ed(0x3ef)](),_0x26053b=await createTDXInstance(_0x45edf0),_0x3b7915=await _0x284e90[_0x3ed1ed(0x389)]({'options':{..._0x45edf0,..._0x267bad},'args':_0x4c9736?[_0x4c9736]:[],'tdx':_0x26053b});process[_0x3ed1ed(0x351)](_0x3b7915);}),parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x30c))[a2_0x130057(0x245)](a2_0x130057(0x2f6))[a2_0x130057(0x32d)](a2_0x130057(0x237),a2_0x130057(0x2d3))[a2_0x130057(0x32d)]('--json',a2_0x130057(0x337))[a2_0x130057(0x32d)](a2_0x130057(0x2f3),a2_0x130057(0x344))[a2_0x130057(0x379)](async(_0x134659,_0x3b6f3f)=>{const _0x4ca7d5=a2_0x130057,_0x224f84=new ParentSegmentViewCommand(),_0x5551a9=program[_0x4ca7d5(0x3ef)](),_0x1a960d=await createTDXInstance(_0x5551a9),_0x480b82=await _0x224f84['run']({'options':{..._0x5551a9,..._0x3b6f3f},'args':_0x134659?[_0x134659]:[],'tdx':_0x1a960d});process[_0x4ca7d5(0x351)](_0x480b82);}),parentSegmentCmd[a2_0x130057(0x395)](a2_0x130057(0x230))[a2_0x130057(0x245)](a2_0x130057(0x25d))['option'](a2_0x130057(0x264),'Output\x20as\x20JSON')['option'](a2_0x130057(0x2f3),a2_0x130057(0x344))['action'](async(_0x49d4f4,_0x3bb472)=>{const _0x33adf3=a2_0x130057,_0x157f33=new ParentSegmentDescCommand(),_0x114531=program[_0x33adf3(0x3ef)](),_0x4c21b9=await createTDXInstance(_0x114531),_0x4e03d8=await _0x157f33[_0x33adf3(0x389)]({'options':{..._0x114531,..._0x3bb472},'args':_0x49d4f4?[_0x49d4f4]:[],'tdx':_0x4c21b9});process[_0x33adf3(0x351)](_0x4e03d8);}),parentSegmentCmd['command']('sql\x20[name]')[a2_0x130057(0x245)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x130057(0x264),'Output\x20as\x20JSON')[a2_0x130057(0x32d)](a2_0x130057(0x2f3),a2_0x130057(0x344))['action'](async(_0x2440b0,_0x5a270f)=>{const _0x3561d2=a2_0x130057,_0x10c592=new ParentSegmentSQLCommand(),_0x1a3b7f=program[_0x3561d2(0x3ef)](),_0x514b8c=await createTDXInstance(_0x1a3b7f),_0x29debc=await _0x10c592['run']({'options':{..._0x1a3b7f,..._0x5a270f},'args':_0x2440b0?[_0x2440b0]:[],'tdx':_0x514b8c});process[_0x3561d2(0x351)](_0x29debc);}),parentSegmentCmd['command'](a2_0x130057(0x38e))[a2_0x130057(0x245)](a2_0x130057(0x2f0))[a2_0x130057(0x32d)](a2_0x130057(0x280),a2_0x130057(0x2be))[a2_0x130057(0x32d)]('--json',a2_0x130057(0x337))['option'](a2_0x130057(0x2f3),a2_0x130057(0x344))[a2_0x130057(0x379)](async(_0x5f386b,_0x10d990)=>{const _0x587471=a2_0x130057,_0x360c0f=new ParentSegmentShowCommand(),_0x1bf096=program['opts'](),_0x159f79=await createTDXInstance(_0x1bf096),_0x368233=await _0x360c0f[_0x587471(0x389)]({'options':{..._0x1bf096,..._0x10d990},'args':_0x5f386b?[_0x5f386b]:[],'tdx':_0x159f79});process[_0x587471(0x351)](_0x368233);}),parentSegmentCmd['command'](a2_0x130057(0x290))[a2_0x130057(0x245)](a2_0x130057(0x2ee))[a2_0x130057(0x379)](async(_0x1ceb7b,_0x1f9f9b)=>{const _0x46daf6=a2_0x130057,_0x2ec56a=new UseCommand(),_0x2f9448=program[_0x46daf6(0x3ef)](),_0x4e55b1=_0x1ceb7b?[_0x46daf6(0x333),_0x1ceb7b]:[],_0x16f5a9=await _0x2ec56a[_0x46daf6(0x389)]({'options':{..._0x2f9448,..._0x1f9f9b},'args':_0x4e55b1,'tdx':null});process[_0x46daf6(0x351)](_0x16f5a9);}),parentCmd[a2_0x130057(0x395)]('create\x20<name>')['description'](a2_0x130057(0x3d8))[a2_0x130057(0x313)](a2_0x130057(0x21a),a2_0x130057(0x35b))['requiredOption']('--table\x20<table>',a2_0x130057(0x233))['option'](a2_0x130057(0x2fc),'Parent\x20segment\x20description')[a2_0x130057(0x32d)](a2_0x130057(0x2c6),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x130057(0x386),a2_0x130057(0x43a))[a2_0x130057(0x32d)]('--timezone\x20<tz>',a2_0x130057(0x434))[a2_0x130057(0x32d)](a2_0x130057(0x261),'Attributes\x20as\x20JSON\x20string')[a2_0x130057(0x32d)](a2_0x130057(0x232),a2_0x130057(0x3e4))['option'](a2_0x130057(0x30d),a2_0x130057(0x30f))[a2_0x130057(0x32d)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x130057(0x32d)](a2_0x130057(0x3e1),a2_0x130057(0x31a))['option'](a2_0x130057(0x30e),a2_0x130057(0x20f))[a2_0x130057(0x379)](async(_0x403d3a,_0x4ec019)=>{const _0x20f401=a2_0x130057,_0x8f907=new ParentSegmentCreateCommand(),_0x166fa7=program[_0x20f401(0x3ef)](),_0xfac0c0=await createTDXInstance(_0x166fa7),_0x1cc9d7=await _0x8f907['run']({'options':{..._0x166fa7,..._0x4ec019},'args':[_0x403d3a],'tdx':_0xfac0c0});process[_0x20f401(0x351)](_0x1cc9d7);}),parentCmd[a2_0x130057(0x395)](a2_0x130057(0x32c))['description'](a2_0x130057(0x438))[a2_0x130057(0x32d)](a2_0x130057(0x2fc),a2_0x130057(0x377))['option'](a2_0x130057(0x2c6),a2_0x130057(0x1f4))[a2_0x130057(0x32d)](a2_0x130057(0x386),'Updated\x20schedule\x20option')['option'](a2_0x130057(0x2f8),a2_0x130057(0x3ad))[a2_0x130057(0x32d)]('--add-attributes\x20<json>',a2_0x130057(0x39b))[a2_0x130057(0x32d)](a2_0x130057(0x33e),a2_0x130057(0x23f))[a2_0x130057(0x32d)](a2_0x130057(0x268),'Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x130057(0x32d)](a2_0x130057(0x2d2),a2_0x130057(0x408))[a2_0x130057(0x379)](async(_0x3b3a0d,_0x4235b9)=>{const _0x25f96a=a2_0x130057,_0x20ba71=new ParentSegmentUpdateCommand(),_0xf9f7d9=program[_0x25f96a(0x3ef)](),_0x3b979b=await createTDXInstance(_0xf9f7d9),_0x51fce8=await _0x20ba71['run']({'options':{..._0xf9f7d9,..._0x4235b9},'args':[_0x3b3a0d],'tdx':_0x3b979b});process[_0x25f96a(0x351)](_0x51fce8);}),folderCmd[a2_0x130057(0x395)](a2_0x130057(0x396))[a2_0x130057(0x245)](a2_0x130057(0x2e0))[a2_0x130057(0x32d)]('--description\x20<text>',a2_0x130057(0x26e))[a2_0x130057(0x32d)](a2_0x130057(0x3fc),a2_0x130057(0x28a))[a2_0x130057(0x379)](async(_0x45faf3,_0x39ffd0,_0x3e01fd)=>{const _0x2cf986=a2_0x130057,_0x2c0d5d=new SegmentFolderCreateCommand(),_0x4e2f51=program[_0x2cf986(0x3ef)](),_0x42c7e1=await createTDXInstance(_0x4e2f51),_0x36415=await _0x2c0d5d[_0x2cf986(0x389)]({'options':{..._0x4e2f51,..._0x3e01fd},'args':[_0x45faf3,_0x39ffd0],'tdx':_0x42c7e1});process[_0x2cf986(0x351)](_0x36415);}),program[a2_0x130057(0x395)](a2_0x130057(0x3f9))[a2_0x130057(0x245)](a2_0x130057(0x2c5))[a2_0x130057(0x379)](async(_0x3f5759,_0x272858)=>{const _0x31fa61=a2_0x130057,_0xc370fa=new ActivationsCommand(),_0x3aa1c3=program['opts'](),_0x59cea8=await createTDXInstance(_0x3aa1c3),_0x5e3f2a=await _0xc370fa[_0x31fa61(0x389)]({'options':{..._0x3aa1c3,..._0x272858},'args':[_0x3f5759],'tdx':_0x59cea8});process[_0x31fa61(0x351)](_0x5e3f2a);});const workflowCmd=program['command'](a2_0x130057(0x3a6))['alias']('wf')[a2_0x130057(0x245)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x3ec))[a2_0x130057(0x245)](a2_0x130057(0x211)),wfProjectListAction=async(_0x29b8a5,_0x5575a2)=>{const _0x5e1c5a=a2_0x130057,_0x165fd5=new WorkflowProjectsCommand(),_0x4f2cf9=program[_0x5e1c5a(0x3ef)](),_0x515a80=await createTDXInstance(_0x4f2cf9),_0x2264f1=await _0x165fd5[_0x5e1c5a(0x389)]({'options':{..._0x4f2cf9,..._0x5575a2},'args':_0x29b8a5?[_0x29b8a5]:[],'tdx':_0x515a80});process[_0x5e1c5a(0x351)](_0x2264f1);};wfProjectCmd['command'](a2_0x130057(0x43b))[a2_0x130057(0x245)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x130057(0x379)](wfProjectListAction),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x26c))[a2_0x130057(0x245)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x130057(0x379)](wfProjectListAction);const wfWorkflowListAction=async(_0x3608bb,_0x4da580)=>{const _0x51d217=a2_0x130057,_0x168623=new WorkflowWorkflowsCommand(),_0x4f47d5=program[_0x51d217(0x3ef)](),_0x297601=await createTDXInstance(_0x4f47d5),_0x2edf0f=await _0x168623[_0x51d217(0x389)]({'options':{..._0x4f47d5,..._0x4da580},'args':_0x3608bb?[_0x3608bb]:[],'tdx':_0x297601});process[_0x51d217(0x351)](_0x2edf0f);};workflowCmd[a2_0x130057(0x395)]('workflows\x20[project]')[a2_0x130057(0x245)](a2_0x130057(0x412))[a2_0x130057(0x379)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x130057(0x26d))[a2_0x130057(0x245)](a2_0x130057(0x2d8)),wfSessionListAction=async(_0x3449dc,_0x19908f)=>{const _0x46acfe=a2_0x130057,_0x26bae0=new WorkflowSessionsCommand(),_0x70560b=program['opts'](),_0x201afd=await createTDXInstance(_0x70560b),_0x3d8088=await _0x26bae0[_0x46acfe(0x389)]({'options':{..._0x70560b,..._0x19908f},'args':_0x3449dc?[_0x3449dc]:[],'tdx':_0x201afd});process[_0x46acfe(0x351)](_0x3d8088);};wfSessionCmd[a2_0x130057(0x395)](a2_0x130057(0x431))[a2_0x130057(0x245)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x130057(0x32d)](a2_0x130057(0x2b6),a2_0x130057(0x31b))[a2_0x130057(0x32d)](a2_0x130057(0x41e),a2_0x130057(0x215))[a2_0x130057(0x32d)](a2_0x130057(0x359),a2_0x130057(0x207))[a2_0x130057(0x379)](wfSessionListAction),workflowCmd[a2_0x130057(0x395)]('sessions\x20[project]')[a2_0x130057(0x245)](a2_0x130057(0x38c))[a2_0x130057(0x32d)](a2_0x130057(0x2b6),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option'](a2_0x130057(0x41e),a2_0x130057(0x215))[a2_0x130057(0x32d)](a2_0x130057(0x359),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x130057(0x379)](wfSessionListAction);const wfAttemptListAction=async(_0x2d171b,_0x3a80ed)=>{const _0x6ffea8=a2_0x130057,_0x1d1a32=new WorkflowAttemptsCommand(),_0x376534=program['opts'](),_0x19f4a0=await createTDXInstance(_0x376534),_0x347d7a=await _0x1d1a32['run']({'options':{..._0x376534,..._0x3a80ed},'args':_0x2d171b?[_0x2d171b]:[],'tdx':_0x19f4a0});process[_0x6ffea8(0x351)](_0x347d7a);},attemptCmd=workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x303))[a2_0x130057(0x245)](a2_0x130057(0x349))['argument'](a2_0x130057(0x2fb),a2_0x130057(0x1ee))[a2_0x130057(0x2cb)](a2_0x130057(0x3b7),a2_0x130057(0x1f9))[a2_0x130057(0x2cb)](a2_0x130057(0x361),a2_0x130057(0x304))[a2_0x130057(0x32d)]('--include-subtasks',a2_0x130057(0x200))[a2_0x130057(0x32d)]('--reason\x20<text>',a2_0x130057(0x3c3))['option'](a2_0x130057(0x242),a2_0x130057(0x413))[a2_0x130057(0x32d)]('--params\x20<json>',a2_0x130057(0x3d2))[a2_0x130057(0x32d)]('--force',a2_0x130057(0x37e))[a2_0x130057(0x32d)](a2_0x130057(0x39e),a2_0x130057(0x429))[a2_0x130057(0x379)](async(_0x2cf923,_0x2e445d,_0x6d7dea,_0x2191f9)=>{const _0x25727c=a2_0x130057;if(_0x2cf923==='list'){await wfAttemptListAction(_0x2e445d,_0x2191f9);return;}if(!_0x2cf923){attemptCmd['help']();return;}const _0x25af38=program[_0x25727c(0x3ef)](),_0x161fb6=await createTDXInstance(_0x25af38);let _0x8fc5b5=0x0;if(!_0x2e445d){const _0x2c550b=new WorkflowAttemptCommand();_0x8fc5b5=await _0x2c550b[_0x25727c(0x389)]({'options':{..._0x25af38,..._0x2191f9},'args':[_0x2cf923],'tdx':_0x161fb6});}else{if(_0x2e445d===_0x25727c(0x24c)){const _0x515d2b=new WorkflowLogsCommand();_0x8fc5b5=await _0x515d2b[_0x25727c(0x389)]({'options':{..._0x25af38,..._0x2191f9},'args':_0x6d7dea?[_0x2cf923,_0x6d7dea]:[_0x2cf923],'tdx':_0x161fb6});}else{if(_0x2e445d==='tasks'){const _0x2ba569=new WorkflowTasksCommand();_0x8fc5b5=await _0x2ba569['run']({'options':{..._0x25af38,..._0x2191f9},'args':[_0x2cf923],'tdx':_0x161fb6});}else{if(_0x2e445d===_0x25727c(0x399)){const _0x426f51=new WorkflowKillCommand();_0x8fc5b5=await _0x426f51[_0x25727c(0x389)]({'options':{..._0x25af38,..._0x2191f9},'args':[_0x2cf923],'tdx':_0x161fb6});}else{if(_0x2e445d===_0x25727c(0x20e)){const _0x480c11=new WorkflowRetryCommand();_0x8fc5b5=await _0x480c11[_0x25727c(0x389)]({'options':{..._0x25af38,..._0x2191f9},'args':[_0x25727c(0x2f1)+_0x2cf923],'tdx':_0x161fb6});}else console[_0x25727c(0x2e4)](_0x25727c(0x3bc)+_0x2e445d),console[_0x25727c(0x2e4)](_0x25727c(0x2d7)),_0x8fc5b5=0x1;}}}}process['exit'](_0x8fc5b5);});attemptCmd[a2_0x130057(0x395)](a2_0x130057(0x431))[a2_0x130057(0x245)](a2_0x130057(0x35d))[a2_0x130057(0x32d)](a2_0x130057(0x39e),a2_0x130057(0x283))['action'](wfAttemptListAction),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x390))['description'](a2_0x130057(0x3f5))[a2_0x130057(0x32d)](a2_0x130057(0x39e),a2_0x130057(0x283))[a2_0x130057(0x379)](wfAttemptListAction),workflowCmd['command']('retry\x20<session-id>')[a2_0x130057(0x245)](a2_0x130057(0x331))[a2_0x130057(0x32d)]('--from-task\x20<task>',a2_0x130057(0x3c1))[a2_0x130057(0x32d)](a2_0x130057(0x34d),a2_0x130057(0x3f8))[a2_0x130057(0x379)](async(_0x38363a,_0x3f10d9)=>{const _0x5df9c6=a2_0x130057,_0x45cc80=new WorkflowRetryCommand(),_0x65ce38=program[_0x5df9c6(0x3ef)](),_0x4a1fe0=await createTDXInstance(_0x65ce38),_0x4f49b4=await _0x45cc80[_0x5df9c6(0x389)]({'options':{..._0x65ce38,..._0x3f10d9},'args':[_0x38363a],'tdx':_0x4a1fe0});process[_0x5df9c6(0x351)](_0x4f49b4);}),workflowCmd['command'](a2_0x130057(0x3c6))['description'](a2_0x130057(0x255))[a2_0x130057(0x32d)](a2_0x130057(0x3ee),a2_0x130057(0x2b2),(_0x1efca6,_0x42d0bd=[])=>[..._0x42d0bd,_0x1efca6],[])[a2_0x130057(0x32d)](a2_0x130057(0x391),a2_0x130057(0x383))[a2_0x130057(0x379)](async(_0x377d39,_0x39dd11)=>{const _0x2aea6d=a2_0x130057,_0x5ebb88=new WorkflowRunCommand(),_0x15b698=program[_0x2aea6d(0x3ef)](),_0x178c5b=await createTDXInstance(_0x15b698),_0xe7f6d5=await _0x5ebb88['run']({'options':{..._0x15b698,..._0x39dd11},'args':_0x377d39?[_0x377d39]:[],'tdx':_0x178c5b});process[_0x2aea6d(0x351)](_0xe7f6d5);}),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x1e3))[a2_0x130057(0x245)](a2_0x130057(0x41a))['option'](a2_0x130057(0x3d5),a2_0x130057(0x22f))['action'](async(_0x4611c0,_0x48d6a9,_0x3b589a)=>{const _0x54d680=a2_0x130057,_0x4b85e4=new WorkflowDownloadCommand(),_0x54eaf3=program[_0x54d680(0x3ef)](),_0x18f060=await createTDXInstance(_0x54eaf3),_0x484a4e=await _0x4b85e4[_0x54d680(0x389)]({'options':{..._0x54eaf3,..._0x3b589a},'args':[_0x4611c0,_0x48d6a9||'.'],'tdx':_0x18f060});process['exit'](_0x484a4e);}),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x3c4))[a2_0x130057(0x245)](a2_0x130057(0x22c))[a2_0x130057(0x32d)](a2_0x130057(0x3d5),'Pull\x20specific\x20revision\x20(default:\x20latest)')['option'](a2_0x130057(0x2e8),a2_0x130057(0x409))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x357a0c,_0x266136,_0x5e98c4)=>{const _0xfb2db9=a2_0x130057,_0x4409a4=new WorkflowPullCommand(),_0x53ea49=program[_0xfb2db9(0x3ef)](),_0x3e42ff=await createTDXInstance(_0x53ea49),_0x13c16b=await _0x4409a4[_0xfb2db9(0x389)]({'options':{..._0x53ea49,..._0x5e98c4},'args':_0x266136?[_0x357a0c,_0x266136]:[_0x357a0c],'tdx':_0x3e42ff});process[_0xfb2db9(0x351)](_0x13c16b);}),workflowCmd['command'](a2_0x130057(0x3e5))['description'](a2_0x130057(0x367))[a2_0x130057(0x32d)]('--revision\x20<revision>',a2_0x130057(0x1f2))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x300))[a2_0x130057(0x32d)]('--skip-validation',a2_0x130057(0x42f))[a2_0x130057(0x32d)](a2_0x130057(0x436),'Skip\x20confirmation\x20prompt')[a2_0x130057(0x379)](async(_0x17e859,_0x2a3c72)=>{const _0xb8835e=a2_0x130057,_0x58fed5=new WorkflowPushCommand(),_0x393150=program[_0xb8835e(0x3ef)](),_0x250126=await createTDXInstance(_0x393150),_0x4031b0=await _0x58fed5[_0xb8835e(0x389)]({'options':{..._0x393150,..._0x2a3c72},'args':_0x17e859?[_0x17e859]:[],'tdx':_0x250126});process['exit'](_0x4031b0);}),workflowCmd[a2_0x130057(0x395)]('upload\x20[project-name-or-dir]')[a2_0x130057(0x245)](a2_0x130057(0x1fc))[a2_0x130057(0x32d)](a2_0x130057(0x27d),a2_0x130057(0x33c))[a2_0x130057(0x32d)]('--revision\x20<revision>',a2_0x130057(0x21c))[a2_0x130057(0x32d)](a2_0x130057(0x277),a2_0x130057(0x42f))['action'](async(_0x482ef5,_0x3b8378)=>{const _0x40db35=a2_0x130057,_0x11ad8c=new WorkflowUploadCommand(),_0x219b92=program[_0x40db35(0x3ef)](),_0x2eb155=await createTDXInstance(_0x219b92),_0xa8bdc=await _0x11ad8c[_0x40db35(0x389)]({'options':{..._0x219b92,..._0x3b8378},'args':_0x482ef5?[_0x482ef5]:[],'tdx':_0x2eb155});process[_0x40db35(0x351)](_0xa8bdc);}),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x250))[a2_0x130057(0x245)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x130057(0x32d)](a2_0x130057(0x27d),a2_0x130057(0x3ff))[a2_0x130057(0x32d)](a2_0x130057(0x3d5),a2_0x130057(0x1f2))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x385))[a2_0x130057(0x32d)](a2_0x130057(0x277),a2_0x130057(0x42f))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x34ab30,_0x2c9dd9)=>{const _0x51ca22=a2_0x130057,_0x46707b=new WorkflowCloneCommand(),_0x120496=program[_0x51ca22(0x3ef)](),_0xfcef01=await createTDXInstance(_0x120496),_0x44f704=await _0x46707b[_0x51ca22(0x389)]({'options':{..._0x120496,..._0x2c9dd9},'args':_0x34ab30?[_0x34ab30]:[],'tdx':_0xfcef01});process[_0x51ca22(0x351)](_0x44f704);}),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x352))[a2_0x130057(0x245)](a2_0x130057(0x22e))['action'](async(_0x2e0922,_0x2617a7)=>{const _0x5cab23=a2_0x130057,_0x10ea66=new WorkflowDeleteCommand(),_0x137fad=program[_0x5cab23(0x3ef)](),_0x3ce809=await createTDXInstance(_0x137fad),_0x41e1dc=await _0x10ea66[_0x5cab23(0x389)]({'options':{..._0x137fad,..._0x2617a7},'args':[_0x2e0922],'tdx':_0x3ce809});process['exit'](_0x41e1dc);}),workflowCmd[a2_0x130057(0x395)](a2_0x130057(0x2df))[a2_0x130057(0x245)](a2_0x130057(0x3a1))[a2_0x130057(0x32d)](a2_0x130057(0x282),a2_0x130057(0x2ad))[a2_0x130057(0x379)](async(_0x5d3f33,_0x2fb761)=>{const _0x43caa3=new WorkflowUseCommand(),_0x166f41=program['opts'](),_0x55cd53=await createTDXInstance(_0x166f41),_0x319139=await _0x43caa3['run']({'options':{..._0x166f41,..._0x2fb761},'args':_0x5d3f33?[_0x5d3f33]:[],'tdx':_0x55cd53});process['exit'](_0x319139);});const wfSecretsCmd=workflowCmd['command'](a2_0x130057(0x3c0))[a2_0x130057(0x245)](a2_0x130057(0x381));wfSecretsCmd[a2_0x130057(0x395)](a2_0x130057(0x431))[a2_0x130057(0x245)](a2_0x130057(0x350))[a2_0x130057(0x379)](async(_0x17dd87,_0x5e0b9d)=>{const _0x4b8f97=a2_0x130057,_0xd12e2a=new WorkflowSecretsListCommand(),_0x40fadc=program[_0x4b8f97(0x3ef)](),_0x1277f9=await createTDXInstance(_0x40fadc),_0x39d475=await _0xd12e2a[_0x4b8f97(0x389)]({'options':{..._0x40fadc,..._0x5e0b9d},'args':_0x17dd87?[_0x17dd87]:[],'tdx':_0x1277f9});process[_0x4b8f97(0x351)](_0x39d475);}),wfSecretsCmd['command'](a2_0x130057(0x21d))[a2_0x130057(0x245)](a2_0x130057(0x3cf))['action'](async(_0x840054,_0xb4c6d)=>{const _0x20af53=a2_0x130057,_0x309592=new WorkflowSecretsSetCommand(),_0x549845=program[_0x20af53(0x3ef)](),_0x21dea6=await createTDXInstance(_0x549845),_0x49e8c9=await _0x309592[_0x20af53(0x389)]({'options':{..._0x549845,..._0xb4c6d},'args':_0x840054,'tdx':_0x21dea6});process[_0x20af53(0x351)](_0x49e8c9);}),wfSecretsCmd[a2_0x130057(0x395)](a2_0x130057(0x3a2))[a2_0x130057(0x245)](a2_0x130057(0x3cb))[a2_0x130057(0x32d)](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x379)](async(_0x4e4e25,_0x6fe596)=>{const _0x8276f6=a2_0x130057,_0x3073ba=new WorkflowSecretsDeleteCommand(),_0x4d3d7d=program[_0x8276f6(0x3ef)](),_0x4d92e2=await createTDXInstance(_0x4d3d7d),_0x4f281f=await _0x3073ba[_0x8276f6(0x389)]({'options':{..._0x4d3d7d,..._0x6fe596},'args':_0x4e4e25,'tdx':_0x4d92e2});process[_0x8276f6(0x351)](_0x4f281f);});const jobCmd=program[a2_0x130057(0x395)]('job')[a2_0x130057(0x245)](a2_0x130057(0x2b4)),jobListAction=async _0x4d7251=>{const _0x47e1da=a2_0x130057,_0x2a1f8d=new JobListCommand(),_0x2a2d1c=program['opts'](),_0x2c9543=await createTDXInstance(_0x2a2d1c),_0x555cbd=await _0x2a1f8d[_0x47e1da(0x389)]({'options':{..._0x2a2d1c,..._0x4d7251},'args':[],'tdx':_0x2c9543});process['exit'](_0x555cbd);};jobCmd[a2_0x130057(0x395)](a2_0x130057(0x2a9))[a2_0x130057(0x245)](a2_0x130057(0x24e))['option']('--status\x20<status>',a2_0x130057(0x2c7))[a2_0x130057(0x379)](jobListAction),program['command'](a2_0x130057(0x1f1),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x410))[a2_0x130057(0x32d)](a2_0x130057(0x2b6),a2_0x130057(0x2c7))[a2_0x130057(0x379)](jobListAction),jobCmd['command'](a2_0x130057(0x42e))[a2_0x130057(0x245)](a2_0x130057(0x38d))[a2_0x130057(0x379)](async(_0x221a65,_0x41b2e5)=>{const _0x356a84=a2_0x130057,_0x394d6e=new JobShowCommand(),_0x30572e=program[_0x356a84(0x3ef)](),_0x371722=await createTDXInstance(_0x30572e),_0x31f3f0=await _0x394d6e[_0x356a84(0x389)]({'options':{..._0x30572e,..._0x41b2e5},'args':[_0x221a65],'tdx':_0x371722});process[_0x356a84(0x351)](_0x31f3f0);}),jobCmd[a2_0x130057(0x395)](a2_0x130057(0x362))['description'](a2_0x130057(0x32a))[a2_0x130057(0x379)](async(_0x115459,_0x5b8408)=>{const _0x1ee7d6=a2_0x130057,_0x1faa41=new JobKillCommand(),_0x325bd3=program[_0x1ee7d6(0x3ef)](),_0x4f1d7f=await createTDXInstance(_0x325bd3),_0x43022c=await _0x1faa41[_0x1ee7d6(0x389)]({'options':{..._0x325bd3,..._0x5b8408},'args':[_0x115459],'tdx':_0x4f1d7f});process[_0x1ee7d6(0x351)](_0x43022c);}),jobCmd['command']('submit\x20[query]')[a2_0x130057(0x245)]('Submit\x20a\x20job')[a2_0x130057(0x32d)]('--job-type\x20<type>',a2_0x130057(0x3f0),a2_0x130057(0x2fa))['option'](a2_0x130057(0x3dd),'Read\x20query\x20from\x20file')[a2_0x130057(0x32d)](a2_0x130057(0x294),a2_0x130057(0x1ea),'information_schema')[a2_0x130057(0x379)](async(_0x384878,_0x346cd9)=>{const _0x63d60d=a2_0x130057,_0xd1092d=new JobSubmitCommand(),_0x2ed62c=program[_0x63d60d(0x3ef)](),_0x5e4b88=await createTDXInstance(_0x2ed62c),_0x1be535=await _0xd1092d[_0x63d60d(0x389)]({'options':{..._0x2ed62c,..._0x346cd9},'args':_0x384878?[_0x384878]:[],'tdx':_0x5e4b88});process[_0x63d60d(0x351)](_0x1be535);}),jobCmd[a2_0x130057(0x395)]('result\x20<job-id>')[a2_0x130057(0x245)]('Get\x20job\x20results')[a2_0x130057(0x379)](async(_0x5480b6,_0x5ecd6d)=>{const _0x3090fc=a2_0x130057,_0x49fb1e=new JobResultCommand(),_0x542524=program[_0x3090fc(0x3ef)](),_0x234c57=await createTDXInstance(_0x542524),_0x3070b0=await _0x49fb1e[_0x3090fc(0x389)]({'options':{..._0x542524,..._0x5ecd6d},'args':[_0x5480b6],'tdx':_0x234c57});process['exit'](_0x3070b0);});const llmCmd=program[a2_0x130057(0x395)](a2_0x130057(0x3a9))[a2_0x130057(0x245)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x130057(0x395)](a2_0x130057(0x228))[a2_0x130057(0x245)](a2_0x130057(0x3dc))[a2_0x130057(0x379)](async(_0xad7375,_0x2428fe)=>{const _0x358a98=a2_0x130057,_0x9f6013=new LLMUseCommand(),_0x1ace96=program[_0x358a98(0x3ef)](),_0x76730=await createTDXInstance(_0x1ace96),_0x49160d=await _0x9f6013[_0x358a98(0x389)]({'options':{..._0x1ace96,..._0x2428fe},'args':[_0xad7375],'tdx':_0x76730});process[_0x358a98(0x351)](_0x49160d);}),llmCmd['command']('models')[a2_0x130057(0x245)]('List\x20available\x20LLM\x20models')[a2_0x130057(0x379)](async _0x2ea676=>{const _0x29aa93=a2_0x130057,_0x2bb2ff=new LLMModelsCommand(),_0x45452b=program['opts'](),_0x37bc0f=await createTDXInstance(_0x45452b),_0x36fb30=await _0x2bb2ff['run']({'options':{..._0x45452b,..._0x2ea676},'args':[],'tdx':_0x37bc0f});process[_0x29aa93(0x351)](_0x36fb30);});const projectCmd=llmCmd[a2_0x130057(0x395)](a2_0x130057(0x3ec))[a2_0x130057(0x245)](a2_0x130057(0x318)),llmProjectListAction=async(_0x2d9a24,_0x4056ef)=>{const _0x3892fd=a2_0x130057,_0x357aa2=new LLMProjectsCommand(),_0x435ef8=program[_0x3892fd(0x3ef)](),_0x2dae38=await createTDXInstance(_0x435ef8),_0x41694c=await _0x357aa2['run']({'options':{..._0x435ef8,..._0x4056ef},'args':_0x2d9a24?[_0x2d9a24]:[],'tdx':_0x2dae38});process[_0x3892fd(0x351)](_0x41694c);};projectCmd[a2_0x130057(0x395)](a2_0x130057(0x43b))[a2_0x130057(0x245)](a2_0x130057(0x256))[a2_0x130057(0x32d)]('-w,\x20--web','Show\x20console\x20URLs')[a2_0x130057(0x379)](llmProjectListAction),llmCmd[a2_0x130057(0x395)](a2_0x130057(0x26c))['description'](a2_0x130057(0x247))[a2_0x130057(0x32d)](a2_0x130057(0x237),'Show\x20console\x20URLs')[a2_0x130057(0x379)](llmProjectListAction),projectCmd[a2_0x130057(0x395)](a2_0x130057(0x324))[a2_0x130057(0x245)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x130057(0x32d)](a2_0x130057(0x2fc),a2_0x130057(0x41c))['action'](async(_0x3c990e,_0xbb38b8)=>{const _0x462511=a2_0x130057,_0x32c902=new LLMProjectCreateCommand(),_0x2cc9b4=program[_0x462511(0x3ef)](),_0x52cc50=await createTDXInstance(_0x2cc9b4),_0xb9f3de=await _0x32c902[_0x462511(0x389)]({'options':{..._0x2cc9b4,..._0xbb38b8},'args':[_0x3c990e],'tdx':_0x52cc50});process[_0x462511(0x351)](_0xb9f3de);}),projectCmd[a2_0x130057(0x395)](a2_0x130057(0x1eb))[a2_0x130057(0x245)](a2_0x130057(0x28c))[a2_0x130057(0x379)](async(_0x3ffa94,_0x51050e)=>{const _0x13d0b7=a2_0x130057,_0x3c6c93=new LLMProjectDeleteCommand(),_0xdf8887=program['opts'](),_0x5eb1e1=await createTDXInstance(_0xdf8887),_0x163115=await _0x3c6c93['run']({'options':{..._0xdf8887,..._0x51050e},'args':[_0x3ffa94],'tdx':_0x5eb1e1});process[_0x13d0b7(0x351)](_0x163115);}),projectCmd[a2_0x130057(0x395)](a2_0x130057(0x404))[a2_0x130057(0x245)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x130057(0x32d)]('-o,\x20--output\x20<folder>',a2_0x130057(0x3ba))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x2bf))[a2_0x130057(0x379)](async(_0xb5ee5c,_0x19f7c8)=>{const _0x8fb3d4=a2_0x130057,_0x3110ab=new LLMProjectBackupCommand(),_0x4dfe5a=program['opts'](),_0x5e8a5a=await createTDXInstance(_0x4dfe5a),_0x37061c=await _0x3110ab[_0x8fb3d4(0x389)]({'options':{..._0x4dfe5a,..._0x19f7c8},'args':[_0xb5ee5c],'tdx':_0x5e8a5a});process[_0x8fb3d4(0x351)](_0x37061c);}),projectCmd[a2_0x130057(0x395)](a2_0x130057(0x2f4))['description'](a2_0x130057(0x239))[a2_0x130057(0x32d)](a2_0x130057(0x24b),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')['option'](a2_0x130057(0x2e8),a2_0x130057(0x267))[a2_0x130057(0x379)](async(_0x512223,_0xc3ba39)=>{const _0x1a9ae8=a2_0x130057,_0xcfa809=new LLMProjectRestoreCommand(),_0x5aee6e=program[_0x1a9ae8(0x3ef)](),_0x34267a=await createTDXInstance(_0x5aee6e),_0x34ada=await _0xcfa809[_0x1a9ae8(0x389)]({'options':{..._0x5aee6e,..._0xc3ba39},'args':[_0x512223],'tdx':_0x34267a});process[_0x1a9ae8(0x351)](_0x34ada);});const llmAgentListAction=async(_0x3dff5e,_0x1021f5)=>{const _0x35429b=a2_0x130057,_0x41550c=new LLMAgentsCommand(),_0x382bb1=program['opts'](),_0x374e7c=await createTDXInstance(_0x382bb1),_0x3b80e6=await _0x41550c['run']({'options':{..._0x382bb1,..._0x1021f5},'args':_0x3dff5e?[_0x3dff5e]:[],'tdx':_0x374e7c});process[_0x35429b(0x351)](_0x3b80e6);};llmCmd[a2_0x130057(0x395)](a2_0x130057(0x1e0))['description'](a2_0x130057(0x31f))['option'](a2_0x130057(0x237),'Show\x20agent\x20chat\x20URLs')[a2_0x130057(0x379)](llmAgentListAction),program[a2_0x130057(0x395)](a2_0x130057(0x1e0))[a2_0x130057(0x245)](a2_0x130057(0x31f))[a2_0x130057(0x32d)](a2_0x130057(0x237),a2_0x130057(0x33d))[a2_0x130057(0x379)](llmAgentListAction),llmCmd[a2_0x130057(0x395)](a2_0x130057(0x271))[a2_0x130057(0x245)](a2_0x130057(0x23a))[a2_0x130057(0x32d)](a2_0x130057(0x3e0),a2_0x130057(0x299))[a2_0x130057(0x379)](async(_0x16dd46,_0x2a9cb4)=>{const _0x2e69d6=a2_0x130057,_0xe1faba=new LLMHistoryCommand(),_0x46033a=program['opts'](),_0x3e0039=await createTDXInstance(_0x46033a),_0x145dfc=await _0xe1faba[_0x2e69d6(0x389)]({'options':{..._0x46033a,..._0x2a9cb4},'args':_0x16dd46?[_0x16dd46]:[],'tdx':_0x3e0039});process[_0x2e69d6(0x351)](_0x145dfc);}),llmCmd[a2_0x130057(0x395)](a2_0x130057(0x2dc))[a2_0x130057(0x245)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x130057(0x32d)](a2_0x130057(0x3be),a2_0x130057(0x39f),'4000')[a2_0x130057(0x32d)](a2_0x130057(0x226),a2_0x130057(0x272))[a2_0x130057(0x32d)](a2_0x130057(0x248),a2_0x130057(0x382))[a2_0x130057(0x379)](async _0xd255e1=>{const _0x101e0c=a2_0x130057,_0x44cb56=new LLMProxyCommand(),_0xcc5590=program['opts'](),_0x12640a=await createTDXInstance(_0xcc5590),_0x2ad4f6={..._0xd255e1,'port':_0xd255e1[_0x101e0c(0x43c)]?parseInt(_0xd255e1[_0x101e0c(0x43c)],0xa):undefined},_0x210b38=await _0x44cb56[_0x101e0c(0x389)]({'options':{..._0xcc5590,..._0x2ad4f6},'args':[],'tdx':_0x12640a});process[_0x101e0c(0x351)](_0x210b38);}),program[a2_0x130057(0x395)](a2_0x130057(0x23d))[a2_0x130057(0x3de)]('[options]\x20--\x20[claude-code-args...]')[a2_0x130057(0x245)](a2_0x130057(0x20d))[a2_0x130057(0x32d)](a2_0x130057(0x3aa),a2_0x130057(0x221),a2_0x130057(0x41f))[a2_0x130057(0x32d)](a2_0x130057(0x372),a2_0x130057(0x327))[a2_0x130057(0x32d)](a2_0x130057(0x3eb),a2_0x130057(0x342))[a2_0x130057(0x32d)]('--no-proxy',a2_0x130057(0x3e9))[a2_0x130057(0x253)]()[a2_0x130057(0x393)](!![])['addHelpText']('after','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')['action'](async(_0x551d30,_0x96dfe6)=>{const _0x48a194=a2_0x130057,_0x274dea=program['opts'](),_0x6b76dc=Array[_0x48a194(0x1e6)](_0x551d30)?_0x551d30:[];if(_0x6b76dc[0x0]===_0x48a194(0x36c)){const _0x3b9b5c=new ClaudeStatuslineCommand(),_0x179386=await _0x3b9b5c['run']({'options':{..._0x274dea,..._0x96dfe6},'args':_0x6b76dc[_0x48a194(0x314)](0x1),'tdx':null});process[_0x48a194(0x351)](_0x179386);}if(_0x6b76dc[0x0]===_0x48a194(0x3de)){const _0x426e14=new ClaudeUsageCommand(),_0x1c03d5=await _0x426e14['run']({'options':{..._0x274dea,..._0x96dfe6},'args':_0x6b76dc[_0x48a194(0x314)](0x1),'tdx':null});process[_0x48a194(0x351)](_0x1c03d5);}const _0x5bc2e6=new ClaudeCommand(),_0x532abf=await createTDXInstance(_0x274dea),_0x2bc92b=await _0x5bc2e6[_0x48a194(0x389)]({'options':{..._0x274dea,..._0x96dfe6},'args':_0x6b76dc,'tdx':_0x532abf});process[_0x48a194(0x351)](_0x2bc92b);}),program[a2_0x130057(0x395)](a2_0x130057(0x387))[a2_0x130057(0x245)]('Show\x20current\x20resolved\x20context\x20(use\x20--debug\x20to\x20show\x20sources)')[a2_0x130057(0x32d)](a2_0x130057(0x282),'Clear\x20session\x20context')[a2_0x130057(0x379)](async _0x585d2d=>{const _0x515057=a2_0x130057,_0x3a0640=new ContextCommand(),_0x53cbd9=program[_0x515057(0x3ef)](),_0x5c47d3=await _0x3a0640[_0x515057(0x389)]({'options':{..._0x53cbd9,..._0x585d2d},'args':[],'tdx':null});process[_0x515057(0x351)](_0x5c47d3);}),program['command']('use\x20[resource]\x20[value]')['description'](a2_0x130057(0x420))['option'](a2_0x130057(0x282),a2_0x130057(0x326))[a2_0x130057(0x379)](async(_0x54204c,_0x28f90c,_0x2af57e)=>{const _0x1386dc=a2_0x130057,_0x14e0f0=new UseCommand(),_0x2cc8bd=program[_0x1386dc(0x3ef)](),_0x236c18=[];if(_0x54204c)_0x236c18['push'](_0x54204c);if(_0x28f90c)_0x236c18[_0x1386dc(0x2eb)](_0x28f90c);const _0x52e749=await _0x14e0f0[_0x1386dc(0x389)]({'options':{..._0x2cc8bd,..._0x2af57e},'args':_0x236c18,'tdx':null});process[_0x1386dc(0x351)](_0x52e749);}),program[a2_0x130057(0x395)](a2_0x130057(0x374))['description'](a2_0x130057(0x305))['option'](a2_0x130057(0x3e0),a2_0x130057(0x291))['action'](async _0x357269=>{const _0xe351a3=a2_0x130057,_0x377706=new ChatsCommand(),_0x1fb897=program['opts'](),_0x45f155=await createTDXInstance(_0x1fb897),_0x59104b=await _0x377706[_0xe351a3(0x389)]({'options':{..._0x1fb897,..._0x357269},'args':[],'tdx':_0x45f155});process[_0xe351a3(0x351)](_0x59104b);});const authCmd=program[a2_0x130057(0x395)](a2_0x130057(0x34c))['description']('Authentication\x20management');async function runAuthStatusCommand(_0xaaa0db){const _0x23c6ce=a2_0x130057,_0x4ef0a4=new AuthStatusCommand(),_0x22aaf4=program[_0x23c6ce(0x3ef)](),_0x18b7c8=await createTDXInstance(_0x22aaf4),_0x471ac5=await _0x4ef0a4['run']({'options':{..._0x22aaf4,..._0xaaa0db},'args':[],'tdx':_0x18b7c8});process[_0x23c6ce(0x351)](_0x471ac5);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x130057(0x395)](a2_0x130057(0x3a0))[a2_0x130057(0x245)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x130057(0x379)](runAuthStatusCommand),authCmd[a2_0x130057(0x395)]('setup')['description']('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x130057(0x241)]('after',a2_0x130057(0x224))[a2_0x130057(0x379)](async _0x453513=>{const _0x3ab8ce=a2_0x130057,_0x1803fb=new AuthSetupCommand(),_0xeb7715=program[_0x3ab8ce(0x3ef)](),_0x41369e=await createTDXInstance(_0xeb7715),_0x4ec74d=await _0x1803fb[_0x3ab8ce(0x389)]({'options':{..._0xeb7715,..._0x453513},'args':[],'tdx':_0x41369e});process[_0x3ab8ce(0x351)](_0x4ec74d);}),authCmd[a2_0x130057(0x395)](a2_0x130057(0x2f5))['description'](a2_0x130057(0x40f))['addHelpText'](a2_0x130057(0x2d6),a2_0x130057(0x219))['action'](async _0x3eaa93=>{const _0x495017=a2_0x130057,_0x539665=new AuthClearCommand(),_0x6bee56=program[_0x495017(0x3ef)](),_0x41ead2=await _0x539665[_0x495017(0x389)]({'options':{..._0x6bee56,..._0x3eaa93},'args':[],'tdx':null});process[_0x495017(0x351)](_0x41ead2);});const userCmd=program[a2_0x130057(0x395)](a2_0x130057(0x29e))[a2_0x130057(0x245)](a2_0x130057(0x205)),userListAction=async _0x183630=>{const _0x207f7b=a2_0x130057,_0x274329=new UserListCommand(),_0x470937=program[_0x207f7b(0x3ef)](),_0x2cd5b8=await createTDXInstance(_0x470937),_0x26a810=await _0x274329[_0x207f7b(0x389)]({'options':{..._0x470937,..._0x183630},'args':[],'tdx':_0x2cd5b8});process[_0x207f7b(0x351)](_0x26a810);};userCmd[a2_0x130057(0x379)](async _0x3ae91b=>{const _0x2dd005=a2_0x130057,_0xfdd7ff=new UserCommand(),_0x38ff5f=program[_0x2dd005(0x3ef)](),_0xd93578=await createTDXInstance(_0x38ff5f),_0x1f6533=await _0xfdd7ff[_0x2dd005(0x389)]({'options':{..._0x38ff5f,..._0x3ae91b},'args':[],'tdx':_0xd93578});process[_0x2dd005(0x351)](_0x1f6533);}),userCmd['command'](a2_0x130057(0x2a9))['description'](a2_0x130057(0x30b))['action'](userListAction),program['command'](a2_0x130057(0x2de))[a2_0x130057(0x245)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x130057(0x379)](userListAction),program[a2_0x130057(0x395)](a2_0x130057(0x40a))[a2_0x130057(0x245)](a2_0x130057(0x234))['action'](async _0x45dd80=>{const _0x309a32=a2_0x130057,_0x16413d=new ProfilesCommand(),_0x4862b8=program[_0x309a32(0x3ef)](),_0x2c8453=await _0x16413d[_0x309a32(0x389)]({'options':{..._0x4862b8,..._0x45dd80},'args':[],'tdx':null});process[_0x309a32(0x351)](_0x2c8453);});const engageCmd=program[a2_0x130057(0x395)]('engage')[a2_0x130057(0x245)](a2_0x130057(0x364)),createEngageAction=_0x4bd21d=>{return async(_0x24a596,_0x16725a)=>{const _0x50ced9=a2_0x48bc,_0xc00468=new _0x4bd21d(),_0xd4737e=program[_0x50ced9(0x3ef)](),_0x1396bf=await createTDXInstance(_0xd4737e),_0xc406d5=await _0xc00468[_0x50ced9(0x389)]({'options':{..._0xd4737e,..._0x16725a},'args':[_0x24a596],'tdx':_0x1396bf});process[_0x50ced9(0x351)](_0xc406d5);};},createEngageNoArgAction=_0x5d8aa7=>{return async _0x2b0969=>{const _0x3c665b=a2_0x48bc,_0x178a64=new _0x5d8aa7(),_0x449610=program[_0x3c665b(0x3ef)](),_0x12f5c8=await createTDXInstance(_0x449610),_0x5c6289=await _0x178a64[_0x3c665b(0x389)]({'options':{..._0x449610,..._0x2b0969},'args':[],'tdx':_0x12f5c8});process[_0x3c665b(0x351)](_0x5c6289);};},campaignCmd=engageCmd[a2_0x130057(0x395)](a2_0x130057(0x29a))[a2_0x130057(0x245)](a2_0x130057(0x41d)),campaignListAction=async(_0x22c82f,_0x42f98a)=>{const _0x18923e=a2_0x130057,_0x362fb8=new EngageCampaignsCommand(),_0x208b43=program[_0x18923e(0x3ef)](),_0x5d0900=await createTDXInstance(_0x208b43),_0x17ec8f=await _0x362fb8[_0x18923e(0x389)]({'options':{..._0x208b43,..._0x42f98a},'args':_0x22c82f?[_0x22c82f]:[],'tdx':_0x5d0900});process[_0x18923e(0x351)](_0x17ec8f);};campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x43b))['description']('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x130057(0x32d)](a2_0x130057(0x206),a2_0x130057(0x273))[a2_0x130057(0x32d)](a2_0x130057(0x2b6),a2_0x130057(0x2ea))[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))[a2_0x130057(0x379)](campaignListAction),engageCmd[a2_0x130057(0x395)](a2_0x130057(0x23c))[a2_0x130057(0x245)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x130057(0x32d)](a2_0x130057(0x206),a2_0x130057(0x273))[a2_0x130057(0x32d)](a2_0x130057(0x2b6),a2_0x130057(0x2ea))[a2_0x130057(0x32d)](a2_0x130057(0x3a8),'Workspace\x20name')[a2_0x130057(0x379)](campaignListAction),campaignCmd[a2_0x130057(0x395)]('show\x20<name-or-id>')[a2_0x130057(0x245)](a2_0x130057(0x341))['option'](a2_0x130057(0x3a8),a2_0x130057(0x2a7))[a2_0x130057(0x32d)](a2_0x130057(0x3a4),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x130057(0x379)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x3e6))[a2_0x130057(0x245)](a2_0x130057(0x28d))['requiredOption'](a2_0x130057(0x27d),'Campaign\x20name')[a2_0x130057(0x313)](a2_0x130057(0x206),a2_0x130057(0x357))[a2_0x130057(0x32d)]('--workspace\x20<name>',a2_0x130057(0x1e2))[a2_0x130057(0x32d)]('--description\x20<desc>',a2_0x130057(0x308))['option'](a2_0x130057(0x31d),a2_0x130057(0x227))[a2_0x130057(0x32d)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x130057(0x32d)](a2_0x130057(0x35f),a2_0x130057(0x41b))[a2_0x130057(0x32d)](a2_0x130057(0x2fe),a2_0x130057(0x2e2))[a2_0x130057(0x32d)](a2_0x130057(0x2f8),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x130057(0x379)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x130057(0x395)]('update\x20<name-or-id>')[a2_0x130057(0x245)](a2_0x130057(0x3bd))[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))[a2_0x130057(0x32d)](a2_0x130057(0x27d),a2_0x130057(0x2ff))[a2_0x130057(0x32d)](a2_0x130057(0x31e),'Campaign\x20description')[a2_0x130057(0x32d)]('--segment\x20<path>',a2_0x130057(0x227))[a2_0x130057(0x32d)](a2_0x130057(0x2ec),a2_0x130057(0x37c))['option'](a2_0x130057(0x35f),a2_0x130057(0x41b))[a2_0x130057(0x32d)](a2_0x130057(0x2fe),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x130057(0x32d)](a2_0x130057(0x2f8),a2_0x130057(0x400))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x439))[a2_0x130057(0x245)]('Delete\x20a\x20campaign')[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))['option']('--yes',a2_0x130057(0x286))[a2_0x130057(0x379)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x3ac))[a2_0x130057(0x245)](a2_0x130057(0x257))[a2_0x130057(0x32d)]('--workspace\x20<name>',a2_0x130057(0x2a7))[a2_0x130057(0x379)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x270))[a2_0x130057(0x245)](a2_0x130057(0x309))[a2_0x130057(0x32d)]('--workspace\x20<name>',a2_0x130057(0x2a7))[a2_0x130057(0x379)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x130057(0x395)](a2_0x130057(0x1f3))[a2_0x130057(0x245)]('Resume\x20a\x20paused\x20campaign')[a2_0x130057(0x32d)](a2_0x130057(0x3a8),'Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x130057(0x2e7))['description'](a2_0x130057(0x2ef))['option'](a2_0x130057(0x3a8),a2_0x130057(0x2a7))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x130057(0x395)](a2_0x130057(0x2af))[a2_0x130057(0x245)](a2_0x130057(0x3db)),templateListAction=async(_0xb1cbe3,_0x31dadb)=>{const _0x275281=a2_0x130057,_0x251024=new EngageTemplatesCommand(),_0x59cced=program[_0x275281(0x3ef)](),_0x50b8b7=await createTDXInstance(_0x59cced),_0x3ebe55=await _0x251024[_0x275281(0x389)]({'options':{..._0x59cced,..._0x31dadb},'args':_0xb1cbe3?[_0xb1cbe3]:[],'tdx':_0x50b8b7});process['exit'](_0x3ebe55);};templateCmd['command'](a2_0x130057(0x43b))['description'](a2_0x130057(0x213))[a2_0x130057(0x32d)]('--workspace\x20<name>','Workspace\x20name')['action'](templateListAction),engageCmd[a2_0x130057(0x395)](a2_0x130057(0x2cd))[a2_0x130057(0x245)](a2_0x130057(0x30a))[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))[a2_0x130057(0x379)](templateListAction),templateCmd[a2_0x130057(0x395)](a2_0x130057(0x3b1))[a2_0x130057(0x245)]('Show\x20email\x20template\x20details')[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))['option']('--full',a2_0x130057(0x34a))[a2_0x130057(0x379)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x130057(0x395)](a2_0x130057(0x3e6))[a2_0x130057(0x245)]('Create\x20an\x20email\x20template')[a2_0x130057(0x313)](a2_0x130057(0x27d),a2_0x130057(0x366))['requiredOption'](a2_0x130057(0x1f5),'Email\x20subject\x20template')[a2_0x130057(0x313)]('--html\x20<html>',a2_0x130057(0x3af))[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x1e2))[a2_0x130057(0x32d)](a2_0x130057(0x3b0),a2_0x130057(0x42b))[a2_0x130057(0x32d)](a2_0x130057(0x411),a2_0x130057(0x274))[a2_0x130057(0x379)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x130057(0x395)](a2_0x130057(0x3c5))[a2_0x130057(0x245)]('Update\x20an\x20email\x20template')[a2_0x130057(0x32d)](a2_0x130057(0x3a8),a2_0x130057(0x2a7))[a2_0x130057(0x32d)](a2_0x130057(0x27d),a2_0x130057(0x418))['option'](a2_0x130057(0x1f5),a2_0x130057(0x378))[a2_0x130057(0x32d)](a2_0x130057(0x2a4),a2_0x130057(0x3af))['option'](a2_0x130057(0x3b0),a2_0x130057(0x42b))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x130057(0x439))[a2_0x130057(0x245)](a2_0x130057(0x295))['option'](a2_0x130057(0x3a8),'Workspace\x20name')[a2_0x130057(0x32d)](a2_0x130057(0x3b5),a2_0x130057(0x286))[a2_0x130057(0x379)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x130057(0x26b))[a2_0x130057(0x245)]('Workspace\x20management'),workspaceListAction=async(_0x487854,_0x343569)=>{const _0x10ac6e=a2_0x130057,_0x347470=new EngageWorkspacesCommand(),_0x367c36=program[_0x10ac6e(0x3ef)](),_0x2992d3=await createTDXInstance(_0x367c36),_0x22e93c=await _0x347470[_0x10ac6e(0x389)]({'options':{..._0x367c36,..._0x343569},'args':_0x487854?[_0x487854]:[],'tdx':_0x2992d3});process['exit'](_0x22e93c);};workspaceCmd['command']('list\x20[pattern]')[a2_0x130057(0x245)](a2_0x130057(0x2a2))[a2_0x130057(0x379)](workspaceListAction),engageCmd['command'](a2_0x130057(0x2a6))[a2_0x130057(0x245)](a2_0x130057(0x278))[a2_0x130057(0x379)](workspaceListAction),workspaceCmd[a2_0x130057(0x395)](a2_0x130057(0x3b1))[a2_0x130057(0x245)](a2_0x130057(0x2dd))['option']('--full',a2_0x130057(0x34a))[a2_0x130057(0x379)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x130057(0x395)](a2_0x130057(0x3e6))['description'](a2_0x130057(0x2c8))['requiredOption'](a2_0x130057(0x27d),a2_0x130057(0x2a7))[a2_0x130057(0x32d)](a2_0x130057(0x31e),a2_0x130057(0x3da))[a2_0x130057(0x379)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x130057(0x395)](a2_0x130057(0x3c5))[a2_0x130057(0x245)](a2_0x130057(0x2c2))[a2_0x130057(0x32d)](a2_0x130057(0x27d),a2_0x130057(0x306))['option'](a2_0x130057(0x31e),'Workspace\x20description')[a2_0x130057(0x379)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x130057(0x395)](a2_0x130057(0x439))[a2_0x130057(0x245)](a2_0x130057(0x424))['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x130057(0x379)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x130057(0x395)](a2_0x130057(0x348))[a2_0x130057(0x245)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x130057(0x405))[a2_0x130057(0x245)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x344aef=>{const _0x50950c=a2_0x130057,_0x321139=new ConnectionListCommand(),_0x1cea0d=program[_0x50950c(0x3ef)](),_0x36efc0=await createTDXInstance(_0x1cea0d),_0x543472=await _0x321139[_0x50950c(0x389)]({'options':{..._0x1cea0d,..._0x344aef},'args':[],'tdx':_0x36efc0});process[_0x50950c(0x351)](_0x543472);};connectionCmd[a2_0x130057(0x395)](a2_0x130057(0x2a9))[a2_0x130057(0x245)](a2_0x130057(0x1ef))['action'](connectionListAction),program['command'](a2_0x130057(0x3b2),{'hidden':!![]})[a2_0x130057(0x245)](a2_0x130057(0x260))[a2_0x130057(0x379)](connectionListAction),connectionCmd[a2_0x130057(0x395)](a2_0x130057(0x223))[a2_0x130057(0x245)]('Show\x20connection\x20details\x20by\x20name')[a2_0x130057(0x379)](async(_0x137fde,_0x318890)=>{const _0x4dcd9c=a2_0x130057,_0x5897de=new ConnectionShowCommand(),_0xec9a2d=program[_0x4dcd9c(0x3ef)](),_0x591a10=await createTDXInstance(_0xec9a2d),_0x33028e=await _0x5897de[_0x4dcd9c(0x389)]({'options':{..._0xec9a2d,..._0x318890},'args':[_0x137fde],'tdx':_0x591a10});process[_0x4dcd9c(0x351)](_0x33028e);}),connectionCmd[a2_0x130057(0x395)](a2_0x130057(0x437))['description'](a2_0x130057(0x2ed))[a2_0x130057(0x379)](async(_0x4d9174,_0x773009)=>{const _0x531097=a2_0x130057,_0x11cdbd=new ConnectionSchemaCommand(),_0x1d17ad=program[_0x531097(0x3ef)](),_0x1add56=await createTDXInstance(_0x1d17ad),_0x5c5907=await _0x11cdbd[_0x531097(0x389)]({'options':{..._0x1d17ad,..._0x773009},'args':[_0x4d9174],'tdx':_0x1add56});process[_0x531097(0x351)](_0x5c5907);}),connectionCmd[a2_0x130057(0x395)](a2_0x130057(0x36d))[a2_0x130057(0x245)]('List\x20available\x20connector\x20types')[a2_0x130057(0x379)](async _0x3e172f=>{const _0x8bd8e6=a2_0x130057,_0xcc5ea9=new ConnectionTypesCommand(),_0x47c9cb=program[_0x8bd8e6(0x3ef)](),_0x5da525=await createTDXInstance(_0x47c9cb),_0x302f14=await _0xcc5ea9[_0x8bd8e6(0x389)]({'options':{..._0x47c9cb,..._0x3e172f},'args':[],'tdx':_0x5da525});process[_0x8bd8e6(0x351)](_0x302f14);}),connectionCmd[a2_0x130057(0x395)](a2_0x130057(0x1df))[a2_0x130057(0x245)](a2_0x130057(0x422))[a2_0x130057(0x379)](async(_0x1961e9,_0x5a452d)=>{const _0x550d0f=a2_0x130057,_0x5045bd=new ConnectionSettingsCommand(),_0x5a2a29=program[_0x550d0f(0x3ef)](),_0x3e45b6=await createTDXInstance(_0x5a2a29),_0x4b364b=await _0x5045bd['run']({'options':{..._0x5a2a29,..._0x5a452d},'args':[_0x1961e9],'tdx':_0x3e45b6});process['exit'](_0x4b364b);});const journeyCmd=program[a2_0x130057(0x395)](a2_0x130057(0x2c9))[a2_0x130057(0x245)](a2_0x130057(0x2b1));journeyCmd['command'](a2_0x130057(0x43b))['description'](a2_0x130057(0x338))['option'](a2_0x130057(0x237),'Show\x20web\x20console\x20URLs\x20for\x20journeys')[a2_0x130057(0x379)](async(_0x49a279,_0x5e980b)=>{const _0x482e38=a2_0x130057,_0x1b71e4=new JourneyListCommand(),_0x518f1b=program[_0x482e38(0x3ef)](),_0x5e3329=await createTDXInstance(_0x518f1b),_0x403ec5=await _0x1b71e4[_0x482e38(0x389)]({'options':{..._0x518f1b,..._0x5e980b},'args':_0x49a279?[_0x49a279]:[],'tdx':_0x5e3329});process[_0x482e38(0x351)](_0x403ec5);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x2aa))['description'](a2_0x130057(0x42a))[a2_0x130057(0x32d)](a2_0x130057(0x237),a2_0x130057(0x2d5))[a2_0x130057(0x32d)](a2_0x130057(0x3b3),a2_0x130057(0x238))['action'](async(_0x3e4666,_0x16287a)=>{const _0x4b97c1=a2_0x130057,_0x529a6f=new JourneyViewCommand(),_0x122221=program[_0x4b97c1(0x3ef)](),_0x107e31=await createTDXInstance(_0x122221),_0x4be29d=await _0x529a6f[_0x4b97c1(0x389)]({'options':{..._0x122221,..._0x16287a},'args':[_0x3e4666],'tdx':_0x107e31});process['exit'](_0x4be29d);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x358))['description']('Show\x20journey\x20statistics')[a2_0x130057(0x32d)]('--stage\x20<name>',a2_0x130057(0x2e1))['action'](async(_0x166fa5,_0x21aa6c)=>{const _0x2f5f61=a2_0x130057,_0x57cc77=new JourneyStatsCommand(),_0x29a000=program[_0x2f5f61(0x3ef)](),_0x18eee0=await createTDXInstance(_0x29a000),_0x28a59b=await _0x57cc77[_0x2f5f61(0x389)]({'options':{..._0x29a000,..._0x21aa6c},'args':[_0x166fa5],'tdx':_0x18eee0});process['exit'](_0x28a59b);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x384))[a2_0x130057(0x245)](a2_0x130057(0x34f))[a2_0x130057(0x379)](async(_0x24dc4d,_0x106144)=>{const _0x555fa6=a2_0x130057,_0x25ae28=new JourneyPauseCommand(),_0x49be77=program[_0x555fa6(0x3ef)](),_0x2ddaf7=await createTDXInstance(_0x49be77),_0x938d99=await _0x25ae28[_0x555fa6(0x389)]({'options':{..._0x49be77,..._0x106144},'args':[_0x24dc4d],'tdx':_0x2ddaf7});process[_0x555fa6(0x351)](_0x938d99);}),journeyCmd[a2_0x130057(0x395)]('resume\x20<name-or-path>')[a2_0x130057(0x245)](a2_0x130057(0x369))[a2_0x130057(0x379)](async(_0x4668e0,_0x58c987)=>{const _0x5ab6c8=a2_0x130057,_0x31855b=new JourneyResumeCommand(),_0x82c74=program[_0x5ab6c8(0x3ef)](),_0x79a08f=await createTDXInstance(_0x82c74),_0x52a6d8=await _0x31855b[_0x5ab6c8(0x389)]({'options':{..._0x82c74,..._0x58c987},'args':[_0x4668e0],'tdx':_0x79a08f});process[_0x5ab6c8(0x351)](_0x52a6d8);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x2ab))[a2_0x130057(0x245)](a2_0x130057(0x334))['option'](a2_0x130057(0x436),a2_0x130057(0x286))[a2_0x130057(0x32d)](a2_0x130057(0x2e8),a2_0x130057(0x1f8))[a2_0x130057(0x379)](async(_0x50dc0e,_0xc48d83)=>{const _0x1868ed=a2_0x130057,_0x26e70c=new JourneyPullCommand(),_0xd93d47=program[_0x1868ed(0x3ef)](),_0xa7f471=await createTDXInstance(_0xd93d47),_0x5c3450=await _0x26e70c[_0x1868ed(0x389)]({'options':{..._0xd93d47,..._0xc48d83},'args':_0x50dc0e?[_0x50dc0e]:[],'tdx':_0xa7f471});process[_0x1868ed(0x351)](_0x5c3450);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x208))[a2_0x130057(0x245)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')['action'](async(_0x5190e4,_0x197e13)=>{const _0x499d7d=new JourneyPushCommand(),_0x250338=program['opts'](),_0x1e0543=await createTDXInstance(_0x250338),_0x5a839b=await _0x499d7d['run']({'options':{..._0x250338,..._0x197e13},'args':_0x5190e4?[_0x5190e4]:[],'tdx':_0x1e0543});process['exit'](_0x5a839b);}),journeyCmd[a2_0x130057(0x395)](a2_0x130057(0x36a))['description'](a2_0x130057(0x40b))[a2_0x130057(0x379)](async(_0x4b4d65,_0x504436)=>{const _0x2f71d7=a2_0x130057,_0x267a09=new JourneyValidateCommand(),_0x634aa0=program[_0x2f71d7(0x3ef)](),_0x2aa198=await createTDXInstance(_0x634aa0),_0xe1b070=await _0x267a09['run']({'options':{..._0x634aa0,..._0x504436},'args':_0x4b4d65?[_0x4b4d65]:[],'tdx':_0x2aa198});process[_0x2f71d7(0x351)](_0xe1b070);});const agentSyncCmd=program[a2_0x130057(0x395)](a2_0x130057(0x2a1))[a2_0x130057(0x245)](a2_0x130057(0x321));agentSyncCmd[a2_0x130057(0x395)](a2_0x130057(0x25b))[a2_0x130057(0x245)](a2_0x130057(0x27b))[a2_0x130057(0x32d)](a2_0x130057(0x1e1),a2_0x130057(0x428))[a2_0x130057(0x32d)]('-f,\x20--force',a2_0x130057(0x3a7))['action'](async(_0xe79111,_0x119e8a,_0x393b97)=>{const _0x54f46a=a2_0x130057,_0x1c8a6e=new AgentPullCommand(),_0x5f1b82=program[_0x54f46a(0x3ef)](),_0x54b7ad=await createTDXInstance(_0x5f1b82),_0x2e2131=[];if(_0xe79111)_0x2e2131[_0x54f46a(0x2eb)](_0xe79111);if(_0x119e8a)_0x2e2131[_0x54f46a(0x2eb)](_0x119e8a);const _0x4f920d=await _0x1c8a6e[_0x54f46a(0x389)]({'options':{..._0x5f1b82,..._0x393b97},'args':_0x2e2131,'tdx':_0x54b7ad});process[_0x54f46a(0x351)](_0x4f920d);}),agentSyncCmd[a2_0x130057(0x395)](a2_0x130057(0x2d9))[a2_0x130057(0x245)](a2_0x130057(0x3c9))['option'](a2_0x130057(0x3b4),a2_0x130057(0x2f2))[a2_0x130057(0x379)](async(_0x325d94,_0x12ec48)=>{const _0x1f0795=a2_0x130057,_0x2d56f3=new AgentPushCommand(),_0x27ab6d=program[_0x1f0795(0x3ef)](),_0x983af=await createTDXInstance(_0x27ab6d),_0x1a9515=await _0x2d56f3[_0x1f0795(0x389)]({'options':{..._0x27ab6d,..._0x12ec48},'args':_0x325d94?[_0x325d94]:[],'tdx':_0x983af});process[_0x1f0795(0x351)](_0x1a9515);}),agentSyncCmd[a2_0x130057(0x395)]('clone\x20[source]')[a2_0x130057(0x245)](a2_0x130057(0x204))[a2_0x130057(0x32d)]('-n,\x20--name\x20<name>',a2_0x130057(0x3ff))[a2_0x130057(0x379)](async(_0x1ec67a,_0x2e2f59)=>{const _0x78f6c6=a2_0x130057,_0x2f82a3=new AgentCloneCommand(),_0x37ec4d=program['opts'](),_0x5f0cb7=await createTDXInstance(_0x37ec4d),_0x32847e=await _0x2f82a3['run']({'options':{..._0x37ec4d,..._0x2e2f59},'args':_0x1ec67a?[_0x1ec67a]:[],'tdx':_0x5f0cb7});process[_0x78f6c6(0x351)](_0x32847e);}),agentSyncCmd[a2_0x130057(0x395)]('list\x20[pattern]')[a2_0x130057(0x245)](a2_0x130057(0x21f))['option']('-w,\x20--web',a2_0x130057(0x33d))['action'](llmAgentListAction),agentSyncCmd[a2_0x130057(0x395)](a2_0x130057(0x3c7))['description']('Show\x20agent\x20details')[a2_0x130057(0x379)](async(_0xfcd240,_0x16c5b4)=>{const _0x25fae8=a2_0x130057,_0x52ed72=new LLMAgentShowCommand(),_0x4d5954=program[_0x25fae8(0x3ef)](),_0x1cc1b3=await createTDXInstance(_0x4d5954),_0x1a77b2=await _0x52ed72[_0x25fae8(0x389)]({'options':{..._0x4d5954,..._0x16c5b4},'args':[_0xfcd240],'tdx':_0x1cc1b3});process['exit'](_0x1a77b2);}),agentSyncCmd[a2_0x130057(0x395)](a2_0x130057(0x324))['description'](a2_0x130057(0x240))[a2_0x130057(0x32d)]('--system-prompt\x20<text>',a2_0x130057(0x426))['option'](a2_0x130057(0x3aa),a2_0x130057(0x33f),a2_0x130057(0x3a5))[a2_0x130057(0x32d)](a2_0x130057(0x3f7),a2_0x130057(0x2b0))[a2_0x130057(0x32d)]('--max-tool-iterations\x20<n>',a2_0x130057(0x2e5),'4')[a2_0x130057(0x32d)]('--temperature\x20<n>',a2_0x130057(0x343),a2_0x130057(0x3f1))['action'](async(_0x49ae01,_0x1938f4)=>{const _0x141057=a2_0x130057,_0x3ded01=new LLMAgentCreateCommand(),_0x3af344=program[_0x141057(0x3ef)](),_0x2ce50a=await createTDXInstance(_0x3af344),_0x40b36c=await _0x3ded01[_0x141057(0x389)]({'options':{..._0x3af344,..._0x1938f4},'args':[_0x49ae01],'tdx':_0x2ce50a});process[_0x141057(0x351)](_0x40b36c);}),agentSyncCmd[a2_0x130057(0x395)](a2_0x130057(0x2b9))[a2_0x130057(0x245)](a2_0x130057(0x3e3))[a2_0x130057(0x32d)](a2_0x130057(0x423),a2_0x130057(0x2e6))[a2_0x130057(0x32d)](a2_0x130057(0x36f),a2_0x130057(0x375))[a2_0x130057(0x32d)](a2_0x130057(0x2fc),'Agent\x20description')[a2_0x130057(0x32d)]('--starter-message\x20<text>',a2_0x130057(0x2b0))[a2_0x130057(0x379)](async(_0x3ee1f7,_0x101b3f)=>{const _0x320f9a=a2_0x130057,_0x2dccae=new LLMAgentUpdateCommand(),_0x49c796=program[_0x320f9a(0x3ef)](),_0x4b40=await createTDXInstance(_0x49c796),_0x37d475=await _0x2dccae['run']({'options':{..._0x49c796,..._0x101b3f},'args':[_0x3ee1f7],'tdx':_0x4b40});process[_0x320f9a(0x351)](_0x37d475);}),agentSyncCmd['command'](a2_0x130057(0x37a))[a2_0x130057(0x245)]('Delete\x20an\x20agent')[a2_0x130057(0x379)](async(_0x5104e1,_0x13dca0)=>{const _0x5dada6=a2_0x130057,_0xb00538=new LLMAgentDeleteCommand(),_0x250fe2=program['opts'](),_0xaf1982=await createTDXInstance(_0x250fe2),_0x3ed163=await _0xb00538[_0x5dada6(0x389)]({'options':{..._0x250fe2,..._0x13dca0},'args':[_0x5104e1],'tdx':_0xaf1982});process[_0x5dada6(0x351)](_0x3ed163);});export{program};export function runCLI(){const _0x3fa542=a2_0x130057;program[_0x3fa542(0x325)](process[_0x3fa542(0x323)]),!process[_0x3fa542(0x323)][_0x3fa542(0x314)](0x2)['length']&&program[_0x3fa542(0x1f6)](),process[_0x3fa542(0x29f)][_0x3fa542(0x22b)]&&process['argv'][_0x3fa542(0x2c3)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x3fa542(0x34b)](_0x1b0a37=>{_0x1b0a37&&displayUpdateNotification(_0x1b0a37);})['catch'](()=>{});}