@treasuredata/tdx 0.27.1 → 0.27.2
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x5136e2=a2_0x490f;(function(_0x112918,_0x1af543){const _0x4401aa=a2_0x490f,_0x5238f6=_0x112918();while(!![]){try{const _0x7f79bd=-parseInt(_0x4401aa(0x2d7))/0x1+-parseInt(_0x4401aa(0x3bc))/0x2+-parseInt(_0x4401aa(0x1e1))/0x3+-parseInt(_0x4401aa(0x399))/0x4*(-parseInt(_0x4401aa(0x33b))/0x5)+parseInt(_0x4401aa(0x3f3))/0x6*(-parseInt(_0x4401aa(0x234))/0x7)+-parseInt(_0x4401aa(0x22b))/0x8*(parseInt(_0x4401aa(0x2bd))/0x9)+parseInt(_0x4401aa(0x224))/0xa;if(_0x7f79bd===_0x1af543)break;else _0x5238f6['push'](_0x5238f6['shift']());}catch(_0x38d0cc){_0x5238f6['push'](_0x5238f6['shift']());}}}(a2_0x2b90,0xe4ade));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x5136e2(0x30f)][a2_0x5136e2(0x168)](a2_0x5136e2(0x26d))){let versionOutput=a2_0x5136e2(0x330)+currentVersion;buildInfo['gitRevision']&&!currentVersion['includes'](buildInfo[a2_0x5136e2(0x198)])&&(versionOutput+='\x20('+buildInfo[a2_0x5136e2(0x198)]+')'),buildInfo[a2_0x5136e2(0x366)]&&(versionOutput+=a2_0x5136e2(0x2f8)+buildInfo[a2_0x5136e2(0x366)]),console['log'](versionOutput),process[a2_0x5136e2(0x159)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x5136e2(0x2ef);buildInfo[a2_0x5136e2(0x198)]&&!currentVersion[a2_0x5136e2(0x168)](buildInfo[a2_0x5136e2(0x198)])?description+=a2_0x5136e2(0x3ad)+currentVersion+'\x20('+buildInfo['gitRevision']+')':description+=a2_0x5136e2(0x3ad)+currentVersion;program['name'](a2_0x5136e2(0x34f))['description'](description),program[a2_0x5136e2(0x2c0)]('-C,\x20--directory\x20<path>',a2_0x5136e2(0x2c6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x331),a2_0x5136e2(0x32b))[a2_0x5136e2(0x2c0)]('--site\x20<site>',a2_0x5136e2(0x171),a2_0x5136e2(0x3b8))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2c9),a2_0x5136e2(0x1b6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x17e),a2_0x5136e2(0x313))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f0),a2_0x5136e2(0x3e1))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x386),a2_0x5136e2(0x32a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x312),a2_0x5136e2(0x15e))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x37e),a2_0x5136e2(0x370))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1a4),a2_0x5136e2(0x261))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3a1),a2_0x5136e2(0x1f2),![])[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1bc),a2_0x5136e2(0x243),![])[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x385),'Enable\x20verbose\x20logging',![])['option']('--debug',a2_0x5136e2(0x325))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d9),a2_0x5136e2(0x3e9))['option'](a2_0x5136e2(0x341),a2_0x5136e2(0x17a),'30')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x35b),![])[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),a2_0x5136e2(0x3f1),![])[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1c4),'Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x380),a2_0x5136e2(0x2af))['option'](a2_0x5136e2(0x211),a2_0x5136e2(0x1bf))[a2_0x5136e2(0x2c0)]('--parent-segment\x20<name>',a2_0x5136e2(0x1e0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x219),'LLM\x20project\x20to\x20use\x20(overrides\x20context)'),program[a2_0x5136e2(0x210)]({'formatHelp':(_0x2bea1a,_0x4aa0b6)=>{const _0x5a9ef4=a2_0x5136e2,_0x275061=_0x4aa0b6[_0x5a9ef4(0x34c)](_0x2bea1a,_0x4aa0b6),_0x122697=0x2,_0xbb2ac6=0x2;function _0x3c8120(_0x2aa28c){const _0x4b1296=_0x5a9ef4,_0x638e8e=_0x2aa28c;return!!(_0x638e8e[_0x4b1296(0x2db)]||_0x638e8e['hidden']);}function _0x5d9009(_0x51273f,_0x315979){const _0x5135ab=_0x5a9ef4;if(_0x315979){const _0x54b135=''+_0x51273f[_0x5135ab(0x388)](_0x275061+_0xbb2ac6)+_0x315979;return _0x54b135;}return _0x51273f;}function _0x130d79(_0x135a75){const _0x404450=_0x5a9ef4;return _0x135a75['join']('\x0a')['replace'](/^/gm,'\x20'[_0x404450(0x396)](_0x122697));}const _0x3e1ad8=[];_0x3e1ad8[_0x5a9ef4(0x37f)]('Usage:\x20'+_0x4aa0b6['commandUsage'](_0x2bea1a));const _0x1cea5a=_0x4aa0b6[_0x5a9ef4(0x340)](_0x2bea1a);_0x1cea5a&&(_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8['push'](_0x1cea5a));const _0x505103=_0x2bea1a['commands']['filter'](_0x45211d=>!_0x3c8120(_0x45211d));if(_0x505103[_0x5a9ef4(0x284)]>0x0){if(_0x2bea1a[_0x5a9ef4(0x27c)]()===_0x5a9ef4(0x34f)){const _0x51392a=_0x2bea1a['opts'](),_0x1fd534=!_0x51392a[_0x5a9ef4(0x23f)]&&process[_0x5a9ef4(0x25b)][_0x5a9ef4(0x1ad)],_0x562c83=COMMAND_CATEGORIES,_0x364eff=(_0x2a8be4,_0x14d46d)=>_0x1fd534?_0x14d46d(_0x2a8be4):_0x2a8be4,_0x2a0d83=new Map();_0x505103['forEach'](_0x2635ba=>{const _0xeef9e4=_0x5a9ef4;_0x2a0d83[_0xeef9e4(0x24b)](_0x2635ba[_0xeef9e4(0x27c)](),_0x2635ba);}),_0x562c83['forEach'](_0x53e1de=>{const _0x550200=_0x5a9ef4,_0x33e509=_0x53e1de[_0x550200(0x1e7)][_0x550200(0x33e)](_0xd0b444=>_0x2a0d83[_0x550200(0x2a8)](_0xd0b444)??[]);if(_0x33e509[_0x550200(0x284)]>0x0){_0x3e1ad8['push'](''),_0x3e1ad8[_0x550200(0x37f)](_0x364eff(_0x53e1de['name']+':',_0x53e1de[_0x550200(0x2fe)]));const _0x54175e=_0x33e509[_0x550200(0x2eb)](_0x5d51e5=>{const _0x5a628f=_0x550200,_0x524e70=_0x4aa0b6[_0x5a628f(0x33a)](_0x5d51e5),_0x516383=_0x4aa0b6[_0x5a628f(0x3fb)](_0x5d51e5);return _0x5d9009(_0x524e70,_0x516383);});_0x3e1ad8[_0x550200(0x37f)](_0x130d79(_0x54175e));}}),_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8[_0x5a9ef4(0x37f)](_0x5a9ef4(0x2f6));}else{const _0x4ccf8e=_0x505103['map'](_0x4cfe1c=>{const _0x165c3b=_0x5a9ef4,_0x1e688b=_0x4aa0b6[_0x165c3b(0x33a)](_0x4cfe1c),_0x36c112=_0x4aa0b6[_0x165c3b(0x3fb)](_0x4cfe1c);return _0x5d9009(_0x1e688b,_0x36c112);});_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8[_0x5a9ef4(0x37f)](_0x5a9ef4(0x1ef)),_0x3e1ad8['push'](_0x130d79(_0x4ccf8e));}}if(showBriefHelp&&_0x2bea1a[_0x5a9ef4(0x27c)]()===_0x5a9ef4(0x34f))_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8[_0x5a9ef4(0x37f)](_0x5a9ef4(0x19e));else{const _0x3a5fcb=_0x2bea1a['options'][_0x5a9ef4(0x35c)](_0x208b17=>!_0x3c8120(_0x208b17));if(_0x3a5fcb[_0x5a9ef4(0x284)]>0x0){const _0x53fcc2=_0x3a5fcb[_0x5a9ef4(0x2eb)](_0x1d64aa=>{const _0x3bcdcf=_0x5a9ef4,_0x14bd65=_0x4aa0b6[_0x3bcdcf(0x298)](_0x1d64aa),_0x5bbe6c=_0x4aa0b6[_0x3bcdcf(0x2e0)](_0x1d64aa);return _0x5d9009(_0x14bd65,_0x5bbe6c);});_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8[_0x5a9ef4(0x37f)]('Options:'),_0x3e1ad8[_0x5a9ef4(0x37f)](_0x130d79(_0x53fcc2));}}const _0x210026=(_0x2bea1a[_0x5a9ef4(0x2fc)]||[])[_0x5a9ef4(0x35c)](_0x1ce79b=>!_0x3c8120(_0x1ce79b));if(_0x210026[_0x5a9ef4(0x284)]>0x0){const _0x286932=_0x210026[_0x5a9ef4(0x2eb)](_0x45aab1=>{const _0x269732=_0x5a9ef4,_0x1fe301=_0x4aa0b6[_0x269732(0x3c8)](_0x45aab1),_0x2ef7d6=_0x4aa0b6['argumentDescription'](_0x45aab1);return _0x5d9009(_0x1fe301,_0x2ef7d6);});_0x3e1ad8[_0x5a9ef4(0x37f)](''),_0x3e1ad8[_0x5a9ef4(0x37f)](_0x5a9ef4(0x38a)),_0x3e1ad8['push'](_0x130d79(_0x286932));}return _0x3e1ad8[_0x5a9ef4(0x1d3)]('\x0a')+'\x0a';},'subcommandTerm':_0x184b07=>{const _0x16b4c4=a2_0x5136e2,_0x1104c2=(_0x184b07[_0x16b4c4(0x2fc)]||[])['map'](_0x53a6ae=>_0x53a6ae['required']?'<'+_0x53a6ae[_0x16b4c4(0x27c)]()+'>':'['+_0x53a6ae[_0x16b4c4(0x27c)]()+']')[_0x16b4c4(0x1d3)]('\x20'),_0x10bc3c=_0x184b07['aliases'](),_0x58497a=_0x10bc3c['length']>0x0?_0x184b07['name']()+',\x20'+_0x10bc3c[_0x16b4c4(0x1d3)](',\x20'):_0x184b07[_0x16b4c4(0x27c)]();return _0x1104c2?_0x58497a+'\x20'+_0x1104c2:_0x58497a;}}),program[a2_0x5136e2(0x3c4)]('preAction',_0x709f89=>{const _0x21dfe1=a2_0x5136e2,_0x48a204=_0x709f89['opts']();if(_0x48a204['directory']){const _0x340ad4=resolve(_0x48a204[_0x21dfe1(0x251)]),_0x23912b=_0x340ad4!==_0x48a204[_0x21dfe1(0x251)]?'\x20(resolved\x20to\x20'+_0x340ad4+')':'';if(!existsSync(_0x340ad4))throw new SDKError(ErrorCode[_0x21dfe1(0x1aa)],_0x21dfe1(0x23d)+_0x48a204[_0x21dfe1(0x251)]+_0x23912b,undefined,{'helpText':_0x21dfe1(0x2ce)});const _0x11adca=statSync(_0x340ad4);if(!_0x11adca[_0x21dfe1(0x1af)]())throw new SDKError(ErrorCode[_0x21dfe1(0x1aa)],_0x21dfe1(0x15f)+_0x48a204[_0x21dfe1(0x251)]+_0x23912b,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process['chdir'](_0x340ad4);}if(!_0x48a204[_0x21dfe1(0x3af)]){if(_0x48a204['table'])_0x48a204[_0x21dfe1(0x3af)]=_0x21dfe1(0x1a0);else{if(_0x48a204['json'])_0x48a204[_0x21dfe1(0x3af)]=_0x21dfe1(0x383);else{if(_0x48a204[_0x21dfe1(0x297)])_0x48a204['format']=_0x21dfe1(0x297);else _0x48a204[_0x21dfe1(0x2c1)]&&(_0x48a204[_0x21dfe1(0x3af)]=_0x21dfe1(0x2c1));}}}_0x48a204['in']&&!_0x48a204[_0x21dfe1(0x33f)]&&(_0x48a204[_0x21dfe1(0x33f)]=_0x48a204['in']);if(_0x48a204[_0x21dfe1(0x2f9)])_0x48a204['logLevel']=LogLevel[_0x21dfe1(0x1c7)];else{if(_0x48a204['debug'])_0x48a204['logLevel']=LogLevel[_0x21dfe1(0x1be)];else _0x48a204['logLevel']===undefined&&(_0x48a204['logLevel']=LogLevel[_0x21dfe1(0x2df)]);}});async function createTDXInstance(_0x2c4359){const _0x479260=a2_0x5136e2,_0x2ec920=await GlobalContext[_0x479260(0x21c)](_0x2c4359);return _0x2ec920[_0x479260(0x306)](_0x2c4359),TDX['create']({'site':_0x2ec920[_0x479260(0x225)],'apiKey':_0x2ec920[_0x479260(0x30d)],'logLevel':_0x2ec920[_0x479260(0x365)],'profile':_0x2ec920['profile']});}const databaseCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x33f))[a2_0x5136e2(0x351)]('db')[a2_0x5136e2(0x21d)]('Database\x20management\x20commands'),databaseListAction=async(_0x50b751,_0x4072a7)=>{const _0x47fee5=new DatabasesCommand(),_0x13089b=program['opts'](),_0x59a4e9=await createTDXInstance(_0x13089b),_0x3dbbdf=await _0x47fee5['run']({'options':{..._0x13089b,..._0x4072a7},'args':_0x50b751?[_0x50b751]:[],'tdx':_0x59a4e9});gracefulExit(_0x3dbbdf);};databaseCmd[a2_0x5136e2(0x180)]('list\x20[pattern]')[a2_0x5136e2(0x21d)]('List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x5136e2(0x338)](databaseListAction),program['command']('databases\x20[pattern]',{'hidden':!![]})[a2_0x5136e2(0x21d)]('List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)')[a2_0x5136e2(0x338)](databaseListAction),program[a2_0x5136e2(0x180)]('chat\x20[message...]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1ae))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2e3),'Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x268),'Start\x20a\x20new\x20chat\x20session')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2ed),a2_0x5136e2(0x25a))[a2_0x5136e2(0x2c0)]('--stream',a2_0x5136e2(0x2b9))[a2_0x5136e2(0x338)](async(_0x590364,_0xffa311)=>{const _0x1e5c44=a2_0x5136e2,_0x3912df=program['opts'](),_0x40cd1c=await createTDXInstance(_0x3912df);if(_0x590364[0x0]===_0x1e5c44(0x30a)){const _0x144a73=new ChatCreateCommand();gracefulExit(await _0x144a73[_0x1e5c44(0x3d3)]({'options':{..._0x3912df,..._0xffa311},'args':_0x590364[_0x1e5c44(0x36f)](0x1),'tdx':_0x40cd1c}));return;}const _0x44cef6=new ChatCommand(),_0x4b8e11=await _0x44cef6[_0x1e5c44(0x3d3)]({'options':{..._0x3912df,..._0xffa311},'args':_0x590364,'tdx':_0x40cd1c});gracefulExit(_0x4b8e11);});const apiCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x19a))['summary'](a2_0x5136e2(0x1b1))[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),a2_0x5136e2(0x2a9))['option']('-X,\x20--method\x20<method>',a2_0x5136e2(0x18e),a2_0x5136e2(0x334))['option'](a2_0x5136e2(0x176),a2_0x5136e2(0x2d8))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x28c),'Read\x20request\x20body\x20from\x20file')['option'](a2_0x5136e2(0x3b5),a2_0x5136e2(0x29b),(_0x2d53c1,_0x5c121a)=>{return _0x5c121a?[..._0x5c121a,_0x2d53c1]:[_0x2d53c1];})[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x39f),a2_0x5136e2(0x25f),'td')['action'](async(_0x49bada,_0x1a19c7)=>{const _0x25d841=a2_0x5136e2;if(!_0x49bada){apiCmd[_0x25d841(0x322)]();return;}const _0x433c83=new ApiCommand(),_0x5b5891=program[_0x25d841(0x3dc)](),_0x46a33a=await createTDXInstance(_0x5b5891),_0x47bb6f=await _0x433c83['run']({'options':{..._0x5b5891,..._0x1a19c7},'args':[_0x49bada],'tdx':_0x46a33a});gracefulExit(_0x47bb6f);});program[a2_0x5136e2(0x180)](a2_0x5136e2(0x246))['description'](a2_0x5136e2(0x37c))[a2_0x5136e2(0x335)]('after',a2_0x5136e2(0x2f4))[a2_0x5136e2(0x338)](async _0x536e24=>{const _0x27600c=a2_0x5136e2,_0x35cbfc=new MCPCommand(),_0xab9572=program['opts'](),_0x4a6435=await createTDXInstance(_0xab9572),_0xf9f072=await _0x35cbfc[_0x27600c(0x3d3)]({'options':{..._0xab9572,..._0x536e24},'args':[],'tdx':_0x4a6435});gracefulExit(_0xf9f072);});const tableCmd=program['command'](a2_0x5136e2(0x1a0))['description']('Table\x20management\x20commands'),tableListAction=async(_0x11dde2,_0x1587f0)=>{const _0x213ec9=a2_0x5136e2,_0x5c2623=new TablesCommand(),_0x940b37=program['opts'](),_0xeb023e=await createTDXInstance(_0x940b37);_0x1587f0['in']&&(_0x1587f0[_0x213ec9(0x33f)]=_0x1587f0['in']);const _0x4fd3e4=await _0x5c2623[_0x213ec9(0x3d3)]({'options':{..._0x940b37,..._0x1587f0},'args':_0x11dde2?[_0x11dde2]:[],'tdx':_0xeb023e});gracefulExit(_0x4fd3e4);};tableCmd['command']('list\x20[pattern]')['description'](a2_0x5136e2(0x2bf))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x21b),a2_0x5136e2(0x3b4))['option']('--in\x20<database>',a2_0x5136e2(0x1bf))[a2_0x5136e2(0x338)](tableListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x233),{'hidden':!![]})['description'](a2_0x5136e2(0x21a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x21b),a2_0x5136e2(0x3b4))[a2_0x5136e2(0x2c0)]('--in\x20<database>',a2_0x5136e2(0x1bf))[a2_0x5136e2(0x338)](tableListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x215))['description'](a2_0x5136e2(0x3f5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x21b),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x22e),a2_0x5136e2(0x1bf))[a2_0x5136e2(0x338)](async(_0x2fa27c,_0x2e8194)=>{const _0x33d8c3=a2_0x5136e2,_0x45a1b3=new ShowCommand(),_0x38fc45=program[_0x33d8c3(0x3dc)](),_0xa89a21=await createTDXInstance(_0x38fc45);_0x2e8194['in']&&(_0x2e8194['database']=_0x2e8194['in']);const _0x2e874e=await _0x45a1b3[_0x33d8c3(0x3d3)]({'options':{..._0x38fc45,..._0x2e8194},'args':_0x2fa27c?[_0x2fa27c]:[],'tdx':_0xa89a21});gracefulExit(_0x2e874e);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3ec))[a2_0x5136e2(0x351)](a2_0x5136e2(0x16b))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1d8))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x22e),a2_0x5136e2(0x1bf))[a2_0x5136e2(0x338)](async(_0x489a75,_0x357fa)=>{const _0x52b9ac=a2_0x5136e2,_0x310bc2=new DescribeCommand(),_0x1e8714=program['opts'](),_0x4eb714=await createTDXInstance(_0x1e8714);_0x357fa['in']&&(_0x357fa[_0x52b9ac(0x33f)]=_0x357fa['in']);const _0x36e318=await _0x310bc2[_0x52b9ac(0x3d3)]({'options':{..._0x1e8714,..._0x357fa},'args':_0x489a75?[_0x489a75]:[],'tdx':_0x4eb714});gracefulExit(_0x36e318);}),program['command']('query\x20[sql]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1e4))['option'](a2_0x5136e2(0x21b),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x22e),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['option'](a2_0x5136e2(0x1d5),a2_0x5136e2(0x29d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x28c),a2_0x5136e2(0x161))['option'](a2_0x5136e2(0x3ce),a2_0x5136e2(0x183),'40')[a2_0x5136e2(0x338)](async(_0x2ff078,_0x5f41e6)=>{const _0x1f4492=a2_0x5136e2,_0x11165c=new QueryCommand(),_0x272fbb=program[_0x1f4492(0x3dc)](),_0x5cd385=await createTDXInstance(_0x272fbb);_0x5f41e6['in']&&(_0x5f41e6[_0x1f4492(0x33f)]=_0x5f41e6['in']);const _0x37782e=await _0x11165c[_0x1f4492(0x3d3)]({'options':{..._0x272fbb,..._0x5f41e6},'args':_0x2ff078?[_0x2ff078]:[],'tdx':_0x5cd385});gracefulExit(_0x37782e);});const segmentCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x245))[a2_0x5136e2(0x351)]('sg')['description'](a2_0x5136e2(0x267)),segmentListAction=async(_0x2b2497,_0x412504)=>{const _0x55d5ea=a2_0x5136e2,_0xe5cbe9=new SegmentsCommand(),_0x27f4cd=program['opts'](),_0x43019a=await createTDXInstance(_0x27f4cd),_0x49119b=await _0xe5cbe9[_0x55d5ea(0x3d3)]({'options':{..._0x27f4cd,..._0x412504},'args':_0x2b2497?[_0x2b2497]:[],'tdx':_0x43019a});gracefulExit(_0x49119b);};segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x28b))['description'](a2_0x5136e2(0x296))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x358),a2_0x5136e2(0x28f))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x38d),'Maximum\x20recursion\x20depth\x20(default:\x2010)','10')[a2_0x5136e2(0x338)](segmentListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3f8),{'hidden':!![]})['description'](a2_0x5136e2(0x182))['option'](a2_0x5136e2(0x358),'List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x38d),a2_0x5136e2(0x2cb),'10')[a2_0x5136e2(0x338)](segmentListAction),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x22f),{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2b4))[a2_0x5136e2(0x338)](async(_0x4d9094,_0x1a9a12)=>{const _0x41bd04=a2_0x5136e2,_0xa26cd4=new SegmentUseCommand(),_0x3e0e6d=program[_0x41bd04(0x3dc)](),_0x5da2bc=await createTDXInstance(_0x3e0e6d),_0x52b4da=await _0xa26cd4[_0x41bd04(0x3d3)]({'options':{..._0x3e0e6d,..._0x1a9a12},'args':[_0x4d9094],'tdx':_0x5da2bc});gracefulExit(_0x52b4da);});const segmentViewAction=async(_0x413970,_0x45f4aa)=>{const _0x121d70=a2_0x5136e2,_0x13084e=new SegmentViewCommand(),_0x17a967=program[_0x121d70(0x3dc)](),_0x51b4da=await createTDXInstance(_0x17a967),_0x8096ef=await _0x13084e['run']({'options':{..._0x17a967,..._0x45f4aa},'args':_0x413970?[_0x413970]:[],'tdx':_0x51b4da});gracefulExit(_0x8096ef);};segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x372))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x360))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d4),a2_0x5136e2(0x291))[a2_0x5136e2(0x338)](segmentViewAction),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x29e),{'hidden':!![]})[a2_0x5136e2(0x351)](a2_0x5136e2(0x343))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d4),a2_0x5136e2(0x291))['description']('Show\x20segment\x20details\x20(alias\x20for\x20view)')[a2_0x5136e2(0x338)](segmentViewAction),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x24d))[a2_0x5136e2(0x21d)]('Show\x20segment\x20schema\x20(column\x20types)')[a2_0x5136e2(0x338)](async(_0x368c29,_0x4208e7)=>{const _0x4573f9=a2_0x5136e2,_0x2b038c=new SegmentDescCommand(),_0x47930c=program[_0x4573f9(0x3dc)](),_0x32be1c=await createTDXInstance(_0x47930c),_0x2bddd6=await _0x2b038c[_0x4573f9(0x3d3)]({'options':{..._0x47930c,..._0x4208e7},'args':_0x368c29?[_0x368c29]:[],'tdx':_0x32be1c});gracefulExit(_0x2bddd6);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3bf))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x301))[a2_0x5136e2(0x338)](async(_0x16335c,_0x17f8dc)=>{const _0x13bd18=a2_0x5136e2,_0x236361=new SegmentShowCommand(),_0x5bfe59=program[_0x13bd18(0x3dc)](),_0x359134=await createTDXInstance(_0x5bfe59),_0x2bb823=await _0x236361[_0x13bd18(0x3d3)]({'options':{..._0x5bfe59,..._0x17f8dc},'args':_0x16335c?[_0x16335c]:[],'tdx':_0x359134});gracefulExit(_0x2bb823);}),segmentCmd['command']('folders\x20<parent_name>',{'hidden':!![]})[a2_0x5136e2(0x21d)]('[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)')[a2_0x5136e2(0x338)](async(_0x2021a5,_0x49e2a8)=>{const _0x3017d9=a2_0x5136e2,_0x592971=new SegmentFolderListCommand(),_0x3d59e2=program[_0x3017d9(0x3dc)](),_0x4f591e=await createTDXInstance(_0x3d59e2),_0x379bec=await _0x592971['run']({'options':{..._0x3d59e2,..._0x49e2a8},'args':[_0x2021a5],'tdx':_0x4f591e});gracefulExit(_0x379bec);});const folderCmd=segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x36d),{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3df));folderCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x36a))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x240))[a2_0x5136e2(0x338)](async(_0x107b34,_0x29c04b)=>{const _0x51f63b=a2_0x5136e2,_0x3d23f3=new SegmentFolderShowCommand(),_0x4b9ada=program[_0x51f63b(0x3dc)](),_0x34b50e=await createTDXInstance(_0x4b9ada),_0x2eecbf=await _0x3d23f3[_0x51f63b(0x3d3)]({'options':{..._0x4b9ada,..._0x29c04b},'args':[_0x107b34],'tdx':_0x34b50e});gracefulExit(_0x2eecbf);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x16d))[a2_0x5136e2(0x21d)]('Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)')['action'](async(_0xddd196,_0x142fe0)=>{const _0x34528c=a2_0x5136e2,_0x35233b=new SegmentSQLCommand(),_0x597e8b=program[_0x34528c(0x3dc)](),_0x4fd18d=await createTDXInstance(_0x597e8b),_0x28ca1a=await _0x35233b[_0x34528c(0x3d3)]({'options':{..._0x597e8b,..._0x142fe0},'args':_0xddd196?[_0xddd196]:[],'tdx':_0x4fd18d});gracefulExit(_0x28ca1a);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x26f))['description']('List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)')[a2_0x5136e2(0x338)](async(_0x46232e,_0x11da2a)=>{const _0x338294=a2_0x5136e2,_0x343871=new SegmentFieldsCommand(),_0x14faf4=program[_0x338294(0x3dc)](),_0x5cfa87=await createTDXInstance(_0x14faf4),_0x1e5b69=await _0x343871[_0x338294(0x3d3)]({'options':{..._0x14faf4,..._0x11da2a},'args':_0x46232e?[_0x46232e]:[],'tdx':_0x5cfa87});gracefulExit(_0x1e5b69);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1f4))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3f6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),a2_0x5136e2(0x3f1))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x196))[a2_0x5136e2(0x338)](async(_0x5e2654,_0x4dcccb)=>{const _0x1a14a6=a2_0x5136e2,_0x58634f=new SegmentPullCommand(),_0x21db62=program[_0x1a14a6(0x3dc)](),_0x5ad171=await createTDXInstance(_0x21db62),_0x28ed91=await _0x58634f[_0x1a14a6(0x3d3)]({'options':{..._0x21db62,..._0x4dcccb},'args':_0x5e2654?[_0x5e2654]:[],'tdx':_0x5ad171});gracefulExit(_0x28ed91);}),segmentCmd[a2_0x5136e2(0x180)]('push\x20[parent_or_file]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x272))['option']('-y,\x20--yes',a2_0x5136e2(0x3f1))[a2_0x5136e2(0x2c0)]('--dry-run',a2_0x5136e2(0x196))[a2_0x5136e2(0x2c0)]('--delete','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)')[a2_0x5136e2(0x338)](async(_0x17f0f1,_0x21ca40)=>{const _0x52c354=a2_0x5136e2,_0x3ba6a7=new SegmentPushCommand(),_0x4f5c44=program['opts'](),_0x2d2813=await createTDXInstance(_0x4f5c44),_0xa1c11f=await _0x3ba6a7[_0x52c354(0x3d3)]({'options':{..._0x4f5c44,..._0x21ca40},'args':_0x17f0f1?[_0x17f0f1]:[],'tdx':_0x2d2813});gracefulExit(_0xa1c11f);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1c8))[a2_0x5136e2(0x21d)]('Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally')[a2_0x5136e2(0x338)](async(_0x1be3d8,_0x76f870)=>{const _0x2a9c94=a2_0x5136e2,_0x57be1e=new SegmentValidateCommand(),_0x3eba09=program[_0x2a9c94(0x3dc)](),_0x2428b3=await createTDXInstance(_0x3eba09),_0x3ca1e6=await _0x57be1e[_0x2a9c94(0x3d3)]({'options':{..._0x3eba09,..._0x76f870},'args':_0x1be3d8?[_0x1be3d8]:[],'tdx':_0x2428b3});gracefulExit(_0x3ca1e6);}),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x205),{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x188))['option']('--description\x20<text>',a2_0x5136e2(0x3cc))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x157),a2_0x5136e2(0x260))['option'](a2_0x5136e2(0x214),a2_0x5136e2(0x2e7))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x18a),a2_0x5136e2(0x3cf))[a2_0x5136e2(0x2c0)]('--kind\x20<type>',a2_0x5136e2(0x35d))[a2_0x5136e2(0x2c0)]('--invisible','Make\x20segment\x20invisible\x20(default:\x20visible)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x25e),'Skip\x20population\x20counting')['action'](async(_0x6a6c49,_0x3ad5a3)=>{const _0x5b6791=a2_0x5136e2,_0x552266=new SegmentCreateCommand(),_0x35ca4a=program[_0x5b6791(0x3dc)](),_0x2af033=await createTDXInstance(_0x35ca4a),_0x19f487=await _0x552266[_0x5b6791(0x3d3)]({'options':{..._0x35ca4a,..._0x3ad5a3},'args':[_0x6a6c49],'tdx':_0x2af033});gracefulExit(_0x19f487);}),segmentCmd['command'](a2_0x5136e2(0x1ec),{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x23c))['option'](a2_0x5136e2(0x362),a2_0x5136e2(0x3d7))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x345),'Updated\x20description')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x157),'Updated\x20filtering\x20rule\x20as\x20JSON\x20string')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x214),'Updated\x20filtering\x20rule\x20from\x20JSON\x20file')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x18a),a2_0x5136e2(0x2a5))['option'](a2_0x5136e2(0x2c2),a2_0x5136e2(0x35d))['action'](async(_0x144d18,_0xf6759c)=>{const _0x2fa113=a2_0x5136e2,_0x2c6061=new SegmentUpdateCommand(),_0x202e49=program[_0x2fa113(0x3dc)](),_0x2daddb=await createTDXInstance(_0x202e49),_0x2a11cb=await _0x2c6061['run']({'options':{..._0x202e49,..._0xf6759c},'args':[_0x144d18],'tdx':_0x2daddb});gracefulExit(_0x2a11cb);});const parentCmd=segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x271),{'hidden':!![]})['description'](a2_0x5136e2(0x294)),parentListAction=async(_0x588b64,_0x1e5ed0)=>{const _0x4512d7=a2_0x5136e2,_0x53dc2c=new ParentSegmentListCommand(),_0x23e9c5=program['opts'](),_0x31305e=await createTDXInstance(_0x23e9c5),_0xc67590=await _0x53dc2c[_0x4512d7(0x3d3)]({'options':{..._0x23e9c5,..._0x1e5ed0},'args':_0x588b64?[_0x588b64]:[],'tdx':_0x31305e});gracefulExit(_0xc67590);};parentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x5136e2(0x338)](parentListAction),segmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x197),{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x299))['action'](parentListAction),parentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x35a))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x329))['option'](a2_0x5136e2(0x2e8),'Output\x20file\x20path\x20(default:\x20<name>.yml)')[a2_0x5136e2(0x2c0)]('-y,\x20--yes',a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](async(_0x629a9,_0x2f458a)=>{const _0x4400d3=a2_0x5136e2,_0x41e495=new ParentSegmentPullCommand(),_0x1d8e73=program[_0x4400d3(0x3dc)](),_0x51e24b=await createTDXInstance(_0x1d8e73),_0x44316a=await _0x41e495[_0x4400d3(0x3d3)]({'options':{..._0x1d8e73,..._0x2f458a},'args':_0x629a9?[_0x629a9]:[],'tdx':_0x51e24b});gracefulExit(_0x44316a);}),parentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b0))[a2_0x5136e2(0x21d)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x5136e2(0x2c0)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](async(_0x24eb50,_0x2c0598)=>{const _0x12e8c7=a2_0x5136e2,_0x13286b=new ParentSegmentPushCommand(),_0x5654c4=program[_0x12e8c7(0x3dc)](),_0x3128ac=await createTDXInstance(_0x5654c4),_0x51b0cf=await _0x13286b[_0x12e8c7(0x3d3)]({'options':{..._0x5654c4,..._0x2c0598},'args':_0x24eb50?[_0x24eb50]:[],'tdx':_0x3128ac});gracefulExit(_0x51b0cf);}),parentCmd[a2_0x5136e2(0x180)]('validate\x20[file]')[a2_0x5136e2(0x21d)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x20f),a2_0x5136e2(0x354))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x199),'Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute')['option'](a2_0x5136e2(0x2f7),a2_0x5136e2(0x30e))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x162),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1ee),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')[a2_0x5136e2(0x338)](async(_0x572658,_0x2d0a9c)=>{const _0x411024=a2_0x5136e2,_0x2fc8fd=new ParentSegmentValidateCommand(),_0x254db6=program['opts'](),_0x119bbe=await createTDXInstance(_0x254db6),_0x4e0034=await _0x2fc8fd[_0x411024(0x3d3)]({'options':{..._0x254db6,..._0x2d0a9c},'args':_0x572658?[_0x572658]:[],'tdx':_0x119bbe});gracefulExit(_0x4e0034);}),parentCmd['command']('preview\x20[file]')['description']('Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration')[a2_0x5136e2(0x2c0)]('--master','Show\x20master\x20table\x20sample\x20data')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x199),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2f7),a2_0x5136e2(0x377))['option'](a2_0x5136e2(0x162),a2_0x5136e2(0x3c5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1ee),a2_0x5136e2(0x39c),a2_0x5136e2(0x212))[a2_0x5136e2(0x338)](async(_0x445f83,_0x3c280b)=>{const _0x54f59f=a2_0x5136e2,_0x3f24b2=new ParentSegmentPreviewCommand(),_0x158346=program[_0x54f59f(0x3dc)](),_0x576f09=await createTDXInstance(_0x158346),_0x2aad31=await _0x3f24b2[_0x54f59f(0x3d3)]({'options':{..._0x158346,..._0x3c280b},'args':_0x445f83?[_0x445f83]:[],'tdx':_0x576f09});gracefulExit(_0x2aad31);}),parentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x21f))['description']('Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)')['option']('-y,\x20--yes',a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](async(_0x5bd1a5,_0x190e71)=>{const _0x28707b=a2_0x5136e2,_0x5778c9=new ParentSegmentRunCommand(),_0x2b7286=program[_0x28707b(0x3dc)](),_0x25cb51=await createTDXInstance(_0x2b7286),_0x33f9c1=await _0x5778c9['run']({'options':{..._0x2b7286,..._0x190e71},'args':_0x5bd1a5?[_0x5bd1a5]:[],'tdx':_0x25cb51});gracefulExit(_0x33f9c1);});const parentSegmentCmd=program[a2_0x5136e2(0x180)]('parent-segment')[a2_0x5136e2(0x351)]('ps')['description'](a2_0x5136e2(0x2ea));parentSegmentCmd['command'](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')['action'](parentListAction),parentSegmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x35a))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x230))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2e8),a2_0x5136e2(0x3cd))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),'Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2b8),a2_0x5136e2(0x1d6))[a2_0x5136e2(0x338)](async(_0x3247be,_0x2d3f02)=>{const _0x3392bc=a2_0x5136e2,_0x56cdf0=new ParentSegmentPullCommand(),_0x26cc70=program[_0x3392bc(0x3dc)](),_0x4a77a5=await createTDXInstance(_0x26cc70),_0x2dd059=await _0x56cdf0[_0x3392bc(0x3d3)]({'options':{..._0x26cc70,..._0x2d3f02},'args':_0x3247be?[_0x3247be]:[],'tdx':_0x4a77a5});gracefulExit(_0x2dd059);}),parentSegmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x15c))[a2_0x5136e2(0x21d)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),'Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](async(_0x1caf64,_0x1f0a32)=>{const _0x17902c=a2_0x5136e2,_0x559a06=new ParentSegmentPushCommand(),_0x27222c=program[_0x17902c(0x3dc)](),_0x1a23d9=await createTDXInstance(_0x27222c),_0x4446d7=await _0x559a06[_0x17902c(0x3d3)]({'options':{..._0x27222c,..._0x1f0a32},'args':_0x1caf64?[_0x1caf64]:[],'tdx':_0x1a23d9});gracefulExit(_0x4446d7);}),parentSegmentCmd[a2_0x5136e2(0x180)]('validate\x20[name]')[a2_0x5136e2(0x21d)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x20f),a2_0x5136e2(0x354))[a2_0x5136e2(0x2c0)]('--attribute\x20[name]',a2_0x5136e2(0x1c6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2f7),'Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x162),a2_0x5136e2(0x300))['option'](a2_0x5136e2(0x1ee),'TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','-1d')['action'](async(_0x1a6a3d,_0x379d2b)=>{const _0x441fd2=a2_0x5136e2,_0x173491=new ParentSegmentValidateCommand(),_0x31e077=program[_0x441fd2(0x3dc)](),_0xd91866=await createTDXInstance(_0x31e077),_0x306281=await _0x173491[_0x441fd2(0x3d3)]({'options':{..._0x31e077,..._0x379d2b},'args':_0x1a6a3d?[_0x1a6a3d]:[],'tdx':_0xd91866});gracefulExit(_0x306281);}),parentSegmentCmd['command']('preview\x20[name]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x22a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x20f),a2_0x5136e2(0x2ad))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x199),a2_0x5136e2(0x194))[a2_0x5136e2(0x2c0)]('--behavior\x20[name]',a2_0x5136e2(0x377))[a2_0x5136e2(0x2c0)]('--enriched',a2_0x5136e2(0x3c5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1ee),a2_0x5136e2(0x39c),a2_0x5136e2(0x212))['action'](async(_0x4b55eb,_0x26b1ce)=>{const _0x535fb2=a2_0x5136e2,_0x343967=new ParentSegmentPreviewCommand(),_0x14517b=program[_0x535fb2(0x3dc)](),_0x3fb382=await createTDXInstance(_0x14517b),_0x22635a=await _0x343967['run']({'options':{..._0x14517b,..._0x26b1ce},'args':_0x4b55eb?[_0x4b55eb]:[],'tdx':_0x3fb382});gracefulExit(_0x22635a);}),parentSegmentCmd['command']('run\x20[name]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x248))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](async(_0x439307,_0x43f2d8)=>{const _0x5d2b93=a2_0x5136e2,_0x272739=new ParentSegmentRunCommand(),_0x423319=program[_0x5d2b93(0x3dc)](),_0x10dfbf=await createTDXInstance(_0x423319),_0x15d9f7=await _0x272739['run']({'options':{..._0x423319,..._0x43f2d8},'args':_0x439307?[_0x439307]:[],'tdx':_0x10dfbf});gracefulExit(_0x15d9f7);}),parentSegmentCmd[a2_0x5136e2(0x180)]('fields\x20[name]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x308))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f0),a2_0x5136e2(0x170))['option'](a2_0x5136e2(0x386),a2_0x5136e2(0x200))[a2_0x5136e2(0x338)](async(_0x54793d,_0x27b788)=>{const _0x55111b=a2_0x5136e2,_0x4feb13=new ParentSegmentFieldsCommand(),_0x55f86d=program[_0x55111b(0x3dc)](),_0x5c290d=await createTDXInstance(_0x55f86d),_0x4f80c6=await _0x4feb13['run']({'options':{..._0x55f86d,..._0x27b788},'args':_0x54793d?[_0x54793d]:[],'tdx':_0x5c290d});gracefulExit(_0x4f80c6);}),parentSegmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x172))['description'](a2_0x5136e2(0x1ab))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d4),'Open\x20parent\x20segment\x20in\x20web\x20browser')[a2_0x5136e2(0x2c0)]('--json','Output\x20as\x20JSON')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x386),a2_0x5136e2(0x200))[a2_0x5136e2(0x338)](async(_0x3251c0,_0x5a57ec)=>{const _0x205bbe=a2_0x5136e2,_0x1094d7=new ParentSegmentViewCommand(),_0x48fc36=program[_0x205bbe(0x3dc)](),_0x213f58=await createTDXInstance(_0x48fc36),_0x119e8c=await _0x1094d7[_0x205bbe(0x3d3)]({'options':{..._0x48fc36,..._0x5a57ec},'args':_0x3251c0?[_0x3251c0]:[],'tdx':_0x213f58});gracefulExit(_0x119e8c);}),parentSegmentCmd['command'](a2_0x5136e2(0x2c7))[a2_0x5136e2(0x21d)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option'](a2_0x5136e2(0x2e8),'Output\x20file\x20path')['option']('--json',a2_0x5136e2(0x170))[a2_0x5136e2(0x2c0)]('--jsonl','Output\x20as\x20JSON\x20Lines')[a2_0x5136e2(0x338)](async(_0x2f2a58,_0x39c256)=>{const _0x885ab=a2_0x5136e2,_0x3e5204=new ParentSegmentDescCommand(),_0x25885c=program[_0x885ab(0x3dc)](),_0x3d8e1d=await createTDXInstance(_0x25885c),_0x3cf4d2=await _0x3e5204['run']({'options':{..._0x25885c,..._0x39c256},'args':_0x2f2a58?[_0x2f2a58]:[],'tdx':_0x3d8e1d});gracefulExit(_0x3cf4d2);}),parentSegmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x250))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1df))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f0),a2_0x5136e2(0x170))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x386),'Output\x20as\x20JSON\x20Lines')['action'](async(_0x32552a,_0x27841d)=>{const _0x5d09c6=a2_0x5136e2,_0x13a73d=new ParentSegmentSQLCommand(),_0x26d249=program[_0x5d09c6(0x3dc)](),_0x20cc75=await createTDXInstance(_0x26d249),_0x345f65=await _0x13a73d['run']({'options':{..._0x26d249,..._0x27841d},'args':_0x32552a?[_0x32552a]:[],'tdx':_0x20cc75});gracefulExit(_0x345f65);}),parentSegmentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x27d))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x35e))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2fa),a2_0x5136e2(0x174))['option'](a2_0x5136e2(0x1f0),a2_0x5136e2(0x170))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x386),a2_0x5136e2(0x200))[a2_0x5136e2(0x338)](async(_0x4be2fc,_0x172cf4)=>{const _0x1a46f2=a2_0x5136e2,_0x504354=new ParentSegmentShowCommand(),_0x22861f=program['opts'](),_0x3317d5=await createTDXInstance(_0x22861f),_0x513882=await _0x504354[_0x1a46f2(0x3d3)]({'options':{..._0x22861f,..._0x172cf4},'args':_0x4be2fc?[_0x4be2fc]:[],'tdx':_0x3317d5});gracefulExit(_0x513882);}),parentSegmentCmd['command'](a2_0x5136e2(0x397))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x31a))['action'](async(_0x47ba4a,_0x56db1c)=>{const _0x41a042=a2_0x5136e2,_0x400c7e=new UseCommand(),_0x702bae=program[_0x41a042(0x3dc)](),_0x3a4e1e=_0x47ba4a?[_0x41a042(0x282),_0x47ba4a]:[],_0x5a15f2=await _0x400c7e[_0x41a042(0x3d3)]({'options':{..._0x702bae,..._0x56db1c},'args':_0x3a4e1e,'tdx':null});gracefulExit(_0x5a15f2);});const psRtCmd=parentSegmentCmd[a2_0x5136e2(0x180)]('rt')[a2_0x5136e2(0x21d)]('RT\x202.0\x20configuration\x20management');psRtCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)]('List\x20parent\x20segments\x20with\x20RT\x202.0\x20status')['action'](async(_0x1d3605,_0x3adf2c)=>{const _0x28202c=a2_0x5136e2,_0x39dba7=new PSRtListCommand(),_0x27306f=program[_0x28202c(0x3dc)](),_0x10da52=await createTDXInstance(_0x27306f),_0x158556=await _0x39dba7[_0x28202c(0x3d3)]({'options':{..._0x27306f,..._0x3adf2c},'args':_0x1d3605?[_0x1d3605]:[],'tdx':_0x10da52});gracefulExit(_0x158556);}),psRtCmd[a2_0x5136e2(0x180)]('validate\x20[name]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x232))[a2_0x5136e2(0x338)](async(_0x141d93,_0x1de7c0)=>{const _0x2883a4=a2_0x5136e2,_0x372ca0=new PSRtValidateCommand(),_0x54a650=program[_0x2883a4(0x3dc)](),_0x2775a5=await createTDXInstance(_0x54a650),_0x3cb291=await _0x372ca0['run']({'options':{..._0x54a650,..._0x1de7c0},'args':_0x141d93?[_0x141d93]:[],'tdx':_0x2775a5});gracefulExit(_0x3cb291);});const parentRtCmd=parentCmd[a2_0x5136e2(0x180)]('rt',{'hidden':!![]})[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1a3));function a2_0x490f(_0x1a08a5,_0x566492){_0x1a08a5=_0x1a08a5-0x156;const _0x2b9078=a2_0x2b90();let _0x490f31=_0x2b9078[_0x1a08a5];return _0x490f31;}parentRtCmd[a2_0x5136e2(0x180)]('list\x20[pattern]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x393))[a2_0x5136e2(0x338)](async(_0x3704ca,_0x5dea5c)=>{const _0x5f5d75=a2_0x5136e2,_0xfd5b1c=new PSRtListCommand(),_0x1b430e=program[_0x5f5d75(0x3dc)](),_0x1eeee6=await createTDXInstance(_0x1b430e),_0x4af5a3=await _0xfd5b1c[_0x5f5d75(0x3d3)]({'options':{..._0x1b430e,..._0x5dea5c},'args':_0x3704ca?[_0x3704ca]:[],'tdx':_0x1eeee6});gracefulExit(_0x4af5a3);}),parentRtCmd['command'](a2_0x5136e2(0x391))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x232))[a2_0x5136e2(0x338)](async(_0x2e371f,_0x31159e)=>{const _0x111137=a2_0x5136e2,_0xe94dc=new PSRtValidateCommand(),_0x3cdf00=program[_0x111137(0x3dc)](),_0x369331=await createTDXInstance(_0x3cdf00),_0x4657e0=await _0xe94dc['run']({'options':{..._0x3cdf00,..._0x31159e},'args':_0x2e371f?[_0x2e371f]:[],'tdx':_0x369331});gracefulExit(_0x4657e0);});const psPzCmd=parentSegmentCmd[a2_0x5136e2(0x180)]('pz')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x321));psPzCmd['command']('list\x20[name]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x317))['action'](async(_0x5929be,_0x3a917e)=>{const _0xd7163e=a2_0x5136e2,_0x622d7e=new PSPzListCommand(),_0x2e2a59=program[_0xd7163e(0x3dc)](),_0xc54e28=await createTDXInstance(_0x2e2a59),_0x5d7fb0=await _0x622d7e['run']({'options':{..._0x2e2a59,..._0x3a917e},'args':_0x5929be?[_0x5929be]:[],'tdx':_0xc54e28});gracefulExit(_0x5d7fb0);}),psPzCmd['command'](a2_0x5136e2(0x185))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2e5))[a2_0x5136e2(0x338)](async(_0x26e354,_0xb9c704)=>{const _0x57b03f=a2_0x5136e2,_0x2d77fc=new PSPzInitCommand(),_0x1bc307=program[_0x57b03f(0x3dc)](),_0x3151a1=await createTDXInstance(_0x1bc307),_0x159bf1=await _0x2d77fc['run']({'options':{..._0x1bc307,..._0xb9c704},'args':_0x26e354?[_0x26e354]:[],'tdx':_0x3151a1});gracefulExit(_0x159bf1);});const parentPzCmd=parentCmd[a2_0x5136e2(0x180)]('pz',{'hidden':!![]})[a2_0x5136e2(0x21d)]('Personalization\x20service\x20management');parentPzCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2f2))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x317))['action'](async(_0x47ac50,_0xcf000c)=>{const _0x55743d=a2_0x5136e2,_0x82df7e=new PSPzListCommand(),_0x178407=program[_0x55743d(0x3dc)](),_0x2a3cb1=await createTDXInstance(_0x178407),_0x555134=await _0x82df7e[_0x55743d(0x3d3)]({'options':{..._0x178407,..._0xcf000c},'args':_0x47ac50?[_0x47ac50]:[],'tdx':_0x2a3cb1});gracefulExit(_0x555134);}),parentPzCmd['command'](a2_0x5136e2(0x185))['description'](a2_0x5136e2(0x2e5))['action'](async(_0x36b605,_0xaf7fce)=>{const _0x5b06d5=a2_0x5136e2,_0x5caffe=new PSPzInitCommand(),_0x5cfb10=program[_0x5b06d5(0x3dc)](),_0x4e4ba2=await createTDXInstance(_0x5cfb10),_0x269f05=await _0x5caffe[_0x5b06d5(0x3d3)]({'options':{..._0x5cfb10,..._0xaf7fce},'args':_0x36b605?[_0x36b605]:[],'tdx':_0x4e4ba2});gracefulExit(_0x269f05);}),parentCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b3))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x324))[a2_0x5136e2(0x3a5)]('--database\x20<db>',a2_0x5136e2(0x1c2))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x304),a2_0x5136e2(0x2ab))['option']('--description\x20<text>','Parent\x20segment\x20description')[a2_0x5136e2(0x2c0)]('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3bd),a2_0x5136e2(0x2d0))[a2_0x5136e2(0x2c0)]('--timezone\x20<tz>','Timezone\x20(e.g.,\x20America/Los_Angeles)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x18d),a2_0x5136e2(0x186))[a2_0x5136e2(0x2c0)]('--attributes-file\x20<file>',a2_0x5136e2(0x20a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2ff),a2_0x5136e2(0x274))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x27f),a2_0x5136e2(0x303))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x381),a2_0x5136e2(0x359))['option'](a2_0x5136e2(0x2f1),a2_0x5136e2(0x3c2))['action'](async(_0x361aed,_0x4ab8d9)=>{const _0x5a37a4=a2_0x5136e2,_0x17aaa7=new ParentSegmentCreateCommand(),_0x48d98f=program['opts'](),_0x58d629=await createTDXInstance(_0x48d98f),_0x427d2a=await _0x17aaa7[_0x5a37a4(0x3d3)]({'options':{..._0x48d98f,..._0x4ab8d9},'args':[_0x361aed],'tdx':_0x58d629});gracefulExit(_0x427d2a);}),parentCmd['command'](a2_0x5136e2(0x2cd))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x173))[a2_0x5136e2(0x2c0)]('--description\x20<text>',a2_0x5136e2(0x3bb))[a2_0x5136e2(0x2c0)]('--schedule-type\x20<type>',a2_0x5136e2(0x2c3))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3bd),a2_0x5136e2(0x1d0))[a2_0x5136e2(0x2c0)]('--timezone\x20<tz>','Updated\x20timezone')['option'](a2_0x5136e2(0x3cb),a2_0x5136e2(0x2d5))[a2_0x5136e2(0x2c0)]('--add-attributes-file\x20<file>','Add\x20attributes\x20from\x20JSON\x20file')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2a6),a2_0x5136e2(0x229))[a2_0x5136e2(0x2c0)]('--add-behaviors-file\x20<file>',a2_0x5136e2(0x3b2))[a2_0x5136e2(0x338)](async(_0x52855f,_0x34fb0b)=>{const _0x29986d=a2_0x5136e2,_0x2e4771=new ParentSegmentUpdateCommand(),_0xf09ae0=program[_0x29986d(0x3dc)](),_0x9cdd54=await createTDXInstance(_0xf09ae0),_0x15a589=await _0x2e4771[_0x29986d(0x3d3)]({'options':{..._0xf09ae0,..._0x34fb0b},'args':[_0x52855f],'tdx':_0x9cdd54});gracefulExit(_0x15a589);}),folderCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x256))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x35f))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x345),a2_0x5136e2(0x18f))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1a9),a2_0x5136e2(0x15a))[a2_0x5136e2(0x338)](async(_0x3b8955,_0x524b1c,_0x3debea)=>{const _0x3af66c=a2_0x5136e2,_0x16cba4=new SegmentFolderCreateCommand(),_0x21fed1=program['opts'](),_0x154550=await createTDXInstance(_0x21fed1),_0x2efd51=await _0x16cba4[_0x3af66c(0x3d3)]({'options':{..._0x21fed1,..._0x3debea},'args':[_0x3b8955,_0x524b1c],'tdx':_0x154550});gracefulExit(_0x2efd51);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3c1))[a2_0x5136e2(0x21d)]('List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)')['action'](async(_0x2c2f40,_0xee02b)=>{const _0x2b4b0c=a2_0x5136e2,_0x1fc06a=new ActivationsCommand(),_0x3f4d8d=program[_0x2b4b0c(0x3dc)](),_0x46e317=await createTDXInstance(_0x3f4d8d),_0x394fcf=await _0x1fc06a[_0x2b4b0c(0x3d3)]({'options':{..._0x3f4d8d,..._0xee02b},'args':[_0x2c2f40],'tdx':_0x46e317});gracefulExit(_0x394fcf);});const workflowCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x1b3))[a2_0x5136e2(0x351)]('wf')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x277)),wfProjectCmd=workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x227))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3e6)),wfProjectListAction=async(_0x526469,_0x2e2461)=>{const _0x1a76bf=a2_0x5136e2,_0x555af6=new WorkflowProjectsCommand(),_0x31beea=program[_0x1a76bf(0x3dc)](),_0x3dc724=await createTDXInstance(_0x31beea),_0x3f5d05=await _0x555af6[_0x1a76bf(0x3d3)]({'options':{..._0x31beea,..._0x2e2461},'args':_0x526469?[_0x526469]:[],'tdx':_0x3dc724});gracefulExit(_0x3f5d05);};wfProjectCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1b9))[a2_0x5136e2(0x338)](wfProjectListAction),workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3d8))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2f5))['action'](wfProjectListAction);const wfWorkflowListAction=async(_0x3f75f7,_0x1f9b39)=>{const _0x449cd5=a2_0x5136e2,_0x280ff0=new WorkflowWorkflowsCommand(),_0x22a213=program[_0x449cd5(0x3dc)](),_0x1927fa=await createTDXInstance(_0x22a213),_0x6cd129=await _0x280ff0[_0x449cd5(0x3d3)]({'options':{..._0x22a213,..._0x1f9b39},'args':_0x3f75f7?[_0x3f75f7]:[],'tdx':_0x1927fa});gracefulExit(_0x6cd129);};function a2_0x2b90(){const _0x4517f9=['--behaviors-file\x20<file>','--subject\x20<subject>','-y,\x20--yes','parent_segment','[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)','length','Delete\x20an\x20email\x20template','version','--timezone\x20<tz>','Retry\x20limit\x20(0\x20to\x2032)','tasks','List\x20all\x20available\x20profiles','list\x20[path]','-f,\x20--file\x20<path>','models','-o,\x20--output\x20<dir>','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','--session-time\x20<time>','Open\x20segment\x20in\x20web\x20browser','information_schema','Setup\x20API\x20key\x20authentication\x20interactively','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','--yes','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','jsonl','optionTerm','List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)','create\x20<name-or-path>','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Trino\x20catalog\x20(default:\x20td)','info\x20[segment_name]','Campaign\x20management','--name\x20<text>','pause\x20<name-or-path>','after','Job\x20priority\x20(-2\x20to\x202)','--from\x20<date>','Move\x20to\x20folder','--add-behaviors\x20<json>','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','get','\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','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','Master\x20table\x20name','Delete\x20an\x20LLM\x20project','Show\x20master\x20table\x20sample\x20data','log\x20<chat-id>','Database\x20to\x20use\x20(overrides\x20context)','push\x20[file]','-d,\x20--database\x20<db>','Create\x20a\x20new\x20LLM\x20project','create\x20<name>','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','list\x20[pattern]','Result\x20output\x20destination\x20URL','-u,\x20--use','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)','List\x20secret\x20keys\x20for\x20a\x20project','Job\x20management\x20commands','Output\x20directory','27BAQtkE','--json-columns\x20<cols>','List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)','option','tsv','--kind\x20<type>','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','stringify','attempt','Change\x20to\x20directory\x20before\x20executing\x20command','desc\x20[name]','Workflow\x20session\x20management','--format\x20<format>','statusline','Maximum\x20recursion\x20depth\x20(default:\x2010)','--help','update\x20<name>','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','Starting\x20offset\x20(default:\x200)','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','Show\x20campaign\x20details','delete\x20<args...>','Query\x20engine\x20version','-w,\x20--web','Add\x20attributes\x20as\x20JSON\x20string','--email-sender-id\x20<id>','1853558eQyKwX','Request\x20body\x20as\x20JSON\x20string','--trace','delete\x20<name-or-id>','_hidden','--stage\x20<name>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Validate\x20journey\x20YAML\x20files\x20locally','INFO','optionDescription','Create\x20a\x20workspace','-n,\x20--name\x20<name>','--agent\x20<ref>','--full','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','run\x20<name>','Filtering\x20rule\x20from\x20JSON\x20file','-o,\x20--output\x20<file>','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','Parent\x20segment\x20management','map','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\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','--chat-id\x20<id>','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','AI-native\x20CLI\x20for\x20Treasure\x20Data','Run\x20a\x20scheduled\x20query\x20immediately','--customer-group-file\x20<file>','list\x20[name]','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','--behavior\x20[name]','\x20-\x20built\x20','trace','--limit\x20<n>','LLM\x20project\x20management','registeredArguments','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','colorFn','--behaviors\x20<json>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','--version\x20<number>','Behaviors\x20from\x20JSON\x20file','--table\x20<table>','parse','injectIntoOptions','test\x20[path]','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','kill','create','allowExcessArguments','pause\x20<name-or-id>','apiKey','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','argv','catch','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','--tsv','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Authentication\x20management','Model\x20type\x20(default:\x20claude-4.5-sonnet)','--priority\x20<-2~2>','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','Resume\x20a\x20conversation\x20(shows\x20selector)','--cron\x20<expression>','Set\x20or\x20show\x20parent\x20segment\x20context','stats\x20<name-or-path>','Invalid\x20editor\x20type:\x20','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','isArray','Attempt\x20ID','Personalization\x20service\x20management','help','--dry-run','[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','flags','create\x20[name]','--segment\x20<path>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','resume\x20<name-or-path>','settings\x20<type>','update\x20<name-or-id>','push\x20[target]','tdx\x20','-p,\x20--profile\x20<name>','Include\x20execution\x20statistics','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','GET','addHelpText','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','Action:\x20logs,\x20tasks,\x20kill,\x20retry','action','--include-history','subcommandTerm','33880QExIsY','Starter\x20message','Show\x20email\x20template\x20details','flatMap','database','commandDescription','--timeout\x20<seconds>','show\x20<job-id>','describe','--name\x20<name>','--description\x20<text>','then','submit\x20[query]','Create\x20a\x20new\x20agent\x20in\x20current\x20project','Plaintext\x20template\x20content','Database\x20name','--from-task\x20<task>','padWidth','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','List\x20available\x20connector\x20types','tdx','User\x20management\x20commands','alias','status','logs','Show\x20only\x20master\x20table\x20validation','_list-commands','Template\x20name','Database\x20name\x20(default:\x20information_schema)','-r,\x20--recursive','Customer\x20group\x20as\x20JSON\x20string','pull\x20[name]','Preview\x20operation\x20without\x20executing','filter','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)','Create\x20segment\x20folder','Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)','--clear','--name\x20<new_name>','-r,\x20--resume','set\x20<args...>','logLevel','buildTime','auth','Query\x20type:\x20trino\x20or\x20hive','Email\x20subject\x20template','show\x20<folder_ref>','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','--temperature\x20<n>','folder','Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)','slice','Save\x20output\x20to\x20file','job','view\x20[segment_name]','attempt:','connection','Update\x20an\x20email\x20template','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','--include-stats','Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)','user','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Agent\x20prompt/instructions','--output\x20<file>','push','-d,\x20--database\x20<name>','--customer-group\x20<json>','Workspace\x20name\x20(required)','json','Resume\x20a\x20paused\x20journey','-v,\x20--verbose','--jsonl','argument','padEnd','chats','Arguments:','Show\x20journey\x20details','Pause\x20a\x20campaign','--max-depth\x20<depth>','use\x20<name>','Run\x20tests\x20for\x20an\x20LLM\x20agent','Update\x20a\x20workspace','validate\x20[name]','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','--starter-message\x20<text>','Create\x20a\x20new\x20campaign','repeat','use\x20[name]','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','720yCYyCX','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','--follow','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','secrets','push\x20[path]','--type\x20<api_type>','Preview\x20changes\x20without\x20writing\x20files','--color','Update\x20a\x20scheduled\x20query','--param\x20<key=value>','set\x20<key=value>','requiredOption','sessions\x20[project]','log','launch\x20<name-or-id>','List\x20available\x20LLM\x20models','pull\x20<project>\x20[target-dir]','error','-f,\x20--force',',\x20version\x20','Show\x20job\x20details','format','--session-id\x20<id>','use\x20[project]','Add\x20behaviors\x20from\x20JSON\x20file','Show\x20agent\x20details','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','-H,\x20--header\x20<header>','--type\x20<type>','--description\x20<desc>','us01','Output\x20folder\x20(default:\x20{project_name}.llm)','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Updated\x20description','481998NmYmYz','--schedule-option\x20<value>','--html\x20<html>','show\x20[segment_name]','Pull\x20specific\x20revision\x20(default:\x20latest)','activations\x20<segment_name>','Customer\x20group\x20from\x20JSON\x20file','List\x20journeys\x20(alias\x20for\x20journey\x20list)','hook','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','JSON\x20columns\x20for\x20connector\x20(comma-separated)','history\x20[chat-id]','argumentTerm','Open\x20journey\x20in\x20web\x20browser','--status\x20<status>','--add-attributes\x20<json>','Segment\x20description','Output\x20file\x20path','--limit\x20<rows>','Folder\x20name\x20for\x20organization','grapesjs','restore\x20<folder>','--no-eval','run','Show\x20timeline\x20for\x20specific\x20attempt','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','trino','New\x20segment\x20name','projects\x20[pattern]','clone\x20[source-dir]','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','history\x20<name>','opts','unset\x20<resource>','profile','[DEPRECATED]\x20Segment\x20folder\x20management','Preview\x20changes\x20without\x20pushing','Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)','update\x20<agent-name>','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','journeys\x20[pattern]','Delete\x20a\x20campaign','Workflow\x20project\x20management','--reeval','Update\x20an\x20existing\x20agent','Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)','--time\x20<iso8601>','use\x20[resource]\x20[value]','describe\x20[table]','Preview\x20without\x20creating\x20the\x20project','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','Invalid\x20--limit\x20value:\x20\x22','List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)','Skip\x20confirmation\x20prompts','usage','655002acUZrs','Push\x20without\x20confirmation','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','Pull\x20child\x20segments\x20to\x20YAML\x20files','--retry-limit\x20<0~32>','segments\x20[path]','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','Workspace\x20name','subcommandDescription','delete\x20<name>','--rule\x20<json>','use\x20<project-name>','exit','Parent\x20folder\x20name\x20for\x20nested\x20folders','[EXPERIMENTAL]\x20Show\x20chat\x20log','push\x20[name]','Include\x20retried\x20attempts','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)','Path\x20is\x20not\x20a\x20directory:\x20','--prompt\x20<text>','Read\x20SQL\x20query\x20from\x20file','--enriched','allowUnknownOption','Scheduled\x20query\x20management\x20commands','Delete\x20a\x20workspace','\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','timeline\x20[project.workflow]','includes','claude\x20[args...]','Show\x20schedule\x20execution\x20history','desc','Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria','sql\x20[segment_name]','Show\x20the\x20most\x20recent\x20chat','--include-retried','Output\x20as\x20JSON','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','view\x20[name]','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','Limit\x20number\x20of\x20rows','New\x20workspace\x20name','--data\x20<data>','Show\x20connection-level\x20settings\x20(credentials,\x20authentication)','list\x20[project]','Resume\x20a\x20paused\x20campaign','Set\x20operation\x20timeout\x20in\x20seconds','--start-at\x20<datetime>','Timezone\x20for\x20cron\x20(default:\x20UTC)','attempts\x20[project]','--table','List\x20all\x20data\x20connections','command','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--workspace\x20<name>','init\x20[name]','Attributes\x20as\x20JSON\x20string','Data\x20connection\x20management\x20(for\x20activations/exports)','[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','--name\x20<new-name>','--folder\x20<name>','--engine-version\x20<version>','--database\x20<name>','--attributes\x20<json>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)','Folder\x20description','--attempt-id\x20<id>','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','download\x20<project-name>\x20[output-dir]','show\x20<agent-name>','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','List\x20activations\x20for\x20a\x20journey','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','parents\x20[pattern]','gitRevision','--attribute\x20[name]','api\x20[endpoint]','Unknown\x20action:\x20','\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','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','--from\x20<timestamp>','table','--force','traffic\x20<name-or-path>','RT\x202.0\x20configuration\x20management','--limit\x20<number>','Workflow\x20attempt\x20management','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','connections','template','--parent-folder\x20<name>','INVALID_ARGUMENT','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','isTTY','Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)','isDirectory','Result\x20export\x20destination\x20(URL\x20or\x20JSON)','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','--result\x20<url>','workflow','Create\x20a\x20new\x20profile','Generate\x20test\x20conversations\x20without\x20evaluation','Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)','Maximum\x20number\x20of\x20nodes','push\x20[source-dir]','List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','--to\x20<n>','stderr','--no-color','Remove\x20a\x20profile','DEBUG','Alias\x20for\x20--database\x20(natural\x20language\x20style)','--last','Journey\x20version\x20management','Master\x20database\x20name','--job-type\x20<type>','--session\x20<id>','--system-prompt\x20<text>','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','TRACE','validate\x20[target]','[attempt-id]','List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)','view\x20<name-or-path>','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','--params\x20<json>','\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','List\x20jobs','Updated\x20schedule\x20option','--skip-validation','Download\x20workflow\x20project\x20from\x20Treasure\x20Data','join','Clear\x20workflow\x20project\x20context','--catalog\x20<catalog>','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','[task-name]','Describe\x20table\x20schema','Workspace\x20management','Skip\x20confirmation\x20prompt','Interactive\x20chat\x20selector','beefree','CDP\x20Journey\x20Orchestration\x20commands','retry\x20<session-id>','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','534282CmbKPo','--include-subtasks','Submit\x20a\x20job','Run\x20Trino\x20query\x20with\x20streaming\x20results','Get\x20job\x20results','users','commands','--from\x20<n>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','Custom\x20revision\x20name\x20(default:\x20timestamp)','--to\x20<timestamp>','update\x20<segment_name>','profiles','--interval\x20<range>','Commands:','--json','--revision\x20<revision>','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)','activations\x20<name-or-path>','pull\x20[parent_or_file]','[action]','Create\x20a\x20scheduled\x20query','Task\x20name\x20for\x20logs\x20action','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','options','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','workflows\x20[project]','Export\x20journey(s)\x20as\x20YAML\x20files','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Output\x20as\x20JSON\x20Lines','Campaign\x20description','System\x20prompt/instructions\x20(default:\x20empty)','list','required','create\x20<segment_name>','Clear\x20session\x20context','schema\x20<type>','Revision\x20name\x20(default:\x20timestamp)','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Attributes\x20from\x20JSON\x20file','jobs','Skip\x20validation\x20of\x20.dig\x20files','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','columns\x20<name-or-path>','--master','configureHelp','--in\x20<name>','-1d','List\x20all\x20versions\x20of\x20a\x20journey','--rule-file\x20<file>','show\x20[table]','Resume\x20from\x20specific\x20task','--delay\x20<seconds>','Campaign\x20name','--llm-project\x20<name>','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','-d,\x20--database\x20<database>','createAsync','description','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','run\x20[name]','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','engage','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','outputHelp','36330020FFtFsP','site','hidden','project','variadic','Add\x20behaviors\x20as\x20JSON\x20string','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','4091184XoVvyZ','resume\x20<name-or-id>','Pause\x20a\x20running\x20journey','--in\x20<database>','use\x20<path>','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','Agent\x20description','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','tables\x20[pattern]','7MoEAJd','show\x20<name>','End\x20time\x20filter\x20(ISO\x208601\x20format)','remove\x20<name>','--tags\x20<tags>','Agent\x20name','--plaintext\x20<text>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)','Directory\x20does\x20not\x20exist:\x20','Remove\x20API\x20key\x20from\x20system\x20keychain','noColor','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','agents\x20[pattern]','segment','mcp','Set\x20a\x20profile\x20configuration\x20value','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','clear','run\x20[workflow]','set','workspaces\x20[pattern]','desc\x20[segment_name]','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)','sql\x20[name]','directory','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','setup','Read\x20query\x20from\x20file','create\x20<parent_name>\x20<folder_name>','Follow/watch\x20timeline\x20for\x20running\x20attempts','Manage\x20workflow\x20project\x20secrets','Start\x20time\x20filter\x20(ISO\x208601\x20format)','Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID','stdout','show\x20<name-or-id>','duplicate\x20<name-or-id>','--no-count-population','API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','Filtering\x20rule\x20as\x20JSON\x20string','Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)','Include\x20retried\x20attempts\x20(for\x20list)','[options]\x20--\x20[claude-code-args...]','Show\x20schedule\x20details','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','claude-4.5-sonnet','CDP\x20segment\x20management\x20commands','--new','backup\x20<name>','--resume-from\x20<task>','templates\x20[pattern]','Workspace\x20description','--version','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','fields\x20[parent_name]','Email\x20sender\x20ID\x20for\x20delivery','parent','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','Name\x20for\x20the\x20new\x20project\x20(required)','Behaviors\x20as\x20JSON\x20string','Cron\x20expression\x20for\x20scheduling','--default','Workflow\x20(Digdag)\x20management\x20commands','List\x20all\x20users\x20in\x20the\x20account','--to\x20<date>','Include\x20raw\x20history\x20data\x20in\x20output','long','name','show\x20[name]','Show\x20authentication\x20status\x20and\x20current\x20context'];a2_0x2b90=function(){return _0x4517f9;};return a2_0x2b90();}workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1fc))['description'](a2_0x5136e2(0x20d))[a2_0x5136e2(0x338)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x5136e2(0x180)]('session')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2c8)),wfSessionListAction=async(_0x2500b3,_0x241c43)=>{const _0x379698=a2_0x5136e2,_0x4ecd14=new WorkflowSessionsCommand(),_0x5bc225=program[_0x379698(0x3dc)](),_0x223c25=await createTDXInstance(_0x5bc225),_0x5d156c=await _0x4ecd14[_0x379698(0x3d3)]({'options':{..._0x5bc225,..._0x241c43},'args':_0x2500b3?[_0x2500b3]:[],'tdx':_0x223c25});gracefulExit(_0x5d156c);};wfSessionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x178))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1e9))['option'](a2_0x5136e2(0x3ca),a2_0x5136e2(0x36b))['option'](a2_0x5136e2(0x19f),'Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1eb),a2_0x5136e2(0x236))[a2_0x5136e2(0x338)](wfSessionListAction),workflowCmd['command'](a2_0x5136e2(0x3a6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1f8))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ca),a2_0x5136e2(0x36b))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x19f),a2_0x5136e2(0x259))['option']('--to\x20<timestamp>',a2_0x5136e2(0x236))['action'](wfSessionListAction);const wfAttemptListAction=async(_0x1d4624,_0x34c836)=>{const _0xbf14df=a2_0x5136e2,_0x513264=new WorkflowAttemptsCommand(),_0x24b727=program[_0xbf14df(0x3dc)](),_0x50dbb3=await createTDXInstance(_0x24b727),_0x5cfd8d=await _0x513264[_0xbf14df(0x3d3)]({'options':{..._0x24b727,..._0x34c836},'args':_0x1d4624?[_0x1d4624]:[],'tdx':_0x50dbb3});gracefulExit(_0x5cfd8d);},attemptCmd=workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2c5))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1a5))['argument'](a2_0x5136e2(0x1c9),a2_0x5136e2(0x320))[a2_0x5136e2(0x387)](a2_0x5136e2(0x1f5),a2_0x5136e2(0x337))[a2_0x5136e2(0x387)](a2_0x5136e2(0x1d7),a2_0x5136e2(0x1f7))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1e2),'Include\x20subtasks\x20in\x20tasks\x20output')[a2_0x5136e2(0x2c0)]('--reason\x20<text>','Reason\x20for\x20killing\x20the\x20attempt')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x26a),'Resume\x20from\x20specific\x20task\x20(retry)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1cd),a2_0x5136e2(0x2a7))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1a1),'Force\x20retry\x20even\x20if\x20not\x20failed')[a2_0x5136e2(0x2c0)]('--include-retried',a2_0x5136e2(0x262))[a2_0x5136e2(0x338)](async(_0x4ac0ff,_0x5ec8aa,_0xd1c0a,_0xa2b8d8)=>{const _0x3044e1=a2_0x5136e2;if(_0x4ac0ff===_0x3044e1(0x203)){await wfAttemptListAction(_0x5ec8aa,_0xa2b8d8);return;}if(!_0x4ac0ff){attemptCmd[_0x3044e1(0x322)]();return;}const _0x48cfc3=program['opts'](),_0x3e3985=await createTDXInstance(_0x48cfc3);let _0x3d1140=0x0;if(!_0x5ec8aa){const _0x178d12=new WorkflowAttemptCommand();_0x3d1140=await _0x178d12[_0x3044e1(0x3d3)]({'options':{..._0x48cfc3,..._0xa2b8d8},'args':[_0x4ac0ff],'tdx':_0x3e3985});}else{if(_0x5ec8aa===_0x3044e1(0x353)){const _0x114590=new WorkflowLogsCommand();_0x3d1140=await _0x114590['run']({'options':{..._0x48cfc3,..._0xa2b8d8},'args':_0xd1c0a?[_0x4ac0ff,_0xd1c0a]:[_0x4ac0ff],'tdx':_0x3e3985});}else{if(_0x5ec8aa===_0x3044e1(0x289)){const _0x281f22=new WorkflowTasksCommand();_0x3d1140=await _0x281f22[_0x3044e1(0x3d3)]({'options':{..._0x48cfc3,..._0xa2b8d8},'args':[_0x4ac0ff],'tdx':_0x3e3985});}else{if(_0x5ec8aa===_0x3044e1(0x309)){const _0x34caff=new WorkflowKillCommand();_0x3d1140=await _0x34caff['run']({'options':{..._0x48cfc3,..._0xa2b8d8},'args':[_0x4ac0ff],'tdx':_0x3e3985});}else{if(_0x5ec8aa==='retry'){const _0x3925fc=new WorkflowRetryCommand();_0x3d1140=await _0x3925fc['run']({'options':{..._0x48cfc3,..._0xa2b8d8},'args':[_0x3044e1(0x373)+_0x4ac0ff],'tdx':_0x3e3985});}else console[_0x3044e1(0x3ab)](_0x3044e1(0x19b)+_0x5ec8aa),console[_0x3044e1(0x3ab)](_0x3044e1(0x252)),_0x3d1140=0x1;}}}}gracefulExit(_0x3d1140);});attemptCmd['command'](a2_0x5136e2(0x178))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3f0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x16f),a2_0x5136e2(0x15d))[a2_0x5136e2(0x338)](wfAttemptListAction),workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x17d))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3e3))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x16f),'Include\x20retried\x20attempts')[a2_0x5136e2(0x338)](wfAttemptListAction),workflowCmd['command'](a2_0x5136e2(0x167))['description']('Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x39b),a2_0x5136e2(0x257))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b0),'Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x190),a2_0x5136e2(0x3d4))['action'](async(_0x3bb171,_0x301221)=>{const _0x14f33e=a2_0x5136e2,_0x1379f4=new WorkflowTimelineCommand(),_0xeb341f=program[_0x14f33e(0x3dc)](),_0x986d95=await createTDXInstance(_0xeb341f),_0x3d5201=await _0x1379f4['run']({'options':{..._0xeb341f,..._0x301221},'args':_0x3bb171?[_0x3bb171]:[],'tdx':_0x986d95});gracefulExit(_0x3d5201);}),workflowCmd['command'](a2_0x5136e2(0x1de))['description']('Retry\x20a\x20session\x20(prefix\x20with\x20session:)')['option'](a2_0x5136e2(0x34b),a2_0x5136e2(0x216))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1cd),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')['action'](async(_0x3da6b2,_0x2ec6a9)=>{const _0x58d538=a2_0x5136e2,_0x526475=new WorkflowRetryCommand(),_0x46c289=program[_0x58d538(0x3dc)](),_0x3023af=await createTDXInstance(_0x46c289),_0x4ba457=await _0x526475[_0x58d538(0x3d3)]({'options':{..._0x46c289,..._0x2ec6a9},'args':[_0x3da6b2],'tdx':_0x3023af});gracefulExit(_0x4ba457);}),workflowCmd['command'](a2_0x5136e2(0x24a))['description'](a2_0x5136e2(0x2f3))['option'](a2_0x5136e2(0x3a3),'Workflow\x20parameter\x20(repeatable)',(_0x52bff4,_0x94b864=[])=>[..._0x94b864,_0x52bff4],[])[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x290),'Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)')[a2_0x5136e2(0x338)](async(_0x98cc7c,_0x252029)=>{const _0x256a20=a2_0x5136e2,_0x148e09=new WorkflowRunCommand(),_0x2bd792=program[_0x256a20(0x3dc)](),_0x161982=await createTDXInstance(_0x2bd792),_0x212c30=await _0x148e09[_0x256a20(0x3d3)]({'options':{..._0x2bd792,..._0x252029},'args':_0x98cc7c?[_0x98cc7c]:[],'tdx':_0x161982});gracefulExit(_0x212c30);}),workflowCmd['command'](a2_0x5136e2(0x192))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1d2))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f1),'Specific\x20revision\x20to\x20download\x20(default:\x20latest)')[a2_0x5136e2(0x338)](async(_0x977a03,_0x9dfefb,_0x118044)=>{const _0x388d72=a2_0x5136e2,_0x592440=new WorkflowDownloadCommand(),_0x39be5b=program[_0x388d72(0x3dc)](),_0x8aa64c=await createTDXInstance(_0x39be5b),_0x525248=await _0x592440['run']({'options':{..._0x39be5b,..._0x118044},'args':[_0x977a03,_0x9dfefb||'.'],'tdx':_0x8aa64c});gracefulExit(_0x525248);}),workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3aa))[a2_0x5136e2(0x21d)]('Pull\x20workflow\x20project\x20to\x20local\x20folder')['option'](a2_0x5136e2(0x1f1),a2_0x5136e2(0x3c0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x3a0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),'Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](async(_0x1371c8,_0x19a846,_0x4ff162)=>{const _0x8e8019=a2_0x5136e2,_0x5e3517=new WorkflowPullCommand(),_0x246ce0=program[_0x8e8019(0x3dc)](),_0x3f5265=await createTDXInstance(_0x246ce0),_0x464ebe=await _0x5e3517['run']({'options':{..._0x246ce0,..._0x4ff162},'args':_0x19a846?[_0x1371c8,_0x19a846]:[_0x1371c8],'tdx':_0x3f5265});gracefulExit(_0x464ebe);}),workflowCmd['command'](a2_0x5136e2(0x1b8))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x21e))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f1),a2_0x5136e2(0x1ea))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x3e0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1d1),a2_0x5136e2(0x20c))['option'](a2_0x5136e2(0x281),'Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](async(_0x5c164b,_0x27d621)=>{const _0xad870b=a2_0x5136e2,_0xdf2805=new WorkflowPushCommand(),_0x38dd63=program['opts'](),_0x3d3af4=await createTDXInstance(_0x38dd63),_0x1236c8=await _0xdf2805[_0xad870b(0x3d3)]({'options':{..._0x38dd63,..._0x27d621},'args':_0x5c164b?[_0x5c164b]:[],'tdx':_0x3d3af4});gracefulExit(_0x1236c8);}),workflowCmd[a2_0x5136e2(0x180)]('upload\x20[project-name-or-dir]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x241))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x344),'Override\x20project\x20name')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1f1),a2_0x5136e2(0x208))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1d1),a2_0x5136e2(0x20c))['action'](async(_0x33b6d0,_0x328987)=>{const _0x51d18d=a2_0x5136e2,_0x23e134=new WorkflowUploadCommand(),_0x5e096c=program[_0x51d18d(0x3dc)](),_0x58bcd8=await createTDXInstance(_0x5e096c),_0x154ec1=await _0x23e134[_0x51d18d(0x3d3)]({'options':{..._0x5e096c,..._0x328987},'args':_0x33b6d0?[_0x33b6d0]:[],'tdx':_0x58bcd8});gracefulExit(_0x154ec1);}),workflowCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3d9))[a2_0x5136e2(0x21d)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x5136e2(0x2c0)]('--name\x20<name>',a2_0x5136e2(0x273))[a2_0x5136e2(0x2c0)]('--revision\x20<revision>',a2_0x5136e2(0x1ea))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x3ed))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1d1),'Skip\x20validation\x20of\x20.dig\x20files')[a2_0x5136e2(0x2c0)]('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](async(_0x7bfef7,_0x1d6625)=>{const _0x4a03a8=new WorkflowCloneCommand(),_0x581bda=program['opts'](),_0x1f126e=await createTDXInstance(_0x581bda),_0x4c5bf8=await _0x4a03a8['run']({'options':{..._0x581bda,..._0x1d6625},'args':_0x7bfef7?[_0x7bfef7]:[],'tdx':_0x1f126e});gracefulExit(_0x4c5bf8);}),workflowCmd[a2_0x5136e2(0x180)]('delete\x20<project-name-or-id>')['description'](a2_0x5136e2(0x2ee))[a2_0x5136e2(0x338)](async(_0x39f638,_0x406050)=>{const _0x1ae4bd=a2_0x5136e2,_0x68220b=new WorkflowDeleteCommand(),_0x3a8b9e=program[_0x1ae4bd(0x3dc)](),_0x445da3=await createTDXInstance(_0x3a8b9e),_0x463a55=await _0x68220b[_0x1ae4bd(0x3d3)]({'options':{..._0x3a8b9e,..._0x406050},'args':[_0x39f638],'tdx':_0x445da3});gracefulExit(_0x463a55);}),workflowCmd['command'](a2_0x5136e2(0x3b1))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x336))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x361),a2_0x5136e2(0x1d4))['action'](async(_0x34c183,_0x55820)=>{const _0x4b2c77=a2_0x5136e2,_0x16ccbe=new WorkflowUseCommand(),_0x57a9dd=program[_0x4b2c77(0x3dc)](),_0x29a296=await createTDXInstance(_0x57a9dd),_0x4d5f37=await _0x16ccbe['run']({'options':{..._0x57a9dd,..._0x55820},'args':_0x34c183?[_0x34c183]:[],'tdx':_0x29a296});gracefulExit(_0x4d5f37);});const wfSecretsCmd=workflowCmd['command'](a2_0x5136e2(0x39d))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x258));wfSecretsCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x178))['description'](a2_0x5136e2(0x2ba))['action'](async(_0x684e97,_0x1dbdc9)=>{const _0xd57ddb=a2_0x5136e2,_0x184fd1=new WorkflowSecretsListCommand(),_0x5f092a=program[_0xd57ddb(0x3dc)](),_0x1aac16=await createTDXInstance(_0x5f092a),_0x17aa22=await _0x184fd1[_0xd57ddb(0x3d3)]({'options':{..._0x5f092a,..._0x1dbdc9},'args':_0x684e97?[_0x684e97]:[],'tdx':_0x1aac16});gracefulExit(_0x17aa22);}),wfSecretsCmd['command'](a2_0x5136e2(0x364))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3f9))['action'](async(_0xe387ed,_0x27ee6c)=>{const _0x4d39f7=a2_0x5136e2,_0x161fec=new WorkflowSecretsSetCommand(),_0x425846=program['opts'](),_0x15d2e0=await createTDXInstance(_0x425846),_0x42d843=await _0x161fec[_0x4d39f7(0x3d3)]({'options':{..._0x425846,..._0x27ee6c},'args':_0xe387ed,'tdx':_0x15d2e0});gracefulExit(_0x42d843);}),wfSecretsCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2d2))[a2_0x5136e2(0x21d)]('Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)')[a2_0x5136e2(0x2c0)]('-y,\x20--yes',a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](async(_0x578b12,_0x203692)=>{const _0x24ec0d=a2_0x5136e2,_0x3112e2=new WorkflowSecretsDeleteCommand(),_0x52e742=program[_0x24ec0d(0x3dc)](),_0x1ef2ff=await createTDXInstance(_0x52e742),_0x192f89=await _0x3112e2[_0x24ec0d(0x3d3)]({'options':{..._0x52e742,..._0x203692},'args':_0x578b12,'tdx':_0x1ef2ff});gracefulExit(_0x192f89);});const jobCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x371))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2bb)),jobListAction=async _0xa4bfc=>{const _0x36d24c=a2_0x5136e2,_0x124887=new JobListCommand(),_0xb466ce=program['opts'](),_0x2c0b4e=await createTDXInstance(_0xb466ce),_0x335523=await _0x124887[_0x36d24c(0x3d3)]({'options':{..._0xb466ce,..._0xa4bfc},'args':[],'tdx':_0x2c0b4e});gracefulExit(_0x335523);};jobCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x203))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1cf))['option'](a2_0x5136e2(0x3ca),a2_0x5136e2(0x1ff))[a2_0x5136e2(0x338)](jobListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x20b),{'hidden':!![]})[a2_0x5136e2(0x21d)]('List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ca),a2_0x5136e2(0x1ff))[a2_0x5136e2(0x338)](jobListAction),jobCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x342))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3ae))[a2_0x5136e2(0x338)](async(_0x484b98,_0x3eb057)=>{const _0x18430a=a2_0x5136e2,_0x326b08=new JobShowCommand(),_0xfd0f45=program[_0x18430a(0x3dc)](),_0x5b92c5=await createTDXInstance(_0xfd0f45),_0xb63455=await _0x326b08[_0x18430a(0x3d3)]({'options':{..._0xfd0f45,..._0x3eb057},'args':[_0x484b98],'tdx':_0x5b92c5});gracefulExit(_0xb63455);}),jobCmd[a2_0x5136e2(0x180)]('kill\x20<job-id>')['description']('Kill\x20a\x20job')['action'](async(_0x3f9fed,_0x5b924d)=>{const _0x8dcade=a2_0x5136e2,_0x3d474e=new JobKillCommand(),_0x507489=program['opts'](),_0x5f234f=await createTDXInstance(_0x507489),_0x266dcc=await _0x3d474e[_0x8dcade(0x3d3)]({'options':{..._0x507489,..._0x5b924d},'args':[_0x3f9fed],'tdx':_0x5f234f});gracefulExit(_0x266dcc);}),jobCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x347))['description'](a2_0x5136e2(0x1e3))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1c3),'Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','trino')['option'](a2_0x5136e2(0x28c),a2_0x5136e2(0x255))['option'](a2_0x5136e2(0x18c),a2_0x5136e2(0x357),a2_0x5136e2(0x292))[a2_0x5136e2(0x2c0)]('--result\x20<target>',a2_0x5136e2(0x1b0))[a2_0x5136e2(0x338)](async(_0x4fb107,_0x28ad5e)=>{const _0xb54936=a2_0x5136e2,_0x41f74d=new JobSubmitCommand(),_0x15724b=program[_0xb54936(0x3dc)](),_0x14a485=await createTDXInstance(_0x15724b),_0x24f1e0=await _0x41f74d[_0xb54936(0x3d3)]({'options':{..._0x15724b,..._0x28ad5e},'args':_0x4fb107?[_0x4fb107]:[],'tdx':_0x14a485});gracefulExit(_0x24f1e0);}),jobCmd['command']('result\x20<job-id>')['description'](a2_0x5136e2(0x1e5))[a2_0x5136e2(0x338)](async(_0x5df0bd,_0x779773)=>{const _0xb90762=a2_0x5136e2,_0x178cc7=new JobResultCommand(),_0x4ea983=program[_0xb90762(0x3dc)](),_0x286a13=await createTDXInstance(_0x4ea983),_0x3c6f70=await _0x178cc7[_0xb90762(0x3d3)]({'options':{..._0x4ea983,..._0x779773},'args':[_0x5df0bd],'tdx':_0x286a13});gracefulExit(_0x3c6f70);});const scheduleCmd=jobCmd[a2_0x5136e2(0x180)]('schedule')['description'](a2_0x5136e2(0x164));scheduleCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))['description'](a2_0x5136e2(0x24f))[a2_0x5136e2(0x338)](async(_0xc501e9,_0x1ffe70)=>{const _0x48d5f8=a2_0x5136e2,_0x2fc084=new ScheduleListCommand(),_0x1f423d=program[_0x48d5f8(0x3dc)](),_0x1c74a6=await createTDXInstance(_0x1f423d),_0x3933b0=await _0x2fc084['run']({'options':{..._0x1f423d,..._0x1ffe70},'args':_0xc501e9?[_0xc501e9]:[],'tdx':_0x1c74a6});gracefulExit(_0x3933b0);}),scheduleCmd['command'](a2_0x5136e2(0x235))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x264))[a2_0x5136e2(0x338)](async(_0x3d2144,_0x492321)=>{const _0x17cc65=a2_0x5136e2,_0x482e33=new ScheduleShowCommand(),_0x59146c=program[_0x17cc65(0x3dc)](),_0xb205f8=await createTDXInstance(_0x59146c),_0x14f1f7=await _0x482e33[_0x17cc65(0x3d3)]({'options':{..._0x59146c,..._0x492321},'args':[_0x3d2144],'tdx':_0xb205f8});gracefulExit(_0x14f1f7);}),scheduleCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b3))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1f6))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x2b1),'Database\x20name')['requiredOption'](a2_0x5136e2(0x28c),a2_0x5136e2(0x255))['option']('--type\x20<type>',a2_0x5136e2(0x368),a2_0x5136e2(0x3d6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x319),a2_0x5136e2(0x275))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x287),a2_0x5136e2(0x17c))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x217),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x316),a2_0x5136e2(0x2a3))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3f7),'Retry\x20limit\x20(0\x20to\x2032)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x18b),a2_0x5136e2(0x2d3))['option'](a2_0x5136e2(0x1b2),a2_0x5136e2(0x2b7))[a2_0x5136e2(0x338)](async(_0x17b700,_0x1b3690)=>{const _0x335bf8=a2_0x5136e2,_0x28b3fb=new ScheduleCreateCommand(),_0x3d7e8c=program['opts'](),_0x5d9382=await createTDXInstance(_0x3d7e8c),_0x1ffd7d=await _0x28b3fb[_0x335bf8(0x3d3)]({'options':{..._0x3d7e8c,..._0x1b3690},'args':[_0x17b700],'tdx':_0x5d9382});gracefulExit(_0x1ffd7d);}),scheduleCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2cd))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3a2))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2b1),a2_0x5136e2(0x34a))[a2_0x5136e2(0x2c0)]('-f,\x20--file\x20<path>',a2_0x5136e2(0x255))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b6),a2_0x5136e2(0x368))['option'](a2_0x5136e2(0x319),a2_0x5136e2(0x275))['option'](a2_0x5136e2(0x287),'Timezone\x20for\x20cron')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x217),'Delay\x20in\x20seconds\x20before\x20execution')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x316),a2_0x5136e2(0x2a3))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3f7),a2_0x5136e2(0x288))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x18b),a2_0x5136e2(0x2d3))[a2_0x5136e2(0x2c0)]('--result\x20<url>','Result\x20output\x20destination\x20URL')['action'](async(_0xef785f,_0x1721b3)=>{const _0x2945e6=a2_0x5136e2,_0x5e05dd=new ScheduleUpdateCommand(),_0x3390d5=program[_0x2945e6(0x3dc)](),_0x4e5b18=await createTDXInstance(_0x3390d5),_0x3a1329=await _0x5e05dd[_0x2945e6(0x3d3)]({'options':{..._0x3390d5,..._0x1721b3},'args':[_0xef785f],'tdx':_0x4e5b18});gracefulExit(_0x3a1329);}),scheduleCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x156))[a2_0x5136e2(0x21d)]('Delete\x20a\x20scheduled\x20query')['action'](async(_0x1d037c,_0x569503)=>{const _0x4b5bba=a2_0x5136e2,_0x46922a=new ScheduleDeleteCommand(),_0x5e88c4=program[_0x4b5bba(0x3dc)](),_0x4350df=await createTDXInstance(_0x5e88c4),_0x5d2c9d=await _0x46922a['run']({'options':{..._0x5e88c4,..._0x569503},'args':[_0x1d037c],'tdx':_0x4350df});gracefulExit(_0x5d2c9d);}),scheduleCmd['command'](a2_0x5136e2(0x2e6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2f0))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ea),a2_0x5136e2(0x220))[a2_0x5136e2(0x2c0)]('--num\x20<1-10>','Number\x20of\x20executions\x20(1-10,\x20default:\x201)')['action'](async(_0xaa5b0c,_0x5d35a5)=>{const _0x475a41=a2_0x5136e2,_0x4ac354=new ScheduleRunCommand(),_0x2e46ca=program[_0x475a41(0x3dc)](),_0x59f9ab=await createTDXInstance(_0x2e46ca),_0x3e8541=await _0x4ac354[_0x475a41(0x3d3)]({'options':{..._0x2e46ca,..._0x5d35a5},'args':[_0xaa5b0c],'tdx':_0x59f9ab});gracefulExit(_0x3e8541);}),scheduleCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3db))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x16a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1e8),a2_0x5136e2(0x2cf))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1ba),'Ending\x20offset\x20(default:\x2020)')[a2_0x5136e2(0x338)](async(_0x48966a,_0x174646)=>{const _0xed4147=a2_0x5136e2,_0xa55655=new ScheduleHistoryCommand(),_0x32cde9=program[_0xed4147(0x3dc)](),_0x408f5b=await createTDXInstance(_0x32cde9),_0x3908ed=await _0xa55655[_0xed4147(0x3d3)]({'options':{..._0x32cde9,..._0x174646},'args':[_0x48966a],'tdx':_0x408f5b});gracefulExit(_0x3908ed);});const llmCmd=program[a2_0x5136e2(0x180)]('llm')['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x158))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x29c))[a2_0x5136e2(0x338)](async(_0x4c94aa,_0x275500)=>{const _0x24ca2d=new LLMUseCommand(),_0x323b65=program['opts'](),_0x5314bd=await createTDXInstance(_0x323b65),_0x4c72c1=await _0x24ca2d['run']({'options':{..._0x323b65,..._0x275500},'args':[_0x4c94aa],'tdx':_0x5314bd});gracefulExit(_0x4c72c1);}),llmCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x28d))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3a9))[a2_0x5136e2(0x338)](async _0xd7e364=>{const _0xe050f7=a2_0x5136e2,_0x3ae2a2=new LLMModelsCommand(),_0x1cb2f8=program[_0xe050f7(0x3dc)](),_0x1994ea=await createTDXInstance(_0x1cb2f8),_0x581759=await _0x3ae2a2[_0xe050f7(0x3d3)]({'options':{..._0x1cb2f8,..._0xd7e364},'args':[],'tdx':_0x1994ea});gracefulExit(_0x581759);});const projectCmd=llmCmd[a2_0x5136e2(0x180)]('project')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2fb)),llmProjectListAction=async(_0x28ebf9,_0x5e96d8)=>{const _0x295376=a2_0x5136e2,_0x596a48=new LLMProjectsCommand(),_0x1289ed=program[_0x295376(0x3dc)](),_0x4a525b=await createTDXInstance(_0x1289ed),_0x37a78c=await _0x596a48[_0x295376(0x3d3)]({'options':{..._0x1289ed,..._0x5e96d8},'args':_0x28ebf9?[_0x28ebf9]:[],'tdx':_0x4a525b});gracefulExit(_0x37a78c);};projectCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x24e))[a2_0x5136e2(0x338)](llmProjectListAction),llmCmd['command'](a2_0x5136e2(0x3d8))['description']('List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)')[a2_0x5136e2(0x338)](llmProjectListAction),projectCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b3))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2b2))['option'](a2_0x5136e2(0x345),'Project\x20description')[a2_0x5136e2(0x338)](async(_0x150aee,_0x5b38ff)=>{const _0x33e3ab=a2_0x5136e2,_0x115d54=new LLMProjectCreateCommand(),_0x467904=program[_0x33e3ab(0x3dc)](),_0x4daf5e=await createTDXInstance(_0x467904),_0x228e82=await _0x115d54['run']({'options':{..._0x467904,..._0x5b38ff},'args':[_0x150aee],'tdx':_0x4daf5e});gracefulExit(_0x228e82);}),projectCmd[a2_0x5136e2(0x180)]('delete\x20<name>')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2ac))[a2_0x5136e2(0x338)](async(_0x4a031e,_0x54e35a)=>{const _0x4ccd5e=a2_0x5136e2,_0x125cef=new LLMProjectDeleteCommand(),_0x3480bc=program[_0x4ccd5e(0x3dc)](),_0xfc6d10=await createTDXInstance(_0x3480bc),_0x55ad39=await _0x125cef['run']({'options':{..._0x3480bc,..._0x54e35a},'args':[_0x4a031e],'tdx':_0xfc6d10});gracefulExit(_0x55ad39);}),projectCmd['command'](a2_0x5136e2(0x269))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x283))[a2_0x5136e2(0x2c0)]('-o,\x20--output\x20<folder>',a2_0x5136e2(0x3b9))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x311))[a2_0x5136e2(0x338)](async(_0x260ed2,_0xb4eae6)=>{const _0x13dce9=a2_0x5136e2,_0x1bd860=new LLMProjectBackupCommand(),_0x40fd5c=program[_0x13dce9(0x3dc)](),_0x19e576=await createTDXInstance(_0x40fd5c),_0x2ee446=await _0x1bd860['run']({'options':{..._0x40fd5c,..._0xb4eae6},'args':[_0x260ed2],'tdx':_0x19e576});gracefulExit(_0x2ee446);}),projectCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3d1))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x39a))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x189),a2_0x5136e2(0x1cc))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),'Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes')[a2_0x5136e2(0x338)](async(_0x97db7b,_0x3ace58)=>{const _0x29bea7=a2_0x5136e2,_0x30bdbe=new LLMProjectRestoreCommand(),_0x73544e=program[_0x29bea7(0x3dc)](),_0x9b79e9=await createTDXInstance(_0x73544e),_0xeb566a=await _0x30bdbe[_0x29bea7(0x3d3)]({'options':{..._0x73544e,..._0x3ace58},'args':[_0x97db7b],'tdx':_0x9b79e9});gracefulExit(_0xeb566a);});const llmAgentListAction=async(_0x1355ac,_0x1920b2)=>{const _0x28681=a2_0x5136e2,_0x1a7cdb=new LLMAgentsCommand(),_0xf7b8b5=program[_0x28681(0x3dc)](),_0x1b68e6=await createTDXInstance(_0xf7b8b5),_0x1ef160=await _0x1a7cdb[_0x28681(0x3d3)]({'options':{..._0xf7b8b5,..._0x1920b2},'args':_0x1355ac?[_0x1355ac]:[],'tdx':_0x1b68e6});gracefulExit(_0x1ef160);};llmCmd[a2_0x5136e2(0x180)]('agents\x20[pattern]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3ba))[a2_0x5136e2(0x338)](llmAgentListAction),program['command'](a2_0x5136e2(0x244))['description']('List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)')['action'](llmAgentListAction),llmCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3c7))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x191))['option'](a2_0x5136e2(0x1c0),'Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session')['action'](async(_0x567024,_0x5316a5)=>{const _0x88ee7b=a2_0x5136e2,_0x12f01a=new LLMHistoryCommand(),_0xa2e605=program[_0x88ee7b(0x3dc)](),_0x1b664a=await createTDXInstance(_0xa2e605),_0x4542f7=await _0x12f01a[_0x88ee7b(0x3d3)]({'options':{..._0xa2e605,..._0x5316a5},'args':_0x567024?[_0x567024]:[],'tdx':_0x1b664a});gracefulExit(_0x4542f7);});isExperimentalAvailable()&&llmCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2ae))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x15b))[a2_0x5136e2(0x338)](async(_0x5add40,_0x416102)=>{const _0x2493c1=a2_0x5136e2,_0x14b676=new LLMLogCommand(),_0x2908e1=program[_0x2493c1(0x3dc)](),_0xd4a75=await createTDXInstance(_0x2908e1),_0x1a1396=await _0x14b676[_0x2493c1(0x3d3)]({'options':{..._0x2908e1,..._0x416102},'args':[_0x5add40],'tdx':_0xd4a75});gracefulExit(_0x1a1396);});program[a2_0x5136e2(0x180)](a2_0x5136e2(0x169))[a2_0x5136e2(0x3f2)](a2_0x5136e2(0x263))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2fd))[a2_0x5136e2(0x2c0)]('-c,\x20--continue','Continue\x20most\x20recent\x20conversation')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x363),a2_0x5136e2(0x318))[a2_0x5136e2(0x2c0)]('--no-proxy',a2_0x5136e2(0x1fe))[a2_0x5136e2(0x163)]()[a2_0x5136e2(0x30b)](!![])[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),a2_0x5136e2(0x2ec))[a2_0x5136e2(0x338)](async(_0x767c78,_0x38187f)=>{const _0x3a803b=a2_0x5136e2,_0x5d46a2=program[_0x3a803b(0x3dc)](),_0x5c747b=Array[_0x3a803b(0x31f)](_0x767c78)?_0x767c78:[];if(_0x5c747b[0x0]===_0x3a803b(0x2ca)){const _0x4d3d4a=new ClaudeStatuslineCommand(),_0x9bdb29=await _0x4d3d4a[_0x3a803b(0x3d3)]({'options':{..._0x5d46a2,..._0x38187f},'args':_0x5c747b['slice'](0x1),'tdx':null});gracefulExit(_0x9bdb29);}if(_0x5c747b[0x0]===_0x3a803b(0x3f2)){const _0x58ca5c=new ClaudeUsageCommand(),_0x330d27=await _0x58ca5c['run']({'options':{..._0x5d46a2,..._0x38187f},'args':_0x5c747b[_0x3a803b(0x36f)](0x1),'tdx':null});gracefulExit(_0x330d27);}const _0x45b562=new ClaudeCommand(),_0x5d1fc4=await createTDXInstance(_0x5d46a2),_0x3ae21d=await _0x45b562[_0x3a803b(0x3d3)]({'options':{..._0x5d46a2,..._0x38187f},'args':_0x5c747b,'tdx':_0x5d1fc4});gracefulExit(_0x3ae21d);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3eb))['description'](a2_0x5136e2(0x333))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x361),a2_0x5136e2(0x206))[a2_0x5136e2(0x2c0)]('--default',a2_0x5136e2(0x2e9))[a2_0x5136e2(0x338)](async(_0x317283,_0x265d1e,_0x1925fa)=>{const _0x1e066a=a2_0x5136e2,_0x2ada2c=new UseCommand(),_0xc6fb93=program['opts'](),_0x48993c=[];if(_0x317283)_0x48993c[_0x1e066a(0x37f)](_0x317283);if(_0x265d1e)_0x48993c[_0x1e066a(0x37f)](_0x265d1e);const _0x39d9d1=_0x317283==='engage_workspace',_0x3d8686=_0x39d9d1?await createTDXInstance(_0xc6fb93):null,_0x4aa078=await _0x2ada2c[_0x1e066a(0x3d3)]({'options':{..._0xc6fb93,..._0x1925fa},'args':_0x48993c,'tdx':_0x3d8686});gracefulExit(_0x4aa078);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x352))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x27e))['action'](async _0x508970=>{const _0x4dcb83=a2_0x5136e2,_0xc14ea6=new StatusCommand(),_0x2aed90=program[_0x4dcb83(0x3dc)](),_0xecd047=await createTDXInstance(_0x2aed90),_0xcd34fa=await _0xc14ea6['run']({'options':{..._0x2aed90,..._0x508970},'args':[],'tdx':_0xecd047});gracefulExit(_0xcd34fa);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3dd))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x209))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x276),a2_0x5136e2(0x253))[a2_0x5136e2(0x338)](async(_0x4374c8,_0x450c31)=>{const _0x58b8e7=a2_0x5136e2,_0x43b607=new UnsetCommand(),_0x674cc7=program[_0x58b8e7(0x3dc)](),_0xc93638=await _0x43b607[_0x58b8e7(0x3d3)]({'options':{..._0x674cc7,..._0x450c31},'args':[_0x4374c8],'tdx':null});gracefulExit(_0xc93638);}),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x389))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1db))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1c0),a2_0x5136e2(0x16e))['action'](async _0x247e8e=>{const _0x18097a=a2_0x5136e2,_0x2dea10=new ChatsCommand(),_0x26888d=program[_0x18097a(0x3dc)](),_0xd3f79c=await createTDXInstance(_0x26888d),_0x42c9a1=await _0x2dea10[_0x18097a(0x3d3)]({'options':{..._0x26888d,..._0x247e8e},'args':[],'tdx':_0xd3f79c});gracefulExit(_0x42c9a1);});const authCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x367))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x314));async function runAuthStatusCommand(_0x4a2587){const _0x45fd3f=a2_0x5136e2,_0x2d3d63=new AuthStatusCommand(),_0x49bdcc=program[_0x45fd3f(0x3dc)](),_0x3a30b4=await createTDXInstance(_0x49bdcc),_0x48738c=await _0x2d3d63[_0x45fd3f(0x3d3)]({'options':{..._0x49bdcc,..._0x4a2587},'args':[],'tdx':_0x3a30b4});gracefulExit(_0x48738c);}authCmd['action'](runAuthStatusCommand),authCmd['command'](a2_0x5136e2(0x352))[a2_0x5136e2(0x21d)]('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x5136e2(0x338)](runAuthStatusCommand),authCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x254))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x293))[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),a2_0x5136e2(0x1ce))['action'](async _0x4dab5f=>{const _0x7760f2=a2_0x5136e2,_0x57d1af=new AuthSetupCommand(),_0x42b1f5=program[_0x7760f2(0x3dc)](),_0x33ea61=await createTDXInstance(_0x42b1f5),_0x26ceb8=await _0x57d1af[_0x7760f2(0x3d3)]({'options':{..._0x42b1f5,..._0x4dab5f},'args':[],'tdx':_0x33ea61});gracefulExit(_0x26ceb8);}),authCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x249))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x23e))[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),a2_0x5136e2(0x166))['action'](async _0x584305=>{const _0x133eef=a2_0x5136e2,_0x5036f6=new AuthClearCommand(),_0x18f253=program['opts'](),_0x5699f5=await _0x5036f6[_0x133eef(0x3d3)]({'options':{..._0x18f253,..._0x584305},'args':[],'tdx':null});gracefulExit(_0x5699f5);});const userCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x37b))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x350)),userListAction=async _0x40bcbf=>{const _0x2f31ba=new UserListCommand(),_0x150131=program['opts'](),_0x4e312e=await createTDXInstance(_0x150131),_0x8e7902=await _0x2f31ba['run']({'options':{..._0x150131,..._0x40bcbf},'args':[],'tdx':_0x4e312e});gracefulExit(_0x8e7902);};userCmd[a2_0x5136e2(0x338)](async _0x39ff1a=>{const _0x26eadf=a2_0x5136e2,_0x5320c9=new UserCommand(),_0xe9aa35=program[_0x26eadf(0x3dc)](),_0x321e65=await createTDXInstance(_0xe9aa35),_0x682533=await _0x5320c9['run']({'options':{..._0xe9aa35,..._0x39ff1a},'args':[],'tdx':_0x321e65});gracefulExit(_0x682533);}),userCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x203))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x278))[a2_0x5136e2(0x338)](userListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x1e6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x242))[a2_0x5136e2(0x338)](userListAction),program['command'](a2_0x5136e2(0x1ed))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x28a))[a2_0x5136e2(0x338)](async _0x4903f9=>{const _0x4d6d1a=a2_0x5136e2,_0x4e64af=new ProfilesCommand(),_0xebe692=program[_0x4d6d1a(0x3dc)](),_0x260c0e=await _0x4e64af['run']({'options':{..._0xebe692,..._0x4903f9},'args':[],'tdx':null});gracefulExit(_0x260c0e);});const profileCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x3de))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x392));profileCmd['action'](()=>{const _0x5f0262=a2_0x5136e2;profileCmd[_0x5f0262(0x223)]();});const profileListAction=async _0x248e82=>{const _0x6c3d84=a2_0x5136e2,_0x26fb92=new ProfilesCommand(),_0x1a20e7=program[_0x6c3d84(0x3dc)](),_0x265c18=await _0x26fb92[_0x6c3d84(0x3d3)]({'options':{..._0x1a20e7,..._0x248e82},'args':[],'tdx':null});gracefulExit(_0x265c18);};profileCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x203))['description']('List\x20all\x20available\x20profiles')[a2_0x5136e2(0x338)](profileListAction),profileCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x327))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1b4))[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),a2_0x5136e2(0x19c))[a2_0x5136e2(0x338)](async(_0x12b502,_0x33fb79)=>{const _0x320815=a2_0x5136e2,_0x417869=new ProfileCreateCommand(),_0x5dc37c=program[_0x320815(0x3dc)](),_0xf6bc89=await _0x417869[_0x320815(0x3d3)]({'options':{..._0x5dc37c,..._0x33fb79},'args':_0x12b502?[_0x12b502]:[],'tdx':null});gracefulExit(_0xf6bc89);}),profileCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x237))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1bd))[a2_0x5136e2(0x335)]('after','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a')['action'](async(_0x4f3e18,_0x4f5716)=>{const _0x307ff4=new ProfileRemoveCommand(),_0x429c65=program['opts'](),_0x3bb0f2=await _0x307ff4['run']({'options':{..._0x429c65,..._0x4f5716},'args':[_0x4f3e18],'tdx':null});gracefulExit(_0x3bb0f2);}),profileCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3a4))['description'](a2_0x5136e2(0x247))[a2_0x5136e2(0x335)](a2_0x5136e2(0x2a2),'\x0aValid\x20keys:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20llm_agent,\x20description\x0a\x0aUses\x20session\x20profile\x20if\x20set\x20(via\x20\x27tdx\x20profile\x20use\x27),\x20or\x20specify\x20with\x20--profile.\x0aNote:\x20Setting\x20\x27site\x27\x20requires\x20API\x20key\x20validation.\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20&&\x20tdx\x20profile\x20set\x20database=my_db\x0a\x20\x20$\x20tdx\x20profile\x20set\x20--profile\x20staging\x20site=jp01\x20\x20\x20#\x20Will\x20prompt\x20for\x20API\x20key\x0a\x20\x20$\x20tdx\x20profile\x20set\x20description=\x22Development\x20environment\x22\x0a')[a2_0x5136e2(0x338)](async(_0x1f78fe,_0x3b56d4)=>{const _0x2de3f0=a2_0x5136e2,_0x126acc=new ProfileSetCommand(),_0x2e527d=program[_0x2de3f0(0x3dc)](),_0x28c049=await _0x126acc['run']({'options':{..._0x2e527d,..._0x3b56d4},'args':[_0x1f78fe],'tdx':null});gracefulExit(_0x28c049);}),profileCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x38e))[a2_0x5136e2(0x21d)]('Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x276),a2_0x5136e2(0x2e9))['addHelpText']('after',a2_0x5136e2(0x1fb))['action'](async(_0x2d3f32,_0x2bd278)=>{const _0x591ac4=a2_0x5136e2,_0x265855=new ProfileUseCommand(),_0xac773b=program[_0x591ac4(0x3dc)](),_0x28d8da=await _0x265855[_0x591ac4(0x3d3)]({'options':{..._0xac773b,..._0x2bd278},'args':[_0x2d3f32],'tdx':null});gracefulExit(_0x28d8da);});const engageCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x221))['description']('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0x3cdd35=>{return async(_0x3f5931,_0x7e606)=>{const _0xa40e18=a2_0x490f,_0x2e0340=new _0x3cdd35(),_0x4272d4=program['opts'](),_0x15a79a=await createTDXInstance(_0x4272d4),_0x2af6f6=await _0x2e0340[_0xa40e18(0x3d3)]({'options':{..._0x4272d4,..._0x7e606},'args':[_0x3f5931],'tdx':_0x15a79a});gracefulExit(_0x2af6f6);};},createEngageNoArgAction=_0x249e9d=>{return async _0x597d11=>{const _0x41f474=a2_0x490f,_0x2982e7=new _0x249e9d(),_0x57136b=program[_0x41f474(0x3dc)](),_0x5ac115=await createTDXInstance(_0x57136b),_0x430fb6=await _0x2982e7[_0x41f474(0x3d3)]({'options':{..._0x57136b,..._0x597d11},'args':[],'tdx':_0x5ac115});gracefulExit(_0x430fb6);};},campaignCmd=engageCmd[a2_0x5136e2(0x180)]('campaign')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x29f)),campaignListAction=async(_0x445ad0,_0x33e717)=>{const _0x217254=a2_0x5136e2,_0x520716=new EngageCampaignsCommand(),_0x2dcf0b=program[_0x217254(0x3dc)](),_0x5ea114=await createTDXInstance(_0x2dcf0b),_0x779e35=await _0x520716[_0x217254(0x3d3)]({'options':{..._0x2dcf0b,..._0x33e717},'args':_0x445ad0?[_0x445ad0]:[],'tdx':_0x5ea114});gracefulExit(_0x779e35);};campaignCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3da))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b6),a2_0x5136e2(0x34d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ca),'Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),'Workspace\x20name')[a2_0x5136e2(0x338)](campaignListAction),engageCmd[a2_0x5136e2(0x180)]('campaigns\x20[pattern]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3ee))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b6),a2_0x5136e2(0x34d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ca),a2_0x5136e2(0x31e))['option'](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))['action'](campaignListAction),campaignCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x25c))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2d1))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))['option'](a2_0x5136e2(0x2e4),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x5136e2(0x338)](createEngageAction(EngageCampaignShowCommand)),campaignCmd['command'](a2_0x5136e2(0x30a))['description'](a2_0x5136e2(0x395))[a2_0x5136e2(0x3a5)]('--name\x20<name>',a2_0x5136e2(0x218))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x3b6),'Campaign\x20type\x20(email\x20or\x20push)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x382))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b7),a2_0x5136e2(0x201))['option'](a2_0x5136e2(0x328),'Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d6),a2_0x5136e2(0x270))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2be),a2_0x5136e2(0x3c6))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x17b),a2_0x5136e2(0x19d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x287),a2_0x5136e2(0x26e))[a2_0x5136e2(0x338)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd[a2_0x5136e2(0x180)]('update\x20<name-or-id>')[a2_0x5136e2(0x21d)]('Update\x20a\x20campaign')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x344),'New\x20campaign\x20name')['option'](a2_0x5136e2(0x3b7),a2_0x5136e2(0x201))['option']('--segment\x20<path>',a2_0x5136e2(0x23b))['option'](a2_0x5136e2(0x2d6),a2_0x5136e2(0x270))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2be),a2_0x5136e2(0x3c6))['option']('--start-at\x20<datetime>',a2_0x5136e2(0x19d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x287),'Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)')[a2_0x5136e2(0x338)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command'](a2_0x5136e2(0x2da))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3e5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x295),a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x3a8))[a2_0x5136e2(0x21d)]('Launch\x20a\x20campaign')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))['action'](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x30c))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x38c))[a2_0x5136e2(0x2c0)]('--workspace\x20<name>',a2_0x5136e2(0x3fa))['action'](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x22c))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x179))[a2_0x5136e2(0x2c0)]('--workspace\x20<name>','Workspace\x20name')['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd['command'](a2_0x5136e2(0x25d))[a2_0x5136e2(0x21d)]('Duplicate\x20a\x20campaign')[a2_0x5136e2(0x2c0)]('--workspace\x20<name>',a2_0x5136e2(0x3fa))[a2_0x5136e2(0x338)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1a8))['description']('Email\x20template\x20management'),templateListAction=async(_0x4c34f2,_0x2d14db)=>{const _0x1dd806=a2_0x5136e2,_0x42e96e=new EngageTemplatesCommand(),_0x40f975=program['opts'](),_0x2da00b=await createTDXInstance(_0x40f975),_0x1d12fa=await _0x42e96e[_0x1dd806(0x3d3)]({'options':{..._0x40f975,..._0x2d14db},'args':_0x4c34f2?[_0x4c34f2]:[],'tdx':_0x2da00b});gracefulExit(_0x1d12fa);};templateCmd[a2_0x5136e2(0x180)]('list\x20[pattern]')['description'](a2_0x5136e2(0x181))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))[a2_0x5136e2(0x338)](templateListAction),engageCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x26b))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1ca))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x184),a2_0x5136e2(0x3fa))[a2_0x5136e2(0x338)](templateListAction),templateCmd['command'](a2_0x5136e2(0x25c))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x33d))[a2_0x5136e2(0x2c0)]('--workspace\x20<name>',a2_0x5136e2(0x3fa))[a2_0x5136e2(0x2c0)]('--full',a2_0x5136e2(0x2b5))['action'](createEngageAction(EngageTemplateShowCommand)),templateCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x30a))[a2_0x5136e2(0x21d)]('Create\x20an\x20email\x20template')[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x344),a2_0x5136e2(0x356))['requiredOption'](a2_0x5136e2(0x280),a2_0x5136e2(0x369))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x3be),'HTML\x20template\x20content')['option']('--workspace\x20<name>',a2_0x5136e2(0x382))[a2_0x5136e2(0x2c0)]('--plaintext\x20<text>',a2_0x5136e2(0x349))['option']('--editor-type\x20<type>',a2_0x5136e2(0x36e),_0x2a449c=>{const _0xf08eb2=a2_0x5136e2;if(![_0xf08eb2(0x1dc),_0xf08eb2(0x3d0)]['includes'](_0x2a449c))throw new SDKError(ErrorCode[_0xf08eb2(0x1aa)],_0xf08eb2(0x31c)+_0x2a449c+_0xf08eb2(0x1f9));return _0x2a449c;})[a2_0x5136e2(0x338)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x32e))['description'](a2_0x5136e2(0x375))[a2_0x5136e2(0x2c0)]('--workspace\x20<name>',a2_0x5136e2(0x3fa))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x344),'New\x20template\x20name')[a2_0x5136e2(0x2c0)]('--subject\x20<subject>',a2_0x5136e2(0x369))['option'](a2_0x5136e2(0x3be),'HTML\x20template\x20content')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x23a),a2_0x5136e2(0x349))[a2_0x5136e2(0x338)](createEngageAction(EngageTemplateUpdateCommand)),templateCmd[a2_0x5136e2(0x180)]('delete\x20<name-or-id>')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x285))[a2_0x5136e2(0x2c0)]('--workspace\x20<name>',a2_0x5136e2(0x3fa))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x295),'Skip\x20confirmation\x20prompt')['action'](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x5136e2(0x180)]('workspace')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1d9)),workspaceListAction=async(_0x55bddd,_0x386e93)=>{const _0x44efa0=a2_0x5136e2,_0x84e8f0=new EngageWorkspacesCommand(),_0x55ffa9=program[_0x44efa0(0x3dc)](),_0x35528f=await createTDXInstance(_0x55ffa9),_0xa7505d=await _0x84e8f0[_0x44efa0(0x3d3)]({'options':{..._0x55ffa9,..._0x386e93},'args':_0x55bddd?[_0x55bddd]:[],'tdx':_0x35528f});gracefulExit(_0xa7505d);};workspaceCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))['description'](a2_0x5136e2(0x2dd))[a2_0x5136e2(0x338)](workspaceListAction),engageCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x24c))[a2_0x5136e2(0x21d)]('List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)')[a2_0x5136e2(0x338)](workspaceListAction),workspaceCmd['command']('show\x20<name-or-id>')[a2_0x5136e2(0x21d)]('Show\x20workspace\x20details')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2e4),a2_0x5136e2(0x2b5))[a2_0x5136e2(0x338)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd['command']('create')['description'](a2_0x5136e2(0x2e1))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x344),'Workspace\x20name')[a2_0x5136e2(0x2c0)]('--description\x20<desc>',a2_0x5136e2(0x26c))[a2_0x5136e2(0x338)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x32e))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x390))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x344),a2_0x5136e2(0x175))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3b7),a2_0x5136e2(0x26c))[a2_0x5136e2(0x338)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd['command']('delete\x20<name-or-id>')['description'](a2_0x5136e2(0x165))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x295),'Skip\x20confirmation\x20prompt')[a2_0x5136e2(0x338)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command'](a2_0x5136e2(0x38e))['description'](a2_0x5136e2(0x222))['action'](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x5136e2(0x180)](a2_0x5136e2(0x374))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x187)),connectionListAction=async _0x24b73f=>{const _0x759017=a2_0x5136e2,_0x220976=new ConnectionListCommand(),_0x4f09e6=program['opts'](),_0x4092c9=await createTDXInstance(_0x4f09e6),_0x57e963=await _0x220976[_0x759017(0x3d3)]({'options':{..._0x4f09e6,..._0x24b73f},'args':[],'tdx':_0x4092c9});gracefulExit(_0x57e963);};connectionCmd[a2_0x5136e2(0x180)]('list')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x17f))[a2_0x5136e2(0x338)](connectionListAction),program[a2_0x5136e2(0x180)](a2_0x5136e2(0x1a7),{'hidden':!![]})[a2_0x5136e2(0x21d)]('List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)')[a2_0x5136e2(0x338)](connectionListAction),connectionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x235))['description']('Show\x20connection\x20details\x20by\x20name')['action'](async(_0x48f771,_0x2a873e)=>{const _0xae993=a2_0x5136e2,_0x202130=new ConnectionShowCommand(),_0x4c0781=program[_0xae993(0x3dc)](),_0x5d2e41=await createTDXInstance(_0x4c0781),_0x396ad5=await _0x202130[_0xae993(0x3d3)]({'options':{..._0x4c0781,..._0x2a873e},'args':[_0x48f771],'tdx':_0x5d2e41});gracefulExit(_0x396ad5);}),connectionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x207))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x31d))['action'](async(_0x39f851,_0x544ff7)=>{const _0x1b9959=a2_0x5136e2,_0x5cb852=new ConnectionSchemaCommand(),_0x3c8b27=program[_0x1b9959(0x3dc)](),_0xd59c20=await createTDXInstance(_0x3c8b27),_0x3037e6=await _0x5cb852[_0x1b9959(0x3d3)]({'options':{..._0x3c8b27,..._0x544ff7},'args':[_0x39f851],'tdx':_0xd59c20});gracefulExit(_0x3037e6);}),connectionCmd[a2_0x5136e2(0x180)]('types')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x34e))['action'](async _0xd0d3c1=>{const _0x180bd9=a2_0x5136e2,_0x3e49f9=new ConnectionTypesCommand(),_0x5c1954=program[_0x180bd9(0x3dc)](),_0x4e3779=await createTDXInstance(_0x5c1954),_0x3815a8=await _0x3e49f9[_0x180bd9(0x3d3)]({'options':{..._0x5c1954,..._0xd0d3c1},'args':[],'tdx':_0x4e3779});gracefulExit(_0x3815a8);}),connectionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x32d))['description'](a2_0x5136e2(0x177))[a2_0x5136e2(0x338)](async(_0x35ea03,_0x556ae6)=>{const _0x5d488d=a2_0x5136e2,_0x2cfccd=new ConnectionSettingsCommand(),_0x116536=program[_0x5d488d(0x3dc)](),_0x84f513=await createTDXInstance(_0x116536),_0x4903f5=await _0x2cfccd[_0x5d488d(0x3d3)]({'options':{..._0x116536,..._0x556ae6},'args':[_0x35ea03],'tdx':_0x84f513});gracefulExit(_0x4903f5);});const journeyCmd=program[a2_0x5136e2(0x180)]('journey')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1dd)),journeyListAction=async(_0x4cef12,_0x1611d8)=>{const _0x2d036c=a2_0x5136e2,_0x1c3840=new JourneyListCommand(),_0x3b1f3e=program['opts'](),_0x503fc1=await createTDXInstance(_0x3b1f3e),_0x4974f1=await _0x1c3840[_0x2d036c(0x3d3)]({'options':{..._0x3b1f3e,..._0x1611d8},'args':_0x4cef12?[_0x4cef12]:[],'tdx':_0x503fc1});gracefulExit(_0x4974f1);};journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)]('List\x20journeys\x20in\x20current\x20context')['action'](journeyListAction),journeyCmd[a2_0x5136e2(0x180)]('view\x20<name-or-path>')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x38b))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2d4),a2_0x5136e2(0x3c9))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x379),a2_0x5136e2(0x332))[a2_0x5136e2(0x338)](async(_0x1a6551,_0x2c59d0)=>{const _0x43b815=a2_0x5136e2,_0x155cd1=new JourneyViewCommand(),_0x284a2b=program[_0x43b815(0x3dc)](),_0x2b17d0=await createTDXInstance(_0x284a2b),_0x3a1e0c=await _0x155cd1['run']({'options':{..._0x284a2b,..._0x2c59d0},'args':[_0x1a6551],'tdx':_0x2b17d0});gracefulExit(_0x3a1e0c);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x31b))['description']('Show\x20journey\x20statistics')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2dc),'Show\x20stats\x20for\x20specific\x20stage')['option'](a2_0x5136e2(0x2a4),a2_0x5136e2(0x398))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x279),a2_0x5136e2(0x265))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x339),a2_0x5136e2(0x27a))[a2_0x5136e2(0x338)](async(_0x2b83f9,_0x291c94)=>{const _0x6bc1a7=a2_0x5136e2,_0x30101a=new JourneyStatsCommand(),_0x565bee=program[_0x6bc1a7(0x3dc)](),_0x1a1d0d=await createTDXInstance(_0x565bee),_0x581369=await _0x30101a['run']({'options':{..._0x565bee,..._0x291c94},'args':[_0x2b83f9],'tdx':_0x1a1d0d});gracefulExit(_0x581369);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1a2))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x37a))[a2_0x5136e2(0x2c0)]('--type\x20<type>',a2_0x5136e2(0x378))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2a4),a2_0x5136e2(0x398))['option'](a2_0x5136e2(0x279),a2_0x5136e2(0x265))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x1a4),a2_0x5136e2(0x1b7),_0x88a8c=>{const _0x52d59d=a2_0x5136e2,_0x39844d=parseInt(_0x88a8c,0xa);if(isNaN(_0x39844d))throw new Error(_0x52d59d(0x3ef)+_0x88a8c+'\x22.\x20Must\x20be\x20a\x20number.');return _0x39844d;})[a2_0x5136e2(0x338)](async(_0x356fb7,_0x33dd7a)=>{const _0x3e22fb=a2_0x5136e2,_0x405080=new JourneyTrafficCommand(),_0x3f4ee8=program[_0x3e22fb(0x3dc)](),_0x2908f2=await createTDXInstance(_0x3f4ee8),_0x3ab385=await _0x405080['run']({'options':{..._0x3f4ee8,..._0x33dd7a},'args':[_0x356fb7],'tdx':_0x2908f2});gracefulExit(_0x3ab385);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2a1))['description'](a2_0x5136e2(0x22d))['action'](async(_0x53d3d7,_0x424398)=>{const _0x2bf51=a2_0x5136e2,_0x5ba0ab=new JourneyPauseCommand(),_0x334f46=program[_0x2bf51(0x3dc)](),_0x4b350a=await createTDXInstance(_0x334f46),_0x268e74=await _0x5ba0ab[_0x2bf51(0x3d3)]({'options':{..._0x334f46,..._0x424398},'args':[_0x53d3d7],'tdx':_0x4b350a});gracefulExit(_0x268e74);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x32c))['description'](a2_0x5136e2(0x384))[a2_0x5136e2(0x338)](async(_0x5e9fa1,_0xcc205)=>{const _0x5825f5=a2_0x5136e2,_0x2ef110=new JourneyResumeCommand(),_0x1e1273=program[_0x5825f5(0x3dc)](),_0x79e5bc=await createTDXInstance(_0x1e1273),_0x487a39=await _0x2ef110['run']({'options':{..._0x1e1273,..._0xcc205},'args':[_0x5e9fa1],'tdx':_0x79e5bc});gracefulExit(_0x487a39);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x35a))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1fd))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),a2_0x5136e2(0x1da))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),a2_0x5136e2(0x1ac))[a2_0x5136e2(0x338)](async(_0x27f462,_0x3fb8c3)=>{const _0xb52aaa=a2_0x5136e2,_0x2a1b46=new JourneyPullCommand(),_0x2891e4=program[_0xb52aaa(0x3dc)](),_0x1e456b=await createTDXInstance(_0x2891e4),_0x5be239=await _0x2a1b46[_0xb52aaa(0x3d3)]({'options':{..._0x2891e4,..._0x3fb8c3},'args':_0x27f462?[_0x27f462]:[],'tdx':_0x1e456b});gracefulExit(_0x5be239);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x32f))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1a6))[a2_0x5136e2(0x338)](async(_0x2aca75,_0x1aa233)=>{const _0x4189d5=a2_0x5136e2,_0x137893=new JourneyPushCommand(),_0x960d06=program[_0x4189d5(0x3dc)](),_0x38037f=await createTDXInstance(_0x960d06),_0x5b3a74=await _0x137893[_0x4189d5(0x3d3)]({'options':{..._0x960d06,..._0x1aa233},'args':_0x2aca75?[_0x2aca75]:[],'tdx':_0x38037f});gracefulExit(_0x5b3a74);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x20e))[a2_0x5136e2(0x21d)]('Show\x20journey\x20table\x20column-to-step\x20mapping')[a2_0x5136e2(0x338)](async(_0x2396b6,_0x26154f)=>{const _0xac4268=a2_0x5136e2,_0x598406=new JourneyColumnsCommand(),_0xa3fbcc=program[_0xac4268(0x3dc)](),_0x23167a=await createTDXInstance(_0xa3fbcc),_0x48ec4f=await _0x598406['run']({'options':{..._0xa3fbcc,..._0x26154f},'args':[_0x2396b6],'tdx':_0x23167a});gracefulExit(_0x48ec4f);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1f3))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x195))[a2_0x5136e2(0x338)](async(_0x1ed354,_0xd81102)=>{const _0x3d8e5d=a2_0x5136e2,_0xcac290=new JourneyActivationsCommand(),_0x29fa71=program[_0x3d8e5d(0x3dc)](),_0x17d5e1=await createTDXInstance(_0x29fa71),_0x3ec59e=await _0xcac290[_0x3d8e5d(0x3d3)]({'options':{..._0x29fa71,..._0xd81102},'args':[_0x1ed354],'tdx':_0x17d5e1});gracefulExit(_0x3ec59e);}),journeyCmd[a2_0x5136e2(0x180)]('versions\x20<name-or-path>')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x213))[a2_0x5136e2(0x338)](async(_0x54b2df,_0x22b1b7)=>{const _0x253efc=a2_0x5136e2,_0xfe312c=new JourneyVersionsCommand(),_0xb0ee7e=program[_0x253efc(0x3dc)](),_0x39119e=await createTDXInstance(_0xb0ee7e),_0x26bdf2=await _0xfe312c[_0x253efc(0x3d3)]({'options':{..._0xb0ee7e,..._0x22b1b7},'args':[_0x54b2df],'tdx':_0x39119e});gracefulExit(_0x26bdf2);});const journeyVersionCmd=journeyCmd['command'](a2_0x5136e2(0x286))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x1c1));journeyVersionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x29a))['description']('Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x281),a2_0x5136e2(0x1da))[a2_0x5136e2(0x338)](async(_0x739667,_0x2b6f47)=>{const _0x2db78e=a2_0x5136e2,_0x1dcd64=new JourneyVersionCreateCommand(),_0x31f0a6=program[_0x2db78e(0x3dc)](),_0x1adac6=await createTDXInstance(_0x31f0a6),_0x97397f=await _0x1dcd64['run']({'options':{..._0x31f0a6,..._0x2b6f47},'args':[_0x739667],'tdx':_0x1adac6});gracefulExit(_0x97397f);}),journeyVersionCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1cb))['description'](a2_0x5136e2(0x376))[a2_0x5136e2(0x3a5)](a2_0x5136e2(0x302),'Version\x20number\x20to\x20view')[a2_0x5136e2(0x338)](async(_0x299ec2,_0x93b65c)=>{const _0x48ad7d=a2_0x5136e2,_0x4ee5f1=new JourneyVersionViewCommand(),_0x1ad261=program[_0x48ad7d(0x3dc)](),_0x218ed7=await createTDXInstance(_0x1ad261),_0x2124b5=await _0x4ee5f1[_0x48ad7d(0x3d3)]({'options':{..._0x1ad261,..._0x93b65c},'args':[_0x299ec2],'tdx':_0x218ed7});gracefulExit(_0x2124b5);}),journeyCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x1c8))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2de))[a2_0x5136e2(0x338)](async(_0x3fd571,_0x3668e1)=>{const _0x4a9491=a2_0x5136e2,_0x3c6c95=new JourneyValidateCommand(),_0x547946=program[_0x4a9491(0x3dc)](),_0x12e48f=await createTDXInstance(_0x547946),_0xacf5e1=await _0x3c6c95['run']({'options':{..._0x547946,..._0x3668e1},'args':_0x3fd571?[_0x3fd571]:[],'tdx':_0x12e48f});gracefulExit(_0xacf5e1);}),program['command'](a2_0x5136e2(0x3e4))['description'](a2_0x5136e2(0x3c3))[a2_0x5136e2(0x338)](journeyListAction);const agentSyncCmd=program[a2_0x5136e2(0x180)]('agent')[a2_0x5136e2(0x21d)]('LLM\x20agent\x20management');agentSyncCmd[a2_0x5136e2(0x180)]('pull\x20[project]\x20[agent-name]')[a2_0x5136e2(0x21d)]('Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files')['option'](a2_0x5136e2(0x28e),a2_0x5136e2(0x2bc))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3ac),'Overwrite\x20local\x20changes\x20without\x20confirmation')[a2_0x5136e2(0x338)](async(_0x195c10,_0x511134,_0x1ded56)=>{const _0x132197=a2_0x5136e2,_0xced63e=new AgentPullCommand(),_0x3a3f68=program['opts'](),_0x54ffbb=await createTDXInstance(_0x3a3f68),_0x40cd64=[];if(_0x195c10)_0x40cd64['push'](_0x195c10);if(_0x511134)_0x40cd64['push'](_0x511134);const _0x46bc80=await _0xced63e[_0x132197(0x3d3)]({'options':{..._0x3a3f68,..._0x1ded56},'args':_0x40cd64,'tdx':_0x54ffbb});gracefulExit(_0x46bc80);}),agentSyncCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x39e))[a2_0x5136e2(0x21d)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')['option'](a2_0x5136e2(0x3ac),a2_0x5136e2(0x3f4))['action'](async(_0x5e7934,_0x217502)=>{const _0x1e8f7b=a2_0x5136e2,_0x4b3818=new AgentPushCommand(),_0x10d033=program[_0x1e8f7b(0x3dc)](),_0x5de766=await createTDXInstance(_0x10d033),_0x3bf56a=await _0x4b3818[_0x1e8f7b(0x3d3)]({'options':{..._0x10d033,..._0x217502},'args':_0x5e7934?[_0x5e7934]:[],'tdx':_0x5de766});gracefulExit(_0x3bf56a);}),agentSyncCmd[a2_0x5136e2(0x180)]('clone\x20[source]')[a2_0x5136e2(0x21d)](a2_0x5136e2(0x2aa))['option'](a2_0x5136e2(0x2e2),a2_0x5136e2(0x273))[a2_0x5136e2(0x338)](async(_0x4ad486,_0x3bc08c)=>{const _0xf01b0f=a2_0x5136e2,_0xba3280=new AgentCloneCommand(),_0x554b12=program['opts'](),_0x57bf90=await createTDXInstance(_0x554b12),_0x2a6d3e=await _0xba3280[_0xf01b0f(0x3d3)]({'options':{..._0x554b12,..._0x3bc08c},'args':_0x4ad486?[_0x4ad486]:[],'tdx':_0x57bf90});gracefulExit(_0x2a6d3e);}),agentSyncCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x307))['description'](a2_0x5136e2(0x38f))[a2_0x5136e2(0x2c0)]('--name\x20<names>','Run\x20specific\x20tests\x20(comma-separated)')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x238),a2_0x5136e2(0x3d5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x323),'Parse\x20and\x20validate\x20without\x20executing')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3d2),a2_0x5136e2(0x1b5))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x3e7),a2_0x5136e2(0x16c))[a2_0x5136e2(0x338)](async(_0x522d02,_0x1064af)=>{const _0x2488e3=a2_0x5136e2,_0x3c5377=new AgentTestCommand(),_0x421392=program['opts'](),_0x7a1807=await createTDXInstance(_0x421392),_0x3fa401=await _0x3c5377[_0x2488e3(0x3d3)]({'options':{..._0x421392,..._0x1064af},'args':_0x522d02?[_0x522d02]:[],'tdx':_0x7a1807});gracefulExit(_0x3fa401);}),agentSyncCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b6))[a2_0x5136e2(0x21d)]('List\x20agents\x20in\x20current\x20project')['action'](llmAgentListAction),agentSyncCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x193))['description'](a2_0x5136e2(0x3b3))[a2_0x5136e2(0x338)](async(_0x346bce,_0x598d14)=>{const _0x4da1cb=a2_0x5136e2,_0x142bc4=new LLMAgentShowCommand(),_0x840309=program[_0x4da1cb(0x3dc)](),_0xa82662=await createTDXInstance(_0x840309),_0x41ccd1=await _0x142bc4[_0x4da1cb(0x3d3)]({'options':{..._0x840309,..._0x598d14},'args':[_0x346bce],'tdx':_0xa82662});gracefulExit(_0x41ccd1);}),agentSyncCmd[a2_0x5136e2(0x180)](a2_0x5136e2(0x2b3))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x348))['option'](a2_0x5136e2(0x1c5),a2_0x5136e2(0x202))['option']('--model\x20<name>',a2_0x5136e2(0x315),a2_0x5136e2(0x266))[a2_0x5136e2(0x2c0)]('--starter-message\x20<text>',a2_0x5136e2(0x33c))[a2_0x5136e2(0x2c0)]('--max-tool-iterations\x20<n>','Maximum\x20tool\x20iterations\x20(default:\x204)','4')[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x36c),'Temperature\x20(0.0-2.0,\x20default:\x200.7)','0.7')[a2_0x5136e2(0x338)](async(_0xe47e11,_0xaa8ac6)=>{const _0x3b7912=a2_0x5136e2,_0x1694d3=new LLMAgentCreateCommand(),_0x1a13ed=program[_0x3b7912(0x3dc)](),_0x44c698=await createTDXInstance(_0x1a13ed),_0x9f3baf=await _0x1694d3['run']({'options':{..._0x1a13ed,..._0xaa8ac6},'args':[_0xe47e11],'tdx':_0x44c698});gracefulExit(_0x9f3baf);}),agentSyncCmd['command'](a2_0x5136e2(0x3e2))[a2_0x5136e2(0x21d)](a2_0x5136e2(0x3e8))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x2a0),a2_0x5136e2(0x239))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x160),a2_0x5136e2(0x37d))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x345),a2_0x5136e2(0x231))[a2_0x5136e2(0x2c0)](a2_0x5136e2(0x394),a2_0x5136e2(0x33c))[a2_0x5136e2(0x338)](async(_0xa44e2b,_0x2caf0f)=>{const _0x3d917f=a2_0x5136e2,_0x3c0b1c=new LLMAgentUpdateCommand(),_0x4fc90a=program[_0x3d917f(0x3dc)](),_0x198d6f=await createTDXInstance(_0x4fc90a),_0x288b4a=await _0x3c0b1c[_0x3d917f(0x3d3)]({'options':{..._0x4fc90a,..._0x2caf0f},'args':[_0xa44e2b],'tdx':_0x198d6f});gracefulExit(_0x288b4a);}),agentSyncCmd[a2_0x5136e2(0x180)]('delete\x20<agent-name>')[a2_0x5136e2(0x21d)]('Delete\x20an\x20agent')[a2_0x5136e2(0x338)](async(_0x50559f,_0x116e8d)=>{const _0x127858=new LLMAgentDeleteCommand(),_0x3e2c31=program['opts'](),_0x541fef=await createTDXInstance(_0x3e2c31),_0x206784=await _0x127858['run']({'options':{..._0x3e2c31,..._0x116e8d},'args':[_0x50559f],'tdx':_0x541fef});gracefulExit(_0x206784);}),program['command'](a2_0x5136e2(0x355),{'hidden':!![]})['action'](()=>{const _0x2382df=a2_0x5136e2;function _0x54a6b2(_0x114bfd,_0x12886b){const _0xfbfe72=a2_0x490f,_0x17d654=[];for(const _0x2a49e6 of _0x114bfd[_0xfbfe72(0x1e7)]){if(_0x2a49e6[_0xfbfe72(0x2db)])continue;const _0x5ac1fe=_0x12886b?_0x12886b+'\x20'+_0x2a49e6['name']():_0x2a49e6[_0xfbfe72(0x27c)](),_0x491d70=_0x5ac1fe['split']('\x20')[0x0],_0x39fb8b=COMMAND_CATEGORIES['find'](_0x4cf0da=>_0x4cf0da[_0xfbfe72(0x1e7)][_0xfbfe72(0x168)](_0x491d70)),_0x5ea487=_0x39fb8b?.[_0xfbfe72(0x27c)]??'';if(_0x2a49e6[_0xfbfe72(0x1e7)]['length']>0x0)_0x17d654[_0xfbfe72(0x37f)](..._0x54a6b2(_0x2a49e6,_0x5ac1fe));else{const _0x5c584e=(_0x2a49e6['registeredArguments']||[])['map'](_0x421539=>{const _0x136207=_0xfbfe72,_0x1455a6=_0x421539[_0x136207(0x228)]?_0x421539[_0x136207(0x27c)]()+'...':_0x421539[_0x136207(0x27c)]();return _0x421539[_0x136207(0x204)]?'<'+_0x1455a6+'>':'['+_0x1455a6+']';})['join']('\x20'),_0x330aaf=_0x2a49e6[_0xfbfe72(0x1fa)]['filter'](_0xa2d2d7=>!_0xa2d2d7[_0xfbfe72(0x226)]&&_0xa2d2d7[_0xfbfe72(0x27b)]!==_0xfbfe72(0x2cc))['map'](_0x3ca581=>({'flags':_0x3ca581[_0xfbfe72(0x326)],'description':_0x3ca581[_0xfbfe72(0x21d)]}));_0x17d654[_0xfbfe72(0x37f)]({'name':_0x5ac1fe,'description':_0x2a49e6[_0xfbfe72(0x21d)](),'group':_0x5ea487,'usage':_0x5c584e,'options':_0x330aaf});}}return _0x17d654;}console[_0x2382df(0x3a7)](JSON[_0x2382df(0x2c4)](_0x54a6b2(program,''))),process[_0x2382df(0x159)](0x0);});export{program};export function runCLI(){const _0x187ddc=a2_0x5136e2,_0x1c6922=!process[_0x187ddc(0x30f)][_0x187ddc(0x36f)](0x2)[_0x187ddc(0x284)];showBriefHelp=_0x1c6922,program[_0x187ddc(0x305)](process[_0x187ddc(0x30f)]);_0x1c6922&&program[_0x187ddc(0x223)]();if(process[_0x187ddc(0x1bb)][_0x187ddc(0x1ad)]&&process[_0x187ddc(0x30f)][_0x187ddc(0x284)]>0x2&&!isDevVersion()){const _0x5cf560=loadReleaseChannel();checkForUpdate(currentVersion,_0x5cf560)[_0x187ddc(0x346)](_0x2f3de6=>{_0x2f3de6&&displayUpdateNotification(_0x2f3de6);})[_0x187ddc(0x310)](()=>{});}}
|
|
1
|
+
const a2_0x28a4c0=a2_0xf64d;(function(_0x28bd83,_0x1c5748){const _0x206e9b=a2_0xf64d,_0x2885bb=_0x28bd83();while(!![]){try{const _0x537614=parseInt(_0x206e9b(0x3f1))/0x1*(-parseInt(_0x206e9b(0x239))/0x2)+parseInt(_0x206e9b(0x282))/0x3*(-parseInt(_0x206e9b(0x222))/0x4)+-parseInt(_0x206e9b(0x318))/0x5+-parseInt(_0x206e9b(0x2e8))/0x6+parseInt(_0x206e9b(0x2f2))/0x7+-parseInt(_0x206e9b(0x408))/0x8+parseInt(_0x206e9b(0x203))/0x9;if(_0x537614===_0x1c5748)break;else _0x2885bb['push'](_0x2885bb['shift']());}catch(_0x17628f){_0x2885bb['push'](_0x2885bb['shift']());}}}(a2_0x1b8a,0x734e0));import{Command}from'commander';import{existsSync,statSync}from'fs';import{resolve}from'path';import{TDX,SDKError,ErrorCode}from'./sdk/index.js';import{COMMAND_CATEGORIES}from'./cli-categories.js';import{GlobalContext}from'./core/global-context.js';import{getBuildInfo,getVersion,isDevVersion}from'./core/auth.js';import{LogLevel}from'./utils/logger/index.js';import{QueryCommand}from'./commands/query-command.js';import{ChatCommand,ChatCreateCommand}from'./commands/chat-command.js';import{ApiCommand}from'./commands/api-command.js';import{DatabasesCommand}from'./commands/databases.js';import{TablesCommand}from'./commands/tables.js';import{SegmentsCommand}from'./commands/segments.js';import{ActivationsCommand}from'./commands/activations.js';import{ShowCommand}from'./commands/show.js';import{DescribeCommand}from'./commands/describe.js';import{SegmentShowCommand,SegmentFolderListCommand,SegmentFolderShowCommand,SegmentSQLCommand,SegmentFolderCreateCommand,SegmentViewCommand,SegmentDescCommand}from'./commands/segment-command.js';import{SegmentFieldsCommand}from'./commands/segment-fields-command.js';import{ParentSegmentListCommand,ParentSegmentCreateCommand,ParentSegmentUpdateCommand,ParentSegmentPullCommand,ParentSegmentPushCommand,ParentSegmentPreviewCommand,ParentSegmentValidateCommand,ParentSegmentRunCommand,ParentSegmentFieldsCommand,ParentSegmentViewCommand,ParentSegmentDescCommand,ParentSegmentSQLCommand,ParentSegmentShowCommand,PSRtListCommand,PSRtValidateCommand,PSPzListCommand,PSPzInitCommand}from'./commands/parent-segment-command.js';import{SegmentCreateCommand}from'./commands/segment-create-command.js';import{SegmentUpdateCommand}from'./commands/segment-update-command.js';import{SegmentPullCommand}from'./commands/segment-pull-command.js';import{SegmentPushCommand}from'./commands/segment-push-command.js';import{SegmentValidateCommand}from'./commands/segment-validate-command.js';import{SegmentUseCommand}from'./commands/segment-use-command.js';import{WorkflowProjectsCommand,WorkflowWorkflowsCommand,WorkflowSessionsCommand,WorkflowAttemptsCommand,WorkflowAttemptCommand,WorkflowTasksCommand,WorkflowLogsCommand,WorkflowTimelineCommand,WorkflowKillCommand,WorkflowRetryCommand,WorkflowRunCommand,WorkflowDownloadCommand,WorkflowUploadCommand,WorkflowPullCommand,WorkflowPushCommand,WorkflowCloneCommand,WorkflowDeleteCommand,WorkflowUseCommand,WorkflowSecretsListCommand,WorkflowSecretsSetCommand,WorkflowSecretsDeleteCommand}from'./commands/workflow-command.js';import{JourneyListCommand,JourneyViewCommand,JourneyStatsCommand,JourneyTrafficCommand,JourneyPauseCommand,JourneyResumeCommand,JourneyPullCommand,JourneyPushCommand,JourneyColumnsCommand,JourneyActivationsCommand,JourneyVersionsCommand,JourneyVersionCreateCommand,JourneyVersionViewCommand}from'./commands/journey-command.js';import{JourneyValidateCommand}from'./commands/journey-validate-command.js';import{JobListCommand,JobShowCommand,JobKillCommand,JobSubmitCommand,JobResultCommand}from'./commands/job-command.js';import{ScheduleListCommand,ScheduleShowCommand,ScheduleCreateCommand,ScheduleUpdateCommand,ScheduleDeleteCommand,ScheduleRunCommand,ScheduleHistoryCommand}from'./commands/schedule-command.js';import{LLMModelsCommand,LLMProjectsCommand,LLMAgentsCommand,LLMAgentShowCommand,LLMAgentCreateCommand,LLMAgentUpdateCommand,LLMAgentDeleteCommand,LLMHistoryCommand,LLMLogCommand,LLMUseCommand,LLMProjectCreateCommand,LLMProjectDeleteCommand,LLMProjectBackupCommand,LLMProjectRestoreCommand,ChatsCommand}from'./commands/llm-command.js';import{EngageCampaignsCommand,EngageCampaignShowCommand,EngageCampaignCreateCommand,EngageCampaignUpdateCommand,EngageCampaignDeleteCommand,EngageCampaignLaunchCommand,EngageCampaignPauseCommand,EngageCampaignResumeCommand,EngageCampaignDuplicateCommand,EngageTemplatesCommand,EngageTemplateShowCommand,EngageTemplateCreateCommand,EngageTemplateUpdateCommand,EngageTemplateDeleteCommand,EngageWorkspacesCommand,EngageWorkspaceShowCommand,EngageWorkspaceCreateCommand,EngageWorkspaceUpdateCommand,EngageWorkspaceDeleteCommand,EngageWorkspaceUseCommand}from'./commands/engage-command.js';import{ClaudeCommand}from'./commands/claude-command.js';import{ClaudeStatuslineCommand}from'./commands/claude-statusline-command.js';import{ClaudeUsageCommand}from'./commands/claude-usage-command.js';import{AgentPullCommand,AgentPushCommand,AgentCloneCommand}from'./commands/agent-command.js';import{AgentTestCommand}from'./commands/agent-test-command.js';import{UseCommand}from'./commands/use-command.js';import{UnsetCommand}from'./commands/unset-command.js';import{StatusCommand}from'./commands/status-command.js';import{ProfilesCommand}from'./commands/profiles-command.js';import{ProfileCreateCommand,ProfileRemoveCommand,ProfileSetCommand,ProfileUseCommand}from'./commands/profile-command.js';import{AuthSetupCommand,AuthStatusCommand,AuthClearCommand}from'./commands/auth-command.js';import{UserCommand,UserListCommand}from'./commands/user-command.js';import{ConnectionListCommand,ConnectionShowCommand,ConnectionSchemaCommand,ConnectionTypesCommand,ConnectionSettingsCommand}from'./commands/connection-command.js';import{MCPCommand}from'./commands/mcp-command.js';import{checkForUpdate,displayUpdateNotification}from'./utils/version-check.js';import{gracefulExit}from'./utils/process.js';import{isExperimentalAvailable,loadReleaseChannel}from'./core/config.js';const buildInfo=getBuildInfo(),currentVersion=getVersion();if(process[a2_0x28a4c0(0x1fd)][a2_0x28a4c0(0x3a7)](a2_0x28a4c0(0x217))){let versionOutput=a2_0x28a4c0(0x1fe)+currentVersion;buildInfo[a2_0x28a4c0(0x1d8)]&&!currentVersion[a2_0x28a4c0(0x3a7)](buildInfo[a2_0x28a4c0(0x1d8)])&&(versionOutput+='\x20('+buildInfo['gitRevision']+')'),buildInfo[a2_0x28a4c0(0x3e7)]&&(versionOutput+=a2_0x28a4c0(0x3b7)+buildInfo[a2_0x28a4c0(0x3e7)]),console[a2_0x28a4c0(0x306)](versionOutput),process[a2_0x28a4c0(0x324)](0x0);}const program=new Command();let showBriefHelp=![],description=a2_0x28a4c0(0x236);buildInfo['gitRevision']&&!currentVersion[a2_0x28a4c0(0x3a7)](buildInfo[a2_0x28a4c0(0x1d8)])?description+=a2_0x28a4c0(0x443)+currentVersion+'\x20('+buildInfo[a2_0x28a4c0(0x1d8)]+')':description+=a2_0x28a4c0(0x443)+currentVersion;program[a2_0x28a4c0(0x3b2)](a2_0x28a4c0(0x357))[a2_0x28a4c0(0x3e0)](description),program['option'](a2_0x28a4c0(0x34d),a2_0x28a4c0(0x3c0))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x272),a2_0x28a4c0(0x30c))['option'](a2_0x28a4c0(0x3d2),a2_0x28a4c0(0x390),a2_0x28a4c0(0x2fe))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x461),'Output\x20format\x20(table,\x20json,\x20jsonl,\x20tsv)')[a2_0x28a4c0(0x35f)]('--table',a2_0x28a4c0(0x376))['option'](a2_0x28a4c0(0x2bc),'Output\x20in\x20JSON\x20format\x20(shorthand\x20for\x20--format\x20json)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x36c),a2_0x28a4c0(0x2d7))[a2_0x28a4c0(0x35f)]('--tsv','Output\x20in\x20TSV\x20format\x20(shorthand\x20for\x20--format\x20tsv)')['option'](a2_0x28a4c0(0x2f6),a2_0x28a4c0(0x265))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ba),'Maximum\x20number\x20of\x20items\x20to\x20return\x20(default\x20varies\x20by\x20command)')[a2_0x28a4c0(0x35f)]('--color','Force\x20ANSI\x20color\x20output\x20(overrides\x20TTY\x20detection)',![])[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x34b),a2_0x28a4c0(0x3ec),![])[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3cb),'Enable\x20verbose\x20logging',![])[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x45f),a2_0x28a4c0(0x343))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2b5),'Enable\x20trace\x20logging\x20(ultra-verbose,\x20all\x20internal\x20operations)')[a2_0x28a4c0(0x35f)]('--timeout\x20<seconds>',a2_0x28a4c0(0x1d7),'30')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x2a1),![])[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),'Skip\x20confirmation\x20prompts',![])[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x37a),a2_0x28a4c0(0x440))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ed),a2_0x28a4c0(0x1de))['option'](a2_0x28a4c0(0x1f4),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x28c),a2_0x28a4c0(0x28d))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x29b),a2_0x28a4c0(0x1f9)),program[a2_0x28a4c0(0x3c7)]({'formatHelp':(_0x54acc5,_0x492295)=>{const _0x125873=a2_0x28a4c0,_0x3ffe56=_0x492295[_0x125873(0x450)](_0x54acc5,_0x492295),_0x57ecef=0x2,_0x35345a=0x2;function _0x20cfcd(_0x362dd8){const _0x31c9b2=_0x125873,_0x146d69=_0x362dd8;return!!(_0x146d69[_0x31c9b2(0x32d)]||_0x146d69['hidden']);}function _0x146836(_0x2d208a,_0x2a42d0){const _0x97c688=_0x125873;if(_0x2a42d0){const _0x1b9402=''+_0x2d208a[_0x97c688(0x3a9)](_0x3ffe56+_0x35345a)+_0x2a42d0;return _0x1b9402;}return _0x2d208a;}function _0x3e13bf(_0x3e0b87){const _0x168ede=_0x125873;return _0x3e0b87[_0x168ede(0x1ea)]('\x0a')['replace'](/^/gm,'\x20'[_0x168ede(0x2ae)](_0x57ecef));}const _0x453a69=[];_0x453a69[_0x125873(0x39e)](_0x125873(0x38e)+_0x492295[_0x125873(0x3b5)](_0x54acc5));const _0x44de4d=_0x492295[_0x125873(0x311)](_0x54acc5);_0x44de4d&&(_0x453a69['push'](''),_0x453a69[_0x125873(0x39e)](_0x44de4d));const _0x4bd500=_0x54acc5[_0x125873(0x45d)][_0x125873(0x462)](_0x1221a6=>!_0x20cfcd(_0x1221a6));if(_0x4bd500['length']>0x0){if(_0x54acc5[_0x125873(0x3b2)]()===_0x125873(0x357)){const _0x2a2dfd=_0x54acc5[_0x125873(0x293)](),_0x122bdf=!_0x2a2dfd[_0x125873(0x2e7)]&&process[_0x125873(0x2e2)][_0x125873(0x25f)],_0x5232ca=COMMAND_CATEGORIES,_0x3609ce=(_0x45f4c1,_0x3ebf55)=>_0x122bdf?_0x3ebf55(_0x45f4c1):_0x45f4c1,_0x3c17d2=new Map();_0x4bd500[_0x125873(0x3b9)](_0x7c4638=>{const _0x3dd3e3=_0x125873;_0x3c17d2['set'](_0x7c4638[_0x3dd3e3(0x3b2)](),_0x7c4638);}),_0x5232ca[_0x125873(0x3b9)](_0x3817ae=>{const _0x58dfe0=_0x125873,_0x22b9b9=_0x3817ae[_0x58dfe0(0x45d)][_0x58dfe0(0x43d)](_0x2223d5=>_0x3c17d2[_0x58dfe0(0x432)](_0x2223d5)??[]);if(_0x22b9b9['length']>0x0){_0x453a69[_0x58dfe0(0x39e)](''),_0x453a69[_0x58dfe0(0x39e)](_0x3609ce(_0x3817ae[_0x58dfe0(0x3b2)]+':',_0x3817ae[_0x58dfe0(0x422)]));const _0x1dfd00=_0x22b9b9[_0x58dfe0(0x32f)](_0xe1a5d5=>{const _0x3ef809=_0x58dfe0,_0x2b7bcb=_0x492295['subcommandTerm'](_0xe1a5d5),_0x2fbb36=_0x492295[_0x3ef809(0x228)](_0xe1a5d5);return _0x146836(_0x2b7bcb,_0x2fbb36);});_0x453a69[_0x58dfe0(0x39e)](_0x3e13bf(_0x1dfd00));}}),_0x453a69['push'](''),_0x453a69[_0x125873(0x39e)](_0x125873(0x261));}else{const _0x2ae440=_0x4bd500[_0x125873(0x32f)](_0x44b4ca=>{const _0x18e043=_0x125873,_0x3613b4=_0x492295['subcommandTerm'](_0x44b4ca),_0x48eb8c=_0x492295[_0x18e043(0x228)](_0x44b4ca);return _0x146836(_0x3613b4,_0x48eb8c);});_0x453a69[_0x125873(0x39e)](''),_0x453a69[_0x125873(0x39e)](_0x125873(0x340)),_0x453a69[_0x125873(0x39e)](_0x3e13bf(_0x2ae440));}}if(showBriefHelp&&_0x54acc5['name']()===_0x125873(0x357))_0x453a69[_0x125873(0x39e)](''),_0x453a69[_0x125873(0x39e)](_0x125873(0x245));else{const _0x5548eb=_0x54acc5[_0x125873(0x416)]['filter'](_0x52e182=>!_0x20cfcd(_0x52e182));if(_0x5548eb['length']>0x0){const _0x3ccb58=_0x5548eb[_0x125873(0x32f)](_0x1fb74f=>{const _0x2d5dd1=_0x492295['optionTerm'](_0x1fb74f),_0x52751d=_0x492295['optionDescription'](_0x1fb74f);return _0x146836(_0x2d5dd1,_0x52751d);});_0x453a69[_0x125873(0x39e)](''),_0x453a69[_0x125873(0x39e)]('Options:'),_0x453a69[_0x125873(0x39e)](_0x3e13bf(_0x3ccb58));}}const _0xc08eb7=(_0x54acc5[_0x125873(0x2ab)]||[])[_0x125873(0x462)](_0x1b6f7b=>!_0x20cfcd(_0x1b6f7b));if(_0xc08eb7['length']>0x0){const _0x30d7a6=_0xc08eb7['map'](_0x53b6c5=>{const _0x387a8d=_0x125873,_0x162589=_0x492295[_0x387a8d(0x3dc)](_0x53b6c5),_0x122e76=_0x492295['argumentDescription'](_0x53b6c5);return _0x146836(_0x162589,_0x122e76);});_0x453a69['push'](''),_0x453a69[_0x125873(0x39e)]('Arguments:'),_0x453a69['push'](_0x3e13bf(_0x30d7a6));}return _0x453a69['join']('\x0a')+'\x0a';},'subcommandTerm':_0x4127c6=>{const _0x23e3c2=a2_0x28a4c0,_0x169cbe=(_0x4127c6[_0x23e3c2(0x2ab)]||[])[_0x23e3c2(0x32f)](_0x2bf7b7=>_0x2bf7b7[_0x23e3c2(0x365)]?'<'+_0x2bf7b7[_0x23e3c2(0x3b2)]()+'>':'['+_0x2bf7b7[_0x23e3c2(0x3b2)]()+']')[_0x23e3c2(0x1ea)]('\x20'),_0x10c067=_0x4127c6[_0x23e3c2(0x348)](),_0x478eaa=_0x10c067[_0x23e3c2(0x43c)]>0x0?_0x4127c6[_0x23e3c2(0x3b2)]()+',\x20'+_0x10c067['join'](',\x20'):_0x4127c6['name']();return _0x169cbe?_0x478eaa+'\x20'+_0x169cbe:_0x478eaa;}}),program[a2_0x28a4c0(0x349)](a2_0x28a4c0(0x471),_0x15a02c=>{const _0x12da62=a2_0x28a4c0,_0x270b2b=_0x15a02c[_0x12da62(0x293)]();if(_0x270b2b['directory']){const _0x4d1a9f=resolve(_0x270b2b[_0x12da62(0x2c5)]),_0x503402=_0x4d1a9f!==_0x270b2b[_0x12da62(0x2c5)]?'\x20(resolved\x20to\x20'+_0x4d1a9f+')':'';if(!existsSync(_0x4d1a9f))throw new SDKError(ErrorCode[_0x12da62(0x291)],_0x12da62(0x2d9)+_0x270b2b[_0x12da62(0x2c5)]+_0x503402,undefined,{'helpText':_0x12da62(0x393)});const _0x42b64e=statSync(_0x4d1a9f);if(!_0x42b64e[_0x12da62(0x3c1)]())throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Path\x20is\x20not\x20a\x20directory:\x20'+_0x270b2b[_0x12da62(0x2c5)]+_0x503402,undefined,{'helpText':'The\x20-C\x20option\x20requires\x20a\x20directory\x20path,\x20not\x20a\x20file.'});process[_0x12da62(0x43e)](_0x4d1a9f);}if(!_0x270b2b[_0x12da62(0x330)]){if(_0x270b2b[_0x12da62(0x2a0)])_0x270b2b[_0x12da62(0x330)]=_0x12da62(0x2a0);else{if(_0x270b2b[_0x12da62(0x3ab)])_0x270b2b[_0x12da62(0x330)]=_0x12da62(0x3ab);else{if(_0x270b2b[_0x12da62(0x3e6)])_0x270b2b[_0x12da62(0x330)]=_0x12da62(0x3e6);else _0x270b2b[_0x12da62(0x3be)]&&(_0x270b2b['format']=_0x12da62(0x3be));}}}_0x270b2b['in']&&!_0x270b2b[_0x12da62(0x20d)]&&(_0x270b2b[_0x12da62(0x20d)]=_0x270b2b['in']);if(_0x270b2b[_0x12da62(0x381)])_0x270b2b[_0x12da62(0x2db)]=LogLevel['TRACE'];else{if(_0x270b2b[_0x12da62(0x466)])_0x270b2b[_0x12da62(0x2db)]=LogLevel[_0x12da62(0x278)];else _0x270b2b[_0x12da62(0x2db)]===undefined&&(_0x270b2b[_0x12da62(0x2db)]=LogLevel[_0x12da62(0x2c7)]);}});async function createTDXInstance(_0x147570){const _0x27a7df=a2_0x28a4c0,_0x1b4ba8=await GlobalContext['createAsync'](_0x147570);return _0x1b4ba8[_0x27a7df(0x335)](_0x147570),TDX[_0x27a7df(0x452)]({'site':_0x1b4ba8[_0x27a7df(0x3e2)],'apiKey':_0x1b4ba8[_0x27a7df(0x351)],'logLevel':_0x1b4ba8[_0x27a7df(0x2db)],'profile':_0x1b4ba8[_0x27a7df(0x3e4)]});}const databaseCmd=program[a2_0x28a4c0(0x46f)]('database')[a2_0x28a4c0(0x33d)]('db')[a2_0x28a4c0(0x3e0)]('Database\x20management\x20commands'),databaseListAction=async(_0xa6cd60,_0x142212)=>{const _0x14f714=a2_0x28a4c0,_0x395251=new DatabasesCommand(),_0x2c1506=program[_0x14f714(0x293)](),_0x38b2cb=await createTDXInstance(_0x2c1506),_0x56f377=await _0x395251[_0x14f714(0x3a1)]({'options':{..._0x2c1506,..._0x142212},'args':_0xa6cd60?[_0xa6cd60]:[],'tdx':_0x38b2cb});gracefulExit(_0x56f377);};databaseCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1df))[a2_0x28a4c0(0x1e6)](databaseListAction),program['command'](a2_0x28a4c0(0x2ed),{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x438))[a2_0x28a4c0(0x1e6)](databaseListAction),program['command']('chat\x20[message...]')[a2_0x28a4c0(0x3e0)]('Chat\x20with\x20an\x20LLM\x20agent\x20(simplified\x20interface)')[a2_0x28a4c0(0x35f)]('--agent\x20<ref>',a2_0x28a4c0(0x401))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x250),a2_0x28a4c0(0x3d8))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1f3),'Continue\x20a\x20specific\x20chat\x20session\x20by\x20ID')[a2_0x28a4c0(0x35f)]('--stream','Output\x20events\x20as\x20JSONL\x20stream\x20(one\x20JSON\x20object\x20per\x20line)')[a2_0x28a4c0(0x1e6)](async(_0x41e067,_0x4666dc)=>{const _0x91c49b=a2_0x28a4c0,_0x2bdc34=program['opts'](),_0x244947=await createTDXInstance(_0x2bdc34);if(_0x41e067[0x0]==='create'){const _0x4127ce=new ChatCreateCommand();gracefulExit(await _0x4127ce[_0x91c49b(0x3a1)]({'options':{..._0x2bdc34,..._0x4666dc},'args':_0x41e067['slice'](0x1),'tdx':_0x244947}));return;}const _0x21a27a=new ChatCommand(),_0x18cdac=await _0x21a27a[_0x91c49b(0x3a1)]({'options':{..._0x2bdc34,..._0x4666dc},'args':_0x41e067,'tdx':_0x244947});gracefulExit(_0x18cdac);});const apiCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x29c))[a2_0x28a4c0(0x22d)](a2_0x28a4c0(0x458))[a2_0x28a4c0(0x30b)](a2_0x28a4c0(0x24b),'\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_0x28a4c0(0x35f)]('-X,\x20--method\x20<method>','HTTP\x20method\x20(GET,\x20POST,\x20PUT,\x20DELETE,\x20PATCH)',a2_0x28a4c0(0x238))['option']('--data\x20<data>',a2_0x28a4c0(0x237))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2a9),a2_0x28a4c0(0x2ba))[a2_0x28a4c0(0x35f)]('-H,\x20--header\x20<header>',a2_0x28a4c0(0x2ec),(_0x1d7b73,_0x1d3b26)=>{return _0x1d3b26?[..._0x1d3b26,_0x1d7b73]:[_0x1d7b73];})['option'](a2_0x28a4c0(0x2d5),'API\x20type\x20(td,\x20cdp,\x20workflow,\x20trino,\x20llm)','td')['action'](async(_0x1d9aa1,_0x378d74)=>{const _0x2f7c65=a2_0x28a4c0;if(!_0x1d9aa1){apiCmd['help']();return;}const _0x5c5f30=new ApiCommand(),_0x25ab72=program[_0x2f7c65(0x293)](),_0x483172=await createTDXInstance(_0x25ab72),_0xbec1e8=await _0x5c5f30[_0x2f7c65(0x3a1)]({'options':{..._0x25ab72,..._0x378d74},'args':[_0x1d9aa1],'tdx':_0x483172});gracefulExit(_0xbec1e8);});program[a2_0x28a4c0(0x46f)]('mcp')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2fa))[a2_0x28a4c0(0x30b)](a2_0x28a4c0(0x24b),'\x0aEnables\x20AI\x20coding\x20assistants\x20to\x20interact\x20with\x20Treasure\x20Data\x20via\x20MCP\x20(Model\x20Context\x20Protocol).\x0aWorks\x20with\x20Cursor,\x20Windsurf,\x20VS\x20Code,\x20Claude\x20Desktop,\x20and\x20other\x20MCP-compatible\x20AI\x20tools.\x0aUses\x20existing\x20tdx\x20authentication\x20-\x20no\x20additional\x20setup\x20needed\x20if\x20already\x20logged\x20in.\x0a\x0aSetup\x20(add\x20to\x20your\x20AI\x20tool\x27s\x20MCP\x20config):\x0a\x20\x20{\x20\x22mcpServers\x22:\x20{\x20\x22tdx\x22:\x20{\x20\x22command\x22:\x20\x22tdx\x22,\x20\x22args\x22:\x20[\x22mcp\x22]\x20}\x20}\x20}\x0a\x0aAvailable\x20Tools:\x0a\x20\x20tdx_run\x20\x20\x20\x20\x20-\x20Execute\x20any\x20tdx\x20CLI\x20command\x0a\x20\x20tdx_search\x20\x20-\x20Search\x20for\x20relevant\x20tdx\x20commands\x0a\x0aEnvironment\x20Variables\x20(optional):\x0a\x20\x20TDX_PROFILE\x20\x20\x20-\x20Use\x20a\x20specific\x20profile\x0a\x20\x20TDX_API_KEY\x20\x20\x20-\x20Direct\x20API\x20key\x0a\x20\x20TDX_SITE\x20\x20\x20\x20\x20\x20-\x20Site\x20(us01,\x20jp01,\x20eu01,\x20ap02)\x0a\x0aSee:\x20https://tdx.treasuredata.com/commands/mcp\x0a')[a2_0x28a4c0(0x1e6)](async _0x109778=>{const _0x40b5ae=a2_0x28a4c0,_0x52bc87=new MCPCommand(),_0xebe542=program[_0x40b5ae(0x293)](),_0x468906=await createTDXInstance(_0xebe542),_0x215995=await _0x52bc87[_0x40b5ae(0x3a1)]({'options':{..._0xebe542,..._0x109778},'args':[],'tdx':_0x468906});gracefulExit(_0x215995);});const tableCmd=program['command']('table')['description']('Table\x20management\x20commands'),tableListAction=async(_0x26c4e5,_0x2852bd)=>{const _0x3e93b8=a2_0x28a4c0,_0x3070cc=new TablesCommand(),_0x7d5f2d=program[_0x3e93b8(0x293)](),_0x3dc116=await createTDXInstance(_0x7d5f2d);_0x2852bd['in']&&(_0x2852bd['database']=_0x2852bd['in']);const _0x5b7df3=await _0x3070cc['run']({'options':{..._0x7d5f2d,..._0x2852bd},'args':_0x26c4e5?[_0x26c4e5]:[],'tdx':_0x3dc116});gracefulExit(_0x5b7df3);};tableCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)]('List\x20tables\x20(e.g.,\x20mydb,\x20mydb.*,\x20*.user*,\x20mydb.user*)')['option'](a2_0x28a4c0(0x2e4),a2_0x28a4c0(0x2eb))[a2_0x28a4c0(0x35f)]('--in\x20<database>',a2_0x28a4c0(0x382))['action'](tableListAction),program[a2_0x28a4c0(0x46f)]('tables\x20[pattern]',{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x419))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2e4),'Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)')['option'](a2_0x28a4c0(0x46a),a2_0x28a4c0(0x382))[a2_0x28a4c0(0x1e6)](tableListAction),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x361))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x296))['option']('-d,\x20--database\x20<database>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x46a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')['action'](async(_0x38f9f8,_0x5e5239)=>{const _0x2c4a84=a2_0x28a4c0,_0x6602f5=new ShowCommand(),_0x591781=program[_0x2c4a84(0x293)](),_0x315d20=await createTDXInstance(_0x591781);_0x5e5239['in']&&(_0x5e5239[_0x2c4a84(0x20d)]=_0x5e5239['in']);const _0x136628=await _0x6602f5[_0x2c4a84(0x3a1)]({'options':{..._0x591781,..._0x5e5239},'args':_0x38f9f8?[_0x38f9f8]:[],'tdx':_0x315d20});gracefulExit(_0x136628);}),program['command'](a2_0x28a4c0(0x424))['alias'](a2_0x28a4c0(0x40c))['description']('Describe\x20table\x20schema')['option'](a2_0x28a4c0(0x2e4),a2_0x28a4c0(0x3bb))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x46a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x28a4c0(0x1e6)](async(_0x43bff0,_0x4f0a5d)=>{const _0x384b94=a2_0x28a4c0,_0x1f0fc7=new DescribeCommand(),_0x62e50e=program['opts'](),_0x24e17f=await createTDXInstance(_0x62e50e);_0x4f0a5d['in']&&(_0x4f0a5d[_0x384b94(0x20d)]=_0x4f0a5d['in']);const _0x3c5e99=await _0x1f0fc7[_0x384b94(0x3a1)]({'options':{..._0x62e50e,..._0x4f0a5d},'args':_0x43bff0?[_0x43bff0]:[],'tdx':_0x24e17f});gracefulExit(_0x3c5e99);}),program['command'](a2_0x28a4c0(0x40a))['description']('Run\x20Trino\x20query\x20with\x20streaming\x20results')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2e4),'Database\x20to\x20query\x20(default:\x20information_schema)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x46a),'Alias\x20for\x20--database\x20(natural\x20language\x20style)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x410),'Trino\x20catalog\x20(default:\x20td)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2a9),'Read\x20SQL\x20query\x20from\x20file')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2d2),a2_0x28a4c0(0x398),'40')['action'](async(_0x45b3f3,_0x4a33b5)=>{const _0x530876=a2_0x28a4c0,_0x40c319=new QueryCommand(),_0x4a1421=program[_0x530876(0x293)](),_0x5bee80=await createTDXInstance(_0x4a1421);_0x4a33b5['in']&&(_0x4a33b5['database']=_0x4a33b5['in']);const _0x53ce73=await _0x40c319['run']({'options':{..._0x4a1421,..._0x4a33b5},'args':_0x45b3f3?[_0x45b3f3]:[],'tdx':_0x5bee80});gracefulExit(_0x53ce73);});const segmentCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x35b))['alias']('sg')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3ae)),segmentListAction=async(_0x528ca6,_0x2f0c03)=>{const _0x57d0d3=a2_0x28a4c0,_0x2988db=new SegmentsCommand(),_0x17f5af=program[_0x57d0d3(0x293)](),_0x21da76=await createTDXInstance(_0x17f5af),_0x387f75=await _0x2988db[_0x57d0d3(0x3a1)]({'options':{..._0x17f5af,..._0x2f0c03},'args':_0x528ca6?[_0x528ca6]:[],'tdx':_0x21da76});gracefulExit(_0x387f75);};segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2ee))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x395))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x288),a2_0x28a4c0(0x210))[a2_0x28a4c0(0x35f)]('--max-depth\x20<depth>',a2_0x28a4c0(0x3d6),'10')['action'](segmentListAction),program['command'](a2_0x28a4c0(0x1fc),{'hidden':!![]})['description'](a2_0x28a4c0(0x3f8))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x288),a2_0x28a4c0(0x210))['option'](a2_0x28a4c0(0x275),a2_0x28a4c0(0x3d6),'10')['action'](segmentListAction),segmentCmd[a2_0x28a4c0(0x46f)]('use\x20<path>',{'hidden':!![]})['description'](a2_0x28a4c0(0x2da))[a2_0x28a4c0(0x1e6)](async(_0x44daeb,_0x35bc71)=>{const _0x313c65=a2_0x28a4c0,_0x1cecad=new SegmentUseCommand(),_0x4b1ce9=program[_0x313c65(0x293)](),_0x2aa9f0=await createTDXInstance(_0x4b1ce9),_0x1ef3e4=await _0x1cecad['run']({'options':{..._0x4b1ce9,..._0x35bc71},'args':[_0x44daeb],'tdx':_0x2aa9f0});gracefulExit(_0x1ef3e4);});const segmentViewAction=async(_0x2e3ebe,_0x4324f4)=>{const _0x5bb88a=a2_0x28a4c0,_0x45a68b=new SegmentViewCommand(),_0x44f459=program[_0x5bb88a(0x293)](),_0x9fcdf4=await createTDXInstance(_0x44f459),_0x149093=await _0x45a68b[_0x5bb88a(0x3a1)]({'options':{..._0x44f459,..._0x4324f4},'args':_0x2e3ebe?[_0x2e3ebe]:[],'tdx':_0x9fcdf4});gracefulExit(_0x149093);};segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x25d))[a2_0x28a4c0(0x3e0)]('Show\x20segment\x20details\x20(uses\x20context\x20if\x20not\x20provided)')['option'](a2_0x28a4c0(0x43b),'Open\x20segment\x20in\x20web\x20browser')[a2_0x28a4c0(0x1e6)](segmentViewAction),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x224),{'hidden':!![]})[a2_0x28a4c0(0x33d)](a2_0x28a4c0(0x260))['option'](a2_0x28a4c0(0x43b),a2_0x28a4c0(0x2d0))[a2_0x28a4c0(0x3e0)]('Show\x20segment\x20details\x20(alias\x20for\x20view)')['action'](segmentViewAction),segmentCmd[a2_0x28a4c0(0x46f)]('desc\x20[segment_name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x308))[a2_0x28a4c0(0x1e6)](async(_0xcee48c,_0x396379)=>{const _0x309c67=a2_0x28a4c0,_0x9e261b=new SegmentDescCommand(),_0x4d7a37=program[_0x309c67(0x293)](),_0x2efe94=await createTDXInstance(_0x4d7a37),_0x1a7bf3=await _0x9e261b[_0x309c67(0x3a1)]({'options':{..._0x4d7a37,..._0x396379},'args':_0xcee48c?[_0xcee48c]:[],'tdx':_0x2efe94});gracefulExit(_0x1a7bf3);}),segmentCmd[a2_0x28a4c0(0x46f)]('show\x20[segment_name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x254))[a2_0x28a4c0(0x1e6)](async(_0x246e8f,_0x14032a)=>{const _0x4cfb0e=a2_0x28a4c0,_0x4e190f=new SegmentShowCommand(),_0x364fc8=program[_0x4cfb0e(0x293)](),_0x4d74a0=await createTDXInstance(_0x364fc8),_0x3005ef=await _0x4e190f[_0x4cfb0e(0x3a1)]({'options':{..._0x364fc8,..._0x14032a},'args':_0x246e8f?[_0x246e8f]:[],'tdx':_0x4d74a0});gracefulExit(_0x3005ef);}),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x20e),{'hidden':!![]})['description'](a2_0x28a4c0(0x350))[a2_0x28a4c0(0x1e6)](async(_0x2d8e25,_0x3a9424)=>{const _0x378f6c=a2_0x28a4c0,_0x4b6516=new SegmentFolderListCommand(),_0x56bf57=program[_0x378f6c(0x293)](),_0x5e0d42=await createTDXInstance(_0x56bf57),_0x800929=await _0x4b6516[_0x378f6c(0x3a1)]({'options':{..._0x56bf57,..._0x3a9424},'args':[_0x2d8e25],'tdx':_0x5e0d42});gracefulExit(_0x800929);});const folderCmd=segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x423),{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x453));folderCmd['command'](a2_0x28a4c0(0x2e5))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3ca))[a2_0x28a4c0(0x1e6)](async(_0x144989,_0x682573)=>{const _0x2ed0a2=a2_0x28a4c0,_0x27e98f=new SegmentFolderShowCommand(),_0x187323=program[_0x2ed0a2(0x293)](),_0x30526b=await createTDXInstance(_0x187323),_0x168e8d=await _0x27e98f[_0x2ed0a2(0x3a1)]({'options':{..._0x187323,..._0x682573},'args':[_0x144989],'tdx':_0x30526b});gracefulExit(_0x168e8d);}),segmentCmd['command'](a2_0x28a4c0(0x3e1))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x266))['action'](async(_0x1b15c3,_0x5b263e)=>{const _0x2b4cc6=a2_0x28a4c0,_0x3be603=new SegmentSQLCommand(),_0x2441a0=program[_0x2b4cc6(0x293)](),_0x50c452=await createTDXInstance(_0x2441a0),_0x33af92=await _0x3be603[_0x2b4cc6(0x3a1)]({'options':{..._0x2441a0,..._0x5b263e},'args':_0x1b15c3?[_0x1b15c3]:[],'tdx':_0x50c452});gracefulExit(_0x33af92);}),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x1e1))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x42e))['action'](async(_0x1e585c,_0x14ef0a)=>{const _0x219ad5=a2_0x28a4c0,_0x30056c=new SegmentFieldsCommand(),_0x792b66=program[_0x219ad5(0x293)](),_0x32a5c9=await createTDXInstance(_0x792b66),_0x399b20=await _0x30056c[_0x219ad5(0x3a1)]({'options':{..._0x792b66,..._0x14ef0a},'args':_0x1e585c?[_0x1e585c]:[],'tdx':_0x32a5c9});gracefulExit(_0x399b20);}),segmentCmd[a2_0x28a4c0(0x46f)]('pull\x20[parent_or_file]')[a2_0x28a4c0(0x3e0)]('Pull\x20child\x20segments\x20to\x20YAML\x20files')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x403))['option'](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x45e))[a2_0x28a4c0(0x1e6)](async(_0x4a8957,_0x191848)=>{const _0xacacec=a2_0x28a4c0,_0x35f1f3=new SegmentPullCommand(),_0x193ebd=program[_0xacacec(0x293)](),_0x922f56=await createTDXInstance(_0x193ebd),_0x5ac378=await _0x35f1f3['run']({'options':{..._0x193ebd,..._0x191848},'args':_0x4a8957?[_0x4a8957]:[],'tdx':_0x922f56});gracefulExit(_0x5ac378);}),segmentCmd[a2_0x28a4c0(0x46f)]('push\x20[parent_or_file]')['description'](a2_0x28a4c0(0x370))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompts')['option'](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x45e))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x24a),a2_0x28a4c0(0x334))[a2_0x28a4c0(0x1e6)](async(_0x290d5f,_0x4fcc86)=>{const _0x18823b=a2_0x28a4c0,_0x2d15ae=new SegmentPushCommand(),_0x5ebd6d=program[_0x18823b(0x293)](),_0x4d74d6=await createTDXInstance(_0x5ebd6d),_0xfa2c8c=await _0x2d15ae[_0x18823b(0x3a1)]({'options':{..._0x5ebd6d,..._0x4fcc86},'args':_0x290d5f?[_0x290d5f]:[],'tdx':_0x4d74d6});gracefulExit(_0xfa2c8c);}),segmentCmd['command']('validate\x20[target]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x392))[a2_0x28a4c0(0x1e6)](async(_0x992f06,_0x1078e0)=>{const _0xfd4778=a2_0x28a4c0,_0x1382a5=new SegmentValidateCommand(),_0x5e82ee=program[_0xfd4778(0x293)](),_0x55b769=await createTDXInstance(_0x5e82ee),_0x10192a=await _0x1382a5[_0xfd4778(0x3a1)]({'options':{..._0x5e82ee,..._0x1078e0},'args':_0x992f06?[_0x992f06]:[],'tdx':_0x55b769});gracefulExit(_0x10192a);}),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3bf),{'hidden':!![]})[a2_0x28a4c0(0x3e0)]('[DEPRECATED]\x20Create\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x28a4c0(0x35f)]('--description\x20<text>','Segment\x20description')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2d1),a2_0x28a4c0(0x2f9))[a2_0x28a4c0(0x35f)]('--rule-file\x20<file>','Filtering\x20rule\x20from\x20JSON\x20file')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x219),a2_0x28a4c0(0x3b3))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2b1),a2_0x28a4c0(0x377))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x21c),a2_0x28a4c0(0x27a))[a2_0x28a4c0(0x35f)]('--no-count-population',a2_0x28a4c0(0x263))['action'](async(_0x43631e,_0x2e2236)=>{const _0x411fbf=a2_0x28a4c0,_0x55442f=new SegmentCreateCommand(),_0x4cfb47=program[_0x411fbf(0x293)](),_0x29ea4e=await createTDXInstance(_0x4cfb47),_0x15a84d=await _0x55442f[_0x411fbf(0x3a1)]({'options':{..._0x4cfb47,..._0x2e2236},'args':[_0x43631e],'tdx':_0x29ea4e});gracefulExit(_0x15a84d);}),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x268),{'hidden':!![]})[a2_0x28a4c0(0x3e0)]('[DEPRECATED]\x20Update\x20child\x20segment\x20(use\x20pull/push\x20workflow\x20instead)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x309),a2_0x28a4c0(0x1f5))[a2_0x28a4c0(0x35f)]('--description\x20<text>',a2_0x28a4c0(0x380))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2d1),a2_0x28a4c0(0x439))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x397),a2_0x28a4c0(0x2b6))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x219),a2_0x28a4c0(0x37d))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2b1),a2_0x28a4c0(0x377))['action'](async(_0x4bcfbc,_0x526d2e)=>{const _0x50cbf5=new SegmentUpdateCommand(),_0x43e300=program['opts'](),_0x14fe53=await createTDXInstance(_0x43e300),_0x49c3db=await _0x50cbf5['run']({'options':{..._0x43e300,..._0x526d2e},'args':[_0x4bcfbc],'tdx':_0x14fe53});gracefulExit(_0x49c3db);});const parentCmd=segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x417),{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1dc)),parentListAction=async(_0x47123c,_0x3819e2)=>{const _0x4c78bf=a2_0x28a4c0,_0x55543e=new ParentSegmentListCommand(),_0x36c3e0=program[_0x4c78bf(0x293)](),_0x2a2245=await createTDXInstance(_0x36c3e0),_0x4beb88=await _0x55543e[_0x4c78bf(0x3a1)]({'options':{..._0x36c3e0,..._0x3819e2},'args':_0x47123c?[_0x47123c]:[],'tdx':_0x2a2245});gracefulExit(_0x4beb88);};parentCmd['command']('list\x20[pattern]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x31b))['action'](parentListAction),segmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3eb),{'hidden':!![]})[a2_0x28a4c0(0x3e0)]('List\x20parent\x20segments\x20(alias\x20for\x20\x22segment\x20parent\x20list\x22)')[a2_0x28a4c0(0x1e6)](parentListAction),parentCmd[a2_0x28a4c0(0x46f)]('pull\x20[name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3a0))['option'](a2_0x28a4c0(0x2ff),a2_0x28a4c0(0x433))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x5252df,_0x1ea00e)=>{const _0x108e60=a2_0x28a4c0,_0x34fd8f=new ParentSegmentPullCommand(),_0x4e70b1=program[_0x108e60(0x293)](),_0x5604c1=await createTDXInstance(_0x4e70b1),_0x3e9b32=await _0x34fd8f[_0x108e60(0x3a1)]({'options':{..._0x4e70b1,..._0x1ea00e},'args':_0x5252df?[_0x5252df]:[],'tdx':_0x5604c1});gracefulExit(_0x3e9b32);}),parentCmd['command']('push\x20[file]')[a2_0x28a4c0(0x3e0)]('Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x69641,_0x1230b6)=>{const _0x3f306e=a2_0x28a4c0,_0x5a85e5=new ParentSegmentPushCommand(),_0x5a8744=program[_0x3f306e(0x293)](),_0x425e42=await createTDXInstance(_0x5a8744),_0x1a62c8=await _0x5a85e5['run']({'options':{..._0x5a8744,..._0x1230b6},'args':_0x69641?[_0x69641]:[],'tdx':_0x425e42});gracefulExit(_0x1a62c8);}),parentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3d1))[a2_0x28a4c0(0x3e0)]('Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d6),'Show\x20only\x20master\x20table\x20validation')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1ed),a2_0x28a4c0(0x298))[a2_0x28a4c0(0x35f)]('--behavior\x20[name]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3b1),'Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x26e),a2_0x28a4c0(0x3f5),a2_0x28a4c0(0x441))[a2_0x28a4c0(0x1e6)](async(_0x731029,_0x3f5cad)=>{const _0x18e202=a2_0x28a4c0,_0x21313d=new ParentSegmentValidateCommand(),_0x5f2628=program[_0x18e202(0x293)](),_0x24c77a=await createTDXInstance(_0x5f2628),_0x5cf0ea=await _0x21313d[_0x18e202(0x3a1)]({'options':{..._0x5f2628,..._0x3f5cad},'args':_0x731029?[_0x731029]:[],'tdx':_0x24c77a});gracefulExit(_0x5cf0ea);}),parentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x1e9))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1ff))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d6),a2_0x28a4c0(0x234))['option'](a2_0x28a4c0(0x1ed),'Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x294),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')['option'](a2_0x28a4c0(0x3b1),a2_0x28a4c0(0x3f7))[a2_0x28a4c0(0x35f)]('--interval\x20<range>',a2_0x28a4c0(0x3f5),a2_0x28a4c0(0x441))[a2_0x28a4c0(0x1e6)](async(_0x27e536,_0x5a57fc)=>{const _0x468224=a2_0x28a4c0,_0x5da0bb=new ParentSegmentPreviewCommand(),_0x435534=program[_0x468224(0x293)](),_0x5935c4=await createTDXInstance(_0x435534),_0x4da53d=await _0x5da0bb[_0x468224(0x3a1)]({'options':{..._0x435534,..._0x5a57fc},'args':_0x27e536?[_0x27e536]:[],'tdx':_0x5935c4});gracefulExit(_0x4da53d);}),parentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x333))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x270))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x3cf46f,_0x122405)=>{const _0x1b880b=a2_0x28a4c0,_0x5cc7ae=new ParentSegmentRunCommand(),_0x28718e=program[_0x1b880b(0x293)](),_0x10dbee=await createTDXInstance(_0x28718e),_0xd94232=await _0x5cc7ae[_0x1b880b(0x3a1)]({'options':{..._0x28718e,..._0x122405},'args':_0x3cf46f?[_0x3cf46f]:[],'tdx':_0x10dbee});gracefulExit(_0xd94232);});const parentSegmentCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2c8))['alias']('ps')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3fd));parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)]('List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)')[a2_0x28a4c0(0x1e6)](parentListAction),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3ee))['description'](a2_0x28a4c0(0x289))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2ff),'Output\x20file\x20path')[a2_0x28a4c0(0x35f)]('-y,\x20--yes',a2_0x28a4c0(0x434))['option'](a2_0x28a4c0(0x26a),a2_0x28a4c0(0x29f))[a2_0x28a4c0(0x1e6)](async(_0x1ed0fe,_0x417a6f)=>{const _0x567ca6=a2_0x28a4c0,_0x47b093=new ParentSegmentPullCommand(),_0x275665=program[_0x567ca6(0x293)](),_0xeb8afe=await createTDXInstance(_0x275665),_0x3254a5=await _0x47b093[_0x567ca6(0x3a1)]({'options':{..._0x275665,..._0x417a6f},'args':_0x1ed0fe?[_0x1ed0fe]:[],'tdx':_0xeb8afe});gracefulExit(_0x3254a5);}),parentSegmentCmd[a2_0x28a4c0(0x46f)]('push\x20[name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x305))['option'](a2_0x28a4c0(0x2c6),'Skip\x20confirmation\x20prompt')[a2_0x28a4c0(0x1e6)](async(_0x970c43,_0x4b9aec)=>{const _0x4bb83c=a2_0x28a4c0,_0x5899b5=new ParentSegmentPushCommand(),_0x335c94=program[_0x4bb83c(0x293)](),_0x3f450a=await createTDXInstance(_0x335c94),_0x4bb7a1=await _0x5899b5[_0x4bb83c(0x3a1)]({'options':{..._0x335c94,..._0x4b9aec},'args':_0x970c43?[_0x970c43]:[],'tdx':_0x3f450a});gracefulExit(_0x4bb7a1);}),parentSegmentCmd[a2_0x28a4c0(0x46f)]('validate\x20[name]')['description'](a2_0x28a4c0(0x43f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d6),'Show\x20only\x20master\x20table\x20validation')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1ed),a2_0x28a4c0(0x298))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x294),a2_0x28a4c0(0x39c))[a2_0x28a4c0(0x35f)]('--enriched',a2_0x28a4c0(0x37c))['option']('--interval\x20<range>',a2_0x28a4c0(0x3f5),a2_0x28a4c0(0x441))['action'](async(_0x3f713c,_0x5ad0cc)=>{const _0x342015=a2_0x28a4c0,_0x2ad402=new ParentSegmentValidateCommand(),_0x156cc1=program[_0x342015(0x293)](),_0x44b3d7=await createTDXInstance(_0x156cc1),_0x532d91=await _0x2ad402[_0x342015(0x3a1)]({'options':{..._0x156cc1,..._0x5ad0cc},'args':_0x3f713c?[_0x3f713c]:[],'tdx':_0x44b3d7});gracefulExit(_0x532d91);}),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x29e))['description'](a2_0x28a4c0(0x1ff))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d6),a2_0x28a4c0(0x234))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1ed),a2_0x28a4c0(0x227))['option'](a2_0x28a4c0(0x294),'Show\x20sample\x20data\x20for\x20a\x20specific\x20behavior')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3b1),'Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)')[a2_0x28a4c0(0x35f)]('--interval\x20<range>',a2_0x28a4c0(0x3f5),'-1d')[a2_0x28a4c0(0x1e6)](async(_0x29c724,_0x43785e)=>{const _0x43528b=a2_0x28a4c0,_0x2c7a0b=new ParentSegmentPreviewCommand(),_0x1167a9=program[_0x43528b(0x293)](),_0x3fb5de=await createTDXInstance(_0x1167a9),_0x2431d8=await _0x2c7a0b['run']({'options':{..._0x1167a9,..._0x43785e},'args':_0x29c724?[_0x29c724]:[],'tdx':_0x3fb5de});gracefulExit(_0x2431d8);}),parentSegmentCmd[a2_0x28a4c0(0x46f)]('run\x20[name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x270))['option'](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x290238,_0x308682)=>{const _0x344f1a=a2_0x28a4c0,_0x297f8c=new ParentSegmentRunCommand(),_0x3e0e87=program[_0x344f1a(0x293)](),_0x319485=await createTDXInstance(_0x3e0e87),_0x244081=await _0x297f8c['run']({'options':{..._0x3e0e87,..._0x308682},'args':_0x290238?[_0x290238]:[],'tdx':_0x319485});gracefulExit(_0x244081);}),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3f3))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x41b))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bc),a2_0x28a4c0(0x292))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x36c),a2_0x28a4c0(0x303))[a2_0x28a4c0(0x1e6)](async(_0x4feb8c,_0x1702ae)=>{const _0x52619d=a2_0x28a4c0,_0x6f2902=new ParentSegmentFieldsCommand(),_0x355745=program['opts'](),_0x3f79e0=await createTDXInstance(_0x355745),_0x5e8e3f=await _0x6f2902[_0x52619d(0x3a1)]({'options':{..._0x355745,..._0x1702ae},'args':_0x4feb8c?[_0x4feb8c]:[],'tdx':_0x3f79e0});gracefulExit(_0x5e8e3f);}),parentSegmentCmd['command'](a2_0x28a4c0(0x207))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2a7))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x43b),a2_0x28a4c0(0x39f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bc),'Output\x20as\x20JSON')['option'](a2_0x28a4c0(0x36c),'Output\x20as\x20JSON\x20Lines')[a2_0x28a4c0(0x1e6)](async(_0x5b3ca3,_0x424f64)=>{const _0x2c2489=a2_0x28a4c0,_0x251825=new ParentSegmentViewCommand(),_0x17a40b=program[_0x2c2489(0x293)](),_0x2af246=await createTDXInstance(_0x17a40b),_0x28e8d8=await _0x251825[_0x2c2489(0x3a1)]({'options':{..._0x17a40b,..._0x424f64},'args':_0x5b3ca3?[_0x5b3ca3]:[],'tdx':_0x2af246});gracefulExit(_0x28e8d8);}),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x36e))[a2_0x28a4c0(0x3e0)]('Show\x20parent\x20segment\x20output\x20schema\x20(uses\x20context\x20if\x20name\x20omitted)')['option']('-o,\x20--output\x20<file>',a2_0x28a4c0(0x25b))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bc),a2_0x28a4c0(0x292))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x36c),a2_0x28a4c0(0x303))['action'](async(_0x13335b,_0x22aae1)=>{const _0x3c030a=a2_0x28a4c0,_0x504253=new ParentSegmentDescCommand(),_0x3a4649=program[_0x3c030a(0x293)](),_0x4b1ca2=await createTDXInstance(_0x3a4649),_0x375d47=await _0x504253[_0x3c030a(0x3a1)]({'options':{..._0x3a4649,..._0x22aae1},'args':_0x13335b?[_0x13335b]:[],'tdx':_0x4b1ca2});gracefulExit(_0x375d47);}),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x427))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x386))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bc),a2_0x28a4c0(0x292))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x36c),a2_0x28a4c0(0x303))[a2_0x28a4c0(0x1e6)](async(_0x3348d1,_0x5a5da1)=>{const _0x3bc3b5=a2_0x28a4c0,_0x291d41=new ParentSegmentSQLCommand(),_0x47b5a9=program[_0x3bc3b5(0x293)](),_0x545b34=await createTDXInstance(_0x47b5a9),_0x289e99=await _0x291d41[_0x3bc3b5(0x3a1)]({'options':{..._0x47b5a9,..._0x5a5da1},'args':_0x3348d1?[_0x3348d1]:[],'tdx':_0x545b34});gracefulExit(_0x289e99);}),parentSegmentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x32c))[a2_0x28a4c0(0x3e0)]('Execute\x20parent\x20segment\x20SQL\x20and\x20show\x20results\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x28a4c0(0x35f)]('--limit\x20<n>',a2_0x28a4c0(0x21d))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bc),a2_0x28a4c0(0x292))[a2_0x28a4c0(0x35f)]('--jsonl',a2_0x28a4c0(0x303))[a2_0x28a4c0(0x1e6)](async(_0x512d22,_0x1d049c)=>{const _0xd4bf3f=a2_0x28a4c0,_0x29aca3=new ParentSegmentShowCommand(),_0x25873d=program[_0xd4bf3f(0x293)](),_0x4786b7=await createTDXInstance(_0x25873d),_0x309fc5=await _0x29aca3[_0xd4bf3f(0x3a1)]({'options':{..._0x25873d,..._0x1d049c},'args':_0x512d22?[_0x512d22]:[],'tdx':_0x4786b7});gracefulExit(_0x309fc5);}),parentSegmentCmd['command'](a2_0x28a4c0(0x36d))['description'](a2_0x28a4c0(0x2cb))[a2_0x28a4c0(0x1e6)](async(_0x30a199,_0x2360b3)=>{const _0x30e699=a2_0x28a4c0,_0x829867=new UseCommand(),_0x4c83b7=program[_0x30e699(0x293)](),_0x16c1f5=_0x30a199?[_0x30e699(0x337),_0x30a199]:[],_0x4e1098=await _0x829867['run']({'options':{..._0x4c83b7,..._0x2360b3},'args':_0x16c1f5,'tdx':null});gracefulExit(_0x4e1098);});const psRtCmd=parentSegmentCmd[a2_0x28a4c0(0x46f)]('rt')['description'](a2_0x28a4c0(0x2b7));psRtCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1ec))[a2_0x28a4c0(0x1e6)](async(_0x570ed1,_0x30b315)=>{const _0x25f7cf=a2_0x28a4c0,_0x110630=new PSRtListCommand(),_0x10337f=program[_0x25f7cf(0x293)](),_0x21834c=await createTDXInstance(_0x10337f),_0x195338=await _0x110630['run']({'options':{..._0x10337f,..._0x30b315},'args':_0x570ed1?[_0x570ed1]:[],'tdx':_0x21834c});gracefulExit(_0x195338);}),psRtCmd['command'](a2_0x28a4c0(0x2cc))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2a2))[a2_0x28a4c0(0x1e6)](async(_0x9a8540,_0x30ab88)=>{const _0x42d585=a2_0x28a4c0,_0x178723=new PSRtValidateCommand(),_0x398654=program[_0x42d585(0x293)](),_0xcb0555=await createTDXInstance(_0x398654),_0x465a32=await _0x178723['run']({'options':{..._0x398654,..._0x30ab88},'args':_0x9a8540?[_0x9a8540]:[],'tdx':_0xcb0555});gracefulExit(_0x465a32);});const parentRtCmd=parentCmd[a2_0x28a4c0(0x46f)]('rt',{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2b7));parentRtCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1ec))['action'](async(_0x52b217,_0x5d41d1)=>{const _0x5338a0=a2_0x28a4c0,_0x171747=new PSRtListCommand(),_0x41302e=program['opts'](),_0x5d79d8=await createTDXInstance(_0x41302e),_0x3468fb=await _0x171747[_0x5338a0(0x3a1)]({'options':{..._0x41302e,..._0x5d41d1},'args':_0x52b217?[_0x52b217]:[],'tdx':_0x5d79d8});gracefulExit(_0x3468fb);}),parentRtCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2cc))['description'](a2_0x28a4c0(0x2a2))[a2_0x28a4c0(0x1e6)](async(_0x28d301,_0x251e27)=>{const _0x3ab37b=a2_0x28a4c0,_0xc9166f=new PSRtValidateCommand(),_0x17a04f=program[_0x3ab37b(0x293)](),_0x396734=await createTDXInstance(_0x17a04f),_0x8e940=await _0xc9166f['run']({'options':{..._0x17a04f,..._0x251e27},'args':_0x28d301?[_0x28d301]:[],'tdx':_0x396734});gracefulExit(_0x8e940);});const psPzCmd=parentSegmentCmd['command']('pz')['description'](a2_0x28a4c0(0x1f0));psPzCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x465))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x200))[a2_0x28a4c0(0x1e6)](async(_0x104606,_0x1da894)=>{const _0x4a522e=a2_0x28a4c0,_0x12d91d=new PSPzListCommand(),_0x4cd06f=program[_0x4a522e(0x293)](),_0x5aed8b=await createTDXInstance(_0x4cd06f),_0x1361e5=await _0x12d91d[_0x4a522e(0x3a1)]({'options':{..._0x4cd06f,..._0x1da894},'args':_0x104606?[_0x104606]:[],'tdx':_0x5aed8b});gracefulExit(_0x1361e5);}),psPzCmd[a2_0x28a4c0(0x46f)]('init\x20[name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x31e))[a2_0x28a4c0(0x1e6)](async(_0x12832e,_0x54a5ca)=>{const _0x1d86a2=a2_0x28a4c0,_0x42a9fa=new PSPzInitCommand(),_0x2070d2=program[_0x1d86a2(0x293)](),_0x320928=await createTDXInstance(_0x2070d2),_0x5a223f=await _0x42a9fa[_0x1d86a2(0x3a1)]({'options':{..._0x2070d2,..._0x54a5ca},'args':_0x12832e?[_0x12832e]:[],'tdx':_0x320928});gracefulExit(_0x5a223f);});const parentPzCmd=parentCmd[a2_0x28a4c0(0x46f)]('pz',{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1f0));parentPzCmd[a2_0x28a4c0(0x46f)]('list\x20[name]')[a2_0x28a4c0(0x3e0)]('List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)')[a2_0x28a4c0(0x1e6)](async(_0x97b187,_0x23c5b3)=>{const _0x265561=a2_0x28a4c0,_0x1e3fb6=new PSPzListCommand(),_0x1fbd88=program[_0x265561(0x293)](),_0x1a7b2e=await createTDXInstance(_0x1fbd88),_0x2bf805=await _0x1e3fb6[_0x265561(0x3a1)]({'options':{..._0x1fbd88,..._0x23c5b3},'args':_0x97b187?[_0x97b187]:[],'tdx':_0x1a7b2e});gracefulExit(_0x2bf805);}),parentPzCmd['command'](a2_0x28a4c0(0x359))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x31e))[a2_0x28a4c0(0x1e6)](async(_0x1cddc2,_0x9ec010)=>{const _0x4ded95=a2_0x28a4c0,_0x15f5bc=new PSPzInitCommand(),_0xcd290f=program[_0x4ded95(0x293)](),_0x463e48=await createTDXInstance(_0xcd290f),_0x110b0b=await _0x15f5bc[_0x4ded95(0x3a1)]({'options':{..._0xcd290f,..._0x9ec010},'args':_0x1cddc2?[_0x1cddc2]:[],'tdx':_0x463e48});gracefulExit(_0x110b0b);}),parentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x41c))[a2_0x28a4c0(0x3e0)]('[DEPRECATED]\x20Create\x20parent\x20segment\x20-\x20use\x20`push`\x20instead')[a2_0x28a4c0(0x414)](a2_0x28a4c0(0x3d3),a2_0x28a4c0(0x26d))[a2_0x28a4c0(0x414)]('--table\x20<table>',a2_0x28a4c0(0x326))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x26c),'Parent\x20segment\x20description')['option']('--schedule-type\x20<type>','Schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x339),a2_0x28a4c0(0x24f))['option'](a2_0x28a4c0(0x321),a2_0x28a4c0(0x221))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x35d),a2_0x28a4c0(0x2be))[a2_0x28a4c0(0x35f)]('--attributes-file\x20<file>',a2_0x28a4c0(0x1eb))[a2_0x28a4c0(0x35f)]('--behaviors\x20<json>',a2_0x28a4c0(0x257))[a2_0x28a4c0(0x35f)]('--behaviors-file\x20<file>','Behaviors\x20from\x20JSON\x20file')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x455),a2_0x28a4c0(0x20a))['option']('--customer-group-file\x20<file>',a2_0x28a4c0(0x344))[a2_0x28a4c0(0x1e6)](async(_0x3308ae,_0x1c93c9)=>{const _0x263040=a2_0x28a4c0,_0x392745=new ParentSegmentCreateCommand(),_0x368704=program[_0x263040(0x293)](),_0x283d16=await createTDXInstance(_0x368704),_0x1e4bc3=await _0x392745[_0x263040(0x3a1)]({'options':{..._0x368704,..._0x1c93c9},'args':[_0x3308ae],'tdx':_0x283d16});gracefulExit(_0x1e4bc3);}),parentCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x37b))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x28a))['option']('--description\x20<text>','Updated\x20description')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x248),a2_0x28a4c0(0x325))[a2_0x28a4c0(0x35f)]('--schedule-option\x20<value>','Updated\x20schedule\x20option')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x321),'Updated\x20timezone')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3d4),'Add\x20attributes\x20as\x20JSON\x20string')['option'](a2_0x28a4c0(0x447),a2_0x28a4c0(0x2f1))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x215),a2_0x28a4c0(0x42c))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x387),a2_0x28a4c0(0x2d6))[a2_0x28a4c0(0x1e6)](async(_0x3afbdb,_0x6a8bad)=>{const _0x1bad2=a2_0x28a4c0,_0xed755=new ParentSegmentUpdateCommand(),_0x5abb82=program['opts'](),_0x36924b=await createTDXInstance(_0x5abb82),_0x123e74=await _0xed755[_0x1bad2(0x3a1)]({'options':{..._0x5abb82,..._0x6a8bad},'args':[_0x3afbdb],'tdx':_0x36924b});gracefulExit(_0x123e74);}),folderCmd[a2_0x28a4c0(0x46f)]('create\x20<parent_name>\x20<folder_name>')[a2_0x28a4c0(0x3e0)]('Create\x20segment\x20folder')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x26c),a2_0x28a4c0(0x252))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2a6),a2_0x28a4c0(0x3c4))[a2_0x28a4c0(0x1e6)](async(_0x1d85df,_0x56ae96,_0xfd7405)=>{const _0x5a527a=a2_0x28a4c0,_0x13317d=new SegmentFolderCreateCommand(),_0x4800f5=program[_0x5a527a(0x293)](),_0x51f554=await createTDXInstance(_0x4800f5),_0x540a68=await _0x13317d['run']({'options':{..._0x4800f5,..._0xfd7405},'args':[_0x1d85df,_0x56ae96],'tdx':_0x51f554});gracefulExit(_0x540a68);}),program['command'](a2_0x28a4c0(0x431))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x463))[a2_0x28a4c0(0x1e6)](async(_0x406bd7,_0x5e7022)=>{const _0x3f6d1d=a2_0x28a4c0,_0x7de778=new ActivationsCommand(),_0x107468=program[_0x3f6d1d(0x293)](),_0x31292d=await createTDXInstance(_0x107468),_0x42c83=await _0x7de778['run']({'options':{..._0x107468,..._0x5e7022},'args':[_0x406bd7],'tdx':_0x31292d});gracefulExit(_0x42c83);});const workflowCmd=program['command'](a2_0x28a4c0(0x2e6))[a2_0x28a4c0(0x33d)]('wf')['description'](a2_0x28a4c0(0x35e)),wfProjectCmd=workflowCmd[a2_0x28a4c0(0x46f)]('project')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2ce)),wfProjectListAction=async(_0x3555b8,_0x587edc)=>{const _0x2d601c=a2_0x28a4c0,_0x481363=new WorkflowProjectsCommand(),_0xb1c5a2=program[_0x2d601c(0x293)](),_0xdfb633=await createTDXInstance(_0xb1c5a2),_0x15ddf7=await _0x481363[_0x2d601c(0x3a1)]({'options':{..._0xb1c5a2,..._0x587edc},'args':_0x3555b8?[_0x3555b8]:[],'tdx':_0xdfb633});gracefulExit(_0x15ddf7);};wfProjectCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)]('List\x20all\x20workflow\x20projects\x20(optionally\x20filtered\x20by\x20glob\x20pattern)')[a2_0x28a4c0(0x1e6)](wfProjectListAction),workflowCmd[a2_0x28a4c0(0x46f)]('projects\x20[pattern]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3da))[a2_0x28a4c0(0x1e6)](wfProjectListAction);const wfWorkflowListAction=async(_0x55afb9,_0x20a72b)=>{const _0x16549d=a2_0x28a4c0,_0x3bbc07=new WorkflowWorkflowsCommand(),_0x42aa7b=program[_0x16549d(0x293)](),_0x151c10=await createTDXInstance(_0x42aa7b),_0x77b0fe=await _0x3bbc07[_0x16549d(0x3a1)]({'options':{..._0x42aa7b,..._0x20a72b},'args':_0x55afb9?[_0x55afb9]:[],'tdx':_0x151c10});gracefulExit(_0x77b0fe);};workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x468))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1fb))[a2_0x28a4c0(0x1e6)](wfWorkflowListAction);const wfSessionCmd=workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x29d))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3d0)),wfSessionListAction=async(_0x480f84,_0x772d68)=>{const _0x58cae7=a2_0x28a4c0,_0x52d8c0=new WorkflowSessionsCommand(),_0x2bb75f=program[_0x58cae7(0x293)](),_0x27b1bf=await createTDXInstance(_0x2bb75f),_0x4631de=await _0x52d8c0['run']({'options':{..._0x2bb75f,..._0x772d68},'args':_0x480f84?[_0x480f84]:[],'tdx':_0x27b1bf});gracefulExit(_0x4631de);};wfSessionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x21f))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2d3))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bd),a2_0x28a4c0(0x38b))[a2_0x28a4c0(0x35f)]('--from\x20<timestamp>','Start\x20time\x20filter\x20(ISO\x208601\x20format)')[a2_0x28a4c0(0x35f)]('--to\x20<timestamp>',a2_0x28a4c0(0x34f))['action'](wfSessionListAction),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x243))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x27d))[a2_0x28a4c0(0x35f)]('--status\x20<status>',a2_0x28a4c0(0x38b))[a2_0x28a4c0(0x35f)]('--from\x20<timestamp>',a2_0x28a4c0(0x287))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d9),a2_0x28a4c0(0x34f))[a2_0x28a4c0(0x1e6)](wfSessionListAction);const wfAttemptListAction=async(_0x43513f,_0x3c4230)=>{const _0x329cce=a2_0x28a4c0,_0x53bb02=new WorkflowAttemptsCommand(),_0x533ae3=program['opts'](),_0x2f1806=await createTDXInstance(_0x533ae3),_0x5f012f=await _0x53bb02[_0x329cce(0x3a1)]({'options':{..._0x533ae3,..._0x3c4230},'args':_0x43513f?[_0x43513f]:[],'tdx':_0x2f1806});gracefulExit(_0x5f012f);},attemptCmd=workflowCmd['command'](a2_0x28a4c0(0x301))['description']('Workflow\x20attempt\x20management')[a2_0x28a4c0(0x281)](a2_0x28a4c0(0x27b),a2_0x28a4c0(0x2cd))[a2_0x28a4c0(0x281)](a2_0x28a4c0(0x3cd),a2_0x28a4c0(0x283))[a2_0x28a4c0(0x281)](a2_0x28a4c0(0x2a5),'Task\x20name\x20for\x20logs\x20action')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x436),a2_0x28a4c0(0x246))['option'](a2_0x28a4c0(0x2b8),a2_0x28a4c0(0x33f))[a2_0x28a4c0(0x35f)]('--resume-from\x20<task>',a2_0x28a4c0(0x22f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2f0),a2_0x28a4c0(0x25c))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bf),a2_0x28a4c0(0x429))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x276),a2_0x28a4c0(0x34a))[a2_0x28a4c0(0x1e6)](async(_0x219971,_0x5a3a97,_0x268c0d,_0x5474d1)=>{const _0x206f31=a2_0x28a4c0;if(_0x219971===_0x206f31(0x379)){await wfAttemptListAction(_0x5a3a97,_0x5474d1);return;}if(!_0x219971){attemptCmd[_0x206f31(0x2b0)]();return;}const _0x397433=program[_0x206f31(0x293)](),_0x3af9ed=await createTDXInstance(_0x397433);let _0x2c2137=0x0;if(!_0x5a3a97){const _0x1c0160=new WorkflowAttemptCommand();_0x2c2137=await _0x1c0160[_0x206f31(0x3a1)]({'options':{..._0x397433,..._0x5474d1},'args':[_0x219971],'tdx':_0x3af9ed});}else{if(_0x5a3a97===_0x206f31(0x464)){const _0x2157b4=new WorkflowLogsCommand();_0x2c2137=await _0x2157b4[_0x206f31(0x3a1)]({'options':{..._0x397433,..._0x5474d1},'args':_0x268c0d?[_0x219971,_0x268c0d]:[_0x219971],'tdx':_0x3af9ed});}else{if(_0x5a3a97==='tasks'){const _0x5e0412=new WorkflowTasksCommand();_0x2c2137=await _0x5e0412[_0x206f31(0x3a1)]({'options':{..._0x397433,..._0x5474d1},'args':[_0x219971],'tdx':_0x3af9ed});}else{if(_0x5a3a97==='kill'){const _0x213f2c=new WorkflowKillCommand();_0x2c2137=await _0x213f2c['run']({'options':{..._0x397433,..._0x5474d1},'args':[_0x219971],'tdx':_0x3af9ed});}else{if(_0x5a3a97===_0x206f31(0x467)){const _0x4b8197=new WorkflowRetryCommand();_0x2c2137=await _0x4b8197[_0x206f31(0x3a1)]({'options':{..._0x397433,..._0x5474d1},'args':[_0x206f31(0x435)+_0x219971],'tdx':_0x3af9ed});}else console[_0x206f31(0x258)](_0x206f31(0x274)+_0x5a3a97),console[_0x206f31(0x258)](_0x206f31(0x33e)),_0x2c2137=0x1;}}}}gracefulExit(_0x2c2137);});attemptCmd['command'](a2_0x28a4c0(0x21f))[a2_0x28a4c0(0x3e0)]('List\x20workflow\x20attempts\x20(filter\x20by\x20project\x20or\x20project.workflow)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x276),'Include\x20retried\x20attempts')[a2_0x28a4c0(0x1e6)](wfAttemptListAction),workflowCmd[a2_0x28a4c0(0x46f)]('attempts\x20[project]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x338))['option'](a2_0x28a4c0(0x276),a2_0x28a4c0(0x2c1))[a2_0x28a4c0(0x1e6)](wfAttemptListAction),workflowCmd[a2_0x28a4c0(0x46f)]('timeline\x20[project.workflow]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x38f))[a2_0x28a4c0(0x35f)]('--follow',a2_0x28a4c0(0x240))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x21e),a2_0x28a4c0(0x3f2))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3a8),a2_0x28a4c0(0x30d))['action'](async(_0x325569,_0x3aadd0)=>{const _0x25576a=a2_0x28a4c0,_0x47cf4a=new WorkflowTimelineCommand(),_0x472ca5=program[_0x25576a(0x293)](),_0x1db3b0=await createTDXInstance(_0x472ca5),_0x24dd3b=await _0x47cf4a[_0x25576a(0x3a1)]({'options':{..._0x472ca5,..._0x3aadd0},'args':_0x325569?[_0x325569]:[],'tdx':_0x1db3b0});gracefulExit(_0x24dd3b);}),workflowCmd['command'](a2_0x28a4c0(0x1f8))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x226))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x307),a2_0x28a4c0(0x3e3))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2f0),'Override\x20parameters\x20(JSON\x20string\x20or\x20@file.json)')[a2_0x28a4c0(0x1e6)](async(_0x2864ec,_0x58c79f)=>{const _0x27e524=a2_0x28a4c0,_0x5cd40a=new WorkflowRetryCommand(),_0xb9aa57=program[_0x27e524(0x293)](),_0x32b4c3=await createTDXInstance(_0xb9aa57),_0x35ad3d=await _0x5cd40a[_0x27e524(0x3a1)]({'options':{..._0xb9aa57,..._0x58c79f},'args':[_0x2864ec],'tdx':_0x32b4c3});gracefulExit(_0x35ad3d);}),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x23f))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x231))[a2_0x28a4c0(0x35f)]('--param\x20<key=value>',a2_0x28a4c0(0x413),(_0xaef27b,_0x3acfd7=[])=>[..._0x3acfd7,_0xaef27b],[])[a2_0x28a4c0(0x35f)]('--session-time\x20<time>',a2_0x28a4c0(0x44d))['action'](async(_0x16c4c1,_0x20a15f)=>{const _0x155faa=a2_0x28a4c0,_0x3a4bf4=new WorkflowRunCommand(),_0x55aba3=program[_0x155faa(0x293)](),_0x1463e3=await createTDXInstance(_0x55aba3),_0x29652c=await _0x3a4bf4['run']({'options':{..._0x55aba3,..._0x20a15f},'args':_0x16c4c1?[_0x16c4c1]:[],'tdx':_0x1463e3});gracefulExit(_0x29652c);}),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x233))[a2_0x28a4c0(0x3e0)]('Download\x20workflow\x20project\x20from\x20Treasure\x20Data')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ad),a2_0x28a4c0(0x3f9))[a2_0x28a4c0(0x1e6)](async(_0x5e3c19,_0x5acc34,_0x320e7a)=>{const _0xf40716=a2_0x28a4c0,_0x21377c=new WorkflowDownloadCommand(),_0x53f663=program[_0xf40716(0x293)](),_0x50b7a3=await createTDXInstance(_0x53f663),_0x1797a0=await _0x21377c['run']({'options':{..._0x53f663,..._0x320e7a},'args':[_0x5e3c19,_0x5acc34||'.'],'tdx':_0x50b7a3});gracefulExit(_0x1797a0);}),workflowCmd['command'](a2_0x28a4c0(0x3b4))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x38d))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ad),a2_0x28a4c0(0x205))[a2_0x28a4c0(0x35f)]('--dry-run',a2_0x28a4c0(0x369))['option'](a2_0x28a4c0(0x2c6),'Skip\x20confirmation\x20prompt')[a2_0x28a4c0(0x1e6)](async(_0x12dcd7,_0x7c7f98,_0x17c6b0)=>{const _0x3722e4=a2_0x28a4c0,_0x5ba305=new WorkflowPullCommand(),_0x268416=program[_0x3722e4(0x293)](),_0x2ebb19=await createTDXInstance(_0x268416),_0x1236e3=await _0x5ba305[_0x3722e4(0x3a1)]({'options':{..._0x268416,..._0x17c6b0},'args':_0x7c7f98?[_0x12dcd7,_0x7c7f98]:[_0x12dcd7],'tdx':_0x2ebb19});gracefulExit(_0x1236e3);}),workflowCmd[a2_0x28a4c0(0x46f)]('push\x20[source-dir]')['description'](a2_0x28a4c0(0x2a4))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ad),a2_0x28a4c0(0x3fb))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x206))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x249),a2_0x28a4c0(0x23e))['option'](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x2f5c28,_0x20804b)=>{const _0x15b4ac=a2_0x28a4c0,_0x2f570c=new WorkflowPushCommand(),_0x34e8c7=program['opts'](),_0x51e540=await createTDXInstance(_0x34e8c7),_0x28e1a0=await _0x2f570c[_0x15b4ac(0x3a1)]({'options':{..._0x34e8c7,..._0x20804b},'args':_0x2f5c28?[_0x2f5c28]:[],'tdx':_0x51e540});gracefulExit(_0x28e1a0);}),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x39b))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x353))['option']('--name\x20<name>','Override\x20project\x20name')['option']('--revision\x20<revision>',a2_0x28a4c0(0x329))['option']('--skip-validation','Skip\x20validation\x20of\x20.dig\x20files')[a2_0x28a4c0(0x1e6)](async(_0x198054,_0x546fa2)=>{const _0x4af071=new WorkflowUploadCommand(),_0x595667=program['opts'](),_0x528c13=await createTDXInstance(_0x595667),_0x1cd99b=await _0x4af071['run']({'options':{..._0x595667,..._0x546fa2},'args':_0x198054?[_0x198054]:[],'tdx':_0x528c13});gracefulExit(_0x1cd99b);}),workflowCmd['command'](a2_0x28a4c0(0x3c9))[a2_0x28a4c0(0x3e0)]('Clone\x20a\x20workflow\x20project\x20to\x20a\x20new\x20project\x20name')[a2_0x28a4c0(0x35f)]('--name\x20<name>',a2_0x28a4c0(0x26f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3ad),a2_0x28a4c0(0x3fb))[a2_0x28a4c0(0x35f)]('--dry-run','Preview\x20without\x20creating\x20the\x20project')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x249),'Skip\x20validation\x20of\x20.dig\x20files')['option']('-y,\x20--yes',a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x160b41,_0x370c64)=>{const _0xda9718=a2_0x28a4c0,_0x4e3819=new WorkflowCloneCommand(),_0x31b40a=program[_0xda9718(0x293)](),_0x35e432=await createTDXInstance(_0x31b40a),_0x43da09=await _0x4e3819[_0xda9718(0x3a1)]({'options':{..._0x31b40a,..._0x370c64},'args':_0x160b41?[_0x160b41]:[],'tdx':_0x35e432});gracefulExit(_0x43da09);}),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x375))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2c9))[a2_0x28a4c0(0x1e6)](async(_0x29a897,_0x336440)=>{const _0x260b2c=a2_0x28a4c0,_0x5ed08f=new WorkflowDeleteCommand(),_0x4ca13b=program[_0x260b2c(0x293)](),_0x1d9cb3=await createTDXInstance(_0x4ca13b),_0x543003=await _0x5ed08f[_0x260b2c(0x3a1)]({'options':{..._0x4ca13b,..._0x336440},'args':[_0x29a897],'tdx':_0x1d9cb3});gracefulExit(_0x543003);}),workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x251))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1e4))[a2_0x28a4c0(0x35f)]('--clear','Clear\x20workflow\x20project\x20context')['action'](async(_0x4c2d96,_0x3bf936)=>{const _0x59969d=a2_0x28a4c0,_0x3acc0c=new WorkflowUseCommand(),_0x527895=program[_0x59969d(0x293)](),_0x2ce164=await createTDXInstance(_0x527895),_0x1f8803=await _0x3acc0c['run']({'options':{..._0x527895,..._0x3bf936},'args':_0x4c2d96?[_0x4c2d96]:[],'tdx':_0x2ce164});gracefulExit(_0x1f8803);});const wfSecretsCmd=workflowCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x360))[a2_0x28a4c0(0x3e0)]('Manage\x20workflow\x20project\x20secrets');wfSecretsCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x21f))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x23d))[a2_0x28a4c0(0x1e6)](async(_0x2cf355,_0x1dfb3e)=>{const _0x58573d=a2_0x28a4c0,_0x35d4c2=new WorkflowSecretsListCommand(),_0x1d7ba6=program[_0x58573d(0x293)](),_0x56ed88=await createTDXInstance(_0x1d7ba6),_0x31320a=await _0x35d4c2[_0x58573d(0x3a1)]({'options':{..._0x1d7ba6,..._0x1dfb3e},'args':_0x2cf355?[_0x2cf355]:[],'tdx':_0x56ed88});gracefulExit(_0x31320a);}),wfSecretsCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x277))['description'](a2_0x28a4c0(0x1d5))[a2_0x28a4c0(0x1e6)](async(_0x1eebaa,_0x1ce4cb)=>{const _0x17e45b=a2_0x28a4c0,_0x42ac6f=new WorkflowSecretsSetCommand(),_0x1b19d9=program[_0x17e45b(0x293)](),_0x1b248b=await createTDXInstance(_0x1b19d9),_0x29669b=await _0x42ac6f['run']({'options':{..._0x1b19d9,..._0x1ce4cb},'args':_0x1eebaa,'tdx':_0x1b248b});gracefulExit(_0x29669b);}),wfSecretsCmd['command']('delete\x20<args...>')['description'](a2_0x28a4c0(0x428))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x920f2f,_0x323e78)=>{const _0x1491ed=a2_0x28a4c0,_0x168ea5=new WorkflowSecretsDeleteCommand(),_0x365b70=program['opts'](),_0x3b7656=await createTDXInstance(_0x365b70),_0x1f0a9d=await _0x168ea5[_0x1491ed(0x3a1)]({'options':{..._0x365b70,..._0x323e78},'args':_0x920f2f,'tdx':_0x3b7656});gracefulExit(_0x1f0a9d);});const jobCmd=program[a2_0x28a4c0(0x46f)]('job')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x20c)),jobListAction=async _0x674e83=>{const _0x671823=a2_0x28a4c0,_0x5b0557=new JobListCommand(),_0x3cb5a9=program[_0x671823(0x293)](),_0x182b91=await createTDXInstance(_0x3cb5a9),_0x5e025d=await _0x5b0557['run']({'options':{..._0x3cb5a9,..._0x674e83},'args':[],'tdx':_0x182b91});gracefulExit(_0x5e025d);};jobCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x379))['description'](a2_0x28a4c0(0x2c0))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bd),a2_0x28a4c0(0x352))['action'](jobListAction),program['command'](a2_0x28a4c0(0x30a),{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x400))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bd),a2_0x28a4c0(0x352))[a2_0x28a4c0(0x1e6)](jobListAction),jobCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x22a))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x36a))['action'](async(_0x2c33b9,_0x16862a)=>{const _0xb8dfbd=new JobShowCommand(),_0x7f0a6=program['opts'](),_0xf62cf0=await createTDXInstance(_0x7f0a6),_0x11b025=await _0xb8dfbd['run']({'options':{..._0x7f0a6,..._0x16862a},'args':[_0x2c33b9],'tdx':_0xf62cf0});gracefulExit(_0x11b025);}),jobCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x30f))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x383))['action'](async(_0x5d21c8,_0x4064a7)=>{const _0xdcd99a=a2_0x28a4c0,_0xeb78f8=new JobKillCommand(),_0x240db7=program[_0xdcd99a(0x293)](),_0x3c46dc=await createTDXInstance(_0x240db7),_0x5abe51=await _0xeb78f8[_0xdcd99a(0x3a1)]({'options':{..._0x240db7,..._0x4064a7},'args':[_0x5d21c8],'tdx':_0x3c46dc});gracefulExit(_0x5abe51);}),jobCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x40d))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x389))['option'](a2_0x28a4c0(0x44f),a2_0x28a4c0(0x1f2),a2_0x28a4c0(0x391))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2a9),a2_0x28a4c0(0x314))[a2_0x28a4c0(0x35f)]('--database\x20<name>',a2_0x28a4c0(0x256),a2_0x28a4c0(0x3d9))['option'](a2_0x28a4c0(0x44b),'Result\x20export\x20destination\x20(URL\x20or\x20JSON)')[a2_0x28a4c0(0x1e6)](async(_0x48a274,_0xc6f2b6)=>{const _0xc7a3bb=a2_0x28a4c0,_0x44f49d=new JobSubmitCommand(),_0x29a120=program['opts'](),_0x3ba3bb=await createTDXInstance(_0x29a120),_0xc2ab14=await _0x44f49d[_0xc7a3bb(0x3a1)]({'options':{..._0x29a120,..._0xc6f2b6},'args':_0x48a274?[_0x48a274]:[],'tdx':_0x3ba3bb});gracefulExit(_0xc2ab14);}),jobCmd[a2_0x28a4c0(0x46f)]('result\x20<job-id>')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x426))[a2_0x28a4c0(0x1e6)](async(_0x5b4dd1,_0x1f5d50)=>{const _0x22340e=a2_0x28a4c0,_0x364c04=new JobResultCommand(),_0x35c226=program[_0x22340e(0x293)](),_0x4d550d=await createTDXInstance(_0x35c226),_0x2bf62a=await _0x364c04[_0x22340e(0x3a1)]({'options':{..._0x35c226,..._0x1f5d50},'args':[_0x5b4dd1],'tdx':_0x4d550d});gracefulExit(_0x2bf62a);});const scheduleCmd=jobCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2a8))[a2_0x28a4c0(0x3e0)]('Scheduled\x20query\x20management\x20commands');function a2_0xf64d(_0x580451,_0x2ba93b){_0x580451=_0x580451-0x1d3;const _0x1b8aff=a2_0x1b8a();let _0xf64d81=_0x1b8aff[_0x580451];return _0xf64d81;}scheduleCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)]('List\x20scheduled\x20queries\x20(optional\x20regex\x20pattern\x20filter)')[a2_0x28a4c0(0x1e6)](async(_0x4e6dbb,_0x5930b4)=>{const _0xc75ae2=a2_0x28a4c0,_0xef5f3c=new ScheduleListCommand(),_0x525daf=program[_0xc75ae2(0x293)](),_0x5df90d=await createTDXInstance(_0x525daf),_0x3c24e2=await _0xef5f3c['run']({'options':{..._0x525daf,..._0x5930b4},'args':_0x4e6dbb?[_0x4e6dbb]:[],'tdx':_0x5df90d});gracefulExit(_0x3c24e2);}),scheduleCmd['command'](a2_0x28a4c0(0x290))[a2_0x28a4c0(0x3e0)]('Show\x20schedule\x20details')[a2_0x28a4c0(0x1e6)](async(_0x32f880,_0x5d5c6d)=>{const _0x4f6006=a2_0x28a4c0,_0x475116=new ScheduleShowCommand(),_0x237854=program[_0x4f6006(0x293)](),_0x5991e8=await createTDXInstance(_0x237854),_0x3be3a9=await _0x475116['run']({'options':{..._0x237854,..._0x5d5c6d},'args':[_0x32f880],'tdx':_0x5991e8});gracefulExit(_0x3be3a9);}),scheduleCmd['command'](a2_0x28a4c0(0x41c))['description'](a2_0x28a4c0(0x229))[a2_0x28a4c0(0x414)](a2_0x28a4c0(0x41e),a2_0x28a4c0(0x3e8))['requiredOption'](a2_0x28a4c0(0x2a9),a2_0x28a4c0(0x314))[a2_0x28a4c0(0x35f)]('--type\x20<type>',a2_0x28a4c0(0x2ef),a2_0x28a4c0(0x391))['option'](a2_0x28a4c0(0x33a),a2_0x28a4c0(0x341))[a2_0x28a4c0(0x35f)]('--timezone\x20<tz>','Timezone\x20for\x20cron\x20(default:\x20UTC)')['option'](a2_0x28a4c0(0x399),'Delay\x20in\x20seconds\x20before\x20execution')['option'](a2_0x28a4c0(0x40e),a2_0x28a4c0(0x31a))['option']('--retry-limit\x20<0~32>',a2_0x28a4c0(0x449))[a2_0x28a4c0(0x35f)]('--engine-version\x20<version>',a2_0x28a4c0(0x27c))['option']('--result\x20<url>',a2_0x28a4c0(0x421))[a2_0x28a4c0(0x1e6)](async(_0x11eff2,_0x58be59)=>{const _0x4421f0=a2_0x28a4c0,_0x60b21a=new ScheduleCreateCommand(),_0x7ec200=program[_0x4421f0(0x293)](),_0x8c7a90=await createTDXInstance(_0x7ec200),_0x253e7a=await _0x60b21a[_0x4421f0(0x3a1)]({'options':{..._0x7ec200,..._0x58be59},'args':[_0x11eff2],'tdx':_0x8c7a90});gracefulExit(_0x253e7a);}),scheduleCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x37b))[a2_0x28a4c0(0x3e0)]('Update\x20a\x20scheduled\x20query')[a2_0x28a4c0(0x35f)]('-d,\x20--database\x20<db>',a2_0x28a4c0(0x3e8))[a2_0x28a4c0(0x35f)]('-f,\x20--file\x20<path>',a2_0x28a4c0(0x314))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x34e),'Query\x20type:\x20trino\x20or\x20hive')['option'](a2_0x28a4c0(0x33a),a2_0x28a4c0(0x341))[a2_0x28a4c0(0x35f)]('--timezone\x20<tz>',a2_0x28a4c0(0x3ff))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x399),a2_0x28a4c0(0x366))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x40e),a2_0x28a4c0(0x31a))[a2_0x28a4c0(0x35f)]('--retry-limit\x20<0~32>',a2_0x28a4c0(0x449))[a2_0x28a4c0(0x35f)]('--engine-version\x20<version>',a2_0x28a4c0(0x27c))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x34c),a2_0x28a4c0(0x421))[a2_0x28a4c0(0x1e6)](async(_0x19daec,_0x38b8e5)=>{const _0x2081a3=a2_0x28a4c0,_0x581922=new ScheduleUpdateCommand(),_0x3e93f0=program[_0x2081a3(0x293)](),_0x391b30=await createTDXInstance(_0x3e93f0),_0x3f17f5=await _0x581922[_0x2081a3(0x3a1)]({'options':{..._0x3e93f0,..._0x38b8e5},'args':[_0x19daec],'tdx':_0x391b30});gracefulExit(_0x3f17f5);}),scheduleCmd[a2_0x28a4c0(0x46f)]('delete\x20<name>')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3fc))[a2_0x28a4c0(0x1e6)](async(_0x360d12,_0x1de683)=>{const _0x58afe1=a2_0x28a4c0,_0x15600e=new ScheduleDeleteCommand(),_0x51bbb9=program[_0x58afe1(0x293)](),_0x4c6501=await createTDXInstance(_0x51bbb9),_0x2ca4c2=await _0x15600e[_0x58afe1(0x3a1)]({'options':{..._0x51bbb9,..._0x1de683},'args':[_0x360d12],'tdx':_0x4c6501});gracefulExit(_0x2ca4c2);}),scheduleCmd[a2_0x28a4c0(0x46f)]('run\x20<name>')['description']('Run\x20a\x20scheduled\x20query\x20immediately')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x420),a2_0x28a4c0(0x3b0))['option'](a2_0x28a4c0(0x230),a2_0x28a4c0(0x2ca))[a2_0x28a4c0(0x1e6)](async(_0x27918c,_0x1326b1)=>{const _0x2f77a8=a2_0x28a4c0,_0x3fcde1=new ScheduleRunCommand(),_0x229f25=program[_0x2f77a8(0x293)](),_0x4d66a7=await createTDXInstance(_0x229f25),_0x16a644=await _0x3fcde1['run']({'options':{..._0x229f25,..._0x1326b1},'args':[_0x27918c],'tdx':_0x4d66a7});gracefulExit(_0x16a644);}),scheduleCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3b6))['description'](a2_0x28a4c0(0x1e7))['option'](a2_0x28a4c0(0x242),a2_0x28a4c0(0x2b9))[a2_0x28a4c0(0x35f)]('--to\x20<n>',a2_0x28a4c0(0x2fb))[a2_0x28a4c0(0x1e6)](async(_0x5e5128,_0x1eb435)=>{const _0x4d363f=a2_0x28a4c0,_0x5899f1=new ScheduleHistoryCommand(),_0x2e5357=program[_0x4d363f(0x293)](),_0x35583d=await createTDXInstance(_0x2e5357),_0xc1c219=await _0x5899f1['run']({'options':{..._0x2e5357,..._0x1eb435},'args':[_0x5e5128],'tdx':_0x35583d});gracefulExit(_0xc1c219);});const llmCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2f4))['description']('LLM\x20operations\x20(models,\x20projects,\x20agents,\x20chat)');llmCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2f3))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x44c))[a2_0x28a4c0(0x1e6)](async(_0x286a98,_0x1c8c62)=>{const _0x40e29c=a2_0x28a4c0,_0xdbc542=new LLMUseCommand(),_0xbd0f0d=program[_0x40e29c(0x293)](),_0x6be29e=await createTDXInstance(_0xbd0f0d),_0xd3bb3e=await _0xdbc542[_0x40e29c(0x3a1)]({'options':{..._0xbd0f0d,..._0x1c8c62},'args':[_0x286a98],'tdx':_0x6be29e});gracefulExit(_0xd3bb3e);}),llmCmd['command']('models')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x44e))[a2_0x28a4c0(0x1e6)](async _0x5c81c0=>{const _0x403204=a2_0x28a4c0,_0x39de18=new LLMModelsCommand(),_0x11e64a=program[_0x403204(0x293)](),_0x4b9243=await createTDXInstance(_0x11e64a),_0x1606f2=await _0x39de18[_0x403204(0x3a1)]({'options':{..._0x11e64a,..._0x5c81c0},'args':[],'tdx':_0x4b9243});gracefulExit(_0x1606f2);});const projectCmd=llmCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x45a))['description'](a2_0x28a4c0(0x3e5)),llmProjectListAction=async(_0x4c2ef4,_0x42fb68)=>{const _0x2e3084=a2_0x28a4c0,_0x14292f=new LLMProjectsCommand(),_0x20ecd5=program[_0x2e3084(0x293)](),_0x1fea6a=await createTDXInstance(_0x20ecd5),_0x22151d=await _0x14292f[_0x2e3084(0x3a1)]({'options':{..._0x20ecd5,..._0x42fb68},'args':_0x4c2ef4?[_0x4c2ef4]:[],'tdx':_0x1fea6a});gracefulExit(_0x22151d);};projectCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))['description'](a2_0x28a4c0(0x3f6))[a2_0x28a4c0(0x1e6)](llmProjectListAction),llmCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x244))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2b4))[a2_0x28a4c0(0x1e6)](llmProjectListAction),projectCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x41c))[a2_0x28a4c0(0x3e0)]('Create\x20a\x20new\x20LLM\x20project')[a2_0x28a4c0(0x35f)]('--description\x20<text>',a2_0x28a4c0(0x2b3))[a2_0x28a4c0(0x1e6)](async(_0x2f7655,_0x6b2f90)=>{const _0x1b2406=a2_0x28a4c0,_0x165d51=new LLMProjectCreateCommand(),_0xbebfe5=program[_0x1b2406(0x293)](),_0x347512=await createTDXInstance(_0xbebfe5),_0x3d314d=await _0x165d51[_0x1b2406(0x3a1)]({'options':{..._0xbebfe5,..._0x6b2f90},'args':[_0x2f7655],'tdx':_0x347512});gracefulExit(_0x3d314d);}),projectCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x454))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x211))['action'](async(_0x365b51,_0x2989d0)=>{const _0x2172e6=a2_0x28a4c0,_0x37520a=new LLMProjectDeleteCommand(),_0x39e935=program['opts'](),_0x4cf684=await createTDXInstance(_0x39e935),_0xa1142f=await _0x37520a[_0x2172e6(0x3a1)]({'options':{..._0x39e935,..._0x2989d0},'args':[_0x365b51],'tdx':_0x4cf684});gracefulExit(_0xa1142f);}),projectCmd['command'](a2_0x28a4c0(0x404))[a2_0x28a4c0(0x3e0)]('[DEPRECATED]\x20Backup\x20project\x20(use\x20`tdx\x20agent\x20pull`\x20instead)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x24e),'Output\x20folder\x20(default:\x20{project_name}.llm)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x208))[a2_0x28a4c0(0x1e6)](async(_0x1e2c62,_0x228613)=>{const _0x52eeb9=a2_0x28a4c0,_0x108f10=new LLMProjectBackupCommand(),_0x24427e=program['opts'](),_0x31f07e=await createTDXInstance(_0x24427e),_0x10d19c=await _0x108f10[_0x52eeb9(0x3a1)]({'options':{..._0x24427e,..._0x228613},'args':[_0x1e2c62],'tdx':_0x31f07e});gracefulExit(_0x10d19c);}),projectCmd['command'](a2_0x28a4c0(0x3de))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x285))['option'](a2_0x28a4c0(0x212),a2_0x28a4c0(0x299))['option'](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x1ef))[a2_0x28a4c0(0x1e6)](async(_0x5011a9,_0x714c67)=>{const _0x159798=a2_0x28a4c0,_0x32e7b1=new LLMProjectRestoreCommand(),_0x2862f4=program[_0x159798(0x293)](),_0x5cc57c=await createTDXInstance(_0x2862f4),_0x3e9923=await _0x32e7b1['run']({'options':{..._0x2862f4,..._0x714c67},'args':[_0x5011a9],'tdx':_0x5cc57c});gracefulExit(_0x3e9923);});const llmAgentListAction=async(_0x2ed195,_0x359dd7)=>{const _0x27383d=a2_0x28a4c0,_0x13fd70=new LLMAgentsCommand(),_0x3b98bd=program[_0x27383d(0x293)](),_0x108cc7=await createTDXInstance(_0x3b98bd),_0xc7d8d1=await _0x13fd70[_0x27383d(0x3a1)]({'options':{..._0x3b98bd,..._0x359dd7},'args':_0x2ed195?[_0x2ed195]:[],'tdx':_0x108cc7});gracefulExit(_0xc7d8d1);};llmCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3ef))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3cf))['action'](llmAgentListAction),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3ef))['description'](a2_0x28a4c0(0x3cf))[a2_0x28a4c0(0x1e6)](llmAgentListAction),llmCmd['command']('history\x20[chat-id]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x396))[a2_0x28a4c0(0x35f)]('--last',a2_0x28a4c0(0x470))[a2_0x28a4c0(0x1e6)](async(_0x225acb,_0x4cecbb)=>{const _0x5e16aa=a2_0x28a4c0,_0x3a7c1e=new LLMHistoryCommand(),_0x4d3b21=program[_0x5e16aa(0x293)](),_0x59df55=await createTDXInstance(_0x4d3b21),_0x121879=await _0x3a7c1e['run']({'options':{..._0x4d3b21,..._0x4cecbb},'args':_0x225acb?[_0x225acb]:[],'tdx':_0x59df55});gracefulExit(_0x121879);});isExperimentalAvailable()&&llmCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3a4))['description'](a2_0x28a4c0(0x241))[a2_0x28a4c0(0x1e6)](async(_0x4968f5,_0x1b7686)=>{const _0x25707a=a2_0x28a4c0,_0x107106=new LLMLogCommand(),_0x13af58=program[_0x25707a(0x293)](),_0x114868=await createTDXInstance(_0x13af58),_0x59fe9b=await _0x107106[_0x25707a(0x3a1)]({'options':{..._0x13af58,..._0x1b7686},'args':[_0x4968f5],'tdx':_0x114868});gracefulExit(_0x59fe9b);});program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x253))['usage'](a2_0x28a4c0(0x271))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x209))['option'](a2_0x28a4c0(0x2d8),a2_0x28a4c0(0x46e))[a2_0x28a4c0(0x35f)]('-r,\x20--resume','Resume\x20a\x20conversation\x20(shows\x20selector)')['option'](a2_0x28a4c0(0x2b2),a2_0x28a4c0(0x2e0))[a2_0x28a4c0(0x36f)]()['allowExcessArguments'](!![])['addHelpText'](a2_0x28a4c0(0x24b),a2_0x28a4c0(0x2c4))[a2_0x28a4c0(0x1e6)](async(_0xa3b671,_0x35396f)=>{const _0x33003c=a2_0x28a4c0,_0x15871f=program[_0x33003c(0x293)](),_0x499d4f=Array[_0x33003c(0x415)](_0xa3b671)?_0xa3b671:[];if(_0x499d4f[0x0]==='statusline'){const _0x29410a=new ClaudeStatuslineCommand(),_0x8eb2a3=await _0x29410a['run']({'options':{..._0x15871f,..._0x35396f},'args':_0x499d4f[_0x33003c(0x3df)](0x1),'tdx':null});gracefulExit(_0x8eb2a3);}if(_0x499d4f[0x0]===_0x33003c(0x345)){const _0x1ee741=new ClaudeUsageCommand(),_0x527e88=await _0x1ee741[_0x33003c(0x3a1)]({'options':{..._0x15871f,..._0x35396f},'args':_0x499d4f['slice'](0x1),'tdx':null});gracefulExit(_0x527e88);}const _0x144282=new ClaudeCommand(),_0x9cc84c=await createTDXInstance(_0x15871f),_0x38bb49=await _0x144282[_0x33003c(0x3a1)]({'options':{..._0x15871f,..._0x35396f},'args':_0x499d4f,'tdx':_0x9cc84c});gracefulExit(_0x38bb49);}),program[a2_0x28a4c0(0x46f)]('use\x20[resource]\x20[value]')['description'](a2_0x28a4c0(0x402))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x322),a2_0x28a4c0(0x1ee))['option']('--default',a2_0x28a4c0(0x451))['action'](async(_0x2f5c36,_0x170c09,_0x44191d)=>{const _0x54141b=a2_0x28a4c0,_0x2a5d11=new UseCommand(),_0x53c9f3=program[_0x54141b(0x293)](),_0x24e1e1=[];if(_0x2f5c36)_0x24e1e1[_0x54141b(0x39e)](_0x2f5c36);if(_0x170c09)_0x24e1e1['push'](_0x170c09);const _0x2e50d1=_0x2f5c36===_0x54141b(0x297),_0xd20194=_0x2e50d1?await createTDXInstance(_0x53c9f3):null,_0x4ecc01=await _0x2a5d11[_0x54141b(0x3a1)]({'options':{..._0x53c9f3,..._0x44191d},'args':_0x24e1e1,'tdx':_0xd20194});gracefulExit(_0x4ecc01);}),program[a2_0x28a4c0(0x46f)]('status')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x315))[a2_0x28a4c0(0x1e6)](async _0x3be4ca=>{const _0x1b3606=a2_0x28a4c0,_0xec8ae6=new StatusCommand(),_0x204d0b=program[_0x1b3606(0x293)](),_0xbfbae4=await createTDXInstance(_0x204d0b),_0x454823=await _0xec8ae6[_0x1b3606(0x3a1)]({'options':{..._0x204d0b,..._0x3be4ca},'args':[],'tdx':_0xbfbae4});gracefulExit(_0x454823);}),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2f5))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x469))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x33b),a2_0x28a4c0(0x42f))[a2_0x28a4c0(0x1e6)](async(_0x4c3139,_0x1d0795)=>{const _0x43b1da=a2_0x28a4c0,_0x210ba9=new UnsetCommand(),_0x25895e=program[_0x43b1da(0x293)](),_0x11ee54=await _0x210ba9['run']({'options':{..._0x25895e,..._0x1d0795},'args':[_0x4c3139],'tdx':null});gracefulExit(_0x11ee54);}),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x39d))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1d3))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x32e),a2_0x28a4c0(0x22b))[a2_0x28a4c0(0x1e6)](async _0x41a4f3=>{const _0x2a353d=a2_0x28a4c0,_0x5f25b2=new ChatsCommand(),_0x309cd6=program['opts'](),_0x56ebea=await createTDXInstance(_0x309cd6),_0x21d7de=await _0x5f25b2[_0x2a353d(0x3a1)]({'options':{..._0x309cd6,..._0x41a4f3},'args':[],'tdx':_0x56ebea});gracefulExit(_0x21d7de);});const authCmd=program['command']('auth')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x407));async function runAuthStatusCommand(_0x424c5f){const _0x54892d=a2_0x28a4c0,_0x19ef9f=new AuthStatusCommand(),_0x1648ab=program[_0x54892d(0x293)](),_0x644ccf=await createTDXInstance(_0x1648ab),_0x4cf5f7=await _0x19ef9f[_0x54892d(0x3a1)]({'options':{..._0x1648ab,..._0x424c5f},'args':[],'tdx':_0x644ccf});gracefulExit(_0x4cf5f7);}authCmd[a2_0x28a4c0(0x1e6)](runAuthStatusCommand),authCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x269))['description']('Show\x20authentication\x20status\x20and\x20validate\x20API\x20key')[a2_0x28a4c0(0x1e6)](runAuthStatusCommand),authCmd['command'](a2_0x28a4c0(0x371))['description'](a2_0x28a4c0(0x442))['addHelpText']('after',a2_0x28a4c0(0x273))['action'](async _0x422fa3=>{const _0xc5502e=a2_0x28a4c0,_0x30554d=new AuthSetupCommand(),_0x206841=program['opts'](),_0x50b980=await createTDXInstance(_0x206841),_0x46dc66=await _0x30554d[_0xc5502e(0x3a1)]({'options':{..._0x206841,..._0x422fa3},'args':[],'tdx':_0x50b980});gracefulExit(_0x46dc66);}),authCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x42a))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x216))[a2_0x28a4c0(0x30b)](a2_0x28a4c0(0x24b),'\x0aGlobal\x20Options:\x0a\x20\x20--profile\x20<name>\x20\x20\x20Profile\x20to\x20clear\x20(clears\x20default\x20profile\x20if\x20not\x20specified)\x0a\x0aExamples:\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Clear\x20API\x20key\x20for\x20default\x20profile\x0a\x20\x20$\x20tdx\x20auth\x20clear\x20--profile\x20prod\x20\x20#\x20Clear\x20API\x20key\x20for\x20\x27prod\x27\x20profile\x0a')[a2_0x28a4c0(0x1e6)](async _0x13ae04=>{const _0x2493f1=a2_0x28a4c0,_0x2bc590=new AuthClearCommand(),_0x3bde91=program[_0x2493f1(0x293)](),_0x5f1d8e=await _0x2bc590['run']({'options':{..._0x3bde91,..._0x13ae04},'args':[],'tdx':null});gracefulExit(_0x5f1d8e);});const userCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x295))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x304)),userListAction=async _0x11d941=>{const _0x4d9881=a2_0x28a4c0,_0x428bf5=new UserListCommand(),_0x4527f4=program[_0x4d9881(0x293)](),_0x26b1cb=await createTDXInstance(_0x4527f4),_0x41d4ea=await _0x428bf5[_0x4d9881(0x3a1)]({'options':{..._0x4527f4,..._0x11d941},'args':[],'tdx':_0x26b1cb});gracefulExit(_0x41d4ea);};userCmd['action'](async _0x3983d7=>{const _0x3aef7a=a2_0x28a4c0,_0x44ab53=new UserCommand(),_0x2d67bf=program['opts'](),_0x4318d3=await createTDXInstance(_0x2d67bf),_0x2ed8bd=await _0x44ab53[_0x3aef7a(0x3a1)]({'options':{..._0x2d67bf,..._0x3983d7},'args':[],'tdx':_0x4318d3});gracefulExit(_0x2ed8bd);}),userCmd['command']('list')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x331))[a2_0x28a4c0(0x1e6)](userListAction),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x445))[a2_0x28a4c0(0x3e0)]('List\x20all\x20users\x20(alias\x20for\x20\x22user\x20list\x22)')[a2_0x28a4c0(0x1e6)](userListAction),program[a2_0x28a4c0(0x46f)]('profiles')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2ea))['action'](async _0x445ca0=>{const _0x5e6bfa=a2_0x28a4c0,_0x5a7e4a=new ProfilesCommand(),_0x32ad88=program[_0x5e6bfa(0x293)](),_0x187cad=await _0x5a7e4a[_0x5e6bfa(0x3a1)]({'options':{..._0x32ad88,..._0x445ca0},'args':[],'tdx':null});gracefulExit(_0x187cad);});const profileCmd=program[a2_0x28a4c0(0x46f)]('profile')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2ac));profileCmd['action'](()=>{const _0x39e4d4=a2_0x28a4c0;profileCmd[_0x39e4d4(0x3a2)]();});const profileListAction=async _0x2311a9=>{const _0x42228d=a2_0x28a4c0,_0x54aef3=new ProfilesCommand(),_0x350b0c=program[_0x42228d(0x293)](),_0x1f54bd=await _0x54aef3[_0x42228d(0x3a1)]({'options':{..._0x350b0c,..._0x2311a9},'args':[],'tdx':null});gracefulExit(_0x1f54bd);};profileCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x379))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2ea))[a2_0x28a4c0(0x1e6)](profileListAction),profileCmd[a2_0x28a4c0(0x46f)]('create\x20[name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x284))[a2_0x28a4c0(0x30b)](a2_0x28a4c0(0x24b),a2_0x28a4c0(0x444))[a2_0x28a4c0(0x1e6)](async(_0x32dd6d,_0x2fba50)=>{const _0x45c854=a2_0x28a4c0,_0x2c64ae=new ProfileCreateCommand(),_0x46ee55=program['opts'](),_0x376a24=await _0x2c64ae[_0x45c854(0x3a1)]({'options':{..._0x46ee55,..._0x2fba50},'args':_0x32dd6d?[_0x32dd6d]:[],'tdx':null});gracefulExit(_0x376a24);}),profileCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x456))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x356))['addHelpText']('after',a2_0x28a4c0(0x3a5))[a2_0x28a4c0(0x1e6)](async(_0x128508,_0xf0ec8c)=>{const _0x5af4ad=new ProfileRemoveCommand(),_0x300596=program['opts'](),_0x211f17=await _0x5af4ad['run']({'options':{..._0x300596,..._0xf0ec8c},'args':[_0x128508],'tdx':null});gracefulExit(_0x211f17);}),profileCmd[a2_0x28a4c0(0x46f)]('set\x20<key=value>')[a2_0x28a4c0(0x3e0)]('Set\x20a\x20profile\x20configuration\x20value')[a2_0x28a4c0(0x30b)]('after',a2_0x28a4c0(0x2e3))[a2_0x28a4c0(0x1e6)](async(_0x32266d,_0x5a1af4)=>{const _0x31e9a6=a2_0x28a4c0,_0x3872e3=new ProfileSetCommand(),_0x49ea15=program[_0x31e9a6(0x293)](),_0x3694a6=await _0x3872e3[_0x31e9a6(0x3a1)]({'options':{..._0x49ea15,..._0x5a1af4},'args':[_0x32266d],'tdx':null});gracefulExit(_0x3694a6);}),profileCmd['command'](a2_0x28a4c0(0x28b))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x317))[a2_0x28a4c0(0x35f)]('--default',a2_0x28a4c0(0x451))['addHelpText']('after',a2_0x28a4c0(0x368))[a2_0x28a4c0(0x1e6)](async(_0x286deb,_0x13ec9f)=>{const _0x38e705=a2_0x28a4c0,_0x37f6ef=new ProfileUseCommand(),_0x377161=program[_0x38e705(0x293)](),_0x2147e8=await _0x37f6ef[_0x38e705(0x3a1)]({'options':{..._0x377161,..._0x13ec9f},'args':[_0x286deb],'tdx':null});gracefulExit(_0x2147e8);});const engageCmd=program[a2_0x28a4c0(0x46f)]('engage')[a2_0x28a4c0(0x3e0)]('Engage\x20operations\x20(campaigns,\x20templates,\x20workspaces)'),createEngageAction=_0xef7751=>{return async(_0xcb9ec5,_0x3f5182)=>{const _0x201c40=a2_0xf64d,_0x2522b1=new _0xef7751(),_0x37d44e=program[_0x201c40(0x293)](),_0x1c9f56=await createTDXInstance(_0x37d44e),_0x9ea352=await _0x2522b1[_0x201c40(0x3a1)]({'options':{..._0x37d44e,..._0x3f5182},'args':[_0xcb9ec5],'tdx':_0x1c9f56});gracefulExit(_0x9ea352);};},createEngageNoArgAction=_0x2f3140=>{return async _0xbe5acf=>{const _0x552cd1=a2_0xf64d,_0x12123b=new _0x2f3140(),_0x402c47=program[_0x552cd1(0x293)](),_0x4910c5=await createTDXInstance(_0x402c47),_0x40b090=await _0x12123b['run']({'options':{..._0x402c47,..._0xbe5acf},'args':[],'tdx':_0x4910c5});gracefulExit(_0x40b090);};},campaignCmd=engageCmd[a2_0x28a4c0(0x46f)]('campaign')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x24d)),campaignListAction=async(_0xe732fd,_0x2b6584)=>{const _0x581fdd=a2_0x28a4c0,_0x47b887=new EngageCampaignsCommand(),_0x5497eb=program[_0x581fdd(0x293)](),_0x4373c7=await createTDXInstance(_0x5497eb),_0x53fdbe=await _0x47b887['run']({'options':{..._0x5497eb,..._0x2b6584},'args':_0xe732fd?[_0xe732fd]:[],'tdx':_0x4373c7});gracefulExit(_0x53fdbe);};campaignCmd['command'](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x280))['option'](a2_0x28a4c0(0x34e),a2_0x28a4c0(0x459))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bd),a2_0x28a4c0(0x1f1))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),'Workspace\x20name')['action'](campaignListAction),engageCmd['command'](a2_0x28a4c0(0x38a))['description'](a2_0x28a4c0(0x35c))['option']('--type\x20<type>','Filter\x20by\x20campaign\x20type\x20(email,\x20push)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2bd),a2_0x28a4c0(0x1f1))['option'](a2_0x28a4c0(0x3aa),'Workspace\x20name')[a2_0x28a4c0(0x1e6)](campaignListAction),campaignCmd[a2_0x28a4c0(0x46f)]('show\x20<name-or-id>')[a2_0x28a4c0(0x3e0)]('Show\x20campaign\x20details')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x35f)]('--full',a2_0x28a4c0(0x28f))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignShowCommand)),campaignCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x452))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x378))[a2_0x28a4c0(0x414)]('--name\x20<name>',a2_0x28a4c0(0x218))['requiredOption'](a2_0x28a4c0(0x34e),a2_0x28a4c0(0x45b))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x2fc))[a2_0x28a4c0(0x35f)]('--description\x20<desc>',a2_0x28a4c0(0x214))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x312),a2_0x28a4c0(0x411))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1e5),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2dc),a2_0x28a4c0(0x448))['option']('--start-at\x20<datetime>',a2_0x28a4c0(0x37f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x321),a2_0x28a4c0(0x2ad))[a2_0x28a4c0(0x1e6)](createEngageNoArgAction(EngageCampaignCreateCommand)),campaignCmd['command'](a2_0x28a4c0(0x1dd))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x279))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2af),a2_0x28a4c0(0x412))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d4),a2_0x28a4c0(0x214))[a2_0x28a4c0(0x35f)]('--segment\x20<path>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)')['option'](a2_0x28a4c0(0x1e5),'Email\x20sender\x20ID\x20for\x20delivery')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2dc),a2_0x28a4c0(0x448))['option']('--start-at\x20<datetime>',a2_0x28a4c0(0x37f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x321),a2_0x28a4c0(0x2ad))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignUpdateCommand)),campaignCmd['command']('delete\x20<name-or-id>')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x20b))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),'Workspace\x20name')[a2_0x28a4c0(0x35f)]('--yes','Skip\x20confirmation\x20prompt')[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignDeleteCommand)),campaignCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x32a))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x286))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignLaunchCommand)),campaignCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x342))['description']('Pause\x20a\x20campaign')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),'Workspace\x20name')[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignPauseCommand)),campaignCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x23c))[a2_0x28a4c0(0x3e0)]('Resume\x20a\x20paused\x20campaign')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))['action'](createEngageAction(EngageCampaignResumeCommand)),campaignCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x21b))['description'](a2_0x28a4c0(0x1e0))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageCampaignDuplicateCommand));const templateCmd=engageCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2c3))[a2_0x28a4c0(0x3e0)]('Email\x20template\x20management'),templateListAction=async(_0x337d54,_0x43261a)=>{const _0x3fe8dc=a2_0x28a4c0,_0x33ecd8=new EngageTemplatesCommand(),_0x3e4c79=program[_0x3fe8dc(0x293)](),_0x3545fc=await createTDXInstance(_0x3e4c79),_0x379392=await _0x33ecd8['run']({'options':{..._0x3e4c79,..._0x43261a},'args':_0x337d54?[_0x337d54]:[],'tdx':_0x3545fc});gracefulExit(_0x379392);};templateCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x42b))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x1e6)](templateListAction),engageCmd[a2_0x28a4c0(0x46f)]('templates\x20[pattern]')['description']('List\x20email\x20templates\x20(alias\x20for\x20\x22template\x20list\x22)')[a2_0x28a4c0(0x35f)]('--workspace\x20<name>',a2_0x28a4c0(0x3bd))['action'](templateListAction),templateCmd['command'](a2_0x28a4c0(0x21a))['description'](a2_0x28a4c0(0x332))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3cc),a2_0x28a4c0(0x28f))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageTemplateShowCommand)),templateCmd['command']('create')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3b8))['requiredOption'](a2_0x28a4c0(0x2af),a2_0x28a4c0(0x223))['requiredOption'](a2_0x28a4c0(0x22e),a2_0x28a4c0(0x3ea))[a2_0x28a4c0(0x414)]('--html\x20<html>',a2_0x28a4c0(0x31c))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x2fc))[a2_0x28a4c0(0x35f)]('--plaintext\x20<text>',a2_0x28a4c0(0x3fe))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2dd),'Editor\x20type:\x20beefree\x20(Visual\x20Editor,\x20default)\x20or\x20grapesjs\x20(HTML\x20Editor)',_0x1fd4b2=>{const _0x50b81c=a2_0x28a4c0;if(![_0x50b81c(0x367),_0x50b81c(0x25e)][_0x50b81c(0x3a7)](_0x1fd4b2))throw new SDKError(ErrorCode[_0x50b81c(0x291)],'Invalid\x20editor\x20type:\x20'+_0x1fd4b2+_0x50b81c(0x31f));return _0x1fd4b2;})[a2_0x28a4c0(0x1e6)](createEngageNoArgAction(EngageTemplateCreateCommand)),templateCmd['command'](a2_0x28a4c0(0x1dd))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x310))['option'](a2_0x28a4c0(0x3aa),'Workspace\x20name')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2af),a2_0x28a4c0(0x2d4))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x22e),a2_0x28a4c0(0x3ea))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x373),a2_0x28a4c0(0x31c))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x319),a2_0x28a4c0(0x3fe))['action'](createEngageAction(EngageTemplateUpdateCommand)),templateCmd['command'](a2_0x28a4c0(0x2e9))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x2de))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3aa),a2_0x28a4c0(0x3bd))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x313),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageTemplateDeleteCommand));const workspaceCmd=engageCmd[a2_0x28a4c0(0x46f)]('workspace')['description'](a2_0x28a4c0(0x2df)),workspaceListAction=async(_0x113f9f,_0x3a88a5)=>{const _0x157d9a=a2_0x28a4c0,_0x2cfb79=new EngageWorkspacesCommand(),_0x5db040=program['opts'](),_0xea9705=await createTDXInstance(_0x5db040),_0xf8c5b3=await _0x2cfb79[_0x157d9a(0x3a1)]({'options':{..._0x5db040,..._0x3a88a5},'args':_0x113f9f?[_0x113f9f]:[],'tdx':_0xea9705});gracefulExit(_0xf8c5b3);};workspaceCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))['description'](a2_0x28a4c0(0x3d5))[a2_0x28a4c0(0x1e6)](workspaceListAction),engageCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x39a))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x347))[a2_0x28a4c0(0x1e6)](workspaceListAction),workspaceCmd['command'](a2_0x28a4c0(0x21a))[a2_0x28a4c0(0x3e0)]('Show\x20workspace\x20details')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3cc),'Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields')[a2_0x28a4c0(0x1e6)](createEngageAction(EngageWorkspaceShowCommand)),workspaceCmd[a2_0x28a4c0(0x46f)]('create')[a2_0x28a4c0(0x3e0)]('Create\x20a\x20workspace')['requiredOption'](a2_0x28a4c0(0x2af),'Workspace\x20name')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x1d4),a2_0x28a4c0(0x3a3))[a2_0x28a4c0(0x1e6)](createEngageNoArgAction(EngageWorkspaceCreateCommand)),workspaceCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x1dd))['description'](a2_0x28a4c0(0x3c5))['option']('--name\x20<name>',a2_0x28a4c0(0x1f6))['option'](a2_0x28a4c0(0x1d4),'Workspace\x20description')[a2_0x28a4c0(0x1e6)](createEngageAction(EngageWorkspaceUpdateCommand)),workspaceCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2e9))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x362))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x313),'Skip\x20confirmation\x20prompt')[a2_0x28a4c0(0x1e6)](createEngageAction(EngageWorkspaceDeleteCommand)),workspaceCmd['command']('use\x20<name>')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x374))[a2_0x28a4c0(0x1e6)](createEngageAction(EngageWorkspaceUseCommand));const connectionCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3f0))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3a6)),connectionListAction=async _0x2dc395=>{const _0x24cb3c=a2_0x28a4c0,_0x49ae52=new ConnectionListCommand(),_0x51edea=program[_0x24cb3c(0x293)](),_0x3fb3fe=await createTDXInstance(_0x51edea),_0x5185d5=await _0x49ae52[_0x24cb3c(0x3a1)]({'options':{..._0x51edea,..._0x2dc395},'args':[],'tdx':_0x3fb3fe});gracefulExit(_0x5185d5);};connectionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x379))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x213))['action'](connectionListAction),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3d7),{'hidden':!![]})[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3dd))[a2_0x28a4c0(0x1e6)](connectionListAction),connectionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x290))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x41d))['action'](async(_0x1cee0a,_0x440e1c)=>{const _0x45725c=a2_0x28a4c0,_0x58579e=new ConnectionShowCommand(),_0x101aec=program[_0x45725c(0x293)](),_0x8698bf=await createTDXInstance(_0x101aec),_0x1a8e67=await _0x58579e[_0x45725c(0x3a1)]({'options':{..._0x101aec,..._0x440e1c},'args':[_0x1cee0a],'tdx':_0x8698bf});gracefulExit(_0x1a8e67);}),connectionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x23b))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x358))[a2_0x28a4c0(0x1e6)](async(_0x1e4b84,_0x4b1474)=>{const _0x42a735=a2_0x28a4c0,_0x1f3817=new ConnectionSchemaCommand(),_0x2af840=program[_0x42a735(0x293)](),_0xa7db8b=await createTDXInstance(_0x2af840),_0x3c0f87=await _0x1f3817[_0x42a735(0x3a1)]({'options':{..._0x2af840,..._0x4b1474},'args':[_0x1e4b84],'tdx':_0xa7db8b});gracefulExit(_0x3c0f87);}),connectionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x323))['description'](a2_0x28a4c0(0x255))[a2_0x28a4c0(0x1e6)](async _0x32ec7c=>{const _0x5c3df8=a2_0x28a4c0,_0x5e4c54=new ConnectionTypesCommand(),_0x59bc32=program[_0x5c3df8(0x293)](),_0x238bc3=await createTDXInstance(_0x59bc32),_0x4cbfcf=await _0x5e4c54[_0x5c3df8(0x3a1)]({'options':{..._0x59bc32,..._0x32ec7c},'args':[],'tdx':_0x238bc3});gracefulExit(_0x4cbfcf);}),connectionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x28e))[a2_0x28a4c0(0x3e0)]('Show\x20connection-level\x20settings\x20(credentials,\x20authentication)')[a2_0x28a4c0(0x1e6)](async(_0x1b6a01,_0x5b85fa)=>{const _0x3aed91=a2_0x28a4c0,_0x584163=new ConnectionSettingsCommand(),_0x48e98d=program[_0x3aed91(0x293)](),_0x4ded0a=await createTDXInstance(_0x48e98d),_0x242193=await _0x584163[_0x3aed91(0x3a1)]({'options':{..._0x48e98d,..._0x5b85fa},'args':[_0x1b6a01],'tdx':_0x4ded0a});gracefulExit(_0x242193);});const journeyCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x262))['description'](a2_0x28a4c0(0x29a)),journeyListAction=async(_0x11a3ff,_0x405368)=>{const _0x4e1db7=a2_0x28a4c0,_0x38f2a2=new JourneyListCommand(),_0x1eaa72=program[_0x4e1db7(0x293)](),_0x345ebd=await createTDXInstance(_0x1eaa72),_0x23afa6=await _0x38f2a2['run']({'options':{..._0x1eaa72,..._0x405368},'args':_0x11a3ff?[_0x11a3ff]:[],'tdx':_0x345ebd});gracefulExit(_0x23afa6);};journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x247))['action'](journeyListAction),journeyCmd['command'](a2_0x28a4c0(0x406))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x346))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x43b),a2_0x28a4c0(0x3ac))[a2_0x28a4c0(0x35f)]('--include-stats',a2_0x28a4c0(0x3fa))['action'](async(_0x42de02,_0x5b2030)=>{const _0x57d455=a2_0x28a4c0,_0x29315c=new JourneyViewCommand(),_0x227c4c=program[_0x57d455(0x293)](),_0x289f7c=await createTDXInstance(_0x227c4c),_0x2a3cce=await _0x29315c[_0x57d455(0x3a1)]({'options':{..._0x227c4c,..._0x5b2030},'args':[_0x42de02],'tdx':_0x289f7c});gracefulExit(_0x2a3cce);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x2a3))['description'](a2_0x28a4c0(0x46d))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x2f8),a2_0x28a4c0(0x1db))['option'](a2_0x28a4c0(0x388),'Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x40f),a2_0x28a4c0(0x460))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3db),a2_0x28a4c0(0x3c2))['action'](async(_0x533ec1,_0x5eac98)=>{const _0x344b41=a2_0x28a4c0,_0x24fa46=new JourneyStatsCommand(),_0x2d5bf1=program[_0x344b41(0x293)](),_0x488f3b=await createTDXInstance(_0x2d5bf1),_0xf7ef88=await _0x24fa46['run']({'options':{..._0x2d5bf1,..._0x5eac98},'args':[_0x533ec1],'tdx':_0x488f3b});gracefulExit(_0xf7ef88);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x1fa))['description']('Get\x20journey\x20traffic\x20data\x20(Sankey\x20charts)')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x34e),a2_0x28a4c0(0x27e))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x388),a2_0x28a4c0(0x20f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x40f),a2_0x28a4c0(0x460))['option'](a2_0x28a4c0(0x3ba),a2_0x28a4c0(0x3c8),_0x4a6f39=>{const _0x4dc780=a2_0x28a4c0,_0x459393=parseInt(_0x4a6f39,0xa);if(isNaN(_0x459393))throw new Error(_0x4dc780(0x3bc)+_0x4a6f39+'\x22.\x20Must\x20be\x20a\x20number.');return _0x459393;})['action'](async(_0x23e568,_0x87a2aa)=>{const _0x45b9a8=a2_0x28a4c0,_0x53f1ad=new JourneyTrafficCommand(),_0x53635d=program[_0x45b9a8(0x293)](),_0x285e5c=await createTDXInstance(_0x53635d),_0x2ee24a=await _0x53f1ad[_0x45b9a8(0x3a1)]({'options':{..._0x53635d,..._0x87a2aa},'args':[_0x23e568],'tdx':_0x285e5c});gracefulExit(_0x2ee24a);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x1e2))['description'](a2_0x28a4c0(0x24c))[a2_0x28a4c0(0x1e6)](async(_0x1d67b9,_0xc05dbe)=>{const _0x47a5b8=new JourneyPauseCommand(),_0x47d2a8=program['opts'](),_0x106e8f=await createTDXInstance(_0x47d2a8),_0x56329a=await _0x47a5b8['run']({'options':{..._0x47d2a8,..._0xc05dbe},'args':[_0x1d67b9],'tdx':_0x106e8f});gracefulExit(_0x56329a);}),journeyCmd['command'](a2_0x28a4c0(0x354))['description']('Resume\x20a\x20paused\x20journey')[a2_0x28a4c0(0x1e6)](async(_0x3eecba,_0x36cd82)=>{const _0x5bc1a5=a2_0x28a4c0,_0x3841b7=new JourneyResumeCommand(),_0x10addd=program[_0x5bc1a5(0x293)](),_0x4e99ff=await createTDXInstance(_0x10addd),_0x367726=await _0x3841b7[_0x5bc1a5(0x3a1)]({'options':{..._0x10addd,..._0x36cd82},'args':[_0x3eecba],'tdx':_0x4e99ff});gracefulExit(_0x367726);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x3ee))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x38c))['option']('-y,\x20--yes','Skip\x20confirmation\x20prompt')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x41a))['action'](async(_0x191324,_0x287654)=>{const _0x5d0db6=a2_0x28a4c0,_0x4122f2=new JourneyPullCommand(),_0x64cd17=program[_0x5d0db6(0x293)](),_0x42b3bc=await createTDXInstance(_0x64cd17),_0x3778f7=await _0x4122f2['run']({'options':{..._0x64cd17,..._0x287654},'args':_0x191324?[_0x191324]:[],'tdx':_0x42b3bc});gracefulExit(_0x3778f7);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x425))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x3ce))[a2_0x28a4c0(0x1e6)](async(_0xc21fde,_0x51b8d6)=>{const _0x117b1c=a2_0x28a4c0,_0x486aaf=new JourneyPushCommand(),_0x47e7a3=program[_0x117b1c(0x293)](),_0x5b6877=await createTDXInstance(_0x47e7a3),_0x405028=await _0x486aaf[_0x117b1c(0x3a1)]({'options':{..._0x47e7a3,..._0x51b8d6},'args':_0xc21fde?[_0xc21fde]:[],'tdx':_0x5b6877});gracefulExit(_0x405028);}),journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x45c))['description'](a2_0x28a4c0(0x235))[a2_0x28a4c0(0x1e6)](async(_0x4b7858,_0x442201)=>{const _0x28d7dd=a2_0x28a4c0,_0x4ba344=new JourneyColumnsCommand(),_0x20fa64=program[_0x28d7dd(0x293)](),_0x24d0f9=await createTDXInstance(_0x20fa64),_0x7f3ab6=await _0x4ba344[_0x28d7dd(0x3a1)]({'options':{..._0x20fa64,..._0x442201},'args':[_0x4b7858],'tdx':_0x24d0f9});gracefulExit(_0x7f3ab6);}),journeyCmd['command']('activations\x20<name-or-path>')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1da))[a2_0x28a4c0(0x1e6)](async(_0x34345,_0x39b308)=>{const _0x1b58fe=a2_0x28a4c0,_0x29dd44=new JourneyActivationsCommand(),_0x1d2707=program[_0x1b58fe(0x293)](),_0xaaea5f=await createTDXInstance(_0x1d2707),_0x28ebd5=await _0x29dd44[_0x1b58fe(0x3a1)]({'options':{..._0x1d2707,..._0x39b308},'args':[_0x34345],'tdx':_0xaaea5f});gracefulExit(_0x28ebd5);}),journeyCmd['command'](a2_0x28a4c0(0x3af))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x27f))[a2_0x28a4c0(0x1e6)](async(_0x1982dc,_0x5db32b)=>{const _0x1a055b=new JourneyVersionsCommand(),_0x5ea33d=program['opts'](),_0x593faf=await createTDXInstance(_0x5ea33d),_0x26a5f6=await _0x1a055b['run']({'options':{..._0x5ea33d,..._0x5db32b},'args':[_0x1982dc],'tdx':_0x593faf});gracefulExit(_0x26a5f6);});const journeyVersionCmd=journeyCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x264))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x202));function a2_0x1b8a(){const _0x25d02a=['run','outputHelp','Workspace\x20description','log\x20<chat-id>','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20remove\x20staging\x20\x20\x20\x20\x20\x20#\x20Remove\x20the\x20\x27staging\x27\x20profile\x0a','Data\x20connection\x20management\x20(for\x20activations/exports)','includes','--attempt-id\x20<id>','padEnd','--workspace\x20<name>','json','Open\x20journey\x20in\x20web\x20browser','--revision\x20<revision>','CDP\x20segment\x20management\x20commands','versions\x20<name-or-path>','Scheduled\x20time\x20(ISO\x208601\x20format,\x20defaults\x20to\x20now)','--enriched','name','Folder\x20name\x20for\x20organization','pull\x20<project>\x20[target-dir]','commandUsage','history\x20<name>','\x20-\x20built\x20','Create\x20an\x20email\x20template','forEach','--limit\x20<number>','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20table\x20pattern)','Invalid\x20--limit\x20value:\x20\x22','Workspace\x20name','tsv','create\x20<segment_name>','Change\x20to\x20directory\x20before\x20executing\x20command','isDirectory','Include\x20raw\x20history\x20data\x20in\x20output','--starter-message\x20<text>','Parent\x20folder\x20name\x20for\x20nested\x20folders','Update\x20a\x20workspace','Run\x20tests\x20with\x20specific\x20tags\x20(comma-separated)','configureHelp','Maximum\x20number\x20of\x20nodes','clone\x20[source-dir]','Show\x20folder\x20details\x20(use\x20parent_name/folder_name)','-v,\x20--verbose','--full','[action]','Push\x20journey\x20YAML\x20files\x20to\x20Treasure\x20Data','List\x20agents\x20in\x20current\x20project\x20(alias\x20for\x20\x22agent\x20list\x22)','Workflow\x20session\x20management','validate\x20[file]','--site\x20<site>','--database\x20<db>','--add-attributes\x20<json>','List\x20workspaces\x20(optionally\x20filtered\x20by\x20pattern)','Maximum\x20recursion\x20depth\x20(default:\x2010)','connections','Start\x20a\x20new\x20chat\x20session','information_schema','List\x20all\x20workflow\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--include-history','argumentTerm','List\x20all\x20data\x20connections\x20(alias\x20for\x20\x22connection\x20list\x22)','restore\x20<folder>','slice','description','sql\x20[segment_name]','site','Resume\x20from\x20specific\x20task','profile','LLM\x20project\x20management','jsonl','buildTime','Database\x20name','--model\x20<name>','Email\x20subject\x20template','parents\x20[pattern]','Disable\x20ANSI\x20color\x20output\x20(also\x20respects\x20NO_COLOR\x20env\x20var)','-d,\x20--database\x20<name>','pull\x20[name]','agents\x20[pattern]','connection','337dwqSoG','Show\x20timeline\x20for\x20specific\x20session\x20(uses\x20last\x20attempt)','fields\x20[name]','split','TD_INTERVAL\x20time\x20range\x20for\x20behavior\x20queries\x20(e.g.,\x20-1d,\x20-7d,\x20-30d)','List\x20all\x20LLM\x20projects\x20(optionally\x20filtered\x20by\x20pattern)','Show\x20enriched\x20master\x20sample\x20data\x20(master\x20+\x20all\x20attributes\x20joined)','List\x20folders\x20and\x20segments\x20(alias\x20for\x20\x22segment\x20list\x22)','Specific\x20revision\x20to\x20download\x20(default:\x20latest)','Include\x20execution\x20statistics','Custom\x20revision\x20name\x20(default:\x20timestamp)','Delete\x20a\x20scheduled\x20query','Parent\x20segment\x20management','Plaintext\x20template\x20content','Timezone\x20for\x20cron','List\x20jobs\x20(alias\x20for\x20\x22job\x20list\x22)','Agent\x20reference\x20(project/agent\x20or\x20just\x20agent\x20if\x20llm_project\x20is\x20set)','Show\x20or\x20set\x20session-level\x20context\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','Skip\x20confirmation\x20prompts','backup\x20<name>','Overwrite\x20local\x20changes\x20without\x20confirmation','view\x20<name-or-path>','Authentication\x20management','6372832HVCytU','test\x20[path]','query\x20[sql]','-f,\x20--force','desc','submit\x20[query]','--priority\x20<-2~2>','--to\x20<date>','--catalog\x20<catalog>','Segment\x20path\x20(e.g.,\x20\x22Audience/Segment\x22\x20or\x20just\x20\x22Segment\x22)','New\x20campaign\x20name','Workflow\x20parameter\x20(repeatable)','requiredOption','isArray','options','parent','list\x20[pattern]','List\x20tables\x20(alias\x20for\x20\x22table\x20list\x22)','Show\x20what\x20would\x20be\x20done\x20without\x20writing\x20files','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20name\x20omitted)','create\x20<name>','Show\x20connection\x20details\x20by\x20name','-d,\x20--database\x20<db>','System\x20prompt/instructions\x20(default:\x20empty)','--time\x20<iso8601>','Result\x20output\x20destination\x20URL','colorFn','folder','describe\x20[table]','push\x20[target]','Get\x20job\x20results','sql\x20[name]','Delete\x20a\x20secret\x20from\x20a\x20project\x20(format:\x20[project]\x20<key>)','Force\x20retry\x20even\x20if\x20not\x20failed','clear','List\x20email\x20templates\x20(optionally\x20filtered\x20by\x20pattern)','Add\x20behaviors\x20as\x20JSON\x20string','Agent\x20prompt/instructions','List\x20available\x20fields\x20for\x20segmentation\x20(uses\x20context\x20if\x20parent_name\x20not\x20provided)','Clear\x20default\x20from\x20config\x20(~/.config/tdx/tdx.json)','agent','activations\x20<segment_name>','get','Output\x20file\x20path\x20(default:\x20<name>.yml)','Skip\x20confirmation\x20prompt','attempt:','--include-subtasks','flags','List\x20all\x20databases\x20(alias\x20for\x20\x22database\x20list\x22)','Updated\x20filtering\x20rule\x20as\x20JSON\x20string','then','-w,\x20--web','length','flatMap','chdir','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Session\x20ID\x20to\x20use\x20(defaults\x20to\x20TDX_SESSION\x20env\x20var\x20or\x20parent\x20PID)','-1d','Setup\x20API\x20key\x20authentication\x20interactively',',\x20version\x20','\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','users','show\x20<agent-name>','--add-attributes-file\x20<file>','JSON\x20columns\x20for\x20connector\x20(comma-separated)','Retry\x20limit\x20(0\x20to\x2032)','--dry-run','--result\x20<target>','Set\x20current\x20project\x20context\x20for\x20agent\x20operations','Session\x20time\x20(ISO\x208601,\x20defaults\x20to\x20now)','List\x20available\x20LLM\x20models','--job-type\x20<type>','padWidth','Save\x20as\x20default\x20in\x20config\x20(~/.config/tdx/tdx.json)','create','[DEPRECATED]\x20Segment\x20folder\x20management','delete\x20<name>','--customer-group\x20<json>','remove\x20<name>','Update\x20an\x20existing\x20agent','Make\x20raw\x20HTTP\x20requests\x20to\x20TD\x20APIs','Filter\x20by\x20campaign\x20type\x20(email,\x20push)','project','Campaign\x20type\x20(email\x20or\x20push)','columns\x20<name-or-path>','commands','Show\x20what\x20would\x20be\x20done\x20without\x20making\x20changes','--debug','End\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','--format\x20<format>','filter','List\x20activations\x20for\x20a\x20segment\x20(use\x20parent_name/child_name)','logs','list\x20[name]','debug','retry','workflows\x20[project]','Clear\x20session-level\x20or\x20default\x20context\x20values\x20(resources:\x20site,\x20database,\x20parent_segment,\x20llm_project,\x20agent,\x20profile,\x20engage_workspace)','--in\x20<database>','update\x20<agent-name>','Version\x20number\x20to\x20view','Show\x20journey\x20statistics','Continue\x20most\x20recent\x20conversation','command','Show\x20history\x20of\x20the\x20most\x20recent\x20chat\x20session','preAction','Model\x20type\x20(default:\x20claude-4.5-sonnet)','Interactive\x20chat\x20selector','--description\x20<desc>','Set\x20a\x20secret\x20for\x20a\x20project\x20(format:\x20[project]\x20KEY=VALUE)','--master','Set\x20operation\x20timeout\x20in\x20seconds','gitRevision','--to\x20<timestamp>','List\x20activations\x20for\x20a\x20journey','Show\x20stats\x20for\x20specific\x20stage','[DEPRECATED]\x20Use\x20\x22tdx\x20ps\x22\x20or\x20\x22tdx\x20parent-segment\x22\x20instead','update\x20<name-or-id>','Database\x20to\x20use\x20(overrides\x20context)','List\x20all\x20databases\x20(optionally\x20filtered\x20by\x20glob\x20pattern)','Duplicate\x20a\x20campaign','fields\x20[parent_name]','pause\x20<name-or-path>','Create\x20a\x20new\x20draft\x20version\x20of\x20a\x20journey','Set\x20default\x20workflow\x20project\x20for\x20this\x20session','--email-sender-id\x20<id>','action','Show\x20schedule\x20execution\x20history','Agent\x20description','preview\x20[file]','join','Attributes\x20from\x20JSON\x20file','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','--attribute\x20[name]','Clear\x20session\x20context','Show\x20what\x20would\x20be\x20restored\x20without\x20making\x20changes','Personalization\x20service\x20management','Filter\x20by\x20status\x20(DRAFT,\x20ACTIVE,\x20PAUSED,\x20COMPLETED)','Job\x20type:\x20trino\x20or\x20hive\x20(default:\x20trino)','--chat-id\x20<id>','--in\x20<name>','New\x20segment\x20name','New\x20workspace\x20name','List\x20agents\x20in\x20current\x20project','retry\x20<session-id>','LLM\x20project\x20to\x20use\x20(overrides\x20context)','traffic\x20<name-or-path>','List\x20workflows\x20(optionally\x20filtered\x20by\x20project)','segments\x20[path]','argv','tdx\x20','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','List\x20personalization\x20services\x20(uses\x20context\x20if\x20name\x20omitted)','stderr','Journey\x20version\x20management','25054956fgYkAi','--system-prompt\x20<text>','Pull\x20specific\x20revision\x20(default:\x20latest)','Preview\x20changes\x20without\x20pushing','view\x20[name]','Show\x20what\x20would\x20be\x20backed\x20up\x20without\x20creating\x20files','Launch\x20Claude\x20Code\x20with\x20integrated\x20LLM\x20proxy','Customer\x20group\x20as\x20JSON\x20string','Delete\x20a\x20campaign','Job\x20management\x20commands','database','folders\x20<parent_name>','Start\x20date\x20for\x20period\x20filter\x20(YYYY-MM-DD)','List\x20recursively\x20(show\x20full\x20hierarchy\x20tree)','Delete\x20an\x20LLM\x20project','--name\x20<new-name>','List\x20all\x20data\x20connections','Campaign\x20description','--add-behaviors\x20<json>','Remove\x20API\x20key\x20from\x20system\x20keychain','--version','Campaign\x20name','--folder\x20<name>','show\x20<name-or-id>','duplicate\x20<name-or-id>','--invisible','Limit\x20number\x20of\x20rows','--session-id\x20<id>','list\x20[project]','--prompt\x20<text>','Timezone\x20(e.g.,\x20America/Los_Angeles)','60128DDhKJk','Template\x20name','info\x20[segment_name]','Pull\x20agents\x20from\x20LLM\x20project\x20to\x20local\x20files','Retry\x20a\x20session\x20(prefix\x20with\x20session:)','Show\x20sample\x20data\x20for\x20a\x20specific\x20attribute','subcommandDescription','Create\x20a\x20scheduled\x20query','show\x20<job-id>','Show\x20the\x20most\x20recent\x20chat','variadic','summary','--subject\x20<subject>','Resume\x20from\x20specific\x20task\x20(retry)','--num\x20<1-10>','Start\x20a\x20workflow\x20run\x20(format:\x20project.workflow,\x20or\x20select\x20interactively)','delete\x20<agent-name>','download\x20<project-name>\x20[output-dir]','Show\x20master\x20table\x20sample\x20data','Show\x20journey\x20table\x20column-to-step\x20mapping','AI-native\x20CLI\x20for\x20Treasure\x20Data','Request\x20body\x20as\x20JSON\x20string','GET','1090PWWUWH','--reeval','schema\x20<type>','resume\x20<name-or-id>','List\x20secret\x20keys\x20for\x20a\x20project','Skip\x20validation\x20of\x20.dig\x20files','run\x20[workflow]','Follow/watch\x20timeline\x20for\x20running\x20attempts','[EXPERIMENTAL]\x20Show\x20chat\x20log','--from\x20<n>','sessions\x20[project]','projects\x20[pattern]','Use\x20--help\x20to\x20see\x20all\x20options,\x20--version\x20to\x20show\x20version','Include\x20subtasks\x20in\x20tasks\x20output','List\x20journeys\x20in\x20current\x20context','--schedule-type\x20<type>','--skip-validation','--delete','after','Pause\x20a\x20running\x20journey','Campaign\x20management','-o,\x20--output\x20<folder>','Schedule\x20option\x20(time\x20for\x20daily,\x20day\x20for\x20weekly/monthly)','--new','use\x20[project]','Folder\x20description','claude\x20[args...]','Execute\x20segment\x20SQL\x20query\x20and\x20show\x20results\x20(uses\x20context\x20if\x20not\x20provided)','List\x20available\x20connector\x20types','Database\x20name\x20(default:\x20information_schema)','Behaviors\x20as\x20JSON\x20string','error','parse','View\x20a\x20specific\x20version\x20of\x20a\x20journey','Output\x20file\x20path','Override\x20parameters\x20for\x20retry\x20(JSON\x20string\x20or\x20@file.json)','view\x20[segment_name]','grapesjs','isTTY','describe','Tip:\x20Use\x20plural\x20forms\x20(tdx\x20databases,\x20tables,\x20segments,\x20jobs)\x20as\x20aliases\x20for\x20\x22tdx\x20xxx\x20list\x22','journey','Skip\x20population\x20counting','version','Save\x20output\x20to\x20file','Get\x20SQL\x20query\x20for\x20segment\x20(uses\x20context\x20if\x20not\x20provided)','_list-commands','update\x20<segment_name>','status','-u,\x20--use','--max-tool-iterations\x20<n>','--description\x20<text>','Master\x20database\x20name','--interval\x20<range>','Name\x20for\x20the\x20new\x20project\x20(required)','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','[options]\x20--\x20[claude-code-args...]','-p,\x20--profile\x20<name>','\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','Unknown\x20action:\x20','--max-depth\x20<depth>','--include-retried','set\x20<args...>','DEBUG','Update\x20a\x20campaign','Make\x20segment\x20invisible\x20(default:\x20visible)','[attempt-id]','Query\x20engine\x20version','List\x20workflow\x20execution\x20sessions\x20(alias\x20for\x20\x22session\x20list\x22)','Chart\x20type:\x20conversion\x20or\x20activation\x20(default:\x20both)','List\x20all\x20versions\x20of\x20a\x20journey','List\x20campaigns\x20(optionally\x20filtered\x20by\x20pattern)','argument','138FMIIsk','Action:\x20logs,\x20tasks,\x20kill,\x20retry','Create\x20a\x20new\x20profile','[DEPRECATED]\x20Restore\x20project\x20(use\x20`tdx\x20agent\x20push/clone`\x20instead)','Launch\x20a\x20campaign','Start\x20time\x20filter\x20(ISO\x208601\x20format)','-r,\x20--recursive','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','[DEPRECATED]\x20Update\x20parent\x20segment\x20-\x20use\x20`push`\x20instead','use\x20<name>','--parent-segment\x20<name>','Parent\x20segment\x20to\x20use\x20(overrides\x20context)','settings\x20<type>','Show\x20full\x20JSON:API\x20response\x20with\x20all\x20fields','show\x20<name>','INVALID_ARGUMENT','Output\x20as\x20JSON','opts','--behavior\x20[name]','user','Show\x20table\x20contents\x20(SELECT\x20*\x20with\x20limit)','engage_workspace','Show\x20attributes\x20only,\x20or\x20a\x20specific\x20attribute','New\x20project\x20name\x20(default:\x20original\x20name\x20from\x20backup)','CDP\x20Journey\x20Orchestration\x20commands','--llm-project\x20<name>','api\x20[endpoint]','session','preview\x20[name]','Also\x20set\x20context\x20to\x20this\x20parent\x20segment\x20after\x20pull','table','Preview\x20operation\x20without\x20executing','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','stats\x20<name-or-path>','Push\x20local\x20workflow\x20changes\x20to\x20Treasure\x20Data','[task-name]','--parent-folder\x20<name>','Show\x20parent\x20segment\x20details\x20(uses\x20context\x20if\x20name\x20omitted)','schedule','-f,\x20--file\x20<path>','Agent\x20name','registeredArguments','Profile\x20management\x20(create,\x20list,\x20remove,\x20configure)','Timezone\x20for\x20delivery\x20(e.g.,\x20\x22UTC\x22,\x20\x22Asia/Tokyo\x22)','repeat','--name\x20<name>','help','--kind\x20<type>','--no-proxy','Project\x20description','List\x20all\x20LLM\x20projects\x20(alias\x20for\x20\x22project\x20list\x22)','--trace','Updated\x20filtering\x20rule\x20from\x20JSON\x20file','RT\x202.0\x20configuration\x20management','--reason\x20<text>','Starting\x20offset\x20(default:\x200)','Read\x20request\x20body\x20from\x20file','Starter\x20message','--json','--status\x20<status>','Attributes\x20as\x20JSON\x20string','--force','List\x20jobs','Include\x20retried\x20attempts','Parse\x20and\x20validate\x20without\x20executing','template','\x0aSubcommands:\x0a\x20\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20AI\x20Suite\x20credit\x20usage\x20by\x20profile\x0a\x20\x20statusline\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20statusline\x20for\x20Claude\x20Code\x20(reads\x20JSON\x20from\x20stdin)\x0a\x0aExamples:\x0a\x20\x20tdx\x20claude\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Launch\x20Claude\x20Code\x20with\x20TD\x20LLM\x20proxy\x0a\x20\x20tdx\x20claude\x20-c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Continue\x20most\x20recent\x20conversation\x0a\x20\x20tdx\x20claude\x20-r\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20conversation\x20(shows\x20selector)\x0a\x20\x20tdx\x20claude\x20--\x20\x22your\x20prompt\x20here\x22\x20\x20\x20\x20Start\x20with\x20an\x20initial\x20prompt\x0a\x20\x20tdx\x20claude\x20usage\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20credit\x20usage\x20statistics\x0a\x20\x20tdx\x20claude\x20usage\x20--json\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Output\x20usage\x20as\x20JSON','directory','-y,\x20--yes','INFO','parent-segment','Delete\x20workflow\x20project\x20from\x20Treasure\x20Data','Number\x20of\x20executions\x20(1-10,\x20default:\x201)','Set\x20or\x20show\x20parent\x20segment\x20context','validate\x20[name]','Attempt\x20ID','Workflow\x20project\x20management','Temperature\x20(0.0-2.0,\x20default:\x200.7)','Open\x20segment\x20in\x20web\x20browser','--rule\x20<json>','--limit\x20<rows>','List\x20workflow\x20execution\x20sessions\x20(filter\x20by\x20project\x20or\x20project.workflow)','New\x20template\x20name','--type\x20<api_type>','Add\x20behaviors\x20from\x20JSON\x20file','Output\x20in\x20JSON\x20Lines\x20format\x20(shorthand\x20for\x20--format\x20jsonl)','-c,\x20--continue','Directory\x20does\x20not\x20exist:\x20','[DEPRECATED]\x20Set\x20current\x20segment/folder\x20context\x20(use\x20\x22tdx\x20use\x20parent_segment\x22\x20instead)','logLevel','--json-columns\x20<cols>','--editor-type\x20<type>','Delete\x20an\x20email\x20template','Workspace\x20management','Use\x20your\x20own\x20Claude\x20Code\x20account\x20(Anthropic/AWS\x20Bedrock/Vertex\x20AI,\x20etc.)','hidden','stdout','\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','-d,\x20--database\x20<database>','show\x20<folder_ref>','workflow','noColor','1281888JOsmPd','delete\x20<name-or-id>','List\x20all\x20available\x20profiles','Database\x20name\x20(used\x20when\x20not\x20specified\x20in\x20pattern)','Custom\x20header\x20(format:\x20\x22Key:\x20Value\x22,\x20repeatable)','databases\x20[pattern]','list\x20[path]','Query\x20type:\x20trino\x20or\x20hive','--params\x20<json>','Add\x20attributes\x20from\x20JSON\x20file','2801358sqTtzD','use\x20<project-name>','llm','unset\x20<resource>','--output\x20<file>','Push\x20without\x20confirmation','--stage\x20<name>','Filtering\x20rule\x20as\x20JSON\x20string','Start\x20MCP\x20server\x20for\x20AI\x20tool\x20integration','Ending\x20offset\x20(default:\x2020)','Workspace\x20name\x20(required)','Generate\x20test\x20conversations\x20without\x20evaluation','us01','-o,\x20--output\x20<file>','--version\x20<number>','attempt','--no-eval','Output\x20as\x20JSON\x20Lines','User\x20management\x20commands','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file\x20(uses\x20context\x20if\x20name\x20omitted)','log','--from-task\x20<task>','Show\x20segment\x20schema\x20(column\x20types)','--name\x20<new_name>','jobs','addHelpText','Profile\x20to\x20use\x20(overrides\x20active\x20profile)','Show\x20timeline\x20for\x20specific\x20attempt','Create\x20a\x20new\x20agent\x20in\x20current\x20project','kill\x20<job-id>','Update\x20an\x20email\x20template','commandDescription','--segment\x20<path>','--yes','Read\x20query\x20from\x20file','Show\x20authentication\x20status\x20and\x20current\x20context','-o,\x20--output\x20<dir>','Set\x20session\x20profile\x20(use\x20--default\x20to\x20save\x20permanently)','4132005JkxQap','--plaintext\x20<text>','Job\x20priority\x20(-2\x20to\x202)','List\x20parent\x20segments\x20(supports\x20wildcards:\x20*,\x20?)','HTML\x20template\x20content','catch','Add\x20template\x20personalization\x20section\x20to\x20YAML\x20(uses\x20context\x20if\x20name\x20omitted)','.\x20Must\x20be\x20beefree\x20or\x20grapesjs','--temperature\x20<n>','--timezone\x20<tz>','--clear','types','exit','Updated\x20schedule\x20type:\x20none,\x20daily,\x20weekly,\x20monthly','Master\x20table\x20name','long','--help','Revision\x20name\x20(default:\x20timestamp)','launch\x20<name-or-id>','clone\x20[source]','show\x20[name]','_hidden','--last','map','format','List\x20all\x20users\x20in\x20the\x20account','Show\x20email\x20template\x20details','run\x20[name]','Delete\x20segments\x20not\x20in\x20local\x20YAML\x20files\x20(disabled\x20by\x20default)','injectIntoOptions','journeys\x20[pattern]','parent_segment','List\x20workflow\x20attempts\x20(alias\x20for\x20\x22attempt\x20list\x22)','--schedule-option\x20<value>','--cron\x20<expression>','--default','-n,\x20--name\x20<name>','alias','Available\x20actions:\x20logs,\x20tasks,\x20kill,\x20retry','Reason\x20for\x20killing\x20the\x20attempt','Commands:','Cron\x20expression\x20for\x20scheduling','pause\x20<name-or-id>','Enable\x20debug\x20logging\x20(shows\x20HTTP\x20requests/responses)','Customer\x20group\x20from\x20JSON\x20file','usage','Show\x20journey\x20details','List\x20workspaces\x20(alias\x20for\x20\x22workspace\x20list\x22)','aliases','hook','Include\x20retried\x20attempts\x20(for\x20list)','--no-color','--result\x20<url>','-C,\x20--directory\x20<path>','--type\x20<type>','End\x20time\x20filter\x20(ISO\x208601\x20format)','[DEPRECATED]\x20List\x20segment\x20folders\x20(use\x20\x22tdx\x20sg\x20list\x22\x20instead)','apiKey','Filter\x20by\x20job\x20status\x20(queued,\x20running,\x20success,\x20error)','Upload\x20workflow\x20project\x20to\x20Treasure\x20Data\x20(digdag-style)','resume\x20<name-or-path>','Run\x20tests\x20for\x20an\x20LLM\x20agent','Remove\x20a\x20profile','tdx','Show\x20connector\x20output\x20schema\x20for\x20connector_config\x20validation','init\x20[name]','Output\x20directory','segment','List\x20campaigns\x20(alias\x20for\x20\x22campaign\x20list\x22)','--attributes\x20<json>','Workflow\x20(Digdag)\x20management\x20commands','option','secrets','show\x20[table]','Delete\x20a\x20workspace','stringify','claude-4.5-sonnet','required','Delay\x20in\x20seconds\x20before\x20execution','beefree','\x0aExamples:\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27prod\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20staging\x20\x20\x20\x20\x20\x20\x20#\x20Set\x20session\x20profile\x20to\x20\x27staging\x27\x0a\x20\x20$\x20tdx\x20profile\x20use\x20prod\x20--default\x20#\x20Set\x20default\x20profile\x20permanently\x0a','Preview\x20changes\x20without\x20writing\x20files','Show\x20job\x20details','validate\x20[target]','--jsonl','use\x20[name]','desc\x20[name]','allowUnknownOption','Push\x20YAML\x20files\x20to\x20Treasure\x20Data\x20as\x20child\x20segments','setup','0.7','--html\x20<html>','Set\x20workspace\x20context\x20for\x20Engage\x20commands\x20(alias\x20for\x20\x22tdx\x20use\x20engage_workspace\x22)','delete\x20<project-name-or-id>','Output\x20in\x20table\x20format\x20(horizontal\x20layout,\x20shorthand\x20for\x20--format\x20table)','Segment\x20kind:\x200=batch,\x201=realtime,\x202=funnel_stage','Create\x20a\x20new\x20campaign','list','--session\x20<id>','update\x20<name>','Validate\x20enriched\x20master\x20(master\x20+\x20all\x20attributes)','Move\x20to\x20folder','create\x20<name-or-path>','Delivery\x20start\x20time\x20(ISO\x208601\x20format)','Updated\x20description','trace','Alias\x20for\x20--database\x20(natural\x20language\x20style)','Kill\x20a\x20job','Clone\x20an\x20LLM\x20project\x20to\x20a\x20new\x20project','...','Get\x20SQL\x20query\x20for\x20parent\x20segment\x20(uses\x20context\x20if\x20name\x20omitted)','--add-behaviors-file\x20<file>','--from\x20<date>','Submit\x20a\x20job','campaigns\x20[pattern]','Filter\x20by\x20status\x20(running,\x20success,\x20error,\x20blocked,\x20all)','Export\x20journey(s)\x20as\x20YAML\x20files','Pull\x20workflow\x20project\x20to\x20local\x20folder','Usage:\x20','Show\x20task\x20execution\x20timeline\x20for\x20a\x20workflow\x20attempt','TD\x20site/region\x20(us01,\x20jp01,\x20eu01,\x20ap02;\x20aliases:\x20us,\x20jp,\x20aws)','trino','Validate\x20segment\x20and\x20journey\x20YAML\x20files\x20locally','Provide\x20a\x20valid\x20directory\x20path\x20with\x20-C\x20option.','LLM\x20agent\x20management','List\x20folders\x20and\x20segments\x20at\x20path\x20or\x20in\x20current\x20context','Show\x20chat\x20history\x20(or\x20list\x20all\x20sessions\x20if\x20no\x20ID\x20provided)','--rule-file\x20<file>','Maximum\x20rows\x20to\x20display\x20in\x20table\x20format\x20(default:\x2040)','--delay\x20<seconds>','workspaces\x20[pattern]','upload\x20[project-name-or-dir]','Show\x20behaviors\x20only,\x20or\x20a\x20specific\x20behavior','chats','push','Open\x20parent\x20segment\x20in\x20web\x20browser','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file'];a2_0x1b8a=function(){return _0x25d02a;};return a2_0x1b8a();}journeyVersionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x37e))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1e3))['option'](a2_0x28a4c0(0x2c6),a2_0x28a4c0(0x434))[a2_0x28a4c0(0x1e6)](async(_0x183930,_0xcedd6a)=>{const _0x5d9743=a2_0x28a4c0,_0x3038f5=new JourneyVersionCreateCommand(),_0x1673bf=program['opts'](),_0x1eb20d=await createTDXInstance(_0x1673bf),_0x1cb98b=await _0x3038f5[_0x5d9743(0x3a1)]({'options':{..._0x1673bf,..._0xcedd6a},'args':[_0x183930],'tdx':_0x1eb20d});gracefulExit(_0x1cb98b);}),journeyVersionCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x406))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x25a))[a2_0x28a4c0(0x414)](a2_0x28a4c0(0x300),a2_0x28a4c0(0x46c))[a2_0x28a4c0(0x1e6)](async(_0x191a94,_0x459ef0)=>{const _0x2359a2=a2_0x28a4c0,_0x49f27a=new JourneyVersionViewCommand(),_0x26dbb8=program['opts'](),_0x17b994=await createTDXInstance(_0x26dbb8),_0x3e68a2=await _0x49f27a[_0x2359a2(0x3a1)]({'options':{..._0x26dbb8,..._0x459ef0},'args':[_0x191a94],'tdx':_0x17b994});gracefulExit(_0x3e68a2);}),journeyCmd['command'](a2_0x28a4c0(0x36b))[a2_0x28a4c0(0x3e0)]('Validate\x20journey\x20YAML\x20files\x20locally')[a2_0x28a4c0(0x1e6)](async(_0x80ab6c,_0x4ffb78)=>{const _0x5a3dc4=a2_0x28a4c0,_0xce6577=new JourneyValidateCommand(),_0x44b0d4=program['opts'](),_0x9781ce=await createTDXInstance(_0x44b0d4),_0x2ed308=await _0xce6577[_0x5a3dc4(0x3a1)]({'options':{..._0x44b0d4,..._0x4ffb78},'args':_0x80ab6c?[_0x80ab6c]:[],'tdx':_0x9781ce});gracefulExit(_0x2ed308);}),program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x336))['description']('List\x20journeys\x20(alias\x20for\x20journey\x20list)')['action'](journeyListAction);const agentSyncCmd=program[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x430))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x394));agentSyncCmd[a2_0x28a4c0(0x46f)]('pull\x20[project]\x20[agent-name]')[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x225))['option'](a2_0x28a4c0(0x316),a2_0x28a4c0(0x35a))['option'](a2_0x28a4c0(0x40b),a2_0x28a4c0(0x405))[a2_0x28a4c0(0x1e6)](async(_0x42010a,_0x1c9579,_0x4931ed)=>{const _0x5bf971=a2_0x28a4c0,_0x29ca5d=new AgentPullCommand(),_0x4536ad=program[_0x5bf971(0x293)](),_0xc937ac=await createTDXInstance(_0x4536ad),_0x4bda97=[];if(_0x42010a)_0x4bda97[_0x5bf971(0x39e)](_0x42010a);if(_0x1c9579)_0x4bda97[_0x5bf971(0x39e)](_0x1c9579);const _0x4c8605=await _0x29ca5d[_0x5bf971(0x3a1)]({'options':{..._0x4536ad,..._0x4931ed},'args':_0x4bda97,'tdx':_0xc937ac});gracefulExit(_0x4c8605);}),agentSyncCmd[a2_0x28a4c0(0x46f)]('push\x20[path]')[a2_0x28a4c0(0x3e0)]('Push\x20local\x20agent\x20files\x20to\x20LLM\x20project')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x40b),a2_0x28a4c0(0x2f7))['action'](async(_0x3a7ce0,_0x18fc8b)=>{const _0x41790f=a2_0x28a4c0,_0x29d7fe=new AgentPushCommand(),_0x2d85e9=program['opts'](),_0x173609=await createTDXInstance(_0x2d85e9),_0x3ae561=await _0x29d7fe[_0x41790f(0x3a1)]({'options':{..._0x2d85e9,..._0x18fc8b},'args':_0x3a7ce0?[_0x3a7ce0]:[],'tdx':_0x173609});gracefulExit(_0x3ae561);}),agentSyncCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x32b))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x384))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x33c),a2_0x28a4c0(0x26f))['action'](async(_0x4edd21,_0xaa89cc)=>{const _0x5cee8b=a2_0x28a4c0,_0x32cacd=new AgentCloneCommand(),_0x15723a=program[_0x5cee8b(0x293)](),_0x13a4e7=await createTDXInstance(_0x15723a),_0x5939f3=await _0x32cacd[_0x5cee8b(0x3a1)]({'options':{..._0x15723a,..._0xaa89cc},'args':_0x4edd21?[_0x4edd21]:[],'tdx':_0x13a4e7});gracefulExit(_0x5939f3);}),agentSyncCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x409))['description'](a2_0x28a4c0(0x355))['option']('--name\x20<names>','Run\x20specific\x20tests\x20(comma-separated)')[a2_0x28a4c0(0x35f)]('--tags\x20<tags>',a2_0x28a4c0(0x3c6))['option'](a2_0x28a4c0(0x44a),a2_0x28a4c0(0x2c2))['option'](a2_0x28a4c0(0x302),a2_0x28a4c0(0x2fd))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x23a),'Re-evaluate\x20last\x20test\x20run\x20with\x20updated\x20criteria')[a2_0x28a4c0(0x1e6)](async(_0x5ec1ce,_0x239176)=>{const _0x1fd241=a2_0x28a4c0,_0x89cd71=new AgentTestCommand(),_0x2ebe8e=program[_0x1fd241(0x293)](),_0x2f784b=await createTDXInstance(_0x2ebe8e),_0x4d3e67=await _0x89cd71[_0x1fd241(0x3a1)]({'options':{..._0x2ebe8e,..._0x239176},'args':_0x5ec1ce?[_0x5ec1ce]:[],'tdx':_0x2f784b});gracefulExit(_0x4d3e67);}),agentSyncCmd['command'](a2_0x28a4c0(0x418))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x1f7))[a2_0x28a4c0(0x1e6)](llmAgentListAction),agentSyncCmd['command'](a2_0x28a4c0(0x446))['description']('Show\x20agent\x20details')[a2_0x28a4c0(0x1e6)](async(_0x4246fd,_0x5b012a)=>{const _0x1a0068=a2_0x28a4c0,_0x29f7f0=new LLMAgentShowCommand(),_0x1144ac=program[_0x1a0068(0x293)](),_0x266f00=await createTDXInstance(_0x1144ac),_0x491155=await _0x29f7f0[_0x1a0068(0x3a1)]({'options':{..._0x1144ac,..._0x5b012a},'args':[_0x4246fd],'tdx':_0x266f00});gracefulExit(_0x491155);}),agentSyncCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x41c))[a2_0x28a4c0(0x3e0)](a2_0x28a4c0(0x30e))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x204),a2_0x28a4c0(0x41f))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3e9),a2_0x28a4c0(0x472),a2_0x28a4c0(0x364))['option'](a2_0x28a4c0(0x3c3),'Starter\x20message')[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x26b),'Maximum\x20tool\x20iterations\x20(default:\x204)','4')['option'](a2_0x28a4c0(0x320),a2_0x28a4c0(0x2cf),a2_0x28a4c0(0x372))[a2_0x28a4c0(0x1e6)](async(_0x1a590f,_0x4851f4)=>{const _0x387543=a2_0x28a4c0,_0x57f049=new LLMAgentCreateCommand(),_0x55ee36=program['opts'](),_0x1dcd19=await createTDXInstance(_0x55ee36),_0x42596c=await _0x57f049[_0x387543(0x3a1)]({'options':{..._0x55ee36,..._0x4851f4},'args':[_0x1a590f],'tdx':_0x1dcd19});gracefulExit(_0x42596c);}),agentSyncCmd['command'](a2_0x28a4c0(0x46b))['description'](a2_0x28a4c0(0x457))['option']('--name\x20<text>',a2_0x28a4c0(0x2aa))['option'](a2_0x28a4c0(0x220),a2_0x28a4c0(0x42d))[a2_0x28a4c0(0x35f)]('--description\x20<text>',a2_0x28a4c0(0x1e8))[a2_0x28a4c0(0x35f)](a2_0x28a4c0(0x3c3),a2_0x28a4c0(0x2bb))['action'](async(_0x4dbdb6,_0x141811)=>{const _0x4a57eb=a2_0x28a4c0,_0x3546b2=new LLMAgentUpdateCommand(),_0x104f39=program[_0x4a57eb(0x293)](),_0x2f727a=await createTDXInstance(_0x104f39),_0x1ec124=await _0x3546b2[_0x4a57eb(0x3a1)]({'options':{..._0x104f39,..._0x141811},'args':[_0x4dbdb6],'tdx':_0x2f727a});gracefulExit(_0x1ec124);}),agentSyncCmd[a2_0x28a4c0(0x46f)](a2_0x28a4c0(0x232))['description']('Delete\x20an\x20agent')['action'](async(_0x14c040,_0x48e782)=>{const _0x890d55=a2_0x28a4c0,_0x4f3d2c=new LLMAgentDeleteCommand(),_0x3c4b0b=program[_0x890d55(0x293)](),_0xe2e95=await createTDXInstance(_0x3c4b0b),_0x3c4dd2=await _0x4f3d2c[_0x890d55(0x3a1)]({'options':{..._0x3c4b0b,..._0x48e782},'args':[_0x14c040],'tdx':_0xe2e95});gracefulExit(_0x3c4dd2);}),program['command'](a2_0x28a4c0(0x267),{'hidden':!![]})[a2_0x28a4c0(0x1e6)](()=>{const _0x50861d=a2_0x28a4c0;function _0x3e33c4(_0x1a312b,_0x27cab5){const _0x7332d9=a2_0xf64d,_0x3b1943=[];for(const _0x53a314 of _0x1a312b['commands']){if(_0x53a314['_hidden'])continue;const _0x42a0e4=_0x27cab5?_0x27cab5+'\x20'+_0x53a314[_0x7332d9(0x3b2)]():_0x53a314[_0x7332d9(0x3b2)](),_0x3cb8b7=_0x42a0e4[_0x7332d9(0x3f4)]('\x20')[0x0],_0x3a5903=COMMAND_CATEGORIES['find'](_0x938cc=>_0x938cc['commands']['includes'](_0x3cb8b7)),_0x4bc30d=_0x3a5903?.[_0x7332d9(0x3b2)]??'';if(_0x53a314[_0x7332d9(0x45d)]['length']>0x0)_0x3b1943[_0x7332d9(0x39e)](..._0x3e33c4(_0x53a314,_0x42a0e4));else{const _0x3f2661=(_0x53a314[_0x7332d9(0x2ab)]||[])[_0x7332d9(0x32f)](_0x507f41=>{const _0x3c71bd=_0x7332d9,_0x426afc=_0x507f41[_0x3c71bd(0x22c)]?_0x507f41[_0x3c71bd(0x3b2)]()+_0x3c71bd(0x385):_0x507f41[_0x3c71bd(0x3b2)]();return _0x507f41[_0x3c71bd(0x365)]?'<'+_0x426afc+'>':'['+_0x426afc+']';})['join']('\x20'),_0x19140f=_0x53a314[_0x7332d9(0x416)][_0x7332d9(0x462)](_0x42dbc3=>!_0x42dbc3[_0x7332d9(0x2e1)]&&_0x42dbc3[_0x7332d9(0x327)]!==_0x7332d9(0x328))[_0x7332d9(0x32f)](_0x4b06f3=>({'flags':_0x4b06f3[_0x7332d9(0x437)],'description':_0x4b06f3['description']}));_0x3b1943['push']({'name':_0x42a0e4,'description':_0x53a314[_0x7332d9(0x3e0)](),'group':_0x4bc30d,'usage':_0x3f2661,'options':_0x19140f});}}return _0x3b1943;}console[_0x50861d(0x306)](JSON[_0x50861d(0x363)](_0x3e33c4(program,''))),process[_0x50861d(0x324)](0x0);});export{program};export function runCLI(){const _0x4bdb2=a2_0x28a4c0,_0x547f5e=!process['argv'][_0x4bdb2(0x3df)](0x2)['length'];showBriefHelp=_0x547f5e,program[_0x4bdb2(0x259)](process[_0x4bdb2(0x1fd)]);_0x547f5e&&program[_0x4bdb2(0x3a2)]();if(process[_0x4bdb2(0x201)]['isTTY']&&process[_0x4bdb2(0x1fd)][_0x4bdb2(0x43c)]>0x2&&!isDevVersion()){const _0x5a9f1a=loadReleaseChannel();checkForUpdate(currentVersion,_0x5a9f1a)[_0x4bdb2(0x43a)](_0x4fcd76=>{_0x4fcd76&&displayUpdateNotification(_0x4fcd76);})[_0x4bdb2(0x31d)](()=>{});}}
|