@treasuredata/tdx 0.14.2 → 0.14.4

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 (149) 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.d.ts.map +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-command.js.map +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-command.js +1 -1
  22. package/dist/commands/job-command.js +1 -1
  23. package/dist/commands/journey-command.js +1 -1
  24. package/dist/commands/journey-validate-command.js +1 -1
  25. package/dist/commands/llm-command.js +1 -1
  26. package/dist/commands/llm-proxy.js +1 -1
  27. package/dist/commands/parent-segment-command.js +1 -1
  28. package/dist/commands/profile-command.js +1 -1
  29. package/dist/commands/profiles-command.js +1 -1
  30. package/dist/commands/query-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pull-command.js +1 -1
  35. package/dist/commands/segment-push-command.js +1 -1
  36. package/dist/commands/segment-update-command.js +1 -1
  37. package/dist/commands/segment-use-command.js +1 -1
  38. package/dist/commands/segment-validate-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/tables.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.d.ts +15 -0
  54. package/dist/core/profile.d.ts.map +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/profile.js.map +1 -1
  57. package/dist/core/project-config.js +1 -1
  58. package/dist/core/session.js +1 -1
  59. package/dist/core/user-cache.js +1 -1
  60. package/dist/core/version.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js +1 -1
  63. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  66. package/dist/proxy/context-signature.js +1 -1
  67. package/dist/proxy/conversation-utils.js +1 -1
  68. package/dist/proxy/passthrough-server.d.ts +13 -2
  69. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  70. package/dist/proxy/passthrough-server.js +1 -1
  71. package/dist/proxy/passthrough-server.js.map +1 -1
  72. package/dist/proxy/server.js +1 -1
  73. package/dist/proxy/session-cache.js +1 -1
  74. package/dist/proxy/sse-usage-parser.js +1 -1
  75. package/dist/sdk/agent/agent-config.js +1 -1
  76. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  77. package/dist/sdk/agent/agent-yaml.js +1 -1
  78. package/dist/sdk/api.js +1 -1
  79. package/dist/sdk/client/cdp-api-client.js +1 -1
  80. package/dist/sdk/client/endpoints.js +1 -1
  81. package/dist/sdk/client/engage-api-client.js +1 -1
  82. package/dist/sdk/client/http-client.js +1 -1
  83. package/dist/sdk/client/llm-api-client.js +1 -1
  84. package/dist/sdk/client/rate-limiter.js +1 -1
  85. package/dist/sdk/client/td-api-client.js +1 -1
  86. package/dist/sdk/client/trino-api-client.js +1 -1
  87. package/dist/sdk/client/workflow-client.js +1 -1
  88. package/dist/sdk/connection-validator.js +1 -1
  89. package/dist/sdk/connection.js +1 -1
  90. package/dist/sdk/engage.js +1 -1
  91. package/dist/sdk/errors.js +1 -1
  92. package/dist/sdk/index.js +1 -1
  93. package/dist/sdk/io/index.js +1 -1
  94. package/dist/sdk/io/node-filesystem.js +1 -1
  95. package/dist/sdk/job.js +1 -1
  96. package/dist/sdk/journey.js +1 -1
  97. package/dist/sdk/llm/chat-cache.js +1 -1
  98. package/dist/sdk/llm/index.js +1 -1
  99. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  100. package/dist/sdk/llm/model-aliases.js +1 -1
  101. package/dist/sdk/llm/model-factors.js +1 -1
  102. package/dist/sdk/query/index.js +1 -1
  103. package/dist/sdk/query/sql-parser.js +1 -1
  104. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  105. package/dist/sdk/segment/fields-display.js +1 -1
  106. package/dist/sdk/segment/file-discovery.js +1 -1
  107. package/dist/sdk/segment/journey-utils.js +1 -1
  108. package/dist/sdk/segment/journey-yaml.js +1 -1
  109. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  110. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  111. package/dist/sdk/segment/pull-workflow.js +1 -1
  112. package/dist/sdk/segment/push-workflow.js +1 -1
  113. package/dist/sdk/segment/resolution-context.js +1 -1
  114. package/dist/sdk/segment/segment-path-parser.js +1 -1
  115. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  116. package/dist/sdk/segment/target-resolution.js +1 -1
  117. package/dist/sdk/segment/tdx-config.js +1 -1
  118. package/dist/sdk/segment/validate-files.js +1 -1
  119. package/dist/sdk/segment/yaml-validator.js +1 -1
  120. package/dist/sdk/segment.js +1 -1
  121. package/dist/sdk/types/index.js +1 -1
  122. package/dist/sdk/types/progress.js +1 -1
  123. package/dist/sdk/user.js +1 -1
  124. package/dist/sdk/util/format-detector.js +1 -1
  125. package/dist/sdk/util/formatters.js +1 -1
  126. package/dist/sdk/util/index.js +1 -1
  127. package/dist/sdk/util/tree-formatter.js +1 -1
  128. package/dist/sdk/workflow/clone-workflow.js +1 -1
  129. package/dist/sdk/workflow/index.js +1 -1
  130. package/dist/sdk/workflow/pull-workflow.js +1 -1
  131. package/dist/sdk/workflow/push-workflow.js +1 -1
  132. package/dist/sdk/workflow/tdx-config.js +1 -1
  133. package/dist/sdk/workflow/workflow-utils.js +1 -1
  134. package/dist/utils/async.js +1 -1
  135. package/dist/utils/colors.js +1 -1
  136. package/dist/utils/diff.js +1 -1
  137. package/dist/utils/file-permissions.js +1 -1
  138. package/dist/utils/json-loader.js +1 -1
  139. package/dist/utils/option-validation.js +1 -1
  140. package/dist/utils/port.js +1 -1
  141. package/dist/utils/process.js +1 -1
  142. package/dist/utils/prompt.js +1 -1
  143. package/dist/utils/spinner.js +1 -1
  144. package/dist/utils/sse-parser.js +1 -1
  145. package/dist/utils/string-utils.js +1 -1
  146. package/dist/utils/table-ref-parser.js +1 -1
  147. package/dist/utils/tdx-logger.js +1 -1
  148. package/dist/utils/version-check.js +1 -1
  149. 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_0x3025ae=a2_0x238e;(function(_0x413452,_0x1b5d1e){const _0x26a158=a2_0x238e,_0x20c62c=_0x413452();while(!![]){try{const _0x2a793e=parseInt(_0x26a158(0x234))/0x1*(-parseInt(_0x26a158(0x21a))/0x2)+-parseInt(_0x26a158(0x226))/0x3*(parseInt(_0x26a158(0xed))/0x4)+parseInt(_0x26a158(0x24c))/0x5+-parseInt(_0x26a158(0x2b7))/0x6*(parseInt(_0x26a158(0x1ba))/0x7)+parseInt(_0x26a158(0x189))/0x8+parseInt(_0x26a158(0x256))/0x9+parseInt(_0x26a158(0x260))/0xa*(parseInt(_0x26a158(0x25f))/0xb);if(_0x2a793e===_0x1b5d1e)break;else _0x20c62c['push'](_0x20c62c['shift']());}catch(_0x3735c2){_0x20c62c['push'](_0x20c62c['shift']());}}}(a2_0x58ac,0x4aebc));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';function a2_0x58ac(){const _0x5c089a=['Manage\x20workflow\x20project\x20secrets','duplicate\x20<name-or-id>','Maximum\x20recursion\x20depth\x20(default:\x2010)','exit','\x20-\x20built\x20','--segment\x20<path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Read\x20request\x20body\x20from\x20file','proxy','aliases','Add\x20behaviors\x20as\x20JSON\x20string','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','push\x20[parent_or_file]','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','requiredOption','sql\x20[segment_name]','List\x20jobs','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--type\x20<type>','show\x20[segment_name]','Show\x20only\x20master\x20table\x20validation','LLM\x20project\x20to\x20use\x20(overrides\x20context)','Workspace\x20management','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','Resume\x20from\x20specific\x20task','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','--workspace\x20<name>','--model\x20<name>','Starter\x20message','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','folders\x20<parent_name>','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','Action:\x20logs,\x20tasks,\x20kill,\x20retry','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','List\x20available\x20connector\x20types','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Output\x20as\x20JSON','Get\x20job\x20results','New\x20segment\x20name','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','List\x20available\x20LLM\x20models','--session-time\x20<time>','agent','outputHelp','Set\x20or\x20show\x20parent\x20segment\x20context','\x20(resolved\x20to\x20','--resume-from\x20<task>','campaign','pause\x20<name-or-path>','projects\x20[pattern]','validate\x20[target]','tdx\x20','Read\x20query\x20from\x20file','connection','show\x20<agent-name>','Add\x20attributes\x20from\x20JSON\x20file','describe','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Revision\x20name\x20(default:\x20timestamp)','create\x20[name]','Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)','commandUsage','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','required','pull\x20[project]\x20[agent-name]','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','--system-prompt\x20<text>','New\x20workspace\x20name','pull\x20[parent_or_file]','--kind\x20<type>','Force\x20retry\x20even\x20if\x20not\x20failed','-o,\x20--output\x20<file>','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','Job\x20management\x20commands','folder','Show\x20segment\x20schema\x20(column\x20types)','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','--max-tool-iterations\x20<n>','download\x20<project-name>\x20[output-dir]','allowUnknownOption','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','-r,\x20--resume','show\x20[name]','delete\x20<name-or-id>','-y,\x20--yes','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--starter-message\x20<text>','then','table','list\x20[project]','after','gitRevision','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Behaviors\x20from\x20JSON\x20file','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','Submit\x20a\x20job','length','resume\x20<name-or-id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','sonnet','Show\x20master\x20table\x20sample\x20data','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','engage','Attributes\x20as\x20JSON\x20string','--editor-type\x20<type>','Limit\x20number\x20of\x20rows','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','repeat','Model\x20type\x20(default:\x20claude-4.5-sonnet)','settings\x20<type>','[task-name]','Behaviors\x20as\x20JSON\x20string','Update\x20an\x20existing\x20agent','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','List\x20secret\x20keys\x20for\x20a\x20project','secrets','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20parent\x20PID,\x20allows\x20sharing\x20sessions\x20across\x20processes)','types','Show\x20email\x20template\x20details','agents\x20[pattern]','--no-color','Show\x20timeline\x20for\x20specific\x20attempt','Preview\x20operation\x20without\x20executing','help','templates\x20[pattern]','Start\x20time\x20filter\x20(ISO\x208601\x20format)','--start-at\x20<datetime>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','map','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','show\x20<folder_ref>','Temperature\x20(0.0-2.0,\x20default:\x200.7)','join','List\x20all\x20available\x20profiles','auth','Workspace\x20name\x20(required)','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Include\x20execution\x20statistics','submit\x20[query]','367424jNwWfa','Workspace\x20name','--delete','options','Workspace\x20description','--clear','-w,\x20--web','Open\x20journey\x20in\x20web\x20browser','--skip-validation','--attributes-file\x20<file>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','show\x20<name>','view\x20[name]','Show\x20agent\x20details','user','chats','Trino\x20catalog\x20(default:\x20td)','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.','retry','--name\x20<name>','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','Run\x20Trino\x20query\x20with\x20streaming\x20results','--attributes\x20<json>','set\x20<args...>','Skip\x20population\x20counting','--master','--stage\x20<name>','format','--dry-run','--name\x20<new-name>','--in\x20<name>','clear','optionTerm','0.7','Preview\x20changes\x20without\x20writing\x20files','result\x20<job-id>','Name\x20for\x20the\x20new\x20project\x20(required)','Campaign\x20management','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','preAction','Remove\x20a\x20profile','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','Attributes\x20from\x20JSON\x20file','Show\x20job\x20details','users','flatMap','--agent\x20<name>','6461zxduxp','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','use\x20<path>','Agent\x20name','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)','--invisible','update\x20<agent-name>','workspaces\x20[pattern]','Unknown\x20action:\x20','-d,\x20--database\x20<database>','Pull\x20child\x20segments\x20to\x20YAML\x20files','--in\x20<database>','--add-behaviors\x20<json>','remove\x20<name>','GET','Editor\x20type','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Database\x20to\x20query\x20(default:\x20information_schema)','Workflow\x20parameter\x20(repeatable)','Clear\x20session\x20context','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','Validate\x20journey\x20YAML\x20files\x20locally','--param\x20<key=value>','show\x20<job-id>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)','llm','Create\x20segment\x20folder','create\x20<parent_name>\x20<folder_name>','port','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','pull\x20[name]','api\x20[endpoint]','-d,\x20--database\x20<name>','-f,\x20--file\x20<path>','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','Delete\x20an\x20email\x20template','Include\x20retried\x20attempts\x20(for\x20list)','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','--catalog\x20<catalog>','run','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--color','DEBUG','information_schema','status','tdx','Show\x20parent\x20segment\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)','Usage:\x20','jobs','CDP\x20segment\x20management\x20commands','--behaviors-file\x20<file>','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','list\x20[path]','attempt:','journeys\x20[pattern]','noColor','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','--include-retried','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','update\x20<segment_name>','Set\x20a\x20profile\x20configuration\x20value','project','log','Workflow\x20session\x20management','Show\x20the\x20most\x20recent\x20chat','configureHelp','-o,\x20--output\x20<folder>','\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','--session\x20<id>','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Campaign\x20description','filter','Attempt\x20ID','Resume\x20a\x20paused\x20campaign','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','pause\x20<name-or-id>','models','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','argv','New\x20campaign\x20name','Customer\x20group\x20as\x20JSON\x20string','Custom\x20revision\x20name\x20(default:\x20timestamp)','Options:','desc','alias','workspace','--attempt-id\x20<id>','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','create\x20<segment_name>','Agent\x20prompt/instructions','--llm-proxy\x20[url]','2MmiWYo','--full','parent','preview\x20[file]','--data\x20<data>','update\x20<name>','--last','TRACE','End\x20time\x20filter\x20(ISO\x208601\x20format)','command','option','-f,\x20--force','59790ZibGeg','use\x20[resource]\x20[value]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','--port\x20<number>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','--limit\x20<rows>','LLM\x20project\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','error','parent_segment','--enriched','segment','469331MMnrDP','commands','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Workflow\x20(Digdag)\x20management\x20commands','_hidden','use\x20[project]','use\x20[name]','--to\x20<timestamp>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','-o,\x20--output\x20<dir>','Create\x20a\x20new\x20profile','trace','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Output\x20file\x20path','Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Create\x20a\x20new\x20campaign','--folder\x20<name>','resume\x20<name-or-path>','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','timeline\x20[project.workflow]','INVALID_ARGUMENT','1587945LYqlUo','workflow','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','--html\x20<html>','-r,\x20--recursive','registeredArguments','--format\x20<format>','-u,\x20--use','Pull\x20specific\x20revision\x20(default:\x20latest)','Alias\x20for\x20--database\x20(natural\x20language\x20style)','3199167liWtUe','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','replace','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','Show\x20journey\x20details','Database\x20management\x20commands','Parent\x20segment\x20management','Clear\x20workflow\x20project\x20context','describe\x20[table]','3849879uYfNTg','10OJmFPd','chdir','Open\x20parent\x20segment\x20in\x20web\x20browser','-C,\x20--directory\x20<path>','Push\x20without\x20confirmation','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--prompt\x20<text>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Directory\x20does\x20not\x20exist:\x20','Arguments:','Use\x20TD\x20LLM\x20Proxy\x20pass-through\x20mode\x20(optionally\x20specify\x20custom\x20URL)','Campaign\x20type\x20(email\x20or\x20push)','--no-proxy','--temperature\x20<n>','--include-stats','pull\x20<project>\x20[target-dir]','validate\x20[file]','restore\x20<folder>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','jsonl','Customer\x20group\x20from\x20JSON\x20file','kill\x20<job-id>','subcommandDescription','--new','Interactive\x20chat\x20selector','description','Create\x20a\x20workspace','--description\x20<desc>','--add-attributes\x20<json>','create','--schedule-type\x20<type>',',\x20version\x20','hidden','history\x20[chat-id]','Agent\x20description','Add\x20attributes\x20as\x20JSON\x20string','usage','Skip\x20confirmation\x20prompt','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','--parent-folder\x20<name>','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','update\x20<name-or-id>','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','directory','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Skip\x20confirmation\x20prompts','buildTime','backup\x20<name>','--interval\x20<range>','Master\x20database\x20name','Email\x20sender\x20ID\x20for\x20delivery','colorFn','template','Show\x20stats\x20for\x20specific\x20stage','[attempt-id]','--trace','--name\x20<new_name>','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','isTTY','includes','Segment\x20description','delete\x20<project-name-or-id>','Database\x20name\x20(default:\x20information_schema)','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','-X,\x20--method\x20<method>','Open\x20segment\x20in\x20web\x20browser','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--no-count-population','Describe\x20table\x20schema','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','logs','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','--timezone\x20<tz>','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','fields\x20[parent_name]','connections','summary','List\x20journeys\x20in\x20current\x20context','create\x20<name>','--schedule-option\x20<value>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','push\x20[file]','1644bkeVjo','--status\x20<status>','Model\x20to\x20use\x20(haiku,\x20sonnet,\x20opus)','stats\x20<name-or-path>','slice','parents\x20[pattern]','push\x20[target]','--jsonl','Move\x20to\x20folder','allowExcessArguments','Save\x20output\x20to\x20file','Kill\x20a\x20job','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','--from-task\x20<task>','--attribute\x20[name]','argument','Pause\x20a\x20running\x20journey','logLevel','schema\x20<type>','Create\x20a\x20new\x20LLM\x20project','--json-columns\x20<cols>','Update\x20an\x20email\x20template','--type\x20<api_type>','--project\x20<name>','Enable\x20verbose\x20logging','[EXPERIMENTAL]\x20Start\x20LLM\x20proxy\x20server\x20for\x20Claude\x20Code\x20integration\x20(use\x20global\x20--debug/--trace\x20for\x20logging)','--subject\x20<subject>','action','catch','launch\x20<name-or-id>','Campaign\x20name','--yes','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','List\x20journeys\x20(alias\x20for\x20journey\x20list)','Create\x20a\x20new\x20agent\x20in\x20current\x20project','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','Plaintext\x20template\x20content','Include\x20retried\x20attempts','Follow/watch\x20timeline\x20for\x20running\x20attempts','--rule\x20<json>','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','--rule-file\x20<file>','--behavior\x20[name]','Updated\x20description','push','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','run\x20[name]','Email\x20subject\x20template','--name\x20<text>','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--version','Add\x20behaviors\x20from\x20JSON\x20file','Override\x20project\x20name','--timeout\x20<seconds>','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Create\x20an\x20email\x20template','Output\x20directory','Port\x20to\x20run\x20the\x20proxy\x20server\x20on','INFO','Email\x20template\x20management','\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','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','--debug','stdout','Show\x20connection\x20details\x20by\x20name','use\x20<project-name>','info\x20[segment_name]','Folder\x20name\x20for\x20organization','opts','Filtering\x20rule\x20from\x20JSON\x20file','--from\x20<timestamp>','--revision\x20<revision>','validate\x20[name]','Commands:','AI-native\x20CLI\x20for\x20Treasure\x20Data','--reason\x20<text>','Task\x20name\x20for\x20logs\x20action','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--max-depth\x20<depth>','list\x20[pattern]','\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','Folder\x20description','Path\x20is\x20not\x20a\x20directory:\x20','[options]\x20--\x20[claude-code-args...]','--llm-project\x20<name>','--add-behaviors-file\x20<file>','set\x20<key=value>','hook','Workflow\x20project\x20management','list','set','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','--email-sender-id\x20<id>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','Parent\x20segment\x20description','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','List\x20agents\x20in\x20current\x20project','Agent\x20name\x20(uses\x20context\x20or\x20default\x20if\x20not\x20specified)','--include-subtasks','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','push\x20[path]','\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','[action]','Delete\x20an\x20LLM\x20project','Resume\x20a\x20conversation\x20(shows\x20selector)','--table','name','Skip\x20validation\x20of\x20.dig\x20files','Authentication\x20management','--plaintext\x20<text>','-1d','\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','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','json','--params\x20<json>','tables\x20[pattern]','run\x20[workflow]','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--description\x20<text>','retry\x20<session-id>','use\x20<name>','Update\x20a\x20campaign','Update\x20a\x20workspace','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','clone\x20[source]','--limit\x20<n>','--limit\x20<number>','--parent-segment\x20<name>','Preview\x20changes\x20without\x20pushing','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','site','--json','HTML\x20template\x20content','stderr','addHelpText','profile','Project\x20description','show\x20<name-or-id>','fields\x20[name]','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','padEnd','campaigns\x20[pattern]','journey','tsv','8hsaNGO','--site\x20<site>','isDirectory','setup','Set\x20session\x20profile','Pull\x20workflow\x20project\x20to\x20local\x20folder','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','tasks','Output\x20as\x20JSON\x20Lines','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','database','subcommandTerm','-n,\x20--name\x20<name>'];a2_0x58ac=function(){return _0x5c089a;};return a2_0x58ac();}import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{LLMProxyCommand}from'./commands/llm-proxy.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{UseCommand}from'./commands/use-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x3025ae(0x20d)][a2_0x3025ae(0x29e)](a2_0x3025ae(0x8e))){let versionOutput=a2_0x3025ae(0x12f)+currentVersion;buildInfo[a2_0x3025ae(0x157)]&&!currentVersion['includes'](buildInfo[a2_0x3025ae(0x157)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x3025ae(0x291)]&&(versionOutput+=a2_0x3025ae(0xfe)+buildInfo[a2_0x3025ae(0x291)]),console[a2_0x3025ae(0x1fb)](versionOutput),process[a2_0x3025ae(0xfd)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x3025ae(0xa6);buildInfo[a2_0x3025ae(0x157)]&&!currentVersion[a2_0x3025ae(0x29e)](buildInfo[a2_0x3025ae(0x157)])?description+=a2_0x3025ae(0x280)+currentVersion+'\x20('+buildInfo[a2_0x3025ae(0x157)]+')':description+=a2_0x3025ae(0x280)+currentVersion;program['name'](a2_0x3025ae(0x1e9))[a2_0x3025ae(0x27a)](description),program[a2_0x3025ae(0x224)](a2_0x3025ae(0x263),'Change\x20to\x20directory\x20before\x20executing\x20command')[a2_0x3025ae(0x224)]('-p,\x20--profile\x20<name>','Profile\x20to\x20use\x20(overrides\x20active\x20profile)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xee),'TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','us01')[a2_0x3025ae(0x224)](a2_0x3025ae(0x252),a2_0x3025ae(0x28c))[a2_0x3025ae(0x224)](a2_0x3025ae(0xc5),a2_0x3025ae(0x13d))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x8c))[a2_0x3025ae(0x224)]('--jsonl',a2_0x3025ae(0x28f))['option']('--tsv',a2_0x3025ae(0x1be))[a2_0x3025ae(0x224)]('--output\x20<file>',a2_0x3025ae(0x2c1))[a2_0x3025ae(0x224)](a2_0x3025ae(0xda),a2_0x3025ae(0xf6))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1e5),a2_0x3025ae(0x209),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x175),'Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)',![])['option']('-v,\x20--verbose',a2_0x3025ae(0x2cf),![])['option'](a2_0x3025ae(0x9a),'Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)')['option'](a2_0x3025ae(0x29a),a2_0x3025ae(0xa9))[a2_0x3025ae(0x224)](a2_0x3025ae(0x91),'Set\x20operation\x20timeout\x20in\x20seconds','30')['option'](a2_0x3025ae(0x1a6),a2_0x3025ae(0x177),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x290),![])[a2_0x3025ae(0x224)](a2_0x3025ae(0x201),a2_0x3025ae(0x171))['option'](a2_0x3025ae(0x1dc),'Database\x20to\x20use\x20(overrides\x20context)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a8),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdb),'Parent\x20segment\x20to\x20use\x20(overrides\x20context)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xb0),a2_0x3025ae(0x110)),program[a2_0x3025ae(0x1fe)]({'formatHelp':(_0xd46184,_0x1707bf)=>{const _0x4e42c3=a2_0x3025ae,_0x39ce2e=_0x1707bf['padWidth'](_0xd46184,_0x1707bf),_0x20c08f=0x2,_0x4dfd9f=0x2;function _0x467aa7(_0xeb77d3){const _0x43fe68=a2_0x238e,_0x57101b=_0xeb77d3;return!!(_0x57101b[_0x43fe68(0x239)]||_0x57101b[_0x43fe68(0x281)]);}function _0xf25308(_0x240b31,_0x462365){const _0x564159=a2_0x238e;if(_0x462365){const _0x1906c0=''+_0x240b31[_0x564159(0xe9)](_0x39ce2e+_0x4dfd9f)+_0x462365;return _0x1906c0;}return _0x240b31;}function _0xfc6349(_0x1fe38f){const _0x113371=a2_0x238e;return _0x1fe38f['join']('\x0a')[_0x113371(0x258)](/^/gm,'\x20'[_0x113371(0x168)](_0x20c08f));}const _0x1f47d1=[];_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x1eb)+_0x1707bf[_0x4e42c3(0x139)](_0xd46184));const _0x3a2e9a=_0x1707bf['commandDescription'](_0xd46184);_0x3a2e9a&&(_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1['push'](_0x3a2e9a));const _0x758f50=_0xd46184['commands'][_0x4e42c3(0x205)](_0x29b2fe=>!_0x467aa7(_0x29b2fe));if(_0x758f50['length']>0x0){if(_0xd46184['name']()===_0x4e42c3(0x1e9)){const _0x2c468b=_0xd46184['opts'](),_0x502ad7=!_0x2c468b[_0x4e42c3(0x1f3)]&&process[_0x4e42c3(0x9b)][_0x4e42c3(0x29d)],_0x3fb99a=COMMAND_CATEGORIES,_0x6d78d8=(_0x3e4d18,_0xa20dd3)=>_0x502ad7?_0xa20dd3(_0x3e4d18):_0x3e4d18,_0x645a6=new Map();_0x758f50['forEach'](_0x733446=>{const _0x592c94=_0x4e42c3;_0x645a6[_0x592c94(0xb6)](_0x733446['name'](),_0x733446);}),_0x3fb99a['forEach'](_0x2859de=>{const _0x221325=_0x4e42c3,_0x48cdc3=_0x2859de[_0x221325(0x235)][_0x221325(0x1b8)](_0x379943=>_0x645a6['get'](_0x379943)??[]);if(_0x48cdc3['length']>0x0){_0x1f47d1['push'](''),_0x1f47d1[_0x221325(0x86)](_0x6d78d8(_0x2859de[_0x221325(0xc6)]+':',_0x2859de[_0x221325(0x296)]));const _0x51d1e6=_0x48cdc3['map'](_0xcd5776=>{const _0x1c15a3=_0x221325,_0x50563e=_0x1707bf[_0x1c15a3(0xf8)](_0xcd5776),_0x5ab022=_0x1707bf['subcommandDescription'](_0xcd5776);return _0xf25308(_0x50563e,_0x5ab022);});_0x1f47d1[_0x221325(0x86)](_0xfc6349(_0x51d1e6));}}),_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1['push'](_0x4e42c3(0x2ae));}else{const _0x53d061=_0x758f50['map'](_0xbc2390=>{const _0x5a1f88=_0x4e42c3,_0x11baa0=_0x1707bf['subcommandTerm'](_0xbc2390),_0x31086c=_0x1707bf[_0x5a1f88(0x277)](_0xbc2390);return _0xf25308(_0x11baa0,_0x31086c);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0xa5)),_0x1f47d1['push'](_0xfc6349(_0x53d061));}}if(showBriefHelp&&_0xd46184[_0x4e42c3(0xc6)]()==='tdx')_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x88));else{const _0x49ae3d=_0xd46184[_0x4e42c3(0x18c)][_0x4e42c3(0x205)](_0x28bda8=>!_0x467aa7(_0x28bda8));if(_0x49ae3d['length']>0x0){const _0x2e527d=_0x49ae3d[_0x4e42c3(0x17d)](_0x964512=>{const _0x311532=_0x4e42c3,_0x58a899=_0x1707bf[_0x311532(0x1aa)](_0x964512),_0xa80e6f=_0x1707bf['optionDescription'](_0x964512);return _0xf25308(_0x58a899,_0xa80e6f);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x211)),_0x1f47d1['push'](_0xfc6349(_0x2e527d));}}const _0x54ef33=(_0xd46184[_0x4e42c3(0x251)]||[])[_0x4e42c3(0x205)](_0x1d347d=>!_0x467aa7(_0x1d347d));if(_0x54ef33['length']>0x0){const _0x5271d4=_0x54ef33[_0x4e42c3(0x17d)](_0x22c65e=>{const _0x33b8ac=_0x1707bf['argumentTerm'](_0x22c65e),_0x3a7e42=_0x1707bf['argumentDescription'](_0x22c65e);return _0xf25308(_0x33b8ac,_0x3a7e42);});_0x1f47d1[_0x4e42c3(0x86)](''),_0x1f47d1[_0x4e42c3(0x86)](_0x4e42c3(0x26a)),_0x1f47d1[_0x4e42c3(0x86)](_0xfc6349(_0x5271d4));}return _0x1f47d1[_0x4e42c3(0x181)]('\x0a')+'\x0a';},'subcommandTerm':_0x36d04e=>{const _0x413aaf=a2_0x3025ae,_0x9bd055=(_0x36d04e['registeredArguments']||[])['map'](_0x3ffbdd=>_0x3ffbdd[_0x413aaf(0x13b)]?'<'+_0x3ffbdd[_0x413aaf(0xc6)]()+'>':'['+_0x3ffbdd[_0x413aaf(0xc6)]()+']')[_0x413aaf(0x181)]('\x20'),_0x79415b=_0x36d04e[_0x413aaf(0x104)](),_0x13f1b0=_0x79415b[_0x413aaf(0x15c)]>0x0?_0x36d04e[_0x413aaf(0xc6)]()+',\x20'+_0x79415b['join'](',\x20'):_0x36d04e[_0x413aaf(0xc6)]();return _0x9bd055?_0x13f1b0+'\x20'+_0x9bd055:_0x13f1b0;}}),program[a2_0x3025ae(0xb3)](a2_0x3025ae(0x1b2),_0x10d414=>{const _0x351a98=a2_0x3025ae,_0x1c3019=_0x10d414['opts']();if(_0x1c3019[_0x351a98(0x28e)]){const _0x5880a8=resolve(_0x1c3019[_0x351a98(0x28e)]),_0x50278d=_0x5880a8!==_0x1c3019[_0x351a98(0x28e)]?_0x351a98(0x129)+_0x5880a8+')':'';if(!existsSync(_0x5880a8))throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x351a98(0x269)+_0x1c3019[_0x351a98(0x28e)]+_0x50278d,undefined,{'helpText':_0x351a98(0x119)});const _0x379676=statSync(_0x5880a8);if(!_0x379676[_0x351a98(0xef)]())throw new SDKError(ErrorCode[_0x351a98(0x24b)],_0x351a98(0xae)+_0x1c3019['directory']+_0x50278d,undefined,{'helpText':_0x351a98(0x19b)});process[_0x351a98(0x261)](_0x5880a8);}if(!_0x1c3019['format']){if(_0x1c3019[_0x351a98(0x154)])_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0x154);else{if(_0x1c3019[_0x351a98(0xcd)])_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0xcd);else{if(_0x1c3019[_0x351a98(0x274)])_0x1c3019['format']='jsonl';else _0x1c3019[_0x351a98(0xec)]&&(_0x1c3019[_0x351a98(0x1a5)]=_0x351a98(0xec));}}}_0x1c3019['in']&&!_0x1c3019['database']&&(_0x1c3019[_0x351a98(0xf7)]=_0x1c3019['in']);if(_0x1c3019[_0x351a98(0x240)])_0x1c3019[_0x351a98(0x2c8)]=LogLevel[_0x351a98(0x221)];else{if(_0x1c3019['debug'])_0x1c3019['logLevel']=LogLevel[_0x351a98(0x1e6)];else _0x1c3019[_0x351a98(0x2c8)]===undefined&&(_0x1c3019[_0x351a98(0x2c8)]=LogLevel[_0x351a98(0x96)]);}});async function createTDXInstance(_0x42b313){const _0x1a5512=a2_0x3025ae,_0x5c8ce7=await GlobalContext['createAsync'](_0x42b313);return _0x5c8ce7['injectIntoOptions'](_0x42b313),TDX[_0x1a5512(0x27e)]({'site':_0x5c8ce7[_0x1a5512(0xde)],'apiKey':_0x5c8ce7['apiKey'],'logLevel':_0x5c8ce7[_0x1a5512(0x2c8)],'profile':_0x5c8ce7['profile']});}const databaseCmd=program['command']('database')[a2_0x3025ae(0x213)]('db')['description'](a2_0x3025ae(0x25b)),databaseListAction=async(_0x5881a3,_0x27b9c2)=>{const _0x5f186d=a2_0x3025ae,_0x333097=new DatabasesCommand(),_0x57c951=program[_0x5f186d(0xa0)](),_0x533dbb=await createTDXInstance(_0x57c951),_0x1bfd40=await _0x333097[_0x5f186d(0x1e3)]({'options':{..._0x57c951,..._0x27b9c2},'args':_0x5881a3?[_0x5881a3]:[],'tdx':_0x533dbb});process[_0x5f186d(0xfd)](_0x1bfd40);};databaseCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x3025ae(0x2d2)](databaseListAction),program[a2_0x3025ae(0x223)]('databases\x20[pattern]',{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0xbb))[a2_0x3025ae(0x2d2)](databaseListAction),program[a2_0x3025ae(0x223)]('chat\x20[message...]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x144))['option']('--agent\x20<ref>',a2_0x3025ae(0x245))['option'](a2_0x3025ae(0x278),'Start\x20a\x20new\x20chat\x20session')[a2_0x3025ae(0x2d2)](async(_0x1123a8,_0x1fe068)=>{const _0x57b181=a2_0x3025ae,_0x35555d=new ChatCommand(),_0x488024=program[_0x57b181(0xa0)](),_0x23848d=await createTDXInstance(_0x488024),_0x5e2e6a=await _0x35555d['run']({'options':{..._0x488024,..._0x1fe068},'args':_0x1123a8,'tdx':_0x23848d});process['exit'](_0x5e2e6a);});const apiCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1db))[a2_0x3025ae(0x2b1)]('Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs')[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0xc1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2a4),a2_0x3025ae(0x2b5),a2_0x3025ae(0x1c9))[a2_0x3025ae(0x224)](a2_0x3025ae(0x21e),'Request\x20body\x20as\x20JSON\x20string')[a2_0x3025ae(0x224)]('-f,\x20--file\x20<path>',a2_0x3025ae(0x102))[a2_0x3025ae(0x224)]('-H,\x20--header\x20<header>',a2_0x3025ae(0x100),(_0x574a8b,_0x1a5048)=>{return _0x1a5048?[..._0x1a5048,_0x574a8b]:[_0x574a8b];})[a2_0x3025ae(0x224)](a2_0x3025ae(0x2cd),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')[a2_0x3025ae(0x2d2)](async(_0x37a75e,_0x55f694)=>{const _0x1371d9=a2_0x3025ae;if(!_0x37a75e){apiCmd[_0x1371d9(0x178)]();return;}const _0x4e5464=new ApiCommand(),_0x2451a7=program[_0x1371d9(0xa0)](),_0x1ae548=await createTDXInstance(_0x2451a7),_0xe7ab53=await _0x4e5464['run']({'options':{..._0x2451a7,..._0x55f694},'args':[_0x37a75e],'tdx':_0x1ae548});process[_0x1371d9(0xfd)](_0xe7ab53);}),tableCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x154))['description']('Table\x20management\x20commands'),tableListAction=async(_0x419d91,_0x348519)=>{const _0x5ad034=a2_0x3025ae,_0x379be9=new TablesCommand(),_0x58dc0a=program['opts'](),_0x84557=await createTDXInstance(_0x58dc0a);_0x348519['in']&&(_0x348519[_0x5ad034(0xf7)]=_0x348519['in']);const _0x1d9b71=await _0x379be9[_0x5ad034(0x1e3)]({'options':{..._0x58dc0a,..._0x348519},'args':_0x419d91?[_0x419d91]:[],'tdx':_0x84557});process[_0x5ad034(0xfd)](_0x1d9b71);};tableCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x193))['option']('--in\x20<database>',a2_0x3025ae(0x255))[a2_0x3025ae(0x2d2)](tableListAction),program['command'](a2_0x3025ae(0xcf),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x186))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c4),a2_0x3025ae(0x193))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c6),a2_0x3025ae(0x255))[a2_0x3025ae(0x2d2)](tableListAction),program['command']('show\x20[table]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a3))['option'](a2_0x3025ae(0x1c4),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x4ed4e4,_0x5e51f5)=>{const _0x12e9a6=a2_0x3025ae,_0xa03a5d=new ShowCommand(),_0x54c096=program[_0x12e9a6(0xa0)](),_0x56e4e7=await createTDXInstance(_0x54c096);_0x5e51f5['in']&&(_0x5e51f5[_0x12e9a6(0xf7)]=_0x5e51f5['in']);const _0x132f65=await _0xa03a5d['run']({'options':{..._0x54c096,..._0x5e51f5},'args':_0x4ed4e4?[_0x4ed4e4]:[],'tdx':_0x56e4e7});process[_0x12e9a6(0xfd)](_0x132f65);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x25e))[a2_0x3025ae(0x213)](a2_0x3025ae(0x212))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a8))['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x28d))['option'](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x2c12c3,_0x1ba481)=>{const _0x4331b7=a2_0x3025ae,_0x4e03b5=new DescribeCommand(),_0x49abbe=program[_0x4331b7(0xa0)](),_0x32785b=await createTDXInstance(_0x49abbe);_0x1ba481['in']&&(_0x1ba481[_0x4331b7(0xf7)]=_0x1ba481['in']);const _0x1be8da=await _0x4e03b5[_0x4331b7(0x1e3)]({'options':{..._0x49abbe,..._0x1ba481},'args':_0x2c12c3?[_0x2c12c3]:[],'tdx':_0x32785b});process[_0x4331b7(0xfd)](_0x1be8da);}),program[a2_0x3025ae(0x223)]('query\x20[sql]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19f))['option'](a2_0x3025ae(0x1c4),a2_0x3025ae(0x1cc))['option'](a2_0x3025ae(0x1c6),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1e2),a2_0x3025ae(0x199))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1dd),'Read\x20SQL\x20query\x20from\x20file')[a2_0x3025ae(0x224)](a2_0x3025ae(0x22e),'Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','40')[a2_0x3025ae(0x2d2)](async(_0x23fea8,_0x472b49)=>{const _0x58c3c7=a2_0x3025ae,_0xcbcead=new QueryCommand(),_0x3efa9b=program[_0x58c3c7(0xa0)](),_0x525a02=await createTDXInstance(_0x3efa9b);_0x472b49['in']&&(_0x472b49[_0x58c3c7(0xf7)]=_0x472b49['in']);const _0x154dd3=await _0xcbcead['run']({'options':{..._0x3efa9b,..._0x472b49},'args':_0x23fea8?[_0x23fea8]:[],'tdx':_0x525a02});process[_0x58c3c7(0xfd)](_0x154dd3);});const segmentCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x233))[a2_0x3025ae(0x213)]('sg')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1ed)),segmentListAction=async(_0x3b72df,_0x177afa)=>{const _0x1d0645=a2_0x3025ae,_0x6955c6=new SegmentsCommand(),_0x548aef=program[_0x1d0645(0xa0)](),_0x5f582d=await createTDXInstance(_0x548aef),_0x5d7cea=await _0x6955c6['run']({'options':{..._0x548aef,..._0x177afa},'args':_0x3b72df?[_0x3b72df]:[],'tdx':_0x5f582d});process[_0x1d0645(0xfd)](_0x5d7cea);};segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xe8))[a2_0x3025ae(0x224)](a2_0x3025ae(0x250),a2_0x3025ae(0xe7))[a2_0x3025ae(0x224)](a2_0x3025ae(0xaa),a2_0x3025ae(0xfc),'10')['action'](segmentListAction),program[a2_0x3025ae(0x223)]('segments\x20[path]',{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x202))[a2_0x3025ae(0x224)](a2_0x3025ae(0x250),a2_0x3025ae(0xe7))[a2_0x3025ae(0x224)](a2_0x3025ae(0xaa),a2_0x3025ae(0xfc),'10')[a2_0x3025ae(0x2d2)](segmentListAction),segmentCmd['command'](a2_0x3025ae(0x1bc),{'hidden':!![]})[a2_0x3025ae(0x27a)]('[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)')[a2_0x3025ae(0x2d2)](async(_0x4767d5,_0x159844)=>{const _0x3ee57d=a2_0x3025ae,_0x41bbe1=new SegmentUseCommand(),_0x1ad248=program[_0x3ee57d(0xa0)](),_0x441734=await createTDXInstance(_0x1ad248),_0x2b6315=await _0x41bbe1[_0x3ee57d(0x1e3)]({'options':{..._0x1ad248,..._0x159844},'args':[_0x4767d5],'tdx':_0x441734});process['exit'](_0x2b6315);});const segmentViewAction=async(_0x8e56fa,_0x37af94)=>{const _0x1282b1=a2_0x3025ae,_0xddb7d9=new SegmentViewCommand(),_0x3095a2=program[_0x1282b1(0xa0)](),_0x27c84d=await createTDXInstance(_0x3095a2),_0x369696=await _0xddb7d9['run']({'options':{..._0x3095a2,..._0x37af94},'args':_0x8e56fa?[_0x8e56fa]:[],'tdx':_0x27c84d});process['exit'](_0x369696);};segmentCmd[a2_0x3025ae(0x223)]('view\x20[segment_name]')['description'](a2_0x3025ae(0x8d))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18f),a2_0x3025ae(0x2a5))[a2_0x3025ae(0x2d2)](segmentViewAction),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x9e),{'hidden':!![]})[a2_0x3025ae(0x213)](a2_0x3025ae(0x134))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18f),a2_0x3025ae(0x2a5))[a2_0x3025ae(0x27a)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x3025ae(0x2d2)](segmentViewAction),segmentCmd[a2_0x3025ae(0x223)]('desc\x20[segment_name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x147))[a2_0x3025ae(0x2d2)](async(_0x3f1934,_0x4a5659)=>{const _0x20dfba=a2_0x3025ae,_0x169e04=new SegmentDescCommand(),_0x52c729=program[_0x20dfba(0xa0)](),_0x1f670a=await createTDXInstance(_0x52c729),_0x172990=await _0x169e04[_0x20dfba(0x1e3)]({'options':{..._0x52c729,..._0x4a5659},'args':_0x3f1934?[_0x3f1934]:[],'tdx':_0x1f670a});process[_0x20dfba(0xfd)](_0x172990);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x10e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1bb))[a2_0x3025ae(0x2d2)](async(_0x4c6dfa,_0x22e6b9)=>{const _0x5c3456=a2_0x3025ae,_0x2f233f=new SegmentShowCommand(),_0x1ea2b8=program[_0x5c3456(0xa0)](),_0x16a223=await createTDXInstance(_0x1ea2b8),_0x5e8b6c=await _0x2f233f[_0x5c3456(0x1e3)]({'options':{..._0x1ea2b8,..._0x22e6b9},'args':_0x4c6dfa?[_0x4c6dfa]:[],'tdx':_0x16a223});process[_0x5c3456(0xfd)](_0x5e8b6c);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x11a),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x236))['action'](async(_0x5174a9,_0x4179d0)=>{const _0x2fe4b4=a2_0x3025ae,_0x5ca930=new SegmentFolderListCommand(),_0x28dbd6=program[_0x2fe4b4(0xa0)](),_0x251702=await createTDXInstance(_0x28dbd6),_0x5bb99f=await _0x5ca930[_0x2fe4b4(0x1e3)]({'options':{..._0x28dbd6,..._0x4179d0},'args':[_0x5174a9],'tdx':_0x251702});process['exit'](_0x5bb99f);});const folderCmd=segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x146),{'hidden':!![]})[a2_0x3025ae(0x27a)]('[DEPRECATED]\x20Segment\x20folder\x20management');folderCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x17f))[a2_0x3025ae(0x27a)]('Show\x20folder\x20details\x20(use\x20parent_name/folder_name)')[a2_0x3025ae(0x2d2)](async(_0x1f9b1c,_0xd44c41)=>{const _0x23d607=a2_0x3025ae,_0x267bc8=new SegmentFolderShowCommand(),_0xad54a6=program[_0x23d607(0xa0)](),_0x68a63f=await createTDXInstance(_0xad54a6),_0xf6f4b2=await _0x267bc8[_0x23d607(0x1e3)]({'options':{..._0xad54a6,..._0xd44c41},'args':[_0x1f9b1c],'tdx':_0x68a63f});process[_0x23d607(0xfd)](_0xf6f4b2);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x10a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1de))[a2_0x3025ae(0x2d2)](async(_0x50d94b,_0x16b01c)=>{const _0x397612=a2_0x3025ae,_0x90dc5=new SegmentSQLCommand(),_0x50d72c=program[_0x397612(0xa0)](),_0x32b9fa=await createTDXInstance(_0x50d72c),_0xa88262=await _0x90dc5[_0x397612(0x1e3)]({'options':{..._0x50d72c,..._0x16b01c},'args':_0x50d94b?[_0x50d94b]:[],'tdx':_0x32b9fa});process[_0x397612(0xfd)](_0xa88262);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2af))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x228))['action'](async(_0x53566f,_0x3aa2ea)=>{const _0x32525e=a2_0x3025ae,_0x1ab6b1=new SegmentFieldsCommand(),_0x9f8d9b=program[_0x32525e(0xa0)](),_0x4be42e=await createTDXInstance(_0x9f8d9b),_0x466628=await _0x1ab6b1[_0x32525e(0x1e3)]({'options':{..._0x9f8d9b,..._0x3aa2ea},'args':_0x53566f?[_0x53566f]:[],'tdx':_0x4be42e});process['exit'](_0x466628);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x140))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1c5))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x290))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),'Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes')[a2_0x3025ae(0x2d2)](async(_0x45ef17,_0x4636bb)=>{const _0x2e523a=a2_0x3025ae,_0x18d193=new SegmentPullCommand(),_0x46918b=program[_0x2e523a(0xa0)](),_0x362f39=await createTDXInstance(_0x46918b),_0x3c1f15=await _0x18d193[_0x2e523a(0x1e3)]({'options':{..._0x46918b,..._0x4636bb},'args':_0x45ef17?[_0x45ef17]:[],'tdx':_0x362f39});process[_0x2e523a(0xfd)](_0x3c1f15);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x107))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1f7))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompts')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x11b))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18b),a2_0x3025ae(0x1b1))[a2_0x3025ae(0x2d2)](async(_0x94f42b,_0x478d78)=>{const _0x5fc0c3=a2_0x3025ae,_0x2f90c6=new SegmentPushCommand(),_0xf6fd4a=program['opts'](),_0x1f13f7=await createTDXInstance(_0xf6fd4a),_0x1de2de=await _0x2f90c6[_0x5fc0c3(0x1e3)]({'options':{..._0xf6fd4a,..._0x478d78},'args':_0x94f42b?[_0x94f42b]:[],'tdx':_0x1f13f7});process[_0x5fc0c3(0xfd)](_0x1de2de);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12e))[a2_0x3025ae(0x27a)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')['action'](async(_0x6a7ea9,_0x966c53)=>{const _0x405923=a2_0x3025ae,_0x36da3a=new SegmentValidateCommand(),_0x53c3ae=program['opts'](),_0x59fb94=await createTDXInstance(_0x53c3ae),_0x135ac5=await _0x36da3a['run']({'options':{..._0x53c3ae,..._0x966c53},'args':_0x6a7ea9?[_0x6a7ea9]:[],'tdx':_0x59fb94});process[_0x405923(0xfd)](_0x135ac5);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x217),{'hidden':!![]})['description'](a2_0x3025ae(0x1e4))['option'](a2_0x3025ae(0xd2),a2_0x3025ae(0x29f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x81),'Filtering\x20rule\x20as\x20JSON\x20string')[a2_0x3025ae(0x224)](a2_0x3025ae(0x83),a2_0x3025ae(0xa1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x247),a2_0x3025ae(0x9f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x141),a2_0x3025ae(0x249))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c0),'Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2a7),a2_0x3025ae(0x1a2))[a2_0x3025ae(0x2d2)](async(_0x277175,_0x462ae1)=>{const _0x390ce7=a2_0x3025ae,_0x58b46b=new SegmentCreateCommand(),_0x2a6337=program['opts'](),_0x2413bf=await createTDXInstance(_0x2a6337),_0x444659=await _0x58b46b[_0x390ce7(0x1e3)]({'options':{..._0x2a6337,..._0x462ae1},'args':[_0x277175],'tdx':_0x2413bf});process[_0x390ce7(0xfd)](_0x444659);}),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f8),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2a6))['option'](a2_0x3025ae(0x29b),a2_0x3025ae(0x122))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0x85))['option'](a2_0x3025ae(0x81),a2_0x3025ae(0x87))[a2_0x3025ae(0x224)](a2_0x3025ae(0x83),a2_0x3025ae(0x2a2))[a2_0x3025ae(0x224)]('--folder\x20<name>',a2_0x3025ae(0x2bf))[a2_0x3025ae(0x224)]('--kind\x20<type>',a2_0x3025ae(0x249))[a2_0x3025ae(0x2d2)](async(_0x43d0e9,_0x49287f)=>{const _0x21f0bf=a2_0x3025ae,_0x143bf0=new SegmentUpdateCommand(),_0x5c8f34=program[_0x21f0bf(0xa0)](),_0x2b50cf=await createTDXInstance(_0x5c8f34),_0x3c7e85=await _0x143bf0['run']({'options':{..._0x5c8f34,..._0x49287f},'args':[_0x43d0e9],'tdx':_0x2b50cf});process[_0x21f0bf(0xfd)](_0x3c7e85);});const parentCmd=segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21c),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b0)),parentListAction=async(_0x5d7be2,_0x130a37)=>{const _0x1a2992=a2_0x3025ae,_0x5c8498=new ParentSegmentListCommand(),_0x5aa0ee=program[_0x1a2992(0xa0)](),_0x5a9266=await createTDXInstance(_0x5aa0ee),_0x429b88=await _0x5c8498['run']({'options':{..._0x5aa0ee,..._0x130a37},'args':_0x5d7be2?[_0x5d7be2]:[],'tdx':_0x5a9266});process[_0x1a2992(0xfd)](_0x429b88);};parentCmd['command']('list\x20[pattern]')['description'](a2_0x3025ae(0x15a))[a2_0x3025ae(0x2d2)](parentListAction),segmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2bc),{'hidden':!![]})[a2_0x3025ae(0x27a)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x3025ae(0x2d2)](parentListAction),parentCmd['command'](a2_0x3025ae(0x1da))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x22d))[a2_0x3025ae(0x224)](a2_0x3025ae(0x143),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x5adc6e,_0x4c018d)=>{const _0x2e059b=a2_0x3025ae,_0x5b591d=new ParentSegmentPullCommand(),_0x1d3b0f=program[_0x2e059b(0xa0)](),_0x3569dc=await createTDXInstance(_0x1d3b0f),_0x332d40=await _0x5b591d[_0x2e059b(0x1e3)]({'options':{..._0x1d3b0f,..._0x4c018d},'args':_0x5adc6e?[_0x5adc6e]:[],'tdx':_0x3569dc});process['exit'](_0x332d40);}),parentCmd['command'](a2_0x3025ae(0x2b6))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x29c))['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x72b31f,_0x106b26)=>{const _0x149c30=a2_0x3025ae,_0x2ea0b4=new ParentSegmentPushCommand(),_0x4a9e18=program[_0x149c30(0xa0)](),_0x5b036b=await createTDXInstance(_0x4a9e18),_0x1e7152=await _0x2ea0b4[_0x149c30(0x1e3)]({'options':{..._0x4a9e18,..._0x106b26},'args':_0x72b31f?[_0x72b31f]:[],'tdx':_0x5b036b});process[_0x149c30(0xfd)](_0x1e7152);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x271))[a2_0x3025ae(0x27a)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x10f))[a2_0x3025ae(0x224)]('--attribute\x20[name]',a2_0x3025ae(0x108))['option'](a2_0x3025ae(0x84),a2_0x3025ae(0xdd))[a2_0x3025ae(0x224)](a2_0x3025ae(0x232),a2_0x3025ae(0x268))[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),'-1d')[a2_0x3025ae(0x2d2)](async(_0x2e7238,_0x1be2a3)=>{const _0x3b6f5c=a2_0x3025ae,_0x41c12f=new ParentSegmentValidateCommand(),_0x1ac4f9=program[_0x3b6f5c(0xa0)](),_0xf1f65d=await createTDXInstance(_0x1ac4f9),_0x2e3eb8=await _0x41c12f['run']({'options':{..._0x1ac4f9,..._0x1be2a3},'args':_0x2e7238?[_0x2e7238]:[],'tdx':_0xf1f65d});process['exit'](_0x2e3eb8);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21d))[a2_0x3025ae(0x27a)]('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')['option']('--master',a2_0x3025ae(0x160))[a2_0x3025ae(0x224)]('--attribute\x20[name]',a2_0x3025ae(0x162))[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x3025ae(0x232),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),a2_0x3025ae(0xca))[a2_0x3025ae(0x2d2)](async(_0x3906b5,_0x5c18b8)=>{const _0xb692f5=a2_0x3025ae,_0x2b22de=new ParentSegmentPreviewCommand(),_0x455f52=program['opts'](),_0x4a14a8=await createTDXInstance(_0x455f52),_0x2f49d6=await _0x2b22de[_0xb692f5(0x1e3)]({'options':{..._0x455f52,..._0x5c18b8},'args':_0x3906b5?[_0x3906b5]:[],'tdx':_0x4a14a8});process[_0xb692f5(0xfd)](_0x2f49d6);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x89))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x259))['option'](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompt')[a2_0x3025ae(0x2d2)](async(_0x2c2f17,_0x1c9f54)=>{const _0x4848c3=a2_0x3025ae,_0x4b502a=new ParentSegmentRunCommand(),_0x50cb51=program[_0x4848c3(0xa0)](),_0x13d8f1=await createTDXInstance(_0x50cb51),_0x267e74=await _0x4b502a['run']({'options':{..._0x50cb51,..._0x1c9f54},'args':_0x2c2f17?[_0x2c2f17]:[],'tdx':_0x13d8f1});process[_0x4848c3(0xfd)](_0x267e74);});const parentSegmentCmd=program[a2_0x3025ae(0x223)]('parent-segment')[a2_0x3025ae(0x213)]('ps')['description'](a2_0x3025ae(0x25c));parentSegmentCmd[a2_0x3025ae(0x223)]('list\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15a))['action'](parentListAction),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1da))['description'](a2_0x3025ae(0x99))[a2_0x3025ae(0x224)]('-o,\x20--output\x20<file>',a2_0x3025ae(0x243))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x224)](a2_0x3025ae(0x253),a2_0x3025ae(0x17e))[a2_0x3025ae(0x2d2)](async(_0x3a5ac3,_0x317b28)=>{const _0x40e353=a2_0x3025ae,_0x890a2b=new ParentSegmentPullCommand(),_0x465700=program[_0x40e353(0xa0)](),_0x1bc91f=await createTDXInstance(_0x465700),_0x5826b8=await _0x890a2b[_0x40e353(0x1e3)]({'options':{..._0x465700,..._0x317b28},'args':_0x3a5ac3?[_0x3a5ac3]:[],'tdx':_0x1bc91f});process['exit'](_0x5826b8);}),parentSegmentCmd[a2_0x3025ae(0x223)]('push\x20[name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1cb))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),'Skip\x20confirmation\x20prompt')[a2_0x3025ae(0x2d2)](async(_0x32fbde,_0xc8e083)=>{const _0x574dae=a2_0x3025ae,_0x178429=new ParentSegmentPushCommand(),_0x1830e4=program[_0x574dae(0xa0)](),_0x13c861=await createTDXInstance(_0x1830e4),_0x2399ef=await _0x178429[_0x574dae(0x1e3)]({'options':{..._0x1830e4,..._0xc8e083},'args':_0x32fbde?[_0x32fbde]:[],'tdx':_0x13c861});process[_0x574dae(0xfd)](_0x2399ef);}),parentSegmentCmd['command'](a2_0x3025ae(0xa4))['description']('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x10f))['option'](a2_0x3025ae(0x2c5),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),a2_0x3025ae(0xdd))[a2_0x3025ae(0x224)](a2_0x3025ae(0x232),a2_0x3025ae(0x268))['option'](a2_0x3025ae(0x293),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x3025ae(0x2d2)](async(_0x3859e1,_0x21ea7f)=>{const _0x328d85=a2_0x3025ae,_0x3ab0fc=new ParentSegmentValidateCommand(),_0x3c033e=program[_0x328d85(0xa0)](),_0x34e23c=await createTDXInstance(_0x3c033e),_0x5a6d74=await _0x3ab0fc[_0x328d85(0x1e3)]({'options':{..._0x3c033e,..._0x21ea7f},'args':_0x3859e1?[_0x3859e1]:[],'tdx':_0x34e23c});process[_0x328d85(0xfd)](_0x5a6d74);}),parentSegmentCmd[a2_0x3025ae(0x223)]('preview\x20[name]')['description'](a2_0x3025ae(0x1f4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a3),a2_0x3025ae(0x160))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2c5),a2_0x3025ae(0x162))[a2_0x3025ae(0x224)](a2_0x3025ae(0x84),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x3025ae(0x232),a2_0x3025ae(0x24e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x293),a2_0x3025ae(0x185),a2_0x3025ae(0xca))[a2_0x3025ae(0x2d2)](async(_0x1ac247,_0xf236b6)=>{const _0xcf3dbd=a2_0x3025ae,_0x2a5011=new ParentSegmentPreviewCommand(),_0x392fe4=program[_0xcf3dbd(0xa0)](),_0x50de2e=await createTDXInstance(_0x392fe4),_0x5c7994=await _0x2a5011[_0xcf3dbd(0x1e3)]({'options':{..._0x392fe4,..._0xf236b6},'args':_0x1ac247?[_0x1ac247]:[],'tdx':_0x50de2e});process[_0xcf3dbd(0xfd)](_0x5c7994);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x89))[a2_0x3025ae(0x27a)]('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))['action'](async(_0x8e7d65,_0x37ba1f)=>{const _0x57043c=a2_0x3025ae,_0x1b7f7e=new ParentSegmentRunCommand(),_0x371f09=program[_0x57043c(0xa0)](),_0x30be0b=await createTDXInstance(_0x371f09),_0xb5b78b=await _0x1b7f7e[_0x57043c(0x1e3)]({'options':{..._0x371f09,..._0x37ba1f},'args':_0x8e7d65?[_0x8e7d65]:[],'tdx':_0x30be0b});process[_0x57043c(0xfd)](_0xb5b78b);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xe6))[a2_0x3025ae(0x27a)]('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x724431,_0xe80bbf)=>{const _0x155c5b=a2_0x3025ae,_0x29e074=new ParentSegmentFieldsCommand(),_0x17267c=program['opts'](),_0x417157=await createTDXInstance(_0x17267c),_0x56cb9f=await _0x29e074[_0x155c5b(0x1e3)]({'options':{..._0x17267c,..._0xe80bbf},'args':_0x724431?[_0x724431]:[],'tdx':_0x417157});process[_0x155c5b(0xfd)](_0x56cb9f);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x195))['description'](a2_0x3025ae(0x1e1))['option'](a2_0x3025ae(0x18f),a2_0x3025ae(0x262))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))['action'](async(_0x3e22d2,_0x42ace0)=>{const _0x294ba2=a2_0x3025ae,_0x117d1e=new ParentSegmentViewCommand(),_0x38d559=program['opts'](),_0x2c2ffd=await createTDXInstance(_0x38d559),_0x286845=await _0x117d1e[_0x294ba2(0x1e3)]({'options':{..._0x38d559,..._0x42ace0},'args':_0x3e22d2?[_0x3e22d2]:[],'tdx':_0x2c2ffd});process[_0x294ba2(0xfd)](_0x286845);}),parentSegmentCmd[a2_0x3025ae(0x223)]('desc\x20[name]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1ea))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),'Output\x20as\x20JSON')[a2_0x3025ae(0x224)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x3025ae(0x2d2)](async(_0x441057,_0x328f71)=>{const _0x2a932c=a2_0x3025ae,_0x1e98e6=new ParentSegmentDescCommand(),_0x458d22=program['opts'](),_0x9f6f60=await createTDXInstance(_0x458d22),_0x10b980=await _0x1e98e6['run']({'options':{..._0x458d22,..._0x328f71},'args':_0x441057?[_0x441057]:[],'tdx':_0x9f6f60});process[_0x2a932c(0xfd)](_0x10b980);}),parentSegmentCmd[a2_0x3025ae(0x223)]('sql\x20[name]')[a2_0x3025ae(0x27a)]('Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2be),a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x814009,_0x4ee240)=>{const _0x1b6a84=a2_0x3025ae,_0x4f61e0=new ParentSegmentSQLCommand(),_0x196090=program[_0x1b6a84(0xa0)](),_0x3c7073=await createTDXInstance(_0x196090),_0x295209=await _0x4f61e0[_0x1b6a84(0x1e3)]({'options':{..._0x196090,..._0x4ee240},'args':_0x814009?[_0x814009]:[],'tdx':_0x3c7073});process[_0x1b6a84(0xfd)](_0x295209);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x115))[a2_0x3025ae(0x224)](a2_0x3025ae(0xd9),a2_0x3025ae(0x166))[a2_0x3025ae(0x224)](a2_0x3025ae(0xdf),a2_0x3025ae(0x120))[a2_0x3025ae(0x224)]('--jsonl',a2_0x3025ae(0xf5))[a2_0x3025ae(0x2d2)](async(_0x143a2c,_0x1ab2d3)=>{const _0xbce785=a2_0x3025ae,_0x5f492f=new ParentSegmentShowCommand(),_0x2c9ea1=program[_0xbce785(0xa0)](),_0x4d2507=await createTDXInstance(_0x2c9ea1),_0x1ffb33=await _0x5f492f[_0xbce785(0x1e3)]({'options':{..._0x2c9ea1,..._0x1ab2d3},'args':_0x143a2c?[_0x143a2c]:[],'tdx':_0x4d2507});process[_0xbce785(0xfd)](_0x1ffb33);}),parentSegmentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x23b))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x128))[a2_0x3025ae(0x2d2)](async(_0x34cfa3,_0x12f34a)=>{const _0x4fcf20=a2_0x3025ae,_0x3196ef=new UseCommand(),_0x560441=program[_0x4fcf20(0xa0)](),_0x57ba39=_0x34cfa3?[_0x4fcf20(0x231),_0x34cfa3]:[],_0x1d4dd6=await _0x3196ef[_0x4fcf20(0x1e3)]({'options':{..._0x560441,..._0x12f34a},'args':_0x57ba39,'tdx':null});process[_0x4fcf20(0xfd)](_0x1d4dd6);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2b3))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11d))[a2_0x3025ae(0x109)]('--database\x20<db>',a2_0x3025ae(0x294))[a2_0x3025ae(0x109)]('--table\x20<table>','Master\x20table\x20name')[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0xba))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27f),a2_0x3025ae(0x257))['option'](a2_0x3025ae(0x2b4),a2_0x3025ae(0xd1))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2ad),'Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a0),a2_0x3025ae(0x164))[a2_0x3025ae(0x224)](a2_0x3025ae(0x192),a2_0x3025ae(0x1b5))[a2_0x3025ae(0x224)]('--behaviors\x20<json>',a2_0x3025ae(0x16c))['option'](a2_0x3025ae(0x1ee),a2_0x3025ae(0x159))[a2_0x3025ae(0x224)]('--customer-group\x20<json>',a2_0x3025ae(0x20f))['option']('--customer-group-file\x20<file>',a2_0x3025ae(0x275))['action'](async(_0x4aefa5,_0x5e6a73)=>{const _0x2c8058=a2_0x3025ae,_0x32cda3=new ParentSegmentCreateCommand(),_0x33afa9=program[_0x2c8058(0xa0)](),_0x176569=await createTDXInstance(_0x33afa9),_0x2dee75=await _0x32cda3['run']({'options':{..._0x33afa9,..._0x5e6a73},'args':[_0x4aefa5],'tdx':_0x176569});process[_0x2c8058(0xfd)](_0x2dee75);}),parentCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x21f))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2ac))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0x85))[a2_0x3025ae(0x224)]('--schedule-type\x20<type>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b4),'Updated\x20schedule\x20option')[a2_0x3025ae(0x224)]('--timezone\x20<tz>','Updated\x20timezone')['option'](a2_0x3025ae(0x27d),a2_0x3025ae(0x284))[a2_0x3025ae(0x224)]('--add-attributes-file\x20<file>',a2_0x3025ae(0x133))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1c7),a2_0x3025ae(0x105))[a2_0x3025ae(0x224)](a2_0x3025ae(0xb1),a2_0x3025ae(0x8f))['action'](async(_0x19e877,_0x53619b)=>{const _0x2f5890=a2_0x3025ae,_0x50eab8=new ParentSegmentUpdateCommand(),_0x282593=program[_0x2f5890(0xa0)](),_0x3ece55=await createTDXInstance(_0x282593),_0x42a358=await _0x50eab8['run']({'options':{..._0x282593,..._0x53619b},'args':[_0x19e877],'tdx':_0x3ece55});process[_0x2f5890(0xfd)](_0x42a358);}),folderCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d7))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d6))['option'](a2_0x3025ae(0xd2),a2_0x3025ae(0xad))[a2_0x3025ae(0x224)](a2_0x3025ae(0x288),'Parent\x20folder\x20name\x20for\x20nested\x20folders')['action'](async(_0xc74ca2,_0x2e9b9b,_0x4208e6)=>{const _0x2b6d9c=a2_0x3025ae,_0x159aa2=new SegmentFolderCreateCommand(),_0x5b9d8b=program[_0x2b6d9c(0xa0)](),_0x19dfa6=await createTDXInstance(_0x5b9d8b),_0x58d679=await _0x159aa2[_0x2b6d9c(0x1e3)]({'options':{..._0x5b9d8b,..._0x4208e6},'args':[_0xc74ca2,_0x2e9b9b],'tdx':_0x19dfa6});process[_0x2b6d9c(0xfd)](_0x58d679);}),program[a2_0x3025ae(0x223)]('activations\x20<segment_name>')['description'](a2_0x3025ae(0x161))[a2_0x3025ae(0x2d2)](async(_0x3dba70,_0x24be96)=>{const _0x4c7932=a2_0x3025ae,_0x8b5a78=new ActivationsCommand(),_0x2e44d9=program[_0x4c7932(0xa0)](),_0x380017=await createTDXInstance(_0x2e44d9),_0x54135c=await _0x8b5a78[_0x4c7932(0x1e3)]({'options':{..._0x2e44d9,..._0x24be96},'args':[_0x3dba70],'tdx':_0x380017});process[_0x4c7932(0xfd)](_0x54135c);});const workflowCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x24d))[a2_0x3025ae(0x213)]('wf')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x238)),wfProjectCmd=workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1fa))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xb4)),wfProjectListAction=async(_0x40a230,_0x4fabcb)=>{const _0xfc0d9f=a2_0x3025ae,_0x4bfe8b=new WorkflowProjectsCommand(),_0x144f0d=program[_0xfc0d9f(0xa0)](),_0x43b5a4=await createTDXInstance(_0x144f0d),_0x55420e=await _0x4bfe8b['run']({'options':{..._0x144f0d,..._0x4fabcb},'args':_0x40a230?[_0x40a230]:[],'tdx':_0x43b5a4});process[_0xfc0d9f(0xfd)](_0x55420e);};wfProjectCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x216))[a2_0x3025ae(0x2d2)](wfProjectListAction),workflowCmd[a2_0x3025ae(0x223)]('projects\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x242))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x29c716,_0x12eea6)=>{const _0x54b7d1=a2_0x3025ae,_0x268a56=new WorkflowWorkflowsCommand(),_0x51e4b2=program['opts'](),_0x46ae64=await createTDXInstance(_0x51e4b2),_0x475e28=await _0x268a56[_0x54b7d1(0x1e3)]({'options':{..._0x51e4b2,..._0x12eea6},'args':_0x29c716?[_0x29c716]:[],'tdx':_0x46ae64});process[_0x54b7d1(0xfd)](_0x475e28);};workflowCmd[a2_0x3025ae(0x223)]('workflows\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19a))[a2_0x3025ae(0x2d2)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x3025ae(0x223)]('session')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1fc)),wfSessionListAction=async(_0x489e9c,_0xf273bd)=>{const _0x221885=a2_0x3025ae,_0x4c5cda=new WorkflowSessionsCommand(),_0x51f3a1=program[_0x221885(0xa0)](),_0x2292c0=await createTDXInstance(_0x51f3a1),_0x1ccb26=await _0x4c5cda[_0x221885(0x1e3)]({'options':{..._0x51f3a1,..._0xf273bd},'args':_0x489e9c?[_0x489e9c]:[],'tdx':_0x2292c0});process[_0x221885(0xfd)](_0x1ccb26);};wfSessionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x155))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x273))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b8),a2_0x3025ae(0x151))['option'](a2_0x3025ae(0xa2),a2_0x3025ae(0x17a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x23c),a2_0x3025ae(0x222))[a2_0x3025ae(0x2d2)](wfSessionListAction),workflowCmd['command']('sessions\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x158))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2b8),a2_0x3025ae(0x151))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa2),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x23c),'End\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x3025ae(0x2d2)](wfSessionListAction);const wfAttemptListAction=async(_0x3068fa,_0x57d110)=>{const _0x5a299e=a2_0x3025ae,_0x47cd85=new WorkflowAttemptsCommand(),_0x511c34=program[_0x5a299e(0xa0)](),_0x42c5fe=await createTDXInstance(_0x511c34),_0x35a3cc=await _0x47cd85[_0x5a299e(0x1e3)]({'options':{..._0x511c34,..._0x57d110},'args':_0x3068fa?[_0x3068fa]:[],'tdx':_0x42c5fe});process[_0x5a299e(0xfd)](_0x35a3cc);},attemptCmd=workflowCmd[a2_0x3025ae(0x223)]('attempt')[a2_0x3025ae(0x27a)]('Workflow\x20attempt\x20management')[a2_0x3025ae(0x2c6)](a2_0x3025ae(0x299),a2_0x3025ae(0x206))[a2_0x3025ae(0x2c6)](a2_0x3025ae(0xc2),a2_0x3025ae(0x11c))[a2_0x3025ae(0x2c6)](a2_0x3025ae(0x16b),a2_0x3025ae(0xa8))[a2_0x3025ae(0x224)](a2_0x3025ae(0xbe),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x3025ae(0x224)](a2_0x3025ae(0xa7),'Reason\x20for\x20killing\x20the\x20attempt')[a2_0x3025ae(0x224)](a2_0x3025ae(0x12a),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x3025ae(0x224)](a2_0x3025ae(0xce),a2_0x3025ae(0x2c3))['option']('--force',a2_0x3025ae(0x142))[a2_0x3025ae(0x224)]('--include-retried',a2_0x3025ae(0x1e0))[a2_0x3025ae(0x2d2)](async(_0x5ae7c2,_0x361ab9,_0x2005f5,_0x3dbda6)=>{const _0x3c3f79=a2_0x3025ae;if(_0x5ae7c2===_0x3c3f79(0xb5)){await wfAttemptListAction(_0x361ab9,_0x3dbda6);return;}if(!_0x5ae7c2){attemptCmd[_0x3c3f79(0x178)]();return;}const _0x5aa5f6=program['opts'](),_0x4a13a0=await createTDXInstance(_0x5aa5f6);let _0x2e6b79=0x0;if(!_0x361ab9){const _0x30751d=new WorkflowAttemptCommand();_0x2e6b79=await _0x30751d[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0x2ab)){const _0x472950=new WorkflowLogsCommand();_0x2e6b79=await _0x472950[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':_0x2005f5?[_0x5ae7c2,_0x2005f5]:[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0xf4)){const _0x22f654=new WorkflowTasksCommand();_0x2e6b79=await _0x22f654['run']({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9==='kill'){const _0x24cc6e=new WorkflowKillCommand();_0x2e6b79=await _0x24cc6e[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x5ae7c2],'tdx':_0x4a13a0});}else{if(_0x361ab9===_0x3c3f79(0x19c)){const _0x38fcb6=new WorkflowRetryCommand();_0x2e6b79=await _0x38fcb6[_0x3c3f79(0x1e3)]({'options':{..._0x5aa5f6,..._0x3dbda6},'args':[_0x3c3f79(0x1f1)+_0x5ae7c2],'tdx':_0x4a13a0});}else console[_0x3c3f79(0x230)](_0x3c3f79(0x1c3)+_0x361ab9),console[_0x3c3f79(0x230)](_0x3c3f79(0x148)),_0x2e6b79=0x1;}}}}process[_0x3c3f79(0xfd)](_0x2e6b79);});attemptCmd[a2_0x3025ae(0x223)]('list\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x13a))['option'](a2_0x3025ae(0x1f6),'Include\x20retried\x20attempts')['action'](wfAttemptListAction),workflowCmd[a2_0x3025ae(0x223)]('attempts\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x106))['option'](a2_0x3025ae(0x1f6),a2_0x3025ae(0x7f))['action'](wfAttemptListAction),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x24a))['description'](a2_0x3025ae(0x208))[a2_0x3025ae(0x224)]('--follow',a2_0x3025ae(0x80))[a2_0x3025ae(0x224)]('--session-id\x20<id>',a2_0x3025ae(0x241))[a2_0x3025ae(0x224)](a2_0x3025ae(0x215),a2_0x3025ae(0x176))[a2_0x3025ae(0x2d2)](async(_0x7d9c57,_0x4886fc)=>{const _0x16587b=a2_0x3025ae,_0x3db653=new WorkflowTimelineCommand(),_0x8d3ace=program['opts'](),_0x5762eb=await createTDXInstance(_0x8d3ace),_0x4be662=await _0x3db653[_0x16587b(0x1e3)]({'options':{..._0x8d3ace,..._0x4886fc},'args':_0x7d9c57?[_0x7d9c57]:[],'tdx':_0x5762eb});process['exit'](_0x4be662);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd3))[a2_0x3025ae(0x27a)]('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2c4),a2_0x3025ae(0x114))['option']('--params\x20<json>',a2_0x3025ae(0x1bf))[a2_0x3025ae(0x2d2)](async(_0x101bbc,_0x137e48)=>{const _0x4e67c6=a2_0x3025ae,_0x175de2=new WorkflowRetryCommand(),_0x51c316=program[_0x4e67c6(0xa0)](),_0x2d5572=await createTDXInstance(_0x51c316),_0xeab6cf=await _0x175de2['run']({'options':{..._0x51c316,..._0x137e48},'args':[_0x101bbc],'tdx':_0x2d5572});process[_0x4e67c6(0xfd)](_0xeab6cf);}),workflowCmd['command'](a2_0x3025ae(0xd0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1cf))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1d1),a2_0x3025ae(0x1cd),(_0x2cf5d4,_0x428be1=[])=>[..._0x428be1,_0x2cf5d4],[])['option'](a2_0x3025ae(0x125),a2_0x3025ae(0x113))[a2_0x3025ae(0x2d2)](async(_0x2cb56b,_0x2f0892)=>{const _0xbf02df=a2_0x3025ae,_0x5429b2=new WorkflowRunCommand(),_0x360a80=program[_0xbf02df(0xa0)](),_0x3d58f0=await createTDXInstance(_0x360a80),_0x2156bc=await _0x5429b2[_0xbf02df(0x1e3)]({'options':{..._0x360a80,..._0x2f0892},'args':_0x2cb56b?[_0x2cb56b]:[],'tdx':_0x3d58f0});process[_0xbf02df(0xfd)](_0x2156bc);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14a))['description'](a2_0x3025ae(0x1ef))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x101))[a2_0x3025ae(0x2d2)](async(_0x534a46,_0x4d7e87,_0x40a17a)=>{const _0x4264b3=a2_0x3025ae,_0x5bff5b=new WorkflowDownloadCommand(),_0x1296c9=program[_0x4264b3(0xa0)](),_0x4a03fc=await createTDXInstance(_0x1296c9),_0x55d5b2=await _0x5bff5b[_0x4264b3(0x1e3)]({'options':{..._0x1296c9,..._0x40a17a},'args':[_0x534a46,_0x4d7e87||'.'],'tdx':_0x4a03fc});process[_0x4264b3(0xfd)](_0x55d5b2);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x270))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf2))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x254))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x1ac))[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))['action'](async(_0x94579b,_0x443c97,_0x15df4f)=>{const _0xf2b743=a2_0x3025ae,_0x1a7d7f=new WorkflowPullCommand(),_0x562332=program['opts'](),_0x3c1ed4=await createTDXInstance(_0x562332),_0x90b6a1=await _0x1a7d7f['run']({'options':{..._0x562332,..._0x15df4f},'args':_0x443c97?[_0x94579b,_0x443c97]:[_0x94579b],'tdx':_0x3c1ed4});process[_0xf2b743(0xfd)](_0x90b6a1);}),workflowCmd['command']('push\x20[source-dir]')[a2_0x3025ae(0x27a)]('Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data')[a2_0x3025ae(0x224)]('--revision\x20<revision>',a2_0x3025ae(0x210))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0xdc))['option'](a2_0x3025ae(0x191),a2_0x3025ae(0xc7))['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x23978b,_0x18cc5e)=>{const _0x2b1dd1=a2_0x3025ae,_0x15928a=new WorkflowPushCommand(),_0x1e0cd2=program[_0x2b1dd1(0xa0)](),_0x4186cf=await createTDXInstance(_0x1e0cd2),_0xcb591c=await _0x15928a['run']({'options':{..._0x1e0cd2,..._0x18cc5e},'args':_0x23978b?[_0x23978b]:[],'tdx':_0x4186cf});process[_0x2b1dd1(0xfd)](_0xcb591c);}),workflowCmd[a2_0x3025ae(0x223)]('upload\x20[project-name-or-dir]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0xb7))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x90))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),a2_0x3025ae(0x136))[a2_0x3025ae(0x224)](a2_0x3025ae(0x191),a2_0x3025ae(0xc7))[a2_0x3025ae(0x2d2)](async(_0x4e99d3,_0xc8ed36)=>{const _0x20bc6f=a2_0x3025ae,_0x2d5284=new WorkflowUploadCommand(),_0x4444ef=program[_0x20bc6f(0xa0)](),_0x2f9ce9=await createTDXInstance(_0x4444ef),_0x193f6d=await _0x2d5284[_0x20bc6f(0x1e3)]({'options':{..._0x4444ef,..._0xc8ed36},'args':_0x4e99d3?[_0x4e99d3]:[],'tdx':_0x2f9ce9});process[_0x20bc6f(0xfd)](_0x193f6d);}),workflowCmd[a2_0x3025ae(0x223)]('clone\x20[source-dir]')['description'](a2_0x3025ae(0x244))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x1ae))[a2_0x3025ae(0x224)](a2_0x3025ae(0xa3),'Custom\x20revision\x20name\x20(default:\x20timestamp)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),'Preview\x20without\x20creating\x20the\x20project')[a2_0x3025ae(0x224)](a2_0x3025ae(0x191),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x2c8346,_0x4dd2fe)=>{const _0x31ec78=a2_0x3025ae,_0x208418=new WorkflowCloneCommand(),_0x413d1f=program[_0x31ec78(0xa0)](),_0x5a848e=await createTDXInstance(_0x413d1f),_0x465c34=await _0x208418[_0x31ec78(0x1e3)]({'options':{..._0x413d1f,..._0x4dd2fe},'args':_0x2c8346?[_0x2c8346]:[],'tdx':_0x5a848e});process['exit'](_0x465c34);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2a0))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15e))['action'](async(_0x19049d,_0x47971e)=>{const _0x323a11=a2_0x3025ae,_0x36e3ad=new WorkflowDeleteCommand(),_0x55b911=program[_0x323a11(0xa0)](),_0x1133ed=await createTDXInstance(_0x55b911),_0x5d3cc3=await _0x36e3ad['run']({'options':{..._0x55b911,..._0x47971e},'args':[_0x19049d],'tdx':_0x1133ed});process[_0x323a11(0xfd)](_0x5d3cc3);}),workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x23a))['description'](a2_0x3025ae(0x2a9))[a2_0x3025ae(0x224)]('--clear',a2_0x3025ae(0x25d))[a2_0x3025ae(0x2d2)](async(_0x4cf6ba,_0x2589d8)=>{const _0x9f746c=a2_0x3025ae,_0x36a7b8=new WorkflowUseCommand(),_0x398705=program[_0x9f746c(0xa0)](),_0x55d89a=await createTDXInstance(_0x398705),_0xe77619=await _0x36a7b8[_0x9f746c(0x1e3)]({'options':{..._0x398705,..._0x2589d8},'args':_0x4cf6ba?[_0x4cf6ba]:[],'tdx':_0x55d89a});process[_0x9f746c(0xfd)](_0xe77619);});const wfSecretsCmd=workflowCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x170))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xfa));wfSecretsCmd[a2_0x3025ae(0x223)]('list\x20[project]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16f))[a2_0x3025ae(0x2d2)](async(_0xbfa37a,_0x1c41b8)=>{const _0x41ef7d=a2_0x3025ae,_0x266e46=new WorkflowSecretsListCommand(),_0x51463e=program[_0x41ef7d(0xa0)](),_0x5025b=await createTDXInstance(_0x51463e),_0x267d99=await _0x266e46[_0x41ef7d(0x1e3)]({'options':{..._0x51463e,..._0x1c41b8},'args':_0xbfa37a?[_0xbfa37a]:[],'tdx':_0x5025b});process['exit'](_0x267d99);}),wfSecretsCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1a1))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x23d))[a2_0x3025ae(0x2d2)](async(_0x55b5c1,_0x381500)=>{const _0x12ced7=a2_0x3025ae,_0x1fa64f=new WorkflowSecretsSetCommand(),_0x4255f7=program[_0x12ced7(0xa0)](),_0x551d37=await createTDXInstance(_0x4255f7),_0x7d4f91=await _0x1fa64f[_0x12ced7(0x1e3)]({'options':{..._0x4255f7,..._0x381500},'args':_0x55b5c1,'tdx':_0x551d37});process[_0x12ced7(0xfd)](_0x7d4f91);}),wfSecretsCmd[a2_0x3025ae(0x223)]('delete\x20<args...>')[a2_0x3025ae(0x27a)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](async(_0x3216ef,_0x6518dc)=>{const _0x3bcb23=a2_0x3025ae,_0x3b7693=new WorkflowSecretsDeleteCommand(),_0x29271f=program['opts'](),_0x56faac=await createTDXInstance(_0x29271f),_0x208bc5=await _0x3b7693[_0x3bcb23(0x1e3)]({'options':{..._0x29271f,..._0x6518dc},'args':_0x3216ef,'tdx':_0x56faac});process['exit'](_0x208bc5);});const jobCmd=program[a2_0x3025ae(0x223)]('job')['description'](a2_0x3025ae(0x145)),jobListAction=async _0x51f64d=>{const _0x34b07d=a2_0x3025ae,_0x29991f=new JobListCommand(),_0x291720=program[_0x34b07d(0xa0)](),_0x551130=await createTDXInstance(_0x291720),_0x47e3e5=await _0x29991f[_0x34b07d(0x1e3)]({'options':{..._0x291720,..._0x51f64d},'args':[],'tdx':_0x551130});process['exit'](_0x47e3e5);};jobCmd['command'](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x10b))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x22b))['action'](jobListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1ec),{'hidden':!![]})[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11f))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x22b))[a2_0x3025ae(0x2d2)](jobListAction),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b6))[a2_0x3025ae(0x2d2)](async(_0x1a0a3c,_0x338ee9)=>{const _0x4b34a1=a2_0x3025ae,_0x96515b=new JobShowCommand(),_0x44b32a=program[_0x4b34a1(0xa0)](),_0xf71c8c=await createTDXInstance(_0x44b32a),_0x2f6c23=await _0x96515b['run']({'options':{..._0x44b32a,..._0x338ee9},'args':[_0x1a0a3c],'tdx':_0xf71c8c});process['exit'](_0x2f6c23);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x276))['description'](a2_0x3025ae(0x2c2))[a2_0x3025ae(0x2d2)](async(_0x12a7b4,_0x751e0e)=>{const _0x35b1a6=a2_0x3025ae,_0x3e483a=new JobKillCommand(),_0x1a3613=program[_0x35b1a6(0xa0)](),_0x43b7aa=await createTDXInstance(_0x1a3613),_0x36dc79=await _0x3e483a[_0x35b1a6(0x1e3)]({'options':{..._0x1a3613,..._0x751e0e},'args':[_0x12a7b4],'tdx':_0x43b7aa});process['exit'](_0x36dc79);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x188))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x15b))['option']('--job-type\x20<type>',a2_0x3025ae(0x2d7),'trino')[a2_0x3025ae(0x224)]('-f,\x20--file\x20<path>',a2_0x3025ae(0x130))[a2_0x3025ae(0x224)]('--database\x20<name>',a2_0x3025ae(0x2a1),a2_0x3025ae(0x1e7))[a2_0x3025ae(0x2d2)](async(_0x7b47e6,_0x5967d)=>{const _0x33c7df=a2_0x3025ae,_0x9cea15=new JobSubmitCommand(),_0x558f20=program[_0x33c7df(0xa0)](),_0x67f09b=await createTDXInstance(_0x558f20),_0x346555=await _0x9cea15[_0x33c7df(0x1e3)]({'options':{..._0x558f20,..._0x5967d},'args':_0x7b47e6?[_0x7b47e6]:[],'tdx':_0x67f09b});process[_0x33c7df(0xfd)](_0x346555);}),jobCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1ad))['description'](a2_0x3025ae(0x121))[a2_0x3025ae(0x2d2)](async(_0x60be2a,_0x7d9f68)=>{const _0x16080c=a2_0x3025ae,_0x111daf=new JobResultCommand(),_0xaadf9=program[_0x16080c(0xa0)](),_0x4d17a7=await createTDXInstance(_0xaadf9),_0x1b025d=await _0x111daf[_0x16080c(0x1e3)]({'options':{..._0xaadf9,..._0x7d9f68},'args':[_0x60be2a],'tdx':_0x4d17a7});process[_0x16080c(0xfd)](_0x1b025d);});const llmCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1d5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d4));llmCmd['command'](a2_0x3025ae(0x9d))[a2_0x3025ae(0x27a)]('Set\x20current\x20project\x20context\x20for\x20agent\x20operations')[a2_0x3025ae(0x2d2)](async(_0xa12aa2,_0x307273)=>{const _0x14c870=a2_0x3025ae,_0x36ce56=new LLMUseCommand(),_0x2ca100=program[_0x14c870(0xa0)](),_0x2c45bf=await createTDXInstance(_0x2ca100),_0xc23a25=await _0x36ce56[_0x14c870(0x1e3)]({'options':{..._0x2ca100,..._0x307273},'args':[_0xa12aa2],'tdx':_0x2c45bf});process[_0x14c870(0xfd)](_0xc23a25);}),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x20b))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x124))['action'](async _0x5810e4=>{const _0x591c56=a2_0x3025ae,_0x2dd22a=new LLMModelsCommand(),_0x428747=program[_0x591c56(0xa0)](),_0x316f35=await createTDXInstance(_0x428747),_0x507686=await _0x2dd22a[_0x591c56(0x1e3)]({'options':{..._0x428747,..._0x5810e4},'args':[],'tdx':_0x316f35});process[_0x591c56(0xfd)](_0x507686);});const projectCmd=llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1fa))[a2_0x3025ae(0x27a)]('LLM\x20project\x20management'),llmProjectListAction=async(_0x4512e2,_0x5bb5de)=>{const _0x18bbcd=a2_0x3025ae,_0x49908a=new LLMProjectsCommand(),_0xe6d0f8=program['opts'](),_0x242691=await createTDXInstance(_0xe6d0f8),_0x4ea355=await _0x49908a[_0x18bbcd(0x1e3)]({'options':{..._0xe6d0f8,..._0x5bb5de},'args':_0x4512e2?[_0x4512e2]:[],'tdx':_0x242691});process['exit'](_0x4ea355);};projectCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x237))[a2_0x3025ae(0x2d2)](llmProjectListAction),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12d))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x167))[a2_0x3025ae(0x2d2)](llmProjectListAction),projectCmd['command']('create\x20<name>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2ca))[a2_0x3025ae(0x224)]('--description\x20<text>',a2_0x3025ae(0xe4))[a2_0x3025ae(0x2d2)](async(_0x29d73c,_0x58d1bf)=>{const _0x2b2ab8=a2_0x3025ae,_0x35943e=new LLMProjectCreateCommand(),_0xfffe92=program[_0x2b2ab8(0xa0)](),_0x40e1db=await createTDXInstance(_0xfffe92),_0x232d60=await _0x35943e['run']({'options':{..._0xfffe92,..._0x58d1bf},'args':[_0x29d73c],'tdx':_0x40e1db});process[_0x2b2ab8(0xfd)](_0x232d60);}),projectCmd[a2_0x3025ae(0x223)]('delete\x20<name>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0xc3))[a2_0x3025ae(0x2d2)](async(_0x555682,_0x3d4af7)=>{const _0xca6514=a2_0x3025ae,_0x1c8706=new LLMProjectDeleteCommand(),_0x771f2d=program['opts'](),_0x5d4961=await createTDXInstance(_0x771f2d),_0x4c4d9e=await _0x1c8706['run']({'options':{..._0x771f2d,..._0x3d4af7},'args':[_0x555682],'tdx':_0x5d4961});process[_0xca6514(0xfd)](_0x4c4d9e);}),projectCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x292))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1ff),'Output\x20folder\x20(default:\x20{project_name}.llm)')['option'](a2_0x3025ae(0x1a6),a2_0x3025ae(0xcc))['action'](async(_0x4ae1b9,_0x322b02)=>{const _0xaa98ce=a2_0x3025ae,_0x5f0a3f=new LLMProjectBackupCommand(),_0x3a908b=program['opts'](),_0x2beb86=await createTDXInstance(_0x3a908b),_0x417604=await _0x5f0a3f[_0xaa98ce(0x1e3)]({'options':{..._0x3a908b,..._0x322b02},'args':[_0x4ae1b9],'tdx':_0x2beb86});process[_0xaa98ce(0xfd)](_0x417604);}),projectCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x272))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x289))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a7),a2_0x3025ae(0x17c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1a6),a2_0x3025ae(0x20c))[a2_0x3025ae(0x2d2)](async(_0x511ed,_0x1d063b)=>{const _0x3d9406=a2_0x3025ae,_0x2f1651=new LLMProjectRestoreCommand(),_0x34b4d6=program['opts'](),_0xbbc8fa=await createTDXInstance(_0x34b4d6),_0x379c8d=await _0x2f1651[_0x3d9406(0x1e3)]({'options':{..._0x34b4d6,..._0x1d063b},'args':[_0x511ed],'tdx':_0xbbc8fa});process[_0x3d9406(0xfd)](_0x379c8d);});const llmAgentListAction=async(_0x274393,_0x3e9bb1)=>{const _0x624a70=a2_0x3025ae,_0xb468f2=new LLMAgentsCommand(),_0x29d6e6=program[_0x624a70(0xa0)](),_0x2fd39e=await createTDXInstance(_0x29d6e6),_0x4c7f66=await _0xb468f2[_0x624a70(0x1e3)]({'options':{..._0x29d6e6,..._0x3e9bb1},'args':_0x274393?[_0x274393]:[],'tdx':_0x2fd39e});process[_0x624a70(0xfd)](_0x4c7f66);};llmCmd['command'](a2_0x3025ae(0x174))['description'](a2_0x3025ae(0x16e))[a2_0x3025ae(0x2d2)](llmAgentListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x174))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16e))[a2_0x3025ae(0x2d2)](llmAgentListAction),llmCmd['command'](a2_0x3025ae(0x282))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf3))[a2_0x3025ae(0x224)](a2_0x3025ae(0x220),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')[a2_0x3025ae(0x2d2)](async(_0x5f001c,_0x3efe61)=>{const _0x1232fe=a2_0x3025ae,_0x205d4e=new LLMHistoryCommand(),_0x1a2baf=program['opts'](),_0x10e58d=await createTDXInstance(_0x1a2baf),_0x3fd9a8=await _0x205d4e[_0x1232fe(0x1e3)]({'options':{..._0x1a2baf,..._0x3efe61},'args':_0x5f001c?[_0x5f001c]:[],'tdx':_0x10e58d});process[_0x1232fe(0xfd)](_0x3fd9a8);}),llmCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x103))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2d0))[a2_0x3025ae(0x224)](a2_0x3025ae(0x22c),a2_0x3025ae(0x95),'4000')['option'](a2_0x3025ae(0x2ce),a2_0x3025ae(0x22f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x1b9),a2_0x3025ae(0xbd))[a2_0x3025ae(0x2d2)](async _0x46544e=>{const _0x17bc37=a2_0x3025ae,_0x523a41=new LLMProxyCommand(),_0x155a7f=program[_0x17bc37(0xa0)](),_0x8934dd=await createTDXInstance(_0x155a7f),_0x17d2e2={..._0x46544e,'port':_0x46544e[_0x17bc37(0x1d8)]?parseInt(_0x46544e['port'],0xa):undefined},_0x3007f4=await _0x523a41[_0x17bc37(0x1e3)]({'options':{..._0x155a7f,..._0x17d2e2},'args':[],'tdx':_0x8934dd});process[_0x17bc37(0xfd)](_0x3007f4);}),program[a2_0x3025ae(0x223)]('claude\x20[args...]')[a2_0x3025ae(0x285)](a2_0x3025ae(0xaf))['description']('Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy')[a2_0x3025ae(0x224)](a2_0x3025ae(0x117),a2_0x3025ae(0x2b9),a2_0x3025ae(0x15f))['option']('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x3025ae(0x224)](a2_0x3025ae(0x14d),a2_0x3025ae(0xc4))[a2_0x3025ae(0x224)](a2_0x3025ae(0x26d),a2_0x3025ae(0x92))['option'](a2_0x3025ae(0x219),a2_0x3025ae(0x26b))[a2_0x3025ae(0x14b)]()[a2_0x3025ae(0x2c0)](!![])[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),'\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')[a2_0x3025ae(0x2d2)](async(_0x574af6,_0x4cad80)=>{const _0x134617=a2_0x3025ae,_0x1ebc95=program[_0x134617(0xa0)](),_0x14f70b=Array['isArray'](_0x574af6)?_0x574af6:[];if(_0x14f70b[0x0]==='statusline'){const _0x96b750=new ClaudeStatuslineCommand(),_0x3cd41d=await _0x96b750[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b[_0x134617(0x2bb)](0x1),'tdx':null});process[_0x134617(0xfd)](_0x3cd41d);}if(_0x14f70b[0x0]===_0x134617(0x285)){const _0x592384=new ClaudeUsageCommand(),_0x23474b=await _0x592384[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b['slice'](0x1),'tdx':null});process[_0x134617(0xfd)](_0x23474b);}const _0x56bcb5=new ClaudeCommand(),_0x451fa9=await createTDXInstance(_0x1ebc95),_0x22e2df=await _0x56bcb5[_0x134617(0x1e3)]({'options':{..._0x1ebc95,..._0x4cad80},'args':_0x14f70b,'tdx':_0x451fa9});process['exit'](_0x22e2df);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x227))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x10c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x18e),a2_0x3025ae(0x1ce))[a2_0x3025ae(0x2d2)](async(_0x2eb51d,_0x374f7e,_0x4549df)=>{const _0x177417=a2_0x3025ae,_0x3ad130=new UseCommand(),_0x38190f=program[_0x177417(0xa0)](),_0x54b8d1=[];if(_0x2eb51d)_0x54b8d1['push'](_0x2eb51d);if(_0x374f7e)_0x54b8d1[_0x177417(0x86)](_0x374f7e);const _0x1308f9=await _0x3ad130['run']({'options':{..._0x38190f,..._0x4549df},'args':_0x54b8d1,'tdx':null});process['exit'](_0x1308f9);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x198))['description'](a2_0x3025ae(0x279))[a2_0x3025ae(0x224)](a2_0x3025ae(0x220),a2_0x3025ae(0x1fd))[a2_0x3025ae(0x2d2)](async _0x36de90=>{const _0x5b8be7=a2_0x3025ae,_0x4c1c92=new ChatsCommand(),_0x17037f=program[_0x5b8be7(0xa0)](),_0x12e759=await createTDXInstance(_0x17037f),_0x3a7f58=await _0x4c1c92['run']({'options':{..._0x17037f,..._0x36de90},'args':[],'tdx':_0x12e759});process[_0x5b8be7(0xfd)](_0x3a7f58);});const authCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x183))['description'](a2_0x3025ae(0xc8));async function runAuthStatusCommand(_0x4e393a){const _0x5870c5=a2_0x3025ae,_0x393541=new AuthStatusCommand(),_0x375aef=program[_0x5870c5(0xa0)](),_0x4d16c7=await createTDXInstance(_0x375aef),_0x4d42cc=await _0x393541[_0x5870c5(0x1e3)]({'options':{..._0x375aef,..._0x4e393a},'args':[],'tdx':_0x4d16c7});process[_0x5870c5(0xfd)](_0x4d42cc);}authCmd[a2_0x3025ae(0x2d2)](runAuthStatusCommand),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1e8))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x3025ae(0x2d2)](runAuthStatusCommand),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xf0))[a2_0x3025ae(0x27a)]('Setup\x20API\x20key\x20authentication\x20interactively')['addHelpText'](a2_0x3025ae(0x156),'\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 _0x5c341f=>{const _0x559253=a2_0x3025ae,_0x481b2f=new AuthSetupCommand(),_0x38b4ef=program[_0x559253(0xa0)](),_0x56d6a0=await createTDXInstance(_0x38b4ef),_0x397a90=await _0x481b2f[_0x559253(0x1e3)]({'options':{..._0x38b4ef,..._0x5c341f},'args':[],'tdx':_0x56d6a0});process[_0x559253(0xfd)](_0x397a90);}),authCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1a9))[a2_0x3025ae(0x27a)]('Remove\x20API\x20key\x20from\x20system\x20keychain')[a2_0x3025ae(0xe2)]('after',a2_0x3025ae(0xcb))[a2_0x3025ae(0x2d2)](async _0x2de696=>{const _0x3610d2=a2_0x3025ae,_0x57ad7c=new AuthClearCommand(),_0x16eb20=program['opts'](),_0x198502=await _0x57ad7c[_0x3610d2(0x1e3)]({'options':{..._0x16eb20,..._0x2de696},'args':[],'tdx':null});process[_0x3610d2(0xfd)](_0x198502);});const userCmd=program['command'](a2_0x3025ae(0x197))[a2_0x3025ae(0x27a)]('User\x20management\x20commands'),userListAction=async _0x1bcaf8=>{const _0x16200c=a2_0x3025ae,_0x544312=new UserListCommand(),_0x3bb125=program[_0x16200c(0xa0)](),_0x2057b4=await createTDXInstance(_0x3bb125),_0xacaa91=await _0x544312[_0x16200c(0x1e3)]({'options':{..._0x3bb125,..._0x1bcaf8},'args':[],'tdx':_0x2057b4});process[_0x16200c(0xfd)](_0xacaa91);};userCmd['action'](async _0x40a9a6=>{const _0x40e27a=a2_0x3025ae,_0x23305c=new UserCommand(),_0x374c74=program['opts'](),_0x52d53b=await createTDXInstance(_0x374c74),_0x43d734=await _0x23305c[_0x40e27a(0x1e3)]({'options':{..._0x374c74,..._0x40a9a6},'args':[],'tdx':_0x52d53b});process[_0x40e27a(0xfd)](_0x43d734);}),userCmd[a2_0x3025ae(0x223)]('list')[a2_0x3025ae(0x27a)]('List\x20all\x20users\x20in\x20the\x20account')[a2_0x3025ae(0x2d2)](userListAction),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1b7))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x135))[a2_0x3025ae(0x2d2)](userListAction),program[a2_0x3025ae(0x223)]('profiles')[a2_0x3025ae(0x27a)]('List\x20all\x20available\x20profiles')['action'](async _0x460658=>{const _0x1e2a4e=a2_0x3025ae,_0x12d86b=new ProfilesCommand(),_0x3aba69=program[_0x1e2a4e(0xa0)](),_0x4da4af=await _0x12d86b[_0x1e2a4e(0x1e3)]({'options':{..._0x3aba69,..._0x460658},'args':[],'tdx':null});process['exit'](_0x4da4af);});const profileCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0xe3))[a2_0x3025ae(0x27a)]('Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)');profileCmd[a2_0x3025ae(0x2d2)](()=>{profileCmd['outputHelp']();});const profileListAction=async _0x2a39a7=>{const _0x296f97=a2_0x3025ae,_0x5ec21e=new ProfilesCommand(),_0x19c1a4=program['opts'](),_0x5154f5=await _0x5ec21e['run']({'options':{..._0x19c1a4,..._0x2a39a7},'args':[],'tdx':null});process[_0x296f97(0xfd)](_0x5154f5);};profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x182))[a2_0x3025ae(0x2d2)](profileListAction),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x137))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x23f))[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0x200))[a2_0x3025ae(0x2d2)](async(_0x174c74,_0x9380e9)=>{const _0x247b26=a2_0x3025ae,_0x3d01f8=new ProfileCreateCommand(),_0x288cf6=program[_0x247b26(0xa0)](),_0x91d71e=await _0x3d01f8[_0x247b26(0x1e3)]({'options':{..._0x288cf6,..._0x9380e9},'args':_0x174c74?[_0x174c74]:[],'tdx':null});process[_0x247b26(0xfd)](_0x91d71e);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c8))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1b3))[a2_0x3025ae(0xe2)](a2_0x3025ae(0x156),a2_0x3025ae(0x14c))[a2_0x3025ae(0x2d2)](async(_0x2b5f8f,_0x5278ac)=>{const _0x2273bf=a2_0x3025ae,_0x725e77=new ProfileRemoveCommand(),_0x223406=program[_0x2273bf(0xa0)](),_0x586b5e=await _0x725e77['run']({'options':{..._0x223406,..._0x5278ac},'args':[_0x2b5f8f],'tdx':null});process[_0x2273bf(0xfd)](_0x586b5e);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1f9))[a2_0x3025ae(0xe2)]('after',a2_0x3025ae(0x98))[a2_0x3025ae(0x2d2)](async(_0x1070c1,_0x21a0f3)=>{const _0x457105=a2_0x3025ae,_0x1a78ab=new ProfileSetCommand(),_0x5cea57=program[_0x457105(0xa0)](),_0x3db6b2=await _0x1a78ab[_0x457105(0x1e3)]({'options':{..._0x5cea57,..._0x21a0f3},'args':[_0x1070c1],'tdx':null});process[_0x457105(0xfd)](_0x3db6b2);}),profileCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd4))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xf1))['addHelpText'](a2_0x3025ae(0x156),a2_0x3025ae(0xac))[a2_0x3025ae(0x2d2)](async(_0xe9fa13,_0x3a6525)=>{const _0x35d9db=a2_0x3025ae,_0x1517d3=new ProfileUseCommand(),_0xeb2bf9=program[_0x35d9db(0xa0)](),_0x464370=await _0x1517d3['run']({'options':{..._0xeb2bf9,..._0x3a6525},'args':[_0xe9fa13],'tdx':null});process['exit'](_0x464370);});const engageCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x163))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x138)),createEngageAction=_0x3fd699=>{return async(_0x238036,_0x58fecb)=>{const _0x4f3ace=a2_0x238e,_0x327361=new _0x3fd699(),_0x237827=program[_0x4f3ace(0xa0)](),_0x2e67da=await createTDXInstance(_0x237827),_0xccc7b2=await _0x327361[_0x4f3ace(0x1e3)]({'options':{..._0x237827,..._0x58fecb},'args':[_0x238036],'tdx':_0x2e67da});process[_0x4f3ace(0xfd)](_0xccc7b2);};},createEngageNoArgAction=_0x3b9976=>{return async _0x391a54=>{const _0x331fd3=a2_0x238e,_0x1a7191=new _0x3b9976(),_0x2f95ed=program[_0x331fd3(0xa0)](),_0x538229=await createTDXInstance(_0x2f95ed),_0x29aa57=await _0x1a7191['run']({'options':{..._0x2f95ed,..._0x391a54},'args':[],'tdx':_0x538229});process[_0x331fd3(0xfd)](_0x29aa57);};},campaignCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12b))['description'](a2_0x3025ae(0x1af)),campaignListAction=async(_0x1cdbd1,_0x170aad)=>{const _0x2a7fd7=a2_0x3025ae,_0x304fff=new EngageCampaignsCommand(),_0x30fc2c=program[_0x2a7fd7(0xa0)](),_0x136c13=await createTDXInstance(_0x30fc2c),_0x186891=await _0x304fff[_0x2a7fd7(0x1e3)]({'options':{..._0x30fc2c,..._0x170aad},'args':_0x1cdbd1?[_0x1cdbd1]:[],'tdx':_0x136c13});process[_0x2a7fd7(0xfd)](_0x186891);};campaignCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x19e))[a2_0x3025ae(0x224)]('--type\x20<type>',a2_0x3025ae(0xbf))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x123))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](campaignListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xea))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x266))[a2_0x3025ae(0x224)]('--type\x20<type>',a2_0x3025ae(0xbf))['option'](a2_0x3025ae(0x2b8),a2_0x3025ae(0x123))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](campaignListAction),campaignCmd[a2_0x3025ae(0x223)]('show\x20<name-or-id>')['description']('Show\x20campaign\x20details')['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['option']('--full',a2_0x3025ae(0x229))['action'](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x27e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x246))[a2_0x3025ae(0x109)]('--name\x20<name>',a2_0x3025ae(0x2d5))[a2_0x3025ae(0x109)](a2_0x3025ae(0x10d),a2_0x3025ae(0x26c))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x184))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x204))[a2_0x3025ae(0x224)](a2_0x3025ae(0xff),a2_0x3025ae(0xb9))[a2_0x3025ae(0x224)](a2_0x3025ae(0xb8),'Email\x20sender\x20ID\x20for\x20delivery')['option']('--json-columns\x20<cols>','JSON\x20columns\x20for\x20connector\x20(comma-separated)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x17b),a2_0x3025ae(0x1f5))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2ad),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')['action'](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x3025ae(0x223)]('update\x20<name-or-id>')['description'](a2_0x3025ae(0xd5))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))['option'](a2_0x3025ae(0x19d),a2_0x3025ae(0x20e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x204))[a2_0x3025ae(0x224)](a2_0x3025ae(0xff),a2_0x3025ae(0xb9))[a2_0x3025ae(0x224)]('--email-sender-id\x20<id>',a2_0x3025ae(0x295))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2cb),a2_0x3025ae(0x203))[a2_0x3025ae(0x224)]('--start-at\x20<datetime>',a2_0x3025ae(0x1f5))[a2_0x3025ae(0x224)]('--timezone\x20<tz>',a2_0x3025ae(0x265))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x14f))[a2_0x3025ae(0x27a)]('Delete\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d6),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd['command'](a2_0x3025ae(0x2d4))[a2_0x3025ae(0x27a)]('Launch\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x20a))[a2_0x3025ae(0x27a)]('Pause\x20a\x20campaign')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),'Workspace\x20name')[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x15d))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x207))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xfb))[a2_0x3025ae(0x27a)]('Duplicate\x20a\x20campaign')['option']('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](createEngageAction(EngageCampaignDuplicateCommand));function a2_0x238e(_0x2bc919,_0xc3f894){_0x2bc919=_0x2bc919-0x7b;const _0x58ac2e=a2_0x58ac();let _0x238e49=_0x58ac2e[_0x2bc919];return _0x238e49;}const templateCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x297))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x97)),templateListAction=async(_0xde7821,_0x4e9f09)=>{const _0x3a6e99=a2_0x3025ae,_0x57fcc9=new EngageTemplatesCommand(),_0x8a7b9f=program[_0x3a6e99(0xa0)](),_0x4a394e=await createTDXInstance(_0x8a7b9f),_0x161553=await _0x57fcc9[_0x3a6e99(0x1e3)]({'options':{..._0x8a7b9f,..._0x4e9f09},'args':_0xde7821?[_0xde7821]:[],'tdx':_0x4a394e});process[_0x3a6e99(0xfd)](_0x161553);};templateCmd[a2_0x3025ae(0x223)]('list\x20[pattern]')[a2_0x3025ae(0x27a)]('List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x2d2)](templateListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x179))['description'](a2_0x3025ae(0x7d))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))['action'](templateListAction),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xe5))['description'](a2_0x3025ae(0x173))[a2_0x3025ae(0x224)]('--workspace\x20<name>',a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x21b),a2_0x3025ae(0x229))[a2_0x3025ae(0x2d2)](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x27e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x93))[a2_0x3025ae(0x109)]('--name\x20<name>','Template\x20name')['requiredOption'](a2_0x3025ae(0x2d1),a2_0x3025ae(0x8a))['requiredOption'](a2_0x3025ae(0x24f),a2_0x3025ae(0xe0))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x184))[a2_0x3025ae(0x224)](a2_0x3025ae(0xc9),a2_0x3025ae(0x7e))[a2_0x3025ae(0x224)](a2_0x3025ae(0x165),a2_0x3025ae(0x1ca))[a2_0x3025ae(0x2d2)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x28a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2cc))[a2_0x3025ae(0x224)](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),'New\x20template\x20name')[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d1),a2_0x3025ae(0x8a))[a2_0x3025ae(0x224)]('--html\x20<html>',a2_0x3025ae(0xe0))[a2_0x3025ae(0x224)]('--plaintext\x20<text>',a2_0x3025ae(0x7e))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x3025ae(0x14f))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1df))['option'](a2_0x3025ae(0x116),a2_0x3025ae(0x18a))[a2_0x3025ae(0x224)](a2_0x3025ae(0x2d6),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x214))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x111)),workspaceListAction=async(_0x3dec3b,_0x23b1cb)=>{const _0x5c7cf8=a2_0x3025ae,_0x576948=new EngageWorkspacesCommand(),_0x24ad38=program['opts'](),_0x46cbe7=await createTDXInstance(_0x24ad38),_0x260dba=await _0x576948[_0x5c7cf8(0x1e3)]({'options':{..._0x24ad38,..._0x23b1cb},'args':_0x3dec3b?[_0x3dec3b]:[],'tdx':_0x46cbe7});process['exit'](_0x260dba);};workspaceCmd['command'](a2_0x3025ae(0xab))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d9))[a2_0x3025ae(0x2d2)](workspaceListAction),engageCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x28b))[a2_0x3025ae(0x2d2)](workspaceListAction),workspaceCmd['command'](a2_0x3025ae(0xe5))[a2_0x3025ae(0x27a)]('Show\x20workspace\x20details')[a2_0x3025ae(0x224)](a2_0x3025ae(0x21b),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x3025ae(0x223)]('create')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x27b))[a2_0x3025ae(0x109)](a2_0x3025ae(0x19d),'Workspace\x20name')[a2_0x3025ae(0x224)]('--description\x20<desc>',a2_0x3025ae(0x18d))[a2_0x3025ae(0x2d2)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd['command'](a2_0x3025ae(0x28a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xd6))[a2_0x3025ae(0x224)](a2_0x3025ae(0x19d),a2_0x3025ae(0x13f))[a2_0x3025ae(0x224)](a2_0x3025ae(0x27c),a2_0x3025ae(0x18d))[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x3025ae(0x223)]('delete\x20<name-or-id>')[a2_0x3025ae(0x27a)]('Delete\x20a\x20workspace')['option'](a2_0x3025ae(0x2d6),a2_0x3025ae(0x286))[a2_0x3025ae(0x2d2)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd4))[a2_0x3025ae(0x27a)](a2_0x3025ae(0xd7))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0x131))[a2_0x3025ae(0x27a)]('Data\x20connection\x20management\x20(for\x20activations/exports)'),connectionListAction=async _0x44c9fb=>{const _0x28abfa=a2_0x3025ae,_0x2a5a83=new ConnectionListCommand(),_0x2e8e5c=program[_0x28abfa(0xa0)](),_0x3f6efa=await createTDXInstance(_0x2e8e5c),_0x423ab7=await _0x2a5a83['run']({'options':{..._0x2e8e5c,..._0x44c9fb},'args':[],'tdx':_0x3f6efa});process[_0x28abfa(0xfd)](_0x423ab7);};connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xb5))[a2_0x3025ae(0x27a)]('List\x20all\x20data\x20connections')[a2_0x3025ae(0x2d2)](connectionListAction),program['command'](a2_0x3025ae(0x2b0),{'hidden':!![]})['description'](a2_0x3025ae(0x287))[a2_0x3025ae(0x2d2)](connectionListAction),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x194))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x9c))[a2_0x3025ae(0x2d2)](async(_0x3adbd7,_0x75af3e)=>{const _0xfa909b=a2_0x3025ae,_0xcb9268=new ConnectionShowCommand(),_0x2be5f8=program['opts'](),_0x904094=await createTDXInstance(_0x2be5f8),_0x3297ca=await _0xcb9268[_0xfa909b(0x1e3)]({'options':{..._0x2be5f8,..._0x75af3e},'args':[_0x3adbd7],'tdx':_0x904094});process['exit'](_0x3297ca);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2c9))[a2_0x3025ae(0x27a)]('Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation')[a2_0x3025ae(0x2d2)](async(_0x1add9d,_0x50511e)=>{const _0x3ad40a=a2_0x3025ae,_0x8c892a=new ConnectionSchemaCommand(),_0x402f7e=program['opts'](),_0x24df85=await createTDXInstance(_0x402f7e),_0x26c8cf=await _0x8c892a[_0x3ad40a(0x1e3)]({'options':{..._0x402f7e,..._0x50511e},'args':[_0x1add9d],'tdx':_0x24df85});process['exit'](_0x26c8cf);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x172))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x11e))[a2_0x3025ae(0x2d2)](async _0x294ea4=>{const _0x2973cb=a2_0x3025ae,_0x2484c7=new ConnectionTypesCommand(),_0x120c4c=program[_0x2973cb(0xa0)](),_0x3107d4=await createTDXInstance(_0x120c4c),_0x13a1e1=await _0x2484c7[_0x2973cb(0x1e3)]({'options':{..._0x120c4c,..._0x294ea4},'args':[],'tdx':_0x3107d4});process[_0x2973cb(0xfd)](_0x13a1e1);}),connectionCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x16a))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d3))[a2_0x3025ae(0x2d2)](async(_0x4cbb5a,_0x20ddbd)=>{const _0x320338=a2_0x3025ae,_0x501ae6=new ConnectionSettingsCommand(),_0x333e91=program[_0x320338(0xa0)](),_0x2003e3=await createTDXInstance(_0x333e91),_0x53fe51=await _0x501ae6[_0x320338(0x1e3)]({'options':{..._0x333e91,..._0x20ddbd},'args':[_0x4cbb5a],'tdx':_0x2003e3});process[_0x320338(0xfd)](_0x53fe51);});const journeyCmd=program[a2_0x3025ae(0x223)](a2_0x3025ae(0xeb))[a2_0x3025ae(0x27a)]('CDP\x20Journey\x20Orchestration\x20commands'),journeyListAction=async(_0x3f0b76,_0x4536a4)=>{const _0x5503de=a2_0x3025ae,_0x171123=new JourneyListCommand(),_0x24385d=program[_0x5503de(0xa0)](),_0x35fec8=await createTDXInstance(_0x24385d),_0x2402ad=await _0x171123[_0x5503de(0x1e3)]({'options':{..._0x24385d,..._0x4536a4},'args':_0x3f0b76?[_0x3f0b76]:[],'tdx':_0x35fec8});process['exit'](_0x2402ad);};journeyCmd['command']('list\x20[pattern]')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2b2))['action'](journeyListAction),journeyCmd[a2_0x3025ae(0x223)]('view\x20<name-or-path>')[a2_0x3025ae(0x27a)](a2_0x3025ae(0x25a))[a2_0x3025ae(0x224)]('-w,\x20--web',a2_0x3025ae(0x190))[a2_0x3025ae(0x224)](a2_0x3025ae(0x26f),a2_0x3025ae(0x187))['action'](async(_0x2b6d45,_0x351c4a)=>{const _0x417c8d=a2_0x3025ae,_0x4a0ceb=new JourneyViewCommand(),_0x4dfe8b=program[_0x417c8d(0xa0)](),_0x4d9240=await createTDXInstance(_0x4dfe8b),_0x3abed2=await _0x4a0ceb[_0x417c8d(0x1e3)]({'options':{..._0x4dfe8b,..._0x351c4a},'args':[_0x2b6d45],'tdx':_0x4d9240});process[_0x417c8d(0xfd)](_0x3abed2);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2ba))[a2_0x3025ae(0x27a)]('Show\x20journey\x20statistics')['option'](a2_0x3025ae(0x1a4),a2_0x3025ae(0x298))['action'](async(_0x219c8c,_0x17921e)=>{const _0x526ed9=a2_0x3025ae,_0x20a64c=new JourneyStatsCommand(),_0x267010=program[_0x526ed9(0xa0)](),_0x5b52ba=await createTDXInstance(_0x267010),_0x4e46cc=await _0x20a64c[_0x526ed9(0x1e3)]({'options':{..._0x267010,..._0x17921e},'args':[_0x219c8c],'tdx':_0x5b52ba});process[_0x526ed9(0xfd)](_0x4e46cc);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12c))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2c7))[a2_0x3025ae(0x2d2)](async(_0x4567e0,_0xc7381a)=>{const _0x3f91df=a2_0x3025ae,_0x59bf57=new JourneyPauseCommand(),_0x273a58=program[_0x3f91df(0xa0)](),_0x4e83d1=await createTDXInstance(_0x273a58),_0x4743b4=await _0x59bf57['run']({'options':{..._0x273a58,..._0xc7381a},'args':[_0x4567e0],'tdx':_0x4e83d1});process[_0x3f91df(0xfd)](_0x4743b4);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x248))[a2_0x3025ae(0x27a)]('Resume\x20a\x20paused\x20journey')[a2_0x3025ae(0x2d2)](async(_0xdf9c28,_0x3f8331)=>{const _0x2229e1=a2_0x3025ae,_0x57b78f=new JourneyResumeCommand(),_0x5061d2=program[_0x2229e1(0xa0)](),_0xddf8d5=await createTDXInstance(_0x5061d2),_0x1709c7=await _0x57b78f[_0x2229e1(0x1e3)]({'options':{..._0x5061d2,..._0x3f8331},'args':[_0xdf9c28],'tdx':_0xddf8d5});process[_0x2229e1(0xfd)](_0x1709c7);}),journeyCmd['command'](a2_0x3025ae(0x1da))[a2_0x3025ae(0x27a)]('Export\x20journey(s)\x20as\x20YAML\x20files')['option'](a2_0x3025ae(0x150),a2_0x3025ae(0x286))[a2_0x3025ae(0x224)]('--dry-run',a2_0x3025ae(0x82))[a2_0x3025ae(0x2d2)](async(_0x21ee7d,_0x2d45a8)=>{const _0xbcfbb3=a2_0x3025ae,_0x35319a=new JourneyPullCommand(),_0x5bf878=program['opts'](),_0x260b39=await createTDXInstance(_0x5bf878),_0x811eb6=await _0x35319a['run']({'options':{..._0x5bf878,..._0x2d45a8},'args':_0x21ee7d?[_0x21ee7d]:[],'tdx':_0x260b39});process[_0xbcfbb3(0xfd)](_0x811eb6);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x2bd))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x2aa))[a2_0x3025ae(0x2d2)](async(_0x183d52,_0x3f407b)=>{const _0x355615=a2_0x3025ae,_0x30b6ad=new JourneyPushCommand(),_0x21171f=program[_0x355615(0xa0)](),_0x46e0b6=await createTDXInstance(_0x21171f),_0x298d26=await _0x30b6ad['run']({'options':{..._0x21171f,..._0x3f407b},'args':_0x183d52?[_0x183d52]:[],'tdx':_0x46e0b6});process[_0x355615(0xfd)](_0x298d26);}),journeyCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x12e))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x1d0))[a2_0x3025ae(0x2d2)](async(_0x38a545,_0x5ee418)=>{const _0x1d264f=a2_0x3025ae,_0x5cc5db=new JourneyValidateCommand(),_0x5ebde7=program['opts'](),_0x2053c6=await createTDXInstance(_0x5ebde7),_0x571647=await _0x5cc5db['run']({'options':{..._0x5ebde7,..._0x5ee418},'args':_0x38a545?[_0x38a545]:[],'tdx':_0x2053c6});process[_0x1d264f(0xfd)](_0x571647);}),program[a2_0x3025ae(0x223)](a2_0x3025ae(0x1f2))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x7b))[a2_0x3025ae(0x2d2)](journeyListAction);const agentSyncCmd=program['command'](a2_0x3025ae(0x126))[a2_0x3025ae(0x27a)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x13c))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x22a))['option'](a2_0x3025ae(0x23e),a2_0x3025ae(0x94))[a2_0x3025ae(0x224)](a2_0x3025ae(0x225),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x3025ae(0x2d2)](async(_0x4c81f1,_0x5ea7a6,_0x49c875)=>{const _0x4ad9f2=a2_0x3025ae,_0x29613e=new AgentPullCommand(),_0x4ed1c7=program[_0x4ad9f2(0xa0)](),_0x430ff7=await createTDXInstance(_0x4ed1c7),_0x5bc563=[];if(_0x4c81f1)_0x5bc563[_0x4ad9f2(0x86)](_0x4c81f1);if(_0x5ea7a6)_0x5bc563[_0x4ad9f2(0x86)](_0x5ea7a6);const _0x43397e=await _0x29613e[_0x4ad9f2(0x1e3)]({'options':{..._0x4ed1c7,..._0x49c875},'args':_0x5bc563,'tdx':_0x430ff7});process[_0x4ad9f2(0xfd)](_0x43397e);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xc0))[a2_0x3025ae(0x27a)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x3025ae(0x224)]('-f,\x20--force',a2_0x3025ae(0x264))['action'](async(_0x1b6050,_0x4af695)=>{const _0x4cbaf9=a2_0x3025ae,_0x4ae2b0=new AgentPushCommand(),_0x47fc59=program[_0x4cbaf9(0xa0)](),_0x4faaae=await createTDXInstance(_0x47fc59),_0x28eede=await _0x4ae2b0[_0x4cbaf9(0x1e3)]({'options':{..._0x47fc59,..._0x4af695},'args':_0x1b6050?[_0x1b6050]:[],'tdx':_0x4faaae});process[_0x4cbaf9(0xfd)](_0x28eede);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xd8))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x112))['option'](a2_0x3025ae(0xf9),a2_0x3025ae(0x1ae))[a2_0x3025ae(0x2d2)](async(_0x158650,_0x2cddab)=>{const _0x5f2e3e=a2_0x3025ae,_0x3bb1d9=new AgentCloneCommand(),_0x20cedd=program[_0x5f2e3e(0xa0)](),_0x46d0fa=await createTDXInstance(_0x20cedd),_0x2c24ba=await _0x3bb1d9[_0x5f2e3e(0x1e3)]({'options':{..._0x20cedd,..._0x2cddab},'args':_0x158650?[_0x158650]:[],'tdx':_0x46d0fa});process[_0x5f2e3e(0xfd)](_0x2c24ba);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0xab))['description'](a2_0x3025ae(0xbc))[a2_0x3025ae(0x2d2)](llmAgentListAction),agentSyncCmd['command'](a2_0x3025ae(0x132))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x196))[a2_0x3025ae(0x2d2)](async(_0x32c645,_0x1668f6)=>{const _0x595fa1=a2_0x3025ae,_0x370237=new LLMAgentShowCommand(),_0x8f8d5c=program['opts'](),_0x5b55d4=await createTDXInstance(_0x8f8d5c),_0x210315=await _0x370237[_0x595fa1(0x1e3)]({'options':{..._0x8f8d5c,..._0x1668f6},'args':[_0x32c645],'tdx':_0x5b55d4});process['exit'](_0x210315);}),agentSyncCmd['command']('create\x20<name>')['description'](a2_0x3025ae(0x7c))[a2_0x3025ae(0x224)](a2_0x3025ae(0x13e),'System\x20prompt/instructions\x20(default:\x20empty)')[a2_0x3025ae(0x224)](a2_0x3025ae(0x117),a2_0x3025ae(0x169),'claude-4.5-sonnet')['option']('--starter-message\x20<text>',a2_0x3025ae(0x118))['option'](a2_0x3025ae(0x149),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x3025ae(0x224)](a2_0x3025ae(0x26e),a2_0x3025ae(0x180),a2_0x3025ae(0x1ab))[a2_0x3025ae(0x2d2)](async(_0x2a38f0,_0x23a9e8)=>{const _0x1585dd=a2_0x3025ae,_0x18cc8c=new LLMAgentCreateCommand(),_0xfa9a6c=program[_0x1585dd(0xa0)](),_0x88528d=await createTDXInstance(_0xfa9a6c),_0x3e103e=await _0x18cc8c['run']({'options':{..._0xfa9a6c,..._0x23a9e8},'args':[_0x2a38f0],'tdx':_0x88528d});process[_0x1585dd(0xfd)](_0x3e103e);}),agentSyncCmd[a2_0x3025ae(0x223)](a2_0x3025ae(0x1c1))[a2_0x3025ae(0x27a)](a2_0x3025ae(0x16d))['option'](a2_0x3025ae(0x8b),a2_0x3025ae(0x1bd))['option'](a2_0x3025ae(0x267),a2_0x3025ae(0x218))[a2_0x3025ae(0x224)](a2_0x3025ae(0xd2),a2_0x3025ae(0x283))[a2_0x3025ae(0x224)](a2_0x3025ae(0x152),'Starter\x20message')[a2_0x3025ae(0x2d2)](async(_0x59ce57,_0x1ba924)=>{const _0x4f5c64=a2_0x3025ae,_0x52f722=new LLMAgentUpdateCommand(),_0x56b008=program['opts'](),_0x18ef26=await createTDXInstance(_0x56b008),_0x2dc778=await _0x52f722[_0x4f5c64(0x1e3)]({'options':{..._0x56b008,..._0x1ba924},'args':[_0x59ce57],'tdx':_0x18ef26});process[_0x4f5c64(0xfd)](_0x2dc778);}),agentSyncCmd[a2_0x3025ae(0x223)]('delete\x20<agent-name>')['description']('Delete\x20an\x20agent')[a2_0x3025ae(0x2d2)](async(_0x124a37,_0x175bf2)=>{const _0x1f4f21=a2_0x3025ae,_0x5472da=new LLMAgentDeleteCommand(),_0x591f05=program[_0x1f4f21(0xa0)](),_0x17eb93=await createTDXInstance(_0x591f05),_0x507dd6=await _0x5472da[_0x1f4f21(0x1e3)]({'options':{..._0x591f05,..._0x175bf2},'args':[_0x124a37],'tdx':_0x17eb93});process[_0x1f4f21(0xfd)](_0x507dd6);});export{program};export function runCLI(){const _0x96bab1=a2_0x3025ae,_0x506b12=!process[_0x96bab1(0x20d)][_0x96bab1(0x2bb)](0x2)[_0x96bab1(0x15c)];showBriefHelp=_0x506b12,program['parse'](process[_0x96bab1(0x20d)]),_0x506b12&&program[_0x96bab1(0x127)](),process[_0x96bab1(0xe1)]['isTTY']&&process[_0x96bab1(0x20d)][_0x96bab1(0x15c)]>0x2&&!isDevVersion()&&checkForUpdate(currentVersion)[_0x96bab1(0x153)](_0x4f0d40=>{_0x4f0d40&&displayUpdateNotification(_0x4f0d40);})[_0x96bab1(0x2d3)](()=>{});}