@treasuredata/tdx 0.16.3 → 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 (220) 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.d.ts +3 -0
  34. package/dist/commands/mcp-command.d.ts.map +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/mcp-command.js.map +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/profile-command.d.ts.map +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profile-command.js.map +1 -1
  41. package/dist/commands/profiles-command.js +1 -1
  42. package/dist/commands/query-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/unset-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/workflow-command.js +1 -1
  58. package/dist/core/auth.js +1 -1
  59. package/dist/core/command-output.js +1 -1
  60. package/dist/core/config.d.ts +7 -5
  61. package/dist/core/config.d.ts.map +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/config.js.map +1 -1
  64. package/dist/core/connection-cache.d.ts.map +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/connection-cache.js.map +1 -1
  67. package/dist/core/constants.d.ts +22 -0
  68. package/dist/core/constants.d.ts.map +1 -1
  69. package/dist/core/constants.js +1 -1
  70. package/dist/core/constants.js.map +1 -1
  71. package/dist/core/credential-cache.js +1 -1
  72. package/dist/core/global-context.js +1 -1
  73. package/dist/core/keychain.d.ts.map +1 -1
  74. package/dist/core/keychain.js +1 -1
  75. package/dist/core/keychain.js.map +1 -1
  76. package/dist/core/profile.js +1 -1
  77. package/dist/core/project-config.js +1 -1
  78. package/dist/core/session.js +1 -1
  79. package/dist/core/user-cache.d.ts.map +1 -1
  80. package/dist/core/user-cache.js +1 -1
  81. package/dist/core/user-cache.js.map +1 -1
  82. package/dist/core/version.d.ts +2 -2
  83. package/dist/core/version.js +1 -1
  84. package/dist/index.js +1 -1
  85. package/dist/mcp/server.js +1 -1
  86. package/dist/mcp/tools/index.js +1 -1
  87. package/dist/mcp/tools/tdx-run.js +1 -1
  88. package/dist/mcp/tools/tdx-search.js +1 -1
  89. package/dist/mcp/utils.js +1 -1
  90. package/dist/proxy/anthropic-adapter.js +1 -1
  91. package/dist/proxy/claude-usage-tracker.js +1 -1
  92. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  93. package/dist/proxy/context-signature.js +1 -1
  94. package/dist/proxy/conversation-utils.js +1 -1
  95. package/dist/proxy/passthrough-server.js +1 -1
  96. package/dist/proxy/server.js +1 -1
  97. package/dist/proxy/session-cache.js +1 -1
  98. package/dist/proxy/sse-usage-parser.js +1 -1
  99. package/dist/sdk/agent/agent-config.js +1 -1
  100. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  101. package/dist/sdk/agent/agent-yaml.d.ts +2 -0
  102. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  103. package/dist/sdk/agent/agent-yaml.js +1 -1
  104. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  105. package/dist/sdk/agent/test/evaluator.d.ts +3 -6
  106. package/dist/sdk/agent/test/evaluator.d.ts.map +1 -1
  107. package/dist/sdk/agent/test/evaluator.js +1 -1
  108. package/dist/sdk/agent/test/evaluator.js.map +1 -1
  109. package/dist/sdk/agent/test/executor.d.ts +57 -1
  110. package/dist/sdk/agent/test/executor.d.ts.map +1 -1
  111. package/dist/sdk/agent/test/executor.js +1 -1
  112. package/dist/sdk/agent/test/executor.js.map +1 -1
  113. package/dist/sdk/agent/test/index.d.ts +2 -2
  114. package/dist/sdk/agent/test/index.d.ts.map +1 -1
  115. package/dist/sdk/agent/test/index.js +1 -1
  116. package/dist/sdk/agent/test/index.js.map +1 -1
  117. package/dist/sdk/agent/test/output.js +1 -1
  118. package/dist/sdk/agent/test/parser.d.ts.map +1 -1
  119. package/dist/sdk/agent/test/parser.js +1 -1
  120. package/dist/sdk/agent/test/parser.js.map +1 -1
  121. package/dist/sdk/agent/test/types.d.ts +44 -0
  122. package/dist/sdk/agent/test/types.d.ts.map +1 -1
  123. package/dist/sdk/api.js +1 -1
  124. package/dist/sdk/claude-agent/claude-agent-client.js +1 -1
  125. package/dist/sdk/claude-agent/environment.js +1 -1
  126. package/dist/sdk/claude-agent/index.js +1 -1
  127. package/dist/sdk/claude-agent/system-prompts.js +1 -1
  128. package/dist/sdk/client/cdp-api-client.js +1 -1
  129. package/dist/sdk/client/endpoints.js +1 -1
  130. package/dist/sdk/client/endpoints.js.map +1 -1
  131. package/dist/sdk/client/engage-api-client.js +1 -1
  132. package/dist/sdk/client/http-client.js +1 -1
  133. package/dist/sdk/client/llm-api-client.d.ts +6 -0
  134. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  135. package/dist/sdk/client/llm-api-client.js +1 -1
  136. package/dist/sdk/client/llm-api-client.js.map +1 -1
  137. package/dist/sdk/client/rate-limiter.js +1 -1
  138. package/dist/sdk/client/td-api-client.js +1 -1
  139. package/dist/sdk/client/trino-api-client.js +1 -1
  140. package/dist/sdk/client/workflow-client.js +1 -1
  141. package/dist/sdk/connection-validator.js +1 -1
  142. package/dist/sdk/connection.js +1 -1
  143. package/dist/sdk/engage.js +1 -1
  144. package/dist/sdk/errors.js +1 -1
  145. package/dist/sdk/index.js +1 -1
  146. package/dist/sdk/io/index.js +1 -1
  147. package/dist/sdk/io/node-filesystem.js +1 -1
  148. package/dist/sdk/job.js +1 -1
  149. package/dist/sdk/journey.js +1 -1
  150. package/dist/sdk/llm/chat-cache.d.ts.map +1 -1
  151. package/dist/sdk/llm/chat-cache.js +1 -1
  152. package/dist/sdk/llm/chat-cache.js.map +1 -1
  153. package/dist/sdk/llm/index.d.ts +11 -3
  154. package/dist/sdk/llm/index.d.ts.map +1 -1
  155. package/dist/sdk/llm/index.js +1 -1
  156. package/dist/sdk/llm/index.js.map +1 -1
  157. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  158. package/dist/sdk/llm/model-aliases.js +1 -1
  159. package/dist/sdk/llm/model-factors.js +1 -1
  160. package/dist/sdk/query/index.js +1 -1
  161. package/dist/sdk/query/sql-parser.js +1 -1
  162. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  163. package/dist/sdk/segment/fields-display.js +1 -1
  164. package/dist/sdk/segment/file-discovery.js +1 -1
  165. package/dist/sdk/segment/journey-utils.js +1 -1
  166. package/dist/sdk/segment/journey-yaml.js +1 -1
  167. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  168. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  169. package/dist/sdk/segment/pull-workflow.js +1 -1
  170. package/dist/sdk/segment/push-workflow.js +1 -1
  171. package/dist/sdk/segment/resolution-context.js +1 -1
  172. package/dist/sdk/segment/segment-path-parser.js +1 -1
  173. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  174. package/dist/sdk/segment/target-resolution.js +1 -1
  175. package/dist/sdk/segment/tdx-config.js +1 -1
  176. package/dist/sdk/segment/validate-files.js +1 -1
  177. package/dist/sdk/segment/yaml-validator.js +1 -1
  178. package/dist/sdk/segment.js +1 -1
  179. package/dist/sdk/types/index.js +1 -1
  180. package/dist/sdk/types/llm.d.ts +39 -0
  181. package/dist/sdk/types/llm.d.ts.map +1 -1
  182. package/dist/sdk/types/progress.js +1 -1
  183. package/dist/sdk/user.js +1 -1
  184. package/dist/sdk/util/format-detector.js +1 -1
  185. package/dist/sdk/util/formatters.js +1 -1
  186. package/dist/sdk/util/index.js +1 -1
  187. package/dist/sdk/util/tree-formatter.js +1 -1
  188. package/dist/sdk/workflow/clone-workflow.js +1 -1
  189. package/dist/sdk/workflow/index.js +1 -1
  190. package/dist/sdk/workflow/pull-workflow.js +1 -1
  191. package/dist/sdk/workflow/push-workflow.js +1 -1
  192. package/dist/sdk/workflow/tdx-config.js +1 -1
  193. package/dist/sdk/workflow/workflow-utils.js +1 -1
  194. package/dist/utils/async.js +1 -1
  195. package/dist/utils/colors.js +1 -1
  196. package/dist/utils/diff.js +1 -1
  197. package/dist/utils/file-permissions.js +1 -1
  198. package/dist/utils/global-cache.d.ts +88 -0
  199. package/dist/utils/global-cache.d.ts.map +1 -0
  200. package/dist/utils/global-cache.js +1 -0
  201. package/dist/utils/global-cache.js.map +1 -0
  202. package/dist/utils/json-loader.js +1 -1
  203. package/dist/utils/local-cache.d.ts +48 -0
  204. package/dist/utils/local-cache.d.ts.map +1 -0
  205. package/dist/utils/local-cache.js +1 -0
  206. package/dist/utils/local-cache.js.map +1 -0
  207. package/dist/utils/option-validation.js +1 -1
  208. package/dist/utils/port.js +1 -1
  209. package/dist/utils/process.js +1 -1
  210. package/dist/utils/prompt.js +1 -1
  211. package/dist/utils/spinner.js +1 -1
  212. package/dist/utils/sse-parser.js +1 -1
  213. package/dist/utils/string-utils.js +1 -1
  214. package/dist/utils/table-ref-parser.js +1 -1
  215. package/dist/utils/tdx-logger.js +1 -1
  216. package/dist/utils/tdx-logger.js.map +1 -1
  217. package/dist/utils/version-check.d.ts.map +1 -1
  218. package/dist/utils/version-check.js +1 -1
  219. package/dist/utils/version-check.js.map +1 -1
  220. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x2babb7=a2_0x11a7;(function(_0x483655,_0x1f24cc){const _0x4e1d78=a2_0x11a7,_0x11d055=_0x483655();while(!![]){try{const _0x38e9f0=-parseInt(_0x4e1d78(0x252))/0x1+-parseInt(_0x4e1d78(0x23c))/0x2+parseInt(_0x4e1d78(0x321))/0x3+parseInt(_0x4e1d78(0x24f))/0x4*(parseInt(_0x4e1d78(0x2fe))/0x5)+-parseInt(_0x4e1d78(0x2e7))/0x6+parseInt(_0x4e1d78(0x307))/0x7+parseInt(_0x4e1d78(0x2ff))/0x8*(parseInt(_0x4e1d78(0x24a))/0x9);if(_0x38e9f0===_0x1f24cc)break;else _0x11d055['push'](_0x11d055['shift']());}catch(_0x501a9d){_0x11d055['push'](_0x11d055['shift']());}}}(a2_0x5dfa,0x58ce1));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';function a2_0x11a7(_0x30c7ce,_0x1e1778){_0x30c7ce=_0x30c7ce-0x13c;const _0x5dfa1a=a2_0x5dfa();let _0x11a708=_0x5dfa1a[_0x30c7ce];return _0x11a708;}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';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';function a2_0x5dfa(){const _0x2b02cd=['-v,\x20--verbose','Database\x20to\x20use\x20(overrides\x20context)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Behaviors\x20from\x20JSON\x20file','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20available\x20LLM\x20models','Open\x20segment\x20in\x20web\x20browser','repeat','argument','Remove\x20a\x20profile','auth','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Folder\x20name\x20for\x20organization','--email-sender-id\x20<id>','--full','--enriched','--add-behaviors-file\x20<file>','List\x20all\x20users\x20in\x20the\x20account','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','requiredOption','--starter-message\x20<text>','stderr','pull\x20[project]\x20[agent-name]','description','Resume\x20a\x20paused\x20journey','action','update\x20<agent-name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','duplicate\x20<name-or-id>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Override\x20project\x20name','Output\x20as\x20JSON','--add-attributes-file\x20<file>','use\x20<name>','Table\x20management\x20commands','show\x20[segment_name]','history\x20[chat-id]','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','template','segments\x20[path]','--job-type\x20<type>','Pull\x20workflow\x20project\x20to\x20local\x20folder','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','port','--name\x20<new-name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-w,\x20--web','--rule-file\x20<file>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','user','Workspace\x20description','Run\x20specific\x20tests\x20(comma-separated)','engage','--description\x20<text>','chats','\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','claude\x20[args...]','Output\x20file\x20path\x20(default:\x20<name>.yml)','launch\x20<name-or-id>','update\x20<segment_name>','Update\x20a\x20campaign','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Skip\x20validation\x20of\x20.dig\x20files','Email\x20sender\x20ID\x20for\x20delivery','Set\x20or\x20show\x20parent\x20segment\x20context','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Show\x20master\x20table\x20sample\x20data','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--model\x20<name>','sql\x20[segment_name]','Resume\x20a\x20paused\x20campaign','padEnd','Interactive\x20chat\x20selector','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','upload\x20[project-name-or-dir]','[options]\x20--\x20[claude-code-args...]','969640uWRxHE','Name\x20for\x20the\x20new\x20project\x20(required)','Updated\x20schedule\x20option','Save\x20output\x20to\x20file','preAction','Resume\x20from\x20specific\x20task\x20(retry)','Workspace\x20management','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','-d,\x20--database\x20<database>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','[DEPRECATED]\x20Segment\x20folder\x20management','attempt','--type\x20<api_type>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','3167451Ofacxw','isTTY','-r,\x20--resume','view\x20<name-or-path>','Data\x20connection\x20management\x20(for\x20activations/exports)','4hBlRyg','4000','-o,\x20--output\x20<dir>','376709BbBqDW','opts','List\x20all\x20data\x20connections','create','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','push\x20[source-dir]','Output\x20file\x20path','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Read\x20query\x20from\x20file','--to\x20<timestamp>','--schedule-option\x20<value>','set\x20<key=value>','Enable\x20verbose\x20logging','show\x20<folder_ref>','job','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Add\x20behaviors\x20as\x20JSON\x20string','--version','after','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','pull\x20[parent_or_file]','--yes','workspaces\x20[pattern]','Output\x20folder\x20(default:\x20{project_name}.llm)','--add-behaviors\x20<json>','List\x20agents\x20in\x20current\x20project','push\x20[path]','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--master','download\x20<project-name>\x20[output-dir]','[task-name]','isArray','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','create\x20<parent_name>\x20<folder_name>','sessions\x20[project]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','parse','Remove\x20API\x20key\x20from\x20system\x20keychain','List\x20journeys\x20(alias\x20for\x20journey\x20list)','replace','command','help','--include-retried','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','update\x20<name-or-id>','LLM\x20agent\x20management','remove\x20<name>','--new','mcp','argumentTerm','--editor-type\x20<type>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Trino\x20catalog\x20(default:\x20td)','--from\x20<timestamp>','--timezone\x20<tz>','Show\x20journey\x20statistics','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Show\x20segment\x20schema\x20(column\x20types)','--last','information_schema','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','--system-prompt\x20<text>','Push\x20without\x20confirmation','activations\x20<segment_name>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--data\x20<data>','--customer-group-file\x20<file>','--default','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','argv','Overwrite\x20local\x20changes\x20without\x20confirmation','Create\x20a\x20workspace','--no-proxy','logs','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--format\x20<format>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Email\x20subject\x20template','backup\x20<name>','Parent\x20segment\x20description','--project\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','length','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file',',\x20version\x20','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','Temperature\x20(0.0-2.0,\x20default:\x200.7)','preview\x20[name]','table','HTML\x20template\x20content','options','--no-eval','map','debug','--database\x20<db>','tables\x20[pattern]','noColor','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Include\x20subtasks\x20in\x20tasks\x20output','Maximum\x20tool\x20iterations\x20(default:\x204)','agent','Pull\x20child\x20segments\x20to\x20YAML\x20files','workflow','--interval\x20<range>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Open\x20parent\x20segment\x20in\x20web\x20browser','slice','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Unknown\x20action:\x20','templates\x20[pattern]','--site\x20<site>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Preview\x20operation\x20without\x20executing','New\x20template\x20name','pull\x20<project>\x20[target-dir]','-o,\x20--output\x20<file>','subcommandDescription','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','-n,\x20--name\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Request\x20body\x20as\x20JSON\x20string','outputHelp','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--prompt\x20<text>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20all\x20available\x20profiles','Task\x20name\x20for\x20logs\x20action','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','--debug','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','directory','Workspace\x20name\x20(required)','argumentDescription','--status\x20<status>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--skip-validation','--type\x20<type>','Create\x20segment\x20folder','--name\x20<name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','error','create\x20<segment_name>','2542302qRfztK','--clear','--customer-group\x20<json>','jsonl','show\x20<agent-name>','option','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','preview\x20[file]','Change\x20to\x20directory\x20before\x20executing\x20command','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','view\x20[segment_name]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','TRACE','INVALID_ARGUMENT','delete\x20<agent-name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--rule\x20<json>','-p,\x20--profile\x20<name>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--jsonl','restore\x20<folder>','join','3023015BMPPtc','8dDYPjQ','--json','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','\x20-\x20built\x20','--limit\x20<rows>','list\x20[pattern]','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','project','1319633ANZDbO','retry\x20<session-id>','Pause\x20a\x20campaign','Delete\x20a\x20campaign','--kind\x20<type>','resume\x20<name-or-path>','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Update\x20an\x20existing\x20agent','Include\x20retried\x20attempts','Submit\x20a\x20job','-f,\x20--file\x20<path>','unset\x20<resource>','--table','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','timeline\x20[project.workflow]','Resume\x20a\x20conversation\x20(shows\x20selector)','validate\x20[file]','--params\x20<json>','Skip\x20confirmation\x20prompts','\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','List\x20jobs','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','summary','-1d','Delete\x20an\x20agent','1511790wtvmHP','commandDescription','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','hook','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Set\x20operation\x20timeout\x20in\x20seconds','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--behavior\x20[name]','Preview\x20without\x20creating\x20the\x20project','--trace','Follow/watch\x20timeline\x20for\x20running\x20attempts','folder','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--agent\x20<name>','Database\x20name\x20(default:\x20information_schema)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--json-columns\x20<cols>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','required','campaigns\x20[pattern]','Skip\x20confirmation\x20prompt','list\x20[path]','colorFn','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Create\x20a\x20new\x20LLM\x20project','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','test\x20[path]','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','then','setup','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','json','--resume-from\x20<task>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','describe\x20[table]','Pause\x20a\x20running\x20journey','get','createAsync','-r,\x20--recursive','--attempt-id\x20<id>','log','Revision\x20name\x20(default:\x20timestamp)','desc\x20[segment_name]','subcommandTerm','commands','Include\x20execution\x20statistics','Directory\x20does\x20not\x20exist:\x20','sonnet','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','tdx\x20','--segment\x20<path>','Campaign\x20type\x20(email\x20or\x20push)','--include-subtasks','name','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','us01','Delete\x20an\x20LLM\x20project','Starter\x20message','allowUnknownOption','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','exit','0.7','--schedule-type\x20<type>','Output\x20as\x20JSON\x20Lines','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--temperature\x20<n>','--output\x20<file>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--no-count-population','Path\x20is\x20not\x20a\x20directory:\x20','site','commandUsage','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Preview\x20changes\x20without\x20pushing','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20the\x20most\x20recent\x20chat','alias','CDP\x20segment\x20management\x20commands','Validate\x20journey\x20YAML\x20files\x20locally','result\x20<job-id>','validate\x20[target]','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--max-tool-iterations\x20<n>','--session-id\x20<id>','--attributes\x20<json>','workspace','Workspace\x20name','--html\x20<html>','Workflow\x20(Digdag)\x20management\x20commands','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Segment\x20description','Clear\x20workflow\x20project\x20context','--attribute\x20[name]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--color','campaign','usage','Create\x20a\x20new\x20campaign','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Filtering\x20rule\x20from\x20JSON\x20file','addHelpText','push\x20[parent_or_file]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--behaviors-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','show\x20<job-id>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','desc\x20[name]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','-o,\x20--output\x20<folder>','logLevel','update\x20<name>','GET','Commands:','Show\x20journey\x20details','statusline','Show\x20connection\x20details\x20by\x20name','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','use\x20[name]','Show\x20job\x20details','schema\x20<type>','--database\x20<name>','use\x20[resource]\x20[value]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','pause\x20<name-or-path>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','set','Options:','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Read\x20SQL\x20query\x20from\x20file','users','Delete\x20a\x20workspace','Custom\x20revision\x20name\x20(default:\x20timestamp)','-f,\x20--force','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Add\x20behaviors\x20from\x20JSON\x20file','Run\x20tests\x20for\x20an\x20LLM\x20agent','use\x20<path>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','create\x20<name>','gitRevision','secrets','resume\x20<name-or-id>','attempt:','Model\x20type\x20(default:\x20claude-4.5-sonnet)','optionTerm','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','catch','tasks','Customer\x20group\x20from\x20JSON\x20file','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','parent-segment','--no-color','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Maximum\x20recursion\x20depth\x20(default:\x2010)','create\x20[name]','parents\x20[pattern]','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--dry-run','clone\x20[source]','User\x20management\x20commands','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Get\x20job\x20results','DEBUG','show\x20<name-or-id>','buildTime','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','run','delete\x20<name-or-id>','--name\x20<text>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Export\x20journey(s)\x20as\x20YAML\x20files','session','Include\x20retried\x20attempts\x20(for\x20list)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','query\x20[sql]','proxy','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Usage:\x20','-H,\x20--header\x20<header>','--plaintext\x20<text>','Kill\x20a\x20job','list\x20[project]','--add-attributes\x20<json>','profile','databases\x20[pattern]','projects\x20[pattern]','Add\x20attributes\x20as\x20JSON\x20string','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--invisible','Create\x20a\x20new\x20profile','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--force','-y,\x20--yes','segment','Make\x20segment\x20invisible\x20(default:\x20visible)','--session-time\x20<time>','Editor\x20type','--in\x20<database>','run\x20[workflow]','Duplicate\x20a\x20campaign','run\x20[name]','Filtering\x20rule\x20as\x20JSON\x20string','--parent-folder\x20<name>','--name\x20<new_name>','Reason\x20for\x20killing\x20the\x20attempt','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','registeredArguments','includes','Read\x20request\x20body\x20from\x20file','Workflow\x20attempt\x20management','connections','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Pull\x20specific\x20revision\x20(default:\x20latest)','--revision\x20<revision>','--workspace\x20<name>','show\x20[table]','Updated\x20timezone','--description\x20<desc>','push','--reason\x20<text>','injectIntoOptions','Authentication\x20management','Show\x20stats\x20for\x20specific\x20stage','Start\x20a\x20new\x20chat\x20session','profiles','Master\x20table\x20name','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','--folder\x20<name>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Show\x20only\x20master\x20table\x20validation','list','tdx','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Force\x20retry\x20even\x20if\x20not\x20failed','Limit\x20number\x20of\x20rows','--limit\x20<number>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','format','--subject\x20<subject>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','stdout','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','describe','clear','Updated\x20description','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','show\x20[name]','Behaviors\x20as\x20JSON\x20string','--delete','pull\x20[name]','--attributes-file\x20<file>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Project\x20description','push\x20[file]','hidden','forEach','apiKey','Customer\x20group\x20as\x20JSON\x20string','database','tsv','connection','fields\x20[name]','Describe\x20table\x20schema','jobs','agents\x20[pattern]','view\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--table\x20<table>','Agent\x20prompt/instructions'];a2_0x5dfa=function(){return _0x2b02cd;};return a2_0x5dfa();}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_0x2babb7(0x29c)][a2_0x2babb7(0x1af)](a2_0x2babb7(0x264))){let versionOutput=a2_0x2babb7(0x355)+currentVersion;buildInfo[a2_0x2babb7(0x16b)]&&!currentVersion[a2_0x2babb7(0x1af)](buildInfo[a2_0x2babb7(0x16b)])&&(versionOutput+='\x20('+buildInfo[a2_0x2babb7(0x16b)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x2babb7(0x302)+buildInfo[a2_0x2babb7(0x184)]),console[a2_0x2babb7(0x34b)](versionOutput),process[a2_0x2babb7(0x360)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x2babb7(0x16b)]&&!currentVersion[a2_0x2babb7(0x1af)](buildInfo[a2_0x2babb7(0x16b)])?description+=a2_0x2babb7(0x2ad)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x2babb7(0x2ad)+currentVersion;program['name'](a2_0x2babb7(0x1c7))[a2_0x2babb7(0x207)](description),program[a2_0x2babb7(0x2ec)]('-C,\x20--directory\x20<path>',a2_0x2babb7(0x2ef))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2f8),a2_0x2babb7(0x140))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2c7),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x2babb7(0x35b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2a4),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x314),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x300),a2_0x2babb7(0x15e))['option'](a2_0x2babb7(0x2fb),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x2babb7(0x2ec)]('--tsv',a2_0x2babb7(0x1fb))['option'](a2_0x2babb7(0x366),a2_0x2babb7(0x23f))['option'](a2_0x2babb7(0x1cb),a2_0x2babb7(0x2df))['option'](a2_0x2babb7(0x383),'Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x177),a2_0x2babb7(0x354),![])['option'](a2_0x2babb7(0x1f0),a2_0x2babb7(0x25f),![])[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2d9),a2_0x2babb7(0x333))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x32a),a2_0x2babb7(0x1d3))[a2_0x2babb7(0x2ec)]('--timeout\x20<seconds>',a2_0x2babb7(0x326),'30')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),a2_0x2babb7(0x2c9),![])[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x31a),![])['option']('--session\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)')[a2_0x2babb7(0x2ec)]('-d,\x20--database\x20<name>',a2_0x2babb7(0x1f1))[a2_0x2babb7(0x2ec)]('--in\x20<name>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x2babb7(0x2ec)]('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')['option']('--llm-project\x20<name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program['configureHelp']({'formatHelp':(_0xc3fc2b,_0x5a20d0)=>{const _0x22ce4e=a2_0x2babb7,_0x5682bc=_0x5a20d0['padWidth'](_0xc3fc2b,_0x5a20d0),_0x25caac=0x2,_0x53d9e4=0x2;function _0x36f2a9(_0x1010cf){const _0x507eda=a2_0x11a7,_0x20be22=_0x1010cf;return!!(_0x20be22['_hidden']||_0x20be22[_0x507eda(0x1e0)]);}function _0x225a1c(_0x98837c,_0x5b22c0){const _0x4d1d50=a2_0x11a7;if(_0x5b22c0){const _0x4e8c1c=''+_0x98837c[_0x4d1d50(0x237)](_0x5682bc+_0x53d9e4)+_0x5b22c0;return _0x4e8c1c;}return _0x98837c;}function _0x38ed07(_0x3af981){const _0x380641=a2_0x11a7;return _0x3af981[_0x380641(0x2fd)]('\x0a')[_0x380641(0x27a)](/^/gm,'\x20'[_0x380641(0x1f7)](_0x25caac));}const _0x1299c0=[];_0x1299c0['push'](_0x22ce4e(0x191)+_0x5a20d0[_0x22ce4e(0x36b)](_0xc3fc2b));const _0x2bea73=_0x5a20d0[_0x22ce4e(0x322)](_0xc3fc2b);_0x2bea73&&(_0x1299c0['push'](''),_0x1299c0[_0x22ce4e(0x1ba)](_0x2bea73));const _0x2a56f8=_0xc3fc2b[_0x22ce4e(0x34f)]['filter'](_0x138839=>!_0x36f2a9(_0x138839));if(_0x2a56f8[_0x22ce4e(0x2ab)]>0x0){if(_0xc3fc2b[_0x22ce4e(0x359)]()==='tdx'){const _0x2c4584=_0xc3fc2b[_0x22ce4e(0x253)](),_0x16ebd9=!_0x2c4584[_0x22ce4e(0x2b9)]&&process[_0x22ce4e(0x1d0)][_0x22ce4e(0x24b)],_0x342894=COMMAND_CATEGORIES,_0x4c1db7=(_0x4cc63d,_0x1fb7b0)=>_0x16ebd9?_0x1fb7b0(_0x4cc63d):_0x4cc63d,_0xb4c5dd=new Map();_0x2a56f8[_0x22ce4e(0x1e1)](_0x2f2270=>{const _0x2f3f6d=_0x22ce4e;_0xb4c5dd[_0x2f3f6d(0x15c)](_0x2f2270[_0x2f3f6d(0x359)](),_0x2f2270);}),_0x342894['forEach'](_0x1bbc45=>{const _0x2fdc54=_0x22ce4e,_0x50220f=_0x1bbc45[_0x2fdc54(0x34f)]['flatMap'](_0xce6972=>_0xb4c5dd[_0x2fdc54(0x347)](_0xce6972)??[]);if(_0x50220f[_0x2fdc54(0x2ab)]>0x0){_0x1299c0[_0x2fdc54(0x1ba)](''),_0x1299c0[_0x2fdc54(0x1ba)](_0x4c1db7(_0x1bbc45[_0x2fdc54(0x359)]+':',_0x1bbc45[_0x2fdc54(0x338)]));const _0x27e3a3=_0x50220f['map'](_0x352f86=>{const _0x9be98=_0x2fdc54,_0x1f2f48=_0x5a20d0['subcommandTerm'](_0x352f86),_0x12edbd=_0x5a20d0[_0x9be98(0x2cd)](_0x352f86);return _0x225a1c(_0x1f2f48,_0x12edbd);});_0x1299c0['push'](_0x38ed07(_0x27e3a3));}}),_0x1299c0[_0x22ce4e(0x1ba)](''),_0x1299c0[_0x22ce4e(0x1ba)](_0x22ce4e(0x146));}else{const _0x3d7242=_0x2a56f8[_0x22ce4e(0x2b5)](_0x40ede2=>{const _0x57bd88=_0x22ce4e,_0x16e8ea=_0x5a20d0[_0x57bd88(0x34e)](_0x40ede2),_0x3d7981=_0x5a20d0['subcommandDescription'](_0x40ede2);return _0x225a1c(_0x16e8ea,_0x3d7981);});_0x1299c0[_0x22ce4e(0x1ba)](''),_0x1299c0['push'](_0x22ce4e(0x14f)),_0x1299c0[_0x22ce4e(0x1ba)](_0x38ed07(_0x3d7242));}}if(showBriefHelp&&_0xc3fc2b[_0x22ce4e(0x359)]()==='tdx')_0x1299c0[_0x22ce4e(0x1ba)](''),_0x1299c0[_0x22ce4e(0x1ba)](_0x22ce4e(0x292));else{const _0x1ab0f6=_0xc3fc2b[_0x22ce4e(0x2b3)]['filter'](_0x5f950e=>!_0x36f2a9(_0x5f950e));if(_0x1ab0f6[_0x22ce4e(0x2ab)]>0x0){const _0x470ee7=_0x1ab0f6[_0x22ce4e(0x2b5)](_0x4ab9ad=>{const _0x176cd3=_0x22ce4e,_0x53c4e4=_0x5a20d0[_0x176cd3(0x170)](_0x4ab9ad),_0x2e4724=_0x5a20d0['optionDescription'](_0x4ab9ad);return _0x225a1c(_0x53c4e4,_0x2e4724);});_0x1299c0[_0x22ce4e(0x1ba)](''),_0x1299c0[_0x22ce4e(0x1ba)](_0x22ce4e(0x15d)),_0x1299c0['push'](_0x38ed07(_0x470ee7));}}const _0x55cc97=(_0xc3fc2b[_0x22ce4e(0x1ae)]||[])['filter'](_0x27ff5e=>!_0x36f2a9(_0x27ff5e));if(_0x55cc97['length']>0x0){const _0x5db2be=_0x55cc97[_0x22ce4e(0x2b5)](_0xc0a783=>{const _0x2ada10=_0x22ce4e,_0x523bb6=_0x5a20d0[_0x2ada10(0x284)](_0xc0a783),_0x465c2d=_0x5a20d0[_0x2ada10(0x2dd)](_0xc0a783);return _0x225a1c(_0x523bb6,_0x465c2d);});_0x1299c0['push'](''),_0x1299c0[_0x22ce4e(0x1ba)]('Arguments:'),_0x1299c0[_0x22ce4e(0x1ba)](_0x38ed07(_0x5db2be));}return _0x1299c0['join']('\x0a')+'\x0a';},'subcommandTerm':_0x32f843=>{const _0x5223ab=a2_0x2babb7,_0x2cb819=(_0x32f843[_0x5223ab(0x1ae)]||[])[_0x5223ab(0x2b5)](_0x289582=>_0x289582[_0x5223ab(0x334)]?'<'+_0x289582[_0x5223ab(0x359)]()+'>':'['+_0x289582[_0x5223ab(0x359)]()+']')[_0x5223ab(0x2fd)]('\x20'),_0x4e00be=_0x32f843['aliases'](),_0x20607d=_0x4e00be[_0x5223ab(0x2ab)]>0x0?_0x32f843[_0x5223ab(0x359)]()+',\x20'+_0x4e00be[_0x5223ab(0x2fd)](',\x20'):_0x32f843[_0x5223ab(0x359)]();return _0x2cb819?_0x20607d+'\x20'+_0x2cb819:_0x20607d;}}),program[a2_0x2babb7(0x324)](a2_0x2babb7(0x240),_0x21d1f6=>{const _0x5be5f5=a2_0x2babb7,_0x1cce29=_0x21d1f6[_0x5be5f5(0x253)]();if(_0x1cce29[_0x5be5f5(0x2db)]){const _0x3f9a4c=resolve(_0x1cce29[_0x5be5f5(0x2db)]),_0x47a603=_0x3f9a4c!==_0x1cce29[_0x5be5f5(0x2db)]?'\x20(resolved\x20to\x20'+_0x3f9a4c+')':'';if(!existsSync(_0x3f9a4c))throw new SDKError(ErrorCode[_0x5be5f5(0x2f4)],_0x5be5f5(0x351)+_0x1cce29[_0x5be5f5(0x2db)]+_0x47a603,undefined,{'helpText':_0x5be5f5(0x305)});const _0x329c86=statSync(_0x3f9a4c);if(!_0x329c86['isDirectory']())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5be5f5(0x369)+_0x1cce29[_0x5be5f5(0x2db)]+_0x47a603,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process['chdir'](_0x3f9a4c);}if(!_0x1cce29[_0x5be5f5(0x1cd)]){if(_0x1cce29[_0x5be5f5(0x2b1)])_0x1cce29[_0x5be5f5(0x1cd)]=_0x5be5f5(0x2b1);else{if(_0x1cce29['json'])_0x1cce29['format']=_0x5be5f5(0x342);else{if(_0x1cce29[_0x5be5f5(0x2ea)])_0x1cce29['format']='jsonl';else _0x1cce29[_0x5be5f5(0x1e5)]&&(_0x1cce29[_0x5be5f5(0x1cd)]='tsv');}}}_0x1cce29['in']&&!_0x1cce29[_0x5be5f5(0x1e4)]&&(_0x1cce29[_0x5be5f5(0x1e4)]=_0x1cce29['in']);if(_0x1cce29['trace'])_0x1cce29[_0x5be5f5(0x14c)]=LogLevel[_0x5be5f5(0x2f3)];else{if(_0x1cce29[_0x5be5f5(0x2b6)])_0x1cce29['logLevel']=LogLevel[_0x5be5f5(0x182)];else _0x1cce29[_0x5be5f5(0x14c)]===undefined&&(_0x1cce29[_0x5be5f5(0x14c)]=LogLevel['INFO']);}});async function createTDXInstance(_0x4cf219){const _0x471ea6=a2_0x2babb7,_0x8707a0=await GlobalContext[_0x471ea6(0x348)](_0x4cf219);return _0x8707a0[_0x471ea6(0x1bc)](_0x4cf219),TDX['create']({'site':_0x8707a0[_0x471ea6(0x36a)],'apiKey':_0x8707a0[_0x471ea6(0x1e2)],'logLevel':_0x8707a0[_0x471ea6(0x14c)],'profile':_0x8707a0[_0x471ea6(0x197)]});}const databaseCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1e4))['alias']('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x3e2414,_0x137d70)=>{const _0x1f4fc7=a2_0x2babb7,_0x378231=new DatabasesCommand(),_0x50164c=program[_0x1f4fc7(0x253)](),_0xb1b90=await createTDXInstance(_0x50164c),_0x4f0252=await _0x378231[_0x1f4fc7(0x186)]({'options':{..._0x50164c,..._0x137d70},'args':_0x3e2414?[_0x3e2414]:[],'tdx':_0xb1b90});process['exit'](_0x4f0252);};databaseCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x198),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x21d))[a2_0x2babb7(0x209)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x19e))[a2_0x2babb7(0x2ec)]('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x282),a2_0x2babb7(0x1bf))[a2_0x2babb7(0x209)](async(_0x2ad862,_0x4ee3ea)=>{const _0x88b769=a2_0x2babb7,_0x2a3b5d=new ChatCommand(),_0x2c2693=program[_0x88b769(0x253)](),_0x2c97f6=await createTDXInstance(_0x2c2693),_0x1543c2=await _0x2a3b5d[_0x88b769(0x186)]({'options':{..._0x2c2693,..._0x4ee3ea},'args':_0x2ad862,'tdx':_0x2c97f6});process[_0x88b769(0x360)](_0x1543c2);});const apiCmd=program[a2_0x2babb7(0x27b)]('api\x20[endpoint]')[a2_0x2babb7(0x31e)](a2_0x2babb7(0x2ba))[a2_0x2babb7(0x13e)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x2babb7(0x2ec)]('-X,\x20--method\x20<method>',a2_0x2babb7(0x31d),a2_0x2babb7(0x14e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x298),a2_0x2babb7(0x2d1))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x312),a2_0x2babb7(0x1b0))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x192),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x368ab1,_0x36899f)=>{return _0x36899f?[..._0x36899f,_0x368ab1]:[_0x368ab1];})['option'](a2_0x2babb7(0x248),a2_0x2babb7(0x341),'td')[a2_0x2babb7(0x209)](async(_0x3f9df8,_0x4f3741)=>{const _0x20a4b2=a2_0x2babb7;if(!_0x3f9df8){apiCmd[_0x20a4b2(0x27c)]();return;}const _0x3c9904=new ApiCommand(),_0x1f0e73=program[_0x20a4b2(0x253)](),_0xf049de=await createTDXInstance(_0x1f0e73),_0x2c8762=await _0x3c9904[_0x20a4b2(0x186)]({'options':{..._0x1f0e73,..._0x4f3741},'args':[_0x3f9df8],'tdx':_0xf049de});process[_0x20a4b2(0x360)](_0x2c8762);});program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x283))['description'](a2_0x2babb7(0x1c2))['addHelpText']('after',a2_0x2babb7(0x227))[a2_0x2babb7(0x209)](async _0x5cf045=>{const _0x2204dd=a2_0x2babb7,_0x112cda=new MCPCommand(),_0x24d36c=program[_0x2204dd(0x253)](),_0x4eae57=await createTDXInstance(_0x24d36c),_0x2ecb60=await _0x112cda[_0x2204dd(0x186)]({'options':{..._0x24d36c,..._0x5cf045},'args':[],'tdx':_0x4eae57});process[_0x2204dd(0x360)](_0x2ecb60);});const tableCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2b1))['description'](a2_0x2babb7(0x212)),tableListAction=async(_0x4c2f6c,_0x80aea2)=>{const _0x8350d5=a2_0x2babb7,_0x2be4c6=new TablesCommand(),_0x1e22c5=program['opts'](),_0x5efd89=await createTDXInstance(_0x1e22c5);_0x80aea2['in']&&(_0x80aea2[_0x8350d5(0x1e4)]=_0x80aea2['in']);const _0x4ed216=await _0x2be4c6['run']({'options':{..._0x1e22c5,..._0x80aea2},'args':_0x4c2f6c?[_0x4c2f6c]:[],'tdx':_0x5efd89});process[_0x8350d5(0x360)](_0x4ed216);};tableCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)](a2_0x2babb7(0x19b))['option'](a2_0x2babb7(0x244),a2_0x2babb7(0x276))[a2_0x2babb7(0x2ec)]('--in\x20<database>',a2_0x2babb7(0x249))[a2_0x2babb7(0x209)](tableListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2b8),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x202))['option'](a2_0x2babb7(0x244),a2_0x2babb7(0x276))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a5),a2_0x2babb7(0x249))[a2_0x2babb7(0x209)](tableListAction),program['command'](a2_0x2babb7(0x1b7))['description'](a2_0x2babb7(0x256))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x244),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x2babb7(0x2ec)]('--in\x20<database>',a2_0x2babb7(0x249))[a2_0x2babb7(0x209)](async(_0x53e9fe,_0x5709da)=>{const _0x1a0173=a2_0x2babb7,_0x4e1825=new ShowCommand(),_0x13a669=program[_0x1a0173(0x253)](),_0x4253c9=await createTDXInstance(_0x13a669);_0x5709da['in']&&(_0x5709da[_0x1a0173(0x1e4)]=_0x5709da['in']);const _0x169a13=await _0x4e1825[_0x1a0173(0x186)]({'options':{..._0x13a669,..._0x5709da},'args':_0x53e9fe?[_0x53e9fe]:[],'tdx':_0x4253c9});process[_0x1a0173(0x360)](_0x169a13);}),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x345))['alias']('desc')[a2_0x2babb7(0x207)](a2_0x2babb7(0x1e8))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x244),a2_0x2babb7(0x2aa))['option'](a2_0x2babb7(0x1a5),a2_0x2babb7(0x249))[a2_0x2babb7(0x209)](async(_0x40ba0d,_0x11dc50)=>{const _0x5920de=a2_0x2babb7,_0x126caf=new DescribeCommand(),_0x12ba87=program['opts'](),_0x2a4d67=await createTDXInstance(_0x12ba87);_0x11dc50['in']&&(_0x11dc50[_0x5920de(0x1e4)]=_0x11dc50['in']);const _0x3c541c=await _0x126caf['run']({'options':{..._0x12ba87,..._0x11dc50},'args':_0x40ba0d?[_0x40ba0d]:[],'tdx':_0x2a4d67});process[_0x5920de(0x360)](_0x3c541c);}),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x18e))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2d0))['option']('-d,\x20--database\x20<database>','Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a5),a2_0x2babb7(0x249))[a2_0x2babb7(0x2ec)]('--catalog\x20<catalog>',a2_0x2babb7(0x287))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x312),a2_0x2babb7(0x15f))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x303),a2_0x2babb7(0x2f0),'40')[a2_0x2babb7(0x209)](async(_0xee5df9,_0x5de7c7)=>{const _0x1879ae=a2_0x2babb7,_0x16e45e=new QueryCommand(),_0x3ac834=program['opts'](),_0xd026c4=await createTDXInstance(_0x3ac834);_0x5de7c7['in']&&(_0x5de7c7[_0x1879ae(0x1e4)]=_0x5de7c7['in']);const _0x27ba68=await _0x16e45e[_0x1879ae(0x186)]({'options':{..._0x3ac834,..._0x5de7c7},'args':_0xee5df9?[_0xee5df9]:[],'tdx':_0xd026c4});process[_0x1879ae(0x360)](_0x27ba68);});const segmentCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1a1))[a2_0x2babb7(0x370)]('sg')[a2_0x2babb7(0x207)](a2_0x2babb7(0x371)),segmentListAction=async(_0x35c746,_0x9bc244)=>{const _0x50aadc=a2_0x2babb7,_0x14bc49=new SegmentsCommand(),_0x43b8d2=program[_0x50aadc(0x253)](),_0x39f888=await createTDXInstance(_0x43b8d2),_0x35c6d7=await _0x14bc49[_0x50aadc(0x186)]({'options':{..._0x43b8d2,..._0x9bc244},'args':_0x35c746?[_0x35c746]:[],'tdx':_0x39f888});process[_0x50aadc(0x360)](_0x35c6d7);};segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x337))[a2_0x2babb7(0x207)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x349),a2_0x2babb7(0x233))[a2_0x2babb7(0x2ec)]('--max-depth\x20<depth>',a2_0x2babb7(0x179),'10')[a2_0x2babb7(0x209)](segmentListAction),program['command'](a2_0x2babb7(0x217),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option'](a2_0x2babb7(0x349),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x2babb7(0x2ec)]('--max-depth\x20<depth>',a2_0x2babb7(0x179),'10')[a2_0x2babb7(0x209)](segmentListAction),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x168),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x2a1))[a2_0x2babb7(0x209)](async(_0x3f2bd1,_0x1aae12)=>{const _0x2fee01=a2_0x2babb7,_0x27b385=new SegmentUseCommand(),_0x299cd2=program[_0x2fee01(0x253)](),_0x41e2e4=await createTDXInstance(_0x299cd2),_0x156c3c=await _0x27b385['run']({'options':{..._0x299cd2,..._0x1aae12},'args':[_0x3f2bd1],'tdx':_0x41e2e4});process['exit'](_0x156c3c);});const segmentViewAction=async(_0x10dffe,_0x9d2a6b)=>{const _0x3ab005=a2_0x2babb7,_0x434cb7=new SegmentViewCommand(),_0x582107=program[_0x3ab005(0x253)](),_0x157cf9=await createTDXInstance(_0x582107),_0x58ec0e=await _0x434cb7[_0x3ab005(0x186)]({'options':{..._0x582107,..._0x9d2a6b},'args':_0x10dffe?[_0x10dffe]:[],'tdx':_0x157cf9});process['exit'](_0x58ec0e);};segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2f1))[a2_0x2babb7(0x207)](a2_0x2babb7(0x185))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x21e),a2_0x2babb7(0x1f6))[a2_0x2babb7(0x209)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x2babb7(0x370)](a2_0x2babb7(0x1d4))[a2_0x2babb7(0x2ec)]('-w,\x20--web',a2_0x2babb7(0x1f6))[a2_0x2babb7(0x207)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x34d))[a2_0x2babb7(0x207)](a2_0x2babb7(0x28c))['action'](async(_0x3802e6,_0x266b61)=>{const _0x300957=a2_0x2babb7,_0x4beb1d=new SegmentDescCommand(),_0x410a27=program[_0x300957(0x253)](),_0x2463a8=await createTDXInstance(_0x410a27),_0x4f5dca=await _0x4beb1d['run']({'options':{..._0x410a27,..._0x266b61},'args':_0x3802e6?[_0x3802e6]:[],'tdx':_0x2463a8});process[_0x300957(0x360)](_0x4f5dca);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x213))[a2_0x2babb7(0x207)](a2_0x2babb7(0x145))[a2_0x2babb7(0x209)](async(_0x3c6daa,_0x48e5ff)=>{const _0x3fe4d5=a2_0x2babb7,_0x5643f0=new SegmentShowCommand(),_0x2238bc=program['opts'](),_0x5ea8a3=await createTDXInstance(_0x2238bc),_0x29e9dd=await _0x5643f0[_0x3fe4d5(0x186)]({'options':{..._0x2238bc,..._0x48e5ff},'args':_0x3c6daa?[_0x3c6daa]:[],'tdx':_0x5ea8a3});process[_0x3fe4d5(0x360)](_0x29e9dd);}),segmentCmd[a2_0x2babb7(0x27b)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x35a))[a2_0x2babb7(0x209)](async(_0x1b8e9e,_0x24af7b)=>{const _0x4e185d=a2_0x2babb7,_0x300ad0=new SegmentFolderListCommand(),_0x29a767=program[_0x4e185d(0x253)](),_0x571c50=await createTDXInstance(_0x29a767),_0x35571a=await _0x300ad0['run']({'options':{..._0x29a767,..._0x24af7b},'args':[_0x1b8e9e],'tdx':_0x571c50});process['exit'](_0x35571a);});const folderCmd=segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x32c),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x246));folderCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x260))[a2_0x2babb7(0x207)](a2_0x2babb7(0x164))[a2_0x2babb7(0x209)](async(_0x89e0e4,_0x5f1d9e)=>{const _0x23b747=a2_0x2babb7,_0x54b5d6=new SegmentFolderShowCommand(),_0x4ef5e8=program['opts'](),_0x5956a2=await createTDXInstance(_0x4ef5e8),_0x37dd97=await _0x54b5d6[_0x23b747(0x186)]({'options':{..._0x4ef5e8,..._0x5f1d9e},'args':[_0x89e0e4],'tdx':_0x5956a2});process[_0x23b747(0x360)](_0x37dd97);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x235))[a2_0x2babb7(0x207)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x2babb7(0x209)](async(_0x49418d,_0x52f439)=>{const _0x4a1e27=a2_0x2babb7,_0x301c74=new SegmentSQLCommand(),_0x51edfd=program['opts'](),_0x266dc1=await createTDXInstance(_0x51edfd),_0xe3a801=await _0x301c74[_0x4a1e27(0x186)]({'options':{..._0x51edfd,..._0x52f439},'args':_0x49418d?[_0x49418d]:[],'tdx':_0x266dc1});process[_0x4a1e27(0x360)](_0xe3a801);}),segmentCmd[a2_0x2babb7(0x27b)]('fields\x20[parent_name]')['description'](a2_0x2babb7(0x2a2))[a2_0x2babb7(0x209)](async(_0x58684b,_0x3b7c0d)=>{const _0x2902ac=a2_0x2babb7,_0x2d228a=new SegmentFieldsCommand(),_0x233aee=program['opts'](),_0x281a5d=await createTDXInstance(_0x233aee),_0x337667=await _0x2d228a[_0x2902ac(0x186)]({'options':{..._0x233aee,..._0x3b7c0d},'args':_0x58684b?[_0x58684b]:[],'tdx':_0x281a5d});process[_0x2902ac(0x360)](_0x337667);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x267))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2be))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x31a))['option'](a2_0x2babb7(0x17d),a2_0x2babb7(0x327))[a2_0x2babb7(0x209)](async(_0x33caec,_0x2eced6)=>{const _0x52f26c=a2_0x2babb7,_0x1efdde=new SegmentPullCommand(),_0x212820=program[_0x52f26c(0x253)](),_0x542adb=await createTDXInstance(_0x212820),_0x866559=await _0x1efdde['run']({'options':{..._0x212820,..._0x2eced6},'args':_0x33caec?[_0x33caec]:[],'tdx':_0x542adb});process[_0x52f26c(0x360)](_0x866559);}),segmentCmd['command'](a2_0x2babb7(0x13f))[a2_0x2babb7(0x207)](a2_0x2babb7(0x15b))[a2_0x2babb7(0x2ec)]('-y,\x20--yes',a2_0x2babb7(0x31a))[a2_0x2babb7(0x2ec)]('--dry-run',a2_0x2babb7(0x327))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1da),a2_0x2babb7(0x2f9))[a2_0x2babb7(0x209)](async(_0x7c698d,_0x13de1d)=>{const _0x2f2179=a2_0x2babb7,_0x37a6f7=new SegmentPushCommand(),_0x90378a=program[_0x2f2179(0x253)](),_0x5b09b4=await createTDXInstance(_0x90378a),_0x56ee2c=await _0x37a6f7[_0x2f2179(0x186)]({'options':{..._0x90378a,..._0x13de1d},'args':_0x7c698d?[_0x7c698d]:[],'tdx':_0x5b09b4});process[_0x2f2179(0x360)](_0x56ee2c);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x374))['description'](a2_0x2babb7(0x1f2))[a2_0x2babb7(0x209)](async(_0x335fb9,_0x553652)=>{const _0x290c1e=a2_0x2babb7,_0x552cae=new SegmentValidateCommand(),_0x3d6aca=program['opts'](),_0x4fbde0=await createTDXInstance(_0x3d6aca),_0x4fc29b=await _0x552cae['run']({'options':{..._0x3d6aca,..._0x553652},'args':_0x335fb9?[_0x335fb9]:[],'tdx':_0x4fbde0});process[_0x290c1e(0x360)](_0x4fc29b);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2e6),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x36e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),a2_0x2babb7(0x37e))['option'](a2_0x2babb7(0x2f7),a2_0x2babb7(0x1a9))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x21f),a2_0x2babb7(0x13d))[a2_0x2babb7(0x2ec)]('--folder\x20<name>',a2_0x2babb7(0x1fc))['option'](a2_0x2babb7(0x30b),a2_0x2babb7(0x2c4))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x19c),a2_0x2babb7(0x1a2))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x368),'Skip\x20population\x20counting')['action'](async(_0x7109a2,_0x590699)=>{const _0x444ca5=a2_0x2babb7,_0x3d8754=new SegmentCreateCommand(),_0x3027b7=program['opts'](),_0x6e5d11=await createTDXInstance(_0x3027b7),_0x36a18b=await _0x3d8754[_0x444ca5(0x186)]({'options':{..._0x3027b7,..._0x590699},'args':[_0x7109a2],'tdx':_0x6e5d11});process[_0x444ca5(0x360)](_0x36a18b);}),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x22b),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x1cf))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1ab),'New\x20segment\x20name')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),a2_0x2babb7(0x1d6))['option']('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x21f),a2_0x2babb7(0x143))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1c3),'Move\x20to\x20folder')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x30b),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['action'](async(_0x57caa8,_0x140e77)=>{const _0x41fdcc=a2_0x2babb7,_0x1c73c1=new SegmentUpdateCommand(),_0x26ca09=program[_0x41fdcc(0x253)](),_0x21a0c8=await createTDXInstance(_0x26ca09),_0x113ce3=await _0x1c73c1['run']({'options':{..._0x26ca09,..._0x140e77},'args':[_0x57caa8],'tdx':_0x21a0c8});process[_0x41fdcc(0x360)](_0x113ce3);});const parentCmd=segmentCmd[a2_0x2babb7(0x27b)]('parent',{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x22d)),parentListAction=async(_0x5a654f,_0x5df284)=>{const _0x506223=a2_0x2babb7,_0x49eb68=new ParentSegmentListCommand(),_0x346b52=program[_0x506223(0x253)](),_0x353a7d=await createTDXInstance(_0x346b52),_0x509047=await _0x49eb68[_0x506223(0x186)]({'options':{..._0x346b52,..._0x5df284},'args':_0x5a654f?[_0x5a654f]:[],'tdx':_0x353a7d});process[_0x506223(0x360)](_0x509047);};parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)](a2_0x2babb7(0x30e))[a2_0x2babb7(0x209)](parentListAction),segmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x17b),{'hidden':!![]})[a2_0x2babb7(0x207)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x2babb7(0x209)](parentListAction),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1db))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2f6))['option'](a2_0x2babb7(0x2cc),a2_0x2babb7(0x229))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x336))['action'](async(_0x175d3d,_0x2c7905)=>{const _0x448324=a2_0x2babb7,_0x384fca=new ParentSegmentPullCommand(),_0x37064f=program[_0x448324(0x253)](),_0x3c3c58=await createTDXInstance(_0x37064f),_0x5a5fa5=await _0x384fca['run']({'options':{..._0x37064f,..._0x2c7905},'args':_0x175d3d?[_0x175d3d]:[],'tdx':_0x3c3c58});process[_0x448324(0x360)](_0x5a5fa5);}),parentCmd['command'](a2_0x2babb7(0x1df))['description'](a2_0x2babb7(0x2ac))[a2_0x2babb7(0x2ec)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x2babb7(0x209)](async(_0x314886,_0xf71cd0)=>{const _0x3d1626=a2_0x2babb7,_0xc3e377=new ParentSegmentPushCommand(),_0x3f39cc=program[_0x3d1626(0x253)](),_0x52238c=await createTDXInstance(_0x3f39cc),_0x27592f=await _0xc3e377[_0x3d1626(0x186)]({'options':{..._0x3f39cc,..._0xf71cd0},'args':_0x314886?[_0x314886]:[],'tdx':_0x52238c});process[_0x3d1626(0x360)](_0x27592f);}),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x318))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x26f),a2_0x2babb7(0x1c5))[a2_0x2babb7(0x2ec)]('--attribute\x20[name]',a2_0x2babb7(0x2e4))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x328),a2_0x2babb7(0x189))['option']('--enriched',a2_0x2babb7(0x1ec))[a2_0x2babb7(0x2ec)]('--interval\x20<range>',a2_0x2babb7(0x220),a2_0x2babb7(0x31f))[a2_0x2babb7(0x209)](async(_0xbe3ddc,_0xe1e5ab)=>{const _0x5647cc=a2_0x2babb7,_0x32e912=new ParentSegmentValidateCommand(),_0x703a72=program[_0x5647cc(0x253)](),_0x53459f=await createTDXInstance(_0x703a72),_0x1a21a3=await _0x32e912[_0x5647cc(0x186)]({'options':{..._0x703a72,..._0xe1e5ab},'args':_0xbe3ddc?[_0xbe3ddc]:[],'tdx':_0x53459f});process[_0x5647cc(0x360)](_0x1a21a3);}),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2ee))[a2_0x2babb7(0x207)](a2_0x2babb7(0x27e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x26f),a2_0x2babb7(0x232))['option'](a2_0x2babb7(0x380),a2_0x2babb7(0x28b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x328),a2_0x2babb7(0x364))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1ff),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x2babb7(0x2ec)]('--interval\x20<range>',a2_0x2babb7(0x220),a2_0x2babb7(0x31f))[a2_0x2babb7(0x209)](async(_0x35e309,_0x256400)=>{const _0x1cccf0=a2_0x2babb7,_0x28aed4=new ParentSegmentPreviewCommand(),_0x2b3a66=program[_0x1cccf0(0x253)](),_0x53791e=await createTDXInstance(_0x2b3a66),_0x2048ea=await _0x28aed4[_0x1cccf0(0x186)]({'options':{..._0x2b3a66,..._0x256400},'args':_0x35e309?[_0x35e309]:[],'tdx':_0x53791e});process[_0x1cccf0(0x360)](_0x2048ea);}),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1a8))[a2_0x2babb7(0x207)](a2_0x2babb7(0x18d))['option']('-y,\x20--yes',a2_0x2babb7(0x336))[a2_0x2babb7(0x209)](async(_0x427276,_0x16a364)=>{const _0x25ed18=a2_0x2babb7,_0x4f757f=new ParentSegmentRunCommand(),_0x546898=program[_0x25ed18(0x253)](),_0x12923b=await createTDXInstance(_0x546898),_0x5405d3=await _0x4f757f[_0x25ed18(0x186)]({'options':{..._0x546898,..._0x16a364},'args':_0x427276?[_0x427276]:[],'tdx':_0x12923b});process['exit'](_0x5405d3);});const parentSegmentCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x176))[a2_0x2babb7(0x370)]('ps')['description']('Parent\x20segment\x20management');parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)](a2_0x2babb7(0x30e))[a2_0x2babb7(0x209)](parentListAction),parentSegmentCmd[a2_0x2babb7(0x27b)]('pull\x20[name]')['description'](a2_0x2babb7(0x1c8))['option'](a2_0x2babb7(0x2cc),a2_0x2babb7(0x259))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x336))[a2_0x2babb7(0x2ec)]('-u,\x20--use',a2_0x2babb7(0x2c1))[a2_0x2babb7(0x209)](async(_0x3c942f,_0x1a438d)=>{const _0x2ea0d9=a2_0x2babb7,_0x2e174d=new ParentSegmentPullCommand(),_0x43a1c8=program[_0x2ea0d9(0x253)](),_0x46492a=await createTDXInstance(_0x43a1c8),_0x28d4d8=await _0x2e174d['run']({'options':{..._0x43a1c8,..._0x1a438d},'args':_0x3c942f?[_0x3c942f]:[],'tdx':_0x46492a});process['exit'](_0x28d4d8);}),parentSegmentCmd[a2_0x2babb7(0x27b)]('push\x20[name]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x2fa))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),'Skip\x20confirmation\x20prompt')[a2_0x2babb7(0x209)](async(_0x2d3282,_0x1ea632)=>{const _0x36c18a=a2_0x2babb7,_0x5da19e=new ParentSegmentPushCommand(),_0x49ea55=program[_0x36c18a(0x253)](),_0x350559=await createTDXInstance(_0x49ea55),_0x4caeef=await _0x5da19e[_0x36c18a(0x186)]({'options':{..._0x49ea55,..._0x1ea632},'args':_0x2d3282?[_0x2d3282]:[],'tdx':_0x350559});process['exit'](_0x4caeef);}),parentSegmentCmd[a2_0x2babb7(0x27b)]('validate\x20[name]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x239))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x26f),a2_0x2babb7(0x1c5))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x380),a2_0x2babb7(0x2e4))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x328),a2_0x2babb7(0x189))['option']('--enriched',a2_0x2babb7(0x1ec))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2c0),a2_0x2babb7(0x220),a2_0x2babb7(0x31f))[a2_0x2babb7(0x209)](async(_0x618b5e,_0x3f7b1d)=>{const _0xee9c18=a2_0x2babb7,_0x1d607b=new ParentSegmentValidateCommand(),_0x50f25e=program['opts'](),_0x193139=await createTDXInstance(_0x50f25e),_0x32d6e8=await _0x1d607b['run']({'options':{..._0x50f25e,..._0x3f7b1d},'args':_0x618b5e?[_0x618b5e]:[],'tdx':_0x193139});process[_0xee9c18(0x360)](_0x32d6e8);}),parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2b0))[a2_0x2babb7(0x207)](a2_0x2babb7(0x27e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x26f),a2_0x2babb7(0x232))[a2_0x2babb7(0x2ec)]('--attribute\x20[name]',a2_0x2babb7(0x28b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x328),a2_0x2babb7(0x364))[a2_0x2babb7(0x2ec)]('--enriched',a2_0x2babb7(0x339))['option'](a2_0x2babb7(0x2c0),a2_0x2babb7(0x220),a2_0x2babb7(0x31f))['action'](async(_0x28ca60,_0x294c90)=>{const _0x1ab7ae=a2_0x2babb7,_0x3888aa=new ParentSegmentPreviewCommand(),_0x5ad279=program[_0x1ab7ae(0x253)](),_0x5f30e9=await createTDXInstance(_0x5ad279),_0x344ae7=await _0x3888aa[_0x1ab7ae(0x186)]({'options':{..._0x5ad279,..._0x294c90},'args':_0x28ca60?[_0x28ca60]:[],'tdx':_0x5f30e9});process[_0x1ab7ae(0x360)](_0x344ae7);}),parentSegmentCmd[a2_0x2babb7(0x27b)]('run\x20[name]')['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x336))['action'](async(_0x271275,_0x4acb9e)=>{const _0x5ce4eb=a2_0x2babb7,_0x20eb18=new ParentSegmentRunCommand(),_0x17bf9e=program[_0x5ce4eb(0x253)](),_0x1b324c=await createTDXInstance(_0x17bf9e),_0x4dda8d=await _0x20eb18[_0x5ce4eb(0x186)]({'options':{..._0x17bf9e,..._0x4acb9e},'args':_0x271275?[_0x271275]:[],'tdx':_0x1b324c});process[_0x5ce4eb(0x360)](_0x4dda8d);}),parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1e7))[a2_0x2babb7(0x207)](a2_0x2babb7(0x147))[a2_0x2babb7(0x2ec)]('--json','Output\x20as\x20JSON')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2fb),a2_0x2babb7(0x363))[a2_0x2babb7(0x209)](async(_0x23d523,_0xdbf0a8)=>{const _0x53a256=a2_0x2babb7,_0x262b31=new ParentSegmentFieldsCommand(),_0x31cd1c=program[_0x53a256(0x253)](),_0x5b4468=await createTDXInstance(_0x31cd1c),_0x29069a=await _0x262b31[_0x53a256(0x186)]({'options':{..._0x31cd1c,..._0xdbf0a8},'args':_0x23d523?[_0x23d523]:[],'tdx':_0x5b4468});process[_0x53a256(0x360)](_0x29069a);}),parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1eb))[a2_0x2babb7(0x207)](a2_0x2babb7(0x325))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x21e),a2_0x2babb7(0x2c2))[a2_0x2babb7(0x2ec)]('--json',a2_0x2babb7(0x20f))[a2_0x2babb7(0x2ec)]('--jsonl',a2_0x2babb7(0x363))[a2_0x2babb7(0x209)](async(_0x1b4087,_0x140293)=>{const _0x403d14=a2_0x2babb7,_0x381153=new ParentSegmentViewCommand(),_0x5edbfc=program[_0x403d14(0x253)](),_0x288dff=await createTDXInstance(_0x5edbfc),_0x5499cc=await _0x381153[_0x403d14(0x186)]({'options':{..._0x5edbfc,..._0x140293},'args':_0x1b4087?[_0x1b4087]:[],'tdx':_0x288dff});process[_0x403d14(0x360)](_0x5499cc);}),parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x149))['description'](a2_0x2babb7(0x1f4))['option'](a2_0x2babb7(0x300),a2_0x2babb7(0x20f))['option'](a2_0x2babb7(0x2fb),a2_0x2babb7(0x363))[a2_0x2babb7(0x209)](async(_0x1ceea7,_0x27fe07)=>{const _0x6b4ff0=a2_0x2babb7,_0x221cc8=new ParentSegmentDescCommand(),_0x4b8ab8=program[_0x6b4ff0(0x253)](),_0x38feb8=await createTDXInstance(_0x4b8ab8),_0x507f86=await _0x221cc8['run']({'options':{..._0x4b8ab8,..._0x27fe07},'args':_0x1ceea7?[_0x1ceea7]:[],'tdx':_0x38feb8});process[_0x6b4ff0(0x360)](_0x507f86);}),parentSegmentCmd[a2_0x2babb7(0x27b)]('sql\x20[name]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x14a))['option'](a2_0x2babb7(0x300),a2_0x2babb7(0x20f))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2fb),'Output\x20as\x20JSON\x20Lines')[a2_0x2babb7(0x209)](async(_0x43f3af,_0x2bee20)=>{const _0x11b446=a2_0x2babb7,_0x1f86ac=new ParentSegmentSQLCommand(),_0x4b46a0=program['opts'](),_0x958c1=await createTDXInstance(_0x4b46a0),_0x2e0a49=await _0x1f86ac[_0x11b446(0x186)]({'options':{..._0x4b46a0,..._0x2bee20},'args':_0x43f3af?[_0x43f3af]:[],'tdx':_0x958c1});process['exit'](_0x2e0a49);}),parentSegmentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1d8))['description'](a2_0x2babb7(0x180))[a2_0x2babb7(0x2ec)]('--limit\x20<n>',a2_0x2babb7(0x1ca))[a2_0x2babb7(0x2ec)]('--json','Output\x20as\x20JSON')[a2_0x2babb7(0x2ec)]('--jsonl',a2_0x2babb7(0x363))[a2_0x2babb7(0x209)](async(_0x494032,_0x454eda)=>{const _0x112030=a2_0x2babb7,_0x31dcfa=new ParentSegmentShowCommand(),_0xbf008a=program[_0x112030(0x253)](),_0x25ef5a=await createTDXInstance(_0xbf008a),_0x2645c5=await _0x31dcfa[_0x112030(0x186)]({'options':{..._0xbf008a,..._0x454eda},'args':_0x494032?[_0x494032]:[],'tdx':_0x25ef5a});process[_0x112030(0x360)](_0x2645c5);}),parentSegmentCmd['command'](a2_0x2babb7(0x154))[a2_0x2babb7(0x207)](a2_0x2babb7(0x230))[a2_0x2babb7(0x209)](async(_0x2059d3,_0x6992f5)=>{const _0x49c4e8=a2_0x2babb7,_0x389e79=new UseCommand(),_0x1664f1=program[_0x49c4e8(0x253)](),_0x56e8e6=_0x2059d3?['parent_segment',_0x2059d3]:[],_0x502a02=await _0x389e79[_0x49c4e8(0x186)]({'options':{..._0x1664f1,..._0x6992f5},'args':_0x56e8e6,'tdx':null});process[_0x49c4e8(0x360)](_0x502a02);}),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x16a))['description'](a2_0x2babb7(0x367))['requiredOption'](a2_0x2babb7(0x2b7),'Master\x20database\x20name')[a2_0x2babb7(0x203)](a2_0x2babb7(0x1ee),a2_0x2babb7(0x1c1))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),a2_0x2babb7(0x2a8))['option'](a2_0x2babb7(0x362),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x25d),a2_0x2babb7(0x171))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x289),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x378),'Attributes\x20as\x20JSON\x20string')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1dc),'Attributes\x20from\x20JSON\x20file')['option']('--behaviors\x20<json>',a2_0x2babb7(0x1d9))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x142),a2_0x2babb7(0x1f3))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e9),a2_0x2babb7(0x1e3))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x299),a2_0x2babb7(0x174))[a2_0x2babb7(0x209)](async(_0x5b2c09,_0x5a5112)=>{const _0x2e703d=a2_0x2babb7,_0x4d59c5=new ParentSegmentCreateCommand(),_0x470930=program[_0x2e703d(0x253)](),_0x2895f0=await createTDXInstance(_0x470930),_0x4c3e19=await _0x4d59c5[_0x2e703d(0x186)]({'options':{..._0x470930,..._0x5a5112},'args':[_0x5b2c09],'tdx':_0x2895f0});process[_0x2e703d(0x360)](_0x4c3e19);}),parentCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x14d))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1c4))['option'](a2_0x2babb7(0x225),'Updated\x20description')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x362),a2_0x2babb7(0x37d))['option'](a2_0x2babb7(0x25d),a2_0x2babb7(0x23e))['option'](a2_0x2babb7(0x289),a2_0x2babb7(0x1b8))['option'](a2_0x2babb7(0x196),a2_0x2babb7(0x19a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x210),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x26b),a2_0x2babb7(0x263))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x200),a2_0x2babb7(0x166))[a2_0x2babb7(0x209)](async(_0x56a552,_0x5d1fd4)=>{const _0xa6e66a=a2_0x2babb7,_0x2e6839=new ParentSegmentUpdateCommand(),_0x5c8678=program[_0xa6e66a(0x253)](),_0xf8c2e3=await createTDXInstance(_0x5c8678),_0x4140bb=await _0x2e6839[_0xa6e66a(0x186)]({'options':{..._0x5c8678,..._0x5d1fd4},'args':[_0x56a552],'tdx':_0xf8c2e3});process[_0xa6e66a(0x360)](_0x4140bb);}),folderCmd['command'](a2_0x2babb7(0x274))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2e2))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),'Folder\x20description')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1aa),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x2babb7(0x209)](async(_0x380b20,_0x5b8bb9,_0x45c357)=>{const _0x2be727=a2_0x2babb7,_0x12e3de=new SegmentFolderCreateCommand(),_0x7b51c2=program[_0x2be727(0x253)](),_0x164d27=await createTDXInstance(_0x7b51c2),_0x4d2459=await _0x12e3de[_0x2be727(0x186)]({'options':{..._0x7b51c2,..._0x45c357},'args':[_0x380b20,_0x5b8bb9],'tdx':_0x164d27});process[_0x2be727(0x360)](_0x4d2459);}),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x296))[a2_0x2babb7(0x207)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x2babb7(0x209)](async(_0x420bc4,_0x180e55)=>{const _0x4d3a27=a2_0x2babb7,_0x1773cf=new ActivationsCommand(),_0x212ab7=program[_0x4d3a27(0x253)](),_0x1b206b=await createTDXInstance(_0x212ab7),_0x22ca91=await _0x1773cf['run']({'options':{..._0x212ab7,..._0x180e55},'args':[_0x420bc4],'tdx':_0x1b206b});process[_0x4d3a27(0x360)](_0x22ca91);});const workflowCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2bf))[a2_0x2babb7(0x370)]('wf')['description'](a2_0x2babb7(0x37c)),wfProjectCmd=workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x306))[a2_0x2babb7(0x207)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0xca70b0,_0xf0a21f)=>{const _0x36b920=a2_0x2babb7,_0x5f0499=new WorkflowProjectsCommand(),_0x16026b=program[_0x36b920(0x253)](),_0x47ff24=await createTDXInstance(_0x16026b),_0x54e5d6=await _0x5f0499[_0x36b920(0x186)]({'options':{..._0x16026b,..._0xf0a21f},'args':_0xca70b0?[_0xca70b0]:[],'tdx':_0x47ff24});process[_0x36b920(0x360)](_0x54e5d6);};wfProjectCmd['command']('list\x20[pattern]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x286))['action'](wfProjectListAction),workflowCmd['command']('projects\x20[pattern]')['description'](a2_0x2babb7(0x190))[a2_0x2babb7(0x209)](wfProjectListAction);const wfWorkflowListAction=async(_0x35cf48,_0x1d2dc6)=>{const _0x5b3664=a2_0x2babb7,_0x27b06a=new WorkflowWorkflowsCommand(),_0x50c860=program[_0x5b3664(0x253)](),_0x5aa432=await createTDXInstance(_0x50c860),_0x1001b1=await _0x27b06a[_0x5b3664(0x186)]({'options':{..._0x50c860,..._0x1d2dc6},'args':_0x35cf48?[_0x35cf48]:[],'tdx':_0x5aa432});process[_0x5b3664(0x360)](_0x1001b1);};workflowCmd[a2_0x2babb7(0x27b)]('workflows\x20[project]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x2da))[a2_0x2babb7(0x209)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x18b))[a2_0x2babb7(0x207)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x4fd391,_0x2eaa36)=>{const _0x70cdcb=a2_0x2babb7,_0x315ec4=new WorkflowSessionsCommand(),_0x274342=program['opts'](),_0x415800=await createTDXInstance(_0x274342),_0x525c26=await _0x315ec4[_0x70cdcb(0x186)]({'options':{..._0x274342,..._0x2eaa36},'args':_0x4fd391?[_0x4fd391]:[],'tdx':_0x415800});process[_0x70cdcb(0x360)](_0x525c26);};wfSessionCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x195))[a2_0x2babb7(0x207)]('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2de),a2_0x2babb7(0x291))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x288),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option'](a2_0x2babb7(0x25c),a2_0x2babb7(0x20d))[a2_0x2babb7(0x209)](wfSessionListAction),workflowCmd['command'](a2_0x2babb7(0x275))[a2_0x2babb7(0x207)](a2_0x2babb7(0x301))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2de),a2_0x2babb7(0x291))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x288),a2_0x2babb7(0x353))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x25c),a2_0x2babb7(0x20d))[a2_0x2babb7(0x209)](wfSessionListAction);const wfAttemptListAction=async(_0x45dbfd,_0x37881e)=>{const _0x1b46e3=a2_0x2babb7,_0x419a2d=new WorkflowAttemptsCommand(),_0x3566ef=program[_0x1b46e3(0x253)](),_0x4c1360=await createTDXInstance(_0x3566ef),_0x24d878=await _0x419a2d[_0x1b46e3(0x186)]({'options':{..._0x3566ef,..._0x37881e},'args':_0x45dbfd?[_0x45dbfd]:[],'tdx':_0x4c1360});process[_0x1b46e3(0x360)](_0x24d878);},attemptCmd=workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x247))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1b1))[a2_0x2babb7(0x1f8)]('[attempt-id]','Attempt\x20ID')[a2_0x2babb7(0x1f8)]('[action]',a2_0x2babb7(0x178))[a2_0x2babb7(0x1f8)](a2_0x2babb7(0x271),a2_0x2babb7(0x2d7))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x358),a2_0x2babb7(0x2bb))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1bb),a2_0x2babb7(0x1ac))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x343),a2_0x2babb7(0x241))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x319),a2_0x2babb7(0x215))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x19f),a2_0x2babb7(0x1c9))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x27d),a2_0x2babb7(0x18c))[a2_0x2babb7(0x209)](async(_0x20950b,_0x1fafe8,_0x4e1d6e,_0x3766d0)=>{const _0x4be9e8=a2_0x2babb7;if(_0x20950b===_0x4be9e8(0x1c6)){await wfAttemptListAction(_0x1fafe8,_0x3766d0);return;}if(!_0x20950b){attemptCmd['help']();return;}const _0x389169=program[_0x4be9e8(0x253)](),_0x2292bc=await createTDXInstance(_0x389169);let _0x306b38=0x0;if(!_0x1fafe8){const _0x114e38=new WorkflowAttemptCommand();_0x306b38=await _0x114e38[_0x4be9e8(0x186)]({'options':{..._0x389169,..._0x3766d0},'args':[_0x20950b],'tdx':_0x2292bc});}else{if(_0x1fafe8===_0x4be9e8(0x2a0)){const _0x573539=new WorkflowLogsCommand();_0x306b38=await _0x573539[_0x4be9e8(0x186)]({'options':{..._0x389169,..._0x3766d0},'args':_0x4e1d6e?[_0x20950b,_0x4e1d6e]:[_0x20950b],'tdx':_0x2292bc});}else{if(_0x1fafe8===_0x4be9e8(0x173)){const _0x129d2b=new WorkflowTasksCommand();_0x306b38=await _0x129d2b[_0x4be9e8(0x186)]({'options':{..._0x389169,..._0x3766d0},'args':[_0x20950b],'tdx':_0x2292bc});}else{if(_0x1fafe8==='kill'){const _0xb73a57=new WorkflowKillCommand();_0x306b38=await _0xb73a57[_0x4be9e8(0x186)]({'options':{..._0x389169,..._0x3766d0},'args':[_0x20950b],'tdx':_0x2292bc});}else{if(_0x1fafe8==='retry'){const _0xdf8ff6=new WorkflowRetryCommand();_0x306b38=await _0xdf8ff6[_0x4be9e8(0x186)]({'options':{..._0x389169,..._0x3766d0},'args':[_0x4be9e8(0x16e)+_0x20950b],'tdx':_0x2292bc});}else console[_0x4be9e8(0x2e5)](_0x4be9e8(0x2c5)+_0x1fafe8),console[_0x4be9e8(0x2e5)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x306b38=0x1;}}}}process[_0x4be9e8(0x360)](_0x306b38);});attemptCmd['command'](a2_0x2babb7(0x195))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x27d),a2_0x2babb7(0x310))[a2_0x2babb7(0x209)](wfAttemptListAction),workflowCmd[a2_0x2babb7(0x27b)]('attempts\x20[project]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x290))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x27d),'Include\x20retried\x20attempts')[a2_0x2babb7(0x209)](wfAttemptListAction),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x316))['description']('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')[a2_0x2babb7(0x2ec)]('--follow',a2_0x2babb7(0x32b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x377),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x34a),a2_0x2babb7(0x1d1))[a2_0x2babb7(0x209)](async(_0x226e84,_0x59d1c0)=>{const _0x463034=a2_0x2babb7,_0x1f8e7d=new WorkflowTimelineCommand(),_0x17bd4f=program[_0x463034(0x253)](),_0x4a0bc5=await createTDXInstance(_0x17bd4f),_0x5c2eff=await _0x1f8e7d[_0x463034(0x186)]({'options':{..._0x17bd4f,..._0x59d1c0},'args':_0x226e84?[_0x226e84]:[],'tdx':_0x4a0bc5});process[_0x463034(0x360)](_0x5c2eff);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x308))[a2_0x2babb7(0x207)](a2_0x2babb7(0x33b))[a2_0x2babb7(0x2ec)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x2babb7(0x2ec)]('--params\x20<json>',a2_0x2babb7(0x36c))[a2_0x2babb7(0x209)](async(_0x49602d,_0x324b11)=>{const _0x5ef297=a2_0x2babb7,_0x1a5f3a=new WorkflowRetryCommand(),_0x5e326c=program[_0x5ef297(0x253)](),_0x477573=await createTDXInstance(_0x5e326c),_0x5bac7c=await _0x1a5f3a[_0x5ef297(0x186)]({'options':{..._0x5e326c,..._0x324b11},'args':[_0x49602d],'tdx':_0x477573});process[_0x5ef297(0x360)](_0x5bac7c);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1a6))['description'](a2_0x2babb7(0x2d8))['option']('--param\x20<key=value>','Workflow\x20parameter\x20(repeatable)',(_0x48af22,_0x8621=[])=>[..._0x8621,_0x48af22],[])[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a3),a2_0x2babb7(0x293))['action'](async(_0x65fbfa,_0x1fc7d4)=>{const _0x49329d=a2_0x2babb7,_0x483c5d=new WorkflowRunCommand(),_0x3f1f50=program[_0x49329d(0x253)](),_0xbf61d7=await createTDXInstance(_0x3f1f50),_0x4fa9f1=await _0x483c5d[_0x49329d(0x186)]({'options':{..._0x3f1f50,..._0x1fc7d4},'args':_0x65fbfa?[_0x65fbfa]:[],'tdx':_0xbf61d7});process[_0x49329d(0x360)](_0x4fa9f1);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x270))['description'](a2_0x2babb7(0x33e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b5),a2_0x2babb7(0x2d3))['action'](async(_0x1a0bd1,_0x13eaf1,_0xa0ebdf)=>{const _0x3a7d2f=a2_0x2babb7,_0x4b9e64=new WorkflowDownloadCommand(),_0x506d25=program[_0x3a7d2f(0x253)](),_0x86bbac=await createTDXInstance(_0x506d25),_0x23032a=await _0x4b9e64[_0x3a7d2f(0x186)]({'options':{..._0x506d25,..._0xa0ebdf},'args':[_0x1a0bd1,_0x13eaf1||'.'],'tdx':_0x86bbac});process[_0x3a7d2f(0x360)](_0x23032a);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2cb))[a2_0x2babb7(0x207)](a2_0x2babb7(0x219))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b5),a2_0x2babb7(0x1b4))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),'Skip\x20confirmation\x20prompt')['action'](async(_0x89d6f5,_0x3c73f5,_0x1742cc)=>{const _0x364666=a2_0x2babb7,_0x3fd948=new WorkflowPullCommand(),_0x1e5cca=program[_0x364666(0x253)](),_0x43e6d6=await createTDXInstance(_0x1e5cca),_0x4a799e=await _0x3fd948['run']({'options':{..._0x1e5cca,..._0x1742cc},'args':_0x3c73f5?[_0x89d6f5,_0x3c73f5]:[_0x89d6f5],'tdx':_0x43e6d6});process[_0x364666(0x360)](_0x4a799e);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x258))[a2_0x2babb7(0x207)](a2_0x2babb7(0x148))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b5),a2_0x2babb7(0x162))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),a2_0x2babb7(0x36d))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e0),a2_0x2babb7(0x22e))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x2babb7(0x209)](async(_0x4c25ab,_0x4d73fd)=>{const _0x22b00d=new WorkflowPushCommand(),_0x5b268b=program['opts'](),_0x3bbe31=await createTDXInstance(_0x5b268b),_0x26e892=await _0x22b00d['run']({'options':{..._0x5b268b,..._0x4d73fd},'args':_0x4c25ab?[_0x4c25ab]:[],'tdx':_0x3bbe31});process['exit'](_0x26e892);}),workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x23a))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2c8))['option'](a2_0x2babb7(0x2e3),a2_0x2babb7(0x20e))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b5),a2_0x2babb7(0x34c))['option']('--skip-validation',a2_0x2babb7(0x22e))[a2_0x2babb7(0x209)](async(_0x588251,_0x3f1a1f)=>{const _0x5f578a=a2_0x2babb7,_0x2c8334=new WorkflowUploadCommand(),_0x14e9db=program[_0x5f578a(0x253)](),_0x522077=await createTDXInstance(_0x14e9db),_0x2b9595=await _0x2c8334['run']({'options':{..._0x14e9db,..._0x3f1a1f},'args':_0x588251?[_0x588251]:[],'tdx':_0x522077});process[_0x5f578a(0x360)](_0x2b9595);}),workflowCmd[a2_0x2babb7(0x27b)]('clone\x20[source-dir]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x344))['option'](a2_0x2babb7(0x2e3),a2_0x2babb7(0x23d))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b5),a2_0x2babb7(0x162))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),a2_0x2babb7(0x329))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e0),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1a0),a2_0x2babb7(0x336))[a2_0x2babb7(0x209)](async(_0x599014,_0x19879b)=>{const _0x5d8f79=a2_0x2babb7,_0xfe4f00=new WorkflowCloneCommand(),_0x30c17e=program[_0x5d8f79(0x253)](),_0x26e3d2=await createTDXInstance(_0x30c17e),_0x4bd632=await _0xfe4f00[_0x5d8f79(0x186)]({'options':{..._0x30c17e,..._0x19879b},'args':_0x599014?[_0x599014]:[],'tdx':_0x26e3d2});process[_0x5d8f79(0x360)](_0x4bd632);}),workflowCmd[a2_0x2babb7(0x27b)]('delete\x20<project-name-or-id>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x169))[a2_0x2babb7(0x209)](async(_0x371a8f,_0x53215f)=>{const _0xf69bb7=a2_0x2babb7,_0x100842=new WorkflowDeleteCommand(),_0xbbfa4=program['opts'](),_0x411604=await createTDXInstance(_0xbbfa4),_0x267c9a=await _0x100842['run']({'options':{..._0xbbfa4,..._0x53215f},'args':[_0x371a8f],'tdx':_0x411604});process[_0xf69bb7(0x360)](_0x267c9a);}),workflowCmd[a2_0x2babb7(0x27b)]('use\x20[project]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x273))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e8),a2_0x2babb7(0x37f))[a2_0x2babb7(0x209)](async(_0x575e38,_0x395eeb)=>{const _0x3c38c0=a2_0x2babb7,_0xc2b84e=new WorkflowUseCommand(),_0x43593f=program[_0x3c38c0(0x253)](),_0x5111a2=await createTDXInstance(_0x43593f),_0xcf3493=await _0xc2b84e[_0x3c38c0(0x186)]({'options':{..._0x43593f,..._0x395eeb},'args':_0x575e38?[_0x575e38]:[],'tdx':_0x5111a2});process[_0x3c38c0(0x360)](_0xcf3493);});const wfSecretsCmd=workflowCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x16c))[a2_0x2babb7(0x207)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x195))['description']('List\x20secret\x20keys\x20for\x20a\x20project')['action'](async(_0x7af495,_0x25602d)=>{const _0x1caede=a2_0x2babb7,_0x475862=new WorkflowSecretsListCommand(),_0x486a6d=program[_0x1caede(0x253)](),_0x2ad9ef=await createTDXInstance(_0x486a6d),_0x23991e=await _0x475862['run']({'options':{..._0x486a6d,..._0x25602d},'args':_0x7af495?[_0x7af495]:[],'tdx':_0x2ad9ef});process[_0x1caede(0x360)](_0x23991e);}),wfSecretsCmd[a2_0x2babb7(0x27b)]('set\x20<args...>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x2a5))[a2_0x2babb7(0x209)](async(_0x1d7d5d,_0x1b7088)=>{const _0x316ca1=a2_0x2babb7,_0x1af253=new WorkflowSecretsSetCommand(),_0x2d65c1=program[_0x316ca1(0x253)](),_0x4186dd=await createTDXInstance(_0x2d65c1),_0x39a246=await _0x1af253['run']({'options':{..._0x2d65c1,..._0x1b7088},'args':_0x1d7d5d,'tdx':_0x4186dd});process[_0x316ca1(0x360)](_0x39a246);}),wfSecretsCmd[a2_0x2babb7(0x27b)]('delete\x20<args...>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x315))['option'](a2_0x2babb7(0x1a0),'Skip\x20confirmation\x20prompt')['action'](async(_0x25e55c,_0x2f357c)=>{const _0x4fd789=a2_0x2babb7,_0x497182=new WorkflowSecretsDeleteCommand(),_0x261350=program['opts'](),_0x5ba087=await createTDXInstance(_0x261350),_0x8896e5=await _0x497182[_0x4fd789(0x186)]({'options':{..._0x261350,..._0x2f357c},'args':_0x25e55c,'tdx':_0x5ba087});process[_0x4fd789(0x360)](_0x8896e5);});const jobCmd=program['command'](a2_0x2babb7(0x261))[a2_0x2babb7(0x207)]('Job\x20management\x20commands'),jobListAction=async _0x44c3da=>{const _0x5a7e75=a2_0x2babb7,_0x1a14c3=new JobListCommand(),_0xaa717f=program['opts'](),_0x3d04c6=await createTDXInstance(_0xaa717f),_0x98e98c=await _0x1a14c3[_0x5a7e75(0x186)]({'options':{..._0xaa717f,..._0x44c3da},'args':[],'tdx':_0x3d04c6});process[_0x5a7e75(0x360)](_0x98e98c);};jobCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1c6))['description'](a2_0x2babb7(0x31c))['option'](a2_0x2babb7(0x2de),a2_0x2babb7(0x165))[a2_0x2babb7(0x209)](jobListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1e9),{'hidden':!![]})['description'](a2_0x2babb7(0x32d))['option'](a2_0x2babb7(0x2de),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x2babb7(0x209)](jobListAction),jobCmd['command'](a2_0x2babb7(0x144))[a2_0x2babb7(0x207)](a2_0x2babb7(0x155))[a2_0x2babb7(0x209)](async(_0x539688,_0x56976d)=>{const _0x11384d=a2_0x2babb7,_0x554f33=new JobShowCommand(),_0x5a4fd9=program['opts'](),_0x11725d=await createTDXInstance(_0x5a4fd9),_0x10a773=await _0x554f33[_0x11384d(0x186)]({'options':{..._0x5a4fd9,..._0x56976d},'args':[_0x539688],'tdx':_0x11725d});process[_0x11384d(0x360)](_0x10a773);}),jobCmd['command']('kill\x20<job-id>')['description'](a2_0x2babb7(0x194))[a2_0x2babb7(0x209)](async(_0x85ba44,_0x363da3)=>{const _0x254caf=a2_0x2babb7,_0x34940c=new JobKillCommand(),_0x4c0eaa=program[_0x254caf(0x253)](),_0xce5505=await createTDXInstance(_0x4c0eaa),_0x54e3d1=await _0x34940c['run']({'options':{..._0x4c0eaa,..._0x363da3},'args':[_0x85ba44],'tdx':_0xce5505});process[_0x254caf(0x360)](_0x54e3d1);}),jobCmd[a2_0x2babb7(0x27b)]('submit\x20[query]')['description'](a2_0x2babb7(0x311))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x218),a2_0x2babb7(0x25a),'trino')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x312),a2_0x2babb7(0x25b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x157),a2_0x2babb7(0x32f),a2_0x2babb7(0x28e))[a2_0x2babb7(0x209)](async(_0x2129ad,_0xb16b3f)=>{const _0x5ebc9b=a2_0x2babb7,_0x41911b=new JobSubmitCommand(),_0x1d2832=program[_0x5ebc9b(0x253)](),_0x1c06c7=await createTDXInstance(_0x1d2832),_0x5f361f=await _0x41911b['run']({'options':{..._0x1d2832,..._0xb16b3f},'args':_0x2129ad?[_0x2129ad]:[],'tdx':_0x1c06c7});process[_0x5ebc9b(0x360)](_0x5f361f);}),jobCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x373))['description'](a2_0x2babb7(0x181))['action'](async(_0x1316d4,_0xa8041b)=>{const _0x23f408=a2_0x2babb7,_0x7ce8ee=new JobResultCommand(),_0x1347c4=program[_0x23f408(0x253)](),_0x28bf23=await createTDXInstance(_0x1347c4),_0x19e426=await _0x7ce8ee[_0x23f408(0x186)]({'options':{..._0x1347c4,..._0xa8041b},'args':[_0x1316d4],'tdx':_0x28bf23});process[_0x23f408(0x360)](_0x19e426);});const llmCmd=program[a2_0x2babb7(0x27b)]('llm')[a2_0x2babb7(0x207)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command']('use\x20<project-name>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x153))[a2_0x2babb7(0x209)](async(_0xc77de1,_0x4fa1d6)=>{const _0x3755d0=a2_0x2babb7,_0x2aa1f7=new LLMUseCommand(),_0xae6805=program[_0x3755d0(0x253)](),_0xd12aff=await createTDXInstance(_0xae6805),_0x2c94d6=await _0x2aa1f7[_0x3755d0(0x186)]({'options':{..._0xae6805,..._0x4fa1d6},'args':[_0xc77de1],'tdx':_0xd12aff});process[_0x3755d0(0x360)](_0x2c94d6);}),llmCmd[a2_0x2babb7(0x27b)]('models')[a2_0x2babb7(0x207)](a2_0x2babb7(0x1f5))[a2_0x2babb7(0x209)](async _0x111026=>{const _0xb238a=a2_0x2babb7,_0x23c4e5=new LLMModelsCommand(),_0x47d5ab=program[_0xb238a(0x253)](),_0x543fbd=await createTDXInstance(_0x47d5ab),_0x5b10cb=await _0x23c4e5[_0xb238a(0x186)]({'options':{..._0x47d5ab,..._0x111026},'args':[],'tdx':_0x543fbd});process[_0xb238a(0x360)](_0x5b10cb);});const projectCmd=llmCmd['command']('project')[a2_0x2babb7(0x207)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x590178,_0x1c48fb)=>{const _0x12e6c4=a2_0x2babb7,_0x4fcbbb=new LLMProjectsCommand(),_0x121bfc=program[_0x12e6c4(0x253)](),_0x2bbc6d=await createTDXInstance(_0x121bfc),_0x56ee3d=await _0x4fcbbb[_0x12e6c4(0x186)]({'options':{..._0x121bfc,..._0x1c48fb},'args':_0x590178?[_0x590178]:[],'tdx':_0x2bbc6d});process['exit'](_0x56ee3d);};projectCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)](a2_0x2babb7(0x17c))['action'](llmProjectListAction),llmCmd['command'](a2_0x2babb7(0x199))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2d5))['action'](llmProjectListAction),projectCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x16a))[a2_0x2babb7(0x207)](a2_0x2babb7(0x33a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),a2_0x2babb7(0x1de))[a2_0x2babb7(0x209)](async(_0x3c6a06,_0xb0767e)=>{const _0x5f1db1=a2_0x2babb7,_0x1d94f3=new LLMProjectCreateCommand(),_0x5ae2d1=program[_0x5f1db1(0x253)](),_0x34b28e=await createTDXInstance(_0x5ae2d1),_0x451cae=await _0x1d94f3['run']({'options':{..._0x5ae2d1,..._0xb0767e},'args':[_0x3c6a06],'tdx':_0x34b28e});process[_0x5f1db1(0x360)](_0x451cae);}),projectCmd[a2_0x2babb7(0x27b)]('delete\x20<name>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x35c))[a2_0x2babb7(0x209)](async(_0x587c96,_0x5c20e1)=>{const _0x161ce3=a2_0x2babb7,_0x39008c=new LLMProjectDeleteCommand(),_0x400e73=program[_0x161ce3(0x253)](),_0x2ddb66=await createTDXInstance(_0x400e73),_0x120e46=await _0x39008c[_0x161ce3(0x186)]({'options':{..._0x400e73,..._0x5c20e1},'args':[_0x587c96],'tdx':_0x2ddb66});process[_0x161ce3(0x360)](_0x120e46);}),projectCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2a7))['description'](a2_0x2babb7(0x381))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x14b),a2_0x2babb7(0x26a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),a2_0x2babb7(0x375))[a2_0x2babb7(0x209)](async(_0x2232b7,_0x3d837c)=>{const _0x269653=a2_0x2babb7,_0x1f3644=new LLMProjectBackupCommand(),_0x2f99fa=program['opts'](),_0x564e93=await createTDXInstance(_0x2f99fa),_0x29caa7=await _0x1f3644['run']({'options':{..._0x2f99fa,..._0x3d837c},'args':[_0x2232b7],'tdx':_0x564e93});process[_0x269653(0x360)](_0x29caa7);}),projectCmd['command'](a2_0x2babb7(0x2fc))[a2_0x2babb7(0x207)](a2_0x2babb7(0x257))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x21c),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),a2_0x2babb7(0x141))[a2_0x2babb7(0x209)](async(_0x3b31a1,_0x2f93eb)=>{const _0x34c252=a2_0x2babb7,_0x4a0540=new LLMProjectRestoreCommand(),_0x19bd0b=program['opts'](),_0x14d5da=await createTDXInstance(_0x19bd0b),_0x35593e=await _0x4a0540[_0x34c252(0x186)]({'options':{..._0x19bd0b,..._0x2f93eb},'args':[_0x3b31a1],'tdx':_0x14d5da});process[_0x34c252(0x360)](_0x35593e);});const llmAgentListAction=async(_0x52e85a,_0x1a3eeb)=>{const _0x1b9c0e=a2_0x2babb7,_0x26f602=new LLMAgentsCommand(),_0x1f221b=program['opts'](),_0x53fa54=await createTDXInstance(_0x1f221b),_0x46dd37=await _0x26f602['run']({'options':{..._0x1f221b,..._0x1a3eeb},'args':_0x52e85a?[_0x52e85a]:[],'tdx':_0x53fa54});process[_0x1b9c0e(0x360)](_0x46dd37);};llmCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1ea))['description'](a2_0x2babb7(0x245))['action'](llmAgentListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1ea))[a2_0x2babb7(0x207)](a2_0x2babb7(0x245))[a2_0x2babb7(0x209)](llmAgentListAction),llmCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x214))[a2_0x2babb7(0x207)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')['option'](a2_0x2babb7(0x28d),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x2babb7(0x209)](async(_0x4e135e,_0x314845)=>{const _0x557e29=a2_0x2babb7,_0x5aeeb0=new LLMHistoryCommand(),_0xf4d6e0=program['opts'](),_0x1ac671=await createTDXInstance(_0xf4d6e0),_0x161dc9=await _0x5aeeb0[_0x557e29(0x186)]({'options':{..._0xf4d6e0,..._0x314845},'args':_0x4e135e?[_0x4e135e]:[],'tdx':_0x1ac671});process[_0x557e29(0x360)](_0x161dc9);}),llmCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x18f))[a2_0x2babb7(0x207)]('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x2babb7(0x2ec)]('--port\x20<number>',a2_0x2babb7(0x2ae),a2_0x2babb7(0x250))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2a9),a2_0x2babb7(0x1ed))['option'](a2_0x2babb7(0x32e),a2_0x2babb7(0x2a3))[a2_0x2babb7(0x209)](async _0x20a109=>{const _0x5cd677=a2_0x2babb7,_0x4a6977=new LLMProxyCommand(),_0x2319ec=program[_0x5cd677(0x253)](),_0x139c8f=await createTDXInstance(_0x2319ec),_0x5eed9a={..._0x20a109,'port':_0x20a109[_0x5cd677(0x21b)]?parseInt(_0x20a109['port'],0xa):undefined},_0x5b6915=await _0x4a6977[_0x5cd677(0x186)]({'options':{..._0x2319ec,..._0x5eed9a},'args':[],'tdx':_0x139c8f});process[_0x5cd677(0x360)](_0x5b6915);}),program['command'](a2_0x2babb7(0x228))[a2_0x2babb7(0x385)](a2_0x2babb7(0x23b))[a2_0x2babb7(0x207)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x2babb7(0x2ec)]('--model\x20<name>',a2_0x2babb7(0x26e),a2_0x2babb7(0x352))['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x24c),a2_0x2babb7(0x317))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x29f),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')['option']('--llm-proxy\x20[url]','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)')[a2_0x2babb7(0x35e)]()['allowExcessArguments'](!![])['addHelpText'](a2_0x2babb7(0x265),'\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')['action'](async(_0x3b21fc,_0x3c6148)=>{const _0x10563f=a2_0x2babb7,_0x291f57=program[_0x10563f(0x253)](),_0x30a195=Array[_0x10563f(0x272)](_0x3b21fc)?_0x3b21fc:[];if(_0x30a195[0x0]===_0x10563f(0x151)){const _0x3942b5=new ClaudeStatuslineCommand(),_0x24d881=await _0x3942b5[_0x10563f(0x186)]({'options':{..._0x291f57,..._0x3c6148},'args':_0x30a195[_0x10563f(0x2c3)](0x1),'tdx':null});process[_0x10563f(0x360)](_0x24d881);}if(_0x30a195[0x0]===_0x10563f(0x385)){const _0x52cd53=new ClaudeUsageCommand(),_0x2a82b3=await _0x52cd53[_0x10563f(0x186)]({'options':{..._0x291f57,..._0x3c6148},'args':_0x30a195[_0x10563f(0x2c3)](0x1),'tdx':null});process[_0x10563f(0x360)](_0x2a82b3);}const _0x299651=new ClaudeCommand(),_0x4eb1ff=await createTDXInstance(_0x291f57),_0xa230c2=await _0x299651[_0x10563f(0x186)]({'options':{..._0x291f57,..._0x3c6148},'args':_0x30a195,'tdx':_0x4eb1ff});process[_0x10563f(0x360)](_0xa230c2);}),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x158))[a2_0x2babb7(0x207)](a2_0x2babb7(0x30d))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e8),'Clear\x20session\x20context')['option'](a2_0x2babb7(0x29a),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x2babb7(0x209)](async(_0x1b8e83,_0x4f9def,_0x4cff6d)=>{const _0x43f5dc=a2_0x2babb7,_0x229632=new UseCommand(),_0x1ce26f=program[_0x43f5dc(0x253)](),_0x2ec2b3=[];if(_0x1b8e83)_0x2ec2b3['push'](_0x1b8e83);if(_0x4f9def)_0x2ec2b3[_0x43f5dc(0x1ba)](_0x4f9def);const _0x1eb087=await _0x229632[_0x43f5dc(0x186)]({'options':{..._0x1ce26f,..._0x4cff6d},'args':_0x2ec2b3,'tdx':null});process['exit'](_0x1eb087);}),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x313))[a2_0x2babb7(0x207)](a2_0x2babb7(0x35f))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x29a),a2_0x2babb7(0x266))[a2_0x2babb7(0x209)](async(_0x32f0e5,_0x5f3571)=>{const _0x248fa8=a2_0x2babb7,_0x181ba3=new UnsetCommand(),_0x412a0e=program['opts'](),_0x24d537=await _0x181ba3['run']({'options':{..._0x412a0e,..._0x5f3571},'args':[_0x32f0e5],'tdx':null});process[_0x248fa8(0x360)](_0x24d537);}),program['command'](a2_0x2babb7(0x226))[a2_0x2babb7(0x207)](a2_0x2babb7(0x238))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x28d),a2_0x2babb7(0x36f))[a2_0x2babb7(0x209)](async _0x15cb37=>{const _0xf0f2e0=a2_0x2babb7,_0x57387d=new ChatsCommand(),_0x37371f=program[_0xf0f2e0(0x253)](),_0x1a5f97=await createTDXInstance(_0x37371f),_0xe101c9=await _0x57387d[_0xf0f2e0(0x186)]({'options':{..._0x37371f,..._0x15cb37},'args':[],'tdx':_0x1a5f97});process['exit'](_0xe101c9);});const authCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1fa))['description'](a2_0x2babb7(0x1bd));async function runAuthStatusCommand(_0x5f3018){const _0x296560=a2_0x2babb7,_0x3e726b=new AuthStatusCommand(),_0x302fbf=program[_0x296560(0x253)](),_0x51fcda=await createTDXInstance(_0x302fbf),_0xf87969=await _0x3e726b['run']({'options':{..._0x302fbf,..._0x5f3018},'args':[],'tdx':_0x51fcda});process['exit'](_0xf87969);}authCmd[a2_0x2babb7(0x209)](runAuthStatusCommand),authCmd['command']('status')[a2_0x2babb7(0x207)](a2_0x2babb7(0x1d2))[a2_0x2babb7(0x209)](runAuthStatusCommand),authCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x340))[a2_0x2babb7(0x207)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x2babb7(0x13e)](a2_0x2babb7(0x265),a2_0x2babb7(0x33d))[a2_0x2babb7(0x209)](async _0x4ed7b0=>{const _0xce1917=a2_0x2babb7,_0x48be8e=new AuthSetupCommand(),_0x2da5bb=program[_0xce1917(0x253)](),_0x48304f=await createTDXInstance(_0x2da5bb),_0x63c39d=await _0x48be8e['run']({'options':{..._0x2da5bb,..._0x4ed7b0},'args':[],'tdx':_0x48304f});process[_0xce1917(0x360)](_0x63c39d);}),authCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1d5))[a2_0x2babb7(0x207)](a2_0x2babb7(0x278))[a2_0x2babb7(0x13e)](a2_0x2babb7(0x265),a2_0x2babb7(0x28f))[a2_0x2babb7(0x209)](async _0x45c0f6=>{const _0x3bc285=a2_0x2babb7,_0x3fc0b9=new AuthClearCommand(),_0x3770a7=program[_0x3bc285(0x253)](),_0x14c9c3=await _0x3fc0b9[_0x3bc285(0x186)]({'options':{..._0x3770a7,..._0x45c0f6},'args':[],'tdx':null});process[_0x3bc285(0x360)](_0x14c9c3);});const userCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x221))[a2_0x2babb7(0x207)](a2_0x2babb7(0x17f)),userListAction=async _0x1bdb0d=>{const _0x4123dc=a2_0x2babb7,_0x9b296f=new UserListCommand(),_0x1775c2=program[_0x4123dc(0x253)](),_0x4d208b=await createTDXInstance(_0x1775c2),_0x20f645=await _0x9b296f[_0x4123dc(0x186)]({'options':{..._0x1775c2,..._0x1bdb0d},'args':[],'tdx':_0x4d208b});process[_0x4123dc(0x360)](_0x20f645);};userCmd[a2_0x2babb7(0x209)](async _0x59f38a=>{const _0x4fe3f0=a2_0x2babb7,_0x2a15f3=new UserCommand(),_0x531024=program[_0x4fe3f0(0x253)](),_0x3fa099=await createTDXInstance(_0x531024),_0x4c95a7=await _0x2a15f3[_0x4fe3f0(0x186)]({'options':{..._0x531024,..._0x59f38a},'args':[],'tdx':_0x3fa099});process[_0x4fe3f0(0x360)](_0x4c95a7);}),userCmd['command'](a2_0x2babb7(0x1c6))[a2_0x2babb7(0x207)](a2_0x2babb7(0x201))[a2_0x2babb7(0x209)](userListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x160))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2f2))[a2_0x2babb7(0x209)](userListAction),program['command'](a2_0x2babb7(0x1c0))['description'](a2_0x2babb7(0x2d6))[a2_0x2babb7(0x209)](async _0x3b48f7=>{const _0x4d5c00=a2_0x2babb7,_0x15e566=new ProfilesCommand(),_0x42bbb6=program[_0x4d5c00(0x253)](),_0x7230ff=await _0x15e566['run']({'options':{..._0x42bbb6,..._0x3b48f7},'args':[],'tdx':null});process[_0x4d5c00(0x360)](_0x7230ff);});const profileCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x197))[a2_0x2babb7(0x207)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x2babb7(0x209)](()=>{const _0x21fe51=a2_0x2babb7;profileCmd[_0x21fe51(0x2d2)]();});const profileListAction=async _0x1318b1=>{const _0x454fa9=a2_0x2babb7,_0x52e703=new ProfilesCommand(),_0x704a03=program['opts'](),_0x13812d=await _0x52e703['run']({'options':{..._0x704a03,..._0x1318b1},'args':[],'tdx':null});process[_0x454fa9(0x360)](_0x13812d);};profileCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1c6))[a2_0x2babb7(0x207)](a2_0x2babb7(0x2d6))['action'](profileListAction),profileCmd['command'](a2_0x2babb7(0x17a))['description'](a2_0x2babb7(0x19d))[a2_0x2babb7(0x13e)](a2_0x2babb7(0x265),'\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')[a2_0x2babb7(0x209)](async(_0x4300d7,_0x16aa98)=>{const _0x2260d3=a2_0x2babb7,_0x3e5128=new ProfileCreateCommand(),_0x65f9f9=program[_0x2260d3(0x253)](),_0x2769f6=await _0x3e5128[_0x2260d3(0x186)]({'options':{..._0x65f9f9,..._0x16aa98},'args':_0x4300d7?[_0x4300d7]:[],'tdx':null});process[_0x2260d3(0x360)](_0x2769f6);}),profileCmd['command'](a2_0x2babb7(0x281))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1f9))[a2_0x2babb7(0x13e)]('after',a2_0x2babb7(0x231))['action'](async(_0x553291,_0x975c88)=>{const _0x4682be=a2_0x2babb7,_0x27f870=new ProfileRemoveCommand(),_0x3464c6=program[_0x4682be(0x253)](),_0x5c8f16=await _0x27f870[_0x4682be(0x186)]({'options':{..._0x3464c6,..._0x975c88},'args':[_0x553291],'tdx':null});process[_0x4682be(0x360)](_0x5c8f16);}),profileCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x25e))[a2_0x2babb7(0x207)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x2babb7(0x13e)](a2_0x2babb7(0x265),a2_0x2babb7(0x31b))[a2_0x2babb7(0x209)](async(_0x1f9d25,_0x1bee88)=>{const _0xca63dd=a2_0x2babb7,_0x1b3113=new ProfileSetCommand(),_0xf266f4=program['opts'](),_0x2b31b5=await _0x1b3113[_0xca63dd(0x186)]({'options':{..._0xf266f4,..._0x1bee88},'args':[_0x1f9d25],'tdx':null});process[_0xca63dd(0x360)](_0x2b31b5);}),profileCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x211))['description']('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x29a),a2_0x2babb7(0x175))['addHelpText'](a2_0x2babb7(0x265),a2_0x2babb7(0x1b3))[a2_0x2babb7(0x209)](async(_0xddccb8,_0x4a91b6)=>{const _0x333545=a2_0x2babb7,_0x4d20ac=new ProfileUseCommand(),_0xa5a99a=program[_0x333545(0x253)](),_0x2853b5=await _0x4d20ac[_0x333545(0x186)]({'options':{..._0xa5a99a,..._0x4a91b6},'args':[_0xddccb8],'tdx':null});process['exit'](_0x2853b5);});const engageCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x224))[a2_0x2babb7(0x207)](a2_0x2babb7(0x13c)),createEngageAction=_0x528191=>{return async(_0xe90430,_0x2760ef)=>{const _0x2bc6e0=a2_0x11a7,_0x9681b3=new _0x528191(),_0x306486=program[_0x2bc6e0(0x253)](),_0x3d4d02=await createTDXInstance(_0x306486),_0x5b0d7a=await _0x9681b3['run']({'options':{..._0x306486,..._0x2760ef},'args':[_0xe90430],'tdx':_0x3d4d02});process['exit'](_0x5b0d7a);};},createEngageNoArgAction=_0x303ac3=>{return async _0xc4f3e0=>{const _0x42bddf=a2_0x11a7,_0x564e48=new _0x303ac3(),_0xc048bd=program[_0x42bddf(0x253)](),_0xfb927f=await createTDXInstance(_0xc048bd),_0x20bca3=await _0x564e48[_0x42bddf(0x186)]({'options':{..._0xc048bd,..._0xc4f3e0},'args':[],'tdx':_0xfb927f});process[_0x42bddf(0x360)](_0x20bca3);};},campaignCmd=engageCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x384))[a2_0x2babb7(0x207)]('Campaign\x20management'),campaignListAction=async(_0x13e232,_0x801837)=>{const _0x4c1c7b=a2_0x2babb7,_0x425b21=new EngageCampaignsCommand(),_0x5ec243=program['opts'](),_0x47490a=await createTDXInstance(_0x5ec243),_0x5d0a40=await _0x425b21[_0x4c1c7b(0x186)]({'options':{..._0x5ec243,..._0x801837},'args':_0x13e232?[_0x13e232]:[],'tdx':_0x47490a});process[_0x4c1c7b(0x360)](_0x5d0a40);};campaignCmd[a2_0x2babb7(0x27b)]('list\x20[pattern]')[a2_0x2babb7(0x207)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e1),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x2babb7(0x2de),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x209)](campaignListAction),engageCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x335))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1ad))[a2_0x2babb7(0x2ec)]('--type\x20<type>',a2_0x2babb7(0x159))['option'](a2_0x2babb7(0x2de),a2_0x2babb7(0x323))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x209)](campaignListAction),campaignCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x183))[a2_0x2babb7(0x207)]('Show\x20campaign\x20details')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1fe),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x2babb7(0x209)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x2babb7(0x255))[a2_0x2babb7(0x207)](a2_0x2babb7(0x386))[a2_0x2babb7(0x203)]('--name\x20<name>','Campaign\x20name')['requiredOption']('--type\x20<type>',a2_0x2babb7(0x357))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x2dc))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b9),'Campaign\x20description')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x356),a2_0x2babb7(0x20b))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1fd),a2_0x2babb7(0x22f))['option'](a2_0x2babb7(0x332),a2_0x2babb7(0x387))['option']('--start-at\x20<datetime>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)')['option'](a2_0x2babb7(0x289),a2_0x2babb7(0x2ce))[a2_0x2babb7(0x209)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x27f))[a2_0x2babb7(0x207)](a2_0x2babb7(0x22c))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2e3),'New\x20campaign\x20name')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b9),'Campaign\x20description')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x356),a2_0x2babb7(0x20b))['option'](a2_0x2babb7(0x1fd),a2_0x2babb7(0x22f))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x332),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x2babb7(0x2ec)]('--start-at\x20<datetime>',a2_0x2babb7(0x1d7))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x289),a2_0x2babb7(0x2ce))[a2_0x2babb7(0x209)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x187))[a2_0x2babb7(0x207)](a2_0x2babb7(0x30a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x268),'Skip\x20confirmation\x20prompt')[a2_0x2babb7(0x209)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x2babb7(0x22a))['description']('Launch\x20a\x20campaign')['option'](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x2babb7(0x27b)]('pause\x20<name-or-id>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x309))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x209)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x2babb7(0x16d))[a2_0x2babb7(0x207)](a2_0x2babb7(0x236))['option'](a2_0x2babb7(0x1b6),'Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x20c))['description'](a2_0x2babb7(0x1a7))[a2_0x2babb7(0x2ec)]('--workspace\x20<name>',a2_0x2babb7(0x37a))[a2_0x2babb7(0x209)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x216))[a2_0x2babb7(0x207)]('Email\x20template\x20management'),templateListAction=async(_0x3fba47,_0xf3dbdf)=>{const _0x18d0b5=a2_0x2babb7,_0xf5ef89=new EngageTemplatesCommand(),_0x4e3659=program[_0x18d0b5(0x253)](),_0x39030c=await createTDXInstance(_0x4e3659),_0x2d6987=await _0xf5ef89[_0x18d0b5(0x186)]({'options':{..._0x4e3659,..._0xf3dbdf},'args':_0x3fba47?[_0x3fba47]:[],'tdx':_0x39030c});process['exit'](_0x2d6987);};templateCmd[a2_0x2babb7(0x27b)]('list\x20[pattern]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x382))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),'Workspace\x20name')[a2_0x2babb7(0x209)](templateListAction),engageCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2c6))[a2_0x2babb7(0x207)](a2_0x2babb7(0x262))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x209)](templateListAction),templateCmd['command'](a2_0x2babb7(0x183))[a2_0x2babb7(0x207)]('Show\x20email\x20template\x20details')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),'Workspace\x20name')['option'](a2_0x2babb7(0x1fe),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x255))[a2_0x2babb7(0x207)]('Create\x20an\x20email\x20template')[a2_0x2babb7(0x203)](a2_0x2babb7(0x2e3),'Template\x20name')['requiredOption'](a2_0x2babb7(0x1ce),'Email\x20subject\x20template')['requiredOption'](a2_0x2babb7(0x37b),a2_0x2babb7(0x2b2))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x2dc))['option'](a2_0x2babb7(0x193),'Plaintext\x20template\x20content')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x285),a2_0x2babb7(0x1a4))[a2_0x2babb7(0x209)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x27f))[a2_0x2babb7(0x207)]('Update\x20an\x20email\x20template')[a2_0x2babb7(0x2ec)]('--workspace\x20<name>','Workspace\x20name')['option']('--name\x20<name>',a2_0x2babb7(0x2ca))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1ce),a2_0x2babb7(0x2a6))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x37b),'HTML\x20template\x20content')['option']('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x2babb7(0x209)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x2babb7(0x187))[a2_0x2babb7(0x207)]('Delete\x20an\x20email\x20template')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b6),a2_0x2babb7(0x37a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x268),'Skip\x20confirmation\x20prompt')[a2_0x2babb7(0x209)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x379))[a2_0x2babb7(0x207)](a2_0x2babb7(0x242)),workspaceListAction=async(_0x3c1013,_0x20376c)=>{const _0x5a49fd=a2_0x2babb7,_0x3bbaf2=new EngageWorkspacesCommand(),_0x1e3bc1=program[_0x5a49fd(0x253)](),_0x124c4d=await createTDXInstance(_0x1e3bc1),_0x4617fd=await _0x3bbaf2['run']({'options':{..._0x1e3bc1,..._0x20376c},'args':_0x3c1013?[_0x3c1013]:[],'tdx':_0x124c4d});process[_0x5a49fd(0x360)](_0x4617fd);};workspaceCmd['command'](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1cc))['action'](workspaceListAction),engageCmd['command'](a2_0x2babb7(0x269))[a2_0x2babb7(0x207)](a2_0x2babb7(0x21a))[a2_0x2babb7(0x209)](workspaceListAction),workspaceCmd['command'](a2_0x2babb7(0x183))['description']('Show\x20workspace\x20details')[a2_0x2babb7(0x2ec)]('--full',a2_0x2babb7(0x243))[a2_0x2babb7(0x209)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x2babb7(0x27b)]('create')[a2_0x2babb7(0x207)](a2_0x2babb7(0x29e))[a2_0x2babb7(0x203)]('--name\x20<name>',a2_0x2babb7(0x37a))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b9),a2_0x2babb7(0x222))[a2_0x2babb7(0x209)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x2babb7(0x27f))[a2_0x2babb7(0x207)]('Update\x20a\x20workspace')['option'](a2_0x2babb7(0x2e3),'New\x20workspace\x20name')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x1b9),a2_0x2babb7(0x222))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x187))['description'](a2_0x2babb7(0x161))['option'](a2_0x2babb7(0x268),a2_0x2babb7(0x336))[a2_0x2babb7(0x209)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x2babb7(0x27b)]('use\x20<name>')[a2_0x2babb7(0x207)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x2babb7(0x209)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1e6))[a2_0x2babb7(0x207)](a2_0x2babb7(0x24e)),connectionListAction=async _0x1cc79b=>{const _0x40236a=a2_0x2babb7,_0x4ea73a=new ConnectionListCommand(),_0x1a06d0=program[_0x40236a(0x253)](),_0x1e8e8c=await createTDXInstance(_0x1a06d0),_0x2bece7=await _0x4ea73a['run']({'options':{..._0x1a06d0,..._0x1cc79b},'args':[],'tdx':_0x1e8e8c});process[_0x40236a(0x360)](_0x2bece7);};connectionCmd[a2_0x2babb7(0x27b)]('list')[a2_0x2babb7(0x207)](a2_0x2babb7(0x254))[a2_0x2babb7(0x209)](connectionListAction),program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1b2),{'hidden':!![]})[a2_0x2babb7(0x207)](a2_0x2babb7(0x331))[a2_0x2babb7(0x209)](connectionListAction),connectionCmd[a2_0x2babb7(0x27b)]('show\x20<name>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x152))[a2_0x2babb7(0x209)](async(_0x2bd82b,_0x29c779)=>{const _0x46c4e9=a2_0x2babb7,_0x11bbea=new ConnectionShowCommand(),_0x22f112=program[_0x46c4e9(0x253)](),_0x59526e=await createTDXInstance(_0x22f112),_0x6c5b2b=await _0x11bbea[_0x46c4e9(0x186)]({'options':{..._0x22f112,..._0x29c779},'args':[_0x2bd82b],'tdx':_0x59526e});process[_0x46c4e9(0x360)](_0x6c5b2b);}),connectionCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x156))[a2_0x2babb7(0x207)](a2_0x2babb7(0x330))['action'](async(_0x2a9662,_0x10ae5c)=>{const _0x2fb220=a2_0x2babb7,_0x4a2d89=new ConnectionSchemaCommand(),_0x2d8a5f=program[_0x2fb220(0x253)](),_0x36cafb=await createTDXInstance(_0x2d8a5f),_0x3b08fd=await _0x4a2d89[_0x2fb220(0x186)]({'options':{..._0x2d8a5f,..._0x10ae5c},'args':[_0x2a9662],'tdx':_0x36cafb});process[_0x2fb220(0x360)](_0x3b08fd);}),connectionCmd[a2_0x2babb7(0x27b)]('types')['description']('List\x20available\x20connector\x20types')[a2_0x2babb7(0x209)](async _0x463f4a=>{const _0x1985c0=a2_0x2babb7,_0x1b03a8=new ConnectionTypesCommand(),_0x5ce3b0=program[_0x1985c0(0x253)](),_0x2a8369=await createTDXInstance(_0x5ce3b0),_0x33db5b=await _0x1b03a8[_0x1985c0(0x186)]({'options':{..._0x5ce3b0,..._0x463f4a},'args':[],'tdx':_0x2a8369});process['exit'](_0x33db5b);}),connectionCmd[a2_0x2babb7(0x27b)]('settings\x20<type>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x297))[a2_0x2babb7(0x209)](async(_0x425c76,_0xa79567)=>{const _0x4c41f2=a2_0x2babb7,_0x36d3cd=new ConnectionSettingsCommand(),_0x592efc=program[_0x4c41f2(0x253)](),_0x205bf8=await createTDXInstance(_0x592efc),_0x26a591=await _0x36d3cd['run']({'options':{..._0x592efc,..._0xa79567},'args':[_0x425c76],'tdx':_0x205bf8});process[_0x4c41f2(0x360)](_0x26a591);});const journeyCmd=program[a2_0x2babb7(0x27b)]('journey')[a2_0x2babb7(0x207)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x1f24c1,_0xa374da)=>{const _0x4db5c6=a2_0x2babb7,_0x2f84d2=new JourneyListCommand(),_0x1b4268=program[_0x4db5c6(0x253)](),_0x3c7dab=await createTDXInstance(_0x1b4268),_0x244a6f=await _0x2f84d2['run']({'options':{..._0x1b4268,..._0xa374da},'args':_0x1f24c1?[_0x1f24c1]:[],'tdx':_0x3c7dab});process[_0x4db5c6(0x360)](_0x244a6f);};journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x304))[a2_0x2babb7(0x207)]('List\x20journeys\x20in\x20current\x20context')[a2_0x2babb7(0x209)](journeyListAction),journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x24d))[a2_0x2babb7(0x207)](a2_0x2babb7(0x150))[a2_0x2babb7(0x2ec)]('-w,\x20--web','Open\x20journey\x20in\x20web\x20browser')['option']('--include-stats',a2_0x2babb7(0x350))[a2_0x2babb7(0x209)](async(_0x5e7a87,_0x1fcab4)=>{const _0x1715e4=a2_0x2babb7,_0x88a189=new JourneyViewCommand(),_0x23f760=program[_0x1715e4(0x253)](),_0x23cba0=await createTDXInstance(_0x23f760),_0x355024=await _0x88a189[_0x1715e4(0x186)]({'options':{..._0x23f760,..._0x1fcab4},'args':[_0x5e7a87],'tdx':_0x23cba0});process[_0x1715e4(0x360)](_0x355024);}),journeyCmd[a2_0x2babb7(0x27b)]('stats\x20<name-or-path>')[a2_0x2babb7(0x207)](a2_0x2babb7(0x28a))[a2_0x2babb7(0x2ec)]('--stage\x20<name>',a2_0x2babb7(0x1be))[a2_0x2babb7(0x209)](async(_0x543de2,_0x27f3dd)=>{const _0x1826f3=a2_0x2babb7,_0x1eb6de=new JourneyStatsCommand(),_0x2ebd8f=program['opts'](),_0x5f441f=await createTDXInstance(_0x2ebd8f),_0x19b46e=await _0x1eb6de[_0x1826f3(0x186)]({'options':{..._0x2ebd8f,..._0x27f3dd},'args':[_0x543de2],'tdx':_0x5f441f});process['exit'](_0x19b46e);}),journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x15a))[a2_0x2babb7(0x207)](a2_0x2babb7(0x346))[a2_0x2babb7(0x209)](async(_0x166234,_0xf7a76)=>{const _0x4e83fc=a2_0x2babb7,_0x55e777=new JourneyPauseCommand(),_0x58929a=program[_0x4e83fc(0x253)](),_0x13b5cb=await createTDXInstance(_0x58929a),_0x2c0149=await _0x55e777[_0x4e83fc(0x186)]({'options':{..._0x58929a,..._0xf7a76},'args':[_0x166234],'tdx':_0x13b5cb});process[_0x4e83fc(0x360)](_0x2c0149);}),journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x30c))[a2_0x2babb7(0x207)](a2_0x2babb7(0x208))[a2_0x2babb7(0x209)](async(_0x4dfadb,_0x13cc2a)=>{const _0xeb6b41=a2_0x2babb7,_0x2ab542=new JourneyResumeCommand(),_0x440723=program[_0xeb6b41(0x253)](),_0x40a09d=await createTDXInstance(_0x440723),_0x330629=await _0x2ab542['run']({'options':{..._0x440723,..._0x13cc2a},'args':[_0x4dfadb],'tdx':_0x40a09d});process[_0xeb6b41(0x360)](_0x330629);}),journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x1db))[a2_0x2babb7(0x207)](a2_0x2babb7(0x18a))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')['option']('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')['action'](async(_0x4a55bf,_0x3f1f0d)=>{const _0x30a001=a2_0x2babb7,_0x5b73f1=new JourneyPullCommand(),_0x167442=program['opts'](),_0x3aced3=await createTDXInstance(_0x167442),_0x2951d5=await _0x5b73f1[_0x30a001(0x186)]({'options':{..._0x167442,..._0x3f1f0d},'args':_0x4a55bf?[_0x4a55bf]:[],'tdx':_0x3aced3});process[_0x30a001(0x360)](_0x2951d5);}),journeyCmd[a2_0x2babb7(0x27b)]('push\x20[target]')[a2_0x2babb7(0x207)]('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x2babb7(0x209)](async(_0x5a24f1,_0x16a85c)=>{const _0x3707a8=a2_0x2babb7,_0x46c9c4=new JourneyPushCommand(),_0x48899f=program[_0x3707a8(0x253)](),_0x20a62d=await createTDXInstance(_0x48899f),_0x38a2e6=await _0x46c9c4[_0x3707a8(0x186)]({'options':{..._0x48899f,..._0x16a85c},'args':_0x5a24f1?[_0x5a24f1]:[],'tdx':_0x20a62d});process[_0x3707a8(0x360)](_0x38a2e6);}),journeyCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x374))[a2_0x2babb7(0x207)](a2_0x2babb7(0x372))['action'](async(_0x5b6308,_0x5a49a2)=>{const _0x35bae2=a2_0x2babb7,_0x51fad4=new JourneyValidateCommand(),_0x3b90e6=program[_0x35bae2(0x253)](),_0x53eb95=await createTDXInstance(_0x3b90e6),_0x415805=await _0x51fad4[_0x35bae2(0x186)]({'options':{..._0x3b90e6,..._0x5a49a2},'args':_0x5b6308?[_0x5b6308]:[],'tdx':_0x53eb95});process[_0x35bae2(0x360)](_0x415805);}),program['command']('journeys\x20[pattern]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x279))['action'](journeyListAction);const agentSyncCmd=program[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2bd))['description'](a2_0x2babb7(0x280));agentSyncCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x206))['description'](a2_0x2babb7(0x2ed))['option'](a2_0x2babb7(0x251),'Output\x20directory')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x163),a2_0x2babb7(0x29d))[a2_0x2babb7(0x209)](async(_0x41a5d,_0x2c2611,_0x2655ca)=>{const _0x27d3b1=a2_0x2babb7,_0x131331=new AgentPullCommand(),_0x478590=program[_0x27d3b1(0x253)](),_0x55452c=await createTDXInstance(_0x478590),_0x1cde7f=[];if(_0x41a5d)_0x1cde7f[_0x27d3b1(0x1ba)](_0x41a5d);if(_0x2c2611)_0x1cde7f[_0x27d3b1(0x1ba)](_0x2c2611);const _0x1b99d5=await _0x131331[_0x27d3b1(0x186)]({'options':{..._0x478590,..._0x2655ca},'args':_0x1cde7f,'tdx':_0x55452c});process[_0x27d3b1(0x360)](_0x1b99d5);}),agentSyncCmd['command'](a2_0x2babb7(0x26d))['description']('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x163),a2_0x2babb7(0x295))[a2_0x2babb7(0x209)](async(_0x3c1ec9,_0x3c90cc)=>{const _0xa6f528=a2_0x2babb7,_0x2326fd=new AgentPushCommand(),_0x4f42f6=program[_0xa6f528(0x253)](),_0x4ffd14=await createTDXInstance(_0x4f42f6),_0x208521=await _0x2326fd['run']({'options':{..._0x4f42f6,..._0x3c90cc},'args':_0x3c1ec9?[_0x3c1ec9]:[],'tdx':_0x4ffd14});process['exit'](_0x208521);}),agentSyncCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x17e))[a2_0x2babb7(0x207)](a2_0x2babb7(0x1dd))['option'](a2_0x2babb7(0x2cf),a2_0x2babb7(0x23d))[a2_0x2babb7(0x209)](async(_0x2ea575,_0xe42c82)=>{const _0x163adb=a2_0x2babb7,_0x2be71c=new AgentCloneCommand(),_0x3483d3=program[_0x163adb(0x253)](),_0x4031e9=await createTDXInstance(_0x3483d3),_0xde0c1b=await _0x2be71c['run']({'options':{..._0x3483d3,..._0xe42c82},'args':_0x2ea575?[_0x2ea575]:[],'tdx':_0x4031e9});process['exit'](_0xde0c1b);}),agentSyncCmd['command'](a2_0x2babb7(0x33c))[a2_0x2babb7(0x207)](a2_0x2babb7(0x167))[a2_0x2babb7(0x2ec)]('--name\x20<names>',a2_0x2babb7(0x223))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x17d),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2b4),a2_0x2babb7(0x29b))[a2_0x2babb7(0x209)](async(_0x5a4d81,_0x1fee90)=>{const _0x3fa616=a2_0x2babb7,_0x563d4e=new AgentTestCommand(),_0x17a831=program[_0x3fa616(0x253)](),_0x44ad96=await createTDXInstance(_0x17a831),_0x4b485c=await _0x563d4e[_0x3fa616(0x186)]({'options':{..._0x17a831,..._0x1fee90},'args':_0x5a4d81?[_0x5a4d81]:[],'tdx':_0x44ad96});process[_0x3fa616(0x360)](_0x4b485c);}),agentSyncCmd[a2_0x2babb7(0x27b)]('list\x20[pattern]')[a2_0x2babb7(0x207)](a2_0x2babb7(0x26c))[a2_0x2babb7(0x209)](llmAgentListAction),agentSyncCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2eb))[a2_0x2babb7(0x207)]('Show\x20agent\x20details')[a2_0x2babb7(0x209)](async(_0x57dd16,_0x1969c9)=>{const _0x3ff1e9=a2_0x2babb7,_0x360b38=new LLMAgentShowCommand(),_0x3a8309=program[_0x3ff1e9(0x253)](),_0x5ecd3b=await createTDXInstance(_0x3a8309),_0x413f74=await _0x360b38['run']({'options':{..._0x3a8309,..._0x1969c9},'args':[_0x57dd16],'tdx':_0x5ecd3b});process['exit'](_0x413f74);}),agentSyncCmd['command']('create\x20<name>')['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x294),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x234),a2_0x2babb7(0x16f),'claude-4.5-sonnet')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x204),'Starter\x20message')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x376),a2_0x2babb7(0x2bc),'4')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x365),a2_0x2babb7(0x2af),a2_0x2babb7(0x361))[a2_0x2babb7(0x209)](async(_0x3bbd27,_0x32d0b3)=>{const _0x3949a8=a2_0x2babb7,_0x37fd79=new LLMAgentCreateCommand(),_0x63a2c8=program['opts'](),_0x592b13=await createTDXInstance(_0x63a2c8),_0x383945=await _0x37fd79['run']({'options':{..._0x63a2c8,..._0x32d0b3},'args':[_0x3bbd27],'tdx':_0x592b13});process[_0x3949a8(0x360)](_0x383945);}),agentSyncCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x20a))[a2_0x2babb7(0x207)](a2_0x2babb7(0x30f))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x188),'Agent\x20name')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x2d4),a2_0x2babb7(0x1ef))[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x225),'Agent\x20description')[a2_0x2babb7(0x2ec)](a2_0x2babb7(0x204),a2_0x2babb7(0x35d))[a2_0x2babb7(0x209)](async(_0x5334b5,_0x3d11d3)=>{const _0x3b22b8=a2_0x2babb7,_0x4fd76d=new LLMAgentUpdateCommand(),_0x2a8dcf=program[_0x3b22b8(0x253)](),_0x59fc97=await createTDXInstance(_0x2a8dcf),_0x15b050=await _0x4fd76d['run']({'options':{..._0x2a8dcf,..._0x3d11d3},'args':[_0x5334b5],'tdx':_0x59fc97});process[_0x3b22b8(0x360)](_0x15b050);}),agentSyncCmd[a2_0x2babb7(0x27b)](a2_0x2babb7(0x2f5))['description'](a2_0x2babb7(0x320))[a2_0x2babb7(0x209)](async(_0x430bbf,_0x18e579)=>{const _0x5245a5=a2_0x2babb7,_0x23e5e6=new LLMAgentDeleteCommand(),_0x29b83f=program[_0x5245a5(0x253)](),_0x8d9fd1=await createTDXInstance(_0x29b83f),_0x11ffee=await _0x23e5e6[_0x5245a5(0x186)]({'options':{..._0x29b83f,..._0x18e579},'args':[_0x430bbf],'tdx':_0x8d9fd1});process['exit'](_0x11ffee);});export{program};export function runCLI(){const _0x15bbb7=a2_0x2babb7,_0x179bce=!process[_0x15bbb7(0x29c)][_0x15bbb7(0x2c3)](0x2)[_0x15bbb7(0x2ab)];showBriefHelp=_0x179bce,program[_0x15bbb7(0x277)](process[_0x15bbb7(0x29c)]),_0x179bce&&program['outputHelp'](),process[_0x15bbb7(0x205)][_0x15bbb7(0x24b)]&&process['argv'][_0x15bbb7(0x2ab)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x15bbb7(0x33f)](_0x20e7f1=>{_0x20e7f1&&displayUpdateNotification(_0x20e7f1);})[_0x15bbb7(0x172)](()=>{});}
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)](()=>{});}