@treasuredata/tdx 2026.3.13 → 2026.3.14

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 (201) 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.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/profile-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/schedule-command.js +1 -1
  37. package/dist/commands/segment-command.js +1 -1
  38. package/dist/commands/segment-create-command.js +1 -1
  39. package/dist/commands/segment-fields-command.js +1 -1
  40. package/dist/commands/segment-pull-command.js +1 -1
  41. package/dist/commands/segment-push-command.js +1 -1
  42. package/dist/commands/segment-update-command.js +1 -1
  43. package/dist/commands/segment-use-command.js +1 -1
  44. package/dist/commands/segment-validate-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/status-command.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/unset-command.js +1 -1
  50. package/dist/commands/upgrade-command.js +1 -1
  51. package/dist/commands/use-command.js +1 -1
  52. package/dist/commands/user-command.js +1 -1
  53. package/dist/commands/workflow-command.js +1 -1
  54. package/dist/core/auth.js +1 -1
  55. package/dist/core/command-output.js +1 -1
  56. package/dist/core/config.js +1 -1
  57. package/dist/core/connection-cache.js +1 -1
  58. package/dist/core/constants.js +1 -1
  59. package/dist/core/credential-cache.js +1 -1
  60. package/dist/core/global-context.js +1 -1
  61. package/dist/core/keychain.js +1 -1
  62. package/dist/core/oauth-keychain.js +1 -1
  63. package/dist/core/oauth.js +1 -1
  64. package/dist/core/profile.js +1 -1
  65. package/dist/core/project-config.js +1 -1
  66. package/dist/core/session.js +1 -1
  67. package/dist/core/user-cache.js +1 -1
  68. package/dist/core/version.js +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/mcp/server.js +1 -1
  71. package/dist/mcp/tools/index.js +1 -1
  72. package/dist/mcp/tools/tdx-run.js +1 -1
  73. package/dist/mcp/tools/tdx-search.js +1 -1
  74. package/dist/mcp/utils.js +1 -1
  75. package/dist/proxy/claude-usage-tracker.js +1 -1
  76. package/dist/proxy/passthrough-server.js +1 -1
  77. package/dist/proxy/sse-usage-parser.js +1 -1
  78. package/dist/sdk/agent/agent-config.js +1 -1
  79. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  80. package/dist/sdk/agent/agent-yaml.js +1 -1
  81. package/dist/sdk/agent/test/evaluator.js +1 -1
  82. package/dist/sdk/agent/test/executor.js +1 -1
  83. package/dist/sdk/agent/test/index.js +1 -1
  84. package/dist/sdk/agent/test/output.js +1 -1
  85. package/dist/sdk/agent/test/parser.js +1 -1
  86. package/dist/sdk/agent/tool-target-registry.js +1 -1
  87. package/dist/sdk/api.js +1 -1
  88. package/dist/sdk/client/cdp-api-client.js +1 -1
  89. package/dist/sdk/client/delivery-api-client.js +1 -1
  90. package/dist/sdk/client/endpoints.js +1 -1
  91. package/dist/sdk/client/engage-api-client.js +1 -1
  92. package/dist/sdk/client/http-client.js +1 -1
  93. package/dist/sdk/client/llm-api-client.js +1 -1
  94. package/dist/sdk/client/oauth-refresh.js +1 -1
  95. package/dist/sdk/client/rate-limiter.js +1 -1
  96. package/dist/sdk/client/td-api-client.js +1 -1
  97. package/dist/sdk/client/trino-api-client.js +1 -1
  98. package/dist/sdk/client/workflow-client.js +1 -1
  99. package/dist/sdk/connection-validator.js +1 -1
  100. package/dist/sdk/connection.js +1 -1
  101. package/dist/sdk/delivery.js +1 -1
  102. package/dist/sdk/engage/campaign-pull.js +1 -1
  103. package/dist/sdk/engage/campaign-push.js +1 -1
  104. package/dist/sdk/engage/campaign-validator.js +1 -1
  105. package/dist/sdk/engage/campaign-yaml.js +1 -1
  106. package/dist/sdk/engage/template-pull.js +1 -1
  107. package/dist/sdk/engage/template-push.js +1 -1
  108. package/dist/sdk/engage/template-validator.js +1 -1
  109. package/dist/sdk/engage/template-yaml.js +1 -1
  110. package/dist/sdk/engage/types/campaign-def.js +1 -1
  111. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  112. package/dist/sdk/engage/types/template-schema.js +1 -1
  113. package/dist/sdk/engage.js +1 -1
  114. package/dist/sdk/errors.js +1 -1
  115. package/dist/sdk/index.js +1 -1
  116. package/dist/sdk/io/index.js +1 -1
  117. package/dist/sdk/io/node-filesystem.js +1 -1
  118. package/dist/sdk/job.js +1 -1
  119. package/dist/sdk/journey.js +1 -1
  120. package/dist/sdk/llm/chat-cache.js +1 -1
  121. package/dist/sdk/llm/index.js +1 -1
  122. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  123. package/dist/sdk/llm/model-factors.js +1 -1
  124. package/dist/sdk/personalization.js +1 -1
  125. package/dist/sdk/query/index.js +1 -1
  126. package/dist/sdk/query/sql-parser.js +1 -1
  127. package/dist/sdk/realtime.js +1 -1
  128. package/dist/sdk/schedule.js +1 -1
  129. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  130. package/dist/sdk/segment/fields-display.js +1 -1
  131. package/dist/sdk/segment/file-discovery.js +1 -1
  132. package/dist/sdk/segment/journey-utils.js +1 -1
  133. package/dist/sdk/segment/journey-validator.js +1 -1
  134. package/dist/sdk/segment/journey-yaml.js +1 -1
  135. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  136. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  137. package/dist/sdk/segment/pull-workflow.js +1 -1
  138. package/dist/sdk/segment/push-recovery.js +1 -1
  139. package/dist/sdk/segment/push-workflow.js +1 -1
  140. package/dist/sdk/segment/resolution-context.js +1 -1
  141. package/dist/sdk/segment/segment-path-parser.js +1 -1
  142. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  143. package/dist/sdk/segment/segment-validator.js +1 -1
  144. package/dist/sdk/segment/target-resolution.js +1 -1
  145. package/dist/sdk/segment/tdx-config.js +1 -1
  146. package/dist/sdk/segment/types/activation-schema.js +1 -1
  147. package/dist/sdk/segment/types/journey-def.js +1 -1
  148. package/dist/sdk/segment/types/journey-schema.js +1 -1
  149. package/dist/sdk/segment/types/segment-def.js +1 -1
  150. package/dist/sdk/segment/types/segment-schema.js +1 -1
  151. package/dist/sdk/segment/validate-files.js +1 -1
  152. package/dist/sdk/segment/yaml-validator.js +1 -1
  153. package/dist/sdk/segment.js +1 -1
  154. package/dist/sdk/types/index.js +1 -1
  155. package/dist/sdk/types/progress.js +1 -1
  156. package/dist/sdk/user.js +1 -1
  157. package/dist/sdk/util/format-detector.js +1 -1
  158. package/dist/sdk/util/formatters.js +1 -1
  159. package/dist/sdk/util/index.js +1 -1
  160. package/dist/sdk/util/paginate.js +1 -1
  161. package/dist/sdk/util/tree-formatter.js +1 -1
  162. package/dist/sdk/workflow/archive-validation.js +1 -1
  163. package/dist/sdk/workflow/clone-workflow.js +1 -1
  164. package/dist/sdk/workflow/index.js +1 -1
  165. package/dist/sdk/workflow/pull-workflow.js +1 -1
  166. package/dist/sdk/workflow/push-workflow.js +1 -1
  167. package/dist/sdk/workflow/tdx-config.js +1 -1
  168. package/dist/sdk/workflow/workflow-utils.js +1 -1
  169. package/dist/test-utils/command-runner.js +1 -1
  170. package/dist/test-utils/factories.js +1 -1
  171. package/dist/test-utils/fixtures.js +1 -1
  172. package/dist/test-utils/http-mock.js +1 -1
  173. package/dist/test-utils/index.js +1 -1
  174. package/dist/utils/async.js +1 -1
  175. package/dist/utils/colors.js +1 -1
  176. package/dist/utils/diff.js +1 -1
  177. package/dist/utils/file-permissions.js +1 -1
  178. package/dist/utils/file-reader.js +1 -1
  179. package/dist/utils/github-releases.js +1 -1
  180. package/dist/utils/global-cache.js +1 -1
  181. package/dist/utils/json-loader.js +1 -1
  182. package/dist/utils/local-cache.js +1 -1
  183. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  184. package/dist/utils/logger/formatters/index.js +1 -1
  185. package/dist/utils/logger/handlers/console-handler.js +1 -1
  186. package/dist/utils/logger/handlers/file-handler.js +1 -1
  187. package/dist/utils/logger/handlers/index.js +1 -1
  188. package/dist/utils/logger/handlers/null-handler.js +1 -1
  189. package/dist/utils/logger/index.js +1 -1
  190. package/dist/utils/logger/logger.js +1 -1
  191. package/dist/utils/logger/types.js +1 -1
  192. package/dist/utils/option-validation.js +1 -1
  193. package/dist/utils/process.js +1 -1
  194. package/dist/utils/prompt.js +1 -1
  195. package/dist/utils/spinner.js +1 -1
  196. package/dist/utils/sse-parser.js +1 -1
  197. package/dist/utils/string-utils.js +1 -1
  198. package/dist/utils/table-ref-parser.js +1 -1
  199. package/dist/utils/tdx-logger.js +1 -1
  200. package/dist/utils/version-check.js +1 -1
  201. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x360f70=a2_0x4908;(function(_0x844a4a,_0x476a56){const _0x977db5=a2_0x4908,_0x2483a7=_0x844a4a();while(!![]){try{const _0x1e5e2b=parseInt(_0x977db5(0x28b))/0x1+-parseInt(_0x977db5(0x228))/0x2*(-parseInt(_0x977db5(0x2e3))/0x3)+-parseInt(_0x977db5(0x25b))/0x4*(-parseInt(_0x977db5(0x214))/0x5)+-parseInt(_0x977db5(0x382))/0x6*(parseInt(_0x977db5(0x3c3))/0x7)+parseInt(_0x977db5(0x19a))/0x8*(-parseInt(_0x977db5(0x15f))/0x9)+-parseInt(_0x977db5(0x1a8))/0xa*(-parseInt(_0x977db5(0x3a5))/0xb)+-parseInt(_0x977db5(0x1c4))/0xc*(parseInt(_0x977db5(0x2cb))/0xd);if(_0x1e5e2b===_0x476a56)break;else _0x2483a7['push'](_0x2483a7['shift']());}catch(_0x47b462){_0x2483a7['push'](_0x2483a7['shift']());}}}(a2_0x3806,0x99f93));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,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,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{AuthLoginCommand}from'./commands/auth-login-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_0x360f70(0x1fe)][a2_0x360f70(0x18c)](a2_0x360f70(0x206))){let versionOutput=a2_0x360f70(0x416)+currentVersion;buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x360f70(0x3ae)])&&(versionOutput+='\x20('+buildInfo[a2_0x360f70(0x3ae)]+')'),buildInfo[a2_0x360f70(0x369)]&&(versionOutput+=a2_0x360f70(0x3a4)+buildInfo[a2_0x360f70(0x369)]),console['log'](versionOutput),process[a2_0x360f70(0x365)](0x0);}const program=new Command();export function mergeCommandOptions(_0x14d22b,_0x5aeb6b){const _0x4f133c=a2_0x360f70,_0x3de068={..._0x14d22b};for(const [_0x263b41,_0x35135f]of Object[_0x4f133c(0x40c)](_0x5aeb6b)){_0x35135f!==undefined&&(_0x3de068[_0x263b41]=_0x35135f);}return _0x3de068;}let showBriefHelp=![],description=a2_0x360f70(0x260);buildInfo['gitRevision']&&!currentVersion[a2_0x360f70(0x18c)](buildInfo[a2_0x360f70(0x3ae)])?description+=a2_0x360f70(0x250)+currentVersion+'\x20('+buildInfo[a2_0x360f70(0x3ae)]+')':description+=a2_0x360f70(0x250)+currentVersion;program['name'](a2_0x360f70(0x18d))[a2_0x360f70(0x390)](description),program[a2_0x360f70(0x2e6)](a2_0x360f70(0x3e5),'Change\x20to\x20directory\x20before\x20executing\x20command')['option'](a2_0x360f70(0x274),a2_0x360f70(0x355))[a2_0x360f70(0x2e6)](a2_0x360f70(0x165),a2_0x360f70(0x185),a2_0x360f70(0x414))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1d4),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x360f70(0x2e6)]('--table',a2_0x360f70(0x2d8))['option'](a2_0x360f70(0x275),a2_0x360f70(0x28a))['option'](a2_0x360f70(0x379),a2_0x360f70(0x22d))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3a3),a2_0x360f70(0x381))[a2_0x360f70(0x2e6)](a2_0x360f70(0x27a),'Save\x20output\x20to\x20file')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3e8),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x360f70(0x2e6)]('--color',a2_0x360f70(0x197),![])[a2_0x360f70(0x2e6)](a2_0x360f70(0x34e),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option']('-v,\x20--verbose',a2_0x360f70(0x3a7),![])[a2_0x360f70(0x2e6)](a2_0x360f70(0x37e),a2_0x360f70(0x160))[a2_0x360f70(0x2e6)](a2_0x360f70(0x16c),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x36a),a2_0x360f70(0x211),'30')[a2_0x360f70(0x2e6)]('--dry-run','Preview\x20operation\x20without\x20executing',![])['option'](a2_0x360f70(0x372),a2_0x360f70(0x32d),![])[a2_0x360f70(0x2e6)](a2_0x360f70(0x2d1),a2_0x360f70(0x226))[a2_0x360f70(0x2e6)](a2_0x360f70(0x29d),a2_0x360f70(0x3fc))['option'](a2_0x360f70(0x252),a2_0x360f70(0x255)),program[a2_0x360f70(0x407)]({'formatHelp':(_0x37cfae,_0x846267)=>{const _0x1bbc27=a2_0x360f70,_0x326be5=_0x846267[_0x1bbc27(0x298)](_0x37cfae,_0x846267),_0x150e87=0x2,_0x3495cc=0x2;function _0x12923f(_0x3d589e){const _0x1e3e3e=_0x1bbc27,_0x34f6b9=_0x3d589e;return!!(_0x34f6b9[_0x1e3e3e(0x310)]||_0x34f6b9[_0x1e3e3e(0x3a0)]);}function _0x4c9b91(_0x1c8a08,_0x2ef213){const _0x958508=_0x1bbc27;if(_0x2ef213){const _0x569989=''+_0x1c8a08[_0x958508(0x352)](_0x326be5+_0x3495cc)+_0x2ef213;return _0x569989;}return _0x1c8a08;}function _0x2544fd(_0x45de05){const _0x72876b=_0x1bbc27;return _0x45de05[_0x72876b(0x313)]('\x0a')['replace'](/^/gm,'\x20'[_0x72876b(0x1b7)](_0x150e87));}const _0x1ec4ee=[];_0x1ec4ee[_0x1bbc27(0x1d1)]('Usage:\x20'+_0x846267['commandUsage'](_0x37cfae));const _0x2aac81=_0x846267['commandDescription'](_0x37cfae);_0x2aac81&&(_0x1ec4ee[_0x1bbc27(0x1d1)](''),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x2aac81));const _0x554c20=_0x37cfae[_0x1bbc27(0x16d)]['filter'](_0x3964f2=>!_0x12923f(_0x3964f2));if(_0x554c20[_0x1bbc27(0x157)]>0x0){if(_0x37cfae[_0x1bbc27(0x218)]()===_0x1bbc27(0x18d)){const _0x58ee8c=_0x37cfae[_0x1bbc27(0x186)](),_0x1ed6c0=!_0x58ee8c[_0x1bbc27(0x2bc)]&&process[_0x1bbc27(0x167)][_0x1bbc27(0x2fc)],_0x5b1762=COMMAND_CATEGORIES,_0x211071=(_0x3d478f,_0x37b548)=>_0x1ed6c0?_0x37b548(_0x3d478f):_0x3d478f,_0x40cb8c=new Map();_0x554c20['forEach'](_0x43a2e4=>{const _0x34bdbd=_0x1bbc27;_0x40cb8c['set'](_0x43a2e4[_0x34bdbd(0x218)](),_0x43a2e4);}),_0x5b1762['forEach'](_0x8551d9=>{const _0x2521f9=_0x1bbc27,_0x32ce1b=_0x8551d9[_0x2521f9(0x16d)][_0x2521f9(0x1b9)](_0x46b503=>_0x40cb8c[_0x2521f9(0x36c)](_0x46b503)??[]);if(_0x32ce1b[_0x2521f9(0x157)]>0x0){_0x1ec4ee[_0x2521f9(0x1d1)](''),_0x1ec4ee[_0x2521f9(0x1d1)](_0x211071(_0x8551d9['name']+':',_0x8551d9[_0x2521f9(0x1a6)]));const _0x26ad93=_0x32ce1b[_0x2521f9(0x3f7)](_0x266ac2=>{const _0x8b5def=_0x846267['subcommandTerm'](_0x266ac2),_0x2f5f13=_0x846267['subcommandDescription'](_0x266ac2);return _0x4c9b91(_0x8b5def,_0x2f5f13);});_0x1ec4ee[_0x2521f9(0x1d1)](_0x2544fd(_0x26ad93));}}),_0x1ec4ee[_0x1bbc27(0x1d1)](''),_0x1ec4ee[_0x1bbc27(0x1d1)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x44ffa5=_0x554c20[_0x1bbc27(0x3f7)](_0x5c9787=>{const _0x1acaa3=_0x1bbc27,_0x5ae975=_0x846267[_0x1acaa3(0x204)](_0x5c9787),_0x383b9c=_0x846267[_0x1acaa3(0x1c8)](_0x5c9787);return _0x4c9b91(_0x5ae975,_0x383b9c);});_0x1ec4ee[_0x1bbc27(0x1d1)](''),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x1bbc27(0x30d)),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x2544fd(_0x44ffa5));}}if(showBriefHelp&&_0x37cfae['name']()===_0x1bbc27(0x18d))_0x1ec4ee[_0x1bbc27(0x1d1)](''),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x1bbc27(0x315));else{const _0x3a0d64=_0x37cfae[_0x1bbc27(0x3e1)][_0x1bbc27(0x1f4)](_0x27c4f7=>!_0x12923f(_0x27c4f7));if(_0x3a0d64['length']>0x0){const _0x411d15=_0x3a0d64[_0x1bbc27(0x3f7)](_0x5c6088=>{const _0x45b87e=_0x1bbc27,_0x21f105=_0x846267[_0x45b87e(0x277)](_0x5c6088),_0x24640a=_0x846267[_0x45b87e(0x353)](_0x5c6088);return _0x4c9b91(_0x21f105,_0x24640a);});_0x1ec4ee[_0x1bbc27(0x1d1)](''),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x1bbc27(0x21b)),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x2544fd(_0x411d15));}}const _0x993648=(_0x37cfae[_0x1bbc27(0x358)]||[])[_0x1bbc27(0x1f4)](_0x2d011c=>!_0x12923f(_0x2d011c));if(_0x993648[_0x1bbc27(0x157)]>0x0){const _0x3af7dc=_0x993648['map'](_0x3b99ac=>{const _0x5cb9c6=_0x1bbc27,_0x3129ef=_0x846267['argumentTerm'](_0x3b99ac),_0x341c2a=_0x846267[_0x5cb9c6(0x2ba)](_0x3b99ac);return _0x4c9b91(_0x3129ef,_0x341c2a);});_0x1ec4ee['push'](''),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x1bbc27(0x39e)),_0x1ec4ee[_0x1bbc27(0x1d1)](_0x2544fd(_0x3af7dc));}return _0x1ec4ee[_0x1bbc27(0x313)]('\x0a')+'\x0a';},'subcommandTerm':_0xa18170=>{const _0x2e0fc5=a2_0x360f70,_0x8e364d=(_0xa18170[_0x2e0fc5(0x358)]||[])['map'](_0x23eeb8=>_0x23eeb8[_0x2e0fc5(0x178)]?'<'+_0x23eeb8[_0x2e0fc5(0x218)]()+'>':'['+_0x23eeb8[_0x2e0fc5(0x218)]()+']')[_0x2e0fc5(0x313)]('\x20'),_0x772248=_0xa18170[_0x2e0fc5(0x2c5)](),_0x4b2c6a=_0x772248[_0x2e0fc5(0x157)]>0x0?_0xa18170[_0x2e0fc5(0x218)]()+',\x20'+_0x772248[_0x2e0fc5(0x313)](',\x20'):_0xa18170[_0x2e0fc5(0x218)]();return _0x8e364d?_0x4b2c6a+'\x20'+_0x8e364d:_0x4b2c6a;}}),program[a2_0x360f70(0x377)]('preAction',_0x57a720=>{const _0x283a30=a2_0x360f70,_0x52245c=_0x57a720[_0x283a30(0x186)]();if(_0x52245c[_0x283a30(0x25f)]){const _0xbe6c74=resolve(_0x52245c[_0x283a30(0x25f)]),_0x3dedc4=_0xbe6c74!==_0x52245c[_0x283a30(0x25f)]?'\x20(resolved\x20to\x20'+_0xbe6c74+')':'';if(!existsSync(_0xbe6c74))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x283a30(0x1c6)+_0x52245c[_0x283a30(0x25f)]+_0x3dedc4,undefined,{'helpText':_0x283a30(0x3c6)});const _0x2690b1=statSync(_0xbe6c74);if(!_0x2690b1[_0x283a30(0x1d9)]())throw new SDKError(ErrorCode[_0x283a30(0x266)],_0x283a30(0x320)+_0x52245c[_0x283a30(0x25f)]+_0x3dedc4,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process['chdir'](_0xbe6c74);}if(!_0x52245c['format']){if(_0x52245c[_0x283a30(0x2d5)])_0x52245c[_0x283a30(0x3ef)]=_0x283a30(0x2d5);else{if(_0x52245c[_0x283a30(0x21f)])_0x52245c['format']=_0x283a30(0x21f);else{if(_0x52245c[_0x283a30(0x2f4)])_0x52245c[_0x283a30(0x3ef)]=_0x283a30(0x2f4);else _0x52245c['tsv']&&(_0x52245c[_0x283a30(0x3ef)]=_0x283a30(0x2d3));}}}if(_0x52245c[_0x283a30(0x17e)])_0x52245c[_0x283a30(0x182)]=LogLevel['TRACE'];else{if(_0x52245c['debug'])_0x52245c[_0x283a30(0x182)]=LogLevel[_0x283a30(0x26a)];else _0x52245c[_0x283a30(0x182)]===undefined&&(_0x52245c['logLevel']=LogLevel[_0x283a30(0x3f6)]);}});async function createTDXInstance(_0x139c24){const _0x5c522b=a2_0x360f70,_0x16c6b3=await GlobalContext['createAsync'](_0x139c24);return _0x16c6b3[_0x5c522b(0x341)](_0x139c24),TDX[_0x5c522b(0x269)]({'site':_0x16c6b3[_0x5c522b(0x1a4)],'apiKey':_0x16c6b3[_0x5c522b(0x1f3)],'accessToken':_0x16c6b3['accessToken'],'logLevel':_0x16c6b3[_0x5c522b(0x182)],'profile':_0x16c6b3[_0x5c522b(0x3e6)]});}const databaseCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x223))[a2_0x360f70(0x367)]('db')[a2_0x360f70(0x390)]('Database\x20management\x20commands'),databaseListAction=async(_0x134c6a,_0x47a7bc)=>{const _0x340292=a2_0x360f70,_0x32a1b0=new DatabasesCommand(),_0x56a230=program[_0x340292(0x186)](),_0x2b875c=await createTDXInstance(_0x56a230),_0xb7f524=await _0x32a1b0[_0x340292(0x3bf)]({'options':{..._0x56a230,..._0x47a7bc},'args':_0x134c6a?[_0x134c6a]:[],'tdx':_0x2b875c});gracefulExit(_0xb7f524);};databaseCmd[a2_0x360f70(0x339)]('list\x20[pattern]')['description'](a2_0x360f70(0x3c8))[a2_0x360f70(0x40a)](databaseListAction),program['command'](a2_0x360f70(0x22f),{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x35b))[a2_0x360f70(0x40a)](databaseListAction),program[a2_0x360f70(0x339)](a2_0x360f70(0x17a))[a2_0x360f70(0x390)](a2_0x360f70(0x3bc))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b8),a2_0x360f70(0x305))[a2_0x360f70(0x2e6)](a2_0x360f70(0x349),a2_0x360f70(0x3f0))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ad),a2_0x360f70(0x25e))[a2_0x360f70(0x2e6)]('--stream',a2_0x360f70(0x1a2))[a2_0x360f70(0x40a)](async(_0xd569cb,_0x4a6369)=>{const _0x214bb4=a2_0x360f70,_0x4d02f4=program['opts'](),_0x18793f=await createTDXInstance(_0x4d02f4);if(_0xd569cb[0x0]===_0x214bb4(0x269)){const _0x5031da=new ChatCreateCommand();gracefulExit(await _0x5031da[_0x214bb4(0x3bf)]({'options':{..._0x4d02f4,..._0x4a6369},'args':_0xd569cb['slice'](0x1),'tdx':_0x18793f}));return;}const _0x51acf0=new ChatCommand(),_0x2fe383=await _0x51acf0[_0x214bb4(0x3bf)]({'options':{..._0x4d02f4,..._0x4a6369},'args':_0xd569cb,'tdx':_0x18793f});gracefulExit(_0x2fe383);});const apiCmd=program['command'](a2_0x360f70(0x16e))[a2_0x360f70(0x176)](a2_0x360f70(0x309))['addHelpText'](a2_0x360f70(0x35d),a2_0x360f70(0x1ed))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1c7),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x360f70(0x387))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2a4),a2_0x360f70(0x28e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x244),a2_0x360f70(0x346))[a2_0x360f70(0x2e6)](a2_0x360f70(0x402),a2_0x360f70(0x2e9),(_0x3ccd4b,_0x550347)=>{return _0x550347?[..._0x550347,_0x3ccd4b]:[_0x3ccd4b];})[a2_0x360f70(0x2e6)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x1e6e66,_0x39edf9)=>{const _0x580fec=a2_0x360f70;if(!_0x1e6e66){apiCmd[_0x580fec(0x2ed)]();return;}const _0x56d30c=new ApiCommand(),_0x499203=program[_0x580fec(0x186)](),_0x26b0a4=await createTDXInstance(_0x499203),_0x3b99f5=await _0x56d30c[_0x580fec(0x3bf)]({'options':{..._0x499203,..._0x39edf9},'args':[_0x1e6e66],'tdx':_0x26b0a4});gracefulExit(_0x3b99f5);});program[a2_0x360f70(0x339)](a2_0x360f70(0x1f1))[a2_0x360f70(0x390)]('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')[a2_0x360f70(0x350)](a2_0x360f70(0x35d),a2_0x360f70(0x163))[a2_0x360f70(0x40a)](async _0x2d82ee=>{const _0xe51d68=a2_0x360f70,_0x48e8fe=new MCPCommand(),_0x32e71e=program['opts'](),_0x2eee6a=await createTDXInstance(_0x32e71e),_0x2c28d1=await _0x48e8fe[_0xe51d68(0x3bf)]({'options':{..._0x32e71e,..._0x2d82ee},'args':[],'tdx':_0x2eee6a});gracefulExit(_0x2c28d1);});const tableCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x2d5))[a2_0x360f70(0x390)](a2_0x360f70(0x363)),tableListAction=async(_0x3e8a2e,_0xdb9957)=>{const _0x3fd7ea=a2_0x360f70,_0x366c19=new TablesCommand(),_0x5b4a1b=program['opts'](),_0xa9cc0e=await createTDXInstance(_0x5b4a1b);_0xdb9957['in']&&(_0xdb9957[_0x3fd7ea(0x223)]=_0xdb9957['in']);const _0xd74b77=await _0x366c19[_0x3fd7ea(0x3bf)]({'options':{..._0x5b4a1b,..._0xdb9957},'args':_0x3e8a2e?[_0x3e8a2e]:[],'tdx':_0xa9cc0e});gracefulExit(_0xd74b77);};tableCmd['command'](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x15d))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2df),a2_0x360f70(0x2a9))[a2_0x360f70(0x2e6)]('--in\x20<database>',a2_0x360f70(0x307))[a2_0x360f70(0x40a)](tableListAction),program[a2_0x360f70(0x339)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x282))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2df),a2_0x360f70(0x2a9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x360f70(0x40a)](tableListAction),program[a2_0x360f70(0x339)](a2_0x360f70(0x26d))[a2_0x360f70(0x390)](a2_0x360f70(0x1b8))['option'](a2_0x360f70(0x2df),a2_0x360f70(0x340))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d8),a2_0x360f70(0x307))[a2_0x360f70(0x40a)](async(_0x40310e,_0x1aba54)=>{const _0x298e8b=a2_0x360f70,_0xa149fa=new ShowCommand(),_0x94d8ce=program[_0x298e8b(0x186)](),_0x4a1fee=await createTDXInstance(_0x94d8ce);_0x1aba54['in']&&(_0x1aba54[_0x298e8b(0x223)]=_0x1aba54['in']);const _0x4cf720=await _0xa149fa[_0x298e8b(0x3bf)]({'options':{..._0x94d8ce,..._0x1aba54},'args':_0x40310e?[_0x40310e]:[],'tdx':_0x4a1fee});gracefulExit(_0x4cf720);}),program[a2_0x360f70(0x339)]('describe\x20[table]')[a2_0x360f70(0x367)]('desc')['description']('Describe\x20table\x20schema')['option'](a2_0x360f70(0x2df),a2_0x360f70(0x340))[a2_0x360f70(0x2e6)]('--in\x20<database>',a2_0x360f70(0x307))[a2_0x360f70(0x40a)](async(_0x1ebe75,_0x52e155)=>{const _0xcb4cc3=a2_0x360f70,_0x31498b=new DescribeCommand(),_0xc9b0db=program[_0xcb4cc3(0x186)](),_0x5b2676=await createTDXInstance(_0xc9b0db);_0x52e155['in']&&(_0x52e155[_0xcb4cc3(0x223)]=_0x52e155['in']);const _0xea1980=await _0x31498b['run']({'options':{..._0xc9b0db,..._0x52e155},'args':_0x1ebe75?[_0x1ebe75]:[],'tdx':_0x5b2676});gracefulExit(_0xea1980);}),program['command']('query\x20[sql]')[a2_0x360f70(0x390)](a2_0x360f70(0x264))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2df),a2_0x360f70(0x3cf))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d8),a2_0x360f70(0x307))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1ef),a2_0x360f70(0x284))[a2_0x360f70(0x2e6)]('-f,\x20--file\x20<path>',a2_0x360f70(0x40e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x14d),a2_0x360f70(0x154))['action'](async(_0x586942,_0x556c90)=>{const _0x534ea8=new QueryCommand(),_0x1a4e56=program['opts'](),_0x41ba02=await createTDXInstance(_0x1a4e56);_0x556c90['in']&&(_0x556c90['database']=_0x556c90['in']);const _0x33ebbb=await _0x534ea8['run']({'options':mergeCommandOptions(_0x1a4e56,_0x556c90),'args':_0x586942?[_0x586942]:[],'tdx':_0x41ba02});gracefulExit(_0x33ebbb);});const segmentCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x192))[a2_0x360f70(0x367)]('sg')[a2_0x360f70(0x390)](a2_0x360f70(0x194)),segmentListAction=async(_0x3c33e8,_0x5e535b)=>{const _0x26517c=a2_0x360f70,_0x54aa76=new SegmentsCommand(),_0x5a45b7=program[_0x26517c(0x186)](),_0x5c6803=await createTDXInstance(_0x5a45b7),_0x165e3a=await _0x54aa76[_0x26517c(0x3bf)]({'options':{..._0x5a45b7,..._0x5e535b},'args':_0x3c33e8?[_0x3c33e8]:[],'tdx':_0x5c6803});gracefulExit(_0x165e3a);};segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x23a))[a2_0x360f70(0x390)](a2_0x360f70(0x285))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3fb),a2_0x360f70(0x31c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x30a),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x360f70(0x40a)](segmentListAction),program[a2_0x360f70(0x339)]('segments\x20[path]',{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x18f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3fb),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x30a),a2_0x360f70(0x169),'10')['action'](segmentListAction),segmentCmd['command'](a2_0x360f70(0x319),{'hidden':!![]})['description'](a2_0x360f70(0x1ad))[a2_0x360f70(0x40a)](async(_0x3922c7,_0x331347)=>{const _0x933e54=a2_0x360f70,_0x5e5c6b=new SegmentUseCommand(),_0x39462f=program[_0x933e54(0x186)](),_0x4c6fb8=await createTDXInstance(_0x39462f),_0x42bd85=await _0x5e5c6b['run']({'options':{..._0x39462f,..._0x331347},'args':[_0x3922c7],'tdx':_0x4c6fb8});gracefulExit(_0x42bd85);});const segmentViewAction=async(_0x31293e,_0x4288b1)=>{const _0xc886dc=a2_0x360f70,_0x1c4c96=new SegmentViewCommand(),_0x260673=program[_0xc886dc(0x186)](),_0x1eba95=await createTDXInstance(_0x260673),_0xf9a9b9=await _0x1c4c96[_0xc886dc(0x3bf)]({'options':{..._0x260673,..._0x4288b1},'args':_0x31293e?[_0x31293e]:[],'tdx':_0x1eba95});gracefulExit(_0xf9a9b9);};segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x161))[a2_0x360f70(0x390)](a2_0x360f70(0x2ef))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1d8),'Open\x20segment\x20in\x20web\x20browser')[a2_0x360f70(0x40a)](segmentViewAction),segmentCmd[a2_0x360f70(0x339)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x360f70(0x367)](a2_0x360f70(0x396))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1d8),a2_0x360f70(0x184))[a2_0x360f70(0x390)](a2_0x360f70(0x2a8))['action'](segmentViewAction),segmentCmd['command'](a2_0x360f70(0x2ab))['description'](a2_0x360f70(0x2b1))[a2_0x360f70(0x40a)](async(_0x3a6df2,_0x371395)=>{const _0x5250c8=a2_0x360f70,_0x3fdc87=new SegmentDescCommand(),_0xee0fdf=program['opts'](),_0x34d463=await createTDXInstance(_0xee0fdf),_0x25c8ad=await _0x3fdc87[_0x5250c8(0x3bf)]({'options':{..._0xee0fdf,..._0x371395},'args':_0x3a6df2?[_0x3a6df2]:[],'tdx':_0x34d463});gracefulExit(_0x25c8ad);}),segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2a7))[a2_0x360f70(0x390)](a2_0x360f70(0x216))[a2_0x360f70(0x40a)](async(_0x47d880,_0x39dbb7)=>{const _0x5a5bd0=a2_0x360f70,_0x5c3b22=new SegmentShowCommand(),_0x1b77d5=program[_0x5a5bd0(0x186)](),_0x35494c=await createTDXInstance(_0x1b77d5),_0x277886=await _0x5c3b22[_0x5a5bd0(0x3bf)]({'options':{..._0x1b77d5,..._0x39dbb7},'args':_0x47d880?[_0x47d880]:[],'tdx':_0x35494c});gracefulExit(_0x277886);}),segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3d1),{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x325))[a2_0x360f70(0x40a)](async(_0x89f085,_0x9aa8c9)=>{const _0x5d9ab9=a2_0x360f70,_0x232e0e=new SegmentFolderListCommand(),_0x3b444e=program[_0x5d9ab9(0x186)](),_0x347caa=await createTDXInstance(_0x3b444e),_0x2fc248=await _0x232e0e[_0x5d9ab9(0x3bf)]({'options':{..._0x3b444e,..._0x9aa8c9},'args':[_0x89f085],'tdx':_0x347caa});gracefulExit(_0x2fc248);});const folderCmd=segmentCmd[a2_0x360f70(0x339)]('folder',{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x1cc));folderCmd[a2_0x360f70(0x339)]('show\x20<folder_ref>')[a2_0x360f70(0x390)](a2_0x360f70(0x362))[a2_0x360f70(0x40a)](async(_0x3efe85,_0x14d55c)=>{const _0x301c5b=a2_0x360f70,_0x47441a=new SegmentFolderShowCommand(),_0x51a46e=program[_0x301c5b(0x186)](),_0x92a02a=await createTDXInstance(_0x51a46e),_0x29a7d0=await _0x47441a[_0x301c5b(0x3bf)]({'options':{..._0x51a46e,..._0x14d55c},'args':[_0x3efe85],'tdx':_0x92a02a});gracefulExit(_0x29a7d0);}),segmentCmd['command'](a2_0x360f70(0x1d2))['description'](a2_0x360f70(0x1a1))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b9),a2_0x360f70(0x190))[a2_0x360f70(0x40a)](async(_0x5c157c,_0x55d54f)=>{const _0x1f253a=a2_0x360f70,_0x2f45ad=new SegmentSQLCommand(),_0x1b2703=program[_0x1f253a(0x186)](),_0x1754e0=await createTDXInstance(_0x1b2703),_0x12b268=await _0x2f45ad[_0x1f253a(0x3bf)]({'options':{..._0x1b2703,..._0x55d54f},'args':_0x5c157c?[_0x5c157c]:[],'tdx':_0x1754e0});gracefulExit(_0x12b268);}),segmentCmd['command']('fields\x20[parent_name]')[a2_0x360f70(0x390)](a2_0x360f70(0x317))[a2_0x360f70(0x40a)](async(_0x48afd6,_0x2cbd36)=>{const _0x1fdbd3=new SegmentFieldsCommand(),_0x2b5201=program['opts'](),_0x4264d3=await createTDXInstance(_0x2b5201),_0x13ddf1=await _0x1fdbd3['run']({'options':{..._0x2b5201,..._0x2cbd36},'args':_0x48afd6?[_0x48afd6]:[],'tdx':_0x4264d3});gracefulExit(_0x13ddf1);}),segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3d0))[a2_0x360f70(0x390)](a2_0x360f70(0x3db))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x360f70(0x40a)](async(_0x41b14f,_0x2bc8b8)=>{const _0x6590e0=a2_0x360f70,_0xca1823=new SegmentPullCommand(),_0x1f4b0f=program[_0x6590e0(0x186)](),_0x2eee79=await createTDXInstance(_0x1f4b0f),_0x2adba5=await _0xca1823['run']({'options':{..._0x1f4b0f,..._0x2bc8b8},'args':_0x41b14f?[_0x41b14f]:[],'tdx':_0x2eee79});gracefulExit(_0x2adba5);}),segmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3ff))['description']('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')['option'](a2_0x360f70(0x1dd),a2_0x360f70(0x2eb))['option'](a2_0x360f70(0x3f3),a2_0x360f70(0x33d))[a2_0x360f70(0x40a)](async(_0x5ccc7e,_0x13b681)=>{const _0x4a43f8=a2_0x360f70,_0x327f64=new SegmentPushCommand(),_0x3e8e18=program['opts'](),_0x617913=await createTDXInstance(_0x3e8e18),_0x33ad8b=await _0x327f64[_0x4a43f8(0x3bf)]({'options':{..._0x3e8e18,..._0x13b681},'args':_0x5ccc7e?[_0x5ccc7e]:[],'tdx':_0x617913});gracefulExit(_0x33ad8b);}),segmentCmd['command'](a2_0x360f70(0x370))['description'](a2_0x360f70(0x152))['action'](async(_0x3b047e,_0x985b75)=>{const _0x212f10=a2_0x360f70,_0x38331e=new SegmentValidateCommand(),_0x381c24=program[_0x212f10(0x186)](),_0x11aad2=await createTDXInstance(_0x381c24),_0x2acb65=await _0x38331e['run']({'options':{..._0x381c24,..._0x985b75},'args':_0x3b047e?[_0x3b047e]:[],'tdx':_0x11aad2});gracefulExit(_0x2acb65);}),segmentCmd[a2_0x360f70(0x339)]('create\x20<segment_name>',{'hidden':!![]})[a2_0x360f70(0x390)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x360f70(0x1b0),a2_0x360f70(0x412))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1f6),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2c0),a2_0x360f70(0x1c5))['option'](a2_0x360f70(0x1db),a2_0x360f70(0x347))['option']('--kind\x20<type>',a2_0x360f70(0x3ea))[a2_0x360f70(0x2e6)]('--invisible',a2_0x360f70(0x1fd))[a2_0x360f70(0x2e6)](a2_0x360f70(0x177),a2_0x360f70(0x3e2))[a2_0x360f70(0x40a)](async(_0x14cdb2,_0x42a2a6)=>{const _0x399729=a2_0x360f70,_0x250515=new SegmentCreateCommand(),_0x4737c1=program['opts'](),_0x15ecbc=await createTDXInstance(_0x4737c1),_0x354d95=await _0x250515[_0x399729(0x3bf)]({'options':{..._0x4737c1,..._0x42a2a6},'args':[_0x14cdb2],'tdx':_0x15ecbc});gracefulExit(_0x354d95);}),segmentCmd['command'](a2_0x360f70(0x174),{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x3f1))[a2_0x360f70(0x2e6)](a2_0x360f70(0x251),'New\x20segment\x20name')[a2_0x360f70(0x2e6)]('--description\x20<text>',a2_0x360f70(0x38e))['option']('--rule\x20<json>',a2_0x360f70(0x175))[a2_0x360f70(0x2e6)]('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1db),a2_0x360f70(0x302))['option'](a2_0x360f70(0x1b3),a2_0x360f70(0x3ea))[a2_0x360f70(0x40a)](async(_0x5aee2b,_0x25863e)=>{const _0xf5cded=a2_0x360f70,_0x359a34=new SegmentUpdateCommand(),_0x51d457=program[_0xf5cded(0x186)](),_0x3f4425=await createTDXInstance(_0x51d457),_0x36dd99=await _0x359a34[_0xf5cded(0x3bf)]({'options':{..._0x51d457,..._0x25863e},'args':[_0x5aee2b],'tdx':_0x3f4425});gracefulExit(_0x36dd99);});const parentCmd=segmentCmd['command']('parent',{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x2c9)),parentListAction=async(_0x51496d,_0x2235f5)=>{const _0x34a448=a2_0x360f70,_0x58e763=new ParentSegmentListCommand(),_0x43352e=program[_0x34a448(0x186)](),_0x1b4aeb=await createTDXInstance(_0x43352e),_0xba2a92=await _0x58e763[_0x34a448(0x3bf)]({'options':{..._0x43352e,..._0x2235f5},'args':_0x51496d?[_0x51496d]:[],'tdx':_0x1b4aeb});gracefulExit(_0xba2a92);};parentCmd[a2_0x360f70(0x339)]('list\x20[pattern]')[a2_0x360f70(0x390)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x360f70(0x40a)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})['description'](a2_0x360f70(0x38a))[a2_0x360f70(0x40a)](parentListAction),parentCmd['command'](a2_0x360f70(0x2db))[a2_0x360f70(0x390)](a2_0x360f70(0x423))[a2_0x360f70(0x2e6)](a2_0x360f70(0x155),a2_0x360f70(0x23f))['action'](async(_0x38e218,_0x19fc6a)=>{const _0x10e83e=a2_0x360f70,_0x3263a3=new ParentSegmentPullCommand(),_0x6dc931=program['opts'](),_0x3588f3=await createTDXInstance(_0x6dc931),_0x27d117=await _0x3263a3[_0x10e83e(0x3bf)]({'options':{..._0x6dc931,..._0x19fc6a},'args':_0x38e218?[_0x38e218]:[],'tdx':_0x3588f3});gracefulExit(_0x27d117);}),parentCmd[a2_0x360f70(0x339)]('push\x20[file]')[a2_0x360f70(0x390)](a2_0x360f70(0x393))[a2_0x360f70(0x40a)](async(_0x46bf04,_0x32474a)=>{const _0x43d453=new ParentSegmentPushCommand(),_0x4c8fa0=program['opts'](),_0x297ca5=await createTDXInstance(_0x4c8fa0),_0x178b65=await _0x43d453['run']({'options':{..._0x4c8fa0,..._0x32474a},'args':_0x46bf04?[_0x46bf04]:[],'tdx':_0x297ca5});gracefulExit(_0x178b65);}),parentCmd['command'](a2_0x360f70(0x162))[a2_0x360f70(0x390)](a2_0x360f70(0x3a9))[a2_0x360f70(0x2e6)]('--master',a2_0x360f70(0x24a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e7),a2_0x360f70(0x308))['option'](a2_0x360f70(0x40b),a2_0x360f70(0x224))[a2_0x360f70(0x2e6)](a2_0x360f70(0x31d),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x314),a2_0x360f70(0x19b),a2_0x360f70(0x408))[a2_0x360f70(0x40a)](async(_0x301205,_0x1813ba)=>{const _0x250f4a=a2_0x360f70,_0x485931=new ParentSegmentValidateCommand(),_0x1375ba=program[_0x250f4a(0x186)](),_0x4cef0c=await createTDXInstance(_0x1375ba),_0x1dce9e=await _0x485931['run']({'options':{..._0x1375ba,..._0x1813ba},'args':_0x301205?[_0x301205]:[],'tdx':_0x4cef0c});gracefulExit(_0x1dce9e);}),parentCmd[a2_0x360f70(0x339)]('preview\x20[file]')[a2_0x360f70(0x390)](a2_0x360f70(0x150))['option'](a2_0x360f70(0x30e),'Show\x20master\x20table\x20sample\x20data')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e7),a2_0x360f70(0x392))['option'](a2_0x360f70(0x40b),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x360f70(0x31d),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x314),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x360f70(0x408))['action'](async(_0x5b5cab,_0x4f20dd)=>{const _0x10370f=a2_0x360f70,_0x30e4b7=new ParentSegmentPreviewCommand(),_0x2c736b=program[_0x10370f(0x186)](),_0x4e5711=await createTDXInstance(_0x2c736b),_0x1dc74e=await _0x30e4b7[_0x10370f(0x3bf)]({'options':{..._0x2c736b,..._0x4f20dd},'args':_0x5b5cab?[_0x5b5cab]:[],'tdx':_0x4e5711});gracefulExit(_0x1dc74e);}),parentCmd['command'](a2_0x360f70(0x171))[a2_0x360f70(0x390)](a2_0x360f70(0x1f9))[a2_0x360f70(0x40a)](async(_0x508834,_0x173f2d)=>{const _0x25f3b2=a2_0x360f70,_0x29e85d=new ParentSegmentRunCommand(),_0x57d4ce=program[_0x25f3b2(0x186)](),_0x3ba443=await createTDXInstance(_0x57d4ce),_0x4a89c8=await _0x29e85d[_0x25f3b2(0x3bf)]({'options':{..._0x57d4ce,..._0x173f2d},'args':_0x508834?[_0x508834]:[],'tdx':_0x3ba443});gracefulExit(_0x4a89c8);});const parentSegmentCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x245))[a2_0x360f70(0x367)]('ps')['description'](a2_0x360f70(0x1fb));parentSegmentCmd[a2_0x360f70(0x339)]('list\x20[pattern]')['description'](a2_0x360f70(0x36e))['action'](parentListAction),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2db))[a2_0x360f70(0x390)](a2_0x360f70(0x34f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x155),a2_0x360f70(0x32a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d7),a2_0x360f70(0x371))[a2_0x360f70(0x40a)](async(_0x1f9781,_0x568006)=>{const _0x2b7f32=a2_0x360f70,_0x3f6824=new ParentSegmentPullCommand(),_0x5a8b4d=program['opts'](),_0x523664=await createTDXInstance(_0x5a8b4d),_0x61bdbc=await _0x3f6824[_0x2b7f32(0x3bf)]({'options':{..._0x5a8b4d,..._0x568006},'args':_0x1f9781?[_0x1f9781]:[],'tdx':_0x523664});gracefulExit(_0x61bdbc);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x326))[a2_0x360f70(0x390)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x360f70(0x40a)](async(_0x317383,_0x15536e)=>{const _0x4a97af=a2_0x360f70,_0x132d36=new ParentSegmentPushCommand(),_0x37cdb6=program[_0x4a97af(0x186)](),_0x4a229a=await createTDXInstance(_0x37cdb6),_0x41daa9=await _0x132d36['run']({'options':{..._0x37cdb6,..._0x15536e},'args':_0x317383?[_0x317383]:[],'tdx':_0x4a229a});gracefulExit(_0x41daa9);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1ac))['description'](a2_0x360f70(0x3a9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x30e),a2_0x360f70(0x24a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e7),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')['option']('--enriched',a2_0x360f70(0x2b7))['option'](a2_0x360f70(0x314),a2_0x360f70(0x19b),a2_0x360f70(0x408))['action'](async(_0x183231,_0xb4944f)=>{const _0x1b3c52=a2_0x360f70,_0x1b677c=new ParentSegmentValidateCommand(),_0x87a1a3=program[_0x1b3c52(0x186)](),_0x3af33a=await createTDXInstance(_0x87a1a3),_0x402248=await _0x1b677c['run']({'options':{..._0x87a1a3,..._0xb4944f},'args':_0x183231?[_0x183231]:[],'tdx':_0x3af33a});gracefulExit(_0x402248);}),parentSegmentCmd['command'](a2_0x360f70(0x290))[a2_0x360f70(0x390)](a2_0x360f70(0x150))[a2_0x360f70(0x2e6)](a2_0x360f70(0x30e),'Show\x20master\x20table\x20sample\x20data')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e7),a2_0x360f70(0x392))[a2_0x360f70(0x2e6)]('--behavior\x20[name]',a2_0x360f70(0x1c9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x31d),a2_0x360f70(0x2f5))[a2_0x360f70(0x2e6)](a2_0x360f70(0x314),a2_0x360f70(0x19b),a2_0x360f70(0x408))[a2_0x360f70(0x40a)](async(_0x49dd6f,_0x2031f6)=>{const _0x5e986f=a2_0x360f70,_0x1998eb=new ParentSegmentPreviewCommand(),_0x754116=program[_0x5e986f(0x186)](),_0x17c372=await createTDXInstance(_0x754116),_0x2ed234=await _0x1998eb[_0x5e986f(0x3bf)]({'options':{..._0x754116,..._0x2031f6},'args':_0x49dd6f?[_0x49dd6f]:[],'tdx':_0x17c372});gracefulExit(_0x2ed234);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x171))[a2_0x360f70(0x390)](a2_0x360f70(0x1f9))[a2_0x360f70(0x40a)](async(_0x19a202,_0x39bb37)=>{const _0x5dfa4b=a2_0x360f70,_0x257865=new ParentSegmentRunCommand(),_0x1a5c1d=program[_0x5dfa4b(0x186)](),_0xffc4b0=await createTDXInstance(_0x1a5c1d),_0x488dff=await _0x257865[_0x5dfa4b(0x3bf)]({'options':{..._0x1a5c1d,..._0x39bb37},'args':_0x19a202?[_0x19a202]:[],'tdx':_0xffc4b0});gracefulExit(_0x488dff);}),parentSegmentCmd[a2_0x360f70(0x339)]('fields\x20[name]')[a2_0x360f70(0x390)](a2_0x360f70(0x40d))[a2_0x360f70(0x2e6)]('--json',a2_0x360f70(0x31f))['option']('--jsonl',a2_0x360f70(0x262))[a2_0x360f70(0x40a)](async(_0x311348,_0x2cb88f)=>{const _0x29f87e=a2_0x360f70,_0x3cc936=new ParentSegmentFieldsCommand(),_0x51e055=program[_0x29f87e(0x186)](),_0x45704f=await createTDXInstance(_0x51e055),_0x256a99=await _0x3cc936[_0x29f87e(0x3bf)]({'options':{..._0x51e055,..._0x2cb88f},'args':_0x311348?[_0x311348]:[],'tdx':_0x45704f});gracefulExit(_0x256a99);}),parentSegmentCmd[a2_0x360f70(0x339)]('view\x20[name]')[a2_0x360f70(0x390)](a2_0x360f70(0x1e4))['option'](a2_0x360f70(0x1d8),a2_0x360f70(0x24b))['option']('--json',a2_0x360f70(0x31f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x379),a2_0x360f70(0x262))['action'](async(_0x3e1e44,_0x2b0635)=>{const _0x26e851=a2_0x360f70,_0x228dd3=new ParentSegmentViewCommand(),_0x3b9284=program[_0x26e851(0x186)](),_0x56402a=await createTDXInstance(_0x3b9284),_0x134546=await _0x228dd3[_0x26e851(0x3bf)]({'options':{..._0x3b9284,..._0x2b0635},'args':_0x3e1e44?[_0x3e1e44]:[],'tdx':_0x56402a});gracefulExit(_0x134546);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x306))['description'](a2_0x360f70(0x283))[a2_0x360f70(0x2e6)](a2_0x360f70(0x155),a2_0x360f70(0x32a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x275),a2_0x360f70(0x31f))[a2_0x360f70(0x2e6)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x360f70(0x40a)](async(_0x1ff7d1,_0x3d8803)=>{const _0xdf0cc9=a2_0x360f70,_0x745ff6=new ParentSegmentDescCommand(),_0x28291a=program['opts'](),_0x73954=await createTDXInstance(_0x28291a),_0xa3aab8=await _0x745ff6[_0xdf0cc9(0x3bf)]({'options':{..._0x28291a,..._0x3d8803},'args':_0x1ff7d1?[_0x1ff7d1]:[],'tdx':_0x73954});gracefulExit(_0xa3aab8);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x37d))[a2_0x360f70(0x390)](a2_0x360f70(0x1bb))[a2_0x360f70(0x2e6)](a2_0x360f70(0x275),a2_0x360f70(0x31f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x379),a2_0x360f70(0x262))[a2_0x360f70(0x40a)](async(_0x4ad2b3,_0x5288ee)=>{const _0x19e7d0=a2_0x360f70,_0x4e76a3=new ParentSegmentSQLCommand(),_0x1f1636=program[_0x19e7d0(0x186)](),_0xa8c3d6=await createTDXInstance(_0x1f1636),_0x17d8ee=await _0x4e76a3[_0x19e7d0(0x3bf)]({'options':{..._0x1f1636,..._0x5288ee},'args':_0x4ad2b3?[_0x4ad2b3]:[],'tdx':_0xa8c3d6});gracefulExit(_0x17d8ee);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x360f70(0x390)](a2_0x360f70(0x33c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3c4),a2_0x360f70(0x3d4))[a2_0x360f70(0x2e6)](a2_0x360f70(0x275),a2_0x360f70(0x31f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x379),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x53cdb4,_0x568d0c)=>{const _0x2a0671=a2_0x360f70,_0x398a63=new ParentSegmentShowCommand(),_0x2a9d40=program[_0x2a0671(0x186)](),_0x40bb01=await createTDXInstance(_0x2a9d40),_0x2b87dd=await _0x398a63[_0x2a0671(0x3bf)]({'options':{..._0x2a9d40,..._0x568d0c},'args':_0x53cdb4?[_0x53cdb4]:[],'tdx':_0x40bb01});gracefulExit(_0x2b87dd);}),parentSegmentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x166))[a2_0x360f70(0x390)](a2_0x360f70(0x199))[a2_0x360f70(0x40a)](async(_0x4d93b3,_0x35a34b)=>{const _0x2c1343=a2_0x360f70,_0x7c0567=new UseCommand(),_0x4ef790=program[_0x2c1343(0x186)](),_0x48bc64=_0x4d93b3?[_0x2c1343(0x422),_0x4d93b3]:[],_0x5c7ea7=await _0x7c0567[_0x2c1343(0x3bf)]({'options':{..._0x4ef790,..._0x35a34b},'args':_0x48bc64,'tdx':null});gracefulExit(_0x5c7ea7);});const psRtCmd=parentSegmentCmd[a2_0x360f70(0x339)]('rt')[a2_0x360f70(0x390)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x360f70(0x339)]('list\x20[pattern]')[a2_0x360f70(0x390)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x360f70(0x40a)](async(_0x35471f,_0x135657)=>{const _0x19b8e6=a2_0x360f70,_0x2ac55f=new PSRtListCommand(),_0x2858b7=program[_0x19b8e6(0x186)](),_0x35f491=await createTDXInstance(_0x2858b7),_0x57d381=await _0x2ac55f['run']({'options':{..._0x2858b7,..._0x135657},'args':_0x35471f?[_0x35471f]:[],'tdx':_0x35f491});gracefulExit(_0x57d381);}),psRtCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1ac))[a2_0x360f70(0x390)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x360f70(0x40a)](async(_0x1bc07b,_0x38f0ba)=>{const _0x240a63=a2_0x360f70,_0x41adfc=new PSRtValidateCommand(),_0x34b335=program[_0x240a63(0x186)](),_0xea19bc=await createTDXInstance(_0x34b335),_0x22e967=await _0x41adfc[_0x240a63(0x3bf)]({'options':{..._0x34b335,..._0x38f0ba},'args':_0x1bc07b?[_0x1bc07b]:[],'tdx':_0xea19bc});gracefulExit(_0x22e967);});const parentRtCmd=parentCmd[a2_0x360f70(0x339)]('rt',{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x328));parentRtCmd['command']('list\x20[pattern]')[a2_0x360f70(0x390)](a2_0x360f70(0x1e1))[a2_0x360f70(0x40a)](async(_0x3b7295,_0x28e39c)=>{const _0x5c3d75=a2_0x360f70,_0x256ac1=new PSRtListCommand(),_0x48cd16=program[_0x5c3d75(0x186)](),_0x123d3e=await createTDXInstance(_0x48cd16),_0x2c02f4=await _0x256ac1['run']({'options':{..._0x48cd16,..._0x28e39c},'args':_0x3b7295?[_0x3b7295]:[],'tdx':_0x123d3e});gracefulExit(_0x2c02f4);}),parentRtCmd['command'](a2_0x360f70(0x1ac))[a2_0x360f70(0x390)](a2_0x360f70(0x1d7))[a2_0x360f70(0x40a)](async(_0x1f517b,_0x293cb9)=>{const _0x2c1ab1=a2_0x360f70,_0x1fc157=new PSRtValidateCommand(),_0x442e0b=program['opts'](),_0x65a69e=await createTDXInstance(_0x442e0b),_0x1b7d49=await _0x1fc157[_0x2c1ab1(0x3bf)]({'options':{..._0x442e0b,..._0x293cb9},'args':_0x1f517b?[_0x1f517b]:[],'tdx':_0x65a69e});gracefulExit(_0x1b7d49);});const psPzCmd=parentSegmentCmd[a2_0x360f70(0x339)]('pz')[a2_0x360f70(0x390)]('Personalization\x20service\x20management');psPzCmd[a2_0x360f70(0x339)](a2_0x360f70(0x31b))[a2_0x360f70(0x390)](a2_0x360f70(0x1e3))['action'](async(_0x1fed5b,_0x3dde58)=>{const _0x3e0885=a2_0x360f70,_0x4b0757=new PSPzListCommand(),_0x53b926=program[_0x3e0885(0x186)](),_0x4fba0e=await createTDXInstance(_0x53b926),_0x48f8b3=await _0x4b0757[_0x3e0885(0x3bf)]({'options':{..._0x53b926,..._0x3dde58},'args':_0x1fed5b?[_0x1fed5b]:[],'tdx':_0x4fba0e});gracefulExit(_0x48f8b3);}),psPzCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3af))['description'](a2_0x360f70(0x232))[a2_0x360f70(0x40a)](async(_0x273687,_0xa8b8fe)=>{const _0x10c2c3=a2_0x360f70,_0x23b1e7=new PSPzInitCommand(),_0x2d0290=program['opts'](),_0xc11b84=await createTDXInstance(_0x2d0290),_0x3e679e=await _0x23b1e7[_0x10c2c3(0x3bf)]({'options':{..._0x2d0290,..._0xa8b8fe},'args':_0x273687?[_0x273687]:[],'tdx':_0xc11b84});gracefulExit(_0x3e679e);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x360f70(0x390)]('Personalization\x20service\x20management');parentPzCmd['command'](a2_0x360f70(0x31b))[a2_0x360f70(0x390)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x360f70(0x40a)](async(_0x198aec,_0x5f18fb)=>{const _0x64c132=a2_0x360f70,_0x3d3a3a=new PSPzListCommand(),_0x1425a3=program['opts'](),_0x411630=await createTDXInstance(_0x1425a3),_0x3b26ac=await _0x3d3a3a[_0x64c132(0x3bf)]({'options':{..._0x1425a3,..._0x5f18fb},'args':_0x198aec?[_0x198aec]:[],'tdx':_0x411630});gracefulExit(_0x3b26ac);}),parentPzCmd['command'](a2_0x360f70(0x3af))['description']('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')['action'](async(_0x2b4c99,_0x3ae55a)=>{const _0x4b6a42=a2_0x360f70,_0x110685=new PSPzInitCommand(),_0x11ee4e=program[_0x4b6a42(0x186)](),_0x4ed7b8=await createTDXInstance(_0x11ee4e),_0x52237a=await _0x110685[_0x4b6a42(0x3bf)]({'options':{..._0x11ee4e,..._0x3ae55a},'args':_0x2b4c99?[_0x2b4c99]:[],'tdx':_0x4ed7b8});gracefulExit(_0x52237a);}),parentCmd[a2_0x360f70(0x339)](a2_0x360f70(0x22b))[a2_0x360f70(0x390)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption'](a2_0x360f70(0x3f5),a2_0x360f70(0x364))[a2_0x360f70(0x24f)](a2_0x360f70(0x24c),a2_0x360f70(0x1b2))['option'](a2_0x360f70(0x1b0),a2_0x360f70(0x32b))[a2_0x360f70(0x2e6)]('--schedule-type\x20<type>',a2_0x360f70(0x27e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x296),a2_0x360f70(0x20e))[a2_0x360f70(0x2e6)]('--timezone\x20<tz>',a2_0x360f70(0x1e9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x14c),a2_0x360f70(0x23b))[a2_0x360f70(0x2e6)](a2_0x360f70(0x267),a2_0x360f70(0x20f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2d7),a2_0x360f70(0x2cc))['option'](a2_0x360f70(0x3fe),a2_0x360f70(0x394))[a2_0x360f70(0x2e6)](a2_0x360f70(0x183),a2_0x360f70(0x207))[a2_0x360f70(0x2e6)](a2_0x360f70(0x15b),'Customer\x20group\x20from\x20JSON\x20file')['action'](async(_0x426ed6,_0x2bb557)=>{const _0x35da1e=a2_0x360f70,_0xaa9cc6=new ParentSegmentCreateCommand(),_0x520a54=program[_0x35da1e(0x186)](),_0x348d22=await createTDXInstance(_0x520a54),_0x1f33f3=await _0xaa9cc6['run']({'options':{..._0x520a54,..._0x2bb557},'args':[_0x426ed6],'tdx':_0x348d22});gracefulExit(_0x1f33f3);}),parentCmd['command'](a2_0x360f70(0x35e))[a2_0x360f70(0x390)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x360f70(0x1b0),a2_0x360f70(0x38e))[a2_0x360f70(0x2e6)]('--schedule-type\x20<type>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x360f70(0x296),a2_0x360f70(0x361))['option'](a2_0x360f70(0x168),'Updated\x20timezone')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1af),a2_0x360f70(0x16a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x391),a2_0x360f70(0x2da))[a2_0x360f70(0x2e6)]('--add-behaviors\x20<json>',a2_0x360f70(0x16f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2de),a2_0x360f70(0x20d))[a2_0x360f70(0x40a)](async(_0x331b0c,_0x784ab)=>{const _0x1cf129=a2_0x360f70,_0x306167=new ParentSegmentUpdateCommand(),_0x325ab6=program[_0x1cf129(0x186)](),_0x1b7e35=await createTDXInstance(_0x325ab6),_0x30c6bb=await _0x306167[_0x1cf129(0x3bf)]({'options':{..._0x325ab6,..._0x784ab},'args':[_0x331b0c],'tdx':_0x1b7e35});gracefulExit(_0x30c6bb);}),folderCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1da))[a2_0x360f70(0x390)](a2_0x360f70(0x15c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1b0),a2_0x360f70(0x337))[a2_0x360f70(0x2e6)](a2_0x360f70(0x242),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0x5e26e8,_0x5a5aa0,_0x474be3)=>{const _0x2768eb=a2_0x360f70,_0x30f140=new SegmentFolderCreateCommand(),_0x23d656=program[_0x2768eb(0x186)](),_0x393ed6=await createTDXInstance(_0x23d656),_0x435fcc=await _0x30f140[_0x2768eb(0x3bf)]({'options':{..._0x23d656,..._0x474be3},'args':[_0x5e26e8,_0x5a5aa0],'tdx':_0x393ed6});gracefulExit(_0x435fcc);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x1a3))[a2_0x360f70(0x390)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x360f70(0x40a)](async(_0x5a77ee,_0x2b115b)=>{const _0x49f507=a2_0x360f70,_0x1bf211=new ActivationsCommand(),_0x29547a=program['opts'](),_0x112a72=await createTDXInstance(_0x29547a),_0x446b8c=await _0x1bf211[_0x49f507(0x3bf)]({'options':{..._0x29547a,..._0x2b115b},'args':[_0x5a77ee],'tdx':_0x112a72});gracefulExit(_0x446b8c);});const workflowCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x2e4))[a2_0x360f70(0x367)]('wf')[a2_0x360f70(0x390)](a2_0x360f70(0x2ea)),wfProjectCmd=workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x323))[a2_0x360f70(0x390)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x1c2829,_0x21d7af)=>{const _0x373fa3=a2_0x360f70,_0x4118ac=new WorkflowProjectsCommand(),_0x4dd1cf=program['opts'](),_0x2d1f95=await createTDXInstance(_0x4dd1cf),_0x3c0249=await _0x4118ac[_0x373fa3(0x3bf)]({'options':{..._0x4dd1cf,..._0x21d7af},'args':_0x1c2829?[_0x1c2829]:[],'tdx':_0x2d1f95});gracefulExit(_0x3c0249);};wfProjectCmd['command'](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x3b7))['action'](wfProjectListAction),workflowCmd['command'](a2_0x360f70(0x3bb))[a2_0x360f70(0x390)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x360f70(0x40a)](wfProjectListAction);const wfWorkflowListAction=async(_0xe04572,_0x5d6835)=>{const _0x3e97e7=a2_0x360f70,_0x2e40f0=new WorkflowWorkflowsCommand(),_0x447300=program[_0x3e97e7(0x186)](),_0xd8c0a9=await createTDXInstance(_0x447300),_0x59f21b=await _0x2e40f0[_0x3e97e7(0x3bf)]({'options':{..._0x447300,..._0x5d6835},'args':_0xe04572?[_0xe04572]:[],'tdx':_0xd8c0a9});gracefulExit(_0x59f21b);};workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3d9))['description'](a2_0x360f70(0x1ca))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3fd))[a2_0x360f70(0x390)]('Workflow\x20session\x20management'),wfSessionListAction=async(_0x52dbbd,_0x5c9a40)=>{const _0x397ede=a2_0x360f70,_0x824d3=new WorkflowSessionsCommand(),_0x4390d2=program[_0x397ede(0x186)](),_0x10743a=await createTDXInstance(_0x4390d2),_0x1061a8=await _0x824d3[_0x397ede(0x3bf)]({'options':{..._0x4390d2,..._0x5c9a40},'args':_0x52dbbd?[_0x52dbbd]:[],'tdx':_0x10743a});gracefulExit(_0x1061a8);};wfSessionCmd['command'](a2_0x360f70(0x3cd))['description']('List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1b6),a2_0x360f70(0x1d5))[a2_0x360f70(0x2e6)]('--from\x20<timestamp>',a2_0x360f70(0x29f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x280),a2_0x360f70(0x29e))[a2_0x360f70(0x40a)](wfSessionListAction),workflowCmd[a2_0x360f70(0x339)]('sessions\x20[project]')['description']('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')['option'](a2_0x360f70(0x1b6),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x311),a2_0x360f70(0x29f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x280),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x360f70(0x40a)](wfSessionListAction);const wfAttemptListAction=async(_0x191cef,_0x275848)=>{const _0x18a6a6=a2_0x360f70,_0xc110ad=new WorkflowAttemptsCommand(),_0x323d18=program[_0x18a6a6(0x186)](),_0x299860=await createTDXInstance(_0x323d18),_0x57c499=await _0xc110ad[_0x18a6a6(0x3bf)]({'options':{..._0x323d18,..._0x275848},'args':_0x191cef?[_0x191cef]:[],'tdx':_0x299860});gracefulExit(_0x57c499);},attemptCmd=workflowCmd[a2_0x360f70(0x339)]('attempt')[a2_0x360f70(0x390)](a2_0x360f70(0x287))[a2_0x360f70(0x2af)](a2_0x360f70(0x303),a2_0x360f70(0x2fb))[a2_0x360f70(0x2af)]('[action]',a2_0x360f70(0x3d3))['argument'](a2_0x360f70(0x3fa),a2_0x360f70(0x38c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x19c),a2_0x360f70(0x24d))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2cd),a2_0x360f70(0x3f9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x248),a2_0x360f70(0x354))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d5),'Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x231),a2_0x360f70(0x1f0))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e1),a2_0x360f70(0x14f))[a2_0x360f70(0x40a)](async(_0x435834,_0x4e7870,_0x210e4f,_0x29d581)=>{const _0x4930bf=a2_0x360f70;if(_0x435834===_0x4930bf(0x293)){await wfAttemptListAction(_0x4e7870,_0x29d581);return;}if(!_0x435834){attemptCmd[_0x4930bf(0x2ed)]();return;}const _0x12c9b7=program[_0x4930bf(0x186)](),_0x55435c=await createTDXInstance(_0x12c9b7);let _0xc70f96=0x0;if(!_0x4e7870){const _0x460ed3=new WorkflowAttemptCommand();_0xc70f96=await _0x460ed3[_0x4930bf(0x3bf)]({'options':{..._0x12c9b7,..._0x29d581},'args':[_0x435834],'tdx':_0x55435c});}else{if(_0x4e7870===_0x4930bf(0x384)){const _0x190056=new WorkflowLogsCommand();_0xc70f96=await _0x190056[_0x4930bf(0x3bf)]({'options':{..._0x12c9b7,..._0x29d581},'args':_0x210e4f?[_0x435834,_0x210e4f]:[_0x435834],'tdx':_0x55435c});}else{if(_0x4e7870===_0x4930bf(0x413)){const _0x21694d=new WorkflowTasksCommand();_0xc70f96=await _0x21694d[_0x4930bf(0x3bf)]({'options':{..._0x12c9b7,..._0x29d581},'args':[_0x435834],'tdx':_0x55435c});}else{if(_0x4e7870===_0x4930bf(0x373)){const _0x27e452=new WorkflowKillCommand();_0xc70f96=await _0x27e452[_0x4930bf(0x3bf)]({'options':{..._0x12c9b7,..._0x29d581},'args':[_0x435834],'tdx':_0x55435c});}else{if(_0x4e7870===_0x4930bf(0x1ee)){const _0x51fbc3=new WorkflowRetryCommand();_0xc70f96=await _0x51fbc3['run']({'options':{..._0x12c9b7,..._0x29d581},'args':['attempt:'+_0x435834],'tdx':_0x55435c});}else console[_0x4930bf(0x3c2)](_0x4930bf(0x3e4)+_0x4e7870),console['error'](_0x4930bf(0x21e)),_0xc70f96=0x1;}}}}gracefulExit(_0xc70f96);});attemptCmd['command']('list\x20[project]')[a2_0x360f70(0x390)](a2_0x360f70(0x2c1))[a2_0x360f70(0x2e6)]('--include-retried',a2_0x360f70(0x2fe))[a2_0x360f70(0x40a)](wfAttemptListAction),workflowCmd[a2_0x360f70(0x339)]('attempts\x20[project]')[a2_0x360f70(0x390)](a2_0x360f70(0x27b))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2e1),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1e2))[a2_0x360f70(0x390)](a2_0x360f70(0x3eb))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2c7),a2_0x360f70(0x256))[a2_0x360f70(0x2e6)](a2_0x360f70(0x28d),a2_0x360f70(0x31e))[a2_0x360f70(0x2e6)]('--attempt-id\x20<id>',a2_0x360f70(0x263))['action'](async(_0x30523e,_0xd594e6)=>{const _0x2f18d7=a2_0x360f70,_0x526438=new WorkflowTimelineCommand(),_0xdbf523=program['opts'](),_0x36d3c3=await createTDXInstance(_0xdbf523),_0x41cb13=await _0x526438[_0x2f18d7(0x3bf)]({'options':{..._0xdbf523,..._0xd594e6},'args':_0x30523e?[_0x30523e]:[],'tdx':_0x36d3c3});gracefulExit(_0x41cb13);}),workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x279))[a2_0x360f70(0x390)](a2_0x360f70(0x222))[a2_0x360f70(0x2e6)](a2_0x360f70(0x356),a2_0x360f70(0x1a7))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3d5),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x360f70(0x40a)](async(_0x3e3ca5,_0x56e775)=>{const _0xb9686d=a2_0x360f70,_0x23ca9f=new WorkflowRetryCommand(),_0x2c8b6e=program[_0xb9686d(0x186)](),_0x2a31ac=await createTDXInstance(_0x2c8b6e),_0x216251=await _0x23ca9f[_0xb9686d(0x3bf)]({'options':{..._0x2c8b6e,..._0x56e775},'args':[_0x3e3ca5],'tdx':_0x2a31ac});gracefulExit(_0x216251);}),workflowCmd[a2_0x360f70(0x339)]('run\x20[workflow]')[a2_0x360f70(0x390)](a2_0x360f70(0x2a3))[a2_0x360f70(0x2e6)](a2_0x360f70(0x409),a2_0x360f70(0x25a),(_0x147638,_0x5492bf=[])=>[..._0x5492bf,_0x147638],[])[a2_0x360f70(0x2e6)]('--session-time\x20<time>',a2_0x360f70(0x292))[a2_0x360f70(0x40a)](async(_0x5d27b3,_0x5683a5)=>{const _0xcd6f95=a2_0x360f70,_0x1cc1b6=new WorkflowRunCommand(),_0x578e05=program[_0xcd6f95(0x186)](),_0x5d27ee=await createTDXInstance(_0x578e05),_0x2494d3=await _0x1cc1b6[_0xcd6f95(0x3bf)]({'options':{..._0x578e05,..._0x5683a5},'args':_0x5d27b3?[_0x5d27b3]:[],'tdx':_0x5d27ee});gracefulExit(_0x2494d3);}),workflowCmd['command'](a2_0x360f70(0x291))['description'](a2_0x360f70(0x2c8))[a2_0x360f70(0x2e6)](a2_0x360f70(0x359),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x360f70(0x40a)](async(_0x4b1507,_0x1bca2d,_0x1b5831)=>{const _0x1bf707=a2_0x360f70,_0x5a3e88=new WorkflowDownloadCommand(),_0x241a62=program[_0x1bf707(0x186)](),_0x131886=await createTDXInstance(_0x241a62),_0x29586c=await _0x5a3e88[_0x1bf707(0x3bf)]({'options':{..._0x241a62,..._0x1b5831},'args':[_0x4b1507,_0x1bca2d||'.'],'tdx':_0x131886});gracefulExit(_0x29586c);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')['description'](a2_0x360f70(0x1fc))[a2_0x360f70(0x2e6)]('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x360f70(0x2e6)]('--dry-run',a2_0x360f70(0x329))[a2_0x360f70(0x40a)](async(_0x23afeb,_0x8acfc,_0x4f09e5)=>{const _0x38f3af=a2_0x360f70,_0x4aa5df=new WorkflowPullCommand(),_0x3913b9=program[_0x38f3af(0x186)](),_0x276ff5=await createTDXInstance(_0x3913b9),_0x365756=await _0x4aa5df[_0x38f3af(0x3bf)]({'options':{..._0x3913b9,..._0x4f09e5},'args':_0x8acfc?[_0x23afeb,_0x8acfc]:[_0x23afeb],'tdx':_0x276ff5});gracefulExit(_0x365756);}),workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x39d))[a2_0x360f70(0x390)](a2_0x360f70(0x35c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x359),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),a2_0x360f70(0x38d))['option'](a2_0x360f70(0x30f),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x360f70(0x40a)](async(_0x3d0ed4,_0x44110c)=>{const _0x51d20c=a2_0x360f70,_0x48a8e3=new WorkflowPushCommand(),_0x1df037=program[_0x51d20c(0x186)](),_0x46976f=await createTDXInstance(_0x1df037),_0x1b507d=await _0x48a8e3['run']({'options':{..._0x1df037,..._0x44110c},'args':_0x3d0ed4?[_0x3d0ed4]:[],'tdx':_0x46976f});gracefulExit(_0x1b507d);}),workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x221))[a2_0x360f70(0x390)](a2_0x360f70(0x41e))[a2_0x360f70(0x2e6)]('--name\x20<name>',a2_0x360f70(0x316))['option'](a2_0x360f70(0x359),a2_0x360f70(0x304))[a2_0x360f70(0x2e6)](a2_0x360f70(0x30f),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x360f70(0x40a)](async(_0x144885,_0x7437e4)=>{const _0x2cdb34=a2_0x360f70,_0x5fd5e8=new WorkflowUploadCommand(),_0x19d685=program[_0x2cdb34(0x186)](),_0x497a63=await createTDXInstance(_0x19d685),_0x36f105=await _0x5fd5e8[_0x2cdb34(0x3bf)]({'options':{..._0x19d685,..._0x7437e4},'args':_0x144885?[_0x144885]:[],'tdx':_0x497a63});gracefulExit(_0x36f105);}),workflowCmd[a2_0x360f70(0x339)]('clone\x20[source-dir]')['description'](a2_0x360f70(0x23c))['option'](a2_0x360f70(0x1cf),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x359),a2_0x360f70(0x18e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),a2_0x360f70(0x234))[a2_0x360f70(0x2e6)](a2_0x360f70(0x30f),a2_0x360f70(0x342))[a2_0x360f70(0x40a)](async(_0x9ca571,_0x5eab61)=>{const _0x2470fd=a2_0x360f70,_0x2c7c25=new WorkflowCloneCommand(),_0x188a67=program[_0x2470fd(0x186)](),_0x4d9f1a=await createTDXInstance(_0x188a67),_0x4f473c=await _0x2c7c25[_0x2470fd(0x3bf)]({'options':{..._0x188a67,..._0x5eab61},'args':_0x9ca571?[_0x9ca571]:[],'tdx':_0x4d9f1a});gracefulExit(_0x4f473c);}),workflowCmd[a2_0x360f70(0x339)]('delete\x20<project-name-or-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x22c))[a2_0x360f70(0x40a)](async(_0x378558,_0x41a1d5)=>{const _0x30f348=a2_0x360f70,_0x4eff6b=new WorkflowDeleteCommand(),_0x5b1ef3=program[_0x30f348(0x186)](),_0x4368e7=await createTDXInstance(_0x5b1ef3),_0x1c0ab6=await _0x4eff6b[_0x30f348(0x3bf)]({'options':{..._0x5b1ef3,..._0x41a1d5},'args':[_0x378558],'tdx':_0x4368e7});gracefulExit(_0x1c0ab6);}),workflowCmd[a2_0x360f70(0x339)]('use\x20[project]')[a2_0x360f70(0x390)](a2_0x360f70(0x324))[a2_0x360f70(0x2e6)](a2_0x360f70(0x23e),a2_0x360f70(0x1bc))['action'](async(_0x19b119,_0x4da732)=>{const _0x210821=a2_0x360f70,_0xc68c55=new WorkflowUseCommand(),_0x4514a6=program['opts'](),_0x3c48e4=await createTDXInstance(_0x4514a6),_0x3b4735=await _0xc68c55[_0x210821(0x3bf)]({'options':{..._0x4514a6,..._0x4da732},'args':_0x19b119?[_0x19b119]:[],'tdx':_0x3c48e4});gracefulExit(_0x3b4735);});const wfSecretsCmd=workflowCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2dd))[a2_0x360f70(0x390)](a2_0x360f70(0x3e0));wfSecretsCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3cd))[a2_0x360f70(0x390)](a2_0x360f70(0x3da))[a2_0x360f70(0x40a)](async(_0x1705ec,_0x5a821a)=>{const _0x17e4dc=a2_0x360f70,_0xc86111=new WorkflowSecretsListCommand(),_0x5f38ca=program[_0x17e4dc(0x186)](),_0x4255b6=await createTDXInstance(_0x5f38ca),_0x61c919=await _0xc86111[_0x17e4dc(0x3bf)]({'options':{..._0x5f38ca,..._0x5a821a},'args':_0x1705ec?[_0x1705ec]:[],'tdx':_0x4255b6});gracefulExit(_0x61c919);}),wfSecretsCmd['command'](a2_0x360f70(0x16b))['description']('Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])')['action'](async(_0x4683fe,_0x279d4f)=>{const _0x7e79fa=a2_0x360f70,_0x52f49d=new WorkflowSecretsSetCommand(),_0x104cd1=program[_0x7e79fa(0x186)](),_0x1571d2=await createTDXInstance(_0x104cd1),_0x102717=await _0x52f49d['run']({'options':{..._0x104cd1,..._0x279d4f},'args':_0x4683fe,'tdx':_0x1571d2});gracefulExit(_0x102717);}),wfSecretsCmd['command'](a2_0x360f70(0x32e))[a2_0x360f70(0x390)](a2_0x360f70(0x2bb))[a2_0x360f70(0x40a)](async(_0x4cd6d7,_0xa5d87b)=>{const _0x47a2dc=a2_0x360f70,_0x129e87=new WorkflowSecretsDeleteCommand(),_0xea9aa=program[_0x47a2dc(0x186)](),_0xae3a04=await createTDXInstance(_0xea9aa),_0x3d21e0=await _0x129e87[_0x47a2dc(0x3bf)]({'options':{..._0xea9aa,..._0xa5d87b},'args':_0x4cd6d7,'tdx':_0xae3a04});gracefulExit(_0x3d21e0);});const jobCmd=program[a2_0x360f70(0x339)]('job')[a2_0x360f70(0x390)]('Job\x20management\x20commands'),jobListAction=async _0x56e35f=>{const _0x3a5329=a2_0x360f70,_0x15e19a=new JobListCommand(),_0x50f308=program[_0x3a5329(0x186)](),_0x4932d4=await createTDXInstance(_0x50f308),_0x3cac9a=await _0x15e19a[_0x3a5329(0x3bf)]({'options':{..._0x50f308,..._0x56e35f},'args':[],'tdx':_0x4932d4});gracefulExit(_0x3cac9a);};jobCmd[a2_0x360f70(0x339)](a2_0x360f70(0x293))[a2_0x360f70(0x390)](a2_0x360f70(0x1df))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1b6),a2_0x360f70(0x217))[a2_0x360f70(0x40a)](jobListAction),program[a2_0x360f70(0x339)](a2_0x360f70(0x26f),{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x2f9))[a2_0x360f70(0x2e6)]('--status\x20<status>','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd['command'](a2_0x360f70(0x3b1))[a2_0x360f70(0x390)]('Show\x20job\x20details')[a2_0x360f70(0x40a)](async(_0x1a1f70,_0x4c0a8b)=>{const _0x2ecd2f=a2_0x360f70,_0x14c7da=new JobShowCommand(),_0x11de9b=program[_0x2ecd2f(0x186)](),_0x762850=await createTDXInstance(_0x11de9b),_0x5546de=await _0x14c7da[_0x2ecd2f(0x3bf)]({'options':{..._0x11de9b,..._0x4c0a8b},'args':[_0x1a1f70],'tdx':_0x762850});gracefulExit(_0x5546de);}),jobCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2ca))[a2_0x360f70(0x390)](a2_0x360f70(0x332))[a2_0x360f70(0x40a)](async(_0x17d2bc,_0x4a0f54)=>{const _0x37c419=a2_0x360f70,_0x25a46e=new JobKillCommand(),_0x4927b1=program['opts'](),_0x345fbc=await createTDXInstance(_0x4927b1),_0x3bd421=await _0x25a46e[_0x37c419(0x3bf)]({'options':{..._0x4927b1,..._0x4a0f54},'args':[_0x17d2bc],'tdx':_0x345fbc});gracefulExit(_0x3bd421);}),jobCmd['command'](a2_0x360f70(0x3d2))[a2_0x360f70(0x390)]('Submit\x20a\x20job')[a2_0x360f70(0x2e6)]('--job-type\x20<type>',a2_0x360f70(0x2c2),a2_0x360f70(0x2b2))['option'](a2_0x360f70(0x244),'Read\x20query\x20from\x20file')['option'](a2_0x360f70(0x3b4),a2_0x360f70(0x378),a2_0x360f70(0x1a5))['option'](a2_0x360f70(0x265),a2_0x360f70(0x41a))['action'](async(_0x38af75,_0x5c4cf1)=>{const _0x4579ad=a2_0x360f70,_0x22b7ce=new JobSubmitCommand(),_0x2e595a=program[_0x4579ad(0x186)](),_0x241d29=await createTDXInstance(_0x2e595a),_0x2e7773=await _0x22b7ce['run']({'options':{..._0x2e595a,..._0x5c4cf1},'args':_0x38af75?[_0x38af75]:[],'tdx':_0x241d29});gracefulExit(_0x2e7773);}),jobCmd[a2_0x360f70(0x339)]('result\x20<job-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x299))[a2_0x360f70(0x40a)](async(_0x12e132,_0x10e951)=>{const _0x2c1f5f=a2_0x360f70,_0x409356=new JobResultCommand(),_0x4d0568=program[_0x2c1f5f(0x186)](),_0x1a224d=await createTDXInstance(_0x4d0568),_0x5405dd=await _0x409356[_0x2c1f5f(0x3bf)]({'options':{..._0x4d0568,..._0x10e951},'args':[_0x12e132],'tdx':_0x1a224d});gracefulExit(_0x5405dd);});const scheduleCmd=jobCmd[a2_0x360f70(0x339)]('schedule')['description'](a2_0x360f70(0x219));scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x33a))[a2_0x360f70(0x40a)](async(_0x1c7af6,_0x582f5e)=>{const _0x174c71=new ScheduleListCommand(),_0x88f965=program['opts'](),_0x2e99e2=await createTDXInstance(_0x88f965),_0x36380a=await _0x174c71['run']({'options':{..._0x88f965,..._0x582f5e},'args':_0x1c7af6?[_0x1c7af6]:[],'tdx':_0x2e99e2});gracefulExit(_0x36380a);}),scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2e0))['description'](a2_0x360f70(0x3aa))[a2_0x360f70(0x40a)](async(_0x39c930,_0xff346f)=>{const _0xb4e2d8=a2_0x360f70,_0xf9aa81=new ScheduleShowCommand(),_0x1ecd11=program[_0xb4e2d8(0x186)](),_0xf5c550=await createTDXInstance(_0x1ecd11),_0x55106b=await _0xf9aa81['run']({'options':{..._0x1ecd11,..._0xff346f},'args':[_0x39c930],'tdx':_0xf5c550});gracefulExit(_0x55106b);}),scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x22b))[a2_0x360f70(0x390)](a2_0x360f70(0x243))[a2_0x360f70(0x2e6)](a2_0x360f70(0x32c),a2_0x360f70(0x18a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x383),a2_0x360f70(0x307))[a2_0x360f70(0x24f)](a2_0x360f70(0x244),a2_0x360f70(0x2f2))['option'](a2_0x360f70(0x3ac),a2_0x360f70(0x3dd),a2_0x360f70(0x2b2))[a2_0x360f70(0x2e6)](a2_0x360f70(0x415),a2_0x360f70(0x424))[a2_0x360f70(0x2e6)](a2_0x360f70(0x168),a2_0x360f70(0x1ea))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ec),a2_0x360f70(0x2fd))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2f3),a2_0x360f70(0x196))[a2_0x360f70(0x2e6)](a2_0x360f70(0x33e),a2_0x360f70(0x29a))[a2_0x360f70(0x2e6)]('--engine-version\x20<version>',a2_0x360f70(0x1eb))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2b5),a2_0x360f70(0x268))[a2_0x360f70(0x40a)](async(_0x58f3cf,_0x54d5de)=>{const _0x4ac61b=a2_0x360f70,_0x56d554=new ScheduleCreateCommand(),_0x53aff5=program[_0x4ac61b(0x186)](),_0xdeacb1=await createTDXInstance(_0x53aff5);_0x54d5de['in']&&(_0x54d5de[_0x4ac61b(0x223)]=_0x54d5de['in']);const _0x4176e1=await _0x56d554[_0x4ac61b(0x3bf)]({'options':{..._0x53aff5,..._0x54d5de},'args':[_0x58f3cf],'tdx':_0xdeacb1});gracefulExit(_0x4176e1);}),scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x35e))[a2_0x360f70(0x390)](a2_0x360f70(0x3c5))[a2_0x360f70(0x2e6)](a2_0x360f70(0x32c),a2_0x360f70(0x237))[a2_0x360f70(0x2e6)]('--in\x20<db>',a2_0x360f70(0x307))[a2_0x360f70(0x2e6)](a2_0x360f70(0x244),'Read\x20query\x20from\x20file')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ac),a2_0x360f70(0x3dd))[a2_0x360f70(0x2e6)](a2_0x360f70(0x415),'Cron\x20expression\x20for\x20scheduling')[a2_0x360f70(0x2e6)](a2_0x360f70(0x168),a2_0x360f70(0x1d6))['option']('--delay\x20<seconds>',a2_0x360f70(0x2fd))['option'](a2_0x360f70(0x2f3),'Job\x20priority\x20(-2\x20to\x202)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x33e),a2_0x360f70(0x29a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x421),a2_0x360f70(0x1eb))['option'](a2_0x360f70(0x2b5),a2_0x360f70(0x268))[a2_0x360f70(0x40a)](async(_0x164b73,_0x5d2efa)=>{const _0x4d7b6d=a2_0x360f70,_0x11bc59=new ScheduleUpdateCommand(),_0x3f237c=program[_0x4d7b6d(0x186)](),_0x41cc04=await createTDXInstance(_0x3f237c);_0x5d2efa['in']&&(_0x5d2efa[_0x4d7b6d(0x223)]=_0x5d2efa['in']);const _0xbd8672=await _0x11bc59[_0x4d7b6d(0x3bf)]({'options':{..._0x3f237c,..._0x5d2efa},'args':[_0x164b73],'tdx':_0x41cc04});gracefulExit(_0xbd8672);}),scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2b0))['description'](a2_0x360f70(0x1ab))[a2_0x360f70(0x40a)](async(_0x2a051f,_0x249d30)=>{const _0x5f0680=a2_0x360f70,_0x47697c=new ScheduleDeleteCommand(),_0x58e914=program['opts'](),_0x27a86d=await createTDXInstance(_0x58e914),_0x11cd4f=await _0x47697c[_0x5f0680(0x3bf)]({'options':{..._0x58e914,..._0x249d30},'args':[_0x2a051f],'tdx':_0x27a86d});gracefulExit(_0x11cd4f);}),scheduleCmd[a2_0x360f70(0x339)](a2_0x360f70(0x253))['description']('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x360f70(0x2e6)]('--time\x20<iso8601>',a2_0x360f70(0x14e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3c7),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')['action'](async(_0xa501f7,_0x4df06a)=>{const _0x403a9a=a2_0x360f70,_0x56eece=new ScheduleRunCommand(),_0x523797=program[_0x403a9a(0x186)](),_0x150930=await createTDXInstance(_0x523797),_0x4b194f=await _0x56eece[_0x403a9a(0x3bf)]({'options':{..._0x523797,..._0x4df06a},'args':[_0xa501f7],'tdx':_0x150930});gracefulExit(_0x4b194f);}),scheduleCmd['command'](a2_0x360f70(0x21d))['description'](a2_0x360f70(0x410))[a2_0x360f70(0x2e6)](a2_0x360f70(0x170),'Starting\x20offset\x20(default:\x200)')['option'](a2_0x360f70(0x22a),a2_0x360f70(0x1de))[a2_0x360f70(0x40a)](async(_0x39a820,_0x43be3b)=>{const _0x57e0a6=a2_0x360f70,_0x39b89e=new ScheduleHistoryCommand(),_0x3d14dd=program[_0x57e0a6(0x186)](),_0x1377bc=await createTDXInstance(_0x3d14dd),_0x1611b8=await _0x39b89e[_0x57e0a6(0x3bf)]({'options':{..._0x3d14dd,..._0x43be3b},'args':[_0x39a820],'tdx':_0x1377bc});gracefulExit(_0x1611b8);});const llmCmd=program['command']('llm')[a2_0x360f70(0x390)](a2_0x360f70(0x233));llmCmd[a2_0x360f70(0x339)](a2_0x360f70(0x193))[a2_0x360f70(0x390)](a2_0x360f70(0x2a5))[a2_0x360f70(0x40a)](async(_0x2760e0,_0x216c0f)=>{const _0x1ca42d=a2_0x360f70,_0x1693b5=new LLMUseCommand(),_0x363048=program[_0x1ca42d(0x186)](),_0x4a786a=await createTDXInstance(_0x363048),_0x344532=await _0x1693b5['run']({'options':{..._0x363048,..._0x216c0f},'args':[_0x2760e0],'tdx':_0x4a786a});gracefulExit(_0x344532);}),llmCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3f2))[a2_0x360f70(0x390)]('List\x20available\x20LLM\x20models')['action'](async _0x36aa0d=>{const _0xd2de29=a2_0x360f70,_0x2135ab=new LLMModelsCommand(),_0x44aac1=program[_0xd2de29(0x186)](),_0x127857=await createTDXInstance(_0x44aac1),_0x45f95d=await _0x2135ab['run']({'options':{..._0x44aac1,..._0x36aa0d},'args':[],'tdx':_0x127857});gracefulExit(_0x45f95d);});const projectCmd=llmCmd[a2_0x360f70(0x339)]('project')['description'](a2_0x360f70(0x2cf)),llmProjectListAction=async(_0x35dcb5,_0x2c3196)=>{const _0x4e7acc=a2_0x360f70,_0xaac912=new LLMProjectsCommand(),_0x541dc4=program[_0x4e7acc(0x186)](),_0x4a5fc9=await createTDXInstance(_0x541dc4),_0x437268=await _0xaac912[_0x4e7acc(0x3bf)]({'options':{..._0x541dc4,..._0x2c3196},'args':_0x35dcb5?[_0x35dcb5]:[],'tdx':_0x4a5fc9});gracefulExit(_0x437268);};projectCmd['command'](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x343))[a2_0x360f70(0x40a)](llmProjectListAction),llmCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3bb))[a2_0x360f70(0x390)](a2_0x360f70(0x3cb))[a2_0x360f70(0x40a)](llmProjectListAction),projectCmd[a2_0x360f70(0x339)](a2_0x360f70(0x22b))[a2_0x360f70(0x390)](a2_0x360f70(0x26c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1b0),a2_0x360f70(0x181))[a2_0x360f70(0x40a)](async(_0x22ee99,_0x3c9e7a)=>{const _0x4624d0=new LLMProjectCreateCommand(),_0x423724=program['opts'](),_0x1ed74f=await createTDXInstance(_0x423724),_0x9a12ec=await _0x4624d0['run']({'options':{..._0x423724,..._0x3c9e7a},'args':[_0x22ee99],'tdx':_0x1ed74f});gracefulExit(_0x9a12ec);}),projectCmd['command'](a2_0x360f70(0x2b0))[a2_0x360f70(0x390)]('Delete\x20an\x20LLM\x20project')[a2_0x360f70(0x40a)](async(_0x4a5cb9,_0xbac4db)=>{const _0xb89f8=a2_0x360f70,_0x4cea58=new LLMProjectDeleteCommand(),_0x3ff802=program['opts'](),_0x3638bb=await createTDXInstance(_0x3ff802),_0x10ea81=await _0x4cea58[_0xb89f8(0x3bf)]({'options':{..._0x3ff802,..._0xbac4db},'args':[_0x4a5cb9],'tdx':_0x3638bb});gracefulExit(_0x10ea81);}),projectCmd[a2_0x360f70(0x339)](a2_0x360f70(0x322))[a2_0x360f70(0x390)](a2_0x360f70(0x202))[a2_0x360f70(0x2e6)](a2_0x360f70(0x33b),a2_0x360f70(0x271))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),a2_0x360f70(0x1ce))[a2_0x360f70(0x40a)](async(_0x4edb74,_0x5dc5dc)=>{const _0x10d938=a2_0x360f70,_0xc2ecd9=new LLMProjectBackupCommand(),_0xc2cb85=program[_0x10d938(0x186)](),_0x407cf2=await createTDXInstance(_0xc2cb85),_0x2ab25b=await _0xc2ecd9[_0x10d938(0x3bf)]({'options':{..._0xc2cb85,..._0x5dc5dc},'args':[_0x4edb74],'tdx':_0x407cf2});gracefulExit(_0x2ab25b);}),projectCmd[a2_0x360f70(0x339)](a2_0x360f70(0x380))[a2_0x360f70(0x390)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option']('--name\x20<new-name>',a2_0x360f70(0x2bf))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),a2_0x360f70(0x225))[a2_0x360f70(0x40a)](async(_0x4c0167,_0x346050)=>{const _0xd687dd=a2_0x360f70,_0x1b7862=new LLMProjectRestoreCommand(),_0x3fa257=program['opts'](),_0x4e29d9=await createTDXInstance(_0x3fa257),_0xe5aadc=await _0x1b7862[_0xd687dd(0x3bf)]({'options':{..._0x3fa257,..._0x346050},'args':[_0x4c0167],'tdx':_0x4e29d9});gracefulExit(_0xe5aadc);});const llmAgentListAction=async(_0x12f961,_0x597542)=>{const _0x84c7c6=a2_0x360f70,_0x7f47e4=new LLMAgentsCommand(),_0x516779=program['opts'](),_0x44c29f=await createTDXInstance(_0x516779),_0x30cc62=await _0x7f47e4[_0x84c7c6(0x3bf)]({'options':{..._0x516779,..._0x597542},'args':_0x12f961?[_0x12f961]:[],'tdx':_0x44c29f});gracefulExit(_0x30cc62);};llmCmd[a2_0x360f70(0x339)]('agents\x20[pattern]')[a2_0x360f70(0x390)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x360f70(0x40a)](llmAgentListAction),program[a2_0x360f70(0x339)](a2_0x360f70(0x3dc))[a2_0x360f70(0x390)](a2_0x360f70(0x180))[a2_0x360f70(0x40a)](llmAgentListAction),llmCmd[a2_0x360f70(0x339)](a2_0x360f70(0x35f))['description'](a2_0x360f70(0x1e8))[a2_0x360f70(0x2e6)](a2_0x360f70(0x34a),a2_0x360f70(0x20b))['action'](async(_0x167bf2,_0x15376c)=>{const _0x218f09=a2_0x360f70,_0x313c5a=new LLMHistoryCommand(),_0x5d8376=program[_0x218f09(0x186)](),_0x1ccfb7=await createTDXInstance(_0x5d8376),_0x4c3b90=await _0x313c5a[_0x218f09(0x3bf)]({'options':{..._0x5d8376,..._0x15376c},'args':_0x167bf2?[_0x167bf2]:[],'tdx':_0x1ccfb7});gracefulExit(_0x4c3b90);});isExperimentalAvailable()&&llmCmd[a2_0x360f70(0x339)]('log\x20<chat-id>')[a2_0x360f70(0x390)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')[a2_0x360f70(0x40a)](async(_0x535de3,_0x3dc981)=>{const _0x57efea=a2_0x360f70,_0x2b5c0c=new LLMLogCommand(),_0x255507=program[_0x57efea(0x186)](),_0xfaa06f=await createTDXInstance(_0x255507),_0xcc44b9=await _0x2b5c0c[_0x57efea(0x3bf)]({'options':{..._0x255507,..._0x3dc981},'args':[_0x535de3],'tdx':_0xfaa06f});gracefulExit(_0xcc44b9);});program[a2_0x360f70(0x339)](a2_0x360f70(0x2b9))[a2_0x360f70(0x289)]('[options]\x20--\x20[claude-code-args...]')['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x360f70(0x2e6)](a2_0x360f70(0x366),a2_0x360f70(0x2e8))[a2_0x360f70(0x2e6)](a2_0x360f70(0x19f),a2_0x360f70(0x37c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2b8),a2_0x360f70(0x151))[a2_0x360f70(0x3b3)]()['allowExcessArguments'](!![])[a2_0x360f70(0x350)](a2_0x360f70(0x35d),a2_0x360f70(0x2f8))[a2_0x360f70(0x40a)](async(_0x21974c,_0x4d2078)=>{const _0x119ec3=a2_0x360f70,_0xce40c=program[_0x119ec3(0x186)](),_0xee8ebe=Array[_0x119ec3(0x2ac)](_0x21974c)?_0x21974c:[];if(_0xee8ebe[0x0]==='statusline'){const _0x37a5c5=new ClaudeStatuslineCommand(),_0x30052b=await _0x37a5c5[_0x119ec3(0x3bf)]({'options':{..._0xce40c,..._0x4d2078},'args':_0xee8ebe['slice'](0x1),'tdx':null});gracefulExit(_0x30052b);}if(_0xee8ebe[0x0]===_0x119ec3(0x289)){const _0x2d3d46=new ClaudeUsageCommand(),_0x4a49ca=await _0x2d3d46[_0x119ec3(0x3bf)]({'options':{..._0xce40c,..._0x4d2078},'args':_0xee8ebe[_0x119ec3(0x246)](0x1),'tdx':null});gracefulExit(_0x4a49ca);}const _0x52703e=new ClaudeCommand(),_0x22d76b=await createTDXInstance(_0xce40c),_0x4712d5=await _0x52703e[_0x119ec3(0x3bf)]({'options':{..._0xce40c,..._0x4d2078},'args':_0xee8ebe,'tdx':_0x22d76b});gracefulExit(_0x4712d5);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x29b))[a2_0x360f70(0x390)]('Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x23e),a2_0x360f70(0x18b))['option']('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x360f70(0x40a)](async(_0x20ded2,_0x53d7b6,_0x3eead8)=>{const _0x2962f3=a2_0x360f70,_0x7550a1=new UseCommand(),_0x47972a=program[_0x2962f3(0x186)](),_0x475e2a=[];if(_0x20ded2)_0x475e2a[_0x2962f3(0x1d1)](_0x20ded2);if(_0x53d7b6)_0x475e2a[_0x2962f3(0x1d1)](_0x53d7b6);const _0x31d5c0=_0x20ded2==='engage_workspace',_0x28ebb1=_0x31d5c0?await createTDXInstance(_0x47972a):null,_0x11800e=await _0x7550a1[_0x2962f3(0x3bf)]({'options':{..._0x47972a,..._0x3eead8},'args':_0x475e2a,'tdx':_0x28ebb1});gracefulExit(_0x11800e);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x327))[a2_0x360f70(0x390)](a2_0x360f70(0x3ab))[a2_0x360f70(0x40a)](async _0x1c4db7=>{const _0x16999e=a2_0x360f70,_0x24f59a=new StatusCommand(),_0x540fa8=program['opts'](),_0x3a0a7a=await createTDXInstance(_0x540fa8),_0x5fe489=await _0x24f59a[_0x16999e(0x3bf)]({'options':{..._0x540fa8,..._0x1c4db7},'args':[],'tdx':_0x3a0a7a});gracefulExit(_0x5fe489);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x238))[a2_0x360f70(0x390)]('Upgrade\x20tdx\x20to\x20the\x20latest\x20version')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),'Check\x20for\x20updates\x20without\x20installing')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2ae),a2_0x360f70(0x2e2))[a2_0x360f70(0x2e6)](a2_0x360f70(0x25d),a2_0x360f70(0x20c))[a2_0x360f70(0x40a)](async(_0x5098c0,_0x24cd27)=>{const _0x4f607b=a2_0x360f70,_0x5a59a9=new UpgradeCommand(),_0x436c7e=program[_0x4f607b(0x186)](),_0x58e43f=await _0x5a59a9['run']({'options':{..._0x436c7e,..._0x24cd27},'args':_0x5098c0?[_0x5098c0]:[],'tdx':null});gracefulExit(_0x58e43f);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x17d))[a2_0x360f70(0x390)]('Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x26e),a2_0x360f70(0x37f))['action'](async(_0x12c875,_0x4807aa)=>{const _0x144b6e=a2_0x360f70,_0x4ec26a=new UnsetCommand(),_0x4b31d8=program[_0x144b6e(0x186)](),_0x294fa7=await _0x4ec26a[_0x144b6e(0x3bf)]({'options':{..._0x4b31d8,..._0x4807aa},'args':[_0x12c875],'tdx':null});gracefulExit(_0x294fa7);}),program[a2_0x360f70(0x339)]('chats')[a2_0x360f70(0x390)]('Interactive\x20chat\x20selector')['option'](a2_0x360f70(0x34a),a2_0x360f70(0x2ec))['action'](async _0x388740=>{const _0x42e534=a2_0x360f70,_0x52f1ff=new ChatsCommand(),_0x5542ea=program[_0x42e534(0x186)](),_0x511db5=await createTDXInstance(_0x5542ea),_0xab5b91=await _0x52f1ff['run']({'options':{..._0x5542ea,..._0x388740},'args':[],'tdx':_0x511db5});gracefulExit(_0xab5b91);});const authCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x3f8))[a2_0x360f70(0x390)](a2_0x360f70(0x2a0));async function runAuthStatusCommand(_0xf98a12){const _0x113c82=a2_0x360f70,_0x18e487=new AuthStatusCommand(),_0x1902b9=program[_0x113c82(0x186)](),_0x550af2=await createTDXInstance(_0x1902b9),_0x19f62f=await _0x18e487['run']({'options':{..._0x1902b9,..._0xf98a12},'args':[],'tdx':_0x550af2});gracefulExit(_0x19f62f);}authCmd[a2_0x360f70(0x40a)](runAuthStatusCommand),authCmd[a2_0x360f70(0x339)](a2_0x360f70(0x327))['description'](a2_0x360f70(0x3ca))[a2_0x360f70(0x40a)](runAuthStatusCommand),authCmd[a2_0x360f70(0x339)](a2_0x360f70(0x198))[a2_0x360f70(0x390)](a2_0x360f70(0x20a))['addHelpText'](a2_0x360f70(0x35d),'\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')[a2_0x360f70(0x40a)](async _0x445313=>{const _0x5b0554=a2_0x360f70,_0x22d85e=new AuthSetupCommand(),_0x1b916c=program['opts'](),_0xb81041=await createTDXInstance(_0x1b916c),_0x3d3ef6=await _0x22d85e[_0x5b0554(0x3bf)]({'options':{..._0x1b916c,..._0x445313},'args':[],'tdx':_0xb81041});gracefulExit(_0x3d3ef6);}),authCmd[a2_0x360f70(0x339)](a2_0x360f70(0x404))['description'](a2_0x360f70(0x385))['addHelpText'](a2_0x360f70(0x35d),a2_0x360f70(0x3de))['action'](async _0x9b444c=>{const _0x5eddef=a2_0x360f70,_0x3b7474=new AuthLoginCommand(),_0x22b632=program[_0x5eddef(0x186)](),_0x1df9a8=await _0x3b7474[_0x5eddef(0x3bf)]({'options':{..._0x22b632,..._0x9b444c},'args':[],'tdx':null});gracefulExit(_0x1df9a8);}),authCmd[a2_0x360f70(0x339)]('clear')[a2_0x360f70(0x390)](a2_0x360f70(0x1ba))[a2_0x360f70(0x350)](a2_0x360f70(0x35d),a2_0x360f70(0x2f7))[a2_0x360f70(0x40a)](async _0x4e68a1=>{const _0x148dc5=a2_0x360f70,_0x2e488d=new AuthClearCommand(),_0x6cf28c=program[_0x148dc5(0x186)](),_0x4d8256=await _0x2e488d[_0x148dc5(0x3bf)]({'options':{..._0x6cf28c,..._0x4e68a1},'args':[],'tdx':null});gracefulExit(_0x4d8256);});function a2_0x4908(_0x1120b2,_0x4fdb6d){_0x1120b2=_0x1120b2-0x14c;const _0x38063f=a2_0x3806();let _0x49083b=_0x38063f[_0x1120b2];return _0x49083b;}const userCmd=program[a2_0x360f70(0x339)]('user')['description'](a2_0x360f70(0x34b)),userListAction=async _0x35d127=>{const _0x31fdcd=a2_0x360f70,_0x4ae653=new UserListCommand(),_0x4f2d9d=program[_0x31fdcd(0x186)](),_0x39985a=await createTDXInstance(_0x4f2d9d),_0x433d49=await _0x4ae653['run']({'options':{..._0x4f2d9d,..._0x35d127},'args':[],'tdx':_0x39985a});gracefulExit(_0x433d49);};userCmd[a2_0x360f70(0x40a)](async _0x31aa7b=>{const _0x4360e4=a2_0x360f70,_0x6c5219=new UserCommand(),_0x2f12aa=program[_0x4360e4(0x186)](),_0x2e99bc=await createTDXInstance(_0x2f12aa),_0x53bda7=await _0x6c5219[_0x4360e4(0x3bf)]({'options':{..._0x2f12aa,..._0x31aa7b},'args':[],'tdx':_0x2e99bc});gracefulExit(_0x53bda7);}),userCmd[a2_0x360f70(0x339)](a2_0x360f70(0x293))[a2_0x360f70(0x390)](a2_0x360f70(0x301))[a2_0x360f70(0x40a)](userListAction),program['command']('users')['description'](a2_0x360f70(0x31a))[a2_0x360f70(0x40a)](userListAction),program[a2_0x360f70(0x339)](a2_0x360f70(0x2b6))['description'](a2_0x360f70(0x3bd))[a2_0x360f70(0x40a)](async _0x43f03a=>{const _0x27e2fd=a2_0x360f70,_0x1d99db=new ProfilesCommand(),_0x546544=program[_0x27e2fd(0x186)](),_0x181a17=await _0x1d99db[_0x27e2fd(0x3bf)]({'options':{..._0x546544,..._0x43f03a},'args':[],'tdx':null});gracefulExit(_0x181a17);});const profileCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x3e6))[a2_0x360f70(0x390)](a2_0x360f70(0x32f));profileCmd[a2_0x360f70(0x40a)](()=>{const _0x54f7f8=a2_0x360f70;profileCmd[_0x54f7f8(0x1ec)]();});const profileListAction=async _0x460fd4=>{const _0x4ecee8=a2_0x360f70,_0xe029bc=new ProfilesCommand(),_0x5a48ed=program[_0x4ecee8(0x186)](),_0x142d6b=await _0xe029bc[_0x4ecee8(0x3bf)]({'options':{..._0x5a48ed,..._0x460fd4},'args':[],'tdx':null});gracefulExit(_0x142d6b);};profileCmd[a2_0x360f70(0x339)]('list')[a2_0x360f70(0x390)](a2_0x360f70(0x3bd))[a2_0x360f70(0x40a)](profileListAction),profileCmd[a2_0x360f70(0x339)]('create\x20[name]')[a2_0x360f70(0x390)](a2_0x360f70(0x41f))[a2_0x360f70(0x350)](a2_0x360f70(0x35d),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a')['action'](async(_0x2b6233,_0x4a5f79)=>{const _0x415989=a2_0x360f70,_0x2cae06=new ProfileCreateCommand(),_0x38a9ca=program[_0x415989(0x186)](),_0x242cb4=await _0x2cae06['run']({'options':{..._0x38a9ca,..._0x4a5f79},'args':_0x2b6233?[_0x2b6233]:[],'tdx':null});gracefulExit(_0x242cb4);}),profileCmd[a2_0x360f70(0x339)]('remove\x20<name>')[a2_0x360f70(0x390)]('Remove\x20a\x20profile')[a2_0x360f70(0x350)](a2_0x360f70(0x35d),a2_0x360f70(0x39c))['action'](async(_0x36646e,_0x304281)=>{const _0x313449=a2_0x360f70,_0x524c46=new ProfileRemoveCommand(),_0x297151=program[_0x313449(0x186)](),_0x43c7ab=await _0x524c46[_0x313449(0x3bf)]({'options':{..._0x297151,..._0x304281},'args':[_0x36646e],'tdx':null});gracefulExit(_0x43c7ab);}),profileCmd[a2_0x360f70(0x339)]('set\x20<key=value>')[a2_0x360f70(0x390)](a2_0x360f70(0x1a9))[a2_0x360f70(0x350)]('after',a2_0x360f70(0x33f))['action'](async(_0x4eb55e,_0x2c141d)=>{const _0x560b0a=a2_0x360f70,_0x3cc9ea=new ProfileSetCommand(),_0x46e20d=program[_0x560b0a(0x186)](),_0x21ada7=await _0x3cc9ea[_0x560b0a(0x3bf)]({'options':{..._0x46e20d,..._0x2c141d},'args':[_0x4eb55e],'tdx':null});gracefulExit(_0x21ada7);}),profileCmd[a2_0x360f70(0x339)]('use\x20<name>')[a2_0x360f70(0x390)](a2_0x360f70(0x21a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x26e),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x360f70(0x350)]('after',a2_0x360f70(0x375))['action'](async(_0x1697a2,_0x5c5177)=>{const _0x57a71b=a2_0x360f70,_0x366664=new ProfileUseCommand(),_0x5df725=program['opts'](),_0x337a5a=await _0x366664[_0x57a71b(0x3bf)]({'options':{..._0x5df725,..._0x5c5177},'args':[_0x1697a2],'tdx':null});gracefulExit(_0x337a5a);});const engageCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x295))[a2_0x360f70(0x390)](a2_0x360f70(0x27c)),createEngageAction=_0x4c8871=>{return async(_0x1163c1,_0x397425)=>{const _0x11b705=a2_0x4908,_0x56c9e3=new _0x4c8871(),_0xbe7166=program['opts'](),_0x4db3fa=await createTDXInstance(_0xbe7166),_0x408293=await _0x56c9e3[_0x11b705(0x3bf)]({'options':{..._0xbe7166,..._0x397425},'args':[_0x1163c1],'tdx':_0x4db3fa});gracefulExit(_0x408293);};},createEngageNoArgAction=_0x35a032=>{return async _0x121233=>{const _0x5519b7=a2_0x4908,_0x3cc3b3=new _0x35a032(),_0x3e4d1c=program[_0x5519b7(0x186)](),_0x1623d6=await createTDXInstance(_0x3e4d1c),_0x577d3e=await _0x3cc3b3['run']({'options':{..._0x3e4d1c,..._0x121233},'args':[],'tdx':_0x1623d6});gracefulExit(_0x577d3e);};},createEngageListAction=_0x951a1f=>{return async(_0x1c161d,_0x2e4695)=>{const _0x5174fc=a2_0x4908,_0x7a1b30=new _0x951a1f(),_0x46ed48=program[_0x5174fc(0x186)](),_0x43d57b=await createTDXInstance(_0x46ed48),_0x5ef271=await _0x7a1b30[_0x5174fc(0x3bf)]({'options':{..._0x46ed48,..._0x2e4695},'args':_0x1c161d?[_0x1c161d]:[],'tdx':_0x43d57b});gracefulExit(_0x5ef271);};},campaignCmd=engageCmd['command']('campaign')[a2_0x360f70(0x390)](a2_0x360f70(0x425));campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2d0))['description']('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x360f70(0x2e6)]('--type\x20<type>',a2_0x360f70(0x3a1))['option'](a2_0x360f70(0x1b6),a2_0x360f70(0x374))[a2_0x360f70(0x2e6)]('--workspace\x20<name>',a2_0x360f70(0x19e))[a2_0x360f70(0x40a)](createEngageListAction(EngageCampaignsCommand)),engageCmd[a2_0x360f70(0x339)](a2_0x360f70(0x164))[a2_0x360f70(0x390)](a2_0x360f70(0x2bd))[a2_0x360f70(0x2e6)]('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1b6),a2_0x360f70(0x374))[a2_0x360f70(0x2e6)]('--workspace\x20<name>','Workspace\x20name')[a2_0x360f70(0x40a)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x360f70(0x339)]('show\x20<name-or-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x348))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),'Workspace\x20name')[a2_0x360f70(0x2e6)](a2_0x360f70(0x179),a2_0x360f70(0x158))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x360f70(0x339)]('create')[a2_0x360f70(0x390)](a2_0x360f70(0x156))[a2_0x360f70(0x24f)](a2_0x360f70(0x1cf),a2_0x360f70(0x2a2))[a2_0x360f70(0x24f)]('--type\x20<type>',a2_0x360f70(0x3df))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),'Campaign\x20description')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ed),a2_0x360f70(0x276))[a2_0x360f70(0x2e6)](a2_0x360f70(0x24e),a2_0x360f70(0x2d9))[a2_0x360f70(0x2e6)](a2_0x360f70(0x191),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x360f70(0x240),a2_0x360f70(0x1ae))[a2_0x360f70(0x2e6)](a2_0x360f70(0x168),a2_0x360f70(0x1c3))[a2_0x360f70(0x40a)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1f8))['description'](a2_0x360f70(0x2a1))[a2_0x360f70(0x2e6)]('--workspace\x20<name>',a2_0x360f70(0x19e))[a2_0x360f70(0x2e6)]('--name\x20<name>',a2_0x360f70(0x35a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),a2_0x360f70(0x2c3))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ed),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x24e),a2_0x360f70(0x2d9))['option'](a2_0x360f70(0x191),'JSON\x20columns\x20for\x20connector\x20(comma-separated)')['option'](a2_0x360f70(0x240),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x168),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x360f70(0x339)]('delete\x20<name-or-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x36b))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),'Workspace\x20name')['option'](a2_0x360f70(0x2dc),a2_0x360f70(0x40f))[a2_0x360f70(0x40a)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3cc))['description']('Launch\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x360f70(0x19e))[a2_0x360f70(0x40a)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x258))[a2_0x360f70(0x390)](a2_0x360f70(0x38b))[a2_0x360f70(0x2e6)]('--workspace\x20<name>',a2_0x360f70(0x19e))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x360f70(0x339)]('resume\x20<name-or-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x3a8))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x19e))[a2_0x360f70(0x40a)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x30c))[a2_0x360f70(0x390)](a2_0x360f70(0x212))[a2_0x360f70(0x2e6)]('--workspace\x20<name>','Workspace\x20name')[a2_0x360f70(0x40a)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x368))[a2_0x360f70(0x390)](a2_0x360f70(0x399))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),'Workspace\x20name')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1cf),a2_0x360f70(0x3d6))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ac),a2_0x360f70(0x3a1))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')['action'](createEngageAction(EngageCampaignPullCommand)),campaignCmd['command'](a2_0x360f70(0x39b))[a2_0x360f70(0x390)]('Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x19e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),a2_0x360f70(0x189))['action'](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x370))[a2_0x360f70(0x390)](a2_0x360f70(0x247))[a2_0x360f70(0x2e6)](a2_0x360f70(0x38f),a2_0x360f70(0x397))[a2_0x360f70(0x40a)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1c2))[a2_0x360f70(0x390)](a2_0x360f70(0x27f));alwaysOnCampaignCmd['command'](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x15e))['option'](a2_0x360f70(0x3ac),a2_0x360f70(0x3a1))[a2_0x360f70(0x2e6)]('--status\x20<status>',a2_0x360f70(0x235))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x40a)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x360f70(0x339)](a2_0x360f70(0x25c))[a2_0x360f70(0x390)](a2_0x360f70(0x17c))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ac),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x360f70(0x1b6),'Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x40a)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x239))['description'](a2_0x360f70(0x2f1))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x179),a2_0x360f70(0x158))[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x269))[a2_0x360f70(0x390)](a2_0x360f70(0x34c))[a2_0x360f70(0x24f)](a2_0x360f70(0x1cf),'Campaign\x20name')[a2_0x360f70(0x24f)](a2_0x360f70(0x3ac),a2_0x360f70(0x3df))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),a2_0x360f70(0x2c3))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3ed),a2_0x360f70(0x41b))[a2_0x360f70(0x2e6)]('--enable-utm-tracking',a2_0x360f70(0x1e5))[a2_0x360f70(0x40a)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1f8))[a2_0x360f70(0x390)](a2_0x360f70(0x1bd))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1cf),a2_0x360f70(0x35a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),a2_0x360f70(0x2c3))['option']('--segment\x20<path>',a2_0x360f70(0x41b))[a2_0x360f70(0x2e6)]('--enable-utm-tracking',a2_0x360f70(0x1e5))[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2be))[a2_0x360f70(0x390)](a2_0x360f70(0x338))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),'Workspace\x20name\x20(required)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2dc),a2_0x360f70(0x40f))['action'](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd['command'](a2_0x360f70(0x3cc))['description']('Launch\x20an\x20always-on\x20campaign')['requiredOption']('--workspace\x20<name>',a2_0x360f70(0x188))[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x258))[a2_0x360f70(0x390)](a2_0x360f70(0x229))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x389))[a2_0x360f70(0x390)](a2_0x360f70(0x241))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))['action'](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)](a2_0x360f70(0x420))['description'](a2_0x360f70(0x3ce))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2dc),'Skip\x20confirmation\x20prompt')[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x360f70(0x339)]('duplicate\x20<name-or-id>')[a2_0x360f70(0x390)](a2_0x360f70(0x3e7))[a2_0x360f70(0x24f)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x24f)](a2_0x360f70(0x1cf),a2_0x360f70(0x3a6))[a2_0x360f70(0x40a)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd['command']('template')[a2_0x360f70(0x390)]('Email\x20template\x20management');templateCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x172))['option']('--workspace\x20<name>','Workspace\x20name')['action'](createEngageListAction(EngageTemplatesCommand)),engageCmd['command'](a2_0x360f70(0x21c))[a2_0x360f70(0x390)](a2_0x360f70(0x288))['option']('--workspace\x20<name>',a2_0x360f70(0x19e))[a2_0x360f70(0x40a)](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x360f70(0x339)](a2_0x360f70(0x239))['description'](a2_0x360f70(0x2ee))[a2_0x360f70(0x2e6)]('--workspace\x20<name>',a2_0x360f70(0x19e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x179),a2_0x360f70(0x158))[a2_0x360f70(0x40a)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x360f70(0x269))[a2_0x360f70(0x390)](a2_0x360f70(0x2d6))['requiredOption'](a2_0x360f70(0x1cf),a2_0x360f70(0x3a2))[a2_0x360f70(0x24f)](a2_0x360f70(0x17b),a2_0x360f70(0x376))[a2_0x360f70(0x2e6)](a2_0x360f70(0x351),a2_0x360f70(0x2c6))['option']('--html-file\x20<path>',a2_0x360f70(0x173))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x188))[a2_0x360f70(0x2e6)](a2_0x360f70(0x300),'Plaintext\x20template\x20content')[a2_0x360f70(0x2e6)](a2_0x360f70(0x272),a2_0x360f70(0x215),_0x272f45=>{const _0x5befc9=a2_0x360f70;if(![_0x5befc9(0x23d),'grapesjs'][_0x5befc9(0x18c)](_0x272f45))throw new SDKError(ErrorCode[_0x5befc9(0x266)],_0x5befc9(0x400)+_0x272f45+_0x5befc9(0x1a0));return _0x272f45;})[a2_0x360f70(0x40a)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1f8))[a2_0x360f70(0x390)](a2_0x360f70(0x261))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),'Workspace\x20name')[a2_0x360f70(0x2e6)]('--name\x20<name>','New\x20template\x20name')['option'](a2_0x360f70(0x17b),'Email\x20subject\x20template')[a2_0x360f70(0x2e6)]('--html\x20<html>','HTML\x20template\x20content')[a2_0x360f70(0x2e6)]('--html-file\x20<path>',a2_0x360f70(0x173))[a2_0x360f70(0x2e6)]('--plaintext\x20<text>',a2_0x360f70(0x29c))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command']('pull\x20[workspace]')[a2_0x360f70(0x390)](a2_0x360f70(0x36f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x19e))['option'](a2_0x360f70(0x1cf),a2_0x360f70(0x270))[a2_0x360f70(0x2e6)](a2_0x360f70(0x372),a2_0x360f70(0x40f))['option'](a2_0x360f70(0x1dd),a2_0x360f70(0x1d0))[a2_0x360f70(0x40a)](createEngageAction(EngageTemplatePullCommand)),templateCmd['command'](a2_0x360f70(0x39b))[a2_0x360f70(0x390)](a2_0x360f70(0x1d3))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x19e))[a2_0x360f70(0x2e6)](a2_0x360f70(0x372),'Skip\x20confirmation\x20prompt')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),'Show\x20what\x20would\x20be\x20applied\x20without\x20applying')['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x360f70(0x339)](a2_0x360f70(0x370))[a2_0x360f70(0x390)](a2_0x360f70(0x200))[a2_0x360f70(0x2e6)]('--verbose',a2_0x360f70(0x397))[a2_0x360f70(0x40a)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2be))[a2_0x360f70(0x390)](a2_0x360f70(0x3c0))['option'](a2_0x360f70(0x3b0),'Workspace\x20name')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2dc),a2_0x360f70(0x40f))[a2_0x360f70(0x40a)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x360f70(0x339)](a2_0x360f70(0x210))['description']('Workspace\x20management');workspaceCmd[a2_0x360f70(0x339)]('list\x20[pattern]')[a2_0x360f70(0x390)](a2_0x360f70(0x2d4))[a2_0x360f70(0x40a)](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x360f70(0x339)](a2_0x360f70(0x336))[a2_0x360f70(0x390)](a2_0x360f70(0x28f))[a2_0x360f70(0x40a)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x360f70(0x339)](a2_0x360f70(0x239))[a2_0x360f70(0x390)](a2_0x360f70(0x411))['option'](a2_0x360f70(0x179),a2_0x360f70(0x158))[a2_0x360f70(0x40a)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command'](a2_0x360f70(0x269))[a2_0x360f70(0x390)](a2_0x360f70(0x401))[a2_0x360f70(0x24f)]('--name\x20<name>','Workspace\x20name')[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),a2_0x360f70(0x1bf))[a2_0x360f70(0x40a)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1f8))[a2_0x360f70(0x390)](a2_0x360f70(0x1c1))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1cf),a2_0x360f70(0x30b))[a2_0x360f70(0x2e6)](a2_0x360f70(0x398),a2_0x360f70(0x1bf))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x360f70(0x339)]('delete\x20<name-or-id>')['description'](a2_0x360f70(0x278))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2dc),a2_0x360f70(0x40f))[a2_0x360f70(0x40a)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x360f70(0x339)]('use\x20<name>')['description']('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')[a2_0x360f70(0x40a)](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x1fa))[a2_0x360f70(0x390)](a2_0x360f70(0x1b1));deliveryCmd[a2_0x360f70(0x339)](a2_0x360f70(0x209))[a2_0x360f70(0x390)]('List\x20email\x20senders')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b0),a2_0x360f70(0x19e))[a2_0x360f70(0x40a)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x3b6))[a2_0x360f70(0x390)](a2_0x360f70(0x419)),connectionListAction=async _0x3592a7=>{const _0x44164c=a2_0x360f70,_0x3b2851=new ConnectionListCommand(),_0xb9b3ca=program[_0x44164c(0x186)](),_0x59dd16=await createTDXInstance(_0xb9b3ca),_0x1aa41a=await _0x3b2851[_0x44164c(0x3bf)]({'options':{..._0xb9b3ca,..._0x3592a7},'args':[],'tdx':_0x59dd16});gracefulExit(_0x1aa41a);};connectionCmd[a2_0x360f70(0x339)](a2_0x360f70(0x293))[a2_0x360f70(0x390)](a2_0x360f70(0x1c0))[a2_0x360f70(0x40a)](connectionListAction),program['command'](a2_0x360f70(0x3e3),{'hidden':!![]})[a2_0x360f70(0x390)](a2_0x360f70(0x22e))[a2_0x360f70(0x40a)](connectionListAction),connectionCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2e0))[a2_0x360f70(0x390)](a2_0x360f70(0x1f5))[a2_0x360f70(0x40a)](async(_0x569925,_0x587957)=>{const _0x276bae=a2_0x360f70,_0x505237=new ConnectionShowCommand(),_0x43493f=program[_0x276bae(0x186)](),_0x545a9b=await createTDXInstance(_0x43493f),_0x2362d0=await _0x505237[_0x276bae(0x3bf)]({'options':{..._0x43493f,..._0x587957},'args':[_0x569925],'tdx':_0x545a9b});gracefulExit(_0x2362d0);}),connectionCmd[a2_0x360f70(0x339)]('schema\x20<type>')[a2_0x360f70(0x390)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x360f70(0x40a)](async(_0xbe3fff,_0x3fc658)=>{const _0xd61660=a2_0x360f70,_0x4241bf=new ConnectionSchemaCommand(),_0xf04ea7=program[_0xd61660(0x186)](),_0x468fa8=await createTDXInstance(_0xf04ea7),_0x4c110e=await _0x4241bf[_0xd61660(0x3bf)]({'options':{..._0xf04ea7,..._0x3fc658},'args':[_0xbe3fff],'tdx':_0x468fa8});gracefulExit(_0x4c110e);}),connectionCmd['command'](a2_0x360f70(0x3be))[a2_0x360f70(0x390)](a2_0x360f70(0x34d))[a2_0x360f70(0x40a)](async _0x426fbd=>{const _0x15b9c6=a2_0x360f70,_0x71fed4=new ConnectionTypesCommand(),_0x55c74c=program['opts'](),_0x30fef9=await createTDXInstance(_0x55c74c),_0x4ab702=await _0x71fed4[_0x15b9c6(0x3bf)]({'options':{..._0x55c74c,..._0x426fbd},'args':[],'tdx':_0x30fef9});gracefulExit(_0x4ab702);}),connectionCmd['command'](a2_0x360f70(0x249))[a2_0x360f70(0x390)](a2_0x360f70(0x2ad))[a2_0x360f70(0x40a)](async(_0x416e71,_0x455feb)=>{const _0x5aa116=a2_0x360f70,_0x21730b=new ConnectionSettingsCommand(),_0x149ce3=program['opts'](),_0x33bb6f=await createTDXInstance(_0x149ce3),_0x4eea59=await _0x21730b[_0x5aa116(0x3bf)]({'options':{..._0x149ce3,..._0x455feb},'args':[_0x416e71],'tdx':_0x33bb6f});gracefulExit(_0x4eea59);});function a2_0x3806(){const _0x4c1e67=['workflow','Overwrite\x20local\x20changes\x20without\x20confirmation','option','--attribute\x20[name]','Continue\x20most\x20recent\x20conversation','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Workflow\x20(Digdag)\x20management\x20commands','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Show\x20the\x20most\x20recent\x20chat','help','Show\x20email\x20template\x20details','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','Show\x20always-on\x20campaign\x20details','Read\x20query\x20from\x20file','--priority\x20<-2~2>','jsonl','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','journey','\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','\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','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','columns\x20<name-or-path>','Attempt\x20ID','isTTY','Delay\x20in\x20seconds\x20before\x20execution','Include\x20retried\x20attempts','--starter-message\x20<text>','--plaintext\x20<text>','List\x20all\x20users\x20in\x20the\x20account','Move\x20to\x20folder','[attempt-id]','Revision\x20name\x20(default:\x20timestamp)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','desc\x20[name]','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--max-depth\x20<depth>','New\x20workspace\x20name','duplicate\x20<name-or-id>','Commands:','--master','--skip-validation','_hidden','--from\x20<timestamp>','create\x20<name-or-path>','join','--interval\x20<range>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Override\x20project\x20name','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','split','use\x20<path>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','list\x20[name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--enriched','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Output\x20as\x20JSON','Path\x20is\x20not\x20a\x20directory:\x20','-a,\x20--agent\x20<name>','backup\x20<name>','project','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','push\x20[name]','status','RT\x202.0\x20configuration\x20management','Preview\x20changes\x20without\x20writing\x20files','Output\x20file\x20path','Parent\x20segment\x20description','-d,\x20--database\x20<db>','Skip\x20confirmation\x20prompts','delete\x20<args...>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Agent\x20description','resume\x20<name-or-path>','Kill\x20a\x20job','Temperature\x20(0.0-2.0,\x20default:\x200.7)','--include-stats','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','workspaces\x20[pattern]','Folder\x20description','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','command','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','-o,\x20--output\x20<folder>','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','--retry-limit\x20<0~32>','\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','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','injectIntoOptions','Skip\x20validation\x20of\x20.dig\x20files','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','delete\x20<agent-name>','Show\x20journey\x20details','Read\x20request\x20body\x20from\x20file','Folder\x20name\x20for\x20organization','Show\x20campaign\x20details','--new','--last','User\x20management\x20commands','Create\x20a\x20new\x20always-on\x20campaign','List\x20available\x20connector\x20types','--no-color','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','addHelpText','--html\x20<html>','padEnd','optionDescription','Resume\x20from\x20specific\x20task\x20(retry)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','--from-task\x20<task>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','registeredArguments','--revision\x20<revision>','New\x20campaign\x20name','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','after','update\x20<name>','history\x20[chat-id]','List\x20all\x20versions\x20of\x20a\x20journey','Updated\x20schedule\x20option','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Table\x20management\x20commands','Master\x20database\x20name','exit','-c,\x20--continue','alias','pull\x20[workspace-name]','buildTime','--timeout\x20<seconds>','Delete\x20a\x20campaign','get','Agent\x20name','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Pull\x20templates\x20to\x20YAML\x20files','validate\x20[target]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-y,\x20--yes','kill','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Email\x20subject\x20template','hook','Database\x20name\x20(default:\x20information_schema)','--jsonl','Starter\x20message','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Resume\x20a\x20conversation\x20(shows\x20selector)','sql\x20[name]','--debug','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','restore\x20<folder>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','60EhLRjN','--in\x20<db>','logs','Login\x20via\x20OAuth\x20(dev\x20sites\x20only)','Include\x20execution\x20statistics','GET','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','resume\x20<name-or-id>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Pause\x20a\x20campaign','Task\x20name\x20for\x20logs\x20action','Preview\x20changes\x20without\x20pushing','Updated\x20description','--verbose','description','--add-attributes-file\x20<file>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Behaviors\x20from\x20JSON\x20file','catch','describe','Show\x20all\x20files\x20including\x20valid\x20ones','--description\x20<desc>','Pull\x20campaigns\x20to\x20YAML\x20files','Run\x20specific\x20tests\x20(comma-separated)','push\x20[target]','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','push\x20[source-dir]','Arguments:','Export\x20journey(s)\x20as\x20YAML\x20files','hidden','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Template\x20name','--tsv','\x20-\x20built\x20','48994hwbFhR','Name\x20for\x20the\x20duplicated\x20campaign','Enable\x20verbose\x20logging','Resume\x20a\x20paused\x20campaign','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Show\x20schedule\x20details','Show\x20authentication\x20status\x20and\x20current\x20context','--type\x20<type>','--chat-id\x20<id>','gitRevision','init\x20[name]','--workspace\x20<name>','show\x20<job-id>','flags','allowUnknownOption','--database\x20<name>','--tags\x20<tags>','connection','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--agent\x20<ref>','--path\x20<file-path>','--version\x20<number>','projects\x20[pattern]','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','List\x20all\x20available\x20profiles','types','run','Delete\x20an\x20email\x20template','List\x20agents\x20in\x20current\x20project','error','203119dIpIpf','--limit\x20<n>','Update\x20a\x20scheduled\x20query','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--num\x20<1-10>','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','launch\x20<name-or-id>','list\x20[project]','Finish\x20an\x20always-on\x20campaign','Database\x20to\x20query\x20(default:\x20information_schema)','pull\x20[parent_or_file]','folders\x20<parent_name>','submit\x20[query]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Limit\x20number\x20of\x20rows','--params\x20<json>','Pull\x20specific\x20campaign\x20by\x20name','-u,\x20--use','--in\x20<database>','workflows\x20[project]','List\x20secret\x20keys\x20for\x20a\x20project','Pull\x20child\x20segments\x20to\x20YAML\x20files','agents\x20[pattern]','Query\x20type:\x20trino\x20or\x20hive','\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\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a','Campaign\x20type\x20(email\x20or\x20push)','Manage\x20workflow\x20project\x20secrets','options','Skip\x20population\x20counting','connections','Unknown\x20action:\x20','-C,\x20--directory\x20<path>','profile','Duplicate\x20an\x20always-on\x20campaign','--limit\x20<number>','versions\x20<name-or-path>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','--delay\x20<seconds>','--segment\x20<path>','version','format','Start\x20a\x20new\x20chat\x20session','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','models','--delete','--system-prompt\x20<text>','--database\x20<db>','INFO','map','auth','Reason\x20for\x20killing\x20the\x20attempt','[task-name]','-r,\x20--recursive','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','session','--behaviors-file\x20<file>','push\x20[parent_or_file]','Invalid\x20editor\x20type:\x20','Create\x20a\x20workspace','-H,\x20--header\x20<header>','CDP\x20Journey\x20Orchestration\x20commands','login','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','List\x20journeys\x20in\x20current\x20context','configureHelp','-1d','--param\x20<key=value>','action','--behavior\x20[name]','entries','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Read\x20SQL\x20query\x20from\x20file','Skip\x20confirmation\x20prompt','Show\x20schedule\x20execution\x20history','Show\x20workspace\x20details','Segment\x20description','tasks','us01','--cron\x20<expression>','tdx\x20','Show\x20agent\x20details','List\x20activations\x20for\x20a\x20journey','Data\x20connection\x20management\x20(for\x20activations/exports)','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','--name\x20<names>','push\x20[path]','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Create\x20a\x20new\x20profile','finish\x20<name-or-id>','--engine-version\x20<version>','parent_segment','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Cron\x20expression\x20for\x20scheduling','Campaign\x20management','--attributes\x20<json>','--limit\x20<rows>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','Include\x20retried\x20attempts\x20(for\x20list)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','activations\x20<name-or-path>','Maximum\x20rows\x20to\x20display','-o,\x20--output\x20<file>','Create\x20a\x20new\x20campaign','length','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','clone\x20[source]','LLM\x20agent\x20management','--customer-group-file\x20<file>','Create\x20segment\x20folder','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','9bnidFI','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','view\x20[segment_name]','validate\x20[file]','\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','campaigns\x20[pattern]','--site\x20<site>','use\x20[name]','stdout','--timezone\x20<tz>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Add\x20attributes\x20as\x20JSON\x20string','set\x20<args...>','--trace','commands','api\x20[endpoint]','Add\x20behaviors\x20as\x20JSON\x20string','--from\x20<n>','run\x20[name]','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Read\x20HTML\x20template\x20from\x20file','update\x20<segment_name>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','summary','--no-count-population','required','--full','chat\x20[message...]','--subject\x20<subject>','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','unset\x20<resource>','trace','Open\x20journey\x20in\x20web\x20browser','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Project\x20description','logLevel','--customer-group\x20<json>','Open\x20segment\x20in\x20web\x20browser','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','opts','Run\x20tests\x20for\x20an\x20LLM\x20agent','Workspace\x20name\x20(required)','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','Database\x20name\x20(required)','Clear\x20session\x20context','includes','tdx','Custom\x20revision\x20name\x20(default:\x20timestamp)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','YAML\x20file\x20path\x20for\x20unpushed\x20segment','--json-columns\x20<cols>','segment','use\x20<project-name>','CDP\x20segment\x20management\x20commands','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Job\x20priority\x20(-2\x20to\x202)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','setup','Set\x20or\x20show\x20parent\x20segment\x20context','8235952ZTzonh','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--include-subtasks','Invalid\x20--limit\x20value:\x20\x22','Workspace\x20name','-r,\x20--resume','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','activations\x20<segment_name>','site','information_schema','colorFn','Resume\x20from\x20specific\x20task','20WQofVL','Set\x20a\x20profile\x20configuration\x20value','Include\x20raw\x20history\x20data\x20in\x20output','Delete\x20a\x20scheduled\x20query','validate\x20[name]','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--add-attributes\x20<json>','--description\x20<text>','Delivery\x20operations\x20(email\x20senders)','Master\x20table\x20name','--kind\x20<type>','_list-commands','System\x20prompt/instructions\x20(default:\x20empty)','--status\x20<status>','repeat','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','flatMap','Remove\x20API\x20key\x20from\x20system\x20keychain','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Clear\x20workflow\x20project\x20context','Update\x20an\x20always-on\x20campaign','Name\x20for\x20the\x20new\x20project\x20(required)','Workspace\x20description','List\x20all\x20data\x20connections','Update\x20a\x20workspace','always-on-campaign','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','12tcXLtZ','Filtering\x20rule\x20from\x20JSON\x20file','Directory\x20does\x20not\x20exist:\x20','-X,\x20--method\x20<method>','subcommandDescription','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','pause\x20<name-or-path>','[DEPRECATED]\x20Segment\x20folder\x20management','-f,\x20--force','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--name\x20<name>','Show\x20what\x20would\x20be\x20written\x20without\x20writing','push','sql\x20[segment_name]','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','--format\x20<format>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Timezone\x20for\x20cron','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','-w,\x20--web','isDirectory','create\x20<parent_name>\x20<folder_name>','--folder\x20<name>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','--dry-run','Ending\x20offset\x20(default:\x2020)','List\x20jobs','--to\x20<date>','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','timeline\x20[project.workflow]','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Enable\x20UTM\x20tracking','pull\x20[project]\x20[agent-name]','Generate\x20test\x20conversations\x20without\x20evaluation','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Timezone\x20(e.g.,\x20America/Los_Angeles)','Timezone\x20for\x20cron\x20(default:\x20UTC)','Query\x20engine\x20version','outputHelp','\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','retry','--catalog\x20<catalog>','Force\x20retry\x20even\x20if\x20not\x20failed','mcp','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','apiKey','filter','Show\x20connection\x20details\x20by\x20name','--rule\x20<json>','-n,\x20--name\x20<name>','update\x20<name-or-id>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','delivery','Parent\x20segment\x20management','Pull\x20workflow\x20project\x20to\x20local\x20folder','Make\x20segment\x20invisible\x20(default:\x20visible)','argv','Pause\x20a\x20running\x20journey','Validate\x20template\x20YAML\x20files\x20locally','-o,\x20--output\x20<dir>','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','View\x20a\x20specific\x20version\x20of\x20a\x20journey','subcommandTerm','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--version','Customer\x20group\x20as\x20JSON\x20string','show\x20<agent-name>','senders\x20[pattern]','Setup\x20API\x20key\x20authentication\x20interactively','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Add\x20behaviors\x20from\x20JSON\x20file','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Attributes\x20from\x20JSON\x20file','workspace','Set\x20operation\x20timeout\x20in\x20seconds','Duplicate\x20a\x20campaign','Agent\x20prompt/instructions','5gNEvHu','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','name','Scheduled\x20query\x20management\x20commands','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Options:','templates\x20[pattern]','history\x20<name>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','json','traffic\x20<name-or-path>','upload\x20[project-name-or-dir]','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','database','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','--no-eval','2IiTqRK','Pause\x20an\x20always-on\x20campaign','--to\x20<n>','create\x20<name>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','databases\x20[pattern]','Show\x20journey\x20statistics','--force','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Preview\x20without\x20creating\x20the\x20project','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','--include-history','Database\x20name','upgrade\x20[version]','show\x20<name-or-id>','list\x20[path]','Attributes\x20as\x20JSON\x20string','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','beefree','--clear','Output\x20file\x20path\x20(default:\x20<name>.yml)','--start-at\x20<datetime>','Resume\x20a\x20paused\x20always-on\x20campaign','--parent-folder\x20<name>','Create\x20a\x20scheduled\x20query','-f,\x20--file\x20<path>','parent-segment','slice','Validate\x20campaign\x20YAML\x20files\x20locally','--resume-from\x20<task>','settings\x20<type>','Show\x20only\x20master\x20table\x20validation','Open\x20parent\x20segment\x20in\x20web\x20browser','--table\x20<table>','Include\x20subtasks\x20in\x20tasks\x20output','--email-sender-id\x20<id>','requiredOption',',\x20version\x20','--name\x20<new_name>','--llm-project\x20<name>','run\x20<name>','Show\x20journey\x20table\x20column-to-step\x20mapping','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Follow/watch\x20timeline\x20for\x20running\x20attempts','test\x20[path]','pause\x20<name-or-id>','Version\x20number\x20to\x20view','Workflow\x20parameter\x20(repeatable)','4989268fRyDqs','always-on-campaigns\x20[pattern]','--method\x20<pm>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','directory','AI-native\x20CLI\x20for\x20Treasure\x20Data','Update\x20an\x20email\x20template','Output\x20as\x20JSON\x20Lines','Show\x20timeline\x20for\x20specific\x20attempt','Run\x20Trino\x20query\x20with\x20streaming\x20results','--result\x20<target>','INVALID_ARGUMENT','--attributes-file\x20<file>','Result\x20output\x20destination\x20URL','create','DEBUG','--name\x20<text>','Create\x20a\x20new\x20LLM\x20project','show\x20[table]','--default','jobs','Pull\x20specific\x20template\x20by\x20name','Output\x20folder\x20(default:\x20{project_name}.llm)','--editor-type\x20<type>','--from\x20<date>','-p,\x20--profile\x20<name>','--json','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','optionTerm','Delete\x20a\x20workspace','retry\x20<session-id>','--output\x20<file>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','view\x20<name-or-path>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Always-on\x20campaign\x20management','--to\x20<timestamp>','\x22.\x20Must\x20be\x20a\x20number.','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Trino\x20catalog\x20(default:\x20td)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','...','Workflow\x20attempt\x20management','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','usage','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','545707ZdegUo','--model\x20<name>','--session-id\x20<id>','Request\x20body\x20as\x20JSON\x20string','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','preview\x20[name]','download\x20<project-name>\x20[output-dir]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','list','claude-4.5-sonnet','engage','--schedule-option\x20<value>','--help','padWidth','Get\x20job\x20results','Retry\x20limit\x20(0\x20to\x2032)','use\x20[resource]\x20[value]','Plaintext\x20template\x20content','--parent-segment\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Authentication\x20management','Update\x20a\x20campaign','Campaign\x20name','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','--data\x20<data>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','upgrade','show\x20[segment_name]','Show\x20segment\x20details\x20(alias\x20for\x20view)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--stage\x20<name>','desc\x20[segment_name]','isArray','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','--next','argument','delete\x20<name>','Show\x20segment\x20schema\x20(column\x20types)','trino','variadic','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','--result\x20<url>','profiles','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--no-proxy','claude\x20[args...]','argumentDescription','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','noColor','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','delete\x20<name-or-id>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--rule-file\x20<file>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Campaign\x20description','Output\x20directory','aliases','HTML\x20template\x20content','--follow','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','kill\x20<job-id>','3815123kDGzHk','Behaviors\x20as\x20JSON\x20string','--reason\x20<text>','--temperature\x20<n>','LLM\x20project\x20management','list\x20[pattern]','--session\x20<id>','0.7','tsv','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','table','Create\x20an\x20email\x20template','--behaviors\x20<json>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Email\x20sender\x20ID\x20for\x20delivery','Add\x20attributes\x20from\x20JSON\x20file','pull\x20[name]','--yes','secrets','--add-behaviors-file\x20<file>','-d,\x20--database\x20<database>','show\x20<name>','--include-retried','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','1325634gxEvhH'];a2_0x3806=function(){return _0x4c1e67;};return a2_0x3806();}const journeyCmd=program[a2_0x360f70(0x339)](a2_0x360f70(0x2f6))[a2_0x360f70(0x390)](a2_0x360f70(0x403)),journeyListAction=async(_0x9d4354,_0xcaaf9c)=>{const _0x164bb3=a2_0x360f70,_0x50cf0b=new JourneyListCommand(),_0x3b2743=program[_0x164bb3(0x186)](),_0x13d0a2=await createTDXInstance(_0x3b2743),_0x3cb8ef=await _0x50cf0b[_0x164bb3(0x3bf)]({'options':{..._0x3b2743,..._0xcaaf9c},'args':_0x9d4354?[_0x9d4354]:[],'tdx':_0x13d0a2});gracefulExit(_0x3cb8ef);};journeyCmd['command'](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x406))[a2_0x360f70(0x40a)](journeyListAction),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x27d))[a2_0x360f70(0x390)](a2_0x360f70(0x345))[a2_0x360f70(0x2e6)]('-w,\x20--web',a2_0x360f70(0x17f))[a2_0x360f70(0x2e6)](a2_0x360f70(0x334),a2_0x360f70(0x386))['action'](async(_0x2c4b60,_0x2d5cee)=>{const _0x11b344=a2_0x360f70,_0xb82987=new JourneyViewCommand(),_0x3b06ce=program[_0x11b344(0x186)](),_0x3a7ecd=await createTDXInstance(_0x3b06ce),_0x3226fa=await _0xb82987['run']({'options':{..._0x3b06ce,..._0x2d5cee},'args':[_0x2c4b60],'tdx':_0x3a7ecd});gracefulExit(_0x3226fa);}),journeyCmd[a2_0x360f70(0x339)]('stats\x20<name-or-path>')[a2_0x360f70(0x390)](a2_0x360f70(0x230))['option'](a2_0x360f70(0x2aa),'Show\x20stats\x20for\x20specific\x20stage')[a2_0x360f70(0x2e6)](a2_0x360f70(0x273),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1e0),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x236),a2_0x360f70(0x1aa))['action'](async(_0x1787de,_0x24ee0a)=>{const _0x47c230=a2_0x360f70,_0x2b084f=new JourneyStatsCommand(),_0x4a7430=program[_0x47c230(0x186)](),_0x4b753b=await createTDXInstance(_0x4a7430),_0x143278=await _0x2b084f[_0x47c230(0x3bf)]({'options':{..._0x4a7430,..._0x24ee0a},'args':[_0x1787de],'tdx':_0x4b753b});gracefulExit(_0x143278);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x220))['description'](a2_0x360f70(0x2b4))['option'](a2_0x360f70(0x3ac),'Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)')['option']('--from\x20<date>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x360f70(0x2e6)](a2_0x360f70(0x1e0),a2_0x360f70(0x405))['option'](a2_0x360f70(0x3e8),'Maximum\x20number\x20of\x20nodes',_0x127e33=>{const _0x7724ac=a2_0x360f70,_0x385ea5=parseInt(_0x127e33,0xa);if(isNaN(_0x385ea5))throw new Error(_0x7724ac(0x19d)+_0x127e33+_0x7724ac(0x281));return _0x385ea5;})['action'](async(_0x4f7452,_0x4f5c4a)=>{const _0x2b7cdc=new JourneyTrafficCommand(),_0x2b1b78=program['opts'](),_0x16b5ad=await createTDXInstance(_0x2b1b78),_0xa25f60=await _0x2b7cdc['run']({'options':{..._0x2b1b78,..._0x4f5c4a},'args':[_0x4f7452],'tdx':_0x16b5ad});gracefulExit(_0xa25f60);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1cb))['description'](a2_0x360f70(0x1ff))[a2_0x360f70(0x40a)](async(_0x1dcfc6,_0x2c15f0)=>{const _0x3982bb=a2_0x360f70,_0x38ff5c=new JourneyPauseCommand(),_0x2b01c1=program['opts'](),_0x19abe0=await createTDXInstance(_0x2b01c1),_0x448c11=await _0x38ff5c[_0x3982bb(0x3bf)]({'options':{..._0x2b01c1,..._0x2c15f0},'args':[_0x1dcfc6],'tdx':_0x19abe0});gracefulExit(_0x448c11);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x331))[a2_0x360f70(0x390)]('Resume\x20a\x20paused\x20journey')[a2_0x360f70(0x40a)](async(_0x1858ca,_0x356a99)=>{const _0x1d44c5=new JourneyResumeCommand(),_0x4d68ed=program['opts'](),_0x51fb9e=await createTDXInstance(_0x4d68ed),_0x32a79d=await _0x1d44c5['run']({'options':{..._0x4d68ed,..._0x356a99},'args':[_0x1858ca],'tdx':_0x51fb9e});gracefulExit(_0x32a79d);}),journeyCmd['command'](a2_0x360f70(0x2db))['description'](a2_0x360f70(0x39f))['option'](a2_0x360f70(0x1dd),a2_0x360f70(0x335))['action'](async(_0x3c6aab,_0x4d782b)=>{const _0x69f956=a2_0x360f70,_0x4aac2d=new JourneyPullCommand(),_0xee22e5=program[_0x69f956(0x186)](),_0x24b928=await createTDXInstance(_0xee22e5),_0xaa4944=await _0x4aac2d[_0x69f956(0x3bf)]({'options':{..._0xee22e5,..._0x4d782b},'args':_0x3c6aab?[_0x3c6aab]:[],'tdx':_0x24b928});gracefulExit(_0xaa4944);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x39b))[a2_0x360f70(0x390)](a2_0x360f70(0x1f2))[a2_0x360f70(0x40a)](async(_0x4053ed,_0x2455d9)=>{const _0x371f00=a2_0x360f70,_0x3aad93=new JourneyPushCommand(),_0x26326b=program['opts'](),_0x57d089=await createTDXInstance(_0x26326b),_0x395ace=await _0x3aad93[_0x371f00(0x3bf)]({'options':{..._0x26326b,..._0x2455d9},'args':_0x4053ed?[_0x4053ed]:[],'tdx':_0x57d089});gracefulExit(_0x395ace);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2fa))[a2_0x360f70(0x390)](a2_0x360f70(0x254))[a2_0x360f70(0x40a)](async(_0x2a9bc8,_0x1ed51c)=>{const _0x24fd0e=a2_0x360f70,_0xff9b9b=new JourneyColumnsCommand(),_0x464e03=program[_0x24fd0e(0x186)](),_0x153042=await createTDXInstance(_0x464e03),_0x2304bb=await _0xff9b9b[_0x24fd0e(0x3bf)]({'options':{..._0x464e03,..._0x1ed51c},'args':[_0x2a9bc8],'tdx':_0x153042});gracefulExit(_0x2304bb);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x153))[a2_0x360f70(0x390)](a2_0x360f70(0x418))['action'](async(_0x1769b5,_0x8f8b2b)=>{const _0x5db373=a2_0x360f70,_0x3207b4=new JourneyActivationsCommand(),_0x2879ba=program['opts'](),_0x3c988b=await createTDXInstance(_0x2879ba),_0x128d8e=await _0x3207b4[_0x5db373(0x3bf)]({'options':{..._0x2879ba,..._0x8f8b2b},'args':[_0x1769b5],'tdx':_0x3c988b});gracefulExit(_0x128d8e);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3e9))[a2_0x360f70(0x390)](a2_0x360f70(0x360))[a2_0x360f70(0x40a)](async(_0x2f8c5a,_0x16e414)=>{const _0xf1e85e=a2_0x360f70,_0x468b37=new JourneyVersionsCommand(),_0x4b8440=program[_0xf1e85e(0x186)](),_0x2926e6=await createTDXInstance(_0x4b8440),_0x5e1a32=await _0x468b37['run']({'options':{..._0x4b8440,..._0x16e414},'args':[_0x2f8c5a],'tdx':_0x2926e6});gracefulExit(_0x5e1a32);});const journeyVersionCmd=journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x3ee))[a2_0x360f70(0x390)]('Journey\x20version\x20management');journeyVersionCmd[a2_0x360f70(0x339)](a2_0x360f70(0x312))[a2_0x360f70(0x390)](a2_0x360f70(0x195))[a2_0x360f70(0x40a)](async(_0x2f458d,_0x34073f)=>{const _0xd76ad3=a2_0x360f70,_0x339eaa=new JourneyVersionCreateCommand(),_0x538615=program[_0xd76ad3(0x186)](),_0x2a80cc=await createTDXInstance(_0x538615),_0x532149=await _0x339eaa[_0xd76ad3(0x3bf)]({'options':{..._0x538615,..._0x34073f},'args':[_0x2f458d],'tdx':_0x2a80cc});gracefulExit(_0x532149);}),journeyVersionCmd['command'](a2_0x360f70(0x27d))[a2_0x360f70(0x390)](a2_0x360f70(0x203))[a2_0x360f70(0x24f)](a2_0x360f70(0x3ba),a2_0x360f70(0x259))['action'](async(_0x4c2480,_0x326214)=>{const _0x337f2a=a2_0x360f70,_0xed6449=new JourneyVersionViewCommand(),_0x43fed1=program['opts'](),_0x2b0fd5=await createTDXInstance(_0x43fed1),_0x5b1ce9=await _0xed6449[_0x337f2a(0x3bf)]({'options':{..._0x43fed1,..._0x326214},'args':[_0x4c2480],'tdx':_0x2b0fd5});gracefulExit(_0x5b1ce9);}),journeyCmd[a2_0x360f70(0x339)](a2_0x360f70(0x370))[a2_0x360f70(0x390)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x360f70(0x40a)](async(_0x1d2cfd,_0x4f28a4)=>{const _0x511f8f=a2_0x360f70,_0x2cbf21=new JourneyValidateCommand(),_0x379f40=program[_0x511f8f(0x186)](),_0x560223=await createTDXInstance(_0x379f40),_0x2e0b2e=await _0x2cbf21['run']({'options':{..._0x379f40,..._0x4f28a4},'args':_0x1d2cfd?[_0x1d2cfd]:[],'tdx':_0x560223});gracefulExit(_0x2e0b2e);}),program[a2_0x360f70(0x339)]('journeys\x20[pattern]')['description'](a2_0x360f70(0x3c9))['action'](journeyListAction);const agentSyncCmd=program[a2_0x360f70(0x339)]('agent')[a2_0x360f70(0x390)](a2_0x360f70(0x15a));agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x1e6))['description'](a2_0x360f70(0x1dc))[a2_0x360f70(0x2e6)](a2_0x360f70(0x201),a2_0x360f70(0x2c4))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1cd),a2_0x360f70(0x2e5))['option'](a2_0x360f70(0x321),a2_0x360f70(0x2f0))[a2_0x360f70(0x40a)](async(_0xae970a,_0x2f1bb0,_0x154591)=>{const _0x56add2=a2_0x360f70,_0x4a337a=new AgentPullCommand(),_0x1c7399=program[_0x56add2(0x186)](),_0x1fb315=await createTDXInstance(_0x1c7399),_0x722c2f=[];if(_0xae970a)_0x722c2f[_0x56add2(0x1d1)](_0xae970a);if(_0x2f1bb0)_0x722c2f[_0x56add2(0x1d1)](_0x2f1bb0);const _0x1b6274=await _0x4a337a[_0x56add2(0x3bf)]({'options':{..._0x1c7399,..._0x154591},'args':_0x722c2f,'tdx':_0x1fb315});gracefulExit(_0x1b6274);}),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x41d))['description']('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')['option'](a2_0x360f70(0x1cd),'Push\x20without\x20confirmation')[a2_0x360f70(0x40a)](async(_0x12f544,_0x5f065c)=>{const _0x30a2a0=a2_0x360f70,_0x44b0df=new AgentPushCommand(),_0x2001b8=program[_0x30a2a0(0x186)](),_0x24c3d4=await createTDXInstance(_0x2001b8),_0x2c5f50=await _0x44b0df[_0x30a2a0(0x3bf)]({'options':{..._0x2001b8,..._0x5f065c},'args':_0x12f544?[_0x12f544]:[],'tdx':_0x24c3d4});gracefulExit(_0x2c5f50);}),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x159))[a2_0x360f70(0x390)](a2_0x360f70(0x205))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1f7),a2_0x360f70(0x1be))[a2_0x360f70(0x40a)](async(_0x1f3ae,_0x4d55af)=>{const _0x3646cf=a2_0x360f70,_0x18fc27=new AgentCloneCommand(),_0x29121c=program[_0x3646cf(0x186)](),_0x16a628=await createTDXInstance(_0x29121c),_0x571cb2=await _0x18fc27['run']({'options':{..._0x29121c,..._0x4d55af},'args':_0x1f3ae?[_0x1f3ae]:[],'tdx':_0x16a628});gracefulExit(_0x571cb2);}),agentSyncCmd['command'](a2_0x360f70(0x257))[a2_0x360f70(0x390)](a2_0x360f70(0x187))['option'](a2_0x360f70(0x41c),a2_0x360f70(0x39a))[a2_0x360f70(0x2e6)](a2_0x360f70(0x3b5),a2_0x360f70(0x357))[a2_0x360f70(0x2e6)](a2_0x360f70(0x1dd),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x360f70(0x2e6)](a2_0x360f70(0x227),a2_0x360f70(0x1e7))['option']('--reeval',a2_0x360f70(0x388))[a2_0x360f70(0x40a)](async(_0x5a63f4,_0x41aa45)=>{const _0x2bd890=a2_0x360f70,_0x2ce87b=new AgentTestCommand(),_0x4edc53=program[_0x2bd890(0x186)](),_0x1b6e84=await createTDXInstance(_0x4edc53),_0x5ecfbb=await _0x2ce87b[_0x2bd890(0x3bf)]({'options':{..._0x4edc53,..._0x41aa45},'args':_0x5a63f4?[_0x5a63f4]:[],'tdx':_0x1b6e84});gracefulExit(_0x5ecfbb);}),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x2d0))[a2_0x360f70(0x390)](a2_0x360f70(0x3c1))[a2_0x360f70(0x40a)](llmAgentListAction),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x208))[a2_0x360f70(0x390)](a2_0x360f70(0x417))['action'](async(_0x268b99,_0x37b8f3)=>{const _0x1a826b=a2_0x360f70,_0x392361=new LLMAgentShowCommand(),_0x2345f8=program[_0x1a826b(0x186)](),_0x5d8383=await createTDXInstance(_0x2345f8),_0x30dd9a=await _0x392361[_0x1a826b(0x3bf)]({'options':{..._0x2345f8,..._0x37b8f3},'args':[_0x268b99],'tdx':_0x5d8383});gracefulExit(_0x30dd9a);}),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x22b))[a2_0x360f70(0x390)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x360f70(0x2e6)](a2_0x360f70(0x3f4),a2_0x360f70(0x1b5))[a2_0x360f70(0x2e6)](a2_0x360f70(0x28c),a2_0x360f70(0x37b),a2_0x360f70(0x294))[a2_0x360f70(0x2e6)](a2_0x360f70(0x2ff),'Starter\x20message')[a2_0x360f70(0x2e6)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x360f70(0x2e6)](a2_0x360f70(0x2ce),a2_0x360f70(0x333),a2_0x360f70(0x2d2))[a2_0x360f70(0x40a)](async(_0x5d4e31,_0x433f4a)=>{const _0x4e38bb=a2_0x360f70,_0x2725a2=new LLMAgentCreateCommand(),_0x3a6f09=program[_0x4e38bb(0x186)](),_0x5a2921=await createTDXInstance(_0x3a6f09),_0xd0a8c7=await _0x2725a2[_0x4e38bb(0x3bf)]({'options':{..._0x3a6f09,..._0x433f4a},'args':[_0x5d4e31],'tdx':_0x5a2921});gracefulExit(_0xd0a8c7);}),agentSyncCmd[a2_0x360f70(0x339)]('update\x20<agent-name>')['description']('Update\x20an\x20existing\x20agent')[a2_0x360f70(0x2e6)](a2_0x360f70(0x26b),a2_0x360f70(0x36d))[a2_0x360f70(0x2e6)]('--prompt\x20<text>',a2_0x360f70(0x213))[a2_0x360f70(0x2e6)]('--description\x20<text>',a2_0x360f70(0x330))[a2_0x360f70(0x2e6)]('--starter-message\x20<text>',a2_0x360f70(0x37a))[a2_0x360f70(0x40a)](async(_0x38e2d5,_0x3c1003)=>{const _0x198885=a2_0x360f70,_0x4ce9c5=new LLMAgentUpdateCommand(),_0x1b6b82=program[_0x198885(0x186)](),_0x11c123=await createTDXInstance(_0x1b6b82),_0x166e25=await _0x4ce9c5[_0x198885(0x3bf)]({'options':{..._0x1b6b82,..._0x3c1003},'args':[_0x38e2d5],'tdx':_0x11c123});gracefulExit(_0x166e25);}),agentSyncCmd[a2_0x360f70(0x339)](a2_0x360f70(0x344))[a2_0x360f70(0x390)]('Delete\x20an\x20agent')[a2_0x360f70(0x40a)](async(_0x276833,_0x36247c)=>{const _0x27c4e1=a2_0x360f70,_0x176298=new LLMAgentDeleteCommand(),_0x2b01e0=program[_0x27c4e1(0x186)](),_0x5ddf33=await createTDXInstance(_0x2b01e0),_0x1f57a7=await _0x176298[_0x27c4e1(0x3bf)]({'options':{..._0x2b01e0,..._0x36247c},'args':[_0x276833],'tdx':_0x5ddf33});gracefulExit(_0x1f57a7);}),program[a2_0x360f70(0x339)](a2_0x360f70(0x1b4),{'hidden':!![]})[a2_0x360f70(0x40a)](()=>{function _0x5b1893(_0x2d9646,_0x183cb6){const _0xa0f502=a2_0x4908,_0x30fc69=[];for(const _0x49dfc2 of _0x2d9646['commands']){if(_0x49dfc2[_0xa0f502(0x310)])continue;const _0x4787db=_0x183cb6?_0x183cb6+'\x20'+_0x49dfc2[_0xa0f502(0x218)]():_0x49dfc2[_0xa0f502(0x218)](),_0x380cb5=_0x4787db[_0xa0f502(0x318)]('\x20')[0x0],_0x3ef7e6=COMMAND_CATEGORIES['find'](_0x3dccfa=>_0x3dccfa['commands']['includes'](_0x380cb5)),_0xf9b4b6=_0x3ef7e6?.[_0xa0f502(0x218)]??'';if(_0x49dfc2['commands'][_0xa0f502(0x157)]>0x0)_0x30fc69[_0xa0f502(0x1d1)](..._0x5b1893(_0x49dfc2,_0x4787db));else{const _0x38bfd2=(_0x49dfc2[_0xa0f502(0x358)]||[])['map'](_0x569bcb=>{const _0x42454f=_0xa0f502,_0x4c0459=_0x569bcb[_0x42454f(0x2b3)]?_0x569bcb[_0x42454f(0x218)]()+_0x42454f(0x286):_0x569bcb[_0x42454f(0x218)]();return _0x569bcb[_0x42454f(0x178)]?'<'+_0x4c0459+'>':'['+_0x4c0459+']';})['join']('\x20'),_0x155149=_0x49dfc2[_0xa0f502(0x3e1)][_0xa0f502(0x1f4)](_0x18864a=>!_0x18864a['hidden']&&_0x18864a['long']!==_0xa0f502(0x297))[_0xa0f502(0x3f7)](_0x170bc7=>({'flags':_0x170bc7[_0xa0f502(0x3b2)],'description':_0x170bc7['description']}));_0x30fc69[_0xa0f502(0x1d1)]({'name':_0x4787db,'description':_0x49dfc2[_0xa0f502(0x390)](),'group':_0xf9b4b6,'usage':_0x38bfd2,'options':_0x155149});}}return _0x30fc69;}console['log'](JSON['stringify'](_0x5b1893(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x5e015d=a2_0x360f70,_0x29661f=!process[_0x5e015d(0x1fe)]['slice'](0x2)['length'];showBriefHelp=_0x29661f,program['parse'](process[_0x5e015d(0x1fe)]);_0x29661f&&program[_0x5e015d(0x1ec)]();const _0x20075e=process[_0x5e015d(0x1fe)][0x2]===_0x5e015d(0x2a6);if(process['stderr'][_0x5e015d(0x2fc)]&&process[_0x5e015d(0x1fe)]['length']>0x2&&!isDevVersion()&&!_0x20075e){const _0xb10ab2=loadReleaseChannel();checkForUpdate(currentVersion,_0xb10ab2)['then'](_0x1b0f14=>{_0x1b0f14&&displayUpdateNotification(_0x1b0f14);})[_0x5e015d(0x395)](()=>{});}}
1
+ const a2_0x30593f=a2_0x5591;(function(_0x16eb6f,_0x4d4147){const _0x31da9f=a2_0x5591,_0x34f03d=_0x16eb6f();while(!![]){try{const _0x589840=parseInt(_0x31da9f(0x32b))/0x1*(parseInt(_0x31da9f(0x2c2))/0x2)+parseInt(_0x31da9f(0x48c))/0x3+parseInt(_0x31da9f(0x454))/0x4+parseInt(_0x31da9f(0x252))/0x5+-parseInt(_0x31da9f(0x26d))/0x6*(-parseInt(_0x31da9f(0x463))/0x7)+parseInt(_0x31da9f(0x333))/0x8*(parseInt(_0x31da9f(0x38c))/0x9)+-parseInt(_0x31da9f(0x43c))/0xa*(parseInt(_0x31da9f(0x464))/0xb);if(_0x589840===_0x4d4147)break;else _0x34f03d['push'](_0x34f03d['shift']());}catch(_0x13d6e0){_0x34f03d['push'](_0x34f03d['shift']());}}}(a2_0x5ac2,0x38d0e));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,EngageAlwaysOnCampaignsCommand,EngageAlwaysOnCampaignShowCommand,EngageAlwaysOnCampaignCreateCommand,EngageAlwaysOnCampaignUpdateCommand,EngageAlwaysOnCampaignDeleteCommand,EngageAlwaysOnCampaignLaunchCommand,EngageAlwaysOnCampaignPauseCommand,EngageAlwaysOnCampaignResumeCommand,EngageAlwaysOnCampaignFinishCommand,EngageAlwaysOnCampaignDuplicateCommand,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';function a2_0x5591(_0x1ef5cc,_0x3a5019){_0x1ef5cc=_0x1ef5cc-0x1dd;const _0x5ac290=a2_0x5ac2();let _0x559180=_0x5ac290[_0x1ef5cc];return _0x559180;}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{AuthLoginCommand}from'./commands/auth-login-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'][a2_0x30593f(0x3a7)](a2_0x30593f(0x2e9))){let versionOutput='tdx\x20'+currentVersion;buildInfo[a2_0x30593f(0x3c0)]&&!currentVersion[a2_0x30593f(0x3a7)](buildInfo[a2_0x30593f(0x3c0)])&&(versionOutput+='\x20('+buildInfo[a2_0x30593f(0x3c0)]+')'),buildInfo[a2_0x30593f(0x482)]&&(versionOutput+=a2_0x30593f(0x362)+buildInfo[a2_0x30593f(0x482)]),console[a2_0x30593f(0x23d)](versionOutput),process['exit'](0x0);}const program=new Command();export function mergeCommandOptions(_0x3c2319,_0x73b875){const _0x21e5ce=a2_0x30593f,_0x5ed203={..._0x3c2319};for(const [_0xcf510d,_0xf74a0]of Object[_0x21e5ce(0x27b)](_0x73b875)){_0xf74a0!==undefined&&(_0x5ed203[_0xcf510d]=_0xf74a0);}return _0x5ed203;}let showBriefHelp=![],description=a2_0x30593f(0x370);buildInfo[a2_0x30593f(0x3c0)]&&!currentVersion['includes'](buildInfo[a2_0x30593f(0x3c0)])?description+=',\x20version\x20'+currentVersion+'\x20('+buildInfo[a2_0x30593f(0x3c0)]+')':description+=a2_0x30593f(0x290)+currentVersion;program[a2_0x30593f(0x332)](a2_0x30593f(0x257))['description'](description),program[a2_0x30593f(0x47b)](a2_0x30593f(0x1dd),a2_0x30593f(0x275))[a2_0x30593f(0x47b)]('-p,\x20--profile\x20<name>',a2_0x30593f(0x369))[a2_0x30593f(0x47b)](a2_0x30593f(0x44d),a2_0x30593f(0x1ed),a2_0x30593f(0x398))['option'](a2_0x30593f(0x42c),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3eb),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')[a2_0x30593f(0x47b)]('--json','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x30593f(0x47b)](a2_0x30593f(0x1ea),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')['option'](a2_0x30593f(0x25c),a2_0x30593f(0x218))[a2_0x30593f(0x47b)](a2_0x30593f(0x3c5),a2_0x30593f(0x212))[a2_0x30593f(0x47b)](a2_0x30593f(0x356),a2_0x30593f(0x1fe))[a2_0x30593f(0x47b)]('--color',a2_0x30593f(0x3d4),![])[a2_0x30593f(0x47b)](a2_0x30593f(0x430),a2_0x30593f(0x37b),![])[a2_0x30593f(0x47b)](a2_0x30593f(0x201),'Enable\x20verbose\x20logging',![])[a2_0x30593f(0x47b)](a2_0x30593f(0x3a1),a2_0x30593f(0x3aa))[a2_0x30593f(0x47b)](a2_0x30593f(0x373),a2_0x30593f(0x4a4))[a2_0x30593f(0x47b)](a2_0x30593f(0x22a),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x30593f(0x427),a2_0x30593f(0x21b),![])['option']('-y,\x20--yes',a2_0x30593f(0x33e),![])[a2_0x30593f(0x47b)](a2_0x30593f(0x3d9),a2_0x30593f(0x3c1))['option']('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3b0),a2_0x30593f(0x3e5)),program[a2_0x30593f(0x469)]({'formatHelp':(_0x578f4c,_0x3a8b74)=>{const _0x365465=a2_0x30593f,_0x1e85a3=_0x3a8b74[_0x365465(0x295)](_0x578f4c,_0x3a8b74),_0x4a1e51=0x2,_0x25ee6e=0x2;function _0x2832ef(_0x5a5e17){const _0x442105=_0x5a5e17;return!!(_0x442105['_hidden']||_0x442105['hidden']);}function _0x164275(_0x462f02,_0x1af13b){const _0x4dbb79=_0x365465;if(_0x1af13b){const _0x4f3600=''+_0x462f02[_0x4dbb79(0x3a5)](_0x1e85a3+_0x25ee6e)+_0x1af13b;return _0x4f3600;}return _0x462f02;}function _0x2036d4(_0x180e48){const _0x275d1a=_0x365465;return _0x180e48['join']('\x0a')[_0x275d1a(0x345)](/^/gm,'\x20'[_0x275d1a(0x3fb)](_0x4a1e51));}const _0x1d7002=[];_0x1d7002[_0x365465(0x2a6)](_0x365465(0x321)+_0x3a8b74['commandUsage'](_0x578f4c));const _0x185914=_0x3a8b74[_0x365465(0x28d)](_0x578f4c);_0x185914&&(_0x1d7002['push'](''),_0x1d7002['push'](_0x185914));const _0x4b794a=_0x578f4c[_0x365465(0x331)][_0x365465(0x215)](_0x35c5c8=>!_0x2832ef(_0x35c5c8));if(_0x4b794a[_0x365465(0x475)]>0x0){if(_0x578f4c[_0x365465(0x332)]()===_0x365465(0x257)){const _0x4e1827=_0x578f4c[_0x365465(0x449)](),_0x4c6792=!_0x4e1827[_0x365465(0x340)]&&process[_0x365465(0x2f9)][_0x365465(0x436)],_0x33ae9b=COMMAND_CATEGORIES,_0x300c79=(_0x20ef36,_0x2960a9)=>_0x4c6792?_0x2960a9(_0x20ef36):_0x20ef36,_0x29063f=new Map();_0x4b794a[_0x365465(0x43b)](_0x1cdcbe=>{const _0x1b1b39=_0x365465;_0x29063f[_0x1b1b39(0x491)](_0x1cdcbe['name'](),_0x1cdcbe);}),_0x33ae9b[_0x365465(0x43b)](_0x2a5737=>{const _0x43912d=_0x365465,_0x1778b8=_0x2a5737['commands'][_0x43912d(0x339)](_0x1e4d81=>_0x29063f[_0x43912d(0x388)](_0x1e4d81)??[]);if(_0x1778b8[_0x43912d(0x475)]>0x0){_0x1d7002[_0x43912d(0x2a6)](''),_0x1d7002[_0x43912d(0x2a6)](_0x300c79(_0x2a5737[_0x43912d(0x332)]+':',_0x2a5737['colorFn']));const _0x2f704e=_0x1778b8[_0x43912d(0x446)](_0x1913e5=>{const _0x43634c=_0x43912d,_0x35cd64=_0x3a8b74['subcommandTerm'](_0x1913e5),_0x6689c=_0x3a8b74[_0x43634c(0x453)](_0x1913e5);return _0x164275(_0x35cd64,_0x6689c);});_0x1d7002[_0x43912d(0x2a6)](_0x2036d4(_0x2f704e));}}),_0x1d7002[_0x365465(0x2a6)](''),_0x1d7002[_0x365465(0x2a6)](_0x365465(0x486));}else{const _0x1031ed=_0x4b794a['map'](_0x4ce18b=>{const _0x452f21=_0x365465,_0x529b0e=_0x3a8b74[_0x452f21(0x3f0)](_0x4ce18b),_0x5f4f80=_0x3a8b74[_0x452f21(0x453)](_0x4ce18b);return _0x164275(_0x529b0e,_0x5f4f80);});_0x1d7002[_0x365465(0x2a6)](''),_0x1d7002[_0x365465(0x2a6)](_0x365465(0x3b1)),_0x1d7002[_0x365465(0x2a6)](_0x2036d4(_0x1031ed));}}if(showBriefHelp&&_0x578f4c[_0x365465(0x332)]()===_0x365465(0x257))_0x1d7002[_0x365465(0x2a6)](''),_0x1d7002[_0x365465(0x2a6)](_0x365465(0x3cb));else{const _0x5de2fa=_0x578f4c[_0x365465(0x2dc)][_0x365465(0x215)](_0x50bfd2=>!_0x2832ef(_0x50bfd2));if(_0x5de2fa[_0x365465(0x475)]>0x0){const _0x56785b=_0x5de2fa[_0x365465(0x446)](_0x1c7132=>{const _0x4a903b=_0x365465,_0xc5af=_0x3a8b74[_0x4a903b(0x35a)](_0x1c7132),_0x5c79bc=_0x3a8b74[_0x4a903b(0x3b8)](_0x1c7132);return _0x164275(_0xc5af,_0x5c79bc);});_0x1d7002['push'](''),_0x1d7002[_0x365465(0x2a6)]('Options:'),_0x1d7002['push'](_0x2036d4(_0x56785b));}}const _0x39b911=(_0x578f4c['registeredArguments']||[])['filter'](_0x510957=>!_0x2832ef(_0x510957));if(_0x39b911[_0x365465(0x475)]>0x0){const _0x5cd2db=_0x39b911['map'](_0x184c9d=>{const _0xdc87f3=_0x365465,_0x277e73=_0x3a8b74[_0xdc87f3(0x303)](_0x184c9d),_0xcc1ef3=_0x3a8b74['argumentDescription'](_0x184c9d);return _0x164275(_0x277e73,_0xcc1ef3);});_0x1d7002[_0x365465(0x2a6)](''),_0x1d7002[_0x365465(0x2a6)](_0x365465(0x30c)),_0x1d7002[_0x365465(0x2a6)](_0x2036d4(_0x5cd2db));}return _0x1d7002[_0x365465(0x3b2)]('\x0a')+'\x0a';},'subcommandTerm':_0xefac06=>{const _0x4e3c77=a2_0x30593f,_0x3ca04b=(_0xefac06[_0x4e3c77(0x41b)]||[])['map'](_0x11240=>_0x11240['required']?'<'+_0x11240[_0x4e3c77(0x332)]()+'>':'['+_0x11240['name']()+']')[_0x4e3c77(0x3b2)]('\x20'),_0x36cef1=_0xefac06['aliases'](),_0x106e63=_0x36cef1['length']>0x0?_0xefac06[_0x4e3c77(0x332)]()+',\x20'+_0x36cef1['join'](',\x20'):_0xefac06[_0x4e3c77(0x332)]();return _0x3ca04b?_0x106e63+'\x20'+_0x3ca04b:_0x106e63;}}),program['hook'](a2_0x30593f(0x3ed),_0x86c4b4=>{const _0x263b52=a2_0x30593f,_0x496c94=_0x86c4b4[_0x263b52(0x449)]();if(_0x496c94[_0x263b52(0x2a1)]){const _0x6be1f0=resolve(_0x496c94['directory']),_0x34b679=_0x6be1f0!==_0x496c94[_0x263b52(0x2a1)]?_0x263b52(0x42a)+_0x6be1f0+')':'';if(!existsSync(_0x6be1f0))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x263b52(0x433)+_0x496c94[_0x263b52(0x2a1)]+_0x34b679,undefined,{'helpText':'Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.'});const _0x2cc907=statSync(_0x6be1f0);if(!_0x2cc907[_0x263b52(0x3ac)]())throw new SDKError(ErrorCode[_0x263b52(0x46c)],_0x263b52(0x3a0)+_0x496c94[_0x263b52(0x2a1)]+_0x34b679,undefined,{'helpText':_0x263b52(0x47a)});process['chdir'](_0x6be1f0);}if(!_0x496c94[_0x263b52(0x29e)]){if(_0x496c94['table'])_0x496c94[_0x263b52(0x29e)]='table';else{if(_0x496c94[_0x263b52(0x3d1)])_0x496c94[_0x263b52(0x29e)]=_0x263b52(0x3d1);else{if(_0x496c94[_0x263b52(0x309)])_0x496c94[_0x263b52(0x29e)]='jsonl';else _0x496c94[_0x263b52(0x478)]&&(_0x496c94['format']='tsv');}}}if(_0x496c94['trace'])_0x496c94[_0x263b52(0x1f6)]=LogLevel['TRACE'];else{if(_0x496c94[_0x263b52(0x428)])_0x496c94['logLevel']=LogLevel[_0x263b52(0x204)];else _0x496c94[_0x263b52(0x1f6)]===undefined&&(_0x496c94[_0x263b52(0x1f6)]=LogLevel['INFO']);}});async function createTDXInstance(_0x2b5900){const _0x1a9f5e=a2_0x30593f,_0x28eb4f=await GlobalContext[_0x1a9f5e(0x2aa)](_0x2b5900);return _0x28eb4f[_0x1a9f5e(0x3f4)](_0x2b5900),TDX[_0x1a9f5e(0x261)]({'site':_0x28eb4f[_0x1a9f5e(0x2bc)],'apiKey':_0x28eb4f[_0x1a9f5e(0x314)],'accessToken':_0x28eb4f[_0x1a9f5e(0x320)],'logLevel':_0x28eb4f[_0x1a9f5e(0x1f6)],'profile':_0x28eb4f[_0x1a9f5e(0x31d)]});}const databaseCmd=program['command'](a2_0x30593f(0x264))[a2_0x30593f(0x46a)]('db')[a2_0x30593f(0x33c)]('Database\x20management\x20commands'),databaseListAction=async(_0x168ba7,_0x4a199b)=>{const _0x2a4d63=a2_0x30593f,_0xbff8f7=new DatabasesCommand(),_0x3cb15e=program[_0x2a4d63(0x449)](),_0x43c859=await createTDXInstance(_0x3cb15e),_0x21b1d1=await _0xbff8f7[_0x2a4d63(0x1f5)]({'options':{..._0x3cb15e,..._0x4a199b},'args':_0x168ba7?[_0x168ba7]:[],'tdx':_0x43c859});gracefulExit(_0x21b1d1);};databaseCmd[a2_0x30593f(0x414)]('list\x20[pattern]')[a2_0x30593f(0x33c)](a2_0x30593f(0x211))['action'](databaseListAction),program[a2_0x30593f(0x414)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x30593f(0x33c)](a2_0x30593f(0x49e))[a2_0x30593f(0x2f7)](databaseListAction),program[a2_0x30593f(0x414)](a2_0x30593f(0x432))[a2_0x30593f(0x33c)](a2_0x30593f(0x3cc))[a2_0x30593f(0x47b)](a2_0x30593f(0x29b),a2_0x30593f(0x3b7))[a2_0x30593f(0x47b)](a2_0x30593f(0x266),'Start\x20a\x20new\x20chat\x20session')[a2_0x30593f(0x47b)](a2_0x30593f(0x38e),a2_0x30593f(0x305))[a2_0x30593f(0x47b)](a2_0x30593f(0x421),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x30593f(0x2f7)](async(_0xf47218,_0x3911f4)=>{const _0xc0261f=a2_0x30593f,_0x28d077=program[_0xc0261f(0x449)](),_0x37a575=await createTDXInstance(_0x28d077);if(_0xf47218[0x0]===_0xc0261f(0x261)){const _0x141edf=new ChatCreateCommand();gracefulExit(await _0x141edf[_0xc0261f(0x1f5)]({'options':{..._0x28d077,..._0x3911f4},'args':_0xf47218[_0xc0261f(0x21a)](0x1),'tdx':_0x37a575}));return;}const _0x5defc5=new ChatCommand(),_0x4ac933=await _0x5defc5['run']({'options':{..._0x28d077,..._0x3911f4},'args':_0xf47218,'tdx':_0x37a575});gracefulExit(_0x4ac933);});const apiCmd=program[a2_0x30593f(0x414)]('api\x20[endpoint]')[a2_0x30593f(0x348)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x30593f(0x499)](a2_0x30593f(0x23b),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')['option'](a2_0x30593f(0x49a),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x30593f(0x30a))[a2_0x30593f(0x47b)](a2_0x30593f(0x25e),a2_0x30593f(0x3c3))[a2_0x30593f(0x47b)](a2_0x30593f(0x355),a2_0x30593f(0x42f))[a2_0x30593f(0x47b)](a2_0x30593f(0x465),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x502d57,_0x3e4412)=>{return _0x3e4412?[..._0x3e4412,_0x502d57]:[_0x502d57];})[a2_0x30593f(0x47b)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x5ef841,_0x5746b7)=>{const _0x2c0407=a2_0x30593f;if(!_0x5ef841){apiCmd[_0x2c0407(0x2df)]();return;}const _0x4389da=new ApiCommand(),_0x357f86=program[_0x2c0407(0x449)](),_0x105d36=await createTDXInstance(_0x357f86),_0x336ef2=await _0x4389da[_0x2c0407(0x1f5)]({'options':{..._0x357f86,..._0x5746b7},'args':[_0x5ef841],'tdx':_0x105d36});gracefulExit(_0x336ef2);});program[a2_0x30593f(0x414)](a2_0x30593f(0x2b6))[a2_0x30593f(0x33c)](a2_0x30593f(0x341))[a2_0x30593f(0x499)](a2_0x30593f(0x23b),a2_0x30593f(0x216))[a2_0x30593f(0x2f7)](async _0xbab661=>{const _0x21e2f0=a2_0x30593f,_0x169b2c=new MCPCommand(),_0x349a25=program[_0x21e2f0(0x449)](),_0x5352b1=await createTDXInstance(_0x349a25),_0x1d820d=await _0x169b2c[_0x21e2f0(0x1f5)]({'options':{..._0x349a25,..._0xbab661},'args':[],'tdx':_0x5352b1});gracefulExit(_0x1d820d);});const tableCmd=program['command']('table')[a2_0x30593f(0x33c)]('Table\x20management\x20commands'),tableListAction=async(_0x37ff7f,_0x16787b)=>{const _0x4f255d=a2_0x30593f,_0x27891e=new TablesCommand(),_0x3bc0ea=program[_0x4f255d(0x449)](),_0x1e6a6a=await createTDXInstance(_0x3bc0ea);_0x16787b['in']&&(_0x16787b[_0x4f255d(0x264)]=_0x16787b['in']);const _0x4a2928=await _0x27891e[_0x4f255d(0x1f5)]({'options':{..._0x3bc0ea,..._0x16787b},'args':_0x37ff7f?[_0x37ff7f]:[],'tdx':_0x1e6a6a});gracefulExit(_0x4a2928);};tableCmd['command'](a2_0x30593f(0x1fc))[a2_0x30593f(0x33c)](a2_0x30593f(0x344))['option'](a2_0x30593f(0x48a),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x30593f(0x47b)]('--in\x20<database>',a2_0x30593f(0x2f8))[a2_0x30593f(0x2f7)](tableListAction),program[a2_0x30593f(0x414)](a2_0x30593f(0x33f),{'hidden':!![]})['description'](a2_0x30593f(0x393))[a2_0x30593f(0x47b)]('-d,\x20--database\x20<database>',a2_0x30593f(0x31e))[a2_0x30593f(0x47b)](a2_0x30593f(0x379),a2_0x30593f(0x2f8))['action'](tableListAction),program['command'](a2_0x30593f(0x2c3))[a2_0x30593f(0x33c)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')['option'](a2_0x30593f(0x48a),a2_0x30593f(0x209))['option'](a2_0x30593f(0x379),a2_0x30593f(0x2f8))[a2_0x30593f(0x2f7)](async(_0x1563d9,_0x3ab3e7)=>{const _0x49295d=a2_0x30593f,_0x29b128=new ShowCommand(),_0x3b355a=program[_0x49295d(0x449)](),_0x5a266b=await createTDXInstance(_0x3b355a);_0x3ab3e7['in']&&(_0x3ab3e7[_0x49295d(0x264)]=_0x3ab3e7['in']);const _0x267a26=await _0x29b128[_0x49295d(0x1f5)]({'options':{..._0x3b355a,..._0x3ab3e7},'args':_0x1563d9?[_0x1563d9]:[],'tdx':_0x5a266b});gracefulExit(_0x267a26);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x2ab))['alias'](a2_0x30593f(0x3d0))[a2_0x30593f(0x33c)]('Describe\x20table\x20schema')['option']('-d,\x20--database\x20<database>',a2_0x30593f(0x209))[a2_0x30593f(0x47b)](a2_0x30593f(0x379),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x314282,_0x15f16d)=>{const _0x411fec=a2_0x30593f,_0x511294=new DescribeCommand(),_0x4423c5=program[_0x411fec(0x449)](),_0x21e5a4=await createTDXInstance(_0x4423c5);_0x15f16d['in']&&(_0x15f16d[_0x411fec(0x264)]=_0x15f16d['in']);const _0x2b9c9b=await _0x511294[_0x411fec(0x1f5)]({'options':{..._0x4423c5,..._0x15f16d},'args':_0x314282?[_0x314282]:[],'tdx':_0x21e5a4});gracefulExit(_0x2b9c9b);}),program['command'](a2_0x30593f(0x41d))[a2_0x30593f(0x33c)](a2_0x30593f(0x2e6))['option']('-d,\x20--database\x20<database>',a2_0x30593f(0x3fc))[a2_0x30593f(0x47b)](a2_0x30593f(0x379),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x30593f(0x47b)]('--catalog\x20<catalog>',a2_0x30593f(0x48d))['option'](a2_0x30593f(0x355),'Read\x20SQL\x20query\x20from\x20file')[a2_0x30593f(0x47b)](a2_0x30593f(0x3d5),'Maximum\x20rows\x20to\x20display')['action'](async(_0x258b83,_0x33c1fe)=>{const _0x1b437a=a2_0x30593f,_0x26e991=new QueryCommand(),_0x19bd0e=program[_0x1b437a(0x449)](),_0x30d5e6=await createTDXInstance(_0x19bd0e);_0x33c1fe['in']&&(_0x33c1fe['database']=_0x33c1fe['in']);const _0x576bd7=await _0x26e991['run']({'options':mergeCommandOptions(_0x19bd0e,_0x33c1fe),'args':_0x258b83?[_0x258b83]:[],'tdx':_0x30d5e6});gracefulExit(_0x576bd7);});const segmentCmd=program[a2_0x30593f(0x414)](a2_0x30593f(0x27f))[a2_0x30593f(0x46a)]('sg')[a2_0x30593f(0x33c)](a2_0x30593f(0x377)),segmentListAction=async(_0x30d040,_0x3d827b)=>{const _0x42d0ec=a2_0x30593f,_0x2d0917=new SegmentsCommand(),_0x5b0040=program[_0x42d0ec(0x449)](),_0x53956b=await createTDXInstance(_0x5b0040),_0x585fda=await _0x2d0917[_0x42d0ec(0x1f5)]({'options':{..._0x5b0040,..._0x3d827b},'args':_0x30d040?[_0x30d040]:[],'tdx':_0x53956b});gracefulExit(_0x585fda);};segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x250))[a2_0x30593f(0x33c)](a2_0x30593f(0x2e8))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e9),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x30593f(0x47b)](a2_0x30593f(0x488),a2_0x30593f(0x39f),'10')['action'](segmentListAction),program[a2_0x30593f(0x414)]('segments\x20[path]',{'hidden':!![]})[a2_0x30593f(0x33c)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3e9),a2_0x30593f(0x3cd))[a2_0x30593f(0x47b)](a2_0x30593f(0x488),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x30593f(0x2f7)](segmentListAction),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x254),{'hidden':!![]})['description']('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x30593f(0x2f7)](async(_0x57594e,_0x576493)=>{const _0x360053=a2_0x30593f,_0x565d66=new SegmentUseCommand(),_0x5b053f=program[_0x360053(0x449)](),_0x2a690b=await createTDXInstance(_0x5b053f),_0x368c93=await _0x565d66[_0x360053(0x1f5)]({'options':{..._0x5b053f,..._0x576493},'args':[_0x57594e],'tdx':_0x2a690b});gracefulExit(_0x368c93);});const segmentViewAction=async(_0x243d7a,_0x445997)=>{const _0x2010e6=a2_0x30593f,_0xe67849=new SegmentViewCommand(),_0x41d33f=program[_0x2010e6(0x449)](),_0x49c767=await createTDXInstance(_0x41d33f),_0x50a4a8=await _0xe67849[_0x2010e6(0x1f5)]({'options':{..._0x41d33f,..._0x445997},'args':_0x243d7a?[_0x243d7a]:[],'tdx':_0x49c767});gracefulExit(_0x50a4a8);};segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2a5))[a2_0x30593f(0x33c)](a2_0x30593f(0x44e))[a2_0x30593f(0x47b)](a2_0x30593f(0x43e),a2_0x30593f(0x35b))[a2_0x30593f(0x2f7)](segmentViewAction),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x285),{'hidden':!![]})[a2_0x30593f(0x46a)]('describe')[a2_0x30593f(0x47b)](a2_0x30593f(0x43e),a2_0x30593f(0x35b))[a2_0x30593f(0x33c)](a2_0x30593f(0x284))[a2_0x30593f(0x2f7)](segmentViewAction),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x349))[a2_0x30593f(0x33c)](a2_0x30593f(0x277))[a2_0x30593f(0x2f7)](async(_0x5f0217,_0x48a755)=>{const _0x2dc0cf=a2_0x30593f,_0x1f755c=new SegmentDescCommand(),_0x1578b1=program['opts'](),_0x5f2b3b=await createTDXInstance(_0x1578b1),_0x422d34=await _0x1f755c[_0x2dc0cf(0x1f5)]({'options':{..._0x1578b1,..._0x48a755},'args':_0x5f0217?[_0x5f0217]:[],'tdx':_0x5f2b3b});gracefulExit(_0x422d34);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3a8))[a2_0x30593f(0x33c)](a2_0x30593f(0x1f9))['action'](async(_0x36c80a,_0x3ae23d)=>{const _0x5ae86c=a2_0x30593f,_0x3c735b=new SegmentShowCommand(),_0x2c1263=program[_0x5ae86c(0x449)](),_0x3fbd26=await createTDXInstance(_0x2c1263),_0x2960b5=await _0x3c735b[_0x5ae86c(0x1f5)]({'options':{..._0x2c1263,..._0x3ae23d},'args':_0x36c80a?[_0x36c80a]:[],'tdx':_0x3fbd26});gracefulExit(_0x2960b5);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x27e),{'hidden':!![]})[a2_0x30593f(0x33c)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x30593f(0x2f7)](async(_0x37977a,_0x3f2391)=>{const _0x3fe8ee=a2_0x30593f,_0xfb04bb=new SegmentFolderListCommand(),_0x3e222e=program[_0x3fe8ee(0x449)](),_0x55929d=await createTDXInstance(_0x3e222e),_0x1726b4=await _0xfb04bb[_0x3fe8ee(0x1f5)]({'options':{..._0x3e222e,..._0x3f2391},'args':[_0x37977a],'tdx':_0x55929d});gracefulExit(_0x1726b4);});const folderCmd=segmentCmd['command'](a2_0x30593f(0x359),{'hidden':!![]})[a2_0x30593f(0x33c)](a2_0x30593f(0x41a));folderCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1e9))[a2_0x30593f(0x33c)](a2_0x30593f(0x34e))[a2_0x30593f(0x2f7)](async(_0xc72df1,_0x6300c7)=>{const _0x8ef93a=a2_0x30593f,_0x33121e=new SegmentFolderShowCommand(),_0x4e7e0b=program[_0x8ef93a(0x449)](),_0x2b20fc=await createTDXInstance(_0x4e7e0b),_0x15fb6d=await _0x33121e['run']({'options':{..._0x4e7e0b,..._0x6300c7},'args':[_0xc72df1],'tdx':_0x2b20fc});gracefulExit(_0x15fb6d);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3f8))[a2_0x30593f(0x33c)](a2_0x30593f(0x37d))[a2_0x30593f(0x47b)]('--path\x20<file-path>','YAML\x20file\x20path\x20for\x20unpushed\x20segment')[a2_0x30593f(0x2f7)](async(_0x2e6e76,_0x172298)=>{const _0x188dd8=a2_0x30593f,_0x29027=new SegmentSQLCommand(),_0x2400c9=program[_0x188dd8(0x449)](),_0x3afe2d=await createTDXInstance(_0x2400c9),_0x2a874a=await _0x29027[_0x188dd8(0x1f5)]({'options':{..._0x2400c9,..._0x172298},'args':_0x2e6e76?[_0x2e6e76]:[],'tdx':_0x3afe2d});gracefulExit(_0x2a874a);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x492))[a2_0x30593f(0x33c)](a2_0x30593f(0x41f))['action'](async(_0x38ac5d,_0x142089)=>{const _0x9ade6b=a2_0x30593f,_0xd34a73=new SegmentFieldsCommand(),_0x3a45cc=program['opts'](),_0x323711=await createTDXInstance(_0x3a45cc),_0x2deba8=await _0xd34a73[_0x9ade6b(0x1f5)]({'options':{..._0x3a45cc,..._0x142089},'args':_0x38ac5d?[_0x38ac5d]:[],'tdx':_0x323711});gracefulExit(_0x2deba8);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2d3))['description'](a2_0x30593f(0x294))[a2_0x30593f(0x47b)]('--dry-run',a2_0x30593f(0x1f8))['action'](async(_0x2cfe0a,_0x5c62aa)=>{const _0x4243f5=a2_0x30593f,_0x95d86c=new SegmentPullCommand(),_0x5c2a23=program[_0x4243f5(0x449)](),_0x5d1474=await createTDXInstance(_0x5c2a23),_0x15e059=await _0x95d86c[_0x4243f5(0x1f5)]({'options':{..._0x5c2a23,..._0x5c62aa},'args':_0x2cfe0a?[_0x2cfe0a]:[],'tdx':_0x5d1474});gracefulExit(_0x15e059);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x282))['description'](a2_0x30593f(0x23a))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x1f8))[a2_0x30593f(0x47b)](a2_0x30593f(0x407),a2_0x30593f(0x410))[a2_0x30593f(0x2f7)](async(_0x377333,_0x289014)=>{const _0x2c1bcc=a2_0x30593f,_0x2cf876=new SegmentPushCommand(),_0x3afa81=program[_0x2c1bcc(0x449)](),_0xbfc15a=await createTDXInstance(_0x3afa81),_0x52112b=await _0x2cf876[_0x2c1bcc(0x1f5)]({'options':{..._0x3afa81,..._0x289014},'args':_0x377333?[_0x377333]:[],'tdx':_0xbfc15a});gracefulExit(_0x52112b);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x29c))[a2_0x30593f(0x33c)](a2_0x30593f(0x3fa))[a2_0x30593f(0x2f7)](async(_0x497a29,_0x6d99f9)=>{const _0x2b2b1f=a2_0x30593f,_0x597c39=new SegmentValidateCommand(),_0x66f489=program['opts'](),_0x878430=await createTDXInstance(_0x66f489),_0x279bbc=await _0x597c39[_0x2b2b1f(0x1f5)]({'options':{..._0x66f489,..._0x6d99f9},'args':_0x497a29?[_0x497a29]:[],'tdx':_0x878430});gracefulExit(_0x279bbc);}),segmentCmd[a2_0x30593f(0x414)]('create\x20<segment_name>',{'hidden':!![]})['description'](a2_0x30593f(0x330))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a4),a2_0x30593f(0x21c))[a2_0x30593f(0x47b)]('--rule\x20<json>',a2_0x30593f(0x1e7))[a2_0x30593f(0x47b)](a2_0x30593f(0x1ec),a2_0x30593f(0x429))['option'](a2_0x30593f(0x1e0),a2_0x30593f(0x20c))[a2_0x30593f(0x47b)](a2_0x30593f(0x397),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x30593f(0x47b)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x30593f(0x47b)](a2_0x30593f(0x300),a2_0x30593f(0x2c0))[a2_0x30593f(0x2f7)](async(_0x62d024,_0x375e07)=>{const _0x334eef=a2_0x30593f,_0x4dcd48=new SegmentCreateCommand(),_0x26dd77=program['opts'](),_0x4a8040=await createTDXInstance(_0x26dd77),_0x2bd968=await _0x4dcd48[_0x334eef(0x1f5)]({'options':{..._0x26dd77,..._0x375e07},'args':[_0x62d024],'tdx':_0x4a8040});gracefulExit(_0x2bd968);}),segmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x226),{'hidden':!![]})[a2_0x30593f(0x33c)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x30593f(0x47b)](a2_0x30593f(0x2f4),a2_0x30593f(0x389))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a4),a2_0x30593f(0x461))[a2_0x30593f(0x47b)](a2_0x30593f(0x3b3),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x30593f(0x47b)](a2_0x30593f(0x1ec),a2_0x30593f(0x28e))[a2_0x30593f(0x47b)]('--folder\x20<name>',a2_0x30593f(0x292))['option'](a2_0x30593f(0x397),a2_0x30593f(0x3ab))['action'](async(_0x44b002,_0x269df1)=>{const _0x4006a6=a2_0x30593f,_0x295e6c=new SegmentUpdateCommand(),_0x5115b8=program[_0x4006a6(0x449)](),_0x28ef83=await createTDXInstance(_0x5115b8),_0x525f4b=await _0x295e6c[_0x4006a6(0x1f5)]({'options':{..._0x5115b8,..._0x269df1},'args':[_0x44b002],'tdx':_0x28ef83});gracefulExit(_0x525f4b);});const parentCmd=segmentCmd['command'](a2_0x30593f(0x229),{'hidden':!![]})[a2_0x30593f(0x33c)](a2_0x30593f(0x376)),parentListAction=async(_0x2e9680,_0x2f3289)=>{const _0xd71f08=a2_0x30593f,_0x2d701f=new ParentSegmentListCommand(),_0x5e1de7=program[_0xd71f08(0x449)](),_0x36442e=await createTDXInstance(_0x5e1de7),_0x31e813=await _0x2d701f[_0xd71f08(0x1f5)]({'options':{..._0x5e1de7,..._0x2f3289},'args':_0x2e9680?[_0x2e9680]:[],'tdx':_0x36442e});gracefulExit(_0x31e813);};parentCmd[a2_0x30593f(0x414)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x30593f(0x2f7)](parentListAction),segmentCmd['command']('parents\x20[pattern]',{'hidden':!![]})[a2_0x30593f(0x33c)](a2_0x30593f(0x302))['action'](parentListAction),parentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2a7))[a2_0x30593f(0x33c)](a2_0x30593f(0x2d9))['option'](a2_0x30593f(0x4a2),'Output\x20file\x20path\x20(default:\x20<name>.yml)')['action'](async(_0x2ee4f9,_0xebb89a)=>{const _0x2a84bc=a2_0x30593f,_0x308649=new ParentSegmentPullCommand(),_0x55e6fa=program[_0x2a84bc(0x449)](),_0x37d017=await createTDXInstance(_0x55e6fa),_0x2c90ee=await _0x308649[_0x2a84bc(0x1f5)]({'options':{..._0x55e6fa,..._0xebb89a},'args':_0x2ee4f9?[_0x2ee4f9]:[],'tdx':_0x37d017});gracefulExit(_0x2c90ee);}),parentCmd['command'](a2_0x30593f(0x408))['description'](a2_0x30593f(0x312))[a2_0x30593f(0x2f7)](async(_0xf592ec,_0x4508ec)=>{const _0x141632=a2_0x30593f,_0x54d247=new ParentSegmentPushCommand(),_0x274fd6=program[_0x141632(0x449)](),_0x34969d=await createTDXInstance(_0x274fd6),_0x5f0c7e=await _0x54d247[_0x141632(0x1f5)]({'options':{..._0x274fd6,..._0x4508ec},'args':_0xf592ec?[_0xf592ec]:[],'tdx':_0x34969d});gracefulExit(_0x5f0c7e);}),parentCmd['command'](a2_0x30593f(0x276))[a2_0x30593f(0x33c)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x30593f(0x47b)](a2_0x30593f(0x301),a2_0x30593f(0x2d4))[a2_0x30593f(0x47b)](a2_0x30593f(0x30f),a2_0x30593f(0x2f5))['option'](a2_0x30593f(0x39a),a2_0x30593f(0x3a3))[a2_0x30593f(0x47b)](a2_0x30593f(0x206),a2_0x30593f(0x3de))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e2),a2_0x30593f(0x24c),'-1d')[a2_0x30593f(0x2f7)](async(_0x5a91ef,_0x223e61)=>{const _0x696dbd=a2_0x30593f,_0x1b7745=new ParentSegmentValidateCommand(),_0x492e52=program[_0x696dbd(0x449)](),_0x599c8c=await createTDXInstance(_0x492e52),_0x3117fc=await _0x1b7745['run']({'options':{..._0x492e52,..._0x223e61},'args':_0x5a91ef?[_0x5a91ef]:[],'tdx':_0x599c8c});gracefulExit(_0x3117fc);}),parentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x367))['description'](a2_0x30593f(0x2ed))[a2_0x30593f(0x47b)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x30593f(0x47b)](a2_0x30593f(0x30f),a2_0x30593f(0x443))[a2_0x30593f(0x47b)](a2_0x30593f(0x39a),a2_0x30593f(0x272))['option'](a2_0x30593f(0x206),a2_0x30593f(0x479))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e2),a2_0x30593f(0x24c),a2_0x30593f(0x405))[a2_0x30593f(0x2f7)](async(_0x30a27a,_0xd71f9e)=>{const _0x4aef91=new ParentSegmentPreviewCommand(),_0x1cceba=program['opts'](),_0x2a91da=await createTDXInstance(_0x1cceba),_0x4afb6e=await _0x4aef91['run']({'options':{..._0x1cceba,..._0xd71f9e},'args':_0x30a27a?[_0x30a27a]:[],'tdx':_0x2a91da});gracefulExit(_0x4afb6e);}),parentCmd[a2_0x30593f(0x414)]('run\x20[name]')[a2_0x30593f(0x33c)](a2_0x30593f(0x42b))['action'](async(_0x45a9d6,_0x821a39)=>{const _0x7239d8=a2_0x30593f,_0x47c3c8=new ParentSegmentRunCommand(),_0x529333=program[_0x7239d8(0x449)](),_0x55207e=await createTDXInstance(_0x529333),_0x43bdc8=await _0x47c3c8[_0x7239d8(0x1f5)]({'options':{..._0x529333,..._0x821a39},'args':_0x45a9d6?[_0x45a9d6]:[],'tdx':_0x55207e});gracefulExit(_0x43bdc8);});const parentSegmentCmd=program['command'](a2_0x30593f(0x244))['alias']('ps')[a2_0x30593f(0x33c)](a2_0x30593f(0x288));function a2_0x5ac2(){const _0x3da78f=['Run\x20Trino\x20query\x20with\x20streaming\x20results','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','--version','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Include\x20subtasks\x20in\x20tasks\x20output','Create\x20segment\x20folder','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--result\x20<url>','--reeval','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','--stage\x20<name>','remove\x20<name>','--name\x20<new_name>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','\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','action','Alias\x20for\x20--database\x20(natural\x20language\x20style)','stdout','HTML\x20template\x20content','--include-history','Workflow\x20(Digdag)\x20management\x20commands','always-on-campaign','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Resume\x20a\x20paused\x20campaign','--no-count-population','--master','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','argumentTerm','--param\x20<key=value>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Timezone\x20(e.g.,\x20America/Los_Angeles)','Finish\x20an\x20always-on\x20campaign','jsonl','GET','Remove\x20API\x20key\x20from\x20system\x20keychain','Arguments:','List\x20agents\x20in\x20current\x20project','Authentication\x20management','--attribute\x20[name]','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--include-retried','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','tasks','apiKey','Open\x20parent\x20segment\x20in\x20web\x20browser','Pause\x20a\x20running\x20journey','schema\x20<type>','view\x20[name]','Behaviors\x20from\x20JSON\x20file','Kill\x20a\x20job','--verbose','--temperature\x20<n>','profile','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Show\x20timeline\x20for\x20specific\x20attempt','accessToken','Usage:\x20','long','push\x20[source-dir]','Show\x20authentication\x20status\x20and\x20current\x20context','argv','Data\x20connection\x20management\x20(for\x20activations/exports)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','[task-name]','secrets','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','90971NkUzvw','Agent\x20description','list','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','commands','name','32WKUaxD','--no-proxy','Create\x20a\x20new\x20LLM\x20project','--starter-message\x20<text>','clone\x20[source-dir]','Show\x20journey\x20table\x20column-to-step\x20mapping','flatMap','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20all\x20users\x20in\x20the\x20account','description','llm','Skip\x20confirmation\x20prompts','tables\x20[pattern]','noColor','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','LLM\x20agent\x20management','models','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','replace','--database\x20<db>','retry','summary','desc\x20[segment_name]','--system-prompt\x20<text>','--follow','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','use\x20<project-name>','Show\x20schedule\x20details','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','history\x20<name>','--schedule-type\x20<type>','Updated\x20schedule\x20option','-f,\x20--file\x20<path>','--limit\x20<number>','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','session','folder','optionTerm','Open\x20segment\x20in\x20web\x20browser','Maximum\x20tool\x20iterations\x20(default:\x204)','-n,\x20--name\x20<name>','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','--time\x20<iso8601>','--workspace\x20<name>','LLM\x20project\x20management','\x20-\x20built\x20','result\x20<job-id>','Create\x20a\x20new\x20always-on\x20campaign','Delivery\x20operations\x20(email\x20senders)','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','preview\x20[file]','Customer\x20group\x20from\x20JSON\x20file','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','claude\x20[args...]','Pull\x20specific\x20agent\x20by\x20name\x20(uses\x20llm_project\x20context)','variadic','List\x20jobs','resume\x20<name-or-path>','Resume\x20from\x20specific\x20task','AI-native\x20CLI\x20for\x20Treasure\x20Data','Manage\x20workflow\x20project\x20secrets','delete\x20<name-or-id>','--trace','Include\x20retried\x20attempts','Parse\x20and\x20validate\x20without\x20executing','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','CDP\x20segment\x20management\x20commands','\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\x20OAuth\x20tokens\x20to\x20profile-specific\x20keychain)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20OAuth\x20login\x20for\x20default\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--site\x20ap01\x20\x20\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20for\x20Japan\x20site\x0a\x20\x20$\x20tdx\x20auth\x20login\x20--profile\x20dev\x20\x20\x20\x20\x20\x20#\x20OAuth\x20login\x20saved\x20to\x20\x27dev\x27\x20profile\x0a','--in\x20<database>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--json','Get\x20SQL\x20query\x20for\x20segment.\x20For\x20segments\x20in\x20folders,\x20include\x20folder\x20path\x20(e.g.,\x20\x22Folder/Segment\x22)','Update\x20a\x20scheduled\x20query','[EXPERIMENTAL]\x20Show\x20chat\x20log','Limit\x20number\x20of\x20rows','show\x20<name>','List\x20available\x20LLM\x20models','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','stderr','--in\x20<db>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','versions\x20<name-or-path>','get','New\x20segment\x20name','Show\x20schedule\x20execution\x20history','error','285786qiokAp','restore\x20<folder>','--chat-id\x20<id>','--type\x20<type>','Duplicate\x20an\x20always-on\x20campaign','statusline','0.7','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Campaign\x20management','flags','--kind\x20<type>','us01','delivery','--behavior\x20[name]','_hidden','List\x20activations\x20for\x20a\x20journey','Validate\x20template\x20YAML\x20files\x20locally','run\x20[name]','Maximum\x20recursion\x20depth\x20(default:\x2010)','Path\x20is\x20not\x20a\x20directory:\x20','--debug','Delete\x20an\x20email\x20template','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--description\x20<text>','padEnd','--yes','includes','show\x20[segment_name]','sessions\x20[project]','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','isDirectory','Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)','profiles','pull\x20[workspace]','--llm-project\x20<name>','Commands:','join','--rule\x20<json>','create\x20[name]','-o,\x20--output\x20<folder>','use\x20[project]','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','optionDescription','Invalid\x20--limit\x20value:\x20\x22','backup\x20<name>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Run\x20a\x20scheduled\x20query\x20immediately','--behaviors-file\x20<file>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','gitRevision','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','Clear\x20workflow\x20project\x20context','Request\x20body\x20as\x20JSON\x20string','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--output\x20<file>','Interactive\x20chat\x20selector','Temperature\x20(0.0-2.0,\x20default:\x200.7)','run\x20[workflow]','New\x20campaign\x20name','schedule','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Database\x20name\x20(default:\x20information_schema)','--last','desc','json','validate\x20[name]','Job\x20priority\x20(-2\x20to\x202)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--limit\x20<rows>','Skip\x20confirmation\x20prompt','Delay\x20in\x20seconds\x20before\x20execution','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--session\x20<id>','Email\x20sender\x20ID\x20for\x20delivery','-c,\x20--continue','information_schema','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Campaign\x20type\x20(email\x20or\x20push)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--default','--interval\x20<range>','--to\x20<timestamp>','init\x20[name]','LLM\x20project\x20to\x20use\x20(overrides\x20context)','--num\x20<1-10>','connection','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','-r,\x20--recursive','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--table','Pause\x20an\x20always-on\x20campaign','preAction','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','--model\x20<name>','subcommandTerm','Always-on\x20campaign\x20management','List\x20all\x20versions\x20of\x20a\x20journey','Upgrade\x20to\x20the\x20next\x20(pre-release)\x20channel','injectIntoOptions','preview\x20[name]','engage','Create\x20a\x20new\x20campaign','sql\x20[segment_name]','--skip-validation','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','repeat','Database\x20to\x20query\x20(default:\x20information_schema)','--email-sender-id\x20<id>','status','templates\x20[pattern]','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','User\x20management\x20commands','agent','Delete\x20a\x20campaign','create\x20<parent_name>\x20<folder_name>','-1d','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--delete','push\x20[file]','set\x20<key=value>','upgrade\x20[version]','Invalid\x20editor\x20type:\x20','List\x20journeys\x20in\x20current\x20context','Model\x20type\x20(default:\x20claude-4.5-sonnet)','parent_segment','Add\x20attributes\x20from\x20JSON\x20file','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','update\x20<agent-name>','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','command','Update\x20an\x20existing\x20agent','--from-task\x20<task>','--no-eval','Set\x20secrets\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE\x20[KEY2=VALUE2\x20...])','desc\x20[name]','[DEPRECATED]\x20Segment\x20folder\x20management','registeredArguments','Login\x20via\x20OAuth\x20(dev\x20sites\x20only)','query\x20[sql]','Duplicate\x20a\x20campaign','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Show\x20journey\x20details','--stream','Output\x20as\x20JSON','--subject\x20<subject>','--html\x20<html>','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Delete\x20an\x20agent','--dry-run','debug','Filtering\x20rule\x20from\x20JSON\x20file','\x20(resolved\x20to\x20','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','--format\x20<format>','Overwrite\x20local\x20changes\x20without\x20confirmation','show\x20[name]','Read\x20request\x20body\x20from\x20file','--no-color','Show\x20connection\x20details\x20by\x20name','chat\x20[message...]','Directory\x20does\x20not\x20exist:\x20','push\x20[target]','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','isTTY','show\x20<job-id>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Set\x20a\x20profile\x20configuration\x20value','chats','forEach','10kckEhO','Output\x20as\x20JSON\x20Lines','-w,\x20--web','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','test\x20[path]','activations\x20<name-or-path>','--prompt\x20<text>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','-d,\x20--database\x20<db>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','map','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','kill','opts','Delete\x20a\x20scheduled\x20query','Output\x20file\x20path','view\x20<name-or-path>','--site\x20<site>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Campaign\x20description','Master\x20database\x20name','End\x20time\x20filter\x20(ISO\x208601\x20format)','pull\x20[workspace-name]','subcommandDescription','1626696XwwwBU','Workflow\x20session\x20management','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Include\x20raw\x20history\x20data\x20in\x20output','Submit\x20a\x20job','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','\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','Workflow\x20project\x20management','user','Job\x20management\x20commands','Pull\x20templates\x20to\x20YAML\x20files','System\x20prompt/instructions\x20(default:\x20empty)','Run\x20specific\x20tests\x20(comma-separated)','Updated\x20description','Update\x20a\x20workspace','7UBJfrO','10954878vEGWdr','-H,\x20--header\x20<header>','duplicate\x20<name-or-id>','Custom\x20revision\x20name\x20(default:\x20timestamp)','update\x20<name-or-id>','configureHelp','alias','isArray','INVALID_ARGUMENT','Resume\x20a\x20paused\x20journey','Get\x20job\x20results','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Editor\x20type:\x20grapesjs\x20(HTML\x20Editor,\x20default)\x20or\x20beefree\x20(Visual\x20Editor)','Show\x20what\x20would\x20be\x20written\x20without\x20writing','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','usage','List\x20all\x20data\x20connections','length','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','tsv','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','option','Workspace\x20name\x20(required)','[options]\x20--\x20[claude-code-args...]','delete\x20<name>','logs','Task\x20name\x20for\x20logs\x20action','setup','buildTime','Force\x20retry\x20even\x20if\x20not\x20failed','--timezone\x20<tz>','Customer\x20group\x20as\x20JSON\x20string','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','launch\x20<name-or-id>','--max-depth\x20<depth>','--revision\x20<revision>','-d,\x20--database\x20<database>','Segment\x20path\x20(e.g.,\x20\x22Audience\x22\x20for\x20parent\x20segment\x20only)','762747IaABbh','Trino\x20catalog\x20(default:\x20td)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','Result\x20output\x20destination\x20URL','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','set','fields\x20[parent_name]','Behaviors\x20as\x20JSON\x20string','--segment\x20<path>','--from\x20<timestamp>','Attempt\x20ID','pull\x20<project>\x20[target-dir]','--description\x20<desc>','addHelpText','-X,\x20--method\x20<method>','[action]','Remove\x20a\x20profile','_list-commands','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Unknown\x20action:\x20','parse','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','-o,\x20--output\x20<file>','--version\x20<number>','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','-C,\x20--directory\x20<path>','Set\x20or\x20show\x20parent\x20segment\x20context','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--folder\x20<name>','retry\x20<session-id>','campaign','types','set\x20<args...>','Delete\x20a\x20workspace','Show\x20always-on\x20campaign\x20details','Filtering\x20rule\x20as\x20JSON\x20string','--add-attributes\x20<json>','show\x20<folder_ref>','--jsonl','Query\x20engine\x20version','--rule-file\x20<file>','TD\x20site/region\x20(us01,\x20ap01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','workspace','Version\x20number\x20to\x20view','--name\x20<new-name>','--engine-version\x20<version>','Package\x20manager\x20to\x20use\x20(npm,\x20bun,\x20pnpm,\x20yarn)','Push\x20without\x20confirmation','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','run','logLevel','jobs','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','hidden','find','list\x20[pattern]','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Ending\x20offset\x20(default:\x2020)','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','-v,\x20--verbose','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--params\x20<json>','DEBUG','Parent\x20segment\x20description','--enriched','Create\x20a\x20workspace','Show\x20workspace\x20details','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','CDP\x20Journey\x20Orchestration\x20commands','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Folder\x20name\x20for\x20organization','activations\x20<segment_name>','kill\x20<job-id>','use\x20[resource]\x20[value]','Show\x20journey\x20statistics','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Save\x20output\x20to\x20file','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','--attempt-id\x20<id>','filter','\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','show\x20<name-or-id>','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Check\x20for\x20updates\x20without\x20installing','slice','Preview\x20operation\x20without\x20executing','Segment\x20description','--retry-limit\x20<0~32>','auth','create\x20<name>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','upgrade','--name\x20<name>','trino','delete\x20<agent-name>','job','update\x20<segment_name>','journeys\x20[pattern]','agents\x20[pattern]','parent','--timeout\x20<seconds>','catch','List\x20available\x20connector\x20types','pull\x20[project]\x20[agent-name]','Maximum\x20number\x20of\x20nodes','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Show\x20job\x20details','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Delete\x20an\x20always-on\x20campaign\x20(DRAFT\x20only)','Workspace\x20description','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','attempt','clone\x20[source]','engage_workspace','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20campaigns','Pull\x20workflow\x20project\x20to\x20local\x20folder','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','after','--table\x20<table>','log','grapesjs','Pull\x20specific\x20revision\x20(default:\x20latest)','pause\x20<name-or-id>','Query\x20type:\x20trino\x20or\x20hive','--start-at\x20<datetime>','--priority\x20<-2~2>','parent-segment','Show\x20agent\x20details','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','--clear','--tags\x20<tags>','Show\x20campaign\x20details','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Enable\x20UTM\x20tracking','Upgrade\x20tdx\x20to\x20the\x20latest\x20version','Timezone\x20for\x20cron\x20(default:\x20UTC)','list\x20[path]','Pause\x20a\x20campaign','209820LmKRwu','--full','use\x20<path>','Read\x20query\x20from\x20file','timeline\x20[project.workflow]','tdx','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','list\x20[project]','--delay\x20<seconds>','campaigns\x20[pattern]','--tsv','Push\x20YAML\x20files\x20to\x20Engage\x20API\x20as\x20templates','--data\x20<data>','use\x20<name>','--status\x20<status>','create','--resume-from\x20<task>','history\x20[chat-id]','database','Export\x20journey(s)\x20as\x20YAML\x20files','--new','unset\x20<resource>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','version','list\x20[name]','List\x20always-on\x20campaigns\x20(alias\x20for\x20\x22always-on-campaign\x20list\x22)','requiredOption','1300626COzYjx','senders\x20[pattern]','--method\x20<pm>','--json-columns\x20<cols>','resume\x20<name-or-id>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Create\x20an\x20email\x20template','--include-subtasks','Change\x20to\x20directory\x20before\x20executing\x20command','validate\x20[file]','Show\x20segment\x20schema\x20(column\x20types)','Launch\x20an\x20always-on\x20campaign','Pull\x20specific\x20campaign\x20by\x20name','fields\x20[name]','entries','Campaign\x20name','submit\x20[query]','folders\x20<parent_name>','segment','--from\x20<date>','--help','push\x20[parent_or_file]','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Show\x20segment\x20details\x20(alias\x20for\x20view)','info\x20[segment_name]','Name\x20for\x20the\x20duplicated\x20campaign','Reason\x20for\x20killing\x20the\x20attempt','Parent\x20segment\x20management','Master\x20table\x20name','\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','split','always-on-campaigns\x20[pattern]','commandDescription','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Updated\x20timezone',',\x20version\x20','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Move\x20to\x20folder','Resume\x20a\x20conversation\x20(shows\x20selector)','Pull\x20child\x20segments\x20to\x20YAML\x20files','padWidth','--add-attributes-file\x20<file>','Starting\x20offset\x20(default:\x200)','--parent-folder\x20<name>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','\x22.\x20Must\x20be\x20a\x20number.','--agent\x20<ref>','validate\x20[target]','--name\x20<text>','format','Include\x20retried\x20attempts\x20(for\x20list)','update\x20<name>','directory','\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','Output\x20directory','stringify','view\x20[segment_name]','push','pull\x20[name]','RT\x202.0\x20configuration\x20management','Agent\x20prompt/instructions','createAsync','describe\x20[table]','--schedule-option\x20<value>','--session-id\x20<id>','[attempt-id]','--behaviors\x20<json>','Run\x20tests\x20for\x20an\x20LLM\x20agent','--to\x20<date>','-u,\x20--use','delete\x20<project-name-or-id>','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','mcp','--job-type\x20<type>','--attributes-file\x20<file>','Validate\x20journey\x20YAML\x20files\x20locally','Skip\x20validation\x20of\x20.dig\x20files','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','site','...','stats\x20<name-or-path>','Plaintext\x20template\x20content','Skip\x20population\x20counting','sql\x20[name]','4XflaSs','show\x20[table]','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','argument','Journey\x20version\x20management','--cron\x20<expression>','Override\x20project\x20name','--editor-type\x20<type>','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Parent\x20folder\x20name\x20for\x20nested\x20folders','project','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Email\x20subject\x20template','--attributes\x20<json>','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Workspace\x20name','use\x20[name]','pull\x20[parent_or_file]','Show\x20only\x20master\x20table\x20validation','Read\x20HTML\x20template\x20from\x20file','Show\x20all\x20files\x20including\x20valid\x20ones','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','-y,\x20--yes','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20all\x20available\x20profiles','projects\x20[pattern]','options','-f,\x20--force','Show\x20what\x20would\x20be\x20applied\x20without\x20applying','help','attempt:','--from\x20<n>','New\x20template\x20name','workspaces\x20[pattern]','Workspace\x20management','Cron\x20expression\x20for\x20scheduling'];a2_0x5ac2=function(){return _0x3da78f;};return a2_0x5ac2();}parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))['description'](a2_0x30593f(0x32a))[a2_0x30593f(0x2f7)](parentListAction),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2a7))['description'](a2_0x30593f(0x3e0))['option'](a2_0x30593f(0x4a2),'Output\x20file\x20path')[a2_0x30593f(0x47b)](a2_0x30593f(0x2b2),a2_0x30593f(0x213))['action'](async(_0x1c2972,_0x501bb2)=>{const _0x66ad30=a2_0x30593f,_0x2c4fbe=new ParentSegmentPullCommand(),_0x430cb5=program['opts'](),_0x595bd9=await createTDXInstance(_0x430cb5),_0x35caf1=await _0x2c4fbe[_0x66ad30(0x1f5)]({'options':{..._0x430cb5,..._0x501bb2},'args':_0x1c2972?[_0x1c2972]:[],'tdx':_0x595bd9});gracefulExit(_0x35caf1);}),parentSegmentCmd['command']('push\x20[name]')[a2_0x30593f(0x33c)](a2_0x30593f(0x438))['action'](async(_0x33ccf7,_0x1ede38)=>{const _0x40b0cf=a2_0x30593f,_0x32c8f9=new ParentSegmentPushCommand(),_0x117abc=program['opts'](),_0x5dbcd6=await createTDXInstance(_0x117abc),_0x185293=await _0x32c8f9[_0x40b0cf(0x1f5)]({'options':{..._0x117abc,..._0x1ede38},'args':_0x33ccf7?[_0x33ccf7]:[],'tdx':_0x5dbcd6});gracefulExit(_0x185293);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3d2))[a2_0x30593f(0x33c)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x30593f(0x301),a2_0x30593f(0x2d4))['option'](a2_0x30593f(0x30f),a2_0x30593f(0x2f5))[a2_0x30593f(0x47b)](a2_0x30593f(0x39a),a2_0x30593f(0x3a3))[a2_0x30593f(0x47b)](a2_0x30593f(0x206),a2_0x30593f(0x3de))['option'](a2_0x30593f(0x3e2),a2_0x30593f(0x24c),a2_0x30593f(0x405))[a2_0x30593f(0x2f7)](async(_0xef8425,_0x11f339)=>{const _0x513da2=a2_0x30593f,_0x4d7797=new ParentSegmentValidateCommand(),_0x474c6b=program[_0x513da2(0x449)](),_0x274708=await createTDXInstance(_0x474c6b),_0xea423c=await _0x4d7797[_0x513da2(0x1f5)]({'options':{..._0x474c6b,..._0x11f339},'args':_0xef8425?[_0xef8425]:[],'tdx':_0x274708});gracefulExit(_0xea423c);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3f5))[a2_0x30593f(0x33c)](a2_0x30593f(0x2ed))[a2_0x30593f(0x47b)](a2_0x30593f(0x301),'Show\x20master\x20table\x20sample\x20data')[a2_0x30593f(0x47b)](a2_0x30593f(0x30f),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x30593f(0x47b)]('--behavior\x20[name]',a2_0x30593f(0x272))[a2_0x30593f(0x47b)](a2_0x30593f(0x206),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3e2),a2_0x30593f(0x24c),a2_0x30593f(0x405))[a2_0x30593f(0x2f7)](async(_0x1d5c1d,_0x53cd3e)=>{const _0x1d1ace=a2_0x30593f,_0x4f12e3=new ParentSegmentPreviewCommand(),_0xc0da4c=program['opts'](),_0x4dea5b=await createTDXInstance(_0xc0da4c),_0x477603=await _0x4f12e3[_0x1d1ace(0x1f5)]({'options':{..._0xc0da4c,..._0x53cd3e},'args':_0x1d5c1d?[_0x1d5c1d]:[],'tdx':_0x4dea5b});gracefulExit(_0x477603);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x39e))[a2_0x30593f(0x33c)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['action'](async(_0x3a82ae,_0x344b01)=>{const _0x2a9a2f=new ParentSegmentRunCommand(),_0x537993=program['opts'](),_0x9d27e9=await createTDXInstance(_0x537993),_0x13df08=await _0x2a9a2f['run']({'options':{..._0x537993,..._0x344b01},'args':_0x3a82ae?[_0x3a82ae]:[],'tdx':_0x9d27e9});gracefulExit(_0x13df08);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x27a))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x30593f(0x37c),a2_0x30593f(0x422))[a2_0x30593f(0x47b)](a2_0x30593f(0x1ea),a2_0x30593f(0x43d))['action'](async(_0xc7a4df,_0x4e0c9a)=>{const _0x2ca7c0=a2_0x30593f,_0x17296a=new ParentSegmentFieldsCommand(),_0x231c24=program[_0x2ca7c0(0x449)](),_0x33127f=await createTDXInstance(_0x231c24),_0x40b6e1=await _0x17296a[_0x2ca7c0(0x1f5)]({'options':{..._0x231c24,..._0x4e0c9a},'args':_0xc7a4df?[_0xc7a4df]:[],'tdx':_0x33127f});gracefulExit(_0x40b6e1);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x318))[a2_0x30593f(0x33c)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x30593f(0x47b)](a2_0x30593f(0x43e),a2_0x30593f(0x315))[a2_0x30593f(0x47b)](a2_0x30593f(0x37c),a2_0x30593f(0x422))['option'](a2_0x30593f(0x1ea),a2_0x30593f(0x43d))[a2_0x30593f(0x2f7)](async(_0x716dc7,_0x11045a)=>{const _0x18bd27=a2_0x30593f,_0x4fb249=new ParentSegmentViewCommand(),_0x45c87f=program[_0x18bd27(0x449)](),_0xc34b0b=await createTDXInstance(_0x45c87f),_0x268381=await _0x4fb249['run']({'options':{..._0x45c87f,..._0x11045a},'args':_0x716dc7?[_0x716dc7]:[],'tdx':_0xc34b0b});gracefulExit(_0x268381);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x419))[a2_0x30593f(0x33c)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x30593f(0x47b)](a2_0x30593f(0x4a2),a2_0x30593f(0x44b))[a2_0x30593f(0x47b)](a2_0x30593f(0x37c),a2_0x30593f(0x422))[a2_0x30593f(0x47b)](a2_0x30593f(0x1ea),a2_0x30593f(0x43d))[a2_0x30593f(0x2f7)](async(_0x5988ac,_0x3bc9ca)=>{const _0x1628a4=a2_0x30593f,_0x394b1a=new ParentSegmentDescCommand(),_0x224d8e=program[_0x1628a4(0x449)](),_0xe57fb8=await createTDXInstance(_0x224d8e),_0x25cae5=await _0x394b1a[_0x1628a4(0x1f5)]({'options':{..._0x224d8e,..._0x3bc9ca},'args':_0x5988ac?[_0x5988ac]:[],'tdx':_0xe57fb8});gracefulExit(_0x25cae5);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2c1))[a2_0x30593f(0x33c)](a2_0x30593f(0x202))[a2_0x30593f(0x47b)]('--json',a2_0x30593f(0x422))[a2_0x30593f(0x47b)](a2_0x30593f(0x1ea),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x1aa80c,_0x287167)=>{const _0x100c46=new ParentSegmentSQLCommand(),_0x375c3e=program['opts'](),_0x24ec7d=await createTDXInstance(_0x375c3e),_0x289aeb=await _0x100c46['run']({'options':{..._0x375c3e,..._0x287167},'args':_0x1aa80c?[_0x1aa80c]:[],'tdx':_0x24ec7d});gracefulExit(_0x289aeb);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x42e))[a2_0x30593f(0x33c)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('--limit\x20<n>',a2_0x30593f(0x380))['option'](a2_0x30593f(0x37c),a2_0x30593f(0x422))[a2_0x30593f(0x47b)](a2_0x30593f(0x1ea),a2_0x30593f(0x43d))[a2_0x30593f(0x2f7)](async(_0x5e0366,_0x59eaba)=>{const _0x4f0d17=a2_0x30593f,_0x571926=new ParentSegmentShowCommand(),_0xc2084b=program[_0x4f0d17(0x449)](),_0x1d0cf6=await createTDXInstance(_0xc2084b),_0x3a6cc7=await _0x571926[_0x4f0d17(0x1f5)]({'options':{..._0xc2084b,..._0x59eaba},'args':_0x5e0366?[_0x5e0366]:[],'tdx':_0x1d0cf6});gracefulExit(_0x3a6cc7);}),parentSegmentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2d2))[a2_0x30593f(0x33c)](a2_0x30593f(0x1de))[a2_0x30593f(0x2f7)](async(_0x2522c6,_0x2eb780)=>{const _0x275668=a2_0x30593f,_0xee8c44=new UseCommand(),_0x3f60fb=program[_0x275668(0x449)](),_0x112900=_0x2522c6?[_0x275668(0x40e),_0x2522c6]:[],_0x38133c=await _0xee8c44[_0x275668(0x1f5)]({'options':{..._0x3f60fb,..._0x2eb780},'args':_0x112900,'tdx':null});gracefulExit(_0x38133c);});const psRtCmd=parentSegmentCmd[a2_0x30593f(0x414)]('rt')[a2_0x30593f(0x33c)](a2_0x30593f(0x2a8));psRtCmd[a2_0x30593f(0x414)]('list\x20[pattern]')[a2_0x30593f(0x33c)](a2_0x30593f(0x306))[a2_0x30593f(0x2f7)](async(_0x27afc3,_0x8daa26)=>{const _0x41b505=new PSRtListCommand(),_0x5e1d67=program['opts'](),_0x196dfc=await createTDXInstance(_0x5e1d67),_0x245f00=await _0x41b505['run']({'options':{..._0x5e1d67,..._0x8daa26},'args':_0x27afc3?[_0x27afc3]:[],'tdx':_0x196dfc});gracefulExit(_0x245f00);}),psRtCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3d2))['description']('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x292ea0,_0x4bc038)=>{const _0x3bc686=a2_0x30593f,_0x2715b3=new PSRtValidateCommand(),_0x12177f=program[_0x3bc686(0x449)](),_0x1d49fc=await createTDXInstance(_0x12177f),_0x16ff18=await _0x2715b3[_0x3bc686(0x1f5)]({'options':{..._0x12177f,..._0x4bc038},'args':_0x292ea0?[_0x292ea0]:[],'tdx':_0x1d49fc});gracefulExit(_0x16ff18);});const parentRtCmd=parentCmd['command']('rt',{'hidden':!![]})['description'](a2_0x30593f(0x2a8));parentRtCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))[a2_0x30593f(0x33c)](a2_0x30593f(0x306))[a2_0x30593f(0x2f7)](async(_0x327ead,_0x39e593)=>{const _0x39630d=a2_0x30593f,_0x3af538=new PSRtListCommand(),_0x385288=program[_0x39630d(0x449)](),_0x5512dd=await createTDXInstance(_0x385288),_0x156b77=await _0x3af538[_0x39630d(0x1f5)]({'options':{..._0x385288,..._0x39e593},'args':_0x327ead?[_0x327ead]:[],'tdx':_0x5512dd});gracefulExit(_0x156b77);}),parentRtCmd['command']('validate\x20[name]')[a2_0x30593f(0x33c)](a2_0x30593f(0x400))[a2_0x30593f(0x2f7)](async(_0x3ece8a,_0x11437e)=>{const _0x57e112=a2_0x30593f,_0x1c8b0b=new PSRtValidateCommand(),_0x2df0ce=program[_0x57e112(0x449)](),_0x359587=await createTDXInstance(_0x2df0ce),_0x47babd=await _0x1c8b0b['run']({'options':{..._0x2df0ce,..._0x11437e},'args':_0x3ece8a?[_0x3ece8a]:[],'tdx':_0x359587});gracefulExit(_0x47babd);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x30593f(0x33c)]('Personalization\x20service\x20management');psPzCmd[a2_0x30593f(0x414)](a2_0x30593f(0x26a))[a2_0x30593f(0x33c)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x30593f(0x2f7)](async(_0x57b425,_0x303659)=>{const _0x502c53=new PSPzListCommand(),_0x49bdf0=program['opts'](),_0x398a99=await createTDXInstance(_0x49bdf0),_0x11f751=await _0x502c53['run']({'options':{..._0x49bdf0,..._0x303659},'args':_0x57b425?[_0x57b425]:[],'tdx':_0x398a99});gracefulExit(_0x11f751);}),psPzCmd['command'](a2_0x30593f(0x3e4))[a2_0x30593f(0x33c)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x30593f(0x2f7)](async(_0x4d5139,_0x1f94d8)=>{const _0x582a9a=a2_0x30593f,_0x3aadd6=new PSPzInitCommand(),_0x6864c0=program[_0x582a9a(0x449)](),_0x42c8f1=await createTDXInstance(_0x6864c0),_0x33d86b=await _0x3aadd6[_0x582a9a(0x1f5)]({'options':{..._0x6864c0,..._0x1f94d8},'args':_0x4d5139?[_0x4d5139]:[],'tdx':_0x42c8f1});gracefulExit(_0x33d86b);});const parentPzCmd=parentCmd[a2_0x30593f(0x414)]('pz',{'hidden':!![]})[a2_0x30593f(0x33c)]('Personalization\x20service\x20management');parentPzCmd[a2_0x30593f(0x414)](a2_0x30593f(0x26a))['description']('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x30593f(0x2f7)](async(_0x2ba9c9,_0x5f3c34)=>{const _0x419922=a2_0x30593f,_0x348705=new PSPzListCommand(),_0x679353=program[_0x419922(0x449)](),_0x373191=await createTDXInstance(_0x679353),_0x5f16b4=await _0x348705['run']({'options':{..._0x679353,..._0x5f3c34},'args':_0x2ba9c9?[_0x2ba9c9]:[],'tdx':_0x373191});gracefulExit(_0x5f16b4);}),parentPzCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3e4))[a2_0x30593f(0x33c)](a2_0x30593f(0x291))[a2_0x30593f(0x2f7)](async(_0x2615d1,_0x1e1bc7)=>{const _0x572a12=a2_0x30593f,_0x25ed1f=new PSPzInitCommand(),_0x93807a=program[_0x572a12(0x449)](),_0xcc697d=await createTDXInstance(_0x93807a),_0x31d9bc=await _0x25ed1f[_0x572a12(0x1f5)]({'options':{..._0x93807a,..._0x1e1bc7},'args':_0x2615d1?[_0x2615d1]:[],'tdx':_0xcc697d});gracefulExit(_0x31d9bc);}),parentCmd[a2_0x30593f(0x414)](a2_0x30593f(0x21f))[a2_0x30593f(0x33c)](a2_0x30593f(0x490))[a2_0x30593f(0x26c)](a2_0x30593f(0x346),a2_0x30593f(0x450))[a2_0x30593f(0x26c)](a2_0x30593f(0x23c),a2_0x30593f(0x289))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a4),a2_0x30593f(0x205))[a2_0x30593f(0x47b)](a2_0x30593f(0x353),a2_0x30593f(0x447))[a2_0x30593f(0x47b)](a2_0x30593f(0x2ac),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x30593f(0x47b)](a2_0x30593f(0x484),a2_0x30593f(0x307))['option'](a2_0x30593f(0x2cf),'Attributes\x20as\x20JSON\x20string')[a2_0x30593f(0x47b)](a2_0x30593f(0x2b8),'Attributes\x20from\x20JSON\x20file')[a2_0x30593f(0x47b)](a2_0x30593f(0x2af),a2_0x30593f(0x493))[a2_0x30593f(0x47b)](a2_0x30593f(0x3be),a2_0x30593f(0x319))[a2_0x30593f(0x47b)]('--customer-group\x20<json>',a2_0x30593f(0x485))[a2_0x30593f(0x47b)]('--customer-group-file\x20<file>',a2_0x30593f(0x368))[a2_0x30593f(0x2f7)](async(_0x2225fc,_0x55aa94)=>{const _0x3a4401=a2_0x30593f,_0x57d3ed=new ParentSegmentCreateCommand(),_0x49e229=program[_0x3a4401(0x449)](),_0x32bfd7=await createTDXInstance(_0x49e229),_0x5ef636=await _0x57d3ed[_0x3a4401(0x1f5)]({'options':{..._0x49e229,..._0x55aa94},'args':[_0x2225fc],'tdx':_0x32bfd7});gracefulExit(_0x5ef636);}),parentCmd['command'](a2_0x30593f(0x2a0))[a2_0x30593f(0x33c)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x30593f(0x47b)]('--description\x20<text>',a2_0x30593f(0x461))[a2_0x30593f(0x47b)](a2_0x30593f(0x353),a2_0x30593f(0x2fe))['option']('--schedule-option\x20<value>',a2_0x30593f(0x354))[a2_0x30593f(0x47b)]('--timezone\x20<tz>',a2_0x30593f(0x28f))[a2_0x30593f(0x47b)](a2_0x30593f(0x1e8),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x30593f(0x296),a2_0x30593f(0x40f))[a2_0x30593f(0x47b)]('--add-behaviors\x20<json>','Add\x20behaviors\x20as\x20JSON\x20string')['option']('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')['action'](async(_0x147af5,_0x5403ea)=>{const _0x3cc170=a2_0x30593f,_0x5293ad=new ParentSegmentUpdateCommand(),_0x123ccd=program[_0x3cc170(0x449)](),_0x24c5ed=await createTDXInstance(_0x123ccd),_0x334ce5=await _0x5293ad[_0x3cc170(0x1f5)]({'options':{..._0x123ccd,..._0x5403ea},'args':[_0x147af5],'tdx':_0x24c5ed});gracefulExit(_0x334ce5);}),folderCmd['command'](a2_0x30593f(0x404))['description'](a2_0x30593f(0x2ec))['option']('--description\x20<text>','Folder\x20description')[a2_0x30593f(0x47b)](a2_0x30593f(0x298),a2_0x30593f(0x2cb))[a2_0x30593f(0x2f7)](async(_0x46c2ae,_0x4a38bc,_0x57d738)=>{const _0x587d02=a2_0x30593f,_0x575cd8=new SegmentFolderCreateCommand(),_0x35403a=program['opts'](),_0xf74b45=await createTDXInstance(_0x35403a),_0xfb8a2e=await _0x575cd8[_0x587d02(0x1f5)]({'options':{..._0x35403a,..._0x57d738},'args':[_0x46c2ae,_0x4a38bc],'tdx':_0xf74b45});gracefulExit(_0xfb8a2e);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x20d))[a2_0x30593f(0x33c)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')[a2_0x30593f(0x2f7)](async(_0x457aad,_0x2b677b)=>{const _0x561e47=a2_0x30593f,_0x4a453f=new ActivationsCommand(),_0x235e6a=program['opts'](),_0x39f1b9=await createTDXInstance(_0x235e6a),_0x926409=await _0x4a453f[_0x561e47(0x1f5)]({'options':{..._0x235e6a,..._0x2b677b},'args':[_0x457aad],'tdx':_0x39f1b9});gracefulExit(_0x926409);});const workflowCmd=program[a2_0x30593f(0x414)]('workflow')[a2_0x30593f(0x46a)]('wf')[a2_0x30593f(0x33c)](a2_0x30593f(0x2fc)),wfProjectCmd=workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2cc))[a2_0x30593f(0x33c)](a2_0x30593f(0x45b)),wfProjectListAction=async(_0x397c13,_0xa00b81)=>{const _0x45cd5b=a2_0x30593f,_0x4961e0=new WorkflowProjectsCommand(),_0x553eb7=program[_0x45cd5b(0x449)](),_0x26abaa=await createTDXInstance(_0x553eb7),_0x31d35e=await _0x4961e0['run']({'options':{..._0x553eb7,..._0xa00b81},'args':_0x397c13?[_0x397c13]:[],'tdx':_0x26abaa});gracefulExit(_0x31d35e);};wfProjectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))[a2_0x30593f(0x33c)](a2_0x30593f(0x327))[a2_0x30593f(0x2f7)](wfProjectListAction),workflowCmd['command'](a2_0x30593f(0x2db))[a2_0x30593f(0x33c)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x30593f(0x2f7)](wfProjectListAction);const wfWorkflowListAction=async(_0x18b5b4,_0x59bdc7)=>{const _0x4651bd=a2_0x30593f,_0x330e6d=new WorkflowWorkflowsCommand(),_0x18ebea=program[_0x4651bd(0x449)](),_0x2f05bb=await createTDXInstance(_0x18ebea),_0x12d33f=await _0x330e6d[_0x4651bd(0x1f5)]({'options':{..._0x18ebea,..._0x59bdc7},'args':_0x18b5b4?[_0x18b5b4]:[],'tdx':_0x2f05bb});gracefulExit(_0x12d33f);};workflowCmd[a2_0x30593f(0x414)]('workflows\x20[project]')['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x30593f(0x2f7)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x358))['description'](a2_0x30593f(0x455)),wfSessionListAction=async(_0x42c50d,_0x1da383)=>{const _0x25eac6=a2_0x30593f,_0x2ca025=new WorkflowSessionsCommand(),_0x57a76e=program[_0x25eac6(0x449)](),_0x2474f1=await createTDXInstance(_0x57a76e),_0x310d79=await _0x2ca025[_0x25eac6(0x1f5)]({'options':{..._0x57a76e,..._0x1da383},'args':_0x42c50d?[_0x42c50d]:[],'tdx':_0x2474f1});gracefulExit(_0x310d79);};wfSessionCmd[a2_0x30593f(0x414)](a2_0x30593f(0x259))[a2_0x30593f(0x33c)](a2_0x30593f(0x472))[a2_0x30593f(0x47b)](a2_0x30593f(0x260),a2_0x30593f(0x2e7))[a2_0x30593f(0x47b)]('--from\x20<timestamp>',a2_0x30593f(0x299))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e3),a2_0x30593f(0x451))[a2_0x30593f(0x2f7)](wfSessionListAction),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3a9))[a2_0x30593f(0x33c)]('List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)')[a2_0x30593f(0x47b)]('--status\x20<status>',a2_0x30593f(0x2e7))[a2_0x30593f(0x47b)](a2_0x30593f(0x495),a2_0x30593f(0x299))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e3),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x30593f(0x2f7)](wfSessionListAction);const wfAttemptListAction=async(_0xa8e824,_0x4b5037)=>{const _0x4ea6d4=a2_0x30593f,_0x2837ef=new WorkflowAttemptsCommand(),_0x3cd6b8=program[_0x4ea6d4(0x449)](),_0x3fd447=await createTDXInstance(_0x3cd6b8),_0x23706b=await _0x2837ef[_0x4ea6d4(0x1f5)]({'options':{..._0x3cd6b8,..._0x4b5037},'args':_0xa8e824?[_0xa8e824]:[],'tdx':_0x3fd447});gracefulExit(_0x23706b);},attemptCmd=workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x235))[a2_0x30593f(0x33c)]('Workflow\x20attempt\x20management')['argument'](a2_0x30593f(0x2ae),a2_0x30593f(0x496))[a2_0x30593f(0x2c5)](a2_0x30593f(0x49b),a2_0x30593f(0x34d))[a2_0x30593f(0x2c5)](a2_0x30593f(0x328),a2_0x30593f(0x480))['option'](a2_0x30593f(0x274),a2_0x30593f(0x2eb))[a2_0x30593f(0x47b)]('--reason\x20<text>',a2_0x30593f(0x287))[a2_0x30593f(0x47b)](a2_0x30593f(0x262),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x30593f(0x47b)](a2_0x30593f(0x203),a2_0x30593f(0x37a))[a2_0x30593f(0x47b)]('--force',a2_0x30593f(0x483))[a2_0x30593f(0x47b)](a2_0x30593f(0x311),a2_0x30593f(0x29f))[a2_0x30593f(0x2f7)](async(_0x147058,_0x172e94,_0x54fc85,_0x52334a)=>{const _0x548c95=a2_0x30593f;if(_0x147058==='list'){await wfAttemptListAction(_0x172e94,_0x52334a);return;}if(!_0x147058){attemptCmd[_0x548c95(0x2df)]();return;}const _0x42a6a3=program[_0x548c95(0x449)](),_0x4fd7af=await createTDXInstance(_0x42a6a3);let _0x5ea1d1=0x0;if(!_0x172e94){const _0xdc3225=new WorkflowAttemptCommand();_0x5ea1d1=await _0xdc3225[_0x548c95(0x1f5)]({'options':{..._0x42a6a3,..._0x52334a},'args':[_0x147058],'tdx':_0x4fd7af});}else{if(_0x172e94===_0x548c95(0x47f)){const _0x57a59c=new WorkflowLogsCommand();_0x5ea1d1=await _0x57a59c[_0x548c95(0x1f5)]({'options':{..._0x42a6a3,..._0x52334a},'args':_0x54fc85?[_0x147058,_0x54fc85]:[_0x147058],'tdx':_0x4fd7af});}else{if(_0x172e94===_0x548c95(0x313)){const _0x154b95=new WorkflowTasksCommand();_0x5ea1d1=await _0x154b95[_0x548c95(0x1f5)]({'options':{..._0x42a6a3,..._0x52334a},'args':[_0x147058],'tdx':_0x4fd7af});}else{if(_0x172e94===_0x548c95(0x448)){const _0x16b1cd=new WorkflowKillCommand();_0x5ea1d1=await _0x16b1cd['run']({'options':{..._0x42a6a3,..._0x52334a},'args':[_0x147058],'tdx':_0x4fd7af});}else{if(_0x172e94===_0x548c95(0x347)){const _0x4f21c8=new WorkflowRetryCommand();_0x5ea1d1=await _0x4f21c8[_0x548c95(0x1f5)]({'options':{..._0x42a6a3,..._0x52334a},'args':[_0x548c95(0x2e0)+_0x147058],'tdx':_0x4fd7af});}else console['error'](_0x548c95(0x49f)+_0x172e94),console[_0x548c95(0x38b)](_0x548c95(0x22f)),_0x5ea1d1=0x1;}}}}gracefulExit(_0x5ea1d1);});attemptCmd[a2_0x30593f(0x414)](a2_0x30593f(0x259))[a2_0x30593f(0x33c)](a2_0x30593f(0x3c4))[a2_0x30593f(0x47b)](a2_0x30593f(0x311),a2_0x30593f(0x374))['action'](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x30593f(0x33c)]('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option'](a2_0x30593f(0x311),a2_0x30593f(0x374))[a2_0x30593f(0x2f7)](wfAttemptListAction),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x256))[a2_0x30593f(0x33c)](a2_0x30593f(0x383))['option'](a2_0x30593f(0x34b),'Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x30593f(0x47b)](a2_0x30593f(0x2ad),a2_0x30593f(0x1fd))[a2_0x30593f(0x47b)](a2_0x30593f(0x214),a2_0x30593f(0x31f))['action'](async(_0x2731ab,_0x31dfb5)=>{const _0x4380d4=a2_0x30593f,_0x1ae581=new WorkflowTimelineCommand(),_0x1eb827=program[_0x4380d4(0x449)](),_0x4ed2c0=await createTDXInstance(_0x1eb827),_0x18403a=await _0x1ae581[_0x4380d4(0x1f5)]({'options':{..._0x1eb827,..._0x31dfb5},'args':_0x2731ab?[_0x2731ab]:[],'tdx':_0x4ed2c0});gracefulExit(_0x18403a);}),workflowCmd['command'](a2_0x30593f(0x1e1))[a2_0x30593f(0x33c)](a2_0x30593f(0x2d0))[a2_0x30593f(0x47b)](a2_0x30593f(0x416),a2_0x30593f(0x36f))[a2_0x30593f(0x47b)]('--params\x20<json>',a2_0x30593f(0x32e))[a2_0x30593f(0x2f7)](async(_0x4c09e5,_0xe182e3)=>{const _0x27fa97=a2_0x30593f,_0x595900=new WorkflowRetryCommand(),_0x2ae2f6=program['opts'](),_0x491bb7=await createTDXInstance(_0x2ae2f6),_0x471173=await _0x595900[_0x27fa97(0x1f5)]({'options':{..._0x2ae2f6,..._0xe182e3},'args':[_0x4c09e5],'tdx':_0x491bb7});gracefulExit(_0x471173);}),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3c8))[a2_0x30593f(0x33c)](a2_0x30593f(0x258))['option'](a2_0x30593f(0x304),'Workflow\x20parameter\x20(repeatable)',(_0x39ac40,_0x4d4748=[])=>[..._0x4d4748,_0x39ac40],[])[a2_0x30593f(0x47b)]('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x30593f(0x2f7)](async(_0xf0e973,_0x1af5ee)=>{const _0x205844=a2_0x30593f,_0x173521=new WorkflowRunCommand(),_0x22ac12=program[_0x205844(0x449)](),_0x3618da=await createTDXInstance(_0x22ac12),_0x56365c=await _0x173521['run']({'options':{..._0x22ac12,..._0x1af5ee},'args':_0xf0e973?[_0xf0e973]:[],'tdx':_0x3618da});gracefulExit(_0x56365c);}),workflowCmd[a2_0x30593f(0x414)]('download\x20<project-name>\x20[output-dir]')[a2_0x30593f(0x33c)](a2_0x30593f(0x46f))[a2_0x30593f(0x47b)](a2_0x30593f(0x489),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x30593f(0x2f7)](async(_0x344aff,_0x2a5935,_0x26b593)=>{const _0x5c9c80=a2_0x30593f,_0x4a5907=new WorkflowDownloadCommand(),_0x4fae69=program[_0x5c9c80(0x449)](),_0x4b0a7d=await createTDXInstance(_0x4fae69),_0x5d28e7=await _0x4a5907[_0x5c9c80(0x1f5)]({'options':{..._0x4fae69,..._0x26b593},'args':[_0x344aff,_0x2a5935||'.'],'tdx':_0x4b0a7d});gracefulExit(_0x5d28e7);}),workflowCmd['command'](a2_0x30593f(0x497))[a2_0x30593f(0x33c)](a2_0x30593f(0x239))[a2_0x30593f(0x47b)](a2_0x30593f(0x489),a2_0x30593f(0x23f))['option'](a2_0x30593f(0x427),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x30593f(0x2f7)](async(_0x303bf8,_0x2fc5cf,_0x805d55)=>{const _0x1bd5cf=a2_0x30593f,_0xc806e0=new WorkflowPullCommand(),_0x15c90c=program[_0x1bd5cf(0x449)](),_0x21275a=await createTDXInstance(_0x15c90c),_0x3f9875=await _0xc806e0[_0x1bd5cf(0x1f5)]({'options':{..._0x15c90c,..._0x805d55},'args':_0x2fc5cf?[_0x303bf8,_0x2fc5cf]:[_0x303bf8],'tdx':_0x21275a});gracefulExit(_0x3f9875);}),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x323))[a2_0x30593f(0x33c)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x30593f(0x47b)](a2_0x30593f(0x489),a2_0x30593f(0x467))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),'Preview\x20changes\x20without\x20pushing')[a2_0x30593f(0x47b)]('--skip-validation',a2_0x30593f(0x2ba))[a2_0x30593f(0x2f7)](async(_0x2abe2f,_0x24702c)=>{const _0x65fa56=a2_0x30593f,_0x106640=new WorkflowPushCommand(),_0x476119=program[_0x65fa56(0x449)](),_0x2904f2=await createTDXInstance(_0x476119),_0x452daa=await _0x106640['run']({'options':{..._0x476119,..._0x24702c},'args':_0x2abe2f?[_0x2abe2f]:[],'tdx':_0x2904f2});gracefulExit(_0x452daa);}),workflowCmd['command']('upload\x20[project-name-or-dir]')[a2_0x30593f(0x33c)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option'](a2_0x30593f(0x222),a2_0x30593f(0x2c8))[a2_0x30593f(0x47b)]('--revision\x20<revision>','Revision\x20name\x20(default:\x20timestamp)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3f9),a2_0x30593f(0x2ba))[a2_0x30593f(0x2f7)](async(_0xc9ad,_0x3a045e)=>{const _0x5d3670=a2_0x30593f,_0x27cee3=new WorkflowUploadCommand(),_0x2cf78b=program[_0x5d3670(0x449)](),_0x49d6e0=await createTDXInstance(_0x2cf78b),_0x582754=await _0x27cee3['run']({'options':{..._0x2cf78b,..._0x3a045e},'args':_0xc9ad?[_0xc9ad]:[],'tdx':_0x49d6e0});gracefulExit(_0x582754);}),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x337))['description']('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x30593f(0x47b)](a2_0x30593f(0x222),a2_0x30593f(0x33a))[a2_0x30593f(0x47b)](a2_0x30593f(0x489),a2_0x30593f(0x467))['option'](a2_0x30593f(0x427),'Preview\x20without\x20creating\x20the\x20project')[a2_0x30593f(0x47b)](a2_0x30593f(0x3f9),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x30593f(0x2f7)](async(_0x4e8ac3,_0x16b70f)=>{const _0x26d850=a2_0x30593f,_0x6cea26=new WorkflowCloneCommand(),_0xfe9693=program['opts'](),_0x1b15a2=await createTDXInstance(_0xfe9693),_0x5010ff=await _0x6cea26[_0x26d850(0x1f5)]({'options':{..._0xfe9693,..._0x16b70f},'args':_0x4e8ac3?[_0x4e8ac3]:[],'tdx':_0x1b15a2});gracefulExit(_0x5010ff);}),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2b3))[a2_0x30593f(0x33c)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x203be7,_0x39c3cc)=>{const _0x4e63a8=a2_0x30593f,_0x75841a=new WorkflowDeleteCommand(),_0x21b949=program[_0x4e63a8(0x449)](),_0x44d0d6=await createTDXInstance(_0x21b949),_0x137bf4=await _0x75841a['run']({'options':{..._0x21b949,..._0x39c3cc},'args':[_0x203be7],'tdx':_0x44d0d6});gracefulExit(_0x137bf4);}),workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3b6))['description'](a2_0x30593f(0x200))[a2_0x30593f(0x47b)](a2_0x30593f(0x247),a2_0x30593f(0x3c2))['action'](async(_0x5e1810,_0x282b45)=>{const _0x31ee43=a2_0x30593f,_0x45dfe2=new WorkflowUseCommand(),_0x1ac63d=program[_0x31ee43(0x449)](),_0x3adc7e=await createTDXInstance(_0x1ac63d),_0x2b88d7=await _0x45dfe2[_0x31ee43(0x1f5)]({'options':{..._0x1ac63d,..._0x282b45},'args':_0x5e1810?[_0x5e1810]:[],'tdx':_0x3adc7e});gracefulExit(_0x2b88d7);});const wfSecretsCmd=workflowCmd[a2_0x30593f(0x414)](a2_0x30593f(0x329))['description'](a2_0x30593f(0x371));wfSecretsCmd[a2_0x30593f(0x414)]('list\x20[project]')['description']('List\x20secret\x20keys\x20for\x20a\x20project')['action'](async(_0x417ae4,_0xba4dd0)=>{const _0x252790=a2_0x30593f,_0x22bd49=new WorkflowSecretsListCommand(),_0x9b0796=program[_0x252790(0x449)](),_0x516599=await createTDXInstance(_0x9b0796),_0x58bc17=await _0x22bd49[_0x252790(0x1f5)]({'options':{..._0x9b0796,..._0xba4dd0},'args':_0x417ae4?[_0x417ae4]:[],'tdx':_0x516599});gracefulExit(_0x58bc17);}),wfSecretsCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1e4))[a2_0x30593f(0x33c)](a2_0x30593f(0x418))['action'](async(_0x372335,_0x44706a)=>{const _0x59945b=a2_0x30593f,_0x2adc14=new WorkflowSecretsSetCommand(),_0x167731=program[_0x59945b(0x449)](),_0xb317e5=await createTDXInstance(_0x167731),_0xd25758=await _0x2adc14[_0x59945b(0x1f5)]({'options':{..._0x167731,..._0x44706a},'args':_0x372335,'tdx':_0xb317e5});gracefulExit(_0xd25758);}),wfSecretsCmd[a2_0x30593f(0x414)]('delete\x20<args...>')[a2_0x30593f(0x33c)](a2_0x30593f(0x268))[a2_0x30593f(0x2f7)](async(_0x293135,_0x5490d0)=>{const _0x48064c=a2_0x30593f,_0x20f22a=new WorkflowSecretsDeleteCommand(),_0x31b604=program[_0x48064c(0x449)](),_0x46d393=await createTDXInstance(_0x31b604),_0x2f591b=await _0x20f22a[_0x48064c(0x1f5)]({'options':{..._0x31b604,..._0x5490d0},'args':_0x293135,'tdx':_0x46d393});gracefulExit(_0x2f591b);});const jobCmd=program['command'](a2_0x30593f(0x225))[a2_0x30593f(0x33c)](a2_0x30593f(0x45d)),jobListAction=async _0x4bc4f0=>{const _0x123198=a2_0x30593f,_0x4c844c=new JobListCommand(),_0x51b335=program[_0x123198(0x449)](),_0x30fdc1=await createTDXInstance(_0x51b335),_0x12d12a=await _0x4c844c[_0x123198(0x1f5)]({'options':{..._0x51b335,..._0x4bc4f0},'args':[],'tdx':_0x30fdc1});gracefulExit(_0x12d12a);};jobCmd[a2_0x30593f(0x414)](a2_0x30593f(0x32d))[a2_0x30593f(0x33c)](a2_0x30593f(0x36d))[a2_0x30593f(0x47b)]('--status\x20<status>',a2_0x30593f(0x3bc))[a2_0x30593f(0x2f7)](jobListAction),program[a2_0x30593f(0x414)](a2_0x30593f(0x1f7),{'hidden':!![]})['description'](a2_0x30593f(0x435))[a2_0x30593f(0x47b)](a2_0x30593f(0x260),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')['action'](jobListAction),jobCmd[a2_0x30593f(0x414)](a2_0x30593f(0x437))[a2_0x30593f(0x33c)](a2_0x30593f(0x230))[a2_0x30593f(0x2f7)](async(_0x1ded50,_0x4265b0)=>{const _0x32489f=a2_0x30593f,_0x45347e=new JobShowCommand(),_0x3ed98d=program[_0x32489f(0x449)](),_0x546c4c=await createTDXInstance(_0x3ed98d),_0x3de226=await _0x45347e[_0x32489f(0x1f5)]({'options':{..._0x3ed98d,..._0x4265b0},'args':[_0x1ded50],'tdx':_0x546c4c});gracefulExit(_0x3de226);}),jobCmd['command'](a2_0x30593f(0x20e))[a2_0x30593f(0x33c)](a2_0x30593f(0x31a))[a2_0x30593f(0x2f7)](async(_0x1a051d,_0x469a9e)=>{const _0x1c0437=a2_0x30593f,_0x1e48b5=new JobKillCommand(),_0x370f5f=program[_0x1c0437(0x449)](),_0x3b0acb=await createTDXInstance(_0x370f5f),_0x92a14=await _0x1e48b5[_0x1c0437(0x1f5)]({'options':{..._0x370f5f,..._0x469a9e},'args':[_0x1a051d],'tdx':_0x3b0acb});gracefulExit(_0x92a14);}),jobCmd['command'](a2_0x30593f(0x27d))[a2_0x30593f(0x33c)](a2_0x30593f(0x458))[a2_0x30593f(0x47b)](a2_0x30593f(0x2b7),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')[a2_0x30593f(0x47b)](a2_0x30593f(0x355),'Read\x20query\x20from\x20file')[a2_0x30593f(0x47b)]('--database\x20<name>',a2_0x30593f(0x3ce),a2_0x30593f(0x3dc))[a2_0x30593f(0x47b)]('--result\x20<target>',a2_0x30593f(0x24b))['action'](async(_0x3e7da2,_0xf41b1f)=>{const _0x14d90a=a2_0x30593f,_0x141436=new JobSubmitCommand(),_0x15d07e=program['opts'](),_0x448ad5=await createTDXInstance(_0x15d07e),_0x2ae9cc=await _0x141436[_0x14d90a(0x1f5)]({'options':{..._0x15d07e,..._0xf41b1f},'args':_0x3e7da2?[_0x3e7da2]:[],'tdx':_0x448ad5});gracefulExit(_0x2ae9cc);}),jobCmd[a2_0x30593f(0x414)](a2_0x30593f(0x363))[a2_0x30593f(0x33c)](a2_0x30593f(0x46e))[a2_0x30593f(0x2f7)](async(_0x1b4a17,_0x142767)=>{const _0x2b15d6=a2_0x30593f,_0x3dc703=new JobResultCommand(),_0x5759d5=program[_0x2b15d6(0x449)](),_0x174a5f=await createTDXInstance(_0x5759d5),_0x5aef04=await _0x3dc703[_0x2b15d6(0x1f5)]({'options':{..._0x5759d5,..._0x142767},'args':[_0x1b4a17],'tdx':_0x174a5f});gracefulExit(_0x5aef04);});const scheduleCmd=jobCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3ca))[a2_0x30593f(0x33c)]('Scheduled\x20query\x20management\x20commands');scheduleCmd[a2_0x30593f(0x414)]('list\x20[pattern]')['description']('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')[a2_0x30593f(0x2f7)](async(_0x5bcd2f,_0x49407a)=>{const _0x3a6c3f=a2_0x30593f,_0x30f6df=new ScheduleListCommand(),_0x55b617=program[_0x3a6c3f(0x449)](),_0x3321c9=await createTDXInstance(_0x55b617),_0x4429ef=await _0x30f6df['run']({'options':{..._0x55b617,..._0x49407a},'args':_0x5bcd2f?[_0x5bcd2f]:[],'tdx':_0x3321c9});gracefulExit(_0x4429ef);}),scheduleCmd[a2_0x30593f(0x414)](a2_0x30593f(0x381))[a2_0x30593f(0x33c)](a2_0x30593f(0x350))['action'](async(_0x1caa90,_0x57fb73)=>{const _0x5bc458=a2_0x30593f,_0x5ce92d=new ScheduleShowCommand(),_0x1077ff=program[_0x5bc458(0x449)](),_0x10e831=await createTDXInstance(_0x1077ff),_0x1ed006=await _0x5ce92d['run']({'options':{..._0x1077ff,..._0x57fb73},'args':[_0x1caa90],'tdx':_0x10e831});gracefulExit(_0x1ed006);}),scheduleCmd[a2_0x30593f(0x414)](a2_0x30593f(0x21f))[a2_0x30593f(0x33c)]('Create\x20a\x20scheduled\x20query')['option'](a2_0x30593f(0x444),'Database\x20name\x20(required)')[a2_0x30593f(0x47b)](a2_0x30593f(0x385),a2_0x30593f(0x2f8))['requiredOption'](a2_0x30593f(0x355),'Read\x20query\x20from\x20file')[a2_0x30593f(0x47b)](a2_0x30593f(0x38f),a2_0x30593f(0x241),a2_0x30593f(0x223))['option']('--cron\x20<expression>',a2_0x30593f(0x2e5))[a2_0x30593f(0x47b)](a2_0x30593f(0x484),a2_0x30593f(0x24f))['option'](a2_0x30593f(0x25a),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x30593f(0x47b)]('--priority\x20<-2~2>',a2_0x30593f(0x3d3))['option'](a2_0x30593f(0x21d),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x30593f(0x47b)](a2_0x30593f(0x1f1),a2_0x30593f(0x1eb))[a2_0x30593f(0x47b)](a2_0x30593f(0x2ee),a2_0x30593f(0x48f))[a2_0x30593f(0x2f7)](async(_0x5eaaf5,_0xea5217)=>{const _0xdeee7b=a2_0x30593f,_0x22c6ff=new ScheduleCreateCommand(),_0x432117=program[_0xdeee7b(0x449)](),_0x125967=await createTDXInstance(_0x432117);_0xea5217['in']&&(_0xea5217[_0xdeee7b(0x264)]=_0xea5217['in']);const _0x16aafa=await _0x22c6ff['run']({'options':{..._0x432117,..._0xea5217},'args':[_0x5eaaf5],'tdx':_0x125967});gracefulExit(_0x16aafa);}),scheduleCmd[a2_0x30593f(0x414)]('update\x20<name>')['description'](a2_0x30593f(0x37e))[a2_0x30593f(0x47b)](a2_0x30593f(0x444),'Database\x20name')[a2_0x30593f(0x47b)](a2_0x30593f(0x385),a2_0x30593f(0x2f8))[a2_0x30593f(0x47b)](a2_0x30593f(0x355),a2_0x30593f(0x255))['option'](a2_0x30593f(0x38f),a2_0x30593f(0x241))['option'](a2_0x30593f(0x2c7),a2_0x30593f(0x2e5))[a2_0x30593f(0x47b)](a2_0x30593f(0x484),'Timezone\x20for\x20cron')['option'](a2_0x30593f(0x25a),a2_0x30593f(0x3d7))['option'](a2_0x30593f(0x243),a2_0x30593f(0x3d3))['option'](a2_0x30593f(0x21d),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x30593f(0x47b)](a2_0x30593f(0x1f1),a2_0x30593f(0x1eb))[a2_0x30593f(0x47b)](a2_0x30593f(0x2ee),a2_0x30593f(0x48f))[a2_0x30593f(0x2f7)](async(_0x12654a,_0x39f51a)=>{const _0x12c09f=a2_0x30593f,_0x4f8a74=new ScheduleUpdateCommand(),_0xc1de76=program[_0x12c09f(0x449)](),_0x456177=await createTDXInstance(_0xc1de76);_0x39f51a['in']&&(_0x39f51a[_0x12c09f(0x264)]=_0x39f51a['in']);const _0x4706e5=await _0x4f8a74[_0x12c09f(0x1f5)]({'options':{..._0xc1de76,..._0x39f51a},'args':[_0x12654a],'tdx':_0x456177});gracefulExit(_0x4706e5);}),scheduleCmd[a2_0x30593f(0x414)](a2_0x30593f(0x47e))[a2_0x30593f(0x33c)](a2_0x30593f(0x44a))[a2_0x30593f(0x2f7)](async(_0x50daf2,_0x2167d4)=>{const _0x17f734=a2_0x30593f,_0x435c1f=new ScheduleDeleteCommand(),_0x3453d1=program[_0x17f734(0x449)](),_0x2aa6f1=await createTDXInstance(_0x3453d1),_0x1fe26b=await _0x435c1f[_0x17f734(0x1f5)]({'options':{..._0x3453d1,..._0x2167d4},'args':[_0x50daf2],'tdx':_0x2aa6f1});gracefulExit(_0x1fe26b);}),scheduleCmd[a2_0x30593f(0x414)]('run\x20<name>')[a2_0x30593f(0x33c)](a2_0x30593f(0x3bd))[a2_0x30593f(0x47b)](a2_0x30593f(0x35f),a2_0x30593f(0x3bf))['option'](a2_0x30593f(0x3e6),'Number\x20of\x20executions\x20(1-10,\x20default:\x201)')[a2_0x30593f(0x2f7)](async(_0x4693d9,_0x343c04)=>{const _0x17e771=a2_0x30593f,_0x249a05=new ScheduleRunCommand(),_0x42b81c=program[_0x17e771(0x449)](),_0x283f14=await createTDXInstance(_0x42b81c),_0x3136da=await _0x249a05['run']({'options':{..._0x42b81c,..._0x343c04},'args':[_0x4693d9],'tdx':_0x283f14});gracefulExit(_0x3136da);}),scheduleCmd[a2_0x30593f(0x414)](a2_0x30593f(0x352))[a2_0x30593f(0x33c)](a2_0x30593f(0x38a))[a2_0x30593f(0x47b)](a2_0x30593f(0x2e1),a2_0x30593f(0x297))['option']('--to\x20<n>',a2_0x30593f(0x1ff))[a2_0x30593f(0x2f7)](async(_0x4629b7,_0x555440)=>{const _0x17e1c7=a2_0x30593f,_0x15715b=new ScheduleHistoryCommand(),_0x23c7cc=program[_0x17e1c7(0x449)](),_0x107ff2=await createTDXInstance(_0x23c7cc),_0x1eb001=await _0x15715b[_0x17e1c7(0x1f5)]({'options':{..._0x23c7cc,..._0x555440},'args':[_0x4629b7],'tdx':_0x107ff2});gracefulExit(_0x1eb001);});const llmCmd=program['command'](a2_0x30593f(0x33d))['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd['command'](a2_0x30593f(0x34f))[a2_0x30593f(0x33c)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x30593f(0x2f7)](async(_0xf5cf83,_0x44b548)=>{const _0x363822=a2_0x30593f,_0x6b06f6=new LLMUseCommand(),_0x260aef=program[_0x363822(0x449)](),_0x2b1309=await createTDXInstance(_0x260aef),_0x31de8e=await _0x6b06f6[_0x363822(0x1f5)]({'options':{..._0x260aef,..._0x44b548},'args':[_0xf5cf83],'tdx':_0x2b1309});gracefulExit(_0x31de8e);}),llmCmd[a2_0x30593f(0x414)](a2_0x30593f(0x343))['description'](a2_0x30593f(0x382))['action'](async _0xc07b0=>{const _0x453db9=a2_0x30593f,_0x1148c6=new LLMModelsCommand(),_0x479236=program[_0x453db9(0x449)](),_0x2a2100=await createTDXInstance(_0x479236),_0x12741d=await _0x1148c6['run']({'options':{..._0x479236,..._0xc07b0},'args':[],'tdx':_0x2a2100});gracefulExit(_0x12741d);});const projectCmd=llmCmd[a2_0x30593f(0x414)]('project')['description'](a2_0x30593f(0x361)),llmProjectListAction=async(_0x3ffec0,_0x2b976e)=>{const _0x343fc4=new LLMProjectsCommand(),_0x4eda22=program['opts'](),_0x4cb572=await createTDXInstance(_0x4eda22),_0x484e48=await _0x343fc4['run']({'options':{..._0x4eda22,..._0x2b976e},'args':_0x3ffec0?[_0x3ffec0]:[],'tdx':_0x4cb572});gracefulExit(_0x484e48);};projectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))[a2_0x30593f(0x33c)](a2_0x30593f(0x2b4))['action'](llmProjectListAction),llmCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2db))['description'](a2_0x30593f(0x2ca))[a2_0x30593f(0x2f7)](llmProjectListAction),projectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x21f))[a2_0x30593f(0x33c)](a2_0x30593f(0x335))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a4),'Project\x20description')[a2_0x30593f(0x2f7)](async(_0x2c686f,_0x189010)=>{const _0x3afa66=a2_0x30593f,_0x564f6b=new LLMProjectCreateCommand(),_0x210bb9=program['opts'](),_0x1648b5=await createTDXInstance(_0x210bb9),_0x22b865=await _0x564f6b[_0x3afa66(0x1f5)]({'options':{..._0x210bb9,..._0x189010},'args':[_0x2c686f],'tdx':_0x1648b5});gracefulExit(_0x22b865);}),projectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x47e))[a2_0x30593f(0x33c)]('Delete\x20an\x20LLM\x20project')[a2_0x30593f(0x2f7)](async(_0x4f9c94,_0x40c624)=>{const _0xc3867e=a2_0x30593f,_0xb6438e=new LLMProjectDeleteCommand(),_0x241b81=program[_0xc3867e(0x449)](),_0x5988eb=await createTDXInstance(_0x241b81),_0x28b762=await _0xb6438e[_0xc3867e(0x1f5)]({'options':{..._0x241b81,..._0x40c624},'args':[_0x4f9c94],'tdx':_0x5988eb});gracefulExit(_0x28b762);}),projectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3ba))[a2_0x30593f(0x33c)](a2_0x30593f(0x2cd))[a2_0x30593f(0x47b)](a2_0x30593f(0x3b5),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x24a))['action'](async(_0x44b7ff,_0x57eaac)=>{const _0x5d5423=a2_0x30593f,_0x529041=new LLMProjectBackupCommand(),_0x29860d=program[_0x5d5423(0x449)](),_0x131299=await createTDXInstance(_0x29860d),_0x10bfbd=await _0x529041['run']({'options':{..._0x29860d,..._0x57eaac},'args':[_0x44b7ff],'tdx':_0x131299});gracefulExit(_0x10bfbd);}),projectCmd[a2_0x30593f(0x414)](a2_0x30593f(0x38d))[a2_0x30593f(0x33c)](a2_0x30593f(0x386))['option'](a2_0x30593f(0x1f0),a2_0x30593f(0x3ea))['option'](a2_0x30593f(0x427),a2_0x30593f(0x43f))[a2_0x30593f(0x2f7)](async(_0x129959,_0x71f566)=>{const _0x319210=a2_0x30593f,_0x2b0866=new LLMProjectRestoreCommand(),_0x4b4c3e=program[_0x319210(0x449)](),_0x52703a=await createTDXInstance(_0x4b4c3e),_0x6131a2=await _0x2b0866['run']({'options':{..._0x4b4c3e,..._0x71f566},'args':[_0x129959],'tdx':_0x52703a});gracefulExit(_0x6131a2);});const llmAgentListAction=async(_0x105732,_0x9fe2f)=>{const _0x41fe59=a2_0x30593f,_0x5de5b8=new LLMAgentsCommand(),_0x355cb8=program[_0x41fe59(0x449)](),_0x17f795=await createTDXInstance(_0x355cb8),_0x500a15=await _0x5de5b8[_0x41fe59(0x1f5)]({'options':{..._0x355cb8,..._0x9fe2f},'args':_0x105732?[_0x105732]:[],'tdx':_0x17f795});gracefulExit(_0x500a15);};llmCmd[a2_0x30593f(0x414)]('agents\x20[pattern]')[a2_0x30593f(0x33c)](a2_0x30593f(0x476))['action'](llmAgentListAction),program['command'](a2_0x30593f(0x228))[a2_0x30593f(0x33c)](a2_0x30593f(0x476))[a2_0x30593f(0x2f7)](llmAgentListAction),llmCmd[a2_0x30593f(0x414)](a2_0x30593f(0x263))[a2_0x30593f(0x33c)](a2_0x30593f(0x2c4))['option'](a2_0x30593f(0x3cf),a2_0x30593f(0x357))[a2_0x30593f(0x2f7)](async(_0x2818f4,_0x50932c)=>{const _0x4380ae=a2_0x30593f,_0xecf4ad=new LLMHistoryCommand(),_0x19ced8=program[_0x4380ae(0x449)](),_0x10caff=await createTDXInstance(_0x19ced8),_0x4a5e90=await _0xecf4ad[_0x4380ae(0x1f5)]({'options':{..._0x19ced8,..._0x50932c},'args':_0x2818f4?[_0x2818f4]:[],'tdx':_0x10caff});gracefulExit(_0x4a5e90);});isExperimentalAvailable()&&llmCmd[a2_0x30593f(0x414)]('log\x20<chat-id>')[a2_0x30593f(0x33c)](a2_0x30593f(0x37f))['action'](async(_0x187a85,_0x2fd728)=>{const _0x434711=a2_0x30593f,_0x440131=new LLMLogCommand(),_0x405732=program[_0x434711(0x449)](),_0x206074=await createTDXInstance(_0x405732),_0x21f2c8=await _0x440131[_0x434711(0x1f5)]({'options':{..._0x405732,..._0x2fd728},'args':[_0x187a85],'tdx':_0x206074});gracefulExit(_0x21f2c8);});program[a2_0x30593f(0x414)](a2_0x30593f(0x36a))[a2_0x30593f(0x473)](a2_0x30593f(0x47d))[a2_0x30593f(0x33c)](a2_0x30593f(0x283))[a2_0x30593f(0x47b)](a2_0x30593f(0x3db),'Continue\x20most\x20recent\x20conversation')[a2_0x30593f(0x47b)]('-r,\x20--resume',a2_0x30593f(0x293))[a2_0x30593f(0x47b)](a2_0x30593f(0x334),a2_0x30593f(0x20b))['allowUnknownOption']()['allowExcessArguments'](!![])['addHelpText']('after',a2_0x30593f(0x2f6))[a2_0x30593f(0x2f7)](async(_0x3d1485,_0x7f0fbe)=>{const _0x4ded46=a2_0x30593f,_0x1a1abc=program[_0x4ded46(0x449)](),_0x28af1d=Array[_0x4ded46(0x46b)](_0x3d1485)?_0x3d1485:[];if(_0x28af1d[0x0]===_0x4ded46(0x391)){const _0x2876f1=new ClaudeStatuslineCommand(),_0x3cb9e8=await _0x2876f1[_0x4ded46(0x1f5)]({'options':{..._0x1a1abc,..._0x7f0fbe},'args':_0x28af1d[_0x4ded46(0x21a)](0x1),'tdx':null});gracefulExit(_0x3cb9e8);}if(_0x28af1d[0x0]===_0x4ded46(0x473)){const _0x3ebdad=new ClaudeUsageCommand(),_0x28d16c=await _0x3ebdad[_0x4ded46(0x1f5)]({'options':{..._0x1a1abc,..._0x7f0fbe},'args':_0x28af1d['slice'](0x1),'tdx':null});gracefulExit(_0x28d16c);}const _0xb70474=new ClaudeCommand(),_0x3dbd26=await createTDXInstance(_0x1a1abc),_0x4b7c92=await _0xb70474[_0x4ded46(0x1f5)]({'options':{..._0x1a1abc,..._0x7f0fbe},'args':_0x28af1d,'tdx':_0x3dbd26});gracefulExit(_0x4b7c92);}),program['command'](a2_0x30593f(0x20f))[a2_0x30593f(0x33c)](a2_0x30593f(0x3d8))[a2_0x30593f(0x47b)](a2_0x30593f(0x247),'Clear\x20session\x20context')['option'](a2_0x30593f(0x3e1),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x30593f(0x2f7)](async(_0x6ef155,_0x3df3da,_0x27e2c4)=>{const _0x14dd9b=a2_0x30593f,_0xc4c820=new UseCommand(),_0x68a8e2=program[_0x14dd9b(0x449)](),_0x2643dc=[];if(_0x6ef155)_0x2643dc[_0x14dd9b(0x2a6)](_0x6ef155);if(_0x3df3da)_0x2643dc[_0x14dd9b(0x2a6)](_0x3df3da);const _0x521f24=_0x6ef155===_0x14dd9b(0x237),_0x57755f=_0x521f24?await createTDXInstance(_0x68a8e2):null,_0x344b3c=await _0xc4c820['run']({'options':{..._0x68a8e2,..._0x27e2c4},'args':_0x2643dc,'tdx':_0x57755f});gracefulExit(_0x344b3c);}),program['command'](a2_0x30593f(0x3fe))[a2_0x30593f(0x33c)](a2_0x30593f(0x324))[a2_0x30593f(0x2f7)](async _0x374945=>{const _0x3eda81=a2_0x30593f,_0x28e321=new StatusCommand(),_0x4920f0=program[_0x3eda81(0x449)](),_0x31299a=await createTDXInstance(_0x4920f0),_0x184385=await _0x28e321[_0x3eda81(0x1f5)]({'options':{..._0x4920f0,..._0x374945},'args':[],'tdx':_0x31299a});gracefulExit(_0x184385);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x40a))[a2_0x30593f(0x33c)](a2_0x30593f(0x24e))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x219))[a2_0x30593f(0x47b)]('--next',a2_0x30593f(0x3f3))[a2_0x30593f(0x47b)](a2_0x30593f(0x26f),a2_0x30593f(0x1f2))['action'](async(_0x3d3a95,_0x20ed2b)=>{const _0x210a54=a2_0x30593f,_0x29e405=new UpgradeCommand(),_0x4f07de=program[_0x210a54(0x449)](),_0x35fb5e=await _0x29e405[_0x210a54(0x1f5)]({'options':{..._0x4f07de,..._0x20ed2b},'args':_0x3d3a95?[_0x3d3a95]:[],'tdx':null});gracefulExit(_0x35fb5e);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x267))[a2_0x30593f(0x33c)](a2_0x30593f(0x2ea))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e1),'Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)')['action'](async(_0x35bcef,_0x3e5e73)=>{const _0x5d9003=a2_0x30593f,_0x36f4f4=new UnsetCommand(),_0x47759c=program[_0x5d9003(0x449)](),_0x10260d=await _0x36f4f4['run']({'options':{..._0x47759c,..._0x3e5e73},'args':[_0x35bcef],'tdx':null});gracefulExit(_0x10260d);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x43a))['description'](a2_0x30593f(0x3c6))['option'](a2_0x30593f(0x3cf),'Show\x20the\x20most\x20recent\x20chat')[a2_0x30593f(0x2f7)](async _0x42cd4a=>{const _0x5d3b31=a2_0x30593f,_0x28aa5f=new ChatsCommand(),_0x2ccd0c=program[_0x5d3b31(0x449)](),_0xc7f45e=await createTDXInstance(_0x2ccd0c),_0x10f20c=await _0x28aa5f['run']({'options':{..._0x2ccd0c,..._0x42cd4a},'args':[],'tdx':_0xc7f45e});gracefulExit(_0x10f20c);});const authCmd=program[a2_0x30593f(0x414)](a2_0x30593f(0x21e))['description'](a2_0x30593f(0x30e));async function runAuthStatusCommand(_0x20dc2f){const _0x91e4c=a2_0x30593f,_0x3d472a=new AuthStatusCommand(),_0x6b4b1f=program[_0x91e4c(0x449)](),_0x2aff81=await createTDXInstance(_0x6b4b1f),_0x296fb6=await _0x3d472a['run']({'options':{..._0x6b4b1f,..._0x20dc2f},'args':[],'tdx':_0x2aff81});gracefulExit(_0x296fb6);}authCmd[a2_0x30593f(0x2f7)](runAuthStatusCommand),authCmd['command'](a2_0x30593f(0x3fe))[a2_0x30593f(0x33c)](a2_0x30593f(0x2f0))[a2_0x30593f(0x2f7)](runAuthStatusCommand),authCmd[a2_0x30593f(0x414)](a2_0x30593f(0x481))[a2_0x30593f(0x33c)]('Setup\x20API\x20key\x20authentication\x20interactively')[a2_0x30593f(0x499)](a2_0x30593f(0x23b),'\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')['action'](async _0x2b4742=>{const _0x4f6a23=a2_0x30593f,_0x40e4d2=new AuthSetupCommand(),_0x36a410=program[_0x4f6a23(0x449)](),_0x5b1f2d=await createTDXInstance(_0x36a410),_0xfdefc6=await _0x40e4d2[_0x4f6a23(0x1f5)]({'options':{..._0x36a410,..._0x2b4742},'args':[],'tdx':_0x5b1f2d});gracefulExit(_0xfdefc6);}),authCmd['command']('login')[a2_0x30593f(0x33c)](a2_0x30593f(0x41c))[a2_0x30593f(0x499)](a2_0x30593f(0x23b),a2_0x30593f(0x378))[a2_0x30593f(0x2f7)](async _0x553d19=>{const _0x2bceae=a2_0x30593f,_0x2c6695=new AuthLoginCommand(),_0x18bdda=program[_0x2bceae(0x449)](),_0x58f571=await _0x2c6695[_0x2bceae(0x1f5)]({'options':{..._0x18bdda,..._0x553d19},'args':[],'tdx':null});gracefulExit(_0x58f571);}),authCmd[a2_0x30593f(0x414)]('clear')['description'](a2_0x30593f(0x30b))['addHelpText'](a2_0x30593f(0x23b),a2_0x30593f(0x2a2))[a2_0x30593f(0x2f7)](async _0xd5cda1=>{const _0x592de7=a2_0x30593f,_0x34fcf0=new AuthClearCommand(),_0x17a791=program['opts'](),_0x14f954=await _0x34fcf0[_0x592de7(0x1f5)]({'options':{..._0x17a791,..._0xd5cda1},'args':[],'tdx':null});gracefulExit(_0x14f954);});const userCmd=program['command'](a2_0x30593f(0x45c))[a2_0x30593f(0x33c)](a2_0x30593f(0x401)),userListAction=async _0x3f25cd=>{const _0x1c8fcf=a2_0x30593f,_0x3e6ea3=new UserListCommand(),_0x42ffe8=program[_0x1c8fcf(0x449)](),_0x4fcc12=await createTDXInstance(_0x42ffe8),_0x12b6d5=await _0x3e6ea3[_0x1c8fcf(0x1f5)]({'options':{..._0x42ffe8,..._0x3f25cd},'args':[],'tdx':_0x4fcc12});gracefulExit(_0x12b6d5);};userCmd[a2_0x30593f(0x2f7)](async _0x30c3a7=>{const _0x5c0d12=a2_0x30593f,_0x237986=new UserCommand(),_0x174ef7=program[_0x5c0d12(0x449)](),_0x2b24b8=await createTDXInstance(_0x174ef7),_0x9ec11f=await _0x237986[_0x5c0d12(0x1f5)]({'options':{..._0x174ef7,..._0x30c3a7},'args':[],'tdx':_0x2b24b8});gracefulExit(_0x9ec11f);}),userCmd['command'](a2_0x30593f(0x32d))[a2_0x30593f(0x33c)](a2_0x30593f(0x33b))[a2_0x30593f(0x2f7)](userListAction),program[a2_0x30593f(0x414)]('users')[a2_0x30593f(0x33c)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x30593f(0x2f7)](userListAction),program['command'](a2_0x30593f(0x3ae))[a2_0x30593f(0x33c)](a2_0x30593f(0x2da))[a2_0x30593f(0x2f7)](async _0x5e2aba=>{const _0x401de6=a2_0x30593f,_0x2f8eb7=new ProfilesCommand(),_0x205548=program[_0x401de6(0x449)](),_0xf1ea82=await _0x2f8eb7[_0x401de6(0x1f5)]({'options':{..._0x205548,..._0x5e2aba},'args':[],'tdx':null});gracefulExit(_0xf1ea82);});const profileCmd=program['command']('profile')[a2_0x30593f(0x33c)](a2_0x30593f(0x394));profileCmd[a2_0x30593f(0x2f7)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x117262=>{const _0xbacdb6=a2_0x30593f,_0x1fcc42=new ProfilesCommand(),_0x35b7d8=program[_0xbacdb6(0x449)](),_0x58d656=await _0x1fcc42['run']({'options':{..._0x35b7d8,..._0x117262},'args':[],'tdx':null});gracefulExit(_0x58d656);};profileCmd[a2_0x30593f(0x414)](a2_0x30593f(0x32d))[a2_0x30593f(0x33c)](a2_0x30593f(0x2da))[a2_0x30593f(0x2f7)](profileListAction),profileCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3b4))[a2_0x30593f(0x33c)]('Create\x20a\x20new\x20profile')['addHelpText'](a2_0x30593f(0x23b),a2_0x30593f(0x45a))['action'](async(_0x26d3e1,_0x1b960a)=>{const _0x34d4a9=a2_0x30593f,_0x619e23=new ProfileCreateCommand(),_0x20f2b8=program[_0x34d4a9(0x449)](),_0xa036a2=await _0x619e23[_0x34d4a9(0x1f5)]({'options':{..._0x20f2b8,..._0x1b960a},'args':_0x26d3e1?[_0x26d3e1]:[],'tdx':null});gracefulExit(_0xa036a2);}),profileCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2f3))[a2_0x30593f(0x33c)](a2_0x30593f(0x49c))[a2_0x30593f(0x499)](a2_0x30593f(0x23b),a2_0x30593f(0x246))[a2_0x30593f(0x2f7)](async(_0x5350f3,_0x1b20d9)=>{const _0x296cdf=a2_0x30593f,_0x20c16f=new ProfileRemoveCommand(),_0x31e29a=program[_0x296cdf(0x449)](),_0x3d786f=await _0x20c16f['run']({'options':{..._0x31e29a,..._0x1b20d9},'args':[_0x5350f3],'tdx':null});gracefulExit(_0x3d786f);}),profileCmd[a2_0x30593f(0x414)](a2_0x30593f(0x409))[a2_0x30593f(0x33c)](a2_0x30593f(0x439))['addHelpText'](a2_0x30593f(0x23b),'\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')[a2_0x30593f(0x2f7)](async(_0x2fb10b,_0x2ae3e2)=>{const _0x4d7284=a2_0x30593f,_0x5e3026=new ProfileSetCommand(),_0x346f13=program[_0x4d7284(0x449)](),_0x378c97=await _0x5e3026[_0x4d7284(0x1f5)]({'options':{..._0x346f13,..._0x2ae3e2},'args':[_0x2fb10b],'tdx':null});gracefulExit(_0x378c97);}),profileCmd[a2_0x30593f(0x414)](a2_0x30593f(0x25f))[a2_0x30593f(0x33c)](a2_0x30593f(0x413))[a2_0x30593f(0x47b)](a2_0x30593f(0x3e1),'Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x30593f(0x499)]('after',a2_0x30593f(0x28a))[a2_0x30593f(0x2f7)](async(_0x3f58d6,_0x4551e8)=>{const _0x2c7f1b=a2_0x30593f,_0x239814=new ProfileUseCommand(),_0x544e80=program[_0x2c7f1b(0x449)](),_0xe9d5b7=await _0x239814[_0x2c7f1b(0x1f5)]({'options':{..._0x544e80,..._0x4551e8},'args':[_0x3f58d6],'tdx':null});gracefulExit(_0xe9d5b7);});const engageCmd=program[a2_0x30593f(0x414)](a2_0x30593f(0x3f6))['description'](a2_0x30593f(0x2d7)),createEngageAction=_0x2eb1c2=>{return async(_0x34b117,_0x194c5c)=>{const _0x224913=a2_0x5591,_0x138a23=new _0x2eb1c2(),_0x23b8df=program['opts'](),_0x23507f=await createTDXInstance(_0x23b8df),_0xb24b14=await _0x138a23[_0x224913(0x1f5)]({'options':{..._0x23b8df,..._0x194c5c},'args':[_0x34b117],'tdx':_0x23507f});gracefulExit(_0xb24b14);};},createEngageNoArgAction=_0x19cb6e=>{return async _0x303ef0=>{const _0x4dc40a=a2_0x5591,_0x2f094f=new _0x19cb6e(),_0x469bb6=program[_0x4dc40a(0x449)](),_0x5ba0c5=await createTDXInstance(_0x469bb6),_0x53066c=await _0x2f094f[_0x4dc40a(0x1f5)]({'options':{..._0x469bb6,..._0x303ef0},'args':[],'tdx':_0x5ba0c5});gracefulExit(_0x53066c);};},createEngageListAction=_0x49930a=>{return async(_0x56e1ff,_0x424c81)=>{const _0x224325=a2_0x5591,_0x21aed7=new _0x49930a(),_0x14b484=program[_0x224325(0x449)](),_0x510beb=await createTDXInstance(_0x14b484),_0x15ca8e=await _0x21aed7[_0x224325(0x1f5)]({'options':{..._0x14b484,..._0x424c81},'args':_0x56e1ff?[_0x56e1ff]:[],'tdx':_0x510beb});gracefulExit(_0x15ca8e);};},campaignCmd=engageCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1e2))[a2_0x30593f(0x33c)](a2_0x30593f(0x395));campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))['description']('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x30593f(0x38f),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')['option'](a2_0x30593f(0x260),a2_0x30593f(0x34c))[a2_0x30593f(0x47b)]('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x2f7)](createEngageListAction(EngageCampaignsCommand)),engageCmd['command'](a2_0x30593f(0x25b))[a2_0x30593f(0x33c)](a2_0x30593f(0x445))[a2_0x30593f(0x47b)](a2_0x30593f(0x38f),a2_0x30593f(0x4a1))['option'](a2_0x30593f(0x260),a2_0x30593f(0x34c))[a2_0x30593f(0x47b)]('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x2f7)](createEngageListAction(EngageCampaignsCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x217))['description'](a2_0x30593f(0x249))['option']('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)]('--full',a2_0x30593f(0x3bb))[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x261))[a2_0x30593f(0x33c)](a2_0x30593f(0x3f7))[a2_0x30593f(0x26c)](a2_0x30593f(0x222),a2_0x30593f(0x27c))[a2_0x30593f(0x26c)](a2_0x30593f(0x38f),'Campaign\x20type\x20(email\x20or\x20push)')['option'](a2_0x30593f(0x360),'Workspace\x20name\x20(required)')[a2_0x30593f(0x47b)](a2_0x30593f(0x498),a2_0x30593f(0x44f))[a2_0x30593f(0x47b)]('--segment\x20<path>',a2_0x30593f(0x459))[a2_0x30593f(0x47b)](a2_0x30593f(0x3fd),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x30593f(0x47b)](a2_0x30593f(0x270),a2_0x30593f(0x1df))[a2_0x30593f(0x47b)](a2_0x30593f(0x242),a2_0x30593f(0x366))[a2_0x30593f(0x47b)](a2_0x30593f(0x484),a2_0x30593f(0x477))[a2_0x30593f(0x2f7)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x468))[a2_0x30593f(0x33c)]('Update\x20a\x20campaign')[a2_0x30593f(0x47b)]('--workspace\x20<name>','Workspace\x20name')[a2_0x30593f(0x47b)]('--name\x20<name>',a2_0x30593f(0x3c9))[a2_0x30593f(0x47b)](a2_0x30593f(0x498),a2_0x30593f(0x44f))[a2_0x30593f(0x47b)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x30593f(0x47b)](a2_0x30593f(0x3fd),a2_0x30593f(0x3da))[a2_0x30593f(0x47b)]('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x30593f(0x47b)](a2_0x30593f(0x242),'Delivery\x20start\x20time\x20(ISO\x208601\x20format)')[a2_0x30593f(0x47b)](a2_0x30593f(0x484),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x30593f(0x372))[a2_0x30593f(0x33c)](a2_0x30593f(0x403))[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a6),a2_0x30593f(0x3d6))[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x30593f(0x33c)]('Launch\x20a\x20campaign')[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x240))[a2_0x30593f(0x33c)](a2_0x30593f(0x251))['option'](a2_0x30593f(0x360),'Workspace\x20name')[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x30593f(0x414)]('resume\x20<name-or-id>')['description'](a2_0x30593f(0x2ff))[a2_0x30593f(0x47b)]('--workspace\x20<name>',a2_0x30593f(0x2d1))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x466))['description'](a2_0x30593f(0x41e))['option'](a2_0x30593f(0x360),a2_0x30593f(0x2d1))[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignDuplicateCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x452))['description']('Pull\x20campaigns\x20to\x20YAML\x20files')[a2_0x30593f(0x47b)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x30593f(0x222),a2_0x30593f(0x279))[a2_0x30593f(0x47b)](a2_0x30593f(0x38f),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x30593f(0x47b)](a2_0x30593f(0x427),'Show\x20what\x20would\x20be\x20written\x20without\x20writing')[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignPullCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x434))['description'](a2_0x30593f(0x238))[a2_0x30593f(0x47b)]('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x2de))[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignPushCommand)),campaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x29c))[a2_0x30593f(0x33c)]('Validate\x20campaign\x20YAML\x20files\x20locally')[a2_0x30593f(0x47b)]('--verbose',a2_0x30593f(0x2d6))[a2_0x30593f(0x2f7)](createEngageAction(EngageCampaignValidateCommand));const alwaysOnCampaignCmd=engageCmd['command'](a2_0x30593f(0x2fd))[a2_0x30593f(0x33c)](a2_0x30593f(0x3f1));alwaysOnCampaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))['description']('List\x20always-on\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x30593f(0x47b)](a2_0x30593f(0x38f),a2_0x30593f(0x4a1))['option'](a2_0x30593f(0x260),'Filter\x20by\x20status\x20(DRAFT,\x20LIVE,\x20PAUSED,\x20FINISHED)')[a2_0x30593f(0x26c)](a2_0x30593f(0x360),a2_0x30593f(0x47c))['action'](createEngageListAction(EngageAlwaysOnCampaignsCommand)),engageCmd[a2_0x30593f(0x414)](a2_0x30593f(0x28c))['description'](a2_0x30593f(0x26b))[a2_0x30593f(0x47b)](a2_0x30593f(0x38f),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x30593f(0x47b)](a2_0x30593f(0x260),a2_0x30593f(0x3ad))[a2_0x30593f(0x26c)]('--workspace\x20<name>','Workspace\x20name\x20(required)')[a2_0x30593f(0x2f7)](createEngageListAction(EngageAlwaysOnCampaignsCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x217))[a2_0x30593f(0x33c)](a2_0x30593f(0x1e6))[a2_0x30593f(0x26c)](a2_0x30593f(0x360),'Workspace\x20name\x20(required)')[a2_0x30593f(0x47b)](a2_0x30593f(0x253),a2_0x30593f(0x3bb))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignShowCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x261))[a2_0x30593f(0x33c)](a2_0x30593f(0x364))[a2_0x30593f(0x26c)](a2_0x30593f(0x222),a2_0x30593f(0x27c))[a2_0x30593f(0x26c)](a2_0x30593f(0x38f),a2_0x30593f(0x3df))[a2_0x30593f(0x26c)]('--workspace\x20<name>',a2_0x30593f(0x47c))[a2_0x30593f(0x47b)](a2_0x30593f(0x498),a2_0x30593f(0x44f))[a2_0x30593f(0x47b)](a2_0x30593f(0x494),a2_0x30593f(0x48b))[a2_0x30593f(0x47b)]('--enable-utm-tracking',a2_0x30593f(0x24d))[a2_0x30593f(0x2f7)](createEngageNoArgAction(EngageAlwaysOnCampaignCreateCommand)),alwaysOnCampaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x468))[a2_0x30593f(0x33c)]('Update\x20an\x20always-on\x20campaign')[a2_0x30593f(0x26c)](a2_0x30593f(0x360),a2_0x30593f(0x47c))[a2_0x30593f(0x47b)](a2_0x30593f(0x222),a2_0x30593f(0x3c9))[a2_0x30593f(0x47b)](a2_0x30593f(0x498),a2_0x30593f(0x44f))[a2_0x30593f(0x47b)]('--segment\x20<path>',a2_0x30593f(0x48b))[a2_0x30593f(0x47b)]('--enable-utm-tracking','Enable\x20UTM\x20tracking')['action'](createEngageAction(EngageAlwaysOnCampaignUpdateCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x372))[a2_0x30593f(0x33c)](a2_0x30593f(0x232))[a2_0x30593f(0x26c)](a2_0x30593f(0x360),'Workspace\x20name\x20(required)')[a2_0x30593f(0x47b)]('--yes',a2_0x30593f(0x3d6))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignDeleteCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x487))[a2_0x30593f(0x33c)](a2_0x30593f(0x278))['requiredOption']('--workspace\x20<name>',a2_0x30593f(0x47c))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignLaunchCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x240))[a2_0x30593f(0x33c)](a2_0x30593f(0x3ec))[a2_0x30593f(0x26c)](a2_0x30593f(0x360),'Workspace\x20name\x20(required)')[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignPauseCommand)),alwaysOnCampaignCmd['command'](a2_0x30593f(0x271))[a2_0x30593f(0x33c)]('Resume\x20a\x20paused\x20always-on\x20campaign')[a2_0x30593f(0x26c)](a2_0x30593f(0x360),a2_0x30593f(0x47c))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignResumeCommand)),alwaysOnCampaignCmd[a2_0x30593f(0x414)]('finish\x20<name-or-id>')[a2_0x30593f(0x33c)](a2_0x30593f(0x308))['requiredOption'](a2_0x30593f(0x360),a2_0x30593f(0x47c))['option'](a2_0x30593f(0x3a6),a2_0x30593f(0x3d6))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignFinishCommand)),alwaysOnCampaignCmd[a2_0x30593f(0x414)](a2_0x30593f(0x466))[a2_0x30593f(0x33c)](a2_0x30593f(0x390))[a2_0x30593f(0x26c)]('--workspace\x20<name>','Workspace\x20name\x20(required)')['requiredOption'](a2_0x30593f(0x222),a2_0x30593f(0x286))[a2_0x30593f(0x2f7)](createEngageAction(EngageAlwaysOnCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x30593f(0x414)]('template')[a2_0x30593f(0x33c)]('Email\x20template\x20management');templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))[a2_0x30593f(0x2f7)](createEngageListAction(EngageTemplatesCommand)),engageCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3ff))['description'](a2_0x30593f(0x425))[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))['action'](createEngageListAction(EngageTemplatesCommand)),templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x217))[a2_0x30593f(0x33c)]('Show\x20email\x20template\x20details')[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x253),a2_0x30593f(0x3bb))[a2_0x30593f(0x2f7)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x261))[a2_0x30593f(0x33c)](a2_0x30593f(0x273))[a2_0x30593f(0x26c)]('--name\x20<name>','Template\x20name')['requiredOption'](a2_0x30593f(0x423),a2_0x30593f(0x2ce))[a2_0x30593f(0x47b)]('--html\x20<html>',a2_0x30593f(0x2fa))[a2_0x30593f(0x47b)]('--html-file\x20<path>',a2_0x30593f(0x2d5))[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x47c))[a2_0x30593f(0x47b)]('--plaintext\x20<text>',a2_0x30593f(0x2bf))[a2_0x30593f(0x47b)](a2_0x30593f(0x2c9),a2_0x30593f(0x470),_0xc48c56=>{const _0x5b6310=a2_0x30593f;if(!['beefree',_0x5b6310(0x23e)][_0x5b6310(0x3a7)](_0xc48c56))throw new SDKError(ErrorCode[_0x5b6310(0x46c)],_0x5b6310(0x40b)+_0xc48c56+_0x5b6310(0x48e));return _0xc48c56;})[a2_0x30593f(0x2f7)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x30593f(0x468))[a2_0x30593f(0x33c)]('Update\x20an\x20email\x20template')[a2_0x30593f(0x47b)]('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x222),a2_0x30593f(0x2e2))['option'](a2_0x30593f(0x423),a2_0x30593f(0x2ce))[a2_0x30593f(0x47b)](a2_0x30593f(0x424),a2_0x30593f(0x2fa))['option']('--html-file\x20<path>','Read\x20HTML\x20template\x20from\x20file')[a2_0x30593f(0x47b)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x30593f(0x2f7)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x3af))['description'](a2_0x30593f(0x45e))['option']('--workspace\x20<name>',a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x222),'Pull\x20specific\x20template\x20by\x20name')[a2_0x30593f(0x47b)](a2_0x30593f(0x2d8),a2_0x30593f(0x3d6))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x471))['action'](createEngageAction(EngageTemplatePullCommand)),templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x434))[a2_0x30593f(0x33c)](a2_0x30593f(0x25d))['option'](a2_0x30593f(0x360),'Workspace\x20name')['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x2de))['action'](createEngageAction(EngageTemplatePushCommand)),templateCmd[a2_0x30593f(0x414)]('validate\x20[target]')['description'](a2_0x30593f(0x39d))[a2_0x30593f(0x47b)](a2_0x30593f(0x31b),'Show\x20all\x20files\x20including\x20valid\x20ones')[a2_0x30593f(0x2f7)](createEngageAction(EngageTemplateValidateCommand)),templateCmd[a2_0x30593f(0x414)](a2_0x30593f(0x372))[a2_0x30593f(0x33c)](a2_0x30593f(0x3a2))[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))['option']('--yes',a2_0x30593f(0x3d6))[a2_0x30593f(0x2f7)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1ee))[a2_0x30593f(0x33c)](a2_0x30593f(0x2e4));workspaceCmd['command'](a2_0x30593f(0x1fc))['description'](a2_0x30593f(0x3ee))['action'](createEngageListAction(EngageWorkspacesCommand)),engageCmd[a2_0x30593f(0x414)](a2_0x30593f(0x2e3))['description'](a2_0x30593f(0x220))[a2_0x30593f(0x2f7)](createEngageListAction(EngageWorkspacesCommand)),workspaceCmd[a2_0x30593f(0x414)](a2_0x30593f(0x217))[a2_0x30593f(0x33c)](a2_0x30593f(0x208))[a2_0x30593f(0x47b)]('--full',a2_0x30593f(0x3bb))[a2_0x30593f(0x2f7)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x30593f(0x414)](a2_0x30593f(0x261))['description'](a2_0x30593f(0x207))['requiredOption'](a2_0x30593f(0x222),a2_0x30593f(0x2d1))[a2_0x30593f(0x47b)](a2_0x30593f(0x498),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x30593f(0x414)]('update\x20<name-or-id>')[a2_0x30593f(0x33c)](a2_0x30593f(0x462))[a2_0x30593f(0x47b)]('--name\x20<name>','New\x20workspace\x20name')[a2_0x30593f(0x47b)]('--description\x20<desc>',a2_0x30593f(0x233))[a2_0x30593f(0x2f7)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x30593f(0x414)](a2_0x30593f(0x372))[a2_0x30593f(0x33c)](a2_0x30593f(0x1e5))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a6),a2_0x30593f(0x3d6))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x30593f(0x414)](a2_0x30593f(0x25f))['description'](a2_0x30593f(0x3dd))['action'](createEngageAction(EngageWorkspaceUseCommand));const deliveryCmd=program['command'](a2_0x30593f(0x399))[a2_0x30593f(0x33c)](a2_0x30593f(0x365));deliveryCmd[a2_0x30593f(0x414)](a2_0x30593f(0x26e))[a2_0x30593f(0x33c)]('List\x20email\x20senders')[a2_0x30593f(0x47b)](a2_0x30593f(0x360),a2_0x30593f(0x2d1))[a2_0x30593f(0x2f7)](createEngageListAction(DeliveryEmailSendersCommand));const connectionCmd=program[a2_0x30593f(0x414)](a2_0x30593f(0x3e7))[a2_0x30593f(0x33c)](a2_0x30593f(0x326)),connectionListAction=async _0x4cd5a6=>{const _0x3ca5af=new ConnectionListCommand(),_0x565184=program['opts'](),_0x48b63a=await createTDXInstance(_0x565184),_0x4aef96=await _0x3ca5af['run']({'options':{..._0x565184,..._0x4cd5a6},'args':[],'tdx':_0x48b63a});gracefulExit(_0x4aef96);};connectionCmd[a2_0x30593f(0x414)](a2_0x30593f(0x32d))[a2_0x30593f(0x33c)](a2_0x30593f(0x474))[a2_0x30593f(0x2f7)](connectionListAction),program[a2_0x30593f(0x414)]('connections',{'hidden':!![]})[a2_0x30593f(0x33c)](a2_0x30593f(0x406))['action'](connectionListAction),connectionCmd['command']('show\x20<name>')[a2_0x30593f(0x33c)](a2_0x30593f(0x431))['action'](async(_0x573207,_0x2c8e13)=>{const _0x19c456=a2_0x30593f,_0x5b69a4=new ConnectionShowCommand(),_0x4d0e52=program[_0x19c456(0x449)](),_0x11ac10=await createTDXInstance(_0x4d0e52),_0x1849d6=await _0x5b69a4[_0x19c456(0x1f5)]({'options':{..._0x4d0e52,..._0x2c8e13},'args':[_0x573207],'tdx':_0x11ac10});gracefulExit(_0x1849d6);}),connectionCmd[a2_0x30593f(0x414)](a2_0x30593f(0x317))[a2_0x30593f(0x33c)](a2_0x30593f(0x3e8))[a2_0x30593f(0x2f7)](async(_0x2439be,_0x54e68)=>{const _0x5a4a56=a2_0x30593f,_0x47c421=new ConnectionSchemaCommand(),_0x3d4ef9=program[_0x5a4a56(0x449)](),_0x22c2d8=await createTDXInstance(_0x3d4ef9),_0x2bbe34=await _0x47c421[_0x5a4a56(0x1f5)]({'options':{..._0x3d4ef9,..._0x54e68},'args':[_0x2439be],'tdx':_0x22c2d8});gracefulExit(_0x2bbe34);}),connectionCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1e3))['description'](a2_0x30593f(0x22c))[a2_0x30593f(0x2f7)](async _0xf25350=>{const _0x34f56a=a2_0x30593f,_0x84647c=new ConnectionTypesCommand(),_0x39793f=program[_0x34f56a(0x449)](),_0x1fc957=await createTDXInstance(_0x39793f),_0x25936f=await _0x84647c[_0x34f56a(0x1f5)]({'options':{..._0x39793f,..._0xf25350},'args':[],'tdx':_0x1fc957});gracefulExit(_0x25936f);}),connectionCmd[a2_0x30593f(0x414)]('settings\x20<type>')['description'](a2_0x30593f(0x32f))[a2_0x30593f(0x2f7)](async(_0x25ef0b,_0x3a0f84)=>{const _0x1ff00b=a2_0x30593f,_0x3e00fb=new ConnectionSettingsCommand(),_0xc52734=program['opts'](),_0x575acc=await createTDXInstance(_0xc52734),_0x48c0cd=await _0x3e00fb[_0x1ff00b(0x1f5)]({'options':{..._0xc52734,..._0x3a0f84},'args':[_0x25ef0b],'tdx':_0x575acc});gracefulExit(_0x48c0cd);});const journeyCmd=program[a2_0x30593f(0x414)]('journey')[a2_0x30593f(0x33c)](a2_0x30593f(0x20a)),journeyListAction=async(_0x345006,_0x37bf86)=>{const _0x456aa7=a2_0x30593f,_0x6f740d=new JourneyListCommand(),_0x5d27f4=program[_0x456aa7(0x449)](),_0x29dcc7=await createTDXInstance(_0x5d27f4),_0x386fe9=await _0x6f740d['run']({'options':{..._0x5d27f4,..._0x37bf86},'args':_0x345006?[_0x345006]:[],'tdx':_0x29dcc7});gracefulExit(_0x386fe9);};journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))[a2_0x30593f(0x33c)](a2_0x30593f(0x40c))[a2_0x30593f(0x2f7)](journeyListAction),journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x44c))[a2_0x30593f(0x33c)](a2_0x30593f(0x420))[a2_0x30593f(0x47b)](a2_0x30593f(0x43e),'Open\x20journey\x20in\x20web\x20browser')[a2_0x30593f(0x47b)]('--include-stats','Include\x20execution\x20statistics')[a2_0x30593f(0x2f7)](async(_0x353455,_0x36b62f)=>{const _0x4ededc=a2_0x30593f,_0x55b506=new JourneyViewCommand(),_0x2330ee=program['opts'](),_0x311375=await createTDXInstance(_0x2330ee),_0x3f558b=await _0x55b506[_0x4ededc(0x1f5)]({'options':{..._0x2330ee,..._0x36b62f},'args':[_0x353455],'tdx':_0x311375});gracefulExit(_0x3f558b);}),journeyCmd['command'](a2_0x30593f(0x2be))[a2_0x30593f(0x33c)](a2_0x30593f(0x210))[a2_0x30593f(0x47b)](a2_0x30593f(0x2f2),'Show\x20stats\x20for\x20specific\x20stage')['option']('--from\x20<date>',a2_0x30593f(0x310))[a2_0x30593f(0x47b)](a2_0x30593f(0x2b1),a2_0x30593f(0x234))[a2_0x30593f(0x47b)](a2_0x30593f(0x2fb),a2_0x30593f(0x457))['action'](async(_0x1344d3,_0x22320f)=>{const _0x5e8bc1=a2_0x30593f,_0x53a223=new JourneyStatsCommand(),_0x277d78=program[_0x5e8bc1(0x449)](),_0x351864=await createTDXInstance(_0x277d78),_0x780c72=await _0x53a223[_0x5e8bc1(0x1f5)]({'options':{..._0x277d78,..._0x22320f},'args':[_0x1344d3],'tdx':_0x351864});gracefulExit(_0x780c72);}),journeyCmd[a2_0x30593f(0x414)]('traffic\x20<name-or-path>')[a2_0x30593f(0x33c)](a2_0x30593f(0x2b5))['option'](a2_0x30593f(0x38f),a2_0x30593f(0x351))[a2_0x30593f(0x47b)](a2_0x30593f(0x280),a2_0x30593f(0x310))[a2_0x30593f(0x47b)](a2_0x30593f(0x2b1),'End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')['option'](a2_0x30593f(0x356),a2_0x30593f(0x22e),_0x3045d3=>{const _0x2a9d08=a2_0x30593f,_0x2a6d98=parseInt(_0x3045d3,0xa);if(isNaN(_0x2a6d98))throw new Error(_0x2a9d08(0x3b9)+_0x3045d3+_0x2a9d08(0x29a));return _0x2a6d98;})['action'](async(_0x5d6afa,_0x359b85)=>{const _0x3eadfd=a2_0x30593f,_0x1b6f7d=new JourneyTrafficCommand(),_0x2ab259=program[_0x3eadfd(0x449)](),_0x56993a=await createTDXInstance(_0x2ab259),_0x1a4e76=await _0x1b6f7d[_0x3eadfd(0x1f5)]({'options':{..._0x2ab259,..._0x359b85},'args':[_0x5d6afa],'tdx':_0x56993a});gracefulExit(_0x1a4e76);}),journeyCmd[a2_0x30593f(0x414)]('pause\x20<name-or-path>')[a2_0x30593f(0x33c)](a2_0x30593f(0x316))[a2_0x30593f(0x2f7)](async(_0x5ace69,_0x19e62f)=>{const _0x1efe78=a2_0x30593f,_0x1ffc40=new JourneyPauseCommand(),_0x5e5fd2=program['opts'](),_0xf5ef8c=await createTDXInstance(_0x5e5fd2),_0xb33af9=await _0x1ffc40[_0x1efe78(0x1f5)]({'options':{..._0x5e5fd2,..._0x19e62f},'args':[_0x5ace69],'tdx':_0xf5ef8c});gracefulExit(_0xb33af9);}),journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x36e))[a2_0x30593f(0x33c)](a2_0x30593f(0x46d))[a2_0x30593f(0x2f7)](async(_0x4fd962,_0x532e94)=>{const _0x3570b7=a2_0x30593f,_0x447523=new JourneyResumeCommand(),_0x5bebcc=program[_0x3570b7(0x449)](),_0x37e520=await createTDXInstance(_0x5bebcc),_0x4f3472=await _0x447523['run']({'options':{..._0x5bebcc,..._0x532e94},'args':[_0x4fd962],'tdx':_0x37e520});gracefulExit(_0x4f3472);}),journeyCmd[a2_0x30593f(0x414)]('pull\x20[name]')[a2_0x30593f(0x33c)](a2_0x30593f(0x265))['option'](a2_0x30593f(0x427),a2_0x30593f(0x1f4))[a2_0x30593f(0x2f7)](async(_0x532fcc,_0x3f4c96)=>{const _0x3a5504=a2_0x30593f,_0x215769=new JourneyPullCommand(),_0x5b7b42=program[_0x3a5504(0x449)](),_0x2dd760=await createTDXInstance(_0x5b7b42),_0x470b8f=await _0x215769['run']({'options':{..._0x5b7b42,..._0x3f4c96},'args':_0x532fcc?[_0x532fcc]:[],'tdx':_0x2dd760});gracefulExit(_0x470b8f);}),journeyCmd[a2_0x30593f(0x414)]('push\x20[target]')['description'](a2_0x30593f(0x2bb))['action'](async(_0x217e76,_0xb94a7e)=>{const _0x1b8627=a2_0x30593f,_0x28dfbf=new JourneyPushCommand(),_0x57524b=program[_0x1b8627(0x449)](),_0x2082d6=await createTDXInstance(_0x57524b),_0x3e3ea9=await _0x28dfbf[_0x1b8627(0x1f5)]({'options':{..._0x57524b,..._0xb94a7e},'args':_0x217e76?[_0x217e76]:[],'tdx':_0x2082d6});gracefulExit(_0x3e3ea9);}),journeyCmd['command']('columns\x20<name-or-path>')[a2_0x30593f(0x33c)](a2_0x30593f(0x338))['action'](async(_0x2da072,_0x2087e7)=>{const _0x47b704=a2_0x30593f,_0x2d1fce=new JourneyColumnsCommand(),_0x5082ae=program[_0x47b704(0x449)](),_0x8e5f6c=await createTDXInstance(_0x5082ae),_0x4f58b4=await _0x2d1fce[_0x47b704(0x1f5)]({'options':{..._0x5082ae,..._0x2087e7},'args':[_0x2da072],'tdx':_0x8e5f6c});gracefulExit(_0x4f58b4);}),journeyCmd['command'](a2_0x30593f(0x441))['description'](a2_0x30593f(0x39c))[a2_0x30593f(0x2f7)](async(_0x229d2c,_0xe4edc4)=>{const _0x3cc2c8=new JourneyActivationsCommand(),_0x1474e0=program['opts'](),_0x49495b=await createTDXInstance(_0x1474e0),_0x58a0d8=await _0x3cc2c8['run']({'options':{..._0x1474e0,..._0xe4edc4},'args':[_0x229d2c],'tdx':_0x49495b});gracefulExit(_0x58a0d8);}),journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x387))[a2_0x30593f(0x33c)](a2_0x30593f(0x3f2))['action'](async(_0x5cdae5,_0x4743bb)=>{const _0x3c1e88=a2_0x30593f,_0x4ccd4c=new JourneyVersionsCommand(),_0x51a1b0=program[_0x3c1e88(0x449)](),_0x2e6c52=await createTDXInstance(_0x51a1b0),_0x16511c=await _0x4ccd4c[_0x3c1e88(0x1f5)]({'options':{..._0x51a1b0,..._0x4743bb},'args':[_0x5cdae5],'tdx':_0x2e6c52});gracefulExit(_0x16511c);});const journeyVersionCmd=journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x269))['description'](a2_0x30593f(0x2c6));journeyVersionCmd[a2_0x30593f(0x414)]('create\x20<name-or-path>')[a2_0x30593f(0x33c)](a2_0x30593f(0x412))[a2_0x30593f(0x2f7)](async(_0x1fd621,_0x3e99c7)=>{const _0xc554e2=a2_0x30593f,_0x320f05=new JourneyVersionCreateCommand(),_0x4cc8a9=program[_0xc554e2(0x449)](),_0x3fc054=await createTDXInstance(_0x4cc8a9),_0x4766ef=await _0x320f05['run']({'options':{..._0x4cc8a9,..._0x3e99c7},'args':[_0x1fd621],'tdx':_0x3fc054});gracefulExit(_0x4766ef);}),journeyVersionCmd[a2_0x30593f(0x414)](a2_0x30593f(0x44c))['description']('View\x20a\x20specific\x20version\x20of\x20a\x20journey')[a2_0x30593f(0x26c)](a2_0x30593f(0x4a3),a2_0x30593f(0x1ef))[a2_0x30593f(0x2f7)](async(_0x3fa8ef,_0x4b69df)=>{const _0x480e68=a2_0x30593f,_0x271f12=new JourneyVersionViewCommand(),_0x10be73=program[_0x480e68(0x449)](),_0x33f051=await createTDXInstance(_0x10be73),_0x5533bf=await _0x271f12[_0x480e68(0x1f5)]({'options':{..._0x10be73,..._0x4b69df},'args':[_0x3fa8ef],'tdx':_0x33f051});gracefulExit(_0x5533bf);}),journeyCmd[a2_0x30593f(0x414)](a2_0x30593f(0x29c))[a2_0x30593f(0x33c)](a2_0x30593f(0x2b9))[a2_0x30593f(0x2f7)](async(_0x27c193,_0xacc2ad)=>{const _0x31c047=a2_0x30593f,_0x544e85=new JourneyValidateCommand(),_0x4b40e9=program[_0x31c047(0x449)](),_0x202858=await createTDXInstance(_0x4b40e9),_0x535d6c=await _0x544e85[_0x31c047(0x1f5)]({'options':{..._0x4b40e9,..._0xacc2ad},'args':_0x27c193?[_0x27c193]:[],'tdx':_0x202858});gracefulExit(_0x535d6c);}),program['command'](a2_0x30593f(0x227))[a2_0x30593f(0x33c)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x30593f(0x2f7)](journeyListAction);const agentSyncCmd=program[a2_0x30593f(0x414)](a2_0x30593f(0x402))[a2_0x30593f(0x33c)](a2_0x30593f(0x342));agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x22d))[a2_0x30593f(0x33c)](a2_0x30593f(0x456))[a2_0x30593f(0x47b)]('-o,\x20--output\x20<dir>',a2_0x30593f(0x2a3))[a2_0x30593f(0x47b)](a2_0x30593f(0x2dd),a2_0x30593f(0x42d))[a2_0x30593f(0x47b)]('-a,\x20--agent\x20<name>',a2_0x30593f(0x36b))['action'](async(_0x285ec3,_0x20c566,_0xb929b6)=>{const _0x44fc83=a2_0x30593f,_0x5e5b30=new AgentPullCommand(),_0x27f2a5=program[_0x44fc83(0x449)](),_0x59744b=await createTDXInstance(_0x27f2a5),_0x3b8a80=[];if(_0x285ec3)_0x3b8a80[_0x44fc83(0x2a6)](_0x285ec3);if(_0x20c566)_0x3b8a80['push'](_0x20c566);const _0x2a5574=await _0x5e5b30[_0x44fc83(0x1f5)]({'options':{..._0x27f2a5,..._0xb929b6},'args':_0x3b8a80,'tdx':_0x59744b});gracefulExit(_0x2a5574);}),agentSyncCmd['command']('push\x20[path]')[a2_0x30593f(0x33c)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x30593f(0x47b)](a2_0x30593f(0x2dd),a2_0x30593f(0x1f3))[a2_0x30593f(0x2f7)](async(_0x25f1eb,_0x29192a)=>{const _0x394e19=a2_0x30593f,_0x487842=new AgentPushCommand(),_0x111b18=program[_0x394e19(0x449)](),_0x428dce=await createTDXInstance(_0x111b18),_0x385014=await _0x487842[_0x394e19(0x1f5)]({'options':{..._0x111b18,..._0x29192a},'args':_0x25f1eb?[_0x25f1eb]:[],'tdx':_0x428dce});gracefulExit(_0x385014);}),agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x236))[a2_0x30593f(0x33c)](a2_0x30593f(0x231))[a2_0x30593f(0x47b)](a2_0x30593f(0x35d),a2_0x30593f(0x33a))[a2_0x30593f(0x2f7)](async(_0x2dc3cf,_0x507912)=>{const _0xcc9e2f=a2_0x30593f,_0x287e4a=new AgentCloneCommand(),_0x5eacbf=program[_0xcc9e2f(0x449)](),_0x5096f8=await createTDXInstance(_0x5eacbf),_0x58f792=await _0x287e4a['run']({'options':{..._0x5eacbf,..._0x507912},'args':_0x2dc3cf?[_0x2dc3cf]:[],'tdx':_0x5096f8});gracefulExit(_0x58f792);}),agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x440))[a2_0x30593f(0x33c)](a2_0x30593f(0x2b0))[a2_0x30593f(0x47b)]('--name\x20<names>',a2_0x30593f(0x460))[a2_0x30593f(0x47b)](a2_0x30593f(0x248),a2_0x30593f(0x2f1))[a2_0x30593f(0x47b)](a2_0x30593f(0x427),a2_0x30593f(0x375))['option'](a2_0x30593f(0x417),'Generate\x20test\x20conversations\x20without\x20evaluation')[a2_0x30593f(0x47b)](a2_0x30593f(0x2ef),a2_0x30593f(0x35e))[a2_0x30593f(0x2f7)](async(_0x37d422,_0x185410)=>{const _0x5ab80e=a2_0x30593f,_0x1af57c=new AgentTestCommand(),_0x530150=program[_0x5ab80e(0x449)](),_0x4f1237=await createTDXInstance(_0x530150),_0x425644=await _0x1af57c['run']({'options':{..._0x530150,..._0x185410},'args':_0x37d422?[_0x37d422]:[],'tdx':_0x4f1237});gracefulExit(_0x425644);}),agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x1fc))['description'](a2_0x30593f(0x30d))['action'](llmAgentListAction),agentSyncCmd[a2_0x30593f(0x414)]('show\x20<agent-name>')[a2_0x30593f(0x33c)](a2_0x30593f(0x245))[a2_0x30593f(0x2f7)](async(_0x4e40d9,_0x50c51a)=>{const _0x5ecff3=a2_0x30593f,_0x36952f=new LLMAgentShowCommand(),_0x4402b5=program[_0x5ecff3(0x449)](),_0x3919d6=await createTDXInstance(_0x4402b5),_0x3ef288=await _0x36952f[_0x5ecff3(0x1f5)]({'options':{..._0x4402b5,..._0x50c51a},'args':[_0x4e40d9],'tdx':_0x3919d6});gracefulExit(_0x3ef288);}),agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x21f))[a2_0x30593f(0x33c)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x30593f(0x47b)](a2_0x30593f(0x34a),a2_0x30593f(0x45f))['option'](a2_0x30593f(0x3ef),a2_0x30593f(0x40d),'claude-4.5-sonnet')[a2_0x30593f(0x47b)](a2_0x30593f(0x336),'Starter\x20message')['option']('--max-tool-iterations\x20<n>',a2_0x30593f(0x35c),'4')[a2_0x30593f(0x47b)](a2_0x30593f(0x31c),a2_0x30593f(0x3c7),a2_0x30593f(0x392))['action'](async(_0x7c4476,_0xc3830c)=>{const _0x41c2ec=a2_0x30593f,_0x2ec672=new LLMAgentCreateCommand(),_0x53e4cf=program[_0x41c2ec(0x449)](),_0x3f9d42=await createTDXInstance(_0x53e4cf),_0x4fe4d4=await _0x2ec672[_0x41c2ec(0x1f5)]({'options':{..._0x53e4cf,..._0xc3830c},'args':[_0x7c4476],'tdx':_0x3f9d42});gracefulExit(_0x4fe4d4);}),agentSyncCmd[a2_0x30593f(0x414)](a2_0x30593f(0x411))[a2_0x30593f(0x33c)](a2_0x30593f(0x415))[a2_0x30593f(0x47b)](a2_0x30593f(0x29d),'Agent\x20name')[a2_0x30593f(0x47b)](a2_0x30593f(0x442),a2_0x30593f(0x2a9))[a2_0x30593f(0x47b)](a2_0x30593f(0x3a4),a2_0x30593f(0x32c))[a2_0x30593f(0x47b)]('--starter-message\x20<text>','Starter\x20message')['action'](async(_0x43976a,_0x2e84f4)=>{const _0x445974=a2_0x30593f,_0x39855b=new LLMAgentUpdateCommand(),_0x205d08=program[_0x445974(0x449)](),_0x3ed5d6=await createTDXInstance(_0x205d08),_0x4ee933=await _0x39855b[_0x445974(0x1f5)]({'options':{..._0x205d08,..._0x2e84f4},'args':[_0x43976a],'tdx':_0x3ed5d6});gracefulExit(_0x4ee933);}),agentSyncCmd['command'](a2_0x30593f(0x224))[a2_0x30593f(0x33c)](a2_0x30593f(0x426))[a2_0x30593f(0x2f7)](async(_0x34227e,_0x1d1ea3)=>{const _0x3c77bd=a2_0x30593f,_0x51ec0d=new LLMAgentDeleteCommand(),_0x482825=program[_0x3c77bd(0x449)](),_0x37a745=await createTDXInstance(_0x482825),_0x2fbbf8=await _0x51ec0d['run']({'options':{..._0x482825,..._0x1d1ea3},'args':[_0x34227e],'tdx':_0x37a745});gracefulExit(_0x2fbbf8);}),program[a2_0x30593f(0x414)](a2_0x30593f(0x49d),{'hidden':!![]})[a2_0x30593f(0x2f7)](()=>{const _0x1c813b=a2_0x30593f;function _0x3791fc(_0xc576a6,_0x2fff79){const _0x2f4827=a2_0x5591,_0x41d4c2=[];for(const _0x3801d4 of _0xc576a6[_0x2f4827(0x331)]){if(_0x3801d4[_0x2f4827(0x39b)])continue;const _0x44130d=_0x2fff79?_0x2fff79+'\x20'+_0x3801d4['name']():_0x3801d4['name'](),_0x200959=_0x44130d[_0x2f4827(0x28b)]('\x20')[0x0],_0x39378c=COMMAND_CATEGORIES[_0x2f4827(0x1fb)](_0x4be301=>_0x4be301[_0x2f4827(0x331)][_0x2f4827(0x3a7)](_0x200959)),_0x4bf329=_0x39378c?.[_0x2f4827(0x332)]??'';if(_0x3801d4['commands'][_0x2f4827(0x475)]>0x0)_0x41d4c2['push'](..._0x3791fc(_0x3801d4,_0x44130d));else{const _0x5696d0=(_0x3801d4['registeredArguments']||[])[_0x2f4827(0x446)](_0x43f89c=>{const _0x4af9e8=_0x2f4827,_0xca1b6f=_0x43f89c[_0x4af9e8(0x36c)]?_0x43f89c['name']()+_0x4af9e8(0x2bd):_0x43f89c['name']();return _0x43f89c['required']?'<'+_0xca1b6f+'>':'['+_0xca1b6f+']';})[_0x2f4827(0x3b2)]('\x20'),_0x3d7394=_0x3801d4[_0x2f4827(0x2dc)][_0x2f4827(0x215)](_0x298de8=>!_0x298de8[_0x2f4827(0x1fa)]&&_0x298de8[_0x2f4827(0x322)]!==_0x2f4827(0x281))[_0x2f4827(0x446)](_0x164023=>({'flags':_0x164023[_0x2f4827(0x396)],'description':_0x164023[_0x2f4827(0x33c)]}));_0x41d4c2['push']({'name':_0x44130d,'description':_0x3801d4[_0x2f4827(0x33c)](),'group':_0x4bf329,'usage':_0x5696d0,'options':_0x3d7394});}}return _0x41d4c2;}console[_0x1c813b(0x23d)](JSON[_0x1c813b(0x2a4)](_0x3791fc(program,''))),gracefulExit(0x0);});export{program};export function runCLI(){const _0x43666e=a2_0x30593f,_0x37d4bf=!process[_0x43666e(0x325)]['slice'](0x2)['length'];showBriefHelp=_0x37d4bf,program[_0x43666e(0x4a0)](process['argv']);_0x37d4bf&&program['outputHelp']();const _0x13ae5d=process[_0x43666e(0x325)][0x2]===_0x43666e(0x221);if(process[_0x43666e(0x384)][_0x43666e(0x436)]&&process[_0x43666e(0x325)][_0x43666e(0x475)]>0x2&&!isDevVersion()&&!_0x13ae5d){const _0x4b7c84=loadReleaseChannel();checkForUpdate(currentVersion,_0x4b7c84)['then'](_0x59bd3f=>{_0x59bd3f&&displayUpdateNotification(_0x59bd3f);})[_0x43666e(0x22b)](()=>{});}}