@treasuredata/tdx 0.29.3 → 0.29.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts +1 -0
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +1 -1
  7. package/dist/cli.js.map +1 -1
  8. package/dist/commands/activations.js +1 -1
  9. package/dist/commands/agent-command.js +1 -1
  10. package/dist/commands/agent-test-command.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/auth-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-command.js.map +1 -1
  29. package/dist/commands/engage-template-pull-command.d.ts +15 -0
  30. package/dist/commands/engage-template-pull-command.d.ts.map +1 -0
  31. package/dist/commands/engage-template-pull-command.js +1 -0
  32. package/dist/commands/engage-template-pull-command.js.map +1 -0
  33. package/dist/commands/engage-template-push-command.d.ts +16 -0
  34. package/dist/commands/engage-template-push-command.d.ts.map +1 -0
  35. package/dist/commands/engage-template-push-command.js +1 -0
  36. package/dist/commands/engage-template-push-command.js.map +1 -0
  37. package/dist/commands/engage-template-validate-command.d.ts +19 -0
  38. package/dist/commands/engage-template-validate-command.d.ts.map +1 -0
  39. package/dist/commands/engage-template-validate-command.js +1 -0
  40. package/dist/commands/engage-template-validate-command.js.map +1 -0
  41. package/dist/commands/job-command.js +1 -1
  42. package/dist/commands/journey-command.js +1 -1
  43. package/dist/commands/journey-validate-command.js +1 -1
  44. package/dist/commands/llm-command.js +1 -1
  45. package/dist/commands/mcp-command.js +1 -1
  46. package/dist/commands/parent-segment-command.js +1 -1
  47. package/dist/commands/profile-command.js +1 -1
  48. package/dist/commands/profiles-command.js +1 -1
  49. package/dist/commands/query-command.d.ts.map +1 -1
  50. package/dist/commands/query-command.js +1 -1
  51. package/dist/commands/query-command.js.map +1 -1
  52. package/dist/commands/schedule-command.js +1 -1
  53. package/dist/commands/segment-command.js +1 -1
  54. package/dist/commands/segment-create-command.js +1 -1
  55. package/dist/commands/segment-fields-command.js +1 -1
  56. package/dist/commands/segment-pull-command.js +1 -1
  57. package/dist/commands/segment-push-command.js +1 -1
  58. package/dist/commands/segment-update-command.js +1 -1
  59. package/dist/commands/segment-use-command.js +1 -1
  60. package/dist/commands/segment-validate-command.js +1 -1
  61. package/dist/commands/segments.js +1 -1
  62. package/dist/commands/show.js +1 -1
  63. package/dist/commands/status-command.js +1 -1
  64. package/dist/commands/tables.js +1 -1
  65. package/dist/commands/unset-command.js +1 -1
  66. package/dist/commands/upgrade-command.js +1 -1
  67. package/dist/commands/use-command.js +1 -1
  68. package/dist/commands/user-command.js +1 -1
  69. package/dist/commands/workflow-command.js +1 -1
  70. package/dist/core/auth.js +1 -1
  71. package/dist/core/command-output.d.ts +6 -0
  72. package/dist/core/command-output.d.ts.map +1 -1
  73. package/dist/core/command-output.js +1 -1
  74. package/dist/core/command-output.js.map +1 -1
  75. package/dist/core/config.js +1 -1
  76. package/dist/core/connection-cache.js +1 -1
  77. package/dist/core/constants.js +1 -1
  78. package/dist/core/credential-cache.js +1 -1
  79. package/dist/core/global-context.js +1 -1
  80. package/dist/core/keychain.js +1 -1
  81. package/dist/core/profile.js +1 -1
  82. package/dist/core/project-config.js +1 -1
  83. package/dist/core/session.js +1 -1
  84. package/dist/core/user-cache.js +1 -1
  85. package/dist/core/version.js +1 -1
  86. package/dist/index.js +1 -1
  87. package/dist/mcp/server.js +1 -1
  88. package/dist/mcp/tools/index.js +1 -1
  89. package/dist/mcp/tools/tdx-run.js +1 -1
  90. package/dist/mcp/tools/tdx-search.js +1 -1
  91. package/dist/mcp/utils.js +1 -1
  92. package/dist/proxy/claude-usage-tracker.js +1 -1
  93. package/dist/proxy/passthrough-server.js +1 -1
  94. package/dist/proxy/sse-usage-parser.js +1 -1
  95. package/dist/sdk/agent/agent-config.js +1 -1
  96. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  97. package/dist/sdk/agent/agent-yaml.js +1 -1
  98. package/dist/sdk/agent/test/evaluator.js +1 -1
  99. package/dist/sdk/agent/test/executor.js +1 -1
  100. package/dist/sdk/agent/test/index.js +1 -1
  101. package/dist/sdk/agent/test/output.js +1 -1
  102. package/dist/sdk/agent/test/parser.js +1 -1
  103. package/dist/sdk/agent/tool-target-registry.js +1 -1
  104. package/dist/sdk/api.js +1 -1
  105. package/dist/sdk/client/cdp-api-client.js +1 -1
  106. package/dist/sdk/client/delivery-api-client.js +1 -1
  107. package/dist/sdk/client/endpoints.d.ts +9 -0
  108. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  109. package/dist/sdk/client/endpoints.js +1 -1
  110. package/dist/sdk/client/endpoints.js.map +1 -1
  111. package/dist/sdk/client/engage-api-client.js +1 -1
  112. package/dist/sdk/client/http-client.js +1 -1
  113. package/dist/sdk/client/llm-api-client.js +1 -1
  114. package/dist/sdk/client/rate-limiter.js +1 -1
  115. package/dist/sdk/client/td-api-client.js +1 -1
  116. package/dist/sdk/client/trino-api-client.js +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/connection-validator.js +1 -1
  119. package/dist/sdk/connection.js +1 -1
  120. package/dist/sdk/delivery.js +1 -1
  121. package/dist/sdk/engage/campaign-pull.js +1 -1
  122. package/dist/sdk/engage/campaign-push.js +1 -1
  123. package/dist/sdk/engage/campaign-validator.js +1 -1
  124. package/dist/sdk/engage/campaign-yaml.js +1 -1
  125. package/dist/sdk/engage/template-pull.d.ts +73 -0
  126. package/dist/sdk/engage/template-pull.d.ts.map +1 -0
  127. package/dist/sdk/engage/template-pull.js +1 -0
  128. package/dist/sdk/engage/template-pull.js.map +1 -0
  129. package/dist/sdk/engage/template-push.d.ts +99 -0
  130. package/dist/sdk/engage/template-push.d.ts.map +1 -0
  131. package/dist/sdk/engage/template-push.js +1 -0
  132. package/dist/sdk/engage/template-push.js.map +1 -0
  133. package/dist/sdk/engage/template-validator.d.ts +18 -0
  134. package/dist/sdk/engage/template-validator.d.ts.map +1 -0
  135. package/dist/sdk/engage/template-validator.js +1 -0
  136. package/dist/sdk/engage/template-validator.js.map +1 -0
  137. package/dist/sdk/engage/template-yaml.d.ts +69 -0
  138. package/dist/sdk/engage/template-yaml.d.ts.map +1 -0
  139. package/dist/sdk/engage/template-yaml.js +1 -0
  140. package/dist/sdk/engage/template-yaml.js.map +1 -0
  141. package/dist/sdk/engage/types/campaign-def.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  143. package/dist/sdk/engage/types/template-schema.d.ts +33 -0
  144. package/dist/sdk/engage/types/template-schema.d.ts.map +1 -0
  145. package/dist/sdk/engage/types/template-schema.js +1 -0
  146. package/dist/sdk/engage/types/template-schema.js.map +1 -0
  147. package/dist/sdk/engage.d.ts +1 -0
  148. package/dist/sdk/engage.d.ts.map +1 -1
  149. package/dist/sdk/engage.js +1 -1
  150. package/dist/sdk/engage.js.map +1 -1
  151. package/dist/sdk/errors.js +1 -1
  152. package/dist/sdk/index.js +1 -1
  153. package/dist/sdk/io/index.js +1 -1
  154. package/dist/sdk/io/node-filesystem.js +1 -1
  155. package/dist/sdk/job.js +1 -1
  156. package/dist/sdk/journey.js +1 -1
  157. package/dist/sdk/llm/chat-cache.js +1 -1
  158. package/dist/sdk/llm/index.js +1 -1
  159. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  160. package/dist/sdk/llm/model-factors.js +1 -1
  161. package/dist/sdk/personalization.js +1 -1
  162. package/dist/sdk/query/index.js +1 -1
  163. package/dist/sdk/query/sql-parser.js +1 -1
  164. package/dist/sdk/realtime.js +1 -1
  165. package/dist/sdk/schedule.js +1 -1
  166. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  167. package/dist/sdk/segment/fields-display.js +1 -1
  168. package/dist/sdk/segment/file-discovery.js +1 -1
  169. package/dist/sdk/segment/journey-utils.js +1 -1
  170. package/dist/sdk/segment/journey-validator.js +1 -1
  171. package/dist/sdk/segment/journey-yaml.js +1 -1
  172. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  173. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  174. package/dist/sdk/segment/pull-workflow.js +1 -1
  175. package/dist/sdk/segment/push-recovery.js +1 -1
  176. package/dist/sdk/segment/push-workflow.js +1 -1
  177. package/dist/sdk/segment/resolution-context.js +1 -1
  178. package/dist/sdk/segment/segment-path-parser.js +1 -1
  179. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  180. package/dist/sdk/segment/segment-validator.js +1 -1
  181. package/dist/sdk/segment/target-resolution.js +1 -1
  182. package/dist/sdk/segment/tdx-config.js +1 -1
  183. package/dist/sdk/segment/types/activation-schema.js +1 -1
  184. package/dist/sdk/segment/types/journey-def.js +1 -1
  185. package/dist/sdk/segment/types/journey-schema.js +1 -1
  186. package/dist/sdk/segment/types/segment-def.js +1 -1
  187. package/dist/sdk/segment/types/segment-schema.js +1 -1
  188. package/dist/sdk/segment/validate-files.d.ts +6 -1
  189. package/dist/sdk/segment/validate-files.d.ts.map +1 -1
  190. package/dist/sdk/segment/validate-files.js +1 -1
  191. package/dist/sdk/segment/validate-files.js.map +1 -1
  192. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  193. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  194. package/dist/sdk/segment/yaml-validator.js +1 -1
  195. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  196. package/dist/sdk/segment.js +1 -1
  197. package/dist/sdk/types/engage.d.ts +2 -0
  198. package/dist/sdk/types/engage.d.ts.map +1 -1
  199. package/dist/sdk/types/index.js +1 -1
  200. package/dist/sdk/types/progress.js +1 -1
  201. package/dist/sdk/user.js +1 -1
  202. package/dist/sdk/util/format-detector.js +1 -1
  203. package/dist/sdk/util/formatters.js +1 -1
  204. package/dist/sdk/util/index.js +1 -1
  205. package/dist/sdk/util/tree-formatter.js +1 -1
  206. package/dist/sdk/workflow/archive-validation.js +1 -1
  207. package/dist/sdk/workflow/clone-workflow.js +1 -1
  208. package/dist/sdk/workflow/index.js +1 -1
  209. package/dist/sdk/workflow/pull-workflow.js +1 -1
  210. package/dist/sdk/workflow/push-workflow.js +1 -1
  211. package/dist/sdk/workflow/tdx-config.js +1 -1
  212. package/dist/sdk/workflow/workflow-utils.js +1 -1
  213. package/dist/test-utils/command-runner.js +1 -1
  214. package/dist/test-utils/factories.js +1 -1
  215. package/dist/test-utils/fixtures.js +1 -1
  216. package/dist/test-utils/http-mock.js +1 -1
  217. package/dist/test-utils/index.js +1 -1
  218. package/dist/utils/async.js +1 -1
  219. package/dist/utils/colors.js +1 -1
  220. package/dist/utils/diff.js +1 -1
  221. package/dist/utils/file-permissions.js +1 -1
  222. package/dist/utils/file-reader.js +1 -1
  223. package/dist/utils/github-releases.d.ts +17 -0
  224. package/dist/utils/github-releases.d.ts.map +1 -0
  225. package/dist/utils/github-releases.js +1 -0
  226. package/dist/utils/github-releases.js.map +1 -0
  227. package/dist/utils/global-cache.js +1 -1
  228. package/dist/utils/json-loader.js +1 -1
  229. package/dist/utils/local-cache.js +1 -1
  230. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  231. package/dist/utils/logger/formatters/index.js +1 -1
  232. package/dist/utils/logger/handlers/console-handler.js +1 -1
  233. package/dist/utils/logger/handlers/file-handler.js +1 -1
  234. package/dist/utils/logger/handlers/index.js +1 -1
  235. package/dist/utils/logger/handlers/null-handler.js +1 -1
  236. package/dist/utils/logger/index.js +1 -1
  237. package/dist/utils/logger/logger.js +1 -1
  238. package/dist/utils/logger/types.js +1 -1
  239. package/dist/utils/option-validation.js +1 -1
  240. package/dist/utils/process.js +1 -1
  241. package/dist/utils/prompt.js +1 -1
  242. package/dist/utils/spinner.js +1 -1
  243. package/dist/utils/sse-parser.js +1 -1
  244. package/dist/utils/string-utils.js +1 -1
  245. package/dist/utils/table-ref-parser.js +1 -1
  246. package/dist/utils/tdx-logger.js +1 -1
  247. package/dist/utils/version-check.js +1 -1
  248. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3f63cf=a2_0x3155;(function(_0x1909db,_0x44b67b){const _0x1027c8=a2_0x3155,_0x420c7e=_0x1909db();while(!![]){try{const _0xa67464=-parseInt(_0x1027c8(0x3c9))/0x1*(parseInt(_0x1027c8(0x2be))/0x2)+-parseInt(_0x1027c8(0x15f))/0x3+parseInt(_0x1027c8(0x298))/0x4+parseInt(_0x1027c8(0x347))/0x5*(parseInt(_0x1027c8(0x341))/0x6)+parseInt(_0x1027c8(0x16d))/0x7+-parseInt(_0x1027c8(0x3c3))/0x8+parseInt(_0x1027c8(0x13b))/0x9;if(_0xa67464===_0x44b67b)break;else _0x420c7e['push'](_0x420c7e['shift']());}catch(_0x196506){_0x420c7e['push'](_0x420c7e['shift']());}}}(a2_0x1b31,0x4560b));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3f63cf(0x38c)][a2_0x3f63cf(0x1ca)](a2_0x3f63cf(0x316))){let versionOutput='tdx\x20'+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x3f63cf(0x1ca)](buildInfo[a2_0x3f63cf(0x164)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x3f63cf(0x3d0)+buildInfo[a2_0x3f63cf(0x13f)]),console[a2_0x3f63cf(0x2aa)](versionOutput),process[a2_0x3f63cf(0x327)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3f63cf(0x1c6);buildInfo[a2_0x3f63cf(0x164)]&&!currentVersion[a2_0x3f63cf(0x1ca)](buildInfo[a2_0x3f63cf(0x164)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x3f63cf(0x208)+currentVersion;program[a2_0x3f63cf(0x3bf)](a2_0x3f63cf(0x2ca))[a2_0x3f63cf(0x31b)](description),program[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x285),a2_0x3f63cf(0x221))[a2_0x3f63cf(0x1d7)]('-p,\x20--profile\x20<name>',a2_0x3f63cf(0x2f8))['option'](a2_0x3f63cf(0x362),a2_0x3f63cf(0x2ac),a2_0x3f63cf(0x23a))['option']('--format\x20<format>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x277),a2_0x3f63cf(0x338))['option'](a2_0x3f63cf(0x1a1),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x228),a2_0x3f63cf(0x276))['option'](a2_0x3f63cf(0x2af),a2_0x3f63cf(0x328))['option'](a2_0x3f63cf(0x17d),'Save\x20output\x20to\x20file')['option'](a2_0x3f63cf(0x186),a2_0x3f63cf(0x37e))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x345),a2_0x3f63cf(0x2fe),![])[a2_0x3f63cf(0x1d7)]('--no-color',a2_0x3f63cf(0x1b4),![])[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1b7),'Enable\x20verbose\x20logging',![])[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x32c),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x353),a2_0x3f63cf(0x331))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1c9),a2_0x3f63cf(0x30e),'30')[a2_0x3f63cf(0x1d7)]('--dry-run',a2_0x3f63cf(0x2e2),![])[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x26c),a2_0x3f63cf(0x1df),![])[a2_0x3f63cf(0x1d7)]('--session\x20<id>',a2_0x3f63cf(0x3a7))['option'](a2_0x3f63cf(0x27e),a2_0x3f63cf(0x250))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x22f),a2_0x3f63cf(0x1d2)),program[a2_0x3f63cf(0x3aa)]({'formatHelp':(_0x5cd510,_0x28604a)=>{const _0x3f465c=a2_0x3f63cf,_0x42bf8d=_0x28604a[_0x3f465c(0x321)](_0x5cd510,_0x28604a),_0x519afe=0x2,_0x5aa779=0x2;function _0x16b990(_0x295d50){const _0x3bc62e=_0x3f465c,_0x4465a2=_0x295d50;return!!(_0x4465a2[_0x3bc62e(0x170)]||_0x4465a2[_0x3bc62e(0x168)]);}function _0x172796(_0x2e593b,_0x49d366){const _0x2938a6=_0x3f465c;if(_0x49d366){const _0x3612b3=''+_0x2e593b[_0x2938a6(0x2f0)](_0x42bf8d+_0x5aa779)+_0x49d366;return _0x3612b3;}return _0x2e593b;}function _0x2d274a(_0x7f21fb){const _0x545b45=_0x3f465c;return _0x7f21fb[_0x545b45(0x149)]('\x0a')['replace'](/^/gm,'\x20'['repeat'](_0x519afe));}const _0x405dcb=[];_0x405dcb[_0x3f465c(0x231)](_0x3f465c(0x1ed)+_0x28604a['commandUsage'](_0x5cd510));const _0x2e9fbd=_0x28604a['commandDescription'](_0x5cd510);_0x2e9fbd&&(_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb[_0x3f465c(0x231)](_0x2e9fbd));const _0x471e39=_0x5cd510[_0x3f465c(0x140)][_0x3f465c(0x34b)](_0x3204d4=>!_0x16b990(_0x3204d4));if(_0x471e39[_0x3f465c(0x296)]>0x0){if(_0x5cd510[_0x3f465c(0x3bf)]()===_0x3f465c(0x2ca)){const _0x9a8315=_0x5cd510[_0x3f465c(0x1e5)](),_0x39bf00=!_0x9a8315[_0x3f465c(0x1f5)]&&process[_0x3f465c(0x374)][_0x3f465c(0x237)],_0x1f2457=COMMAND_CATEGORIES,_0x4f1cd1=(_0xd76231,_0x21d84d)=>_0x39bf00?_0x21d84d(_0xd76231):_0xd76231,_0x482282=new Map();_0x471e39[_0x3f465c(0x1f8)](_0x21e26b=>{const _0x3e613e=_0x3f465c;_0x482282['set'](_0x21e26b[_0x3e613e(0x3bf)](),_0x21e26b);}),_0x1f2457[_0x3f465c(0x1f8)](_0x25c483=>{const _0x4f2561=_0x3f465c,_0xcefc96=_0x25c483[_0x4f2561(0x140)][_0x4f2561(0x275)](_0x580794=>_0x482282['get'](_0x580794)??[]);if(_0xcefc96[_0x4f2561(0x296)]>0x0){_0x405dcb['push'](''),_0x405dcb['push'](_0x4f1cd1(_0x25c483[_0x4f2561(0x3bf)]+':',_0x25c483[_0x4f2561(0x2d9)]));const _0x13d6f7=_0xcefc96[_0x4f2561(0x354)](_0x521dac=>{const _0x156061=_0x4f2561,_0x507e33=_0x28604a[_0x156061(0x20b)](_0x521dac),_0xc33267=_0x28604a[_0x156061(0x153)](_0x521dac);return _0x172796(_0x507e33,_0xc33267);});_0x405dcb[_0x4f2561(0x231)](_0x2d274a(_0x13d6f7));}}),_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb[_0x3f465c(0x231)](_0x3f465c(0x393));}else{const _0x20c32f=_0x471e39[_0x3f465c(0x354)](_0x5a83fd=>{const _0x211940=_0x3f465c,_0x3980b2=_0x28604a['subcommandTerm'](_0x5a83fd),_0x33e09d=_0x28604a[_0x211940(0x153)](_0x5a83fd);return _0x172796(_0x3980b2,_0x33e09d);});_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb[_0x3f465c(0x231)](_0x3f465c(0x30f)),_0x405dcb['push'](_0x2d274a(_0x20c32f));}}if(showBriefHelp&&_0x5cd510[_0x3f465c(0x3bf)]()===_0x3f465c(0x2ca))_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb[_0x3f465c(0x231)](_0x3f465c(0x245));else{const _0x5e93d2=_0x5cd510[_0x3f465c(0x201)]['filter'](_0x307ff8=>!_0x16b990(_0x307ff8));if(_0x5e93d2[_0x3f465c(0x296)]>0x0){const _0x5e2a94=_0x5e93d2[_0x3f465c(0x354)](_0x2d54d9=>{const _0x45001d=_0x3f465c,_0x439c03=_0x28604a['optionTerm'](_0x2d54d9),_0x55d617=_0x28604a[_0x45001d(0x28a)](_0x2d54d9);return _0x172796(_0x439c03,_0x55d617);});_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb[_0x3f465c(0x231)](_0x3f465c(0x146)),_0x405dcb[_0x3f465c(0x231)](_0x2d274a(_0x5e2a94));}}const _0x1e584c=(_0x5cd510['registeredArguments']||[])[_0x3f465c(0x34b)](_0x4b439a=>!_0x16b990(_0x4b439a));if(_0x1e584c[_0x3f465c(0x296)]>0x0){const _0x5c142d=_0x1e584c[_0x3f465c(0x354)](_0x4700c5=>{const _0x2f61b8=_0x3f465c,_0x26d613=_0x28604a[_0x2f61b8(0x2e4)](_0x4700c5),_0x236b03=_0x28604a[_0x2f61b8(0x3a9)](_0x4700c5);return _0x172796(_0x26d613,_0x236b03);});_0x405dcb[_0x3f465c(0x231)](''),_0x405dcb['push'](_0x3f465c(0x355)),_0x405dcb[_0x3f465c(0x231)](_0x2d274a(_0x5c142d));}return _0x405dcb[_0x3f465c(0x149)]('\x0a')+'\x0a';},'subcommandTerm':_0x1ff1df=>{const _0xfa1fd6=a2_0x3f63cf,_0x302342=(_0x1ff1df[_0xfa1fd6(0x1d6)]||[])[_0xfa1fd6(0x354)](_0x4bde55=>_0x4bde55[_0xfa1fd6(0x377)]?'<'+_0x4bde55[_0xfa1fd6(0x3bf)]()+'>':'['+_0x4bde55[_0xfa1fd6(0x3bf)]()+']')['join']('\x20'),_0x21efb5=_0x1ff1df[_0xfa1fd6(0x17e)](),_0x3e8c3c=_0x21efb5[_0xfa1fd6(0x296)]>0x0?_0x1ff1df['name']()+',\x20'+_0x21efb5[_0xfa1fd6(0x149)](',\x20'):_0x1ff1df[_0xfa1fd6(0x3bf)]();return _0x302342?_0x3e8c3c+'\x20'+_0x302342:_0x3e8c3c;}}),program['hook'](a2_0x3f63cf(0x2b6),_0x50d817=>{const _0x191f64=a2_0x3f63cf,_0x2becfa=_0x50d817['opts']();if(_0x2becfa[_0x191f64(0x1dd)]){const _0x412b29=resolve(_0x2becfa[_0x191f64(0x1dd)]),_0x37147d=_0x412b29!==_0x2becfa[_0x191f64(0x1dd)]?'\x20(resolved\x20to\x20'+_0x412b29+')':'';if(!existsSync(_0x412b29))throw new SDKError(ErrorCode[_0x191f64(0x3b1)],'Directory\x20does\x20not\x20exist:\x20'+_0x2becfa[_0x191f64(0x1dd)]+_0x37147d,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x2dce89=statSync(_0x412b29);if(!_0x2dce89[_0x191f64(0x152)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x191f64(0x2fa)+_0x2becfa['directory']+_0x37147d,undefined,{'helpText':_0x191f64(0x181)});process[_0x191f64(0x32d)](_0x412b29);}if(!_0x2becfa['format']){if(_0x2becfa[_0x191f64(0x272)])_0x2becfa[_0x191f64(0x22a)]='table';else{if(_0x2becfa['json'])_0x2becfa[_0x191f64(0x22a)]='json';else{if(_0x2becfa['jsonl'])_0x2becfa[_0x191f64(0x22a)]=_0x191f64(0x1b2);else _0x2becfa['tsv']&&(_0x2becfa[_0x191f64(0x22a)]=_0x191f64(0x3af));}}}if(_0x2becfa['trace'])_0x2becfa[_0x191f64(0x154)]=LogLevel['TRACE'];else{if(_0x2becfa['debug'])_0x2becfa[_0x191f64(0x154)]=LogLevel[_0x191f64(0x1da)];else _0x2becfa[_0x191f64(0x154)]===undefined&&(_0x2becfa[_0x191f64(0x154)]=LogLevel[_0x191f64(0x367)]);}});async function createTDXInstance(_0x54bbc6){const _0x2c6015=a2_0x3f63cf,_0x4c6179=await GlobalContext['createAsync'](_0x54bbc6);return _0x4c6179[_0x2c6015(0x2cc)](_0x54bbc6),TDX['create']({'site':_0x4c6179['site'],'apiKey':_0x4c6179[_0x2c6015(0x239)],'logLevel':_0x4c6179[_0x2c6015(0x154)],'profile':_0x4c6179['profile']});}const databaseCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x163))[a2_0x3f63cf(0x196)]('db')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x293)),databaseListAction=async(_0x4cd837,_0x7130b)=>{const _0x2ec980=a2_0x3f63cf,_0x31076f=new DatabasesCommand(),_0x574def=program[_0x2ec980(0x1e5)](),_0x326d71=await createTDXInstance(_0x574def),_0x1693a6=await _0x31076f[_0x2ec980(0x2a7)]({'options':{..._0x574def,..._0x7130b},'args':_0x4cd837?[_0x4cd837]:[],'tdx':_0x326d71});gracefulExit(_0x1693a6);};databaseCmd['command'](a2_0x3f63cf(0x364))['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3f63cf(0x3a4)](databaseListAction),program[a2_0x3f63cf(0x3d5)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x3f63cf(0x21c))[a2_0x3f63cf(0x3a4)](databaseListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x256))[a2_0x3f63cf(0x31b)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')['option'](a2_0x3f63cf(0x2bf),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x273),a2_0x3f63cf(0x399))[a2_0x3f63cf(0x1d7)]('--chat-id\x20<id>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x14b),a2_0x3f63cf(0x274))['action'](async(_0x2df1db,_0x4bec02)=>{const _0x187419=a2_0x3f63cf,_0x4471d6=program['opts'](),_0x218916=await createTDXInstance(_0x4471d6);if(_0x2df1db[0x0]===_0x187419(0x1d1)){const _0x10f855=new ChatCreateCommand();gracefulExit(await _0x10f855[_0x187419(0x2a7)]({'options':{..._0x4471d6,..._0x4bec02},'args':_0x2df1db['slice'](0x1),'tdx':_0x218916}));return;}const _0x6efe17=new ChatCommand(),_0x3c4ff5=await _0x6efe17['run']({'options':{..._0x4471d6,..._0x4bec02},'args':_0x2df1db,'tdx':_0x218916});gracefulExit(_0x3c4ff5);});const apiCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x371))[a2_0x3f63cf(0x18e)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3f63cf(0x26d)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x379),a2_0x3f63cf(0x39d),a2_0x3f63cf(0x25f))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1aa),a2_0x3f63cf(0x207))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x325),'Read\x20request\x20body\x20from\x20file')[a2_0x3f63cf(0x1d7)]('-H,\x20--header\x20<header>',a2_0x3f63cf(0x31c),(_0x3d49a8,_0x386934)=>{return _0x386934?[..._0x386934,_0x3d49a8]:[_0x3d49a8];})[a2_0x3f63cf(0x1d7)]('--type\x20<api_type>',a2_0x3f63cf(0x1ea),'td')[a2_0x3f63cf(0x3a4)](async(_0x18e211,_0xd9c29e)=>{const _0xf965c0=a2_0x3f63cf;if(!_0x18e211){apiCmd['help']();return;}const _0xb895a2=new ApiCommand(),_0xc446ef=program[_0xf965c0(0x1e5)](),_0x51ead1=await createTDXInstance(_0xc446ef),_0x57f651=await _0xb895a2[_0xf965c0(0x2a7)]({'options':{..._0xc446ef,..._0xd9c29e},'args':[_0x18e211],'tdx':_0x51ead1});gracefulExit(_0x57f651);});function a2_0x3155(_0x814b81,_0x5f2eac){_0x814b81=_0x814b81-0x13a;const _0x1b31dd=a2_0x1b31();let _0x315535=_0x1b31dd[_0x814b81];return _0x315535;}program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1d8))['description'](a2_0x3f63cf(0x27d))[a2_0x3f63cf(0x26d)](a2_0x3f63cf(0x26f),a2_0x3f63cf(0x356))[a2_0x3f63cf(0x3a4)](async _0x2f8b12=>{const _0x28ff67=a2_0x3f63cf,_0x4bc277=new MCPCommand(),_0x185aa0=program[_0x28ff67(0x1e5)](),_0xd3f613=await createTDXInstance(_0x185aa0),_0x17f74c=await _0x4bc277[_0x28ff67(0x2a7)]({'options':{..._0x185aa0,..._0x2f8b12},'args':[],'tdx':_0xd3f613});gracefulExit(_0x17f74c);});const tableCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x272))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x147)),tableListAction=async(_0x51d7ac,_0x12c404)=>{const _0x4223fc=a2_0x3f63cf,_0x544231=new TablesCommand(),_0x531910=program[_0x4223fc(0x1e5)](),_0x1e0f22=await createTDXInstance(_0x531910);_0x12c404['in']&&(_0x12c404[_0x4223fc(0x163)]=_0x12c404['in']);const _0x1b057a=await _0x544231['run']({'options':{..._0x531910,..._0x12c404},'args':_0x51d7ac?[_0x51d7ac]:[],'tdx':_0x1e0f22});gracefulExit(_0x1b057a);};tableCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x329))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2a3),a2_0x3f63cf(0x2b5))[a2_0x3f63cf(0x1d7)]('--in\x20<database>',a2_0x3f63cf(0x262))['action'](tableListAction),program[a2_0x3f63cf(0x3d5)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x25b))['option'](a2_0x3f63cf(0x2a3),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option']('--in\x20<database>',a2_0x3f63cf(0x262))[a2_0x3f63cf(0x3a4)](tableListAction),program['command'](a2_0x3f63cf(0x2f2))[a2_0x3f63cf(0x31b)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2a3),a2_0x3f63cf(0x1d4))[a2_0x3f63cf(0x1d7)]('--in\x20<database>',a2_0x3f63cf(0x262))['action'](async(_0x2a819b,_0x539704)=>{const _0x544bc9=a2_0x3f63cf,_0x3b7073=new ShowCommand(),_0x1bb052=program[_0x544bc9(0x1e5)](),_0x38184f=await createTDXInstance(_0x1bb052);_0x539704['in']&&(_0x539704['database']=_0x539704['in']);const _0x366328=await _0x3b7073[_0x544bc9(0x2a7)]({'options':{..._0x1bb052,..._0x539704},'args':_0x2a819b?[_0x2a819b]:[],'tdx':_0x38184f});gracefulExit(_0x366328);}),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x19a))[a2_0x3f63cf(0x196)](a2_0x3f63cf(0x2d3))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x391))[a2_0x3f63cf(0x1d7)]('-d,\x20--database\x20<database>',a2_0x3f63cf(0x1d4))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x20f),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3f63cf(0x3a4)](async(_0x5e2d85,_0x3aafe5)=>{const _0x16f34a=a2_0x3f63cf,_0x3b5f83=new DescribeCommand(),_0x580e51=program['opts'](),_0x3ae098=await createTDXInstance(_0x580e51);_0x3aafe5['in']&&(_0x3aafe5[_0x16f34a(0x163)]=_0x3aafe5['in']);const _0x10505f=await _0x3b5f83[_0x16f34a(0x2a7)]({'options':{..._0x580e51,..._0x3aafe5},'args':_0x5e2d85?[_0x5e2d85]:[],'tdx':_0x3ae098});gracefulExit(_0x10505f);}),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x389))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1fb))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2a3),a2_0x3f63cf(0x2a5))['option'](a2_0x3f63cf(0x20f),a2_0x3f63cf(0x262))['option'](a2_0x3f63cf(0x21e),a2_0x3f63cf(0x233))[a2_0x3f63cf(0x1d7)]('-f,\x20--file\x20<path>',a2_0x3f63cf(0x337))['option'](a2_0x3f63cf(0x2fd),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')['action'](async(_0x3381d8,_0x5aeb7d)=>{const _0x9f9468=a2_0x3f63cf,_0x305585=new QueryCommand(),_0x365f29=program[_0x9f9468(0x1e5)](),_0x4d65a1=await createTDXInstance(_0x365f29);_0x5aeb7d['in']&&(_0x5aeb7d[_0x9f9468(0x163)]=_0x5aeb7d['in']);const _0x2e46d7=await _0x305585[_0x9f9468(0x2a7)]({'options':{..._0x365f29,..._0x5aeb7d},'args':_0x3381d8?[_0x3381d8]:[],'tdx':_0x4d65a1});gracefulExit(_0x2e46d7);});const segmentCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x375))[a2_0x3f63cf(0x196)]('sg')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x20e)),segmentListAction=async(_0x42f547,_0x315335)=>{const _0x40ba24=a2_0x3f63cf,_0x110a2a=new SegmentsCommand(),_0x5c4d2c=program[_0x40ba24(0x1e5)](),_0x294554=await createTDXInstance(_0x5c4d2c),_0x20f107=await _0x110a2a[_0x40ba24(0x2a7)]({'options':{..._0x5c4d2c,..._0x315335},'args':_0x42f547?[_0x42f547]:[],'tdx':_0x294554});gracefulExit(_0x20f107);};segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x241))['description'](a2_0x3f63cf(0x2b3))['option'](a2_0x3f63cf(0x2d4),a2_0x3f63cf(0x388))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x24a),a2_0x3f63cf(0x332),'10')['action'](segmentListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x35e),{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x20c))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2d4),a2_0x3f63cf(0x388))[a2_0x3f63cf(0x1d7)]('--max-depth\x20<depth>',a2_0x3f63cf(0x332),'10')[a2_0x3f63cf(0x3a4)](segmentListAction),segmentCmd[a2_0x3f63cf(0x3d5)]('use\x20<path>',{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3cd))[a2_0x3f63cf(0x3a4)](async(_0x5e0040,_0x4e4198)=>{const _0x361774=a2_0x3f63cf,_0x9212e8=new SegmentUseCommand(),_0x1455ab=program[_0x361774(0x1e5)](),_0xfa02da=await createTDXInstance(_0x1455ab),_0x28f3fa=await _0x9212e8['run']({'options':{..._0x1455ab,..._0x4e4198},'args':[_0x5e0040],'tdx':_0xfa02da});gracefulExit(_0x28f3fa);});const segmentViewAction=async(_0x48dcc5,_0x413bd8)=>{const _0x41af7d=a2_0x3f63cf,_0x21cdbb=new SegmentViewCommand(),_0x2d8e7e=program[_0x41af7d(0x1e5)](),_0x360de8=await createTDXInstance(_0x2d8e7e),_0x5e793c=await _0x21cdbb[_0x41af7d(0x2a7)]({'options':{..._0x2d8e7e,..._0x413bd8},'args':_0x48dcc5?[_0x48dcc5]:[],'tdx':_0x360de8});gracefulExit(_0x5e793c);};segmentCmd['command'](a2_0x3f63cf(0x33b))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x204))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1c3),a2_0x3f63cf(0x2ef))[a2_0x3f63cf(0x3a4)](segmentViewAction),segmentCmd[a2_0x3f63cf(0x3d5)]('info\x20[segment_name]',{'hidden':!![]})['alias'](a2_0x3f63cf(0x1fc))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1c3),'Open\x20segment\x20in\x20web\x20browser')['description'](a2_0x3f63cf(0x279))[a2_0x3f63cf(0x3a4)](segmentViewAction),segmentCmd['command']('desc\x20[segment_name]')['description']('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x3f63cf(0x3a4)](async(_0x4e166b,_0x26342d)=>{const _0x376490=a2_0x3f63cf,_0x2f02f0=new SegmentDescCommand(),_0x2d057d=program['opts'](),_0x39f0fd=await createTDXInstance(_0x2d057d),_0x1db75a=await _0x2f02f0[_0x376490(0x2a7)]({'options':{..._0x2d057d,..._0x26342d},'args':_0x4e166b?[_0x4e166b]:[],'tdx':_0x39f0fd});gracefulExit(_0x1db75a);}),segmentCmd[a2_0x3f63cf(0x3d5)]('show\x20[segment_name]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2a9))['action'](async(_0x27c092,_0x1d83b5)=>{const _0x477e14=a2_0x3f63cf,_0x4a3654=new SegmentShowCommand(),_0x53e0fc=program[_0x477e14(0x1e5)](),_0x53fe1b=await createTDXInstance(_0x53e0fc),_0xdecb0d=await _0x4a3654['run']({'options':{..._0x53e0fc,..._0x1d83b5},'args':_0x27c092?[_0x27c092]:[],'tdx':_0x53fe1b});gracefulExit(_0xdecb0d);}),segmentCmd[a2_0x3f63cf(0x3d5)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x15e))['action'](async(_0x459fee,_0x5710f4)=>{const _0x160fa6=a2_0x3f63cf,_0x365659=new SegmentFolderListCommand(),_0xcbf28e=program['opts'](),_0x1be7bd=await createTDXInstance(_0xcbf28e),_0x41265b=await _0x365659[_0x160fa6(0x2a7)]({'options':{..._0xcbf28e,..._0x5710f4},'args':[_0x459fee],'tdx':_0x1be7bd});gracefulExit(_0x41265b);});const folderCmd=segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x308),{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3c8));folderCmd[a2_0x3f63cf(0x3d5)]('show\x20<folder_ref>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1b8))['action'](async(_0x2542eb,_0x5af1d1)=>{const _0x562ffc=a2_0x3f63cf,_0xe08766=new SegmentFolderShowCommand(),_0x176cd4=program[_0x562ffc(0x1e5)](),_0x248d07=await createTDXInstance(_0x176cd4),_0x1c5fdd=await _0xe08766[_0x562ffc(0x2a7)]({'options':{..._0x176cd4,..._0x5af1d1},'args':[_0x2542eb],'tdx':_0x248d07});gracefulExit(_0x1c5fdd);}),segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x31f))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2f9))[a2_0x3f63cf(0x1d7)]('--path\x20<file-path>',a2_0x3f63cf(0x174))[a2_0x3f63cf(0x3a4)](async(_0x2e9ef9,_0x28da44)=>{const _0x40408e=a2_0x3f63cf,_0x4d1cd2=new SegmentSQLCommand(),_0x500692=program['opts'](),_0x4a26fe=await createTDXInstance(_0x500692),_0x16079f=await _0x4d1cd2[_0x40408e(0x2a7)]({'options':{..._0x500692,..._0x28da44},'args':_0x2e9ef9?[_0x2e9ef9]:[],'tdx':_0x4a26fe});gracefulExit(_0x16079f);}),segmentCmd['command'](a2_0x3f63cf(0x29c))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1b3))[a2_0x3f63cf(0x3a4)](async(_0x8585c,_0x2e50d3)=>{const _0x524137=a2_0x3f63cf,_0x25b87d=new SegmentFieldsCommand(),_0x43e76e=program[_0x524137(0x1e5)](),_0x4ad4a1=await createTDXInstance(_0x43e76e),_0x5e7fcf=await _0x25b87d[_0x524137(0x2a7)]({'options':{..._0x43e76e,..._0x2e50d3},'args':_0x8585c?[_0x8585c]:[],'tdx':_0x4ad4a1});gracefulExit(_0x5e7fcf);}),segmentCmd['command'](a2_0x3f63cf(0x167))['description'](a2_0x3f63cf(0x320))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3f63cf(0x3a4)](async(_0x5cb474,_0x14a833)=>{const _0x5b238c=new SegmentPullCommand(),_0x551b9a=program['opts'](),_0xf830eb=await createTDXInstance(_0x551b9a),_0x4b6758=await _0x5b238c['run']({'options':{..._0x551b9a,..._0x14a833},'args':_0x5cb474?[_0x5cb474]:[],'tdx':_0xf830eb});gracefulExit(_0x4b6758);}),segmentCmd['command'](a2_0x3f63cf(0x35f))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3a3))[a2_0x3f63cf(0x1d7)]('--dry-run',a2_0x3f63cf(0x31d))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x240),a2_0x3f63cf(0x1e3))['action'](async(_0x364b15,_0x1f901d)=>{const _0x10cce9=a2_0x3f63cf,_0xcdac49=new SegmentPushCommand(),_0x479323=program[_0x10cce9(0x1e5)](),_0x1112e3=await createTDXInstance(_0x479323),_0xc439ec=await _0xcdac49[_0x10cce9(0x2a7)]({'options':{..._0x479323,..._0x1f901d},'args':_0x364b15?[_0x364b15]:[],'tdx':_0x1112e3});gracefulExit(_0xc439ec);}),segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x36a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x215))[a2_0x3f63cf(0x3a4)](async(_0x26cbe8,_0x1e7dac)=>{const _0x4d9cfa=a2_0x3f63cf,_0x119d63=new SegmentValidateCommand(),_0x50554a=program['opts'](),_0x276204=await createTDXInstance(_0x50554a),_0x36443c=await _0x119d63[_0x4d9cfa(0x2a7)]({'options':{..._0x50554a,..._0x1e7dac},'args':_0x26cbe8?[_0x26cbe8]:[],'tdx':_0x276204});gracefulExit(_0x36443c);}),segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1ad),{'hidden':!![]})['description'](a2_0x3f63cf(0x249))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c7),'Segment\x20description')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1fe),a2_0x3f63cf(0x27b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2f1),a2_0x3f63cf(0x220))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x213),a2_0x3f63cf(0x24f))['option'](a2_0x3f63cf(0x21b),a2_0x3f63cf(0x2f3))['option'](a2_0x3f63cf(0x310),a2_0x3f63cf(0x351))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c2),a2_0x3f63cf(0x1bf))[a2_0x3f63cf(0x3a4)](async(_0x521272,_0x2c10f6)=>{const _0x41ab1f=a2_0x3f63cf,_0x416a40=new SegmentCreateCommand(),_0x9ef5cf=program[_0x41ab1f(0x1e5)](),_0x4ef9ab=await createTDXInstance(_0x9ef5cf),_0x312fc5=await _0x416a40[_0x41ab1f(0x2a7)]({'options':{..._0x9ef5cf,..._0x2c10f6},'args':[_0x521272],'tdx':_0x4ef9ab});gracefulExit(_0x312fc5);}),segmentCmd[a2_0x3f63cf(0x3d5)]('update\x20<segment_name>',{'hidden':!![]})[a2_0x3f63cf(0x31b)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3b0),a2_0x3f63cf(0x1e8))[a2_0x3f63cf(0x1d7)]('--description\x20<text>',a2_0x3f63cf(0x1bc))['option'](a2_0x3f63cf(0x1fe),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x3f63cf(0x2f1),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x213),a2_0x3f63cf(0x2cf))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x21b),a2_0x3f63cf(0x2f3))[a2_0x3f63cf(0x3a4)](async(_0x2d2519,_0xf6ccc4)=>{const _0x55d1e9=a2_0x3f63cf,_0xac21f7=new SegmentUpdateCommand(),_0x103e04=program[_0x55d1e9(0x1e5)](),_0x29bb08=await createTDXInstance(_0x103e04),_0x32384b=await _0xac21f7[_0x55d1e9(0x2a7)]({'options':{..._0x103e04,..._0xf6ccc4},'args':[_0x2d2519],'tdx':_0x29bb08});gracefulExit(_0x32384b);});const parentCmd=segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2a4),{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2f7)),parentListAction=async(_0x1aca1c,_0x1576aa)=>{const _0xaf2e20=a2_0x3f63cf,_0x295084=new ParentSegmentListCommand(),_0x37014d=program[_0xaf2e20(0x1e5)](),_0x5e10e7=await createTDXInstance(_0x37014d),_0x5abf13=await _0x295084['run']({'options':{..._0x37014d,..._0x1576aa},'args':_0x1aca1c?[_0x1aca1c]:[],'tdx':_0x5e10e7});gracefulExit(_0x5abf13);};parentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x288))[a2_0x3f63cf(0x3a4)](parentListAction),segmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1db),{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x16e))[a2_0x3f63cf(0x3a4)](parentListAction),parentCmd[a2_0x3f63cf(0x3d5)]('pull\x20[name]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x334))[a2_0x3f63cf(0x1d7)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x3f63cf(0x3a4)](async(_0x4118fd,_0x50d236)=>{const _0x22a297=a2_0x3f63cf,_0x1a66ea=new ParentSegmentPullCommand(),_0xe063d1=program[_0x22a297(0x1e5)](),_0x24da15=await createTDXInstance(_0xe063d1),_0x38410f=await _0x1a66ea[_0x22a297(0x2a7)]({'options':{..._0xe063d1,..._0x50d236},'args':_0x4118fd?[_0x4118fd]:[],'tdx':_0x24da15});gracefulExit(_0x38410f);}),parentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2e6))['description']('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x3f63cf(0x3a4)](async(_0x15a78a,_0x215a64)=>{const _0x1f4456=a2_0x3f63cf,_0x1a3951=new ParentSegmentPushCommand(),_0x5623de=program[_0x1f4456(0x1e5)](),_0x537771=await createTDXInstance(_0x5623de),_0x25e63b=await _0x1a3951[_0x1f4456(0x2a7)]({'options':{..._0x5623de,..._0x215a64},'args':_0x15a78a?[_0x15a78a]:[],'tdx':_0x537771});gracefulExit(_0x25e63b);}),parentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2d1))[a2_0x3f63cf(0x31b)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3f63cf(0x1d7)]('--master',a2_0x3f63cf(0x397))['option']('--attribute\x20[name]',a2_0x3f63cf(0x2db))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x15c),a2_0x3f63cf(0x23b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3d4),a2_0x3f63cf(0x26b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2ec),a2_0x3f63cf(0x13e),a2_0x3f63cf(0x19e))[a2_0x3f63cf(0x3a4)](async(_0x45e715,_0x575e23)=>{const _0x58f487=a2_0x3f63cf,_0x2c7c82=new ParentSegmentValidateCommand(),_0x413b23=program[_0x58f487(0x1e5)](),_0x3d66e9=await createTDXInstance(_0x413b23),_0x31a694=await _0x2c7c82[_0x58f487(0x2a7)]({'options':{..._0x413b23,..._0x575e23},'args':_0x45e715?[_0x45e715]:[],'tdx':_0x3d66e9});gracefulExit(_0x31a694);}),parentCmd[a2_0x3f63cf(0x3d5)]('preview\x20[file]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x205))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3ac),'Show\x20master\x20table\x20sample\x20data')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x23d),a2_0x3f63cf(0x230))[a2_0x3f63cf(0x1d7)]('--behavior\x20[name]',a2_0x3f63cf(0x27c))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3d4),a2_0x3f63cf(0x21f))[a2_0x3f63cf(0x1d7)]('--interval\x20<range>',a2_0x3f63cf(0x13e),a2_0x3f63cf(0x19e))[a2_0x3f63cf(0x3a4)](async(_0x5758f0,_0x13e024)=>{const _0x13a210=a2_0x3f63cf,_0x47286e=new ParentSegmentPreviewCommand(),_0xed9d74=program[_0x13a210(0x1e5)](),_0x51c66d=await createTDXInstance(_0xed9d74),_0x5b69f2=await _0x47286e['run']({'options':{..._0xed9d74,..._0x13e024},'args':_0x5758f0?[_0x5758f0]:[],'tdx':_0x51c66d});gracefulExit(_0x5b69f2);}),parentCmd['command'](a2_0x3f63cf(0x1d5))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x21a))['action'](async(_0x4bc595,_0x1dfdc0)=>{const _0x5a7cf5=a2_0x3f63cf,_0x3c08d7=new ParentSegmentRunCommand(),_0x268143=program[_0x5a7cf5(0x1e5)](),_0x5c90fe=await createTDXInstance(_0x268143),_0x49bdbc=await _0x3c08d7[_0x5a7cf5(0x2a7)]({'options':{..._0x268143,..._0x1dfdc0},'args':_0x4bc595?[_0x4bc595]:[],'tdx':_0x5c90fe});gracefulExit(_0x49bdbc);});const parentSegmentCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x19f))[a2_0x3f63cf(0x196)]('ps')[a2_0x3f63cf(0x31b)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x288))[a2_0x3f63cf(0x3a4)](parentListAction),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x15d))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x13d))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x29f),'Output\x20file\x20path')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2c0),a2_0x3f63cf(0x281))[a2_0x3f63cf(0x3a4)](async(_0x383b6b,_0x3b82bd)=>{const _0x5abc0f=a2_0x3f63cf,_0x322332=new ParentSegmentPullCommand(),_0x47d426=program[_0x5abc0f(0x1e5)](),_0x1974cb=await createTDXInstance(_0x47d426),_0xef6896=await _0x322332[_0x5abc0f(0x2a7)]({'options':{..._0x47d426,..._0x3b82bd},'args':_0x383b6b?[_0x383b6b]:[],'tdx':_0x1974cb});gracefulExit(_0xef6896);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x30b))['description'](a2_0x3f63cf(0x39f))[a2_0x3f63cf(0x3a4)](async(_0x514ab9,_0x2eba7c)=>{const _0x119326=a2_0x3f63cf,_0x451d56=new ParentSegmentPushCommand(),_0x28dee0=program['opts'](),_0x5c57c5=await createTDXInstance(_0x28dee0),_0x47d2dc=await _0x451d56[_0x119326(0x2a7)]({'options':{..._0x28dee0,..._0x2eba7c},'args':_0x514ab9?[_0x514ab9]:[],'tdx':_0x5c57c5});gracefulExit(_0x47d2dc);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x200))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x35d))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3ac),a2_0x3f63cf(0x397))[a2_0x3f63cf(0x1d7)]('--attribute\x20[name]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x3f63cf(0x15c),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option'](a2_0x3f63cf(0x3d4),a2_0x3f63cf(0x26b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2ec),a2_0x3f63cf(0x13e),a2_0x3f63cf(0x19e))['action'](async(_0x30770b,_0x1518ae)=>{const _0x3a5a45=new ParentSegmentValidateCommand(),_0x359fa2=program['opts'](),_0x37db25=await createTDXInstance(_0x359fa2),_0x57886a=await _0x3a5a45['run']({'options':{..._0x359fa2,..._0x1518ae},'args':_0x30770b?[_0x30770b]:[],'tdx':_0x37db25});gracefulExit(_0x57886a);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1c4))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x205))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3ac),a2_0x3f63cf(0x1b1))['option'](a2_0x3f63cf(0x23d),a2_0x3f63cf(0x230))['option'](a2_0x3f63cf(0x15c),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x3f63cf(0x1d7)]('--enriched',a2_0x3f63cf(0x21f))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2ec),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x1e5d9a,_0x18cb00)=>{const _0x22ed8f=a2_0x3f63cf,_0x10a019=new ParentSegmentPreviewCommand(),_0x4b235b=program[_0x22ed8f(0x1e5)](),_0x557175=await createTDXInstance(_0x4b235b),_0x103cdb=await _0x10a019[_0x22ed8f(0x2a7)]({'options':{..._0x4b235b,..._0x18cb00},'args':_0x1e5d9a?[_0x1e5d9a]:[],'tdx':_0x557175});gracefulExit(_0x103cdb);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)]('run\x20[name]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x21a))[a2_0x3f63cf(0x3a4)](async(_0x564d5e,_0x5ee7e2)=>{const _0x44e81b=a2_0x3f63cf,_0x25ab22=new ParentSegmentRunCommand(),_0x52b26e=program[_0x44e81b(0x1e5)](),_0x43a80c=await createTDXInstance(_0x52b26e),_0x2b5060=await _0x25ab22[_0x44e81b(0x2a7)]({'options':{..._0x52b26e,..._0x5ee7e2},'args':_0x564d5e?[_0x564d5e]:[],'tdx':_0x43a80c});gracefulExit(_0x2b5060);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2b0))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x195))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1a1),a2_0x3f63cf(0x264))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x228),a2_0x3f63cf(0x35b))[a2_0x3f63cf(0x3a4)](async(_0x2a029d,_0x2cbd29)=>{const _0x177229=a2_0x3f63cf,_0x2665ee=new ParentSegmentFieldsCommand(),_0x195fd9=program[_0x177229(0x1e5)](),_0x1cb0c4=await createTDXInstance(_0x195fd9),_0x4d1329=await _0x2665ee[_0x177229(0x2a7)]({'options':{..._0x195fd9,..._0x2cbd29},'args':_0x2a029d?[_0x2a029d]:[],'tdx':_0x1cb0c4});gracefulExit(_0x4d1329);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)]('view\x20[name]')['description'](a2_0x3f63cf(0x3c1))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1c3),a2_0x3f63cf(0x30a))['option'](a2_0x3f63cf(0x1a1),'Output\x20as\x20JSON')['option'](a2_0x3f63cf(0x228),'Output\x20as\x20JSON\x20Lines')[a2_0x3f63cf(0x3a4)](async(_0x7ca7b4,_0x26e036)=>{const _0x576f8b=a2_0x3f63cf,_0x139842=new ParentSegmentViewCommand(),_0x452895=program[_0x576f8b(0x1e5)](),_0x4c8c96=await createTDXInstance(_0x452895),_0x282497=await _0x139842[_0x576f8b(0x2a7)]({'options':{..._0x452895,..._0x26e036},'args':_0x7ca7b4?[_0x7ca7b4]:[],'tdx':_0x4c8c96});gracefulExit(_0x282497);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x33d))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x15b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x29f),a2_0x3f63cf(0x361))[a2_0x3f63cf(0x1d7)]('--json','Output\x20as\x20JSON')['option'](a2_0x3f63cf(0x228),a2_0x3f63cf(0x35b))[a2_0x3f63cf(0x3a4)](async(_0x54a705,_0x55c2f1)=>{const _0x1068e0=a2_0x3f63cf,_0x37f303=new ParentSegmentDescCommand(),_0x21fe9a=program[_0x1068e0(0x1e5)](),_0x469e0c=await createTDXInstance(_0x21fe9a),_0x343479=await _0x37f303['run']({'options':{..._0x21fe9a,..._0x55c2f1},'args':_0x54a705?[_0x54a705]:[],'tdx':_0x469e0c});gracefulExit(_0x343479);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x381))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1ac))['option']('--json',a2_0x3f63cf(0x264))['option'](a2_0x3f63cf(0x228),'Output\x20as\x20JSON\x20Lines')[a2_0x3f63cf(0x3a4)](async(_0x3e0740,_0x2c63e6)=>{const _0x142a56=a2_0x3f63cf,_0x1299c6=new ParentSegmentSQLCommand(),_0x4c040d=program['opts'](),_0x19a7eb=await createTDXInstance(_0x4c040d),_0x37ae72=await _0x1299c6[_0x142a56(0x2a7)]({'options':{..._0x4c040d,..._0x2c63e6},'args':_0x3e0740?[_0x3e0740]:[],'tdx':_0x19a7eb});gracefulExit(_0x37ae72);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x18a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2ab))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2d2),a2_0x3f63cf(0x263))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1a1),'Output\x20as\x20JSON')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x228),a2_0x3f63cf(0x35b))[a2_0x3f63cf(0x3a4)](async(_0x5c24cf,_0x20e812)=>{const _0x3f7905=a2_0x3f63cf,_0xe23756=new ParentSegmentShowCommand(),_0x5ebc54=program[_0x3f7905(0x1e5)](),_0x354750=await createTDXInstance(_0x5ebc54),_0x238759=await _0xe23756[_0x3f7905(0x2a7)]({'options':{..._0x5ebc54,..._0x20e812},'args':_0x5c24cf?[_0x5c24cf]:[],'tdx':_0x354750});gracefulExit(_0x238759);}),parentSegmentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2a0))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3a6))['action'](async(_0x543bfe,_0x1585f3)=>{const _0x54ba83=a2_0x3f63cf,_0x415245=new UseCommand(),_0xab41cc=program[_0x54ba83(0x1e5)](),_0x29ef95=_0x543bfe?[_0x54ba83(0x3ab),_0x543bfe]:[],_0x377a78=await _0x415245[_0x54ba83(0x2a7)]({'options':{..._0xab41cc,..._0x1585f3},'args':_0x29ef95,'tdx':null});gracefulExit(_0x377a78);});const psRtCmd=parentSegmentCmd[a2_0x3f63cf(0x3d5)]('rt')[a2_0x3f63cf(0x31b)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x243))[a2_0x3f63cf(0x3a4)](async(_0x566c31,_0x383bd2)=>{const _0x3a3f20=a2_0x3f63cf,_0x3b72d3=new PSRtListCommand(),_0x33bd0e=program[_0x3a3f20(0x1e5)](),_0x1039cf=await createTDXInstance(_0x33bd0e),_0x706ce=await _0x3b72d3[_0x3a3f20(0x2a7)]({'options':{..._0x33bd0e,..._0x383bd2},'args':_0x566c31?[_0x566c31]:[],'tdx':_0x1039cf});gracefulExit(_0x706ce);}),psRtCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x200))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x370))[a2_0x3f63cf(0x3a4)](async(_0x47ea48,_0x5db8e9)=>{const _0x5e0bff=a2_0x3f63cf,_0x2486b3=new PSRtValidateCommand(),_0x530ebd=program[_0x5e0bff(0x1e5)](),_0x541826=await createTDXInstance(_0x530ebd),_0x123d11=await _0x2486b3[_0x5e0bff(0x2a7)]({'options':{..._0x530ebd,..._0x5db8e9},'args':_0x47ea48?[_0x47ea48]:[],'tdx':_0x541826});gracefulExit(_0x123d11);});const parentRtCmd=parentCmd[a2_0x3f63cf(0x3d5)]('rt',{'hidden':!![]})[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x155));parentRtCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x243))['action'](async(_0xbb8d31,_0xd71b6e)=>{const _0x4fabec=a2_0x3f63cf,_0x43a59b=new PSRtListCommand(),_0x2a0a45=program['opts'](),_0x54fe3f=await createTDXInstance(_0x2a0a45),_0x457dd8=await _0x43a59b[_0x4fabec(0x2a7)]({'options':{..._0x2a0a45,..._0xd71b6e},'args':_0xbb8d31?[_0xbb8d31]:[],'tdx':_0x54fe3f});gracefulExit(_0x457dd8);}),parentRtCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x200))['description'](a2_0x3f63cf(0x370))['action'](async(_0x26691b,_0x216a79)=>{const _0x18690c=a2_0x3f63cf,_0x195aeb=new PSRtValidateCommand(),_0x5e8da1=program[_0x18690c(0x1e5)](),_0x2552e5=await createTDXInstance(_0x5e8da1),_0x3718bf=await _0x195aeb[_0x18690c(0x2a7)]({'options':{..._0x5e8da1,..._0x216a79},'args':_0x26691b?[_0x26691b]:[],'tdx':_0x2552e5});gracefulExit(_0x3718bf);});const psPzCmd=parentSegmentCmd[a2_0x3f63cf(0x3d5)]('pz')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1d0));psPzCmd[a2_0x3f63cf(0x3d5)]('list\x20[name]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2e0))[a2_0x3f63cf(0x3a4)](async(_0x536e31,_0x32d4df)=>{const _0x15e089=new PSPzListCommand(),_0x293d7e=program['opts'](),_0x130754=await createTDXInstance(_0x293d7e),_0x282e0b=await _0x15e089['run']({'options':{..._0x293d7e,..._0x32d4df},'args':_0x536e31?[_0x536e31]:[],'tdx':_0x130754});gracefulExit(_0x282e0b);}),psPzCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x314))[a2_0x3f63cf(0x31b)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3f63cf(0x3a4)](async(_0xab0c7,_0x528d23)=>{const _0x17470c=a2_0x3f63cf,_0x33384e=new PSPzInitCommand(),_0x13cd7f=program[_0x17470c(0x1e5)](),_0x251df7=await createTDXInstance(_0x13cd7f),_0x59fb65=await _0x33384e['run']({'options':{..._0x13cd7f,..._0x528d23},'args':_0xab0c7?[_0xab0c7]:[],'tdx':_0x251df7});gracefulExit(_0x59fb65);});const parentPzCmd=parentCmd[a2_0x3f63cf(0x3d5)]('pz',{'hidden':!![]})['description'](a2_0x3f63cf(0x1d0));parentPzCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x157))['description']('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3f63cf(0x3a4)](async(_0x1d8b98,_0x472342)=>{const _0xb5d7e1=a2_0x3f63cf,_0x1e5925=new PSPzListCommand(),_0x482c56=program[_0xb5d7e1(0x1e5)](),_0x14cd60=await createTDXInstance(_0x482c56),_0x31fda0=await _0x1e5925[_0xb5d7e1(0x2a7)]({'options':{..._0x482c56,..._0x472342},'args':_0x1d8b98?[_0x1d8b98]:[],'tdx':_0x14cd60});gracefulExit(_0x31fda0);}),parentPzCmd['command'](a2_0x3f63cf(0x314))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x16c))[a2_0x3f63cf(0x3a4)](async(_0x4377c6,_0x23da5d)=>{const _0x2e02d4=a2_0x3f63cf,_0x46fe74=new PSPzInitCommand(),_0x3e1dec=program[_0x2e02d4(0x1e5)](),_0xed9194=await createTDXInstance(_0x3e1dec),_0x1ec613=await _0x46fe74[_0x2e02d4(0x2a7)]({'options':{..._0x3e1dec,..._0x23da5d},'args':_0x4377c6?[_0x4377c6]:[],'tdx':_0xed9194});gracefulExit(_0x1ec613);}),parentCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3a1))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x219),'Master\x20database\x20name')['requiredOption']('--table\x20<table>','Master\x20table\x20name')['option']('--description\x20<text>',a2_0x3f63cf(0x17a))[a2_0x3f63cf(0x1d7)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x222),a2_0x3f63cf(0x3bb))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28b),a2_0x3f63cf(0x3b6))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2b2),'Attributes\x20as\x20JSON\x20string')['option'](a2_0x3f63cf(0x1a2),a2_0x3f63cf(0x16b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x369),a2_0x3f63cf(0x280))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x17f),'Behaviors\x20from\x20JSON\x20file')['option'](a2_0x3f63cf(0x151),a2_0x3f63cf(0x218))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x22c),a2_0x3f63cf(0x287))['action'](async(_0x243906,_0x311dbe)=>{const _0x598b5e=a2_0x3f63cf,_0x4d25d6=new ParentSegmentCreateCommand(),_0x457092=program[_0x598b5e(0x1e5)](),_0x586d50=await createTDXInstance(_0x457092),_0x399e35=await _0x4d25d6['run']({'options':{..._0x457092,..._0x311dbe},'args':[_0x243906],'tdx':_0x586d50});gracefulExit(_0x399e35);}),parentCmd['command'](a2_0x3f63cf(0x1dc))['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c7),a2_0x3f63cf(0x1bc))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x257),a2_0x3f63cf(0x1ec))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x222),a2_0x3f63cf(0x291))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28b),a2_0x3f63cf(0x2b8))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x14f),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x236),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x3f63cf(0x1d7)]('--add-behaviors\x20<json>',a2_0x3f63cf(0x1f0))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x365),a2_0x3f63cf(0x283))['action'](async(_0x5c4360,_0x32cd87)=>{const _0x3c7523=a2_0x3f63cf,_0x239c9c=new ParentSegmentUpdateCommand(),_0x1fda70=program[_0x3c7523(0x1e5)](),_0xe0259c=await createTDXInstance(_0x1fda70),_0x5a986b=await _0x239c9c[_0x3c7523(0x2a7)]({'options':{..._0x1fda70,..._0x32cd87},'args':[_0x5c4360],'tdx':_0xe0259c});gracefulExit(_0x5a986b);}),folderCmd['command']('create\x20<parent_name>\x20<folder_name>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x169))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c7),a2_0x3f63cf(0x3c4))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2d6),a2_0x3f63cf(0x387))[a2_0x3f63cf(0x3a4)](async(_0x2a956b,_0x1e4541,_0xd14272)=>{const _0x369767=a2_0x3f63cf,_0x5425d5=new SegmentFolderCreateCommand(),_0x103693=program['opts'](),_0x48f722=await createTDXInstance(_0x103693),_0x139329=await _0x5425d5[_0x369767(0x2a7)]({'options':{..._0x103693,..._0xd14272},'args':[_0x2a956b,_0x1e4541],'tdx':_0x48f722});gracefulExit(_0x139329);}),program[a2_0x3f63cf(0x3d5)]('activations\x20<segment_name>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2c8))[a2_0x3f63cf(0x3a4)](async(_0x463d6a,_0x3e4173)=>{const _0x300918=a2_0x3f63cf,_0x24fb24=new ActivationsCommand(),_0x3500a3=program[_0x300918(0x1e5)](),_0x413f2d=await createTDXInstance(_0x3500a3),_0x5033f4=await _0x24fb24[_0x300918(0x2a7)]({'options':{..._0x3500a3,..._0x3e4173},'args':[_0x463d6a],'tdx':_0x413f2d});gracefulExit(_0x5033f4);});const workflowCmd=program[a2_0x3f63cf(0x3d5)]('workflow')[a2_0x3f63cf(0x196)]('wf')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x190)),wfProjectCmd=workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x20a))[a2_0x3f63cf(0x31b)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x5c5733,_0xbd9454)=>{const _0x3298b4=a2_0x3f63cf,_0x2126a4=new WorkflowProjectsCommand(),_0x54959b=program[_0x3298b4(0x1e5)](),_0x1298ed=await createTDXInstance(_0x54959b),_0x14d5b0=await _0x2126a4['run']({'options':{..._0x54959b,..._0xbd9454},'args':_0x5c5733?[_0x5c5733]:[],'tdx':_0x1298ed});gracefulExit(_0x14d5b0);};wfProjectCmd[a2_0x3f63cf(0x3d5)]('list\x20[pattern]')[a2_0x3f63cf(0x31b)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3f63cf(0x3a4)](wfProjectListAction),workflowCmd[a2_0x3f63cf(0x3d5)]('projects\x20[pattern]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x33e))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x4e6680,_0x2fe46e)=>{const _0x61f5b6=a2_0x3f63cf,_0x11856a=new WorkflowWorkflowsCommand(),_0x58fd5b=program[_0x61f5b6(0x1e5)](),_0x16f894=await createTDXInstance(_0x58fd5b),_0x359967=await _0x11856a[_0x61f5b6(0x2a7)]({'options':{..._0x58fd5b,..._0x2fe46e},'args':_0x4e6680?[_0x4e6680]:[],'tdx':_0x16f894});gracefulExit(_0x359967);};workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x383))['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3f63cf(0x3a4)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x286))[a2_0x3f63cf(0x31b)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x1f4d60,_0x1bf61e)=>{const _0x4f9e3e=a2_0x3f63cf,_0x16698f=new WorkflowSessionsCommand(),_0xd2fbcc=program[_0x4f9e3e(0x1e5)](),_0x3f0934=await createTDXInstance(_0xd2fbcc),_0x35c8c0=await _0x16698f[_0x4f9e3e(0x2a7)]({'options':{..._0xd2fbcc,..._0x1bf61e},'args':_0x1f4d60?[_0x1f4d60]:[],'tdx':_0x3f0934});gracefulExit(_0x35c8c0);};wfSessionCmd[a2_0x3f63cf(0x3d5)]('list\x20[project]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2e8))['option']('--status\x20<status>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option']('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1af),a2_0x3f63cf(0x1fd))['action'](wfSessionListAction),workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x24c))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x18c))['option'](a2_0x3f63cf(0x33a),a2_0x3f63cf(0x1ce))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x307),a2_0x3f63cf(0x194))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1af),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction);const wfAttemptListAction=async(_0x2966f2,_0x5689b2)=>{const _0x1f1451=a2_0x3f63cf,_0x29741a=new WorkflowAttemptsCommand(),_0x4c057d=program[_0x1f1451(0x1e5)](),_0xa2b18a=await createTDXInstance(_0x4c057d),_0x64a867=await _0x29741a[_0x1f1451(0x2a7)]({'options':{..._0x4c057d,..._0x5689b2},'args':_0x2966f2?[_0x2966f2]:[],'tdx':_0xa2b18a});gracefulExit(_0x64a867);},attemptCmd=workflowCmd[a2_0x3f63cf(0x3d5)]('attempt')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1b6))[a2_0x3f63cf(0x392)](a2_0x3f63cf(0x39c),a2_0x3f63cf(0x339))[a2_0x3f63cf(0x392)]('[action]','Action:\x20logs,\x20tasks,\x20kill,\x20retry')[a2_0x3f63cf(0x392)](a2_0x3f63cf(0x1a3),a2_0x3f63cf(0x1cd))['option'](a2_0x3f63cf(0x2ff),a2_0x3f63cf(0x234))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x304),a2_0x3f63cf(0x299))['option'](a2_0x3f63cf(0x2a8),a2_0x3f63cf(0x317))[a2_0x3f63cf(0x1d7)]('--params\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x235),a2_0x3f63cf(0x1f7))['option'](a2_0x3f63cf(0x300),'Include\x20retried\x20attempts\x20(for\x20list)')[a2_0x3f63cf(0x3a4)](async(_0x440440,_0x1b9274,_0x2cb5dc,_0x569592)=>{const _0x1886f3=a2_0x3f63cf;if(_0x440440===_0x1886f3(0x363)){await wfAttemptListAction(_0x1b9274,_0x569592);return;}if(!_0x440440){attemptCmd['help']();return;}const _0x27f367=program[_0x1886f3(0x1e5)](),_0xbce728=await createTDXInstance(_0x27f367);let _0x1ad346=0x0;if(!_0x1b9274){const _0xcf44d8=new WorkflowAttemptCommand();_0x1ad346=await _0xcf44d8[_0x1886f3(0x2a7)]({'options':{..._0x27f367,..._0x569592},'args':[_0x440440],'tdx':_0xbce728});}else{if(_0x1b9274===_0x1886f3(0x1b9)){const _0xa198e7=new WorkflowLogsCommand();_0x1ad346=await _0xa198e7[_0x1886f3(0x2a7)]({'options':{..._0x27f367,..._0x569592},'args':_0x2cb5dc?[_0x440440,_0x2cb5dc]:[_0x440440],'tdx':_0xbce728});}else{if(_0x1b9274===_0x1886f3(0x2c4)){const _0x11a02d=new WorkflowTasksCommand();_0x1ad346=await _0x11a02d[_0x1886f3(0x2a7)]({'options':{..._0x27f367,..._0x569592},'args':[_0x440440],'tdx':_0xbce728});}else{if(_0x1b9274==='kill'){const _0x331381=new WorkflowKillCommand();_0x1ad346=await _0x331381[_0x1886f3(0x2a7)]({'options':{..._0x27f367,..._0x569592},'args':[_0x440440],'tdx':_0xbce728});}else{if(_0x1b9274==='retry'){const _0x3b2f32=new WorkflowRetryCommand();_0x1ad346=await _0x3b2f32['run']({'options':{..._0x27f367,..._0x569592},'args':[_0x1886f3(0x1ab)+_0x440440],'tdx':_0xbce728});}else console[_0x1886f3(0x2eb)](_0x1886f3(0x2e9)+_0x1b9274),console[_0x1886f3(0x2eb)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x1ad346=0x1;}}}}gracefulExit(_0x1ad346);});attemptCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x225))['description']('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x300),a2_0x3f63cf(0x1bb))[a2_0x3f63cf(0x3a4)](wfAttemptListAction),workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x3ce))[a2_0x3f63cf(0x31b)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x300),'Include\x20retried\x20attempts')[a2_0x3f63cf(0x3a4)](wfAttemptListAction),workflowCmd[a2_0x3f63cf(0x3d5)]('timeline\x20[project.workflow]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x209))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x159),a2_0x3f63cf(0x3b7))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28e),a2_0x3f63cf(0x185))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x20d),a2_0x3f63cf(0x396))[a2_0x3f63cf(0x3a4)](async(_0x2530ac,_0x3ef39a)=>{const _0x29f023=new WorkflowTimelineCommand(),_0x186bc7=program['opts'](),_0x2d2315=await createTDXInstance(_0x186bc7),_0x294e88=await _0x29f023['run']({'options':{..._0x186bc7,..._0x3ef39a},'args':_0x2530ac?[_0x2530ac]:[],'tdx':_0x2d2315});gracefulExit(_0x294e88);}),workflowCmd['command']('retry\x20<session-id>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x270))[a2_0x3f63cf(0x1d7)]('--from-task\x20<task>',a2_0x3f63cf(0x326))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x14e),a2_0x3f63cf(0x29a))[a2_0x3f63cf(0x3a4)](async(_0x268ebf,_0x1470fa)=>{const _0x56f168=a2_0x3f63cf,_0x3a704a=new WorkflowRetryCommand(),_0x80a599=program[_0x56f168(0x1e5)](),_0x2fafce=await createTDXInstance(_0x80a599),_0x397155=await _0x3a704a[_0x56f168(0x2a7)]({'options':{..._0x80a599,..._0x1470fa},'args':[_0x268ebf],'tdx':_0x2fafce});gracefulExit(_0x397155);}),workflowCmd['command'](a2_0x3f63cf(0x372))['description']('Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x358),'Workflow\x20parameter\x20(repeatable)',(_0x305dd8,_0x5334b9=[])=>[..._0x5334b9,_0x305dd8],[])[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x324),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x3f63cf(0x3a4)](async(_0x1b75f9,_0x35ba90)=>{const _0x57e57a=a2_0x3f63cf,_0x4e7520=new WorkflowRunCommand(),_0x352bdf=program['opts'](),_0x3d77a8=await createTDXInstance(_0x352bdf),_0x383918=await _0x4e7520[_0x57e57a(0x2a7)]({'options':{..._0x352bdf,..._0x35ba90},'args':_0x1b75f9?[_0x1b75f9]:[],'tdx':_0x3d77a8});gracefulExit(_0x383918);}),workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1b0))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x162))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x29b),a2_0x3f63cf(0x378))['action'](async(_0x4e30e9,_0x47968c,_0x5557de)=>{const _0x212ea1=a2_0x3f63cf,_0x28fe47=new WorkflowDownloadCommand(),_0x35defb=program[_0x212ea1(0x1e5)](),_0x4f7b7b=await createTDXInstance(_0x35defb),_0x11cc24=await _0x28fe47[_0x212ea1(0x2a7)]({'options':{..._0x35defb,..._0x5557de},'args':[_0x4e30e9,_0x47968c||'.'],'tdx':_0x4f7b7b});gracefulExit(_0x11cc24);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x268))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x29b),a2_0x3f63cf(0x178))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x3b3))[a2_0x3f63cf(0x3a4)](async(_0x462403,_0x315835,_0x3f7f02)=>{const _0x1006c5=a2_0x3f63cf,_0x907501=new WorkflowPullCommand(),_0x5f1763=program[_0x1006c5(0x1e5)](),_0x1e00c7=await createTDXInstance(_0x5f1763),_0x337ded=await _0x907501[_0x1006c5(0x2a7)]({'options':{..._0x5f1763,..._0x3f7f02},'args':_0x315835?[_0x462403,_0x315835]:[_0x462403],'tdx':_0x1e00c7});gracefulExit(_0x337ded);}),workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x148))[a2_0x3f63cf(0x31b)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x3f63cf(0x1d7)]('--revision\x20<revision>','Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x3f63cf(0x1d7)]('--dry-run',a2_0x3f63cf(0x2c7))['option'](a2_0x3f63cf(0x3d6),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0x2d1b4c,_0x2d3201)=>{const _0x418b2a=a2_0x3f63cf,_0x2835bc=new WorkflowPushCommand(),_0x4d9ece=program[_0x418b2a(0x1e5)](),_0x5cc7df=await createTDXInstance(_0x4d9ece),_0x433d9e=await _0x2835bc[_0x418b2a(0x2a7)]({'options':{..._0x4d9ece,..._0x2d3201},'args':_0x2d1b4c?[_0x2d1b4c]:[],'tdx':_0x5cc7df});gracefulExit(_0x433d9e);}),workflowCmd['command'](a2_0x3f63cf(0x2bc))['description']('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x227),a2_0x3f63cf(0x3c0))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x29b),a2_0x3f63cf(0x3a8))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3d6),'Skip\x20validation\x20of\x20.dig\x20files')['action'](async(_0xf6b811,_0x2200e0)=>{const _0x4fd3a4=a2_0x3f63cf,_0x3fb550=new WorkflowUploadCommand(),_0x4515c3=program[_0x4fd3a4(0x1e5)](),_0x558bd3=await createTDXInstance(_0x4515c3),_0x33b8b9=await _0x3fb550[_0x4fd3a4(0x2a7)]({'options':{..._0x4515c3,..._0x2200e0},'args':_0xf6b811?[_0xf6b811]:[],'tdx':_0x558bd3});gracefulExit(_0x33b8b9);}),workflowCmd[a2_0x3f63cf(0x3d5)]('clone\x20[source-dir]')[a2_0x3f63cf(0x31b)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x227),'Name\x20for\x20the\x20new\x20project\x20(required)')['option'](a2_0x3f63cf(0x29b),a2_0x3f63cf(0x38f))[a2_0x3f63cf(0x1d7)]('--dry-run',a2_0x3f63cf(0x2f5))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3d6),a2_0x3f63cf(0x2da))[a2_0x3f63cf(0x3a4)](async(_0x3407fe,_0x19d697)=>{const _0x15010c=a2_0x3f63cf,_0x5368d9=new WorkflowCloneCommand(),_0xe7a4ce=program[_0x15010c(0x1e5)](),_0x1c69bb=await createTDXInstance(_0xe7a4ce),_0x87b394=await _0x5368d9[_0x15010c(0x2a7)]({'options':{..._0xe7a4ce,..._0x19d697},'args':_0x3407fe?[_0x3407fe]:[],'tdx':_0x1c69bb});gracefulExit(_0x87b394);}),workflowCmd[a2_0x3f63cf(0x3d5)]('delete\x20<project-name-or-id>')[a2_0x3f63cf(0x31b)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x3f63cf(0x3a4)](async(_0x36913e,_0x32ba7a)=>{const _0x589d27=a2_0x3f63cf,_0x1dabf3=new WorkflowDeleteCommand(),_0x2aec35=program[_0x589d27(0x1e5)](),_0x1925f1=await createTDXInstance(_0x2aec35),_0x45b18c=await _0x1dabf3['run']({'options':{..._0x2aec35,..._0x32ba7a},'args':[_0x36913e],'tdx':_0x1925f1});gracefulExit(_0x45b18c);}),workflowCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x3a0))['description']('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x31a),a2_0x3f63cf(0x1ae))['action'](async(_0x3c6257,_0x238960)=>{const _0x25e82f=a2_0x3f63cf,_0x7203c1=new WorkflowUseCommand(),_0x38207d=program['opts'](),_0x2dd8c4=await createTDXInstance(_0x38207d),_0xf39bf8=await _0x7203c1[_0x25e82f(0x2a7)]({'options':{..._0x38207d,..._0x238960},'args':_0x3c6257?[_0x3c6257]:[],'tdx':_0x2dd8c4});gracefulExit(_0xf39bf8);});const wfSecretsCmd=workflowCmd[a2_0x3f63cf(0x3d5)]('secrets')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x19d));wfSecretsCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x225))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x319))[a2_0x3f63cf(0x3a4)](async(_0x41d3be,_0x189747)=>{const _0x5d3a68=a2_0x3f63cf,_0x30177d=new WorkflowSecretsListCommand(),_0x3e8159=program[_0x5d3a68(0x1e5)](),_0x3636f0=await createTDXInstance(_0x3e8159),_0x495201=await _0x30177d[_0x5d3a68(0x2a7)]({'options':{..._0x3e8159,..._0x189747},'args':_0x41d3be?[_0x41d3be]:[],'tdx':_0x3636f0});gracefulExit(_0x495201);}),wfSecretsCmd['command'](a2_0x3f63cf(0x180))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x385))[a2_0x3f63cf(0x3a4)](async(_0x164abb,_0x19b70c)=>{const _0xc8d599=a2_0x3f63cf,_0x24a342=new WorkflowSecretsSetCommand(),_0x15ccaa=program[_0xc8d599(0x1e5)](),_0x805d7c=await createTDXInstance(_0x15ccaa),_0x3a0a68=await _0x24a342[_0xc8d599(0x2a7)]({'options':{..._0x15ccaa,..._0x19b70c},'args':_0x164abb,'tdx':_0x805d7c});gracefulExit(_0x3a0a68);}),wfSecretsCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x38a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x224))[a2_0x3f63cf(0x3a4)](async(_0x2b7cf1,_0x4bbca9)=>{const _0x4c26f6=a2_0x3f63cf,_0x596167=new WorkflowSecretsDeleteCommand(),_0x43029e=program[_0x4c26f6(0x1e5)](),_0x3f39f4=await createTDXInstance(_0x43029e),_0x2ed240=await _0x596167[_0x4c26f6(0x2a7)]({'options':{..._0x43029e,..._0x4bbca9},'args':_0x2b7cf1,'tdx':_0x3f39f4});gracefulExit(_0x2ed240);});const jobCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x216))[a2_0x3f63cf(0x31b)]('Job\x20management\x20commands'),jobListAction=async _0x35dcf=>{const _0x223e8c=a2_0x3f63cf,_0x3b5bed=new JobListCommand(),_0x2aef8c=program[_0x223e8c(0x1e5)](),_0x4099cf=await createTDXInstance(_0x2aef8c),_0x240e76=await _0x3b5bed['run']({'options':{..._0x2aef8c,..._0x35dcf},'args':[],'tdx':_0x4099cf});gracefulExit(_0x240e76);};jobCmd[a2_0x3f63cf(0x3d5)]('list')['description'](a2_0x3f63cf(0x1ee))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x33a),a2_0x3f63cf(0x247))['action'](jobListAction),program[a2_0x3f63cf(0x3d5)]('jobs',{'hidden':!![]})[a2_0x3f63cf(0x31b)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')['option'](a2_0x3f63cf(0x33a),a2_0x3f63cf(0x247))[a2_0x3f63cf(0x3a4)](jobListAction),jobCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2cd))[a2_0x3f63cf(0x31b)]('Show\x20job\x20details')[a2_0x3f63cf(0x3a4)](async(_0x2c4d9c,_0x2e3b1e)=>{const _0x29c3b9=a2_0x3f63cf,_0x268c39=new JobShowCommand(),_0x5a29b0=program[_0x29c3b9(0x1e5)](),_0x5cd679=await createTDXInstance(_0x5a29b0),_0x1e5959=await _0x268c39[_0x29c3b9(0x2a7)]({'options':{..._0x5a29b0,..._0x2e3b1e},'args':[_0x2c4d9c],'tdx':_0x5cd679});gracefulExit(_0x1e5959);}),jobCmd['command'](a2_0x3f63cf(0x2fb))[a2_0x3f63cf(0x31b)]('Kill\x20a\x20job')['action'](async(_0x25c09c,_0x3ae895)=>{const _0x30d0c1=a2_0x3f63cf,_0x408d3c=new JobKillCommand(),_0x390c92=program[_0x30d0c1(0x1e5)](),_0x5b04b8=await createTDXInstance(_0x390c92),_0x330ede=await _0x408d3c['run']({'options':{..._0x390c92,..._0x3ae895},'args':[_0x25c09c],'tdx':_0x5b04b8});gracefulExit(_0x330ede);}),jobCmd[a2_0x3f63cf(0x3d5)]('submit\x20[query]')['description'](a2_0x3f63cf(0x14c))[a2_0x3f63cf(0x1d7)]('--job-type\x20<type>',a2_0x3f63cf(0x3ba),'trino')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x325),a2_0x3f63cf(0x360))['option'](a2_0x3f63cf(0x145),a2_0x3f63cf(0x1a5),'information_schema')[a2_0x3f63cf(0x1d7)]('--result\x20<target>','Result\x20export\x20destination\x20(URL\x20or\x20JSON)')[a2_0x3f63cf(0x3a4)](async(_0x334404,_0x189a41)=>{const _0xac69ce=a2_0x3f63cf,_0x33d7f6=new JobSubmitCommand(),_0x5ec487=program['opts'](),_0x234eb5=await createTDXInstance(_0x5ec487),_0x323e2c=await _0x33d7f6[_0xac69ce(0x2a7)]({'options':{..._0x5ec487,..._0x189a41},'args':_0x334404?[_0x334404]:[],'tdx':_0x234eb5});gracefulExit(_0x323e2c);}),jobCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x254))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x28f))[a2_0x3f63cf(0x3a4)](async(_0x392c54,_0x936a64)=>{const _0xea2ec3=a2_0x3f63cf,_0x1b0585=new JobResultCommand(),_0x3ef359=program[_0xea2ec3(0x1e5)](),_0x4ce3f8=await createTDXInstance(_0x3ef359),_0x5ba0a4=await _0x1b0585[_0xea2ec3(0x2a7)]({'options':{..._0x3ef359,..._0x936a64},'args':[_0x392c54],'tdx':_0x4ce3f8});gracefulExit(_0x5ba0a4);});const scheduleCmd=jobCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x269))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1d9));scheduleCmd[a2_0x3f63cf(0x3d5)]('list\x20[pattern]')['description'](a2_0x3f63cf(0x37c))['action'](async(_0x3993d8,_0x49cf2c)=>{const _0x1779e4=a2_0x3f63cf,_0x5aa700=new ScheduleListCommand(),_0x2a3449=program[_0x1779e4(0x1e5)](),_0x25a353=await createTDXInstance(_0x2a3449),_0x110693=await _0x5aa700['run']({'options':{..._0x2a3449,..._0x49cf2c},'args':_0x3993d8?[_0x3993d8]:[],'tdx':_0x25a353});gracefulExit(_0x110693);}),scheduleCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x303))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x36f))['action'](async(_0x272f3a,_0x169723)=>{const _0x194f6b=a2_0x3f63cf,_0x4b0276=new ScheduleShowCommand(),_0x1ca9c1=program['opts'](),_0x1a42d2=await createTDXInstance(_0x1ca9c1),_0x3be1d8=await _0x4b0276[_0x194f6b(0x2a7)]({'options':{..._0x1ca9c1,..._0x169723},'args':[_0x272f3a],'tdx':_0x1a42d2});gracefulExit(_0x3be1d8);}),scheduleCmd['command'](a2_0x3f63cf(0x16a))[a2_0x3f63cf(0x31b)]('Create\x20a\x20scheduled\x20query')[a2_0x3f63cf(0x1d7)]('-d,\x20--database\x20<db>',a2_0x3f63cf(0x261))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2c3),a2_0x3f63cf(0x262))[a2_0x3f63cf(0x33c)]('-f,\x20--file\x20<path>',a2_0x3f63cf(0x360))[a2_0x3f63cf(0x1d7)]('--type\x20<type>',a2_0x3f63cf(0x323),a2_0x3f63cf(0x1a6))['option'](a2_0x3f63cf(0x156),a2_0x3f63cf(0x352))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28b),a2_0x3f63cf(0x32f))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x39a),a2_0x3f63cf(0x2d0))[a2_0x3f63cf(0x1d7)]('--priority\x20<-2~2>',a2_0x3f63cf(0x184))[a2_0x3f63cf(0x1d7)]('--retry-limit\x20<0~32>',a2_0x3f63cf(0x1c0))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x217),a2_0x3f63cf(0x1c1))[a2_0x3f63cf(0x1d7)]('--result\x20<url>',a2_0x3f63cf(0x32b))[a2_0x3f63cf(0x3a4)](async(_0x5e2c30,_0x26d6fd)=>{const _0x3e826c=a2_0x3f63cf,_0x59ce7b=new ScheduleCreateCommand(),_0x530f43=program[_0x3e826c(0x1e5)](),_0x29022e=await createTDXInstance(_0x530f43);_0x26d6fd['in']&&(_0x26d6fd['database']=_0x26d6fd['in']);const _0x4cb785=await _0x59ce7b['run']({'options':{..._0x530f43,..._0x26d6fd},'args':[_0x5e2c30],'tdx':_0x29022e});gracefulExit(_0x4cb785);}),scheduleCmd[a2_0x3f63cf(0x3d5)]('update\x20<name>')['description']('Update\x20a\x20scheduled\x20query')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x318),'Database\x20name')[a2_0x3f63cf(0x1d7)]('--in\x20<db>',a2_0x3f63cf(0x262))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x325),a2_0x3f63cf(0x360))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x309),a2_0x3f63cf(0x323))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x156),a2_0x3f63cf(0x352))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28b),a2_0x3f63cf(0x25d))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x39a),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1eb),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x313),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x3f63cf(0x1d7)]('--engine-version\x20<version>',a2_0x3f63cf(0x1c1))['option']('--result\x20<url>',a2_0x3f63cf(0x32b))['action'](async(_0x557c48,_0x2b18fc)=>{const _0x3b6dfa=a2_0x3f63cf,_0xd7193d=new ScheduleUpdateCommand(),_0x2bc49d=program[_0x3b6dfa(0x1e5)](),_0x380939=await createTDXInstance(_0x2bc49d);_0x2b18fc['in']&&(_0x2b18fc[_0x3b6dfa(0x163)]=_0x2b18fc['in']);const _0x524967=await _0xd7193d[_0x3b6dfa(0x2a7)]({'options':{..._0x2bc49d,..._0x2b18fc},'args':[_0x557c48],'tdx':_0x380939});gracefulExit(_0x524967);}),scheduleCmd['command'](a2_0x3f63cf(0x3b5))[a2_0x3f63cf(0x31b)]('Delete\x20a\x20scheduled\x20query')['action'](async(_0xd04905,_0x3bbb6b)=>{const _0x2eede8=a2_0x3f63cf,_0x28b76b=new ScheduleDeleteCommand(),_0x4bf9f6=program[_0x2eede8(0x1e5)](),_0x467ed8=await createTDXInstance(_0x4bf9f6),_0xad8fce=await _0x28b76b[_0x2eede8(0x2a7)]({'options':{..._0x4bf9f6,..._0x3bbb6b},'args':[_0xd04905],'tdx':_0x467ed8});gracefulExit(_0xad8fce);}),scheduleCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x210))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1e7))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x342),a2_0x3f63cf(0x32e))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x386),a2_0x3f63cf(0x189))[a2_0x3f63cf(0x3a4)](async(_0x462ba5,_0x123b56)=>{const _0x1f670c=a2_0x3f63cf,_0x23ca61=new ScheduleRunCommand(),_0x113d19=program[_0x1f670c(0x1e5)](),_0x557551=await createTDXInstance(_0x113d19),_0x9144f6=await _0x23ca61[_0x1f670c(0x2a7)]({'options':{..._0x113d19,..._0x123b56},'args':[_0x462ba5],'tdx':_0x557551});gracefulExit(_0x9144f6);}),scheduleCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x161))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x260))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28d),'Starting\x20offset\x20(default:\x200)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2a6),a2_0x3f63cf(0x1e9))['action'](async(_0x4a8c7b,_0x4beb15)=>{const _0x4e0436=a2_0x3f63cf,_0x30b031=new ScheduleHistoryCommand(),_0x5d119c=program[_0x4e0436(0x1e5)](),_0x2374c5=await createTDXInstance(_0x5d119c),_0x3f1365=await _0x30b031[_0x4e0436(0x2a7)]({'options':{..._0x5d119c,..._0x4beb15},'args':[_0x4a8c7b],'tdx':_0x2374c5});gracefulExit(_0x3f1365);});const llmCmd=program[a2_0x3f63cf(0x3d5)]('llm')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x271));llmCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x32a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x223))[a2_0x3f63cf(0x3a4)](async(_0x5efdbe,_0x2f54ef)=>{const _0x3e2b4b=a2_0x3f63cf,_0x1efbac=new LLMUseCommand(),_0x53e812=program[_0x3e2b4b(0x1e5)](),_0x173175=await createTDXInstance(_0x53e812),_0x959327=await _0x1efbac[_0x3e2b4b(0x2a7)]({'options':{..._0x53e812,..._0x2f54ef},'args':[_0x5efdbe],'tdx':_0x173175});gracefulExit(_0x959327);}),llmCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x34a))['description']('List\x20available\x20LLM\x20models')[a2_0x3f63cf(0x3a4)](async _0x48fa2a=>{const _0x2a97dc=a2_0x3f63cf,_0x4dfc87=new LLMModelsCommand(),_0x50e2e7=program[_0x2a97dc(0x1e5)](),_0x2a11ed=await createTDXInstance(_0x50e2e7),_0x15d5e5=await _0x4dfc87[_0x2a97dc(0x2a7)]({'options':{..._0x50e2e7,..._0x48fa2a},'args':[],'tdx':_0x2a11ed});gracefulExit(_0x15d5e5);});const projectCmd=llmCmd['command'](a2_0x3f63cf(0x20a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x312)),llmProjectListAction=async(_0x207633,_0x2311f7)=>{const _0xaaf40c=new LLMProjectsCommand(),_0x4eb8e2=program['opts'](),_0x2c9d1b=await createTDXInstance(_0x4eb8e2),_0x5dcd42=await _0xaaf40c['run']({'options':{..._0x4eb8e2,..._0x2311f7},'args':_0x207633?[_0x207633]:[],'tdx':_0x2c9d1b});gracefulExit(_0x5dcd42);};projectCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2a2))[a2_0x3f63cf(0x3a4)](llmProjectListAction),llmCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x33f))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x253))[a2_0x3f63cf(0x3a4)](llmProjectListAction),projectCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16a))['description']('Create\x20a\x20new\x20LLM\x20project')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c7),a2_0x3f63cf(0x3b2))[a2_0x3f63cf(0x3a4)](async(_0x4822e8,_0x32cadb)=>{const _0x1ab9e0=a2_0x3f63cf,_0x2585b4=new LLMProjectCreateCommand(),_0x50612f=program[_0x1ab9e0(0x1e5)](),_0x14ba73=await createTDXInstance(_0x50612f),_0x27b639=await _0x2585b4['run']({'options':{..._0x50612f,..._0x32cadb},'args':[_0x4822e8],'tdx':_0x14ba73});gracefulExit(_0x27b639);}),projectCmd['command'](a2_0x3f63cf(0x3b5))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x226))[a2_0x3f63cf(0x3a4)](async(_0x3212ce,_0x413064)=>{const _0xe42e00=a2_0x3f63cf,_0x405151=new LLMProjectDeleteCommand(),_0x546b91=program[_0xe42e00(0x1e5)](),_0xa02cfc=await createTDXInstance(_0x546b91),_0x4fa221=await _0x405151[_0xe42e00(0x2a7)]({'options':{..._0x546b91,..._0x413064},'args':[_0x3212ce],'tdx':_0xa02cfc});gracefulExit(_0x4fa221);}),projectCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x344))['description'](a2_0x3f63cf(0x3b4))['option'](a2_0x3f63cf(0x23c),a2_0x3f63cf(0x165))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x2ea))[a2_0x3f63cf(0x3a4)](async(_0x30a0b5,_0x1075c4)=>{const _0x374c66=a2_0x3f63cf,_0xf238a6=new LLMProjectBackupCommand(),_0x3dab33=program[_0x374c66(0x1e5)](),_0x4f720c=await createTDXInstance(_0x3dab33),_0x2e01df=await _0xf238a6[_0x374c66(0x2a7)]({'options':{..._0x3dab33,..._0x1075c4},'args':[_0x30a0b5],'tdx':_0x4f720c});gracefulExit(_0x2e01df);}),projectCmd['command'](a2_0x3f63cf(0x284))[a2_0x3f63cf(0x31b)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')[a2_0x3f63cf(0x1d7)]('--name\x20<new-name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x14d))[a2_0x3f63cf(0x3a4)](async(_0x4e8419,_0x2d77b5)=>{const _0x4b5b27=a2_0x3f63cf,_0x229df8=new LLMProjectRestoreCommand(),_0x311c0a=program[_0x4b5b27(0x1e5)](),_0x30cac8=await createTDXInstance(_0x311c0a),_0x1e2e51=await _0x229df8[_0x4b5b27(0x2a7)]({'options':{..._0x311c0a,..._0x2d77b5},'args':[_0x4e8419],'tdx':_0x30cac8});gracefulExit(_0x1e2e51);});const llmAgentListAction=async(_0x445ca7,_0x4ac970)=>{const _0x1dcdc1=a2_0x3f63cf,_0x4c7e8a=new LLMAgentsCommand(),_0x390e5d=program['opts'](),_0x548c15=await createTDXInstance(_0x390e5d),_0x31fbda=await _0x4c7e8a[_0x1dcdc1(0x2a7)]({'options':{..._0x390e5d,..._0x4ac970},'args':_0x445ca7?[_0x445ca7]:[],'tdx':_0x548c15});gracefulExit(_0x31fbda);};llmCmd['command']('agents\x20[pattern]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x150))[a2_0x3f63cf(0x3a4)](llmAgentListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2b9))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x150))[a2_0x3f63cf(0x3a4)](llmAgentListAction),llmCmd[a2_0x3f63cf(0x3d5)]('history\x20[chat-id]')[a2_0x3f63cf(0x31b)]('Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x206),a2_0x3f63cf(0x278))[a2_0x3f63cf(0x3a4)](async(_0x307756,_0xcfcca3)=>{const _0x2428da=a2_0x3f63cf,_0x4aaab5=new LLMHistoryCommand(),_0x1b0490=program['opts'](),_0x58ba59=await createTDXInstance(_0x1b0490),_0xb79f6e=await _0x4aaab5[_0x2428da(0x2a7)]({'options':{..._0x1b0490,..._0xcfcca3},'args':_0x307756?[_0x307756]:[],'tdx':_0x58ba59});gracefulExit(_0xb79f6e);});isExperimentalAvailable()&&llmCmd[a2_0x3f63cf(0x3d5)]('log\x20<chat-id>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2ed))[a2_0x3f63cf(0x3a4)](async(_0x13b967,_0x37c5a3)=>{const _0x44fded=a2_0x3f63cf,_0x2abefb=new LLMLogCommand(),_0x296527=program[_0x44fded(0x1e5)](),_0x4ffad0=await createTDXInstance(_0x296527),_0x11dad7=await _0x2abefb[_0x44fded(0x2a7)]({'options':{..._0x296527,..._0x37c5a3},'args':[_0x13b967],'tdx':_0x4ffad0});gracefulExit(_0x11dad7);});program['command']('claude\x20[args...]')[a2_0x3f63cf(0x2c6)](a2_0x3f63cf(0x203))[a2_0x3f63cf(0x31b)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1e1),a2_0x3f63cf(0x39b))['option'](a2_0x3f63cf(0x183),a2_0x3f63cf(0x25c))['option']('--no-proxy',a2_0x3f63cf(0x2e5))['allowUnknownOption']()[a2_0x3f63cf(0x1c2)](!![])[a2_0x3f63cf(0x26d)](a2_0x3f63cf(0x26f),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x3f63cf(0x3a4)](async(_0x134e10,_0x36cae5)=>{const _0x2cc2a9=a2_0x3f63cf,_0x580b15=program[_0x2cc2a9(0x1e5)](),_0x25ecdb=Array[_0x2cc2a9(0x294)](_0x134e10)?_0x134e10:[];if(_0x25ecdb[0x0]===_0x2cc2a9(0x1cf)){const _0x5d358c=new ClaudeStatuslineCommand(),_0x566d10=await _0x5d358c[_0x2cc2a9(0x2a7)]({'options':{..._0x580b15,..._0x36cae5},'args':_0x25ecdb[_0x2cc2a9(0x188)](0x1),'tdx':null});gracefulExit(_0x566d10);}if(_0x25ecdb[0x0]===_0x2cc2a9(0x2c6)){const _0x46eeda=new ClaudeUsageCommand(),_0x300eed=await _0x46eeda['run']({'options':{..._0x580b15,..._0x36cae5},'args':_0x25ecdb[_0x2cc2a9(0x188)](0x1),'tdx':null});gracefulExit(_0x300eed);}const _0x9e706=new ClaudeCommand(),_0x2f2ad9=await createTDXInstance(_0x580b15),_0x58aef2=await _0x9e706[_0x2cc2a9(0x2a7)]({'options':{..._0x580b15,..._0x36cae5},'args':_0x25ecdb,'tdx':_0x2f2ad9});gracefulExit(_0x58aef2);}),program[a2_0x3f63cf(0x3d5)]('use\x20[resource]\x20[value]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x39e))['option'](a2_0x3f63cf(0x31a),a2_0x3f63cf(0x1a9))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x26e),a2_0x3f63cf(0x265))[a2_0x3f63cf(0x3a4)](async(_0x76d59,_0x5cf79d,_0x392915)=>{const _0x17844d=a2_0x3f63cf,_0x136983=new UseCommand(),_0x502a2b=program['opts'](),_0x4a1b01=[];if(_0x76d59)_0x4a1b01['push'](_0x76d59);if(_0x5cf79d)_0x4a1b01[_0x17844d(0x231)](_0x5cf79d);const _0x3cd6f8=_0x76d59===_0x17844d(0x192),_0x317bcc=_0x3cd6f8?await createTDXInstance(_0x502a2b):null,_0x53d795=await _0x136983['run']({'options':{..._0x502a2b,..._0x392915},'args':_0x4a1b01,'tdx':_0x317bcc});gracefulExit(_0x53d795);}),program[a2_0x3f63cf(0x3d5)]('status')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x380))[a2_0x3f63cf(0x3a4)](async _0x5cd171=>{const _0x2224cd=a2_0x3f63cf,_0x4cb1b6=new StatusCommand(),_0x42ef3e=program[_0x2224cd(0x1e5)](),_0x1ac18d=await createTDXInstance(_0x42ef3e),_0x379e4d=await _0x4cb1b6[_0x2224cd(0x2a7)]({'options':{..._0x42ef3e,..._0x5cd171},'args':[],'tdx':_0x1ac18d});gracefulExit(_0x379e4d);}),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x13a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2f6))[a2_0x3f63cf(0x1d7)]('--dry-run',a2_0x3f63cf(0x38d))[a2_0x3f63cf(0x1d7)]('--next',a2_0x3f63cf(0x248))[a2_0x3f63cf(0x1d7)]('--method\x20<pm>',a2_0x3f63cf(0x2ad))['action'](async(_0x4a7863,_0x5708a9)=>{const _0xd5728b=a2_0x3f63cf,_0x5e880e=new UpgradeCommand(),_0x452044=program[_0xd5728b(0x1e5)](),_0x5b8330=await _0x5e880e[_0xd5728b(0x2a7)]({'options':{..._0x452044,..._0x5708a9},'args':_0x4a7863?[_0x4a7863]:[],'tdx':null});gracefulExit(_0x5b8330);}),program['command']('unset\x20<resource>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1bd))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x26e),a2_0x3f63cf(0x301))[a2_0x3f63cf(0x3a4)](async(_0x1bf058,_0x41ca74)=>{const _0x2da52a=a2_0x3f63cf,_0x1edaea=new UnsetCommand(),_0x41cb22=program[_0x2da52a(0x1e5)](),_0x13baff=await _0x1edaea[_0x2da52a(0x2a7)]({'options':{..._0x41cb22,..._0x41ca74},'args':[_0x1bf058],'tdx':null});gracefulExit(_0x13baff);}),program[a2_0x3f63cf(0x3d5)]('chats')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x24e))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x206),'Show\x20the\x20most\x20recent\x20chat')[a2_0x3f63cf(0x3a4)](async _0x575646=>{const _0x20f18d=new ChatsCommand(),_0x350ec0=program['opts'](),_0x1cc284=await createTDXInstance(_0x350ec0),_0x21a8a9=await _0x20f18d['run']({'options':{..._0x350ec0,..._0x575646},'args':[],'tdx':_0x1cc284});gracefulExit(_0x21a8a9);});const authCmd=program['command']('auth')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x158));async function runAuthStatusCommand(_0x114a9d){const _0x102ca3=a2_0x3f63cf,_0x2590a4=new AuthStatusCommand(),_0x472827=program[_0x102ca3(0x1e5)](),_0x43b535=await createTDXInstance(_0x472827),_0x4f349b=await _0x2590a4['run']({'options':{..._0x472827,..._0x114a9d},'args':[],'tdx':_0x43b535});gracefulExit(_0x4f349b);}authCmd[a2_0x3f63cf(0x3a4)](runAuthStatusCommand),authCmd['command'](a2_0x3f63cf(0x2c9))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x179))['action'](runAuthStatusCommand),authCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x13c))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2dc))[a2_0x3f63cf(0x26d)](a2_0x3f63cf(0x26f),a2_0x3f63cf(0x173))[a2_0x3f63cf(0x3a4)](async _0x53ac5d=>{const _0x3120bd=a2_0x3f63cf,_0x5145c5=new AuthSetupCommand(),_0x4b16bb=program['opts'](),_0x5aed40=await createTDXInstance(_0x4b16bb),_0x1c9fff=await _0x5145c5[_0x3120bd(0x2a7)]({'options':{..._0x4b16bb,..._0x53ac5d},'args':[],'tdx':_0x5aed40});gracefulExit(_0x1c9fff);}),authCmd['command'](a2_0x3f63cf(0x252))['description'](a2_0x3f63cf(0x30c))[a2_0x3f63cf(0x26d)](a2_0x3f63cf(0x26f),a2_0x3f63cf(0x25a))[a2_0x3f63cf(0x3a4)](async _0x526331=>{const _0x2fd357=a2_0x3f63cf,_0x3cf74c=new AuthClearCommand(),_0x4f2e13=program['opts'](),_0x19a83b=await _0x3cf74c[_0x2fd357(0x2a7)]({'options':{..._0x4f2e13,..._0x526331},'args':[],'tdx':null});gracefulExit(_0x19a83b);});const userCmd=program[a2_0x3f63cf(0x3d5)]('user')[a2_0x3f63cf(0x31b)]('User\x20management\x20commands'),userListAction=async _0x41afaa=>{const _0x5520af=a2_0x3f63cf,_0xab56bd=new UserListCommand(),_0x27111f=program[_0x5520af(0x1e5)](),_0x546155=await createTDXInstance(_0x27111f),_0x3ab237=await _0xab56bd[_0x5520af(0x2a7)]({'options':{..._0x27111f,..._0x41afaa},'args':[],'tdx':_0x546155});gracefulExit(_0x3ab237);};userCmd[a2_0x3f63cf(0x3a4)](async _0x26f379=>{const _0xc2f4eb=a2_0x3f63cf,_0x6cf3c3=new UserCommand(),_0x3aa5b5=program[_0xc2f4eb(0x1e5)](),_0x4d1b6f=await createTDXInstance(_0x3aa5b5),_0x3ac79c=await _0x6cf3c3[_0xc2f4eb(0x2a7)]({'options':{..._0x3aa5b5,..._0x26f379},'args':[],'tdx':_0x4d1b6f});gracefulExit(_0x3ac79c);}),userCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x363))['description']('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1d3))[a2_0x3f63cf(0x31b)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x3f63cf(0x3a4)](userListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2e3))['description'](a2_0x3f63cf(0x2c2))[a2_0x3f63cf(0x3a4)](async _0x57b09b=>{const _0x6e206c=a2_0x3f63cf,_0x247b2d=new ProfilesCommand(),_0x357ab0=program[_0x6e206c(0x1e5)](),_0x478db1=await _0x247b2d[_0x6e206c(0x2a7)]({'options':{..._0x357ab0,..._0x57b09b},'args':[],'tdx':null});gracefulExit(_0x478db1);});const profileCmd=program[a2_0x3f63cf(0x3d5)]('profile')[a2_0x3f63cf(0x31b)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x3f63cf(0x3a4)](()=>{const _0x3bc776=a2_0x3f63cf;profileCmd[_0x3bc776(0x1f3)]();});const profileListAction=async _0x2afc1b=>{const _0x2863ef=a2_0x3f63cf,_0x2b18be=new ProfilesCommand(),_0x234357=program[_0x2863ef(0x1e5)](),_0x3cca4f=await _0x2b18be['run']({'options':{..._0x234357,..._0x2afc1b},'args':[],'tdx':null});gracefulExit(_0x3cca4f);};profileCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x363))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2c2))[a2_0x3f63cf(0x3a4)](profileListAction),profileCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2d8))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x322))[a2_0x3f63cf(0x26d)](a2_0x3f63cf(0x26f),a2_0x3f63cf(0x35c))[a2_0x3f63cf(0x3a4)](async(_0x3a8cef,_0x2c647e)=>{const _0x5629b1=a2_0x3f63cf,_0xa40d0e=new ProfileCreateCommand(),_0xf197d6=program[_0x5629b1(0x1e5)](),_0x1b0553=await _0xa40d0e[_0x5629b1(0x2a7)]({'options':{..._0xf197d6,..._0x2c647e},'args':_0x3a8cef?[_0x3a8cef]:[],'tdx':null});gracefulExit(_0x1b0553);}),profileCmd['command'](a2_0x3f63cf(0x3b9))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1ff))['addHelpText'](a2_0x3f63cf(0x26f),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x3f63cf(0x3a4)](async(_0x105bde,_0x3a1680)=>{const _0x136f58=a2_0x3f63cf,_0x33fd9b=new ProfileRemoveCommand(),_0x244f2d=program[_0x136f58(0x1e5)](),_0x436157=await _0x33fd9b[_0x136f58(0x2a7)]({'options':{..._0x244f2d,..._0x3a1680},'args':[_0x105bde],'tdx':null});gracefulExit(_0x436157);}),profileCmd['command']('set\x20<key=value>')['description'](a2_0x3f63cf(0x3b8))['addHelpText'](a2_0x3f63cf(0x26f),a2_0x3f63cf(0x295))['action'](async(_0x19807a,_0x103967)=>{const _0x482a8d=a2_0x3f63cf,_0x5dbef8=new ProfileSetCommand(),_0x12fab6=program[_0x482a8d(0x1e5)](),_0x3e6121=await _0x5dbef8[_0x482a8d(0x2a7)]({'options':{..._0x12fab6,..._0x103967},'args':[_0x19807a],'tdx':null});gracefulExit(_0x3e6121);}),profileCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x333))[a2_0x3f63cf(0x31b)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')['option'](a2_0x3f63cf(0x26e),a2_0x3f63cf(0x265))['addHelpText']('after',a2_0x3f63cf(0x30d))[a2_0x3f63cf(0x3a4)](async(_0x1a77b5,_0x58ee2e)=>{const _0x2f89ae=a2_0x3f63cf,_0x17696d=new ProfileUseCommand(),_0x508180=program[_0x2f89ae(0x1e5)](),_0x315cb9=await _0x17696d[_0x2f89ae(0x2a7)]({'options':{..._0x508180,..._0x58ee2e},'args':[_0x1a77b5],'tdx':null});gracefulExit(_0x315cb9);});const engageCmd=program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x244))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x3b210a=>{return async(_0xaad6d0,_0x520c14)=>{const _0x5d8356=a2_0x3155,_0x1ac223=new _0x3b210a(),_0x1640a9=program[_0x5d8356(0x1e5)](),_0x5b1feb=await createTDXInstance(_0x1640a9),_0x2dd5c0=await _0x1ac223['run']({'options':{..._0x1640a9,..._0x520c14},'args':[_0xaad6d0],'tdx':_0x5b1feb});gracefulExit(_0x2dd5c0);};},createEngageNoArgAction=_0x33ebf5=>{return async _0x3b39cd=>{const _0x38b430=a2_0x3155,_0x42db69=new _0x33ebf5(),_0x17686e=program[_0x38b430(0x1e5)](),_0x26310c=await createTDXInstance(_0x17686e),_0x58ca73=await _0x42db69[_0x38b430(0x2a7)]({'options':{..._0x17686e,..._0x3b39cd},'args':[],'tdx':_0x26310c});gracefulExit(_0x58ca73);};},createEngageListAction=_0x4ebd48=>{return async(_0x145d16,_0x5cd5fb)=>{const _0x4961f0=a2_0x3155,_0x2518f4=new _0x4ebd48(),_0x271960=program[_0x4961f0(0x1e5)](),_0x9e7cd4=await createTDXInstance(_0x271960),_0x29270c=await _0x2518f4[_0x4961f0(0x2a7)]({'options':{..._0x271960,..._0x5cd5fb},'args':_0x145d16?[_0x145d16]:[],'tdx':_0x9e7cd4});gracefulExit(_0x29270c);};},campaignCmd=engageCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1fa))[a2_0x3f63cf(0x31b)]('Campaign\x20management');campaignCmd[a2_0x3f63cf(0x3d5)]('list\x20[pattern]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1ba))['option'](a2_0x3f63cf(0x309),a2_0x3f63cf(0x297))[a2_0x3f63cf(0x1d7)]('--status\x20<status>',a2_0x3f63cf(0x187))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x21d))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2d7))[a2_0x3f63cf(0x1d7)]('--type\x20<type>',a2_0x3f63cf(0x297))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x33a),a2_0x3f63cf(0x187))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x25e))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x37a))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))['option']('--full',a2_0x3f63cf(0x2de))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1d1))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x34e))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x227),a2_0x3f63cf(0x197))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x309),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x3f63cf(0x1d7)]('--workspace\x20<name>',a2_0x3f63cf(0x376))['option'](a2_0x3f63cf(0x24b),a2_0x3f63cf(0x36b))['option']('--segment\x20<path>',a2_0x3f63cf(0x1c5))['option']('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x3f63cf(0x1d7)]('--json-columns\x20<cols>',a2_0x3f63cf(0x212))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1f9),a2_0x3f63cf(0x2ee))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28b),a2_0x3f63cf(0x27f))[a2_0x3f63cf(0x3a4)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16f))['description'](a2_0x3f63cf(0x259))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),'Workspace\x20name')['option'](a2_0x3f63cf(0x227),a2_0x3f63cf(0x2dd))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x24b),a2_0x3f63cf(0x36b))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x302),a2_0x3f63cf(0x1c5))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x193),a2_0x3f63cf(0x384))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c6),a2_0x3f63cf(0x212))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1f9),a2_0x3f63cf(0x2ee))[a2_0x3f63cf(0x1d7)]('--timezone\x20<tz>',a2_0x3f63cf(0x27f))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1be))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x398))['option']('--workspace\x20<name>',a2_0x3f63cf(0x202))['option']('--yes',a2_0x3f63cf(0x171))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3f63cf(0x3d5)]('launch\x20<name-or-id>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x255))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x176))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x336))[a2_0x3f63cf(0x1d7)]('--workspace\x20<name>',a2_0x3f63cf(0x202))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x29d))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3a5))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x3f63cf(0x26a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1e4))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),'Workspace\x20name')[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x3f63cf(0x3d5)]('pull\x20[workspace-name]')['description'](a2_0x3f63cf(0x166))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x227),a2_0x3f63cf(0x382))[a2_0x3f63cf(0x1d7)]('--type\x20<type>',a2_0x3f63cf(0x297))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x238))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1cb))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x289))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))['option']('--dry-run',a2_0x3f63cf(0x37f))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x36a))['description'](a2_0x3f63cf(0x38b))['option'](a2_0x3f63cf(0x340),a2_0x3f63cf(0x3d2))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd[a2_0x3f63cf(0x3d5)]('template')['description'](a2_0x3f63cf(0x1a4));templateCmd['command'](a2_0x3f63cf(0x364))['description'](a2_0x3f63cf(0x251))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x3f63cf(0x3d5)]('templates\x20[pattern]')['description'](a2_0x3f63cf(0x3ad))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x3f63cf(0x3d5)]('show\x20<name-or-id>')[a2_0x3f63cf(0x31b)]('Show\x20email\x20template\x20details')[a2_0x3f63cf(0x1d7)]('--workspace\x20<name>',a2_0x3f63cf(0x202))['option']('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3f63cf(0x3a4)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x3f63cf(0x1d1))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x35a))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x227),a2_0x3f63cf(0x1e2))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x27a),a2_0x3f63cf(0x306))['option'](a2_0x3f63cf(0x3cf),a2_0x3f63cf(0x315))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2b4),a2_0x3f63cf(0x14a))[a2_0x3f63cf(0x1d7)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1e6),a2_0x3f63cf(0x359))['option']('--editor-type\x20<type>',a2_0x3f63cf(0x1a8),_0x2d64fa=>{const _0x1ee29d=a2_0x3f63cf;if(!['beefree',_0x1ee29d(0x335)][_0x1ee29d(0x1ca)](_0x2d64fa))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20editor\x20type:\x20'+_0x2d64fa+_0x1ee29d(0x3bc));return _0x2d64fa;})[a2_0x3f63cf(0x3a4)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16f))['description'](a2_0x3f63cf(0x266))[a2_0x3f63cf(0x1d7)]('--workspace\x20<name>',a2_0x3f63cf(0x202))[a2_0x3f63cf(0x1d7)]('--name\x20<name>','New\x20template\x20name')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x27a),a2_0x3f63cf(0x306))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3cf),'HTML\x20template\x20content')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2b4),a2_0x3f63cf(0x14a))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1e6),a2_0x3f63cf(0x359))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('delete\x20<name-or-id>')['description'](a2_0x3f63cf(0x24d))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x18d),a2_0x3f63cf(0x171))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageTemplateDeleteCommand));function a2_0x1b31(){const _0x3b2f60=['delete\x20<agent-name>','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','stringify','Preview\x20operation\x20without\x20executing','profiles','argumentTerm','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','push\x20[file]','journey','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Unknown\x20action:\x20','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','error','--interval\x20<range>','[EXPERIMENTAL]\x20Show\x20chat\x20log','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Open\x20segment\x20in\x20web\x20browser','padEnd','--rule-file\x20<file>','show\x20[table]','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','-n,\x20--name\x20<name>','Preview\x20without\x20creating\x20the\x20project','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Path\x20is\x20not\x20a\x20directory:\x20','kill\x20<job-id>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--limit\x20<rows>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--include-subtasks','--include-retried','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','--segment\x20<path>','show\x20<name>','--reason\x20<text>','--workspace\x20<name>','Email\x20subject\x20template','--from\x20<timestamp>','folder','--type\x20<type>','Open\x20parent\x20segment\x20in\x20web\x20browser','push\x20[name]','Remove\x20API\x20key\x20from\x20system\x20keychain','\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','Set\x20operation\x20timeout\x20in\x20seconds','Commands:','--invisible','List\x20email\x20senders','LLM\x20project\x20management','--retry-limit\x20<0~32>','init\x20[name]','HTML\x20template\x20content','--version','Resume\x20from\x20specific\x20task\x20(retry)','-d,\x20--database\x20<db>','List\x20secret\x20keys\x20for\x20a\x20project','--clear','description','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--stage\x20<name>','sql\x20[segment_name]','Pull\x20child\x20segments\x20to\x20YAML\x20files','padWidth','Create\x20a\x20new\x20profile','Query\x20type:\x20trino\x20or\x20hive','--session-time\x20<time>','-f,\x20--file\x20<path>','Resume\x20from\x20specific\x20task','exit','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','use\x20<project-name>','Result\x20output\x20destination\x20URL','--debug','chdir','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Timezone\x20for\x20cron\x20(default:\x20UTC)','Agent\x20prompt/instructions','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Maximum\x20recursion\x20depth\x20(default:\x2010)','use\x20<name>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','grapesjs','Pause\x20a\x20campaign','Read\x20SQL\x20query\x20from\x20file','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Attempt\x20ID','--status\x20<status>','view\x20[segment_name]','requiredOption','desc\x20[name]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','projects\x20[pattern]','--verbose','18IgaCYP','--time\x20<iso8601>','catch','backup\x20<name>','--color','versions\x20<name-or-path>','789020jhxmcW','Pause\x20a\x20running\x20journey','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','models','filter','version','--dry-run','Create\x20a\x20new\x20campaign','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','view\x20<name-or-path>','Make\x20segment\x20invisible\x20(default:\x20visible)','Cron\x20expression\x20for\x20scheduling','--trace','map','Arguments:','\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,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','--param\x20<key=value>','Plaintext\x20template\x20content','Create\x20an\x20email\x20template','Output\x20as\x20JSON\x20Lines','\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','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','segments\x20[path]','push\x20[parent_or_file]','Read\x20query\x20from\x20file','Output\x20file\x20path','--site\x20<site>','list','list\x20[pattern]','--add-behaviors-file\x20<file>','LLM\x20agent\x20management','INFO','0.7','--behaviors\x20<json>','validate\x20[target]','Campaign\x20description','stderr','New\x20workspace\x20name','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Show\x20schedule\x20details','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','api\x20[endpoint]','run\x20[workflow]','Output\x20directory','stdout','segment','Workspace\x20name\x20(required)','required','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','-X,\x20--method\x20<method>','Show\x20campaign\x20details','-a,\x20--agent\x20<name>','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Version\x20number\x20to\x20view','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Show\x20authentication\x20status\x20and\x20current\x20context','sql\x20[name]','Pull\x20specific\x20campaign\x20by\x20name','workflows\x20[project]','Email\x20sender\x20ID\x20for\x20delivery','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','--num\x20<1-10>','Parent\x20folder\x20name\x20for\x20nested\x20folders','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','query\x20[sql]','delete\x20<args...>','Validate\x20campaign\x20YAML\x20files\x20locally','argv','Check\x20for\x20updates\x20without\x20installing','Validate\x20journey\x20YAML\x20files\x20locally','Custom\x20revision\x20name\x20(default:\x20timestamp)','push\x20[path]','Describe\x20table\x20schema','argument','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','Show\x20connection\x20details\x20by\x20name','Show\x20timeline\x20for\x20specific\x20attempt','Show\x20only\x20master\x20table\x20validation','Delete\x20a\x20campaign','Start\x20a\x20new\x20chat\x20session','--delay\x20<seconds>','Continue\x20most\x20recent\x20conversation','[attempt-id]','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','use\x20[project]','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','\x22.\x20Must\x20be\x20a\x20number.','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','action','Resume\x20a\x20paused\x20campaign','Set\x20or\x20show\x20parent\x20segment\x20context','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Revision\x20name\x20(default:\x20timestamp)','argumentDescription','configureHelp','parent_segment','--master','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--name\x20<names>','tsv','--name\x20<new_name>','INVALID_ARGUMENT','Project\x20description','Preview\x20changes\x20without\x20writing\x20files','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','delete\x20<name>','Timezone\x20(e.g.,\x20America/Los_Angeles)','Follow/watch\x20timeline\x20for\x20running\x20attempts','Set\x20a\x20profile\x20configuration\x20value','remove\x20<name>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','--system-prompt\x20<text>','delivery','name','Override\x20project\x20name','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--no-count-population','4385136mTukII','Folder\x20description','Run\x20tests\x20for\x20an\x20LLM\x20agent','--json-columns\x20<cols>','--description\x20<text>','[DEPRECATED]\x20Segment\x20folder\x20management','258611qBXTpy','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','CDP\x20Journey\x20Orchestration\x20commands','--prompt\x20<text>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','attempts\x20[project]','--html\x20<html>','\x20-\x20built\x20','Parse\x20and\x20validate\x20without\x20executing','Show\x20all\x20files\x20including\x20valid\x20ones','Agent\x20description','--enriched','command','--skip-validation','upgrade\x20[version]','4718268AjrjAo','setup','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','buildTime','commands','Show\x20journey\x20statistics','journeys\x20[pattern]','Maximum\x20number\x20of\x20nodes','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','--database\x20<name>','Options:','Table\x20management\x20commands','push\x20[source-dir]','join','Read\x20HTML\x20template\x20from\x20file','--stream','Submit\x20a\x20job','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--params\x20<json>','--add-attributes\x20<json>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','--customer-group\x20<json>','isDirectory','subcommandDescription','logLevel','RT\x202.0\x20configuration\x20management','--cron\x20<expression>','list\x20[name]','Authentication\x20management','--follow','Workspace\x20description','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','--behavior\x20[name]','pull\x20[name]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','1191864xgLDjH','-f,\x20--force','history\x20<name>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','database','gitRevision','Output\x20folder\x20(default:\x20{project_name}.llm)','Pull\x20campaigns\x20to\x20YAML\x20files','pull\x20[parent_or_file]','hidden','Create\x20segment\x20folder','create\x20<name>','Attributes\x20from\x20JSON\x20file','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','29141kqHYww','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','update\x20<name-or-id>','_hidden','Skip\x20confirmation\x20prompt','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','YAML\x20file\x20path\x20for\x20unpushed\x20segment','_list-commands','pause\x20<name-or-id>','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Pull\x20specific\x20revision\x20(default:\x20latest)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Parent\x20segment\x20description','settings\x20<type>','Workspace\x20management','--output\x20<file>','aliases','--behaviors-file\x20<file>','set\x20<args...>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','-r,\x20--resume','Job\x20priority\x20(-2\x20to\x202)','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--limit\x20<number>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','slice','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','show\x20[name]','List\x20activations\x20for\x20a\x20journey','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--yes','summary','Create\x20a\x20workspace','Workflow\x20(Digdag)\x20management\x20commands','types','engage_workspace','--email-sender-id\x20<id>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','alias','Campaign\x20name','create\x20<name-or-path>','Include\x20execution\x20statistics','describe\x20[table]','--max-tool-iterations\x20<n>','workspaces\x20[pattern]','Manage\x20workflow\x20project\x20secrets','-1d','parent-segment','Name\x20for\x20the\x20new\x20project\x20(required)','--json','--attributes-file\x20<file>','[task-name]','Email\x20template\x20management','Database\x20name\x20(default:\x20information_schema)','trino','List\x20all\x20data\x20connections','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','Clear\x20session\x20context','--data\x20<data>','attempt:','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<segment_name>','Clear\x20workflow\x20project\x20context','--to\x20<timestamp>','download\x20<project-name>\x20[output-dir]','Show\x20master\x20table\x20sample\x20data','jsonl','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','connections','Workflow\x20attempt\x20management','-v,\x20--verbose','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','logs','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Include\x20retried\x20attempts','Updated\x20description','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','delete\x20<name-or-id>','Skip\x20population\x20counting','Retry\x20limit\x20(0\x20to\x2032)','Query\x20engine\x20version','allowExcessArguments','-w,\x20--web','preview\x20[name]','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','AI-native\x20CLI\x20for\x20Treasure\x20Data','Maximum\x20tool\x20iterations\x20(default:\x204)','...','--timeout\x20<seconds>','includes','push\x20[target]','Overwrite\x20local\x20changes\x20without\x20confirmation','Task\x20name\x20for\x20logs\x20action','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','statusline','Personalization\x20service\x20management','create','LLM\x20project\x20to\x20use\x20(overrides\x20context)','users','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','run\x20[name]','registeredArguments','option','mcp','Scheduled\x20query\x20management\x20commands','DEBUG','parents\x20[pattern]','update\x20<name>','directory','activations\x20<name-or-path>','Skip\x20confirmation\x20prompts','List\x20journeys\x20in\x20current\x20context','-c,\x20--continue','Template\x20name','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Duplicate\x20a\x20campaign','opts','--plaintext\x20<text>','Run\x20a\x20scheduled\x20query\x20immediately','New\x20segment\x20name','Ending\x20offset\x20(default:\x2020)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','--priority\x20<-2~2>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Usage:\x20','List\x20jobs','stats\x20<name-or-path>','Add\x20behaviors\x20as\x20JSON\x20string','--to\x20<date>','then','outputHelp','Model\x20type\x20(default:\x20claude-4.5-sonnet)','noColor','--model\x20<name>','Force\x20retry\x20even\x20if\x20not\x20failed','forEach','--start-at\x20<datetime>','campaign','Run\x20Trino\x20query\x20with\x20streaming\x20results','describe','End\x20time\x20filter\x20(ISO\x208601\x20format)','--rule\x20<json>','Remove\x20a\x20profile','validate\x20[name]','options','Workspace\x20name','[options]\x20--\x20[claude-code-args...]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--last','Request\x20body\x20as\x20JSON\x20string',',\x20version\x20','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','project','subcommandTerm','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--attempt-id\x20<id>','CDP\x20segment\x20management\x20commands','--in\x20<database>','run\x20<name>','Include\x20raw\x20history\x20data\x20in\x20output','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--folder\x20<name>','claude-4.5-sonnet','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','job','--engine-version\x20<version>','Customer\x20group\x20as\x20JSON\x20string','--database\x20<db>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--kind\x20<type>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','campaigns\x20[pattern]','--catalog\x20<catalog>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Filtering\x20rule\x20from\x20JSON\x20file','Change\x20to\x20directory\x20before\x20executing\x20command','--schedule-option\x20<value>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','list\x20[project]','Delete\x20an\x20LLM\x20project','--name\x20<name>','--jsonl','Open\x20journey\x20in\x20web\x20browser','format','clone\x20[source]','--customer-group-file\x20<file>','List\x20agents\x20in\x20current\x20project','Invalid\x20--limit\x20value:\x20\x22','--llm-project\x20<name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','push','resume\x20<name-or-path>','Trino\x20catalog\x20(default:\x20td)','Include\x20subtasks\x20in\x20tasks\x20output','--force','--add-attributes-file\x20<file>','isTTY','Show\x20what\x20would\x20be\x20written\x20without\x20writing','apiKey','us01','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','-o,\x20--output\x20<folder>','--attribute\x20[name]','columns\x20<name-or-path>','Resume\x20a\x20paused\x20journey','--delete','list\x20[path]','Update\x20a\x20workspace','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','engage','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','variadic','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--max-depth\x20<depth>','--description\x20<desc>','sessions\x20[project]','Delete\x20an\x20email\x20template','Interactive\x20chat\x20selector','Folder\x20name\x20for\x20organization','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','clear','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','result\x20<job-id>','Launch\x20a\x20campaign','chat\x20[message...]','--schedule-type\x20<type>','--version\x20<number>','Update\x20a\x20campaign','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Resume\x20a\x20conversation\x20(shows\x20selector)','Timezone\x20for\x20cron','show\x20<name-or-id>','GET','Show\x20schedule\x20execution\x20history','Database\x20name\x20(required)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Limit\x20number\x20of\x20rows','Output\x20as\x20JSON','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Update\x20an\x20email\x20template','List\x20available\x20connector\x20types','Pull\x20workflow\x20project\x20to\x20local\x20folder','schedule','duplicate\x20<name-or-id>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','-y,\x20--yes','addHelpText','--default','after','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','table','--new','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','flatMap','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--table','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20segment\x20details\x20(alias\x20for\x20view)','--subject\x20<subject>','Filtering\x20rule\x20as\x20JSON\x20string','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','--parent-segment\x20<name>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Behaviors\x20as\x20JSON\x20string','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Show\x20journey\x20details','Add\x20behaviors\x20from\x20JSON\x20file','restore\x20<folder>','-C,\x20--directory\x20<path>','session','Customer\x20group\x20from\x20JSON\x20file','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','optionDescription','--timezone\x20<tz>','--starter-message\x20<text>','--from\x20<n>','--session-id\x20<id>','Get\x20job\x20results','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Updated\x20schedule\x20option','Push\x20without\x20confirmation','Database\x20management\x20commands','isArray','\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','length','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','1945540IWraju','Reason\x20for\x20killing\x20the\x20attempt','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--revision\x20<revision>','fields\x20[parent_name]','resume\x20<name-or-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','-o,\x20--output\x20<file>','use\x20[name]','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','-d,\x20--database\x20<database>','parent','Database\x20to\x20query\x20(default:\x20information_schema)','--to\x20<n>','run','--resume-from\x20<task>','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','log','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Data\x20connection\x20management\x20(for\x20activations/exports)','--tsv','fields\x20[name]','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','--attributes\x20<json>','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--html-file\x20<path>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','preAction','senders\x20[pattern]','Updated\x20timezone','agents\x20[pattern]','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','schema\x20<type>','upload\x20[project-name-or-dir]','--reeval','2IyECfu','--agent\x20<ref>','-u,\x20--use','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','List\x20all\x20available\x20profiles','--in\x20<db>','tasks','Delete\x20an\x20agent','usage','Preview\x20changes\x20without\x20pushing','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','status','tdx','Journey\x20version\x20management','injectIntoOptions','show\x20<job-id>','-o,\x20--output\x20<dir>','Move\x20to\x20folder','Delay\x20in\x20seconds\x20before\x20execution','validate\x20[file]','--limit\x20<n>','desc','-r,\x20--recursive','Run\x20specific\x20tests\x20(comma-separated)','--parent-folder\x20<name>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','create\x20[name]','colorFn','Skip\x20validation\x20of\x20.dig\x20files','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Setup\x20API\x20key\x20authentication\x20interactively','New\x20campaign\x20name','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields'];a2_0x1b31=function(){return _0x3b2f60;};return a2_0x1b31();}const workspaceCmd=engageCmd['command']('workspace')['description'](a2_0x3f63cf(0x17c));workspaceCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x172))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x19c))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x34f))[a2_0x3f63cf(0x3a4)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd['command'](a2_0x3f63cf(0x25e))[a2_0x3f63cf(0x31b)]('Show\x20workspace\x20details')[a2_0x3f63cf(0x1d7)]('--full',a2_0x3f63cf(0x2de))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1d1))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x18f))[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x227),a2_0x3f63cf(0x202))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x24b),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16f))['description'](a2_0x3f63cf(0x242))[a2_0x3f63cf(0x1d7)]('--name\x20<name>',a2_0x3f63cf(0x36d))['option'](a2_0x3f63cf(0x24b),a2_0x3f63cf(0x15a))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1be))[a2_0x3f63cf(0x31b)]('Delete\x20a\x20workspace')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x18d),a2_0x3f63cf(0x171))[a2_0x3f63cf(0x3a4)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x333))[a2_0x3f63cf(0x31b)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x3f63cf(0x3a4)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program['command'](a2_0x3f63cf(0x3be))['description']('Delivery\x20operations\x20(email\x20senders)');deliveryCmd['command'](a2_0x3f63cf(0x2b7))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x311))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x305),'Workspace\x20name')[a2_0x3f63cf(0x3a4)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x3f63cf(0x3d5)]('connection')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2ae)),connectionListAction=async _0xbcaff4=>{const _0x62c5a2=a2_0x3f63cf,_0x20e58d=new ConnectionListCommand(),_0x1a43dd=program['opts'](),_0x1da657=await createTDXInstance(_0x1a43dd),_0x275690=await _0x20e58d[_0x62c5a2(0x2a7)]({'options':{..._0x1a43dd,..._0xbcaff4},'args':[],'tdx':_0x1da657});gracefulExit(_0x275690);};connectionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x363))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1a7))[a2_0x3f63cf(0x3a4)](connectionListAction),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1b5),{'hidden':!![]})['description'](a2_0x3f63cf(0x3ca))[a2_0x3f63cf(0x3a4)](connectionListAction),connectionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x303))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x395))[a2_0x3f63cf(0x3a4)](async(_0x23ce9a,_0x5c80c0)=>{const _0x13f4ad=a2_0x3f63cf,_0x4b4b6b=new ConnectionShowCommand(),_0x3096d4=program[_0x13f4ad(0x1e5)](),_0x574cd3=await createTDXInstance(_0x3096d4),_0x3e7596=await _0x4b4b6b[_0x13f4ad(0x2a7)]({'options':{..._0x3096d4,..._0x5c80c0},'args':[_0x23ce9a],'tdx':_0x574cd3});gracefulExit(_0x3e7596);}),connectionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x2bb))[a2_0x3f63cf(0x31b)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x3f63cf(0x3a4)](async(_0x5b7e78,_0x3f7935)=>{const _0x34fd11=a2_0x3f63cf,_0x39e210=new ConnectionSchemaCommand(),_0xb4b1bb=program[_0x34fd11(0x1e5)](),_0xffd9dd=await createTDXInstance(_0xb4b1bb),_0x5c2bfd=await _0x39e210[_0x34fd11(0x2a7)]({'options':{..._0xb4b1bb,..._0x3f7935},'args':[_0x5b7e78],'tdx':_0xffd9dd});gracefulExit(_0x5c2bfd);}),connectionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x191))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x267))[a2_0x3f63cf(0x3a4)](async _0x4b8c8a=>{const _0x13400=a2_0x3f63cf,_0x2cc5fe=new ConnectionTypesCommand(),_0xac6764=program[_0x13400(0x1e5)](),_0x43af58=await createTDXInstance(_0xac6764),_0x3e19b3=await _0x2cc5fe['run']({'options':{..._0xac6764,..._0x4b8c8a},'args':[],'tdx':_0x43af58});gracefulExit(_0x3e19b3);}),connectionCmd['command'](a2_0x3f63cf(0x17b))['description']('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x3f63cf(0x3a4)](async(_0x42bdf2,_0x367529)=>{const _0x18abcb=a2_0x3f63cf,_0x380a57=new ConnectionSettingsCommand(),_0x22a043=program[_0x18abcb(0x1e5)](),_0x1d475a=await createTDXInstance(_0x22a043),_0x5506fb=await _0x380a57['run']({'options':{..._0x22a043,..._0x367529},'args':[_0x42bdf2],'tdx':_0x1d475a});gracefulExit(_0x5506fb);});const journeyCmd=program['command'](a2_0x3f63cf(0x2e7))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x3cb)),journeyListAction=async(_0x481e84,_0x30da84)=>{const _0x8de776=a2_0x3f63cf,_0x3e60fc=new JourneyListCommand(),_0x49ada4=program[_0x8de776(0x1e5)](),_0x5f5e08=await createTDXInstance(_0x49ada4),_0x13f496=await _0x3e60fc[_0x8de776(0x2a7)]({'options':{..._0x49ada4,..._0x30da84},'args':_0x481e84?[_0x481e84]:[],'tdx':_0x5f5e08});gracefulExit(_0x13f496);};journeyCmd['command'](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x1e0))[a2_0x3f63cf(0x3a4)](journeyListAction),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x350))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x282))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1c3),a2_0x3f63cf(0x229))['option']('--include-stats',a2_0x3f63cf(0x199))[a2_0x3f63cf(0x3a4)](async(_0x57fb87,_0x5630a6)=>{const _0x5a2f19=a2_0x3f63cf,_0x3ac7b7=new JourneyViewCommand(),_0x27739d=program[_0x5a2f19(0x1e5)](),_0x5a41fe=await createTDXInstance(_0x27739d),_0x53ff68=await _0x3ac7b7[_0x5a2f19(0x2a7)]({'options':{..._0x27739d,..._0x5630a6},'args':[_0x57fb87],'tdx':_0x5a41fe});gracefulExit(_0x53ff68);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1ef))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x141))['option'](a2_0x3f63cf(0x31e),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x3f63cf(0x1d7)]('--from\x20<date>',a2_0x3f63cf(0x394))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1f1),a2_0x3f63cf(0x2ba))[a2_0x3f63cf(0x1d7)]('--include-history',a2_0x3f63cf(0x211))[a2_0x3f63cf(0x3a4)](async(_0x267f8e,_0x46803e)=>{const _0xa4ea7b=a2_0x3f63cf,_0x33901a=new JourneyStatsCommand(),_0x16dd6a=program[_0xa4ea7b(0x1e5)](),_0x4a20c3=await createTDXInstance(_0x16dd6a),_0x73ce9f=await _0x33901a[_0xa4ea7b(0x2a7)]({'options':{..._0x16dd6a,..._0x46803e},'args':[_0x267f8e],'tdx':_0x4a20c3});gracefulExit(_0x73ce9f);}),journeyCmd['command']('traffic\x20<name-or-path>')['description']('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x309),a2_0x3f63cf(0x2b1))[a2_0x3f63cf(0x1d7)]('--from\x20<date>',a2_0x3f63cf(0x394))['option'](a2_0x3f63cf(0x1f1),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x3f63cf(0x1d7)]('--limit\x20<number>',a2_0x3f63cf(0x143),_0xeefc64=>{const _0x403891=a2_0x3f63cf,_0x5df3b7=parseInt(_0xeefc64,0xa);if(isNaN(_0x5df3b7))throw new Error(_0x403891(0x22e)+_0xeefc64+_0x403891(0x3a2));return _0x5df3b7;})[a2_0x3f63cf(0x3a4)](async(_0xda1b24,_0x3f90a9)=>{const _0x29152e=a2_0x3f63cf,_0xf6841f=new JourneyTrafficCommand(),_0xf27f24=program[_0x29152e(0x1e5)](),_0x5ce750=await createTDXInstance(_0xf27f24),_0x9efe5e=await _0xf6841f[_0x29152e(0x2a7)]({'options':{..._0xf27f24,..._0x3f90a9},'args':[_0xda1b24],'tdx':_0x5ce750});gracefulExit(_0x9efe5e);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x348))['action'](async(_0x12d1df,_0x4d1118)=>{const _0x329c02=a2_0x3f63cf,_0x1df17a=new JourneyPauseCommand(),_0xb53af5=program[_0x329c02(0x1e5)](),_0x588035=await createTDXInstance(_0xb53af5),_0x5c0e31=await _0x1df17a['run']({'options':{..._0xb53af5,..._0x4d1118},'args':[_0x12d1df],'tdx':_0x588035});gracefulExit(_0x5c0e31);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x232))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x23f))[a2_0x3f63cf(0x3a4)](async(_0x12f480,_0x352fea)=>{const _0x5a78ea=a2_0x3f63cf,_0x4dc16c=new JourneyResumeCommand(),_0x45ab59=program[_0x5a78ea(0x1e5)](),_0x1bf9a9=await createTDXInstance(_0x45ab59),_0x24fcef=await _0x4dc16c[_0x5a78ea(0x2a7)]({'options':{..._0x45ab59,..._0x352fea},'args':[_0x12f480],'tdx':_0x1bf9a9});gracefulExit(_0x24fcef);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x15d))['description']('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x2a1))['action'](async(_0x564931,_0x51fbe5)=>{const _0x4e1d59=a2_0x3f63cf,_0x5158f8=new JourneyPullCommand(),_0x1f5cb3=program[_0x4e1d59(0x1e5)](),_0x11d4e1=await createTDXInstance(_0x1f5cb3),_0x2a90a3=await _0x5158f8['run']({'options':{..._0x1f5cb3,..._0x51fbe5},'args':_0x564931?[_0x564931]:[],'tdx':_0x11d4e1});gracefulExit(_0x2a90a3);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1cb))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x349))['action'](async(_0x2474d5,_0x26d3bb)=>{const _0x402cb5=a2_0x3f63cf,_0x96b6d2=new JourneyPushCommand(),_0x32edc9=program[_0x402cb5(0x1e5)](),_0x335c9f=await createTDXInstance(_0x32edc9),_0x18b83a=await _0x96b6d2[_0x402cb5(0x2a7)]({'options':{..._0x32edc9,..._0x26d3bb},'args':_0x2474d5?[_0x2474d5]:[],'tdx':_0x335c9f});gracefulExit(_0x18b83a);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x23e))['description']('Show\x20journey\x20table\x20column-to-step\x20mapping')['action'](async(_0x3b0b03,_0x897c15)=>{const _0x13a771=a2_0x3f63cf,_0x376980=new JourneyColumnsCommand(),_0x3487f5=program['opts'](),_0xbf39ce=await createTDXInstance(_0x3487f5),_0x3cdf80=await _0x376980[_0x13a771(0x2a7)]({'options':{..._0x3487f5,..._0x897c15},'args':[_0x3b0b03],'tdx':_0xbf39ce});gracefulExit(_0x3cdf80);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x1de))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x18b))[a2_0x3f63cf(0x3a4)](async(_0x36b72d,_0x2a811d)=>{const _0x22b0c6=new JourneyActivationsCommand(),_0x59119d=program['opts'](),_0x27271d=await createTDXInstance(_0x59119d),_0xc179ce=await _0x22b0c6['run']({'options':{..._0x59119d,..._0x2a811d},'args':[_0x36b72d],'tdx':_0x27271d});gracefulExit(_0xc179ce);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x346))['description']('List\x20all\x20versions\x20of\x20a\x20journey')[a2_0x3f63cf(0x3a4)](async(_0x35a4e7,_0x7cb98c)=>{const _0x3162ef=a2_0x3f63cf,_0xee9ae=new JourneyVersionsCommand(),_0x49157b=program[_0x3162ef(0x1e5)](),_0x57c529=await createTDXInstance(_0x49157b),_0x69ea37=await _0xee9ae[_0x3162ef(0x2a7)]({'options':{..._0x49157b,..._0x7cb98c},'args':[_0x35a4e7],'tdx':_0x57c529});gracefulExit(_0x69ea37);});const journeyVersionCmd=journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x34c))['description'](a2_0x3f63cf(0x2cb));journeyVersionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x198))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2c1))['action'](async(_0x8eabb4,_0x51879b)=>{const _0x195486=a2_0x3f63cf,_0x406476=new JourneyVersionCreateCommand(),_0x464a38=program[_0x195486(0x1e5)](),_0x4e6f22=await createTDXInstance(_0x464a38),_0x119b74=await _0x406476[_0x195486(0x2a7)]({'options':{..._0x464a38,..._0x51879b},'args':[_0x8eabb4],'tdx':_0x4e6f22});gracefulExit(_0x119b74);}),journeyVersionCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x350))['description']('View\x20a\x20specific\x20version\x20of\x20a\x20journey')[a2_0x3f63cf(0x33c)](a2_0x3f63cf(0x258),a2_0x3f63cf(0x37d))['action'](async(_0x261944,_0x421325)=>{const _0x3e4908=a2_0x3f63cf,_0x5428c4=new JourneyVersionViewCommand(),_0xc094cc=program[_0x3e4908(0x1e5)](),_0x3e683f=await createTDXInstance(_0xc094cc),_0x4866e0=await _0x5428c4[_0x3e4908(0x2a7)]({'options':{..._0xc094cc,..._0x421325},'args':[_0x261944],'tdx':_0x3e683f});gracefulExit(_0x4866e0);}),journeyCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x36a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x38e))[a2_0x3f63cf(0x3a4)](async(_0x174a23,_0x34cc01)=>{const _0x149e9c=a2_0x3f63cf,_0x3a784f=new JourneyValidateCommand(),_0x17fdc2=program[_0x149e9c(0x1e5)](),_0x444fb2=await createTDXInstance(_0x17fdc2),_0x45b260=await _0x3a784f[_0x149e9c(0x2a7)]({'options':{..._0x17fdc2,..._0x34cc01},'args':_0x174a23?[_0x174a23]:[],'tdx':_0x444fb2});gracefulExit(_0x45b260);}),program['command'](a2_0x3f63cf(0x142))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x177))[a2_0x3f63cf(0x3a4)](journeyListAction);const agentSyncCmd=program[a2_0x3f63cf(0x3d5)]('agent')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x366));agentSyncCmd[a2_0x3f63cf(0x3d5)]('pull\x20[project]\x20[agent-name]')[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x29e))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2ce),a2_0x3f63cf(0x373))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x160),a2_0x3f63cf(0x1cc))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x37b),a2_0x3f63cf(0x357))['action'](async(_0x5ea633,_0x56b1f7,_0x2448c3)=>{const _0x3eaa4f=a2_0x3f63cf,_0x4ab623=new AgentPullCommand(),_0x371b9f=program[_0x3eaa4f(0x1e5)](),_0x4add74=await createTDXInstance(_0x371b9f),_0x2c3673=[];if(_0x5ea633)_0x2c3673[_0x3eaa4f(0x231)](_0x5ea633);if(_0x56b1f7)_0x2c3673[_0x3eaa4f(0x231)](_0x56b1f7);const _0x2b7193=await _0x4ab623[_0x3eaa4f(0x2a7)]({'options':{..._0x371b9f,..._0x2448c3},'args':_0x2c3673,'tdx':_0x4add74});gracefulExit(_0x2b7193);}),agentSyncCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x390))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x144))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x160),a2_0x3f63cf(0x292))[a2_0x3f63cf(0x3a4)](async(_0x298ed6,_0x5c3c73)=>{const _0x42f7ee=a2_0x3f63cf,_0x21c499=new AgentPushCommand(),_0x189087=program[_0x42f7ee(0x1e5)](),_0x1413c9=await createTDXInstance(_0x189087),_0x33f639=await _0x21c499[_0x42f7ee(0x2a7)]({'options':{..._0x189087,..._0x5c3c73},'args':_0x298ed6?[_0x298ed6]:[],'tdx':_0x1413c9});gracefulExit(_0x33f639);}),agentSyncCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x22b))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x2fc))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2f4),a2_0x3f63cf(0x1a0))['action'](async(_0x300ee6,_0x4a1e98)=>{const _0x53d89f=a2_0x3f63cf,_0x33d1d0=new AgentCloneCommand(),_0x4e57fc=program[_0x53d89f(0x1e5)](),_0x3cdd93=await createTDXInstance(_0x4e57fc),_0x2b38d9=await _0x33d1d0[_0x53d89f(0x2a7)]({'options':{..._0x4e57fc,..._0x4a1e98},'args':_0x300ee6?[_0x300ee6]:[],'tdx':_0x3cdd93});gracefulExit(_0x2b38d9);}),agentSyncCmd['command']('test\x20[path]')['description'](a2_0x3f63cf(0x3c5))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3ae),a2_0x3f63cf(0x2d5))['option']('--tags\x20<tags>',a2_0x3f63cf(0x36e))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x34d),a2_0x3f63cf(0x3d1))[a2_0x3f63cf(0x1d7)]('--no-eval','Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x2bd),a2_0x3f63cf(0x182))[a2_0x3f63cf(0x3a4)](async(_0x2a956a,_0x540e67)=>{const _0x4f91fa=a2_0x3f63cf,_0x3a3023=new AgentTestCommand(),_0x404391=program[_0x4f91fa(0x1e5)](),_0xa29985=await createTDXInstance(_0x404391),_0x23ccef=await _0x3a3023[_0x4f91fa(0x2a7)]({'options':{..._0x404391,..._0x540e67},'args':_0x2a956a?[_0x2a956a]:[],'tdx':_0xa29985});gracefulExit(_0x23ccef);}),agentSyncCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x364))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x22d))[a2_0x3f63cf(0x3a4)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x3f63cf(0x31b)]('Show\x20agent\x20details')['action'](async(_0x49915,_0x244a16)=>{const _0x107864=a2_0x3f63cf,_0x156d7b=new LLMAgentShowCommand(),_0x248397=program[_0x107864(0x1e5)](),_0x755129=await createTDXInstance(_0x248397),_0x4d63c3=await _0x156d7b[_0x107864(0x2a7)]({'options':{..._0x248397,..._0x244a16},'args':[_0x49915],'tdx':_0x755129});gracefulExit(_0x4d63c3);}),agentSyncCmd[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x16a))[a2_0x3f63cf(0x31b)](a2_0x3f63cf(0x290))['option'](a2_0x3f63cf(0x3bd),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x1f6),a2_0x3f63cf(0x1f4),a2_0x3f63cf(0x214))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28c),'Starter\x20message')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x19b),a2_0x3f63cf(0x1c7),'4')[a2_0x3f63cf(0x1d7)]('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x3f63cf(0x368))[a2_0x3f63cf(0x3a4)](async(_0x13f33a,_0x10018f)=>{const _0x3586fd=a2_0x3f63cf,_0x5cf22d=new LLMAgentCreateCommand(),_0x222225=program['opts'](),_0x15517b=await createTDXInstance(_0x222225),_0x23a346=await _0x5cf22d[_0x3586fd(0x2a7)]({'options':{..._0x222225,..._0x10018f},'args':[_0x13f33a],'tdx':_0x15517b});gracefulExit(_0x23a346);}),agentSyncCmd[a2_0x3f63cf(0x3d5)]('update\x20<agent-name>')[a2_0x3f63cf(0x31b)]('Update\x20an\x20existing\x20agent')[a2_0x3f63cf(0x1d7)]('--name\x20<text>','Agent\x20name')[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3cc),a2_0x3f63cf(0x330))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x3c7),a2_0x3f63cf(0x3d3))[a2_0x3f63cf(0x1d7)](a2_0x3f63cf(0x28c),'Starter\x20message')[a2_0x3f63cf(0x3a4)](async(_0x41f949,_0x5a86e6)=>{const _0x51b463=a2_0x3f63cf,_0x9804e0=new LLMAgentUpdateCommand(),_0x5a9950=program[_0x51b463(0x1e5)](),_0xf06689=await createTDXInstance(_0x5a9950),_0xe00ac3=await _0x9804e0[_0x51b463(0x2a7)]({'options':{..._0x5a9950,..._0x5a86e6},'args':[_0x41f949],'tdx':_0xf06689});gracefulExit(_0xe00ac3);}),agentSyncCmd['command'](a2_0x3f63cf(0x2df))['description'](a2_0x3f63cf(0x2c5))[a2_0x3f63cf(0x3a4)](async(_0x30f029,_0x3eea2c)=>{const _0x5a797a=a2_0x3f63cf,_0x131268=new LLMAgentDeleteCommand(),_0x47ee98=program[_0x5a797a(0x1e5)](),_0x4a5681=await createTDXInstance(_0x47ee98),_0x47672b=await _0x131268[_0x5a797a(0x2a7)]({'options':{..._0x47ee98,..._0x3eea2c},'args':[_0x30f029],'tdx':_0x4a5681});gracefulExit(_0x47672b);}),program[a2_0x3f63cf(0x3d5)](a2_0x3f63cf(0x175),{'hidden':!![]})[a2_0x3f63cf(0x3a4)](()=>{const _0x12e02d=a2_0x3f63cf;function _0x344d79(_0x2cce58,_0x4bbabd){const _0x3e0daa=a2_0x3155,_0x2e2e0d=[];for(const _0x261ae8 of _0x2cce58['commands']){if(_0x261ae8[_0x3e0daa(0x170)])continue;const _0x411057=_0x4bbabd?_0x4bbabd+'\x20'+_0x261ae8[_0x3e0daa(0x3bf)]():_0x261ae8['name'](),_0x526c8c=_0x411057['split']('\x20')[0x0],_0x40b4e4=COMMAND_CATEGORIES['find'](_0x4fda2e=>_0x4fda2e[_0x3e0daa(0x140)][_0x3e0daa(0x1ca)](_0x526c8c)),_0x35b577=_0x40b4e4?.[_0x3e0daa(0x3bf)]??'';if(_0x261ae8[_0x3e0daa(0x140)]['length']>0x0)_0x2e2e0d[_0x3e0daa(0x231)](..._0x344d79(_0x261ae8,_0x411057));else{const _0x805f10=(_0x261ae8[_0x3e0daa(0x1d6)]||[])[_0x3e0daa(0x354)](_0x5747a5=>{const _0x350e16=_0x3e0daa,_0x1c57ba=_0x5747a5[_0x350e16(0x246)]?_0x5747a5[_0x350e16(0x3bf)]()+_0x350e16(0x1c8):_0x5747a5[_0x350e16(0x3bf)]();return _0x5747a5[_0x350e16(0x377)]?'<'+_0x1c57ba+'>':'['+_0x1c57ba+']';})[_0x3e0daa(0x149)]('\x20'),_0x1216f2=_0x261ae8['options'][_0x3e0daa(0x34b)](_0x19856a=>!_0x19856a[_0x3e0daa(0x168)]&&_0x19856a['long']!=='--help')[_0x3e0daa(0x354)](_0x5262d7=>({'flags':_0x5262d7['flags'],'description':_0x5262d7[_0x3e0daa(0x31b)]}));_0x2e2e0d['push']({'name':_0x411057,'description':_0x261ae8[_0x3e0daa(0x31b)](),'group':_0x35b577,'usage':_0x805f10,'options':_0x1216f2});}}return _0x2e2e0d;}console[_0x12e02d(0x2aa)](JSON[_0x12e02d(0x2e1)](_0x344d79(program,''))),process[_0x12e02d(0x327)](0x0);});export{program};export function runCLI(){const _0x5aa6da=a2_0x3f63cf,_0x4f2e96=!process[_0x5aa6da(0x38c)][_0x5aa6da(0x188)](0x2)[_0x5aa6da(0x296)];showBriefHelp=_0x4f2e96,program['parse'](process[_0x5aa6da(0x38c)]);_0x4f2e96&&program[_0x5aa6da(0x1f3)]();const _0x5a8312=process[_0x5aa6da(0x38c)][0x2]==='upgrade';if(process[_0x5aa6da(0x36c)]['isTTY']&&process[_0x5aa6da(0x38c)][_0x5aa6da(0x296)]>0x2&&!isDevVersion()&&!_0x5a8312){const _0xd8243e=loadReleaseChannel();checkForUpdate(currentVersion,_0xd8243e)[_0x5aa6da(0x1f2)](_0x5e5883=>{_0x5e5883&&displayUpdateNotification(_0x5e5883);})[_0x5aa6da(0x343)](()=>{});}}
1
+ const a2_0x52af75=a2_0x1937;(function(_0x4994ad,_0xdb1e62){const _0x4f18f9=a2_0x1937,_0x471867=_0x4994ad();while(!![]){try{const _0x3dac1c=-parseInt(_0x4f18f9(0x264))/0x1*(parseInt(_0x4f18f9(0x1d6))/0x2)+parseInt(_0x4f18f9(0x330))/0x3+-parseInt(_0x4f18f9(0x354))/0x4+-parseInt(_0x4f18f9(0x230))/0x5+parseInt(_0x4f18f9(0x2c7))/0x6+-parseInt(_0x4f18f9(0x1c7))/0x7+parseInt(_0x4f18f9(0x33f))/0x8*(parseInt(_0x4f18f9(0x380))/0x9);if(_0x3dac1c===_0xdb1e62)break;else _0x471867['push'](_0x471867['shift']());}catch(_0x2676ce){_0x471867['push'](_0x471867['shift']());}}}(a2_0x4c38,0x550f1));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';function a2_0x4c38(){const _0x4c421e=['Ending\x20offset\x20(default:\x2020)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','view\x20[segment_name]','Version\x20number\x20to\x20view','Limit\x20number\x20of\x20rows','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','use\x20[name]','Agent\x20prompt/instructions','--folder\x20<name>','--include-retried','Pause\x20a\x20running\x20journey','Pause\x20a\x20campaign','validate\x20[target]','Show\x20journey\x20table\x20column-to-step\x20mapping','Add\x20attributes\x20from\x20JSON\x20file','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','\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','us01','\x20-\x20built\x20','Show\x20the\x20most\x20recent\x20chat','preview\x20[name]','TRACE','[DEPRECATED]\x20Segment\x20folder\x20management','YAML\x20file\x20path\x20for\x20unpushed\x20segment','database','Usage:\x20','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--interval\x20<range>','770770vTLCFL','Behaviors\x20from\x20JSON\x20file','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Skip\x20population\x20counting','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','0.7','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','Validate\x20campaign\x20YAML\x20files\x20locally','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Pull\x20specific\x20campaign\x20by\x20name','run\x20[workflow]','Options:','--revision\x20<revision>','--delete','Overwrite\x20local\x20changes\x20without\x20confirmation','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Updated\x20schedule\x20option','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','pull\x20[name]','get','Show\x20authentication\x20status\x20and\x20current\x20context','Workspace\x20name','Database\x20to\x20query\x20(default:\x20information_schema)','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','argument','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Timezone\x20for\x20cron','-d,\x20--database\x20<database>','Output\x20as\x20JSON','view\x20<name-or-path>','--table','outputHelp','-a,\x20--agent\x20<name>','Segment\x20description','Remove\x20API\x20key\x20from\x20system\x20keychain','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','-n,\x20--name\x20<name>','after','--editor-type\x20<type>','Preview\x20without\x20creating\x20the\x20project','Skip\x20confirmation\x20prompt','Push\x20without\x20confirmation','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Workflow\x20session\x20management','Get\x20job\x20results','--database\x20<db>','Show\x20job\x20details','split','upload\x20[project-name-or-dir]','logLevel','4482vvRZcD','parent_segment','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Show\x20segment\x20schema\x20(column\x20types)','directory','Query\x20engine\x20version','Authentication\x20management','-p,\x20--profile\x20<name>','Clear\x20session\x20context','secrets','workspaces\x20[pattern]','Database\x20name\x20(required)','format','Show\x20timeline\x20for\x20specific\x20attempt','Commands:','upgrade\x20[version]','option','--behavior\x20[name]','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Validate\x20journey\x20YAML\x20files\x20locally','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','-w,\x20--web','traffic\x20<name-or-path>','Campaign\x20type\x20(email\x20or\x20push)','user','--retry-limit\x20<0~32>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','show\x20<name>','Parent\x20segment\x20description','claude\x20[args...]','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Updated\x20timezone','Campaign\x20description','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20ap01,\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\x20ap01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','length','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','--tags\x20<tags>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','statusline','filter','folders\x20<parent_name>','then','Folder\x20name\x20for\x20organization','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','tasks','-v,\x20--verbose','name','preview\x20[file]','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','allowUnknownOption','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','delete\x20<project-name-or-id>','Project\x20description','Starting\x20offset\x20(default:\x200)','session','info\x20[segment_name]','Check\x20for\x20updates\x20without\x20installing','configureHelp','Create\x20an\x20email\x20template','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','jsonl','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','--parent-folder\x20<name>','--description\x20<text>','Include\x20retried\x20attempts','--next','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','flatMap','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','DEBUG','Create\x20segment\x20folder','upgrade','Show\x20all\x20files\x20including\x20valid\x20ones','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--to\x20<date>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Attributes\x20from\x20JSON\x20file','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Workflow\x20project\x20management','hidden','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','log\x20<chat-id>','activations\x20<name-or-path>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','commands','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--to\x20<timestamp>','Invalid\x20--limit\x20value:\x20\x22','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','kill\x20<job-id>','Force\x20retry\x20even\x20if\x20not\x20failed','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','515676NstHkD','Custom\x20revision\x20name\x20(default:\x20timestamp)','--table\x20<table>','list\x20[path]','auth','Set\x20operation\x20timeout\x20in\x20seconds','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','models','delete\x20<name>','Show\x20only\x20master\x20table\x20validation','Master\x20database\x20name','--attributes\x20<json>','Task\x20name\x20for\x20logs\x20action','requiredOption','action','types','status','profiles','tdx\x20','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','-u,\x20--use','--session-id\x20<id>','--version','LLM\x20project\x20to\x20use\x20(overrides\x20context)','New\x20workspace\x20name','Open\x20parent\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','Resume\x20a\x20paused\x20campaign','-o,\x20--output\x20<folder>','--site\x20<site>','Job\x20management\x20commands','--status\x20<status>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','--add-behaviors\x20<json>','--max-tool-iterations\x20<n>','create\x20<name>','list\x20[project]','--timeout\x20<seconds>','Start\x20a\x20new\x20chat\x20session','Starter\x20message','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Override\x20project\x20name','--follow','isArray','retry\x20<session-id>','addHelpText','Resume\x20a\x20conversation\x20(shows\x20selector)','-y,\x20--yes','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','\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=ap01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a','clear','--limit\x20<rows>','GET','Reason\x20for\x20killing\x20the\x20attempt','padEnd','--session-time\x20<time>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','isTTY','schedule','--attribute\x20[name]','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','list\x20[name]','--path\x20<file-path>','Create\x20a\x20workspace','Update\x20a\x20workspace','Create\x20a\x20new\x20campaign','parent','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','delete\x20<args...>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Pull\x20specific\x20revision\x20(default:\x20latest)','--limit\x20<number>','workflows\x20[project]','run','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','New\x20segment\x20name','unset\x20<resource>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pull\x20[project]\x20[agent-name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','injectIntoOptions','Pull\x20campaigns\x20to\x20YAML\x20files','resume\x20<name-or-path>','-C,\x20--directory\x20<path>','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--include-subtasks','api\x20[endpoint]','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','--parent-segment\x20<name>','Preview\x20changes\x20without\x20pushing','--html-file\x20<path>','stats\x20<name-or-path>','--trace','Workspace\x20name\x20(required)','--debug','--default','options','--include-history','Continue\x20most\x20recent\x20conversation','update\x20<agent-name>','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','claude-4.5-sonnet','versions\x20<name-or-path>','1279818jNdWOo','Customer\x20group\x20from\x20JSON\x20file','list\x20[pattern]','use\x20<path>','stdout','Action:\x20logs,\x20tasks,\x20kill,\x20retry','...','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Journey\x20version\x20management','--last','--data\x20<data>','--from\x20<n>','Show\x20email\x20template\x20details','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','8UeLRDU','attempt','opts','Read\x20HTML\x20template\x20from\x20file','--verbose','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--json-columns\x20<cols>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Show\x20schedule\x20details','Email\x20template\x20management','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','submit\x20[query]','sessions\x20[project]','INFO','usage','buildTime','--type\x20<type>','--method\x20<pm>','Trino\x20catalog\x20(default:\x20td)','Workflow\x20attempt\x20management','229192XtQGIk','push','isDirectory','commandUsage','--dry-run','List\x20journeys\x20(alias\x20for\x20journey\x20list)','history\x20[chat-id]','\x22.\x20Must\x20be\x20a\x20number.','command','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','--engine-version\x20<version>','push\x20[file]','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','optionDescription','Change\x20to\x20directory\x20before\x20executing\x20command','Clear\x20workflow\x20project\x20context','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Read\x20query\x20from\x20file','--attributes-file\x20<file>','users','view\x20[name]','--color','description','Add\x20attributes\x20as\x20JSON\x20string','Run\x20specific\x20tests\x20(comma-separated)','--behaviors\x20<json>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','chat\x20[message...]','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','--yes','INVALID_ARGUMENT','Open\x20segment\x20in\x20web\x20browser','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Create\x20a\x20scheduled\x20query','List\x20jobs','--customer-group\x20<json>','Timezone\x20for\x20cron\x20(default:\x20UTC)','HTML\x20template\x20content','Enable\x20verbose\x20logging','set\x20<key=value>','--limit\x20<n>','10999791UolgkZ','\x20(resolved\x20to\x20','Query\x20type:\x20trino\x20or\x20hive','--name\x20<names>','--enriched','tables\x20[pattern]','hook','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','argv','Update\x20an\x20email\x20template','show\x20[segment_name]','Job\x20priority\x20(-2\x20to\x202)','activations\x20<segment_name>','Show\x20segment\x20details\x20(alias\x20for\x20view)','padWidth','--customer-group-file\x20<file>','Create\x20a\x20new\x20profile','Unknown\x20action:\x20','update\x20<name>','--from\x20<date>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Run\x20Trino\x20query\x20with\x20streaming\x20results','chdir','agents\x20[pattern]','Create\x20a\x20new\x20LLM\x20project','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','--reason\x20<text>','-1d','--in\x20<database>','--max-depth\x20<depth>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Workspace\x20management','desc','push\x20[target]','retry','Remove\x20a\x20profile','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Parent\x20segment\x20management','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','apiKey','connections','Pull\x20specific\x20template\x20by\x20name','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--delay\x20<seconds>','--no-proxy','allowExcessArguments','log','--clear','List\x20all\x20users\x20in\x20the\x20account','Attributes\x20as\x20JSON\x20string','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','history\x20<name>','--invisible','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','desc\x20[name]','fields\x20[name]','replace','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Interactive\x20chat\x20selector','Filtering\x20rule\x20from\x20JSON\x20file','timeline\x20[project.workflow]','use\x20[resource]\x20[value]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--time\x20<iso8601>','Folder\x20description','repeat','Attempt\x20ID','LLM\x20agent\x20management','Include\x20execution\x20statistics','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Workspace\x20description','--chat-id\x20<id>','set','show\x20<folder_ref>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','connection','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','--stage\x20<name>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','stringify','Skip\x20confirmation\x20prompts','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','--full','find','parent-segment','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','validate\x20[name]','tsv','project','--include-stats','createAsync','validate\x20[file]','Updated\x20description','profile','Open\x20journey\x20in\x20web\x20browser','--starter-message\x20<text>','--add-behaviors-file\x20<file>','Database\x20management\x20commands','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--schedule-option\x20<value>','backup\x20<name>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','show\x20<name-or-id>','gitRevision','engage_workspace','Table\x20management\x20commands','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--num\x20<1-10>','campaign','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','describe','Delete\x20a\x20scheduled\x20query','[attempt-id]','Template\x20name','--reeval','template','CDP\x20segment\x20management\x20commands','\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','--kind\x20<type>','variadic','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','--jsonl','kill','Name\x20for\x20the\x20new\x20project\x20(required)','Manage\x20workflow\x20project\x20secrets','required','--result\x20<url>','Show\x20journey\x20details','trino','fields\x20[parent_name]','Show\x20campaign\x20details','Cron\x20expression\x20for\x20scheduling','End\x20time\x20filter\x20(ISO\x208601\x20format)','Plaintext\x20template\x20content','Agent\x20name','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','clone\x20[source]','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','setup','List\x20agents\x20in\x20current\x20project','push\x20[path]','--help','Request\x20body\x20as\x20JSON\x20string','show\x20<agent-name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','--schedule-type\x20<type>','Run\x20tests\x20for\x20an\x20LLM\x20agent','show\x20[name]','push\x20[source-dir]','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Revision\x20name\x20(default:\x20timestamp)','Resume\x20from\x20specific\x20task','subcommandTerm','Show\x20master\x20table\x20sample\x20data','--version\x20<number>','beefree','--agent\x20<ref>','run\x20[name]','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Add\x20behaviors\x20from\x20JSON\x20file','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--format\x20<format>','Read\x20SQL\x20query\x20from\x20file','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','attempt:','tdx','--master','includes','New\x20template\x20name','--workspace\x20<name>','show\x20<job-id>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','projects\x20[pattern]','Add\x20behaviors\x20as\x20JSON\x20string','Update\x20a\x20scheduled\x20query','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Directory\x20does\x20not\x20exist:\x20','map','--name\x20<new-name>','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','show\x20[table]','engage','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','slice','json','--rule\x20<json>','List\x20all\x20available\x20profiles','use\x20<name>','--in\x20<db>','Validate\x20template\x20YAML\x20files\x20locally','--llm-project\x20<name>','--resume-from\x20<task>','set\x20<args...>','error','--name\x20<text>','--description\x20<desc>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','System\x20prompt/instructions\x20(default:\x20empty)','-f,\x20--file\x20<path>','describe\x20[table]','aliases','table','--result\x20<target>','push\x20[parent_or_file]','information_schema','Workflow\x20parameter\x20(repeatable)','workflow','--timezone\x20<tz>','pull\x20[workspace]','restore\x20<folder>','desc\x20[segment_name]','Maximum\x20tool\x20iterations\x20(default:\x204)','Result\x20output\x20destination\x20URL','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','settings\x20<type>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','pull\x20<project>\x20[target-dir]','--plaintext\x20<text>','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','duplicate\x20<name-or-id>','_list-commands','--no-color','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','User\x20management\x20commands','Preview\x20changes\x20without\x20writing\x20files','Set\x20or\x20show\x20parent\x20segment\x20context','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','exit','Parent\x20folder\x20name\x20for\x20nested\x20folders','-r,\x20--recursive','llm','Read\x20request\x20body\x20from\x20file','--priority\x20<-2~2>','Make\x20segment\x20invisible\x20(default:\x20visible)','parents\x20[pattern]','Agent\x20description','Set\x20a\x20profile\x20configuration\x20value','--behaviors-file\x20<file>','[EXPERIMENTAL]\x20Show\x20chat\x20log','pull\x20[workspace-name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--cron\x20<expression>','-f,\x20--force','Database\x20name\x20(default:\x20information_schema)','create\x20<parent_name>\x20<folder_name>','Include\x20retried\x20attempts\x20(for\x20list)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','alias','query\x20[sql]','Delete\x20a\x20workspace','-r,\x20--resume','Email\x20subject\x20template','--name\x20<new_name>','create\x20<segment_name>','Scheduled\x20query\x20management\x20commands','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','commandDescription','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','init\x20[name]','--session\x20<id>','help','optionTerm','--from-task\x20<task>','-X,\x20--method\x20<method>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Move\x20to\x20folder','--tsv','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','flags',',\x20version\x20','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','List\x20available\x20LLM\x20models','subcommandDescription','3361316BuyFzr','--json','--html\x20<html>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','segment','--no-eval','-o,\x20--output\x20<file>','launch\x20<name-or-id>','forEach','--segment\x20<path>','--attempt-id\x20<id>','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','parse','310SCzCoi','\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,\x20ap01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','create','Output\x20as\x20JSON\x20Lines','list','journey','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Include\x20subtasks\x20in\x20tasks\x20output','Setup\x20API\x20key\x20authentication\x20interactively','List\x20available\x20connector\x20types','job','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--start-at\x20<datetime>','Timezone\x20(e.g.,\x20America/Los_Angeles)','journeys\x20[pattern]','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','delete\x20<name-or-id>','result\x20<job-id>','join','Show\x20schedule\x20execution\x20history','List\x20all\x20data\x20connections','chats','--skip-validation','--subject\x20<subject>','Filtering\x20rule\x20as\x20JSON\x20string','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Delay\x20in\x20seconds\x20before\x20execution','Arguments:','Show\x20what\x20would\x20be\x20written\x20without\x20writing','List\x20secret\x20keys\x20for\x20a\x20project','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','pull\x20[parent_or_file]','--rule-file\x20<file>','Skip\x20validation\x20of\x20.dig\x20files','Show\x20workspace\x20details','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','update\x20<name-or-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Output\x20file\x20path','segments\x20[path]','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--model\x20<name>','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','version','--prompt\x20<text>','Output\x20directory','RT\x202.0\x20configuration\x20management','--to\x20<n>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','argumentTerm','stderr','Follow/watch\x20timeline\x20for\x20running\x20attempts','Email\x20sender\x20ID\x20for\x20delivery','--name\x20<name>','--temperature\x20<n>','catch','create\x20<name-or-path>','registeredArguments'];a2_0x4c38=function(){return _0x4c421e;};return a2_0x4c38();}import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{EngageCampaignPullCommand}from'./commands/engage-campaign-pull-command.js';import{EngageCampaignPushCommand}from'./commands/engage-campaign-push-command.js';import{EngageCampaignValidateCommand}from'./commands/engage-campaign-validate-command.js';import{EngageTemplateValidateCommand}from'./commands/engage-template-validate-command.js';import{EngageTemplatePullCommand}from'./commands/engage-template-pull-command.js';import{EngageTemplatePushCommand}from'./commands/engage-template-push-command.js';import{DeliveryEmailSendersCommand}from'./commands/delivery-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{UpgradeCommand}from'./commands/upgrade-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv']['includes'](a2_0x52af75(0x2dd))){let versionOutput=a2_0x52af75(0x2d9)+currentVersion;buildInfo[a2_0x52af75(0x117)]&&!currentVersion[a2_0x52af75(0x158)](buildInfo[a2_0x52af75(0x117)])&&(versionOutput+='\x20('+buildInfo[a2_0x52af75(0x117)]+')'),buildInfo['buildTime']&&(versionOutput+=a2_0x52af75(0x226)+buildInfo[a2_0x52af75(0x34f)]),console[a2_0x52af75(0x3af)](versionOutput),process[a2_0x52af75(0x196)](0x0);}const program=new Command();export function mergeCommandOptions(_0x43d34a,_0x33390c){const _0x3e3500={..._0x43d34a};for(const [_0x1f3db0,_0x577378]of Object['entries'](_0x33390c)){_0x577378!==undefined&&(_0x3e3500[_0x1f3db0]=_0x577378);}return _0x3e3500;}let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x52af75(0x117)]&&!currentVersion[a2_0x52af75(0x158)](buildInfo[a2_0x52af75(0x117)])?description+=a2_0x52af75(0x1c3)+currentVersion+'\x20('+buildInfo[a2_0x52af75(0x117)]+')':description+=a2_0x52af75(0x1c3)+currentVersion;program[a2_0x52af75(0x296)](a2_0x52af75(0x156))['description'](description),program['option'](a2_0x52af75(0x31c),a2_0x52af75(0x363))[a2_0x52af75(0x274)](a2_0x52af75(0x26b),a2_0x52af75(0x1d4))[a2_0x52af75(0x274)](a2_0x52af75(0x2e6),a2_0x52af75(0x3ab),a2_0x52af75(0x225))[a2_0x52af75(0x274)](a2_0x52af75(0x152),a2_0x52af75(0x160))[a2_0x52af75(0x274)](a2_0x52af75(0x250),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x52af75(0x274)](a2_0x52af75(0x1c8),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x52af75(0x274)](a2_0x52af75(0x129),a2_0x52af75(0x313))[a2_0x52af75(0x274)](a2_0x52af75(0x1be),a2_0x52af75(0x394))[a2_0x52af75(0x274)]('--output\x20<file>','Save\x20output\x20to\x20file')[a2_0x52af75(0x274)]('--limit\x20<number>',a2_0x52af75(0x104))[a2_0x52af75(0x274)](a2_0x52af75(0x36a),a2_0x52af75(0x202),![])[a2_0x52af75(0x274)](a2_0x52af75(0x190),a2_0x52af75(0x2e3),![])[a2_0x52af75(0x274)](a2_0x52af75(0x295),a2_0x52af75(0x37d),![])[a2_0x52af75(0x274)](a2_0x52af75(0x327),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x52af75(0x274)](a2_0x52af75(0x325),a2_0x52af75(0x365))[a2_0x52af75(0x274)](a2_0x52af75(0x2ee),a2_0x52af75(0x2cc),'30')[a2_0x52af75(0x274)](a2_0x52af75(0x358),'Preview\x20operation\x20without\x20executing',![])[a2_0x52af75(0x274)](a2_0x52af75(0x2f8),a2_0x52af75(0x3d1),![])['option'](a2_0x52af75(0x1b6),a2_0x52af75(0x320))['option'](a2_0x52af75(0x321),a2_0x52af75(0x15c))[a2_0x52af75(0x274)](a2_0x52af75(0x170),a2_0x52af75(0x2de)),program[a2_0x52af75(0x2a1)]({'formatHelp':(_0x114a26,_0x48c86f)=>{const _0x456c2b=a2_0x52af75,_0x22f1e0=_0x48c86f[_0x456c2b(0x38e)](_0x114a26,_0x48c86f),_0x11a692=0x2,_0xb0a7b=0x2;function _0x2a6733(_0x55accd){const _0x2d13d6=_0x456c2b,_0x1583a5=_0x55accd;return!!(_0x1583a5['_hidden']||_0x1583a5[_0x2d13d6(0x2b7)]);}function _0x3a6fb0(_0x260b0c,_0x5c7662){const _0x53d62c=_0x456c2b;if(_0x5c7662){const _0x5988b3=''+_0x260b0c[_0x53d62c(0x2ff)](_0x22f1e0+_0xb0a7b)+_0x5c7662;return _0x5988b3;}return _0x260b0c;}function _0x1c922b(_0xe95168){const _0x93b2d9=_0x456c2b;return _0xe95168[_0x93b2d9(0x1e8)]('\x0a')[_0x93b2d9(0x3b9)](/^/gm,'\x20'[_0x93b2d9(0x3c2)](_0x11a692));}const _0x5c3a98=[];_0x5c3a98['push'](_0x456c2b(0x22d)+_0x48c86f[_0x456c2b(0x357)](_0x114a26));const _0x2df5ff=_0x48c86f[_0x456c2b(0x1b3)](_0x114a26);_0x2df5ff&&(_0x5c3a98[_0x456c2b(0x355)](''),_0x5c3a98['push'](_0x2df5ff));const _0x40aab1=_0x114a26['commands']['filter'](_0x3672e5=>!_0x2a6733(_0x3672e5));if(_0x40aab1[_0x456c2b(0x289)]>0x0){if(_0x114a26[_0x456c2b(0x296)]()===_0x456c2b(0x156)){const _0x555cef=_0x114a26['opts'](),_0x16392c=!_0x555cef['noColor']&&process[_0x456c2b(0x334)][_0x456c2b(0x302)],_0x5e9dbd=COMMAND_CATEGORIES,_0x3e7a44=(_0x222b91,_0x400b45)=>_0x16392c?_0x400b45(_0x222b91):_0x222b91,_0x3109d2=new Map();_0x40aab1['forEach'](_0x1991c=>{const _0x173238=_0x456c2b;_0x3109d2[_0x173238(0x3c9)](_0x1991c[_0x173238(0x296)](),_0x1991c);}),_0x5e9dbd[_0x456c2b(0x1cf)](_0x2db992=>{const _0xe007a0=_0x456c2b,_0x3d419e=_0x2db992[_0xe007a0(0x2bf)][_0xe007a0(0x2ab)](_0x1fc371=>_0x3109d2[_0xe007a0(0x245)](_0x1fc371)??[]);if(_0x3d419e[_0xe007a0(0x289)]>0x0){_0x5c3a98['push'](''),_0x5c3a98[_0xe007a0(0x355)](_0x3e7a44(_0x2db992[_0xe007a0(0x296)]+':',_0x2db992['colorFn']));const _0x244ba9=_0x3d419e[_0xe007a0(0x162)](_0x2322de=>{const _0x12f764=_0xe007a0,_0x436a65=_0x48c86f['subcommandTerm'](_0x2322de),_0x4b889f=_0x48c86f[_0x12f764(0x1c6)](_0x2322de);return _0x3a6fb0(_0x436a65,_0x4b889f);});_0x5c3a98[_0xe007a0(0x355)](_0x1c922b(_0x244ba9));}}),_0x5c3a98['push'](''),_0x5c3a98[_0x456c2b(0x355)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x36cb62=_0x40aab1[_0x456c2b(0x162)](_0x5739d6=>{const _0x1a3eb3=_0x456c2b,_0x5ba168=_0x48c86f[_0x1a3eb3(0x148)](_0x5739d6),_0x3017d2=_0x48c86f[_0x1a3eb3(0x1c6)](_0x5739d6);return _0x3a6fb0(_0x5ba168,_0x3017d2);});_0x5c3a98['push'](''),_0x5c3a98[_0x456c2b(0x355)](_0x456c2b(0x272)),_0x5c3a98['push'](_0x1c922b(_0x36cb62));}}if(showBriefHelp&&_0x114a26[_0x456c2b(0x296)]()===_0x456c2b(0x156))_0x5c3a98[_0x456c2b(0x355)](''),_0x5c3a98[_0x456c2b(0x355)](_0x456c2b(0x387));else{const _0xf91db5=_0x114a26[_0x456c2b(0x329)][_0x456c2b(0x28f)](_0x9091c1=>!_0x2a6733(_0x9091c1));if(_0xf91db5[_0x456c2b(0x289)]>0x0){const _0x29136d=_0xf91db5[_0x456c2b(0x162)](_0x11dcda=>{const _0x15d9f6=_0x456c2b,_0x4b0563=_0x48c86f[_0x15d9f6(0x1b8)](_0x11dcda),_0x4ec319=_0x48c86f[_0x15d9f6(0x362)](_0x11dcda);return _0x3a6fb0(_0x4b0563,_0x4ec319);});_0x5c3a98[_0x456c2b(0x355)](''),_0x5c3a98[_0x456c2b(0x355)](_0x456c2b(0x23d)),_0x5c3a98[_0x456c2b(0x355)](_0x1c922b(_0x29136d));}}const _0x541f0a=(_0x114a26['registeredArguments']||[])[_0x456c2b(0x28f)](_0x11b19f=>!_0x2a6733(_0x11b19f));if(_0x541f0a[_0x456c2b(0x289)]>0x0){const _0x453f11=_0x541f0a[_0x456c2b(0x162)](_0x366e58=>{const _0x45de7b=_0x456c2b,_0x2293d4=_0x48c86f[_0x45de7b(0x20a)](_0x366e58),_0x4e565e=_0x48c86f['argumentDescription'](_0x366e58);return _0x3a6fb0(_0x2293d4,_0x4e565e);});_0x5c3a98[_0x456c2b(0x355)](''),_0x5c3a98[_0x456c2b(0x355)](_0x456c2b(0x1f1)),_0x5c3a98['push'](_0x1c922b(_0x453f11));}return _0x5c3a98[_0x456c2b(0x1e8)]('\x0a')+'\x0a';},'subcommandTerm':_0x1a840c=>{const _0x254088=a2_0x52af75,_0x3ef2bd=(_0x1a840c[_0x254088(0x212)]||[])['map'](_0x30fb47=>_0x30fb47[_0x254088(0x12d)]?'<'+_0x30fb47[_0x254088(0x296)]()+'>':'['+_0x30fb47['name']()+']')[_0x254088(0x1e8)]('\x20'),_0x130a51=_0x1a840c[_0x254088(0x17b)](),_0x1d4b6a=_0x130a51[_0x254088(0x289)]>0x0?_0x1a840c[_0x254088(0x296)]()+',\x20'+_0x130a51[_0x254088(0x1e8)](',\x20'):_0x1a840c['name']();return _0x3ef2bd?_0x1d4b6a+'\x20'+_0x3ef2bd:_0x1d4b6a;}}),program[a2_0x52af75(0x386)]('preAction',_0x2a6e95=>{const _0x337ff6=a2_0x52af75,_0x4d214a=_0x2a6e95['opts']();if(_0x4d214a[_0x337ff6(0x268)]){const _0x1d773f=resolve(_0x4d214a[_0x337ff6(0x268)]),_0x3f900b=_0x1d773f!==_0x4d214a[_0x337ff6(0x268)]?_0x337ff6(0x381)+_0x1d773f+')':'';if(!existsSync(_0x1d773f))throw new SDKError(ErrorCode[_0x337ff6(0x375)],_0x337ff6(0x161)+_0x4d214a[_0x337ff6(0x268)]+_0x3f900b,undefined,{'helpText':_0x337ff6(0x11d)});const _0x53f504=statSync(_0x1d773f);if(!_0x53f504[_0x337ff6(0x356)]())throw new SDKError(ErrorCode[_0x337ff6(0x375)],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x4d214a[_0x337ff6(0x268)]+_0x3f900b,undefined,{'helpText':_0x337ff6(0x337)});process[_0x337ff6(0x397)](_0x1d773f);}if(!_0x4d214a[_0x337ff6(0x270)]){if(_0x4d214a[_0x337ff6(0x17c)])_0x4d214a[_0x337ff6(0x270)]=_0x337ff6(0x17c);else{if(_0x4d214a[_0x337ff6(0x16a)])_0x4d214a[_0x337ff6(0x270)]='json';else{if(_0x4d214a[_0x337ff6(0x2a4)])_0x4d214a[_0x337ff6(0x270)]=_0x337ff6(0x2a4);else _0x4d214a[_0x337ff6(0x107)]&&(_0x4d214a[_0x337ff6(0x270)]=_0x337ff6(0x107));}}}if(_0x4d214a['trace'])_0x4d214a[_0x337ff6(0x263)]=LogLevel[_0x337ff6(0x229)];else{if(_0x4d214a['debug'])_0x4d214a['logLevel']=LogLevel[_0x337ff6(0x2ad)];else _0x4d214a[_0x337ff6(0x263)]===undefined&&(_0x4d214a[_0x337ff6(0x263)]=LogLevel[_0x337ff6(0x34d)]);}});async function createTDXInstance(_0x1dc6d4){const _0x56e67a=a2_0x52af75,_0x2470b1=await GlobalContext[_0x56e67a(0x10a)](_0x1dc6d4);return _0x2470b1[_0x56e67a(0x319)](_0x1dc6d4),TDX[_0x56e67a(0x1d8)]({'site':_0x2470b1['site'],'apiKey':_0x2470b1[_0x56e67a(0x3a8)],'logLevel':_0x2470b1[_0x56e67a(0x263)],'profile':_0x2470b1[_0x56e67a(0x10d)]});}const databaseCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x22c))[a2_0x52af75(0x1aa)]('db')[a2_0x52af75(0x36b)](a2_0x52af75(0x111)),databaseListAction=async(_0x48b283,_0x31e710)=>{const _0xbf81f0=new DatabasesCommand(),_0x50407b=program['opts'](),_0x3df5b2=await createTDXInstance(_0x50407b),_0x30cded=await _0xbf81f0['run']({'options':{..._0x50407b,..._0x31e710},'args':_0x48b283?[_0x48b283]:[],'tdx':_0x3df5b2});gracefulExit(_0x30cded);};databaseCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x188))[a2_0x52af75(0x2d5)](databaseListAction),program[a2_0x52af75(0x35c)]('databases\x20[pattern]',{'hidden':!![]})['description'](a2_0x52af75(0x278))[a2_0x52af75(0x2d5)](databaseListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x371))[a2_0x52af75(0x36b)](a2_0x52af75(0x30c))[a2_0x52af75(0x274)](a2_0x52af75(0x14c),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x52af75(0x274)]('--new',a2_0x52af75(0x2ef))['option'](a2_0x52af75(0x3c8),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x52af75(0x274)]('--stream','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x52af75(0x2d5)](async(_0x437201,_0x1657c1)=>{const _0x1cbe53=a2_0x52af75,_0x1b16ee=program['opts'](),_0x3eb6e3=await createTDXInstance(_0x1b16ee);if(_0x437201[0x0]===_0x1cbe53(0x1d8)){const _0x235995=new ChatCreateCommand();gracefulExit(await _0x235995[_0x1cbe53(0x312)]({'options':{..._0x1b16ee,..._0x1657c1},'args':_0x437201[_0x1cbe53(0x169)](0x1),'tdx':_0x3eb6e3}));return;}const _0x6ec783=new ChatCommand(),_0x391229=await _0x6ec783[_0x1cbe53(0x312)]({'options':{..._0x1b16ee,..._0x1657c1},'args':_0x437201,'tdx':_0x3eb6e3});gracefulExit(_0x391229);});const apiCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x31f))['summary'](a2_0x52af75(0x236))['addHelpText'](a2_0x52af75(0x257),a2_0x52af75(0x125))[a2_0x52af75(0x274)](a2_0x52af75(0x1ba),a2_0x52af75(0x35d),a2_0x52af75(0x2fd))[a2_0x52af75(0x274)](a2_0x52af75(0x33a),a2_0x52af75(0x13e))['option'](a2_0x52af75(0x179),a2_0x52af75(0x19a))[a2_0x52af75(0x274)]('-H,\x20--header\x20<header>',a2_0x52af75(0x1bb),(_0x48364f,_0x5eca6a)=>{return _0x5eca6a?[..._0x5eca6a,_0x48364f]:[_0x48364f];})['option']('--type\x20<api_type>',a2_0x52af75(0x301),'td')[a2_0x52af75(0x2d5)](async(_0x339c63,_0xbb119e)=>{const _0x594d9c=a2_0x52af75;if(!_0x339c63){apiCmd[_0x594d9c(0x1b7)]();return;}const _0xd41eb7=new ApiCommand(),_0x5ed6a2=program['opts'](),_0x1bf989=await createTDXInstance(_0x5ed6a2),_0x46c9e0=await _0xd41eb7['run']({'options':{..._0x5ed6a2,..._0xbb119e},'args':[_0x339c63],'tdx':_0x1bf989});gracefulExit(_0x46c9e0);});program[a2_0x52af75(0x35c)]('mcp')[a2_0x52af75(0x36b)](a2_0x52af75(0x2e2))[a2_0x52af75(0x2f6)](a2_0x52af75(0x257),a2_0x52af75(0x1d7))[a2_0x52af75(0x2d5)](async _0x3e0092=>{const _0x5b5168=a2_0x52af75,_0x5da008=new MCPCommand(),_0x33619a=program[_0x5b5168(0x341)](),_0x20a300=await createTDXInstance(_0x33619a),_0x3fcb26=await _0x5da008[_0x5b5168(0x312)]({'options':{..._0x33619a,..._0x3e0092},'args':[],'tdx':_0x20a300});gracefulExit(_0x3fcb26);});const tableCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x17c))[a2_0x52af75(0x36b)](a2_0x52af75(0x119)),tableListAction=async(_0x11b53f,_0x1d1c01)=>{const _0x211cc0=a2_0x52af75,_0x24769e=new TablesCommand(),_0x1a8eaa=program[_0x211cc0(0x341)](),_0x3fdb3c=await createTDXInstance(_0x1a8eaa);_0x1d1c01['in']&&(_0x1d1c01['database']=_0x1d1c01['in']);const _0x172b4f=await _0x24769e[_0x211cc0(0x312)]({'options':{..._0x1a8eaa,..._0x1d1c01},'args':_0x11b53f?[_0x11b53f]:[],'tdx':_0x3fdb3c});gracefulExit(_0x172b4f);};tableCmd['command']('list\x20[pattern]')['description'](a2_0x52af75(0x2cd))['option']('-d,\x20--database\x20<database>',a2_0x52af75(0x1fc))[a2_0x52af75(0x274)](a2_0x52af75(0x39d),a2_0x52af75(0x176))[a2_0x52af75(0x2d5)](tableListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x385),{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x283))[a2_0x52af75(0x274)]('-d,\x20--database\x20<database>',a2_0x52af75(0x1fc))[a2_0x52af75(0x274)](a2_0x52af75(0x39d),a2_0x52af75(0x176))[a2_0x52af75(0x2d5)](tableListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x165))['description'](a2_0x52af75(0x2c6))[a2_0x52af75(0x274)](a2_0x52af75(0x24d),a2_0x52af75(0x140))[a2_0x52af75(0x274)](a2_0x52af75(0x39d),a2_0x52af75(0x176))[a2_0x52af75(0x2d5)](async(_0xdf1f11,_0x32a9b6)=>{const _0x4d8de0=a2_0x52af75,_0x41748b=new ShowCommand(),_0x51d9c6=program[_0x4d8de0(0x341)](),_0x1a58aa=await createTDXInstance(_0x51d9c6);_0x32a9b6['in']&&(_0x32a9b6[_0x4d8de0(0x22c)]=_0x32a9b6['in']);const _0x26966c=await _0x41748b[_0x4d8de0(0x312)]({'options':{..._0x51d9c6,..._0x32a9b6},'args':_0xdf1f11?[_0xdf1f11]:[],'tdx':_0x1a58aa});gracefulExit(_0x26966c);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x17a))[a2_0x52af75(0x1aa)](a2_0x52af75(0x3a1))[a2_0x52af75(0x36b)]('Describe\x20table\x20schema')['option'](a2_0x52af75(0x24d),a2_0x52af75(0x140))['option'](a2_0x52af75(0x39d),a2_0x52af75(0x176))['action'](async(_0x34b462,_0xfdf9b7)=>{const _0x49d747=a2_0x52af75,_0x428f6c=new DescribeCommand(),_0x3110bd=program[_0x49d747(0x341)](),_0x45c190=await createTDXInstance(_0x3110bd);_0xfdf9b7['in']&&(_0xfdf9b7['database']=_0xfdf9b7['in']);const _0x34a556=await _0x428f6c[_0x49d747(0x312)]({'options':{..._0x3110bd,..._0xfdf9b7},'args':_0x34b462?[_0x34b462]:[],'tdx':_0x45c190});gracefulExit(_0x34a556);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x1ab))[a2_0x52af75(0x36b)](a2_0x52af75(0x396))[a2_0x52af75(0x274)](a2_0x52af75(0x24d),a2_0x52af75(0x248))[a2_0x52af75(0x274)](a2_0x52af75(0x39d),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x52af75(0x274)]('--catalog\x20<catalog>',a2_0x52af75(0x352))['option'](a2_0x52af75(0x179),a2_0x52af75(0x153))['option'](a2_0x52af75(0x2fc),'Maximum\x20rows\x20to\x20display')[a2_0x52af75(0x2d5)](async(_0x174b1f,_0x5f20ea)=>{const _0x10d882=a2_0x52af75,_0x3494c1=new QueryCommand(),_0x5a3412=program[_0x10d882(0x341)](),_0x503320=await createTDXInstance(_0x5a3412);_0x5f20ea['in']&&(_0x5f20ea[_0x10d882(0x22c)]=_0x5f20ea['in']);const _0x262967=await _0x3494c1[_0x10d882(0x312)]({'options':mergeCommandOptions(_0x5a3412,_0x5f20ea),'args':_0x174b1f?[_0x174b1f]:[],'tdx':_0x503320});gracefulExit(_0x262967);});const segmentCmd=program['command'](a2_0x52af75(0x1cb))['alias']('sg')[a2_0x52af75(0x36b)](a2_0x52af75(0x124)),segmentListAction=async(_0x2ac5b4,_0x219613)=>{const _0x2285e9=a2_0x52af75,_0x2a78f6=new SegmentsCommand(),_0x3773b7=program['opts'](),_0x1546ee=await createTDXInstance(_0x3773b7),_0x37db20=await _0x2a78f6[_0x2285e9(0x312)]({'options':{..._0x3773b7,..._0x219613},'args':_0x2ac5b4?[_0x2ac5b4]:[],'tdx':_0x1546ee});gracefulExit(_0x37db20);};segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2ca))[a2_0x52af75(0x36b)](a2_0x52af75(0x1a9))[a2_0x52af75(0x274)](a2_0x52af75(0x198),a2_0x52af75(0x318))[a2_0x52af75(0x274)](a2_0x52af75(0x39e),a2_0x52af75(0x23a),'10')['action'](segmentListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x1fe),{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x100))[a2_0x52af75(0x274)](a2_0x52af75(0x198),a2_0x52af75(0x318))['option']('--max-depth\x20<depth>',a2_0x52af75(0x23a),'10')['action'](segmentListAction),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x333),{'hidden':!![]})['description'](a2_0x52af75(0x2e1))[a2_0x52af75(0x2d5)](async(_0x5da0c6,_0x2b4acc)=>{const _0x58f0e8=a2_0x52af75,_0xaf830e=new SegmentUseCommand(),_0x572557=program[_0x58f0e8(0x341)](),_0xe6d0b9=await createTDXInstance(_0x572557),_0x1cb476=await _0xaf830e['run']({'options':{..._0x572557,..._0x2b4acc},'args':[_0x5da0c6],'tdx':_0xe6d0b9});gracefulExit(_0x1cb476);});const segmentViewAction=async(_0x5664ad,_0x5ccb96)=>{const _0xdbc49e=a2_0x52af75,_0xa25f4b=new SegmentViewCommand(),_0x104011=program[_0xdbc49e(0x341)](),_0x256bfe=await createTDXInstance(_0x104011),_0x3214b9=await _0xa25f4b[_0xdbc49e(0x312)]({'options':{..._0x104011,..._0x5ccb96},'args':_0x5664ad?[_0x5664ad]:[],'tdx':_0x256bfe});gracefulExit(_0x3214b9);};segmentCmd['command'](a2_0x52af75(0x215))[a2_0x52af75(0x36b)](a2_0x52af75(0x36f))['option']('-w,\x20--web',a2_0x52af75(0x376))[a2_0x52af75(0x2d5)](segmentViewAction),segmentCmd['command'](a2_0x52af75(0x29f),{'hidden':!![]})[a2_0x52af75(0x1aa)](a2_0x52af75(0x11e))[a2_0x52af75(0x274)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')[a2_0x52af75(0x36b)](a2_0x52af75(0x38d))['action'](segmentViewAction),segmentCmd['command'](a2_0x52af75(0x185))[a2_0x52af75(0x36b)](a2_0x52af75(0x267))[a2_0x52af75(0x2d5)](async(_0x1c8ada,_0x5ecc79)=>{const _0x188c93=a2_0x52af75,_0x4319f7=new SegmentDescCommand(),_0x14ffb1=program[_0x188c93(0x341)](),_0x1ace13=await createTDXInstance(_0x14ffb1),_0x1429ad=await _0x4319f7[_0x188c93(0x312)]({'options':{..._0x14ffb1,..._0x5ecc79},'args':_0x1c8ada?[_0x1c8ada]:[],'tdx':_0x1ace13});gracefulExit(_0x1429ad);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x38a))[a2_0x52af75(0x36b)](a2_0x52af75(0x2aa))[a2_0x52af75(0x2d5)](async(_0x375778,_0x25f955)=>{const _0x480f86=a2_0x52af75,_0x1ef043=new SegmentShowCommand(),_0x870904=program[_0x480f86(0x341)](),_0x294421=await createTDXInstance(_0x870904),_0x106ef2=await _0x1ef043[_0x480f86(0x312)]({'options':{..._0x870904,..._0x25f955},'args':_0x375778?[_0x375778]:[],'tdx':_0x294421});gracefulExit(_0x106ef2);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x290),{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x128))[a2_0x52af75(0x2d5)](async(_0x45fb67,_0x434e8a)=>{const _0x3284b2=a2_0x52af75,_0x1d9fdd=new SegmentFolderListCommand(),_0x194231=program[_0x3284b2(0x341)](),_0x43ea67=await createTDXInstance(_0x194231),_0x413708=await _0x1d9fdd[_0x3284b2(0x312)]({'options':{..._0x194231,..._0x434e8a},'args':[_0x45fb67],'tdx':_0x43ea67});gracefulExit(_0x413708);});const folderCmd=segmentCmd[a2_0x52af75(0x35c)]('folder',{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x22a));folderCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3ca))[a2_0x52af75(0x36b)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x52af75(0x2d5)](async(_0x53f06a,_0x5a19c2)=>{const _0x5c7c60=a2_0x52af75,_0x2dc670=new SegmentFolderShowCommand(),_0x272cd7=program[_0x5c7c60(0x341)](),_0x5c02ae=await createTDXInstance(_0x272cd7),_0x5e4f35=await _0x2dc670[_0x5c7c60(0x312)]({'options':{..._0x272cd7,..._0x5a19c2},'args':[_0x53f06a],'tdx':_0x5c02ae});gracefulExit(_0x5e4f35);}),segmentCmd[a2_0x52af75(0x35c)]('sql\x20[segment_name]')[a2_0x52af75(0x36b)](a2_0x52af75(0x266))[a2_0x52af75(0x274)](a2_0x52af75(0x307),a2_0x52af75(0x22b))[a2_0x52af75(0x2d5)](async(_0x2aacdf,_0x87d10c)=>{const _0x3d6fad=a2_0x52af75,_0x4d890a=new SegmentSQLCommand(),_0x2b6abc=program[_0x3d6fad(0x341)](),_0x26910d=await createTDXInstance(_0x2b6abc),_0x1faee8=await _0x4d890a[_0x3d6fad(0x312)]({'options':{..._0x2b6abc,..._0x87d10c},'args':_0x2aacdf?[_0x2aacdf]:[],'tdx':_0x26910d});gracefulExit(_0x1faee8);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x131))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x14e204,_0x32174d)=>{const _0x2b1af1=a2_0x52af75,_0x1c6e70=new SegmentFieldsCommand(),_0x17c5e5=program[_0x2b1af1(0x341)](),_0xa83a72=await createTDXInstance(_0x17c5e5),_0x578fc=await _0x1c6e70[_0x2b1af1(0x312)]({'options':{..._0x17c5e5,..._0x32174d},'args':_0x14e204?[_0x14e204]:[],'tdx':_0xa83a72});gracefulExit(_0x578fc);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1f6))[a2_0x52af75(0x36b)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option'](a2_0x52af75(0x358),a2_0x52af75(0x3a7))['action'](async(_0x1887dd,_0x1b8966)=>{const _0x2fb394=a2_0x52af75,_0x326dde=new SegmentPullCommand(),_0x2493ea=program[_0x2fb394(0x341)](),_0x854c29=await createTDXInstance(_0x2493ea),_0x43e697=await _0x326dde[_0x2fb394(0x312)]({'options':{..._0x2493ea,..._0x1b8966},'args':_0x1887dd?[_0x1887dd]:[],'tdx':_0x854c29});gracefulExit(_0x43e697);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x17e))[a2_0x52af75(0x36b)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x52af75(0x274)](a2_0x52af75(0x358),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x52af75(0x274)](a2_0x52af75(0x23f),a2_0x52af75(0x3cf))['action'](async(_0x469951,_0x343090)=>{const _0x3d63ef=a2_0x52af75,_0xecf490=new SegmentPushCommand(),_0x23bd8a=program[_0x3d63ef(0x341)](),_0x73e3a=await createTDXInstance(_0x23bd8a),_0x5c1ff9=await _0xecf490[_0x3d63ef(0x312)]({'options':{..._0x23bd8a,..._0x343090},'args':_0x469951?[_0x469951]:[],'tdx':_0x73e3a});gracefulExit(_0x5c1ff9);}),segmentCmd['command']('validate\x20[target]')[a2_0x52af75(0x36b)](a2_0x52af75(0x288))[a2_0x52af75(0x2d5)](async(_0x333fab,_0x3555c8)=>{const _0x4ee073=a2_0x52af75,_0x49dba4=new SegmentValidateCommand(),_0x4357b5=program['opts'](),_0x57b9c7=await createTDXInstance(_0x4357b5),_0x86c0d6=await _0x49dba4[_0x4ee073(0x312)]({'options':{..._0x4357b5,..._0x3555c8},'args':_0x333fab?[_0x333fab]:[],'tdx':_0x57b9c7});gracefulExit(_0x86c0d6);}),segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1b0),{'hidden':!![]})[a2_0x52af75(0x36b)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x52af75(0x274)](a2_0x52af75(0x2a7),a2_0x52af75(0x253))['option'](a2_0x52af75(0x16b),a2_0x52af75(0x1ee))['option'](a2_0x52af75(0x1f7),a2_0x52af75(0x3bc))[a2_0x52af75(0x274)](a2_0x52af75(0x21b),a2_0x52af75(0x292))[a2_0x52af75(0x274)](a2_0x52af75(0x126),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x52af75(0x274)](a2_0x52af75(0x3b5),a2_0x52af75(0x19c))[a2_0x52af75(0x274)]('--no-count-population',a2_0x52af75(0x233))['action'](async(_0x29f22e,_0x9204a3)=>{const _0x39d694=a2_0x52af75,_0x3596d8=new SegmentCreateCommand(),_0x48e8e1=program[_0x39d694(0x341)](),_0x3c85cb=await createTDXInstance(_0x48e8e1),_0x593050=await _0x3596d8[_0x39d694(0x312)]({'options':{..._0x48e8e1,..._0x9204a3},'args':[_0x29f22e],'tdx':_0x3c85cb});gracefulExit(_0x593050);}),segmentCmd[a2_0x52af75(0x35c)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x52af75(0x164))[a2_0x52af75(0x274)](a2_0x52af75(0x1af),a2_0x52af75(0x314))[a2_0x52af75(0x274)](a2_0x52af75(0x2a7),a2_0x52af75(0x10c))[a2_0x52af75(0x274)]('--rule\x20<json>',a2_0x52af75(0x372))[a2_0x52af75(0x274)]('--rule-file\x20<file>',a2_0x52af75(0x1c1))[a2_0x52af75(0x274)]('--folder\x20<name>',a2_0x52af75(0x1bd))[a2_0x52af75(0x274)](a2_0x52af75(0x126),a2_0x52af75(0x377))[a2_0x52af75(0x2d5)](async(_0x1b8724,_0x75fe2e)=>{const _0xad674c=a2_0x52af75,_0x43e788=new SegmentUpdateCommand(),_0x278fed=program['opts'](),_0x47eba2=await createTDXInstance(_0x278fed),_0x38d8fc=await _0x43e788[_0xad674c(0x312)]({'options':{..._0x278fed,..._0x75fe2e},'args':[_0x1b8724],'tdx':_0x47eba2});gracefulExit(_0x38d8fc);});const parentCmd=segmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x30b),{'hidden':!![]})['description'](a2_0x52af75(0x11a)),parentListAction=async(_0x144601,_0x32e757)=>{const _0x927f51=a2_0x52af75,_0x5557dd=new ParentSegmentListCommand(),_0x3764d5=program[_0x927f51(0x341)](),_0x29aaa6=await createTDXInstance(_0x3764d5),_0x40de19=await _0x5557dd[_0x927f51(0x312)]({'options':{..._0x3764d5,..._0x32e757},'args':_0x144601?[_0x144601]:[],'tdx':_0x29aaa6});gracefulExit(_0x40de19);};parentCmd['command']('list\x20[pattern]')[a2_0x52af75(0x36b)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x52af75(0x2d5)](parentListAction),segmentCmd['command'](a2_0x52af75(0x19d),{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')['action'](parentListAction),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x244))['description'](a2_0x52af75(0x1c0))[a2_0x52af75(0x274)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x52af75(0x2d5)](async(_0x2cebfa,_0x5acce0)=>{const _0x2fdc4f=new ParentSegmentPullCommand(),_0x2d5bb9=program['opts'](),_0x3fd2da=await createTDXInstance(_0x2d5bb9),_0x4cb77e=await _0x2fdc4f['run']({'options':{..._0x2d5bb9,..._0x5acce0},'args':_0x2cebfa?[_0x2cebfa]:[],'tdx':_0x3fd2da});gracefulExit(_0x4cb77e);}),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x35f))['description'](a2_0x52af75(0x203))[a2_0x52af75(0x2d5)](async(_0x48f1ec,_0x4d68ab)=>{const _0x1bb42e=a2_0x52af75,_0x275fb0=new ParentSegmentPushCommand(),_0x15ed49=program[_0x1bb42e(0x341)](),_0x4a7353=await createTDXInstance(_0x15ed49),_0x272b7e=await _0x275fb0['run']({'options':{..._0x15ed49,..._0x4d68ab},'args':_0x48f1ec?[_0x48f1ec]:[],'tdx':_0x4a7353});gracefulExit(_0x272b7e);}),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x10b))[a2_0x52af75(0x36b)](a2_0x52af75(0x115))[a2_0x52af75(0x274)]('--master',a2_0x52af75(0x2d0))['option'](a2_0x52af75(0x304),a2_0x52af75(0x1b4))[a2_0x52af75(0x274)](a2_0x52af75(0x275),a2_0x52af75(0x3bf))[a2_0x52af75(0x274)]('--enriched',a2_0x52af75(0x177))[a2_0x52af75(0x274)](a2_0x52af75(0x22f),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x52af75(0x39c))[a2_0x52af75(0x2d5)](async(_0x3e6d03,_0x1cafc6)=>{const _0x54f0bd=new ParentSegmentValidateCommand(),_0x3bba3e=program['opts'](),_0x845c2c=await createTDXInstance(_0x3bba3e),_0xbd5e93=await _0x54f0bd['run']({'options':{..._0x3bba3e,..._0x1cafc6},'args':_0x3e6d03?[_0x3e6d03]:[],'tdx':_0x845c2c});gracefulExit(_0xbd5e93);}),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x297))[a2_0x52af75(0x36b)](a2_0x52af75(0x33e))[a2_0x52af75(0x274)]('--master',a2_0x52af75(0x149))['option'](a2_0x52af75(0x304),a2_0x52af75(0x3a5))[a2_0x52af75(0x274)](a2_0x52af75(0x275),a2_0x52af75(0x1ca))[a2_0x52af75(0x274)](a2_0x52af75(0x384),a2_0x52af75(0x33d))['option'](a2_0x52af75(0x22f),a2_0x52af75(0x347),a2_0x52af75(0x39c))[a2_0x52af75(0x2d5)](async(_0x1a2307,_0xeed575)=>{const _0x49915b=a2_0x52af75,_0x4caacc=new ParentSegmentPreviewCommand(),_0x5ca3ba=program[_0x49915b(0x341)](),_0x4520fd=await createTDXInstance(_0x5ca3ba),_0x2c39e6=await _0x4caacc['run']({'options':{..._0x5ca3ba,..._0xeed575},'args':_0x1a2307?[_0x1a2307]:[],'tdx':_0x4520fd});gracefulExit(_0x2c39e6);}),parentCmd['command'](a2_0x52af75(0x14d))['description'](a2_0x52af75(0x1f5))['action'](async(_0x35a3c8,_0xf2c33a)=>{const _0x492215=a2_0x52af75,_0x15b56c=new ParentSegmentRunCommand(),_0x9ca72d=program['opts'](),_0x33aedc=await createTDXInstance(_0x9ca72d),_0x1f450a=await _0x15b56c[_0x492215(0x312)]({'options':{..._0x9ca72d,..._0xf2c33a},'args':_0x35a3c8?[_0x35a3c8]:[],'tdx':_0x33aedc});gracefulExit(_0x1f450a);});const parentSegmentCmd=program['command'](a2_0x52af75(0x103))[a2_0x52af75(0x1aa)]('ps')[a2_0x52af75(0x36b)](a2_0x52af75(0x3a6));parentSegmentCmd['command'](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x370))[a2_0x52af75(0x2d5)](parentListAction),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x244))[a2_0x52af75(0x36b)]('Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x52af75(0x274)](a2_0x52af75(0x1cd),a2_0x52af75(0x1fd))[a2_0x52af75(0x274)](a2_0x52af75(0x2db),'Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')['action'](async(_0xc828cc,_0x131186)=>{const _0x393324=a2_0x52af75,_0x57900e=new ParentSegmentPullCommand(),_0x34105d=program[_0x393324(0x341)](),_0x486dc0=await createTDXInstance(_0x34105d),_0x57c5ef=await _0x57900e[_0x393324(0x312)]({'options':{..._0x34105d,..._0x131186},'args':_0xc828cc?[_0xc828cc]:[],'tdx':_0x486dc0});gracefulExit(_0x57c5ef);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x52af75(0x36b)](a2_0x52af75(0x255))['action'](async(_0x2cd7b8,_0x33bab6)=>{const _0x1af15c=a2_0x52af75,_0x2ae993=new ParentSegmentPushCommand(),_0x4be23f=program[_0x1af15c(0x341)](),_0x1d5821=await createTDXInstance(_0x4be23f),_0x53e447=await _0x2ae993[_0x1af15c(0x312)]({'options':{..._0x4be23f,..._0x33bab6},'args':_0x2cd7b8?[_0x2cd7b8]:[],'tdx':_0x1d5821});gracefulExit(_0x53e447);}),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x106))[a2_0x52af75(0x36b)](a2_0x52af75(0x115))['option'](a2_0x52af75(0x157),a2_0x52af75(0x2d0))[a2_0x52af75(0x274)](a2_0x52af75(0x304),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x52af75(0x274)](a2_0x52af75(0x275),a2_0x52af75(0x3bf))['option']('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')['option'](a2_0x52af75(0x22f),a2_0x52af75(0x347),a2_0x52af75(0x39c))[a2_0x52af75(0x2d5)](async(_0x4938b7,_0x4bf850)=>{const _0x2ebda1=a2_0x52af75,_0x3ea969=new ParentSegmentValidateCommand(),_0x4e0a21=program[_0x2ebda1(0x341)](),_0x2d219a=await createTDXInstance(_0x4e0a21),_0x258faa=await _0x3ea969[_0x2ebda1(0x312)]({'options':{..._0x4e0a21,..._0x4bf850},'args':_0x4938b7?[_0x4938b7]:[],'tdx':_0x2d219a});gracefulExit(_0x258faa);}),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x228))[a2_0x52af75(0x36b)](a2_0x52af75(0x33e))[a2_0x52af75(0x274)](a2_0x52af75(0x157),a2_0x52af75(0x149))[a2_0x52af75(0x274)](a2_0x52af75(0x304),a2_0x52af75(0x3a5))['option'](a2_0x52af75(0x275),a2_0x52af75(0x1ca))[a2_0x52af75(0x274)](a2_0x52af75(0x384),a2_0x52af75(0x33d))[a2_0x52af75(0x274)](a2_0x52af75(0x22f),a2_0x52af75(0x347),a2_0x52af75(0x39c))[a2_0x52af75(0x2d5)](async(_0x44654b,_0x310ad7)=>{const _0xbdc09c=a2_0x52af75,_0x30bfa3=new ParentSegmentPreviewCommand(),_0x2c0697=program[_0xbdc09c(0x341)](),_0x3f708a=await createTDXInstance(_0x2c0697),_0x12434f=await _0x30bfa3[_0xbdc09c(0x312)]({'options':{..._0x2c0697,..._0x310ad7},'args':_0x44654b?[_0x44654b]:[],'tdx':_0x3f708a});gracefulExit(_0x12434f);}),parentSegmentCmd['command'](a2_0x52af75(0x14d))[a2_0x52af75(0x36b)](a2_0x52af75(0x1f5))[a2_0x52af75(0x2d5)](async(_0x9afa3f,_0x448587)=>{const _0x2a173c=new ParentSegmentRunCommand(),_0x1efb8e=program['opts'](),_0x4967b3=await createTDXInstance(_0x1efb8e),_0x41980e=await _0x2a173c['run']({'options':{..._0x1efb8e,..._0x448587},'args':_0x9afa3f?[_0x9afa3f]:[],'tdx':_0x4967b3});gracefulExit(_0x41980e);}),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3b8))[a2_0x52af75(0x36b)](a2_0x52af75(0x18d))[a2_0x52af75(0x274)](a2_0x52af75(0x1c8),a2_0x52af75(0x24e))[a2_0x52af75(0x274)](a2_0x52af75(0x129),'Output\x20as\x20JSON\x20Lines')[a2_0x52af75(0x2d5)](async(_0x28dbb5,_0xf324e3)=>{const _0x2bb176=a2_0x52af75,_0x48fc5d=new ParentSegmentFieldsCommand(),_0xc1b7a6=program[_0x2bb176(0x341)](),_0x58a9ca=await createTDXInstance(_0xc1b7a6),_0x3fd2c7=await _0x48fc5d[_0x2bb176(0x312)]({'options':{..._0xc1b7a6,..._0xf324e3},'args':_0x28dbb5?[_0x28dbb5]:[],'tdx':_0x58a9ca});gracefulExit(_0x3fd2c7);}),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x369))[a2_0x52af75(0x36b)](a2_0x52af75(0x298))[a2_0x52af75(0x274)]('-w,\x20--web',a2_0x52af75(0x2e0))[a2_0x52af75(0x274)](a2_0x52af75(0x1c8),a2_0x52af75(0x24e))['option'](a2_0x52af75(0x129),a2_0x52af75(0x1d9))[a2_0x52af75(0x2d5)](async(_0x291ab5,_0x51c009)=>{const _0x368f32=a2_0x52af75,_0x309862=new ParentSegmentViewCommand(),_0x553c10=program[_0x368f32(0x341)](),_0x46fa1e=await createTDXInstance(_0x553c10),_0x4ec591=await _0x309862[_0x368f32(0x312)]({'options':{..._0x553c10,..._0x51c009},'args':_0x291ab5?[_0x291ab5]:[],'tdx':_0x46fa1e});gracefulExit(_0x4ec591);}),parentSegmentCmd['command'](a2_0x52af75(0x3b7))[a2_0x52af75(0x36b)](a2_0x52af75(0x191))[a2_0x52af75(0x274)](a2_0x52af75(0x1cd),a2_0x52af75(0x1fd))[a2_0x52af75(0x274)](a2_0x52af75(0x1c8),'Output\x20as\x20JSON')['option'](a2_0x52af75(0x129),a2_0x52af75(0x1d9))[a2_0x52af75(0x2d5)](async(_0x5b2c25,_0xa18765)=>{const _0xd5cf36=a2_0x52af75,_0x4fd5d8=new ParentSegmentDescCommand(),_0x309639=program[_0xd5cf36(0x341)](),_0x4ff65d=await createTDXInstance(_0x309639),_0x459e21=await _0x4fd5d8[_0xd5cf36(0x312)]({'options':{..._0x309639,..._0xa18765},'args':_0x5b2c25?[_0x5b2c25]:[],'tdx':_0x4ff65d});gracefulExit(_0x459e21);}),parentSegmentCmd[a2_0x52af75(0x35c)]('sql\x20[name]')[a2_0x52af75(0x36b)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x52af75(0x274)](a2_0x52af75(0x1c8),a2_0x52af75(0x24e))[a2_0x52af75(0x274)]('--jsonl',a2_0x52af75(0x1d9))[a2_0x52af75(0x2d5)](async(_0x5de953,_0x5053b2)=>{const _0x319344=a2_0x52af75,_0x56c6e9=new ParentSegmentSQLCommand(),_0x771702=program[_0x319344(0x341)](),_0x439529=await createTDXInstance(_0x771702),_0x4936ae=await _0x56c6e9['run']({'options':{..._0x771702,..._0x5053b2},'args':_0x5de953?[_0x5de953]:[],'tdx':_0x439529});gracefulExit(_0x4936ae);}),parentSegmentCmd['command'](a2_0x52af75(0x143))[a2_0x52af75(0x36b)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x52af75(0x274)](a2_0x52af75(0x37f),a2_0x52af75(0x217))['option']('--json',a2_0x52af75(0x24e))[a2_0x52af75(0x274)](a2_0x52af75(0x129),a2_0x52af75(0x1d9))['action'](async(_0x2df1fc,_0xc47a22)=>{const _0x3639ac=a2_0x52af75,_0x6f583b=new ParentSegmentShowCommand(),_0x3264e9=program['opts'](),_0x39503b=await createTDXInstance(_0x3264e9),_0x2436ff=await _0x6f583b[_0x3639ac(0x312)]({'options':{..._0x3264e9,..._0xc47a22},'args':_0x2df1fc?[_0x2df1fc]:[],'tdx':_0x39503b});gracefulExit(_0x2436ff);}),parentSegmentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x219))[a2_0x52af75(0x36b)](a2_0x52af75(0x194))['action'](async(_0x2fcc44,_0x1c6b03)=>{const _0x6668ad=a2_0x52af75,_0x274277=new UseCommand(),_0x2a7632=program[_0x6668ad(0x341)](),_0x43d84c=_0x2fcc44?[_0x6668ad(0x265),_0x2fcc44]:[],_0x596508=await _0x274277['run']({'options':{..._0x2a7632,..._0x1c6b03},'args':_0x43d84c,'tdx':null});gracefulExit(_0x596508);});const psRtCmd=parentSegmentCmd[a2_0x52af75(0x35c)]('rt')[a2_0x52af75(0x36b)](a2_0x52af75(0x207));psRtCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x167))['action'](async(_0x3a0835,_0x3dffc8)=>{const _0x7ea168=a2_0x52af75,_0x3633d8=new PSRtListCommand(),_0x149be7=program[_0x7ea168(0x341)](),_0x197d0d=await createTDXInstance(_0x149be7),_0xf07cc2=await _0x3633d8['run']({'options':{..._0x149be7,..._0x3dffc8},'args':_0x3a0835?[_0x3a0835]:[],'tdx':_0x197d0d});gracefulExit(_0xf07cc2);}),psRtCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x106))[a2_0x52af75(0x36b)](a2_0x52af75(0x201))[a2_0x52af75(0x2d5)](async(_0x59cb44,_0x122855)=>{const _0xd6ea71=a2_0x52af75,_0x4ff44a=new PSRtValidateCommand(),_0x3b09a1=program[_0xd6ea71(0x341)](),_0x303eab=await createTDXInstance(_0x3b09a1),_0x55fecc=await _0x4ff44a['run']({'options':{..._0x3b09a1,..._0x122855},'args':_0x59cb44?[_0x59cb44]:[],'tdx':_0x303eab});gracefulExit(_0x55fecc);});const parentRtCmd=parentCmd[a2_0x52af75(0x35c)]('rt',{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x207));parentRtCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x167))[a2_0x52af75(0x2d5)](async(_0x43ab34,_0x2d2755)=>{const _0x11a263=a2_0x52af75,_0x1e1bee=new PSRtListCommand(),_0x241ef6=program[_0x11a263(0x341)](),_0x2c29c7=await createTDXInstance(_0x241ef6),_0x3beaa4=await _0x1e1bee[_0x11a263(0x312)]({'options':{..._0x241ef6,..._0x2d2755},'args':_0x43ab34?[_0x43ab34]:[],'tdx':_0x2c29c7});gracefulExit(_0x3beaa4);}),parentRtCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x106))[a2_0x52af75(0x36b)](a2_0x52af75(0x201))[a2_0x52af75(0x2d5)](async(_0x14a48,_0x1ed5e1)=>{const _0x3a3e34=a2_0x52af75,_0x41941b=new PSRtValidateCommand(),_0xc5a8bd=program[_0x3a3e34(0x341)](),_0x192a37=await createTDXInstance(_0xc5a8bd),_0xf3b81e=await _0x41941b[_0x3a3e34(0x312)]({'options':{..._0xc5a8bd,..._0x1ed5e1},'args':_0x14a48?[_0x14a48]:[],'tdx':_0x192a37});gracefulExit(_0xf3b81e);});const psPzCmd=parentSegmentCmd[a2_0x52af75(0x35c)]('pz')[a2_0x52af75(0x36b)]('Personalization\x20service\x20management');psPzCmd[a2_0x52af75(0x35c)]('list\x20[name]')[a2_0x52af75(0x36b)](a2_0x52af75(0x232))['action'](async(_0x3848b3,_0x127776)=>{const _0xb7c0ee=a2_0x52af75,_0x3fb1d7=new PSPzListCommand(),_0xf349d6=program[_0xb7c0ee(0x341)](),_0x10847c=await createTDXInstance(_0xf349d6),_0x48bd44=await _0x3fb1d7[_0xb7c0ee(0x312)]({'options':{..._0xf349d6,..._0x127776},'args':_0x3848b3?[_0x3848b3]:[],'tdx':_0x10847c});gracefulExit(_0x48bd44);}),psPzCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1b5))['description'](a2_0x52af75(0x1ef))[a2_0x52af75(0x2d5)](async(_0x3a2b7e,_0x40b1da)=>{const _0x309126=a2_0x52af75,_0x4adef1=new PSPzInitCommand(),_0x46cf7d=program[_0x309126(0x341)](),_0x42968e=await createTDXInstance(_0x46cf7d),_0x337879=await _0x4adef1[_0x309126(0x312)]({'options':{..._0x46cf7d,..._0x40b1da},'args':_0x3a2b7e?[_0x3a2b7e]:[],'tdx':_0x42968e});gracefulExit(_0x337879);});const parentPzCmd=parentCmd[a2_0x52af75(0x35c)]('pz',{'hidden':!![]})[a2_0x52af75(0x36b)]('Personalization\x20service\x20management');parentPzCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x306))[a2_0x52af75(0x36b)](a2_0x52af75(0x232))[a2_0x52af75(0x2d5)](async(_0xb7dc5f,_0x18c141)=>{const _0x53cbf2=a2_0x52af75,_0xce4293=new PSPzListCommand(),_0x5861cf=program[_0x53cbf2(0x341)](),_0x38b530=await createTDXInstance(_0x5861cf),_0x2342df=await _0xce4293[_0x53cbf2(0x312)]({'options':{..._0x5861cf,..._0x18c141},'args':_0xb7dc5f?[_0xb7dc5f]:[],'tdx':_0x38b530});gracefulExit(_0x2342df);}),parentPzCmd[a2_0x52af75(0x35c)]('init\x20[name]')[a2_0x52af75(0x36b)](a2_0x52af75(0x1ef))[a2_0x52af75(0x2d5)](async(_0x26b5a5,_0x1c056d)=>{const _0x515805=a2_0x52af75,_0x5d36fb=new PSPzInitCommand(),_0x55e83f=program[_0x515805(0x341)](),_0x2a58ec=await createTDXInstance(_0x55e83f),_0x4a7672=await _0x5d36fb[_0x515805(0x312)]({'options':{..._0x55e83f,..._0x1c056d},'args':_0x26b5a5?[_0x26b5a5]:[],'tdx':_0x2a58ec});gracefulExit(_0x4a7672);}),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2ec))[a2_0x52af75(0x36b)](a2_0x52af75(0x249))[a2_0x52af75(0x2d4)](a2_0x52af75(0x25f),a2_0x52af75(0x2d1))['requiredOption'](a2_0x52af75(0x2c9),'Master\x20table\x20name')[a2_0x52af75(0x274)](a2_0x52af75(0x2a7),a2_0x52af75(0x281))[a2_0x52af75(0x274)](a2_0x52af75(0x141),a2_0x52af75(0x345))[a2_0x52af75(0x274)](a2_0x52af75(0x113),a2_0x52af75(0x2c3))[a2_0x52af75(0x274)](a2_0x52af75(0x182),a2_0x52af75(0x1e3))[a2_0x52af75(0x274)](a2_0x52af75(0x2d2),a2_0x52af75(0x3b2))[a2_0x52af75(0x274)](a2_0x52af75(0x367),a2_0x52af75(0x2b4))[a2_0x52af75(0x274)](a2_0x52af75(0x36e),'Behaviors\x20as\x20JSON\x20string')['option'](a2_0x52af75(0x1a0),a2_0x52af75(0x231))[a2_0x52af75(0x274)](a2_0x52af75(0x37a),'Customer\x20group\x20as\x20JSON\x20string')[a2_0x52af75(0x274)](a2_0x52af75(0x38f),a2_0x52af75(0x331))['action'](async(_0x1734b7,_0x4504d3)=>{const _0x1ac552=a2_0x52af75,_0x25b8f9=new ParentSegmentCreateCommand(),_0x9bf3a2=program['opts'](),_0x2af846=await createTDXInstance(_0x9bf3a2),_0x53e772=await _0x25b8f9[_0x1ac552(0x312)]({'options':{..._0x9bf3a2,..._0x4504d3},'args':[_0x1734b7],'tdx':_0x2af846});gracefulExit(_0x53e772);}),parentCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x392))[a2_0x52af75(0x36b)](a2_0x52af75(0x27e))[a2_0x52af75(0x274)]('--description\x20<text>','Updated\x20description')['option']('--schedule-type\x20<type>',a2_0x52af75(0x18a))['option'](a2_0x52af75(0x113),a2_0x52af75(0x242))['option'](a2_0x52af75(0x182),a2_0x52af75(0x284))[a2_0x52af75(0x274)]('--add-attributes\x20<json>',a2_0x52af75(0x36c))[a2_0x52af75(0x274)]('--add-attributes-file\x20<file>',a2_0x52af75(0x221))[a2_0x52af75(0x274)](a2_0x52af75(0x2ea),a2_0x52af75(0x15e))[a2_0x52af75(0x274)](a2_0x52af75(0x110),a2_0x52af75(0x14f))['action'](async(_0x48045b,_0x374f87)=>{const _0x35b3d0=a2_0x52af75,_0x1aa7b2=new ParentSegmentUpdateCommand(),_0x282b4f=program[_0x35b3d0(0x341)](),_0x3eaa7b=await createTDXInstance(_0x282b4f),_0x4f9e57=await _0x1aa7b2[_0x35b3d0(0x312)]({'options':{..._0x282b4f,..._0x374f87},'args':[_0x48045b],'tdx':_0x3eaa7b});gracefulExit(_0x4f9e57);}),folderCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1a7))['description'](a2_0x52af75(0x2ae))[a2_0x52af75(0x274)](a2_0x52af75(0x2a7),a2_0x52af75(0x3c1))[a2_0x52af75(0x274)](a2_0x52af75(0x2a6),a2_0x52af75(0x197))['action'](async(_0x37ccb1,_0x2b1a0a,_0x805764)=>{const _0x15117d=a2_0x52af75,_0x559f24=new SegmentFolderCreateCommand(),_0x288ba1=program[_0x15117d(0x341)](),_0x3d3d64=await createTDXInstance(_0x288ba1),_0x4cae47=await _0x559f24[_0x15117d(0x312)]({'options':{..._0x288ba1,..._0x805764},'args':[_0x37ccb1,_0x2b1a0a],'tdx':_0x3d3d64});gracefulExit(_0x4cae47);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x38c))['description'](a2_0x52af75(0x1e1))[a2_0x52af75(0x2d5)](async(_0x3419e8,_0x5ecf22)=>{const _0x4abfdf=a2_0x52af75,_0x561860=new ActivationsCommand(),_0xf7cdc9=program[_0x4abfdf(0x341)](),_0x5f3e14=await createTDXInstance(_0xf7cdc9),_0x225676=await _0x561860[_0x4abfdf(0x312)]({'options':{..._0xf7cdc9,..._0x5ecf22},'args':[_0x3419e8],'tdx':_0x5f3e14});gracefulExit(_0x225676);});const workflowCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x181))[a2_0x52af75(0x1aa)]('wf')['description']('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd[a2_0x52af75(0x35c)]('project')['description'](a2_0x52af75(0x2b6)),wfProjectListAction=async(_0x3b8956,_0x56034e)=>{const _0x322394=a2_0x52af75,_0x2b1adb=new WorkflowProjectsCommand(),_0x2b5dc6=program[_0x322394(0x341)](),_0x5fbefd=await createTDXInstance(_0x2b5dc6),_0x7dec1a=await _0x2b1adb[_0x322394(0x312)]({'options':{..._0x2b5dc6,..._0x56034e},'args':_0x3b8956?[_0x3b8956]:[],'tdx':_0x5fbefd});gracefulExit(_0x7dec1a);};wfProjectCmd['command'](a2_0x52af75(0x332))[a2_0x52af75(0x36b)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x52af75(0x2d5)](wfProjectListAction),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x15d))[a2_0x52af75(0x36b)](a2_0x52af75(0x214))[a2_0x52af75(0x2d5)](wfProjectListAction);const wfWorkflowListAction=async(_0x21b23,_0x515640)=>{const _0x2146a7=a2_0x52af75,_0x3e9cf7=new WorkflowWorkflowsCommand(),_0x50a97f=program[_0x2146a7(0x341)](),_0x16b3ee=await createTDXInstance(_0x50a97f),_0x2c3270=await _0x3e9cf7[_0x2146a7(0x312)]({'options':{..._0x50a97f,..._0x515640},'args':_0x21b23?[_0x21b23]:[],'tdx':_0x16b3ee});gracefulExit(_0x2c3270);};workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x311))[a2_0x52af75(0x36b)]('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x52af75(0x2d5)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x29e))[a2_0x52af75(0x36b)](a2_0x52af75(0x25d)),wfSessionListAction=async(_0xbdb867,_0x21c4be)=>{const _0x48066b=a2_0x52af75,_0x56642e=new WorkflowSessionsCommand(),_0x5531d1=program[_0x48066b(0x341)](),_0x262b9f=await createTDXInstance(_0x5531d1),_0x585e49=await _0x56642e[_0x48066b(0x312)]({'options':{..._0x5531d1,..._0x21c4be},'args':_0xbdb867?[_0xbdb867]:[],'tdx':_0x262b9f});gracefulExit(_0x585e49);};wfSessionCmd['command'](a2_0x52af75(0x2ed))[a2_0x52af75(0x36b)](a2_0x52af75(0x395))[a2_0x52af75(0x274)](a2_0x52af75(0x2e8),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x52af75(0x274)]('--from\x20<timestamp>',a2_0x52af75(0x344))['option'](a2_0x52af75(0x2c1),a2_0x52af75(0x134))[a2_0x52af75(0x2d5)](wfSessionListAction),workflowCmd['command'](a2_0x52af75(0x34c))[a2_0x52af75(0x36b)](a2_0x52af75(0x24b))[a2_0x52af75(0x274)](a2_0x52af75(0x2e8),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')['option']('--from\x20<timestamp>',a2_0x52af75(0x344))['option']('--to\x20<timestamp>',a2_0x52af75(0x134))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x100a24,_0x53da13)=>{const _0x1d1a2b=a2_0x52af75,_0x3f9b15=new WorkflowAttemptsCommand(),_0x456238=program[_0x1d1a2b(0x341)](),_0x1b80e2=await createTDXInstance(_0x456238),_0x159d97=await _0x3f9b15[_0x1d1a2b(0x312)]({'options':{..._0x456238,..._0x53da13},'args':_0x100a24?[_0x100a24]:[],'tdx':_0x1b80e2});gracefulExit(_0x159d97);},attemptCmd=workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x340))[a2_0x52af75(0x36b)](a2_0x52af75(0x353))[a2_0x52af75(0x24a)](a2_0x52af75(0x120),a2_0x52af75(0x3c3))['argument']('[action]',a2_0x52af75(0x335))[a2_0x52af75(0x24a)]('[task-name]',a2_0x52af75(0x2d3))[a2_0x52af75(0x274)](a2_0x52af75(0x31e),a2_0x52af75(0x1dd))[a2_0x52af75(0x274)](a2_0x52af75(0x39b),a2_0x52af75(0x2fe))[a2_0x52af75(0x274)](a2_0x52af75(0x171),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x52af75(0x274)]('--params\x20<json>',a2_0x52af75(0x137))[a2_0x52af75(0x274)]('--force',a2_0x52af75(0x2c5))['option'](a2_0x52af75(0x21c),a2_0x52af75(0x1a8))[a2_0x52af75(0x2d5)](async(_0x5f090f,_0x158a13,_0x5adfec,_0x214dd5)=>{const _0x197634=a2_0x52af75;if(_0x5f090f===_0x197634(0x1da)){await wfAttemptListAction(_0x158a13,_0x214dd5);return;}if(!_0x5f090f){attemptCmd[_0x197634(0x1b7)]();return;}const _0x13a143=program['opts'](),_0x4ad3da=await createTDXInstance(_0x13a143);let _0x22f74c=0x0;if(!_0x158a13){const _0x5214b4=new WorkflowAttemptCommand();_0x22f74c=await _0x5214b4[_0x197634(0x312)]({'options':{..._0x13a143,..._0x214dd5},'args':[_0x5f090f],'tdx':_0x4ad3da});}else{if(_0x158a13==='logs'){const _0x5a4a9a=new WorkflowLogsCommand();_0x22f74c=await _0x5a4a9a['run']({'options':{..._0x13a143,..._0x214dd5},'args':_0x5adfec?[_0x5f090f,_0x5adfec]:[_0x5f090f],'tdx':_0x4ad3da});}else{if(_0x158a13===_0x197634(0x294)){const _0x146029=new WorkflowTasksCommand();_0x22f74c=await _0x146029[_0x197634(0x312)]({'options':{..._0x13a143,..._0x214dd5},'args':[_0x5f090f],'tdx':_0x4ad3da});}else{if(_0x158a13===_0x197634(0x12a)){const _0xb5bdbe=new WorkflowKillCommand();_0x22f74c=await _0xb5bdbe[_0x197634(0x312)]({'options':{..._0x13a143,..._0x214dd5},'args':[_0x5f090f],'tdx':_0x4ad3da});}else{if(_0x158a13===_0x197634(0x3a3)){const _0x323b9a=new WorkflowRetryCommand();_0x22f74c=await _0x323b9a[_0x197634(0x312)]({'options':{..._0x13a143,..._0x214dd5},'args':[_0x197634(0x155)+_0x5f090f],'tdx':_0x4ad3da});}else console['error'](_0x197634(0x391)+_0x158a13),console[_0x197634(0x173)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x22f74c=0x1;}}}}gracefulExit(_0x22f74c);});attemptCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2ed))[a2_0x52af75(0x36b)](a2_0x52af75(0x39f))[a2_0x52af75(0x274)](a2_0x52af75(0x21c),a2_0x52af75(0x2a8))[a2_0x52af75(0x2d5)](wfAttemptListAction),workflowCmd[a2_0x52af75(0x35c)]('attempts\x20[project]')['description'](a2_0x52af75(0x2b3))[a2_0x52af75(0x274)](a2_0x52af75(0x21c),a2_0x52af75(0x2a8))[a2_0x52af75(0x2d5)](wfAttemptListAction),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3bd))[a2_0x52af75(0x36b)]('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')['option'](a2_0x52af75(0x2f3),a2_0x52af75(0x20c))[a2_0x52af75(0x274)](a2_0x52af75(0x2dc),a2_0x52af75(0x276))[a2_0x52af75(0x274)](a2_0x52af75(0x1d1),a2_0x52af75(0x271))[a2_0x52af75(0x2d5)](async(_0x46c3ef,_0x7fc971)=>{const _0x5ad5cb=a2_0x52af75,_0x141076=new WorkflowTimelineCommand(),_0x3ca904=program[_0x5ad5cb(0x341)](),_0x3d5dec=await createTDXInstance(_0x3ca904),_0x211256=await _0x141076['run']({'options':{..._0x3ca904,..._0x7fc971},'args':_0x46c3ef?[_0x46c3ef]:[],'tdx':_0x3d5dec});gracefulExit(_0x211256);}),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2f5))['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x52af75(0x274)](a2_0x52af75(0x1b9),a2_0x52af75(0x147))['option']('--params\x20<json>',a2_0x52af75(0x360))[a2_0x52af75(0x2d5)](async(_0x22528a,_0x7b4981)=>{const _0x20bea9=a2_0x52af75,_0x385889=new WorkflowRetryCommand(),_0x48b5f8=program['opts'](),_0x4ef2df=await createTDXInstance(_0x48b5f8),_0x4961c0=await _0x385889[_0x20bea9(0x312)]({'options':{..._0x48b5f8,..._0x7b4981},'args':[_0x22528a],'tdx':_0x4ef2df});gracefulExit(_0x4961c0);}),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x23c))['description'](a2_0x52af75(0x239))[a2_0x52af75(0x274)]('--param\x20<key=value>',a2_0x52af75(0x180),(_0x29fa5d,_0x5f94ec=[])=>[..._0x5f94ec,_0x29fa5d],[])[a2_0x52af75(0x274)](a2_0x52af75(0x300),a2_0x52af75(0x1d3))[a2_0x52af75(0x2d5)](async(_0x5e608a,_0xea0db4)=>{const _0x441f8c=new WorkflowRunCommand(),_0x362c69=program['opts'](),_0x29b5ce=await createTDXInstance(_0x362c69),_0x3e56f4=await _0x441f8c['run']({'options':{..._0x362c69,..._0xea0db4},'args':_0x5e608a?[_0x5e608a]:[],'tdx':_0x29b5ce});gracefulExit(_0x3e56f4);}),workflowCmd['command']('download\x20<project-name>\x20[output-dir]')[a2_0x52af75(0x36b)](a2_0x52af75(0x2a3))[a2_0x52af75(0x274)](a2_0x52af75(0x23e),a2_0x52af75(0x2f9))[a2_0x52af75(0x2d5)](async(_0x8a955b,_0x27cd56,_0x648042)=>{const _0x1f5a00=a2_0x52af75,_0x3b3fef=new WorkflowDownloadCommand(),_0x2e4a8c=program[_0x1f5a00(0x341)](),_0x589ea5=await createTDXInstance(_0x2e4a8c),_0x27cf74=await _0x3b3fef[_0x1f5a00(0x312)]({'options':{..._0x2e4a8c,..._0x648042},'args':[_0x8a955b,_0x27cd56||'.'],'tdx':_0x589ea5});gracefulExit(_0x27cf74);}),workflowCmd['command'](a2_0x52af75(0x18b))[a2_0x52af75(0x36b)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')['option'](a2_0x52af75(0x23e),a2_0x52af75(0x30f))[a2_0x52af75(0x274)]('--dry-run',a2_0x52af75(0x193))[a2_0x52af75(0x2d5)](async(_0x10a9a3,_0x3ddce9,_0x184ef1)=>{const _0x243950=a2_0x52af75,_0x4045a5=new WorkflowPullCommand(),_0x13f23e=program[_0x243950(0x341)](),_0x3f3c16=await createTDXInstance(_0x13f23e),_0x35abc3=await _0x4045a5[_0x243950(0x312)]({'options':{..._0x13f23e,..._0x184ef1},'args':_0x3ddce9?[_0x10a9a3,_0x3ddce9]:[_0x10a9a3],'tdx':_0x3f3c16});gracefulExit(_0x35abc3);}),workflowCmd['command'](a2_0x52af75(0x144))[a2_0x52af75(0x36b)](a2_0x52af75(0x1dc))[a2_0x52af75(0x274)](a2_0x52af75(0x23e),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x322))[a2_0x52af75(0x274)](a2_0x52af75(0x1ec),a2_0x52af75(0x1f8))[a2_0x52af75(0x2d5)](async(_0x14b889,_0x1c6093)=>{const _0x6a4f6d=a2_0x52af75,_0x366439=new WorkflowPushCommand(),_0x3e06a3=program[_0x6a4f6d(0x341)](),_0x532849=await createTDXInstance(_0x3e06a3),_0x52000d=await _0x366439[_0x6a4f6d(0x312)]({'options':{..._0x3e06a3,..._0x1c6093},'args':_0x14b889?[_0x14b889]:[],'tdx':_0x532849});gracefulExit(_0x52000d);}),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x262))[a2_0x52af75(0x36b)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option'](a2_0x52af75(0x20e),a2_0x52af75(0x2f2))[a2_0x52af75(0x274)](a2_0x52af75(0x23e),a2_0x52af75(0x146))[a2_0x52af75(0x274)](a2_0x52af75(0x1ec),a2_0x52af75(0x1f8))[a2_0x52af75(0x2d5)](async(_0x1dcc04,_0x4403cd)=>{const _0x2a89c0=a2_0x52af75,_0x1228d5=new WorkflowUploadCommand(),_0x2016c7=program['opts'](),_0x210009=await createTDXInstance(_0x2016c7),_0x1ee5fd=await _0x1228d5[_0x2a89c0(0x312)]({'options':{..._0x2016c7,..._0x4403cd},'args':_0x1dcc04?[_0x1dcc04]:[],'tdx':_0x210009});gracefulExit(_0x1ee5fd);}),workflowCmd[a2_0x52af75(0x35c)]('clone\x20[source-dir]')[a2_0x52af75(0x36b)](a2_0x52af75(0x2b8))['option'](a2_0x52af75(0x20e),a2_0x52af75(0x12b))['option']('--revision\x20<revision>',a2_0x52af75(0x2c8))[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x259))[a2_0x52af75(0x274)]('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x52af75(0x2d5)](async(_0x3edbeb,_0x15766f)=>{const _0x2c1313=a2_0x52af75,_0xab4c40=new WorkflowCloneCommand(),_0x491079=program[_0x2c1313(0x341)](),_0x48c9bf=await createTDXInstance(_0x491079),_0x519c67=await _0xab4c40[_0x2c1313(0x312)]({'options':{..._0x491079,..._0x15766f},'args':_0x3edbeb?[_0x3edbeb]:[],'tdx':_0x48c9bf});gracefulExit(_0x519c67);}),workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x29b))['description'](a2_0x52af75(0x28c))['action'](async(_0x5426b9,_0x9cc756)=>{const _0x19d53d=a2_0x52af75,_0x3d7891=new WorkflowDeleteCommand(),_0x48162f=program[_0x19d53d(0x341)](),_0x595a03=await createTDXInstance(_0x48162f),_0x964585=await _0x3d7891[_0x19d53d(0x312)]({'options':{..._0x48162f,..._0x9cc756},'args':[_0x5426b9],'tdx':_0x595a03});gracefulExit(_0x964585);}),workflowCmd[a2_0x52af75(0x35c)]('use\x20[project]')[a2_0x52af75(0x36b)](a2_0x52af75(0x361))[a2_0x52af75(0x274)](a2_0x52af75(0x3b0),a2_0x52af75(0x364))[a2_0x52af75(0x2d5)](async(_0x43e753,_0x28beec)=>{const _0x2e7b04=a2_0x52af75,_0x12daf3=new WorkflowUseCommand(),_0x45fa0f=program[_0x2e7b04(0x341)](),_0x5d1075=await createTDXInstance(_0x45fa0f),_0x525120=await _0x12daf3['run']({'options':{..._0x45fa0f,..._0x28beec},'args':_0x43e753?[_0x43e753]:[],'tdx':_0x5d1075});gracefulExit(_0x525120);});const wfSecretsCmd=workflowCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x26d))[a2_0x52af75(0x36b)](a2_0x52af75(0x12c));wfSecretsCmd[a2_0x52af75(0x35c)]('list\x20[project]')[a2_0x52af75(0x36b)](a2_0x52af75(0x1f3))[a2_0x52af75(0x2d5)](async(_0xb3e681,_0x2deb1d)=>{const _0x357bec=a2_0x52af75,_0x3d01b1=new WorkflowSecretsListCommand(),_0x179e58=program['opts'](),_0x3b1355=await createTDXInstance(_0x179e58),_0x3ab94a=await _0x3d01b1[_0x357bec(0x312)]({'options':{..._0x179e58,..._0x2deb1d},'args':_0xb3e681?[_0xb3e681]:[],'tdx':_0x3b1355});gracefulExit(_0x3ab94a);}),wfSecretsCmd['command'](a2_0x52af75(0x172))[a2_0x52af75(0x36b)](a2_0x52af75(0x1e5))['action'](async(_0x1fd8f9,_0x3efc94)=>{const _0x15d431=a2_0x52af75,_0x29b02f=new WorkflowSecretsSetCommand(),_0x3b79ef=program['opts'](),_0x252871=await createTDXInstance(_0x3b79ef),_0x51ecf6=await _0x29b02f[_0x15d431(0x312)]({'options':{..._0x3b79ef,..._0x3efc94},'args':_0x1fd8f9,'tdx':_0x252871});gracefulExit(_0x51ecf6);}),wfSecretsCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x30d))[a2_0x52af75(0x36b)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x52af75(0x2d5)](async(_0x4a2a5f,_0x4c5758)=>{const _0x229646=a2_0x52af75,_0x3a1477=new WorkflowSecretsDeleteCommand(),_0x161fb9=program[_0x229646(0x341)](),_0x4fa68a=await createTDXInstance(_0x161fb9),_0x4acad4=await _0x3a1477[_0x229646(0x312)]({'options':{..._0x161fb9,..._0x4c5758},'args':_0x4a2a5f,'tdx':_0x4fa68a});gracefulExit(_0x4acad4);});const jobCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x1e0))[a2_0x52af75(0x36b)](a2_0x52af75(0x2e7)),jobListAction=async _0x49bc85=>{const _0x29d122=a2_0x52af75,_0x591c0a=new JobListCommand(),_0x5cb58a=program[_0x29d122(0x341)](),_0x12fd8b=await createTDXInstance(_0x5cb58a),_0x10a3d9=await _0x591c0a['run']({'options':{..._0x5cb58a,..._0x49bc85},'args':[],'tdx':_0x12fd8b});gracefulExit(_0x10a3d9);};jobCmd[a2_0x52af75(0x35c)]('list')[a2_0x52af75(0x36b)](a2_0x52af75(0x379))[a2_0x52af75(0x274)](a2_0x52af75(0x2e8),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),program[a2_0x52af75(0x35c)]('jobs',{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x218))[a2_0x52af75(0x274)](a2_0x52af75(0x2e8),a2_0x52af75(0x2c0))[a2_0x52af75(0x2d5)](jobListAction),jobCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x15b))['description'](a2_0x52af75(0x260))[a2_0x52af75(0x2d5)](async(_0x443771,_0x31d608)=>{const _0x2a31bf=a2_0x52af75,_0x1232c4=new JobShowCommand(),_0x1c96aa=program['opts'](),_0x54c1b5=await createTDXInstance(_0x1c96aa),_0x3a8cd6=await _0x1232c4[_0x2a31bf(0x312)]({'options':{..._0x1c96aa,..._0x31d608},'args':[_0x443771],'tdx':_0x54c1b5});gracefulExit(_0x3a8cd6);}),jobCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2c4))[a2_0x52af75(0x36b)]('Kill\x20a\x20job')[a2_0x52af75(0x2d5)](async(_0x5c8403,_0x5c789c)=>{const _0x2275bd=a2_0x52af75,_0x149dd2=new JobKillCommand(),_0x27aa00=program[_0x2275bd(0x341)](),_0x2fe37f=await createTDXInstance(_0x27aa00),_0x2326b1=await _0x149dd2[_0x2275bd(0x312)]({'options':{..._0x27aa00,..._0x5c789c},'args':[_0x5c8403],'tdx':_0x2fe37f});gracefulExit(_0x2326b1);}),jobCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x34b))[a2_0x52af75(0x36b)]('Submit\x20a\x20job')[a2_0x52af75(0x274)]('--job-type\x20<type>',a2_0x52af75(0x14e),a2_0x52af75(0x130))[a2_0x52af75(0x274)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')['option']('--database\x20<name>',a2_0x52af75(0x1a6),a2_0x52af75(0x17f))[a2_0x52af75(0x274)](a2_0x52af75(0x17d),'Result\x20export\x20destination\x20(URL\x20or\x20JSON)')[a2_0x52af75(0x2d5)](async(_0x221471,_0x3cf2ce)=>{const _0x2f40ef=a2_0x52af75,_0x2ac05f=new JobSubmitCommand(),_0x27c87c=program[_0x2f40ef(0x341)](),_0x2825df=await createTDXInstance(_0x27c87c),_0x213ae9=await _0x2ac05f[_0x2f40ef(0x312)]({'options':{..._0x27c87c,..._0x3cf2ce},'args':_0x221471?[_0x221471]:[],'tdx':_0x2825df});gracefulExit(_0x213ae9);}),jobCmd['command'](a2_0x52af75(0x1e7))['description'](a2_0x52af75(0x25e))[a2_0x52af75(0x2d5)](async(_0x333c1d,_0x736c5a)=>{const _0x227c6a=a2_0x52af75,_0x1d81c6=new JobResultCommand(),_0x4cbc59=program[_0x227c6a(0x341)](),_0x6a6ab4=await createTDXInstance(_0x4cbc59),_0x4d02db=await _0x1d81c6[_0x227c6a(0x312)]({'options':{..._0x4cbc59,..._0x736c5a},'args':[_0x333c1d],'tdx':_0x6a6ab4});gracefulExit(_0x4d02db);});const scheduleCmd=jobCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x303))[a2_0x52af75(0x36b)](a2_0x52af75(0x1b1));scheduleCmd['command'](a2_0x52af75(0x332))[a2_0x52af75(0x36b)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')['action'](async(_0xef2a3b,_0x1cb7a2)=>{const _0x23d509=a2_0x52af75,_0x156dff=new ScheduleListCommand(),_0x21d63c=program[_0x23d509(0x341)](),_0x26aed8=await createTDXInstance(_0x21d63c),_0x56e379=await _0x156dff[_0x23d509(0x312)]({'options':{..._0x21d63c,..._0x1cb7a2},'args':_0xef2a3b?[_0xef2a3b]:[],'tdx':_0x26aed8});gracefulExit(_0x56e379);}),scheduleCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x280))['description'](a2_0x52af75(0x348))[a2_0x52af75(0x2d5)](async(_0x570970,_0x9c11ee)=>{const _0x3f15ac=a2_0x52af75,_0x540108=new ScheduleShowCommand(),_0x209761=program[_0x3f15ac(0x341)](),_0xc748c=await createTDXInstance(_0x209761),_0xc01414=await _0x540108['run']({'options':{..._0x209761,..._0x9c11ee},'args':[_0x570970],'tdx':_0xc748c});gracefulExit(_0xc01414);}),scheduleCmd['command'](a2_0x52af75(0x2ec))[a2_0x52af75(0x36b)](a2_0x52af75(0x378))[a2_0x52af75(0x274)]('-d,\x20--database\x20<db>',a2_0x52af75(0x26f))[a2_0x52af75(0x274)](a2_0x52af75(0x16e),a2_0x52af75(0x176))[a2_0x52af75(0x2d4)]('-f,\x20--file\x20<path>',a2_0x52af75(0x366))[a2_0x52af75(0x274)]('--type\x20<type>',a2_0x52af75(0x382),a2_0x52af75(0x130))[a2_0x52af75(0x274)]('--cron\x20<expression>',a2_0x52af75(0x133))['option'](a2_0x52af75(0x182),a2_0x52af75(0x37b))[a2_0x52af75(0x274)]('--delay\x20<seconds>',a2_0x52af75(0x1f0))['option'](a2_0x52af75(0x19b),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x52af75(0x274)](a2_0x52af75(0x27d),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x52af75(0x274)]('--engine-version\x20<version>',a2_0x52af75(0x269))[a2_0x52af75(0x274)](a2_0x52af75(0x12e),a2_0x52af75(0x187))['action'](async(_0x5cfdd2,_0x1183f6)=>{const _0x5b58a8=a2_0x52af75,_0x31fd40=new ScheduleCreateCommand(),_0xeebcd0=program[_0x5b58a8(0x341)](),_0x478b0d=await createTDXInstance(_0xeebcd0);_0x1183f6['in']&&(_0x1183f6[_0x5b58a8(0x22c)]=_0x1183f6['in']);const _0x4765ea=await _0x31fd40['run']({'options':{..._0xeebcd0,..._0x1183f6},'args':[_0x5cfdd2],'tdx':_0x478b0d});gracefulExit(_0x4765ea);}),scheduleCmd['command']('update\x20<name>')[a2_0x52af75(0x36b)](a2_0x52af75(0x15f))['option']('-d,\x20--database\x20<db>','Database\x20name')[a2_0x52af75(0x274)](a2_0x52af75(0x16e),a2_0x52af75(0x176))[a2_0x52af75(0x274)](a2_0x52af75(0x179),a2_0x52af75(0x366))[a2_0x52af75(0x274)]('--type\x20<type>',a2_0x52af75(0x382))[a2_0x52af75(0x274)](a2_0x52af75(0x1a4),'Cron\x20expression\x20for\x20scheduling')[a2_0x52af75(0x274)](a2_0x52af75(0x182),a2_0x52af75(0x24c))[a2_0x52af75(0x274)](a2_0x52af75(0x3ac),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x52af75(0x274)](a2_0x52af75(0x19b),a2_0x52af75(0x38b))[a2_0x52af75(0x274)](a2_0x52af75(0x27d),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x52af75(0x274)](a2_0x52af75(0x35e),'Query\x20engine\x20version')[a2_0x52af75(0x274)]('--result\x20<url>',a2_0x52af75(0x187))[a2_0x52af75(0x2d5)](async(_0x53f977,_0x3a6fb5)=>{const _0x5a0595=a2_0x52af75,_0xd0db8f=new ScheduleUpdateCommand(),_0x30153a=program['opts'](),_0x3eed9a=await createTDXInstance(_0x30153a);_0x3a6fb5['in']&&(_0x3a6fb5[_0x5a0595(0x22c)]=_0x3a6fb5['in']);const _0x3f95db=await _0xd0db8f[_0x5a0595(0x312)]({'options':{..._0x30153a,..._0x3a6fb5},'args':[_0x53f977],'tdx':_0x3eed9a});gracefulExit(_0x3f95db);}),scheduleCmd['command'](a2_0x52af75(0x2cf))[a2_0x52af75(0x36b)](a2_0x52af75(0x11f))[a2_0x52af75(0x2d5)](async(_0x10961c,_0x45c7a5)=>{const _0x2fe787=a2_0x52af75,_0x521689=new ScheduleDeleteCommand(),_0x324608=program[_0x2fe787(0x341)](),_0x2bc38d=await createTDXInstance(_0x324608),_0x233320=await _0x521689[_0x2fe787(0x312)]({'options':{..._0x324608,..._0x45c7a5},'args':[_0x10961c],'tdx':_0x2bc38d});gracefulExit(_0x233320);}),scheduleCmd['command']('run\x20<name>')[a2_0x52af75(0x36b)]('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x52af75(0x274)](a2_0x52af75(0x3c0),a2_0x52af75(0x223))['option'](a2_0x52af75(0x11b),a2_0x52af75(0x2bb))[a2_0x52af75(0x2d5)](async(_0x4db8b0,_0x280d37)=>{const _0x564efe=a2_0x52af75,_0x8fbe49=new ScheduleRunCommand(),_0x5ee0bc=program[_0x564efe(0x341)](),_0x3eb8b0=await createTDXInstance(_0x5ee0bc),_0x443516=await _0x8fbe49[_0x564efe(0x312)]({'options':{..._0x5ee0bc,..._0x280d37},'args':[_0x4db8b0],'tdx':_0x3eb8b0});gracefulExit(_0x443516);}),scheduleCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3b4))['description'](a2_0x52af75(0x1e9))['option'](a2_0x52af75(0x33b),a2_0x52af75(0x29d))[a2_0x52af75(0x274)](a2_0x52af75(0x208),a2_0x52af75(0x213))[a2_0x52af75(0x2d5)](async(_0x48c3ef,_0x5ed0cc)=>{const _0x4a10ea=a2_0x52af75,_0x3af7a4=new ScheduleHistoryCommand(),_0x22cd68=program[_0x4a10ea(0x341)](),_0x56663a=await createTDXInstance(_0x22cd68),_0x315995=await _0x3af7a4[_0x4a10ea(0x312)]({'options':{..._0x22cd68,..._0x5ed0cc},'args':[_0x48c3ef],'tdx':_0x56663a});gracefulExit(_0x315995);});const llmCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x199))[a2_0x52af75(0x36b)](a2_0x52af75(0x243));llmCmd[a2_0x52af75(0x35c)]('use\x20<project-name>')[a2_0x52af75(0x36b)](a2_0x52af75(0x1b2))[a2_0x52af75(0x2d5)](async(_0x477ee3,_0x15ed92)=>{const _0x3c9793=a2_0x52af75,_0x347a9f=new LLMUseCommand(),_0x5d4ee0=program['opts'](),_0x5d6056=await createTDXInstance(_0x5d4ee0),_0x26a30e=await _0x347a9f[_0x3c9793(0x312)]({'options':{..._0x5d4ee0,..._0x15ed92},'args':[_0x477ee3],'tdx':_0x5d6056});gracefulExit(_0x26a30e);}),llmCmd['command'](a2_0x52af75(0x2ce))['description'](a2_0x52af75(0x1c5))['action'](async _0x1da0db=>{const _0x27eb8c=a2_0x52af75,_0x5b61ff=new LLMModelsCommand(),_0x482be0=program[_0x27eb8c(0x341)](),_0x8b5a10=await createTDXInstance(_0x482be0),_0x56891a=await _0x5b61ff[_0x27eb8c(0x312)]({'options':{..._0x482be0,..._0x1da0db},'args':[],'tdx':_0x8b5a10});gracefulExit(_0x56891a);});const projectCmd=llmCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x108))[a2_0x52af75(0x36b)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x187d62,_0x919a)=>{const _0x2c6f3d=a2_0x52af75,_0x2f5ef2=new LLMProjectsCommand(),_0x4bda63=program['opts'](),_0x2979b7=await createTDXInstance(_0x4bda63),_0x2036e6=await _0x2f5ef2[_0x2c6f3d(0x312)]({'options':{..._0x4bda63,..._0x919a},'args':_0x187d62?[_0x187d62]:[],'tdx':_0x2979b7});gracefulExit(_0x2036e6);};projectCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x305))['action'](llmProjectListAction),llmCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x15d))['description'](a2_0x52af75(0x139))[a2_0x52af75(0x2d5)](llmProjectListAction),projectCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2ec))[a2_0x52af75(0x36b)](a2_0x52af75(0x399))[a2_0x52af75(0x274)](a2_0x52af75(0x2a7),a2_0x52af75(0x29c))[a2_0x52af75(0x2d5)](async(_0x316b0b,_0xe4a500)=>{const _0x4c0eaa=a2_0x52af75,_0x3d86=new LLMProjectCreateCommand(),_0x47ef86=program[_0x4c0eaa(0x341)](),_0x2307a3=await createTDXInstance(_0x47ef86),_0x45c66c=await _0x3d86['run']({'options':{..._0x47ef86,..._0xe4a500},'args':[_0x316b0b],'tdx':_0x2307a3});gracefulExit(_0x45c66c);}),projectCmd['command'](a2_0x52af75(0x2cf))[a2_0x52af75(0x36b)]('Delete\x20an\x20LLM\x20project')[a2_0x52af75(0x2d5)](async(_0x1ae232,_0x5a7025)=>{const _0x41e4ef=a2_0x52af75,_0xfadf5a=new LLMProjectDeleteCommand(),_0x470ff3=program[_0x41e4ef(0x341)](),_0x58c4ff=await createTDXInstance(_0x470ff3),_0x4a6dfd=await _0xfadf5a['run']({'options':{..._0x470ff3,..._0x5a7025},'args':[_0x1ae232],'tdx':_0x58c4ff});gracefulExit(_0x4a6dfd);}),projectCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x114))[a2_0x52af75(0x36b)](a2_0x52af75(0x209))['option'](a2_0x52af75(0x2e5),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x52af75(0x274)](a2_0x52af75(0x358),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x52af75(0x2d5)](async(_0x3399b8,_0x59c519)=>{const _0x1716e0=a2_0x52af75,_0x4c3d3d=new LLMProjectBackupCommand(),_0x4f6059=program[_0x1716e0(0x341)](),_0x34219b=await createTDXInstance(_0x4f6059),_0x5cd52c=await _0x4c3d3d[_0x1716e0(0x312)]({'options':{..._0x4f6059,..._0x59c519},'args':[_0x3399b8],'tdx':_0x34219b});gracefulExit(_0x5cd52c);}),projectCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x184))[a2_0x52af75(0x36b)](a2_0x52af75(0x22e))[a2_0x52af75(0x274)](a2_0x52af75(0x163),a2_0x52af75(0x3ba))[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x112))[a2_0x52af75(0x2d5)](async(_0x378746,_0x967000)=>{const _0x15c106=a2_0x52af75,_0x3eacd4=new LLMProjectRestoreCommand(),_0x5b9816=program[_0x15c106(0x341)](),_0x3c3a58=await createTDXInstance(_0x5b9816),_0x233df0=await _0x3eacd4[_0x15c106(0x312)]({'options':{..._0x5b9816,..._0x967000},'args':[_0x378746],'tdx':_0x3c3a58});gracefulExit(_0x233df0);});const llmAgentListAction=async(_0x2eaff1,_0x4ddd6b)=>{const _0x468674=a2_0x52af75,_0x53be79=new LLMAgentsCommand(),_0x1a9d8f=program[_0x468674(0x341)](),_0x2ee6fd=await createTDXInstance(_0x1a9d8f),_0x4feaec=await _0x53be79[_0x468674(0x312)]({'options':{..._0x1a9d8f,..._0x4ddd6b},'args':_0x2eaff1?[_0x2eaff1]:[],'tdx':_0x2ee6fd});gracefulExit(_0x4feaec);};llmCmd[a2_0x52af75(0x35c)]('agents\x20[pattern]')[a2_0x52af75(0x36b)](a2_0x52af75(0x293))[a2_0x52af75(0x2d5)](llmAgentListAction),program['command'](a2_0x52af75(0x398))[a2_0x52af75(0x36b)](a2_0x52af75(0x293))[a2_0x52af75(0x2d5)](llmAgentListAction),llmCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x35a))['description'](a2_0x52af75(0x3b6))[a2_0x52af75(0x274)](a2_0x52af75(0x339),a2_0x52af75(0x29a))[a2_0x52af75(0x2d5)](async(_0x2baff0,_0x6507d3)=>{const _0x2be281=new LLMHistoryCommand(),_0xed18f7=program['opts'](),_0x26d4a8=await createTDXInstance(_0xed18f7),_0x305786=await _0x2be281['run']({'options':{..._0xed18f7,..._0x6507d3},'args':_0x2baff0?[_0x2baff0]:[],'tdx':_0x26d4a8});gracefulExit(_0x305786);});isExperimentalAvailable()&&llmCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2bc))['description'](a2_0x52af75(0x1a1))[a2_0x52af75(0x2d5)](async(_0x3635a5,_0x2f6ad1)=>{const _0x31d372=new LLMLogCommand(),_0x2b37ce=program['opts'](),_0x2d5062=await createTDXInstance(_0x2b37ce),_0x50ae0f=await _0x31d372['run']({'options':{..._0x2b37ce,..._0x2f6ad1},'args':[_0x3635a5],'tdx':_0x2d5062});gracefulExit(_0x50ae0f);});program[a2_0x52af75(0x35c)](a2_0x52af75(0x282))[a2_0x52af75(0x34e)]('[options]\x20--\x20[claude-code-args...]')[a2_0x52af75(0x36b)](a2_0x52af75(0x316))[a2_0x52af75(0x274)]('-c,\x20--continue',a2_0x52af75(0x32b))['option'](a2_0x52af75(0x1ad),a2_0x52af75(0x2f7))[a2_0x52af75(0x274)](a2_0x52af75(0x3ad),a2_0x52af75(0x145))[a2_0x52af75(0x299)]()[a2_0x52af75(0x3ae)](!![])[a2_0x52af75(0x2f6)](a2_0x52af75(0x257),'\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON')[a2_0x52af75(0x2d5)](async(_0x11601a,_0x1378a8)=>{const _0x19257f=a2_0x52af75,_0x1e9591=program[_0x19257f(0x341)](),_0x131757=Array[_0x19257f(0x2f4)](_0x11601a)?_0x11601a:[];if(_0x131757[0x0]===_0x19257f(0x28e)){const _0x302c22=new ClaudeStatuslineCommand(),_0x1498cf=await _0x302c22['run']({'options':{..._0x1e9591,..._0x1378a8},'args':_0x131757[_0x19257f(0x169)](0x1),'tdx':null});gracefulExit(_0x1498cf);}if(_0x131757[0x0]===_0x19257f(0x34e)){const _0x4f95df=new ClaudeUsageCommand(),_0x571d3c=await _0x4f95df[_0x19257f(0x312)]({'options':{..._0x1e9591,..._0x1378a8},'args':_0x131757[_0x19257f(0x169)](0x1),'tdx':null});gracefulExit(_0x571d3c);}const _0x32f336=new ClaudeCommand(),_0x87120b=await createTDXInstance(_0x1e9591),_0x1d25ad=await _0x32f336['run']({'options':{..._0x1e9591,..._0x1378a8},'args':_0x131757,'tdx':_0x87120b});gracefulExit(_0x1d25ad);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x3be))[a2_0x52af75(0x36b)](a2_0x52af75(0x2b5))['option']('--clear',a2_0x52af75(0x26c))[a2_0x52af75(0x274)](a2_0x52af75(0x328),a2_0x52af75(0x1f4))[a2_0x52af75(0x2d5)](async(_0x507125,_0x1e0dc6,_0x5c678f)=>{const _0x3b3eb9=a2_0x52af75,_0xa0c67=new UseCommand(),_0x4205ed=program['opts'](),_0x231f8f=[];if(_0x507125)_0x231f8f[_0x3b3eb9(0x355)](_0x507125);if(_0x1e0dc6)_0x231f8f[_0x3b3eb9(0x355)](_0x1e0dc6);const _0x3f489a=_0x507125===_0x3b3eb9(0x118),_0x417ea4=_0x3f489a?await createTDXInstance(_0x4205ed):null,_0x3edc27=await _0xa0c67[_0x3b3eb9(0x312)]({'options':{..._0x4205ed,..._0x5c678f},'args':_0x231f8f,'tdx':_0x417ea4});gracefulExit(_0x3edc27);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x2d7))[a2_0x52af75(0x36b)](a2_0x52af75(0x246))[a2_0x52af75(0x2d5)](async _0x311b36=>{const _0x3e4d39=a2_0x52af75,_0x5a9226=new StatusCommand(),_0x2cce27=program['opts'](),_0x2c5796=await createTDXInstance(_0x2cce27),_0x55108a=await _0x5a9226[_0x3e4d39(0x312)]({'options':{..._0x2cce27,..._0x311b36},'args':[],'tdx':_0x2c5796});gracefulExit(_0x55108a);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x273))[a2_0x52af75(0x36b)](a2_0x52af75(0x28a))[a2_0x52af75(0x274)]('--dry-run',a2_0x52af75(0x2a0))[a2_0x52af75(0x274)](a2_0x52af75(0x2a9),a2_0x52af75(0x2ba))['option'](a2_0x52af75(0x351),a2_0x52af75(0x34a))[a2_0x52af75(0x2d5)](async(_0x236e4b,_0x2e84b6)=>{const _0x1606b1=a2_0x52af75,_0x2373a1=new UpgradeCommand(),_0x4b4b13=program[_0x1606b1(0x341)](),_0xc1eeaf=await _0x2373a1[_0x1606b1(0x312)]({'options':{..._0x4b4b13,..._0x2e84b6},'args':_0x236e4b?[_0x236e4b]:[],'tdx':null});gracefulExit(_0xc1eeaf);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x315))[a2_0x52af75(0x36b)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')['option']('--default',a2_0x52af75(0x1c4))[a2_0x52af75(0x2d5)](async(_0xa96f1e,_0x3fe4f4)=>{const _0x26add3=a2_0x52af75,_0x32d189=new UnsetCommand(),_0x1514ed=program[_0x26add3(0x341)](),_0x4508b4=await _0x32d189[_0x26add3(0x312)]({'options':{..._0x1514ed,..._0x3fe4f4},'args':[_0xa96f1e],'tdx':null});gracefulExit(_0x4508b4);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x1eb))[a2_0x52af75(0x36b)](a2_0x52af75(0x3bb))[a2_0x52af75(0x274)]('--last',a2_0x52af75(0x227))[a2_0x52af75(0x2d5)](async _0x22c8bb=>{const _0x6aecd9=a2_0x52af75,_0x17a62c=new ChatsCommand(),_0x14ccf1=program[_0x6aecd9(0x341)](),_0x4161ab=await createTDXInstance(_0x14ccf1),_0x1676dd=await _0x17a62c['run']({'options':{..._0x14ccf1,..._0x22c8bb},'args':[],'tdx':_0x4161ab});gracefulExit(_0x1676dd);});const authCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x2cb))[a2_0x52af75(0x36b)](a2_0x52af75(0x26a));async function runAuthStatusCommand(_0x242913){const _0x96e3df=a2_0x52af75,_0x50201e=new AuthStatusCommand(),_0x761454=program[_0x96e3df(0x341)](),_0x3422a3=await createTDXInstance(_0x761454),_0x54df0c=await _0x50201e[_0x96e3df(0x312)]({'options':{..._0x761454,..._0x242913},'args':[],'tdx':_0x3422a3});gracefulExit(_0x54df0c);}authCmd[a2_0x52af75(0x2d5)](runAuthStatusCommand),authCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2d7))[a2_0x52af75(0x36b)](a2_0x52af75(0x30e))['action'](runAuthStatusCommand),authCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x13a))[a2_0x52af75(0x36b)](a2_0x52af75(0x1de))['addHelpText'](a2_0x52af75(0x257),a2_0x52af75(0x287))[a2_0x52af75(0x2d5)](async _0x5789c4=>{const _0x4c2667=a2_0x52af75,_0x417329=new AuthSetupCommand(),_0x9f97b1=program[_0x4c2667(0x341)](),_0x53fc87=await createTDXInstance(_0x9f97b1),_0x274195=await _0x417329[_0x4c2667(0x312)]({'options':{..._0x9f97b1,..._0x5789c4},'args':[],'tdx':_0x53fc87});gracefulExit(_0x274195);}),authCmd['command'](a2_0x52af75(0x2fb))['description'](a2_0x52af75(0x254))['addHelpText'](a2_0x52af75(0x257),'\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')[a2_0x52af75(0x2d5)](async _0x417474=>{const _0x37f3a1=a2_0x52af75,_0x36c2b5=new AuthClearCommand(),_0x41df9e=program['opts'](),_0x1fa347=await _0x36c2b5[_0x37f3a1(0x312)]({'options':{..._0x41df9e,..._0x417474},'args':[],'tdx':null});gracefulExit(_0x1fa347);});const userCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x27c))['description'](a2_0x52af75(0x192)),userListAction=async _0x27bfb3=>{const _0x241fac=a2_0x52af75,_0x402829=new UserListCommand(),_0x2125c4=program['opts'](),_0x53677e=await createTDXInstance(_0x2125c4),_0x24bfb1=await _0x402829[_0x241fac(0x312)]({'options':{..._0x2125c4,..._0x27bfb3},'args':[],'tdx':_0x53677e});gracefulExit(_0x24bfb1);};userCmd[a2_0x52af75(0x2d5)](async _0x163625=>{const _0x490730=a2_0x52af75,_0x37eb28=new UserCommand(),_0x874944=program[_0x490730(0x341)](),_0x37c70f=await createTDXInstance(_0x874944),_0x529d8f=await _0x37eb28['run']({'options':{..._0x874944,..._0x163625},'args':[],'tdx':_0x37c70f});gracefulExit(_0x529d8f);}),userCmd[a2_0x52af75(0x35c)]('list')[a2_0x52af75(0x36b)](a2_0x52af75(0x3b1))[a2_0x52af75(0x2d5)](userListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x368))['description'](a2_0x52af75(0x2b1))[a2_0x52af75(0x2d5)](userListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x2d8))['description'](a2_0x52af75(0x16c))[a2_0x52af75(0x2d5)](async _0x1ee274=>{const _0x582fa0=a2_0x52af75,_0x29b3b8=new ProfilesCommand(),_0x5a9c22=program['opts'](),_0x29a126=await _0x29b3b8[_0x582fa0(0x312)]({'options':{..._0x5a9c22,..._0x1ee274},'args':[],'tdx':null});gracefulExit(_0x29a126);});const profileCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x10d))['description'](a2_0x52af75(0x234));profileCmd[a2_0x52af75(0x2d5)](()=>{const _0x5a0839=a2_0x52af75;profileCmd[_0x5a0839(0x251)]();});const profileListAction=async _0x4c3fe7=>{const _0x385038=a2_0x52af75,_0x3da149=new ProfilesCommand(),_0x49596b=program[_0x385038(0x341)](),_0x3d99fa=await _0x3da149['run']({'options':{..._0x49596b,..._0x4c3fe7},'args':[],'tdx':null});gracefulExit(_0x3d99fa);};profileCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1da))[a2_0x52af75(0x36b)](a2_0x52af75(0x16c))[a2_0x52af75(0x2d5)](profileListAction),profileCmd[a2_0x52af75(0x35c)]('create\x20[name]')[a2_0x52af75(0x36b)](a2_0x52af75(0x390))['addHelpText'](a2_0x52af75(0x257),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')[a2_0x52af75(0x2d5)](async(_0x2f99c,_0x35c041)=>{const _0x1a2c70=new ProfileCreateCommand(),_0x255b03=program['opts'](),_0x5ee241=await _0x1a2c70['run']({'options':{..._0x255b03,..._0x35c041},'args':_0x2f99c?[_0x2f99c]:[],'tdx':null});gracefulExit(_0x5ee241);}),profileCmd[a2_0x52af75(0x35c)]('remove\x20<name>')[a2_0x52af75(0x36b)](a2_0x52af75(0x3a4))[a2_0x52af75(0x2f6)]('after',a2_0x52af75(0x39a))[a2_0x52af75(0x2d5)](async(_0x4d6d70,_0x44eacf)=>{const _0x5404c8=a2_0x52af75,_0x152858=new ProfileRemoveCommand(),_0x10f0f2=program['opts'](),_0x591e32=await _0x152858[_0x5404c8(0x312)]({'options':{..._0x10f0f2,..._0x44eacf},'args':[_0x4d6d70],'tdx':null});gracefulExit(_0x591e32);}),profileCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x37e))[a2_0x52af75(0x36b)](a2_0x52af75(0x19f))[a2_0x52af75(0x2f6)](a2_0x52af75(0x257),a2_0x52af75(0x2fa))[a2_0x52af75(0x2d5)](async(_0x253588,_0xabdffd)=>{const _0x52d6b8=a2_0x52af75,_0xa0c115=new ProfileSetCommand(),_0x4dfe82=program[_0x52d6b8(0x341)](),_0x1d73cd=await _0xa0c115[_0x52d6b8(0x312)]({'options':{..._0x4dfe82,..._0xabdffd},'args':[_0x253588],'tdx':null});gracefulExit(_0x1d73cd);}),profileCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x16d))['description'](a2_0x52af75(0x3c6))[a2_0x52af75(0x274)](a2_0x52af75(0x328),a2_0x52af75(0x1f4))['addHelpText'](a2_0x52af75(0x257),a2_0x52af75(0x224))[a2_0x52af75(0x2d5)](async(_0x5708af,_0x34b9ee)=>{const _0x5efdd5=a2_0x52af75,_0x1948ec=new ProfileUseCommand(),_0x1786f4=program[_0x5efdd5(0x341)](),_0x24d6f2=await _0x1948ec[_0x5efdd5(0x312)]({'options':{..._0x1786f4,..._0x34b9ee},'args':[_0x5708af],'tdx':null});gracefulExit(_0x24d6f2);});const engageCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x166))[a2_0x52af75(0x36b)](a2_0x52af75(0x1bc)),createEngageAction=_0x34e44b=>{return async(_0x2ffff6,_0x174b3f)=>{const _0x14d649=a2_0x1937,_0x4f60e1=new _0x34e44b(),_0x2c7332=program[_0x14d649(0x341)](),_0x450ed9=await createTDXInstance(_0x2c7332),_0x2f6567=await _0x4f60e1[_0x14d649(0x312)]({'options':{..._0x2c7332,..._0x174b3f},'args':[_0x2ffff6],'tdx':_0x450ed9});gracefulExit(_0x2f6567);};},createEngageNoArgAction=_0x28a55e=>{return async _0x37da94=>{const _0x57dde8=a2_0x1937,_0x2f14b1=new _0x28a55e(),_0x449d49=program[_0x57dde8(0x341)](),_0x4460e5=await createTDXInstance(_0x449d49),_0xc7ae1c=await _0x2f14b1['run']({'options':{..._0x449d49,..._0x37da94},'args':[],'tdx':_0x4460e5});gracefulExit(_0xc7ae1c);};},createEngageListAction=_0x555ec9=>{return async(_0x9438cd,_0x383f08)=>{const _0x1ca273=a2_0x1937,_0x2d6a9c=new _0x555ec9(),_0x1a5474=program['opts'](),_0x49b22d=await createTDXInstance(_0x1a5474),_0x9c0438=await _0x2d6a9c[_0x1ca273(0x312)]({'options':{..._0x1a5474,..._0x383f08},'args':_0x9438cd?[_0x9438cd]:[],'tdx':_0x49b22d});gracefulExit(_0x9c0438);};},campaignCmd=engageCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x11c))[a2_0x52af75(0x36b)]('Campaign\x20management');campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x1fa))[a2_0x52af75(0x274)](a2_0x52af75(0x350),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x52af75(0x274)](a2_0x52af75(0x2e8),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x52af75(0x15a),a2_0x52af75(0x247))['action'](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x52af75(0x35c)]('campaigns\x20[pattern]')[a2_0x52af75(0x36b)](a2_0x52af75(0x1ff))['option'](a2_0x52af75(0x350),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x52af75(0x2e8),a2_0x52af75(0x1bf))[a2_0x52af75(0x274)]('--workspace\x20<name>','Workspace\x20name')[a2_0x52af75(0x2d5)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x116))[a2_0x52af75(0x36b)](a2_0x52af75(0x132))[a2_0x52af75(0x274)]('--workspace\x20<name>',a2_0x52af75(0x247))[a2_0x52af75(0x274)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1d8))['description'](a2_0x52af75(0x30a))[a2_0x52af75(0x2d4)]('--name\x20<name>','Campaign\x20name')[a2_0x52af75(0x2d4)]('--type\x20<type>',a2_0x52af75(0x27b))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x326))[a2_0x52af75(0x274)]('--description\x20<desc>',a2_0x52af75(0x285))['option'](a2_0x52af75(0x1d0),a2_0x52af75(0x154))[a2_0x52af75(0x274)]('--email-sender-id\x20<id>',a2_0x52af75(0x20d))['option'](a2_0x52af75(0x346),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x52af75(0x274)](a2_0x52af75(0x1e2),a2_0x52af75(0x3b3))['option'](a2_0x52af75(0x182),a2_0x52af75(0x105))[a2_0x52af75(0x2d5)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x52af75(0x1fb))[a2_0x52af75(0x36b)]('Update\x20a\x20campaign')[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))['option']('--name\x20<name>','New\x20campaign\x20name')['option'](a2_0x52af75(0x175),'Campaign\x20description')['option']('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x52af75(0x274)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x52af75(0x274)](a2_0x52af75(0x346),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x52af75(0x274)](a2_0x52af75(0x1e2),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x52af75(0x274)](a2_0x52af75(0x182),a2_0x52af75(0x105))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x52af75(0x1e6))[a2_0x52af75(0x36b)]('Delete\x20a\x20campaign')[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x274)](a2_0x52af75(0x374),a2_0x52af75(0x25a))[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1ce))[a2_0x52af75(0x36b)]('Launch\x20a\x20campaign')[a2_0x52af75(0x274)](a2_0x52af75(0x15a),'Workspace\x20name')[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')['description'](a2_0x52af75(0x21e))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),'Workspace\x20name')[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x52af75(0x35c)]('resume\x20<name-or-id>')['description'](a2_0x52af75(0x2e4))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x18e))[a2_0x52af75(0x36b)]('Duplicate\x20a\x20campaign')[a2_0x52af75(0x274)]('--workspace\x20<name>','Workspace\x20name')[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd['command'](a2_0x52af75(0x1a2))['description'](a2_0x52af75(0x31a))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x274)](a2_0x52af75(0x20e),a2_0x52af75(0x23b))[a2_0x52af75(0x274)](a2_0x52af75(0x350),a2_0x52af75(0x2a5))[a2_0x52af75(0x274)]('--dry-run','Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3a2))[a2_0x52af75(0x36b)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns')['option'](a2_0x52af75(0x15a),'Workspace\x20name')[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x2f1))[a2_0x52af75(0x2d5)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x21f))[a2_0x52af75(0x36b)](a2_0x52af75(0x238))['option'](a2_0x52af75(0x343),a2_0x52af75(0x2b0))['action'](createEngageAction(EngageCampaignValidateCommand));const templateCmd=engageCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x123))[a2_0x52af75(0x36b)](a2_0x52af75(0x349));templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x1a3))[a2_0x52af75(0x274)]('--workspace\x20<name>',a2_0x52af75(0x247))['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x52af75(0x35c)]('templates\x20[pattern]')['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x2d5)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x52af75(0x35c)]('show\x20<name-or-id>')[a2_0x52af75(0x36b)](a2_0x52af75(0x33c))[a2_0x52af75(0x274)]('--workspace\x20<name>',a2_0x52af75(0x247))[a2_0x52af75(0x274)](a2_0x52af75(0x101),a2_0x52af75(0x28d))[a2_0x52af75(0x2d5)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1d8))['description'](a2_0x52af75(0x2a2))[a2_0x52af75(0x2d4)](a2_0x52af75(0x20e),a2_0x52af75(0x121))['requiredOption'](a2_0x52af75(0x1ed),a2_0x52af75(0x1ae))[a2_0x52af75(0x274)]('--html\x20<html>',a2_0x52af75(0x37c))[a2_0x52af75(0x274)]('--html-file\x20<path>',a2_0x52af75(0x342))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),'Workspace\x20name\x20(required)')[a2_0x52af75(0x274)]('--plaintext\x20<text>',a2_0x52af75(0x135))['option'](a2_0x52af75(0x258),'Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)',_0x1f7b89=>{const _0x593687=a2_0x52af75;if(![_0x593687(0x14b),'grapesjs'][_0x593687(0x158)](_0x1f7b89))throw new SDKError(ErrorCode[_0x593687(0x375)],'Invalid\x20editor\x20type:\x20'+_0x1f7b89+_0x593687(0x168));return _0x1f7b89;})[a2_0x52af75(0x2d5)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1fb))[a2_0x52af75(0x36b)](a2_0x52af75(0x389))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x274)](a2_0x52af75(0x20e),a2_0x52af75(0x159))['option'](a2_0x52af75(0x1ed),a2_0x52af75(0x1ae))[a2_0x52af75(0x274)](a2_0x52af75(0x1c9),a2_0x52af75(0x37c))['option'](a2_0x52af75(0x323),a2_0x52af75(0x342))[a2_0x52af75(0x274)](a2_0x52af75(0x18c),'Plaintext\x20template\x20content')[a2_0x52af75(0x2d5)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x183))[a2_0x52af75(0x36b)]('Pull\x20templates\x20to\x20YAML\x20files')[a2_0x52af75(0x274)](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x274)]('--name\x20<name>',a2_0x52af75(0x3aa))['option'](a2_0x52af75(0x2f8),a2_0x52af75(0x25a))[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x1f2))[a2_0x52af75(0x2d5)](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x3a2))[a2_0x52af75(0x36b)](a2_0x52af75(0x3cd))[a2_0x52af75(0x274)](a2_0x52af75(0x15a),'Workspace\x20name')['option'](a2_0x52af75(0x2f8),a2_0x52af75(0x25a))[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x2f1))['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x21f))[a2_0x52af75(0x36b)](a2_0x52af75(0x16f))[a2_0x52af75(0x274)](a2_0x52af75(0x343),a2_0x52af75(0x2b0))[a2_0x52af75(0x2d5)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1e6))['description']('Delete\x20an\x20email\x20template')['option'](a2_0x52af75(0x15a),a2_0x52af75(0x247))['option']('--yes',a2_0x52af75(0x25a))[a2_0x52af75(0x2d5)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x52af75(0x35c)]('workspace')[a2_0x52af75(0x36b)](a2_0x52af75(0x3a0));workspaceCmd['command'](a2_0x52af75(0x332))[a2_0x52af75(0x36b)](a2_0x52af75(0x2da))[a2_0x52af75(0x2d5)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x26e))[a2_0x52af75(0x36b)](a2_0x52af75(0x2e9))[a2_0x52af75(0x2d5)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x116))[a2_0x52af75(0x36b)](a2_0x52af75(0x1f9))[a2_0x52af75(0x274)](a2_0x52af75(0x101),a2_0x52af75(0x28d))[a2_0x52af75(0x2d5)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1d8))[a2_0x52af75(0x36b)](a2_0x52af75(0x308))[a2_0x52af75(0x2d4)](a2_0x52af75(0x20e),a2_0x52af75(0x247))[a2_0x52af75(0x274)](a2_0x52af75(0x175),a2_0x52af75(0x3c7))[a2_0x52af75(0x2d5)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x52af75(0x35c)]('update\x20<name-or-id>')[a2_0x52af75(0x36b)](a2_0x52af75(0x309))[a2_0x52af75(0x274)](a2_0x52af75(0x20e),a2_0x52af75(0x2df))[a2_0x52af75(0x274)](a2_0x52af75(0x175),a2_0x52af75(0x3c7))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x52af75(0x35c)]('delete\x20<name-or-id>')[a2_0x52af75(0x36b)](a2_0x52af75(0x1ac))[a2_0x52af75(0x274)](a2_0x52af75(0x374),'Skip\x20confirmation\x20prompt')[a2_0x52af75(0x2d5)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x16d))['description'](a2_0x52af75(0x373))['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x52af75(0x35c)]('delivery')[a2_0x52af75(0x36b)]('Delivery\x20operations\x20(email\x20senders)');deliveryCmd[a2_0x52af75(0x35c)]('senders\x20[pattern]')[a2_0x52af75(0x36b)]('List\x20email\x20senders')['option'](a2_0x52af75(0x15a),a2_0x52af75(0x247))[a2_0x52af75(0x2d5)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x3cc))[a2_0x52af75(0x36b)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x4c0ffd=>{const _0x580345=a2_0x52af75,_0x535e33=new ConnectionListCommand(),_0x1eaee8=program[_0x580345(0x341)](),_0x527127=await createTDXInstance(_0x1eaee8),_0x137d6c=await _0x535e33['run']({'options':{..._0x1eaee8,..._0x4c0ffd},'args':[],'tdx':_0x527127});gracefulExit(_0x137d6c);};connectionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x1da))[a2_0x52af75(0x36b)](a2_0x52af75(0x1ea))[a2_0x52af75(0x2d5)](connectionListAction),program[a2_0x52af75(0x35c)](a2_0x52af75(0x3a9),{'hidden':!![]})[a2_0x52af75(0x36b)](a2_0x52af75(0x2be))[a2_0x52af75(0x2d5)](connectionListAction),connectionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x280))['description']('Show\x20connection\x20details\x20by\x20name')[a2_0x52af75(0x2d5)](async(_0x33e2b7,_0x3c8b39)=>{const _0x49b04a=a2_0x52af75,_0x35d953=new ConnectionShowCommand(),_0x53d0b5=program[_0x49b04a(0x341)](),_0x3bdf21=await createTDXInstance(_0x53d0b5),_0xaf0a10=await _0x35d953[_0x49b04a(0x312)]({'options':{..._0x53d0b5,..._0x3c8b39},'args':[_0x33e2b7],'tdx':_0x3bdf21});gracefulExit(_0xaf0a10);}),connectionCmd[a2_0x52af75(0x35c)]('schema\x20<type>')[a2_0x52af75(0x36b)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x277600,_0x2dcefe)=>{const _0x164f27=a2_0x52af75,_0x5f2e8e=new ConnectionSchemaCommand(),_0x223939=program[_0x164f27(0x341)](),_0x449182=await createTDXInstance(_0x223939),_0x332bac=await _0x5f2e8e['run']({'options':{..._0x223939,..._0x2dcefe},'args':[_0x277600],'tdx':_0x449182});gracefulExit(_0x332bac);}),connectionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2d6))[a2_0x52af75(0x36b)](a2_0x52af75(0x1df))[a2_0x52af75(0x2d5)](async _0x26ad0a=>{const _0xcc4c9d=a2_0x52af75,_0x29072e=new ConnectionTypesCommand(),_0x5cbc89=program[_0xcc4c9d(0x341)](),_0x56a530=await createTDXInstance(_0x5cbc89),_0x49a34e=await _0x29072e[_0xcc4c9d(0x312)]({'options':{..._0x5cbc89,..._0x26ad0a},'args':[],'tdx':_0x56a530});gracefulExit(_0x49a34e);}),connectionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x189))['description'](a2_0x52af75(0x195))['action'](async(_0x88ca49,_0x6b0359)=>{const _0x2797e4=a2_0x52af75,_0x1626d1=new ConnectionSettingsCommand(),_0x4e930f=program[_0x2797e4(0x341)](),_0x5c6d05=await createTDXInstance(_0x4e930f),_0x379c04=await _0x1626d1[_0x2797e4(0x312)]({'options':{..._0x4e930f,..._0x6b0359},'args':[_0x88ca49],'tdx':_0x5c6d05});gracefulExit(_0x379c04);});const journeyCmd=program[a2_0x52af75(0x35c)](a2_0x52af75(0x1db))[a2_0x52af75(0x36b)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x1bf771,_0x203c65)=>{const _0x4b9ad0=a2_0x52af75,_0x394cbe=new JourneyListCommand(),_0x134422=program[_0x4b9ad0(0x341)](),_0x44ee46=await createTDXInstance(_0x134422),_0x274eaa=await _0x394cbe[_0x4b9ad0(0x312)]({'options':{..._0x134422,..._0x203c65},'args':_0x1bf771?[_0x1bf771]:[],'tdx':_0x44ee46});gracefulExit(_0x274eaa);};journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x332))[a2_0x52af75(0x36b)]('List\x20journeys\x20in\x20current\x20context')[a2_0x52af75(0x2d5)](journeyListAction),journeyCmd['command'](a2_0x52af75(0x24f))[a2_0x52af75(0x36b)](a2_0x52af75(0x12f))[a2_0x52af75(0x274)](a2_0x52af75(0x279),a2_0x52af75(0x10e))[a2_0x52af75(0x274)](a2_0x52af75(0x109),a2_0x52af75(0x3c5))['action'](async(_0x2d25bd,_0x24a471)=>{const _0x1cdf52=a2_0x52af75,_0x166a9d=new JourneyViewCommand(),_0x2a441f=program[_0x1cdf52(0x341)](),_0x1a0a7f=await createTDXInstance(_0x2a441f),_0x23edff=await _0x166a9d[_0x1cdf52(0x312)]({'options':{..._0x2a441f,..._0x24a471},'args':[_0x2d25bd],'tdx':_0x1a0a7f});gracefulExit(_0x23edff);}),journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x324))[a2_0x52af75(0x36b)]('Show\x20journey\x20statistics')[a2_0x52af75(0x274)](a2_0x52af75(0x3ce),'Show\x20stats\x20for\x20specific\x20stage')['option'](a2_0x52af75(0x393),a2_0x52af75(0x3cb))[a2_0x52af75(0x274)](a2_0x52af75(0x2b2),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x52af75(0x274)](a2_0x52af75(0x32a),'Include\x20raw\x20history\x20data\x20in\x20output')[a2_0x52af75(0x2d5)](async(_0x2a3671,_0x28e7e4)=>{const _0xefa0db=a2_0x52af75,_0x3b6d2e=new JourneyStatsCommand(),_0x10a6f1=program[_0xefa0db(0x341)](),_0x2cd681=await createTDXInstance(_0x10a6f1),_0x19f22b=await _0x3b6d2e[_0xefa0db(0x312)]({'options':{..._0x10a6f1,..._0x28e7e4},'args':[_0x2a3671],'tdx':_0x2cd681});gracefulExit(_0x19f22b);}),journeyCmd['command'](a2_0x52af75(0x27a))[a2_0x52af75(0x36b)](a2_0x52af75(0x237))[a2_0x52af75(0x274)](a2_0x52af75(0x350),a2_0x52af75(0x1d2))[a2_0x52af75(0x274)](a2_0x52af75(0x393),a2_0x52af75(0x3cb))['option'](a2_0x52af75(0x2b2),a2_0x52af75(0x31d))['option'](a2_0x52af75(0x310),'Maximum\x20number\x20of\x20nodes',_0x3a3c3a=>{const _0x2cb742=a2_0x52af75,_0x5d25db=parseInt(_0x3a3c3a,0xa);if(isNaN(_0x5d25db))throw new Error(_0x2cb742(0x2c2)+_0x3a3c3a+_0x2cb742(0x35b));return _0x5d25db;})[a2_0x52af75(0x2d5)](async(_0xe1d14b,_0x4d2a51)=>{const _0x33d53a=a2_0x52af75,_0x934f66=new JourneyTrafficCommand(),_0x2b581f=program[_0x33d53a(0x341)](),_0x4abc4b=await createTDXInstance(_0x2b581f),_0x3de28f=await _0x934f66['run']({'options':{..._0x2b581f,..._0x4d2a51},'args':[_0xe1d14b],'tdx':_0x4abc4b});gracefulExit(_0x3de28f);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x52af75(0x36b)](a2_0x52af75(0x21d))['action'](async(_0x2c87ee,_0x5a0c1e)=>{const _0x89d7a1=new JourneyPauseCommand(),_0x2f8d19=program['opts'](),_0x5272ec=await createTDXInstance(_0x2f8d19),_0x4703d2=await _0x89d7a1['run']({'options':{..._0x2f8d19,..._0x5a0c1e},'args':[_0x2c87ee],'tdx':_0x5272ec});gracefulExit(_0x4703d2);}),journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x31b))['description']('Resume\x20a\x20paused\x20journey')[a2_0x52af75(0x2d5)](async(_0x158221,_0x3a0843)=>{const _0x2918d9=a2_0x52af75,_0x2a9c83=new JourneyResumeCommand(),_0x59a727=program[_0x2918d9(0x341)](),_0x56cc84=await createTDXInstance(_0x59a727),_0x1632c0=await _0x2a9c83[_0x2918d9(0x312)]({'options':{..._0x59a727,..._0x3a0843},'args':[_0x158221],'tdx':_0x56cc84});gracefulExit(_0x1632c0);}),journeyCmd['command'](a2_0x52af75(0x244))[a2_0x52af75(0x36b)]('Export\x20journey(s)\x20as\x20YAML\x20files')[a2_0x52af75(0x274)](a2_0x52af75(0x358),a2_0x52af75(0x2b9))[a2_0x52af75(0x2d5)](async(_0x6cc95f,_0xc67cc7)=>{const _0x4da002=a2_0x52af75,_0x73c646=new JourneyPullCommand(),_0x14181c=program[_0x4da002(0x341)](),_0x19970c=await createTDXInstance(_0x14181c),_0x32195a=await _0x73c646[_0x4da002(0x312)]({'options':{..._0x14181c,..._0xc67cc7},'args':_0x6cc95f?[_0x6cc95f]:[],'tdx':_0x19970c});gracefulExit(_0x32195a);}),journeyCmd['command'](a2_0x52af75(0x3a2))[a2_0x52af75(0x36b)](a2_0x52af75(0x2ac))[a2_0x52af75(0x2d5)](async(_0x8125fd,_0x325457)=>{const _0x29cc89=a2_0x52af75,_0x1da0c6=new JourneyPushCommand(),_0x4356d8=program['opts'](),_0xa94e35=await createTDXInstance(_0x4356d8),_0x4f31d7=await _0x1da0c6[_0x29cc89(0x312)]({'options':{..._0x4356d8,..._0x325457},'args':_0x8125fd?[_0x8125fd]:[],'tdx':_0xa94e35});gracefulExit(_0x4f31d7);}),journeyCmd[a2_0x52af75(0x35c)]('columns\x20<name-or-path>')[a2_0x52af75(0x36b)](a2_0x52af75(0x220))[a2_0x52af75(0x2d5)](async(_0x187019,_0x4f2fd2)=>{const _0x443f81=a2_0x52af75,_0x33bae9=new JourneyColumnsCommand(),_0x3535aa=program[_0x443f81(0x341)](),_0x6edf7a=await createTDXInstance(_0x3535aa),_0x9b095c=await _0x33bae9[_0x443f81(0x312)]({'options':{..._0x3535aa,..._0x4f2fd2},'args':[_0x187019],'tdx':_0x6edf7a});gracefulExit(_0x9b095c);}),journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x2bd))['description']('List\x20activations\x20for\x20a\x20journey')['action'](async(_0x3a18aa,_0x11ab91)=>{const _0x43a54c=a2_0x52af75,_0x5b5bc4=new JourneyActivationsCommand(),_0xe479ec=program[_0x43a54c(0x341)](),_0x321326=await createTDXInstance(_0xe479ec),_0x5106ad=await _0x5b5bc4['run']({'options':{..._0xe479ec,..._0x11ab91},'args':[_0x3a18aa],'tdx':_0x321326});gracefulExit(_0x5106ad);}),journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x32f))[a2_0x52af75(0x36b)]('List\x20all\x20versions\x20of\x20a\x20journey')['action'](async(_0x78020f,_0x48f112)=>{const _0x596670=a2_0x52af75,_0x78b530=new JourneyVersionsCommand(),_0x241434=program['opts'](),_0xf688b8=await createTDXInstance(_0x241434),_0x5acfda=await _0x78b530[_0x596670(0x312)]({'options':{..._0x241434,..._0x48f112},'args':[_0x78020f],'tdx':_0xf688b8});gracefulExit(_0x5acfda);});const journeyVersionCmd=journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x204))[a2_0x52af75(0x36b)](a2_0x52af75(0x338));journeyVersionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x211))[a2_0x52af75(0x36b)](a2_0x52af75(0x286))[a2_0x52af75(0x2d5)](async(_0x16dc61,_0xa56fe9)=>{const _0x3789a3=a2_0x52af75,_0x5455fd=new JourneyVersionCreateCommand(),_0x3e538d=program['opts'](),_0x5692c0=await createTDXInstance(_0x3e538d),_0x410a11=await _0x5455fd[_0x3789a3(0x312)]({'options':{..._0x3e538d,..._0xa56fe9},'args':[_0x16dc61],'tdx':_0x5692c0});gracefulExit(_0x410a11);}),journeyVersionCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x24f))[a2_0x52af75(0x36b)]('View\x20a\x20specific\x20version\x20of\x20a\x20journey')['requiredOption'](a2_0x52af75(0x14a),a2_0x52af75(0x216))['action'](async(_0x8f32df,_0x143d52)=>{const _0x1c1b29=a2_0x52af75,_0x575d3a=new JourneyVersionViewCommand(),_0x10672f=program['opts'](),_0x2fd051=await createTDXInstance(_0x10672f),_0x3fd177=await _0x575d3a[_0x1c1b29(0x312)]({'options':{..._0x10672f,..._0x143d52},'args':[_0x8f32df],'tdx':_0x2fd051});gracefulExit(_0x3fd177);}),journeyCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x21f))[a2_0x52af75(0x36b)](a2_0x52af75(0x277))[a2_0x52af75(0x2d5)](async(_0x171036,_0x595f4d)=>{const _0x2a63bd=a2_0x52af75,_0x216e84=new JourneyValidateCommand(),_0x42e6ee=program[_0x2a63bd(0x341)](),_0x2a003f=await createTDXInstance(_0x42e6ee),_0x23a418=await _0x216e84[_0x2a63bd(0x312)]({'options':{..._0x42e6ee,..._0x595f4d},'args':_0x171036?[_0x171036]:[],'tdx':_0x2a003f});gracefulExit(_0x23a418);}),program['command'](a2_0x52af75(0x1e4))[a2_0x52af75(0x36b)](a2_0x52af75(0x359))[a2_0x52af75(0x2d5)](journeyListAction);const agentSyncCmd=program['command']('agent')[a2_0x52af75(0x36b)](a2_0x52af75(0x3c4));agentSyncCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x317))[a2_0x52af75(0x36b)](a2_0x52af75(0x151))[a2_0x52af75(0x274)]('-o,\x20--output\x20<dir>',a2_0x52af75(0x206))[a2_0x52af75(0x274)]('-f,\x20--force',a2_0x52af75(0x240))[a2_0x52af75(0x274)](a2_0x52af75(0x252),a2_0x52af75(0x32d))[a2_0x52af75(0x2d5)](async(_0x43abb9,_0x2b15cf,_0x36a99c)=>{const _0x289fda=a2_0x52af75,_0x406bbb=new AgentPullCommand(),_0x398fa9=program['opts'](),_0x7a2cd2=await createTDXInstance(_0x398fa9),_0x28f7cd=[];if(_0x43abb9)_0x28f7cd[_0x289fda(0x355)](_0x43abb9);if(_0x2b15cf)_0x28f7cd[_0x289fda(0x355)](_0x2b15cf);const _0x125f6b=await _0x406bbb[_0x289fda(0x312)]({'options':{..._0x398fa9,..._0x36a99c},'args':_0x28f7cd,'tdx':_0x7a2cd2});gracefulExit(_0x125f6b);}),agentSyncCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x13c))[a2_0x52af75(0x36b)](a2_0x52af75(0x27f))[a2_0x52af75(0x274)](a2_0x52af75(0x1a5),a2_0x52af75(0x25b))[a2_0x52af75(0x2d5)](async(_0x1548d2,_0x5abdb4)=>{const _0x1ab405=a2_0x52af75,_0xe1cd65=new AgentPushCommand(),_0x155a0e=program[_0x1ab405(0x341)](),_0x784e0=await createTDXInstance(_0x155a0e),_0x40f663=await _0xe1cd65[_0x1ab405(0x312)]({'options':{..._0x155a0e,..._0x5abdb4},'args':_0x1548d2?[_0x1548d2]:[],'tdx':_0x784e0});gracefulExit(_0x40f663);}),agentSyncCmd['command'](a2_0x52af75(0x138))[a2_0x52af75(0x36b)](a2_0x52af75(0x222))[a2_0x52af75(0x274)](a2_0x52af75(0x256),a2_0x52af75(0x12b))[a2_0x52af75(0x2d5)](async(_0x27d46c,_0x41e564)=>{const _0x238c5b=a2_0x52af75,_0x559f84=new AgentCloneCommand(),_0x2fa268=program[_0x238c5b(0x341)](),_0x2286ac=await createTDXInstance(_0x2fa268),_0x2cb1a8=await _0x559f84[_0x238c5b(0x312)]({'options':{..._0x2fa268,..._0x41e564},'args':_0x27d46c?[_0x27d46c]:[],'tdx':_0x2286ac});gracefulExit(_0x2cb1a8);}),agentSyncCmd[a2_0x52af75(0x35c)]('test\x20[path]')[a2_0x52af75(0x36b)](a2_0x52af75(0x142))[a2_0x52af75(0x274)](a2_0x52af75(0x383),a2_0x52af75(0x36d))['option'](a2_0x52af75(0x28b),'Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)')[a2_0x52af75(0x274)]('--dry-run','Parse\x20and\x20validate\x20without\x20executing')['option'](a2_0x52af75(0x1cc),'Generate\x20test\x20conversations\x20without\x20evaluation')['option'](a2_0x52af75(0x122),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x52af75(0x2d5)](async(_0x30dacd,_0x2a669e)=>{const _0x495a8a=a2_0x52af75,_0x550f4d=new AgentTestCommand(),_0x1a4553=program[_0x495a8a(0x341)](),_0x33091e=await createTDXInstance(_0x1a4553),_0x47da03=await _0x550f4d[_0x495a8a(0x312)]({'options':{..._0x1a4553,..._0x2a669e},'args':_0x30dacd?[_0x30dacd]:[],'tdx':_0x33091e});gracefulExit(_0x47da03);}),agentSyncCmd[a2_0x52af75(0x35c)]('list\x20[pattern]')[a2_0x52af75(0x36b)](a2_0x52af75(0x13b))['action'](llmAgentListAction),agentSyncCmd[a2_0x52af75(0x35c)](a2_0x52af75(0x13f))['description']('Show\x20agent\x20details')['action'](async(_0x209f4e,_0x17ca33)=>{const _0x1d36fa=a2_0x52af75,_0x44f47d=new LLMAgentShowCommand(),_0x2f6760=program['opts'](),_0x6d563e=await createTDXInstance(_0x2f6760),_0x29f4b6=await _0x44f47d[_0x1d36fa(0x312)]({'options':{..._0x2f6760,..._0x17ca33},'args':[_0x209f4e],'tdx':_0x6d563e});gracefulExit(_0x29f4b6);}),agentSyncCmd['command'](a2_0x52af75(0x2ec))[a2_0x52af75(0x36b)](a2_0x52af75(0x241))[a2_0x52af75(0x274)]('--system-prompt\x20<text>',a2_0x52af75(0x178))[a2_0x52af75(0x274)](a2_0x52af75(0x200),a2_0x52af75(0x150),a2_0x52af75(0x32e))['option'](a2_0x52af75(0x10f),a2_0x52af75(0x2f0))['option'](a2_0x52af75(0x2eb),a2_0x52af75(0x186),'4')[a2_0x52af75(0x274)](a2_0x52af75(0x20f),a2_0x52af75(0x25c),a2_0x52af75(0x235))[a2_0x52af75(0x2d5)](async(_0x9cf8ad,_0x38056c)=>{const _0x45d2a5=a2_0x52af75,_0x34cf86=new LLMAgentCreateCommand(),_0x29f5f5=program[_0x45d2a5(0x341)](),_0x51fc31=await createTDXInstance(_0x29f5f5),_0x58ca18=await _0x34cf86['run']({'options':{..._0x29f5f5,..._0x38056c},'args':[_0x9cf8ad],'tdx':_0x51fc31});gracefulExit(_0x58ca18);}),agentSyncCmd['command'](a2_0x52af75(0x32c))['description']('Update\x20an\x20existing\x20agent')[a2_0x52af75(0x274)](a2_0x52af75(0x174),a2_0x52af75(0x136))[a2_0x52af75(0x274)](a2_0x52af75(0x205),a2_0x52af75(0x21a))['option']('--description\x20<text>',a2_0x52af75(0x19e))[a2_0x52af75(0x274)](a2_0x52af75(0x10f),a2_0x52af75(0x2f0))['action'](async(_0x462fcd,_0xaedb46)=>{const _0x137094=a2_0x52af75,_0x50ec4b=new LLMAgentUpdateCommand(),_0x5c2f9f=program['opts'](),_0x2b7433=await createTDXInstance(_0x5c2f9f),_0xeac511=await _0x50ec4b[_0x137094(0x312)]({'options':{..._0x5c2f9f,..._0xaedb46},'args':[_0x462fcd],'tdx':_0x2b7433});gracefulExit(_0xeac511);}),agentSyncCmd[a2_0x52af75(0x35c)]('delete\x20<agent-name>')['description']('Delete\x20an\x20agent')[a2_0x52af75(0x2d5)](async(_0x5bae98,_0x598c1a)=>{const _0x221052=a2_0x52af75,_0x29558e=new LLMAgentDeleteCommand(),_0x1e3418=program[_0x221052(0x341)](),_0x3384cf=await createTDXInstance(_0x1e3418),_0x4b8497=await _0x29558e[_0x221052(0x312)]({'options':{..._0x1e3418,..._0x598c1a},'args':[_0x5bae98],'tdx':_0x3384cf});gracefulExit(_0x4b8497);}),program[a2_0x52af75(0x35c)](a2_0x52af75(0x18f),{'hidden':!![]})[a2_0x52af75(0x2d5)](()=>{const _0x37b106=a2_0x52af75;function _0x148275(_0x130aef,_0x253959){const _0x478c07=a2_0x1937,_0x3b2ae5=[];for(const _0x4c2c2e of _0x130aef['commands']){if(_0x4c2c2e['_hidden'])continue;const _0x52eb55=_0x253959?_0x253959+'\x20'+_0x4c2c2e[_0x478c07(0x296)]():_0x4c2c2e['name'](),_0x1535b6=_0x52eb55[_0x478c07(0x261)]('\x20')[0x0],_0x809a96=COMMAND_CATEGORIES[_0x478c07(0x102)](_0x48d0e5=>_0x48d0e5['commands'][_0x478c07(0x158)](_0x1535b6)),_0x5aefa2=_0x809a96?.['name']??'';if(_0x4c2c2e['commands'][_0x478c07(0x289)]>0x0)_0x3b2ae5['push'](..._0x148275(_0x4c2c2e,_0x52eb55));else{const _0x45b85f=(_0x4c2c2e[_0x478c07(0x212)]||[])['map'](_0x1595c5=>{const _0x2fbec0=_0x478c07,_0x1dc993=_0x1595c5[_0x2fbec0(0x127)]?_0x1595c5[_0x2fbec0(0x296)]()+_0x2fbec0(0x336):_0x1595c5[_0x2fbec0(0x296)]();return _0x1595c5[_0x2fbec0(0x12d)]?'<'+_0x1dc993+'>':'['+_0x1dc993+']';})[_0x478c07(0x1e8)]('\x20'),_0x4cbe79=_0x4c2c2e[_0x478c07(0x329)][_0x478c07(0x28f)](_0x3c7b83=>!_0x3c7b83[_0x478c07(0x2b7)]&&_0x3c7b83['long']!==_0x478c07(0x13d))[_0x478c07(0x162)](_0x5ced16=>({'flags':_0x5ced16[_0x478c07(0x1c2)],'description':_0x5ced16[_0x478c07(0x36b)]}));_0x3b2ae5[_0x478c07(0x355)]({'name':_0x52eb55,'description':_0x4c2c2e[_0x478c07(0x36b)](),'group':_0x5aefa2,'usage':_0x45b85f,'options':_0x4cbe79});}}return _0x3b2ae5;}console[_0x37b106(0x3af)](JSON[_0x37b106(0x3d0)](_0x148275(program,''))),process[_0x37b106(0x196)](0x0);});export{program};function a2_0x1937(_0x24b26d,_0xff9b6f){_0x24b26d=_0x24b26d-0x100;const _0x4c3875=a2_0x4c38();let _0x1937e7=_0x4c3875[_0x24b26d];return _0x1937e7;}export function runCLI(){const _0xefa6b=a2_0x52af75,_0xb28461=!process[_0xefa6b(0x388)][_0xefa6b(0x169)](0x2)[_0xefa6b(0x289)];showBriefHelp=_0xb28461,program[_0xefa6b(0x1d5)](process[_0xefa6b(0x388)]);_0xb28461&&program[_0xefa6b(0x251)]();const _0x1b2a37=process[_0xefa6b(0x388)][0x2]===_0xefa6b(0x2af);if(process[_0xefa6b(0x20b)][_0xefa6b(0x302)]&&process[_0xefa6b(0x388)]['length']>0x2&&!isDevVersion()&&!_0x1b2a37){const _0x58e0c3=loadReleaseChannel();checkForUpdate(currentVersion,_0x58e0c3)[_0xefa6b(0x291)](_0x5ecb80=>{_0x5ecb80&&displayUpdateNotification(_0x5ecb80);})[_0xefa6b(0x210)](()=>{});}}