@treasuredata/tdx 0.14.0 → 0.14.1

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 (160) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/api-command.js.map +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts +1 -0
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/job-command.js +1 -1
  25. package/dist/commands/journey-command.js +1 -1
  26. package/dist/commands/journey-validate-command.js +1 -1
  27. package/dist/commands/llm-command.js +1 -1
  28. package/dist/commands/llm-proxy.js +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/profile-command.d.ts +3 -4
  31. package/dist/commands/profile-command.d.ts.map +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profile-command.js.map +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segment-validate-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/tables.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/command-output.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/constants.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/core/version.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/proxy/anthropic-adapter.js +1 -1
  65. package/dist/proxy/claude-usage-tracker.d.ts +2 -0
  66. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  67. package/dist/proxy/claude-usage-tracker.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  69. package/dist/proxy/context-signature.js +1 -1
  70. package/dist/proxy/conversation-utils.js +1 -1
  71. package/dist/proxy/passthrough-server.d.ts +86 -0
  72. package/dist/proxy/passthrough-server.d.ts.map +1 -0
  73. package/dist/proxy/passthrough-server.js +1 -0
  74. package/dist/proxy/passthrough-server.js.map +1 -0
  75. package/dist/proxy/server.js +1 -1
  76. package/dist/proxy/session-cache.js +1 -1
  77. package/dist/proxy/sse-usage-parser.d.ts +99 -0
  78. package/dist/proxy/sse-usage-parser.d.ts.map +1 -0
  79. package/dist/proxy/sse-usage-parser.js +1 -0
  80. package/dist/proxy/sse-usage-parser.js.map +1 -0
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/api.js +1 -1
  85. package/dist/sdk/client/cdp-api-client.js +1 -1
  86. package/dist/sdk/client/endpoints.d.ts +5 -0
  87. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  88. package/dist/sdk/client/endpoints.js +1 -1
  89. package/dist/sdk/client/endpoints.js.map +1 -1
  90. package/dist/sdk/client/engage-api-client.js +1 -1
  91. package/dist/sdk/client/http-client.js +1 -1
  92. package/dist/sdk/client/llm-api-client.js +1 -1
  93. package/dist/sdk/client/rate-limiter.js +1 -1
  94. package/dist/sdk/client/td-api-client.js +1 -1
  95. package/dist/sdk/client/trino-api-client.js +1 -1
  96. package/dist/sdk/client/workflow-client.js +1 -1
  97. package/dist/sdk/connection-validator.js +1 -1
  98. package/dist/sdk/connection.js +1 -1
  99. package/dist/sdk/engage.js +1 -1
  100. package/dist/sdk/errors.js +1 -1
  101. package/dist/sdk/index.js +1 -1
  102. package/dist/sdk/io/index.js +1 -1
  103. package/dist/sdk/io/node-filesystem.js +1 -1
  104. package/dist/sdk/job.js +1 -1
  105. package/dist/sdk/journey.js +1 -1
  106. package/dist/sdk/llm/chat-cache.js +1 -1
  107. package/dist/sdk/llm/index.js +1 -1
  108. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  109. package/dist/sdk/llm/model-aliases.js +1 -1
  110. package/dist/sdk/llm/model-factors.js +1 -1
  111. package/dist/sdk/query/index.js +1 -1
  112. package/dist/sdk/query/sql-parser.js +1 -1
  113. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  114. package/dist/sdk/segment/fields-display.js +1 -1
  115. package/dist/sdk/segment/file-discovery.js +1 -1
  116. package/dist/sdk/segment/journey-utils.js +1 -1
  117. package/dist/sdk/segment/journey-yaml.js +1 -1
  118. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  119. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  120. package/dist/sdk/segment/pull-workflow.js +1 -1
  121. package/dist/sdk/segment/push-workflow.js +1 -1
  122. package/dist/sdk/segment/resolution-context.js +1 -1
  123. package/dist/sdk/segment/segment-path-parser.js +1 -1
  124. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  125. package/dist/sdk/segment/target-resolution.js +1 -1
  126. package/dist/sdk/segment/tdx-config.js +1 -1
  127. package/dist/sdk/segment/validate-files.js +1 -1
  128. package/dist/sdk/segment/yaml-validator.js +1 -1
  129. package/dist/sdk/segment.js +1 -1
  130. package/dist/sdk/types/index.d.ts +1 -1
  131. package/dist/sdk/types/index.d.ts.map +1 -1
  132. package/dist/sdk/types/index.js +1 -1
  133. package/dist/sdk/types/progress.js +1 -1
  134. package/dist/sdk/user.js +1 -1
  135. package/dist/sdk/util/format-detector.js +1 -1
  136. package/dist/sdk/util/formatters.js +1 -1
  137. package/dist/sdk/util/index.js +1 -1
  138. package/dist/sdk/util/tree-formatter.js +1 -1
  139. package/dist/sdk/workflow/clone-workflow.js +1 -1
  140. package/dist/sdk/workflow/index.js +1 -1
  141. package/dist/sdk/workflow/pull-workflow.js +1 -1
  142. package/dist/sdk/workflow/push-workflow.js +1 -1
  143. package/dist/sdk/workflow/tdx-config.js +1 -1
  144. package/dist/sdk/workflow/workflow-utils.js +1 -1
  145. package/dist/utils/async.js +1 -1
  146. package/dist/utils/colors.js +1 -1
  147. package/dist/utils/diff.js +1 -1
  148. package/dist/utils/file-permissions.js +1 -1
  149. package/dist/utils/json-loader.js +1 -1
  150. package/dist/utils/option-validation.js +1 -1
  151. package/dist/utils/port.js +1 -1
  152. package/dist/utils/process.js +1 -1
  153. package/dist/utils/prompt.js +1 -1
  154. package/dist/utils/spinner.js +1 -1
  155. package/dist/utils/sse-parser.js +1 -1
  156. package/dist/utils/string-utils.js +1 -1
  157. package/dist/utils/table-ref-parser.js +1 -1
  158. package/dist/utils/tdx-logger.js +1 -1
  159. package/dist/utils/version-check.js +1 -1
  160. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x4ac895=a2_0x781d;(function(_0x17ec6c,_0x1f7f70){const _0x368939=a2_0x781d,_0x34287c=_0x17ec6c();while(!![]){try{const _0x4a54c4=-parseInt(_0x368939(0x168))/0x1*(-parseInt(_0x368939(0x25f))/0x2)+-parseInt(_0x368939(0x333))/0x3+-parseInt(_0x368939(0x2ec))/0x4+parseInt(_0x368939(0x338))/0x5+-parseInt(_0x368939(0x1ec))/0x6*(-parseInt(_0x368939(0x1bf))/0x7)+parseInt(_0x368939(0x1fe))/0x8+-parseInt(_0x368939(0x223))/0x9;if(_0x4a54c4===_0x1f7f70)break;else _0x34287c['push'](_0x34287c['shift']());}catch(_0x189d19){_0x34287c['push'](_0x34287c['shift']());}}}(a2_0x33cf,0x40de2));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x4ac895(0x257)][a2_0x4ac895(0x207)](a2_0x4ac895(0x1e2))){let versionOutput=a2_0x4ac895(0x30d)+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x4ac895(0x207)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x4ac895(0x313)]+')'),buildInfo[a2_0x4ac895(0x1a1)]&&(versionOutput+=a2_0x4ac895(0x1d0)+buildInfo[a2_0x4ac895(0x1a1)]),console['log'](versionOutput),process[a2_0x4ac895(0x2d1)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x4ac895(0x313)]&&!currentVersion[a2_0x4ac895(0x207)](buildInfo[a2_0x4ac895(0x313)])?description+=a2_0x4ac895(0x270)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x4ac895(0x270)+currentVersion;function a2_0x33cf(){const _0x35ef25=['61264aAfdPr','isTTY','_hidden','stats\x20<name-or-path>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','delete\x20<name-or-id>','--segment\x20<path>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Change\x20to\x20directory\x20before\x20executing\x20command','models','--schedule-option\x20<value>','folders\x20<parent_name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','information_schema','--table','Arguments:','--add-behaviors-file\x20<file>',',\x20version\x20','argumentTerm','createAsync','Include\x20retried\x20attempts','push\x20[target]','CDP\x20Journey\x20Orchestration\x20commands','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','--include-stats','Update\x20a\x20campaign','allowExcessArguments','List\x20available\x20LLM\x20models','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','[attempt-id]','Clear\x20workflow\x20project\x20context','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--project\x20<name>','Manage\x20workflow\x20project\x20secrets','api\x20[endpoint]','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Create\x20a\x20new\x20LLM\x20project','Create\x20a\x20new\x20agent\x20in\x20current\x20project','usage','fields\x20[name]','Add\x20behaviors\x20from\x20JSON\x20file','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--prompt\x20<text>','show\x20<name-or-id>','Filtering\x20rule\x20from\x20JSON\x20file','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Preview\x20changes\x20without\x20writing\x20files','map','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','List\x20available\x20connector\x20types','--params\x20<json>','Update\x20an\x20email\x20template','join','configureHelp','HTML\x20template\x20content','Show\x20master\x20table\x20sample\x20data','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','preview\x20[file]','--limit\x20<rows>','show\x20[segment_name]','-w,\x20--web','profile','--param\x20<key=value>','launch\x20<name-or-id>','List\x20jobs','update\x20<name-or-id>','pull\x20[parent_or_file]','--plaintext\x20<text>','fields\x20[parent_name]','databases\x20[pattern]','Follow/watch\x20timeline\x20for\x20running\x20attempts','INVALID_ARGUMENT','--revision\x20<revision>','--subject\x20<subject>','attempts\x20[project]','Set\x20session\x20profile','\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','filter','--system-prompt\x20<text>','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','secrets','--json','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','DEBUG','Output\x20folder\x20(default:\x20{project_name}.llm)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','slice','--data\x20<data>','Pause\x20a\x20running\x20journey','Setup\x20API\x20key\x20authentication\x20interactively','repeat','\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','templates\x20[pattern]','Open\x20parent\x20segment\x20in\x20web\x20browser','--force','--behavior\x20[name]','campaigns\x20[pattern]','--from-task\x20<task>','database','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','push\x20[parent_or_file]','logLevel','Path\x20is\x20not\x20a\x20directory:\x20','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--attributes-file\x20<file>','projects\x20[pattern]','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','exit','users','engage','then','Show\x20journey\x20details','upload\x20[project-name-or-dir]','Starter\x20message','--interval\x20<range>','--attempt-id\x20<id>','Update\x20a\x20workspace','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','Create\x20a\x20new\x20profile\x20interactively','sessions\x20[project]','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--add-attributes\x20<json>','workflows\x20[project]','Set\x20a\x20profile\x20configuration\x20value','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','use\x20<project-name>','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--database\x20<name>','Options:','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Skip\x20confirmation\x20prompt','Workspace\x20description','387132ixHyRz','trace','-H,\x20--header\x20<header>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--rule\x20<json>','-o,\x20--output\x20<file>','List\x20all\x20available\x20profiles','clone\x20[source]','\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','backup\x20<name>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','--port\x20<number>','--status\x20<status>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','--temperature\x20<n>','Remove\x20a\x20profile','--type\x20<type>','activations\x20<segment_name>','timeline\x20[project.workflow]','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','colorFn','set\x20<key=value>','Updated\x20description','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','CDP\x20segment\x20management\x20commands','--timezone\x20<tz>','Create\x20segment\x20folder','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','[DEPRECATED]\x20Segment\x20folder\x20management','--llm-project\x20<name>','-r,\x20--recursive','--max-depth\x20<depth>','agent','tdx\x20','show\x20<name>','push\x20[name]','desc','user','Workspace\x20management','gitRevision','tdx','--json-columns\x20<cols>','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','info\x20[segment_name]','--behaviors\x20<json>','use\x20<name>','segments\x20[path]','Launch\x20a\x20campaign','-r,\x20--resume','create\x20<name>','update\x20<agent-name>','options','push\x20[source-dir]','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Override\x20project\x20name','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Enable\x20verbose\x20logging','-f,\x20--file\x20<path>','Template\x20name','--email-sender-id\x20<id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','INFO','schema\x20<type>','--trace','parent_segment','Delete\x20a\x20workspace','--last','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','show\x20<folder_ref>','--color','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','681510NWoekk','--start-at\x20<datetime>','set\x20<args...>','--schedule-type\x20<type>','get','1555080MAHEOB','run','Skip\x20confirmation\x20prompts','Pull\x20child\x20segments\x20to\x20YAML\x20files','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','parent','Create\x20a\x20workspace','Submit\x20a\x20job','Campaign\x20type\x20(email\x20or\x20push)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','--add-behaviors\x20<json>','option','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','-1d','Job\x20management\x20commands','--jsonl','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','create','--master','List\x20all\x20users\x20in\x20the\x20account','replace','--folder\x20<name>','-f,\x20--force','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','pull\x20[project]\x20[agent-name]','query\x20[sql]','Agent\x20name','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','New\x20segment\x20name','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','hidden','folder','--add-attributes-file\x20<file>','chats','--customer-group-file\x20<file>','Updated\x20timezone','List\x20secret\x20keys\x20for\x20a\x20project','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','LLM\x20project\x20management','logs','Interactive\x20chat\x20selector','summary','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Plaintext\x20template\x20content','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','proxy','End\x20time\x20filter\x20(ISO\x208601\x20format)','Limit\x20number\x20of\x20rows','Delete\x20an\x20LLM\x20project','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','journeys\x20[pattern]','attempt:','Agent\x20prompt/instructions','TRACE','view\x20[segment_name]','Resume\x20a\x20paused\x20journey','Run\x20Trino\x20query\x20with\x20streaming\x20results','Export\x20journey(s)\x20as\x20YAML\x20files','Validate\x20journey\x20YAML\x20files\x20locally','--name\x20<text>','--model\x20<name>','error','table','--full','List\x20journeys\x20in\x20current\x20context','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--skip-validation','port','aliases','required','Create\x20an\x20email\x20template','kill\x20<job-id>','--rule-file\x20<file>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Authentication\x20management','Output\x20as\x20JSON','campaign','journey','describe','Save\x20output\x20to\x20file','show\x20<job-id>','--html\x20<html>','push\x20[path]','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','preAction','describe\x20[table]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','directory','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','show\x20[name]','Database\x20to\x20use\x20(overrides\x20context)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','stderr','--agent\x20<name>','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--editor-type\x20<type>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','kill','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','forEach','optionDescription','--session\x20<id>','--customer-group\x20<json>','jsonl','json','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','segment','Customer\x20group\x20from\x20JSON\x20file','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Parent\x20segment\x20management','--job-type\x20<type>','Task\x20name\x20for\x20logs\x20action','Database\x20management\x20commands','Read\x20request\x20body\x20from\x20file','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','-C,\x20--directory\x20<path>','Custom\x20revision\x20name\x20(default:\x20timestamp)','Get\x20job\x20results','Open\x20journey\x20in\x20web\x20browser','Skip\x20validation\x20of\x20.dig\x20files','--session-id\x20<id>','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','7VuUIoF','restore\x20<folder>','Folder\x20name\x20for\x20organization','Preview\x20changes\x20without\x20pushing','Set\x20or\x20show\x20parent\x20segment\x20context','-v,\x20--verbose','Output\x20as\x20JSON\x20Lines','status','--name\x20<name>','parse','Agent\x20description','--include-retried','length','Remove\x20API\x20key\x20from\x20system\x20keychain','sonnet','Master\x20database\x20name','-p,\x20--profile\x20<name>','claude\x20[args...]','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Folder\x20description','Push\x20without\x20confirmation','--invisible','--enriched','Workflow\x20(Digdag)\x20management\x20commands','agents\x20[pattern]','delete\x20<agent-name>','Show\x20agent\x20details','jobs','--output\x20<file>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--include-subtasks','--workspace\x20<name>','template','Move\x20to\x20folder','Attributes\x20from\x20JSON\x20file','Campaign\x20management','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Add\x20behaviors\x20as\x20JSON\x20string','Behaviors\x20from\x20JSON\x20file','-d,\x20--database\x20<database>','Attempt\x20ID','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Set\x20operation\x20timeout\x20in\x20seconds','subcommandTerm','Show\x20connection\x20details\x20by\x20name','list','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','tables\x20[pattern]','[options]\x20--\x20[claude-code-args...]','workspace','--no-proxy','push','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\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#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','--yes','buildTime','parents\x20[pattern]','Table\x20management\x20commands','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','validate\x20[target]','--description\x20<desc>','connection','statusline','--parent-segment\x20<name>','apiKey','create\x20<segment_name>','subcommandDescription','allowUnknownOption','list\x20[project]','auth','list\x20[path]','clear','-X,\x20--method\x20<method>','help','delete\x20<project-name-or-id>','--behaviors-file\x20<file>','parent-segment','noColor','--clear','--description\x20<text>','registeredArguments','optionTerm','Pause\x20a\x20campaign','--tsv','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','350FVtCdz','--dry-run','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','opts','command','commandDescription','push\x20[file]','Project\x20description','Campaign\x20description','--kind\x20<type>','Alias\x20for\x20--database\x20(natural\x20language\x20style)','retry\x20<session-id>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Workspace\x20name\x20(required)','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Action:\x20logs,\x20tasks,\x20kill,\x20retry','\x20-\x20built\x20','after','--resume-from\x20<task>','--in\x20<database>','llm','isArray','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','requiredOption','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Open\x20segment\x20in\x20web\x20browser','-c,\x20--continue','--attribute\x20[name]','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','--limit\x20<number>','--parent-folder\x20<name>','pull\x20[name]','chat\x20[message...]','tsv','--version','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--no-color','workspaces\x20[pattern]','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Resume\x20from\x20specific\x20task','--to\x20<timestamp>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','resume\x20<name-or-path>','47418RlisQE','use\x20<path>','Show\x20journey\x20statistics','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Show\x20only\x20master\x20table\x20validation','Editor\x20type','validate\x20[name]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--name\x20<new_name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','setup','-o,\x20--output\x20<folder>','4000','Workflow\x20parameter\x20(repeatable)','Updated\x20schedule\x20option','Start\x20time\x20filter\x20(ISO\x208601\x20format)','473584qVPoXs','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Timezone\x20(e.g.,\x20America/Los_Angeles)','Resume\x20a\x20conversation\x20(shows\x20selector)','use\x20[project]','Delete\x20an\x20email\x20template','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Email\x20sender\x20ID\x20for\x20delivery','includes','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','--delete','Workspace\x20name','run\x20[name]','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Resume\x20a\x20paused\x20campaign','--attributes\x20<json>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','list\x20[pattern]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','argument','Include\x20execution\x20statistics','Reason\x20for\x20killing\x20the\x20attempt','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','description','Add\x20attributes\x20as\x20JSON\x20string','--name\x20<new-name>','Workflow\x20session\x20management','Show\x20email\x20template\x20details','commands','Parent\x20segment\x20description','Show\x20stats\x20for\x20specific\x20stage','workflow','Show\x20timeline\x20for\x20specific\x20attempt','history\x20[chat-id]','view\x20<name-or-path>','3511233rAuycB','Workflow\x20attempt\x20management','isDirectory','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','--format\x20<format>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','-y,\x20--yes','padEnd','Data\x20connection\x20management\x20(for\x20activations/exports)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Maximum\x20tool\x20iterations\x20(default:\x204)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','sql\x20[name]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','format','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','flatMap','use\x20[resource]\x20[value]','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--starter-message\x20<text>','--limit\x20<n>','Show\x20workspace\x20details','Make\x20segment\x20invisible\x20(default:\x20visible)','--debug','alias','Attributes\x20as\x20JSON\x20string','Describe\x20table\x20schema','Create\x20a\x20new\x20campaign','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','set','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Campaign\x20name','Database\x20to\x20query\x20(default:\x20information_schema)','action','Behaviors\x20as\x20JSON\x20string','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','remove\x20<name>','claude-4.5-sonnet','Name\x20for\x20the\x20new\x20project\x20(required)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','Show\x20the\x20most\x20recent\x20chat','outputHelp','Include\x20retried\x20attempts\x20(for\x20list)','addHelpText','0.7','Database\x20name\x20(default:\x20information_schema)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','sql\x20[segment_name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Usage:\x20','argv','pause\x20<name-or-id>','name','delete\x20<args...>','update\x20<segment_name>','--new','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','delete\x20<name>'];a2_0x33cf=function(){return _0x35ef25;};return a2_0x33cf();}program['name'](a2_0x4ac895(0x314))[a2_0x4ac895(0x217)](description),program['option'](a2_0x4ac895(0x161),a2_0x4ac895(0x267))[a2_0x4ac895(0x343)](a2_0x4ac895(0x178),a2_0x4ac895(0x160))[a2_0x4ac895(0x343)]('--site\x20<site>',a2_0x4ac895(0x28d),'us01')[a2_0x4ac895(0x343)](a2_0x4ac895(0x227),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x26d),a2_0x4ac895(0x1d6))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x212))['option'](a2_0x4ac895(0x347),a2_0x4ac895(0x14c))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1bd),a2_0x4ac895(0x226))[a2_0x4ac895(0x343)](a2_0x4ac895(0x184),a2_0x4ac895(0x13c))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1dd),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x331),a2_0x4ac895(0x2e3),![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e4),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x16d),a2_0x4ac895(0x324),![])['option'](a2_0x4ac895(0x23b),a2_0x4ac895(0x348))[a2_0x4ac895(0x343)](a2_0x4ac895(0x32b),a2_0x4ac895(0x240))[a2_0x4ac895(0x343)]('--timeout\x20<seconds>',a2_0x4ac895(0x193),'30')[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),'Preview\x20operation\x20without\x20executing',![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x33a),![])[a2_0x4ac895(0x343)](a2_0x4ac895(0x153),a2_0x4ac895(0x167))[a2_0x4ac895(0x343)]('-d,\x20--database\x20<name>',a2_0x4ac895(0x148))[a2_0x4ac895(0x343)]('--in\x20<name>',a2_0x4ac895(0x1ca))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1a9),a2_0x4ac895(0x146))[a2_0x4ac895(0x343)](a2_0x4ac895(0x309),a2_0x4ac895(0x1c2)),program[a2_0x4ac895(0x29a)]({'formatHelp':(_0x17984f,_0x35d2b6)=>{const _0x50db7d=a2_0x4ac895,_0xa2eff0=_0x35d2b6['padWidth'](_0x17984f,_0x35d2b6),_0x4c931b=0x2,_0x41cc2d=0x2;function _0x317800(_0x13c7f1){const _0x25a2df=a2_0x781d,_0x3e70ff=_0x13c7f1;return!!(_0x3e70ff[_0x25a2df(0x261)]||_0x3e70ff[_0x25a2df(0x108)]);}function _0x45fab3(_0x50af49,_0x479df3){const _0x76220f=a2_0x781d;if(_0x479df3){const _0x4d8433=''+_0x50af49[_0x76220f(0x22a)](_0xa2eff0+_0x41cc2d)+_0x479df3;return _0x4d8433;}return _0x50af49;}function _0x34c847(_0x496229){const _0x39ea3a=a2_0x781d;return _0x496229[_0x39ea3a(0x299)]('\x0a')[_0x39ea3a(0x34c)](/^/gm,'\x20'[_0x39ea3a(0x2bf)](_0x4c931b));}const _0x549327=[];_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x256)+_0x35d2b6['commandUsage'](_0x17984f));const _0x321cce=_0x35d2b6[_0x50db7d(0x1c5)](_0x17984f);_0x321cce&&(_0x549327['push'](''),_0x549327[_0x50db7d(0x19e)](_0x321cce));const _0x481563=_0x17984f[_0x50db7d(0x21c)][_0x50db7d(0x2b2)](_0x45d273=>!_0x317800(_0x45d273));if(_0x481563['length']>0x0){if(_0x17984f[_0x50db7d(0x259)]()==='tdx'){const _0x32aedd=_0x17984f[_0x50db7d(0x1c3)](),_0x53ed49=!_0x32aedd[_0x50db7d(0x1b7)]&&process['stdout']['isTTY'],_0x19b842=COMMAND_CATEGORIES,_0x4012c1=(_0x44ae94,_0x44d513)=>_0x53ed49?_0x44d513(_0x44ae94):_0x44ae94,_0x2688dd=new Map();_0x481563[_0x50db7d(0x151)](_0x8d3d42=>{const _0x851893=_0x50db7d;_0x2688dd[_0x851893(0x241)](_0x8d3d42[_0x851893(0x259)](),_0x8d3d42);}),_0x19b842[_0x50db7d(0x151)](_0x4734b8=>{const _0x11bd9d=_0x50db7d,_0x4db083=_0x4734b8[_0x11bd9d(0x21c)][_0x11bd9d(0x233)](_0x25b2e4=>_0x2688dd[_0x11bd9d(0x337)](_0x25b2e4)??[]);if(_0x4db083[_0x11bd9d(0x174)]>0x0){_0x549327[_0x11bd9d(0x19e)](''),_0x549327[_0x11bd9d(0x19e)](_0x4012c1(_0x4734b8[_0x11bd9d(0x259)]+':',_0x4734b8[_0x11bd9d(0x300)]));const _0x5583f7=_0x4db083[_0x11bd9d(0x293)](_0x3ce596=>{const _0x3e3376=_0x11bd9d,_0x58b649=_0x35d2b6[_0x3e3376(0x194)](_0x3ce596),_0x502fea=_0x35d2b6[_0x3e3376(0x1ac)](_0x3ce596);return _0x45fab3(_0x58b649,_0x502fea);});_0x549327['push'](_0x34c847(_0x5583f7));}}),_0x549327[_0x50db7d(0x19e)](''),_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x2ba));}else{const _0x5bbaf2=_0x481563['map'](_0x10dd48=>{const _0x3f3038=_0x50db7d,_0x49e4f1=_0x35d2b6['subcommandTerm'](_0x10dd48),_0x34ada6=_0x35d2b6[_0x3f3038(0x1ac)](_0x10dd48);return _0x45fab3(_0x49e4f1,_0x34ada6);});_0x549327[_0x50db7d(0x19e)](''),_0x549327[_0x50db7d(0x19e)]('Commands:'),_0x549327['push'](_0x34c847(_0x5bbaf2));}}if(showBriefHelp&&_0x17984f[_0x50db7d(0x259)]()===_0x50db7d(0x314))_0x549327['push'](''),_0x549327['push']('Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version');else{const _0x2b1315=_0x17984f[_0x50db7d(0x31f)]['filter'](_0x4bd4b8=>!_0x317800(_0x4bd4b8));if(_0x2b1315[_0x50db7d(0x174)]>0x0){const _0x2d695d=_0x2b1315[_0x50db7d(0x293)](_0x3eb90a=>{const _0x353974=_0x50db7d,_0x32e6e7=_0x35d2b6[_0x353974(0x1bb)](_0x3eb90a),_0x12cdd0=_0x35d2b6[_0x353974(0x152)](_0x3eb90a);return _0x45fab3(_0x32e6e7,_0x12cdd0);});_0x549327['push'](''),_0x549327[_0x50db7d(0x19e)](_0x50db7d(0x2e8)),_0x549327[_0x50db7d(0x19e)](_0x34c847(_0x2d695d));}}const _0x57098a=(_0x17984f['registeredArguments']||[])[_0x50db7d(0x2b2)](_0x5db7b2=>!_0x317800(_0x5db7b2));if(_0x57098a[_0x50db7d(0x174)]>0x0){const _0xa00581=_0x57098a[_0x50db7d(0x293)](_0x4d2509=>{const _0x5b8e26=_0x50db7d,_0x5bfe28=_0x35d2b6[_0x5b8e26(0x271)](_0x4d2509),_0x4dc108=_0x35d2b6['argumentDescription'](_0x4d2509);return _0x45fab3(_0x5bfe28,_0x4dc108);});_0x549327[_0x50db7d(0x19e)](''),_0x549327['push'](_0x50db7d(0x26e)),_0x549327[_0x50db7d(0x19e)](_0x34c847(_0xa00581));}return _0x549327[_0x50db7d(0x299)]('\x0a')+'\x0a';},'subcommandTerm':_0x562b62=>{const _0x1cb41b=a2_0x4ac895,_0x2834c8=(_0x562b62[_0x1cb41b(0x1ba)]||[])['map'](_0x18cc12=>_0x18cc12[_0x1cb41b(0x132)]?'<'+_0x18cc12['name']()+'>':'['+_0x18cc12[_0x1cb41b(0x259)]()+']')[_0x1cb41b(0x299)]('\x20'),_0x1ce9d6=_0x562b62[_0x1cb41b(0x131)](),_0x532dcd=_0x1ce9d6[_0x1cb41b(0x174)]>0x0?_0x562b62['name']()+',\x20'+_0x1ce9d6[_0x1cb41b(0x299)](',\x20'):_0x562b62[_0x1cb41b(0x259)]();return _0x2834c8?_0x532dcd+'\x20'+_0x2834c8:_0x532dcd;}}),program['hook'](a2_0x4ac895(0x142),_0xa092ed=>{const _0x59e337=a2_0x4ac895,_0x47a008=_0xa092ed['opts']();if(_0x47a008[_0x59e337(0x145)]){const _0x2fd0d2=resolve(_0x47a008['directory']),_0x3125d8=_0x2fd0d2!==_0x47a008[_0x59e337(0x145)]?'\x20(resolved\x20to\x20'+_0x2fd0d2+')':'';if(!existsSync(_0x2fd0d2))throw new SDKError(ErrorCode[_0x59e337(0x2ac)],'Directory\x20does\x20not\x20exist:\x20'+_0x47a008[_0x59e337(0x145)]+_0x3125d8,undefined,{'helpText':_0x59e337(0x18d)});const _0x1ffd6d=statSync(_0x2fd0d2);if(!_0x1ffd6d[_0x59e337(0x225)]())throw new SDKError(ErrorCode[_0x59e337(0x2ac)],_0x59e337(0x2cb)+_0x47a008[_0x59e337(0x145)]+_0x3125d8,undefined,{'helpText':_0x59e337(0x341)});process['chdir'](_0x2fd0d2);}if(!_0x47a008[_0x59e337(0x231)]){if(_0x47a008[_0x59e337(0x12b)])_0x47a008['format']=_0x59e337(0x12b);else{if(_0x47a008['json'])_0x47a008[_0x59e337(0x231)]=_0x59e337(0x156);else{if(_0x47a008[_0x59e337(0x155)])_0x47a008[_0x59e337(0x231)]=_0x59e337(0x155);else _0x47a008['tsv']&&(_0x47a008[_0x59e337(0x231)]=_0x59e337(0x1e1));}}}_0x47a008['in']&&!_0x47a008['database']&&(_0x47a008[_0x59e337(0x2c7)]=_0x47a008['in']);if(_0x47a008[_0x59e337(0x2ed)])_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x122)];else{if(_0x47a008['debug'])_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x2b8)];else _0x47a008['logLevel']===undefined&&(_0x47a008[_0x59e337(0x2ca)]=LogLevel[_0x59e337(0x329)]);}});async function createTDXInstance(_0x4c389b){const _0x58b8a5=a2_0x4ac895,_0x46755f=await GlobalContext[_0x58b8a5(0x272)](_0x4c389b);return _0x46755f['injectIntoOptions'](_0x4c389b),TDX[_0x58b8a5(0x349)]({'site':_0x46755f['site'],'apiKey':_0x46755f[_0x58b8a5(0x1aa)],'logLevel':_0x46755f[_0x58b8a5(0x2ca)],'profile':_0x46755f[_0x58b8a5(0x2a2)]});}const databaseCmd=program['command'](a2_0x4ac895(0x2c7))[a2_0x4ac895(0x23c)]('db')['description'](a2_0x4ac895(0x15e)),databaseListAction=async(_0x108057,_0xc62334)=>{const _0x20ae7f=a2_0x4ac895,_0x5e1b0d=new DatabasesCommand(),_0x5bb32c=program[_0x20ae7f(0x1c3)](),_0xf9d0c7=await createTDXInstance(_0x5bb32c),_0x34b003=await _0x5e1b0d[_0x20ae7f(0x339)]({'options':{..._0x5bb32c,..._0xc62334},'args':_0x108057?[_0x108057]:[],'tdx':_0xf9d0c7});process[_0x20ae7f(0x2d1)](_0x34b003);};databaseCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x25d))['action'](databaseListAction),program['command'](a2_0x4ac895(0x2aa),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x2e5))['action'](databaseListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1e0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x205))['option']('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x25c),'Start\x20a\x20new\x20chat\x20session')['action'](async(_0x4eba09,_0x48b3d3)=>{const _0x30d56a=a2_0x4ac895,_0x5e0fad=new ChatCommand(),_0x22a6da=program[_0x30d56a(0x1c3)](),_0x1b5fdb=await createTDXInstance(_0x22a6da),_0x5815eb=await _0x5e0fad[_0x30d56a(0x339)]({'options':{..._0x22a6da,..._0x48b3d3},'args':_0x4eba09,'tdx':_0x1b5fdb});process[_0x30d56a(0x2d1)](_0x5815eb);});const apiCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x284))[a2_0x4ac895(0x114)](a2_0x4ac895(0x2ff))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x2b1))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b2),a2_0x4ac895(0x107),'GET')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2bc),'Request\x20body\x20as\x20JSON\x20string')[a2_0x4ac895(0x343)](a2_0x4ac895(0x325),a2_0x4ac895(0x15f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2ee),a2_0x4ac895(0x1e6),(_0x49a07c,_0x35e5ea)=>{return _0x35e5ea?[..._0x35e5ea,_0x49a07c]:[_0x49a07c];})['option']('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x4ac895(0x245)](async(_0x4ec921,_0x281168)=>{const _0x530365=a2_0x4ac895;if(!_0x4ec921){apiCmd['help']();return;}const _0x58d3a4=new ApiCommand(),_0x46be3b=program[_0x530365(0x1c3)](),_0x4b3f6c=await createTDXInstance(_0x46be3b),_0x4bf6e=await _0x58d3a4[_0x530365(0x339)]({'options':{..._0x46be3b,..._0x281168},'args':[_0x4ec921],'tdx':_0x4b3f6c});process['exit'](_0x4bf6e);}),tableCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x12b))['description'](a2_0x4ac895(0x1a3)),tableListAction=async(_0x2d79ee,_0x28cf97)=>{const _0x292363=a2_0x4ac895,_0x227257=new TablesCommand(),_0x38c1bd=program[_0x292363(0x1c3)](),_0x3bd45d=await createTDXInstance(_0x38c1bd);_0x28cf97['in']&&(_0x28cf97[_0x292363(0x2c7)]=_0x28cf97['in']);const _0xd51307=await _0x227257['run']({'options':{..._0x38c1bd,..._0x28cf97},'args':_0x2d79ee?[_0x2d79ee]:[],'tdx':_0x3bd45d});process['exit'](_0xd51307);};tableCmd[a2_0x4ac895(0x1c4)]('list\x20[pattern]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x321))[a2_0x4ac895(0x343)]('-d,\x20--database\x20<database>',a2_0x4ac895(0x323))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),a2_0x4ac895(0x1ca))[a2_0x4ac895(0x245)](tableListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x19a),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f9))['option']('-d,\x20--database\x20<database>',a2_0x4ac895(0x323))[a2_0x4ac895(0x343)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ac895(0x245)](tableListAction),program[a2_0x4ac895(0x1c4)]('show\x20[table]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x11d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x190),a2_0x4ac895(0x286))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x4ac895(0x245)](async(_0x27dd8b,_0x1bda46)=>{const _0x1f59c1=a2_0x4ac895,_0xb0674c=new ShowCommand(),_0x99b49a=program[_0x1f59c1(0x1c3)](),_0x18ba8c=await createTDXInstance(_0x99b49a);_0x1bda46['in']&&(_0x1bda46['database']=_0x1bda46['in']);const _0x3f6499=await _0xb0674c[_0x1f59c1(0x339)]({'options':{..._0x99b49a,..._0x1bda46},'args':_0x27dd8b?[_0x27dd8b]:[],'tdx':_0x18ba8c});process[_0x1f59c1(0x2d1)](_0x3f6499);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x143))['alias'](a2_0x4ac895(0x310))[a2_0x4ac895(0x217)](a2_0x4ac895(0x23e))[a2_0x4ac895(0x343)](a2_0x4ac895(0x190),a2_0x4ac895(0x286))['option']('--in\x20<database>',a2_0x4ac895(0x1ca))['action'](async(_0x1c2116,_0x3e216d)=>{const _0x15027e=a2_0x4ac895,_0x1b4f57=new DescribeCommand(),_0x8b75a0=program[_0x15027e(0x1c3)](),_0x205ade=await createTDXInstance(_0x8b75a0);_0x3e216d['in']&&(_0x3e216d[_0x15027e(0x2c7)]=_0x3e216d['in']);const _0x121894=await _0x1b4f57['run']({'options':{..._0x8b75a0,..._0x3e216d},'args':_0x1c2116?[_0x1c2116]:[],'tdx':_0x205ade});process[_0x15027e(0x2d1)](_0x121894);}),program['command'](a2_0x4ac895(0x351))['description'](a2_0x4ac895(0x125))['option'](a2_0x4ac895(0x190),a2_0x4ac895(0x244))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1d3),a2_0x4ac895(0x1ca))[a2_0x4ac895(0x343)]('--catalog\x20<catalog>','Trino\x20catalog\x20(default:\x20td)')['option'](a2_0x4ac895(0x325),'Read\x20SQL\x20query\x20from\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x29f),a2_0x4ac895(0x2dc),'40')[a2_0x4ac895(0x245)](async(_0x59af05,_0x1b6cc6)=>{const _0x5d1364=a2_0x4ac895,_0x582b75=new QueryCommand(),_0x574097=program[_0x5d1364(0x1c3)](),_0x18065f=await createTDXInstance(_0x574097);_0x1b6cc6['in']&&(_0x1b6cc6['database']=_0x1b6cc6['in']);const _0x3c79b1=await _0x582b75[_0x5d1364(0x339)]({'options':{..._0x574097,..._0x1b6cc6},'args':_0x59af05?[_0x59af05]:[],'tdx':_0x18065f});process[_0x5d1364(0x2d1)](_0x3c79b1);});const segmentCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x158))['alias']('sg')[a2_0x4ac895(0x217)](a2_0x4ac895(0x304)),segmentListAction=async(_0x5b432a,_0xe7970e)=>{const _0x71c7be=a2_0x4ac895,_0x274615=new SegmentsCommand(),_0x1a9455=program[_0x71c7be(0x1c3)](),_0x283b58=await createTDXInstance(_0x1a9455),_0xaaaf26=await _0x274615['run']({'options':{..._0x1a9455,..._0xe7970e},'args':_0x5b432a?[_0x5b432a]:[],'tdx':_0x283b58});process['exit'](_0xaaaf26);};function a2_0x781d(_0x296c6e,_0xa95e89){_0x296c6e=_0x296c6e-0x104;const _0x33cf2c=a2_0x33cf();let _0x781d2=_0x33cf2c[_0x296c6e];return _0x781d2;}segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2b7))[a2_0x4ac895(0x343)](a2_0x4ac895(0x30a),a2_0x4ac895(0x263))['option'](a2_0x4ac895(0x30b),a2_0x4ac895(0x328),'10')[a2_0x4ac895(0x245)](segmentListAction),program['command'](a2_0x4ac895(0x31a),{'hidden':!![]})[a2_0x4ac895(0x217)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x30a),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x30b),a2_0x4ac895(0x328),'10')[a2_0x4ac895(0x245)](segmentListAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ed),{'hidden':!![]})['description'](a2_0x4ac895(0x210))[a2_0x4ac895(0x245)](async(_0x2bd0aa,_0x133024)=>{const _0x4d768d=a2_0x4ac895,_0x163743=new SegmentUseCommand(),_0x43afe3=program['opts'](),_0x2016f4=await createTDXInstance(_0x43afe3),_0x3d01c8=await _0x163743[_0x4d768d(0x339)]({'options':{..._0x43afe3,..._0x133024},'args':[_0x2bd0aa],'tdx':_0x2016f4});process[_0x4d768d(0x2d1)](_0x3d01c8);});const segmentViewAction=async(_0x55c2fe,_0xea7c7d)=>{const _0x308d5d=a2_0x4ac895,_0x373abc=new SegmentViewCommand(),_0x4f756c=program[_0x308d5d(0x1c3)](),_0x17cb3c=await createTDXInstance(_0x4f756c),_0x25b09e=await _0x373abc['run']({'options':{..._0x4f756c,..._0xea7c7d},'args':_0x55c2fe?[_0x55c2fe]:[],'tdx':_0x17cb3c});process[_0x308d5d(0x2d1)](_0x25b09e);};segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x123))[a2_0x4ac895(0x217)](a2_0x4ac895(0x29d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x1d9))[a2_0x4ac895(0x245)](segmentViewAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x317),{'hidden':!![]})['alias'](a2_0x4ac895(0x13b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x1d9))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x4ac895(0x1c4)]('desc\x20[segment_name]')['description']('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x4ac895(0x245)](async(_0x50c51a,_0x8bffa1)=>{const _0x323d2f=a2_0x4ac895,_0x1f13f1=new SegmentDescCommand(),_0xa7951c=program[_0x323d2f(0x1c3)](),_0x363a22=await createTDXInstance(_0xa7951c),_0x56fa1a=await _0x1f13f1[_0x323d2f(0x339)]({'options':{..._0xa7951c,..._0x8bffa1},'args':_0x50c51a?[_0x50c51a]:[],'tdx':_0x363a22});process[_0x323d2f(0x2d1)](_0x56fa1a);}),segmentCmd['command'](a2_0x4ac895(0x2a0))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2db))[a2_0x4ac895(0x245)](async(_0x181ca,_0x337120)=>{const _0x59cdeb=a2_0x4ac895,_0x3ae4e3=new SegmentShowCommand(),_0xb739c0=program[_0x59cdeb(0x1c3)](),_0x54b7cd=await createTDXInstance(_0xb739c0),_0x539cc9=await _0x3ae4e3[_0x59cdeb(0x339)]({'options':{..._0xb739c0,..._0x337120},'args':_0x181ca?[_0x181ca]:[],'tdx':_0x54b7cd});process[_0x59cdeb(0x2d1)](_0x539cc9);}),segmentCmd['command'](a2_0x4ac895(0x26a),{'hidden':!![]})['description'](a2_0x4ac895(0x144))['action'](async(_0x27fa0a,_0x1f0e2f)=>{const _0x3588f8=a2_0x4ac895,_0x36c624=new SegmentFolderListCommand(),_0x1f58d1=program[_0x3588f8(0x1c3)](),_0x31a89b=await createTDXInstance(_0x1f58d1),_0x130572=await _0x36c624[_0x3588f8(0x339)]({'options':{..._0x1f58d1,..._0x1f0e2f},'args':[_0x27fa0a],'tdx':_0x31a89b});process[_0x3588f8(0x2d1)](_0x130572);});const folderCmd=segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x109),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x308));folderCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x330))['description']('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x4ac895(0x245)](async(_0x26c2d3,_0x5de8b1)=>{const _0xc75069=a2_0x4ac895,_0x2d4e53=new SegmentFolderShowCommand(),_0x3c3e4=program[_0xc75069(0x1c3)](),_0x34a2e0=await createTDXInstance(_0x3c3e4),_0x29091f=await _0x2d4e53['run']({'options':{..._0x3c3e4,..._0x5de8b1},'args':[_0x26c2d3],'tdx':_0x34a2e0});process[_0xc75069(0x2d1)](_0x29091f);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x254))[a2_0x4ac895(0x217)](a2_0x4ac895(0x192))[a2_0x4ac895(0x245)](async(_0x2f79d5,_0x4a7775)=>{const _0x55d43c=a2_0x4ac895,_0x183027=new SegmentSQLCommand(),_0x1d47d9=program['opts'](),_0x164c2d=await createTDXInstance(_0x1d47d9),_0x12aec4=await _0x183027['run']({'options':{..._0x1d47d9,..._0x4a7775},'args':_0x2f79d5?[_0x2f79d5]:[],'tdx':_0x164c2d});process[_0x55d43c(0x2d1)](_0x12aec4);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a9))['description'](a2_0x4ac895(0x22e))[a2_0x4ac895(0x245)](async(_0xb39fdf,_0x3cdb46)=>{const _0x360301=a2_0x4ac895,_0x9ed363=new SegmentFieldsCommand(),_0x2210e0=program[_0x360301(0x1c3)](),_0x1f5543=await createTDXInstance(_0x2210e0),_0x5c6623=await _0x9ed363[_0x360301(0x339)]({'options':{..._0x2210e0,..._0x3cdb46},'args':_0xb39fdf?[_0xb39fdf]:[],'tdx':_0x1f5543});process[_0x360301(0x2d1)](_0x5c6623);}),segmentCmd['command'](a2_0x4ac895(0x2a7))[a2_0x4ac895(0x217)](a2_0x4ac895(0x33b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x33a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x1e9))[a2_0x4ac895(0x245)](async(_0x140be1,_0x5bf229)=>{const _0xe96f64=a2_0x4ac895,_0x23699a=new SegmentPullCommand(),_0x3e1244=program[_0xe96f64(0x1c3)](),_0x101a1b=await createTDXInstance(_0x3e1244),_0x17b2a5=await _0x23699a['run']({'options':{..._0x3e1244,..._0x5bf229},'args':_0x140be1?[_0x140be1]:[],'tdx':_0x101a1b});process[_0xe96f64(0x2d1)](_0x17b2a5);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2c9))[a2_0x4ac895(0x217)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x33a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x1e9))[a2_0x4ac895(0x343)](a2_0x4ac895(0x209),a2_0x4ac895(0x115))[a2_0x4ac895(0x245)](async(_0x1d96da,_0x127d68)=>{const _0x215076=a2_0x4ac895,_0x21008b=new SegmentPushCommand(),_0x279c1e=program[_0x215076(0x1c3)](),_0xaeb4ab=await createTDXInstance(_0x279c1e),_0x3baffc=await _0x21008b[_0x215076(0x339)]({'options':{..._0x279c1e,..._0x127d68},'args':_0x1d96da?[_0x1d96da]:[],'tdx':_0xaeb4ab});process[_0x215076(0x2d1)](_0x3baffc);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a5))[a2_0x4ac895(0x217)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x29b6a6,_0x2f762f)=>{const _0x5381cf=a2_0x4ac895,_0x444b4b=new SegmentValidateCommand(),_0x4f75d2=program[_0x5381cf(0x1c3)](),_0x592a3b=await createTDXInstance(_0x4f75d2),_0x5e4c9c=await _0x444b4b['run']({'options':{..._0x4f75d2,..._0x2f762f},'args':_0x29b6a6?[_0x29b6a6]:[],'tdx':_0x592a3b});process[_0x5381cf(0x2d1)](_0x5e4c9c);}),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ab),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x149))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),'Segment\x20description')['option'](a2_0x4ac895(0x2f0),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x4ac895(0x343)](a2_0x4ac895(0x135),a2_0x4ac895(0x290))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34d),a2_0x4ac895(0x16a))[a2_0x4ac895(0x343)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['option'](a2_0x4ac895(0x17d),a2_0x4ac895(0x23a))[a2_0x4ac895(0x343)]('--no-count-population','Skip\x20population\x20counting')[a2_0x4ac895(0x245)](async(_0x5ea2d9,_0x5b221f)=>{const _0x21efdd=a2_0x4ac895,_0xef9aa2=new SegmentCreateCommand(),_0x4b27f2=program[_0x21efdd(0x1c3)](),_0x35b728=await createTDXInstance(_0x4b27f2),_0x18df36=await _0xef9aa2[_0x21efdd(0x339)]({'options':{..._0x4b27f2,..._0x5b221f},'args':[_0x5ea2d9],'tdx':_0x35b728});process['exit'](_0x18df36);}),segmentCmd['command'](a2_0x4ac895(0x25b),{'hidden':!![]})[a2_0x4ac895(0x217)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')['option'](a2_0x4ac895(0x1f5),a2_0x4ac895(0x106))['option'](a2_0x4ac895(0x1b9),'Updated\x20description')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f0),a2_0x4ac895(0x253))['option'](a2_0x4ac895(0x135),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34d),a2_0x4ac895(0x18a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c9),a2_0x4ac895(0x12e))[a2_0x4ac895(0x245)](async(_0x4a4336,_0xbad7ae)=>{const _0x17bc34=a2_0x4ac895,_0x3234f0=new SegmentUpdateCommand(),_0x38f01a=program['opts'](),_0x28b6a0=await createTDXInstance(_0x38f01a),_0x488b93=await _0x3234f0['run']({'options':{..._0x38f01a,..._0xbad7ae},'args':[_0x4a4336],'tdx':_0x28b6a0});process[_0x17bc34(0x2d1)](_0x488b93);});const parentCmd=segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x33d),{'hidden':!![]})[a2_0x4ac895(0x217)]('[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead'),parentListAction=async(_0x5467f8,_0x43158f)=>{const _0x13aa11=a2_0x4ac895,_0x508512=new ParentSegmentListCommand(),_0x2e488d=program[_0x13aa11(0x1c3)](),_0x1d76ef=await createTDXInstance(_0x2e488d),_0xe89db8=await _0x508512[_0x13aa11(0x339)]({'options':{..._0x2e488d,..._0x43158f},'args':_0x5467f8?[_0x5467f8]:[],'tdx':_0x1d76ef});process[_0x13aa11(0x2d1)](_0xe89db8);};parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2cd))['action'](parentListAction),segmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a2),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x24c))[a2_0x4ac895(0x245)](parentListAction),parentCmd['command']('pull\x20[name]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x105))[a2_0x4ac895(0x343)]('-o,\x20--output\x20<file>','Output\x20file\x20path\x20(default:\x20<name>.yml)')['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x295b9f,_0x292b40)=>{const _0x1bc7ab=a2_0x4ac895,_0x4ebecc=new ParentSegmentPullCommand(),_0x5560d1=program[_0x1bc7ab(0x1c3)](),_0x5a0325=await createTDXInstance(_0x5560d1),_0x14d31a=await _0x4ebecc[_0x1bc7ab(0x339)]({'options':{..._0x5560d1,..._0x292b40},'args':_0x295b9f?[_0x295b9f]:[],'tdx':_0x5a0325});process[_0x1bc7ab(0x2d1)](_0x14d31a);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1c6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x278))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x243aea,_0x14f303)=>{const _0x31057d=a2_0x4ac895,_0x4d834d=new ParentSegmentPushCommand(),_0x2447f3=program[_0x31057d(0x1c3)](),_0x846a62=await createTDXInstance(_0x2447f3),_0x8ea864=await _0x4d834d[_0x31057d(0x339)]({'options':{..._0x2447f3,..._0x14f303},'args':_0x243aea?[_0x243aea]:[],'tdx':_0x846a62});process['exit'](_0x8ea864);}),parentCmd[a2_0x4ac895(0x1c4)]('validate\x20[file]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x1f7))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x1f0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1db),a2_0x4ac895(0x276))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c4),a2_0x4ac895(0x255))[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),a2_0x4ac895(0x1dc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d8),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x4ac895(0x345))[a2_0x4ac895(0x245)](async(_0x5e49a5,_0x19f26a)=>{const _0x2c7f07=a2_0x4ac895,_0x4c363c=new ParentSegmentValidateCommand(),_0x33649c=program[_0x2c7f07(0x1c3)](),_0x4c9845=await createTDXInstance(_0x33649c),_0x3401a9=await _0x4c363c['run']({'options':{..._0x33649c,..._0x19f26a},'args':_0x5e49a5?[_0x5e49a5]:[],'tdx':_0x4c9845});process[_0x2c7f07(0x2d1)](_0x3401a9);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x29e))['description'](a2_0x4ac895(0x295))[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x29c))[a2_0x4ac895(0x343)]('--attribute\x20[name]',a2_0x4ac895(0x186))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c4),a2_0x4ac895(0x198))[a2_0x4ac895(0x343)]('--enriched','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d8),a2_0x4ac895(0x1d8),a2_0x4ac895(0x345))['action'](async(_0x5061f5,_0x522859)=>{const _0x27a563=new ParentSegmentPreviewCommand(),_0xbb8fba=program['opts'](),_0x491657=await createTDXInstance(_0xbb8fba),_0xd3da29=await _0x27a563['run']({'options':{..._0xbb8fba,..._0x522859},'args':_0x5061f5?[_0x5061f5]:[],'tdx':_0x491657});process['exit'](_0xd3da29);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x20b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x14e))[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x2d152c,_0x58274a)=>{const _0x5802dd=a2_0x4ac895,_0x2d28d9=new ParentSegmentRunCommand(),_0x2dd6dd=program['opts'](),_0x217554=await createTDXInstance(_0x2dd6dd),_0x369164=await _0x2d28d9[_0x5802dd(0x339)]({'options':{..._0x2dd6dd,..._0x58274a},'args':_0x2d152c?[_0x2d152c]:[],'tdx':_0x217554});process['exit'](_0x369164);});const parentSegmentCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b6))['alias']('ps')[a2_0x4ac895(0x217)](a2_0x4ac895(0x15b));parentSegmentCmd[a2_0x4ac895(0x1c4)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1df))[a2_0x4ac895(0x217)](a2_0x4ac895(0x32f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f1),'Output\x20file\x20path')['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x343)]('-u,\x20--use',a2_0x4ac895(0x22c))['action'](async(_0x19ca4b,_0x1c9db7)=>{const _0x110936=a2_0x4ac895,_0x3beff1=new ParentSegmentPullCommand(),_0x1c1497=program[_0x110936(0x1c3)](),_0x3aa710=await createTDXInstance(_0x1c1497),_0x449bab=await _0x3beff1[_0x110936(0x339)]({'options':{..._0x1c1497,..._0x1c9db7},'args':_0x19ca4b?[_0x19ca4b]:[],'tdx':_0x3aa710});process[_0x110936(0x2d1)](_0x449bab);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2ef))['option'](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x1f8bfe,_0x1627fa)=>{const _0x455bb2=a2_0x4ac895,_0x2476ea=new ParentSegmentPushCommand(),_0x29c43c=program[_0x455bb2(0x1c3)](),_0x2a2056=await createTDXInstance(_0x29c43c),_0x187014=await _0x2476ea[_0x455bb2(0x339)]({'options':{..._0x29c43c,..._0x1627fa},'args':_0x1f8bfe?[_0x1f8bfe]:[],'tdx':_0x2a2056});process[_0x455bb2(0x2d1)](_0x187014);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1f2))[a2_0x4ac895(0x217)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34a),a2_0x4ac895(0x1f0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1db),a2_0x4ac895(0x276))[a2_0x4ac895(0x343)]('--behavior\x20[name]',a2_0x4ac895(0x255))[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),a2_0x4ac895(0x1dc))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x4ac895(0x245)](async(_0xa3b127,_0x38e9f1)=>{const _0x35c24f=a2_0x4ac895,_0x4896d7=new ParentSegmentValidateCommand(),_0x2f3699=program[_0x35c24f(0x1c3)](),_0x16a3bf=await createTDXInstance(_0x2f3699),_0x4803ae=await _0x4896d7[_0x35c24f(0x339)]({'options':{..._0x2f3699,..._0x38e9f1},'args':_0xa3b127?[_0xa3b127]:[],'tdx':_0x16a3bf});process['exit'](_0x4803ae);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('preview\x20[name]')['description'](a2_0x4ac895(0x295))[a2_0x4ac895(0x343)]('--master',a2_0x4ac895(0x29c))['option'](a2_0x4ac895(0x1db),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x4ac895(0x343)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x4ac895(0x343)](a2_0x4ac895(0x17e),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x4ac895(0x343)]('--interval\x20<range>',a2_0x4ac895(0x1d8),a2_0x4ac895(0x345))[a2_0x4ac895(0x245)](async(_0x28fb2a,_0x42a0d3)=>{const _0xd048f5=a2_0x4ac895,_0xc4a35c=new ParentSegmentPreviewCommand(),_0x2bd81b=program['opts'](),_0x3bf2ab=await createTDXInstance(_0x2bd81b),_0x48347b=await _0xc4a35c[_0xd048f5(0x339)]({'options':{..._0x2bd81b,..._0x42a0d3},'args':_0x28fb2a?[_0x28fb2a]:[],'tdx':_0x3bf2ab});process['exit'](_0x48347b);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x20b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x14e))[a2_0x4ac895(0x343)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')['action'](async(_0x4e4203,_0x41d6ce)=>{const _0x48ff17=a2_0x4ac895,_0x4ba43b=new ParentSegmentRunCommand(),_0x233ce2=program[_0x48ff17(0x1c3)](),_0x407c26=await createTDXInstance(_0x233ce2),_0x3a8b53=await _0x4ba43b['run']({'options':{..._0x233ce2,..._0x41d6ce},'args':_0x4e4203?[_0x4e4203]:[],'tdx':_0x407c26});process[_0x48ff17(0x2d1)](_0x3a8b53);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x230))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))['option']('--jsonl',a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x3449e8,_0x40d8ca)=>{const _0x281621=a2_0x4ac895,_0x588677=new ParentSegmentFieldsCommand(),_0x2492c1=program[_0x281621(0x1c3)](),_0x5d005d=await createTDXInstance(_0x2492c1),_0x3b0a14=await _0x588677[_0x281621(0x339)]({'options':{..._0x2492c1,..._0x40d8ca},'args':_0x3449e8?[_0x3449e8]:[],'tdx':_0x5d005d});process['exit'](_0x3b0a14);}),parentSegmentCmd['command']('view\x20[name]')[a2_0x4ac895(0x217)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x2c2))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),'Output\x20as\x20JSON')['option'](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))['action'](async(_0x29185f,_0x4bc21a)=>{const _0x57fe64=a2_0x4ac895,_0x2588fc=new ParentSegmentViewCommand(),_0x377e6d=program['opts'](),_0x4ef1b7=await createTDXInstance(_0x377e6d),_0x242b27=await _0x2588fc[_0x57fe64(0x339)]({'options':{..._0x377e6d,..._0x4bc21a},'args':_0x29185f?[_0x29185f]:[],'tdx':_0x4ef1b7});process[_0x57fe64(0x2d1)](_0x242b27);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('desc\x20[name]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x232))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),'Output\x20as\x20JSON')[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x4fbc94,_0x13f424)=>{const _0x17fc11=a2_0x4ac895,_0x1115cf=new ParentSegmentDescCommand(),_0x2fe539=program[_0x17fc11(0x1c3)](),_0x30b493=await createTDXInstance(_0x2fe539),_0x3256e0=await _0x1115cf['run']({'options':{..._0x2fe539,..._0x13f424},'args':_0x4fbc94?[_0x4fbc94]:[],'tdx':_0x30b493});process[_0x17fc11(0x2d1)](_0x3256e0);}),parentSegmentCmd['command'](a2_0x4ac895(0x22f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x228))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),'Output\x20as\x20JSON\x20Lines')[a2_0x4ac895(0x245)](async(_0x5cb045,_0x465fe2)=>{const _0x50265e=a2_0x4ac895,_0x111844=new ParentSegmentSQLCommand(),_0x217b03=program[_0x50265e(0x1c3)](),_0x1c6902=await createTDXInstance(_0x217b03),_0x18ceba=await _0x111844[_0x50265e(0x339)]({'options':{..._0x217b03,..._0x465fe2},'args':_0x5cb045?[_0x5cb045]:[],'tdx':_0x1c6902});process['exit'](_0x18ceba);}),parentSegmentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x147))['description'](a2_0x4ac895(0x2df))['option'](a2_0x4ac895(0x238),a2_0x4ac895(0x11b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b6),a2_0x4ac895(0x138))[a2_0x4ac895(0x343)](a2_0x4ac895(0x347),a2_0x4ac895(0x16e))[a2_0x4ac895(0x245)](async(_0x4c0024,_0x2f6be0)=>{const _0x1d9d76=a2_0x4ac895,_0x5a9455=new ParentSegmentShowCommand(),_0x5cfce9=program['opts'](),_0x4382d0=await createTDXInstance(_0x5cfce9),_0x10c290=await _0x5a9455[_0x1d9d76(0x339)]({'options':{..._0x5cfce9,..._0x2f6be0},'args':_0x4c0024?[_0x4c0024]:[],'tdx':_0x4382d0});process[_0x1d9d76(0x2d1)](_0x10c290);}),parentSegmentCmd[a2_0x4ac895(0x1c4)]('use\x20[name]')['description'](a2_0x4ac895(0x16c))[a2_0x4ac895(0x245)](async(_0x394f72,_0x14f9d0)=>{const _0x2949a3=a2_0x4ac895,_0x20e802=new UseCommand(),_0x3672a9=program['opts'](),_0x261a12=_0x394f72?[_0x2949a3(0x32c),_0x394f72]:[],_0x121712=await _0x20e802[_0x2949a3(0x339)]({'options':{..._0x3672a9,..._0x14f9d0},'args':_0x261a12,'tdx':null});process[_0x2949a3(0x2d1)](_0x121712);}),parentCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))['description'](a2_0x4ac895(0x216))['requiredOption']('--database\x20<db>',a2_0x4ac895(0x177))[a2_0x4ac895(0x1d7)]('--table\x20<table>','Master\x20table\x20name')['option'](a2_0x4ac895(0x1b9),a2_0x4ac895(0x21d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x336),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x4ac895(0x269),a2_0x4ac895(0x1f4))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),a2_0x4ac895(0x201))['option'](a2_0x4ac895(0x20f),a2_0x4ac895(0x23d))['option'](a2_0x4ac895(0x2ce),a2_0x4ac895(0x18b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x318),a2_0x4ac895(0x246))['option'](a2_0x4ac895(0x1b5),a2_0x4ac895(0x18f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x154),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x4ac895(0x10c),a2_0x4ac895(0x159))[a2_0x4ac895(0x245)](async(_0x348be7,_0x29f9b9)=>{const _0xde4494=a2_0x4ac895,_0x21e8d2=new ParentSegmentCreateCommand(),_0xcecee7=program[_0xde4494(0x1c3)](),_0xb17e6f=await createTDXInstance(_0xcecee7),_0x5a5ae4=await _0x21e8d2[_0xde4494(0x339)]({'options':{..._0xcecee7,..._0x29f9b9},'args':[_0x348be7],'tdx':_0xb17e6f});process[_0xde4494(0x2d1)](_0x5a5ae4);}),parentCmd[a2_0x4ac895(0x1c4)]('update\x20<name>')['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x4ac895(0x343)]('--description\x20<text>',a2_0x4ac895(0x302))[a2_0x4ac895(0x343)](a2_0x4ac895(0x336),a2_0x4ac895(0x200))['option'](a2_0x4ac895(0x269),a2_0x4ac895(0x1fc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),a2_0x4ac895(0x10d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2e0),a2_0x4ac895(0x218))[a2_0x4ac895(0x343)](a2_0x4ac895(0x10a),'Add\x20attributes\x20from\x20JSON\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x342),a2_0x4ac895(0x18e))[a2_0x4ac895(0x343)](a2_0x4ac895(0x26f),a2_0x4ac895(0x28c))[a2_0x4ac895(0x245)](async(_0x265554,_0x531af6)=>{const _0xded296=a2_0x4ac895,_0x1656d1=new ParentSegmentUpdateCommand(),_0xefe74a=program[_0xded296(0x1c3)](),_0xf833eb=await createTDXInstance(_0xefe74a),_0x2e27af=await _0x1656d1[_0xded296(0x339)]({'options':{..._0xefe74a,..._0x531af6},'args':[_0x265554],'tdx':_0xf833eb});process[_0xded296(0x2d1)](_0x2e27af);}),folderCmd[a2_0x4ac895(0x1c4)]('create\x20<parent_name>\x20<folder_name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x306))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),a2_0x4ac895(0x17b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1de),a2_0x4ac895(0x266))[a2_0x4ac895(0x245)](async(_0x6d060,_0x5edbe0,_0x5d45c3)=>{const _0x8f531b=a2_0x4ac895,_0x182f52=new SegmentFolderCreateCommand(),_0x522f53=program[_0x8f531b(0x1c3)](),_0xe9dde2=await createTDXInstance(_0x522f53),_0xe2c1e5=await _0x182f52[_0x8f531b(0x339)]({'options':{..._0x522f53,..._0x5d45c3},'args':[_0x6d060,_0x5edbe0],'tdx':_0xe9dde2});process['exit'](_0xe2c1e5);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2fd))[a2_0x4ac895(0x217)](a2_0x4ac895(0x17a))[a2_0x4ac895(0x245)](async(_0x389e15,_0x45c0bf)=>{const _0x147497=a2_0x4ac895,_0x25c900=new ActivationsCommand(),_0x2078b4=program[_0x147497(0x1c3)](),_0x372186=await createTDXInstance(_0x2078b4),_0x276a6d=await _0x25c900[_0x147497(0x339)]({'options':{..._0x2078b4,..._0x45c0bf},'args':[_0x389e15],'tdx':_0x372186});process[_0x147497(0x2d1)](_0x276a6d);});const workflowCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x21f))[a2_0x4ac895(0x23c)]('wf')[a2_0x4ac895(0x217)](a2_0x4ac895(0x17f)),wfProjectCmd=workflowCmd[a2_0x4ac895(0x1c4)]('project')[a2_0x4ac895(0x217)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x765ade,_0x1fa959)=>{const _0x3f2cae=a2_0x4ac895,_0x2cddb2=new WorkflowProjectsCommand(),_0x475193=program[_0x3f2cae(0x1c3)](),_0x13b068=await createTDXInstance(_0x475193),_0x3616c8=await _0x2cddb2[_0x3f2cae(0x339)]({'options':{..._0x475193,..._0x1fa959},'args':_0x765ade?[_0x765ade]:[],'tdx':_0x13b068});process['exit'](_0x3616c8);};wfProjectCmd['command'](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x118))['action'](wfProjectListAction),workflowCmd[a2_0x4ac895(0x1c4)]('projects\x20[pattern]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x33c))[a2_0x4ac895(0x245)](wfProjectListAction);const wfWorkflowListAction=async(_0x320da0,_0x59cbae)=>{const _0xb64303=a2_0x4ac895,_0xfdac43=new WorkflowWorkflowsCommand(),_0x34d90d=program[_0xb64303(0x1c3)](),_0x278463=await createTDXInstance(_0x34d90d),_0x2c2778=await _0xfdac43['run']({'options':{..._0x34d90d,..._0x59cbae},'args':_0x320da0?[_0x320da0]:[],'tdx':_0x278463});process[_0xb64303(0x2d1)](_0x2c2778);};workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2e1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f6))[a2_0x4ac895(0x245)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x4ac895(0x1c4)]('session')[a2_0x4ac895(0x217)](a2_0x4ac895(0x21a)),wfSessionListAction=async(_0x521936,_0xc5e938)=>{const _0x3d0f22=a2_0x4ac895,_0x59614f=new WorkflowSessionsCommand(),_0x1287e1=program[_0x3d0f22(0x1c3)](),_0x4e2f44=await createTDXInstance(_0x1287e1),_0x4cee5f=await _0x59614f[_0x3d0f22(0x339)]({'options':{..._0x1287e1,..._0xc5e938},'args':_0x521936?[_0x521936]:[],'tdx':_0x4e2f44});process[_0x3d0f22(0x2d1)](_0x4cee5f);};wfSessionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1ae))[a2_0x4ac895(0x217)](a2_0x4ac895(0x27d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x332))[a2_0x4ac895(0x343)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e8),a2_0x4ac895(0x11a))[a2_0x4ac895(0x245)](wfSessionListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2de))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ef))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x332))['option']('--from\x20<timestamp>',a2_0x4ac895(0x1fd))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1e8),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x4ac895(0x245)](wfSessionListAction);const wfAttemptListAction=async(_0x3b9944,_0x1f38ce)=>{const _0x2d34ce=a2_0x4ac895,_0x15fc73=new WorkflowAttemptsCommand(),_0x4e78d3=program[_0x2d34ce(0x1c3)](),_0xc81079=await createTDXInstance(_0x4e78d3),_0x101a6c=await _0x15fc73[_0x2d34ce(0x339)]({'options':{..._0x4e78d3,..._0x1f38ce},'args':_0x3b9944?[_0x3b9944]:[],'tdx':_0xc81079});process[_0x2d34ce(0x2d1)](_0x101a6c);},attemptCmd=workflowCmd[a2_0x4ac895(0x1c4)]('attempt')[a2_0x4ac895(0x217)](a2_0x4ac895(0x224))['argument'](a2_0x4ac895(0x27f),a2_0x4ac895(0x191))[a2_0x4ac895(0x213)]('[action]',a2_0x4ac895(0x1cf))[a2_0x4ac895(0x213)]('[task-name]',a2_0x4ac895(0x15d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x187),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x4ac895(0x343)]('--reason\x20<text>',a2_0x4ac895(0x215))['option'](a2_0x4ac895(0x1d2),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x297),a2_0x4ac895(0x344))['option'](a2_0x4ac895(0x2c3),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x4ac895(0x343)](a2_0x4ac895(0x173),a2_0x4ac895(0x24f))[a2_0x4ac895(0x245)](async(_0x25a838,_0x1f50c5,_0xa08718,_0x421e44)=>{const _0x56805=a2_0x4ac895;if(_0x25a838===_0x56805(0x196)){await wfAttemptListAction(_0x1f50c5,_0x421e44);return;}if(!_0x25a838){attemptCmd[_0x56805(0x1b3)]();return;}const _0x571e88=program[_0x56805(0x1c3)](),_0x365351=await createTDXInstance(_0x571e88);let _0x72dd6=0x0;if(!_0x1f50c5){const _0x3f18f7=new WorkflowAttemptCommand();_0x72dd6=await _0x3f18f7[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5===_0x56805(0x112)){const _0x47107a=new WorkflowLogsCommand();_0x72dd6=await _0x47107a['run']({'options':{..._0x571e88,..._0x421e44},'args':_0xa08718?[_0x25a838,_0xa08718]:[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5==='tasks'){const _0x47374a=new WorkflowTasksCommand();_0x72dd6=await _0x47374a[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5===_0x56805(0x14f)){const _0x3a5d32=new WorkflowKillCommand();_0x72dd6=await _0x3a5d32[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x25a838],'tdx':_0x365351});}else{if(_0x1f50c5==='retry'){const _0x18d712=new WorkflowRetryCommand();_0x72dd6=await _0x18d712[_0x56805(0x339)]({'options':{..._0x571e88,..._0x421e44},'args':[_0x56805(0x120)+_0x25a838],'tdx':_0x365351});}else console['error']('Unknown\x20action:\x20'+_0x1f50c5),console[_0x56805(0x12a)](_0x56805(0x2b4)),_0x72dd6=0x1;}}}}process['exit'](_0x72dd6);});attemptCmd[a2_0x4ac895(0x1c4)]('list\x20[project]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x277))[a2_0x4ac895(0x343)](a2_0x4ac895(0x173),a2_0x4ac895(0x273))[a2_0x4ac895(0x245)](wfAttemptListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2af))['description'](a2_0x4ac895(0x307))[a2_0x4ac895(0x343)]('--include-retried',a2_0x4ac895(0x273))[a2_0x4ac895(0x245)](wfAttemptListAction),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2fe))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1a4))[a2_0x4ac895(0x343)]('--follow',a2_0x4ac895(0x2ab))[a2_0x4ac895(0x343)](a2_0x4ac895(0x166),a2_0x4ac895(0x287))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2d9),a2_0x4ac895(0x220))[a2_0x4ac895(0x245)](async(_0x44fc64,_0x1dabf3)=>{const _0xd9b160=a2_0x4ac895,_0x5bcf9a=new WorkflowTimelineCommand(),_0x46f233=program[_0xd9b160(0x1c3)](),_0x56b778=await createTDXInstance(_0x46f233),_0x24ff51=await _0x5bcf9a[_0xd9b160(0x339)]({'options':{..._0x46f233,..._0x1dabf3},'args':_0x44fc64?[_0x44fc64]:[],'tdx':_0x56b778});process[_0xd9b160(0x2d1)](_0x24ff51);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1cb))[a2_0x4ac895(0x217)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2c6),a2_0x4ac895(0x1e7))['option'](a2_0x4ac895(0x297),a2_0x4ac895(0x2e6))[a2_0x4ac895(0x245)](async(_0x3445bd,_0x1e7027)=>{const _0x1a1cff=a2_0x4ac895,_0x31edd4=new WorkflowRetryCommand(),_0x191c59=program[_0x1a1cff(0x1c3)](),_0x1634ac=await createTDXInstance(_0x191c59),_0x3aa2d1=await _0x31edd4[_0x1a1cff(0x339)]({'options':{..._0x191c59,..._0x1e7027},'args':[_0x3445bd],'tdx':_0x1634ac});process[_0x1a1cff(0x2d1)](_0x3aa2d1);}),workflowCmd[a2_0x4ac895(0x1c4)]('run\x20[workflow]')['description'](a2_0x4ac895(0x136))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a3),a2_0x4ac895(0x1fb),(_0x335408,_0x466b46=[])=>[..._0x466b46,_0x335408],[])['option']('--session-time\x20<time>',a2_0x4ac895(0x2c8))[a2_0x4ac895(0x245)](async(_0xf51275,_0x3dfd2e)=>{const _0x184b68=a2_0x4ac895,_0x79247a=new WorkflowRunCommand(),_0x470f9a=program['opts'](),_0x140db3=await createTDXInstance(_0x470f9a),_0x426007=await _0x79247a[_0x184b68(0x339)]({'options':{..._0x470f9a,..._0x3dfd2e},'args':_0xf51275?[_0xf51275]:[],'tdx':_0x140db3});process[_0x184b68(0x2d1)](_0x426007);}),workflowCmd[a2_0x4ac895(0x1c4)]('download\x20<project-name>\x20[output-dir]')['description'](a2_0x4ac895(0x1ce))['option'](a2_0x4ac895(0x2ad),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x4ac895(0x245)](async(_0x2d1e75,_0x5552e5,_0x385cad)=>{const _0x21a72d=a2_0x4ac895,_0x161361=new WorkflowDownloadCommand(),_0x4916ed=program[_0x21a72d(0x1c3)](),_0x5a7679=await createTDXInstance(_0x4916ed),_0x1513f7=await _0x161361['run']({'options':{..._0x4916ed,..._0x385cad},'args':[_0x2d1e75,_0x5552e5||'.'],'tdx':_0x5a7679});process[_0x21a72d(0x2d1)](_0x1513f7);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x4ac895(0x217)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')['option'](a2_0x4ac895(0x2ad),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x4ac895(0x343)]('--dry-run',a2_0x4ac895(0x292))[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x12741c,_0x5bd682,_0x26c2df)=>{const _0x766460=a2_0x4ac895,_0x43660c=new WorkflowPullCommand(),_0x20f92b=program[_0x766460(0x1c3)](),_0x402c82=await createTDXInstance(_0x20f92b),_0x1fbdbc=await _0x43660c[_0x766460(0x339)]({'options':{..._0x20f92b,..._0x26c2df},'args':_0x5bd682?[_0x12741c,_0x5bd682]:[_0x12741c],'tdx':_0x402c82});process[_0x766460(0x2d1)](_0x1fbdbc);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x320))[a2_0x4ac895(0x217)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2ad),a2_0x4ac895(0x162))['option'](a2_0x4ac895(0x1c0),a2_0x4ac895(0x16b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),a2_0x4ac895(0x165))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))['action'](async(_0x4478b1,_0x4e7ec7)=>{const _0x239959=a2_0x4ac895,_0x595867=new WorkflowPushCommand(),_0x5b50e2=program['opts'](),_0x3f85d8=await createTDXInstance(_0x5b50e2),_0x581e2a=await _0x595867['run']({'options':{..._0x5b50e2,..._0x4e7ec7},'args':_0x4478b1?[_0x4478b1]:[],'tdx':_0x3f85d8});process[_0x239959(0x2d1)](_0x581e2a);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x316))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),a2_0x4ac895(0x322))['option'](a2_0x4ac895(0x2ad),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),a2_0x4ac895(0x165))['action'](async(_0x5ee08a,_0x3b1927)=>{const _0x59b424=a2_0x4ac895,_0x20154b=new WorkflowUploadCommand(),_0x1d433a=program[_0x59b424(0x1c3)](),_0x4189d2=await createTDXInstance(_0x1d433a),_0x2cbe52=await _0x20154b[_0x59b424(0x339)]({'options':{..._0x1d433a,..._0x3b1927},'args':_0x5ee08a?[_0x5ee08a]:[],'tdx':_0x4189d2});process['exit'](_0x2cbe52);}),workflowCmd[a2_0x4ac895(0x1c4)]('clone\x20[source-dir]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2d0))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x4ac895(0x343)]('--revision\x20<revision>',a2_0x4ac895(0x162))[a2_0x4ac895(0x343)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x4ac895(0x343)](a2_0x4ac895(0x12f),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),'Skip\x20confirmation\x20prompt')['action'](async(_0x9d99ff,_0x27f625)=>{const _0x131e98=a2_0x4ac895,_0x574567=new WorkflowCloneCommand(),_0x5e6793=program[_0x131e98(0x1c3)](),_0x50d915=await createTDXInstance(_0x5e6793),_0x3cca6b=await _0x574567[_0x131e98(0x339)]({'options':{..._0x5e6793,..._0x27f625},'args':_0x9d99ff?[_0x9d99ff]:[],'tdx':_0x50d915});process[_0x131e98(0x2d1)](_0x3cca6b);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1b4))[a2_0x4ac895(0x217)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')['action'](async(_0x559d9e,_0x2a50d8)=>{const _0xa16e96=a2_0x4ac895,_0x39f359=new WorkflowDeleteCommand(),_0x26f8d7=program['opts'](),_0x38b28e=await createTDXInstance(_0x26f8d7),_0x449e02=await _0x39f359[_0xa16e96(0x339)]({'options':{..._0x26f8d7,..._0x2a50d8},'args':[_0x559d9e],'tdx':_0x38b28e});process[_0xa16e96(0x2d1)](_0x449e02);}),workflowCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x203))[a2_0x4ac895(0x217)](a2_0x4ac895(0x281))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b8),a2_0x4ac895(0x280))['action'](async(_0x36d1b2,_0x1eb24a)=>{const _0x19fdc3=a2_0x4ac895,_0x43bff1=new WorkflowUseCommand(),_0x4b18b6=program[_0x19fdc3(0x1c3)](),_0x5ca3ef=await createTDXInstance(_0x4b18b6),_0x2f8700=await _0x43bff1[_0x19fdc3(0x339)]({'options':{..._0x4b18b6,..._0x1eb24a},'args':_0x36d1b2?[_0x36d1b2]:[],'tdx':_0x5ca3ef});process[_0x19fdc3(0x2d1)](_0x2f8700);});const wfSecretsCmd=workflowCmd['command'](a2_0x4ac895(0x2b5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x283));wfSecretsCmd['command']('list\x20[project]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x10e))[a2_0x4ac895(0x245)](async(_0x32e9f3,_0x49dccb)=>{const _0x3692c3=a2_0x4ac895,_0x43a210=new WorkflowSecretsListCommand(),_0x2f7cf6=program[_0x3692c3(0x1c3)](),_0x20c6ac=await createTDXInstance(_0x2f7cf6),_0x4e5fc9=await _0x43a210['run']({'options':{..._0x2f7cf6,..._0x49dccb},'args':_0x32e9f3?[_0x32e9f3]:[],'tdx':_0x20c6ac});process[_0x3692c3(0x2d1)](_0x4e5fc9);}),wfSecretsCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x335))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1c1))[a2_0x4ac895(0x245)](async(_0x292d49,_0x21e951)=>{const _0x489853=a2_0x4ac895,_0x493cb2=new WorkflowSecretsSetCommand(),_0x220c53=program[_0x489853(0x1c3)](),_0x4bf43b=await createTDXInstance(_0x220c53),_0x2de8b9=await _0x493cb2[_0x489853(0x339)]({'options':{..._0x220c53,..._0x21e951},'args':_0x292d49,'tdx':_0x4bf43b});process[_0x489853(0x2d1)](_0x2de8b9);}),wfSecretsCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x25a))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x4ac895(0x343)]('-y,\x20--yes',a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](async(_0x5a3e42,_0x292206)=>{const _0x1e0851=a2_0x4ac895,_0x8f92a7=new WorkflowSecretsDeleteCommand(),_0x49db73=program[_0x1e0851(0x1c3)](),_0x38bef1=await createTDXInstance(_0x49db73),_0x5ab98a=await _0x8f92a7[_0x1e0851(0x339)]({'options':{..._0x49db73,..._0x292206},'args':_0x5a3e42,'tdx':_0x38bef1});process[_0x1e0851(0x2d1)](_0x5ab98a);});const jobCmd=program[a2_0x4ac895(0x1c4)]('job')[a2_0x4ac895(0x217)](a2_0x4ac895(0x346)),jobListAction=async _0x4c1c87=>{const _0x3a1edf=a2_0x4ac895,_0x1aac9f=new JobListCommand(),_0x933dd7=program[_0x3a1edf(0x1c3)](),_0x3290ff=await createTDXInstance(_0x933dd7),_0x3f7973=await _0x1aac9f[_0x3a1edf(0x339)]({'options':{..._0x933dd7,..._0x4c1c87},'args':[],'tdx':_0x3290ff});process[_0x3a1edf(0x2d1)](_0x3f7973);};jobCmd[a2_0x4ac895(0x1c4)]('list')['description'](a2_0x4ac895(0x2a5))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x294))[a2_0x4ac895(0x245)](jobListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x183),{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x27e))['option'](a2_0x4ac895(0x2f8),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x4ac895(0x245)](jobListAction),jobCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x13d))[a2_0x4ac895(0x217)]('Show\x20job\x20details')[a2_0x4ac895(0x245)](async(_0x1c2de6,_0x26592a)=>{const _0x32878d=a2_0x4ac895,_0x493df2=new JobShowCommand(),_0x7b447a=program['opts'](),_0x454f3a=await createTDXInstance(_0x7b447a),_0x1226da=await _0x493df2[_0x32878d(0x339)]({'options':{..._0x7b447a,..._0x26592a},'args':[_0x1c2de6],'tdx':_0x454f3a});process[_0x32878d(0x2d1)](_0x1226da);}),jobCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x134))[a2_0x4ac895(0x217)]('Kill\x20a\x20job')['action'](async(_0x2f810b,_0x2fcd5c)=>{const _0x434d89=a2_0x4ac895,_0x5786d0=new JobKillCommand(),_0x377df8=program[_0x434d89(0x1c3)](),_0x3fba43=await createTDXInstance(_0x377df8),_0x1049a1=await _0x5786d0[_0x434d89(0x339)]({'options':{..._0x377df8,..._0x2fcd5c},'args':[_0x2f810b],'tdx':_0x3fba43});process[_0x434d89(0x2d1)](_0x1049a1);}),jobCmd[a2_0x4ac895(0x1c4)]('submit\x20[query]')[a2_0x4ac895(0x217)](a2_0x4ac895(0x33f))[a2_0x4ac895(0x343)](a2_0x4ac895(0x15c),a2_0x4ac895(0x185),'trino')[a2_0x4ac895(0x343)](a2_0x4ac895(0x325),'Read\x20query\x20from\x20file')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2e7),a2_0x4ac895(0x252),a2_0x4ac895(0x26c))[a2_0x4ac895(0x245)](async(_0xf366d7,_0x1618e9)=>{const _0x4129b8=a2_0x4ac895,_0x3f4b16=new JobSubmitCommand(),_0x228c82=program[_0x4129b8(0x1c3)](),_0x2929e3=await createTDXInstance(_0x228c82),_0x5db444=await _0x3f4b16['run']({'options':{..._0x228c82,..._0x1618e9},'args':_0xf366d7?[_0xf366d7]:[],'tdx':_0x2929e3});process['exit'](_0x5db444);}),jobCmd[a2_0x4ac895(0x1c4)]('result\x20<job-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x163))[a2_0x4ac895(0x245)](async(_0x52c431,_0xe20463)=>{const _0x31dd67=a2_0x4ac895,_0xb58d5a=new JobResultCommand(),_0x257e6b=program[_0x31dd67(0x1c3)](),_0x96696=await createTDXInstance(_0x257e6b),_0x50f7a6=await _0xb58d5a[_0x31dd67(0x339)]({'options':{..._0x257e6b,..._0xe20463},'args':[_0x52c431],'tdx':_0x96696});process['exit'](_0x50f7a6);});const llmCmd=program['command'](a2_0x4ac895(0x1d4))['description'](a2_0x4ac895(0x20c));llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2e4))[a2_0x4ac895(0x217)](a2_0x4ac895(0x247))[a2_0x4ac895(0x245)](async(_0x3c32c1,_0x27c0a3)=>{const _0x254639=a2_0x4ac895,_0x420521=new LLMUseCommand(),_0x4e76a1=program[_0x254639(0x1c3)](),_0x28f774=await createTDXInstance(_0x4e76a1),_0x4bb447=await _0x420521['run']({'options':{..._0x4e76a1,..._0x27c0a3},'args':[_0x3c32c1],'tdx':_0x28f774});process['exit'](_0x4bb447);}),llmCmd['command'](a2_0x4ac895(0x268))['description'](a2_0x4ac895(0x27c))[a2_0x4ac895(0x245)](async _0x53c1ae=>{const _0x5bc9e2=a2_0x4ac895,_0x411834=new LLMModelsCommand(),_0x5e59d1=program[_0x5bc9e2(0x1c3)](),_0x164a90=await createTDXInstance(_0x5e59d1),_0x5d2c87=await _0x411834[_0x5bc9e2(0x339)]({'options':{..._0x5e59d1,..._0x53c1ae},'args':[],'tdx':_0x164a90});process[_0x5bc9e2(0x2d1)](_0x5d2c87);});const projectCmd=llmCmd['command']('project')[a2_0x4ac895(0x217)](a2_0x4ac895(0x111)),llmProjectListAction=async(_0x44e672,_0x2ad2b4)=>{const _0x82e0f3=a2_0x4ac895,_0x7c81a5=new LLMProjectsCommand(),_0x1211a6=program[_0x82e0f3(0x1c3)](),_0x52b4b6=await createTDXInstance(_0x1211a6),_0x285856=await _0x7c81a5['run']({'options':{..._0x1211a6,..._0x2ad2b4},'args':_0x44e672?[_0x44e672]:[],'tdx':_0x52b4b6});process[_0x82e0f3(0x2d1)](_0x285856);};projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x24b))[a2_0x4ac895(0x245)](llmProjectListAction),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2cf))[a2_0x4ac895(0x217)](a2_0x4ac895(0x199))[a2_0x4ac895(0x245)](llmProjectListAction),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))['description'](a2_0x4ac895(0x288))['option'](a2_0x4ac895(0x1b9),a2_0x4ac895(0x1c7))['action'](async(_0x3a83ce,_0x3589a3)=>{const _0x1712e8=a2_0x4ac895,_0x30d56d=new LLMProjectCreateCommand(),_0x545245=program[_0x1712e8(0x1c3)](),_0x53cdd7=await createTDXInstance(_0x545245),_0x45431c=await _0x30d56d[_0x1712e8(0x339)]({'options':{..._0x545245,..._0x3589a3},'args':[_0x3a83ce],'tdx':_0x53cdd7});process[_0x1712e8(0x2d1)](_0x45431c);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x25e))['description'](a2_0x4ac895(0x11c))['action'](async(_0x30664c,_0x3cffff)=>{const _0x3b4941=a2_0x4ac895,_0xd03475=new LLMProjectDeleteCommand(),_0x46023b=program[_0x3b4941(0x1c3)](),_0x4f3d03=await createTDXInstance(_0x46023b),_0x146fcb=await _0xd03475[_0x3b4941(0x339)]({'options':{..._0x46023b,..._0x3cffff},'args':[_0x30664c],'tdx':_0x4f3d03});process['exit'](_0x146fcb);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2f5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x11e))['option'](a2_0x4ac895(0x1f9),a2_0x4ac895(0x2b9))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1c0),a2_0x4ac895(0x20d))[a2_0x4ac895(0x245)](async(_0x267bb5,_0x4fbd5f)=>{const _0x4a466b=a2_0x4ac895,_0x2cbeea=new LLMProjectBackupCommand(),_0x54c29b=program[_0x4a466b(0x1c3)](),_0x411534=await createTDXInstance(_0x54c29b),_0x3fec72=await _0x2cbeea[_0x4a466b(0x339)]({'options':{..._0x54c29b,..._0x4fbd5f},'args':[_0x267bb5],'tdx':_0x411534});process[_0x4a466b(0x2d1)](_0x3fec72);}),projectCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x169))[a2_0x4ac895(0x217)](a2_0x4ac895(0x117))[a2_0x4ac895(0x343)](a2_0x4ac895(0x219),a2_0x4ac895(0x1f6))[a2_0x4ac895(0x343)]('--dry-run','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x4ac895(0x245)](async(_0x28c0f2,_0x58ce8b)=>{const _0x35afbb=a2_0x4ac895,_0xa36f16=new LLMProjectRestoreCommand(),_0x4011a0=program[_0x35afbb(0x1c3)](),_0x3562b5=await createTDXInstance(_0x4011a0),_0x25c273=await _0xa36f16[_0x35afbb(0x339)]({'options':{..._0x4011a0,..._0x58ce8b},'args':[_0x28c0f2],'tdx':_0x3562b5});process[_0x35afbb(0x2d1)](_0x25c273);});const llmAgentListAction=async(_0x456d17,_0x300e0b)=>{const _0x59fb8d=a2_0x4ac895,_0x377ea5=new LLMAgentsCommand(),_0x387ab6=program['opts'](),_0x3aa662=await createTDXInstance(_0x387ab6),_0x345561=await _0x377ea5[_0x59fb8d(0x339)]({'options':{..._0x387ab6,..._0x300e0b},'args':_0x456d17?[_0x456d17]:[],'tdx':_0x3aa662});process[_0x59fb8d(0x2d1)](_0x345561);};llmCmd['command'](a2_0x4ac895(0x180))[a2_0x4ac895(0x217)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x4ac895(0x245)](llmAgentListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x180))['description'](a2_0x4ac895(0x26b))[a2_0x4ac895(0x245)](llmAgentListAction),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x221))[a2_0x4ac895(0x217)](a2_0x4ac895(0x150))[a2_0x4ac895(0x343)](a2_0x4ac895(0x32e),a2_0x4ac895(0x197))[a2_0x4ac895(0x245)](async(_0x4a2c79,_0x413c71)=>{const _0x19576c=a2_0x4ac895,_0x175b99=new LLMHistoryCommand(),_0x29f90e=program[_0x19576c(0x1c3)](),_0x41f88f=await createTDXInstance(_0x29f90e),_0x5dccc2=await _0x175b99[_0x19576c(0x339)]({'options':{..._0x29f90e,..._0x413c71},'args':_0x4a2c79?[_0x4a2c79]:[],'tdx':_0x41f88f});process['exit'](_0x5dccc2);}),llmCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x119))[a2_0x4ac895(0x217)](a2_0x4ac895(0x303))['option'](a2_0x4ac895(0x2f7),'Port\x20to\x20run\x20the\x20proxy\x20server\x20on',a2_0x4ac895(0x1fa))[a2_0x4ac895(0x343)](a2_0x4ac895(0x282),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['option'](a2_0x4ac895(0x14b),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')['action'](async _0x204301=>{const _0x1cd466=a2_0x4ac895,_0x2ab984=new LLMProxyCommand(),_0x530b2a=program['opts'](),_0x22912b=await createTDXInstance(_0x530b2a),_0x45d5c8={..._0x204301,'port':_0x204301[_0x1cd466(0x130)]?parseInt(_0x204301[_0x1cd466(0x130)],0xa):undefined},_0xb0c27f=await _0x2ab984[_0x1cd466(0x339)]({'options':{..._0x530b2a,..._0x45d5c8},'args':[],'tdx':_0x22912b});process[_0x1cd466(0x2d1)](_0xb0c27f);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x179))[a2_0x4ac895(0x28a)](a2_0x4ac895(0x19b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x34f))['option'](a2_0x4ac895(0x129),'Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x4ac895(0x176))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1da),'Continue\x20most\x20recent\x20conversation')[a2_0x4ac895(0x343)](a2_0x4ac895(0x31c),a2_0x4ac895(0x202))[a2_0x4ac895(0x343)](a2_0x4ac895(0x19d),a2_0x4ac895(0x208))[a2_0x4ac895(0x1ad)]()[a2_0x4ac895(0x27b)](!![])[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\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'](async(_0x2b2743,_0x57029d)=>{const _0x38c446=a2_0x4ac895,_0x5d62bd=program[_0x38c446(0x1c3)](),_0x1ae059=Array[_0x38c446(0x1d5)](_0x2b2743)?_0x2b2743:[];if(_0x1ae059[0x0]===_0x38c446(0x1a8)){const _0x42d927=new ClaudeStatuslineCommand(),_0x2eeaab=await _0x42d927['run']({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059[_0x38c446(0x2bb)](0x1),'tdx':null});process[_0x38c446(0x2d1)](_0x2eeaab);}if(_0x1ae059[0x0]===_0x38c446(0x28a)){const _0x3734a0=new ClaudeUsageCommand(),_0x257031=await _0x3734a0[_0x38c446(0x339)]({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059[_0x38c446(0x2bb)](0x1),'tdx':null});process[_0x38c446(0x2d1)](_0x257031);}const _0x48b29d=new ClaudeCommand(),_0x4b5bf4=await createTDXInstance(_0x5d62bd),_0x2bc8ee=await _0x48b29d['run']({'options':{..._0x5d62bd,..._0x57029d},'args':_0x1ae059,'tdx':_0x4b5bf4});process['exit'](_0x2bc8ee);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x234))['description'](a2_0x4ac895(0x110))[a2_0x4ac895(0x343)]('--clear','Clear\x20session\x20context')[a2_0x4ac895(0x245)](async(_0x49363f,_0xd6b4d8,_0x4f9e16)=>{const _0x4ebc49=a2_0x4ac895,_0x3966ac=new UseCommand(),_0x14c1af=program[_0x4ebc49(0x1c3)](),_0x16f63f=[];if(_0x49363f)_0x16f63f[_0x4ebc49(0x19e)](_0x49363f);if(_0xd6b4d8)_0x16f63f[_0x4ebc49(0x19e)](_0xd6b4d8);const _0x56b40f=await _0x3966ac[_0x4ebc49(0x339)]({'options':{..._0x14c1af,..._0x4f9e16},'args':_0x16f63f,'tdx':null});process['exit'](_0x56b40f);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x10b))[a2_0x4ac895(0x217)](a2_0x4ac895(0x113))[a2_0x4ac895(0x343)]('--last',a2_0x4ac895(0x24d))['action'](async _0x4d7198=>{const _0x19db6b=a2_0x4ac895,_0x34fb40=new ChatsCommand(),_0x3ee8db=program[_0x19db6b(0x1c3)](),_0xbf70ba=await createTDXInstance(_0x3ee8db),_0x5bb823=await _0x34fb40[_0x19db6b(0x339)]({'options':{..._0x3ee8db,..._0x4d7198},'args':[],'tdx':_0xbf70ba});process[_0x19db6b(0x2d1)](_0x5bb823);});const authCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1af))['description'](a2_0x4ac895(0x137));async function runAuthStatusCommand(_0x532edd){const _0x26e746=a2_0x4ac895,_0x4b69ba=new AuthStatusCommand(),_0x4caf7e=program[_0x26e746(0x1c3)](),_0x21e787=await createTDXInstance(_0x4caf7e),_0x4fd485=await _0x4b69ba[_0x26e746(0x339)]({'options':{..._0x4caf7e,..._0x532edd},'args':[],'tdx':_0x21e787});process[_0x26e746(0x2d1)](_0x4fd485);}authCmd[a2_0x4ac895(0x245)](runAuthStatusCommand),authCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x16f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ff))[a2_0x4ac895(0x245)](runAuthStatusCommand),authCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1f8))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2be))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')[a2_0x4ac895(0x245)](async _0x36662a=>{const _0xe4b52=a2_0x4ac895,_0x1cd2ce=new AuthSetupCommand(),_0x12cd3d=program[_0xe4b52(0x1c3)](),_0x13a78e=await createTDXInstance(_0x12cd3d),_0x4af1a7=await _0x1cd2ce[_0xe4b52(0x339)]({'options':{..._0x12cd3d,..._0x36662a},'args':[],'tdx':_0x13a78e});process['exit'](_0x4af1a7);}),authCmd['command'](a2_0x4ac895(0x1b1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x175))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x2f4))[a2_0x4ac895(0x245)](async _0x182170=>{const _0x50889e=a2_0x4ac895,_0x282798=new AuthClearCommand(),_0xd093f8=program['opts'](),_0x36af0f=await _0x282798[_0x50889e(0x339)]({'options':{..._0xd093f8,..._0x182170},'args':[],'tdx':null});process[_0x50889e(0x2d1)](_0x36af0f);});const userCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x311))[a2_0x4ac895(0x217)]('User\x20management\x20commands'),userListAction=async _0xdab6dd=>{const _0x396ee6=a2_0x4ac895,_0x1ae8d7=new UserListCommand(),_0x4c8d09=program[_0x396ee6(0x1c3)](),_0x1933e9=await createTDXInstance(_0x4c8d09),_0x2563d7=await _0x1ae8d7[_0x396ee6(0x339)]({'options':{..._0x4c8d09,..._0xdab6dd},'args':[],'tdx':_0x1933e9});process[_0x396ee6(0x2d1)](_0x2563d7);};userCmd[a2_0x4ac895(0x245)](async _0x1fbee8=>{const _0x1feb95=a2_0x4ac895,_0x339092=new UserCommand(),_0x481ea2=program[_0x1feb95(0x1c3)](),_0x2d725b=await createTDXInstance(_0x481ea2),_0x286653=await _0x339092[_0x1feb95(0x339)]({'options':{..._0x481ea2,..._0x1fbee8},'args':[],'tdx':_0x2d725b});process['exit'](_0x286653);}),userCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x196))[a2_0x4ac895(0x217)](a2_0x4ac895(0x34b))['action'](userListAction),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d2))[a2_0x4ac895(0x217)](a2_0x4ac895(0x236))[a2_0x4ac895(0x245)](userListAction),program[a2_0x4ac895(0x1c4)]('profiles')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f2))[a2_0x4ac895(0x245)](async _0x260769=>{const _0x2c0347=a2_0x4ac895,_0x4df742=new ProfilesCommand(),_0x9bbea3=program['opts'](),_0x35ec1f=await _0x4df742[_0x2c0347(0x339)]({'options':{..._0x9bbea3,..._0x260769},'args':[],'tdx':null});process[_0x2c0347(0x2d1)](_0x35ec1f);});const profileCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a2))[a2_0x4ac895(0x217)](a2_0x4ac895(0x157));profileCmd['action'](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x579cfa=>{const _0x362e19=a2_0x4ac895,_0x1782bb=new ProfilesCommand(),_0x3b4285=program[_0x362e19(0x1c3)](),_0x191647=await _0x1782bb[_0x362e19(0x339)]({'options':{..._0x3b4285,..._0x579cfa},'args':[],'tdx':null});process[_0x362e19(0x2d1)](_0x191647);};profileCmd['command'](a2_0x4ac895(0x196))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2f2))['action'](profileListAction),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2dd))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),a2_0x4ac895(0x2c0))['action'](async _0x28ee3d=>{const _0x2e4ea6=a2_0x4ac895,_0x3db72d=new ProfileCreateCommand(),_0x65d4f0=program[_0x2e4ea6(0x1c3)](),_0x1a1798=await _0x3db72d[_0x2e4ea6(0x339)]({'options':{..._0x65d4f0,..._0x28ee3d},'args':[],'tdx':null});process[_0x2e4ea6(0x2d1)](_0x1a1798);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x248))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2fb))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x4ac895(0x245)](async(_0x57d7cd,_0x4166c0)=>{const _0x1283c0=a2_0x4ac895,_0x433ff4=new ProfileRemoveCommand(),_0x579543=program['opts'](),_0x555784=await _0x433ff4['run']({'options':{..._0x579543,..._0x4166c0},'args':[_0x57d7cd],'tdx':null});process[_0x1283c0(0x2d1)](_0x555784);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x301))['description'](a2_0x4ac895(0x2e2))[a2_0x4ac895(0x250)](a2_0x4ac895(0x1d1),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x4ac895(0x245)](async(_0xf4b53a,_0x579aa4)=>{const _0x5e6c69=a2_0x4ac895,_0x394ece=new ProfileSetCommand(),_0x2865b9=program[_0x5e6c69(0x1c3)](),_0x4b4dff=await _0x394ece[_0x5e6c69(0x339)]({'options':{..._0x2865b9,..._0x579aa4},'args':[_0xf4b53a],'tdx':null});process['exit'](_0x4b4dff);}),profileCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x319))['description'](a2_0x4ac895(0x2b0))[a2_0x4ac895(0x250)]('after',a2_0x4ac895(0x19f))['action'](async(_0x3191c6,_0xd27eb2)=>{const _0x2f7c36=a2_0x4ac895,_0x161cd5=new ProfileUseCommand(),_0x296a15=program[_0x2f7c36(0x1c3)](),_0x210892=await _0x161cd5['run']({'options':{..._0x296a15,..._0xd27eb2},'args':[_0x3191c6],'tdx':null});process[_0x2f7c36(0x2d1)](_0x210892);});const engageCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2d3))[a2_0x4ac895(0x217)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x1cd556=>{return async(_0x3ee411,_0x4b58b5)=>{const _0x27a8ab=a2_0x781d,_0x498dc9=new _0x1cd556(),_0x2515f7=program[_0x27a8ab(0x1c3)](),_0x55c737=await createTDXInstance(_0x2515f7),_0x4c8709=await _0x498dc9['run']({'options':{..._0x2515f7,..._0x4b58b5},'args':[_0x3ee411],'tdx':_0x55c737});process[_0x27a8ab(0x2d1)](_0x4c8709);};},createEngageNoArgAction=_0x4af5c8=>{return async _0x110292=>{const _0x5e9d0d=a2_0x781d,_0x2a93fe=new _0x4af5c8(),_0x16257d=program[_0x5e9d0d(0x1c3)](),_0x14c01e=await createTDXInstance(_0x16257d),_0x137bc0=await _0x2a93fe['run']({'options':{..._0x16257d,..._0x110292},'args':[],'tdx':_0x14c01e});process[_0x5e9d0d(0x2d1)](_0x137bc0);};},campaignCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x139))[a2_0x4ac895(0x217)](a2_0x4ac895(0x18c)),campaignListAction=async(_0x1b23db,_0x1eea64)=>{const _0x26d554=a2_0x4ac895,_0x4075d9=new EngageCampaignsCommand(),_0x13aa55=program[_0x26d554(0x1c3)](),_0xbd9947=await createTDXInstance(_0x13aa55),_0x1569bf=await _0x4075d9[_0x26d554(0x339)]({'options':{..._0x13aa55,..._0x1eea64},'args':_0x1b23db?[_0x1b23db]:[],'tdx':_0xbd9947});process[_0x26d554(0x2d1)](_0x1569bf);};campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2fc),a2_0x4ac895(0x235))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2f8),a2_0x4ac895(0x140))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['action'](campaignListAction),engageCmd['command'](a2_0x4ac895(0x2c5))[a2_0x4ac895(0x217)]('List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)')[a2_0x4ac895(0x343)]('--type\x20<type>',a2_0x4ac895(0x235))[a2_0x4ac895(0x343)]('--status\x20<status>',a2_0x4ac895(0x140))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](campaignListAction),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28f))[a2_0x4ac895(0x217)]('Show\x20campaign\x20details')[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['option'](a2_0x4ac895(0x12c),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x23f))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x170),a2_0x4ac895(0x243))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x2fc),a2_0x4ac895(0x340))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),'Workspace\x20name\x20(required)')[a2_0x4ac895(0x343)]('--description\x20<desc>',a2_0x4ac895(0x1c8))[a2_0x4ac895(0x343)]('--segment\x20<path>',a2_0x4ac895(0x291))[a2_0x4ac895(0x343)](a2_0x4ac895(0x327),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x4ac895(0x343)]('--json-columns\x20<cols>',a2_0x4ac895(0x1e3))[a2_0x4ac895(0x343)](a2_0x4ac895(0x334),a2_0x4ac895(0x2cc))['option'](a2_0x4ac895(0x305),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4ac895(0x245)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x4ac895(0x2a6))['description'](a2_0x4ac895(0x27a))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--name\x20<name>','New\x20campaign\x20name')['option'](a2_0x4ac895(0x1a6),a2_0x4ac895(0x1c8))[a2_0x4ac895(0x343)](a2_0x4ac895(0x265),a2_0x4ac895(0x291))['option']('--email-sender-id\x20<id>',a2_0x4ac895(0x206))[a2_0x4ac895(0x343)](a2_0x4ac895(0x315),a2_0x4ac895(0x1e3))[a2_0x4ac895(0x343)](a2_0x4ac895(0x334),a2_0x4ac895(0x2cc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x305),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x4ac895(0x217)]('Delete\x20a\x20campaign')[a2_0x4ac895(0x343)]('--workspace\x20<name>','Workspace\x20name')['option'](a2_0x4ac895(0x1a0),a2_0x4ac895(0x2ea))['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a4))[a2_0x4ac895(0x217)](a2_0x4ac895(0x31b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x258))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1bc))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),'Workspace\x20name')[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x4ac895(0x1c4)]('resume\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x20e))[a2_0x4ac895(0x343)]('--workspace\x20<name>',a2_0x4ac895(0x20a))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x4ac895(0x1c4)]('duplicate\x20<name-or-id>')[a2_0x4ac895(0x217)]('Duplicate\x20a\x20campaign')[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x189))[a2_0x4ac895(0x217)]('Email\x20template\x20management'),templateListAction=async(_0x580d3f,_0x533356)=>{const _0x3c988a=a2_0x4ac895,_0x812ea4=new EngageTemplatesCommand(),_0x514ee7=program[_0x3c988a(0x1c3)](),_0x35fbe1=await createTDXInstance(_0x514ee7),_0x5020a9=await _0x812ea4[_0x3c988a(0x339)]({'options':{..._0x514ee7,..._0x533356},'args':_0x580d3f?[_0x580d3f]:[],'tdx':_0x35fbe1});process[_0x3c988a(0x2d1)](_0x5020a9);};templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x15a))[a2_0x4ac895(0x343)]('--workspace\x20<name>',a2_0x4ac895(0x20a))['action'](templateListAction),engageCmd['command'](a2_0x4ac895(0x2c1))[a2_0x4ac895(0x217)](a2_0x4ac895(0x242))['option'](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x245)](templateListAction),templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x28f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x21b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))['description'](a2_0x4ac895(0x133))[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x170),a2_0x4ac895(0x326))['requiredOption'](a2_0x4ac895(0x2ae),'Email\x20subject\x20template')[a2_0x4ac895(0x1d7)](a2_0x4ac895(0x13e),a2_0x4ac895(0x29b))[a2_0x4ac895(0x343)](a2_0x4ac895(0x188),a2_0x4ac895(0x1cd))[a2_0x4ac895(0x343)]('--plaintext\x20<text>',a2_0x4ac895(0x116))['option'](a2_0x4ac895(0x14d),a2_0x4ac895(0x1f1))['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command']('update\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x298))['option'](a2_0x4ac895(0x188),'Workspace\x20name')[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'New\x20template\x20name')['option']('--subject\x20<subject>','Email\x20subject\x20template')['option'](a2_0x4ac895(0x13e),a2_0x4ac895(0x29b))['option'](a2_0x4ac895(0x2a8),a2_0x4ac895(0x116))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x4ac895(0x1c4)]('delete\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x204))[a2_0x4ac895(0x343)]('--workspace\x20<name>','Workspace\x20name')['option']('--yes','Skip\x20confirmation\x20prompt')[a2_0x4ac895(0x245)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x19c))[a2_0x4ac895(0x217)](a2_0x4ac895(0x312)),workspaceListAction=async(_0x44ab52,_0x56bf79)=>{const _0x128d1c=a2_0x4ac895,_0x2e5581=new EngageWorkspacesCommand(),_0x396196=program['opts'](),_0x2ee735=await createTDXInstance(_0x396196),_0x52ef51=await _0x2e5581['run']({'options':{..._0x396196,..._0x56bf79},'args':_0x44ab52?[_0x44ab52]:[],'tdx':_0x2ee735});process[_0x128d1c(0x2d1)](_0x52ef51);};workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2e9))[a2_0x4ac895(0x245)](workspaceListAction),engageCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1e5))[a2_0x4ac895(0x217)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x4ac895(0x245)](workspaceListAction),workspaceCmd[a2_0x4ac895(0x1c4)]('show\x20<name-or-id>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x239))['option'](a2_0x4ac895(0x12c),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x349))[a2_0x4ac895(0x217)](a2_0x4ac895(0x33e))['requiredOption'](a2_0x4ac895(0x170),a2_0x4ac895(0x20a))[a2_0x4ac895(0x343)]('--description\x20<desc>',a2_0x4ac895(0x2eb))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2a6))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2da))[a2_0x4ac895(0x343)](a2_0x4ac895(0x170),'New\x20workspace\x20name')['option'](a2_0x4ac895(0x1a6),a2_0x4ac895(0x2eb))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x264))[a2_0x4ac895(0x217)](a2_0x4ac895(0x32d))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1a0),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x285))[a2_0x4ac895(0x245)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program['command'](a2_0x4ac895(0x1a7))[a2_0x4ac895(0x217)](a2_0x4ac895(0x22b)),connectionListAction=async _0x5ba5c0=>{const _0x51d3ed=a2_0x4ac895,_0x389422=new ConnectionListCommand(),_0x329e18=program[_0x51d3ed(0x1c3)](),_0x5b586e=await createTDXInstance(_0x329e18),_0x14f90c=await _0x389422[_0x51d3ed(0x339)]({'options':{..._0x329e18,..._0x5ba5c0},'args':[],'tdx':_0x5b586e});process['exit'](_0x14f90c);};connectionCmd[a2_0x4ac895(0x1c4)]('list')[a2_0x4ac895(0x217)]('List\x20all\x20data\x20connections')[a2_0x4ac895(0x245)](connectionListAction),program[a2_0x4ac895(0x1c4)]('connections',{'hidden':!![]})[a2_0x4ac895(0x217)](a2_0x4ac895(0x10f))[a2_0x4ac895(0x245)](connectionListAction),connectionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30e))[a2_0x4ac895(0x217)](a2_0x4ac895(0x195))['action'](async(_0x16f170,_0x5b296e)=>{const _0x26f860=a2_0x4ac895,_0x2104be=new ConnectionShowCommand(),_0xcea66f=program[_0x26f860(0x1c3)](),_0x511caf=await createTDXInstance(_0xcea66f),_0x17b50b=await _0x2104be['run']({'options':{..._0xcea66f,..._0x5b296e},'args':[_0x16f170],'tdx':_0x511caf});process['exit'](_0x17b50b);}),connectionCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x32a))['description'](a2_0x4ac895(0x1be))[a2_0x4ac895(0x245)](async(_0x2e48f3,_0x905dce)=>{const _0x5e9517=a2_0x4ac895,_0x11e321=new ConnectionSchemaCommand(),_0x245733=program[_0x5e9517(0x1c3)](),_0x2a9c03=await createTDXInstance(_0x245733),_0x272b5a=await _0x11e321[_0x5e9517(0x339)]({'options':{..._0x245733,..._0x905dce},'args':[_0x2e48f3],'tdx':_0x2a9c03});process[_0x5e9517(0x2d1)](_0x272b5a);}),connectionCmd[a2_0x4ac895(0x1c4)]('types')[a2_0x4ac895(0x217)](a2_0x4ac895(0x296))[a2_0x4ac895(0x245)](async _0x4ed02e=>{const _0x197cc9=a2_0x4ac895,_0x3d61bf=new ConnectionTypesCommand(),_0x17e100=program[_0x197cc9(0x1c3)](),_0x2335ca=await createTDXInstance(_0x17e100),_0x49764a=await _0x3d61bf[_0x197cc9(0x339)]({'options':{..._0x17e100,..._0x4ed02e},'args':[],'tdx':_0x2335ca});process['exit'](_0x49764a);}),connectionCmd['command']('settings\x20<type>')[a2_0x4ac895(0x217)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')['action'](async(_0x572e57,_0x1a6138)=>{const _0x4d9bbe=a2_0x4ac895,_0x405cf8=new ConnectionSettingsCommand(),_0x2c912b=program[_0x4d9bbe(0x1c3)](),_0x1d12f7=await createTDXInstance(_0x2c912b),_0xdba48e=await _0x405cf8[_0x4d9bbe(0x339)]({'options':{..._0x2c912b,..._0x1a6138},'args':[_0x572e57],'tdx':_0x1d12f7});process[_0x4d9bbe(0x2d1)](_0xdba48e);});const journeyCmd=program['command'](a2_0x4ac895(0x13a))[a2_0x4ac895(0x217)](a2_0x4ac895(0x275)),journeyListAction=async(_0x671c51,_0x2633e9)=>{const _0x3a8e29=a2_0x4ac895,_0x2e2d96=new JourneyListCommand(),_0x139081=program[_0x3a8e29(0x1c3)](),_0x16c0a0=await createTDXInstance(_0x139081),_0x22be17=await _0x2e2d96[_0x3a8e29(0x339)]({'options':{..._0x139081,..._0x2633e9},'args':_0x671c51?[_0x671c51]:[],'tdx':_0x16c0a0});process[_0x3a8e29(0x2d1)](_0x22be17);};journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)](a2_0x4ac895(0x12d))[a2_0x4ac895(0x245)](journeyListAction),journeyCmd['command'](a2_0x4ac895(0x222))[a2_0x4ac895(0x217)](a2_0x4ac895(0x2d5))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2a1),a2_0x4ac895(0x164))[a2_0x4ac895(0x343)](a2_0x4ac895(0x279),a2_0x4ac895(0x214))[a2_0x4ac895(0x245)](async(_0x37b050,_0x13b51a)=>{const _0x17178e=a2_0x4ac895,_0x15c2dc=new JourneyViewCommand(),_0x5f3df2=program[_0x17178e(0x1c3)](),_0x37d553=await createTDXInstance(_0x5f3df2),_0x4472af=await _0x15c2dc['run']({'options':{..._0x5f3df2,..._0x13b51a},'args':[_0x37b050],'tdx':_0x37d553});process['exit'](_0x4472af);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x262))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ee))[a2_0x4ac895(0x343)]('--stage\x20<name>',a2_0x4ac895(0x21e))['action'](async(_0x330151,_0x4ed092)=>{const _0x59fe3d=a2_0x4ac895,_0x29e945=new JourneyStatsCommand(),_0x56d365=program[_0x59fe3d(0x1c3)](),_0x2e25be=await createTDXInstance(_0x56d365),_0x59f78a=await _0x29e945[_0x59fe3d(0x339)]({'options':{..._0x56d365,..._0x4ed092},'args':[_0x330151],'tdx':_0x2e25be});process['exit'](_0x59f78a);}),journeyCmd['command']('pause\x20<name-or-path>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x2bd))[a2_0x4ac895(0x245)](async(_0x2d366b,_0x370ce4)=>{const _0x12c26d=a2_0x4ac895,_0x3b0fa1=new JourneyPauseCommand(),_0x4a194a=program[_0x12c26d(0x1c3)](),_0x373100=await createTDXInstance(_0x4a194a),_0x2906d3=await _0x3b0fa1[_0x12c26d(0x339)]({'options':{..._0x4a194a,..._0x370ce4},'args':[_0x2d366b],'tdx':_0x373100});process[_0x12c26d(0x2d1)](_0x2906d3);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1eb))[a2_0x4ac895(0x217)](a2_0x4ac895(0x124))[a2_0x4ac895(0x245)](async(_0x296fac,_0x461c77)=>{const _0x3fe667=a2_0x4ac895,_0x52ba9d=new JourneyResumeCommand(),_0x5e151b=program[_0x3fe667(0x1c3)](),_0x437ed6=await createTDXInstance(_0x5e151b),_0x59e16f=await _0x52ba9d[_0x3fe667(0x339)]({'options':{..._0x5e151b,..._0x461c77},'args':[_0x296fac],'tdx':_0x437ed6});process['exit'](_0x59e16f);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1df))[a2_0x4ac895(0x217)](a2_0x4ac895(0x126))[a2_0x4ac895(0x343)](a2_0x4ac895(0x229),a2_0x4ac895(0x2ea))[a2_0x4ac895(0x343)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x4ac895(0x245)](async(_0x29b9ef,_0x28c486)=>{const _0xc587bc=a2_0x4ac895,_0x2d9561=new JourneyPullCommand(),_0x4bf010=program['opts'](),_0x393525=await createTDXInstance(_0x4bf010),_0x840e01=await _0x2d9561[_0xc587bc(0x339)]({'options':{..._0x4bf010,..._0x28c486},'args':_0x29b9ef?[_0x29b9ef]:[],'tdx':_0x393525});process[_0xc587bc(0x2d1)](_0x840e01);}),journeyCmd['command'](a2_0x4ac895(0x274))['description'](a2_0x4ac895(0x141))[a2_0x4ac895(0x245)](async(_0x309243,_0x1de98e)=>{const _0x56284d=new JourneyPushCommand(),_0x44029d=program['opts'](),_0x5f0952=await createTDXInstance(_0x44029d),_0x2c65f5=await _0x56284d['run']({'options':{..._0x44029d,..._0x1de98e},'args':_0x309243?[_0x309243]:[],'tdx':_0x5f0952});process['exit'](_0x2c65f5);}),journeyCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x1a5))[a2_0x4ac895(0x217)](a2_0x4ac895(0x127))[a2_0x4ac895(0x245)](async(_0x5bd487,_0x25f34a)=>{const _0x3f31c4=a2_0x4ac895,_0x1cbae9=new JourneyValidateCommand(),_0x75efd4=program[_0x3f31c4(0x1c3)](),_0x3754e4=await createTDXInstance(_0x75efd4),_0x155b00=await _0x1cbae9[_0x3f31c4(0x339)]({'options':{..._0x75efd4,..._0x25f34a},'args':_0x5bd487?[_0x5bd487]:[],'tdx':_0x3754e4});process[_0x3f31c4(0x2d1)](_0x155b00);}),program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x11f))[a2_0x4ac895(0x217)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x4ac895(0x245)](journeyListAction);const agentSyncCmd=program[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x30c))[a2_0x4ac895(0x217)]('LLM\x20agent\x20management');agentSyncCmd['command'](a2_0x4ac895(0x350))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1cc))[a2_0x4ac895(0x343)]('-o,\x20--output\x20<dir>','Output\x20directory')[a2_0x4ac895(0x343)](a2_0x4ac895(0x34e),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x4ac895(0x245)](async(_0x277258,_0xfd9d56,_0x4b3ecd)=>{const _0x49d101=a2_0x4ac895,_0x40b00a=new AgentPullCommand(),_0x14f230=program[_0x49d101(0x1c3)](),_0x40031a=await createTDXInstance(_0x14f230),_0x2c8770=[];if(_0x277258)_0x2c8770[_0x49d101(0x19e)](_0x277258);if(_0xfd9d56)_0x2c8770[_0x49d101(0x19e)](_0xfd9d56);const _0x275301=await _0x40b00a[_0x49d101(0x339)]({'options':{..._0x14f230,..._0x4b3ecd},'args':_0x2c8770,'tdx':_0x40031a});process[_0x49d101(0x2d1)](_0x275301);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x13f))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1f3))[a2_0x4ac895(0x343)]('-f,\x20--force',a2_0x4ac895(0x17c))[a2_0x4ac895(0x245)](async(_0x42eab5,_0x33ead5)=>{const _0xbdb285=a2_0x4ac895,_0x3534db=new AgentPushCommand(),_0x2be51c=program['opts'](),_0x3c12c8=await createTDXInstance(_0x2be51c),_0xcd20b1=await _0x3534db['run']({'options':{..._0x2be51c,..._0x33ead5},'args':_0x42eab5?[_0x42eab5]:[],'tdx':_0x3c12c8});process[_0xbdb285(0x2d1)](_0xcd20b1);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x2f3))[a2_0x4ac895(0x217)](a2_0x4ac895(0x1ea))['option']('-n,\x20--name\x20<name>',a2_0x4ac895(0x24a))['action'](async(_0x394623,_0x16569f)=>{const _0x52d702=a2_0x4ac895,_0x326c90=new AgentCloneCommand(),_0xbe776d=program['opts'](),_0x2a749d=await createTDXInstance(_0xbe776d),_0x29e448=await _0x326c90[_0x52d702(0x339)]({'options':{..._0xbe776d,..._0x16569f},'args':_0x394623?[_0x394623]:[],'tdx':_0x2a749d});process[_0x52d702(0x2d1)](_0x29e448);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x211))[a2_0x4ac895(0x217)]('List\x20agents\x20in\x20current\x20project')[a2_0x4ac895(0x245)](llmAgentListAction),agentSyncCmd[a2_0x4ac895(0x1c4)]('show\x20<agent-name>')[a2_0x4ac895(0x217)](a2_0x4ac895(0x182))[a2_0x4ac895(0x245)](async(_0x170d6b,_0x47da08)=>{const _0x23e795=a2_0x4ac895,_0x38bfbd=new LLMAgentShowCommand(),_0x1a06f3=program['opts'](),_0x57275c=await createTDXInstance(_0x1a06f3),_0x2e53d5=await _0x38bfbd['run']({'options':{..._0x1a06f3,..._0x47da08},'args':[_0x170d6b],'tdx':_0x57275c});process[_0x23e795(0x2d1)](_0x2e53d5);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31d))[a2_0x4ac895(0x217)](a2_0x4ac895(0x289))[a2_0x4ac895(0x343)](a2_0x4ac895(0x2b3),'System\x20prompt/instructions\x20(default:\x20empty)')['option'](a2_0x4ac895(0x129),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x4ac895(0x249))[a2_0x4ac895(0x343)](a2_0x4ac895(0x237),a2_0x4ac895(0x2d7))[a2_0x4ac895(0x343)]('--max-tool-iterations\x20<n>',a2_0x4ac895(0x22d),'4')[a2_0x4ac895(0x343)](a2_0x4ac895(0x2fa),'Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x4ac895(0x251))[a2_0x4ac895(0x245)](async(_0x54261,_0x3b495f)=>{const _0x575be6=a2_0x4ac895,_0x407112=new LLMAgentCreateCommand(),_0x12522b=program[_0x575be6(0x1c3)](),_0x1862c2=await createTDXInstance(_0x12522b),_0x5cd5bd=await _0x407112[_0x575be6(0x339)]({'options':{..._0x12522b,..._0x3b495f},'args':[_0x54261],'tdx':_0x1862c2});process[_0x575be6(0x2d1)](_0x5cd5bd);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x31e))[a2_0x4ac895(0x217)]('Update\x20an\x20existing\x20agent')[a2_0x4ac895(0x343)](a2_0x4ac895(0x128),a2_0x4ac895(0x104))[a2_0x4ac895(0x343)](a2_0x4ac895(0x28e),a2_0x4ac895(0x121))[a2_0x4ac895(0x343)](a2_0x4ac895(0x1b9),a2_0x4ac895(0x172))[a2_0x4ac895(0x343)](a2_0x4ac895(0x237),a2_0x4ac895(0x2d7))[a2_0x4ac895(0x245)](async(_0x5c02e6,_0x116965)=>{const _0x2b9fca=a2_0x4ac895,_0x11bf80=new LLMAgentUpdateCommand(),_0x58c92b=program['opts'](),_0x504073=await createTDXInstance(_0x58c92b),_0x4279c9=await _0x11bf80[_0x2b9fca(0x339)]({'options':{..._0x58c92b,..._0x116965},'args':[_0x5c02e6],'tdx':_0x504073});process[_0x2b9fca(0x2d1)](_0x4279c9);}),agentSyncCmd[a2_0x4ac895(0x1c4)](a2_0x4ac895(0x181))[a2_0x4ac895(0x217)]('Delete\x20an\x20agent')['action'](async(_0x4c615c,_0x3e8c4e)=>{const _0xdbde25=a2_0x4ac895,_0x105150=new LLMAgentDeleteCommand(),_0x169230=program['opts'](),_0x32c3c9=await createTDXInstance(_0x169230),_0x473523=await _0x105150[_0xdbde25(0x339)]({'options':{..._0x169230,..._0x3e8c4e},'args':[_0x4c615c],'tdx':_0x32c3c9});process[_0xdbde25(0x2d1)](_0x473523);});export{program};export function runCLI(){const _0x3f461e=a2_0x4ac895,_0x27beea=!process['argv'][_0x3f461e(0x2bb)](0x2)['length'];showBriefHelp=_0x27beea,program[_0x3f461e(0x171)](process[_0x3f461e(0x257)]),_0x27beea&&program[_0x3f461e(0x24e)](),process[_0x3f461e(0x14a)][_0x3f461e(0x260)]&&process[_0x3f461e(0x257)]['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x3f461e(0x2d4)](_0xeddc1e=>{_0xeddc1e&&displayUpdateNotification(_0xeddc1e);})['catch'](()=>{});}
1
+ const a2_0x59c4ce=a2_0xcfc9;(function(_0x31ba62,_0x2508f0){const _0x1ded95=a2_0xcfc9,_0x386240=_0x31ba62();while(!![]){try{const _0xf0251a=-parseInt(_0x1ded95(0x234))/0x1+-parseInt(_0x1ded95(0x320))/0x2*(parseInt(_0x1ded95(0x1c2))/0x3)+-parseInt(_0x1ded95(0x312))/0x4*(-parseInt(_0x1ded95(0x270))/0x5)+-parseInt(_0x1ded95(0x11f))/0x6+parseInt(_0x1ded95(0x2b8))/0x7*(-parseInt(_0x1ded95(0x1b3))/0x8)+parseInt(_0x1ded95(0x244))/0x9*(parseInt(_0x1ded95(0x191))/0xa)+-parseInt(_0x1ded95(0x2a6))/0xb*(-parseInt(_0x1ded95(0x220))/0xc);if(_0xf0251a===_0x2508f0)break;else _0x386240['push'](_0x386240['shift']());}catch(_0x25d336){_0x386240['push'](_0x386240['shift']());}}}(a2_0x5641,0x73b5c));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x59c4ce(0x2a7)][a2_0x59c4ce(0x2bc)]('--version')){let versionOutput='tdx\x20'+currentVersion;buildInfo[a2_0x59c4ce(0x261)]&&!currentVersion[a2_0x59c4ce(0x2bc)](buildInfo[a2_0x59c4ce(0x261)])&&(versionOutput+='\x20('+buildInfo[a2_0x59c4ce(0x261)]+')'),buildInfo[a2_0x59c4ce(0x11a)]&&(versionOutput+=a2_0x59c4ce(0x355)+buildInfo[a2_0x59c4ce(0x11a)]),console[a2_0x59c4ce(0x2e0)](versionOutput),process[a2_0x59c4ce(0x1bc)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x59c4ce(0x18a);buildInfo[a2_0x59c4ce(0x261)]&&!currentVersion[a2_0x59c4ce(0x2bc)](buildInfo[a2_0x59c4ce(0x261)])?description+=a2_0x59c4ce(0x339)+currentVersion+'\x20('+buildInfo[a2_0x59c4ce(0x261)]+')':description+=',\x20version\x20'+currentVersion;program[a2_0x59c4ce(0x12f)](a2_0x59c4ce(0x20a))[a2_0x59c4ce(0x1ff)](description),program[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2a0),a2_0x59c4ce(0x2f6))[a2_0x59c4ce(0x1a7)]('-p,\x20--profile\x20<name>',a2_0x59c4ce(0x1b6))[a2_0x59c4ce(0x1a7)]('--site\x20<site>',a2_0x59c4ce(0x23c),a2_0x59c4ce(0x27e))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2aa),a2_0x59c4ce(0x2d9))['option'](a2_0x59c4ce(0x2b0),a2_0x59c4ce(0x236))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2a5),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x269),'Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)')['option'](a2_0x59c4ce(0x1c1),a2_0x59c4ce(0x2f9))['option'](a2_0x59c4ce(0x264),a2_0x59c4ce(0x1ac))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x330),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x59c4ce(0x1a7)]('--color',a2_0x59c4ce(0x1a1),![])[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ea),a2_0x59c4ce(0x14f),![])['option'](a2_0x59c4ce(0x26c),a2_0x59c4ce(0x197),![])[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x323),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')[a2_0x59c4ce(0x1a7)]('--trace',a2_0x59c4ce(0x10a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x241),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x59c4ce(0x10f),a2_0x59c4ce(0x140),![])[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x134),'Skip\x20confirmation\x20prompts',![])['option'](a2_0x59c4ce(0x2f7),a2_0x59c4ce(0x13a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x210),'Database\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x59c4ce(0x103),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1e9),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')['option'](a2_0x59c4ce(0x1dc),a2_0x59c4ce(0x219)),program['configureHelp']({'formatHelp':(_0x4d14f4,_0x489f9f)=>{const _0x3bad38=a2_0x59c4ce,_0x31769e=_0x489f9f[_0x3bad38(0x32a)](_0x4d14f4,_0x489f9f),_0x5afc4d=0x2,_0x26fb46=0x2;function _0x373e35(_0x15b79f){const _0x3a3e5f=_0x15b79f;return!!(_0x3a3e5f['_hidden']||_0x3a3e5f['hidden']);}function _0x5dbd22(_0x4e0937,_0x383a59){if(_0x383a59){const _0x535160=''+_0x4e0937['padEnd'](_0x31769e+_0x26fb46)+_0x383a59;return _0x535160;}return _0x4e0937;}function _0x41ee83(_0x3eb88e){const _0x218865=_0x3bad38;return _0x3eb88e[_0x218865(0x27c)]('\x0a')[_0x218865(0x2b9)](/^/gm,'\x20'['repeat'](_0x5afc4d));}const _0x3aa943=[];_0x3aa943[_0x3bad38(0x127)](_0x3bad38(0x33f)+_0x489f9f[_0x3bad38(0x281)](_0x4d14f4));const _0x522afc=_0x489f9f[_0x3bad38(0x350)](_0x4d14f4);_0x522afc&&(_0x3aa943[_0x3bad38(0x127)](''),_0x3aa943[_0x3bad38(0x127)](_0x522afc));const _0x28ea26=_0x4d14f4[_0x3bad38(0x274)][_0x3bad38(0x1d4)](_0x2ba503=>!_0x373e35(_0x2ba503));if(_0x28ea26[_0x3bad38(0x31f)]>0x0){if(_0x4d14f4['name']()===_0x3bad38(0x20a)){const _0x4afa04=_0x4d14f4[_0x3bad38(0x1c8)](),_0x37e248=!_0x4afa04[_0x3bad38(0x32b)]&&process[_0x3bad38(0x2ed)]['isTTY'],_0x1f446f=COMMAND_CATEGORIES,_0x158aee=(_0x36e836,_0x122ad4)=>_0x37e248?_0x122ad4(_0x36e836):_0x36e836,_0x3b5d7e=new Map();_0x28ea26[_0x3bad38(0x2d2)](_0x51a24d=>{const _0x19acc1=_0x3bad38;_0x3b5d7e[_0x19acc1(0x1de)](_0x51a24d[_0x19acc1(0x12f)](),_0x51a24d);}),_0x1f446f[_0x3bad38(0x2d2)](_0x275cc5=>{const _0x180015=_0x3bad38,_0x554d05=_0x275cc5[_0x180015(0x274)][_0x180015(0x203)](_0xe10287=>_0x3b5d7e[_0x180015(0x2e1)](_0xe10287)??[]);if(_0x554d05[_0x180015(0x31f)]>0x0){_0x3aa943['push'](''),_0x3aa943[_0x180015(0x127)](_0x158aee(_0x275cc5[_0x180015(0x12f)]+':',_0x275cc5[_0x180015(0x19b)]));const _0x1ca4f1=_0x554d05[_0x180015(0x122)](_0x317cb0=>{const _0x40455b=_0x180015,_0x6bceee=_0x489f9f[_0x40455b(0x260)](_0x317cb0),_0x4e3e25=_0x489f9f[_0x40455b(0x1e8)](_0x317cb0);return _0x5dbd22(_0x6bceee,_0x4e3e25);});_0x3aa943[_0x180015(0x127)](_0x41ee83(_0x1ca4f1));}}),_0x3aa943[_0x3bad38(0x127)](''),_0x3aa943[_0x3bad38(0x127)](_0x3bad38(0x192));}else{const _0x1883f2=_0x28ea26[_0x3bad38(0x122)](_0x58bde6=>{const _0x50d06a=_0x3bad38,_0x13421d=_0x489f9f[_0x50d06a(0x260)](_0x58bde6),_0x5cb61e=_0x489f9f[_0x50d06a(0x1e8)](_0x58bde6);return _0x5dbd22(_0x13421d,_0x5cb61e);});_0x3aa943['push'](''),_0x3aa943['push']('Commands:'),_0x3aa943[_0x3bad38(0x127)](_0x41ee83(_0x1883f2));}}if(showBriefHelp&&_0x4d14f4[_0x3bad38(0x12f)]()===_0x3bad38(0x20a))_0x3aa943[_0x3bad38(0x127)](''),_0x3aa943['push'](_0x3bad38(0x22f));else{const _0x4cf160=_0x4d14f4[_0x3bad38(0x1e4)][_0x3bad38(0x1d4)](_0x1880c2=>!_0x373e35(_0x1880c2));if(_0x4cf160[_0x3bad38(0x31f)]>0x0){const _0x621489=_0x4cf160[_0x3bad38(0x122)](_0x50ec6f=>{const _0x428388=_0x3bad38,_0x1837ee=_0x489f9f['optionTerm'](_0x50ec6f),_0x345460=_0x489f9f[_0x428388(0x12d)](_0x50ec6f);return _0x5dbd22(_0x1837ee,_0x345460);});_0x3aa943[_0x3bad38(0x127)](''),_0x3aa943['push'](_0x3bad38(0x1c9)),_0x3aa943[_0x3bad38(0x127)](_0x41ee83(_0x621489));}}const _0xe4c962=(_0x4d14f4[_0x3bad38(0x2e4)]||[])[_0x3bad38(0x1d4)](_0x1747d9=>!_0x373e35(_0x1747d9));if(_0xe4c962[_0x3bad38(0x31f)]>0x0){const _0x18c866=_0xe4c962[_0x3bad38(0x122)](_0x519ea7=>{const _0xfe77b0=_0x3bad38,_0x231114=_0x489f9f[_0xfe77b0(0x186)](_0x519ea7),_0x50fdf5=_0x489f9f[_0xfe77b0(0x1d6)](_0x519ea7);return _0x5dbd22(_0x231114,_0x50fdf5);});_0x3aa943[_0x3bad38(0x127)](''),_0x3aa943[_0x3bad38(0x127)](_0x3bad38(0x2cb)),_0x3aa943[_0x3bad38(0x127)](_0x41ee83(_0x18c866));}return _0x3aa943[_0x3bad38(0x27c)]('\x0a')+'\x0a';},'subcommandTerm':_0x437958=>{const _0x1e47dc=a2_0x59c4ce,_0x4e0616=(_0x437958['registeredArguments']||[])['map'](_0x2ab9dd=>_0x2ab9dd[_0x1e47dc(0x21a)]?'<'+_0x2ab9dd['name']()+'>':'['+_0x2ab9dd[_0x1e47dc(0x12f)]()+']')[_0x1e47dc(0x27c)]('\x20'),_0x5ecefa=_0x437958[_0x1e47dc(0x34d)](),_0x58fbe4=_0x5ecefa[_0x1e47dc(0x31f)]>0x0?_0x437958[_0x1e47dc(0x12f)]()+',\x20'+_0x5ecefa[_0x1e47dc(0x27c)](',\x20'):_0x437958[_0x1e47dc(0x12f)]();return _0x4e0616?_0x58fbe4+'\x20'+_0x4e0616:_0x58fbe4;}}),program[a2_0x59c4ce(0x334)]('preAction',_0x248cf9=>{const _0x198480=a2_0x59c4ce,_0x3367d8=_0x248cf9[_0x198480(0x1c8)]();if(_0x3367d8[_0x198480(0x302)]){const _0x4878b7=resolve(_0x3367d8[_0x198480(0x302)]),_0xd08830=_0x4878b7!==_0x3367d8['directory']?'\x20(resolved\x20to\x20'+_0x4878b7+')':'';if(!existsSync(_0x4878b7))throw new SDKError(ErrorCode[_0x198480(0x2e6)],_0x198480(0x24b)+_0x3367d8[_0x198480(0x302)]+_0xd08830,undefined,{'helpText':_0x198480(0x17e)});const _0x93bc8c=statSync(_0x4878b7);if(!_0x93bc8c[_0x198480(0x189)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x3367d8[_0x198480(0x302)]+_0xd08830,undefined,{'helpText':_0x198480(0x29d)});process[_0x198480(0x21c)](_0x4878b7);}if(!_0x3367d8[_0x198480(0x23f)]){if(_0x3367d8[_0x198480(0x349)])_0x3367d8[_0x198480(0x23f)]='table';else{if(_0x3367d8[_0x198480(0x215)])_0x3367d8['format']=_0x198480(0x215);else{if(_0x3367d8[_0x198480(0x2de)])_0x3367d8[_0x198480(0x23f)]='jsonl';else _0x3367d8['tsv']&&(_0x3367d8[_0x198480(0x23f)]=_0x198480(0x1dd));}}}_0x3367d8['in']&&!_0x3367d8['database']&&(_0x3367d8[_0x198480(0x1f6)]=_0x3367d8['in']);if(_0x3367d8[_0x198480(0x185)])_0x3367d8[_0x198480(0x345)]=LogLevel[_0x198480(0x2f0)];else{if(_0x3367d8[_0x198480(0x2f3)])_0x3367d8[_0x198480(0x345)]=LogLevel[_0x198480(0x2c2)];else _0x3367d8['logLevel']===undefined&&(_0x3367d8[_0x198480(0x345)]=LogLevel[_0x198480(0x181)]);}});async function createTDXInstance(_0xc2e219){const _0xbea369=a2_0x59c4ce,_0x3c2197=await GlobalContext[_0xbea369(0x2d0)](_0xc2e219);return _0x3c2197['injectIntoOptions'](_0xc2e219),TDX['create']({'site':_0x3c2197[_0xbea369(0x16d)],'apiKey':_0x3c2197[_0xbea369(0x286)],'logLevel':_0x3c2197[_0xbea369(0x345)],'profile':_0x3c2197[_0xbea369(0x2c1)]});}const databaseCmd=program['command'](a2_0x59c4ce(0x1f6))[a2_0x59c4ce(0x224)]('db')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x257)),databaseListAction=async(_0x2463aa,_0x106b1a)=>{const _0x43621a=a2_0x59c4ce,_0x3a4de9=new DatabasesCommand(),_0x4ba2d4=program[_0x43621a(0x1c8)](),_0x479934=await createTDXInstance(_0x4ba2d4),_0x3bbf12=await _0x3a4de9[_0x43621a(0x10b)]({'options':{..._0x4ba2d4,..._0x106b1a},'args':_0x2463aa?[_0x2463aa]:[],'tdx':_0x479934});process[_0x43621a(0x1bc)](_0x3bbf12);};databaseCmd['command']('list\x20[pattern]')['description']('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x59c4ce(0x1e5)](databaseListAction),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x233),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x319))[a2_0x59c4ce(0x1e5)](databaseListAction),program[a2_0x59c4ce(0x1fc)]('chat\x20[message...]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x15a))['option'](a2_0x59c4ce(0x13f),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x146),a2_0x59c4ce(0x142))[a2_0x59c4ce(0x1e5)](async(_0x444585,_0x21638c)=>{const _0x5be6b6=a2_0x59c4ce,_0x226226=new ChatCommand(),_0x426dea=program['opts'](),_0x141cb3=await createTDXInstance(_0x426dea),_0x258d72=await _0x226226[_0x5be6b6(0x10b)]({'options':{..._0x426dea,..._0x21638c},'args':_0x444585,'tdx':_0x141cb3});process[_0x5be6b6(0x1bc)](_0x258d72);});function a2_0xcfc9(_0x29f45d,_0x3eb47b){_0x29f45d=_0x29f45d-0x103;const _0x56413f=a2_0x5641();let _0xcfc9d7=_0x56413f[_0x29f45d];return _0xcfc9d7;}const apiCmd=program['command'](a2_0x59c4ce(0x337))['summary'](a2_0x59c4ce(0x17b))[a2_0x59c4ce(0x12a)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/list\x0a\x20\x20$\x20tdx\x20api\x20/v3/database/show/mydb\x0a\x20\x20$\x20tdx\x20api\x20-X\x20POST\x20--data\x20\x27{\x22query\x22:\x22SELECT\x201\x22}\x27\x20/v3/job/issue/hive/mydb\x0a\x20\x20$\x20tdx\x20api\x20/entities/parent_segments\x20--type\x20cdp\x0a\x20\x20$\x20tdx\x20api\x20/api/workflows\x20--type\x20workflow\x0a')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2d8),a2_0x59c4ce(0x1b4),a2_0x59c4ce(0x1c6))['option'](a2_0x59c4ce(0x179),a2_0x59c4ce(0x188))['option'](a2_0x59c4ce(0x288),a2_0x59c4ce(0x14c))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x16c),'Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x5ec9e8,_0x4b5c62)=>{return _0x4b5c62?[..._0x4b5c62,_0x5ec9e8]:[_0x5ec9e8];})[a2_0x59c4ce(0x1a7)]('--type\x20<api_type>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x508801,_0xbdd30f)=>{const _0x2c8da4=a2_0x59c4ce;if(!_0x508801){apiCmd[_0x2c8da4(0x266)]();return;}const _0x11f80d=new ApiCommand(),_0x4615ee=program[_0x2c8da4(0x1c8)](),_0x190f84=await createTDXInstance(_0x4615ee),_0xb4bc4e=await _0x11f80d['run']({'options':{..._0x4615ee,..._0xbdd30f},'args':[_0x508801],'tdx':_0x190f84});process['exit'](_0xb4bc4e);}),tableCmd=program[a2_0x59c4ce(0x1fc)]('table')[a2_0x59c4ce(0x1ff)]('Table\x20management\x20commands'),tableListAction=async(_0x209b8f,_0x25bcb4)=>{const _0x54c6e8=a2_0x59c4ce,_0x516228=new TablesCommand(),_0x5e5a8d=program[_0x54c6e8(0x1c8)](),_0xdbe2c2=await createTDXInstance(_0x5e5a8d);_0x25bcb4['in']&&(_0x25bcb4['database']=_0x25bcb4['in']);const _0x239e6d=await _0x516228[_0x54c6e8(0x10b)]({'options':{..._0x5e5a8d,..._0x25bcb4},'args':_0x209b8f?[_0x209b8f]:[],'tdx':_0xdbe2c2});process['exit'](_0x239e6d);};tableCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x326))['option'](a2_0x59c4ce(0x128),a2_0x59c4ce(0x18f))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x217),a2_0x59c4ce(0x1f0))['action'](tableListAction),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x147),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x227))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x128),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x59c4ce(0x217),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x59c4ce(0x1e5)](tableListAction),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x342))['description'](a2_0x59c4ce(0x33c))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x128),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x217),a2_0x59c4ce(0x1f0))[a2_0x59c4ce(0x1e5)](async(_0x5f8af0,_0x234ae2)=>{const _0x28519c=a2_0x59c4ce,_0x1e39e1=new ShowCommand(),_0x4538da=program[_0x28519c(0x1c8)](),_0xc9b60=await createTDXInstance(_0x4538da);_0x234ae2['in']&&(_0x234ae2[_0x28519c(0x1f6)]=_0x234ae2['in']);const _0x54d081=await _0x1e39e1['run']({'options':{..._0x4538da,..._0x234ae2},'args':_0x5f8af0?[_0x5f8af0]:[],'tdx':_0xc9b60});process[_0x28519c(0x1bc)](_0x54d081);}),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x156))[a2_0x59c4ce(0x224)](a2_0x59c4ce(0x118))['description'](a2_0x59c4ce(0x2c4))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x217),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x3c9a9e,_0x8b92d5)=>{const _0x241361=a2_0x59c4ce,_0x1e910a=new DescribeCommand(),_0x25f939=program[_0x241361(0x1c8)](),_0x5acef3=await createTDXInstance(_0x25f939);_0x8b92d5['in']&&(_0x8b92d5[_0x241361(0x1f6)]=_0x8b92d5['in']);const _0x29ed55=await _0x1e910a['run']({'options':{..._0x25f939,..._0x8b92d5},'args':_0x3c9a9e?[_0x3c9a9e]:[],'tdx':_0x5acef3});process[_0x241361(0x1bc)](_0x29ed55);}),program['command'](a2_0x59c4ce(0x162))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1bf))['option'](a2_0x59c4ce(0x128),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x217),a2_0x59c4ce(0x1f0))['option']('--catalog\x20<catalog>',a2_0x59c4ce(0x1b0))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x288),a2_0x59c4ce(0x2d1))['option']('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x59c4ce(0x1e5)](async(_0x49d176,_0x348cda)=>{const _0x1a6508=a2_0x59c4ce,_0x5501ed=new QueryCommand(),_0x561dc3=program[_0x1a6508(0x1c8)](),_0x2193bc=await createTDXInstance(_0x561dc3);_0x348cda['in']&&(_0x348cda[_0x1a6508(0x1f6)]=_0x348cda['in']);const _0x32f640=await _0x5501ed['run']({'options':{..._0x561dc3,..._0x348cda},'args':_0x49d176?[_0x49d176]:[],'tdx':_0x2193bc});process[_0x1a6508(0x1bc)](_0x32f640);});function a2_0x5641(){const _0xc7cc84=['--jsonl','activations\x20<segment_name>','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','-v,\x20--verbose','Delete\x20an\x20LLM\x20project','--schedule-option\x20<value>','--attribute\x20[name]','139915TcoDfU','Skip\x20validation\x20of\x20.dig\x20files','Show\x20only\x20master\x20table\x20validation','--session-id\x20<id>','commands','Get\x20job\x20results','workspace','Workflow\x20parameter\x20(repeatable)','port','use\x20[resource]\x20[value]','Show\x20master\x20table\x20sample\x20data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','join','Update\x20an\x20email\x20template','us01','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Add\x20attributes\x20from\x20JSON\x20file','commandUsage','Output\x20as\x20JSON','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','-o,\x20--output\x20<file>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','apiKey','Create\x20segment\x20folder','-f,\x20--file\x20<path>','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Show\x20segment\x20details\x20(alias\x20for\x20view)','Setup\x20API\x20key\x20authentication\x20interactively','List\x20all\x20data\x20connections','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','parents\x20[pattern]','Validate\x20journey\x20YAML\x20files\x20locally','update\x20<segment_name>','show\x20[segment_name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--llm-proxy\x20[url]','Segment\x20description','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','-u,\x20--use','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','--add-attributes-file\x20<file>','[options]\x20--\x20[claude-code-args...]','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Export\x20journey(s)\x20as\x20YAML\x20files','pull\x20[parent_or_file]','-C,\x20--directory\x20<path>','List\x20all\x20users\x20in\x20the\x20account','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--json','451idugzL','argv','slice','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','--format\x20<format>','Filtering\x20rule\x20from\x20JSON\x20file','Resume\x20a\x20paused\x20journey','--temperature\x20<n>','--html\x20<html>','workspaces\x20[pattern]','--table','show\x20[name]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','Behaviors\x20from\x20JSON\x20file','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Workflow\x20project\x20management','logs','--clear','7sfjlYV','replace','fields\x20[parent_name]','allowExcessArguments','includes','--full','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','allowUnknownOption','Show\x20the\x20most\x20recent\x20chat','profile','DEBUG','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Describe\x20table\x20schema','New\x20workspace\x20name','list\x20[project]','create\x20<segment_name>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Open\x20parent\x20segment\x20in\x20web\x20browser','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Arguments:','Manage\x20workflow\x20project\x20secrets','Behaviors\x20as\x20JSON\x20string','Remove\x20a\x20profile','Model\x20type\x20(default:\x20claude-4.5-sonnet)','createAsync','Read\x20SQL\x20query\x20from\x20file','forEach','pull\x20[name]','users','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','agents\x20[pattern]','outputHelp','-X,\x20--method\x20<method>','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','requiredOption','[attempt-id]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','jsonl','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','log','get','[task-name]','Skip\x20confirmation\x20prompt','registeredArguments','use\x20<name>','INVALID_ARGUMENT','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','folders\x20<parent_name>','error','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','validate\x20[target]','stdout','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--plaintext\x20<text>','TRACE','--customer-group-file\x20<file>','Resume\x20from\x20specific\x20task\x20(retry)','debug','Plaintext\x20template\x20content','Update\x20an\x20existing\x20agent','Change\x20to\x20directory\x20before\x20executing\x20command','--session\x20<id>','List\x20available\x20connector\x20types','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','resume\x20<name-or-id>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','launch\x20<name-or-id>','List\x20agents\x20in\x20current\x20project','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--max-depth\x20<depth>','Folder\x20name\x20for\x20organization','directory','-r,\x20--resume','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--params\x20<json>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--limit\x20<n>','folder','Read\x20query\x20from\x20file','--behavior\x20[name]','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Temperature\x20(0.0-2.0,\x20default:\x200.7)','-f,\x20--force','Email\x20sender\x20ID\x20for\x20delivery','pull\x20[project]\x20[agent-name]','Reason\x20for\x20killing\x20the\x20attempt','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','104WVFYxL','set\x20<args...>','Start\x20time\x20filter\x20(ISO\x208601\x20format)','create','Updated\x20schedule\x20option','fields\x20[name]','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Create\x20an\x20email\x20template','journeys\x20[pattern]','Set\x20or\x20show\x20parent\x20segment\x20context','result\x20<job-id>','show\x20<folder_ref>','length','2IPIrAz','push\x20[file]','status','--debug','list\x20[pattern]','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Workspace\x20management','Show\x20stats\x20for\x20specific\x20stage','Create\x20a\x20new\x20campaign','padWidth','noColor','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Make\x20segment\x20invisible\x20(default:\x20visible)','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','--description\x20<desc>','--limit\x20<number>','agent','--model\x20<name>','session','hook','Campaign\x20type\x20(email\x20or\x20push)','sonnet','api\x20[endpoint]','Overwrite\x20local\x20changes\x20without\x20confirmation',',\x20version\x20','--timezone\x20<tz>','run\x20[name]','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','view\x20[name]','Usage:\x20','LLM\x20agent\x20management','Override\x20project\x20name','show\x20[table]','list','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','logLevel','Kill\x20a\x20job','Folder\x20description','--add-behaviors-file\x20<file>','table','--schedule-type\x20<type>','kill\x20<job-id>','Custom\x20revision\x20name\x20(default:\x20timestamp)','aliases','Starter\x20message','Editor\x20type','commandDescription','models','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','List\x20all\x20available\x20profiles','\x20-\x20built\x20','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\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#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','Move\x20to\x20folder','Workspace\x20name\x20(required)','--name\x20<text>','--in\x20<name>','--parent-folder\x20<name>','user','Pause\x20a\x20campaign','-o,\x20--output\x20<folder>','pause\x20<name-or-id>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','run','use\x20<project-name>','--rule-file\x20<file>','update\x20<agent-name>','--dry-run','secrets','duplicate\x20<name-or-id>','Launch\x20a\x20campaign','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Workflow\x20(Digdag)\x20management\x20commands','download\x20<project-name>\x20[output-dir]','Show\x20timeline\x20for\x20specific\x20attempt','clone\x20[source]','desc','Delete\x20a\x20campaign','buildTime','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','List\x20journeys\x20in\x20current\x20context','Workspace\x20description','Interactive\x20chat\x20selector','5577696ebRVIh','Parent\x20folder\x20name\x20for\x20nested\x20folders','delete\x20<name>','map','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','delete\x20<project-name-or-id>','resume\x20<name-or-path>','-r,\x20--recursive','push','-d,\x20--database\x20<database>','template','addHelpText','LLM\x20project\x20management','Agent\x20description','optionDescription','Clear\x20workflow\x20project\x20context','name','--kind\x20<type>','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Delete\x20an\x20email\x20template','-y,\x20--yes','-1d','--interval\x20<range>','\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','Include\x20retried\x20attempts\x20(for\x20list)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','--add-behaviors\x20<json>','--type\x20<type>','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--include-subtasks','--agent\x20<ref>','Preview\x20operation\x20without\x20executing','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Start\x20a\x20new\x20chat\x20session','history\x20[chat-id]','Name\x20for\x20the\x20new\x20project\x20(required)','Unknown\x20action:\x20','--new','tables\x20[pattern]','push\x20[target]','Campaign\x20description','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','show\x20<job-id>','Read\x20request\x20body\x20from\x20file','--reason\x20<text>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','retry\x20<session-id>','--param\x20<key=value>','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Include\x20execution\x20statistics','use\x20[project]','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','describe\x20[table]','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','usage','--json-columns\x20<cols>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','--behaviors-file\x20<file>','--prompt\x20<text>','Attributes\x20as\x20JSON\x20string','Submit\x20a\x20job','tasks','--name\x20<name>','parent','query\x20[sql]','validate\x20[name]','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','run\x20[workflow]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','--system-prompt\x20<text>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','upload\x20[project-name-or-dir]','stats\x20<name-or-path>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','-H,\x20--header\x20<header>','site','segments\x20[path]','--session-time\x20<time>','--job-type\x20<type>','timeline\x20[project.workflow]','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','isTTY','-w,\x20--web','use\x20[name]','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','backup\x20<name>','parent-segment','--data\x20<data>','Pause\x20a\x20running\x20journey','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','attempt','pause\x20<name-or-path>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','--no-count-population','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','INFO','--segment\x20<path>','statusline','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','trace','argumentTerm','Filtering\x20rule\x20as\x20JSON\x20string','Request\x20body\x20as\x20JSON\x20string','isDirectory','AI-native\x20CLI\x20for\x20Treasure\x20Data','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','parent_segment','update\x20<name-or-id>','Set\x20a\x20profile\x20configuration\x20value','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','create\x20<name>','229250NQpxzn','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--stage\x20<name>','restore\x20<folder>','attempts\x20[project]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Enable\x20verbose\x20logging','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Timezone\x20(e.g.,\x20America/Los_Angeles)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','colorFn','claude-4.5-sonnet','Workflow\x20attempt\x20management','proxy','--delete','Push\x20without\x20confirmation','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','--enriched','sql\x20[segment_name]','Template\x20name','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','option','catch','Show\x20email\x20template\x20details','chats','--resume-from\x20<task>','Save\x20output\x20to\x20file','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','--revision\x20<revision>','connection','Trino\x20catalog\x20(default:\x20td)','--attributes-file\x20<file>','--no-proxy','3232160eOZvDu','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Open\x20segment\x20in\x20web\x20browser','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Output\x20as\x20JSON\x20Lines','Force\x20retry\x20even\x20if\x20not\x20failed','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','exit','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Add\x20behaviors\x20as\x20JSON\x20string','Run\x20Trino\x20query\x20with\x20streaming\x20results','Skip\x20confirmation\x20prompts','--tsv','2683221FgBqZF','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','project','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','GET','Create\x20a\x20workspace','opts','Options:','--rule\x20<json>','Continue\x20most\x20recent\x20conversation','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','--force','--subject\x20<subject>','sessions\x20[project]','Output\x20file\x20path\x20(default:\x20<name>.yml)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Authentication\x20management','journey','filter','show\x20<name>','argumentDescription','view\x20[segment_name]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','New\x20segment\x20name','Show\x20segment\x20schema\x20(column\x20types)','schema\x20<type>','--llm-project\x20<name>','tsv','set','--editor-type\x20<type>','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Maximum\x20tool\x20iterations\x20(default:\x204)','parse','Maximum\x20recursion\x20depth\x20(default:\x2010)','options','action','User\x20management\x20commands','Agent\x20prompt/instructions','subcommandDescription','--parent-segment\x20<name>','--no-color','Open\x20journey\x20in\x20web\x20browser','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Revision\x20name\x20(default:\x20timestamp)','push\x20[parent_or_file]','Workspace\x20name','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','workflow','Database\x20name\x20(default:\x20information_schema)','projects\x20[pattern]','describe','database','--skip-validation','--master','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','Add\x20behaviors\x20from\x20JSON\x20file','command','Email\x20subject\x20template','Workflow\x20session\x20management','description','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','push\x20[path]','attempt:','flatMap','Master\x20table\x20name','--status\x20<status>','Show\x20workspace\x20details','claude\x20[args...]','--folder\x20<name>','--start-at\x20<datetime>','tdx','--from-task\x20<task>','--include-retried','trino','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','Create\x20a\x20new\x20LLM\x20project','-d,\x20--database\x20<name>','setup','--last','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','json','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--in\x20<database>','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','LLM\x20project\x20to\x20use\x20(overrides\x20context)','required','desc\x20[segment_name]','chdir','sql\x20[name]','Include\x20subtasks\x20in\x20tasks\x20output','-n,\x20--name\x20<name>','585564oUpYCI','CDP\x20segment\x20management\x20commands','--database\x20<name>','retry','alias','--from\x20<timestamp>','--description\x20<text>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Output\x20file\x20path','Show\x20campaign\x20details','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','preview\x20[name]','End\x20time\x20filter\x20(ISO\x208601\x20format)','Updated\x20timezone','--to\x20<timestamp>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','segment','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','show\x20<agent-name>','databases\x20[pattern]','347194MDYBft','clear','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','HTML\x20template\x20content','4000','Show\x20agent\x20details','--include-stats','delete\x20<name-or-id>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','llm','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','format','argument','--timeout\x20<seconds>','Job\x20management\x20commands','System\x20prompt/instructions\x20(default:\x20empty)','126nQhVOT','New\x20template\x20name','job','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Delete\x20an\x20agent','Customer\x20group\x20from\x20JSON\x20file','Resume\x20from\x20specific\x20task','Directory\x20does\x20not\x20exist:\x20','Data\x20connection\x20management\x20(for\x20activations/exports)','--email-sender-id\x20<id>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--agent\x20<name>','engage','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Attempt\x20ID','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','show\x20<name-or-id>','--name\x20<new-name>','workflows\x20[project]','Database\x20management\x20commands','kill','--workspace\x20<name>','--starter-message\x20<text>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','jobs','Agent\x20name','--database\x20<db>','Set\x20session\x20profile','subcommandTerm','gitRevision','Customer\x20group\x20as\x20JSON\x20string','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--output\x20<file>','Email\x20template\x20management','help','after','submit\x20[query]'];a2_0x5641=function(){return _0xc7cc84;};return a2_0x5641();}const segmentCmd=program['command'](a2_0x59c4ce(0x230))[a2_0x59c4ce(0x224)]('sg')['description'](a2_0x59c4ce(0x221)),segmentListAction=async(_0x5c75f2,_0x390c0a)=>{const _0x29426f=a2_0x59c4ce,_0x56587b=new SegmentsCommand(),_0x560c6f=program[_0x29426f(0x1c8)](),_0x554207=await createTDXInstance(_0x560c6f),_0xa8f45b=await _0x56587b[_0x29426f(0x10b)]({'options':{..._0x560c6f,..._0x390c0a},'args':_0x5c75f2?[_0x5c75f2]:[],'tdx':_0x554207});process[_0x29426f(0x1bc)](_0xa8f45b);};segmentCmd[a2_0x59c4ce(0x1fc)]('list\x20[path]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x18b))[a2_0x59c4ce(0x1a7)]('-r,\x20--recursive',a2_0x59c4ce(0x304))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x300),a2_0x59c4ce(0x1e3),'10')['action'](segmentListAction),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x16e),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2d5))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x126),a2_0x59c4ce(0x304))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x300),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x59c4ce(0x1e5)](segmentListAction),segmentCmd['command']('use\x20<path>',{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x11b))[a2_0x59c4ce(0x1e5)](async(_0x4cd3c4,_0x1581bb)=>{const _0xda6a05=a2_0x59c4ce,_0x3add02=new SegmentUseCommand(),_0x5da73b=program[_0xda6a05(0x1c8)](),_0x4390eb=await createTDXInstance(_0x5da73b),_0x418630=await _0x3add02['run']({'options':{..._0x5da73b,..._0x1581bb},'args':[_0x4cd3c4],'tdx':_0x4390eb});process['exit'](_0x418630);});const segmentViewAction=async(_0x1b20a3,_0x470bd0)=>{const _0xed7bac=a2_0x59c4ce,_0x33deab=new SegmentViewCommand(),_0x84e5a1=program[_0xed7bac(0x1c8)](),_0x31a755=await createTDXInstance(_0x84e5a1),_0x3cf207=await _0x33deab[_0xed7bac(0x10b)]({'options':{..._0x84e5a1,..._0x470bd0},'args':_0x1b20a3?[_0x1b20a3]:[],'tdx':_0x31a755});process[_0xed7bac(0x1bc)](_0x3cf207);};segmentCmd['command'](a2_0x59c4ce(0x1d7))['description']('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x174),a2_0x59c4ce(0x1b7))[a2_0x59c4ce(0x1e5)](segmentViewAction),segmentCmd[a2_0x59c4ce(0x1fc)]('info\x20[segment_name]',{'hidden':!![]})[a2_0x59c4ce(0x224)](a2_0x59c4ce(0x1f5))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x174),'Open\x20segment\x20in\x20web\x20browser')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x28a))[a2_0x59c4ce(0x1e5)](segmentViewAction),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x21b))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1da))[a2_0x59c4ce(0x1e5)](async(_0x31aac9,_0x4fd95a)=>{const _0x4dcbad=a2_0x59c4ce,_0x5c3ec0=new SegmentDescCommand(),_0x3963d7=program[_0x4dcbad(0x1c8)](),_0x549dfc=await createTDXInstance(_0x3963d7),_0x2c34b0=await _0x5c3ec0[_0x4dcbad(0x10b)]({'options':{..._0x3963d7,..._0x4fd95a},'args':_0x31aac9?[_0x31aac9]:[],'tdx':_0x549dfc});process[_0x4dcbad(0x1bc)](_0x2c34b0);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x293))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x20e))[a2_0x59c4ce(0x1e5)](async(_0x535477,_0x5d5b75)=>{const _0x239c7c=a2_0x59c4ce,_0x25b8ba=new SegmentShowCommand(),_0x311a51=program[_0x239c7c(0x1c8)](),_0x457c47=await createTDXInstance(_0x311a51),_0x3c068d=await _0x25b8ba[_0x239c7c(0x10b)]({'options':{..._0x311a51,..._0x5d5b75},'args':_0x535477?[_0x535477]:[],'tdx':_0x457c47});process[_0x239c7c(0x1bc)](_0x3c068d);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2e8),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1d8))[a2_0x59c4ce(0x1e5)](async(_0x4cbc94,_0x3a0a29)=>{const _0x1f1419=a2_0x59c4ce,_0x29c9f1=new SegmentFolderListCommand(),_0x1a088a=program[_0x1f1419(0x1c8)](),_0x305cdd=await createTDXInstance(_0x1a088a),_0xfaee61=await _0x29c9f1[_0x1f1419(0x10b)]({'options':{..._0x1a088a,..._0x3a0a29},'args':[_0x4cbc94],'tdx':_0x305cdd});process['exit'](_0xfaee61);});const folderCmd=segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x308),{'hidden':!![]})[a2_0x59c4ce(0x1ff)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x31e))['description'](a2_0x59c4ce(0x19a))[a2_0x59c4ce(0x1e5)](async(_0x5a6fe0,_0x3e15b7)=>{const _0x4eb4ea=a2_0x59c4ce,_0x45d6b2=new SegmentFolderShowCommand(),_0x196802=program['opts'](),_0x3d0e77=await createTDXInstance(_0x196802),_0x57b675=await _0x45d6b2[_0x4eb4ea(0x10b)]({'options':{..._0x196802,..._0x3e15b7},'args':[_0x5a6fe0],'tdx':_0x3d0e77});process['exit'](_0x57b675);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1a3))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x213))['action'](async(_0x54a773,_0x548b5f)=>{const _0x31e72d=a2_0x59c4ce,_0x530165=new SegmentSQLCommand(),_0x3267a0=program[_0x31e72d(0x1c8)](),_0x4f6ae7=await createTDXInstance(_0x3267a0),_0x210a91=await _0x530165[_0x31e72d(0x10b)]({'options':{..._0x3267a0,..._0x548b5f},'args':_0x54a773?[_0x54a773]:[],'tdx':_0x4f6ae7});process['exit'](_0x210a91);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2ba))[a2_0x59c4ce(0x1ff)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x532d84,_0x4ad2d5)=>{const _0x4010db=a2_0x59c4ce,_0x402c2c=new SegmentFieldsCommand(),_0x3d8aee=program['opts'](),_0x57b568=await createTDXInstance(_0x3d8aee),_0x165962=await _0x402c2c[_0x4010db(0x10b)]({'options':{..._0x3d8aee,..._0x4ad2d5},'args':_0x532d84?[_0x532d84]:[],'tdx':_0x57b568});process['exit'](_0x165962);}),segmentCmd['command'](a2_0x59c4ce(0x29f))[a2_0x59c4ce(0x1ff)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x10f),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x59c4ce(0x1e5)](async(_0x33a893,_0xe9fa67)=>{const _0x2d7dd7=a2_0x59c4ce,_0x17009a=new SegmentPullCommand(),_0x1ed319=program[_0x2d7dd7(0x1c8)](),_0x134c2e=await createTDXInstance(_0x1ed319),_0x1e752b=await _0x17009a[_0x2d7dd7(0x10b)]({'options':{..._0x1ed319,..._0xe9fa67},'args':_0x33a893?[_0x33a893]:[],'tdx':_0x134c2e});process[_0x2d7dd7(0x1bc)](_0x1e752b);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1ee))[a2_0x59c4ce(0x1ff)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x134),a2_0x59c4ce(0x1c0))[a2_0x59c4ce(0x1a7)]('--dry-run',a2_0x59c4ce(0x168))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x19f),a2_0x59c4ce(0x2e7))[a2_0x59c4ce(0x1e5)](async(_0x1a9da8,_0xf34659)=>{const _0x26b42d=a2_0x59c4ce,_0x57b024=new SegmentPushCommand(),_0x1a8f87=program[_0x26b42d(0x1c8)](),_0x4cbca0=await createTDXInstance(_0x1a8f87),_0x4c7130=await _0x57b024['run']({'options':{..._0x1a8f87,..._0xf34659},'args':_0x1a9da8?[_0x1a9da8]:[],'tdx':_0x4cbca0});process[_0x26b42d(0x1bc)](_0x4c7130);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2ec))[a2_0x59c4ce(0x1ff)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x445bb3,_0x42e45a)=>{const _0x30923d=a2_0x59c4ce,_0x4123e5=new SegmentValidateCommand(),_0x10a0c7=program[_0x30923d(0x1c8)](),_0x2f07ad=await createTDXInstance(_0x10a0c7),_0x20fdc1=await _0x4123e5['run']({'options':{..._0x10a0c7,..._0x42e45a},'args':_0x445bb3?[_0x445bb3]:[],'tdx':_0x2f07ad});process[_0x30923d(0x1bc)](_0x20fdc1);}),segmentCmd['command'](a2_0x59c4ce(0x2c7),{'hidden':!![]})['description']('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x226),a2_0x59c4ce(0x296))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ca),a2_0x59c4ce(0x187))['option'](a2_0x59c4ce(0x10d),a2_0x59c4ce(0x2ab))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x208),a2_0x59c4ce(0x301))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x130),a2_0x59c4ce(0x297))['option']('--invisible',a2_0x59c4ce(0x32d))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x17f),'Skip\x20population\x20counting')[a2_0x59c4ce(0x1e5)](async(_0x307b15,_0x21f09c)=>{const _0x136bc2=a2_0x59c4ce,_0x289027=new SegmentCreateCommand(),_0x55bdb7=program[_0x136bc2(0x1c8)](),_0x1cdefc=await createTDXInstance(_0x55bdb7),_0x48967e=await _0x289027[_0x136bc2(0x10b)]({'options':{..._0x55bdb7,..._0x21f09c},'args':[_0x307b15],'tdx':_0x1cdefc});process['exit'](_0x48967e);}),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x292),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x198))['option']('--name\x20<new_name>',a2_0x59c4ce(0x1d9))['option'](a2_0x59c4ce(0x226),'Updated\x20description')['option'](a2_0x59c4ce(0x1ca),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x59c4ce(0x10d),a2_0x59c4ce(0x132))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x208),a2_0x59c4ce(0x357))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x130),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x59c4ce(0x1e5)](async(_0x4986f4,_0x3fb497)=>{const _0x43d53e=a2_0x59c4ce,_0x4de4fd=new SegmentUpdateCommand(),_0x468de6=program[_0x43d53e(0x1c8)](),_0x1f07f0=await createTDXInstance(_0x468de6),_0x5366ef=await _0x4de4fd['run']({'options':{..._0x468de6,..._0x3fb497},'args':[_0x4986f4],'tdx':_0x1f07f0});process[_0x43d53e(0x1bc)](_0x5366ef);});const parentCmd=segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x161),{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1f9)),parentListAction=async(_0x1eb16b,_0x4001f1)=>{const _0x49c8b7=a2_0x59c4ce,_0x7762ae=new ParentSegmentListCommand(),_0x3bc157=program[_0x49c8b7(0x1c8)](),_0x5090b6=await createTDXInstance(_0x3bc157),_0x5df841=await _0x7762ae[_0x49c8b7(0x10b)]({'options':{..._0x3bc157,..._0x4001f1},'args':_0x1eb16b?[_0x1eb16b]:[],'tdx':_0x5090b6});process[_0x49c8b7(0x1bc)](_0x5df841);};parentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x141))[a2_0x59c4ce(0x1e5)](parentListAction),segmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x290),{'hidden':!![]})[a2_0x59c4ce(0x1ff)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x59c4ce(0x1e5)](parentListAction),parentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2d3))['description'](a2_0x59c4ce(0x306))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x284),a2_0x59c4ce(0x1d0))['option'](a2_0x59c4ce(0x134),a2_0x59c4ce(0x2e3))['action'](async(_0x48b341,_0x4985bc)=>{const _0x2a3b5c=a2_0x59c4ce,_0x437d6d=new ParentSegmentPullCommand(),_0x53f278=program[_0x2a3b5c(0x1c8)](),_0x246e98=await createTDXInstance(_0x53f278),_0x12572=await _0x437d6d[_0x2a3b5c(0x10b)]({'options':{..._0x53f278,..._0x4985bc},'args':_0x48b341?[_0x48b341]:[],'tdx':_0x246e98});process[_0x2a3b5c(0x1bc)](_0x12572);}),parentCmd['command'](a2_0x59c4ce(0x321))[a2_0x59c4ce(0x1ff)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x59c4ce(0x1a7)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x59c4ce(0x1e5)](async(_0x5cc0bd,_0x5ee6b2)=>{const _0x53b8e8=a2_0x59c4ce,_0x4e8c88=new ParentSegmentPushCommand(),_0x96ae86=program[_0x53b8e8(0x1c8)](),_0xf5f690=await createTDXInstance(_0x96ae86),_0x3a7a87=await _0x4e8c88[_0x53b8e8(0x10b)]({'options':{..._0x96ae86,..._0x5ee6b2},'args':_0x5cc0bd?[_0x5cc0bd]:[],'tdx':_0xf5f690});process[_0x53b8e8(0x1bc)](_0x3a7a87);}),parentCmd[a2_0x59c4ce(0x1fc)]('validate\x20[file]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x289))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1f8),a2_0x59c4ce(0x272))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x26f),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x59c4ce(0x30a),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1a2),a2_0x59c4ce(0x2df))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x136),a2_0x59c4ce(0x251),'-1d')[a2_0x59c4ce(0x1e5)](async(_0x546689,_0x11a1de)=>{const _0x2662dd=a2_0x59c4ce,_0x466cfb=new ParentSegmentValidateCommand(),_0x3d7f22=program['opts'](),_0x2f91b4=await createTDXInstance(_0x3d7f22),_0x2c1cac=await _0x466cfb[_0x2662dd(0x10b)]({'options':{..._0x3d7f22,..._0x11a1de},'args':_0x546689?[_0x546689]:[],'tdx':_0x2f91b4});process[_0x2662dd(0x1bc)](_0x2c1cac);}),parentCmd['command']('preview\x20[file]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x32e))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1f8),a2_0x59c4ce(0x27a))['option'](a2_0x59c4ce(0x26f),a2_0x59c4ce(0x157))['option'](a2_0x59c4ce(0x30a),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x59c4ce(0x1a7)]('--enriched',a2_0x59c4ce(0x24e))['option']('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x59c4ce(0x1e5)](async(_0x3df62e,_0x5d3316)=>{const _0x18b541=a2_0x59c4ce,_0x1f4287=new ParentSegmentPreviewCommand(),_0x4459ab=program[_0x18b541(0x1c8)](),_0x11121c=await createTDXInstance(_0x4459ab),_0x27959e=await _0x1f4287[_0x18b541(0x10b)]({'options':{..._0x4459ab,..._0x5d3316},'args':_0x3df62e?[_0x3df62e]:[],'tdx':_0x11121c});process[_0x18b541(0x1bc)](_0x27959e);}),parentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x33b))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x353))[a2_0x59c4ce(0x1a7)]('-y,\x20--yes',a2_0x59c4ce(0x2e3))['action'](async(_0x21c385,_0x13672a)=>{const _0x561a70=a2_0x59c4ce,_0x16bb4c=new ParentSegmentRunCommand(),_0x4a5be3=program['opts'](),_0x43ecc4=await createTDXInstance(_0x4a5be3),_0x3615e6=await _0x16bb4c[_0x561a70(0x10b)]({'options':{..._0x4a5be3,..._0x13672a},'args':_0x21c385?[_0x21c385]:[],'tdx':_0x43ecc4});process[_0x561a70(0x1bc)](_0x3615e6);});const parentSegmentCmd=program['command'](a2_0x59c4ce(0x178))['alias']('ps')[a2_0x59c4ce(0x1ff)]('Parent\x20segment\x20management');parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x141))['action'](parentListAction),parentSegmentCmd['command'](a2_0x59c4ce(0x2d3))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2da))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x284),a2_0x59c4ce(0x228))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x134),a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x298),a2_0x59c4ce(0x139))['action'](async(_0x5677cc,_0x766305)=>{const _0x541d3d=a2_0x59c4ce,_0x4c3c8d=new ParentSegmentPullCommand(),_0x95232d=program[_0x541d3d(0x1c8)](),_0xacb56f=await createTDXInstance(_0x95232d),_0x401c41=await _0x4c3c8d[_0x541d3d(0x10b)]({'options':{..._0x95232d,..._0x766305},'args':_0x5677cc?[_0x5677cc]:[],'tdx':_0xacb56f});process['exit'](_0x401c41);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)]('push\x20[name]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x164))['option'](a2_0x59c4ce(0x134),a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1e5)](async(_0x38882a,_0x5eb4b0)=>{const _0x165e0a=a2_0x59c4ce,_0x34dc59=new ParentSegmentPushCommand(),_0x222878=program[_0x165e0a(0x1c8)](),_0x1d05fd=await createTDXInstance(_0x222878),_0xa41bd9=await _0x34dc59[_0x165e0a(0x10b)]({'options':{..._0x222878,..._0x5eb4b0},'args':_0x38882a?[_0x38882a]:[],'tdx':_0x1d05fd});process[_0x165e0a(0x1bc)](_0xa41bd9);}),parentSegmentCmd['command'](a2_0x59c4ce(0x163))['description'](a2_0x59c4ce(0x289))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1f8),a2_0x59c4ce(0x272))[a2_0x59c4ce(0x1a7)]('--attribute\x20[name]',a2_0x59c4ce(0x14e))[a2_0x59c4ce(0x1a7)]('--behavior\x20[name]',a2_0x59c4ce(0x28e))[a2_0x59c4ce(0x1a7)]('--enriched','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x59c4ce(0x1a7)]('--interval\x20<range>',a2_0x59c4ce(0x251),a2_0x59c4ce(0x135))[a2_0x59c4ce(0x1e5)](async(_0x4c3a15,_0x275955)=>{const _0x421f52=a2_0x59c4ce,_0x2339d4=new ParentSegmentValidateCommand(),_0x18dcd3=program[_0x421f52(0x1c8)](),_0xbb2c21=await createTDXInstance(_0x18dcd3),_0x3de2f1=await _0x2339d4[_0x421f52(0x10b)]({'options':{..._0x18dcd3,..._0x275955},'args':_0x4c3a15?[_0x4c3a15]:[],'tdx':_0xbb2c21});process['exit'](_0x3de2f1);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x22b))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x32e))[a2_0x59c4ce(0x1a7)]('--master',a2_0x59c4ce(0x27a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x26f),a2_0x59c4ce(0x157))['option'](a2_0x59c4ce(0x30a),a2_0x59c4ce(0x294))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1a2),a2_0x59c4ce(0x24e))[a2_0x59c4ce(0x1a7)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x59c4ce(0x135))[a2_0x59c4ce(0x1e5)](async(_0x2c8a75,_0x54d351)=>{const _0x48e45c=a2_0x59c4ce,_0x9981f2=new ParentSegmentPreviewCommand(),_0x46a856=program['opts'](),_0x5271e7=await createTDXInstance(_0x46a856),_0x1e5773=await _0x9981f2[_0x48e45c(0x10b)]({'options':{..._0x46a856,..._0x54d351},'args':_0x2c8a75?[_0x2c8a75]:[],'tdx':_0x5271e7});process['exit'](_0x1e5773);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x33b))[a2_0x59c4ce(0x1ff)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x59c4ce(0x1a7)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x59c4ce(0x1e5)](async(_0x323d81,_0x3da61d)=>{const _0x22e051=a2_0x59c4ce,_0x36a11b=new ParentSegmentRunCommand(),_0x2c3a2c=program[_0x22e051(0x1c8)](),_0x276a3f=await createTDXInstance(_0x2c3a2c),_0x274164=await _0x36a11b[_0x22e051(0x10b)]({'options':{..._0x2c3a2c,..._0x3da61d},'args':_0x323d81?[_0x323d81]:[],'tdx':_0x276a3f});process[_0x22e051(0x1bc)](_0x274164);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x317))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x231))['option'](a2_0x59c4ce(0x2a5),'Output\x20as\x20JSON')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x269),a2_0x59c4ce(0x1b9))[a2_0x59c4ce(0x1e5)](async(_0x4fc5c7,_0xd2990c)=>{const _0x196566=a2_0x59c4ce,_0xa6b640=new ParentSegmentFieldsCommand(),_0xc4b7e7=program['opts'](),_0x5ed7fa=await createTDXInstance(_0xc4b7e7),_0x36e382=await _0xa6b640[_0x196566(0x10b)]({'options':{..._0xc4b7e7,..._0xd2990c},'args':_0x4fc5c7?[_0x4fc5c7]:[],'tdx':_0x5ed7fa});process[_0x196566(0x1bc)](_0x36e382);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x33e))[a2_0x59c4ce(0x1ff)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x174),a2_0x59c4ce(0x2c9))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2a5),a2_0x59c4ce(0x282))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x269),a2_0x59c4ce(0x1b9))[a2_0x59c4ce(0x1e5)](async(_0x4ddd30,_0x21aafc)=>{const _0x3a5d4a=a2_0x59c4ce,_0x2eae46=new ParentSegmentViewCommand(),_0x17b9a1=program[_0x3a5d4a(0x1c8)](),_0x234455=await createTDXInstance(_0x17b9a1),_0x1c9eb3=await _0x2eae46[_0x3a5d4a(0x10b)]({'options':{..._0x17b9a1,..._0x21aafc},'args':_0x4ddd30?[_0x4ddd30]:[],'tdx':_0x234455});process[_0x3a5d4a(0x1bc)](_0x1c9eb3);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)]('desc\x20[name]')[a2_0x59c4ce(0x1ff)]('Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x59c4ce(0x1a7)]('--json',a2_0x59c4ce(0x282))['option'](a2_0x59c4ce(0x269),a2_0x59c4ce(0x1b9))[a2_0x59c4ce(0x1e5)](async(_0x231cfc,_0xee7f42)=>{const _0xd97e3b=a2_0x59c4ce,_0x272d2d=new ParentSegmentDescCommand(),_0x1fcf06=program['opts'](),_0x5c5bc2=await createTDXInstance(_0x1fcf06),_0x23da3e=await _0x272d2d[_0xd97e3b(0x10b)]({'options':{..._0x1fcf06,..._0xee7f42},'args':_0x231cfc?[_0x231cfc]:[],'tdx':_0x5c5bc2});process[_0xd97e3b(0x1bc)](_0x23da3e);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x21d))[a2_0x59c4ce(0x1ff)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2a5),'Output\x20as\x20JSON')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x269),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x3f1f94,_0x2d9376)=>{const _0x4f4a88=a2_0x59c4ce,_0x245a21=new ParentSegmentSQLCommand(),_0x57c481=program[_0x4f4a88(0x1c8)](),_0x1e7ce2=await createTDXInstance(_0x57c481),_0x3d28e3=await _0x245a21[_0x4f4a88(0x10b)]({'options':{..._0x57c481,..._0x2d9376},'args':_0x3f1f94?[_0x3f1f94]:[],'tdx':_0x1e7ce2});process[_0x4f4a88(0x1bc)](_0x3d28e3);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2b1))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x216))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x307),'Limit\x20number\x20of\x20rows')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2a5),'Output\x20as\x20JSON')['option'](a2_0x59c4ce(0x269),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x2f54af,_0x4822fc)=>{const _0x3ea38b=a2_0x59c4ce,_0x8897fc=new ParentSegmentShowCommand(),_0x343498=program[_0x3ea38b(0x1c8)](),_0x4e2620=await createTDXInstance(_0x343498),_0xa4ea48=await _0x8897fc[_0x3ea38b(0x10b)]({'options':{..._0x343498,..._0x4822fc},'args':_0x2f54af?[_0x2f54af]:[],'tdx':_0x4e2620});process['exit'](_0xa4ea48);}),parentSegmentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x175))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x31c))[a2_0x59c4ce(0x1e5)](async(_0x77376f,_0x3a4516)=>{const _0x10a610=a2_0x59c4ce,_0x1e9db6=new UseCommand(),_0x285166=program[_0x10a610(0x1c8)](),_0x32b351=_0x77376f?[_0x10a610(0x18c),_0x77376f]:[],_0x65d5df=await _0x1e9db6['run']({'options':{..._0x285166,..._0x3a4516},'args':_0x32b351,'tdx':null});process[_0x10a610(0x1bc)](_0x65d5df);}),parentCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x190))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x27f))[a2_0x59c4ce(0x2db)](a2_0x59c4ce(0x25e),'Master\x20database\x20name')[a2_0x59c4ce(0x2db)]('--table\x20<table>',a2_0x59c4ce(0x204))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x226),'Parent\x20segment\x20description')['option'](a2_0x59c4ce(0x34a),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x26e),a2_0x59c4ce(0x113))[a2_0x59c4ce(0x1a7)]('--timezone\x20<tz>',a2_0x59c4ce(0x199))[a2_0x59c4ce(0x1a7)]('--attributes\x20<json>',a2_0x59c4ce(0x15d))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1b1),'Attributes\x20from\x20JSON\x20file')['option']('--behaviors\x20<json>',a2_0x59c4ce(0x2cd))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x15b),a2_0x59c4ce(0x2b3))[a2_0x59c4ce(0x1a7)]('--customer-group\x20<json>',a2_0x59c4ce(0x262))['option'](a2_0x59c4ce(0x2f1),a2_0x59c4ce(0x249))[a2_0x59c4ce(0x1e5)](async(_0x3e2a3d,_0x3dfe69)=>{const _0x49f692=a2_0x59c4ce,_0x4d3fb2=new ParentSegmentCreateCommand(),_0x2868bf=program[_0x49f692(0x1c8)](),_0x221db6=await createTDXInstance(_0x2868bf),_0x4cd91f=await _0x4d3fb2[_0x49f692(0x10b)]({'options':{..._0x2868bf,..._0x3dfe69},'args':[_0x3e2a3d],'tdx':_0x221db6});process['exit'](_0x4cd91f);}),parentCmd['command']('update\x20<name>')[a2_0x59c4ce(0x1ff)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x226),'Updated\x20description')[a2_0x59c4ce(0x1a7)]('--schedule-type\x20<type>',a2_0x59c4ce(0x1bd))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x26e),a2_0x59c4ce(0x316))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x33a),a2_0x59c4ce(0x22d))['option']('--add-attributes\x20<json>','Add\x20attributes\x20as\x20JSON\x20string')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x29b),a2_0x59c4ce(0x280))['option'](a2_0x59c4ce(0x13b),a2_0x59c4ce(0x1be))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x348),a2_0x59c4ce(0x1fb))[a2_0x59c4ce(0x1e5)](async(_0x459e23,_0x18a877)=>{const _0x3915f9=a2_0x59c4ce,_0x31500a=new ParentSegmentUpdateCommand(),_0x3e4e20=program[_0x3915f9(0x1c8)](),_0x78c87a=await createTDXInstance(_0x3e4e20),_0x3bccd9=await _0x31500a[_0x3915f9(0x10b)]({'options':{..._0x3e4e20,..._0x18a877},'args':[_0x459e23],'tdx':_0x78c87a});process['exit'](_0x3bccd9);}),folderCmd[a2_0x59c4ce(0x1fc)]('create\x20<parent_name>\x20<folder_name>')['description'](a2_0x59c4ce(0x287))[a2_0x59c4ce(0x1a7)]('--description\x20<text>',a2_0x59c4ce(0x347))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x104),a2_0x59c4ce(0x120))[a2_0x59c4ce(0x1e5)](async(_0x2ecee8,_0x5bd4ae,_0x1226d7)=>{const _0x41d8a4=a2_0x59c4ce,_0x970d35=new SegmentFolderCreateCommand(),_0x256d53=program[_0x41d8a4(0x1c8)](),_0xeeaf3a=await createTDXInstance(_0x256d53),_0x13ce7a=await _0x970d35[_0x41d8a4(0x10b)]({'options':{..._0x256d53,..._0x1226d7},'args':[_0x2ecee8,_0x5bd4ae],'tdx':_0xeeaf3a});process[_0x41d8a4(0x1bc)](_0x13ce7a);}),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x26a))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x27b))[a2_0x59c4ce(0x1e5)](async(_0x28712e,_0x4f9bf2)=>{const _0x3636aa=a2_0x59c4ce,_0x5623a3=new ActivationsCommand(),_0x532338=program[_0x3636aa(0x1c8)](),_0x5a4ce5=await createTDXInstance(_0x532338),_0x538427=await _0x5623a3[_0x3636aa(0x10b)]({'options':{..._0x532338,..._0x4f9bf2},'args':[_0x28712e],'tdx':_0x5a4ce5});process[_0x3636aa(0x1bc)](_0x538427);});const workflowCmd=program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1f2))[a2_0x59c4ce(0x224)]('wf')['description'](a2_0x59c4ce(0x114)),wfProjectCmd=workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1c4))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2b5)),wfProjectListAction=async(_0x1e0699,_0x2dfaf1)=>{const _0x5f19ad=a2_0x59c4ce,_0xb3e5eb=new WorkflowProjectsCommand(),_0x2d0910=program[_0x5f19ad(0x1c8)](),_0x296d59=await createTDXInstance(_0x2d0910),_0x1972d3=await _0xb3e5eb[_0x5f19ad(0x10b)]({'options':{..._0x2d0910,..._0x2dfaf1},'args':_0x1e0699?[_0x1e0699]:[],'tdx':_0x296d59});process[_0x5f19ad(0x1bc)](_0x1972d3);};wfProjectCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2be))[a2_0x59c4ce(0x1e5)](wfProjectListAction),workflowCmd[a2_0x59c4ce(0x1fc)]('projects\x20[pattern]')[a2_0x59c4ce(0x1ff)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x3248e7,_0x44b0db)=>{const _0xc3d725=a2_0x59c4ce,_0x2e3654=new WorkflowWorkflowsCommand(),_0x1ea497=program[_0xc3d725(0x1c8)](),_0x1cb344=await createTDXInstance(_0x1ea497),_0x90860a=await _0x2e3654['run']({'options':{..._0x1ea497,..._0x44b0db},'args':_0x3248e7?[_0x3248e7]:[],'tdx':_0x1cb344});process[_0xc3d725(0x1bc)](_0x90860a);};workflowCmd['command'](a2_0x59c4ce(0x256))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x196))[a2_0x59c4ce(0x1e5)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x333))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1fe)),wfSessionListAction=async(_0xfb1d4,_0x1aa97e)=>{const _0x456deb=a2_0x59c4ce,_0x243f02=new WorkflowSessionsCommand(),_0x29cb13=program[_0x456deb(0x1c8)](),_0x18a9a1=await createTDXInstance(_0x29cb13),_0x40a629=await _0x243f02[_0x456deb(0x10b)]({'options':{..._0x29cb13,..._0x1aa97e},'args':_0xfb1d4?[_0xfb1d4]:[],'tdx':_0x18a9a1});process['exit'](_0x40a629);};wfSessionCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2c6))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x172))['option'](a2_0x59c4ce(0x205),a2_0x59c4ce(0x2ee))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x225),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')['option']('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1cf))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x22a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x205),a2_0x59c4ce(0x2ee))[a2_0x59c4ce(0x1a7)]('--from\x20<timestamp>',a2_0x59c4ce(0x314))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x22e),a2_0x59c4ce(0x22c))[a2_0x59c4ce(0x1e5)](wfSessionListAction);const wfAttemptListAction=async(_0x21bb61,_0x1f9f76)=>{const _0x2e02e4=a2_0x59c4ce,_0x2ec739=new WorkflowAttemptsCommand(),_0x5199ec=program[_0x2e02e4(0x1c8)](),_0x4d68bd=await createTDXInstance(_0x5199ec),_0x252eda=await _0x2ec739[_0x2e02e4(0x10b)]({'options':{..._0x5199ec,..._0x1f9f76},'args':_0x21bb61?[_0x21bb61]:[],'tdx':_0x4d68bd});process[_0x2e02e4(0x1bc)](_0x252eda);},attemptCmd=workflowCmd['command'](a2_0x59c4ce(0x17c))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x19d))[a2_0x59c4ce(0x240)](a2_0x59c4ce(0x2dc),a2_0x59c4ce(0x252))[a2_0x59c4ce(0x240)]('[action]',a2_0x59c4ce(0x2ea))[a2_0x59c4ce(0x240)](a2_0x59c4ce(0x2e2),'Task\x20name\x20for\x20logs\x20action')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x13e),a2_0x59c4ce(0x21e))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x14d),a2_0x59c4ce(0x310))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ab),a2_0x59c4ce(0x2f2))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x305),a2_0x59c4ce(0x2b4))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1cd),a2_0x59c4ce(0x1ba))[a2_0x59c4ce(0x1a7)]('--include-retried',a2_0x59c4ce(0x138))['action'](async(_0x3cffb6,_0x2886b2,_0x1fcc5d,_0x2b41da)=>{const _0x5282e7=a2_0x59c4ce;if(_0x3cffb6===_0x5282e7(0x343)){await wfAttemptListAction(_0x2886b2,_0x2b41da);return;}if(!_0x3cffb6){attemptCmd[_0x5282e7(0x266)]();return;}const _0x3e7126=program['opts'](),_0x17217a=await createTDXInstance(_0x3e7126);let _0x923541=0x0;if(!_0x2886b2){const _0x55ef9a=new WorkflowAttemptCommand();_0x923541=await _0x55ef9a['run']({'options':{..._0x3e7126,..._0x2b41da},'args':[_0x3cffb6],'tdx':_0x17217a});}else{if(_0x2886b2===_0x5282e7(0x2b6)){const _0x356bf1=new WorkflowLogsCommand();_0x923541=await _0x356bf1[_0x5282e7(0x10b)]({'options':{..._0x3e7126,..._0x2b41da},'args':_0x1fcc5d?[_0x3cffb6,_0x1fcc5d]:[_0x3cffb6],'tdx':_0x17217a});}else{if(_0x2886b2===_0x5282e7(0x15f)){const _0x59ee44=new WorkflowTasksCommand();_0x923541=await _0x59ee44[_0x5282e7(0x10b)]({'options':{..._0x3e7126,..._0x2b41da},'args':[_0x3cffb6],'tdx':_0x17217a});}else{if(_0x2886b2===_0x5282e7(0x258)){const _0x447e6a=new WorkflowKillCommand();_0x923541=await _0x447e6a[_0x5282e7(0x10b)]({'options':{..._0x3e7126,..._0x2b41da},'args':[_0x3cffb6],'tdx':_0x17217a});}else{if(_0x2886b2===_0x5282e7(0x223)){const _0x4daed3=new WorkflowRetryCommand();_0x923541=await _0x4daed3[_0x5282e7(0x10b)]({'options':{..._0x3e7126,..._0x2b41da},'args':[_0x5282e7(0x202)+_0x3cffb6],'tdx':_0x17217a});}else console['error'](_0x5282e7(0x145)+_0x2886b2),console[_0x5282e7(0x2e9)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x923541=0x1;}}}}process[_0x5282e7(0x1bc)](_0x923541);});attemptCmd['command']('list\x20[project]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x16b))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x20c),'Include\x20retried\x20attempts')[a2_0x59c4ce(0x1e5)](wfAttemptListAction),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x195))['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x20c),'Include\x20retried\x20attempts')[a2_0x59c4ce(0x1e5)](wfAttemptListAction),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x171))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x247))[a2_0x59c4ce(0x1a7)]('--follow','Follow/watch\x20timeline\x20for\x20running\x20attempts')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x273),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x59c4ce(0x1a7)]('--attempt-id\x20<id>',a2_0x59c4ce(0x116))[a2_0x59c4ce(0x1e5)](async(_0x23c3ea,_0x2929df)=>{const _0x5d8a6b=a2_0x59c4ce,_0x2ab67c=new WorkflowTimelineCommand(),_0x57f68c=program[_0x5d8a6b(0x1c8)](),_0x506dc7=await createTDXInstance(_0x57f68c),_0x2343e7=await _0x2ab67c['run']({'options':{..._0x57f68c,..._0x2929df},'args':_0x23c3ea?[_0x23c3ea]:[],'tdx':_0x506dc7});process[_0x5d8a6b(0x1bc)](_0x2343e7);}),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x150))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x180))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x20b),a2_0x59c4ce(0x24a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x305),a2_0x59c4ce(0x344))[a2_0x59c4ce(0x1e5)](async(_0x3bc37e,_0x1ae920)=>{const _0x373e14=a2_0x59c4ce,_0x14e91b=new WorkflowRetryCommand(),_0x2bd249=program[_0x373e14(0x1c8)](),_0x284a2e=await createTDXInstance(_0x2bd249),_0x3fda08=await _0x14e91b[_0x373e14(0x10b)]({'options':{..._0x2bd249,..._0x1ae920},'args':[_0x3bc37e],'tdx':_0x284a2e});process[_0x373e14(0x1bc)](_0x3fda08);}),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x165))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x325))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x151),a2_0x59c4ce(0x277),(_0x232f4a,_0x521a9c=[])=>[..._0x521a9c,_0x232f4a],[])[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x16f),a2_0x59c4ce(0x214))[a2_0x59c4ce(0x1e5)](async(_0x28be6e,_0x2d969f)=>{const _0x18569e=a2_0x59c4ce,_0x1957cf=new WorkflowRunCommand(),_0xca917e=program[_0x18569e(0x1c8)](),_0x45e0b4=await createTDXInstance(_0xca917e),_0x44cf5b=await _0x1957cf[_0x18569e(0x10b)]({'options':{..._0xca917e,..._0x2d969f},'args':_0x28be6e?[_0x28be6e]:[],'tdx':_0x45e0b4});process['exit'](_0x44cf5b);}),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x115))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1cc))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ae),a2_0x59c4ce(0x1f1))['action'](async(_0x3a04df,_0x5cf32b,_0x4b854b)=>{const _0x246585=a2_0x59c4ce,_0x2506a2=new WorkflowDownloadCommand(),_0xd579e9=program[_0x246585(0x1c8)](),_0x329c12=await createTDXInstance(_0xd579e9),_0x1dc021=await _0x2506a2[_0x246585(0x10b)]({'options':{..._0xd579e9,..._0x4b854b},'args':[_0x3a04df,_0x5cf32b||'.'],'tdx':_0x329c12});process['exit'](_0x1dc021);}),workflowCmd[a2_0x59c4ce(0x1fc)]('pull\x20<project>\x20[target-dir]')['description']('Pull\x20workflow\x20project\x20to\x20local\x20folder')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ae),'Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x59c4ce(0x1a7)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')['option'](a2_0x59c4ce(0x134),'Skip\x20confirmation\x20prompt')[a2_0x59c4ce(0x1e5)](async(_0x59f759,_0x12eb58,_0x2f6e81)=>{const _0x289eef=a2_0x59c4ce,_0x57a5e2=new WorkflowPullCommand(),_0x515757=program[_0x289eef(0x1c8)](),_0x9582c8=await createTDXInstance(_0x515757),_0x431a5e=await _0x57a5e2[_0x289eef(0x10b)]({'options':{..._0x515757,..._0x2f6e81},'args':_0x12eb58?[_0x59f759,_0x12eb58]:[_0x59f759],'tdx':_0x9582c8});process[_0x289eef(0x1bc)](_0x431a5e);}),workflowCmd[a2_0x59c4ce(0x1fc)]('push\x20[source-dir]')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2b2))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ae),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x10f),'Preview\x20changes\x20without\x20pushing')[a2_0x59c4ce(0x1a7)]('--skip-validation',a2_0x59c4ce(0x271))['option']('-y,\x20--yes',a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1e5)](async(_0x310892,_0x512b21)=>{const _0x364166=a2_0x59c4ce,_0x1dcd90=new WorkflowPushCommand(),_0x1f1c79=program['opts'](),_0x29a620=await createTDXInstance(_0x1f1c79),_0x5ba895=await _0x1dcd90['run']({'options':{..._0x1f1c79,..._0x512b21},'args':_0x310892?[_0x310892]:[],'tdx':_0x29a620});process[_0x364166(0x1bc)](_0x5ba895);}),workflowCmd['command'](a2_0x59c4ce(0x169))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1c3))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x160),a2_0x59c4ce(0x341))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ae),a2_0x59c4ce(0x1ed))['option']('--skip-validation',a2_0x59c4ce(0x271))[a2_0x59c4ce(0x1e5)](async(_0x521ff4,_0x2ad360)=>{const _0x343ede=a2_0x59c4ce,_0xd09113=new WorkflowUploadCommand(),_0x312f14=program['opts'](),_0x12e7a9=await createTDXInstance(_0x312f14),_0x566c8c=await _0xd09113[_0x343ede(0x10b)]({'options':{..._0x312f14,..._0x2ad360},'args':_0x521ff4?[_0x521ff4]:[],'tdx':_0x12e7a9});process[_0x343ede(0x1bc)](_0x566c8c);}),workflowCmd[a2_0x59c4ce(0x1fc)]('clone\x20[source-dir]')['description'](a2_0x59c4ce(0x352))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x160),'Name\x20for\x20the\x20new\x20project\x20(required)')['option'](a2_0x59c4ce(0x1ae),a2_0x59c4ce(0x34c))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x10f),'Preview\x20without\x20creating\x20the\x20project')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1f7),a2_0x59c4ce(0x271))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x134),'Skip\x20confirmation\x20prompt')[a2_0x59c4ce(0x1e5)](async(_0x1165a1,_0x390215)=>{const _0x5a2105=a2_0x59c4ce,_0x18dd86=new WorkflowCloneCommand(),_0x699dc8=program[_0x5a2105(0x1c8)](),_0x1f907e=await createTDXInstance(_0x699dc8),_0xe682d4=await _0x18dd86[_0x5a2105(0x10b)]({'options':{..._0x699dc8,..._0x390215},'args':_0x1165a1?[_0x1165a1]:[],'tdx':_0x1f907e});process[_0x5a2105(0x1bc)](_0xe682d4);}),workflowCmd['command'](a2_0x59c4ce(0x124))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2a2))[a2_0x59c4ce(0x1e5)](async(_0x68778a,_0x2eb620)=>{const _0x118fbd=a2_0x59c4ce,_0x4d0e0d=new WorkflowDeleteCommand(),_0x621973=program[_0x118fbd(0x1c8)](),_0x3300f2=await createTDXInstance(_0x621973),_0x477956=await _0x4d0e0d[_0x118fbd(0x10b)]({'options':{..._0x621973,..._0x2eb620},'args':[_0x68778a],'tdx':_0x3300f2});process[_0x118fbd(0x1bc)](_0x477956);}),workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x154))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x13d))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2b7),a2_0x59c4ce(0x12e))['action'](async(_0x29ee9d,_0x102694)=>{const _0x46d0df=a2_0x59c4ce,_0x506ce4=new WorkflowUseCommand(),_0x1e12bc=program[_0x46d0df(0x1c8)](),_0x36f15d=await createTDXInstance(_0x1e12bc),_0x19b051=await _0x506ce4[_0x46d0df(0x10b)]({'options':{..._0x1e12bc,..._0x102694},'args':_0x29ee9d?[_0x29ee9d]:[],'tdx':_0x36f15d});process[_0x46d0df(0x1bc)](_0x19b051);});const wfSecretsCmd=workflowCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x110))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2cc));wfSecretsCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2c6))['description']('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x59c4ce(0x1e5)](async(_0x4467ba,_0x2f904b)=>{const _0x469ce6=a2_0x59c4ce,_0x1dbc03=new WorkflowSecretsListCommand(),_0x2bf0a0=program[_0x469ce6(0x1c8)](),_0x2f542b=await createTDXInstance(_0x2bf0a0),_0x35c144=await _0x1dbc03[_0x469ce6(0x10b)]({'options':{..._0x2bf0a0,..._0x2f904b},'args':_0x4467ba?[_0x4467ba]:[],'tdx':_0x2f542b});process['exit'](_0x35c144);}),wfSecretsCmd['command'](a2_0x59c4ce(0x313))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2ca))[a2_0x59c4ce(0x1e5)](async(_0x43cd18,_0x2d08da)=>{const _0x2581e2=a2_0x59c4ce,_0x19f146=new WorkflowSecretsSetCommand(),_0x16876b=program['opts'](),_0x2fe53c=await createTDXInstance(_0x16876b),_0x2292c3=await _0x19f146['run']({'options':{..._0x16876b,..._0x2d08da},'args':_0x43cd18,'tdx':_0x2fe53c});process[_0x2581e2(0x1bc)](_0x2292c3);}),wfSecretsCmd[a2_0x59c4ce(0x1fc)]('delete\x20<args...>')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1e0))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x134),a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1e5)](async(_0x7e0663,_0x9450f5)=>{const _0x39eaf0=a2_0x59c4ce,_0x5cb9bb=new WorkflowSecretsDeleteCommand(),_0x24addf=program['opts'](),_0x16a762=await createTDXInstance(_0x24addf),_0xa6e795=await _0x5cb9bb[_0x39eaf0(0x10b)]({'options':{..._0x24addf,..._0x9450f5},'args':_0x7e0663,'tdx':_0x16a762});process['exit'](_0xa6e795);});const jobCmd=program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x246))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x242)),jobListAction=async _0x3adce9=>{const _0x53fb9f=a2_0x59c4ce,_0xb69154=new JobListCommand(),_0x2a790d=program[_0x53fb9f(0x1c8)](),_0x4d1098=await createTDXInstance(_0x2a790d),_0x1d46cb=await _0xb69154[_0x53fb9f(0x10b)]({'options':{..._0x2a790d,..._0x3adce9},'args':[],'tdx':_0x4d1098});process[_0x53fb9f(0x1bc)](_0x1d46cb);};jobCmd[a2_0x59c4ce(0x1fc)]('list')[a2_0x59c4ce(0x1ff)]('List\x20jobs')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x205),a2_0x59c4ce(0x28f))[a2_0x59c4ce(0x1e5)](jobListAction),program['command'](a2_0x59c4ce(0x25c),{'hidden':!![]})['description'](a2_0x59c4ce(0x29a))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x205),a2_0x59c4ce(0x28f))['action'](jobListAction),jobCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x14b))[a2_0x59c4ce(0x1ff)]('Show\x20job\x20details')['action'](async(_0x35a7a8,_0x1a8e33)=>{const _0x416f38=a2_0x59c4ce,_0x14edcf=new JobShowCommand(),_0x209e30=program[_0x416f38(0x1c8)](),_0x2b37af=await createTDXInstance(_0x209e30),_0x469043=await _0x14edcf[_0x416f38(0x10b)]({'options':{..._0x209e30,..._0x1a8e33},'args':[_0x35a7a8],'tdx':_0x2b37af});process[_0x416f38(0x1bc)](_0x469043);}),jobCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x34b))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x346))[a2_0x59c4ce(0x1e5)](async(_0x47f805,_0x2b0e70)=>{const _0x34c3bb=a2_0x59c4ce,_0x48d89d=new JobKillCommand(),_0x43d23e=program[_0x34c3bb(0x1c8)](),_0x5e7ce1=await createTDXInstance(_0x43d23e),_0xde8038=await _0x48d89d[_0x34c3bb(0x10b)]({'options':{..._0x43d23e,..._0x2b0e70},'args':[_0x47f805],'tdx':_0x5e7ce1});process[_0x34c3bb(0x1bc)](_0xde8038);}),jobCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x268))['description'](a2_0x59c4ce(0x15e))['option'](a2_0x59c4ce(0x170),a2_0x59c4ce(0x109),a2_0x59c4ce(0x20d))['option']('-f,\x20--file\x20<path>',a2_0x59c4ce(0x309))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x222),a2_0x59c4ce(0x1f3),'information_schema')[a2_0x59c4ce(0x1e5)](async(_0x126dec,_0x274b06)=>{const _0x42a69b=a2_0x59c4ce,_0x3fadc4=new JobSubmitCommand(),_0x59eb3a=program[_0x42a69b(0x1c8)](),_0x17e518=await createTDXInstance(_0x59eb3a),_0x5f3ad0=await _0x3fadc4[_0x42a69b(0x10b)]({'options':{..._0x59eb3a,..._0x274b06},'args':_0x126dec?[_0x126dec]:[],'tdx':_0x17e518});process[_0x42a69b(0x1bc)](_0x5f3ad0);}),jobCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x31d))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x275))[a2_0x59c4ce(0x1e5)](async(_0x1609ce,_0x242e6e)=>{const _0x4557b1=a2_0x59c4ce,_0x17cf0c=new JobResultCommand(),_0x206cdf=program[_0x4557b1(0x1c8)](),_0x1adfbd=await createTDXInstance(_0x206cdf),_0x32d07d=await _0x17cf0c[_0x4557b1(0x10b)]({'options':{..._0x206cdf,..._0x242e6e},'args':[_0x1609ce],'tdx':_0x1adfbd});process['exit'](_0x32d07d);});const llmCmd=program['command'](a2_0x59c4ce(0x23d))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1ad));llmCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x10c))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x283))[a2_0x59c4ce(0x1e5)](async(_0x30b7ce,_0x537129)=>{const _0xea070f=a2_0x59c4ce,_0x84e5c5=new LLMUseCommand(),_0x437c3a=program[_0xea070f(0x1c8)](),_0x262523=await createTDXInstance(_0x437c3a),_0x4175d2=await _0x84e5c5[_0xea070f(0x10b)]({'options':{..._0x437c3a,..._0x537129},'args':[_0x30b7ce],'tdx':_0x262523});process[_0xea070f(0x1bc)](_0x4175d2);}),llmCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x351))[a2_0x59c4ce(0x1ff)]('List\x20available\x20LLM\x20models')[a2_0x59c4ce(0x1e5)](async _0x4baa07=>{const _0x1420bf=a2_0x59c4ce,_0x412b32=new LLMModelsCommand(),_0x2816e7=program[_0x1420bf(0x1c8)](),_0x21a7d8=await createTDXInstance(_0x2816e7),_0x25f82d=await _0x412b32[_0x1420bf(0x10b)]({'options':{..._0x2816e7,..._0x4baa07},'args':[],'tdx':_0x21a7d8});process['exit'](_0x25f82d);});const projectCmd=llmCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1c4))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x12b)),llmProjectListAction=async(_0x444385,_0x44823a)=>{const _0x33e142=a2_0x59c4ce,_0x2ab96d=new LLMProjectsCommand(),_0x238129=program[_0x33e142(0x1c8)](),_0x3ed7ab=await createTDXInstance(_0x238129),_0x2481a9=await _0x2ab96d[_0x33e142(0x10b)]({'options':{..._0x238129,..._0x44823a},'args':_0x444385?[_0x444385]:[],'tdx':_0x3ed7ab});process[_0x33e142(0x1bc)](_0x2481a9);};projectCmd['command'](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1b5))[a2_0x59c4ce(0x1e5)](llmProjectListAction),llmCmd['command'](a2_0x59c4ce(0x1f4))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x311))[a2_0x59c4ce(0x1e5)](llmProjectListAction),projectCmd['command'](a2_0x59c4ce(0x190))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x20f))['option'](a2_0x59c4ce(0x226),'Project\x20description')[a2_0x59c4ce(0x1e5)](async(_0xc8c8b7,_0x5a2607)=>{const _0x4eb54a=a2_0x59c4ce,_0xb7683=new LLMProjectCreateCommand(),_0x18f0aa=program[_0x4eb54a(0x1c8)](),_0x506cc7=await createTDXInstance(_0x18f0aa),_0x2ea3c6=await _0xb7683[_0x4eb54a(0x10b)]({'options':{..._0x18f0aa,..._0x5a2607},'args':[_0xc8c8b7],'tdx':_0x506cc7});process[_0x4eb54a(0x1bc)](_0x2ea3c6);}),projectCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x121))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x26d))['action'](async(_0x53de87,_0x47bc60)=>{const _0x1d4fc9=a2_0x59c4ce,_0x3ff3fd=new LLMProjectDeleteCommand(),_0x3e4f57=program[_0x1d4fc9(0x1c8)](),_0x182b72=await createTDXInstance(_0x3e4f57),_0x2ab618=await _0x3ff3fd[_0x1d4fc9(0x10b)]({'options':{..._0x3e4f57,..._0x47bc60},'args':[_0x53de87],'tdx':_0x182b72});process[_0x1d4fc9(0x1bc)](_0x2ab618);}),projectCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x177))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2dd))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x107),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x59c4ce(0x10f),a2_0x59c4ce(0x263))[a2_0x59c4ce(0x1e5)](async(_0x325559,_0x5e7106)=>{const _0x472c51=a2_0x59c4ce,_0x544f71=new LLMProjectBackupCommand(),_0xa83715=program[_0x472c51(0x1c8)](),_0x49c05b=await createTDXInstance(_0xa83715),_0x2a00a9=await _0x544f71[_0x472c51(0x10b)]({'options':{..._0xa83715,..._0x5e7106},'args':[_0x325559],'tdx':_0x49c05b});process[_0x472c51(0x1bc)](_0x2a00a9);}),projectCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x194))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2fa))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x255),a2_0x59c4ce(0x1b8))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x10f),a2_0x59c4ce(0x166))['action'](async(_0x102731,_0x2e7f77)=>{const _0x3d16bb=a2_0x59c4ce,_0x84bdfc=new LLMProjectRestoreCommand(),_0x29ce74=program[_0x3d16bb(0x1c8)](),_0xf78b04=await createTDXInstance(_0x29ce74),_0x1bc289=await _0x84bdfc['run']({'options':{..._0x29ce74,..._0x2e7f77},'args':[_0x102731],'tdx':_0xf78b04});process[_0x3d16bb(0x1bc)](_0x1bc289);});const llmAgentListAction=async(_0x443bed,_0x1a17d2)=>{const _0x15f7a6=a2_0x59c4ce,_0x13b830=new LLMAgentsCommand(),_0x1d8b0d=program[_0x15f7a6(0x1c8)](),_0x352fe4=await createTDXInstance(_0x1d8b0d),_0x1ada15=await _0x13b830[_0x15f7a6(0x10b)]({'options':{..._0x1d8b0d,..._0x1a17d2},'args':_0x443bed?[_0x443bed]:[],'tdx':_0x352fe4});process['exit'](_0x1ada15);};llmCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2d6))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x14a))[a2_0x59c4ce(0x1e5)](llmAgentListAction),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2d6))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x14a))[a2_0x59c4ce(0x1e5)](llmAgentListAction),llmCmd['command'](a2_0x59c4ce(0x143))['description'](a2_0x59c4ce(0x32c))['option'](a2_0x59c4ce(0x212),a2_0x59c4ce(0x184))['action'](async(_0x57d1dd,_0x568e29)=>{const _0x845158=a2_0x59c4ce,_0xa82feb=new LLMHistoryCommand(),_0x2ec860=program['opts'](),_0x2e267c=await createTDXInstance(_0x2ec860),_0xdd6676=await _0xa82feb[_0x845158(0x10b)]({'options':{..._0x2ec860,..._0x568e29},'args':_0x57d1dd?[_0x57d1dd]:[],'tdx':_0x2e267c});process[_0x845158(0x1bc)](_0xdd6676);}),llmCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x19e))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x299))[a2_0x59c4ce(0x1a7)]('--port\x20<number>',a2_0x59c4ce(0x176),a2_0x59c4ce(0x238))[a2_0x59c4ce(0x1a7)]('--project\x20<name>',a2_0x59c4ce(0x1a6))['option'](a2_0x59c4ce(0x24f),a2_0x59c4ce(0x155))[a2_0x59c4ce(0x1e5)](async _0x49c132=>{const _0x5eb634=a2_0x59c4ce,_0x2fad2f=new LLMProxyCommand(),_0x46b2b3=program[_0x5eb634(0x1c8)](),_0x223f53=await createTDXInstance(_0x46b2b3),_0x3ca722={..._0x49c132,'port':_0x49c132[_0x5eb634(0x278)]?parseInt(_0x49c132['port'],0xa):undefined},_0x1d2a54=await _0x2fad2f[_0x5eb634(0x10b)]({'options':{..._0x46b2b3,..._0x3ca722},'args':[],'tdx':_0x223f53});process[_0x5eb634(0x1bc)](_0x1d2a54);}),program['command'](a2_0x59c4ce(0x207))[a2_0x59c4ce(0x158)](a2_0x59c4ce(0x29c))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1c5))['option'](a2_0x59c4ce(0x332),a2_0x59c4ce(0x1fa),a2_0x59c4ce(0x336))['option']('-c,\x20--continue',a2_0x59c4ce(0x1cb))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x303),'Resume\x20a\x20conversation\x20(shows\x20selector)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1b2),a2_0x59c4ce(0x285))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x295),a2_0x59c4ce(0x218))[a2_0x59c4ce(0x2bf)]()[a2_0x59c4ce(0x2bb)](!![])[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),a2_0x59c4ce(0x123))['action'](async(_0x3510f3,_0x27849c)=>{const _0xa5198c=a2_0x59c4ce,_0x42d9bd=program[_0xa5198c(0x1c8)](),_0x532c89=Array['isArray'](_0x3510f3)?_0x3510f3:[];if(_0x532c89[0x0]===_0xa5198c(0x183)){const _0x5ee8c=new ClaudeStatuslineCommand(),_0x550f01=await _0x5ee8c[_0xa5198c(0x10b)]({'options':{..._0x42d9bd,..._0x27849c},'args':_0x532c89[_0xa5198c(0x2a8)](0x1),'tdx':null});process[_0xa5198c(0x1bc)](_0x550f01);}if(_0x532c89[0x0]==='usage'){const _0xbfec4e=new ClaudeUsageCommand(),_0x34553e=await _0xbfec4e[_0xa5198c(0x10b)]({'options':{..._0x42d9bd,..._0x27849c},'args':_0x532c89[_0xa5198c(0x2a8)](0x1),'tdx':null});process[_0xa5198c(0x1bc)](_0x34553e);}const _0x4d5cef=new ClaudeCommand(),_0x25a36e=await createTDXInstance(_0x42d9bd),_0x65ed32=await _0x4d5cef[_0xa5198c(0x10b)]({'options':{..._0x42d9bd,..._0x27849c},'args':_0x532c89,'tdx':_0x25a36e});process[_0xa5198c(0x1bc)](_0x65ed32);}),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x279))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x253))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2b7),'Clear\x20session\x20context')[a2_0x59c4ce(0x1e5)](async(_0x3677b8,_0x8971cb,_0x35abb0)=>{const _0x3a81ce=a2_0x59c4ce,_0x702f64=new UseCommand(),_0x410c90=program[_0x3a81ce(0x1c8)](),_0x17ead6=[];if(_0x3677b8)_0x17ead6[_0x3a81ce(0x127)](_0x3677b8);if(_0x8971cb)_0x17ead6[_0x3a81ce(0x127)](_0x8971cb);const _0x4f7b18=await _0x702f64['run']({'options':{..._0x410c90,..._0x35abb0},'args':_0x17ead6,'tdx':null});process[_0x3a81ce(0x1bc)](_0x4f7b18);}),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1aa))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x11e))['option'](a2_0x59c4ce(0x212),a2_0x59c4ce(0x2c0))['action'](async _0x5edd1d=>{const _0x410fce=a2_0x59c4ce,_0xb7602c=new ChatsCommand(),_0x172cd9=program[_0x410fce(0x1c8)](),_0x18b8f2=await createTDXInstance(_0x172cd9),_0x1355fa=await _0xb7602c[_0x410fce(0x10b)]({'options':{..._0x172cd9,..._0x5edd1d},'args':[],'tdx':_0x18b8f2});process['exit'](_0x1355fa);});const authCmd=program[a2_0x59c4ce(0x1fc)]('auth')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1d2));async function runAuthStatusCommand(_0x365835){const _0x11b275=a2_0x59c4ce,_0x13f5c9=new AuthStatusCommand(),_0x45b633=program['opts'](),_0x70467a=await createTDXInstance(_0x45b633),_0x4cfb5d=await _0x13f5c9['run']({'options':{..._0x45b633,..._0x365835},'args':[],'tdx':_0x70467a});process[_0x11b275(0x1bc)](_0x4cfb5d);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x322))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1ec))[a2_0x59c4ce(0x1e5)](runAuthStatusCommand),authCmd['command'](a2_0x59c4ce(0x211))['description'](a2_0x59c4ce(0x28b))[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')['action'](async _0x3fac4d=>{const _0x238c61=a2_0x59c4ce,_0x3b1c96=new AuthSetupCommand(),_0xe1a2b9=program[_0x238c61(0x1c8)](),_0x54154c=await createTDXInstance(_0xe1a2b9),_0x59f962=await _0x3b1c96[_0x238c61(0x10b)]({'options':{..._0xe1a2b9,..._0x3fac4d},'args':[],'tdx':_0x54154c});process[_0x238c61(0x1bc)](_0x59f962);}),authCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x235))[a2_0x59c4ce(0x1ff)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x59c4ce(0x267),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x59c4ce(0x1e5)](async _0x32993a=>{const _0x3f0ba1=a2_0x59c4ce,_0x39209c=new AuthClearCommand(),_0x24aa02=program['opts'](),_0x5f3299=await _0x39209c[_0x3f0ba1(0x10b)]({'options':{..._0x24aa02,..._0x32993a},'args':[],'tdx':null});process[_0x3f0ba1(0x1bc)](_0x5f3299);});const userCmd=program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x105))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1e6)),userListAction=async _0x13a8a4=>{const _0x3a369d=a2_0x59c4ce,_0x2c40ee=new UserListCommand(),_0x55aa0a=program['opts'](),_0x100a3e=await createTDXInstance(_0x55aa0a),_0x5c6f6e=await _0x2c40ee[_0x3a369d(0x10b)]({'options':{..._0x55aa0a,..._0x13a8a4},'args':[],'tdx':_0x100a3e});process[_0x3a369d(0x1bc)](_0x5c6f6e);};userCmd[a2_0x59c4ce(0x1e5)](async _0x373c72=>{const _0x4ab7f3=a2_0x59c4ce,_0x28fe4e=new UserCommand(),_0x4ac6c7=program[_0x4ab7f3(0x1c8)](),_0x516326=await createTDXInstance(_0x4ac6c7),_0x10e302=await _0x28fe4e[_0x4ab7f3(0x10b)]({'options':{..._0x4ac6c7,..._0x373c72},'args':[],'tdx':_0x516326});process[_0x4ab7f3(0x1bc)](_0x10e302);}),userCmd[a2_0x59c4ce(0x1fc)]('list')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2a1))[a2_0x59c4ce(0x1e5)](userListAction),program['command'](a2_0x59c4ce(0x2d4))['description'](a2_0x59c4ce(0x2c8))[a2_0x59c4ce(0x1e5)](userListAction),program[a2_0x59c4ce(0x1fc)]('profiles')['description']('List\x20all\x20available\x20profiles')['action'](async _0x5727fb=>{const _0x5ce54f=a2_0x59c4ce,_0x2ff295=new ProfilesCommand(),_0x59fefa=program[_0x5ce54f(0x1c8)](),_0x1e464a=await _0x2ff295[_0x5ce54f(0x10b)]({'options':{..._0x59fefa,..._0x5727fb},'args':[],'tdx':null});process['exit'](_0x1e464a);});const profileCmd=program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2c1))['description'](a2_0x59c4ce(0x152));profileCmd[a2_0x59c4ce(0x1e5)](()=>{const _0x39a1b6=a2_0x59c4ce;profileCmd[_0x39a1b6(0x2d7)]();});const profileListAction=async _0x1a5e70=>{const _0xe662b3=a2_0x59c4ce,_0x3b75fe=new ProfilesCommand(),_0x14fc1f=program[_0xe662b3(0x1c8)](),_0x31879a=await _0x3b75fe[_0xe662b3(0x10b)]({'options':{..._0x14fc1f,..._0x1a5e70},'args':[],'tdx':null});process[_0xe662b3(0x1bc)](_0x31879a);};profileCmd[a2_0x59c4ce(0x1fc)]('list')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x354))[a2_0x59c4ce(0x1e5)](profileListAction),profileCmd[a2_0x59c4ce(0x1fc)]('create\x20[name]')[a2_0x59c4ce(0x1ff)]('Create\x20a\x20new\x20profile')[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),a2_0x59c4ce(0x137))[a2_0x59c4ce(0x1e5)](async(_0x5812f6,_0x5f584e)=>{const _0x3a8340=a2_0x59c4ce,_0x5ef412=new ProfileCreateCommand(),_0x494b6d=program['opts'](),_0x4f8601=await _0x5ef412[_0x3a8340(0x10b)]({'options':{..._0x494b6d,..._0x5f584e},'args':_0x5812f6?[_0x5812f6]:[],'tdx':null});process[_0x3a8340(0x1bc)](_0x4f8601);}),profileCmd[a2_0x59c4ce(0x1fc)]('remove\x20<name>')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2ce))[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),a2_0x59c4ce(0x1bb))[a2_0x59c4ce(0x1e5)](async(_0x3f2864,_0x3531ff)=>{const _0x4b4d1e=a2_0x59c4ce,_0x23cdbf=new ProfileRemoveCommand(),_0x530ca9=program[_0x4b4d1e(0x1c8)](),_0x9ac116=await _0x23cdbf[_0x4b4d1e(0x10b)]({'options':{..._0x530ca9,..._0x3531ff},'args':[_0x3f2864],'tdx':null});process[_0x4b4d1e(0x1bc)](_0x9ac116);}),profileCmd[a2_0x59c4ce(0x1fc)]('set\x20<key=value>')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x18e))[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x59c4ce(0x1e5)](async(_0x11d28a,_0x140e81)=>{const _0x662566=a2_0x59c4ce,_0x2899f8=new ProfileSetCommand(),_0xcb9425=program[_0x662566(0x1c8)](),_0x1a123a=await _0x2899f8[_0x662566(0x10b)]({'options':{..._0xcb9425,..._0x140e81},'args':[_0x11d28a],'tdx':null});process[_0x662566(0x1bc)](_0x1a123a);}),profileCmd['command'](a2_0x59c4ce(0x2e5))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x25f))[a2_0x59c4ce(0x12a)](a2_0x59c4ce(0x267),a2_0x59c4ce(0x356))[a2_0x59c4ce(0x1e5)](async(_0x1ec19b,_0x273f8c)=>{const _0x8472eb=a2_0x59c4ce,_0x268edc=new ProfileUseCommand(),_0xd83bd8=program[_0x8472eb(0x1c8)](),_0x6284b0=await _0x268edc['run']({'options':{..._0xd83bd8,..._0x273f8c},'args':[_0x1ec19b],'tdx':null});process['exit'](_0x6284b0);});const engageCmd=program['command'](a2_0x59c4ce(0x250))[a2_0x59c4ce(0x1ff)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x13cda9=>{return async(_0x147245,_0x319cc1)=>{const _0x570489=a2_0xcfc9,_0x3e2ce7=new _0x13cda9(),_0xe2e2af=program[_0x570489(0x1c8)](),_0x35acd2=await createTDXInstance(_0xe2e2af),_0x5a1e8d=await _0x3e2ce7[_0x570489(0x10b)]({'options':{..._0xe2e2af,..._0x319cc1},'args':[_0x147245],'tdx':_0x35acd2});process[_0x570489(0x1bc)](_0x5a1e8d);};},createEngageNoArgAction=_0x204356=>{return async _0x19299c=>{const _0xe839af=a2_0xcfc9,_0x578f0d=new _0x204356(),_0x5a07f6=program[_0xe839af(0x1c8)](),_0x38a933=await createTDXInstance(_0x5a07f6),_0x4020ca=await _0x578f0d['run']({'options':{..._0x5a07f6,..._0x19299c},'args':[],'tdx':_0x38a933});process[_0xe839af(0x1bc)](_0x4020ca);};},campaignCmd=engageCmd[a2_0x59c4ce(0x1fc)]('campaign')[a2_0x59c4ce(0x1ff)]('Campaign\x20management'),campaignListAction=async(_0x1d7a77,_0x2bf50f)=>{const _0x4316dd=a2_0x59c4ce,_0x412f26=new EngageCampaignsCommand(),_0x1e5040=program[_0x4316dd(0x1c8)](),_0x1ab0bd=await createTDXInstance(_0x1e5040),_0x26004f=await _0x412f26[_0x4316dd(0x10b)]({'options':{..._0x1e5040,..._0x2bf50f},'args':_0x1d7a77?[_0x1d7a77]:[],'tdx':_0x1ab0bd});process[_0x4316dd(0x1bc)](_0x26004f);};campaignCmd['command']('list\x20[pattern]')[a2_0x59c4ce(0x1ff)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x59c4ce(0x1a7)]('--type\x20<type>',a2_0x59c4ce(0x2eb))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x205),a2_0x59c4ce(0x25b))['option'](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))['action'](campaignListAction),engageCmd[a2_0x59c4ce(0x1fc)]('campaigns\x20[pattern]')['description'](a2_0x59c4ce(0x131))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x13c),a2_0x59c4ce(0x2eb))['option'](a2_0x59c4ce(0x205),a2_0x59c4ce(0x25b))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),'Workspace\x20name')[a2_0x59c4ce(0x1e5)](campaignListAction),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x254))['description'](a2_0x59c4ce(0x229))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),'Workspace\x20name')[a2_0x59c4ce(0x1a7)]('--full',a2_0x59c4ce(0x2c3))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x315))['description'](a2_0x59c4ce(0x329))[a2_0x59c4ce(0x2db)](a2_0x59c4ce(0x160),'Campaign\x20name')[a2_0x59c4ce(0x2db)]('--type\x20<type>',a2_0x59c4ce(0x335))['option'](a2_0x59c4ce(0x259),a2_0x59c4ce(0x358))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x32f),a2_0x59c4ce(0x149))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x182),a2_0x59c4ce(0x2a4))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x24d),a2_0x59c4ce(0x30e))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x159),a2_0x59c4ce(0x2ff))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x209),a2_0x59c4ce(0x318))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x33a),a2_0x59c4ce(0x1a5))[a2_0x59c4ce(0x1e5)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x59c4ce(0x1fc)]('update\x20<name-or-id>')[a2_0x59c4ce(0x1ff)]('Update\x20a\x20campaign')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),'Workspace\x20name')['option']('--name\x20<name>','New\x20campaign\x20name')[a2_0x59c4ce(0x1a7)]('--description\x20<desc>',a2_0x59c4ce(0x149))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x182),a2_0x59c4ce(0x2a4))[a2_0x59c4ce(0x1a7)]('--email-sender-id\x20<id>','Email\x20sender\x20ID\x20for\x20delivery')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x159),a2_0x59c4ce(0x2ff))[a2_0x59c4ce(0x1a7)]('--start-at\x20<datetime>',a2_0x59c4ce(0x318))[a2_0x59c4ce(0x1a7)]('--timezone\x20<tz>',a2_0x59c4ce(0x1a5))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x23b))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x119))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1a7)]('--yes',a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2fd))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x112))['option'](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x59c4ce(0x108))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x106))[a2_0x59c4ce(0x1a7)]('--workspace\x20<name>',a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2fb))[a2_0x59c4ce(0x1ff)]('Resume\x20a\x20paused\x20campaign')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x111))[a2_0x59c4ce(0x1ff)]('Duplicate\x20a\x20campaign')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x129))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x265)),templateListAction=async(_0x3fdad9,_0x2b6687)=>{const _0x5e7b0a=a2_0x59c4ce,_0x57b456=new EngageTemplatesCommand(),_0x177446=program['opts'](),_0x1dc77d=await createTDXInstance(_0x177446),_0x476b27=await _0x57b456[_0x5e7b0a(0x10b)]({'options':{..._0x177446,..._0x2b6687},'args':_0x3fdad9?[_0x3fdad9]:[],'tdx':_0x1dc77d});process[_0x5e7b0a(0x1bc)](_0x476b27);};templateCmd[a2_0x59c4ce(0x1fc)]('list\x20[pattern]')['description'](a2_0x59c4ce(0x2a9))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))['action'](templateListAction),engageCmd[a2_0x59c4ce(0x1fc)]('templates\x20[pattern]')[a2_0x59c4ce(0x1ff)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1e5)](templateListAction),templateCmd['command'](a2_0x59c4ce(0x254))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1a9))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2bd),a2_0x59c4ce(0x2c3))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x315))['description'](a2_0x59c4ce(0x31a))[a2_0x59c4ce(0x2db)](a2_0x59c4ce(0x160),a2_0x59c4ce(0x1a4))[a2_0x59c4ce(0x2db)]('--subject\x20<subject>',a2_0x59c4ce(0x1fd))['requiredOption'](a2_0x59c4ce(0x2ae),a2_0x59c4ce(0x237))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x358))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2ef),a2_0x59c4ce(0x2f4))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1df),a2_0x59c4ce(0x34f))[a2_0x59c4ce(0x1e5)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x18d))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x27d))[a2_0x59c4ce(0x1a7)]('--workspace\x20<name>',a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1a7)]('--name\x20<name>',a2_0x59c4ce(0x245))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x1ce),'Email\x20subject\x20template')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2ae),a2_0x59c4ce(0x237))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2ef),a2_0x59c4ce(0x2f4))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x59c4ce(0x1fc)]('delete\x20<name-or-id>')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x133))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x259),a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1a7)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x59c4ce(0x1e5)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x276))['description'](a2_0x59c4ce(0x327)),workspaceListAction=async(_0x605dc2,_0x5ebbde)=>{const _0x107f57=a2_0x59c4ce,_0x44e182=new EngageWorkspacesCommand(),_0x172874=program[_0x107f57(0x1c8)](),_0x5a9d26=await createTDXInstance(_0x172874),_0x124e26=await _0x44e182[_0x107f57(0x10b)]({'options':{..._0x172874,..._0x5ebbde},'args':_0x605dc2?[_0x605dc2]:[],'tdx':_0x5a9d26});process['exit'](_0x124e26);};workspaceCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x30b))['action'](workspaceListAction),engageCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2af))['description'](a2_0x59c4ce(0x23e))['action'](workspaceListAction),workspaceCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x254))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x206))['option'](a2_0x59c4ce(0x2bd),a2_0x59c4ce(0x2c3))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x315))['description'](a2_0x59c4ce(0x1c7))[a2_0x59c4ce(0x2db)](a2_0x59c4ce(0x160),a2_0x59c4ce(0x1ef))[a2_0x59c4ce(0x1a7)]('--description\x20<desc>',a2_0x59c4ce(0x11d))[a2_0x59c4ce(0x1e5)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x18d))[a2_0x59c4ce(0x1ff)]('Update\x20a\x20workspace')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x160),a2_0x59c4ce(0x2c5))[a2_0x59c4ce(0x1a7)]('--description\x20<desc>',a2_0x59c4ce(0x11d))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x59c4ce(0x1fc)]('delete\x20<name-or-id>')['description']('Delete\x20a\x20workspace')[a2_0x59c4ce(0x1a7)]('--yes',a2_0x59c4ce(0x2e3))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2e5))['description'](a2_0x59c4ce(0x2a3))[a2_0x59c4ce(0x1e5)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1af))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x24c)),connectionListAction=async _0x32cc4d=>{const _0x2ab7fb=a2_0x59c4ce,_0x4b3e3d=new ConnectionListCommand(),_0x5597fd=program[_0x2ab7fb(0x1c8)](),_0x1b46b8=await createTDXInstance(_0x5597fd),_0x5d991e=await _0x4b3e3d[_0x2ab7fb(0x10b)]({'options':{..._0x5597fd,..._0x32cc4d},'args':[],'tdx':_0x1b46b8});process[_0x2ab7fb(0x1bc)](_0x5d991e);};connectionCmd[a2_0x59c4ce(0x1fc)]('list')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x28c))[a2_0x59c4ce(0x1e5)](connectionListAction),program[a2_0x59c4ce(0x1fc)]('connections',{'hidden':!![]})[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x1d1))['action'](connectionListAction),connectionCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1d5))[a2_0x59c4ce(0x1ff)]('Show\x20connection\x20details\x20by\x20name')[a2_0x59c4ce(0x1e5)](async(_0x45ae6f,_0x443bb3)=>{const _0x447e9d=a2_0x59c4ce,_0x15cde4=new ConnectionShowCommand(),_0x3e1745=program[_0x447e9d(0x1c8)](),_0x462d8d=await createTDXInstance(_0x3e1745),_0x4d1434=await _0x15cde4['run']({'options':{..._0x3e1745,..._0x443bb3},'args':[_0x45ae6f],'tdx':_0x462d8d});process[_0x447e9d(0x1bc)](_0x4d1434);}),connectionCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x1db))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2fc))[a2_0x59c4ce(0x1e5)](async(_0xb14b5e,_0x4877de)=>{const _0x5b4629=a2_0x59c4ce,_0x5b6a99=new ConnectionSchemaCommand(),_0x5e8546=program[_0x5b4629(0x1c8)](),_0x385d31=await createTDXInstance(_0x5e8546),_0x11c6af=await _0x5b6a99[_0x5b4629(0x10b)]({'options':{..._0x5e8546,..._0x4877de},'args':[_0xb14b5e],'tdx':_0x385d31});process['exit'](_0x11c6af);}),connectionCmd[a2_0x59c4ce(0x1fc)]('types')[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2f8))['action'](async _0x5e1b44=>{const _0x42088c=a2_0x59c4ce,_0x209ef0=new ConnectionTypesCommand(),_0x58f9e1=program[_0x42088c(0x1c8)](),_0x16c1fe=await createTDXInstance(_0x58f9e1),_0x2386c6=await _0x209ef0[_0x42088c(0x10b)]({'options':{..._0x58f9e1,..._0x5e1b44},'args':[],'tdx':_0x16c1fe});process[_0x42088c(0x1bc)](_0x2386c6);}),connectionCmd['command']('settings\x20<type>')[a2_0x59c4ce(0x1ff)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x59c4ce(0x1e5)](async(_0x3a7dc8,_0x575a2c)=>{const _0x14f4a3=a2_0x59c4ce,_0x4be14e=new ConnectionSettingsCommand(),_0x1a464c=program[_0x14f4a3(0x1c8)](),_0x3016a2=await createTDXInstance(_0x1a464c),_0x8bb949=await _0x4be14e['run']({'options':{..._0x1a464c,..._0x575a2c},'args':[_0x3a7dc8],'tdx':_0x3016a2});process[_0x14f4a3(0x1bc)](_0x8bb949);});const journeyCmd=program['command'](a2_0x59c4ce(0x1d3))[a2_0x59c4ce(0x1ff)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x56f4a5,_0x3b668e)=>{const _0x562bd8=a2_0x59c4ce,_0x58706c=new JourneyListCommand(),_0x1b15d4=program['opts'](),_0x1fc39e=await createTDXInstance(_0x1b15d4),_0x293465=await _0x58706c[_0x562bd8(0x10b)]({'options':{..._0x1b15d4,..._0x3b668e},'args':_0x56f4a5?[_0x56f4a5]:[],'tdx':_0x1fc39e});process['exit'](_0x293465);};journeyCmd['command'](a2_0x59c4ce(0x324))['description'](a2_0x59c4ce(0x11c))['action'](journeyListAction),journeyCmd[a2_0x59c4ce(0x1fc)]('view\x20<name-or-path>')[a2_0x59c4ce(0x1ff)]('Show\x20journey\x20details')[a2_0x59c4ce(0x1a7)]('-w,\x20--web',a2_0x59c4ce(0x1eb))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x23a),a2_0x59c4ce(0x153))[a2_0x59c4ce(0x1e5)](async(_0x59f04f,_0x95e377)=>{const _0x8a3db5=a2_0x59c4ce,_0x2ed94a=new JourneyViewCommand(),_0x421971=program[_0x8a3db5(0x1c8)](),_0x3252a0=await createTDXInstance(_0x421971),_0x1f9abf=await _0x2ed94a[_0x8a3db5(0x10b)]({'options':{..._0x421971,..._0x95e377},'args':[_0x59f04f],'tdx':_0x3252a0});process[_0x8a3db5(0x1bc)](_0x1f9abf);}),journeyCmd['command'](a2_0x59c4ce(0x16a))['description']('Show\x20journey\x20statistics')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x193),a2_0x59c4ce(0x328))[a2_0x59c4ce(0x1e5)](async(_0x42a57e,_0xa64f06)=>{const _0x4593b5=a2_0x59c4ce,_0x4bb1c2=new JourneyStatsCommand(),_0x417e46=program[_0x4593b5(0x1c8)](),_0x5d7390=await createTDXInstance(_0x417e46),_0x408c06=await _0x4bb1c2[_0x4593b5(0x10b)]({'options':{..._0x417e46,..._0xa64f06},'args':[_0x42a57e],'tdx':_0x5d7390});process['exit'](_0x408c06);}),journeyCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x17d))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x17a))[a2_0x59c4ce(0x1e5)](async(_0x5b24e5,_0x3960bb)=>{const _0x428d2c=a2_0x59c4ce,_0xf0ecd9=new JourneyPauseCommand(),_0x587bca=program[_0x428d2c(0x1c8)](),_0x26e9c6=await createTDXInstance(_0x587bca),_0x10c192=await _0xf0ecd9['run']({'options':{..._0x587bca,..._0x3960bb},'args':[_0x5b24e5],'tdx':_0x26e9c6});process['exit'](_0x10c192);}),journeyCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x125))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2ac))[a2_0x59c4ce(0x1e5)](async(_0x1beac1,_0x2e6ec8)=>{const _0x17a358=a2_0x59c4ce,_0x3c4ef2=new JourneyResumeCommand(),_0x1da1ad=program['opts'](),_0x10b5c0=await createTDXInstance(_0x1da1ad),_0x5b24df=await _0x3c4ef2[_0x17a358(0x10b)]({'options':{..._0x1da1ad,..._0x2e6ec8},'args':[_0x1beac1],'tdx':_0x10b5c0});process[_0x17a358(0x1bc)](_0x5b24df);}),journeyCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2d3))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x29e))['option'](a2_0x59c4ce(0x134),a2_0x59c4ce(0x2e3))['option'](a2_0x59c4ce(0x10f),a2_0x59c4ce(0x28d))[a2_0x59c4ce(0x1e5)](async(_0x40d37e,_0x51dda5)=>{const _0x3dffbb=a2_0x59c4ce,_0x4ac378=new JourneyPullCommand(),_0x266475=program[_0x3dffbb(0x1c8)](),_0x218c26=await createTDXInstance(_0x266475),_0x1ec3d6=await _0x4ac378['run']({'options':{..._0x266475,..._0x51dda5},'args':_0x40d37e?[_0x40d37e]:[],'tdx':_0x218c26});process['exit'](_0x1ec3d6);}),journeyCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x148))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x33d))[a2_0x59c4ce(0x1e5)](async(_0xfcd032,_0x284a99)=>{const _0x575243=a2_0x59c4ce,_0x28b905=new JourneyPushCommand(),_0x4d48a7=program[_0x575243(0x1c8)](),_0x3ece56=await createTDXInstance(_0x4d48a7),_0x8e52c9=await _0x28b905[_0x575243(0x10b)]({'options':{..._0x4d48a7,..._0x284a99},'args':_0xfcd032?[_0xfcd032]:[],'tdx':_0x3ece56});process[_0x575243(0x1bc)](_0x8e52c9);}),journeyCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x2ec))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x291))[a2_0x59c4ce(0x1e5)](async(_0x538624,_0x280b3a)=>{const _0x1b5df6=new JourneyValidateCommand(),_0x39861a=program['opts'](),_0x24b073=await createTDXInstance(_0x39861a),_0x280285=await _0x1b5df6['run']({'options':{..._0x39861a,..._0x280b3a},'args':_0x538624?[_0x538624]:[],'tdx':_0x24b073});process['exit'](_0x280285);}),program[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x31b))[a2_0x59c4ce(0x1ff)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x59c4ce(0x1e5)](journeyListAction);const agentSyncCmd=program['command'](a2_0x59c4ce(0x331))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x340));agentSyncCmd['command'](a2_0x59c4ce(0x30f))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x200))[a2_0x59c4ce(0x1a7)]('-o,\x20--output\x20<dir>','Output\x20directory')[a2_0x59c4ce(0x1a7)]('-f,\x20--force',a2_0x59c4ce(0x338))['action'](async(_0x2ffb9a,_0x4ce412,_0xf29ee1)=>{const _0x7a035e=a2_0x59c4ce,_0x29688c=new AgentPullCommand(),_0x1fd9c4=program[_0x7a035e(0x1c8)](),_0x461110=await createTDXInstance(_0x1fd9c4),_0x58769e=[];if(_0x2ffb9a)_0x58769e[_0x7a035e(0x127)](_0x2ffb9a);if(_0x4ce412)_0x58769e[_0x7a035e(0x127)](_0x4ce412);const _0x302eec=await _0x29688c[_0x7a035e(0x10b)]({'options':{..._0x1fd9c4,..._0xf29ee1},'args':_0x58769e,'tdx':_0x461110});process['exit'](_0x302eec);}),agentSyncCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x201))['description'](a2_0x59c4ce(0x26b))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x30d),a2_0x59c4ce(0x1a0))[a2_0x59c4ce(0x1e5)](async(_0xf5088b,_0x2aaffc)=>{const _0x4ed599=a2_0x59c4ce,_0x30a915=new AgentPushCommand(),_0x25d8e3=program[_0x4ed599(0x1c8)](),_0x24c6cf=await createTDXInstance(_0x25d8e3),_0x3886ec=await _0x30a915[_0x4ed599(0x10b)]({'options':{..._0x25d8e3,..._0x2aaffc},'args':_0xf5088b?[_0xf5088b]:[],'tdx':_0x24c6cf});process[_0x4ed599(0x1bc)](_0x3886ec);}),agentSyncCmd['command'](a2_0x59c4ce(0x117))[a2_0x59c4ce(0x1ff)]('Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project')['option'](a2_0x59c4ce(0x21f),a2_0x59c4ce(0x144))[a2_0x59c4ce(0x1e5)](async(_0x2e2724,_0x195be8)=>{const _0x1db110=a2_0x59c4ce,_0x12ea2d=new AgentCloneCommand(),_0x54c333=program[_0x1db110(0x1c8)](),_0x1b54a3=await createTDXInstance(_0x54c333),_0x33a76b=await _0x12ea2d['run']({'options':{..._0x54c333,..._0x195be8},'args':_0x2e2724?[_0x2e2724]:[],'tdx':_0x1b54a3});process[_0x1db110(0x1bc)](_0x33a76b);}),agentSyncCmd['command'](a2_0x59c4ce(0x324))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2fe))[a2_0x59c4ce(0x1e5)](llmAgentListAction),agentSyncCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x232))['description'](a2_0x59c4ce(0x239))[a2_0x59c4ce(0x1e5)](async(_0x239e9e,_0x16c751)=>{const _0x4d483e=a2_0x59c4ce,_0x1cc6e3=new LLMAgentShowCommand(),_0x3058b9=program[_0x4d483e(0x1c8)](),_0x51a413=await createTDXInstance(_0x3058b9),_0x27af6c=await _0x1cc6e3[_0x4d483e(0x10b)]({'options':{..._0x3058b9,..._0x16c751},'args':[_0x239e9e],'tdx':_0x51a413});process[_0x4d483e(0x1bc)](_0x27af6c);}),agentSyncCmd['command'](a2_0x59c4ce(0x190))[a2_0x59c4ce(0x1ff)]('Create\x20a\x20new\x20agent\x20in\x20current\x20project')['option'](a2_0x59c4ce(0x167),a2_0x59c4ce(0x243))[a2_0x59c4ce(0x1a7)]('--model\x20<name>',a2_0x59c4ce(0x2cf),a2_0x59c4ce(0x19c))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x25a),'Starter\x20message')[a2_0x59c4ce(0x1a7)]('--max-tool-iterations\x20<n>',a2_0x59c4ce(0x1e1),'4')[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x2ad),a2_0x59c4ce(0x30c),'0.7')[a2_0x59c4ce(0x1e5)](async(_0x2110b0,_0x3ae82c)=>{const _0x2868fb=a2_0x59c4ce,_0x5a6e28=new LLMAgentCreateCommand(),_0x3393e1=program[_0x2868fb(0x1c8)](),_0x2667a5=await createTDXInstance(_0x3393e1),_0x60f232=await _0x5a6e28['run']({'options':{..._0x3393e1,..._0x3ae82c},'args':[_0x2110b0],'tdx':_0x2667a5});process[_0x2868fb(0x1bc)](_0x60f232);}),agentSyncCmd[a2_0x59c4ce(0x1fc)](a2_0x59c4ce(0x10e))[a2_0x59c4ce(0x1ff)](a2_0x59c4ce(0x2f5))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x359),a2_0x59c4ce(0x25d))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x15c),a2_0x59c4ce(0x1e7))[a2_0x59c4ce(0x1a7)](a2_0x59c4ce(0x226),a2_0x59c4ce(0x12c))['option'](a2_0x59c4ce(0x25a),a2_0x59c4ce(0x34e))[a2_0x59c4ce(0x1e5)](async(_0x36473f,_0x232e04)=>{const _0x24ce20=a2_0x59c4ce,_0x1d7dff=new LLMAgentUpdateCommand(),_0x5614ca=program['opts'](),_0x4a434a=await createTDXInstance(_0x5614ca),_0x2854a4=await _0x1d7dff['run']({'options':{..._0x5614ca,..._0x232e04},'args':[_0x36473f],'tdx':_0x4a434a});process[_0x24ce20(0x1bc)](_0x2854a4);}),agentSyncCmd[a2_0x59c4ce(0x1fc)]('delete\x20<agent-name>')['description'](a2_0x59c4ce(0x248))['action'](async(_0x316ff8,_0x32cd13)=>{const _0x3a094f=a2_0x59c4ce,_0x2e04e2=new LLMAgentDeleteCommand(),_0x3823d0=program['opts'](),_0x26f950=await createTDXInstance(_0x3823d0),_0x7fa064=await _0x2e04e2['run']({'options':{..._0x3823d0,..._0x32cd13},'args':[_0x316ff8],'tdx':_0x26f950});process[_0x3a094f(0x1bc)](_0x7fa064);});export{program};export function runCLI(){const _0x1ab1c3=a2_0x59c4ce,_0x44219a=!process[_0x1ab1c3(0x2a7)][_0x1ab1c3(0x2a8)](0x2)[_0x1ab1c3(0x31f)];showBriefHelp=_0x44219a,program[_0x1ab1c3(0x1e2)](process['argv']),_0x44219a&&program[_0x1ab1c3(0x2d7)](),process['stderr'][_0x1ab1c3(0x173)]&&process[_0x1ab1c3(0x2a7)][_0x1ab1c3(0x31f)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x5edb01=>{_0x5edb01&&displayUpdateNotification(_0x5edb01);})[_0x1ab1c3(0x1a8)](()=>{});}