@treasuredata/tdx 0.14.2 → 0.14.3

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 (145) 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/api-command.js +1 -1
  8. package/dist/commands/auth-command.d.ts.map +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-command.js.map +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-command.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/journey-command.js +1 -1
  22. package/dist/commands/journey-validate-command.js +1 -1
  23. package/dist/commands/llm-command.js +1 -1
  24. package/dist/commands/llm-proxy.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-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/tables.js +1 -1
  40. package/dist/commands/use-command.js +1 -1
  41. package/dist/commands/user-command.js +1 -1
  42. package/dist/commands/workflow-command.js +1 -1
  43. package/dist/core/auth.js +1 -1
  44. package/dist/core/command-output.js +1 -1
  45. package/dist/core/config.js +1 -1
  46. package/dist/core/connection-cache.js +1 -1
  47. package/dist/core/constants.js +1 -1
  48. package/dist/core/credential-cache.js +1 -1
  49. package/dist/core/global-context.js +1 -1
  50. package/dist/core/keychain.js +1 -1
  51. package/dist/core/profile.d.ts +15 -0
  52. package/dist/core/profile.d.ts.map +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/profile.js.map +1 -1
  55. package/dist/core/project-config.js +1 -1
  56. package/dist/core/session.js +1 -1
  57. package/dist/core/user-cache.js +1 -1
  58. package/dist/core/version.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/proxy/anthropic-adapter.js +1 -1
  61. package/dist/proxy/claude-usage-tracker.js +1 -1
  62. package/dist/proxy/context-signature.js +1 -1
  63. package/dist/proxy/conversation-utils.js +1 -1
  64. package/dist/proxy/passthrough-server.d.ts +13 -2
  65. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  66. package/dist/proxy/passthrough-server.js +1 -1
  67. package/dist/proxy/passthrough-server.js.map +1 -1
  68. package/dist/proxy/server.js +1 -1
  69. package/dist/proxy/session-cache.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/api.js +1 -1
  75. package/dist/sdk/client/cdp-api-client.js +1 -1
  76. package/dist/sdk/client/endpoints.js +1 -1
  77. package/dist/sdk/client/engage-api-client.js +1 -1
  78. package/dist/sdk/client/http-client.js +1 -1
  79. package/dist/sdk/client/llm-api-client.js +1 -1
  80. package/dist/sdk/client/rate-limiter.js +1 -1
  81. package/dist/sdk/client/td-api-client.js +1 -1
  82. package/dist/sdk/client/trino-api-client.js +1 -1
  83. package/dist/sdk/client/workflow-client.js +1 -1
  84. package/dist/sdk/connection-validator.js +1 -1
  85. package/dist/sdk/connection.js +1 -1
  86. package/dist/sdk/engage.js +1 -1
  87. package/dist/sdk/errors.js +1 -1
  88. package/dist/sdk/index.js +1 -1
  89. package/dist/sdk/io/index.js +1 -1
  90. package/dist/sdk/io/node-filesystem.js +1 -1
  91. package/dist/sdk/job.js +1 -1
  92. package/dist/sdk/journey.js +1 -1
  93. package/dist/sdk/llm/chat-cache.js +1 -1
  94. package/dist/sdk/llm/index.js +1 -1
  95. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  96. package/dist/sdk/llm/model-aliases.js +1 -1
  97. package/dist/sdk/llm/model-factors.js +1 -1
  98. package/dist/sdk/query/index.js +1 -1
  99. package/dist/sdk/query/sql-parser.js +1 -1
  100. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  101. package/dist/sdk/segment/fields-display.js +1 -1
  102. package/dist/sdk/segment/file-discovery.js +1 -1
  103. package/dist/sdk/segment/journey-utils.js +1 -1
  104. package/dist/sdk/segment/journey-yaml.js +1 -1
  105. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  106. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  107. package/dist/sdk/segment/pull-workflow.js +1 -1
  108. package/dist/sdk/segment/push-workflow.js +1 -1
  109. package/dist/sdk/segment/resolution-context.js +1 -1
  110. package/dist/sdk/segment/segment-path-parser.js +1 -1
  111. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  112. package/dist/sdk/segment/target-resolution.js +1 -1
  113. package/dist/sdk/segment/tdx-config.js +1 -1
  114. package/dist/sdk/segment/validate-files.js +1 -1
  115. package/dist/sdk/segment/yaml-validator.js +1 -1
  116. package/dist/sdk/segment.js +1 -1
  117. package/dist/sdk/types/index.js +1 -1
  118. package/dist/sdk/types/progress.js +1 -1
  119. package/dist/sdk/user.js +1 -1
  120. package/dist/sdk/util/format-detector.js +1 -1
  121. package/dist/sdk/util/formatters.js +1 -1
  122. package/dist/sdk/util/index.js +1 -1
  123. package/dist/sdk/util/tree-formatter.js +1 -1
  124. package/dist/sdk/workflow/clone-workflow.js +1 -1
  125. package/dist/sdk/workflow/index.js +1 -1
  126. package/dist/sdk/workflow/pull-workflow.js +1 -1
  127. package/dist/sdk/workflow/push-workflow.js +1 -1
  128. package/dist/sdk/workflow/tdx-config.js +1 -1
  129. package/dist/sdk/workflow/workflow-utils.js +1 -1
  130. package/dist/utils/async.js +1 -1
  131. package/dist/utils/colors.js +1 -1
  132. package/dist/utils/diff.js +1 -1
  133. package/dist/utils/file-permissions.js +1 -1
  134. package/dist/utils/json-loader.js +1 -1
  135. package/dist/utils/option-validation.js +1 -1
  136. package/dist/utils/port.js +1 -1
  137. package/dist/utils/process.js +1 -1
  138. package/dist/utils/prompt.js +1 -1
  139. package/dist/utils/spinner.js +1 -1
  140. package/dist/utils/sse-parser.js +1 -1
  141. package/dist/utils/string-utils.js +1 -1
  142. package/dist/utils/table-ref-parser.js +1 -1
  143. package/dist/utils/tdx-logger.js +1 -1
  144. package/dist/utils/version-check.js +1 -1
  145. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- const a2_0x3231b5=a2_0x30cc;(function(_0x12cf05,_0xb43542){const _0x1090ef=a2_0x30cc,_0x18af61=_0x12cf05();while(!![]){try{const _0xbb85e4=-parseInt(_0x1090ef(0x300))/0x1+parseInt(_0x1090ef(0x19e))/0x2+parseInt(_0x1090ef(0x1e6))/0x3+-parseInt(_0x1090ef(0x14c))/0x4*(parseInt(_0x1090ef(0x191))/0x5)+-parseInt(_0x1090ef(0x1a5))/0x6+parseInt(_0x1090ef(0x247))/0x7*(-parseInt(_0x1090ef(0x25a))/0x8)+parseInt(_0x1090ef(0x1b7))/0x9*(parseInt(_0x1090ef(0x25d))/0xa);if(_0xbb85e4===_0xb43542)break;else _0x18af61['push'](_0x18af61['shift']());}catch(_0xea235f){_0x18af61['push'](_0x18af61['shift']());}}}(a2_0x57f0,0x79861));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';function a2_0x30cc(_0x3f692e,_0x312498){_0x3f692e=_0x3f692e-0xe3;const _0x57f0bc=a2_0x57f0();let _0x30cc4c=_0x57f0bc[_0x3f692e];return _0x30cc4c;}import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x3231b5(0x2b3)]('--version')){let versionOutput=a2_0x3231b5(0x155)+currentVersion;buildInfo[a2_0x3231b5(0x311)]&&!currentVersion[a2_0x3231b5(0x2b3)](buildInfo[a2_0x3231b5(0x311)])&&(versionOutput+='\x20('+buildInfo[a2_0x3231b5(0x311)]+')'),buildInfo[a2_0x3231b5(0x1ab)]&&(versionOutput+='\x20-\x20built\x20'+buildInfo[a2_0x3231b5(0x1ab)]),console['log'](versionOutput),process['exit'](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x3231b5(0x311)])?description+=a2_0x3231b5(0x277)+currentVersion+'\x20('+buildInfo[a2_0x3231b5(0x311)]+')':description+=a2_0x3231b5(0x277)+currentVersion;program[a2_0x3231b5(0x250)](a2_0x3231b5(0x11b))[a2_0x3231b5(0x1ef)](description),program[a2_0x3231b5(0x2fe)]('-C,\x20--directory\x20<path>',a2_0x3231b5(0x2f0))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x248),a2_0x3231b5(0x159))['option'](a2_0x3231b5(0x30b),a2_0x3231b5(0xef),a2_0x3231b5(0x27a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d3),a2_0x3231b5(0x23f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x179),'Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)')['option']('--json',a2_0x3231b5(0x264))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x30f))['option'](a2_0x3231b5(0x170),a2_0x3231b5(0x328))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x249),a2_0x3231b5(0x116))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1e1),a2_0x3231b5(0x1cb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x220),a2_0x3231b5(0x2ef),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xed),a2_0x3231b5(0x2d7),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x19a),a2_0x3231b5(0x131),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x178),a2_0x3231b5(0x1d8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1b6),a2_0x3231b5(0x242))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1bd),a2_0x3231b5(0x156),'30')['option']('--dry-run',a2_0x3231b5(0x1ff),![])['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x1a2),![])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x18d),a2_0x3231b5(0x14e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x252),a2_0x3231b5(0x204))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f4),a2_0x3231b5(0x175))[a2_0x3231b5(0x2fe)]('--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x26b),a2_0x3231b5(0x1cd)),program['configureHelp']({'formatHelp':(_0x149151,_0x4b42a9)=>{const _0x331c5f=a2_0x3231b5,_0x41bb30=_0x4b42a9[_0x331c5f(0x1fd)](_0x149151,_0x4b42a9),_0x270972=0x2,_0x3850e1=0x2;function _0x367ef4(_0x2a0809){const _0x3a3f4c=_0x331c5f,_0x4509e3=_0x2a0809;return!!(_0x4509e3[_0x3a3f4c(0x274)]||_0x4509e3[_0x3a3f4c(0x199)]);}function _0x51333d(_0x4ef758,_0xd24b8b){const _0xe1c0cd=_0x331c5f;if(_0xd24b8b){const _0xf3dc2d=''+_0x4ef758[_0xe1c0cd(0x169)](_0x41bb30+_0x3850e1)+_0xd24b8b;return _0xf3dc2d;}return _0x4ef758;}function _0x49a020(_0x4ce763){const _0x137789=_0x331c5f;return _0x4ce763[_0x137789(0x106)]('\x0a')[_0x137789(0x1f5)](/^/gm,'\x20'[_0x137789(0x2ac)](_0x270972));}const _0x5891b7=[];_0x5891b7[_0x331c5f(0x15b)]('Usage:\x20'+_0x4b42a9[_0x331c5f(0x2dc)](_0x149151));const _0x270ff9=_0x4b42a9['commandDescription'](_0x149151);_0x270ff9&&(_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x270ff9));const _0x5ecce7=_0x149151[_0x331c5f(0x335)][_0x331c5f(0x2a3)](_0x1d8ed5=>!_0x367ef4(_0x1d8ed5));if(_0x5ecce7['length']>0x0){if(_0x149151['name']()===_0x331c5f(0x11b)){const _0x3db165=_0x149151[_0x331c5f(0x281)](),_0x4c136=!_0x3db165['noColor']&&process['stdout'][_0x331c5f(0x2a8)],_0x569e81=COMMAND_CATEGORIES,_0x3e8a58=(_0x2de7a5,_0xfcfb93)=>_0x4c136?_0xfcfb93(_0x2de7a5):_0x2de7a5,_0x2a4695=new Map();_0x5ecce7[_0x331c5f(0x206)](_0x47c3fe=>{const _0x20bd32=_0x331c5f;_0x2a4695['set'](_0x47c3fe[_0x20bd32(0x250)](),_0x47c3fe);}),_0x569e81[_0x331c5f(0x206)](_0x432c98=>{const _0x46479a=_0x331c5f,_0x57a6fa=_0x432c98[_0x46479a(0x335)][_0x46479a(0x1b9)](_0x5c60bd=>_0x2a4695[_0x46479a(0x2df)](_0x5c60bd)??[]);if(_0x57a6fa[_0x46479a(0x2b0)]>0x0){_0x5891b7[_0x46479a(0x15b)](''),_0x5891b7[_0x46479a(0x15b)](_0x3e8a58(_0x432c98['name']+':',_0x432c98['colorFn']));const _0x5a6204=_0x57a6fa[_0x46479a(0x18e)](_0x5d166f=>{const _0x248f8e=_0x4b42a9['subcommandTerm'](_0x5d166f),_0x4b414b=_0x4b42a9['subcommandDescription'](_0x5d166f);return _0x51333d(_0x248f8e,_0x4b414b);});_0x5891b7[_0x46479a(0x15b)](_0x49a020(_0x5a6204));}}),_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x161));}else{const _0x3d6afc=_0x5ecce7[_0x331c5f(0x18e)](_0x538b50=>{const _0x33d9ab=_0x331c5f,_0x170c66=_0x4b42a9[_0x33d9ab(0x1fc)](_0x538b50),_0x269c39=_0x4b42a9[_0x33d9ab(0x294)](_0x538b50);return _0x51333d(_0x170c66,_0x269c39);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7['push'](_0x331c5f(0x1de)),_0x5891b7[_0x331c5f(0x15b)](_0x49a020(_0x3d6afc));}}if(showBriefHelp&&_0x149151[_0x331c5f(0x250)]()===_0x331c5f(0x11b))_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x14b));else{const _0x2b7906=_0x149151[_0x331c5f(0x146)][_0x331c5f(0x2a3)](_0x5519b8=>!_0x367ef4(_0x5519b8));if(_0x2b7906[_0x331c5f(0x2b0)]>0x0){const _0x1fb461=_0x2b7906[_0x331c5f(0x18e)](_0x24a399=>{const _0x34b8a5=_0x331c5f,_0x1ff18c=_0x4b42a9[_0x34b8a5(0x241)](_0x24a399),_0x435405=_0x4b42a9['optionDescription'](_0x24a399);return _0x51333d(_0x1ff18c,_0x435405);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x30c)),_0x5891b7['push'](_0x49a020(_0x1fb461));}}const _0x555227=(_0x149151[_0x331c5f(0x26d)]||[])[_0x331c5f(0x2a3)](_0xdb948f=>!_0x367ef4(_0xdb948f));if(_0x555227[_0x331c5f(0x2b0)]>0x0){const _0x496ac4=_0x555227[_0x331c5f(0x18e)](_0x289cdd=>{const _0x16ec40=_0x331c5f,_0x4dbab8=_0x4b42a9[_0x16ec40(0x141)](_0x289cdd),_0x22e66c=_0x4b42a9[_0x16ec40(0x174)](_0x289cdd);return _0x51333d(_0x4dbab8,_0x22e66c);});_0x5891b7[_0x331c5f(0x15b)](''),_0x5891b7[_0x331c5f(0x15b)](_0x331c5f(0x19b)),_0x5891b7[_0x331c5f(0x15b)](_0x49a020(_0x496ac4));}return _0x5891b7['join']('\x0a')+'\x0a';},'subcommandTerm':_0x550784=>{const _0x2b2bfd=a2_0x3231b5,_0xdf3de5=(_0x550784['registeredArguments']||[])['map'](_0x12e98e=>_0x12e98e[_0x2b2bfd(0x2c4)]?'<'+_0x12e98e[_0x2b2bfd(0x250)]()+'>':'['+_0x12e98e[_0x2b2bfd(0x250)]()+']')['join']('\x20'),_0x65c59f=_0x550784['aliases'](),_0x14fbb1=_0x65c59f[_0x2b2bfd(0x2b0)]>0x0?_0x550784[_0x2b2bfd(0x250)]()+',\x20'+_0x65c59f['join'](',\x20'):_0x550784[_0x2b2bfd(0x250)]();return _0xdf3de5?_0x14fbb1+'\x20'+_0xdf3de5:_0x14fbb1;}}),program[a2_0x3231b5(0x132)](a2_0x3231b5(0xf3),_0x377213=>{const _0x11cb44=a2_0x3231b5,_0x23cb16=_0x377213[_0x11cb44(0x281)]();if(_0x23cb16[_0x11cb44(0x25c)]){const _0x2d22fd=resolve(_0x23cb16['directory']),_0xedbd7a=_0x2d22fd!==_0x23cb16[_0x11cb44(0x25c)]?'\x20(resolved\x20to\x20'+_0x2d22fd+')':'';if(!existsSync(_0x2d22fd))throw new SDKError(ErrorCode[_0x11cb44(0x1eb)],_0x11cb44(0x14f)+_0x23cb16[_0x11cb44(0x25c)]+_0xedbd7a,undefined,{'helpText':_0x11cb44(0x255)});const _0x309a54=statSync(_0x2d22fd);if(!_0x309a54[_0x11cb44(0x1a4)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x11cb44(0x1e2)+_0x23cb16['directory']+_0xedbd7a,undefined,{'helpText':_0x11cb44(0x2d1)});process[_0x11cb44(0x1be)](_0x2d22fd);}if(!_0x23cb16[_0x11cb44(0x1b4)]){if(_0x23cb16[_0x11cb44(0x238)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x238);else{if(_0x23cb16[_0x11cb44(0x2dd)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x2dd);else{if(_0x23cb16[_0x11cb44(0x23e)])_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x23e);else _0x23cb16[_0x11cb44(0x271)]&&(_0x23cb16[_0x11cb44(0x1b4)]=_0x11cb44(0x271));}}}_0x23cb16['in']&&!_0x23cb16[_0x11cb44(0x10c)]&&(_0x23cb16[_0x11cb44(0x10c)]=_0x23cb16['in']);if(_0x23cb16[_0x11cb44(0x24b)])_0x23cb16[_0x11cb44(0x187)]=LogLevel[_0x11cb44(0x2c0)];else{if(_0x23cb16[_0x11cb44(0x1b3)])_0x23cb16['logLevel']=LogLevel['DEBUG'];else _0x23cb16['logLevel']===undefined&&(_0x23cb16[_0x11cb44(0x187)]=LogLevel[_0x11cb44(0x263)]);}});async function createTDXInstance(_0x1753ec){const _0x14adfc=a2_0x3231b5,_0x2685ba=await GlobalContext[_0x14adfc(0x339)](_0x1753ec);return _0x2685ba['injectIntoOptions'](_0x1753ec),TDX[_0x14adfc(0x19c)]({'site':_0x2685ba[_0x14adfc(0x152)],'apiKey':_0x2685ba[_0x14adfc(0x114)],'logLevel':_0x2685ba[_0x14adfc(0x187)],'profile':_0x2685ba[_0x14adfc(0xf0)]});}const databaseCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x10c))[a2_0x3231b5(0x126)]('db')[a2_0x3231b5(0x1ef)]('Database\x20management\x20commands'),databaseListAction=async(_0x41c7db,_0x307511)=>{const _0x2b1adb=a2_0x3231b5,_0x533d81=new DatabasesCommand(),_0x36e3be=program[_0x2b1adb(0x281)](),_0x208d2d=await createTDXInstance(_0x36e3be),_0x426e38=await _0x533d81[_0x2b1adb(0x2ae)]({'options':{..._0x36e3be,..._0x307511},'args':_0x41c7db?[_0x41c7db]:[],'tdx':_0x208d2d});process[_0x2b1adb(0x2de)](_0x426e38);};databaseCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c6))[a2_0x3231b5(0x330)](databaseListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x284),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x118))['action'](databaseListAction),program[a2_0x3231b5(0x168)]('chat\x20[message...]')[a2_0x3231b5(0x1ef)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x3231b5(0x2fe)]('--agent\x20<ref>','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x3231b5(0x2fe)]('--new',a2_0x3231b5(0x256))['action'](async(_0x387454,_0x575dd5)=>{const _0x3f9b38=a2_0x3231b5,_0x5e91b1=new ChatCommand(),_0x1f2a0b=program[_0x3f9b38(0x281)](),_0x79b728=await createTDXInstance(_0x1f2a0b),_0x463446=await _0x5e91b1[_0x3f9b38(0x2ae)]({'options':{..._0x1f2a0b,..._0x575dd5},'args':_0x387454,'tdx':_0x79b728});process['exit'](_0x463446);});const apiCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2ea))[a2_0x3231b5(0x2b2)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\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_0x3231b5(0x2fe)](a2_0x3231b5(0x273),'HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','GET')['option'](a2_0x3231b5(0x304),a2_0x3231b5(0x142))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a0),a2_0x3231b5(0x150))[a2_0x3231b5(0x2fe)]('-H,\x20--header\x20<header>',a2_0x3231b5(0x2a0),(_0xd8227b,_0x27522d)=>{return _0x27522d?[..._0x27522d,_0xd8227b]:[_0xd8227b];})[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1c1),a2_0x3231b5(0x1c8),'td')[a2_0x3231b5(0x330)](async(_0x5af8f4,_0x57decd)=>{const _0x496a54=a2_0x3231b5;if(!_0x5af8f4){apiCmd['help']();return;}const _0x5f1454=new ApiCommand(),_0x1e2e05=program[_0x496a54(0x281)](),_0x5df093=await createTDXInstance(_0x1e2e05),_0x1a5b6e=await _0x5f1454[_0x496a54(0x2ae)]({'options':{..._0x1e2e05,..._0x57decd},'args':[_0x5af8f4],'tdx':_0x5df093});process[_0x496a54(0x2de)](_0x1a5b6e);}),tableCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x238))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16a)),tableListAction=async(_0x5ca3fa,_0x1a1ed5)=>{const _0x209259=a2_0x3231b5,_0x271043=new TablesCommand(),_0x4c584b=program[_0x209259(0x281)](),_0x42de29=await createTDXInstance(_0x4c584b);_0x1a1ed5['in']&&(_0x1a1ed5['database']=_0x1a1ed5['in']);const _0x6bd5b5=await _0x271043['run']({'options':{..._0x4c584b,..._0x1a1ed5},'args':_0x5ca3fa?[_0x5ca3fa]:[],'tdx':_0x42de29});process[_0x209259(0x2de)](_0x6bd5b5);};tableCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x270))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1d5),a2_0x3231b5(0x22a))['option'](a2_0x3231b5(0x21f),a2_0x3231b5(0x175))['action'](tableListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0xe3),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x157))['option'](a2_0x3231b5(0x1d5),a2_0x3231b5(0x22a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21f),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3231b5(0x330)](tableListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x105))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x33b))[a2_0x3231b5(0x2fe)]('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3231b5(0x2fe)]('--in\x20<database>','Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3231b5(0x330)](async(_0x2ee556,_0x51d08a)=>{const _0x146f15=a2_0x3231b5,_0x2210a5=new ShowCommand(),_0x48ed53=program[_0x146f15(0x281)](),_0x5603b6=await createTDXInstance(_0x48ed53);_0x51d08a['in']&&(_0x51d08a['database']=_0x51d08a['in']);const _0x2083ad=await _0x2210a5[_0x146f15(0x2ae)]({'options':{..._0x48ed53,..._0x51d08a},'args':_0x2ee556?[_0x2ee556]:[],'tdx':_0x5603b6});process[_0x146f15(0x2de)](_0x2083ad);}),program[a2_0x3231b5(0x168)]('describe\x20[table]')[a2_0x3231b5(0x126)](a2_0x3231b5(0x243))[a2_0x3231b5(0x1ef)]('Describe\x20table\x20schema')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1d5),a2_0x3231b5(0x2e2))[a2_0x3231b5(0x2fe)]('--in\x20<database>',a2_0x3231b5(0x175))[a2_0x3231b5(0x330)](async(_0x1f0460,_0x208508)=>{const _0x33e17f=a2_0x3231b5,_0x3bee77=new DescribeCommand(),_0x41112a=program[_0x33e17f(0x281)](),_0x287770=await createTDXInstance(_0x41112a);_0x208508['in']&&(_0x208508['database']=_0x208508['in']);const _0x2a62c9=await _0x3bee77['run']({'options':{..._0x41112a,..._0x208508},'args':_0x1f0460?[_0x1f0460]:[],'tdx':_0x287770});process[_0x33e17f(0x2de)](_0x2a62c9);}),program[a2_0x3231b5(0x168)]('query\x20[sql]')[a2_0x3231b5(0x1ef)]('Run\x20Trino\x20query\x20with\x20streaming\x20results')['option'](a2_0x3231b5(0x1d5),a2_0x3231b5(0x1dc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21f),a2_0x3231b5(0x175))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ee),a2_0x3231b5(0x1cf))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a0),a2_0x3231b5(0x299))[a2_0x3231b5(0x2fe)]('--limit\x20<rows>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3231b5(0x330)](async(_0xcde195,_0x4f609d)=>{const _0x36a99e=a2_0x3231b5,_0x2bf65f=new QueryCommand(),_0x5cb0b6=program[_0x36a99e(0x281)](),_0x1c53fe=await createTDXInstance(_0x5cb0b6);_0x4f609d['in']&&(_0x4f609d['database']=_0x4f609d['in']);const _0x47fc78=await _0x2bf65f[_0x36a99e(0x2ae)]({'options':{..._0x5cb0b6,..._0x4f609d},'args':_0xcde195?[_0xcde195]:[],'tdx':_0x1c53fe});process[_0x36a99e(0x2de)](_0x47fc78);});const segmentCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x177))[a2_0x3231b5(0x126)]('sg')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x280)),segmentListAction=async(_0x3b4c24,_0x316e5c)=>{const _0x3630d0=a2_0x3231b5,_0x30c04c=new SegmentsCommand(),_0x13b165=program[_0x3630d0(0x281)](),_0x1b3dfb=await createTDXInstance(_0x13b165),_0x4720a7=await _0x30c04c['run']({'options':{..._0x13b165,..._0x316e5c},'args':_0x3b4c24?[_0x3b4c24]:[],'tdx':_0x1b3dfb});process[_0x3630d0(0x2de)](_0x4720a7);};segmentCmd[a2_0x3231b5(0x168)]('list\x20[path]')['description'](a2_0x3231b5(0x298))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x194),a2_0x3231b5(0x327))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2f4),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')['action'](segmentListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x17d),{'hidden':!![]})['description']('List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x194),a2_0x3231b5(0x327))[a2_0x3231b5(0x2fe)]('--max-depth\x20<depth>','Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x3231b5(0x330)](segmentListAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x165),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x180))[a2_0x3231b5(0x330)](async(_0x5dc3c2,_0x13d524)=>{const _0x16021a=a2_0x3231b5,_0x1fa5e2=new SegmentUseCommand(),_0x3bef90=program[_0x16021a(0x281)](),_0x19f62f=await createTDXInstance(_0x3bef90),_0x374b94=await _0x1fa5e2[_0x16021a(0x2ae)]({'options':{..._0x3bef90,..._0x13d524},'args':[_0x5dc3c2],'tdx':_0x19f62f});process[_0x16021a(0x2de)](_0x374b94);});const segmentViewAction=async(_0x4e8776,_0x2d1416)=>{const _0x1a06d6=a2_0x3231b5,_0x49edd8=new SegmentViewCommand(),_0x3070b6=program[_0x1a06d6(0x281)](),_0x27cbbc=await createTDXInstance(_0x3070b6),_0x346b79=await _0x49edd8[_0x1a06d6(0x2ae)]({'options':{..._0x3070b6,..._0x2d1416},'args':_0x4e8776?[_0x4e8776]:[],'tdx':_0x27cbbc});process[_0x1a06d6(0x2de)](_0x346b79);};segmentCmd['command']('view\x20[segment_name]')['description'](a2_0x3231b5(0x217))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x122))[a2_0x3231b5(0x330)](segmentViewAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18f),{'hidden':!![]})['alias']('describe')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x122))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x166))[a2_0x3231b5(0x330)](segmentViewAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x192))['description'](a2_0x3231b5(0x1d6))[a2_0x3231b5(0x330)](async(_0x3de96e,_0x516211)=>{const _0x35f51c=a2_0x3231b5,_0x9a5677=new SegmentDescCommand(),_0x5010e6=program['opts'](),_0x3a3677=await createTDXInstance(_0x5010e6),_0x4c0e17=await _0x9a5677['run']({'options':{..._0x5010e6,..._0x516211},'args':_0x3de96e?[_0x3de96e]:[],'tdx':_0x3a3677});process[_0x35f51c(0x2de)](_0x4c0e17);}),segmentCmd['command'](a2_0x3231b5(0x1db))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x202))[a2_0x3231b5(0x330)](async(_0x2ea318,_0x6af6a9)=>{const _0x585521=a2_0x3231b5,_0x51fe5d=new SegmentShowCommand(),_0x5880b4=program[_0x585521(0x281)](),_0x49340b=await createTDXInstance(_0x5880b4),_0xd9a3de=await _0x51fe5d[_0x585521(0x2ae)]({'options':{..._0x5880b4,..._0x6af6a9},'args':_0x2ea318?[_0x2ea318]:[],'tdx':_0x49340b});process['exit'](_0xd9a3de);}),segmentCmd[a2_0x3231b5(0x168)]('folders\x20<parent_name>',{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x315))[a2_0x3231b5(0x330)](async(_0x1787e8,_0x2a0c0a)=>{const _0x336fff=a2_0x3231b5,_0x7de1e0=new SegmentFolderListCommand(),_0x50522b=program[_0x336fff(0x281)](),_0x348c54=await createTDXInstance(_0x50522b),_0x4c94e1=await _0x7de1e0['run']({'options':{..._0x50522b,..._0x2a0c0a},'args':[_0x1787e8],'tdx':_0x348c54});process['exit'](_0x4c94e1);});const folderCmd=segmentCmd[a2_0x3231b5(0x168)]('folder',{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x185));folderCmd[a2_0x3231b5(0x168)]('show\x20<folder_ref>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x310))[a2_0x3231b5(0x330)](async(_0x4ad347,_0x310bd4)=>{const _0x164360=a2_0x3231b5,_0x1710a8=new SegmentFolderShowCommand(),_0x55459f=program[_0x164360(0x281)](),_0x236d4c=await createTDXInstance(_0x55459f),_0x42c017=await _0x1710a8['run']({'options':{..._0x55459f,..._0x310bd4},'args':[_0x4ad347],'tdx':_0x236d4c});process[_0x164360(0x2de)](_0x42c017);}),segmentCmd['command'](a2_0x3231b5(0x275))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xff))[a2_0x3231b5(0x330)](async(_0x29dab4,_0x55efad)=>{const _0x431978=a2_0x3231b5,_0x31f1e7=new SegmentSQLCommand(),_0x1fbbaa=program[_0x431978(0x281)](),_0x235fb1=await createTDXInstance(_0x1fbbaa),_0x2020d6=await _0x31f1e7[_0x431978(0x2ae)]({'options':{..._0x1fbbaa,..._0x55efad},'args':_0x29dab4?[_0x29dab4]:[],'tdx':_0x235fb1});process[_0x431978(0x2de)](_0x2020d6);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x20a))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x10f))[a2_0x3231b5(0x330)](async(_0xa95acd,_0x1c57c)=>{const _0x4adb7d=a2_0x3231b5,_0x5cb14b=new SegmentFieldsCommand(),_0x2ba2db=program[_0x4adb7d(0x281)](),_0x8e1b13=await createTDXInstance(_0x2ba2db),_0x1dda2c=await _0x5cb14b['run']({'options':{..._0x2ba2db,..._0x1c57c},'args':_0xa95acd?[_0xa95acd]:[],'tdx':_0x8e1b13});process[_0x4adb7d(0x2de)](_0x1dda2c);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2fa))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x1a2))['option'](a2_0x3231b5(0x24f),a2_0x3231b5(0x305))[a2_0x3231b5(0x330)](async(_0x1b1856,_0x3ecfab)=>{const _0x2f41cc=a2_0x3231b5,_0x58f05b=new SegmentPullCommand(),_0xabc5c6=program[_0x2f41cc(0x281)](),_0x573fd7=await createTDXInstance(_0xabc5c6),_0x3d9743=await _0x58f05b[_0x2f41cc(0x2ae)]({'options':{..._0xabc5c6,..._0x3ecfab},'args':_0x1b1856?[_0x1b1856]:[],'tdx':_0x573fd7});process['exit'](_0x3d9743);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1ac))[a2_0x3231b5(0x1ef)]('Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments')[a2_0x3231b5(0x2fe)]('-y,\x20--yes',a2_0x3231b5(0x1a2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x305))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1c7),a2_0x3231b5(0x326))['action'](async(_0x5f200f,_0x58eb35)=>{const _0x272c53=a2_0x3231b5,_0x32ceab=new SegmentPushCommand(),_0x5076f7=program[_0x272c53(0x281)](),_0x3aa505=await createTDXInstance(_0x5076f7),_0x255bf0=await _0x32ceab['run']({'options':{..._0x5076f7,..._0x58eb35},'args':_0x5f200f?[_0x5f200f]:[],'tdx':_0x3aa505});process[_0x272c53(0x2de)](_0x255bf0);}),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x188))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x20b))[a2_0x3231b5(0x330)](async(_0x506e48,_0xe3303)=>{const _0x1aa452=a2_0x3231b5,_0x18b1b1=new SegmentValidateCommand(),_0x5260cd=program['opts'](),_0x3bb998=await createTDXInstance(_0x5260cd),_0x3fb6ab=await _0x18b1b1['run']({'options':{..._0x5260cd,..._0xe3303},'args':_0x506e48?[_0x506e48]:[],'tdx':_0x3bb998});process[_0x1aa452(0x2de)](_0x3fb6ab);}),segmentCmd['command'](a2_0x3231b5(0x306),{'hidden':!![]})['description'](a2_0x3231b5(0x319))['option']('--description\x20<text>',a2_0x3231b5(0x33c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x287),a2_0x3231b5(0x12f))[a2_0x3231b5(0x2fe)]('--rule-file\x20<file>',a2_0x3231b5(0x1c4))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x312),'Folder\x20name\x20for\x20organization')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ff),'Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x107),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x10e),a2_0x3231b5(0x293))[a2_0x3231b5(0x330)](async(_0x52785a,_0xb1be89)=>{const _0x482712=a2_0x3231b5,_0x57ee11=new SegmentCreateCommand(),_0x24d2d9=program[_0x482712(0x281)](),_0x160fb2=await createTDXInstance(_0x24d2d9),_0x58e179=await _0x57ee11[_0x482712(0x2ae)]({'options':{..._0x24d2d9,..._0xb1be89},'args':[_0x52785a],'tdx':_0x160fb2});process[_0x482712(0x2de)](_0x58e179);}),segmentCmd[a2_0x3231b5(0x168)]('update\x20<segment_name>',{'hidden':!![]})['description'](a2_0x3231b5(0x31f))[a2_0x3231b5(0x2fe)]('--name\x20<new_name>',a2_0x3231b5(0x12e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f8),a2_0x3231b5(0x1d3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x287),a2_0x3231b5(0x1c9))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x26a),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x312),'Move\x20to\x20folder')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2ff),a2_0x3231b5(0x123))[a2_0x3231b5(0x330)](async(_0x43de29,_0x16bf48)=>{const _0x106e1e=a2_0x3231b5,_0x2586e2=new SegmentUpdateCommand(),_0x2eafed=program[_0x106e1e(0x281)](),_0x363227=await createTDXInstance(_0x2eafed),_0x1eee6c=await _0x2586e2[_0x106e1e(0x2ae)]({'options':{..._0x2eafed,..._0x16bf48},'args':[_0x43de29],'tdx':_0x363227});process[_0x106e1e(0x2de)](_0x1eee6c);});const parentCmd=segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1c3),{'hidden':!![]})['description'](a2_0x3231b5(0x209)),parentListAction=async(_0x41dd9e,_0x45bec6)=>{const _0x294324=a2_0x3231b5,_0x134a74=new ParentSegmentListCommand(),_0x516323=program['opts'](),_0x5490f4=await createTDXInstance(_0x516323),_0x322b99=await _0x134a74[_0x294324(0x2ae)]({'options':{..._0x516323,..._0x45bec6},'args':_0x41dd9e?[_0x41dd9e]:[],'tdx':_0x5490f4});process['exit'](_0x322b99);};parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf7))['action'](parentListAction),segmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x13a),{'hidden':!![]})[a2_0x3231b5(0x1ef)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3231b5(0x330)](parentListAction),parentCmd['command'](a2_0x3231b5(0x213))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x140))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x101),a2_0x3231b5(0x2a2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x325870,_0x42bb0a)=>{const _0x217499=a2_0x3231b5,_0xb6c5f0=new ParentSegmentPullCommand(),_0x49cbc6=program[_0x217499(0x281)](),_0x45db04=await createTDXInstance(_0x49cbc6),_0x1d8ddd=await _0xb6c5f0[_0x217499(0x2ae)]({'options':{..._0x49cbc6,..._0x42bb0a},'args':_0x325870?[_0x325870]:[],'tdx':_0x45db04});process[_0x217499(0x2de)](_0x1d8ddd);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xfb))['description'](a2_0x3231b5(0x1e4))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['action'](async(_0x30858a,_0x27c507)=>{const _0x4d3141=a2_0x3231b5,_0x3478c2=new ParentSegmentPushCommand(),_0x13149a=program['opts'](),_0x23f21a=await createTDXInstance(_0x13149a),_0x490423=await _0x3478c2[_0x4d3141(0x2ae)]({'options':{..._0x13149a,..._0x27c507},'args':_0x30858a?[_0x30858a]:[],'tdx':_0x23f21a});process[_0x4d3141(0x2de)](_0x490423);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x28a))[a2_0x3231b5(0x1ef)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3231b5(0x2fe)]('--master',a2_0x3231b5(0x108))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0xe7))[a2_0x3231b5(0x2fe)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3231b5(0x2fe)]('--enriched',a2_0x3231b5(0x1ca))[a2_0x3231b5(0x2fe)]('--interval\x20<range>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3231b5(0x257))[a2_0x3231b5(0x330)](async(_0x54ca96,_0x4d1802)=>{const _0x53d07e=a2_0x3231b5,_0xcaefc9=new ParentSegmentValidateCommand(),_0x553325=program[_0x53d07e(0x281)](),_0x58012d=await createTDXInstance(_0x553325),_0x294ce0=await _0xcaefc9[_0x53d07e(0x2ae)]({'options':{..._0x553325,..._0x4d1802},'args':_0x54ca96?[_0x54ca96]:[],'tdx':_0x58012d});process[_0x53d07e(0x2de)](_0x294ce0);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1d9))['description'](a2_0x3231b5(0x27b))[a2_0x3231b5(0x2fe)]('--master',a2_0x3231b5(0x2c3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0x10d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f2),a2_0x3231b5(0x303))[a2_0x3231b5(0x2fe)]('--enriched',a2_0x3231b5(0x212))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),a2_0x3231b5(0x1b2),a2_0x3231b5(0x257))[a2_0x3231b5(0x330)](async(_0x432d24,_0x54b699)=>{const _0x1feb57=a2_0x3231b5,_0x1f8302=new ParentSegmentPreviewCommand(),_0x5ee3eb=program[_0x1feb57(0x281)](),_0x498d79=await createTDXInstance(_0x5ee3eb),_0x540256=await _0x1f8302[_0x1feb57(0x2ae)]({'options':{..._0x5ee3eb,..._0x54b699},'args':_0x432d24?[_0x432d24]:[],'tdx':_0x498d79});process[_0x1feb57(0x2de)](_0x540256);}),parentCmd['command'](a2_0x3231b5(0x24c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x137))['option'](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')['action'](async(_0x2d50e1,_0x268766)=>{const _0x41597b=a2_0x3231b5,_0xadcc1c=new ParentSegmentRunCommand(),_0x51381a=program[_0x41597b(0x281)](),_0xcbff4a=await createTDXInstance(_0x51381a),_0x58ae9f=await _0xadcc1c['run']({'options':{..._0x51381a,..._0x268766},'args':_0x2d50e1?[_0x2d50e1]:[],'tdx':_0xcbff4a});process[_0x41597b(0x2de)](_0x58ae9f);});const parentSegmentCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xfc))[a2_0x3231b5(0x126)]('ps')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x336));function a2_0x57f0(){const _0x1c2fef=['Email\x20template\x20management','List\x20all\x20available\x20profiles','--type\x20<api_type>','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','parent','Filtering\x20rule\x20from\x20JSON\x20file','attempt:','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--delete','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Limit\x20number\x20of\x20rows','LLM\x20project\x20to\x20use\x20(overrides\x20context)','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Trino\x20catalog\x20(default:\x20td)','Resume\x20a\x20paused\x20journey','error','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Updated\x20description','--max-tool-iterations\x20<n>','-d,\x20--database\x20<database>','Show\x20segment\x20schema\x20(column\x20types)','logs','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','preview\x20[file]','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','show\x20[segment_name]','Database\x20to\x20query\x20(default:\x20information_schema)','Overwrite\x20local\x20changes\x20without\x20confirmation','Commands:','--json-columns\x20<cols>','--last','--limit\x20<number>','Path\x20is\x20not\x20a\x20directory:\x20','Workspace\x20management','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','1930773vcGDEh','jobs','Behaviors\x20from\x20JSON\x20file','Submit\x20a\x20job','Include\x20retried\x20attempts\x20(for\x20list)','INVALID_ARGUMENT','download\x20<project-name>\x20[output-dir]','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','--attributes\x20<json>','description','setup','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','--behavior\x20[name]','Workflow\x20parameter\x20(repeatable)','--in\x20<name>','replace','show\x20<name-or-id>','trino','--description\x20<text>','Show\x20timeline\x20for\x20specific\x20attempt','parent_segment','result\x20<job-id>','subcommandTerm','padWidth','Update\x20a\x20campaign','Preview\x20operation\x20without\x20executing','Parent\x20folder\x20name\x20for\x20nested\x20folders','usage','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','-c,\x20--continue','Database\x20to\x20use\x20(overrides\x20context)','--job-type\x20<type>','forEach','use\x20[name]','List\x20journeys\x20(alias\x20for\x20journey\x20list)','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','fields\x20[parent_name]','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','--enriched','Follow/watch\x20timeline\x20for\x20running\x20attempts','New\x20template\x20name','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','-o,\x20--output\x20<dir>','show\x20<agent-name>','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','pull\x20[name]','create\x20<parent_name>\x20<folder_name>','launch\x20<name-or-id>','Delete\x20an\x20agent','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','claude-4.5-sonnet','Timezone\x20(e.g.,\x20America/Los_Angeles)','--to\x20<timestamp>','Agent\x20name','--customer-group\x20<json>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','--behaviors-file\x20<file>','--in\x20<database>','--color','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Setup\x20API\x20key\x20authentication\x20interactively','Pause\x20a\x20running\x20journey','list','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','sql\x20[name]','--customer-group-file\x20<file>','\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','resume\x20<name-or-id>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Show\x20agent\x20details','Show\x20workspace\x20details','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','activations\x20<segment_name>','--port\x20<number>','--param\x20<key=value>','LLM\x20agent\x20management','Create\x20a\x20new\x20profile','remove\x20<name>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Skip\x20confirmation\x20prompt','argv','table','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','Launch\x20a\x20campaign','resume\x20<name-or-path>','Model\x20type\x20(default:\x20claude-4.5-sonnet)','isArray','jsonl','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','optionTerm','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','desc','Pull\x20workflow\x20project\x20to\x20local\x20folder','Master\x20table\x20name','--name\x20<new-name>','5222777NTzlEh','-p,\x20--profile\x20<name>','--output\x20<file>','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','trace','run\x20[name]','User\x20management\x20commands','Workflow\x20(Digdag)\x20management\x20commands','--dry-run','name','Workspace\x20description','-d,\x20--database\x20<name>','job','Resume\x20from\x20specific\x20task\x20(retry)','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Start\x20a\x20new\x20chat\x20session','-1d','campaign','Starter\x20message','8zFSUcq','--jsonl','directory','12588910RhAlOY','--include-stats','--from\x20<timestamp>','Name\x20for\x20the\x20new\x20project\x20(required)','Override\x20project\x20name','--add-behaviors\x20<json>','INFO','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Include\x20retried\x20attempts','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','campaigns\x20[pattern]','update\x20<name>','Customer\x20group\x20from\x20JSON\x20file','--rule-file\x20<file>','--llm-project\x20<name>','Updated\x20schedule\x20option','registeredArguments','Email\x20sender\x20ID\x20for\x20delivery','Include\x20subtasks\x20in\x20tasks\x20output','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','tsv','retry\x20<session-id>','-X,\x20--method\x20<method>','_hidden','sql\x20[segment_name]','--full',',\x20version\x20','port','Set\x20a\x20profile\x20configuration\x20value','us01','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','projects\x20[pattern]','--database\x20<db>','Template\x20name','slice','CDP\x20segment\x20management\x20commands','opts','Include\x20execution\x20statistics','Output\x20folder\x20(default:\x20{project_name}.llm)','databases\x20[pattern]','--model\x20<name>','create\x20<name>','--rule\x20<json>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--start-at\x20<datetime>','validate\x20[file]','then','Add\x20attributes\x20as\x20JSON\x20string','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a','--yes','auth','--timezone\x20<tz>','workflow','--limit\x20<n>','Skip\x20population\x20counting','subcommandDescription','--email-sender-id\x20<id>','--temperature\x20<n>','Output\x20directory','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Read\x20SQL\x20query\x20from\x20file','--attributes-file\x20<file>','Master\x20database\x20name','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','timeline\x20[project.workflow]','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Output\x20file\x20path\x20(default:\x20<name>.yml)','filter','Show\x20the\x20most\x20recent\x20chat','Create\x20a\x20workspace','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','delete\x20<agent-name>','isTTY','Delete\x20an\x20LLM\x20project','Resume\x20a\x20paused\x20campaign','Temperature\x20(0.0-2.0,\x20default:\x200.7)','repeat','Preview\x20changes\x20without\x20pushing','run','validate\x20[name]','length','profiles','summary','includes','--resume-from\x20<task>','--project\x20<name>','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20jobs','Parent\x20segment\x20description','set\x20<key=value>','Output\x20file\x20path','project','--plaintext\x20<text>','Unknown\x20action:\x20','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','-f,\x20--force','TRACE','Project\x20description','templates\x20[pattern]','Show\x20master\x20table\x20sample\x20data','required','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','list\x20[pattern]','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','--workspace\x20<name>','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Create\x20a\x20new\x20campaign','System\x20prompt/instructions\x20(default:\x20empty)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','New\x20workspace\x20name','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Clear\x20workflow\x20project\x20context','--session-time\x20<time>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--format\x20<format>','--type\x20<type>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','--add-attributes-file\x20<file>','clone\x20[source]','--starter-message\x20<text>','--params\x20<json>','commandUsage','json','exit','get','journeys\x20[pattern]','--database\x20<name>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','HTML\x20template\x20content','Plaintext\x20template\x20content','-y,\x20--yes','Delete\x20an\x20email\x20template','Show\x20job\x20details','sonnet','show\x20<name>','api\x20[endpoint]','Delete\x20a\x20campaign','push\x20[name]','Pull\x20specific\x20revision\x20(default:\x20latest)','--catalog\x20<catalog>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','Change\x20to\x20directory\x20before\x20executing\x20command','--table\x20<table>','--no-proxy','restore\x20<folder>','--max-depth\x20<depth>','requiredOption','Workflow\x20attempt\x20management','after','Attributes\x20from\x20JSON\x20file','engage','pull\x20[parent_or_file]','backup\x20<name>','List\x20all\x20data\x20connections','Skip\x20validation\x20of\x20.dig\x20files','option','--kind\x20<type>','655134GDXctl','--behaviors\x20<json>','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','--data\x20<data>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','create\x20<segment_name>','retry','show\x20<job-id>','Email\x20subject\x20template','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--site\x20<site>','Options:','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','gitRevision','--folder\x20<name>','Add\x20behaviors\x20from\x20JSON\x20file','view\x20[name]','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','session','Folder\x20description','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','\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','stats\x20<name-or-path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','--master','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Kill\x20a\x20job','Output\x20as\x20JSON\x20Lines','Get\x20job\x20results','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Read\x20query\x20from\x20file','duplicate\x20<name-or-id>','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Resume\x20a\x20conversation\x20(shows\x20selector)','Show\x20connection\x20details\x20by\x20name','agents\x20[pattern]','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Interactive\x20chat\x20selector','Export\x20journey(s)\x20as\x20YAML\x20files','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','action','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','argument','Campaign\x20type\x20(email\x20or\x20push)','workspaces\x20[pattern]','commands','Parent\x20segment\x20management','--session-id\x20<id>','delete\x20<name-or-id>','createAsync','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Segment\x20description','tables\x20[pattern]','--schedule-type\x20<type>','outputHelp','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','--attribute\x20[name]','Validate\x20journey\x20YAML\x20files\x20locally','create\x20[name]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Add\x20attributes\x20from\x20JSON\x20file','--no-color','update\x20<agent-name>','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','profile','journey','chats','preAction','sessions\x20[project]','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Pull\x20child\x20segments\x20to\x20YAML\x20files','-u,\x20--use','--prompt\x20<text>','push\x20[file]','parent-segment','workflows\x20[project]','-r,\x20--resume','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Start\x20time\x20filter\x20(ISO\x208601\x20format)','-o,\x20--output\x20<file>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','New\x20campaign\x20name','list\x20[project]','show\x20[table]','join','--invisible','Show\x20only\x20master\x20table\x20validation','--include-subtasks','addHelpText','Output\x20as\x20JSON','database','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','--no-count-population','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Editor\x20type','--subject\x20<subject>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','apiKey','--agent\x20<name>','Save\x20output\x20to\x20file','Force\x20retry\x20even\x20if\x20not\x20failed','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Agent\x20description','4000','tdx','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--skip-validation','Campaign\x20name','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Pause\x20a\x20campaign','Set\x20session\x20profile','Open\x20segment\x20in\x20web\x20browser','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Create\x20an\x20email\x20template','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','alias','stderr','Agent\x20prompt/instructions','List\x20journeys\x20in\x20current\x20context','Attempt\x20ID','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','--interval\x20<range>','New\x20segment\x20name','Filtering\x20rule\x20as\x20JSON\x20string','--segment\x20<path>','Enable\x20verbose\x20logging','hook','-o,\x20--output\x20<folder>','Data\x20connection\x20management\x20(for\x20activations/exports)','Campaign\x20description','update\x20<name-or-id>','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','fields\x20[name]','-n,\x20--name\x20<name>','parents\x20[pattern]','connections','claude\x20[args...]','Continue\x20most\x20recent\x20conversation','clone\x20[source-dir]','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','argumentTerm','Request\x20body\x20as\x20JSON\x20string','pause\x20<name-or-id>','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','--clear','options','Push\x20without\x20confirmation','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--from-task\x20<task>','delete\x20<name>','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','266892DZWjCc','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Directory\x20does\x20not\x20exist:\x20','Read\x20request\x20body\x20from\x20file','--json','site','--parent-folder\x20<name>','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','tdx\x20','Set\x20operation\x20timeout\x20in\x20seconds','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','use\x20[project]','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','push','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','--description\x20<desc>','Database\x20name\x20(default:\x20information_schema)','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','attempt','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','Show\x20campaign\x20details','Duplicate\x20a\x20campaign','Delete\x20a\x20workspace','use\x20<path>','Show\x20segment\x20details\x20(alias\x20for\x20view)','status','command','padEnd','Table\x20management\x20commands','Job\x20management\x20commands','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','delete\x20<args...>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','use\x20<name>','--tsv','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','argumentDescription','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Custom\x20revision\x20name\x20(default:\x20timestamp)','segment','--debug','--table','Updated\x20timezone','Clear\x20session\x20context','--follow','segments\x20[path]','Open\x20parent\x20segment\x20in\x20web\x20browser','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','-w,\x20--web','Create\x20segment\x20folder','Open\x20journey\x20in\x20web\x20browser','run\x20[workflow]','[DEPRECATED]\x20Segment\x20folder\x20management','models','logLevel','validate\x20[target]','--schedule-option\x20<value>','upload\x20[project-name-or-dir]','pause\x20<name-or-path>','Show\x20journey\x20statistics','--session\x20<id>','map','info\x20[segment_name]','[action]','5Labfaz','desc\x20[segment_name]','--include-retried','-r,\x20--recursive','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--status\x20<status>','--name\x20<name>','hidden','-v,\x20--verbose','Arguments:','create','Workflow\x20project\x20management','1117388XqhOHz','--add-behaviors-file\x20<file>','-f,\x20--file\x20<path>','user','Skip\x20confirmation\x20prompts','--system-prompt\x20<text>','isDirectory','2972682gvlvFM','Manage\x20workflow\x20project\x20secrets','view\x20<name-or-path>','Workspace\x20name\x20(required)','attempts\x20[project]','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','buildTime','push\x20[parent_or_file]','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--add-attributes\x20<json>','--html\x20<html>','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','--revision\x20<revision>','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','debug','format','Workspace\x20name','--trace','9RLDyJz','End\x20time\x20filter\x20(ISO\x208601\x20format)','flatMap','tasks','Update\x20an\x20existing\x20agent','Add\x20behaviors\x20as\x20JSON\x20string','--timeout\x20<seconds>','chdir'];a2_0x57f0=function(){return _0x1c2fef;};return a2_0x57f0();}parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf7))[a2_0x3231b5(0x330)](parentListAction),parentSegmentCmd['command']('pull\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xeb))[a2_0x3231b5(0x2fe)]('-o,\x20--output\x20<file>',a2_0x3231b5(0x2ba))['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['option'](a2_0x3231b5(0xf9),a2_0x3231b5(0x2be))['action'](async(_0x5d29e4,_0x592f01)=>{const _0x1c0b56=a2_0x3231b5,_0x364173=new ParentSegmentPullCommand(),_0x34d9fe=program[_0x1c0b56(0x281)](),_0x465e93=await createTDXInstance(_0x34d9fe),_0x110ca3=await _0x364173['run']({'options':{..._0x34d9fe,..._0x592f01},'args':_0x5d29e4?[_0x5d29e4]:[],'tdx':_0x465e93});process[_0x1c0b56(0x2de)](_0x110ca3);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2ec))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a6))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x495da7,_0xee945c)=>{const _0x34b131=a2_0x3231b5,_0x26a2c0=new ParentSegmentPushCommand(),_0x1aadeb=program['opts'](),_0x4580a7=await createTDXInstance(_0x1aadeb),_0x251eae=await _0x26a2c0['run']({'options':{..._0x1aadeb,..._0xee945c},'args':_0x495da7?[_0x495da7]:[],'tdx':_0x4580a7});process[_0x34b131(0x2de)](_0x251eae);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2af))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x22b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x31d),a2_0x3231b5(0x108))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0xe7))['option'](a2_0x3231b5(0x1f2),a2_0x3231b5(0x15c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x20c),a2_0x3231b5(0x1ca))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),a2_0x3231b5(0x1b2),'-1d')['action'](async(_0xf7b7e1,_0xd29003)=>{const _0x4f2f2c=a2_0x3231b5,_0x33cfec=new ParentSegmentValidateCommand(),_0x31aa22=program['opts'](),_0x5ce8d2=await createTDXInstance(_0x31aa22),_0x1a912d=await _0x33cfec[_0x4f2f2c(0x2ae)]({'options':{..._0x31aa22,..._0xd29003},'args':_0xf7b7e1?[_0xf7b7e1]:[],'tdx':_0x5ce8d2});process[_0x4f2f2c(0x2de)](_0x1a912d);}),parentSegmentCmd[a2_0x3231b5(0x168)]('preview\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x27b))['option'](a2_0x3231b5(0x31d),a2_0x3231b5(0x2c3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xe8),a2_0x3231b5(0x10d))['option'](a2_0x3231b5(0x1f2),a2_0x3231b5(0x303))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x20c),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x12d),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3231b5(0x257))['action'](async(_0x37012f,_0x40904b)=>{const _0x542c74=a2_0x3231b5,_0x387a17=new ParentSegmentPreviewCommand(),_0x5ef9b1=program['opts'](),_0x418f23=await createTDXInstance(_0x5ef9b1),_0x2c6b11=await _0x387a17['run']({'options':{..._0x5ef9b1,..._0x40904b},'args':_0x37012f?[_0x37012f]:[],'tdx':_0x418f23});process[_0x542c74(0x2de)](_0x2c6b11);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x24c))['description'](a2_0x3231b5(0x137))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](async(_0x4068fa,_0x56ac0b)=>{const _0xed5c52=a2_0x3231b5,_0x282b36=new ParentSegmentRunCommand(),_0x5c2814=program[_0xed5c52(0x281)](),_0x4c1cbf=await createTDXInstance(_0x5c2814),_0x3c5fa5=await _0x282b36['run']({'options':{..._0x5c2814,..._0x56ac0b},'args':_0x4068fa?[_0x4068fa]:[],'tdx':_0x4c1cbf});process[_0xed5c52(0x2de)](_0x3c5fa5);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x138))['description'](a2_0x3231b5(0x239))['option'](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x2d6add,_0x1625dd)=>{const _0x32e0e5=a2_0x3231b5,_0x1f9ea3=new ParentSegmentFieldsCommand(),_0x4d91aa=program['opts'](),_0x46d64b=await createTDXInstance(_0x4d91aa),_0x3e198c=await _0x1f9ea3[_0x32e0e5(0x2ae)]({'options':{..._0x4d91aa,..._0x1625dd},'args':_0x2d6add?[_0x2d6add]:[],'tdx':_0x46d64b});process[_0x32e0e5(0x2de)](_0x3e198c);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x314))[a2_0x3231b5(0x1ef)]('Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x181),a2_0x3231b5(0x17e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))['option'](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x1cbc3c,_0x2e367b)=>{const _0x37b2e9=a2_0x3231b5,_0x2b28e7=new ParentSegmentViewCommand(),_0x5498ae=program[_0x37b2e9(0x281)](),_0x2cd985=await createTDXInstance(_0x5498ae),_0x206c12=await _0x2b28e7[_0x37b2e9(0x2ae)]({'options':{..._0x5498ae,..._0x2e367b},'args':_0x1cbc3c?[_0x1cbc3c]:[],'tdx':_0x2cd985});process['exit'](_0x206c12);}),parentSegmentCmd['command']('desc\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x331))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3231b5(0x330)](async(_0x46a82a,_0x4b9512)=>{const _0x4384b8=a2_0x3231b5,_0x3689e0=new ParentSegmentDescCommand(),_0x3e8504=program[_0x4384b8(0x281)](),_0x29146f=await createTDXInstance(_0x3e8504),_0x6f15d4=await _0x3689e0[_0x4384b8(0x2ae)]({'options':{..._0x3e8504,..._0x4b9512},'args':_0x46a82a?[_0x46a82a]:[],'tdx':_0x29146f});process[_0x4384b8(0x2de)](_0x6f15d4);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x226))[a2_0x3231b5(0x1ef)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),a2_0x3231b5(0x10b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25b),a2_0x3231b5(0x321))[a2_0x3231b5(0x330)](async(_0x2d1fd5,_0x3d0ccb)=>{const _0x37ad2b=a2_0x3231b5,_0x3f5b47=new ParentSegmentSQLCommand(),_0x4ae177=program['opts'](),_0x2822bb=await createTDXInstance(_0x4ae177),_0x4c8e79=await _0x3f5b47[_0x37ad2b(0x2ae)]({'options':{..._0x4ae177,..._0x3d0ccb},'args':_0x2d1fd5?[_0x2d1fd5]:[],'tdx':_0x2822bb});process[_0x37ad2b(0x2de)](_0x4c8e79);}),parentSegmentCmd[a2_0x3231b5(0x168)]('show\x20[name]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x29c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x292),a2_0x3231b5(0x1cc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x151),'Output\x20as\x20JSON')[a2_0x3231b5(0x2fe)]('--jsonl','Output\x20as\x20JSON\x20Lines')['action'](async(_0xafacfb,_0x2f585f)=>{const _0x8e2c1c=a2_0x3231b5,_0x44dcd8=new ParentSegmentShowCommand(),_0x401161=program['opts'](),_0x333484=await createTDXInstance(_0x401161),_0x4b1e9f=await _0x44dcd8[_0x8e2c1c(0x2ae)]({'options':{..._0x401161,..._0x2f585f},'args':_0xafacfb?[_0xafacfb]:[],'tdx':_0x333484});process[_0x8e2c1c(0x2de)](_0x4b1e9f);}),parentSegmentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x207))[a2_0x3231b5(0x1ef)]('Set\x20or\x20show\x20parent\x20segment\x20context')[a2_0x3231b5(0x330)](async(_0x6dd9b9,_0x5dc792)=>{const _0x177319=a2_0x3231b5,_0x15d44e=new UseCommand(),_0x3894ed=program[_0x177319(0x281)](),_0x12b247=_0x6dd9b9?[_0x177319(0x1fa),_0x6dd9b9]:[],_0x2a4536=await _0x15d44e[_0x177319(0x2ae)]({'options':{..._0x3894ed,..._0x5dc792},'args':_0x12b247,'tdx':null});process['exit'](_0x2a4536);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x286))['description'](a2_0x3231b5(0x2b6))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x27d),a2_0x3231b5(0x29b))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x2f1),a2_0x3231b5(0x245))['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x2b8))[a2_0x3231b5(0x2fe)]('--schedule-type\x20<type>',a2_0x3231b5(0x33a))['option'](a2_0x3231b5(0x189),a2_0x3231b5(0x30d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0x219))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1ee),'Attributes\x20as\x20JSON\x20string')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x29a),a2_0x3231b5(0x2f8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x301),'Behaviors\x20as\x20JSON\x20string')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21e),a2_0x3231b5(0x1e8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21c),'Customer\x20group\x20as\x20JSON\x20string')['option'](a2_0x3231b5(0x227),a2_0x3231b5(0x269))[a2_0x3231b5(0x330)](async(_0x3f714c,_0x4cf0c4)=>{const _0x27aee7=a2_0x3231b5,_0xe880f2=new ParentSegmentCreateCommand(),_0x273de4=program[_0x27aee7(0x281)](),_0x1dbcad=await createTDXInstance(_0x273de4),_0x58caf6=await _0xe880f2[_0x27aee7(0x2ae)]({'options':{..._0x273de4,..._0x4cf0c4},'args':[_0x3f714c],'tdx':_0x1dbcad});process['exit'](_0x58caf6);}),parentCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x268))[a2_0x3231b5(0x1ef)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x1d3))['option'](a2_0x3231b5(0xe4),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option']('--schedule-option\x20<value>',a2_0x3231b5(0x26c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0x17a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1ae),a2_0x3231b5(0x28c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d8),a2_0x3231b5(0xec))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x262),a2_0x3231b5(0x1bc))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x19f),a2_0x3231b5(0x313))[a2_0x3231b5(0x330)](async(_0x57d794,_0x150f9e)=>{const _0x775a56=a2_0x3231b5,_0x5b30fc=new ParentSegmentUpdateCommand(),_0x132146=program[_0x775a56(0x281)](),_0x5f7adc=await createTDXInstance(_0x132146),_0x36199a=await _0x5b30fc[_0x775a56(0x2ae)]({'options':{..._0x132146,..._0x150f9e},'args':[_0x57d794],'tdx':_0x5f7adc});process[_0x775a56(0x2de)](_0x36199a);}),folderCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x214))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x182))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1f8),a2_0x3231b5(0x317))['option'](a2_0x3231b5(0x153),a2_0x3231b5(0x200))[a2_0x3231b5(0x330)](async(_0x4f9359,_0x3e0255,_0x137ac6)=>{const _0x3c10c2=a2_0x3231b5,_0x292a85=new SegmentFolderCreateCommand(),_0xef8828=program[_0x3c10c2(0x281)](),_0x3ede23=await createTDXInstance(_0xef8828),_0x2c3b74=await _0x292a85[_0x3c10c2(0x2ae)]({'options':{..._0xef8828,..._0x137ac6},'args':[_0x4f9359,_0x3e0255],'tdx':_0x3ede23});process[_0x3c10c2(0x2de)](_0x2c3b74);}),program['command'](a2_0x3231b5(0x22f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x15f))[a2_0x3231b5(0x330)](async(_0x519942,_0x451544)=>{const _0xe0a1ed=a2_0x3231b5,_0xfd4350=new ActivationsCommand(),_0x331414=program['opts'](),_0x5dd2db=await createTDXInstance(_0x331414),_0x31ac98=await _0xfd4350[_0xe0a1ed(0x2ae)]({'options':{..._0x331414,..._0x451544},'args':[_0x519942],'tdx':_0x5dd2db});process['exit'](_0x31ac98);});const workflowCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x291))[a2_0x3231b5(0x126)]('wf')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24e)),wfProjectCmd=workflowCmd['command']('project')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x19d)),wfProjectListAction=async(_0x1c3e13,_0x139343)=>{const _0x1ae4d8=a2_0x3231b5,_0x12649c=new WorkflowProjectsCommand(),_0x5180b1=program['opts'](),_0x2905c8=await createTDXInstance(_0x5180b1),_0x25a20c=await _0x12649c[_0x1ae4d8(0x2ae)]({'options':{..._0x5180b1,..._0x139343},'args':_0x1c3e13?[_0x1c3e13]:[],'tdx':_0x2905c8});process[_0x1ae4d8(0x2de)](_0x25a20c);};wfProjectCmd[a2_0x3231b5(0x168)]('list\x20[pattern]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x288))[a2_0x3231b5(0x330)](wfProjectListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x27c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1da))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x435905,_0x20d004)=>{const _0x474517=a2_0x3231b5,_0x29154c=new WorkflowWorkflowsCommand(),_0x2921ad=program[_0x474517(0x281)](),_0x173824=await createTDXInstance(_0x2921ad),_0x548a2f=await _0x29154c['run']({'options':{..._0x2921ad,..._0x20d004},'args':_0x435905?[_0x435905]:[],'tdx':_0x173824});process[_0x474517(0x2de)](_0x548a2f);};workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xfd))['description']('List\x20workflows\x20(optionally\x20filtered\x20by\x20project)')[a2_0x3231b5(0x330)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x3231b5(0x316))['description']('Workflow\x20session\x20management'),wfSessionListAction=async(_0xbf8c50,_0x422930)=>{const _0x24f82a=a2_0x3231b5,_0x4e9c85=new WorkflowSessionsCommand(),_0x2c238f=program[_0x24f82a(0x281)](),_0x2f5d7d=await createTDXInstance(_0x2c238f),_0x4e34c8=await _0x4e9c85[_0x24f82a(0x2ae)]({'options':{..._0x2c238f,..._0x422930},'args':_0xbf8c50?[_0xbf8c50]:[],'tdx':_0x2f5d7d});process[_0x24f82a(0x2de)](_0x4e34c8);};wfSessionCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x104))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x15a))['option'](a2_0x3231b5(0x197),a2_0x3231b5(0x323))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25f),a2_0x3231b5(0x100))[a2_0x3231b5(0x2fe)]('--to\x20<timestamp>',a2_0x3231b5(0x1b8))['action'](wfSessionListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0xf4))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a1))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),'Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25f),a2_0x3231b5(0x100))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x21a),a2_0x3231b5(0x1b8))[a2_0x3231b5(0x330)](wfSessionListAction);const wfAttemptListAction=async(_0x4c25ca,_0x4fb52e)=>{const _0x126a10=a2_0x3231b5,_0x2a13dc=new WorkflowAttemptsCommand(),_0x2a2cf2=program['opts'](),_0xd05bae=await createTDXInstance(_0x2a2cf2),_0x48c903=await _0x2a13dc[_0x126a10(0x2ae)]({'options':{..._0x2a2cf2,..._0x4fb52e},'args':_0x4c25ca?[_0x4c25ca]:[],'tdx':_0xd05bae});process[_0x126a10(0x2de)](_0x48c903);},attemptCmd=workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x160))['description'](a2_0x3231b5(0x2f6))[a2_0x3231b5(0x332)]('[attempt-id]',a2_0x3231b5(0x12a))[a2_0x3231b5(0x332)](a2_0x3231b5(0x190),a2_0x3231b5(0x13f))[a2_0x3231b5(0x332)]('[task-name]','Task\x20name\x20for\x20logs\x20action')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x109),a2_0x3231b5(0x26f))[a2_0x3231b5(0x2fe)]('--reason\x20<text>','Reason\x20for\x20killing\x20the\x20attempt')['option'](a2_0x3231b5(0x2b4),a2_0x3231b5(0x254))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2db),a2_0x3231b5(0x148))[a2_0x3231b5(0x2fe)]('--force',a2_0x3231b5(0x117))['option'](a2_0x3231b5(0x193),a2_0x3231b5(0x1ea))[a2_0x3231b5(0x330)](async(_0x450c78,_0x22afb3,_0x4fb7c2,_0x4b3ab8)=>{const _0x56d5d4=a2_0x3231b5;if(_0x450c78==='list'){await wfAttemptListAction(_0x22afb3,_0x4b3ab8);return;}if(!_0x450c78){attemptCmd['help']();return;}const _0x10bf66=program[_0x56d5d4(0x281)](),_0x1142d3=await createTDXInstance(_0x10bf66);let _0xad674a=0x0;if(!_0x22afb3){const _0x5623ce=new WorkflowAttemptCommand();_0xad674a=await _0x5623ce[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x1d7)){const _0x183caf=new WorkflowLogsCommand();_0xad674a=await _0x183caf['run']({'options':{..._0x10bf66,..._0x4b3ab8},'args':_0x4fb7c2?[_0x450c78,_0x4fb7c2]:[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x1ba)){const _0xe75d7a=new WorkflowTasksCommand();_0xad674a=await _0xe75d7a[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3==='kill'){const _0x371937=new WorkflowKillCommand();_0xad674a=await _0x371937[_0x56d5d4(0x2ae)]({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x450c78],'tdx':_0x1142d3});}else{if(_0x22afb3===_0x56d5d4(0x307)){const _0x2f2dc2=new WorkflowRetryCommand();_0xad674a=await _0x2f2dc2['run']({'options':{..._0x10bf66,..._0x4b3ab8},'args':[_0x56d5d4(0x1c5)+_0x450c78],'tdx':_0x1142d3});}else console['error'](_0x56d5d4(0x2bd)+_0x22afb3),console[_0x56d5d4(0x1d1)](_0x56d5d4(0x11c)),_0xad674a=0x1;}}}}process['exit'](_0xad674a);});attemptCmd['command']('list\x20[project]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1ce))['option'](a2_0x3231b5(0x193),a2_0x3231b5(0x265))[a2_0x3231b5(0x330)](wfAttemptListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x193),'Include\x20retried\x20attempts')[a2_0x3231b5(0x330)](wfAttemptListAction),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x29d))['description'](a2_0x3231b5(0x1aa))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x17c),a2_0x3231b5(0x20d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x337),a2_0x3231b5(0x16c))[a2_0x3231b5(0x2fe)]('--attempt-id\x20<id>',a2_0x3231b5(0x1f9))[a2_0x3231b5(0x330)](async(_0x2c5a5a,_0x142370)=>{const _0x4abb2a=a2_0x3231b5,_0x45d490=new WorkflowTimelineCommand(),_0x925696=program['opts'](),_0x5647ac=await createTDXInstance(_0x925696),_0x497199=await _0x45d490[_0x4abb2a(0x2ae)]({'options':{..._0x925696,..._0x142370},'args':_0x2c5a5a?[_0x2c5a5a]:[],'tdx':_0x5647ac});process[_0x4abb2a(0x2de)](_0x497199);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x272))['description'](a2_0x3231b5(0x1d2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x149),'Resume\x20from\x20specific\x20task')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2db),a2_0x3231b5(0x2cc))[a2_0x3231b5(0x330)](async(_0x49ad95,_0x59e781)=>{const _0x5c8a09=a2_0x3231b5,_0x275aa9=new WorkflowRetryCommand(),_0x2283a3=program[_0x5c8a09(0x281)](),_0x4852dc=await createTDXInstance(_0x2283a3),_0x20a11d=await _0x275aa9[_0x5c8a09(0x2ae)]({'options':{..._0x2283a3,..._0x59e781},'args':[_0x49ad95],'tdx':_0x4852dc});process[_0x5c8a09(0x2de)](_0x20a11d);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x184))['description'](a2_0x3231b5(0x240))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x231),a2_0x3231b5(0x1f3),(_0xb87226,_0x25f159=[])=>[..._0x25f159,_0xb87226],[])[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d0),a2_0x3231b5(0x32c))[a2_0x3231b5(0x330)](async(_0x505ec6,_0x528806)=>{const _0x2443a2=a2_0x3231b5,_0x48e05c=new WorkflowRunCommand(),_0x120b17=program[_0x2443a2(0x281)](),_0x4cb2f2=await createTDXInstance(_0x120b17),_0x432aca=await _0x48e05c[_0x2443a2(0x2ae)]({'options':{..._0x120b17,..._0x528806},'args':_0x505ec6?[_0x505ec6]:[],'tdx':_0x4cb2f2});process['exit'](_0x432aca);}),workflowCmd['command'](a2_0x3231b5(0x1ec))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2ce))[a2_0x3231b5(0x2fe)]('--revision\x20<revision>',a2_0x3231b5(0x144))[a2_0x3231b5(0x330)](async(_0x59472e,_0x5170b8,_0xdfe026)=>{const _0x2bbad5=a2_0x3231b5,_0xcfc25e=new WorkflowDownloadCommand(),_0x15db0e=program[_0x2bbad5(0x281)](),_0x57d9fc=await createTDXInstance(_0x15db0e),_0x1bb8e1=await _0xcfc25e[_0x2bbad5(0x2ae)]({'options':{..._0x15db0e,..._0xdfe026},'args':[_0x59472e,_0x5170b8||'.'],'tdx':_0x57d9fc});process['exit'](_0x1bb8e1);}),workflowCmd['command']('pull\x20<project>\x20[target-dir]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x244))['option'](a2_0x3231b5(0x1b1),a2_0x3231b5(0x2ed))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),'Preview\x20changes\x20without\x20writing\x20files')[a2_0x3231b5(0x2fe)]('-y,\x20--yes',a2_0x3231b5(0x236))['action'](async(_0x22c22e,_0x33c3b5,_0x46323a)=>{const _0x4ae4a1=a2_0x3231b5,_0x390f15=new WorkflowPullCommand(),_0x30f663=program['opts'](),_0xfb05f=await createTDXInstance(_0x30f663),_0x3ae205=await _0x390f15[_0x4ae4a1(0x2ae)]({'options':{..._0x30f663,..._0x46323a},'args':_0x33c3b5?[_0x22c22e,_0x33c3b5]:[_0x22c22e],'tdx':_0xfb05f});process[_0x4ae4a1(0x2de)](_0x3ae205);}),workflowCmd['command']('push\x20[source-dir]')['description']('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1b1),a2_0x3231b5(0x176))[a2_0x3231b5(0x2fe)]('--dry-run',a2_0x3231b5(0x2ad))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x11d),a2_0x3231b5(0x2fd))['option'](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))['action'](async(_0x5ae1ca,_0x2e639f)=>{const _0x3f947d=a2_0x3231b5,_0x5be29f=new WorkflowPushCommand(),_0xd36fb=program['opts'](),_0x564dbc=await createTDXInstance(_0xd36fb),_0x451622=await _0x5be29f[_0x3f947d(0x2ae)]({'options':{..._0xd36fb,..._0x2e639f},'args':_0x5ae1ca?[_0x5ae1ca]:[],'tdx':_0x564dbc});process[_0x3f947d(0x2de)](_0x451622);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18a))[a2_0x3231b5(0x1ef)]('Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)')['option'](a2_0x3231b5(0x198),a2_0x3231b5(0x261))['option'](a2_0x3231b5(0x1b1),'Revision\x20name\x20(default:\x20timestamp)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x11d),a2_0x3231b5(0x2fd))[a2_0x3231b5(0x330)](async(_0x238a85,_0x455338)=>{const _0x5d96c1=a2_0x3231b5,_0x3a5369=new WorkflowUploadCommand(),_0x142c94=program[_0x5d96c1(0x281)](),_0x4f2e34=await createTDXInstance(_0x142c94),_0x46cab7=await _0x3a5369[_0x5d96c1(0x2ae)]({'options':{..._0x142c94,..._0x455338},'args':_0x238a85?[_0x238a85]:[],'tdx':_0x4f2e34});process['exit'](_0x46cab7);}),workflowCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x13e))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x14d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x260))[a2_0x3231b5(0x2fe)]('--revision\x20<revision>',a2_0x3231b5(0x176))[a2_0x3231b5(0x2fe)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x3231b5(0x2fe)]('--skip-validation',a2_0x3231b5(0x2fd))['option'](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')['action'](async(_0x50ae14,_0x2150c1)=>{const _0x5ab560=a2_0x3231b5,_0x63af36=new WorkflowCloneCommand(),_0x576950=program[_0x5ab560(0x281)](),_0x46f548=await createTDXInstance(_0x576950),_0x139779=await _0x63af36['run']({'options':{..._0x576950,..._0x2150c1},'args':_0x50ae14?[_0x50ae14]:[],'tdx':_0x46f548});process[_0x5ab560(0x2de)](_0x139779);}),workflowCmd[a2_0x3231b5(0x168)]('delete\x20<project-name-or-id>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x11f))[a2_0x3231b5(0x330)](async(_0x4798b5,_0xd1ad2)=>{const _0x20abd5=a2_0x3231b5,_0xd4155a=new WorkflowDeleteCommand(),_0x209f2a=program[_0x20abd5(0x281)](),_0xaabd0a=await createTDXInstance(_0x209f2a),_0xbe402a=await _0xd4155a[_0x20abd5(0x2ae)]({'options':{..._0x209f2a,..._0xd1ad2},'args':[_0x4798b5],'tdx':_0xaabd0a});process[_0x20abd5(0x2de)](_0xbe402a);}),workflowCmd['command'](a2_0x3231b5(0x158))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x17f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x145),a2_0x3231b5(0x2cf))[a2_0x3231b5(0x330)](async(_0x5491b6,_0x5db1a4)=>{const _0x458a0b=a2_0x3231b5,_0x49f1e2=new WorkflowUseCommand(),_0x358db9=program['opts'](),_0x5b69cd=await createTDXInstance(_0x358db9),_0x281364=await _0x49f1e2[_0x458a0b(0x2ae)]({'options':{..._0x358db9,..._0x5db1a4},'args':_0x5491b6?[_0x5491b6]:[],'tdx':_0x5b69cd});process[_0x458a0b(0x2de)](_0x281364);});const wfSecretsCmd=workflowCmd['command']('secrets')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1a6));wfSecretsCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x104))['description']('List\x20secret\x20keys\x20for\x20a\x20project')[a2_0x3231b5(0x330)](async(_0x1a3bfc,_0x13a007)=>{const _0x4ab3b3=new WorkflowSecretsListCommand(),_0x17fc9c=program['opts'](),_0x369e0f=await createTDXInstance(_0x17fc9c),_0x3905d0=await _0x4ab3b3['run']({'options':{..._0x17fc9c,..._0x13a007},'args':_0x1a3bfc?[_0x1a3bfc]:[],'tdx':_0x369e0f});process['exit'](_0x3905d0);}),wfSecretsCmd[a2_0x3231b5(0x168)]('set\x20<args...>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x221))[a2_0x3231b5(0x330)](async(_0x4abba6,_0x23525f)=>{const _0x2304a9=a2_0x3231b5,_0x985696=new WorkflowSecretsSetCommand(),_0x3be10d=program[_0x2304a9(0x281)](),_0x1e989b=await createTDXInstance(_0x3be10d),_0x353b03=await _0x985696[_0x2304a9(0x2ae)]({'options':{..._0x3be10d,..._0x23525f},'args':_0x4abba6,'tdx':_0x1e989b});process[_0x2304a9(0x2de)](_0x353b03);}),wfSecretsCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x16d))['description'](a2_0x3231b5(0x30a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),'Skip\x20confirmation\x20prompt')[a2_0x3231b5(0x330)](async(_0xde2001,_0x2d14cb)=>{const _0x1a4d19=a2_0x3231b5,_0x353193=new WorkflowSecretsDeleteCommand(),_0x64bf1f=program['opts'](),_0x33709c=await createTDXInstance(_0x64bf1f),_0x19d58f=await _0x353193['run']({'options':{..._0x64bf1f,..._0x2d14cb},'args':_0xde2001,'tdx':_0x33709c});process[_0x1a4d19(0x2de)](_0x19d58f);});const jobCmd=program['command'](a2_0x3231b5(0x253))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x16b)),jobListAction=async _0x4fbd43=>{const _0x4ca4a6=a2_0x3231b5,_0x5950ff=new JobListCommand(),_0x25afee=program[_0x4ca4a6(0x281)](),_0x171daf=await createTDXInstance(_0x25afee),_0x4bc1c9=await _0x5950ff[_0x4ca4a6(0x2ae)]({'options':{..._0x25afee,..._0x4fbd43},'args':[],'tdx':_0x171daf});process[_0x4ca4a6(0x2de)](_0x4bc1c9);};jobCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x224))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2b7))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),a2_0x3231b5(0x1ad))[a2_0x3231b5(0x330)](jobListAction),program['command'](a2_0x3231b5(0x1e7),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x195))['option'](a2_0x3231b5(0x197),a2_0x3231b5(0x1ad))[a2_0x3231b5(0x330)](jobListAction),jobCmd['command'](a2_0x3231b5(0x308))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2e7))[a2_0x3231b5(0x330)](async(_0x3bb859,_0x2ce820)=>{const _0x3b198c=new JobShowCommand(),_0x27d5bc=program['opts'](),_0x26b4ba=await createTDXInstance(_0x27d5bc),_0x1181a3=await _0x3b198c['run']({'options':{..._0x27d5bc,..._0x2ce820},'args':[_0x3bb859],'tdx':_0x26b4ba});process['exit'](_0x1181a3);}),jobCmd['command']('kill\x20<job-id>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x320))[a2_0x3231b5(0x330)](async(_0x3d3d9e,_0x2acd3d)=>{const _0x5186e5=a2_0x3231b5,_0x13c243=new JobKillCommand(),_0x5b0220=program[_0x5186e5(0x281)](),_0x56c7ec=await createTDXInstance(_0x5b0220),_0x27e499=await _0x13c243[_0x5186e5(0x2ae)]({'options':{..._0x5b0220,..._0x2acd3d},'args':[_0x3d3d9e],'tdx':_0x56c7ec});process[_0x5186e5(0x2de)](_0x27e499);}),jobCmd[a2_0x3231b5(0x168)]('submit\x20[query]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1e9))['option'](a2_0x3231b5(0x205),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)',a2_0x3231b5(0x1f7))[a2_0x3231b5(0x2fe)]('-f,\x20--file\x20<path>',a2_0x3231b5(0x324))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e1),a2_0x3231b5(0x15e),'information_schema')[a2_0x3231b5(0x330)](async(_0x4667c8,_0x1b0740)=>{const _0x78f305=a2_0x3231b5,_0x3421bc=new JobSubmitCommand(),_0x45af93=program[_0x78f305(0x281)](),_0x1254bd=await createTDXInstance(_0x45af93),_0x468743=await _0x3421bc[_0x78f305(0x2ae)]({'options':{..._0x45af93,..._0x1b0740},'args':_0x4667c8?[_0x4667c8]:[],'tdx':_0x1254bd});process[_0x78f305(0x2de)](_0x468743);}),jobCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1fb))['description'](a2_0x3231b5(0x322))[a2_0x3231b5(0x330)](async(_0x41d7ab,_0x365049)=>{const _0x17471c=a2_0x3231b5,_0x4ba78c=new JobResultCommand(),_0x3193b4=program[_0x17471c(0x281)](),_0x4bba1b=await createTDXInstance(_0x3193b4),_0x4cbe08=await _0x4ba78c[_0x17471c(0x2ae)]({'options':{..._0x3193b4,..._0x365049},'args':[_0x41d7ab],'tdx':_0x4bba1b});process[_0x17471c(0x2de)](_0x4cbe08);});const llmCmd=program[a2_0x3231b5(0x168)]('llm')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x125));llmCmd[a2_0x3231b5(0x168)]('use\x20<project-name>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x173))[a2_0x3231b5(0x330)](async(_0x5a3fad,_0x12756e)=>{const _0x180ffa=a2_0x3231b5,_0x37468e=new LLMUseCommand(),_0xeb9c3e=program[_0x180ffa(0x281)](),_0x52bfeb=await createTDXInstance(_0xeb9c3e),_0x359075=await _0x37468e[_0x180ffa(0x2ae)]({'options':{..._0xeb9c3e,..._0x12756e},'args':[_0x5a3fad],'tdx':_0x52bfeb});process[_0x180ffa(0x2de)](_0x359075);}),llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x186))[a2_0x3231b5(0x1ef)]('List\x20available\x20LLM\x20models')['action'](async _0x5c43bb=>{const _0x3ae58c=a2_0x3231b5,_0x2bf15f=new LLMModelsCommand(),_0x341471=program[_0x3ae58c(0x281)](),_0x500efd=await createTDXInstance(_0x341471),_0x40f31b=await _0x2bf15f[_0x3ae58c(0x2ae)]({'options':{..._0x341471,..._0x5c43bb},'args':[],'tdx':_0x500efd});process[_0x3ae58c(0x2de)](_0x40f31b);});const projectCmd=llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2bb))[a2_0x3231b5(0x1ef)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x4573c8,_0x320461)=>{const _0x372952=a2_0x3231b5,_0x1797c1=new LLMProjectsCommand(),_0x38c018=program[_0x372952(0x281)](),_0x1ac471=await createTDXInstance(_0x38c018),_0x271e36=await _0x1797c1['run']({'options':{..._0x38c018,..._0x320461},'args':_0x4573c8?[_0x4573c8]:[],'tdx':_0x1ac471});process[_0x372952(0x2de)](_0x271e36);};projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x266))[a2_0x3231b5(0x330)](llmProjectListAction),llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x27c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x31e))[a2_0x3231b5(0x330)](llmProjectListAction),projectCmd[a2_0x3231b5(0x168)]('create\x20<name>')['description']('Create\x20a\x20new\x20LLM\x20project')['option']('--description\x20<text>',a2_0x3231b5(0x2c1))[a2_0x3231b5(0x330)](async(_0x455733,_0x10dbfe)=>{const _0x546983=a2_0x3231b5,_0x1ef6f6=new LLMProjectCreateCommand(),_0x4febb9=program[_0x546983(0x281)](),_0x517bdb=await createTDXInstance(_0x4febb9),_0x38dbc3=await _0x1ef6f6[_0x546983(0x2ae)]({'options':{..._0x4febb9,..._0x10dbfe},'args':[_0x455733],'tdx':_0x517bdb});process[_0x546983(0x2de)](_0x38dbc3);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x14a))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2a9))[a2_0x3231b5(0x330)](async(_0x4d4405,_0x4146a1)=>{const _0xac36d7=a2_0x3231b5,_0x2fd386=new LLMProjectDeleteCommand(),_0x52d3f6=program['opts'](),_0x5e6f33=await createTDXInstance(_0x52d3f6),_0x1d961e=await _0x2fd386[_0xac36d7(0x2ae)]({'options':{..._0x52d3f6,..._0x4146a1},'args':[_0x4d4405],'tdx':_0x5e6f33});process[_0xac36d7(0x2de)](_0x1d961e);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2fb))['description'](a2_0x3231b5(0x2c7))['option'](a2_0x3231b5(0x133),a2_0x3231b5(0x283))['option']('--dry-run','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')[a2_0x3231b5(0x330)](async(_0x5d95e4,_0x448af7)=>{const _0x3a538d=a2_0x3231b5,_0x2a30c6=new LLMProjectBackupCommand(),_0x11468c=program['opts'](),_0x48cda3=await createTDXInstance(_0x11468c),_0x15a824=await _0x2a30c6['run']({'options':{..._0x11468c,..._0x448af7},'args':[_0x5d95e4],'tdx':_0x48cda3});process[_0x3a538d(0x2de)](_0x15a824);}),projectCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2f3))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x246),a2_0x3231b5(0x2c5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x29e))['action'](async(_0x2bea0f,_0x1fb947)=>{const _0x5bc5ba=a2_0x3231b5,_0x25bc9b=new LLMProjectRestoreCommand(),_0x6e45e9=program[_0x5bc5ba(0x281)](),_0xc2ff0a=await createTDXInstance(_0x6e45e9),_0x3e859e=await _0x25bc9b['run']({'options':{..._0x6e45e9,..._0x1fb947},'args':[_0x2bea0f],'tdx':_0xc2ff0a});process[_0x5bc5ba(0x2de)](_0x3e859e);});const llmAgentListAction=async(_0x9fbdb6,_0x2541d9)=>{const _0x51a18d=a2_0x3231b5,_0x5103e5=new LLMAgentsCommand(),_0x426d21=program[_0x51a18d(0x281)](),_0x50a085=await createTDXInstance(_0x426d21),_0x489ca8=await _0x5103e5[_0x51a18d(0x2ae)]({'options':{..._0x426d21,..._0x2541d9},'args':_0x9fbdb6?[_0x9fbdb6]:[],'tdx':_0x50a085});process[_0x51a18d(0x2de)](_0x489ca8);};llmCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x32b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x172))['action'](llmAgentListAction),program['command'](a2_0x3231b5(0x32b))['description'](a2_0x3231b5(0x172))[a2_0x3231b5(0x330)](llmAgentListAction),llmCmd[a2_0x3231b5(0x168)]('history\x20[chat-id]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x20f))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1e0),a2_0x3231b5(0xe6))[a2_0x3231b5(0x330)](async(_0x20416a,_0x4b7c0d)=>{const _0x1a4e58=a2_0x3231b5,_0x51ff42=new LLMHistoryCommand(),_0x48f1fd=program['opts'](),_0x780640=await createTDXInstance(_0x48f1fd),_0x3286c3=await _0x51ff42[_0x1a4e58(0x2ae)]({'options':{..._0x48f1fd,..._0x4b7c0d},'args':_0x20416a?[_0x20416a]:[],'tdx':_0x780640});process[_0x1a4e58(0x2de)](_0x3286c3);}),llmCmd[a2_0x3231b5(0x168)]('proxy')['description']('[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x230),a2_0x3231b5(0x154),a2_0x3231b5(0x11a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2b5),'LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x115),'Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3231b5(0x330)](async _0x4a7278=>{const _0x10c889=a2_0x3231b5,_0x2225ea=new LLMProxyCommand(),_0x3ab09f=program[_0x10c889(0x281)](),_0x5b6106=await createTDXInstance(_0x3ab09f),_0xe4527a={..._0x4a7278,'port':_0x4a7278[_0x10c889(0x278)]?parseInt(_0x4a7278[_0x10c889(0x278)],0xa):undefined},_0x47d2f5=await _0x2225ea[_0x10c889(0x2ae)]({'options':{..._0x3ab09f,..._0xe4527a},'args':[],'tdx':_0x5b6106});process[_0x10c889(0x2de)](_0x47d2f5);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x13c))['usage']('[options]\x20--\x20[claude-code-args...]')['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x285),a2_0x3231b5(0x1ed),a2_0x3231b5(0x2e8))['option'](a2_0x3231b5(0x203),a2_0x3231b5(0x13d))['option'](a2_0x3231b5(0xfe),a2_0x3231b5(0x329))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2f2),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3231b5(0x2fe)]('--llm-proxy\x20[url]',a2_0x3231b5(0x171))['allowUnknownOption']()['allowExcessArguments'](!![])[a2_0x3231b5(0x10a)]('after',a2_0x3231b5(0x21d))[a2_0x3231b5(0x330)](async(_0x5d4a77,_0x55eebe)=>{const _0x92266d=a2_0x3231b5,_0x1dda13=program[_0x92266d(0x281)](),_0x32b36f=Array[_0x92266d(0x23d)](_0x5d4a77)?_0x5d4a77:[];if(_0x32b36f[0x0]==='statusline'){const _0x166954=new ClaudeStatuslineCommand(),_0xc5f092=await _0x166954[_0x92266d(0x2ae)]({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f['slice'](0x1),'tdx':null});process[_0x92266d(0x2de)](_0xc5f092);}if(_0x32b36f[0x0]===_0x92266d(0x201)){const _0x1bb8ea=new ClaudeUsageCommand(),_0x1626ac=await _0x1bb8ea['run']({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f['slice'](0x1),'tdx':null});process[_0x92266d(0x2de)](_0x1626ac);}const _0xd148e4=new ClaudeCommand(),_0x15981c=await createTDXInstance(_0x1dda13),_0x4c848e=await _0xd148e4[_0x92266d(0x2ae)]({'options':{..._0x1dda13,..._0x55eebe},'args':_0x32b36f,'tdx':_0x15981c});process[_0x92266d(0x2de)](_0x4c848e);}),program[a2_0x3231b5(0x168)]('use\x20[resource]\x20[value]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xf6))['option']('--clear',a2_0x3231b5(0x17b))['action'](async(_0x4e1073,_0x32f0cf,_0x4adbd1)=>{const _0x302e6e=a2_0x3231b5,_0x593870=new UseCommand(),_0x4b7fd9=program[_0x302e6e(0x281)](),_0x3bf492=[];if(_0x4e1073)_0x3bf492[_0x302e6e(0x15b)](_0x4e1073);if(_0x32f0cf)_0x3bf492[_0x302e6e(0x15b)](_0x32f0cf);const _0x8c9fec=await _0x593870['run']({'options':{..._0x4b7fd9,..._0x4adbd1},'args':_0x3bf492,'tdx':null});process[_0x302e6e(0x2de)](_0x8c9fec);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf2))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32d))[a2_0x3231b5(0x2fe)]('--last',a2_0x3231b5(0x2a4))[a2_0x3231b5(0x330)](async _0x27517b=>{const _0x35dfcb=a2_0x3231b5,_0x23ac86=new ChatsCommand(),_0x4c5430=program[_0x35dfcb(0x281)](),_0x3d99df=await createTDXInstance(_0x4c5430),_0x597e59=await _0x23ac86[_0x35dfcb(0x2ae)]({'options':{..._0x4c5430,..._0x27517b},'args':[],'tdx':_0x3d99df});process['exit'](_0x597e59);});const authCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x28f))[a2_0x3231b5(0x1ef)]('Authentication\x20management');async function runAuthStatusCommand(_0x5567b4){const _0x2e712f=a2_0x3231b5,_0x34ef44=new AuthStatusCommand(),_0x43aa20=program[_0x2e712f(0x281)](),_0x37c5ae=await createTDXInstance(_0x43aa20),_0x1eaa42=await _0x34ef44[_0x2e712f(0x2ae)]({'options':{..._0x43aa20,..._0x5567b4},'args':[],'tdx':_0x37c5ae});process[_0x2e712f(0x2de)](_0x1eaa42);}authCmd[a2_0x3231b5(0x330)](runAuthStatusCommand),authCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x167))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x302))['action'](runAuthStatusCommand),authCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x222))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\x0aGlobal\x20Options:\x0a\x20\x20--site\x20<site>\x20\x20\x20\x20\x20\x20Target\x20site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20use\x20(saves\x20API\x20key\x20to\x20profile-specific\x20config)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20setup\x20for\x20default\x20site\x20(us01)\x0a\x20\x20$\x20tdx\x20auth\x20setup\x20--site\x20jp01\x20\x20#\x20Setup\x20for\x20Japan\x20site\x0a')['action'](async _0x7105c7=>{const _0xb9bc76=a2_0x3231b5,_0x34ba93=new AuthSetupCommand(),_0x346f37=program[_0xb9bc76(0x281)](),_0x12d33c=await createTDXInstance(_0x346f37),_0x1626c7=await _0x34ba93[_0xb9bc76(0x2ae)]({'options':{..._0x346f37,..._0x7105c7},'args':[],'tdx':_0x12d33c});process[_0xb9bc76(0x2de)](_0x1626c7);}),authCmd['command']('clear')[a2_0x3231b5(0x1ef)]('Remove\x20API\x20key\x20from\x20system\x20keychain')['addHelpText']('after',a2_0x3231b5(0x31a))[a2_0x3231b5(0x330)](async _0x21993a=>{const _0x1f55e4=a2_0x3231b5,_0x307858=new AuthClearCommand(),_0x26aa89=program[_0x1f55e4(0x281)](),_0x5cd21e=await _0x307858['run']({'options':{..._0x26aa89,..._0x21993a},'args':[],'tdx':null});process['exit'](_0x5cd21e);});const userCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a1))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24d)),userListAction=async _0x518952=>{const _0xe50e4f=a2_0x3231b5,_0x3f1630=new UserListCommand(),_0x27b3a7=program[_0xe50e4f(0x281)](),_0x193fa4=await createTDXInstance(_0x27b3a7),_0x39c5d6=await _0x3f1630[_0xe50e4f(0x2ae)]({'options':{..._0x27b3a7,..._0x518952},'args':[],'tdx':_0x193fa4});process[_0xe50e4f(0x2de)](_0x39c5d6);};userCmd[a2_0x3231b5(0x330)](async _0x371b81=>{const _0x8e08b0=a2_0x3231b5,_0x48a394=new UserCommand(),_0x519345=program[_0x8e08b0(0x281)](),_0x4f4ddb=await createTDXInstance(_0x519345),_0x50ec1b=await _0x48a394[_0x8e08b0(0x2ae)]({'options':{..._0x519345,..._0x371b81},'args':[],'tdx':_0x4f4ddb});process['exit'](_0x50ec1b);}),userCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x224))['description']('List\x20all\x20users\x20in\x20the\x20account')['action'](userListAction),program['command']('users')[a2_0x3231b5(0x1ef)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x3231b5(0x330)](userListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2b1))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c0))[a2_0x3231b5(0x330)](async _0x46b35c=>{const _0x1e54d2=a2_0x3231b5,_0x2465c9=new ProfilesCommand(),_0x2d15f5=program[_0x1e54d2(0x281)](),_0xeb0035=await _0x2465c9[_0x1e54d2(0x2ae)]({'options':{..._0x2d15f5,..._0x46b35c},'args':[],'tdx':null});process['exit'](_0xeb0035);});const profileCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x225));profileCmd[a2_0x3231b5(0x330)](()=>{const _0x2ecad2=a2_0x3231b5;profileCmd[_0x2ecad2(0xe5)]();});const profileListAction=async _0x396e8f=>{const _0x33b7f4=a2_0x3231b5,_0x414154=new ProfilesCommand(),_0x5378a2=program['opts'](),_0xf588ae=await _0x414154[_0x33b7f4(0x2ae)]({'options':{..._0x5378a2,..._0x396e8f},'args':[],'tdx':null});process['exit'](_0xf588ae);};profileCmd['command']('list')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c0))[a2_0x3231b5(0x330)](profileListAction),profileCmd['command'](a2_0x3231b5(0xea))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x233))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),a2_0x3231b5(0x228))[a2_0x3231b5(0x330)](async(_0x1d8896,_0x12fbea)=>{const _0x255771=a2_0x3231b5,_0x5bdcda=new ProfileCreateCommand(),_0x4885ce=program[_0x255771(0x281)](),_0x2f7c89=await _0x5bdcda[_0x255771(0x2ae)]({'options':{..._0x4885ce,..._0x12fbea},'args':_0x1d8896?[_0x1d8896]:[],'tdx':null});process['exit'](_0x2f7c89);}),profileCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x234))[a2_0x3231b5(0x1ef)]('Remove\x20a\x20profile')[a2_0x3231b5(0x10a)]('after',a2_0x3231b5(0x2d5))['action'](async(_0x5c4891,_0x5a28f3)=>{const _0x3418bb=a2_0x3231b5,_0x4bcf8b=new ProfileRemoveCommand(),_0x4bc88a=program[_0x3418bb(0x281)](),_0x1008d7=await _0x4bcf8b['run']({'options':{..._0x4bc88a,..._0x5a28f3},'args':[_0x5c4891],'tdx':null});process[_0x3418bb(0x2de)](_0x1008d7);}),profileCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2b9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x279))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),'\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(_0x4ced5e,_0x1c6a7b)=>{const _0x31704e=a2_0x3231b5,_0x1f524c=new ProfileSetCommand(),_0x5f0564=program[_0x31704e(0x281)](),_0x2c4160=await _0x1f524c[_0x31704e(0x2ae)]({'options':{..._0x5f0564,..._0x1c6a7b},'args':[_0x4ced5e],'tdx':null});process[_0x31704e(0x2de)](_0x2c4160);}),profileCmd['command'](a2_0x3231b5(0x16f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x121))[a2_0x3231b5(0x10a)](a2_0x3231b5(0x2f7),a2_0x3231b5(0x28d))['action'](async(_0x5a143c,_0x11880d)=>{const _0x5a85d2=a2_0x3231b5,_0x4570a8=new ProfileUseCommand(),_0x391f9e=program['opts'](),_0x3fef13=await _0x4570a8[_0x5a85d2(0x2ae)]({'options':{..._0x391f9e,..._0x11880d},'args':[_0x5a143c],'tdx':null});process[_0x5a85d2(0x2de)](_0x3fef13);});const engageCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2f9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x29f)),createEngageAction=_0x573af8=>{return async(_0x11558c,_0x43ea9d)=>{const _0x237490=a2_0x30cc,_0x286116=new _0x573af8(),_0x54fa09=program['opts'](),_0x334d4f=await createTDXInstance(_0x54fa09),_0x4fdaf6=await _0x286116[_0x237490(0x2ae)]({'options':{..._0x54fa09,..._0x43ea9d},'args':[_0x11558c],'tdx':_0x334d4f});process['exit'](_0x4fdaf6);};},createEngageNoArgAction=_0xc5187b=>{return async _0x598d78=>{const _0xc3ecca=a2_0x30cc,_0x119718=new _0xc5187b(),_0x89fa2b=program[_0xc3ecca(0x281)](),_0x36ff3e=await createTDXInstance(_0x89fa2b),_0x3d5ba2=await _0x119718[_0xc3ecca(0x2ae)]({'options':{..._0x89fa2b,..._0x598d78},'args':[],'tdx':_0x36ff3e});process[_0xc3ecca(0x2de)](_0x3d5ba2);};},campaignCmd=engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x258))['description']('Campaign\x20management'),campaignListAction=async(_0x120476,_0x96c722)=>{const _0x3798b7=a2_0x3231b5,_0x5de94b=new EngageCampaignsCommand(),_0x589c2b=program[_0x3798b7(0x281)](),_0x4f551b=await createTDXInstance(_0x589c2b),_0x319007=await _0x5de94b[_0x3798b7(0x2ae)]({'options':{..._0x589c2b,..._0x96c722},'args':_0x120476?[_0x120476]:[],'tdx':_0x4f551b});process[_0x3798b7(0x2de)](_0x319007);};campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description'](a2_0x3231b5(0x22e))[a2_0x3231b5(0x2fe)]('--type\x20<type>',a2_0x3231b5(0x1e5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),a2_0x3231b5(0x2c9))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](campaignListAction),engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x267))['description'](a2_0x3231b5(0x196))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2d4),'Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x197),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))['action'](campaignListAction),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x162))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command']('create')['description'](a2_0x3231b5(0x2ca))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x198),a2_0x3231b5(0x11e))['requiredOption'](a2_0x3231b5(0x2d4),a2_0x3231b5(0x333))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1a8))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),'Campaign\x20description')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x130),a2_0x3231b5(0x31c))['option'](a2_0x3231b5(0x295),a2_0x3231b5(0x26e))[a2_0x3231b5(0x2fe)]('--json-columns\x20<cols>',a2_0x3231b5(0x102))['option'](a2_0x3231b5(0x289),a2_0x3231b5(0x2d2))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x290),a2_0x3231b5(0xf5))[a2_0x3231b5(0x330)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x136))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1fe))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),'Workspace\x20name')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x103))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),a2_0x3231b5(0x135))[a2_0x3231b5(0x2fe)]('--segment\x20<path>',a2_0x3231b5(0x31c))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x295),a2_0x3231b5(0x26e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1df),a2_0x3231b5(0x102))[a2_0x3231b5(0x2fe)]('--start-at\x20<datetime>',a2_0x3231b5(0x2d2))['option']('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2eb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x215))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x23a))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x143))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x120))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x229))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2aa))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),'Workspace\x20name')[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x325))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x163))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3231b5(0x168)]('template')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1bf)),templateListAction=async(_0x3d9f71,_0x1eaab2)=>{const _0x29befd=a2_0x3231b5,_0x3229a2=new EngageTemplatesCommand(),_0x543194=program['opts'](),_0x2488e7=await createTDXInstance(_0x543194),_0x163cf2=await _0x3229a2[_0x29befd(0x2ae)]({'options':{..._0x543194,..._0x1eaab2},'args':_0x3d9f71?[_0x3d9f71]:[],'tdx':_0x2488e7});process[_0x29befd(0x2de)](_0x163cf2);};templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description']('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](templateListAction),engageCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c2))['description'](a2_0x3231b5(0x12c))['option'](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x330)](templateListAction),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)]('Show\x20email\x20template\x20details')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),a2_0x3231b5(0x1f1))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command'](a2_0x3231b5(0x19c))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x124))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x198),a2_0x3231b5(0x27e))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x111),a2_0x3231b5(0x309))[a2_0x3231b5(0x2f5)](a2_0x3231b5(0x1af),'HTML\x20template\x20content')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2c8),a2_0x3231b5(0x1a8))[a2_0x3231b5(0x2fe)]('--plaintext\x20<text>','Plaintext\x20template\x20content')[a2_0x3231b5(0x2fe)]('--editor-type\x20<type>',a2_0x3231b5(0x110))[a2_0x3231b5(0x330)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x136))['description']('Update\x20an\x20email\x20template')[a2_0x3231b5(0x2fe)]('--workspace\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)]('--name\x20<name>',a2_0x3231b5(0x20e))[a2_0x3231b5(0x2fe)]('--subject\x20<subject>',a2_0x3231b5(0x309))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1af),a2_0x3231b5(0x2e3))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2bc),a2_0x3231b5(0x2e4))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x2e6))[a2_0x3231b5(0x2fe)]('--workspace\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))[a2_0x3231b5(0x330)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd['command']('workspace')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1e3)),workspaceListAction=async(_0x3f876d,_0x5187e9)=>{const _0x19d107=a2_0x3231b5,_0x2c7663=new EngageWorkspacesCommand(),_0x2abb67=program[_0x19d107(0x281)](),_0x3aed12=await createTDXInstance(_0x2abb67),_0x2a3a27=await _0x2c7663[_0x19d107(0x2ae)]({'options':{..._0x2abb67,..._0x5187e9},'args':_0x3f876d?[_0x3f876d]:[],'tdx':_0x3aed12});process['exit'](_0x2a3a27);};workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x112))[a2_0x3231b5(0x330)](workspaceListAction),engageCmd['command'](a2_0x3231b5(0x334))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x318))[a2_0x3231b5(0x330)](workspaceListAction),workspaceCmd['command'](a2_0x3231b5(0x1f6))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x22d))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x276),a2_0x3231b5(0x1f1))[a2_0x3231b5(0x330)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x19c))['description'](a2_0x3231b5(0x2a5))[a2_0x3231b5(0x2f5)]('--name\x20<name>',a2_0x3231b5(0x1b5))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),'Workspace\x20description')['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3231b5(0x168)]('update\x20<name-or-id>')['description']('Update\x20a\x20workspace')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x198),a2_0x3231b5(0x2cd))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x15d),a2_0x3231b5(0x251))['action'](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x338))['description'](a2_0x3231b5(0x164))['option'](a2_0x3231b5(0x28e),a2_0x3231b5(0x236))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x16f))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x12b))[a2_0x3231b5(0x330)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3231b5(0x168)]('connection')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x134)),connectionListAction=async _0x4a1cee=>{const _0x2d0d58=a2_0x3231b5,_0x186743=new ConnectionListCommand(),_0x243b8b=program[_0x2d0d58(0x281)](),_0x54b2e5=await createTDXInstance(_0x243b8b),_0x5c2dfe=await _0x186743[_0x2d0d58(0x2ae)]({'options':{..._0x243b8b,..._0x4a1cee},'args':[],'tdx':_0x54b2e5});process[_0x2d0d58(0x2de)](_0x5c2dfe);};connectionCmd['command']('list')['description'](a2_0x3231b5(0x2fc))[a2_0x3231b5(0x330)](connectionListAction),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x13b),{'hidden':!![]})[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1c2))[a2_0x3231b5(0x330)](connectionListAction),connectionCmd['command'](a2_0x3231b5(0x2e9))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x32a))[a2_0x3231b5(0x330)](async(_0x57ad85,_0xb56c5f)=>{const _0x238186=a2_0x3231b5,_0x3cccb8=new ConnectionShowCommand(),_0x519238=program['opts'](),_0x14feeb=await createTDXInstance(_0x519238),_0x5f23f9=await _0x3cccb8[_0x238186(0x2ae)]({'options':{..._0x519238,..._0xb56c5f},'args':[_0x57ad85],'tdx':_0x14feeb});process[_0x238186(0x2de)](_0x5f23f9);}),connectionCmd[a2_0x3231b5(0x168)]('schema\x20<type>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x24a))['action'](async(_0x41bce4,_0x3d35f3)=>{const _0x400c1e=a2_0x3231b5,_0x339c24=new ConnectionSchemaCommand(),_0x4235a0=program['opts'](),_0x26b681=await createTDXInstance(_0x4235a0),_0x3938fa=await _0x339c24[_0x400c1e(0x2ae)]({'options':{..._0x4235a0,..._0x3d35f3},'args':[_0x41bce4],'tdx':_0x26b681});process[_0x400c1e(0x2de)](_0x3938fa);}),connectionCmd[a2_0x3231b5(0x168)]('types')['description']('List\x20available\x20connector\x20types')[a2_0x3231b5(0x330)](async _0x4800b8=>{const _0x5b46e4=a2_0x3231b5,_0x5790d3=new ConnectionTypesCommand(),_0x1e934d=program[_0x5b46e4(0x281)](),_0x25e145=await createTDXInstance(_0x1e934d),_0x3f6ae5=await _0x5790d3[_0x5b46e4(0x2ae)]({'options':{..._0x1e934d,..._0x4800b8},'args':[],'tdx':_0x25e145});process[_0x5b46e4(0x2de)](_0x3f6ae5);}),connectionCmd[a2_0x3231b5(0x168)]('settings\x20<type>')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x113))[a2_0x3231b5(0x330)](async(_0x1de45b,_0x22ac76)=>{const _0x215bf2=a2_0x3231b5,_0xda1d53=new ConnectionSettingsCommand(),_0x5bd551=program[_0x215bf2(0x281)](),_0x2baaa2=await createTDXInstance(_0x5bd551),_0x4b2e25=await _0xda1d53[_0x215bf2(0x2ae)]({'options':{..._0x5bd551,..._0x22ac76},'args':[_0x1de45b],'tdx':_0x2baaa2});process[_0x215bf2(0x2de)](_0x4b2e25);});const journeyCmd=program[a2_0x3231b5(0x168)](a2_0x3231b5(0xf1))[a2_0x3231b5(0x1ef)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x16e011,_0x225d7b)=>{const _0x55ea42=a2_0x3231b5,_0x241e5c=new JourneyListCommand(),_0x4ae8f5=program[_0x55ea42(0x281)](),_0xe199c7=await createTDXInstance(_0x4ae8f5),_0x3fd26c=await _0x241e5c[_0x55ea42(0x2ae)]({'options':{..._0x4ae8f5,..._0x225d7b},'args':_0x16e011?[_0x16e011]:[],'tdx':_0xe199c7});process[_0x55ea42(0x2de)](_0x3fd26c);};journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2c6))['description'](a2_0x3231b5(0x129))[a2_0x3231b5(0x330)](journeyListAction),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x1a7))[a2_0x3231b5(0x1ef)]('Show\x20journey\x20details')[a2_0x3231b5(0x2fe)]('-w,\x20--web',a2_0x3231b5(0x183))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x25e),a2_0x3231b5(0x282))[a2_0x3231b5(0x330)](async(_0x2b794d,_0x5d195b)=>{const _0x17748d=a2_0x3231b5,_0xfb94de=new JourneyViewCommand(),_0x3347f8=program[_0x17748d(0x281)](),_0x15b094=await createTDXInstance(_0x3347f8),_0xd0e3e6=await _0xfb94de['run']({'options':{..._0x3347f8,..._0x5d195b},'args':[_0x2b794d],'tdx':_0x15b094});process[_0x17748d(0x2de)](_0xd0e3e6);}),journeyCmd['command'](a2_0x3231b5(0x31b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x18c))[a2_0x3231b5(0x2fe)]('--stage\x20<name>','Show\x20stats\x20for\x20specific\x20stage')[a2_0x3231b5(0x330)](async(_0x1fdd66,_0x17c4da)=>{const _0x5da707=a2_0x3231b5,_0x276f33=new JourneyStatsCommand(),_0x589f3c=program[_0x5da707(0x281)](),_0x17eb27=await createTDXInstance(_0x589f3c),_0x49b1ad=await _0x276f33[_0x5da707(0x2ae)]({'options':{..._0x589f3c,..._0x17c4da},'args':[_0x1fdd66],'tdx':_0x17eb27});process[_0x5da707(0x2de)](_0x49b1ad);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x18b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x223))['action'](async(_0x190206,_0x11f441)=>{const _0x529c1d=a2_0x3231b5,_0x207f1b=new JourneyPauseCommand(),_0x472ae0=program[_0x529c1d(0x281)](),_0x4279f0=await createTDXInstance(_0x472ae0),_0x4381ce=await _0x207f1b['run']({'options':{..._0x472ae0,..._0x11f441},'args':[_0x190206],'tdx':_0x4279f0});process[_0x529c1d(0x2de)](_0x4381ce);}),journeyCmd['command'](a2_0x3231b5(0x23b))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1d0))[a2_0x3231b5(0x330)](async(_0x38e6c5,_0x562643)=>{const _0x2b1429=a2_0x3231b5,_0x18c982=new JourneyResumeCommand(),_0x299b07=program[_0x2b1429(0x281)](),_0x1d9ba8=await createTDXInstance(_0x299b07),_0x2013fa=await _0x18c982[_0x2b1429(0x2ae)]({'options':{..._0x299b07,..._0x562643},'args':[_0x38e6c5],'tdx':_0x1d9ba8});process[_0x2b1429(0x2de)](_0x2013fa);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x213))['description'](a2_0x3231b5(0x32e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2e5),a2_0x3231b5(0x236))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x24f),a2_0x3231b5(0x2d6))[a2_0x3231b5(0x330)](async(_0x39f35c,_0x5b82f6)=>{const _0x505a28=a2_0x3231b5,_0x1ac1f2=new JourneyPullCommand(),_0x3dd161=program['opts'](),_0x1a47d5=await createTDXInstance(_0x3dd161),_0x28a152=await _0x1ac1f2[_0x505a28(0x2ae)]({'options':{..._0x3dd161,..._0x5b82f6},'args':_0x39f35c?[_0x39f35c]:[],'tdx':_0x1a47d5});process['exit'](_0x28a152);}),journeyCmd[a2_0x3231b5(0x168)]('push\x20[target]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1b0))[a2_0x3231b5(0x330)](async(_0x2f9706,_0x1c249f)=>{const _0x279fce=a2_0x3231b5,_0x386458=new JourneyPushCommand(),_0x256b59=program[_0x279fce(0x281)](),_0x37e809=await createTDXInstance(_0x256b59),_0x32ca2f=await _0x386458[_0x279fce(0x2ae)]({'options':{..._0x256b59,..._0x1c249f},'args':_0x2f9706?[_0x2f9706]:[],'tdx':_0x37e809});process['exit'](_0x32ca2f);}),journeyCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x188))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0xe9))[a2_0x3231b5(0x330)](async(_0x4ec258,_0x395659)=>{const _0x419033=a2_0x3231b5,_0x36c883=new JourneyValidateCommand(),_0x2a193e=program[_0x419033(0x281)](),_0x20fa27=await createTDXInstance(_0x2a193e),_0x58c661=await _0x36c883[_0x419033(0x2ae)]({'options':{..._0x2a193e,..._0x395659},'args':_0x4ec258?[_0x4ec258]:[],'tdx':_0x20fa27});process[_0x419033(0x2de)](_0x58c661);}),program[a2_0x3231b5(0x168)](a2_0x3231b5(0x2e0))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x208))[a2_0x3231b5(0x330)](journeyListAction);const agentSyncCmd=program[a2_0x3231b5(0x168)]('agent')['description'](a2_0x3231b5(0x232));agentSyncCmd['command']('pull\x20[project]\x20[agent-name]')[a2_0x3231b5(0x1ef)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x210),a2_0x3231b5(0x297))['option']('-f,\x20--force',a2_0x3231b5(0x1dd))['action'](async(_0x422402,_0x3deb10,_0x61f682)=>{const _0x4dcc9d=a2_0x3231b5,_0x5bc851=new AgentPullCommand(),_0x151776=program[_0x4dcc9d(0x281)](),_0x133166=await createTDXInstance(_0x151776),_0x1dda09=[];if(_0x422402)_0x1dda09[_0x4dcc9d(0x15b)](_0x422402);if(_0x3deb10)_0x1dda09[_0x4dcc9d(0x15b)](_0x3deb10);const _0xda9f28=await _0x5bc851['run']({'options':{..._0x151776,..._0x61f682},'args':_0x1dda09,'tdx':_0x133166});process[_0x4dcc9d(0x2de)](_0xda9f28);}),agentSyncCmd[a2_0x3231b5(0x168)]('push\x20[path]')[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x30e))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2bf),a2_0x3231b5(0x147))[a2_0x3231b5(0x330)](async(_0x47b30f,_0x246d6a)=>{const _0x2201c9=a2_0x3231b5,_0x667946=new AgentPushCommand(),_0x2913c4=program[_0x2201c9(0x281)](),_0x367354=await createTDXInstance(_0x2913c4),_0x4fe125=await _0x667946[_0x2201c9(0x2ae)]({'options':{..._0x2913c4,..._0x246d6a},'args':_0x47b30f?[_0x47b30f]:[],'tdx':_0x367354});process[_0x2201c9(0x2de)](_0x4fe125);}),agentSyncCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x2d9))['description'](a2_0x3231b5(0x235))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x139),'Name\x20for\x20the\x20new\x20project\x20(required)')[a2_0x3231b5(0x330)](async(_0x4ea589,_0x1afab3)=>{const _0x2a2e14=a2_0x3231b5,_0x5d9bb6=new AgentCloneCommand(),_0x1bf283=program[_0x2a2e14(0x281)](),_0x321f04=await createTDXInstance(_0x1bf283),_0x37b85a=await _0x5d9bb6[_0x2a2e14(0x2ae)]({'options':{..._0x1bf283,..._0x1afab3},'args':_0x4ea589?[_0x4ea589]:[],'tdx':_0x321f04});process[_0x2a2e14(0x2de)](_0x37b85a);}),agentSyncCmd[a2_0x3231b5(0x168)]('list\x20[pattern]')[a2_0x3231b5(0x1ef)]('List\x20agents\x20in\x20current\x20project')[a2_0x3231b5(0x330)](llmAgentListAction),agentSyncCmd['command'](a2_0x3231b5(0x211))['description'](a2_0x3231b5(0x22c))[a2_0x3231b5(0x330)](async(_0x2e422e,_0x3ea44a)=>{const _0x48e66e=a2_0x3231b5,_0x47e78b=new LLMAgentShowCommand(),_0x18acf8=program['opts'](),_0x58700a=await createTDXInstance(_0x18acf8),_0x505696=await _0x47e78b[_0x48e66e(0x2ae)]({'options':{..._0x18acf8,..._0x3ea44a},'args':[_0x2e422e],'tdx':_0x58700a});process[_0x48e66e(0x2de)](_0x505696);}),agentSyncCmd[a2_0x3231b5(0x168)](a2_0x3231b5(0x286))['description']('Create\x20a\x20new\x20agent\x20in\x20current\x20project')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x1a3),a2_0x3231b5(0x2cb))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x285),a2_0x3231b5(0x23c),a2_0x3231b5(0x218))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x2da),a2_0x3231b5(0x259))['option'](a2_0x3231b5(0x1d4),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3231b5(0x2fe)](a2_0x3231b5(0x296),a2_0x3231b5(0x2ab),'0.7')[a2_0x3231b5(0x330)](async(_0x278f5a,_0xddadd1)=>{const _0x1940f0=a2_0x3231b5,_0x37b639=new LLMAgentCreateCommand(),_0x3ed1ae=program[_0x1940f0(0x281)](),_0x5a2bc7=await createTDXInstance(_0x3ed1ae),_0xe32e75=await _0x37b639[_0x1940f0(0x2ae)]({'options':{..._0x3ed1ae,..._0xddadd1},'args':[_0x278f5a],'tdx':_0x5a2bc7});process[_0x1940f0(0x2de)](_0xe32e75);}),agentSyncCmd['command'](a2_0x3231b5(0xee))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x1bb))[a2_0x3231b5(0x2fe)]('--name\x20<text>',a2_0x3231b5(0x21b))[a2_0x3231b5(0x2fe)](a2_0x3231b5(0xfa),a2_0x3231b5(0x128))['option'](a2_0x3231b5(0x1f8),a2_0x3231b5(0x119))['option'](a2_0x3231b5(0x2da),a2_0x3231b5(0x259))[a2_0x3231b5(0x330)](async(_0x5c0afc,_0x1f8b14)=>{const _0x4d37e9=a2_0x3231b5,_0x17f8f9=new LLMAgentUpdateCommand(),_0x3a8d15=program['opts'](),_0xb8f289=await createTDXInstance(_0x3a8d15),_0x5c4761=await _0x17f8f9[_0x4d37e9(0x2ae)]({'options':{..._0x3a8d15,..._0x1f8b14},'args':[_0x5c0afc],'tdx':_0xb8f289});process['exit'](_0x5c4761);}),agentSyncCmd['command'](a2_0x3231b5(0x2a7))[a2_0x3231b5(0x1ef)](a2_0x3231b5(0x216))[a2_0x3231b5(0x330)](async(_0x1339eb,_0x3fae18)=>{const _0x129830=a2_0x3231b5,_0x407a09=new LLMAgentDeleteCommand(),_0x67d98c=program['opts'](),_0x31b16e=await createTDXInstance(_0x67d98c),_0x2196fc=await _0x407a09[_0x129830(0x2ae)]({'options':{..._0x67d98c,..._0x3fae18},'args':[_0x1339eb],'tdx':_0x31b16e});process[_0x129830(0x2de)](_0x2196fc);});export{program};export function runCLI(){const _0x213a35=a2_0x3231b5,_0x3ee9bd=!process[_0x213a35(0x237)][_0x213a35(0x27f)](0x2)[_0x213a35(0x2b0)];showBriefHelp=_0x3ee9bd,program['parse'](process[_0x213a35(0x237)]),_0x3ee9bd&&program[_0x213a35(0xe5)](),process[_0x213a35(0x127)][_0x213a35(0x2a8)]&&process[_0x213a35(0x237)][_0x213a35(0x2b0)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x213a35(0x28b)](_0x40a97d=>{_0x40a97d&&displayUpdateNotification(_0x40a97d);})['catch'](()=>{});}
1
+ const a2_0x3b88ee=a2_0x1591;(function(_0x399112,_0x30bbee){const _0x48a332=a2_0x1591,_0x57c36c=_0x399112();while(!![]){try{const _0x43bcdd=parseInt(_0x48a332(0x1a7))/0x1*(-parseInt(_0x48a332(0x308))/0x2)+parseInt(_0x48a332(0xe4))/0x3*(-parseInt(_0x48a332(0x149))/0x4)+parseInt(_0x48a332(0xe1))/0x5+-parseInt(_0x48a332(0x1c9))/0x6+parseInt(_0x48a332(0x1da))/0x7+parseInt(_0x48a332(0x2e9))/0x8*(-parseInt(_0x48a332(0xe5))/0x9)+parseInt(_0x48a332(0x21f))/0xa*(parseInt(_0x48a332(0x160))/0xb);if(_0x43bcdd===_0x30bbee)break;else _0x57c36c['push'](_0x57c36c['shift']());}catch(_0x4ffe8b){_0x57c36c['push'](_0x57c36c['shift']());}}}(a2_0x22c4,0xc57f4));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/tdx-logger.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process['argv'][a2_0x3b88ee(0x28e)](a2_0x3b88ee(0x1f2))){let versionOutput=a2_0x3b88ee(0x2bd)+currentVersion;buildInfo['gitRevision']&&!currentVersion[a2_0x3b88ee(0x28e)](buildInfo['gitRevision'])&&(versionOutput+='\x20('+buildInfo[a2_0x3b88ee(0x2a1)]+')'),buildInfo[a2_0x3b88ee(0x14e)]&&(versionOutput+=a2_0x3b88ee(0x1c1)+buildInfo[a2_0x3b88ee(0x14e)]),console[a2_0x3b88ee(0x251)](versionOutput),process[a2_0x3b88ee(0x139)](0x0);}const program=new Command();let showBriefHelp=![],description='AI-native\x20CLI\x20for\x20Treasure\x20Data';buildInfo[a2_0x3b88ee(0x2a1)]&&!currentVersion[a2_0x3b88ee(0x28e)](buildInfo[a2_0x3b88ee(0x2a1)])?description+=a2_0x3b88ee(0x13d)+currentVersion+'\x20('+buildInfo[a2_0x3b88ee(0x2a1)]+')':description+=a2_0x3b88ee(0x13d)+currentVersion;program[a2_0x3b88ee(0x1f4)](a2_0x3b88ee(0x187))['description'](description),program['option'](a2_0x3b88ee(0x275),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x10e),'Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x124),a2_0x3b88ee(0x2fa),a2_0x3b88ee(0x22e))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xd8),a2_0x3b88ee(0x237))['option'](a2_0x3b88ee(0x2a6),a2_0x3b88ee(0x175))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x191),a2_0x3b88ee(0x174))['option']('--jsonl',a2_0x3b88ee(0x1e8))[a2_0x3b88ee(0x245)]('--tsv',a2_0x3b88ee(0x2ee))['option'](a2_0x3b88ee(0x313),a2_0x3b88ee(0x26e))['option']('--limit\x20<number>',a2_0x3b88ee(0x212))['option']('--color',a2_0x3b88ee(0x1df),![])['option'](a2_0x3b88ee(0x296),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])[a2_0x3b88ee(0x245)]('-v,\x20--verbose',a2_0x3b88ee(0x20b),![])['option']('--debug',a2_0x3b88ee(0x2a3))['option'](a2_0x3b88ee(0x28c),a2_0x3b88ee(0x127))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2f6),'Set\x20operation\x20timeout\x20in\x20seconds','30')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x201),![])[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),'Skip\x20confirmation\x20prompts',![])['option'](a2_0x3b88ee(0x246),a2_0x3b88ee(0x305))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1a6),a2_0x3b88ee(0x1f0))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x10b),a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x245)]('--parent-segment\x20<name>',a2_0x3b88ee(0x1fc))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1e9),a2_0x3b88ee(0x114)),program['configureHelp']({'formatHelp':(_0x3a1491,_0x102675)=>{const _0x1cd843=a2_0x3b88ee,_0x4838f5=_0x102675[_0x1cd843(0x309)](_0x3a1491,_0x102675),_0x5a193a=0x2,_0x200506=0x2;function _0x65df67(_0x14211a){const _0x48ce05=_0x1cd843,_0x26dc70=_0x14211a;return!!(_0x26dc70['_hidden']||_0x26dc70[_0x48ce05(0x125)]);}function _0x308f04(_0x1d6b08,_0xbf7cf8){const _0x115c4f=_0x1cd843;if(_0xbf7cf8){const _0x1d9f43=''+_0x1d6b08[_0x115c4f(0x186)](_0x4838f5+_0x200506)+_0xbf7cf8;return _0x1d9f43;}return _0x1d6b08;}function _0x794a17(_0x39f1b8){const _0x3c1ffe=_0x1cd843;return _0x39f1b8[_0x3c1ffe(0x30b)]('\x0a')[_0x3c1ffe(0x112)](/^/gm,'\x20'[_0x3c1ffe(0x1ff)](_0x5a193a));}const _0x53a7ec=[];_0x53a7ec[_0x1cd843(0x2d0)]('Usage:\x20'+_0x102675['commandUsage'](_0x3a1491));const _0x40a3c7=_0x102675[_0x1cd843(0x2c7)](_0x3a1491);_0x40a3c7&&(_0x53a7ec['push'](''),_0x53a7ec[_0x1cd843(0x2d0)](_0x40a3c7));const _0x387a16=_0x3a1491[_0x1cd843(0x231)][_0x1cd843(0x29a)](_0xad54d2=>!_0x65df67(_0xad54d2));if(_0x387a16[_0x1cd843(0x193)]>0x0){if(_0x3a1491[_0x1cd843(0x1f4)]()==='tdx'){const _0x3c220c=_0x3a1491[_0x1cd843(0x164)](),_0x40eb1a=!_0x3c220c[_0x1cd843(0x2dc)]&&process[_0x1cd843(0x2fe)][_0x1cd843(0x20d)],_0x5d4a36=COMMAND_CATEGORIES,_0x46b363=(_0x35aa3f,_0x1964ff)=>_0x40eb1a?_0x1964ff(_0x35aa3f):_0x35aa3f,_0x52f471=new Map();_0x387a16['forEach'](_0x482ac1=>{const _0xb72b8c=_0x1cd843;_0x52f471[_0xb72b8c(0xd2)](_0x482ac1[_0xb72b8c(0x1f4)](),_0x482ac1);}),_0x5d4a36[_0x1cd843(0x2b8)](_0x2e94a2=>{const _0x57d953=_0x1cd843,_0x4c214c=_0x2e94a2[_0x57d953(0x231)][_0x57d953(0x290)](_0x4e241c=>_0x52f471['get'](_0x4e241c)??[]);if(_0x4c214c['length']>0x0){_0x53a7ec[_0x57d953(0x2d0)](''),_0x53a7ec[_0x57d953(0x2d0)](_0x46b363(_0x2e94a2[_0x57d953(0x1f4)]+':',_0x2e94a2[_0x57d953(0x20e)]));const _0x1de5d8=_0x4c214c[_0x57d953(0x2c2)](_0x408f3f=>{const _0x3620af=_0x57d953,_0x4a8e58=_0x102675[_0x3620af(0x1d6)](_0x408f3f),_0x4b5673=_0x102675[_0x3620af(0x2f7)](_0x408f3f);return _0x308f04(_0x4a8e58,_0x4b5673);});_0x53a7ec[_0x57d953(0x2d0)](_0x794a17(_0x1de5d8));}}),_0x53a7ec[_0x1cd843(0x2d0)](''),_0x53a7ec[_0x1cd843(0x2d0)](_0x1cd843(0x109));}else{const _0x4ef964=_0x387a16[_0x1cd843(0x2c2)](_0x47bd18=>{const _0x442c05=_0x1cd843,_0x9eed72=_0x102675[_0x442c05(0x1d6)](_0x47bd18),_0x355311=_0x102675[_0x442c05(0x2f7)](_0x47bd18);return _0x308f04(_0x9eed72,_0x355311);});_0x53a7ec[_0x1cd843(0x2d0)](''),_0x53a7ec['push'](_0x1cd843(0x17f)),_0x53a7ec[_0x1cd843(0x2d0)](_0x794a17(_0x4ef964));}}if(showBriefHelp&&_0x3a1491[_0x1cd843(0x1f4)]()==='tdx')_0x53a7ec['push'](''),_0x53a7ec[_0x1cd843(0x2d0)](_0x1cd843(0x14a));else{const _0x1b6205=_0x3a1491[_0x1cd843(0x1f7)][_0x1cd843(0x29a)](_0x35bc9c=>!_0x65df67(_0x35bc9c));if(_0x1b6205[_0x1cd843(0x193)]>0x0){const _0x323e9a=_0x1b6205['map'](_0x13a08d=>{const _0x509e12=_0x1cd843,_0xd6abc2=_0x102675[_0x509e12(0x122)](_0x13a08d),_0x12e6bb=_0x102675[_0x509e12(0x2c0)](_0x13a08d);return _0x308f04(_0xd6abc2,_0x12e6bb);});_0x53a7ec[_0x1cd843(0x2d0)](''),_0x53a7ec[_0x1cd843(0x2d0)](_0x1cd843(0x2e6)),_0x53a7ec[_0x1cd843(0x2d0)](_0x794a17(_0x323e9a));}}const _0x1425fd=(_0x3a1491[_0x1cd843(0x189)]||[])[_0x1cd843(0x29a)](_0x34c7b6=>!_0x65df67(_0x34c7b6));if(_0x1425fd[_0x1cd843(0x193)]>0x0){const _0x4c11c7=_0x1425fd[_0x1cd843(0x2c2)](_0x1df650=>{const _0x4e3a2d=_0x1cd843,_0x728d94=_0x102675['argumentTerm'](_0x1df650),_0x478169=_0x102675[_0x4e3a2d(0xd5)](_0x1df650);return _0x308f04(_0x728d94,_0x478169);});_0x53a7ec[_0x1cd843(0x2d0)](''),_0x53a7ec[_0x1cd843(0x2d0)](_0x1cd843(0xf6)),_0x53a7ec[_0x1cd843(0x2d0)](_0x794a17(_0x4c11c7));}return _0x53a7ec[_0x1cd843(0x30b)]('\x0a')+'\x0a';},'subcommandTerm':_0x502851=>{const _0x1b7563=a2_0x3b88ee,_0x334823=(_0x502851[_0x1b7563(0x189)]||[])['map'](_0x2eb164=>_0x2eb164[_0x1b7563(0x314)]?'<'+_0x2eb164[_0x1b7563(0x1f4)]()+'>':'['+_0x2eb164['name']()+']')[_0x1b7563(0x30b)]('\x20'),_0x26b97d=_0x502851[_0x1b7563(0x1dd)](),_0x4a2b0c=_0x26b97d[_0x1b7563(0x193)]>0x0?_0x502851[_0x1b7563(0x1f4)]()+',\x20'+_0x26b97d[_0x1b7563(0x30b)](',\x20'):_0x502851[_0x1b7563(0x1f4)]();return _0x334823?_0x4a2b0c+'\x20'+_0x334823:_0x4a2b0c;}}),program['hook']('preAction',_0x1251e8=>{const _0x13309e=a2_0x3b88ee,_0xd1edfb=_0x1251e8[_0x13309e(0x164)]();if(_0xd1edfb[_0x13309e(0x270)]){const _0x23a616=resolve(_0xd1edfb[_0x13309e(0x270)]),_0xd6f69a=_0x23a616!==_0xd1edfb[_0x13309e(0x270)]?'\x20(resolved\x20to\x20'+_0x23a616+')':'';if(!existsSync(_0x23a616))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x13309e(0x235)+_0xd1edfb['directory']+_0xd6f69a,undefined,{'helpText':_0x13309e(0x277)});const _0x42e1a9=statSync(_0x23a616);if(!_0x42e1a9[_0x13309e(0x302)]())throw new SDKError(ErrorCode[_0x13309e(0x319)],_0x13309e(0x2c1)+_0xd1edfb[_0x13309e(0x270)]+_0xd6f69a,undefined,{'helpText':_0x13309e(0x10d)});process[_0x13309e(0xfd)](_0x23a616);}if(!_0xd1edfb['format']){if(_0xd1edfb[_0x13309e(0x16e)])_0xd1edfb[_0x13309e(0x1a3)]=_0x13309e(0x16e);else{if(_0xd1edfb[_0x13309e(0x2a2)])_0xd1edfb[_0x13309e(0x1a3)]=_0x13309e(0x2a2);else{if(_0xd1edfb[_0x13309e(0x13c)])_0xd1edfb[_0x13309e(0x1a3)]='jsonl';else _0xd1edfb['tsv']&&(_0xd1edfb['format']=_0x13309e(0x218));}}}_0xd1edfb['in']&&!_0xd1edfb[_0x13309e(0x1c4)]&&(_0xd1edfb[_0x13309e(0x1c4)]=_0xd1edfb['in']);if(_0xd1edfb['trace'])_0xd1edfb['logLevel']=LogLevel['TRACE'];else{if(_0xd1edfb[_0x13309e(0x2a7)])_0xd1edfb[_0x13309e(0x118)]=LogLevel[_0x13309e(0x130)];else _0xd1edfb[_0x13309e(0x118)]===undefined&&(_0xd1edfb[_0x13309e(0x118)]=LogLevel[_0x13309e(0x25a)]);}});async function createTDXInstance(_0x11827d){const _0x38810e=a2_0x3b88ee,_0x158a92=await GlobalContext[_0x38810e(0x26d)](_0x11827d);return _0x158a92[_0x38810e(0x15c)](_0x11827d),TDX[_0x38810e(0x1b3)]({'site':_0x158a92[_0x38810e(0x2b2)],'apiKey':_0x158a92[_0x38810e(0x2ba)],'logLevel':_0x158a92[_0x38810e(0x118)],'profile':_0x158a92[_0x38810e(0x315)]});}const databaseCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1c4))[a2_0x3b88ee(0x2f0)]('db')['description'](a2_0x3b88ee(0x27f)),databaseListAction=async(_0x475237,_0x294844)=>{const _0xaeaf2a=a2_0x3b88ee,_0x1760bd=new DatabasesCommand(),_0x53d757=program[_0xaeaf2a(0x164)](),_0x1c8cc8=await createTDXInstance(_0x53d757),_0x46a8ad=await _0x1760bd['run']({'options':{..._0x53d757,..._0x294844},'args':_0x475237?[_0x475237]:[],'tdx':_0x1c8cc8});process[_0xaeaf2a(0x139)](_0x46a8ad);};databaseCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3b88ee(0x2b5)](databaseListAction),program[a2_0x3b88ee(0x25d)]('databases\x20[pattern]',{'hidden':!![]})['description']('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x3b88ee(0x2b5)](databaseListAction),program[a2_0x3b88ee(0x25d)]('chat\x20[message...]')['description'](a2_0x3b88ee(0x27c))['option']('--agent\x20<ref>',a2_0x3b88ee(0x12a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x18d),a2_0x3b88ee(0x1b4))[a2_0x3b88ee(0x2b5)](async(_0x4477b8,_0x18418b)=>{const _0x1f49e2=a2_0x3b88ee,_0x435f5a=new ChatCommand(),_0xc1b6c4=program[_0x1f49e2(0x164)](),_0x54051b=await createTDXInstance(_0xc1b6c4),_0x56812a=await _0x435f5a['run']({'options':{..._0xc1b6c4,..._0x18418b},'args':_0x4477b8,'tdx':_0x54051b});process['exit'](_0x56812a);});const apiCmd=program[a2_0x3b88ee(0x25d)]('api\x20[endpoint]')[a2_0x3b88ee(0x1b2)](a2_0x3b88ee(0x19d))[a2_0x3b88ee(0x1f3)](a2_0x3b88ee(0x1e6),a2_0x3b88ee(0x158))[a2_0x3b88ee(0x245)]('-X,\x20--method\x20<method>',a2_0x3b88ee(0x2e5),a2_0x3b88ee(0x2d3))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x11c),a2_0x3b88ee(0x141))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x135),a2_0x3b88ee(0x137))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x198),a2_0x3b88ee(0xd0),(_0x31f3fa,_0x2c8828)=>{return _0x2c8828?[..._0x2c8828,_0x31f3fa]:[_0x31f3fa];})[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x310),a2_0x3b88ee(0x1b7),'td')['action'](async(_0x2da400,_0x335ecb)=>{const _0x1d9fb1=a2_0x3b88ee;if(!_0x2da400){apiCmd[_0x1d9fb1(0xca)]();return;}const _0x270f05=new ApiCommand(),_0x122018=program['opts'](),_0x27689a=await createTDXInstance(_0x122018),_0x13d8db=await _0x270f05['run']({'options':{..._0x122018,..._0x335ecb},'args':[_0x2da400],'tdx':_0x27689a});process['exit'](_0x13d8db);}),tableCmd=program['command'](a2_0x3b88ee(0x16e))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2ea)),tableListAction=async(_0x4327ec,_0x1028c6)=>{const _0x3aab81=a2_0x3b88ee,_0x1285b3=new TablesCommand(),_0x19835c=program[_0x3aab81(0x164)](),_0x3137ef=await createTDXInstance(_0x19835c);_0x1028c6['in']&&(_0x1028c6[_0x3aab81(0x1c4)]=_0x1028c6['in']);const _0xa332cf=await _0x1285b3[_0x3aab81(0x303)]({'options':{..._0x19835c,..._0x1028c6},'args':_0x4327ec?[_0x4327ec]:[],'tdx':_0x3137ef});process['exit'](_0xa332cf);};tableCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))['description'](a2_0x3b88ee(0x194))['option'](a2_0x3b88ee(0x1e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2cf),a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x2b5)](tableListAction),program[a2_0x3b88ee(0x25d)]('tables\x20[pattern]',{'hidden':!![]})['description']('List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1e0),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2cf),a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x2b5)](tableListAction),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x12e))[a2_0x3b88ee(0x183)]('Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1e0),a2_0x3b88ee(0x261))['option'](a2_0x3b88ee(0x2cf),a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x2b5)](async(_0x4e0d2e,_0x4eb874)=>{const _0x3a05be=a2_0x3b88ee,_0x497516=new ShowCommand(),_0x32e4b5=program[_0x3a05be(0x164)](),_0x436422=await createTDXInstance(_0x32e4b5);_0x4eb874['in']&&(_0x4eb874[_0x3a05be(0x1c4)]=_0x4eb874['in']);const _0x4eb476=await _0x497516[_0x3a05be(0x303)]({'options':{..._0x32e4b5,..._0x4eb874},'args':_0x4e0d2e?[_0x4e0d2e]:[],'tdx':_0x436422});process['exit'](_0x4eb476);}),program[a2_0x3b88ee(0x25d)]('describe\x20[table]')['alias'](a2_0x3b88ee(0x152))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x291))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1e0),a2_0x3b88ee(0x261))[a2_0x3b88ee(0x245)]('--in\x20<database>',a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x2b5)](async(_0x4955b1,_0x218e1b)=>{const _0x548ca8=a2_0x3b88ee,_0x526f1d=new DescribeCommand(),_0x306ba0=program[_0x548ca8(0x164)](),_0x270107=await createTDXInstance(_0x306ba0);_0x218e1b['in']&&(_0x218e1b['database']=_0x218e1b['in']);const _0x3c228f=await _0x526f1d[_0x548ca8(0x303)]({'options':{..._0x306ba0,..._0x218e1b},'args':_0x4955b1?[_0x4955b1]:[],'tdx':_0x270107});process['exit'](_0x3c228f);}),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1af))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1bc))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1e0),a2_0x3b88ee(0x250))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2cf),a2_0x3b88ee(0x2e8))[a2_0x3b88ee(0x245)]('--catalog\x20<catalog>','Trino\x20catalog\x20(default:\x20td)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x135),a2_0x3b88ee(0x279))['option'](a2_0x3b88ee(0x2af),a2_0x3b88ee(0xf3),'40')[a2_0x3b88ee(0x2b5)](async(_0x37104d,_0x405ab1)=>{const _0x5d2d38=a2_0x3b88ee,_0x116bbf=new QueryCommand(),_0x148e0b=program[_0x5d2d38(0x164)](),_0x40ba94=await createTDXInstance(_0x148e0b);_0x405ab1['in']&&(_0x405ab1[_0x5d2d38(0x1c4)]=_0x405ab1['in']);const _0xfa599f=await _0x116bbf[_0x5d2d38(0x303)]({'options':{..._0x148e0b,..._0x405ab1},'args':_0x37104d?[_0x37104d]:[],'tdx':_0x40ba94});process['exit'](_0xfa599f);});const segmentCmd=program['command'](a2_0x3b88ee(0x13a))['alias']('sg')[a2_0x3b88ee(0x183)]('CDP\x20segment\x20management\x20commands'),segmentListAction=async(_0x1d525f,_0x4bfa88)=>{const _0x531ebc=a2_0x3b88ee,_0x4a9e49=new SegmentsCommand(),_0x2f5941=program[_0x531ebc(0x164)](),_0x5e9cfe=await createTDXInstance(_0x2f5941),_0x4a8fd5=await _0x4a9e49[_0x531ebc(0x303)]({'options':{..._0x2f5941,..._0x4bfa88},'args':_0x1d525f?[_0x1d525f]:[],'tdx':_0x5e9cfe});process[_0x531ebc(0x139)](_0x4a8fd5);};segmentCmd['command'](a2_0x3b88ee(0x22d))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x259))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2f5),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xe0),a2_0x3b88ee(0x2ab),'10')[a2_0x3b88ee(0x2b5)](segmentListAction),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x136),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x142))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2f5),a2_0x3b88ee(0x138))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xe0),a2_0x3b88ee(0x2ab),'10')[a2_0x3b88ee(0x2b5)](segmentListAction),segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x19b),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1ec))['action'](async(_0x2edf41,_0x22f618)=>{const _0x2f8dbe=a2_0x3b88ee,_0x1f68bc=new SegmentUseCommand(),_0x100ef7=program[_0x2f8dbe(0x164)](),_0x1c34e8=await createTDXInstance(_0x100ef7),_0x576a98=await _0x1f68bc[_0x2f8dbe(0x303)]({'options':{..._0x100ef7,..._0x22f618},'args':[_0x2edf41],'tdx':_0x1c34e8});process[_0x2f8dbe(0x139)](_0x576a98);});const segmentViewAction=async(_0x5d0369,_0x60a5a4)=>{const _0x4870b4=a2_0x3b88ee,_0x390f90=new SegmentViewCommand(),_0x4078ba=program[_0x4870b4(0x164)](),_0x1cc999=await createTDXInstance(_0x4078ba),_0x4a0ff2=await _0x390f90[_0x4870b4(0x303)]({'options':{..._0x4078ba,..._0x60a5a4},'args':_0x5d0369?[_0x5d0369]:[],'tdx':_0x1cc999});process[_0x4870b4(0x139)](_0x4a0ff2);};segmentCmd['command']('view\x20[segment_name]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x28a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x221),'Open\x20segment\x20in\x20web\x20browser')['action'](segmentViewAction),segmentCmd['command'](a2_0x3b88ee(0x1bb),{'hidden':!![]})[a2_0x3b88ee(0x2f0)](a2_0x3b88ee(0x262))[a2_0x3b88ee(0x245)]('-w,\x20--web','Open\x20segment\x20in\x20web\x20browser')['description'](a2_0x3b88ee(0x24f))['action'](segmentViewAction),segmentCmd[a2_0x3b88ee(0x25d)]('desc\x20[segment_name]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x168))[a2_0x3b88ee(0x2b5)](async(_0x42dc78,_0x54ad15)=>{const _0x2dcc72=a2_0x3b88ee,_0x4be5bb=new SegmentDescCommand(),_0x3ea661=program[_0x2dcc72(0x164)](),_0x2c6064=await createTDXInstance(_0x3ea661),_0x12ff89=await _0x4be5bb['run']({'options':{..._0x3ea661,..._0x54ad15},'args':_0x42dc78?[_0x42dc78]:[],'tdx':_0x2c6064});process[_0x2dcc72(0x139)](_0x12ff89);}),segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x21e))['description'](a2_0x3b88ee(0x210))[a2_0x3b88ee(0x2b5)](async(_0x1e7fcb,_0x11d651)=>{const _0x100450=a2_0x3b88ee,_0x1d00e6=new SegmentShowCommand(),_0x2b7fd6=program[_0x100450(0x164)](),_0x122acc=await createTDXInstance(_0x2b7fd6),_0x2853d4=await _0x1d00e6[_0x100450(0x303)]({'options':{..._0x2b7fd6,..._0x11d651},'args':_0x1e7fcb?[_0x1e7fcb]:[],'tdx':_0x122acc});process[_0x100450(0x139)](_0x2853d4);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})['description'](a2_0x3b88ee(0x1cd))[a2_0x3b88ee(0x2b5)](async(_0x27d37f,_0x19e1aa)=>{const _0x2096fa=a2_0x3b88ee,_0x5d2eaa=new SegmentFolderListCommand(),_0x214f47=program[_0x2096fa(0x164)](),_0x21c0e5=await createTDXInstance(_0x214f47),_0x5a766f=await _0x5d2eaa[_0x2096fa(0x303)]({'options':{..._0x214f47,..._0x19e1aa},'args':[_0x27d37f],'tdx':_0x21c0e5});process[_0x2096fa(0x139)](_0x5a766f);});const folderCmd=segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x131),{'hidden':!![]})['description']('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x172))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1cc))[a2_0x3b88ee(0x2b5)](async(_0x3be212,_0x50d99b)=>{const _0x547b4f=a2_0x3b88ee,_0x47e360=new SegmentFolderShowCommand(),_0x2d0e87=program['opts'](),_0x172bb6=await createTDXInstance(_0x2d0e87),_0x385494=await _0x47e360['run']({'options':{..._0x2d0e87,..._0x50d99b},'args':[_0x3be212],'tdx':_0x172bb6});process[_0x547b4f(0x139)](_0x385494);}),segmentCmd['command']('sql\x20[segment_name]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x169))['action'](async(_0x14837a,_0x204c2a)=>{const _0x28a0a1=new SegmentSQLCommand(),_0xe655ec=program['opts'](),_0x5b01e6=await createTDXInstance(_0xe655ec),_0x3d30d2=await _0x28a0a1['run']({'options':{..._0xe655ec,..._0x204c2a},'args':_0x14837a?[_0x14837a]:[],'tdx':_0x5b01e6});process['exit'](_0x3d30d2);}),segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1ab))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1de))[a2_0x3b88ee(0x2b5)](async(_0x4e09e2,_0x53dc41)=>{const _0x24f1c3=a2_0x3b88ee,_0x5da07c=new SegmentFieldsCommand(),_0x12ce54=program[_0x24f1c3(0x164)](),_0x2da7a3=await createTDXInstance(_0x12ce54),_0x22ce27=await _0x5da07c[_0x24f1c3(0x303)]({'options':{..._0x12ce54,..._0x53dc41},'args':_0x4e09e2?[_0x4e09e2]:[],'tdx':_0x2da7a3});process[_0x24f1c3(0x139)](_0x22ce27);}),segmentCmd['command'](a2_0x3b88ee(0x185))[a2_0x3b88ee(0x183)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),a2_0x3b88ee(0x12f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x2eb))[a2_0x3b88ee(0x2b5)](async(_0x4eedfb,_0x1b23af)=>{const _0x1e3439=a2_0x3b88ee,_0x23ef41=new SegmentPullCommand(),_0x5378fb=program[_0x1e3439(0x164)](),_0xc88951=await createTDXInstance(_0x5378fb),_0x39497d=await _0x23ef41[_0x1e3439(0x303)]({'options':{..._0x5378fb,..._0x1b23af},'args':_0x4eedfb?[_0x4eedfb]:[],'tdx':_0xc88951});process['exit'](_0x39497d);}),segmentCmd['command']('push\x20[parent_or_file]')['description'](a2_0x3b88ee(0x12d))[a2_0x3b88ee(0x245)]('-y,\x20--yes',a2_0x3b88ee(0x12f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x2eb))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2b0),a2_0x3b88ee(0x26c))[a2_0x3b88ee(0x2b5)](async(_0x5afbda,_0x3413a5)=>{const _0x53f37e=a2_0x3b88ee,_0x4e7299=new SegmentPushCommand(),_0x587295=program[_0x53f37e(0x164)](),_0x43c189=await createTDXInstance(_0x587295),_0x4326b9=await _0x4e7299[_0x53f37e(0x303)]({'options':{..._0x587295,..._0x3413a5},'args':_0x5afbda?[_0x5afbda]:[],'tdx':_0x43c189});process[_0x53f37e(0x139)](_0x4326b9);}),segmentCmd['command'](a2_0x3b88ee(0x214))['description'](a2_0x3b88ee(0x2c3))[a2_0x3b88ee(0x2b5)](async(_0x1a6164,_0x2d80c5)=>{const _0x2e9f60=a2_0x3b88ee,_0x4e5724=new SegmentValidateCommand(),_0x450eb4=program[_0x2e9f60(0x164)](),_0x4ff53f=await createTDXInstance(_0x450eb4),_0x1619f9=await _0x4e5724[_0x2e9f60(0x303)]({'options':{..._0x450eb4,..._0x2d80c5},'args':_0x1a6164?[_0x1a6164]:[],'tdx':_0x4ff53f});process['exit'](_0x1619f9);}),segmentCmd['command']('create\x20<segment_name>',{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x182))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x17a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x188),a2_0x3b88ee(0x2d7))[a2_0x3b88ee(0x245)]('--rule-file\x20<file>',a2_0x3b88ee(0x1ad))['option']('--folder\x20<name>',a2_0x3b88ee(0xf2))[a2_0x3b88ee(0x245)]('--kind\x20<type>',a2_0x3b88ee(0x1fa))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1fb),a2_0x3b88ee(0x167))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x26a),'Skip\x20population\x20counting')[a2_0x3b88ee(0x2b5)](async(_0x5cb68e,_0x2aa6de)=>{const _0x43dc05=a2_0x3b88ee,_0x2a962d=new SegmentCreateCommand(),_0x4890b0=program[_0x43dc05(0x164)](),_0x5719bb=await createTDXInstance(_0x4890b0),_0x58a76a=await _0x2a962d[_0x43dc05(0x303)]({'options':{..._0x4890b0,..._0x2aa6de},'args':[_0x5cb68e],'tdx':_0x5719bb});process[_0x43dc05(0x139)](_0x58a76a);}),segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x225),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1c7))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xcd),a2_0x3b88ee(0x300))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x166))['option'](a2_0x3b88ee(0x188),a2_0x3b88ee(0x2ac))['option']('--rule-file\x20<file>','Updated\x20filtering\x20rule\x20from\x20JSON\x20file')['option'](a2_0x3b88ee(0x17d),a2_0x3b88ee(0x1d7))[a2_0x3b88ee(0x245)]('--kind\x20<type>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage')['action'](async(_0x64be6e,_0x4f5618)=>{const _0x20279a=a2_0x3b88ee,_0x3c4010=new SegmentUpdateCommand(),_0x15a80d=program[_0x20279a(0x164)](),_0x4dfe9f=await createTDXInstance(_0x15a80d),_0x985f9=await _0x3c4010['run']({'options':{..._0x15a80d,..._0x4f5618},'args':[_0x64be6e],'tdx':_0x4dfe9f});process[_0x20279a(0x139)](_0x985f9);});const parentCmd=segmentCmd[a2_0x3b88ee(0x25d)]('parent',{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1a8)),parentListAction=async(_0x3bd136,_0x25019c)=>{const _0x4be6fd=a2_0x3b88ee,_0x13c74a=new ParentSegmentListCommand(),_0xbc2b42=program[_0x4be6fd(0x164)](),_0x957786=await createTDXInstance(_0xbc2b42),_0xccee95=await _0x13c74a['run']({'options':{..._0xbc2b42,..._0x25019c},'args':_0x3bd136?[_0x3bd136]:[],'tdx':_0x957786});process[_0x4be6fd(0x139)](_0xccee95);};parentCmd[a2_0x3b88ee(0x25d)]('list\x20[pattern]')[a2_0x3b88ee(0x183)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x3b88ee(0x2b5)](parentListAction),segmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2f3),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2d2))[a2_0x3b88ee(0x2b5)](parentListAction),parentCmd['command'](a2_0x3b88ee(0x178))['description'](a2_0x3b88ee(0x222))['option'](a2_0x3b88ee(0xf7),a2_0x3b88ee(0xdb))[a2_0x3b88ee(0x245)]('-y,\x20--yes',a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x2b5)](async(_0x31bbeb,_0x332aa3)=>{const _0xd9b97=a2_0x3b88ee,_0x367b16=new ParentSegmentPullCommand(),_0x33470f=program['opts'](),_0xd1434=await createTDXInstance(_0x33470f),_0x2d91d8=await _0x367b16['run']({'options':{..._0x33470f,..._0x332aa3},'args':_0x31bbeb?[_0x31bbeb]:[],'tdx':_0xd1434});process[_0xd9b97(0x139)](_0x2d91d8);}),parentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x316))[a2_0x3b88ee(0x183)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')['option']('-y,\x20--yes',a2_0x3b88ee(0x2cb))['action'](async(_0x4201bd,_0xc85f3)=>{const _0x3b9a11=a2_0x3b88ee,_0xd2ded1=new ParentSegmentPushCommand(),_0x4c38ec=program[_0x3b9a11(0x164)](),_0x4497a8=await createTDXInstance(_0x4c38ec),_0x352ed9=await _0xd2ded1[_0x3b9a11(0x303)]({'options':{..._0x4c38ec,..._0xc85f3},'args':_0x4201bd?[_0x4201bd]:[],'tdx':_0x4497a8});process[_0x3b9a11(0x139)](_0x352ed9);}),parentCmd[a2_0x3b88ee(0x25d)]('validate\x20[file]')[a2_0x3b88ee(0x183)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')['option'](a2_0x3b88ee(0x26b),a2_0x3b88ee(0xea))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1db),a2_0x3b88ee(0x140))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x227),a2_0x3b88ee(0x1a2))['option'](a2_0x3b88ee(0x219),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2db),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)',a2_0x3b88ee(0x2d8))[a2_0x3b88ee(0x2b5)](async(_0x405c51,_0x2a7be9)=>{const _0x1743c9=a2_0x3b88ee,_0x216145=new ParentSegmentValidateCommand(),_0x24932f=program[_0x1743c9(0x164)](),_0x9caad8=await createTDXInstance(_0x24932f),_0x36c3df=await _0x216145[_0x1743c9(0x303)]({'options':{..._0x24932f,..._0x2a7be9},'args':_0x405c51?[_0x405c51]:[],'tdx':_0x9caad8});process[_0x1743c9(0x139)](_0x36c3df);}),parentCmd['command'](a2_0x3b88ee(0x17e))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x21c))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x26b),a2_0x3b88ee(0x242))['option'](a2_0x3b88ee(0x1db),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x227),a2_0x3b88ee(0x1b8))['option'](a2_0x3b88ee(0x219),a2_0x3b88ee(0x22f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2db),a2_0x3b88ee(0x27e),a2_0x3b88ee(0x2d8))[a2_0x3b88ee(0x2b5)](async(_0x8a6d06,_0x277ffe)=>{const _0x3b1db1=a2_0x3b88ee,_0x3d50f2=new ParentSegmentPreviewCommand(),_0x18cd2a=program[_0x3b1db1(0x164)](),_0x585ead=await createTDXInstance(_0x18cd2a),_0x172497=await _0x3d50f2[_0x3b1db1(0x303)]({'options':{..._0x18cd2a,..._0x277ffe},'args':_0x8a6d06?[_0x8a6d06]:[],'tdx':_0x585ead});process[_0x3b1db1(0x139)](_0x172497);}),parentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1ca))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),'Skip\x20confirmation\x20prompt')[a2_0x3b88ee(0x2b5)](async(_0x8247c5,_0x5cfad4)=>{const _0x4808a9=a2_0x3b88ee,_0x551dce=new ParentSegmentRunCommand(),_0x5de0e3=program[_0x4808a9(0x164)](),_0xffe7cf=await createTDXInstance(_0x5de0e3),_0x502a19=await _0x551dce[_0x4808a9(0x303)]({'options':{..._0x5de0e3,..._0x5cfad4},'args':_0x8247c5?[_0x8247c5]:[],'tdx':_0xffe7cf});process[_0x4808a9(0x139)](_0x502a19);});const parentSegmentCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1f5))[a2_0x3b88ee(0x2f0)]('ps')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x209));parentSegmentCmd['command']('list\x20[pattern]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0xe6))['action'](parentListAction),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x178))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2c6))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xf7),a2_0x3b88ee(0x1fd))[a2_0x3b88ee(0x245)]('-y,\x20--yes',a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x15e),a2_0x3b88ee(0xfb))[a2_0x3b88ee(0x2b5)](async(_0x39e39f,_0x37ce29)=>{const _0x1b89c8=a2_0x3b88ee,_0x2cc985=new ParentSegmentPullCommand(),_0xeb4c0=program['opts'](),_0x242b51=await createTDXInstance(_0xeb4c0),_0x5ef350=await _0x2cc985[_0x1b89c8(0x303)]({'options':{..._0xeb4c0,..._0x37ce29},'args':_0x39e39f?[_0x39e39f]:[],'tdx':_0x242b51});process[_0x1b89c8(0x139)](_0x5ef350);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x318))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x292))['option'](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x2b5)](async(_0x1e41c9,_0x18cf70)=>{const _0x3da3e2=a2_0x3b88ee,_0x359e39=new ParentSegmentPushCommand(),_0x1bfd5b=program['opts'](),_0x1d0bf8=await createTDXInstance(_0x1bfd5b),_0x173bbe=await _0x359e39[_0x3da3e2(0x303)]({'options':{..._0x1bfd5b,..._0x18cf70},'args':_0x1e41c9?[_0x1e41c9]:[],'tdx':_0x1d0bf8});process[_0x3da3e2(0x139)](_0x173bbe);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x159))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2dd))[a2_0x3b88ee(0x245)]('--master',a2_0x3b88ee(0xea))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1db),a2_0x3b88ee(0x140))[a2_0x3b88ee(0x245)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x219),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2db),a2_0x3b88ee(0x27e),a2_0x3b88ee(0x2d8))[a2_0x3b88ee(0x2b5)](async(_0x1c7c35,_0x33fd70)=>{const _0x341525=a2_0x3b88ee,_0x14503e=new ParentSegmentValidateCommand(),_0xf94cad=program[_0x341525(0x164)](),_0x18774c=await createTDXInstance(_0xf94cad),_0x34b3c8=await _0x14503e[_0x341525(0x303)]({'options':{..._0xf94cad,..._0x33fd70},'args':_0x1c7c35?[_0x1c7c35]:[],'tdx':_0x18774c});process[_0x341525(0x139)](_0x34b3c8);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1e4))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x21c))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x26b),a2_0x3b88ee(0x242))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1db),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x3b88ee(0x245)]('--behavior\x20[name]',a2_0x3b88ee(0x1b8))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x219),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2db),a2_0x3b88ee(0x27e),a2_0x3b88ee(0x2d8))[a2_0x3b88ee(0x2b5)](async(_0x3d9e39,_0x67280)=>{const _0x69aa7f=a2_0x3b88ee,_0x231b23=new ParentSegmentPreviewCommand(),_0x816a93=program['opts'](),_0x526065=await createTDXInstance(_0x816a93),_0xee6c4e=await _0x231b23[_0x69aa7f(0x303)]({'options':{..._0x816a93,..._0x67280},'args':_0x3d9e39?[_0x3d9e39]:[],'tdx':_0x526065});process[_0x69aa7f(0x139)](_0xee6c4e);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1ca))[a2_0x3b88ee(0x183)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x2b5)](async(_0x1bcdc1,_0x28140e)=>{const _0x250755=a2_0x3b88ee,_0x3df1fc=new ParentSegmentRunCommand(),_0x4d41f1=program[_0x250755(0x164)](),_0x598ebc=await createTDXInstance(_0x4d41f1),_0x2dc8f5=await _0x3df1fc[_0x250755(0x303)]({'options':{..._0x4d41f1,..._0x28140e},'args':_0x1bcdc1?[_0x1bcdc1]:[],'tdx':_0x598ebc});process['exit'](_0x2dc8f5);}),parentSegmentCmd[a2_0x3b88ee(0x25d)]('fields\x20[name]')[a2_0x3b88ee(0x183)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x191),a2_0x3b88ee(0x272))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x298),a2_0x3b88ee(0x1b0))[a2_0x3b88ee(0x2b5)](async(_0x5339d3,_0x25bd8b)=>{const _0x3470e7=a2_0x3b88ee,_0x1465b4=new ParentSegmentFieldsCommand(),_0x1201c8=program['opts'](),_0x324143=await createTDXInstance(_0x1201c8),_0x53e077=await _0x1465b4[_0x3470e7(0x303)]({'options':{..._0x1201c8,..._0x25bd8b},'args':_0x5339d3?[_0x5339d3]:[],'tdx':_0x324143});process[_0x3470e7(0x139)](_0x53e077);}),parentSegmentCmd[a2_0x3b88ee(0x25d)]('view\x20[name]')['description'](a2_0x3b88ee(0x299))['option'](a2_0x3b88ee(0x221),'Open\x20parent\x20segment\x20in\x20web\x20browser')['option'](a2_0x3b88ee(0x191),a2_0x3b88ee(0x272))[a2_0x3b88ee(0x245)]('--jsonl',a2_0x3b88ee(0x1b0))[a2_0x3b88ee(0x2b5)](async(_0x21ec38,_0x349f96)=>{const _0x370da0=a2_0x3b88ee,_0x47a69d=new ParentSegmentViewCommand(),_0x309cfb=program[_0x370da0(0x164)](),_0x4f3da8=await createTDXInstance(_0x309cfb),_0x1bbec6=await _0x47a69d[_0x370da0(0x303)]({'options':{..._0x309cfb,..._0x349f96},'args':_0x21ec38?[_0x21ec38]:[],'tdx':_0x4f3da8});process[_0x370da0(0x139)](_0x1bbec6);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x195))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x143))[a2_0x3b88ee(0x245)]('--json','Output\x20as\x20JSON')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x298),a2_0x3b88ee(0x1b0))[a2_0x3b88ee(0x2b5)](async(_0x4a0e54,_0x4a1e1e)=>{const _0x5c2810=a2_0x3b88ee,_0x502c89=new ParentSegmentDescCommand(),_0x5b9c69=program[_0x5c2810(0x164)](),_0x1bdbcd=await createTDXInstance(_0x5b9c69),_0x1f5856=await _0x502c89[_0x5c2810(0x303)]({'options':{..._0x5b9c69,..._0x4a1e1e},'args':_0x4a0e54?[_0x4a0e54]:[],'tdx':_0x1bdbcd});process[_0x5c2810(0x139)](_0x1f5856);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x30a))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x256))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x191),a2_0x3b88ee(0x272))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x298),a2_0x3b88ee(0x1b0))[a2_0x3b88ee(0x2b5)](async(_0x38a7c9,_0xbafb88)=>{const _0x25b5a4=a2_0x3b88ee,_0x240efd=new ParentSegmentSQLCommand(),_0xff367=program['opts'](),_0x19c1aa=await createTDXInstance(_0xff367),_0x674fac=await _0x240efd[_0x25b5a4(0x303)]({'options':{..._0xff367,..._0xbafb88},'args':_0x38a7c9?[_0x38a7c9]:[],'tdx':_0x19c1aa});process[_0x25b5a4(0x139)](_0x674fac);}),parentSegmentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x217))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x12c))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1c5),a2_0x3b88ee(0x2ec))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x191),a2_0x3b88ee(0x272))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x298),a2_0x3b88ee(0x1b0))[a2_0x3b88ee(0x2b5)](async(_0x31f883,_0x6b8b59)=>{const _0x53de90=a2_0x3b88ee,_0x44e86b=new ParentSegmentShowCommand(),_0x4e6b0b=program[_0x53de90(0x164)](),_0x24406a=await createTDXInstance(_0x4e6b0b),_0x2b3064=await _0x44e86b[_0x53de90(0x303)]({'options':{..._0x4e6b0b,..._0x6b8b59},'args':_0x31f883?[_0x31f883]:[],'tdx':_0x24406a});process[_0x53de90(0x139)](_0x2b3064);}),parentSegmentCmd['command']('use\x20[name]')['description']('Set\x20or\x20show\x20parent\x20segment\x20context')['action'](async(_0x3f82cd,_0x83d87c)=>{const _0x32d1e1=a2_0x3b88ee,_0x19a23d=new UseCommand(),_0x45a393=program[_0x32d1e1(0x164)](),_0x5068d0=_0x3f82cd?[_0x32d1e1(0x294),_0x3f82cd]:[],_0xec0093=await _0x19a23d['run']({'options':{..._0x45a393,..._0x83d87c},'args':_0x5068d0,'tdx':null});process[_0x32d1e1(0x139)](_0xec0093);}),parentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x311))['description'](a2_0x3b88ee(0x17b))[a2_0x3b88ee(0x247)](a2_0x3b88ee(0x2fd),a2_0x3b88ee(0x29d))[a2_0x3b88ee(0x247)](a2_0x3b88ee(0x269),'Master\x20table\x20name')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x14f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x177),'Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3b88ee(0x245)]('--schedule-option\x20<value>',a2_0x3b88ee(0x1a4))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x23d),a2_0x3b88ee(0x2b3))[a2_0x3b88ee(0x245)]('--attributes\x20<json>',a2_0x3b88ee(0x148))['option']('--attributes-file\x20<file>',a2_0x3b88ee(0x1e7))[a2_0x3b88ee(0x245)]('--behaviors\x20<json>',a2_0x3b88ee(0xf0))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x244),a2_0x3b88ee(0x226))[a2_0x3b88ee(0x245)]('--customer-group\x20<json>','Customer\x20group\x20as\x20JSON\x20string')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1ac),a2_0x3b88ee(0x147))[a2_0x3b88ee(0x2b5)](async(_0xb19f78,_0x1772f5)=>{const _0x97efe9=a2_0x3b88ee,_0x49e5d1=new ParentSegmentCreateCommand(),_0x369d65=program[_0x97efe9(0x164)](),_0x1b5294=await createTDXInstance(_0x369d65),_0x17a814=await _0x49e5d1['run']({'options':{..._0x369d65,..._0x1772f5},'args':[_0xb19f78],'tdx':_0x1b5294});process['exit'](_0x17a814);}),parentCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11f))[a2_0x3b88ee(0x183)]('[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x3b88ee(0x245)]('--description\x20<text>',a2_0x3b88ee(0x166))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x177),'Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')['option'](a2_0x3b88ee(0x105),a2_0x3b88ee(0x2ad))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x23d),a2_0x3b88ee(0x1cf))['option'](a2_0x3b88ee(0x1be),a2_0x3b88ee(0x1d9))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x30f),a2_0x3b88ee(0x180))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x29e),a2_0x3b88ee(0x16d))[a2_0x3b88ee(0x245)]('--add-behaviors-file\x20<file>','Add\x20behaviors\x20from\x20JSON\x20file')[a2_0x3b88ee(0x2b5)](async(_0x609ffc,_0x421edf)=>{const _0x5616f6=a2_0x3b88ee,_0x94180d=new ParentSegmentUpdateCommand(),_0x20ad6b=program[_0x5616f6(0x164)](),_0x17c3f0=await createTDXInstance(_0x20ad6b),_0x21dfc7=await _0x94180d['run']({'options':{..._0x20ad6b,..._0x421edf},'args':[_0x609ffc],'tdx':_0x17c3f0});process[_0x5616f6(0x139)](_0x21dfc7);}),folderCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x181))['description']('Create\x20segment\x20folder')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x276))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x102),a2_0x3b88ee(0x132))[a2_0x3b88ee(0x2b5)](async(_0x5c6707,_0x26dfe1,_0x439405)=>{const _0x4b5d23=a2_0x3b88ee,_0x581dc8=new SegmentFolderCreateCommand(),_0x47fb67=program[_0x4b5d23(0x164)](),_0x213f23=await createTDXInstance(_0x47fb67),_0x1586a1=await _0x581dc8[_0x4b5d23(0x303)]({'options':{..._0x47fb67,..._0x439405},'args':[_0x5c6707,_0x26dfe1],'tdx':_0x213f23});process[_0x4b5d23(0x139)](_0x1586a1);}),program['command'](a2_0x3b88ee(0x165))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1ea))[a2_0x3b88ee(0x2b5)](async(_0x5d3a3a,_0x43bf1e)=>{const _0x56ff56=a2_0x3b88ee,_0x2fec2d=new ActivationsCommand(),_0x2b87b7=program[_0x56ff56(0x164)](),_0x4fc0fe=await createTDXInstance(_0x2b87b7),_0x58cfd8=await _0x2fec2d[_0x56ff56(0x303)]({'options':{..._0x2b87b7,..._0x43bf1e},'args':[_0x5d3a3a],'tdx':_0x4fc0fe});process['exit'](_0x58cfd8);});const workflowCmd=program['command']('workflow')[a2_0x3b88ee(0x2f0)]('wf')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0xd1)),wfProjectCmd=workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x266))[a2_0x3b88ee(0x183)]('Workflow\x20project\x20management'),wfProjectListAction=async(_0x128c60,_0x12dbb0)=>{const _0x284bdd=a2_0x3b88ee,_0x1e0e65=new WorkflowProjectsCommand(),_0x4152c7=program[_0x284bdd(0x164)](),_0xb8c61a=await createTDXInstance(_0x4152c7),_0x3e403c=await _0x1e0e65[_0x284bdd(0x303)]({'options':{..._0x4152c7,..._0x12dbb0},'args':_0x128c60?[_0x128c60]:[],'tdx':_0xb8c61a});process['exit'](_0x3e403c);};wfProjectCmd['command'](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x238))[a2_0x3b88ee(0x2b5)](wfProjectListAction),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xd9))['description']('List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x48f8e7,_0x399164)=>{const _0x369dc9=a2_0x3b88ee,_0x5e5386=new WorkflowWorkflowsCommand(),_0x14df62=program['opts'](),_0x3d4a0c=await createTDXInstance(_0x14df62),_0x180f7e=await _0x5e5386[_0x369dc9(0x303)]({'options':{..._0x14df62,..._0x399164},'args':_0x48f8e7?[_0x48f8e7]:[],'tdx':_0x3d4a0c});process[_0x369dc9(0x139)](_0x180f7e);};workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2de))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x223))[a2_0x3b88ee(0x2b5)](wfWorkflowListAction);const wfSessionCmd=workflowCmd['command'](a2_0x3b88ee(0x2f2))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0xff)),wfSessionListAction=async(_0x160ccd,_0x3d2611)=>{const _0x13bb54=a2_0x3b88ee,_0x51e9a5=new WorkflowSessionsCommand(),_0x17836f=program[_0x13bb54(0x164)](),_0x2bb215=await createTDXInstance(_0x17836f),_0x2732c7=await _0x51e9a5[_0x13bb54(0x303)]({'options':{..._0x17836f,..._0x3d2611},'args':_0x160ccd?[_0x160ccd]:[],'tdx':_0x2bb215});process[_0x13bb54(0x139)](_0x2732c7);};wfSessionCmd['command'](a2_0x3b88ee(0x1ef))['description'](a2_0x3b88ee(0x184))['option'](a2_0x3b88ee(0x2c8),a2_0x3b88ee(0xfa))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2a4),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x154),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3b88ee(0x2b5)](wfSessionListAction),workflowCmd['command'](a2_0x3b88ee(0x258))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x282))[a2_0x3b88ee(0x245)]('--status\x20<status>',a2_0x3b88ee(0xfa))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2a4),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x154),a2_0x3b88ee(0x23b))[a2_0x3b88ee(0x2b5)](wfSessionListAction);const wfAttemptListAction=async(_0x146175,_0x10ef6a)=>{const _0xa67bd8=a2_0x3b88ee,_0x2e4231=new WorkflowAttemptsCommand(),_0x1dcdd4=program[_0xa67bd8(0x164)](),_0x432f04=await createTDXInstance(_0x1dcdd4),_0x5c4815=await _0x2e4231[_0xa67bd8(0x303)]({'options':{..._0x1dcdd4,..._0x10ef6a},'args':_0x146175?[_0x146175]:[],'tdx':_0x432f04});process[_0xa67bd8(0x139)](_0x5c4815);},attemptCmd=workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2c4))[a2_0x3b88ee(0x183)]('Workflow\x20attempt\x20management')[a2_0x3b88ee(0xef)]('[attempt-id]','Attempt\x20ID')['argument'](a2_0x3b88ee(0x157),a2_0x3b88ee(0x2ff))[a2_0x3b88ee(0xef)](a2_0x3b88ee(0x23c),a2_0x3b88ee(0x224))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x110),a2_0x3b88ee(0x15a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2bf),a2_0x3b88ee(0x1b6))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xe9),a2_0x3b88ee(0x104))[a2_0x3b88ee(0x245)]('--params\x20<json>',a2_0x3b88ee(0xd7))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1ee),a2_0x3b88ee(0x253))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x285),a2_0x3b88ee(0x1fe))[a2_0x3b88ee(0x2b5)](async(_0x36079e,_0xa5b6ee,_0x366324,_0x299840)=>{const _0x31ae7b=a2_0x3b88ee;if(_0x36079e===_0x31ae7b(0x16a)){await wfAttemptListAction(_0xa5b6ee,_0x299840);return;}if(!_0x36079e){attemptCmd['help']();return;}const _0x40969e=program[_0x31ae7b(0x164)](),_0x1a39f1=await createTDXInstance(_0x40969e);let _0x21a2d5=0x0;if(!_0xa5b6ee){const _0xd6cb16=new WorkflowAttemptCommand();_0x21a2d5=await _0xd6cb16['run']({'options':{..._0x40969e,..._0x299840},'args':[_0x36079e],'tdx':_0x1a39f1});}else{if(_0xa5b6ee===_0x31ae7b(0x144)){const _0x526f66=new WorkflowLogsCommand();_0x21a2d5=await _0x526f66['run']({'options':{..._0x40969e,..._0x299840},'args':_0x366324?[_0x36079e,_0x366324]:[_0x36079e],'tdx':_0x1a39f1});}else{if(_0xa5b6ee===_0x31ae7b(0x15f)){const _0x48ea85=new WorkflowTasksCommand();_0x21a2d5=await _0x48ea85[_0x31ae7b(0x303)]({'options':{..._0x40969e,..._0x299840},'args':[_0x36079e],'tdx':_0x1a39f1});}else{if(_0xa5b6ee===_0x31ae7b(0x295)){const _0x50b4cf=new WorkflowKillCommand();_0x21a2d5=await _0x50b4cf[_0x31ae7b(0x303)]({'options':{..._0x40969e,..._0x299840},'args':[_0x36079e],'tdx':_0x1a39f1});}else{if(_0xa5b6ee===_0x31ae7b(0xfe)){const _0x38a668=new WorkflowRetryCommand();_0x21a2d5=await _0x38a668[_0x31ae7b(0x303)]({'options':{..._0x40969e,..._0x299840},'args':[_0x31ae7b(0x15b)+_0x36079e],'tdx':_0x1a39f1});}else console[_0x31ae7b(0x293)](_0x31ae7b(0x29c)+_0xa5b6ee),console[_0x31ae7b(0x293)](_0x31ae7b(0x265)),_0x21a2d5=0x1;}}}}process['exit'](_0x21a2d5);});attemptCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1ef))['description'](a2_0x3b88ee(0x18e))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x285),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x3b88ee(0x25d)]('attempts\x20[project]')['description']('List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)')['option'](a2_0x3b88ee(0x285),a2_0x3b88ee(0x1f9))[a2_0x3b88ee(0x2b5)](wfAttemptListAction),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x179))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2b6))[a2_0x3b88ee(0x245)]('--follow',a2_0x3b88ee(0xe8))[a2_0x3b88ee(0x245)]('--session-id\x20<id>',a2_0x3b88ee(0x19e))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x274),'Show\x20timeline\x20for\x20specific\x20attempt')[a2_0x3b88ee(0x2b5)](async(_0x4b7774,_0x114a80)=>{const _0x2c50ae=a2_0x3b88ee,_0x12081b=new WorkflowTimelineCommand(),_0x3628fc=program[_0x2c50ae(0x164)](),_0xda3a6e=await createTDXInstance(_0x3628fc),_0x205129=await _0x12081b[_0x2c50ae(0x303)]({'options':{..._0x3628fc,..._0x114a80},'args':_0x4b7774?[_0x4b7774]:[],'tdx':_0xda3a6e});process[_0x2c50ae(0x139)](_0x205129);}),workflowCmd['command'](a2_0x3b88ee(0x22c))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x267))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x10f),'Resume\x20from\x20specific\x20task')[a2_0x3b88ee(0x245)]('--params\x20<json>','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x3b88ee(0x2b5)](async(_0x31801d,_0xb94918)=>{const _0x16ceb1=a2_0x3b88ee,_0x2f2572=new WorkflowRetryCommand(),_0xa4e993=program['opts'](),_0x56f2e2=await createTDXInstance(_0xa4e993),_0x3b1ef7=await _0x2f2572[_0x16ceb1(0x303)]({'options':{..._0xa4e993,..._0xb94918},'args':[_0x31801d],'tdx':_0x56f2e2});process[_0x16ceb1(0x139)](_0x3b1ef7);}),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x254))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2ce))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x153),a2_0x3b88ee(0x1eb),(_0x194650,_0x4a2cf9=[])=>[..._0x4a2cf9,_0x194650],[])[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xe7),a2_0x3b88ee(0x2c9))[a2_0x3b88ee(0x2b5)](async(_0x765f15,_0x5854bd)=>{const _0x153032=a2_0x3b88ee,_0x5d79d8=new WorkflowRunCommand(),_0x4d1cab=program[_0x153032(0x164)](),_0x48a46c=await createTDXInstance(_0x4d1cab),_0x37b9f4=await _0x5d79d8[_0x153032(0x303)]({'options':{..._0x4d1cab,..._0x5854bd},'args':_0x765f15?[_0x765f15]:[],'tdx':_0x48a46c});process[_0x153032(0x139)](_0x37b9f4);}),workflowCmd['command'](a2_0x3b88ee(0x208))['description'](a2_0x3b88ee(0x1d8))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x286),a2_0x3b88ee(0x108))[a2_0x3b88ee(0x2b5)](async(_0x43bd48,_0x35ad75,_0x2e5864)=>{const _0x1b0fad=a2_0x3b88ee,_0x59ea47=new WorkflowDownloadCommand(),_0x23686b=program[_0x1b0fad(0x164)](),_0x449ebf=await createTDXInstance(_0x23686b),_0x15b3c2=await _0x59ea47[_0x1b0fad(0x303)]({'options':{..._0x23686b,..._0x2e5864},'args':[_0x43bd48,_0x35ad75||'.'],'tdx':_0x449ebf});process[_0x1b0fad(0x139)](_0x15b3c2);}),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x25b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x216))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x286),'Pull\x20specific\x20revision\x20(default:\x20latest)')['option'](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x1ba))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))['action'](async(_0x4bb609,_0x5a710a,_0x3e3570)=>{const _0x10c9db=a2_0x3b88ee,_0x20baf3=new WorkflowPullCommand(),_0x14080e=program[_0x10c9db(0x164)](),_0x17128d=await createTDXInstance(_0x14080e),_0x30e95c=await _0x20baf3[_0x10c9db(0x303)]({'options':{..._0x14080e,..._0x3e3570},'args':_0x5a710a?[_0x4bb609,_0x5a710a]:[_0x4bb609],'tdx':_0x17128d});process[_0x10c9db(0x139)](_0x30e95c);}),workflowCmd[a2_0x3b88ee(0x25d)]('push\x20[source-dir]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x18c))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x286),a2_0x3b88ee(0x2e4))[a2_0x3b88ee(0x245)]('--dry-run','Preview\x20changes\x20without\x20pushing')[a2_0x3b88ee(0x245)]('--skip-validation',a2_0x3b88ee(0x120))[a2_0x3b88ee(0x245)]('-y,\x20--yes',a2_0x3b88ee(0x2cb))['action'](async(_0x2e627b,_0x53281e)=>{const _0x37521e=a2_0x3b88ee,_0x2d97a4=new WorkflowPushCommand(),_0x2e8ab4=program[_0x37521e(0x164)](),_0x418e47=await createTDXInstance(_0x2e8ab4),_0x21214d=await _0x2d97a4[_0x37521e(0x303)]({'options':{..._0x2e8ab4,..._0x53281e},'args':_0x2e627b?[_0x2e627b]:[],'tdx':_0x418e47});process[_0x37521e(0x139)](_0x21214d);}),workflowCmd[a2_0x3b88ee(0x25d)]('upload\x20[project-name-or-dir]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1ce))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x196),a2_0x3b88ee(0x1c6))['option']('--revision\x20<revision>','Revision\x20name\x20(default:\x20timestamp)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1bd),a2_0x3b88ee(0x120))[a2_0x3b88ee(0x2b5)](async(_0x53cbc3,_0x526550)=>{const _0x52df47=a2_0x3b88ee,_0x955528=new WorkflowUploadCommand(),_0x8e76ec=program['opts'](),_0x576799=await createTDXInstance(_0x8e76ec),_0x1c941e=await _0x955528[_0x52df47(0x303)]({'options':{..._0x8e76ec,..._0x526550},'args':_0x53cbc3?[_0x53cbc3]:[],'tdx':_0x576799});process['exit'](_0x1c941e);}),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2a9))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x199))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x196),a2_0x3b88ee(0x206))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x286),a2_0x3b88ee(0x2e4))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x1c3))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1bd),a2_0x3b88ee(0x120))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))['action'](async(_0x7d08f4,_0x50e5f4)=>{const _0xf5a929=a2_0x3b88ee,_0x28c980=new WorkflowCloneCommand(),_0x2530aa=program['opts'](),_0x5e01f=await createTDXInstance(_0x2530aa),_0x35bfde=await _0x28c980[_0xf5a929(0x303)]({'options':{..._0x2530aa,..._0x50e5f4},'args':_0x7d08f4?[_0x7d08f4]:[],'tdx':_0x5e01f});process[_0xf5a929(0x139)](_0x35bfde);}),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x317))['description'](a2_0x3b88ee(0x2ed))[a2_0x3b88ee(0x2b5)](async(_0x4e5e57,_0x8f57d8)=>{const _0x12c9bd=a2_0x3b88ee,_0x44ae68=new WorkflowDeleteCommand(),_0x3c5e8c=program[_0x12c9bd(0x164)](),_0x2cf96c=await createTDXInstance(_0x3c5e8c),_0x3b1117=await _0x44ae68[_0x12c9bd(0x303)]({'options':{..._0x3c5e8c,..._0x8f57d8},'args':[_0x4e5e57],'tdx':_0x2cf96c});process['exit'](_0x3b1117);}),workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x21a))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x126))[a2_0x3b88ee(0x245)]('--clear','Clear\x20workflow\x20project\x20context')[a2_0x3b88ee(0x2b5)](async(_0x3606e9,_0x4f90d4)=>{const _0x4e42d6=a2_0x3b88ee,_0x4588d3=new WorkflowUseCommand(),_0x3c17be=program[_0x4e42d6(0x164)](),_0x12577f=await createTDXInstance(_0x3c17be),_0x59bda7=await _0x4588d3['run']({'options':{..._0x3c17be,..._0x4f90d4},'args':_0x3606e9?[_0x3606e9]:[],'tdx':_0x12577f});process[_0x4e42d6(0x139)](_0x59bda7);});const wfSecretsCmd=workflowCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1e1))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x24c));wfSecretsCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1ef))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1bf))[a2_0x3b88ee(0x2b5)](async(_0x3f7512,_0x2f3488)=>{const _0x2fd041=a2_0x3b88ee,_0x55f132=new WorkflowSecretsListCommand(),_0x20df41=program[_0x2fd041(0x164)](),_0x10a394=await createTDXInstance(_0x20df41),_0x4d6226=await _0x55f132[_0x2fd041(0x303)]({'options':{..._0x20df41,..._0x2f3488},'args':_0x3f7512?[_0x3f7512]:[],'tdx':_0x10a394});process[_0x2fd041(0x139)](_0x4d6226);}),wfSecretsCmd['command'](a2_0x3b88ee(0x289))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x16b))['action'](async(_0xc1d616,_0x3f67d7)=>{const _0x3d3299=new WorkflowSecretsSetCommand(),_0x33634b=program['opts'](),_0xaecff4=await createTDXInstance(_0x33634b),_0x5a449f=await _0x3d3299['run']({'options':{..._0x33634b,..._0x3f67d7},'args':_0xc1d616,'tdx':_0xaecff4});process['exit'](_0x5a449f);}),wfSecretsCmd['command'](a2_0x3b88ee(0x243))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x16f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x2b5)](async(_0x866b2b,_0x14edbd)=>{const _0x4b2bc2=a2_0x3b88ee,_0x1f24ff=new WorkflowSecretsDeleteCommand(),_0x4f10f2=program[_0x4b2bc2(0x164)](),_0x3e2760=await createTDXInstance(_0x4f10f2),_0x52634f=await _0x1f24ff[_0x4b2bc2(0x303)]({'options':{..._0x4f10f2,..._0x14edbd},'args':_0x866b2b,'tdx':_0x3e2760});process[_0x4b2bc2(0x139)](_0x52634f);});const jobCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x14b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x24b)),jobListAction=async _0x3b6109=>{const _0xed4b5b=a2_0x3b88ee,_0x495853=new JobListCommand(),_0x5966c6=program[_0xed4b5b(0x164)](),_0xf1a7f1=await createTDXInstance(_0x5966c6),_0x32d6f9=await _0x495853[_0xed4b5b(0x303)]({'options':{..._0x5966c6,..._0x3b6109},'args':[],'tdx':_0xf1a7f1});process[_0xed4b5b(0x139)](_0x32d6f9);};jobCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x16a))[a2_0x3b88ee(0x183)]('List\x20jobs')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2c8),a2_0x3b88ee(0x2cc))['action'](jobListAction),program['command'](a2_0x3b88ee(0xdf),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1b5))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2c8),a2_0x3b88ee(0x2cc))[a2_0x3b88ee(0x2b5)](jobListAction),jobCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x22b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x240))[a2_0x3b88ee(0x2b5)](async(_0x91f7a8,_0x41dcc9)=>{const _0x44a4f1=a2_0x3b88ee,_0xb59d73=new JobShowCommand(),_0x930238=program[_0x44a4f1(0x164)](),_0x3f9197=await createTDXInstance(_0x930238),_0x143ade=await _0xb59d73['run']({'options':{..._0x930238,..._0x41dcc9},'args':[_0x91f7a8],'tdx':_0x3f9197});process[_0x44a4f1(0x139)](_0x143ade);}),jobCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x301))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x26f))[a2_0x3b88ee(0x2b5)](async(_0x4d7034,_0x5094b8)=>{const _0x53754b=a2_0x3b88ee,_0x23ec32=new JobKillCommand(),_0x55421c=program['opts'](),_0x49ff1e=await createTDXInstance(_0x55421c),_0x1bae33=await _0x23ec32[_0x53754b(0x303)]({'options':{..._0x55421c,..._0x5094b8},'args':[_0x4d7034],'tdx':_0x49ff1e});process[_0x53754b(0x139)](_0x1bae33);}),jobCmd['command'](a2_0x3b88ee(0x255))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x134))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2b1),a2_0x3b88ee(0x2be),'trino')[a2_0x3b88ee(0x245)]('-f,\x20--file\x20<path>','Read\x20query\x20from\x20file')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2e1),a2_0x3b88ee(0x1f6),a2_0x3b88ee(0x123))[a2_0x3b88ee(0x2b5)](async(_0x3b3e6b,_0x4e6b25)=>{const _0x157f17=a2_0x3b88ee,_0x3600ab=new JobSubmitCommand(),_0x57f80e=program[_0x157f17(0x164)](),_0x3a4d9f=await createTDXInstance(_0x57f80e),_0x43db88=await _0x3600ab['run']({'options':{..._0x57f80e,..._0x4e6b25},'args':_0x3b3e6b?[_0x3b3e6b]:[],'tdx':_0x3a4d9f});process[_0x157f17(0x139)](_0x43db88);}),jobCmd['command'](a2_0x3b88ee(0xda))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x103))[a2_0x3b88ee(0x2b5)](async(_0x35b113,_0x9b2b60)=>{const _0x488571=a2_0x3b88ee,_0x523aac=new JobResultCommand(),_0x9981a7=program['opts'](),_0x4840a6=await createTDXInstance(_0x9981a7),_0x862e30=await _0x523aac[_0x488571(0x303)]({'options':{..._0x9981a7,..._0x9b2b60},'args':[_0x35b113],'tdx':_0x4840a6});process[_0x488571(0x139)](_0x862e30);});const llmCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xce))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x192));function a2_0x22c4(){const _0x4c949a=['Reason\x20for\x20killing\x20the\x20attempt','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Create\x20a\x20new\x20LLM\x20project','Preview\x20changes\x20without\x20writing\x20files','info\x20[segment_name]','Run\x20Trino\x20query\x20with\x20streaming\x20results','--skip-validation','--add-attributes\x20<json>','List\x20secret\x20keys\x20for\x20a\x20project','--llm-proxy\x20[url]','\x20-\x20built\x20','Campaign\x20name','Preview\x20without\x20creating\x20the\x20project','database','--limit\x20<n>','Override\x20project\x20name','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','remove\x20<name>','2524014wLnlBP','run\x20[name]','use\x20<name>','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','Updated\x20timezone','Show\x20email\x20template\x20details','User\x20management\x20commands','Workspace\x20management','pull\x20[project]\x20[agent-name]','--starter-message\x20<text>','Resume\x20a\x20paused\x20campaign','subcommandTerm','Move\x20to\x20folder','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','Add\x20attributes\x20as\x20JSON\x20string','4954775GgWSUP','--attribute\x20[name]','duplicate\x20<name-or-id>','aliases','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','-d,\x20--database\x20<database>','secrets','JSON\x20columns\x20for\x20connector\x20(comma-separated)','update\x20<name-or-id>','preview\x20[name]','Show\x20stats\x20for\x20specific\x20stage','after','Attributes\x20from\x20JSON\x20file','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','--llm-project\x20<name>','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Workflow\x20parameter\x20(repeatable)','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Email\x20sender\x20ID\x20for\x20delivery','--force','list\x20[project]','Database\x20to\x20use\x20(overrides\x20context)','--description\x20<text>','--version','addHelpText','name','parent-segment','Database\x20name\x20(default:\x20information_schema)','options','campaigns\x20[pattern]','Include\x20retried\x20attempts','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','--invisible','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','Output\x20file\x20path','Include\x20retried\x20attempts\x20(for\x20list)','repeat','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','Preview\x20operation\x20without\x20executing','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','New\x20campaign\x20name','Template\x20name','Campaign\x20type\x20(email\x20or\x20push)','Name\x20for\x20the\x20new\x20project\x20(required)','Setup\x20API\x20key\x20authentication\x20interactively','download\x20<project-name>\x20[output-dir]','Parent\x20segment\x20management','Agent\x20description','Enable\x20verbose\x20logging','Remove\x20API\x20key\x20from\x20system\x20keychain','isTTY','colorFn','Plaintext\x20template\x20content','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','pause\x20<name-or-path>','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Validate\x20journey\x20YAML\x20files\x20locally','validate\x20[target]','--plaintext\x20<text>','Pull\x20workflow\x20project\x20to\x20local\x20folder','show\x20[name]','tsv','--enriched','use\x20[project]','Push\x20local\x20agent\x20files\x20to\x20LLM\x20project','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','-r,\x20--resume','show\x20[segment_name]','310lUXPMq','List\x20all\x20data\x20connections','-w,\x20--web','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','Task\x20name\x20for\x20logs\x20action','update\x20<segment_name>','Behaviors\x20from\x20JSON\x20file','--behavior\x20[name]','stats\x20<name-or-path>','0.7','Delete\x20a\x20campaign','show\x20<job-id>','retry\x20<session-id>','list\x20[path]','us01','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--workspace\x20<name>','commands','--name\x20<text>','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x0a\x20\x20tdx\x20claude\x20--llm-proxy\x20http://localhost:8080\x20\x20Use\x20custom\x20proxy\x20URL\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','update\x20<agent-name>','Directory\x20does\x20not\x20exist:\x20','Show\x20the\x20most\x20recent\x20chat','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','Update\x20an\x20existing\x20agent','End\x20time\x20filter\x20(ISO\x208601\x20format)','[task-name]','--timezone\x20<tz>','Delete\x20an\x20LLM\x20project','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','Show\x20job\x20details','New\x20workspace\x20name','Show\x20master\x20table\x20sample\x20data','delete\x20<args...>','--behaviors-file\x20<file>','option','--session\x20<id>','requiredOption','--segment\x20<path>','--stage\x20<name>','LLM\x20agent\x20management','Job\x20management\x20commands','Manage\x20workflow\x20project\x20secrets','journey','stderr','Show\x20segment\x20details\x20(alias\x20for\x20view)','Database\x20to\x20query\x20(default:\x20information_schema)','log','CDP\x20Journey\x20Orchestration\x20commands','Force\x20retry\x20even\x20if\x20not\x20failed','run\x20[workflow]','submit\x20[query]','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','argv','sessions\x20[project]','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','INFO','pull\x20<project>\x20[target-dir]','agent','command','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','New\x20template\x20name','Export\x20journey(s)\x20as\x20YAML\x20files','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','describe','4000','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','project','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','--table\x20<table>','--no-count-population','--master','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','createAsync','Save\x20output\x20to\x20file','Kill\x20a\x20job','directory','statusline','Output\x20as\x20JSON','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--attempt-id\x20<id>','-C,\x20--directory\x20<path>','Folder\x20description','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','Read\x20SQL\x20query\x20from\x20file','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','clone\x20[source]','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Include\x20execution\x20statistics','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','Database\x20management\x20commands','Interactive\x20chat\x20selector','agents\x20[pattern]','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','List\x20all\x20users\x20in\x20the\x20account','isArray','--include-retried','--revision\x20<revision>','\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','Clear\x20session\x20context','set\x20<args...>','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','-o,\x20--output\x20<dir>','--trace','HTML\x20template\x20content','includes','Create\x20a\x20new\x20profile','flatMap','Describe\x20table\x20schema','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','error','parent_segment','kill','--no-color','[options]\x20--\x20[claude-code-args...]','--jsonl','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','filter','create\x20[name]','Unknown\x20action:\x20','Master\x20database\x20name','--add-behaviors\x20<json>','--model\x20<name>','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','gitRevision','json','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','--from\x20<timestamp>','Show\x20workspace\x20details','--table','debug','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','clone\x20[source-dir]','delete\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Updated\x20schedule\x20option','models','--limit\x20<rows>','--delete','--job-type\x20<type>','site','Timezone\x20(e.g.,\x20America/Los_Angeles)','Authentication\x20management','action','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','List\x20all\x20available\x20profiles','forEach','LLM\x20project\x20management','apiKey','proxy','-o,\x20--output\x20<folder>','tdx\x20','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--reason\x20<text>','optionDescription','Path\x20is\x20not\x20a\x20directory:\x20','map','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','attempt','Show\x20agent\x20details','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','commandDescription','--status\x20<status>','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','\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','Skip\x20confirmation\x20prompt','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Continue\x20most\x20recent\x20conversation','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','--in\x20<database>','push','show\x20<name-or-id>','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','GET','use\x20[resource]\x20[value]','profiles','Campaign\x20management','Filtering\x20rule\x20as\x20JSON\x20string','-1d','Show\x20authentication\x20status\x20and\x20validate\x20API\x20key','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','--interval\x20<range>','noColor','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','workflows\x20[project]','Email\x20template\x20management','Workspace\x20description','--database\x20<name>','clear','--system-prompt\x20<text>','Custom\x20revision\x20name\x20(default:\x20timestamp)','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Options:','Starter\x20message','Alias\x20for\x20--database\x20(natural\x20language\x20style)','10166264YlbUqx','Table\x20management\x20commands','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Limit\x20number\x20of\x20rows','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','types','alias','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','session','parents\x20[pattern]','Output\x20folder\x20(default:\x20{project_name}.llm)','-r,\x20--recursive','--timeout\x20<seconds>','subcommandDescription','claude-4.5-sonnet','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','--json-columns\x20<cols>','\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','--database\x20<db>','stdout','Action:\x20logs,\x20tasks,\x20kill,\x20retry','New\x20segment\x20name','kill\x20<job-id>','isDirectory','run','catch','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','Update\x20an\x20email\x20template','--email-sender-id\x20<id>','28574qoQWNt','padWidth','sql\x20[name]','join','delete\x20<name>','user','Show\x20campaign\x20details','--add-attributes-file\x20<file>','--type\x20<api_type>','create\x20<name>','Workspace\x20name\x20(required)','--output\x20<file>','required','profile','push\x20[file]','delete\x20<project-name-or-id>','push\x20[name]','INVALID_ARGUMENT','help','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','Push\x20without\x20confirmation','--name\x20<new_name>','llm','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Workflow\x20(Digdag)\x20management\x20commands','set','template','Remove\x20a\x20profile','argumentDescription','show\x20<agent-name>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--format\x20<format>','projects\x20[pattern]','result\x20<job-id>','Output\x20file\x20path\x20(default:\x20<name>.yml)','history\x20[chat-id]','Delete\x20a\x20workspace','--start-at\x20<datetime>','jobs','--max-depth\x20<depth>','1080820NtCyBi','-n,\x20--name\x20<name>','Resume\x20a\x20conversation\x20(shows\x20selector)','9bbSPyG','9xslIiQ','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','--session-time\x20<time>','Follow/watch\x20timeline\x20for\x20running\x20attempts','--resume-from\x20<task>','Show\x20only\x20master\x20table\x20validation','--dry-run','push\x20[path]','sonnet','allowExcessArguments','argument','Behaviors\x20as\x20JSON\x20string','--description\x20<desc>','Folder\x20name\x20for\x20organization','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Create\x20a\x20workspace','Arguments:','-o,\x20--output\x20<file>','--name\x20<new-name>','chats','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','Agent\x20name','chdir','retry','Workflow\x20session\x20management','Project\x20description','--subject\x20<subject>','--parent-folder\x20<name>','Get\x20job\x20results','Resume\x20from\x20specific\x20task\x20(retry)','--schedule-option\x20<value>','Show\x20journey\x20details','campaign','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','slice','--in\x20<name>','launch\x20<name-or-id>','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','-p,\x20--profile\x20<name>','--from-task\x20<task>','--include-subtasks','Email\x20subject\x20template','replace','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','LLM\x20project\x20to\x20use\x20(overrides\x20context)','-y,\x20--yes','settings\x20<type>','Workspace\x20name','logLevel','Set\x20a\x20profile\x20configuration\x20value','--no-proxy','list\x20[pattern]','--data\x20<data>','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','update\x20<name>','Skip\x20validation\x20of\x20.dig\x20files','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','optionTerm','information_schema','--site\x20<site>','hidden','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','Pause\x20a\x20campaign','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Open\x20journey\x20in\x20web\x20browser','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','show\x20[table]','Skip\x20confirmation\x20prompts','DEBUG','folder','Parent\x20folder\x20name\x20for\x20nested\x20folders','journeys\x20[pattern]','Submit\x20a\x20job','-f,\x20--file\x20<path>','segments\x20[path]','Read\x20request\x20body\x20from\x20file','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','exit','segment','setup','jsonl',',\x20version\x20','Show\x20connection\x20details\x20by\x20name','--include-stats','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','Request\x20body\x20as\x20JSON\x20string','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','logs','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','use\x20<project-name>','Customer\x20group\x20from\x20JSON\x20file','Attributes\x20as\x20JSON\x20string','1388732cTYmpN','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','job','--html\x20<html>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','buildTime','Parent\x20segment\x20description','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','desc','--param\x20<key=value>','--to\x20<timestamp>','connections','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','[action]','\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','validate\x20[name]','Include\x20subtasks\x20in\x20tasks\x20output','attempt:','injectIntoOptions','Campaign\x20description','-u,\x20--use','tasks','1177363rXaech','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','--max-tool-iterations\x20<n>','opts','activations\x20<segment_name>','Updated\x20description','Make\x20segment\x20invisible\x20(default:\x20visible)','Show\x20segment\x20schema\x20(column\x20types)','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','list','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','--yes','Add\x20behaviors\x20as\x20JSON\x20string','table','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','--prompt\x20<text>','-c,\x20--continue','show\x20<folder_ref>','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','workspace','--schedule-type\x20<type>','pull\x20[name]','timeline\x20[project.workflow]','Segment\x20description','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','workspaces\x20[pattern]','--folder\x20<name>','preview\x20[file]','Commands:','Add\x20attributes\x20from\x20JSON\x20file','create\x20<parent_name>\x20<folder_name>','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','description','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','pull\x20[parent_or_file]','padEnd','tdx','--rule\x20<json>','registeredArguments','delete\x20<agent-name>','port','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','--new','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','--port\x20<number>','-f,\x20--force','--json','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','length','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','desc\x20[name]','--name\x20<name>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','-H,\x20--header\x20<header>','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','schema\x20<type>','use\x20<path>','pause\x20<name-or-id>','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','--type\x20<type>','restore\x20<folder>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','format','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','System\x20prompt/instructions\x20(default:\x20empty)','-d,\x20--database\x20<name>','49DmXriH','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','outputHelp','List\x20journeys\x20in\x20current\x20context','fields\x20[parent_name]','--customer-group-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','query\x20[sql]','Output\x20as\x20JSON\x20Lines','Maximum\x20tool\x20iterations\x20(default:\x204)','summary','create','Start\x20a\x20new\x20chat\x20session','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)'];a2_0x22c4=function(){return _0x4c949a;};return a2_0x22c4();}llmCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x146))[a2_0x3b88ee(0x183)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3b88ee(0x2b5)](async(_0x40943a,_0x4819ba)=>{const _0x5d2fa8=a2_0x3b88ee,_0xcf416=new LLMUseCommand(),_0x396289=program[_0x5d2fa8(0x164)](),_0x23a5ba=await createTDXInstance(_0x396289),_0x325c8b=await _0xcf416[_0x5d2fa8(0x303)]({'options':{..._0x396289,..._0x4819ba},'args':[_0x40943a],'tdx':_0x23a5ba});process[_0x5d2fa8(0x139)](_0x325c8b);}),llmCmd['command'](a2_0x3b88ee(0x2ae))['description']('List\x20available\x20LLM\x20models')[a2_0x3b88ee(0x2b5)](async _0x20c2a9=>{const _0xa6ba54=a2_0x3b88ee,_0x49b1ea=new LLMModelsCommand(),_0x18bb9f=program[_0xa6ba54(0x164)](),_0x2506e9=await createTDXInstance(_0x18bb9f),_0x5e6c4c=await _0x49b1ea[_0xa6ba54(0x303)]({'options':{..._0x18bb9f,..._0x20c2a9},'args':[],'tdx':_0x2506e9});process[_0xa6ba54(0x139)](_0x5e6c4c);});const projectCmd=llmCmd['command']('project')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2b9)),llmProjectListAction=async(_0x55360a,_0x407c9e)=>{const _0x1d4b56=a2_0x3b88ee,_0x5f4c23=new LLMProjectsCommand(),_0x4aad2e=program[_0x1d4b56(0x164)](),_0x59676c=await createTDXInstance(_0x4aad2e),_0x130d85=await _0x5f4c23[_0x1d4b56(0x303)]({'options':{..._0x4aad2e,..._0x407c9e},'args':_0x55360a?[_0x55360a]:[],'tdx':_0x59676c});process['exit'](_0x130d85);};projectCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x156))[a2_0x3b88ee(0x2b5)](llmProjectListAction),llmCmd['command']('projects\x20[pattern]')[a2_0x3b88ee(0x183)]('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x3b88ee(0x2b5)](llmProjectListAction),projectCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x311))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1b9))['option'](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x100))[a2_0x3b88ee(0x2b5)](async(_0x5403e5,_0x4e60cc)=>{const _0xfcb94d=a2_0x3b88ee,_0x1b7cf1=new LLMProjectCreateCommand(),_0x4d425f=program['opts'](),_0x5697e1=await createTDXInstance(_0x4d425f),_0x19c38a=await _0x1b7cf1[_0xfcb94d(0x303)]({'options':{..._0x4d425f,..._0x4e60cc},'args':[_0x5403e5],'tdx':_0x5697e1});process[_0xfcb94d(0x139)](_0x19c38a);}),projectCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x30c))['description'](a2_0x3b88ee(0x23e))[a2_0x3b88ee(0x2b5)](async(_0x5d053d,_0x5f20b0)=>{const _0x17ec6c=a2_0x3b88ee,_0x12d3ba=new LLMProjectDeleteCommand(),_0x2a07e7=program[_0x17ec6c(0x164)](),_0x2d8616=await createTDXInstance(_0x2a07e7),_0x46042b=await _0x12d3ba[_0x17ec6c(0x303)]({'options':{..._0x2a07e7,..._0x5f20b0},'args':[_0x5d053d],'tdx':_0x2d8616});process['exit'](_0x46042b);}),projectCmd[a2_0x3b88ee(0x25d)]('backup\x20<name>')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x121))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2bc),a2_0x3b88ee(0x2f4))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),'Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files')['action'](async(_0x37f0e0,_0x5db84d)=>{const _0xc96515=a2_0x3b88ee,_0x5ba034=new LLMProjectBackupCommand(),_0x201dc8=program[_0xc96515(0x164)](),_0x3c278c=await createTDXInstance(_0x201dc8),_0x400471=await _0x5ba034[_0xc96515(0x303)]({'options':{..._0x201dc8,..._0x5db84d},'args':[_0x37f0e0],'tdx':_0x3c278c});process[_0xc96515(0x139)](_0x400471);}),projectCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1a0))[a2_0x3b88ee(0x183)]('[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)')['option'](a2_0x3b88ee(0xf8),a2_0x3b88ee(0x278))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x151))[a2_0x3b88ee(0x2b5)](async(_0x572113,_0x2010eb)=>{const _0xf4d818=a2_0x3b88ee,_0x49a628=new LLMProjectRestoreCommand(),_0x471c66=program['opts'](),_0x9a371b=await createTDXInstance(_0x471c66),_0x17e875=await _0x49a628['run']({'options':{..._0x471c66,..._0x2010eb},'args':[_0x572113],'tdx':_0x9a371b});process[_0xf4d818(0x139)](_0x17e875);});const llmAgentListAction=async(_0x42d0d2,_0x3a6613)=>{const _0x8bea4=a2_0x3b88ee,_0x1ef6b5=new LLMAgentsCommand(),_0x527bd9=program[_0x8bea4(0x164)](),_0x4cb378=await createTDXInstance(_0x527bd9),_0x457163=await _0x1ef6b5[_0x8bea4(0x303)]({'options':{..._0x527bd9,..._0x3a6613},'args':_0x42d0d2?[_0x42d0d2]:[],'tdx':_0x4cb378});process[_0x8bea4(0x139)](_0x457163);};llmCmd['command']('agents\x20[pattern]')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x264))['action'](llmAgentListAction),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x281))[a2_0x3b88ee(0x183)]('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')[a2_0x3b88ee(0x2b5)](llmAgentListAction),llmCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xdc))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1a1))[a2_0x3b88ee(0x245)]('--last',a2_0x3b88ee(0x113))[a2_0x3b88ee(0x2b5)](async(_0x202d78,_0x1693e7)=>{const _0x3dac7b=a2_0x3b88ee,_0x5a355c=new LLMHistoryCommand(),_0x12e37a=program[_0x3dac7b(0x164)](),_0x4854ca=await createTDXInstance(_0x12e37a),_0x503e86=await _0x5a355c['run']({'options':{..._0x12e37a,..._0x1693e7},'args':_0x202d78?[_0x202d78]:[],'tdx':_0x4854ca});process[_0x3dac7b(0x139)](_0x503e86);}),llmCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2bb))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x200))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x18f),a2_0x3b88ee(0x268),a2_0x3b88ee(0x263))[a2_0x3b88ee(0x245)]('--project\x20<name>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)')[a2_0x3b88ee(0x245)]('--agent\x20<name>',a2_0x3b88ee(0xcf))[a2_0x3b88ee(0x2b5)](async _0x276ebf=>{const _0x3bd70d=a2_0x3b88ee,_0x374599=new LLMProxyCommand(),_0x341f9c=program['opts'](),_0x4fdf62=await createTDXInstance(_0x341f9c),_0x35a336={..._0x276ebf,'port':_0x276ebf[_0x3bd70d(0x18b)]?parseInt(_0x276ebf[_0x3bd70d(0x18b)],0xa):undefined},_0x33bcff=await _0x374599[_0x3bd70d(0x303)]({'options':{..._0x341f9c,..._0x35a336},'args':[],'tdx':_0x4fdf62});process[_0x3bd70d(0x139)](_0x33bcff);}),program['command']('claude\x20[args...]')['usage'](a2_0x3b88ee(0x297))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x173))[a2_0x3b88ee(0x245)]('--model\x20<name>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)',a2_0x3b88ee(0xed))['option'](a2_0x3b88ee(0x171),a2_0x3b88ee(0x2cd))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x21d),a2_0x3b88ee(0xe3))['option'](a2_0x3b88ee(0x11a),'Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1c0),a2_0x3b88ee(0x162))['allowUnknownOption']()[a2_0x3b88ee(0xee)](!![])['addHelpText'](a2_0x3b88ee(0x1e6),a2_0x3b88ee(0x233))[a2_0x3b88ee(0x2b5)](async(_0x2e4abd,_0x488ded)=>{const _0xb5716c=a2_0x3b88ee,_0x5a2cb3=program[_0xb5716c(0x164)](),_0x249d85=Array[_0xb5716c(0x284)](_0x2e4abd)?_0x2e4abd:[];if(_0x249d85[0x0]===_0xb5716c(0x271)){const _0x125687=new ClaudeStatuslineCommand(),_0x4519ca=await _0x125687[_0xb5716c(0x303)]({'options':{..._0x5a2cb3,..._0x488ded},'args':_0x249d85['slice'](0x1),'tdx':null});process[_0xb5716c(0x139)](_0x4519ca);}if(_0x249d85[0x0]==='usage'){const _0x483255=new ClaudeUsageCommand(),_0x4b9f3e=await _0x483255['run']({'options':{..._0x5a2cb3,..._0x488ded},'args':_0x249d85[_0xb5716c(0x10a)](0x1),'tdx':null});process[_0xb5716c(0x139)](_0x4b9f3e);}const _0x512500=new ClaudeCommand(),_0x13adef=await createTDXInstance(_0x5a2cb3),_0x50ea84=await _0x512500[_0xb5716c(0x303)]({'options':{..._0x5a2cb3,..._0x488ded},'args':_0x249d85,'tdx':_0x13adef});process[_0xb5716c(0x139)](_0x50ea84);}),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2d4))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1ae))['option']('--clear',a2_0x3b88ee(0x288))['action'](async(_0x38c2e4,_0x4cec1f,_0x2af1ec)=>{const _0x1d7a0b=a2_0x3b88ee,_0x350f9a=new UseCommand(),_0x1b87d2=program['opts'](),_0x242221=[];if(_0x38c2e4)_0x242221[_0x1d7a0b(0x2d0)](_0x38c2e4);if(_0x4cec1f)_0x242221[_0x1d7a0b(0x2d0)](_0x4cec1f);const _0x59b3f2=await _0x350f9a[_0x1d7a0b(0x303)]({'options':{..._0x1b87d2,..._0x2af1ec},'args':_0x242221,'tdx':null});process[_0x1d7a0b(0x139)](_0x59b3f2);}),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xf9))['description'](a2_0x3b88ee(0x280))[a2_0x3b88ee(0x245)]('--last',a2_0x3b88ee(0x236))['action'](async _0x42abd0=>{const _0x4a5515=a2_0x3b88ee,_0x36c5f8=new ChatsCommand(),_0x1978f0=program['opts'](),_0x35d9e9=await createTDXInstance(_0x1978f0),_0x50bcc6=await _0x36c5f8[_0x4a5515(0x303)]({'options':{..._0x1978f0,..._0x42abd0},'args':[],'tdx':_0x35d9e9});process['exit'](_0x50bcc6);});const authCmd=program[a2_0x3b88ee(0x25d)]('auth')['description'](a2_0x3b88ee(0x2b4));async function runAuthStatusCommand(_0x214f0c){const _0x4fb787=a2_0x3b88ee,_0x327c1c=new AuthStatusCommand(),_0x18c23d=program[_0x4fb787(0x164)](),_0x4cea77=await createTDXInstance(_0x18c23d),_0x5de235=await _0x327c1c['run']({'options':{..._0x18c23d,..._0x214f0c},'args':[],'tdx':_0x4cea77});process[_0x4fb787(0x139)](_0x5de235);}authCmd[a2_0x3b88ee(0x2b5)](runAuthStatusCommand),authCmd[a2_0x3b88ee(0x25d)]('status')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2d9))[a2_0x3b88ee(0x2b5)](runAuthStatusCommand),authCmd['command'](a2_0x3b88ee(0x13b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x207))[a2_0x3b88ee(0x1f3)](a2_0x3b88ee(0x1e6),a2_0x3b88ee(0x2fc))[a2_0x3b88ee(0x2b5)](async _0x3cc650=>{const _0x569be3=a2_0x3b88ee,_0x166612=new AuthSetupCommand(),_0xf02d7c=program['opts'](),_0x28a58c=await createTDXInstance(_0xf02d7c),_0xeacf89=await _0x166612[_0x569be3(0x303)]({'options':{..._0xf02d7c,..._0x3cc650},'args':[],'tdx':_0x28a58c});process[_0x569be3(0x139)](_0xeacf89);}),authCmd['command'](a2_0x3b88ee(0x2e2))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x20c))['addHelpText'](a2_0x3b88ee(0x1e6),a2_0x3b88ee(0x2ca))[a2_0x3b88ee(0x2b5)](async _0x39df28=>{const _0x51d18b=a2_0x3b88ee,_0x2947c5=new AuthClearCommand(),_0x52577c=program[_0x51d18b(0x164)](),_0x1a079a=await _0x2947c5[_0x51d18b(0x303)]({'options':{..._0x52577c,..._0x39df28},'args':[],'tdx':null});process[_0x51d18b(0x139)](_0x1a079a);});const userCmd=program['command'](a2_0x3b88ee(0x30d))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1d1)),userListAction=async _0x4ab84e=>{const _0x308e86=a2_0x3b88ee,_0x3113f6=new UserListCommand(),_0x4a227f=program[_0x308e86(0x164)](),_0x309665=await createTDXInstance(_0x4a227f),_0x5684fb=await _0x3113f6[_0x308e86(0x303)]({'options':{..._0x4a227f,..._0x4ab84e},'args':[],'tdx':_0x309665});process[_0x308e86(0x139)](_0x5684fb);};userCmd[a2_0x3b88ee(0x2b5)](async _0x14b11c=>{const _0x1cc30b=new UserCommand(),_0x79d884=program['opts'](),_0xb42ea4=await createTDXInstance(_0x79d884),_0x5ba797=await _0x1cc30b['run']({'options':{..._0x79d884,..._0x14b11c},'args':[],'tdx':_0xb42ea4});process['exit'](_0x5ba797);}),userCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x16a))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x283))[a2_0x3b88ee(0x2b5)](userListAction),program[a2_0x3b88ee(0x25d)]('users')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2da))[a2_0x3b88ee(0x2b5)](userListAction),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2d5))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2b7))[a2_0x3b88ee(0x2b5)](async _0x1f0733=>{const _0x4d6e24=a2_0x3b88ee,_0x108df7=new ProfilesCommand(),_0x48ed9d=program[_0x4d6e24(0x164)](),_0x46641b=await _0x108df7[_0x4d6e24(0x303)]({'options':{..._0x48ed9d,..._0x1f0733},'args':[],'tdx':null});process[_0x4d6e24(0x139)](_0x46641b);});const profileCmd=program['command']('profile')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2f9));profileCmd[a2_0x3b88ee(0x2b5)](()=>{const _0x1af319=a2_0x3b88ee;profileCmd[_0x1af319(0x1a9)]();});const profileListAction=async _0x23432d=>{const _0x4fb985=a2_0x3b88ee,_0x2bdbf2=new ProfilesCommand(),_0x28d533=program[_0x4fb985(0x164)](),_0x42ec02=await _0x2bdbf2[_0x4fb985(0x303)]({'options':{..._0x28d533,..._0x23432d},'args':[],'tdx':null});process[_0x4fb985(0x139)](_0x42ec02);};profileCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x16a))['description'](a2_0x3b88ee(0x2b7))[a2_0x3b88ee(0x2b5)](profileListAction),profileCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x29b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x28f))[a2_0x3b88ee(0x1f3)]('after',a2_0x3b88ee(0x287))[a2_0x3b88ee(0x2b5)](async(_0x5ddb3c,_0x236f55)=>{const _0x45590=a2_0x3b88ee,_0x592e0a=new ProfileCreateCommand(),_0x10d1f9=program[_0x45590(0x164)](),_0x7c67dc=await _0x592e0a[_0x45590(0x303)]({'options':{..._0x10d1f9,..._0x236f55},'args':_0x5ddb3c?[_0x5ddb3c]:[],'tdx':null});process['exit'](_0x7c67dc);}),profileCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1c8))['description'](a2_0x3b88ee(0xd4))[a2_0x3b88ee(0x1f3)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')[a2_0x3b88ee(0x2b5)](async(_0x35d972,_0x40940d)=>{const _0xfc5c0d=a2_0x3b88ee,_0x3e96b5=new ProfileRemoveCommand(),_0x122d20=program['opts'](),_0x2743dc=await _0x3e96b5[_0xfc5c0d(0x303)]({'options':{..._0x122d20,..._0x40940d},'args':[_0x35d972],'tdx':null});process[_0xfc5c0d(0x139)](_0x2743dc);}),profileCmd[a2_0x3b88ee(0x25d)]('set\x20<key=value>')['description'](a2_0x3b88ee(0x119))['addHelpText'](a2_0x3b88ee(0x1e6),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x3b88ee(0x2b5)](async(_0x11d2b9,_0x267da5)=>{const _0x19ca11=a2_0x3b88ee,_0x1bba9c=new ProfileSetCommand(),_0x16c40b=program[_0x19ca11(0x164)](),_0x5d2f9c=await _0x1bba9c[_0x19ca11(0x303)]({'options':{..._0x16c40b,..._0x267da5},'args':[_0x11d2b9],'tdx':null});process['exit'](_0x5d2f9c);}),profileCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1cb))[a2_0x3b88ee(0x183)]('Set\x20session\x20profile')[a2_0x3b88ee(0x1f3)](a2_0x3b88ee(0x1e6),'\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a')[a2_0x3b88ee(0x2b5)](async(_0x4bb20f,_0x381c0b)=>{const _0x5bc4aa=a2_0x3b88ee,_0x45e850=new ProfileUseCommand(),_0x460f11=program['opts'](),_0x452ebe=await _0x45e850[_0x5bc4aa(0x303)]({'options':{..._0x460f11,..._0x381c0b},'args':[_0x4bb20f],'tdx':null});process['exit'](_0x452ebe);});const engageCmd=program[a2_0x3b88ee(0x25d)]('engage')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2f1)),createEngageAction=_0x350bb7=>{return async(_0x19a911,_0x3d44d4)=>{const _0x398978=a2_0x1591,_0x5c922e=new _0x350bb7(),_0xd01d9b=program['opts'](),_0x18448=await createTDXInstance(_0xd01d9b),_0x3f19f8=await _0x5c922e[_0x398978(0x303)]({'options':{..._0xd01d9b,..._0x3d44d4},'args':[_0x19a911],'tdx':_0x18448});process['exit'](_0x3f19f8);};},createEngageNoArgAction=_0x4d890d=>{return async _0x1a41d4=>{const _0x37eb90=a2_0x1591,_0x5510cf=new _0x4d890d(),_0x20ceca=program[_0x37eb90(0x164)](),_0x2a286f=await createTDXInstance(_0x20ceca),_0x211bd1=await _0x5510cf[_0x37eb90(0x303)]({'options':{..._0x20ceca,..._0x1a41d4},'args':[],'tdx':_0x2a286f});process['exit'](_0x211bd1);};},campaignCmd=engageCmd['command'](a2_0x3b88ee(0x107))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2d6)),campaignListAction=async(_0xed046e,_0x490458)=>{const _0x28a86e=a2_0x3b88ee,_0x971498=new EngageCampaignsCommand(),_0x37537d=program['opts'](),_0x3e99e1=await createTDXInstance(_0x37537d),_0x2cd172=await _0x971498[_0x28a86e(0x303)]({'options':{..._0x37537d,..._0x490458},'args':_0xed046e?[_0xed046e]:[],'tdx':_0x3e99e1});process[_0x28a86e(0x139)](_0x2cd172);};campaignCmd['command'](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x202))['option'](a2_0x3b88ee(0x19f),a2_0x3b88ee(0xcb))['option'](a2_0x3b88ee(0x2c8),a2_0x3b88ee(0x25e))['option'](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x2b5)](campaignListAction),engageCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1f8))['description'](a2_0x3b88ee(0x145))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x19f),a2_0x3b88ee(0xcb))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2c8),a2_0x3b88ee(0x25e))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))['action'](campaignListAction),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2d1))['description'](a2_0x3b88ee(0x30e))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x245)]('--full',a2_0x3b88ee(0x197))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1b3))['description']('Create\x20a\x20new\x20campaign')['requiredOption']('--name\x20<name>',a2_0x3b88ee(0x1c2))[a2_0x3b88ee(0x247)](a2_0x3b88ee(0x19f),a2_0x3b88ee(0x205))[a2_0x3b88ee(0x245)]('--workspace\x20<name>',a2_0x3b88ee(0x312))[a2_0x3b88ee(0x245)]('--description\x20<desc>',a2_0x3b88ee(0x15d))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x248),a2_0x3b88ee(0x150))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x307),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2fb),a2_0x3b88ee(0x1e2))[a2_0x3b88ee(0x245)]('--start-at\x20<datetime>',a2_0x3b88ee(0x2a8))[a2_0x3b88ee(0x245)]('--timezone\x20<tz>','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x3b88ee(0x2b5)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1e3))['description']('Update\x20a\x20campaign')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))['option'](a2_0x3b88ee(0x196),a2_0x3b88ee(0x203))['option'](a2_0x3b88ee(0xf1),a2_0x3b88ee(0x15d))['option'](a2_0x3b88ee(0x248),a2_0x3b88ee(0x150))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x307),a2_0x3b88ee(0x1ed))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2fb),a2_0x3b88ee(0x1e2))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xde),a2_0x3b88ee(0x2a8))['option'](a2_0x3b88ee(0x23d),a2_0x3b88ee(0x129))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2aa))['description'](a2_0x3b88ee(0x22a))['option'](a2_0x3b88ee(0x230),'Workspace\x20name')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x16c),a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x10c))[a2_0x3b88ee(0x183)]('Launch\x20a\x20campaign')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),'Workspace\x20name')[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x19c))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x128))['option'](a2_0x3b88ee(0x230),'Workspace\x20name')[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3b88ee(0x25d)]('resume\x20<name-or-id>')['description'](a2_0x3b88ee(0x1d5))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1dc))[a2_0x3b88ee(0x183)]('Duplicate\x20a\x20campaign')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))['action'](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xd3))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2df)),templateListAction=async(_0x54e2e4,_0x3348ab)=>{const _0x289884=a2_0x3b88ee,_0x21712d=new EngageTemplatesCommand(),_0x1b09a2=program[_0x289884(0x164)](),_0x1d6ac2=await createTDXInstance(_0x1b09a2),_0x1ea662=await _0x21712d[_0x289884(0x303)]({'options':{..._0x1b09a2,..._0x3348ab},'args':_0x54e2e4?[_0x54e2e4]:[],'tdx':_0x1d6ac2});process[_0x289884(0x139)](_0x1ea662);};templateCmd['command'](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x27a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x2b5)](templateListAction),engageCmd['command']('templates\x20[pattern]')[a2_0x3b88ee(0x183)]('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))['action'](templateListAction),templateCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2d1))['description'](a2_0x3b88ee(0x1d0))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x245)]('--full',a2_0x3b88ee(0x197))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1b3))[a2_0x3b88ee(0x183)]('Create\x20an\x20email\x20template')[a2_0x3b88ee(0x247)]('--name\x20<name>',a2_0x3b88ee(0x204))[a2_0x3b88ee(0x247)](a2_0x3b88ee(0x101),a2_0x3b88ee(0x111))['requiredOption'](a2_0x3b88ee(0x14c),a2_0x3b88ee(0x28d))[a2_0x3b88ee(0x245)]('--workspace\x20<name>',a2_0x3b88ee(0x312))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x215),a2_0x3b88ee(0x20f))[a2_0x3b88ee(0x245)]('--editor-type\x20<type>','Editor\x20type')['action'](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x3b88ee(0x1e3))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x306))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x230),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x196),a2_0x3b88ee(0x25f))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x101),a2_0x3b88ee(0x111))['option'](a2_0x3b88ee(0x14c),'HTML\x20template\x20content')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x215),'Plaintext\x20template\x20content')[a2_0x3b88ee(0x2b5)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2aa))[a2_0x3b88ee(0x183)]('Delete\x20an\x20email\x20template')[a2_0x3b88ee(0x245)]('--workspace\x20<name>','Workspace\x20name')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x16c),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x176))['description'](a2_0x3b88ee(0x1d2)),workspaceListAction=async(_0xd43172,_0x2b0a99)=>{const _0xbd02e8=a2_0x3b88ee,_0x2a45e4=new EngageWorkspacesCommand(),_0x5ddf97=program[_0xbd02e8(0x164)](),_0x37c70c=await createTDXInstance(_0x5ddf97),_0x5b5959=await _0x2a45e4[_0xbd02e8(0x303)]({'options':{..._0x5ddf97,..._0x2b0a99},'args':_0xd43172?[_0xd43172]:[],'tdx':_0x37c70c});process[_0xbd02e8(0x139)](_0x5b5959);};function a2_0x1591(_0x333c6d,_0x5adea9){_0x333c6d=_0x333c6d-0xca;const _0x22c419=a2_0x22c4();let _0x1591fa=_0x22c419[_0x333c6d];return _0x1591fa;}workspaceCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)]('List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3b88ee(0x2b5)](workspaceListAction),engageCmd['command'](a2_0x3b88ee(0x17c))['description'](a2_0x3b88ee(0x14d))[a2_0x3b88ee(0x2b5)](workspaceListAction),workspaceCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2d1))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2a5))['option']('--full',a2_0x3b88ee(0x197))['action'](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1b3))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0xf5))[a2_0x3b88ee(0x247)](a2_0x3b88ee(0x196),a2_0x3b88ee(0x117))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xf1),a2_0x3b88ee(0x2e0))['action'](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x3b88ee(0x25d)]('update\x20<name-or-id>')['description']('Update\x20a\x20workspace')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x196),a2_0x3b88ee(0x241))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xf1),a2_0x3b88ee(0x2e0))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2aa))['description'](a2_0x3b88ee(0xdd))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x16c),a2_0x3b88ee(0x2cb))['action'](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1cb))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x11e))[a2_0x3b88ee(0x2b5)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3b88ee(0x25d)]('connection')[a2_0x3b88ee(0x183)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x34c233=>{const _0x44a74b=a2_0x3b88ee,_0x2bffd2=new ConnectionListCommand(),_0x38480a=program[_0x44a74b(0x164)](),_0x391c24=await createTDXInstance(_0x38480a),_0x531c86=await _0x2bffd2[_0x44a74b(0x303)]({'options':{..._0x38480a,..._0x34c233},'args':[],'tdx':_0x391c24});process['exit'](_0x531c86);};connectionCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x16a))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x220))['action'](connectionListAction),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x155),{'hidden':!![]})[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x239))[a2_0x3b88ee(0x2b5)](connectionListAction),connectionCmd[a2_0x3b88ee(0x25d)]('show\x20<name>')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x13e))[a2_0x3b88ee(0x2b5)](async(_0xb6d9ec,_0x3c0189)=>{const _0x4c0ea7=a2_0x3b88ee,_0x5b55ab=new ConnectionShowCommand(),_0x4f94e8=program[_0x4c0ea7(0x164)](),_0x47d42b=await createTDXInstance(_0x4f94e8),_0x4dc2e9=await _0x5b55ab['run']({'options':{..._0x4f94e8,..._0x3c0189},'args':[_0xb6d9ec],'tdx':_0x47d42b});process[_0x4c0ea7(0x139)](_0x4dc2e9);}),connectionCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x19a))['description']('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x3b88ee(0x2b5)](async(_0x201bd4,_0x4e502d)=>{const _0x13650c=a2_0x3b88ee,_0x17d4e0=new ConnectionSchemaCommand(),_0x490507=program[_0x13650c(0x164)](),_0x4d3d03=await createTDXInstance(_0x490507),_0x126ba3=await _0x17d4e0[_0x13650c(0x303)]({'options':{..._0x490507,..._0x4e502d},'args':[_0x201bd4],'tdx':_0x4d3d03});process['exit'](_0x126ba3);}),connectionCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x2ef))[a2_0x3b88ee(0x183)]('List\x20available\x20connector\x20types')[a2_0x3b88ee(0x2b5)](async _0x2dc1ef=>{const _0x1e7068=a2_0x3b88ee,_0x972dd=new ConnectionTypesCommand(),_0x448055=program['opts'](),_0x36cc01=await createTDXInstance(_0x448055),_0x4ead04=await _0x972dd[_0x1e7068(0x303)]({'options':{..._0x448055,..._0x2dc1ef},'args':[],'tdx':_0x36cc01});process['exit'](_0x4ead04);}),connectionCmd['command'](a2_0x3b88ee(0x116))[a2_0x3b88ee(0x183)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')['action'](async(_0x5dbf9b,_0x1b012a)=>{const _0x53954e=a2_0x3b88ee,_0x2701fa=new ConnectionSettingsCommand(),_0x19ca12=program[_0x53954e(0x164)](),_0x4884c0=await createTDXInstance(_0x19ca12),_0x150863=await _0x2701fa[_0x53954e(0x303)]({'options':{..._0x19ca12,..._0x1b012a},'args':[_0x5dbf9b],'tdx':_0x4884c0});process['exit'](_0x150863);});const journeyCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x24d))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x252)),journeyListAction=async(_0x344801,_0x55aae3)=>{const _0x130295=a2_0x3b88ee,_0x1064b3=new JourneyListCommand(),_0x81449c=program[_0x130295(0x164)](),_0x3566e0=await createTDXInstance(_0x81449c),_0x5b62b6=await _0x1064b3[_0x130295(0x303)]({'options':{..._0x81449c,..._0x55aae3},'args':_0x344801?[_0x344801]:[],'tdx':_0x3566e0});process['exit'](_0x5b62b6);};journeyCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x1aa))[a2_0x3b88ee(0x2b5)](journeyListAction),journeyCmd[a2_0x3b88ee(0x25d)]('view\x20<name-or-path>')[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x106))[a2_0x3b88ee(0x245)]('-w,\x20--web',a2_0x3b88ee(0x12b))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x13f),a2_0x3b88ee(0x27d))[a2_0x3b88ee(0x2b5)](async(_0x42bd9f,_0x362824)=>{const _0x4edee2=a2_0x3b88ee,_0x4cc34d=new JourneyViewCommand(),_0x14d313=program[_0x4edee2(0x164)](),_0x46a9de=await createTDXInstance(_0x14d313),_0x46c4a8=await _0x4cc34d['run']({'options':{..._0x14d313,..._0x362824},'args':[_0x42bd9f],'tdx':_0x46a9de});process[_0x4edee2(0x139)](_0x46c4a8);}),journeyCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x228))[a2_0x3b88ee(0x183)]('Show\x20journey\x20statistics')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x249),a2_0x3b88ee(0x1e5))[a2_0x3b88ee(0x2b5)](async(_0x2be26b,_0x104849)=>{const _0x2952a1=a2_0x3b88ee,_0x53e261=new JourneyStatsCommand(),_0x25f882=program[_0x2952a1(0x164)](),_0xba0789=await createTDXInstance(_0x25f882),_0xd5574b=await _0x53e261['run']({'options':{..._0x25f882,..._0x104849},'args':[_0x2be26b],'tdx':_0xba0789});process[_0x2952a1(0x139)](_0xd5574b);}),journeyCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x211))['description']('Pause\x20a\x20running\x20journey')[a2_0x3b88ee(0x2b5)](async(_0x3283e5,_0x3c58b3)=>{const _0x1e2191=a2_0x3b88ee,_0x5f1a9f=new JourneyPauseCommand(),_0x41b57d=program[_0x1e2191(0x164)](),_0x4d4a1b=await createTDXInstance(_0x41b57d),_0x5e00a3=await _0x5f1a9f[_0x1e2191(0x303)]({'options':{..._0x41b57d,..._0x3c58b3},'args':[_0x3283e5],'tdx':_0x4d4a1b});process['exit'](_0x5e00a3);}),journeyCmd['command']('resume\x20<name-or-path>')[a2_0x3b88ee(0x183)]('Resume\x20a\x20paused\x20journey')[a2_0x3b88ee(0x2b5)](async(_0x3dffd9,_0x55d465)=>{const _0x5626b2=a2_0x3b88ee,_0x259fa8=new JourneyResumeCommand(),_0x5180ee=program[_0x5626b2(0x164)](),_0x5b492d=await createTDXInstance(_0x5180ee),_0x4e1fa7=await _0x259fa8[_0x5626b2(0x303)]({'options':{..._0x5180ee,..._0x55d465},'args':[_0x3dffd9],'tdx':_0x5b492d});process[_0x5626b2(0x139)](_0x4e1fa7);}),journeyCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x178))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x260))['option'](a2_0x3b88ee(0x115),a2_0x3b88ee(0x2cb))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xeb),a2_0x3b88ee(0x273))[a2_0x3b88ee(0x2b5)](async(_0x2dbbf4,_0x3f66fc)=>{const _0x5f0300=a2_0x3b88ee,_0x1c3ebe=new JourneyPullCommand(),_0x39939f=program[_0x5f0300(0x164)](),_0x4849=await createTDXInstance(_0x39939f),_0x2be50f=await _0x1c3ebe[_0x5f0300(0x303)]({'options':{..._0x39939f,..._0x3f66fc},'args':_0x2dbbf4?[_0x2dbbf4]:[],'tdx':_0x4849});process[_0x5f0300(0x139)](_0x2be50f);}),journeyCmd[a2_0x3b88ee(0x25d)]('push\x20[target]')['description'](a2_0x3b88ee(0x23f))['action'](async(_0x5b9125,_0x22292a)=>{const _0x965366=a2_0x3b88ee,_0x3617b6=new JourneyPushCommand(),_0x4e0c1b=program[_0x965366(0x164)](),_0xa5aa87=await createTDXInstance(_0x4e0c1b),_0x42860d=await _0x3617b6[_0x965366(0x303)]({'options':{..._0x4e0c1b,..._0x22292a},'args':_0x5b9125?[_0x5b9125]:[],'tdx':_0xa5aa87});process[_0x965366(0x139)](_0x42860d);}),journeyCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x214))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x213))['action'](async(_0x16910c,_0x318133)=>{const _0x4c422d=a2_0x3b88ee,_0x50e283=new JourneyValidateCommand(),_0x4b1b8b=program[_0x4c422d(0x164)](),_0x6f6985=await createTDXInstance(_0x4b1b8b),_0x51399f=await _0x50e283[_0x4c422d(0x303)]({'options':{..._0x4b1b8b,..._0x318133},'args':_0x16910c?[_0x16910c]:[],'tdx':_0x6f6985});process[_0x4c422d(0x139)](_0x51399f);}),program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x133))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0xf4))['action'](journeyListAction);const agentSyncCmd=program[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x25c))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x24a));agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x1d3))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x161))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x28b),'Output\x20directory')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x190),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x3b88ee(0x2b5)](async(_0x545de3,_0x2363bd,_0x6ddc4f)=>{const _0x4723db=a2_0x3b88ee,_0x41e8a1=new AgentPullCommand(),_0x21b175=program['opts'](),_0x26fd2b=await createTDXInstance(_0x21b175),_0x298970=[];if(_0x545de3)_0x298970[_0x4723db(0x2d0)](_0x545de3);if(_0x2363bd)_0x298970[_0x4723db(0x2d0)](_0x2363bd);const _0xb00d4=await _0x41e8a1['run']({'options':{..._0x21b175,..._0x6ddc4f},'args':_0x298970,'tdx':_0x26fd2b});process[_0x4723db(0x139)](_0xb00d4);}),agentSyncCmd['command'](a2_0x3b88ee(0xec))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x21b))['option'](a2_0x3b88ee(0x190),a2_0x3b88ee(0xcc))['action'](async(_0x4c99bb,_0x42aadb)=>{const _0x2c80f4=a2_0x3b88ee,_0x168cb4=new AgentPushCommand(),_0x2682f0=program[_0x2c80f4(0x164)](),_0x1cae3a=await createTDXInstance(_0x2682f0),_0x352e16=await _0x168cb4[_0x2c80f4(0x303)]({'options':{..._0x2682f0,..._0x42aadb},'args':_0x4c99bb?[_0x4c99bb]:[],'tdx':_0x1cae3a});process[_0x2c80f4(0x139)](_0x352e16);}),agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x27b))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2a0))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0xe2),a2_0x3b88ee(0x206))[a2_0x3b88ee(0x2b5)](async(_0x168a55,_0x278544)=>{const _0x12164a=a2_0x3b88ee,_0x343a72=new AgentCloneCommand(),_0x58ccac=program[_0x12164a(0x164)](),_0x47feca=await createTDXInstance(_0x58ccac),_0x426299=await _0x343a72['run']({'options':{..._0x58ccac,..._0x278544},'args':_0x168a55?[_0x168a55]:[],'tdx':_0x47feca});process[_0x12164a(0x139)](_0x426299);}),agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x11b))[a2_0x3b88ee(0x183)]('List\x20agents\x20in\x20current\x20project')[a2_0x3b88ee(0x2b5)](llmAgentListAction),agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0xd6))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x2c5))[a2_0x3b88ee(0x2b5)](async(_0x39c61d,_0x286025)=>{const _0x5427e2=a2_0x3b88ee,_0x2c1b6a=new LLMAgentShowCommand(),_0x1f503b=program['opts'](),_0x45aa6e=await createTDXInstance(_0x1f503b),_0x282a26=await _0x2c1b6a[_0x5427e2(0x303)]({'options':{..._0x1f503b,..._0x286025},'args':[_0x39c61d],'tdx':_0x45aa6e});process[_0x5427e2(0x139)](_0x282a26);}),agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x311))[a2_0x3b88ee(0x183)](a2_0x3b88ee(0x11d))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x2e3),a2_0x3b88ee(0x1a5))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x29f),'Model\x20type\x20(default:\x20claude-4.5-sonnet)',a2_0x3b88ee(0x2f8))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1d4),a2_0x3b88ee(0x2e7))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x163),a2_0x3b88ee(0x1b1),'4')['option']('--temperature\x20<n>','Temperature\x20(0.0-2.0,\x20default:\x200.7)',a2_0x3b88ee(0x229))['action'](async(_0x3df119,_0x4a152f)=>{const _0x5d5f0e=a2_0x3b88ee,_0x8d0b8f=new LLMAgentCreateCommand(),_0x5de4c4=program[_0x5d5f0e(0x164)](),_0x1238aa=await createTDXInstance(_0x5de4c4),_0x5d8107=await _0x8d0b8f['run']({'options':{..._0x5de4c4,..._0x4a152f},'args':[_0x3df119],'tdx':_0x1238aa});process[_0x5d5f0e(0x139)](_0x5d8107);}),agentSyncCmd[a2_0x3b88ee(0x25d)](a2_0x3b88ee(0x234))['description'](a2_0x3b88ee(0x23a))[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x232),a2_0x3b88ee(0xfc))['option'](a2_0x3b88ee(0x170),'Agent\x20prompt/instructions')[a2_0x3b88ee(0x245)](a2_0x3b88ee(0x1f1),a2_0x3b88ee(0x20a))['option']('--starter-message\x20<text>',a2_0x3b88ee(0x2e7))[a2_0x3b88ee(0x2b5)](async(_0x3fc74e,_0x15e187)=>{const _0x3937fe=a2_0x3b88ee,_0x3b844a=new LLMAgentUpdateCommand(),_0x3e5cf5=program[_0x3937fe(0x164)](),_0xbbdf44=await createTDXInstance(_0x3e5cf5),_0x54a009=await _0x3b844a[_0x3937fe(0x303)]({'options':{..._0x3e5cf5,..._0x15e187},'args':[_0x3fc74e],'tdx':_0xbbdf44});process['exit'](_0x54a009);}),agentSyncCmd['command'](a2_0x3b88ee(0x18a))[a2_0x3b88ee(0x183)]('Delete\x20an\x20agent')[a2_0x3b88ee(0x2b5)](async(_0x7fbca2,_0x538461)=>{const _0x51b1a3=a2_0x3b88ee,_0x15a7fd=new LLMAgentDeleteCommand(),_0x3489d4=program[_0x51b1a3(0x164)](),_0x555420=await createTDXInstance(_0x3489d4),_0x50e597=await _0x15a7fd['run']({'options':{..._0x3489d4,..._0x538461},'args':[_0x7fbca2],'tdx':_0x555420});process[_0x51b1a3(0x139)](_0x50e597);});export{program};export function runCLI(){const _0x3a5ed6=a2_0x3b88ee,_0x2250a8=!process['argv']['slice'](0x2)['length'];showBriefHelp=_0x2250a8,program['parse'](process[_0x3a5ed6(0x257)]),_0x2250a8&&program[_0x3a5ed6(0x1a9)](),process[_0x3a5ed6(0x24e)][_0x3a5ed6(0x20d)]&&process[_0x3a5ed6(0x257)]['length']>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)['then'](_0x52c681=>{_0x52c681&&displayUpdateNotification(_0x52c681);})[_0x3a5ed6(0x304)](()=>{});}