@treasuredata/tdx 0.14.9 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.d.ts.map +1 -1
  11. package/dist/commands/agent-command.js +1 -1
  12. package/dist/commands/agent-command.js.map +1 -1
  13. package/dist/commands/agent-test-command.d.ts +16 -0
  14. package/dist/commands/agent-test-command.d.ts.map +1 -0
  15. package/dist/commands/agent-test-command.js +1 -0
  16. package/dist/commands/agent-test-command.js.map +1 -0
  17. package/dist/commands/api-command.js +1 -1
  18. package/dist/commands/auth-command.js +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/mcp-command.d.ts +19 -0
  34. package/dist/commands/mcp-command.d.ts.map +1 -0
  35. package/dist/commands/mcp-command.js +1 -0
  36. package/dist/commands/mcp-command.js.map +1 -0
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/workflow-command.js +1 -1
  56. package/dist/core/auth.js +1 -1
  57. package/dist/core/command-output.js +1 -1
  58. package/dist/core/config.js +1 -1
  59. package/dist/core/connection-cache.js +1 -1
  60. package/dist/core/constants.js +1 -1
  61. package/dist/core/credential-cache.js +1 -1
  62. package/dist/core/global-context.js +1 -1
  63. package/dist/core/keychain.js +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/project-config.js +1 -1
  66. package/dist/core/session.js +1 -1
  67. package/dist/core/user-cache.js +1 -1
  68. package/dist/core/version.js +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/mcp/server.d.ts +31 -0
  71. package/dist/mcp/server.d.ts.map +1 -0
  72. package/dist/mcp/server.js +1 -0
  73. package/dist/mcp/server.js.map +1 -0
  74. package/dist/mcp/tools/index.d.ts +10 -0
  75. package/dist/mcp/tools/index.d.ts.map +1 -0
  76. package/dist/mcp/tools/index.js +1 -0
  77. package/dist/mcp/tools/index.js.map +1 -0
  78. package/dist/mcp/tools/tdx-run.d.ts +35 -0
  79. package/dist/mcp/tools/tdx-run.d.ts.map +1 -0
  80. package/dist/mcp/tools/tdx-run.js +1 -0
  81. package/dist/mcp/tools/tdx-run.js.map +1 -0
  82. package/dist/mcp/tools/tdx-search.d.ts +42 -0
  83. package/dist/mcp/tools/tdx-search.d.ts.map +1 -0
  84. package/dist/mcp/tools/tdx-search.js +1 -0
  85. package/dist/mcp/tools/tdx-search.js.map +1 -0
  86. package/dist/mcp/utils.d.ts +35 -0
  87. package/dist/mcp/utils.d.ts.map +1 -0
  88. package/dist/mcp/utils.js +1 -0
  89. package/dist/mcp/utils.js.map +1 -0
  90. package/dist/proxy/anthropic-adapter.js +1 -1
  91. package/dist/proxy/claude-usage-tracker.js +1 -1
  92. package/dist/proxy/context-signature.js +1 -1
  93. package/dist/proxy/conversation-utils.js +1 -1
  94. package/dist/proxy/passthrough-server.js +1 -1
  95. package/dist/proxy/server.js +1 -1
  96. package/dist/proxy/session-cache.js +1 -1
  97. package/dist/proxy/sse-usage-parser.js +1 -1
  98. package/dist/sdk/agent/agent-config.d.ts +46 -0
  99. package/dist/sdk/agent/agent-config.d.ts.map +1 -1
  100. package/dist/sdk/agent/agent-config.js +1 -1
  101. package/dist/sdk/agent/agent-config.js.map +1 -1
  102. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  103. package/dist/sdk/agent/agent-yaml.d.ts +44 -0
  104. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  107. package/dist/sdk/agent/test/evaluator.d.ts +55 -0
  108. package/dist/sdk/agent/test/evaluator.d.ts.map +1 -0
  109. package/dist/sdk/agent/test/evaluator.js +1 -0
  110. package/dist/sdk/agent/test/evaluator.js.map +1 -0
  111. package/dist/sdk/agent/test/executor.d.ts +73 -0
  112. package/dist/sdk/agent/test/executor.d.ts.map +1 -0
  113. package/dist/sdk/agent/test/executor.js +1 -0
  114. package/dist/sdk/agent/test/executor.js.map +1 -0
  115. package/dist/sdk/agent/test/index.d.ts +12 -0
  116. package/dist/sdk/agent/test/index.d.ts.map +1 -0
  117. package/dist/sdk/agent/test/index.js +1 -0
  118. package/dist/sdk/agent/test/index.js.map +1 -0
  119. package/dist/sdk/agent/test/output.d.ts +19 -0
  120. package/dist/sdk/agent/test/output.d.ts.map +1 -0
  121. package/dist/sdk/agent/test/output.js +1 -0
  122. package/dist/sdk/agent/test/output.js.map +1 -0
  123. package/dist/sdk/agent/test/parser.d.ts +55 -0
  124. package/dist/sdk/agent/test/parser.d.ts.map +1 -0
  125. package/dist/sdk/agent/test/parser.js +1 -0
  126. package/dist/sdk/agent/test/parser.js.map +1 -0
  127. package/dist/sdk/agent/test/types.d.ts +169 -0
  128. package/dist/sdk/agent/test/types.d.ts.map +1 -0
  129. package/dist/sdk/agent/test/types.js +1 -0
  130. package/dist/sdk/agent/test/types.js.map +1 -0
  131. package/dist/sdk/api.js +1 -1
  132. package/dist/sdk/claude-agent/claude-agent-client.d.ts +42 -0
  133. package/dist/sdk/claude-agent/claude-agent-client.d.ts.map +1 -0
  134. package/dist/sdk/claude-agent/claude-agent-client.js +1 -0
  135. package/dist/sdk/claude-agent/claude-agent-client.js.map +1 -0
  136. package/dist/sdk/claude-agent/environment.d.ts +50 -0
  137. package/dist/sdk/claude-agent/environment.d.ts.map +1 -0
  138. package/dist/sdk/claude-agent/environment.js +1 -0
  139. package/dist/sdk/claude-agent/environment.js.map +1 -0
  140. package/dist/sdk/claude-agent/index.d.ts +15 -0
  141. package/dist/sdk/claude-agent/index.d.ts.map +1 -0
  142. package/dist/sdk/claude-agent/index.js +1 -0
  143. package/dist/sdk/claude-agent/index.js.map +1 -0
  144. package/dist/sdk/claude-agent/system-prompts.d.ts +22 -0
  145. package/dist/sdk/claude-agent/system-prompts.d.ts.map +1 -0
  146. package/dist/sdk/claude-agent/system-prompts.js +1 -0
  147. package/dist/sdk/claude-agent/system-prompts.js.map +1 -0
  148. package/dist/sdk/claude-agent/types.d.ts +75 -0
  149. package/dist/sdk/claude-agent/types.d.ts.map +1 -0
  150. package/dist/sdk/claude-agent/types.js +1 -0
  151. package/dist/sdk/claude-agent/types.js.map +1 -0
  152. package/dist/sdk/client/cdp-api-client.js +1 -1
  153. package/dist/sdk/client/endpoints.d.ts +17 -0
  154. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  155. package/dist/sdk/client/endpoints.js +1 -1
  156. package/dist/sdk/client/endpoints.js.map +1 -1
  157. package/dist/sdk/client/engage-api-client.js +1 -1
  158. package/dist/sdk/client/http-client.js +1 -1
  159. package/dist/sdk/client/llm-api-client.d.ts +6 -0
  160. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  161. package/dist/sdk/client/llm-api-client.js +1 -1
  162. package/dist/sdk/client/llm-api-client.js.map +1 -1
  163. package/dist/sdk/client/rate-limiter.js +1 -1
  164. package/dist/sdk/client/td-api-client.js +1 -1
  165. package/dist/sdk/client/trino-api-client.js +1 -1
  166. package/dist/sdk/client/workflow-client.js +1 -1
  167. package/dist/sdk/connection-validator.js +1 -1
  168. package/dist/sdk/connection.js +1 -1
  169. package/dist/sdk/engage.js +1 -1
  170. package/dist/sdk/errors.d.ts +2 -0
  171. package/dist/sdk/errors.d.ts.map +1 -1
  172. package/dist/sdk/errors.js +1 -1
  173. package/dist/sdk/errors.js.map +1 -1
  174. package/dist/sdk/index.d.ts +3 -1
  175. package/dist/sdk/index.d.ts.map +1 -1
  176. package/dist/sdk/index.js +1 -1
  177. package/dist/sdk/index.js.map +1 -1
  178. package/dist/sdk/io/index.js +1 -1
  179. package/dist/sdk/io/node-filesystem.js +1 -1
  180. package/dist/sdk/job.js +1 -1
  181. package/dist/sdk/journey.js +1 -1
  182. package/dist/sdk/llm/chat-cache.js +1 -1
  183. package/dist/sdk/llm/index.d.ts +9 -1
  184. package/dist/sdk/llm/index.d.ts.map +1 -1
  185. package/dist/sdk/llm/index.js +1 -1
  186. package/dist/sdk/llm/index.js.map +1 -1
  187. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  188. package/dist/sdk/llm/model-aliases.js +1 -1
  189. package/dist/sdk/llm/model-factors.js +1 -1
  190. package/dist/sdk/query/index.js +1 -1
  191. package/dist/sdk/query/sql-parser.js +1 -1
  192. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  193. package/dist/sdk/segment/fields-display.js +1 -1
  194. package/dist/sdk/segment/file-discovery.js +1 -1
  195. package/dist/sdk/segment/journey-utils.js +1 -1
  196. package/dist/sdk/segment/journey-yaml.js +1 -1
  197. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  198. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  199. package/dist/sdk/segment/pull-workflow.js +1 -1
  200. package/dist/sdk/segment/push-workflow.js +1 -1
  201. package/dist/sdk/segment/resolution-context.js +1 -1
  202. package/dist/sdk/segment/segment-path-parser.js +1 -1
  203. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  204. package/dist/sdk/segment/target-resolution.js +1 -1
  205. package/dist/sdk/segment/tdx-config.js +1 -1
  206. package/dist/sdk/segment/validate-files.js +1 -1
  207. package/dist/sdk/segment/yaml-validator.js +1 -1
  208. package/dist/sdk/segment.js +1 -1
  209. package/dist/sdk/types/index.js +1 -1
  210. package/dist/sdk/types/progress.js +1 -1
  211. package/dist/sdk/user.js +1 -1
  212. package/dist/sdk/util/format-detector.js +1 -1
  213. package/dist/sdk/util/formatters.js +1 -1
  214. package/dist/sdk/util/index.js +1 -1
  215. package/dist/sdk/util/tree-formatter.js +1 -1
  216. package/dist/sdk/workflow/clone-workflow.js +1 -1
  217. package/dist/sdk/workflow/index.js +1 -1
  218. package/dist/sdk/workflow/pull-workflow.js +1 -1
  219. package/dist/sdk/workflow/push-workflow.js +1 -1
  220. package/dist/sdk/workflow/tdx-config.js +1 -1
  221. package/dist/sdk/workflow/workflow-utils.js +1 -1
  222. package/dist/utils/async.js +1 -1
  223. package/dist/utils/colors.js +1 -1
  224. package/dist/utils/diff.js +1 -1
  225. package/dist/utils/file-permissions.js +1 -1
  226. package/dist/utils/json-loader.js +1 -1
  227. package/dist/utils/option-validation.js +1 -1
  228. package/dist/utils/port.js +1 -1
  229. package/dist/utils/process.js +1 -1
  230. package/dist/utils/prompt.js +1 -1
  231. package/dist/utils/spinner.js +1 -1
  232. package/dist/utils/sse-parser.js +1 -1
  233. package/dist/utils/string-utils.js +1 -1
  234. package/dist/utils/table-ref-parser.js +1 -1
  235. package/dist/utils/tdx-logger.d.ts +12 -1
  236. package/dist/utils/tdx-logger.d.ts.map +1 -1
  237. package/dist/utils/tdx-logger.js +1 -1
  238. package/dist/utils/tdx-logger.js.map +1 -1
  239. package/dist/utils/version-check.js +1 -1
  240. package/package.json +4 -2
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x49a146=a2_0x3048;(function(_0x2f5cb6,_0x32a680){const _0x2690b0=a2_0x3048,_0x1f360f=_0x2f5cb6();while(!![]){try{const _0x9d8032=-parseInt(_0x2690b0(0x19d))/0x1*(-parseInt(_0x2690b0(0x1d6))/0x2)+-parseInt(_0x2690b0(0x2a9))/0x3*(parseInt(_0x2690b0(0x1b9))/0x4)+parseInt(_0x2690b0(0x2bc))/0x5+-parseInt(_0x2690b0(0x16c))/0x6+parseInt(_0x2690b0(0x294))/0x7*(parseInt(_0x2690b0(0x1fe))/0x8)+-parseInt(_0x2690b0(0x171))/0x9*(parseInt(_0x2690b0(0x26e))/0xa)+parseInt(_0x2690b0(0x2fc))/0xb;if(_0x9d8032===_0x32a680)break;else _0x1f360f['push'](_0x1f360f['shift']());}catch(_0x953326){_0x1f360f['push'](_0x1f360f['shift']());}}}(a2_0x2124,0x4dfe9));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{UseCommand}from'./commands/use-command.js';function a2_0x3048(_0x485f87,_0x4e4a03){_0x485f87=_0x485f87-0x14a;const _0x2124ba=a2_0x2124();let _0x30483b=_0x2124ba[_0x485f87];return _0x30483b;}import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x49a146(0x233)](a2_0x49a146(0x256))){let versionOutput=a2_0x49a146(0x257)+currentVersion;buildInfo[a2_0x49a146(0x1ab)]&&!currentVersion['includes'](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x49a146(0x1b3)]&&(versionOutput+=a2_0x49a146(0x1c5)+buildInfo[a2_0x49a146(0x1b3)]),console['log'](versionOutput),process[a2_0x49a146(0x27d)](0x0);}function a2_0x2124(){const _0x127ad4=['Set\x20operation\x20timeout\x20in\x20seconds','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','33PWDiOQ','push\x20[file]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--output\x20<file>','describe','show\x20[segment_name]','desc\x20[name]','Email\x20subject\x20template','Add\x20attributes\x20as\x20JSON\x20string','--description\x20<text>','Show\x20job\x20details','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Workspace\x20name\x20(required)','List\x20available\x20LLM\x20models','--database\x20<db>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Create\x20a\x20new\x20profile','157810GiFIjQ','aliases','-o,\x20--output\x20<dir>','Behaviors\x20as\x20JSON\x20string','Campaign\x20type\x20(email\x20or\x20push)','--json','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Reason\x20for\x20killing\x20the\x20attempt','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Output\x20as\x20JSON','-u,\x20--use','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','option','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Job\x20management\x20commands','-w,\x20--web','validate\x20[target]','List\x20all\x20users\x20in\x20the\x20account','view\x20<name-or-path>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','templates\x20[pattern]','List\x20jobs','createAsync','timeline\x20[project.workflow]','--agent\x20<name>','0.7','Path\x20is\x20not\x20a\x20directory:\x20','Updated\x20timezone','Enable\x20verbose\x20logging','view\x20[segment_name]','Revision\x20name\x20(default:\x20timestamp)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Delete\x20an\x20email\x20template','Set\x20a\x20profile\x20configuration\x20value','Add\x20behaviors\x20from\x20JSON\x20file','length','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Include\x20retried\x20attempts','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--session-id\x20<id>','Update\x20an\x20existing\x20agent','--last','Show\x20workspace\x20details','push\x20[path]','-o,\x20--output\x20<file>','--add-behaviors\x20<json>','use\x20[project]','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--schedule-option\x20<value>','Remove\x20API\x20key\x20from\x20system\x20keychain','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','parent-segment','--type\x20<api_type>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','New\x20segment\x20name','Output\x20as\x20JSON\x20Lines','Move\x20to\x20folder','Workflow\x20parameter\x20(repeatable)','Show\x20campaign\x20details','show\x20[table]','5567232EsFGIm','validate\x20[file]','Launch\x20a\x20campaign','Customer\x20group\x20as\x20JSON\x20string','Show\x20segment\x20details\x20(alias\x20for\x20view)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','remove\x20<name>','Update\x20a\x20workspace','show\x20<folder_ref>','--session\x20<id>','Read\x20SQL\x20query\x20from\x20file','set\x20<key=value>','Resume\x20from\x20specific\x20task\x20(retry)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','error','Skip\x20confirmation\x20prompt','duplicate\x20<name-or-id>','--enriched','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','pull\x20<project>\x20[target-dir]','argv','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','show\x20[name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--full','auth','Template\x20name','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','command','Output\x20file\x20path\x20(default:\x20<name>.yml)','Add\x20behaviors\x20as\x20JSON\x20string','retry\x20<session-id>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','subcommandDescription','Temperature\x20(0.0-2.0,\x20default:\x200.7)','List\x20secret\x20keys\x20for\x20a\x20project','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Workflow\x20project\x20management','-n,\x20--name\x20<name>','--include-subtasks','--behavior\x20[name]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--database\x20<name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','Email\x20sender\x20ID\x20for\x20delivery','Force\x20retry\x20even\x20if\x20not\x20failed','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','-C,\x20--directory\x20<path>','Attempt\x20ID','logs','Updated\x20description','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','use\x20<name>','Skip\x20confirmation\x20prompts','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','job','argument','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--site\x20<site>','parse','--limit\x20<n>','setup','Filtering\x20rule\x20as\x20JSON\x20string','use\x20[name]','--in\x20<name>','--jsonl','--status\x20<status>','chats','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','--name\x20<new-name>','requiredOption','push','resume\x20<name-or-id>','pull\x20[project]\x20[agent-name]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Delete\x20a\x20workspace','status','--skip-validation','GET','pull\x20[name]','get','format','commandDescription','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--parent-segment\x20<name>','Show\x20only\x20master\x20table\x20validation','create\x20[name]','Database\x20name\x20(default:\x20information_schema)','Unknown\x20action:\x20','session','Update\x20a\x20campaign','statusline','hidden','--debug','Describe\x20table\x20schema','preAction','Updated\x20schedule\x20option','List\x20available\x20connector\x20types','after','-d,\x20--database\x20<name>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','action','--rule\x20<json>','attempt','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--no-count-population','databases\x20[pattern]','--temperature\x20<n>','jobs','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','--add-behaviors-file\x20<file>','--master','map','Agent\x20name','attempt:','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Workspace\x20description','logLevel','--stage\x20<name>','List\x20all\x20available\x20profiles','use\x20<project-name>','\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','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','campaign','download\x20<project-name>\x20[output-dir]','Clear\x20session\x20context','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','site','settings\x20<type>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Pull\x20specific\x20revision\x20(default:\x20latest)','-1d','segment','--json-columns\x20<cols>','agents\x20[pattern]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','segments\x20[path]','--attribute\x20[name]','replace','padWidth','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20journey\x20statistics','--segment\x20<path>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','help','Parent\x20segment\x20management','--starter-message\x20<text>','--plaintext\x20<text>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','--param\x20<key=value>','isTTY','port','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','types','--rule-file\x20<file>','--trace','--behaviors-file\x20<file>','\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','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--follow','connections','unset\x20<resource>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','workspace','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Filtering\x20rule\x20from\x20JSON\x20file','colorFn','Export\x20journey(s)\x20as\x20YAML\x20files','information_schema','trino','table','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','retry','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','486402WzyTtT','-f,\x20--force','filter','-v,\x20--verbose','commandUsage','17073zaoGte','user','workflows\x20[project]','registeredArguments','Project\x20description','--start-at\x20<datetime>','--table','Workspace\x20name','Editor\x20type','--limit\x20<number>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--catalog\x20<catalog>','run','Create\x20a\x20new\x20campaign','Open\x20parent\x20segment\x20in\x20web\x20browser','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--editor-type\x20<type>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--name\x20<text>','preview\x20[name]','\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','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Skip\x20population\x20counting','fields\x20[parent_name]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','\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','INVALID_ARGUMENT','--customer-group-file\x20<file>','outputHelp','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Follow/watch\x20timeline\x20for\x20running\x20attempts','[attempt-id]','Behaviors\x20from\x20JSON\x20file','--from\x20<timestamp>','show\x20<job-id>','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Usage:\x20','create\x20<segment_name>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','update\x20<segment_name>','proxy','1wjgnky','--from-task\x20<task>','desc','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Folder\x20name\x20for\x20organization','New\x20campaign\x20name','Run\x20Trino\x20query\x20with\x20streaming\x20results','create','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','connection','--timezone\x20<tz>','--revision\x20<revision>','Pause\x20a\x20running\x20journey','chdir','gitRevision','parent','resume\x20<name-or-path>','--port\x20<number>','--no-color','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','activations\x20<segment_name>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','buildTime','--default','us01','secrets','name','--interval\x20<range>','24812VtOQlW','update\x20<name>','Output\x20directory','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','workflow','kill\x20<job-id>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Clear\x20workflow\x20project\x20context','opts','Database\x20to\x20use\x20(overrides\x20context)','Validate\x20journey\x20YAML\x20files\x20locally','join','\x20-\x20built\x20','Custom\x20revision\x20name\x20(default:\x20timestamp)','--email-sender-id\x20<id>','Skip\x20validation\x20of\x20.dig\x20files','list','journey','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','--in\x20<database>','--type\x20<type>','parent_segment','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Starter\x20message','description','Name\x20for\x20the\x20new\x20project\x20(required)','commands','[task-name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','440488ZjcTnw','List\x20journeys\x20in\x20current\x20context','alias','forEach','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','padEnd','Arguments:','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pull\x20[parent_or_file]','database','allowUnknownOption',',\x20version\x20','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Show\x20the\x20most\x20recent\x20chat','chat\x20[message...]','Pause\x20a\x20campaign','--folder\x20<name>','Plaintext\x20template\x20content','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','configureHelp','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','[action]','isArray','delete\x20<name-or-id>','kill','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--include-retried','--timeout\x20<seconds>','--force','--invisible','push\x20[target]','tsv','describe\x20[table]','-y,\x20--yes','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','delete\x20<name>','Preview\x20without\x20creating\x20the\x20project','Show\x20agent\x20details','--attributes-file\x20<file>','Update\x20an\x20email\x20template','8tDdpww','Remove\x20a\x20profile','--project\x20<name>','--system-prompt\x20<text>','List\x20agents\x20in\x20current\x20project','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','-d,\x20--database\x20<database>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','use\x20[resource]\x20[value]','folders\x20<parent_name>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','show\x20<agent-name>','run\x20[name]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--attempt-id\x20<id>','list\x20[pattern]','Submit\x20a\x20job','Maximum\x20recursion\x20depth\x20(default:\x2010)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','directory','Open\x20journey\x20in\x20web\x20browser','models','Create\x20segment\x20folder','Resume\x20a\x20paused\x20journey','desc\x20[segment_name]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','list\x20[project]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','apiKey','--schedule-type\x20<type>','-f,\x20--file\x20<path>','--workspace\x20<name>','-o,\x20--output\x20<folder>','run\x20[workflow]','parents\x20[pattern]','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Delete\x20a\x20campaign','Preview\x20changes\x20without\x20writing\x20files','tasks','Interactive\x20chat\x20selector','push\x20[parent_or_file]','submit\x20[query]','--llm-project\x20<name>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Attributes\x20as\x20JSON\x20string','show\x20<name-or-id>','Workspace\x20management','Master\x20table\x20name','--parent-folder\x20<name>','Add\x20attributes\x20from\x20JSON\x20file','includes','use\x20<path>','Start\x20a\x20new\x20chat\x20session','info\x20[segment_name]','subcommandTerm','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','clone\x20[source]','history\x20[chat-id]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','view\x20[name]','Output\x20folder\x20(default:\x20{project_name}.llm)','--name\x20<new_name>','--customer-group\x20<json>','Workflow\x20(Digdag)\x20management\x20commands','profile','--kind\x20<type>','--name\x20<name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','clear','Commands:','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','summary','agent','\x20(resolved\x20to\x20','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Agent\x20prompt/instructions','pause\x20<name-or-id>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Data\x20connection\x20management\x20(for\x20activations/exports)','Change\x20to\x20directory\x20before\x20executing\x20command','tdx','Open\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--version','tdx\x20','New\x20workspace\x20name','Kill\x20a\x20job','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Output\x20file\x20path','--color','addHelpText','required','fields\x20[name]','Make\x20segment\x20invisible\x20(default:\x20visible)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','catch','create\x20<name>','--dry-run','--description\x20<desc>','--max-depth\x20<depth>','Workflow\x20session\x20management','DEBUG','delete\x20<project-name-or-id>','allowExcessArguments','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','2950EHXmmR','--session-time\x20<time>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Preview\x20changes\x20without\x20pushing','slice','Duplicate\x20a\x20campaign','Include\x20subtasks\x20in\x20tasks\x20output','journeys\x20[pattern]','usage','Show\x20email\x20template\x20details','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','_hidden','--params\x20<json>','projects\x20[pattern]','Save\x20output\x20to\x20file','exit','--delete','tables\x20[pattern]','User\x20management\x20commands','llm','repeat','--yes','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','claude-4.5-sonnet','--html\x20<html>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Continue\x20most\x20recent\x20conversation','pause\x20<name-or-path>','Master\x20database\x20name','update\x20<name-or-id>','Resume\x20a\x20paused\x20campaign','noColor','delete\x20<agent-name>','users','--clear','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','1893234AbRBjF','INFO','Email\x20template\x20management','--llm-proxy\x20[url]','Read\x20query\x20from\x20file','optionDescription','Include\x20execution\x20statistics','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','show\x20<name>','-r,\x20--recursive','stats\x20<name-or-path>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Show\x20master\x20table\x20sample\x20data','injectIntoOptions','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--subject\x20<subject>','hook','Create\x20an\x20email\x20template','Database\x20to\x20query\x20(default:\x20information_schema)'];a2_0x2124=function(){return _0x127ad4;};return a2_0x2124();}const program=new Command();let showBriefHelp=![],description=a2_0x49a146(0x32d);buildInfo[a2_0x49a146(0x1ab)]&&!currentVersion[a2_0x49a146(0x233)](buildInfo[a2_0x49a146(0x1ab)])?description+=a2_0x49a146(0x1e1)+currentVersion+'\x20('+buildInfo[a2_0x49a146(0x1ab)]+')':description+=a2_0x49a146(0x1e1)+currentVersion;program[a2_0x49a146(0x1b7)](a2_0x49a146(0x253))['description'](description),program['option'](a2_0x49a146(0x331),a2_0x49a146(0x252))['option']('-p,\x20--profile\x20<name>',a2_0x49a146(0x20b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x33f),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)',a2_0x49a146(0x1b5))[a2_0x49a146(0x2c9)]('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')['option'](a2_0x49a146(0x177),a2_0x49a146(0x1cf))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c1),a2_0x49a146(0x21c))[a2_0x49a146(0x2c9)](a2_0x49a146(0x346),a2_0x49a146(0x2a8))[a2_0x49a146(0x2c9)]('--tsv',a2_0x49a146(0x31b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2ad),a2_0x49a146(0x27c))[a2_0x49a146(0x2c9)](a2_0x49a146(0x17a),a2_0x49a146(0x1a0))[a2_0x49a146(0x2c9)](a2_0x49a146(0x25e),a2_0x49a146(0x17b),![])[a2_0x49a146(0x2c9)](a2_0x49a146(0x1af),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x49a146(0x2c9)](a2_0x49a146(0x16f),a2_0x49a146(0x2d9),![])[a2_0x49a146(0x2c9)](a2_0x49a146(0x365),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x159),a2_0x49a146(0x2a2))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f1),a2_0x49a146(0x2a7),'30')[a2_0x49a146(0x2c9)]('--dry-run','Preview\x20operation\x20without\x20executing',![])[a2_0x49a146(0x2c9)]('-y,\x20--yes','Skip\x20confirmation\x20prompts',![])[a2_0x49a146(0x2c9)](a2_0x49a146(0x305),a2_0x49a146(0x287))[a2_0x49a146(0x2c9)](a2_0x49a146(0x36b),a2_0x49a146(0x1c2))[a2_0x49a146(0x2c9)](a2_0x49a146(0x345),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x35c),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x22b),a2_0x49a146(0x2ba)),program[a2_0x49a146(0x1e9)]({'formatHelp':(_0x5b0cff,_0x116e2a)=>{const _0x195dbc=a2_0x49a146,_0x36ae93=_0x116e2a[_0x195dbc(0x399)](_0x5b0cff,_0x116e2a),_0x45f33a=0x2,_0x5eaa27=0x2;function _0x409675(_0x58716d){const _0x1a3016=_0x195dbc,_0xaddb84=_0x58716d;return!!(_0xaddb84[_0x1a3016(0x279)]||_0xaddb84[_0x1a3016(0x364)]);}function _0x6b8f35(_0xe9871b,_0x4a0621){const _0x19e2f2=_0x195dbc;if(_0x4a0621){const _0x494250=''+_0xe9871b[_0x19e2f2(0x1db)](_0x36ae93+_0x5eaa27)+_0x4a0621;return _0x494250;}return _0xe9871b;}function _0x38f533(_0x51b182){const _0x4778e4=_0x195dbc;return _0x51b182[_0x4778e4(0x1c4)]('\x0a')[_0x4778e4(0x398)](/^/gm,'\x20'[_0x4778e4(0x282)](_0x45f33a));}const _0x19db53=[];_0x19db53[_0x195dbc(0x34c)](_0x195dbc(0x198)+_0x116e2a[_0x195dbc(0x170)](_0x5b0cff));const _0x1dbdeb=_0x116e2a[_0x195dbc(0x357)](_0x5b0cff);_0x1dbdeb&&(_0x19db53[_0x195dbc(0x34c)](''),_0x19db53[_0x195dbc(0x34c)](_0x1dbdeb));const _0xaa8aa2=_0x5b0cff[_0x195dbc(0x1d3)][_0x195dbc(0x16e)](_0x28b62b=>!_0x409675(_0x28b62b));if(_0xaa8aa2[_0x195dbc(0x2e0)]>0x0){if(_0x5b0cff[_0x195dbc(0x1b7)]()==='tdx'){const _0x3a820f=_0x5b0cff['opts'](),_0x271882=!_0x3a820f[_0x195dbc(0x28f)]&&process['stdout'][_0x195dbc(0x154)],_0x9048f2=COMMAND_CATEGORIES,_0x422042=(_0x234622,_0x46e6b6)=>_0x271882?_0x46e6b6(_0x234622):_0x234622,_0x43702d=new Map();_0xaa8aa2[_0x195dbc(0x1d9)](_0x198b88=>{const _0x460ff3=_0x195dbc;_0x43702d['set'](_0x198b88[_0x460ff3(0x1b7)](),_0x198b88);}),_0x9048f2[_0x195dbc(0x1d9)](_0x5c1d7a=>{const _0x3add5d=_0x195dbc,_0x5b262e=_0x5c1d7a[_0x3add5d(0x1d3)]['flatMap'](_0x2840c1=>_0x43702d[_0x3add5d(0x355)](_0x2840c1)??[]);if(_0x5b262e['length']>0x0){_0x19db53[_0x3add5d(0x34c)](''),_0x19db53[_0x3add5d(0x34c)](_0x422042(_0x5c1d7a['name']+':',_0x5c1d7a[_0x3add5d(0x164)]));const _0x335afd=_0x5b262e['map'](_0x22f276=>{const _0x4087e1=_0x3add5d,_0x45c0b4=_0x116e2a[_0x4087e1(0x237)](_0x22f276),_0x2449a4=_0x116e2a[_0x4087e1(0x323)](_0x22f276);return _0x6b8f35(_0x45c0b4,_0x2449a4);});_0x19db53[_0x3add5d(0x34c)](_0x38f533(_0x335afd));}}),_0x19db53[_0x195dbc(0x34c)](''),_0x19db53['push']('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x483e63=_0xaa8aa2[_0x195dbc(0x378)](_0x4ae005=>{const _0x504849=_0x195dbc,_0x484768=_0x116e2a[_0x504849(0x237)](_0x4ae005),_0x4510c1=_0x116e2a['subcommandDescription'](_0x4ae005);return _0x6b8f35(_0x484768,_0x4510c1);});_0x19db53[_0x195dbc(0x34c)](''),_0x19db53[_0x195dbc(0x34c)](_0x195dbc(0x247)),_0x19db53['push'](_0x38f533(_0x483e63));}}if(showBriefHelp&&_0x5b0cff[_0x195dbc(0x1b7)]()===_0x195dbc(0x253))_0x19db53[_0x195dbc(0x34c)](''),_0x19db53[_0x195dbc(0x34c)](_0x195dbc(0x1cb));else{const _0x6f25f2=_0x5b0cff['options'][_0x195dbc(0x16e)](_0x21ef8e=>!_0x409675(_0x21ef8e));if(_0x6f25f2[_0x195dbc(0x2e0)]>0x0){const _0x2a5774=_0x6f25f2[_0x195dbc(0x378)](_0x3928f4=>{const _0x3d6ae1=_0x195dbc,_0x26c2f4=_0x116e2a['optionTerm'](_0x3928f4),_0x295bf8=_0x116e2a[_0x3d6ae1(0x299)](_0x3928f4);return _0x6b8f35(_0x26c2f4,_0x295bf8);});_0x19db53[_0x195dbc(0x34c)](''),_0x19db53[_0x195dbc(0x34c)]('Options:'),_0x19db53['push'](_0x38f533(_0x2a5774));}}const _0x2fa8fb=(_0x5b0cff[_0x195dbc(0x174)]||[])[_0x195dbc(0x16e)](_0x45c9a2=>!_0x409675(_0x45c9a2));if(_0x2fa8fb[_0x195dbc(0x2e0)]>0x0){const _0x1af582=_0x2fa8fb[_0x195dbc(0x378)](_0x4d6429=>{const _0x54b297=_0x116e2a['argumentTerm'](_0x4d6429),_0x25e2e3=_0x116e2a['argumentDescription'](_0x4d6429);return _0x6b8f35(_0x54b297,_0x25e2e3);});_0x19db53['push'](''),_0x19db53[_0x195dbc(0x34c)](_0x195dbc(0x1dc)),_0x19db53[_0x195dbc(0x34c)](_0x38f533(_0x1af582));}return _0x19db53[_0x195dbc(0x1c4)]('\x0a')+'\x0a';},'subcommandTerm':_0x17d9a6=>{const _0xf934fb=a2_0x49a146,_0x14e67b=(_0x17d9a6['registeredArguments']||[])['map'](_0x1d442e=>_0x1d442e[_0xf934fb(0x260)]?'<'+_0x1d442e[_0xf934fb(0x1b7)]()+'>':'['+_0x1d442e[_0xf934fb(0x1b7)]()+']')[_0xf934fb(0x1c4)]('\x20'),_0x7f01ba=_0x17d9a6[_0xf934fb(0x2bd)](),_0x562511=_0x7f01ba[_0xf934fb(0x2e0)]>0x0?_0x17d9a6['name']()+',\x20'+_0x7f01ba[_0xf934fb(0x1c4)](',\x20'):_0x17d9a6['name']();return _0x14e67b?_0x562511+'\x20'+_0x14e67b:_0x562511;}}),program[a2_0x49a146(0x2a4)](a2_0x49a146(0x367),_0x320521=>{const _0x289553=a2_0x49a146,_0x5037c9=_0x320521[_0x289553(0x1c1)]();if(_0x5037c9[_0x289553(0x214)]){const _0x81f7ad=resolve(_0x5037c9[_0x289553(0x214)]),_0x5d4130=_0x81f7ad!==_0x5037c9[_0x289553(0x214)]?_0x289553(0x24b)+_0x81f7ad+')':'';if(!existsSync(_0x81f7ad))throw new SDKError(ErrorCode[_0x289553(0x18e)],'Directory\x20does\x20not\x20exist:\x20'+_0x5037c9[_0x289553(0x214)]+_0x5d4130,undefined,{'helpText':_0x289553(0x2ac)});const _0x4b04f8=statSync(_0x81f7ad);if(!_0x4b04f8['isDirectory']())throw new SDKError(ErrorCode[_0x289553(0x18e)],_0x289553(0x2d7)+_0x5037c9[_0x289553(0x214)]+_0x5d4130,undefined,{'helpText':_0x289553(0x26d)});process[_0x289553(0x1aa)](_0x81f7ad);}if(!_0x5037c9[_0x289553(0x356)]){if(_0x5037c9['table'])_0x5037c9[_0x289553(0x356)]=_0x289553(0x168);else{if(_0x5037c9['json'])_0x5037c9[_0x289553(0x356)]='json';else{if(_0x5037c9['jsonl'])_0x5037c9[_0x289553(0x356)]='jsonl';else _0x5037c9[_0x289553(0x1f5)]&&(_0x5037c9[_0x289553(0x356)]=_0x289553(0x1f5));}}}_0x5037c9['in']&&!_0x5037c9[_0x289553(0x1df)]&&(_0x5037c9['database']=_0x5037c9['in']);if(_0x5037c9['trace'])_0x5037c9[_0x289553(0x37e)]=LogLevel['TRACE'];else{if(_0x5037c9['debug'])_0x5037c9[_0x289553(0x37e)]=LogLevel[_0x289553(0x26a)];else _0x5037c9['logLevel']===undefined&&(_0x5037c9[_0x289553(0x37e)]=LogLevel[_0x289553(0x295)]);}});async function createTDXInstance(_0x4176e7){const _0xd2d344=a2_0x49a146,_0x52086b=await GlobalContext[_0xd2d344(0x2d3)](_0x4176e7);return _0x52086b[_0xd2d344(0x2a1)](_0x4176e7),TDX[_0xd2d344(0x1a4)]({'site':_0x52086b[_0xd2d344(0x38c)],'apiKey':_0x52086b[_0xd2d344(0x21d)],'logLevel':_0x52086b[_0xd2d344(0x37e)],'profile':_0x52086b[_0xd2d344(0x242)]});}const databaseCmd=program[a2_0x49a146(0x31c)]('database')[a2_0x49a146(0x1d8)]('db')['description']('Database\x20management\x20commands'),databaseListAction=async(_0x56999e,_0x4f6f3b)=>{const _0x6c1095=a2_0x49a146,_0x34cc13=new DatabasesCommand(),_0x2c484c=program[_0x6c1095(0x1c1)](),_0x336a65=await createTDXInstance(_0x2c484c),_0x30a231=await _0x34cc13['run']({'options':{..._0x2c484c,..._0x4f6f3b},'args':_0x56999e?[_0x56999e]:[],'tdx':_0x336a65});process['exit'](_0x30a231);};databaseCmd[a2_0x49a146(0x31c)]('list\x20[pattern]')[a2_0x49a146(0x1d1)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x49a146(0x36d)](databaseListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x372),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x184))[a2_0x49a146(0x36d)](databaseListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x1e4))[a2_0x49a146(0x1d1)](a2_0x49a146(0x301))[a2_0x49a146(0x2c9)]('--agent\x20<ref>',a2_0x49a146(0x375))[a2_0x49a146(0x2c9)]('--new',a2_0x49a146(0x235))['action'](async(_0xcca4c7,_0x11504f)=>{const _0x48eea1=a2_0x49a146,_0x427608=new ChatCommand(),_0x4a315b=program[_0x48eea1(0x1c1)](),_0x2b15bd=await createTDXInstance(_0x4a315b),_0x1ad4ad=await _0x427608[_0x48eea1(0x17d)]({'options':{..._0x4a315b,..._0x11504f},'args':_0xcca4c7,'tdx':_0x2b15bd});process[_0x48eea1(0x27d)](_0x1ad4ad);});const apiCmd=program['command']('api\x20[endpoint]')[a2_0x49a146(0x249)](a2_0x49a146(0x284))[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),'\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_0x49a146(0x2c9)]('-X,\x20--method\x20<method>',a2_0x49a146(0x2c8),a2_0x49a146(0x353))[a2_0x49a146(0x2c9)]('--data\x20<data>','Request\x20body\x20as\x20JSON\x20string')[a2_0x49a146(0x2c9)](a2_0x49a146(0x21f),'Read\x20request\x20body\x20from\x20file')[a2_0x49a146(0x2c9)]('-H,\x20--header\x20<header>',a2_0x49a146(0x33a),(_0x256455,_0x13a0cf)=>{return _0x13a0cf?[..._0x13a0cf,_0x256455]:[_0x256455];})[a2_0x49a146(0x2c9)](a2_0x49a146(0x2f4),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x1feac4,_0x41f657)=>{const _0x2df64a=a2_0x49a146;if(!_0x1feac4){apiCmd[_0x2df64a(0x14e)]();return;}const _0x4d7452=new ApiCommand(),_0x48c177=program[_0x2df64a(0x1c1)](),_0x51e171=await createTDXInstance(_0x48c177),_0x4a682b=await _0x4d7452[_0x2df64a(0x17d)]({'options':{..._0x48c177,..._0x41f657},'args':[_0x1feac4],'tdx':_0x51e171});process[_0x2df64a(0x27d)](_0x4a682b);}),tableCmd=program[a2_0x49a146(0x31c)]('table')['description']('Table\x20management\x20commands'),tableListAction=async(_0x1c71d1,_0x5e415b)=>{const _0x129be6=a2_0x49a146,_0x5f20e9=new TablesCommand(),_0x3c8c28=program[_0x129be6(0x1c1)](),_0x5cc66a=await createTDXInstance(_0x3c8c28);_0x5e415b['in']&&(_0x5e415b[_0x129be6(0x1df)]=_0x5e415b['in']);const _0x784ff4=await _0x5f20e9[_0x129be6(0x17d)]({'options':{..._0x3c8c28,..._0x5e415b},'args':_0x1c71d1?[_0x1c71d1]:[],'tdx':_0x5cc66a});process[_0x129be6(0x27d)](_0x784ff4);};tableCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x19a))[a2_0x49a146(0x2c9)]('-d,\x20--database\x20<database>',a2_0x49a146(0x2f2))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1cc),a2_0x49a146(0x386))[a2_0x49a146(0x36d)](tableListAction),program['command'](a2_0x49a146(0x27f),{'hidden':!![]})[a2_0x49a146(0x1d1)]('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x49a146(0x2c9)]('-d,\x20--database\x20<database>',a2_0x49a146(0x2f2))['option'](a2_0x49a146(0x1cc),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x2fb))['description'](a2_0x49a146(0x317))[a2_0x49a146(0x2c9)](a2_0x49a146(0x204),a2_0x49a146(0x14d))[a2_0x49a146(0x2c9)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0xb7edbb,_0xc47f52)=>{const _0x324318=a2_0x49a146,_0x70380a=new ShowCommand(),_0x3b9849=program[_0x324318(0x1c1)](),_0x5b9995=await createTDXInstance(_0x3b9849);_0xc47f52['in']&&(_0xc47f52[_0x324318(0x1df)]=_0xc47f52['in']);const _0x4cdab4=await _0x70380a['run']({'options':{..._0x3b9849,..._0xc47f52},'args':_0xb7edbb?[_0xb7edbb]:[],'tdx':_0x5b9995});process['exit'](_0x4cdab4);}),program[a2_0x49a146(0x31c)](a2_0x49a146(0x1f6))[a2_0x49a146(0x1d8)](a2_0x49a146(0x19f))[a2_0x49a146(0x1d1)](a2_0x49a146(0x366))[a2_0x49a146(0x2c9)](a2_0x49a146(0x204),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1cc),a2_0x49a146(0x386))[a2_0x49a146(0x36d)](async(_0x23a6f6,_0x1603e6)=>{const _0x1d434b=a2_0x49a146,_0x9d6242=new DescribeCommand(),_0x58384c=program['opts'](),_0x5c80c8=await createTDXInstance(_0x58384c);_0x1603e6['in']&&(_0x1603e6[_0x1d434b(0x1df)]=_0x1603e6['in']);const _0x10ebc0=await _0x9d6242[_0x1d434b(0x17d)]({'options':{..._0x58384c,..._0x1603e6},'args':_0x23a6f6?[_0x23a6f6]:[],'tdx':_0x5c80c8});process[_0x1d434b(0x27d)](_0x10ebc0);}),program['command']('query\x20[sql]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x1a3))[a2_0x49a146(0x2c9)](a2_0x49a146(0x204),a2_0x49a146(0x2a6))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1cc),a2_0x49a146(0x386))[a2_0x49a146(0x2c9)](a2_0x49a146(0x17c),'Trino\x20catalog\x20(default:\x20td)')[a2_0x49a146(0x2c9)]('-f,\x20--file\x20<path>',a2_0x49a146(0x306))['option']('--limit\x20<rows>',a2_0x49a146(0x36c),'40')[a2_0x49a146(0x36d)](async(_0x2bdc19,_0x122827)=>{const _0x3715a2=a2_0x49a146,_0x24473d=new QueryCommand(),_0x50d750=program['opts'](),_0x4d0158=await createTDXInstance(_0x50d750);_0x122827['in']&&(_0x122827[_0x3715a2(0x1df)]=_0x122827['in']);const _0x7cfb04=await _0x24473d[_0x3715a2(0x17d)]({'options':{..._0x50d750,..._0x122827},'args':_0x2bdc19?[_0x2bdc19]:[],'tdx':_0x4d0158});process['exit'](_0x7cfb04);});const segmentCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x392))[a2_0x49a146(0x1d8)]('sg')[a2_0x49a146(0x1d1)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x5a9675,_0x2ad8b2)=>{const _0x5f1540=a2_0x49a146,_0x36f3c8=new SegmentsCommand(),_0x504afb=program['opts'](),_0x1b21f7=await createTDXInstance(_0x504afb),_0x4b8470=await _0x36f3c8[_0x5f1540(0x17d)]({'options':{..._0x504afb,..._0x2ad8b2},'args':_0x5a9675?[_0x5a9675]:[],'tdx':_0x1b21f7});process[_0x5f1540(0x27d)](_0x4b8470);};segmentCmd['command']('list\x20[path]')[a2_0x49a146(0x1d1)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x49a146(0x2c9)](a2_0x49a146(0x29d),a2_0x49a146(0x30f))[a2_0x49a146(0x2c9)](a2_0x49a146(0x268),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x49a146(0x36d)](segmentListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x396),{'hidden':!![]})[a2_0x49a146(0x1d1)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')['option'](a2_0x49a146(0x29d),a2_0x49a146(0x30f))[a2_0x49a146(0x2c9)](a2_0x49a146(0x268),a2_0x49a146(0x212),'10')[a2_0x49a146(0x36d)](segmentListAction),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x234),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x152))[a2_0x49a146(0x36d)](async(_0x458e1f,_0x4de0f5)=>{const _0x47b32a=a2_0x49a146,_0x29d964=new SegmentUseCommand(),_0x1a0960=program[_0x47b32a(0x1c1)](),_0x99f8da=await createTDXInstance(_0x1a0960),_0x5bc5f0=await _0x29d964[_0x47b32a(0x17d)]({'options':{..._0x1a0960,..._0x4de0f5},'args':[_0x458e1f],'tdx':_0x99f8da});process[_0x47b32a(0x27d)](_0x5bc5f0);});const segmentViewAction=async(_0x5447f4,_0x1c44de)=>{const _0x25db0b=a2_0x49a146,_0x246ba2=new SegmentViewCommand(),_0x248dea=program[_0x25db0b(0x1c1)](),_0x4fcb69=await createTDXInstance(_0x248dea),_0x175ea6=await _0x246ba2['run']({'options':{..._0x248dea,..._0x1c44de},'args':_0x5447f4?[_0x5447f4]:[],'tdx':_0x4fcb69});process['exit'](_0x175ea6);};segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2da))[a2_0x49a146(0x1d1)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2cc),a2_0x49a146(0x254))[a2_0x49a146(0x36d)](segmentViewAction),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x236),{'hidden':!![]})[a2_0x49a146(0x1d8)](a2_0x49a146(0x2ae))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2cc),a2_0x49a146(0x254))[a2_0x49a146(0x1d1)](a2_0x49a146(0x300))[a2_0x49a146(0x36d)](segmentViewAction),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x219))['description']('Show\x20segment\x20schema\x20(column\x20types)')['action'](async(_0x55dfea,_0x320247)=>{const _0x520ae9=a2_0x49a146,_0x5e6ee7=new SegmentDescCommand(),_0x2aaa8e=program[_0x520ae9(0x1c1)](),_0x2985bc=await createTDXInstance(_0x2aaa8e),_0x5bfbbb=await _0x5e6ee7[_0x520ae9(0x17d)]({'options':{..._0x2aaa8e,..._0x320247},'args':_0x55dfea?[_0x55dfea]:[],'tdx':_0x2985bc});process[_0x520ae9(0x27d)](_0x5bfbbb);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2af))[a2_0x49a146(0x1d1)]('Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0x74cc10,_0x10a966)=>{const _0x38026c=a2_0x49a146,_0x40d9ab=new SegmentShowCommand(),_0x338c17=program[_0x38026c(0x1c1)](),_0x1ece02=await createTDXInstance(_0x338c17),_0xb468de=await _0x40d9ab['run']({'options':{..._0x338c17,..._0x10a966},'args':_0x74cc10?[_0x74cc10]:[],'tdx':_0x1ece02});process[_0x38026c(0x27d)](_0xb468de);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x209),{'hidden':!![]})['description']('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')['action'](async(_0x1f5d32,_0x4e4298)=>{const _0x4a9376=a2_0x49a146,_0x17bfd5=new SegmentFolderListCommand(),_0x3ce28e=program['opts'](),_0xad38fe=await createTDXInstance(_0x3ce28e),_0x2020f6=await _0x17bfd5[_0x4a9376(0x17d)]({'options':{..._0x3ce28e,..._0x4e4298},'args':[_0x1f5d32],'tdx':_0xad38fe});process[_0x4a9376(0x27d)](_0x2020f6);});const folderCmd=segmentCmd['command']('folder',{'hidden':!![]})[a2_0x49a146(0x1d1)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x304))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2ab))[a2_0x49a146(0x36d)](async(_0x375cb9,_0x596ffc)=>{const _0x39ed56=a2_0x49a146,_0x229690=new SegmentFolderShowCommand(),_0xbbf0e=program['opts'](),_0x30500b=await createTDXInstance(_0xbbf0e),_0x2b9553=await _0x229690[_0x39ed56(0x17d)]({'options':{..._0xbbf0e,..._0x596ffc},'args':[_0x375cb9],'tdx':_0x30500b});process[_0x39ed56(0x27d)](_0x2b9553);}),segmentCmd[a2_0x49a146(0x31c)]('sql\x20[segment_name]')[a2_0x49a146(0x1d1)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x49a146(0x36d)](async(_0x12161b,_0x44977c)=>{const _0x38eed5=a2_0x49a146,_0x1089f8=new SegmentSQLCommand(),_0x2d3c35=program[_0x38eed5(0x1c1)](),_0x2e5017=await createTDXInstance(_0x2d3c35),_0x3e4912=await _0x1089f8[_0x38eed5(0x17d)]({'options':{..._0x2d3c35,..._0x44977c},'args':_0x12161b?[_0x12161b]:[],'tdx':_0x2e5017});process[_0x38eed5(0x27d)](_0x3e4912);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x18b))[a2_0x49a146(0x1d1)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x49a146(0x36d)](async(_0x601652,_0x139c7e)=>{const _0x89178c=a2_0x49a146,_0x3c1a25=new SegmentFieldsCommand(),_0x1b89db=program[_0x89178c(0x1c1)](),_0x3f9986=await createTDXInstance(_0x1b89db),_0x2e09f6=await _0x3c1a25['run']({'options':{..._0x1b89db,..._0x139c7e},'args':_0x601652?[_0x601652]:[],'tdx':_0x3f9986});process[_0x89178c(0x27d)](_0x2e09f6);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1de))[a2_0x49a146(0x1d1)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x339))[a2_0x49a146(0x2c9)]('--dry-run',a2_0x49a146(0x2f1))[a2_0x49a146(0x36d)](async(_0x6a7f4,_0xc30060)=>{const _0x5061d3=a2_0x49a146,_0x2765ae=new SegmentPullCommand(),_0x392ba6=program[_0x5061d3(0x1c1)](),_0xe3bd1=await createTDXInstance(_0x392ba6),_0x127cc0=await _0x2765ae[_0x5061d3(0x17d)]({'options':{..._0x392ba6,..._0xc30060},'args':_0x6a7f4?[_0x6a7f4]:[],'tdx':_0xe3bd1});process['exit'](_0x127cc0);}),segmentCmd['command'](a2_0x49a146(0x229))[a2_0x49a146(0x1d1)](a2_0x49a146(0x29f))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x339))['option'](a2_0x49a146(0x266),a2_0x49a146(0x2f1))['option'](a2_0x49a146(0x27e),a2_0x49a146(0x330))[a2_0x49a146(0x36d)](async(_0x241f85,_0x54aff2)=>{const _0x5eebf3=a2_0x49a146,_0x3b8327=new SegmentPushCommand(),_0x2bf999=program[_0x5eebf3(0x1c1)](),_0x3d1fef=await createTDXInstance(_0x2bf999),_0x56fa47=await _0x3b8327[_0x5eebf3(0x17d)]({'options':{..._0x2bf999,..._0x54aff2},'args':_0x241f85?[_0x241f85]:[],'tdx':_0x3d1fef});process['exit'](_0x56fa47);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2cd))[a2_0x49a146(0x1d1)](a2_0x49a146(0x288))['action'](async(_0x2a8b3d,_0x22d7da)=>{const _0x3be62b=a2_0x49a146,_0x1e3256=new SegmentValidateCommand(),_0x5bd7c6=program[_0x3be62b(0x1c1)](),_0x22300e=await createTDXInstance(_0x5bd7c6),_0x2859cf=await _0x1e3256[_0x3be62b(0x17d)]({'options':{..._0x5bd7c6,..._0x22d7da},'args':_0x2a8b3d?[_0x2a8b3d]:[],'tdx':_0x22300e});process[_0x3be62b(0x27d)](_0x2859cf);}),segmentCmd['command'](a2_0x49a146(0x199),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x293))['option'](a2_0x49a146(0x2b3),'Segment\x20description')['option'](a2_0x49a146(0x36e),a2_0x49a146(0x343))[a2_0x49a146(0x2c9)](a2_0x49a146(0x158),a2_0x49a146(0x163))[a2_0x49a146(0x2c9)]('--folder\x20<name>',a2_0x49a146(0x1a1))[a2_0x49a146(0x2c9)](a2_0x49a146(0x243),a2_0x49a146(0x384))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f3),a2_0x49a146(0x262))[a2_0x49a146(0x2c9)](a2_0x49a146(0x371),a2_0x49a146(0x18a))[a2_0x49a146(0x36d)](async(_0x7b0c73,_0x5e14f2)=>{const _0x2ff68b=a2_0x49a146,_0x27c0d9=new SegmentCreateCommand(),_0x368f9f=program[_0x2ff68b(0x1c1)](),_0x42b201=await createTDXInstance(_0x368f9f),_0x47350e=await _0x27c0d9[_0x2ff68b(0x17d)]({'options':{..._0x368f9f,..._0x5e14f2},'args':[_0x7b0c73],'tdx':_0x42b201});process[_0x2ff68b(0x27d)](_0x47350e);}),segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x19b),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x156))[a2_0x49a146(0x2c9)](a2_0x49a146(0x23f),a2_0x49a146(0x2f6))[a2_0x49a146(0x2c9)]('--description\x20<text>',a2_0x49a146(0x334))[a2_0x49a146(0x2c9)]('--rule\x20<json>',a2_0x49a146(0x2d0))[a2_0x49a146(0x2c9)](a2_0x49a146(0x158),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x49a146(0x1e6),a2_0x49a146(0x2f8))['option'](a2_0x49a146(0x243),a2_0x49a146(0x384))[a2_0x49a146(0x36d)](async(_0xa6445c,_0x3b22f1)=>{const _0x14a4fd=a2_0x49a146,_0x303a29=new SegmentUpdateCommand(),_0x150f85=program[_0x14a4fd(0x1c1)](),_0x4a900c=await createTDXInstance(_0x150f85),_0x31355c=await _0x303a29['run']({'options':{..._0x150f85,..._0x3b22f1},'args':[_0xa6445c],'tdx':_0x4a900c});process[_0x14a4fd(0x27d)](_0x31355c);});const parentCmd=segmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1ac),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x315)),parentListAction=async(_0x487aa8,_0x2ca01d)=>{const _0x1f7967=a2_0x49a146,_0x3d46ca=new ParentSegmentListCommand(),_0x1ecf75=program[_0x1f7967(0x1c1)](),_0x1631d5=await createTDXInstance(_0x1ecf75),_0x50eae7=await _0x3d46ca[_0x1f7967(0x17d)]({'options':{..._0x1ecf75,..._0x2ca01d},'args':_0x487aa8?[_0x487aa8]:[],'tdx':_0x1631d5});process[_0x1f7967(0x27d)](_0x50eae7);};parentCmd['command'](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x250))[a2_0x49a146(0x36d)](parentListAction),segmentCmd['command'](a2_0x49a146(0x223),{'hidden':!![]})['description'](a2_0x49a146(0x205))[a2_0x49a146(0x36d)](parentListAction),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x354))['description'](a2_0x49a146(0x181))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2eb),a2_0x49a146(0x31d))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](async(_0x179fc0,_0x49ab11)=>{const _0x38e829=a2_0x49a146,_0xfe12f7=new ParentSegmentPullCommand(),_0x4daf2a=program[_0x38e829(0x1c1)](),_0x57ffad=await createTDXInstance(_0x4daf2a),_0x5e1b39=await _0xfe12f7[_0x38e829(0x17d)]({'options':{..._0x4daf2a,..._0x49ab11},'args':_0x179fc0?[_0x179fc0]:[],'tdx':_0x57ffad});process['exit'](_0x5e1b39);}),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2aa))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1da))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x30b))['action'](async(_0x4cb1da,_0x24ea43)=>{const _0x37fe93=a2_0x49a146,_0x21c3af=new ParentSegmentPushCommand(),_0x305131=program[_0x37fe93(0x1c1)](),_0x405900=await createTDXInstance(_0x305131),_0x348146=await _0x21c3af[_0x37fe93(0x17d)]({'options':{..._0x305131,..._0x24ea43},'args':_0x4cb1da?[_0x4cb1da]:[],'tdx':_0x405900});process['exit'](_0x348146);}),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2fd))[a2_0x49a146(0x1d1)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x49a146(0x2c9)](a2_0x49a146(0x377),a2_0x49a146(0x35d))['option'](a2_0x49a146(0x397),a2_0x49a146(0x29b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x32a),a2_0x49a146(0x263))[a2_0x49a146(0x2c9)](a2_0x49a146(0x30d),a2_0x49a146(0x2b5))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1b8),a2_0x49a146(0x160),a2_0x49a146(0x391))['action'](async(_0x23aca5,_0x4ff249)=>{const _0x3c3c69=a2_0x49a146,_0x22ce0a=new ParentSegmentValidateCommand(),_0xe1ab2a=program['opts'](),_0x188ae0=await createTDXInstance(_0xe1ab2a),_0x3a819f=await _0x22ce0a['run']({'options':{..._0xe1ab2a,..._0x4ff249},'args':_0x23aca5?[_0x23aca5]:[],'tdx':_0x188ae0});process[_0x3c3c69(0x27d)](_0x3a819f);}),parentCmd[a2_0x49a146(0x31c)]('preview\x20[file]')['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option'](a2_0x49a146(0x377),a2_0x49a146(0x2a0))['option'](a2_0x49a146(0x397),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x49a146(0x2c9)](a2_0x49a146(0x32a),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x49a146(0x2c9)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1b8),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x13070f,_0x352886)=>{const _0x5d313b=a2_0x49a146,_0x47ca9b=new ParentSegmentPreviewCommand(),_0x5ea07a=program[_0x5d313b(0x1c1)](),_0x435fbb=await createTDXInstance(_0x5ea07a),_0x6bc4c2=await _0x47ca9b[_0x5d313b(0x17d)]({'options':{..._0x5ea07a,..._0x352886},'args':_0x13070f?[_0x13070f]:[],'tdx':_0x435fbb});process[_0x5d313b(0x27d)](_0x6bc4c2);}),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x20d))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1e8))['option']('-y,\x20--yes',a2_0x49a146(0x30b))['action'](async(_0x2f5b2a,_0x18fbd4)=>{const _0x3b2acb=a2_0x49a146,_0x3b00c0=new ParentSegmentRunCommand(),_0x1a7290=program[_0x3b2acb(0x1c1)](),_0x823544=await createTDXInstance(_0x1a7290),_0x8c4b2b=await _0x3b00c0[_0x3b2acb(0x17d)]({'options':{..._0x1a7290,..._0x18fbd4},'args':_0x2f5b2a?[_0x2f5b2a]:[],'tdx':_0x823544});process[_0x3b2acb(0x27d)](_0x8c4b2b);});const parentSegmentCmd=program['command'](a2_0x49a146(0x2f3))[a2_0x49a146(0x1d8)]('ps')[a2_0x49a146(0x1d1)](a2_0x49a146(0x14f));parentSegmentCmd['command']('list\x20[pattern]')['description'](a2_0x49a146(0x250))[a2_0x49a146(0x36d)](parentListAction),parentSegmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x354))[a2_0x49a146(0x1d1)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2eb),a2_0x49a146(0x25d))[a2_0x49a146(0x2c9)]('-y,\x20--yes',a2_0x49a146(0x30b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c7),a2_0x49a146(0x322))['action'](async(_0x2248a4,_0x368521)=>{const _0x590abd=a2_0x49a146,_0x36f970=new ParentSegmentPullCommand(),_0x419a27=program[_0x590abd(0x1c1)](),_0x2682e9=await createTDXInstance(_0x419a27),_0x1afa81=await _0x36f970['run']({'options':{..._0x419a27,..._0x368521},'args':_0x2248a4?[_0x2248a4]:[],'tdx':_0x2682e9});process[_0x590abd(0x27d)](_0x1afa81);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x245))['option']('-y,\x20--yes',a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](async(_0x5a3104,_0x2d2792)=>{const _0x14824a=a2_0x49a146,_0x16242c=new ParentSegmentPushCommand(),_0x10d740=program[_0x14824a(0x1c1)](),_0x4a6ff1=await createTDXInstance(_0x10d740),_0x9fd52d=await _0x16242c[_0x14824a(0x17d)]({'options':{..._0x10d740,..._0x2d2792},'args':_0x5a3104?[_0x5a3104]:[],'tdx':_0x4a6ff1});process[_0x14824a(0x27d)](_0x9fd52d);}),parentSegmentCmd[a2_0x49a146(0x31c)]('validate\x20[name]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x20a))[a2_0x49a146(0x2c9)](a2_0x49a146(0x377),a2_0x49a146(0x35d))['option'](a2_0x49a146(0x397),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x49a146(0x32a),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x49a146(0x2c9)]('--enriched',a2_0x49a146(0x2b5))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x49a146(0x391))[a2_0x49a146(0x36d)](async(_0x599971,_0x3b7124)=>{const _0x1c62e4=a2_0x49a146,_0xe1ce97=new ParentSegmentValidateCommand(),_0xce5f62=program[_0x1c62e4(0x1c1)](),_0x2af752=await createTDXInstance(_0xce5f62),_0x31e0e4=await _0xe1ce97[_0x1c62e4(0x17d)]({'options':{..._0xce5f62,..._0x3b7124},'args':_0x599971?[_0x599971]:[],'tdx':_0x2af752});process[_0x1c62e4(0x27d)](_0x31e0e4);}),parentSegmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x187))[a2_0x49a146(0x1d1)](a2_0x49a146(0x248))[a2_0x49a146(0x2c9)](a2_0x49a146(0x377),a2_0x49a146(0x2a0))['option'](a2_0x49a146(0x397),a2_0x49a146(0x1a5))['option']('--behavior\x20[name]',a2_0x49a146(0x30e))[a2_0x49a146(0x2c9)](a2_0x49a146(0x30d),a2_0x49a146(0x37b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1b8),a2_0x49a146(0x160),a2_0x49a146(0x391))[a2_0x49a146(0x36d)](async(_0x1be703,_0x554672)=>{const _0xdacb00=a2_0x49a146,_0x4a6c0b=new ParentSegmentPreviewCommand(),_0x55ad57=program['opts'](),_0x5c5981=await createTDXInstance(_0x55ad57),_0x4c1396=await _0x4a6c0b[_0xdacb00(0x17d)]({'options':{..._0x55ad57,..._0x554672},'args':_0x1be703?[_0x1be703]:[],'tdx':_0x5c5981});process[_0xdacb00(0x27d)](_0x4c1396);}),parentSegmentCmd[a2_0x49a146(0x31c)]('run\x20[name]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x1e8))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x30b))['action'](async(_0x4b98a9,_0x1af5f9)=>{const _0x509e2f=a2_0x49a146,_0x401fc2=new ParentSegmentRunCommand(),_0x4c8aac=program[_0x509e2f(0x1c1)](),_0x1b4707=await createTDXInstance(_0x4c8aac),_0x2fbb3d=await _0x401fc2[_0x509e2f(0x17d)]({'options':{..._0x4c8aac,..._0x1af5f9},'args':_0x4b98a9?[_0x4b98a9]:[],'tdx':_0x1b4707});process[_0x509e2f(0x27d)](_0x2fbb3d);}),parentSegmentCmd['command'](a2_0x49a146(0x261))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1bc))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c1),'Output\x20as\x20JSON')[a2_0x49a146(0x2c9)](a2_0x49a146(0x346),'Output\x20as\x20JSON\x20Lines')[a2_0x49a146(0x36d)](async(_0x5926ee,_0x5b0979)=>{const _0x199397=a2_0x49a146,_0x2aed6b=new ParentSegmentFieldsCommand(),_0xb30f30=program['opts'](),_0xb42501=await createTDXInstance(_0xb30f30),_0x5f4452=await _0x2aed6b[_0x199397(0x17d)]({'options':{..._0xb30f30,..._0x5b0979},'args':_0x5926ee?[_0x5926ee]:[],'tdx':_0xb42501});process[_0x199397(0x27d)](_0x5f4452);}),parentSegmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x23d))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2ee))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2cc),a2_0x49a146(0x17f))['option'](a2_0x49a146(0x2c1),a2_0x49a146(0x2c6))[a2_0x49a146(0x2c9)]('--jsonl',a2_0x49a146(0x2f7))[a2_0x49a146(0x36d)](async(_0x58b4ea,_0x1cea1e)=>{const _0x506fbd=a2_0x49a146,_0x4fdec2=new ParentSegmentViewCommand(),_0x3d4f1f=program[_0x506fbd(0x1c1)](),_0x2f7668=await createTDXInstance(_0x3d4f1f),_0x3d6b0d=await _0x4fdec2['run']({'options':{..._0x3d4f1f,..._0x1cea1e},'args':_0x58b4ea?[_0x58b4ea]:[],'tdx':_0x2f7668});process['exit'](_0x3d6b0d);}),parentSegmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2b0))[a2_0x49a146(0x1d1)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c1),a2_0x49a146(0x2c6))[a2_0x49a146(0x2c9)](a2_0x49a146(0x346),a2_0x49a146(0x2f7))[a2_0x49a146(0x36d)](async(_0x546b2c,_0x17bf28)=>{const _0xeae270=a2_0x49a146,_0x239fd2=new ParentSegmentDescCommand(),_0x4b699d=program['opts'](),_0x1b88e2=await createTDXInstance(_0x4b699d),_0x313b2a=await _0x239fd2['run']({'options':{..._0x4b699d,..._0x17bf28},'args':_0x546b2c?[_0x546b2c]:[],'tdx':_0x1b88e2});process[_0xeae270(0x27d)](_0x313b2a);}),parentSegmentCmd['command']('sql\x20[name]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x38b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c1),a2_0x49a146(0x2c6))[a2_0x49a146(0x2c9)](a2_0x49a146(0x346),'Output\x20as\x20JSON\x20Lines')[a2_0x49a146(0x36d)](async(_0x17b598,_0x101e60)=>{const _0x490a17=a2_0x49a146,_0x3961dc=new ParentSegmentSQLCommand(),_0x181d28=program[_0x490a17(0x1c1)](),_0x531b5b=await createTDXInstance(_0x181d28),_0x55f00e=await _0x3961dc[_0x490a17(0x17d)]({'options':{..._0x181d28,..._0x101e60},'args':_0x17b598?[_0x17b598]:[],'tdx':_0x531b5b});process[_0x490a17(0x27d)](_0x55f00e);}),parentSegmentCmd['command'](a2_0x49a146(0x316))[a2_0x49a146(0x1d1)](a2_0x49a146(0x313))[a2_0x49a146(0x2c9)](a2_0x49a146(0x341),'Limit\x20number\x20of\x20rows')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2c1),'Output\x20as\x20JSON')['option'](a2_0x49a146(0x346),'Output\x20as\x20JSON\x20Lines')[a2_0x49a146(0x36d)](async(_0x35dad9,_0x44398e)=>{const _0x2ee8f7=a2_0x49a146,_0x463ee4=new ParentSegmentShowCommand(),_0x24172d=program[_0x2ee8f7(0x1c1)](),_0x2daf7e=await createTDXInstance(_0x24172d),_0x524f73=await _0x463ee4[_0x2ee8f7(0x17d)]({'options':{..._0x24172d,..._0x44398e},'args':_0x35dad9?[_0x35dad9]:[],'tdx':_0x2daf7e});process['exit'](_0x524f73);}),parentSegmentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x344))[a2_0x49a146(0x1d1)]('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x25e52b,_0x5cdee3)=>{const _0x449227=a2_0x49a146,_0x484674=new UseCommand(),_0x544780=program[_0x449227(0x1c1)](),_0x4c32c2=_0x25e52b?[_0x449227(0x1ce),_0x25e52b]:[],_0x10f5b2=await _0x484674['run']({'options':{..._0x544780,..._0x5cdee3},'args':_0x4c32c2,'tdx':null});process['exit'](_0x10f5b2);}),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x265))[a2_0x49a146(0x1d1)](a2_0x49a146(0x337))[a2_0x49a146(0x34b)](a2_0x49a146(0x2b8),a2_0x49a146(0x28c))[a2_0x49a146(0x34b)]('--table\x20<table>',a2_0x49a146(0x230))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2b3),'Parent\x20segment\x20description')[a2_0x49a146(0x2c9)](a2_0x49a146(0x21e),a2_0x49a146(0x38f))['option'](a2_0x49a146(0x2ef),a2_0x49a146(0x38e))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1a7),'Timezone\x20(e.g.,\x20America/Los_Angeles)')['option']('--attributes\x20<json>',a2_0x49a146(0x22d))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1fc),'Attributes\x20from\x20JSON\x20file')[a2_0x49a146(0x2c9)]('--behaviors\x20<json>',a2_0x49a146(0x2bf))['option'](a2_0x49a146(0x15a),a2_0x49a146(0x194))['option'](a2_0x49a146(0x240),a2_0x49a146(0x2ff))[a2_0x49a146(0x2c9)](a2_0x49a146(0x18f),'Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0x1ccd33,_0x45516d)=>{const _0xfc6f12=a2_0x49a146,_0x55afda=new ParentSegmentCreateCommand(),_0x1b7713=program[_0xfc6f12(0x1c1)](),_0x230594=await createTDXInstance(_0x1b7713),_0x5938f5=await _0x55afda[_0xfc6f12(0x17d)]({'options':{..._0x1b7713,..._0x45516d},'args':[_0x1ccd33],'tdx':_0x230594});process[_0xfc6f12(0x27d)](_0x5938f5);}),parentCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1ba))[a2_0x49a146(0x1d1)](a2_0x49a146(0x162))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2b3),a2_0x49a146(0x334))[a2_0x49a146(0x2c9)](a2_0x49a146(0x21e),a2_0x49a146(0x238))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2ef),a2_0x49a146(0x368))['option'](a2_0x49a146(0x1a7),a2_0x49a146(0x2d8))[a2_0x49a146(0x2c9)]('--add-attributes\x20<json>',a2_0x49a146(0x2b2))[a2_0x49a146(0x2c9)]('--add-attributes-file\x20<file>',a2_0x49a146(0x232))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2ec),a2_0x49a146(0x31e))[a2_0x49a146(0x2c9)](a2_0x49a146(0x376),a2_0x49a146(0x2df))[a2_0x49a146(0x36d)](async(_0x509d1f,_0x5072cb)=>{const _0x4cb64f=a2_0x49a146,_0x1c46e2=new ParentSegmentUpdateCommand(),_0x17082a=program[_0x4cb64f(0x1c1)](),_0x5da3c3=await createTDXInstance(_0x17082a),_0x4e750d=await _0x1c46e2['run']({'options':{..._0x17082a,..._0x5072cb},'args':[_0x509d1f],'tdx':_0x5da3c3});process[_0x4cb64f(0x27d)](_0x4e750d);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x217))['option'](a2_0x49a146(0x2b3),'Folder\x20description')[a2_0x49a146(0x2c9)](a2_0x49a146(0x231),'Parent\x20folder\x20name\x20for\x20nested\x20folders')[a2_0x49a146(0x36d)](async(_0x5c7b6c,_0xde8cdc,_0x2ee6d7)=>{const _0xec1489=a2_0x49a146,_0x4a6b78=new SegmentFolderCreateCommand(),_0x16b630=program[_0xec1489(0x1c1)](),_0x177acc=await createTDXInstance(_0x16b630),_0x1bfcd0=await _0x4a6b78['run']({'options':{..._0x16b630,..._0x2ee6d7},'args':[_0x5c7b6c,_0xde8cdc],'tdx':_0x177acc});process['exit'](_0x1bfcd0);}),program['command'](a2_0x49a146(0x1b1))['description'](a2_0x49a146(0x335))[a2_0x49a146(0x36d)](async(_0x1751f1,_0x285a9c)=>{const _0x3a1c44=a2_0x49a146,_0x1b6692=new ActivationsCommand(),_0x5de984=program['opts'](),_0x5ae46f=await createTDXInstance(_0x5de984),_0x2760e5=await _0x1b6692[_0x3a1c44(0x17d)]({'options':{..._0x5de984,..._0x285a9c},'args':[_0x1751f1],'tdx':_0x5ae46f});process[_0x3a1c44(0x27d)](_0x2760e5);});const workflowCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x1bd))[a2_0x49a146(0x1d8)]('wf')[a2_0x49a146(0x1d1)](a2_0x49a146(0x241)),wfProjectCmd=workflowCmd[a2_0x49a146(0x31c)]('project')[a2_0x49a146(0x1d1)](a2_0x49a146(0x327)),wfProjectListAction=async(_0x542cc9,_0x231b9d)=>{const _0x3b0619=a2_0x49a146,_0x511008=new WorkflowProjectsCommand(),_0x1270ed=program[_0x3b0619(0x1c1)](),_0x2f0aa7=await createTDXInstance(_0x1270ed),_0x5a8047=await _0x511008[_0x3b0619(0x17d)]({'options':{..._0x1270ed,..._0x231b9d},'args':_0x542cc9?[_0x542cc9]:[],'tdx':_0x2f0aa7});process['exit'](_0x5a8047);};wfProjectCmd['command'](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x22c))[a2_0x49a146(0x36d)](wfProjectListAction),workflowCmd['command'](a2_0x49a146(0x27b))[a2_0x49a146(0x1d1)](a2_0x49a146(0x33b))[a2_0x49a146(0x36d)](wfProjectListAction);const wfWorkflowListAction=async(_0x27ac9b,_0x4f38b9)=>{const _0x581e02=a2_0x49a146,_0x2547b6=new WorkflowWorkflowsCommand(),_0x35a3b6=program[_0x581e02(0x1c1)](),_0x2503c8=await createTDXInstance(_0x35a3b6),_0x49367e=await _0x2547b6[_0x581e02(0x17d)]({'options':{..._0x35a3b6,..._0x4f38b9},'args':_0x27ac9b?[_0x27ac9b]:[],'tdx':_0x2503c8});process[_0x581e02(0x27d)](_0x49367e);};workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x173))[a2_0x49a146(0x1d1)](a2_0x49a146(0x189))[a2_0x49a146(0x36d)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x361))[a2_0x49a146(0x1d1)](a2_0x49a146(0x269)),wfSessionListAction=async(_0x13c01a,_0xc6f9c2)=>{const _0x568ce3=a2_0x49a146,_0x4570e9=new WorkflowSessionsCommand(),_0x491d9c=program[_0x568ce3(0x1c1)](),_0x14ec16=await createTDXInstance(_0x491d9c),_0x5a50c0=await _0x4570e9['run']({'options':{..._0x491d9c,..._0xc6f9c2},'args':_0x13c01a?[_0x13c01a]:[],'tdx':_0x14ec16});process[_0x568ce3(0x27d)](_0x5a50c0);};wfSessionCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x21b))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x347),a2_0x49a146(0x213))[a2_0x49a146(0x2c9)]('--from\x20<timestamp>',a2_0x49a146(0x321))['option']('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x49a146(0x31c)]('sessions\x20[project]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x180))['option'](a2_0x49a146(0x347),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x195),a2_0x49a146(0x321))[a2_0x49a146(0x2c9)]('--to\x20<timestamp>',a2_0x49a146(0x25a))[a2_0x49a146(0x36d)](wfSessionListAction);const wfAttemptListAction=async(_0xc1ea2c,_0x3cb5b7)=>{const _0x12f45d=a2_0x49a146,_0x424eaa=new WorkflowAttemptsCommand(),_0x26a025=program['opts'](),_0x36c6a5=await createTDXInstance(_0x26a025),_0x4fb984=await _0x424eaa[_0x12f45d(0x17d)]({'options':{..._0x26a025,..._0x3cb5b7},'args':_0xc1ea2c?[_0xc1ea2c]:[],'tdx':_0x36c6a5});process[_0x12f45d(0x27d)](_0x4fb984);},attemptCmd=workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x36f))['description']('Workflow\x20attempt\x20management')[a2_0x49a146(0x33d)](a2_0x49a146(0x193),a2_0x49a146(0x332))[a2_0x49a146(0x33d)](a2_0x49a146(0x1eb),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x49a146(0x33d)](a2_0x49a146(0x1d4),'Task\x20name\x20for\x20logs\x20action')[a2_0x49a146(0x2c9)](a2_0x49a146(0x329),a2_0x49a146(0x274))['option']('--reason\x20<text>',a2_0x49a146(0x2c4))[a2_0x49a146(0x2c9)]('--resume-from\x20<task>',a2_0x49a146(0x308))[a2_0x49a146(0x2c9)](a2_0x49a146(0x27a),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')['option'](a2_0x49a146(0x1f2),a2_0x49a146(0x32f))[a2_0x49a146(0x2c9)]('--include-retried','Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x49a146(0x36d)](async(_0x316ba7,_0x17ec11,_0xb8961c,_0x263359)=>{const _0x3b2cf3=a2_0x49a146;if(_0x316ba7===_0x3b2cf3(0x1c9)){await wfAttemptListAction(_0x17ec11,_0x263359);return;}if(!_0x316ba7){attemptCmd[_0x3b2cf3(0x14e)]();return;}const _0x115813=program[_0x3b2cf3(0x1c1)](),_0x1f1145=await createTDXInstance(_0x115813);let _0x5f0318=0x0;if(!_0x17ec11){const _0x3b0fe8=new WorkflowAttemptCommand();_0x5f0318=await _0x3b0fe8[_0x3b2cf3(0x17d)]({'options':{..._0x115813,..._0x263359},'args':[_0x316ba7],'tdx':_0x1f1145});}else{if(_0x17ec11===_0x3b2cf3(0x333)){const _0x3b3765=new WorkflowLogsCommand();_0x5f0318=await _0x3b3765[_0x3b2cf3(0x17d)]({'options':{..._0x115813,..._0x263359},'args':_0xb8961c?[_0x316ba7,_0xb8961c]:[_0x316ba7],'tdx':_0x1f1145});}else{if(_0x17ec11===_0x3b2cf3(0x227)){const _0x3b25c4=new WorkflowTasksCommand();_0x5f0318=await _0x3b25c4[_0x3b2cf3(0x17d)]({'options':{..._0x115813,..._0x263359},'args':[_0x316ba7],'tdx':_0x1f1145});}else{if(_0x17ec11===_0x3b2cf3(0x1ee)){const _0x4fe2f9=new WorkflowKillCommand();_0x5f0318=await _0x4fe2f9['run']({'options':{..._0x115813,..._0x263359},'args':[_0x316ba7],'tdx':_0x1f1145});}else{if(_0x17ec11===_0x3b2cf3(0x16a)){const _0x1b2ff4=new WorkflowRetryCommand();_0x5f0318=await _0x1b2ff4[_0x3b2cf3(0x17d)]({'options':{..._0x115813,..._0x263359},'args':[_0x3b2cf3(0x37a)+_0x316ba7],'tdx':_0x1f1145});}else console[_0x3b2cf3(0x30a)](_0x3b2cf3(0x360)+_0x17ec11),console[_0x3b2cf3(0x30a)](_0x3b2cf3(0x312)),_0x5f0318=0x1;}}}}process[_0x3b2cf3(0x27d)](_0x5f0318);});attemptCmd[a2_0x49a146(0x31c)]('list\x20[project]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x37c))['option']('--include-retried',a2_0x49a146(0x2e2))[a2_0x49a146(0x36d)](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x49a146(0x1d1)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f0),'Include\x20retried\x20attempts')[a2_0x49a146(0x36d)](wfAttemptListAction),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2d4))['description'](a2_0x49a146(0x2e5))['option'](a2_0x49a146(0x15d),a2_0x49a146(0x192))['option'](a2_0x49a146(0x2e6),a2_0x49a146(0x1ef))[a2_0x49a146(0x2c9)](a2_0x49a146(0x20f),a2_0x49a146(0x14a))['action'](async(_0x4da9e3,_0x234c36)=>{const _0x4c9782=a2_0x49a146,_0x14da58=new WorkflowTimelineCommand(),_0x1d1364=program[_0x4c9782(0x1c1)](),_0x20479b=await createTDXInstance(_0x1d1364),_0x252c20=await _0x14da58[_0x4c9782(0x17d)]({'options':{..._0x1d1364,..._0x234c36},'args':_0x4da9e3?[_0x4da9e3]:[],'tdx':_0x20479b});process[_0x4c9782(0x27d)](_0x252c20);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x31f))[a2_0x49a146(0x1d1)](a2_0x49a146(0x23c))[a2_0x49a146(0x2c9)](a2_0x49a146(0x19e),'Resume\x20from\x20specific\x20task')[a2_0x49a146(0x2c9)](a2_0x49a146(0x27a),a2_0x49a146(0x23b))[a2_0x49a146(0x36d)](async(_0x32b15d,_0x59bd70)=>{const _0x24303b=a2_0x49a146,_0x1d1604=new WorkflowRetryCommand(),_0x22760f=program[_0x24303b(0x1c1)](),_0x3488bd=await createTDXInstance(_0x22760f),_0x41eec8=await _0x1d1604['run']({'options':{..._0x22760f,..._0x59bd70},'args':[_0x32b15d],'tdx':_0x3488bd});process[_0x24303b(0x27d)](_0x41eec8);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x222))[a2_0x49a146(0x1d1)](a2_0x49a146(0x326))[a2_0x49a146(0x2c9)](a2_0x49a146(0x153),a2_0x49a146(0x2f9),(_0x23ba4f,_0x5efe5d=[])=>[..._0x5efe5d,_0x23ba4f],[])[a2_0x49a146(0x2c9)](a2_0x49a146(0x26f),a2_0x49a146(0x2c2))['action'](async(_0x44ac6a,_0x423473)=>{const _0x5983f4=a2_0x49a146,_0xb90717=new WorkflowRunCommand(),_0x3d0c74=program[_0x5983f4(0x1c1)](),_0x22419e=await createTDXInstance(_0x3d0c74),_0x16c5e1=await _0xb90717[_0x5983f4(0x17d)]({'options':{..._0x3d0c74,..._0x423473},'args':_0x44ac6a?[_0x44ac6a]:[],'tdx':_0x22419e});process[_0x5983f4(0x27d)](_0x16c5e1);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x388))['description'](a2_0x49a146(0x2c3))['option'](a2_0x49a146(0x1a8),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')['action'](async(_0x2c064e,_0x322a20,_0x45a6f4)=>{const _0x3e3e9e=a2_0x49a146,_0x179a66=new WorkflowDownloadCommand(),_0x186cde=program[_0x3e3e9e(0x1c1)](),_0x564794=await createTDXInstance(_0x186cde),_0xef604c=await _0x179a66[_0x3e3e9e(0x17d)]({'options':{..._0x186cde,..._0x45a6f4},'args':[_0x2c064e,_0x322a20||'.'],'tdx':_0x564794});process[_0x3e3e9e(0x27d)](_0xef604c);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x310))[a2_0x49a146(0x1d1)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1a8),a2_0x49a146(0x390))[a2_0x49a146(0x2c9)](a2_0x49a146(0x266),a2_0x49a146(0x226))['option']('-y,\x20--yes',a2_0x49a146(0x30b))['action'](async(_0x5cd771,_0x4e82c2,_0x543f2a)=>{const _0x225743=a2_0x49a146,_0x1f884b=new WorkflowPullCommand(),_0x49da49=program[_0x225743(0x1c1)](),_0x4a8370=await createTDXInstance(_0x49da49),_0x1227c1=await _0x1f884b[_0x225743(0x17d)]({'options':{..._0x49da49,..._0x543f2a},'args':_0x4e82c2?[_0x5cd771,_0x4e82c2]:[_0x5cd771],'tdx':_0x4a8370});process['exit'](_0x1227c1);}),workflowCmd[a2_0x49a146(0x31c)]('push\x20[source-dir]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x24c))[a2_0x49a146(0x2c9)]('--revision\x20<revision>',a2_0x49a146(0x1c6))['option'](a2_0x49a146(0x266),a2_0x49a146(0x271))[a2_0x49a146(0x2c9)](a2_0x49a146(0x352),'Skip\x20validation\x20of\x20.dig\x20files')['option']('-y,\x20--yes',a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](async(_0x39066e,_0x52dcf6)=>{const _0x196ff4=a2_0x49a146,_0x49214f=new WorkflowPushCommand(),_0x2dc420=program[_0x196ff4(0x1c1)](),_0x191033=await createTDXInstance(_0x2dc420),_0x5ebfaa=await _0x49214f[_0x196ff4(0x17d)]({'options':{..._0x2dc420,..._0x52dcf6},'args':_0x39066e?[_0x39066e]:[],'tdx':_0x191033});process[_0x196ff4(0x27d)](_0x5ebfaa);}),workflowCmd[a2_0x49a146(0x31c)]('upload\x20[project-name-or-dir]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x289))[a2_0x49a146(0x2c9)]('--name\x20<name>','Override\x20project\x20name')[a2_0x49a146(0x2c9)]('--revision\x20<revision>',a2_0x49a146(0x2db))['option'](a2_0x49a146(0x352),a2_0x49a146(0x1c8))[a2_0x49a146(0x36d)](async(_0x179aa,_0x11e0b5)=>{const _0x478bd3=a2_0x49a146,_0x1e0bf1=new WorkflowUploadCommand(),_0x2d568b=program[_0x478bd3(0x1c1)](),_0x5dfa74=await createTDXInstance(_0x2d568b),_0x44d107=await _0x1e0bf1[_0x478bd3(0x17d)]({'options':{..._0x2d568b,..._0x11e0b5},'args':_0x179aa?[_0x179aa]:[],'tdx':_0x5dfa74});process[_0x478bd3(0x27d)](_0x44d107);}),workflowCmd[a2_0x49a146(0x31c)]('clone\x20[source-dir]')[a2_0x49a146(0x1d1)](a2_0x49a146(0x270))[a2_0x49a146(0x2c9)](a2_0x49a146(0x244),a2_0x49a146(0x1d2))['option']('--revision\x20<revision>',a2_0x49a146(0x1c6))[a2_0x49a146(0x2c9)](a2_0x49a146(0x266),a2_0x49a146(0x1fa))[a2_0x49a146(0x2c9)](a2_0x49a146(0x352),a2_0x49a146(0x1c8))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](async(_0x61cf19,_0x370882)=>{const _0x2a30ef=a2_0x49a146,_0x283420=new WorkflowCloneCommand(),_0x372044=program[_0x2a30ef(0x1c1)](),_0x4749c0=await createTDXInstance(_0x372044),_0x21ae2f=await _0x283420[_0x2a30ef(0x17d)]({'options':{..._0x372044,..._0x370882},'args':_0x61cf19?[_0x61cf19]:[],'tdx':_0x4749c0});process['exit'](_0x21ae2f);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x26b))['description'](a2_0x49a146(0x370))[a2_0x49a146(0x36d)](async(_0x2c641a,_0x5977b4)=>{const _0x2fb9be=a2_0x49a146,_0x224fdd=new WorkflowDeleteCommand(),_0x52c5aa=program['opts'](),_0x2aaa36=await createTDXInstance(_0x52c5aa),_0x208617=await _0x224fdd[_0x2fb9be(0x17d)]({'options':{..._0x52c5aa,..._0x5977b4},'args':[_0x2c641a],'tdx':_0x2aaa36});process[_0x2fb9be(0x27d)](_0x208617);}),workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2ed))[a2_0x49a146(0x1d1)](a2_0x49a146(0x25c))[a2_0x49a146(0x2c9)](a2_0x49a146(0x292),a2_0x49a146(0x1c0))[a2_0x49a146(0x36d)](async(_0x4ac20e,_0x3dc3de)=>{const _0x21b585=a2_0x49a146,_0x479ad1=new WorkflowUseCommand(),_0x329411=program[_0x21b585(0x1c1)](),_0x1ec5c4=await createTDXInstance(_0x329411),_0x15482a=await _0x479ad1['run']({'options':{..._0x329411,..._0x3dc3de},'args':_0x4ac20e?[_0x4ac20e]:[],'tdx':_0x1ec5c4});process[_0x21b585(0x27d)](_0x15482a);});const wfSecretsCmd=workflowCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1b6))['description']('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x21b))[a2_0x49a146(0x1d1)](a2_0x49a146(0x325))[a2_0x49a146(0x36d)](async(_0x374fa9,_0x392db1)=>{const _0x1b6e11=a2_0x49a146,_0x32f964=new WorkflowSecretsListCommand(),_0x2f4968=program[_0x1b6e11(0x1c1)](),_0x217607=await createTDXInstance(_0x2f4968),_0xd58f4f=await _0x32f964[_0x1b6e11(0x17d)]({'options':{..._0x2f4968,..._0x392db1},'args':_0x374fa9?[_0x374fa9]:[],'tdx':_0x217607});process[_0x1b6e11(0x27d)](_0xd58f4f);}),wfSecretsCmd[a2_0x49a146(0x31c)]('set\x20<args...>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x1b2))[a2_0x49a146(0x36d)](async(_0x4580f1,_0x16b891)=>{const _0xaa1fc3=a2_0x49a146,_0x118fe0=new WorkflowSecretsSetCommand(),_0x16a10b=program['opts'](),_0x2efcea=await createTDXInstance(_0x16a10b),_0x3552b7=await _0x118fe0['run']({'options':{..._0x16a10b,..._0x16b891},'args':_0x4580f1,'tdx':_0x2efcea});process[_0xaa1fc3(0x27d)](_0x3552b7);}),wfSecretsCmd[a2_0x49a146(0x31c)]('delete\x20<args...>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x383))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),'Skip\x20confirmation\x20prompt')['action'](async(_0x3ec4c3,_0x33799d)=>{const _0x5a14d2=a2_0x49a146,_0x136390=new WorkflowSecretsDeleteCommand(),_0x19ded2=program[_0x5a14d2(0x1c1)](),_0x8f462=await createTDXInstance(_0x19ded2),_0x49ae89=await _0x136390['run']({'options':{..._0x19ded2,..._0x33799d},'args':_0x3ec4c3,'tdx':_0x8f462});process[_0x5a14d2(0x27d)](_0x49ae89);});const jobCmd=program['command'](a2_0x49a146(0x33c))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2cb)),jobListAction=async _0x574939=>{const _0xd42eca=a2_0x49a146,_0x1394c5=new JobListCommand(),_0xbae1d0=program[_0xd42eca(0x1c1)](),_0x5c0bbd=await createTDXInstance(_0xbae1d0),_0x40bccc=await _0x1394c5[_0xd42eca(0x17d)]({'options':{..._0xbae1d0,..._0x574939},'args':[],'tdx':_0x5c0bbd});process[_0xd42eca(0x27d)](_0x40bccc);};jobCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1c9))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2d2))[a2_0x49a146(0x2c9)](a2_0x49a146(0x347),a2_0x49a146(0x169))[a2_0x49a146(0x36d)](jobListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x374),{'hidden':!![]})['description'](a2_0x49a146(0x32b))[a2_0x49a146(0x2c9)]('--status\x20<status>',a2_0x49a146(0x169))[a2_0x49a146(0x36d)](jobListAction),jobCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x196))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2b4))[a2_0x49a146(0x36d)](async(_0x4e9ab0,_0x664368)=>{const _0x92e6a0=a2_0x49a146,_0x6149b7=new JobShowCommand(),_0x47cf6a=program[_0x92e6a0(0x1c1)](),_0x4a778c=await createTDXInstance(_0x47cf6a),_0x2ccdc6=await _0x6149b7[_0x92e6a0(0x17d)]({'options':{..._0x47cf6a,..._0x664368},'args':[_0x4e9ab0],'tdx':_0x4a778c});process['exit'](_0x2ccdc6);}),jobCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1be))[a2_0x49a146(0x1d1)](a2_0x49a146(0x259))[a2_0x49a146(0x36d)](async(_0x352fe9,_0x3612f7)=>{const _0x17d7d8=a2_0x49a146,_0x5c8500=new JobKillCommand(),_0x319158=program[_0x17d7d8(0x1c1)](),_0x1189d7=await createTDXInstance(_0x319158),_0x1d4a82=await _0x5c8500[_0x17d7d8(0x17d)]({'options':{..._0x319158,..._0x3612f7},'args':[_0x352fe9],'tdx':_0x1189d7});process[_0x17d7d8(0x27d)](_0x1d4a82);}),jobCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x22a))[a2_0x49a146(0x1d1)](a2_0x49a146(0x211))[a2_0x49a146(0x2c9)]('--job-type\x20<type>',a2_0x49a146(0x2e4),a2_0x49a146(0x167))[a2_0x49a146(0x2c9)]('-f,\x20--file\x20<path>',a2_0x49a146(0x298))[a2_0x49a146(0x2c9)](a2_0x49a146(0x32c),a2_0x49a146(0x35f),a2_0x49a146(0x166))[a2_0x49a146(0x36d)](async(_0x5f5cf3,_0x133643)=>{const _0x44102b=a2_0x49a146,_0x437fc8=new JobSubmitCommand(),_0x2a5e9e=program[_0x44102b(0x1c1)](),_0x50ecaf=await createTDXInstance(_0x2a5e9e),_0xa8db5e=await _0x437fc8[_0x44102b(0x17d)]({'options':{..._0x2a5e9e,..._0x133643},'args':_0x5f5cf3?[_0x5f5cf3]:[],'tdx':_0x50ecaf});process['exit'](_0xa8db5e);}),jobCmd[a2_0x49a146(0x31c)]('result\x20<job-id>')[a2_0x49a146(0x1d1)]('Get\x20job\x20results')[a2_0x49a146(0x36d)](async(_0x31263c,_0x2ab4b2)=>{const _0x13928d=a2_0x49a146,_0x4c39b2=new JobResultCommand(),_0x5be09a=program[_0x13928d(0x1c1)](),_0x220d80=await createTDXInstance(_0x5be09a),_0xc078=await _0x4c39b2[_0x13928d(0x17d)]({'options':{..._0x5be09a,..._0x2ab4b2},'args':[_0x31263c],'tdx':_0x220d80});process['exit'](_0xc078);});const llmCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x281))[a2_0x49a146(0x1d1)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x49a146(0x381))['description'](a2_0x49a146(0x34f))['action'](async(_0x3a9a3f,_0x57a7b5)=>{const _0x3bbf0d=a2_0x49a146,_0x23c45c=new LLMUseCommand(),_0x2bb131=program[_0x3bbf0d(0x1c1)](),_0x528c22=await createTDXInstance(_0x2bb131),_0x445201=await _0x23c45c[_0x3bbf0d(0x17d)]({'options':{..._0x2bb131,..._0x57a7b5},'args':[_0x3a9a3f],'tdx':_0x528c22});process['exit'](_0x445201);}),llmCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x216))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2b7))['action'](async _0x3b4b4e=>{const _0x16f229=a2_0x49a146,_0x3f7d71=new LLMModelsCommand(),_0xc0f5da=program[_0x16f229(0x1c1)](),_0x4be0dc=await createTDXInstance(_0xc0f5da),_0x52f887=await _0x3f7d71[_0x16f229(0x17d)]({'options':{..._0xc0f5da,..._0x3b4b4e},'args':[],'tdx':_0x4be0dc});process[_0x16f229(0x27d)](_0x52f887);});const projectCmd=llmCmd[a2_0x49a146(0x31c)]('project')['description']('LLM\x20project\x20management'),llmProjectListAction=async(_0x2a0604,_0x52157d)=>{const _0x2faf99=a2_0x49a146,_0x5a7676=new LLMProjectsCommand(),_0x552c19=program[_0x2faf99(0x1c1)](),_0x5e2794=await createTDXInstance(_0x552c19),_0xf6827c=await _0x5a7676['run']({'options':{..._0x552c19,..._0x52157d},'args':_0x2a0604?[_0x2a0604]:[],'tdx':_0x5e2794});process[_0x2faf99(0x27d)](_0xf6827c);};projectCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')['action'](llmProjectListAction),llmCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x27b))[a2_0x49a146(0x1d1)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x49a146(0x36d)](llmProjectListAction),projectCmd[a2_0x49a146(0x31c)]('create\x20<name>')[a2_0x49a146(0x1d1)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2b3),a2_0x49a146(0x175))[a2_0x49a146(0x36d)](async(_0x5b5caf,_0x285249)=>{const _0x53ca3c=a2_0x49a146,_0x287310=new LLMProjectCreateCommand(),_0x32af1d=program[_0x53ca3c(0x1c1)](),_0x227354=await createTDXInstance(_0x32af1d),_0x460d6f=await _0x287310['run']({'options':{..._0x32af1d,..._0x285249},'args':[_0x5b5caf],'tdx':_0x227354});process[_0x53ca3c(0x27d)](_0x460d6f);}),projectCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1f9))['description']('Delete\x20an\x20LLM\x20project')['action'](async(_0x68e7a5,_0x35572d)=>{const _0x4c3f9a=a2_0x49a146,_0x49cacc=new LLMProjectDeleteCommand(),_0x147cea=program[_0x4c3f9a(0x1c1)](),_0x30db4c=await createTDXInstance(_0x147cea),_0x22428f=await _0x49cacc[_0x4c3f9a(0x17d)]({'options':{..._0x147cea,..._0x35572d},'args':[_0x68e7a5],'tdx':_0x30db4c});process[_0x4c3f9a(0x27d)](_0x22428f);}),projectCmd['command']('backup\x20<name>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x255))[a2_0x49a146(0x2c9)](a2_0x49a146(0x221),a2_0x49a146(0x23e))['option']('--dry-run',a2_0x49a146(0x35a))[a2_0x49a146(0x36d)](async(_0x251730,_0x4365ec)=>{const _0x5ee290=a2_0x49a146,_0x2f7dbf=new LLMProjectBackupCommand(),_0x2bb9bd=program[_0x5ee290(0x1c1)](),_0x487522=await createTDXInstance(_0x2bb9bd),_0x5b37a6=await _0x2f7dbf['run']({'options':{..._0x2bb9bd,..._0x4365ec},'args':[_0x251730],'tdx':_0x487522});process[_0x5ee290(0x27d)](_0x5b37a6);}),projectCmd[a2_0x49a146(0x31c)]('restore\x20<folder>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x1b0))[a2_0x49a146(0x2c9)](a2_0x49a146(0x34a),a2_0x49a146(0x2ca))[a2_0x49a146(0x2c9)]('--dry-run',a2_0x49a146(0x395))[a2_0x49a146(0x36d)](async(_0x3ab5d2,_0x3fe3b0)=>{const _0x4f77ca=a2_0x49a146,_0x9632a8=new LLMProjectRestoreCommand(),_0x1be281=program[_0x4f77ca(0x1c1)](),_0x3c6c96=await createTDXInstance(_0x1be281),_0x542cf0=await _0x9632a8[_0x4f77ca(0x17d)]({'options':{..._0x1be281,..._0x3fe3b0},'args':[_0x3ab5d2],'tdx':_0x3c6c96});process[_0x4f77ca(0x27d)](_0x542cf0);});const llmAgentListAction=async(_0x30bcd7,_0x3e37cf)=>{const _0x9a5e5=a2_0x49a146,_0x4f9e0b=new LLMAgentsCommand(),_0x53796f=program['opts'](),_0x209d9a=await createTDXInstance(_0x53796f),_0xa6ec2b=await _0x4f9e0b[_0x9a5e5(0x17d)]({'options':{..._0x53796f,..._0x3e37cf},'args':_0x30bcd7?[_0x30bcd7]:[],'tdx':_0x209d9a});process[_0x9a5e5(0x27d)](_0xa6ec2b);};llmCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x394))['description'](a2_0x49a146(0x38a))[a2_0x49a146(0x36d)](llmAgentListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x394))[a2_0x49a146(0x1d1)](a2_0x49a146(0x38a))['action'](llmAgentListAction),llmCmd['command'](a2_0x49a146(0x23a))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1f8))['option'](a2_0x49a146(0x2e8),a2_0x49a146(0x203))[a2_0x49a146(0x36d)](async(_0x162b29,_0x543767)=>{const _0x365ee0=a2_0x49a146,_0x175db4=new LLMHistoryCommand(),_0x418f68=program['opts'](),_0x111587=await createTDXInstance(_0x418f68),_0x1a9de8=await _0x175db4[_0x365ee0(0x17d)]({'options':{..._0x418f68,..._0x543767},'args':_0x162b29?[_0x162b29]:[],'tdx':_0x111587});process[_0x365ee0(0x27d)](_0x1a9de8);}),llmCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x19c))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1e2))['option'](a2_0x49a146(0x1ae),a2_0x49a146(0x185),'4000')['option'](a2_0x49a146(0x200),a2_0x49a146(0x2f5))[a2_0x49a146(0x2c9)](a2_0x49a146(0x2d5),a2_0x49a146(0x33e))[a2_0x49a146(0x36d)](async _0xa9b7d1=>{const _0x513404=a2_0x49a146,_0x5276b0=new LLMProxyCommand(),_0x41cd57=program[_0x513404(0x1c1)](),_0x8ca79=await createTDXInstance(_0x41cd57),_0x29bb91={..._0xa9b7d1,'port':_0xa9b7d1[_0x513404(0x155)]?parseInt(_0xa9b7d1[_0x513404(0x155)],0xa):undefined},_0x1117ea=await _0x5276b0[_0x513404(0x17d)]({'options':{..._0x41cd57,..._0x29bb91},'args':[],'tdx':_0x8ca79});process[_0x513404(0x27d)](_0x1117ea);}),program['command']('claude\x20[args...]')['usage']('[options]\x20--\x20[claude-code-args...]')['description'](a2_0x49a146(0x1dd))[a2_0x49a146(0x2c9)]('--model\x20<name>',a2_0x49a146(0x35b),'sonnet')[a2_0x49a146(0x2c9)]('-c,\x20--continue',a2_0x49a146(0x28a))['option']('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')['option']('--no-proxy',a2_0x49a146(0x385))[a2_0x49a146(0x2c9)](a2_0x49a146(0x297),a2_0x49a146(0x349))[a2_0x49a146(0x1e0)]()[a2_0x49a146(0x26c)](!![])[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),a2_0x49a146(0x188))[a2_0x49a146(0x36d)](async(_0x12d460,_0x265e94)=>{const _0x451163=a2_0x49a146,_0x5a8066=program[_0x451163(0x1c1)](),_0x53e2ee=Array[_0x451163(0x1ec)](_0x12d460)?_0x12d460:[];if(_0x53e2ee[0x0]===_0x451163(0x363)){const _0x4a4ab3=new ClaudeStatuslineCommand(),_0x72b291=await _0x4a4ab3['run']({'options':{..._0x5a8066,..._0x265e94},'args':_0x53e2ee['slice'](0x1),'tdx':null});process[_0x451163(0x27d)](_0x72b291);}if(_0x53e2ee[0x0]===_0x451163(0x276)){const _0x125052=new ClaudeUsageCommand(),_0x53da53=await _0x125052[_0x451163(0x17d)]({'options':{..._0x5a8066,..._0x265e94},'args':_0x53e2ee[_0x451163(0x272)](0x1),'tdx':null});process['exit'](_0x53da53);}const _0x3e5c1b=new ClaudeCommand(),_0x5b36cc=await createTDXInstance(_0x5a8066),_0x4612dd=await _0x3e5c1b[_0x451163(0x17d)]({'options':{..._0x5a8066,..._0x265e94},'args':_0x53e2ee,'tdx':_0x5b36cc});process['exit'](_0x4612dd);}),program[a2_0x49a146(0x31c)](a2_0x49a146(0x208))[a2_0x49a146(0x1d1)](a2_0x49a146(0x191))['option'](a2_0x49a146(0x292),a2_0x49a146(0x389))[a2_0x49a146(0x2c9)]('--default',a2_0x49a146(0x206))[a2_0x49a146(0x36d)](async(_0x1cb179,_0x14c629,_0x43567a)=>{const _0x5ec306=a2_0x49a146,_0x991dce=new UseCommand(),_0x1b8faf=program[_0x5ec306(0x1c1)](),_0x17ef68=[];if(_0x1cb179)_0x17ef68['push'](_0x1cb179);if(_0x14c629)_0x17ef68[_0x5ec306(0x34c)](_0x14c629);const _0x7ce3fd=await _0x991dce[_0x5ec306(0x17d)]({'options':{..._0x1b8faf,..._0x43567a},'args':_0x17ef68,'tdx':null});process[_0x5ec306(0x27d)](_0x7ce3fd);}),program['command'](a2_0x49a146(0x15f))['description']('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x1b4),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x49a146(0x36d)](async(_0xeb99d7,_0x578d6d)=>{const _0x41966f=a2_0x49a146,_0x1a64ad=new UnsetCommand(),_0x5cd0da=program[_0x41966f(0x1c1)](),_0x2afc60=await _0x1a64ad[_0x41966f(0x17d)]({'options':{..._0x5cd0da,..._0x578d6d},'args':[_0xeb99d7],'tdx':null});process[_0x41966f(0x27d)](_0x2afc60);}),program[a2_0x49a146(0x31c)](a2_0x49a146(0x348))[a2_0x49a146(0x1d1)](a2_0x49a146(0x228))['option'](a2_0x49a146(0x2e8),a2_0x49a146(0x1e3))[a2_0x49a146(0x36d)](async _0xd0f7ed=>{const _0x30cc42=a2_0x49a146,_0x306d07=new ChatsCommand(),_0x4df004=program['opts'](),_0x15917f=await createTDXInstance(_0x4df004),_0x3625f4=await _0x306d07[_0x30cc42(0x17d)]({'options':{..._0x4df004,..._0xd0f7ed},'args':[],'tdx':_0x15917f});process[_0x30cc42(0x27d)](_0x3625f4);});const authCmd=program['command'](a2_0x49a146(0x319))[a2_0x49a146(0x1d1)]('Authentication\x20management');async function runAuthStatusCommand(_0x24d4db){const _0x5840b6=a2_0x49a146,_0x2d3dbd=new AuthStatusCommand(),_0x2590a3=program[_0x5840b6(0x1c1)](),_0x3ac185=await createTDXInstance(_0x2590a3),_0x307c27=await _0x2d3dbd[_0x5840b6(0x17d)]({'options':{..._0x2590a3,..._0x24d4db},'args':[],'tdx':_0x3ac185});process['exit'](_0x307c27);}authCmd[a2_0x49a146(0x36d)](runAuthStatusCommand),authCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x351))[a2_0x49a146(0x1d1)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x49a146(0x36d)](runAuthStatusCommand),authCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x342))[a2_0x49a146(0x1d1)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),a2_0x49a146(0x197))[a2_0x49a146(0x36d)](async _0x4a945b=>{const _0x5820de=a2_0x49a146,_0x3aedf8=new AuthSetupCommand(),_0xc9919d=program[_0x5820de(0x1c1)](),_0x1851cd=await createTDXInstance(_0xc9919d),_0x293795=await _0x3aedf8[_0x5820de(0x17d)]({'options':{..._0xc9919d,..._0x4a945b},'args':[],'tdx':_0x1851cd});process[_0x5820de(0x27d)](_0x293795);}),authCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x246))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2f0))[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),a2_0x49a146(0x15b))[a2_0x49a146(0x36d)](async _0xf7e751=>{const _0x3ce891=a2_0x49a146,_0x37c1c2=new AuthClearCommand(),_0x4702a3=program[_0x3ce891(0x1c1)](),_0x328ccb=await _0x37c1c2[_0x3ce891(0x17d)]({'options':{..._0x4702a3,..._0xf7e751},'args':[],'tdx':null});process[_0x3ce891(0x27d)](_0x328ccb);});const userCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x172))[a2_0x49a146(0x1d1)](a2_0x49a146(0x280)),userListAction=async _0x395a27=>{const _0x3c0451=a2_0x49a146,_0x2a5bb9=new UserListCommand(),_0x21ba8e=program[_0x3c0451(0x1c1)](),_0x29fde8=await createTDXInstance(_0x21ba8e),_0x5993c4=await _0x2a5bb9[_0x3c0451(0x17d)]({'options':{..._0x21ba8e,..._0x395a27},'args':[],'tdx':_0x29fde8});process[_0x3c0451(0x27d)](_0x5993c4);};userCmd[a2_0x49a146(0x36d)](async _0x152ac7=>{const _0x2bc650=a2_0x49a146,_0xd92757=new UserCommand(),_0x461b78=program[_0x2bc650(0x1c1)](),_0x9f41d9=await createTDXInstance(_0x461b78),_0x15096d=await _0xd92757[_0x2bc650(0x17d)]({'options':{..._0x461b78,..._0x152ac7},'args':[],'tdx':_0x9f41d9});process[_0x2bc650(0x27d)](_0x15096d);}),userCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1c9))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2ce))[a2_0x49a146(0x36d)](userListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x291))[a2_0x49a146(0x1d1)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x49a146(0x36d)](userListAction),program['command']('profiles')[a2_0x49a146(0x1d1)](a2_0x49a146(0x380))[a2_0x49a146(0x36d)](async _0x1233dd=>{const _0x30bbdd=a2_0x49a146,_0x91a562=new ProfilesCommand(),_0x4a0ee0=program[_0x30bbdd(0x1c1)](),_0x362040=await _0x91a562[_0x30bbdd(0x17d)]({'options':{..._0x4a0ee0,..._0x1233dd},'args':[],'tdx':null});process[_0x30bbdd(0x27d)](_0x362040);});const profileCmd=program['command']('profile')[a2_0x49a146(0x1d1)](a2_0x49a146(0x2e3));profileCmd[a2_0x49a146(0x36d)](()=>{const _0x5195ce=a2_0x49a146;profileCmd[_0x5195ce(0x190)]();});const profileListAction=async _0x23def1=>{const _0xafafc5=a2_0x49a146,_0x158448=new ProfilesCommand(),_0x53a90a=program[_0xafafc5(0x1c1)](),_0x278d39=await _0x158448['run']({'options':{..._0x53a90a,..._0x23def1},'args':[],'tdx':null});process[_0xafafc5(0x27d)](_0x278d39);};profileCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1c9))['description'](a2_0x49a146(0x380))[a2_0x49a146(0x36d)](profileListAction),profileCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x35e))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2bb))[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),a2_0x49a146(0x382))[a2_0x49a146(0x36d)](async(_0x2b9ca6,_0x4f1d6f)=>{const _0x538417=a2_0x49a146,_0x36fdc2=new ProfileCreateCommand(),_0x567846=program[_0x538417(0x1c1)](),_0x240f85=await _0x36fdc2['run']({'options':{..._0x567846,..._0x4f1d6f},'args':_0x2b9ca6?[_0x2b9ca6]:[],'tdx':null});process[_0x538417(0x27d)](_0x240f85);}),profileCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x302))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1ff))[a2_0x49a146(0x25f)]('after',a2_0x49a146(0x1ea))[a2_0x49a146(0x36d)](async(_0x149e7a,_0x23b956)=>{const _0x49b871=a2_0x49a146,_0x5149cc=new ProfileRemoveCommand(),_0x2b5120=program[_0x49b871(0x1c1)](),_0x220956=await _0x5149cc['run']({'options':{..._0x2b5120,..._0x23b956},'args':[_0x149e7a],'tdx':null});process[_0x49b871(0x27d)](_0x220956);}),profileCmd['command'](a2_0x49a146(0x307))['description'](a2_0x49a146(0x2de))['addHelpText']('after','\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')['action'](async(_0x217eb7,_0x5cb597)=>{const _0x57002d=a2_0x49a146,_0x4bdb5f=new ProfileSetCommand(),_0x226a67=program[_0x57002d(0x1c1)](),_0x298c7a=await _0x4bdb5f[_0x57002d(0x17d)]({'options':{..._0x226a67,..._0x5cb597},'args':[_0x217eb7],'tdx':null});process[_0x57002d(0x27d)](_0x298c7a);}),profileCmd['command'](a2_0x49a146(0x338))['description'](a2_0x49a146(0x359))[a2_0x49a146(0x2c9)]('--default',a2_0x49a146(0x206))[a2_0x49a146(0x25f)](a2_0x49a146(0x36a),a2_0x49a146(0x18d))['action'](async(_0x38994e,_0x3880ed)=>{const _0x5139fa=a2_0x49a146,_0x15a442=new ProfileUseCommand(),_0x23f226=program[_0x5139fa(0x1c1)](),_0x3fc613=await _0x15a442[_0x5139fa(0x17d)]({'options':{..._0x23f226,..._0x3880ed},'args':[_0x38994e],'tdx':null});process['exit'](_0x3fc613);});const engageCmd=program[a2_0x49a146(0x31c)]('engage')[a2_0x49a146(0x1d1)](a2_0x49a146(0x2e1)),createEngageAction=_0x248c7f=>{return async(_0x222047,_0x1a2bea)=>{const _0x461b84=a2_0x3048,_0x29337e=new _0x248c7f(),_0x422412=program[_0x461b84(0x1c1)](),_0x7add5b=await createTDXInstance(_0x422412),_0x39a64b=await _0x29337e[_0x461b84(0x17d)]({'options':{..._0x422412,..._0x1a2bea},'args':[_0x222047],'tdx':_0x7add5b});process['exit'](_0x39a64b);};},createEngageNoArgAction=_0x183710=>{return async _0x58116c=>{const _0x3e38ed=a2_0x3048,_0x3410cc=new _0x183710(),_0x51b855=program[_0x3e38ed(0x1c1)](),_0x116dab=await createTDXInstance(_0x51b855),_0x293dd0=await _0x3410cc[_0x3e38ed(0x17d)]({'options':{..._0x51b855,..._0x58116c},'args':[],'tdx':_0x116dab});process[_0x3e38ed(0x27d)](_0x293dd0);};},campaignCmd=engageCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x387))[a2_0x49a146(0x1d1)]('Campaign\x20management'),campaignListAction=async(_0xde89d2,_0x2388ad)=>{const _0x26e0ef=a2_0x49a146,_0x3430f1=new EngageCampaignsCommand(),_0x15e66e=program[_0x26e0ef(0x1c1)](),_0xf93b73=await createTDXInstance(_0x15e66e),_0x4b2b83=await _0x3430f1['run']({'options':{..._0x15e66e,..._0x2388ad},'args':_0xde89d2?[_0xde89d2]:[],'tdx':_0xf93b73});process[_0x26e0ef(0x27d)](_0x4b2b83);};campaignCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2b9))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1cd),a2_0x49a146(0x358))['option']('--status\x20<status>',a2_0x49a146(0x18c))['option'](a2_0x49a146(0x220),a2_0x49a146(0x178))['action'](campaignListAction),engageCmd[a2_0x49a146(0x31c)]('campaigns\x20[pattern]')['description'](a2_0x49a146(0x320))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1cd),a2_0x49a146(0x358))[a2_0x49a146(0x2c9)]('--status\x20<status>',a2_0x49a146(0x18c))['option'](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x36d)](campaignListAction),campaignCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x22e))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2fa))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x2c9)](a2_0x49a146(0x318),a2_0x49a146(0x224))[a2_0x49a146(0x36d)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x49a146(0x1a4))['description'](a2_0x49a146(0x17e))[a2_0x49a146(0x34b)](a2_0x49a146(0x244),'Campaign\x20name')[a2_0x49a146(0x34b)](a2_0x49a146(0x1cd),a2_0x49a146(0x2c0))['option'](a2_0x49a146(0x220),a2_0x49a146(0x2b6))[a2_0x49a146(0x2c9)](a2_0x49a146(0x267),'Campaign\x20description')[a2_0x49a146(0x2c9)](a2_0x49a146(0x14c),a2_0x49a146(0x309))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1c7),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x49a146(0x2c9)](a2_0x49a146(0x393),a2_0x49a146(0x2c5))['option']('--start-at\x20<datetime>',a2_0x49a146(0x15c))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1a7),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x49a146(0x36d)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x49a146(0x28d))[a2_0x49a146(0x1d1)](a2_0x49a146(0x362))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),'Workspace\x20name')[a2_0x49a146(0x2c9)]('--name\x20<name>',a2_0x49a146(0x1a2))[a2_0x49a146(0x2c9)](a2_0x49a146(0x267),'Campaign\x20description')[a2_0x49a146(0x2c9)](a2_0x49a146(0x14c),a2_0x49a146(0x309))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1c7),a2_0x49a146(0x32e))['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x49a146(0x2c9)](a2_0x49a146(0x176),a2_0x49a146(0x15c))['option']('--timezone\x20<tz>',a2_0x49a146(0x16b))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x49a146(0x31c)]('delete\x20<name-or-id>')['description'](a2_0x49a146(0x225))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x2c9)](a2_0x49a146(0x283),a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x49a146(0x31c)]('launch\x20<name-or-id>')['description'](a2_0x49a146(0x2fe))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x36d)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x24e))['description'](a2_0x49a146(0x1e5))[a2_0x49a146(0x2c9)]('--workspace\x20<name>',a2_0x49a146(0x178))[a2_0x49a146(0x36d)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x49a146(0x34d))[a2_0x49a146(0x1d1)](a2_0x49a146(0x28e))['option'](a2_0x49a146(0x220),a2_0x49a146(0x178))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x30c))[a2_0x49a146(0x1d1)](a2_0x49a146(0x273))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x36d)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x49a146(0x31c)]('template')[a2_0x49a146(0x1d1)](a2_0x49a146(0x296)),templateListAction=async(_0x84a03,_0x262a30)=>{const _0x443263=new EngageTemplatesCommand(),_0x417f26=program['opts'](),_0x2b832e=await createTDXInstance(_0x417f26),_0x1d345f=await _0x443263['run']({'options':{..._0x417f26,..._0x262a30},'args':_0x84a03?[_0x84a03]:[],'tdx':_0x2b832e});process['exit'](_0x1d345f);};templateCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1d5))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x36d)](templateListAction),engageCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2d1))[a2_0x49a146(0x1d1)](a2_0x49a146(0x25b))['option']('--workspace\x20<name>',a2_0x49a146(0x178))[a2_0x49a146(0x36d)](templateListAction),templateCmd[a2_0x49a146(0x31c)]('show\x20<name-or-id>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x277))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x2c9)](a2_0x49a146(0x318),a2_0x49a146(0x224))[a2_0x49a146(0x36d)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1a4))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2a5))[a2_0x49a146(0x34b)](a2_0x49a146(0x244),a2_0x49a146(0x31a))['requiredOption'](a2_0x49a146(0x2a3),a2_0x49a146(0x2b1))[a2_0x49a146(0x34b)](a2_0x49a146(0x286),'HTML\x20template\x20content')[a2_0x49a146(0x2c9)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['option'](a2_0x49a146(0x151),'Plaintext\x20template\x20content')[a2_0x49a146(0x2c9)](a2_0x49a146(0x182),a2_0x49a146(0x179))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x28d))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1fd))[a2_0x49a146(0x2c9)](a2_0x49a146(0x220),a2_0x49a146(0x178))[a2_0x49a146(0x2c9)](a2_0x49a146(0x244),'New\x20template\x20name')[a2_0x49a146(0x2c9)]('--subject\x20<subject>','Email\x20subject\x20template')[a2_0x49a146(0x2c9)](a2_0x49a146(0x286),'HTML\x20template\x20content')[a2_0x49a146(0x2c9)](a2_0x49a146(0x151),a2_0x49a146(0x1e7))[a2_0x49a146(0x36d)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1ed))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2dd))['option'](a2_0x49a146(0x220),'Workspace\x20name')['option'](a2_0x49a146(0x283),a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x161))[a2_0x49a146(0x1d1)](a2_0x49a146(0x22f)),workspaceListAction=async(_0x17bdc9,_0x1d502d)=>{const _0x54c672=a2_0x49a146,_0x1d0651=new EngageWorkspacesCommand(),_0x48fb30=program['opts'](),_0x4d5ae0=await createTDXInstance(_0x48fb30),_0x1ba179=await _0x1d0651[_0x54c672(0x17d)]({'options':{..._0x48fb30,..._0x1d502d},'args':_0x17bdc9?[_0x17bdc9]:[],'tdx':_0x4d5ae0});process['exit'](_0x1ba179);};workspaceCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x20e))[a2_0x49a146(0x36d)](workspaceListAction),engageCmd['command']('workspaces\x20[pattern]')[a2_0x49a146(0x1d1)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x49a146(0x36d)](workspaceListAction),workspaceCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x22e))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2e9))[a2_0x49a146(0x2c9)](a2_0x49a146(0x318),a2_0x49a146(0x224))[a2_0x49a146(0x36d)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x49a146(0x1a4))[a2_0x49a146(0x1d1)]('Create\x20a\x20workspace')['requiredOption'](a2_0x49a146(0x244),a2_0x49a146(0x178))['option'](a2_0x49a146(0x267),a2_0x49a146(0x37d))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x49a146(0x31c)]('update\x20<name-or-id>')['description'](a2_0x49a146(0x303))['option'](a2_0x49a146(0x244),a2_0x49a146(0x258))[a2_0x49a146(0x2c9)](a2_0x49a146(0x267),a2_0x49a146(0x37d))[a2_0x49a146(0x36d)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x49a146(0x31c)]('delete\x20<name-or-id>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x350))['option'](a2_0x49a146(0x283),a2_0x49a146(0x30b))[a2_0x49a146(0x36d)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x49a146(0x31c)]('use\x20<name>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x21a))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x1a6))[a2_0x49a146(0x1d1)](a2_0x49a146(0x251)),connectionListAction=async _0x135aaa=>{const _0x1a000a=a2_0x49a146,_0x5d4376=new ConnectionListCommand(),_0x66e341=program[_0x1a000a(0x1c1)](),_0x214562=await createTDXInstance(_0x66e341),_0x302353=await _0x5d4376[_0x1a000a(0x17d)]({'options':{..._0x66e341,..._0x135aaa},'args':[],'tdx':_0x214562});process['exit'](_0x302353);};connectionCmd[a2_0x49a146(0x31c)]('list')[a2_0x49a146(0x1d1)]('List\x20all\x20data\x20connections')[a2_0x49a146(0x36d)](connectionListAction),program[a2_0x49a146(0x31c)](a2_0x49a146(0x15e),{'hidden':!![]})[a2_0x49a146(0x1d1)](a2_0x49a146(0x336))[a2_0x49a146(0x36d)](connectionListAction),connectionCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x29c))[a2_0x49a146(0x1d1)]('Show\x20connection\x20details\x20by\x20name')[a2_0x49a146(0x36d)](async(_0xf58527,_0x4940e3)=>{const _0x666b91=a2_0x49a146,_0x369896=new ConnectionShowCommand(),_0x27bdd2=program[_0x666b91(0x1c1)](),_0x5655ed=await createTDXInstance(_0x27bdd2),_0x486ea4=await _0x369896[_0x666b91(0x17d)]({'options':{..._0x27bdd2,..._0x4940e3},'args':[_0xf58527],'tdx':_0x5655ed});process['exit'](_0x486ea4);}),connectionCmd[a2_0x49a146(0x31c)]('schema\x20<type>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x314))[a2_0x49a146(0x36d)](async(_0x2d3601,_0x382502)=>{const _0x2a6854=a2_0x49a146,_0x4cfa67=new ConnectionSchemaCommand(),_0x5a7d9d=program[_0x2a6854(0x1c1)](),_0xf1fe72=await createTDXInstance(_0x5a7d9d),_0x3ea561=await _0x4cfa67[_0x2a6854(0x17d)]({'options':{..._0x5a7d9d,..._0x382502},'args':[_0x2d3601],'tdx':_0xf1fe72});process['exit'](_0x3ea561);}),connectionCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x157))[a2_0x49a146(0x1d1)](a2_0x49a146(0x369))[a2_0x49a146(0x36d)](async _0x50cf69=>{const _0xe6bb30=a2_0x49a146,_0x2c5c66=new ConnectionTypesCommand(),_0x51e78e=program['opts'](),_0x5dd0dd=await createTDXInstance(_0x51e78e),_0x5865d0=await _0x2c5c66['run']({'options':{..._0x51e78e,..._0x50cf69},'args':[],'tdx':_0x5dd0dd});process[_0xe6bb30(0x27d)](_0x5865d0);}),connectionCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x38d))[a2_0x49a146(0x1d1)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x49a146(0x36d)](async(_0x1caf2f,_0x496ebe)=>{const _0x5e7d3f=a2_0x49a146,_0x2f200c=new ConnectionSettingsCommand(),_0x295219=program[_0x5e7d3f(0x1c1)](),_0x4a3b7d=await createTDXInstance(_0x295219),_0x42ebd0=await _0x2f200c[_0x5e7d3f(0x17d)]({'options':{..._0x295219,..._0x496ebe},'args':[_0x1caf2f],'tdx':_0x4a3b7d});process[_0x5e7d3f(0x27d)](_0x42ebd0);});const journeyCmd=program[a2_0x49a146(0x31c)](a2_0x49a146(0x1ca))[a2_0x49a146(0x1d1)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x17634f,_0x53da04)=>{const _0x38a705=a2_0x49a146,_0x11cb36=new JourneyListCommand(),_0x4f1903=program[_0x38a705(0x1c1)](),_0x105b67=await createTDXInstance(_0x4f1903),_0x42db12=await _0x11cb36[_0x38a705(0x17d)]({'options':{..._0x4f1903,..._0x53da04},'args':_0x17634f?[_0x17634f]:[],'tdx':_0x105b67});process[_0x38a705(0x27d)](_0x42db12);};journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x210))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1d7))['action'](journeyListAction),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2cf))[a2_0x49a146(0x1d1)]('Show\x20journey\x20details')[a2_0x49a146(0x2c9)](a2_0x49a146(0x2cc),a2_0x49a146(0x215))[a2_0x49a146(0x2c9)]('--include-stats',a2_0x49a146(0x29a))[a2_0x49a146(0x36d)](async(_0x41d8aa,_0x8dde10)=>{const _0x1b075d=a2_0x49a146,_0x479e6e=new JourneyViewCommand(),_0x28cc40=program[_0x1b075d(0x1c1)](),_0x39ff77=await createTDXInstance(_0x28cc40),_0xc45833=await _0x479e6e[_0x1b075d(0x17d)]({'options':{..._0x28cc40,..._0x8dde10},'args':[_0x41d8aa],'tdx':_0x39ff77});process['exit'](_0xc45833);}),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x29e))[a2_0x49a146(0x1d1)](a2_0x49a146(0x14b))[a2_0x49a146(0x2c9)](a2_0x49a146(0x37f),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x49a146(0x36d)](async(_0x5d5b31,_0x37f461)=>{const _0x27c06f=a2_0x49a146,_0x4c51cb=new JourneyStatsCommand(),_0x1dbcfb=program[_0x27c06f(0x1c1)](),_0x3baf9d=await createTDXInstance(_0x1dbcfb),_0x3a6a91=await _0x4c51cb['run']({'options':{..._0x1dbcfb,..._0x37f461},'args':[_0x5d5b31],'tdx':_0x3baf9d});process[_0x27c06f(0x27d)](_0x3a6a91);}),journeyCmd['command'](a2_0x49a146(0x28b))['description'](a2_0x49a146(0x1a9))[a2_0x49a146(0x36d)](async(_0x4ebdbf,_0x2c20fd)=>{const _0xf33fc9=a2_0x49a146,_0x2409bb=new JourneyPauseCommand(),_0x23db79=program['opts'](),_0x48d288=await createTDXInstance(_0x23db79),_0x5c0375=await _0x2409bb['run']({'options':{..._0x23db79,..._0x2c20fd},'args':[_0x4ebdbf],'tdx':_0x48d288});process[_0xf33fc9(0x27d)](_0x5c0375);}),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1ad))[a2_0x49a146(0x1d1)](a2_0x49a146(0x218))[a2_0x49a146(0x36d)](async(_0x48940e,_0x1655d0)=>{const _0x51a46e=a2_0x49a146,_0x1a6284=new JourneyResumeCommand(),_0x3f6437=program[_0x51a46e(0x1c1)](),_0x3601f6=await createTDXInstance(_0x3f6437),_0x451083=await _0x1a6284[_0x51a46e(0x17d)]({'options':{..._0x3f6437,..._0x1655d0},'args':[_0x48940e],'tdx':_0x3601f6});process[_0x51a46e(0x27d)](_0x451083);}),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x354))[a2_0x49a146(0x1d1)](a2_0x49a146(0x165))[a2_0x49a146(0x2c9)](a2_0x49a146(0x1f7),'Skip\x20confirmation\x20prompt')['option'](a2_0x49a146(0x266),a2_0x49a146(0x278))[a2_0x49a146(0x36d)](async(_0x418ad7,_0x2b31c2)=>{const _0x22b06c=a2_0x49a146,_0x32b93a=new JourneyPullCommand(),_0x4fcf71=program[_0x22b06c(0x1c1)](),_0x539da1=await createTDXInstance(_0x4fcf71),_0x40e759=await _0x32b93a[_0x22b06c(0x17d)]({'options':{..._0x4fcf71,..._0x2b31c2},'args':_0x418ad7?[_0x418ad7]:[],'tdx':_0x539da1});process['exit'](_0x40e759);}),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x1f4))['description'](a2_0x49a146(0x1bf))[a2_0x49a146(0x36d)](async(_0x56c044,_0x149a7b)=>{const _0x1c9e9c=a2_0x49a146,_0x4baea5=new JourneyPushCommand(),_0x1833ef=program['opts'](),_0x57c984=await createTDXInstance(_0x1833ef),_0x51ecf5=await _0x4baea5[_0x1c9e9c(0x17d)]({'options':{..._0x1833ef,..._0x149a7b},'args':_0x56c044?[_0x56c044]:[],'tdx':_0x57c984});process[_0x1c9e9c(0x27d)](_0x51ecf5);}),journeyCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x2cd))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1c3))[a2_0x49a146(0x36d)](async(_0x1663f3,_0x19118a)=>{const _0x4b35ba=a2_0x49a146,_0x48cefa=new JourneyValidateCommand(),_0x3f1ce0=program[_0x4b35ba(0x1c1)](),_0x5808d3=await createTDXInstance(_0x3f1ce0),_0xebb64d=await _0x48cefa[_0x4b35ba(0x17d)]({'options':{..._0x3f1ce0,..._0x19118a},'args':_0x1663f3?[_0x1663f3]:[],'tdx':_0x5808d3});process['exit'](_0xebb64d);}),program[a2_0x49a146(0x31c)](a2_0x49a146(0x275))[a2_0x49a146(0x1d1)](a2_0x49a146(0x207))[a2_0x49a146(0x36d)](journeyListAction);const agentSyncCmd=program['command'](a2_0x49a146(0x24a))[a2_0x49a146(0x1d1)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x34e))[a2_0x49a146(0x1d1)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')['option'](a2_0x49a146(0x2be),a2_0x49a146(0x1bb))['option'](a2_0x49a146(0x16d),'Overwrite\x20local\x20changes\x20without\x20confirmation')['action'](async(_0x3a70a7,_0x264311,_0x3e5f51)=>{const _0xe842b2=a2_0x49a146,_0x1fd7f7=new AgentPullCommand(),_0x56cd9a=program[_0xe842b2(0x1c1)](),_0x3826da=await createTDXInstance(_0x56cd9a),_0x3453cd=[];if(_0x3a70a7)_0x3453cd[_0xe842b2(0x34c)](_0x3a70a7);if(_0x264311)_0x3453cd['push'](_0x264311);const _0xcc2997=await _0x1fd7f7[_0xe842b2(0x17d)]({'options':{..._0x56cd9a,..._0x3e5f51},'args':_0x3453cd,'tdx':_0x3826da});process[_0xe842b2(0x27d)](_0xcc2997);}),agentSyncCmd['command'](a2_0x49a146(0x2ea))['description'](a2_0x49a146(0x24f))[a2_0x49a146(0x2c9)](a2_0x49a146(0x16d),'Push\x20without\x20confirmation')[a2_0x49a146(0x36d)](async(_0x8400ae,_0x357cd7)=>{const _0x5d5342=a2_0x49a146,_0x2d928f=new AgentPushCommand(),_0xd2686f=program[_0x5d5342(0x1c1)](),_0x1bc7f6=await createTDXInstance(_0xd2686f),_0x104773=await _0x2d928f[_0x5d5342(0x17d)]({'options':{..._0xd2686f,..._0x357cd7},'args':_0x8400ae?[_0x8400ae]:[],'tdx':_0x1bc7f6});process[_0x5d5342(0x27d)](_0x104773);}),agentSyncCmd['command'](a2_0x49a146(0x239))[a2_0x49a146(0x1d1)](a2_0x49a146(0x2dc))['option'](a2_0x49a146(0x328),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x49a146(0x36d)](async(_0x739d26,_0x3cee2a)=>{const _0x35582b=a2_0x49a146,_0x36b72d=new AgentCloneCommand(),_0x37b4aa=program[_0x35582b(0x1c1)](),_0x3f3673=await createTDXInstance(_0x37b4aa),_0xbf8976=await _0x36b72d[_0x35582b(0x17d)]({'options':{..._0x37b4aa,..._0x3cee2a},'args':_0x739d26?[_0x739d26]:[],'tdx':_0x3f3673});process['exit'](_0xbf8976);}),agentSyncCmd[a2_0x49a146(0x31c)]('list\x20[pattern]')['description'](a2_0x49a146(0x202))[a2_0x49a146(0x36d)](llmAgentListAction),agentSyncCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x20c))[a2_0x49a146(0x1d1)](a2_0x49a146(0x1fb))[a2_0x49a146(0x36d)](async(_0x288187,_0x78026d)=>{const _0x2c9098=a2_0x49a146,_0x2b1541=new LLMAgentShowCommand(),_0x111cb8=program[_0x2c9098(0x1c1)](),_0x2c3d2f=await createTDXInstance(_0x111cb8),_0x58582d=await _0x2b1541['run']({'options':{..._0x111cb8,..._0x78026d},'args':[_0x288187],'tdx':_0x2c3d2f});process[_0x2c9098(0x27d)](_0x58582d);}),agentSyncCmd['command'](a2_0x49a146(0x265))[a2_0x49a146(0x1d1)](a2_0x49a146(0x183))[a2_0x49a146(0x2c9)](a2_0x49a146(0x201),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x49a146(0x2c9)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x49a146(0x285))['option'](a2_0x49a146(0x150),a2_0x49a146(0x1d0))[a2_0x49a146(0x2c9)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x49a146(0x2c9)](a2_0x49a146(0x373),a2_0x49a146(0x324),a2_0x49a146(0x2d6))[a2_0x49a146(0x36d)](async(_0x5e1b82,_0xb8db9f)=>{const _0x23fc08=a2_0x49a146,_0x23edc3=new LLMAgentCreateCommand(),_0x1bd83f=program[_0x23fc08(0x1c1)](),_0x38aec7=await createTDXInstance(_0x1bd83f),_0x278ec9=await _0x23edc3[_0x23fc08(0x17d)]({'options':{..._0x1bd83f,..._0xb8db9f},'args':[_0x5e1b82],'tdx':_0x38aec7});process[_0x23fc08(0x27d)](_0x278ec9);}),agentSyncCmd['command']('update\x20<agent-name>')[a2_0x49a146(0x1d1)](a2_0x49a146(0x2e7))['option'](a2_0x49a146(0x186),a2_0x49a146(0x379))[a2_0x49a146(0x2c9)]('--prompt\x20<text>',a2_0x49a146(0x24d))['option'](a2_0x49a146(0x2b3),'Agent\x20description')['option'](a2_0x49a146(0x150),'Starter\x20message')['action'](async(_0xb6be15,_0x4ac3a1)=>{const _0x5ce44c=a2_0x49a146,_0x1bafd2=new LLMAgentUpdateCommand(),_0x51690e=program[_0x5ce44c(0x1c1)](),_0x1ea3c3=await createTDXInstance(_0x51690e),_0x52b453=await _0x1bafd2[_0x5ce44c(0x17d)]({'options':{..._0x51690e,..._0x4ac3a1},'args':[_0xb6be15],'tdx':_0x1ea3c3});process['exit'](_0x52b453);}),agentSyncCmd[a2_0x49a146(0x31c)](a2_0x49a146(0x290))[a2_0x49a146(0x1d1)]('Delete\x20an\x20agent')[a2_0x49a146(0x36d)](async(_0x32361a,_0x430a08)=>{const _0x152516=a2_0x49a146,_0x5627aa=new LLMAgentDeleteCommand(),_0xf3e742=program[_0x152516(0x1c1)](),_0x1200e5=await createTDXInstance(_0xf3e742),_0x20545b=await _0x5627aa[_0x152516(0x17d)]({'options':{..._0xf3e742,..._0x430a08},'args':[_0x32361a],'tdx':_0x1200e5});process[_0x152516(0x27d)](_0x20545b);});export{program};export function runCLI(){const _0x34ee6a=a2_0x49a146,_0x1b6127=!process[_0x34ee6a(0x311)]['slice'](0x2)[_0x34ee6a(0x2e0)];showBriefHelp=_0x1b6127,program[_0x34ee6a(0x340)](process['argv']),_0x1b6127&&program['outputHelp'](),process['stderr'][_0x34ee6a(0x154)]&&process[_0x34ee6a(0x311)][_0x34ee6a(0x2e0)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x5d9f64=>{_0x5d9f64&&displayUpdateNotification(_0x5d9f64);})[_0x34ee6a(0x264)](()=>{});}
1
+ const a2_0x238710=a2_0x38cb;(function(_0x3e432c,_0x309c2f){const _0x4d5611=a2_0x38cb,_0x18b2e0=_0x3e432c();while(!![]){try{const _0x42898b=parseInt(_0x4d5611(0x247))/0x1*(-parseInt(_0x4d5611(0x37a))/0x2)+parseInt(_0x4d5611(0x1be))/0x3+parseInt(_0x4d5611(0x16f))/0x4*(-parseInt(_0x4d5611(0x177))/0x5)+-parseInt(_0x4d5611(0x184))/0x6+-parseInt(_0x4d5611(0x323))/0x7+-parseInt(_0x4d5611(0x24c))/0x8+parseInt(_0x4d5611(0x3a2))/0x9;if(_0x42898b===_0x309c2f)break;else _0x18b2e0['push'](_0x18b2e0['shift']());}catch(_0x40de47){_0x18b2e0['push'](_0x18b2e0['shift']());}}}(a2_0x496c,0x7baab));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';function a2_0x496c(){const _0x25576b=['databases\x20[pattern]','-o,\x20--output\x20<folder>','List\x20jobs','--params\x20<json>','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','parent-segment','Show\x20agent\x20details','Preview\x20without\x20creating\x20the\x20project','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','clone\x20[source]','campaign','Save\x20output\x20to\x20file','debug','Directory\x20does\x20not\x20exist:\x20','push','Read\x20request\x20body\x20from\x20file','User\x20management\x20commands','Delete\x20a\x20campaign','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','\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','optionTerm','Show\x20segment\x20details\x20(alias\x20for\x20view)','[task-name]','-o,\x20--output\x20<dir>','--schedule-option\x20<value>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Workspace\x20name\x20(required)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','-n,\x20--name\x20<name>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','preview\x20[file]','stdout','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','CDP\x20Journey\x20Orchestration\x20commands','--timeout\x20<seconds>','Workflow\x20session\x20management','Update\x20a\x20campaign','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--plaintext\x20<text>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','New\x20workspace\x20name','chdir','Campaign\x20management','Filtering\x20rule\x20from\x20JSON\x20file','commandUsage','Folder\x20name\x20for\x20organization','Read\x20SQL\x20query\x20from\x20file','profile','tsv','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20the\x20most\x20recent\x20chat','--add-attributes\x20<json>','--attempt-id\x20<id>','Arguments:','2842126OpiyTP','--yes','--folder\x20<name>','--force','--jsonl','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Plaintext\x20template\x20content','Run\x20specific\x20tests\x20(comma-separated)','--trace','logs','preview\x20[name]','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--model\x20<name>','TRACE','use\x20[name]','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','description','jsonl','--project\x20<name>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--limit\x20<number>','Custom\x20revision\x20name\x20(default:\x20timestamp)','\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','[DEPRECATED]\x20Segment\x20folder\x20management','--format\x20<format>','--rule-file\x20<file>','--customer-group-file\x20<file>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','createAsync','required','-v,\x20--verbose','Add\x20attributes\x20from\x20JSON\x20file','retry','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--from-task\x20<task>','tdx','List\x20all\x20available\x20profiles','llm','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','opts','fields\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','journey','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Create\x20a\x20new\x20profile','Update\x20an\x20email\x20template','Skip\x20validation\x20of\x20.dig\x20files','Show\x20email\x20template\x20details','duplicate\x20<name-or-id>','project','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','gitRevision','unset\x20<resource>','--system-prompt\x20<text>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Clear\x20session\x20context','Agent\x20name','injectIntoOptions','Database\x20name\x20(default:\x20information_schema)','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--attribute\x20[name]','--add-behaviors\x20<json>','--last','subcommandTerm','argument','--behavior\x20[name]','show\x20<name>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Include\x20execution\x20statistics','Preview\x20changes\x20without\x20writing\x20files','tdx\x20','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','directory','list\x20[path]','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','New\x20segment\x20name','query\x20[sql]','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Set\x20a\x20profile\x20configuration\x20value','--json','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','show\x20[name]','System\x20prompt/instructions\x20(default:\x20empty)','970tBTJPT','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--agent\x20<ref>','End\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Run\x20tests\x20for\x20an\x20LLM\x20agent','Update\x20an\x20existing\x20agent','use\x20<name>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','tasks','push\x20[target]','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','length','workspaces\x20[pattern]','Parent\x20segment\x20description','--table\x20<table>','--output\x20<file>','Overwrite\x20local\x20changes\x20without\x20confirmation','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','json','statusline','padEnd','--clear','delete\x20<name>','Limit\x20number\x20of\x20rows','Updated\x20description','--no-eval','push\x20[path]','--prompt\x20<text>','Name\x20for\x20the\x20new\x20project\x20(required)',',\x20version\x20','Campaign\x20name','--new','Remove\x20a\x20profile','14435244LvwRLj','--catalog\x20<catalog>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','\x20(resolved\x20to\x20','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','proxy','profiles','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','exit','Task\x20name\x20for\x20logs\x20action','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Data\x20connection\x20management\x20(for\x20activations/exports)','alias','--enriched','show\x20[table]','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--customer-group\x20<json>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','--name\x20<names>','format','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--email-sender-id\x20<id>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','list','Show\x20job\x20details','Output\x20as\x20JSON\x20Lines','Workflow\x20project\x20management','list\x20[project]','use\x20[project]','pull\x20[project]\x20[agent-name]','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','set\x20<key=value>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','-1d','--skip-validation','Agent\x20prompt/instructions','--description\x20<text>','--editor-type\x20<type>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--behaviors-file\x20<file>','-H,\x20--header\x20<header>','--in\x20<database>','--limit\x20<n>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','--name\x20<new-name>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--job-type\x20<type>','\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','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','option','Resume\x20from\x20specific\x20task\x20(retry)','--name\x20<text>','Delete\x20a\x20workspace','3764gwpvCI','hidden','includes','Add\x20behaviors\x20as\x20JSON\x20string','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Master\x20database\x20name','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','launch\x20<name-or-id>','890umAaAj','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','padWidth','Enable\x20verbose\x20logging','repeat','flatMap','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--timezone\x20<tz>','show\x20<job-id>','agent','--max-depth\x20<depth>','settings\x20<type>','update\x20<agent-name>','1979004oMlTMC','commands','--version','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','--subject\x20<subject>','--json-columns\x20<cols>','Follow/watch\x20timeline\x20for\x20running\x20attempts','GET','\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','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','argv','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Push\x20without\x20confirmation','--tsv','Show\x20master\x20table\x20sample\x20data','Change\x20to\x20directory\x20before\x20executing\x20command','\x20-\x20built\x20','after','Validate\x20journey\x20YAML\x20files\x20locally','--resume-from\x20<task>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','information_schema','--temperature\x20<n>','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--schedule-type\x20<type>','run\x20[workflow]','create\x20<name>','Force\x20retry\x20even\x20if\x20not\x20failed','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Workspace\x20name','name','site','Parse\x20and\x20validate\x20without\x20executing','--port\x20<number>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Segment\x20description','attempt:','Pause\x20a\x20running\x20journey','--behaviors\x20<json>','--data\x20<data>','-X,\x20--method\x20<method>','[attempt-id]','catch','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','[action]','Add\x20behaviors\x20from\x20JSON\x20file','result\x20<job-id>','--from\x20<timestamp>','action','--kind\x20<type>','Maximum\x20recursion\x20depth\x20(default:\x2010)','describe\x20[table]','Usage:\x20','info\x20[segment_name]','workflows\x20[project]','1211952YIHTCC','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','push\x20[file]','Setup\x20API\x20key\x20authentication\x20interactively','List\x20available\x20connector\x20types','Create\x20a\x20workspace','kill\x20<job-id>','allowExcessArguments','--attributes-file\x20<file>','Revision\x20name\x20(default:\x20timestamp)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','filter','delete\x20<args...>','Start\x20a\x20new\x20chat\x20session','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Database\x20to\x20use\x20(overrides\x20context)','--database\x20<name>','argumentTerm','configureHelp','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','parent','--interval\x20<range>','update\x20<name>','run','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--start-at\x20<datetime>','-w,\x20--web','attempt','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','sessions\x20[project]','pull\x20[parent_or_file]','INFO','connection','Set\x20or\x20show\x20parent\x20segment\x20context','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','types','--status\x20<status>','map','command','--add-attributes-file\x20<file>','Preview\x20operation\x20without\x20executing','Override\x20project\x20name','session','-r,\x20--resume','Show\x20connection\x20details\x20by\x20name','--dry-run','Customer\x20group\x20as\x20JSON\x20string','Manage\x20workflow\x20project\x20secrets','fields\x20[parent_name]','resume\x20<name-or-path>','Campaign\x20description','resume\x20<name-or-id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Parent\x20segment\x20management','Make\x20segment\x20invisible\x20(default:\x20visible)','segments\x20[path]','trace','New\x20campaign\x20name','Output\x20file\x20path','trino','Skip\x20population\x20counting','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Filtering\x20rule\x20as\x20JSON\x20string','help','Delete\x20an\x20agent','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','show\x20<name-or-id>','-d,\x20--database\x20<database>','desc','Parent\x20folder\x20name\x20for\x20nested\x20folders','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Include\x20retried\x20attempts\x20(for\x20list)','subcommandDescription','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','claude\x20[args...]','sonnet','update\x20<segment_name>','activations\x20<segment_name>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Output\x20as\x20JSON','Attributes\x20as\x20JSON\x20string','Timezone\x20(e.g.,\x20America/Los_Angeles)','Add\x20attributes\x20as\x20JSON\x20string','Remove\x20API\x20key\x20from\x20system\x20keychain','--default','pull\x20<project>\x20[target-dir]','validate\x20[name]','Preview\x20changes\x20without\x20pushing','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','forEach','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--parent-segment\x20<name>','-u,\x20--use','Job\x20management\x20commands','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Create\x20segment\x20folder','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--stage\x20<name>','create','Show\x20only\x20master\x20table\x20validation','Folder\x20description','engage','Launch\x20a\x20campaign','agents\x20[pattern]','isArray','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','4000','history\x20[chat-id]','Request\x20body\x20as\x20JSON\x20string','Pause\x20a\x20campaign','projects\x20[pattern]','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--delete','run\x20[name]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','update\x20<name-or-id>','--include-retried','noColor','sql\x20[name]','--llm-project\x20<name>','INVALID_ARGUMENT','Email\x20template\x20management','--full','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Behaviors\x20from\x20JSON\x20file','-y,\x20--yes','pause\x20<name-or-id>','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','--name\x20<name>','--llm-proxy\x20[url]','713NnADjp','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','push\x20[name]','Output\x20directory','2017648GTBsjh','status','--no-proxy','jobs','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','--type\x20<type>','--rule\x20<json>','Starter\x20message','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Create\x20a\x20new\x20campaign','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','isTTY','retry\x20<session-id>','Show\x20workspace\x20details','Email\x20sender\x20ID\x20for\x20delivery','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','0.7','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','sql\x20[segment_name]','Clear\x20workflow\x20project\x20context','database','outputHelp','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Skip\x20confirmation\x20prompts','Attributes\x20from\x20JSON\x20file','optionDescription','table','Execute\x20tests\x20without\x20evaluation\x20(Phase\x202\x20only)','Continue\x20most\x20recent\x20conversation','--html\x20<html>','--no-count-population','delete\x20<name-or-id>','Updated\x20timezone','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','list\x20[pattern]','\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','addHelpText','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Get\x20job\x20results','models','usage','auth','view\x20<name-or-path>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','aliases','create\x20[name]','--in\x20<name>','Output\x20folder\x20(default:\x20{project_name}.llm)','Pull\x20workflow\x20project\x20to\x20local\x20folder','schema\x20<type>','set\x20<args...>','Trino\x20catalog\x20(default:\x20td)','port','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','HTML\x20template\x20content','logLevel','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','isDirectory','join','Workspace\x20management','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Show\x20timeline\x20for\x20specific\x20attempt','_hidden','Start\x20time\x20filter\x20(ISO\x208601\x20format)','New\x20template\x20name','stderr','parse','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Export\x20journey(s)\x20as\x20YAML\x20files','validate\x20[file]','Commands:','Include\x20subtasks\x20in\x20tasks\x20output','Workspace\x20description','Show\x20segment\x20schema\x20(column\x20types)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','-C,\x20--directory\x20<path>','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--debug','Skip\x20confirmation\x20prompt','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--to\x20<timestamp>','--segment\x20<path>','Attempt\x20ID','--description\x20<desc>','parents\x20[pattern]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','parent_segment','List\x20journeys\x20(alias\x20for\x20journey\x20list)','--starter-message\x20<text>','--workspace\x20<name>','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','slice','-f,\x20--file\x20<path>','Email\x20subject\x20template','job','--revision\x20<revision>','chat\x20[message...]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','-o,\x20--output\x20<file>','Show\x20stats\x20for\x20specific\x20stage','pull\x20[name]','List\x20secret\x20keys\x20for\x20a\x20project','setup','describe','summary','--max-tool-iterations\x20<n>','--param\x20<key=value>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','requiredOption','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','set','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Show\x20journey\x20statistics','allowUnknownOption','download\x20<project-name>\x20[output-dir]','argumentDescription','--master','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','error','delete\x20<project-name-or-id>','Delete\x20an\x20LLM\x20project','Open\x20segment\x20in\x20web\x20browser','registeredArguments','LLM\x20agent\x20management','Resume\x20a\x20paused\x20journey','LLM\x20project\x20management','Master\x20table\x20name','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','folder','--include-stats','then','buildTime','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','kill','Update\x20a\x20workspace','apiKey','remove\x20<name>','Customer\x20group\x20from\x20JSON\x20file','Unknown\x20action:\x20','validate\x20[target]','view\x20[segment_name]','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--name\x20<new_name>','--no-color','api\x20[endpoint]','Resume\x20a\x20conversation\x20(shows\x20selector)','-f,\x20--force','show\x20[segment_name]','desc\x20[segment_name]','Behaviors\x20as\x20JSON\x20string','Campaign\x20type\x20(email\x20or\x20push)','us01','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','claude-4.5-sonnet','Set\x20operation\x20timeout\x20in\x20seconds','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)'];a2_0x496c=function(){return _0x25576b;};return a2_0x496c();}import{UnsetCommand}from'./commands/unset-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x238710(0x190)][a2_0x238710(0x171)](a2_0x238710(0x186))){let versionOutput=a2_0x238710(0x36c)+currentVersion;buildInfo[a2_0x238710(0x358)]&&!currentVersion[a2_0x238710(0x171)](buildInfo[a2_0x238710(0x358)])&&(versionOutput+='\x20('+buildInfo[a2_0x238710(0x358)]+')'),buildInfo[a2_0x238710(0x2d2)]&&(versionOutput+=a2_0x238710(0x196)+buildInfo['buildTime']),console['log'](versionOutput),process[a2_0x238710(0x3aa)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x238710(0x358)]&&!currentVersion[a2_0x238710(0x171)](buildInfo['gitRevision'])?description+=a2_0x238710(0x39e)+currentVersion+'\x20('+buildInfo[a2_0x238710(0x358)]+')':description+=a2_0x238710(0x39e)+currentVersion;program[a2_0x238710(0x1a5)](a2_0x238710(0x348))['description'](description),program[a2_0x238710(0x16b)](a2_0x238710(0x299),a2_0x238710(0x195))[a2_0x238710(0x16b)]('-p,\x20--profile\x20<name>',a2_0x238710(0x329))[a2_0x238710(0x16b)]('--site\x20<site>',a2_0x238710(0x369),a2_0x238710(0x2e6))[a2_0x238710(0x16b)](a2_0x238710(0x33d),a2_0x238710(0x370))[a2_0x238710(0x16b)]('--table',a2_0x238710(0x30d))[a2_0x238710(0x16b)](a2_0x238710(0x376),a2_0x238710(0x2be))[a2_0x238710(0x16b)](a2_0x238710(0x327),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')[a2_0x238710(0x16b)](a2_0x238710(0x193),a2_0x238710(0x330))[a2_0x238710(0x16b)](a2_0x238710(0x38d),a2_0x238710(0x2f7))['option'](a2_0x238710(0x339),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x238710(0x16b)]('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x238710(0x16b)](a2_0x238710(0x2de),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x238710(0x16b)](a2_0x238710(0x343),a2_0x238710(0x17a),![])[a2_0x238710(0x16b)](a2_0x238710(0x29b),a2_0x238710(0x3a9))[a2_0x238710(0x16b)](a2_0x238710(0x32d),a2_0x238710(0x368))[a2_0x238710(0x16b)](a2_0x238710(0x30f),a2_0x238710(0x2e9),'30')[a2_0x238710(0x16b)](a2_0x238710(0x1ef),a2_0x238710(0x1ea),![])['option'](a2_0x238710(0x242),a2_0x238710(0x264),![])[a2_0x238710(0x16b)]('--session\x20<id>',a2_0x238710(0x1f6))['option']('-d,\x20--database\x20<name>',a2_0x238710(0x1cd))['option'](a2_0x238710(0x27c),a2_0x238710(0x22d))[a2_0x238710(0x16b)](a2_0x238710(0x21f),a2_0x238710(0x37b))[a2_0x238710(0x16b)](a2_0x238710(0x23c),a2_0x238710(0x2bd)),program[a2_0x238710(0x1d0)]({'formatHelp':(_0x50086c,_0x3ed4f4)=>{const _0x43b4e8=a2_0x238710,_0x77e341=_0x3ed4f4[_0x43b4e8(0x179)](_0x50086c,_0x3ed4f4),_0x2db7ba=0x2,_0x30139a=0x2;function _0x5652b3(_0x5e15ee){const _0x5c0a07=_0x43b4e8,_0x26d300=_0x5e15ee;return!!(_0x26d300[_0x5c0a07(0x28c)]||_0x26d300[_0x5c0a07(0x170)]);}function _0x49e782(_0x5f1697,_0x3f5a2d){const _0x146cc9=_0x43b4e8;if(_0x3f5a2d){const _0x3cbe24=''+_0x5f1697[_0x146cc9(0x395)](_0x77e341+_0x30139a)+_0x3f5a2d;return _0x3cbe24;}return _0x5f1697;}function _0x19f19e(_0x49ddd5){const _0x3ea2c3=_0x43b4e8;return _0x49ddd5[_0x3ea2c3(0x288)]('\x0a')['replace'](/^/gm,'\x20'[_0x3ea2c3(0x17b)](_0x2db7ba));}const _0x25b294=[];_0x25b294[_0x43b4e8(0x2fa)](_0x43b4e8(0x1bb)+_0x3ed4f4[_0x43b4e8(0x319)](_0x50086c));const _0x8cda93=_0x3ed4f4['commandDescription'](_0x50086c);_0x8cda93&&(_0x25b294[_0x43b4e8(0x2fa)](''),_0x25b294[_0x43b4e8(0x2fa)](_0x8cda93));const _0x5c1e72=_0x50086c[_0x43b4e8(0x185)][_0x43b4e8(0x1c9)](_0x4f90f4=>!_0x5652b3(_0x4f90f4));if(_0x5c1e72['length']>0x0){if(_0x50086c['name']()===_0x43b4e8(0x348)){const _0x50d65f=_0x50086c[_0x43b4e8(0x34c)](),_0x4ea285=!_0x50d65f[_0x43b4e8(0x23a)]&&process[_0x43b4e8(0x30c)][_0x43b4e8(0x258)],_0x390375=COMMAND_CATEGORIES,_0xa76754=(_0x44e014,_0x2b1655)=>_0x4ea285?_0x2b1655(_0x44e014):_0x44e014,_0x244d24=new Map();_0x5c1e72[_0x43b4e8(0x21d)](_0x378f38=>{const _0x30fb66=_0x43b4e8;_0x244d24[_0x30fb66(0x2bc)](_0x378f38[_0x30fb66(0x1a5)](),_0x378f38);}),_0x390375[_0x43b4e8(0x21d)](_0x288204=>{const _0x50ab0b=_0x43b4e8,_0x2b2138=_0x288204[_0x50ab0b(0x185)][_0x50ab0b(0x17c)](_0xc7e9a1=>_0x244d24['get'](_0xc7e9a1)??[]);if(_0x2b2138[_0x50ab0b(0x389)]>0x0){_0x25b294[_0x50ab0b(0x2fa)](''),_0x25b294[_0x50ab0b(0x2fa)](_0xa76754(_0x288204['name']+':',_0x288204['colorFn']));const _0x38d22a=_0x2b2138[_0x50ab0b(0x1e7)](_0x598e61=>{const _0x735d46=_0x50ab0b,_0x495810=_0x3ed4f4[_0x735d46(0x364)](_0x598e61),_0x2e3d90=_0x3ed4f4[_0x735d46(0x20c)](_0x598e61);return _0x49e782(_0x495810,_0x2e3d90);});_0x25b294[_0x50ab0b(0x2fa)](_0x19f19e(_0x38d22a));}}),_0x25b294[_0x43b4e8(0x2fa)](''),_0x25b294[_0x43b4e8(0x2fa)](_0x43b4e8(0x1ff));}else{const _0x26ef5c=_0x5c1e72[_0x43b4e8(0x1e7)](_0x2ef278=>{const _0x3fa3d2=_0x43b4e8,_0x15316a=_0x3ed4f4[_0x3fa3d2(0x364)](_0x2ef278),_0x46a63c=_0x3ed4f4['subcommandDescription'](_0x2ef278);return _0x49e782(_0x15316a,_0x46a63c);});_0x25b294[_0x43b4e8(0x2fa)](''),_0x25b294[_0x43b4e8(0x2fa)](_0x43b4e8(0x294)),_0x25b294[_0x43b4e8(0x2fa)](_0x19f19e(_0x26ef5c));}}if(showBriefHelp&&_0x50086c[_0x43b4e8(0x1a5)]()==='tdx')_0x25b294[_0x43b4e8(0x2fa)](''),_0x25b294[_0x43b4e8(0x2fa)](_0x43b4e8(0x279));else{const _0x21b605=_0x50086c['options'][_0x43b4e8(0x1c9)](_0x261352=>!_0x5652b3(_0x261352));if(_0x21b605[_0x43b4e8(0x389)]>0x0){const _0x340d92=_0x21b605[_0x43b4e8(0x1e7)](_0x4debe3=>{const _0x233fa7=_0x43b4e8,_0x5406b9=_0x3ed4f4[_0x233fa7(0x300)](_0x4debe3),_0x2861f7=_0x3ed4f4[_0x233fa7(0x266)](_0x4debe3);return _0x49e782(_0x5406b9,_0x2861f7);});_0x25b294['push'](''),_0x25b294['push']('Options:'),_0x25b294['push'](_0x19f19e(_0x340d92));}}const _0x35cea6=(_0x50086c[_0x43b4e8(0x2c9)]||[])['filter'](_0x2c48e4=>!_0x5652b3(_0x2c48e4));if(_0x35cea6[_0x43b4e8(0x389)]>0x0){const _0x13d9b8=_0x35cea6['map'](_0x353a5a=>{const _0x490823=_0x43b4e8,_0x2a0fe1=_0x3ed4f4[_0x490823(0x1cf)](_0x353a5a),_0x251ade=_0x3ed4f4[_0x490823(0x2c2)](_0x353a5a);return _0x49e782(_0x2a0fe1,_0x251ade);});_0x25b294[_0x43b4e8(0x2fa)](''),_0x25b294[_0x43b4e8(0x2fa)](_0x43b4e8(0x322)),_0x25b294[_0x43b4e8(0x2fa)](_0x19f19e(_0x13d9b8));}return _0x25b294['join']('\x0a')+'\x0a';},'subcommandTerm':_0x2ac34f=>{const _0x2643b0=a2_0x238710,_0x5fff48=(_0x2ac34f[_0x2643b0(0x2c9)]||[])['map'](_0x507a17=>_0x507a17[_0x2643b0(0x342)]?'<'+_0x507a17[_0x2643b0(0x1a5)]()+'>':'['+_0x507a17[_0x2643b0(0x1a5)]()+']')[_0x2643b0(0x288)]('\x20'),_0x25f2e0=_0x2ac34f[_0x2643b0(0x27a)](),_0x1bafa7=_0x25f2e0[_0x2643b0(0x389)]>0x0?_0x2ac34f[_0x2643b0(0x1a5)]()+',\x20'+_0x25f2e0[_0x2643b0(0x288)](',\x20'):_0x2ac34f[_0x2643b0(0x1a5)]();return _0x5fff48?_0x1bafa7+'\x20'+_0x5fff48:_0x1bafa7;}}),program['hook']('preAction',_0x5e6e87=>{const _0xb51137=a2_0x238710,_0x2688d4=_0x5e6e87['opts']();if(_0x2688d4[_0xb51137(0x36e)]){const _0x2cf44b=resolve(_0x2688d4['directory']),_0x2401ab=_0x2cf44b!==_0x2688d4[_0xb51137(0x36e)]?_0xb51137(0x3a5)+_0x2cf44b+')':'';if(!existsSync(_0x2cf44b))throw new SDKError(ErrorCode[_0xb51137(0x23d)],_0xb51137(0x2f9)+_0x2688d4['directory']+_0x2401ab,undefined,{'helpText':_0xb51137(0x30a)});const _0x5a8c3f=statSync(_0x2cf44b);if(!_0x5a8c3f[_0xb51137(0x287)]())throw new SDKError(ErrorCode[_0xb51137(0x23d)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x2688d4['directory']+_0x2401ab,undefined,{'helpText':_0xb51137(0x3ce)});process[_0xb51137(0x316)](_0x2cf44b);}if(!_0x2688d4[_0xb51137(0x3b5)]){if(_0x2688d4[_0xb51137(0x267)])_0x2688d4[_0xb51137(0x3b5)]=_0xb51137(0x267);else{if(_0x2688d4[_0xb51137(0x393)])_0x2688d4[_0xb51137(0x3b5)]=_0xb51137(0x393);else{if(_0x2688d4[_0xb51137(0x336)])_0x2688d4[_0xb51137(0x3b5)]=_0xb51137(0x336);else _0x2688d4[_0xb51137(0x31d)]&&(_0x2688d4[_0xb51137(0x3b5)]=_0xb51137(0x31d));}}}_0x2688d4['in']&&!_0x2688d4['database']&&(_0x2688d4[_0xb51137(0x261)]=_0x2688d4['in']);if(_0x2688d4[_0xb51137(0x1fa)])_0x2688d4[_0xb51137(0x285)]=LogLevel[_0xb51137(0x332)];else{if(_0x2688d4[_0xb51137(0x2f8)])_0x2688d4[_0xb51137(0x285)]=LogLevel['DEBUG'];else _0x2688d4['logLevel']===undefined&&(_0x2688d4[_0xb51137(0x285)]=LogLevel[_0xb51137(0x1e0)]);}});async function createTDXInstance(_0x4c74e5){const _0x5180e2=a2_0x238710,_0x2a8387=await GlobalContext[_0x5180e2(0x341)](_0x4c74e5);return _0x2a8387[_0x5180e2(0x35e)](_0x4c74e5),TDX[_0x5180e2(0x226)]({'site':_0x2a8387[_0x5180e2(0x1a6)],'apiKey':_0x2a8387[_0x5180e2(0x2d6)],'logLevel':_0x2a8387[_0x5180e2(0x285)],'profile':_0x2a8387[_0x5180e2(0x31c)]});}const databaseCmd=program[a2_0x238710(0x1e8)]('database')[a2_0x238710(0x3ae)]('db')[a2_0x238710(0x335)]('Database\x20management\x20commands'),databaseListAction=async(_0x32e489,_0x4ca68d)=>{const _0x1021ba=a2_0x238710,_0x2d3c51=new DatabasesCommand(),_0x263f8f=program['opts'](),_0x124fec=await createTDXInstance(_0x263f8f),_0xd0014d=await _0x2d3c51[_0x1021ba(0x1d5)]({'options':{..._0x263f8f,..._0x4ca68d},'args':_0x32e489?[_0x32e489]:[],'tdx':_0x124fec});process[_0x1021ba(0x3aa)](_0xd0014d);};databaseCmd[a2_0x238710(0x1e8)]('list\x20[pattern]')[a2_0x238710(0x335)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')['action'](databaseListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x2ec),{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x26e))[a2_0x238710(0x1b7)](databaseListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x2ae))[a2_0x238710(0x335)](a2_0x238710(0x205))[a2_0x238710(0x16b)](a2_0x238710(0x37c),a2_0x238710(0x22e))[a2_0x238710(0x16b)](a2_0x238710(0x3a0),a2_0x238710(0x1cb))[a2_0x238710(0x1b7)](async(_0x1416d1,_0x4b4e82)=>{const _0x38db34=a2_0x238710,_0x517a17=new ChatCommand(),_0x28017c=program['opts'](),_0x26e1b7=await createTDXInstance(_0x28017c),_0x3959bc=await _0x517a17[_0x38db34(0x1d5)]({'options':{..._0x28017c,..._0x4b4e82},'args':_0x1416d1,'tdx':_0x26e1b7});process[_0x38db34(0x3aa)](_0x3959bc);});const apiCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x2df))[a2_0x238710(0x2b6)](a2_0x238710(0x18e))[a2_0x238710(0x271)](a2_0x238710(0x197),a2_0x238710(0x2ff))[a2_0x238710(0x16b)](a2_0x238710(0x1af),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x238710(0x18c))[a2_0x238710(0x16b)](a2_0x238710(0x1ae),a2_0x238710(0x231))['option'](a2_0x238710(0x2aa),a2_0x238710(0x2fb))[a2_0x238710(0x16b)](a2_0x238710(0x3ca),a2_0x238710(0x387),(_0x1f750a,_0x3e3233)=>{return _0x3e3233?[..._0x3e3233,_0x1f750a]:[_0x1f750a];})[a2_0x238710(0x16b)]('--type\x20<api_type>',a2_0x238710(0x2ea),'td')['action'](async(_0x6958f2,_0x1d570b)=>{const _0x26070b=a2_0x238710;if(!_0x6958f2){apiCmd[_0x26070b(0x201)]();return;}const _0xf5ac0c=new ApiCommand(),_0x196fdf=program['opts'](),_0x1218aa=await createTDXInstance(_0x196fdf),_0x265cf9=await _0xf5ac0c['run']({'options':{..._0x196fdf,..._0x1d570b},'args':[_0x6958f2],'tdx':_0x1218aa});process[_0x26070b(0x3aa)](_0x265cf9);});program['command']('mcp')[a2_0x238710(0x335)](a2_0x238710(0x250))['addHelpText']('after','\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')['action'](async _0x5043fd=>{const _0x3c192e=a2_0x238710,_0x235095=new MCPCommand(),_0x4956d9=program[_0x3c192e(0x34c)](),_0x304a91=await createTDXInstance(_0x4956d9),_0x21ea6c=await _0x235095[_0x3c192e(0x1d5)]({'options':{..._0x4956d9,..._0x5043fd},'args':[],'tdx':_0x304a91});process[_0x3c192e(0x3aa)](_0x21ea6c);});const tableCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x267))[a2_0x238710(0x335)]('Table\x20management\x20commands'),tableListAction=async(_0xb6fe4d,_0x4479fe)=>{const _0x955e7d=a2_0x238710,_0x21f6df=new TablesCommand(),_0x2a7b54=program[_0x955e7d(0x34c)](),_0x185baa=await createTDXInstance(_0x2a7b54);_0x4479fe['in']&&(_0x4479fe['database']=_0x4479fe['in']);const _0x578319=await _0x21f6df[_0x955e7d(0x1d5)]({'options':{..._0x2a7b54,..._0x4479fe},'args':_0xb6fe4d?[_0xb6fe4d]:[],'tdx':_0x185baa});process['exit'](_0x578319);};tableCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))[a2_0x238710(0x335)](a2_0x238710(0x1db))[a2_0x238710(0x16b)](a2_0x238710(0x207),a2_0x238710(0x2f4))[a2_0x238710(0x16b)]('--in\x20<database>',a2_0x238710(0x22d))[a2_0x238710(0x1b7)](tableListAction),program[a2_0x238710(0x1e8)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x346))[a2_0x238710(0x16b)](a2_0x238710(0x207),a2_0x238710(0x2f4))[a2_0x238710(0x16b)](a2_0x238710(0x3cb),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x3b0))[a2_0x238710(0x335)](a2_0x238710(0x386))['option']('-d,\x20--database\x20<database>',a2_0x238710(0x21c))[a2_0x238710(0x16b)]('--in\x20<database>',a2_0x238710(0x22d))[a2_0x238710(0x1b7)](async(_0xd19825,_0x334560)=>{const _0x50d30e=a2_0x238710,_0x3764c9=new ShowCommand(),_0x3ea6e2=program[_0x50d30e(0x34c)](),_0x4864fa=await createTDXInstance(_0x3ea6e2);_0x334560['in']&&(_0x334560[_0x50d30e(0x261)]=_0x334560['in']);const _0x18842d=await _0x3764c9[_0x50d30e(0x1d5)]({'options':{..._0x3ea6e2,..._0x334560},'args':_0xd19825?[_0xd19825]:[],'tdx':_0x4864fa});process[_0x50d30e(0x3aa)](_0x18842d);}),program['command'](a2_0x238710(0x1ba))['alias'](a2_0x238710(0x208))[a2_0x238710(0x335)]('Describe\x20table\x20schema')['option']('-d,\x20--database\x20<database>',a2_0x238710(0x21c))[a2_0x238710(0x16b)](a2_0x238710(0x3cb),a2_0x238710(0x22d))[a2_0x238710(0x1b7)](async(_0x141e4e,_0x499cf1)=>{const _0x39539d=a2_0x238710,_0x1f421c=new DescribeCommand(),_0x9f4331=program['opts'](),_0x40af55=await createTDXInstance(_0x9f4331);_0x499cf1['in']&&(_0x499cf1[_0x39539d(0x261)]=_0x499cf1['in']);const _0xfc31a2=await _0x1f421c[_0x39539d(0x1d5)]({'options':{..._0x9f4331,..._0x499cf1},'args':_0x141e4e?[_0x141e4e]:[],'tdx':_0x40af55});process[_0x39539d(0x3aa)](_0xfc31a2);}),program['command'](a2_0x238710(0x373))[a2_0x238710(0x335)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x238710(0x16b)](a2_0x238710(0x207),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x238710(0x16b)](a2_0x238710(0x3cb),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x238710(0x16b)](a2_0x238710(0x3a3),a2_0x238710(0x281))[a2_0x238710(0x16b)]('-f,\x20--file\x20<path>',a2_0x238710(0x31b))['option']('--limit\x20<rows>',a2_0x238710(0x308),'40')['action'](async(_0x340235,_0xab3c4b)=>{const _0x3387bf=a2_0x238710,_0x4477dd=new QueryCommand(),_0x35ab32=program['opts'](),_0x1a391d=await createTDXInstance(_0x35ab32);_0xab3c4b['in']&&(_0xab3c4b[_0x3387bf(0x261)]=_0xab3c4b['in']);const _0x595d49=await _0x4477dd[_0x3387bf(0x1d5)]({'options':{..._0x35ab32,..._0xab3c4b},'args':_0x340235?[_0x340235]:[],'tdx':_0x1a391d});process[_0x3387bf(0x3aa)](_0x595d49);});const segmentCmd=program[a2_0x238710(0x1e8)]('segment')['alias']('sg')[a2_0x238710(0x335)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x53169e,_0x256782)=>{const _0x5ba2e7=a2_0x238710,_0x189f92=new SegmentsCommand(),_0xe5eea3=program[_0x5ba2e7(0x34c)](),_0xdcae54=await createTDXInstance(_0xe5eea3),_0x579a48=await _0x189f92[_0x5ba2e7(0x1d5)]({'options':{..._0xe5eea3,..._0x256782},'args':_0x53169e?[_0x53169e]:[],'tdx':_0xdcae54});process[_0x5ba2e7(0x3aa)](_0x579a48);};segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x36f))['description'](a2_0x238710(0x37e))[a2_0x238710(0x16b)]('-r,\x20--recursive','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x238710(0x16b)](a2_0x238710(0x181),a2_0x238710(0x1b9),'10')[a2_0x238710(0x1b7)](segmentListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x1f9),{'hidden':!![]})[a2_0x238710(0x335)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x238710(0x16b)]('-r,\x20--recursive',a2_0x238710(0x2af))[a2_0x238710(0x16b)]('--max-depth\x20<depth>',a2_0x238710(0x1b9),'10')[a2_0x238710(0x1b7)](segmentListAction),segmentCmd['command']('use\x20<path>',{'hidden':!![]})[a2_0x238710(0x335)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x238710(0x1b7)](async(_0x1c3f8e,_0x2d05ea)=>{const _0x437906=a2_0x238710,_0x2a4417=new SegmentUseCommand(),_0x45d7e2=program[_0x437906(0x34c)](),_0x1bafe8=await createTDXInstance(_0x45d7e2),_0x2ef7ca=await _0x2a4417['run']({'options':{..._0x45d7e2,..._0x2d05ea},'args':[_0x1c3f8e],'tdx':_0x1bafe8});process[_0x437906(0x3aa)](_0x2ef7ca);});const segmentViewAction=async(_0x39b30c,_0x3836ef)=>{const _0x190599=a2_0x238710,_0x2e7dd4=new SegmentViewCommand(),_0x4940a8=program[_0x190599(0x34c)](),_0x3b48d8=await createTDXInstance(_0x4940a8),_0x2bcf7e=await _0x2e7dd4[_0x190599(0x1d5)]({'options':{..._0x4940a8,..._0x3836ef},'args':_0x39b30c?[_0x39b30c]:[],'tdx':_0x3b48d8});process[_0x190599(0x3aa)](_0x2bcf7e);};segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2db))['description'](a2_0x238710(0x17d))['option']('-w,\x20--web',a2_0x238710(0x2c8))[a2_0x238710(0x1b7)](segmentViewAction),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1bc),{'hidden':!![]})[a2_0x238710(0x3ae)](a2_0x238710(0x2b5))[a2_0x238710(0x16b)](a2_0x238710(0x1d8),'Open\x20segment\x20in\x20web\x20browser')[a2_0x238710(0x335)](a2_0x238710(0x301))[a2_0x238710(0x1b7)](segmentViewAction),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2e3))[a2_0x238710(0x335)](a2_0x238710(0x297))[a2_0x238710(0x1b7)](async(_0x28ad28,_0x54d740)=>{const _0x2ccd96=a2_0x238710,_0x3d22f0=new SegmentDescCommand(),_0x326568=program[_0x2ccd96(0x34c)](),_0xbe944d=await createTDXInstance(_0x326568),_0x5813ad=await _0x3d22f0[_0x2ccd96(0x1d5)]({'options':{..._0x326568,..._0x54d740},'args':_0x28ad28?[_0x28ad28]:[],'tdx':_0xbe944d});process['exit'](_0x5813ad);}),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2e2))[a2_0x238710(0x335)](a2_0x238710(0x1dc))[a2_0x238710(0x1b7)](async(_0x44471d,_0x300048)=>{const _0x8083bb=a2_0x238710,_0x36ad9a=new SegmentShowCommand(),_0x570e60=program[_0x8083bb(0x34c)](),_0xe079e8=await createTDXInstance(_0x570e60),_0x3016d8=await _0x36ad9a[_0x8083bb(0x1d5)]({'options':{..._0x570e60,..._0x300048},'args':_0x44471d?[_0x44471d]:[],'tdx':_0xe079e8});process['exit'](_0x3016d8);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x371))[a2_0x238710(0x1b7)](async(_0x7d88ea,_0x2ffa48)=>{const _0x12dbee=a2_0x238710,_0x303489=new SegmentFolderListCommand(),_0x28382e=program[_0x12dbee(0x34c)](),_0x25d68e=await createTDXInstance(_0x28382e),_0x2da512=await _0x303489[_0x12dbee(0x1d5)]({'options':{..._0x28382e,..._0x2ffa48},'args':[_0x7d88ea],'tdx':_0x25d68e});process['exit'](_0x2da512);});const folderCmd=segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2cf),{'hidden':!![]})['description'](a2_0x238710(0x33c));folderCmd[a2_0x238710(0x1e8)]('show\x20<folder_ref>')[a2_0x238710(0x335)](a2_0x238710(0x286))[a2_0x238710(0x1b7)](async(_0x53e294,_0x48156a)=>{const _0xf05f64=a2_0x238710,_0x3277ec=new SegmentFolderShowCommand(),_0x436523=program['opts'](),_0x1fa2d0=await createTDXInstance(_0x436523),_0x21f3e3=await _0x3277ec[_0xf05f64(0x1d5)]({'options':{..._0x436523,..._0x48156a},'args':[_0x53e294],'tdx':_0x1fa2d0});process['exit'](_0x21f3e3);}),segmentCmd['command'](a2_0x238710(0x25f))[a2_0x238710(0x335)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x238710(0x1b7)](async(_0x215663,_0x4f5a16)=>{const _0x4b2cfd=a2_0x238710,_0x249265=new SegmentSQLCommand(),_0x3d1786=program[_0x4b2cfd(0x34c)](),_0x3260dc=await createTDXInstance(_0x3d1786),_0x3e9e8a=await _0x249265[_0x4b2cfd(0x1d5)]({'options':{..._0x3d1786,..._0x4f5a16},'args':_0x215663?[_0x215663]:[],'tdx':_0x3260dc});process[_0x4b2cfd(0x3aa)](_0x3e9e8a);}),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1f2))['description'](a2_0x238710(0x2ce))['action'](async(_0x2a618f,_0x353124)=>{const _0x57d1a9=a2_0x238710,_0x52f354=new SegmentFieldsCommand(),_0xf26cf0=program['opts'](),_0x403735=await createTDXInstance(_0xf26cf0),_0x463ca7=await _0x52f354[_0x57d1a9(0x1d5)]({'options':{..._0xf26cf0,..._0x353124},'args':_0x2a618f?[_0x2a618f]:[],'tdx':_0x403735});process[_0x57d1a9(0x3aa)](_0x463ca7);}),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1df))[a2_0x238710(0x335)](a2_0x238710(0x3d0))['option'](a2_0x238710(0x242),a2_0x238710(0x264))[a2_0x238710(0x16b)]('--dry-run',a2_0x238710(0x1d6))[a2_0x238710(0x1b7)](async(_0x25c288,_0x91c523)=>{const _0x5f5ada=a2_0x238710,_0x5c6f63=new SegmentPullCommand(),_0x395c1e=program['opts'](),_0x126245=await createTDXInstance(_0x395c1e),_0x11cd55=await _0x5c6f63[_0x5f5ada(0x1d5)]({'options':{..._0x395c1e,..._0x91c523},'args':_0x25c288?[_0x25c288]:[],'tdx':_0x126245});process['exit'](_0x11cd55);}),segmentCmd[a2_0x238710(0x1e8)]('push\x20[parent_or_file]')[a2_0x238710(0x335)](a2_0x238710(0x2f0))['option'](a2_0x238710(0x242),a2_0x238710(0x264))['option'](a2_0x238710(0x1ef),a2_0x238710(0x1d6))[a2_0x238710(0x16b)](a2_0x238710(0x235),a2_0x238710(0x34b))[a2_0x238710(0x1b7)](async(_0x4809f3,_0x24f54e)=>{const _0x469e34=a2_0x238710,_0x1094a8=new SegmentPushCommand(),_0x13f262=program[_0x469e34(0x34c)](),_0x38a296=await createTDXInstance(_0x13f262),_0x322d6c=await _0x1094a8[_0x469e34(0x1d5)]({'options':{..._0x13f262,..._0x24f54e},'args':_0x4809f3?[_0x4809f3]:[],'tdx':_0x38a296});process[_0x469e34(0x3aa)](_0x322d6c);}),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2da))[a2_0x238710(0x335)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x238710(0x1b7)](async(_0x8b5194,_0x240649)=>{const _0x149280=a2_0x238710,_0x97bc26=new SegmentValidateCommand(),_0x3cb089=program[_0x149280(0x34c)](),_0xcebb0c=await createTDXInstance(_0x3cb089),_0x3732ff=await _0x97bc26['run']({'options':{..._0x3cb089,..._0x240649},'args':_0x8b5194?[_0x8b5194]:[],'tdx':_0xcebb0c});process['exit'](_0x3732ff);}),segmentCmd['command']('create\x20<segment_name>',{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x234))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),a2_0x238710(0x1aa))[a2_0x238710(0x16b)]('--rule\x20<json>',a2_0x238710(0x200))[a2_0x238710(0x16b)](a2_0x238710(0x33e),a2_0x238710(0x318))[a2_0x238710(0x16b)](a2_0x238710(0x325),a2_0x238710(0x31a))['option'](a2_0x238710(0x1b8),a2_0x238710(0x38f))[a2_0x238710(0x16b)]('--invisible',a2_0x238710(0x1f8))[a2_0x238710(0x16b)](a2_0x238710(0x26b),a2_0x238710(0x1fe))[a2_0x238710(0x1b7)](async(_0x175e91,_0x36764e)=>{const _0x3cffb6=a2_0x238710,_0x4659ff=new SegmentCreateCommand(),_0x374c06=program[_0x3cffb6(0x34c)](),_0x47a6a5=await createTDXInstance(_0x374c06),_0x5423da=await _0x4659ff['run']({'options':{..._0x374c06,..._0x36764e},'args':[_0x175e91],'tdx':_0x47a6a5});process['exit'](_0x5423da);}),segmentCmd['command'](a2_0x238710(0x210),{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x307))[a2_0x238710(0x16b)](a2_0x238710(0x2dd),a2_0x238710(0x372))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),a2_0x238710(0x399))[a2_0x238710(0x16b)](a2_0x238710(0x252),a2_0x238710(0x1a3))['option'](a2_0x238710(0x33e),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x238710(0x325),'Move\x20to\x20folder')[a2_0x238710(0x16b)]('--kind\x20<type>',a2_0x238710(0x38f))[a2_0x238710(0x1b7)](async(_0x72b55,_0x14f288)=>{const _0x11c757=a2_0x238710,_0x2adbd8=new SegmentUpdateCommand(),_0x592277=program[_0x11c757(0x34c)](),_0x351952=await createTDXInstance(_0x592277),_0x2dd1f0=await _0x2adbd8[_0x11c757(0x1d5)]({'options':{..._0x592277,..._0x14f288},'args':[_0x72b55],'tdx':_0x351952});process[_0x11c757(0x3aa)](_0x2dd1f0);});const parentCmd=segmentCmd['command'](a2_0x238710(0x1d2),{'hidden':!![]})['description'](a2_0x238710(0x240)),parentListAction=async(_0x488dcc,_0x529b25)=>{const _0x2dbc70=a2_0x238710,_0x588a99=new ParentSegmentListCommand(),_0x396fae=program['opts'](),_0x38e9f3=await createTDXInstance(_0x396fae),_0x1c7644=await _0x588a99[_0x2dbc70(0x1d5)]({'options':{..._0x396fae,..._0x529b25},'args':_0x488dcc?[_0x488dcc]:[],'tdx':_0x38e9f3});process['exit'](_0x1c7644);};parentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),segmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2a2),{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x32a))[a2_0x238710(0x1b7)](parentListAction),parentCmd[a2_0x238710(0x1e8)]('pull\x20[name]')['description'](a2_0x238710(0x388))[a2_0x238710(0x16b)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x238710(0x16b)]('-y,\x20--yes',a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x842573,_0xaf6d04)=>{const _0x4c6a8e=a2_0x238710,_0x45c88e=new ParentSegmentPullCommand(),_0x1b1023=program[_0x4c6a8e(0x34c)](),_0xe4169d=await createTDXInstance(_0x1b1023),_0x556a9f=await _0x45c88e['run']({'options':{..._0x1b1023,..._0xaf6d04},'args':_0x842573?[_0x842573]:[],'tdx':_0xe4169d});process[_0x4c6a8e(0x3aa)](_0x556a9f);}),parentCmd['command'](a2_0x238710(0x1c0))[a2_0x238710(0x335)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))['action'](async(_0x40e576,_0x17d190)=>{const _0x1aa006=a2_0x238710,_0x373427=new ParentSegmentPushCommand(),_0x497352=program['opts'](),_0x1a5af3=await createTDXInstance(_0x497352),_0x390e8d=await _0x373427[_0x1aa006(0x1d5)]({'options':{..._0x497352,..._0x17d190},'args':_0x40e576?[_0x40e576]:[],'tdx':_0x1a5af3});process[_0x1aa006(0x3aa)](_0x390e8d);}),parentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x293))['description'](a2_0x238710(0x1d1))['option'](a2_0x238710(0x2c3),'Show\x20only\x20master\x20table\x20validation')[a2_0x238710(0x16b)](a2_0x238710(0x361),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x238710(0x16b)]('--behavior\x20[name]',a2_0x238710(0x19d))['option'](a2_0x238710(0x3af),a2_0x238710(0x34e))[a2_0x238710(0x16b)](a2_0x238710(0x1d3),a2_0x238710(0x1a9),a2_0x238710(0x3c3))[a2_0x238710(0x1b7)](async(_0x12d062,_0x5ad795)=>{const _0x556bbd=a2_0x238710,_0x4c434b=new ParentSegmentValidateCommand(),_0x9fd524=program[_0x556bbd(0x34c)](),_0x45b330=await createTDXInstance(_0x9fd524),_0x55844a=await _0x4c434b[_0x556bbd(0x1d5)]({'options':{..._0x9fd524,..._0x5ad795},'args':_0x12d062?[_0x12d062]:[],'tdx':_0x45b330});process[_0x556bbd(0x3aa)](_0x55844a);}),parentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x30b))[a2_0x238710(0x335)](a2_0x238710(0x2bb))[a2_0x238710(0x16b)](a2_0x238710(0x2c3),'Show\x20master\x20table\x20sample\x20data')[a2_0x238710(0x16b)]('--attribute\x20[name]',a2_0x238710(0x1bf))[a2_0x238710(0x16b)](a2_0x238710(0x366),a2_0x238710(0x3a4))['option'](a2_0x238710(0x3af),a2_0x238710(0x314))[a2_0x238710(0x16b)](a2_0x238710(0x1d3),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x5c199e,_0x1d1c92)=>{const _0x215507=a2_0x238710,_0x6000dc=new ParentSegmentPreviewCommand(),_0x1716e6=program[_0x215507(0x34c)](),_0x7eef70=await createTDXInstance(_0x1716e6),_0x2b8931=await _0x6000dc['run']({'options':{..._0x1716e6,..._0x1d1c92},'args':_0x5c199e?[_0x5c199e]:[],'tdx':_0x7eef70});process['exit'](_0x2b8931);}),parentCmd['command']('run\x20[name]')[a2_0x238710(0x335)](a2_0x238710(0x18f))[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x29b71e,_0xd4d14e)=>{const _0x4c454c=a2_0x238710,_0x30465e=new ParentSegmentRunCommand(),_0x125ffd=program[_0x4c454c(0x34c)](),_0xf05b10=await createTDXInstance(_0x125ffd),_0x321206=await _0x30465e['run']({'options':{..._0x125ffd,..._0xd4d14e},'args':_0x29b71e?[_0x29b71e]:[],'tdx':_0xf05b10});process[_0x4c454c(0x3aa)](_0x321206);});const parentSegmentCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x2f1))[a2_0x238710(0x3ae)]('ps')[a2_0x238710(0x335)](a2_0x238710(0x1f7));parentSegmentCmd['command'](a2_0x238710(0x26f))['description'](a2_0x238710(0x1dd))['action'](parentListAction),parentSegmentCmd['command'](a2_0x238710(0x2b2))[a2_0x238710(0x335)](a2_0x238710(0x2e7))[a2_0x238710(0x16b)](a2_0x238710(0x2b0),a2_0x238710(0x1fc))[a2_0x238710(0x16b)]('-y,\x20--yes',a2_0x238710(0x29c))[a2_0x238710(0x16b)](a2_0x238710(0x220),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x238710(0x1b7)](async(_0x68bc2,_0x2c3a92)=>{const _0x263fb6=a2_0x238710,_0x5d25f5=new ParentSegmentPullCommand(),_0x354dfc=program[_0x263fb6(0x34c)](),_0x18c512=await createTDXInstance(_0x354dfc),_0x1adb54=await _0x5d25f5['run']({'options':{..._0x354dfc,..._0x2c3a92},'args':_0x68bc2?[_0x68bc2]:[],'tdx':_0x18c512});process[_0x263fb6(0x3aa)](_0x1adb54);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x24a))['description'](a2_0x238710(0x350))[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))['action'](async(_0x4459c8,_0x17f0f3)=>{const _0x4909bd=a2_0x238710,_0x19b06e=new ParentSegmentPushCommand(),_0x44f587=program[_0x4909bd(0x34c)](),_0x19e262=await createTDXInstance(_0x44f587),_0x1d8ad5=await _0x19b06e[_0x4909bd(0x1d5)]({'options':{..._0x44f587,..._0x17f0f3},'args':_0x4459c8?[_0x4459c8]:[],'tdx':_0x19e262});process[_0x4909bd(0x3aa)](_0x1d8ad5);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x21a))['description'](a2_0x238710(0x1d1))[a2_0x238710(0x16b)]('--master',a2_0x238710(0x227))[a2_0x238710(0x16b)](a2_0x238710(0x361),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x238710(0x16b)]('--behavior\x20[name]',a2_0x238710(0x19d))[a2_0x238710(0x16b)](a2_0x238710(0x3af),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x238710(0x16b)](a2_0x238710(0x1d3),a2_0x238710(0x1a9),a2_0x238710(0x3c3))['action'](async(_0x3bdc75,_0x34b032)=>{const _0x5368b2=a2_0x238710,_0x40a95d=new ParentSegmentValidateCommand(),_0x5c4ad3=program[_0x5368b2(0x34c)](),_0x33fc0d=await createTDXInstance(_0x5c4ad3),_0x38eca1=await _0x40a95d[_0x5368b2(0x1d5)]({'options':{..._0x5c4ad3,..._0x34b032},'args':_0x3bdc75?[_0x3bdc75]:[],'tdx':_0x33fc0d});process['exit'](_0x38eca1);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x32f))[a2_0x238710(0x335)](a2_0x238710(0x2bb))['option'](a2_0x238710(0x2c3),a2_0x238710(0x194))['option'](a2_0x238710(0x361),a2_0x238710(0x1bf))[a2_0x238710(0x16b)](a2_0x238710(0x366),a2_0x238710(0x3a4))['option'](a2_0x238710(0x3af),a2_0x238710(0x314))[a2_0x238710(0x16b)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x238710(0x3c3))['action'](async(_0x5528ae,_0x53c3e2)=>{const _0x1956e8=a2_0x238710,_0x28588a=new ParentSegmentPreviewCommand(),_0x3a0a81=program[_0x1956e8(0x34c)](),_0x5f133a=await createTDXInstance(_0x3a0a81),_0x374d6f=await _0x28588a[_0x1956e8(0x1d5)]({'options':{..._0x3a0a81,..._0x53c3e2},'args':_0x5528ae?[_0x5528ae]:[],'tdx':_0x5f133a});process[_0x1956e8(0x3aa)](_0x374d6f);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x236))[a2_0x238710(0x335)](a2_0x238710(0x18f))[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))['action'](async(_0x542d53,_0x599c2a)=>{const _0x54d958=a2_0x238710,_0x57651a=new ParentSegmentRunCommand(),_0x40f191=program[_0x54d958(0x34c)](),_0x2bd1d7=await createTDXInstance(_0x40f191),_0x39a658=await _0x57651a[_0x54d958(0x1d5)]({'options':{..._0x40f191,..._0x599c2a},'args':_0x542d53?[_0x542d53]:[],'tdx':_0x2bd1d7});process[_0x54d958(0x3aa)](_0x39a658);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x34d))[a2_0x238710(0x335)](a2_0x238710(0x1da))[a2_0x238710(0x16b)](a2_0x238710(0x376),a2_0x238710(0x213))['option'](a2_0x238710(0x327),a2_0x238710(0x3bb))['action'](async(_0x59e2c8,_0x4752b5)=>{const _0x5557c8=a2_0x238710,_0x40716a=new ParentSegmentFieldsCommand(),_0x5a91b5=program['opts'](),_0x4cd831=await createTDXInstance(_0x5a91b5),_0x4e815d=await _0x40716a[_0x5557c8(0x1d5)]({'options':{..._0x5a91b5,..._0x4752b5},'args':_0x59e2c8?[_0x59e2c8]:[],'tdx':_0x4cd831});process['exit'](_0x4e815d);}),parentSegmentCmd[a2_0x238710(0x1e8)]('view\x20[name]')[a2_0x238710(0x335)](a2_0x238710(0x312))[a2_0x238710(0x16b)](a2_0x238710(0x1d8),'Open\x20parent\x20segment\x20in\x20web\x20browser')['option'](a2_0x238710(0x376),'Output\x20as\x20JSON')[a2_0x238710(0x16b)](a2_0x238710(0x327),a2_0x238710(0x3bb))['action'](async(_0x576f9a,_0xb5bf26)=>{const _0x3542ae=a2_0x238710,_0x20f381=new ParentSegmentViewCommand(),_0x4ec4ff=program[_0x3542ae(0x34c)](),_0x4f02eb=await createTDXInstance(_0x4ec4ff),_0x3a6e2d=await _0x20f381[_0x3542ae(0x1d5)]({'options':{..._0x4ec4ff,..._0xb5bf26},'args':_0x576f9a?[_0x576f9a]:[],'tdx':_0x4f02eb});process[_0x3542ae(0x3aa)](_0x3a6e2d);}),parentSegmentCmd['command']('desc\x20[name]')['description'](a2_0x238710(0x29a))[a2_0x238710(0x16b)]('--json','Output\x20as\x20JSON')['option']('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x238710(0x1b7)](async(_0x32f32e,_0x554e82)=>{const _0x1009ed=a2_0x238710,_0x4f12e0=new ParentSegmentDescCommand(),_0x4a8967=program['opts'](),_0x37485a=await createTDXInstance(_0x4a8967),_0x4977f9=await _0x4f12e0[_0x1009ed(0x1d5)]({'options':{..._0x4a8967,..._0x554e82},'args':_0x32f32e?[_0x32f32e]:[],'tdx':_0x37485a});process[_0x1009ed(0x3aa)](_0x4977f9);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x23b))[a2_0x238710(0x335)](a2_0x238710(0x31e))[a2_0x238710(0x16b)]('--json',a2_0x238710(0x213))[a2_0x238710(0x16b)](a2_0x238710(0x327),a2_0x238710(0x3bb))[a2_0x238710(0x1b7)](async(_0x506215,_0x3588f7)=>{const _0x34e0ee=a2_0x238710,_0x4417ff=new ParentSegmentSQLCommand(),_0xaff2b9=program['opts'](),_0x426d9b=await createTDXInstance(_0xaff2b9),_0x184507=await _0x4417ff[_0x34e0ee(0x1d5)]({'options':{..._0xaff2b9,..._0x3588f7},'args':_0x506215?[_0x506215]:[],'tdx':_0x426d9b});process[_0x34e0ee(0x3aa)](_0x184507);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x378))[a2_0x238710(0x335)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x238710(0x16b)](a2_0x238710(0x3cc),a2_0x238710(0x398))[a2_0x238710(0x16b)](a2_0x238710(0x376),'Output\x20as\x20JSON')[a2_0x238710(0x16b)](a2_0x238710(0x327),a2_0x238710(0x3bb))['action'](async(_0x1313a5,_0x593efc)=>{const _0x73e7d5=a2_0x238710,_0x37d26f=new ParentSegmentShowCommand(),_0x1f03cb=program[_0x73e7d5(0x34c)](),_0x1766ab=await createTDXInstance(_0x1f03cb),_0x386bf8=await _0x37d26f[_0x73e7d5(0x1d5)]({'options':{..._0x1f03cb,..._0x593efc},'args':_0x1313a5?[_0x1313a5]:[],'tdx':_0x1766ab});process[_0x73e7d5(0x3aa)](_0x386bf8);}),parentSegmentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x333))[a2_0x238710(0x335)](a2_0x238710(0x1e2))[a2_0x238710(0x1b7)](async(_0x243fb2,_0x43cce4)=>{const _0xe671e8=a2_0x238710,_0x3ff67=new UseCommand(),_0x2fa2fa=program[_0xe671e8(0x34c)](),_0x16ccde=_0x243fb2?[_0xe671e8(0x2a4),_0x243fb2]:[],_0x24e48c=await _0x3ff67[_0xe671e8(0x1d5)]({'options':{..._0x2fa2fa,..._0x43cce4},'args':_0x16ccde,'tdx':null});process[_0xe671e8(0x3aa)](_0x24e48c);}),parentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1a1))[a2_0x238710(0x335)](a2_0x238710(0x328))['requiredOption']('--database\x20<db>',a2_0x238710(0x174))[a2_0x238710(0x2ba)](a2_0x238710(0x38c),a2_0x238710(0x2cd))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),a2_0x238710(0x38b))[a2_0x238710(0x16b)]('--schedule-type\x20<type>',a2_0x238710(0x3c0))[a2_0x238710(0x16b)](a2_0x238710(0x304),a2_0x238710(0x20d))[a2_0x238710(0x16b)](a2_0x238710(0x17e),a2_0x238710(0x215))[a2_0x238710(0x16b)]('--attributes\x20<json>',a2_0x238710(0x214))[a2_0x238710(0x16b)](a2_0x238710(0x1c6),a2_0x238710(0x265))[a2_0x238710(0x16b)](a2_0x238710(0x1ad),a2_0x238710(0x2e4))[a2_0x238710(0x16b)](a2_0x238710(0x3c9),a2_0x238710(0x241))['option'](a2_0x238710(0x3b2),a2_0x238710(0x1f0))[a2_0x238710(0x16b)](a2_0x238710(0x33f),a2_0x238710(0x2d8))[a2_0x238710(0x1b7)](async(_0x49141b,_0x3caec0)=>{const _0x22e81d=a2_0x238710,_0x38bb7f=new ParentSegmentCreateCommand(),_0x5c2db8=program[_0x22e81d(0x34c)](),_0x377370=await createTDXInstance(_0x5c2db8),_0x1e25ab=await _0x38bb7f[_0x22e81d(0x1d5)]({'options':{..._0x5c2db8,..._0x3caec0},'args':[_0x49141b],'tdx':_0x377370});process[_0x22e81d(0x3aa)](_0x1e25ab);}),parentCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1d4))['description'](a2_0x238710(0x191))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),a2_0x238710(0x399))[a2_0x238710(0x16b)](a2_0x238710(0x19f),a2_0x238710(0x272))['option'](a2_0x238710(0x304),'Updated\x20schedule\x20option')[a2_0x238710(0x16b)](a2_0x238710(0x17e),a2_0x238710(0x26d))[a2_0x238710(0x16b)](a2_0x238710(0x320),a2_0x238710(0x216))['option'](a2_0x238710(0x1e9),a2_0x238710(0x344))[a2_0x238710(0x16b)](a2_0x238710(0x362),a2_0x238710(0x172))[a2_0x238710(0x16b)]('--add-behaviors-file\x20<file>',a2_0x238710(0x1b4))['action'](async(_0x5b90a8,_0x25ceaf)=>{const _0x2e7b22=a2_0x238710,_0x54219b=new ParentSegmentUpdateCommand(),_0x4c9aad=program[_0x2e7b22(0x34c)](),_0x202da9=await createTDXInstance(_0x4c9aad),_0xcf41b6=await _0x54219b[_0x2e7b22(0x1d5)]({'options':{..._0x4c9aad,..._0x25ceaf},'args':[_0x5b90a8],'tdx':_0x202da9});process[_0x2e7b22(0x3aa)](_0xcf41b6);}),folderCmd[a2_0x238710(0x1e8)]('create\x20<parent_name>\x20<folder_name>')[a2_0x238710(0x335)](a2_0x238710(0x223))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),a2_0x238710(0x228))['option']('--parent-folder\x20<name>',a2_0x238710(0x209))['action'](async(_0x24813b,_0x3e1911,_0x27d13d)=>{const _0x54b854=a2_0x238710,_0x3e9205=new SegmentFolderCreateCommand(),_0x2a8512=program[_0x54b854(0x34c)](),_0x676693=await createTDXInstance(_0x2a8512),_0xb5afac=await _0x3e9205[_0x54b854(0x1d5)]({'options':{..._0x2a8512,..._0x27d13d},'args':[_0x24813b,_0x3e1911],'tdx':_0x676693});process[_0x54b854(0x3aa)](_0xb5afac);}),program['command'](a2_0x238710(0x211))[a2_0x238710(0x335)](a2_0x238710(0x298))[a2_0x238710(0x1b7)](async(_0x408ff1,_0x52f6bb)=>{const _0x4bcbb5=new ActivationsCommand(),_0x50e194=program['opts'](),_0x380c0c=await createTDXInstance(_0x50e194),_0x200f5f=await _0x4bcbb5['run']({'options':{..._0x50e194,..._0x52f6bb},'args':[_0x408ff1],'tdx':_0x380c0c});process['exit'](_0x200f5f);});const workflowCmd=program['command']('workflow')[a2_0x238710(0x3ae)]('wf')[a2_0x238710(0x335)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x356))[a2_0x238710(0x335)](a2_0x238710(0x3bc)),wfProjectListAction=async(_0x36d193,_0x3f99ab)=>{const _0x1ea00f=a2_0x238710,_0x3f6662=new WorkflowProjectsCommand(),_0x26310d=program['opts'](),_0x2fccb9=await createTDXInstance(_0x26310d),_0x27cb62=await _0x3f6662[_0x1ea00f(0x1d5)]({'options':{..._0x26310d,..._0x3f99ab},'args':_0x36d193?[_0x36d193]:[],'tdx':_0x2fccb9});process['exit'](_0x27cb62);};wfProjectCmd[a2_0x238710(0x1e8)]('list\x20[pattern]')[a2_0x238710(0x335)](a2_0x238710(0x25c))['action'](wfProjectListAction),workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x233))['description'](a2_0x238710(0x28a))[a2_0x238710(0x1b7)](wfProjectListAction);function a2_0x38cb(_0x491dda,_0x1c67a1){_0x491dda=_0x491dda-0x16b;const _0x496c58=a2_0x496c();let _0x38cbf9=_0x496c58[_0x491dda];return _0x38cbf9;}const wfWorkflowListAction=async(_0x3a759b,_0x4999ed)=>{const _0x1b6b48=a2_0x238710,_0xe41d4=new WorkflowWorkflowsCommand(),_0x4ec569=program[_0x1b6b48(0x34c)](),_0x1d9698=await createTDXInstance(_0x4ec569),_0x3926dc=await _0xe41d4['run']({'options':{..._0x4ec569,..._0x4999ed},'args':_0x3a759b?[_0x3a759b]:[],'tdx':_0x1d9698});process[_0x1b6b48(0x3aa)](_0x3926dc);};workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1bd))[a2_0x238710(0x335)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x238710(0x1b7)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1ec))['description'](a2_0x238710(0x310)),wfSessionListAction=async(_0x374630,_0x26d34c)=>{const _0x15926c=a2_0x238710,_0x57c79b=new WorkflowSessionsCommand(),_0x4df232=program[_0x15926c(0x34c)](),_0x35ce07=await createTDXInstance(_0x4df232),_0x5d9b36=await _0x57c79b[_0x15926c(0x1d5)]({'options':{..._0x4df232,..._0x26d34c},'args':_0x374630?[_0x374630]:[],'tdx':_0x35ce07});process[_0x15926c(0x3aa)](_0x5d9b36);};wfSessionCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3bd))[a2_0x238710(0x335)](a2_0x238710(0x187))[a2_0x238710(0x16b)](a2_0x238710(0x1e6),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x238710(0x16b)]('--from\x20<timestamp>',a2_0x238710(0x28d))[a2_0x238710(0x16b)]('--to\x20<timestamp>',a2_0x238710(0x37d))[a2_0x238710(0x1b7)](wfSessionListAction),workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1de))[a2_0x238710(0x335)](a2_0x238710(0x1e3))[a2_0x238710(0x16b)]('--status\x20<status>',a2_0x238710(0x2b9))[a2_0x238710(0x16b)](a2_0x238710(0x1b6),a2_0x238710(0x28d))['option'](a2_0x238710(0x29e),a2_0x238710(0x37d))[a2_0x238710(0x1b7)](wfSessionListAction);const wfAttemptListAction=async(_0x39ce99,_0xaeaca8)=>{const _0x12010c=new WorkflowAttemptsCommand(),_0x53cbf1=program['opts'](),_0x301b2d=await createTDXInstance(_0x53cbf1),_0x7e1b35=await _0x12010c['run']({'options':{..._0x53cbf1,..._0xaeaca8},'args':_0x39ce99?[_0x39ce99]:[],'tdx':_0x301b2d});process['exit'](_0x7e1b35);},attemptCmd=workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1d9))['description']('Workflow\x20attempt\x20management')[a2_0x238710(0x365)](a2_0x238710(0x1b0),a2_0x238710(0x2a0))[a2_0x238710(0x365)](a2_0x238710(0x1b3),'Action:\x20logs,\x20tasks,\x20kill,\x20retry')['argument'](a2_0x238710(0x302),a2_0x238710(0x3ab))['option']('--include-subtasks',a2_0x238710(0x295))[a2_0x238710(0x16b)]('--reason\x20<text>','Reason\x20for\x20killing\x20the\x20attempt')[a2_0x238710(0x16b)](a2_0x238710(0x199),a2_0x238710(0x16c))[a2_0x238710(0x16b)](a2_0x238710(0x2ef),a2_0x238710(0x3cd))[a2_0x238710(0x16b)](a2_0x238710(0x326),a2_0x238710(0x1a2))[a2_0x238710(0x16b)](a2_0x238710(0x239),a2_0x238710(0x20b))[a2_0x238710(0x1b7)](async(_0xcec545,_0x5a85bc,_0x224017,_0x4f394a)=>{const _0x12844c=a2_0x238710;if(_0xcec545===_0x12844c(0x3b9)){await wfAttemptListAction(_0x5a85bc,_0x4f394a);return;}if(!_0xcec545){attemptCmd[_0x12844c(0x201)]();return;}const _0x534a82=program[_0x12844c(0x34c)](),_0x3d5a2d=await createTDXInstance(_0x534a82);let _0x346ab4=0x0;if(!_0x5a85bc){const _0x3ed6a8=new WorkflowAttemptCommand();_0x346ab4=await _0x3ed6a8[_0x12844c(0x1d5)]({'options':{..._0x534a82,..._0x4f394a},'args':[_0xcec545],'tdx':_0x3d5a2d});}else{if(_0x5a85bc===_0x12844c(0x32e)){const _0x5b489f=new WorkflowLogsCommand();_0x346ab4=await _0x5b489f[_0x12844c(0x1d5)]({'options':{..._0x534a82,..._0x4f394a},'args':_0x224017?[_0xcec545,_0x224017]:[_0xcec545],'tdx':_0x3d5a2d});}else{if(_0x5a85bc===_0x12844c(0x383)){const _0x21311c=new WorkflowTasksCommand();_0x346ab4=await _0x21311c[_0x12844c(0x1d5)]({'options':{..._0x534a82,..._0x4f394a},'args':[_0xcec545],'tdx':_0x3d5a2d});}else{if(_0x5a85bc===_0x12844c(0x2d4)){const _0x343402=new WorkflowKillCommand();_0x346ab4=await _0x343402[_0x12844c(0x1d5)]({'options':{..._0x534a82,..._0x4f394a},'args':[_0xcec545],'tdx':_0x3d5a2d});}else{if(_0x5a85bc===_0x12844c(0x345)){const _0xa3a061=new WorkflowRetryCommand();_0x346ab4=await _0xa3a061[_0x12844c(0x1d5)]({'options':{..._0x534a82,..._0x4f394a},'args':[_0x12844c(0x1ab)+_0xcec545],'tdx':_0x3d5a2d});}else console['error'](_0x12844c(0x2d9)+_0x5a85bc),console[_0x12844c(0x2c5)](_0x12844c(0x391)),_0x346ab4=0x1;}}}}process['exit'](_0x346ab4);});attemptCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3bd))[a2_0x238710(0x335)](a2_0x238710(0x392))[a2_0x238710(0x16b)](a2_0x238710(0x239),'Include\x20retried\x20attempts')[a2_0x238710(0x1b7)](wfAttemptListAction),workflowCmd[a2_0x238710(0x1e8)]('attempts\x20[project]')[a2_0x238710(0x335)](a2_0x238710(0x3b8))[a2_0x238710(0x16b)](a2_0x238710(0x239),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x238710(0x1e8)]('timeline\x20[project.workflow]')[a2_0x238710(0x335)](a2_0x238710(0x2a3))[a2_0x238710(0x16b)]('--follow',a2_0x238710(0x18b))[a2_0x238710(0x16b)]('--session-id\x20<id>',a2_0x238710(0x2fe))['option'](a2_0x238710(0x321),a2_0x238710(0x28b))[a2_0x238710(0x1b7)](async(_0x26b0fe,_0xbdc1fe)=>{const _0x528a4e=a2_0x238710,_0x5500ce=new WorkflowTimelineCommand(),_0x6fa237=program[_0x528a4e(0x34c)](),_0x2d63f1=await createTDXInstance(_0x6fa237),_0x323993=await _0x5500ce[_0x528a4e(0x1d5)]({'options':{..._0x6fa237,..._0xbdc1fe},'args':_0x26b0fe?[_0x26b0fe]:[],'tdx':_0x2d63f1});process['exit'](_0x323993);}),workflowCmd['command'](a2_0x238710(0x259))['description'](a2_0x238710(0x35b))[a2_0x238710(0x16b)](a2_0x238710(0x347),'Resume\x20from\x20specific\x20task')[a2_0x238710(0x16b)](a2_0x238710(0x2ef),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x238710(0x1b7)](async(_0x57a8bc,_0x148e51)=>{const _0x506956=a2_0x238710,_0x573189=new WorkflowRetryCommand(),_0x85ba9f=program['opts'](),_0x25783b=await createTDXInstance(_0x85ba9f),_0x4dd00e=await _0x573189[_0x506956(0x1d5)]({'options':{..._0x85ba9f,..._0x148e51},'args':[_0x57a8bc],'tdx':_0x25783b});process[_0x506956(0x3aa)](_0x4dd00e);}),workflowCmd['command'](a2_0x238710(0x1a0))[a2_0x238710(0x335)](a2_0x238710(0x212))[a2_0x238710(0x16b)](a2_0x238710(0x2b8),'Workflow\x20parameter\x20(repeatable)',(_0x34afbb,_0x5cb429=[])=>[..._0x5cb429,_0x34afbb],[])[a2_0x238710(0x16b)]('--session-time\x20<time>',a2_0x238710(0x291))[a2_0x238710(0x1b7)](async(_0x4b1e4f,_0x103556)=>{const _0x1fa698=a2_0x238710,_0x1e802f=new WorkflowRunCommand(),_0x461c3b=program['opts'](),_0x5eac72=await createTDXInstance(_0x461c3b),_0x113d06=await _0x1e802f[_0x1fa698(0x1d5)]({'options':{..._0x461c3b,..._0x103556},'args':_0x4b1e4f?[_0x4b1e4f]:[],'tdx':_0x5eac72});process['exit'](_0x113d06);}),workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2c1))['description'](a2_0x238710(0x3d3))[a2_0x238710(0x16b)](a2_0x238710(0x2ad),a2_0x238710(0x390))[a2_0x238710(0x1b7)](async(_0x5d4de9,_0x1b25de,_0x1c1761)=>{const _0x3c6bd3=a2_0x238710,_0x325faa=new WorkflowDownloadCommand(),_0x4ce65a=program[_0x3c6bd3(0x34c)](),_0xce810c=await createTDXInstance(_0x4ce65a),_0x5a441b=await _0x325faa[_0x3c6bd3(0x1d5)]({'options':{..._0x4ce65a,..._0x1c1761},'args':[_0x5d4de9,_0x1b25de||'.'],'tdx':_0xce810c});process[_0x3c6bd3(0x3aa)](_0x5a441b);}),workflowCmd['command'](a2_0x238710(0x219))[a2_0x238710(0x335)](a2_0x238710(0x27e))[a2_0x238710(0x16b)]('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x238710(0x16b)](a2_0x238710(0x1ef),a2_0x238710(0x36b))['option'](a2_0x238710(0x242),a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x434fec,_0x5f501d,_0x5523a6)=>{const _0xf2995c=a2_0x238710,_0x1f60c8=new WorkflowPullCommand(),_0x3db263=program[_0xf2995c(0x34c)](),_0x52a056=await createTDXInstance(_0x3db263),_0x4c440e=await _0x1f60c8[_0xf2995c(0x1d5)]({'options':{..._0x3db263,..._0x5523a6},'args':_0x5f501d?[_0x434fec,_0x5f501d]:[_0x434fec],'tdx':_0x52a056});process[_0xf2995c(0x3aa)](_0x4c440e);}),workflowCmd[a2_0x238710(0x1e8)]('push\x20[source-dir]')[a2_0x238710(0x335)](a2_0x238710(0x249))[a2_0x238710(0x16b)](a2_0x238710(0x2ad),a2_0x238710(0x33a))[a2_0x238710(0x16b)](a2_0x238710(0x1ef),a2_0x238710(0x21b))[a2_0x238710(0x16b)](a2_0x238710(0x3c4),a2_0x238710(0x353))[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x5af216,_0x1bfd0f)=>{const _0xda3843=a2_0x238710,_0x27f303=new WorkflowPushCommand(),_0x5ed593=program['opts'](),_0xffa224=await createTDXInstance(_0x5ed593),_0x4adc8e=await _0x27f303[_0xda3843(0x1d5)]({'options':{..._0x5ed593,..._0x1bfd0f},'args':_0x5af216?[_0x5af216]:[],'tdx':_0xffa224});process['exit'](_0x4adc8e);}),workflowCmd[a2_0x238710(0x1e8)]('upload\x20[project-name-or-dir]')[a2_0x238710(0x335)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option']('--name\x20<name>',a2_0x238710(0x1eb))[a2_0x238710(0x16b)](a2_0x238710(0x2ad),a2_0x238710(0x1c7))[a2_0x238710(0x16b)](a2_0x238710(0x3c4),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x104289,_0x4ce82b)=>{const _0x58ac0d=a2_0x238710,_0x528200=new WorkflowUploadCommand(),_0x59701f=program[_0x58ac0d(0x34c)](),_0x2d1f6a=await createTDXInstance(_0x59701f),_0x115dc7=await _0x528200['run']({'options':{..._0x59701f,..._0x4ce82b},'args':_0x104289?[_0x104289]:[],'tdx':_0x2d1f6a});process['exit'](_0x115dc7);}),workflowCmd[a2_0x238710(0x1e8)]('clone\x20[source-dir]')[a2_0x238710(0x335)](a2_0x238710(0x1e4))[a2_0x238710(0x16b)](a2_0x238710(0x245),a2_0x238710(0x39d))[a2_0x238710(0x16b)](a2_0x238710(0x2ad),a2_0x238710(0x33a))[a2_0x238710(0x16b)](a2_0x238710(0x1ef),a2_0x238710(0x2f3))[a2_0x238710(0x16b)](a2_0x238710(0x3c4),a2_0x238710(0x353))[a2_0x238710(0x16b)](a2_0x238710(0x242),a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x1294cb,_0x374d50)=>{const _0x32c786=a2_0x238710,_0xf74f1d=new WorkflowCloneCommand(),_0x52e735=program['opts'](),_0x159f25=await createTDXInstance(_0x52e735),_0x2a253d=await _0xf74f1d[_0x32c786(0x1d5)]({'options':{..._0x52e735,..._0x374d50},'args':_0x1294cb?[_0x1294cb]:[],'tdx':_0x159f25});process[_0x32c786(0x3aa)](_0x2a253d);}),workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2c6))[a2_0x238710(0x335)](a2_0x238710(0x1cc))[a2_0x238710(0x1b7)](async(_0x7199e1,_0xd6fbe3)=>{const _0x348b1d=a2_0x238710,_0x1d6f76=new WorkflowDeleteCommand(),_0x2b93f4=program[_0x348b1d(0x34c)](),_0x427e2f=await createTDXInstance(_0x2b93f4),_0x1748f8=await _0x1d6f76[_0x348b1d(0x1d5)]({'options':{..._0x2b93f4,..._0xd6fbe3},'args':[_0x7199e1],'tdx':_0x427e2f});process[_0x348b1d(0x3aa)](_0x1748f8);}),workflowCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3be))[a2_0x238710(0x335)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')['option'](a2_0x238710(0x396),a2_0x238710(0x260))[a2_0x238710(0x1b7)](async(_0x1fabab,_0x495bd8)=>{const _0x24879d=a2_0x238710,_0x2db058=new WorkflowUseCommand(),_0x4c3615=program[_0x24879d(0x34c)](),_0x5679ea=await createTDXInstance(_0x4c3615),_0x31ef60=await _0x2db058[_0x24879d(0x1d5)]({'options':{..._0x4c3615,..._0x495bd8},'args':_0x1fabab?[_0x1fabab]:[],'tdx':_0x5679ea});process[_0x24879d(0x3aa)](_0x31ef60);});const wfSecretsCmd=workflowCmd['command']('secrets')['description'](a2_0x238710(0x1f1));wfSecretsCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3bd))[a2_0x238710(0x335)](a2_0x238710(0x2b3))[a2_0x238710(0x1b7)](async(_0x165d8f,_0x40da60)=>{const _0xdd0b50=a2_0x238710,_0x21c18f=new WorkflowSecretsListCommand(),_0x12c934=program['opts'](),_0x3ceee3=await createTDXInstance(_0x12c934),_0x8bb13b=await _0x21c18f[_0xdd0b50(0x1d5)]({'options':{..._0x12c934,..._0x40da60},'args':_0x165d8f?[_0x165d8f]:[],'tdx':_0x3ceee3});process[_0xdd0b50(0x3aa)](_0x8bb13b);}),wfSecretsCmd[a2_0x238710(0x1e8)](a2_0x238710(0x280))[a2_0x238710(0x335)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')['action'](async(_0x725d65,_0x5b1c21)=>{const _0x2550ca=a2_0x238710,_0x25ef5b=new WorkflowSecretsSetCommand(),_0x50f8e1=program['opts'](),_0x59f8ec=await createTDXInstance(_0x50f8e1),_0x527c35=await _0x25ef5b[_0x2550ca(0x1d5)]({'options':{..._0x50f8e1,..._0x5b1c21},'args':_0x725d65,'tdx':_0x59f8ec});process[_0x2550ca(0x3aa)](_0x527c35);}),wfSecretsCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1ca))[a2_0x238710(0x335)](a2_0x238710(0x224))[a2_0x238710(0x16b)]('-y,\x20--yes',a2_0x238710(0x29c))[a2_0x238710(0x1b7)](async(_0x19d124,_0x7de7fd)=>{const _0x39accc=a2_0x238710,_0x52017f=new WorkflowSecretsDeleteCommand(),_0x4d3a90=program[_0x39accc(0x34c)](),_0x1094c0=await createTDXInstance(_0x4d3a90),_0x614364=await _0x52017f[_0x39accc(0x1d5)]({'options':{..._0x4d3a90,..._0x7de7fd},'args':_0x19d124,'tdx':_0x1094c0});process[_0x39accc(0x3aa)](_0x614364);});const jobCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x2ac))[a2_0x238710(0x335)](a2_0x238710(0x221)),jobListAction=async _0x1f3b73=>{const _0x1aee24=a2_0x238710,_0x1f7438=new JobListCommand(),_0x1b40e7=program['opts'](),_0x5bc71f=await createTDXInstance(_0x1b40e7),_0xa020db=await _0x1f7438[_0x1aee24(0x1d5)]({'options':{..._0x1b40e7,..._0x1f3b73},'args':[],'tdx':_0x5bc71f});process[_0x1aee24(0x3aa)](_0xa020db);};jobCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3b9))[a2_0x238710(0x335)](a2_0x238710(0x2ee))['option'](a2_0x238710(0x1e6),a2_0x238710(0x3c2))[a2_0x238710(0x1b7)](jobListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x24f),{'hidden':!![]})[a2_0x238710(0x335)](a2_0x238710(0x19e))['option'](a2_0x238710(0x1e6),a2_0x238710(0x3c2))['action'](jobListAction),jobCmd['command'](a2_0x238710(0x17f))['description'](a2_0x238710(0x3ba))[a2_0x238710(0x1b7)](async(_0x18773d,_0x45ceb9)=>{const _0x105d52=a2_0x238710,_0x458048=new JobShowCommand(),_0x216631=program[_0x105d52(0x34c)](),_0x48dbb5=await createTDXInstance(_0x216631),_0x3b285c=await _0x458048[_0x105d52(0x1d5)]({'options':{..._0x216631,..._0x45ceb9},'args':[_0x18773d],'tdx':_0x48dbb5});process[_0x105d52(0x3aa)](_0x3b285c);}),jobCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1c4))['description']('Kill\x20a\x20job')['action'](async(_0x188f54,_0x1f61a9)=>{const _0x58778c=a2_0x238710,_0x17c380=new JobKillCommand(),_0x2be7c6=program[_0x58778c(0x34c)](),_0x45fde4=await createTDXInstance(_0x2be7c6),_0x177c99=await _0x17c380[_0x58778c(0x1d5)]({'options':{..._0x2be7c6,..._0x1f61a9},'args':[_0x188f54],'tdx':_0x45fde4});process[_0x58778c(0x3aa)](_0x177c99);}),jobCmd[a2_0x238710(0x1e8)]('submit\x20[query]')[a2_0x238710(0x335)]('Submit\x20a\x20job')[a2_0x238710(0x16b)](a2_0x238710(0x3d1),a2_0x238710(0x1b2),a2_0x238710(0x1fd))['option'](a2_0x238710(0x2aa),'Read\x20query\x20from\x20file')[a2_0x238710(0x16b)](a2_0x238710(0x1ce),a2_0x238710(0x35f),a2_0x238710(0x19b))[a2_0x238710(0x1b7)](async(_0x506baf,_0x3bb9ec)=>{const _0x290af3=a2_0x238710,_0x5d3e10=new JobSubmitCommand(),_0x50c39b=program[_0x290af3(0x34c)](),_0x59bfd8=await createTDXInstance(_0x50c39b),_0x253155=await _0x5d3e10['run']({'options':{..._0x50c39b,..._0x3bb9ec},'args':_0x506baf?[_0x506baf]:[],'tdx':_0x59bfd8});process[_0x290af3(0x3aa)](_0x253155);}),jobCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1b5))[a2_0x238710(0x335)](a2_0x238710(0x273))[a2_0x238710(0x1b7)](async(_0x31c239,_0x5de89f)=>{const _0xae5beb=a2_0x238710,_0x2eadd7=new JobResultCommand(),_0x2aae4a=program[_0xae5beb(0x34c)](),_0x2d0641=await createTDXInstance(_0x2aae4a),_0x456b17=await _0x2eadd7[_0xae5beb(0x1d5)]({'options':{..._0x2aae4a,..._0x5de89f},'args':[_0x31c239],'tdx':_0x2d0641});process['exit'](_0x456b17);});const llmCmd=program['command'](a2_0x238710(0x34a))[a2_0x238710(0x335)](a2_0x238710(0x357));llmCmd[a2_0x238710(0x1e8)]('use\x20<project-name>')['description'](a2_0x238710(0x334))[a2_0x238710(0x1b7)](async(_0x5d749c,_0x178cd7)=>{const _0xa9da02=a2_0x238710,_0x3fe54d=new LLMUseCommand(),_0x324762=program['opts'](),_0x4477dc=await createTDXInstance(_0x324762),_0x26d1fc=await _0x3fe54d[_0xa9da02(0x1d5)]({'options':{..._0x324762,..._0x178cd7},'args':[_0x5d749c],'tdx':_0x4477dc});process[_0xa9da02(0x3aa)](_0x26d1fc);}),llmCmd[a2_0x238710(0x1e8)](a2_0x238710(0x274))[a2_0x238710(0x335)]('List\x20available\x20LLM\x20models')[a2_0x238710(0x1b7)](async _0xc0a55=>{const _0xacc88a=a2_0x238710,_0x5a7746=new LLMModelsCommand(),_0x22cb82=program[_0xacc88a(0x34c)](),_0xdb7f42=await createTDXInstance(_0x22cb82),_0x4577ef=await _0x5a7746['run']({'options':{..._0x22cb82,..._0xc0a55},'args':[],'tdx':_0xdb7f42});process['exit'](_0x4577ef);});const projectCmd=llmCmd[a2_0x238710(0x1e8)](a2_0x238710(0x356))['description'](a2_0x238710(0x2cc)),llmProjectListAction=async(_0x5bf217,_0x5a836f)=>{const _0x5320e0=a2_0x238710,_0x59e2d6=new LLMProjectsCommand(),_0x233562=program[_0x5320e0(0x34c)](),_0x4b5a12=await createTDXInstance(_0x233562),_0x3965bd=await _0x59e2d6[_0x5320e0(0x1d5)]({'options':{..._0x233562,..._0x5a836f},'args':_0x5bf217?[_0x5bf217]:[],'tdx':_0x4b5a12});process[_0x5320e0(0x3aa)](_0x3965bd);};projectCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))[a2_0x238710(0x335)](a2_0x238710(0x188))[a2_0x238710(0x1b7)](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x238710(0x335)](a2_0x238710(0x173))[a2_0x238710(0x1b7)](llmProjectListAction),projectCmd['command'](a2_0x238710(0x1a1))[a2_0x238710(0x335)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x238710(0x16b)](a2_0x238710(0x3c6),'Project\x20description')[a2_0x238710(0x1b7)](async(_0x2dcdd8,_0x29d420)=>{const _0x223eaa=a2_0x238710,_0x512dd4=new LLMProjectCreateCommand(),_0x4f0678=program[_0x223eaa(0x34c)](),_0x3a849d=await createTDXInstance(_0x4f0678),_0x1c057f=await _0x512dd4[_0x223eaa(0x1d5)]({'options':{..._0x4f0678,..._0x29d420},'args':[_0x2dcdd8],'tdx':_0x3a849d});process[_0x223eaa(0x3aa)](_0x1c057f);}),projectCmd[a2_0x238710(0x1e8)](a2_0x238710(0x397))[a2_0x238710(0x335)](a2_0x238710(0x2c7))['action'](async(_0x47981c,_0x2b44a4)=>{const _0x480066=a2_0x238710,_0x5a683a=new LLMProjectDeleteCommand(),_0x29cbde=program[_0x480066(0x34c)](),_0x417c27=await createTDXInstance(_0x29cbde),_0x320bf6=await _0x5a683a[_0x480066(0x1d5)]({'options':{..._0x29cbde,..._0x2b44a4},'args':[_0x47981c],'tdx':_0x417c27});process[_0x480066(0x3aa)](_0x320bf6);}),projectCmd[a2_0x238710(0x1e8)]('backup\x20<name>')[a2_0x238710(0x335)](a2_0x238710(0x338))[a2_0x238710(0x16b)](a2_0x238710(0x2ed),a2_0x238710(0x27d))['option'](a2_0x238710(0x1ef),a2_0x238710(0x255))[a2_0x238710(0x1b7)](async(_0x47e80d,_0x6f582b)=>{const _0x1d84db=a2_0x238710,_0x4a7658=new LLMProjectBackupCommand(),_0x1d5198=program['opts'](),_0x229ef6=await createTDXInstance(_0x1d5198),_0x142e5d=await _0x4a7658[_0x1d84db(0x1d5)]({'options':{..._0x1d5198,..._0x6f582b},'args':[_0x47e80d],'tdx':_0x229ef6});process['exit'](_0x142e5d);}),projectCmd[a2_0x238710(0x1e8)]('restore\x20<folder>')[a2_0x238710(0x335)](a2_0x238710(0x305))[a2_0x238710(0x16b)](a2_0x238710(0x3cf),a2_0x238710(0x360))['option'](a2_0x238710(0x1ef),a2_0x238710(0x3b6))[a2_0x238710(0x1b7)](async(_0x385185,_0x5a94c7)=>{const _0x33421e=a2_0x238710,_0x23b735=new LLMProjectRestoreCommand(),_0x4d0a94=program['opts'](),_0x3d7013=await createTDXInstance(_0x4d0a94),_0x43c6ed=await _0x23b735[_0x33421e(0x1d5)]({'options':{..._0x4d0a94,..._0x5a94c7},'args':[_0x385185],'tdx':_0x3d7013});process[_0x33421e(0x3aa)](_0x43c6ed);});const llmAgentListAction=async(_0x513070,_0x1fbfdc)=>{const _0x3d89f8=a2_0x238710,_0x141679=new LLMAgentsCommand(),_0x158d62=program[_0x3d89f8(0x34c)](),_0x41774b=await createTDXInstance(_0x158d62),_0x5b0129=await _0x141679[_0x3d89f8(0x1d5)]({'options':{..._0x158d62,..._0x1fbfdc},'args':_0x513070?[_0x513070]:[],'tdx':_0x41774b});process['exit'](_0x5b0129);};llmCmd[a2_0x238710(0x1e8)]('agents\x20[pattern]')[a2_0x238710(0x335)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x238710(0x1b7)](llmAgentListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x22b))[a2_0x238710(0x335)](a2_0x238710(0x254))['action'](llmAgentListAction),llmCmd[a2_0x238710(0x1e8)](a2_0x238710(0x230))[a2_0x238710(0x335)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')['option'](a2_0x238710(0x363),a2_0x238710(0x2d3))['action'](async(_0x208930,_0x25ed1d)=>{const _0x31320c=a2_0x238710,_0x4e8dbb=new LLMHistoryCommand(),_0xf26972=program[_0x31320c(0x34c)](),_0x5d364a=await createTDXInstance(_0xf26972),_0x5e7945=await _0x4e8dbb[_0x31320c(0x1d5)]({'options':{..._0xf26972,..._0x25ed1d},'args':_0x208930?[_0x208930]:[],'tdx':_0x5d364a});process[_0x31320c(0x3aa)](_0x5e7945);}),llmCmd['command'](a2_0x238710(0x3a7))[a2_0x238710(0x335)](a2_0x238710(0x20a))[a2_0x238710(0x16b)](a2_0x238710(0x1a8),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x238710(0x22f))[a2_0x238710(0x16b)](a2_0x238710(0x337),a2_0x238710(0x36d))[a2_0x238710(0x16b)]('--agent\x20<name>',a2_0x238710(0x2dc))[a2_0x238710(0x1b7)](async _0x3e9ac4=>{const _0x157e15=a2_0x238710,_0x95c7d9=new LLMProxyCommand(),_0x527ebd=program[_0x157e15(0x34c)](),_0x24f042=await createTDXInstance(_0x527ebd),_0x2b01a3={..._0x3e9ac4,'port':_0x3e9ac4[_0x157e15(0x282)]?parseInt(_0x3e9ac4[_0x157e15(0x282)],0xa):undefined},_0x29a7d0=await _0x95c7d9[_0x157e15(0x1d5)]({'options':{..._0x527ebd,..._0x2b01a3},'args':[],'tdx':_0x24f042});process[_0x157e15(0x3aa)](_0x29a7d0);}),program[a2_0x238710(0x1e8)](a2_0x238710(0x20e))[a2_0x238710(0x275)]('[options]\x20--\x20[claude-code-args...]')[a2_0x238710(0x335)](a2_0x238710(0x222))[a2_0x238710(0x16b)](a2_0x238710(0x331),a2_0x238710(0x385),a2_0x238710(0x20f))['option']('-c,\x20--continue',a2_0x238710(0x269))['option'](a2_0x238710(0x1ed),a2_0x238710(0x2e0))[a2_0x238710(0x16b)](a2_0x238710(0x24e),a2_0x238710(0x237))['option'](a2_0x238710(0x246),a2_0x238710(0x2a8))[a2_0x238710(0x2c0)]()[a2_0x238710(0x1c5)](!![])[a2_0x238710(0x271)](a2_0x238710(0x197),a2_0x238710(0x18d))['action'](async(_0x526756,_0x5f21ac)=>{const _0x273e08=a2_0x238710,_0x4506f0=program['opts'](),_0x19ed80=Array[_0x273e08(0x22c)](_0x526756)?_0x526756:[];if(_0x19ed80[0x0]===_0x273e08(0x394)){const _0x2b97b5=new ClaudeStatuslineCommand(),_0x30ec20=await _0x2b97b5[_0x273e08(0x1d5)]({'options':{..._0x4506f0,..._0x5f21ac},'args':_0x19ed80[_0x273e08(0x2a9)](0x1),'tdx':null});process[_0x273e08(0x3aa)](_0x30ec20);}if(_0x19ed80[0x0]===_0x273e08(0x275)){const _0x491b13=new ClaudeUsageCommand(),_0x1999e9=await _0x491b13[_0x273e08(0x1d5)]({'options':{..._0x4506f0,..._0x5f21ac},'args':_0x19ed80[_0x273e08(0x2a9)](0x1),'tdx':null});process[_0x273e08(0x3aa)](_0x1999e9);}const _0x3decea=new ClaudeCommand(),_0x9fbc79=await createTDXInstance(_0x4506f0),_0xe584a2=await _0x3decea['run']({'options':{..._0x4506f0,..._0x5f21ac},'args':_0x19ed80,'tdx':_0x9fbc79});process['exit'](_0xe584a2);}),program[a2_0x238710(0x1e8)]('use\x20[resource]\x20[value]')[a2_0x238710(0x335)](a2_0x238710(0x2eb))[a2_0x238710(0x16b)](a2_0x238710(0x396),a2_0x238710(0x35c))[a2_0x238710(0x16b)](a2_0x238710(0x218),a2_0x238710(0x3a6))[a2_0x238710(0x1b7)](async(_0x1d3aa9,_0x4fe5ea,_0x51119b)=>{const _0x14e9d6=a2_0x238710,_0x100c42=new UseCommand(),_0x4b7f22=program[_0x14e9d6(0x34c)](),_0x989362=[];if(_0x1d3aa9)_0x989362[_0x14e9d6(0x2fa)](_0x1d3aa9);if(_0x4fe5ea)_0x989362[_0x14e9d6(0x2fa)](_0x4fe5ea);const _0x115daa=await _0x100c42['run']({'options':{..._0x4b7f22,..._0x51119b},'args':_0x989362,'tdx':null});process[_0x14e9d6(0x3aa)](_0x115daa);}),program[a2_0x238710(0x1e8)](a2_0x238710(0x359))[a2_0x238710(0x335)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')['option']('--default',a2_0x238710(0x244))[a2_0x238710(0x1b7)](async(_0x255de2,_0x331d30)=>{const _0x5f0018=new UnsetCommand(),_0x2b5f85=program['opts'](),_0x2a9079=await _0x5f0018['run']({'options':{..._0x2b5f85,..._0x331d30},'args':[_0x255de2],'tdx':null});process['exit'](_0x2a9079);}),program['command']('chats')[a2_0x238710(0x335)]('Interactive\x20chat\x20selector')['option'](a2_0x238710(0x363),a2_0x238710(0x31f))[a2_0x238710(0x1b7)](async _0x54db0e=>{const _0x17d606=a2_0x238710,_0x48f599=new ChatsCommand(),_0x4df70e=program[_0x17d606(0x34c)](),_0x2de63c=await createTDXInstance(_0x4df70e),_0x43e65d=await _0x48f599['run']({'options':{..._0x4df70e,..._0x54db0e},'args':[],'tdx':_0x2de63c});process[_0x17d606(0x3aa)](_0x43e65d);});const authCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x276))[a2_0x238710(0x335)]('Authentication\x20management');async function runAuthStatusCommand(_0x1e0c5d){const _0x29e8da=a2_0x238710,_0x3575c5=new AuthStatusCommand(),_0x26b79a=program[_0x29e8da(0x34c)](),_0x114795=await createTDXInstance(_0x26b79a),_0x20d917=await _0x3575c5[_0x29e8da(0x1d5)]({'options':{..._0x26b79a,..._0x1e0c5d},'args':[],'tdx':_0x114795});process['exit'](_0x20d917);}authCmd[a2_0x238710(0x1b7)](runAuthStatusCommand),authCmd[a2_0x238710(0x1e8)](a2_0x238710(0x24d))['description'](a2_0x238710(0x278))[a2_0x238710(0x1b7)](runAuthStatusCommand),authCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2b4))[a2_0x238710(0x335)](a2_0x238710(0x1c1))[a2_0x238710(0x271)](a2_0x238710(0x197),'\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')[a2_0x238710(0x1b7)](async _0x12bb3a=>{const _0x347de7=a2_0x238710,_0x321ca8=new AuthSetupCommand(),_0x5b7249=program[_0x347de7(0x34c)](),_0x23001b=await createTDXInstance(_0x5b7249),_0x312a16=await _0x321ca8[_0x347de7(0x1d5)]({'options':{..._0x5b7249,..._0x12bb3a},'args':[],'tdx':_0x23001b});process[_0x347de7(0x3aa)](_0x312a16);}),authCmd[a2_0x238710(0x1e8)]('clear')['description'](a2_0x238710(0x217))[a2_0x238710(0x271)]('after',a2_0x238710(0x270))[a2_0x238710(0x1b7)](async _0x510b5b=>{const _0x484f4b=a2_0x238710,_0x151059=new AuthClearCommand(),_0x4534fc=program['opts'](),_0x2cf04b=await _0x151059[_0x484f4b(0x1d5)]({'options':{..._0x4534fc,..._0x510b5b},'args':[],'tdx':null});process[_0x484f4b(0x3aa)](_0x2cf04b);});const userCmd=program[a2_0x238710(0x1e8)]('user')[a2_0x238710(0x335)](a2_0x238710(0x2fc)),userListAction=async _0x14d9a4=>{const _0x5e0d50=a2_0x238710,_0x5e23c1=new UserListCommand(),_0x3068b6=program['opts'](),_0x737b72=await createTDXInstance(_0x3068b6),_0x5009bd=await _0x5e23c1[_0x5e0d50(0x1d5)]({'options':{..._0x3068b6,..._0x14d9a4},'args':[],'tdx':_0x737b72});process[_0x5e0d50(0x3aa)](_0x5009bd);};userCmd['action'](async _0x5c19b1=>{const _0x3c3b8e=a2_0x238710,_0x157dd2=new UserCommand(),_0x25d7f3=program[_0x3c3b8e(0x34c)](),_0x4c7ca7=await createTDXInstance(_0x25d7f3),_0x264e86=await _0x157dd2[_0x3c3b8e(0x1d5)]({'options':{..._0x25d7f3,..._0x5c19b1},'args':[],'tdx':_0x4c7ca7});process[_0x3c3b8e(0x3aa)](_0x264e86);}),userCmd[a2_0x238710(0x1e8)]('list')[a2_0x238710(0x335)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x238710(0x1b7)](userListAction),program['command']('users')[a2_0x238710(0x335)](a2_0x238710(0x203))[a2_0x238710(0x1b7)](userListAction),program[a2_0x238710(0x1e8)](a2_0x238710(0x3a8))[a2_0x238710(0x335)]('List\x20all\x20available\x20profiles')[a2_0x238710(0x1b7)](async _0x34f4c7=>{const _0xf842d4=a2_0x238710,_0x3fc70c=new ProfilesCommand(),_0x4ee47b=program[_0xf842d4(0x34c)](),_0x444719=await _0x3fc70c[_0xf842d4(0x1d5)]({'options':{..._0x4ee47b,..._0x34f4c7},'args':[],'tdx':null});process['exit'](_0x444719);});const profileCmd=program[a2_0x238710(0x1e8)]('profile')[a2_0x238710(0x335)](a2_0x238710(0x257));profileCmd[a2_0x238710(0x1b7)](()=>{const _0x49b82c=a2_0x238710;profileCmd[_0x49b82c(0x262)]();});const profileListAction=async _0x1214f3=>{const _0x417f64=a2_0x238710,_0x547c6f=new ProfilesCommand(),_0x28fa16=program[_0x417f64(0x34c)](),_0x487287=await _0x547c6f[_0x417f64(0x1d5)]({'options':{..._0x28fa16,..._0x1214f3},'args':[],'tdx':null});process[_0x417f64(0x3aa)](_0x487287);};profileCmd['command'](a2_0x238710(0x3b9))[a2_0x238710(0x335)](a2_0x238710(0x349))[a2_0x238710(0x1b7)](profileListAction),profileCmd[a2_0x238710(0x1e8)](a2_0x238710(0x27b))[a2_0x238710(0x335)](a2_0x238710(0x351))[a2_0x238710(0x271)](a2_0x238710(0x197),a2_0x238710(0x3d2))[a2_0x238710(0x1b7)](async(_0xe0c715,_0x172ad3)=>{const _0x4e2f73=a2_0x238710,_0x2df99f=new ProfileCreateCommand(),_0x515023=program['opts'](),_0x4e1af5=await _0x2df99f[_0x4e2f73(0x1d5)]({'options':{..._0x515023,..._0x172ad3},'args':_0xe0c715?[_0xe0c715]:[],'tdx':null});process['exit'](_0x4e1af5);}),profileCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2d7))[a2_0x238710(0x335)](a2_0x238710(0x3a1))['addHelpText']('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x238710(0x1b7)](async(_0x20dfbb,_0x54da9d)=>{const _0x19b251=a2_0x238710,_0x1435d5=new ProfileRemoveCommand(),_0xa109b2=program[_0x19b251(0x34c)](),_0x847959=await _0x1435d5['run']({'options':{..._0xa109b2,..._0x54da9d},'args':[_0x20dfbb],'tdx':null});process['exit'](_0x847959);}),profileCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3c1))['description'](a2_0x238710(0x375))[a2_0x238710(0x271)]('after',a2_0x238710(0x33b))[a2_0x238710(0x1b7)](async(_0x2af770,_0xd0f93b)=>{const _0x10ff2a=a2_0x238710,_0xac0d87=new ProfileSetCommand(),_0x3737ff=program['opts'](),_0x420390=await _0xac0d87[_0x10ff2a(0x1d5)]({'options':{..._0x3737ff,..._0xd0f93b},'args':[_0x2af770],'tdx':null});process[_0x10ff2a(0x3aa)](_0x420390);}),profileCmd[a2_0x238710(0x1e8)]('use\x20<name>')[a2_0x238710(0x335)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x238710(0x16b)](a2_0x238710(0x218),a2_0x238710(0x3a6))[a2_0x238710(0x271)](a2_0x238710(0x197),a2_0x238710(0x382))[a2_0x238710(0x1b7)](async(_0x497f27,_0x138d52)=>{const _0x2d8788=a2_0x238710,_0xc68add=new ProfileUseCommand(),_0x305e65=program[_0x2d8788(0x34c)](),_0x521bf5=await _0xc68add[_0x2d8788(0x1d5)]({'options':{..._0x305e65,..._0x138d52},'args':[_0x497f27],'tdx':null});process[_0x2d8788(0x3aa)](_0x521bf5);});const engageCmd=program['command'](a2_0x238710(0x229))[a2_0x238710(0x335)](a2_0x238710(0x283)),createEngageAction=_0x21ce9c=>{return async(_0x584291,_0x25076a)=>{const _0x18336f=a2_0x38cb,_0x423993=new _0x21ce9c(),_0x4ea2fd=program[_0x18336f(0x34c)](),_0x3da999=await createTDXInstance(_0x4ea2fd),_0x1d4f9f=await _0x423993[_0x18336f(0x1d5)]({'options':{..._0x4ea2fd,..._0x25076a},'args':[_0x584291],'tdx':_0x3da999});process['exit'](_0x1d4f9f);};},createEngageNoArgAction=_0x2ed583=>{return async _0x249bab=>{const _0xd043d1=a2_0x38cb,_0x4fd462=new _0x2ed583(),_0x13f7d4=program['opts'](),_0xdbca09=await createTDXInstance(_0x13f7d4),_0x51aa59=await _0x4fd462[_0xd043d1(0x1d5)]({'options':{..._0x13f7d4,..._0x249bab},'args':[],'tdx':_0xdbca09});process['exit'](_0x51aa59);};},campaignCmd=engageCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2f6))['description'](a2_0x238710(0x317)),campaignListAction=async(_0x5c4d0c,_0x347f7e)=>{const _0x198837=a2_0x238710,_0x213f86=new EngageCampaignsCommand(),_0x2a3ed2=program[_0x198837(0x34c)](),_0x40f8ff=await createTDXInstance(_0x2a3ed2),_0x42605f=await _0x213f86[_0x198837(0x1d5)]({'options':{..._0x2a3ed2,..._0x347f7e},'args':_0x5c4d0c?[_0x5c4d0c]:[],'tdx':_0x40f8ff});process['exit'](_0x42605f);};campaignCmd['command']('list\x20[pattern]')[a2_0x238710(0x335)](a2_0x238710(0x374))[a2_0x238710(0x16b)](a2_0x238710(0x251),a2_0x238710(0x263))[a2_0x238710(0x16b)](a2_0x238710(0x1e6),a2_0x238710(0x340))[a2_0x238710(0x16b)]('--workspace\x20<name>',a2_0x238710(0x1a4))[a2_0x238710(0x1b7)](campaignListAction),engageCmd[a2_0x238710(0x1e8)]('campaigns\x20[pattern]')[a2_0x238710(0x335)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x238710(0x16b)]('--type\x20<type>',a2_0x238710(0x263))['option'](a2_0x238710(0x1e6),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))['action'](campaignListAction),campaignCmd['command'](a2_0x238710(0x206))[a2_0x238710(0x335)]('Show\x20campaign\x20details')[a2_0x238710(0x16b)]('--workspace\x20<name>',a2_0x238710(0x1a4))[a2_0x238710(0x16b)](a2_0x238710(0x23f),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x238710(0x1e8)](a2_0x238710(0x226))[a2_0x238710(0x335)](a2_0x238710(0x256))[a2_0x238710(0x2ba)]('--name\x20<name>',a2_0x238710(0x39f))['requiredOption']('--type\x20<type>',a2_0x238710(0x2e5))[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x306))[a2_0x238710(0x16b)]('--description\x20<desc>',a2_0x238710(0x1f4))['option'](a2_0x238710(0x29f),a2_0x238710(0x175))[a2_0x238710(0x16b)](a2_0x238710(0x3b7),a2_0x238710(0x25b))[a2_0x238710(0x16b)](a2_0x238710(0x18a),a2_0x238710(0x21e))['option'](a2_0x238710(0x1d7),a2_0x238710(0x3ac))['option'](a2_0x238710(0x17e),a2_0x238710(0x3b3))[a2_0x238710(0x1b7)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x238710(0x238))[a2_0x238710(0x335)](a2_0x238710(0x311))['option'](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x16b)](a2_0x238710(0x245),a2_0x238710(0x1fb))['option']('--description\x20<desc>',a2_0x238710(0x1f4))[a2_0x238710(0x16b)](a2_0x238710(0x29f),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x238710(0x3b7),'Email\x20sender\x20ID\x20for\x20delivery')['option'](a2_0x238710(0x18a),a2_0x238710(0x21e))[a2_0x238710(0x16b)]('--start-at\x20<datetime>',a2_0x238710(0x3ac))[a2_0x238710(0x16b)]('--timezone\x20<tz>',a2_0x238710(0x3b3))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26c))[a2_0x238710(0x335)](a2_0x238710(0x2fd))['option'](a2_0x238710(0x2a7),a2_0x238710(0x1a4))['option'](a2_0x238710(0x324),a2_0x238710(0x29c))[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x238710(0x1e8)](a2_0x238710(0x176))[a2_0x238710(0x335)](a2_0x238710(0x22a))['option'](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x238710(0x1e8)](a2_0x238710(0x243))[a2_0x238710(0x335)](a2_0x238710(0x232))[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command'](a2_0x238710(0x1f5))[a2_0x238710(0x335)]('Resume\x20a\x20paused\x20campaign')[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x238710(0x1e8)](a2_0x238710(0x355))[a2_0x238710(0x335)]('Duplicate\x20a\x20campaign')[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x1b7)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x238710(0x1e8)]('template')[a2_0x238710(0x335)](a2_0x238710(0x23e)),templateListAction=async(_0x590ac7,_0xe2b6d1)=>{const _0x5497d9=a2_0x238710,_0x5aea09=new EngageTemplatesCommand(),_0x9ac29a=program[_0x5497d9(0x34c)](),_0x2bf425=await createTDXInstance(_0x9ac29a),_0x42bff2=await _0x5aea09['run']({'options':{..._0x9ac29a,..._0xe2b6d1},'args':_0x590ac7?[_0x590ac7]:[],'tdx':_0x2bf425});process['exit'](_0x42bff2);};templateCmd[a2_0x238710(0x1e8)]('list\x20[pattern]')[a2_0x238710(0x335)](a2_0x238710(0x178))[a2_0x238710(0x16b)](a2_0x238710(0x2a7),'Workspace\x20name')[a2_0x238710(0x1b7)](templateListAction),engageCmd[a2_0x238710(0x1e8)]('templates\x20[pattern]')[a2_0x238710(0x335)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')['option'](a2_0x238710(0x2a7),'Workspace\x20name')['action'](templateListAction),templateCmd[a2_0x238710(0x1e8)](a2_0x238710(0x206))[a2_0x238710(0x335)](a2_0x238710(0x354))[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))['option'](a2_0x238710(0x23f),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x238710(0x1e8)](a2_0x238710(0x226))[a2_0x238710(0x335)]('Create\x20an\x20email\x20template')[a2_0x238710(0x2ba)](a2_0x238710(0x245),'Template\x20name')['requiredOption'](a2_0x238710(0x189),a2_0x238710(0x2ab))[a2_0x238710(0x2ba)](a2_0x238710(0x26a),a2_0x238710(0x284))['option'](a2_0x238710(0x2a7),'Workspace\x20name\x20(required)')[a2_0x238710(0x16b)](a2_0x238710(0x313),a2_0x238710(0x32b))[a2_0x238710(0x16b)](a2_0x238710(0x3c7),'Editor\x20type')[a2_0x238710(0x1b7)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x238710(0x1e8)](a2_0x238710(0x238))[a2_0x238710(0x335)](a2_0x238710(0x352))[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x16b)]('--name\x20<name>',a2_0x238710(0x28e))['option'](a2_0x238710(0x189),a2_0x238710(0x2ab))[a2_0x238710(0x16b)](a2_0x238710(0x26a),a2_0x238710(0x284))[a2_0x238710(0x16b)](a2_0x238710(0x313),a2_0x238710(0x32b))[a2_0x238710(0x1b7)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26c))['description']('Delete\x20an\x20email\x20template')[a2_0x238710(0x16b)](a2_0x238710(0x2a7),a2_0x238710(0x1a4))[a2_0x238710(0x16b)]('--yes',a2_0x238710(0x29c))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x238710(0x1e8)]('workspace')[a2_0x238710(0x335)](a2_0x238710(0x289)),workspaceListAction=async(_0x143188,_0x52a14e)=>{const _0x2222f9=a2_0x238710,_0x3f1e08=new EngageWorkspacesCommand(),_0x2a941b=program[_0x2222f9(0x34c)](),_0x31be6b=await createTDXInstance(_0x2a941b),_0x2e4633=await _0x3f1e08[_0x2222f9(0x1d5)]({'options':{..._0x2a941b,..._0x52a14e},'args':_0x143188?[_0x143188]:[],'tdx':_0x31be6b});process[_0x2222f9(0x3aa)](_0x2e4633);};workspaceCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))['description'](a2_0x238710(0x3c8))[a2_0x238710(0x1b7)](workspaceListAction),engageCmd[a2_0x238710(0x1e8)](a2_0x238710(0x38a))['description'](a2_0x238710(0x377))[a2_0x238710(0x1b7)](workspaceListAction),workspaceCmd[a2_0x238710(0x1e8)](a2_0x238710(0x206))['description'](a2_0x238710(0x25a))[a2_0x238710(0x16b)](a2_0x238710(0x23f),a2_0x238710(0x2c4))[a2_0x238710(0x1b7)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x238710(0x226))[a2_0x238710(0x335)](a2_0x238710(0x1c3))[a2_0x238710(0x2ba)](a2_0x238710(0x245),a2_0x238710(0x1a4))[a2_0x238710(0x16b)]('--description\x20<desc>','Workspace\x20description')[a2_0x238710(0x1b7)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x238710(0x238))[a2_0x238710(0x335)](a2_0x238710(0x2d5))['option']('--name\x20<name>',a2_0x238710(0x315))[a2_0x238710(0x16b)](a2_0x238710(0x2a1),a2_0x238710(0x296))[a2_0x238710(0x1b7)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26c))[a2_0x238710(0x335)](a2_0x238710(0x16e))[a2_0x238710(0x16b)](a2_0x238710(0x324),a2_0x238710(0x29c))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x238710(0x1e8)](a2_0x238710(0x381))[a2_0x238710(0x335)](a2_0x238710(0x248))[a2_0x238710(0x1b7)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x1e1))[a2_0x238710(0x335)](a2_0x238710(0x3ad)),connectionListAction=async _0xc7f6c9=>{const _0x336850=a2_0x238710,_0x2811e5=new ConnectionListCommand(),_0x21cfdf=program[_0x336850(0x34c)](),_0x13b370=await createTDXInstance(_0x21cfdf),_0xe2dee4=await _0x2811e5[_0x336850(0x1d5)]({'options':{..._0x21cfdf,..._0xc7f6c9},'args':[],'tdx':_0x13b370});process['exit'](_0xe2dee4);};connectionCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3b9))['description']('List\x20all\x20data\x20connections')[a2_0x238710(0x1b7)](connectionListAction),program[a2_0x238710(0x1e8)]('connections',{'hidden':!![]})['description'](a2_0x238710(0x1c8))[a2_0x238710(0x1b7)](connectionListAction),connectionCmd[a2_0x238710(0x1e8)](a2_0x238710(0x367))[a2_0x238710(0x335)](a2_0x238710(0x1ee))[a2_0x238710(0x1b7)](async(_0x594549,_0x1cdc0a)=>{const _0x1c5654=a2_0x238710,_0x4a239f=new ConnectionShowCommand(),_0x4e4d3b=program[_0x1c5654(0x34c)](),_0xa0b391=await createTDXInstance(_0x4e4d3b),_0x539584=await _0x4a239f[_0x1c5654(0x1d5)]({'options':{..._0x4e4d3b,..._0x1cdc0a},'args':[_0x594549],'tdx':_0xa0b391});process['exit'](_0x539584);}),connectionCmd[a2_0x238710(0x1e8)](a2_0x238710(0x27f))[a2_0x238710(0x335)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x238710(0x1b7)](async(_0x3d5700,_0x388791)=>{const _0x5b342e=a2_0x238710,_0x3708d4=new ConnectionSchemaCommand(),_0x3f5bdc=program['opts'](),_0x1483d2=await createTDXInstance(_0x3f5bdc),_0x5d87a=await _0x3708d4[_0x5b342e(0x1d5)]({'options':{..._0x3f5bdc,..._0x388791},'args':[_0x3d5700],'tdx':_0x1483d2});process[_0x5b342e(0x3aa)](_0x5d87a);}),connectionCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1e5))['description'](a2_0x238710(0x1c2))[a2_0x238710(0x1b7)](async _0x16f838=>{const _0x184069=a2_0x238710,_0x56d57e=new ConnectionTypesCommand(),_0xbb594=program['opts'](),_0x1889d9=await createTDXInstance(_0xbb594),_0x224164=await _0x56d57e['run']({'options':{..._0xbb594,..._0x16f838},'args':[],'tdx':_0x1889d9});process[_0x184069(0x3aa)](_0x224164);}),connectionCmd['command'](a2_0x238710(0x182))[a2_0x238710(0x335)](a2_0x238710(0x29d))['action'](async(_0x21d891,_0x4f9d59)=>{const _0x4ce7ab=a2_0x238710,_0x3bf58c=new ConnectionSettingsCommand(),_0x114f77=program[_0x4ce7ab(0x34c)](),_0x5d0632=await createTDXInstance(_0x114f77),_0x24240d=await _0x3bf58c[_0x4ce7ab(0x1d5)]({'options':{..._0x114f77,..._0x4f9d59},'args':[_0x21d891],'tdx':_0x5d0632});process['exit'](_0x24240d);});const journeyCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x34f))[a2_0x238710(0x335)](a2_0x238710(0x30e)),journeyListAction=async(_0x2376ff,_0x26c769)=>{const _0x3ea2a3=a2_0x238710,_0x44c345=new JourneyListCommand(),_0x17863b=program[_0x3ea2a3(0x34c)](),_0x454b34=await createTDXInstance(_0x17863b),_0x5cd200=await _0x44c345[_0x3ea2a3(0x1d5)]({'options':{..._0x17863b,..._0x26c769},'args':_0x2376ff?[_0x2376ff]:[],'tdx':_0x454b34});process[_0x3ea2a3(0x3aa)](_0x5cd200);};journeyCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))[a2_0x238710(0x335)]('List\x20journeys\x20in\x20current\x20context')['action'](journeyListAction),journeyCmd[a2_0x238710(0x1e8)](a2_0x238710(0x277))['description']('Show\x20journey\x20details')['option'](a2_0x238710(0x1d8),'Open\x20journey\x20in\x20web\x20browser')[a2_0x238710(0x16b)](a2_0x238710(0x2d0),a2_0x238710(0x36a))['action'](async(_0x1d6664,_0x362958)=>{const _0xafba73=new JourneyViewCommand(),_0x197c6e=program['opts'](),_0x5c8c4b=await createTDXInstance(_0x197c6e),_0x3c3909=await _0xafba73['run']({'options':{..._0x197c6e,..._0x362958},'args':[_0x1d6664],'tdx':_0x5c8c4b});process['exit'](_0x3c3909);}),journeyCmd[a2_0x238710(0x1e8)]('stats\x20<name-or-path>')[a2_0x238710(0x335)](a2_0x238710(0x2bf))[a2_0x238710(0x16b)](a2_0x238710(0x225),a2_0x238710(0x2b1))[a2_0x238710(0x1b7)](async(_0x4b22ed,_0x365fec)=>{const _0x488193=a2_0x238710,_0x49d5bf=new JourneyStatsCommand(),_0x20268f=program[_0x488193(0x34c)](),_0x2d2bc6=await createTDXInstance(_0x20268f),_0xa0010c=await _0x49d5bf[_0x488193(0x1d5)]({'options':{..._0x20268f,..._0x365fec},'args':[_0x4b22ed],'tdx':_0x2d2bc6});process['exit'](_0xa0010c);}),journeyCmd[a2_0x238710(0x1e8)]('pause\x20<name-or-path>')[a2_0x238710(0x335)](a2_0x238710(0x1ac))['action'](async(_0x8ed8aa,_0x1a9def)=>{const _0xc9abf1=a2_0x238710,_0xe365ee=new JourneyPauseCommand(),_0x2706a8=program[_0xc9abf1(0x34c)](),_0x3a445c=await createTDXInstance(_0x2706a8),_0x12db92=await _0xe365ee[_0xc9abf1(0x1d5)]({'options':{..._0x2706a8,..._0x1a9def},'args':[_0x8ed8aa],'tdx':_0x3a445c});process['exit'](_0x12db92);}),journeyCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1f3))['description'](a2_0x238710(0x2cb))[a2_0x238710(0x1b7)](async(_0x2e7dbd,_0x317e57)=>{const _0x1481e8=a2_0x238710,_0x52b3e8=new JourneyResumeCommand(),_0x1a6403=program[_0x1481e8(0x34c)](),_0x3854e5=await createTDXInstance(_0x1a6403),_0x520bb3=await _0x52b3e8[_0x1481e8(0x1d5)]({'options':{..._0x1a6403,..._0x317e57},'args':[_0x2e7dbd],'tdx':_0x3854e5});process['exit'](_0x520bb3);}),journeyCmd['command'](a2_0x238710(0x2b2))['description'](a2_0x238710(0x292))[a2_0x238710(0x16b)]('-y,\x20--yes',a2_0x238710(0x29c))[a2_0x238710(0x16b)]('--dry-run',a2_0x238710(0x19a))[a2_0x238710(0x1b7)](async(_0x5e71ef,_0x445637)=>{const _0xe70664=a2_0x238710,_0x28d239=new JourneyPullCommand(),_0x4b7730=program[_0xe70664(0x34c)](),_0x57c828=await createTDXInstance(_0x4b7730),_0xb1bcac=await _0x28d239['run']({'options':{..._0x4b7730,..._0x445637},'args':_0x5e71ef?[_0x5e71ef]:[],'tdx':_0x57c828});process['exit'](_0xb1bcac);}),journeyCmd[a2_0x238710(0x1e8)](a2_0x238710(0x384))['description'](a2_0x238710(0x204))[a2_0x238710(0x1b7)](async(_0x2e6da0,_0x227e24)=>{const _0x598bd2=a2_0x238710,_0x5f2a63=new JourneyPushCommand(),_0x2aa223=program['opts'](),_0x4b6222=await createTDXInstance(_0x2aa223),_0x34afff=await _0x5f2a63[_0x598bd2(0x1d5)]({'options':{..._0x2aa223,..._0x227e24},'args':_0x2e6da0?[_0x2e6da0]:[],'tdx':_0x4b6222});process[_0x598bd2(0x3aa)](_0x34afff);}),journeyCmd['command'](a2_0x238710(0x2da))[a2_0x238710(0x335)](a2_0x238710(0x198))[a2_0x238710(0x1b7)](async(_0x52db52,_0x2df3fa)=>{const _0x3bc18a=a2_0x238710,_0x3a3758=new JourneyValidateCommand(),_0x5f05f2=program[_0x3bc18a(0x34c)](),_0x45544a=await createTDXInstance(_0x5f05f2),_0x6ee1f1=await _0x3a3758[_0x3bc18a(0x1d5)]({'options':{..._0x5f05f2,..._0x2df3fa},'args':_0x52db52?[_0x52db52]:[],'tdx':_0x45544a});process[_0x3bc18a(0x3aa)](_0x6ee1f1);}),program['command']('journeys\x20[pattern]')['description'](a2_0x238710(0x2a5))[a2_0x238710(0x1b7)](journeyListAction);const agentSyncCmd=program[a2_0x238710(0x1e8)](a2_0x238710(0x180))[a2_0x238710(0x335)](a2_0x238710(0x2ca));agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x3bf))[a2_0x238710(0x335)](a2_0x238710(0x3b1))[a2_0x238710(0x16b)](a2_0x238710(0x303),a2_0x238710(0x24b))[a2_0x238710(0x16b)](a2_0x238710(0x2e1),a2_0x238710(0x38e))[a2_0x238710(0x1b7)](async(_0xfb5397,_0x5500f2,_0x3a885a)=>{const _0x1e3843=a2_0x238710,_0x1f66f0=new AgentPullCommand(),_0x5adce4=program[_0x1e3843(0x34c)](),_0x14ba9f=await createTDXInstance(_0x5adce4),_0x11c1ab=[];if(_0xfb5397)_0x11c1ab[_0x1e3843(0x2fa)](_0xfb5397);if(_0x5500f2)_0x11c1ab[_0x1e3843(0x2fa)](_0x5500f2);const _0x4f9ef3=await _0x1f66f0[_0x1e3843(0x1d5)]({'options':{..._0x5adce4,..._0x3a885a},'args':_0x11c1ab,'tdx':_0x14ba9f});process[_0x1e3843(0x3aa)](_0x4f9ef3);}),agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x39b))[a2_0x238710(0x335)](a2_0x238710(0x25e))[a2_0x238710(0x16b)](a2_0x238710(0x2e1),a2_0x238710(0x192))[a2_0x238710(0x1b7)](async(_0x3ac86a,_0x4c8ed5)=>{const _0x85e859=a2_0x238710,_0x37b464=new AgentPushCommand(),_0x3babb0=program[_0x85e859(0x34c)](),_0x1af71e=await createTDXInstance(_0x3babb0),_0x307d4f=await _0x37b464[_0x85e859(0x1d5)]({'options':{..._0x3babb0,..._0x4c8ed5},'args':_0x3ac86a?[_0x3ac86a]:[],'tdx':_0x1af71e});process[_0x85e859(0x3aa)](_0x307d4f);}),agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x2f5))['description']('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')[a2_0x238710(0x16b)](a2_0x238710(0x309),a2_0x238710(0x39d))[a2_0x238710(0x1b7)](async(_0x21fdee,_0x41791d)=>{const _0x459b01=a2_0x238710,_0x3118de=new AgentCloneCommand(),_0x2b113e=program[_0x459b01(0x34c)](),_0x1e4051=await createTDXInstance(_0x2b113e),_0x45d08a=await _0x3118de[_0x459b01(0x1d5)]({'options':{..._0x2b113e,..._0x41791d},'args':_0x21fdee?[_0x21fdee]:[],'tdx':_0x1e4051});process['exit'](_0x45d08a);}),agentSyncCmd[a2_0x238710(0x1e8)]('test\x20[path]')[a2_0x238710(0x335)](a2_0x238710(0x37f))['option'](a2_0x238710(0x3b4),a2_0x238710(0x32c))['option'](a2_0x238710(0x1ef),a2_0x238710(0x1a7))[a2_0x238710(0x16b)](a2_0x238710(0x39a),a2_0x238710(0x268))[a2_0x238710(0x1b7)](async(_0x1b0b73,_0x2172b4)=>{const _0x1a36af=a2_0x238710,_0x246401=new AgentTestCommand(),_0x4f97e0=program[_0x1a36af(0x34c)](),_0x46e237=await createTDXInstance(_0x4f97e0),_0x2ddb45=await _0x246401[_0x1a36af(0x1d5)]({'options':{..._0x4f97e0,..._0x2172b4},'args':_0x1b0b73?[_0x1b0b73]:[],'tdx':_0x46e237});process[_0x1a36af(0x3aa)](_0x2ddb45);}),agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x26f))[a2_0x238710(0x335)]('List\x20agents\x20in\x20current\x20project')['action'](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x238710(0x335)](a2_0x238710(0x2f2))[a2_0x238710(0x1b7)](async(_0x163859,_0x574f51)=>{const _0x1a89f0=a2_0x238710,_0xb9d86b=new LLMAgentShowCommand(),_0x583b20=program[_0x1a89f0(0x34c)](),_0xdd96bf=await createTDXInstance(_0x583b20),_0xca0fe6=await _0xb9d86b['run']({'options':{..._0x583b20,..._0x574f51},'args':[_0x163859],'tdx':_0xdd96bf});process[_0x1a89f0(0x3aa)](_0xca0fe6);}),agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x1a1))['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x238710(0x35a),a2_0x238710(0x379))[a2_0x238710(0x16b)]('--model\x20<name>','Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x238710(0x2e8))[a2_0x238710(0x16b)](a2_0x238710(0x2a6),a2_0x238710(0x253))[a2_0x238710(0x16b)](a2_0x238710(0x2b7),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x238710(0x16b)](a2_0x238710(0x19c),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x238710(0x25d))['action'](async(_0x2bbdaa,_0x189f0d)=>{const _0x17d1e3=a2_0x238710,_0x4f99db=new LLMAgentCreateCommand(),_0x2244c0=program[_0x17d1e3(0x34c)](),_0x4f0f83=await createTDXInstance(_0x2244c0),_0x56071d=await _0x4f99db[_0x17d1e3(0x1d5)]({'options':{..._0x2244c0,..._0x189f0d},'args':[_0x2bbdaa],'tdx':_0x4f0f83});process[_0x17d1e3(0x3aa)](_0x56071d);}),agentSyncCmd[a2_0x238710(0x1e8)](a2_0x238710(0x183))[a2_0x238710(0x335)](a2_0x238710(0x380))[a2_0x238710(0x16b)](a2_0x238710(0x16d),a2_0x238710(0x35d))['option'](a2_0x238710(0x39c),a2_0x238710(0x3c5))[a2_0x238710(0x16b)](a2_0x238710(0x3c6),'Agent\x20description')[a2_0x238710(0x16b)](a2_0x238710(0x2a6),a2_0x238710(0x253))['action'](async(_0x5ee66f,_0x12eeda)=>{const _0x20ad59=a2_0x238710,_0x2106bb=new LLMAgentUpdateCommand(),_0x4c22ee=program[_0x20ad59(0x34c)](),_0x2e6c3f=await createTDXInstance(_0x4c22ee),_0x39b640=await _0x2106bb['run']({'options':{..._0x4c22ee,..._0x12eeda},'args':[_0x5ee66f],'tdx':_0x2e6c3f});process[_0x20ad59(0x3aa)](_0x39b640);}),agentSyncCmd[a2_0x238710(0x1e8)]('delete\x20<agent-name>')[a2_0x238710(0x335)](a2_0x238710(0x202))['action'](async(_0x22f04c,_0x4788bb)=>{const _0x5b665b=a2_0x238710,_0x35283d=new LLMAgentDeleteCommand(),_0x569db2=program['opts'](),_0x31ba8d=await createTDXInstance(_0x569db2),_0x583861=await _0x35283d[_0x5b665b(0x1d5)]({'options':{..._0x569db2,..._0x4788bb},'args':[_0x22f04c],'tdx':_0x31ba8d});process['exit'](_0x583861);});export{program};export function runCLI(){const _0x4acf5b=a2_0x238710,_0x1ba5b6=!process['argv']['slice'](0x2)[_0x4acf5b(0x389)];showBriefHelp=_0x1ba5b6,program[_0x4acf5b(0x290)](process['argv']),_0x1ba5b6&&program[_0x4acf5b(0x262)](),process[_0x4acf5b(0x28f)]['isTTY']&&process[_0x4acf5b(0x190)]['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x4acf5b(0x2d1)](_0x7119e4=>{_0x7119e4&&displayUpdateNotification(_0x7119e4);})[_0x4acf5b(0x1b1)](()=>{});}