@treasuredata/tdx 0.16.7 → 0.16.9

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 (276) 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.d.ts.map +1 -1
  10. package/dist/commands/agent-test-command.js +1 -1
  11. package/dist/commands/agent-test-command.js.map +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.d.ts.map +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/command.js.map +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/job-command.js +1 -1
  26. package/dist/commands/journey-command.js +1 -1
  27. package/dist/commands/journey-validate-command.js +1 -1
  28. package/dist/commands/llm-command.js +1 -1
  29. package/dist/commands/llm-proxy.js +1 -1
  30. package/dist/commands/mcp-command.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profiles-command.js +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/segment-command.js +1 -1
  36. package/dist/commands/segment-create-command.js +1 -1
  37. package/dist/commands/segment-fields-command.js +1 -1
  38. package/dist/commands/segment-pull-command.js +1 -1
  39. package/dist/commands/segment-push-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segment-validate-command.js +1 -1
  43. package/dist/commands/segments.js +1 -1
  44. package/dist/commands/show.js +1 -1
  45. package/dist/commands/status-command.js +1 -1
  46. package/dist/commands/tables.js +1 -1
  47. package/dist/commands/unset-command.js +1 -1
  48. package/dist/commands/use-command.js +1 -1
  49. package/dist/commands/user-command.js +1 -1
  50. package/dist/commands/workflow-command.js +1 -1
  51. package/dist/core/auth.js +1 -1
  52. package/dist/core/command-output.js +1 -1
  53. package/dist/core/config.js +1 -1
  54. package/dist/core/connection-cache.js +1 -1
  55. package/dist/core/constants.js +1 -1
  56. package/dist/core/credential-cache.js +1 -1
  57. package/dist/core/global-context.d.ts +1 -1
  58. package/dist/core/global-context.d.ts.map +1 -1
  59. package/dist/core/global-context.js +1 -1
  60. package/dist/core/global-context.js.map +1 -1
  61. package/dist/core/keychain.js +1 -1
  62. package/dist/core/profile.d.ts +5 -0
  63. package/dist/core/profile.d.ts.map +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/profile.js.map +1 -1
  66. package/dist/core/project-config.js +1 -1
  67. package/dist/core/session.js +1 -1
  68. package/dist/core/user-cache.js +1 -1
  69. package/dist/core/version.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/mcp/server.js +1 -1
  72. package/dist/mcp/tools/index.js +1 -1
  73. package/dist/mcp/tools/tdx-run.js +1 -1
  74. package/dist/mcp/tools/tdx-search.js +1 -1
  75. package/dist/mcp/utils.js +1 -1
  76. package/dist/proxy/anthropic-adapter.js +1 -1
  77. package/dist/proxy/claude-usage-tracker.js +1 -1
  78. package/dist/proxy/context-signature.js +1 -1
  79. package/dist/proxy/conversation-utils.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/server.js +1 -1
  82. package/dist/proxy/session-cache.js +1 -1
  83. package/dist/proxy/sse-usage-parser.js +1 -1
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/agent/test/evaluator.js +1 -1
  88. package/dist/sdk/agent/test/executor.js +1 -1
  89. package/dist/sdk/agent/test/index.js +1 -1
  90. package/dist/sdk/agent/test/output.js +1 -1
  91. package/dist/sdk/agent/test/parser.d.ts.map +1 -1
  92. package/dist/sdk/agent/test/parser.js +1 -1
  93. package/dist/sdk/agent/test/parser.js.map +1 -1
  94. package/dist/sdk/agent/test/types.d.ts +4 -0
  95. package/dist/sdk/agent/test/types.d.ts.map +1 -1
  96. package/dist/sdk/api.js +1 -1
  97. package/dist/sdk/api.js.map +1 -1
  98. package/dist/sdk/claude-agent/claude-agent-client.d.ts.map +1 -1
  99. package/dist/sdk/claude-agent/claude-agent-client.js +1 -1
  100. package/dist/sdk/claude-agent/claude-agent-client.js.map +1 -1
  101. package/dist/sdk/claude-agent/environment.js +1 -1
  102. package/dist/sdk/claude-agent/index.js +1 -1
  103. package/dist/sdk/claude-agent/system-prompts.d.ts +1 -1
  104. package/dist/sdk/claude-agent/system-prompts.d.ts.map +1 -1
  105. package/dist/sdk/claude-agent/system-prompts.js +1 -1
  106. package/dist/sdk/claude-agent/system-prompts.js.map +1 -1
  107. package/dist/sdk/claude-agent/types.d.ts +6 -0
  108. package/dist/sdk/claude-agent/types.d.ts.map +1 -1
  109. package/dist/sdk/client/cdp-api-client.d.ts +1 -2
  110. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  111. package/dist/sdk/client/cdp-api-client.js +1 -1
  112. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  113. package/dist/sdk/client/endpoints.js +1 -1
  114. package/dist/sdk/client/engage-api-client.d.ts +1 -1
  115. package/dist/sdk/client/engage-api-client.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js.map +1 -1
  117. package/dist/sdk/client/http-client.d.ts +2 -5
  118. package/dist/sdk/client/http-client.d.ts.map +1 -1
  119. package/dist/sdk/client/http-client.js +1 -1
  120. package/dist/sdk/client/http-client.js.map +1 -1
  121. package/dist/sdk/client/llm-api-client.d.ts +1 -2
  122. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  123. package/dist/sdk/client/llm-api-client.js +1 -1
  124. package/dist/sdk/client/llm-api-client.js.map +1 -1
  125. package/dist/sdk/client/rate-limiter.js +1 -1
  126. package/dist/sdk/client/td-api-client.d.ts +2 -4
  127. package/dist/sdk/client/td-api-client.d.ts.map +1 -1
  128. package/dist/sdk/client/td-api-client.js +1 -1
  129. package/dist/sdk/client/td-api-client.js.map +1 -1
  130. package/dist/sdk/client/trino-api-client.d.ts +1 -3
  131. package/dist/sdk/client/trino-api-client.d.ts.map +1 -1
  132. package/dist/sdk/client/trino-api-client.js +1 -1
  133. package/dist/sdk/client/trino-api-client.js.map +1 -1
  134. package/dist/sdk/client/workflow-client.d.ts +1 -2
  135. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  136. package/dist/sdk/client/workflow-client.js +1 -1
  137. package/dist/sdk/client/workflow-client.js.map +1 -1
  138. package/dist/sdk/connection-validator.js +1 -1
  139. package/dist/sdk/connection.js +1 -1
  140. package/dist/sdk/connection.js.map +1 -1
  141. package/dist/sdk/engage.js +1 -1
  142. package/dist/sdk/errors.js +1 -1
  143. package/dist/sdk/index.d.ts +2 -10
  144. package/dist/sdk/index.d.ts.map +1 -1
  145. package/dist/sdk/index.js +1 -1
  146. package/dist/sdk/index.js.map +1 -1
  147. package/dist/sdk/io/index.js +1 -1
  148. package/dist/sdk/io/node-filesystem.js +1 -1
  149. package/dist/sdk/job.js +1 -1
  150. package/dist/sdk/job.js.map +1 -1
  151. package/dist/sdk/journey.js +1 -1
  152. package/dist/sdk/journey.js.map +1 -1
  153. package/dist/sdk/llm/chat-cache.js +1 -1
  154. package/dist/sdk/llm/index.d.ts +1 -0
  155. package/dist/sdk/llm/index.d.ts.map +1 -1
  156. package/dist/sdk/llm/index.js +1 -1
  157. package/dist/sdk/llm/index.js.map +1 -1
  158. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  159. package/dist/sdk/llm/model-aliases.js +1 -1
  160. package/dist/sdk/llm/model-factors.js +1 -1
  161. package/dist/sdk/query/index.js +1 -1
  162. package/dist/sdk/query/index.js.map +1 -1
  163. package/dist/sdk/query/sql-parser.js +1 -1
  164. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  165. package/dist/sdk/segment/fields-display.js +1 -1
  166. package/dist/sdk/segment/file-discovery.js +1 -1
  167. package/dist/sdk/segment/journey-utils.js +1 -1
  168. package/dist/sdk/segment/journey-yaml.js +1 -1
  169. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  170. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  171. package/dist/sdk/segment/pull-workflow.js +1 -1
  172. package/dist/sdk/segment/push-workflow.js +1 -1
  173. package/dist/sdk/segment/resolution-context.js +1 -1
  174. package/dist/sdk/segment/segment-path-parser.js +1 -1
  175. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  176. package/dist/sdk/segment/target-resolution.js +1 -1
  177. package/dist/sdk/segment/tdx-config.js +1 -1
  178. package/dist/sdk/segment/validate-files.js +1 -1
  179. package/dist/sdk/segment/yaml-validator.js +1 -1
  180. package/dist/sdk/segment.js +1 -1
  181. package/dist/sdk/segment.js.map +1 -1
  182. package/dist/sdk/types/index.js +1 -1
  183. package/dist/sdk/types/progress.js +1 -1
  184. package/dist/sdk/user.js +1 -1
  185. package/dist/sdk/user.js.map +1 -1
  186. package/dist/sdk/util/format-detector.js +1 -1
  187. package/dist/sdk/util/formatters.js +1 -1
  188. package/dist/sdk/util/index.js +1 -1
  189. package/dist/sdk/util/tree-formatter.js +1 -1
  190. package/dist/sdk/workflow/clone-workflow.js +1 -1
  191. package/dist/sdk/workflow/index.js +1 -1
  192. package/dist/sdk/workflow/index.js.map +1 -1
  193. package/dist/sdk/workflow/pull-workflow.js +1 -1
  194. package/dist/sdk/workflow/push-workflow.js +1 -1
  195. package/dist/sdk/workflow/tdx-config.js +1 -1
  196. package/dist/sdk/workflow/workflow-utils.js +1 -1
  197. package/dist/test-utils/command-runner.d.ts +99 -0
  198. package/dist/test-utils/command-runner.d.ts.map +1 -0
  199. package/dist/test-utils/command-runner.js +1 -0
  200. package/dist/test-utils/command-runner.js.map +1 -0
  201. package/dist/test-utils/factories.d.ts +183 -0
  202. package/dist/test-utils/factories.d.ts.map +1 -0
  203. package/dist/test-utils/factories.js +1 -0
  204. package/dist/test-utils/factories.js.map +1 -0
  205. package/dist/test-utils/fixtures.d.ts +395 -0
  206. package/dist/test-utils/fixtures.d.ts.map +1 -0
  207. package/dist/test-utils/fixtures.js +1 -0
  208. package/dist/test-utils/fixtures.js.map +1 -0
  209. package/dist/test-utils/http-mock.d.ts +285 -0
  210. package/dist/test-utils/http-mock.d.ts.map +1 -0
  211. package/dist/test-utils/http-mock.js +1 -0
  212. package/dist/test-utils/http-mock.js.map +1 -0
  213. package/dist/test-utils/index.d.ts +47 -0
  214. package/dist/test-utils/index.d.ts.map +1 -0
  215. package/dist/test-utils/index.js +1 -0
  216. package/dist/test-utils/index.js.map +1 -0
  217. package/dist/utils/async.js +1 -1
  218. package/dist/utils/colors.js +1 -1
  219. package/dist/utils/diff.js +1 -1
  220. package/dist/utils/file-permissions.js +1 -1
  221. package/dist/utils/global-cache.js +1 -1
  222. package/dist/utils/json-loader.js +1 -1
  223. package/dist/utils/local-cache.js +1 -1
  224. package/dist/utils/logger/formatters/default-formatter.d.ts +33 -0
  225. package/dist/utils/logger/formatters/default-formatter.d.ts.map +1 -0
  226. package/dist/utils/logger/formatters/default-formatter.js +1 -0
  227. package/dist/utils/logger/formatters/default-formatter.js.map +1 -0
  228. package/dist/utils/logger/formatters/index.d.ts +8 -0
  229. package/dist/utils/logger/formatters/index.d.ts.map +1 -0
  230. package/dist/utils/logger/formatters/index.js +1 -0
  231. package/dist/utils/logger/formatters/index.js.map +1 -0
  232. package/dist/utils/logger/handlers/console-handler.d.ts +31 -0
  233. package/dist/utils/logger/handlers/console-handler.d.ts.map +1 -0
  234. package/dist/utils/logger/handlers/console-handler.js +1 -0
  235. package/dist/utils/logger/handlers/console-handler.js.map +1 -0
  236. package/dist/utils/logger/handlers/file-handler.d.ts +51 -0
  237. package/dist/utils/logger/handlers/file-handler.d.ts.map +1 -0
  238. package/dist/utils/logger/handlers/file-handler.js +1 -0
  239. package/dist/utils/logger/handlers/file-handler.js.map +1 -0
  240. package/dist/utils/logger/handlers/index.d.ts +11 -0
  241. package/dist/utils/logger/handlers/index.d.ts.map +1 -0
  242. package/dist/utils/logger/handlers/index.js +1 -0
  243. package/dist/utils/logger/handlers/index.js.map +1 -0
  244. package/dist/utils/logger/handlers/null-handler.d.ts +16 -0
  245. package/dist/utils/logger/handlers/null-handler.d.ts.map +1 -0
  246. package/dist/utils/logger/handlers/null-handler.js +1 -0
  247. package/dist/utils/logger/handlers/null-handler.js.map +1 -0
  248. package/dist/utils/logger/index.d.ts +37 -0
  249. package/dist/utils/logger/index.d.ts.map +1 -0
  250. package/dist/utils/logger/index.js +1 -0
  251. package/dist/utils/logger/index.js.map +1 -0
  252. package/dist/utils/logger/logger.d.ts +132 -0
  253. package/dist/utils/logger/logger.d.ts.map +1 -0
  254. package/dist/utils/logger/logger.js +1 -0
  255. package/dist/utils/logger/logger.js.map +1 -0
  256. package/dist/utils/logger/types.d.ts +95 -0
  257. package/dist/utils/logger/types.d.ts.map +1 -0
  258. package/dist/utils/logger/types.js +1 -0
  259. package/dist/utils/logger/types.js.map +1 -0
  260. package/dist/utils/option-validation.js +1 -1
  261. package/dist/utils/port.js +1 -1
  262. package/dist/utils/process.js +1 -1
  263. package/dist/utils/prompt.js +1 -1
  264. package/dist/utils/spinner.js +1 -1
  265. package/dist/utils/sse-parser.d.ts +9 -2
  266. package/dist/utils/sse-parser.d.ts.map +1 -1
  267. package/dist/utils/sse-parser.js +1 -1
  268. package/dist/utils/sse-parser.js.map +1 -1
  269. package/dist/utils/string-utils.js +1 -1
  270. package/dist/utils/table-ref-parser.js +1 -1
  271. package/dist/utils/tdx-logger.d.ts +44 -21
  272. package/dist/utils/tdx-logger.d.ts.map +1 -1
  273. package/dist/utils/tdx-logger.js +1 -1
  274. package/dist/utils/tdx-logger.js.map +1 -1
  275. package/dist/utils/version-check.js +1 -1
  276. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- function a2_0x57c3(_0x29c15b,_0x22fd3c){_0x29c15b=_0x29c15b-0x135;const _0xe05188=a2_0xe051();let _0x57c30c=_0xe05188[_0x29c15b];return _0x57c30c;}const a2_0x4d6b00=a2_0x57c3;(function(_0x534e0f,_0x5a669c){const _0x52d0fe=a2_0x57c3,_0x1599b2=_0x534e0f();while(!![]){try{const _0x5cdbf1=parseInt(_0x52d0fe(0x29d))/0x1*(parseInt(_0x52d0fe(0x1c2))/0x2)+-parseInt(_0x52d0fe(0x360))/0x3+parseInt(_0x52d0fe(0x143))/0x4+-parseInt(_0x52d0fe(0x177))/0x5+-parseInt(_0x52d0fe(0x1da))/0x6+-parseInt(_0x52d0fe(0x241))/0x7+parseInt(_0x52d0fe(0x369))/0x8;if(_0x5cdbf1===_0x5a669c)break;else _0x1599b2['push'](_0x1599b2['shift']());}catch(_0xd0f927){_0x1599b2['push'](_0x1599b2['shift']());}}}(a2_0xe051,0x3552a));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{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';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x4d6b00(0x216)]('--version')){let versionOutput=a2_0x4d6b00(0x24a)+currentVersion;buildInfo[a2_0x4d6b00(0x1ad)]&&!currentVersion[a2_0x4d6b00(0x216)](buildInfo[a2_0x4d6b00(0x1ad)])&&(versionOutput+='\x20('+buildInfo[a2_0x4d6b00(0x1ad)]+')'),buildInfo['buildTime']&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x4d6b00(0x25e)]),console[a2_0x4d6b00(0x266)](versionOutput),process[a2_0x4d6b00(0x338)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x4d6b00(0x2f8);buildInfo[a2_0x4d6b00(0x1ad)]&&!currentVersion[a2_0x4d6b00(0x216)](buildInfo['gitRevision'])?description+=a2_0x4d6b00(0x343)+currentVersion+'\x20('+buildInfo[a2_0x4d6b00(0x1ad)]+')':description+=a2_0x4d6b00(0x343)+currentVersion;program['name'](a2_0x4d6b00(0x296))['description'](description),program[a2_0x4d6b00(0x183)]('-C,\x20--directory\x20<path>','Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x287),a2_0x4d6b00(0x2a8))[a2_0x4d6b00(0x183)]('--site\x20<site>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x4d6b00(0x15a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x29b),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1b6),a2_0x4d6b00(0x1f5))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x19c),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1af),a2_0x4d6b00(0x211))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x26a),'Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')[a2_0x4d6b00(0x183)]('--output\x20<file>','Save\x20output\x20to\x20file')['option']('--limit\x20<number>',a2_0x4d6b00(0x1ec))[a2_0x4d6b00(0x183)]('--color',a2_0x4d6b00(0x159),![])['option'](a2_0x4d6b00(0x18c),a2_0x4d6b00(0x365),![])[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2c7),'Enable\x20verbose\x20logging',![])[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x23f),a2_0x4d6b00(0x225))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x277),a2_0x4d6b00(0x30f))[a2_0x4d6b00(0x183)]('--timeout\x20<seconds>','Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x227),![])[a2_0x4d6b00(0x183)]('-y,\x20--yes',a2_0x4d6b00(0x140),![])['option']('--session\x20<id>',a2_0x4d6b00(0x22f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ec),a2_0x4d6b00(0x17a))[a2_0x4d6b00(0x183)]('--in\x20<name>',a2_0x4d6b00(0x178))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x158),a2_0x4d6b00(0x165))[a2_0x4d6b00(0x183)]('--llm-project\x20<name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program['configureHelp']({'formatHelp':(_0x4b80b3,_0x552788)=>{const _0x198569=a2_0x4d6b00,_0x5700f4=_0x552788['padWidth'](_0x4b80b3,_0x552788),_0x29efb1=0x2,_0x21f4b7=0x2;function _0x3a32fc(_0x3f5993){const _0x19e238=a2_0x57c3,_0x491539=_0x3f5993;return!!(_0x491539[_0x19e238(0x1a5)]||_0x491539[_0x19e238(0x36b)]);}function _0x511944(_0x55a8ec,_0x2eba9e){const _0x1cf0df=a2_0x57c3;if(_0x2eba9e){const _0x3086e9=''+_0x55a8ec[_0x1cf0df(0x33f)](_0x5700f4+_0x21f4b7)+_0x2eba9e;return _0x3086e9;}return _0x55a8ec;}function _0x2481e5(_0x3236ad){const _0x5d03a7=a2_0x57c3;return _0x3236ad[_0x5d03a7(0x371)]('\x0a')[_0x5d03a7(0x283)](/^/gm,'\x20'[_0x5d03a7(0x312)](_0x29efb1));}const _0x5b3335=[];_0x5b3335[_0x198569(0x32c)](_0x198569(0x256)+_0x552788['commandUsage'](_0x4b80b3));const _0x50a84b=_0x552788['commandDescription'](_0x4b80b3);_0x50a84b&&(_0x5b3335[_0x198569(0x32c)](''),_0x5b3335[_0x198569(0x32c)](_0x50a84b));const _0x52348d=_0x4b80b3[_0x198569(0x24c)][_0x198569(0x30d)](_0x193840=>!_0x3a32fc(_0x193840));if(_0x52348d[_0x198569(0x35d)]>0x0){if(_0x4b80b3['name']()===_0x198569(0x296)){const _0x4fbdc1=_0x4b80b3[_0x198569(0x324)](),_0x362b43=!_0x4fbdc1[_0x198569(0x22c)]&&process[_0x198569(0x275)][_0x198569(0x339)],_0x51abff=COMMAND_CATEGORIES,_0x5988fe=(_0x13e017,_0x5bf0ba)=>_0x362b43?_0x5bf0ba(_0x13e017):_0x13e017,_0x133bab=new Map();_0x52348d[_0x198569(0x201)](_0x1845ab=>{const _0x446e63=_0x198569;_0x133bab[_0x446e63(0x386)](_0x1845ab[_0x446e63(0x390)](),_0x1845ab);}),_0x51abff[_0x198569(0x201)](_0x1a274c=>{const _0x42b704=_0x198569,_0x2c25d0=_0x1a274c[_0x42b704(0x24c)][_0x42b704(0x32d)](_0x56eb02=>_0x133bab[_0x42b704(0x293)](_0x56eb02)??[]);if(_0x2c25d0[_0x42b704(0x35d)]>0x0){_0x5b3335['push'](''),_0x5b3335[_0x42b704(0x32c)](_0x5988fe(_0x1a274c[_0x42b704(0x390)]+':',_0x1a274c[_0x42b704(0x382)]));const _0x4b3588=_0x2c25d0[_0x42b704(0x37d)](_0x5c273c=>{const _0x14b823=_0x42b704,_0x504602=_0x552788[_0x14b823(0x387)](_0x5c273c),_0x164559=_0x552788[_0x14b823(0x1e5)](_0x5c273c);return _0x511944(_0x504602,_0x164559);});_0x5b3335[_0x42b704(0x32c)](_0x2481e5(_0x4b3588));}}),_0x5b3335[_0x198569(0x32c)](''),_0x5b3335[_0x198569(0x32c)](_0x198569(0x2e8));}else{const _0x2e74fd=_0x52348d['map'](_0x4e00e5=>{const _0x3c0d5c=_0x198569,_0x540f0c=_0x552788[_0x3c0d5c(0x387)](_0x4e00e5),_0x561b86=_0x552788[_0x3c0d5c(0x1e5)](_0x4e00e5);return _0x511944(_0x540f0c,_0x561b86);});_0x5b3335['push'](''),_0x5b3335['push']('Commands:'),_0x5b3335[_0x198569(0x32c)](_0x2481e5(_0x2e74fd));}}if(showBriefHelp&&_0x4b80b3[_0x198569(0x390)]()===_0x198569(0x296))_0x5b3335['push'](''),_0x5b3335['push']('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0xbae7d=_0x4b80b3['options']['filter'](_0x56ea64=>!_0x3a32fc(_0x56ea64));if(_0xbae7d[_0x198569(0x35d)]>0x0){const _0x77fe33=_0xbae7d[_0x198569(0x37d)](_0x420928=>{const _0xac403d=_0x198569,_0x427342=_0x552788[_0xac403d(0x1d4)](_0x420928),_0x3cb0b9=_0x552788['optionDescription'](_0x420928);return _0x511944(_0x427342,_0x3cb0b9);});_0x5b3335[_0x198569(0x32c)](''),_0x5b3335[_0x198569(0x32c)](_0x198569(0x2fe)),_0x5b3335['push'](_0x2481e5(_0x77fe33));}}const _0x29427b=(_0x4b80b3[_0x198569(0x315)]||[])[_0x198569(0x30d)](_0x10af3a=>!_0x3a32fc(_0x10af3a));if(_0x29427b[_0x198569(0x35d)]>0x0){const _0xb6f07a=_0x29427b[_0x198569(0x37d)](_0x5e6631=>{const _0x5785ed=_0x198569,_0x3e2e01=_0x552788[_0x5785ed(0x24d)](_0x5e6631),_0x379f07=_0x552788[_0x5785ed(0x282)](_0x5e6631);return _0x511944(_0x3e2e01,_0x379f07);});_0x5b3335['push'](''),_0x5b3335[_0x198569(0x32c)](_0x198569(0x141)),_0x5b3335[_0x198569(0x32c)](_0x2481e5(_0xb6f07a));}return _0x5b3335[_0x198569(0x371)]('\x0a')+'\x0a';},'subcommandTerm':_0x5290d3=>{const _0x35bf8c=a2_0x4d6b00,_0xc03290=(_0x5290d3[_0x35bf8c(0x315)]||[])['map'](_0x280e42=>_0x280e42['required']?'<'+_0x280e42[_0x35bf8c(0x390)]()+'>':'['+_0x280e42[_0x35bf8c(0x390)]()+']')['join']('\x20'),_0x42877a=_0x5290d3[_0x35bf8c(0x262)](),_0x4fcfe7=_0x42877a[_0x35bf8c(0x35d)]>0x0?_0x5290d3[_0x35bf8c(0x390)]()+',\x20'+_0x42877a[_0x35bf8c(0x371)](',\x20'):_0x5290d3[_0x35bf8c(0x390)]();return _0xc03290?_0x4fcfe7+'\x20'+_0xc03290:_0x4fcfe7;}}),program[a2_0x4d6b00(0x1d0)](a2_0x4d6b00(0x250),_0x432664=>{const _0x73d7ac=a2_0x4d6b00,_0x304021=_0x432664[_0x73d7ac(0x324)]();if(_0x304021[_0x73d7ac(0x2a5)]){const _0x582a9e=resolve(_0x304021[_0x73d7ac(0x2a5)]),_0x5ef20e=_0x582a9e!==_0x304021[_0x73d7ac(0x2a5)]?_0x73d7ac(0x139)+_0x582a9e+')':'';if(!existsSync(_0x582a9e))throw new SDKError(ErrorCode[_0x73d7ac(0x345)],_0x73d7ac(0x22e)+_0x304021[_0x73d7ac(0x2a5)]+_0x5ef20e,undefined,{'helpText':_0x73d7ac(0x267)});const _0x28955d=statSync(_0x582a9e);if(!_0x28955d[_0x73d7ac(0x335)]())throw new SDKError(ErrorCode[_0x73d7ac(0x345)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x304021[_0x73d7ac(0x2a5)]+_0x5ef20e,undefined,{'helpText':_0x73d7ac(0x29a)});process['chdir'](_0x582a9e);}if(!_0x304021['format']){if(_0x304021[_0x73d7ac(0x347)])_0x304021[_0x73d7ac(0x23c)]=_0x73d7ac(0x347);else{if(_0x304021[_0x73d7ac(0x351)])_0x304021[_0x73d7ac(0x23c)]='json';else{if(_0x304021[_0x73d7ac(0x2a1)])_0x304021['format']='jsonl';else _0x304021[_0x73d7ac(0x27f)]&&(_0x304021[_0x73d7ac(0x23c)]=_0x73d7ac(0x27f));}}}_0x304021['in']&&!_0x304021[_0x73d7ac(0x272)]&&(_0x304021[_0x73d7ac(0x272)]=_0x304021['in']);if(_0x304021[_0x73d7ac(0x353)])_0x304021[_0x73d7ac(0x199)]=LogLevel['TRACE'];else{if(_0x304021['debug'])_0x304021[_0x73d7ac(0x199)]=LogLevel[_0x73d7ac(0x17e)];else _0x304021[_0x73d7ac(0x199)]===undefined&&(_0x304021['logLevel']=LogLevel[_0x73d7ac(0x21c)]);}});async function createTDXInstance(_0x5ac3ef){const _0x5a888f=a2_0x4d6b00,_0x33d513=await GlobalContext[_0x5a888f(0x303)](_0x5ac3ef);return _0x33d513[_0x5a888f(0x27a)](_0x5ac3ef),TDX['create']({'site':_0x33d513[_0x5a888f(0x16c)],'apiKey':_0x33d513['apiKey'],'logLevel':_0x33d513[_0x5a888f(0x199)],'profile':_0x33d513[_0x5a888f(0x1dd)]});}const databaseCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x272))[a2_0x4d6b00(0x232)]('db')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x28a)),databaseListAction=async(_0x252a63,_0x2d0f5e)=>{const _0x4284b3=a2_0x4d6b00,_0x55b8e3=new DatabasesCommand(),_0x395981=program['opts'](),_0xc9a2ce=await createTDXInstance(_0x395981),_0x52a32d=await _0x55b8e3[_0x4284b3(0x202)]({'options':{..._0x395981,..._0x2d0f5e},'args':_0x252a63?[_0x252a63]:[],'tdx':_0xc9a2ce});gracefulExit(_0x52a32d);};databaseCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x4d6b00(0x17f)](databaseListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x213),{'hidden':!![]})['description'](a2_0x4d6b00(0x2bd))['action'](databaseListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1fb))['description'](a2_0x4d6b00(0x2c8))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1e3),a2_0x4d6b00(0x2bb))[a2_0x4d6b00(0x183)]('--new',a2_0x4d6b00(0x221))[a2_0x4d6b00(0x17f)](async(_0x907964,_0x9f2d15)=>{const _0x21116a=a2_0x4d6b00,_0x5980b5=new ChatCommand(),_0x2bf9c4=program[_0x21116a(0x324)](),_0xf2cb38=await createTDXInstance(_0x2bf9c4),_0x5a6c12=await _0x5980b5[_0x21116a(0x202)]({'options':{..._0x2bf9c4,..._0x9f2d15},'args':_0x907964,'tdx':_0xf2cb38});gracefulExit(_0x5a6c12);});function a2_0xe051(){const _0x507131=['show\x20<name>','subcommandDescription','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Master\x20database\x20name','catch','--html\x20<html>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Name\x20for\x20the\x20new\x20project\x20(required)','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','[DEPRECATED]\x20Segment\x20folder\x20management','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--system-prompt\x20<text>','error','-n,\x20--name\x20<name>','create\x20<segment_name>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--limit\x20<n>','show\x20[name]','Parse\x20and\x20validate\x20without\x20executing','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--last','chat\x20[message...]','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Open\x20parent\x20segment\x20in\x20web\x20browser','usage','validate\x20[name]','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','forEach','run','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','agents\x20[pattern]','--name\x20<text>','Show\x20master\x20table\x20sample\x20data','--include-subtasks','help','LLM\x20project\x20management','--model\x20<name>','--add-behaviors\x20<json>','timeline\x20[project.workflow]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','attempts\x20[project]','Timezone\x20(e.g.,\x20America/Los_Angeles)','view\x20[segment_name]','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Duplicate\x20a\x20campaign','databases\x20[pattern]','-d,\x20--database\x20<database>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','includes','Update\x20a\x20campaign','Updated\x20description','--prompt\x20<text>','journeys\x20[pattern]','port','INFO','HTML\x20template\x20content','create','--attempt-id\x20<id>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Start\x20a\x20new\x20chat\x20session','agent','describe','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','allowUnknownOption','Preview\x20operation\x20without\x20executing','--include-retried','Customer\x20group\x20as\x20JSON\x20string','trino','types','noColor','proxy','Directory\x20does\x20not\x20exist:\x20','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Output\x20as\x20JSON','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','alias','use\x20<path>','update\x20<name-or-id>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','pull\x20[project]\x20[agent-name]','Updated\x20schedule\x20option','Maximum\x20recursion\x20depth\x20(default:\x2010)','Show\x20the\x20most\x20recent\x20chat','--status\x20<status>','Create\x20an\x20email\x20template','format','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Run\x20Trino\x20query\x20with\x20streaming\x20results','--debug','-o,\x20--output\x20<file>','497175dmnFri','--from\x20<timestamp>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--subject\x20<subject>','List\x20secret\x20keys\x20for\x20a\x20project','use\x20<name>','tdx\x20','clone\x20[source-dir]','commands','argumentTerm','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','-w,\x20--web','preAction','Folder\x20description','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','restore\x20<folder>','Export\x20journey(s)\x20as\x20YAML\x20files','Usage:\x20','--revision\x20<revision>','Show\x20workspace\x20details','-y,\x20--yes','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','kill\x20<job-id>','--json-columns\x20<cols>','List\x20all\x20available\x20profiles','buildTime','then','Plaintext\x20template\x20content','-X,\x20--method\x20<method>','aliases','addHelpText','--customer-group\x20<json>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','log','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','information_schema','tasks','--tsv','Filtering\x20rule\x20from\x20JSON\x20file','argv','[attempt-id]','--add-behaviors-file\x20<file>','Pause\x20a\x20campaign','--in\x20<database>','mcp','database','--schedule-option\x20<value>','query\x20[sql]','stdout','Workflow\x20project\x20management','--trace','End\x20time\x20filter\x20(ISO\x208601\x20format)','Customer\x20group\x20from\x20JSON\x20file','injectIntoOptions','show\x20[table]','Include\x20retried\x20attempts','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','show\x20<name-or-id>','tsv','description','Delete\x20a\x20campaign','argumentDescription','replace','Remove\x20a\x20profile','describe\x20[table]','--project\x20<name>','-p,\x20--profile\x20<name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','\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','Database\x20management\x20commands','Create\x20a\x20workspace','Master\x20table\x20name','download\x20<project-name>\x20[output-dir]','chats','models','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','get','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','list\x20[project]','tdx','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--name\x20<name>','--delete','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','--format\x20<format>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','46947QHtJPc','Show\x20journey\x20statistics','Update\x20an\x20existing\x20agent','Data\x20connection\x20management\x20(for\x20activations/exports)','jsonl','create\x20<name>','Output\x20as\x20JSON\x20Lines','Database\x20to\x20query\x20(default:\x20information_schema)','directory','campaigns\x20[pattern]','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--reeval','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--type\x20<type>','\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','journey','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','sonnet','pause\x20<name-or-path>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','folders\x20<parent_name>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','New\x20template\x20name','Force\x20retry\x20even\x20if\x20not\x20failed','Include\x20subtasks\x20in\x20tasks\x20output','Update\x20an\x20email\x20template','--dry-run','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--name\x20<new_name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-o,\x20--output\x20<folder>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','-r,\x20--recursive','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Add\x20behaviors\x20as\x20JSON\x20string','List\x20agents\x20in\x20current\x20project','-1d','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Trino\x20catalog\x20(default:\x20td)','-v,\x20--verbose','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','project','--workspace\x20<name>','session','Make\x20segment\x20invisible\x20(default:\x20visible)','--database\x20<name>','list\x20[path]','Overwrite\x20local\x20changes\x20without\x20confirmation','show\x20<agent-name>','[options]\x20--\x20[claude-code-args...]','workflows\x20[project]','Show\x20segment\x20schema\x20(column\x20types)','Pull\x20workflow\x20project\x20to\x20local\x20folder','show\x20<folder_ref>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Authentication\x20management','\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','Limit\x20number\x20of\x20rows','pull\x20<project>\x20[target-dir]','--invisible','job','Create\x20segment\x20folder','Clear\x20session\x20context','New\x20segment\x20name','Read\x20query\x20from\x20file','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--parent-folder\x20<name>','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--max-depth\x20<depth>','--catalog\x20<catalog>','use\x20[name]','Output\x20file\x20path\x20(default:\x20<name>.yml)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','set\x20<key=value>','Template\x20name','--name\x20<new-name>','-d,\x20--database\x20<name>','attempt','templates\x20[pattern]','Add\x20attributes\x20from\x20JSON\x20file','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Pull\x20specific\x20revision\x20(default:\x20latest)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','profiles','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--attributes-file\x20<file>','List\x20all\x20users\x20in\x20the\x20account','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Campaign\x20management','Preview\x20changes\x20without\x20pushing','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--schedule-type\x20<type>','Campaign\x20description','Options:','-r,\x20--resume','summary','workspace','claude\x20[args...]','createAsync','pull\x20[name]','parents\x20[pattern]','Show\x20connection\x20details\x20by\x20name','Custom\x20revision\x20name\x20(default:\x20timestamp)','--rule-file\x20<file>','--params\x20<json>','List\x20available\x20connector\x20types','Get\x20job\x20results','Show\x20journey\x20details','filter','--yes','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','use\x20<project-name>','desc\x20[name]','repeat','secrets','--plaintext\x20<text>','registeredArguments','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','Resume\x20a\x20paused\x20journey','Skip\x20population\x20counting','delete\x20<agent-name>','update\x20<segment_name>','--session-id\x20<id>','Describe\x20table\x20schema','folder','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--attributes\x20<json>','push\x20[parent_or_file]','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','unset\x20<resource>','Open\x20segment\x20in\x20web\x20browser','opts','--default','projects\x20[pattern]','Skip\x20confirmation\x20prompt','Output\x20folder\x20(default:\x20{project_name}.llm)','Run\x20tests\x20for\x20an\x20LLM\x20agent','--resume-from\x20<task>','-u,\x20--use','push','flatMap','template','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','validate\x20[file]','--data\x20<data>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','isDirectory','--behaviors\x20<json>','Delete\x20an\x20email\x20template','exit','isTTY','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--interval\x20<range>','Project\x20description','Pull\x20child\x20segments\x20to\x20YAML\x20files','Show\x20timeline\x20for\x20specific\x20attempt','padEnd','Show\x20segment\x20details\x20(alias\x20for\x20view)','isArray','show\x20[segment_name]',',\x20version\x20','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','INVALID_ARGUMENT','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','table','Open\x20journey\x20in\x20web\x20browser','Skip\x20validation\x20of\x20.dig\x20files','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Unknown\x20action:\x20','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','list','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','--skip-validation','json','--port\x20<number>','trace','-f,\x20--file\x20<path>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Include\x20retried\x20attempts\x20(for\x20list)','Workspace\x20description','outputHelp','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Update\x20a\x20workspace','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','length','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','895176QFdlXk','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','segments\x20[path]','Email\x20sender\x20ID\x20for\x20delivery','Workspace\x20management','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--description\x20<text>','status','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','2647984cvHgVV','push\x20[path]','hidden','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','argument','Create\x20a\x20new\x20LLM\x20project','4000','--enriched','join','Show\x20job\x20details','Parent\x20segment\x20management','parent-segment','--no-eval','users','Attempt\x20ID','--starter-message\x20<text>','Campaign\x20name','[action]','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','map','Workspace\x20name','Invalid\x20editor\x20type:\x20','activations\x20<segment_name>','--customer-group-file\x20<file>','colorFn','-f,\x20--force','parse','Interactive\x20chat\x20selector','set','subcommandTerm','allowExcessArguments','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--full','Workspace\x20name\x20(required)','--start-at\x20<datetime>','name','Show\x20campaign\x20details','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','resume\x20<name-or-path>','Workflow\x20parameter\x20(repeatable)','view\x20[name]','--stage\x20<name>','\x20(resolved\x20to\x20','--segment\x20<path>','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','after','retry\x20<session-id>','--master','Table\x20management\x20commands','Skip\x20confirmation\x20prompts','Arguments:','Revision\x20name\x20(default:\x20timestamp)','1495708MhZnDY','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','campaign','connection','create\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Output\x20file\x20path','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20only\x20master\x20table\x20validation','Filtering\x20rule\x20as\x20JSON\x20string','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','System\x20prompt/instructions\x20(default:\x20empty)','auth','push\x20[target]','--email-sender-id\x20<id>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','--limit\x20<rows>','--parent-segment\x20<name>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','us01','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','beefree','User\x20management\x20commands','Continue\x20most\x20recent\x20conversation','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','submit\x20[query]','Show\x20agent\x20details','0.7','Remove\x20API\x20key\x20from\x20system\x20keychain','--no-count-population','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','info\x20[segment_name]','sql\x20[segment_name]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','backup\x20<name>','--follow','result\x20<job-id>','site','sql\x20[name]','Attributes\x20from\x20JSON\x20file','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','clone\x20[source]','list\x20[pattern]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Workflow\x20(Digdag)\x20management\x20commands','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--description\x20<desc>','683160KFzKpe','Alias\x20for\x20--database\x20(natural\x20language\x20style)','stderr','Database\x20to\x20use\x20(overrides\x20context)','Workflow\x20attempt\x20management','Behaviors\x20from\x20JSON\x20file','\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','DEBUG','action','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','option','retry','--clear','command','create\x20<parent_name>\x20<folder_name>','--agent\x20<name>','workflow','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','upload\x20[project-name-or-dir]','--no-color','--from-task\x20<task>','Pause\x20a\x20running\x20journey','--rule\x20<json>','GET','fields\x20[parent_name]','--table\x20<table>','Email\x20subject\x20template','Show\x20email\x20template\x20details','Read\x20request\x20body\x20from\x20file','test\x20[path]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--force','logLevel','--reason\x20<text>','run\x20[name]','--json','view\x20<name-or-path>','Delete\x20a\x20workspace','stats\x20<name-or-path>','delete\x20<name-or-id>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','user','Task\x20name\x20for\x20logs\x20action','Show\x20stats\x20for\x20specific\x20stage','_hidden','--kind\x20<type>','--attribute\x20[name]','pull\x20[parent_or_file]','--job-type\x20<type>','desc','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','gitRevision','--session-time\x20<time>','--jsonl','launch\x20<name-or-id>','--timezone\x20<tz>','use\x20[project]','JSON\x20columns\x20for\x20connector\x20(comma-separated)','run\x20[workflow]','settings\x20<type>','--table','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Output\x20directory','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--behavior\x20[name]','Preview\x20changes\x20without\x20writing\x20files','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','preview\x20[name]','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Resume\x20from\x20specific\x20task','18EKPffy','update\x20<name>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Starter\x20message','Override\x20project\x20name','Run\x20specific\x20tests\x20(comma-separated)','\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','Submit\x20a\x20job','New\x20campaign\x20name','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20jobs','--behaviors-file\x20<file>','--folder\x20<name>','push\x20[file]','hook','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Setup\x20API\x20key\x20authentication\x20interactively','List\x20all\x20data\x20connections','optionTerm','Clear\x20workflow\x20project\x20context','Database\x20name\x20(default:\x20information_schema)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','tables\x20[pattern]','grapesjs','2417934YgCKRh','--to\x20<timestamp>','Parent\x20segment\x20description','profile','--name\x20<names>','requiredOption','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','slice','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','--agent\x20<ref>'];a2_0xe051=function(){return _0x507131;};return a2_0xe051();}const apiCmd=program[a2_0x4d6b00(0x186)]('api\x20[endpoint]')[a2_0x4d6b00(0x300)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x4d6b00(0x263)](a2_0x4d6b00(0x13c),'\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_0x4d6b00(0x183)](a2_0x4d6b00(0x261),a2_0x4d6b00(0x37c),a2_0x4d6b00(0x190))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x331),'Request\x20body\x20as\x20JSON\x20string')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x354),a2_0x4d6b00(0x195))[a2_0x4d6b00(0x183)]('-H,\x20--header\x20<header>',a2_0x4d6b00(0x2f4),(_0x5af2a4,_0x2876bb)=>{return _0x2876bb?[..._0x2876bb,_0x5af2a4]:[_0x5af2a4];})[a2_0x4d6b00(0x183)]('--type\x20<api_type>',a2_0x4d6b00(0x1a1),'td')[a2_0x4d6b00(0x17f)](async(_0x540689,_0x37e8a3)=>{const _0x309ab6=a2_0x4d6b00;if(!_0x540689){apiCmd[_0x309ab6(0x208)]();return;}const _0xbcd578=new ApiCommand(),_0x2b1e89=program[_0x309ab6(0x324)](),_0x273b37=await createTDXInstance(_0x2b1e89),_0x275e54=await _0xbcd578[_0x309ab6(0x202)]({'options':{..._0x2b1e89,..._0x37e8a3},'args':[_0x540689],'tdx':_0x273b37});gracefulExit(_0x275e54);});program['command'](a2_0x4d6b00(0x271))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2b5))[a2_0x4d6b00(0x263)](a2_0x4d6b00(0x13c),a2_0x4d6b00(0x289))['action'](async _0xe75ce7=>{const _0x333443=a2_0x4d6b00,_0x4446ce=new MCPCommand(),_0x159de7=program[_0x333443(0x324)](),_0x5c49f6=await createTDXInstance(_0x159de7),_0x439e1d=await _0x4446ce['run']({'options':{..._0x159de7,..._0xe75ce7},'args':[],'tdx':_0x5c49f6});gracefulExit(_0x439e1d);});const tableCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x347))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x13f)),tableListAction=async(_0x4e79b5,_0x47fb01)=>{const _0x2b5a3d=a2_0x4d6b00,_0x4b64b4=new TablesCommand(),_0x2e2997=program[_0x2b5a3d(0x324)](),_0xfd0d51=await createTDXInstance(_0x2e2997);_0x47fb01['in']&&(_0x47fb01[_0x2b5a3d(0x272)]=_0x47fb01['in']);const _0x5b29c3=await _0x4b64b4['run']({'options':{..._0x2e2997,..._0x47fb01},'args':_0x4e79b5?[_0x4e79b5]:[],'tdx':_0xfd0d51});gracefulExit(_0x5b29c3);};tableCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x214),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x4d6b00(0x270),a2_0x4d6b00(0x178))['action'](tableListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1d8),{'hidden':!![]})['description'](a2_0x4d6b00(0x2aa))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x214),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x270),a2_0x4d6b00(0x178))[a2_0x4d6b00(0x17f)](tableListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x27b))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1e6))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x214),a2_0x4d6b00(0x2fb))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x270),a2_0x4d6b00(0x178))[a2_0x4d6b00(0x17f)](async(_0x476ea8,_0x34c323)=>{const _0x94a4cc=a2_0x4d6b00,_0x44543a=new ShowCommand(),_0x3344b1=program[_0x94a4cc(0x324)](),_0x2c5617=await createTDXInstance(_0x3344b1);_0x34c323['in']&&(_0x34c323[_0x94a4cc(0x272)]=_0x34c323['in']);const _0x3b83f1=await _0x44543a[_0x94a4cc(0x202)]({'options':{..._0x3344b1,..._0x34c323},'args':_0x476ea8?[_0x476ea8]:[],'tdx':_0x2c5617});gracefulExit(_0x3b83f1);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x285))[a2_0x4d6b00(0x232)](a2_0x4d6b00(0x1aa))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x31c))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x214),a2_0x4d6b00(0x2fb))['option'](a2_0x4d6b00(0x270),a2_0x4d6b00(0x178))[a2_0x4d6b00(0x17f)](async(_0x37309d,_0x415756)=>{const _0x3f023a=new DescribeCommand(),_0x3de8fd=program['opts'](),_0xf18e0d=await createTDXInstance(_0x3de8fd);_0x415756['in']&&(_0x415756['database']=_0x415756['in']);const _0x3362f4=await _0x3f023a['run']({'options':{..._0x3de8fd,..._0x415756},'args':_0x37309d?[_0x37309d]:[],'tdx':_0xf18e0d});gracefulExit(_0x3362f4);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x274))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x23e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x214),a2_0x4d6b00(0x2a4))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x270),a2_0x4d6b00(0x178))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2e5),a2_0x4d6b00(0x2c6))[a2_0x4d6b00(0x183)]('-f,\x20--file\x20<path>','Read\x20SQL\x20query\x20from\x20file')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x157),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x4d6b00(0x17f)](async(_0x4fb2e7,_0x4b5240)=>{const _0x4bec60=a2_0x4d6b00,_0x573089=new QueryCommand(),_0x42adb2=program['opts'](),_0x695cee=await createTDXInstance(_0x42adb2);_0x4b5240['in']&&(_0x4b5240[_0x4bec60(0x272)]=_0x4b5240['in']);const _0x7ea09f=await _0x573089['run']({'options':{..._0x42adb2,..._0x4b5240},'args':_0x4fb2e7?[_0x4fb2e7]:[],'tdx':_0x695cee});gracefulExit(_0x7ea09f);});const segmentCmd=program[a2_0x4d6b00(0x186)]('segment')[a2_0x4d6b00(0x232)]('sg')[a2_0x4d6b00(0x280)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x52481b,_0x509216)=>{const _0x5a3d72=a2_0x4d6b00,_0x24fd57=new SegmentsCommand(),_0x274326=program[_0x5a3d72(0x324)](),_0x4e68fe=await createTDXInstance(_0x274326),_0x31e421=await _0x24fd57[_0x5a3d72(0x202)]({'options':{..._0x274326,..._0x509216},'args':_0x52481b?[_0x52481b]:[],'tdx':_0x4e68fe});gracefulExit(_0x31e421);};segmentCmd['command'](a2_0x4d6b00(0x2ce))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x290))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2c0),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')['option'](a2_0x4d6b00(0x2e4),a2_0x4d6b00(0x238),'10')['action'](segmentListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x362),{'hidden':!![]})[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1c4))[a2_0x4d6b00(0x183)]('-r,\x20--recursive',a2_0x4d6b00(0x294))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2e4),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x4d6b00(0x17f)](segmentListAction),segmentCmd['command'](a2_0x4d6b00(0x233),{'hidden':!![]})[a2_0x4d6b00(0x280)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x4d6b00(0x17f)](async(_0x1bae52,_0x29a918)=>{const _0x2cbe29=a2_0x4d6b00,_0x34995b=new SegmentUseCommand(),_0x483ff0=program[_0x2cbe29(0x324)](),_0xf80e6d=await createTDXInstance(_0x483ff0),_0x50e3b7=await _0x34995b[_0x2cbe29(0x202)]({'options':{..._0x483ff0,..._0x29a918},'args':[_0x1bae52],'tdx':_0xf80e6d});gracefulExit(_0x50e3b7);});const segmentViewAction=async(_0x6654f2,_0x28f494)=>{const _0x5a51bb=a2_0x4d6b00,_0x4c7a53=new SegmentViewCommand(),_0x5416c0=program[_0x5a51bb(0x324)](),_0x4552de=await createTDXInstance(_0x5416c0),_0x1beed5=await _0x4c7a53['run']({'options':{..._0x5416c0,..._0x28f494},'args':_0x6654f2?[_0x6654f2]:[],'tdx':_0x4552de});gracefulExit(_0x1beed5);};segmentCmd['command'](a2_0x4d6b00(0x210))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2f0))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x24f),a2_0x4d6b00(0x323))[a2_0x4d6b00(0x17f)](segmentViewAction),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x166),{'hidden':!![]})[a2_0x4d6b00(0x232)](a2_0x4d6b00(0x223))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x24f),a2_0x4d6b00(0x323))['description'](a2_0x4d6b00(0x340))['action'](segmentViewAction),segmentCmd[a2_0x4d6b00(0x186)]('desc\x20[segment_name]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2d3))[a2_0x4d6b00(0x17f)](async(_0x24d8fa,_0x506975)=>{const _0x2bbe4b=a2_0x4d6b00,_0x167b9c=new SegmentDescCommand(),_0x1eec08=program['opts'](),_0x738243=await createTDXInstance(_0x1eec08),_0x181cc6=await _0x167b9c[_0x2bbe4b(0x202)]({'options':{..._0x1eec08,..._0x506975},'args':_0x24d8fa?[_0x24d8fa]:[],'tdx':_0x738243});gracefulExit(_0x181cc6);}),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x342))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x297))[a2_0x4d6b00(0x17f)](async(_0x47f3cb,_0x3ad38b)=>{const _0x3d25fb=new SegmentShowCommand(),_0x5c9c24=program['opts'](),_0x3db2e9=await createTDXInstance(_0x5c9c24),_0x8bebca=await _0x3d25fb['run']({'options':{..._0x5c9c24,..._0x3ad38b},'args':_0x47f3cb?[_0x47f3cb]:[],'tdx':_0x3db2e9});gracefulExit(_0x8bebca);}),segmentCmd['command'](a2_0x4d6b00(0x2b2),{'hidden':!![]})[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x180))[a2_0x4d6b00(0x17f)](async(_0x5e0248,_0x4ef017)=>{const _0x53cb7b=a2_0x4d6b00,_0x366665=new SegmentFolderListCommand(),_0x405cd8=program['opts'](),_0x486ffa=await createTDXInstance(_0x405cd8),_0x145280=await _0x366665[_0x53cb7b(0x202)]({'options':{..._0x405cd8,..._0x4ef017},'args':[_0x5e0248],'tdx':_0x486ffa});gracefulExit(_0x145280);});const folderCmd=segmentCmd['command'](a2_0x4d6b00(0x31d),{'hidden':!![]})['description'](a2_0x4d6b00(0x1ef));folderCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2d5))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2bf))[a2_0x4d6b00(0x17f)](async(_0x1df0cc,_0x3c59d7)=>{const _0x2f6610=a2_0x4d6b00,_0x19d850=new SegmentFolderShowCommand(),_0x347015=program[_0x2f6610(0x324)](),_0x280e67=await createTDXInstance(_0x347015),_0x5735b2=await _0x19d850[_0x2f6610(0x202)]({'options':{..._0x347015,..._0x3c59d7},'args':[_0x1df0cc],'tdx':_0x280e67});gracefulExit(_0x5735b2);}),segmentCmd['command'](a2_0x4d6b00(0x167))[a2_0x4d6b00(0x280)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x4d6b00(0x17f)](async(_0x26105e,_0x38d154)=>{const _0xecad=a2_0x4d6b00,_0x2f4c32=new SegmentSQLCommand(),_0x45c9a0=program[_0xecad(0x324)](),_0x387258=await createTDXInstance(_0x45c9a0),_0x27b1ba=await _0x2f4c32[_0xecad(0x202)]({'options':{..._0x45c9a0,..._0x38d154},'args':_0x26105e?[_0x26105e]:[],'tdx':_0x387258});gracefulExit(_0x27b1ba);}),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x191))['description'](a2_0x4d6b00(0x359))[a2_0x4d6b00(0x17f)](async(_0x245820,_0x2193bd)=>{const _0x1bcbb3=a2_0x4d6b00,_0x3f2104=new SegmentFieldsCommand(),_0x559cf7=program['opts'](),_0x583d4e=await createTDXInstance(_0x559cf7),_0x4ae6f5=await _0x3f2104[_0x1bcbb3(0x202)]({'options':{..._0x559cf7,..._0x2193bd},'args':_0x245820?[_0x245820]:[],'tdx':_0x583d4e});gracefulExit(_0x4ae6f5);}),segmentCmd['command'](a2_0x4d6b00(0x1a8))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x33d))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),'Skip\x20confirmation\x20prompts')[a2_0x4d6b00(0x183)]('--dry-run',a2_0x4d6b00(0x24e))['action'](async(_0x55ce74,_0x5203e0)=>{const _0x38d5c2=a2_0x4d6b00,_0x42b20a=new SegmentPullCommand(),_0x2b9268=program[_0x38d5c2(0x324)](),_0x1a9b8b=await createTDXInstance(_0x2b9268),_0x112543=await _0x42b20a[_0x38d5c2(0x202)]({'options':{..._0x2b9268,..._0x5203e0},'args':_0x55ce74?[_0x55ce74]:[],'tdx':_0x1a9b8b});gracefulExit(_0x112543);}),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x320))['description'](a2_0x4d6b00(0x36c))['option'](a2_0x4d6b00(0x259),'Skip\x20confirmation\x20prompts')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x24e))['option'](a2_0x4d6b00(0x299),a2_0x4d6b00(0x224))[a2_0x4d6b00(0x17f)](async(_0x37d06d,_0x3e3edd)=>{const _0x3a9629=a2_0x4d6b00,_0x5098bb=new SegmentPushCommand(),_0x444325=program[_0x3a9629(0x324)](),_0x2248b8=await createTDXInstance(_0x444325),_0x3b10d7=await _0x5098bb[_0x3a9629(0x202)]({'options':{..._0x444325,..._0x3e3edd},'args':_0x37d06d?[_0x37d06d]:[],'tdx':_0x2248b8});gracefulExit(_0x3b10d7);}),segmentCmd['command']('validate\x20[target]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x38a))[a2_0x4d6b00(0x17f)](async(_0x3e9686,_0x1e8ed2)=>{const _0x5974fa=a2_0x4d6b00,_0x1b284d=new SegmentValidateCommand(),_0x1749f9=program['opts'](),_0x46e7ce=await createTDXInstance(_0x1749f9),_0x2dcfbd=await _0x1b284d[_0x5974fa(0x202)]({'options':{..._0x1749f9,..._0x1e8ed2},'args':_0x3e9686?[_0x3e9686]:[],'tdx':_0x46e7ce});gracefulExit(_0x2dcfbd);}),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1f4),{'hidden':!![]})['description'](a2_0x4d6b00(0x2e1))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x366),'Segment\x20description')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x18f),a2_0x4d6b00(0x150))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x308),a2_0x4d6b00(0x26b))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ce),'Folder\x20name\x20for\x20organization')[a2_0x4d6b00(0x183)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['option'](a2_0x4d6b00(0x2db),a2_0x4d6b00(0x2cc))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x164),a2_0x4d6b00(0x318))['action'](async(_0x516756,_0x3b821d)=>{const _0xdfc215=a2_0x4d6b00,_0x5db540=new SegmentCreateCommand(),_0x8a1c7a=program['opts'](),_0x1de30b=await createTDXInstance(_0x8a1c7a),_0xacb9cf=await _0x5db540[_0xdfc215(0x202)]({'options':{..._0x8a1c7a,..._0x3b821d},'args':[_0x516756],'tdx':_0x1de30b});gracefulExit(_0xacb9cf);}),segmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x31a),{'hidden':!![]})['description'](a2_0x4d6b00(0x1ab))['option'](a2_0x4d6b00(0x2bc),a2_0x4d6b00(0x2df))[a2_0x4d6b00(0x183)]('--description\x20<text>',a2_0x4d6b00(0x218))[a2_0x4d6b00(0x183)]('--rule\x20<json>',a2_0x4d6b00(0x2d6))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x308),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ce),'Move\x20to\x20folder')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1a6),a2_0x4d6b00(0x2c1))[a2_0x4d6b00(0x17f)](async(_0x232563,_0x2cd764)=>{const _0x11d841=a2_0x4d6b00,_0x51dc9d=new SegmentUpdateCommand(),_0x51b56c=program['opts'](),_0x5598ec=await createTDXInstance(_0x51b56c),_0x182ef8=await _0x51dc9d[_0x11d841(0x202)]({'options':{..._0x51b56c,..._0x2cd764},'args':[_0x232563],'tdx':_0x5598ec});gracefulExit(_0x182ef8);});const parentCmd=segmentCmd[a2_0x4d6b00(0x186)]('parent',{'hidden':!![]})[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x13b)),parentListAction=async(_0x26d5ab,_0x3d9347)=>{const _0x4dd11d=a2_0x4d6b00,_0x2a003b=new ParentSegmentListCommand(),_0x1a2532=program[_0x4dd11d(0x324)](),_0x441891=await createTDXInstance(_0x1a2532),_0x549953=await _0x2a003b[_0x4dd11d(0x202)]({'options':{..._0x1a2532,..._0x3d9347},'args':_0x26d5ab?[_0x26d5ab]:[],'tdx':_0x441891});gracefulExit(_0x549953);};parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x27d))[a2_0x4d6b00(0x17f)](parentListAction),segmentCmd['command'](a2_0x4d6b00(0x305),{'hidden':!![]})[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1d7))[a2_0x4d6b00(0x17f)](parentListAction),parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x304))['description'](a2_0x4d6b00(0x151))[a2_0x4d6b00(0x183)]('-o,\x20--output\x20<file>',a2_0x4d6b00(0x2e7))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](async(_0x1e7378,_0x57c79c)=>{const _0x1eccbf=a2_0x4d6b00,_0x46ce0f=new ParentSegmentPullCommand(),_0xd65e98=program[_0x1eccbf(0x324)](),_0x2e541d=await createTDXInstance(_0xd65e98),_0x1a9649=await _0x46ce0f[_0x1eccbf(0x202)]({'options':{..._0xd65e98,..._0x57c79c},'args':_0x1e7378?[_0x1e7378]:[],'tdx':_0x2e541d});gracefulExit(_0x1a9649);}),parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1cf))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x215))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),'Skip\x20confirmation\x20prompt')['action'](async(_0x5ca660,_0xde038c)=>{const _0x25b073=a2_0x4d6b00,_0x5b8de6=new ParentSegmentPushCommand(),_0x4cff76=program[_0x25b073(0x324)](),_0x5e0ae4=await createTDXInstance(_0x4cff76),_0x311891=await _0x5b8de6['run']({'options':{..._0x4cff76,..._0xde038c},'args':_0x5ca660?[_0x5ca660]:[],'tdx':_0x5e0ae4});gracefulExit(_0x311891);}),parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x330))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x38b))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x13e),a2_0x4d6b00(0x14f))['option'](a2_0x4d6b00(0x1a7),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x4d6b00(0x183)]('--behavior\x20[name]',a2_0x4d6b00(0x252))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x370),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x4d6b00(0x183)]('--interval\x20<range>',a2_0x4d6b00(0x1be),'-1d')['action'](async(_0x5a4de7,_0x387c79)=>{const _0x22dcc0=a2_0x4d6b00,_0x3a3d30=new ParentSegmentValidateCommand(),_0x382ac3=program['opts'](),_0x406e07=await createTDXInstance(_0x382ac3),_0xc709de=await _0x3a3d30[_0x22dcc0(0x202)]({'options':{..._0x382ac3,..._0x387c79},'args':_0x5a4de7?[_0x5a4de7]:[],'tdx':_0x406e07});gracefulExit(_0xc709de);}),parentCmd[a2_0x4d6b00(0x186)]('preview\x20[file]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2e3))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x13e),a2_0x4d6b00(0x206))['option']('--attribute\x20[name]',a2_0x4d6b00(0x18a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ba),a2_0x4d6b00(0x149))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x370),a2_0x4d6b00(0x368))[a2_0x4d6b00(0x183)]('--interval\x20<range>',a2_0x4d6b00(0x1be),'-1d')[a2_0x4d6b00(0x17f)](async(_0x17b3ba,_0x20e054)=>{const _0x1355ff=a2_0x4d6b00,_0x42899b=new ParentSegmentPreviewCommand(),_0x1bdcf7=program[_0x1355ff(0x324)](),_0x383ef3=await createTDXInstance(_0x1bdcf7),_0x343928=await _0x42899b[_0x1355ff(0x202)]({'options':{..._0x1bdcf7,..._0x20e054},'args':_0x17b3ba?[_0x17b3ba]:[],'tdx':_0x383ef3});gracefulExit(_0x343928);}),parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x19b))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x25a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),'Skip\x20confirmation\x20prompt')[a2_0x4d6b00(0x17f)](async(_0x4ce55c,_0x27a278)=>{const _0x9867e2=a2_0x4d6b00,_0x1a24c0=new ParentSegmentRunCommand(),_0x5e3385=program[_0x9867e2(0x324)](),_0x4f41a4=await createTDXInstance(_0x5e3385),_0x26ad08=await _0x1a24c0[_0x9867e2(0x202)]({'options':{..._0x5e3385,..._0x27a278},'args':_0x4ce55c?[_0x4ce55c]:[],'tdx':_0x4f41a4});gracefulExit(_0x26ad08);});const parentSegmentCmd=program['command'](a2_0x4d6b00(0x374))[a2_0x4d6b00(0x232)]('ps')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x373));parentSegmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x4d6b00(0x17f)](parentListAction),parentSegmentCmd['command'](a2_0x4d6b00(0x304))['description']('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x240),a2_0x4d6b00(0x14b))['option']('-y,\x20--yes',a2_0x4d6b00(0x327))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x32b),a2_0x4d6b00(0x1b7))[a2_0x4d6b00(0x17f)](async(_0x29a218,_0x1d5ab5)=>{const _0x1306e2=a2_0x4d6b00,_0x3beac5=new ParentSegmentPullCommand(),_0x4ceaf0=program[_0x1306e2(0x324)](),_0x15a498=await createTDXInstance(_0x4ceaf0),_0x33628f=await _0x3beac5[_0x1306e2(0x202)]({'options':{..._0x4ceaf0,..._0x1d5ab5},'args':_0x29a218?[_0x29a218]:[],'tdx':_0x15a498});gracefulExit(_0x33628f);}),parentSegmentCmd[a2_0x4d6b00(0x186)]('push\x20[name]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x34c))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))['action'](async(_0x1b332d,_0x543839)=>{const _0x48c3f4=new ParentSegmentPushCommand(),_0x533ac9=program['opts'](),_0x294f8b=await createTDXInstance(_0x533ac9),_0x43478d=await _0x48c3f4['run']({'options':{..._0x533ac9,..._0x543839},'args':_0x1b332d?[_0x1b332d]:[],'tdx':_0x294f8b});gracefulExit(_0x43478d);}),parentSegmentCmd['command'](a2_0x4d6b00(0x1ff))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x38b))['option']('--master',a2_0x4d6b00(0x14f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1a7),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ba),a2_0x4d6b00(0x252))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x370),a2_0x4d6b00(0x246))[a2_0x4d6b00(0x183)]('--interval\x20<range>',a2_0x4d6b00(0x1be),a2_0x4d6b00(0x2c4))[a2_0x4d6b00(0x17f)](async(_0x448e36,_0x2ec3c8)=>{const _0x231781=a2_0x4d6b00,_0x3c44ff=new ParentSegmentValidateCommand(),_0xa78171=program[_0x231781(0x324)](),_0x5aac22=await createTDXInstance(_0xa78171),_0x4ddad3=await _0x3c44ff[_0x231781(0x202)]({'options':{..._0xa78171,..._0x2ec3c8},'args':_0x448e36?[_0x448e36]:[],'tdx':_0x5aac22});gracefulExit(_0x4ddad3);}),parentSegmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1bd))['description'](a2_0x4d6b00(0x2e3))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x13e),a2_0x4d6b00(0x206))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1a7),a2_0x4d6b00(0x18a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ba),a2_0x4d6b00(0x149))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x370),a2_0x4d6b00(0x368))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x33b),a2_0x4d6b00(0x1be),a2_0x4d6b00(0x2c4))[a2_0x4d6b00(0x17f)](async(_0x41db0d,_0x4ff4db)=>{const _0x1698be=a2_0x4d6b00,_0x1c0431=new ParentSegmentPreviewCommand(),_0x5694d0=program[_0x1698be(0x324)](),_0x45477f=await createTDXInstance(_0x5694d0),_0x577d2b=await _0x1c0431[_0x1698be(0x202)]({'options':{..._0x5694d0,..._0x4ff4db},'args':_0x41db0d?[_0x41db0d]:[],'tdx':_0x45477f});gracefulExit(_0x577d2b);}),parentSegmentCmd['command']('run\x20[name]')['description'](a2_0x4d6b00(0x25a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](async(_0x105c71,_0x55aa46)=>{const _0x5d27bc=a2_0x4d6b00,_0x1ad5c2=new ParentSegmentRunCommand(),_0x4560fc=program['opts'](),_0x1eb39f=await createTDXInstance(_0x4560fc),_0x308c4c=await _0x1ad5c2[_0x5d27bc(0x202)]({'options':{..._0x4560fc,..._0x55aa46},'args':_0x105c71?[_0x105c71]:[],'tdx':_0x1eb39f});gracefulExit(_0x308c4c);}),parentSegmentCmd[a2_0x4d6b00(0x186)]('fields\x20[name]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x182))['option']('--json',a2_0x4d6b00(0x230))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1af),a2_0x4d6b00(0x2a3))[a2_0x4d6b00(0x17f)](async(_0x5a24a9,_0x556d88)=>{const _0x5adb18=a2_0x4d6b00,_0x507958=new ParentSegmentFieldsCommand(),_0x4f6e37=program['opts'](),_0x276985=await createTDXInstance(_0x4f6e37),_0x15927d=await _0x507958[_0x5adb18(0x202)]({'options':{..._0x4f6e37,..._0x556d88},'args':_0x5a24a9?[_0x5a24a9]:[],'tdx':_0x276985});gracefulExit(_0x15927d);}),parentSegmentCmd['command'](a2_0x4d6b00(0x137))[a2_0x4d6b00(0x280)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x24f),a2_0x4d6b00(0x1fd))[a2_0x4d6b00(0x183)]('--json','Output\x20as\x20JSON')[a2_0x4d6b00(0x183)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x4d6b00(0x17f)](async(_0x153df8,_0xa1a1aa)=>{const _0x54f5f3=a2_0x4d6b00,_0x3609d2=new ParentSegmentViewCommand(),_0x50fcaa=program[_0x54f5f3(0x324)](),_0x2630ea=await createTDXInstance(_0x50fcaa),_0x4d634c=await _0x3609d2[_0x54f5f3(0x202)]({'options':{..._0x50fcaa,..._0xa1a1aa},'args':_0x153df8?[_0x153df8]:[],'tdx':_0x2630ea});gracefulExit(_0x4d634c);}),parentSegmentCmd['command'](a2_0x4d6b00(0x311))['description'](a2_0x4d6b00(0x1cb))['option']('--json','Output\x20as\x20JSON')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1af),a2_0x4d6b00(0x2a3))[a2_0x4d6b00(0x17f)](async(_0x195cbc,_0x2c4ecf)=>{const _0x3c0a18=a2_0x4d6b00,_0x574543=new ParentSegmentDescCommand(),_0x3d0f25=program[_0x3c0a18(0x324)](),_0x53a5a6=await createTDXInstance(_0x3d0f25),_0x509164=await _0x574543[_0x3c0a18(0x202)]({'options':{..._0x3d0f25,..._0x2c4ecf},'args':_0x195cbc?[_0x195cbc]:[],'tdx':_0x53a5a6});gracefulExit(_0x509164);}),parentSegmentCmd['command'](a2_0x4d6b00(0x16d))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x14c))[a2_0x4d6b00(0x183)]('--json',a2_0x4d6b00(0x230))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1af),a2_0x4d6b00(0x2a3))[a2_0x4d6b00(0x17f)](async(_0x5be6f5,_0x4f4382)=>{const _0x16a4ea=a2_0x4d6b00,_0x387ac6=new ParentSegmentSQLCommand(),_0xbe5ecf=program[_0x16a4ea(0x324)](),_0x4a6842=await createTDXInstance(_0xbe5ecf),_0x29d897=await _0x387ac6[_0x16a4ea(0x202)]({'options':{..._0xbe5ecf,..._0x4f4382},'args':_0x5be6f5?[_0x5be6f5]:[],'tdx':_0x4a6842});gracefulExit(_0x29d897);}),parentSegmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1f7))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x392))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1f6),a2_0x4d6b00(0x2d9))['option'](a2_0x4d6b00(0x19c),a2_0x4d6b00(0x230))[a2_0x4d6b00(0x183)]('--jsonl',a2_0x4d6b00(0x2a3))[a2_0x4d6b00(0x17f)](async(_0x410d9d,_0x25cf6f)=>{const _0x573813=a2_0x4d6b00,_0x5ac1d8=new ParentSegmentShowCommand(),_0x410de7=program[_0x573813(0x324)](),_0x3329e9=await createTDXInstance(_0x410de7),_0x1e95ea=await _0x5ac1d8[_0x573813(0x202)]({'options':{..._0x410de7,..._0x25cf6f},'args':_0x410d9d?[_0x410d9d]:[],'tdx':_0x3329e9});gracefulExit(_0x1e95ea);}),parentSegmentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2e6))[a2_0x4d6b00(0x280)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x4d6b00(0x17f)](async(_0xa7caf,_0x38ce61)=>{const _0x46b6a4=a2_0x4d6b00,_0x1f9d1d=new UseCommand(),_0x5d742a=program[_0x46b6a4(0x324)](),_0x39cb25=_0xa7caf?['parent_segment',_0xa7caf]:[],_0x36f031=await _0x1f9d1d['run']({'options':{..._0x5d742a,..._0x38ce61},'args':_0x39cb25,'tdx':null});gracefulExit(_0x36f031);}),parentCmd['command']('create\x20<name>')[a2_0x4d6b00(0x280)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption']('--database\x20<db>',a2_0x4d6b00(0x1e8))['requiredOption'](a2_0x4d6b00(0x192),a2_0x4d6b00(0x28c))['option'](a2_0x4d6b00(0x366),a2_0x4d6b00(0x1dc))['option']('--schedule-type\x20<type>',a2_0x4d6b00(0x14e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x273),a2_0x4d6b00(0x244))['option']('--timezone\x20<tz>',a2_0x4d6b00(0x20f))['option'](a2_0x4d6b00(0x31f),'Attributes\x20as\x20JSON\x20string')['option'](a2_0x4d6b00(0x2f5),a2_0x4d6b00(0x16e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x336),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x4d6b00(0x1cd),a2_0x4d6b00(0x17c))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x264),a2_0x4d6b00(0x229))['option'](a2_0x4d6b00(0x381),a2_0x4d6b00(0x279))[a2_0x4d6b00(0x17f)](async(_0x83b346,_0x4c3a37)=>{const _0x3082cd=a2_0x4d6b00,_0x903306=new ParentSegmentCreateCommand(),_0x2d8d3d=program[_0x3082cd(0x324)](),_0x22ec65=await createTDXInstance(_0x2d8d3d),_0x202634=await _0x903306['run']({'options':{..._0x2d8d3d,..._0x4c3a37},'args':[_0x83b346],'tdx':_0x22ec65});gracefulExit(_0x202634);}),parentCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1c3))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x333))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x366),a2_0x4d6b00(0x218))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2fc),a2_0x4d6b00(0x31e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x273),a2_0x4d6b00(0x237))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1b1),'Updated\x20timezone')['option']('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a2_0x4d6b00(0x183)]('--add-attributes-file\x20<file>',a2_0x4d6b00(0x2ef))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x20b),a2_0x4d6b00(0x2c2))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x26e),'Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0x4b255,_0x37758a)=>{const _0x3a65d6=a2_0x4d6b00,_0x5c7cdd=new ParentSegmentUpdateCommand(),_0x283521=program[_0x3a65d6(0x324)](),_0x821ad1=await createTDXInstance(_0x283521),_0x10a4ae=await _0x5c7cdd[_0x3a65d6(0x202)]({'options':{..._0x283521,..._0x37758a},'args':[_0x4b255],'tdx':_0x821ad1});gracefulExit(_0x10a4ae);}),folderCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x187))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2dd))[a2_0x4d6b00(0x183)]('--description\x20<text>',a2_0x4d6b00(0x251))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2e2),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x4d6b00(0x17f)](async(_0x1493ae,_0x30b78f,_0x17c003)=>{const _0x3d6e72=a2_0x4d6b00,_0x24798f=new SegmentFolderCreateCommand(),_0x35c23b=program[_0x3d6e72(0x324)](),_0x33e8d0=await createTDXInstance(_0x35c23b),_0x2f2103=await _0x24798f['run']({'options':{..._0x35c23b,..._0x17c003},'args':[_0x1493ae,_0x30b78f],'tdx':_0x33e8d0});gracefulExit(_0x2f2103);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x380))['description'](a2_0x4d6b00(0x346))[a2_0x4d6b00(0x17f)](async(_0x485a08,_0x2e7f9f)=>{const _0x15e969=a2_0x4d6b00,_0x27298d=new ActivationsCommand(),_0x34d733=program[_0x15e969(0x324)](),_0x158d0c=await createTDXInstance(_0x34d733),_0x55f91d=await _0x27298d[_0x15e969(0x202)]({'options':{..._0x34d733,..._0x2e7f9f},'args':[_0x485a08],'tdx':_0x158d0c});gracefulExit(_0x55f91d);});const workflowCmd=program['command'](a2_0x4d6b00(0x189))[a2_0x4d6b00(0x232)]('wf')['description'](a2_0x4d6b00(0x173)),wfProjectCmd=workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2c9))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x276)),wfProjectListAction=async(_0x1efefa,_0x5077c0)=>{const _0x6a8ea=a2_0x4d6b00,_0x5c3c8e=new WorkflowProjectsCommand(),_0x4d2281=program[_0x6a8ea(0x324)](),_0x6ca03a=await createTDXInstance(_0x4d2281),_0x2c49cf=await _0x5c3c8e[_0x6a8ea(0x202)]({'options':{..._0x4d2281,..._0x5077c0},'args':_0x1efefa?[_0x1efefa]:[],'tdx':_0x6ca03a});gracefulExit(_0x2c49cf);};wfProjectCmd['command'](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1eb))['action'](wfProjectListAction),workflowCmd[a2_0x4d6b00(0x186)]('projects\x20[pattern]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x220))[a2_0x4d6b00(0x17f)](wfProjectListAction);const wfWorkflowListAction=async(_0x494aba,_0x52f5b1)=>{const _0x4e3a2a=a2_0x4d6b00,_0x4e01e5=new WorkflowWorkflowsCommand(),_0x4fc74e=program[_0x4e3a2a(0x324)](),_0x3a8b96=await createTDXInstance(_0x4fc74e),_0x3a17de=await _0x4e01e5['run']({'options':{..._0x4fc74e,..._0x52f5b1},'args':_0x494aba?[_0x494aba]:[],'tdx':_0x3a8b96});gracefulExit(_0x3a17de);};workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2d2))['description'](a2_0x4d6b00(0x344))[a2_0x4d6b00(0x17f)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2cb))[a2_0x4d6b00(0x280)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x3665fd,_0x5d116d)=>{const _0x3cad61=a2_0x4d6b00,_0x4a92a1=new WorkflowSessionsCommand(),_0x3f2eb7=program[_0x3cad61(0x324)](),_0x3076a0=await createTDXInstance(_0x3f2eb7),_0x403da0=await _0x4a92a1['run']({'options':{..._0x3f2eb7,..._0x5d116d},'args':_0x3665fd?[_0x3665fd]:[],'tdx':_0x3076a0});gracefulExit(_0x403da0);};wfSessionCmd[a2_0x4d6b00(0x186)]('list\x20[project]')['description'](a2_0x4d6b00(0x20d))['option'](a2_0x4d6b00(0x23a),a2_0x4d6b00(0x292))[a2_0x4d6b00(0x183)]('--from\x20<timestamp>',a2_0x4d6b00(0x172))['option'](a2_0x4d6b00(0x1db),a2_0x4d6b00(0x278))[a2_0x4d6b00(0x17f)](wfSessionListAction),workflowCmd[a2_0x4d6b00(0x186)]('sessions\x20[project]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x35a))['option']('--status\x20<status>',a2_0x4d6b00(0x292))['option'](a2_0x4d6b00(0x242),a2_0x4d6b00(0x172))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1db),a2_0x4d6b00(0x278))[a2_0x4d6b00(0x17f)](wfSessionListAction);const wfAttemptListAction=async(_0x5ba612,_0xf0e4d8)=>{const _0x2c65e4=a2_0x4d6b00,_0x30d978=new WorkflowAttemptsCommand(),_0xa2581d=program[_0x2c65e4(0x324)](),_0x5d09f5=await createTDXInstance(_0xa2581d),_0x3757ac=await _0x30d978[_0x2c65e4(0x202)]({'options':{..._0xa2581d,..._0xf0e4d8},'args':_0x5ba612?[_0x5ba612]:[],'tdx':_0x5d09f5});gracefulExit(_0x3757ac);},attemptCmd=workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2ed))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x17b))['argument'](a2_0x4d6b00(0x26d),a2_0x4d6b00(0x377))[a2_0x4d6b00(0x36d)](a2_0x4d6b00(0x37a),a2_0x4d6b00(0x35e))[a2_0x4d6b00(0x36d)]('[task-name]',a2_0x4d6b00(0x1a3))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x207),a2_0x4d6b00(0x2b8))['option'](a2_0x4d6b00(0x19a),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x32a),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x309),a2_0x4d6b00(0x35f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x198),a2_0x4d6b00(0x2b7))['option']('--include-retried',a2_0x4d6b00(0x356))[a2_0x4d6b00(0x17f)](async(_0x4edda1,_0x3f6f63,_0x12b6e3,_0x5c7dfc)=>{const _0x39c6f7=a2_0x4d6b00;if(_0x4edda1===_0x39c6f7(0x34e)){await wfAttemptListAction(_0x3f6f63,_0x5c7dfc);return;}if(!_0x4edda1){attemptCmd[_0x39c6f7(0x208)]();return;}const _0xf8f802=program['opts'](),_0x5d40bb=await createTDXInstance(_0xf8f802);let _0xe9f6a8=0x0;if(!_0x3f6f63){const _0x28a175=new WorkflowAttemptCommand();_0xe9f6a8=await _0x28a175[_0x39c6f7(0x202)]({'options':{..._0xf8f802,..._0x5c7dfc},'args':[_0x4edda1],'tdx':_0x5d40bb});}else{if(_0x3f6f63==='logs'){const _0x4151d9=new WorkflowLogsCommand();_0xe9f6a8=await _0x4151d9[_0x39c6f7(0x202)]({'options':{..._0xf8f802,..._0x5c7dfc},'args':_0x12b6e3?[_0x4edda1,_0x12b6e3]:[_0x4edda1],'tdx':_0x5d40bb});}else{if(_0x3f6f63===_0x39c6f7(0x269)){const _0x3330ed=new WorkflowTasksCommand();_0xe9f6a8=await _0x3330ed[_0x39c6f7(0x202)]({'options':{..._0xf8f802,..._0x5c7dfc},'args':[_0x4edda1],'tdx':_0x5d40bb});}else{if(_0x3f6f63==='kill'){const _0x5d6e58=new WorkflowKillCommand();_0xe9f6a8=await _0x5d6e58[_0x39c6f7(0x202)]({'options':{..._0xf8f802,..._0x5c7dfc},'args':[_0x4edda1],'tdx':_0x5d40bb});}else{if(_0x3f6f63===_0x39c6f7(0x184)){const _0x3249f6=new WorkflowRetryCommand();_0xe9f6a8=await _0x3249f6['run']({'options':{..._0xf8f802,..._0x5c7dfc},'args':['attempt:'+_0x4edda1],'tdx':_0x5d40bb});}else console[_0x39c6f7(0x1f2)](_0x39c6f7(0x34b)+_0x3f6f63),console[_0x39c6f7(0x1f2)](_0x39c6f7(0x32f)),_0xe9f6a8=0x1;}}}}gracefulExit(_0xe9f6a8);});attemptCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x295))['description'](a2_0x4d6b00(0x2a7))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x228),a2_0x4d6b00(0x27c))[a2_0x4d6b00(0x17f)](wfAttemptListAction),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x20e))['description'](a2_0x4d6b00(0x355))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x228),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x20c))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x231))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x16a),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x31b),a2_0x4d6b00(0x203))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x21f),a2_0x4d6b00(0x33e))['action'](async(_0x44374f,_0x5ddac7)=>{const _0x192810=a2_0x4d6b00,_0x562a6d=new WorkflowTimelineCommand(),_0x57f1a3=program[_0x192810(0x324)](),_0xc58814=await createTDXInstance(_0x57f1a3),_0x5878bb=await _0x562a6d[_0x192810(0x202)]({'options':{..._0x57f1a3,..._0x5ddac7},'args':_0x44374f?[_0x44374f]:[],'tdx':_0xc58814});gracefulExit(_0x5878bb);}),workflowCmd['command'](a2_0x4d6b00(0x13d))[a2_0x4d6b00(0x280)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x4d6b00(0x18d),a2_0x4d6b00(0x1c1))[a2_0x4d6b00(0x183)]('--params\x20<json>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x4d6b00(0x17f)](async(_0x5965b0,_0x5d2350)=>{const _0x242866=a2_0x4d6b00,_0xa6f275=new WorkflowRetryCommand(),_0x14b9b3=program[_0x242866(0x324)](),_0x3af42a=await createTDXInstance(_0x14b9b3),_0x3bc048=await _0xa6f275[_0x242866(0x202)]({'options':{..._0x14b9b3,..._0x5d2350},'args':[_0x5965b0],'tdx':_0x3af42a});gracefulExit(_0x3bc048);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1b4))[a2_0x4d6b00(0x280)]('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x4d6b00(0x183)]('--param\x20<key=value>',a2_0x4d6b00(0x136),(_0x4a41f7,_0x21f840=[])=>[..._0x21f840,_0x4a41f7],[])[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ae),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x4d6b00(0x17f)](async(_0x4220c3,_0x202abb)=>{const _0x43c84c=a2_0x4d6b00,_0x39f4d5=new WorkflowRunCommand(),_0x2d8216=program[_0x43c84c(0x324)](),_0x182cfb=await createTDXInstance(_0x2d8216),_0x48b8d8=await _0x39f4d5[_0x43c84c(0x202)]({'options':{..._0x2d8216,..._0x202abb},'args':_0x4220c3?[_0x4220c3]:[],'tdx':_0x182cfb});gracefulExit(_0x48b8d8);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x28d))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x200))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x257),a2_0x4d6b00(0x34a))['action'](async(_0x45aa71,_0x230a19,_0x1d9e5b)=>{const _0x1b842b=a2_0x4d6b00,_0x3edebb=new WorkflowDownloadCommand(),_0x395376=program[_0x1b842b(0x324)](),_0x5a30d7=await createTDXInstance(_0x395376),_0x4a5860=await _0x3edebb['run']({'options':{..._0x395376,..._0x1d9e5b},'args':[_0x45aa71,_0x230a19||'.'],'tdx':_0x5a30d7});gracefulExit(_0x4a5860);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2da))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2d4))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x257),a2_0x4d6b00(0x2f1))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x1bb))['option'](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))['action'](async(_0x20c052,_0xbee445,_0x46495c)=>{const _0x27313=a2_0x4d6b00,_0x568ede=new WorkflowPullCommand(),_0x91efac=program[_0x27313(0x324)](),_0x54d8e6=await createTDXInstance(_0x91efac),_0x7b0df0=await _0x568ede[_0x27313(0x202)]({'options':{..._0x91efac,..._0x46495c},'args':_0xbee445?[_0x20c052,_0xbee445]:[_0x20c052],'tdx':_0x54d8e6});gracefulExit(_0x7b0df0);}),workflowCmd[a2_0x4d6b00(0x186)]('push\x20[source-dir]')[a2_0x4d6b00(0x280)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x257),a2_0x4d6b00(0x307))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x2fa))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x350),a2_0x4d6b00(0x349))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](async(_0x51b643,_0x4aae95)=>{const _0xe9f819=new WorkflowPushCommand(),_0x1b3051=program['opts'](),_0x42f55b=await createTDXInstance(_0x1b3051),_0x4b7462=await _0xe9f819['run']({'options':{..._0x1b3051,..._0x4aae95},'args':_0x51b643?[_0x51b643]:[],'tdx':_0x42f55b});gracefulExit(_0x4b7462);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x18b))['description']('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option'](a2_0x4d6b00(0x298),a2_0x4d6b00(0x1c6))['option'](a2_0x4d6b00(0x257),a2_0x4d6b00(0x142))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x350),a2_0x4d6b00(0x349))[a2_0x4d6b00(0x17f)](async(_0x28617e,_0x3675b6)=>{const _0x338cf5=a2_0x4d6b00,_0x39d69e=new WorkflowUploadCommand(),_0x3c037c=program[_0x338cf5(0x324)](),_0x4fbe11=await createTDXInstance(_0x3c037c),_0x552b19=await _0x39d69e[_0x338cf5(0x202)]({'options':{..._0x3c037c,..._0x3675b6},'args':_0x28617e?[_0x28617e]:[],'tdx':_0x4fbe11});gracefulExit(_0x552b19);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x24b))['description'](a2_0x4d6b00(0x156))['option'](a2_0x4d6b00(0x298),a2_0x4d6b00(0x1ed))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x257),a2_0x4d6b00(0x307))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),'Preview\x20without\x20creating\x20the\x20project')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x350),a2_0x4d6b00(0x349))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](async(_0xdebb36,_0x24ab3a)=>{const _0x1a6ff4=a2_0x4d6b00,_0x46ac76=new WorkflowCloneCommand(),_0x5e6bc1=program[_0x1a6ff4(0x324)](),_0x2d773d=await createTDXInstance(_0x5e6bc1),_0x93ea0e=await _0x46ac76['run']({'options':{..._0x5e6bc1,..._0x24ab3a},'args':_0xdebb36?[_0xdebb36]:[],'tdx':_0x2d773d});gracefulExit(_0x93ea0e);}),workflowCmd[a2_0x4d6b00(0x186)]('delete\x20<project-name-or-id>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x332))[a2_0x4d6b00(0x17f)](async(_0x235dc8,_0x9643)=>{const _0x4e89fb=a2_0x4d6b00,_0x498713=new WorkflowDeleteCommand(),_0x265bfe=program[_0x4e89fb(0x324)](),_0x51165f=await createTDXInstance(_0x265bfe),_0x5b77dc=await _0x498713['run']({'options':{..._0x265bfe,..._0x9643},'args':[_0x235dc8],'tdx':_0x51165f});gracefulExit(_0x5b77dc);}),workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1b2))[a2_0x4d6b00(0x280)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x185),a2_0x4d6b00(0x1d5))[a2_0x4d6b00(0x17f)](async(_0x273008,_0x460681)=>{const _0x35623b=a2_0x4d6b00,_0x1afcb0=new WorkflowUseCommand(),_0x2776a=program[_0x35623b(0x324)](),_0x277839=await createTDXInstance(_0x2776a),_0x2e18f7=await _0x1afcb0[_0x35623b(0x202)]({'options':{..._0x2776a,..._0x460681},'args':_0x273008?[_0x273008]:[],'tdx':_0x277839});gracefulExit(_0x2e18f7);});const wfSecretsCmd=workflowCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x313))[a2_0x4d6b00(0x280)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x4d6b00(0x186)]('list\x20[project]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x248))[a2_0x4d6b00(0x17f)](async(_0x4f3bbc,_0x52acf0)=>{const _0x159f8e=a2_0x4d6b00,_0x36dc25=new WorkflowSecretsListCommand(),_0x138c81=program[_0x159f8e(0x324)](),_0x55fdc9=await createTDXInstance(_0x138c81),_0x3bb80b=await _0x36dc25[_0x159f8e(0x202)]({'options':{..._0x138c81,..._0x52acf0},'args':_0x4f3bbc?[_0x4f3bbc]:[],'tdx':_0x55fdc9});gracefulExit(_0x3bb80b);}),wfSecretsCmd[a2_0x4d6b00(0x186)]('set\x20<args...>')[a2_0x4d6b00(0x280)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x580212,_0x4d3ebb)=>{const _0x4bd426=a2_0x4d6b00,_0x48d612=new WorkflowSecretsSetCommand(),_0x4fa969=program[_0x4bd426(0x324)](),_0x545603=await createTDXInstance(_0x4fa969),_0x449499=await _0x48d612[_0x4bd426(0x202)]({'options':{..._0x4fa969,..._0x4d3ebb},'args':_0x580212,'tdx':_0x545603});gracefulExit(_0x449499);}),wfSecretsCmd[a2_0x4d6b00(0x186)]('delete\x20<args...>')['description'](a2_0x4d6b00(0x235))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x259),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](async(_0x20ad90,_0x4f4884)=>{const _0x3dd0fa=a2_0x4d6b00,_0x22bc61=new WorkflowSecretsDeleteCommand(),_0x5e53b9=program[_0x3dd0fa(0x324)](),_0x1e70a0=await createTDXInstance(_0x5e53b9),_0x120705=await _0x22bc61[_0x3dd0fa(0x202)]({'options':{..._0x5e53b9,..._0x4f4884},'args':_0x20ad90,'tdx':_0x1e70a0});gracefulExit(_0x120705);});const jobCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2dc))[a2_0x4d6b00(0x280)]('Job\x20management\x20commands'),jobListAction=async _0x51391c=>{const _0x1681b3=a2_0x4d6b00,_0x7e5fff=new JobListCommand(),_0x1cb45e=program[_0x1681b3(0x324)](),_0x4e3d83=await createTDXInstance(_0x1cb45e),_0x244042=await _0x7e5fff['run']({'options':{..._0x1cb45e,..._0x51391c},'args':[],'tdx':_0x4e3d83});gracefulExit(_0x244042);};jobCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x34e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1cc))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x23a),a2_0x4d6b00(0x38c))['action'](jobListAction),program[a2_0x4d6b00(0x186)]('jobs',{'hidden':!![]})['description'](a2_0x4d6b00(0x175))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x23a),a2_0x4d6b00(0x38c))['action'](jobListAction),jobCmd[a2_0x4d6b00(0x186)]('show\x20<job-id>')['description'](a2_0x4d6b00(0x372))['action'](async(_0x459e54,_0x52d68c)=>{const _0x2de666=a2_0x4d6b00,_0xfccc79=new JobShowCommand(),_0x367577=program[_0x2de666(0x324)](),_0x2c8276=await createTDXInstance(_0x367577),_0x455707=await _0xfccc79[_0x2de666(0x202)]({'options':{..._0x367577,..._0x52d68c},'args':[_0x459e54],'tdx':_0x2c8276});gracefulExit(_0x455707);}),jobCmd['command'](a2_0x4d6b00(0x25b))[a2_0x4d6b00(0x280)]('Kill\x20a\x20job')[a2_0x4d6b00(0x17f)](async(_0x5e8bd9,_0x3ca51d)=>{const _0x41625b=a2_0x4d6b00,_0x509f62=new JobKillCommand(),_0x13dd09=program[_0x41625b(0x324)](),_0x2ba673=await createTDXInstance(_0x13dd09),_0x3d497c=await _0x509f62[_0x41625b(0x202)]({'options':{..._0x13dd09,..._0x3ca51d},'args':[_0x5e8bd9],'tdx':_0x2ba673});gracefulExit(_0x3d497c);}),jobCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x160))['description'](a2_0x4d6b00(0x1c9))['option'](a2_0x4d6b00(0x1a9),a2_0x4d6b00(0x334),a2_0x4d6b00(0x22a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x354),a2_0x4d6b00(0x2e0))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2cd),a2_0x4d6b00(0x1d6),a2_0x4d6b00(0x268))['action'](async(_0x1a974b,_0x4edee1)=>{const _0x35c60b=a2_0x4d6b00,_0x376fd4=new JobSubmitCommand(),_0x7139eb=program[_0x35c60b(0x324)](),_0x1d67bf=await createTDXInstance(_0x7139eb),_0x491cf8=await _0x376fd4['run']({'options':{..._0x7139eb,..._0x4edee1},'args':_0x1a974b?[_0x1a974b]:[],'tdx':_0x1d67bf});gracefulExit(_0x491cf8);}),jobCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x16b))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x30b))[a2_0x4d6b00(0x17f)](async(_0x51cf59,_0x3e9a6f)=>{const _0x22c46c=a2_0x4d6b00,_0x3a414d=new JobResultCommand(),_0x1e1544=program[_0x22c46c(0x324)](),_0x3b0e72=await createTDXInstance(_0x1e1544),_0x50d617=await _0x3a414d[_0x22c46c(0x202)]({'options':{..._0x1e1544,..._0x3e9a6f},'args':[_0x51cf59],'tdx':_0x3b0e72});gracefulExit(_0x50d617);});const llmCmd=program[a2_0x4d6b00(0x186)]('llm')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2f2));llmCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x310))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2b1))[a2_0x4d6b00(0x17f)](async(_0x260b1b,_0x4fc47f)=>{const _0x551949=a2_0x4d6b00,_0x1358e8=new LLMUseCommand(),_0x445b57=program['opts'](),_0x32d30e=await createTDXInstance(_0x445b57),_0x100034=await _0x1358e8[_0x551949(0x202)]({'options':{..._0x445b57,..._0x4fc47f},'args':[_0x260b1b],'tdx':_0x32d30e});gracefulExit(_0x100034);}),llmCmd['command'](a2_0x4d6b00(0x28f))[a2_0x4d6b00(0x280)]('List\x20available\x20LLM\x20models')[a2_0x4d6b00(0x17f)](async _0x5de26b=>{const _0x10d1be=a2_0x4d6b00,_0x2bf5cc=new LLMModelsCommand(),_0x4def7c=program[_0x10d1be(0x324)](),_0x4c3b0c=await createTDXInstance(_0x4def7c),_0x5d9c37=await _0x2bf5cc[_0x10d1be(0x202)]({'options':{..._0x4def7c,..._0x5de26b},'args':[],'tdx':_0x4c3b0c});gracefulExit(_0x5d9c37);});const projectCmd=llmCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2c9))['description'](a2_0x4d6b00(0x209)),llmProjectListAction=async(_0x9b4259,_0x277be1)=>{const _0x5d3386=a2_0x4d6b00,_0x3e748c=new LLMProjectsCommand(),_0x547dae=program[_0x5d3386(0x324)](),_0x14e37a=await createTDXInstance(_0x547dae),_0x45e2c2=await _0x3e748c[_0x5d3386(0x202)]({'options':{..._0x547dae,..._0x277be1},'args':_0x9b4259?[_0x9b4259]:[],'tdx':_0x14e37a});gracefulExit(_0x45e2c2);};projectCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x15b))[a2_0x4d6b00(0x17f)](llmProjectListAction),llmCmd['command'](a2_0x4d6b00(0x326))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x288))['action'](llmProjectListAction),projectCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2a2))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x36e))['option']('--description\x20<text>',a2_0x4d6b00(0x33c))[a2_0x4d6b00(0x17f)](async(_0x131d1c,_0xce447b)=>{const _0x30470e=a2_0x4d6b00,_0x1ac708=new LLMProjectCreateCommand(),_0xc746c1=program[_0x30470e(0x324)](),_0x5b9382=await createTDXInstance(_0xc746c1),_0x4e0cf1=await _0x1ac708['run']({'options':{..._0xc746c1,..._0xce447b},'args':[_0x131d1c],'tdx':_0x5b9382});gracefulExit(_0x4e0cf1);}),projectCmd[a2_0x4d6b00(0x186)]('delete\x20<name>')[a2_0x4d6b00(0x280)]('Delete\x20an\x20LLM\x20project')['action'](async(_0x39a91a,_0xaa9487)=>{const _0xd59dc1=a2_0x4d6b00,_0x1f1d69=new LLMProjectDeleteCommand(),_0x1cd971=program[_0xd59dc1(0x324)](),_0x39dff0=await createTDXInstance(_0x1cd971),_0x26efb9=await _0x1f1d69[_0xd59dc1(0x202)]({'options':{..._0x1cd971,..._0xaa9487},'args':[_0x39a91a],'tdx':_0x39dff0});gracefulExit(_0x26efb9);}),projectCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x169))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x291))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2be),a2_0x4d6b00(0x328))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')['action'](async(_0x18bf1a,_0x4b252e)=>{const _0x1bbd26=a2_0x4d6b00,_0x13c027=new LLMProjectBackupCommand(),_0x152b8e=program[_0x1bbd26(0x324)](),_0x1db970=await createTDXInstance(_0x152b8e),_0x39cde1=await _0x13c027[_0x1bbd26(0x202)]({'options':{..._0x152b8e,..._0x4b252e},'args':[_0x18bf1a],'tdx':_0x1db970});gracefulExit(_0x39cde1);}),projectCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x254))['description'](a2_0x4d6b00(0x16f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2eb),a2_0x4d6b00(0x321))['option'](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x253))[a2_0x4d6b00(0x17f)](async(_0x58716d,_0x44bbe7)=>{const _0x2e4938=a2_0x4d6b00,_0x5376ca=new LLMProjectRestoreCommand(),_0x3073d3=program[_0x2e4938(0x324)](),_0x2c5fde=await createTDXInstance(_0x3073d3),_0x464338=await _0x5376ca['run']({'options':{..._0x3073d3,..._0x44bbe7},'args':[_0x58716d],'tdx':_0x2c5fde});gracefulExit(_0x464338);});const llmAgentListAction=async(_0x21623c,_0x5b9323)=>{const _0x286ee=a2_0x4d6b00,_0x5d9437=new LLMAgentsCommand(),_0x386759=program['opts'](),_0x44994c=await createTDXInstance(_0x386759),_0x37242d=await _0x5d9437[_0x286ee(0x202)]({'options':{..._0x386759,..._0x5b9323},'args':_0x21623c?[_0x21623c]:[],'tdx':_0x44994c});gracefulExit(_0x37242d);};llmCmd[a2_0x4d6b00(0x186)]('agents\x20[pattern]')['description'](a2_0x4d6b00(0x1c0))[a2_0x4d6b00(0x17f)](llmAgentListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x204))['description'](a2_0x4d6b00(0x1c0))[a2_0x4d6b00(0x17f)](llmAgentListAction),llmCmd[a2_0x4d6b00(0x186)]('history\x20[chat-id]')['description'](a2_0x4d6b00(0x34d))['option']('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x4d6b00(0x17f)](async(_0x3c9933,_0x110010)=>{const _0x55baba=a2_0x4d6b00,_0x343975=new LLMHistoryCommand(),_0x494959=program[_0x55baba(0x324)](),_0x55eb52=await createTDXInstance(_0x494959),_0x147d20=await _0x343975[_0x55baba(0x202)]({'options':{..._0x494959,..._0x110010},'args':_0x3c9933?[_0x3c9933]:[],'tdx':_0x55eb52});gracefulExit(_0x147d20);}),llmCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x22d))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1f0))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x352),a2_0x4d6b00(0x174),a2_0x4d6b00(0x36f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x286),a2_0x4d6b00(0x181))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x188),a2_0x4d6b00(0x1f9))['action'](async _0xc12576=>{const _0x250e2f=a2_0x4d6b00,_0x14cb78=new LLMProxyCommand(),_0x111e95=program[_0x250e2f(0x324)](),_0x5bf8ff=await createTDXInstance(_0x111e95),_0x471f8d={..._0xc12576,'port':_0xc12576[_0x250e2f(0x21b)]?parseInt(_0xc12576[_0x250e2f(0x21b)],0xa):undefined},_0x3c3b59=await _0x14cb78[_0x250e2f(0x202)]({'options':{..._0x111e95,..._0x471f8d},'args':[],'tdx':_0x5bf8ff});gracefulExit(_0x3c3b59);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x302))[a2_0x4d6b00(0x1fe)](a2_0x4d6b00(0x2d1))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1ee))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x20a),a2_0x4d6b00(0x33a),a2_0x4d6b00(0x2af))[a2_0x4d6b00(0x183)]('-c,\x20--continue',a2_0x4d6b00(0x15e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ff),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x4d6b00(0x183)]('--no-proxy',a2_0x4d6b00(0x1e7))[a2_0x4d6b00(0x183)]('--llm-proxy\x20[url]',a2_0x4d6b00(0x145))[a2_0x4d6b00(0x226)]()[a2_0x4d6b00(0x388)](!![])[a2_0x4d6b00(0x263)]('after',a2_0x4d6b00(0x245))[a2_0x4d6b00(0x17f)](async(_0x299324,_0x439396)=>{const _0x1fde0f=a2_0x4d6b00,_0x599438=program['opts'](),_0x4e70c0=Array[_0x1fde0f(0x341)](_0x299324)?_0x299324:[];if(_0x4e70c0[0x0]==='statusline'){const _0x3447e1=new ClaudeStatuslineCommand(),_0x18881b=await _0x3447e1[_0x1fde0f(0x202)]({'options':{..._0x599438,..._0x439396},'args':_0x4e70c0[_0x1fde0f(0x1e1)](0x1),'tdx':null});gracefulExit(_0x18881b);}if(_0x4e70c0[0x0]==='usage'){const _0x2b6015=new ClaudeUsageCommand(),_0x5d782b=await _0x2b6015[_0x1fde0f(0x202)]({'options':{..._0x599438,..._0x439396},'args':_0x4e70c0[_0x1fde0f(0x1e1)](0x1),'tdx':null});gracefulExit(_0x5d782b);}const _0xbe0dc5=new ClaudeCommand(),_0xbac3bf=await createTDXInstance(_0x599438),_0x2f2ea7=await _0xbe0dc5[_0x1fde0f(0x202)]({'options':{..._0x599438,..._0x439396},'args':_0x4e70c0,'tdx':_0xbac3bf});gracefulExit(_0x2f2ea7);}),program['command']('use\x20[resource]\x20[value]')['description'](a2_0x4d6b00(0x1e0))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x185),a2_0x4d6b00(0x2de))['option']('--default',a2_0x4d6b00(0x1e2))[a2_0x4d6b00(0x17f)](async(_0x3c0eff,_0x831d92,_0x3f9e36)=>{const _0x1c19d9=a2_0x4d6b00,_0x3d1c18=new UseCommand(),_0x1d0056=program[_0x1c19d9(0x324)](),_0x3bf83b=[];if(_0x3c0eff)_0x3bf83b[_0x1c19d9(0x32c)](_0x3c0eff);if(_0x831d92)_0x3bf83b[_0x1c19d9(0x32c)](_0x831d92);const _0x1ddbe3=await _0x3d1c18['run']({'options':{..._0x1d0056,..._0x3f9e36},'args':_0x3bf83b,'tdx':null});gracefulExit(_0x1ddbe3);}),program[a2_0x4d6b00(0x186)]('status')[a2_0x4d6b00(0x280)]('Show\x20authentication\x20status\x20and\x20current\x20context')[a2_0x4d6b00(0x17f)](async _0xced2e5=>{const _0x1803fa=a2_0x4d6b00,_0x18988d=new StatusCommand(),_0x40e067=program['opts'](),_0x1cfc21=await createTDXInstance(_0x40e067),_0x3b0156=await _0x18988d[_0x1803fa(0x202)]({'options':{..._0x40e067,..._0xced2e5},'args':[],'tdx':_0x1cfc21});gracefulExit(_0x3b0156);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x322))[a2_0x4d6b00(0x280)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x325),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0xd33fe0,_0x37d461)=>{const _0x2836e6=a2_0x4d6b00,_0x4d2417=new UnsetCommand(),_0x5d8064=program[_0x2836e6(0x324)](),_0x70eea9=await _0x4d2417[_0x2836e6(0x202)]({'options':{..._0x5d8064,..._0x37d461},'args':[_0xd33fe0],'tdx':null});gracefulExit(_0x70eea9);}),program['command'](a2_0x4d6b00(0x28e))['description'](a2_0x4d6b00(0x385))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1fa),a2_0x4d6b00(0x239))[a2_0x4d6b00(0x17f)](async _0x4dcfdc=>{const _0xde60f4=a2_0x4d6b00,_0x3e5b42=new ChatsCommand(),_0xb4e280=program[_0xde60f4(0x324)](),_0x1a7cd9=await createTDXInstance(_0xb4e280),_0x32ef3c=await _0x3e5b42['run']({'options':{..._0xb4e280,..._0x4dcfdc},'args':[],'tdx':_0x1a7cd9});gracefulExit(_0x32ef3c);});const authCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x153))['description'](a2_0x4d6b00(0x2d7));async function runAuthStatusCommand(_0x1b9ec8){const _0x2129ca=a2_0x4d6b00,_0x373c34=new AuthStatusCommand(),_0x32a776=program[_0x2129ca(0x324)](),_0x3459d6=await createTDXInstance(_0x32a776),_0x2d3e1d=await _0x373c34[_0x2129ca(0x202)]({'options':{..._0x32a776,..._0x1b9ec8},'args':[],'tdx':_0x3459d6});gracefulExit(_0x2d3e1d);}authCmd[a2_0x4d6b00(0x17f)](runAuthStatusCommand),authCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x367))['description'](a2_0x4d6b00(0x14d))[a2_0x4d6b00(0x17f)](runAuthStatusCommand),authCmd['command']('setup')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1d2))['addHelpText']('after',a2_0x4d6b00(0x2d8))['action'](async _0x24e1fc=>{const _0x37e1b9=a2_0x4d6b00,_0x4af6c5=new AuthSetupCommand(),_0x1edced=program[_0x37e1b9(0x324)](),_0x444ff5=await createTDXInstance(_0x1edced),_0x2c0c60=await _0x4af6c5[_0x37e1b9(0x202)]({'options':{..._0x1edced,..._0x24e1fc},'args':[],'tdx':_0x444ff5});gracefulExit(_0x2c0c60);}),authCmd['command']('clear')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x163))[a2_0x4d6b00(0x263)](a2_0x4d6b00(0x13c),a2_0x4d6b00(0x1c8))[a2_0x4d6b00(0x17f)](async _0x1ab823=>{const _0x525a79=a2_0x4d6b00,_0x37b5c0=new AuthClearCommand(),_0x415cda=program[_0x525a79(0x324)](),_0x53baff=await _0x37b5c0['run']({'options':{..._0x415cda,..._0x1ab823},'args':[],'tdx':null});gracefulExit(_0x53baff);});const userCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1a2))['description'](a2_0x4d6b00(0x15d)),userListAction=async _0x52b538=>{const _0x9aa67b=a2_0x4d6b00,_0x44bf11=new UserListCommand(),_0x411592=program[_0x9aa67b(0x324)](),_0x4960c2=await createTDXInstance(_0x411592),_0x110c5d=await _0x44bf11['run']({'options':{..._0x411592,..._0x52b538},'args':[],'tdx':_0x4960c2});gracefulExit(_0x110c5d);};userCmd['action'](async _0x51ec35=>{const _0x8717b=a2_0x4d6b00,_0x4f8cc5=new UserCommand(),_0x476fdc=program['opts'](),_0x36e058=await createTDXInstance(_0x476fdc),_0x214b41=await _0x4f8cc5[_0x8717b(0x202)]({'options':{..._0x476fdc,..._0x51ec35},'args':[],'tdx':_0x36e058});gracefulExit(_0x214b41);}),userCmd['command'](a2_0x4d6b00(0x34e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2f6))[a2_0x4d6b00(0x17f)](userListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x376))['description'](a2_0x4d6b00(0x389))[a2_0x4d6b00(0x17f)](userListAction),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2f3))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x25d))['action'](async _0x3b6a95=>{const _0x4cab75=a2_0x4d6b00,_0x32ea29=new ProfilesCommand(),_0x54894f=program[_0x4cab75(0x324)](),_0x30a5b7=await _0x32ea29[_0x4cab75(0x202)]({'options':{..._0x54894f,..._0x3b6a95},'args':[],'tdx':null});gracefulExit(_0x30a5b7);});const profileCmd=program[a2_0x4d6b00(0x186)]('profile')['description'](a2_0x4d6b00(0x265));profileCmd[a2_0x4d6b00(0x17f)](()=>{const _0x48dbe9=a2_0x4d6b00;profileCmd[_0x48dbe9(0x358)]();});const profileListAction=async _0xbb766e=>{const _0x37deb6=a2_0x4d6b00,_0x4332f5=new ProfilesCommand(),_0x39f35e=program[_0x37deb6(0x324)](),_0x1dd206=await _0x4332f5[_0x37deb6(0x202)]({'options':{..._0x39f35e,..._0xbb766e},'args':[],'tdx':null});gracefulExit(_0x1dd206);};profileCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x34e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x25d))[a2_0x4d6b00(0x17f)](profileListAction),profileCmd['command'](a2_0x4d6b00(0x148))['description']('Create\x20a\x20new\x20profile')[a2_0x4d6b00(0x263)](a2_0x4d6b00(0x13c),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x9cb09b,_0x5c2661)=>{const _0x9c666a=a2_0x4d6b00,_0x33780d=new ProfileCreateCommand(),_0x3ffded=program[_0x9c666a(0x324)](),_0x2b643b=await _0x33780d[_0x9c666a(0x202)]({'options':{..._0x3ffded,..._0x5c2661},'args':_0x9cb09b?[_0x9cb09b]:[],'tdx':null});gracefulExit(_0x2b643b);}),profileCmd[a2_0x4d6b00(0x186)]('remove\x20<name>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x284))[a2_0x4d6b00(0x263)]('after',a2_0x4d6b00(0x35c))[a2_0x4d6b00(0x17f)](async(_0x54e82d,_0x16899b)=>{const _0x1eeac0=new ProfileRemoveCommand(),_0x39c61b=program['opts'](),_0x5dec4a=await _0x1eeac0['run']({'options':{..._0x39c61b,..._0x16899b},'args':[_0x54e82d],'tdx':null});gracefulExit(_0x5dec4a);}),profileCmd['command'](a2_0x4d6b00(0x2e9))[a2_0x4d6b00(0x280)]('Set\x20a\x20profile\x20configuration\x20value')['addHelpText'](a2_0x4d6b00(0x13c),a2_0x4d6b00(0x17d))['action'](async(_0x241eed,_0x403c59)=>{const _0x5e0036=a2_0x4d6b00,_0x1aef08=new ProfileSetCommand(),_0x1cb441=program[_0x5e0036(0x324)](),_0x4777c0=await _0x1aef08[_0x5e0036(0x202)]({'options':{..._0x1cb441,..._0x403c59},'args':[_0x241eed],'tdx':null});gracefulExit(_0x4777c0);}),profileCmd['command'](a2_0x4d6b00(0x249))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2f7))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x325),a2_0x4d6b00(0x1e2))[a2_0x4d6b00(0x263)](a2_0x4d6b00(0x13c),a2_0x4d6b00(0x2ac))[a2_0x4d6b00(0x17f)](async(_0x14e795,_0x1d5663)=>{const _0x326527=a2_0x4d6b00,_0x56e807=new ProfileUseCommand(),_0x564e6f=program['opts'](),_0x1d33df=await _0x56e807[_0x326527(0x202)]({'options':{..._0x564e6f,..._0x1d5663},'args':[_0x14e795],'tdx':null});gracefulExit(_0x1d33df);});const engageCmd=program['command']('engage')['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x2683df=>{return async(_0x4130f6,_0xc5c51d)=>{const _0x5d8fc9=a2_0x57c3,_0x3a3571=new _0x2683df(),_0x3f4a29=program[_0x5d8fc9(0x324)](),_0x1abc76=await createTDXInstance(_0x3f4a29),_0x2613ca=await _0x3a3571['run']({'options':{..._0x3f4a29,..._0xc5c51d},'args':[_0x4130f6],'tdx':_0x1abc76});gracefulExit(_0x2613ca);};},createEngageNoArgAction=_0xefa854=>{return async _0x3f2054=>{const _0x133f7d=a2_0x57c3,_0x3d29c2=new _0xefa854(),_0x2c1255=program[_0x133f7d(0x324)](),_0x5d653e=await createTDXInstance(_0x2c1255),_0x484005=await _0x3d29c2[_0x133f7d(0x202)]({'options':{..._0x2c1255,..._0x3f2054},'args':[],'tdx':_0x5d653e});gracefulExit(_0x484005);};},campaignCmd=engageCmd['command'](a2_0x4d6b00(0x146))['description'](a2_0x4d6b00(0x2f9)),campaignListAction=async(_0x1fca15,_0x3abc50)=>{const _0x3b1e42=a2_0x4d6b00,_0xe8fa85=new EngageCampaignsCommand(),_0x29804a=program['opts'](),_0x5ec419=await createTDXInstance(_0x29804a),_0x354a77=await _0xe8fa85[_0x3b1e42(0x202)]({'options':{..._0x29804a,..._0x3abc50},'args':_0x1fca15?[_0x1fca15]:[],'tdx':_0x5ec419});gracefulExit(_0x354a77);};campaignCmd['command']('list\x20[pattern]')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1fc))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ab),a2_0x4d6b00(0x1bf))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x23a),a2_0x4d6b00(0x197))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x17f)](campaignListAction),engageCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2a6))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x23d))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ab),a2_0x4d6b00(0x1bf))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x23a),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x17f)](campaignListAction),campaignCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x27e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x391))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),'Workspace\x20name')[a2_0x4d6b00(0x183)]('--full',a2_0x4d6b00(0x15f))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')[a2_0x4d6b00(0x280)]('Create\x20a\x20new\x20campaign')[a2_0x4d6b00(0x1df)]('--name\x20<name>',a2_0x4d6b00(0x379))[a2_0x4d6b00(0x1df)](a2_0x4d6b00(0x2ab),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x38e))['option']('--description\x20<desc>',a2_0x4d6b00(0x2fd))['option'](a2_0x4d6b00(0x13a),a2_0x4d6b00(0x1bc))['option'](a2_0x4d6b00(0x155),a2_0x4d6b00(0x363))['option'](a2_0x4d6b00(0x25c),a2_0x4d6b00(0x1b3))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x38f),a2_0x4d6b00(0x14a))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1b1),a2_0x4d6b00(0x361))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x234))['description'](a2_0x4d6b00(0x217))['option'](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))['option'](a2_0x4d6b00(0x298),a2_0x4d6b00(0x1ca))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x176),a2_0x4d6b00(0x2fd))['option'](a2_0x4d6b00(0x13a),a2_0x4d6b00(0x1bc))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x155),a2_0x4d6b00(0x363))['option']('--json-columns\x20<cols>',a2_0x4d6b00(0x1b3))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x38f),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1b1),a2_0x4d6b00(0x361))[a2_0x4d6b00(0x17f)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x281))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))['option']('--yes',a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1b0))['description']('Launch\x20a\x20campaign')['option'](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x26f))[a2_0x4d6b00(0x183)]('--workspace\x20<name>',a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x17f)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4d6b00(0x186)]('resume\x20<name-or-id>')['description']('Resume\x20a\x20paused\x20campaign')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x17f)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command']('duplicate\x20<name-or-id>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x212))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x32e))[a2_0x4d6b00(0x280)]('Email\x20template\x20management'),templateListAction=async(_0x1da647,_0x2fa6f4)=>{const _0x17cf53=new EngageTemplatesCommand(),_0x1c1eda=program['opts'](),_0x29d9f0=await createTDXInstance(_0x1c1eda),_0x30e7f6=await _0x17cf53['run']({'options':{..._0x1c1eda,..._0x2fa6f4},'args':_0x1da647?[_0x1da647]:[],'tdx':_0x29d9f0});gracefulExit(_0x30e7f6);};templateCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4d6b00(0x183)]('--workspace\x20<name>',a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x17f)](templateListAction),engageCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2ee))[a2_0x4d6b00(0x280)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),'Workspace\x20name')['action'](templateListAction),templateCmd['command'](a2_0x4d6b00(0x27e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x194))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x38d),a2_0x4d6b00(0x15f))[a2_0x4d6b00(0x17f)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4d6b00(0x186)]('create')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x23b))[a2_0x4d6b00(0x1df)]('--name\x20<name>',a2_0x4d6b00(0x2ea))[a2_0x4d6b00(0x1df)](a2_0x4d6b00(0x247),'Email\x20subject\x20template')['requiredOption'](a2_0x4d6b00(0x1ea),a2_0x4d6b00(0x21d))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),'Workspace\x20name\x20(required)')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x314),a2_0x4d6b00(0x260))[a2_0x4d6b00(0x183)]('--editor-type\x20<type>',a2_0x4d6b00(0x2b4),_0x3c87e0=>{const _0x398bcb=a2_0x4d6b00;if(![_0x398bcb(0x15c),_0x398bcb(0x1d9)][_0x398bcb(0x216)](_0x3c87e0))throw new SDKError(ErrorCode[_0x398bcb(0x345)],_0x398bcb(0x37f)+_0x3c87e0+_0x398bcb(0x37b));return _0x3c87e0;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x234))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2b9))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ca),a2_0x4d6b00(0x37e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x298),a2_0x4d6b00(0x2b6))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x247),a2_0x4d6b00(0x193))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1ea),a2_0x4d6b00(0x21d))['option'](a2_0x4d6b00(0x314),'Plaintext\x20template\x20content')[a2_0x4d6b00(0x17f)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1a0))['description'](a2_0x4d6b00(0x337))['option'](a2_0x4d6b00(0x2ca),'Workspace\x20name')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x30e),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x301))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x364)),workspaceListAction=async(_0x48d624,_0x15b84b)=>{const _0x5311c6=a2_0x4d6b00,_0x2fad2c=new EngageWorkspacesCommand(),_0x5a94ea=program[_0x5311c6(0x324)](),_0x13f6e2=await createTDXInstance(_0x5a94ea),_0xaea163=await _0x2fad2c[_0x5311c6(0x202)]({'options':{..._0x5a94ea,..._0x15b84b},'args':_0x48d624?[_0x48d624]:[],'tdx':_0x13f6e2});gracefulExit(_0xaea163);};workspaceCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')['action'](workspaceListAction),engageCmd['command']('workspaces\x20[pattern]')['description']('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x4d6b00(0x17f)](workspaceListAction),workspaceCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x27e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x258))[a2_0x4d6b00(0x183)]('--full',a2_0x4d6b00(0x15f))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x21e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x28b))['requiredOption'](a2_0x4d6b00(0x298),'Workspace\x20name')['option'](a2_0x4d6b00(0x176),a2_0x4d6b00(0x357))[a2_0x4d6b00(0x17f)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x234))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x35b))[a2_0x4d6b00(0x183)]('--name\x20<name>','New\x20workspace\x20name')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x176),a2_0x4d6b00(0x357))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x4d6b00(0x1a0))['description'](a2_0x4d6b00(0x19e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x30e),a2_0x4d6b00(0x327))[a2_0x4d6b00(0x17f)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x249))[a2_0x4d6b00(0x280)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x4d6b00(0x17f)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x4d6b00(0x147))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2a0)),connectionListAction=async _0x543590=>{const _0x22b0aa=a2_0x4d6b00,_0x13f820=new ConnectionListCommand(),_0x5044d9=program[_0x22b0aa(0x324)](),_0x1d38ba=await createTDXInstance(_0x5044d9),_0x3fdd60=await _0x13f820[_0x22b0aa(0x202)]({'options':{..._0x5044d9,..._0x543590},'args':[],'tdx':_0x1d38ba});gracefulExit(_0x3fdd60);};connectionCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x34e))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1d3))[a2_0x4d6b00(0x17f)](connectionListAction),program[a2_0x4d6b00(0x186)]('connections',{'hidden':!![]})['description'](a2_0x4d6b00(0x2b3))[a2_0x4d6b00(0x17f)](connectionListAction),connectionCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1e4))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x306))[a2_0x4d6b00(0x17f)](async(_0x338085,_0x41a457)=>{const _0x24fe80=a2_0x4d6b00,_0x4b0fb0=new ConnectionShowCommand(),_0x4391f4=program[_0x24fe80(0x324)](),_0x486a1d=await createTDXInstance(_0x4391f4),_0x3568c8=await _0x4b0fb0['run']({'options':{..._0x4391f4,..._0x41a457},'args':[_0x338085],'tdx':_0x486a1d});gracefulExit(_0x3568c8);}),connectionCmd[a2_0x4d6b00(0x186)]('schema\x20<type>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x34f))[a2_0x4d6b00(0x17f)](async(_0x23264a,_0x200fb3)=>{const _0x219629=a2_0x4d6b00,_0x207da3=new ConnectionSchemaCommand(),_0x3d561c=program[_0x219629(0x324)](),_0x35e01c=await createTDXInstance(_0x3d561c),_0x33f441=await _0x207da3[_0x219629(0x202)]({'options':{..._0x3d561c,..._0x200fb3},'args':[_0x23264a],'tdx':_0x35e01c});gracefulExit(_0x33f441);}),connectionCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x22b))['description'](a2_0x4d6b00(0x30a))[a2_0x4d6b00(0x17f)](async _0x4fcb47=>{const _0x2698b9=a2_0x4d6b00,_0x17e007=new ConnectionTypesCommand(),_0x13e638=program[_0x2698b9(0x324)](),_0x42dad7=await createTDXInstance(_0x13e638),_0x28fd84=await _0x17e007['run']({'options':{..._0x13e638,..._0x4fcb47},'args':[],'tdx':_0x42dad7});gracefulExit(_0x28fd84);}),connectionCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x1b5))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1ac))['action'](async(_0x35bc7e,_0x8b0455)=>{const _0x35710c=a2_0x4d6b00,_0x43a4f7=new ConnectionSettingsCommand(),_0x2b99bb=program[_0x35710c(0x324)](),_0xacbbae=await createTDXInstance(_0x2b99bb),_0x416e2d=await _0x43a4f7[_0x35710c(0x202)]({'options':{..._0x2b99bb,..._0x8b0455},'args':[_0x35bc7e],'tdx':_0xacbbae});gracefulExit(_0x416e2d);});const journeyCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2ad))[a2_0x4d6b00(0x280)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x55a855,_0x4bbc02)=>{const _0x56fb41=a2_0x4d6b00,_0x35a0d6=new JourneyListCommand(),_0x22e2d7=program[_0x56fb41(0x324)](),_0x37cc23=await createTDXInstance(_0x22e2d7),_0x110c92=await _0x35a0d6[_0x56fb41(0x202)]({'options':{..._0x22e2d7,..._0x4bbc02},'args':_0x55a855?[_0x55a855]:[],'tdx':_0x37cc23});gracefulExit(_0x110c92);};journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)]('List\x20journeys\x20in\x20current\x20context')['action'](journeyListAction),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x19d))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x30c))['option'](a2_0x4d6b00(0x24f),a2_0x4d6b00(0x348))['option']('--include-stats','Include\x20execution\x20statistics')[a2_0x4d6b00(0x17f)](async(_0x46a374,_0x5bf66a)=>{const _0x57b5b1=new JourneyViewCommand(),_0x179bc0=program['opts'](),_0x3e98cd=await createTDXInstance(_0x179bc0),_0x1e0759=await _0x57b5b1['run']({'options':{..._0x179bc0,..._0x5bf66a},'args':[_0x46a374],'tdx':_0x3e98cd});gracefulExit(_0x1e0759);}),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x19f))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x29e))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x138),a2_0x4d6b00(0x1a4))['action'](async(_0x441fc4,_0x1f7827)=>{const _0x5226b1=a2_0x4d6b00,_0x130891=new JourneyStatsCommand(),_0x494acc=program['opts'](),_0x520185=await createTDXInstance(_0x494acc),_0x14b9e6=await _0x130891[_0x5226b1(0x202)]({'options':{..._0x494acc,..._0x1f7827},'args':[_0x441fc4],'tdx':_0x520185});gracefulExit(_0x14b9e6);}),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2b0))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x18e))['action'](async(_0x499613,_0x108b4b)=>{const _0x547ff7=a2_0x4d6b00,_0x5194ed=new JourneyPauseCommand(),_0x5e8e2c=program[_0x547ff7(0x324)](),_0x59398d=await createTDXInstance(_0x5e8e2c),_0x445c11=await _0x5194ed[_0x547ff7(0x202)]({'options':{..._0x5e8e2c,..._0x108b4b},'args':[_0x499613],'tdx':_0x59398d});gracefulExit(_0x445c11);}),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x135))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x317))[a2_0x4d6b00(0x17f)](async(_0x56afa8,_0x54e93a)=>{const _0xf1a5f1=a2_0x4d6b00,_0x36d3e8=new JourneyResumeCommand(),_0x2076b2=program[_0xf1a5f1(0x324)](),_0x55ece3=await createTDXInstance(_0x2076b2),_0x3acfd2=await _0x36d3e8[_0xf1a5f1(0x202)]({'options':{..._0x2076b2,..._0x54e93a},'args':[_0x56afa8],'tdx':_0x55ece3});gracefulExit(_0x3acfd2);}),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x304))['description'](a2_0x4d6b00(0x255))[a2_0x4d6b00(0x183)]('-y,\x20--yes',a2_0x4d6b00(0x327))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2ba),a2_0x4d6b00(0x243))[a2_0x4d6b00(0x17f)](async(_0x4a7278,_0x4b2185)=>{const _0x2595d0=a2_0x4d6b00,_0x5a37d0=new JourneyPullCommand(),_0x21a02f=program[_0x2595d0(0x324)](),_0x4b43f1=await createTDXInstance(_0x21a02f),_0x391c27=await _0x5a37d0[_0x2595d0(0x202)]({'options':{..._0x21a02f,..._0x4b2185},'args':_0x4a7278?[_0x4a7278]:[],'tdx':_0x4b43f1});gracefulExit(_0x391c27);}),journeyCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x154))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x1d1))['action'](async(_0x280bea,_0x3213bc)=>{const _0x334362=a2_0x4d6b00,_0x3d43cf=new JourneyPushCommand(),_0x1d3520=program[_0x334362(0x324)](),_0x373192=await createTDXInstance(_0x1d3520),_0x505a52=await _0x3d43cf[_0x334362(0x202)]({'options':{..._0x1d3520,..._0x3213bc},'args':_0x280bea?[_0x280bea]:[],'tdx':_0x373192});gracefulExit(_0x505a52);}),journeyCmd[a2_0x4d6b00(0x186)]('validate\x20[target]')[a2_0x4d6b00(0x280)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x4d6b00(0x17f)](async(_0x39e522,_0x3a3577)=>{const _0x5c3bad=new JourneyValidateCommand(),_0x25e7cd=program['opts'](),_0x31ee0a=await createTDXInstance(_0x25e7cd),_0x38570e=await _0x5c3bad['run']({'options':{..._0x25e7cd,..._0x3a3577},'args':_0x39e522?[_0x39e522]:[],'tdx':_0x31ee0a});gracefulExit(_0x38570e);}),program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x21a))['description'](a2_0x4d6b00(0x144))[a2_0x4d6b00(0x17f)](journeyListAction);const agentSyncCmd=program[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x222))[a2_0x4d6b00(0x280)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x4d6b00(0x236))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2ae))[a2_0x4d6b00(0x183)]('-o,\x20--output\x20<dir>',a2_0x4d6b00(0x1b8))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x383),a2_0x4d6b00(0x2cf))[a2_0x4d6b00(0x17f)](async(_0x294ba6,_0x553c85,_0x2ad831)=>{const _0x55de34=a2_0x4d6b00,_0x3842e4=new AgentPullCommand(),_0x23d358=program['opts'](),_0x27708e=await createTDXInstance(_0x23d358),_0x1ee4bc=[];if(_0x294ba6)_0x1ee4bc[_0x55de34(0x32c)](_0x294ba6);if(_0x553c85)_0x1ee4bc[_0x55de34(0x32c)](_0x553c85);const _0x308471=await _0x3842e4[_0x55de34(0x202)]({'options':{..._0x23d358,..._0x2ad831},'args':_0x1ee4bc,'tdx':_0x27708e});gracefulExit(_0x308471);}),agentSyncCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x36a))['description'](a2_0x4d6b00(0x29c))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x383),'Push\x20without\x20confirmation')[a2_0x4d6b00(0x17f)](async(_0x57347b,_0x2f324c)=>{const _0x2b29ed=a2_0x4d6b00,_0x2ae1f9=new AgentPushCommand(),_0x235184=program[_0x2b29ed(0x324)](),_0x14f27d=await createTDXInstance(_0x235184),_0x31152c=await _0x2ae1f9[_0x2b29ed(0x202)]({'options':{..._0x235184,..._0x2f324c},'args':_0x57347b?[_0x57347b]:[],'tdx':_0x14f27d});gracefulExit(_0x31152c);}),agentSyncCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x170))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1f3),a2_0x4d6b00(0x1ed))[a2_0x4d6b00(0x17f)](async(_0x2e4bbb,_0x31b4a0)=>{const _0x57ba8f=a2_0x4d6b00,_0x409d3a=new AgentCloneCommand(),_0x300c18=program[_0x57ba8f(0x324)](),_0x3403cf=await createTDXInstance(_0x300c18),_0x17108f=await _0x409d3a[_0x57ba8f(0x202)]({'options':{..._0x300c18,..._0x31b4a0},'args':_0x2e4bbb?[_0x2e4bbb]:[],'tdx':_0x3403cf});gracefulExit(_0x17108f);}),agentSyncCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x196))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x329))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x1de),a2_0x4d6b00(0x1c7))['option']('--dry-run',a2_0x4d6b00(0x1f8))['option'](a2_0x4d6b00(0x375),a2_0x4d6b00(0x316))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x2a9),a2_0x4d6b00(0x1b9))[a2_0x4d6b00(0x17f)](async(_0x5e4190,_0x23c3f6)=>{const _0x4c43c9=a2_0x4d6b00,_0x1a72fc=new AgentTestCommand(),_0x2fba19=program[_0x4c43c9(0x324)](),_0x37aa55=await createTDXInstance(_0x2fba19),_0x96f7da=await _0x1a72fc[_0x4c43c9(0x202)]({'options':{..._0x2fba19,..._0x23c3f6},'args':_0x5e4190?[_0x5e4190]:[],'tdx':_0x37aa55});gracefulExit(_0x96f7da);}),agentSyncCmd['command'](a2_0x4d6b00(0x171))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x2c3))[a2_0x4d6b00(0x17f)](llmAgentListAction),agentSyncCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x2d0))[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x161))['action'](async(_0x20761b,_0x1a7b0b)=>{const _0x2387bc=a2_0x4d6b00,_0x3d972c=new LLMAgentShowCommand(),_0xe9970=program[_0x2387bc(0x324)](),_0x3b6b6d=await createTDXInstance(_0xe9970),_0x17705d=await _0x3d972c[_0x2387bc(0x202)]({'options':{..._0xe9970,..._0x1a7b0b},'args':[_0x20761b],'tdx':_0x3b6b6d});gracefulExit(_0x17705d);}),agentSyncCmd[a2_0x4d6b00(0x186)]('create\x20<name>')[a2_0x4d6b00(0x280)](a2_0x4d6b00(0x168))['option'](a2_0x4d6b00(0x1f1),a2_0x4d6b00(0x152))[a2_0x4d6b00(0x183)]('--model\x20<name>',a2_0x4d6b00(0x2c5),'claude-4.5-sonnet')[a2_0x4d6b00(0x183)]('--starter-message\x20<text>',a2_0x4d6b00(0x1c5))[a2_0x4d6b00(0x183)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x4d6b00(0x183)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x4d6b00(0x162))[a2_0x4d6b00(0x17f)](async(_0x5594b1,_0x343594)=>{const _0x54f3f6=a2_0x4d6b00,_0x4ceda6=new LLMAgentCreateCommand(),_0x4cc342=program[_0x54f3f6(0x324)](),_0x54124d=await createTDXInstance(_0x4cc342),_0x5d2d03=await _0x4ceda6[_0x54f3f6(0x202)]({'options':{..._0x4cc342,..._0x343594},'args':[_0x5594b1],'tdx':_0x54124d});gracefulExit(_0x5d2d03);}),agentSyncCmd['command']('update\x20<agent-name>')['description'](a2_0x4d6b00(0x29f))[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x205),'Agent\x20name')['option'](a2_0x4d6b00(0x219),'Agent\x20prompt/instructions')[a2_0x4d6b00(0x183)]('--description\x20<text>','Agent\x20description')[a2_0x4d6b00(0x183)](a2_0x4d6b00(0x378),a2_0x4d6b00(0x1c5))[a2_0x4d6b00(0x17f)](async(_0xdbb79c,_0xbf107a)=>{const _0x51c726=a2_0x4d6b00,_0x1d1a52=new LLMAgentUpdateCommand(),_0xbb9203=program[_0x51c726(0x324)](),_0x283525=await createTDXInstance(_0xbb9203),_0x3b369f=await _0x1d1a52[_0x51c726(0x202)]({'options':{..._0xbb9203,..._0xbf107a},'args':[_0xdbb79c],'tdx':_0x283525});gracefulExit(_0x3b369f);}),agentSyncCmd[a2_0x4d6b00(0x186)](a2_0x4d6b00(0x319))['description']('Delete\x20an\x20agent')[a2_0x4d6b00(0x17f)](async(_0x1ef60a,_0x4c826d)=>{const _0x2c6ecc=a2_0x4d6b00,_0x205c14=new LLMAgentDeleteCommand(),_0x1a4ba7=program['opts'](),_0x4e3b4d=await createTDXInstance(_0x1a4ba7),_0x4fc00f=await _0x205c14[_0x2c6ecc(0x202)]({'options':{..._0x1a4ba7,..._0x4c826d},'args':[_0x1ef60a],'tdx':_0x4e3b4d});gracefulExit(_0x4fc00f);});export{program};export function runCLI(){const _0x5ad120=a2_0x4d6b00,_0x43e08b=!process['argv'][_0x5ad120(0x1e1)](0x2)[_0x5ad120(0x35d)];showBriefHelp=_0x43e08b,program[_0x5ad120(0x384)](process[_0x5ad120(0x26c)]),_0x43e08b&&program[_0x5ad120(0x358)](),process[_0x5ad120(0x179)][_0x5ad120(0x339)]&&process['argv'][_0x5ad120(0x35d)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x5ad120(0x25f)](_0x375520=>{_0x375520&&displayUpdateNotification(_0x375520);})[_0x5ad120(0x1e9)](()=>{});}
1
+ const a2_0x59239f=a2_0x955b;(function(_0x17689a,_0x37c143){const _0x3f6c8a=a2_0x955b,_0x1aeec3=_0x17689a();while(!![]){try{const _0x360c8c=-parseInt(_0x3f6c8a(0x34f))/0x1*(-parseInt(_0x3f6c8a(0x1e2))/0x2)+parseInt(_0x3f6c8a(0x23d))/0x3+-parseInt(_0x3f6c8a(0x247))/0x4*(parseInt(_0x3f6c8a(0x147))/0x5)+parseInt(_0x3f6c8a(0x208))/0x6+-parseInt(_0x3f6c8a(0x1cf))/0x7+-parseInt(_0x3f6c8a(0x186))/0x8*(parseInt(_0x3f6c8a(0x299))/0x9)+parseInt(_0x3f6c8a(0x2e7))/0xa*(parseInt(_0x3f6c8a(0x23f))/0xb);if(_0x360c8c===_0x37c143)break;else _0x1aeec3['push'](_0x1aeec3['shift']());}catch(_0x35d571){_0x1aeec3['push'](_0x1aeec3['shift']());}}}(a2_0x3325,0x93dc0));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}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';function a2_0x3325(){const _0x28ee17=['Show\x20authentication\x20status\x20and\x20current\x20context','--no-proxy','parent-segment','List\x20all\x20users\x20in\x20the\x20account','directory','--html\x20<html>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','models','logLevel','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','list\x20[path]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','--kind\x20<type>','beefree','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','update\x20<name>','use\x20<path>','Output\x20as\x20JSON\x20Lines','--json','Updated\x20timezone','submit\x20[query]','Output\x20as\x20JSON','Agent\x20prompt/instructions','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','7505183BAgjEO','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','End\x20time\x20filter\x20(ISO\x208601\x20format)','Set\x20a\x20profile\x20configuration\x20value','--project\x20<name>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Invalid\x20editor\x20type:\x20','Show\x20agent\x20details','clear','--params\x20<json>','--include-retried','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Workspace\x20description','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Make\x20segment\x20invisible\x20(default:\x20visible)','--color','--full','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--attribute\x20[name]','470296tXXxPB','show\x20[segment_name]','run\x20[name]','create\x20<parent_name>\x20<folder_name>','--add-attributes\x20<json>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','--default','name','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','run\x20[workflow]','profiles','--database\x20<name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','User\x20management\x20commands','isDirectory','validate\x20[file]','Unknown\x20action:\x20','set','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Open\x20journey\x20in\x20web\x20browser','Parent\x20segment\x20management','--reeval','--trace','Folder\x20description','Remove\x20API\x20key\x20from\x20system\x20keychain','--name\x20<new-name>','Create\x20a\x20new\x20profile','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--customer-group-file\x20<file>','--database\x20<db>','--site\x20<site>','Email\x20template\x20management','--stage\x20<name>','Show\x20segment\x20schema\x20(column\x20types)','Workspace\x20name\x20(required)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','create\x20<segment_name>','123570XJKoNI','attempts\x20[project]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','options','push\x20[name]','--name\x20<new_name>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','delete\x20<project-name-or-id>','Action:\x20logs,\x20tasks,\x20kill,\x20retry','noColor','desc\x20[segment_name]','Usage:\x20','--start-at\x20<datetime>','4000','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','--version','Agent\x20name','profile','parent_segment','--table','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Output\x20directory','types','filter','Output\x20folder\x20(default:\x20{project_name}.llm)','Create\x20a\x20new\x20LLM\x20project','logs','Attributes\x20from\x20JSON\x20file','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Preview\x20changes\x20without\x20writing\x20files','pull\x20[project]\x20[agent-name]','show\x20<folder_ref>','journeys\x20[pattern]','pause\x20<name-or-id>','Parent\x20folder\x20name\x20for\x20nested\x20folders','--last','commandDescription','Show\x20the\x20most\x20recent\x20chat','summary','--revision\x20<revision>','engage','tdx','--parent-folder\x20<name>','--job-type\x20<type>','List\x20agents\x20in\x20current\x20project','us01','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','option','parent','--behavior\x20[name]','--session-time\x20<time>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','1479027YbWXyw','DEBUG','7403jYodBA','List\x20journeys\x20in\x20current\x20context','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','remove\x20<name>','New\x20segment\x20name','Update\x20an\x20existing\x20agent','[action]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','72kxLJRp','List\x20available\x20connector\x20types','preAction','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','kill','--limit\x20<n>','\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','describe','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','--force','chdir','--port\x20<number>','claude-4.5-sonnet','session','catch','join','\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','--name\x20<text>','--subject\x20<subject>','Workspace\x20name','\x20(resolved\x20to\x20','kill\x20<job-id>','Override\x20project\x20name','Task\x20name\x20for\x20logs\x20action','Filtering\x20rule\x20as\x20JSON\x20string','journey','Kill\x20a\x20job','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','run','Follow/watch\x20timeline\x20for\x20running\x20attempts','forEach','folder','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','--json-columns\x20<cols>','test\x20[path]','use\x20<project-name>','claude\x20[args...]','agents\x20[pattern]','mcp','Workflow\x20session\x20management','injectIntoOptions','Show\x20journey\x20details','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--limit\x20<rows>','--attributes-file\x20<file>','--starter-message\x20<text>','show\x20<job-id>','--parent-segment\x20<name>','query\x20[sql]','tsv','Skip\x20validation\x20of\x20.dig\x20files','Push\x20without\x20confirmation','map','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','activations\x20<segment_name>','-o,\x20--output\x20<file>','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','list','view\x20[name]','Master\x20table\x20name','Show\x20stats\x20for\x20specific\x20stage','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Move\x20to\x20folder','Skip\x20confirmation\x20prompts','grapesjs','--max-tool-iterations\x20<n>','list\x20[pattern]','\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','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','argumentDescription','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Parse\x20and\x20validate\x20without\x20executing','error','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','New\x20template\x20name','addHelpText','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Delete\x20an\x20LLM\x20project','Open\x20segment\x20in\x20web\x20browser','validate\x20[name]','--delete','Start\x20a\x20new\x20chat\x20session','3075426nrZdVd','information_schema','delete\x20<args...>','--status\x20<status>','desc','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Clear\x20workflow\x20project\x20context','-1d','-X,\x20--method\x20<method>','Behaviors\x20as\x20JSON\x20string','Skip\x20confirmation\x20prompt','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','\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','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','sonnet','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','usage','Interactive\x20chat\x20selector','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','set\x20<key=value>','argv','Remove\x20a\x20profile','Workflow\x20parameter\x20(repeatable)','HTML\x20template\x20content','Show\x20campaign\x20details','projects\x20[pattern]','--llm-proxy\x20[url]','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','describe\x20[table]','chat\x20[message...]','upload\x20[project-name-or-dir]','Update\x20a\x20workspace','--jsonl','create\x20[name]','Include\x20retried\x20attempts','Pull\x20workflow\x20project\x20to\x20local\x20folder','Workflow\x20(Digdag)\x20management\x20commands','--agent\x20<ref>','project','--from\x20<timestamp>','--attempt-id\x20<id>','Updated\x20schedule\x20option','--dry-run','push\x20[target]','Pull\x20specific\x20revision\x20(default:\x20latest)','Pull\x20child\x20segments\x20to\x20YAML\x20files','description','--master','Email\x20subject\x20template','download\x20<project-name>\x20[output-dir]','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','workflow','--output\x20<file>','--in\x20<name>','-w,\x20--web','outputHelp','GET','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Revision\x20name\x20(default:\x20timestamp)','--rule\x20<json>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','alias','Delivery\x20start\x20time\x20(ISO\x208601\x20format)',',\x20version\x20','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','campaigns\x20[pattern]','Attempt\x20ID','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Campaign\x20name','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Database\x20to\x20use\x20(overrides\x20context)','segment','--system-prompt\x20<text>','Pause\x20a\x20running\x20journey','22490PBvtLS','exit','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','_hidden','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Create\x20an\x20email\x20template','statusline','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','database','job','--interval\x20<range>','user','JSON\x20columns\x20for\x20connector\x20(comma-separated)','0.7','Delete\x20a\x20campaign','--no-count-population','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Show\x20email\x20template\x20details','--behaviors-file\x20<file>','push','Manage\x20workflow\x20project\x20secrets','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Database\x20name\x20(default:\x20information_schema)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Job\x20management\x20commands','Limit\x20number\x20of\x20rows','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','List\x20jobs','TRACE','commandUsage','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','sessions\x20[project]','--rule-file\x20<file>','isTTY','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Campaign\x20description','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--table\x20<table>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','attempt','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','isArray','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Overwrite\x20local\x20changes\x20without\x20confirmation','Show\x20segment\x20details\x20(alias\x20for\x20view)','use\x20[resource]\x20[value]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','sql\x20[segment_name]','--skip-validation','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Resume\x20a\x20conversation\x20(shows\x20selector)','-y,\x20--yes','Save\x20output\x20to\x20file','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Maximum\x20recursion\x20depth\x20(default:\x2010)','--format\x20<format>','Resume\x20from\x20specific\x20task','optionTerm','--attributes\x20<json>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--session-id\x20<id>','Plaintext\x20template\x20content','show\x20[table]','--behaviors\x20<json>','requiredOption','--debug','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--follow','command','-f,\x20--force','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--segment\x20<path>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--reason\x20<text>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','stdout','--schedule-type\x20<type>','colorFn','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','opts','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Run\x20specific\x20tests\x20(comma-separated)','set\x20<args...>','--from-task\x20<task>','Workspace\x20management','-d,\x20--database\x20<database>','--customer-group\x20<json>','-d,\x20--database\x20<name>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','validate\x20[target]','unset\x20<resource>','retry','buildTime','--name\x20<names>','Database\x20to\x20query\x20(default:\x20information_schema)','port','[task-name]','-v,\x20--verbose','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Directory\x20does\x20not\x20exist:\x20','4JEnpvX','show\x20<name-or-id>','Campaign\x20management','Email\x20sender\x20ID\x20for\x20delivery','-r,\x20--recursive','--description\x20<desc>','commands','INVALID_ARGUMENT','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--timezone\x20<tz>','registeredArguments','--type\x20<type>','Submit\x20a\x20job','Force\x20retry\x20even\x20if\x20not\x20failed','--clear','Show\x20only\x20master\x20table\x20validation','padWidth','Reason\x20for\x20killing\x20the\x20attempt','--max-depth\x20<depth>','Attributes\x20as\x20JSON\x20string','gitRevision','-o,\x20--output\x20<dir>','--email-sender-id\x20<id>','argumentTerm','update\x20<name-or-id>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','--yes','--folder\x20<name>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--tags\x20<tags>','aliases','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','jsonl','flatMap','Add\x20behaviors\x20from\x20JSON\x20file','create\x20<name>','segments\x20[path]','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Template\x20name','api\x20[endpoint]','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','LLM\x20agent\x20management','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','Starter\x20message','--data\x20<data>','retry\x20<session-id>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','trace','System\x20prompt/instructions\x20(default:\x20empty)','debug','Delete\x20a\x20workspace','push\x20[path]','pause\x20<name-or-path>','includes','--type\x20<api_type>','--plaintext\x20<text>','List\x20all\x20available\x20profiles','LLM\x20project\x20management','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','CDP\x20segment\x20management\x20commands','duplicate\x20<name-or-id>','Include\x20retried\x20attempts\x20(for\x20list)','push\x20[parent_or_file]','get','--description\x20<text>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Export\x20journey(s)\x20as\x20YAML\x20files','help','--no-eval','Continue\x20most\x20recent\x20conversation','hidden','backup\x20<name>','use\x20[name]','workspaces\x20[pattern]','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','\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','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Open\x20parent\x20segment\x20in\x20web\x20browser','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Workflow\x20project\x20management','pull\x20[name]','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','\x20-\x20built\x20','create','history\x20[chat-id]','auth','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--include-stats','Resume\x20from\x20specific\x20task\x20(retry)','263405jrVlBy','--workspace\x20<name>','stderr','fields\x20[parent_name]','templates\x20[pattern]','tasks','-C,\x20--directory\x20<path>','length','--param\x20<key=value>','Create\x20segment\x20folder','--model\x20<name>','Commands:','Agent\x20description','Add\x20attributes\x20from\x20JSON\x20file','Read\x20SQL\x20query\x20from\x20file','restore\x20<folder>','--schedule-option\x20<value>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','timeline\x20[project.workflow]','json','Set\x20operation\x20timeout\x20in\x20seconds','Read\x20query\x20from\x20file','-u,\x20--use','replace','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--agent\x20<name>','Resume\x20a\x20paused\x20campaign','secrets','campaign','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Preview\x20changes\x20without\x20pushing','Name\x20for\x20the\x20new\x20project\x20(required)','[DEPRECATED]\x20Segment\x20folder\x20management','Custom\x20revision\x20name\x20(default:\x20timestamp)','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','resume\x20<name-or-id>','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--new','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','push\x20[source-dir]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','show\x20<name>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--invisible','table','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','trino','clone\x20[source-dir]','--in\x20<database>','delete\x20<name>','--resume-from\x20<task>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','info\x20[segment_name]','--enriched','pull\x20[parent_or_file]','--to\x20<timestamp>','--temperature\x20<n>','-o,\x20--output\x20<folder>','subcommandTerm','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','8KRpCzy','--add-attributes-file\x20<file>','-f,\x20--file\x20<path>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','allowUnknownOption','setup','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','jobs','stats\x20<name-or-path>','update\x20<agent-name>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--name\x20<name>','Parent\x20segment\x20description','[attempt-id]','preview\x20[name]','delete\x20<name-or-id>','Run\x20Trino\x20query\x20with\x20streaming\x20results','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','--editor-type\x20<type>','Include\x20subtasks\x20in\x20tasks\x20output','argument','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Project\x20description','after','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','attempt:','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Clear\x20session\x20context','resume\x20<name-or-path>','Trino\x20catalog\x20(default:\x20td)','action','launch\x20<name-or-id>','required','Updated\x20description','Delete\x20an\x20email\x20template','--prompt\x20<text>','settings\x20<type>','delete\x20<agent-name>','slice','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','format','Show\x20master\x20table\x20sample\x20data','folders\x20<parent_name>','Launch\x20a\x20campaign','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)'];a2_0x3325=function(){return _0x28ee17;};return a2_0x3325();}import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{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';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x59239f(0x386)](a2_0x59239f(0x217))){let versionOutput='tdx\x20'+currentVersion;buildInfo[a2_0x59239f(0x363)]&&!currentVersion['includes'](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x59239f(0x363)]+')'),buildInfo[a2_0x59239f(0x347)]&&(versionOutput+=a2_0x59239f(0x3a5)+buildInfo[a2_0x59239f(0x347)]),console['log'](versionOutput),process[a2_0x59239f(0x2e8)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x59239f(0x363)]&&!currentVersion[a2_0x59239f(0x386)](buildInfo[a2_0x59239f(0x363)])?description+=a2_0x59239f(0x2dc)+currentVersion+'\x20('+buildInfo[a2_0x59239f(0x363)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x59239f(0x1e9)](a2_0x59239f(0x232))[a2_0x59239f(0x2cb)](description),program['option'](a2_0x59239f(0x14d),'Change\x20to\x20directory\x20before\x20executing\x20command')['option']('-p,\x20--profile\x20<name>',a2_0x59239f(0x2ea))[a2_0x59239f(0x238)](a2_0x59239f(0x200),a2_0x59239f(0x21c),a2_0x59239f(0x236))['option'](a2_0x59239f(0x321),a2_0x59239f(0x36e))[a2_0x59239f(0x238)](a2_0x59239f(0x21b),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x59239f(0x238)]('--json',a2_0x59239f(0x318))['option']('--jsonl','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x59239f(0x238)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x59239f(0x2d1),a2_0x59239f(0x31e))['option']('--limit\x20<number>',a2_0x59239f(0x335))[a2_0x59239f(0x238)](a2_0x59239f(0x1de),a2_0x59239f(0x3a1),![])[a2_0x59239f(0x238)]('--no-color',a2_0x59239f(0x27f),![])[a2_0x59239f(0x238)](a2_0x59239f(0x34c),'Enable\x20verbose\x20logging',![])['option'](a2_0x59239f(0x32b),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x59239f(0x238)](a2_0x59239f(0x1f8),a2_0x59239f(0x370))[a2_0x59239f(0x238)]('--timeout\x20<seconds>',a2_0x59239f(0x15d),'30')['option'](a2_0x59239f(0x2c7),'Preview\x20operation\x20without\x20executing',![])['option'](a2_0x59239f(0x31d),a2_0x59239f(0x286),![])['option']('--session\x20<id>',a2_0x59239f(0x1ea))[a2_0x59239f(0x238)](a2_0x59239f(0x342),a2_0x59239f(0x2e3))['option'](a2_0x59239f(0x2d2),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x59239f(0x238)](a2_0x59239f(0x276),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x59239f(0x238)]('--llm-project\x20<name>',a2_0x59239f(0x23c)),program['configureHelp']({'formatHelp':(_0x17b948,_0x485143)=>{const _0x4fe67c=a2_0x59239f,_0x249985=_0x485143[_0x4fe67c(0x35f)](_0x17b948,_0x485143),_0x48f094=0x2,_0x42be47=0x2;function _0x1cf39c(_0x34347e){const _0x1d1368=_0x4fe67c,_0x284d10=_0x34347e;return!!(_0x284d10[_0x1d1368(0x2eb)]||_0x284d10[_0x1d1368(0x399)]);}function _0x3f2480(_0x5605fc,_0x556d61){if(_0x556d61){const _0x3e011a=''+_0x5605fc['padEnd'](_0x249985+_0x42be47)+_0x556d61;return _0x3e011a;}return _0x5605fc;}function _0x16f2a9(_0x3d7ee6){const _0x15c26f=_0x4fe67c;return _0x3d7ee6[_0x15c26f(0x256)]('\x0a')[_0x15c26f(0x160)](/^/gm,'\x20'['repeat'](_0x48f094));}const _0x2d6e81=[];_0x2d6e81[_0x4fe67c(0x2fb)](_0x4fe67c(0x213)+_0x485143[_0x4fe67c(0x305)](_0x17b948));const _0x4ac1d=_0x485143[_0x4fe67c(0x22d)](_0x17b948);_0x4ac1d&&(_0x2d6e81[_0x4fe67c(0x2fb)](''),_0x2d6e81[_0x4fe67c(0x2fb)](_0x4ac1d));const _0x5acff0=_0x17b948['commands'][_0x4fe67c(0x220)](_0x3cc502=>!_0x1cf39c(_0x3cc502));if(_0x5acff0[_0x4fe67c(0x14e)]>0x0){if(_0x17b948[_0x4fe67c(0x1e9)]()===_0x4fe67c(0x232)){const _0x4ba2af=_0x17b948[_0x4fe67c(0x33a)](),_0xebc8f7=!_0x4ba2af[_0x4fe67c(0x211)]&&process[_0x4fe67c(0x336)][_0x4fe67c(0x30a)],_0x313b5b=COMMAND_CATEGORIES,_0xfa00c8=(_0x2d4900,_0x40f482)=>_0xebc8f7?_0x40f482(_0x2d4900):_0x2d4900,_0x144e25=new Map();_0x5acff0[_0x4fe67c(0x265)](_0xec1eed=>{const _0x590c31=_0x4fe67c;_0x144e25[_0x590c31(0x1f3)](_0xec1eed[_0x590c31(0x1e9)](),_0xec1eed);}),_0x313b5b['forEach'](_0x5af3bf=>{const _0x572427=_0x4fe67c,_0x33f9c0=_0x5af3bf[_0x572427(0x355)][_0x572427(0x372)](_0x33dcdb=>_0x144e25[_0x572427(0x392)](_0x33dcdb)??[]);if(_0x33f9c0[_0x572427(0x14e)]>0x0){_0x2d6e81['push'](''),_0x2d6e81[_0x572427(0x2fb)](_0xfa00c8(_0x5af3bf['name']+':',_0x5af3bf[_0x572427(0x338)]));const _0x354f87=_0x33f9c0[_0x572427(0x27b)](_0x2c62bb=>{const _0x1ab3bb=_0x572427,_0x35e366=_0x485143[_0x1ab3bb(0x184)](_0x2c62bb),_0x17d11f=_0x485143['subcommandDescription'](_0x2c62bb);return _0x3f2480(_0x35e366,_0x17d11f);});_0x2d6e81['push'](_0x16f2a9(_0x354f87));}}),_0x2d6e81[_0x4fe67c(0x2fb)](''),_0x2d6e81[_0x4fe67c(0x2fb)](_0x4fe67c(0x30f));}else{const _0x2debf3=_0x5acff0[_0x4fe67c(0x27b)](_0x1f1f11=>{const _0x2c41dd=_0x4fe67c,_0x169bf5=_0x485143[_0x2c41dd(0x184)](_0x1f1f11),_0x501b1d=_0x485143['subcommandDescription'](_0x1f1f11);return _0x3f2480(_0x169bf5,_0x501b1d);});_0x2d6e81[_0x4fe67c(0x2fb)](''),_0x2d6e81[_0x4fe67c(0x2fb)](_0x4fe67c(0x152)),_0x2d6e81[_0x4fe67c(0x2fb)](_0x16f2a9(_0x2debf3));}}if(showBriefHelp&&_0x17b948[_0x4fe67c(0x1e9)]()===_0x4fe67c(0x232))_0x2d6e81[_0x4fe67c(0x2fb)](''),_0x2d6e81[_0x4fe67c(0x2fb)]('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x4ebd04=_0x17b948[_0x4fe67c(0x20b)][_0x4fe67c(0x220)](_0x6a40c5=>!_0x1cf39c(_0x6a40c5));if(_0x4ebd04[_0x4fe67c(0x14e)]>0x0){const _0x3093d3=_0x4ebd04[_0x4fe67c(0x27b)](_0xd81d7d=>{const _0x3cf2d9=_0x4fe67c,_0x2353ad=_0x485143[_0x3cf2d9(0x323)](_0xd81d7d),_0x2c35fa=_0x485143['optionDescription'](_0xd81d7d);return _0x3f2480(_0x2353ad,_0x2c35fa);});_0x2d6e81[_0x4fe67c(0x2fb)](''),_0x2d6e81[_0x4fe67c(0x2fb)]('Options:'),_0x2d6e81[_0x4fe67c(0x2fb)](_0x16f2a9(_0x3093d3));}}const _0x5d0a06=(_0x17b948[_0x4fe67c(0x359)]||[])[_0x4fe67c(0x220)](_0x144654=>!_0x1cf39c(_0x144654));if(_0x5d0a06[_0x4fe67c(0x14e)]>0x0){const _0x111917=_0x5d0a06['map'](_0x57449f=>{const _0x56027d=_0x4fe67c,_0x45c9f3=_0x485143[_0x56027d(0x366)](_0x57449f),_0x897592=_0x485143[_0x56027d(0x28c)](_0x57449f);return _0x3f2480(_0x45c9f3,_0x897592);});_0x2d6e81['push'](''),_0x2d6e81[_0x4fe67c(0x2fb)]('Arguments:'),_0x2d6e81[_0x4fe67c(0x2fb)](_0x16f2a9(_0x111917));}return _0x2d6e81[_0x4fe67c(0x256)]('\x0a')+'\x0a';},'subcommandTerm':_0x45b031=>{const _0x404e01=a2_0x59239f,_0x8d7f3e=(_0x45b031[_0x404e01(0x359)]||[])[_0x404e01(0x27b)](_0x1a4852=>_0x1a4852[_0x404e01(0x1a7)]?'<'+_0x1a4852[_0x404e01(0x1e9)]()+'>':'['+_0x1a4852[_0x404e01(0x1e9)]()+']')[_0x404e01(0x256)]('\x20'),_0x4c32d1=_0x45b031[_0x404e01(0x36d)](),_0x5e06b4=_0x4c32d1[_0x404e01(0x14e)]>0x0?_0x45b031[_0x404e01(0x1e9)]()+',\x20'+_0x4c32d1[_0x404e01(0x256)](',\x20'):_0x45b031[_0x404e01(0x1e9)]();return _0x8d7f3e?_0x5e06b4+'\x20'+_0x8d7f3e:_0x5e06b4;}}),program['hook'](a2_0x59239f(0x249),_0x1e1610=>{const _0xa3d98a=a2_0x59239f,_0x423d0e=_0x1e1610[_0xa3d98a(0x33a)]();if(_0x423d0e[_0xa3d98a(0x1b9)]){const _0x3f5d65=resolve(_0x423d0e[_0xa3d98a(0x1b9)]),_0x3f1503=_0x3f5d65!==_0x423d0e[_0xa3d98a(0x1b9)]?_0xa3d98a(0x25b)+_0x3f5d65+')':'';if(!existsSync(_0x3f5d65))throw new SDKError(ErrorCode[_0xa3d98a(0x356)],_0xa3d98a(0x34e)+_0x423d0e[_0xa3d98a(0x1b9)]+_0x3f1503,undefined,{'helpText':_0xa3d98a(0x17d)});const _0x3ba851=statSync(_0x3f5d65);if(!_0x3ba851[_0xa3d98a(0x1f0)]())throw new SDKError(ErrorCode[_0xa3d98a(0x356)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x423d0e['directory']+_0x3f1503,undefined,{'helpText':_0xa3d98a(0x2ff)});process[_0xa3d98a(0x251)](_0x3f5d65);}if(!_0x423d0e['format']){if(_0x423d0e[_0xa3d98a(0x176)])_0x423d0e['format']=_0xa3d98a(0x176);else{if(_0x423d0e[_0xa3d98a(0x15c)])_0x423d0e[_0xa3d98a(0x1af)]=_0xa3d98a(0x15c);else{if(_0x423d0e[_0xa3d98a(0x371)])_0x423d0e[_0xa3d98a(0x1af)]=_0xa3d98a(0x371);else _0x423d0e['tsv']&&(_0x423d0e[_0xa3d98a(0x1af)]=_0xa3d98a(0x278));}}}_0x423d0e['in']&&!_0x423d0e[_0xa3d98a(0x2f0)]&&(_0x423d0e[_0xa3d98a(0x2f0)]=_0x423d0e['in']);if(_0x423d0e[_0xa3d98a(0x380)])_0x423d0e[_0xa3d98a(0x1bd)]=LogLevel[_0xa3d98a(0x304)];else{if(_0x423d0e[_0xa3d98a(0x382)])_0x423d0e[_0xa3d98a(0x1bd)]=LogLevel[_0xa3d98a(0x23e)];else _0x423d0e[_0xa3d98a(0x1bd)]===undefined&&(_0x423d0e[_0xa3d98a(0x1bd)]=LogLevel['INFO']);}});async function createTDXInstance(_0x554652){const _0x310d8c=a2_0x59239f,_0x8edc89=await GlobalContext['createAsync'](_0x554652);return _0x8edc89[_0x310d8c(0x26f)](_0x554652),TDX[_0x310d8c(0x3a6)]({'site':_0x8edc89['site'],'apiKey':_0x8edc89['apiKey'],'logLevel':_0x8edc89['logLevel'],'profile':_0x8edc89[_0x310d8c(0x219)]});}const databaseCmd=program[a2_0x59239f(0x32e)]('database')[a2_0x59239f(0x2da)]('db')[a2_0x59239f(0x2cb)]('Database\x20management\x20commands'),databaseListAction=async(_0xbcbdff,_0x3882b6)=>{const _0x48d8ed=a2_0x59239f,_0x31203f=new DatabasesCommand(),_0x47f847=program[_0x48d8ed(0x33a)](),_0x265669=await createTDXInstance(_0x47f847),_0x2c6a32=await _0x31203f['run']({'options':{..._0x47f847,..._0x3882b6},'args':_0xbcbdff?[_0xbcbdff]:[],'tdx':_0x265669});gracefulExit(_0x2c6a32);};databaseCmd['command'](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2a6))['action'](databaseListAction),program[a2_0x59239f(0x32e)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x59239f(0x1dc))[a2_0x59239f(0x1a5)](databaseListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x2ba))[a2_0x59239f(0x2cb)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x59239f(0x2c2),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x59239f(0x238)](a2_0x59239f(0x16f),a2_0x59239f(0x298))[a2_0x59239f(0x1a5)](async(_0x5335ed,_0x5b6454)=>{const _0x2f7432=a2_0x59239f,_0x5774e1=new ChatCommand(),_0x4d17f1=program[_0x2f7432(0x33a)](),_0x488530=await createTDXInstance(_0x4d17f1),_0x574455=await _0x5774e1[_0x2f7432(0x263)]({'options':{..._0x4d17f1,..._0x5b6454},'args':_0x5335ed,'tdx':_0x488530});gracefulExit(_0x574455);});const apiCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x378))[a2_0x59239f(0x22f)](a2_0x59239f(0x330))[a2_0x59239f(0x292)](a2_0x59239f(0x19e),'\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_0x59239f(0x238)](a2_0x59239f(0x2a1),a2_0x59239f(0x20e),a2_0x59239f(0x2d5))[a2_0x59239f(0x238)](a2_0x59239f(0x37d),'Request\x20body\x20as\x20JSON\x20string')['option'](a2_0x59239f(0x188),'Read\x20request\x20body\x20from\x20file')[a2_0x59239f(0x238)]('-H,\x20--header\x20<header>',a2_0x59239f(0x267),(_0x24bcee,_0x47950c)=>{return _0x47950c?[..._0x47950c,_0x24bcee]:[_0x24bcee];})[a2_0x59239f(0x238)](a2_0x59239f(0x387),a2_0x59239f(0x271),'td')[a2_0x59239f(0x1a5)](async(_0x54231b,_0xd12624)=>{const _0x2898bb=a2_0x59239f;if(!_0x54231b){apiCmd[_0x2898bb(0x396)]();return;}const _0x3de7ec=new ApiCommand(),_0x577caa=program[_0x2898bb(0x33a)](),_0x1973ae=await createTDXInstance(_0x577caa),_0x341338=await _0x3de7ec[_0x2898bb(0x263)]({'options':{..._0x577caa,..._0xd12624},'args':[_0x54231b],'tdx':_0x1973ae});gracefulExit(_0x341338);});program['command'](a2_0x59239f(0x26d))[a2_0x59239f(0x2cb)](a2_0x59239f(0x262))[a2_0x59239f(0x292)](a2_0x59239f(0x19e),a2_0x59239f(0x2a5))[a2_0x59239f(0x1a5)](async _0x5de297=>{const _0x16c6ac=new MCPCommand(),_0x5d1745=program['opts'](),_0x5bf279=await createTDXInstance(_0x5d1745),_0x1ba991=await _0x16c6ac['run']({'options':{..._0x5d1745,..._0x5de297},'args':[],'tdx':_0x5bf279});gracefulExit(_0x1ba991);});const tableCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x176))[a2_0x59239f(0x2cb)]('Table\x20management\x20commands'),tableListAction=async(_0x11402b,_0x406ea4)=>{const _0x267fe4=a2_0x59239f,_0x4d494f=new TablesCommand(),_0x339100=program[_0x267fe4(0x33a)](),_0x3ce4a5=await createTDXInstance(_0x339100);_0x406ea4['in']&&(_0x406ea4['database']=_0x406ea4['in']);const _0x20f414=await _0x4d494f[_0x267fe4(0x263)]({'options':{..._0x339100,..._0x406ea4},'args':_0x11402b?[_0x11402b]:[],'tdx':_0x3ce4a5});gracefulExit(_0x20f414);};tableCmd['command']('list\x20[pattern]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x177))[a2_0x59239f(0x238)](a2_0x59239f(0x340),a2_0x59239f(0x302))[a2_0x59239f(0x238)](a2_0x59239f(0x17a),a2_0x59239f(0x2e2))[a2_0x59239f(0x1a5)](tableListAction),program[a2_0x59239f(0x32e)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x2ae))[a2_0x59239f(0x238)](a2_0x59239f(0x340),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x59239f(0x238)](a2_0x59239f(0x17a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x328))['description']('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x59239f(0x340),a2_0x59239f(0x2ef))[a2_0x59239f(0x238)](a2_0x59239f(0x17a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x1f60c0,_0x2a356d)=>{const _0x4ae3f0=a2_0x59239f,_0x5c3bf1=new ShowCommand(),_0x1c8f30=program[_0x4ae3f0(0x33a)](),_0x1f49ca=await createTDXInstance(_0x1c8f30);_0x2a356d['in']&&(_0x2a356d['database']=_0x2a356d['in']);const _0x381f98=await _0x5c3bf1[_0x4ae3f0(0x263)]({'options':{..._0x1c8f30,..._0x2a356d},'args':_0x1f60c0?[_0x1f60c0]:[],'tdx':_0x1f49ca});gracefulExit(_0x381f98);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x2b9))[a2_0x59239f(0x2da)](a2_0x59239f(0x29d))[a2_0x59239f(0x2cb)]('Describe\x20table\x20schema')[a2_0x59239f(0x238)](a2_0x59239f(0x340),a2_0x59239f(0x2ef))[a2_0x59239f(0x238)](a2_0x59239f(0x17a),a2_0x59239f(0x2e2))[a2_0x59239f(0x1a5)](async(_0x1ee8b4,_0x48ccf4)=>{const _0x62c22f=a2_0x59239f,_0x54e4eb=new DescribeCommand(),_0x222a7f=program[_0x62c22f(0x33a)](),_0x2b21a3=await createTDXInstance(_0x222a7f);_0x48ccf4['in']&&(_0x48ccf4[_0x62c22f(0x2f0)]=_0x48ccf4['in']);const _0x1556f3=await _0x54e4eb[_0x62c22f(0x263)]({'options':{..._0x222a7f,..._0x48ccf4},'args':_0x1ee8b4?[_0x1ee8b4]:[],'tdx':_0x2b21a3});gracefulExit(_0x1556f3);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x277))[a2_0x59239f(0x2cb)](a2_0x59239f(0x196))[a2_0x59239f(0x238)](a2_0x59239f(0x340),a2_0x59239f(0x349))[a2_0x59239f(0x238)]('--in\x20<database>',a2_0x59239f(0x2e2))[a2_0x59239f(0x238)]('--catalog\x20<catalog>',a2_0x59239f(0x1a4))[a2_0x59239f(0x238)](a2_0x59239f(0x188),a2_0x59239f(0x155))[a2_0x59239f(0x238)](a2_0x59239f(0x272),a2_0x59239f(0x307),'40')[a2_0x59239f(0x1a5)](async(_0x543d1e,_0x2f4d9f)=>{const _0x3d8845=a2_0x59239f,_0x2fb7e1=new QueryCommand(),_0x487e9e=program[_0x3d8845(0x33a)](),_0x33428e=await createTDXInstance(_0x487e9e);_0x2f4d9f['in']&&(_0x2f4d9f[_0x3d8845(0x2f0)]=_0x2f4d9f['in']);const _0x4cb2c3=await _0x2fb7e1[_0x3d8845(0x263)]({'options':{..._0x487e9e,..._0x2f4d9f},'args':_0x543d1e?[_0x543d1e]:[],'tdx':_0x33428e});gracefulExit(_0x4cb2c3);});const segmentCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x2e4))[a2_0x59239f(0x2da)]('sg')[a2_0x59239f(0x2cb)](a2_0x59239f(0x38e)),segmentListAction=async(_0x329277,_0x199ead)=>{const _0xee1c21=a2_0x59239f,_0x1ae99c=new SegmentsCommand(),_0x2bf8fe=program[_0xee1c21(0x33a)](),_0x2ae2fb=await createTDXInstance(_0x2bf8fe),_0x367ca1=await _0x1ae99c[_0xee1c21(0x263)]({'options':{..._0x2bf8fe,..._0x199ead},'args':_0x329277?[_0x329277]:[],'tdx':_0x2ae2fb});gracefulExit(_0x367ca1);};segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1bf))[a2_0x59239f(0x2cb)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x59239f(0x238)](a2_0x59239f(0x353),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x59239f(0x238)](a2_0x59239f(0x361),a2_0x59239f(0x320),'10')[a2_0x59239f(0x1a5)](segmentListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x375),{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x39d))['option'](a2_0x59239f(0x353),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x59239f(0x238)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x59239f(0x1a5)](segmentListAction),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1c7),{'hidden':!![]})[a2_0x59239f(0x2cb)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x59239f(0x1a5)](async(_0x1d6a26,_0x542cbf)=>{const _0x1224a0=a2_0x59239f,_0xdf3df9=new SegmentUseCommand(),_0x386cad=program[_0x1224a0(0x33a)](),_0x40cf53=await createTDXInstance(_0x386cad),_0x5c1f3a=await _0xdf3df9[_0x1224a0(0x263)]({'options':{..._0x386cad,..._0x542cbf},'args':[_0x1d6a26],'tdx':_0x40cf53});gracefulExit(_0x5c1f3a);});const segmentViewAction=async(_0x4f3ceb,_0x302db0)=>{const _0x526309=a2_0x59239f,_0x322bc2=new SegmentViewCommand(),_0x4b2f7b=program['opts'](),_0x4f66a7=await createTDXInstance(_0x4b2f7b),_0x287ce7=await _0x322bc2[_0x526309(0x263)]({'options':{..._0x4b2f7b,..._0x302db0},'args':_0x4f3ceb?[_0x4f3ceb]:[],'tdx':_0x4f66a7});gracefulExit(_0x287ce7);};segmentCmd[a2_0x59239f(0x32e)]('view\x20[segment_name]')[a2_0x59239f(0x2cb)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x59239f(0x238)](a2_0x59239f(0x2d3),a2_0x59239f(0x295))[a2_0x59239f(0x1a5)](segmentViewAction),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x17e),{'hidden':!![]})[a2_0x59239f(0x2da)](a2_0x59239f(0x24e))[a2_0x59239f(0x238)](a2_0x59239f(0x2d3),'Open\x20segment\x20in\x20web\x20browser')['description'](a2_0x59239f(0x315))[a2_0x59239f(0x1a5)](segmentViewAction),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x212))['description'](a2_0x59239f(0x203))[a2_0x59239f(0x1a5)](async(_0x66162f,_0x17994c)=>{const _0x32205a=a2_0x59239f,_0x2d6353=new SegmentDescCommand(),_0x1bfbdd=program[_0x32205a(0x33a)](),_0x2e76d5=await createTDXInstance(_0x1bfbdd),_0x41818e=await _0x2d6353[_0x32205a(0x263)]({'options':{..._0x1bfbdd,..._0x17994c},'args':_0x66162f?[_0x66162f]:[],'tdx':_0x2e76d5});gracefulExit(_0x41818e);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1e3))[a2_0x59239f(0x2cb)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x59239f(0x1a5)](async(_0xf76df9,_0xee257e)=>{const _0x4413e0=a2_0x59239f,_0x363bc6=new SegmentShowCommand(),_0x4cc480=program[_0x4413e0(0x33a)](),_0x228b54=await createTDXInstance(_0x4cc480),_0x136931=await _0x363bc6[_0x4413e0(0x263)]({'options':{..._0x4cc480,..._0xee257e},'args':_0xf76df9?[_0xf76df9]:[],'tdx':_0x228b54});gracefulExit(_0x136931);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1b1),{'hidden':!![]})[a2_0x59239f(0x2cb)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x59239f(0x1a5)](async(_0x566e40,_0x4452dc)=>{const _0x3ca14a=a2_0x59239f,_0x59dbf1=new SegmentFolderListCommand(),_0xd35a8f=program['opts'](),_0x2659ec=await createTDXInstance(_0xd35a8f),_0xe482d6=await _0x59dbf1[_0x3ca14a(0x263)]({'options':{..._0xd35a8f,..._0x4452dc},'args':[_0x566e40],'tdx':_0x2659ec});gracefulExit(_0xe482d6);});const folderCmd=segmentCmd['command'](a2_0x59239f(0x266),{'hidden':!![]})['description'](a2_0x59239f(0x169));folderCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x228))[a2_0x59239f(0x2cb)](a2_0x59239f(0x172))[a2_0x59239f(0x1a5)](async(_0x6f6f18,_0x3e8033)=>{const _0x2bfc75=a2_0x59239f,_0x40027d=new SegmentFolderShowCommand(),_0x5a6497=program[_0x2bfc75(0x33a)](),_0x2e8a23=await createTDXInstance(_0x5a6497),_0xc8cd53=await _0x40027d[_0x2bfc75(0x263)]({'options':{..._0x5a6497,..._0x3e8033},'args':[_0x6f6f18],'tdx':_0x2e8a23});gracefulExit(_0xc8cd53);}),segmentCmd['command'](a2_0x59239f(0x319))['description'](a2_0x59239f(0x38d))[a2_0x59239f(0x1a5)](async(_0x1f3ad1,_0x282b0a)=>{const _0x40ceb3=a2_0x59239f,_0x337eb7=new SegmentSQLCommand(),_0x193cf1=program[_0x40ceb3(0x33a)](),_0x2bfdaa=await createTDXInstance(_0x193cf1),_0x3617ff=await _0x337eb7[_0x40ceb3(0x263)]({'options':{..._0x193cf1,..._0x282b0a},'args':_0x1f3ad1?[_0x1f3ad1]:[],'tdx':_0x2bfdaa});gracefulExit(_0x3617ff);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x14a))['description'](a2_0x59239f(0x34d))[a2_0x59239f(0x1a5)](async(_0xff95d9,_0x3c9faf)=>{const _0x552ad9=a2_0x59239f,_0x42c747=new SegmentFieldsCommand(),_0x434407=program['opts'](),_0x32788d=await createTDXInstance(_0x434407),_0x2ec759=await _0x42c747[_0x552ad9(0x263)]({'options':{..._0x434407,..._0x3c9faf},'args':_0xff95d9?[_0xff95d9]:[],'tdx':_0x32788d});gracefulExit(_0x2ec759);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x180))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2ca))[a2_0x59239f(0x238)](a2_0x59239f(0x31d),'Skip\x20confirmation\x20prompts')[a2_0x59239f(0x238)](a2_0x59239f(0x2c7),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')['action'](async(_0x55a5cf,_0x631099)=>{const _0x34c6bb=a2_0x59239f,_0x43c277=new SegmentPullCommand(),_0x22f6cf=program[_0x34c6bb(0x33a)](),_0x3bd49b=await createTDXInstance(_0x22f6cf),_0x33de84=await _0x43c277[_0x34c6bb(0x263)]({'options':{..._0x22f6cf,..._0x631099},'args':_0x55a5cf?[_0x55a5cf]:[],'tdx':_0x3bd49b});gracefulExit(_0x33de84);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x391))['description'](a2_0x59239f(0x185))[a2_0x59239f(0x238)]('-y,\x20--yes',a2_0x59239f(0x286))[a2_0x59239f(0x238)](a2_0x59239f(0x2c7),a2_0x59239f(0x306))[a2_0x59239f(0x238)](a2_0x59239f(0x297),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')['action'](async(_0x267a93,_0x3224bf)=>{const _0x1b2906=a2_0x59239f,_0x2a5f39=new SegmentPushCommand(),_0xffa343=program['opts'](),_0x33ae02=await createTDXInstance(_0xffa343),_0xc197ec=await _0x2a5f39[_0x1b2906(0x263)]({'options':{..._0xffa343,..._0x3224bf},'args':_0x267a93?[_0x267a93]:[],'tdx':_0x33ae02});gracefulExit(_0xc197ec);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x344))['description']('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x549160,_0x501ef2)=>{const _0x370b69=a2_0x59239f,_0xe21d51=new SegmentValidateCommand(),_0x111f87=program['opts'](),_0x49d98f=await createTDXInstance(_0x111f87),_0x17b726=await _0xe21d51[_0x370b69(0x263)]({'options':{..._0x111f87,..._0x501ef2},'args':_0x549160?[_0x549160]:[],'tdx':_0x49d98f});gracefulExit(_0x17b726);}),segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x207),{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x333))[a2_0x59239f(0x238)]('--description\x20<text>','Segment\x20description')[a2_0x59239f(0x238)](a2_0x59239f(0x2d8),a2_0x59239f(0x25f))['option']('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x59239f(0x36a),'Folder\x20name\x20for\x20organization')[a2_0x59239f(0x238)]('--kind\x20<type>',a2_0x59239f(0x241))['option'](a2_0x59239f(0x175),a2_0x59239f(0x1dd))[a2_0x59239f(0x238)](a2_0x59239f(0x2f7),'Skip\x20population\x20counting')['action'](async(_0x12494a,_0x1bc235)=>{const _0x22c3cc=a2_0x59239f,_0x17d8b3=new SegmentCreateCommand(),_0x2dff24=program[_0x22c3cc(0x33a)](),_0x3ac0e4=await createTDXInstance(_0x2dff24),_0x3c0564=await _0x17d8b3[_0x22c3cc(0x263)]({'options':{..._0x2dff24,..._0x1bc235},'args':[_0x12494a],'tdx':_0x3ac0e4});gracefulExit(_0x3c0564);}),segmentCmd[a2_0x59239f(0x32e)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x2fd))[a2_0x59239f(0x238)](a2_0x59239f(0x20d),a2_0x59239f(0x243))[a2_0x59239f(0x238)](a2_0x59239f(0x393),a2_0x59239f(0x1a8))[a2_0x59239f(0x238)]('--rule\x20<json>',a2_0x59239f(0x39f))['option'](a2_0x59239f(0x309),a2_0x59239f(0x206))[a2_0x59239f(0x238)](a2_0x59239f(0x36a),a2_0x59239f(0x285))[a2_0x59239f(0x238)](a2_0x59239f(0x1c3),a2_0x59239f(0x241))[a2_0x59239f(0x1a5)](async(_0x44f37f,_0x414cd3)=>{const _0x17fdf9=a2_0x59239f,_0x5091b6=new SegmentUpdateCommand(),_0xc29f7f=program['opts'](),_0x51e04b=await createTDXInstance(_0xc29f7f),_0x33336a=await _0x5091b6[_0x17fdf9(0x263)]({'options':{..._0xc29f7f,..._0x414cd3},'args':[_0x44f37f],'tdx':_0x51e04b});gracefulExit(_0x33336a);});const parentCmd=segmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x239),{'hidden':!![]})[a2_0x59239f(0x2cb)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x524b69,_0x255641)=>{const _0x45dc3d=a2_0x59239f,_0x3952c9=new ParentSegmentListCommand(),_0x4f2eaa=program['opts'](),_0x1821e8=await createTDXInstance(_0x4f2eaa),_0x228b6a=await _0x3952c9[_0x45dc3d(0x263)]({'options':{..._0x4f2eaa,..._0x255641},'args':_0x524b69?[_0x524b69]:[],'tdx':_0x1821e8});gracefulExit(_0x228b6a);};parentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))['description'](a2_0x59239f(0x29e))[a2_0x59239f(0x1a5)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x59239f(0x2cb)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x59239f(0x1a5)](parentListAction),parentCmd['command']('pull\x20[name]')[a2_0x59239f(0x2cb)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file')['option'](a2_0x59239f(0x27e),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x59239f(0x238)](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0xd04109,_0x4e9329)=>{const _0x33910f=a2_0x59239f,_0x4d39b8=new ParentSegmentPullCommand(),_0x3aeae1=program['opts'](),_0x3574eb=await createTDXInstance(_0x3aeae1),_0x46bd79=await _0x4d39b8[_0x33910f(0x263)]({'options':{..._0x3aeae1,..._0x4e9329},'args':_0xd04109?[_0xd04109]:[],'tdx':_0x3574eb});gracefulExit(_0x46bd79);}),parentCmd[a2_0x59239f(0x32e)]('push\x20[file]')['description'](a2_0x59239f(0x331))[a2_0x59239f(0x238)]('-y,\x20--yes',a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x187f45,_0x2bb445)=>{const _0x330884=a2_0x59239f,_0x20545a=new ParentSegmentPushCommand(),_0x2ae307=program[_0x330884(0x33a)](),_0x3421f0=await createTDXInstance(_0x2ae307),_0x28055c=await _0x20545a[_0x330884(0x263)]({'options':{..._0x2ae307,..._0x2bb445},'args':_0x187f45?[_0x187f45]:[],'tdx':_0x3421f0});gracefulExit(_0x28055c);}),parentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1f1))[a2_0x59239f(0x2cb)](a2_0x59239f(0x28d))[a2_0x59239f(0x238)]('--master',a2_0x59239f(0x35e))['option'](a2_0x59239f(0x1e1),a2_0x59239f(0x1ee))['option'](a2_0x59239f(0x23a),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x59239f(0x238)](a2_0x59239f(0x17f),a2_0x59239f(0x30d))[a2_0x59239f(0x238)](a2_0x59239f(0x2f2),a2_0x59239f(0x18c),a2_0x59239f(0x2a0))[a2_0x59239f(0x1a5)](async(_0x137d06,_0x23028d)=>{const _0x8725b4=a2_0x59239f,_0x4150f0=new ParentSegmentValidateCommand(),_0x2a95c7=program[_0x8725b4(0x33a)](),_0x44ef73=await createTDXInstance(_0x2a95c7),_0x291590=await _0x4150f0[_0x8725b4(0x263)]({'options':{..._0x2a95c7,..._0x23028d},'args':_0x137d06?[_0x137d06]:[],'tdx':_0x44ef73});gracefulExit(_0x291590);}),parentCmd[a2_0x59239f(0x32e)]('preview\x20[file]')[a2_0x59239f(0x2cb)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x59239f(0x238)]('--master',a2_0x59239f(0x1b0))[a2_0x59239f(0x238)](a2_0x59239f(0x1e1),a2_0x59239f(0x246))[a2_0x59239f(0x238)](a2_0x59239f(0x23a),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x59239f(0x238)](a2_0x59239f(0x17f),a2_0x59239f(0x2aa))['option'](a2_0x59239f(0x2f2),a2_0x59239f(0x18c),a2_0x59239f(0x2a0))[a2_0x59239f(0x1a5)](async(_0x1ac7fa,_0x1e49a2)=>{const _0xc68da6=a2_0x59239f,_0x19f4bf=new ParentSegmentPreviewCommand(),_0xd43971=program[_0xc68da6(0x33a)](),_0x1f9b4c=await createTDXInstance(_0xd43971),_0x207f3b=await _0x19f4bf[_0xc68da6(0x263)]({'options':{..._0xd43971,..._0x1e49a2},'args':_0x1ac7fa?[_0x1ac7fa]:[],'tdx':_0x1f9b4c});gracefulExit(_0x207f3b);}),parentCmd['command'](a2_0x59239f(0x1e4))[a2_0x59239f(0x2cb)](a2_0x59239f(0x394))['option'](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x2bbc5d,_0x3e0080)=>{const _0x34cca9=a2_0x59239f,_0x3b389d=new ParentSegmentRunCommand(),_0x2efc24=program[_0x34cca9(0x33a)](),_0x8dc90b=await createTDXInstance(_0x2efc24),_0xbae27a=await _0x3b389d['run']({'options':{..._0x2efc24,..._0x3e0080},'args':_0x2bbc5d?[_0x2bbc5d]:[],'tdx':_0x8dc90b});gracefulExit(_0xbae27a);});const parentSegmentCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x1b7))[a2_0x59239f(0x2da)]('ps')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1f6));parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x29e))['action'](parentListAction),parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x3a3))[a2_0x59239f(0x2cb)](a2_0x59239f(0x237))[a2_0x59239f(0x238)](a2_0x59239f(0x27e),'Output\x20file\x20path')[a2_0x59239f(0x238)]('-y,\x20--yes',a2_0x59239f(0x2a3))[a2_0x59239f(0x238)](a2_0x59239f(0x15f),a2_0x59239f(0x19f))[a2_0x59239f(0x1a5)](async(_0x466bcf,_0x4620d2)=>{const _0x48f7b6=a2_0x59239f,_0x2f903c=new ParentSegmentPullCommand(),_0x4d0c8c=program['opts'](),_0x148a76=await createTDXInstance(_0x4d0c8c),_0x53941e=await _0x2f903c[_0x48f7b6(0x263)]({'options':{..._0x4d0c8c,..._0x4620d2},'args':_0x466bcf?[_0x466bcf]:[],'tdx':_0x148a76});gracefulExit(_0x53941e);}),parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x20c))[a2_0x59239f(0x2cb)](a2_0x59239f(0x24a))[a2_0x59239f(0x238)](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x41b822,_0x10ef30)=>{const _0x21a8be=a2_0x59239f,_0x47f94c=new ParentSegmentPushCommand(),_0x8ba85a=program['opts'](),_0x5d6ebf=await createTDXInstance(_0x8ba85a),_0x4f26dd=await _0x47f94c[_0x21a8be(0x263)]({'options':{..._0x8ba85a,..._0x10ef30},'args':_0x41b822?[_0x41b822]:[],'tdx':_0x5d6ebf});gracefulExit(_0x4f26dd);}),parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x296))['description'](a2_0x59239f(0x28d))[a2_0x59239f(0x238)](a2_0x59239f(0x2cc),'Show\x20only\x20master\x20table\x20validation')[a2_0x59239f(0x238)](a2_0x59239f(0x1e1),a2_0x59239f(0x1ee))[a2_0x59239f(0x238)]('--behavior\x20[name]',a2_0x59239f(0x190))['option'](a2_0x59239f(0x17f),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')['option'](a2_0x59239f(0x2f2),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x59239f(0x1a5)](async(_0x44f418,_0x55f056)=>{const _0x57fd7e=a2_0x59239f,_0x3957ee=new ParentSegmentValidateCommand(),_0x5182c7=program[_0x57fd7e(0x33a)](),_0x6efacf=await createTDXInstance(_0x5182c7),_0x1cf1d3=await _0x3957ee[_0x57fd7e(0x263)]({'options':{..._0x5182c7,..._0x55f056},'args':_0x44f418?[_0x44f418]:[],'tdx':_0x6efacf});gracefulExit(_0x1cf1d3);}),parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x194))[a2_0x59239f(0x2cb)](a2_0x59239f(0x159))[a2_0x59239f(0x238)](a2_0x59239f(0x2cc),a2_0x59239f(0x1b0))[a2_0x59239f(0x238)](a2_0x59239f(0x1e1),a2_0x59239f(0x246))[a2_0x59239f(0x238)](a2_0x59239f(0x23a),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x59239f(0x238)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x59239f(0x238)](a2_0x59239f(0x2f2),a2_0x59239f(0x18c),a2_0x59239f(0x2a0))['action'](async(_0x3d7867,_0x13bf84)=>{const _0x3ca8b1=a2_0x59239f,_0x19f0c6=new ParentSegmentPreviewCommand(),_0x31e3f8=program[_0x3ca8b1(0x33a)](),_0x519903=await createTDXInstance(_0x31e3f8),_0x4222f5=await _0x19f0c6[_0x3ca8b1(0x263)]({'options':{..._0x31e3f8,..._0x13bf84},'args':_0x3d7867?[_0x3d7867]:[],'tdx':_0x519903});gracefulExit(_0x4222f5);}),parentSegmentCmd['command'](a2_0x59239f(0x1e4))['description'](a2_0x59239f(0x394))[a2_0x59239f(0x238)](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))['action'](async(_0x45b45e,_0xeb4735)=>{const _0x28ca20=a2_0x59239f,_0x3bb7fa=new ParentSegmentRunCommand(),_0x415341=program[_0x28ca20(0x33a)](),_0x614acc=await createTDXInstance(_0x415341),_0x1b2aef=await _0x3bb7fa['run']({'options':{..._0x415341,..._0xeb4735},'args':_0x45b45e?[_0x45b45e]:[],'tdx':_0x614acc});gracefulExit(_0x1b2aef);}),parentSegmentCmd['command']('fields\x20[name]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1a1))['option'](a2_0x59239f(0x1c9),'Output\x20as\x20JSON')[a2_0x59239f(0x238)]('--jsonl',a2_0x59239f(0x1c8))['action'](async(_0x5d1872,_0x336118)=>{const _0x40360f=a2_0x59239f,_0x422c9=new ParentSegmentFieldsCommand(),_0x363920=program[_0x40360f(0x33a)](),_0x30e6c9=await createTDXInstance(_0x363920),_0x3f2252=await _0x422c9[_0x40360f(0x263)]({'options':{..._0x363920,..._0x336118},'args':_0x5d1872?[_0x5d1872]:[],'tdx':_0x30e6c9});gracefulExit(_0x3f2252);}),parentSegmentCmd['command'](a2_0x59239f(0x281))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2a4))[a2_0x59239f(0x238)](a2_0x59239f(0x2d3),a2_0x59239f(0x3a0))[a2_0x59239f(0x238)](a2_0x59239f(0x1c9),'Output\x20as\x20JSON')[a2_0x59239f(0x238)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x59239f(0x1a5)](async(_0x3c58c0,_0x36b50f)=>{const _0x179e26=a2_0x59239f,_0x14c20e=new ParentSegmentViewCommand(),_0x1b1ced=program[_0x179e26(0x33a)](),_0x2757e2=await createTDXInstance(_0x1b1ced),_0x1af2eb=await _0x14c20e[_0x179e26(0x263)]({'options':{..._0x1b1ced,..._0x36b50f},'args':_0x3c58c0?[_0x3c58c0]:[],'tdx':_0x2757e2});gracefulExit(_0x1af2eb);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x59239f(0x2cb)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x59239f(0x238)](a2_0x59239f(0x1c9),a2_0x59239f(0x1cc))[a2_0x59239f(0x238)](a2_0x59239f(0x2bd),a2_0x59239f(0x1c8))[a2_0x59239f(0x1a5)](async(_0x51dade,_0x2602a8)=>{const _0x3c6ede=a2_0x59239f,_0x24664b=new ParentSegmentDescCommand(),_0x127feb=program[_0x3c6ede(0x33a)](),_0x36745f=await createTDXInstance(_0x127feb),_0x5966c0=await _0x24664b[_0x3c6ede(0x263)]({'options':{..._0x127feb,..._0x2602a8},'args':_0x51dade?[_0x51dade]:[],'tdx':_0x36745f});gracefulExit(_0x5966c0);}),parentSegmentCmd[a2_0x59239f(0x32e)]('sql\x20[name]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x225))[a2_0x59239f(0x238)](a2_0x59239f(0x1c9),'Output\x20as\x20JSON')[a2_0x59239f(0x238)]('--jsonl',a2_0x59239f(0x1c8))['action'](async(_0x551deb,_0x554c26)=>{const _0x4fdd79=a2_0x59239f,_0x2eb430=new ParentSegmentSQLCommand(),_0x27a10a=program[_0x4fdd79(0x33a)](),_0x33d971=await createTDXInstance(_0x27a10a),_0xe77b2b=await _0x2eb430[_0x4fdd79(0x263)]({'options':{..._0x27a10a,..._0x554c26},'args':_0x551deb?[_0x551deb]:[],'tdx':_0x33d971});gracefulExit(_0xe77b2b);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x59239f(0x2cb)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x59239f(0x238)](a2_0x59239f(0x24c),a2_0x59239f(0x301))['option'](a2_0x59239f(0x1c9),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x59239f(0x1c8))[a2_0x59239f(0x1a5)](async(_0x56ea6b,_0xd96c62)=>{const _0x30dd4f=a2_0x59239f,_0xf4a850=new ParentSegmentShowCommand(),_0x1cd86e=program[_0x30dd4f(0x33a)](),_0x73583a=await createTDXInstance(_0x1cd86e),_0x117460=await _0xf4a850[_0x30dd4f(0x263)]({'options':{..._0x1cd86e,..._0xd96c62},'args':_0x56ea6b?[_0x56ea6b]:[],'tdx':_0x73583a});gracefulExit(_0x117460);}),parentSegmentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x39b))[a2_0x59239f(0x2cb)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x59239f(0x1a5)](async(_0x577813,_0x229ddf)=>{const _0x56ccfb=a2_0x59239f,_0x3d2097=new UseCommand(),_0x3a2b48=program[_0x56ccfb(0x33a)](),_0x20f64d=_0x577813?[_0x56ccfb(0x21a),_0x577813]:[],_0x30902a=await _0x3d2097[_0x56ccfb(0x263)]({'options':{..._0x3a2b48,..._0x229ddf},'args':_0x20f64d,'tdx':null});gracefulExit(_0x30902a);}),parentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x374))[a2_0x59239f(0x2cb)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x59239f(0x32a)](a2_0x59239f(0x1ff),'Master\x20database\x20name')[a2_0x59239f(0x32a)](a2_0x59239f(0x30e),a2_0x59239f(0x282))[a2_0x59239f(0x238)](a2_0x59239f(0x393),a2_0x59239f(0x192))[a2_0x59239f(0x238)]('--schedule-type\x20<type>',a2_0x59239f(0x1da))[a2_0x59239f(0x238)](a2_0x59239f(0x157),a2_0x59239f(0x28b))[a2_0x59239f(0x238)](a2_0x59239f(0x358),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x59239f(0x238)](a2_0x59239f(0x324),a2_0x59239f(0x362))[a2_0x59239f(0x238)](a2_0x59239f(0x273),a2_0x59239f(0x224))[a2_0x59239f(0x238)](a2_0x59239f(0x329),a2_0x59239f(0x2a2))['option'](a2_0x59239f(0x2fa),'Behaviors\x20from\x20JSON\x20file')[a2_0x59239f(0x238)](a2_0x59239f(0x341),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x59239f(0x238)](a2_0x59239f(0x1fe),'Customer\x20group\x20from\x20JSON\x20file')[a2_0x59239f(0x1a5)](async(_0x5e2f4c,_0x1bedd9)=>{const _0xde17d5=a2_0x59239f,_0x456d90=new ParentSegmentCreateCommand(),_0x4175b9=program['opts'](),_0x532fee=await createTDXInstance(_0x4175b9),_0x17c647=await _0x456d90[_0xde17d5(0x263)]({'options':{..._0x4175b9,..._0x1bedd9},'args':[_0x5e2f4c],'tdx':_0x532fee});gracefulExit(_0x17c647);}),parentCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1c6))[a2_0x59239f(0x2cb)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x59239f(0x238)](a2_0x59239f(0x393),'Updated\x20description')[a2_0x59239f(0x238)](a2_0x59239f(0x337),a2_0x59239f(0x161))[a2_0x59239f(0x238)](a2_0x59239f(0x157),a2_0x59239f(0x2c6))[a2_0x59239f(0x238)]('--timezone\x20<tz>',a2_0x59239f(0x1ca))[a2_0x59239f(0x238)](a2_0x59239f(0x1e6),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x59239f(0x187),a2_0x59239f(0x154))[a2_0x59239f(0x238)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x59239f(0x238)]('--add-behaviors-file\x20<file>',a2_0x59239f(0x373))['action'](async(_0x570d54,_0x51ac43)=>{const _0x1e9679=a2_0x59239f,_0x5f51e3=new ParentSegmentUpdateCommand(),_0x132a5b=program[_0x1e9679(0x33a)](),_0x1264c7=await createTDXInstance(_0x132a5b),_0x29aa08=await _0x5f51e3[_0x1e9679(0x263)]({'options':{..._0x132a5b,..._0x51ac43},'args':[_0x570d54],'tdx':_0x1264c7});gracefulExit(_0x29aa08);}),folderCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1e5))[a2_0x59239f(0x2cb)](a2_0x59239f(0x150))[a2_0x59239f(0x238)]('--description\x20<text>',a2_0x59239f(0x1f9))[a2_0x59239f(0x238)](a2_0x59239f(0x233),a2_0x59239f(0x22b))['action'](async(_0x4d0501,_0x24d7fd,_0x3e342d)=>{const _0x5b47d6=a2_0x59239f,_0x3be8d9=new SegmentFolderCreateCommand(),_0x3ee899=program[_0x5b47d6(0x33a)](),_0x9c362d=await createTDXInstance(_0x3ee899),_0x76ecee=await _0x3be8d9['run']({'options':{..._0x3ee899,..._0x3e342d},'args':[_0x4d0501,_0x24d7fd],'tdx':_0x9c362d});gracefulExit(_0x76ecee);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x27d))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1d0))[a2_0x59239f(0x1a5)](async(_0x5da444,_0x32aa43)=>{const _0x31294b=a2_0x59239f,_0x154a0b=new ActivationsCommand(),_0x42bf98=program[_0x31294b(0x33a)](),_0x3e2788=await createTDXInstance(_0x42bf98),_0x4fd681=await _0x154a0b[_0x31294b(0x263)]({'options':{..._0x42bf98,..._0x32aa43},'args':[_0x5da444],'tdx':_0x3e2788});gracefulExit(_0x4fd681);});const workflowCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x2d0))['alias']('wf')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2c1)),wfProjectCmd=workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2c3))[a2_0x59239f(0x2cb)](a2_0x59239f(0x3a2)),wfProjectListAction=async(_0x5a5e34,_0x176634)=>{const _0x59db92=a2_0x59239f,_0x2b2972=new WorkflowProjectsCommand(),_0x451782=program[_0x59db92(0x33a)](),_0x4c6e14=await createTDXInstance(_0x451782),_0x5d171b=await _0x2b2972[_0x59db92(0x263)]({'options':{..._0x451782,..._0x176634},'args':_0x5a5e34?[_0x5a5e34]:[],'tdx':_0x4c6e14});gracefulExit(_0x5d171b);};wfProjectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1c1))[a2_0x59239f(0x1a5)](wfProjectListAction),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2b6))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2dd))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x45c26c,_0x4c5d90)=>{const _0x27d443=a2_0x59239f,_0x4cf6e6=new WorkflowWorkflowsCommand(),_0x397242=program[_0x27d443(0x33a)](),_0x4bd743=await createTDXInstance(_0x397242),_0x3be53a=await _0x4cf6e6['run']({'options':{..._0x397242,..._0x4c5d90},'args':_0x45c26c?[_0x45c26c]:[],'tdx':_0x4bd743});gracefulExit(_0x3be53a);};workflowCmd[a2_0x59239f(0x32e)]('workflows\x20[project]')[a2_0x59239f(0x2cb)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x59239f(0x1a5)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x254))[a2_0x59239f(0x2cb)](a2_0x59239f(0x26e)),wfSessionListAction=async(_0x511d9c,_0x4bb6d2)=>{const _0x1ad1b4=a2_0x59239f,_0x266a72=new WorkflowSessionsCommand(),_0x28c784=program[_0x1ad1b4(0x33a)](),_0x5af4a6=await createTDXInstance(_0x28c784),_0x4a23a7=await _0x266a72[_0x1ad1b4(0x263)]({'options':{..._0x28c784,..._0x4bb6d2},'args':_0x511d9c?[_0x511d9c]:[],'tdx':_0x5af4a6});gracefulExit(_0x4a23a7);};wfSessionCmd['command']('list\x20[project]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x317))[a2_0x59239f(0x238)](a2_0x59239f(0x29c),a2_0x59239f(0x1e0))['option']('--from\x20<timestamp>',a2_0x59239f(0x2e0))[a2_0x59239f(0x238)](a2_0x59239f(0x181),a2_0x59239f(0x1d1))[a2_0x59239f(0x1a5)](wfSessionListAction),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x308))[a2_0x59239f(0x2cb)](a2_0x59239f(0x16e))['option']('--status\x20<status>',a2_0x59239f(0x1e0))[a2_0x59239f(0x238)](a2_0x59239f(0x2c4),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x59239f(0x238)](a2_0x59239f(0x181),a2_0x59239f(0x1d1))[a2_0x59239f(0x1a5)](wfSessionListAction);const wfAttemptListAction=async(_0x1da0c0,_0x42ff69)=>{const _0x26a8f5=a2_0x59239f,_0x31ba85=new WorkflowAttemptsCommand(),_0x22a0e9=program[_0x26a8f5(0x33a)](),_0x1866d9=await createTDXInstance(_0x22a0e9),_0x4f62bf=await _0x31ba85[_0x26a8f5(0x263)]({'options':{..._0x22a0e9,..._0x42ff69},'args':_0x1da0c0?[_0x1da0c0]:[],'tdx':_0x1866d9});gracefulExit(_0x4f62bf);},attemptCmd=workflowCmd['command'](a2_0x59239f(0x310))[a2_0x59239f(0x2cb)]('Workflow\x20attempt\x20management')['argument'](a2_0x59239f(0x193),a2_0x59239f(0x2df))[a2_0x59239f(0x19a)](a2_0x59239f(0x245),a2_0x59239f(0x210))[a2_0x59239f(0x19a)](a2_0x59239f(0x34b),a2_0x59239f(0x25e))[a2_0x59239f(0x238)]('--include-subtasks',a2_0x59239f(0x199))[a2_0x59239f(0x238)](a2_0x59239f(0x334),a2_0x59239f(0x360))[a2_0x59239f(0x238)](a2_0x59239f(0x17c),a2_0x59239f(0x146))[a2_0x59239f(0x238)](a2_0x59239f(0x1d8),a2_0x59239f(0x21d))[a2_0x59239f(0x238)](a2_0x59239f(0x250),a2_0x59239f(0x35c))[a2_0x59239f(0x238)](a2_0x59239f(0x1d9),a2_0x59239f(0x390))[a2_0x59239f(0x1a5)](async(_0x2497ab,_0x3d4c33,_0x3ccc33,_0x491e40)=>{const _0x5d602e=a2_0x59239f;if(_0x2497ab===_0x5d602e(0x280)){await wfAttemptListAction(_0x3d4c33,_0x491e40);return;}if(!_0x2497ab){attemptCmd['help']();return;}const _0x2785f0=program[_0x5d602e(0x33a)](),_0x4fd525=await createTDXInstance(_0x2785f0);let _0x331563=0x0;if(!_0x3d4c33){const _0x40bdfe=new WorkflowAttemptCommand();_0x331563=await _0x40bdfe[_0x5d602e(0x263)]({'options':{..._0x2785f0,..._0x491e40},'args':[_0x2497ab],'tdx':_0x4fd525});}else{if(_0x3d4c33===_0x5d602e(0x223)){const _0x2295c0=new WorkflowLogsCommand();_0x331563=await _0x2295c0[_0x5d602e(0x263)]({'options':{..._0x2785f0,..._0x491e40},'args':_0x3ccc33?[_0x2497ab,_0x3ccc33]:[_0x2497ab],'tdx':_0x4fd525});}else{if(_0x3d4c33===_0x5d602e(0x14c)){const _0x2db1b2=new WorkflowTasksCommand();_0x331563=await _0x2db1b2['run']({'options':{..._0x2785f0,..._0x491e40},'args':[_0x2497ab],'tdx':_0x4fd525});}else{if(_0x3d4c33===_0x5d602e(0x24b)){const _0x399185=new WorkflowKillCommand();_0x331563=await _0x399185[_0x5d602e(0x263)]({'options':{..._0x2785f0,..._0x491e40},'args':[_0x2497ab],'tdx':_0x4fd525});}else{if(_0x3d4c33===_0x5d602e(0x346)){const _0x513151=new WorkflowRetryCommand();_0x331563=await _0x513151[_0x5d602e(0x263)]({'options':{..._0x2785f0,..._0x491e40},'args':[_0x5d602e(0x1a0)+_0x2497ab],'tdx':_0x4fd525});}else console[_0x5d602e(0x28f)](_0x5d602e(0x1f2)+_0x3d4c33),console[_0x5d602e(0x28f)](_0x5d602e(0x36f)),_0x331563=0x1;}}}}gracefulExit(_0x331563);});attemptCmd[a2_0x59239f(0x32e)]('list\x20[project]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1b3))[a2_0x59239f(0x238)](a2_0x59239f(0x1d9),a2_0x59239f(0x2bf))[a2_0x59239f(0x1a5)](wfAttemptListAction),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x209))[a2_0x59239f(0x2cb)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option'](a2_0x59239f(0x1d9),a2_0x59239f(0x2bf))[a2_0x59239f(0x1a5)](wfAttemptListAction),workflowCmd['command'](a2_0x59239f(0x15b))['description']('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')[a2_0x59239f(0x238)](a2_0x59239f(0x32d),a2_0x59239f(0x264))[a2_0x59239f(0x238)](a2_0x59239f(0x326),a2_0x59239f(0x16d))[a2_0x59239f(0x238)](a2_0x59239f(0x2c5),'Show\x20timeline\x20for\x20specific\x20attempt')['action'](async(_0x713581,_0x2fae6)=>{const _0x42379a=a2_0x59239f,_0x11f2b7=new WorkflowTimelineCommand(),_0x1f77fc=program[_0x42379a(0x33a)](),_0x4154ff=await createTDXInstance(_0x1f77fc),_0x511dae=await _0x11f2b7['run']({'options':{..._0x1f77fc,..._0x2fae6},'args':_0x713581?[_0x713581]:[],'tdx':_0x4154ff});gracefulExit(_0x511dae);}),workflowCmd['command'](a2_0x59239f(0x37e))['description'](a2_0x59239f(0x2b8))[a2_0x59239f(0x238)](a2_0x59239f(0x33e),a2_0x59239f(0x322))[a2_0x59239f(0x238)](a2_0x59239f(0x1d8),a2_0x59239f(0x1ae))[a2_0x59239f(0x1a5)](async(_0x1a8609,_0x203922)=>{const _0x7fad0c=a2_0x59239f,_0x411f58=new WorkflowRetryCommand(),_0x1ee417=program[_0x7fad0c(0x33a)](),_0x9cf0f=await createTDXInstance(_0x1ee417),_0x4537d6=await _0x411f58[_0x7fad0c(0x263)]({'options':{..._0x1ee417,..._0x203922},'args':[_0x1a8609],'tdx':_0x9cf0f});gracefulExit(_0x4537d6);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1eb))[a2_0x59239f(0x2cb)](a2_0x59239f(0x166))[a2_0x59239f(0x238)](a2_0x59239f(0x14f),a2_0x59239f(0x2b3),(_0xbbc9a3,_0x1117e5=[])=>[..._0x1117e5,_0xbbc9a3],[])[a2_0x59239f(0x238)](a2_0x59239f(0x23b),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x59239f(0x1a5)](async(_0x39fefb,_0x30938b)=>{const _0x4eac81=new WorkflowRunCommand(),_0x488fc9=program['opts'](),_0x3a6e1a=await createTDXInstance(_0x488fc9),_0x26d2f8=await _0x4eac81['run']({'options':{..._0x488fc9,..._0x30938b},'args':_0x39fefb?[_0x39fefb]:[],'tdx':_0x3a6e1a});gracefulExit(_0x26d2f8);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2ce))[a2_0x59239f(0x2cb)](a2_0x59239f(0x189))[a2_0x59239f(0x238)](a2_0x59239f(0x230),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x59239f(0x1a5)](async(_0x3fda12,_0x545c8d,_0x2f39e2)=>{const _0x28b80e=a2_0x59239f,_0x53247f=new WorkflowDownloadCommand(),_0x3c821d=program[_0x28b80e(0x33a)](),_0xa83e14=await createTDXInstance(_0x3c821d),_0xf41b39=await _0x53247f[_0x28b80e(0x263)]({'options':{..._0x3c821d,..._0x2f39e2},'args':[_0x3fda12,_0x545c8d||'.'],'tdx':_0xa83e14});gracefulExit(_0xf41b39);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2c0))['option'](a2_0x59239f(0x230),a2_0x59239f(0x2c9))[a2_0x59239f(0x238)]('--dry-run',a2_0x59239f(0x226))['option'](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x1aa174,_0x1b496f,_0x4a1727)=>{const _0x35ba91=a2_0x59239f,_0x3df60f=new WorkflowPullCommand(),_0x5c8a2e=program[_0x35ba91(0x33a)](),_0xf60af3=await createTDXInstance(_0x5c8a2e),_0x1cf82b=await _0x3df60f[_0x35ba91(0x263)]({'options':{..._0x5c8a2e,..._0x4a1727},'args':_0x1b496f?[_0x1aa174,_0x1b496f]:[_0x1aa174],'tdx':_0xf60af3});gracefulExit(_0x1cf82b);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x171))[a2_0x59239f(0x2cb)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x59239f(0x238)](a2_0x59239f(0x230),a2_0x59239f(0x16a))[a2_0x59239f(0x238)]('--dry-run',a2_0x59239f(0x167))['option'](a2_0x59239f(0x31a),a2_0x59239f(0x279))['option'](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x47257c,_0x1e44d2)=>{const _0xe644e1=a2_0x59239f,_0x2deee9=new WorkflowPushCommand(),_0x4c3e06=program[_0xe644e1(0x33a)](),_0x1514b8=await createTDXInstance(_0x4c3e06),_0x501778=await _0x2deee9[_0xe644e1(0x263)]({'options':{..._0x4c3e06,..._0x1e44d2},'args':_0x47257c?[_0x47257c]:[],'tdx':_0x1514b8});gracefulExit(_0x501778);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2bb))['description'](a2_0x59239f(0x32c))['option'](a2_0x59239f(0x191),a2_0x59239f(0x25d))[a2_0x59239f(0x238)](a2_0x59239f(0x230),a2_0x59239f(0x2d7))[a2_0x59239f(0x238)](a2_0x59239f(0x31a),a2_0x59239f(0x279))[a2_0x59239f(0x1a5)](async(_0x3519d4,_0x355c93)=>{const _0x9b33ea=a2_0x59239f,_0x7cdd31=new WorkflowUploadCommand(),_0x2af011=program[_0x9b33ea(0x33a)](),_0x1ef2c9=await createTDXInstance(_0x2af011),_0x4738f6=await _0x7cdd31[_0x9b33ea(0x263)]({'options':{..._0x2af011,..._0x355c93},'args':_0x3519d4?[_0x3519d4]:[],'tdx':_0x1ef2c9});gracefulExit(_0x4738f6);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x179))[a2_0x59239f(0x2cb)](a2_0x59239f(0x311))[a2_0x59239f(0x238)]('--name\x20<name>','Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x59239f(0x238)](a2_0x59239f(0x230),a2_0x59239f(0x16a))[a2_0x59239f(0x238)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x59239f(0x238)](a2_0x59239f(0x31a),a2_0x59239f(0x279))[a2_0x59239f(0x238)]('-y,\x20--yes',a2_0x59239f(0x2a3))['action'](async(_0x3976eb,_0x3a2634)=>{const _0x8eb219=a2_0x59239f,_0x3a675a=new WorkflowCloneCommand(),_0x4b266c=program[_0x8eb219(0x33a)](),_0x147d82=await createTDXInstance(_0x4b266c),_0x196c49=await _0x3a675a['run']({'options':{..._0x4b266c,..._0x3a2634},'args':_0x3976eb?[_0x3976eb]:[],'tdx':_0x147d82});gracefulExit(_0x196c49);}),workflowCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x20f))[a2_0x59239f(0x2cb)](a2_0x59239f(0x16b))[a2_0x59239f(0x1a5)](async(_0x44a561,_0xdfb231)=>{const _0x5223c5=a2_0x59239f,_0x39326a=new WorkflowDeleteCommand(),_0x4d73f3=program[_0x5223c5(0x33a)](),_0xb4c1b2=await createTDXInstance(_0x4d73f3),_0x223a9d=await _0x39326a[_0x5223c5(0x263)]({'options':{..._0x4d73f3,..._0xdfb231},'args':[_0x44a561],'tdx':_0xb4c1b2});gracefulExit(_0x223a9d);}),workflowCmd['command']('use\x20[project]')[a2_0x59239f(0x2cb)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x59239f(0x238)](a2_0x59239f(0x35d),a2_0x59239f(0x29f))[a2_0x59239f(0x1a5)](async(_0x123008,_0x3924a2)=>{const _0x46f8ab=a2_0x59239f,_0x4148a3=new WorkflowUseCommand(),_0x451cc7=program[_0x46f8ab(0x33a)](),_0x4dce8c=await createTDXInstance(_0x451cc7),_0x52be1b=await _0x4148a3[_0x46f8ab(0x263)]({'options':{..._0x451cc7,..._0x3924a2},'args':_0x123008?[_0x123008]:[],'tdx':_0x4dce8c});gracefulExit(_0x52be1b);});const wfSecretsCmd=workflowCmd['command'](a2_0x59239f(0x164))['description'](a2_0x59239f(0x2fc));wfSecretsCmd['command']('list\x20[project]')['description']('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x59239f(0x1a5)](async(_0x48f86d,_0x5c9bf9)=>{const _0xd686b9=a2_0x59239f,_0xbee3ae=new WorkflowSecretsListCommand(),_0x523cdc=program[_0xd686b9(0x33a)](),_0x40a55d=await createTDXInstance(_0x523cdc),_0x3312d7=await _0xbee3ae['run']({'options':{..._0x523cdc,..._0x5c9bf9},'args':_0x48f86d?[_0x48f86d]:[],'tdx':_0x40a55d});gracefulExit(_0x3312d7);}),wfSecretsCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x33d))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1e7))[a2_0x59239f(0x1a5)](async(_0x28f344,_0x428642)=>{const _0x12a91e=a2_0x59239f,_0x5cc9ee=new WorkflowSecretsSetCommand(),_0x48d1db=program[_0x12a91e(0x33a)](),_0x51f0a2=await createTDXInstance(_0x48d1db),_0x21c974=await _0x5cc9ee['run']({'options':{..._0x48d1db,..._0x428642},'args':_0x28f344,'tdx':_0x51f0a2});gracefulExit(_0x21c974);}),wfSecretsCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x29b))[a2_0x59239f(0x2cb)](a2_0x59239f(0x144))['option'](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](async(_0x4df321,_0x331e8f)=>{const _0x21e651=a2_0x59239f,_0x1c8007=new WorkflowSecretsDeleteCommand(),_0x283953=program[_0x21e651(0x33a)](),_0x21471c=await createTDXInstance(_0x283953),_0x215f32=await _0x1c8007['run']({'options':{..._0x283953,..._0x331e8f},'args':_0x4df321,'tdx':_0x21471c});gracefulExit(_0x215f32);});const jobCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x2f1))[a2_0x59239f(0x2cb)](a2_0x59239f(0x300)),jobListAction=async _0x26ee2c=>{const _0x20e7a2=a2_0x59239f,_0x37e760=new JobListCommand(),_0x18e5b8=program[_0x20e7a2(0x33a)](),_0x290ffe=await createTDXInstance(_0x18e5b8),_0x5ad421=await _0x37e760[_0x20e7a2(0x263)]({'options':{..._0x18e5b8,..._0x26ee2c},'args':[],'tdx':_0x290ffe});gracefulExit(_0x5ad421);};jobCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x280))[a2_0x59239f(0x2cb)](a2_0x59239f(0x303))[a2_0x59239f(0x238)](a2_0x59239f(0x29c),a2_0x59239f(0x1c5))[a2_0x59239f(0x1a5)](jobListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x18d),{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x1c0))[a2_0x59239f(0x238)](a2_0x59239f(0x29c),a2_0x59239f(0x1c5))[a2_0x59239f(0x1a5)](jobListAction),jobCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x275))[a2_0x59239f(0x2cb)]('Show\x20job\x20details')[a2_0x59239f(0x1a5)](async(_0x356cbb,_0x15d2cd)=>{const _0x4b9de3=new JobShowCommand(),_0x175999=program['opts'](),_0x465f96=await createTDXInstance(_0x175999),_0x5c422e=await _0x4b9de3['run']({'options':{..._0x175999,..._0x15d2cd},'args':[_0x356cbb],'tdx':_0x465f96});gracefulExit(_0x5c422e);}),jobCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x25c))[a2_0x59239f(0x2cb)](a2_0x59239f(0x261))[a2_0x59239f(0x1a5)](async(_0x4a462f,_0x5e368d)=>{const _0x3e3d53=a2_0x59239f,_0x121ccc=new JobKillCommand(),_0x458c39=program[_0x3e3d53(0x33a)](),_0x292da5=await createTDXInstance(_0x458c39),_0x11f373=await _0x121ccc[_0x3e3d53(0x263)]({'options':{..._0x458c39,..._0x5e368d},'args':[_0x4a462f],'tdx':_0x292da5});gracefulExit(_0x11f373);}),jobCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1cb))[a2_0x59239f(0x2cb)](a2_0x59239f(0x35b))['option'](a2_0x59239f(0x234),a2_0x59239f(0x19c),a2_0x59239f(0x178))[a2_0x59239f(0x238)](a2_0x59239f(0x188),a2_0x59239f(0x15e))['option'](a2_0x59239f(0x1ed),a2_0x59239f(0x2fe),a2_0x59239f(0x29a))[a2_0x59239f(0x1a5)](async(_0x49dc77,_0x2cab46)=>{const _0x480906=a2_0x59239f,_0x28894c=new JobSubmitCommand(),_0x4272da=program[_0x480906(0x33a)](),_0x5efc51=await createTDXInstance(_0x4272da),_0xe25c7=await _0x28894c[_0x480906(0x263)]({'options':{..._0x4272da,..._0x2cab46},'args':_0x49dc77?[_0x49dc77]:[],'tdx':_0x5efc51});gracefulExit(_0xe25c7);}),jobCmd['command']('result\x20<job-id>')[a2_0x59239f(0x2cb)]('Get\x20job\x20results')[a2_0x59239f(0x1a5)](async(_0x275c11,_0x10f807)=>{const _0x5fc3cf=a2_0x59239f,_0x1863d0=new JobResultCommand(),_0x59c804=program[_0x5fc3cf(0x33a)](),_0x1eac11=await createTDXInstance(_0x59c804),_0x385c48=await _0x1863d0[_0x5fc3cf(0x263)]({'options':{..._0x59c804,..._0x10f807},'args':[_0x275c11],'tdx':_0x1eac11});gracefulExit(_0x385c48);});const llmCmd=program[a2_0x59239f(0x32e)]('llm')[a2_0x59239f(0x2cb)](a2_0x59239f(0x27c));llmCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x26a))[a2_0x59239f(0x2cb)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')['action'](async(_0x1f3e9c,_0x18c5f0)=>{const _0x380288=a2_0x59239f,_0x331697=new LLMUseCommand(),_0xc33f4d=program[_0x380288(0x33a)](),_0x2c415b=await createTDXInstance(_0xc33f4d),_0xb09576=await _0x331697[_0x380288(0x263)]({'options':{..._0xc33f4d,..._0x18c5f0},'args':[_0x1f3e9c],'tdx':_0x2c415b});gracefulExit(_0xb09576);}),llmCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1bc))[a2_0x59239f(0x2cb)]('List\x20available\x20LLM\x20models')[a2_0x59239f(0x1a5)](async _0x35f9bf=>{const _0x27bc89=a2_0x59239f,_0x443c71=new LLMModelsCommand(),_0x3f6d28=program[_0x27bc89(0x33a)](),_0x517621=await createTDXInstance(_0x3f6d28),_0x3ce4a8=await _0x443c71[_0x27bc89(0x263)]({'options':{..._0x3f6d28,..._0x35f9bf},'args':[],'tdx':_0x517621});gracefulExit(_0x3ce4a8);});const projectCmd=llmCmd['command']('project')[a2_0x59239f(0x2cb)](a2_0x59239f(0x38a)),llmProjectListAction=async(_0x5b934f,_0x3c0144)=>{const _0x43356c=a2_0x59239f,_0x4f2a66=new LLMProjectsCommand(),_0x59541a=program[_0x43356c(0x33a)](),_0xd240f=await createTDXInstance(_0x59541a),_0x374083=await _0x4f2a66[_0x43356c(0x263)]({'options':{..._0x59541a,..._0x3c0144},'args':_0x5b934f?[_0x5b934f]:[],'tdx':_0xd240f});gracefulExit(_0x374083);};projectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2d6))['action'](llmProjectListAction),llmCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2b6))['description'](a2_0x59239f(0x174))[a2_0x59239f(0x1a5)](llmProjectListAction),projectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x374))['description'](a2_0x59239f(0x222))[a2_0x59239f(0x238)](a2_0x59239f(0x393),a2_0x59239f(0x19d))[a2_0x59239f(0x1a5)](async(_0x3e31e8,_0x32bb0b)=>{const _0x18d126=a2_0x59239f,_0x323378=new LLMProjectCreateCommand(),_0x5371d5=program[_0x18d126(0x33a)](),_0xcdbb04=await createTDXInstance(_0x5371d5),_0x184471=await _0x323378[_0x18d126(0x263)]({'options':{..._0x5371d5,..._0x32bb0b},'args':[_0x3e31e8],'tdx':_0xcdbb04});gracefulExit(_0x184471);}),projectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x17b))[a2_0x59239f(0x2cb)](a2_0x59239f(0x294))[a2_0x59239f(0x1a5)](async(_0x45d893,_0x378ebe)=>{const _0x15968e=a2_0x59239f,_0x247cc3=new LLMProjectDeleteCommand(),_0x49680f=program[_0x15968e(0x33a)](),_0x487a7d=await createTDXInstance(_0x49680f),_0x54d835=await _0x247cc3[_0x15968e(0x263)]({'options':{..._0x49680f,..._0x378ebe},'args':[_0x45d893],'tdx':_0x487a7d});gracefulExit(_0x54d835);}),projectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x39a))['description'](a2_0x59239f(0x1d4))[a2_0x59239f(0x238)](a2_0x59239f(0x183),a2_0x59239f(0x221))[a2_0x59239f(0x238)](a2_0x59239f(0x2c7),a2_0x59239f(0x2ab))[a2_0x59239f(0x1a5)](async(_0x864f72,_0x391415)=>{const _0x16e2a7=a2_0x59239f,_0x453c08=new LLMProjectBackupCommand(),_0x5696bf=program[_0x16e2a7(0x33a)](),_0x3c4e18=await createTDXInstance(_0x5696bf),_0x491605=await _0x453c08[_0x16e2a7(0x263)]({'options':{..._0x5696bf,..._0x391415},'args':[_0x864f72],'tdx':_0x3c4e18});gracefulExit(_0x491605);}),projectCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x156))['description'](a2_0x59239f(0x1be))[a2_0x59239f(0x238)](a2_0x59239f(0x1fb),a2_0x59239f(0x1b4))['option']('--dry-run','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')['action'](async(_0x569a76,_0x66ef2c)=>{const _0x46b6c3=a2_0x59239f,_0x11916e=new LLMProjectRestoreCommand(),_0x46e535=program[_0x46b6c3(0x33a)](),_0x3df112=await createTDXInstance(_0x46e535),_0x262e3f=await _0x11916e[_0x46b6c3(0x263)]({'options':{..._0x46e535,..._0x66ef2c},'args':[_0x569a76],'tdx':_0x3df112});gracefulExit(_0x262e3f);});const llmAgentListAction=async(_0x132696,_0x47f44a)=>{const _0x47ad9c=a2_0x59239f,_0x53422f=new LLMAgentsCommand(),_0x1ff0ae=program[_0x47ad9c(0x33a)](),_0x46146d=await createTDXInstance(_0x1ff0ae),_0xc23eeb=await _0x53422f[_0x47ad9c(0x263)]({'options':{..._0x1ff0ae,..._0x47f44a},'args':_0x132696?[_0x132696]:[],'tdx':_0x46146d});gracefulExit(_0xc23eeb);};llmCmd[a2_0x59239f(0x32e)]('agents\x20[pattern]')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1f4))['action'](llmAgentListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x26c))[a2_0x59239f(0x2cb)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['action'](llmAgentListAction),llmCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x142))['description'](a2_0x59239f(0x284))[a2_0x59239f(0x238)]('--last',a2_0x59239f(0x24f))['action'](async(_0x3ea89b,_0x25a2ea)=>{const _0x5170fc=a2_0x59239f,_0x22072d=new LLMHistoryCommand(),_0x51a659=program[_0x5170fc(0x33a)](),_0x177725=await createTDXInstance(_0x51a659),_0x1ea4cb=await _0x22072d[_0x5170fc(0x263)]({'options':{..._0x51a659,..._0x25a2ea},'args':_0x3ea89b?[_0x3ea89b]:[],'tdx':_0x177725});gracefulExit(_0x1ea4cb);}),llmCmd[a2_0x59239f(0x32e)]('proxy')[a2_0x59239f(0x2cb)](a2_0x59239f(0x339))[a2_0x59239f(0x238)](a2_0x59239f(0x252),a2_0x59239f(0x36b),a2_0x59239f(0x215))[a2_0x59239f(0x238)](a2_0x59239f(0x1d3),a2_0x59239f(0x30b))[a2_0x59239f(0x238)](a2_0x59239f(0x162),a2_0x59239f(0x290))['action'](async _0x5afb72=>{const _0x31339a=a2_0x59239f,_0xf44e86=new LLMProxyCommand(),_0x1ee553=program[_0x31339a(0x33a)](),_0x3b07f3=await createTDXInstance(_0x1ee553),_0x3ff905={..._0x5afb72,'port':_0x5afb72['port']?parseInt(_0x5afb72[_0x31339a(0x34a)],0xa):undefined},_0x598436=await _0xf44e86['run']({'options':{..._0x1ee553,..._0x3ff905},'args':[],'tdx':_0x3b07f3});gracefulExit(_0x598436);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x26b))[a2_0x59239f(0x2ac)]('[options]\x20--\x20[claude-code-args...]')[a2_0x59239f(0x2cb)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x59239f(0x238)](a2_0x59239f(0x151),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x59239f(0x2a8))[a2_0x59239f(0x238)]('-c,\x20--continue',a2_0x59239f(0x398))[a2_0x59239f(0x238)]('-r,\x20--resume',a2_0x59239f(0x31c))[a2_0x59239f(0x238)](a2_0x59239f(0x1b6),a2_0x59239f(0x357))[a2_0x59239f(0x238)](a2_0x59239f(0x2b7),a2_0x59239f(0x37b))[a2_0x59239f(0x18a)]()['allowExcessArguments'](!![])[a2_0x59239f(0x292)](a2_0x59239f(0x19e),a2_0x59239f(0x197))['action'](async(_0x5823e7,_0x3fba20)=>{const _0x58abe1=a2_0x59239f,_0x496181=program[_0x58abe1(0x33a)](),_0x21e996=Array[_0x58abe1(0x312)](_0x5823e7)?_0x5823e7:[];if(_0x21e996[0x0]===_0x58abe1(0x2ee)){const _0x800d5=new ClaudeStatuslineCommand(),_0x30e6e2=await _0x800d5[_0x58abe1(0x263)]({'options':{..._0x496181,..._0x3fba20},'args':_0x21e996[_0x58abe1(0x1ad)](0x1),'tdx':null});gracefulExit(_0x30e6e2);}if(_0x21e996[0x0]===_0x58abe1(0x2ac)){const _0x556ac6=new ClaudeUsageCommand(),_0xa8b2ac=await _0x556ac6[_0x58abe1(0x263)]({'options':{..._0x496181,..._0x3fba20},'args':_0x21e996[_0x58abe1(0x1ad)](0x1),'tdx':null});gracefulExit(_0xa8b2ac);}const _0x1e6640=new ClaudeCommand(),_0x1446e7=await createTDXInstance(_0x496181),_0x383bd0=await _0x1e6640[_0x58abe1(0x263)]({'options':{..._0x496181,..._0x3fba20},'args':_0x21e996,'tdx':_0x1446e7});gracefulExit(_0x383bd0);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x316))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1ce))['option'](a2_0x59239f(0x35d),a2_0x59239f(0x1a2))['option'](a2_0x59239f(0x1e8),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x518a45,_0x46755a,_0x569ae1)=>{const _0x45ad0e=a2_0x59239f,_0x20b9ad=new UseCommand(),_0x267c08=program['opts'](),_0x57bf24=[];if(_0x518a45)_0x57bf24[_0x45ad0e(0x2fb)](_0x518a45);if(_0x46755a)_0x57bf24[_0x45ad0e(0x2fb)](_0x46755a);const _0x5eafee=await _0x20b9ad[_0x45ad0e(0x263)]({'options':{..._0x267c08,..._0x569ae1},'args':_0x57bf24,'tdx':null});gracefulExit(_0x5eafee);}),program[a2_0x59239f(0x32e)]('status')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1b5))['action'](async _0x2e6152=>{const _0x19cc3b=a2_0x59239f,_0x307a34=new StatusCommand(),_0x18895a=program[_0x19cc3b(0x33a)](),_0x102e73=await createTDXInstance(_0x18895a),_0x13cc4a=await _0x307a34[_0x19cc3b(0x263)]({'options':{..._0x18895a,..._0x2e6152},'args':[],'tdx':_0x102e73});gracefulExit(_0x13cc4a);}),program[a2_0x59239f(0x32e)](a2_0x59239f(0x345))['description'](a2_0x59239f(0x3a4))['option']('--default',a2_0x59239f(0x313))[a2_0x59239f(0x1a5)](async(_0x330d9b,_0x5591fb)=>{const _0x325f66=new UnsetCommand(),_0x34611a=program['opts'](),_0x50d58a=await _0x325f66['run']({'options':{..._0x34611a,..._0x5591fb},'args':[_0x330d9b],'tdx':null});gracefulExit(_0x50d58a);}),program[a2_0x59239f(0x32e)]('chats')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2ad))[a2_0x59239f(0x238)](a2_0x59239f(0x22c),a2_0x59239f(0x22e))[a2_0x59239f(0x1a5)](async _0xfa16d3=>{const _0x4d8fcc=a2_0x59239f,_0x120926=new ChatsCommand(),_0x545357=program[_0x4d8fcc(0x33a)](),_0x16c33d=await createTDXInstance(_0x545357),_0x4daf0d=await _0x120926[_0x4d8fcc(0x263)]({'options':{..._0x545357,..._0xfa16d3},'args':[],'tdx':_0x16c33d});gracefulExit(_0x4daf0d);});const authCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x143))[a2_0x59239f(0x2cb)]('Authentication\x20management');async function runAuthStatusCommand(_0x4b2f55){const _0x44f4a4=a2_0x59239f,_0x26cbc4=new AuthStatusCommand(),_0x28f162=program[_0x44f4a4(0x33a)](),_0x35f1f6=await createTDXInstance(_0x28f162),_0x49f523=await _0x26cbc4[_0x44f4a4(0x263)]({'options':{..._0x28f162,..._0x4b2f55},'args':[],'tdx':_0x35f1f6});gracefulExit(_0x49f523);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x59239f(0x32e)]('status')[a2_0x59239f(0x2cb)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x59239f(0x1a5)](runAuthStatusCommand),authCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x18b))[a2_0x59239f(0x2cb)]('Setup\x20API\x20key\x20authentication\x20interactively')['addHelpText'](a2_0x59239f(0x19e),a2_0x59239f(0x24d))['action'](async _0x17472e=>{const _0x559cb5=new AuthSetupCommand(),_0x5851cc=program['opts'](),_0x54d760=await createTDXInstance(_0x5851cc),_0x35355d=await _0x559cb5['run']({'options':{..._0x5851cc,..._0x17472e},'args':[],'tdx':_0x54d760});gracefulExit(_0x35355d);}),authCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1d7))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1fa))['addHelpText'](a2_0x59239f(0x19e),a2_0x59239f(0x257))[a2_0x59239f(0x1a5)](async _0x3b4913=>{const _0x11da67=a2_0x59239f,_0x3ba7b7=new AuthClearCommand(),_0xfdd702=program[_0x11da67(0x33a)](),_0x3f30d4=await _0x3ba7b7[_0x11da67(0x263)]({'options':{..._0xfdd702,..._0x3b4913},'args':[],'tdx':null});gracefulExit(_0x3f30d4);});const userCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x2f3))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1ef)),userListAction=async _0x5ceaad=>{const _0x37c94a=a2_0x59239f,_0x1af793=new UserListCommand(),_0x1e306a=program['opts'](),_0x557810=await createTDXInstance(_0x1e306a),_0x5162d3=await _0x1af793[_0x37c94a(0x263)]({'options':{..._0x1e306a,..._0x5ceaad},'args':[],'tdx':_0x557810});gracefulExit(_0x5162d3);};userCmd[a2_0x59239f(0x1a5)](async _0x3a78b3=>{const _0x375488=a2_0x59239f,_0x8ba22f=new UserCommand(),_0x2aceec=program[_0x375488(0x33a)](),_0x586217=await createTDXInstance(_0x2aceec),_0x2309fb=await _0x8ba22f['run']({'options':{..._0x2aceec,..._0x3a78b3},'args':[],'tdx':_0x586217});gracefulExit(_0x2309fb);}),userCmd['command'](a2_0x59239f(0x280))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1b8))['action'](userListAction),program[a2_0x59239f(0x32e)]('users')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2cf))[a2_0x59239f(0x1a5)](userListAction),program[a2_0x59239f(0x32e)](a2_0x59239f(0x1ec))[a2_0x59239f(0x2cb)](a2_0x59239f(0x389))[a2_0x59239f(0x1a5)](async _0x2c013b=>{const _0x4c4993=a2_0x59239f,_0x5f4151=new ProfilesCommand(),_0x1c4cee=program['opts'](),_0x5740ab=await _0x5f4151[_0x4c4993(0x263)]({'options':{..._0x1c4cee,..._0x2c013b},'args':[],'tdx':null});gracefulExit(_0x5740ab);});const profileCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x219))['description'](a2_0x59239f(0x37f));profileCmd[a2_0x59239f(0x1a5)](()=>{const _0x4feafe=a2_0x59239f;profileCmd[_0x4feafe(0x2d4)]();});const profileListAction=async _0xbf632e=>{const _0x2116eb=a2_0x59239f,_0x1d4dff=new ProfilesCommand(),_0xa24c19=program[_0x2116eb(0x33a)](),_0x5c1e43=await _0x1d4dff[_0x2116eb(0x263)]({'options':{..._0xa24c19,..._0xbf632e},'args':[],'tdx':null});gracefulExit(_0x5c1e43);};profileCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x280))[a2_0x59239f(0x2cb)](a2_0x59239f(0x389))[a2_0x59239f(0x1a5)](profileListAction),profileCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2be))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1fc))['addHelpText'](a2_0x59239f(0x19e),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x50f927,_0x3a244b)=>{const _0x4a0947=a2_0x59239f,_0x3dbc46=new ProfileCreateCommand(),_0x330fb6=program[_0x4a0947(0x33a)](),_0x38cb7f=await _0x3dbc46['run']({'options':{..._0x330fb6,..._0x3a244b},'args':_0x50f927?[_0x50f927]:[],'tdx':null});gracefulExit(_0x38cb7f);}),profileCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x242))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2b2))[a2_0x59239f(0x292)](a2_0x59239f(0x19e),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x59239f(0x1a5)](async(_0x55cfb0,_0x291d5e)=>{const _0x502e5c=a2_0x59239f,_0x24bd94=new ProfileRemoveCommand(),_0x5b8e87=program[_0x502e5c(0x33a)](),_0x349911=await _0x24bd94[_0x502e5c(0x263)]({'options':{..._0x5b8e87,..._0x291d5e},'args':[_0x55cfb0],'tdx':null});gracefulExit(_0x349911);}),profileCmd['command'](a2_0x59239f(0x2b0))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1d2))['addHelpText'](a2_0x59239f(0x19e),a2_0x59239f(0x28a))[a2_0x59239f(0x1a5)](async(_0x50cf41,_0x121f0f)=>{const _0x5cbad4=a2_0x59239f,_0x37ea7f=new ProfileSetCommand(),_0x43b029=program['opts'](),_0x5d112a=await _0x37ea7f[_0x5cbad4(0x263)]({'options':{..._0x43b029,..._0x121f0f},'args':[_0x50cf41],'tdx':null});gracefulExit(_0x5d112a);}),profileCmd[a2_0x59239f(0x32e)]('use\x20<name>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2ec))[a2_0x59239f(0x238)](a2_0x59239f(0x1e8),a2_0x59239f(0x2a7))['addHelpText'](a2_0x59239f(0x19e),a2_0x59239f(0x39e))[a2_0x59239f(0x1a5)](async(_0x57c171,_0xf087de)=>{const _0x190e2e=a2_0x59239f,_0x3bd95f=new ProfileUseCommand(),_0x44e98e=program[_0x190e2e(0x33a)](),_0x4f1a0c=await _0x3bd95f[_0x190e2e(0x263)]({'options':{..._0x44e98e,..._0xf087de},'args':[_0x57c171],'tdx':null});gracefulExit(_0x4f1a0c);});const engageCmd=program['command'](a2_0x59239f(0x231))[a2_0x59239f(0x2cb)](a2_0x59239f(0x19b)),createEngageAction=_0x59bfac=>{return async(_0x19a9ba,_0x5ccc58)=>{const _0x2df69e=a2_0x955b,_0x3b366c=new _0x59bfac(),_0x38a430=program[_0x2df69e(0x33a)](),_0x7574=await createTDXInstance(_0x38a430),_0x4637ba=await _0x3b366c[_0x2df69e(0x263)]({'options':{..._0x38a430,..._0x5ccc58},'args':[_0x19a9ba],'tdx':_0x7574});gracefulExit(_0x4637ba);};},createEngageNoArgAction=_0x43b470=>{return async _0x36d6f3=>{const _0x32c353=a2_0x955b,_0x459198=new _0x43b470(),_0x4167e2=program[_0x32c353(0x33a)](),_0x251b05=await createTDXInstance(_0x4167e2),_0x55df3b=await _0x459198[_0x32c353(0x263)]({'options':{..._0x4167e2,..._0x36d6f3},'args':[],'tdx':_0x251b05});gracefulExit(_0x55df3b);};},campaignCmd=engageCmd['command'](a2_0x59239f(0x165))[a2_0x59239f(0x2cb)](a2_0x59239f(0x351)),campaignListAction=async(_0x41c636,_0x20ece3)=>{const _0x14b014=new EngageCampaignsCommand(),_0x1c238c=program['opts'](),_0x4dafe9=await createTDXInstance(_0x1c238c),_0x4a3096=await _0x14b014['run']({'options':{..._0x1c238c,..._0x20ece3},'args':_0x41c636?[_0x41c636]:[],'tdx':_0x4dafe9});gracefulExit(_0x4a3096);};campaignCmd['command'](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x158))[a2_0x59239f(0x238)](a2_0x59239f(0x35a),a2_0x59239f(0x170))[a2_0x59239f(0x238)](a2_0x59239f(0x29c),a2_0x59239f(0x2d9))[a2_0x59239f(0x238)]('--workspace\x20<name>',a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](campaignListAction),engageCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x2de))[a2_0x59239f(0x2cb)](a2_0x59239f(0x205))[a2_0x59239f(0x238)](a2_0x59239f(0x35a),a2_0x59239f(0x170))[a2_0x59239f(0x238)](a2_0x59239f(0x29c),a2_0x59239f(0x2d9))[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](campaignListAction),campaignCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x350))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2b5))[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x1df),a2_0x59239f(0x325))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x3a6))['description']('Create\x20a\x20new\x20campaign')[a2_0x59239f(0x32a)](a2_0x59239f(0x191),a2_0x59239f(0x2e1))[a2_0x59239f(0x32a)](a2_0x59239f(0x35a),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name\x20(required)')['option'](a2_0x59239f(0x354),a2_0x59239f(0x30c))[a2_0x59239f(0x238)](a2_0x59239f(0x332),a2_0x59239f(0x15a))[a2_0x59239f(0x238)](a2_0x59239f(0x365),a2_0x59239f(0x352))[a2_0x59239f(0x238)](a2_0x59239f(0x268),a2_0x59239f(0x2f4))[a2_0x59239f(0x238)](a2_0x59239f(0x214),a2_0x59239f(0x2db))['option'](a2_0x59239f(0x358),a2_0x59239f(0x38b))[a2_0x59239f(0x1a5)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x367))[a2_0x59239f(0x2cb)]('Update\x20a\x20campaign')[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x238)](a2_0x59239f(0x191),'New\x20campaign\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x354),a2_0x59239f(0x30c))['option'](a2_0x59239f(0x332),a2_0x59239f(0x15a))[a2_0x59239f(0x238)](a2_0x59239f(0x365),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x59239f(0x238)]('--json-columns\x20<cols>',a2_0x59239f(0x2f4))[a2_0x59239f(0x238)](a2_0x59239f(0x214),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x59239f(0x238)](a2_0x59239f(0x358),a2_0x59239f(0x38b))[a2_0x59239f(0x1a5)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x2f6))[a2_0x59239f(0x238)]('--workspace\x20<name>',a2_0x59239f(0x25a))[a2_0x59239f(0x238)](a2_0x59239f(0x369),a2_0x59239f(0x2a3))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1a6))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1b2))[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name')['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x59239f(0x22a))[a2_0x59239f(0x2cb)]('Pause\x20a\x20campaign')[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x16c))[a2_0x59239f(0x2cb)](a2_0x59239f(0x163))[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x59239f(0x38f))[a2_0x59239f(0x2cb)]('Duplicate\x20a\x20campaign')[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x59239f(0x32e)]('template')[a2_0x59239f(0x2cb)](a2_0x59239f(0x201)),templateListAction=async(_0x4e2096,_0x44cf53)=>{const _0x734554=a2_0x59239f,_0x4edbcf=new EngageTemplatesCommand(),_0x516f40=program[_0x734554(0x33a)](),_0x16b09a=await createTDXInstance(_0x516f40),_0x3b1de3=await _0x4edbcf[_0x734554(0x263)]({'options':{..._0x516f40,..._0x44cf53},'args':_0x4e2096?[_0x4e2096]:[],'tdx':_0x16b09a});gracefulExit(_0x3b1de3);};templateCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2e9))[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name')[a2_0x59239f(0x1a5)](templateListAction),engageCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x14b))[a2_0x59239f(0x2cb)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x1a5)](templateListAction),templateCmd['command'](a2_0x59239f(0x350))[a2_0x59239f(0x2cb)](a2_0x59239f(0x2f9))[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x1df),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x3a6))['description'](a2_0x59239f(0x2ed))[a2_0x59239f(0x32a)]('--name\x20<name>',a2_0x59239f(0x377))[a2_0x59239f(0x32a)](a2_0x59239f(0x259),a2_0x59239f(0x2cd))[a2_0x59239f(0x32a)](a2_0x59239f(0x1ba),a2_0x59239f(0x2b4))[a2_0x59239f(0x238)]('--workspace\x20<name>',a2_0x59239f(0x204))[a2_0x59239f(0x238)](a2_0x59239f(0x388),a2_0x59239f(0x327))['option'](a2_0x59239f(0x198),a2_0x59239f(0x2a9),_0x2af5cf=>{const _0xb55b3d=a2_0x59239f;if(![_0xb55b3d(0x1c4),_0xb55b3d(0x287)]['includes'](_0x2af5cf))throw new SDKError(ErrorCode[_0xb55b3d(0x356)],_0xb55b3d(0x1d5)+_0x2af5cf+_0xb55b3d(0x216));return _0x2af5cf;})[a2_0x59239f(0x1a5)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x59239f(0x367))['description']('Update\x20an\x20email\x20template')[a2_0x59239f(0x238)](a2_0x59239f(0x148),'Workspace\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x191),a2_0x59239f(0x291))[a2_0x59239f(0x238)]('--subject\x20<subject>',a2_0x59239f(0x2cd))[a2_0x59239f(0x238)](a2_0x59239f(0x1ba),a2_0x59239f(0x2b4))['option'](a2_0x59239f(0x388),'Plaintext\x20template\x20content')[a2_0x59239f(0x1a5)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x195))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1a9))[a2_0x59239f(0x238)](a2_0x59239f(0x148),a2_0x59239f(0x25a))[a2_0x59239f(0x238)](a2_0x59239f(0x369),a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x59239f(0x32e)]('workspace')[a2_0x59239f(0x2cb)](a2_0x59239f(0x33f)),workspaceListAction=async(_0x43d07a,_0x1366a4)=>{const _0x241fdf=a2_0x59239f,_0x3adc4f=new EngageWorkspacesCommand(),_0x5c577f=program[_0x241fdf(0x33a)](),_0x2c2581=await createTDXInstance(_0x5c577f),_0x493d62=await _0x3adc4f['run']({'options':{..._0x5c577f,..._0x1366a4},'args':_0x43d07a?[_0x43d07a]:[],'tdx':_0x2c2581});gracefulExit(_0x493d62);};workspaceCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))['description'](a2_0x59239f(0x293))[a2_0x59239f(0x1a5)](workspaceListAction),engageCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x39c))[a2_0x59239f(0x2cb)](a2_0x59239f(0x38c))[a2_0x59239f(0x1a5)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x59239f(0x2cb)]('Show\x20workspace\x20details')[a2_0x59239f(0x238)](a2_0x59239f(0x1df),a2_0x59239f(0x325))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x59239f(0x32e)]('create')[a2_0x59239f(0x2cb)]('Create\x20a\x20workspace')['requiredOption'](a2_0x59239f(0x191),'Workspace\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x354),a2_0x59239f(0x1db))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x367))['description'](a2_0x59239f(0x2bc))['option'](a2_0x59239f(0x191),'New\x20workspace\x20name')[a2_0x59239f(0x238)](a2_0x59239f(0x354),a2_0x59239f(0x1db))[a2_0x59239f(0x1a5)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x195))[a2_0x59239f(0x2cb)](a2_0x59239f(0x383))['option']('--yes',a2_0x59239f(0x2a3))[a2_0x59239f(0x1a5)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x343))[a2_0x59239f(0x1a5)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command']('connection')['description']('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0xbd792b=>{const _0x440844=a2_0x59239f,_0x5ed878=new ConnectionListCommand(),_0x549439=program['opts'](),_0x2e630d=await createTDXInstance(_0x549439),_0x10c6cc=await _0x5ed878[_0x440844(0x263)]({'options':{..._0x549439,..._0xbd792b},'args':[],'tdx':_0x2e630d});gracefulExit(_0x10c6cc);};connectionCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x280))[a2_0x59239f(0x2cb)]('List\x20all\x20data\x20connections')[a2_0x59239f(0x1a5)](connectionListAction),program[a2_0x59239f(0x32e)]('connections',{'hidden':!![]})[a2_0x59239f(0x2cb)](a2_0x59239f(0x31b))[a2_0x59239f(0x1a5)](connectionListAction),connectionCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x173))[a2_0x59239f(0x2cb)]('Show\x20connection\x20details\x20by\x20name')['action'](async(_0x2c5225,_0x3a3f21)=>{const _0x2fb0a9=a2_0x59239f,_0x154172=new ConnectionShowCommand(),_0x5299aa=program[_0x2fb0a9(0x33a)](),_0x3e940f=await createTDXInstance(_0x5299aa),_0x59746a=await _0x154172[_0x2fb0a9(0x263)]({'options':{..._0x5299aa,..._0x3a3f21},'args':[_0x2c5225],'tdx':_0x3e940f});gracefulExit(_0x59746a);}),connectionCmd['command']('schema\x20<type>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x379))[a2_0x59239f(0x1a5)](async(_0x460a76,_0x511a66)=>{const _0x2ff71c=a2_0x59239f,_0x33c129=new ConnectionSchemaCommand(),_0x3afd12=program['opts'](),_0x5e9476=await createTDXInstance(_0x3afd12),_0x5c206b=await _0x33c129[_0x2ff71c(0x263)]({'options':{..._0x3afd12,..._0x511a66},'args':[_0x460a76],'tdx':_0x5e9476});gracefulExit(_0x5c206b);}),connectionCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x21f))[a2_0x59239f(0x2cb)](a2_0x59239f(0x248))[a2_0x59239f(0x1a5)](async _0x30d38d=>{const _0x49b04a=a2_0x59239f,_0x559a62=new ConnectionTypesCommand(),_0x21ecd4=program['opts'](),_0xae92f6=await createTDXInstance(_0x21ecd4),_0x58d061=await _0x559a62[_0x49b04a(0x263)]({'options':{..._0x21ecd4,..._0x30d38d},'args':[],'tdx':_0xae92f6});gracefulExit(_0x58d061);}),connectionCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1ab))[a2_0x59239f(0x2cb)](a2_0x59239f(0x33b))[a2_0x59239f(0x1a5)](async(_0xbd7ce3,_0x1fd8ae)=>{const _0xbd80e9=a2_0x59239f,_0xfbf671=new ConnectionSettingsCommand(),_0xd56ee4=program[_0xbd80e9(0x33a)](),_0x33d1a6=await createTDXInstance(_0xd56ee4),_0x3813da=await _0xfbf671['run']({'options':{..._0xd56ee4,..._0x1fd8ae},'args':[_0xbd7ce3],'tdx':_0x33d1a6});gracefulExit(_0x3813da);});const journeyCmd=program[a2_0x59239f(0x32e)](a2_0x59239f(0x260))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1c2)),journeyListAction=async(_0x1adc01,_0x3f9fba)=>{const _0x31a0fc=a2_0x59239f,_0x2a7389=new JourneyListCommand(),_0x37e0b1=program[_0x31a0fc(0x33a)](),_0x2d647b=await createTDXInstance(_0x37e0b1),_0x4e05ec=await _0x2a7389['run']({'options':{..._0x37e0b1,..._0x3f9fba},'args':_0x1adc01?[_0x1adc01]:[],'tdx':_0x2d647b});gracefulExit(_0x4e05ec);};journeyCmd['command'](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x240))[a2_0x59239f(0x1a5)](journeyListAction),journeyCmd['command']('view\x20<name-or-path>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x270))[a2_0x59239f(0x238)]('-w,\x20--web',a2_0x59239f(0x1f5))[a2_0x59239f(0x238)](a2_0x59239f(0x145),'Include\x20execution\x20statistics')['action'](async(_0x44887a,_0x2a75ac)=>{const _0x329392=a2_0x59239f,_0x14c142=new JourneyViewCommand(),_0xf614d5=program[_0x329392(0x33a)](),_0x5e2360=await createTDXInstance(_0xf614d5),_0x4bd4c6=await _0x14c142[_0x329392(0x263)]({'options':{..._0xf614d5,..._0x2a75ac},'args':[_0x44887a],'tdx':_0x5e2360});gracefulExit(_0x4bd4c6);}),journeyCmd['command'](a2_0x59239f(0x18e))['description']('Show\x20journey\x20statistics')[a2_0x59239f(0x238)](a2_0x59239f(0x202),a2_0x59239f(0x283))[a2_0x59239f(0x1a5)](async(_0x5b48aa,_0x3008fc)=>{const _0x26697a=a2_0x59239f,_0x361e7b=new JourneyStatsCommand(),_0x33cb65=program[_0x26697a(0x33a)](),_0x52689f=await createTDXInstance(_0x33cb65),_0x37fbf2=await _0x361e7b[_0x26697a(0x263)]({'options':{..._0x33cb65,..._0x3008fc},'args':[_0x5b48aa],'tdx':_0x52689f});gracefulExit(_0x37fbf2);}),journeyCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x385))['description'](a2_0x59239f(0x2e6))[a2_0x59239f(0x1a5)](async(_0x25bc27,_0xa961a7)=>{const _0x38f525=new JourneyPauseCommand(),_0x15489e=program['opts'](),_0x1daecc=await createTDXInstance(_0x15489e),_0x3e5d4e=await _0x38f525['run']({'options':{..._0x15489e,..._0xa961a7},'args':[_0x25bc27],'tdx':_0x1daecc});gracefulExit(_0x3e5d4e);}),journeyCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1a3))[a2_0x59239f(0x2cb)]('Resume\x20a\x20paused\x20journey')[a2_0x59239f(0x1a5)](async(_0x186b76,_0x5415db)=>{const _0x26c1e0=a2_0x59239f,_0x273c56=new JourneyResumeCommand(),_0x2e685a=program['opts'](),_0x561630=await createTDXInstance(_0x2e685a),_0x1435d7=await _0x273c56[_0x26c1e0(0x263)]({'options':{..._0x2e685a,..._0x5415db},'args':[_0x186b76],'tdx':_0x561630});gracefulExit(_0x1435d7);}),journeyCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x3a3))['description'](a2_0x59239f(0x395))[a2_0x59239f(0x238)](a2_0x59239f(0x31d),a2_0x59239f(0x2a3))[a2_0x59239f(0x238)]('--dry-run',a2_0x59239f(0x31f))[a2_0x59239f(0x1a5)](async(_0x2863d7,_0x22fcf8)=>{const _0x3ef5bf=a2_0x59239f,_0x206dca=new JourneyPullCommand(),_0x4f6009=program[_0x3ef5bf(0x33a)](),_0x358443=await createTDXInstance(_0x4f6009),_0x57a8b8=await _0x206dca[_0x3ef5bf(0x263)]({'options':{..._0x4f6009,..._0x22fcf8},'args':_0x2863d7?[_0x2863d7]:[],'tdx':_0x358443});gracefulExit(_0x57a8b8);}),journeyCmd['command'](a2_0x59239f(0x2c8))['description']('Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data')[a2_0x59239f(0x1a5)](async(_0x1aceb3,_0x396ec6)=>{const _0x563e40=a2_0x59239f,_0x594a36=new JourneyPushCommand(),_0x3fc6a4=program[_0x563e40(0x33a)](),_0x5b0b5e=await createTDXInstance(_0x3fc6a4),_0x276c62=await _0x594a36[_0x563e40(0x263)]({'options':{..._0x3fc6a4,..._0x396ec6},'args':_0x1aceb3?[_0x1aceb3]:[],'tdx':_0x5b0b5e});gracefulExit(_0x276c62);}),journeyCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x344))['description']('Validate\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x11b9d7,_0x1ad90b)=>{const _0xb8995=a2_0x59239f,_0xd1da3d=new JourneyValidateCommand(),_0xeaa780=program[_0xb8995(0x33a)](),_0x348f98=await createTDXInstance(_0xeaa780),_0x33104e=await _0xd1da3d['run']({'options':{..._0xeaa780,..._0x1ad90b},'args':_0x11b9d7?[_0x11b9d7]:[],'tdx':_0x348f98});gracefulExit(_0x33104e);}),program['command'](a2_0x59239f(0x229))[a2_0x59239f(0x2cb)](a2_0x59239f(0x368))[a2_0x59239f(0x1a5)](journeyListAction);const agentSyncCmd=program[a2_0x59239f(0x32e)]('agent')[a2_0x59239f(0x2cb)](a2_0x59239f(0x37a));function a2_0x955b(_0x29d012,_0x21f8dc){_0x29d012=_0x29d012-0x142;const _0x332576=a2_0x3325();let _0x955b29=_0x332576[_0x29d012];return _0x955b29;}agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x227))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1fd))[a2_0x59239f(0x238)](a2_0x59239f(0x364),a2_0x59239f(0x21e))[a2_0x59239f(0x238)](a2_0x59239f(0x32f),a2_0x59239f(0x314))[a2_0x59239f(0x1a5)](async(_0x223126,_0x47ea0b,_0xaa3389)=>{const _0x5055cf=a2_0x59239f,_0x5910cb=new AgentPullCommand(),_0x16c3e9=program[_0x5055cf(0x33a)](),_0x37510e=await createTDXInstance(_0x16c3e9),_0x1e1f3b=[];if(_0x223126)_0x1e1f3b['push'](_0x223126);if(_0x47ea0b)_0x1e1f3b[_0x5055cf(0x2fb)](_0x47ea0b);const _0x489b2e=await _0x5910cb['run']({'options':{..._0x16c3e9,..._0xaa3389},'args':_0x1e1f3b,'tdx':_0x37510e});gracefulExit(_0x489b2e);}),agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x384))[a2_0x59239f(0x2cb)](a2_0x59239f(0x1bb))[a2_0x59239f(0x238)](a2_0x59239f(0x32f),a2_0x59239f(0x27a))[a2_0x59239f(0x1a5)](async(_0x5c19cc,_0x346746)=>{const _0x1cef5c=new AgentPushCommand(),_0x4a72d6=program['opts'](),_0x409344=await createTDXInstance(_0x4a72d6),_0x49b9d4=await _0x1cef5c['run']({'options':{..._0x4a72d6,..._0x346746},'args':_0x5c19cc?[_0x5c19cc]:[],'tdx':_0x409344});gracefulExit(_0x49b9d4);}),agentSyncCmd[a2_0x59239f(0x32e)]('clone\x20[source]')[a2_0x59239f(0x2cb)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option']('-n,\x20--name\x20<name>',a2_0x59239f(0x168))[a2_0x59239f(0x1a5)](async(_0x24695b,_0x1a7864)=>{const _0x91749e=a2_0x59239f,_0x3d6b4c=new AgentCloneCommand(),_0xc0b5a8=program[_0x91749e(0x33a)](),_0x44f3bf=await createTDXInstance(_0xc0b5a8),_0x28279d=await _0x3d6b4c[_0x91749e(0x263)]({'options':{..._0xc0b5a8,..._0x1a7864},'args':_0x24695b?[_0x24695b]:[],'tdx':_0x44f3bf});gracefulExit(_0x28279d);}),agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x269))[a2_0x59239f(0x2cb)]('Run\x20tests\x20for\x20an\x20LLM\x20agent')[a2_0x59239f(0x238)](a2_0x59239f(0x348),a2_0x59239f(0x33c))[a2_0x59239f(0x238)](a2_0x59239f(0x36c),a2_0x59239f(0x2af))[a2_0x59239f(0x238)](a2_0x59239f(0x2c7),a2_0x59239f(0x28e))['option'](a2_0x59239f(0x397),'Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)')[a2_0x59239f(0x238)](a2_0x59239f(0x1f7),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x59239f(0x1a5)](async(_0x1e8536,_0x5cc578)=>{const _0x300e3a=a2_0x59239f,_0x63920d=new AgentTestCommand(),_0x1d1d45=program[_0x300e3a(0x33a)](),_0x3132b7=await createTDXInstance(_0x1d1d45),_0x3476e4=await _0x63920d[_0x300e3a(0x263)]({'options':{..._0x1d1d45,..._0x5cc578},'args':_0x1e8536?[_0x1e8536]:[],'tdx':_0x3132b7});gracefulExit(_0x3476e4);}),agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x289))[a2_0x59239f(0x2cb)](a2_0x59239f(0x235))['action'](llmAgentListAction),agentSyncCmd[a2_0x59239f(0x32e)]('show\x20<agent-name>')[a2_0x59239f(0x2cb)](a2_0x59239f(0x1d6))[a2_0x59239f(0x1a5)](async(_0x30e703,_0x4062a9)=>{const _0x3e1d04=new LLMAgentShowCommand(),_0x3089ab=program['opts'](),_0x4b7fdd=await createTDXInstance(_0x3089ab),_0xc628e3=await _0x3e1d04['run']({'options':{..._0x3089ab,..._0x4062a9},'args':[_0x30e703],'tdx':_0x4b7fdd});gracefulExit(_0xc628e3);}),agentSyncCmd['command'](a2_0x59239f(0x374))['description'](a2_0x59239f(0x20a))[a2_0x59239f(0x238)](a2_0x59239f(0x2e5),a2_0x59239f(0x381))[a2_0x59239f(0x238)](a2_0x59239f(0x151),a2_0x59239f(0x2f8),a2_0x59239f(0x253))['option']('--starter-message\x20<text>','Starter\x20message')[a2_0x59239f(0x238)](a2_0x59239f(0x288),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x59239f(0x238)](a2_0x59239f(0x182),a2_0x59239f(0x376),a2_0x59239f(0x2f5))[a2_0x59239f(0x1a5)](async(_0x44d909,_0x5c5526)=>{const _0x507746=a2_0x59239f,_0x3c4711=new LLMAgentCreateCommand(),_0x17e957=program[_0x507746(0x33a)](),_0x2fd74b=await createTDXInstance(_0x17e957),_0x1e6714=await _0x3c4711[_0x507746(0x263)]({'options':{..._0x17e957,..._0x5c5526},'args':[_0x44d909],'tdx':_0x2fd74b});gracefulExit(_0x1e6714);}),agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x18f))[a2_0x59239f(0x2cb)](a2_0x59239f(0x244))[a2_0x59239f(0x238)](a2_0x59239f(0x258),a2_0x59239f(0x218))['option'](a2_0x59239f(0x1aa),a2_0x59239f(0x1cd))[a2_0x59239f(0x238)](a2_0x59239f(0x393),a2_0x59239f(0x153))[a2_0x59239f(0x238)](a2_0x59239f(0x274),a2_0x59239f(0x37c))[a2_0x59239f(0x1a5)](async(_0x30f277,_0x326835)=>{const _0x4d02b4=a2_0x59239f,_0x3b991f=new LLMAgentUpdateCommand(),_0x3ab5ac=program[_0x4d02b4(0x33a)](),_0x585ee1=await createTDXInstance(_0x3ab5ac),_0x3b11ae=await _0x3b991f[_0x4d02b4(0x263)]({'options':{..._0x3ab5ac,..._0x326835},'args':[_0x30f277],'tdx':_0x585ee1});gracefulExit(_0x3b11ae);}),agentSyncCmd[a2_0x59239f(0x32e)](a2_0x59239f(0x1ac))['description']('Delete\x20an\x20agent')['action'](async(_0x32b753,_0xa4e191)=>{const _0x22e75e=a2_0x59239f,_0x3d21bf=new LLMAgentDeleteCommand(),_0x56dab6=program[_0x22e75e(0x33a)](),_0xf0e4fb=await createTDXInstance(_0x56dab6),_0x2209ab=await _0x3d21bf[_0x22e75e(0x263)]({'options':{..._0x56dab6,..._0xa4e191},'args':[_0x32b753],'tdx':_0xf0e4fb});gracefulExit(_0x2209ab);});export{program};export function runCLI(){const _0x577790=a2_0x59239f,_0x594f86=!process[_0x577790(0x2b1)][_0x577790(0x1ad)](0x2)['length'];showBriefHelp=_0x594f86,program['parse'](process['argv']),_0x594f86&&program['outputHelp'](),process[_0x577790(0x149)][_0x577790(0x30a)]&&process[_0x577790(0x2b1)]['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x3ee7b4=>{_0x3ee7b4&&displayUpdateNotification(_0x3ee7b4);})[_0x577790(0x255)](()=>{});}