@treasuredata/tdx 0.25.7 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.d.ts +7 -0
  77. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  80. package/dist/sdk/client/endpoints.js +1 -1
  81. package/dist/sdk/client/engage-api-client.js +1 -1
  82. package/dist/sdk/client/http-client.js +1 -1
  83. package/dist/sdk/client/llm-api-client.js +1 -1
  84. package/dist/sdk/client/rate-limiter.js +1 -1
  85. package/dist/sdk/client/td-api-client.js +1 -1
  86. package/dist/sdk/client/trino-api-client.js +1 -1
  87. package/dist/sdk/client/workflow-client.js +1 -1
  88. package/dist/sdk/connection-validator.js +1 -1
  89. package/dist/sdk/connection.js +1 -1
  90. package/dist/sdk/engage.js +1 -1
  91. package/dist/sdk/errors.js +1 -1
  92. package/dist/sdk/index.js +1 -1
  93. package/dist/sdk/io/index.js +1 -1
  94. package/dist/sdk/io/node-filesystem.js +1 -1
  95. package/dist/sdk/job.js +1 -1
  96. package/dist/sdk/journey.js +1 -1
  97. package/dist/sdk/llm/chat-cache.js +1 -1
  98. package/dist/sdk/llm/index.js +1 -1
  99. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  100. package/dist/sdk/llm/model-factors.js +1 -1
  101. package/dist/sdk/personalization.js +1 -1
  102. package/dist/sdk/query/index.js +1 -1
  103. package/dist/sdk/query/sql-parser.js +1 -1
  104. package/dist/sdk/realtime.js +1 -1
  105. package/dist/sdk/schedule.js +1 -1
  106. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  107. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  108. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  109. package/dist/sdk/segment/fields-display.js +1 -1
  110. package/dist/sdk/segment/file-discovery.js +1 -1
  111. package/dist/sdk/segment/journey-utils.js +1 -1
  112. package/dist/sdk/segment/journey-validator.d.ts +19 -0
  113. package/dist/sdk/segment/journey-validator.d.ts.map +1 -0
  114. package/dist/sdk/segment/journey-validator.js +1 -0
  115. package/dist/sdk/segment/journey-validator.js.map +1 -0
  116. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  117. package/dist/sdk/segment/journey-yaml.js +1 -1
  118. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  119. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  120. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  121. package/dist/sdk/segment/pull-workflow.js +1 -1
  122. package/dist/sdk/segment/push-recovery.d.ts +42 -0
  123. package/dist/sdk/segment/push-recovery.d.ts.map +1 -0
  124. package/dist/sdk/segment/push-recovery.js +1 -0
  125. package/dist/sdk/segment/push-recovery.js.map +1 -0
  126. package/dist/sdk/segment/push-workflow.d.ts +18 -12
  127. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  128. package/dist/sdk/segment/push-workflow.js +1 -1
  129. package/dist/sdk/segment/push-workflow.js.map +1 -1
  130. package/dist/sdk/segment/resolution-context.js +1 -1
  131. package/dist/sdk/segment/segment-path-parser.js +1 -1
  132. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  133. package/dist/sdk/segment/target-resolution.js +1 -1
  134. package/dist/sdk/segment/tdx-config.js +1 -1
  135. package/dist/sdk/segment/types/segment-def.d.ts +2 -0
  136. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  137. package/dist/sdk/segment/validate-files.d.ts.map +1 -1
  138. package/dist/sdk/segment/validate-files.js +1 -1
  139. package/dist/sdk/segment/validate-files.js.map +1 -1
  140. package/dist/sdk/segment/yaml-validator.d.ts +7 -7
  141. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  142. package/dist/sdk/segment/yaml-validator.js +1 -1
  143. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  144. package/dist/sdk/segment.d.ts +5 -0
  145. package/dist/sdk/segment.d.ts.map +1 -1
  146. package/dist/sdk/segment.js +1 -1
  147. package/dist/sdk/segment.js.map +1 -1
  148. package/dist/sdk/types/cdp.d.ts +117 -0
  149. package/dist/sdk/types/cdp.d.ts.map +1 -1
  150. package/dist/sdk/types/index.js +1 -1
  151. package/dist/sdk/types/progress.js +1 -1
  152. package/dist/sdk/user.js +1 -1
  153. package/dist/sdk/util/format-detector.js +1 -1
  154. package/dist/sdk/util/formatters.js +1 -1
  155. package/dist/sdk/util/index.js +1 -1
  156. package/dist/sdk/util/tree-formatter.js +1 -1
  157. package/dist/sdk/workflow/archive-validation.js +1 -1
  158. package/dist/sdk/workflow/clone-workflow.js +1 -1
  159. package/dist/sdk/workflow/index.js +1 -1
  160. package/dist/sdk/workflow/pull-workflow.js +1 -1
  161. package/dist/sdk/workflow/push-workflow.js +1 -1
  162. package/dist/sdk/workflow/tdx-config.js +1 -1
  163. package/dist/sdk/workflow/workflow-utils.js +1 -1
  164. package/dist/test-utils/command-runner.js +1 -1
  165. package/dist/test-utils/factories.js +1 -1
  166. package/dist/test-utils/fixtures.js +1 -1
  167. package/dist/test-utils/http-mock.js +1 -1
  168. package/dist/test-utils/index.js +1 -1
  169. package/dist/utils/async.js +1 -1
  170. package/dist/utils/colors.js +1 -1
  171. package/dist/utils/diff.js +1 -1
  172. package/dist/utils/file-permissions.js +1 -1
  173. package/dist/utils/global-cache.js +1 -1
  174. package/dist/utils/json-loader.js +1 -1
  175. package/dist/utils/local-cache.js +1 -1
  176. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  177. package/dist/utils/logger/formatters/index.js +1 -1
  178. package/dist/utils/logger/handlers/console-handler.js +1 -1
  179. package/dist/utils/logger/handlers/file-handler.js +1 -1
  180. package/dist/utils/logger/handlers/index.js +1 -1
  181. package/dist/utils/logger/handlers/null-handler.js +1 -1
  182. package/dist/utils/logger/index.js +1 -1
  183. package/dist/utils/logger/logger.js +1 -1
  184. package/dist/utils/logger/types.js +1 -1
  185. package/dist/utils/option-validation.js +1 -1
  186. package/dist/utils/port.js +1 -1
  187. package/dist/utils/process.js +1 -1
  188. package/dist/utils/prompt.js +1 -1
  189. package/dist/utils/spinner.js +1 -1
  190. package/dist/utils/sse-parser.js +1 -1
  191. package/dist/utils/string-utils.js +1 -1
  192. package/dist/utils/table-ref-parser.js +1 -1
  193. package/dist/utils/tdx-logger.js +1 -1
  194. package/dist/utils/version-check.js +1 -1
  195. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x29f913=a2_0x4297;(function(_0x1f3669,_0xe4b079){const _0x5afdce=a2_0x4297,_0x2b2c04=_0x1f3669();while(!![]){try{const _0x2dea89=-parseInt(_0x5afdce(0x1bb))/0x1+parseInt(_0x5afdce(0x15e))/0x2+parseInt(_0x5afdce(0x244))/0x3*(parseInt(_0x5afdce(0x1c8))/0x4)+-parseInt(_0x5afdce(0x1a5))/0x5*(-parseInt(_0x5afdce(0x2fd))/0x6)+-parseInt(_0x5afdce(0x32e))/0x7*(parseInt(_0x5afdce(0x209))/0x8)+parseInt(_0x5afdce(0x1a1))/0x9*(parseInt(_0x5afdce(0x1ed))/0xa)+parseInt(_0x5afdce(0x20f))/0xb;if(_0x2dea89===_0xe4b079)break;else _0x2b2c04['push'](_0x2b2c04['shift']());}catch(_0x39f265){_0x2b2c04['push'](_0x2b2c04['shift']());}}}(a2_0x11b2,0xba0cf));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x29f913(0x205)][a2_0x29f913(0x147)](a2_0x29f913(0x128))){let versionOutput=a2_0x29f913(0x19a)+currentVersion;buildInfo[a2_0x29f913(0x212)]&&!currentVersion['includes'](buildInfo[a2_0x29f913(0x212)])&&(versionOutput+='\x20('+buildInfo[a2_0x29f913(0x212)]+')'),buildInfo[a2_0x29f913(0x1e5)]&&(versionOutput+=a2_0x29f913(0x178)+buildInfo['buildTime']),console[a2_0x29f913(0x1ec)](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x29f913(0x2d0);buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x29f913(0x212)])?description+=a2_0x29f913(0x11e)+currentVersion+'\x20('+buildInfo[a2_0x29f913(0x212)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x29f913(0x2ad))[a2_0x29f913(0x29c)](description),program['option'](a2_0x29f913(0x30e),a2_0x29f913(0x121))[a2_0x29f913(0x34e)](a2_0x29f913(0x33d),a2_0x29f913(0x227))[a2_0x29f913(0x34e)](a2_0x29f913(0x37e),a2_0x29f913(0x216),a2_0x29f913(0x234))[a2_0x29f913(0x34e)](a2_0x29f913(0x231),a2_0x29f913(0x2d1))[a2_0x29f913(0x34e)](a2_0x29f913(0x14c),a2_0x29f913(0x160))['option'](a2_0x29f913(0x35a),a2_0x29f913(0x374))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x129))[a2_0x29f913(0x34e)](a2_0x29f913(0x143),a2_0x29f913(0x248))['option'](a2_0x29f913(0x203),'Save\x20output\x20to\x20file')[a2_0x29f913(0x34e)]('--limit\x20<number>',a2_0x29f913(0x2da))[a2_0x29f913(0x34e)](a2_0x29f913(0x14a),a2_0x29f913(0x31b),![])['option'](a2_0x29f913(0x11b),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x29f913(0x34e)](a2_0x29f913(0x2aa),a2_0x29f913(0x292),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x295),a2_0x29f913(0x380))[a2_0x29f913(0x34e)]('--trace',a2_0x29f913(0x249))['option']('--timeout\x20<seconds>','Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x2f8),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x27e),![])[a2_0x29f913(0x34e)](a2_0x29f913(0x1e8),a2_0x29f913(0x257))['option'](a2_0x29f913(0x2e3),a2_0x29f913(0x1b7))['option'](a2_0x29f913(0x331),a2_0x29f913(0x302))[a2_0x29f913(0x34e)]('--parent-segment\x20<name>',a2_0x29f913(0x23d))[a2_0x29f913(0x34e)](a2_0x29f913(0x13c),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x29f913(0x1af)]({'formatHelp':(_0x3cbc67,_0x4c05f8)=>{const _0x4ef77b=a2_0x29f913,_0x366635=_0x4c05f8[_0x4ef77b(0x180)](_0x3cbc67,_0x4c05f8),_0x4a24eb=0x2,_0x590126=0x2;function _0x32611a(_0x24eef4){const _0x36ba5d=_0x4ef77b,_0x3b06cb=_0x24eef4;return!!(_0x3b06cb[_0x36ba5d(0x173)]||_0x3b06cb[_0x36ba5d(0x340)]);}function _0x72ec91(_0x3b7e2c,_0x916926){const _0x4b5d57=_0x4ef77b;if(_0x916926){const _0x316b7e=''+_0x3b7e2c[_0x4b5d57(0x12b)](_0x366635+_0x590126)+_0x916926;return _0x316b7e;}return _0x3b7e2c;}function _0x5e249f(_0x4952a2){const _0x1d2132=_0x4ef77b;return _0x4952a2[_0x1d2132(0x15a)]('\x0a')[_0x1d2132(0x2ef)](/^/gm,'\x20'[_0x1d2132(0x2c0)](_0x4a24eb));}const _0x5a6f37=[];_0x5a6f37['push'](_0x4ef77b(0x285)+_0x4c05f8[_0x4ef77b(0x327)](_0x3cbc67));const _0x48731c=_0x4c05f8[_0x4ef77b(0x2a8)](_0x3cbc67);_0x48731c&&(_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x48731c));const _0x489fa7=_0x3cbc67[_0x4ef77b(0x38c)][_0x4ef77b(0x260)](_0x28ed5b=>!_0x32611a(_0x28ed5b));if(_0x489fa7['length']>0x0){if(_0x3cbc67['name']()===_0x4ef77b(0x2ad)){const _0x232879=_0x3cbc67[_0x4ef77b(0x165)](),_0x1d9a98=!_0x232879['noColor']&&process[_0x4ef77b(0x1f1)][_0x4ef77b(0x156)],_0x194892=COMMAND_CATEGORIES,_0xca8036=(_0x2b842b,_0x42ece6)=>_0x1d9a98?_0x42ece6(_0x2b842b):_0x2b842b,_0x22f753=new Map();_0x489fa7[_0x4ef77b(0x273)](_0xe04428=>{const _0x2e8a7f=_0x4ef77b;_0x22f753['set'](_0xe04428[_0x2e8a7f(0x238)](),_0xe04428);}),_0x194892[_0x4ef77b(0x273)](_0xf88bf6=>{const _0x391ae1=_0x4ef77b,_0x4a3b07=_0xf88bf6[_0x391ae1(0x38c)]['flatMap'](_0x41a179=>_0x22f753[_0x391ae1(0x140)](_0x41a179)??[]);if(_0x4a3b07['length']>0x0){_0x5a6f37[_0x391ae1(0x25d)](''),_0x5a6f37[_0x391ae1(0x25d)](_0xca8036(_0xf88bf6[_0x391ae1(0x238)]+':',_0xf88bf6[_0x391ae1(0x30f)]));const _0x1bf5cc=_0x4a3b07[_0x391ae1(0x2d9)](_0x3c405d=>{const _0x55f542=_0x391ae1,_0x3533d2=_0x4c05f8[_0x55f542(0x220)](_0x3c405d),_0x1ee245=_0x4c05f8[_0x55f542(0x135)](_0x3c405d);return _0x72ec91(_0x3533d2,_0x1ee245);});_0x5a6f37[_0x391ae1(0x25d)](_0x5e249f(_0x1bf5cc));}}),_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)]('Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22');}else{const _0x16c04f=_0x489fa7['map'](_0x30989b=>{const _0x24b58a=_0x4ef77b,_0x3a8ad1=_0x4c05f8[_0x24b58a(0x220)](_0x30989b),_0x5f1d30=_0x4c05f8[_0x24b58a(0x135)](_0x30989b);return _0x72ec91(_0x3a8ad1,_0x5f1d30);});_0x5a6f37['push'](''),_0x5a6f37['push'](_0x4ef77b(0x38a)),_0x5a6f37[_0x4ef77b(0x25d)](_0x5e249f(_0x16c04f));}}if(showBriefHelp&&_0x3cbc67[_0x4ef77b(0x238)]()==='tdx')_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x4ef77b(0x377));else{const _0xb45a5a=_0x3cbc67[_0x4ef77b(0x1d9)][_0x4ef77b(0x260)](_0x2ed3f7=>!_0x32611a(_0x2ed3f7));if(_0xb45a5a['length']>0x0){const _0x4632d5=_0xb45a5a[_0x4ef77b(0x2d9)](_0x23d0fe=>{const _0x425d62=_0x4ef77b,_0x55f91a=_0x4c05f8['optionTerm'](_0x23d0fe),_0x1d5d5e=_0x4c05f8[_0x425d62(0x256)](_0x23d0fe);return _0x72ec91(_0x55f91a,_0x1d5d5e);});_0x5a6f37['push'](''),_0x5a6f37[_0x4ef77b(0x25d)](_0x4ef77b(0x294)),_0x5a6f37['push'](_0x5e249f(_0x4632d5));}}const _0x3da5a4=(_0x3cbc67['registeredArguments']||[])['filter'](_0x1198bb=>!_0x32611a(_0x1198bb));if(_0x3da5a4['length']>0x0){const _0x4270ff=_0x3da5a4[_0x4ef77b(0x2d9)](_0x5578d5=>{const _0x37500f=_0x4c05f8['argumentTerm'](_0x5578d5),_0x2c2ca5=_0x4c05f8['argumentDescription'](_0x5578d5);return _0x72ec91(_0x37500f,_0x2c2ca5);});_0x5a6f37[_0x4ef77b(0x25d)](''),_0x5a6f37[_0x4ef77b(0x25d)]('Arguments:'),_0x5a6f37[_0x4ef77b(0x25d)](_0x5e249f(_0x4270ff));}return _0x5a6f37['join']('\x0a')+'\x0a';},'subcommandTerm':_0x53ea11=>{const _0x38207a=a2_0x29f913,_0x5b7e03=(_0x53ea11[_0x38207a(0x346)]||[])[_0x38207a(0x2d9)](_0x43e987=>_0x43e987['required']?'<'+_0x43e987[_0x38207a(0x238)]()+'>':'['+_0x43e987['name']()+']')[_0x38207a(0x15a)]('\x20'),_0x398644=_0x53ea11[_0x38207a(0x179)](),_0x5f36d5=_0x398644[_0x38207a(0x351)]>0x0?_0x53ea11[_0x38207a(0x238)]()+',\x20'+_0x398644[_0x38207a(0x15a)](',\x20'):_0x53ea11[_0x38207a(0x238)]();return _0x5b7e03?_0x5f36d5+'\x20'+_0x5b7e03:_0x5f36d5;}}),program[a2_0x29f913(0x288)](a2_0x29f913(0x20e),_0x37edc2=>{const _0x38c3e4=a2_0x29f913,_0x2b10f5=_0x37edc2[_0x38c3e4(0x165)]();if(_0x2b10f5[_0x38c3e4(0x158)]){const _0x4e068e=resolve(_0x2b10f5[_0x38c3e4(0x158)]),_0x31d0e0=_0x4e068e!==_0x2b10f5[_0x38c3e4(0x158)]?'\x20(resolved\x20to\x20'+_0x4e068e+')':'';if(!existsSync(_0x4e068e))throw new SDKError(ErrorCode[_0x38c3e4(0x2a9)],_0x38c3e4(0x21d)+_0x2b10f5[_0x38c3e4(0x158)]+_0x31d0e0,undefined,{'helpText':_0x38c3e4(0x29b)});const _0x58805a=statSync(_0x4e068e);if(!_0x58805a[_0x38c3e4(0x16f)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x38c3e4(0x265)+_0x2b10f5[_0x38c3e4(0x158)]+_0x31d0e0,undefined,{'helpText':_0x38c3e4(0x34f)});process[_0x38c3e4(0x2af)](_0x4e068e);}if(!_0x2b10f5[_0x38c3e4(0x371)]){if(_0x2b10f5[_0x38c3e4(0x1f3)])_0x2b10f5[_0x38c3e4(0x371)]=_0x38c3e4(0x1f3);else{if(_0x2b10f5[_0x38c3e4(0x185)])_0x2b10f5['format']='json';else{if(_0x2b10f5[_0x38c3e4(0x1f7)])_0x2b10f5[_0x38c3e4(0x371)]='jsonl';else _0x2b10f5[_0x38c3e4(0x379)]&&(_0x2b10f5[_0x38c3e4(0x371)]='tsv');}}}_0x2b10f5['in']&&!_0x2b10f5[_0x38c3e4(0x189)]&&(_0x2b10f5[_0x38c3e4(0x189)]=_0x2b10f5['in']);if(_0x2b10f5[_0x38c3e4(0x293)])_0x2b10f5['logLevel']=LogLevel[_0x38c3e4(0x2e9)];else{if(_0x2b10f5[_0x38c3e4(0x23a)])_0x2b10f5[_0x38c3e4(0x1b0)]=LogLevel[_0x38c3e4(0x364)];else _0x2b10f5[_0x38c3e4(0x1b0)]===undefined&&(_0x2b10f5[_0x38c3e4(0x1b0)]=LogLevel[_0x38c3e4(0x154)]);}});async function createTDXInstance(_0x249612){const _0x40ffe3=a2_0x29f913,_0x3f2188=await GlobalContext[_0x40ffe3(0x23b)](_0x249612);return _0x3f2188[_0x40ffe3(0x25b)](_0x249612),TDX[_0x40ffe3(0x2a4)]({'site':_0x3f2188[_0x40ffe3(0x181)],'apiKey':_0x3f2188[_0x40ffe3(0x116)],'logLevel':_0x3f2188[_0x40ffe3(0x1b0)],'profile':_0x3f2188[_0x40ffe3(0x22f)]});}const databaseCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x189))['alias']('db')[a2_0x29f913(0x29c)](a2_0x29f913(0x30a)),databaseListAction=async(_0x24b6a5,_0x52a3ce)=>{const _0x20c912=a2_0x29f913,_0x44b97d=new DatabasesCommand(),_0x42eb42=program[_0x20c912(0x165)](),_0x4fcbc0=await createTDXInstance(_0x42eb42),_0x34d842=await _0x44b97d[_0x20c912(0x251)]({'options':{..._0x42eb42,..._0x52a3ce},'args':_0x24b6a5?[_0x24b6a5]:[],'tdx':_0x4fcbc0});gracefulExit(_0x34d842);};databaseCmd['command']('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2b7))[a2_0x29f913(0x275)](databaseListAction),program[a2_0x29f913(0x1bf)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x2c3))[a2_0x29f913(0x275)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1a9))[a2_0x29f913(0x34e)](a2_0x29f913(0x155),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x29f913(0x34e)](a2_0x29f913(0x184),a2_0x29f913(0x2e8))[a2_0x29f913(0x34e)](a2_0x29f913(0x191),a2_0x29f913(0x359))[a2_0x29f913(0x34e)](a2_0x29f913(0x333),'Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x29f913(0x275)](async(_0x138b4f,_0x403ccc)=>{const _0x354acd=a2_0x29f913,_0x5de464=program[_0x354acd(0x165)](),_0x117eec=await createTDXInstance(_0x5de464);if(_0x138b4f[0x0]===_0x354acd(0x2a4)){const _0x32f29c=new ChatCreateCommand();gracefulExit(await _0x32f29c['run']({'options':{..._0x5de464,..._0x403ccc},'args':_0x138b4f[_0x354acd(0x36d)](0x1),'tdx':_0x117eec}));return;}const _0x5ce2c2=new ChatCommand(),_0xa4e11e=await _0x5ce2c2[_0x354acd(0x251)]({'options':{..._0x5de464,..._0x403ccc},'args':_0x138b4f,'tdx':_0x117eec});gracefulExit(_0xa4e11e);});const apiCmd=program['command'](a2_0x29f913(0x326))[a2_0x29f913(0x299)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')['addHelpText'](a2_0x29f913(0x1ba),'\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_0x29f913(0x34e)](a2_0x29f913(0x1e3),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x29f913(0x1d8))[a2_0x29f913(0x34e)](a2_0x29f913(0x19f),a2_0x29f913(0x1f5))['option']('-f,\x20--file\x20<path>','Read\x20request\x20body\x20from\x20file')['option']('-H,\x20--header\x20<header>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)',(_0x215fe9,_0x2e37f7)=>{return _0x2e37f7?[..._0x2e37f7,_0x215fe9]:[_0x215fe9];})[a2_0x29f913(0x34e)](a2_0x29f913(0x37b),a2_0x29f913(0x33c),'td')['action'](async(_0x422fff,_0x36280f)=>{const _0x5d6e03=a2_0x29f913;if(!_0x422fff){apiCmd[_0x5d6e03(0x349)]();return;}const _0x5a4c50=new ApiCommand(),_0x2fde76=program['opts'](),_0x1181bd=await createTDXInstance(_0x2fde76),_0x4f0e71=await _0x5a4c50[_0x5d6e03(0x251)]({'options':{..._0x2fde76,..._0x36280f},'args':[_0x422fff],'tdx':_0x1181bd});gracefulExit(_0x4f0e71);});program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1dc))['description']('Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration')['addHelpText'](a2_0x29f913(0x1ba),a2_0x29f913(0x1fa))[a2_0x29f913(0x275)](async _0x23bae1=>{const _0x3296b7=a2_0x29f913,_0x334378=new MCPCommand(),_0x207c78=program[_0x3296b7(0x165)](),_0x520d73=await createTDXInstance(_0x207c78),_0x4e7ee8=await _0x334378['run']({'options':{..._0x207c78,..._0x23bae1},'args':[],'tdx':_0x520d73});gracefulExit(_0x4e7ee8);});const tableCmd=program['command'](a2_0x29f913(0x1f3))[a2_0x29f913(0x29c)]('Table\x20management\x20commands'),tableListAction=async(_0x570ddc,_0x153154)=>{const _0x560ee1=a2_0x29f913,_0x53a7ce=new TablesCommand(),_0x45bf99=program[_0x560ee1(0x165)](),_0x426062=await createTDXInstance(_0x45bf99);_0x153154['in']&&(_0x153154[_0x560ee1(0x189)]=_0x153154['in']);const _0x364e21=await _0x53a7ce['run']({'options':{..._0x45bf99,..._0x153154},'args':_0x570ddc?[_0x570ddc]:[],'tdx':_0x426062});gracefulExit(_0x364e21);};tableCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e0))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x247))[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program['command'](a2_0x29f913(0x395),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x1fd))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x247))[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),a2_0x29f913(0x302))['action'](tableListAction),program['command'](a2_0x29f913(0x118))[a2_0x29f913(0x29c)](a2_0x29f913(0x2ff))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),a2_0x29f913(0x1e2))['option']('--in\x20<database>',a2_0x29f913(0x302))[a2_0x29f913(0x275)](async(_0x4c8162,_0x51f433)=>{const _0x51b988=a2_0x29f913,_0x51c51e=new ShowCommand(),_0x409b43=program['opts'](),_0x18fd18=await createTDXInstance(_0x409b43);_0x51f433['in']&&(_0x51f433[_0x51b988(0x189)]=_0x51f433['in']);const _0x4fb4b5=await _0x51c51e[_0x51b988(0x251)]({'options':{..._0x409b43,..._0x51f433},'args':_0x4c8162?[_0x4c8162]:[],'tdx':_0x18fd18});gracefulExit(_0x4fb4b5);}),program['command'](a2_0x29f913(0x287))[a2_0x29f913(0x2e6)](a2_0x29f913(0x17e))[a2_0x29f913(0x29c)]('Describe\x20table\x20schema')[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),a2_0x29f913(0x302))[a2_0x29f913(0x275)](async(_0x4bda25,_0x3b3b8b)=>{const _0x4daf47=a2_0x29f913,_0x2be5c5=new DescribeCommand(),_0x527284=program['opts'](),_0x824c46=await createTDXInstance(_0x527284);_0x3b3b8b['in']&&(_0x3b3b8b[_0x4daf47(0x189)]=_0x3b3b8b['in']);const _0x9fbf85=await _0x2be5c5[_0x4daf47(0x251)]({'options':{..._0x527284,..._0x3b3b8b},'args':_0x4bda25?[_0x4bda25]:[],'tdx':_0x824c46});gracefulExit(_0x9fbf85);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x35f))[a2_0x29f913(0x29c)](a2_0x29f913(0x13d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e4),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2fa),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x29f913(0x28f),a2_0x29f913(0x296))[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),'Read\x20SQL\x20query\x20from\x20file')[a2_0x29f913(0x34e)](a2_0x29f913(0x148),a2_0x29f913(0x26e),'40')[a2_0x29f913(0x275)](async(_0x9142d6,_0x3f814a)=>{const _0x13ccc1=a2_0x29f913,_0x13d998=new QueryCommand(),_0xe05d6=program[_0x13ccc1(0x165)](),_0x2717a3=await createTDXInstance(_0xe05d6);_0x3f814a['in']&&(_0x3f814a[_0x13ccc1(0x189)]=_0x3f814a['in']);const _0x2dbe0c=await _0x13d998['run']({'options':{..._0xe05d6,..._0x3f814a},'args':_0x9142d6?[_0x9142d6]:[],'tdx':_0x2717a3});gracefulExit(_0x2dbe0c);});const segmentCmd=program[a2_0x29f913(0x1bf)]('segment')[a2_0x29f913(0x2e6)]('sg')['description'](a2_0x29f913(0x1c3)),segmentListAction=async(_0x1e4dfe,_0x43721a)=>{const _0x13a0ee=a2_0x29f913,_0x204e97=new SegmentsCommand(),_0x23aebc=program[_0x13a0ee(0x165)](),_0x782633=await createTDXInstance(_0x23aebc),_0x290e2c=await _0x204e97[_0x13a0ee(0x251)]({'options':{..._0x23aebc,..._0x43721a},'args':_0x1e4dfe?[_0x1e4dfe]:[],'tdx':_0x782633});gracefulExit(_0x290e2c);};segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2f7))[a2_0x29f913(0x29c)](a2_0x29f913(0x2f6))[a2_0x29f913(0x34e)](a2_0x29f913(0x261),a2_0x29f913(0x2f1))[a2_0x29f913(0x34e)](a2_0x29f913(0x195),a2_0x29f913(0x301),'10')[a2_0x29f913(0x275)](segmentListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x28b),{'hidden':!![]})[a2_0x29f913(0x29c)]('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x29f913(0x34e)]('-r,\x20--recursive',a2_0x29f913(0x2f1))['option'](a2_0x29f913(0x195),a2_0x29f913(0x301),'10')[a2_0x29f913(0x275)](segmentListAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x15d),{'hidden':!![]})[a2_0x29f913(0x29c)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')['action'](async(_0x13a2b0,_0x5d4abc)=>{const _0x812fc2=a2_0x29f913,_0x52c478=new SegmentUseCommand(),_0x31a073=program[_0x812fc2(0x165)](),_0x37dc74=await createTDXInstance(_0x31a073),_0x409613=await _0x52c478[_0x812fc2(0x251)]({'options':{..._0x31a073,..._0x5d4abc},'args':[_0x13a2b0],'tdx':_0x37dc74});gracefulExit(_0x409613);});const segmentViewAction=async(_0x167a43,_0x3a6257)=>{const _0x543ad5=a2_0x29f913,_0x438b36=new SegmentViewCommand(),_0x28dd0c=program['opts'](),_0x54cbfe=await createTDXInstance(_0x28dd0c),_0x3b21e1=await _0x438b36[_0x543ad5(0x251)]({'options':{..._0x28dd0c,..._0x3a6257},'args':_0x167a43?[_0x167a43]:[],'tdx':_0x54cbfe});gracefulExit(_0x3b21e1);};segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38f))['description'](a2_0x29f913(0x119))[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),a2_0x29f913(0x36e))[a2_0x29f913(0x275)](segmentViewAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x243),{'hidden':!![]})['alias'](a2_0x29f913(0x22c))[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),a2_0x29f913(0x36e))[a2_0x29f913(0x29c)](a2_0x29f913(0x19d))[a2_0x29f913(0x275)](segmentViewAction),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x368))['description'](a2_0x29f913(0x206))[a2_0x29f913(0x275)](async(_0x3bdc14,_0x556a9d)=>{const _0x3517c2=a2_0x29f913,_0x2e8e00=new SegmentDescCommand(),_0x207543=program[_0x3517c2(0x165)](),_0x20e896=await createTDXInstance(_0x207543),_0x5ca064=await _0x2e8e00[_0x3517c2(0x251)]({'options':{..._0x207543,..._0x556a9d},'args':_0x3bdc14?[_0x3bdc14]:[],'tdx':_0x20e896});gracefulExit(_0x5ca064);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x373))['description'](a2_0x29f913(0x384))[a2_0x29f913(0x275)](async(_0x29cdc8,_0x593e7d)=>{const _0x5be756=a2_0x29f913,_0x3439ee=new SegmentShowCommand(),_0x400fb0=program['opts'](),_0x12184d=await createTDXInstance(_0x400fb0),_0x1852ed=await _0x3439ee[_0x5be756(0x251)]({'options':{..._0x400fb0,..._0x593e7d},'args':_0x29cdc8?[_0x29cdc8]:[],'tdx':_0x12184d});gracefulExit(_0x1852ed);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x36b),{'hidden':!![]})[a2_0x29f913(0x29c)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x29f913(0x275)](async(_0x41c12d,_0x3b969b)=>{const _0x4fc361=a2_0x29f913,_0x3cf124=new SegmentFolderListCommand(),_0x2b4c91=program['opts'](),_0x19843e=await createTDXInstance(_0x2b4c91),_0x395c68=await _0x3cf124[_0x4fc361(0x251)]({'options':{..._0x2b4c91,..._0x3b969b},'args':[_0x41c12d],'tdx':_0x19843e});gracefulExit(_0x395c68);});const folderCmd=segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d8),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x2f9));folderCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a8))[a2_0x29f913(0x29c)](a2_0x29f913(0x350))['action'](async(_0x155b7e,_0x31bc23)=>{const _0x11ae8d=a2_0x29f913,_0x2e5ed1=new SegmentFolderShowCommand(),_0x3a71f6=program['opts'](),_0x2a0159=await createTDXInstance(_0x3a71f6),_0x11baa0=await _0x2e5ed1[_0x11ae8d(0x251)]({'options':{..._0x3a71f6,..._0x31bc23},'args':[_0x155b7e],'tdx':_0x2a0159});gracefulExit(_0x11baa0);}),segmentCmd[a2_0x29f913(0x1bf)]('sql\x20[segment_name]')[a2_0x29f913(0x29c)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')[a2_0x29f913(0x275)](async(_0x325cc5,_0xe9a4c0)=>{const _0x1d9a54=a2_0x29f913,_0x2c512d=new SegmentSQLCommand(),_0x4e691a=program[_0x1d9a54(0x165)](),_0x59e73b=await createTDXInstance(_0x4e691a),_0x54c6dd=await _0x2c512d[_0x1d9a54(0x251)]({'options':{..._0x4e691a,..._0xe9a4c0},'args':_0x325cc5?[_0x325cc5]:[],'tdx':_0x59e73b});gracefulExit(_0x54c6dd);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1c1))[a2_0x29f913(0x29c)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')['action'](async(_0x31bbc3,_0x393edb)=>{const _0x4470d3=a2_0x29f913,_0x56fd74=new SegmentFieldsCommand(),_0x27ae2c=program[_0x4470d3(0x165)](),_0x1d10b1=await createTDXInstance(_0x27ae2c),_0xce49d8=await _0x56fd74[_0x4470d3(0x251)]({'options':{..._0x27ae2c,..._0x393edb},'args':_0x31bbc3?[_0x31bbc3]:[],'tdx':_0x1d10b1});gracefulExit(_0xce49d8);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x385))[a2_0x29f913(0x29c)](a2_0x29f913(0x163))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x27e))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x228))[a2_0x29f913(0x275)](async(_0x570bce,_0x2d96e3)=>{const _0x430470=a2_0x29f913,_0x1039f1=new SegmentPullCommand(),_0x181e79=program['opts'](),_0xf7b337=await createTDXInstance(_0x181e79),_0x25464d=await _0x1039f1[_0x430470(0x251)]({'options':{..._0x181e79,..._0x2d96e3},'args':_0x570bce?[_0x570bce]:[],'tdx':_0xf7b337});gracefulExit(_0x25464d);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f0))['description'](a2_0x29f913(0x30c))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompts')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x228))[a2_0x29f913(0x34e)](a2_0x29f913(0x1dd),'Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')['action'](async(_0x57e08c,_0x536f1e)=>{const _0x281cd8=a2_0x29f913,_0x218b90=new SegmentPushCommand(),_0x184e5b=program[_0x281cd8(0x165)](),_0x20295=await createTDXInstance(_0x184e5b),_0x5000e4=await _0x218b90['run']({'options':{..._0x184e5b,..._0x536f1e},'args':_0x57e08c?[_0x57e08c]:[],'tdx':_0x20295});gracefulExit(_0x5000e4);}),segmentCmd[a2_0x29f913(0x1bf)]('validate\x20[target]')[a2_0x29f913(0x29c)](a2_0x29f913(0x14f))[a2_0x29f913(0x275)](async(_0x240124,_0x494690)=>{const _0x3e51d8=a2_0x29f913,_0x10644f=new SegmentValidateCommand(),_0xc74547=program['opts'](),_0x587090=await createTDXInstance(_0xc74547),_0x466e5b=await _0x10644f[_0x3e51d8(0x251)]({'options':{..._0xc74547,..._0x494690},'args':_0x240124?[_0x240124]:[],'tdx':_0x587090});gracefulExit(_0x466e5b);}),segmentCmd['command'](a2_0x29f913(0x253),{'hidden':!![]})['description'](a2_0x29f913(0x236))['option'](a2_0x29f913(0x24f),a2_0x29f913(0x24e))[a2_0x29f913(0x34e)](a2_0x29f913(0x272),a2_0x29f913(0x131))[a2_0x29f913(0x34e)](a2_0x29f913(0x217),'Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x29f913(0x34e)]('--folder\x20<name>',a2_0x29f913(0x27c))['option'](a2_0x29f913(0x11d),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x29f913(0x34e)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x29f913(0x34e)](a2_0x29f913(0x324),a2_0x29f913(0x341))[a2_0x29f913(0x275)](async(_0x328231,_0x2b49b8)=>{const _0x1923f4=a2_0x29f913,_0xdacd84=new SegmentCreateCommand(),_0x519f28=program[_0x1923f4(0x165)](),_0x1067fe=await createTDXInstance(_0x519f28),_0x248589=await _0xdacd84[_0x1923f4(0x251)]({'options':{..._0x519f28,..._0x2b49b8},'args':[_0x328231],'tdx':_0x1067fe});gracefulExit(_0x248589);}),segmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a3),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x245))[a2_0x29f913(0x34e)]('--name\x20<new_name>','New\x20segment\x20name')['option']('--description\x20<text>',a2_0x29f913(0x21f))[a2_0x29f913(0x34e)]('--rule\x20<json>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string')['option'](a2_0x29f913(0x217),a2_0x29f913(0x12c))[a2_0x29f913(0x34e)](a2_0x29f913(0x2cf),a2_0x29f913(0x1a6))['option']('--kind\x20<type>',a2_0x29f913(0x169))[a2_0x29f913(0x275)](async(_0xb8293c,_0x25de03)=>{const _0xec535c=a2_0x29f913,_0x2adca8=new SegmentUpdateCommand(),_0x58745c=program[_0xec535c(0x165)](),_0x3e2f93=await createTDXInstance(_0x58745c),_0x5c10d5=await _0x2adca8[_0xec535c(0x251)]({'options':{..._0x58745c,..._0x25de03},'args':[_0xb8293c],'tdx':_0x3e2f93});gracefulExit(_0x5c10d5);});const parentCmd=segmentCmd[a2_0x29f913(0x1bf)]('parent',{'hidden':!![]})['description'](a2_0x29f913(0x11f)),parentListAction=async(_0x8242da,_0x25af28)=>{const _0x593386=a2_0x29f913,_0x48f286=new ParentSegmentListCommand(),_0x27ac65=program[_0x593386(0x165)](),_0x20d0f7=await createTDXInstance(_0x27ac65),_0x5cc8fe=await _0x48f286[_0x593386(0x251)]({'options':{..._0x27ac65,..._0x25af28},'args':_0x8242da?[_0x8242da]:[],'tdx':_0x20d0f7});gracefulExit(_0x5cc8fe);};parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e4))[a2_0x29f913(0x275)](parentListAction),segmentCmd['command'](a2_0x29f913(0x27b),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x398))[a2_0x29f913(0x275)](parentListAction),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))['description'](a2_0x29f913(0x162))[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x2c6))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](async(_0x8e6744,_0xc91f3)=>{const _0x14f8c6=a2_0x29f913,_0x16fbff=new ParentSegmentPullCommand(),_0x4bca75=program[_0x14f8c6(0x165)](),_0x3d2ab9=await createTDXInstance(_0x4bca75),_0x208fc8=await _0x16fbff[_0x14f8c6(0x251)]({'options':{..._0x4bca75,..._0xc91f3},'args':_0x8e6744?[_0x8e6744]:[],'tdx':_0x3d2ab9});gracefulExit(_0x208fc8);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x15b))['description'](a2_0x29f913(0x353))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x3ce696,_0x143403)=>{const _0xcd4427=a2_0x29f913,_0x50cebb=new ParentSegmentPushCommand(),_0x327773=program[_0xcd4427(0x165)](),_0x54ba14=await createTDXInstance(_0x327773),_0x407acb=await _0x50cebb[_0xcd4427(0x251)]({'options':{..._0x327773,..._0x143403},'args':_0x3ce696?[_0x3ce696]:[],'tdx':_0x54ba14});gracefulExit(_0x407acb);}),parentCmd[a2_0x29f913(0x1bf)]('validate\x20[file]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2bc))['option'](a2_0x29f913(0x32a),'Show\x20only\x20master\x20table\x20validation')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x29f913(0x34e)]('--behavior\x20[name]',a2_0x29f913(0x225))['option'](a2_0x29f913(0x390),a2_0x29f913(0x23f))[a2_0x29f913(0x34e)](a2_0x29f913(0x126),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x29f913(0x235))[a2_0x29f913(0x275)](async(_0x48e629,_0x1114dd)=>{const _0x1fd3c1=a2_0x29f913,_0x4ce2ba=new ParentSegmentValidateCommand(),_0x4a71f9=program[_0x1fd3c1(0x165)](),_0x37bd9a=await createTDXInstance(_0x4a71f9),_0x3bf817=await _0x4ce2ba[_0x1fd3c1(0x251)]({'options':{..._0x4a71f9,..._0x1114dd},'args':_0x48e629?[_0x48e629]:[],'tdx':_0x37bd9a});gracefulExit(_0x3bf817);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1d5))[a2_0x29f913(0x29c)](a2_0x29f913(0x378))[a2_0x29f913(0x34e)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),a2_0x29f913(0x24c))[a2_0x29f913(0x34e)]('--behavior\x20[name]','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x29f913(0x34e)]('--enriched',a2_0x29f913(0x306))[a2_0x29f913(0x34e)](a2_0x29f913(0x126),a2_0x29f913(0x20b),a2_0x29f913(0x235))['action'](async(_0x53fde4,_0x4cd60b)=>{const _0x1e87c7=a2_0x29f913,_0x3a7dda=new ParentSegmentPreviewCommand(),_0x12cad0=program[_0x1e87c7(0x165)](),_0x1511c8=await createTDXInstance(_0x12cad0),_0x58a6f6=await _0x3a7dda[_0x1e87c7(0x251)]({'options':{..._0x12cad0,..._0x4cd60b},'args':_0x53fde4?[_0x53fde4]:[],'tdx':_0x1511c8});gracefulExit(_0x58a6f6);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d5))[a2_0x29f913(0x29c)](a2_0x29f913(0x29a))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x5928bb,_0x285cfe)=>{const _0x189b2b=a2_0x29f913,_0x525be3=new ParentSegmentRunCommand(),_0x1a8cbe=program[_0x189b2b(0x165)](),_0x47fab2=await createTDXInstance(_0x1a8cbe),_0x354b4c=await _0x525be3['run']({'options':{..._0x1a8cbe,..._0x285cfe},'args':_0x5928bb?[_0x5928bb]:[],'tdx':_0x47fab2});gracefulExit(_0x354b4c);});const parentSegmentCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x142))['alias']('ps')[a2_0x29f913(0x29c)](a2_0x29f913(0x387));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1e4))['action'](parentListAction),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))[a2_0x29f913(0x29c)](a2_0x29f913(0x252))[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x246))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))['option'](a2_0x29f913(0x31c),a2_0x29f913(0x2fb))[a2_0x29f913(0x275)](async(_0x33c11f,_0x30ae54)=>{const _0x3e8336=a2_0x29f913,_0x362497=new ParentSegmentPullCommand(),_0x56d810=program[_0x3e8336(0x165)](),_0x24bee4=await createTDXInstance(_0x56d810),_0xcc6973=await _0x362497[_0x3e8336(0x251)]({'options':{..._0x56d810,..._0x30ae54},'args':_0x33c11f?[_0x33c11f]:[],'tdx':_0x24bee4});gracefulExit(_0xcc6973);}),parentSegmentCmd[a2_0x29f913(0x1bf)]('push\x20[name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1ef))[a2_0x29f913(0x34e)]('-y,\x20--yes',a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x178b4e,_0x3fdd98)=>{const _0x4abb38=new ParentSegmentPushCommand(),_0x4abf06=program['opts'](),_0xbc6c3d=await createTDXInstance(_0x4abf06),_0x3a1cfe=await _0x4abb38['run']({'options':{..._0x4abf06,..._0x3fdd98},'args':_0x178b4e?[_0x178b4e]:[],'tdx':_0xbc6c3d});gracefulExit(_0x3a1cfe);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)](a2_0x29f913(0x2bc))[a2_0x29f913(0x34e)](a2_0x29f913(0x32a),'Show\x20only\x20master\x20table\x20validation')[a2_0x29f913(0x34e)](a2_0x29f913(0x330),a2_0x29f913(0x1f4))['option']('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x29f913(0x34e)](a2_0x29f913(0x390),a2_0x29f913(0x23f))[a2_0x29f913(0x34e)]('--interval\x20<range>',a2_0x29f913(0x20b),a2_0x29f913(0x235))['action'](async(_0x3ae3f7,_0x269978)=>{const _0x5e6e97=a2_0x29f913,_0x574c66=new ParentSegmentValidateCommand(),_0x2bc903=program[_0x5e6e97(0x165)](),_0x5dcdcc=await createTDXInstance(_0x2bc903),_0x25c09e=await _0x574c66[_0x5e6e97(0x251)]({'options':{..._0x2bc903,..._0x269978},'args':_0x3ae3f7?[_0x3ae3f7]:[],'tdx':_0x5dcdcc});gracefulExit(_0x25c09e);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c1))[a2_0x29f913(0x29c)](a2_0x29f913(0x378))['option'](a2_0x29f913(0x32a),'Show\x20master\x20table\x20sample\x20data')['option'](a2_0x29f913(0x330),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x29f913(0x34e)](a2_0x29f913(0x144),a2_0x29f913(0x1fc))[a2_0x29f913(0x34e)](a2_0x29f913(0x390),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x29f913(0x126),a2_0x29f913(0x20b),'-1d')[a2_0x29f913(0x275)](async(_0x8e1e55,_0x29d487)=>{const _0x524e8f=a2_0x29f913,_0xf9ca3f=new ParentSegmentPreviewCommand(),_0x53aadc=program['opts'](),_0xa18caf=await createTDXInstance(_0x53aadc),_0x5b83ba=await _0xf9ca3f[_0x524e8f(0x251)]({'options':{..._0x53aadc,..._0x29d487},'args':_0x8e1e55?[_0x8e1e55]:[],'tdx':_0xa18caf});gracefulExit(_0x5b83ba);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d5))['description'](a2_0x29f913(0x29a))['option'](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x464745,_0x1c5f2d)=>{const _0x5befb0=a2_0x29f913,_0x19659a=new ParentSegmentRunCommand(),_0x1667d5=program[_0x5befb0(0x165)](),_0x4813a9=await createTDXInstance(_0x1667d5),_0x4262b6=await _0x19659a[_0x5befb0(0x251)]({'options':{..._0x1667d5,..._0x1c5f2d},'args':_0x464745?[_0x464745]:[],'tdx':_0x4813a9});gracefulExit(_0x4262b6);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x291))['description'](a2_0x29f913(0x242))[a2_0x29f913(0x34e)](a2_0x29f913(0x35a),a2_0x29f913(0x174))['option'](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))['action'](async(_0x2a7514,_0x430d31)=>{const _0x5722e6=a2_0x29f913,_0x1bec41=new ParentSegmentFieldsCommand(),_0x4326af=program[_0x5722e6(0x165)](),_0x2db2d3=await createTDXInstance(_0x4326af),_0x44a355=await _0x1bec41['run']({'options':{..._0x4326af,..._0x430d31},'args':_0x2a7514?[_0x2a7514]:[],'tdx':_0x2db2d3});gracefulExit(_0x44a355);}),parentSegmentCmd['command']('view\x20[name]')['description'](a2_0x29f913(0x139))['option']('-w,\x20--web',a2_0x29f913(0x11a))[a2_0x29f913(0x34e)](a2_0x29f913(0x35a),a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),'Output\x20as\x20JSON\x20Lines')[a2_0x29f913(0x275)](async(_0x3ea96c,_0x3c5306)=>{const _0x5800dc=a2_0x29f913,_0x5e4c50=new ParentSegmentViewCommand(),_0x521d59=program[_0x5800dc(0x165)](),_0x1bcffc=await createTDXInstance(_0x521d59),_0x6c89ec=await _0x5e4c50[_0x5800dc(0x251)]({'options':{..._0x521d59,..._0x3c5306},'args':_0x3ea96c?[_0x3ea96c]:[],'tdx':_0x1bcffc});gracefulExit(_0x6c89ec);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x230))[a2_0x29f913(0x29c)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x29f913(0x34e)](a2_0x29f913(0x394),a2_0x29f913(0x246))['option'](a2_0x29f913(0x35a),'Output\x20as\x20JSON')['option']('--jsonl',a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x3aed5,_0x567fc1)=>{const _0x482ae5=a2_0x29f913,_0x5caf9a=new ParentSegmentDescCommand(),_0x2c8776=program[_0x482ae5(0x165)](),_0x46d887=await createTDXInstance(_0x2c8776),_0x355625=await _0x5caf9a[_0x482ae5(0x251)]({'options':{..._0x2c8776,..._0x567fc1},'args':_0x3aed5?[_0x3aed5]:[],'tdx':_0x46d887});gracefulExit(_0x355625);}),parentSegmentCmd['command'](a2_0x29f913(0x1c2))['description'](a2_0x29f913(0x157))['option']('--json',a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x199be5,_0x2de040)=>{const _0x181c97=new ParentSegmentSQLCommand(),_0x4c7a84=program['opts'](),_0x3b14e1=await createTDXInstance(_0x4c7a84),_0x4b0801=await _0x181c97['run']({'options':{..._0x4c7a84,..._0x2de040},'args':_0x199be5?[_0x199be5]:[],'tdx':_0x3b14e1});gracefulExit(_0x4b0801);}),parentSegmentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x328))[a2_0x29f913(0x29c)](a2_0x29f913(0x362))['option']('--limit\x20<n>',a2_0x29f913(0x15f))[a2_0x29f913(0x34e)]('--json',a2_0x29f913(0x174))[a2_0x29f913(0x34e)](a2_0x29f913(0x23e),a2_0x29f913(0x1bd))[a2_0x29f913(0x275)](async(_0x59a220,_0x23f6b3)=>{const _0x2b4f7b=a2_0x29f913,_0x2c3bf5=new ParentSegmentShowCommand(),_0xccded9=program[_0x2b4f7b(0x165)](),_0x53309e=await createTDXInstance(_0xccded9),_0x1dc576=await _0x2c3bf5[_0x2b4f7b(0x251)]({'options':{..._0xccded9,..._0x23f6b3},'args':_0x59a220?[_0x59a220]:[],'tdx':_0x53309e});gracefulExit(_0x1dc576);}),parentSegmentCmd[a2_0x29f913(0x1bf)]('use\x20[name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x283))[a2_0x29f913(0x275)](async(_0x54fed6,_0x24e040)=>{const _0x4b0f1a=a2_0x29f913,_0x3603a1=new UseCommand(),_0x14be02=program['opts'](),_0x6af233=_0x54fed6?[_0x4b0f1a(0x2df),_0x54fed6]:[],_0x51eac8=await _0x3603a1['run']({'options':{..._0x14be02,..._0x24e040},'args':_0x6af233,'tdx':null});gracefulExit(_0x51eac8);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x29f913(0x29c)](a2_0x29f913(0x167));psRtCmd['command'](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')[a2_0x29f913(0x275)](async(_0x5f0a8c,_0x728b12)=>{const _0x492439=a2_0x29f913,_0x47a223=new PSRtListCommand(),_0x56f411=program[_0x492439(0x165)](),_0x54adca=await createTDXInstance(_0x56f411),_0x4772d3=await _0x47a223[_0x492439(0x251)]({'options':{..._0x56f411,..._0x728b12},'args':_0x5f0a8c?[_0x5f0a8c]:[],'tdx':_0x54adca});gracefulExit(_0x4772d3);}),psRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')[a2_0x29f913(0x275)](async(_0x4c5bc9,_0x3c4444)=>{const _0xc66ce2=a2_0x29f913,_0x1d05ff=new PSRtValidateCommand(),_0xaabff3=program[_0xc66ce2(0x165)](),_0x335541=await createTDXInstance(_0xaabff3),_0x445e53=await _0x1d05ff[_0xc66ce2(0x251)]({'options':{..._0xaabff3,..._0x3c4444},'args':_0x4c5bc9?[_0x4c5bc9]:[],'tdx':_0x335541});gracefulExit(_0x445e53);});const parentRtCmd=parentCmd[a2_0x29f913(0x1bf)]('rt',{'hidden':!![]})[a2_0x29f913(0x29c)]('RT\x202.0\x20configuration\x20management');parentRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x134))[a2_0x29f913(0x275)](async(_0x4344d9,_0x52f550)=>{const _0x14d00c=a2_0x29f913,_0x3336a7=new PSRtListCommand(),_0x87bac9=program['opts'](),_0x540daa=await createTDXInstance(_0x87bac9),_0x24392b=await _0x3336a7[_0x14d00c(0x251)]({'options':{..._0x87bac9,..._0x52f550},'args':_0x4344d9?[_0x4344d9]:[],'tdx':_0x540daa});gracefulExit(_0x24392b);}),parentRtCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ae))[a2_0x29f913(0x29c)]('Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML')['action'](async(_0x4a3e59,_0xef9167)=>{const _0x111c29=a2_0x29f913,_0x5077b2=new PSRtValidateCommand(),_0x23f53f=program[_0x111c29(0x165)](),_0x1a2551=await createTDXInstance(_0x23f53f),_0x227b75=await _0x5077b2[_0x111c29(0x251)]({'options':{..._0x23f53f,..._0xef9167},'args':_0x4a3e59?[_0x4a3e59]:[],'tdx':_0x1a2551});gracefulExit(_0x227b75);});const psPzCmd=parentSegmentCmd[a2_0x29f913(0x1bf)]('pz')['description'](a2_0x29f913(0x194));psPzCmd[a2_0x29f913(0x1bf)]('list\x20[name]')['description'](a2_0x29f913(0x320))[a2_0x29f913(0x275)](async(_0x4c141e,_0x41b855)=>{const _0x35062d=a2_0x29f913,_0x1db6a3=new PSPzListCommand(),_0x565a32=program[_0x35062d(0x165)](),_0x301557=await createTDXInstance(_0x565a32),_0x57ea00=await _0x1db6a3[_0x35062d(0x251)]({'options':{..._0x565a32,..._0x41b855},'args':_0x4c141e?[_0x4c141e]:[],'tdx':_0x301557});gracefulExit(_0x57ea00);}),psPzCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x229))[a2_0x29f913(0x29c)](a2_0x29f913(0x367))[a2_0x29f913(0x275)](async(_0x5c7654,_0x1a14f3)=>{const _0x41f702=a2_0x29f913,_0x5499c2=new PSPzInitCommand(),_0x4eeec6=program[_0x41f702(0x165)](),_0x57a38a=await createTDXInstance(_0x4eeec6),_0x580d0a=await _0x5499c2[_0x41f702(0x251)]({'options':{..._0x4eeec6,..._0x1a14f3},'args':_0x5c7654?[_0x5c7654]:[],'tdx':_0x57a38a});gracefulExit(_0x580d0a);});const parentPzCmd=parentCmd[a2_0x29f913(0x1bf)]('pz',{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x194));parentPzCmd['command'](a2_0x29f913(0x211))['description'](a2_0x29f913(0x320))['action'](async(_0x8a9bb2,_0x523634)=>{const _0x4d1591=a2_0x29f913,_0x5981b6=new PSPzListCommand(),_0x1293ab=program[_0x4d1591(0x165)](),_0x33807a=await createTDXInstance(_0x1293ab),_0x1c2ca1=await _0x5981b6[_0x4d1591(0x251)]({'options':{..._0x1293ab,..._0x523634},'args':_0x8a9bb2?[_0x8a9bb2]:[],'tdx':_0x33807a});gracefulExit(_0x1c2ca1);}),parentPzCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x229))[a2_0x29f913(0x29c)](a2_0x29f913(0x367))[a2_0x29f913(0x275)](async(_0x478985,_0xb8e19d)=>{const _0x3a35ac=a2_0x29f913,_0x120f49=new PSPzInitCommand(),_0x209b66=program[_0x3a35ac(0x165)](),_0x268e08=await createTDXInstance(_0x209b66),_0xac035f=await _0x120f49[_0x3a35ac(0x251)]({'options':{..._0x209b66,..._0xb8e19d},'args':_0x478985?[_0x478985]:[],'tdx':_0x268e08});gracefulExit(_0xac035f);}),parentCmd[a2_0x29f913(0x1bf)]('create\x20<name>')['description']('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['requiredOption'](a2_0x29f913(0x172),a2_0x29f913(0x2a5))['requiredOption'](a2_0x29f913(0x1e7),'Master\x20table\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Parent\x20segment\x20description')['option'](a2_0x29f913(0x1b9),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x29f913(0x18d),a2_0x29f913(0x2fe))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x22b))['option'](a2_0x29f913(0x35e),'Attributes\x20as\x20JSON\x20string')['option']('--attributes-file\x20<file>','Attributes\x20from\x20JSON\x20file')[a2_0x29f913(0x34e)](a2_0x29f913(0x1b2),a2_0x29f913(0x2ce))[a2_0x29f913(0x34e)](a2_0x29f913(0x2b3),a2_0x29f913(0x1ff))['option'](a2_0x29f913(0x307),a2_0x29f913(0x22d))['option']('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')[a2_0x29f913(0x275)](async(_0x37b91c,_0x225e9c)=>{const _0x18d89f=a2_0x29f913,_0x44ac49=new ParentSegmentCreateCommand(),_0x30171a=program[_0x18d89f(0x165)](),_0x31c60c=await createTDXInstance(_0x30171a),_0xa5e863=await _0x44ac49[_0x18d89f(0x251)]({'options':{..._0x30171a,..._0x225e9c},'args':[_0x37b91c],'tdx':_0x31c60c});gracefulExit(_0xa5e863);}),parentCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28a))[a2_0x29f913(0x29c)](a2_0x29f913(0x1d4))['option'](a2_0x29f913(0x24f),a2_0x29f913(0x21f))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b9),a2_0x29f913(0x264))[a2_0x29f913(0x34e)]('--schedule-option\x20<value>',a2_0x29f913(0x1ea))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x2ec))[a2_0x29f913(0x34e)]('--add-attributes\x20<json>',a2_0x29f913(0x1df))[a2_0x29f913(0x34e)](a2_0x29f913(0x1d3),a2_0x29f913(0x35c))['option'](a2_0x29f913(0x1d1),a2_0x29f913(0x26d))['option'](a2_0x29f913(0x151),'Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x29f913(0x275)](async(_0x2f8bdb,_0x52b331)=>{const _0x4a8f77=a2_0x29f913,_0x57cc4b=new ParentSegmentUpdateCommand(),_0x481daf=program[_0x4a8f77(0x165)](),_0x3c4eb0=await createTDXInstance(_0x481daf),_0x54d08b=await _0x57cc4b[_0x4a8f77(0x251)]({'options':{..._0x481daf,..._0x52b331},'args':[_0x2f8bdb],'tdx':_0x3c4eb0});gracefulExit(_0x54d08b);}),folderCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x322))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c2))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Folder\x20description')[a2_0x29f913(0x34e)](a2_0x29f913(0x26a),a2_0x29f913(0x127))['action'](async(_0x3d2506,_0x538513,_0x36a65a)=>{const _0x4ee647=a2_0x29f913,_0x3c53b5=new SegmentFolderCreateCommand(),_0x248ad8=program[_0x4ee647(0x165)](),_0x211ec3=await createTDXInstance(_0x248ad8),_0x568c0c=await _0x3c53b5[_0x4ee647(0x251)]({'options':{..._0x248ad8,..._0x36a65a},'args':[_0x3d2506,_0x538513],'tdx':_0x211ec3});gracefulExit(_0x568c0c);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x304))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b2))[a2_0x29f913(0x275)](async(_0x356324,_0x5971a5)=>{const _0x1a8587=a2_0x29f913,_0x33eb62=new ActivationsCommand(),_0x81b7f9=program[_0x1a8587(0x165)](),_0x21d513=await createTDXInstance(_0x81b7f9),_0x8de02a=await _0x33eb62[_0x1a8587(0x251)]({'options':{..._0x81b7f9,..._0x5971a5},'args':[_0x356324],'tdx':_0x21d513});gracefulExit(_0x8de02a);});const workflowCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x237))['alias']('wf')[a2_0x29f913(0x29c)]('Workflow\x20(Digdag)\x20management\x20commands'),wfProjectCmd=workflowCmd['command'](a2_0x29f913(0x1aa))['description'](a2_0x29f913(0x2fc)),wfProjectListAction=async(_0x5e7054,_0x3c43aa)=>{const _0x3dbd64=a2_0x29f913,_0x1a5af9=new WorkflowProjectsCommand(),_0x2163d0=program[_0x3dbd64(0x165)](),_0x2bb5bb=await createTDXInstance(_0x2163d0),_0x52b4da=await _0x1a5af9[_0x3dbd64(0x251)]({'options':{..._0x2163d0,..._0x3c43aa},'args':_0x5e7054?[_0x5e7054]:[],'tdx':_0x2bb5bb});gracefulExit(_0x52b4da);};wfProjectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2e1))['action'](wfProjectListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f6))[a2_0x29f913(0x29c)]('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x566fe7,_0x5ec702)=>{const _0x475afa=a2_0x29f913,_0x48db64=new WorkflowWorkflowsCommand(),_0x392876=program[_0x475afa(0x165)](),_0x2d117b=await createTDXInstance(_0x392876),_0x5641ef=await _0x48db64[_0x475afa(0x251)]({'options':{..._0x392876,..._0x5ec702},'args':_0x566fe7?[_0x566fe7]:[],'tdx':_0x2d117b});gracefulExit(_0x5641ef);};function a2_0x4297(_0x5a31ad,_0x3ba7dc){_0x5a31ad=_0x5a31ad-0x116;const _0x11b2a9=a2_0x11b2();let _0x42977a=_0x11b2a9[_0x5a31ad];return _0x42977a;}workflowCmd['command'](a2_0x29f913(0x2ca))[a2_0x29f913(0x29c)](a2_0x29f913(0x27f))['action'](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x310))[a2_0x29f913(0x29c)](a2_0x29f913(0x27a)),wfSessionListAction=async(_0x35a602,_0x51140a)=>{const _0x3fa3b7=a2_0x29f913,_0x177dbb=new WorkflowSessionsCommand(),_0x2c2663=program[_0x3fa3b7(0x165)](),_0x43a27a=await createTDXInstance(_0x2c2663),_0x1fae63=await _0x177dbb['run']({'options':{..._0x2c2663,..._0x51140a},'args':_0x35a602?[_0x35a602]:[],'tdx':_0x43a27a});gracefulExit(_0x1fae63);};wfSessionCmd['command']('list\x20[project]')['description'](a2_0x29f913(0x26c))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x29f913(0x34e)](a2_0x29f913(0x2cd),a2_0x29f913(0x12d))[a2_0x29f913(0x34e)](a2_0x29f913(0x255),'End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x303))['description'](a2_0x29f913(0x375))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),a2_0x29f913(0x20d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2cd),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x29f913(0x34e)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x29f913(0x275)](wfSessionListAction);const wfAttemptListAction=async(_0x19b21e,_0x21987d)=>{const _0x2e8268=a2_0x29f913,_0x590274=new WorkflowAttemptsCommand(),_0x5d4b45=program[_0x2e8268(0x165)](),_0x529693=await createTDXInstance(_0x5d4b45),_0x40d9ef=await _0x590274['run']({'options':{..._0x5d4b45,..._0x21987d},'args':_0x19b21e?[_0x19b21e]:[],'tdx':_0x529693});gracefulExit(_0x40d9ef);},attemptCmd=workflowCmd['command'](a2_0x29f913(0x336))['description'](a2_0x29f913(0x363))['argument'](a2_0x29f913(0x13a),a2_0x29f913(0x18a))[a2_0x29f913(0x223)](a2_0x29f913(0x17c),a2_0x29f913(0x24d))['argument']('[task-name]',a2_0x29f913(0x159))[a2_0x29f913(0x34e)](a2_0x29f913(0x267),a2_0x29f913(0x2d2))['option'](a2_0x29f913(0x34b),'Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x29f913(0x186),a2_0x29f913(0x1ab))[a2_0x29f913(0x34e)]('--params\x20<json>',a2_0x29f913(0x382))[a2_0x29f913(0x34e)](a2_0x29f913(0x33a),a2_0x29f913(0x14d))[a2_0x29f913(0x34e)]('--include-retried',a2_0x29f913(0x22e))[a2_0x29f913(0x275)](async(_0x2f43d9,_0x58ab63,_0x5eb96b,_0x38484d)=>{const _0x1f5ab3=a2_0x29f913;if(_0x2f43d9===_0x1f5ab3(0x347)){await wfAttemptListAction(_0x58ab63,_0x38484d);return;}if(!_0x2f43d9){attemptCmd[_0x1f5ab3(0x349)]();return;}const _0x4a1f03=program[_0x1f5ab3(0x165)](),_0x501397=await createTDXInstance(_0x4a1f03);let _0x40e3af=0x0;if(!_0x58ab63){const _0x1e6f7c=new WorkflowAttemptCommand();_0x40e3af=await _0x1e6f7c[_0x1f5ab3(0x251)]({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x141)){const _0x8f9fe7=new WorkflowLogsCommand();_0x40e3af=await _0x8f9fe7[_0x1f5ab3(0x251)]({'options':{..._0x4a1f03,..._0x38484d},'args':_0x5eb96b?[_0x2f43d9,_0x5eb96b]:[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x29f)){const _0x59d101=new WorkflowTasksCommand();_0x40e3af=await _0x59d101['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63===_0x1f5ab3(0x31e)){const _0x368168=new WorkflowKillCommand();_0x40e3af=await _0x368168['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x2f43d9],'tdx':_0x501397});}else{if(_0x58ab63==='retry'){const _0x3373a3=new WorkflowRetryCommand();_0x40e3af=await _0x3373a3['run']({'options':{..._0x4a1f03,..._0x38484d},'args':[_0x1f5ab3(0x2ba)+_0x2f43d9],'tdx':_0x501397});}else console[_0x1f5ab3(0x2b1)](_0x1f5ab3(0x175)+_0x58ab63),console[_0x1f5ab3(0x2b1)](_0x1f5ab3(0x2f5)),_0x40e3af=0x1;}}}}gracefulExit(_0x40e3af);});attemptCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1fe))[a2_0x29f913(0x29c)](a2_0x29f913(0x192))[a2_0x29f913(0x34e)](a2_0x29f913(0x2db),a2_0x29f913(0x145))[a2_0x29f913(0x275)](wfAttemptListAction),workflowCmd['command']('attempts\x20[project]')[a2_0x29f913(0x29c)](a2_0x29f913(0x17d))[a2_0x29f913(0x34e)](a2_0x29f913(0x2db),a2_0x29f913(0x145))[a2_0x29f913(0x275)](wfAttemptListAction),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x11c))[a2_0x29f913(0x29c)](a2_0x29f913(0x199))[a2_0x29f913(0x34e)](a2_0x29f913(0x1f2),a2_0x29f913(0x370))[a2_0x29f913(0x34e)](a2_0x29f913(0x18c),a2_0x29f913(0x210))[a2_0x29f913(0x34e)](a2_0x29f913(0x31d),a2_0x29f913(0x12e))[a2_0x29f913(0x275)](async(_0x37e6f2,_0x5efddc)=>{const _0x5531af=a2_0x29f913,_0x4a0037=new WorkflowTimelineCommand(),_0x279e89=program[_0x5531af(0x165)](),_0x5e7489=await createTDXInstance(_0x279e89),_0x2588ed=await _0x4a0037['run']({'options':{..._0x279e89,..._0x5efddc},'args':_0x37e6f2?[_0x37e6f2]:[],'tdx':_0x5e7489});gracefulExit(_0x2588ed);}),workflowCmd['command']('retry\x20<session-id>')[a2_0x29f913(0x29c)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x29f913(0x34e)]('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x29f913(0x34e)](a2_0x29f913(0x12a),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x29f913(0x275)](async(_0x54b766,_0x68aa13)=>{const _0x3bf185=a2_0x29f913,_0x449e8=new WorkflowRetryCommand(),_0x3bcb20=program[_0x3bf185(0x165)](),_0x192205=await createTDXInstance(_0x3bcb20),_0xc80384=await _0x449e8[_0x3bf185(0x251)]({'options':{..._0x3bcb20,..._0x68aa13},'args':[_0x54b766],'tdx':_0x192205});gracefulExit(_0xc80384);}),workflowCmd['command'](a2_0x29f913(0x1d0))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c9))[a2_0x29f913(0x34e)](a2_0x29f913(0x357),a2_0x29f913(0x33b),(_0x26162e,_0x4f5d5b=[])=>[..._0x4f5d5b,_0x26162e],[])[a2_0x29f913(0x34e)](a2_0x29f913(0x289),a2_0x29f913(0x132))[a2_0x29f913(0x275)](async(_0xc62dbe,_0x54cd30)=>{const _0xfcfa41=a2_0x29f913,_0x22aea5=new WorkflowRunCommand(),_0x5e5b4c=program[_0xfcfa41(0x165)](),_0x2dc7ce=await createTDXInstance(_0x5e5b4c),_0x46745a=await _0x22aea5[_0xfcfa41(0x251)]({'options':{..._0x5e5b4c,..._0x54cd30},'args':_0xc62dbe?[_0xc62dbe]:[],'tdx':_0x2dc7ce});gracefulExit(_0x46745a);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x278))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b5))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x2f3))[a2_0x29f913(0x275)](async(_0x1df4d6,_0xb86168,_0x517f74)=>{const _0x5e520e=a2_0x29f913,_0x43340d=new WorkflowDownloadCommand(),_0x3a99cb=program[_0x5e520e(0x165)](),_0x2f2954=await createTDXInstance(_0x3a99cb),_0x2a86ef=await _0x43340d[_0x5e520e(0x251)]({'options':{..._0x3a99cb,..._0x517f74},'args':[_0x1df4d6,_0xb86168||'.'],'tdx':_0x2f2954});gracefulExit(_0x2a86ef);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x207))[a2_0x29f913(0x29c)](a2_0x29f913(0x176))['option']('--revision\x20<revision>','Pull\x20specific\x20revision\x20(default:\x20latest)')[a2_0x29f913(0x34e)]('--dry-run','Preview\x20changes\x20without\x20writing\x20files')['option'](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](async(_0x12bf84,_0x29e68f,_0x4a659c)=>{const _0x1a3601=a2_0x29f913,_0x45ec6d=new WorkflowPullCommand(),_0x2d5166=program['opts'](),_0x45509f=await createTDXInstance(_0x2d5166),_0x57baab=await _0x45ec6d[_0x1a3601(0x251)]({'options':{..._0x2d5166,..._0x4a659c},'args':_0x29e68f?[_0x12bf84,_0x29e68f]:[_0x12bf84],'tdx':_0x45509f});gracefulExit(_0x57baab);}),workflowCmd[a2_0x29f913(0x1bf)]('push\x20[source-dir]')[a2_0x29f913(0x29c)](a2_0x29f913(0x208))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x280))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x233))[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x29f913(0x34e)]('-y,\x20--yes',a2_0x29f913(0x2cb))['action'](async(_0x104b32,_0x585518)=>{const _0x1248ed=a2_0x29f913,_0x598a5d=new WorkflowPushCommand(),_0x3161b4=program[_0x1248ed(0x165)](),_0x1b41fd=await createTDXInstance(_0x3161b4),_0x3d1856=await _0x598a5d[_0x1248ed(0x251)]({'options':{..._0x3161b4,..._0x585518},'args':_0x104b32?[_0x104b32]:[],'tdx':_0x1b41fd});gracefulExit(_0x3d1856);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x21a))[a2_0x29f913(0x29c)](a2_0x29f913(0x164))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),a2_0x29f913(0x2b6))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),a2_0x29f913(0x391))[a2_0x29f913(0x275)](async(_0x3e1d9d,_0x1d1e5c)=>{const _0x4548a6=a2_0x29f913,_0xa0ec1f=new WorkflowUploadCommand(),_0x240e83=program[_0x4548a6(0x165)](),_0x43d1d6=await createTDXInstance(_0x240e83),_0x343cad=await _0xa0ec1f[_0x4548a6(0x251)]({'options':{..._0x240e83,..._0x1d1e5c},'args':_0x3e1d9d?[_0x3e1d9d]:[],'tdx':_0x43d1d6});gracefulExit(_0x343cad);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2f2))['description'](a2_0x29f913(0x33e))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),a2_0x29f913(0x130))[a2_0x29f913(0x34e)](a2_0x29f913(0x2e2),a2_0x29f913(0x280))['option'](a2_0x29f913(0x1be),'Preview\x20without\x20creating\x20the\x20project')[a2_0x29f913(0x34e)](a2_0x29f913(0x19c),a2_0x29f913(0x391))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x1f6578,_0x41390e)=>{const _0x1cbf87=a2_0x29f913,_0x55a39e=new WorkflowCloneCommand(),_0x535fb4=program[_0x1cbf87(0x165)](),_0x46a916=await createTDXInstance(_0x535fb4),_0x331303=await _0x55a39e['run']({'options':{..._0x535fb4,..._0x41390e},'args':_0x1f6578?[_0x1f6578]:[],'tdx':_0x46a916});gracefulExit(_0x331303);}),workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x153))[a2_0x29f913(0x29c)]('Delete\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x29f913(0x275)](async(_0x2d97e7,_0xb6385f)=>{const _0x3b4fcd=a2_0x29f913,_0x3f9b07=new WorkflowDeleteCommand(),_0xeaaabf=program[_0x3b4fcd(0x165)](),_0x1b1273=await createTDXInstance(_0xeaaabf),_0x45cfb8=await _0x3f9b07[_0x3b4fcd(0x251)]({'options':{..._0xeaaabf,..._0xb6385f},'args':[_0x2d97e7],'tdx':_0x1b1273});gracefulExit(_0x45cfb8);}),workflowCmd[a2_0x29f913(0x1bf)]('use\x20[project]')[a2_0x29f913(0x29c)]('Set\x20default\x20workflow\x20project\x20for\x20this\x20session')[a2_0x29f913(0x34e)]('--clear','Clear\x20workflow\x20project\x20context')[a2_0x29f913(0x275)](async(_0x5a1ecb,_0x596f89)=>{const _0x1118ce=a2_0x29f913,_0x4a3d7d=new WorkflowUseCommand(),_0x4f29ac=program[_0x1118ce(0x165)](),_0xc0c77d=await createTDXInstance(_0x4f29ac),_0x3f99ae=await _0x4a3d7d[_0x1118ce(0x251)]({'options':{..._0x4f29ac,..._0x596f89},'args':_0x5a1ecb?[_0x5a1ecb]:[],'tdx':_0xc0c77d});gracefulExit(_0x3f99ae);});const wfSecretsCmd=workflowCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x152))[a2_0x29f913(0x29c)](a2_0x29f913(0x25e));function a2_0x11b2(){const _0x26a7a5=['[DEPRECATED]\x20Segment\x20folder\x20management','--in\x20<database>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Workflow\x20project\x20management','892692WFgEKf','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Maximum\x20recursion\x20depth\x20(default:\x2010)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','sessions\x20[project]','activations\x20<segment_name>','--model\x20<name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--customer-group\x20<json>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','Database\x20management\x20commands','\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','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Update\x20a\x20campaign','-C,\x20--directory\x20<path>','colorFn','session','Create\x20a\x20new\x20profile','User\x20management\x20commands','--workspace\x20<name>','Delete\x20a\x20campaign','then','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','Run\x20tests\x20for\x20an\x20LLM\x20agent','\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a','List\x20all\x20available\x20profiles','resume\x20<name-or-id>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','-u,\x20--use','--attempt-id\x20<id>','kill','LLM\x20project\x20management','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Job\x20priority\x20(-2\x20to\x202)','create\x20<parent_name>\x20<folder_name>','templates\x20[pattern]','--no-count-population','--retry-limit\x20<0~32>','api\x20[endpoint]','commandUsage','show\x20[name]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--master','Agent\x20prompt/instructions','log\x20<chat-id>','-f,\x20--force','133ylQcRe','--delay\x20<seconds>','--attribute\x20[name]','--in\x20<name>','push\x20[target]','--stream','Run\x20a\x20scheduled\x20query\x20immediately','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','attempt','delete\x20<name-or-id>','-n,\x20--name\x20<name>','use\x20[resource]\x20[value]','--force','Workflow\x20parameter\x20(repeatable)','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','-p,\x20--profile\x20<name>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','delete\x20<agent-name>','hidden','Skip\x20population\x20counting','test\x20[path]','Create\x20a\x20scheduled\x20query','run\x20<name>','pause\x20<name-or-id>','registeredArguments','list','delete\x20<args...>','help','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--reason\x20<text>','Update\x20a\x20workspace','Delete\x20a\x20scheduled\x20query','option','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','length','--system-prompt\x20<text>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','List\x20all\x20users\x20in\x20the\x20account','user','validate\x20[target]','--param\x20<key=value>','--result\x20<url>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','--json','information_schema','Add\x20attributes\x20from\x20JSON\x20file','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--attributes\x20<json>','query\x20[sql]','-o,\x20--output\x20<dir>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Workflow\x20attempt\x20management','DEBUG','HTML\x20template\x20content','Launch\x20a\x20campaign','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','desc\x20[segment_name]','Query\x20type:\x20trino\x20or\x20hive','LLM\x20agent\x20management','folders\x20<parent_name>','beefree','slice','Open\x20segment\x20in\x20web\x20browser','Show\x20job\x20details','Follow/watch\x20timeline\x20for\x20running\x20attempts','format','Overwrite\x20local\x20changes\x20without\x20confirmation','show\x20[segment_name]','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','--yes','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','tsv','models','--type\x20<api_type>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Create\x20a\x20new\x20profile\x20interactively\x0a\x20\x20$\x20tdx\x20profile\x20create\x20production\x20\x20\x20#\x20Create\x20profile\x20named\x20\x27production\x27\x0a','Delete\x20a\x20workspace','--site\x20<site>','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Parse\x20and\x20validate\x20without\x20executing','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','pull\x20[parent_or_file]','List\x20secret\x20keys\x20for\x20a\x20project','Parent\x20segment\x20management','Temperature\x20(0.0-2.0,\x20default:\x200.7)','unset\x20<resource>','Commands:','list\x20[pattern]','commands','Create\x20a\x20new\x20LLM\x20project','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','view\x20[segment_name]','--enriched','Skip\x20validation\x20of\x20.dig\x20files','Invalid\x20editor\x20type:\x20','List\x20available\x20connector\x20types','-o,\x20--output\x20<file>','tables\x20[pattern]','--editor-type\x20<type>','statusline','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','apiKey','\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','show\x20[table]','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','Open\x20parent\x20segment\x20in\x20web\x20browser','--no-color','timeline\x20[project.workflow]','--kind\x20<type>',',\x20version\x20','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','\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','Change\x20to\x20directory\x20before\x20executing\x20command','--max-tool-iterations\x20<n>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','--segment\x20<path>','--description\x20<desc>','--interval\x20<range>','Parent\x20folder\x20name\x20for\x20nested\x20folders','--version','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--params\x20<json>','padEnd','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20timeline\x20for\x20specific\x20attempt','Email\x20subject\x20template','Name\x20for\x20the\x20new\x20project\x20(required)','Filtering\x20rule\x20as\x20JSON\x20string','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','update\x20<agent-name>','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','subcommandDescription','--name\x20<name>','push\x20[path]','claude\x20[args...]','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','[attempt-id]','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--llm-project\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','--starter-message\x20<text>','catch','get','logs','parent-segment','--tsv','--behavior\x20[name]','Include\x20retried\x20attempts','Pause\x20a\x20campaign','includes','--limit\x20<rows>','Campaign\x20description','--color','--json-columns\x20<cols>','--table','Force\x20retry\x20even\x20if\x20not\x20failed','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','isArray','--add-behaviors-file\x20<file>','secrets','delete\x20<project-name-or-id>','INFO','--agent\x20<ref>','isTTY','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','directory','Task\x20name\x20for\x20logs\x20action','join','push\x20[file]','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','use\x20<path>','2367164JHHJNl','Limit\x20number\x20of\x20rows','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Output\x20directory','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Pull\x20child\x20segments\x20to\x20YAML\x20files','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','opts','Read\x20query\x20from\x20file','RT\x202.0\x20configuration\x20management','template','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Setup\x20API\x20key\x20authentication\x20interactively','schedule','Generate\x20test\x20conversations\x20without\x20evaluation','Campaign\x20name','result\x20<job-id>','isDirectory','--default','auth','--database\x20<db>','_hidden','Output\x20as\x20JSON','Unknown\x20action:\x20','Pull\x20workflow\x20project\x20to\x20local\x20folder','Timezone\x20for\x20cron','\x20-\x20built\x20','aliases','schema\x20<type>','stats\x20<name-or-path>','[action]','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','desc','0.7','padWidth','site','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','--new','json','--resume-from\x20<task>','--status\x20<status>','Submit\x20a\x20job','database','Attempt\x20ID','Maximum\x20tool\x20iterations\x20(default:\x204)','--session-id\x20<id>','--schedule-option\x20<value>','Email\x20template\x20management','Create\x20a\x20workspace','duplicate\x20<name-or-id>','--chat-id\x20<id>','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','show\x20<name-or-id>','Personalization\x20service\x20management','--max-depth\x20<depth>','--name\x20<text>','allowUnknownOption','--stage\x20<name>','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','tdx\x20','update\x20<name-or-id>','--skip-validation','Show\x20segment\x20details\x20(alias\x20for\x20view)','-y,\x20--yes','--data\x20<data>','create\x20<name>','18YNBfeU','Push\x20without\x20confirmation','Show\x20schedule\x20execution\x20history','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','5kkifMC','Move\x20to\x20folder','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','show\x20<folder_ref>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','project','Resume\x20from\x20specific\x20task\x20(retry)','--from\x20<n>','List\x20agents\x20in\x20current\x20project','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','configureHelp','logLevel','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','--behaviors\x20<json>','--email-sender-id\x20<id>','--start-at\x20<datetime>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Database\x20to\x20use\x20(overrides\x20context)','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--schedule-type\x20<type>','after','446041DkFUEE','List\x20all\x20data\x20connections','Output\x20as\x20JSON\x20Lines','--dry-run','command','--type\x20<type>','fields\x20[parent_name]','sql\x20[name]','CDP\x20segment\x20management\x20commands','Ending\x20offset\x20(default:\x2020)','Show\x20authentication\x20status\x20and\x20current\x20context','Starter\x20message','--prompt\x20<text>','428aDbazy','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Clear\x20session\x20context','Export\x20journey(s)\x20as\x20YAML\x20files','journey','Show\x20the\x20most\x20recent\x20chat','Show\x20connection\x20details\x20by\x20name','Database\x20name','run\x20[workflow]','--add-behaviors\x20<json>','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--add-attributes-file\x20<file>','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','preview\x20[file]','trino','Agent\x20description','GET','options','profiles','Plaintext\x20template\x20content','mcp','--delete','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Add\x20attributes\x20as\x20JSON\x20string','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','Data\x20connection\x20management\x20(for\x20activations/exports)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','-X,\x20--method\x20<method>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','buildTime','System\x20prompt/instructions\x20(default:\x20empty)','--table\x20<table>','--session\x20<id>','Show\x20journey\x20statistics','Updated\x20schedule\x20option','Workspace\x20management','log','3182090qHJXgE','setup','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','push\x20[parent_or_file]','stdout','--follow','table','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Request\x20body\x20as\x20JSON\x20string','projects\x20[pattern]','jsonl','kill\x20<job-id>','history\x20<name>','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','-f,\x20--file\x20<path>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','list\x20[project]','Behaviors\x20from\x20JSON\x20file','submit\x20[query]','Output\x20folder\x20(default:\x20{project_name}.llm)','Continue\x20most\x20recent\x20conversation','--output\x20<file>','claude-4.5-sonnet','argv','Show\x20segment\x20schema\x20(column\x20types)','pull\x20<project>\x20[target-dir]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','614552IXFrhl','List\x20journeys\x20in\x20current\x20context','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','preAction','3604700ntSECZ','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','list\x20[name]','gitRevision','create\x20[name]','--subject\x20<subject>','workspace','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--rule-file\x20<file>','Workspace\x20description','List\x20jobs','upload\x20[project-name-or-dir]','Resume\x20a\x20conversation\x20(shows\x20selector)','Workspace\x20name\x20(required)','Directory\x20does\x20not\x20exist:\x20','Show\x20stats\x20for\x20specific\x20stage','Updated\x20description','subcommandTerm','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','-r,\x20--resume','argument','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','init\x20[name]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Timezone\x20(e.g.,\x20America/Los_Angeles)','describe','Customer\x20group\x20as\x20JSON\x20string','Include\x20retried\x20attempts\x20(for\x20list)','profile','desc\x20[name]','--format\x20<format>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Preview\x20changes\x20without\x20pushing','us01','-1d','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','workflow','name','--to\x20<n>','debug','createAsync','addHelpText','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','--jsonl','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','-d,\x20--database\x20<db>','requiredOption','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','info\x20[segment_name]','10407LfFHVe','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Output\x20file\x20path','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pause\x20a\x20running\x20journey','users','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Segment\x20description','--description\x20<text>','--plaintext\x20<text>','run','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<segment_name>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','--to\x20<timestamp>','optionDescription','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','-o,\x20--output\x20<folder>','Run\x20specific\x20tests\x20(comma-separated)','Duplicate\x20a\x20campaign','injectIntoOptions','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','push','Manage\x20workflow\x20project\x20secrets','set\x20<args...>','filter','-r,\x20--recursive','--html\x20<html>','backup\x20<name>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Path\x20is\x20not\x20a\x20directory:\x20','resume\x20<name-or-path>','--include-subtasks','journeys\x20[pattern]','pause\x20<name-or-path>','--parent-folder\x20<name>','--engine-version\x20<version>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Add\x20behaviors\x20as\x20JSON\x20string','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','New\x20campaign\x20name','set\x20<key=value>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--rule\x20<json>','forEach','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','action','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','download\x20<project-name>\x20[output-dir]','status','Workflow\x20session\x20management','parents\x20[pattern]','Folder\x20name\x20for\x20organization','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Skip\x20confirmation\x20prompts','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Custom\x20revision\x20name\x20(default:\x20timestamp)','Cron\x20expression\x20for\x20scheduling','[options]\x20--\x20[claude-code-args...]','Set\x20or\x20show\x20parent\x20segment\x20context','--timezone\x20<tz>','Usage:\x20','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','describe\x20[table]','hook','--session-time\x20<time>','update\x20<name>','segments\x20[path]','campaign','--clear','Retry\x20limit\x20(0\x20to\x2032)','--catalog\x20<catalog>','Remove\x20a\x20profile','fields\x20[name]','Enable\x20verbose\x20logging','trace','Options:','--debug','Trino\x20catalog\x20(default:\x20td)','Delete\x20an\x20email\x20template','Result\x20output\x20destination\x20URL','summary','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','description','--no-eval','campaigns\x20[pattern]','tasks','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--full','Workspace\x20name','update\x20<segment_name>','create','Master\x20database\x20name','Resume\x20a\x20paused\x20campaign','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','commandDescription','INVALID_ARGUMENT','-v,\x20--verbose','List\x20available\x20LLM\x20models','Agent\x20name','tdx','validate\x20[name]','chdir','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','error','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','--behaviors-file\x20<file>','stderr','restore\x20<folder>','Override\x20project\x20name','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Update\x20an\x20email\x20template','Email\x20sender\x20ID\x20for\x20delivery','attempt:','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Update\x20an\x20existing\x20agent','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','remove\x20<name>','repeat','preview\x20[name]','Create\x20segment\x20folder','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','settings\x20<type>','Output\x20file\x20path\x20(default:\x20<name>.yml)','--reeval','show\x20<job-id>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','workflows\x20[project]','Skip\x20confirmation\x20prompt','--priority\x20<-2~2>','--from\x20<timestamp>','Behaviors\x20as\x20JSON\x20string','--folder\x20<name>','AI-native\x20CLI\x20for\x20Treasure\x20Data','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Include\x20subtasks\x20in\x20tasks\x20output','Scheduled\x20query\x20management\x20commands','outputHelp','run\x20[name]','connection','Query\x20engine\x20version','folder','map','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','--include-retried','show\x20<name>','jobs','-w,\x20--web','parent_segment','connections','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--revision\x20<revision>','-d,\x20--database\x20<name>','-d,\x20--database\x20<database>','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','alias','Show\x20schedule\x20details','Start\x20a\x20new\x20chat\x20session','TRACE','pull\x20[name]','use\x20<name>','Updated\x20timezone','-c,\x20--continue','grapesjs','replace','--name\x20<names>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','clone\x20[source-dir]','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','clone\x20[source]','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','list\x20[path]','Preview\x20operation\x20without\x20executing'];a2_0x11b2=function(){return _0x26a7a5;};return a2_0x11b2();}wfSecretsCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1fe))[a2_0x29f913(0x29c)](a2_0x29f913(0x386))[a2_0x29f913(0x275)](async(_0x2dc876,_0x5f02fd)=>{const _0xeffaaf=a2_0x29f913,_0x4ae84f=new WorkflowSecretsListCommand(),_0x23bc64=program[_0xeffaaf(0x165)](),_0x103264=await createTDXInstance(_0x23bc64),_0x4a4197=await _0x4ae84f[_0xeffaaf(0x251)]({'options':{..._0x23bc64,..._0x5f02fd},'args':_0x2dc876?[_0x2dc876]:[],'tdx':_0x103264});gracefulExit(_0x4a4197);}),wfSecretsCmd['command'](a2_0x29f913(0x25f))[a2_0x29f913(0x29c)](a2_0x29f913(0x14e))[a2_0x29f913(0x275)](async(_0x702760,_0x39bfe4)=>{const _0x44e44c=a2_0x29f913,_0x5b1217=new WorkflowSecretsSetCommand(),_0x119025=program['opts'](),_0x46bd1c=await createTDXInstance(_0x119025),_0x5a1ee9=await _0x5b1217[_0x44e44c(0x251)]({'options':{..._0x119025,..._0x39bfe4},'args':_0x702760,'tdx':_0x46bd1c});gracefulExit(_0x5a1ee9);}),wfSecretsCmd['command'](a2_0x29f913(0x348))['description']('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](async(_0x4ac11c,_0x324bca)=>{const _0x276cdc=a2_0x29f913,_0x47a8ff=new WorkflowSecretsDeleteCommand(),_0x3feb47=program[_0x276cdc(0x165)](),_0xe44a8a=await createTDXInstance(_0x3feb47),_0xf73f41=await _0x47a8ff[_0x276cdc(0x251)]({'options':{..._0x3feb47,..._0x324bca},'args':_0x4ac11c,'tdx':_0xe44a8a});gracefulExit(_0xf73f41);});const jobCmd=program[a2_0x29f913(0x1bf)]('job')[a2_0x29f913(0x29c)]('Job\x20management\x20commands'),jobListAction=async _0xcac305=>{const _0x10223d=a2_0x29f913,_0x29e21d=new JobListCommand(),_0x3ca5dd=program[_0x10223d(0x165)](),_0x1f2257=await createTDXInstance(_0x3ca5dd),_0x331f4b=await _0x29e21d['run']({'options':{..._0x3ca5dd,..._0xcac305},'args':[],'tdx':_0x1f2257});gracefulExit(_0x331f4b);};jobCmd['command'](a2_0x29f913(0x347))['description'](a2_0x29f913(0x219))[a2_0x29f913(0x34e)](a2_0x29f913(0x187),a2_0x29f913(0x329))[a2_0x29f913(0x275)](jobListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dd),{'hidden':!![]})[a2_0x29f913(0x29c)](a2_0x29f913(0x1a4))['option'](a2_0x29f913(0x187),'Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)')[a2_0x29f913(0x275)](jobListAction),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c8))[a2_0x29f913(0x29c)](a2_0x29f913(0x36f))[a2_0x29f913(0x275)](async(_0x6ce80d,_0x2e72c5)=>{const _0x4c4fdf=a2_0x29f913,_0x4aa5e5=new JobShowCommand(),_0x1947e9=program[_0x4c4fdf(0x165)](),_0x2c3c83=await createTDXInstance(_0x1947e9),_0x4023f0=await _0x4aa5e5[_0x4c4fdf(0x251)]({'options':{..._0x1947e9,..._0x2e72c5},'args':[_0x6ce80d],'tdx':_0x2c3c83});gracefulExit(_0x4023f0);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f8))[a2_0x29f913(0x29c)]('Kill\x20a\x20job')[a2_0x29f913(0x275)](async(_0x3f9b69,_0x59c126)=>{const _0x318dd4=a2_0x29f913,_0xb13f6c=new JobKillCommand(),_0x56e9b8=program[_0x318dd4(0x165)](),_0x3fb03e=await createTDXInstance(_0x56e9b8),_0x17f51f=await _0xb13f6c[_0x318dd4(0x251)]({'options':{..._0x56e9b8,..._0x59c126},'args':[_0x3f9b69],'tdx':_0x3fb03e});gracefulExit(_0x17f51f);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x200))[a2_0x29f913(0x29c)](a2_0x29f913(0x188))[a2_0x29f913(0x34e)]('--job-type\x20<type>','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x29f913(0x1d6))[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))[a2_0x29f913(0x34e)]('--database\x20<name>','Database\x20name\x20(default:\x20information_schema)',a2_0x29f913(0x35b))['action'](async(_0x19feea,_0x3efd54)=>{const _0x2390ff=a2_0x29f913,_0x3af8d1=new JobSubmitCommand(),_0x4be884=program[_0x2390ff(0x165)](),_0x5ad53c=await createTDXInstance(_0x4be884),_0x141297=await _0x3af8d1[_0x2390ff(0x251)]({'options':{..._0x4be884,..._0x3efd54},'args':_0x19feea?[_0x19feea]:[],'tdx':_0x5ad53c});gracefulExit(_0x141297);}),jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x16e))['description']('Get\x20job\x20results')['action'](async(_0x5972ab,_0xaf8939)=>{const _0x137a11=a2_0x29f913,_0x4a09db=new JobResultCommand(),_0x1849f7=program[_0x137a11(0x165)](),_0x1a8e7f=await createTDXInstance(_0x1849f7),_0x3e692b=await _0x4a09db[_0x137a11(0x251)]({'options':{..._0x1849f7,..._0xaf8939},'args':[_0x5972ab],'tdx':_0x1a8e7f});gracefulExit(_0x3e692b);});const scheduleCmd=jobCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x16b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2d3));scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x316))[a2_0x29f913(0x275)](async(_0xf909a2,_0x440e8c)=>{const _0xb77ebe=a2_0x29f913,_0x4544f7=new ScheduleListCommand(),_0x365cde=program[_0xb77ebe(0x165)](),_0x349ab7=await createTDXInstance(_0x365cde),_0x4cf4c3=await _0x4544f7[_0xb77ebe(0x251)]({'options':{..._0x365cde,..._0x440e8c},'args':_0xf909a2?[_0xf909a2]:[],'tdx':_0x349ab7});gracefulExit(_0x4cf4c3);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dc))['description'](a2_0x29f913(0x2e7))[a2_0x29f913(0x275)](async(_0x5e4881,_0x265406)=>{const _0x296e41=new ScheduleShowCommand(),_0x15d2ba=program['opts'](),_0x5c94fe=await createTDXInstance(_0x15d2ba),_0x49a929=await _0x296e41['run']({'options':{..._0x15d2ba,..._0x265406},'args':[_0x5e4881],'tdx':_0x5c94fe});gracefulExit(_0x49a929);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))['description'](a2_0x29f913(0x343))['requiredOption'](a2_0x29f913(0x240),a2_0x29f913(0x1cf))[a2_0x29f913(0x241)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),a2_0x29f913(0x369),a2_0x29f913(0x1d6))[a2_0x29f913(0x34e)]('--cron\x20<expression>',a2_0x29f913(0x281))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),'Timezone\x20for\x20cron\x20(default:\x20UTC)')[a2_0x29f913(0x34e)](a2_0x29f913(0x32f),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x29f913(0x34e)](a2_0x29f913(0x2cc),a2_0x29f913(0x321))[a2_0x29f913(0x34e)](a2_0x29f913(0x325),a2_0x29f913(0x28e))[a2_0x29f913(0x34e)](a2_0x29f913(0x26b),a2_0x29f913(0x2d7))['option'](a2_0x29f913(0x358),a2_0x29f913(0x298))['action'](async(_0x3ede82,_0x10fdea)=>{const _0x48d46a=a2_0x29f913,_0xa6dd7a=new ScheduleCreateCommand(),_0x4ccf80=program['opts'](),_0x49b3d8=await createTDXInstance(_0x4ccf80),_0x11ad0f=await _0xa6dd7a[_0x48d46a(0x251)]({'options':{..._0x4ccf80,..._0x10fdea},'args':[_0x3ede82],'tdx':_0x49b3d8});gracefulExit(_0x11ad0f);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28a))[a2_0x29f913(0x29c)]('Update\x20a\x20scheduled\x20query')[a2_0x29f913(0x34e)](a2_0x29f913(0x240),'Database\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x1fb),a2_0x29f913(0x166))['option'](a2_0x29f913(0x1c0),a2_0x29f913(0x369))[a2_0x29f913(0x34e)]('--cron\x20<expression>','Cron\x20expression\x20for\x20scheduling')[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x177))[a2_0x29f913(0x34e)](a2_0x29f913(0x32f),'Delay\x20in\x20seconds\x20before\x20execution')['option'](a2_0x29f913(0x2cc),a2_0x29f913(0x321))[a2_0x29f913(0x34e)](a2_0x29f913(0x325),a2_0x29f913(0x28e))['option'](a2_0x29f913(0x26b),'Query\x20engine\x20version')[a2_0x29f913(0x34e)](a2_0x29f913(0x358),a2_0x29f913(0x298))[a2_0x29f913(0x275)](async(_0x47dbd7,_0x397e05)=>{const _0x525166=a2_0x29f913,_0x39ca41=new ScheduleUpdateCommand(),_0x370916=program[_0x525166(0x165)](),_0x166588=await createTDXInstance(_0x370916),_0x53afab=await _0x39ca41[_0x525166(0x251)]({'options':{..._0x370916,..._0x397e05},'args':[_0x47dbd7],'tdx':_0x166588});gracefulExit(_0x53afab);}),scheduleCmd[a2_0x29f913(0x1bf)]('delete\x20<name>')['description'](a2_0x29f913(0x34d))['action'](async(_0x1b9133,_0x765a46)=>{const _0x2a26d0=a2_0x29f913,_0x225052=new ScheduleDeleteCommand(),_0x1c5b94=program[_0x2a26d0(0x165)](),_0x2cec1d=await createTDXInstance(_0x1c5b94),_0x1aff68=await _0x225052[_0x2a26d0(0x251)]({'options':{..._0x1c5b94,..._0x765a46},'args':[_0x1b9133],'tdx':_0x2cec1d});gracefulExit(_0x1aff68);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x344))[a2_0x29f913(0x29c)](a2_0x29f913(0x334))[a2_0x29f913(0x34e)]('--time\x20<iso8601>',a2_0x29f913(0x183))[a2_0x29f913(0x34e)]('--num\x20<1-10>',a2_0x29f913(0x2be))[a2_0x29f913(0x275)](async(_0x1ea9bd,_0x20b4c6)=>{const _0x43a412=a2_0x29f913,_0x4ff19d=new ScheduleRunCommand(),_0x2367bd=program['opts'](),_0x557bbd=await createTDXInstance(_0x2367bd),_0xfe8f3=await _0x4ff19d[_0x43a412(0x251)]({'options':{..._0x2367bd,..._0x20b4c6},'args':[_0x1ea9bd],'tdx':_0x557bbd});gracefulExit(_0xfe8f3);}),scheduleCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1f9))['description'](a2_0x29f913(0x1a3))[a2_0x29f913(0x34e)](a2_0x29f913(0x1ac),'Starting\x20offset\x20(default:\x200)')[a2_0x29f913(0x34e)](a2_0x29f913(0x239),a2_0x29f913(0x1c4))[a2_0x29f913(0x275)](async(_0x5e6185,_0x4c116)=>{const _0x5926d6=a2_0x29f913,_0x42772e=new ScheduleHistoryCommand(),_0x399d23=program[_0x5926d6(0x165)](),_0x2f32ca=await createTDXInstance(_0x399d23),_0x56e7c0=await _0x42772e[_0x5926d6(0x251)]({'options':{..._0x399d23,..._0x4c116},'args':[_0x5e6185],'tdx':_0x2f32ca});gracefulExit(_0x56e7c0);});const llmCmd=program[a2_0x29f913(0x1bf)]('llm')['description'](a2_0x29f913(0x38e));llmCmd['command']('use\x20<project-name>')[a2_0x29f913(0x29c)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x29f913(0x275)](async(_0x11caa0,_0x4d95f3)=>{const _0x155865=a2_0x29f913,_0x412d6d=new LLMUseCommand(),_0x35a49c=program[_0x155865(0x165)](),_0xc28e2a=await createTDXInstance(_0x35a49c),_0x2c9517=await _0x412d6d[_0x155865(0x251)]({'options':{..._0x35a49c,..._0x4d95f3},'args':[_0x11caa0],'tdx':_0xc28e2a});gracefulExit(_0x2c9517);}),llmCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x37a))[a2_0x29f913(0x29c)](a2_0x29f913(0x2ab))[a2_0x29f913(0x275)](async _0x1d134d=>{const _0x21abd1=a2_0x29f913,_0x942162=new LLMModelsCommand(),_0x4f698d=program['opts'](),_0x15a687=await createTDXInstance(_0x4f698d),_0x55970a=await _0x942162[_0x21abd1(0x251)]({'options':{..._0x4f698d,..._0x1d134d},'args':[],'tdx':_0x15a687});gracefulExit(_0x55970a);});const projectCmd=llmCmd[a2_0x29f913(0x1bf)]('project')[a2_0x29f913(0x29c)](a2_0x29f913(0x31f)),llmProjectListAction=async(_0x3f3d19,_0x4e2843)=>{const _0x229023=a2_0x29f913,_0x24d59c=new LLMProjectsCommand(),_0x58d71e=program[_0x229023(0x165)](),_0x4b2fd3=await createTDXInstance(_0x58d71e),_0x297812=await _0x24d59c['run']({'options':{..._0x58d71e,..._0x4e2843},'args':_0x3f3d19?[_0x3f3d19]:[],'tdx':_0x4b2fd3});gracefulExit(_0x297812);};projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x29f913(0x275)](llmProjectListAction),llmCmd['command'](a2_0x29f913(0x1f6))[a2_0x29f913(0x29c)](a2_0x29f913(0x2c4))['action'](llmProjectListAction),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))[a2_0x29f913(0x29c)](a2_0x29f913(0x38d))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),'Project\x20description')[a2_0x29f913(0x275)](async(_0xd98511,_0x14084d)=>{const _0x76995c=a2_0x29f913,_0x4f9afb=new LLMProjectCreateCommand(),_0x263094=program[_0x76995c(0x165)](),_0x5b7c3d=await createTDXInstance(_0x263094),_0x1a01ee=await _0x4f9afb[_0x76995c(0x251)]({'options':{..._0x263094,..._0x14084d},'args':[_0xd98511],'tdx':_0x5b7c3d});gracefulExit(_0x1a01ee);}),projectCmd['command']('delete\x20<name>')[a2_0x29f913(0x29c)]('Delete\x20an\x20LLM\x20project')[a2_0x29f913(0x275)](async(_0x53bec8,_0x931e41)=>{const _0x5d2b2e=a2_0x29f913,_0x507314=new LLMProjectDeleteCommand(),_0x1ec1e2=program[_0x5d2b2e(0x165)](),_0x5e8ed8=await createTDXInstance(_0x1ec1e2),_0x35f788=await _0x507314[_0x5d2b2e(0x251)]({'options':{..._0x1ec1e2,..._0x931e41},'args':[_0x53bec8],'tdx':_0x5e8ed8});gracefulExit(_0x35f788);}),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x263))[a2_0x29f913(0x29c)](a2_0x29f913(0x22a))[a2_0x29f913(0x34e)](a2_0x29f913(0x258),a2_0x29f913(0x201))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x2a0))[a2_0x29f913(0x275)](async(_0x388c6f,_0xebe0de)=>{const _0x449428=a2_0x29f913,_0x5c0723=new LLMProjectBackupCommand(),_0x3ab4e8=program[_0x449428(0x165)](),_0x44be53=await createTDXInstance(_0x3ab4e8),_0x234107=await _0x5c0723[_0x449428(0x251)]({'options':{..._0x3ab4e8,..._0xebe0de},'args':[_0x388c6f],'tdx':_0x44be53});gracefulExit(_0x234107);}),projectCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2b5))[a2_0x29f913(0x29c)](a2_0x29f913(0x182))['option']('--name\x20<new-name>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x224))[a2_0x29f913(0x275)](async(_0x205f3e,_0x12a813)=>{const _0x28c95b=a2_0x29f913,_0x35bbc4=new LLMProjectRestoreCommand(),_0x59aab2=program[_0x28c95b(0x165)](),_0x5ddaa1=await createTDXInstance(_0x59aab2),_0x32903a=await _0x35bbc4['run']({'options':{..._0x59aab2,..._0x12a813},'args':[_0x205f3e],'tdx':_0x5ddaa1});gracefulExit(_0x32903a);});const llmAgentListAction=async(_0x3278e2,_0x4ef2be)=>{const _0x26adc0=a2_0x29f913,_0x5a796d=new LLMAgentsCommand(),_0xb8387f=program[_0x26adc0(0x165)](),_0x4a76d6=await createTDXInstance(_0xb8387f),_0x125b4f=await _0x5a796d[_0x26adc0(0x251)]({'options':{..._0xb8387f,..._0x4ef2be},'args':_0x3278e2?[_0x3278e2]:[],'tdx':_0x4a76d6});gracefulExit(_0x125b4f);};llmCmd[a2_0x29f913(0x1bf)]('agents\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x308))[a2_0x29f913(0x275)](llmAgentListAction),program[a2_0x29f913(0x1bf)]('agents\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x308))[a2_0x29f913(0x275)](llmAgentListAction),llmCmd[a2_0x29f913(0x1bf)]('history\x20[chat-id]')['description'](a2_0x29f913(0x271))[a2_0x29f913(0x34e)]('--last','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x29f913(0x275)](async(_0x952154,_0x581923)=>{const _0x5a0a8c=a2_0x29f913,_0x470229=new LLMHistoryCommand(),_0x3a11ee=program[_0x5a0a8c(0x165)](),_0x5b5dcc=await createTDXInstance(_0x3a11ee),_0x4d8420=await _0x470229[_0x5a0a8c(0x251)]({'options':{..._0x3a11ee,..._0x581923},'args':_0x952154?[_0x952154]:[],'tdx':_0x5b5dcc});gracefulExit(_0x4d8420);});isExperimentalAvailable()&&llmCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x32c))[a2_0x29f913(0x29c)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')['action'](async(_0x2044dc,_0x491055)=>{const _0x1d72ef=a2_0x29f913,_0x41cfd1=new LLMLogCommand(),_0x4de137=program[_0x1d72ef(0x165)](),_0x8e78f2=await createTDXInstance(_0x4de137),_0x468e97=await _0x41cfd1['run']({'options':{..._0x4de137,..._0x491055},'args':[_0x2044dc],'tdx':_0x8e78f2});gracefulExit(_0x468e97);});program[a2_0x29f913(0x1bf)](a2_0x29f913(0x138))['usage'](a2_0x29f913(0x282))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b0))[a2_0x29f913(0x34e)](a2_0x29f913(0x2ed),a2_0x29f913(0x202))['option'](a2_0x29f913(0x222),a2_0x29f913(0x21b))[a2_0x29f913(0x34e)]('--no-proxy',a2_0x29f913(0x221))[a2_0x29f913(0x197)]()['allowExcessArguments'](!![])[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x30b))[a2_0x29f913(0x275)](async(_0x181860,_0xfe0445)=>{const _0x4c79b0=a2_0x29f913,_0x2fd9b4=program[_0x4c79b0(0x165)](),_0x4fe107=Array[_0x4c79b0(0x150)](_0x181860)?_0x181860:[];if(_0x4fe107[0x0]===_0x4c79b0(0x397)){const _0x1aecfc=new ClaudeStatuslineCommand(),_0x5b0494=await _0x1aecfc[_0x4c79b0(0x251)]({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107[_0x4c79b0(0x36d)](0x1),'tdx':null});gracefulExit(_0x5b0494);}if(_0x4fe107[0x0]==='usage'){const _0x14c0f4=new ClaudeUsageCommand(),_0x244f81=await _0x14c0f4[_0x4c79b0(0x251)]({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107[_0x4c79b0(0x36d)](0x1),'tdx':null});gracefulExit(_0x244f81);}const _0x34ddff=new ClaudeCommand(),_0x11a16d=await createTDXInstance(_0x2fd9b4),_0x34e57e=await _0x34ddff['run']({'options':{..._0x2fd9b4,..._0xfe0445},'args':_0x4fe107,'tdx':_0x11a16d});gracefulExit(_0x34e57e);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x339))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b6))[a2_0x29f913(0x34e)](a2_0x29f913(0x28d),a2_0x29f913(0x1ca))[a2_0x29f913(0x34e)]('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')[a2_0x29f913(0x275)](async(_0x4be6fc,_0x50e1b8,_0x4cd1c5)=>{const _0x515837=a2_0x29f913,_0x1ac0e2=new UseCommand(),_0x1f09e1=program['opts'](),_0x38bb10=[];if(_0x4be6fc)_0x38bb10['push'](_0x4be6fc);if(_0x50e1b8)_0x38bb10[_0x515837(0x25d)](_0x50e1b8);const _0x5935e6=await _0x1ac0e2[_0x515837(0x251)]({'options':{..._0x1f09e1,..._0x4cd1c5},'args':_0x38bb10,'tdx':null});gracefulExit(_0x5935e6);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x279))[a2_0x29f913(0x29c)](a2_0x29f913(0x1c5))[a2_0x29f913(0x275)](async _0x4771df=>{const _0x23fb9e=a2_0x29f913,_0x503147=new StatusCommand(),_0x3e37b1=program[_0x23fb9e(0x165)](),_0xc1d2ce=await createTDXInstance(_0x3e37b1),_0x166444=await _0x503147[_0x23fb9e(0x251)]({'options':{..._0x3e37b1,..._0x4771df},'args':[],'tdx':_0xc1d2ce});gracefulExit(_0x166444);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x389))[a2_0x29f913(0x29c)](a2_0x29f913(0x1d2))[a2_0x29f913(0x34e)](a2_0x29f913(0x170),a2_0x29f913(0x300))[a2_0x29f913(0x275)](async(_0x5bddbd,_0xd2e523)=>{const _0xa447f9=a2_0x29f913,_0x19c3c4=new UnsetCommand(),_0x10c459=program[_0xa447f9(0x165)](),_0x3af39d=await _0x19c3c4[_0xa447f9(0x251)]({'options':{..._0x10c459,..._0xd2e523},'args':[_0x5bddbd],'tdx':null});gracefulExit(_0x3af39d);}),program['command']('chats')[a2_0x29f913(0x29c)]('Interactive\x20chat\x20selector')[a2_0x29f913(0x34e)]('--last',a2_0x29f913(0x1cd))[a2_0x29f913(0x275)](async _0x103733=>{const _0x1c80b9=a2_0x29f913,_0x2fd423=new ChatsCommand(),_0x4d1838=program[_0x1c80b9(0x165)](),_0x3a5d1e=await createTDXInstance(_0x4d1838),_0x36f8f2=await _0x2fd423[_0x1c80b9(0x251)]({'options':{..._0x4d1838,..._0x103733},'args':[],'tdx':_0x3a5d1e});gracefulExit(_0x36f8f2);});const authCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x171))[a2_0x29f913(0x29c)]('Authentication\x20management');async function runAuthStatusCommand(_0x52fa26){const _0x381143=a2_0x29f913,_0x3fef7d=new AuthStatusCommand(),_0x35d6a1=program[_0x381143(0x165)](),_0x456138=await createTDXInstance(_0x35d6a1),_0x575e48=await _0x3fef7d[_0x381143(0x251)]({'options':{..._0x35d6a1,..._0x52fa26},'args':[],'tdx':_0x456138});gracefulExit(_0x575e48);}authCmd['action'](runAuthStatusCommand),authCmd[a2_0x29f913(0x1bf)]('status')['description'](a2_0x29f913(0x1de))['action'](runAuthStatusCommand),authCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1ee))[a2_0x29f913(0x29c)](a2_0x29f913(0x16a))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x117))[a2_0x29f913(0x275)](async _0x1b5b79=>{const _0x43a80a=new AuthSetupCommand(),_0x3a2431=program['opts'](),_0x3e0a7c=await createTDXInstance(_0x3a2431),_0x424d77=await _0x43a80a['run']({'options':{..._0x3a2431,..._0x1b5b79},'args':[],'tdx':_0x3e0a7c});gracefulExit(_0x424d77);}),authCmd[a2_0x29f913(0x1bf)]('clear')['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x318))[a2_0x29f913(0x275)](async _0x5587d5=>{const _0x1bc138=a2_0x29f913,_0x344e40=new AuthClearCommand(),_0x469c75=program[_0x1bc138(0x165)](),_0x18eb38=await _0x344e40['run']({'options':{..._0x469c75,..._0x5587d5},'args':[],'tdx':null});gracefulExit(_0x18eb38);});const userCmd=program['command'](a2_0x29f913(0x355))[a2_0x29f913(0x29c)](a2_0x29f913(0x312)),userListAction=async _0x31c4a8=>{const _0x4c59e8=a2_0x29f913,_0x4af63a=new UserListCommand(),_0x14c181=program[_0x4c59e8(0x165)](),_0x4749ba=await createTDXInstance(_0x14c181),_0x24533d=await _0x4af63a[_0x4c59e8(0x251)]({'options':{..._0x14c181,..._0x31c4a8},'args':[],'tdx':_0x4749ba});gracefulExit(_0x24533d);};userCmd['action'](async _0x596009=>{const _0x492d53=a2_0x29f913,_0xf622b9=new UserCommand(),_0x21ef5d=program[_0x492d53(0x165)](),_0xb4fa3f=await createTDXInstance(_0x21ef5d),_0x3e2fc4=await _0xf622b9[_0x492d53(0x251)]({'options':{..._0x21ef5d,..._0x596009},'args':[],'tdx':_0xb4fa3f});gracefulExit(_0x3e2fc4);}),userCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x354))[a2_0x29f913(0x275)](userListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x24b))['description'](a2_0x29f913(0x2e5))[a2_0x29f913(0x275)](userListAction),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1da))['description']('List\x20all\x20available\x20profiles')['action'](async _0xb977db=>{const _0x302489=new ProfilesCommand(),_0x548f1a=program['opts'](),_0x22e7b3=await _0x302489['run']({'options':{..._0x548f1a,..._0xb977db},'args':[],'tdx':null});gracefulExit(_0x22e7b3);});const profileCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x22f))[a2_0x29f913(0x29c)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x29f913(0x275)](()=>{const _0x1849b2=a2_0x29f913;profileCmd[_0x1849b2(0x2d4)]();});const profileListAction=async _0x5467b1=>{const _0x24bb9b=a2_0x29f913,_0x129375=new ProfilesCommand(),_0x31f773=program[_0x24bb9b(0x165)](),_0x5758f1=await _0x129375['run']({'options':{..._0x31f773,..._0x5467b1},'args':[],'tdx':null});gracefulExit(_0x5758f1);};profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x319))['action'](profileListAction),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x213))['description'](a2_0x29f913(0x311))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x37c))['action'](async(_0x3c4a8e,_0x2aa4ed)=>{const _0x20f81f=a2_0x29f913,_0x133144=new ProfileCreateCommand(),_0x69fd68=program[_0x20f81f(0x165)](),_0x4c39e9=await _0x133144[_0x20f81f(0x251)]({'options':{..._0x69fd68,..._0x2aa4ed},'args':_0x3c4a8e?[_0x3c4a8e]:[],'tdx':null});gracefulExit(_0x4c39e9);}),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2bf))['description'](a2_0x29f913(0x290))[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x232))[a2_0x29f913(0x275)](async(_0x5e0e51,_0x17ea41)=>{const _0x530297=a2_0x29f913,_0x1d7d97=new ProfileRemoveCommand(),_0x3121cb=program[_0x530297(0x165)](),_0x1b0316=await _0x1d7d97[_0x530297(0x251)]({'options':{..._0x3121cb,..._0x17ea41},'args':[_0x5e0e51],'tdx':null});gracefulExit(_0x1b0316);}),profileCmd['command'](a2_0x29f913(0x270))[a2_0x29f913(0x29c)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x29f913(0x23c)](a2_0x29f913(0x1ba),a2_0x29f913(0x120))[a2_0x29f913(0x275)](async(_0x2f6060,_0x1e1749)=>{const _0x5daf70=a2_0x29f913,_0x36cd8f=new ProfileSetCommand(),_0x2c35ef=program[_0x5daf70(0x165)](),_0x50e346=await _0x36cd8f[_0x5daf70(0x251)]({'options':{..._0x2c35ef,..._0x1e1749},'args':[_0x2f6060],'tdx':null});gracefulExit(_0x50e346);}),profileCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2eb))[a2_0x29f913(0x29c)](a2_0x29f913(0x20c))[a2_0x29f913(0x34e)](a2_0x29f913(0x170),a2_0x29f913(0x277))[a2_0x29f913(0x23c)]('after',a2_0x29f913(0x123))[a2_0x29f913(0x275)](async(_0x405155,_0x569cfb)=>{const _0x570b6f=a2_0x29f913,_0x1efddd=new ProfileUseCommand(),_0x258851=program[_0x570b6f(0x165)](),_0x352497=await _0x1efddd[_0x570b6f(0x251)]({'options':{..._0x258851,..._0x569cfb},'args':[_0x405155],'tdx':null});gracefulExit(_0x352497);});const engageCmd=program['command']('engage')[a2_0x29f913(0x29c)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x2e2c82=>{return async(_0x43b70f,_0x3ffa4c)=>{const _0x33034d=a2_0x4297,_0x1d99a8=new _0x2e2c82(),_0x6cc64e=program[_0x33034d(0x165)](),_0x1fc485=await createTDXInstance(_0x6cc64e),_0xd8c527=await _0x1d99a8[_0x33034d(0x251)]({'options':{..._0x6cc64e,..._0x3ffa4c},'args':[_0x43b70f],'tdx':_0x1fc485});gracefulExit(_0xd8c527);};},createEngageNoArgAction=_0x1af08c=>{return async _0x2cd6ef=>{const _0x529f5b=a2_0x4297,_0x508347=new _0x1af08c(),_0x51479c=program[_0x529f5b(0x165)](),_0x4a4f71=await createTDXInstance(_0x51479c),_0x235991=await _0x508347[_0x529f5b(0x251)]({'options':{..._0x51479c,..._0x2cd6ef},'args':[],'tdx':_0x4a4f71});gracefulExit(_0x235991);};},campaignCmd=engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x28c))[a2_0x29f913(0x29c)]('Campaign\x20management'),campaignListAction=async(_0x1dc8b0,_0x364c60)=>{const _0x52054c=a2_0x29f913,_0x2df459=new EngageCampaignsCommand(),_0x4968f3=program[_0x52054c(0x165)](),_0x194b4e=await createTDXInstance(_0x4968f3),_0x124b22=await _0x2df459[_0x52054c(0x251)]({'options':{..._0x4968f3,..._0x364c60},'args':_0x1dc8b0?[_0x1dc8b0]:[],'tdx':_0x194b4e});gracefulExit(_0x124b22);};campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x25c))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x29f913(0x34e)]('--status\x20<status>',a2_0x29f913(0x254))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](campaignListAction),engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x29e))[a2_0x29f913(0x29c)](a2_0x29f913(0x13b))[a2_0x29f913(0x34e)](a2_0x29f913(0x1c0),a2_0x29f913(0x274))[a2_0x29f913(0x34e)]('--status\x20<status>',a2_0x29f913(0x254))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](campaignListAction),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x193))[a2_0x29f913(0x29c)]('Show\x20campaign\x20details')[a2_0x29f913(0x34e)]('--workspace\x20<name>','Workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)]('Create\x20a\x20new\x20campaign')['requiredOption']('--name\x20<name>',a2_0x29f913(0x16d))['requiredOption'](a2_0x29f913(0x1c0),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x21c))[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x149))['option'](a2_0x29f913(0x124),a2_0x29f913(0x1b8))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b3),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x29f913(0x34e)](a2_0x29f913(0x14b),a2_0x29f913(0x226))[a2_0x29f913(0x34e)](a2_0x29f913(0x1b4),a2_0x29f913(0x361))[a2_0x29f913(0x34e)]('--timezone\x20<tz>',a2_0x29f913(0x1c9))[a2_0x29f913(0x275)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x19b))[a2_0x29f913(0x29c)](a2_0x29f913(0x30d))[a2_0x29f913(0x34e)]('--workspace\x20<name>','Workspace\x20name')['option']('--name\x20<name>',a2_0x29f913(0x26f))[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x149))['option'](a2_0x29f913(0x124),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x29f913(0x34e)]('--email-sender-id\x20<id>',a2_0x29f913(0x2b9))[a2_0x29f913(0x34e)](a2_0x29f913(0x14b),a2_0x29f913(0x226))[a2_0x29f913(0x34e)]('--start-at\x20<datetime>',a2_0x29f913(0x361))[a2_0x29f913(0x34e)](a2_0x29f913(0x284),a2_0x29f913(0x1c9))['action'](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x337))['description'](a2_0x29f913(0x314))['option'](a2_0x29f913(0x313),'Workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x376),a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command']('launch\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x366))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command'](a2_0x29f913(0x345))['description'](a2_0x29f913(0x146))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x31a))[a2_0x29f913(0x29c)](a2_0x29f913(0x2a6))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x29f913(0x190))[a2_0x29f913(0x29c)](a2_0x29f913(0x25a))['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x275)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd['command'](a2_0x29f913(0x168))[a2_0x29f913(0x29c)](a2_0x29f913(0x18e)),templateListAction=async(_0x5cc55f,_0x52376e)=>{const _0xf63c78=a2_0x29f913,_0x361d64=new EngageTemplatesCommand(),_0x13a32b=program['opts'](),_0xab2d86=await createTDXInstance(_0x13a32b),_0x34f4e9=await _0x361d64[_0xf63c78(0x251)]({'options':{..._0x13a32b,..._0x52376e},'args':_0x5cc55f?[_0x5cc55f]:[],'tdx':_0xab2d86});gracefulExit(_0x34f4e9);};templateCmd[a2_0x29f913(0x1bf)]('list\x20[pattern]')['description'](a2_0x29f913(0x2a7))[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x2a2))['action'](templateListAction),engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x323))['description'](a2_0x29f913(0x276))['option']('--workspace\x20<name>','Workspace\x20name')[a2_0x29f913(0x275)](templateListAction),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x193))[a2_0x29f913(0x29c)]('Show\x20email\x20template\x20details')['option'](a2_0x29f913(0x313),a2_0x29f913(0x2a2))['option'](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)]('Create\x20an\x20email\x20template')[a2_0x29f913(0x241)](a2_0x29f913(0x136),'Template\x20name')['requiredOption'](a2_0x29f913(0x214),a2_0x29f913(0x12f))[a2_0x29f913(0x241)]('--html\x20<html>',a2_0x29f913(0x365))[a2_0x29f913(0x34e)]('--workspace\x20<name>',a2_0x29f913(0x21c))[a2_0x29f913(0x34e)](a2_0x29f913(0x250),a2_0x29f913(0x1db))[a2_0x29f913(0x34e)](a2_0x29f913(0x396),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x4fb0b7=>{const _0x58672c=a2_0x29f913;if(![_0x58672c(0x36c),_0x58672c(0x2ee)][_0x58672c(0x147)](_0x4fb0b7))throw new SDKError(ErrorCode[_0x58672c(0x2a9)],_0x58672c(0x392)+_0x4fb0b7+_0x58672c(0x1ae));return _0x4fb0b7;})[a2_0x29f913(0x275)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x19b))[a2_0x29f913(0x29c)](a2_0x29f913(0x2b8))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),'New\x20template\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x214),a2_0x29f913(0x12f))[a2_0x29f913(0x34e)](a2_0x29f913(0x262),a2_0x29f913(0x365))['option'](a2_0x29f913(0x250),'Plaintext\x20template\x20content')['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x29f913(0x337))[a2_0x29f913(0x29c)](a2_0x29f913(0x297))[a2_0x29f913(0x34e)](a2_0x29f913(0x313),a2_0x29f913(0x2a2))[a2_0x29f913(0x34e)](a2_0x29f913(0x376),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x275)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x215))[a2_0x29f913(0x29c)](a2_0x29f913(0x1eb)),workspaceListAction=async(_0x4a6487,_0x5887a8)=>{const _0x5e463a=a2_0x29f913,_0x4e9ba6=new EngageWorkspacesCommand(),_0x3d91c5=program[_0x5e463a(0x165)](),_0xb13ff8=await createTDXInstance(_0x3d91c5),_0xad33b4=await _0x4e9ba6[_0x5e463a(0x251)]({'options':{..._0x3d91c5,..._0x5887a8},'args':_0x4a6487?[_0x4a6487]:[],'tdx':_0xb13ff8});gracefulExit(_0xad33b4);};workspaceCmd['command'](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x286))[a2_0x29f913(0x275)](workspaceListAction),engageCmd[a2_0x29f913(0x1bf)]('workspaces\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x2bb))[a2_0x29f913(0x275)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x29f913(0x29c)]('Show\x20workspace\x20details')[a2_0x29f913(0x34e)](a2_0x29f913(0x2a1),a2_0x29f913(0x27d))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2a4))[a2_0x29f913(0x29c)](a2_0x29f913(0x18f))[a2_0x29f913(0x241)](a2_0x29f913(0x136),a2_0x29f913(0x2a2))['option'](a2_0x29f913(0x125),a2_0x29f913(0x218))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x29f913(0x1bf)]('update\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x34c))[a2_0x29f913(0x34e)](a2_0x29f913(0x136),'New\x20workspace\x20name')[a2_0x29f913(0x34e)](a2_0x29f913(0x125),a2_0x29f913(0x218))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')[a2_0x29f913(0x29c)](a2_0x29f913(0x37d))[a2_0x29f913(0x34e)]('--yes',a2_0x29f913(0x2cb))[a2_0x29f913(0x275)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2eb))[a2_0x29f913(0x29c)]('Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)')['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x2d6))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e1)),connectionListAction=async _0x31672c=>{const _0x44990a=a2_0x29f913,_0x160a5b=new ConnectionListCommand(),_0xc256fc=program[_0x44990a(0x165)](),_0x4027cf=await createTDXInstance(_0xc256fc),_0x41fe90=await _0x160a5b[_0x44990a(0x251)]({'options':{..._0xc256fc,..._0x31672c},'args':[],'tdx':_0x4027cf});gracefulExit(_0x41fe90);};connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x347))[a2_0x29f913(0x29c)](a2_0x29f913(0x1bc))[a2_0x29f913(0x275)](connectionListAction),program['command'](a2_0x29f913(0x2e0),{'hidden':!![]})['description'](a2_0x29f913(0x35d))[a2_0x29f913(0x275)](connectionListAction),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2dc))['description'](a2_0x29f913(0x1ce))[a2_0x29f913(0x275)](async(_0x3bd6f0,_0x2bb7ec)=>{const _0x4b2549=a2_0x29f913,_0x456ea4=new ConnectionShowCommand(),_0x359ed2=program[_0x4b2549(0x165)](),_0x2da747=await createTDXInstance(_0x359ed2),_0x53a5c4=await _0x456ea4['run']({'options':{..._0x359ed2,..._0x2bb7ec},'args':[_0x3bd6f0],'tdx':_0x2da747});gracefulExit(_0x53a5c4);}),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x17a))['description']('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')['action'](async(_0x21dd41,_0x59ca3e)=>{const _0x2c1213=a2_0x29f913,_0x4e4062=new ConnectionSchemaCommand(),_0x17fc18=program[_0x2c1213(0x165)](),_0x24a5d6=await createTDXInstance(_0x17fc18),_0x597085=await _0x4e4062[_0x2c1213(0x251)]({'options':{..._0x17fc18,..._0x59ca3e},'args':[_0x21dd41],'tdx':_0x24a5d6});gracefulExit(_0x597085);}),connectionCmd['command']('types')['description'](a2_0x29f913(0x393))[a2_0x29f913(0x275)](async _0xfc2108=>{const _0xd2f26c=a2_0x29f913,_0x2935a1=new ConnectionTypesCommand(),_0x438d8b=program[_0xd2f26c(0x165)](),_0x4dc6bb=await createTDXInstance(_0x438d8b),_0x30f8cc=await _0x2935a1[_0xd2f26c(0x251)]({'options':{..._0x438d8b,..._0xfc2108},'args':[],'tdx':_0x4dc6bb});gracefulExit(_0x30f8cc);}),connectionCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2c5))[a2_0x29f913(0x29c)](a2_0x29f913(0x309))['action'](async(_0x294c57,_0x41bbf8)=>{const _0xe58c8e=a2_0x29f913,_0x3cc7cb=new ConnectionSettingsCommand(),_0x219188=program['opts'](),_0x15911a=await createTDXInstance(_0x219188),_0x41557a=await _0x3cc7cb[_0xe58c8e(0x251)]({'options':{..._0x219188,..._0x41bbf8},'args':[_0x294c57],'tdx':_0x15911a});gracefulExit(_0x41557a);});const journeyCmd=program[a2_0x29f913(0x1bf)](a2_0x29f913(0x1cc))[a2_0x29f913(0x29c)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x3935e2,_0x2c493d)=>{const _0x2f0f9b=a2_0x29f913,_0x580717=new JourneyListCommand(),_0x2601ba=program[_0x2f0f9b(0x165)](),_0xd396c8=await createTDXInstance(_0x2601ba),_0x76f292=await _0x580717[_0x2f0f9b(0x251)]({'options':{..._0x2601ba,..._0x2c493d},'args':_0x3935e2?[_0x3935e2]:[],'tdx':_0xd396c8});gracefulExit(_0x76f292);};journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x38b))[a2_0x29f913(0x29c)](a2_0x29f913(0x20a))[a2_0x29f913(0x275)](journeyListAction),journeyCmd[a2_0x29f913(0x1bf)]('view\x20<name-or-path>')[a2_0x29f913(0x29c)]('Show\x20journey\x20details')[a2_0x29f913(0x34e)](a2_0x29f913(0x2de),'Open\x20journey\x20in\x20web\x20browser')[a2_0x29f913(0x34e)]('--include-stats','Include\x20execution\x20statistics')[a2_0x29f913(0x275)](async(_0x3d4968,_0xf79ad4)=>{const _0x1f74d2=a2_0x29f913,_0x1b413b=new JourneyViewCommand(),_0x1cb748=program[_0x1f74d2(0x165)](),_0x598b14=await createTDXInstance(_0x1cb748),_0x3a6986=await _0x1b413b[_0x1f74d2(0x251)]({'options':{..._0x1cb748,..._0xf79ad4},'args':[_0x3d4968],'tdx':_0x598b14});gracefulExit(_0x3a6986);}),journeyCmd['command'](a2_0x29f913(0x17b))[a2_0x29f913(0x29c)](a2_0x29f913(0x1e9))[a2_0x29f913(0x34e)](a2_0x29f913(0x198),a2_0x29f913(0x21e))[a2_0x29f913(0x275)](async(_0x27babe,_0xae3fdb)=>{const _0x29ae67=a2_0x29f913,_0x2cc6ab=new JourneyStatsCommand(),_0x37f38e=program['opts'](),_0x456bc7=await createTDXInstance(_0x37f38e),_0x1f75ce=await _0x2cc6ab[_0x29ae67(0x251)]({'options':{..._0x37f38e,..._0xae3fdb},'args':[_0x27babe],'tdx':_0x456bc7});gracefulExit(_0x1f75ce);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x269))[a2_0x29f913(0x29c)](a2_0x29f913(0x24a))[a2_0x29f913(0x275)](async(_0xcc7a26,_0x2eb706)=>{const _0xeae4e2=a2_0x29f913,_0x68fb8d=new JourneyPauseCommand(),_0x1afd1b=program[_0xeae4e2(0x165)](),_0x16efa5=await createTDXInstance(_0x1afd1b),_0x3871cf=await _0x68fb8d[_0xeae4e2(0x251)]({'options':{..._0x1afd1b,..._0x2eb706},'args':[_0xcc7a26],'tdx':_0x16efa5});gracefulExit(_0x3871cf);}),journeyCmd['command'](a2_0x29f913(0x266))[a2_0x29f913(0x29c)]('Resume\x20a\x20paused\x20journey')[a2_0x29f913(0x275)](async(_0x42da31,_0x13760a)=>{const _0x226c4b=a2_0x29f913,_0x3a0829=new JourneyResumeCommand(),_0x472cca=program[_0x226c4b(0x165)](),_0x2681fb=await createTDXInstance(_0x472cca),_0x5a619b=await _0x3a0829['run']({'options':{..._0x472cca,..._0x13760a},'args':[_0x42da31],'tdx':_0x2681fb});gracefulExit(_0x5a619b);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x2ea))[a2_0x29f913(0x29c)](a2_0x29f913(0x1cb))[a2_0x29f913(0x34e)](a2_0x29f913(0x19e),'Skip\x20confirmation\x20prompt')[a2_0x29f913(0x34e)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x29f913(0x275)](async(_0x50882f,_0x168b49)=>{const _0x4fc09d=a2_0x29f913,_0x745e94=new JourneyPullCommand(),_0x181cd2=program['opts'](),_0x4e4b25=await createTDXInstance(_0x181cd2),_0x52b33f=await _0x745e94[_0x4fc09d(0x251)]({'options':{..._0x181cd2,..._0x168b49},'args':_0x50882f?[_0x50882f]:[],'tdx':_0x4e4b25});gracefulExit(_0x52b33f);}),journeyCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x332))[a2_0x29f913(0x29c)](a2_0x29f913(0x1a7))[a2_0x29f913(0x275)](async(_0x23a526,_0x5ad455)=>{const _0x46fdce=a2_0x29f913,_0x4d843d=new JourneyPushCommand(),_0x5138eb=program[_0x46fdce(0x165)](),_0x58dce5=await createTDXInstance(_0x5138eb),_0x59d148=await _0x4d843d[_0x46fdce(0x251)]({'options':{..._0x5138eb,..._0x5ad455},'args':_0x23a526?[_0x23a526]:[],'tdx':_0x58dce5});gracefulExit(_0x59d148);}),journeyCmd['command'](a2_0x29f913(0x356))[a2_0x29f913(0x29c)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x29f913(0x275)](async(_0xe8f37a,_0x4b3b83)=>{const _0x830716=new JourneyValidateCommand(),_0x148628=program['opts'](),_0x1dfa7d=await createTDXInstance(_0x148628),_0x3b51a0=await _0x830716['run']({'options':{..._0x148628,..._0x4b3b83},'args':_0xe8f37a?[_0xe8f37a]:[],'tdx':_0x1dfa7d});gracefulExit(_0x3b51a0);}),program[a2_0x29f913(0x1bf)](a2_0x29f913(0x268))[a2_0x29f913(0x29c)]('List\x20journeys\x20(alias\x20for\x20journey\x20list)')[a2_0x29f913(0x275)](journeyListAction);const agentSyncCmd=program[a2_0x29f913(0x1bf)]('agent')[a2_0x29f913(0x29c)](a2_0x29f913(0x36a));agentSyncCmd[a2_0x29f913(0x1bf)]('pull\x20[project]\x20[agent-name]')[a2_0x29f913(0x29c)](a2_0x29f913(0x335))[a2_0x29f913(0x34e)](a2_0x29f913(0x360),a2_0x29f913(0x161))[a2_0x29f913(0x34e)]('-f,\x20--force',a2_0x29f913(0x372))[a2_0x29f913(0x275)](async(_0x2d0da1,_0x458c79,_0x50309c)=>{const _0x53c470=a2_0x29f913,_0x2eeb47=new AgentPullCommand(),_0x4cb856=program[_0x53c470(0x165)](),_0x41757f=await createTDXInstance(_0x4cb856),_0x5a9952=[];if(_0x2d0da1)_0x5a9952[_0x53c470(0x25d)](_0x2d0da1);if(_0x458c79)_0x5a9952[_0x53c470(0x25d)](_0x458c79);const _0x225e1b=await _0x2eeb47[_0x53c470(0x251)]({'options':{..._0x4cb856,..._0x50309c},'args':_0x5a9952,'tdx':_0x41757f});gracefulExit(_0x225e1b);}),agentSyncCmd['command'](a2_0x29f913(0x137))[a2_0x29f913(0x29c)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x29f913(0x34e)](a2_0x29f913(0x32d),a2_0x29f913(0x1a2))[a2_0x29f913(0x275)](async(_0x108b7b,_0x45c782)=>{const _0x364960=a2_0x29f913,_0x2a4f18=new AgentPushCommand(),_0x14517e=program[_0x364960(0x165)](),_0x559857=await createTDXInstance(_0x14517e),_0x274bf7=await _0x2a4f18[_0x364960(0x251)]({'options':{..._0x14517e,..._0x45c782},'args':_0x108b7b?[_0x108b7b]:[],'tdx':_0x559857});gracefulExit(_0x274bf7);}),agentSyncCmd['command'](a2_0x29f913(0x2f4))[a2_0x29f913(0x29c)](a2_0x29f913(0x1b1))['option'](a2_0x29f913(0x338),a2_0x29f913(0x130))[a2_0x29f913(0x275)](async(_0x594cb6,_0x22f04d)=>{const _0x531b7f=a2_0x29f913,_0x35927e=new AgentCloneCommand(),_0x6eec4=program[_0x531b7f(0x165)](),_0x5d0ab1=await createTDXInstance(_0x6eec4),_0x51020c=await _0x35927e['run']({'options':{..._0x6eec4,..._0x22f04d},'args':_0x594cb6?[_0x594cb6]:[],'tdx':_0x5d0ab1});gracefulExit(_0x51020c);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x342))[a2_0x29f913(0x29c)](a2_0x29f913(0x317))[a2_0x29f913(0x34e)](a2_0x29f913(0x2f0),a2_0x29f913(0x259))['option']('--tags\x20<tags>',a2_0x29f913(0x37f))[a2_0x29f913(0x34e)](a2_0x29f913(0x1be),a2_0x29f913(0x381))['option'](a2_0x29f913(0x29d),a2_0x29f913(0x16c))['option'](a2_0x29f913(0x2c7),a2_0x29f913(0x15c))[a2_0x29f913(0x275)](async(_0x4db903,_0xb0221b)=>{const _0x9e525f=a2_0x29f913,_0x523841=new AgentTestCommand(),_0x57cce7=program[_0x9e525f(0x165)](),_0xd38283=await createTDXInstance(_0x57cce7),_0x49f125=await _0x523841[_0x9e525f(0x251)]({'options':{..._0x57cce7,..._0xb0221b},'args':_0x4db903?[_0x4db903]:[],'tdx':_0xd38283});gracefulExit(_0x49f125);}),agentSyncCmd[a2_0x29f913(0x1bf)]('list\x20[pattern]')[a2_0x29f913(0x29c)](a2_0x29f913(0x1ad))[a2_0x29f913(0x275)](llmAgentListAction),agentSyncCmd['command']('show\x20<agent-name>')[a2_0x29f913(0x29c)]('Show\x20agent\x20details')[a2_0x29f913(0x275)](async(_0x29292c,_0x49c2f4)=>{const _0x3ffd3d=a2_0x29f913,_0x1195b4=new LLMAgentShowCommand(),_0x3d63b2=program['opts'](),_0x22e13c=await createTDXInstance(_0x3d63b2),_0x33595f=await _0x1195b4[_0x3ffd3d(0x251)]({'options':{..._0x3d63b2,..._0x49c2f4},'args':[_0x29292c],'tdx':_0x22e13c});gracefulExit(_0x33595f);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x1a0))[a2_0x29f913(0x29c)](a2_0x29f913(0x383))[a2_0x29f913(0x34e)](a2_0x29f913(0x352),a2_0x29f913(0x1e6))[a2_0x29f913(0x34e)](a2_0x29f913(0x305),a2_0x29f913(0x34a),a2_0x29f913(0x204))[a2_0x29f913(0x34e)](a2_0x29f913(0x13e),a2_0x29f913(0x1c6))[a2_0x29f913(0x34e)](a2_0x29f913(0x122),a2_0x29f913(0x18b),'4')['option']('--temperature\x20<n>',a2_0x29f913(0x388),a2_0x29f913(0x17f))[a2_0x29f913(0x275)](async(_0xb867fa,_0x29e751)=>{const _0x10ab0d=a2_0x29f913,_0x1ab5c4=new LLMAgentCreateCommand(),_0x1ef74c=program[_0x10ab0d(0x165)](),_0x5c314b=await createTDXInstance(_0x1ef74c),_0x518605=await _0x1ab5c4[_0x10ab0d(0x251)]({'options':{..._0x1ef74c,..._0x29e751},'args':[_0xb867fa],'tdx':_0x5c314b});gracefulExit(_0x518605);}),agentSyncCmd['command'](a2_0x29f913(0x133))[a2_0x29f913(0x29c)](a2_0x29f913(0x2bd))[a2_0x29f913(0x34e)](a2_0x29f913(0x196),a2_0x29f913(0x2ac))['option'](a2_0x29f913(0x1c7),a2_0x29f913(0x32b))[a2_0x29f913(0x34e)](a2_0x29f913(0x24f),a2_0x29f913(0x1d7))[a2_0x29f913(0x34e)]('--starter-message\x20<text>',a2_0x29f913(0x1c6))[a2_0x29f913(0x275)](async(_0x567270,_0xbd559a)=>{const _0x545108=a2_0x29f913,_0x5de1c3=new LLMAgentUpdateCommand(),_0x519ca0=program[_0x545108(0x165)](),_0x56dbe2=await createTDXInstance(_0x519ca0),_0x5038c5=await _0x5de1c3[_0x545108(0x251)]({'options':{..._0x519ca0,..._0xbd559a},'args':[_0x567270],'tdx':_0x56dbe2});gracefulExit(_0x5038c5);}),agentSyncCmd[a2_0x29f913(0x1bf)](a2_0x29f913(0x33f))[a2_0x29f913(0x29c)]('Delete\x20an\x20agent')[a2_0x29f913(0x275)](async(_0x4b2541,_0x49a327)=>{const _0x4a2609=new LLMAgentDeleteCommand(),_0x536559=program['opts'](),_0x1dd825=await createTDXInstance(_0x536559),_0x436f7b=await _0x4a2609['run']({'options':{..._0x536559,..._0x49a327},'args':[_0x4b2541],'tdx':_0x1dd825});gracefulExit(_0x436f7b);});export{program};export function runCLI(){const _0x141976=a2_0x29f913,_0x35fdbc=!process[_0x141976(0x205)][_0x141976(0x36d)](0x2)[_0x141976(0x351)];showBriefHelp=_0x35fdbc,program['parse'](process[_0x141976(0x205)]);_0x35fdbc&&program[_0x141976(0x2d4)]();if(process[_0x141976(0x2b4)][_0x141976(0x156)]&&process[_0x141976(0x205)]['length']>0x2&&!isDevVersion()){const _0x30768c=loadReleaseChannel();checkForUpdate(currentVersion,_0x30768c)[_0x141976(0x315)](_0x48319a=>{_0x48319a&&displayUpdateNotification(_0x48319a);})[_0x141976(0x13f)](()=>{});}}
1
+ const a2_0x3474ff=a2_0x120a;(function(_0x2c45ea,_0x35c9d1){const _0x5cd6ad=a2_0x120a,_0xe911c8=_0x2c45ea();while(!![]){try{const _0x25603a=-parseInt(_0x5cd6ad(0x346))/0x1+parseInt(_0x5cd6ad(0x36c))/0x2*(parseInt(_0x5cd6ad(0x341))/0x3)+-parseInt(_0x5cd6ad(0x1cd))/0x4*(-parseInt(_0x5cd6ad(0x207))/0x5)+-parseInt(_0x5cd6ad(0x21e))/0x6*(parseInt(_0x5cd6ad(0x217))/0x7)+parseInt(_0x5cd6ad(0x2a0))/0x8+parseInt(_0x5cd6ad(0x2e3))/0x9+parseInt(_0x5cd6ad(0x368))/0xa;if(_0x25603a===_0x35c9d1)break;else _0xe911c8['push'](_0xe911c8['shift']());}catch(_0x32547f){_0xe911c8['push'](_0xe911c8['shift']());}}}(a2_0x34c3,0x1ea99));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,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{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3474ff(0x2f1)][a2_0x3474ff(0x1fa)](a2_0x3474ff(0x1e3))){let versionOutput=a2_0x3474ff(0x266)+currentVersion;buildInfo[a2_0x3474ff(0x36f)]&&!currentVersion['includes'](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x3474ff(0x36f)]+')'),buildInfo[a2_0x3474ff(0x267)]&&(versionOutput+=a2_0x3474ff(0x3f8)+buildInfo[a2_0x3474ff(0x267)]),console['log'](versionOutput),process[a2_0x3474ff(0x32c)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3474ff(0x376);buildInfo[a2_0x3474ff(0x36f)]&&!currentVersion[a2_0x3474ff(0x1fa)](buildInfo[a2_0x3474ff(0x36f)])?description+=a2_0x3474ff(0x371)+currentVersion+'\x20('+buildInfo[a2_0x3474ff(0x36f)]+')':description+=',\x20version\x20'+currentVersion;program['name'](a2_0x3474ff(0x424))[a2_0x3474ff(0x2be)](description),program[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2fc),a2_0x3474ff(0x3b8))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3c7),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')['option'](a2_0x3474ff(0x3fc),a2_0x3474ff(0x37b),a2_0x3474ff(0x37f))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x330),a2_0x3474ff(0x3e8))[a2_0x3474ff(0x2cb)]('--table',a2_0x3474ff(0x1c9))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x370),a2_0x3474ff(0x2a1))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3b4),a2_0x3474ff(0x1d4))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x357),a2_0x3474ff(0x3cb))['option'](a2_0x3474ff(0x398),a2_0x3474ff(0x21a))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x390),a2_0x3474ff(0x286))['option'](a2_0x3474ff(0x22a),a2_0x3474ff(0x2e9),![])['option'](a2_0x3474ff(0x23e),a2_0x3474ff(0x3f7),![])[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x316),a2_0x3474ff(0x312),![])[a2_0x3474ff(0x2cb)]('--debug',a2_0x3474ff(0x240))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x30c),a2_0x3474ff(0x218))[a2_0x3474ff(0x2cb)]('--timeout\x20<seconds>',a2_0x3474ff(0x236),'30')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38a),'Preview\x20operation\x20without\x20executing',![])[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x3d1),![])['option'](a2_0x3474ff(0x40b),a2_0x3474ff(0x2fe))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x436),a2_0x3474ff(0x2b2))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2d0),a2_0x3474ff(0x1c3))[a2_0x3474ff(0x2cb)]('--parent-segment\x20<name>',a2_0x3474ff(0x254))[a2_0x3474ff(0x2cb)]('--llm-project\x20<name>','LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program['configureHelp']({'formatHelp':(_0x1a2777,_0x6c36b5)=>{const _0x4ca606=a2_0x3474ff,_0x4f241f=_0x6c36b5['padWidth'](_0x1a2777,_0x6c36b5),_0x54a84d=0x2,_0x1a9ef3=0x2;function _0x39f5a3(_0xfdaa85){const _0x4db1fd=a2_0x120a,_0x541f65=_0xfdaa85;return!!(_0x541f65[_0x4db1fd(0x3cd)]||_0x541f65['hidden']);}function _0x309763(_0x108c62,_0x1450b8){const _0x5a6953=a2_0x120a;if(_0x1450b8){const _0x1b067e=''+_0x108c62[_0x5a6953(0x3cc)](_0x4f241f+_0x1a9ef3)+_0x1450b8;return _0x1b067e;}return _0x108c62;}function _0xb06d94(_0x181728){return _0x181728['join']('\x0a')['replace'](/^/gm,'\x20'['repeat'](_0x54a84d));}const _0x3446b8=[];_0x3446b8[_0x4ca606(0x261)](_0x4ca606(0x223)+_0x6c36b5[_0x4ca606(0x335)](_0x1a2777));const _0x513331=_0x6c36b5[_0x4ca606(0x3ca)](_0x1a2777);_0x513331&&(_0x3446b8['push'](''),_0x3446b8[_0x4ca606(0x261)](_0x513331));const _0x48ed2d=_0x1a2777['commands'][_0x4ca606(0x41e)](_0x5e95dd=>!_0x39f5a3(_0x5e95dd));if(_0x48ed2d[_0x4ca606(0x1f9)]>0x0){if(_0x1a2777['name']()===_0x4ca606(0x424)){const _0x40af91=_0x1a2777[_0x4ca606(0x2ca)](),_0x5bc30a=!_0x40af91[_0x4ca606(0x403)]&&process[_0x4ca606(0x345)]['isTTY'],_0x45cae8=COMMAND_CATEGORIES,_0x5a53c6=(_0x5787a1,_0x54228c)=>_0x5bc30a?_0x54228c(_0x5787a1):_0x5787a1,_0x2308e0=new Map();_0x48ed2d[_0x4ca606(0x311)](_0x34aa07=>{const _0x1d0854=_0x4ca606;_0x2308e0[_0x1d0854(0x2d4)](_0x34aa07[_0x1d0854(0x327)](),_0x34aa07);}),_0x45cae8[_0x4ca606(0x311)](_0x2250b9=>{const _0x1d9856=_0x4ca606,_0x29176d=_0x2250b9[_0x1d9856(0x1fb)][_0x1d9856(0x1f8)](_0x337d3b=>_0x2308e0['get'](_0x337d3b)??[]);if(_0x29176d[_0x1d9856(0x1f9)]>0x0){_0x3446b8[_0x1d9856(0x261)](''),_0x3446b8['push'](_0x5a53c6(_0x2250b9[_0x1d9856(0x327)]+':',_0x2250b9[_0x1d9856(0x315)]));const _0x81a859=_0x29176d['map'](_0x5bdbea=>{const _0x5e7cc2=_0x1d9856,_0x15c0fc=_0x6c36b5['subcommandTerm'](_0x5bdbea),_0x5700b7=_0x6c36b5[_0x5e7cc2(0x3bf)](_0x5bdbea);return _0x309763(_0x15c0fc,_0x5700b7);});_0x3446b8[_0x1d9856(0x261)](_0xb06d94(_0x81a859));}}),_0x3446b8['push'](''),_0x3446b8[_0x4ca606(0x261)](_0x4ca606(0x22c));}else{const _0x4facbb=_0x48ed2d['map'](_0x5a0632=>{const _0x166145=_0x4ca606,_0x31418c=_0x6c36b5[_0x166145(0x355)](_0x5a0632),_0x29855c=_0x6c36b5[_0x166145(0x3bf)](_0x5a0632);return _0x309763(_0x31418c,_0x29855c);});_0x3446b8[_0x4ca606(0x261)](''),_0x3446b8[_0x4ca606(0x261)]('Commands:'),_0x3446b8[_0x4ca606(0x261)](_0xb06d94(_0x4facbb));}}if(showBriefHelp&&_0x1a2777['name']()==='tdx')_0x3446b8[_0x4ca606(0x261)](''),_0x3446b8['push'](_0x4ca606(0x235));else{const _0x242ff0=_0x1a2777[_0x4ca606(0x32e)][_0x4ca606(0x41e)](_0x57a89d=>!_0x39f5a3(_0x57a89d));if(_0x242ff0[_0x4ca606(0x1f9)]>0x0){const _0x1f55dc=_0x242ff0[_0x4ca606(0x393)](_0x299856=>{const _0x57e1a4=_0x4ca606,_0x24c785=_0x6c36b5[_0x57e1a4(0x32f)](_0x299856),_0x4fa14c=_0x6c36b5[_0x57e1a4(0x3f0)](_0x299856);return _0x309763(_0x24c785,_0x4fa14c);});_0x3446b8[_0x4ca606(0x261)](''),_0x3446b8[_0x4ca606(0x261)](_0x4ca606(0x41a)),_0x3446b8[_0x4ca606(0x261)](_0xb06d94(_0x1f55dc));}}const _0x257535=(_0x1a2777[_0x4ca606(0x383)]||[])['filter'](_0x2c8aaa=>!_0x39f5a3(_0x2c8aaa));if(_0x257535[_0x4ca606(0x1f9)]>0x0){const _0x13220c=_0x257535[_0x4ca606(0x393)](_0x3d6aae=>{const _0x1e6787=_0x4ca606,_0x31b3ab=_0x6c36b5['argumentTerm'](_0x3d6aae),_0x3547dd=_0x6c36b5[_0x1e6787(0x348)](_0x3d6aae);return _0x309763(_0x31b3ab,_0x3547dd);});_0x3446b8[_0x4ca606(0x261)](''),_0x3446b8[_0x4ca606(0x261)](_0x4ca606(0x37c)),_0x3446b8['push'](_0xb06d94(_0x13220c));}return _0x3446b8[_0x4ca606(0x3b0)]('\x0a')+'\x0a';},'subcommandTerm':_0x238f6e=>{const _0x3b075d=a2_0x3474ff,_0x4383d1=(_0x238f6e[_0x3b075d(0x383)]||[])[_0x3b075d(0x393)](_0xa7f4ba=>_0xa7f4ba['required']?'<'+_0xa7f4ba[_0x3b075d(0x327)]()+'>':'['+_0xa7f4ba[_0x3b075d(0x327)]()+']')[_0x3b075d(0x3b0)]('\x20'),_0x240f01=_0x238f6e[_0x3b075d(0x1ea)](),_0xfa14d4=_0x240f01[_0x3b075d(0x1f9)]>0x0?_0x238f6e[_0x3b075d(0x327)]()+',\x20'+_0x240f01[_0x3b075d(0x3b0)](',\x20'):_0x238f6e[_0x3b075d(0x327)]();return _0x4383d1?_0xfa14d4+'\x20'+_0x4383d1:_0xfa14d4;}}),program[a2_0x3474ff(0x2e8)](a2_0x3474ff(0x3e9),_0x43ce82=>{const _0x273e6a=a2_0x3474ff,_0x58eb9d=_0x43ce82[_0x273e6a(0x2ca)]();if(_0x58eb9d['directory']){const _0x13ade9=resolve(_0x58eb9d[_0x273e6a(0x2c5)]),_0x3bb8e3=_0x13ade9!==_0x58eb9d['directory']?_0x273e6a(0x1e5)+_0x13ade9+')':'';if(!existsSync(_0x13ade9))throw new SDKError(ErrorCode[_0x273e6a(0x3df)],'Directory\x20does\x20not\x20exist:\x20'+_0x58eb9d[_0x273e6a(0x2c5)]+_0x3bb8e3,undefined,{'helpText':_0x273e6a(0x3a1)});const _0x33172f=statSync(_0x13ade9);if(!_0x33172f[_0x273e6a(0x214)]())throw new SDKError(ErrorCode[_0x273e6a(0x3df)],_0x273e6a(0x377)+_0x58eb9d['directory']+_0x3bb8e3,undefined,{'helpText':_0x273e6a(0x1b9)});process['chdir'](_0x13ade9);}if(!_0x58eb9d['format']){if(_0x58eb9d[_0x273e6a(0x1bd)])_0x58eb9d['format']=_0x273e6a(0x1bd);else{if(_0x58eb9d['json'])_0x58eb9d['format']=_0x273e6a(0x1d0);else{if(_0x58eb9d['jsonl'])_0x58eb9d[_0x273e6a(0x1f7)]=_0x273e6a(0x1db);else _0x58eb9d['tsv']&&(_0x58eb9d[_0x273e6a(0x1f7)]=_0x273e6a(0x22e));}}}_0x58eb9d['in']&&!_0x58eb9d[_0x273e6a(0x3cf)]&&(_0x58eb9d['database']=_0x58eb9d['in']);if(_0x58eb9d[_0x273e6a(0x302)])_0x58eb9d[_0x273e6a(0x303)]=LogLevel[_0x273e6a(0x352)];else{if(_0x58eb9d['debug'])_0x58eb9d[_0x273e6a(0x303)]=LogLevel[_0x273e6a(0x2a2)];else _0x58eb9d[_0x273e6a(0x303)]===undefined&&(_0x58eb9d[_0x273e6a(0x303)]=LogLevel[_0x273e6a(0x1e8)]);}});async function createTDXInstance(_0x5edcf5){const _0xf9e560=a2_0x3474ff,_0x59a4ad=await GlobalContext[_0xf9e560(0x3ec)](_0x5edcf5);return _0x59a4ad[_0xf9e560(0x2de)](_0x5edcf5),TDX[_0xf9e560(0x304)]({'site':_0x59a4ad[_0xf9e560(0x20a)],'apiKey':_0x59a4ad[_0xf9e560(0x272)],'logLevel':_0x59a4ad[_0xf9e560(0x303)],'profile':_0x59a4ad[_0xf9e560(0x366)]});}const databaseCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3cf))[a2_0x3474ff(0x38f)]('db')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3d7)),databaseListAction=async(_0x159c2a,_0x5304d5)=>{const _0x258ad1=a2_0x3474ff,_0x33e236=new DatabasesCommand(),_0x15e68e=program[_0x258ad1(0x2ca)](),_0x2e0317=await createTDXInstance(_0x15e68e),_0x398bc4=await _0x33e236['run']({'options':{..._0x15e68e,..._0x5304d5},'args':_0x159c2a?[_0x159c2a]:[],'tdx':_0x2e0317});gracefulExit(_0x398bc4);};databaseCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3ae))[a2_0x3474ff(0x35b)](databaseListAction),program['command'](a2_0x3474ff(0x237),{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')['action'](databaseListAction),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3b1))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x219))['option'](a2_0x3474ff(0x245),a2_0x3474ff(0x1fd))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x226),a2_0x3474ff(0x351))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x268),a2_0x3474ff(0x2d2))['option'](a2_0x3474ff(0x30a),a2_0x3474ff(0x28d))[a2_0x3474ff(0x35b)](async(_0x5f062d,_0x2352ec)=>{const _0x509f0f=a2_0x3474ff,_0x3b2b7e=program[_0x509f0f(0x2ca)](),_0x357a3c=await createTDXInstance(_0x3b2b7e);if(_0x5f062d[0x0]==='create'){const _0x377ff4=new ChatCreateCommand();gracefulExit(await _0x377ff4['run']({'options':{..._0x3b2b7e,..._0x2352ec},'args':_0x5f062d['slice'](0x1),'tdx':_0x357a3c}));return;}const _0x366c5e=new ChatCommand(),_0x3e0c60=await _0x366c5e[_0x509f0f(0x1ef)]({'options':{..._0x3b2b7e,..._0x2352ec},'args':_0x5f062d,'tdx':_0x357a3c});gracefulExit(_0x3e0c60);});const apiCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1e9))[a2_0x3474ff(0x2c3)](a2_0x3474ff(0x432))[a2_0x3474ff(0x402)](a2_0x3474ff(0x3d9),a2_0x3474ff(0x411))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3d6),a2_0x3474ff(0x256),a2_0x3474ff(0x1dc))['option']('--data\x20<data>',a2_0x3474ff(0x297))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x262),a2_0x3474ff(0x350))[a2_0x3474ff(0x2cb)]('-H,\x20--header\x20<header>',a2_0x3474ff(0x22b),(_0x129290,_0x5b41c9)=>{return _0x5b41c9?[..._0x5b41c9,_0x129290]:[_0x129290];})[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x313),a2_0x3474ff(0x3f5),'td')[a2_0x3474ff(0x35b)](async(_0x3c5e4e,_0x3c1b28)=>{const _0x5793b8=a2_0x3474ff;if(!_0x3c5e4e){apiCmd[_0x5793b8(0x39c)]();return;}const _0x1dab10=new ApiCommand(),_0x4f48c7=program['opts'](),_0x3e4d20=await createTDXInstance(_0x4f48c7),_0x2c5639=await _0x1dab10[_0x5793b8(0x1ef)]({'options':{..._0x4f48c7,..._0x3c1b28},'args':[_0x3c5e4e],'tdx':_0x3e4d20});gracefulExit(_0x2c5639);});function a2_0x120a(_0x24f6bf,_0x14cbff){_0x24f6bf=_0x24f6bf-0x1b9;const _0x34c31c=a2_0x34c3();let _0x120aa1=_0x34c31c[_0x24f6bf];return _0x120aa1;}program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x34e))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3c3))[a2_0x3474ff(0x402)](a2_0x3474ff(0x3d9),a2_0x3474ff(0x321))['action'](async _0x3e25a3=>{const _0x270198=a2_0x3474ff,_0x118a65=new MCPCommand(),_0x43c63c=program[_0x270198(0x2ca)](),_0x4b2aa=await createTDXInstance(_0x43c63c),_0x30e47f=await _0x118a65[_0x270198(0x1ef)]({'options':{..._0x43c63c,..._0x3e25a3},'args':[],'tdx':_0x4b2aa});gracefulExit(_0x30e47f);});const tableCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1bd))['description']('Table\x20management\x20commands'),tableListAction=async(_0x2b8536,_0x24a848)=>{const _0x53cf3f=a2_0x3474ff,_0x4bc818=new TablesCommand(),_0xb4775c=program[_0x53cf3f(0x2ca)](),_0x5b99e1=await createTDXInstance(_0xb4775c);_0x24a848['in']&&(_0x24a848['database']=_0x24a848['in']);const _0x5c62c9=await _0x4bc818[_0x53cf3f(0x1ef)]({'options':{..._0xb4775c,..._0x24a848},'args':_0x2b8536?[_0x2b8536]:[],'tdx':_0x5b99e1});gracefulExit(_0x5c62c9);};tableCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3a5))['option']('-d,\x20--database\x20<database>',a2_0x3474ff(0x2cf))['option'](a2_0x3474ff(0x2b0),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](tableListAction),program['command'](a2_0x3474ff(0x42b),{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x423))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x415),a2_0x3474ff(0x2cf))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2b0),a2_0x3474ff(0x1c3))[a2_0x3474ff(0x35b)](tableListAction),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x287))['description'](a2_0x3474ff(0x211))['option'](a2_0x3474ff(0x415),a2_0x3474ff(0x429))['option'](a2_0x3474ff(0x2b0),a2_0x3474ff(0x1c3))[a2_0x3474ff(0x35b)](async(_0x100dc5,_0x5bc095)=>{const _0x5a79f=a2_0x3474ff,_0x3191f4=new ShowCommand(),_0xc071a8=program['opts'](),_0x2bd795=await createTDXInstance(_0xc071a8);_0x5bc095['in']&&(_0x5bc095[_0x5a79f(0x3cf)]=_0x5bc095['in']);const _0x3be8e8=await _0x3191f4[_0x5a79f(0x1ef)]({'options':{..._0xc071a8,..._0x5bc095},'args':_0x100dc5?[_0x100dc5]:[],'tdx':_0x2bd795});gracefulExit(_0x3be8e8);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x395))[a2_0x3474ff(0x38f)](a2_0x3474ff(0x280))[a2_0x3474ff(0x2be)]('Describe\x20table\x20schema')['option'](a2_0x3474ff(0x415),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3474ff(0x2cb)]('--in\x20<database>',a2_0x3474ff(0x1c3))[a2_0x3474ff(0x35b)](async(_0x51a4d7,_0x17187c)=>{const _0x1c5fb8=a2_0x3474ff,_0x53993e=new DescribeCommand(),_0x5d6ad6=program[_0x1c5fb8(0x2ca)](),_0x5827b1=await createTDXInstance(_0x5d6ad6);_0x17187c['in']&&(_0x17187c['database']=_0x17187c['in']);const _0x3a4736=await _0x53993e[_0x1c5fb8(0x1ef)]({'options':{..._0x5d6ad6,..._0x17187c},'args':_0x51a4d7?[_0x51a4d7]:[],'tdx':_0x5827b1});gracefulExit(_0x3a4736);}),program['command'](a2_0x3474ff(0x2b3))['description'](a2_0x3474ff(0x431))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x415),a2_0x3474ff(0x231))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2b0),a2_0x3474ff(0x1c3))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x308),a2_0x3474ff(0x25c))[a2_0x3474ff(0x2cb)]('-f,\x20--file\x20<path>',a2_0x3474ff(0x24f))[a2_0x3474ff(0x2cb)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3474ff(0x35b)](async(_0x60f34f,_0x466b70)=>{const _0x39430d=a2_0x3474ff,_0x4dd3e3=new QueryCommand(),_0x355d2a=program[_0x39430d(0x2ca)](),_0x2ee862=await createTDXInstance(_0x355d2a);_0x466b70['in']&&(_0x466b70[_0x39430d(0x3cf)]=_0x466b70['in']);const _0x14df8f=await _0x4dd3e3[_0x39430d(0x1ef)]({'options':{..._0x355d2a,..._0x466b70},'args':_0x60f34f?[_0x60f34f]:[],'tdx':_0x2ee862});gracefulExit(_0x14df8f);});const segmentCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2e5))[a2_0x3474ff(0x38f)]('sg')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x293)),segmentListAction=async(_0x58000c,_0x3e4315)=>{const _0x3cd0b2=a2_0x3474ff,_0x1176c2=new SegmentsCommand(),_0x1ef903=program[_0x3cd0b2(0x2ca)](),_0x35c4e9=await createTDXInstance(_0x1ef903),_0x2c4343=await _0x1176c2['run']({'options':{..._0x1ef903,..._0x3e4315},'args':_0x58000c?[_0x58000c]:[],'tdx':_0x35c4e9});gracefulExit(_0x2c4343);};segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1fe))[a2_0x3474ff(0x2be)]('List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3d5),a2_0x3474ff(0x42e))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3ef),a2_0x3474ff(0x296),'10')[a2_0x3474ff(0x35b)](segmentListAction),program['command'](a2_0x3474ff(0x243),{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2e2))['option'](a2_0x3474ff(0x3d5),a2_0x3474ff(0x42e))['option']('--max-depth\x20<depth>',a2_0x3474ff(0x296),'10')['action'](segmentListAction),segmentCmd[a2_0x3474ff(0x3ab)]('use\x20<path>',{'hidden':!![]})['description'](a2_0x3474ff(0x255))[a2_0x3474ff(0x35b)](async(_0x59dd50,_0x355c69)=>{const _0x50e83c=a2_0x3474ff,_0x204329=new SegmentUseCommand(),_0x3b0faa=program['opts'](),_0x65f721=await createTDXInstance(_0x3b0faa),_0x4764cb=await _0x204329[_0x50e83c(0x1ef)]({'options':{..._0x3b0faa,..._0x355c69},'args':[_0x59dd50],'tdx':_0x65f721});gracefulExit(_0x4764cb);});const segmentViewAction=async(_0x32de72,_0x5b2d4c)=>{const _0x329066=a2_0x3474ff,_0x16d5f1=new SegmentViewCommand(),_0x302c08=program[_0x329066(0x2ca)](),_0x9c935e=await createTDXInstance(_0x302c08),_0x253ee3=await _0x16d5f1[_0x329066(0x1ef)]({'options':{..._0x302c08,..._0x5b2d4c},'args':_0x32de72?[_0x32de72]:[],'tdx':_0x9c935e});gracefulExit(_0x253ee3);};segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x241))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x248))['option'](a2_0x3474ff(0x2bf),a2_0x3474ff(0x3a9))[a2_0x3474ff(0x35b)](segmentViewAction),segmentCmd['command']('info\x20[segment_name]',{'hidden':!![]})[a2_0x3474ff(0x38f)](a2_0x3474ff(0x28e))[a2_0x3474ff(0x2cb)]('-w,\x20--web',a2_0x3474ff(0x3a9))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x31f))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2d6))[a2_0x3474ff(0x35b)](async(_0x33bf0b,_0x4bbd7f)=>{const _0xad8b82=a2_0x3474ff,_0x5bc4ec=new SegmentDescCommand(),_0x35b943=program['opts'](),_0x1d0663=await createTDXInstance(_0x35b943),_0x52d0e7=await _0x5bc4ec[_0xad8b82(0x1ef)]({'options':{..._0x35b943,..._0x4bbd7f},'args':_0x33bf0b?[_0x33bf0b]:[],'tdx':_0x1d0663});gracefulExit(_0x52d0e7);}),segmentCmd[a2_0x3474ff(0x3ab)]('show\x20[segment_name]')['description'](a2_0x3474ff(0x358))[a2_0x3474ff(0x35b)](async(_0x3020eb,_0x2df79e)=>{const _0x376873=a2_0x3474ff,_0x25ad56=new SegmentShowCommand(),_0x461a84=program[_0x376873(0x2ca)](),_0x5584ba=await createTDXInstance(_0x461a84),_0x4fdfd8=await _0x25ad56[_0x376873(0x1ef)]({'options':{..._0x461a84,..._0x2df79e},'args':_0x3020eb?[_0x3020eb]:[],'tdx':_0x5584ba});gracefulExit(_0x4fdfd8);}),segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3f1),{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3c0))[a2_0x3474ff(0x35b)](async(_0x2fc0ce,_0x320d32)=>{const _0x45ddab=a2_0x3474ff,_0x2328e1=new SegmentFolderListCommand(),_0x2e9fc1=program[_0x45ddab(0x2ca)](),_0x3d9cde=await createTDXInstance(_0x2e9fc1),_0x25fc71=await _0x2328e1[_0x45ddab(0x1ef)]({'options':{..._0x2e9fc1,..._0x320d32},'args':[_0x2fc0ce],'tdx':_0x3d9cde});gracefulExit(_0x25fc71);});const folderCmd=segmentCmd['command'](a2_0x3474ff(0x210),{'hidden':!![]})['description'](a2_0x3474ff(0x331));folderCmd['command'](a2_0x3474ff(0x24d))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x284))['action'](async(_0x1ec52e,_0x212dbd)=>{const _0x4d34ea=new SegmentFolderShowCommand(),_0x3ab0a3=program['opts'](),_0x17fefd=await createTDXInstance(_0x3ab0a3),_0x16157e=await _0x4d34ea['run']({'options':{..._0x3ab0a3,..._0x212dbd},'args':[_0x1ec52e],'tdx':_0x17fefd});gracefulExit(_0x16157e);}),segmentCmd[a2_0x3474ff(0x3ab)]('sql\x20[segment_name]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x405))['action'](async(_0x3e0966,_0x26f194)=>{const _0x36688e=a2_0x3474ff,_0x126adf=new SegmentSQLCommand(),_0x25bdad=program['opts'](),_0x3f6e1c=await createTDXInstance(_0x25bdad),_0x244f94=await _0x126adf[_0x36688e(0x1ef)]({'options':{..._0x25bdad,..._0x26f194},'args':_0x3e0966?[_0x3e0966]:[],'tdx':_0x3f6e1c});gracefulExit(_0x244f94);}),segmentCmd['command'](a2_0x3474ff(0x29b))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3e5))['action'](async(_0x6780cc,_0x58e082)=>{const _0x39b3e1=a2_0x3474ff,_0x36142c=new SegmentFieldsCommand(),_0x1ef89b=program['opts'](),_0x5515c4=await createTDXInstance(_0x1ef89b),_0x23574e=await _0x36142c[_0x39b3e1(0x1ef)]({'options':{..._0x1ef89b,..._0x58e082},'args':_0x6780cc?[_0x6780cc]:[],'tdx':_0x5515c4});gracefulExit(_0x23574e);}),segmentCmd[a2_0x3474ff(0x3ab)]('pull\x20[parent_or_file]')['description']('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x3d1))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38a),a2_0x3474ff(0x344))[a2_0x3474ff(0x35b)](async(_0x148ae9,_0x3db48e)=>{const _0x2e1186=a2_0x3474ff,_0x52ed81=new SegmentPullCommand(),_0x43310d=program[_0x2e1186(0x2ca)](),_0x54555b=await createTDXInstance(_0x43310d),_0x3dd28c=await _0x52ed81[_0x2e1186(0x1ef)]({'options':{..._0x43310d,..._0x3db48e},'args':_0x148ae9?[_0x148ae9]:[],'tdx':_0x54555b});gracefulExit(_0x3dd28c);}),segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3b6))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1e7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x3d1))['option'](a2_0x3474ff(0x38a),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x42f),a2_0x3474ff(0x2dc))[a2_0x3474ff(0x35b)](async(_0x140c06,_0x25603f)=>{const _0x456b58=a2_0x3474ff,_0x47f78b=new SegmentPushCommand(),_0x5df19d=program[_0x456b58(0x2ca)](),_0x31ebd0=await createTDXInstance(_0x5df19d),_0x5f26bc=await _0x47f78b[_0x456b58(0x1ef)]({'options':{..._0x5df19d,..._0x25603f},'args':_0x140c06?[_0x140c06]:[],'tdx':_0x31ebd0});gracefulExit(_0x5f26bc);}),segmentCmd[a2_0x3474ff(0x3ab)]('validate\x20[target]')[a2_0x3474ff(0x2be)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x498288,_0xd53390)=>{const _0x3c9742=a2_0x3474ff,_0x21286c=new SegmentValidateCommand(),_0x4788f1=program['opts'](),_0x318548=await createTDXInstance(_0x4788f1),_0x6b6eba=await _0x21286c[_0x3c9742(0x1ef)]({'options':{..._0x4788f1,..._0xd53390},'args':_0x498288?[_0x498288]:[],'tdx':_0x318548});gracefulExit(_0x6b6eba);}),segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1c0),{'hidden':!![]})[a2_0x3474ff(0x2be)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x3474ff(0x2cb)]('--description\x20<text>',a2_0x3474ff(0x382))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x406),a2_0x3474ff(0x2b8))[a2_0x3474ff(0x2cb)]('--rule-file\x20<file>',a2_0x3474ff(0x29c))[a2_0x3474ff(0x2cb)]('--folder\x20<name>','Folder\x20name\x20for\x20organization')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2b4),a2_0x3474ff(0x205))[a2_0x3474ff(0x2cb)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x359),a2_0x3474ff(0x31a))['action'](async(_0x34f8cf,_0x4c7311)=>{const _0x3144fb=a2_0x3474ff,_0x44780e=new SegmentCreateCommand(),_0x18471a=program[_0x3144fb(0x2ca)](),_0x5f065b=await createTDXInstance(_0x18471a),_0x16ff22=await _0x44780e[_0x3144fb(0x1ef)]({'options':{..._0x18471a,..._0x4c7311},'args':[_0x34f8cf],'tdx':_0x5f065b});gracefulExit(_0x16ff22);}),segmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3a3),{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x333))[a2_0x3474ff(0x2cb)]('--name\x20<new_name>',a2_0x3474ff(0x2c0))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x285),a2_0x3474ff(0x328))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x406),a2_0x3474ff(0x2ac))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x34b),a2_0x3474ff(0x38b))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x407),a2_0x3474ff(0x275))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2b4),a2_0x3474ff(0x205))[a2_0x3474ff(0x35b)](async(_0x41ab94,_0x40d2d1)=>{const _0x260503=a2_0x3474ff,_0x1f2581=new SegmentUpdateCommand(),_0x2ca41a=program[_0x260503(0x2ca)](),_0x3b27be=await createTDXInstance(_0x2ca41a),_0x420d67=await _0x1f2581['run']({'options':{..._0x2ca41a,..._0x40d2d1},'args':[_0x41ab94],'tdx':_0x3b27be});gracefulExit(_0x420d67);});const parentCmd=segmentCmd['command']('parent',{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x24a)),parentListAction=async(_0x4fabe9,_0x3b729f)=>{const _0x3f0497=a2_0x3474ff,_0x1b6726=new ParentSegmentListCommand(),_0x22c0aa=program['opts'](),_0x7b6622=await createTDXInstance(_0x22c0aa),_0x286ce6=await _0x1b6726[_0x3f0497(0x1ef)]({'options':{..._0x22c0aa,..._0x3b729f},'args':_0x4fabe9?[_0x4fabe9]:[],'tdx':_0x7b6622});gracefulExit(_0x286ce6);};parentCmd[a2_0x3474ff(0x3ab)]('list\x20[pattern]')['description']('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x3474ff(0x35b)](parentListAction),segmentCmd['command'](a2_0x3474ff(0x3ce),{'hidden':!![]})['description']('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3474ff(0x35b)](parentListAction),parentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x375))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x20f))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2ba),a2_0x3474ff(0x3f9))['option'](a2_0x3474ff(0x3dc),'Skip\x20confirmation\x20prompt')['action'](async(_0x3f2c3d,_0x463993)=>{const _0x38fadc=a2_0x3474ff,_0x5e0a70=new ParentSegmentPullCommand(),_0x14649d=program['opts'](),_0x1edf7b=await createTDXInstance(_0x14649d),_0x23e5ee=await _0x5e0a70[_0x38fadc(0x1ef)]({'options':{..._0x14649d,..._0x463993},'args':_0x3f2c3d?[_0x3f2c3d]:[],'tdx':_0x1edf7b});gracefulExit(_0x23e5ee);}),parentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x40e))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2c7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))['action'](async(_0x5154b1,_0x400758)=>{const _0x33cef7=a2_0x3474ff,_0x509735=new ParentSegmentPushCommand(),_0xb79a2d=program[_0x33cef7(0x2ca)](),_0x3bf034=await createTDXInstance(_0xb79a2d),_0x56ffd0=await _0x509735[_0x33cef7(0x1ef)]({'options':{..._0xb79a2d,..._0x400758},'args':_0x5154b1?[_0x5154b1]:[],'tdx':_0x3bf034});gracefulExit(_0x56ffd0);}),parentCmd[a2_0x3474ff(0x3ab)]('validate\x20[file]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x34d))[a2_0x3474ff(0x2cb)]('--master',a2_0x3474ff(0x2c6))['option'](a2_0x3474ff(0x3f2),a2_0x3474ff(0x1cf))[a2_0x3474ff(0x2cb)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1dd),a2_0x3474ff(0x365))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a7),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x3474ff(0x35b)](async(_0x12584b,_0x2e1eae)=>{const _0x25a112=a2_0x3474ff,_0x224ce4=new ParentSegmentValidateCommand(),_0x24ef29=program[_0x25a112(0x2ca)](),_0x174501=await createTDXInstance(_0x24ef29),_0x3a8504=await _0x224ce4['run']({'options':{..._0x24ef29,..._0x2e1eae},'args':_0x12584b?[_0x12584b]:[],'tdx':_0x174501});gracefulExit(_0x3a8504);}),parentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1ba))['description'](a2_0x3474ff(0x2b6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x295),a2_0x3474ff(0x1ff))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3f2),a2_0x3474ff(0x32d))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a6),a2_0x3474ff(0x2d9))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1dd),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a7),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3474ff(0x31c))[a2_0x3474ff(0x35b)](async(_0x2ecab9,_0x4b2c5c)=>{const _0x3c7626=a2_0x3474ff,_0x56e9f1=new ParentSegmentPreviewCommand(),_0x6fecae=program[_0x3c7626(0x2ca)](),_0x1748fd=await createTDXInstance(_0x6fecae),_0x516429=await _0x56e9f1[_0x3c7626(0x1ef)]({'options':{..._0x6fecae,..._0x4b2c5c},'args':_0x2ecab9?[_0x2ecab9]:[],'tdx':_0x1748fd});gracefulExit(_0x516429);}),parentCmd['command']('run\x20[name]')[a2_0x3474ff(0x2be)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](async(_0x352069,_0x12b712)=>{const _0x2892c0=a2_0x3474ff,_0x115cdf=new ParentSegmentRunCommand(),_0x516509=program[_0x2892c0(0x2ca)](),_0x6740f0=await createTDXInstance(_0x516509),_0x399e7b=await _0x115cdf['run']({'options':{..._0x516509,..._0x12b712},'args':_0x352069?[_0x352069]:[],'tdx':_0x6740f0});gracefulExit(_0x399e7b);});const parentSegmentCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x291))[a2_0x3474ff(0x38f)]('ps')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x281));parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2a8))['action'](parentListAction),parentSegmentCmd[a2_0x3474ff(0x3ab)]('pull\x20[name]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x400))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2ba),a2_0x3474ff(0x1e2))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x2cb)]('-u,\x20--use','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull')[a2_0x3474ff(0x35b)](async(_0x24222e,_0x301e61)=>{const _0xc6ac0=a2_0x3474ff,_0x3fe54c=new ParentSegmentPullCommand(),_0x589ccf=program[_0xc6ac0(0x2ca)](),_0x1b2cd0=await createTDXInstance(_0x589ccf),_0x12d4c4=await _0x3fe54c[_0xc6ac0(0x1ef)]({'options':{..._0x589ccf,..._0x301e61},'args':_0x24222e?[_0x24222e]:[],'tdx':_0x1b2cd0});gracefulExit(_0x12d4c4);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x27d))[a2_0x3474ff(0x2be)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](async(_0x54a39e,_0x4d6e8c)=>{const _0x32a35c=new ParentSegmentPushCommand(),_0x21f427=program['opts'](),_0x32ffc0=await createTDXInstance(_0x21f427),_0x14a8dd=await _0x32a35c['run']({'options':{..._0x21f427,..._0x4d6e8c},'args':_0x54a39e?[_0x54a39e]:[],'tdx':_0x32ffc0});gracefulExit(_0x14a8dd);}),parentSegmentCmd['command'](a2_0x3474ff(0x39e))[a2_0x3474ff(0x2be)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x3474ff(0x295),a2_0x3474ff(0x2c6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3f2),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x3474ff(0x2a6),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1dd),a2_0x3474ff(0x365))[a2_0x3474ff(0x2cb)]('--interval\x20<range>',a2_0x3474ff(0x3c8),a2_0x3474ff(0x31c))[a2_0x3474ff(0x35b)](async(_0x455cc1,_0x51ea59)=>{const _0x2174aa=a2_0x3474ff,_0x7f8aab=new ParentSegmentValidateCommand(),_0x3eb726=program['opts'](),_0x40d1ef=await createTDXInstance(_0x3eb726),_0x10c44a=await _0x7f8aab[_0x2174aa(0x1ef)]({'options':{..._0x3eb726,..._0x51ea59},'args':_0x455cc1?[_0x455cc1]:[],'tdx':_0x40d1ef});gracefulExit(_0x10c44a);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x249))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2b6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x295),a2_0x3474ff(0x1ff))['option'](a2_0x3474ff(0x3f2),a2_0x3474ff(0x32d))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a6),a2_0x3474ff(0x2d9))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1dd),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')['option'](a2_0x3474ff(0x2a7),a2_0x3474ff(0x3c8),'-1d')[a2_0x3474ff(0x35b)](async(_0x2f7090,_0x249b7e)=>{const _0x372eaa=a2_0x3474ff,_0x468ae6=new ParentSegmentPreviewCommand(),_0x53710e=program[_0x372eaa(0x2ca)](),_0xfdb0ab=await createTDXInstance(_0x53710e),_0x219022=await _0x468ae6[_0x372eaa(0x1ef)]({'options':{..._0x53710e,..._0x249b7e},'args':_0x2f7090?[_0x2f7090]:[],'tdx':_0xfdb0ab});gracefulExit(_0x219022);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1e1))[a2_0x3474ff(0x2be)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](async(_0xa5ccac,_0x4f2316)=>{const _0x7bea72=a2_0x3474ff,_0x3247d4=new ParentSegmentRunCommand(),_0x3bfecf=program[_0x7bea72(0x2ca)](),_0x3b474b=await createTDXInstance(_0x3bfecf),_0x78494e=await _0x3247d4[_0x7bea72(0x1ef)]({'options':{..._0x3bfecf,..._0x4f2316},'args':_0xa5ccac?[_0xa5ccac]:[],'tdx':_0x3b474b});gracefulExit(_0x78494e);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x26d))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x337))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x370),a2_0x3474ff(0x24b))[a2_0x3474ff(0x2cb)]('--jsonl',a2_0x3474ff(0x2c1))['action'](async(_0x29cfb4,_0x47f238)=>{const _0x4948b2=new ParentSegmentFieldsCommand(),_0x31901c=program['opts'](),_0x4a9ae1=await createTDXInstance(_0x31901c),_0xb2261c=await _0x4948b2['run']({'options':{..._0x31901c,..._0x47f238},'args':_0x29cfb4?[_0x29cfb4]:[],'tdx':_0x4a9ae1});gracefulExit(_0xb2261c);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1d2))['description']('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2bf),a2_0x3474ff(0x42a))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x370),'Output\x20as\x20JSON')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3b4),a2_0x3474ff(0x2c1))['action'](async(_0x2ab383,_0x240839)=>{const _0x377a4e=a2_0x3474ff,_0x5efca0=new ParentSegmentViewCommand(),_0x49f9a7=program['opts'](),_0xeb6831=await createTDXInstance(_0x49f9a7),_0x384a2a=await _0x5efca0[_0x377a4e(0x1ef)]({'options':{..._0x49f9a7,..._0x240839},'args':_0x2ab383?[_0x2ab383]:[],'tdx':_0xeb6831});gracefulExit(_0x384a2a);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x39f))[a2_0x3474ff(0x2be)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2ba),'Output\x20file\x20path')['option'](a2_0x3474ff(0x370),a2_0x3474ff(0x24b))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3b4),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x1f4b7a,_0x159d39)=>{const _0x1011bb=a2_0x3474ff,_0x45c0ca=new ParentSegmentDescCommand(),_0x276a5f=program['opts'](),_0x59a6a2=await createTDXInstance(_0x276a5f),_0x1758d6=await _0x45c0ca[_0x1011bb(0x1ef)]({'options':{..._0x276a5f,..._0x159d39},'args':_0x1f4b7a?[_0x1f4b7a]:[],'tdx':_0x59a6a2});gracefulExit(_0x1758d6);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1c6))['description'](a2_0x3474ff(0x404))[a2_0x3474ff(0x2cb)]('--json','Output\x20as\x20JSON')['option']('--jsonl',a2_0x3474ff(0x2c1))[a2_0x3474ff(0x35b)](async(_0x1d525e,_0x1903e5)=>{const _0x2e7657=a2_0x3474ff,_0x9086e9=new ParentSegmentSQLCommand(),_0x3ec3b2=program[_0x2e7657(0x2ca)](),_0x15f6e3=await createTDXInstance(_0x3ec3b2),_0x10b0b2=await _0x9086e9[_0x2e7657(0x1ef)]({'options':{..._0x3ec3b2,..._0x1903e5},'args':_0x1d525e?[_0x1d525e]:[],'tdx':_0x15f6e3});gracefulExit(_0x10b0b2);}),parentSegmentCmd['command']('show\x20[name]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x276))['option'](a2_0x3474ff(0x222),'Limit\x20number\x20of\x20rows')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x370),'Output\x20as\x20JSON')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3b4),a2_0x3474ff(0x2c1))[a2_0x3474ff(0x35b)](async(_0xc4d14c,_0x321d6b)=>{const _0x2fd8b5=a2_0x3474ff,_0x3f49a4=new ParentSegmentShowCommand(),_0x49b346=program[_0x2fd8b5(0x2ca)](),_0x20d1a1=await createTDXInstance(_0x49b346),_0x1ab89a=await _0x3f49a4[_0x2fd8b5(0x1ef)]({'options':{..._0x49b346,..._0x321d6b},'args':_0xc4d14c?[_0xc4d14c]:[],'tdx':_0x20d1a1});gracefulExit(_0x1ab89a);}),parentSegmentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3f3))['description'](a2_0x3474ff(0x29a))[a2_0x3474ff(0x35b)](async(_0x21f37a,_0x37413c)=>{const _0x7548be=a2_0x3474ff,_0x1d8645=new UseCommand(),_0x2591fd=program[_0x7548be(0x2ca)](),_0xe1e99c=_0x21f37a?['parent_segment',_0x21f37a]:[],_0x23147f=await _0x1d8645[_0x7548be(0x1ef)]({'options':{..._0x2591fd,..._0x37413c},'args':_0xe1e99c,'tdx':null});gracefulExit(_0x23147f);});const psRtCmd=parentSegmentCmd['command']('rt')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x389));psRtCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x586f47,_0x3d28fa)=>{const _0x2e22ed=a2_0x3474ff,_0x317570=new PSRtListCommand(),_0x3714d4=program['opts'](),_0x2a9cb7=await createTDXInstance(_0x3714d4),_0x597005=await _0x317570[_0x2e22ed(0x1ef)]({'options':{..._0x3714d4,..._0x3d28fa},'args':_0x586f47?[_0x586f47]:[],'tdx':_0x2a9cb7});gracefulExit(_0x597005);}),psRtCmd['command']('validate\x20[name]')['description'](a2_0x3474ff(0x414))[a2_0x3474ff(0x35b)](async(_0x52352b,_0x30a266)=>{const _0x14c66b=a2_0x3474ff,_0x144330=new PSRtValidateCommand(),_0x5e7765=program[_0x14c66b(0x2ca)](),_0x16b7a7=await createTDXInstance(_0x5e7765),_0x2821a5=await _0x144330[_0x14c66b(0x1ef)]({'options':{..._0x5e7765,..._0x30a266},'args':_0x52352b?[_0x52352b]:[],'tdx':_0x16b7a7});gracefulExit(_0x2821a5);});const parentRtCmd=parentCmd[a2_0x3474ff(0x3ab)]('rt',{'hidden':!![]})['description']('RT\x202.0\x20configuration\x20management');parentRtCmd[a2_0x3474ff(0x3ab)]('list\x20[pattern]')[a2_0x3474ff(0x2be)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x8e810b,_0x22574c)=>{const _0xd1f132=a2_0x3474ff,_0x2d3a17=new PSRtListCommand(),_0x5dbe72=program[_0xd1f132(0x2ca)](),_0x310c1e=await createTDXInstance(_0x5dbe72),_0x3c3f10=await _0x2d3a17['run']({'options':{..._0x5dbe72,..._0x22574c},'args':_0x8e810b?[_0x8e810b]:[],'tdx':_0x310c1e});gracefulExit(_0x3c3f10);}),parentRtCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x39e))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x414))['action'](async(_0x2b9a09,_0x3d15b4)=>{const _0x3480b5=a2_0x3474ff,_0x670cce=new PSRtValidateCommand(),_0x56fb59=program[_0x3480b5(0x2ca)](),_0x4cd0df=await createTDXInstance(_0x56fb59),_0x2f315d=await _0x670cce[_0x3480b5(0x1ef)]({'options':{..._0x56fb59,..._0x3d15b4},'args':_0x2b9a09?[_0x2b9a09]:[],'tdx':_0x4cd0df});gracefulExit(_0x2f315d);});const psPzCmd=parentSegmentCmd['command']('pz')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3c5));psPzCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x41c))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2f4))[a2_0x3474ff(0x35b)](async(_0x20daeb,_0x145766)=>{const _0x370e30=a2_0x3474ff,_0x3e0ef0=new PSPzListCommand(),_0x14b739=program[_0x370e30(0x2ca)](),_0x1e9bd4=await createTDXInstance(_0x14b739),_0x1e2061=await _0x3e0ef0[_0x370e30(0x1ef)]({'options':{..._0x14b739,..._0x145766},'args':_0x20daeb?[_0x20daeb]:[],'tdx':_0x1e9bd4});gracefulExit(_0x1e2061);}),psPzCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x40a))[a2_0x3474ff(0x2be)]('Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3474ff(0x35b)](async(_0x185f06,_0x39b0df)=>{const _0x59217b=a2_0x3474ff,_0x19c6d1=new PSPzInitCommand(),_0xdc01d1=program[_0x59217b(0x2ca)](),_0x5b8da6=await createTDXInstance(_0xdc01d1),_0x5e4641=await _0x19c6d1[_0x59217b(0x1ef)]({'options':{..._0xdc01d1,..._0x39b0df},'args':_0x185f06?[_0x185f06]:[],'tdx':_0x5b8da6});gracefulExit(_0x5e4641);});const parentPzCmd=parentCmd['command']('pz',{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3c5));parentPzCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x41c))[a2_0x3474ff(0x2be)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3474ff(0x35b)](async(_0x5d5a56,_0x1990fe)=>{const _0x371033=a2_0x3474ff,_0x5035df=new PSPzListCommand(),_0x1d5b73=program[_0x371033(0x2ca)](),_0x34dad4=await createTDXInstance(_0x1d5b73),_0x21d7db=await _0x5035df[_0x371033(0x1ef)]({'options':{..._0x1d5b73,..._0x1990fe},'args':_0x5d5a56?[_0x5d5a56]:[],'tdx':_0x34dad4});gracefulExit(_0x21d7db);}),parentPzCmd['command'](a2_0x3474ff(0x40a))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x40c))[a2_0x3474ff(0x35b)](async(_0x2ae283,_0x50901f)=>{const _0x38bc69=a2_0x3474ff,_0x2a2497=new PSPzInitCommand(),_0x456336=program[_0x38bc69(0x2ca)](),_0x2c3a98=await createTDXInstance(_0x456336),_0x201a71=await _0x2a2497[_0x38bc69(0x1ef)]({'options':{..._0x456336,..._0x50901f},'args':_0x2ae283?[_0x2ae283]:[],'tdx':_0x2c3a98});gracefulExit(_0x201a71);}),parentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2c2))[a2_0x3474ff(0x2be)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3474ff(0x23a)](a2_0x3474ff(0x233),a2_0x3474ff(0x314))[a2_0x3474ff(0x23a)]('--table\x20<table>',a2_0x3474ff(0x2da))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x285),a2_0x3474ff(0x319))['option'](a2_0x3474ff(0x3a0),a2_0x3474ff(0x362))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x40f),'Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)')[a2_0x3474ff(0x2cb)]('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1f4),'Attributes\x20as\x20JSON\x20string')[a2_0x3474ff(0x2cb)]('--attributes-file\x20<file>',a2_0x3474ff(0x3b9))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1be),a2_0x3474ff(0x2ea))['option'](a2_0x3474ff(0x419),a2_0x3474ff(0x1ee))['option'](a2_0x3474ff(0x3c9),a2_0x3474ff(0x1df))[a2_0x3474ff(0x2cb)]('--customer-group-file\x20<file>','Customer\x20group\x20from\x20JSON\x20file')[a2_0x3474ff(0x35b)](async(_0x443e7d,_0x4df3a7)=>{const _0x4b4c34=new ParentSegmentCreateCommand(),_0x3762a0=program['opts'](),_0x3f1757=await createTDXInstance(_0x3762a0),_0x114091=await _0x4b4c34['run']({'options':{..._0x3762a0,..._0x4df3a7},'args':[_0x443e7d],'tdx':_0x3f1757});gracefulExit(_0x114091);}),parentCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x20d))['description']('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x285),a2_0x3474ff(0x328))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3a0),a2_0x3474ff(0x259))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x40f),a2_0x3474ff(0x224))['option'](a2_0x3474ff(0x420),a2_0x3474ff(0x412))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a9),'Add\x20attributes\x20as\x20JSON\x20string')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2a5),a2_0x3474ff(0x208))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3e6),'Add\x20behaviors\x20as\x20JSON\x20string')[a2_0x3474ff(0x2cb)]('--add-behaviors-file\x20<file>',a2_0x3474ff(0x2e4))['action'](async(_0x5c8051,_0x42aed1)=>{const _0x55d152=a2_0x3474ff,_0x575a04=new ParentSegmentUpdateCommand(),_0x39419=program[_0x55d152(0x2ca)](),_0x3c2c84=await createTDXInstance(_0x39419),_0x943616=await _0x575a04[_0x55d152(0x1ef)]({'options':{..._0x39419,..._0x42aed1},'args':[_0x5c8051],'tdx':_0x3c2c84});gracefulExit(_0x943616);}),folderCmd['command'](a2_0x3474ff(0x3da))[a2_0x3474ff(0x2be)]('Create\x20segment\x20folder')[a2_0x3474ff(0x2cb)]('--description\x20<text>',a2_0x3474ff(0x246))['option'](a2_0x3474ff(0x23b),a2_0x3474ff(0x2d3))[a2_0x3474ff(0x35b)](async(_0x4f22ad,_0x3ac09c,_0xd912a5)=>{const _0x11baf9=a2_0x3474ff,_0xffa469=new SegmentFolderCreateCommand(),_0x5615ce=program['opts'](),_0x4a784c=await createTDXInstance(_0x5615ce),_0x3ead93=await _0xffa469[_0x11baf9(0x1ef)]({'options':{..._0x5615ce,..._0xd912a5},'args':[_0x4f22ad,_0x3ac09c],'tdx':_0x4a784c});gracefulExit(_0x3ead93);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3a6))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x283))[a2_0x3474ff(0x35b)](async(_0x43c014,_0x4fae2e)=>{const _0x5c1d19=a2_0x3474ff,_0xe61853=new ActivationsCommand(),_0x3d1ad0=program[_0x5c1d19(0x2ca)](),_0x4c17e8=await createTDXInstance(_0x3d1ad0),_0x4610f5=await _0xe61853[_0x5c1d19(0x1ef)]({'options':{..._0x3d1ad0,..._0x4fae2e},'args':[_0x43c014],'tdx':_0x4c17e8});gracefulExit(_0x4610f5);});const workflowCmd=program[a2_0x3474ff(0x3ab)]('workflow')['alias']('wf')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x28a)),wfProjectCmd=workflowCmd[a2_0x3474ff(0x3ab)]('project')['description'](a2_0x3474ff(0x2db)),wfProjectListAction=async(_0xa32438,_0x184679)=>{const _0x3de50c=a2_0x3474ff,_0x3a6118=new WorkflowProjectsCommand(),_0x44c86f=program['opts'](),_0x561890=await createTDXInstance(_0x44c86f),_0x244062=await _0x3a6118[_0x3de50c(0x1ef)]({'options':{..._0x44c86f,..._0x184679},'args':_0xa32438?[_0xa32438]:[],'tdx':_0x561890});gracefulExit(_0x244062);};wfProjectCmd[a2_0x3474ff(0x3ab)]('list\x20[pattern]')[a2_0x3474ff(0x2be)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3474ff(0x35b)](wfProjectListAction),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x27c))['description'](a2_0x3474ff(0x263))[a2_0x3474ff(0x35b)](wfProjectListAction);const wfWorkflowListAction=async(_0x2562f9,_0x204c50)=>{const _0x430688=a2_0x3474ff,_0x5284f7=new WorkflowWorkflowsCommand(),_0x2ffd87=program[_0x430688(0x2ca)](),_0x1ab8b4=await createTDXInstance(_0x2ffd87),_0x3d9eb=await _0x5284f7['run']({'options':{..._0x2ffd87,..._0x204c50},'args':_0x2562f9?[_0x2562f9]:[],'tdx':_0x1ab8b4});gracefulExit(_0x3d9eb);};workflowCmd['command'](a2_0x3474ff(0x3af))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3b7))[a2_0x3474ff(0x35b)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3474ff(0x3ab)]('session')['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0xc9fcac,_0x2e189c)=>{const _0x4bce95=a2_0x3474ff,_0x23033d=new WorkflowSessionsCommand(),_0x743053=program['opts'](),_0x284030=await createTDXInstance(_0x743053),_0x671a0=await _0x23033d[_0x4bce95(0x1ef)]({'options':{..._0x743053,..._0x2e189c},'args':_0xc9fcac?[_0xc9fcac]:[],'tdx':_0x284030});gracefulExit(_0x671a0);};wfSessionCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1d8))['description'](a2_0x3474ff(0x3d0))['option'](a2_0x3474ff(0x363),a2_0x3474ff(0x35d))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3ac),a2_0x3474ff(0x27e))[a2_0x3474ff(0x2cb)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')['action'](wfSessionListAction),workflowCmd['command'](a2_0x3474ff(0x215))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x410))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x363),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3ac),a2_0x3474ff(0x27e))[a2_0x3474ff(0x2cb)]('--to\x20<timestamp>','End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3474ff(0x35b)](wfSessionListAction);const wfAttemptListAction=async(_0x49f76f,_0x5c5aee)=>{const _0x3c39c1=a2_0x3474ff,_0x5c0dc1=new WorkflowAttemptsCommand(),_0x48313e=program['opts'](),_0x2eae5d=await createTDXInstance(_0x48313e),_0x3a69cb=await _0x5c0dc1[_0x3c39c1(0x1ef)]({'options':{..._0x48313e,..._0x5c5aee},'args':_0x49f76f?[_0x49f76f]:[],'tdx':_0x2eae5d});gracefulExit(_0x3a69cb);},attemptCmd=workflowCmd['command'](a2_0x3474ff(0x422))['description'](a2_0x3474ff(0x31b))[a2_0x3474ff(0x239)](a2_0x3474ff(0x3ee),'Attempt\x20ID')[a2_0x3474ff(0x239)]('[action]',a2_0x3474ff(0x41f))[a2_0x3474ff(0x239)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1f5),a2_0x3474ff(0x30e))['option'](a2_0x3474ff(0x227),a2_0x3474ff(0x2bc))['option']('--resume-from\x20<task>',a2_0x3474ff(0x31e))['option']('--params\x20<json>',a2_0x3474ff(0x408))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2ce),a2_0x3474ff(0x378))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x28c),a2_0x3474ff(0x1bb))[a2_0x3474ff(0x35b)](async(_0x2b2b16,_0x451248,_0x23ff8b,_0x580b68)=>{const _0x3974a0=a2_0x3474ff;if(_0x2b2b16==='list'){await wfAttemptListAction(_0x451248,_0x580b68);return;}if(!_0x2b2b16){attemptCmd[_0x3974a0(0x39c)]();return;}const _0x7d9c18=program[_0x3974a0(0x2ca)](),_0x1023f1=await createTDXInstance(_0x7d9c18);let _0x5ecc59=0x0;if(!_0x451248){const _0x38008d=new WorkflowAttemptCommand();_0x5ecc59=await _0x38008d[_0x3974a0(0x1ef)]({'options':{..._0x7d9c18,..._0x580b68},'args':[_0x2b2b16],'tdx':_0x1023f1});}else{if(_0x451248===_0x3974a0(0x204)){const _0x1fa8e6=new WorkflowLogsCommand();_0x5ecc59=await _0x1fa8e6['run']({'options':{..._0x7d9c18,..._0x580b68},'args':_0x23ff8b?[_0x2b2b16,_0x23ff8b]:[_0x2b2b16],'tdx':_0x1023f1});}else{if(_0x451248===_0x3974a0(0x1d9)){const _0x2fed5d=new WorkflowTasksCommand();_0x5ecc59=await _0x2fed5d[_0x3974a0(0x1ef)]({'options':{..._0x7d9c18,..._0x580b68},'args':[_0x2b2b16],'tdx':_0x1023f1});}else{if(_0x451248==='kill'){const _0x2815f5=new WorkflowKillCommand();_0x5ecc59=await _0x2815f5['run']({'options':{..._0x7d9c18,..._0x580b68},'args':[_0x2b2b16],'tdx':_0x1023f1});}else{if(_0x451248===_0x3974a0(0x338)){const _0x3c7463=new WorkflowRetryCommand();_0x5ecc59=await _0x3c7463[_0x3974a0(0x1ef)]({'options':{..._0x7d9c18,..._0x580b68},'args':['attempt:'+_0x2b2b16],'tdx':_0x1023f1});}else console[_0x3974a0(0x289)](_0x3974a0(0x3fe)+_0x451248),console[_0x3974a0(0x289)]('Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry'),_0x5ecc59=0x1;}}}}gracefulExit(_0x5ecc59);});attemptCmd[a2_0x3474ff(0x3ab)]('list\x20[project]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1da))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x28c),a2_0x3474ff(0x26f))['action'](wfAttemptListAction),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x25f))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x292))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x28c),a2_0x3474ff(0x26f))[a2_0x3474ff(0x35b)](wfAttemptListAction),workflowCmd['command']('timeline\x20[project.workflow]')[a2_0x3474ff(0x2be)]('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')['option'](a2_0x3474ff(0x347),a2_0x3474ff(0x1cb))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x221),a2_0x3474ff(0x2ee))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x33f),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x3474ff(0x35b)](async(_0x1870ff,_0x273733)=>{const _0x40aef7=a2_0x3474ff,_0x8caf91=new WorkflowTimelineCommand(),_0x4c2f87=program[_0x40aef7(0x2ca)](),_0x380954=await createTDXInstance(_0x4c2f87),_0x6f44c=await _0x8caf91['run']({'options':{..._0x4c2f87,..._0x273733},'args':_0x1870ff?[_0x1870ff]:[],'tdx':_0x380954});gracefulExit(_0x6f44c);}),workflowCmd[a2_0x3474ff(0x3ab)]('retry\x20<session-id>')['description'](a2_0x3474ff(0x2b9))['option']('--from-task\x20<task>','Resume\x20from\x20specific\x20task')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2d1),a2_0x3474ff(0x379))['action'](async(_0x5460a4,_0x19ff73)=>{const _0x407971=a2_0x3474ff,_0x1ef5d7=new WorkflowRetryCommand(),_0x5d3966=program['opts'](),_0xbf155c=await createTDXInstance(_0x5d3966),_0x55da84=await _0x1ef5d7[_0x407971(0x1ef)]({'options':{..._0x5d3966,..._0x19ff73},'args':[_0x5460a4],'tdx':_0xbf155c});gracefulExit(_0x55da84);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2e0))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2c4))[a2_0x3474ff(0x2cb)]('--param\x20<key=value>',a2_0x3474ff(0x418),(_0x27692d,_0x1a757e=[])=>[..._0x1a757e,_0x27692d],[])[a2_0x3474ff(0x2cb)]('--session-time\x20<time>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x3474ff(0x35b)](async(_0x2eb872,_0x276eef)=>{const _0xe01d56=a2_0x3474ff,_0x2e9441=new WorkflowRunCommand(),_0x6cb49d=program[_0xe01d56(0x2ca)](),_0x4bef00=await createTDXInstance(_0x6cb49d),_0x546d60=await _0x2e9441['run']({'options':{..._0x6cb49d,..._0x276eef},'args':_0x2eb872?[_0x2eb872]:[],'tdx':_0x4bef00});gracefulExit(_0x546d60);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3a7))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x426))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x265),a2_0x3474ff(0x3ea))['action'](async(_0x197e5d,_0x1f5b8e,_0x5d4a18)=>{const _0x1db416=a2_0x3474ff,_0x5cbb41=new WorkflowDownloadCommand(),_0x1d0b59=program[_0x1db416(0x2ca)](),_0x2e747f=await createTDXInstance(_0x1d0b59),_0x556240=await _0x5cbb41[_0x1db416(0x1ef)]({'options':{..._0x1d0b59,..._0x5d4a18},'args':[_0x197e5d,_0x1f5b8e||'.'],'tdx':_0x2e747f});gracefulExit(_0x556240);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1eb))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3dd))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x265),a2_0x3474ff(0x3c6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38a),a2_0x3474ff(0x252))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),'Skip\x20confirmation\x20prompt')[a2_0x3474ff(0x35b)](async(_0x1e3aeb,_0x2b8914,_0x44a842)=>{const _0x3f0b19=a2_0x3474ff,_0x35476b=new WorkflowPullCommand(),_0x1ec773=program[_0x3f0b19(0x2ca)](),_0x53199e=await createTDXInstance(_0x1ec773),_0x354f25=await _0x35476b[_0x3f0b19(0x1ef)]({'options':{..._0x1ec773,..._0x44a842},'args':_0x2b8914?[_0x1e3aeb,_0x2b8914]:[_0x1e3aeb],'tdx':_0x53199e});gracefulExit(_0x354f25);}),workflowCmd[a2_0x3474ff(0x3ab)]('push\x20[source-dir]')['description'](a2_0x3474ff(0x39a))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x265),a2_0x3474ff(0x2fd))[a2_0x3474ff(0x2cb)]('--dry-run','Preview\x20changes\x20without\x20pushing')[a2_0x3474ff(0x2cb)]('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')['option'](a2_0x3474ff(0x3dc),'Skip\x20confirmation\x20prompt')[a2_0x3474ff(0x35b)](async(_0x37a239,_0x2ddd4d)=>{const _0x49d07d=a2_0x3474ff,_0x5c5589=new WorkflowPushCommand(),_0x182ca9=program[_0x49d07d(0x2ca)](),_0x245ca9=await createTDXInstance(_0x182ca9),_0x32fd21=await _0x5c5589[_0x49d07d(0x1ef)]({'options':{..._0x182ca9,..._0x2ddd4d},'args':_0x37a239?[_0x37a239]:[],'tdx':_0x245ca9});gracefulExit(_0x32fd21);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x253))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x325))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2f7),a2_0x3474ff(0x209))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x265),a2_0x3474ff(0x2e1))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3bc),a2_0x3474ff(0x3b3))[a2_0x3474ff(0x35b)](async(_0x3d01db,_0x3ba8e9)=>{const _0x13bdc3=a2_0x3474ff,_0x24b56c=new WorkflowUploadCommand(),_0x40a7b7=program['opts'](),_0x43d713=await createTDXInstance(_0x40a7b7),_0x573670=await _0x24b56c[_0x13bdc3(0x1ef)]({'options':{..._0x40a7b7,..._0x3ba8e9},'args':_0x3d01db?[_0x3d01db]:[],'tdx':_0x43d713});gracefulExit(_0x573670);}),workflowCmd[a2_0x3474ff(0x3ab)]('clone\x20[source-dir]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x21d))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2f7),a2_0x3474ff(0x364))[a2_0x3474ff(0x2cb)]('--revision\x20<revision>',a2_0x3474ff(0x2fd))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38a),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3bc),a2_0x3474ff(0x3b3))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](async(_0x18f87c,_0x48ca32)=>{const _0x4a35ab=a2_0x3474ff,_0x1a5be6=new WorkflowCloneCommand(),_0x69557f=program[_0x4a35ab(0x2ca)](),_0x2a729f=await createTDXInstance(_0x69557f),_0x822c89=await _0x1a5be6[_0x4a35ab(0x1ef)]({'options':{..._0x69557f,..._0x48ca32},'args':_0x18f87c?[_0x18f87c]:[],'tdx':_0x2a729f});gracefulExit(_0x822c89);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3eb))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3fb))[a2_0x3474ff(0x35b)](async(_0x45ac52,_0x3485fe)=>{const _0x14d5a1=a2_0x3474ff,_0x53a283=new WorkflowDeleteCommand(),_0x1e54e4=program[_0x14d5a1(0x2ca)](),_0x44b160=await createTDXInstance(_0x1e54e4),_0x48150a=await _0x53a283[_0x14d5a1(0x1ef)]({'options':{..._0x1e54e4,..._0x3485fe},'args':[_0x45ac52],'tdx':_0x44b160});gracefulExit(_0x48150a);}),workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x234))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x20e))[a2_0x3474ff(0x2cb)]('--clear','Clear\x20workflow\x20project\x20context')[a2_0x3474ff(0x35b)](async(_0x39c108,_0x293890)=>{const _0x5442f1=a2_0x3474ff,_0x47792e=new WorkflowUseCommand(),_0x5ecc58=program[_0x5442f1(0x2ca)](),_0x286cc0=await createTDXInstance(_0x5ecc58),_0x398498=await _0x47792e[_0x5442f1(0x1ef)]({'options':{..._0x5ecc58,..._0x293890},'args':_0x39c108?[_0x39c108]:[],'tdx':_0x286cc0});gracefulExit(_0x398498);});const wfSecretsCmd=workflowCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x394))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x387));wfSecretsCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1d8))['description'](a2_0x3474ff(0x242))['action'](async(_0x33e335,_0x87a283)=>{const _0x3679f0=a2_0x3474ff,_0x2fc72c=new WorkflowSecretsListCommand(),_0xd3a275=program['opts'](),_0x1862fa=await createTDXInstance(_0xd3a275),_0x13bae7=await _0x2fc72c[_0x3679f0(0x1ef)]({'options':{..._0xd3a275,..._0x87a283},'args':_0x33e335?[_0x33e335]:[],'tdx':_0x1862fa});gracefulExit(_0x13bae7);}),wfSecretsCmd[a2_0x3474ff(0x3ab)]('set\x20<args...>')[a2_0x3474ff(0x2be)]('Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)')[a2_0x3474ff(0x35b)](async(_0x21ed73,_0x29252a)=>{const _0x2b4d9e=a2_0x3474ff,_0x4ee1f2=new WorkflowSecretsSetCommand(),_0x3b3e72=program[_0x2b4d9e(0x2ca)](),_0x4b4f22=await createTDXInstance(_0x3b3e72),_0x378263=await _0x4ee1f2[_0x2b4d9e(0x1ef)]({'options':{..._0x3b3e72,..._0x29252a},'args':_0x21ed73,'tdx':_0x4b4f22});gracefulExit(_0x378263);}),wfSecretsCmd['command'](a2_0x3474ff(0x251))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1d6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),'Skip\x20confirmation\x20prompt')['action'](async(_0x3ef952,_0x22f32f)=>{const _0x46b648=a2_0x3474ff,_0x3fe24a=new WorkflowSecretsDeleteCommand(),_0x2c651d=program[_0x46b648(0x2ca)](),_0x3d6a22=await createTDXInstance(_0x2c651d),_0x1c4596=await _0x3fe24a['run']({'options':{..._0x2c651d,..._0x22f32f},'args':_0x3ef952,'tdx':_0x3d6a22});gracefulExit(_0x1c4596);});const jobCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3aa))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x326)),jobListAction=async _0xa87de3=>{const _0x466c18=a2_0x3474ff,_0x2db37b=new JobListCommand(),_0x22d435=program['opts'](),_0x5e409c=await createTDXInstance(_0x22d435),_0x534379=await _0x2db37b[_0x466c18(0x1ef)]({'options':{..._0x22d435,..._0xa87de3},'args':[],'tdx':_0x5e409c});gracefulExit(_0x534379);};jobCmd[a2_0x3474ff(0x3ab)]('list')['description'](a2_0x3474ff(0x290))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x363),a2_0x3474ff(0x1c7))[a2_0x3474ff(0x35b)](jobListAction),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x38e),{'hidden':!![]})[a2_0x3474ff(0x2be)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x363),a2_0x3474ff(0x1c7))[a2_0x3474ff(0x35b)](jobListAction),jobCmd[a2_0x3474ff(0x3ab)]('show\x20<job-id>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2c9))[a2_0x3474ff(0x35b)](async(_0x43eb85,_0x1c65a1)=>{const _0x47eec6=a2_0x3474ff,_0x1fb43c=new JobShowCommand(),_0x25d67a=program[_0x47eec6(0x2ca)](),_0x650c71=await createTDXInstance(_0x25d67a),_0x41350e=await _0x1fb43c[_0x47eec6(0x1ef)]({'options':{..._0x25d67a,..._0x1c65a1},'args':[_0x43eb85],'tdx':_0x650c71});gracefulExit(_0x41350e);}),jobCmd[a2_0x3474ff(0x3ab)]('kill\x20<job-id>')[a2_0x3474ff(0x2be)]('Kill\x20a\x20job')['action'](async(_0x419e53,_0x4096f9)=>{const _0x4b92f9=a2_0x3474ff,_0x200bdb=new JobKillCommand(),_0x2099c7=program[_0x4b92f9(0x2ca)](),_0x590e1=await createTDXInstance(_0x2099c7),_0x169817=await _0x200bdb[_0x4b92f9(0x1ef)]({'options':{..._0x2099c7,..._0x4096f9},'args':[_0x419e53],'tdx':_0x590e1});gracefulExit(_0x169817);}),jobCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x396))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x37e))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x342),a2_0x3474ff(0x260),a2_0x3474ff(0x3c1))['option'](a2_0x3474ff(0x262),a2_0x3474ff(0x271))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x213),a2_0x3474ff(0x278),a2_0x3474ff(0x216))[a2_0x3474ff(0x35b)](async(_0x5d758f,_0x301140)=>{const _0xa7a6f9=a2_0x3474ff,_0x2231e0=new JobSubmitCommand(),_0x542233=program[_0xa7a6f9(0x2ca)](),_0x17e260=await createTDXInstance(_0x542233),_0x4f9be6=await _0x2231e0[_0xa7a6f9(0x1ef)]({'options':{..._0x542233,..._0x301140},'args':_0x5d758f?[_0x5d758f]:[],'tdx':_0x17e260});gracefulExit(_0x4f9be6);}),jobCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2cd))[a2_0x3474ff(0x2be)]('Get\x20job\x20results')['action'](async(_0x310d4c,_0x1de0d2)=>{const _0x371c44=a2_0x3474ff,_0x2332f9=new JobResultCommand(),_0x57b8f9=program['opts'](),_0x16b91e=await createTDXInstance(_0x57b8f9),_0x25d7d2=await _0x2332f9[_0x371c44(0x1ef)]({'options':{..._0x57b8f9,..._0x1de0d2},'args':[_0x310d4c],'tdx':_0x16b91e});gracefulExit(_0x25d7d2);});const scheduleCmd=jobCmd['command']('schedule')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x435));scheduleCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))['description'](a2_0x3474ff(0x21f))[a2_0x3474ff(0x35b)](async(_0x13fcc0,_0x48d61d)=>{const _0x52cc5d=a2_0x3474ff,_0x1dd559=new ScheduleListCommand(),_0x597896=program[_0x52cc5d(0x2ca)](),_0x1acc09=await createTDXInstance(_0x597896),_0x468ab4=await _0x1dd559[_0x52cc5d(0x1ef)]({'options':{..._0x597896,..._0x48d61d},'args':_0x13fcc0?[_0x13fcc0]:[],'tdx':_0x1acc09});gracefulExit(_0x468ab4);}),scheduleCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x430))[a2_0x3474ff(0x2be)]('Show\x20schedule\x20details')[a2_0x3474ff(0x35b)](async(_0x1bfe8f,_0x29c260)=>{const _0x389c9f=a2_0x3474ff,_0xf11e36=new ScheduleShowCommand(),_0x348901=program[_0x389c9f(0x2ca)](),_0x4b13ca=await createTDXInstance(_0x348901),_0x3c465a=await _0xf11e36[_0x389c9f(0x1ef)]({'options':{..._0x348901,..._0x29c260},'args':[_0x1bfe8f],'tdx':_0x4b13ca});gracefulExit(_0x3c465a);}),scheduleCmd['command'](a2_0x3474ff(0x2c2))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x343))[a2_0x3474ff(0x23a)](a2_0x3474ff(0x310),a2_0x3474ff(0x324))[a2_0x3474ff(0x23a)](a2_0x3474ff(0x262),'Read\x20query\x20from\x20file')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x416),a2_0x3474ff(0x33d),a2_0x3474ff(0x3c1))['option']('--cron\x20<expression>',a2_0x3474ff(0x29e))[a2_0x3474ff(0x2cb)]('--timezone\x20<tz>',a2_0x3474ff(0x202))[a2_0x3474ff(0x2cb)]('--delay\x20<seconds>',a2_0x3474ff(0x1bc))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38d),a2_0x3474ff(0x2bd))['option']('--retry-limit\x20<0~32>',a2_0x3474ff(0x250))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x22d),a2_0x3474ff(0x2bb))['option'](a2_0x3474ff(0x30f),a2_0x3474ff(0x30d))[a2_0x3474ff(0x35b)](async(_0x3ad387,_0x3dddae)=>{const _0x54bef7=a2_0x3474ff,_0x292c27=new ScheduleCreateCommand(),_0x594acd=program[_0x54bef7(0x2ca)](),_0x1b7829=await createTDXInstance(_0x594acd),_0x1893ff=await _0x292c27[_0x54bef7(0x1ef)]({'options':{..._0x594acd,..._0x3dddae},'args':[_0x3ad387],'tdx':_0x1b7829});gracefulExit(_0x1893ff);}),scheduleCmd['command']('update\x20<name>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2ae))['option'](a2_0x3474ff(0x310),a2_0x3474ff(0x324))[a2_0x3474ff(0x2cb)]('-f,\x20--file\x20<path>',a2_0x3474ff(0x271))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x416),'Query\x20type:\x20trino\x20or\x20hive')[a2_0x3474ff(0x2cb)]('--cron\x20<expression>',a2_0x3474ff(0x29e))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x420),a2_0x3474ff(0x301))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2d8),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38d),a2_0x3474ff(0x2bd))[a2_0x3474ff(0x2cb)]('--retry-limit\x20<0~32>',a2_0x3474ff(0x250))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x22d),'Query\x20engine\x20version')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x30f),a2_0x3474ff(0x30d))[a2_0x3474ff(0x35b)](async(_0x3e63c2,_0x53ac15)=>{const _0x1b1eac=a2_0x3474ff,_0x17ecd9=new ScheduleUpdateCommand(),_0x7b6389=program['opts'](),_0x570024=await createTDXInstance(_0x7b6389),_0x33fa11=await _0x17ecd9[_0x1b1eac(0x1ef)]({'options':{..._0x7b6389,..._0x53ac15},'args':[_0x3e63c2],'tdx':_0x570024});gracefulExit(_0x33fa11);}),scheduleCmd['command'](a2_0x3474ff(0x41d))['description'](a2_0x3474ff(0x36b))['action'](async(_0x5e19b5,_0x281954)=>{const _0x4900ad=a2_0x3474ff,_0xe29ac=new ScheduleDeleteCommand(),_0x27f428=program[_0x4900ad(0x2ca)](),_0x4bd162=await createTDXInstance(_0x27f428),_0x568ff2=await _0xe29ac[_0x4900ad(0x1ef)]({'options':{..._0x27f428,..._0x281954},'args':[_0x5e19b5],'tdx':_0x4bd162});gracefulExit(_0x568ff2);}),scheduleCmd[a2_0x3474ff(0x3ab)]('run\x20<name>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x21c))['option'](a2_0x3474ff(0x2fb),a2_0x3474ff(0x40d))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x33a),a2_0x3474ff(0x288))[a2_0x3474ff(0x35b)](async(_0x12b1db,_0x3ab3c0)=>{const _0x4d6a54=new ScheduleRunCommand(),_0x320242=program['opts'](),_0x4418d4=await createTDXInstance(_0x320242),_0x1ac703=await _0x4d6a54['run']({'options':{..._0x320242,..._0x3ab3c0},'args':[_0x12b1db],'tdx':_0x4418d4});gracefulExit(_0x1ac703);}),scheduleCmd[a2_0x3474ff(0x3ab)]('history\x20<name>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2ef))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x212),a2_0x3474ff(0x307))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2d5),a2_0x3474ff(0x34a))[a2_0x3474ff(0x35b)](async(_0x4881e1,_0x136bbb)=>{const _0x63b870=a2_0x3474ff,_0x216906=new ScheduleHistoryCommand(),_0x3ec714=program['opts'](),_0x46a5cd=await createTDXInstance(_0x3ec714),_0x35000d=await _0x216906[_0x63b870(0x1ef)]({'options':{..._0x3ec714,..._0x136bbb},'args':[_0x4881e1],'tdx':_0x46a5cd});gracefulExit(_0x35000d);});const llmCmd=program[a2_0x3474ff(0x3ab)]('llm')[a2_0x3474ff(0x2be)]('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x33b))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x329))[a2_0x3474ff(0x35b)](async(_0x123e62,_0x417a83)=>{const _0x2cb87e=a2_0x3474ff,_0x4c9a60=new LLMUseCommand(),_0x5623e2=program[_0x2cb87e(0x2ca)](),_0xdd0de6=await createTDXInstance(_0x5623e2),_0x2aaeae=await _0x4c9a60[_0x2cb87e(0x1ef)]({'options':{..._0x5623e2,..._0x417a83},'args':[_0x123e62],'tdx':_0xdd0de6});gracefulExit(_0x2aaeae);}),llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3e3))['description']('List\x20available\x20LLM\x20models')[a2_0x3474ff(0x35b)](async _0x220fa0=>{const _0x32b597=a2_0x3474ff,_0x47dfa5=new LLMModelsCommand(),_0x585457=program[_0x32b597(0x2ca)](),_0x57fbe4=await createTDXInstance(_0x585457),_0x319540=await _0x47dfa5[_0x32b597(0x1ef)]({'options':{..._0x585457,..._0x220fa0},'args':[],'tdx':_0x57fbe4});gracefulExit(_0x319540);});const projectCmd=llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3ff))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1f1)),llmProjectListAction=async(_0x370f04,_0x1b2dc4)=>{const _0x3bda0b=a2_0x3474ff,_0x459b27=new LLMProjectsCommand(),_0x69f16a=program[_0x3bda0b(0x2ca)](),_0x814647=await createTDXInstance(_0x69f16a),_0x554057=await _0x459b27[_0x3bda0b(0x1ef)]({'options':{..._0x69f16a,..._0x1b2dc4},'args':_0x370f04?[_0x370f04]:[],'tdx':_0x814647});gracefulExit(_0x554057);};projectCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)]('List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3474ff(0x35b)](llmProjectListAction),llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x27c))[a2_0x3474ff(0x2be)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3474ff(0x35b)](llmProjectListAction),projectCmd[a2_0x3474ff(0x3ab)]('create\x20<name>')[a2_0x3474ff(0x2be)]('Create\x20a\x20new\x20LLM\x20project')['option']('--description\x20<text>',a2_0x3474ff(0x3e7))[a2_0x3474ff(0x35b)](async(_0x1cd85e,_0x479584)=>{const _0x959fc0=a2_0x3474ff,_0x293dca=new LLMProjectCreateCommand(),_0x1a86db=program[_0x959fc0(0x2ca)](),_0x4b42a4=await createTDXInstance(_0x1a86db),_0x3b6546=await _0x293dca[_0x959fc0(0x1ef)]({'options':{..._0x1a86db,..._0x479584},'args':[_0x1cd85e],'tdx':_0x4b42a4});gracefulExit(_0x3b6546);}),projectCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x41d))[a2_0x3474ff(0x2be)]('Delete\x20an\x20LLM\x20project')[a2_0x3474ff(0x35b)](async(_0x5995c7,_0x218bd7)=>{const _0xc6eb0d=new LLMProjectDeleteCommand(),_0x322b35=program['opts'](),_0x38fbd3=await createTDXInstance(_0x322b35),_0x22929a=await _0xc6eb0d['run']({'options':{..._0x322b35,..._0x218bd7},'args':[_0x5995c7],'tdx':_0x38fbd3});gracefulExit(_0x22929a);}),projectCmd['command']('backup\x20<name>')[a2_0x3474ff(0x2be)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')['option']('-o,\x20--output\x20<folder>','Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x3474ff(0x38a),a2_0x3474ff(0x349))[a2_0x3474ff(0x35b)](async(_0x53f306,_0x5705b1)=>{const _0x523713=a2_0x3474ff,_0x1e3347=new LLMProjectBackupCommand(),_0x28fbfe=program[_0x523713(0x2ca)](),_0xd0d6a6=await createTDXInstance(_0x28fbfe),_0x2dbb8b=await _0x1e3347[_0x523713(0x1ef)]({'options':{..._0x28fbfe,..._0x5705b1},'args':[_0x53f306],'tdx':_0xd0d6a6});gracefulExit(_0x2dbb8b);}),projectCmd[a2_0x3474ff(0x3ab)]('restore\x20<folder>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x29d))['option'](a2_0x3474ff(0x20b),'New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)')[a2_0x3474ff(0x2cb)]('--dry-run',a2_0x3474ff(0x27f))[a2_0x3474ff(0x35b)](async(_0x910599,_0x2b1e5c)=>{const _0x299ba0=a2_0x3474ff,_0x219047=new LLMProjectRestoreCommand(),_0x1ffc01=program[_0x299ba0(0x2ca)](),_0x185ecb=await createTDXInstance(_0x1ffc01),_0x5cdda0=await _0x219047[_0x299ba0(0x1ef)]({'options':{..._0x1ffc01,..._0x2b1e5c},'args':[_0x910599],'tdx':_0x185ecb});gracefulExit(_0x5cdda0);});const llmAgentListAction=async(_0x3cf93f,_0x98422d)=>{const _0x3c9c7c=a2_0x3474ff,_0x23ff39=new LLMAgentsCommand(),_0x470bc9=program[_0x3c9c7c(0x2ca)](),_0x55eb2b=await createTDXInstance(_0x470bc9),_0x3e56eb=await _0x23ff39[_0x3c9c7c(0x1ef)]({'options':{..._0x470bc9,..._0x98422d},'args':_0x3cf93f?[_0x3cf93f]:[],'tdx':_0x55eb2b});gracefulExit(_0x3e56eb);};llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x24e))[a2_0x3474ff(0x2be)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x3474ff(0x35b)](llmAgentListAction),program[a2_0x3474ff(0x3ab)]('agents\x20[pattern]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3db))[a2_0x3474ff(0x35b)](llmAgentListAction),llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x401))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x427))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x36a),a2_0x3474ff(0x3a2))[a2_0x3474ff(0x35b)](async(_0x56535f,_0x3dd894)=>{const _0x3135ef=a2_0x3474ff,_0x120c5f=new LLMHistoryCommand(),_0x5a214a=program[_0x3135ef(0x2ca)](),_0x5f09aa=await createTDXInstance(_0x5a214a),_0x2be03d=await _0x120c5f['run']({'options':{..._0x5a214a,..._0x3dd894},'args':_0x56535f?[_0x56535f]:[],'tdx':_0x5f09aa});gracefulExit(_0x2be03d);});function a2_0x34c3(){const _0x14e83b=['Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--no-count-population','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','action','view\x20<name-or-path>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Create\x20a\x20new\x20campaign','--reeval','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','beefree','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','--status\x20<status>','Name\x20for\x20the\x20new\x20project\x20(required)','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','profile','isTTY','1271700cuIurc','campaigns\x20[pattern]','--last','Delete\x20a\x20scheduled\x20query','4drTzis','0.7','Show\x20agent\x20details','gitRevision','--json',',\x20version\x20','Show\x20workspace\x20details','catch','Export\x20journey(s)\x20as\x20YAML\x20files','pull\x20[name]','AI-native\x20CLI\x20for\x20Treasure\x20Data','Path\x20is\x20not\x20a\x20directory:\x20','Force\x20retry\x20even\x20if\x20not\x20failed','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','Arguments:','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Submit\x20a\x20job','us01','--editor-type\x20<type>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Segment\x20description','registeredArguments','--html\x20<html>','allowExcessArguments','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Manage\x20workflow\x20project\x20secrets','Workspace\x20name\x20(required)','RT\x202.0\x20configuration\x20management','--dry-run','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','launch\x20<name-or-id>','--priority\x20<-2~2>','jobs','alias','--limit\x20<number>','--starter-message\x20<text>','Pause\x20a\x20running\x20journey','map','secrets','describe\x20[table]','submit\x20[query]','Push\x20without\x20confirmation','--output\x20<file>','workspaces\x20[pattern]','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','grapesjs','help','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','validate\x20[name]','desc\x20[name]','--schedule-type\x20<type>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','update\x20<segment_name>','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','activations\x20<segment_name>','download\x20<project-name>\x20[output-dir]','stats\x20<name-or-path>','Open\x20segment\x20in\x20web\x20browser','job','command','--from\x20<timestamp>','connections','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','workflows\x20[project]','join','chat\x20[message...]','Show\x20connection\x20details\x20by\x20name','Skip\x20validation\x20of\x20.dig\x20files','--jsonl','List\x20journeys\x20in\x20current\x20context','push\x20[parent_or_file]','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Change\x20to\x20directory\x20before\x20executing\x20command','Attributes\x20from\x20JSON\x20file','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Output\x20directory','--skip-validation','--model\x20<name>','Maximum\x20tool\x20iterations\x20(default:\x204)','subcommandDescription','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','trino','--start-at\x20<datetime>','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Personalization\x20service\x20management','Pull\x20specific\x20revision\x20(default:\x20latest)','-p,\x20--profile\x20<name>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','--customer-group\x20<json>','commandDescription','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','padEnd','_hidden','parents\x20[pattern]','database','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Skip\x20confirmation\x20prompts','\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','list\x20[pattern]','campaign','-r,\x20--recursive','-X,\x20--method\x20<method>','Database\x20management\x20commands','show\x20<agent-name>','after','create\x20<parent_name>\x20<folder_name>','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','-y,\x20--yes','Pull\x20workflow\x20project\x20to\x20local\x20folder','validate\x20[target]','INVALID_ARGUMENT','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','journey','Show\x20journey\x20statistics','models','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','--add-behaviors\x20<json>','Project\x20description','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','preAction','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','delete\x20<project-name-or-id>','createAsync','outputHelp','[attempt-id]','--max-depth\x20<depth>','optionDescription','folders\x20<parent_name>','--attribute\x20[name]','use\x20[name]','--description\x20<desc>','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','New\x20campaign\x20name','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','\x20-\x20built\x20','Output\x20file\x20path\x20(default:\x20<name>.yml)','Validate\x20journey\x20YAML\x20files\x20locally','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','--site\x20<site>','--max-tool-iterations\x20<n>','Unknown\x20action:\x20','project','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','history\x20[chat-id]','addHelpText','noColor','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','--rule\x20<json>','--folder\x20<name>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','Plaintext\x20template\x20content','init\x20[name]','--session\x20<id>','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','push\x20[file]','--schedule-option\x20<value>','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','\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','Updated\x20timezone','engage','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','-d,\x20--database\x20<database>','--type\x20<type>','Run\x20tests\x20for\x20an\x20LLM\x20agent','Workflow\x20parameter\x20(repeatable)','--behaviors-file\x20<file>','Options:','--json-columns\x20<cols>','list\x20[name]','delete\x20<name>','filter','Action:\x20logs,\x20tasks,\x20kill,\x20retry','--timezone\x20<tz>','--workspace\x20<name>','attempt','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','tdx','Show\x20the\x20most\x20recent\x20chat','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','List\x20all\x20data\x20connections','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Open\x20parent\x20segment\x20in\x20web\x20browser','tables\x20[pattern]','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Resume\x20a\x20paused\x20journey','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--delete','show\x20<name>','Run\x20Trino\x20query\x20with\x20streaming\x20results','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','pull\x20[project]\x20[agent-name]','Scheduled\x20query\x20management\x20commands','-d,\x20--database\x20<name>','List\x20available\x20connector\x20types','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','preview\x20[file]','Include\x20retried\x20attempts\x20(for\x20list)','Delay\x20in\x20seconds\x20before\x20execution','table','--behaviors\x20<json>','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','create\x20<segment_name>','Delete\x20a\x20campaign','list','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Update\x20a\x20workspace','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','sql\x20[name]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','-f,\x20--force','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','slice','Follow/watch\x20timeline\x20for\x20running\x20attempts','Setup\x20API\x20key\x20authentication\x20interactively','32KFSCox','Campaign\x20name','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','json','Delete\x20a\x20workspace','view\x20[name]','Overwrite\x20local\x20changes\x20without\x20confirmation','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Create\x20a\x20new\x20profile','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Generate\x20test\x20conversations\x20without\x20evaluation','list\x20[project]','tasks','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','jsonl','GET','--enriched','--stage\x20<name>','Customer\x20group\x20as\x20JSON\x20string','Show\x20campaign\x20details','run\x20[name]','Output\x20file\x20path','--version','HTML\x20template\x20content','\x20(resolved\x20to\x20','--default','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','INFO','api\x20[endpoint]','aliases','pull\x20<project>\x20[target-dir]','Campaign\x20type\x20(email\x20or\x20push)','chats','Behaviors\x20from\x20JSON\x20file','run','Show\x20authentication\x20status\x20and\x20current\x20context','LLM\x20project\x20management','--no-eval','Open\x20journey\x20in\x20web\x20browser','--attributes\x20<json>','--include-subtasks','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','format','flatMap','length','includes','commands','auth','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','list\x20[path]','Show\x20master\x20table\x20sample\x20data','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Delete\x20an\x20email\x20template','Timezone\x20for\x20cron\x20(default:\x20UTC)','users','logs','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Authentication\x20management','111460YvDNKN','Add\x20attributes\x20from\x20JSON\x20file','Override\x20project\x20name','site','--name\x20<new-name>','Agent\x20prompt/instructions','update\x20<name>','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','folder','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','--from\x20<n>','--database\x20<name>','isDirectory','sessions\x20[project]','information_schema','14QRqnpz','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Save\x20output\x20to\x20file','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','Run\x20a\x20scheduled\x20query\x20immediately','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','737214shaPUv','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','List\x20all\x20users\x20in\x20the\x20account','--session-id\x20<id>','--limit\x20<n>','Usage:\x20','Updated\x20schedule\x20option','use\x20[resource]\x20[value]','--new','--reason\x20<text>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','clear','--color','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--engine-version\x20<version>','tsv','status','Email\x20subject\x20template','Database\x20to\x20query\x20(default:\x20information_schema)','log\x20<chat-id>','--database\x20<db>','use\x20[project]','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Set\x20operation\x20timeout\x20in\x20seconds','databases\x20[pattern]','Delete\x20an\x20agent','argument','requiredOption','--parent-folder\x20<name>','--name\x20<text>','Include\x20execution\x20statistics','--no-color','Invalid\x20editor\x20type:\x20','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','view\x20[segment_name]','List\x20secret\x20keys\x20for\x20a\x20project','segments\x20[path]','\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','--agent\x20<ref>','Folder\x20description','update\x20<agent-name>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','preview\x20[name]','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Output\x20as\x20JSON','\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','show\x20<folder_ref>','agents\x20[pattern]','Read\x20SQL\x20query\x20from\x20file','Retry\x20limit\x20(0\x20to\x2032)','delete\x20<args...>','Preview\x20changes\x20without\x20writing\x20files','upload\x20[project-name-or-dir]','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','resume\x20<name-or-path>','LLM\x20agent\x20management','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','-n,\x20--name\x20<name>','Trino\x20catalog\x20(default:\x20td)','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Run\x20specific\x20tests\x20(comma-separated)','attempts\x20[project]','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','push','-f,\x20--file\x20<path>','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','delete\x20<agent-name>','--revision\x20<revision>','tdx\x20','buildTime','--chat-id\x20<id>','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','Clear\x20session\x20context','usage','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','fields\x20[name]','--segment\x20<path>','Include\x20retried\x20attempts','Agent\x20description','Read\x20query\x20from\x20file','apiKey','workspace','Create\x20an\x20email\x20template','Move\x20to\x20folder','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Database\x20name\x20(default:\x20information_schema)','--system-prompt\x20<text>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','-o,\x20--output\x20<dir>','projects\x20[pattern]','push\x20[name]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','desc','Parent\x20segment\x20management','user','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','--description\x20<text>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','show\x20[table]','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','error','Workflow\x20(Digdag)\x20management\x20commands','Create\x20a\x20workspace','--include-retried','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','describe','Update\x20a\x20campaign','List\x20jobs','parent-segment','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','CDP\x20segment\x20management\x20commands','List\x20all\x20available\x20profiles','--master','Maximum\x20recursion\x20depth\x20(default:\x2010)','Request\x20body\x20as\x20JSON\x20string','Workspace\x20description','System\x20prompt/instructions\x20(default:\x20empty)','Set\x20or\x20show\x20parent\x20segment\x20context','fields\x20[parent_name]','Filtering\x20rule\x20from\x20JSON\x20file','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Cron\x20expression\x20for\x20scheduling','--yes','841672oinadi','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','DEBUG','Resume\x20a\x20conversation\x20(shows\x20selector)','templates\x20[pattern]','--add-attributes-file\x20<file>','--behavior\x20[name]','--interval\x20<range>','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--add-attributes\x20<json>','Parse\x20and\x20validate\x20without\x20executing','delete\x20<name-or-id>','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','use\x20<name>','Update\x20a\x20scheduled\x20query','settings\x20<type>','--in\x20<database>','duplicate\x20<name-or-id>','Database\x20to\x20use\x20(overrides\x20context)','query\x20[sql]','--kind\x20<type>','Duplicate\x20a\x20campaign','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Filtering\x20rule\x20as\x20JSON\x20string','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','-o,\x20--output\x20<file>','Query\x20engine\x20version','Reason\x20for\x20killing\x20the\x20attempt','Job\x20priority\x20(-2\x20to\x202)','description','-w,\x20--web','New\x20segment\x20name','Output\x20as\x20JSON\x20Lines','create\x20<name>','summary','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','directory','Show\x20only\x20master\x20table\x20validation','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Agent\x20name','Show\x20job\x20details','opts','option','Workspace\x20name','result\x20<job-id>','--force','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','--in\x20<name>','--params\x20<json>','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','Parent\x20folder\x20name\x20for\x20nested\x20folders','set','--to\x20<n>','Show\x20segment\x20schema\x20(column\x20types)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','--delay\x20<seconds>','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Master\x20table\x20name','Workflow\x20project\x20management','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','Interactive\x20chat\x20selector','injectIntoOptions','--email-sender-id\x20<id>','run\x20[workflow]','Revision\x20name\x20(default:\x20timestamp)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','286848UyqHUz','Add\x20behaviors\x20from\x20JSON\x20file','segment','Email\x20sender\x20ID\x20for\x20delivery','--full','hook','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Behaviors\x20as\x20JSON\x20string','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Pause\x20a\x20campaign','Skip\x20confirmation\x20prompt','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','Show\x20schedule\x20execution\x20history','update\x20<name-or-id>','argv','Launch\x20a\x20campaign','Show\x20journey\x20details','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','clone\x20[source]','--name\x20<name>','--no-proxy','Email\x20template\x20management','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--time\x20<iso8601>','-C,\x20--directory\x20<path>','Custom\x20revision\x20name\x20(default:\x20timestamp)','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','List\x20agents\x20in\x20current\x20project','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Timezone\x20for\x20cron','trace','logLevel','create','show\x20<name-or-id>','Campaign\x20description','Starting\x20offset\x20(default:\x200)','--catalog\x20<catalog>','statusline','--stream','set\x20<key=value>','--trace','Result\x20output\x20destination\x20URL','Include\x20subtasks\x20in\x20tasks\x20output','--result\x20<url>','-d,\x20--database\x20<db>','forEach','Enable\x20verbose\x20logging','--type\x20<api_type>','Master\x20database\x20name','colorFn','-v,\x20--verbose','--prompt\x20<text>','unset\x20<resource>','Parent\x20segment\x20description','Skip\x20population\x20counting','Workflow\x20attempt\x20management','-1d','push\x20[target]','Resume\x20from\x20specific\x20task\x20(retry)','desc\x20[segment_name]','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','\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','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Database\x20name','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Job\x20management\x20commands','name','Updated\x20description','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','create\x20[name]','--subject\x20<subject>','exit','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','options','optionTerm','--format\x20<format>','[DEPRECATED]\x20Segment\x20folder\x20management','Starter\x20message','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','connection','commandUsage','CDP\x20Journey\x20Orchestration\x20commands','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','retry','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','--num\x20<1-10>','use\x20<project-name>','parse','Query\x20type:\x20trino\x20or\x20hive','pause\x20<name-or-path>','--attempt-id\x20<id>','claude-4.5-sonnet','80520SWYXGK','--job-type\x20<type>','Create\x20a\x20scheduled\x20query','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','stdout','124936pegxKe','--follow','argumentDescription','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Ending\x20offset\x20(default:\x2020)','--rule-file\x20<file>','--clear','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','mcp','Update\x20an\x20email\x20template','Read\x20request\x20body\x20from\x20file','Start\x20a\x20new\x20chat\x20session','TRACE','setup','[options]\x20--\x20[claude-code-args...]','subcommandTerm','journeys\x20[pattern]','--tsv'];a2_0x34c3=function(){return _0x14e83b;};return a2_0x34c3();}isExperimentalAvailable()&&llmCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x232))[a2_0x3474ff(0x2be)]('[EXPERIMENTAL]\x20Show\x20chat\x20log')['action'](async(_0x8e929c,_0x1ed1e9)=>{const _0x4c63e0=a2_0x3474ff,_0x184228=new LLMLogCommand(),_0x36f510=program[_0x4c63e0(0x2ca)](),_0x47d084=await createTDXInstance(_0x36f510),_0x4f2108=await _0x184228[_0x4c63e0(0x1ef)]({'options':{..._0x36f510,..._0x1ed1e9},'args':[_0x8e929c],'tdx':_0x47d084});gracefulExit(_0x4f2108);});program[a2_0x3474ff(0x3ab)]('claude\x20[args...]')[a2_0x3474ff(0x26b)](a2_0x3474ff(0x354))[a2_0x3474ff(0x2be)]('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3474ff(0x2cb)]('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x3474ff(0x2cb)]('-r,\x20--resume',a2_0x3474ff(0x2a3))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2f8),a2_0x3474ff(0x277))['allowUnknownOption']()[a2_0x3474ff(0x385)](!![])[a2_0x3474ff(0x402)](a2_0x3474ff(0x3d9),a2_0x3474ff(0x322))[a2_0x3474ff(0x35b)](async(_0x369bdf,_0x5e1810)=>{const _0x113761=a2_0x3474ff,_0x2fbb23=program[_0x113761(0x2ca)](),_0x40d158=Array['isArray'](_0x369bdf)?_0x369bdf:[];if(_0x40d158[0x0]===_0x113761(0x309)){const _0x4ad40d=new ClaudeStatuslineCommand(),_0xfcad42=await _0x4ad40d[_0x113761(0x1ef)]({'options':{..._0x2fbb23,..._0x5e1810},'args':_0x40d158[_0x113761(0x1ca)](0x1),'tdx':null});gracefulExit(_0xfcad42);}if(_0x40d158[0x0]===_0x113761(0x26b)){const _0x5c0dba=new ClaudeUsageCommand(),_0x470be2=await _0x5c0dba['run']({'options':{..._0x2fbb23,..._0x5e1810},'args':_0x40d158[_0x113761(0x1ca)](0x1),'tdx':null});gracefulExit(_0x470be2);}const _0x54eb74=new ClaudeCommand(),_0x2b8a39=await createTDXInstance(_0x2fbb23),_0x3fe5df=await _0x54eb74[_0x113761(0x1ef)]({'options':{..._0x2fbb23,..._0x5e1810},'args':_0x40d158,'tdx':_0x2b8a39});gracefulExit(_0x3fe5df);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x225))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x323))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x34c),a2_0x3474ff(0x26a))[a2_0x3474ff(0x2cb)]('--default',a2_0x3474ff(0x228))['action'](async(_0x2ceed3,_0x33a26f,_0x28d993)=>{const _0x36d77c=new UseCommand(),_0x1877c5=program['opts'](),_0x1cf7b3=[];if(_0x2ceed3)_0x1cf7b3['push'](_0x2ceed3);if(_0x33a26f)_0x1cf7b3['push'](_0x33a26f);const _0xe0b576=await _0x36d77c['run']({'options':{..._0x1877c5,..._0x28d993},'args':_0x1cf7b3,'tdx':null});gracefulExit(_0xe0b576);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x22f))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1f0))['action'](async _0x148e7b=>{const _0x34c192=a2_0x3474ff,_0x54624a=new StatusCommand(),_0x5362dd=program['opts'](),_0x203597=await createTDXInstance(_0x5362dd),_0x5bce15=await _0x54624a[_0x34c192(0x1ef)]({'options':{..._0x5362dd,..._0x148e7b},'args':[],'tdx':_0x203597});gracefulExit(_0x5bce15);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x318))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3e0))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1e6),a2_0x3474ff(0x21b))[a2_0x3474ff(0x35b)](async(_0x230573,_0x5c26f9)=>{const _0x27fbca=a2_0x3474ff,_0x32a34b=new UnsetCommand(),_0x1ce9b2=program[_0x27fbca(0x2ca)](),_0x532614=await _0x32a34b['run']({'options':{..._0x1ce9b2,..._0x5c26f9},'args':[_0x230573],'tdx':null});gracefulExit(_0x532614);}),program['command'](a2_0x3474ff(0x1ed))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2dd))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x36a),a2_0x3474ff(0x425))['action'](async _0x402f26=>{const _0x224022=a2_0x3474ff,_0x427d58=new ChatsCommand(),_0x640716=program[_0x224022(0x2ca)](),_0x48d407=await createTDXInstance(_0x640716),_0x28da99=await _0x427d58[_0x224022(0x1ef)]({'options':{..._0x640716,..._0x402f26},'args':[],'tdx':_0x48d407});gracefulExit(_0x28da99);});const authCmd=program['command'](a2_0x3474ff(0x1fc))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x206));async function runAuthStatusCommand(_0x3b832c){const _0x3ed7a6=a2_0x3474ff,_0x28fb11=new AuthStatusCommand(),_0x6d2e04=program[_0x3ed7a6(0x2ca)](),_0x3118ca=await createTDXInstance(_0x6d2e04),_0x53ab09=await _0x28fb11['run']({'options':{..._0x6d2e04,..._0x3b832c},'args':[],'tdx':_0x3118ca});gracefulExit(_0x53ab09);}authCmd[a2_0x3474ff(0x35b)](runAuthStatusCommand),authCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x22f))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x39d))[a2_0x3474ff(0x35b)](runAuthStatusCommand),authCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x353))['description'](a2_0x3474ff(0x1cc))[a2_0x3474ff(0x402)](a2_0x3474ff(0x3d9),a2_0x3474ff(0x24c))[a2_0x3474ff(0x35b)](async _0xaca96c=>{const _0x299b28=a2_0x3474ff,_0x173edb=new AuthSetupCommand(),_0x5a17ba=program[_0x299b28(0x2ca)](),_0x1024ab=await createTDXInstance(_0x5a17ba),_0x152f9a=await _0x173edb[_0x299b28(0x1ef)]({'options':{..._0x5a17ba,..._0xaca96c},'args':[],'tdx':_0x1024ab});gracefulExit(_0x152f9a);}),authCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x229))['description']('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText'](a2_0x3474ff(0x3d9),a2_0x3474ff(0x244))[a2_0x3474ff(0x35b)](async _0x45d80d=>{const _0x41ce3c=a2_0x3474ff,_0x846922=new AuthClearCommand(),_0x3367c4=program['opts'](),_0x2df897=await _0x846922[_0x41ce3c(0x1ef)]({'options':{..._0x3367c4,..._0x45d80d},'args':[],'tdx':null});gracefulExit(_0x2df897);});const userCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x282))[a2_0x3474ff(0x2be)]('User\x20management\x20commands'),userListAction=async _0x5c3c9c=>{const _0x556d02=new UserListCommand(),_0x259841=program['opts'](),_0x3d1492=await createTDXInstance(_0x259841),_0x1bfd9e=await _0x556d02['run']({'options':{..._0x259841,..._0x5c3c9c},'args':[],'tdx':_0x3d1492});gracefulExit(_0x1bfd9e);};userCmd[a2_0x3474ff(0x35b)](async _0xe345e8=>{const _0xc1b845=a2_0x3474ff,_0xdd3151=new UserCommand(),_0x414360=program['opts'](),_0x1b5bd3=await createTDXInstance(_0x414360),_0x581b96=await _0xdd3151[_0xc1b845(0x1ef)]({'options':{..._0x414360,..._0xe345e8},'args':[],'tdx':_0x1b5bd3});gracefulExit(_0x581b96);}),userCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1c2))['description'](a2_0x3474ff(0x220))[a2_0x3474ff(0x35b)](userListAction),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x203))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x386))[a2_0x3474ff(0x35b)](userListAction),program[a2_0x3474ff(0x3ab)]('profiles')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x294))['action'](async _0x58829a=>{const _0x353890=a2_0x3474ff,_0xee02f7=new ProfilesCommand(),_0x50419f=program[_0x353890(0x2ca)](),_0x1e0299=await _0xee02f7[_0x353890(0x1ef)]({'options':{..._0x50419f,..._0x58829a},'args':[],'tdx':null});gracefulExit(_0x1e0299);});const profileCmd=program['command'](a2_0x3474ff(0x366))['description']('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd['action'](()=>{const _0x2fda76=a2_0x3474ff;profileCmd[_0x2fda76(0x3ed)]();});const profileListAction=async _0x2e3bc9=>{const _0xd1b4e0=a2_0x3474ff,_0x13e6ba=new ProfilesCommand(),_0x28fd47=program['opts'](),_0x1ed26a=await _0x13e6ba[_0xd1b4e0(0x1ef)]({'options':{..._0x28fd47,..._0x2e3bc9},'args':[],'tdx':null});gracefulExit(_0x1ed26a);};profileCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1c2))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x294))['action'](profileListAction),profileCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x32a))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1d5))[a2_0x3474ff(0x402)]('after',a2_0x3474ff(0x3d2))[a2_0x3474ff(0x35b)](async(_0x8b91a2,_0x5912c0)=>{const _0x1ded17=a2_0x3474ff,_0x49bf42=new ProfileCreateCommand(),_0x5f440a=program[_0x1ded17(0x2ca)](),_0x3315a9=await _0x49bf42[_0x1ded17(0x1ef)]({'options':{..._0x5f440a,..._0x5912c0},'args':_0x8b91a2?[_0x8b91a2]:[],'tdx':null});gracefulExit(_0x3315a9);}),profileCmd[a2_0x3474ff(0x3ab)]('remove\x20<name>')['description']('Remove\x20a\x20profile')['addHelpText']('after',a2_0x3474ff(0x339))[a2_0x3474ff(0x35b)](async(_0x501827,_0x4d9057)=>{const _0x468005=a2_0x3474ff,_0x430ed5=new ProfileRemoveCommand(),_0x4bdadb=program[_0x468005(0x2ca)](),_0x5bc1b7=await _0x430ed5['run']({'options':{..._0x4bdadb,..._0x4d9057},'args':[_0x501827],'tdx':null});gracefulExit(_0x5bc1b7);}),profileCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x30b))['description']('Set\x20a\x20profile\x20configuration\x20value')[a2_0x3474ff(0x402)](a2_0x3474ff(0x3d9),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')['action'](async(_0x381877,_0x385e29)=>{const _0x59c803=a2_0x3474ff,_0x183c72=new ProfileSetCommand(),_0x2a7560=program[_0x59c803(0x2ca)](),_0x20134b=await _0x183c72[_0x59c803(0x1ef)]({'options':{..._0x2a7560,..._0x385e29},'args':[_0x381877],'tdx':null});gracefulExit(_0x20134b);}),profileCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2ad))['description'](a2_0x3474ff(0x269))[a2_0x3474ff(0x2cb)]('--default','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)')['addHelpText'](a2_0x3474ff(0x3d9),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a')[a2_0x3474ff(0x35b)](async(_0x1d00c5,_0x37fa3d)=>{const _0x52f304=a2_0x3474ff,_0x190fd3=new ProfileUseCommand(),_0x15268e=program[_0x52f304(0x2ca)](),_0x3771a0=await _0x190fd3[_0x52f304(0x1ef)]({'options':{..._0x15268e,..._0x37fa3d},'args':[_0x1d00c5],'tdx':null});gracefulExit(_0x3771a0);});const engageCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x413))['description'](a2_0x3474ff(0x3e4)),createEngageAction=_0x30b340=>{return async(_0x4d3e49,_0x48e18d)=>{const _0x511928=a2_0x120a,_0x331438=new _0x30b340(),_0x3cc0fe=program[_0x511928(0x2ca)](),_0x3cdc80=await createTDXInstance(_0x3cc0fe),_0x1e4f79=await _0x331438[_0x511928(0x1ef)]({'options':{..._0x3cc0fe,..._0x48e18d},'args':[_0x4d3e49],'tdx':_0x3cdc80});gracefulExit(_0x1e4f79);};},createEngageNoArgAction=_0x4455d6=>{return async _0x5d8172=>{const _0x4cde87=a2_0x120a,_0x30a6ff=new _0x4455d6(),_0x47cf42=program[_0x4cde87(0x2ca)](),_0x9dd427=await createTDXInstance(_0x47cf42),_0x2cbcbb=await _0x30a6ff[_0x4cde87(0x1ef)]({'options':{..._0x47cf42,..._0x5d8172},'args':[],'tdx':_0x9dd427});gracefulExit(_0x2cbcbb);};},campaignCmd=engageCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d4))[a2_0x3474ff(0x2be)]('Campaign\x20management'),campaignListAction=async(_0x169dfa,_0x24a98b)=>{const _0x466147=a2_0x3474ff,_0x4e1032=new EngageCampaignsCommand(),_0x52390a=program[_0x466147(0x2ca)](),_0x252fae=await createTDXInstance(_0x52390a),_0x9a87c0=await _0x4e1032[_0x466147(0x1ef)]({'options':{..._0x52390a,..._0x24a98b},'args':_0x169dfa?[_0x169dfa]:[],'tdx':_0x252fae});gracefulExit(_0x9a87c0);};campaignCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)]('List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3474ff(0x2cb)]('--type\x20<type>',a2_0x3474ff(0x2b7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x363),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3474ff(0x2cb)]('--workspace\x20<name>',a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](campaignListAction),engageCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x369))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x25a))['option'](a2_0x3474ff(0x416),a2_0x3474ff(0x2b7))['option'](a2_0x3474ff(0x363),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](campaignListAction),campaignCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x305))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1e0))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2e7),a2_0x3474ff(0x2f5))[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3474ff(0x3ab)]('create')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x35e))['requiredOption']('--name\x20<name>',a2_0x3474ff(0x1ce))[a2_0x3474ff(0x23a)](a2_0x3474ff(0x416),a2_0x3474ff(0x1ec))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),'Workspace\x20name\x20(required)')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3f4),a2_0x3474ff(0x306))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x26e),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x3474ff(0x2cb)]('--email-sender-id\x20<id>',a2_0x3474ff(0x2e6))[a2_0x3474ff(0x2cb)]('--json-columns\x20<cols>',a2_0x3474ff(0x2d7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3c2),a2_0x3474ff(0x381))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x420),a2_0x3474ff(0x35a))['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3474ff(0x3ab)]('update\x20<name-or-id>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x28f))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),'Workspace\x20name')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2f7),a2_0x3474ff(0x3f6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3f4),a2_0x3474ff(0x306))['option'](a2_0x3474ff(0x26e),a2_0x3474ff(0x1f6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2df),a2_0x3474ff(0x2e6))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x41b),a2_0x3474ff(0x2d7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3c2),a2_0x3474ff(0x381))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x420),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2ab))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x1c1))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x29f),a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x38c))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2f2))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),'Workspace\x20name')[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd['command']('pause\x20<name-or-id>')['description'](a2_0x3474ff(0x2ec))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd['command']('resume\x20<name-or-id>')['description']('Resume\x20a\x20paused\x20campaign')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2b1))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2b5))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3474ff(0x3ab)]('template')['description'](a2_0x3474ff(0x2f9)),templateListAction=async(_0x5b29b3,_0x1f716d)=>{const _0x388665=a2_0x3474ff,_0x4b48aa=new EngageTemplatesCommand(),_0x48c389=program['opts'](),_0x16a6e1=await createTDXInstance(_0x48c389),_0x15194a=await _0x4b48aa[_0x388665(0x1ef)]({'options':{..._0x48c389,..._0x1f716d},'args':_0x5b29b3?[_0x5b29b3]:[],'tdx':_0x16a6e1});gracefulExit(_0x15194a);};templateCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option']('--workspace\x20<name>',a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](templateListAction),engageCmd['command'](a2_0x3474ff(0x2a4))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x433))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x35b)](templateListAction),templateCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x305))[a2_0x3474ff(0x2be)]('Show\x20email\x20template\x20details')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x2cb)]('--full','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3474ff(0x35b)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x304))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x274))[a2_0x3474ff(0x23a)](a2_0x3474ff(0x2f7),'Template\x20name')[a2_0x3474ff(0x23a)](a2_0x3474ff(0x32b),a2_0x3474ff(0x230))['requiredOption'](a2_0x3474ff(0x384),a2_0x3474ff(0x1e4))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x421),a2_0x3474ff(0x388))[a2_0x3474ff(0x2cb)]('--plaintext\x20<text>',a2_0x3474ff(0x409))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x380),a2_0x3474ff(0x1bf),_0x5b880b=>{const _0x51cc38=a2_0x3474ff;if(![_0x51cc38(0x361),_0x51cc38(0x39b)][_0x51cc38(0x1fa)](_0x5b880b))throw new SDKError(ErrorCode[_0x51cc38(0x3df)],_0x51cc38(0x23f)+_0x5b880b+'.\x20Must\x20be\x20beefree\x20or\x20grapesjs');return _0x5b880b;})['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2f0))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x34f))['option'](a2_0x3474ff(0x421),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2f7),'New\x20template\x20name')[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x32b),a2_0x3474ff(0x230))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x384),a2_0x3474ff(0x1e4))[a2_0x3474ff(0x2cb)]('--plaintext\x20<text>',a2_0x3474ff(0x409))[a2_0x3474ff(0x35b)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3474ff(0x2ab))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x201))[a2_0x3474ff(0x2cb)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3474ff(0x2cb)]('--yes',a2_0x3474ff(0x2ed))['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x273))['description']('Workspace\x20management'),workspaceListAction=async(_0xafc629,_0x19c2fd)=>{const _0x6c2605=a2_0x3474ff,_0x4294d0=new EngageWorkspacesCommand(),_0x556499=program[_0x6c2605(0x2ca)](),_0x1025f7=await createTDXInstance(_0x556499),_0x52ae13=await _0x4294d0[_0x6c2605(0x1ef)]({'options':{..._0x556499,..._0x19c2fd},'args':_0xafc629?[_0xafc629]:[],'tdx':_0x1025f7});gracefulExit(_0x52ae13);};workspaceCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))['description'](a2_0x3474ff(0x2eb))['action'](workspaceListAction),engageCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x399))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x37d))[a2_0x3474ff(0x35b)](workspaceListAction),workspaceCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x305))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x372))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2e7),a2_0x3474ff(0x2f5))[a2_0x3474ff(0x35b)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3474ff(0x3ab)]('create')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x28b))[a2_0x3474ff(0x23a)](a2_0x3474ff(0x2f7),a2_0x3474ff(0x2cc))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3f4),a2_0x3474ff(0x298))[a2_0x3474ff(0x35b)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2f0))['description'](a2_0x3474ff(0x1c4))[a2_0x3474ff(0x2cb)]('--name\x20<name>','New\x20workspace\x20name')[a2_0x3474ff(0x2cb)]('--description\x20<desc>',a2_0x3474ff(0x298))[a2_0x3474ff(0x35b)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command'](a2_0x3474ff(0x2ab))['description'](a2_0x3474ff(0x1d1))[a2_0x3474ff(0x2cb)]('--yes',a2_0x3474ff(0x2ed))[a2_0x3474ff(0x35b)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3474ff(0x3ab)]('use\x20<name>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x360))[a2_0x3474ff(0x35b)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x334))[a2_0x3474ff(0x2be)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x3e7cc4=>{const _0xe2a2ec=a2_0x3474ff,_0x30c4f8=new ConnectionListCommand(),_0x4a50d6=program[_0xe2a2ec(0x2ca)](),_0x145ed8=await createTDXInstance(_0x4a50d6),_0x4845bb=await _0x30c4f8[_0xe2a2ec(0x1ef)]({'options':{..._0x4a50d6,..._0x3e7cc4},'args':[],'tdx':_0x145ed8});gracefulExit(_0x4845bb);};connectionCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x1c2))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x428))['action'](connectionListAction),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3ad),{'hidden':!![]})[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2fa))['action'](connectionListAction),connectionCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x430))['description'](a2_0x3474ff(0x3b2))[a2_0x3474ff(0x35b)](async(_0x2434bf,_0x572f26)=>{const _0x5f2277=a2_0x3474ff,_0x253704=new ConnectionShowCommand(),_0x440a85=program['opts'](),_0x465090=await createTDXInstance(_0x440a85),_0x4a4f76=await _0x253704[_0x5f2277(0x1ef)]({'options':{..._0x440a85,..._0x572f26},'args':[_0x2434bf],'tdx':_0x465090});gracefulExit(_0x4a4f76);}),connectionCmd[a2_0x3474ff(0x3ab)]('schema\x20<type>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x300))[a2_0x3474ff(0x35b)](async(_0xc8517c,_0x59e054)=>{const _0x29ecc8=a2_0x3474ff,_0x419218=new ConnectionSchemaCommand(),_0x20c5d5=program[_0x29ecc8(0x2ca)](),_0x32c9bf=await createTDXInstance(_0x20c5d5),_0x1563c4=await _0x419218[_0x29ecc8(0x1ef)]({'options':{..._0x20c5d5,..._0x59e054},'args':[_0xc8517c],'tdx':_0x32c9bf});gracefulExit(_0x1563c4);}),connectionCmd[a2_0x3474ff(0x3ab)]('types')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x437))['action'](async _0x3b8254=>{const _0x3e130f=a2_0x3474ff,_0x506424=new ConnectionTypesCommand(),_0x5b6102=program[_0x3e130f(0x2ca)](),_0x7a8ae4=await createTDXInstance(_0x5b6102),_0x30b2bb=await _0x506424[_0x3e130f(0x1ef)]({'options':{..._0x5b6102,..._0x3b8254},'args':[],'tdx':_0x7a8ae4});gracefulExit(_0x30b2bb);}),connectionCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2af))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x27a))[a2_0x3474ff(0x35b)](async(_0x22c574,_0x1acacb)=>{const _0x332434=a2_0x3474ff,_0x3b6269=new ConnectionSettingsCommand(),_0x41e050=program[_0x332434(0x2ca)](),_0x4dab30=await createTDXInstance(_0x41e050),_0x53621c=await _0x3b6269[_0x332434(0x1ef)]({'options':{..._0x41e050,..._0x1acacb},'args':[_0x22c574],'tdx':_0x4dab30});gracefulExit(_0x53621c);});const journeyCmd=program['command'](a2_0x3474ff(0x3e1))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x336)),journeyListAction=async(_0x57b9ed,_0x3cdbae)=>{const _0x961e6b=a2_0x3474ff,_0xcdef88=new JourneyListCommand(),_0x45760b=program[_0x961e6b(0x2ca)](),_0x217a7c=await createTDXInstance(_0x45760b),_0x103075=await _0xcdef88[_0x961e6b(0x1ef)]({'options':{..._0x45760b,..._0x3cdbae},'args':_0x57b9ed?[_0x57b9ed]:[],'tdx':_0x217a7c});gracefulExit(_0x103075);};journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3b5))[a2_0x3474ff(0x35b)](journeyListAction),journeyCmd['command'](a2_0x3474ff(0x35c))['description'](a2_0x3474ff(0x2f3))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x2bf),a2_0x3474ff(0x1f3))[a2_0x3474ff(0x2cb)]('--include-stats',a2_0x3474ff(0x23d))['action'](async(_0x466693,_0x3163d1)=>{const _0x1c4456=new JourneyViewCommand(),_0x31c32f=program['opts'](),_0xfe1897=await createTDXInstance(_0x31c32f),_0x803319=await _0x1c4456['run']({'options':{..._0x31c32f,..._0x3163d1},'args':[_0x466693],'tdx':_0xfe1897});gracefulExit(_0x803319);}),journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3a8))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3e2))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1de),'Show\x20stats\x20for\x20specific\x20stage')['action'](async(_0x39bf81,_0x52c759)=>{const _0x5eaa11=a2_0x3474ff,_0x311b59=new JourneyStatsCommand(),_0x373bbd=program[_0x5eaa11(0x2ca)](),_0x53c209=await createTDXInstance(_0x373bbd),_0x16d408=await _0x311b59[_0x5eaa11(0x1ef)]({'options':{..._0x373bbd,..._0x52c759},'args':[_0x39bf81],'tdx':_0x53c209});gracefulExit(_0x16d408);}),journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x33e))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x392))[a2_0x3474ff(0x35b)](async(_0x53236b,_0x474cce)=>{const _0x27910e=a2_0x3474ff,_0x1998c0=new JourneyPauseCommand(),_0x579a2b=program[_0x27910e(0x2ca)](),_0x398c88=await createTDXInstance(_0x579a2b),_0x147153=await _0x1998c0[_0x27910e(0x1ef)]({'options':{..._0x579a2b,..._0x474cce},'args':[_0x53236b],'tdx':_0x398c88});gracefulExit(_0x147153);}),journeyCmd['command'](a2_0x3474ff(0x257))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x42d))[a2_0x3474ff(0x35b)](async(_0x306773,_0x40f84b)=>{const _0x267483=a2_0x3474ff,_0x3e23cf=new JourneyResumeCommand(),_0x238dc7=program[_0x267483(0x2ca)](),_0x584344=await createTDXInstance(_0x238dc7),_0x2e5944=await _0x3e23cf['run']({'options':{..._0x238dc7,..._0x40f84b},'args':[_0x306773],'tdx':_0x584344});gracefulExit(_0x2e5944);}),journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x375))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x374))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3dc),'Skip\x20confirmation\x20prompt')[a2_0x3474ff(0x2cb)]('--dry-run','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files')[a2_0x3474ff(0x35b)](async(_0x1dded7,_0x42abdb)=>{const _0x495177=a2_0x3474ff,_0xd56dea=new JourneyPullCommand(),_0x4c7c4d=program['opts'](),_0x2a468f=await createTDXInstance(_0x4c7c4d),_0x443556=await _0xd56dea[_0x495177(0x1ef)]({'options':{..._0x4c7c4d,..._0x42abdb},'args':_0x1dded7?[_0x1dded7]:[],'tdx':_0x2a468f});gracefulExit(_0x443556);}),journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x31d))['description'](a2_0x3474ff(0x320))[a2_0x3474ff(0x35b)](async(_0x25ad41,_0x3dccc3)=>{const _0x3bab4d=a2_0x3474ff,_0x27aeae=new JourneyPushCommand(),_0x39f0ee=program[_0x3bab4d(0x2ca)](),_0x54b814=await createTDXInstance(_0x39f0ee),_0x421e96=await _0x27aeae['run']({'options':{..._0x39f0ee,..._0x3dccc3},'args':_0x25ad41?[_0x25ad41]:[],'tdx':_0x54b814});gracefulExit(_0x421e96);}),journeyCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3de))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3fa))['action'](async(_0x522a40,_0x582e84)=>{const _0x51182c=a2_0x3474ff,_0x2d8e37=new JourneyValidateCommand(),_0x2f5c4b=program[_0x51182c(0x2ca)](),_0x9d53df=await createTDXInstance(_0x2f5c4b),_0xc05e44=await _0x2d8e37[_0x51182c(0x1ef)]({'options':{..._0x2f5c4b,..._0x582e84},'args':_0x522a40?[_0x522a40]:[],'tdx':_0x9d53df});gracefulExit(_0xc05e44);}),program[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x356))['description'](a2_0x3474ff(0x200))[a2_0x3474ff(0x35b)](journeyListAction);const agentSyncCmd=program[a2_0x3474ff(0x3ab)]('agent')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x258));agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x434))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3a4))['option'](a2_0x3474ff(0x27b),a2_0x3474ff(0x3bb))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1c8),a2_0x3474ff(0x1d3))[a2_0x3474ff(0x35b)](async(_0x19687c,_0x1fd161,_0x5bc580)=>{const _0x5dc830=a2_0x3474ff,_0x4bad5e=new AgentPullCommand(),_0x5ae9ba=program[_0x5dc830(0x2ca)](),_0x598ffb=await createTDXInstance(_0x5ae9ba),_0x5e2f7d=[];if(_0x19687c)_0x5e2f7d['push'](_0x19687c);if(_0x1fd161)_0x5e2f7d[_0x5dc830(0x261)](_0x1fd161);const _0x32f843=await _0x4bad5e[_0x5dc830(0x1ef)]({'options':{..._0x5ae9ba,..._0x5bc580},'args':_0x5e2f7d,'tdx':_0x598ffb});gracefulExit(_0x32f843);}),agentSyncCmd[a2_0x3474ff(0x3ab)]('push\x20[path]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x26c))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1c8),a2_0x3474ff(0x397))['action'](async(_0x3d71f0,_0x1e96e1)=>{const _0x353ab1=a2_0x3474ff,_0x50df88=new AgentPushCommand(),_0x5cbc77=program[_0x353ab1(0x2ca)](),_0x1b0399=await createTDXInstance(_0x5cbc77),_0x3dd72d=await _0x50df88[_0x353ab1(0x1ef)]({'options':{..._0x5cbc77,..._0x1e96e1},'args':_0x3d71f0?[_0x3d71f0]:[],'tdx':_0x1b0399});gracefulExit(_0x3dd72d);}),agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x2f6))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x25d))['option'](a2_0x3474ff(0x25b),a2_0x3474ff(0x364))[a2_0x3474ff(0x35b)](async(_0x2b3978,_0x44d7ae)=>{const _0x54a44c=a2_0x3474ff,_0x1789fb=new AgentCloneCommand(),_0x550af1=program[_0x54a44c(0x2ca)](),_0x44aa77=await createTDXInstance(_0x550af1),_0x2ee89e=await _0x1789fb['run']({'options':{..._0x550af1,..._0x44d7ae},'args':_0x2b3978?[_0x2b3978]:[],'tdx':_0x44aa77});gracefulExit(_0x2ee89e);}),agentSyncCmd[a2_0x3474ff(0x3ab)]('test\x20[path]')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x417))[a2_0x3474ff(0x2cb)]('--name\x20<names>',a2_0x3474ff(0x25e))['option']('--tags\x20<tags>',a2_0x3474ff(0x37a))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x38a),a2_0x3474ff(0x2aa))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x1f2),a2_0x3474ff(0x1d7))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x35f),a2_0x3474ff(0x1c5))['action'](async(_0x2b7e0c,_0x416861)=>{const _0x5e5b33=a2_0x3474ff,_0x59404e=new AgentTestCommand(),_0x39368a=program['opts'](),_0x60e032=await createTDXInstance(_0x39368a),_0x24b721=await _0x59404e[_0x5e5b33(0x1ef)]({'options':{..._0x39368a,..._0x416861},'args':_0x2b7e0c?[_0x2b7e0c]:[],'tdx':_0x60e032});gracefulExit(_0x24b721);}),agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d3))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x2ff))['action'](llmAgentListAction),agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x3d8))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x36e))[a2_0x3474ff(0x35b)](async(_0xd869ce,_0x251cbc)=>{const _0x25706a=a2_0x3474ff,_0x2548f6=new LLMAgentShowCommand(),_0x5a13d6=program[_0x25706a(0x2ca)](),_0x4fca10=await createTDXInstance(_0x5a13d6),_0xd86812=await _0x2548f6[_0x25706a(0x1ef)]({'options':{..._0x5a13d6,..._0x251cbc},'args':[_0xd869ce],'tdx':_0x4fca10});gracefulExit(_0xd86812);}),agentSyncCmd['command']('create\x20<name>')[a2_0x3474ff(0x2be)](a2_0x3474ff(0x3c4))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x279),a2_0x3474ff(0x299))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x3bd),a2_0x3474ff(0x42c),a2_0x3474ff(0x340))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x391),a2_0x3474ff(0x332))['option'](a2_0x3474ff(0x3fd),a2_0x3474ff(0x3be),'4')[a2_0x3474ff(0x2cb)]('--temperature\x20<n>',a2_0x3474ff(0x3ba),a2_0x3474ff(0x36d))['action'](async(_0x364a7e,_0x1e2472)=>{const _0x57e0c7=a2_0x3474ff,_0x28002f=new LLMAgentCreateCommand(),_0x10e73c=program[_0x57e0c7(0x2ca)](),_0x1b89a0=await createTDXInstance(_0x10e73c),_0x87bb71=await _0x28002f[_0x57e0c7(0x1ef)]({'options':{..._0x10e73c,..._0x1e2472},'args':[_0x364a7e],'tdx':_0x1b89a0});gracefulExit(_0x87bb71);}),agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x247))['description']('Update\x20an\x20existing\x20agent')['option'](a2_0x3474ff(0x23c),a2_0x3474ff(0x2c8))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x317),a2_0x3474ff(0x20c))[a2_0x3474ff(0x2cb)]('--description\x20<text>',a2_0x3474ff(0x270))[a2_0x3474ff(0x2cb)](a2_0x3474ff(0x391),'Starter\x20message')[a2_0x3474ff(0x35b)](async(_0x3cc5dc,_0x394409)=>{const _0x23209e=a2_0x3474ff,_0x4d57de=new LLMAgentUpdateCommand(),_0x2183c3=program[_0x23209e(0x2ca)](),_0x5eeaa4=await createTDXInstance(_0x2183c3),_0x2f2ad6=await _0x4d57de[_0x23209e(0x1ef)]({'options':{..._0x2183c3,..._0x394409},'args':[_0x3cc5dc],'tdx':_0x5eeaa4});gracefulExit(_0x2f2ad6);}),agentSyncCmd[a2_0x3474ff(0x3ab)](a2_0x3474ff(0x264))[a2_0x3474ff(0x2be)](a2_0x3474ff(0x238))[a2_0x3474ff(0x35b)](async(_0x4214b1,_0x1a6fb0)=>{const _0x3aee9a=a2_0x3474ff,_0x26d7ee=new LLMAgentDeleteCommand(),_0x226f5b=program[_0x3aee9a(0x2ca)](),_0xce767a=await createTDXInstance(_0x226f5b),_0x57b6f4=await _0x26d7ee[_0x3aee9a(0x1ef)]({'options':{..._0x226f5b,..._0x1a6fb0},'args':[_0x4214b1],'tdx':_0xce767a});gracefulExit(_0x57b6f4);});export{program};export function runCLI(){const _0x1be3c8=a2_0x3474ff,_0x1f1ddf=!process[_0x1be3c8(0x2f1)][_0x1be3c8(0x1ca)](0x2)[_0x1be3c8(0x1f9)];showBriefHelp=_0x1f1ddf,program[_0x1be3c8(0x33c)](process['argv']);_0x1f1ddf&&program['outputHelp']();if(process['stderr'][_0x1be3c8(0x367)]&&process['argv'][_0x1be3c8(0x1f9)]>0x2&&!isDevVersion()){const _0x1f638e=loadReleaseChannel();checkForUpdate(currentVersion,_0x1f638e)['then'](_0x35cb82=>{_0x35cb82&&displayUpdateNotification(_0x35cb82);})[_0x1be3c8(0x373)](()=>{});}}