@treasuredata/tdx 0.16.4 → 0.16.5

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 (217) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.d.ts.map +1 -1
  9. package/dist/commands/agent-command.js +1 -1
  10. package/dist/commands/agent-command.js.map +1 -1
  11. package/dist/commands/agent-test-command.d.ts +4 -0
  12. package/dist/commands/agent-test-command.d.ts.map +1 -1
  13. package/dist/commands/agent-test-command.js +1 -1
  14. package/dist/commands/agent-test-command.js.map +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.d.ts.map +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/auth-command.js.map +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.js +1 -1
  35. package/dist/commands/profile-command.d.ts.map +1 -1
  36. package/dist/commands/profile-command.js +1 -1
  37. package/dist/commands/profile-command.js.map +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.d.ts +7 -5
  58. package/dist/core/config.d.ts.map +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/config.js.map +1 -1
  61. package/dist/core/connection-cache.d.ts.map +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/connection-cache.js.map +1 -1
  64. package/dist/core/constants.d.ts +22 -0
  65. package/dist/core/constants.d.ts.map +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/constants.js.map +1 -1
  68. package/dist/core/credential-cache.js +1 -1
  69. package/dist/core/global-context.js +1 -1
  70. package/dist/core/keychain.d.ts.map +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/keychain.js.map +1 -1
  73. package/dist/core/profile.js +1 -1
  74. package/dist/core/project-config.js +1 -1
  75. package/dist/core/session.js +1 -1
  76. package/dist/core/user-cache.d.ts.map +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/user-cache.js.map +1 -1
  79. package/dist/core/version.d.ts +2 -2
  80. package/dist/core/version.js +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/mcp/server.js +1 -1
  83. package/dist/mcp/tools/index.js +1 -1
  84. package/dist/mcp/tools/tdx-run.js +1 -1
  85. package/dist/mcp/tools/tdx-search.js +1 -1
  86. package/dist/mcp/utils.js +1 -1
  87. package/dist/proxy/anthropic-adapter.js +1 -1
  88. package/dist/proxy/claude-usage-tracker.js +1 -1
  89. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  90. package/dist/proxy/context-signature.js +1 -1
  91. package/dist/proxy/conversation-utils.js +1 -1
  92. package/dist/proxy/passthrough-server.js +1 -1
  93. package/dist/proxy/server.js +1 -1
  94. package/dist/proxy/session-cache.js +1 -1
  95. package/dist/proxy/sse-usage-parser.js +1 -1
  96. package/dist/sdk/agent/agent-config.js +1 -1
  97. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  98. package/dist/sdk/agent/agent-yaml.d.ts +2 -0
  99. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  100. package/dist/sdk/agent/agent-yaml.js +1 -1
  101. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  102. package/dist/sdk/agent/test/evaluator.d.ts +3 -6
  103. package/dist/sdk/agent/test/evaluator.d.ts.map +1 -1
  104. package/dist/sdk/agent/test/evaluator.js +1 -1
  105. package/dist/sdk/agent/test/evaluator.js.map +1 -1
  106. package/dist/sdk/agent/test/executor.d.ts +57 -1
  107. package/dist/sdk/agent/test/executor.d.ts.map +1 -1
  108. package/dist/sdk/agent/test/executor.js +1 -1
  109. package/dist/sdk/agent/test/executor.js.map +1 -1
  110. package/dist/sdk/agent/test/index.d.ts +2 -2
  111. package/dist/sdk/agent/test/index.d.ts.map +1 -1
  112. package/dist/sdk/agent/test/index.js +1 -1
  113. package/dist/sdk/agent/test/index.js.map +1 -1
  114. package/dist/sdk/agent/test/output.js +1 -1
  115. package/dist/sdk/agent/test/parser.d.ts.map +1 -1
  116. package/dist/sdk/agent/test/parser.js +1 -1
  117. package/dist/sdk/agent/test/parser.js.map +1 -1
  118. package/dist/sdk/agent/test/types.d.ts +44 -0
  119. package/dist/sdk/agent/test/types.d.ts.map +1 -1
  120. package/dist/sdk/api.js +1 -1
  121. package/dist/sdk/claude-agent/claude-agent-client.js +1 -1
  122. package/dist/sdk/claude-agent/environment.js +1 -1
  123. package/dist/sdk/claude-agent/index.js +1 -1
  124. package/dist/sdk/claude-agent/system-prompts.js +1 -1
  125. package/dist/sdk/client/cdp-api-client.js +1 -1
  126. package/dist/sdk/client/endpoints.js +1 -1
  127. package/dist/sdk/client/endpoints.js.map +1 -1
  128. package/dist/sdk/client/engage-api-client.js +1 -1
  129. package/dist/sdk/client/http-client.js +1 -1
  130. package/dist/sdk/client/llm-api-client.d.ts +6 -0
  131. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  132. package/dist/sdk/client/llm-api-client.js +1 -1
  133. package/dist/sdk/client/llm-api-client.js.map +1 -1
  134. package/dist/sdk/client/rate-limiter.js +1 -1
  135. package/dist/sdk/client/td-api-client.js +1 -1
  136. package/dist/sdk/client/trino-api-client.js +1 -1
  137. package/dist/sdk/client/workflow-client.js +1 -1
  138. package/dist/sdk/connection-validator.js +1 -1
  139. package/dist/sdk/connection.js +1 -1
  140. package/dist/sdk/engage.js +1 -1
  141. package/dist/sdk/errors.js +1 -1
  142. package/dist/sdk/index.js +1 -1
  143. package/dist/sdk/io/index.js +1 -1
  144. package/dist/sdk/io/node-filesystem.js +1 -1
  145. package/dist/sdk/job.js +1 -1
  146. package/dist/sdk/journey.js +1 -1
  147. package/dist/sdk/llm/chat-cache.d.ts.map +1 -1
  148. package/dist/sdk/llm/chat-cache.js +1 -1
  149. package/dist/sdk/llm/chat-cache.js.map +1 -1
  150. package/dist/sdk/llm/index.d.ts +11 -3
  151. package/dist/sdk/llm/index.d.ts.map +1 -1
  152. package/dist/sdk/llm/index.js +1 -1
  153. package/dist/sdk/llm/index.js.map +1 -1
  154. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  155. package/dist/sdk/llm/model-aliases.js +1 -1
  156. package/dist/sdk/llm/model-factors.js +1 -1
  157. package/dist/sdk/query/index.js +1 -1
  158. package/dist/sdk/query/sql-parser.js +1 -1
  159. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  160. package/dist/sdk/segment/fields-display.js +1 -1
  161. package/dist/sdk/segment/file-discovery.js +1 -1
  162. package/dist/sdk/segment/journey-utils.js +1 -1
  163. package/dist/sdk/segment/journey-yaml.js +1 -1
  164. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  165. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  166. package/dist/sdk/segment/pull-workflow.js +1 -1
  167. package/dist/sdk/segment/push-workflow.js +1 -1
  168. package/dist/sdk/segment/resolution-context.js +1 -1
  169. package/dist/sdk/segment/segment-path-parser.js +1 -1
  170. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  171. package/dist/sdk/segment/target-resolution.js +1 -1
  172. package/dist/sdk/segment/tdx-config.js +1 -1
  173. package/dist/sdk/segment/validate-files.js +1 -1
  174. package/dist/sdk/segment/yaml-validator.js +1 -1
  175. package/dist/sdk/segment.js +1 -1
  176. package/dist/sdk/types/index.js +1 -1
  177. package/dist/sdk/types/llm.d.ts +39 -0
  178. package/dist/sdk/types/llm.d.ts.map +1 -1
  179. package/dist/sdk/types/progress.js +1 -1
  180. package/dist/sdk/user.js +1 -1
  181. package/dist/sdk/util/format-detector.js +1 -1
  182. package/dist/sdk/util/formatters.js +1 -1
  183. package/dist/sdk/util/index.js +1 -1
  184. package/dist/sdk/util/tree-formatter.js +1 -1
  185. package/dist/sdk/workflow/clone-workflow.js +1 -1
  186. package/dist/sdk/workflow/index.js +1 -1
  187. package/dist/sdk/workflow/pull-workflow.js +1 -1
  188. package/dist/sdk/workflow/push-workflow.js +1 -1
  189. package/dist/sdk/workflow/tdx-config.js +1 -1
  190. package/dist/sdk/workflow/workflow-utils.js +1 -1
  191. package/dist/utils/async.js +1 -1
  192. package/dist/utils/colors.js +1 -1
  193. package/dist/utils/diff.js +1 -1
  194. package/dist/utils/file-permissions.js +1 -1
  195. package/dist/utils/global-cache.d.ts +88 -0
  196. package/dist/utils/global-cache.d.ts.map +1 -0
  197. package/dist/utils/global-cache.js +1 -0
  198. package/dist/utils/global-cache.js.map +1 -0
  199. package/dist/utils/json-loader.js +1 -1
  200. package/dist/utils/local-cache.d.ts +48 -0
  201. package/dist/utils/local-cache.d.ts.map +1 -0
  202. package/dist/utils/local-cache.js +1 -0
  203. package/dist/utils/local-cache.js.map +1 -0
  204. package/dist/utils/option-validation.js +1 -1
  205. package/dist/utils/port.js +1 -1
  206. package/dist/utils/process.js +1 -1
  207. package/dist/utils/prompt.js +1 -1
  208. package/dist/utils/spinner.js +1 -1
  209. package/dist/utils/sse-parser.js +1 -1
  210. package/dist/utils/string-utils.js +1 -1
  211. package/dist/utils/table-ref-parser.js +1 -1
  212. package/dist/utils/tdx-logger.js +1 -1
  213. package/dist/utils/tdx-logger.js.map +1 -1
  214. package/dist/utils/version-check.d.ts.map +1 -1
  215. package/dist/utils/version-check.js +1 -1
  216. package/dist/utils/version-check.js.map +1 -1
  217. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3df4f4=a2_0x54ca;(function(_0x2d81ac,_0x24ae92){const _0x50bc79=a2_0x54ca,_0x59836d=_0x2d81ac();while(!![]){try{const _0x449c31=-parseInt(_0x50bc79(0x2af))/0x1+parseInt(_0x50bc79(0x2fe))/0x2+parseInt(_0x50bc79(0x1f7))/0x3+-parseInt(_0x50bc79(0x29e))/0x4*(parseInt(_0x50bc79(0x232))/0x5)+-parseInt(_0x50bc79(0x228))/0x6+-parseInt(_0x50bc79(0x2b1))/0x7*(parseInt(_0x50bc79(0x29a))/0x8)+parseInt(_0x50bc79(0x362))/0x9;if(_0x449c31===_0x24ae92)break;else _0x59836d['push'](_0x59836d['shift']());}catch(_0x5a6a6a){_0x59836d['push'](_0x59836d['shift']());}}}(a2_0xb2fd,0x47cef));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,WorkflowTimelineCommand,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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';function a2_0xb2fd(){const _0x3f361b=['jobs','pull\x20[project]\x20[agent-name]','Limit\x20number\x20of\x20rows','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--reason\x20<text>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Delete\x20an\x20email\x20template','database','Updated\x20schedule\x20option','required','Arguments:','--no-eval','stderr','format','Clear\x20workflow\x20project\x20context','--session-time\x20<time>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Show\x20master\x20table\x20sample\x20data','push\x20[target]','action','Export\x20journey(s)\x20as\x20YAML\x20files','--prompt\x20<text>','--master','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--customer-group-file\x20<file>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--trace','--revision\x20<revision>','logLevel','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','638582aQtdpg','--rule\x20<json>','create\x20<segment_name>','use\x20<project-name>','\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','tsv','Preview\x20changes\x20without\x20writing\x20files','Unknown\x20action:\x20','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20<path>','Show\x20journey\x20details','-p,\x20--profile\x20<name>','Create\x20a\x20new\x20LLM\x20project','--name\x20<names>','New\x20segment\x20name','--tsv','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','use\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--name\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Updated\x20description','attempts\x20[project]','Delete\x20a\x20workspace','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','retry\x20<session-id>','parse','project','help','logs','--plaintext\x20<text>','user','--description\x20<text>','Pull\x20workflow\x20project\x20to\x20local\x20folder','registeredArguments','result\x20<job-id>','opts','Reason\x20for\x20killing\x20the\x20attempt','connection','--behavior\x20[name]','injectIntoOptions','allowUnknownOption','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-c,\x20--continue','Output\x20directory','Workflow\x20parameter\x20(repeatable)','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','argumentTerm','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Template\x20name','schema\x20<type>','Show\x20campaign\x20details','Output\x20as\x20JSON','--html\x20<html>','Launch\x20a\x20campaign','desc\x20[segment_name]','get','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--attribute\x20[name]','Preview\x20without\x20creating\x20the\x20project','create\x20<name>','kill\x20<job-id>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','usage','Overwrite\x20local\x20changes\x20without\x20confirmation','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','profile','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--behaviors\x20<json>','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--attributes\x20<json>','join','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Setup\x20API\x20key\x20authentication\x20interactively','--include-retried','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','setup','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','--default','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Validate\x20journey\x20YAML\x20files\x20locally','--table','--full','configureHelp','-y,\x20--yes','description','Make\x20segment\x20invisible\x20(default:\x20visible)','pull\x20[parent_or_file]','createAsync','Filtering\x20rule\x20as\x20JSON\x20string','delete\x20<project-name-or-id>','Table\x20management\x20commands','llm','--jsonl','Set\x20a\x20profile\x20configuration\x20value','Skip\x20validation\x20of\x20.dig\x20files','7244406vAoTVV','padWidth','table','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','--port\x20<number>','Folder\x20name\x20for\x20organization','hook','Parent\x20segment\x20description','LLM\x20project\x20management','Revision\x20name\x20(default:\x20timestamp)','Include\x20retried\x20attempts\x20(for\x20list)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','validate\x20[name]','push','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','name','\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','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Set\x20operation\x20timeout\x20in\x20seconds','Read\x20SQL\x20query\x20from\x20file','Custom\x20revision\x20name\x20(default:\x20timestamp)','delete\x20<name-or-id>','--llm-proxy\x20[url]','log','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','flatMap','validate\x20[file]','Attempt\x20ID','jsonl','Skip\x20population\x20counting','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','statusline','stdout','-X,\x20--method\x20<method>','_hidden','Commands:','--timezone\x20<tz>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--temperature\x20<n>','--no-color','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','4000','Include\x20retried\x20attempts','Workflow\x20attempt\x20management','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','parent','Output\x20folder\x20(default:\x20{project_name}.llm)','--debug','Show\x20the\x20most\x20recent\x20chat','filter','describe\x20[table]','argument','optionTerm','colorFn','--job-type\x20<type>','template','set','Job\x20management\x20commands','tdx','New\x20template\x20name','Remove\x20a\x20profile','restore\x20<folder>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','commands','users','addHelpText','[DEPRECATED]\x20Segment\x20folder\x20management','--database\x20<db>','auth','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','0.7','run\x20[name]','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','backup\x20<name>',',\x20version\x20','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Pull\x20child\x20segments\x20to\x20YAML\x20files','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--clear','Database\x20management\x20commands','Maximum\x20tool\x20iterations\x20(default:\x204)','--add-behaviors-file\x20<file>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','GET','Run\x20tests\x20for\x20an\x20LLM\x20agent','slice','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','Workspace\x20name','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--llm-project\x20<name>','requiredOption','replace','--in\x20<database>','Submit\x20a\x20job','Show\x20workspace\x20details','download\x20<project-name>\x20[output-dir]','remove\x20<name>','-w,\x20--web','--yes','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','session','--site\x20<site>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Include\x20execution\x20statistics','--status\x20<status>','Follow/watch\x20timeline\x20for\x20running\x20attempts','port','--in\x20<name>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Pause\x20a\x20running\x20journey','Read\x20query\x20from\x20file','--behaviors-file\x20<file>','Options:','--starter-message\x20<text>','Add\x20attributes\x20from\x20JSON\x20file','\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\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\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','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','use\x20[project]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Create\x20segment\x20folder','Open\x20segment\x20in\x20web\x20browser','show\x20<agent-name>','information_schema','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Starter\x20message','-n,\x20--name\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-r,\x20--recursive','\x20-\x20built\x20','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Preview\x20changes\x20without\x20pushing','includes','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--color','Run\x20specific\x20tests\x20(comma-separated)','update\x20<agent-name>','--json-columns\x20<cols>','unset\x20<resource>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','directory','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','timeline\x20[project.workflow]','view\x20<name-or-path>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','journeys\x20[pattern]','--enriched','--format\x20<format>','DEBUG','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Trino\x20catalog\x20(default:\x20td)','--add-attributes-file\x20<file>','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Delete\x20an\x20LLM\x20project','Data\x20connection\x20management\x20(for\x20activations/exports)','--schedule-option\x20<value>','--param\x20<key=value>','validate\x20[target]','preview\x20[name]','--folder\x20<name>','show\x20[segment_name]','--parent-folder\x20<name>','workspace','List\x20available\x20LLM\x20models','-v,\x20--verbose','Show\x20timeline\x20for\x20specific\x20attempt','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','show\x20<name-or-id>','preAction','LLM\x20agent\x20management','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Attributes\x20as\x20JSON\x20string','optionDescription','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','journey','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','HTML\x20template\x20content','--customer-group\x20<json>','Create\x20a\x20new\x20profile','--rule-file\x20<file>','--interval\x20<range>','clone\x20[source-dir]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Campaign\x20type\x20(email\x20or\x20push)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pause\x20<name-or-path>','--from-task\x20<task>','--include-stats','--output\x20<file>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--dry-run','parents\x20[pattern]','aliases','info\x20[segment_name]','alias','Behaviors\x20from\x20JSON\x20file','New\x20campaign\x20name','agents\x20[pattern]','models','Skip\x20confirmation\x20prompt','Workflow\x20(Digdag)\x20management\x20commands','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','folders\x20<parent_name>','list\x20[project]','CDP\x20Journey\x20Orchestration\x20commands','subcommandDescription','Database\x20to\x20query\x20(default:\x20information_schema)','run','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','projects\x20[pattern]','repeat','kill','attempt','noColor','-C,\x20--directory\x20<path>','Parent\x20segment\x20management','--include-subtasks','--from\x20<timestamp>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Output\x20as\x20JSON\x20Lines','hidden','isArray','desc','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Resume\x20from\x20specific\x20task\x20(retry)','site','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Editor\x20type','after','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--subject\x20<subject>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Plaintext\x20template\x20content','Interactive\x20chat\x20selector','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--catalog\x20<catalog>','resume\x20<name-or-id>','New\x20workspace\x20name','show\x20[table]','Push\x20without\x20confirmation','chats','connections','1338204LEZPyd','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','CDP\x20segment\x20management\x20commands','Project\x20description','End\x20time\x20filter\x20(ISO\x208601\x20format)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','sql\x20[name]','create','Updated\x20timezone','sessions\x20[project]','isTTY','--version','chat\x20[message...]','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20only\x20master\x20table\x20validation','Override\x20project\x20name','--limit\x20<rows>','-1d','Email\x20template\x20management','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','--description\x20<desc>','use\x20[resource]\x20[value]','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--no-count-population','List\x20all\x20data\x20connections','--schedule-type\x20<type>','delete\x20<name>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','[options]\x20--\x20[claude-code-args...]','workflow','run\x20[workflow]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','activations\x20<segment_name>','--start-at\x20<datetime>','parent_segment','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','attempt:','Output\x20file\x20path','query\x20[sql]','preview\x20[file]','List\x20all\x20users\x20in\x20the\x20account','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','outputHelp','--data\x20<data>','push\x20[source-dir]','--resume-from\x20<task>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--json','3331506YDKLGi','Set\x20or\x20show\x20parent\x20segment\x20context','Workspace\x20description','Agent\x20name','Resume\x20from\x20specific\x20task','--max-depth\x20<depth>','--kind\x20<type>','command','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','sonnet','220TQCdIC','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','commandDescription','-f,\x20--file\x20<path>','--limit\x20<number>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','job','agent','describe','--email-sender-id\x20<id>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','set\x20<key=value>','map','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','AI-native\x20CLI\x20for\x20Treasure\x20Data','pause\x20<name-or-id>','Create\x20a\x20new\x20campaign','--type\x20<type>','Show\x20job\x20details','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','List\x20all\x20available\x20profiles','pull\x20[name]','exit','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--parent-segment\x20<name>','set\x20<args...>','Workspace\x20name\x20(required)','Agent\x20description','--last','us01','gitRevision','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','workflows\x20[project]','update\x20<segment_name>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','view\x20[segment_name]','Open\x20journey\x20in\x20web\x20browser','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Duplicate\x20a\x20campaign','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--attributes-file\x20<file>','Email\x20subject\x20template','\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','INVALID_ARGUMENT','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','claude-4.5-sonnet','push\x20[parent_or_file]','--skip-validation','databases\x20[pattern]','--type\x20<api_type>','--session-id\x20<id>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','push\x20[name]','use\x20[name]','Show\x20segment\x20schema\x20(column\x20types)','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','System\x20prompt/instructions\x20(default:\x20empty)','Skip\x20confirmation\x20prompts','error','trino','-o,\x20--output\x20<file>','catch','List\x20available\x20connector\x20types','Start\x20a\x20new\x20chat\x20session','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Enable\x20verbose\x20logging','Get\x20job\x20results','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Authentication\x20management','delete\x20<agent-name>','update\x20<name-or-id>','Delete\x20an\x20agent','--timeout\x20<seconds>','-f,\x20--force','--name\x20<text>','secrets','Name\x20for\x20the\x20new\x20project\x20(required)','--table\x20<table>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--delete','List\x20agents\x20in\x20current\x20project','--to\x20<timestamp>','proxy','--follow','Create\x20a\x20workspace','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[path]','upload\x20[project-name-or-dir]','--add-attributes\x20<json>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Database\x20to\x20use\x20(overrides\x20context)','list\x20[pattern]','commandUsage','Clear\x20session\x20context','option','Create\x20an\x20email\x20template','--name\x20<new-name>','campaigns\x20[pattern]','length','--new','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','16cIJvJC','Campaign\x20name','push\x20[file]','types','16292uHVRnB','list','templates\x20[pattern]','segments\x20[path]','Email\x20sender\x20ID\x20for\x20delivery','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','argv','Customer\x20group\x20as\x20JSON\x20string','Master\x20database\x20name','--stage\x20<name>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Delete\x20a\x20campaign','--force','Segment\x20description','buildTime','chdir','Resume\x20a\x20paused\x20campaign','49509QXJMuY','Save\x20output\x20to\x20file','1722679EZKIBT','clone\x20[source]','delete\x20<args...>','Add\x20behaviors\x20as\x20JSON\x20string','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Pull\x20specific\x20revision\x20(default:\x20latest)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Workspace\x20management','--workspace\x20<name>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','argumentDescription','Continue\x20most\x20recent\x20conversation','forEach','engage','tdx\x20','settings\x20<type>','TRACE','Agent\x20prompt/instructions','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--system-prompt\x20<text>','fields\x20[name]','Kill\x20a\x20job','parent-segment','Workflow\x20session\x20management','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','view\x20[name]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--model\x20<name>','Read\x20request\x20body\x20from\x20file','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','-d,\x20--database\x20<database>','Folder\x20description','[action]','Campaign\x20description','status','List\x20jobs','Manage\x20workflow\x20project\x20secrets','Show\x20email\x20template\x20details','update\x20<name>','options','Resume\x20a\x20conversation\x20(shows\x20selector)','Database\x20name\x20(default:\x20information_schema)','retry'];a2_0xb2fd=function(){return _0x3f361b;};return a2_0xb2fd();}import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3df4f4(0x2a4)][a2_0x3df4f4(0x180)](a2_0x3df4f4(0x202))){let versionOutput=a2_0x3df4f4(0x2bf)+currentVersion;buildInfo[a2_0x3df4f4(0x252)]&&!currentVersion[a2_0x3df4f4(0x180)](buildInfo[a2_0x3df4f4(0x252)])&&(versionOutput+='\x20('+buildInfo[a2_0x3df4f4(0x252)]+')'),buildInfo[a2_0x3df4f4(0x2ac)]&&(versionOutput+=a2_0x3df4f4(0x17d)+buildInfo[a2_0x3df4f4(0x2ac)]),console[a2_0x3df4f4(0x379)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3df4f4(0x241);buildInfo[a2_0x3df4f4(0x252)]&&!currentVersion['includes'](buildInfo[a2_0x3df4f4(0x252)])?description+=a2_0x3df4f4(0x3b0)+currentVersion+'\x20('+buildInfo[a2_0x3df4f4(0x252)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x3df4f4(0x39f))[a2_0x3df4f4(0x357)](description),program['option'](a2_0x3df4f4(0x1d7),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x3df4f4(0x309),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3cb),a2_0x3df4f4(0x2e3),a2_0x3df4f4(0x251))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x190),a2_0x3df4f4(0x20a))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x353),a2_0x3df4f4(0x230))[a2_0x3df4f4(0x293)]('--json',a2_0x3df4f4(0x1c9))['option']('--jsonl',a2_0x3df4f4(0x283))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x30d),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1bc),a2_0x3df4f4(0x2b0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x237),a2_0x3df4f4(0x204))['option'](a2_0x3df4f4(0x182),a2_0x3df4f4(0x1ea),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x389),a2_0x3df4f4(0x1ca),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1a2),a2_0x3df4f4(0x275),![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x394),a2_0x3df4f4(0x1bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fa),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x27d),a2_0x3df4f4(0x374),'30')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),'Preview\x20operation\x20without\x20executing',![])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x26d),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x3df4f4(0x293)]('-d,\x20--database\x20<name>',a2_0x3df4f4(0x28f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3d1),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x24c),a2_0x3df4f4(0x3ae))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3bf),a2_0x3df4f4(0x21b)),program[a2_0x3df4f4(0x355)]({'formatHelp':(_0x3aac79,_0x1339db)=>{const _0x38824a=a2_0x3df4f4,_0x161154=_0x1339db[_0x38824a(0x363)](_0x3aac79,_0x1339db),_0x426cfe=0x2,_0x317dc8=0x2;function _0x45cca2(_0x577d5a){const _0xfc18fe=_0x38824a,_0x24ee78=_0x577d5a;return!!(_0x24ee78[_0xfc18fe(0x384)]||_0x24ee78[_0xfc18fe(0x1dd)]);}function _0x53b1b6(_0x272d72,_0x36887a){if(_0x36887a){const _0x5f42d0=''+_0x272d72['padEnd'](_0x161154+_0x317dc8)+_0x36887a;return _0x5f42d0;}return _0x272d72;}function _0x500a30(_0x2dba8d){const _0x4c0011=_0x38824a;return _0x2dba8d[_0x4c0011(0x348)]('\x0a')[_0x4c0011(0x3c1)](/^/gm,'\x20'[_0x4c0011(0x1d3)](_0x426cfe));}const _0x116f35=[];_0x116f35[_0x38824a(0x36f)]('Usage:\x20'+_0x1339db[_0x38824a(0x291)](_0x3aac79));const _0x39916e=_0x1339db[_0x38824a(0x235)](_0x3aac79);_0x39916e&&(_0x116f35[_0x38824a(0x36f)](''),_0x116f35['push'](_0x39916e));const _0x5f51d7=_0x3aac79[_0x38824a(0x3a4)]['filter'](_0x3cd63c=>!_0x45cca2(_0x3cd63c));if(_0x5f51d7[_0x38824a(0x297)]>0x0){if(_0x3aac79[_0x38824a(0x371)]()==='tdx'){const _0xcb6d3a=_0x3aac79[_0x38824a(0x323)](),_0x225a30=!_0xcb6d3a[_0x38824a(0x1d6)]&&process[_0x38824a(0x382)]['isTTY'],_0x484c4b=COMMAND_CATEGORIES,_0x3f3a4b=(_0xf078d1,_0x3e181f)=>_0x225a30?_0x3e181f(_0xf078d1):_0xf078d1,_0x5bec26=new Map();_0x5f51d7[_0x38824a(0x2bd)](_0x360acb=>{const _0x52556f=_0x38824a;_0x5bec26[_0x52556f(0x39d)](_0x360acb[_0x52556f(0x371)](),_0x360acb);}),_0x484c4b[_0x38824a(0x2bd)](_0x2e5e25=>{const _0x3806f1=_0x38824a,_0xdc072d=_0x2e5e25[_0x3806f1(0x3a4)][_0x3806f1(0x37b)](_0x947171=>_0x5bec26[_0x3806f1(0x338)](_0x947171)??[]);if(_0xdc072d[_0x3806f1(0x297)]>0x0){_0x116f35[_0x3806f1(0x36f)](''),_0x116f35['push'](_0x3f3a4b(_0x2e5e25['name']+':',_0x2e5e25[_0x3806f1(0x39a)]));const _0x314b6d=_0xdc072d[_0x3806f1(0x23f)](_0x4967dd=>{const _0x622d14=_0x3806f1,_0x167113=_0x1339db['subcommandTerm'](_0x4967dd),_0x4ce600=_0x1339db[_0x622d14(0x1ce)](_0x4967dd);return _0x53b1b6(_0x167113,_0x4ce600);});_0x116f35[_0x3806f1(0x36f)](_0x500a30(_0x314b6d));}}),_0x116f35[_0x38824a(0x36f)](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x1ac));}else{const _0x48e9cc=_0x5f51d7[_0x38824a(0x23f)](_0x2231c6=>{const _0x5c9b21=_0x38824a,_0x2916a3=_0x1339db['subcommandTerm'](_0x2231c6),_0x4a5d8c=_0x1339db[_0x5c9b21(0x1ce)](_0x2231c6);return _0x53b1b6(_0x2916a3,_0x4a5d8c);});_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x385)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x48e9cc));}}if(showBriefHelp&&_0x3aac79[_0x38824a(0x371)]()===_0x38824a(0x39f))_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x330));else{const _0x20d198=_0x3aac79[_0x38824a(0x2da)][_0x38824a(0x396)](_0x2f6648=>!_0x45cca2(_0x2f6648));if(_0x20d198['length']>0x0){const _0x555d32=_0x20d198['map'](_0x211784=>{const _0x1c436b=_0x38824a,_0x6c51cf=_0x1339db[_0x1c436b(0x399)](_0x211784),_0x2c5772=_0x1339db[_0x1c436b(0x1aa)](_0x211784);return _0x53b1b6(_0x6c51cf,_0x2c5772);});_0x116f35['push'](''),_0x116f35[_0x38824a(0x36f)](_0x38824a(0x16c)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x555d32));}}const _0x1c820f=(_0x3aac79[_0x38824a(0x321)]||[])['filter'](_0xa6fc05=>!_0x45cca2(_0xa6fc05));if(_0x1c820f[_0x38824a(0x297)]>0x0){const _0x52aef0=_0x1c820f[_0x38824a(0x23f)](_0x4aa123=>{const _0x2e5838=_0x38824a,_0x41b6bc=_0x1339db[_0x2e5838(0x32f)](_0x4aa123),_0x38eaab=_0x1339db[_0x2e5838(0x2bb)](_0x4aa123);return _0x53b1b6(_0x41b6bc,_0x38eaab);});_0x116f35[_0x38824a(0x36f)](''),_0x116f35['push'](_0x38824a(0x2e8)),_0x116f35[_0x38824a(0x36f)](_0x500a30(_0x52aef0));}return _0x116f35[_0x38824a(0x348)]('\x0a')+'\x0a';},'subcommandTerm':_0x56acaf=>{const _0x4bf888=a2_0x3df4f4,_0x10e6d7=(_0x56acaf[_0x4bf888(0x321)]||[])[_0x4bf888(0x23f)](_0x3c60b7=>_0x3c60b7[_0x4bf888(0x2e7)]?'<'+_0x3c60b7['name']()+'>':'['+_0x3c60b7[_0x4bf888(0x371)]()+']')[_0x4bf888(0x348)]('\x20'),_0x237e62=_0x56acaf[_0x4bf888(0x1c0)](),_0x505262=_0x237e62[_0x4bf888(0x297)]>0x0?_0x56acaf[_0x4bf888(0x371)]()+',\x20'+_0x237e62[_0x4bf888(0x348)](',\x20'):_0x56acaf[_0x4bf888(0x371)]();return _0x10e6d7?_0x505262+'\x20'+_0x10e6d7:_0x505262;}}),program[a2_0x3df4f4(0x368)](a2_0x3df4f4(0x1a6),_0x4d0131=>{const _0x542965=a2_0x3df4f4,_0x169cca=_0x4d0131[_0x542965(0x323)]();if(_0x169cca[_0x542965(0x188)]){const _0x16bff9=resolve(_0x169cca['directory']),_0x55e6ee=_0x16bff9!==_0x169cca['directory']?'\x20(resolved\x20to\x20'+_0x16bff9+')':'';if(!existsSync(_0x16bff9))throw new SDKError(ErrorCode[_0x542965(0x25f)],'Directory\x20does\x20not\x20exist:\x20'+_0x169cca['directory']+_0x55e6ee,undefined,{'helpText':_0x542965(0x38f)});const _0x20e3c3=statSync(_0x16bff9);if(!_0x20e3c3['isDirectory']())throw new SDKError(ErrorCode[_0x542965(0x25f)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x169cca[_0x542965(0x188)]+_0x55e6ee,undefined,{'helpText':_0x542965(0x329)});process[_0x542965(0x2ad)](_0x16bff9);}if(!_0x169cca[_0x542965(0x2eb)]){if(_0x169cca[_0x542965(0x364)])_0x169cca['format']=_0x542965(0x364);else{if(_0x169cca['json'])_0x169cca[_0x542965(0x2eb)]='json';else{if(_0x169cca[_0x542965(0x37e)])_0x169cca['format']=_0x542965(0x37e);else _0x169cca[_0x542965(0x303)]&&(_0x169cca['format']=_0x542965(0x303));}}}_0x169cca['in']&&!_0x169cca['database']&&(_0x169cca[_0x542965(0x2e5)]=_0x169cca['in']);if(_0x169cca['trace'])_0x169cca[_0x542965(0x2fc)]=LogLevel[_0x542965(0x2c1)];else{if(_0x169cca['debug'])_0x169cca[_0x542965(0x2fc)]=LogLevel[_0x542965(0x191)];else _0x169cca[_0x542965(0x2fc)]===undefined&&(_0x169cca['logLevel']=LogLevel['INFO']);}});async function createTDXInstance(_0x1ba9a4){const _0x1921e5=a2_0x3df4f4,_0x44491e=await GlobalContext[_0x1921e5(0x35a)](_0x1ba9a4);return _0x44491e[_0x1921e5(0x327)](_0x1ba9a4),TDX['create']({'site':_0x44491e[_0x1921e5(0x1e2)],'apiKey':_0x44491e['apiKey'],'logLevel':_0x44491e[_0x1921e5(0x2fc)],'profile':_0x44491e[_0x1921e5(0x343)]});}const databaseCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2e5))['alias']('db')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3b5)),databaseListAction=async(_0x5d1395,_0x2f462f)=>{const _0x578f94=a2_0x3df4f4,_0x490da8=new DatabasesCommand(),_0x347bce=program[_0x578f94(0x323)](),_0xc605e8=await createTDXInstance(_0x347bce),_0x37c983=await _0x490da8[_0x578f94(0x1d0)]({'options':{..._0x347bce,..._0x2f462f},'args':_0x5d1395?[_0x5d1395]:[],'tdx':_0xc605e8});process[_0x578f94(0x249)](_0x37c983);};databaseCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x192))[a2_0x3df4f4(0x2f2)](databaseListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x264),{'hidden':!![]})['description'](a2_0x3df4f4(0x32a))[a2_0x3df4f4(0x2f2)](databaseListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x203))[a2_0x3df4f4(0x357)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x3df4f4(0x293)]('--agent\x20<ref>',a2_0x3df4f4(0x1ab))['option'](a2_0x3df4f4(0x298),a2_0x3df4f4(0x273))[a2_0x3df4f4(0x2f2)](async(_0x5f2b6b,_0x40c07a)=>{const _0xb7fdee=a2_0x3df4f4,_0x55fa4e=new ChatCommand(),_0x34ae84=program[_0xb7fdee(0x323)](),_0x99cee=await createTDXInstance(_0x34ae84),_0x411ba8=await _0x55fa4e[_0xb7fdee(0x1d0)]({'options':{..._0x34ae84,..._0x40c07a},'args':_0x5f2b6b,'tdx':_0x99cee});process[_0xb7fdee(0x249)](_0x411ba8);});const apiCmd=program[a2_0x3df4f4(0x22f)]('api\x20[endpoint]')['summary'](a2_0x3df4f4(0x341))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x302))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x383),a2_0x3df4f4(0x390),a2_0x3df4f4(0x3b9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x223),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x3df4f4(0x236),a2_0x3df4f4(0x2cf))[a2_0x3df4f4(0x293)]('-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x343817,_0x35a4e2)=>{return _0x35a4e2?[..._0x35a4e2,_0x343817]:[_0x343817];})[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x265),a2_0x3df4f4(0x233),'td')[a2_0x3df4f4(0x2f2)](async(_0x2e58e4,_0x54921f)=>{const _0x34da2a=a2_0x3df4f4;if(!_0x2e58e4){apiCmd[_0x34da2a(0x31b)]();return;}const _0x35c85a=new ApiCommand(),_0x15bd97=program['opts'](),_0x389f29=await createTDXInstance(_0x15bd97),_0x40d160=await _0x35c85a['run']({'options':{..._0x15bd97,..._0x54921f},'args':[_0x2e58e4],'tdx':_0x389f29});process[_0x34da2a(0x249)](_0x40d160);});program[a2_0x3df4f4(0x22f)]('mcp')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x274))['addHelpText'](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x32e))[a2_0x3df4f4(0x2f2)](async _0x117d5e=>{const _0x5bab5a=a2_0x3df4f4,_0x3cb8cd=new MCPCommand(),_0xfb388b=program[_0x5bab5a(0x323)](),_0xd5ba63=await createTDXInstance(_0xfb388b),_0x67eb94=await _0x3cb8cd['run']({'options':{..._0xfb388b,..._0x117d5e},'args':[],'tdx':_0xd5ba63});process[_0x5bab5a(0x249)](_0x67eb94);});const tableCmd=program['command']('table')['description'](a2_0x3df4f4(0x35d)),tableListAction=async(_0x12e4a1,_0xf9123d)=>{const _0x2f9911=a2_0x3df4f4,_0x7e00b9=new TablesCommand(),_0x18bd3e=program['opts'](),_0xc63b93=await createTDXInstance(_0x18bd3e);_0xf9123d['in']&&(_0xf9123d['database']=_0xf9123d['in']);const _0x5f182e=await _0x7e00b9['run']({'options':{..._0x18bd3e,..._0xf9123d},'args':_0x12e4a1?[_0x12e4a1]:[],'tdx':_0xc63b93});process[_0x2f9911(0x249)](_0x5f182e);};tableCmd['command']('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x310))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x2f2)](tableListAction),program[a2_0x3df4f4(0x22f)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x221))['option'](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x310))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3df4f4(0x2f2)](tableListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1f3))['description'](a2_0x3df4f4(0x1b7))[a2_0x3df4f4(0x293)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x2f2)](async(_0x400203,_0x2adcb1)=>{const _0xc2d22c=a2_0x3df4f4,_0x2be6ef=new ShowCommand(),_0x1364db=program[_0xc2d22c(0x323)](),_0x3b1f94=await createTDXInstance(_0x1364db);_0x2adcb1['in']&&(_0x2adcb1[_0xc2d22c(0x2e5)]=_0x2adcb1['in']);const _0x5dc46f=await _0x2be6ef['run']({'options':{..._0x1364db,..._0x2adcb1},'args':_0x400203?[_0x400203]:[],'tdx':_0x3b1f94});process[_0xc2d22c(0x249)](_0x5dc46f);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x397))[a2_0x3df4f4(0x1c2)](a2_0x3df4f4(0x1df))[a2_0x3df4f4(0x357)]('Describe\x20table\x20schema')['option'](a2_0x3df4f4(0x2d1),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))['action'](async(_0x182c45,_0x2a743f)=>{const _0x2ee8cf=a2_0x3df4f4,_0x30a354=new DescribeCommand(),_0x47d84d=program['opts'](),_0xd93b1f=await createTDXInstance(_0x47d84d);_0x2a743f['in']&&(_0x2a743f['database']=_0x2a743f['in']);const _0x5339a6=await _0x30a354['run']({'options':{..._0x47d84d,..._0x2a743f},'args':_0x182c45?[_0x182c45]:[],'tdx':_0xd93b1f});process[_0x2ee8cf(0x249)](_0x5339a6);}),program['command'](a2_0x3df4f4(0x21e))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2d1),a2_0x3df4f4(0x1cf))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c2),a2_0x3df4f4(0x1ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1f0),a2_0x3df4f4(0x194))['option'](a2_0x3df4f4(0x236),a2_0x3df4f4(0x375))['option'](a2_0x3df4f4(0x207),a2_0x3df4f4(0x25b),'40')[a2_0x3df4f4(0x2f2)](async(_0x56c96d,_0x39b700)=>{const _0x2df4f3=a2_0x3df4f4,_0xef4b2a=new QueryCommand(),_0x507a6e=program['opts'](),_0x426a2b=await createTDXInstance(_0x507a6e);_0x39b700['in']&&(_0x39b700['database']=_0x39b700['in']);const _0x4baa4c=await _0xef4b2a['run']({'options':{..._0x507a6e,..._0x39b700},'args':_0x56c96d?[_0x56c96d]:[],'tdx':_0x426a2b});process[_0x2df4f3(0x249)](_0x4baa4c);});const segmentCmd=program[a2_0x3df4f4(0x22f)]('segment')[a2_0x3df4f4(0x1c2)]('sg')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1f9)),segmentListAction=async(_0x35323a,_0x22dd37)=>{const _0x19e480=a2_0x3df4f4,_0x275199=new SegmentsCommand(),_0x4e401f=program[_0x19e480(0x323)](),_0x4440d5=await createTDXInstance(_0x4e401f),_0x58bfda=await _0x275199[_0x19e480(0x1d0)]({'options':{..._0x4e401f,..._0x22dd37},'args':_0x35323a?[_0x35323a]:[],'tdx':_0x4440d5});process[_0x19e480(0x249)](_0x58bfda);};segmentCmd[a2_0x3df4f4(0x22f)]('list\x20[path]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x28e))[a2_0x3df4f4(0x293)]('-r,\x20--recursive',a2_0x3df4f4(0x1f8))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22d),a2_0x3df4f4(0x2c3),'10')[a2_0x3df4f4(0x2f2)](segmentListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2a1),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x226))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x17c),a2_0x3df4f4(0x1f8))['option'](a2_0x3df4f4(0x22d),a2_0x3df4f4(0x2c3),'10')[a2_0x3df4f4(0x2f2)](segmentListAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x307),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x5ebbe9,_0x300cde)=>{const _0x3437f3=a2_0x3df4f4,_0x2419a1=new SegmentUseCommand(),_0x498dde=program[_0x3437f3(0x323)](),_0x4adce1=await createTDXInstance(_0x498dde),_0x5bb66a=await _0x2419a1[_0x3437f3(0x1d0)]({'options':{..._0x498dde,..._0x300cde},'args':[_0x5ebbe9],'tdx':_0x4adce1});process['exit'](_0x5bb66a);});const segmentViewAction=async(_0x4b6b55,_0x26cfaf)=>{const _0x4a403c=a2_0x3df4f4,_0x4b3cef=new SegmentViewCommand(),_0x2184c5=program[_0x4a403c(0x323)](),_0x4f6113=await createTDXInstance(_0x2184c5),_0xc577a=await _0x4b3cef['run']({'options':{..._0x2184c5,..._0x26cfaf},'args':_0x4b6b55?[_0x4b6b55]:[],'tdx':_0x4f6113});process[_0x4a403c(0x249)](_0xc577a);};segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x257))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2c4))['option'](a2_0x3df4f4(0x3c7),'Open\x20segment\x20in\x20web\x20browser')[a2_0x3df4f4(0x2f2)](segmentViewAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1c1),{'hidden':!![]})[a2_0x3df4f4(0x1c2)](a2_0x3df4f4(0x23b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),a2_0x3df4f4(0x174))[a2_0x3df4f4(0x357)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x3df4f4(0x2f2)](segmentViewAction),segmentCmd['command'](a2_0x3df4f4(0x337))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x26a))['action'](async(_0x1c1802,_0x4beef1)=>{const _0x4f6d81=a2_0x3df4f4,_0x5acf5d=new SegmentDescCommand(),_0x5d04b2=program[_0x4f6d81(0x323)](),_0x138990=await createTDXInstance(_0x5d04b2),_0xeacbb4=await _0x5acf5d[_0x4f6d81(0x1d0)]({'options':{..._0x5d04b2,..._0x4beef1},'args':_0x1c1802?[_0x1c1802]:[],'tdx':_0x138990});process[_0x4f6d81(0x249)](_0xeacbb4);}),segmentCmd['command'](a2_0x3df4f4(0x19e))['description'](a2_0x3df4f4(0x33e))['action'](async(_0x24bfb4,_0x2d456d)=>{const _0x337cb8=a2_0x3df4f4,_0x20e679=new SegmentShowCommand(),_0xba135e=program[_0x337cb8(0x323)](),_0x377ff8=await createTDXInstance(_0xba135e),_0x4788c8=await _0x20e679[_0x337cb8(0x1d0)]({'options':{..._0xba135e,..._0x2d456d},'args':_0x24bfb4?[_0x24bfb4]:[],'tdx':_0x377ff8});process[_0x337cb8(0x249)](_0x4788c8);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cb),{'hidden':!![]})[a2_0x3df4f4(0x357)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x3df4f4(0x2f2)](async(_0x14dd22,_0x4446d1)=>{const _0x3419d1=a2_0x3df4f4,_0x14985c=new SegmentFolderListCommand(),_0x2ef18d=program[_0x3419d1(0x323)](),_0x47e432=await createTDXInstance(_0x2ef18d),_0x15282d=await _0x14985c[_0x3419d1(0x1d0)]({'options':{..._0x2ef18d,..._0x4446d1},'args':[_0x14dd22],'tdx':_0x47e432});process[_0x3419d1(0x249)](_0x15282d);});const folderCmd=segmentCmd[a2_0x3df4f4(0x22f)]('folder',{'hidden':!![]})['description'](a2_0x3df4f4(0x3a7));folderCmd['command']('show\x20<folder_ref>')[a2_0x3df4f4(0x357)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')['action'](async(_0x2faa2a,_0x2afca4)=>{const _0x24c677=a2_0x3df4f4,_0x3600d9=new SegmentFolderShowCommand(),_0x4c217d=program['opts'](),_0x430f2d=await createTDXInstance(_0x4c217d),_0x4a47b4=await _0x3600d9[_0x24c677(0x1d0)]({'options':{..._0x4c217d,..._0x2afca4},'args':[_0x2faa2a],'tdx':_0x430f2d});process[_0x24c677(0x249)](_0x4a47b4);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3d2))[a2_0x3df4f4(0x2f2)](async(_0x63ed2,_0x2c57be)=>{const _0x47fc2e=a2_0x3df4f4,_0x4e818f=new SegmentSQLCommand(),_0x53373b=program[_0x47fc2e(0x323)](),_0x441427=await createTDXInstance(_0x53373b),_0x48c15b=await _0x4e818f[_0x47fc2e(0x1d0)]({'options':{..._0x53373b,..._0x2c57be},'args':_0x63ed2?[_0x63ed2]:[],'tdx':_0x441427});process[_0x47fc2e(0x249)](_0x48c15b);}),segmentCmd[a2_0x3df4f4(0x22f)]('fields\x20[parent_name]')['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x3df4f4(0x2f2)](async(_0xa088ce,_0xbfa40b)=>{const _0x13b51c=a2_0x3df4f4,_0x2da8ba=new SegmentFieldsCommand(),_0x1976e4=program[_0x13b51c(0x323)](),_0xdd450c=await createTDXInstance(_0x1976e4),_0x26f59d=await _0x2da8ba[_0x13b51c(0x1d0)]({'options':{..._0x1976e4,..._0xbfa40b},'args':_0xa088ce?[_0xa088ce]:[],'tdx':_0xdd450c});process[_0x13b51c(0x249)](_0x26f59d);}),segmentCmd['command'](a2_0x3df4f4(0x359))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3b2))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x259))['action'](async(_0x1301b7,_0x18018e)=>{const _0x4262b5=a2_0x3df4f4,_0x23f4d8=new SegmentPullCommand(),_0x490c3b=program['opts'](),_0x15be00=await createTDXInstance(_0x490c3b),_0x2f5e85=await _0x23f4d8[_0x4262b5(0x1d0)]({'options':{..._0x490c3b,..._0x18018e},'args':_0x1301b7?[_0x1301b7]:[],'tdx':_0x15be00});process[_0x4262b5(0x249)](_0x2f5e85);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x262))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x34f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x26d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x259))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x284),a2_0x3df4f4(0x172))[a2_0x3df4f4(0x2f2)](async(_0x3905e8,_0x20c0ed)=>{const _0x1b7989=a2_0x3df4f4,_0x5eafca=new SegmentPushCommand(),_0x519270=program[_0x1b7989(0x323)](),_0x4800ad=await createTDXInstance(_0x519270),_0x34a78f=await _0x5eafca[_0x1b7989(0x1d0)]({'options':{..._0x519270,..._0x20c0ed},'args':_0x3905e8?[_0x3905e8]:[],'tdx':_0x4800ad});process[_0x1b7989(0x249)](_0x34a78f);}),segmentCmd['command'](a2_0x3df4f4(0x19b))['description'](a2_0x3df4f4(0x234))[a2_0x3df4f4(0x2f2)](async(_0x1c4b0a,_0x1e8ed4)=>{const _0x326fd4=a2_0x3df4f4,_0x4d4a4c=new SegmentValidateCommand(),_0x16e080=program[_0x326fd4(0x323)](),_0x5a9dc3=await createTDXInstance(_0x16e080),_0x3ff330=await _0x4d4a4c[_0x326fd4(0x1d0)]({'options':{..._0x16e080,..._0x1e8ed4},'args':_0x1c4b0a?[_0x1c4b0a]:[],'tdx':_0x5a9dc3});process[_0x326fd4(0x249)](_0x3ff330);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x300),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x349))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x2ab))['option'](a2_0x3df4f4(0x2ff),a2_0x3df4f4(0x35b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b2),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19d),a2_0x3df4f4(0x367))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22e),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3df4f4(0x293)]('--invisible',a2_0x3df4f4(0x358))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20e),a2_0x3df4f4(0x37f))[a2_0x3df4f4(0x2f2)](async(_0x335611,_0x4caf20)=>{const _0x192775=a2_0x3df4f4,_0x3fb19f=new SegmentCreateCommand(),_0x45cabe=program[_0x192775(0x323)](),_0x5cf782=await createTDXInstance(_0x45cabe),_0x5b3cf4=await _0x3fb19f[_0x192775(0x1d0)]({'options':{..._0x45cabe,..._0x4caf20},'args':[_0x335611],'tdx':_0x5cf782});process['exit'](_0x5b3cf4);}),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x255),{'hidden':!![]})['description'](a2_0x3df4f4(0x3b8))[a2_0x3df4f4(0x293)]('--name\x20<new_name>',a2_0x3df4f4(0x30c))[a2_0x3df4f4(0x293)]('--description\x20<text>','Updated\x20description')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ff),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b2),a2_0x3df4f4(0x34c))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19d),'Move\x20to\x20folder')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x22e),a2_0x3df4f4(0x18d))[a2_0x3df4f4(0x2f2)](async(_0xc051eb,_0x5db23c)=>{const _0x1d0bec=a2_0x3df4f4,_0x3b8b25=new SegmentUpdateCommand(),_0x3389d1=program[_0x1d0bec(0x323)](),_0x501300=await createTDXInstance(_0x3389d1),_0x5c8fcf=await _0x3b8b25['run']({'options':{..._0x3389d1,..._0x5db23c},'args':[_0xc051eb],'tdx':_0x501300});process['exit'](_0x5c8fcf);});const parentCmd=segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x392),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3be)),parentListAction=async(_0x15560c,_0x2229ae)=>{const _0x39217b=a2_0x3df4f4,_0x49c566=new ParentSegmentListCommand(),_0x413337=program[_0x39217b(0x323)](),_0x46a31f=await createTDXInstance(_0x413337),_0x1a145a=await _0x49c566[_0x39217b(0x1d0)]({'options':{..._0x413337,..._0x2229ae},'args':_0x15560c?[_0x15560c]:[],'tdx':_0x46a31f});process[_0x39217b(0x249)](_0x1a145a);};parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))['description'](a2_0x3df4f4(0x339))[a2_0x3df4f4(0x2f2)](parentListAction),segmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1bf),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x187))[a2_0x3df4f4(0x2f2)](parentListAction),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x248))[a2_0x3df4f4(0x357)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x270),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x20adba,_0x5b4e7b)=>{const _0x2570e3=a2_0x3df4f4,_0x4137da=new ParentSegmentPullCommand(),_0x565dd2=program[_0x2570e3(0x323)](),_0x37d79c=await createTDXInstance(_0x565dd2),_0x3bef81=await _0x4137da['run']({'options':{..._0x565dd2,..._0x5b4e7b},'args':_0x20adba?[_0x20adba]:[],'tdx':_0x37d79c});process[_0x2570e3(0x249)](_0x3bef81);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29c))['description'](a2_0x3df4f4(0x260))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x185c65,_0x1d2b59)=>{const _0x3049aa=a2_0x3df4f4,_0x8f2844=new ParentSegmentPushCommand(),_0x208ab0=program[_0x3049aa(0x323)](),_0x28b3f4=await createTDXInstance(_0x208ab0),_0xb556ad=await _0x8f2844[_0x3049aa(0x1d0)]({'options':{..._0x208ab0,..._0x1d2b59},'args':_0x185c65?[_0x185c65]:[],'tdx':_0x28b3f4});process[_0x3049aa(0x249)](_0xb556ad);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x37c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2fd))['option'](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x205))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x326),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x3df4f4(0x18f),a2_0x3df4f4(0x24a))['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))['action'](async(_0x12963b,_0x9791d)=>{const _0xa7047d=new ParentSegmentValidateCommand(),_0x1bc4ce=program['opts'](),_0x3c5ea0=await createTDXInstance(_0x1bc4ce),_0x5ef29c=await _0xa7047d['run']({'options':{..._0x1bc4ce,..._0x9791d},'args':_0x12963b?[_0x12963b]:[],'tdx':_0x3c5ea0});process['exit'](_0x5ef29c);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x21f))['description'](a2_0x3df4f4(0x391))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x2f0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),a2_0x3df4f4(0x189))[a2_0x3df4f4(0x293)]('--behavior\x20[name]',a2_0x3df4f4(0x2ca))[a2_0x3df4f4(0x293)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))[a2_0x3df4f4(0x2f2)](async(_0x2213db,_0x3c27d6)=>{const _0x593176=a2_0x3df4f4,_0x4181c1=new ParentSegmentPreviewCommand(),_0x5881f2=program[_0x593176(0x323)](),_0x1818c7=await createTDXInstance(_0x5881f2),_0x2848e7=await _0x4181c1[_0x593176(0x1d0)]({'options':{..._0x5881f2,..._0x3c27d6},'args':_0x2213db?[_0x2213db]:[],'tdx':_0x1818c7});process[_0x593176(0x249)](_0x2848e7);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ac))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x387))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),'Skip\x20confirmation\x20prompt')[a2_0x3df4f4(0x2f2)](async(_0x1eb8c7,_0x679484)=>{const _0x2319e5=a2_0x3df4f4,_0xa81a89=new ParentSegmentRunCommand(),_0x21e4ac=program[_0x2319e5(0x323)](),_0x14e522=await createTDXInstance(_0x21e4ac),_0x8c5992=await _0xa81a89[_0x2319e5(0x1d0)]({'options':{..._0x21e4ac,..._0x679484},'args':_0x1eb8c7?[_0x1eb8c7]:[],'tdx':_0x14e522});process[_0x2319e5(0x249)](_0x8c5992);});const parentSegmentCmd=program['command'](a2_0x3df4f4(0x2c8))[a2_0x3df4f4(0x1c2)]('ps')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1d8));parentSegmentCmd['command'](a2_0x3df4f4(0x290))['description'](a2_0x3df4f4(0x339))[a2_0x3df4f4(0x2f2)](parentListAction),parentSegmentCmd[a2_0x3df4f4(0x22f)]('pull\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17a))[a2_0x3df4f4(0x293)]('-o,\x20--output\x20<file>',a2_0x3df4f4(0x21d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x293)]('-u,\x20--use',a2_0x3df4f4(0x3b3))['action'](async(_0x89eccb,_0x11e4ab)=>{const _0x392e5f=a2_0x3df4f4,_0x3c4d0b=new ParentSegmentPullCommand(),_0x40ecb9=program[_0x392e5f(0x323)](),_0x570387=await createTDXInstance(_0x40ecb9),_0x3c0ecd=await _0x3c4d0b['run']({'options':{..._0x40ecb9,..._0x11e4ab},'args':_0x89eccb?[_0x89eccb]:[],'tdx':_0x570387});process[_0x392e5f(0x249)](_0x3c0ecd);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x268))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x28a))['option'](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x3f6cca,_0x4251e6)=>{const _0x60ec49=a2_0x3df4f4,_0x179544=new ParentSegmentPushCommand(),_0x52621e=program['opts'](),_0x470c21=await createTDXInstance(_0x52621e),_0x48f948=await _0x179544[_0x60ec49(0x1d0)]({'options':{..._0x52621e,..._0x4251e6},'args':_0x3f6cca?[_0x3f6cca]:[],'tdx':_0x470c21});process[_0x60ec49(0x249)](_0x48f948);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x36e))[a2_0x3df4f4(0x357)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x3df4f4(0x2f5),a2_0x3df4f4(0x205))['option'](a2_0x3df4f4(0x33a),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3df4f4(0x293)]('--behavior\x20[name]',a2_0x3df4f4(0x1db))[a2_0x3df4f4(0x293)]('--enriched',a2_0x3df4f4(0x24a))['option']('--interval\x20<range>',a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))[a2_0x3df4f4(0x2f2)](async(_0x328116,_0x5b8699)=>{const _0x38472c=a2_0x3df4f4,_0x29012f=new ParentSegmentValidateCommand(),_0xe3c2ce=program[_0x38472c(0x323)](),_0x22f9f9=await createTDXInstance(_0xe3c2ce),_0x3dc83e=await _0x29012f['run']({'options':{..._0xe3c2ce,..._0x5b8699},'args':_0x328116?[_0x328116]:[],'tdx':_0x22f9f9});process[_0x38472c(0x249)](_0x3dc83e);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x19c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x391))[a2_0x3df4f4(0x293)]('--master',a2_0x3df4f4(0x2f0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x33a),a2_0x3df4f4(0x189))['option'](a2_0x3df4f4(0x326),a2_0x3df4f4(0x2ca))['option'](a2_0x3df4f4(0x18f),a2_0x3df4f4(0x1ae))['option'](a2_0x3df4f4(0x1b3),a2_0x3df4f4(0x312),a2_0x3df4f4(0x208))['action'](async(_0x48d99a,_0x5c7281)=>{const _0x86c32=a2_0x3df4f4,_0x40092a=new ParentSegmentPreviewCommand(),_0xa06b6d=program[_0x86c32(0x323)](),_0x5d3ce2=await createTDXInstance(_0xa06b6d),_0x39789c=await _0x40092a[_0x86c32(0x1d0)]({'options':{..._0xa06b6d,..._0x5c7281},'args':_0x48d99a?[_0x48d99a]:[],'tdx':_0x5d3ce2});process['exit'](_0x39789c);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ac))['description'](a2_0x3df4f4(0x387))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x2b63b9,_0x216d45)=>{const _0x5d3f06=a2_0x3df4f4,_0x45bb30=new ParentSegmentRunCommand(),_0x156975=program[_0x5d3f06(0x323)](),_0x2fe868=await createTDXInstance(_0x156975),_0x12bc7d=await _0x45bb30['run']({'options':{..._0x156975,..._0x216d45},'args':_0x2b63b9?[_0x2b63b9]:[],'tdx':_0x2fe868});process[_0x5d3f06(0x249)](_0x12bc7d);}),parentSegmentCmd['command'](a2_0x3df4f4(0x2c6))[a2_0x3df4f4(0x357)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))['action'](async(_0x1c2a68,_0x5d0a80)=>{const _0x591040=a2_0x3df4f4,_0x4cfd3b=new ParentSegmentFieldsCommand(),_0x2388a2=program[_0x591040(0x323)](),_0x97a6a6=await createTDXInstance(_0x2388a2),_0x208cca=await _0x4cfd3b[_0x591040(0x1d0)]({'options':{..._0x2388a2,..._0x5d0a80},'args':_0x1c2a68?[_0x1c2a68]:[],'tdx':_0x97a6a6});process['exit'](_0x208cca);}),parentSegmentCmd['command'](a2_0x3df4f4(0x2cb))['description'](a2_0x3df4f4(0x306))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0x56b6a7,_0x2ecb86)=>{const _0x1ded4e=a2_0x3df4f4,_0x566862=new ParentSegmentViewCommand(),_0x3e6b8a=program['opts'](),_0x8a1ac6=await createTDXInstance(_0x3e6b8a),_0x396f43=await _0x566862[_0x1ded4e(0x1d0)]({'options':{..._0x3e6b8a,..._0x2ecb86},'args':_0x56b6a7?[_0x56b6a7]:[],'tdx':_0x8a1ac6});process[_0x1ded4e(0x249)](_0x396f43);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x3df4f4(0x357)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3df4f4(0x227),'Output\x20as\x20JSON')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))['action'](async(_0x3db60a,_0x5e672a)=>{const _0x3e3a39=a2_0x3df4f4,_0x38c6ea=new ParentSegmentDescCommand(),_0x55ffb3=program[_0x3e3a39(0x323)](),_0x5de9bc=await createTDXInstance(_0x55ffb3),_0x2fe10b=await _0x38c6ea[_0x3e3a39(0x1d0)]({'options':{..._0x55ffb3,..._0x5e672a},'args':_0x3db60a?[_0x3db60a]:[],'tdx':_0x5de9bc});process[_0x3e3a39(0x249)](_0x2fe10b);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1fd))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3aa))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x227),a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x35f),a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0xd74485,_0x3c8416)=>{const _0x37ee53=a2_0x3df4f4,_0x332955=new ParentSegmentSQLCommand(),_0x27d989=program[_0x37ee53(0x323)](),_0x3ac891=await createTDXInstance(_0x27d989),_0x14196d=await _0x332955['run']({'options':{..._0x27d989,..._0x3c8416},'args':_0xd74485?[_0xd74485]:[],'tdx':_0x3ac891});process[_0x37ee53(0x249)](_0x14196d);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x37a))[a2_0x3df4f4(0x293)]('--limit\x20<n>',a2_0x3df4f4(0x2e0))[a2_0x3df4f4(0x293)]('--json',a2_0x3df4f4(0x334))[a2_0x3df4f4(0x293)]('--jsonl',a2_0x3df4f4(0x1dc))[a2_0x3df4f4(0x2f2)](async(_0x22b8ce,_0x5a7323)=>{const _0x550d2d=a2_0x3df4f4,_0x48e0af=new ParentSegmentShowCommand(),_0x2655b4=program[_0x550d2d(0x323)](),_0x2a94c8=await createTDXInstance(_0x2655b4),_0x1897d6=await _0x48e0af[_0x550d2d(0x1d0)]({'options':{..._0x2655b4,..._0x5a7323},'args':_0x22b8ce?[_0x22b8ce]:[],'tdx':_0x2a94c8});process['exit'](_0x1897d6);}),parentSegmentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x269))['description'](a2_0x3df4f4(0x229))[a2_0x3df4f4(0x2f2)](async(_0x205b2f,_0x23b958)=>{const _0x183e0e=a2_0x3df4f4,_0x508195=new UseCommand(),_0x3ed777=program[_0x183e0e(0x323)](),_0x348d6e=_0x205b2f?[_0x183e0e(0x219),_0x205b2f]:[],_0x4a9db2=await _0x508195['run']({'options':{..._0x3ed777,..._0x23b958},'args':_0x348d6e,'tdx':null});process[_0x183e0e(0x249)](_0x4a9db2);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x3a8),a2_0x3df4f4(0x2a6))[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x282),'Master\x20table\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x369))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x210),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x3df4f4(0x3b1))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x347),a2_0x3df4f4(0x1a9))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x25c),'Attributes\x20from\x20JSON\x20file')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x345),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x3df4f4(0x3d5),a2_0x3df4f4(0x1c3))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1b0),a2_0x3df4f4(0x2a5))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f7),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x3df4f4(0x2f2)](async(_0x3b10a2,_0x3a6596)=>{const _0x3efd25=a2_0x3df4f4,_0x3e2e03=new ParentSegmentCreateCommand(),_0x1e7d4f=program['opts'](),_0x52d4ca=await createTDXInstance(_0x1e7d4f),_0x277184=await _0x3e2e03['run']({'options':{..._0x1e7d4f,..._0x3a6596},'args':[_0x3b10a2],'tdx':_0x52d4ca});process[_0x3efd25(0x249)](_0x277184);}),parentCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2d9))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x30e))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x314))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x210),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x199),a2_0x3df4f4(0x2e6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),a2_0x3df4f4(0x1ff))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x28d),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x195),a2_0x3df4f4(0x16e))[a2_0x3df4f4(0x293)]('--add-behaviors\x20<json>',a2_0x3df4f4(0x2b4))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3b7),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0x29ed7a,_0x1e0b94)=>{const _0x41b2dc=a2_0x3df4f4,_0x12f2b3=new ParentSegmentUpdateCommand(),_0x484972=program[_0x41b2dc(0x323)](),_0x456107=await createTDXInstance(_0x484972),_0x509d44=await _0x12f2b3[_0x41b2dc(0x1d0)]({'options':{..._0x484972,..._0x1e0b94},'args':[_0x29ed7a],'tdx':_0x456107});process[_0x41b2dc(0x249)](_0x509d44);}),folderCmd[a2_0x3df4f4(0x22f)]('create\x20<parent_name>\x20<folder_name>')['description'](a2_0x3df4f4(0x173))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x2d2))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x19f),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x4ef688,_0x5b7ba6,_0x2b68bd)=>{const _0x268cd6=a2_0x3df4f4,_0x23f275=new SegmentFolderCreateCommand(),_0x383391=program[_0x268cd6(0x323)](),_0x43014e=await createTDXInstance(_0x383391),_0x54bc51=await _0x23f275[_0x268cd6(0x1d0)]({'options':{..._0x383391,..._0x2b68bd},'args':[_0x4ef688,_0x5b7ba6],'tdx':_0x43014e});process[_0x268cd6(0x249)](_0x54bc51);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x217))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b7))[a2_0x3df4f4(0x2f2)](async(_0x42ed2c,_0x5aaa9a)=>{const _0x40002c=a2_0x3df4f4,_0xb150a7=new ActivationsCommand(),_0x1b2428=program[_0x40002c(0x323)](),_0x4ad8c8=await createTDXInstance(_0x1b2428),_0x39323f=await _0xb150a7[_0x40002c(0x1d0)]({'options':{..._0x1b2428,..._0x5aaa9a},'args':[_0x42ed2c],'tdx':_0x4ad8c8});process[_0x40002c(0x249)](_0x39323f);});const workflowCmd=program['command'](a2_0x3df4f4(0x214))[a2_0x3df4f4(0x1c2)]('wf')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1c8)),wfProjectCmd=workflowCmd['command'](a2_0x3df4f4(0x31a))['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x4b95d3,_0x3bb334)=>{const _0x13d405=a2_0x3df4f4,_0x1af6b9=new WorkflowProjectsCommand(),_0x575d41=program['opts'](),_0x478f59=await createTDXInstance(_0x575d41),_0x23ac25=await _0x1af6b9[_0x13d405(0x1d0)]({'options':{..._0x575d41,..._0x3bb334},'args':_0x4b95d3?[_0x4b95d3]:[],'tdx':_0x478f59});process[_0x13d405(0x249)](_0x23ac25);};wfProjectCmd[a2_0x3df4f4(0x22f)]('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x313))[a2_0x3df4f4(0x2f2)](wfProjectListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1d2))[a2_0x3df4f4(0x357)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3df4f4(0x2f2)](wfProjectListAction);const wfWorkflowListAction=async(_0x31ac5a,_0x1f73c0)=>{const _0x57e4fd=a2_0x3df4f4,_0x56bd7b=new WorkflowWorkflowsCommand(),_0x551e6e=program[_0x57e4fd(0x323)](),_0x2aace6=await createTDXInstance(_0x551e6e),_0x5a582f=await _0x56bd7b[_0x57e4fd(0x1d0)]({'options':{..._0x551e6e,..._0x1f73c0},'args':_0x31ac5a?[_0x31ac5a]:[],'tdx':_0x2aace6});process[_0x57e4fd(0x249)](_0x5a582f);};workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x254))['description'](a2_0x3df4f4(0x1a4))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3ca))['description'](a2_0x3df4f4(0x2c9)),wfSessionListAction=async(_0x3df03c,_0x279ffd)=>{const _0x24cbd7=a2_0x3df4f4,_0x5a961e=new WorkflowSessionsCommand(),_0x2b7fa2=program[_0x24cbd7(0x323)](),_0x54157c=await createTDXInstance(_0x2b7fa2),_0x3275d4=await _0x5a961e[_0x24cbd7(0x1d0)]({'options':{..._0x2b7fa2,..._0x279ffd},'args':_0x3df03c?[_0x3df03c]:[],'tdx':_0x54157c});process[_0x24cbd7(0x249)](_0x3275d4);};wfSessionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cc))['description'](a2_0x3df4f4(0x34e))['option'](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x212))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1da),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x3df4f4(0x286),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x200))[a2_0x3df4f4(0x357)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x212))['option'](a2_0x3df4f4(0x1da),a2_0x3df4f4(0x2ee))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x286),a2_0x3df4f4(0x1fb))[a2_0x3df4f4(0x2f2)](wfSessionListAction);const wfAttemptListAction=async(_0x3c63f7,_0x14a94d)=>{const _0x30b32d=a2_0x3df4f4,_0x12863f=new WorkflowAttemptsCommand(),_0x2112a7=program['opts'](),_0x563c1c=await createTDXInstance(_0x2112a7),_0x2ea0ba=await _0x12863f[_0x30b32d(0x1d0)]({'options':{..._0x2112a7,..._0x14a94d},'args':_0x3c63f7?[_0x3c63f7]:[],'tdx':_0x563c1c});process[_0x30b32d(0x249)](_0x2ea0ba);},attemptCmd=workflowCmd['command'](a2_0x3df4f4(0x1d5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x38d))[a2_0x3df4f4(0x398)]('[attempt-id]',a2_0x3df4f4(0x37d))[a2_0x3df4f4(0x398)](a2_0x3df4f4(0x2d3),a2_0x3df4f4(0x2e1))[a2_0x3df4f4(0x398)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1d9),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2e2),a2_0x3df4f4(0x324))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x225),a2_0x3df4f4(0x1e1))[a2_0x3df4f4(0x293)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2aa),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x34b),a2_0x3df4f4(0x36c))[a2_0x3df4f4(0x2f2)](async(_0x2065a2,_0x7ce287,_0x95b052,_0x3d5847)=>{const _0x12b28c=a2_0x3df4f4;if(_0x2065a2===_0x12b28c(0x29f)){await wfAttemptListAction(_0x7ce287,_0x3d5847);return;}if(!_0x2065a2){attemptCmd[_0x12b28c(0x31b)]();return;}const _0x2cfa9c=program[_0x12b28c(0x323)](),_0xc97677=await createTDXInstance(_0x2cfa9c);let _0xbcb90d=0x0;if(!_0x7ce287){const _0x34700a=new WorkflowAttemptCommand();_0xbcb90d=await _0x34700a['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x31c)){const _0x403619=new WorkflowLogsCommand();_0xbcb90d=await _0x403619['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':_0x95b052?[_0x2065a2,_0x95b052]:[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287==='tasks'){const _0x5dbfbd=new WorkflowTasksCommand();_0xbcb90d=await _0x5dbfbd[_0x12b28c(0x1d0)]({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x1d4)){const _0x158540=new WorkflowKillCommand();_0xbcb90d=await _0x158540['run']({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x2065a2],'tdx':_0xc97677});}else{if(_0x7ce287===_0x12b28c(0x2dd)){const _0x41cdd4=new WorkflowRetryCommand();_0xbcb90d=await _0x41cdd4[_0x12b28c(0x1d0)]({'options':{..._0x2cfa9c,..._0x3d5847},'args':[_0x12b28c(0x21c)+_0x2065a2],'tdx':_0xc97677});}else console[_0x12b28c(0x26e)](_0x12b28c(0x305)+_0x7ce287),console[_0x12b28c(0x26e)](_0x12b28c(0x342)),_0xbcb90d=0x1;}}}}process[_0x12b28c(0x249)](_0xbcb90d);});attemptCmd['command'](a2_0x3df4f4(0x1cc))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2cd))['option'](a2_0x3df4f4(0x34b),'Include\x20retried\x20attempts')[a2_0x3df4f4(0x2f2)](wfAttemptListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x315))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x34b),a2_0x3df4f4(0x38c))[a2_0x3df4f4(0x2f2)](wfAttemptListAction),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18b))['description'](a2_0x3df4f4(0x23d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x288),a2_0x3df4f4(0x3cf))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x266),a2_0x3df4f4(0x380))[a2_0x3df4f4(0x293)]('--attempt-id\x20<id>',a2_0x3df4f4(0x1a3))[a2_0x3df4f4(0x2f2)](async(_0x568f54,_0x55eba9)=>{const _0x3011fb=a2_0x3df4f4,_0x2a8110=new WorkflowTimelineCommand(),_0x55e877=program[_0x3011fb(0x323)](),_0xcbe54=await createTDXInstance(_0x55e877),_0x4467f9=await _0x2a8110[_0x3011fb(0x1d0)]({'options':{..._0x55e877,..._0x55eba9},'args':_0x568f54?[_0x568f54]:[],'tdx':_0xcbe54});process['exit'](_0x4467f9);}),workflowCmd['command'](a2_0x3df4f4(0x318))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1ba),a2_0x3df4f4(0x22c))[a2_0x3df4f4(0x293)]('--params\x20<json>',a2_0x3df4f4(0x1d1))[a2_0x3df4f4(0x2f2)](async(_0x4bed8e,_0x209c3c)=>{const _0x234edf=a2_0x3df4f4,_0x25a917=new WorkflowRetryCommand(),_0x45a94d=program[_0x234edf(0x323)](),_0x59a911=await createTDXInstance(_0x45a94d),_0xf017aa=await _0x25a917['run']({'options':{..._0x45a94d,..._0x209c3c},'args':[_0x4bed8e],'tdx':_0x59a911});process[_0x234edf(0x249)](_0xf017aa);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x215))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2a3))['option'](a2_0x3df4f4(0x19a),a2_0x3df4f4(0x32d),(_0x4131a9,_0x251ef7=[])=>[..._0x251ef7,_0x4131a9],[])[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ed),a2_0x3df4f4(0x1b5))['action'](async(_0x291aca,_0x4b0219)=>{const _0x4b7780=a2_0x3df4f4,_0x266c49=new WorkflowRunCommand(),_0xf21b97=program['opts'](),_0x30bdd8=await createTDXInstance(_0xf21b97),_0x572f9a=await _0x266c49[_0x4b7780(0x1d0)]({'options':{..._0xf21b97,..._0x4b0219},'args':_0x291aca?[_0x291aca]:[],'tdx':_0x30bdd8});process['exit'](_0x572f9a);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3c5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e3))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x238))[a2_0x3df4f4(0x2f2)](async(_0x3ebe38,_0xf791e7,_0x3dd8c6)=>{const _0x46b168=a2_0x3df4f4,_0x44d089=new WorkflowDownloadCommand(),_0x80ce5f=program[_0x46b168(0x323)](),_0x5efa10=await createTDXInstance(_0x80ce5f),_0x440f7e=await _0x44d089[_0x46b168(0x1d0)]({'options':{..._0x80ce5f,..._0x3dd8c6},'args':[_0x3ebe38,_0xf791e7||'.'],'tdx':_0x5efa10});process[_0x46b168(0x249)](_0x440f7e);}),workflowCmd[a2_0x3df4f4(0x22f)]('pull\x20<project>\x20[target-dir]')['description'](a2_0x3df4f4(0x320))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x2b6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x304))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](async(_0x4b85e6,_0x5d741c,_0x363988)=>{const _0x4c7e02=a2_0x3df4f4,_0x1e05d2=new WorkflowPullCommand(),_0x5507e9=program[_0x4c7e02(0x323)](),_0x3a5998=await createTDXInstance(_0x5507e9),_0x3f06ac=await _0x1e05d2[_0x4c7e02(0x1d0)]({'options':{..._0x5507e9,..._0x363988},'args':_0x5d741c?[_0x4b85e6,_0x5d741c]:[_0x4b85e6],'tdx':_0x3a5998});process[_0x4c7e02(0x249)](_0x3f06ac);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x224))[a2_0x3df4f4(0x357)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')['option'](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x376))['option'](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x17f))[a2_0x3df4f4(0x293)]('--skip-validation',a2_0x3df4f4(0x361))[a2_0x3df4f4(0x293)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x3df4f4(0x2f2)](async(_0x11fec8,_0x1ae0aa)=>{const _0x8b84c6=a2_0x3df4f4,_0x423b78=new WorkflowPushCommand(),_0x252866=program[_0x8b84c6(0x323)](),_0x25bf60=await createTDXInstance(_0x252866),_0x357b0=await _0x423b78['run']({'options':{..._0x252866,..._0x1ae0aa},'args':_0x11fec8?[_0x11fec8]:[],'tdx':_0x25bf60});process[_0x8b84c6(0x249)](_0x357b0);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x28c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x253))[a2_0x3df4f4(0x293)]('--name\x20<name>',a2_0x3df4f4(0x206))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x36b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x263),a2_0x3df4f4(0x361))['action'](async(_0x37ae73,_0x4f1d0d)=>{const _0x1c9c39=a2_0x3df4f4,_0x10e099=new WorkflowUploadCommand(),_0x2a4218=program[_0x1c9c39(0x323)](),_0x138257=await createTDXInstance(_0x2a4218),_0x426800=await _0x10e099[_0x1c9c39(0x1d0)]({'options':{..._0x2a4218,..._0x4f1d0d},'args':_0x37ae73?[_0x37ae73]:[],'tdx':_0x138257});process['exit'](_0x426800);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1b4))[a2_0x3df4f4(0x357)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2fb),a2_0x3df4f4(0x376))['option'](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x33b))['option'](a2_0x3df4f4(0x263),a2_0x3df4f4(0x361))[a2_0x3df4f4(0x293)]('-y,\x20--yes',a2_0x3df4f4(0x1c7))['action'](async(_0x1d4b26,_0x3079a3)=>{const _0x30ab30=a2_0x3df4f4,_0x6c5cde=new WorkflowCloneCommand(),_0x4e9e1c=program[_0x30ab30(0x323)](),_0x5bad97=await createTDXInstance(_0x4e9e1c),_0x1513fe=await _0x6c5cde['run']({'options':{..._0x4e9e1c,..._0x3079a3},'args':_0x1d4b26?[_0x1d4b26]:[],'tdx':_0x5bad97});process[_0x30ab30(0x249)](_0x1513fe);}),workflowCmd['command'](a2_0x3df4f4(0x35c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x193))[a2_0x3df4f4(0x2f2)](async(_0x24dfce,_0x120dc2)=>{const _0x57ac55=a2_0x3df4f4,_0x289e15=new WorkflowDeleteCommand(),_0xf121e5=program['opts'](),_0x8ccf9d=await createTDXInstance(_0xf121e5),_0x2b1047=await _0x289e15[_0x57ac55(0x1d0)]({'options':{..._0xf121e5,..._0x120dc2},'args':[_0x24dfce],'tdx':_0x8ccf9d});process[_0x57ac55(0x249)](_0x2b1047);}),workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x171))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x24b))['option'](a2_0x3df4f4(0x3b4),a2_0x3df4f4(0x2ec))[a2_0x3df4f4(0x2f2)](async(_0xb68dd9,_0x41799f)=>{const _0x2a207e=a2_0x3df4f4,_0x132809=new WorkflowUseCommand(),_0xc37459=program[_0x2a207e(0x323)](),_0x5297f7=await createTDXInstance(_0xc37459),_0x1b755b=await _0x132809[_0x2a207e(0x1d0)]({'options':{..._0xc37459,..._0x41799f},'args':_0xb68dd9?[_0xb68dd9]:[],'tdx':_0x5297f7});process['exit'](_0x1b755b);});const wfSecretsCmd=workflowCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x280))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d7));wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1cc))[a2_0x3df4f4(0x357)]('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x3df4f4(0x2f2)](async(_0x2daa9a,_0x7f731d)=>{const _0x576783=a2_0x3df4f4,_0x358e04=new WorkflowSecretsListCommand(),_0xc9d492=program['opts'](),_0x598142=await createTDXInstance(_0xc9d492),_0x52459c=await _0x358e04[_0x576783(0x1d0)]({'options':{..._0xc9d492,..._0x7f731d},'args':_0x2daa9a?[_0x2daa9a]:[],'tdx':_0x598142});process[_0x576783(0x249)](_0x52459c);}),wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x24d))[a2_0x3df4f4(0x357)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x3a7d2e,_0x48fc17)=>{const _0x1adf30=a2_0x3df4f4,_0x212401=new WorkflowSecretsSetCommand(),_0x1bab58=program[_0x1adf30(0x323)](),_0x2e1724=await createTDXInstance(_0x1bab58),_0x2de423=await _0x212401[_0x1adf30(0x1d0)]({'options':{..._0x1bab58,..._0x48fc17},'args':_0x3a7d2e,'tdx':_0x2e1724});process[_0x1adf30(0x249)](_0x2de423);}),wfSecretsCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2b3))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x299))['option'](a2_0x3df4f4(0x356),a2_0x3df4f4(0x1c7))['action'](async(_0x7ff527,_0x2a1839)=>{const _0x583169=a2_0x3df4f4,_0x4af346=new WorkflowSecretsDeleteCommand(),_0x2bd742=program['opts'](),_0x2e8cf6=await createTDXInstance(_0x2bd742),_0xcd066b=await _0x4af346[_0x583169(0x1d0)]({'options':{..._0x2bd742,..._0x2a1839},'args':_0x7ff527,'tdx':_0x2e8cf6});process[_0x583169(0x249)](_0xcd066b);});const jobCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x239))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x39e)),jobListAction=async _0x4ffc2e=>{const _0x17ee9f=a2_0x3df4f4,_0x2502ba=new JobListCommand(),_0x4bcb23=program[_0x17ee9f(0x323)](),_0xe5dc8e=await createTDXInstance(_0x4bcb23),_0x35b4a0=await _0x2502ba['run']({'options':{..._0x4bcb23,..._0x4ffc2e},'args':[],'tdx':_0xe5dc8e});process['exit'](_0x35b4a0);};jobCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))['description'](a2_0x3df4f4(0x2d6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program['command'](a2_0x3df4f4(0x2de),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d0))[a2_0x3df4f4(0x293)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd[a2_0x3df4f4(0x22f)]('show\x20<job-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x245))[a2_0x3df4f4(0x2f2)](async(_0x31b687,_0xedbf5d)=>{const _0x1039c8=a2_0x3df4f4,_0x1dc9e1=new JobShowCommand(),_0x1b255b=program[_0x1039c8(0x323)](),_0x25df22=await createTDXInstance(_0x1b255b),_0x27c709=await _0x1dc9e1[_0x1039c8(0x1d0)]({'options':{..._0x1b255b,..._0xedbf5d},'args':[_0x31b687],'tdx':_0x25df22});process[_0x1039c8(0x249)](_0x27c709);}),jobCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33d))['description'](a2_0x3df4f4(0x2c7))[a2_0x3df4f4(0x2f2)](async(_0x7e127d,_0x22703b)=>{const _0x81c54f=a2_0x3df4f4,_0x47e309=new JobKillCommand(),_0x31ac70=program[_0x81c54f(0x323)](),_0x18fb9d=await createTDXInstance(_0x31ac70),_0xb0fc15=await _0x47e309[_0x81c54f(0x1d0)]({'options':{..._0x31ac70,..._0x22703b},'args':[_0x7e127d],'tdx':_0x18fb9d});process[_0x81c54f(0x249)](_0xb0fc15);}),jobCmd[a2_0x3df4f4(0x22f)]('submit\x20[query]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3c3))['option'](a2_0x3df4f4(0x39b),a2_0x3df4f4(0x256),a2_0x3df4f4(0x26f))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x236),a2_0x3df4f4(0x3d4))[a2_0x3df4f4(0x293)]('--database\x20<name>',a2_0x3df4f4(0x2dc),a2_0x3df4f4(0x176))[a2_0x3df4f4(0x2f2)](async(_0x3c7652,_0x3fb889)=>{const _0x228113=a2_0x3df4f4,_0x3f4a25=new JobSubmitCommand(),_0x3d4061=program[_0x228113(0x323)](),_0x1188c9=await createTDXInstance(_0x3d4061),_0x452811=await _0x3f4a25[_0x228113(0x1d0)]({'options':{..._0x3d4061,..._0x3fb889},'args':_0x3c7652?[_0x3c7652]:[],'tdx':_0x1188c9});process[_0x228113(0x249)](_0x452811);}),jobCmd['command'](a2_0x3df4f4(0x322))['description'](a2_0x3df4f4(0x276))[a2_0x3df4f4(0x2f2)](async(_0x111fc2,_0x4ebefd)=>{const _0x22fd06=a2_0x3df4f4,_0x39a974=new JobResultCommand(),_0x19b789=program[_0x22fd06(0x323)](),_0x40773b=await createTDXInstance(_0x19b789),_0x34d01b=await _0x39a974['run']({'options':{..._0x19b789,..._0x4ebefd},'args':[_0x111fc2],'tdx':_0x40773b});process['exit'](_0x34d01b);});const llmCmd=program['command'](a2_0x3df4f4(0x35e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x346));llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x301))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x365))[a2_0x3df4f4(0x2f2)](async(_0x18c9db,_0xd0f2a3)=>{const _0x3f676e=a2_0x3df4f4,_0x2995fa=new LLMUseCommand(),_0x3e27f=program[_0x3f676e(0x323)](),_0x2f8776=await createTDXInstance(_0x3e27f),_0x580908=await _0x2995fa[_0x3f676e(0x1d0)]({'options':{..._0x3e27f,..._0xd0f2a3},'args':[_0x18c9db],'tdx':_0x2f8776});process[_0x3f676e(0x249)](_0x580908);}),llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1c6))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a1))[a2_0x3df4f4(0x2f2)](async _0x285514=>{const _0x1c587a=a2_0x3df4f4,_0x512de=new LLMModelsCommand(),_0x3fcda1=program[_0x1c587a(0x323)](),_0x51be7f=await createTDXInstance(_0x3fcda1),_0x57e49b=await _0x512de[_0x1c587a(0x1d0)]({'options':{..._0x3fcda1,..._0x285514},'args':[],'tdx':_0x51be7f});process[_0x1c587a(0x249)](_0x57e49b);});const projectCmd=llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x31a))['description'](a2_0x3df4f4(0x36a)),llmProjectListAction=async(_0xcd070d,_0x61f1cc)=>{const _0x3eb817=a2_0x3df4f4,_0x2acbcf=new LLMProjectsCommand(),_0x504cfc=program[_0x3eb817(0x323)](),_0x5a7891=await createTDXInstance(_0x504cfc),_0x439ea2=await _0x2acbcf[_0x3eb817(0x1d0)]({'options':{..._0x504cfc,..._0x61f1cc},'args':_0xcd070d?[_0xcd070d]:[],'tdx':_0x5a7891});process[_0x3eb817(0x249)](_0x439ea2);};projectCmd['command']('list\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2f8))['action'](llmProjectListAction),llmCmd['command'](a2_0x3df4f4(0x1d2))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e7))['action'](llmProjectListAction),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x30a))[a2_0x3df4f4(0x293)]('--description\x20<text>',a2_0x3df4f4(0x1fa))[a2_0x3df4f4(0x2f2)](async(_0x5d2924,_0x50f7da)=>{const _0x110e52=a2_0x3df4f4,_0x4faac8=new LLMProjectCreateCommand(),_0x147eb8=program[_0x110e52(0x323)](),_0x4b6cd7=await createTDXInstance(_0x147eb8),_0x2a394f=await _0x4faac8[_0x110e52(0x1d0)]({'options':{..._0x147eb8,..._0x50f7da},'args':[_0x5d2924],'tdx':_0x4b6cd7});process['exit'](_0x2a394f);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x211))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x197))[a2_0x3df4f4(0x2f2)](async(_0x5128e7,_0x4d5447)=>{const _0x4c3ef5=a2_0x3df4f4,_0x3fb3fa=new LLMProjectDeleteCommand(),_0xc195e4=program['opts'](),_0x34bb87=await createTDXInstance(_0xc195e4),_0x533e91=await _0x3fb3fa[_0x4c3ef5(0x1d0)]({'options':{..._0xc195e4,..._0x4d5447},'args':[_0x5128e7],'tdx':_0x34bb87});process[_0x4c3ef5(0x249)](_0x533e91);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3af))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2cc))['option']('-o,\x20--output\x20<folder>',a2_0x3df4f4(0x393))[a2_0x3df4f4(0x293)]('--dry-run',a2_0x3df4f4(0x344))[a2_0x3df4f4(0x2f2)](async(_0x81e42c,_0x425aa2)=>{const _0x3233de=a2_0x3df4f4,_0x46b492=new LLMProjectBackupCommand(),_0xaf129f=program['opts'](),_0x55065f=await createTDXInstance(_0xaf129f),_0xb029e=await _0x46b492[_0x3233de(0x1d0)]({'options':{..._0xaf129f,..._0x425aa2},'args':[_0x81e42c],'tdx':_0x55065f});process[_0x3233de(0x249)](_0xb029e);}),projectCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a2))['description'](a2_0x3df4f4(0x21a))['option'](a2_0x3df4f4(0x295),a2_0x3df4f4(0x246))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),a2_0x3df4f4(0x196))[a2_0x3df4f4(0x2f2)](async(_0x12bab8,_0xced07)=>{const _0x216f2f=a2_0x3df4f4,_0x1f0eae=new LLMProjectRestoreCommand(),_0x508aa8=program['opts'](),_0x312f0f=await createTDXInstance(_0x508aa8),_0x2c9f48=await _0x1f0eae[_0x216f2f(0x1d0)]({'options':{..._0x508aa8,..._0xced07},'args':[_0x12bab8],'tdx':_0x312f0f});process[_0x216f2f(0x249)](_0x2c9f48);});const llmAgentListAction=async(_0x41fea4,_0x3bb212)=>{const _0x4ac912=a2_0x3df4f4,_0x1c59b5=new LLMAgentsCommand(),_0x2f6438=program[_0x4ac912(0x323)](),_0xcf0fc7=await createTDXInstance(_0x2f6438),_0x434c7b=await _0x1c59b5['run']({'options':{..._0x2f6438,..._0x3bb212},'args':_0x41fea4?[_0x41fea4]:[],'tdx':_0xcf0fc7});process['exit'](_0x434c7b);};llmCmd['command']('agents\x20[pattern]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x240))[a2_0x3df4f4(0x2f2)](llmAgentListAction),program['command'](a2_0x3df4f4(0x1c5))['description'](a2_0x3df4f4(0x240))[a2_0x3df4f4(0x2f2)](llmAgentListAction),llmCmd[a2_0x3df4f4(0x22f)]('history\x20[chat-id]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3ad))[a2_0x3df4f4(0x293)]('--last',a2_0x3df4f4(0x26b))[a2_0x3df4f4(0x2f2)](async(_0x5e1df1,_0x21570f)=>{const _0x451895=a2_0x3df4f4,_0x18ca08=new LLMHistoryCommand(),_0x3a09b7=program[_0x451895(0x323)](),_0x735dbe=await createTDXInstance(_0x3a09b7),_0x4a3c69=await _0x18ca08['run']({'options':{..._0x3a09b7,..._0x21570f},'args':_0x5e1df1?[_0x5e1df1]:[],'tdx':_0x735dbe});process[_0x451895(0x249)](_0x4a3c69);}),llmCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x287))[a2_0x3df4f4(0x357)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')['option'](a2_0x3df4f4(0x366),a2_0x3df4f4(0x2a8),a2_0x3df4f4(0x38b))[a2_0x3df4f4(0x293)]('--project\x20<name>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3df4f4(0x293)]('--agent\x20<name>',a2_0x3df4f4(0x351))['action'](async _0x3d4525=>{const _0x1f03c9=a2_0x3df4f4,_0x3d64a4=new LLMProxyCommand(),_0x63452=program[_0x1f03c9(0x323)](),_0x35c23d=await createTDXInstance(_0x63452),_0x588576={..._0x3d4525,'port':_0x3d4525[_0x1f03c9(0x3d0)]?parseInt(_0x3d4525[_0x1f03c9(0x3d0)],0xa):undefined},_0x3afcff=await _0x3d64a4[_0x1f03c9(0x1d0)]({'options':{..._0x63452,..._0x588576},'args':[],'tdx':_0x35c23d});process[_0x1f03c9(0x249)](_0x3afcff);}),program['command']('claude\x20[args...]')[a2_0x3df4f4(0x33f)](a2_0x3df4f4(0x213))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1b8))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2ce),a2_0x3df4f4(0x170),a2_0x3df4f4(0x231))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x32b),a2_0x3df4f4(0x2bc))[a2_0x3df4f4(0x293)]('-r,\x20--resume',a2_0x3df4f4(0x2db))[a2_0x3df4f4(0x293)]('--no-proxy','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')['option'](a2_0x3df4f4(0x378),a2_0x3df4f4(0x370))[a2_0x3df4f4(0x328)]()['allowExcessArguments'](!![])[a2_0x3df4f4(0x3a6)]('after',a2_0x3df4f4(0x16f))['action'](async(_0x85229b,_0x2d9470)=>{const _0x82494c=a2_0x3df4f4,_0x399dc6=program[_0x82494c(0x323)](),_0x5e1b48=Array[_0x82494c(0x1de)](_0x85229b)?_0x85229b:[];if(_0x5e1b48[0x0]===_0x82494c(0x381)){const _0x58b376=new ClaudeStatuslineCommand(),_0x397672=await _0x58b376['run']({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48['slice'](0x1),'tdx':null});process[_0x82494c(0x249)](_0x397672);}if(_0x5e1b48[0x0]==='usage'){const _0x290a1e=new ClaudeUsageCommand(),_0x1b9590=await _0x290a1e[_0x82494c(0x1d0)]({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48[_0x82494c(0x3bb)](0x1),'tdx':null});process[_0x82494c(0x249)](_0x1b9590);}const _0x345c12=new ClaudeCommand(),_0x373586=await createTDXInstance(_0x399dc6),_0x3eebd9=await _0x345c12[_0x82494c(0x1d0)]({'options':{..._0x399dc6,..._0x2d9470},'args':_0x5e1b48,'tdx':_0x373586});process['exit'](_0x3eebd9);}),program['command'](a2_0x3df4f4(0x20c))[a2_0x3df4f4(0x357)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3b4),a2_0x3df4f4(0x292))['option'](a2_0x3df4f4(0x350),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x24dfe0,_0x410b62,_0x1e52bd)=>{const _0x57bd14=a2_0x3df4f4,_0xadee15=new UseCommand(),_0xdaa16=program[_0x57bd14(0x323)](),_0x4a5628=[];if(_0x24dfe0)_0x4a5628['push'](_0x24dfe0);if(_0x410b62)_0x4a5628[_0x57bd14(0x36f)](_0x410b62);const _0x1b9948=await _0xadee15['run']({'options':{..._0xdaa16,..._0x1e52bd},'args':_0x4a5628,'tdx':null});process[_0x57bd14(0x249)](_0x1b9948);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x186))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x177))['option'](a2_0x3df4f4(0x350),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3df4f4(0x2f2)](async(_0x575c96,_0x5602d3)=>{const _0x50eb70=a2_0x3df4f4,_0x40d38e=new UnsetCommand(),_0x495d51=program[_0x50eb70(0x323)](),_0x5037d5=await _0x40d38e[_0x50eb70(0x1d0)]({'options':{..._0x495d51,..._0x5602d3},'args':[_0x575c96],'tdx':null});process[_0x50eb70(0x249)](_0x5037d5);}),program['command'](a2_0x3df4f4(0x1f5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1ec))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x250),a2_0x3df4f4(0x395))[a2_0x3df4f4(0x2f2)](async _0x2e914c=>{const _0x42c59a=a2_0x3df4f4,_0x1a9c8c=new ChatsCommand(),_0xb89a81=program['opts'](),_0x4b974e=await createTDXInstance(_0xb89a81),_0x51d6ab=await _0x1a9c8c[_0x42c59a(0x1d0)]({'options':{..._0xb89a81,..._0x2e914c},'args':[],'tdx':_0x4b974e});process[_0x42c59a(0x249)](_0x51d6ab);});const authCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a9))['description'](a2_0x3df4f4(0x279));async function runAuthStatusCommand(_0x15a729){const _0x2e4ce5=a2_0x3df4f4,_0x53360d=new AuthStatusCommand(),_0x14238e=program['opts'](),_0x51c4e1=await createTDXInstance(_0x14238e),_0xb1eb54=await _0x53360d[_0x2e4ce5(0x1d0)]({'options':{..._0x14238e,..._0x15a729},'args':[],'tdx':_0x51c4e1});process['exit'](_0xb1eb54);}function a2_0x54ca(_0x3986ac,_0x5b5c6d){_0x3986ac=_0x3986ac-0x16c;const _0xb2fd45=a2_0xb2fd();let _0x54ca88=_0xb2fd45[_0x3986ac];return _0x54ca88;}authCmd[a2_0x3df4f4(0x2f2)](runAuthStatusCommand),authCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2d5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x20d))[a2_0x3df4f4(0x2f2)](runAuthStatusCommand),authCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x34d))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x34a))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x25e))[a2_0x3df4f4(0x2f2)](async _0x319b22=>{const _0x38541d=a2_0x3df4f4,_0x4460fa=new AuthSetupCommand(),_0x11b017=program[_0x38541d(0x323)](),_0x27b13a=await createTDXInstance(_0x11b017),_0x1f411a=await _0x4460fa[_0x38541d(0x1d0)]({'options':{..._0x11b017,..._0x319b22},'args':[],'tdx':_0x27b13a});process[_0x38541d(0x249)](_0x1f411a);}),authCmd['command']('clear')[a2_0x3df4f4(0x357)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x372))['action'](async _0x4fab3d=>{const _0x4ac954=a2_0x3df4f4,_0x1432c1=new AuthClearCommand(),_0x117115=program[_0x4ac954(0x323)](),_0x5890c2=await _0x1432c1[_0x4ac954(0x1d0)]({'options':{..._0x117115,..._0x4fab3d},'args':[],'tdx':null});process[_0x4ac954(0x249)](_0x5890c2);});const userCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x31e))[a2_0x3df4f4(0x357)]('User\x20management\x20commands'),userListAction=async _0xf594c8=>{const _0x1939b8=a2_0x3df4f4,_0x155204=new UserListCommand(),_0x2c0b7e=program[_0x1939b8(0x323)](),_0x27d5f6=await createTDXInstance(_0x2c0b7e),_0x2f038d=await _0x155204[_0x1939b8(0x1d0)]({'options':{..._0x2c0b7e,..._0xf594c8},'args':[],'tdx':_0x27d5f6});process['exit'](_0x2f038d);};userCmd['action'](async _0x2816a6=>{const _0x373b96=new UserCommand(),_0x58c910=program['opts'](),_0xa0eaf0=await createTDXInstance(_0x58c910),_0x2be635=await _0x373b96['run']({'options':{..._0x58c910,..._0x2816a6},'args':[],'tdx':_0xa0eaf0});process['exit'](_0x2be635);}),userCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))['description'](a2_0x3df4f4(0x220))[a2_0x3df4f4(0x2f2)](userListAction),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x17e))[a2_0x3df4f4(0x2f2)](userListAction),program[a2_0x3df4f4(0x22f)]('profiles')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x247))[a2_0x3df4f4(0x2f2)](async _0x5520a6=>{const _0x2a6722=a2_0x3df4f4,_0x4da62b=new ProfilesCommand(),_0x250517=program['opts'](),_0x47e1a3=await _0x4da62b['run']({'options':{..._0x250517,..._0x5520a6},'args':[],'tdx':null});process[_0x2a6722(0x249)](_0x47e1a3);});const profileCmd=program['command'](a2_0x3df4f4(0x343))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1e4));profileCmd[a2_0x3df4f4(0x2f2)](()=>{const _0x21cdcd=a2_0x3df4f4;profileCmd[_0x21cdcd(0x222)]();});const profileListAction=async _0x4e5732=>{const _0x34d608=a2_0x3df4f4,_0x5e4cda=new ProfilesCommand(),_0x23bafb=program['opts'](),_0x2719f7=await _0x5e4cda[_0x34d608(0x1d0)]({'options':{..._0x23bafb,..._0x4e5732},'args':[],'tdx':null});process[_0x34d608(0x249)](_0x2719f7);};profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x247))[a2_0x3df4f4(0x2f2)](profileListAction),profileCmd['command']('create\x20[name]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1b1))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x5d2865,_0x20371f)=>{const _0x8d6bc5=a2_0x3df4f4,_0x54b4e8=new ProfileCreateCommand(),_0x4ac958=program['opts'](),_0x5b450f=await _0x54b4e8['run']({'options':{..._0x4ac958,..._0x20371f},'args':_0x5d2865?[_0x5d2865]:[],'tdx':null});process[_0x8d6bc5(0x249)](_0x5b450f);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x3c6))['description'](a2_0x3df4f4(0x3a1))[a2_0x3df4f4(0x3a6)](a2_0x3df4f4(0x1e6),a2_0x3df4f4(0x216))[a2_0x3df4f4(0x2f2)](async(_0x58d87b,_0x4b71e3)=>{const _0x42f77f=a2_0x3df4f4,_0x5d84fa=new ProfileRemoveCommand(),_0x437366=program[_0x42f77f(0x323)](),_0x18b4d6=await _0x5d84fa[_0x42f77f(0x1d0)]({'options':{..._0x437366,..._0x4b71e3},'args':[_0x58d87b],'tdx':null});process['exit'](_0x18b4d6);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x23e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x360))['addHelpText'](a2_0x3df4f4(0x1e6),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x3df4f4(0x2f2)](async(_0x4efc07,_0x4f3938)=>{const _0x5497e5=a2_0x3df4f4,_0x37b90a=new ProfileSetCommand(),_0x495720=program[_0x5497e5(0x323)](),_0x5c2bd3=await _0x37b90a[_0x5497e5(0x1d0)]({'options':{..._0x495720,..._0x4f3938},'args':[_0x4efc07],'tdx':null});process[_0x5497e5(0x249)](_0x5c2bd3);}),profileCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x30f))['description'](a2_0x3df4f4(0x38e))['option'](a2_0x3df4f4(0x350),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x3df4f4(0x3a6)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a')[a2_0x3df4f4(0x2f2)](async(_0x5a7597,_0x13397b)=>{const _0x4b2de3=a2_0x3df4f4,_0x1cb1cf=new ProfileUseCommand(),_0x2a7188=program[_0x4b2de3(0x323)](),_0x1d09b0=await _0x1cb1cf['run']({'options':{..._0x2a7188,..._0x13397b},'args':[_0x5a7597],'tdx':null});process[_0x4b2de3(0x249)](_0x1d09b0);});const engageCmd=program['command'](a2_0x3df4f4(0x2be))['description'](a2_0x3df4f4(0x373)),createEngageAction=_0x4a6c6f=>{return async(_0x5ab172,_0x2ca2f0)=>{const _0x4c33d4=a2_0x54ca,_0x44b79d=new _0x4a6c6f(),_0x12f6c2=program[_0x4c33d4(0x323)](),_0x1df081=await createTDXInstance(_0x12f6c2),_0x348d2a=await _0x44b79d[_0x4c33d4(0x1d0)]({'options':{..._0x12f6c2,..._0x2ca2f0},'args':[_0x5ab172],'tdx':_0x1df081});process[_0x4c33d4(0x249)](_0x348d2a);};},createEngageNoArgAction=_0x1cc9b5=>{return async _0x3b9a96=>{const _0x535cc4=a2_0x54ca,_0x429c21=new _0x1cc9b5(),_0x186a25=program[_0x535cc4(0x323)](),_0x12731f=await createTDXInstance(_0x186a25),_0x57d923=await _0x429c21[_0x535cc4(0x1d0)]({'options':{..._0x186a25,..._0x3b9a96},'args':[],'tdx':_0x12731f});process[_0x535cc4(0x249)](_0x57d923);};},campaignCmd=engageCmd['command']('campaign')[a2_0x3df4f4(0x357)]('Campaign\x20management'),campaignListAction=async(_0x26159d,_0xd9e4b5)=>{const _0x4a45e7=a2_0x3df4f4,_0x38864a=new EngageCampaignsCommand(),_0x157802=program[_0x4a45e7(0x323)](),_0x1b8263=await createTDXInstance(_0x157802),_0x388a2b=await _0x38864a[_0x4a45e7(0x1d0)]({'options':{..._0x157802,..._0xd9e4b5},'args':_0x26159d?[_0x26159d]:[],'tdx':_0x1b8263});process[_0x4a45e7(0x249)](_0x388a2b);};campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x317))[a2_0x3df4f4(0x293)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),a2_0x3df4f4(0x3a3))[a2_0x3df4f4(0x293)]('--workspace\x20<name>',a2_0x3df4f4(0x3bd))['action'](campaignListAction),engageCmd['command'](a2_0x3df4f4(0x296))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x278))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x244),a2_0x3df4f4(0x2ef))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3ce),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](campaignListAction),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x333))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))['option']('--full',a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1fe))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x243))['requiredOption'](a2_0x3df4f4(0x311),a2_0x3df4f4(0x29b))['requiredOption'](a2_0x3df4f4(0x244),a2_0x3df4f4(0x1b6))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x24e))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x2d4))[a2_0x3df4f4(0x293)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x3df4f4(0x23c),a2_0x3df4f4(0x2a2))[a2_0x3df4f4(0x293)]('--json-columns\x20<cols>',a2_0x3df4f4(0x1ed))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x218),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('update\x20<name-or-id>')[a2_0x3df4f4(0x357)]('Update\x20a\x20campaign')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),'Workspace\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x1c4))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x2d4))['option']('--segment\x20<path>',a2_0x3df4f4(0x18a))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x23c),a2_0x3df4f4(0x2a2))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x185),a2_0x3df4f4(0x1ed))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x218),a2_0x3df4f4(0x181))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x386),a2_0x3df4f4(0x1e8))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('delete\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2a9))['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x336))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x242))[a2_0x3df4f4(0x357)]('Pause\x20a\x20campaign')['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1f1))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2ae))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3df4f4(0x22f)]('duplicate\x20<name-or-id>')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x25a))['option'](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x3df4f4(0x39c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x209)),templateListAction=async(_0x18f57c,_0x35a7b7)=>{const _0x273a75=a2_0x3df4f4,_0x5e56f3=new EngageTemplatesCommand(),_0x234aa0=program[_0x273a75(0x323)](),_0x33a41d=await createTDXInstance(_0x234aa0),_0x27f171=await _0x5e56f3['run']({'options':{..._0x234aa0,..._0x35a7b7},'args':_0x18f57c?[_0x18f57c]:[],'tdx':_0x33a41d});process[_0x273a75(0x249)](_0x27f171);};templateCmd['command'](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b5))['option']('--workspace\x20<name>',a2_0x3df4f4(0x3bd))['action'](templateListAction),engageCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2a0))[a2_0x3df4f4(0x357)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))['action'](templateListAction),templateCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2d8))[a2_0x3df4f4(0x293)]('--workspace\x20<name>',a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x354),a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3df4f4(0x22f)]('create')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x294))[a2_0x3df4f4(0x3c0)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x331))[a2_0x3df4f4(0x3c0)]('--subject\x20<subject>',a2_0x3df4f4(0x25d))['requiredOption'](a2_0x3df4f4(0x335),'HTML\x20template\x20content')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x24e))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31d),a2_0x3df4f4(0x1eb))[a2_0x3df4f4(0x293)]('--editor-type\x20<type>',a2_0x3df4f4(0x1e5))[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x3df4f4(0x27b))[a2_0x3df4f4(0x357)]('Update\x20an\x20email\x20template')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2b9),a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x311),a2_0x3df4f4(0x3a0))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1e9),a2_0x3df4f4(0x25d))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x335),a2_0x3df4f4(0x1af))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x31d),a2_0x3df4f4(0x1eb))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3df4f4(0x377))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2e4))['option'](a2_0x3df4f4(0x2b9),'Workspace\x20name')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command'](a2_0x3df4f4(0x1a0))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2b8)),workspaceListAction=async(_0x3db468,_0x289350)=>{const _0x603c9=a2_0x3df4f4,_0x8fa555=new EngageWorkspacesCommand(),_0xad8bbb=program[_0x603c9(0x323)](),_0x50efaf=await createTDXInstance(_0xad8bbb),_0x160ca8=await _0x8fa555['run']({'options':{..._0xad8bbb,..._0x289350},'args':_0x3db468?[_0x3db468]:[],'tdx':_0x50efaf});process[_0x603c9(0x249)](_0x160ca8);};workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd[a2_0x3df4f4(0x22f)]('workspaces\x20[pattern]')['description'](a2_0x3df4f4(0x38a))[a2_0x3df4f4(0x2f2)](workspaceListAction),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1a5))['description'](a2_0x3df4f4(0x3c4))[a2_0x3df4f4(0x293)]('--full',a2_0x3df4f4(0x1e0))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3df4f4(0x22f)]('create')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x289))[a2_0x3df4f4(0x3c0)]('--name\x20<name>',a2_0x3df4f4(0x3bd))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x20b),a2_0x3df4f4(0x22a))[a2_0x3df4f4(0x2f2)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x27b))[a2_0x3df4f4(0x357)]('Update\x20a\x20workspace')[a2_0x3df4f4(0x293)]('--name\x20<name>',a2_0x3df4f4(0x1f2))[a2_0x3df4f4(0x293)]('--description\x20<desc>','Workspace\x20description')[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x377))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x316))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c8),a2_0x3df4f4(0x1c7))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x30f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x267))[a2_0x3df4f4(0x2f2)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x3df4f4(0x325))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x198)),connectionListAction=async _0x16196d=>{const _0x16f38d=a2_0x3df4f4,_0x179e31=new ConnectionListCommand(),_0x46085b=program[_0x16f38d(0x323)](),_0x390047=await createTDXInstance(_0x46085b),_0x1aa4db=await _0x179e31[_0x16f38d(0x1d0)]({'options':{..._0x46085b,..._0x16196d},'args':[],'tdx':_0x390047});process[_0x16f38d(0x249)](_0x1aa4db);};connectionCmd['command'](a2_0x3df4f4(0x29f))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x20f))[a2_0x3df4f4(0x2f2)](connectionListAction),program['command'](a2_0x3df4f4(0x1f6),{'hidden':!![]})[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a8))[a2_0x3df4f4(0x2f2)](connectionListAction),connectionCmd[a2_0x3df4f4(0x22f)]('show\x20<name>')[a2_0x3df4f4(0x357)]('Show\x20connection\x20details\x20by\x20name')[a2_0x3df4f4(0x2f2)](async(_0x8cb48a,_0x1134f7)=>{const _0x3eb654=a2_0x3df4f4,_0x483537=new ConnectionShowCommand(),_0x5aead5=program[_0x3eb654(0x323)](),_0x3f799f=await createTDXInstance(_0x5aead5),_0xced158=await _0x483537[_0x3eb654(0x1d0)]({'options':{..._0x5aead5,..._0x1134f7},'args':[_0x8cb48a],'tdx':_0x3f799f});process[_0x3eb654(0x249)](_0xced158);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x332))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x2ba))[a2_0x3df4f4(0x2f2)](async(_0x4fde24,_0x514b7a)=>{const _0x3a1743=a2_0x3df4f4,_0x713ec=new ConnectionSchemaCommand(),_0x473e9a=program[_0x3a1743(0x323)](),_0x16938c=await createTDXInstance(_0x473e9a),_0x4e7424=await _0x713ec[_0x3a1743(0x1d0)]({'options':{..._0x473e9a,..._0x514b7a},'args':[_0x4fde24],'tdx':_0x16938c});process[_0x3a1743(0x249)](_0x4e7424);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x29d))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x272))[a2_0x3df4f4(0x2f2)](async _0x442463=>{const _0x3292fc=a2_0x3df4f4,_0x37afca=new ConnectionTypesCommand(),_0x53c357=program[_0x3292fc(0x323)](),_0x279516=await createTDXInstance(_0x53c357),_0x2ffb3a=await _0x37afca[_0x3292fc(0x1d0)]({'options':{..._0x53c357,..._0x442463},'args':[],'tdx':_0x279516});process['exit'](_0x2ffb3a);}),connectionCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2c0))[a2_0x3df4f4(0x357)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3df4f4(0x2f2)](async(_0x40de19,_0x509ea2)=>{const _0x72b256=a2_0x3df4f4,_0x5b139b=new ConnectionSettingsCommand(),_0x20131c=program[_0x72b256(0x323)](),_0x1de52c=await createTDXInstance(_0x20131c),_0x154ffe=await _0x5b139b[_0x72b256(0x1d0)]({'options':{..._0x20131c,..._0x509ea2},'args':[_0x40de19],'tdx':_0x1de52c});process['exit'](_0x154ffe);});const journeyCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x1ad))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1cd)),journeyListAction=async(_0x26c4ef,_0x2b8870)=>{const _0x30d31a=a2_0x3df4f4,_0x4c410d=new JourneyListCommand(),_0xff188e=program[_0x30d31a(0x323)](),_0x5aa9d4=await createTDXInstance(_0xff188e),_0x358ba2=await _0x4c410d[_0x30d31a(0x1d0)]({'options':{..._0xff188e,..._0x2b8870},'args':_0x26c4ef?[_0x26c4ef]:[],'tdx':_0x5aa9d4});process[_0x30d31a(0x249)](_0x358ba2);};journeyCmd[a2_0x3df4f4(0x22f)]('list\x20[pattern]')[a2_0x3df4f4(0x357)]('List\x20journeys\x20in\x20current\x20context')[a2_0x3df4f4(0x2f2)](journeyListAction),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x308))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x3c7),a2_0x3df4f4(0x258))['option'](a2_0x3df4f4(0x1bb),a2_0x3df4f4(0x3cd))[a2_0x3df4f4(0x2f2)](async(_0x36100c,_0x2bf01a)=>{const _0x298e29=a2_0x3df4f4,_0x5ea969=new JourneyViewCommand(),_0x52cfa3=program[_0x298e29(0x323)](),_0x1609ed=await createTDXInstance(_0x52cfa3),_0x40c685=await _0x5ea969['run']({'options':{..._0x52cfa3,..._0x2bf01a},'args':[_0x36100c],'tdx':_0x1609ed});process[_0x298e29(0x249)](_0x40c685);}),journeyCmd[a2_0x3df4f4(0x22f)]('stats\x20<name-or-path>')[a2_0x3df4f4(0x357)]('Show\x20journey\x20statistics')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2a7),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x3df4f4(0x2f2)](async(_0x48c37e,_0x3e612c)=>{const _0x5eaf81=a2_0x3df4f4,_0x2b0aea=new JourneyStatsCommand(),_0x573872=program[_0x5eaf81(0x323)](),_0x376a67=await createTDXInstance(_0x573872),_0x5c8f30=await _0x2b0aea[_0x5eaf81(0x1d0)]({'options':{..._0x573872,..._0x3e612c},'args':[_0x48c37e],'tdx':_0x376a67});process['exit'](_0x5c8f30);}),journeyCmd['command'](a2_0x3df4f4(0x1b9))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3d3))[a2_0x3df4f4(0x2f2)](async(_0x151ac0,_0x19deec)=>{const _0x461275=a2_0x3df4f4,_0x562a11=new JourneyPauseCommand(),_0x18bac0=program[_0x461275(0x323)](),_0xc2418c=await createTDXInstance(_0x18bac0),_0x23d3a8=await _0x562a11[_0x461275(0x1d0)]({'options':{..._0x18bac0,..._0x19deec},'args':[_0x151ac0],'tdx':_0xc2418c});process['exit'](_0x23d3a8);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x3df4f4(0x357)]('Resume\x20a\x20paused\x20journey')[a2_0x3df4f4(0x2f2)](async(_0x4a846d,_0x406388)=>{const _0x3f6619=a2_0x3df4f4,_0x3fbd43=new JourneyResumeCommand(),_0x1b3b60=program[_0x3f6619(0x323)](),_0x5c1096=await createTDXInstance(_0x1b3b60),_0x40c169=await _0x3fbd43[_0x3f6619(0x1d0)]({'options':{..._0x1b3b60,..._0x406388},'args':[_0x4a846d],'tdx':_0x5c1096});process[_0x3f6619(0x249)](_0x40c169);}),journeyCmd[a2_0x3df4f4(0x22f)]('pull\x20[name]')['description'](a2_0x3df4f4(0x2f3))['option'](a2_0x3df4f4(0x356),'Skip\x20confirmation\x20prompt')['option'](a2_0x3df4f4(0x1be),'Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x3df4f4(0x2f2)](async(_0x403bae,_0x2be824)=>{const _0x3b18d6=a2_0x3df4f4,_0x36192a=new JourneyPullCommand(),_0x252fe5=program[_0x3b18d6(0x323)](),_0x14f827=await createTDXInstance(_0x252fe5),_0x1901cf=await _0x36192a['run']({'options':{..._0x252fe5,..._0x2be824},'args':_0x403bae?[_0x403bae]:[],'tdx':_0x14f827});process[_0x3b18d6(0x249)](_0x1901cf);}),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2f1))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1fc))['action'](async(_0x6cca85,_0x436499)=>{const _0x809fc4=a2_0x3df4f4,_0x508e00=new JourneyPushCommand(),_0x36642c=program[_0x809fc4(0x323)](),_0xce5d16=await createTDXInstance(_0x36642c),_0x297817=await _0x508e00['run']({'options':{..._0x36642c,..._0x436499},'args':_0x6cca85?[_0x6cca85]:[],'tdx':_0xce5d16});process['exit'](_0x297817);}),journeyCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x19b))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x352))[a2_0x3df4f4(0x2f2)](async(_0x470927,_0x2af42b)=>{const _0x5502e4=a2_0x3df4f4,_0xfe5dc2=new JourneyValidateCommand(),_0x349b08=program[_0x5502e4(0x323)](),_0x3c9717=await createTDXInstance(_0x349b08),_0x67fea7=await _0xfe5dc2[_0x5502e4(0x1d0)]({'options':{..._0x349b08,..._0x2af42b},'args':_0x470927?[_0x470927]:[],'tdx':_0x3c9717});process['exit'](_0x67fea7);}),program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x18e))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3cc))[a2_0x3df4f4(0x2f2)](journeyListAction);const agentSyncCmd=program[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x23a))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x1a7));agentSyncCmd['command'](a2_0x3df4f4(0x2df))['description'](a2_0x3df4f4(0x3c9))[a2_0x3df4f4(0x293)]('-o,\x20--output\x20<dir>',a2_0x3df4f4(0x32c))['option'](a2_0x3df4f4(0x27e),a2_0x3df4f4(0x340))[a2_0x3df4f4(0x2f2)](async(_0x22abc2,_0xf142fa,_0x535ff8)=>{const _0x186002=a2_0x3df4f4,_0x1b20d8=new AgentPullCommand(),_0x100a1f=program[_0x186002(0x323)](),_0x9898c6=await createTDXInstance(_0x100a1f),_0x9cc1c9=[];if(_0x22abc2)_0x9cc1c9['push'](_0x22abc2);if(_0xf142fa)_0x9cc1c9['push'](_0xf142fa);const _0x12adeb=await _0x1b20d8['run']({'options':{..._0x100a1f,..._0x535ff8},'args':_0x9cc1c9,'tdx':_0x9898c6});process[_0x186002(0x249)](_0x12adeb);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x28b))[a2_0x3df4f4(0x357)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x3df4f4(0x293)]('-f,\x20--force',a2_0x3df4f4(0x1f4))['action'](async(_0x23a923,_0xf743e8)=>{const _0x431d44=a2_0x3df4f4,_0x5eda96=new AgentPushCommand(),_0x213142=program[_0x431d44(0x323)](),_0x12ea00=await createTDXInstance(_0x213142),_0x589344=await _0x5eda96[_0x431d44(0x1d0)]({'options':{..._0x213142,..._0xf743e8},'args':_0x23a923?[_0x23a923]:[],'tdx':_0x12ea00});process[_0x431d44(0x249)](_0x589344);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x2b2))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x179),a2_0x3df4f4(0x281))['action'](async(_0x4ee56d,_0xbc27e7)=>{const _0x26e026=a2_0x3df4f4,_0x3f4ecb=new AgentCloneCommand(),_0x2ccb5b=program[_0x26e026(0x323)](),_0x1af025=await createTDXInstance(_0x2ccb5b),_0x433245=await _0x3f4ecb[_0x26e026(0x1d0)]({'options':{..._0x2ccb5b,..._0xbc27e7},'args':_0x4ee56d?[_0x4ee56d]:[],'tdx':_0x1af025});process[_0x26e026(0x249)](_0x433245);}),agentSyncCmd['command']('test\x20[path]')[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x3ba))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x30b),a2_0x3df4f4(0x183))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x1be),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2e9),a2_0x3df4f4(0x3bc))[a2_0x3df4f4(0x2f2)](async(_0x5fa512,_0x505e34)=>{const _0x3396a4=a2_0x3df4f4,_0x33857b=new AgentTestCommand(),_0x2444fe=program[_0x3396a4(0x323)](),_0x405d25=await createTDXInstance(_0x2444fe),_0x522f5d=await _0x33857b[_0x3396a4(0x1d0)]({'options':{..._0x2444fe,..._0x505e34},'args':_0x5fa512?[_0x5fa512]:[],'tdx':_0x405d25});process[_0x3396a4(0x249)](_0x522f5d);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x290))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x285))[a2_0x3df4f4(0x2f2)](llmAgentListAction),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x175))['description']('Show\x20agent\x20details')[a2_0x3df4f4(0x2f2)](async(_0x6fe4cc,_0x297532)=>{const _0x5bf9ff=a2_0x3df4f4,_0x3deb11=new LLMAgentShowCommand(),_0xc029a8=program[_0x5bf9ff(0x323)](),_0x197315=await createTDXInstance(_0xc029a8),_0x3e8f98=await _0x3deb11[_0x5bf9ff(0x1d0)]({'options':{..._0xc029a8,..._0x297532},'args':[_0x6fe4cc],'tdx':_0x197315});process[_0x5bf9ff(0x249)](_0x3e8f98);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x33c))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x277))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2c5),a2_0x3df4f4(0x26c))['option'](a2_0x3df4f4(0x2ce),a2_0x3df4f4(0x36d),a2_0x3df4f4(0x261))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x16d),a2_0x3df4f4(0x178))[a2_0x3df4f4(0x293)]('--max-tool-iterations\x20<n>',a2_0x3df4f4(0x3b6),'4')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x388),a2_0x3df4f4(0x1ee),a2_0x3df4f4(0x3ab))['action'](async(_0x406560,_0x5d3c8a)=>{const _0x45fe74=a2_0x3df4f4,_0x380434=new LLMAgentCreateCommand(),_0x30e3e7=program[_0x45fe74(0x323)](),_0x572e69=await createTDXInstance(_0x30e3e7),_0x33ff49=await _0x380434[_0x45fe74(0x1d0)]({'options':{..._0x30e3e7,..._0x5d3c8a},'args':[_0x406560],'tdx':_0x572e69});process[_0x45fe74(0x249)](_0x33ff49);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x184))[a2_0x3df4f4(0x357)]('Update\x20an\x20existing\x20agent')[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x27f),a2_0x3df4f4(0x22b))[a2_0x3df4f4(0x293)](a2_0x3df4f4(0x2f4),a2_0x3df4f4(0x2c2))['option'](a2_0x3df4f4(0x31f),a2_0x3df4f4(0x24f))['option'](a2_0x3df4f4(0x16d),a2_0x3df4f4(0x178))[a2_0x3df4f4(0x2f2)](async(_0xecfe4e,_0x5bb355)=>{const _0x5666a3=a2_0x3df4f4,_0x4ac002=new LLMAgentUpdateCommand(),_0x444145=program[_0x5666a3(0x323)](),_0xba0546=await createTDXInstance(_0x444145),_0x1b90f3=await _0x4ac002['run']({'options':{..._0x444145,..._0x5bb355},'args':[_0xecfe4e],'tdx':_0xba0546});process['exit'](_0x1b90f3);}),agentSyncCmd[a2_0x3df4f4(0x22f)](a2_0x3df4f4(0x27a))[a2_0x3df4f4(0x357)](a2_0x3df4f4(0x27c))[a2_0x3df4f4(0x2f2)](async(_0x404319,_0x56842c)=>{const _0x182ed0=a2_0x3df4f4,_0x5927a8=new LLMAgentDeleteCommand(),_0xe7bedc=program[_0x182ed0(0x323)](),_0x2452d6=await createTDXInstance(_0xe7bedc),_0x1c8f80=await _0x5927a8[_0x182ed0(0x1d0)]({'options':{..._0xe7bedc,..._0x56842c},'args':[_0x404319],'tdx':_0x2452d6});process['exit'](_0x1c8f80);});export{program};export function runCLI(){const _0x3f10fa=a2_0x3df4f4,_0x18a949=!process['argv']['slice'](0x2)[_0x3f10fa(0x297)];showBriefHelp=_0x18a949,program[_0x3f10fa(0x319)](process[_0x3f10fa(0x2a4)]),_0x18a949&&program[_0x3f10fa(0x222)](),process[_0x3f10fa(0x2ea)][_0x3f10fa(0x201)]&&process[_0x3f10fa(0x2a4)][_0x3f10fa(0x297)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x10ec25=>{_0x10ec25&&displayUpdateNotification(_0x10ec25);})[_0x3f10fa(0x271)](()=>{});}
1
+ const a2_0x4fabbe=a2_0x176a;(function(_0xbe7bbc,_0xaf533f){const _0x56805f=a2_0x176a,_0xb142fa=_0xbe7bbc();while(!![]){try{const _0x190dd6=-parseInt(_0x56805f(0x1f6))/0x1+parseInt(_0x56805f(0x40c))/0x2*(-parseInt(_0x56805f(0x358))/0x3)+parseInt(_0x56805f(0x220))/0x4*(parseInt(_0x56805f(0x1c9))/0x5)+-parseInt(_0x56805f(0x3c0))/0x6*(parseInt(_0x56805f(0x249))/0x7)+-parseInt(_0x56805f(0x36a))/0x8+parseInt(_0x56805f(0x2d5))/0x9*(-parseInt(_0x56805f(0x25a))/0xa)+parseInt(_0x56805f(0x329))/0xb;if(_0x190dd6===_0xaf533f)break;else _0xb142fa['push'](_0xb142fa['shift']());}catch(_0x59c3c3){_0xb142fa['push'](_0xb142fa['shift']());}}}(a2_0x464e,0x24467));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';function a2_0x176a(_0x526fb2,_0x15e993){_0x526fb2=_0x526fb2-0x1a7;const _0x464ed8=a2_0x464e();let _0x176af0=_0x464ed8[_0x526fb2];return _0x176af0;}import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,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{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x4fabbe(0x279)]['includes']('--version')){let versionOutput=a2_0x4fabbe(0x270)+currentVersion;buildInfo[a2_0x4fabbe(0x33a)]&&!currentVersion[a2_0x4fabbe(0x25e)](buildInfo[a2_0x4fabbe(0x33a)])&&(versionOutput+='\x20('+buildInfo[a2_0x4fabbe(0x33a)]+')'),buildInfo[a2_0x4fabbe(0x393)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x4fabbe(0x393)]),console['log'](versionOutput),process[a2_0x4fabbe(0x1d6)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x4fabbe(0x1b3);buildInfo[a2_0x4fabbe(0x33a)]&&!currentVersion[a2_0x4fabbe(0x25e)](buildInfo[a2_0x4fabbe(0x33a)])?description+=a2_0x4fabbe(0x2bb)+currentVersion+'\x20('+buildInfo[a2_0x4fabbe(0x33a)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x4fabbe(0x284)]('tdx')['description'](description),program[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x314),a2_0x4fabbe(0x3f5))[a2_0x4fabbe(0x3cc)]('-p,\x20--profile\x20<name>',a2_0x4fabbe(0x231))['option']('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x4fabbe(0x2a8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x398),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4fabbe(0x3cc)]('--table',a2_0x4fabbe(0x22c))['option'](a2_0x4fabbe(0x400),a2_0x4fabbe(0x3df))['option'](a2_0x4fabbe(0x1ed),a2_0x4fabbe(0x404))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x32b),a2_0x4fabbe(0x2d8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x33d),'Save\x20output\x20to\x20file')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x206),a2_0x4fabbe(0x3b6))['option'](a2_0x4fabbe(0x26e),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x4fabbe(0x3cc)]('--no-color',a2_0x4fabbe(0x236),![])['option'](a2_0x4fabbe(0x1b1),a2_0x4fabbe(0x348),![])[a2_0x4fabbe(0x3cc)]('--debug',a2_0x4fabbe(0x213))[a2_0x4fabbe(0x3cc)]('--trace',a2_0x4fabbe(0x323))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2d7),a2_0x4fabbe(0x387),'30')[a2_0x4fabbe(0x3cc)]('--dry-run',a2_0x4fabbe(0x1c2),![])[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompts',![])[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1c3),a2_0x4fabbe(0x2eb))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x29d),a2_0x4fabbe(0x30e))[a2_0x4fabbe(0x3cc)]('--in\x20<name>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1d3),a2_0x4fabbe(0x2e6))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3b0),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x4fabbe(0x368)]({'formatHelp':(_0x3db426,_0x440673)=>{const _0x391057=a2_0x4fabbe,_0x22fcd3=_0x440673[_0x391057(0x1e1)](_0x3db426,_0x440673),_0x460bfe=0x2,_0x2fe4b8=0x2;function _0x5a69d7(_0x2b2a86){const _0x5d63f5=_0x391057,_0x2e21dc=_0x2b2a86;return!!(_0x2e21dc[_0x5d63f5(0x30a)]||_0x2e21dc[_0x5d63f5(0x1b7)]);}function _0x1cef0c(_0x5c2e77,_0x16f5a0){if(_0x16f5a0){const _0x5343ef=''+_0x5c2e77['padEnd'](_0x22fcd3+_0x2fe4b8)+_0x16f5a0;return _0x5343ef;}return _0x5c2e77;}function _0x2ab043(_0xdcccf1){const _0x32e957=_0x391057;return _0xdcccf1[_0x32e957(0x2aa)]('\x0a')[_0x32e957(0x1bb)](/^/gm,'\x20'['repeat'](_0x460bfe));}const _0x4c7caf=[];_0x4c7caf[_0x391057(0x3e0)](_0x391057(0x239)+_0x440673['commandUsage'](_0x3db426));const _0x67ded6=_0x440673[_0x391057(0x392)](_0x3db426);_0x67ded6&&(_0x4c7caf['push'](''),_0x4c7caf[_0x391057(0x3e0)](_0x67ded6));const _0x3591df=_0x3db426[_0x391057(0x31a)][_0x391057(0x3f7)](_0xac060c=>!_0x5a69d7(_0xac060c));if(_0x3591df[_0x391057(0x1ad)]>0x0){if(_0x3db426[_0x391057(0x284)]()==='tdx'){const _0x4e1a0c=_0x3db426[_0x391057(0x35b)](),_0x534bd0=!_0x4e1a0c['noColor']&&process[_0x391057(0x268)][_0x391057(0x2c6)],_0x513494=COMMAND_CATEGORIES,_0x4bd50d=(_0x7732fd,_0x44f7fd)=>_0x534bd0?_0x44f7fd(_0x7732fd):_0x7732fd,_0x5c0bab=new Map();_0x3591df[_0x391057(0x26c)](_0xffa50e=>{const _0xe5f7c7=_0x391057;_0x5c0bab[_0xe5f7c7(0x34d)](_0xffa50e[_0xe5f7c7(0x284)](),_0xffa50e);}),_0x513494[_0x391057(0x26c)](_0x431022=>{const _0xca2ab0=_0x391057,_0x38ed70=_0x431022[_0xca2ab0(0x31a)][_0xca2ab0(0x1c7)](_0x1b8d8e=>_0x5c0bab[_0xca2ab0(0x208)](_0x1b8d8e)??[]);if(_0x38ed70[_0xca2ab0(0x1ad)]>0x0){_0x4c7caf[_0xca2ab0(0x3e0)](''),_0x4c7caf[_0xca2ab0(0x3e0)](_0x4bd50d(_0x431022[_0xca2ab0(0x284)]+':',_0x431022[_0xca2ab0(0x3d2)]));const _0x30c64a=_0x38ed70[_0xca2ab0(0x2a3)](_0x1d7aff=>{const _0x406625=_0xca2ab0,_0x29f19d=_0x440673[_0x406625(0x262)](_0x1d7aff),_0x2c5533=_0x440673[_0x406625(0x356)](_0x1d7aff);return _0x1cef0c(_0x29f19d,_0x2c5533);});_0x4c7caf['push'](_0x2ab043(_0x30c64a));}}),_0x4c7caf[_0x391057(0x3e0)](''),_0x4c7caf['push'](_0x391057(0x233));}else{const _0x411598=_0x3591df[_0x391057(0x2a3)](_0x3185d2=>{const _0x299ff3=_0x391057,_0x322c8d=_0x440673[_0x299ff3(0x262)](_0x3185d2),_0x2e40b=_0x440673['subcommandDescription'](_0x3185d2);return _0x1cef0c(_0x322c8d,_0x2e40b);});_0x4c7caf[_0x391057(0x3e0)](''),_0x4c7caf['push'](_0x391057(0x299)),_0x4c7caf[_0x391057(0x3e0)](_0x2ab043(_0x411598));}}if(showBriefHelp&&_0x3db426[_0x391057(0x284)]()===_0x391057(0x23d))_0x4c7caf['push'](''),_0x4c7caf[_0x391057(0x3e0)](_0x391057(0x274));else{const _0x1bce37=_0x3db426[_0x391057(0x1ba)][_0x391057(0x3f7)](_0xe8270=>!_0x5a69d7(_0xe8270));if(_0x1bce37[_0x391057(0x1ad)]>0x0){const _0x51c808=_0x1bce37[_0x391057(0x2a3)](_0x2fc8dd=>{const _0x245699=_0x391057,_0x56426b=_0x440673[_0x245699(0x3b9)](_0x2fc8dd),_0x562815=_0x440673[_0x245699(0x403)](_0x2fc8dd);return _0x1cef0c(_0x56426b,_0x562815);});_0x4c7caf['push'](''),_0x4c7caf[_0x391057(0x3e0)](_0x391057(0x3fe)),_0x4c7caf[_0x391057(0x3e0)](_0x2ab043(_0x51c808));}}const _0x1636fd=(_0x3db426[_0x391057(0x2d2)]||[])[_0x391057(0x3f7)](_0xd3b8e5=>!_0x5a69d7(_0xd3b8e5));if(_0x1636fd[_0x391057(0x1ad)]>0x0){const _0x2931c8=_0x1636fd[_0x391057(0x2a3)](_0x3f3f42=>{const _0x2976dd=_0x391057,_0x5b9f32=_0x440673[_0x2976dd(0x1e3)](_0x3f3f42),_0x360526=_0x440673['argumentDescription'](_0x3f3f42);return _0x1cef0c(_0x5b9f32,_0x360526);});_0x4c7caf[_0x391057(0x3e0)](''),_0x4c7caf[_0x391057(0x3e0)]('Arguments:'),_0x4c7caf[_0x391057(0x3e0)](_0x2ab043(_0x2931c8));}return _0x4c7caf['join']('\x0a')+'\x0a';},'subcommandTerm':_0x137830=>{const _0x5ad224=a2_0x4fabbe,_0x5c64e8=(_0x137830[_0x5ad224(0x2d2)]||[])[_0x5ad224(0x2a3)](_0x11a1e8=>_0x11a1e8['required']?'<'+_0x11a1e8['name']()+'>':'['+_0x11a1e8[_0x5ad224(0x284)]()+']')[_0x5ad224(0x2aa)]('\x20'),_0x3022aa=_0x137830[_0x5ad224(0x21b)](),_0x2571ee=_0x3022aa[_0x5ad224(0x1ad)]>0x0?_0x137830['name']()+',\x20'+_0x3022aa[_0x5ad224(0x2aa)](',\x20'):_0x137830[_0x5ad224(0x284)]();return _0x5c64e8?_0x2571ee+'\x20'+_0x5c64e8:_0x2571ee;}}),program[a2_0x4fabbe(0x229)](a2_0x4fabbe(0x29a),_0x172ec6=>{const _0x3fca4e=a2_0x4fabbe,_0x285f65=_0x172ec6[_0x3fca4e(0x35b)]();if(_0x285f65[_0x3fca4e(0x2c8)]){const _0x4ad317=resolve(_0x285f65[_0x3fca4e(0x2c8)]),_0x1945aa=_0x4ad317!==_0x285f65[_0x3fca4e(0x2c8)]?_0x3fca4e(0x2ba)+_0x4ad317+')':'';if(!existsSync(_0x4ad317))throw new SDKError(ErrorCode[_0x3fca4e(0x1d5)],_0x3fca4e(0x3c5)+_0x285f65[_0x3fca4e(0x2c8)]+_0x1945aa,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x26685c=statSync(_0x4ad317);if(!_0x26685c[_0x3fca4e(0x362)]())throw new SDKError(ErrorCode[_0x3fca4e(0x1d5)],_0x3fca4e(0x1e5)+_0x285f65['directory']+_0x1945aa,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x3fca4e(0x1e7)](_0x4ad317);}if(!_0x285f65[_0x3fca4e(0x40f)]){if(_0x285f65[_0x3fca4e(0x25c)])_0x285f65['format']=_0x3fca4e(0x25c);else{if(_0x285f65['json'])_0x285f65[_0x3fca4e(0x40f)]=_0x3fca4e(0x29f);else{if(_0x285f65[_0x3fca4e(0x3f6)])_0x285f65[_0x3fca4e(0x40f)]=_0x3fca4e(0x3f6);else _0x285f65[_0x3fca4e(0x2ca)]&&(_0x285f65[_0x3fca4e(0x40f)]='tsv');}}}_0x285f65['in']&&!_0x285f65[_0x3fca4e(0x2fc)]&&(_0x285f65[_0x3fca4e(0x2fc)]=_0x285f65['in']);if(_0x285f65[_0x3fca4e(0x363)])_0x285f65[_0x3fca4e(0x410)]=LogLevel[_0x3fca4e(0x3ee)];else{if(_0x285f65['debug'])_0x285f65[_0x3fca4e(0x410)]=LogLevel[_0x3fca4e(0x1cc)];else _0x285f65[_0x3fca4e(0x410)]===undefined&&(_0x285f65[_0x3fca4e(0x410)]=LogLevel['INFO']);}});async function createTDXInstance(_0x54f3e7){const _0x198775=a2_0x4fabbe,_0xbd96be=await GlobalContext['createAsync'](_0x54f3e7);return _0xbd96be['injectIntoOptions'](_0x54f3e7),TDX[_0x198775(0x347)]({'site':_0xbd96be[_0x198775(0x277)],'apiKey':_0xbd96be[_0x198775(0x1f3)],'logLevel':_0xbd96be['logLevel'],'profile':_0xbd96be[_0x198775(0x2e2)]});}const databaseCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2fc))[a2_0x4fabbe(0x39a)]('db')['description'](a2_0x4fabbe(0x23b)),databaseListAction=async(_0x54958e,_0x1bf99d)=>{const _0x26b47b=a2_0x4fabbe,_0x3d26c4=new DatabasesCommand(),_0x59fea7=program['opts'](),_0x48a752=await createTDXInstance(_0x59fea7),_0x3a39e3=await _0x3d26c4[_0x26b47b(0x25d)]({'options':{..._0x59fea7,..._0x1bf99d},'args':_0x54958e?[_0x54958e]:[],'tdx':_0x48a752});process[_0x26b47b(0x1d6)](_0x3a39e3);};databaseCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))['description'](a2_0x4fabbe(0x2e5))[a2_0x4fabbe(0x28d)](databaseListAction),program[a2_0x4fabbe(0x30b)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x4fabbe(0x272))['action'](databaseListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x28f))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x30f))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2fd),a2_0x4fabbe(0x24f))[a2_0x4fabbe(0x3cc)]('--new',a2_0x4fabbe(0x390))['action'](async(_0x514282,_0x2f5797)=>{const _0x4d431b=a2_0x4fabbe,_0xe12218=new ChatCommand(),_0x1fe788=program[_0x4d431b(0x35b)](),_0x34042a=await createTDXInstance(_0x1fe788),_0x527d15=await _0xe12218['run']({'options':{..._0x1fe788,..._0x2f5797},'args':_0x514282,'tdx':_0x34042a});process[_0x4d431b(0x1d6)](_0x527d15);});const apiCmd=program['command'](a2_0x4fabbe(0x2d1))[a2_0x4fabbe(0x25b)](a2_0x4fabbe(0x3ed))[a2_0x4fabbe(0x1f2)](a2_0x4fabbe(0x240),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')['option']('-X,\x20--method\x20<method>',a2_0x4fabbe(0x33b),a2_0x4fabbe(0x35d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b3),a2_0x4fabbe(0x253))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x35e),a2_0x4fabbe(0x408))[a2_0x4fabbe(0x3cc)]('-H,\x20--header\x20<header>',a2_0x4fabbe(0x341),(_0x52cdeb,_0x1d903d)=>{return _0x1d903d?[..._0x1d903d,_0x52cdeb]:[_0x52cdeb];})['option']('--type\x20<api_type>',a2_0x4fabbe(0x1bd),'td')[a2_0x4fabbe(0x28d)](async(_0x6af2db,_0x2635f4)=>{const _0x404ae1=a2_0x4fabbe;if(!_0x6af2db){apiCmd[_0x404ae1(0x27b)]();return;}const _0x521c9c=new ApiCommand(),_0x475a0d=program[_0x404ae1(0x35b)](),_0x493bd4=await createTDXInstance(_0x475a0d),_0x19e003=await _0x521c9c[_0x404ae1(0x25d)]({'options':{..._0x475a0d,..._0x2635f4},'args':[_0x6af2db],'tdx':_0x493bd4});process[_0x404ae1(0x1d6)](_0x19e003);});program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x373))['description'](a2_0x4fabbe(0x226))[a2_0x4fabbe(0x1f2)](a2_0x4fabbe(0x240),'\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a')[a2_0x4fabbe(0x28d)](async _0x23b704=>{const _0xf28b4c=a2_0x4fabbe,_0x1044be=new MCPCommand(),_0x494234=program[_0xf28b4c(0x35b)](),_0x456e10=await createTDXInstance(_0x494234),_0x2da07e=await _0x1044be[_0xf28b4c(0x25d)]({'options':{..._0x494234,..._0x23b704},'args':[],'tdx':_0x456e10});process[_0xf28b4c(0x1d6)](_0x2da07e);});const tableCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x25c))['description'](a2_0x4fabbe(0x289)),tableListAction=async(_0x4f443,_0x4adccc)=>{const _0x1d075b=a2_0x4fabbe,_0x358e60=new TablesCommand(),_0x17cd16=program['opts'](),_0x2587a6=await createTDXInstance(_0x17cd16);_0x4adccc['in']&&(_0x4adccc[_0x1d075b(0x2fc)]=_0x4adccc['in']);const _0x585890=await _0x358e60['run']({'options':{..._0x17cd16,..._0x4adccc},'args':_0x4f443?[_0x4f443]:[],'tdx':_0x2587a6});process[_0x1d075b(0x1d6)](_0x585890);};tableCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1d2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36f),a2_0x4fabbe(0x1df))['option'](a2_0x4fabbe(0x20c),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4fabbe(0x28d)](tableListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2f5),{'hidden':!![]})[a2_0x4fabbe(0x2c1)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x4fabbe(0x3cc)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x20c),a2_0x4fabbe(0x39c))[a2_0x4fabbe(0x28d)](tableListAction),program['command'](a2_0x4fabbe(0x367))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x297))[a2_0x4fabbe(0x3cc)]('-d,\x20--database\x20<database>',a2_0x4fabbe(0x1d8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x20c),a2_0x4fabbe(0x39c))[a2_0x4fabbe(0x28d)](async(_0x3e232f,_0x2300af)=>{const _0x5dc667=a2_0x4fabbe,_0x1e9d63=new ShowCommand(),_0x2683ae=program[_0x5dc667(0x35b)](),_0x2d9554=await createTDXInstance(_0x2683ae);_0x2300af['in']&&(_0x2300af[_0x5dc667(0x2fc)]=_0x2300af['in']);const _0xdf141f=await _0x1e9d63['run']({'options':{..._0x2683ae,..._0x2300af},'args':_0x3e232f?[_0x3e232f]:[],'tdx':_0x2d9554});process['exit'](_0xdf141f);}),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x331))[a2_0x4fabbe(0x39a)](a2_0x4fabbe(0x2c9))[a2_0x4fabbe(0x2c1)]('Describe\x20table\x20schema')['option']('-d,\x20--database\x20<database>',a2_0x4fabbe(0x1d8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x20c),a2_0x4fabbe(0x39c))['action'](async(_0x1f32bf,_0x26bdcf)=>{const _0x38733a=a2_0x4fabbe,_0x4fab2f=new DescribeCommand(),_0xad30e6=program['opts'](),_0x2138ee=await createTDXInstance(_0xad30e6);_0x26bdcf['in']&&(_0x26bdcf[_0x38733a(0x2fc)]=_0x26bdcf['in']);const _0x3fc1d2=await _0x4fab2f['run']({'options':{..._0xad30e6,..._0x26bdcf},'args':_0x1f32bf?[_0x1f32bf]:[],'tdx':_0x2138ee});process['exit'](_0x3fc1d2);}),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e2))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x38a))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36f),a2_0x4fabbe(0x1cb))[a2_0x4fabbe(0x3cc)]('--in\x20<database>',a2_0x4fabbe(0x39c))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2a2),a2_0x4fabbe(0x3fa))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x35e),a2_0x4fabbe(0x35f))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2fa),a2_0x4fabbe(0x2e9),'40')[a2_0x4fabbe(0x28d)](async(_0x5166fa,_0x4834c3)=>{const _0x110ceb=a2_0x4fabbe,_0x5f3da3=new QueryCommand(),_0xdad100=program[_0x110ceb(0x35b)](),_0x4becb2=await createTDXInstance(_0xdad100);_0x4834c3['in']&&(_0x4834c3['database']=_0x4834c3['in']);const _0x25da19=await _0x5f3da3[_0x110ceb(0x25d)]({'options':{..._0xdad100,..._0x4834c3},'args':_0x5166fa?[_0x5166fa]:[],'tdx':_0x4becb2});process['exit'](_0x25da19);});const segmentCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1cf))[a2_0x4fabbe(0x39a)]('sg')[a2_0x4fabbe(0x2c1)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0xa7c829,_0x13e7bf)=>{const _0x35f120=a2_0x4fabbe,_0x10d397=new SegmentsCommand(),_0x52d617=program[_0x35f120(0x35b)](),_0x4ce364=await createTDXInstance(_0x52d617),_0x5f95b0=await _0x10d397[_0x35f120(0x25d)]({'options':{..._0x52d617,..._0x13e7bf},'args':_0xa7c829?[_0xa7c829]:[],'tdx':_0x4ce364});process[_0x35f120(0x1d6)](_0x5f95b0);};function a2_0x464e(){const _0x124e44=['--session-id\x20<id>','--invisible','port','--timezone\x20<tz>','Set\x20a\x20profile\x20configuration\x20value','name','chats','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Show\x20the\x20most\x20recent\x20chat','Resume\x20a\x20conversation\x20(shows\x20selector)','Table\x20management\x20commands','--params\x20<json>','unset\x20<resource>','LLM\x20project\x20management','action','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','chat\x20[message...]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--attributes\x20<json>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Include\x20subtasks\x20in\x20tasks\x20output','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--include-subtasks','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Delete\x20an\x20LLM\x20project','Commands:','preAction','Parent\x20segment\x20description','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','-d,\x20--database\x20<name>','--default','json','Email\x20template\x20management','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--catalog\x20<catalog>','map','Update\x20a\x20campaign','push\x20[target]','Attributes\x20as\x20JSON\x20string','\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','us01','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','join','Skip\x20population\x20counting','[action]','Resume\x20a\x20paused\x20campaign','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','validate\x20[file]','fields\x20[parent_name]','--attribute\x20[name]','Create\x20an\x20email\x20template','--data\x20<data>','--dry-run','claude-4.5-sonnet','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Workflow\x20(Digdag)\x20management\x20commands','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','agent','\x20(resolved\x20to\x20',',\x20version\x20','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--description\x20<desc>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--llm-proxy\x20[url]','view\x20[segment_name]','description','clear','--no-eval','validate\x20[target]','-w,\x20--web','isTTY','argument','directory','desc','tsv','Master\x20table\x20name','--customer-group\x20<json>','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Resume\x20a\x20paused\x20journey','api\x20[endpoint]','registeredArguments','Master\x20database\x20name','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','111627SSZkXo','Workflow\x20attempt\x20management','--timeout\x20<seconds>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','models','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','parents\x20[pattern]','folders\x20<parent_name>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Skip\x20validation\x20of\x20.dig\x20files','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','profile','Add\x20behaviors\x20from\x20JSON\x20file','New\x20segment\x20name','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--limit\x20<n>','Include\x20retried\x20attempts\x20(for\x20list)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','desc\x20[segment_name]','pause\x20<name-or-path>','CDP\x20Journey\x20Orchestration\x20commands','pull\x20<project>\x20[target-dir]','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','delete\x20<project-name-or-id>','Overwrite\x20local\x20changes\x20without\x20confirmation','Output\x20as\x20JSON','--database\x20<db>','tables\x20[pattern]','--schedule-option\x20<value>','Parent\x20segment\x20management','engage','-f,\x20--force','--limit\x20<rows>','--full','database','--agent\x20<ref>','workflow','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--to\x20<timestamp>','Continue\x20most\x20recent\x20conversation','--max-depth\x20<depth>','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Pause\x20a\x20campaign','List\x20secret\x20keys\x20for\x20a\x20project','Custom\x20revision\x20name\x20(default:\x20timestamp)','--subject\x20<subject>','--session-time\x20<time>','Output\x20file\x20path\x20(default:\x20<name>.yml)','_hidden','command','run\x20[workflow]','Pull\x20child\x20segments\x20to\x20YAML\x20files','Database\x20to\x20use\x20(overrides\x20context)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','delete\x20<name-or-id>','--project\x20<name>','Create\x20segment\x20folder','-C,\x20--directory\x20<path>','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','list','--schedule-type\x20<type>','create\x20<parent_name>\x20<folder_name>','workspace','commands','user','use\x20<name>','Show\x20journey\x20details','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','schema\x20<type>','Updated\x20schedule\x20option','Show\x20campaign\x20details','--add-attributes\x20<json>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','List\x20agents\x20in\x20current\x20project','Show\x20timeline\x20for\x20specific\x20attempt','setup','Skip\x20confirmation\x20prompts','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','7542788FbKFHM','fields\x20[name]','--tsv','-r,\x20--recursive','Delete\x20an\x20email\x20template','Create\x20a\x20new\x20campaign','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20all\x20users\x20in\x20the\x20account','describe\x20[table]','resume\x20<name-or-path>','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--max-tool-iterations\x20<n>','--plaintext\x20<text>','--name\x20<text>','--table\x20<table>','retry\x20<session-id>','gitRevision','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Move\x20to\x20folder','--output\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file','Clear\x20session\x20context','Email\x20subject\x20template','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20all\x20data\x20connections','show\x20<name-or-id>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','create','Enable\x20verbose\x20logging','Campaign\x20name','Preview\x20without\x20creating\x20the\x20project','Workspace\x20name\x20(required)','Skip\x20confirmation\x20prompt','set','Create\x20a\x20workspace','list\x20[project]','--port\x20<number>','--workspace\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Delete\x20a\x20workspace','Show\x20workspace\x20details','subcommandDescription','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','707286APAorw','connections','Include\x20execution\x20statistics','opts','Behaviors\x20as\x20JSON\x20string','GET','-f,\x20--file\x20<path>','Read\x20SQL\x20query\x20from\x20file','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--reason\x20<text>','isDirectory','trace','allowExcessArguments','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','show\x20[name]','show\x20[table]','configureHelp','Force\x20retry\x20even\x20if\x20not\x20failed','449064ysDBYq','--status\x20<status>','--agent\x20<name>','templates\x20[pattern]','--clear','-d,\x20--database\x20<database>','-o,\x20--output\x20<dir>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20email\x20template\x20details','mcp','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','journey','update\x20<name>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Parent\x20folder\x20name\x20for\x20nested\x20folders','use\x20[project]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','Revision\x20name\x20(default:\x20timestamp)','Workflow\x20project\x20management','activations\x20<segment_name>','Folder\x20name\x20for\x20organization','-c,\x20--continue','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','parse','Open\x20segment\x20in\x20web\x20browser','restore\x20<folder>','Remove\x20a\x20profile','Set\x20operation\x20timeout\x20in\x20seconds','Duplicate\x20a\x20campaign','Workspace\x20name','Run\x20Trino\x20query\x20with\x20streaming\x20results','--folder\x20<name>','--skip-validation','Read\x20query\x20from\x20file','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','show\x20<agent-name>','Start\x20a\x20new\x20chat\x20session','Pull\x20workflow\x20project\x20to\x20local\x20folder','commandDescription','buildTime','create\x20<name>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--interval\x20<range>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--format\x20<format>','Agent\x20description','alias','profiles','Alias\x20for\x20--database\x20(natural\x20language\x20style)','push\x20[name]','project','--no-count-population','update\x20<name-or-id>','use\x20<project-name>','--rule-file\x20<file>','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','attempt','Update\x20an\x20existing\x20agent','pause\x20<name-or-id>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','tasks','show\x20<job-id>','download\x20<project-name>\x20[output-dir]','List\x20all\x20available\x20profiles','remove\x20<name>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Authentication\x20management','session','--llm-project\x20<name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','HTML\x20template\x20content','users','trino','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','New\x20template\x20name','--last','optionTerm','Workflow\x20session\x20management','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','backup\x20<name>','Show\x20segment\x20schema\x20(column\x20types)','journeys\x20[pattern]','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','14538zFDWEf','Behaviors\x20from\x20JSON\x20file','Launch\x20a\x20campaign','Updated\x20description','preview\x20[name]','Directory\x20does\x20not\x20exist:\x20','upload\x20[project-name-or-dir]','--type\x20<type>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--html\x20<html>','--rule\x20<json>','desc\x20[name]','option','List\x20available\x20LLM\x20models','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Output\x20folder\x20(default:\x20{project_name}.llm)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Delete\x20a\x20campaign','colorFn','test\x20[path]','Set\x20or\x20show\x20parent\x20segment\x20context','Manage\x20workflow\x20project\x20secrets','connection','--start-at\x20<datetime>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Updated\x20timezone','--add-behaviors\x20<json>','-o,\x20--output\x20<folder>','-n,\x20--name\x20<name>','create\x20[name]','--name\x20<names>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','push','delete\x20<args...>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','pull\x20[parent_or_file]','Show\x20master\x20table\x20sample\x20data','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Create\x20a\x20new\x20agent\x20in\x20current\x20project','info\x20[segment_name]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Run\x20specific\x20tests\x20(comma-separated)','Data\x20connection\x20management\x20(for\x20activations/exports)','Task\x20name\x20for\x20logs\x20action','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','TRACE','Workflow\x20parameter\x20(repeatable)','--from-task\x20<task>','Show\x20agent\x20details','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','grapesjs','Change\x20to\x20directory\x20before\x20executing\x20command','jsonl','filter','Workspace\x20description','--follow','Trino\x20catalog\x20(default:\x20td)','show\x20<name>','usage','catch','Options:','describe','--json','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--name\x20<name>','optionDescription','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','agents\x20[pattern]','--email-sender-id\x20<id>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Read\x20request\x20body\x20from\x20file','Show\x20connection\x20details\x20by\x20name','Attempt\x20ID','sonnet','2ssPAZp','pull\x20[project]\x20[agent-name]','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','format','logLevel','--model\x20<name>','-o,\x20--output\x20<file>','Get\x20job\x20results','0.7','Create\x20a\x20new\x20profile','beefree','length','--add-attributes-file\x20<file>','--from\x20<timestamp>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','-v,\x20--verbose','campaigns\x20[pattern]','AI-native\x20CLI\x20for\x20Treasure\x20Data','\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','--force','List\x20jobs','hidden','Job\x20management\x20commands','--master','options','replace','run\x20[name]','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','outputHelp','job','Preview\x20operation\x20without\x20executing','--session\x20<id>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--attempt-id\x20<id>','types','flatMap','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','696505FrNluz','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Database\x20to\x20query\x20(default:\x20information_schema)','DEBUG','push\x20[source-dir]','--enriched','segment','stderr','auth','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--parent-segment\x20<name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','INVALID_ARGUMENT','exit','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Timezone\x20(e.g.,\x20America/Los_Angeles)','-1d','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Database\x20name\x20(default:\x20information_schema)','padWidth','query\x20[sql]','argumentTerm','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Path\x20is\x20not\x20a\x20directory:\x20','push\x20[parent_or_file]','chdir','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','list\x20[pattern]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','push\x20[path]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--jsonl','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Add\x20attributes\x20from\x20JSON\x20file','--segment\x20<path>','--description\x20<text>','addHelpText','apiKey','Setup\x20API\x20key\x20authentication\x20interactively','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','44278zVFyoP','-u,\x20--use','Email\x20sender\x20ID\x20for\x20delivery','Create\x20a\x20new\x20LLM\x20project','Maximum\x20recursion\x20depth\x20(default:\x2010)','stats\x20<name-or-path>','campaign','workflows\x20[project]','preview\x20[file]','--starter-message\x20<text>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','information_schema','Show\x20job\x20details','Delete\x20an\x20agent','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','error','--limit\x20<number>','Follow/watch\x20timeline\x20for\x20running\x20attempts','get','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Update\x20a\x20workspace','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','--in\x20<database>','Clear\x20workflow\x20project\x20context','--attributes-file\x20<file>','create\x20<segment_name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--system-prompt\x20<text>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','List\x20journeys\x20in\x20current\x20context','attempt:','Agent\x20name','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','--include-retried','statusline','aliases','set\x20<args...>','--delete','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','4YXCIrj','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Output\x20as\x20JSON\x20Lines','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','proxy','Parse\x20and\x20validate\x20without\x20executing','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Show\x20stats\x20for\x20specific\x20stage','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','hook','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','New\x20workspace\x20name','Attributes\x20from\x20JSON\x20file','folder','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','slice','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Resume\x20from\x20specific\x20task\x20(retry)','--yes','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Pause\x20a\x20running\x20journey','-y,\x20--yes','Usage:\x20','jobs','Database\x20management\x20commands','attempts\x20[project]','tdx','launch\x20<name-or-id>','Plaintext\x20template\x20content','after','llm','projects\x20[pattern]','Make\x20segment\x20invisible\x20(default:\x20visible)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--revision\x20<revision>','Show\x20only\x20master\x20table\x20validation','settings\x20<type>','sql\x20[name]','553dyzRPa','Pull\x20specific\x20revision\x20(default:\x20latest)','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','view\x20<name-or-path>','--temperature\x20<n>','sql\x20[segment_name]','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Project\x20description','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Starter\x20message','Request\x20body\x20as\x20JSON\x20string','allowUnknownOption','requiredOption','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','kill\x20<job-id>','sessions\x20[project]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','120nXPczd','summary','table','run','includes','4000','--stage\x20<name>','clone\x20[source-dir]','subcommandTerm','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--behavior\x20[name]','history\x20[chat-id]','--behaviors-file\x20<file>','stdout','parent','Add\x20behaviors\x20as\x20JSON\x20string','Include\x20retried\x20attempts','forEach','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--color','validate\x20[name]','tdx\x20','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','--resume-from\x20<task>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','pull\x20[name]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','site','Preview\x20changes\x20without\x20writing\x20files','argv','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','help','--reeval','Export\x20journey(s)\x20as\x20YAML\x20files','Validate\x20journey\x20YAML\x20files\x20locally'];a2_0x464e=function(){return _0x124e44;};return a2_0x464e();}segmentCmd['command']('list\x20[path]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x295))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x32c),a2_0x4fabbe(0x1f5))[a2_0x4fabbe(0x3cc)]('--max-depth\x20<depth>',a2_0x4fabbe(0x1fa),'10')['action'](segmentListAction),program['command']('segments\x20[path]',{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3d8))[a2_0x4fabbe(0x3cc)]('-r,\x20--recursive',a2_0x4fabbe(0x1f5))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x302),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),segmentCmd['command']('use\x20<path>',{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x346))[a2_0x4fabbe(0x28d)](async(_0x35670b,_0x4bc6ae)=>{const _0x310ce9=a2_0x4fabbe,_0x24cad4=new SegmentUseCommand(),_0xf93b0d=program[_0x310ce9(0x35b)](),_0x5bc442=await createTDXInstance(_0xf93b0d),_0x52b937=await _0x24cad4[_0x310ce9(0x25d)]({'options':{..._0xf93b0d,..._0x4bc6ae},'args':[_0x35670b],'tdx':_0x5bc442});process[_0x310ce9(0x1d6)](_0x52b937);});const segmentViewAction=async(_0x5d1031,_0x348984)=>{const _0x3ffb78=a2_0x4fabbe,_0x280958=new SegmentViewCommand(),_0x545fef=program[_0x3ffb78(0x35b)](),_0x111dd9=await createTDXInstance(_0x545fef),_0x4ef7cc=await _0x280958['run']({'options':{..._0x545fef,..._0x348984},'args':_0x5d1031?[_0x5d1031]:[],'tdx':_0x111dd9});process[_0x3ffb78(0x1d6)](_0x4ef7cc);};segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2c0))[a2_0x4fabbe(0x2c1)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2c5),a2_0x4fabbe(0x384))[a2_0x4fabbe(0x28d)](segmentViewAction),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3e8),{'hidden':!![]})[a2_0x4fabbe(0x39a)](a2_0x4fabbe(0x3ff))[a2_0x4fabbe(0x3cc)]('-w,\x20--web',a2_0x4fabbe(0x384))[a2_0x4fabbe(0x2c1)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x4fabbe(0x28d)](segmentViewAction),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2ec))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3bd))[a2_0x4fabbe(0x28d)](async(_0x584b55,_0x1817b4)=>{const _0x40cef1=a2_0x4fabbe,_0xe60915=new SegmentDescCommand(),_0x1315b6=program[_0x40cef1(0x35b)](),_0x1e77b4=await createTDXInstance(_0x1315b6),_0x46734b=await _0xe60915['run']({'options':{..._0x1315b6,..._0x1817b4},'args':_0x584b55?[_0x584b55]:[],'tdx':_0x1e77b4});process[_0x40cef1(0x1d6)](_0x46734b);}),segmentCmd[a2_0x4fabbe(0x30b)]('show\x20[segment_name]')[a2_0x4fabbe(0x2c1)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x7195e5,_0x536cf3)=>{const _0x2cd2da=a2_0x4fabbe,_0x1e415a=new SegmentShowCommand(),_0x26dc58=program['opts'](),_0x1ef541=await createTDXInstance(_0x26dc58),_0x337adf=await _0x1e415a['run']({'options':{..._0x26dc58,..._0x536cf3},'args':_0x7195e5?[_0x7195e5]:[],'tdx':_0x1ef541});process[_0x2cd2da(0x1d6)](_0x337adf);}),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2de),{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x303))[a2_0x4fabbe(0x28d)](async(_0x58ba42,_0x4101f7)=>{const _0x1ba042=a2_0x4fabbe,_0x56045a=new SegmentFolderListCommand(),_0x243a65=program[_0x1ba042(0x35b)](),_0x13d9a8=await createTDXInstance(_0x243a65),_0x5467d5=await _0x56045a[_0x1ba042(0x25d)]({'options':{..._0x243a65,..._0x4101f7},'args':[_0x58ba42],'tdx':_0x13d9a8});process[_0x1ba042(0x1d6)](_0x5467d5);});const folderCmd=segmentCmd['command'](a2_0x4fabbe(0x230),{'hidden':!![]})[a2_0x4fabbe(0x2c1)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd['command']('show\x20<folder_ref>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x345))[a2_0x4fabbe(0x28d)](async(_0x3f64db,_0x1df9e8)=>{const _0x2618f9=a2_0x4fabbe,_0xcd30d1=new SegmentFolderShowCommand(),_0x4b4a70=program[_0x2618f9(0x35b)](),_0x4b79ed=await createTDXInstance(_0x4b4a70),_0x374ef2=await _0xcd30d1['run']({'options':{..._0x4b4a70,..._0x1df9e8},'args':[_0x3f64db],'tdx':_0x4b79ed});process[_0x2618f9(0x1d6)](_0x374ef2);}),segmentCmd['command'](a2_0x4fabbe(0x24e))[a2_0x4fabbe(0x2c1)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x187f10,_0x3adb2e)=>{const _0x708e6=a2_0x4fabbe,_0x4ab2db=new SegmentSQLCommand(),_0xe012e5=program[_0x708e6(0x35b)](),_0x3762b1=await createTDXInstance(_0xe012e5),_0x690f5d=await _0x4ab2db[_0x708e6(0x25d)]({'options':{..._0xe012e5,..._0x3adb2e},'args':_0x187f10?[_0x187f10]:[],'tdx':_0x3762b1});process[_0x708e6(0x1d6)](_0x690f5d);}),segmentCmd['command'](a2_0x4fabbe(0x2b0))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x259))[a2_0x4fabbe(0x28d)](async(_0xddd166,_0xfd9c)=>{const _0x5601b7=a2_0x4fabbe,_0x4dbdc8=new SegmentFieldsCommand(),_0x402c10=program[_0x5601b7(0x35b)](),_0x5dca06=await createTDXInstance(_0x402c10),_0x49064f=await _0x4dbdc8[_0x5601b7(0x25d)]({'options':{..._0x402c10,..._0xfd9c},'args':_0xddd166?[_0xddd166]:[],'tdx':_0x5dca06});process['exit'](_0x49064f);}),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3e3))['description'](a2_0x4fabbe(0x30d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompts')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x4fabbe(0x28d)](async(_0x3f37e1,_0x533e06)=>{const _0x3b0ca5=a2_0x4fabbe,_0x17b8fb=new SegmentPullCommand(),_0x55254c=program[_0x3b0ca5(0x35b)](),_0x5b54ec=await createTDXInstance(_0x55254c),_0x414ad9=await _0x17b8fb[_0x3b0ca5(0x25d)]({'options':{..._0x55254c,..._0x533e06},'args':_0x3f37e1?[_0x3f37e1]:[],'tdx':_0x5b54ec});process[_0x3b0ca5(0x1d6)](_0x414ad9);}),segmentCmd['command'](a2_0x4fabbe(0x1e6))[a2_0x4fabbe(0x2c1)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x4fabbe(0x3cc)]('-y,\x20--yes',a2_0x4fabbe(0x327))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),a2_0x4fabbe(0x2d9))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x21d),a2_0x4fabbe(0x286))[a2_0x4fabbe(0x28d)](async(_0x1c2953,_0x1c8091)=>{const _0x566419=a2_0x4fabbe,_0x1534d6=new SegmentPushCommand(),_0x513d5b=program[_0x566419(0x35b)](),_0x42137d=await createTDXInstance(_0x513d5b),_0x362f3a=await _0x1534d6[_0x566419(0x25d)]({'options':{..._0x513d5b,..._0x1c8091},'args':_0x1c2953?[_0x1c2953]:[],'tdx':_0x42137d});process[_0x566419(0x1d6)](_0x362f3a);}),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2c4))['description']('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x4fabbe(0x28d)](async(_0x1fc223,_0x2e1e8b)=>{const _0x482a32=a2_0x4fabbe,_0x489e52=new SegmentValidateCommand(),_0x49a9b7=program[_0x482a32(0x35b)](),_0x49a721=await createTDXInstance(_0x49a9b7),_0x294e1c=await _0x489e52[_0x482a32(0x25d)]({'options':{..._0x49a9b7,..._0x2e1e8b},'args':_0x1fc223?[_0x1fc223]:[],'tdx':_0x49a721});process[_0x482a32(0x1d6)](_0x294e1c);}),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x20f),{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2b8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1f1),'Segment\x20description')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3ca),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3a2),a2_0x4fabbe(0x33e))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x38b),a2_0x4fabbe(0x37f))[a2_0x4fabbe(0x3cc)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x280),a2_0x4fabbe(0x243))['option'](a2_0x4fabbe(0x39f),a2_0x4fabbe(0x2ab))['action'](async(_0x2a3db5,_0x8c11f0)=>{const _0x43940f=a2_0x4fabbe,_0x2cf0eb=new SegmentCreateCommand(),_0x4c5280=program[_0x43940f(0x35b)](),_0xfd98b6=await createTDXInstance(_0x4c5280),_0x9add1f=await _0x2cf0eb[_0x43940f(0x25d)]({'options':{..._0x4c5280,..._0x8c11f0},'args':[_0x2a3db5],'tdx':_0xfd98b6});process[_0x43940f(0x1d6)](_0x9add1f);}),segmentCmd[a2_0x4fabbe(0x30b)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x31e))['option']('--name\x20<new_name>',a2_0x4fabbe(0x2e4))['option'](a2_0x4fabbe(0x1f1),a2_0x4fabbe(0x3c3))['option'](a2_0x4fabbe(0x3ca),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x4fabbe(0x3a2),a2_0x4fabbe(0x3e5))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x38b),a2_0x4fabbe(0x33c))[a2_0x4fabbe(0x3cc)]('--kind\x20<type>',a2_0x4fabbe(0x1d7))[a2_0x4fabbe(0x28d)](async(_0x26bee0,_0x339425)=>{const _0x30927e=a2_0x4fabbe,_0x31ffb1=new SegmentUpdateCommand(),_0x53242f=program[_0x30927e(0x35b)](),_0x356020=await createTDXInstance(_0x53242f),_0x2dfc70=await _0x31ffb1['run']({'options':{..._0x53242f,..._0x339425},'args':[_0x26bee0],'tdx':_0x356020});process[_0x30927e(0x1d6)](_0x2dfc70);});const parentCmd=segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x269),{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x292)),parentListAction=async(_0x422c69,_0x12ab37)=>{const _0x16b0e0=a2_0x4fabbe,_0x42376b=new ParentSegmentListCommand(),_0x2991ea=program[_0x16b0e0(0x35b)](),_0x3d6d92=await createTDXInstance(_0x2991ea),_0xe16ab1=await _0x42376b[_0x16b0e0(0x25d)]({'options':{..._0x2991ea,..._0x12ab37},'args':_0x422c69?[_0x422c69]:[],'tdx':_0x3d6d92});process[_0x16b0e0(0x1d6)](_0xe16ab1);};parentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x4fabbe(0x28d)](parentListAction),segmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2dd),{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x20b))[a2_0x4fabbe(0x28d)](parentListAction),parentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x275))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x342))['option'](a2_0x4fabbe(0x1a8),a2_0x4fabbe(0x309))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompt')['action'](async(_0x2d3d15,_0x7181f2)=>{const _0x373f86=a2_0x4fabbe,_0x5ba07d=new ParentSegmentPullCommand(),_0xf3379c=program[_0x373f86(0x35b)](),_0x4aa355=await createTDXInstance(_0xf3379c),_0x1a15e7=await _0x5ba07d['run']({'options':{..._0xf3379c,..._0x7181f2},'args':_0x2d3d15?[_0x2d3d15]:[],'tdx':_0x4aa355});process[_0x373f86(0x1d6)](_0x1a15e7);}),parentCmd['command']('push\x20[file]')[a2_0x4fabbe(0x2c1)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['option']('-y,\x20--yes',a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](async(_0x240abb,_0x2fb498)=>{const _0x1b0e9a=a2_0x4fabbe,_0x2d3960=new ParentSegmentPushCommand(),_0x2b7175=program[_0x1b0e9a(0x35b)](),_0x4017ce=await createTDXInstance(_0x2b7175),_0x5e2ebc=await _0x2d3960[_0x1b0e9a(0x25d)]({'options':{..._0x2b7175,..._0x2fb498},'args':_0x240abb?[_0x240abb]:[],'tdx':_0x4017ce});process[_0x1b0e9a(0x1d6)](_0x5e2ebc);}),parentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2af))['description'](a2_0x4fabbe(0x2ce))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1b9),a2_0x4fabbe(0x246))['option'](a2_0x4fabbe(0x2b1),a2_0x4fabbe(0x2a1))['option'](a2_0x4fabbe(0x265),a2_0x4fabbe(0x382))['option'](a2_0x4fabbe(0x1ce),a2_0x4fabbe(0x2dc))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x396),a2_0x4fabbe(0x1d9),a2_0x4fabbe(0x1dd))[a2_0x4fabbe(0x28d)](async(_0x152f81,_0x4ed4c1)=>{const _0x246b08=a2_0x4fabbe,_0x1caf27=new ParentSegmentValidateCommand(),_0x5aca28=program[_0x246b08(0x35b)](),_0xeaeeb7=await createTDXInstance(_0x5aca28),_0x178e95=await _0x1caf27['run']({'options':{..._0x5aca28,..._0x4ed4c1},'args':_0x152f81?[_0x152f81]:[],'tdx':_0xeaeeb7});process[_0x246b08(0x1d6)](_0x178e95);}),parentCmd['command'](a2_0x4fabbe(0x1fe))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1de))[a2_0x4fabbe(0x3cc)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x4fabbe(0x3cc)]('--attribute\x20[name]',a2_0x4fabbe(0x221))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x265),a2_0x4fabbe(0x3ce))['option'](a2_0x4fabbe(0x1ce),a2_0x4fabbe(0x1d4))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x396),a2_0x4fabbe(0x1d9),a2_0x4fabbe(0x1dd))['action'](async(_0x332c1e,_0x3902f9)=>{const _0x52ed98=new ParentSegmentPreviewCommand(),_0x3b8734=program['opts'](),_0x23a484=await createTDXInstance(_0x3b8734),_0x2d6d10=await _0x52ed98['run']({'options':{..._0x3b8734,..._0x3902f9},'args':_0x332c1e?[_0x332c1e]:[],'tdx':_0x23a484});process['exit'](_0x2d6d10);}),parentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1bc))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3e2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](async(_0x20fdff,_0x2da1ea)=>{const _0x92c03a=a2_0x4fabbe,_0x5c6841=new ParentSegmentRunCommand(),_0x5586e7=program['opts'](),_0x57acc4=await createTDXInstance(_0x5586e7),_0x432524=await _0x5c6841['run']({'options':{..._0x5586e7,..._0x2da1ea},'args':_0x20fdff?[_0x20fdff]:[],'tdx':_0x57acc4});process[_0x92c03a(0x1d6)](_0x432524);});const parentSegmentCmd=program[a2_0x4fabbe(0x30b)]('parent-segment')[a2_0x4fabbe(0x39a)]('ps')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2f7));parentSegmentCmd[a2_0x4fabbe(0x30b)]('list\x20[pattern]')[a2_0x4fabbe(0x2c1)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd['command'](a2_0x4fabbe(0x275))['description'](a2_0x4fabbe(0x1ec))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1a8),'Output\x20file\x20path')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))['option'](a2_0x4fabbe(0x1f7),a2_0x4fabbe(0x310))[a2_0x4fabbe(0x28d)](async(_0x2c5683,_0x1e005f)=>{const _0x48be18=a2_0x4fabbe,_0x40d40a=new ParentSegmentPullCommand(),_0x223e89=program[_0x48be18(0x35b)](),_0x1b7c91=await createTDXInstance(_0x223e89),_0x76ecd0=await _0x40d40a['run']({'options':{..._0x223e89,..._0x1e005f},'args':_0x2c5683?[_0x2c5683]:[],'tdx':_0x1b7c91});process[_0x48be18(0x1d6)](_0x76ecd0);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x39d))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x210))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](async(_0x4a5d69,_0x2a4a39)=>{const _0x4e512b=a2_0x4fabbe,_0x31e2e8=new ParentSegmentPushCommand(),_0x398a58=program['opts'](),_0x528e4d=await createTDXInstance(_0x398a58),_0x58952f=await _0x31e2e8['run']({'options':{..._0x398a58,..._0x2a4a39},'args':_0x4a5d69?[_0x4a5d69]:[],'tdx':_0x528e4d});process[_0x4e512b(0x1d6)](_0x58952f);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x26f))[a2_0x4fabbe(0x2c1)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4fabbe(0x3cc)]('--master',a2_0x4fabbe(0x246))[a2_0x4fabbe(0x3cc)]('--attribute\x20[name]',a2_0x4fabbe(0x2a1))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x265),a2_0x4fabbe(0x382))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1ce),a2_0x4fabbe(0x2dc))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x396),a2_0x4fabbe(0x1d9),a2_0x4fabbe(0x1dd))[a2_0x4fabbe(0x28d)](async(_0x27f07e,_0x305aeb)=>{const _0x1129ee=a2_0x4fabbe,_0x16a182=new ParentSegmentValidateCommand(),_0x317879=program[_0x1129ee(0x35b)](),_0x57c7a3=await createTDXInstance(_0x317879),_0x3667b0=await _0x16a182[_0x1129ee(0x25d)]({'options':{..._0x317879,..._0x305aeb},'args':_0x27f07e?[_0x27f07e]:[],'tdx':_0x57c7a3});process['exit'](_0x3667b0);}),parentSegmentCmd['command'](a2_0x4fabbe(0x3c4))[a2_0x4fabbe(0x2c1)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1b9),a2_0x4fabbe(0x3e4))['option'](a2_0x4fabbe(0x2b1),a2_0x4fabbe(0x221))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x265),a2_0x4fabbe(0x3ce))[a2_0x4fabbe(0x3cc)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x396),a2_0x4fabbe(0x1d9),a2_0x4fabbe(0x1dd))[a2_0x4fabbe(0x28d)](async(_0x17af6a,_0x5d7305)=>{const _0x383f50=a2_0x4fabbe,_0x3c6977=new ParentSegmentPreviewCommand(),_0x488f73=program['opts'](),_0x219250=await createTDXInstance(_0x488f73),_0x174558=await _0x3c6977[_0x383f50(0x25d)]({'options':{..._0x488f73,..._0x5d7305},'args':_0x17af6a?[_0x17af6a]:[],'tdx':_0x219250});process[_0x383f50(0x1d6)](_0x174558);}),parentSegmentCmd['command'](a2_0x4fabbe(0x1bc))[a2_0x4fabbe(0x2c1)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompt')[a2_0x4fabbe(0x28d)](async(_0x1ccc0b,_0xbb100)=>{const _0x3bdcd4=a2_0x4fabbe,_0x12e936=new ParentSegmentRunCommand(),_0x208990=program[_0x3bdcd4(0x35b)](),_0x561567=await createTDXInstance(_0x208990),_0x54de92=await _0x12e936[_0x3bdcd4(0x25d)]({'options':{..._0x208990,..._0xbb100},'args':_0x1ccc0b?[_0x1ccc0b]:[],'tdx':_0x561567});process[_0x3bdcd4(0x1d6)](_0x54de92);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x32a))['description'](a2_0x4fabbe(0x204))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x400),a2_0x4fabbe(0x2f3))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1ed),a2_0x4fabbe(0x222))[a2_0x4fabbe(0x28d)](async(_0x1a31ba,_0x4e8373)=>{const _0x4cf9ee=a2_0x4fabbe,_0x883e40=new ParentSegmentFieldsCommand(),_0x174cd9=program[_0x4cf9ee(0x35b)](),_0x5d7d0e=await createTDXInstance(_0x174cd9),_0x2fd79a=await _0x883e40[_0x4cf9ee(0x25d)]({'options':{..._0x174cd9,..._0x4e8373},'args':_0x1a31ba?[_0x1a31ba]:[],'tdx':_0x5d7d0e});process[_0x4cf9ee(0x1d6)](_0x2fd79a);}),parentSegmentCmd['command']('view\x20[name]')['description'](a2_0x4fabbe(0x21f))['option'](a2_0x4fabbe(0x2c5),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x4fabbe(0x3cc)]('--json',a2_0x4fabbe(0x2f3))['option']('--jsonl',a2_0x4fabbe(0x222))['action'](async(_0xc29c7e,_0x112884)=>{const _0xc6c3ef=a2_0x4fabbe,_0x9798e4=new ParentSegmentViewCommand(),_0xa8f3c7=program[_0xc6c3ef(0x35b)](),_0x5b33e4=await createTDXInstance(_0xa8f3c7),_0x170982=await _0x9798e4[_0xc6c3ef(0x25d)]({'options':{..._0xa8f3c7,..._0x112884},'args':_0xc29c7e?[_0xc29c7e]:[],'tdx':_0x5b33e4});process[_0xc6c3ef(0x1d6)](_0x170982);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3cb))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x212))['option'](a2_0x4fabbe(0x400),a2_0x4fabbe(0x2f3))['option'](a2_0x4fabbe(0x1ed),a2_0x4fabbe(0x222))['action'](async(_0x1a9d9a,_0x342ad6)=>{const _0xdf40ea=a2_0x4fabbe,_0x4ebc86=new ParentSegmentDescCommand(),_0x31dcc6=program[_0xdf40ea(0x35b)](),_0x10fe9d=await createTDXInstance(_0x31dcc6),_0x4885cd=await _0x4ebc86['run']({'options':{..._0x31dcc6,..._0x342ad6},'args':_0x1a9d9a?[_0x1a9d9a]:[],'tdx':_0x10fe9d});process[_0xdf40ea(0x1d6)](_0x4885cd);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x248))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1ca))[a2_0x4fabbe(0x3cc)]('--json',a2_0x4fabbe(0x2f3))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0x21207e,_0x4f6c45)=>{const _0x58dfef=a2_0x4fabbe,_0x3b78a2=new ParentSegmentSQLCommand(),_0x580f4b=program[_0x58dfef(0x35b)](),_0x4bf8fd=await createTDXInstance(_0x580f4b),_0x2ab2f5=await _0x3b78a2[_0x58dfef(0x25d)]({'options':{..._0x580f4b,..._0x4f6c45},'args':_0x21207e?[_0x21207e]:[],'tdx':_0x4bf8fd});process[_0x58dfef(0x1d6)](_0x2ab2f5);}),parentSegmentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x366))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1da))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2e7),'Limit\x20number\x20of\x20rows')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x400),a2_0x4fabbe(0x2f3))['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x4fabbe(0x28d)](async(_0xde2899,_0x461f92)=>{const _0xcc92f9=a2_0x4fabbe,_0x504b9c=new ParentSegmentShowCommand(),_0x4e44cd=program[_0xcc92f9(0x35b)](),_0x3b60da=await createTDXInstance(_0x4e44cd),_0xe93f7a=await _0x504b9c['run']({'options':{..._0x4e44cd,..._0x461f92},'args':_0xde2899?[_0xde2899]:[],'tdx':_0x3b60da});process[_0xcc92f9(0x1d6)](_0xe93f7a);}),parentSegmentCmd[a2_0x4fabbe(0x30b)]('use\x20[name]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3d4))[a2_0x4fabbe(0x28d)](async(_0x331a1c,_0x3d7f8d)=>{const _0x515b59=a2_0x4fabbe,_0x3ac85c=new UseCommand(),_0x3ed081=program[_0x515b59(0x35b)](),_0x1b0647=_0x331a1c?['parent_segment',_0x331a1c]:[],_0x45d484=await _0x3ac85c['run']({'options':{..._0x3ed081,..._0x3d7f8d},'args':_0x1b0647,'tdx':null});process['exit'](_0x45d484);}),parentCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x394))['description'](a2_0x4fabbe(0x378))['requiredOption'](a2_0x4fabbe(0x2f4),a2_0x4fabbe(0x2d3))[a2_0x4fabbe(0x255)](a2_0x4fabbe(0x338),a2_0x4fabbe(0x2cb))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1f1),a2_0x4fabbe(0x29b))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x317),a2_0x4fabbe(0x1ee))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2f6),a2_0x4fabbe(0x3c8))['option']('--timezone\x20<tz>',a2_0x4fabbe(0x1dc))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x291),a2_0x4fabbe(0x2a6))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x20e),a2_0x4fabbe(0x22f))[a2_0x4fabbe(0x3cc)]('--behaviors\x20<json>',a2_0x4fabbe(0x35c))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x267),a2_0x4fabbe(0x3c1))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2cc),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x4fabbe(0x3cc)]('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')[a2_0x4fabbe(0x28d)](async(_0x179b6d,_0xd2a798)=>{const _0x1d766c=a2_0x4fabbe,_0x47c4af=new ParentSegmentCreateCommand(),_0x5db216=program[_0x1d766c(0x35b)](),_0x3a920d=await createTDXInstance(_0x5db216),_0x5eb029=await _0x47c4af[_0x1d766c(0x25d)]({'options':{..._0x5db216,..._0xd2a798},'args':[_0x179b6d],'tdx':_0x3a920d});process['exit'](_0x5eb029);}),parentCmd['command'](a2_0x4fabbe(0x376))['description'](a2_0x4fabbe(0x28e))[a2_0x4fabbe(0x3cc)]('--description\x20<text>',a2_0x4fabbe(0x3c3))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x317),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2f6),a2_0x4fabbe(0x320))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x282),a2_0x4fabbe(0x3d9))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x322),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1ae),a2_0x4fabbe(0x1ef))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3da),a2_0x4fabbe(0x26a))[a2_0x4fabbe(0x3cc)]('--add-behaviors-file\x20<file>',a2_0x4fabbe(0x2e3))['action'](async(_0x420c0e,_0x290135)=>{const _0x55ff67=a2_0x4fabbe,_0x1ea121=new ParentSegmentUpdateCommand(),_0x518f96=program[_0x55ff67(0x35b)](),_0x460ae3=await createTDXInstance(_0x518f96),_0x1696e3=await _0x1ea121[_0x55ff67(0x25d)]({'options':{..._0x518f96,..._0x290135},'args':[_0x420c0e],'tdx':_0x460ae3});process[_0x55ff67(0x1d6)](_0x1696e3);}),folderCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x318))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x313))['option'](a2_0x4fabbe(0x1f1),'Folder\x20description')[a2_0x4fabbe(0x3cc)]('--parent-folder\x20<name>',a2_0x4fabbe(0x379))['action'](async(_0x2712bc,_0x439c2e,_0x15589a)=>{const _0x3bbe1e=a2_0x4fabbe,_0x46be2b=new SegmentFolderCreateCommand(),_0x2378a9=program[_0x3bbe1e(0x35b)](),_0x4c9fa6=await createTDXInstance(_0x2378a9),_0x63c777=await _0x46be2b[_0x3bbe1e(0x25d)]({'options':{..._0x2378a9,..._0x15589a},'args':[_0x2712bc,_0x439c2e],'tdx':_0x4c9fa6});process[_0x3bbe1e(0x1d6)](_0x63c777);}),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x37e))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x251))['action'](async(_0x551609,_0x57fe93)=>{const _0x4ef6d3=a2_0x4fabbe,_0x2c5885=new ActivationsCommand(),_0x1e6d84=program['opts'](),_0x668e8d=await createTDXInstance(_0x1e6d84),_0xb58bf0=await _0x2c5885[_0x4ef6d3(0x25d)]({'options':{..._0x1e6d84,..._0x57fe93},'args':[_0x551609],'tdx':_0x668e8d});process[_0x4ef6d3(0x1d6)](_0xb58bf0);});const workflowCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2fe))[a2_0x4fabbe(0x39a)]('wf')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2b7)),wfProjectCmd=workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x39e))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x37d)),wfProjectListAction=async(_0x5e1bbc,_0x513910)=>{const _0x3c92a6=a2_0x4fabbe,_0x1ea0d6=new WorkflowProjectsCommand(),_0x172ef5=program['opts'](),_0x45e843=await createTDXInstance(_0x172ef5),_0x216acd=await _0x1ea0d6['run']({'options':{..._0x172ef5,..._0x513910},'args':_0x5e1bbc?[_0x5e1bbc]:[],'tdx':_0x45e843});process[_0x3c92a6(0x1d6)](_0x216acd);};wfProjectCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x4fabbe(0x28d)](wfProjectListAction),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x242))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x371))[a2_0x4fabbe(0x28d)](wfProjectListAction);const wfWorkflowListAction=async(_0x4f0c2c,_0x363da5)=>{const _0x37fffe=a2_0x4fabbe,_0x340a7b=new WorkflowWorkflowsCommand(),_0x63f3ee=program[_0x37fffe(0x35b)](),_0x339dac=await createTDXInstance(_0x63f3ee),_0x32c260=await _0x340a7b[_0x37fffe(0x25d)]({'options':{..._0x63f3ee,..._0x363da5},'args':_0x4f0c2c?[_0x4f0c2c]:[],'tdx':_0x339dac});process[_0x37fffe(0x1d6)](_0x32c260);};workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1fd))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1ea))[a2_0x4fabbe(0x28d)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x4fabbe(0x3af))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3ba)),wfSessionListAction=async(_0x34720e,_0x2c9570)=>{const _0x2aa587=a2_0x4fabbe,_0x46fdf3=new WorkflowSessionsCommand(),_0x512286=program[_0x2aa587(0x35b)](),_0x2f07e4=await createTDXInstance(_0x512286),_0x42de23=await _0x46fdf3[_0x2aa587(0x25d)]({'options':{..._0x512286,..._0x2c9570},'args':_0x34720e?[_0x34720e]:[],'tdx':_0x2f07e4});process[_0x2aa587(0x1d6)](_0x42de23);};wfSessionCmd[a2_0x4fabbe(0x30b)]('list\x20[project]')['description'](a2_0x4fabbe(0x264))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36b),a2_0x4fabbe(0x3b2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1af),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x300),a2_0x4fabbe(0x3d0))[a2_0x4fabbe(0x28d)](wfSessionListAction),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x258))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2e1))[a2_0x4fabbe(0x3cc)]('--status\x20<status>',a2_0x4fabbe(0x3b2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1af),a2_0x4fabbe(0x290))['option']('--to\x20<timestamp>',a2_0x4fabbe(0x3d0))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x520527,_0x1c36f8)=>{const _0x4dbfa4=a2_0x4fabbe,_0x1645ee=new WorkflowAttemptsCommand(),_0x26590f=program[_0x4dbfa4(0x35b)](),_0x264f66=await createTDXInstance(_0x26590f),_0x50476f=await _0x1645ee[_0x4dbfa4(0x25d)]({'options':{..._0x26590f,..._0x1c36f8},'args':_0x520527?[_0x520527]:[],'tdx':_0x264f66});process[_0x4dbfa4(0x1d6)](_0x50476f);},attemptCmd=workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3a4))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2d6))[a2_0x4fabbe(0x2c7)]('[attempt-id]',a2_0x4fabbe(0x40a))[a2_0x4fabbe(0x2c7)](a2_0x4fabbe(0x2ac),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument']('[task-name]',a2_0x4fabbe(0x3ec))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x296),a2_0x4fabbe(0x293))['option'](a2_0x4fabbe(0x361),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x273),a2_0x4fabbe(0x234))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x28a),a2_0x4fabbe(0x294))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1b5),a2_0x4fabbe(0x369))[a2_0x4fabbe(0x3cc)]('--include-retried',a2_0x4fabbe(0x2e8))[a2_0x4fabbe(0x28d)](async(_0x498b4d,_0x5c8a28,_0xeed803,_0xa3a261)=>{const _0x30a530=a2_0x4fabbe;if(_0x498b4d===_0x30a530(0x316)){await wfAttemptListAction(_0x5c8a28,_0xa3a261);return;}if(!_0x498b4d){attemptCmd[_0x30a530(0x27b)]();return;}const _0x571f7e=program[_0x30a530(0x35b)](),_0x3a3404=await createTDXInstance(_0x571f7e);let _0x1c2fed=0x0;if(!_0x5c8a28){const _0x272fca=new WorkflowAttemptCommand();_0x1c2fed=await _0x272fca[_0x30a530(0x25d)]({'options':{..._0x571f7e,..._0xa3a261},'args':[_0x498b4d],'tdx':_0x3a3404});}else{if(_0x5c8a28==='logs'){const _0x224a23=new WorkflowLogsCommand();_0x1c2fed=await _0x224a23[_0x30a530(0x25d)]({'options':{..._0x571f7e,..._0xa3a261},'args':_0xeed803?[_0x498b4d,_0xeed803]:[_0x498b4d],'tdx':_0x3a3404});}else{if(_0x5c8a28===_0x30a530(0x3a8)){const _0x283ad9=new WorkflowTasksCommand();_0x1c2fed=await _0x283ad9[_0x30a530(0x25d)]({'options':{..._0x571f7e,..._0xa3a261},'args':[_0x498b4d],'tdx':_0x3a3404});}else{if(_0x5c8a28==='kill'){const _0x4c9eaa=new WorkflowKillCommand();_0x1c2fed=await _0x4c9eaa['run']({'options':{..._0x571f7e,..._0xa3a261},'args':[_0x498b4d],'tdx':_0x3a3404});}else{if(_0x5c8a28==='retry'){const _0x62fa28=new WorkflowRetryCommand();_0x1c2fed=await _0x62fa28[_0x30a530(0x25d)]({'options':{..._0x571f7e,..._0xa3a261},'args':[_0x30a530(0x216)+_0x498b4d],'tdx':_0x3a3404});}else console[_0x30a530(0x205)]('Unknown\x20action:\x20'+_0x5c8a28),console['error'](_0x30a530(0x3e6)),_0x1c2fed=0x1;}}}}process[_0x30a530(0x1d6)](_0x1c2fed);});attemptCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x34f))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x22b))[a2_0x4fabbe(0x3cc)]('--include-retried','Include\x20retried\x20attempts')[a2_0x4fabbe(0x28d)](wfAttemptListAction),workflowCmd['command'](a2_0x4fabbe(0x23c))[a2_0x4fabbe(0x2c1)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x219),a2_0x4fabbe(0x26b))[a2_0x4fabbe(0x28d)](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')['description'](a2_0x4fabbe(0x374))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3f9),a2_0x4fabbe(0x207))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x27f),a2_0x4fabbe(0x381))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1c5),a2_0x4fabbe(0x325))[a2_0x4fabbe(0x28d)](async(_0x4a174c,_0x418d3b)=>{const _0x5d4d4a=a2_0x4fabbe,_0x5bfb95=new WorkflowTimelineCommand(),_0x4f048a=program['opts'](),_0x49b002=await createTDXInstance(_0x4f048a),_0x40e69b=await _0x5bfb95[_0x5d4d4a(0x25d)]({'options':{..._0x4f048a,..._0x418d3b},'args':_0x4a174c?[_0x4a174c]:[],'tdx':_0x49b002});process['exit'](_0x40e69b);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x339))['description'](a2_0x4fabbe(0x1be))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3f0),'Resume\x20from\x20specific\x20task')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x28a),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x3f4369,_0x294b6e)=>{const _0x18f69a=a2_0x4fabbe,_0x1a22bf=new WorkflowRetryCommand(),_0xd6da34=program[_0x18f69a(0x35b)](),_0x444992=await createTDXInstance(_0xd6da34),_0x40ff92=await _0x1a22bf[_0x18f69a(0x25d)]({'options':{..._0xd6da34,..._0x294b6e},'args':[_0x3f4369],'tdx':_0x444992});process[_0x18f69a(0x1d6)](_0x40ff92);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x30c))[a2_0x4fabbe(0x2c1)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x4fabbe(0x3cc)]('--param\x20<key=value>',a2_0x4fabbe(0x3ef),(_0x57a954,_0x2c25ac=[])=>[..._0x2c25ac,_0x57a954],[])[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x308),a2_0x4fabbe(0x256))[a2_0x4fabbe(0x28d)](async(_0x59ce3b,_0x20b38)=>{const _0x5e1354=a2_0x4fabbe,_0x59382b=new WorkflowRunCommand(),_0x176a53=program[_0x5e1354(0x35b)](),_0x3e1589=await createTDXInstance(_0x176a53),_0x51c3f5=await _0x59382b[_0x5e1354(0x25d)]({'options':{..._0x176a53,..._0x20b38},'args':_0x59ce3b?[_0x59ce3b]:[],'tdx':_0x3e1589});process[_0x5e1354(0x1d6)](_0x51c3f5);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3aa))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x38e))['option'](a2_0x4fabbe(0x245),a2_0x4fabbe(0x271))['action'](async(_0xd3bd5c,_0x4cb151,_0x5f56a4)=>{const _0x38ec48=a2_0x4fabbe,_0x53d8b9=new WorkflowDownloadCommand(),_0x49be77=program[_0x38ec48(0x35b)](),_0x2ba420=await createTDXInstance(_0x49be77),_0x126dad=await _0x53d8b9['run']({'options':{..._0x49be77,..._0x5f56a4},'args':[_0xd3bd5c,_0x4cb151||'.'],'tdx':_0x2ba420});process[_0x38ec48(0x1d6)](_0x126dad);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2ef))['description'](a2_0x4fabbe(0x391))[a2_0x4fabbe(0x3cc)]('--revision\x20<revision>',a2_0x4fabbe(0x24a))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),a2_0x4fabbe(0x278))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompt')['action'](async(_0x3f873c,_0x2d2314,_0x109e8a)=>{const _0x5edb8e=a2_0x4fabbe,_0x3312c5=new WorkflowPullCommand(),_0x55e881=program[_0x5edb8e(0x35b)](),_0x35eb90=await createTDXInstance(_0x55e881),_0x154709=await _0x3312c5[_0x5edb8e(0x25d)]({'options':{..._0x55e881,..._0x109e8a},'args':_0x2d2314?[_0x3f873c,_0x2d2314]:[_0x3f873c],'tdx':_0x35eb90});process[_0x5edb8e(0x1d6)](_0x154709);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1cd))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x29c))['option'](a2_0x4fabbe(0x245),a2_0x4fabbe(0x306))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),'Preview\x20changes\x20without\x20pushing')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x38c),a2_0x4fabbe(0x2e0))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))['action'](async(_0xf6ef46,_0x2740e0)=>{const _0x1913c6=a2_0x4fabbe,_0x2217e8=new WorkflowPushCommand(),_0x52caf5=program[_0x1913c6(0x35b)](),_0x55d10f=await createTDXInstance(_0x52caf5),_0x4faf7f=await _0x2217e8['run']({'options':{..._0x52caf5,..._0x2740e0},'args':_0xf6ef46?[_0xf6ef46]:[],'tdx':_0x55d10f});process[_0x1913c6(0x1d6)](_0x4faf7f);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3c6))['description'](a2_0x4fabbe(0x3a7))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x402),'Override\x20project\x20name')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x245),a2_0x4fabbe(0x37c))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x38c),a2_0x4fabbe(0x2e0))[a2_0x4fabbe(0x28d)](async(_0xed6f7f,_0x488a8b)=>{const _0x106728=a2_0x4fabbe,_0x17693b=new WorkflowUploadCommand(),_0x35c213=program[_0x106728(0x35b)](),_0x568073=await createTDXInstance(_0x35c213),_0x15a5cb=await _0x17693b[_0x106728(0x25d)]({'options':{..._0x35c213,..._0x488a8b},'args':_0xed6f7f?[_0xed6f7f]:[],'tdx':_0x568073});process[_0x106728(0x1d6)](_0x15a5cb);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x261))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x209))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x402),'Name\x20for\x20the\x20new\x20project\x20(required)')['option']('--revision\x20<revision>',a2_0x4fabbe(0x306))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),a2_0x4fabbe(0x34a))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x38c),a2_0x4fabbe(0x2e0))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](async(_0xa62db6,_0x1833e2)=>{const _0x3b5241=a2_0x4fabbe,_0x3489f2=new WorkflowCloneCommand(),_0x538335=program[_0x3b5241(0x35b)](),_0x30c0ed=await createTDXInstance(_0x538335),_0x4dcf22=await _0x3489f2['run']({'options':{..._0x538335,..._0x1833e2},'args':_0xa62db6?[_0xa62db6]:[],'tdx':_0x30c0ed});process[_0x3b5241(0x1d6)](_0x4dcf22);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2f1))[a2_0x4fabbe(0x2c1)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x4fabbe(0x28d)](async(_0x3fd28d,_0x2cab05)=>{const _0x3ce4e4=a2_0x4fabbe,_0xe2e759=new WorkflowDeleteCommand(),_0x384d8c=program['opts'](),_0x312340=await createTDXInstance(_0x384d8c),_0x5e7edc=await _0xe2e759[_0x3ce4e4(0x25d)]({'options':{..._0x384d8c,..._0x2cab05},'args':[_0x3fd28d],'tdx':_0x312340});process[_0x3ce4e4(0x1d6)](_0x5e7edc);}),workflowCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x37a))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2ea))['option'](a2_0x4fabbe(0x36e),a2_0x4fabbe(0x20d))[a2_0x4fabbe(0x28d)](async(_0x58a9d3,_0x3dc6f0)=>{const _0x472983=a2_0x4fabbe,_0xbf3d29=new WorkflowUseCommand(),_0x5dcc05=program['opts'](),_0xe49412=await createTDXInstance(_0x5dcc05),_0x3bfe22=await _0xbf3d29[_0x472983(0x25d)]({'options':{..._0x5dcc05,..._0x3dc6f0},'args':_0x58a9d3?[_0x58a9d3]:[],'tdx':_0xe49412});process[_0x472983(0x1d6)](_0x3bfe22);});const wfSecretsCmd=workflowCmd[a2_0x4fabbe(0x30b)]('secrets')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3d5));wfSecretsCmd['command'](a2_0x4fabbe(0x34f))['description'](a2_0x4fabbe(0x305))[a2_0x4fabbe(0x28d)](async(_0x330396,_0x141bf1)=>{const _0x56770f=a2_0x4fabbe,_0x5b90dc=new WorkflowSecretsListCommand(),_0x1c3dc9=program[_0x56770f(0x35b)](),_0x9939f1=await createTDXInstance(_0x1c3dc9),_0x4dcf8c=await _0x5b90dc[_0x56770f(0x25d)]({'options':{..._0x1c3dc9,..._0x141bf1},'args':_0x330396?[_0x330396]:[],'tdx':_0x9939f1});process[_0x56770f(0x1d6)](_0x4dcf8c);}),wfSecretsCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x21c))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x407))[a2_0x4fabbe(0x28d)](async(_0x542703,_0x2e30bb)=>{const _0x5616ab=a2_0x4fabbe,_0x772166=new WorkflowSecretsSetCommand(),_0xd72614=program['opts'](),_0x4eabe1=await createTDXInstance(_0xd72614),_0xfe90ab=await _0x772166[_0x5616ab(0x25d)]({'options':{..._0xd72614,..._0x2e30bb},'args':_0x542703,'tdx':_0x4eabe1});process[_0x5616ab(0x1d6)](_0xfe90ab);}),wfSecretsCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3e1))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2b6))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),'Skip\x20confirmation\x20prompt')[a2_0x4fabbe(0x28d)](async(_0x23b03a,_0x5b47a9)=>{const _0x5e3efd=a2_0x4fabbe,_0x4172a6=new WorkflowSecretsDeleteCommand(),_0x2afb25=program['opts'](),_0x406eb7=await createTDXInstance(_0x2afb25),_0x546188=await _0x4172a6[_0x5e3efd(0x25d)]({'options':{..._0x2afb25,..._0x5b47a9},'args':_0x23b03a,'tdx':_0x406eb7});process[_0x5e3efd(0x1d6)](_0x546188);});const jobCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1c1))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1b8)),jobListAction=async _0x2a28e0=>{const _0xc0b7bf=a2_0x4fabbe,_0x38830c=new JobListCommand(),_0x5d0e79=program[_0xc0b7bf(0x35b)](),_0x2330b7=await createTDXInstance(_0x5d0e79),_0x4314eb=await _0x38830c[_0xc0b7bf(0x25d)]({'options':{..._0x5d0e79,..._0x2a28e0},'args':[],'tdx':_0x2330b7});process[_0xc0b7bf(0x1d6)](_0x4314eb);};jobCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x316))['description'](a2_0x4fabbe(0x1b6))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36b),a2_0x4fabbe(0x2df))[a2_0x4fabbe(0x28d)](jobListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x23a),{'hidden':!![]})[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x244))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36b),a2_0x4fabbe(0x2df))['action'](jobListAction),jobCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3a9))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x202))['action'](async(_0xf9bfb6,_0x40f9e2)=>{const _0x48cf5f=a2_0x4fabbe,_0x2717b8=new JobShowCommand(),_0xa3460e=program[_0x48cf5f(0x35b)](),_0x3eccc=await createTDXInstance(_0xa3460e),_0x277204=await _0x2717b8[_0x48cf5f(0x25d)]({'options':{..._0xa3460e,..._0x40f9e2},'args':[_0xf9bfb6],'tdx':_0x3eccc});process[_0x48cf5f(0x1d6)](_0x277204);}),jobCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x257))[a2_0x4fabbe(0x2c1)]('Kill\x20a\x20job')[a2_0x4fabbe(0x28d)](async(_0x49ce02,_0x7bdea)=>{const _0x1250b1=a2_0x4fabbe,_0x438c39=new JobKillCommand(),_0xe66a7=program[_0x1250b1(0x35b)](),_0x5e8fcc=await createTDXInstance(_0xe66a7),_0x4d8d21=await _0x438c39[_0x1250b1(0x25d)]({'options':{..._0xe66a7,..._0x7bdea},'args':[_0x49ce02],'tdx':_0x5e8fcc});process[_0x1250b1(0x1d6)](_0x4d8d21);}),jobCmd[a2_0x4fabbe(0x30b)]('submit\x20[query]')['description']('Submit\x20a\x20job')['option']('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x4fabbe(0x3b5))['option']('-f,\x20--file\x20<path>',a2_0x4fabbe(0x38d))['option']('--database\x20<name>',a2_0x4fabbe(0x1e0),a2_0x4fabbe(0x201))[a2_0x4fabbe(0x28d)](async(_0x1e8a15,_0x28df55)=>{const _0x1ca7ee=a2_0x4fabbe,_0x10a2fd=new JobSubmitCommand(),_0x32cffc=program[_0x1ca7ee(0x35b)](),_0x22d254=await createTDXInstance(_0x32cffc),_0x1c1354=await _0x10a2fd[_0x1ca7ee(0x25d)]({'options':{..._0x32cffc,..._0x28df55},'args':_0x1e8a15?[_0x1e8a15]:[],'tdx':_0x22d254});process['exit'](_0x1c1354);}),jobCmd[a2_0x4fabbe(0x30b)]('result\x20<job-id>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1a9))['action'](async(_0x16b0b7,_0x475077)=>{const _0x48eee8=a2_0x4fabbe,_0x5b019f=new JobResultCommand(),_0x3dbd8a=program['opts'](),_0x5562c2=await createTDXInstance(_0x3dbd8a),_0x5724ce=await _0x5b019f[_0x48eee8(0x25d)]({'options':{..._0x3dbd8a,..._0x475077},'args':[_0x16b0b7],'tdx':_0x5562c2});process[_0x48eee8(0x1d6)](_0x5724ce);});const llmCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x241))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1c8));llmCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3a1))['description'](a2_0x4fabbe(0x3e9))['action'](async(_0x1e2760,_0x533d51)=>{const _0x3c9296=a2_0x4fabbe,_0x6b4220=new LLMUseCommand(),_0xea4fe2=program['opts'](),_0x45e2a1=await createTDXInstance(_0xea4fe2),_0xc69066=await _0x6b4220[_0x3c9296(0x25d)]({'options':{..._0xea4fe2,..._0x533d51},'args':[_0x1e2760],'tdx':_0x45e2a1});process[_0x3c9296(0x1d6)](_0xc69066);}),llmCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2da))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3cd))[a2_0x4fabbe(0x28d)](async _0x33ae4b=>{const _0x2b9420=a2_0x4fabbe,_0x1e7615=new LLMModelsCommand(),_0x20c292=program['opts'](),_0x193b9a=await createTDXInstance(_0x20c292),_0xf2629=await _0x1e7615[_0x2b9420(0x25d)]({'options':{..._0x20c292,..._0x33ae4b},'args':[],'tdx':_0x193b9a});process[_0x2b9420(0x1d6)](_0xf2629);});const projectCmd=llmCmd['command'](a2_0x4fabbe(0x39e))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x28c)),llmProjectListAction=async(_0x3dc509,_0x3f637e)=>{const _0x12718c=a2_0x4fabbe,_0x3856a9=new LLMProjectsCommand(),_0x4a1db7=program[_0x12718c(0x35b)](),_0x3e18fe=await createTDXInstance(_0x4a1db7),_0x379589=await _0x3856a9[_0x12718c(0x25d)]({'options':{..._0x4a1db7,..._0x3f637e},'args':_0x3dc509?[_0x3dc509]:[],'tdx':_0x3e18fe});process[_0x12718c(0x1d6)](_0x379589);};projectCmd[a2_0x4fabbe(0x30b)]('list\x20[pattern]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x401))[a2_0x4fabbe(0x28d)](llmProjectListAction),llmCmd[a2_0x4fabbe(0x30b)]('projects\x20[pattern]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x360))[a2_0x4fabbe(0x28d)](llmProjectListAction),projectCmd['command'](a2_0x4fabbe(0x394))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1f9))['option']('--description\x20<text>',a2_0x4fabbe(0x250))[a2_0x4fabbe(0x28d)](async(_0x3d430b,_0x4effcb)=>{const _0x5553b5=a2_0x4fabbe,_0x153f8b=new LLMProjectCreateCommand(),_0x6ec8cd=program[_0x5553b5(0x35b)](),_0x5e2840=await createTDXInstance(_0x6ec8cd),_0x1a30b1=await _0x153f8b[_0x5553b5(0x25d)]({'options':{..._0x6ec8cd,..._0x4effcb},'args':[_0x3d430b],'tdx':_0x5e2840});process[_0x5553b5(0x1d6)](_0x1a30b1);}),projectCmd[a2_0x4fabbe(0x30b)]('delete\x20<name>')['description'](a2_0x4fabbe(0x298))[a2_0x4fabbe(0x28d)](async(_0x217052,_0x4e6f72)=>{const _0x5c480a=a2_0x4fabbe,_0x5a516e=new LLMProjectDeleteCommand(),_0x38f108=program[_0x5c480a(0x35b)](),_0x2cd9c9=await createTDXInstance(_0x38f108),_0x4bd3e0=await _0x5a516e[_0x5c480a(0x25d)]({'options':{..._0x38f108,..._0x4e6f72},'args':[_0x217052],'tdx':_0x2cd9c9});process[_0x5c480a(0x1d6)](_0x4bd3e0);}),projectCmd['command'](a2_0x4fabbe(0x3bc))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3f2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3db),a2_0x4fabbe(0x3cf))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),a2_0x4fabbe(0x3a3))[a2_0x4fabbe(0x28d)](async(_0x7e9bce,_0x3c0e54)=>{const _0x1fae1f=a2_0x4fabbe,_0x37167f=new LLMProjectBackupCommand(),_0x35cf50=program[_0x1fae1f(0x35b)](),_0xbdb0ac=await createTDXInstance(_0x35cf50),_0xf1e445=await _0x37167f['run']({'options':{..._0x35cf50,..._0x3c0e54},'args':[_0x7e9bce],'tdx':_0xbdb0ac});process['exit'](_0xf1e445);}),projectCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x385))['description'](a2_0x4fabbe(0x2cf))[a2_0x4fabbe(0x3cc)]('--name\x20<new-name>',a2_0x4fabbe(0x2be))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2b4),a2_0x4fabbe(0x353))['action'](async(_0x246d56,_0x495190)=>{const _0x396925=a2_0x4fabbe,_0x2e0ba5=new LLMProjectRestoreCommand(),_0xddafe0=program[_0x396925(0x35b)](),_0x3a46ee=await createTDXInstance(_0xddafe0),_0x2e8df8=await _0x2e0ba5[_0x396925(0x25d)]({'options':{..._0xddafe0,..._0x495190},'args':[_0x246d56],'tdx':_0x3a46ee});process['exit'](_0x2e8df8);});const llmAgentListAction=async(_0x58ebfd,_0x281924)=>{const _0x2cd36a=a2_0x4fabbe,_0x26e5c3=new LLMAgentsCommand(),_0x3d8ec0=program['opts'](),_0x1389ad=await createTDXInstance(_0x3d8ec0),_0x4fa72a=await _0x26e5c3[_0x2cd36a(0x25d)]({'options':{..._0x3d8ec0,..._0x281924},'args':_0x58ebfd?[_0x58ebfd]:[],'tdx':_0x1389ad});process['exit'](_0x4fa72a);};llmCmd['command']('agents\x20[pattern]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x40e))[a2_0x4fabbe(0x28d)](llmAgentListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x405))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x40e))[a2_0x4fabbe(0x28d)](llmAgentListAction),llmCmd['command'](a2_0x4fabbe(0x266))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x22a))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3b8),a2_0x4fabbe(0x377))[a2_0x4fabbe(0x28d)](async(_0x3f9734,_0x3fa94e)=>{const _0x6531a7=a2_0x4fabbe,_0xb2624c=new LLMHistoryCommand(),_0x5a997b=program[_0x6531a7(0x35b)](),_0x207389=await createTDXInstance(_0x5a997b),_0x47bb99=await _0xb2624c['run']({'options':{..._0x5a997b,..._0x3fa94e},'args':_0x3f9734?[_0x3f9734]:[],'tdx':_0x207389});process[_0x6531a7(0x1d6)](_0x47bb99);}),llmCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x224))['description'](a2_0x4fabbe(0x2cd))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x350),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x4fabbe(0x25f))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x312),a2_0x4fabbe(0x2db))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36c),a2_0x4fabbe(0x2bc))[a2_0x4fabbe(0x28d)](async _0x2ace5e=>{const _0x4c4f83=a2_0x4fabbe,_0x54f452=new LLMProxyCommand(),_0x545b27=program[_0x4c4f83(0x35b)](),_0x117e92=await createTDXInstance(_0x545b27),_0x388254={..._0x2ace5e,'port':_0x2ace5e[_0x4c4f83(0x281)]?parseInt(_0x2ace5e['port'],0xa):undefined},_0x2c2b17=await _0x54f452[_0x4c4f83(0x25d)]({'options':{..._0x545b27,..._0x388254},'args':[],'tdx':_0x117e92});process['exit'](_0x2c2b17);}),program['command']('claude\x20[args...]')[a2_0x4fabbe(0x3fc)]('[options]\x20--\x20[claude-code-args...]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1b0))[a2_0x4fabbe(0x3cc)]('--model\x20<name>',a2_0x4fabbe(0x24b),a2_0x4fabbe(0x40b))['option'](a2_0x4fabbe(0x380),a2_0x4fabbe(0x301))[a2_0x4fabbe(0x3cc)]('-r,\x20--resume',a2_0x4fabbe(0x288))[a2_0x4fabbe(0x3cc)]('--no-proxy',a2_0x4fabbe(0x2ae))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2bf),a2_0x4fabbe(0x2d4))[a2_0x4fabbe(0x254)]()[a2_0x4fabbe(0x364)](!![])[a2_0x4fabbe(0x1f2)]('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\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x4fabbe(0x28d)](async(_0x35afb7,_0x2a9516)=>{const _0x2dddc0=a2_0x4fabbe,_0x41de92=program[_0x2dddc0(0x35b)](),_0x4b3e1b=Array['isArray'](_0x35afb7)?_0x35afb7:[];if(_0x4b3e1b[0x0]===_0x2dddc0(0x21a)){const _0x43b8c3=new ClaudeStatuslineCommand(),_0x400aad=await _0x43b8c3[_0x2dddc0(0x25d)]({'options':{..._0x41de92,..._0x2a9516},'args':_0x4b3e1b['slice'](0x1),'tdx':null});process['exit'](_0x400aad);}if(_0x4b3e1b[0x0]===_0x2dddc0(0x3fc)){const _0x3a1aef=new ClaudeUsageCommand(),_0x5e66e2=await _0x3a1aef[_0x2dddc0(0x25d)]({'options':{..._0x41de92,..._0x2a9516},'args':_0x4b3e1b['slice'](0x1),'tdx':null});process['exit'](_0x5e66e2);}const _0x35f2c3=new ClaudeCommand(),_0x203343=await createTDXInstance(_0x41de92),_0x56493e=await _0x35f2c3['run']({'options':{..._0x41de92,..._0x2a9516},'args':_0x4b3e1b,'tdx':_0x203343});process[_0x2dddc0(0x1d6)](_0x56493e);}),program['command']('use\x20[resource]\x20[value]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x328))['option'](a2_0x4fabbe(0x36e),a2_0x4fabbe(0x33f))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x29e),a2_0x4fabbe(0x334))[a2_0x4fabbe(0x28d)](async(_0x30f114,_0xe49a54,_0x260afe)=>{const _0xb162a7=a2_0x4fabbe,_0xdb65ad=new UseCommand(),_0x19069b=program[_0xb162a7(0x35b)](),_0x11dbf7=[];if(_0x30f114)_0x11dbf7[_0xb162a7(0x3e0)](_0x30f114);if(_0xe49a54)_0x11dbf7[_0xb162a7(0x3e0)](_0xe49a54);const _0x3981e4=await _0xdb65ad[_0xb162a7(0x25d)]({'options':{..._0x19069b,..._0x260afe},'args':_0x11dbf7,'tdx':null});process[_0xb162a7(0x1d6)](_0x3981e4);}),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x28b))[a2_0x4fabbe(0x2c1)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')['option']('--default',a2_0x4fabbe(0x3ad))[a2_0x4fabbe(0x28d)](async(_0x55b33a,_0x42b025)=>{const _0xdbce72=a2_0x4fabbe,_0x278af0=new UnsetCommand(),_0x26471d=program[_0xdbce72(0x35b)](),_0xda92af=await _0x278af0[_0xdbce72(0x25d)]({'options':{..._0x26471d,..._0x42b025},'args':[_0x55b33a],'tdx':null});process[_0xdbce72(0x1d6)](_0xda92af);}),program['command'](a2_0x4fabbe(0x285))[a2_0x4fabbe(0x2c1)]('Interactive\x20chat\x20selector')[a2_0x4fabbe(0x3cc)]('--last',a2_0x4fabbe(0x287))[a2_0x4fabbe(0x28d)](async _0x192c7d=>{const _0x3d554c=a2_0x4fabbe,_0x1202e6=new ChatsCommand(),_0x1460b6=program[_0x3d554c(0x35b)](),_0x3737fc=await createTDXInstance(_0x1460b6),_0x67ee00=await _0x1202e6[_0x3d554c(0x25d)]({'options':{..._0x1460b6,..._0x192c7d},'args':[],'tdx':_0x3737fc});process[_0x3d554c(0x1d6)](_0x67ee00);});const authCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1d1))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3ae));async function runAuthStatusCommand(_0x26813c){const _0x390427=a2_0x4fabbe,_0x20ad35=new AuthStatusCommand(),_0x203c17=program[_0x390427(0x35b)](),_0x5ace03=await createTDXInstance(_0x203c17),_0x26912f=await _0x20ad35[_0x390427(0x25d)]({'options':{..._0x203c17,..._0x26813c},'args':[],'tdx':_0x5ace03});process[_0x390427(0x1d6)](_0x26912f);}authCmd[a2_0x4fabbe(0x28d)](runAuthStatusCommand),authCmd[a2_0x4fabbe(0x30b)]('status')['description'](a2_0x4fabbe(0x2a9))[a2_0x4fabbe(0x28d)](runAuthStatusCommand),authCmd['command'](a2_0x4fabbe(0x326))['description'](a2_0x4fabbe(0x1f4))['addHelpText'](a2_0x4fabbe(0x240),a2_0x4fabbe(0x1b4))['action'](async _0x2b984e=>{const _0x3e1d80=a2_0x4fabbe,_0x1b58af=new AuthSetupCommand(),_0x4454dc=program['opts'](),_0x7d3584=await createTDXInstance(_0x4454dc),_0x5039ae=await _0x1b58af[_0x3e1d80(0x25d)]({'options':{..._0x4454dc,..._0x2b984e},'args':[],'tdx':_0x7d3584});process[_0x3e1d80(0x1d6)](_0x5039ae);}),authCmd['command'](a2_0x4fabbe(0x2c2))[a2_0x4fabbe(0x2c1)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x4fabbe(0x240),a2_0x4fabbe(0x2a7))['action'](async _0x2ca650=>{const _0x377014=a2_0x4fabbe,_0x4b16c5=new AuthClearCommand(),_0x25e48a=program['opts'](),_0x474c39=await _0x4b16c5['run']({'options':{..._0x25e48a,..._0x2ca650},'args':[],'tdx':null});process[_0x377014(0x1d6)](_0x474c39);});const userCmd=program['command'](a2_0x4fabbe(0x31b))[a2_0x4fabbe(0x2c1)]('User\x20management\x20commands'),userListAction=async _0x2197ef=>{const _0x842a26=a2_0x4fabbe,_0x5ec25c=new UserListCommand(),_0x4de6eb=program['opts'](),_0x5ea33b=await createTDXInstance(_0x4de6eb),_0x2a23a3=await _0x5ec25c['run']({'options':{..._0x4de6eb,..._0x2197ef},'args':[],'tdx':_0x5ea33b});process[_0x842a26(0x1d6)](_0x2a23a3);};userCmd[a2_0x4fabbe(0x28d)](async _0x205f80=>{const _0x34e393=a2_0x4fabbe,_0x2632af=new UserCommand(),_0x5227a3=program[_0x34e393(0x35b)](),_0x5be2be=await createTDXInstance(_0x5227a3),_0x26955a=await _0x2632af[_0x34e393(0x25d)]({'options':{..._0x5227a3,..._0x205f80},'args':[],'tdx':_0x5be2be});process[_0x34e393(0x1d6)](_0x26955a);}),userCmd['command'](a2_0x4fabbe(0x316))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x330))[a2_0x4fabbe(0x28d)](userListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3b4))['description'](a2_0x4fabbe(0x1c4))[a2_0x4fabbe(0x28d)](userListAction),program['command'](a2_0x4fabbe(0x39b))['description'](a2_0x4fabbe(0x3ab))[a2_0x4fabbe(0x28d)](async _0x66bbbe=>{const _0xfe8ae9=a2_0x4fabbe,_0x5a2e74=new ProfilesCommand(),_0x39e96b=program[_0xfe8ae9(0x35b)](),_0x2bc302=await _0x5a2e74[_0xfe8ae9(0x25d)]({'options':{..._0x39e96b,..._0x66bbbe},'args':[],'tdx':null});process[_0xfe8ae9(0x1d6)](_0x2bc302);});const profileCmd=program[a2_0x4fabbe(0x30b)]('profile')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3bb));profileCmd[a2_0x4fabbe(0x28d)](()=>{const _0x3d80d9=a2_0x4fabbe;profileCmd[_0x3d80d9(0x1c0)]();});const profileListAction=async _0x2a08c8=>{const _0xddf5bc=a2_0x4fabbe,_0x53b349=new ProfilesCommand(),_0x4f3307=program[_0xddf5bc(0x35b)](),_0x1e6104=await _0x53b349[_0xddf5bc(0x25d)]({'options':{..._0x4f3307,..._0x2a08c8},'args':[],'tdx':null});process[_0xddf5bc(0x1d6)](_0x1e6104);};profileCmd['command']('list')['description']('List\x20all\x20available\x20profiles')[a2_0x4fabbe(0x28d)](profileListAction),profileCmd['command'](a2_0x4fabbe(0x3dd))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1ab))[a2_0x4fabbe(0x1f2)](a2_0x4fabbe(0x240),a2_0x4fabbe(0x37b))[a2_0x4fabbe(0x28d)](async(_0x3d281e,_0x1d8535)=>{const _0x2b36e5=a2_0x4fabbe,_0x3559fb=new ProfileCreateCommand(),_0x5bc8e2=program[_0x2b36e5(0x35b)](),_0x413c65=await _0x3559fb['run']({'options':{..._0x5bc8e2,..._0x1d8535},'args':_0x3d281e?[_0x3d281e]:[],'tdx':null});process[_0x2b36e5(0x1d6)](_0x413c65);}),profileCmd['command'](a2_0x4fabbe(0x3ac))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x386))[a2_0x4fabbe(0x1f2)](a2_0x4fabbe(0x240),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x4fabbe(0x28d)](async(_0x3efd36,_0x2f8982)=>{const _0x2add8a=a2_0x4fabbe,_0x1fb064=new ProfileRemoveCommand(),_0x150355=program[_0x2add8a(0x35b)](),_0x5d228c=await _0x1fb064[_0x2add8a(0x25d)]({'options':{..._0x150355,..._0x2f8982},'args':[_0x3efd36],'tdx':null});process[_0x2add8a(0x1d6)](_0x5d228c);}),profileCmd[a2_0x4fabbe(0x30b)]('set\x20<key=value>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x283))['addHelpText'](a2_0x4fabbe(0x240),a2_0x4fabbe(0x333))[a2_0x4fabbe(0x28d)](async(_0x33929f,_0x13ca17)=>{const _0x1c759b=a2_0x4fabbe,_0x3df421=new ProfileSetCommand(),_0x43aeb7=program[_0x1c759b(0x35b)](),_0x33008a=await _0x3df421[_0x1c759b(0x25d)]({'options':{..._0x43aeb7,..._0x13ca17},'args':[_0x33929f],'tdx':null});process[_0x1c759b(0x1d6)](_0x33008a);}),profileCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x31c))[a2_0x4fabbe(0x2c1)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')['option']('--default',a2_0x4fabbe(0x334))[a2_0x4fabbe(0x1f2)]('after',a2_0x4fabbe(0x3b1))[a2_0x4fabbe(0x28d)](async(_0x2900e9,_0x3d1f5c)=>{const _0x4cab37=a2_0x4fabbe,_0x48955e=new ProfileUseCommand(),_0x5498eb=program[_0x4cab37(0x35b)](),_0x403d67=await _0x48955e[_0x4cab37(0x25d)]({'options':{..._0x5498eb,..._0x3d1f5c},'args':[_0x2900e9],'tdx':null});process[_0x4cab37(0x1d6)](_0x403d67);});const engageCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2f8))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x218)),createEngageAction=_0x3edee3=>{return async(_0x5352e8,_0x2d8745)=>{const _0x182c69=a2_0x176a,_0xfa3fcc=new _0x3edee3(),_0x4ab4dd=program[_0x182c69(0x35b)](),_0x318cbd=await createTDXInstance(_0x4ab4dd),_0xc46d40=await _0xfa3fcc['run']({'options':{..._0x4ab4dd,..._0x2d8745},'args':[_0x5352e8],'tdx':_0x318cbd});process[_0x182c69(0x1d6)](_0xc46d40);};},createEngageNoArgAction=_0x1fada9=>{return async _0x1d2375=>{const _0x207de0=a2_0x176a,_0x4f8483=new _0x1fada9(),_0x3cc410=program[_0x207de0(0x35b)](),_0x33c4c2=await createTDXInstance(_0x3cc410),_0x56e0c7=await _0x4f8483[_0x207de0(0x25d)]({'options':{..._0x3cc410,..._0x1d2375},'args':[],'tdx':_0x33c4c2});process[_0x207de0(0x1d6)](_0x56e0c7);};},campaignCmd=engageCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1fc))[a2_0x4fabbe(0x2c1)]('Campaign\x20management'),campaignListAction=async(_0x5b29eb,_0xd77a22)=>{const _0x37bcae=a2_0x4fabbe,_0x5aa923=new EngageCampaignsCommand(),_0xdee85e=program[_0x37bcae(0x35b)](),_0x5ee101=await createTDXInstance(_0xdee85e),_0x14ce0b=await _0x5aa923[_0x37bcae(0x25d)]({'options':{..._0xdee85e,..._0xd77a22},'args':_0x5b29eb?[_0x5b29eb]:[],'tdx':_0x5ee101});process[_0x37bcae(0x1d6)](_0x14ce0b);};campaignCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1db))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3c7),a2_0x4fabbe(0x1e8))[a2_0x4fabbe(0x3cc)]('--status\x20<status>',a2_0x4fabbe(0x357))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))[a2_0x4fabbe(0x28d)](campaignListAction),engageCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1b2))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3bf))[a2_0x4fabbe(0x3cc)]('--type\x20<type>',a2_0x4fabbe(0x1e8))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x36b),a2_0x4fabbe(0x357))['option'](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))[a2_0x4fabbe(0x28d)](campaignListAction),campaignCmd[a2_0x4fabbe(0x30b)]('show\x20<name-or-id>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x321))['option'](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2fb),a2_0x4fabbe(0x276))[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x347))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x32e))[a2_0x4fabbe(0x255)](a2_0x4fabbe(0x402),a2_0x4fabbe(0x349))[a2_0x4fabbe(0x255)](a2_0x4fabbe(0x3c7),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x34b))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2bd),'Campaign\x20description')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1f0),a2_0x4fabbe(0x200))['option'](a2_0x4fabbe(0x406),a2_0x4fabbe(0x1f8))[a2_0x4fabbe(0x3cc)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3d7),a2_0x4fabbe(0x263))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x282),a2_0x4fabbe(0x3f3))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x4fabbe(0x3a0))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2a4))['option'](a2_0x4fabbe(0x351),'Workspace\x20name')[a2_0x4fabbe(0x3cc)]('--name\x20<name>','New\x20campaign\x20name')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2bd),'Campaign\x20description')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1f0),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x406),a2_0x4fabbe(0x1f8))[a2_0x4fabbe(0x3cc)]('--json-columns\x20<cols>',a2_0x4fabbe(0x26d))[a2_0x4fabbe(0x3cc)]('--start-at\x20<datetime>',a2_0x4fabbe(0x263))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x282),a2_0x4fabbe(0x3f3))[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x311))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3d1))['option'](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))['option'](a2_0x4fabbe(0x235),a2_0x4fabbe(0x34c))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x23e))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3c2))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x4fabbe(0x3a6))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x304))['option'](a2_0x4fabbe(0x351),'Workspace\x20name')[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command']('resume\x20<name-or-id>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2ad))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x388))[a2_0x4fabbe(0x3cc)]('--workspace\x20<name>','Workspace\x20name')[a2_0x4fabbe(0x28d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2a0)),templateListAction=async(_0xd0ea15,_0x1c383a)=>{const _0x388870=a2_0x4fabbe,_0x2039b9=new EngageTemplatesCommand(),_0x496719=program[_0x388870(0x35b)](),_0x2c6e11=await createTDXInstance(_0x496719),_0x1321ed=await _0x2039b9['run']({'options':{..._0x496719,..._0x1c383a},'args':_0xd0ea15?[_0xd0ea15]:[],'tdx':_0x2c6e11});process['exit'](_0x1321ed);};templateCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),'Workspace\x20name')[a2_0x4fabbe(0x28d)](templateListAction),engageCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x36d))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2f0))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))['action'](templateListAction),templateCmd[a2_0x4fabbe(0x30b)]('show\x20<name-or-id>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x372))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x389))['option'](a2_0x4fabbe(0x2fb),a2_0x4fabbe(0x276))[a2_0x4fabbe(0x28d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x347))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2b2))[a2_0x4fabbe(0x255)]('--name\x20<name>','Template\x20name')[a2_0x4fabbe(0x255)](a2_0x4fabbe(0x307),a2_0x4fabbe(0x340))[a2_0x4fabbe(0x255)](a2_0x4fabbe(0x3c9),a2_0x4fabbe(0x3b3))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),a2_0x4fabbe(0x34b))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x336),'Plaintext\x20template\x20content')['option']('--editor-type\x20<type>',a2_0x4fabbe(0x315),_0x24078a=>{const _0x2a39ed=a2_0x4fabbe;if(![_0x2a39ed(0x1ac),_0x2a39ed(0x3f4)][_0x2a39ed(0x25e)](_0x24078a))throw new SDKError(ErrorCode[_0x2a39ed(0x1d5)],'Invalid\x20editor\x20type:\x20'+_0x24078a+_0x2a39ed(0x1bf));return _0x24078a;})[a2_0x4fabbe(0x28d)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4fabbe(0x30b)]('update\x20<name-or-id>')[a2_0x4fabbe(0x2c1)]('Update\x20an\x20email\x20template')[a2_0x4fabbe(0x3cc)]('--workspace\x20<name>',a2_0x4fabbe(0x389))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x402),a2_0x4fabbe(0x3b7))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x307),a2_0x4fabbe(0x340))['option'](a2_0x4fabbe(0x3c9),'HTML\x20template\x20content')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x336),a2_0x4fabbe(0x23f))[a2_0x4fabbe(0x28d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x311))['description'](a2_0x4fabbe(0x32d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x351),'Workspace\x20name')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x235),a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x319))['description']('Workspace\x20management'),workspaceListAction=async(_0x56ee56,_0x50dcdf)=>{const _0x1232de=a2_0x4fabbe,_0x5b65cb=new EngageWorkspacesCommand(),_0x1624ed=program[_0x1232de(0x35b)](),_0x587606=await createTDXInstance(_0x1624ed),_0x4bb2d7=await _0x5b65cb[_0x1232de(0x25d)]({'options':{..._0x1624ed,..._0x50dcdf},'args':_0x56ee56?[_0x56ee56]:[],'tdx':_0x587606});process[_0x1232de(0x1d6)](_0x4bb2d7);};workspaceCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x228))[a2_0x4fabbe(0x28d)](workspaceListAction),engageCmd[a2_0x4fabbe(0x30b)]('workspaces\x20[pattern]')['description'](a2_0x4fabbe(0x365))[a2_0x4fabbe(0x28d)](workspaceListAction),workspaceCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x344))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x355))[a2_0x4fabbe(0x3cc)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x347))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x34e))['requiredOption']('--name\x20<name>',a2_0x4fabbe(0x389))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2bd),a2_0x4fabbe(0x3f8))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x4fabbe(0x3a0))['description'](a2_0x4fabbe(0x20a))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x402),a2_0x4fabbe(0x22e))['option'](a2_0x4fabbe(0x2bd),'Workspace\x20description')['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x311))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x354))['option'](a2_0x4fabbe(0x235),a2_0x4fabbe(0x34c))[a2_0x4fabbe(0x28d)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4fabbe(0x30b)]('use\x20<name>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x32f))[a2_0x4fabbe(0x28d)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x4fabbe(0x3d6))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3eb)),connectionListAction=async _0x25695c=>{const _0x8e55e=a2_0x4fabbe,_0x268fc2=new ConnectionListCommand(),_0x538211=program[_0x8e55e(0x35b)](),_0x4999b1=await createTDXInstance(_0x538211),_0xb7382b=await _0x268fc2[_0x8e55e(0x25d)]({'options':{..._0x538211,..._0x25695c},'args':[],'tdx':_0x4999b1});process['exit'](_0xb7382b);};connectionCmd['command'](a2_0x4fabbe(0x316))['description'](a2_0x4fabbe(0x343))[a2_0x4fabbe(0x28d)](connectionListAction),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x359),{'hidden':!![]})[a2_0x4fabbe(0x2c1)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')['action'](connectionListAction),connectionCmd['command'](a2_0x4fabbe(0x3fb))['description'](a2_0x4fabbe(0x409))[a2_0x4fabbe(0x28d)](async(_0x267f30,_0x48c3d8)=>{const _0x58b48c=a2_0x4fabbe,_0x11f2bf=new ConnectionShowCommand(),_0x3bf440=program[_0x58b48c(0x35b)](),_0x3c3b6e=await createTDXInstance(_0x3bf440),_0xd0c921=await _0x11f2bf['run']({'options':{..._0x3bf440,..._0x48c3d8},'args':[_0x267f30],'tdx':_0x3c3b6e});process[_0x58b48c(0x1d6)](_0xd0c921);}),connectionCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x31f))['description'](a2_0x4fabbe(0x223))[a2_0x4fabbe(0x28d)](async(_0x44aca9,_0x3c1e46)=>{const _0x1bbaec=a2_0x4fabbe,_0x322031=new ConnectionSchemaCommand(),_0xf66e8f=program['opts'](),_0x5b3e17=await createTDXInstance(_0xf66e8f),_0x1930cd=await _0x322031[_0x1bbaec(0x25d)]({'options':{..._0xf66e8f,..._0x3c1e46},'args':[_0x44aca9],'tdx':_0x5b3e17});process[_0x1bbaec(0x1d6)](_0x1930cd);}),connectionCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1c6))[a2_0x4fabbe(0x2c1)]('List\x20available\x20connector\x20types')[a2_0x4fabbe(0x28d)](async _0x2f2b6e=>{const _0x368d7e=a2_0x4fabbe,_0x558036=new ConnectionTypesCommand(),_0x11bb53=program['opts'](),_0x316f60=await createTDXInstance(_0x11bb53),_0x43550d=await _0x558036[_0x368d7e(0x25d)]({'options':{..._0x11bb53,..._0x2f2b6e},'args':[],'tdx':_0x316f60});process[_0x368d7e(0x1d6)](_0x43550d);}),connectionCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x247))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2ff))[a2_0x4fabbe(0x28d)](async(_0x2b6fda,_0x2458b4)=>{const _0xc93e3=a2_0x4fabbe,_0x115ea4=new ConnectionSettingsCommand(),_0x70bfaa=program['opts'](),_0x5b6f9b=await createTDXInstance(_0x70bfaa),_0x1e2ce7=await _0x115ea4[_0xc93e3(0x25d)]({'options':{..._0x70bfaa,..._0x2458b4},'args':[_0x2b6fda],'tdx':_0x5b6f9b});process[_0xc93e3(0x1d6)](_0x1e2ce7);});const journeyCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x375))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2ee)),journeyListAction=async(_0x2763c0,_0x26e57c)=>{const _0x523f37=a2_0x4fabbe,_0x29573b=new JourneyListCommand(),_0x34411=program[_0x523f37(0x35b)](),_0x182fd9=await createTDXInstance(_0x34411),_0x4a9789=await _0x29573b[_0x523f37(0x25d)]({'options':{..._0x34411,..._0x26e57c},'args':_0x2763c0?[_0x2763c0]:[],'tdx':_0x182fd9});process[_0x523f37(0x1d6)](_0x4a9789);};journeyCmd[a2_0x4fabbe(0x30b)]('list\x20[pattern]')['description'](a2_0x4fabbe(0x215))[a2_0x4fabbe(0x28d)](journeyListAction),journeyCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x24c))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x31d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2c5),'Open\x20journey\x20in\x20web\x20browser')[a2_0x4fabbe(0x3cc)]('--include-stats',a2_0x4fabbe(0x35a))['action'](async(_0x2c0c9a,_0x3463ff)=>{const _0xf6b21a=a2_0x4fabbe,_0x144fc5=new JourneyViewCommand(),_0x1f4763=program['opts'](),_0x38b6dd=await createTDXInstance(_0x1f4763),_0xed3479=await _0x144fc5[_0xf6b21a(0x25d)]({'options':{..._0x1f4763,..._0x3463ff},'args':[_0x2c0c9a],'tdx':_0x38b6dd});process['exit'](_0xed3479);}),journeyCmd['command'](a2_0x4fabbe(0x1fb))[a2_0x4fabbe(0x2c1)]('Show\x20journey\x20statistics')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x260),a2_0x4fabbe(0x227))[a2_0x4fabbe(0x28d)](async(_0xf87b74,_0x523acb)=>{const _0x3b078d=a2_0x4fabbe,_0x2a16a8=new JourneyStatsCommand(),_0x57b1fa=program[_0x3b078d(0x35b)](),_0x2ac920=await createTDXInstance(_0x57b1fa),_0x5b1a46=await _0x2a16a8[_0x3b078d(0x25d)]({'options':{..._0x57b1fa,..._0x523acb},'args':[_0xf87b74],'tdx':_0x2ac920});process['exit'](_0x5b1a46);}),journeyCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2ed))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x237))[a2_0x4fabbe(0x28d)](async(_0x1ed009,_0x54e203)=>{const _0x5e1c0c=a2_0x4fabbe,_0x2824a7=new JourneyPauseCommand(),_0x18b3e0=program[_0x5e1c0c(0x35b)](),_0x197a1a=await createTDXInstance(_0x18b3e0),_0x7dea69=await _0x2824a7[_0x5e1c0c(0x25d)]({'options':{..._0x18b3e0,..._0x54e203},'args':[_0x1ed009],'tdx':_0x197a1a});process[_0x5e1c0c(0x1d6)](_0x7dea69);}),journeyCmd['command'](a2_0x4fabbe(0x332))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x2d0))['action'](async(_0x65f399,_0x589a40)=>{const _0x5233d1=a2_0x4fabbe,_0x4149ed=new JourneyResumeCommand(),_0x2df64c=program[_0x5233d1(0x35b)](),_0x21d29d=await createTDXInstance(_0x2df64c),_0x1572f1=await _0x4149ed[_0x5233d1(0x25d)]({'options':{..._0x2df64c,..._0x589a40},'args':[_0x65f399],'tdx':_0x21d29d});process[_0x5233d1(0x1d6)](_0x1572f1);}),journeyCmd['command'](a2_0x4fabbe(0x275))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x27d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x238),a2_0x4fabbe(0x34c))['option']('--dry-run',a2_0x4fabbe(0x27a))[a2_0x4fabbe(0x28d)](async(_0x2d28bf,_0x142b84)=>{const _0xaa2d23=a2_0x4fabbe,_0x40bc47=new JourneyPullCommand(),_0x2356e0=program[_0xaa2d23(0x35b)](),_0x105029=await createTDXInstance(_0x2356e0),_0x2f4573=await _0x40bc47['run']({'options':{..._0x2356e0,..._0x142b84},'args':_0x2d28bf?[_0x2d28bf]:[],'tdx':_0x105029});process[_0xaa2d23(0x1d6)](_0x2f4573);}),journeyCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2a5))[a2_0x4fabbe(0x2c1)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x4fabbe(0x28d)](async(_0x2671d9,_0x562787)=>{const _0x55916d=a2_0x4fabbe,_0x54ccd5=new JourneyPushCommand(),_0xa3d34e=program[_0x55916d(0x35b)](),_0x32c176=await createTDXInstance(_0xa3d34e),_0x97cbdb=await _0x54ccd5[_0x55916d(0x25d)]({'options':{..._0xa3d34e,..._0x562787},'args':_0x2671d9?[_0x2671d9]:[],'tdx':_0x32c176});process[_0x55916d(0x1d6)](_0x97cbdb);}),journeyCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2c4))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x27e))[a2_0x4fabbe(0x28d)](async(_0x488062,_0x384e86)=>{const _0x401934=a2_0x4fabbe,_0x489a76=new JourneyValidateCommand(),_0xa36175=program['opts'](),_0x1cedab=await createTDXInstance(_0xa36175),_0x179cf1=await _0x489a76[_0x401934(0x25d)]({'options':{..._0xa36175,..._0x384e86},'args':_0x488062?[_0x488062]:[],'tdx':_0x1cedab});process['exit'](_0x179cf1);}),program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3be))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x21e))[a2_0x4fabbe(0x28d)](journeyListAction);const agentSyncCmd=program[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x2b9))[a2_0x4fabbe(0x2c1)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x40d))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x1e4))['option'](a2_0x4fabbe(0x370),'Output\x20directory')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2f9),a2_0x4fabbe(0x2f2))[a2_0x4fabbe(0x28d)](async(_0x4282cb,_0x1480b3,_0xcc52a0)=>{const _0x3e5215=a2_0x4fabbe,_0x15b1cc=new AgentPullCommand(),_0x2c34d4=program[_0x3e5215(0x35b)](),_0x5a1859=await createTDXInstance(_0x2c34d4),_0xf0ccc=[];if(_0x4282cb)_0xf0ccc[_0x3e5215(0x3e0)](_0x4282cb);if(_0x1480b3)_0xf0ccc[_0x3e5215(0x3e0)](_0x1480b3);const _0x870edb=await _0x15b1cc['run']({'options':{..._0x2c34d4,..._0xcc52a0},'args':_0xf0ccc,'tdx':_0x5a1859});process[_0x3e5215(0x1d6)](_0x870edb);}),agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1eb))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x395))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x2f9),'Push\x20without\x20confirmation')[a2_0x4fabbe(0x28d)](async(_0x4cf1fd,_0x2dfb74)=>{const _0x4ffd95=a2_0x4fabbe,_0x2b9739=new AgentPushCommand(),_0x5f1cc4=program[_0x4ffd95(0x35b)](),_0x2613d4=await createTDXInstance(_0x5f1cc4),_0x18595d=await _0x2b9739['run']({'options':{..._0x5f1cc4,..._0x2dfb74},'args':_0x4cf1fd?[_0x4cf1fd]:[],'tdx':_0x2613d4});process[_0x4ffd95(0x1d6)](_0x18595d);}),agentSyncCmd[a2_0x4fabbe(0x30b)]('clone\x20[source]')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x22d))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3dc),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x4fabbe(0x28d)](async(_0x2cd36e,_0x229f47)=>{const _0xf06ab6=a2_0x4fabbe,_0x3b1795=new AgentCloneCommand(),_0x1332a9=program[_0xf06ab6(0x35b)](),_0xe2e801=await createTDXInstance(_0x1332a9),_0x7d8caa=await _0x3b1795[_0xf06ab6(0x25d)]({'options':{..._0x1332a9,..._0x229f47},'args':_0x2cd36e?[_0x2cd36e]:[],'tdx':_0xe2e801});process[_0xf06ab6(0x1d6)](_0x7d8caa);}),agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x3d3))[a2_0x4fabbe(0x2c1)]('Run\x20tests\x20for\x20an\x20LLM\x20agent')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x3de),a2_0x4fabbe(0x3ea))[a2_0x4fabbe(0x3cc)]('--dry-run',a2_0x4fabbe(0x225))['option'](a2_0x4fabbe(0x2c3),a2_0x4fabbe(0x214))['option'](a2_0x4fabbe(0x27c),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')['action'](async(_0x7ea3a8,_0x438b1e)=>{const _0x4624c9=a2_0x4fabbe,_0x2c093a=new AgentTestCommand(),_0x2389a5=program[_0x4624c9(0x35b)](),_0x5efc6d=await createTDXInstance(_0x2389a5),_0x4ed830=await _0x2c093a[_0x4624c9(0x25d)]({'options':{..._0x2389a5,..._0x438b1e},'args':_0x7ea3a8?[_0x7ea3a8]:[],'tdx':_0x5efc6d});process[_0x4624c9(0x1d6)](_0x4ed830);}),agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x1e9))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x324))[a2_0x4fabbe(0x28d)](llmAgentListAction),agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x38f))[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3f1))[a2_0x4fabbe(0x28d)](async(_0x452ce7,_0x27ad1a)=>{const _0x71202a=a2_0x4fabbe,_0x840d3d=new LLMAgentShowCommand(),_0xdf2ce5=program[_0x71202a(0x35b)](),_0xc60fa4=await createTDXInstance(_0xdf2ce5),_0x135ae3=await _0x840d3d[_0x71202a(0x25d)]({'options':{..._0xdf2ce5,..._0x27ad1a},'args':[_0x452ce7],'tdx':_0xc60fa4});process[_0x71202a(0x1d6)](_0x135ae3);}),agentSyncCmd[a2_0x4fabbe(0x30b)](a2_0x4fabbe(0x394))['description'](a2_0x4fabbe(0x3e7))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x211),'System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x4fabbe(0x1a7),a2_0x4fabbe(0x352),a2_0x4fabbe(0x2b5))['option']('--starter-message\x20<text>',a2_0x4fabbe(0x252))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x335),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x24d),a2_0x4fabbe(0x397),a2_0x4fabbe(0x1aa))[a2_0x4fabbe(0x28d)](async(_0x17984e,_0x4e62f6)=>{const _0x55e814=a2_0x4fabbe,_0x35fc52=new LLMAgentCreateCommand(),_0x20b333=program[_0x55e814(0x35b)](),_0x9a8022=await createTDXInstance(_0x20b333),_0x3f699a=await _0x35fc52['run']({'options':{..._0x20b333,..._0x4e62f6},'args':[_0x17984e],'tdx':_0x9a8022});process['exit'](_0x3f699a);}),agentSyncCmd[a2_0x4fabbe(0x30b)]('update\x20<agent-name>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x3a5))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x337),a2_0x4fabbe(0x217))['option']('--prompt\x20<text>','Agent\x20prompt/instructions')[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1f1),a2_0x4fabbe(0x399))[a2_0x4fabbe(0x3cc)](a2_0x4fabbe(0x1ff),a2_0x4fabbe(0x252))[a2_0x4fabbe(0x28d)](async(_0x1cfa79,_0x7e1cae)=>{const _0x5824f7=a2_0x4fabbe,_0x430e0c=new LLMAgentUpdateCommand(),_0x2c4876=program['opts'](),_0x535d86=await createTDXInstance(_0x2c4876),_0x345c2a=await _0x430e0c['run']({'options':{..._0x2c4876,..._0x7e1cae},'args':[_0x1cfa79],'tdx':_0x535d86});process[_0x5824f7(0x1d6)](_0x345c2a);}),agentSyncCmd[a2_0x4fabbe(0x30b)]('delete\x20<agent-name>')[a2_0x4fabbe(0x2c1)](a2_0x4fabbe(0x203))[a2_0x4fabbe(0x28d)](async(_0x44df1e,_0x20a5d4)=>{const _0x3a9abb=a2_0x4fabbe,_0x554265=new LLMAgentDeleteCommand(),_0xa999a=program[_0x3a9abb(0x35b)](),_0x3235ce=await createTDXInstance(_0xa999a),_0x85e5d2=await _0x554265[_0x3a9abb(0x25d)]({'options':{..._0xa999a,..._0x20a5d4},'args':[_0x44df1e],'tdx':_0x3235ce});process['exit'](_0x85e5d2);});export{program};export function runCLI(){const _0x50e6e8=a2_0x4fabbe,_0xafe0f3=!process['argv'][_0x50e6e8(0x232)](0x2)[_0x50e6e8(0x1ad)];showBriefHelp=_0xafe0f3,program[_0x50e6e8(0x383)](process['argv']),_0xafe0f3&&program[_0x50e6e8(0x1c0)](),process[_0x50e6e8(0x1d0)][_0x50e6e8(0x2c6)]&&process['argv'][_0x50e6e8(0x1ad)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x3edcec=>{_0x3edcec&&displayUpdateNotification(_0x3edcec);})[_0x50e6e8(0x3fd)](()=>{});}