@treasuredata/tdx 0.26.6 → 0.27.0

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 (245) 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.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/claude-statusline-command.d.ts +4 -2
  17. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js.map +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/databases.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/job-command.d.ts.map +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/job-command.js.map +1 -1
  29. package/dist/commands/journey-command.d.ts.map +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-command.js.map +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.d.ts.map +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/llm-command.js.map +1 -1
  36. package/dist/commands/mcp-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.d.ts.map +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-push-command.js.map +1 -1
  49. package/dist/commands/segment-update-command.js +1 -1
  50. package/dist/commands/segment-use-command.js +1 -1
  51. package/dist/commands/segment-validate-command.js +1 -1
  52. package/dist/commands/segments.js +1 -1
  53. package/dist/commands/show.js +1 -1
  54. package/dist/commands/status-command.js +1 -1
  55. package/dist/commands/tables.js +1 -1
  56. package/dist/commands/unset-command.js +1 -1
  57. package/dist/commands/use-command.d.ts.map +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/use-command.js.map +1 -1
  60. package/dist/commands/user-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/profile.js +1 -1
  71. package/dist/core/project-config.js +1 -1
  72. package/dist/core/session.js +1 -1
  73. package/dist/core/user-cache.js +1 -1
  74. package/dist/core/version.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/mcp/server.js +1 -1
  77. package/dist/mcp/tools/index.js +1 -1
  78. package/dist/mcp/tools/tdx-run.js +1 -1
  79. package/dist/mcp/tools/tdx-search.js +1 -1
  80. package/dist/mcp/utils.js +1 -1
  81. package/dist/proxy/claude-usage-tracker.d.ts +2 -2
  82. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  83. package/dist/proxy/claude-usage-tracker.js +1 -1
  84. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  85. package/dist/proxy/passthrough-server.d.ts +18 -3
  86. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/passthrough-server.js.map +1 -1
  89. package/dist/proxy/sse-usage-parser.d.ts +20 -2
  90. package/dist/proxy/sse-usage-parser.d.ts.map +1 -1
  91. package/dist/proxy/sse-usage-parser.js +1 -1
  92. package/dist/proxy/sse-usage-parser.js.map +1 -1
  93. package/dist/sdk/agent/agent-config.js +1 -1
  94. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  95. package/dist/sdk/agent/agent-yaml.d.ts +14 -37
  96. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  97. package/dist/sdk/agent/agent-yaml.js +1 -1
  98. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  99. package/dist/sdk/agent/test/evaluator.js +1 -1
  100. package/dist/sdk/agent/test/executor.js +1 -1
  101. package/dist/sdk/agent/test/index.js +1 -1
  102. package/dist/sdk/agent/test/output.js +1 -1
  103. package/dist/sdk/agent/test/parser.js +1 -1
  104. package/dist/sdk/agent/tool-target-registry.d.ts +82 -0
  105. package/dist/sdk/agent/tool-target-registry.d.ts.map +1 -0
  106. package/dist/sdk/agent/tool-target-registry.js +1 -0
  107. package/dist/sdk/agent/tool-target-registry.js.map +1 -0
  108. package/dist/sdk/agent/types/agent-def.d.ts +3 -2
  109. package/dist/sdk/agent/types/agent-def.d.ts.map +1 -1
  110. package/dist/sdk/api.js +1 -1
  111. package/dist/sdk/client/cdp-api-client.d.ts +9 -0
  112. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  113. package/dist/sdk/client/cdp-api-client.js +1 -1
  114. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  115. package/dist/sdk/client/endpoints.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js +1 -1
  117. package/dist/sdk/client/http-client.js +1 -1
  118. package/dist/sdk/client/llm-api-client.d.ts +20 -0
  119. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js.map +1 -1
  122. package/dist/sdk/client/rate-limiter.js +1 -1
  123. package/dist/sdk/client/td-api-client.d.ts +2 -2
  124. package/dist/sdk/client/td-api-client.d.ts.map +1 -1
  125. package/dist/sdk/client/td-api-client.js +1 -1
  126. package/dist/sdk/client/td-api-client.js.map +1 -1
  127. package/dist/sdk/client/trino-api-client.js +1 -1
  128. package/dist/sdk/client/workflow-client.js +1 -1
  129. package/dist/sdk/connection-validator.js +1 -1
  130. package/dist/sdk/connection.js +1 -1
  131. package/dist/sdk/engage.js +1 -1
  132. package/dist/sdk/errors.js +1 -1
  133. package/dist/sdk/index.js +1 -1
  134. package/dist/sdk/io/index.js +1 -1
  135. package/dist/sdk/io/node-filesystem.js +1 -1
  136. package/dist/sdk/job.d.ts +1 -1
  137. package/dist/sdk/job.d.ts.map +1 -1
  138. package/dist/sdk/job.js +1 -1
  139. package/dist/sdk/job.js.map +1 -1
  140. package/dist/sdk/journey.d.ts.map +1 -1
  141. package/dist/sdk/journey.js +1 -1
  142. package/dist/sdk/journey.js.map +1 -1
  143. package/dist/sdk/llm/chat-cache.js +1 -1
  144. package/dist/sdk/llm/index.d.ts.map +1 -1
  145. package/dist/sdk/llm/index.js +1 -1
  146. package/dist/sdk/llm/index.js.map +1 -1
  147. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  148. package/dist/sdk/llm/model-factors.d.ts +0 -4
  149. package/dist/sdk/llm/model-factors.d.ts.map +1 -1
  150. package/dist/sdk/llm/model-factors.js +1 -1
  151. package/dist/sdk/llm/model-factors.js.map +1 -1
  152. package/dist/sdk/personalization.js +1 -1
  153. package/dist/sdk/query/index.js +1 -1
  154. package/dist/sdk/query/sql-parser.js +1 -1
  155. package/dist/sdk/realtime.js +1 -1
  156. package/dist/sdk/schedule.js +1 -1
  157. package/dist/sdk/segment/child-segment-yaml.d.ts +2 -2
  158. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  159. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  160. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  161. package/dist/sdk/segment/fields-display.js +1 -1
  162. package/dist/sdk/segment/file-discovery.js +1 -1
  163. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  164. package/dist/sdk/segment/journey-utils.js +1 -1
  165. package/dist/sdk/segment/journey-utils.js.map +1 -1
  166. package/dist/sdk/segment/journey-validator.d.ts +3 -0
  167. package/dist/sdk/segment/journey-validator.d.ts.map +1 -1
  168. package/dist/sdk/segment/journey-validator.js +1 -1
  169. package/dist/sdk/segment/journey-validator.js.map +1 -1
  170. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  171. package/dist/sdk/segment/journey-yaml.js +1 -1
  172. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  173. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  174. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  175. package/dist/sdk/segment/pull-workflow.js +1 -1
  176. package/dist/sdk/segment/pull-workflow.js.map +1 -1
  177. package/dist/sdk/segment/push-recovery.js +1 -1
  178. package/dist/sdk/segment/push-workflow.d.ts +8 -0
  179. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  180. package/dist/sdk/segment/push-workflow.js +1 -1
  181. package/dist/sdk/segment/push-workflow.js.map +1 -1
  182. package/dist/sdk/segment/resolution-context.js +1 -1
  183. package/dist/sdk/segment/segment-path-parser.js +1 -1
  184. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  185. package/dist/sdk/segment/target-resolution.js +1 -1
  186. package/dist/sdk/segment/tdx-config.js +1 -1
  187. package/dist/sdk/segment/types/segment-def.d.ts +10 -1
  188. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  189. package/dist/sdk/segment/validate-files.js +1 -1
  190. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  191. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  192. package/dist/sdk/segment/yaml-validator.js +1 -1
  193. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  194. package/dist/sdk/segment.js +1 -1
  195. package/dist/sdk/types/cdp.d.ts +23 -15
  196. package/dist/sdk/types/cdp.d.ts.map +1 -1
  197. package/dist/sdk/types/index.js +1 -1
  198. package/dist/sdk/types/progress.js +1 -1
  199. package/dist/sdk/user.js +1 -1
  200. package/dist/sdk/util/format-detector.js +1 -1
  201. package/dist/sdk/util/formatters.js +1 -1
  202. package/dist/sdk/util/index.js +1 -1
  203. package/dist/sdk/util/tree-formatter.js +1 -1
  204. package/dist/sdk/workflow/archive-validation.js +1 -1
  205. package/dist/sdk/workflow/clone-workflow.js +1 -1
  206. package/dist/sdk/workflow/index.js +1 -1
  207. package/dist/sdk/workflow/pull-workflow.js +1 -1
  208. package/dist/sdk/workflow/push-workflow.js +1 -1
  209. package/dist/sdk/workflow/tdx-config.js +1 -1
  210. package/dist/sdk/workflow/workflow-utils.js +1 -1
  211. package/dist/test-utils/command-runner.js +1 -1
  212. package/dist/test-utils/factories.js +1 -1
  213. package/dist/test-utils/fixtures.js +1 -1
  214. package/dist/test-utils/http-mock.js +1 -1
  215. package/dist/test-utils/index.js +1 -1
  216. package/dist/utils/async.js +1 -1
  217. package/dist/utils/colors.js +1 -1
  218. package/dist/utils/diff.js +1 -1
  219. package/dist/utils/file-permissions.js +1 -1
  220. package/dist/utils/global-cache.js +1 -1
  221. package/dist/utils/json-loader.js +1 -1
  222. package/dist/utils/local-cache.js +1 -1
  223. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  224. package/dist/utils/logger/formatters/index.js +1 -1
  225. package/dist/utils/logger/handlers/console-handler.js +1 -1
  226. package/dist/utils/logger/handlers/file-handler.js +1 -1
  227. package/dist/utils/logger/handlers/index.js +1 -1
  228. package/dist/utils/logger/handlers/null-handler.js +1 -1
  229. package/dist/utils/logger/index.js +1 -1
  230. package/dist/utils/logger/logger.js +1 -1
  231. package/dist/utils/logger/types.js +1 -1
  232. package/dist/utils/option-validation.js +1 -1
  233. package/dist/utils/process.js +1 -1
  234. package/dist/utils/prompt.js +1 -1
  235. package/dist/utils/spinner.js +1 -1
  236. package/dist/utils/sse-parser.js +1 -1
  237. package/dist/utils/string-utils.js +1 -1
  238. package/dist/utils/table-ref-parser.js +1 -1
  239. package/dist/utils/tdx-logger.js +1 -1
  240. package/dist/utils/version-check.js +1 -1
  241. package/package.json +3 -3
  242. package/dist/utils/port.d.ts +0 -18
  243. package/dist/utils/port.d.ts.map +0 -1
  244. package/dist/utils/port.js +0 -1
  245. package/dist/utils/port.js.map +0 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x47b95f=a2_0x26e5;(function(_0x499af7,_0x5bbf77){const _0x2c1979=a2_0x26e5,_0x5054ab=_0x499af7();while(!![]){try{const _0x3460cf=parseInt(_0x2c1979(0x1e5))/0x1+parseInt(_0x2c1979(0x29f))/0x2*(parseInt(_0x2c1979(0x275))/0x3)+-parseInt(_0x2c1979(0x279))/0x4*(-parseInt(_0x2c1979(0x424))/0x5)+parseInt(_0x2c1979(0x1f1))/0x6*(parseInt(_0x2c1979(0x3a1))/0x7)+-parseInt(_0x2c1979(0x28c))/0x8*(parseInt(_0x2c1979(0x22d))/0x9)+parseInt(_0x2c1979(0x2e8))/0xa*(-parseInt(_0x2c1979(0x27a))/0xb)+-parseInt(_0x2c1979(0x2f8))/0xc*(parseInt(_0x2c1979(0x390))/0xd);if(_0x3460cf===_0x5bbf77)break;else _0x5054ab['push'](_0x5054ab['shift']());}catch(_0x2a3486){_0x5054ab['push'](_0x5054ab['shift']());}}}(a2_0x2e94,0x2df60));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';function a2_0x26e5(_0x57194c,_0x27b71b){_0x57194c=_0x57194c-0x1aa;const _0x2e9497=a2_0x2e94();let _0x26e580=_0x2e9497[_0x57194c];return _0x26e580;}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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';function a2_0x2e94(){const _0x20d22e=['use\x20[project]','--timezone\x20<tz>','Interactive\x20chat\x20selector','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','tdx','activations\x20<segment_name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','update\x20<name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','list','--table','Show\x20campaign\x20details','--temperature\x20<n>','Show\x20schedule\x20execution\x20history','create','agent','--retry-limit\x20<0~32>','--jsonl','--invisible','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','createAsync','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','statusline','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','log','-w,\x20--web','Create\x20a\x20workspace','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','New\x20segment\x20name','Output\x20as\x20JSON','Show\x20segment\x20details\x20(alias\x20for\x20view)','claude-4.5-sonnet','--to\x20<n>','retry\x20<session-id>','delete\x20<args...>','...','--rule-file\x20<file>','logs','campaign','use\x20[resource]\x20[value]','profile','Customer\x20group\x20as\x20JSON\x20string','Database\x20name','LLM\x20project\x20management','us01','join','\x20(resolved\x20to\x20','databases\x20[pattern]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Delay\x20in\x20seconds\x20before\x20execution','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','AI-native\x20CLI\x20for\x20Treasure\x20Data','--attribute\x20[name]','view\x20[name]','preview\x20[name]','Show\x20email\x20template\x20details','Preview\x20changes\x20without\x20pushing','attempts\x20[project]','Update\x20an\x20existing\x20agent','--name\x20<names>','Resume\x20a\x20paused\x20journey','-n,\x20--name\x20<name>','--add-attributes-file\x20<file>','outputHelp','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Set\x20or\x20show\x20parent\x20segment\x20context','--table\x20<table>','commandDescription','models','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','show\x20[name]','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','profiles','--num\x20<1-10>','Open\x20parent\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Database\x20to\x20use\x20(overrides\x20context)','addHelpText','--limit\x20<number>','slice','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Parent\x20segment\x20description','types','--html\x20<html>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','[action]','Push\x20without\x20confirmation','delete\x20<name>','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','help','--catalog\x20<catalog>','sql\x20[segment_name]','--folder\x20<name>','Clear\x20session\x20context','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','stdout','Options:','parent_segment','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','--add-behaviors\x20<json>','workflow','--format\x20<format>','Show\x20agent\x20details','Force\x20retry\x20even\x20if\x20not\x20failed','Parent\x20segment\x20management','Move\x20to\x20folder','claude\x20[args...]','Campaign\x20name','init\x20[name]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--reeval','buildTime','Run\x20tests\x20for\x20an\x20LLM\x20agent','--force','stderr','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Directory\x20does\x20not\x20exist:\x20','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','apiKey','setup','show\x20[table]','commands','Arguments:','Add\x20behaviors\x20as\x20JSON\x20string','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','attempt','validate\x20[name]','--include-retried','Show\x20schedule\x20details','94887ypKfSB','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','run\x20[workflow]','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Add\x20behaviors\x20from\x20JSON\x20file','System\x20prompt/instructions\x20(default:\x20empty)','engage','kill','Timezone\x20for\x20cron','llm','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--delay\x20<seconds>','Timezone\x20(e.g.,\x20America/Los_Angeles)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','--name\x20<text>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','create\x20<name>','671048PiJPDq','-p,\x20--profile\x20<name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Maximum\x20recursion\x20depth\x20(default:\x2010)','isTTY','--tsv','Set\x20operation\x20timeout\x20in\x20seconds','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Attempt\x20ID','unset\x20<resource>','Include\x20retried\x20attempts','\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','submit\x20[query]','workflows\x20[project]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--enriched','set\x20<args...>','api\x20[endpoint]','--prompt\x20<text>','--priority\x20<-2~2>','action','Master\x20table\x20name','fields\x20[name]','Maximum\x20tool\x20iterations\x20(default:\x204)','Cron\x20expression\x20for\x20scheduling','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','delete\x20<agent-name>','Request\x20body\x20as\x20JSON\x20string','--json','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--from\x20<timestamp>','table','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--skip-validation','Plaintext\x20template\x20content','--behaviors\x20<json>','push\x20[target]','agents\x20[pattern]','--master','Pause\x20a\x20campaign','test\x20[path]','tsv','Custom\x20revision\x20name\x20(default:\x20timestamp)','Agent\x20name','Export\x20journey(s)\x20as\x20YAML\x20files','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','preview\x20[file]','journey','clone\x20[source-dir]','tdx\x20','optionDescription','list\x20[project]','--description\x20<text>','Starting\x20offset\x20(default:\x200)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Delete\x20a\x20workspace','description','End\x20time\x20filter\x20(ISO\x208601\x20format)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','view\x20<name-or-path>','List\x20jobs','--type\x20<api_type>','Skip\x20validation\x20of\x20.dig\x20files','allowExcessArguments','log\x20<chat-id>','requiredOption','List\x20agents\x20in\x20current\x20project','hidden','--param\x20<key=value>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','List\x20all\x20available\x20profiles','Show\x20master\x20table\x20sample\x20data','-c,\x20--continue','--output\x20<file>','Clear\x20workflow\x20project\x20context','kill\x20<job-id>','secrets','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--help','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Get\x20job\x20results','--parent-folder\x20<name>','exit','Duplicate\x20a\x20campaign','segment','--new','List\x20available\x20connector\x20types','set','Read\x20query\x20from\x20file','Show\x20workspace\x20details','New\x20workspace\x20name','grapesjs','Workflow\x20project\x20management','Updated\x20description','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','padWidth','--llm-project\x20<name>','pull\x20[parent_or_file]','Database\x20name\x20(default:\x20information_schema)','Task\x20name\x20for\x20logs\x20action','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','-d,\x20--database\x20<name>','-d,\x20--database\x20<db>','update\x20<segment_name>','Resume\x20a\x20paused\x20campaign','forEach','Delete\x20an\x20email\x20template','List\x20available\x20LLM\x20models','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','history\x20<name>','parent','-y,\x20--yes','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Run\x20a\x20scheduled\x20query\x20immediately','show\x20<folder_ref>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Updated\x20schedule\x20option','--from\x20<n>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--start-at\x20<datetime>','Set\x20a\x20profile\x20configuration\x20value','run','Launch\x20a\x20campaign','0.7','pause\x20<name-or-id>','list\x20[path]','--workspace\x20<name>','5BEUSUR','required','Workspace\x20name','\x20-\x20built\x20','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Agent\x20prompt/instructions','mcp','--stage\x20<name>','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','--reason\x20<text>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','update\x20<name-or-id>','Resume\x20a\x20conversation\x20(shows\x20selector)','--in\x20<database>','Skip\x20confirmation\x20prompts','-H,\x20--header\x20<header>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--debug','Preview\x20without\x20creating\x20the\x20project','--revision\x20<revision>','after','opts','-r,\x20--resume','long','--starter-message\x20<text>','templates\x20[pattern]','--from-task\x20<task>','--behaviors-file\x20<file>','--chat-id\x20<id>','Attributes\x20as\x20JSON\x20string','Remove\x20a\x20profile','Skip\x20population\x20counting','hook','--dry-run','Invalid\x20editor\x20type:\x20','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Show\x20journey\x20statistics','Campaign\x20management','-f,\x20--file\x20<path>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Starter\x20message','Override\x20project\x20name','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Change\x20to\x20directory\x20before\x20executing\x20command','_list-commands','subcommandDescription','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Folder\x20description','\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','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--status\x20<status>','use\x20[name]','Setup\x20API\x20key\x20authentication\x20interactively','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','INVALID_ARGUMENT','list\x20[name]','describe','Output\x20folder\x20(default:\x20{project_name}.llm)','-v,\x20--verbose','info\x20[segment_name]','-d,\x20--database\x20<database>','split','Pull\x20child\x20segments\x20to\x20YAML\x20files','desc\x20[segment_name]','--name\x20<new-name>','Unknown\x20action:\x20','usage','Validate\x20journey\x20YAML\x20files\x20locally','Show\x20job\x20details','map','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','summary','chdir','Email\x20sender\x20ID\x20for\x20delivery','--system-prompt\x20<text>','--email-sender-id\x20<id>','[attempt-id]','--params\x20<json>','repeat','push\x20[name]','--editor-type\x20<type>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','template','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','\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','flatMap','Update\x20a\x20workspace','52114VfOvmv','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','get','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--plaintext\x20<text>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','parse','Delete\x20a\x20campaign','18PyfWYx','Kill\x20a\x20job','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Add\x20attributes\x20as\x20JSON\x20string','push\x20[file]','[task-name]','--clear','Read\x20SQL\x20query\x20from\x20file','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Database\x20management\x20commands','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--session\x20<id>','history\x20[chat-id]','Output\x20directory','Master\x20database\x20name','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--parent-segment\x20<name>','Show\x20connection\x20details\x20by\x20name','Run\x20specific\x20tests\x20(comma-separated)','Save\x20output\x20to\x20file','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','run\x20[name]','Workflow\x20(Digdag)\x20management\x20commands','--description\x20<desc>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','List\x20secret\x20keys\x20for\x20a\x20project','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','push\x20[path]','Create\x20a\x20new\x20LLM\x20project','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','argv','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','gitRevision','fields\x20[parent_name]','-o,\x20--output\x20<file>','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','set\x20<key=value>','auth','Pause\x20a\x20running\x20journey','User\x20management\x20commands','--attributes\x20<json>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','schema\x20<type>','delete\x20<project-name-or-id>','--add-attributes\x20<json>','Run\x20Trino\x20query\x20with\x20streaming\x20results','information_schema','--data\x20<data>','registeredArguments','Workflow\x20parameter\x20(repeatable)','Delete\x20an\x20LLM\x20project','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','72AffciV','Manage\x20workflow\x20project\x20secrets','-f,\x20--force','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','user','Show\x20timeline\x20for\x20specific\x20attempt','Reason\x20for\x20killing\x20the\x20attempt','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','RT\x202.0\x20configuration\x20management','includes','Include\x20retried\x20attempts\x20(for\x20list)','Revision\x20name\x20(default:\x20timestamp)','--customer-group\x20<json>','session','--name\x20<name>','--subject\x20<subject>','Timezone\x20for\x20cron\x20(default:\x20UTC)','--color','-r,\x20--recursive','length','--version','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','create\x20<segment_name>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','filter','then','-u,\x20--use','workspaces\x20[pattern]','isArray','flags','Preview\x20changes\x20without\x20writing\x20files','--cron\x20<expression>','subcommandTerm','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','[options]\x20--\x20[claude-code-args...]','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','error','Folder\x20name\x20for\x20organization','Output\x20file\x20path','-C,\x20--directory\x20<path>',',\x20version\x20','Enable\x20verbose\x20logging','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','--engine-version\x20<version>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','option','Make\x20segment\x20invisible\x20(default:\x20visible)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','result\x20<job-id>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','remove\x20<name>','run\x20<name>','Project\x20description','projects\x20[pattern]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Update\x20a\x20scheduled\x20query','jobs','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Show\x20segment\x20schema\x20(column\x20types)','Start\x20a\x20new\x20chat\x20session','Trino\x20catalog\x20(default:\x20td)','show\x20[segment_name]','Customer\x20group\x20from\x20JSON\x20file','--to\x20<timestamp>','launch\x20<name-or-id>','list\x20[pattern]','name','Remove\x20API\x20key\x20from\x20system\x20keychain','5259kUPqyt','show\x20<agent-name>','Behaviors\x20as\x20JSON\x20string','create\x20<parent_name>\x20<folder_name>','1297884GLLedr','137885ePELPo','configureHelp','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Query\x20type:\x20trino\x20or\x20hive','validate\x20[file]','List\x20all\x20data\x20connections','Show\x20only\x20master\x20table\x20validation','--segment\x20<path>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','alias','Add\x20attributes\x20from\x20JSON\x20file','CDP\x20segment\x20management\x20commands','validate\x20[target]','find','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Update\x20an\x20email\x20template','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','165040CIxnMB','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','push','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--trace','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Campaign\x20description','--max-tool-iterations\x20<n>','Open\x20segment\x20in\x20web\x20browser','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','schedule','New\x20template\x20name','-o,\x20--output\x20<folder>','Overwrite\x20local\x20changes\x20without\x20confirmation','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','show\x20<name-or-id>','Include\x20subtasks\x20in\x20tasks\x20output','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','282tQqMCp','Table\x20management\x20commands','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20authentication\x20status\x20and\x20current\x20context','Updated\x20timezone','use\x20<name>','--tags\x20<tags>','database','--json-columns\x20<cols>','--behavior\x20[name]','Parse\x20and\x20validate\x20without\x20executing','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--site\x20<site>','catch','Job\x20priority\x20(-2\x20to\x202)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','format','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','Pull\x20specific\x20revision\x20(default:\x20latest)','--type\x20<type>','--rule\x20<json>','Create\x20a\x20new\x20campaign','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','directory','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Create\x20a\x20new\x20profile','--default','--schedule-type\x20<type>','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','download\x20<project-name>\x20[output-dir]','Show\x20the\x20most\x20recent\x20chat','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Output\x20as\x20JSON\x20Lines','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','duplicate\x20<name-or-id>','New\x20campaign\x20name','argumentTerm','--schedule-option\x20<value>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-1d','command','HTML\x20template\x20content','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','attempt:','debug','[DEPRECATED]\x20Segment\x20folder\x20management','LLM\x20agent\x20management','variadic','delete\x20<name-or-id>','upload\x20[project-name-or-dir]','show\x20<job-id>','--agent\x20<ref>','Skip\x20confirmation\x20prompt','desc','Result\x20output\x20destination\x20URL','clone\x20[source]','--no-count-population','Filtering\x20rule\x20as\x20JSON\x20string','--include-stats','--full','tables\x20[pattern]','Email\x20subject\x20template','injectIntoOptions','--time\x20<iso8601>','--yes','argument','logLevel','pull\x20<project>\x20[target-dir]','-X,\x20--method\x20<method>','Filtering\x20rule\x20from\x20JSON\x20file','Preview\x20operation\x20without\x20executing','90XtgZSe','Personalization\x20service\x20management','push\x20[source-dir]','commandUsage','Workspace\x20description','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--name\x20<new_name>','Database\x20to\x20query\x20(default:\x20information_schema)','Behaviors\x20from\x20JSON\x20file','--interval\x20<range>','List\x20journeys\x20in\x20current\x20context','Query\x20engine\x20version','parent-segment','pull\x20[name]','--last','--kind\x20<type>','732OLmnPC','allowUnknownOption','options','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','json','Create\x20a\x20scheduled\x20query','segments\x20[path]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--max-depth\x20<depth>','Workspace\x20name\x20(required)','--result\x20<url>','Output\x20file\x20path\x20(default:\x20<name>.yml)','Data\x20connection\x20management\x20(for\x20activations/exports)','_hidden'];a2_0x2e94=function(){return _0x20d22e;};return a2_0x2e94();}import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x47b95f(0x212)]['includes'](a2_0x47b95f(0x241))){let versionOutput=a2_0x47b95f(0x3d4)+currentVersion;buildInfo[a2_0x47b95f(0x217)]&&!currentVersion[a2_0x47b95f(0x236)](buildInfo[a2_0x47b95f(0x217)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x47b95f(0x427)+buildInfo[a2_0x47b95f(0x37c)]),console[a2_0x47b95f(0x320)](versionOutput),process[a2_0x47b95f(0x3f7)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x47b95f(0x33d);buildInfo[a2_0x47b95f(0x217)]&&!currentVersion[a2_0x47b95f(0x236)](buildInfo['gitRevision'])?description+=a2_0x47b95f(0x257)+currentVersion+'\x20('+buildInfo[a2_0x47b95f(0x217)]+')':description+=a2_0x47b95f(0x257)+currentVersion;program[a2_0x47b95f(0x273)](a2_0x47b95f(0x30a))['description'](description),program[a2_0x47b95f(0x25c)](a2_0x47b95f(0x256),a2_0x47b95f(0x1b4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3a2),a2_0x47b95f(0x37a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2ac),a2_0x47b95f(0x35b),a2_0x47b95f(0x334))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x372),a2_0x47b95f(0x22c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x311),a2_0x47b95f(0x1ea))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x36f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x3a3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3a7),a2_0x47b95f(0x403))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3ee),a2_0x47b95f(0x206))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x359),a2_0x47b95f(0x2a2))['option'](a2_0x47b95f(0x23e),a2_0x47b95f(0x1ec),![])[a2_0x47b95f(0x25c)]('--no-color',a2_0x47b95f(0x1f9),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c7),a2_0x47b95f(0x258),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x435),a2_0x47b95f(0x20b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x290),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')['option']('--timeout\x20<seconds>',a2_0x47b95f(0x3a8),'30')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x2e7),![])['option']('-y,\x20--yes',a2_0x47b95f(0x432),![])[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1fe),a2_0x47b95f(0x25f))['option'](a2_0x47b95f(0x40a),a2_0x47b95f(0x357))[a2_0x47b95f(0x25c)]('--in\x20<name>',a2_0x47b95f(0x29b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x203),a2_0x47b95f(0x3c2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x405),a2_0x47b95f(0x3b0)),program[a2_0x47b95f(0x27b)]({'formatHelp':(_0x2ab882,_0x3d28db)=>{const _0xeadc1e=a2_0x47b95f,_0x282fe7=_0x3d28db[_0xeadc1e(0x404)](_0x2ab882,_0x3d28db),_0x4d4e86=0x2,_0x5ef52b=0x2;function _0x211627(_0x219162){const _0x34b25f=_0xeadc1e,_0x552cb2=_0x219162;return!!(_0x552cb2[_0x34b25f(0x305)]||_0x552cb2[_0x34b25f(0x3e8)]);}function _0x42d9ca(_0x12c24b,_0x44ab54){if(_0x44ab54){const _0x3f0bf5=''+_0x12c24b['padEnd'](_0x282fe7+_0x5ef52b)+_0x44ab54;return _0x3f0bf5;}return _0x12c24b;}function _0x280703(_0x1716fd){const _0x81780e=_0xeadc1e;return _0x1716fd[_0x81780e(0x335)]('\x0a')['replace'](/^/gm,'\x20'[_0x81780e(0x1db)](_0x4d4e86));}const _0x1ad5c6=[];_0x1ad5c6['push']('Usage:\x20'+_0x3d28db[_0xeadc1e(0x2eb)](_0x2ab882));const _0x532c7f=_0x3d28db[_0xeadc1e(0x34d)](_0x2ab882);_0x532c7f&&(_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0x532c7f));const _0x3344f6=_0x2ab882['commands']['filter'](_0x331a5c=>!_0x211627(_0x331a5c));if(_0x3344f6[_0xeadc1e(0x240)]>0x0){if(_0x2ab882[_0xeadc1e(0x273)]()===_0xeadc1e(0x30a)){const _0x19fb91=_0x2ab882[_0xeadc1e(0x439)](),_0x45c698=!_0x19fb91['noColor']&&process[_0xeadc1e(0x36c)]['isTTY'],_0x134800=COMMAND_CATEGORIES,_0x952385=(_0xd5df99,_0x437fdf)=>_0x45c698?_0x437fdf(_0xd5df99):_0xd5df99,_0x961698=new Map();_0x3344f6[_0xeadc1e(0x40e)](_0x32e4f0=>{const _0x2c8558=_0xeadc1e;_0x961698[_0x2c8558(0x3fc)](_0x32e4f0[_0x2c8558(0x273)](),_0x32e4f0);}),_0x134800[_0xeadc1e(0x40e)](_0x148c71=>{const _0x218a7d=_0xeadc1e,_0x2cf049=_0x148c71[_0x218a7d(0x388)][_0x218a7d(0x1e3)](_0x2809ff=>_0x961698[_0x218a7d(0x1e7)](_0x2809ff)??[]);if(_0x2cf049[_0x218a7d(0x240)]>0x0){_0x1ad5c6[_0x218a7d(0x28e)](''),_0x1ad5c6[_0x218a7d(0x28e)](_0x952385(_0x148c71['name']+':',_0x148c71['colorFn']));const _0x2fba21=_0x2cf049[_0x218a7d(0x1d2)](_0x8947b1=>{const _0x1ca7cb=_0x218a7d,_0x5729d0=_0x3d28db[_0x1ca7cb(0x24f)](_0x8947b1),_0xadb236=_0x3d28db[_0x1ca7cb(0x1b6)](_0x8947b1);return _0x42d9ca(_0x5729d0,_0xadb236);});_0x1ad5c6['push'](_0x280703(_0x2fba21));}}),_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6['push'](_0xeadc1e(0x42e));}else{const _0x2165e0=_0x3344f6[_0xeadc1e(0x1d2)](_0x2888ac=>{const _0x45be06=_0xeadc1e,_0x47b0c9=_0x3d28db['subcommandTerm'](_0x2888ac),_0x107c69=_0x3d28db[_0x45be06(0x1b6)](_0x2888ac);return _0x42d9ca(_0x47b0c9,_0x107c69);});_0x1ad5c6['push'](''),_0x1ad5c6[_0xeadc1e(0x28e)]('Commands:'),_0x1ad5c6['push'](_0x280703(_0x2165e0));}}if(showBriefHelp&&_0x2ab882[_0xeadc1e(0x273)]()===_0xeadc1e(0x30a))_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x1ac));else{const _0x3c1d1f=_0x2ab882[_0xeadc1e(0x2fa)][_0xeadc1e(0x247)](_0x26c5e9=>!_0x211627(_0x26c5e9));if(_0x3c1d1f[_0xeadc1e(0x240)]>0x0){const _0x53747c=_0x3c1d1f[_0xeadc1e(0x1d2)](_0x3509aa=>{const _0x4327d3=_0xeadc1e,_0x37cbb2=_0x3d28db['optionTerm'](_0x3509aa),_0x34ea1b=_0x3d28db[_0x4327d3(0x3d5)](_0x3509aa);return _0x42d9ca(_0x37cbb2,_0x34ea1b);});_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x36d)),_0x1ad5c6[_0xeadc1e(0x28e)](_0x280703(_0x53747c));}}const _0x6e77be=(_0x2ab882['registeredArguments']||[])[_0xeadc1e(0x247)](_0x3b89e5=>!_0x211627(_0x3b89e5));if(_0x6e77be[_0xeadc1e(0x240)]>0x0){const _0x4b3354=_0x6e77be[_0xeadc1e(0x1d2)](_0x265554=>{const _0x31095d=_0xeadc1e,_0x464939=_0x3d28db[_0x31095d(0x2c5)](_0x265554),_0x1ee732=_0x3d28db['argumentDescription'](_0x265554);return _0x42d9ca(_0x464939,_0x1ee732);});_0x1ad5c6[_0xeadc1e(0x28e)](''),_0x1ad5c6[_0xeadc1e(0x28e)](_0xeadc1e(0x389)),_0x1ad5c6[_0xeadc1e(0x28e)](_0x280703(_0x4b3354));}return _0x1ad5c6[_0xeadc1e(0x335)]('\x0a')+'\x0a';},'subcommandTerm':_0x29e031=>{const _0x23af58=a2_0x47b95f,_0x47f358=(_0x29e031[_0x23af58(0x227)]||[])[_0x23af58(0x1d2)](_0x25b0a4=>_0x25b0a4[_0x23af58(0x425)]?'<'+_0x25b0a4['name']()+'>':'['+_0x25b0a4[_0x23af58(0x273)]()+']')[_0x23af58(0x335)]('\x20'),_0x1914c9=_0x29e031['aliases'](),_0x45434b=_0x1914c9['length']>0x0?_0x29e031[_0x23af58(0x273)]()+',\x20'+_0x1914c9['join'](',\x20'):_0x29e031[_0x23af58(0x273)]();return _0x47f358?_0x45434b+'\x20'+_0x47f358:_0x45434b;}}),program[a2_0x47b95f(0x444)]('preAction',_0x364139=>{const _0x49a7f5=a2_0x47b95f,_0x2a74ca=_0x364139['opts']();if(_0x2a74ca[_0x49a7f5(0x2b8)]){const _0x1b2c11=resolve(_0x2a74ca[_0x49a7f5(0x2b8)]),_0x14f7ec=_0x1b2c11!==_0x2a74ca['directory']?_0x49a7f5(0x336)+_0x1b2c11+')':'';if(!existsSync(_0x1b2c11))throw new SDKError(ErrorCode[_0x49a7f5(0x1c3)],_0x49a7f5(0x381)+_0x2a74ca[_0x49a7f5(0x2b8)]+_0x14f7ec,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x4f773e=statSync(_0x1b2c11);if(!_0x4f773e['isDirectory']())throw new SDKError(ErrorCode[_0x49a7f5(0x1c3)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x2a74ca['directory']+_0x14f7ec,undefined,{'helpText':_0x49a7f5(0x382)});process[_0x49a7f5(0x1d5)](_0x1b2c11);}if(!_0x2a74ca[_0x49a7f5(0x2b0)]){if(_0x2a74ca['table'])_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x3c1);else{if(_0x2a74ca[_0x49a7f5(0x2fc)])_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x2fc);else{if(_0x2a74ca['jsonl'])_0x2a74ca[_0x49a7f5(0x2b0)]='jsonl';else _0x2a74ca['tsv']&&(_0x2a74ca[_0x49a7f5(0x2b0)]=_0x49a7f5(0x3cb));}}}_0x2a74ca['in']&&!_0x2a74ca['database']&&(_0x2a74ca[_0x49a7f5(0x2a7)]=_0x2a74ca['in']);if(_0x2a74ca['trace'])_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['TRACE'];else{if(_0x2a74ca[_0x49a7f5(0x2cd)])_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['DEBUG'];else _0x2a74ca[_0x49a7f5(0x2e3)]===undefined&&(_0x2a74ca[_0x49a7f5(0x2e3)]=LogLevel['INFO']);}});async function createTDXInstance(_0x5b892a){const _0xe35462=a2_0x47b95f,_0x4cc56c=await GlobalContext[_0xe35462(0x31b)](_0x5b892a);return _0x4cc56c[_0xe35462(0x2df)](_0x5b892a),TDX[_0xe35462(0x315)]({'site':_0x4cc56c['site'],'apiKey':_0x4cc56c[_0xe35462(0x385)],'logLevel':_0x4cc56c[_0xe35462(0x2e3)],'profile':_0x4cc56c[_0xe35462(0x330)]});}const databaseCmd=program['command'](a2_0x47b95f(0x2a7))[a2_0x47b95f(0x284)]('db')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1fc)),databaseListAction=async(_0x12a05b,_0x256fff)=>{const _0x23370a=a2_0x47b95f,_0x309ae1=new DatabasesCommand(),_0x354ea8=program[_0x23370a(0x439)](),_0x4a0693=await createTDXInstance(_0x354ea8),_0x19f41d=await _0x309ae1[_0x23370a(0x41e)]({'options':{..._0x354ea8,..._0x256fff},'args':_0x12a05b?[_0x12a05b]:[],'tdx':_0x4a0693});gracefulExit(_0x19f41d);};databaseCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x369))[a2_0x47b95f(0x3b6)](databaseListAction),program['command'](a2_0x47b95f(0x337),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x47b95f(0x3b6)](databaseListAction),program[a2_0x47b95f(0x2c9)]('chat\x20[message...]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x28b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2d4),a2_0x47b95f(0x39f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3fa),a2_0x47b95f(0x26c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x440),a2_0x47b95f(0x36b))[a2_0x47b95f(0x25c)]('--stream',a2_0x47b95f(0x2b2))[a2_0x47b95f(0x3b6)](async(_0x3fa53e,_0x1e73cc)=>{const _0xdc6da2=a2_0x47b95f,_0x28d706=program[_0xdc6da2(0x439)](),_0x490da5=await createTDXInstance(_0x28d706);if(_0x3fa53e[0x0]==='create'){const _0x13978f=new ChatCreateCommand();gracefulExit(await _0x13978f[_0xdc6da2(0x41e)]({'options':{..._0x28d706,..._0x1e73cc},'args':_0x3fa53e[_0xdc6da2(0x35a)](0x1),'tdx':_0x490da5}));return;}const _0x31756a=new ChatCommand(),_0x57552e=await _0x31756a[_0xdc6da2(0x41e)]({'options':{..._0x28d706,..._0x1e73cc},'args':_0x3fa53e,'tdx':_0x490da5});gracefulExit(_0x57552e);});const apiCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b3))[a2_0x47b95f(0x1d4)](a2_0x47b95f(0x215))['addHelpText'](a2_0x47b95f(0x438),'\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_0x47b95f(0x25c)](a2_0x47b95f(0x2e5),a2_0x47b95f(0x220),'GET')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x226),a2_0x47b95f(0x3bd))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1af),'Read\x20request\x20body\x20from\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x433),a2_0x47b95f(0x3f4),(_0x584dad,_0x1e0eb2)=>{return _0x1e0eb2?[..._0x1e0eb2,_0x584dad]:[_0x584dad];})[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3e2),a2_0x47b95f(0x1c1),'td')[a2_0x47b95f(0x3b6)](async(_0x20cc21,_0x3f3233)=>{const _0x388d33=a2_0x47b95f;if(!_0x20cc21){apiCmd[_0x388d33(0x364)]();return;}const _0x4765bb=new ApiCommand(),_0x298e17=program[_0x388d33(0x439)](),_0x146a1b=await createTDXInstance(_0x298e17),_0x2e7705=await _0x4765bb[_0x388d33(0x41e)]({'options':{..._0x298e17,..._0x3f3233},'args':[_0x20cc21],'tdx':_0x146a1b});gracefulExit(_0x2e7705);});program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x42a))['description'](a2_0x47b95f(0x21a))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x42c))[a2_0x47b95f(0x3b6)](async _0x568016=>{const _0x1eeff9=a2_0x47b95f,_0x3c4181=new MCPCommand(),_0x1d7aba=program[_0x1eeff9(0x439)](),_0x40f1d2=await createTDXInstance(_0x1d7aba),_0x4c6327=await _0x3c4181[_0x1eeff9(0x41e)]({'options':{..._0x1d7aba,..._0x568016},'args':[],'tdx':_0x40f1d2});gracefulExit(_0x4c6327);});const tableCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c1))['description'](a2_0x47b95f(0x2a0)),tableListAction=async(_0x5860ca,_0x5d047a)=>{const _0x47769a=a2_0x47b95f,_0x1633f9=new TablesCommand(),_0x3e03b4=program[_0x47769a(0x439)](),_0x561cd0=await createTDXInstance(_0x3e03b4);_0x5d047a['in']&&(_0x5d047a[_0x47769a(0x2a7)]=_0x5d047a['in']);const _0x48c2c9=await _0x1633f9[_0x47769a(0x41e)]({'options':{..._0x3e03b4,..._0x5d047a},'args':_0x5860ca?[_0x5860ca]:[],'tdx':_0x561cd0});gracefulExit(_0x48c2c9);};tableCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x39d))[a2_0x47b95f(0x25c)]('-d,\x20--database\x20<database>',a2_0x47b95f(0x252))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),a2_0x47b95f(0x29b))['action'](tableListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2dd),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1eb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x252))[a2_0x47b95f(0x25c)]('--in\x20<database>',a2_0x47b95f(0x29b))['action'](tableListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x387))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x295))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),a2_0x47b95f(0x29b))['action'](async(_0x16ba82,_0x581a99)=>{const _0x57483b=a2_0x47b95f,_0x391eed=new ShowCommand(),_0x1a80cd=program['opts'](),_0x2be6a1=await createTDXInstance(_0x1a80cd);_0x581a99['in']&&(_0x581a99[_0x57483b(0x2a7)]=_0x581a99['in']);const _0x437272=await _0x391eed[_0x57483b(0x41e)]({'options':{..._0x1a80cd,..._0x581a99},'args':_0x16ba82?[_0x16ba82]:[],'tdx':_0x2be6a1});gracefulExit(_0x437272);}),program[a2_0x47b95f(0x2c9)]('describe\x20[table]')[a2_0x47b95f(0x284)](a2_0x47b95f(0x2d6))[a2_0x47b95f(0x3db)]('Describe\x20table\x20schema')[a2_0x47b95f(0x25c)]('-d,\x20--database\x20<database>',a2_0x47b95f(0x295))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x431),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x18934f,_0x2747a0)=>{const _0x32d656=a2_0x47b95f,_0x1cb881=new DescribeCommand(),_0x47d67e=program[_0x32d656(0x439)](),_0x505a8f=await createTDXInstance(_0x47d67e);_0x2747a0['in']&&(_0x2747a0['database']=_0x2747a0['in']);const _0x15672e=await _0x1cb881['run']({'options':{..._0x47d67e,..._0x2747a0},'args':_0x18934f?[_0x18934f]:[],'tdx':_0x505a8f});gracefulExit(_0x15672e);}),program[a2_0x47b95f(0x2c9)]('query\x20[sql]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x224))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1c9),a2_0x47b95f(0x2ef))[a2_0x47b95f(0x25c)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x365),a2_0x47b95f(0x26d))[a2_0x47b95f(0x25c)]('-f,\x20--file\x20<path>',a2_0x47b95f(0x1f8))[a2_0x47b95f(0x25c)]('--limit\x20<rows>',a2_0x47b95f(0x393),'40')[a2_0x47b95f(0x3b6)](async(_0x59e5ca,_0x32c9cd)=>{const _0x390fb0=a2_0x47b95f,_0x8fe72b=new QueryCommand(),_0x179eb8=program[_0x390fb0(0x439)](),_0x2b5da3=await createTDXInstance(_0x179eb8);_0x32c9cd['in']&&(_0x32c9cd['database']=_0x32c9cd['in']);const _0x1e0ccf=await _0x8fe72b[_0x390fb0(0x41e)]({'options':{..._0x179eb8,..._0x32c9cd},'args':_0x59e5ca?[_0x59e5ca]:[],'tdx':_0x2b5da3});gracefulExit(_0x1e0ccf);});const segmentCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3f9))[a2_0x47b95f(0x284)]('sg')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x286)),segmentListAction=async(_0x2478b2,_0x35280b)=>{const _0x23dcd9=a2_0x47b95f,_0x2bef39=new SegmentsCommand(),_0x49633e=program[_0x23dcd9(0x439)](),_0x45deea=await createTDXInstance(_0x49633e),_0x9b0efe=await _0x2bef39[_0x23dcd9(0x41e)]({'options':{..._0x49633e,..._0x35280b},'args':_0x2478b2?[_0x2478b2]:[],'tdx':_0x45deea});gracefulExit(_0x9b0efe);};segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x422))[a2_0x47b95f(0x3db)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23f),a2_0x47b95f(0x216))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x300),a2_0x47b95f(0x3a5),'10')[a2_0x47b95f(0x3b6)](segmentListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2fe),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x351))['option'](a2_0x47b95f(0x23f),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x300),a2_0x47b95f(0x3a5),'10')[a2_0x47b95f(0x3b6)](segmentListAction),segmentCmd[a2_0x47b95f(0x2c9)]('use\x20<path>',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x31a))[a2_0x47b95f(0x3b6)](async(_0x2cae3e,_0xac77f7)=>{const _0x3d9b0e=a2_0x47b95f,_0x3ff85c=new SegmentUseCommand(),_0x253df7=program[_0x3d9b0e(0x439)](),_0x3ab634=await createTDXInstance(_0x253df7),_0x101cfd=await _0x3ff85c[_0x3d9b0e(0x41e)]({'options':{..._0x253df7,..._0xac77f7},'args':[_0x2cae3e],'tdx':_0x3ab634});gracefulExit(_0x101cfd);});const segmentViewAction=async(_0x5d8233,_0x3d174e)=>{const _0x2a1687=a2_0x47b95f,_0x35952c=new SegmentViewCommand(),_0x4c809d=program[_0x2a1687(0x439)](),_0x82f160=await createTDXInstance(_0x4c809d),_0x2e7bc7=await _0x35952c[_0x2a1687(0x41e)]({'options':{..._0x4c809d,..._0x3d174e},'args':_0x5d8233?[_0x5d8233]:[],'tdx':_0x82f160});gracefulExit(_0x2e7bc7);};segmentCmd[a2_0x47b95f(0x2c9)]('view\x20[segment_name]')[a2_0x47b95f(0x3db)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x321),a2_0x47b95f(0x294))[a2_0x47b95f(0x3b6)](segmentViewAction),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c8),{'hidden':!![]})[a2_0x47b95f(0x284)](a2_0x47b95f(0x1c5))[a2_0x47b95f(0x25c)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x326))['action'](segmentViewAction),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1cc))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x26b))[a2_0x47b95f(0x3b6)](async(_0x22024c,_0x51f86a)=>{const _0x25c960=a2_0x47b95f,_0x5f11b7=new SegmentDescCommand(),_0x57998f=program[_0x25c960(0x439)](),_0x209f23=await createTDXInstance(_0x57998f),_0x3aef32=await _0x5f11b7[_0x25c960(0x41e)]({'options':{..._0x57998f,..._0x51f86a},'args':_0x22024c?[_0x22024c]:[],'tdx':_0x209f23});gracefulExit(_0x3aef32);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x26e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x267))[a2_0x47b95f(0x3b6)](async(_0x2aa70d,_0x2c8c5f)=>{const _0x201639=a2_0x47b95f,_0x9ebfa9=new SegmentShowCommand(),_0x13d8b1=program['opts'](),_0x4367bb=await createTDXInstance(_0x13d8b1),_0x51257f=await _0x9ebfa9[_0x201639(0x41e)]({'options':{..._0x13d8b1,..._0x2c8c5f},'args':_0x2aa70d?[_0x2aa70d]:[],'tdx':_0x4367bb});gracefulExit(_0x51257f);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x356))['action'](async(_0x15d090,_0x16a644)=>{const _0x2d77c8=a2_0x47b95f,_0x3de060=new SegmentFolderListCommand(),_0x1a0909=program[_0x2d77c8(0x439)](),_0x58f94d=await createTDXInstance(_0x1a0909),_0x5a93f3=await _0x3de060['run']({'options':{..._0x1a0909,..._0x16a644},'args':[_0x15d090],'tdx':_0x58f94d});gracefulExit(_0x5a93f3);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ce));folderCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x417))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x259))[a2_0x47b95f(0x3b6)](async(_0x571848,_0xe6ab22)=>{const _0x3b538a=a2_0x47b95f,_0x1132d3=new SegmentFolderShowCommand(),_0x25000c=program['opts'](),_0x2368eb=await createTDXInstance(_0x25000c),_0x35730a=await _0x1132d3[_0x3b538a(0x41e)]({'options':{..._0x25000c,..._0xe6ab22},'args':[_0x571848],'tdx':_0x2368eb});gracefulExit(_0x35730a);}),segmentCmd['command'](a2_0x47b95f(0x366))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1e6))[a2_0x47b95f(0x3b6)](async(_0x19cafb,_0x3eb234)=>{const _0x3f3ec9=a2_0x47b95f,_0x2db60d=new SegmentSQLCommand(),_0x30935d=program[_0x3f3ec9(0x439)](),_0x580ffd=await createTDXInstance(_0x30935d),_0x540598=await _0x2db60d[_0x3f3ec9(0x41e)]({'options':{..._0x30935d,..._0x3eb234},'args':_0x19cafb?[_0x19cafb]:[],'tdx':_0x580ffd});gracefulExit(_0x540598);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x218))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3df))[a2_0x47b95f(0x3b6)](async(_0x555876,_0x448ade)=>{const _0x339d13=a2_0x47b95f,_0x4ab0be=new SegmentFieldsCommand(),_0x19b2c4=program[_0x339d13(0x439)](),_0x4c1887=await createTDXInstance(_0x19b2c4),_0x217583=await _0x4ab0be[_0x339d13(0x41e)]({'options':{..._0x19b2c4,..._0x448ade},'args':_0x555876?[_0x555876]:[],'tdx':_0x4c1887});gracefulExit(_0x217583);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x406))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x432))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x3cf))['action'](async(_0x36845b,_0x53ceef)=>{const _0x3168a5=a2_0x47b95f,_0x108d9e=new SegmentPullCommand(),_0x13cc8e=program[_0x3168a5(0x439)](),_0x14399a=await createTDXInstance(_0x13cc8e),_0x4dc036=await _0x108d9e[_0x3168a5(0x41e)]({'options':{..._0x13cc8e,..._0x53ceef},'args':_0x36845b?[_0x36845b]:[],'tdx':_0x14399a});gracefulExit(_0x4dc036);}),segmentCmd[a2_0x47b95f(0x2c9)]('push\x20[parent_or_file]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22a))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x432))['option']('--dry-run',a2_0x47b95f(0x3cf))[a2_0x47b95f(0x25c)]('--delete','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x47b95f(0x3b6)](async(_0x5a4f27,_0x4e9186)=>{const _0x445f43=a2_0x47b95f,_0x519657=new SegmentPushCommand(),_0xdc7222=program[_0x445f43(0x439)](),_0x503bd2=await createTDXInstance(_0xdc7222),_0x63578=await _0x519657[_0x445f43(0x41e)]({'options':{..._0xdc7222,..._0x4e9186},'args':_0x5a4f27?[_0x5a4f27]:[],'tdx':_0x503bd2});gracefulExit(_0x63578);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x287))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3dd))[a2_0x47b95f(0x3b6)](async(_0xc7a890,_0x9e4104)=>{const _0x5401c8=a2_0x47b95f,_0x52c744=new SegmentValidateCommand(),_0x1d1b54=program[_0x5401c8(0x439)](),_0xe63b09=await createTDXInstance(_0x1d1b54),_0x304fe0=await _0x52c744[_0x5401c8(0x41e)]({'options':{..._0x1d1b54,..._0x9e4104},'args':_0xc7a890?[_0xc7a890]:[],'tdx':_0xe63b09});gracefulExit(_0x304fe0);}),segmentCmd['command'](a2_0x47b95f(0x244),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3a9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Segment\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b5),a2_0x47b95f(0x2da))['option'](a2_0x47b95f(0x32c),a2_0x47b95f(0x2e6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x367),a2_0x47b95f(0x254))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f7),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x319),a2_0x47b95f(0x25d))['option'](a2_0x47b95f(0x2d9),a2_0x47b95f(0x443))[a2_0x47b95f(0x3b6)](async(_0x3df68c,_0x2577a6)=>{const _0x3faf49=a2_0x47b95f,_0x49b98d=new SegmentCreateCommand(),_0x56d9ae=program[_0x3faf49(0x439)](),_0x211ee1=await createTDXInstance(_0x56d9ae),_0x3de03f=await _0x49b98d[_0x3faf49(0x41e)]({'options':{..._0x56d9ae,..._0x2577a6},'args':[_0x3df68c],'tdx':_0x211ee1});gracefulExit(_0x3de03f);}),segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x40c),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x234))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2ee),a2_0x47b95f(0x324))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Updated\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b5),a2_0x47b95f(0x2c0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x32c),a2_0x47b95f(0x3ea))[a2_0x47b95f(0x25c)]('--folder\x20<name>',a2_0x47b95f(0x376))['option'](a2_0x47b95f(0x2f7),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x47b95f(0x3b6)](async(_0x1fe197,_0x934300)=>{const _0x4215f0=a2_0x47b95f,_0x8c4e01=new SegmentUpdateCommand(),_0x2ee978=program[_0x4215f0(0x439)](),_0x45415b=await createTDXInstance(_0x2ee978),_0x424e5c=await _0x8c4e01[_0x4215f0(0x41e)]({'options':{..._0x2ee978,..._0x934300},'args':[_0x1fe197],'tdx':_0x45415b});gracefulExit(_0x424e5c);});const parentCmd=segmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x413),{'hidden':!![]})['description'](a2_0x47b95f(0x1b9)),parentListAction=async(_0x5c7af4,_0x31ddc5)=>{const _0x5e5ded=a2_0x47b95f,_0x517b81=new ParentSegmentListCommand(),_0x4e5c8d=program[_0x5e5ded(0x439)](),_0x945436=await createTDXInstance(_0x4e5c8d),_0x334dba=await _0x517b81[_0x5e5ded(0x41e)]({'options':{..._0x4e5c8d,..._0x31ddc5},'args':_0x5c7af4?[_0x5c7af4]:[],'tdx':_0x945436});gracefulExit(_0x334dba);};parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x25e))[a2_0x47b95f(0x3b6)](parentListAction),segmentCmd[a2_0x47b95f(0x2c9)]('parents\x20[pattern]',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x339))[a2_0x47b95f(0x3b6)](parentListAction),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x219),a2_0x47b95f(0x303))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x5ed956,_0x101715)=>{const _0x389c12=a2_0x47b95f,_0x3283a8=new ParentSegmentPullCommand(),_0x58ceca=program['opts'](),_0x5db850=await createTDXInstance(_0x58ceca),_0x372a54=await _0x3283a8[_0x389c12(0x41e)]({'options':{..._0x58ceca,..._0x101715},'args':_0x5ed956?[_0x5ed956]:[],'tdx':_0x5db850});gracefulExit(_0x372a54);}),parentCmd['command'](a2_0x47b95f(0x1f5))[a2_0x47b95f(0x3db)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x8aa6dc,_0x53b2b7)=>{const _0x1d4f83=a2_0x47b95f,_0x5336a7=new ParentSegmentPushCommand(),_0x55cba0=program[_0x1d4f83(0x439)](),_0x5adb2b=await createTDXInstance(_0x55cba0),_0x558bb6=await _0x5336a7['run']({'options':{..._0x55cba0,..._0x53b2b7},'args':_0x8aa6dc?[_0x8aa6dc]:[],'tdx':_0x5adb2b});gracefulExit(_0x558bb6);}),parentCmd['command'](a2_0x47b95f(0x27e))['description'](a2_0x47b95f(0x2b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c8),'Show\x20only\x20master\x20table\x20validation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x33e),a2_0x47b95f(0x3a4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a9),a2_0x47b95f(0x2ed))['option']('--enriched',a2_0x47b95f(0x2cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),'-1d')[a2_0x47b95f(0x3b6)](async(_0x27780c,_0x7b4506)=>{const _0x5ac614=a2_0x47b95f,_0x33f307=new ParentSegmentValidateCommand(),_0x450eb4=program[_0x5ac614(0x439)](),_0x11debb=await createTDXInstance(_0x450eb4),_0x2db1e1=await _0x33f307['run']({'options':{..._0x450eb4,..._0x7b4506},'args':_0x27780c?[_0x27780c]:[],'tdx':_0x11debb});gracefulExit(_0x2db1e1);}),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d1))['description'](a2_0x47b95f(0x34a))[a2_0x47b95f(0x25c)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x33e),a2_0x47b95f(0x1b8))['option'](a2_0x47b95f(0x2a9),a2_0x47b95f(0x3d0))[a2_0x47b95f(0x25c)]('--enriched',a2_0x47b95f(0x1e1))['option'](a2_0x47b95f(0x2f1),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x47b95f(0x3b6)](async(_0x196bfa,_0x5804ce)=>{const _0x363eed=a2_0x47b95f,_0x20a671=new ParentSegmentPreviewCommand(),_0x4bfd22=program[_0x363eed(0x439)](),_0x5268b4=await createTDXInstance(_0x4bfd22),_0x11c412=await _0x20a671[_0x363eed(0x41e)]({'options':{..._0x4bfd22,..._0x5804ce},'args':_0x196bfa?[_0x196bfa]:[],'tdx':_0x5268b4});gracefulExit(_0x11c412);}),parentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x208))['description'](a2_0x47b95f(0x214))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x338f5e,_0x62c8c8)=>{const _0xfd7079=a2_0x47b95f,_0x3f69ea=new ParentSegmentRunCommand(),_0x192107=program[_0xfd7079(0x439)](),_0xbbe058=await createTDXInstance(_0x192107),_0x4bba00=await _0x3f69ea['run']({'options':{..._0x192107,..._0x62c8c8},'args':_0x338f5e?[_0x338f5e]:[],'tdx':_0xbbe058});gracefulExit(_0x4bba00);});const parentSegmentCmd=program['command'](a2_0x47b95f(0x2f4))[a2_0x47b95f(0x284)]('ps')['description'](a2_0x47b95f(0x375));parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x25e))['action'](parentListAction),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('-o,\x20--output\x20<file>','Output\x20file\x20path')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['option'](a2_0x47b95f(0x249),a2_0x47b95f(0x415))[a2_0x47b95f(0x3b6)](async(_0x5f0fc9,_0x27de08)=>{const _0x105975=a2_0x47b95f,_0x2cdc39=new ParentSegmentPullCommand(),_0x5d4adc=program[_0x105975(0x439)](),_0x37996f=await createTDXInstance(_0x5d4adc),_0x22cfec=await _0x2cdc39['run']({'options':{..._0x5d4adc,..._0x27de08},'args':_0x5f0fc9?[_0x5f0fc9]:[],'tdx':_0x37996f});gracefulExit(_0x22cfec);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1dc))['description'](a2_0x47b95f(0x289))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x9e822a,_0x38e9c3)=>{const _0x2d86d8=a2_0x47b95f,_0x4503e8=new ParentSegmentPushCommand(),_0x5c802b=program[_0x2d86d8(0x439)](),_0x508a37=await createTDXInstance(_0x5c802b),_0x12b1dc=await _0x4503e8['run']({'options':{..._0x5c802b,..._0x38e9c3},'args':_0x9e822a?[_0x9e822a]:[],'tdx':_0x508a37});gracefulExit(_0x12b1dc);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x38d))[a2_0x47b95f(0x3db)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c8),a2_0x47b95f(0x280))['option'](a2_0x47b95f(0x33e),a2_0x47b95f(0x3a4))[a2_0x47b95f(0x25c)]('--behavior\x20[name]',a2_0x47b95f(0x2ed))['option'](a2_0x47b95f(0x3b1),a2_0x47b95f(0x2cb))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),'-1d')[a2_0x47b95f(0x3b6)](async(_0x2fa84b,_0x4a4f5)=>{const _0x532e42=a2_0x47b95f,_0x3460b5=new ParentSegmentValidateCommand(),_0x14d4ce=program[_0x532e42(0x439)](),_0x47265a=await createTDXInstance(_0x14d4ce),_0x4c2d4e=await _0x3460b5['run']({'options':{..._0x14d4ce,..._0x4a4f5},'args':_0x2fa84b?[_0x2fa84b]:[],'tdx':_0x47265a});gracefulExit(_0x4c2d4e);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x340))['description'](a2_0x47b95f(0x34a))[a2_0x47b95f(0x25c)]('--master',a2_0x47b95f(0x3ec))['option'](a2_0x47b95f(0x33e),a2_0x47b95f(0x1b8))[a2_0x47b95f(0x25c)]('--behavior\x20[name]',a2_0x47b95f(0x3d0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3b1),a2_0x47b95f(0x1e1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f1),a2_0x47b95f(0x34f),a2_0x47b95f(0x2c8))['action'](async(_0x443e6d,_0x1e1c74)=>{const _0x40e382=new ParentSegmentPreviewCommand(),_0x1e2554=program['opts'](),_0x36e8ce=await createTDXInstance(_0x1e2554),_0x4fd145=await _0x40e382['run']({'options':{..._0x1e2554,..._0x1e1c74},'args':_0x443e6d?[_0x443e6d]:[],'tdx':_0x36e8ce});gracefulExit(_0x4fd145);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x208))['description'](a2_0x47b95f(0x214))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x4991ac,_0x1ef68b)=>{const _0x52f06e=a2_0x47b95f,_0x4bef0d=new ParentSegmentRunCommand(),_0x1e94c5=program['opts'](),_0x1ccb96=await createTDXInstance(_0x1e94c5),_0x1ef130=await _0x4bef0d[_0x52f06e(0x41e)]({'options':{..._0x1e94c5,..._0x1ef68b},'args':_0x4991ac?[_0x4991ac]:[],'tdx':_0x1ccb96});gracefulExit(_0x1ef130);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b8))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x47b95f(0x3be),'Output\x20as\x20JSON')['option'](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))['action'](async(_0x2fe1ae,_0x503e15)=>{const _0x3d9f8e=a2_0x47b95f,_0x555dad=new ParentSegmentFieldsCommand(),_0x374dc6=program[_0x3d9f8e(0x439)](),_0x17fc1a=await createTDXInstance(_0x374dc6),_0x365d64=await _0x555dad[_0x3d9f8e(0x41e)]({'options':{..._0x374dc6,..._0x503e15},'args':_0x2fe1ae?[_0x2fe1ae]:[],'tdx':_0x17fc1a});gracefulExit(_0x365d64);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x33f))[a2_0x47b95f(0x3db)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x321),a2_0x47b95f(0x355))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x5da242,_0x5366e5)=>{const _0x14579b=a2_0x47b95f,_0x55a68a=new ParentSegmentViewCommand(),_0x31b18a=program[_0x14579b(0x439)](),_0xf79f1c=await createTDXInstance(_0x31b18a),_0xb5dd9b=await _0x55a68a[_0x14579b(0x41e)]({'options':{..._0x31b18a,..._0x5366e5},'args':_0x5da242?[_0x5da242]:[],'tdx':_0xf79f1c});gracefulExit(_0xb5dd9b);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x202))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x219),a2_0x47b95f(0x255))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),'Output\x20as\x20JSON')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),'Output\x20as\x20JSON\x20Lines')[a2_0x47b95f(0x3b6)](async(_0x2d107a,_0x313750)=>{const _0xe4a31b=a2_0x47b95f,_0xddd264=new ParentSegmentDescCommand(),_0x26ef60=program[_0xe4a31b(0x439)](),_0x232e7f=await createTDXInstance(_0x26ef60),_0x4f403a=await _0xddd264[_0xe4a31b(0x41e)]({'options':{..._0x26ef60,..._0x313750},'args':_0x2d107a?[_0x2d107a]:[],'tdx':_0x232e7f});gracefulExit(_0x4f403a);}),parentSegmentCmd[a2_0x47b95f(0x2c9)]('sql\x20[name]')[a2_0x47b95f(0x3db)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x410a32,_0x2280a7)=>{const _0x6370fc=a2_0x47b95f,_0x33d21a=new ParentSegmentSQLCommand(),_0x197430=program[_0x6370fc(0x439)](),_0x397186=await createTDXInstance(_0x197430),_0x235241=await _0x33d21a[_0x6370fc(0x41e)]({'options':{..._0x197430,..._0x2280a7},'args':_0x410a32?[_0x410a32]:[],'tdx':_0x397186});gracefulExit(_0x235241);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x350))['description'](a2_0x47b95f(0x25b))[a2_0x47b95f(0x25c)]('--limit\x20<n>','Limit\x20number\x20of\x20rows')['option'](a2_0x47b95f(0x3be),a2_0x47b95f(0x325))['option'](a2_0x47b95f(0x318),a2_0x47b95f(0x2c1))[a2_0x47b95f(0x3b6)](async(_0x37f995,_0x3ea454)=>{const _0x466bfb=a2_0x47b95f,_0x36e5a8=new ParentSegmentShowCommand(),_0x579967=program[_0x466bfb(0x439)](),_0xfd1670=await createTDXInstance(_0x579967),_0x42c89d=await _0x36e5a8[_0x466bfb(0x41e)]({'options':{..._0x579967,..._0x3ea454},'args':_0x37f995?[_0x37f995]:[],'tdx':_0xfd1670});gracefulExit(_0x42c89d);}),parentSegmentCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1be))['description'](a2_0x47b95f(0x34b))[a2_0x47b95f(0x3b6)](async(_0x1707ce,_0x335ba4)=>{const _0x446e1a=a2_0x47b95f,_0x7fdf4d=new UseCommand(),_0xd9f18=program[_0x446e1a(0x439)](),_0x1a0452=_0x1707ce?[_0x446e1a(0x36e),_0x1707ce]:[],_0x241b2e=await _0x7fdf4d[_0x446e1a(0x41e)]({'options':{..._0xd9f18,..._0x335ba4},'args':_0x1a0452,'tdx':null});gracefulExit(_0x241b2e);});const psRtCmd=parentSegmentCmd[a2_0x47b95f(0x2c9)]('rt')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x235));psRtCmd['command'](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29e))[a2_0x47b95f(0x3b6)](async(_0x218089,_0x2041a2)=>{const _0x357b36=a2_0x47b95f,_0x430b4c=new PSRtListCommand(),_0x5f1e96=program['opts'](),_0xc0393e=await createTDXInstance(_0x5f1e96),_0x15cf26=await _0x430b4c[_0x357b36(0x41e)]({'options':{..._0x5f1e96,..._0x2041a2},'args':_0x218089?[_0x218089]:[],'tdx':_0xc0393e});gracefulExit(_0x15cf26);}),psRtCmd['command']('validate\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x250))[a2_0x47b95f(0x3b6)](async(_0x1f123c,_0x37fa9f)=>{const _0x594270=a2_0x47b95f,_0x8340ff=new PSRtValidateCommand(),_0x12756c=program[_0x594270(0x439)](),_0x303bea=await createTDXInstance(_0x12756c),_0x76b5ab=await _0x8340ff[_0x594270(0x41e)]({'options':{..._0x12756c,..._0x37fa9f},'args':_0x1f123c?[_0x1f123c]:[],'tdx':_0x303bea});gracefulExit(_0x76b5ab);});const parentRtCmd=parentCmd[a2_0x47b95f(0x2c9)]('rt',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x235));parentRtCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))['description']('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x5b0151,_0x1e7437)=>{const _0x2e4f71=a2_0x47b95f,_0x572371=new PSRtListCommand(),_0x36e40e=program['opts'](),_0x547841=await createTDXInstance(_0x36e40e),_0x3b7c22=await _0x572371[_0x2e4f71(0x41e)]({'options':{..._0x36e40e,..._0x1e7437},'args':_0x5b0151?[_0x5b0151]:[],'tdx':_0x547841});gracefulExit(_0x3b7c22);}),parentRtCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x38d))[a2_0x47b95f(0x3db)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x47b95f(0x3b6)](async(_0x4ab107,_0x185fee)=>{const _0x284996=a2_0x47b95f,_0x4d90fd=new PSRtValidateCommand(),_0x2276a4=program[_0x284996(0x439)](),_0x541d49=await createTDXInstance(_0x2276a4),_0x2b8701=await _0x4d90fd[_0x284996(0x41e)]({'options':{..._0x2276a4,..._0x185fee},'args':_0x4ab107?[_0x4ab107]:[],'tdx':_0x541d49});gracefulExit(_0x2b8701);});const psPzCmd=parentSegmentCmd[a2_0x47b95f(0x2c9)]('pz')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2e9));psPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c4))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x230))[a2_0x47b95f(0x3b6)](async(_0x1ac305,_0x984fe2)=>{const _0x206b9b=a2_0x47b95f,_0x241a26=new PSPzListCommand(),_0x5e42df=program[_0x206b9b(0x439)](),_0x17ce4f=await createTDXInstance(_0x5e42df),_0x13ebac=await _0x241a26['run']({'options':{..._0x5e42df,..._0x984fe2},'args':_0x1ac305?[_0x1ac305]:[],'tdx':_0x17ce4f});gracefulExit(_0x13ebac);}),psPzCmd[a2_0x47b95f(0x2c9)]('init\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29a))[a2_0x47b95f(0x3b6)](async(_0xd170b0,_0x5686bd)=>{const _0x5d62fb=a2_0x47b95f,_0x4bdbe6=new PSPzInitCommand(),_0x42eb93=program[_0x5d62fb(0x439)](),_0x12b877=await createTDXInstance(_0x42eb93),_0x1af7da=await _0x4bdbe6['run']({'options':{..._0x42eb93,..._0x5686bd},'args':_0xd170b0?[_0xd170b0]:[],'tdx':_0x12b877});gracefulExit(_0x1af7da);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2e9));parentPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1c4))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x230))['action'](async(_0x5d41fc,_0x5bcd2c)=>{const _0xd193ba=a2_0x47b95f,_0x238e21=new PSPzListCommand(),_0x2e88ca=program[_0xd193ba(0x439)](),_0x22fbb4=await createTDXInstance(_0x2e88ca),_0x4e957d=await _0x238e21[_0xd193ba(0x41e)]({'options':{..._0x2e88ca,..._0x5bcd2c},'args':_0x5d41fc?[_0x5d41fc]:[],'tdx':_0x22fbb4});gracefulExit(_0x4e957d);}),parentPzCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x379))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x29a))[a2_0x47b95f(0x3b6)](async(_0x4fe526,_0x244044)=>{const _0x590f0c=a2_0x47b95f,_0x14f694=new PSPzInitCommand(),_0x21b396=program[_0x590f0c(0x439)](),_0x4108d5=await createTDXInstance(_0x21b396),_0x4da040=await _0x14f694[_0x590f0c(0x41e)]({'options':{..._0x21b396,..._0x244044},'args':_0x4fe526?[_0x4fe526]:[],'tdx':_0x4108d5});gracefulExit(_0x4da040);}),parentCmd[a2_0x47b95f(0x2c9)]('create\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x283))[a2_0x47b95f(0x3e6)]('--database\x20<db>',a2_0x47b95f(0x201))['requiredOption'](a2_0x47b95f(0x34c),a2_0x47b95f(0x3b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x35c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bc),a2_0x47b95f(0x246))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2c6),a2_0x47b95f(0x38b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x39c))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x21f),a2_0x47b95f(0x441))[a2_0x47b95f(0x25c)]('--attributes-file\x20<file>','Attributes\x20from\x20JSON\x20file')['option'](a2_0x47b95f(0x3c5),a2_0x47b95f(0x277))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43f),a2_0x47b95f(0x2f0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x239),a2_0x47b95f(0x331))['option']('--customer-group-file\x20<file>',a2_0x47b95f(0x26f))[a2_0x47b95f(0x3b6)](async(_0x910109,_0x4f9f51)=>{const _0x2f206c=a2_0x47b95f,_0x2688ff=new ParentSegmentCreateCommand(),_0x181427=program[_0x2f206c(0x439)](),_0x1ff530=await createTDXInstance(_0x181427),_0x30ee7c=await _0x2688ff[_0x2f206c(0x41e)]({'options':{..._0x181427,..._0x4f9f51},'args':[_0x910109],'tdx':_0x1ff530});gracefulExit(_0x30ee7c);}),parentCmd['command'](a2_0x47b95f(0x30e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x380))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x402))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bc),a2_0x47b95f(0x1f3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2c6),a2_0x47b95f(0x419))['option'](a2_0x47b95f(0x307),a2_0x47b95f(0x2a4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x223),a2_0x47b95f(0x1f4))['option'](a2_0x47b95f(0x348),a2_0x47b95f(0x285))['option'](a2_0x47b95f(0x370),a2_0x47b95f(0x38a))['option']('--add-behaviors-file\x20<file>',a2_0x47b95f(0x394))['action'](async(_0x2f0b6f,_0x1a2254)=>{const _0x134479=a2_0x47b95f,_0x2b664d=new ParentSegmentUpdateCommand(),_0x20be6c=program[_0x134479(0x439)](),_0x433d30=await createTDXInstance(_0x20be6c),_0x5d1d38=await _0x2b664d[_0x134479(0x41e)]({'options':{..._0x20be6c,..._0x1a2254},'args':[_0x2f0b6f],'tdx':_0x433d30});gracefulExit(_0x5d1d38);}),folderCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x278))[a2_0x47b95f(0x3db)]('Create\x20segment\x20folder')[a2_0x47b95f(0x25c)]('--description\x20<text>',a2_0x47b95f(0x1ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3f6),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x41c300,_0xa71cfa,_0xb95730)=>{const _0x352861=new SegmentFolderCreateCommand(),_0x50c3f1=program['opts'](),_0x4eb9b3=await createTDXInstance(_0x50c3f1),_0x19d595=await _0x352861['run']({'options':{..._0x50c3f1,..._0xb95730},'args':[_0x41c300,_0xa71cfa],'tdx':_0x4eb9b3});gracefulExit(_0x19d595);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x30b))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x309))[a2_0x47b95f(0x3b6)](async(_0x26e163,_0x13ced1)=>{const _0x3d9d2f=a2_0x47b95f,_0x2b7342=new ActivationsCommand(),_0x2bb83a=program[_0x3d9d2f(0x439)](),_0x52aad6=await createTDXInstance(_0x2bb83a),_0x324e91=await _0x2b7342[_0x3d9d2f(0x41e)]({'options':{..._0x2bb83a,..._0x13ced1},'args':[_0x26e163],'tdx':_0x52aad6});gracefulExit(_0x324e91);});const workflowCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x371))[a2_0x47b95f(0x284)]('wf')['description'](a2_0x47b95f(0x209)),wfProjectCmd=workflowCmd[a2_0x47b95f(0x2c9)]('project')['description'](a2_0x47b95f(0x401)),wfProjectListAction=async(_0x369596,_0x1c4887)=>{const _0xff3df4=a2_0x47b95f,_0x17e0f8=new WorkflowProjectsCommand(),_0x1c3c6f=program['opts'](),_0x35250b=await createTDXInstance(_0x1c3c6f),_0x2bae9c=await _0x17e0f8[_0xff3df4(0x41e)]({'options':{..._0x1c3c6f,..._0x1c4887},'args':_0x369596?[_0x369596]:[],'tdx':_0x35250b});gracefulExit(_0x2bae9c);};wfProjectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x411))[a2_0x47b95f(0x3b6)](wfProjectListAction),workflowCmd[a2_0x47b95f(0x2c9)]('projects\x20[pattern]')[a2_0x47b95f(0x3db)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x400b8e,_0x51e7ac)=>{const _0x4b2b5b=a2_0x47b95f,_0x5ef9d4=new WorkflowWorkflowsCommand(),_0xa74570=program[_0x4b2b5b(0x439)](),_0x5a256b=await createTDXInstance(_0xa74570),_0x370b67=await _0x5ef9d4['run']({'options':{..._0xa74570,..._0x51e7ac},'args':_0x400b8e?[_0x400b8e]:[],'tdx':_0x5a256b});gracefulExit(_0x370b67);};workflowCmd['command'](a2_0x47b95f(0x3af))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1c2))[a2_0x47b95f(0x3b6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x23a))[a2_0x47b95f(0x3db)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x190097,_0x4ef17f)=>{const _0x18898a=a2_0x47b95f,_0xc63ac6=new WorkflowSessionsCommand(),_0x186218=program[_0x18898a(0x439)](),_0x51766e=await createTDXInstance(_0x186218),_0x15d8a3=await _0xc63ac6['run']({'options':{..._0x186218,..._0x4ef17f},'args':_0x190097?[_0x190097]:[],'tdx':_0x51766e});gracefulExit(_0x15d8a3);};wfSessionCmd[a2_0x47b95f(0x2c9)]('list\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')['option'](a2_0x47b95f(0x1bd),a2_0x47b95f(0x28f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c0),a2_0x47b95f(0x261))['option'](a2_0x47b95f(0x270),a2_0x47b95f(0x3dc))[a2_0x47b95f(0x3b6)](wfSessionListAction),workflowCmd[a2_0x47b95f(0x2c9)]('sessions\x20[project]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x20e))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x28f))[a2_0x47b95f(0x25c)]('--from\x20<timestamp>',a2_0x47b95f(0x261))[a2_0x47b95f(0x25c)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x47b95f(0x3b6)](wfSessionListAction);const wfAttemptListAction=async(_0x6d1f29,_0x5078b2)=>{const _0x371a79=a2_0x47b95f,_0x8202df=new WorkflowAttemptsCommand(),_0x13ab69=program[_0x371a79(0x439)](),_0x21b8fd=await createTDXInstance(_0x13ab69),_0x3e9d0e=await _0x8202df[_0x371a79(0x41e)]({'options':{..._0x13ab69,..._0x5078b2},'args':_0x6d1f29?[_0x6d1f29]:[],'tdx':_0x21b8fd});gracefulExit(_0x3e9d0e);},attemptCmd=workflowCmd['command'](a2_0x47b95f(0x38c))[a2_0x47b95f(0x3db)]('Workflow\x20attempt\x20management')[a2_0x47b95f(0x2e2)](a2_0x47b95f(0x1d9),a2_0x47b95f(0x3aa))['argument'](a2_0x47b95f(0x360),a2_0x47b95f(0x266))[a2_0x47b95f(0x2e2)](a2_0x47b95f(0x1f6),a2_0x47b95f(0x408))[a2_0x47b95f(0x25c)]('--include-subtasks',a2_0x47b95f(0x29d))['option'](a2_0x47b95f(0x42d),a2_0x47b95f(0x233))[a2_0x47b95f(0x25c)]('--resume-from\x20<task>','Resume\x20from\x20specific\x20task\x20(retry)')['option'](a2_0x47b95f(0x1da),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x47b95f(0x37e),a2_0x47b95f(0x374))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x38e),a2_0x47b95f(0x237))[a2_0x47b95f(0x3b6)](async(_0x31b24d,_0x199ab6,_0x1b8385,_0x2e25d1)=>{const _0xcd14e5=a2_0x47b95f;if(_0x31b24d===_0xcd14e5(0x310)){await wfAttemptListAction(_0x199ab6,_0x2e25d1);return;}if(!_0x31b24d){attemptCmd[_0xcd14e5(0x364)]();return;}const _0x3bb129=program['opts'](),_0x552722=await createTDXInstance(_0x3bb129);let _0x946c90=0x0;if(!_0x199ab6){const _0x4a2bda=new WorkflowAttemptCommand();_0x946c90=await _0x4a2bda[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6===_0xcd14e5(0x32d)){const _0x545a45=new WorkflowLogsCommand();_0x946c90=await _0x545a45[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':_0x1b8385?[_0x31b24d,_0x1b8385]:[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6==='tasks'){const _0x24a307=new WorkflowTasksCommand();_0x946c90=await _0x24a307[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6===_0xcd14e5(0x397)){const _0x49e856=new WorkflowKillCommand();_0x946c90=await _0x49e856[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0x31b24d],'tdx':_0x552722});}else{if(_0x199ab6==='retry'){const _0x558301=new WorkflowRetryCommand();_0x946c90=await _0x558301[_0xcd14e5(0x41e)]({'options':{..._0x3bb129,..._0x2e25d1},'args':[_0xcd14e5(0x2cc)+_0x31b24d],'tdx':_0x552722});}else console[_0xcd14e5(0x253)](_0xcd14e5(0x1ce)+_0x199ab6),console[_0xcd14e5(0x253)](_0xcd14e5(0x2fb)),_0x946c90=0x1;}}}}gracefulExit(_0x946c90);});attemptCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d6))[a2_0x47b95f(0x3db)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x47b95f(0x25c)]('--include-retried',a2_0x47b95f(0x3ac))[a2_0x47b95f(0x3b6)](wfAttemptListAction),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x343))['description'](a2_0x47b95f(0x30f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x38e),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')['description']('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')['option']('--follow','Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x47b95f(0x25c)]('--session-id\x20<id>',a2_0x47b95f(0x1fb))['option']('--attempt-id\x20<id>',a2_0x47b95f(0x232))[a2_0x47b95f(0x3b6)](async(_0x48cc20,_0x7675d)=>{const _0x2d981c=a2_0x47b95f,_0x158e4d=new WorkflowTimelineCommand(),_0x3f6507=program[_0x2d981c(0x439)](),_0x328f51=await createTDXInstance(_0x3f6507),_0x1d4e84=await _0x158e4d[_0x2d981c(0x41e)]({'options':{..._0x3f6507,..._0x7675d},'args':_0x48cc20?[_0x48cc20]:[],'tdx':_0x328f51});gracefulExit(_0x1d4e84);}),workflowCmd['command'](a2_0x47b95f(0x329))['description'](a2_0x47b95f(0x2c7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43e),'Resume\x20from\x20specific\x20task')[a2_0x47b95f(0x25c)]('--params\x20<json>',a2_0x47b95f(0x20c))['action'](async(_0x470d21,_0x17a20f)=>{const _0x214cfc=a2_0x47b95f,_0x22010e=new WorkflowRetryCommand(),_0xf06579=program[_0x214cfc(0x439)](),_0x342aa9=await createTDXInstance(_0xf06579),_0x428ff2=await _0x22010e[_0x214cfc(0x41e)]({'options':{..._0xf06579,..._0x17a20f},'args':[_0x470d21],'tdx':_0x342aa9});gracefulExit(_0x428ff2);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x392))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x282))['option'](a2_0x47b95f(0x3e9),a2_0x47b95f(0x228),(_0x50ea94,_0x495968=[])=>[..._0x495968,_0x50ea94],[])[a2_0x47b95f(0x25c)]('--session-time\x20<time>',a2_0x47b95f(0x2b1))[a2_0x47b95f(0x3b6)](async(_0x18e919,_0x18a4c9)=>{const _0x242431=a2_0x47b95f,_0x1a113d=new WorkflowRunCommand(),_0x3d569c=program['opts'](),_0x32204e=await createTDXInstance(_0x3d569c),_0x142b13=await _0x1a113d[_0x242431(0x41e)]({'options':{..._0x3d569c,..._0x18a4c9},'args':_0x18e919?[_0x18e919]:[],'tdx':_0x32204e});gracefulExit(_0x142b13);}),workflowCmd['command'](a2_0x47b95f(0x2be))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22b))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x31c))[a2_0x47b95f(0x3b6)](async(_0x51d1f7,_0x327962,_0x319cc8)=>{const _0x1f0192=a2_0x47b95f,_0x219110=new WorkflowDownloadCommand(),_0x164370=program[_0x1f0192(0x439)](),_0x25f146=await createTDXInstance(_0x164370),_0x54e642=await _0x219110['run']({'options':{..._0x164370,..._0x319cc8},'args':[_0x51d1f7,_0x327962||'.'],'tdx':_0x25f146});gracefulExit(_0x54e642);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2e4))[a2_0x47b95f(0x3db)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x2b3))['option'](a2_0x47b95f(0x1aa),a2_0x47b95f(0x24d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x310f33,_0x38ee67,_0x52b1a7)=>{const _0x4534b1=a2_0x47b95f,_0x25fb2e=new WorkflowPullCommand(),_0x574353=program[_0x4534b1(0x439)](),_0x11c703=await createTDXInstance(_0x574353),_0x161a08=await _0x25fb2e['run']({'options':{..._0x574353,..._0x52b1a7},'args':_0x38ee67?[_0x310f33,_0x38ee67]:[_0x310f33],'tdx':_0x11c703});gracefulExit(_0x161a08);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2ea))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x384))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x3cc))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x342))['option']('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x3ed62b,_0x20300a)=>{const _0x48bd54=a2_0x47b95f,_0xecbb0=new WorkflowPushCommand(),_0x5972cd=program[_0x48bd54(0x439)](),_0x4cb4eb=await createTDXInstance(_0x5972cd),_0x1bebca=await _0xecbb0[_0x48bd54(0x41e)]({'options':{..._0x5972cd,..._0x20300a},'args':_0x3ed62b?[_0x3ed62b]:[],'tdx':_0x4cb4eb});gracefulExit(_0x1bebca);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d2))['description'](a2_0x47b95f(0x27c))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x1b2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x437),a2_0x47b95f(0x238))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c3),a2_0x47b95f(0x3e3))[a2_0x47b95f(0x3b6)](async(_0x897a75,_0x553e06)=>{const _0x20770f=a2_0x47b95f,_0x4043ac=new WorkflowUploadCommand(),_0x5994d5=program['opts'](),_0x498f5b=await createTDXInstance(_0x5994d5),_0x55a349=await _0x4043ac[_0x20770f(0x41e)]({'options':{..._0x5994d5,..._0x553e06},'args':_0x897a75?[_0x897a75]:[],'tdx':_0x498f5b});gracefulExit(_0x55a349);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d3))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3bb))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x31e))[a2_0x47b95f(0x25c)]('--revision\x20<revision>',a2_0x47b95f(0x3cc))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x436))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3c3),a2_0x47b95f(0x3e3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))['action'](async(_0x523d45,_0x47f81f)=>{const _0x1549ce=a2_0x47b95f,_0x30b908=new WorkflowCloneCommand(),_0x2c33e9=program[_0x1549ce(0x439)](),_0x772ff6=await createTDXInstance(_0x2c33e9),_0x43cd37=await _0x30b908[_0x1549ce(0x41e)]({'options':{..._0x2c33e9,..._0x47f81f},'args':_0x523d45?[_0x523d45]:[],'tdx':_0x772ff6});gracefulExit(_0x43cd37);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x222))['description']('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x47b95f(0x3b6)](async(_0x15ec6c,_0x2954a5)=>{const _0x5a88a8=a2_0x47b95f,_0x3789cf=new WorkflowDeleteCommand(),_0x109b59=program[_0x5a88a8(0x439)](),_0x5549f9=await createTDXInstance(_0x109b59),_0x474868=await _0x3789cf[_0x5a88a8(0x41e)]({'options':{..._0x109b59,..._0x2954a5},'args':[_0x15ec6c],'tdx':_0x5549f9});gracefulExit(_0x474868);}),workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x306))['description'](a2_0x47b95f(0x2c2))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1f7),a2_0x47b95f(0x3ef))['action'](async(_0x13da0b,_0x188b20)=>{const _0x5d3cb3=new WorkflowUseCommand(),_0x22466a=program['opts'](),_0x33e7f0=await createTDXInstance(_0x22466a),_0x4b62f9=await _0x5d3cb3['run']({'options':{..._0x22466a,..._0x188b20},'args':_0x13da0b?[_0x13da0b]:[],'tdx':_0x33e7f0});gracefulExit(_0x4b62f9);});const wfSecretsCmd=workflowCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3f1))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x22e));wfSecretsCmd['command']('list\x20[project]')['description'](a2_0x47b95f(0x20d))[a2_0x47b95f(0x3b6)](async(_0x4808ce,_0x17370a)=>{const _0x2d842d=a2_0x47b95f,_0x2da045=new WorkflowSecretsListCommand(),_0x1dd8e4=program[_0x2d842d(0x439)](),_0x137487=await createTDXInstance(_0x1dd8e4),_0x3dbcbf=await _0x2da045[_0x2d842d(0x41e)]({'options':{..._0x1dd8e4,..._0x17370a},'args':_0x4808ce?[_0x4808ce]:[],'tdx':_0x137487});gracefulExit(_0x3dbcbf);}),wfSecretsCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3b2))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x291))['action'](async(_0x1fb17c,_0x42b9be)=>{const _0xdb0795=a2_0x47b95f,_0x3e145d=new WorkflowSecretsSetCommand(),_0x4a4b9e=program['opts'](),_0x2f6bbf=await createTDXInstance(_0x4a4b9e),_0x5d986f=await _0x3e145d[_0xdb0795(0x41e)]({'options':{..._0x4a4b9e,..._0x42b9be},'args':_0x1fb17c,'tdx':_0x2f6bbf});gracefulExit(_0x5d986f);}),wfSecretsCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32a))['description'](a2_0x47b95f(0x409))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](async(_0x10b5ec,_0x84ae75)=>{const _0x593c7c=a2_0x47b95f,_0x5ce612=new WorkflowSecretsDeleteCommand(),_0x537c7b=program[_0x593c7c(0x439)](),_0x168b0c=await createTDXInstance(_0x537c7b),_0x4c26f4=await _0x5ce612[_0x593c7c(0x41e)]({'options':{..._0x537c7b,..._0x84ae75},'args':_0x10b5ec,'tdx':_0x168b0c});gracefulExit(_0x4c26f4);});const jobCmd=program['command']('job')[a2_0x47b95f(0x3db)]('Job\x20management\x20commands'),jobListAction=async _0x1ea08a=>{const _0x595fd5=a2_0x47b95f,_0x5b9fbf=new JobListCommand(),_0x154315=program[_0x595fd5(0x439)](),_0x49b1a1=await createTDXInstance(_0x154315),_0x5f4e96=await _0x5b9fbf['run']({'options':{..._0x154315,..._0x1ea08a},'args':[],'tdx':_0x49b1a1});gracefulExit(_0x5f4e96);};jobCmd[a2_0x47b95f(0x2c9)]('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3e1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x2ab))[a2_0x47b95f(0x3b6)](jobListAction),program['command'](a2_0x47b95f(0x269),{'hidden':!![]})[a2_0x47b95f(0x3db)](a2_0x47b95f(0x30d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1bd),a2_0x47b95f(0x2ab))[a2_0x47b95f(0x3b6)](jobListAction),jobCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d3))['description'](a2_0x47b95f(0x1d1))[a2_0x47b95f(0x3b6)](async(_0x106b93,_0x3f73f6)=>{const _0x577c29=a2_0x47b95f,_0x207c56=new JobShowCommand(),_0x36b562=program[_0x577c29(0x439)](),_0x1c675d=await createTDXInstance(_0x36b562),_0x336a83=await _0x207c56[_0x577c29(0x41e)]({'options':{..._0x36b562,..._0x3f73f6},'args':[_0x106b93],'tdx':_0x1c675d});gracefulExit(_0x336a83);}),jobCmd['command'](a2_0x47b95f(0x3f0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1f2))[a2_0x47b95f(0x3b6)](async(_0x566980,_0x23879c)=>{const _0x409c4c=a2_0x47b95f,_0x3bf32d=new JobKillCommand(),_0x51744e=program[_0x409c4c(0x439)](),_0x43a1f7=await createTDXInstance(_0x51744e),_0x3ad2f6=await _0x3bf32d[_0x409c4c(0x41e)]({'options':{..._0x51744e,..._0x23879c},'args':[_0x566980],'tdx':_0x43a1f7});gracefulExit(_0x3ad2f6);}),jobCmd['command'](a2_0x47b95f(0x3ae))['description']('Submit\x20a\x20job')[a2_0x47b95f(0x25c)]('--job-type\x20<type>',a2_0x47b95f(0x1e8),a2_0x47b95f(0x1e9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1af),a2_0x47b95f(0x3fd))['option']('--database\x20<name>',a2_0x47b95f(0x407),a2_0x47b95f(0x225))[a2_0x47b95f(0x3b6)](async(_0x57e74c,_0xe0e84a)=>{const _0x43ee09=a2_0x47b95f,_0x1f4673=new JobSubmitCommand(),_0x10584c=program['opts'](),_0x3b651c=await createTDXInstance(_0x10584c),_0x19fe6d=await _0x1f4673[_0x43ee09(0x41e)]({'options':{..._0x10584c,..._0xe0e84a},'args':_0x57e74c?[_0x57e74c]:[],'tdx':_0x3b651c});gracefulExit(_0x19fe6d);}),jobCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x260))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f5))[a2_0x47b95f(0x3b6)](async(_0x20c836,_0x477d42)=>{const _0x1fa0d3=a2_0x47b95f,_0xbff727=new JobResultCommand(),_0x328d1d=program[_0x1fa0d3(0x439)](),_0x3c28da=await createTDXInstance(_0x328d1d),_0x4396ef=await _0xbff727[_0x1fa0d3(0x41e)]({'options':{..._0x328d1d,..._0x477d42},'args':[_0x20c836],'tdx':_0x3c28da});gracefulExit(_0x4396ef);});const scheduleCmd=jobCmd['command'](a2_0x47b95f(0x296))[a2_0x47b95f(0x3db)]('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')['action'](async(_0x4771a3,_0x1342d1)=>{const _0x3f1ed7=a2_0x47b95f,_0x4f9e50=new ScheduleListCommand(),_0x4b68e2=program[_0x3f1ed7(0x439)](),_0x1b0991=await createTDXInstance(_0x4b68e2),_0x2f5c9c=await _0x4f9e50[_0x3f1ed7(0x41e)]({'options':{..._0x4b68e2,..._0x1342d1},'args':_0x4771a3?[_0x4771a3]:[],'tdx':_0x1b0991});gracefulExit(_0x2f5c9c);}),scheduleCmd[a2_0x47b95f(0x2c9)]('show\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x38f))[a2_0x47b95f(0x3b6)](async(_0x529441,_0x31797c)=>{const _0x326992=a2_0x47b95f,_0x5129e7=new ScheduleShowCommand(),_0x511d43=program[_0x326992(0x439)](),_0x6a8fcd=await createTDXInstance(_0x511d43),_0x4d9859=await _0x5129e7[_0x326992(0x41e)]({'options':{..._0x511d43,..._0x31797c},'args':[_0x529441],'tdx':_0x6a8fcd});gracefulExit(_0x4d9859);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3a0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2fd))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x40b),a2_0x47b95f(0x332))['requiredOption'](a2_0x47b95f(0x1af),'Read\x20query\x20from\x20file')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b4),'Query\x20type:\x20trino\x20or\x20hive',a2_0x47b95f(0x1e9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x24e),a2_0x47b95f(0x3ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x23d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x39b),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x47b95f(0x25c)]('--priority\x20<-2~2>',a2_0x47b95f(0x2ae))['option']('--retry-limit\x20<0~32>','Retry\x20limit\x20(0\x20to\x2032)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x25a),a2_0x47b95f(0x2f3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x302),'Result\x20output\x20destination\x20URL')[a2_0x47b95f(0x3b6)](async(_0x5a6be8,_0x2095d8)=>{const _0x5e77ac=a2_0x47b95f,_0x47c586=new ScheduleCreateCommand(),_0x1619b5=program[_0x5e77ac(0x439)](),_0x2bdce9=await createTDXInstance(_0x1619b5),_0x3b8aea=await _0x47c586[_0x5e77ac(0x41e)]({'options':{..._0x1619b5,..._0x2095d8},'args':[_0x5a6be8],'tdx':_0x2bdce9});gracefulExit(_0x3b8aea);}),scheduleCmd['command'](a2_0x47b95f(0x30e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x268))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x40b),'Database\x20name')['option']('-f,\x20--file\x20<path>',a2_0x47b95f(0x3fd))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2b4),a2_0x47b95f(0x27d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x24e),a2_0x47b95f(0x3ba))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x307),a2_0x47b95f(0x398))['option'](a2_0x47b95f(0x39b),a2_0x47b95f(0x33a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3b5),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x317),'Retry\x20limit\x20(0\x20to\x2032)')['option']('--engine-version\x20<version>',a2_0x47b95f(0x2f3))[a2_0x47b95f(0x25c)]('--result\x20<url>',a2_0x47b95f(0x2d7))[a2_0x47b95f(0x3b6)](async(_0x2b3d43,_0x59a925)=>{const _0x1eab21=a2_0x47b95f,_0x39bf65=new ScheduleUpdateCommand(),_0x46957c=program[_0x1eab21(0x439)](),_0x30112c=await createTDXInstance(_0x46957c),_0x133d91=await _0x39bf65[_0x1eab21(0x41e)]({'options':{..._0x46957c,..._0x59a925},'args':[_0x2b3d43],'tdx':_0x30112c});gracefulExit(_0x133d91);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x362))[a2_0x47b95f(0x3db)]('Delete\x20a\x20scheduled\x20query')[a2_0x47b95f(0x3b6)](async(_0x50d9d2,_0x1a4c33)=>{const _0x5cfef4=a2_0x47b95f,_0x3bea47=new ScheduleDeleteCommand(),_0x3818bc=program[_0x5cfef4(0x439)](),_0x562feb=await createTDXInstance(_0x3818bc),_0x13ce57=await _0x3bea47[_0x5cfef4(0x41e)]({'options':{..._0x3818bc,..._0x1a4c33},'args':[_0x50d9d2],'tdx':_0x562feb});gracefulExit(_0x13ce57);}),scheduleCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x263))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x416))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e0),a2_0x47b95f(0x35f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x354),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x47b95f(0x3b6)](async(_0x19bac9,_0xf23fb8)=>{const _0x411647=a2_0x47b95f,_0x1ae94a=new ScheduleRunCommand(),_0x4fb8e6=program[_0x411647(0x439)](),_0x5adb7b=await createTDXInstance(_0x4fb8e6),_0x13a5a5=await _0x1ae94a['run']({'options':{..._0x4fb8e6,..._0xf23fb8},'args':[_0x19bac9],'tdx':_0x5adb7b});gracefulExit(_0x13a5a5);}),scheduleCmd['command'](a2_0x47b95f(0x412))['description'](a2_0x47b95f(0x314))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41a),a2_0x47b95f(0x3d8))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x328),'Ending\x20offset\x20(default:\x2020)')[a2_0x47b95f(0x3b6)](async(_0x5c9482,_0x2f8b07)=>{const _0x21e621=a2_0x47b95f,_0x409499=new ScheduleHistoryCommand(),_0x38ae57=program[_0x21e621(0x439)](),_0x47cbf0=await createTDXInstance(_0x38ae57),_0x5076ba=await _0x409499[_0x21e621(0x41e)]({'options':{..._0x38ae57,..._0x2f8b07},'args':[_0x5c9482],'tdx':_0x47cbf0});gracefulExit(_0x5076ba);});const llmCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x399))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x338));llmCmd['command']('use\x20<project-name>')['description'](a2_0x47b95f(0x2af))[a2_0x47b95f(0x3b6)](async(_0x2067bf,_0x3284d7)=>{const _0x21df0b=a2_0x47b95f,_0x4220ca=new LLMUseCommand(),_0xbdf1e=program[_0x21df0b(0x439)](),_0x119634=await createTDXInstance(_0xbdf1e),_0x2b1000=await _0x4220ca[_0x21df0b(0x41e)]({'options':{..._0xbdf1e,..._0x3284d7},'args':[_0x2067bf],'tdx':_0x119634});gracefulExit(_0x2b1000);}),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x34e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x410))[a2_0x47b95f(0x3b6)](async _0x217ec0=>{const _0x5f535e=new LLMModelsCommand(),_0x47a4b5=program['opts'](),_0x3ebeb5=await createTDXInstance(_0x47a4b5),_0x4e6996=await _0x5f535e['run']({'options':{..._0x47a4b5,..._0x217ec0},'args':[],'tdx':_0x3ebeb5});gracefulExit(_0x4e6996);});const projectCmd=llmCmd[a2_0x47b95f(0x2c9)]('project')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x333)),llmProjectListAction=async(_0x57287c,_0x40f727)=>{const _0x4669da=a2_0x47b95f,_0x46ed56=new LLMProjectsCommand(),_0x21824f=program[_0x4669da(0x439)](),_0x3c422f=await createTDXInstance(_0x21824f),_0x792e95=await _0x46ed56[_0x4669da(0x41e)]({'options':{..._0x21824f,..._0x40f727},'args':_0x57287c?[_0x57287c]:[],'tdx':_0x3c422f});gracefulExit(_0x792e95);};projectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x207))[a2_0x47b95f(0x3b6)](llmProjectListAction),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x265))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x30c))[a2_0x47b95f(0x3b6)](llmProjectListAction),projectCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3a0))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x210))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),a2_0x47b95f(0x264))[a2_0x47b95f(0x3b6)](async(_0x177f05,_0x53da29)=>{const _0xb6b221=a2_0x47b95f,_0x31fed6=new LLMProjectCreateCommand(),_0x28b17e=program[_0xb6b221(0x439)](),_0x435c79=await createTDXInstance(_0x28b17e),_0x451763=await _0x31fed6['run']({'options':{..._0x28b17e,..._0x53da29},'args':[_0x177f05],'tdx':_0x435c79});gracefulExit(_0x451763);}),projectCmd['command']('delete\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x229))[a2_0x47b95f(0x3b6)](async(_0x4c4b84,_0x55e4a6)=>{const _0x503c16=a2_0x47b95f,_0x34606c=new LLMProjectDeleteCommand(),_0x12c77f=program[_0x503c16(0x439)](),_0x11f62c=await createTDXInstance(_0x12c77f),_0x451b7b=await _0x34606c['run']({'options':{..._0x12c77f,..._0x55e4a6},'args':[_0x4c4b84],'tdx':_0x11f62c});gracefulExit(_0x451b7b);}),projectCmd[a2_0x47b95f(0x2c9)]('backup\x20<name>')['description']('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x298),a2_0x47b95f(0x1c6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x47b95f(0x3b6)](async(_0x4feb87,_0x2ca9cc)=>{const _0x580358=new LLMProjectBackupCommand(),_0x5cbdfb=program['opts'](),_0x280385=await createTDXInstance(_0x5cbdfb),_0x28f192=await _0x580358['run']({'options':{..._0x5cbdfb,..._0x2ca9cc},'args':[_0x4feb87],'tdx':_0x280385});gracefulExit(_0x28f192);}),projectCmd[a2_0x47b95f(0x2c9)]('restore\x20<folder>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1b7))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1cd),a2_0x47b95f(0x242))[a2_0x47b95f(0x25c)]('--dry-run',a2_0x47b95f(0x1fa))['action'](async(_0x16089d,_0x51f414)=>{const _0x3aa3cf=a2_0x47b95f,_0x41e64e=new LLMProjectRestoreCommand(),_0x19e7c7=program['opts'](),_0x16cca2=await createTDXInstance(_0x19e7c7),_0x16e6a8=await _0x41e64e[_0x3aa3cf(0x41e)]({'options':{..._0x19e7c7,..._0x51f414},'args':[_0x16089d],'tdx':_0x16cca2});gracefulExit(_0x16e6a8);});const llmAgentListAction=async(_0xfca9a3,_0x3931b5)=>{const _0x5a9375=a2_0x47b95f,_0x294608=new LLMAgentsCommand(),_0x5dbe00=program[_0x5a9375(0x439)](),_0x4a2d3b=await createTDXInstance(_0x5dbe00),_0x4dfe5f=await _0x294608[_0x5a9375(0x41e)]({'options':{..._0x5dbe00,..._0x3931b5},'args':_0xfca9a3?[_0xfca9a3]:[],'tdx':_0x4a2d3b});gracefulExit(_0x4dfe5f);};llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c7))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x31f))[a2_0x47b95f(0x3b6)](llmAgentListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3c7))['description'](a2_0x47b95f(0x31f))[a2_0x47b95f(0x3b6)](llmAgentListAction),llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1ff))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x243))[a2_0x47b95f(0x25c)]('--last',a2_0x47b95f(0x1b0))['action'](async(_0x239354,_0x3ccd75)=>{const _0x72058f=a2_0x47b95f,_0x13e2c8=new LLMHistoryCommand(),_0x3a4e26=program[_0x72058f(0x439)](),_0x1dab35=await createTDXInstance(_0x3a4e26),_0x16ba1e=await _0x13e2c8[_0x72058f(0x41e)]({'options':{..._0x3a4e26,..._0x3ccd75},'args':_0x239354?[_0x239354]:[],'tdx':_0x1dab35});gracefulExit(_0x16ba1e);});isExperimentalAvailable()&&llmCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3e5))[a2_0x47b95f(0x3db)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x47b95f(0x3b6)](async(_0x5bfa38,_0x4deba8)=>{const _0x1d0233=a2_0x47b95f,_0x43dd7=new LLMLogCommand(),_0x37073d=program[_0x1d0233(0x439)](),_0x134507=await createTDXInstance(_0x37073d),_0x5bd939=await _0x43dd7[_0x1d0233(0x41e)]({'options':{..._0x37073d,..._0x4deba8},'args':[_0x5bfa38],'tdx':_0x134507});gracefulExit(_0x5bd939);});program['command'](a2_0x47b95f(0x377))[a2_0x47b95f(0x1cf)](a2_0x47b95f(0x251))['description'](a2_0x47b95f(0x1b3))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3ed),'Continue\x20most\x20recent\x20conversation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43a),a2_0x47b95f(0x430))[a2_0x47b95f(0x25c)]('--no-proxy',a2_0x47b95f(0x1d3))[a2_0x47b95f(0x2f9)]()[a2_0x47b95f(0x3e4)](!![])[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x47b95f(0x3b6)](async(_0xba5dee,_0x37e6ef)=>{const _0x3b1b27=a2_0x47b95f,_0x52575e=program[_0x3b1b27(0x439)](),_0x20daa8=Array[_0x3b1b27(0x24b)](_0xba5dee)?_0xba5dee:[];if(_0x20daa8[0x0]===_0x3b1b27(0x31d)){const _0x2294ca=new ClaudeStatuslineCommand(),_0xc42fe2=await _0x2294ca[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8[_0x3b1b27(0x35a)](0x1),'tdx':null});gracefulExit(_0xc42fe2);}if(_0x20daa8[0x0]===_0x3b1b27(0x1cf)){const _0x40b862=new ClaudeUsageCommand(),_0x9ae7c7=await _0x40b862[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8[_0x3b1b27(0x35a)](0x1),'tdx':null});gracefulExit(_0x9ae7c7);}const _0x6ab805=new ClaudeCommand(),_0x1283c0=await createTDXInstance(_0x52575e),_0x46c10e=await _0x6ab805[_0x3b1b27(0x41e)]({'options':{..._0x52575e,..._0x37e6ef},'args':_0x20daa8,'tdx':_0x1283c0});gracefulExit(_0x46c10e);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32f))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2b9))[a2_0x47b95f(0x25c)]('--clear',a2_0x47b95f(0x368))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2bb),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x47b95f(0x3b6)](async(_0x46df05,_0x16c1df,_0x40dec7)=>{const _0x32bf75=a2_0x47b95f,_0x42edb7=new UseCommand(),_0x3e27e2=program[_0x32bf75(0x439)](),_0x6d90f8=[];if(_0x46df05)_0x6d90f8['push'](_0x46df05);if(_0x16c1df)_0x6d90f8[_0x32bf75(0x28e)](_0x16c1df);const _0x4f89cf=await _0x42edb7[_0x32bf75(0x41e)]({'options':{..._0x3e27e2,..._0x40dec7},'args':_0x6d90f8,'tdx':null});gracefulExit(_0x4f89cf);}),program['command']('status')['description'](a2_0x47b95f(0x2a3))[a2_0x47b95f(0x3b6)](async _0x57fe40=>{const _0x14b795=a2_0x47b95f,_0x508579=new StatusCommand(),_0x460fc1=program[_0x14b795(0x439)](),_0x274fac=await createTDXInstance(_0x460fc1),_0x168e54=await _0x508579[_0x14b795(0x41e)]({'options':{..._0x460fc1,..._0x57fe40},'args':[],'tdx':_0x274fac});gracefulExit(_0x168e54);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3ab))['description'](a2_0x47b95f(0x211))['option'](a2_0x47b95f(0x2bb),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x47b95f(0x3b6)](async(_0x37d575,_0x1bb90a)=>{const _0x37d79b=new UnsetCommand(),_0x5d06ca=program['opts'](),_0x1bc1ea=await _0x37d79b['run']({'options':{..._0x5d06ca,..._0x1bb90a},'args':[_0x37d575],'tdx':null});gracefulExit(_0x1bc1ea);}),program['command']('chats')['description'](a2_0x47b95f(0x308))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2f6),a2_0x47b95f(0x2bf))[a2_0x47b95f(0x3b6)](async _0x1d0772=>{const _0x1004fe=a2_0x47b95f,_0x46a9ab=new ChatsCommand(),_0xa92a2e=program[_0x1004fe(0x439)](),_0x2308bf=await createTDXInstance(_0xa92a2e),_0xdde2e1=await _0x46a9ab[_0x1004fe(0x41e)]({'options':{..._0xa92a2e,..._0x1d0772},'args':[],'tdx':_0x2308bf});gracefulExit(_0xdde2e1);});const authCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x21c))[a2_0x47b95f(0x3db)]('Authentication\x20management');async function runAuthStatusCommand(_0x11ec48){const _0x38723e=a2_0x47b95f,_0x4d4b27=new AuthStatusCommand(),_0x173470=program[_0x38723e(0x439)](),_0xc3b34d=await createTDXInstance(_0x173470),_0xc51c54=await _0x4d4b27['run']({'options':{..._0x173470,..._0x11ec48},'args':[],'tdx':_0xc3b34d});gracefulExit(_0xc51c54);}authCmd[a2_0x47b95f(0x3b6)](runAuthStatusCommand),authCmd['command']('status')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x213))['action'](runAuthStatusCommand),authCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x386))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1bf))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x1e2))[a2_0x47b95f(0x3b6)](async _0x7635ce=>{const _0x3f5c98=a2_0x47b95f,_0x4b96d5=new AuthSetupCommand(),_0x20a7b6=program[_0x3f5c98(0x439)](),_0x3d1c2e=await createTDXInstance(_0x20a7b6),_0x78589b=await _0x4b96d5[_0x3f5c98(0x41e)]({'options':{..._0x20a7b6,..._0x7635ce},'args':[],'tdx':_0x3d1c2e});gracefulExit(_0x78589b);}),authCmd[a2_0x47b95f(0x2c9)]('clear')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x274))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x363))[a2_0x47b95f(0x3b6)](async _0x1e5d6f=>{const _0x2b5a4b=a2_0x47b95f,_0x2e3e9e=new AuthClearCommand(),_0x522e2=program[_0x2b5a4b(0x439)](),_0x4cb767=await _0x2e3e9e['run']({'options':{..._0x522e2,..._0x1e5d6f},'args':[],'tdx':null});gracefulExit(_0x4cb767);});const userCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x231))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x21e)),userListAction=async _0x406b1f=>{const _0x36d829=a2_0x47b95f,_0x519a01=new UserListCommand(),_0x416c3a=program[_0x36d829(0x439)](),_0x3bb056=await createTDXInstance(_0x416c3a),_0x334c5d=await _0x519a01['run']({'options':{..._0x416c3a,..._0x406b1f},'args':[],'tdx':_0x3bb056});gracefulExit(_0x334c5d);};userCmd['action'](async _0x252420=>{const _0x2c9582=a2_0x47b95f,_0x52880f=new UserCommand(),_0x311655=program[_0x2c9582(0x439)](),_0x37568b=await createTDXInstance(_0x311655),_0x115e6e=await _0x52880f[_0x2c9582(0x41e)]({'options':{..._0x311655,..._0x252420},'args':[],'tdx':_0x37568b});gracefulExit(_0x115e6e);}),userCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x310))[a2_0x47b95f(0x3db)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x47b95f(0x3b6)](userListAction),program['command']('users')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x428))[a2_0x47b95f(0x3b6)](userListAction),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x353))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3eb))[a2_0x47b95f(0x3b6)](async _0x2ce42c=>{const _0x3f23be=a2_0x47b95f,_0x443680=new ProfilesCommand(),_0x1aba16=program[_0x3f23be(0x439)](),_0x3244f2=await _0x443680['run']({'options':{..._0x1aba16,..._0x2ce42c},'args':[],'tdx':null});gracefulExit(_0x3244f2);});const profileCmd=program['command'](a2_0x47b95f(0x330))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x26a));profileCmd[a2_0x47b95f(0x3b6)](()=>{const _0x5b7a03=a2_0x47b95f;profileCmd[_0x5b7a03(0x349)]();});const profileListAction=async _0x10ec0a=>{const _0x4ca8ba=a2_0x47b95f,_0x345e31=new ProfilesCommand(),_0x30c448=program[_0x4ca8ba(0x439)](),_0x3ac3e6=await _0x345e31[_0x4ca8ba(0x41e)]({'options':{..._0x30c448,..._0x10ec0a},'args':[],'tdx':null});gracefulExit(_0x3ac3e6);};profileCmd[a2_0x47b95f(0x2c9)]('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3eb))[a2_0x47b95f(0x3b6)](profileListAction),profileCmd[a2_0x47b95f(0x2c9)]('create\x20[name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ba))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x3ad))[a2_0x47b95f(0x3b6)](async(_0xa2ff87,_0x27103a)=>{const _0x18a135=a2_0x47b95f,_0x4d1405=new ProfileCreateCommand(),_0x4d2707=program[_0x18a135(0x439)](),_0x19eec8=await _0x4d1405['run']({'options':{..._0x4d2707,..._0x27103a},'args':_0xa2ff87?[_0xa2ff87]:[],'tdx':null});gracefulExit(_0x19eec8);}),profileCmd['command'](a2_0x47b95f(0x262))['description'](a2_0x47b95f(0x442))['addHelpText'](a2_0x47b95f(0x438),a2_0x47b95f(0x391))[a2_0x47b95f(0x3b6)](async(_0xde76cc,_0x575aa3)=>{const _0x372193=a2_0x47b95f,_0x31a8a1=new ProfileRemoveCommand(),_0x17fe92=program[_0x372193(0x439)](),_0x2370d5=await _0x31a8a1[_0x372193(0x41e)]({'options':{..._0x17fe92,..._0x575aa3},'args':[_0xde76cc],'tdx':null});gracefulExit(_0x2370d5);}),profileCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x21b))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x41d))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),'\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')['action'](async(_0x45c2f1,_0x5e5171)=>{const _0x317d30=a2_0x47b95f,_0x1d51dd=new ProfileSetCommand(),_0x2557e3=program[_0x317d30(0x439)](),_0x250348=await _0x1d51dd[_0x317d30(0x41e)]({'options':{..._0x2557e3,..._0x5e5171},'args':[_0x45c2f1],'tdx':null});gracefulExit(_0x250348);}),profileCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2a5))[a2_0x47b95f(0x3db)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')['option'](a2_0x47b95f(0x2bb),a2_0x47b95f(0x2a1))[a2_0x47b95f(0x358)](a2_0x47b95f(0x438),a2_0x47b95f(0x1bb))[a2_0x47b95f(0x3b6)](async(_0x3f010a,_0x356a39)=>{const _0x3400ff=a2_0x47b95f,_0x37a032=new ProfileUseCommand(),_0x33e118=program['opts'](),_0x28c04d=await _0x37a032[_0x3400ff(0x41e)]({'options':{..._0x33e118,..._0x356a39},'args':[_0x3f010a],'tdx':null});gracefulExit(_0x28c04d);});const engageCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x396))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x33b)),createEngageAction=_0x28585d=>{return async(_0x4a55af,_0x56a80c)=>{const _0x5d362b=a2_0x26e5,_0x40076d=new _0x28585d(),_0x4d42e8=program['opts'](),_0x1fb421=await createTDXInstance(_0x4d42e8),_0x16904c=await _0x40076d[_0x5d362b(0x41e)]({'options':{..._0x4d42e8,..._0x56a80c},'args':[_0x4a55af],'tdx':_0x1fb421});gracefulExit(_0x16904c);};},createEngageNoArgAction=_0x4fd753=>{return async _0x1925de=>{const _0x43e553=a2_0x26e5,_0x269c79=new _0x4fd753(),_0x233e8a=program[_0x43e553(0x439)](),_0x3226a7=await createTDXInstance(_0x233e8a),_0x530b92=await _0x269c79[_0x43e553(0x41e)]({'options':{..._0x233e8a,..._0x1925de},'args':[],'tdx':_0x3226a7});gracefulExit(_0x530b92);};},campaignCmd=engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x32e))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1ae)),campaignListAction=async(_0x59f46a,_0x285748)=>{const _0x41acb2=a2_0x47b95f,_0xb03d44=new EngageCampaignsCommand(),_0x235bbe=program[_0x41acb2(0x439)](),_0x1fdb9b=await createTDXInstance(_0x235bbe),_0x2f75b5=await _0xb03d44[_0x41acb2(0x41e)]({'options':{..._0x235bbe,..._0x285748},'args':_0x59f46a?[_0x59f46a]:[],'tdx':_0x1fdb9b});gracefulExit(_0x2f75b5);};campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x47b95f(0x25c)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x47b95f(0x25c)]('--status\x20<status>',a2_0x47b95f(0x418))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](campaignListAction),engageCmd['command']('campaigns\x20[pattern]')['description'](a2_0x47b95f(0x1ee))['option'](a2_0x47b95f(0x2b4),a2_0x47b95f(0x434))['option']('--status\x20<status>',a2_0x47b95f(0x418))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')['action'](campaignListAction),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x29c))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x312))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2dc),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x47b95f(0x315))['description'](a2_0x47b95f(0x2b6))[a2_0x47b95f(0x3e6)]('--name\x20<name>',a2_0x47b95f(0x378))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x2b4),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x301))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x20a),a2_0x47b95f(0x292))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x281),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x47b95f(0x25c)]('--email-sender-id\x20<id>',a2_0x47b95f(0x1d6))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a8),a2_0x47b95f(0x1de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41c),a2_0x47b95f(0x323))[a2_0x47b95f(0x25c)]('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x47b95f(0x3b6)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x42f))[a2_0x47b95f(0x3db)]('Update\x20a\x20campaign')[a2_0x47b95f(0x25c)]('--workspace\x20<name>',a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)]('--name\x20<name>',a2_0x47b95f(0x2c4))['option'](a2_0x47b95f(0x20a),a2_0x47b95f(0x292))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x281),a2_0x47b95f(0x245))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1d8),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a8),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x41c),a2_0x47b95f(0x323))['option'](a2_0x47b95f(0x307),a2_0x47b95f(0x41b))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d1))['description'](a2_0x47b95f(0x1f0))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e1),a2_0x47b95f(0x2d5))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x271))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x41f))[a2_0x47b95f(0x25c)]('--workspace\x20<name>',a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x421))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3c9))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x47b95f(0x2c9)]('resume\x20<name-or-id>')['description'](a2_0x47b95f(0x40d))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2c3))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f8))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x3b6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x47b95f(0x1e0))[a2_0x47b95f(0x3db)]('Email\x20template\x20management'),templateListAction=async(_0x35ab8f,_0x3fce6a)=>{const _0x5b14f5=a2_0x47b95f,_0x4d1440=new EngageTemplatesCommand(),_0x3b2cd4=program[_0x5b14f5(0x439)](),_0x1fe125=await createTDXInstance(_0x3b2cd4),_0x4907df=await _0x4d1440[_0x5b14f5(0x41e)]({'options':{..._0x3b2cd4,..._0x3fce6a},'args':_0x35ab8f?[_0x35ab8f]:[],'tdx':_0x1fe125});gracefulExit(_0x4907df);};templateCmd['command']('list\x20[pattern]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2ff))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')['action'](templateListAction),engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x43d))['description'](a2_0x47b95f(0x28d))['option'](a2_0x47b95f(0x423),'Workspace\x20name')['action'](templateListAction),templateCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x29c))['description'](a2_0x47b95f(0x341))['option'](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2dc),a2_0x47b95f(0x3bf))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x47b95f(0x2c9)]('create')['description']('Create\x20an\x20email\x20template')['requiredOption'](a2_0x47b95f(0x23b),'Template\x20name')[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x23c),a2_0x47b95f(0x2de))[a2_0x47b95f(0x3e6)]('--html\x20<html>',a2_0x47b95f(0x2ca))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x301))['option']('--plaintext\x20<text>',a2_0x47b95f(0x3c4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1dd),a2_0x47b95f(0x1df),_0x6a0e9a=>{const _0x392c8d=a2_0x47b95f;if(!['beefree',_0x392c8d(0x400)][_0x392c8d(0x236)](_0x6a0e9a))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x392c8d(0x1ab)+_0x6a0e9a+_0x392c8d(0x2bd));return _0x6a0e9a;})[a2_0x47b95f(0x3b6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x47b95f(0x2c9)]('update\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x28a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),'Workspace\x20name')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23b),a2_0x47b95f(0x297))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23c),a2_0x47b95f(0x2de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x35e),a2_0x47b95f(0x2ca))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1ed),a2_0x47b95f(0x3c4))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2d1))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x40f))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x423),a2_0x47b95f(0x426))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2e1),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x3b6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x47b95f(0x3db)]('Workspace\x20management'),workspaceListAction=async(_0x327eaa,_0xd6bec6)=>{const _0x3af0c2=a2_0x47b95f,_0x15ff0b=new EngageWorkspacesCommand(),_0x542190=program['opts'](),_0x45cb9b=await createTDXInstance(_0x542190),_0x5d0f22=await _0x15ff0b[_0x3af0c2(0x41e)]({'options':{..._0x542190,..._0xd6bec6},'args':_0x327eaa?[_0x327eaa]:[],'tdx':_0x45cb9b});gracefulExit(_0x5d0f22);};workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1bc))[a2_0x47b95f(0x3b6)](workspaceListAction),engageCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x24a))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1fd))['action'](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3fe))[a2_0x47b95f(0x25c)]('--full',a2_0x47b95f(0x3bf))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x315))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x322))[a2_0x47b95f(0x3e6)](a2_0x47b95f(0x23b),a2_0x47b95f(0x426))['option'](a2_0x47b95f(0x20a),a2_0x47b95f(0x2ec))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x47b95f(0x42f))['description'](a2_0x47b95f(0x1e4))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x23b),a2_0x47b95f(0x3ff))[a2_0x47b95f(0x25c)]('--description\x20<desc>',a2_0x47b95f(0x2ec))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x47b95f(0x2c9)]('delete\x20<name-or-id>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3da))['option'](a2_0x47b95f(0x2e1),'Skip\x20confirmation\x20prompt')[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2a5))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x36a))[a2_0x47b95f(0x3b6)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x47b95f(0x2c9)]('connection')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x304)),connectionListAction=async _0x123852=>{const _0x1e7839=a2_0x47b95f,_0x4d6088=new ConnectionListCommand(),_0x17917b=program[_0x1e7839(0x439)](),_0x469860=await createTDXInstance(_0x17917b),_0x12f03d=await _0x4d6088[_0x1e7839(0x41e)]({'options':{..._0x17917b,..._0x123852},'args':[],'tdx':_0x469860});gracefulExit(_0x12f03d);};connectionCmd['command']('list')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x27f))[a2_0x47b95f(0x3b6)](connectionListAction),program[a2_0x47b95f(0x2c9)]('connections',{'hidden':!![]})[a2_0x47b95f(0x3db)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x47b95f(0x3b6)](connectionListAction),connectionCmd['command']('show\x20<name>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x204))[a2_0x47b95f(0x3b6)](async(_0x2677a5,_0x464ba5)=>{const _0x211a07=a2_0x47b95f,_0x250dec=new ConnectionShowCommand(),_0x2cb5b6=program[_0x211a07(0x439)](),_0x5b8dd1=await createTDXInstance(_0x2cb5b6),_0x45e18b=await _0x250dec[_0x211a07(0x41e)]({'options':{..._0x2cb5b6,..._0x464ba5},'args':[_0x2677a5],'tdx':_0x5b8dd1});gracefulExit(_0x45e18b);}),connectionCmd['command'](a2_0x47b95f(0x221))[a2_0x47b95f(0x3db)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x47b95f(0x3b6)](async(_0x23ba5e,_0x1f1b7f)=>{const _0x21d03d=a2_0x47b95f,_0x1c01cf=new ConnectionSchemaCommand(),_0x563ba8=program['opts'](),_0x18345a=await createTDXInstance(_0x563ba8),_0x1b6673=await _0x1c01cf[_0x21d03d(0x41e)]({'options':{..._0x563ba8,..._0x1f1b7f},'args':[_0x23ba5e],'tdx':_0x18345a});gracefulExit(_0x1b6673);}),connectionCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x35d))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3fb))[a2_0x47b95f(0x3b6)](async _0x1f50ef=>{const _0x58518f=new ConnectionTypesCommand(),_0x46ca90=program['opts'](),_0x52ec32=await createTDXInstance(_0x46ca90),_0x283e97=await _0x58518f['run']({'options':{..._0x46ca90,..._0x1f50ef},'args':[],'tdx':_0x52ec32});gracefulExit(_0x283e97);}),connectionCmd[a2_0x47b95f(0x2c9)]('settings\x20<type>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x33c))['action'](async(_0x34cae2,_0x1e64cb)=>{const _0x4bafcc=a2_0x47b95f,_0x3b7a12=new ConnectionSettingsCommand(),_0x251f31=program[_0x4bafcc(0x439)](),_0x3e9663=await createTDXInstance(_0x251f31),_0x19549c=await _0x3b7a12['run']({'options':{..._0x251f31,..._0x1e64cb},'args':[_0x34cae2],'tdx':_0x3e9663});gracefulExit(_0x19549c);});const journeyCmd=program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3d2))[a2_0x47b95f(0x3db)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x412b9c,_0x1160fe)=>{const _0x3bc2e6=a2_0x47b95f,_0x197ea6=new JourneyListCommand(),_0x42f719=program[_0x3bc2e6(0x439)](),_0x5b2ef6=await createTDXInstance(_0x42f719),_0x160d94=await _0x197ea6['run']({'options':{..._0x42f719,..._0x1160fe},'args':_0x412b9c?[_0x412b9c]:[],'tdx':_0x5b2ef6});gracefulExit(_0x160d94);};journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2f2))[a2_0x47b95f(0x3b6)](journeyListAction),journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3e0))[a2_0x47b95f(0x3db)]('Show\x20journey\x20details')['option'](a2_0x47b95f(0x321),'Open\x20journey\x20in\x20web\x20browser')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2db),'Include\x20execution\x20statistics')[a2_0x47b95f(0x3b6)](async(_0x1295cb,_0x26e38b)=>{const _0x2a1610=a2_0x47b95f,_0x3e91d1=new JourneyViewCommand(),_0x41b505=program[_0x2a1610(0x439)](),_0x592bad=await createTDXInstance(_0x41b505),_0xe0cec8=await _0x3e91d1[_0x2a1610(0x41e)]({'options':{..._0x41b505,..._0x26e38b},'args':[_0x1295cb],'tdx':_0x592bad});gracefulExit(_0xe0cec8);}),journeyCmd['command']('stats\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x1ad))['option'](a2_0x47b95f(0x42b),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x47b95f(0x3b6)](async(_0x1e319f,_0x1e7388)=>{const _0x33a0fc=a2_0x47b95f,_0x441062=new JourneyStatsCommand(),_0x49aab5=program[_0x33a0fc(0x439)](),_0x51c3a5=await createTDXInstance(_0x49aab5),_0x20de3d=await _0x441062[_0x33a0fc(0x41e)]({'options':{..._0x49aab5,..._0x1e7388},'args':[_0x1e319f],'tdx':_0x51c3a5});gracefulExit(_0x20de3d);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x21d))[a2_0x47b95f(0x3b6)](async(_0x39fceb,_0x415c7d)=>{const _0x5c0a29=a2_0x47b95f,_0x151209=new JourneyPauseCommand(),_0x4f78ef=program[_0x5c0a29(0x439)](),_0x3c36eb=await createTDXInstance(_0x4f78ef),_0x2989b9=await _0x151209['run']({'options':{..._0x4f78ef,..._0x415c7d},'args':[_0x39fceb],'tdx':_0x3c36eb});gracefulExit(_0x2989b9);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x346))[a2_0x47b95f(0x3b6)](async(_0x1cff8a,_0x4d3d02)=>{const _0x2599cc=new JourneyResumeCommand(),_0x423e0f=program['opts'](),_0x142081=await createTDXInstance(_0x423e0f),_0x3f1e38=await _0x2599cc['run']({'options':{..._0x423e0f,..._0x4d3d02},'args':[_0x1cff8a],'tdx':_0x142081});gracefulExit(_0x3f1e38);}),journeyCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x2f5))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3ce))['option'](a2_0x47b95f(0x414),a2_0x47b95f(0x2d5))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x1c0))[a2_0x47b95f(0x3b6)](async(_0x2e7365,_0x2e8737)=>{const _0x24e516=a2_0x47b95f,_0x1462ca=new JourneyPullCommand(),_0x63b15=program['opts'](),_0x10b088=await createTDXInstance(_0x63b15),_0x410363=await _0x1462ca[_0x24e516(0x41e)]({'options':{..._0x63b15,..._0x2e8737},'args':_0x2e7365?[_0x2e7365]:[],'tdx':_0x10b088});gracefulExit(_0x410363);}),journeyCmd['command'](a2_0x47b95f(0x3c6))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3d9))[a2_0x47b95f(0x3b6)](async(_0x452a3d,_0x23b6df)=>{const _0x84e890=a2_0x47b95f,_0x26b1dd=new JourneyPushCommand(),_0x45f198=program[_0x84e890(0x439)](),_0xa8503a=await createTDXInstance(_0x45f198),_0x53b82a=await _0x26b1dd[_0x84e890(0x41e)]({'options':{..._0x45f198,..._0x23b6df},'args':_0x452a3d?[_0x452a3d]:[],'tdx':_0xa8503a});gracefulExit(_0x53b82a);}),journeyCmd[a2_0x47b95f(0x2c9)]('validate\x20[target]')['description'](a2_0x47b95f(0x1d0))[a2_0x47b95f(0x3b6)](async(_0x877713,_0x2f1e2b)=>{const _0x3c6e84=a2_0x47b95f,_0x166033=new JourneyValidateCommand(),_0x1c858f=program['opts'](),_0x4b2967=await createTDXInstance(_0x1c858f),_0x387d53=await _0x166033[_0x3c6e84(0x41e)]({'options':{..._0x1c858f,..._0x2f1e2b},'args':_0x877713?[_0x877713]:[],'tdx':_0x4b2967});gracefulExit(_0x387d53);}),program[a2_0x47b95f(0x2c9)]('journeys\x20[pattern]')['description'](a2_0x47b95f(0x352))[a2_0x47b95f(0x3b6)](journeyListAction);const agentSyncCmd=program['command'](a2_0x47b95f(0x316))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x2cf));agentSyncCmd[a2_0x47b95f(0x2c9)]('pull\x20[project]\x20[agent-name]')[a2_0x47b95f(0x3db)](a2_0x47b95f(0x383))[a2_0x47b95f(0x25c)]('-o,\x20--output\x20<dir>',a2_0x47b95f(0x200))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x22f),a2_0x47b95f(0x299))[a2_0x47b95f(0x3b6)](async(_0x5df2eb,_0x4f9d01,_0x52aa2b)=>{const _0x55ae1f=a2_0x47b95f,_0x11498b=new AgentPullCommand(),_0x4d1b9a=program[_0x55ae1f(0x439)](),_0x428aec=await createTDXInstance(_0x4d1b9a),_0x37c802=[];if(_0x5df2eb)_0x37c802[_0x55ae1f(0x28e)](_0x5df2eb);if(_0x4f9d01)_0x37c802[_0x55ae1f(0x28e)](_0x4f9d01);const _0x320185=await _0x11498b[_0x55ae1f(0x41e)]({'options':{..._0x4d1b9a,..._0x52aa2b},'args':_0x37c802,'tdx':_0x428aec});gracefulExit(_0x320185);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x20f))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3f2))[a2_0x47b95f(0x25c)]('-f,\x20--force',a2_0x47b95f(0x361))[a2_0x47b95f(0x3b6)](async(_0x3f85b6,_0x11bc3e)=>{const _0x3b62d9=a2_0x47b95f,_0x3962ae=new AgentPushCommand(),_0x31fea1=program[_0x3b62d9(0x439)](),_0x180e06=await createTDXInstance(_0x31fea1),_0x46a1ca=await _0x3962ae[_0x3b62d9(0x41e)]({'options':{..._0x31fea1,..._0x11bc3e},'args':_0x3f85b6?[_0x3f85b6]:[],'tdx':_0x180e06});gracefulExit(_0x46a1ca);}),agentSyncCmd['command'](a2_0x47b95f(0x2d8))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x39a))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x347),a2_0x47b95f(0x31e))[a2_0x47b95f(0x3b6)](async(_0x48e356,_0x3fe2ce)=>{const _0x52fd64=a2_0x47b95f,_0xb1d1e2=new AgentCloneCommand(),_0x199f89=program[_0x52fd64(0x439)](),_0x3ceca7=await createTDXInstance(_0x199f89),_0x550f87=await _0xb1d1e2['run']({'options':{..._0x199f89,..._0x3fe2ce},'args':_0x48e356?[_0x48e356]:[],'tdx':_0x3ceca7});gracefulExit(_0x550f87);}),agentSyncCmd['command'](a2_0x47b95f(0x3ca))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x37d))['option'](a2_0x47b95f(0x345),a2_0x47b95f(0x205))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x2a6),a2_0x47b95f(0x3de))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1aa),a2_0x47b95f(0x2aa))[a2_0x47b95f(0x25c)]('--no-eval','Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x37b),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')['action'](async(_0x3bd032,_0x2b08e4)=>{const _0x5984b2=a2_0x47b95f,_0x2da9dc=new AgentTestCommand(),_0x2bfcc5=program[_0x5984b2(0x439)](),_0x33bc5f=await createTDXInstance(_0x2bfcc5),_0x503bc0=await _0x2da9dc[_0x5984b2(0x41e)]({'options':{..._0x2bfcc5,..._0x2b08e4},'args':_0x3bd032?[_0x3bd032]:[],'tdx':_0x33bc5f});gracefulExit(_0x503bc0);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x272))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x3e7))[a2_0x47b95f(0x3b6)](llmAgentListAction),agentSyncCmd['command'](a2_0x47b95f(0x276))[a2_0x47b95f(0x3db)](a2_0x47b95f(0x373))[a2_0x47b95f(0x3b6)](async(_0x154c7f,_0x3f88d6)=>{const _0x495303=a2_0x47b95f,_0x5e0eb2=new LLMAgentShowCommand(),_0x1038a8=program[_0x495303(0x439)](),_0x2ef77b=await createTDXInstance(_0x1038a8),_0x373b9a=await _0x5e0eb2[_0x495303(0x41e)]({'options':{..._0x1038a8,..._0x3f88d6},'args':[_0x154c7f],'tdx':_0x2ef77b});gracefulExit(_0x373b9a);}),agentSyncCmd[a2_0x47b95f(0x2c9)]('create\x20<name>')[a2_0x47b95f(0x3db)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x1d7),a2_0x47b95f(0x395))[a2_0x47b95f(0x25c)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x47b95f(0x327))[a2_0x47b95f(0x25c)]('--starter-message\x20<text>',a2_0x47b95f(0x1b1))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x293),a2_0x47b95f(0x3b9),'4')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x313),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x47b95f(0x420))[a2_0x47b95f(0x3b6)](async(_0x1417b9,_0x4a681b)=>{const _0x2bd54a=new LLMAgentCreateCommand(),_0x2510f8=program['opts'](),_0x38be52=await createTDXInstance(_0x2510f8),_0x1bd47e=await _0x2bd54a['run']({'options':{..._0x2510f8,..._0x4a681b},'args':[_0x1417b9],'tdx':_0x38be52});gracefulExit(_0x1bd47e);}),agentSyncCmd[a2_0x47b95f(0x2c9)]('update\x20<agent-name>')['description'](a2_0x47b95f(0x344))['option'](a2_0x47b95f(0x39e),a2_0x47b95f(0x3cd))['option'](a2_0x47b95f(0x3b4),a2_0x47b95f(0x429))[a2_0x47b95f(0x25c)](a2_0x47b95f(0x3d7),'Agent\x20description')[a2_0x47b95f(0x25c)](a2_0x47b95f(0x43c),'Starter\x20message')[a2_0x47b95f(0x3b6)](async(_0x374f91,_0x345a18)=>{const _0x577283=a2_0x47b95f,_0x41a068=new LLMAgentUpdateCommand(),_0x171e36=program[_0x577283(0x439)](),_0x39ce63=await createTDXInstance(_0x171e36),_0x9093d7=await _0x41a068[_0x577283(0x41e)]({'options':{..._0x171e36,..._0x345a18},'args':[_0x374f91],'tdx':_0x39ce63});gracefulExit(_0x9093d7);}),agentSyncCmd[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x3bc))[a2_0x47b95f(0x3db)]('Delete\x20an\x20agent')['action'](async(_0x4dd089,_0xdd7d)=>{const _0x2947f1=a2_0x47b95f,_0x220cb1=new LLMAgentDeleteCommand(),_0x3a2d02=program[_0x2947f1(0x439)](),_0x247ebd=await createTDXInstance(_0x3a2d02),_0x417847=await _0x220cb1[_0x2947f1(0x41e)]({'options':{..._0x3a2d02,..._0xdd7d},'args':[_0x4dd089],'tdx':_0x247ebd});gracefulExit(_0x417847);}),program[a2_0x47b95f(0x2c9)](a2_0x47b95f(0x1b5),{'hidden':!![]})[a2_0x47b95f(0x3b6)](()=>{const _0x496e18=a2_0x47b95f;function _0x19d903(_0x3efc8b,_0x5ce788){const _0x3fddbb=a2_0x26e5,_0x4ba3a6=[];for(const _0x53dea0 of _0x3efc8b[_0x3fddbb(0x388)]){if(_0x53dea0['_hidden'])continue;const _0x5dec32=_0x5ce788?_0x5ce788+'\x20'+_0x53dea0[_0x3fddbb(0x273)]():_0x53dea0[_0x3fddbb(0x273)](),_0x530b82=_0x5dec32[_0x3fddbb(0x1ca)]('\x20')[0x0],_0x44808d=COMMAND_CATEGORIES[_0x3fddbb(0x288)](_0x1d68f5=>_0x1d68f5[_0x3fddbb(0x388)][_0x3fddbb(0x236)](_0x530b82)),_0x52e17c=_0x44808d?.[_0x3fddbb(0x273)]??'';if(_0x53dea0[_0x3fddbb(0x388)][_0x3fddbb(0x240)]>0x0)_0x4ba3a6['push'](..._0x19d903(_0x53dea0,_0x5dec32));else{const _0x5b3db6=(_0x53dea0[_0x3fddbb(0x227)]||[])[_0x3fddbb(0x1d2)](_0xd0c3f9=>{const _0xd77fa3=_0x3fddbb,_0x342cb4=_0xd0c3f9[_0xd77fa3(0x2d0)]?_0xd0c3f9[_0xd77fa3(0x273)]()+_0xd77fa3(0x32b):_0xd0c3f9['name']();return _0xd0c3f9[_0xd77fa3(0x425)]?'<'+_0x342cb4+'>':'['+_0x342cb4+']';})[_0x3fddbb(0x335)]('\x20'),_0x4bf2b2=_0x53dea0[_0x3fddbb(0x2fa)]['filter'](_0x135e35=>!_0x135e35[_0x3fddbb(0x3e8)]&&_0x135e35[_0x3fddbb(0x43b)]!==_0x3fddbb(0x3f3))[_0x3fddbb(0x1d2)](_0x4095a4=>({'flags':_0x4095a4[_0x3fddbb(0x24c)],'description':_0x4095a4[_0x3fddbb(0x3db)]}));_0x4ba3a6[_0x3fddbb(0x28e)]({'name':_0x5dec32,'description':_0x53dea0['description'](),'group':_0x52e17c,'usage':_0x5b3db6,'options':_0x4bf2b2});}}return _0x4ba3a6;}console[_0x496e18(0x320)](JSON['stringify'](_0x19d903(program,''))),process[_0x496e18(0x3f7)](0x0);});export{program};export function runCLI(){const _0x18d728=a2_0x47b95f,_0x3a72a3=!process[_0x18d728(0x212)]['slice'](0x2)[_0x18d728(0x240)];showBriefHelp=_0x3a72a3,program[_0x18d728(0x1ef)](process[_0x18d728(0x212)]);_0x3a72a3&&program['outputHelp']();if(process[_0x18d728(0x37f)][_0x18d728(0x3a6)]&&process[_0x18d728(0x212)][_0x18d728(0x240)]>0x2&&!isDevVersion()){const _0xbe7189=loadReleaseChannel();checkForUpdate(currentVersion,_0xbe7189)[_0x18d728(0x248)](_0x129b73=>{_0x129b73&&displayUpdateNotification(_0x129b73);})[_0x18d728(0x2ad)](()=>{});}}
1
+ const a2_0x3562dc=a2_0x2266;(function(_0x4d7746,_0x30cd7f){const _0x2985f5=a2_0x2266,_0x43276b=_0x4d7746();while(!![]){try{const _0x1ca332=-parseInt(_0x2985f5(0x3ab))/0x1*(parseInt(_0x2985f5(0x322))/0x2)+parseInt(_0x2985f5(0x3b1))/0x3+parseInt(_0x2985f5(0x2ae))/0x4*(parseInt(_0x2985f5(0x1d4))/0x5)+-parseInt(_0x2985f5(0x21b))/0x6+parseInt(_0x2985f5(0x1c5))/0x7*(-parseInt(_0x2985f5(0x1ca))/0x8)+-parseInt(_0x2985f5(0x190))/0x9+parseInt(_0x2985f5(0x2d4))/0xa;if(_0x1ca332===_0x30cd7f)break;else _0x43276b['push'](_0x43276b['shift']());}catch(_0x5e2fe2){_0x43276b['push'](_0x43276b['shift']());}}}(a2_0x5e09,0x7c884));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';function a2_0x5e09(){const _0xfb727b=['--limit\x20<number>','--master','Start\x20a\x20new\x20chat\x20session','Output\x20directory','--attributes\x20<json>','Master\x20table\x20name','Update\x20an\x20email\x20template','workflows\x20[project]','isDirectory','Limit\x20number\x20of\x20rows','--interval\x20<range>','--email-sender-id\x20<id>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--resume-from\x20<task>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Run\x20Trino\x20query\x20with\x20streaming\x20results','LLM\x20project\x20to\x20use\x20(overrides\x20context)','result\x20<job-id>','Maximum\x20tool\x20iterations\x20(default:\x204)','Show\x20master\x20table\x20sample\x20data','pull\x20<project>\x20[target-dir]','-n,\x20--name\x20<name>','Job\x20priority\x20(-2\x20to\x202)','956174OoKNJz','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--reason\x20<text>','configureHelp','site','Preview\x20changes\x20without\x20writing\x20files','Options:','--llm-project\x20<name>','[DEPRECATED]\x20Segment\x20folder\x20management','DEBUG','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','preview\x20[name]','--limit\x20<rows>','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--editor-type\x20<type>','connection','length','view\x20[segment_name]','User\x20management\x20commands','sessions\x20[project]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','stderr','Follow/watch\x20timeline\x20for\x20running\x20attempts','profile','engage_workspace','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Update\x20an\x20existing\x20agent','profiles','--behaviors-file\x20<file>','Updated\x20schedule\x20option','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','journey','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--name\x20<name>','Include\x20subtasks\x20in\x20tasks\x20output','Skip\x20validation\x20of\x20.dig\x20files','--invisible','name','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','secrets','Create\x20an\x20email\x20template','--in\x20<database>','Update\x20a\x20campaign','tdx','run\x20<name>','jobs','Pause\x20a\x20running\x20journey','Show\x20agent\x20details','isArray','--new','Parse\x20and\x20validate\x20without\x20executing','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','pull\x20[parent_or_file]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','set\x20<args...>','us01','_list-commands','commandDescription','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','segment','--workspace\x20<name>','--result\x20<url>','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','\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','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Clear\x20workflow\x20project\x20context','use\x20[name]','preview\x20[file]','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Workspace\x20description','--database\x20<name>','Launch\x20a\x20campaign','Workflow\x20parameter\x20(repeatable)','--rule-file\x20<file>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--in\x20<name>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--max-depth\x20<depth>','--description\x20<desc>','create\x20[name]','unset\x20<resource>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Skip\x20confirmation\x20prompt','databases\x20[pattern]','Open\x20segment\x20in\x20web\x20browser','New\x20campaign\x20name','--include-stats','Show\x20authentication\x20status\x20and\x20current\x20context','New\x20workspace\x20name','parent','connections','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20agents\x20in\x20current\x20project','push\x20[target]','--kind\x20<type>','schedule','RT\x202.0\x20configuration\x20management','Query\x20type:\x20trino\x20or\x20hive','folder','Query\x20engine\x20version','\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','allowExcessArguments','Show\x20segment\x20details\x20(alias\x20for\x20view)','Preview\x20operation\x20without\x20executing','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--from\x20<timestamp>','--timeout\x20<seconds>','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Delete\x20a\x20workspace','Email\x20subject\x20template','--engine-version\x20<version>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','projects\x20[pattern]','--priority\x20<-2~2>','opts','create\x20<segment_name>','repeat','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Behaviors\x20as\x20JSON\x20string','--attribute\x20[name]','--schedule-option\x20<value>','--parent-segment\x20<name>','List\x20all\x20available\x20profiles','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','AI-native\x20CLI\x20for\x20Treasure\x20Data','2qnrILC','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','-X,\x20--method\x20<method>','Show\x20workspace\x20details','slice','--from-task\x20<task>','3004743GzBeUL','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Parent\x20segment\x20management','create\x20<parent_name>\x20<folder_name>','Pause\x20a\x20campaign','users','colorFn','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','isTTY','database','--chat-id\x20<id>','Duplicate\x20a\x20campaign','Filtering\x20rule\x20as\x20JSON\x20string','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20connection\x20details\x20by\x20name','Agent\x20name','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','submit\x20[query]','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--temperature\x20<n>','settings\x20<type>','Delete\x20an\x20agent','list\x20[pattern]','upload\x20[project-name-or-dir]','Change\x20to\x20directory\x20before\x20executing\x20command','retry','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','folders\x20<parent_name>','Run\x20specific\x20tests\x20(comma-separated)','action','Create\x20a\x20scheduled\x20query','describe','--customer-group-file\x20<file>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','tdx\x20','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--include-subtasks','help',',\x20version\x20','Segment\x20description','Open\x20journey\x20in\x20web\x20browser','Result\x20output\x20destination\x20URL','Show\x20schedule\x20details','HTML\x20template\x20content','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Behaviors\x20from\x20JSON\x20file','argumentTerm','--parent-folder\x20<name>','List\x20secret\x20keys\x20for\x20a\x20project','run\x20[workflow]','subcommandDescription','Database\x20name\x20(default:\x20information_schema)','Customer\x20group\x20from\x20JSON\x20file','-d,\x20--database\x20<db>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20campaign\x20details','--skip-validation','Set\x20operation\x20timeout\x20in\x20seconds','--dry-run','Arguments:','--clear','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','createAsync','update\x20<agent-name>','after','--full','beefree','Manage\x20workflow\x20project\x20secrets','--attributes-file\x20<file>','usage','Include\x20retried\x20attempts\x20(for\x20list)','--description\x20<text>','injectIntoOptions','--param\x20<key=value>','--name\x20<new_name>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','-d,\x20--database\x20<database>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Interactive\x20chat\x20selector','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Resume\x20a\x20paused\x20journey','List\x20available\x20LLM\x20models','Create\x20a\x20new\x20LLM\x20project','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Name\x20for\x20the\x20new\x20project\x20(required)','Overwrite\x20local\x20changes\x20without\x20confirmation','set\x20<key=value>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','agents\x20[pattern]','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','chdir','show\x20<name-or-id>','push\x20[name]','--behavior\x20[name]','--plaintext\x20<text>','--result\x20<target>','--subject\x20<subject>','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','pull\x20[name]','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','argv','push\x20[file]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--delay\x20<seconds>','Add\x20behaviors\x20as\x20JSON\x20string','-v,\x20--verbose','Timezone\x20(e.g.,\x20America/Los_Angeles)','Task\x20name\x20for\x20logs\x20action','\x20(resolved\x20to\x20','--time\x20<iso8601>','Delete\x20a\x20campaign','Show\x20journey\x20details','Set\x20or\x20show\x20parent\x20segment\x20context','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','-r,\x20--resume','delete\x20<project-name-or-id>','list','Show\x20schedule\x20execution\x20history','--folder\x20<name>','-w,\x20--web','show\x20[segment_name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','TRACE','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','list\x20[path]','long','-o,\x20--output\x20<folder>','delete\x20<name-or-id>','Preview\x20changes\x20without\x20pushing','desc\x20[name]','7615107qRngvk','stats\x20<name-or-path>','--include-retried','preAction','-r,\x20--recursive','logs','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','-f,\x20--file\x20<path>','map','Custom\x20revision\x20name\x20(default:\x20timestamp)','--json','log\x20<chat-id>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Kill\x20a\x20job','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Ending\x20offset\x20(default:\x2020)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','-d,\x20--database\x20<name>','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','--to\x20<n>','resume\x20<name-or-path>','Resume\x20from\x20specific\x20task\x20(retry)','Workflow\x20session\x20management','Workflow\x20(Digdag)\x20management\x20commands','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Parent\x20segment\x20description','LLM\x20agent\x20management','alias','Move\x20to\x20folder','Save\x20output\x20to\x20file','Delete\x20a\x20scheduled\x20query','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','setup','Update\x20a\x20scheduled\x20query','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','--session-time\x20<time>','--last','Updated\x20timezone','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--customer-group\x20<json>','requiredOption','tsv','required','--agent\x20<ref>','journeys\x20[pattern]','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Parent\x20folder\x20name\x20for\x20nested\x20folders','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','275401gWCGEG','Campaign\x20management','Include\x20retried\x20attempts','Make\x20segment\x20invisible\x20(default:\x20visible)','filter','200hrptDe','show\x20[name]','Unknown\x20action:\x20','...','show\x20<agent-name>','debug','subcommandTerm','New\x20template\x20name','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Output\x20as\x20JSON\x20Lines','595050ftQhjL','-p,\x20--profile\x20<name>','--name\x20<names>','join','--stream','outputHelp','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','query\x20[sql]','--max-tool-iterations\x20<n>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','--revision\x20<revision>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','hook','split','Campaign\x20description','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Push\x20without\x20confirmation','json','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Authentication\x20management','--name\x20<text>','clone\x20[source-dir]','Show\x20the\x20most\x20recent\x20chat','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','backup\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Show\x20only\x20master\x20table\x20validation','Show\x20stats\x20for\x20specific\x20stage','list\x20[name]','--session-id\x20<id>','--help','download\x20<project-name>\x20[output-dir]','Add\x20attributes\x20from\x20JSON\x20file','Resume\x20a\x20paused\x20campaign','use\x20<path>','command','Action:\x20logs,\x20tasks,\x20kill,\x20retry','workspace','campaign','--segment\x20<path>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Filtering\x20rule\x20from\x20JSON\x20file','GET','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--color','--prompt\x20<text>','--table','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Pull\x20specific\x20revision\x20(default:\x20latest)','option','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--model\x20<name>','session','hidden','Table\x20management\x20commands','validate\x20[target]','-o,\x20--output\x20<file>','--start-at\x20<datetime>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--html\x20<html>','pause\x20<name-or-id>','Plaintext\x20template\x20content','gitRevision','--type\x20<type>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Include\x20execution\x20statistics','create\x20<name>','stringify','use\x20[project]','llm','5682402YfyejI','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','--cron\x20<expression>','--delete','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','tables\x20[pattern]','claude-4.5-sonnet','Folder\x20description','Skip\x20confirmation\x20prompts','kill\x20<job-id>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Request\x20body\x20as\x20JSON\x20string','-y,\x20--yes','Read\x20query\x20from\x20file','update\x20<name-or-id>','activations\x20<segment_name>','Show\x20email\x20template\x20details','Workspace\x20name\x20(required)','Create\x20a\x20new\x20campaign','--output\x20<file>','show\x20<folder_ref>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','pull\x20[project]\x20[agent-name]','Campaign\x20name','List\x20all\x20users\x20in\x20the\x20account','\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','trino','Output\x20as\x20JSON','push\x20[source-dir]','tasks','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--no-eval','resume\x20<name-or-id>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','run\x20[name]','--default','Workspace\x20name','grapesjs','--no-color','Database\x20to\x20use\x20(overrides\x20context)','Email\x20sender\x20ID\x20for\x20delivery','includes','trace','--enriched','Resume\x20a\x20conversation\x20(shows\x20selector)','parse','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Export\x20journey(s)\x20as\x20YAML\x20files','chat\x20[message...]','information_schema','options','Pull\x20workflow\x20project\x20to\x20local\x20folder','sql\x20[name]','show\x20<name>','status','--add-behaviors\x20<json>','view\x20<name-or-path>','addHelpText','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--params\x20<json>','fields\x20[name]','Campaign\x20type\x20(email\x20or\x20push)','summary','get','\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','test\x20[path]','CDP\x20segment\x20management\x20commands','workflow','attempts\x20[project]','--no-count-population','--num\x20<1-10>','Attempt\x20ID','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','info\x20[segment_name]','format','--attempt-id\x20<id>','aliases','--schedule-type\x20<type>','types','Timezone\x20for\x20cron\x20(default:\x20UTC)','flags','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','-1d','Path\x20is\x20not\x20a\x20directory:\x20','List\x20available\x20connector\x20types','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Invalid\x20editor\x20type:\x20','Run\x20a\x20scheduled\x20query\x20immediately','[action]','--add-attributes\x20<json>','commands','Attributes\x20from\x20JSON\x20file','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20all\x20data\x20connections','project','-o,\x20--output\x20<dir>','--add-attributes-file\x20<file>','Commands:','logLevel','variadic','auth','history\x20[chat-id]','error','Scheduled\x20query\x20management\x20commands','Job\x20management\x20commands','kill','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Updated\x20description','validate\x20[name]','Get\x20job\x20results','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Submit\x20a\x20job','exit','workspaces\x20[pattern]','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--json-columns\x20<cols>','stdout','--timezone\x20<tz>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','table','Pull\x20child\x20segments\x20to\x20YAML\x20files','--session\x20<id>','Project\x20description','duplicate\x20<name-or-id>','--format\x20<format>','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','LLM\x20project\x20management','Agent\x20prompt/instructions','Validate\x20journey\x20YAML\x20files\x20locally','show\x20<job-id>','--status\x20<status>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-H,\x20--header\x20<header>','\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','Timezone\x20for\x20cron','--to\x20<timestamp>','models','forEach','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Model\x20type\x20(default:\x20claude-4.5-sonnet)','[attempt-id]','--tags\x20<tags>','20dknRIi','push\x20[path]','list\x20[project]','Delete\x20an\x20email\x20template','log','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','statusline','use\x20<name>','validate\x20[file]','padWidth','find','--debug','_hidden','push','New\x20segment\x20name','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','use\x20[resource]\x20[value]','jsonl','INFO','directory','Set\x20a\x20profile\x20configuration\x20value','Continue\x20most\x20recent\x20conversation','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','INVALID_ARGUMENT','Trino\x20catalog\x20(default:\x20td)','run','Show\x20job\x20details','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Output\x20folder\x20(default:\x20{project_name}.llm)','Database\x20name','--reeval','attempt:','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','allowUnknownOption','argument','update\x20<segment_name>','view\x20[name]','26463920fQWgIO','set','agent','Output\x20file\x20path','sql\x20[segment_name]','parents\x20[pattern]','Attributes\x20as\x20JSON\x20string','--force','Cron\x20expression\x20for\x20scheduling','Delay\x20in\x20seconds\x20before\x20execution','--jsonl','Delete\x20an\x20LLM\x20project','api\x20[endpoint]','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','push\x20[parent_or_file]','clone\x20[source]','[options]\x20--\x20[claude-code-args...]','description','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Create\x20a\x20workspace','Create\x20segment\x20folder','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','--rule\x20<json>','--table\x20<table>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','pause\x20<name-or-path>','--trace','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Enable\x20verbose\x20logging','Starter\x20message','delete\x20<args...>','flatMap','--retry-limit\x20<0~32>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Template\x20name','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','init\x20[name]','--version','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','--system-prompt\x20<text>','Database\x20management\x20commands','--yes','Setup\x20API\x20key\x20authentication\x20interactively','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','--type\x20<api_type>','parent-segment','describe\x20[table]','templates\x20[pattern]','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','-f,\x20--force','--starter-message\x20<text>','create','mcp'];a2_0x5e09=function(){return _0xfb727b;};return a2_0x5e09();}function a2_0x2266(_0x441a8a,_0x3317c0){_0x441a8a=_0x441a8a-0x149;const _0x5e09dc=a2_0x5e09();let _0x22660c=_0x5e09dc[_0x441a8a];return _0x22660c;}import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3562dc(0x172)][a2_0x3562dc(0x244)](a2_0x3562dc(0x2fa))){let versionOutput=a2_0x3562dc(0x3d3)+currentVersion;buildInfo[a2_0x3562dc(0x213)]&&!currentVersion[a2_0x3562dc(0x244)](buildInfo[a2_0x3562dc(0x213)])&&(versionOutput+='\x20('+buildInfo[a2_0x3562dc(0x213)]+')'),buildInfo['buildTime']&&(versionOutput+='\x20-\x20built\x20'+buildInfo['buildTime']),console[a2_0x3562dc(0x2b2)](versionOutput),process[a2_0x3562dc(0x28d)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3562dc(0x3aa);buildInfo[a2_0x3562dc(0x213)]&&!currentVersion[a2_0x3562dc(0x244)](buildInfo[a2_0x3562dc(0x213)])?description+=a2_0x3562dc(0x3d8)+currentVersion+'\x20('+buildInfo[a2_0x3562dc(0x213)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x3562dc(0x34d)](a2_0x3562dc(0x353))['description'](description),program[a2_0x3562dc(0x206)]('-C,\x20--directory\x20<path>',a2_0x3562dc(0x3c9))['option'](a2_0x3562dc(0x1d5),a2_0x3562dc(0x1aa))[a2_0x3562dc(0x206)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x3562dc(0x362))[a2_0x3562dc(0x206)](a2_0x3562dc(0x299),a2_0x3562dc(0x2f8))[a2_0x3562dc(0x206)](a2_0x3562dc(0x203),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x19a),a2_0x3562dc(0x39d))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2de),a2_0x3562dc(0x36c))[a2_0x3562dc(0x206)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x3562dc(0x22e),a2_0x3562dc(0x1b0))[a2_0x3562dc(0x206)](a2_0x3562dc(0x30b),a2_0x3562dc(0x3be))[a2_0x3562dc(0x206)](a2_0x3562dc(0x201),a2_0x3562dc(0x271),![])['option'](a2_0x3562dc(0x241),a2_0x3562dc(0x377),![])[a2_0x3562dc(0x206)](a2_0x3562dc(0x177),a2_0x3562dc(0x2f1),![])[a2_0x3562dc(0x206)](a2_0x3562dc(0x2b9),a2_0x3562dc(0x3b8))['option'](a2_0x3562dc(0x2ef),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x398),a2_0x3562dc(0x3eb),'30')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),a2_0x3562dc(0x394),![])['option'](a2_0x3562dc(0x227),'Skip\x20confirmation\x20prompts',![])['option'](a2_0x3562dc(0x296),a2_0x3562dc(0x2cf))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1a3),a2_0x3562dc(0x242))[a2_0x3562dc(0x206)](a2_0x3562dc(0x378),a2_0x3562dc(0x15c))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3a7),a2_0x3562dc(0x15a))[a2_0x3562dc(0x206)](a2_0x3562dc(0x329),a2_0x3562dc(0x31b)),program[a2_0x3562dc(0x325)]({'formatHelp':(_0x4265a7,_0x497a9a)=>{const _0x210ec7=a2_0x3562dc,_0x474a60=_0x497a9a[_0x210ec7(0x2b7)](_0x4265a7,_0x497a9a),_0x2173a3=0x2,_0x325b56=0x2;function _0x4c47bf(_0x456eef){const _0x2c30a8=_0x210ec7,_0x4b8769=_0x456eef;return!!(_0x4b8769[_0x2c30a8(0x2ba)]||_0x4b8769['hidden']);}function _0xa283c0(_0x14d7cf,_0x46e3e7){if(_0x46e3e7){const _0x5961bb=''+_0x14d7cf['padEnd'](_0x474a60+_0x325b56)+_0x46e3e7;return _0x5961bb;}return _0x14d7cf;}function _0xc67d72(_0x29d999){const _0x53bf90=_0x210ec7;return _0x29d999[_0x53bf90(0x1d7)]('\x0a')['replace'](/^/gm,'\x20'[_0x53bf90(0x3a2)](_0x2173a3));}const _0x59ff1a=[];_0x59ff1a[_0x210ec7(0x2bb)]('Usage:\x20'+_0x497a9a['commandUsage'](_0x4265a7));const _0x587114=_0x497a9a[_0x210ec7(0x364)](_0x4265a7);_0x587114&&(_0x59ff1a['push'](''),_0x59ff1a['push'](_0x587114));const _0x882950=_0x4265a7[_0x210ec7(0x276)][_0x210ec7(0x1c9)](_0x578e34=>!_0x4c47bf(_0x578e34));if(_0x882950[_0x210ec7(0x336)]>0x0){if(_0x4265a7[_0x210ec7(0x34d)]()===_0x210ec7(0x353)){const _0xfd34de=_0x4265a7[_0x210ec7(0x3a0)](),_0x5679a7=!_0xfd34de['noColor']&&process[_0x210ec7(0x291)][_0x210ec7(0x3b9)],_0x1da258=COMMAND_CATEGORIES,_0x4c3415=(_0xcecf25,_0x15b06b)=>_0x5679a7?_0x15b06b(_0xcecf25):_0xcecf25,_0x1c0c6b=new Map();_0x882950[_0x210ec7(0x2a9)](_0x1d5606=>{const _0x45d181=_0x210ec7;_0x1c0c6b[_0x45d181(0x2d5)](_0x1d5606['name'](),_0x1d5606);}),_0x1da258[_0x210ec7(0x2a9)](_0x57fbc3=>{const _0x59ae9d=_0x210ec7,_0x3c7c6f=_0x57fbc3[_0x59ae9d(0x276)][_0x59ae9d(0x2f4)](_0x458d6e=>_0x1c0c6b[_0x59ae9d(0x25b)](_0x458d6e)??[]);if(_0x3c7c6f['length']>0x0){_0x59ff1a[_0x59ae9d(0x2bb)](''),_0x59ff1a['push'](_0x4c3415(_0x57fbc3['name']+':',_0x57fbc3[_0x59ae9d(0x3b7)]));const _0x4df2a3=_0x3c7c6f[_0x59ae9d(0x198)](_0x34c931=>{const _0x44c09c=_0x59ae9d,_0x5e1ba9=_0x497a9a[_0x44c09c(0x1d0)](_0x34c931),_0x92be44=_0x497a9a[_0x44c09c(0x3e4)](_0x34c931);return _0xa283c0(_0x5e1ba9,_0x92be44);});_0x59ff1a[_0x59ae9d(0x2bb)](_0xc67d72(_0x4df2a3));}}),_0x59ff1a[_0x210ec7(0x2bb)](''),_0x59ff1a[_0x210ec7(0x2bb)](_0x210ec7(0x3d2));}else{const _0x3b1df3=_0x882950[_0x210ec7(0x198)](_0x2275cf=>{const _0x1dd14a=_0x210ec7,_0x5285e2=_0x497a9a[_0x1dd14a(0x1d0)](_0x2275cf),_0x34631b=_0x497a9a[_0x1dd14a(0x3e4)](_0x2275cf);return _0xa283c0(_0x5285e2,_0x34631b);});_0x59ff1a['push'](''),_0x59ff1a[_0x210ec7(0x2bb)](_0x210ec7(0x27e)),_0x59ff1a[_0x210ec7(0x2bb)](_0xc67d72(_0x3b1df3));}}if(showBriefHelp&&_0x4265a7[_0x210ec7(0x34d)]()===_0x210ec7(0x353))_0x59ff1a[_0x210ec7(0x2bb)](''),_0x59ff1a[_0x210ec7(0x2bb)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x5189ee=_0x4265a7[_0x210ec7(0x24e)][_0x210ec7(0x1c9)](_0x1e86e4=>!_0x4c47bf(_0x1e86e4));if(_0x5189ee[_0x210ec7(0x336)]>0x0){const _0x131996=_0x5189ee[_0x210ec7(0x198)](_0x569236=>{const _0x5b70f7=_0x497a9a['optionTerm'](_0x569236),_0xcfea4f=_0x497a9a['optionDescription'](_0x569236);return _0xa283c0(_0x5b70f7,_0xcfea4f);});_0x59ff1a[_0x210ec7(0x2bb)](''),_0x59ff1a[_0x210ec7(0x2bb)](_0x210ec7(0x328)),_0x59ff1a[_0x210ec7(0x2bb)](_0xc67d72(_0x131996));}}const _0x4e893e=(_0x4265a7['registeredArguments']||[])['filter'](_0x7b2b53=>!_0x4c47bf(_0x7b2b53));if(_0x4e893e['length']>0x0){const _0x5c32e7=_0x4e893e[_0x210ec7(0x198)](_0x1dda93=>{const _0x46d980=_0x210ec7,_0x4e3b2a=_0x497a9a[_0x46d980(0x3e0)](_0x1dda93),_0x2b67bb=_0x497a9a['argumentDescription'](_0x1dda93);return _0xa283c0(_0x4e3b2a,_0x2b67bb);});_0x59ff1a[_0x210ec7(0x2bb)](''),_0x59ff1a[_0x210ec7(0x2bb)](_0x210ec7(0x3ed)),_0x59ff1a[_0x210ec7(0x2bb)](_0xc67d72(_0x5c32e7));}return _0x59ff1a[_0x210ec7(0x1d7)]('\x0a')+'\x0a';},'subcommandTerm':_0x547868=>{const _0x479f6f=a2_0x3562dc,_0x52f7dc=(_0x547868['registeredArguments']||[])['map'](_0x54d151=>_0x54d151[_0x479f6f(0x1bf)]?'<'+_0x54d151[_0x479f6f(0x34d)]()+'>':'['+_0x54d151['name']()+']')[_0x479f6f(0x1d7)]('\x20'),_0x371928=_0x547868[_0x479f6f(0x268)](),_0x16fe8d=_0x371928[_0x479f6f(0x336)]>0x0?_0x547868[_0x479f6f(0x34d)]()+',\x20'+_0x371928[_0x479f6f(0x1d7)](',\x20'):_0x547868[_0x479f6f(0x34d)]();return _0x52f7dc?_0x16fe8d+'\x20'+_0x52f7dc:_0x16fe8d;}}),program[a2_0x3562dc(0x1e0)](a2_0x3562dc(0x193),_0x1e8081=>{const _0x94ea6d=a2_0x3562dc,_0x2968c1=_0x1e8081[_0x94ea6d(0x3a0)]();if(_0x2968c1[_0x94ea6d(0x2c2)]){const _0x69d7ec=resolve(_0x2968c1[_0x94ea6d(0x2c2)]),_0x280a0b=_0x69d7ec!==_0x2968c1[_0x94ea6d(0x2c2)]?_0x94ea6d(0x17a)+_0x69d7ec+')':'';if(!existsSync(_0x69d7ec))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Directory\x20does\x20not\x20exist:\x20'+_0x2968c1['directory']+_0x280a0b,undefined,{'helpText':_0x94ea6d(0x1ab)});const _0xf03230=statSync(_0x69d7ec);if(!_0xf03230[_0x94ea6d(0x313)]())throw new SDKError(ErrorCode[_0x94ea6d(0x2c6)],_0x94ea6d(0x26f)+_0x2968c1[_0x94ea6d(0x2c2)]+_0x280a0b,undefined,{'helpText':_0x94ea6d(0x331)});process[_0x94ea6d(0x167)](_0x69d7ec);}if(!_0x2968c1[_0x94ea6d(0x266)]){if(_0x2968c1[_0x94ea6d(0x294)])_0x2968c1['format']=_0x94ea6d(0x294);else{if(_0x2968c1[_0x94ea6d(0x1e5)])_0x2968c1[_0x94ea6d(0x266)]=_0x94ea6d(0x1e5);else{if(_0x2968c1[_0x94ea6d(0x2c0)])_0x2968c1['format']=_0x94ea6d(0x2c0);else _0x2968c1[_0x94ea6d(0x1be)]&&(_0x2968c1[_0x94ea6d(0x266)]=_0x94ea6d(0x1be));}}}_0x2968c1['in']&&!_0x2968c1[_0x94ea6d(0x3ba)]&&(_0x2968c1[_0x94ea6d(0x3ba)]=_0x2968c1['in']);if(_0x2968c1[_0x94ea6d(0x245)])_0x2968c1['logLevel']=LogLevel[_0x94ea6d(0x188)];else{if(_0x2968c1[_0x94ea6d(0x1cf)])_0x2968c1['logLevel']=LogLevel[_0x94ea6d(0x32b)];else _0x2968c1[_0x94ea6d(0x27f)]===undefined&&(_0x2968c1[_0x94ea6d(0x27f)]=LogLevel[_0x94ea6d(0x2c1)]);}});async function createTDXInstance(_0x3b82fe){const _0x3c0e91=a2_0x3562dc,_0x6a9ff4=await GlobalContext[_0x3c0e91(0x14b)](_0x3b82fe);return _0x6a9ff4[_0x3c0e91(0x155)](_0x3b82fe),TDX[_0x3c0e91(0x309)]({'site':_0x6a9ff4[_0x3c0e91(0x326)],'apiKey':_0x6a9ff4['apiKey'],'logLevel':_0x6a9ff4['logLevel'],'profile':_0x6a9ff4['profile']});}const databaseCmd=program[a2_0x3562dc(0x1f8)]('database')[a2_0x3562dc(0x1ae)]('db')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2fd)),databaseListAction=async(_0xbb8290,_0x15c646)=>{const _0x29ef32=a2_0x3562dc,_0x421119=new DatabasesCommand(),_0x5da75d=program[_0x29ef32(0x3a0)](),_0x4bba01=await createTDXInstance(_0x5da75d),_0x50671=await _0x421119[_0x29ef32(0x2c8)]({'options':{..._0x5da75d,..._0x15c646},'args':_0xbb8290?[_0xbb8290]:[],'tdx':_0x4bba01});gracefulExit(_0x50671);};databaseCmd[a2_0x3562dc(0x1f8)]('list\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2e1))['action'](databaseListAction),program['command'](a2_0x3562dc(0x380),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x24c))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3ac))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1c0),a2_0x3562dc(0x348))[a2_0x3562dc(0x206)](a2_0x3562dc(0x359),a2_0x3562dc(0x30d))['option'](a2_0x3562dc(0x3bb),a2_0x3562dc(0x2c5))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1d8),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x3562dc(0x3ce)](async(_0x104c2c,_0x2b2508)=>{const _0x2309fb=a2_0x3562dc,_0x52ecb7=program[_0x2309fb(0x3a0)](),_0x356a47=await createTDXInstance(_0x52ecb7);if(_0x104c2c[0x0]===_0x2309fb(0x309)){const _0x1ee53b=new ChatCreateCommand();gracefulExit(await _0x1ee53b['run']({'options':{..._0x52ecb7,..._0x2b2508},'args':_0x104c2c[_0x2309fb(0x3af)](0x1),'tdx':_0x356a47}));return;}const _0x4fb2c6=new ChatCommand(),_0x50bada=await _0x4fb2c6[_0x2309fb(0x2c8)]({'options':{..._0x52ecb7,..._0x2b2508},'args':_0x104c2c,'tdx':_0x356a47});gracefulExit(_0x50bada);});const apiCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2e0))[a2_0x3562dc(0x25a)](a2_0x3562dc(0x171))[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x391))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ad),a2_0x3562dc(0x1fd),a2_0x3562dc(0x1ff))[a2_0x3562dc(0x206)]('--data\x20<data>',a2_0x3562dc(0x226))[a2_0x3562dc(0x206)](a2_0x3562dc(0x197),'Read\x20request\x20body\x20from\x20file')[a2_0x3562dc(0x206)](a2_0x3562dc(0x2a4),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x39166f,_0x5e282e)=>{return _0x5e282e?[..._0x5e282e,_0x39166f]:[_0x39166f];})[a2_0x3562dc(0x206)](a2_0x3562dc(0x301),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x340aff,_0x2ce045)=>{const _0x25cbc5=a2_0x3562dc;if(!_0x340aff){apiCmd['help']();return;}const _0x2d461e=new ApiCommand(),_0xc77315=program[_0x25cbc5(0x3a0)](),_0x51a920=await createTDXInstance(_0xc77315),_0x424e2e=await _0x2d461e[_0x25cbc5(0x2c8)]({'options':{..._0xc77315,..._0x2ce045},'args':[_0x340aff],'tdx':_0x51a920});gracefulExit(_0x424e2e);});program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x30a))[a2_0x3562dc(0x2e5)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x1a4))[a2_0x3562dc(0x3ce)](async _0x3d888c=>{const _0x146dde=a2_0x3562dc,_0x13322f=new MCPCommand(),_0x1e20c8=program[_0x146dde(0x3a0)](),_0x33d813=await createTDXInstance(_0x1e20c8),_0x19af63=await _0x13322f[_0x146dde(0x2c8)]({'options':{..._0x1e20c8,..._0x3d888c},'args':[],'tdx':_0x33d813});gracefulExit(_0x19af63);});const tableCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x294))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x20b)),tableListAction=async(_0xa5bda1,_0x3855de)=>{const _0x34f4a8=a2_0x3562dc,_0x1abde7=new TablesCommand(),_0x7a0c30=program['opts'](),_0x364a8d=await createTDXInstance(_0x7a0c30);_0x3855de['in']&&(_0x3855de[_0x34f4a8(0x3ba)]=_0x3855de['in']);const _0x8335c4=await _0x1abde7[_0x34f4a8(0x2c8)]({'options':{..._0x7a0c30,..._0x3855de},'args':_0xa5bda1?[_0xa5bda1]:[],'tdx':_0x364a8d});gracefulExit(_0x8335c4);};tableCmd['command']('list\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x225))[a2_0x3562dc(0x206)](a2_0x3562dc(0x159),a2_0x3562dc(0x1ec))[a2_0x3562dc(0x206)](a2_0x3562dc(0x351),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3562dc(0x3ce)](tableListAction),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x220),{'hidden':!![]})[a2_0x3562dc(0x2e5)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x159),a2_0x3562dc(0x1ec))['option'](a2_0x3562dc(0x351),a2_0x3562dc(0x15c))[a2_0x3562dc(0x3ce)](tableListAction),program['command']('show\x20[table]')[a2_0x3562dc(0x2e5)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x3562dc(0x159),a2_0x3562dc(0x28b))['option']('--in\x20<database>',a2_0x3562dc(0x15c))[a2_0x3562dc(0x3ce)](async(_0x3f1dd8,_0x45a59d)=>{const _0x454414=a2_0x3562dc,_0x16535a=new ShowCommand(),_0x1872a0=program[_0x454414(0x3a0)](),_0x4a8846=await createTDXInstance(_0x1872a0);_0x45a59d['in']&&(_0x45a59d[_0x454414(0x3ba)]=_0x45a59d['in']);const _0x2b2c03=await _0x16535a[_0x454414(0x2c8)]({'options':{..._0x1872a0,..._0x45a59d},'args':_0x3f1dd8?[_0x3f1dd8]:[],'tdx':_0x4a8846});gracefulExit(_0x2b2c03);}),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x303))['alias']('desc')[a2_0x3562dc(0x2e5)]('Describe\x20table\x20schema')['option'](a2_0x3562dc(0x159),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')['option'](a2_0x3562dc(0x351),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3562dc(0x3ce)](async(_0x55ec04,_0x42c39a)=>{const _0x4820b2=a2_0x3562dc,_0x5b530a=new DescribeCommand(),_0x2c78c5=program[_0x4820b2(0x3a0)](),_0x3d8944=await createTDXInstance(_0x2c78c5);_0x42c39a['in']&&(_0x42c39a['database']=_0x42c39a['in']);const _0x5ef9af=await _0x5b530a['run']({'options':{..._0x2c78c5,..._0x42c39a},'args':_0x55ec04?[_0x55ec04]:[],'tdx':_0x3d8944});gracefulExit(_0x5ef9af);}),program['command'](a2_0x3562dc(0x1db))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x31a))[a2_0x3562dc(0x206)](a2_0x3562dc(0x159),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x351),a2_0x3562dc(0x15c))[a2_0x3562dc(0x206)]('--catalog\x20<catalog>',a2_0x3562dc(0x2c7))[a2_0x3562dc(0x206)](a2_0x3562dc(0x197),'Read\x20SQL\x20query\x20from\x20file')[a2_0x3562dc(0x206)](a2_0x3562dc(0x32e),a2_0x3562dc(0x278),'40')[a2_0x3562dc(0x3ce)](async(_0xb076cf,_0x5f54b9)=>{const _0x83552f=a2_0x3562dc,_0x418e6b=new QueryCommand(),_0x1db27f=program[_0x83552f(0x3a0)](),_0x5002b6=await createTDXInstance(_0x1db27f);_0x5f54b9['in']&&(_0x5f54b9['database']=_0x5f54b9['in']);const _0x239d6a=await _0x418e6b[_0x83552f(0x2c8)]({'options':{..._0x1db27f,..._0x5f54b9},'args':_0xb076cf?[_0xb076cf]:[],'tdx':_0x5002b6});gracefulExit(_0x239d6a);});const segmentCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x366))[a2_0x3562dc(0x1ae)]('sg')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x25e)),segmentListAction=async(_0x38ce6d,_0x27fc56)=>{const _0x431273=a2_0x3562dc,_0x47cf68=new SegmentsCommand(),_0x4bf95e=program[_0x431273(0x3a0)](),_0x1e1523=await createTDXInstance(_0x4bf95e),_0x195bbf=await _0x47cf68[_0x431273(0x2c8)]({'options':{..._0x4bf95e,..._0x27fc56},'args':_0x38ce6d?[_0x38ce6d]:[],'tdx':_0x1e1523});gracefulExit(_0x195bbf);};segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x18a))[a2_0x3562dc(0x2e5)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')['option'](a2_0x3562dc(0x194),a2_0x3562dc(0x360))[a2_0x3562dc(0x206)](a2_0x3562dc(0x37a),a2_0x3562dc(0x215),'10')[a2_0x3562dc(0x3ce)](segmentListAction),program[a2_0x3562dc(0x1f8)]('segments\x20[path]',{'hidden':!![]})['description'](a2_0x3562dc(0x3e8))[a2_0x3562dc(0x206)](a2_0x3562dc(0x194),a2_0x3562dc(0x360))['option'](a2_0x3562dc(0x37a),a2_0x3562dc(0x215),'10')[a2_0x3562dc(0x3ce)](segmentListAction),segmentCmd['command'](a2_0x3562dc(0x1f7),{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x264))['action'](async(_0x3d0466,_0x312992)=>{const _0x5e9e3b=a2_0x3562dc,_0x3ec14d=new SegmentUseCommand(),_0x4f975c=program[_0x5e9e3b(0x3a0)](),_0x201ba2=await createTDXInstance(_0x4f975c),_0x1adcfb=await _0x3ec14d[_0x5e9e3b(0x2c8)]({'options':{..._0x4f975c,..._0x312992},'args':[_0x3d0466],'tdx':_0x201ba2});gracefulExit(_0x1adcfb);});const segmentViewAction=async(_0x50f564,_0x223400)=>{const _0x5f534d=new SegmentViewCommand(),_0xeed3dd=program['opts'](),_0x1bc294=await createTDXInstance(_0xeed3dd),_0xaedcbb=await _0x5f534d['run']({'options':{..._0xeed3dd,..._0x223400},'args':_0x50f564?[_0x50f564]:[],'tdx':_0x1bc294});gracefulExit(_0xaedcbb);};segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x337))[a2_0x3562dc(0x2e5)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x185),'Open\x20segment\x20in\x20web\x20browser')['action'](segmentViewAction),segmentCmd['command'](a2_0x3562dc(0x265),{'hidden':!![]})['alias'](a2_0x3562dc(0x3d0))[a2_0x3562dc(0x206)](a2_0x3562dc(0x185),a2_0x3562dc(0x381))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x393))[a2_0x3562dc(0x3ce)](segmentViewAction),segmentCmd[a2_0x3562dc(0x1f8)]('desc\x20[segment_name]')[a2_0x3562dc(0x2e5)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x3562dc(0x3ce)](async(_0x4cac44,_0x102411)=>{const _0x380db4=a2_0x3562dc,_0x4d8a1d=new SegmentDescCommand(),_0x88d4b9=program[_0x380db4(0x3a0)](),_0x3fed3c=await createTDXInstance(_0x88d4b9),_0xa881f5=await _0x4d8a1d[_0x380db4(0x2c8)]({'options':{..._0x88d4b9,..._0x102411},'args':_0x4cac44?[_0x4cac44]:[],'tdx':_0x3fed3c});gracefulExit(_0xa881f5);}),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x186))[a2_0x3562dc(0x2e5)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x3562dc(0x3ce)](async(_0x5525a5,_0x25d762)=>{const _0x326391=a2_0x3562dc,_0xd75d0=new SegmentShowCommand(),_0x41fade=program['opts'](),_0x99d9fe=await createTDXInstance(_0x41fade),_0x578610=await _0xd75d0[_0x326391(0x2c8)]({'options':{..._0x41fade,..._0x25d762},'args':_0x5525a5?[_0x5525a5]:[],'tdx':_0x99d9fe});gracefulExit(_0x578610);}),segmentCmd['command'](a2_0x3562dc(0x3cc),{'hidden':!![]})['description'](a2_0x3562dc(0x29c))[a2_0x3562dc(0x3ce)](async(_0x13028b,_0x20e6e2)=>{const _0x3c04a0=a2_0x3562dc,_0x23fdf5=new SegmentFolderListCommand(),_0x9e3db8=program[_0x3c04a0(0x3a0)](),_0x3ae46e=await createTDXInstance(_0x9e3db8),_0x2946e1=await _0x23fdf5['run']({'options':{..._0x9e3db8,..._0x20e6e2},'args':[_0x13028b],'tdx':_0x3ae46e});gracefulExit(_0x2946e1);});const folderCmd=segmentCmd['command'](a2_0x3562dc(0x38f),{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x32a));folderCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x22f))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2e9))[a2_0x3562dc(0x3ce)](async(_0x2a3d7e,_0x34b5f3)=>{const _0x55adad=a2_0x3562dc,_0x1dacd9=new SegmentFolderShowCommand(),_0x5e3488=program[_0x55adad(0x3a0)](),_0x39edbd=await createTDXInstance(_0x5e3488),_0x148551=await _0x1dacd9[_0x55adad(0x2c8)]({'options':{..._0x5e3488,..._0x34b5f3},'args':[_0x2a3d7e],'tdx':_0x39edbd});gracefulExit(_0x148551);}),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2d8))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x293))[a2_0x3562dc(0x3ce)](async(_0x1ad272,_0x28dd82)=>{const _0x54bc5c=a2_0x3562dc,_0x133a78=new SegmentSQLCommand(),_0x2bde53=program[_0x54bc5c(0x3a0)](),_0x4a6471=await createTDXInstance(_0x2bde53),_0x45a21a=await _0x133a78[_0x54bc5c(0x2c8)]({'options':{..._0x2bde53,..._0x28dd82},'args':_0x1ad272?[_0x1ad272]:[],'tdx':_0x4a6471});gracefulExit(_0x45a21a);}),segmentCmd['command']('fields\x20[parent_name]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x35b))[a2_0x3562dc(0x3ce)](async(_0x74bf71,_0xe15c9a)=>{const _0x28ccd9=a2_0x3562dc,_0x118f63=new SegmentFieldsCommand(),_0x49ff42=program[_0x28ccd9(0x3a0)](),_0xb86367=await createTDXInstance(_0x49ff42),_0x3ce7ec=await _0x118f63['run']({'options':{..._0x49ff42,..._0xe15c9a},'args':_0x74bf71?[_0x74bf71]:[],'tdx':_0xb86367});gracefulExit(_0x3ce7ec);}),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x35e))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x295))['option'](a2_0x3562dc(0x227),'Skip\x20confirmation\x20prompts')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),a2_0x3562dc(0x256))['action'](async(_0x11570,_0x31e925)=>{const _0xad7fd1=a2_0x3562dc,_0x356f57=new SegmentPullCommand(),_0x3e15dd=program[_0xad7fd1(0x3a0)](),_0x419e47=await createTDXInstance(_0x3e15dd),_0x160d6e=await _0x356f57['run']({'options':{..._0x3e15dd,..._0x31e925},'args':_0x11570?[_0x11570]:[],'tdx':_0x419e47});gracefulExit(_0x160d6e);}),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2e2))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x189))[a2_0x3562dc(0x206)](a2_0x3562dc(0x227),a2_0x3562dc(0x223))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3562dc(0x206)](a2_0x3562dc(0x21e),a2_0x3562dc(0x3d4))[a2_0x3562dc(0x3ce)](async(_0x3b81e2,_0x42e97f)=>{const _0x10296d=a2_0x3562dc,_0x55d08a=new SegmentPushCommand(),_0x4df416=program[_0x10296d(0x3a0)](),_0xb2e5c2=await createTDXInstance(_0x4df416),_0x2e6f93=await _0x55d08a[_0x10296d(0x2c8)]({'options':{..._0x4df416,..._0x42e97f},'args':_0x3b81e2?[_0x3b81e2]:[],'tdx':_0xb2e5c2});gracefulExit(_0x2e6f93);}),segmentCmd['command'](a2_0x3562dc(0x20c))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x369))['action'](async(_0x2c4fa1,_0x58e58f)=>{const _0x3f00e8=a2_0x3562dc,_0x20a6fa=new SegmentValidateCommand(),_0x3fd73f=program[_0x3f00e8(0x3a0)](),_0x28bb75=await createTDXInstance(_0x3fd73f),_0x54b709=await _0x20a6fa[_0x3f00e8(0x2c8)]({'options':{..._0x3fd73f,..._0x58e58f},'args':_0x2c4fa1?[_0x2c4fa1]:[],'tdx':_0x28bb75});gracefulExit(_0x54b709);}),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3a1),{'hidden':!![]})[a2_0x3562dc(0x2e5)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x3562dc(0x154),a2_0x3562dc(0x3d9))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2ea),a2_0x3562dc(0x3bd))[a2_0x3562dc(0x206)](a2_0x3562dc(0x376),a2_0x3562dc(0x1fe))['option'](a2_0x3562dc(0x184),'Folder\x20name\x20for\x20organization')[a2_0x3562dc(0x206)](a2_0x3562dc(0x38b),a2_0x3562dc(0x26d))[a2_0x3562dc(0x206)](a2_0x3562dc(0x34c),a2_0x3562dc(0x1c8))[a2_0x3562dc(0x206)](a2_0x3562dc(0x261),'Skip\x20population\x20counting')[a2_0x3562dc(0x3ce)](async(_0xc88865,_0x19dac3)=>{const _0x5d2f7e=a2_0x3562dc,_0x19dfbc=new SegmentCreateCommand(),_0x143527=program[_0x5d2f7e(0x3a0)](),_0x488d28=await createTDXInstance(_0x143527),_0x4a4167=await _0x19dfbc[_0x5d2f7e(0x2c8)]({'options':{..._0x143527,..._0x19dac3},'args':[_0xc88865],'tdx':_0x488d28});gracefulExit(_0x4a4167);}),segmentCmd['command'](a2_0x3562dc(0x2d2),{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x19d))[a2_0x3562dc(0x206)](a2_0x3562dc(0x157),a2_0x3562dc(0x2bc))['option'](a2_0x3562dc(0x154),a2_0x3562dc(0x288))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2ea),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3562dc(0x206)](a2_0x3562dc(0x376),a2_0x3562dc(0x2fb))[a2_0x3562dc(0x206)](a2_0x3562dc(0x184),a2_0x3562dc(0x1af))[a2_0x3562dc(0x206)]('--kind\x20<type>',a2_0x3562dc(0x26d))[a2_0x3562dc(0x3ce)](async(_0x1a631d,_0x173c56)=>{const _0x4d893b=a2_0x3562dc,_0x2a0585=new SegmentUpdateCommand(),_0x114467=program[_0x4d893b(0x3a0)](),_0x197085=await createTDXInstance(_0x114467),_0x4a6711=await _0x2a0585[_0x4d893b(0x2c8)]({'options':{..._0x114467,..._0x173c56},'args':[_0x1a631d],'tdx':_0x197085});gracefulExit(_0x4a6711);});const parentCmd=segmentCmd['command'](a2_0x3562dc(0x386),{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1b2)),parentListAction=async(_0x21d2ba,_0x5ec04a)=>{const _0x57c489=a2_0x3562dc,_0xf819bf=new ParentSegmentListCommand(),_0x4a0dd5=program[_0x57c489(0x3a0)](),_0x38b1a2=await createTDXInstance(_0x4a0dd5),_0x1b9618=await _0xf819bf[_0x57c489(0x2c8)]({'options':{..._0x4a0dd5,..._0x5ec04a},'args':_0x21d2ba?[_0x21d2ba]:[],'tdx':_0x38b1a2});gracefulExit(_0x1b9618);};parentCmd[a2_0x3562dc(0x1f8)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x3562dc(0x3ce)](parentListAction),segmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2d9),{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1c2))[a2_0x3562dc(0x3ce)](parentListAction),parentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x16f))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1ee))[a2_0x3562dc(0x206)](a2_0x3562dc(0x20d),'Output\x20file\x20path\x20(default:\x20<name>.yml)')['option'](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x318e24,_0x38e56d)=>{const _0x312bcc=a2_0x3562dc,_0x33f3be=new ParentSegmentPullCommand(),_0x1050cd=program['opts'](),_0x3e57da=await createTDXInstance(_0x1050cd),_0x46c094=await _0x33f3be[_0x312bcc(0x2c8)]({'options':{..._0x1050cd,..._0x38e56d},'args':_0x318e24?[_0x318e24]:[],'tdx':_0x3e57da});gracefulExit(_0x46c094);}),parentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x173))['description'](a2_0x3562dc(0x2b3))['option']('-y,\x20--yes',a2_0x3562dc(0x37f))['action'](async(_0x56f64b,_0x3c2b37)=>{const _0x519fad=a2_0x3562dc,_0x5b8f0d=new ParentSegmentPushCommand(),_0x36cdba=program[_0x519fad(0x3a0)](),_0x2a55c9=await createTDXInstance(_0x36cdba),_0x580543=await _0x5b8f0d['run']({'options':{..._0x36cdba,..._0x3c2b37},'args':_0x56f64b?[_0x56f64b]:[],'tdx':_0x2a55c9});gracefulExit(_0x580543);}),parentCmd['command'](a2_0x3562dc(0x2b6))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x17f))['option'](a2_0x3562dc(0x30c),a2_0x3562dc(0x1ef))['option'](a2_0x3562dc(0x3a5),a2_0x3562dc(0x323))[a2_0x3562dc(0x206)](a2_0x3562dc(0x16a),a2_0x3562dc(0x3a3))[a2_0x3562dc(0x206)](a2_0x3562dc(0x246),a2_0x3562dc(0x196))[a2_0x3562dc(0x206)](a2_0x3562dc(0x315),a2_0x3562dc(0x2a3),a2_0x3562dc(0x26e))[a2_0x3562dc(0x3ce)](async(_0x39d5db,_0x574cd3)=>{const _0x2d069e=a2_0x3562dc,_0x21ab1e=new ParentSegmentValidateCommand(),_0x3b12e6=program[_0x2d069e(0x3a0)](),_0x217781=await createTDXInstance(_0x3b12e6),_0xb7849=await _0x21ab1e[_0x2d069e(0x2c8)]({'options':{..._0x3b12e6,..._0x574cd3},'args':_0x39d5db?[_0x39d5db]:[],'tdx':_0x217781});gracefulExit(_0xb7849);}),parentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x370))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x20f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x30c),a2_0x3562dc(0x31e))[a2_0x3562dc(0x206)]('--attribute\x20[name]',a2_0x3562dc(0x35f))['option']('--behavior\x20[name]',a2_0x3562dc(0x306))['option']('--enriched',a2_0x3562dc(0x3cb))[a2_0x3562dc(0x206)]('--interval\x20<range>',a2_0x3562dc(0x2a3),a2_0x3562dc(0x26e))[a2_0x3562dc(0x3ce)](async(_0x1b4e44,_0x32df0e)=>{const _0x32218b=a2_0x3562dc,_0x3366bb=new ParentSegmentPreviewCommand(),_0x2d5e39=program[_0x32218b(0x3a0)](),_0x301dd7=await createTDXInstance(_0x2d5e39),_0x4894d7=await _0x3366bb[_0x32218b(0x2c8)]({'options':{..._0x2d5e39,..._0x32df0e},'args':_0x1b4e44?[_0x1b4e44]:[],'tdx':_0x301dd7});gracefulExit(_0x4894d7);}),parentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x23d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x19e))[a2_0x3562dc(0x206)](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x51dd76,_0x18e90c)=>{const _0x585873=a2_0x3562dc,_0x42cb09=new ParentSegmentRunCommand(),_0x4a6aae=program[_0x585873(0x3a0)](),_0x4ca48a=await createTDXInstance(_0x4a6aae),_0x5278a0=await _0x42cb09['run']({'options':{..._0x4a6aae,..._0x18e90c},'args':_0x51dd76?[_0x51dd76]:[],'tdx':_0x4ca48a});gracefulExit(_0x5278a0);});const parentSegmentCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x302))[a2_0x3562dc(0x1ae)]('ps')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3b3));parentSegmentCmd['command'](a2_0x3562dc(0x3c7))['description'](a2_0x3562dc(0x305))[a2_0x3562dc(0x3ce)](parentListAction),parentSegmentCmd[a2_0x3562dc(0x1f8)]('pull\x20[name]')['description'](a2_0x3562dc(0x388))['option'](a2_0x3562dc(0x20d),'Output\x20file\x20path')['option'](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))['option']('-u,\x20--use','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x3562dc(0x3ce)](async(_0x4a4d9d,_0x2c9198)=>{const _0x42ed26=a2_0x3562dc,_0x2618b0=new ParentSegmentPullCommand(),_0x3baf5b=program[_0x42ed26(0x3a0)](),_0x2fbe39=await createTDXInstance(_0x3baf5b),_0x132bfe=await _0x2618b0[_0x42ed26(0x2c8)]({'options':{..._0x3baf5b,..._0x2c9198},'args':_0x4a4d9d?[_0x4a4d9d]:[],'tdx':_0x2fbe39});gracefulExit(_0x132bfe);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x169))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x187))['option']('-y,\x20--yes',a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x4b8af6,_0x56cf27)=>{const _0x3ee090=a2_0x3562dc,_0x4cc78e=new ParentSegmentPushCommand(),_0xcdb283=program[_0x3ee090(0x3a0)](),_0x5dd438=await createTDXInstance(_0xcdb283),_0x73d153=await _0x4cc78e[_0x3ee090(0x2c8)]({'options':{..._0xcdb283,..._0x56cf27},'args':_0x4b8af6?[_0x4b8af6]:[],'tdx':_0x5dd438});gracefulExit(_0x73d153);}),parentSegmentCmd[a2_0x3562dc(0x1f8)]('validate\x20[name]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x17f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x30c),'Show\x20only\x20master\x20table\x20validation')['option'](a2_0x3562dc(0x3a5),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3562dc(0x206)](a2_0x3562dc(0x16a),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3562dc(0x206)](a2_0x3562dc(0x246),a2_0x3562dc(0x196))[a2_0x3562dc(0x206)](a2_0x3562dc(0x315),a2_0x3562dc(0x2a3),a2_0x3562dc(0x26e))[a2_0x3562dc(0x3ce)](async(_0x3cdfd1,_0x500e88)=>{const _0x516007=a2_0x3562dc,_0x1545b8=new ParentSegmentValidateCommand(),_0x24dc2f=program[_0x516007(0x3a0)](),_0x9f02b1=await createTDXInstance(_0x24dc2f),_0x18fd56=await _0x1545b8[_0x516007(0x2c8)]({'options':{..._0x24dc2f,..._0x500e88},'args':_0x3cdfd1?[_0x3cdfd1]:[],'tdx':_0x9f02b1});gracefulExit(_0x18fd56);}),parentSegmentCmd['command'](a2_0x3562dc(0x32d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x20f))['option']('--master',a2_0x3562dc(0x31e))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3a5),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3562dc(0x206)](a2_0x3562dc(0x16a),a2_0x3562dc(0x306))[a2_0x3562dc(0x206)](a2_0x3562dc(0x246),a2_0x3562dc(0x3cb))['option'](a2_0x3562dc(0x315),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3562dc(0x26e))['action'](async(_0x478665,_0x25f4fb)=>{const _0x5b3832=a2_0x3562dc,_0x9db912=new ParentSegmentPreviewCommand(),_0x1169b5=program[_0x5b3832(0x3a0)](),_0x30e5f9=await createTDXInstance(_0x1169b5),_0x50dcda=await _0x9db912[_0x5b3832(0x2c8)]({'options':{..._0x1169b5,..._0x25f4fb},'args':_0x478665?[_0x478665]:[],'tdx':_0x30e5f9});gracefulExit(_0x50dcda);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x23d))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x227),'Skip\x20confirmation\x20prompt')['action'](async(_0x18d2ea,_0x34305e)=>{const _0x1db629=a2_0x3562dc,_0x57a164=new ParentSegmentRunCommand(),_0x3199f2=program[_0x1db629(0x3a0)](),_0xcd3fe8=await createTDXInstance(_0x3199f2),_0x36d5be=await _0x57a164[_0x1db629(0x2c8)]({'options':{..._0x3199f2,..._0x34305e},'args':_0x18d2ea?[_0x18d2ea]:[],'tdx':_0xcd3fe8});gracefulExit(_0x36d5be);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x258))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x34e))['option'](a2_0x3562dc(0x19a),'Output\x20as\x20JSON')[a2_0x3562dc(0x206)]('--jsonl',a2_0x3562dc(0x1d3))['action'](async(_0x53ee9c,_0x3124d3)=>{const _0x49ead9=a2_0x3562dc,_0x41817a=new ParentSegmentFieldsCommand(),_0x55565f=program['opts'](),_0x735b9e=await createTDXInstance(_0x55565f),_0x3cffc9=await _0x41817a[_0x49ead9(0x2c8)]({'options':{..._0x55565f,..._0x3124d3},'args':_0x53ee9c?[_0x53ee9c]:[],'tdx':_0x735b9e});gracefulExit(_0x3cffc9);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2d3))['description'](a2_0x3562dc(0x1e6))[a2_0x3562dc(0x206)](a2_0x3562dc(0x185),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x3562dc(0x206)](a2_0x3562dc(0x19a),a2_0x3562dc(0x236))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2de),a2_0x3562dc(0x1d3))[a2_0x3562dc(0x3ce)](async(_0x3da820,_0x1d270)=>{const _0x4bc737=a2_0x3562dc,_0xfb061f=new ParentSegmentViewCommand(),_0x5837ac=program['opts'](),_0xb8f7ad=await createTDXInstance(_0x5837ac),_0x5d4160=await _0xfb061f[_0x4bc737(0x2c8)]({'options':{..._0x5837ac,..._0x1d270},'args':_0x3da820?[_0x3da820]:[],'tdx':_0xb8f7ad});gracefulExit(_0x5d4160);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x18f))['description']('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x20d),a2_0x3562dc(0x2d7))['option'](a2_0x3562dc(0x19a),a2_0x3562dc(0x236))[a2_0x3562dc(0x206)]('--jsonl',a2_0x3562dc(0x1d3))[a2_0x3562dc(0x3ce)](async(_0x19bb21,_0x1d3722)=>{const _0x33aa1b=a2_0x3562dc,_0x5dd57b=new ParentSegmentDescCommand(),_0x466878=program[_0x33aa1b(0x3a0)](),_0x5de939=await createTDXInstance(_0x466878),_0x16da9a=await _0x5dd57b[_0x33aa1b(0x2c8)]({'options':{..._0x466878,..._0x1d3722},'args':_0x19bb21?[_0x19bb21]:[],'tdx':_0x5de939});gracefulExit(_0x16da9a);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x250))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2bd))[a2_0x3562dc(0x206)]('--json',a2_0x3562dc(0x236))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2de),'Output\x20as\x20JSON\x20Lines')[a2_0x3562dc(0x3ce)](async(_0x398a56,_0x5720e0)=>{const _0x4d2ac2=a2_0x3562dc,_0x32c132=new ParentSegmentSQLCommand(),_0xe7c4ba=program[_0x4d2ac2(0x3a0)](),_0x40e066=await createTDXInstance(_0xe7c4ba),_0x2303f6=await _0x32c132[_0x4d2ac2(0x2c8)]({'options':{..._0xe7c4ba,..._0x5720e0},'args':_0x398a56?[_0x398a56]:[],'tdx':_0x40e066});gracefulExit(_0x2303f6);}),parentSegmentCmd['command'](a2_0x3562dc(0x1cb))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x287))[a2_0x3562dc(0x206)]('--limit\x20<n>',a2_0x3562dc(0x314))[a2_0x3562dc(0x206)]('--json',a2_0x3562dc(0x236))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2de),'Output\x20as\x20JSON\x20Lines')[a2_0x3562dc(0x3ce)](async(_0x127327,_0x5ea4d4)=>{const _0x4add14=a2_0x3562dc,_0x12930a=new ParentSegmentShowCommand(),_0x2c555a=program[_0x4add14(0x3a0)](),_0x3e0b69=await createTDXInstance(_0x2c555a),_0x2cc3d8=await _0x12930a[_0x4add14(0x2c8)]({'options':{..._0x2c555a,..._0x5ea4d4},'args':_0x127327?[_0x127327]:[],'tdx':_0x3e0b69});gracefulExit(_0x2cc3d8);}),parentSegmentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x36f))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x17e))[a2_0x3562dc(0x3ce)](async(_0x1c22a8,_0x4e6596)=>{const _0x28ce86=a2_0x3562dc,_0x2be3d0=new UseCommand(),_0x41827b=program[_0x28ce86(0x3a0)](),_0x104520=_0x1c22a8?['parent_segment',_0x1c22a8]:[],_0x5bc216=await _0x2be3d0['run']({'options':{..._0x41827b,..._0x4e6596},'args':_0x104520,'tdx':null});gracefulExit(_0x5bc216);});const psRtCmd=parentSegmentCmd[a2_0x3562dc(0x1f8)]('rt')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x38d));psRtCmd['command'](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x3562dc(0x3ce)](async(_0x13d77f,_0x400cdc)=>{const _0x594d47=a2_0x3562dc,_0x4340a7=new PSRtListCommand(),_0x31b0b3=program[_0x594d47(0x3a0)](),_0x5d72aa=await createTDXInstance(_0x31b0b3),_0x11d8c6=await _0x4340a7['run']({'options':{..._0x31b0b3,..._0x400cdc},'args':_0x13d77f?[_0x13d77f]:[],'tdx':_0x5d72aa});gracefulExit(_0x11d8c6);}),psRtCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x289))[a2_0x3562dc(0x2e5)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x3562dc(0x3ce)](async(_0x31c968,_0x29a7e3)=>{const _0x6f4b39=a2_0x3562dc,_0x49de00=new PSRtValidateCommand(),_0x5eb175=program['opts'](),_0x12dd0c=await createTDXInstance(_0x5eb175),_0x27efaa=await _0x49de00[_0x6f4b39(0x2c8)]({'options':{..._0x5eb175,..._0x29a7e3},'args':_0x31c968?[_0x31c968]:[],'tdx':_0x12dd0c});gracefulExit(_0x27efaa);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x38d));parentRtCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x399))[a2_0x3562dc(0x3ce)](async(_0x1038c4,_0x3f5bd1)=>{const _0xa565b3=a2_0x3562dc,_0x5192de=new PSRtListCommand(),_0x1f00ce=program[_0xa565b3(0x3a0)](),_0x2b8779=await createTDXInstance(_0x1f00ce),_0x4a5d0d=await _0x5192de['run']({'options':{..._0x1f00ce,..._0x3f5bd1},'args':_0x1038c4?[_0x1038c4]:[],'tdx':_0x2b8779});gracefulExit(_0x4a5d0d);}),parentRtCmd['command'](a2_0x3562dc(0x289))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x249))[a2_0x3562dc(0x3ce)](async(_0x3edd8c,_0x2d60ff)=>{const _0x249d29=a2_0x3562dc,_0x2ce5ba=new PSRtValidateCommand(),_0x2773ac=program[_0x249d29(0x3a0)](),_0x156644=await createTDXInstance(_0x2773ac),_0x25fc3e=await _0x2ce5ba[_0x249d29(0x2c8)]({'options':{..._0x2773ac,..._0x2d60ff},'args':_0x3edd8c?[_0x3edd8c]:[],'tdx':_0x156644});gracefulExit(_0x25fc3e);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x3562dc(0x2e5)]('Personalization\x20service\x20management');psPzCmd[a2_0x3562dc(0x1f8)]('list\x20[name]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x32f))[a2_0x3562dc(0x3ce)](async(_0x2989d7,_0x5e89b5)=>{const _0xf7b79a=a2_0x3562dc,_0x556b9e=new PSPzListCommand(),_0x321bea=program[_0xf7b79a(0x3a0)](),_0x65f63e=await createTDXInstance(_0x321bea),_0x5d1e54=await _0x556b9e[_0xf7b79a(0x2c8)]({'options':{..._0x321bea,..._0x5e89b5},'args':_0x2989d7?[_0x2989d7]:[],'tdx':_0x65f63e});gracefulExit(_0x5d1e54);}),psPzCmd[a2_0x3562dc(0x1f8)]('init\x20[name]')['description'](a2_0x3562dc(0x36a))[a2_0x3562dc(0x3ce)](async(_0x22460a,_0x3e5eb2)=>{const _0x5cc080=a2_0x3562dc,_0x29b3b5=new PSPzInitCommand(),_0x51b476=program[_0x5cc080(0x3a0)](),_0x23c810=await createTDXInstance(_0x51b476),_0x326991=await _0x29b3b5[_0x5cc080(0x2c8)]({'options':{..._0x51b476,..._0x3e5eb2},'args':_0x22460a?[_0x22460a]:[],'tdx':_0x23c810});gracefulExit(_0x326991);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x3562dc(0x2e5)]('Personalization\x20service\x20management');parentPzCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1f1))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x32f))[a2_0x3562dc(0x3ce)](async(_0x1cdd26,_0x3d3ae8)=>{const _0x2e68ce=a2_0x3562dc,_0x4f82aa=new PSPzListCommand(),_0x2216f0=program[_0x2e68ce(0x3a0)](),_0x10598b=await createTDXInstance(_0x2216f0),_0x3b5d0e=await _0x4f82aa['run']({'options':{..._0x2216f0,..._0x3d3ae8},'args':_0x1cdd26?[_0x1cdd26]:[],'tdx':_0x10598b});gracefulExit(_0x3b5d0e);}),parentPzCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2f9))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x36a))[a2_0x3562dc(0x3ce)](async(_0x514c38,_0x15d5cd)=>{const _0x197819=new PSPzInitCommand(),_0x6b73b6=program['opts'](),_0x4ccc85=await createTDXInstance(_0x6b73b6),_0x14e6c1=await _0x197819['run']({'options':{..._0x6b73b6,..._0x15d5cd},'args':_0x514c38?[_0x514c38]:[],'tdx':_0x4ccc85});gracefulExit(_0x14e6c1);}),parentCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x217))[a2_0x3562dc(0x2e5)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3562dc(0x1bd)]('--database\x20<db>','Master\x20database\x20name')[a2_0x3562dc(0x1bd)](a2_0x3562dc(0x2eb),a2_0x3562dc(0x310))[a2_0x3562dc(0x206)](a2_0x3562dc(0x154),a2_0x3562dc(0x1ac))[a2_0x3562dc(0x206)](a2_0x3562dc(0x269),a2_0x3562dc(0x24a))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3a6),a2_0x3562dc(0x1df))[a2_0x3562dc(0x206)]('--timezone\x20<tz>',a2_0x3562dc(0x178))[a2_0x3562dc(0x206)](a2_0x3562dc(0x30f),a2_0x3562dc(0x2da))[a2_0x3562dc(0x206)](a2_0x3562dc(0x151),a2_0x3562dc(0x277))[a2_0x3562dc(0x206)]('--behaviors\x20<json>',a2_0x3562dc(0x3a4))['option'](a2_0x3562dc(0x342),a2_0x3562dc(0x3df))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1bc),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3d1),a2_0x3562dc(0x3e6))[a2_0x3562dc(0x3ce)](async(_0x6129ac,_0x13aa87)=>{const _0x1c2422=a2_0x3562dc,_0x49244a=new ParentSegmentCreateCommand(),_0x5ccfca=program[_0x1c2422(0x3a0)](),_0x2d71ff=await createTDXInstance(_0x5ccfca),_0x15b215=await _0x49244a[_0x1c2422(0x2c8)]({'options':{..._0x5ccfca,..._0x13aa87},'args':[_0x6129ac],'tdx':_0x2d71ff});gracefulExit(_0x15b215);}),parentCmd['command']('update\x20<name>')[a2_0x3562dc(0x2e5)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x3562dc(0x154),a2_0x3562dc(0x288))[a2_0x3562dc(0x206)](a2_0x3562dc(0x269),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x3562dc(0x3a6),a2_0x3562dc(0x343))[a2_0x3562dc(0x206)](a2_0x3562dc(0x292),a2_0x3562dc(0x1ba))['option'](a2_0x3562dc(0x275),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3562dc(0x206)](a2_0x3562dc(0x27d),a2_0x3562dc(0x1f5))['option'](a2_0x3562dc(0x253),a2_0x3562dc(0x176))[a2_0x3562dc(0x206)]('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x3562dc(0x3ce)](async(_0x149390,_0xa7989e)=>{const _0x4db9ab=new ParentSegmentUpdateCommand(),_0x3ce17b=program['opts'](),_0x2211e0=await createTDXInstance(_0x3ce17b),_0x52f4ad=await _0x4db9ab['run']({'options':{..._0x3ce17b,..._0xa7989e},'args':[_0x149390],'tdx':_0x2211e0});gracefulExit(_0x52f4ad);}),folderCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3b4))['description'](a2_0x3562dc(0x2e8))[a2_0x3562dc(0x206)](a2_0x3562dc(0x154),a2_0x3562dc(0x222))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3e1),a2_0x3562dc(0x1c3))[a2_0x3562dc(0x3ce)](async(_0x4085ff,_0x1fad91,_0x43abfa)=>{const _0x3a4122=a2_0x3562dc,_0x4fbefd=new SegmentFolderCreateCommand(),_0x4652be=program[_0x3a4122(0x3a0)](),_0x2fab87=await createTDXInstance(_0x4652be),_0x2ad786=await _0x4fbefd[_0x3a4122(0x2c8)]({'options':{..._0x4652be,..._0x43abfa},'args':[_0x4085ff,_0x1fad91],'tdx':_0x2fab87});gracefulExit(_0x2ad786);}),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x22a))['description'](a2_0x3562dc(0x396))[a2_0x3562dc(0x3ce)](async(_0xe40363,_0x39ba4a)=>{const _0x4beda0=a2_0x3562dc,_0x38d86d=new ActivationsCommand(),_0x89e680=program[_0x4beda0(0x3a0)](),_0x75a7c1=await createTDXInstance(_0x89e680),_0x1dea2f=await _0x38d86d[_0x4beda0(0x2c8)]({'options':{..._0x89e680,..._0x39ba4a},'args':[_0xe40363],'tdx':_0x75a7c1});gracefulExit(_0x1dea2f);});const workflowCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x25f))[a2_0x3562dc(0x1ae)]('wf')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1a9)),wfProjectCmd=workflowCmd['command']('project')['description']('Workflow\x20project\x20management'),wfProjectListAction=async(_0x5741fa,_0x1d587b)=>{const _0x366081=a2_0x3562dc,_0x172465=new WorkflowProjectsCommand(),_0xb35dc1=program[_0x366081(0x3a0)](),_0x9badf4=await createTDXInstance(_0xb35dc1),_0x5fd397=await _0x172465[_0x366081(0x2c8)]({'options':{..._0xb35dc1,..._0x1d587b},'args':_0x5741fa?[_0x5741fa]:[],'tdx':_0x9badf4});gracefulExit(_0x5fd397);};wfProjectCmd[a2_0x3562dc(0x1f8)]('list\x20[pattern]')['description'](a2_0x3562dc(0x333))[a2_0x3562dc(0x3ce)](wfProjectListAction),workflowCmd[a2_0x3562dc(0x1f8)]('projects\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x347))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x242d07,_0x4a0254)=>{const _0x565e9c=a2_0x3562dc,_0x5c6844=new WorkflowWorkflowsCommand(),_0xae4c0b=program['opts'](),_0x1afbba=await createTDXInstance(_0xae4c0b),_0x2bfa39=await _0x5c6844[_0x565e9c(0x2c8)]({'options':{..._0xae4c0b,..._0x4a0254},'args':_0x242d07?[_0x242d07]:[],'tdx':_0x1afbba});gracefulExit(_0x2bfa39);};workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x312))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x33a))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x209))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1a8)),wfSessionListAction=async(_0x1b9704,_0x18fa53)=>{const _0x462096=a2_0x3562dc,_0x37c66e=new WorkflowSessionsCommand(),_0x16b7d9=program[_0x462096(0x3a0)](),_0x2309a6=await createTDXInstance(_0x16b7d9),_0x5796d9=await _0x37c66e[_0x462096(0x2c8)]({'options':{..._0x16b7d9,..._0x18fa53},'args':_0x1b9704?[_0x1b9704]:[],'tdx':_0x2309a6});gracefulExit(_0x5796d9);};wfSessionCmd[a2_0x3562dc(0x1f8)]('list\x20[project]')['description'](a2_0x3562dc(0x1dd))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2a1),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x397),a2_0x3562dc(0x279))[a2_0x3562dc(0x206)]('--to\x20<timestamp>',a2_0x3562dc(0x319))[a2_0x3562dc(0x3ce)](wfSessionListAction),workflowCmd['command'](a2_0x3562dc(0x339))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x158))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2a1),a2_0x3562dc(0x317))[a2_0x3562dc(0x206)](a2_0x3562dc(0x397),a2_0x3562dc(0x279))['option'](a2_0x3562dc(0x2a7),a2_0x3562dc(0x319))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x2e8722,_0x3231a2)=>{const _0x36430a=a2_0x3562dc,_0x6cc499=new WorkflowAttemptsCommand(),_0x1b8515=program[_0x36430a(0x3a0)](),_0x45a30=await createTDXInstance(_0x1b8515),_0x517039=await _0x6cc499[_0x36430a(0x2c8)]({'options':{..._0x1b8515,..._0x3231a2},'args':_0x2e8722?[_0x2e8722]:[],'tdx':_0x45a30});gracefulExit(_0x517039);},attemptCmd=workflowCmd['command']('attempt')['description']('Workflow\x20attempt\x20management')[a2_0x3562dc(0x2d1)](a2_0x3562dc(0x2ac),a2_0x3562dc(0x263))[a2_0x3562dc(0x2d1)](a2_0x3562dc(0x274),a2_0x3562dc(0x1f9))['argument']('[task-name]',a2_0x3562dc(0x179))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3d6),a2_0x3562dc(0x34a))['option'](a2_0x3562dc(0x324),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x3562dc(0x318),a2_0x3562dc(0x1a7))[a2_0x3562dc(0x206)](a2_0x3562dc(0x257),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x2db),'Force\x20retry\x20even\x20if\x20not\x20failed')['option'](a2_0x3562dc(0x192),a2_0x3562dc(0x153))[a2_0x3562dc(0x3ce)](async(_0x166405,_0x1fce7d,_0x500153,_0x51d78c)=>{const _0x1f8d00=a2_0x3562dc;if(_0x166405===_0x1f8d00(0x182)){await wfAttemptListAction(_0x1fce7d,_0x51d78c);return;}if(!_0x166405){attemptCmd[_0x1f8d00(0x3d7)]();return;}const _0x42ebce=program['opts'](),_0x4e0881=await createTDXInstance(_0x42ebce);let _0x2b581b=0x0;if(!_0x1fce7d){const _0x27cd7e=new WorkflowAttemptCommand();_0x2b581b=await _0x27cd7e[_0x1f8d00(0x2c8)]({'options':{..._0x42ebce,..._0x51d78c},'args':[_0x166405],'tdx':_0x4e0881});}else{if(_0x1fce7d===_0x1f8d00(0x195)){const _0x13f820=new WorkflowLogsCommand();_0x2b581b=await _0x13f820[_0x1f8d00(0x2c8)]({'options':{..._0x42ebce,..._0x51d78c},'args':_0x500153?[_0x166405,_0x500153]:[_0x166405],'tdx':_0x4e0881});}else{if(_0x1fce7d===_0x1f8d00(0x238)){const _0x60eca6=new WorkflowTasksCommand();_0x2b581b=await _0x60eca6['run']({'options':{..._0x42ebce,..._0x51d78c},'args':[_0x166405],'tdx':_0x4e0881});}else{if(_0x1fce7d===_0x1f8d00(0x286)){const _0x213e37=new WorkflowKillCommand();_0x2b581b=await _0x213e37[_0x1f8d00(0x2c8)]({'options':{..._0x42ebce,..._0x51d78c},'args':[_0x166405],'tdx':_0x4e0881});}else{if(_0x1fce7d===_0x1f8d00(0x3ca)){const _0x53b9e0=new WorkflowRetryCommand();_0x2b581b=await _0x53b9e0[_0x1f8d00(0x2c8)]({'options':{..._0x42ebce,..._0x51d78c},'args':[_0x1f8d00(0x2ce)+_0x166405],'tdx':_0x4e0881});}else console['error'](_0x1f8d00(0x1cc)+_0x1fce7d),console[_0x1f8d00(0x283)](_0x1f8d00(0x32c)),_0x2b581b=0x1;}}}}gracefulExit(_0x2b581b);});attemptCmd[a2_0x3562dc(0x1f8)]('list\x20[project]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x33f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x192),a2_0x3562dc(0x1c7))[a2_0x3562dc(0x3ce)](wfAttemptListAction),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x260))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x192),a2_0x3562dc(0x1c7))['action'](wfAttemptListAction),workflowCmd[a2_0x3562dc(0x1f8)]('timeline\x20[project.workflow]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x174))['option']('--follow',a2_0x3562dc(0x33c))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1f2),a2_0x3562dc(0x379))['option'](a2_0x3562dc(0x267),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x3562dc(0x3ce)](async(_0x456db1,_0x4bb3df)=>{const _0x53e12f=a2_0x3562dc,_0x41c791=new WorkflowTimelineCommand(),_0x4c4163=program[_0x53e12f(0x3a0)](),_0x27dad2=await createTDXInstance(_0x4c4163),_0x1d5393=await _0x41c791['run']({'options':{..._0x4c4163,..._0x4bb3df},'args':_0x456db1?[_0x456db1]:[],'tdx':_0x27dad2});gracefulExit(_0x1d5393);}),workflowCmd[a2_0x3562dc(0x1f8)]('retry\x20<session-id>')[a2_0x3562dc(0x2e5)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x3562dc(0x3b0),'Resume\x20from\x20specific\x20task')[a2_0x3562dc(0x206)](a2_0x3562dc(0x257),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3562dc(0x3ce)](async(_0x54595c,_0x93963c)=>{const _0x5add63=a2_0x3562dc,_0x451bff=new WorkflowRetryCommand(),_0x3a5a6d=program[_0x5add63(0x3a0)](),_0x4104d2=await createTDXInstance(_0x3a5a6d),_0x55b6b1=await _0x451bff[_0x5add63(0x2c8)]({'options':{..._0x3a5a6d,..._0x93963c},'args':[_0x54595c],'tdx':_0x4104d2});gracefulExit(_0x55b6b1);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3e3))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1da))[a2_0x3562dc(0x206)](a2_0x3562dc(0x156),a2_0x3562dc(0x375),(_0x5b7653,_0x17c145=[])=>[..._0x17c145,_0x5b7653],[])[a2_0x3562dc(0x206)](a2_0x3562dc(0x1b8),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x3562dc(0x3ce)](async(_0x184a1b,_0x2becea)=>{const _0x3cb397=a2_0x3562dc,_0x2d4fa8=new WorkflowRunCommand(),_0x3571ba=program[_0x3cb397(0x3a0)](),_0x3e74df=await createTDXInstance(_0x3571ba),_0x559a58=await _0x2d4fa8[_0x3cb397(0x2c8)]({'options':{..._0x3571ba,..._0x2becea},'args':_0x184a1b?[_0x184a1b]:[],'tdx':_0x3e74df});gracefulExit(_0x559a58);}),workflowCmd['command'](a2_0x3562dc(0x1f4))['description'](a2_0x3562dc(0x164))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1de),a2_0x3562dc(0x35c))['action'](async(_0x1a0eb1,_0xd51fbf,_0x566c2a)=>{const _0x23b886=a2_0x3562dc,_0xdfd27=new WorkflowDownloadCommand(),_0x17155d=program[_0x23b886(0x3a0)](),_0x21f0b7=await createTDXInstance(_0x17155d),_0x4fc188=await _0xdfd27[_0x23b886(0x2c8)]({'options':{..._0x17155d,..._0x566c2a},'args':[_0x1a0eb1,_0xd51fbf||'.'],'tdx':_0x21f0b7});gracefulExit(_0x4fc188);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x31f))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x24f))[a2_0x3562dc(0x206)]('--revision\x20<revision>',a2_0x3562dc(0x205))['option'](a2_0x3562dc(0x3ec),a2_0x3562dc(0x327))[a2_0x3562dc(0x206)](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x349f8a,_0x3c9a55,_0x1bfc11)=>{const _0x11c252=a2_0x3562dc,_0x11e9b8=new WorkflowPullCommand(),_0x20702c=program[_0x11c252(0x3a0)](),_0x321fed=await createTDXInstance(_0x20702c),_0x24637a=await _0x11e9b8[_0x11c252(0x2c8)]({'options':{..._0x20702c,..._0x1bfc11},'args':_0x3c9a55?[_0x349f8a,_0x3c9a55]:[_0x349f8a],'tdx':_0x321fed});gracefulExit(_0x24637a);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x237))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x21f))['option'](a2_0x3562dc(0x1de),a2_0x3562dc(0x199))['option'](a2_0x3562dc(0x3ec),a2_0x3562dc(0x18e))['option']('--skip-validation',a2_0x3562dc(0x34b))['option'](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x134a02,_0xdb713c)=>{const _0x4f3f1f=a2_0x3562dc,_0x1ce664=new WorkflowPushCommand(),_0x37e0f6=program[_0x4f3f1f(0x3a0)](),_0x5ab79c=await createTDXInstance(_0x37e0f6),_0x2d0ab2=await _0x1ce664[_0x4f3f1f(0x2c8)]({'options':{..._0x37e0f6,..._0xdb713c},'args':_0x134a02?[_0x134a02]:[],'tdx':_0x5ab79c});gracefulExit(_0x2d0ab2);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c8))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x28f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x349),'Override\x20project\x20name')[a2_0x3562dc(0x206)]('--revision\x20<revision>','Revision\x20name\x20(default:\x20timestamp)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ea),a2_0x3562dc(0x34b))['action'](async(_0x117c32,_0x462ed9)=>{const _0x5d1bdb=a2_0x3562dc,_0x2efd56=new WorkflowUploadCommand(),_0x1ab6f5=program[_0x5d1bdb(0x3a0)](),_0x1fb669=await createTDXInstance(_0x1ab6f5),_0x26c732=await _0x2efd56['run']({'options':{..._0x1ab6f5,..._0x462ed9},'args':_0x117c32?[_0x117c32]:[],'tdx':_0x1fb669});gracefulExit(_0x26c732);}),workflowCmd['command'](a2_0x3562dc(0x1ea))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x300))[a2_0x3562dc(0x206)](a2_0x3562dc(0x349),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3562dc(0x206)]('--revision\x20<revision>',a2_0x3562dc(0x199))['option'](a2_0x3562dc(0x3ec),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ea),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3562dc(0x206)](a2_0x3562dc(0x227),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](async(_0x343cbc,_0x1ee9bf)=>{const _0x2269b6=a2_0x3562dc,_0x42764b=new WorkflowCloneCommand(),_0x20a1e3=program[_0x2269b6(0x3a0)](),_0x5c9ea2=await createTDXInstance(_0x20a1e3),_0x4a8e90=await _0x42764b[_0x2269b6(0x2c8)]({'options':{..._0x20a1e3,..._0x1ee9bf},'args':_0x343cbc?[_0x343cbc]:[],'tdx':_0x5c9ea2});gracefulExit(_0x4a8e90);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x181))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x37e))['action'](async(_0x213be8,_0x4e2569)=>{const _0x2e4349=a2_0x3562dc,_0x52d035=new WorkflowDeleteCommand(),_0x3dd0c1=program['opts'](),_0x40b4e1=await createTDXInstance(_0x3dd0c1),_0x43b349=await _0x52d035[_0x2e4349(0x2c8)]({'options':{..._0x3dd0c1,..._0x4e2569},'args':[_0x213be8],'tdx':_0x40b4e1});gracefulExit(_0x43b349);}),workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x219))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x29a))['option']('--clear',a2_0x3562dc(0x36e))[a2_0x3562dc(0x3ce)](async(_0x2d4731,_0x2f9741)=>{const _0x55030f=a2_0x3562dc,_0x678380=new WorkflowUseCommand(),_0x1c6f6=program[_0x55030f(0x3a0)](),_0x54a634=await createTDXInstance(_0x1c6f6),_0x422a07=await _0x678380[_0x55030f(0x2c8)]({'options':{..._0x1c6f6,..._0x2f9741},'args':_0x2d4731?[_0x2d4731]:[],'tdx':_0x54a634});gracefulExit(_0x422a07);});const wfSecretsCmd=workflowCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x34f))['description'](a2_0x3562dc(0x150));wfSecretsCmd['command'](a2_0x3562dc(0x2b0))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3e2))[a2_0x3562dc(0x3ce)](async(_0x123f7a,_0x462914)=>{const _0x2583a4=a2_0x3562dc,_0x1200a0=new WorkflowSecretsListCommand(),_0x49c10f=program['opts'](),_0x247695=await createTDXInstance(_0x49c10f),_0x23f22b=await _0x1200a0[_0x2583a4(0x2c8)]({'options':{..._0x49c10f,..._0x462914},'args':_0x123f7a?[_0x123f7a]:[],'tdx':_0x247695});gracefulExit(_0x23f22b);}),wfSecretsCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x361))['description'](a2_0x3562dc(0x1a0))['action'](async(_0x47d223,_0x599047)=>{const _0x29b4ac=a2_0x3562dc,_0x2780fd=new WorkflowSecretsSetCommand(),_0x2b1945=program[_0x29b4ac(0x3a0)](),_0x193b07=await createTDXInstance(_0x2b1945),_0x38968c=await _0x2780fd[_0x29b4ac(0x2c8)]({'options':{..._0x2b1945,..._0x599047},'args':_0x47d223,'tdx':_0x193b07});gracefulExit(_0x38968c);}),wfSecretsCmd['command'](a2_0x3562dc(0x2f3))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1e7))['option']('-y,\x20--yes',a2_0x3562dc(0x37f))['action'](async(_0x15c1e1,_0x16d1e9)=>{const _0x466da4=a2_0x3562dc,_0x2c67ad=new WorkflowSecretsDeleteCommand(),_0x1a94ba=program['opts'](),_0x174532=await createTDXInstance(_0x1a94ba),_0x542182=await _0x2c67ad[_0x466da4(0x2c8)]({'options':{..._0x1a94ba,..._0x16d1e9},'args':_0x15c1e1,'tdx':_0x174532});gracefulExit(_0x542182);});const jobCmd=program[a2_0x3562dc(0x1f8)]('job')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x285)),jobListAction=async _0x2d6193=>{const _0x393b59=a2_0x3562dc,_0xd639e5=new JobListCommand(),_0xe4bdd2=program[_0x393b59(0x3a0)](),_0x5bb32e=await createTDXInstance(_0xe4bdd2),_0x5e1a0d=await _0xd639e5[_0x393b59(0x2c8)]({'options':{..._0xe4bdd2,..._0x2d6193},'args':[],'tdx':_0x5bb32e});gracefulExit(_0x5e1a0d);};jobCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x182))['description']('List\x20jobs')[a2_0x3562dc(0x206)]('--status\x20<status>',a2_0x3562dc(0x239))[a2_0x3562dc(0x3ce)](jobListAction),program['command'](a2_0x3562dc(0x355),{'hidden':!![]})['description'](a2_0x3562dc(0x344))[a2_0x3562dc(0x206)]('--status\x20<status>',a2_0x3562dc(0x239))[a2_0x3562dc(0x3ce)](jobListAction),jobCmd['command'](a2_0x3562dc(0x2a0))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2c9))['action'](async(_0x18c079,_0x304ec4)=>{const _0x35ac54=a2_0x3562dc,_0x2dfc5e=new JobShowCommand(),_0x138b36=program[_0x35ac54(0x3a0)](),_0x143cb4=await createTDXInstance(_0x138b36),_0x25f012=await _0x2dfc5e[_0x35ac54(0x2c8)]({'options':{..._0x138b36,..._0x304ec4},'args':[_0x18c079],'tdx':_0x143cb4});gracefulExit(_0x25f012);}),jobCmd['command'](a2_0x3562dc(0x224))['description'](a2_0x3562dc(0x19f))[a2_0x3562dc(0x3ce)](async(_0x1f999f,_0x3ad494)=>{const _0x2612cf=a2_0x3562dc,_0x11968e=new JobKillCommand(),_0x3f2915=program[_0x2612cf(0x3a0)](),_0x498141=await createTDXInstance(_0x3f2915),_0x457b0a=await _0x11968e['run']({'options':{..._0x3f2915,..._0x3ad494},'args':[_0x1f999f],'tdx':_0x498141});gracefulExit(_0x457b0a);}),jobCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c2))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x28c))[a2_0x3562dc(0x206)]('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x3562dc(0x235))['option'](a2_0x3562dc(0x197),'Read\x20query\x20from\x20file')[a2_0x3562dc(0x206)](a2_0x3562dc(0x373),a2_0x3562dc(0x3e5),a2_0x3562dc(0x24d))[a2_0x3562dc(0x206)](a2_0x3562dc(0x16c),'Result\x20export\x20destination\x20(URL\x20or\x20JSON)')[a2_0x3562dc(0x3ce)](async(_0xbab812,_0x26bd62)=>{const _0xcd88fa=a2_0x3562dc,_0x11b581=new JobSubmitCommand(),_0x5143ca=program[_0xcd88fa(0x3a0)](),_0x59f146=await createTDXInstance(_0x5143ca),_0x2eb070=await _0x11b581[_0xcd88fa(0x2c8)]({'options':{..._0x5143ca,..._0x26bd62},'args':_0xbab812?[_0xbab812]:[],'tdx':_0x59f146});gracefulExit(_0x2eb070);}),jobCmd['command'](a2_0x3562dc(0x31c))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x28a))[a2_0x3562dc(0x3ce)](async(_0x89fb6c,_0xdec6ed)=>{const _0x4e0ff6=a2_0x3562dc,_0x95bf0e=new JobResultCommand(),_0xaa8ad1=program[_0x4e0ff6(0x3a0)](),_0xce9e60=await createTDXInstance(_0xaa8ad1),_0x4f8d87=await _0x95bf0e[_0x4e0ff6(0x2c8)]({'options':{..._0xaa8ad1,..._0xdec6ed},'args':[_0x89fb6c],'tdx':_0xce9e60});gracefulExit(_0x4f8d87);});const scheduleCmd=jobCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x38c))['description'](a2_0x3562dc(0x284));scheduleCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x166))[a2_0x3562dc(0x3ce)](async(_0x4df40f,_0x23dd34)=>{const _0x515342=a2_0x3562dc,_0x429965=new ScheduleListCommand(),_0x1a90be=program[_0x515342(0x3a0)](),_0x2d4c7d=await createTDXInstance(_0x1a90be),_0x3c25e0=await _0x429965['run']({'options':{..._0x1a90be,..._0x23dd34},'args':_0x4df40f?[_0x4df40f]:[],'tdx':_0x2d4c7d});gracefulExit(_0x3c25e0);}),scheduleCmd['command'](a2_0x3562dc(0x251))['description'](a2_0x3562dc(0x3dc))['action'](async(_0xfdd988,_0x4e3829)=>{const _0x2c3cdd=a2_0x3562dc,_0xdcec5b=new ScheduleShowCommand(),_0x2d07a4=program['opts'](),_0x52de4b=await createTDXInstance(_0x2d07a4),_0x3b1eec=await _0xdcec5b[_0x2c3cdd(0x2c8)]({'options':{..._0x2d07a4,..._0x4e3829},'args':[_0xfdd988],'tdx':_0x52de4b});gracefulExit(_0x3b1eec);}),scheduleCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x217))['description'](a2_0x3562dc(0x3cf))['requiredOption']('-d,\x20--database\x20<db>','Database\x20name')[a2_0x3562dc(0x1bd)]('-f,\x20--file\x20<path>',a2_0x3562dc(0x228))[a2_0x3562dc(0x206)](a2_0x3562dc(0x214),a2_0x3562dc(0x38e),a2_0x3562dc(0x235))['option'](a2_0x3562dc(0x21d),'Cron\x20expression\x20for\x20scheduling')['option'](a2_0x3562dc(0x292),a2_0x3562dc(0x26b))[a2_0x3562dc(0x206)]('--delay\x20<seconds>',a2_0x3562dc(0x2dd))[a2_0x3562dc(0x206)](a2_0x3562dc(0x39f),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x2f5),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x39c),a2_0x3562dc(0x390))['option'](a2_0x3562dc(0x368),a2_0x3562dc(0x3db))['action'](async(_0x251957,_0x499f08)=>{const _0x2061f3=a2_0x3562dc,_0x58cf49=new ScheduleCreateCommand(),_0x4e19ac=program[_0x2061f3(0x3a0)](),_0x8c64b6=await createTDXInstance(_0x4e19ac),_0x5f0949=await _0x58cf49[_0x2061f3(0x2c8)]({'options':{..._0x4e19ac,..._0x499f08},'args':[_0x251957],'tdx':_0x8c64b6});gracefulExit(_0x5f0949);}),scheduleCmd[a2_0x3562dc(0x1f8)]('update\x20<name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1b4))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3e7),a2_0x3562dc(0x2cc))[a2_0x3562dc(0x206)](a2_0x3562dc(0x197),'Read\x20query\x20from\x20file')['option'](a2_0x3562dc(0x214),'Query\x20type:\x20trino\x20or\x20hive')['option'](a2_0x3562dc(0x21d),a2_0x3562dc(0x2dc))[a2_0x3562dc(0x206)](a2_0x3562dc(0x292),a2_0x3562dc(0x2a6))[a2_0x3562dc(0x206)](a2_0x3562dc(0x175),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x3562dc(0x206)](a2_0x3562dc(0x39f),a2_0x3562dc(0x321))['option'](a2_0x3562dc(0x2f5),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x3562dc(0x206)]('--engine-version\x20<version>',a2_0x3562dc(0x390))[a2_0x3562dc(0x206)]('--result\x20<url>',a2_0x3562dc(0x3db))[a2_0x3562dc(0x3ce)](async(_0x3377ce,_0x4aa114)=>{const _0x4e2d9d=a2_0x3562dc,_0x2b5b96=new ScheduleUpdateCommand(),_0x3a497f=program['opts'](),_0xe5c29d=await createTDXInstance(_0x3a497f),_0x5417f7=await _0x2b5b96[_0x4e2d9d(0x2c8)]({'options':{..._0x3a497f,..._0x4aa114},'args':[_0x3377ce],'tdx':_0xe5c29d});gracefulExit(_0x5417f7);}),scheduleCmd[a2_0x3562dc(0x1f8)]('delete\x20<name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1b1))['action'](async(_0x5edc1b,_0x48ccbb)=>{const _0x494008=a2_0x3562dc,_0x1109e2=new ScheduleDeleteCommand(),_0x296827=program[_0x494008(0x3a0)](),_0x5465a6=await createTDXInstance(_0x296827),_0x3f5770=await _0x1109e2[_0x494008(0x2c8)]({'options':{..._0x296827,..._0x48ccbb},'args':[_0x5edc1b],'tdx':_0x5465a6});gracefulExit(_0x3f5770);}),scheduleCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x354))['description'](a2_0x3562dc(0x273))[a2_0x3562dc(0x206)](a2_0x3562dc(0x17b),'Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x262),a2_0x3562dc(0x3c1))['action'](async(_0x2ba1e1,_0x1dd678)=>{const _0x5b905a=a2_0x3562dc,_0x34ad5b=new ScheduleRunCommand(),_0x5160e1=program[_0x5b905a(0x3a0)](),_0x4255c7=await createTDXInstance(_0x5160e1),_0xed69f0=await _0x34ad5b[_0x5b905a(0x2c8)]({'options':{..._0x5160e1,..._0x1dd678},'args':[_0x2ba1e1],'tdx':_0x4255c7});gracefulExit(_0xed69f0);}),scheduleCmd[a2_0x3562dc(0x1f8)]('history\x20<name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x183))['option']('--from\x20<n>','Starting\x20offset\x20(default:\x200)')['option'](a2_0x3562dc(0x1a5),a2_0x3562dc(0x1a1))[a2_0x3562dc(0x3ce)](async(_0xbf3469,_0x1c3d33)=>{const _0xaba70d=a2_0x3562dc,_0x1d8768=new ScheduleHistoryCommand(),_0x2968a1=program['opts'](),_0x32eebb=await createTDXInstance(_0x2968a1),_0xb54f85=await _0x1d8768[_0xaba70d(0x2c8)]({'options':{..._0x2968a1,..._0x1c3d33},'args':[_0xbf3469],'tdx':_0x32eebb});gracefulExit(_0xb54f85);});const llmCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x21a))['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x3562dc(0x1f8)]('use\x20<project-name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1d2))[a2_0x3562dc(0x3ce)](async(_0x3668e1,_0xe610fe)=>{const _0x44e1c5=a2_0x3562dc,_0x3c99cc=new LLMUseCommand(),_0x42ea73=program['opts'](),_0x250b7e=await createTDXInstance(_0x42ea73),_0x681d75=await _0x3c99cc[_0x44e1c5(0x2c8)]({'options':{..._0x42ea73,..._0xe610fe},'args':[_0x3668e1],'tdx':_0x250b7e});gracefulExit(_0x681d75);}),llmCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2a8))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x15e))[a2_0x3562dc(0x3ce)](async _0xa56690=>{const _0x2c05ee=a2_0x3562dc,_0x28d209=new LLMModelsCommand(),_0x4a4fea=program[_0x2c05ee(0x3a0)](),_0x361577=await createTDXInstance(_0x4a4fea),_0x17e8b5=await _0x28d209[_0x2c05ee(0x2c8)]({'options':{..._0x4a4fea,..._0xa56690},'args':[],'tdx':_0x361577});gracefulExit(_0x17e8b5);});const projectCmd=llmCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x27b))['description'](a2_0x3562dc(0x29d)),llmProjectListAction=async(_0x13ad49,_0x17aaea)=>{const _0x4889f9=a2_0x3562dc,_0x4a660c=new LLMProjectsCommand(),_0x22a4e9=program[_0x4889f9(0x3a0)](),_0x5c9661=await createTDXInstance(_0x22a4e9),_0x164cf7=await _0x4a660c[_0x4889f9(0x2c8)]({'options':{..._0x22a4e9,..._0x17aaea},'args':_0x13ad49?[_0x13ad49]:[],'tdx':_0x5c9661});gracefulExit(_0x164cf7);};projectCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x39e))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x365))[a2_0x3562dc(0x3ce)](llmProjectListAction),projectCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x217))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x15f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x154),a2_0x3562dc(0x297))[a2_0x3562dc(0x3ce)](async(_0x94a9b1,_0x1551b5)=>{const _0x5f4fc4=a2_0x3562dc,_0x3485ac=new LLMProjectCreateCommand(),_0x117370=program[_0x5f4fc4(0x3a0)](),_0x2228f3=await createTDXInstance(_0x117370),_0x5db3e6=await _0x3485ac['run']({'options':{..._0x117370,..._0x1551b5},'args':[_0x94a9b1],'tdx':_0x2228f3});gracefulExit(_0x5db3e6);}),projectCmd[a2_0x3562dc(0x1f8)]('delete\x20<name>')['description'](a2_0x3562dc(0x2df))[a2_0x3562dc(0x3ce)](async(_0x2b03fb,_0x57697d)=>{const _0x3c11f6=a2_0x3562dc,_0x817eb3=new LLMProjectDeleteCommand(),_0x4d725c=program[_0x3c11f6(0x3a0)](),_0xa27c2a=await createTDXInstance(_0x4d725c),_0x2f4ed8=await _0x817eb3[_0x3c11f6(0x2c8)]({'options':{..._0x4d725c,..._0x57697d},'args':[_0x2b03fb],'tdx':_0xa27c2a});gracefulExit(_0x2f4ed8);}),projectCmd['command'](a2_0x3562dc(0x1ed))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x14a))[a2_0x3562dc(0x206)](a2_0x3562dc(0x18c),a2_0x3562dc(0x2cb))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),a2_0x3562dc(0x1a2))[a2_0x3562dc(0x3ce)](async(_0x3a0090,_0x54826c)=>{const _0xc5b6a3=a2_0x3562dc,_0x2b6d61=new LLMProjectBackupCommand(),_0x1d664b=program['opts'](),_0x4f4fe7=await createTDXInstance(_0x1d664b),_0x5676ae=await _0x2b6d61[_0xc5b6a3(0x2c8)]({'options':{..._0x1d664b,..._0x54826c},'args':[_0x3a0090],'tdx':_0x4f4fe7});gracefulExit(_0x5676ae);}),projectCmd[a2_0x3562dc(0x1f8)]('restore\x20<folder>')['description']('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option']('--name\x20<new-name>',a2_0x3562dc(0x3a9))[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),a2_0x3562dc(0x330))[a2_0x3562dc(0x3ce)](async(_0x505e01,_0x4ed1fd)=>{const _0xf4495b=a2_0x3562dc,_0x1f2f8a=new LLMProjectRestoreCommand(),_0x3fb704=program[_0xf4495b(0x3a0)](),_0x3f02a9=await createTDXInstance(_0x3fb704),_0x53899b=await _0x1f2f8a['run']({'options':{..._0x3fb704,..._0x4ed1fd},'args':[_0x505e01],'tdx':_0x3f02a9});gracefulExit(_0x53899b);});const llmAgentListAction=async(_0x59562e,_0x1e9da0)=>{const _0x5aca71=new LLMAgentsCommand(),_0x71697c=program['opts'](),_0xe497af=await createTDXInstance(_0x71697c),_0x92f4f9=await _0x5aca71['run']({'options':{..._0x71697c,..._0x1e9da0},'args':_0x59562e?[_0x59562e]:[],'tdx':_0xe497af});gracefulExit(_0x92f4f9);};llmCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x165))['description'](a2_0x3562dc(0x1b6))[a2_0x3562dc(0x3ce)](llmAgentListAction),program[a2_0x3562dc(0x1f8)]('agents\x20[pattern]')['description'](a2_0x3562dc(0x1b6))[a2_0x3562dc(0x3ce)](llmAgentListAction),llmCmd['command'](a2_0x3562dc(0x282))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x23c))[a2_0x3562dc(0x206)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x3562dc(0x3ce)](async(_0x47f000,_0x38e20b)=>{const _0x10580e=a2_0x3562dc,_0x365cc1=new LLMHistoryCommand(),_0x47d105=program[_0x10580e(0x3a0)](),_0x56c589=await createTDXInstance(_0x47d105),_0x2656bf=await _0x365cc1[_0x10580e(0x2c8)]({'options':{..._0x47d105,..._0x38e20b},'args':_0x47f000?[_0x47f000]:[],'tdx':_0x56c589});gracefulExit(_0x2656bf);});isExperimentalAvailable()&&llmCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x19b))[a2_0x3562dc(0x2e5)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x3562dc(0x3ce)](async(_0xee61c7,_0x5d980f)=>{const _0xd3001a=a2_0x3562dc,_0x235ca0=new LLMLogCommand(),_0x4f677b=program[_0xd3001a(0x3a0)](),_0x4ea596=await createTDXInstance(_0x4f677b),_0x2c1ed6=await _0x235ca0[_0xd3001a(0x2c8)]({'options':{..._0x4f677b,..._0x5d980f},'args':[_0xee61c7],'tdx':_0x4ea596});gracefulExit(_0x2c1ed6);});program[a2_0x3562dc(0x1f8)]('claude\x20[args...]')[a2_0x3562dc(0x152)](a2_0x3562dc(0x2e4))[a2_0x3562dc(0x2e5)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3562dc(0x206)]('-c,\x20--continue',a2_0x3562dc(0x2c4))[a2_0x3562dc(0x206)](a2_0x3562dc(0x180),a2_0x3562dc(0x247))[a2_0x3562dc(0x206)]('--no-proxy',a2_0x3562dc(0x36d))[a2_0x3562dc(0x2d0)]()[a2_0x3562dc(0x392)](!![])[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x345))['action'](async(_0x4b9617,_0x4493f1)=>{const _0x3a0b6f=a2_0x3562dc,_0x201fc5=program[_0x3a0b6f(0x3a0)](),_0x5ce041=Array[_0x3a0b6f(0x358)](_0x4b9617)?_0x4b9617:[];if(_0x5ce041[0x0]===_0x3a0b6f(0x2b4)){const _0x26f7f1=new ClaudeStatuslineCommand(),_0x4d513e=await _0x26f7f1['run']({'options':{..._0x201fc5,..._0x4493f1},'args':_0x5ce041[_0x3a0b6f(0x3af)](0x1),'tdx':null});gracefulExit(_0x4d513e);}if(_0x5ce041[0x0]===_0x3a0b6f(0x152)){const _0x1e08c4=new ClaudeUsageCommand(),_0x1ce451=await _0x1e08c4[_0x3a0b6f(0x2c8)]({'options':{..._0x201fc5,..._0x4493f1},'args':_0x5ce041[_0x3a0b6f(0x3af)](0x1),'tdx':null});gracefulExit(_0x1ce451);}const _0x2caca3=new ClaudeCommand(),_0x42627c=await createTDXInstance(_0x201fc5),_0x1d76f8=await _0x2caca3[_0x3a0b6f(0x2c8)]({'options':{..._0x201fc5,..._0x4493f1},'args':_0x5ce041,'tdx':_0x42627c});gracefulExit(_0x1d76f8);}),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2bf))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3b2))[a2_0x3562dc(0x206)](a2_0x3562dc(0x149),'Clear\x20session\x20context')[a2_0x3562dc(0x206)](a2_0x3562dc(0x23e),a2_0x3562dc(0x2f6))[a2_0x3562dc(0x3ce)](async(_0x59658b,_0x4ee6c6,_0x9210d3)=>{const _0x1aee5a=a2_0x3562dc,_0x3a5386=new UseCommand(),_0x37bac3=program[_0x1aee5a(0x3a0)](),_0xd4ff33=[];if(_0x59658b)_0xd4ff33[_0x1aee5a(0x2bb)](_0x59658b);if(_0x4ee6c6)_0xd4ff33[_0x1aee5a(0x2bb)](_0x4ee6c6);const _0x12d0db=_0x59658b===_0x1aee5a(0x33e),_0x46ab61=_0x12d0db?await createTDXInstance(_0x37bac3):null,_0x1860d8=await _0x3a5386['run']({'options':{..._0x37bac3,..._0x9210d3},'args':_0xd4ff33,'tdx':_0x46ab61});gracefulExit(_0x1860d8);}),program['command'](a2_0x3562dc(0x252))['description'](a2_0x3562dc(0x384))[a2_0x3562dc(0x3ce)](async _0x3734ec=>{const _0x1a9f51=a2_0x3562dc,_0x237e30=new StatusCommand(),_0x2a45a4=program[_0x1a9f51(0x3a0)](),_0xfdeff1=await createTDXInstance(_0x2a45a4),_0x139f98=await _0x237e30['run']({'options':{..._0x2a45a4,..._0x3734ec},'args':[],'tdx':_0xfdeff1});gracefulExit(_0x139f98);}),program['command'](a2_0x3562dc(0x37d))['description'](a2_0x3562dc(0x3de))[a2_0x3562dc(0x206)](a2_0x3562dc(0x23e),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x130285,_0x273eac)=>{const _0x4f24c0=a2_0x3562dc,_0x3dc3a7=new UnsetCommand(),_0x758a7e=program[_0x4f24c0(0x3a0)](),_0x180846=await _0x3dc3a7[_0x4f24c0(0x2c8)]({'options':{..._0x758a7e,..._0x273eac},'args':[_0x130285],'tdx':null});gracefulExit(_0x180846);}),program[a2_0x3562dc(0x1f8)]('chats')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x15b))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1b9),a2_0x3562dc(0x1eb))[a2_0x3562dc(0x3ce)](async _0x3a6e4c=>{const _0x24589b=a2_0x3562dc,_0x1ed089=new ChatsCommand(),_0x364313=program[_0x24589b(0x3a0)](),_0x1aae36=await createTDXInstance(_0x364313),_0x14707e=await _0x1ed089['run']({'options':{..._0x364313,..._0x3a6e4c},'args':[],'tdx':_0x1aae36});gracefulExit(_0x14707e);});const authCmd=program['command'](a2_0x3562dc(0x281))['description'](a2_0x3562dc(0x1e8));async function runAuthStatusCommand(_0x487102){const _0x200ab5=a2_0x3562dc,_0x5e2736=new AuthStatusCommand(),_0x518c21=program[_0x200ab5(0x3a0)](),_0x4c8b2f=await createTDXInstance(_0x518c21),_0x135cb5=await _0x5e2736['run']({'options':{..._0x518c21,..._0x487102},'args':[],'tdx':_0x4c8b2f});gracefulExit(_0x135cb5);}authCmd[a2_0x3562dc(0x3ce)](runAuthStatusCommand),authCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x252))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1b7))['action'](runAuthStatusCommand),authCmd['command'](a2_0x3562dc(0x1b3))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2ff))[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x25c))[a2_0x3562dc(0x3ce)](async _0x3f1d31=>{const _0x555f7c=a2_0x3562dc,_0x2a3827=new AuthSetupCommand(),_0x3afca3=program[_0x555f7c(0x3a0)](),_0x38c79b=await createTDXInstance(_0x3afca3),_0x44de26=await _0x2a3827['run']({'options':{..._0x3afca3,..._0x3f1d31},'args':[],'tdx':_0x38c79b});gracefulExit(_0x44de26);}),authCmd[a2_0x3562dc(0x1f8)]('clear')[a2_0x3562dc(0x2e5)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x2a5))['action'](async _0x30f9b9=>{const _0x2a845d=new AuthClearCommand(),_0x4df287=program['opts'](),_0x8ee062=await _0x2a845d['run']({'options':{..._0x4df287,..._0x30f9b9},'args':[],'tdx':null});gracefulExit(_0x8ee062);});const userCmd=program[a2_0x3562dc(0x1f8)]('user')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x338)),userListAction=async _0x1f15b7=>{const _0x28823c=a2_0x3562dc,_0x16d64e=new UserListCommand(),_0x409489=program[_0x28823c(0x3a0)](),_0x5352ee=await createTDXInstance(_0x409489),_0x57587d=await _0x16d64e['run']({'options':{..._0x409489,..._0x1f15b7},'args':[],'tdx':_0x5352ee});gracefulExit(_0x57587d);};userCmd[a2_0x3562dc(0x3ce)](async _0x5ae245=>{const _0x1af7ba=a2_0x3562dc,_0x1af112=new UserCommand(),_0x404dfb=program['opts'](),_0x49dd70=await createTDXInstance(_0x404dfb),_0x2bb8b2=await _0x1af112[_0x1af7ba(0x2c8)]({'options':{..._0x404dfb,..._0x5ae245},'args':[],'tdx':_0x49dd70});gracefulExit(_0x2bb8b2);}),userCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x182))['description'](a2_0x3562dc(0x233))['action'](userListAction),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3b6))['description'](a2_0x3562dc(0x160))['action'](userListAction),program['command'](a2_0x3562dc(0x341))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3a8))[a2_0x3562dc(0x3ce)](async _0x5aa956=>{const _0x1c6de0=a2_0x3562dc,_0x794083=new ProfilesCommand(),_0x1f4b7e=program[_0x1c6de0(0x3a0)](),_0x23cb32=await _0x794083['run']({'options':{..._0x1f4b7e,..._0x5aa956},'args':[],'tdx':null});gracefulExit(_0x23cb32);});const profileCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x33d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x371));profileCmd[a2_0x3562dc(0x3ce)](()=>{const _0x4e03b3=a2_0x3562dc;profileCmd[_0x4e03b3(0x1d9)]();});const profileListAction=async _0x5422e6=>{const _0xd19f01=a2_0x3562dc,_0x24f06=new ProfilesCommand(),_0x314d74=program[_0xd19f01(0x3a0)](),_0x1207ef=await _0x24f06[_0xd19f01(0x2c8)]({'options':{..._0x314d74,..._0x5422e6},'args':[],'tdx':null});gracefulExit(_0x1207ef);};profileCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x182))['description'](a2_0x3562dc(0x3a8))[a2_0x3562dc(0x3ce)](profileListAction),profileCmd['command'](a2_0x3562dc(0x37c))[a2_0x3562dc(0x2e5)]('Create\x20a\x20new\x20profile')[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x234))['action'](async(_0x5da1af,_0x32eef1)=>{const _0x5a792d=a2_0x3562dc,_0x76ca37=new ProfileCreateCommand(),_0x3caee8=program[_0x5a792d(0x3a0)](),_0x342c42=await _0x76ca37[_0x5a792d(0x2c8)]({'options':{..._0x3caee8,..._0x32eef1},'args':_0x5da1af?[_0x5da1af]:[],'tdx':null});gracefulExit(_0x342c42);}),profileCmd['command']('remove\x20<name>')[a2_0x3562dc(0x2e5)]('Remove\x20a\x20profile')[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x230))[a2_0x3562dc(0x3ce)](async(_0x5979c7,_0x1e7969)=>{const _0x32f056=a2_0x3562dc,_0x450fe3=new ProfileRemoveCommand(),_0x21044c=program[_0x32f056(0x3a0)](),_0x5e7006=await _0x450fe3[_0x32f056(0x2c8)]({'options':{..._0x21044c,..._0x1e7969},'args':[_0x5979c7],'tdx':null});gracefulExit(_0x5e7006);}),profileCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x163))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2c3))[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x3562dc(0x3ce)](async(_0x5e854b,_0x9cb5bf)=>{const _0x4e337c=a2_0x3562dc,_0x5c7261=new ProfileSetCommand(),_0x2f657c=program[_0x4e337c(0x3a0)](),_0x2d2e1c=await _0x5c7261[_0x4e337c(0x2c8)]({'options':{..._0x2f657c,..._0x9cb5bf},'args':[_0x5e854b],'tdx':null});gracefulExit(_0x2d2e1c);}),profileCmd[a2_0x3562dc(0x1f8)]('use\x20<name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2aa))['option']('--default',a2_0x3562dc(0x2f6))[a2_0x3562dc(0x255)](a2_0x3562dc(0x14d),a2_0x3562dc(0x36b))[a2_0x3562dc(0x3ce)](async(_0x2469b9,_0x1e7723)=>{const _0x28974a=a2_0x3562dc,_0x391774=new ProfileUseCommand(),_0xcd600c=program['opts'](),_0x4e84d7=await _0x391774[_0x28974a(0x2c8)]({'options':{..._0xcd600c,..._0x1e7723},'args':[_0x2469b9],'tdx':null});gracefulExit(_0x4e84d7);});const engageCmd=program[a2_0x3562dc(0x1f8)]('engage')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x16e)),createEngageAction=_0x192708=>{return async(_0x5df22b,_0x267587)=>{const _0xf78e94=a2_0x2266,_0x20ade0=new _0x192708(),_0xe29654=program[_0xf78e94(0x3a0)](),_0x35de92=await createTDXInstance(_0xe29654),_0x127f2a=await _0x20ade0[_0xf78e94(0x2c8)]({'options':{..._0xe29654,..._0x267587},'args':[_0x5df22b],'tdx':_0x35de92});gracefulExit(_0x127f2a);};},createEngageNoArgAction=_0x4d57fb=>{return async _0x50bd47=>{const _0x2d7896=a2_0x2266,_0x524810=new _0x4d57fb(),_0x806263=program[_0x2d7896(0x3a0)](),_0x2cbe28=await createTDXInstance(_0x806263),_0x84848f=await _0x524810[_0x2d7896(0x2c8)]({'options':{..._0x806263,..._0x50bd47},'args':[],'tdx':_0x2cbe28});gracefulExit(_0x84848f);};},campaignCmd=engageCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1fb))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1c6)),campaignListAction=async(_0x4539d4,_0x360475)=>{const _0x17a277=a2_0x3562dc,_0x4d2c28=new EngageCampaignsCommand(),_0x146470=program[_0x17a277(0x3a0)](),_0x54781c=await createTDXInstance(_0x146470),_0x4a87aa=await _0x4d2c28[_0x17a277(0x2c8)]({'options':{..._0x146470,..._0x360475},'args':_0x4539d4?[_0x4539d4]:[],'tdx':_0x54781c});gracefulExit(_0x4a87aa);};campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1c4))[a2_0x3562dc(0x206)](a2_0x3562dc(0x214),a2_0x3562dc(0x35d))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2a1),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x3ce)](campaignListAction),engageCmd[a2_0x3562dc(0x1f8)]('campaigns\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1b5))['option'](a2_0x3562dc(0x214),a2_0x3562dc(0x35d))['option'](a2_0x3562dc(0x2a1),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x3ce)](campaignListAction),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x168))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3e9))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))['option']('--full',a2_0x3562dc(0x29b))[a2_0x3562dc(0x3ce)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x309))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x22d))[a2_0x3562dc(0x1bd)](a2_0x3562dc(0x349),a2_0x3562dc(0x232))[a2_0x3562dc(0x1bd)](a2_0x3562dc(0x214),a2_0x3562dc(0x259))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x22c))[a2_0x3562dc(0x206)]('--description\x20<desc>','Campaign\x20description')['option'](a2_0x3562dc(0x1fc),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x3562dc(0x316),a2_0x3562dc(0x243))[a2_0x3562dc(0x206)](a2_0x3562dc(0x290),a2_0x3562dc(0x2f0))['option'](a2_0x3562dc(0x20e),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')['option']('--timezone\x20<tz>',a2_0x3562dc(0x19c))[a2_0x3562dc(0x3ce)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x229))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x352))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x349),a2_0x3562dc(0x382))[a2_0x3562dc(0x206)](a2_0x3562dc(0x37b),a2_0x3562dc(0x1e2))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1fc),a2_0x3562dc(0x1bb))[a2_0x3562dc(0x206)](a2_0x3562dc(0x316),a2_0x3562dc(0x243))['option'](a2_0x3562dc(0x290),a2_0x3562dc(0x2f0))[a2_0x3562dc(0x206)](a2_0x3562dc(0x20e),a2_0x3562dc(0x2ca))[a2_0x3562dc(0x206)](a2_0x3562dc(0x292),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3562dc(0x3ce)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x18d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x17c))['option'](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x206)]('--yes',a2_0x3562dc(0x37f))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x374))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),'Workspace\x20name')['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x211))['description'](a2_0x3562dc(0x3b5))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),'Workspace\x20name')['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x23b))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1f6))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x298))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3bc))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x3562dc(0x2e5)]('Email\x20template\x20management'),templateListAction=async(_0x3eefc3,_0xd0eb65)=>{const _0x4228bc=a2_0x3562dc,_0x3812a4=new EngageTemplatesCommand(),_0x1e7998=program[_0x4228bc(0x3a0)](),_0x292fd8=await createTDXInstance(_0x1e7998),_0x297ca1=await _0x3812a4[_0x4228bc(0x2c8)]({'options':{..._0x1e7998,..._0xd0eb65},'args':_0x3eefc3?[_0x3eefc3]:[],'tdx':_0x292fd8});gracefulExit(_0x297ca1);};templateCmd[a2_0x3562dc(0x1f8)]('list\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3d5))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))['action'](templateListAction),engageCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x304))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x204))['option'](a2_0x3562dc(0x367),'Workspace\x20name')[a2_0x3562dc(0x3ce)](templateListAction),templateCmd['command'](a2_0x3562dc(0x168))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x22b))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x14e),a2_0x3562dc(0x29b))[a2_0x3562dc(0x3ce)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3562dc(0x1f8)]('create')['description'](a2_0x3562dc(0x350))[a2_0x3562dc(0x1bd)](a2_0x3562dc(0x349),a2_0x3562dc(0x2f7))[a2_0x3562dc(0x1bd)](a2_0x3562dc(0x16d),a2_0x3562dc(0x39b))['requiredOption'](a2_0x3562dc(0x210),a2_0x3562dc(0x3dd))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x22c))[a2_0x3562dc(0x206)](a2_0x3562dc(0x16b),a2_0x3562dc(0x212))[a2_0x3562dc(0x206)](a2_0x3562dc(0x334),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x54e3f8=>{const _0x2d131a=a2_0x3562dc;if(![_0x2d131a(0x14f),_0x2d131a(0x240)][_0x2d131a(0x244)](_0x54e3f8))throw new SDKError(ErrorCode[_0x2d131a(0x2c6)],_0x2d131a(0x272)+_0x54e3f8+_0x2d131a(0x21c));return _0x54e3f8;})[a2_0x3562dc(0x3ce)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x229))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x311))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))[a2_0x3562dc(0x206)](a2_0x3562dc(0x349),a2_0x3562dc(0x1d1))[a2_0x3562dc(0x206)]('--subject\x20<subject>',a2_0x3562dc(0x39b))[a2_0x3562dc(0x206)](a2_0x3562dc(0x210),a2_0x3562dc(0x3dd))[a2_0x3562dc(0x206)]('--plaintext\x20<text>',a2_0x3562dc(0x212))[a2_0x3562dc(0x3ce)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x18d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2b1))[a2_0x3562dc(0x206)](a2_0x3562dc(0x367),a2_0x3562dc(0x23f))['option'](a2_0x3562dc(0x2fe),a2_0x3562dc(0x37f))[a2_0x3562dc(0x3ce)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1fa))[a2_0x3562dc(0x2e5)]('Workspace\x20management'),workspaceListAction=async(_0x17bdcf,_0x12ffaa)=>{const _0x27ed47=a2_0x3562dc,_0x3ecbf5=new EngageWorkspacesCommand(),_0x5c8288=program[_0x27ed47(0x3a0)](),_0x477c86=await createTDXInstance(_0x5c8288),_0x58ee0e=await _0x3ecbf5[_0x27ed47(0x2c8)]({'options':{..._0x5c8288,..._0x12ffaa},'args':_0x17bdcf?[_0x17bdcf]:[],'tdx':_0x477c86});gracefulExit(_0x58ee0e);};workspaceCmd[a2_0x3562dc(0x1f8)]('list\x20[pattern]')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2ec))[a2_0x3562dc(0x3ce)](workspaceListAction),engageCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x28e))['description'](a2_0x3562dc(0x200))[a2_0x3562dc(0x3ce)](workspaceListAction),workspaceCmd['command'](a2_0x3562dc(0x168))['description'](a2_0x3562dc(0x3ae))[a2_0x3562dc(0x206)](a2_0x3562dc(0x14e),a2_0x3562dc(0x29b))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3562dc(0x1f8)]('create')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2e7))['requiredOption'](a2_0x3562dc(0x349),a2_0x3562dc(0x23f))[a2_0x3562dc(0x206)]('--description\x20<desc>',a2_0x3562dc(0x372))[a2_0x3562dc(0x3ce)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x229))[a2_0x3562dc(0x2e5)]('Update\x20a\x20workspace')[a2_0x3562dc(0x206)](a2_0x3562dc(0x349),a2_0x3562dc(0x385))['option'](a2_0x3562dc(0x37b),a2_0x3562dc(0x372))[a2_0x3562dc(0x3ce)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x18d))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x39a))[a2_0x3562dc(0x206)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x3562dc(0x3ce)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x3562dc(0x2b5))['description'](a2_0x3562dc(0x332))[a2_0x3562dc(0x3ce)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x335))['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x30567c=>{const _0x1491f8=a2_0x3562dc,_0x4fc67b=new ConnectionListCommand(),_0x3b78ed=program[_0x1491f8(0x3a0)](),_0x247b9d=await createTDXInstance(_0x3b78ed),_0xcd23a7=await _0x4fc67b[_0x1491f8(0x2c8)]({'options':{..._0x3b78ed,..._0x30567c},'args':[],'tdx':_0x247b9d});gracefulExit(_0xcd23a7);};connectionCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x182))['description'](a2_0x3562dc(0x27a))[a2_0x3562dc(0x3ce)](connectionListAction),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x387),{'hidden':!![]})[a2_0x3562dc(0x2e5)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')['action'](connectionListAction),connectionCmd['command'](a2_0x3562dc(0x251))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3bf))['action'](async(_0x16faba,_0x3a6a51)=>{const _0x4fd41c=a2_0x3562dc,_0x3422a6=new ConnectionShowCommand(),_0x4a7f81=program[_0x4fd41c(0x3a0)](),_0x21197d=await createTDXInstance(_0x4a7f81),_0x569ce2=await _0x3422a6[_0x4fd41c(0x2c8)]({'options':{..._0x4a7f81,..._0x3a6a51},'args':[_0x16faba],'tdx':_0x21197d});gracefulExit(_0x569ce2);}),connectionCmd[a2_0x3562dc(0x1f8)]('schema\x20<type>')[a2_0x3562dc(0x2e5)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x3562dc(0x3ce)](async(_0x192c5b,_0x1b2ed1)=>{const _0x11b0d5=a2_0x3562dc,_0x1cd3e6=new ConnectionSchemaCommand(),_0x5116e6=program['opts'](),_0x57ee61=await createTDXInstance(_0x5116e6),_0x422e0c=await _0x1cd3e6[_0x11b0d5(0x2c8)]({'options':{..._0x5116e6,..._0x1b2ed1},'args':[_0x192c5b],'tdx':_0x57ee61});gracefulExit(_0x422e0c);}),connectionCmd['command'](a2_0x3562dc(0x26a))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x270))['action'](async _0x4c6043=>{const _0x45d2a7=a2_0x3562dc,_0x3b1e8d=new ConnectionTypesCommand(),_0x220f8d=program['opts'](),_0x46827c=await createTDXInstance(_0x220f8d),_0x485b34=await _0x3b1e8d[_0x45d2a7(0x2c8)]({'options':{..._0x220f8d,..._0x4c6043},'args':[],'tdx':_0x46827c});gracefulExit(_0x485b34);}),connectionCmd['command'](a2_0x3562dc(0x3c5))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2a2))['action'](async(_0x504ed1,_0x1c9018)=>{const _0x2c44a6=a2_0x3562dc,_0x36d92f=new ConnectionSettingsCommand(),_0xea7ce0=program[_0x2c44a6(0x3a0)](),_0x11e182=await createTDXInstance(_0xea7ce0),_0x1de9d3=await _0x36d92f[_0x2c44a6(0x2c8)]({'options':{..._0xea7ce0,..._0x1c9018},'args':[_0x504ed1],'tdx':_0x11e182});gracefulExit(_0x1de9d3);});const journeyCmd=program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x346))[a2_0x3562dc(0x2e5)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x2fc1a2,_0x5dfc7f)=>{const _0x79a0a8=a2_0x3562dc,_0x1e5d4f=new JourneyListCommand(),_0x595f2c=program[_0x79a0a8(0x3a0)](),_0xc9ae50=await createTDXInstance(_0x595f2c),_0x1ec222=await _0x1e5d4f[_0x79a0a8(0x2c8)]({'options':{..._0x595f2c,..._0x5dfc7f},'args':_0x2fc1a2?[_0x2fc1a2]:[],'tdx':_0xc9ae50});gracefulExit(_0x1ec222);};journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))[a2_0x3562dc(0x2e5)]('List\x20journeys\x20in\x20current\x20context')['action'](journeyListAction),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x254))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x17d))[a2_0x3562dc(0x206)]('-w,\x20--web',a2_0x3562dc(0x3da))[a2_0x3562dc(0x206)](a2_0x3562dc(0x383),a2_0x3562dc(0x216))[a2_0x3562dc(0x3ce)](async(_0x4459b4,_0x2176b3)=>{const _0x575d31=new JourneyViewCommand(),_0x523ac9=program['opts'](),_0x287fb8=await createTDXInstance(_0x523ac9),_0x47ce41=await _0x575d31['run']({'options':{..._0x523ac9,..._0x2176b3},'args':[_0x4459b4],'tdx':_0x287fb8});gracefulExit(_0x47ce41);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x191))[a2_0x3562dc(0x2e5)]('Show\x20journey\x20statistics')[a2_0x3562dc(0x206)]('--stage\x20<name>',a2_0x3562dc(0x1f0))[a2_0x3562dc(0x3ce)](async(_0xafefd4,_0x3633d1)=>{const _0x270c94=new JourneyStatsCommand(),_0x1db514=program['opts'](),_0x2537b1=await createTDXInstance(_0x1db514),_0x3b27b4=await _0x270c94['run']({'options':{..._0x1db514,..._0x3633d1},'args':[_0xafefd4],'tdx':_0x2537b1});gracefulExit(_0x3b27b4);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2ee))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x356))[a2_0x3562dc(0x3ce)](async(_0x48e6a3,_0x2e0660)=>{const _0x4339da=a2_0x3562dc,_0x98687d=new JourneyPauseCommand(),_0x18b5da=program[_0x4339da(0x3a0)](),_0x14127b=await createTDXInstance(_0x18b5da),_0x299275=await _0x98687d[_0x4339da(0x2c8)]({'options':{..._0x18b5da,..._0x2e0660},'args':[_0x48e6a3],'tdx':_0x14127b});gracefulExit(_0x299275);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1a6))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x15d))[a2_0x3562dc(0x3ce)](async(_0x2b50ad,_0x359887)=>{const _0x1c41fe=a2_0x3562dc,_0x2f938d=new JourneyResumeCommand(),_0x4daaba=program[_0x1c41fe(0x3a0)](),_0x5145be=await createTDXInstance(_0x4daaba),_0x4d1ad0=await _0x2f938d[_0x1c41fe(0x2c8)]({'options':{..._0x4daaba,..._0x359887},'args':[_0x2b50ad],'tdx':_0x5145be});gracefulExit(_0x4d1ad0);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x16f))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x24b))['option'](a2_0x3562dc(0x227),'Skip\x20confirmation\x20prompt')['option'](a2_0x3562dc(0x3ec),a2_0x3562dc(0x170))['action'](async(_0x4b4bd0,_0x5ccc42)=>{const _0x48cb8b=a2_0x3562dc,_0x16032f=new JourneyPullCommand(),_0x56dcb4=program[_0x48cb8b(0x3a0)](),_0x42746f=await createTDXInstance(_0x56dcb4),_0x531d02=await _0x16032f[_0x48cb8b(0x2c8)]({'options':{..._0x56dcb4,..._0x5ccc42},'args':_0x4b4bd0?[_0x4b4bd0]:[],'tdx':_0x42746f});gracefulExit(_0x531d02);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x38a))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x1e3))[a2_0x3562dc(0x3ce)](async(_0x4ed990,_0x300827)=>{const _0x1c65e8=a2_0x3562dc,_0x4e6254=new JourneyPushCommand(),_0x40a736=program[_0x1c65e8(0x3a0)](),_0x5cc1fb=await createTDXInstance(_0x40a736),_0x484af9=await _0x4e6254[_0x1c65e8(0x2c8)]({'options':{..._0x40a736,..._0x300827},'args':_0x4ed990?[_0x4ed990]:[],'tdx':_0x5cc1fb});gracefulExit(_0x484af9);}),journeyCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x20c))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x29f))[a2_0x3562dc(0x3ce)](async(_0x496049,_0x1604ba)=>{const _0x4114e8=a2_0x3562dc,_0x3a30c4=new JourneyValidateCommand(),_0x204525=program[_0x4114e8(0x3a0)](),_0x1253c1=await createTDXInstance(_0x204525),_0x39199c=await _0x3a30c4[_0x4114e8(0x2c8)]({'options':{..._0x204525,..._0x1604ba},'args':_0x496049?[_0x496049]:[],'tdx':_0x1253c1});gracefulExit(_0x39199c);}),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1c1))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2be))[a2_0x3562dc(0x3ce)](journeyListAction);const agentSyncCmd=program['command'](a2_0x3562dc(0x2d6))['description'](a2_0x3562dc(0x1ad));agentSyncCmd['command'](a2_0x3562dc(0x231))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x2ed))[a2_0x3562dc(0x206)](a2_0x3562dc(0x27c),a2_0x3562dc(0x30e))['option']('-f,\x20--force',a2_0x3562dc(0x162))['action'](async(_0x147e39,_0x3be6cf,_0x134344)=>{const _0x4417e1=a2_0x3562dc,_0x416151=new AgentPullCommand(),_0x48de0c=program[_0x4417e1(0x3a0)](),_0x41ec6b=await createTDXInstance(_0x48de0c),_0x511cff=[];if(_0x147e39)_0x511cff[_0x4417e1(0x2bb)](_0x147e39);if(_0x3be6cf)_0x511cff[_0x4417e1(0x2bb)](_0x3be6cf);const _0x4e004c=await _0x416151[_0x4417e1(0x2c8)]({'options':{..._0x48de0c,..._0x134344},'args':_0x511cff,'tdx':_0x41ec6b});gracefulExit(_0x4e004c);}),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2af))['description'](a2_0x3562dc(0x2e6))[a2_0x3562dc(0x206)](a2_0x3562dc(0x307),a2_0x3562dc(0x1e4))[a2_0x3562dc(0x3ce)](async(_0x142043,_0x5af790)=>{const _0x4efb54=a2_0x3562dc,_0x3c6236=new AgentPushCommand(),_0x4ed0ef=program['opts'](),_0x2bf0f2=await createTDXInstance(_0x4ed0ef),_0x18cd70=await _0x3c6236[_0x4efb54(0x2c8)]({'options':{..._0x4ed0ef,..._0x5af790},'args':_0x142043?[_0x142043]:[],'tdx':_0x2bf0f2});gracefulExit(_0x18cd70);}),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x2e3))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3c3))['option'](a2_0x3562dc(0x320),a2_0x3562dc(0x161))['action'](async(_0x3f9f71,_0xcab3fb)=>{const _0x3c8879=a2_0x3562dc,_0x1e0557=new AgentCloneCommand(),_0x1b0398=program[_0x3c8879(0x3a0)](),_0x2abdc3=await createTDXInstance(_0x1b0398),_0x3fe0bc=await _0x1e0557[_0x3c8879(0x2c8)]({'options':{..._0x1b0398,..._0xcab3fb},'args':_0x3f9f71?[_0x3f9f71]:[],'tdx':_0x2abdc3});gracefulExit(_0x3fe0bc);}),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x25d))['description']('Run\x20tests\x20for\x20an\x20LLM\x20agent')['option'](a2_0x3562dc(0x1d6),a2_0x3562dc(0x3cd))[a2_0x3562dc(0x206)](a2_0x3562dc(0x2ad),'Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x3ec),a2_0x3562dc(0x35a))[a2_0x3562dc(0x206)](a2_0x3562dc(0x23a),'Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x3562dc(0x206)](a2_0x3562dc(0x2cd),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')['action'](async(_0x3ccda6,_0x2a383b)=>{const _0x2259fc=a2_0x3562dc,_0x5a6a9e=new AgentTestCommand(),_0x3741c4=program[_0x2259fc(0x3a0)](),_0x618d19=await createTDXInstance(_0x3741c4),_0x16bc8b=await _0x5a6a9e[_0x2259fc(0x2c8)]({'options':{..._0x3741c4,..._0x2a383b},'args':_0x3ccda6?[_0x3ccda6]:[],'tdx':_0x618d19});gracefulExit(_0x16bc8b);}),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x3c7))['description'](a2_0x3562dc(0x389))[a2_0x3562dc(0x3ce)](llmAgentListAction),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x1ce))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x357))[a2_0x3562dc(0x3ce)](async(_0x4e1be8,_0x389a70)=>{const _0x1d23bc=a2_0x3562dc,_0x3ae57c=new LLMAgentShowCommand(),_0x2a7e70=program[_0x1d23bc(0x3a0)](),_0x1c3eae=await createTDXInstance(_0x2a7e70),_0x37689a=await _0x3ae57c[_0x1d23bc(0x2c8)]({'options':{..._0x2a7e70,..._0x389a70},'args':[_0x4e1be8],'tdx':_0x1c3eae});gracefulExit(_0x37689a);}),agentSyncCmd['command'](a2_0x3562dc(0x217))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x395))['option'](a2_0x3562dc(0x2fc),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x3562dc(0x206)](a2_0x3562dc(0x208),a2_0x3562dc(0x2ab),a2_0x3562dc(0x221))[a2_0x3562dc(0x206)](a2_0x3562dc(0x308),a2_0x3562dc(0x2f2))['option'](a2_0x3562dc(0x1dc),a2_0x3562dc(0x31d),'4')['option'](a2_0x3562dc(0x3c4),a2_0x3562dc(0x207),'0.7')[a2_0x3562dc(0x3ce)](async(_0x5ddb7d,_0x481833)=>{const _0x5a4e39=new LLMAgentCreateCommand(),_0x1a68fd=program['opts'](),_0x527e84=await createTDXInstance(_0x1a68fd),_0x4e501f=await _0x5a4e39['run']({'options':{..._0x1a68fd,..._0x481833},'args':[_0x5ddb7d],'tdx':_0x527e84});gracefulExit(_0x4e501f);}),agentSyncCmd[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x14c))[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x340))[a2_0x3562dc(0x206)](a2_0x3562dc(0x1e9),a2_0x3562dc(0x3c0))[a2_0x3562dc(0x206)](a2_0x3562dc(0x202),a2_0x3562dc(0x29e))[a2_0x3562dc(0x206)](a2_0x3562dc(0x154),'Agent\x20description')[a2_0x3562dc(0x206)](a2_0x3562dc(0x308),a2_0x3562dc(0x2f2))[a2_0x3562dc(0x3ce)](async(_0x178f55,_0x350e03)=>{const _0x3488ca=a2_0x3562dc,_0x34f2be=new LLMAgentUpdateCommand(),_0x1c8402=program[_0x3488ca(0x3a0)](),_0x4dbea=await createTDXInstance(_0x1c8402),_0xd40ae2=await _0x34f2be[_0x3488ca(0x2c8)]({'options':{..._0x1c8402,..._0x350e03},'args':[_0x178f55],'tdx':_0x4dbea});gracefulExit(_0xd40ae2);}),agentSyncCmd[a2_0x3562dc(0x1f8)]('delete\x20<agent-name>')[a2_0x3562dc(0x2e5)](a2_0x3562dc(0x3c6))[a2_0x3562dc(0x3ce)](async(_0x531b3c,_0x4d94e2)=>{const _0x58b8ee=a2_0x3562dc,_0x339e99=new LLMAgentDeleteCommand(),_0x44a16f=program[_0x58b8ee(0x3a0)](),_0x26b175=await createTDXInstance(_0x44a16f),_0x441f65=await _0x339e99['run']({'options':{..._0x44a16f,..._0x4d94e2},'args':[_0x531b3c],'tdx':_0x26b175});gracefulExit(_0x441f65);}),program[a2_0x3562dc(0x1f8)](a2_0x3562dc(0x363),{'hidden':!![]})[a2_0x3562dc(0x3ce)](()=>{const _0x47f6ba=a2_0x3562dc;function _0xabf2(_0x4c3659,_0x4b878e){const _0x4f0711=a2_0x2266,_0x85f4e3=[];for(const _0x44ca47 of _0x4c3659[_0x4f0711(0x276)]){if(_0x44ca47[_0x4f0711(0x2ba)])continue;const _0x424507=_0x4b878e?_0x4b878e+'\x20'+_0x44ca47[_0x4f0711(0x34d)]():_0x44ca47['name'](),_0x33f1c8=_0x424507[_0x4f0711(0x1e1)]('\x20')[0x0],_0x10b466=COMMAND_CATEGORIES[_0x4f0711(0x2b8)](_0x44e228=>_0x44e228['commands']['includes'](_0x33f1c8)),_0x1f598f=_0x10b466?.[_0x4f0711(0x34d)]??'';if(_0x44ca47[_0x4f0711(0x276)]['length']>0x0)_0x85f4e3['push'](..._0xabf2(_0x44ca47,_0x424507));else{const _0x209cda=(_0x44ca47['registeredArguments']||[])[_0x4f0711(0x198)](_0x354d5e=>{const _0x3580e5=_0x4f0711,_0x32504a=_0x354d5e[_0x3580e5(0x280)]?_0x354d5e[_0x3580e5(0x34d)]()+_0x3580e5(0x1cd):_0x354d5e[_0x3580e5(0x34d)]();return _0x354d5e[_0x3580e5(0x1bf)]?'<'+_0x32504a+'>':'['+_0x32504a+']';})['join']('\x20'),_0x87fb16=_0x44ca47[_0x4f0711(0x24e)]['filter'](_0xedffe5=>!_0xedffe5[_0x4f0711(0x20a)]&&_0xedffe5[_0x4f0711(0x18b)]!==_0x4f0711(0x1f3))['map'](_0x5c0f4a=>({'flags':_0x5c0f4a[_0x4f0711(0x26c)],'description':_0x5c0f4a[_0x4f0711(0x2e5)]}));_0x85f4e3[_0x4f0711(0x2bb)]({'name':_0x424507,'description':_0x44ca47[_0x4f0711(0x2e5)](),'group':_0x1f598f,'usage':_0x209cda,'options':_0x87fb16});}}return _0x85f4e3;}console[_0x47f6ba(0x2b2)](JSON[_0x47f6ba(0x218)](_0xabf2(program,''))),process[_0x47f6ba(0x28d)](0x0);});export{program};export function runCLI(){const _0x5772ca=a2_0x3562dc,_0x5a0171=!process['argv'][_0x5772ca(0x3af)](0x2)['length'];showBriefHelp=_0x5a0171,program[_0x5772ca(0x248)](process[_0x5772ca(0x172)]);_0x5a0171&&program[_0x5772ca(0x1d9)]();if(process[_0x5772ca(0x33b)][_0x5772ca(0x3b9)]&&process[_0x5772ca(0x172)][_0x5772ca(0x336)]>0x2&&!isDevVersion()){const _0x655742=loadReleaseChannel();checkForUpdate(currentVersion,_0x655742)['then'](_0x5a5848=>{_0x5a5848&&displayUpdateNotification(_0x5a5848);})['catch'](()=>{});}}